Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ new(design): design check of components. #140

Merged
merged 14 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org/"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const AlertBanner = ({ variation, ...props }: AlertBannerProps) => {
appearance={theme ? "primary" : "secondary"}
color={theme ? "white" : "black"}
isSmall={true}
isFullWidth={true}
>
Primary
</Button>,
Expand All @@ -51,7 +50,6 @@ export const AlertBanner = ({ variation, ...props }: AlertBannerProps) => {
appearance="tertiary"
color={theme ? "white" : "black"}
isSmall={true}
isFullWidth={true}
>
Secondary
</Button>,
Expand Down
10 changes: 10 additions & 0 deletions packages/components/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "ISC",
Expand Down
5 changes: 5 additions & 0 deletions packages/components/basic-box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org/"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/components/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org/"
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "ISC",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "ISC",
Expand Down
24 changes: 24 additions & 0 deletions packages/components/checkbox/stories/ReactCheckbox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,35 @@ Checkbox.args = {

// Story props settings
Checkbox.argTypes = {
label: {
name: "Label",
control: {
type: "text",
},
},
defaultValue: {
table: {
disable: true,
},
},
isLabelHidden: {
name: "Label Hidden",
control: {
type: "boolean",
},
},
isSmall: {
name: "Small",
control: {
type: "boolean",
},
},
isDisabled: {
name: "Disabled",
control: {
type: "boolean",
},
},
isIndeterminate: {
name: "Is Indeterminate",
control: {
Expand Down
5 changes: 5 additions & 0 deletions packages/components/config-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/components/dashboard-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/components/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org/"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/components/editor-toolbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
20 changes: 11 additions & 9 deletions packages/components/editor-toolbar/src/editor-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ const EditorToolbar: FC<EditorToolbarProps> = ({
<div className="sui-editor-toolbar__content--left">
<div className="sui-editor-toolbar__main">
{allowBack && (
<Button
appearance="tertiary"
icon="chevron-left"
color="black"
isSmall={true}
iconOnly={true}
onClick={onBackClick}
data-testid="editor-toolbar-back-btn"
/>
<div>
<Button
appearance="tertiary"
icon="chevron-left"
color="black"
isSmall={true}
iconOnly={true}
onClick={onBackClick}
data-testid="editor-toolbar-back-btn"
/>
</div>
)}
{title && (
<h3 className="sui-heading--h4 sui-editor-toolbar__main-title">
Expand Down
7 changes: 6 additions & 1 deletion packages/components/empty-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org/"
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/field-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/field-password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/components/footer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
"description": "Shared footer UI/UX",
"keywords": [],
"author": "WPMU DEV (https://wpmudev.com)",
"contributors": [
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "ISC",
"main": "src/index.ts",
"directories": {
Expand Down
10 changes: 10 additions & 0 deletions packages/components/form-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/input/stories/ReactInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
}

// Build "Input" story.
const Input = ({ example, ...args }) => {
const Input = ({ example, isSmall, isDisabled, ...args }) => {
const boxStyles = {
padding: 20,
borderRadius: 4,
Expand All @@ -31,7 +31,7 @@ const Input = ({ example, ...args }) => {
<div className="sui-layout sui-layout--horizontal sui-layout--vertical">
<div className="sui-layout__content">
<div style={boxStyles}>
<FormField>
<FormField isSmall={isSmall} isDisabled={isDisabled}>
<SuiInput {...args} />
</FormField>
</div>
Expand Down
5 changes: 5 additions & 0 deletions packages/components/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"name": "Leighton Sapir",
"email": "[email protected]",
"url": "https://iamleigh.com"
},
{
"name": "Govind Kumar",
"email": "[email protected]",
"url": "https://govind.js.org"
},
{
"name": "Pawan Kumar",
"email": "[email protected]",
"url": "https://creador.dev/"
}
],
"license": "GPL-2.0",
Expand Down
Loading