@7shifts/sous-chef 4.15.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/Button/Button.d.ts +5 -1
- package/dist/actions/Link/Link.d.ts +7 -0
- package/dist/actions/PaginationControls/PaginationControls.d.ts +7 -5
- package/dist/actions/Toggle/Toggle.d.ts +2 -0
- package/dist/controls/DateFilter/DateFilter.d.ts +16 -1
- package/dist/controls/SegmentedControl/SegmentedControl.d.ts +6 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +9 -1
- package/dist/core/SousChefProvider/SousChefProvider.d.ts +7 -0
- package/dist/empty_states/EmptyStateContainer/types.d.ts +16 -2
- package/dist/feedback/CircularProgress/CircularProgress.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +1 -0
- package/dist/feedback/MicroBanner/MicroBanner.d.ts +1 -0
- package/dist/feedback/PersistentBanner/PersistentBanner.d.ts +6 -0
- package/dist/feedback/ProgressBar/ProgressBar.d.ts +7 -1
- package/dist/feedback/Spinner/Spinner.d.ts +6 -0
- package/dist/feedback/Toast/Toast.d.ts +13 -0
- package/dist/forms/CheckboxField/CheckboxField.d.ts +4 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +5 -21
- package/dist/forms/DateField/DateField.d.ts +13 -1
- package/dist/forms/DateRangeField/DateRangeCalendar/DateRangeCalendar.d.ts +6 -3
- package/dist/forms/DateRangeField/DateRangeField.d.ts +17 -3
- package/dist/forms/Form/Form.d.ts +13 -2
- package/dist/forms/FormFeedback/FormFeedback.d.ts +1 -0
- package/dist/forms/FormFooter/FormFooter.d.ts +11 -5
- package/dist/forms/FormFooter/FormFooterActions/FormFooterActions.d.ts +2 -5
- package/dist/forms/FormFooter/types.d.ts +10 -0
- package/dist/forms/FormRow/FormRow.d.ts +6 -0
- package/dist/forms/FormSection/FormSection.d.ts +4 -0
- package/dist/forms/MultiSelectField/MultiSelectField.d.ts +6 -2
- package/dist/forms/NumberField/NumberField.d.ts +4 -0
- package/dist/forms/PasswordField/PasswordField.d.ts +3 -0
- package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
- package/dist/forms/PhoneField/PhoneField.d.ts +10 -0
- package/dist/forms/PillSelectField/PillSelectField.d.ts +9 -0
- package/dist/forms/PillSelectField/types.d.ts +2 -0
- package/dist/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +7 -0
- package/dist/forms/RadioGroupField/RadioGroupField.d.ts +8 -1
- package/dist/forms/RadioGroupField/RadioGroupFieldContext.d.ts +2 -1
- package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +6 -1
- package/dist/forms/SelectField/SelectField.d.ts +20 -3
- package/dist/forms/SelectField/types.d.ts +27 -0
- package/dist/forms/TextAreaField/TextAreaField.d.ts +7 -1
- package/dist/forms/TextField/TextField.d.ts +8 -0
- package/dist/forms/TimeField/TimeField.d.ts +23 -1
- package/dist/forms/TimeRangeField/TimeRangeField.d.ts +15 -2
- package/dist/forms/WeekField/WeekField.d.ts +4 -0
- package/dist/forms/WeekSelectField/WeekSelectField.d.ts +4 -0
- package/dist/forms/hooks/useRadioGroupFieldControllers.d.ts +1 -2
- package/dist/forms/hooks/useSelectFieldControllers.d.ts +2 -2
- package/dist/forms/index.d.ts +2 -0
- package/dist/foundation/tokens/color/color-constants.d.ts +34 -0
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/foundation/tokens/dimension/dimension-tokens.d.ts +1 -0
- package/dist/foundation/tokens/layout/TokenTable.d.ts +14 -0
- package/dist/foundation/tokens/layout/layout-tokens.d.ts +12 -0
- package/dist/hooks/useIsOverflowing.d.ts +2 -0
- package/dist/index.css +755 -479
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1295 -941
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1431 -1098
- package/dist/index.modern.js.map +1 -1
- package/dist/ink_illustrations/components/design/Ink3DModeling.d.ts +7 -0
- package/dist/ink_illustrations/components/design/index.d.ts +1 -1
- package/dist/ink_illustrations/components/index.d.ts +2 -2
- package/dist/ink_illustrations/components/other/InkSculptureBust.d.ts +7 -0
- package/dist/ink_illustrations/components/other/index.d.ts +1 -1
- package/dist/ink_illustrations/components/{design/Ink3DModeling02.d.ts → travel/InkBoardingPass.d.ts} +2 -2
- package/dist/ink_illustrations/components/travel/InkVolcano.d.ts +7 -0
- package/dist/ink_illustrations/components/travel/index.d.ts +2 -2
- package/dist/ink_illustrations/components/weather/InkSun.d.ts +7 -0
- package/dist/ink_illustrations/components/weather/index.d.ts +1 -1
- package/dist/ink_illustrations/deprecatedAliases.d.ts +27 -0
- package/dist/ink_illustrations/index.d.ts +1 -0
- package/dist/layout/CalloutCard/CalloutCard.d.ts +1 -0
- package/dist/layout/Card/Card.d.ts +14 -0
- package/dist/layout/Inline/Inline.d.ts +20 -4
- package/dist/layout/Page/Page.d.ts +11 -3
- package/dist/layout/Page/PageBreadcrumbs/PageBreadcrumbs.d.ts +2 -2
- package/dist/layout/Page/types.d.ts +11 -2
- package/dist/layout/PageLayout/PageLayout.d.ts +18 -0
- package/dist/layout/PageLayout/types.d.ts +10 -0
- package/dist/layout/Stack/Stack.d.ts +16 -4
- package/dist/layout/index.d.ts +1 -0
- package/dist/lists/Accordion/Accordion.d.ts +10 -0
- package/dist/lists/Accordion/types.d.ts +4 -0
- package/dist/lists/ActionList/ActionList.d.ts +12 -0
- package/dist/lists/ActionList/type.d.ts +5 -0
- package/dist/lists/ActionListItem/ActionListItem.d.ts +17 -0
- package/dist/lists/BasicTable/BasicTable.d.ts +22 -0
- package/dist/lists/BasicTable/BasicTableSectionContext.d.ts +4 -0
- package/dist/lists/BasicTable/constants.d.ts +13 -0
- package/dist/lists/BasicTable/index.d.ts +1 -0
- package/dist/lists/BasicTable/types.d.ts +4 -0
- package/dist/lists/BasicTableBody/BasicTableBody.d.ts +9 -0
- package/dist/lists/BasicTableBody/index.d.ts +1 -0
- package/dist/lists/BasicTableCell/BasicTableCell.d.ts +14 -0
- package/dist/lists/BasicTableCell/index.d.ts +1 -0
- package/dist/lists/BasicTableHeader/BasicTableHeader.d.ts +9 -0
- package/dist/lists/BasicTableHeader/index.d.ts +1 -0
- package/dist/lists/BasicTableRow/BasicTableRow.d.ts +9 -0
- package/dist/lists/BasicTableRow/index.d.ts +1 -0
- package/dist/lists/DataTable/DataTable.d.ts +31 -8
- package/dist/lists/DataTable/types.d.ts +35 -0
- package/dist/lists/DataTableCell/DataTableCell.d.ts +1 -0
- package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +1 -0
- package/dist/lists/DataTableRow/DataTableRow.d.ts +12 -0
- package/dist/lists/index.d.ts +7 -1
- package/dist/media/Avatar/Avatar.d.ts +1 -0
- package/dist/media/Badge/Badge.d.ts +7 -2
- package/dist/media/Pill/Pill.d.ts +8 -0
- package/dist/media/Pill/constants.d.ts +2 -0
- package/dist/media/Pill/types.d.ts +3 -1
- package/dist/navigation/BreadcrumbItem/BreadcrumbItem.d.ts +1 -0
- package/dist/navigation/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/navigation/PrimaryNav/PrimaryNav.d.ts +1 -0
- package/dist/navigation/PrimaryNavFooter/PrimaryNavFooter.d.ts +1 -0
- package/dist/navigation/PrimaryNavItem/PrimaryNavItem.d.ts +1 -0
- package/dist/navigation/PrimaryNavSubItem/PrimaryNavSubItem.d.ts +1 -0
- package/dist/navigation/Tab/Tab.d.ts +1 -0
- package/dist/navigation/TabList/TabList.d.ts +1 -0
- package/dist/navigation/TabPanel/TabPanel.d.ts +1 -0
- package/dist/navigation/Tabs/Tabs.d.ts +1 -0
- package/dist/overlay/Calendar/Calendar.d.ts +15 -4
- package/dist/overlay/Dropdown/Dropdown.d.ts +1 -0
- package/dist/overlay/DropdownListDivider/DropdownListDivider.d.ts +1 -0
- package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +1 -0
- package/dist/overlay/DropdownListItemSelectable/DropdownListItemSelectable.d.ts +1 -0
- package/dist/overlay/DropdownSubmenu/DropdownSubmenu.d.ts +1 -0
- package/dist/overlay/HintModal/HintModal.d.ts +1 -0
- package/dist/overlay/KebabMenu/types.d.ts +5 -0
- package/dist/overlay/Modal/Modal.d.ts +3 -0
- package/dist/overlay/Modal/ModalBody/ModalBody.d.ts +1 -0
- package/dist/overlay/Modal/ModalFooter/ModalFooter.d.ts +11 -6
- package/dist/overlay/Modal/ModalFooter/types.d.ts +10 -0
- package/dist/overlay/Popover/Popover.d.ts +8 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +2 -1
- package/dist/overlay/index.d.ts +1 -0
- package/dist/typography/KeyboardKey/KeyboardKey.d.ts +1 -0
- package/dist/typography/Text/Bold/Bold.d.ts +1 -0
- package/dist/typography/Text/Italic/Italic.d.ts +1 -0
- package/dist/typography/Text/Text.d.ts +23 -0
- package/dist/typography/Text/Underline/Underline.d.ts +1 -0
- package/dist/utils/formik.d.ts +5 -0
- package/llms-instructions/guidelines/ActionList.guidelines.md +1 -3
- package/llms-instructions/guidelines/Avatar.guidelines.md +6 -5
- package/llms-instructions/guidelines/Badge.guidelines.md +24 -8
- package/llms-instructions/guidelines/BasicTable.guidelines.md +80 -0
- package/llms-instructions/guidelines/Breadcrumbs.guidelines.md +2 -2
- package/llms-instructions/guidelines/Button.guidelines.md +3 -3
- package/llms-instructions/guidelines/Calendar.guidelines.md +12 -0
- package/llms-instructions/guidelines/Card.guidelines.md +2 -2
- package/llms-instructions/guidelines/CircularProgress.guidelines.md +1 -1
- package/llms-instructions/guidelines/DateFilter.guidelines.md +2 -2
- package/llms-instructions/guidelines/Dropdown.guidelines.md +3 -2
- package/llms-instructions/guidelines/EmptyState.guidelines.md +3 -1
- package/llms-instructions/guidelines/{Forms.guidelines.md → Form.guidelines.md} +41 -6
- package/llms-instructions/guidelines/Icons.guidelines.md +11 -10
- package/llms-instructions/guidelines/InkIllustrations.guidelines.md +5 -4
- package/llms-instructions/guidelines/Inline.guidelines.md +55 -0
- package/llms-instructions/guidelines/InlineBanner.guidelines.md +5 -3
- package/llms-instructions/guidelines/MultiSelectField.guidelines.md +2 -2
- package/llms-instructions/guidelines/Page.guidelines.md +65 -0
- package/llms-instructions/guidelines/PageLayout.guidelines.md +85 -0
- package/llms-instructions/guidelines/Paywall.guidelines.md +3 -2
- package/llms-instructions/guidelines/PersistentBanner.guidelines.md +2 -2
- package/llms-instructions/guidelines/Pill.guidelines.md +31 -3
- package/llms-instructions/guidelines/PillSelectField.guidelines.md +1 -1
- package/llms-instructions/guidelines/PrimaryNav.guidelines.md +144 -0
- package/llms-instructions/guidelines/SegmentedControl.guidelines.md +2 -2
- package/llms-instructions/guidelines/Skeleton.guidelines.md +3 -3
- package/llms-instructions/guidelines/Spinner.guidelines.md +6 -4
- package/llms-instructions/guidelines/Stack.guidelines.md +53 -0
- package/llms-instructions/guidelines/Text.guidelines.md +70 -0
- package/llms-instructions/guidelines/Toast.guidelines.md +2 -1
- package/llms-instructions/guidelines/Toggle.guidelines.md +2 -2
- package/llms-instructions/guidelines/ToolbarSelect.guidelines.md +2 -2
- package/llms-instructions/guidelines/Tooltip.guidelines.md +1 -1
- package/llms-instructions/llms-components.md +91 -19
- package/llms-instructions/llms-composing-components.md +583 -219
- package/llms-instructions/llms-icons-and-illustrations.md +305 -1011
- package/llms-instructions/llms-tokens.md +227 -164
- package/llms-instructions/llms.md +12 -28
- package/package.json +2 -2
- package/dist/ink_illustrations/components/other/InkS/321/201ulptureBust.d.ts +0 -7
- package/dist/ink_illustrations/components/travel/InkDrawing.d.ts +0 -7
- package/dist/ink_illustrations/components/travel/InkDrawing1.d.ts +0 -7
- package/dist/ink_illustrations/components/weather/InkGroup7975.d.ts +0 -7
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/Ink3DGlasses.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkAmusementPark.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBallet.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBowling.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCardGames.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCarouselWithHorses.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDiscoBall.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDj.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkFirecracker.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkJoystick.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMagicTricks.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMascarade.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkNotesChart.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkRollerSkating.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkSlotMachine.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkTheatre.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/index.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAnatomy.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAsteroid.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAstronaut.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkBacteria.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkChemistry.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkDna.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkLabTube.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkMicroChips.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkMicroscope.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkNewtonsCradle.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkNuclearEnergy.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkPlanet.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkPlantInTube.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkRobotics.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkSpaceTravel.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkTelescope.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/index.d.ts +0 -0
|
@@ -9,9 +9,25 @@ Design tokens are the single source of truth to name and store design decisions,
|
|
|
9
9
|
Example:
|
|
10
10
|
|
|
11
11
|
```tsx
|
|
12
|
-
import { COLORS
|
|
12
|
+
import { COLORS } from '@7shifts/sous-chef';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// COLORS keys are the token names without the `--color-` prefix.
|
|
15
|
+
// COLORS['primary-color'] === 'var(--color-primary-color)'
|
|
16
|
+
export const highlightStyle = { borderColor: COLORS['primary-color'] };
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Component `color` props (for example on `Text` and the icons) accept the color token name directly, without the `--color-` prefix. The name is resolved to the CSS custom property for you, so you do not need `COLORS` there:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { IconAward, Text } from '@7shifts/sous-chef';
|
|
24
|
+
|
|
25
|
+
export const Example = () => (
|
|
26
|
+
<>
|
|
27
|
+
<IconAward color="upsell-color" />
|
|
28
|
+
<Text color="danger-color">Text example</Text>
|
|
29
|
+
</>
|
|
30
|
+
);
|
|
15
31
|
```
|
|
16
32
|
|
|
17
33
|
CSS custom properties are applied globally when you import:
|
|
@@ -97,9 +113,9 @@ Instead, try to use a semantic color token instead.
|
|
|
97
113
|
| --color-blackberry-500 | #1c5cbb |
|
|
98
114
|
| --color-blackberry-600 | #193f78 |
|
|
99
115
|
|
|
100
|
-
### Transparent colors
|
|
116
|
+
### Transparent colors (deprecated)
|
|
101
117
|
|
|
102
|
-
|
|
118
|
+
The `--color-neutral-black-transparent-*` and `--color-neutral-white-transparent-*` tokens are deprecated and will be removed in the next major. Do NOT use them in new code. Use a semantic color token instead (for example `--color-surface-color-overlay`, `--color-outline`, `--color-hover-darken` or `--color-shadow-overlay`), which sets its own opacity:
|
|
103
119
|
|
|
104
120
|
| Token Name | Value |
|
|
105
121
|
| ------------------------------------ | ---------------------- |
|
|
@@ -143,152 +159,146 @@ Here is some information about common words you'll see across our color roles:
|
|
|
143
159
|
|
|
144
160
|
#### Surface
|
|
145
161
|
|
|
146
|
-
| Token | Light
|
|
147
|
-
| ------------------------------------------ |
|
|
148
|
-
| --color-surface-color-overlay |
|
|
149
|
-
| --color-surface-color-
|
|
150
|
-
| --color-surface-color
|
|
151
|
-
| --color-surface-
|
|
152
|
-
| --color-surface-on-color-
|
|
153
|
-
| --color-surface-on-color
|
|
154
|
-
| --color-surface-on-color
|
|
155
|
-
| --color-surface-
|
|
156
|
-
| --color-surface-container
|
|
157
|
-
| --color-surface-container-
|
|
158
|
-
| --color-surface-container-
|
|
159
|
-
| --color-surface-container-disabled
|
|
160
|
-
| --color-surface-
|
|
161
|
-
| --color-surface-
|
|
162
|
-
| --color-surface-
|
|
163
|
-
| --color-surface-on-inverse-
|
|
162
|
+
| Token | Light | Dark |
|
|
163
|
+
| ------------------------------------------ | --------------------- | --------------------- |
|
|
164
|
+
| --color-surface-color-overlay | rgba(0,0,0,0.2) | rgba(0,0,0,0.5) |
|
|
165
|
+
| --color-surface-color-overlay-variant | rgba(255,255,255,0.2) | rgba(0,0,0,0.2) |
|
|
166
|
+
| --color-surface-color-dim | --color-eggshell | --color-coal |
|
|
167
|
+
| --color-surface-color | --color-white | --color-grey-600 |
|
|
168
|
+
| --color-surface-on-color-disabled | rgba(0,0,0,0.2) | rgba(255,255,255,0.3) |
|
|
169
|
+
| --color-surface-on-color-subtle | --color-grey-400 | --color-grey-300 |
|
|
170
|
+
| --color-surface-on-color | --color-grey-500 | --color-grey-100 |
|
|
171
|
+
| --color-surface-on-color-bold | --color-grey-600 | --color-white |
|
|
172
|
+
| --color-surface-container | --color-white | --color-grey-600 |
|
|
173
|
+
| --color-surface-container-high | --color-grey-100 | --color-grey-500 |
|
|
174
|
+
| --color-surface-container-highest | --color-grey-200 | --color-grey-400 |
|
|
175
|
+
| --color-surface-container-disabled | rgba(0,0,0,0.05) | rgba(255,255,255,0.1) |
|
|
176
|
+
| --color-surface-container-disabled-variant | rgba(0,0,0,0.2) | rgba(255,255,255,0.1) |
|
|
177
|
+
| --color-surface-on-container-disabled | rgba(0,0,0,0.4) | rgba(255,255,255,0.5) |
|
|
178
|
+
| --color-surface-inverse | --color-grey-600 | --color-grey-100 |
|
|
179
|
+
| --color-surface-on-inverse-subtle | --color-grey-200 | --color-grey-400 |
|
|
180
|
+
| --color-surface-on-inverse | --color-grey-100 | --color-grey-500 |
|
|
181
|
+
| --color-surface-on-inverse-bold | --color-white | --color-black |
|
|
182
|
+
| --color-surface-on-inverse-disabled | rgba(255,255,255,0.5) | rgba(0,0,0,0.5) |
|
|
164
183
|
|
|
165
184
|
#### Outline
|
|
166
185
|
|
|
167
186
|
Outline color tokens are used for borders.
|
|
168
187
|
|
|
169
|
-
| Token | Light
|
|
170
|
-
| ----------------------- |
|
|
171
|
-
| --color-outline |
|
|
172
|
-
| --color-outline-variant | --color-grey-200
|
|
173
|
-
| --color-outline-inverse | --color-white
|
|
188
|
+
| Token | Light | Dark |
|
|
189
|
+
| ----------------------- | ---------------- | ---------------------- |
|
|
190
|
+
| --color-outline | rgba(0,0,0,0.15) | rgba(255,255,255,0.15) |
|
|
191
|
+
| --color-outline-variant | --color-grey-200 | --color-grey-500 |
|
|
192
|
+
| --color-outline-inverse | --color-white | --color-grey-600 |
|
|
174
193
|
|
|
175
194
|
#### Neutral
|
|
176
195
|
|
|
177
|
-
| Token
|
|
178
|
-
|
|
|
179
|
-
| --color-neutral-color
|
|
180
|
-
| --color-neutral-on-color
|
|
181
|
-
| --color-neutral-container
|
|
182
|
-
| --color-neutral-on-container
|
|
183
|
-
| --color-neutral-container-variant
|
|
184
|
-
| --color-neutral-on-container-variant | --color-oat-600 | --color-oat-300 |
|
|
196
|
+
| Token | Light | Dark |
|
|
197
|
+
| --------------------------------- | --------------- | ---------------- |
|
|
198
|
+
| --color-neutral-color | --color-oat-400 | --color-oat-300 |
|
|
199
|
+
| --color-neutral-on-color | --color-white | --color-grey-600 |
|
|
200
|
+
| --color-neutral-container | --color-oat-200 | --color-oat-500 |
|
|
201
|
+
| --color-neutral-on-container | --color-oat-600 | --color-oat-300 |
|
|
202
|
+
| --color-neutral-container-variant | --color-oat-100 | --color-oat-600 |
|
|
185
203
|
|
|
186
204
|
#### Primary
|
|
187
205
|
|
|
188
|
-
| Token
|
|
189
|
-
|
|
|
190
|
-
| --color-primary-color
|
|
191
|
-
| --color-primary-on-color
|
|
192
|
-
| --color-primary-color-variant
|
|
193
|
-
| --color-primary-on-color-variant
|
|
194
|
-
| --color-primary-container
|
|
195
|
-
| --color-primary-on-container
|
|
196
|
-
| --color-primary-container-variant
|
|
197
|
-
| --color-primary-on-container-variant | --color-blackberry-600 | --color-blackberry-300 |
|
|
206
|
+
| Token | Light | Dark |
|
|
207
|
+
| --------------------------------- | ---------------------- | ---------------------- |
|
|
208
|
+
| --color-primary-color | --color-blackberry-400 | --color-blackberry-400 |
|
|
209
|
+
| --color-primary-on-color | --color-white | --color-white |
|
|
210
|
+
| --color-primary-color-variant | --color-blackberry-600 | --color-blackberry-300 |
|
|
211
|
+
| --color-primary-on-color-variant | --color-white | --color-white |
|
|
212
|
+
| --color-primary-container | --color-blackberry-200 | --color-blackberry-400 |
|
|
213
|
+
| --color-primary-on-container | --color-blackberry-600 | --color-blackberry-200 |
|
|
214
|
+
| --color-primary-container-variant | --color-blackberry-100 | --color-blackberry-600 |
|
|
198
215
|
|
|
199
216
|
#### Secondary
|
|
200
217
|
|
|
201
|
-
| Token
|
|
202
|
-
|
|
|
203
|
-
| --color-secondary-color
|
|
204
|
-
| --color-secondary-on-color
|
|
205
|
-
| --color-secondary-container
|
|
206
|
-
| --color-secondary-on-container
|
|
207
|
-
| --color-secondary-container-variant
|
|
208
|
-
| --color-secondary-on-container-variant | --color-tangerine-600 | --color-tangerine-300 |
|
|
218
|
+
| Token | Light | Dark |
|
|
219
|
+
| ----------------------------------- | --------------------- | --------------------- |
|
|
220
|
+
| --color-secondary-color | --color-tangerine-400 | --color-tangerine-400 |
|
|
221
|
+
| --color-secondary-on-color | --color-white | --color-white |
|
|
222
|
+
| --color-secondary-container | --color-tangerine-200 | --color-tangerine-500 |
|
|
223
|
+
| --color-secondary-on-container | --color-tangerine-600 | --color-tangerine-200 |
|
|
224
|
+
| --color-secondary-container-variant | --color-tangerine-100 | --color-tangerine-600 |
|
|
209
225
|
|
|
210
226
|
#### Tertiary
|
|
211
227
|
|
|
212
|
-
| Token
|
|
213
|
-
|
|
|
214
|
-
| --color-tertiary-color
|
|
215
|
-
| --color-tertiary-on-color
|
|
216
|
-
| --color-tertiary-container
|
|
217
|
-
| --color-tertiary-on-container
|
|
218
|
-
| --color-tertiary-container-variant
|
|
219
|
-
| --color-tertiary-on-container-variant | --color-grey-600 | --color-grey-600 |
|
|
228
|
+
| Token | Light | Dark |
|
|
229
|
+
| ---------------------------------- | ---------------- | ---------------- |
|
|
230
|
+
| --color-tertiary-color | --color-lime-600 | --color-lime-600 |
|
|
231
|
+
| --color-tertiary-on-color | --color-white | --color-white |
|
|
232
|
+
| --color-tertiary-container | --color-lime-200 | --color-lime-500 |
|
|
233
|
+
| --color-tertiary-on-container | --color-lime-600 | --color-lime-100 |
|
|
234
|
+
| --color-tertiary-container-variant | --color-lime-400 | --color-lime-600 |
|
|
220
235
|
|
|
221
236
|
#### Success
|
|
222
237
|
|
|
223
|
-
| Token
|
|
224
|
-
|
|
|
225
|
-
| --color-success-color
|
|
226
|
-
| --color-success-on-color
|
|
227
|
-
| --color-success-container
|
|
228
|
-
| --color-success-on-container
|
|
229
|
-
| --color-success-container-variant
|
|
230
|
-
| --color-success-on-container-variant | --color-mint-600 | --color-mint-300 |
|
|
238
|
+
| Token | Light | Dark |
|
|
239
|
+
| --------------------------------- | ---------------- | ---------------- |
|
|
240
|
+
| --color-success-color | --color-mint-400 | --color-mint-300 |
|
|
241
|
+
| --color-success-on-color | --color-white | --color-grey-600 |
|
|
242
|
+
| --color-success-container | --color-mint-200 | --color-mint-500 |
|
|
243
|
+
| --color-success-on-container | --color-mint-600 | --color-mint-200 |
|
|
244
|
+
| --color-success-container-variant | --color-mint-100 | --color-mint-600 |
|
|
231
245
|
|
|
232
246
|
#### Danger
|
|
233
247
|
|
|
234
|
-
| Token
|
|
235
|
-
|
|
|
236
|
-
| --color-danger-color
|
|
237
|
-
| --color-danger-on-color
|
|
238
|
-
| --color-danger-container
|
|
239
|
-
| --color-danger-on-container
|
|
240
|
-
| --color-danger-container-variant
|
|
241
|
-
| --color-danger-on-container-variant | --color-radish-600 | --color-radish-300 |
|
|
248
|
+
| Token | Light | Dark |
|
|
249
|
+
| -------------------------------- | ------------------ | ------------------ |
|
|
250
|
+
| --color-danger-color | --color-radish-400 | --color-radish-400 |
|
|
251
|
+
| --color-danger-on-color | --color-white | --color-grey-600 |
|
|
252
|
+
| --color-danger-container | --color-radish-200 | --color-radish-500 |
|
|
253
|
+
| --color-danger-on-container | --color-radish-600 | --color-radish-200 |
|
|
254
|
+
| --color-danger-container-variant | --color-radish-100 | --color-radish-600 |
|
|
242
255
|
|
|
243
256
|
#### Warning
|
|
244
257
|
|
|
245
|
-
| Token
|
|
246
|
-
|
|
|
247
|
-
| --color-warning-color
|
|
248
|
-
| --color-warning-on-color
|
|
249
|
-
| --color-warning-container
|
|
250
|
-
| --color-warning-on-container
|
|
251
|
-
| --color-warning-container-variant
|
|
252
|
-
| --color-warning-on-container-variant | --color-banana-600 | --color-banana-300 |
|
|
258
|
+
| Token | Light | Dark |
|
|
259
|
+
| --------------------------------- | ------------------ | ------------------ |
|
|
260
|
+
| --color-warning-color | --color-banana-400 | --color-banana-300 |
|
|
261
|
+
| --color-warning-on-color | --color-white | --color-grey-600 |
|
|
262
|
+
| --color-warning-container | --color-banana-200 | --color-banana-500 |
|
|
263
|
+
| --color-warning-on-container | --color-banana-600 | --color-banana-200 |
|
|
264
|
+
| --color-warning-container-variant | --color-banana-100 | --color-banana-600 |
|
|
253
265
|
|
|
254
266
|
#### Info
|
|
255
267
|
|
|
256
|
-
| Token
|
|
257
|
-
|
|
|
258
|
-
| --color-info-color
|
|
259
|
-
| --color-info-on-color
|
|
260
|
-
| --color-info-container
|
|
261
|
-
| --color-info-on-container
|
|
262
|
-
| --color-info-container-variant
|
|
263
|
-
| --color-info-on-container-variant | --color-blueberry-600 | --color-blueberry-300 |
|
|
268
|
+
| Token | Light | Dark |
|
|
269
|
+
| ------------------------------ | --------------------- | --------------------- |
|
|
270
|
+
| --color-info-color | --color-blueberry-400 | --color-blueberry-300 |
|
|
271
|
+
| --color-info-on-color | --color-white | --color-grey-600 |
|
|
272
|
+
| --color-info-container | --color-blueberry-200 | --color-blueberry-500 |
|
|
273
|
+
| --color-info-on-container | --color-blueberry-600 | --color-blueberry-200 |
|
|
274
|
+
| --color-info-container-variant | --color-blueberry-100 | --color-blueberry-600 |
|
|
264
275
|
|
|
265
276
|
#### Upsell
|
|
266
277
|
|
|
267
|
-
| Token
|
|
268
|
-
|
|
|
269
|
-
| --color-upsell-color
|
|
270
|
-
| --color-upsell-on-color
|
|
271
|
-
| --color-upsell-color-variant
|
|
272
|
-
| --color-upsell-on-color-variant
|
|
273
|
-
| --color-upsell-container
|
|
274
|
-
| --color-upsell-on-container
|
|
275
|
-
| --color-upsell-container-variant
|
|
276
|
-
| --color-upsell-on-container-variant | --color-eggplant-600 | --color-eggplant-300 |
|
|
278
|
+
| Token | Light | Dark |
|
|
279
|
+
| -------------------------------- | -------------------- | -------------------- |
|
|
280
|
+
| --color-upsell-color | --color-eggplant-400 | --color-eggplant-300 |
|
|
281
|
+
| --color-upsell-on-color | --color-white | --color-grey-600 |
|
|
282
|
+
| --color-upsell-color-variant | --color-eggplant-300 | --color-eggplant-300 |
|
|
283
|
+
| --color-upsell-on-color-variant | --color-grey-600 | --color-grey-600 |
|
|
284
|
+
| --color-upsell-container | --color-eggplant-200 | --color-eggplant-500 |
|
|
285
|
+
| --color-upsell-on-container | --color-eggplant-600 | --color-eggplant-200 |
|
|
286
|
+
| --color-upsell-container-variant | --color-eggplant-100 | --color-eggplant-600 |
|
|
277
287
|
|
|
278
288
|
#### Shadow
|
|
279
289
|
|
|
280
|
-
| Token | Light
|
|
281
|
-
| ---------------------- |
|
|
282
|
-
| --color-shadow-overlay |
|
|
283
|
-
| --color-shadow-active | --color-blackberry-400
|
|
290
|
+
| Token | Light | Dark |
|
|
291
|
+
| ---------------------- | ---------------------- | ---------------------- |
|
|
292
|
+
| --color-shadow-overlay | rgba(0,0,0,0.2) | rgba(0,0,0,0.4) |
|
|
293
|
+
| --color-shadow-active | --color-blackberry-400 | --color-blackberry-400 |
|
|
284
294
|
|
|
285
295
|
#### Hover
|
|
286
296
|
|
|
287
|
-
| Token | Light
|
|
288
|
-
| --------------------- |
|
|
289
|
-
| --color-hover-inverse |
|
|
290
|
-
| --color-hover-lighten |
|
|
291
|
-
| --color-hover-darken |
|
|
297
|
+
| Token | Light | Dark |
|
|
298
|
+
| --------------------- | ---------------------- | ---------------------- |
|
|
299
|
+
| --color-hover-inverse | rgba(255,255,255,0.05) | rgba(0,0,0,0.05) |
|
|
300
|
+
| --color-hover-lighten | rgba(255,255,255,0.2) | rgba(0,0,0,0.2) |
|
|
301
|
+
| --color-hover-darken | rgba(0,0,0,0.02) | rgba(255,255,255,0.05) |
|
|
292
302
|
|
|
293
303
|
#### Sequential
|
|
294
304
|
|
|
@@ -405,16 +415,114 @@ Ideally, you won't need to use the typography tokens, as you will be using the S
|
|
|
405
415
|
| --p-font-weight-semibold | 500 |
|
|
406
416
|
| --p-font-weight-bold | 600 |
|
|
407
417
|
|
|
408
|
-
##
|
|
418
|
+
## Dimension
|
|
419
|
+
|
|
420
|
+
Dimension tokens are the primitive scale for every pixel value: spacing, padding, gap, radius, width and height. 1 dimensional unit = 4px (`--dim-3x` = 12px). Exception: `--dim-999x` is a literal 999px (not 999 × 4px), used for fully rounded shapes.
|
|
421
|
+
|
|
422
|
+
Pick a value in this order:
|
|
423
|
+
|
|
424
|
+
1. A semantic token for the property when one fits: `--radius-*` for corners, `--space-*` for space between elements, `--padding-*` for space inside a page.
|
|
425
|
+
2. A `--dim-*` primitive when no semantic token fits.
|
|
426
|
+
3. A hard-coded pixel value only when you need an exact value that is not on the scale, for example to force an alignment. Avoid this whenever possible.
|
|
427
|
+
|
|
428
|
+
Sous Chef keeps these as hard-coded values on purpose, so they do not need a token: border widths, 1px adjustments, sizes off the 4px grid (such as the 38px control height) and widths larger than the scale (above 96px).
|
|
429
|
+
|
|
430
|
+
```css
|
|
431
|
+
width: var(--dim-20x);
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
| Token | Value |
|
|
435
|
+
| ----------- | ----- |
|
|
436
|
+
| --dim-0x | 0px |
|
|
437
|
+
| --dim-0-25x | 1px |
|
|
438
|
+
| --dim-0-5x | 2px |
|
|
439
|
+
| --dim-1x | 4px |
|
|
440
|
+
| --dim-1-5x | 6px |
|
|
441
|
+
| --dim-2x | 8px |
|
|
442
|
+
| --dim-2-5x | 10px |
|
|
443
|
+
| --dim-3x | 12px |
|
|
444
|
+
| --dim-3-5x | 14px |
|
|
445
|
+
| --dim-4x | 16px |
|
|
446
|
+
| --dim-4-5x | 18px |
|
|
447
|
+
| --dim-5x | 20px |
|
|
448
|
+
| --dim-6x | 24px |
|
|
449
|
+
| --dim-7x | 28px |
|
|
450
|
+
| --dim-8x | 32px |
|
|
451
|
+
| --dim-9x | 36px |
|
|
452
|
+
| --dim-10x | 40px |
|
|
453
|
+
| --dim-11x | 44px |
|
|
454
|
+
| --dim-12x | 48px |
|
|
455
|
+
| --dim-13x | 52px |
|
|
456
|
+
| --dim-14x | 56px |
|
|
457
|
+
| --dim-15x | 60px |
|
|
458
|
+
| --dim-16x | 64px |
|
|
459
|
+
| --dim-17x | 68px |
|
|
460
|
+
| --dim-18x | 72px |
|
|
461
|
+
| --dim-19x | 76px |
|
|
462
|
+
| --dim-20x | 80px |
|
|
463
|
+
| --dim-21x | 84px |
|
|
464
|
+
| --dim-22x | 88px |
|
|
465
|
+
| --dim-23x | 92px |
|
|
466
|
+
| --dim-24x | 96px |
|
|
467
|
+
| --dim-999x | 999px |
|
|
468
|
+
|
|
469
|
+
## Radius
|
|
409
470
|
|
|
410
471
|
Most of the time you won't need to use these tokens because it is baked into Sous Chef components (for example, Buttons, Cards, Data Tables, and others). However, if you need to create a custom experience and need to add border radius, then you can use the following tokens:
|
|
411
472
|
|
|
412
|
-
| Token
|
|
413
|
-
|
|
|
414
|
-
| --
|
|
415
|
-
| --
|
|
416
|
-
| --
|
|
417
|
-
| --
|
|
473
|
+
| Token | Primitive | Value |
|
|
474
|
+
| ------------------ | ---------- | ----- |
|
|
475
|
+
| --radius-square | --dim-0x | 0px |
|
|
476
|
+
| --radius-micro | --dim-1-5x | 6px |
|
|
477
|
+
| --radius-component | --dim-2x | 8px |
|
|
478
|
+
| --radius-card | --dim-3x | 12px |
|
|
479
|
+
| --radius-full | --dim-999x | 999px |
|
|
480
|
+
|
|
481
|
+
The `--border-radius-*` tokens are deprecated aliases of the radius tokens and will be removed in the next major. Do NOT use them in new code:
|
|
482
|
+
|
|
483
|
+
| Deprecated token | Replace with | Value |
|
|
484
|
+
| ------------------- | ------------------ | ----- |
|
|
485
|
+
| --border-radius-300 | --radius-micro | 6px |
|
|
486
|
+
| --border-radius-400 | --radius-component | 8px |
|
|
487
|
+
| --border-radius-500 | --radius-card | 12px |
|
|
488
|
+
| --border-radius-600 | --radius-card | 12px |
|
|
489
|
+
|
|
490
|
+
## Space
|
|
491
|
+
|
|
492
|
+
Space tokens set the gap between elements (`gap`, `margin`): page (between the page header and each section, and between sections), section (between the elements inside a section, such as cards side by side or stacked; not between the section title and its content) and content (between the parts inside a single component or piece of content, such as a card or modal, `xs` to `xl`).
|
|
493
|
+
|
|
494
|
+
In Sous Chef, the `Stack` and `Inline` components put elements in a stack or side by side, and they have a `space` prop. The default is `20px` (same as `--space-section-default`) if not passed. For example:
|
|
495
|
+
|
|
496
|
+
```tsx
|
|
497
|
+
import React from 'react';
|
|
498
|
+
import { Card, Stack } from '@7shifts/sous-chef';
|
|
499
|
+
|
|
500
|
+
export const Example = () => (
|
|
501
|
+
<Stack space={12}>
|
|
502
|
+
<Card>Card 1</Card>
|
|
503
|
+
<Card>Card 2</Card>
|
|
504
|
+
</Stack>
|
|
505
|
+
);
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
| Token | Primitive | Value |
|
|
509
|
+
| ----------------------- | --------- | ----- |
|
|
510
|
+
| --space-page-default | --dim-10x | 40px |
|
|
511
|
+
| --space-section-default | --dim-5x | 20px |
|
|
512
|
+
| --space-content-xs | --dim-1x | 4px |
|
|
513
|
+
| --space-content-sm | --dim-2x | 8px |
|
|
514
|
+
| --space-content-md | --dim-3x | 12px |
|
|
515
|
+
| --space-content-lg | --dim-4x | 16px |
|
|
516
|
+
| --space-content-xl | --dim-5x | 20px |
|
|
517
|
+
|
|
518
|
+
## Padding
|
|
519
|
+
|
|
520
|
+
Padding tokens set the space inside a container. Use `--padding-page-default` for regular pages and `--padding-page-tight` where horizontal room is limited. Sections have no padding of their own.
|
|
521
|
+
|
|
522
|
+
| Token | Primitive | Value |
|
|
523
|
+
| ---------------------- | --------- | ----- |
|
|
524
|
+
| --padding-page-default | --dim-8x | 32px |
|
|
525
|
+
| --padding-page-tight | --dim-5x | 20px |
|
|
418
526
|
|
|
419
527
|
## Z-index
|
|
420
528
|
|
|
@@ -429,48 +537,3 @@ Use these tokens to keep stacking contexts consistent. Prefer them over hardcode
|
|
|
429
537
|
| --z-index-dropdown-level-2 | 210 |
|
|
430
538
|
| --z-index-tooltip | 300 |
|
|
431
539
|
| --z-index-portal | 9999 |
|
|
432
|
-
|
|
433
|
-
## Spacing
|
|
434
|
-
|
|
435
|
-
We don't have defined tokens for spacing, such as padding, margin, gap, and others. However, always use a spacing unit of `4px`, for example:
|
|
436
|
-
|
|
437
|
-
```
|
|
438
|
-
margin: 4px;
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
In Sous Chef, we have the `Stack` and `Inline` components that are responsible for putting elements in a stack or side by side, and they have a `space` prop. The default is `20px` if not passed. For example:
|
|
442
|
-
|
|
443
|
-
```
|
|
444
|
-
<Stack space={12}>
|
|
445
|
-
<Card>Card 1</Card>
|
|
446
|
-
<Card>Card 2</Card>
|
|
447
|
-
</Stack>
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
In the application level, it might be available a SCSS variable for spacing:
|
|
451
|
-
|
|
452
|
-
```
|
|
453
|
-
// Space based on a 4px multiplier.
|
|
454
|
-
$space-1x: 4px;
|
|
455
|
-
$space-2x: $space-1x * 2;
|
|
456
|
-
$space-3x: $space-1x * 3;
|
|
457
|
-
$space-4x: $space-1x * 4;
|
|
458
|
-
$space-5x: $space-1x * 5;
|
|
459
|
-
$space-6x: $space-1x * 6;
|
|
460
|
-
$space-7x: $space-1x * 7;
|
|
461
|
-
$space-8x: $space-1x * 8;
|
|
462
|
-
$space-9x: $space-1x * 9;
|
|
463
|
-
$space-10x: $space-1x * 10;
|
|
464
|
-
$space-11x: $space-1x * 11;
|
|
465
|
-
$space-12x: $space-1x * 12;
|
|
466
|
-
$space-13x: $space-1x * 13;
|
|
467
|
-
$space-14x: $space-1x * 14;
|
|
468
|
-
$space-15x: $space-1x * 15;
|
|
469
|
-
$space-16x: $space-1x * 16;
|
|
470
|
-
$space-17x: $space-1x * 17;
|
|
471
|
-
$space-18x: $space-1x * 18;
|
|
472
|
-
$space-19x: $space-1x * 19;
|
|
473
|
-
$space-20x: $space-1x * 20;
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
If there is a spacing variable available, then prefer using it instead of a hardcoded value.
|
|
@@ -11,8 +11,11 @@ The foundational design decisions and values that ensure consistency across the
|
|
|
11
11
|
- Key features:
|
|
12
12
|
- Color tokens (background, text, border, etc.)
|
|
13
13
|
- Typography tokens (font size, line height, font weight)
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- Dimension tokens (`--dim-*`, the 4px scale behind every pixel value)
|
|
15
|
+
- Border radius tokens (`--radius-*`)
|
|
16
|
+
- Space tokens (`--space-*`, the gap between elements)
|
|
17
|
+
- Padding tokens (`--padding-*`, the space inside a page)
|
|
18
|
+
- Z-index tokens
|
|
16
19
|
|
|
17
20
|
## Components
|
|
18
21
|
|
|
@@ -25,11 +28,11 @@ Building block components made in React for creating consistent user interfaces.
|
|
|
25
28
|
- Controls (DateFilter, SegmentedControl, ToolbarSelect)
|
|
26
29
|
- Empty States (EmptyState, Paywall)
|
|
27
30
|
- Feedback (CircularProgress, InlineBanner, MicroBanner, PersistentBanner, ProgressBar, Skeleton, Spinner, Toast)
|
|
28
|
-
- Forms (AsyncSelectField, CheckboxField, ColorField, CurrencyField, DateField, DateRangeField, SelectField, TextField, and others)
|
|
29
|
-
- Media (Avatar, Badge, Chip, Pill)
|
|
30
|
-
- Layout (
|
|
31
|
-
- Lists (Accordion, ActionList, DataTable)
|
|
32
|
-
- Navigation (Breadcrumbs)
|
|
31
|
+
- Forms (Form, FormRow, FormSection, FormFooter, AsyncSelectField, CheckboxField, ColorField, CurrencyField, DateField, DateRangeField, SelectField, TextField, and others)
|
|
32
|
+
- Media (Avatar, Badge, Chip, Pill, ShortcutKey)
|
|
33
|
+
- Layout (Card, Inline, Page, PageLayout, Stack, and the deprecated CalloutCard)
|
|
34
|
+
- Lists (Accordion, ActionList, BasicTable, DataTable)
|
|
35
|
+
- Navigation (Breadcrumbs, PrimaryNav, Tabs)
|
|
33
36
|
- Overlay (Calendar, Dropdown, HintModal, Modal, Popover, Tooltip)
|
|
34
37
|
- Typography (Text)
|
|
35
38
|
|
|
@@ -54,25 +57,6 @@ Practical examples with code snippets on how to compose some common interfaces.
|
|
|
54
57
|
- Forms
|
|
55
58
|
- Data Tables (list of data)
|
|
56
59
|
|
|
57
|
-
##
|
|
60
|
+
## Constraints and missing components
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Here are the missing components:
|
|
62
|
-
|
|
63
|
-
- Tab
|
|
64
|
-
- Full screen modals
|
|
65
|
-
- File upload form field
|
|
66
|
-
- Grid system
|
|
67
|
-
- App layout structure (something with slots for top bar, left nav and content)
|
|
68
|
-
|
|
69
|
-
## Constraints
|
|
70
|
-
|
|
71
|
-
To ensure the generated code is consistent, follow these rules:
|
|
72
|
-
|
|
73
|
-
- Don't use hardcoded color hashes. Always use a semantic color token ([reference to color tokens](llms-tokens.md)).
|
|
74
|
-
- Not everything needs to use a Sous Chef component. If you notice something is missing in Sous Chef, you can treat that as custom UI to solve a specific problem. In this case:
|
|
75
|
-
- Structure the component in isolation (separate folder, with its own style file, and tests)
|
|
76
|
-
- Make sure it uses the Sous Chef design tokens
|
|
77
|
-
- For text, always try to use the props for the component, for example, the `TextField` component takes a `label` prop for the text, the same goes for other components.
|
|
78
|
-
- If there is no prop for the text, DON'T use `p`, `h1`, `h2`, `h3`, and others. Instead, use the `<Text>` component, which exposes the `as` prop, for example `<Text as="h1">Title</Text>`.
|
|
62
|
+
Before writing code, read the Constraints and Missing components sections at the top of the [Components Documentation](llms-components.md) (the `get_components_reference` MCP tool). They are the rules for generating Sous Chef code and the list of components the library doesn't have.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7shifts/sous-chef",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
4
4
|
"description": "7shifts component library",
|
|
5
5
|
"author": "7shifts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build-colors": "./scripts/tokens/build-colors.sh",
|
|
23
23
|
"build-zindexes": "./scripts/tokens/build-z-indexes.sh",
|
|
24
24
|
"build:analytics": "node ./scripts/build-analytics.js",
|
|
25
|
-
"build-llms": "run-s build-llms-components build-llms-icons-and-illustrations build-llms-tokens
|
|
25
|
+
"build-llms": "run-s build-llms-components build-llms-guidelines build-llms-icons-and-illustrations build-llms-tokens",
|
|
26
26
|
"build-llms-components": "node ./scripts/build-llms-components.js",
|
|
27
27
|
"build-llms-icons-and-illustrations": "node ./scripts/build-llms-icons-and-illustrations.js",
|
|
28
28
|
"build-llms-tokens": "node ./scripts/build-llms-tokens.js",
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/Ink3DGlasses.d.ts
RENAMED
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkAmusementPark.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCardGames.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDiscoBall.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkFirecracker.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMagicTricks.d.ts
RENAMED
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMascarade.d.ts
RENAMED
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkNotesChart.d.ts
RENAMED
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkRollerSkating.d.ts
RENAMED
|
File without changes
|
/package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkSlotMachine.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|