@7shifts/sous-chef 4.4.1 → 4.5.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.
Files changed (53) hide show
  1. package/dist/forms/ColorField/ColorOverlay/ColorOverlay.d.ts +1 -1
  2. package/dist/forms/ColorField/ColorOverlay/domain.d.ts +27 -0
  3. package/dist/foundation/tokens/color/color-constants.d.ts +23 -0
  4. package/dist/foundation/tokens/color/color-types.d.ts +1 -1
  5. package/dist/icons/components/image/IconSchool.d.ts +10 -0
  6. package/dist/icons/components/image/index.d.ts +1 -0
  7. package/dist/index.css +69 -139
  8. package/dist/index.css.map +1 -1
  9. package/dist/index.js +542 -362
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.modern.js +534 -363
  12. package/dist/index.modern.js.map +1 -1
  13. package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +3 -1
  14. package/dist/overlay/hooks/useSubmenu.d.ts +1 -0
  15. package/llms-instructions/guidelines/Accordion.guidelines.md +36 -0
  16. package/llms-instructions/guidelines/ActionList.guidelines.md +59 -0
  17. package/llms-instructions/guidelines/Avatar.guidelines.md +51 -0
  18. package/llms-instructions/guidelines/Badge.guidelines.md +40 -0
  19. package/llms-instructions/guidelines/Breadcrumbs.guidelines.md +41 -0
  20. package/llms-instructions/guidelines/Button.guidelines.md +41 -0
  21. package/llms-instructions/guidelines/Calendar.guidelines.md +40 -0
  22. package/llms-instructions/guidelines/Card.guidelines.md +58 -0
  23. package/llms-instructions/guidelines/Chip.guidelines.md +64 -0
  24. package/llms-instructions/guidelines/CircularProgress.guidelines.md +28 -0
  25. package/llms-instructions/guidelines/DataTable.guidelines.md +88 -0
  26. package/llms-instructions/guidelines/DateFilter.guidelines.md +32 -0
  27. package/llms-instructions/guidelines/Dropdown.guidelines.md +54 -0
  28. package/llms-instructions/guidelines/EmptyState.guidelines.md +58 -0
  29. package/llms-instructions/guidelines/Forms.guidelines.md +99 -0
  30. package/llms-instructions/guidelines/HintModal.guidelines.md +47 -0
  31. package/llms-instructions/guidelines/Icons.guidelines.md +59 -0
  32. package/llms-instructions/guidelines/InkIllustrations.guidelines.md +38 -0
  33. package/llms-instructions/guidelines/InlineBanner.guidelines.md +52 -0
  34. package/llms-instructions/guidelines/Link.guidelines.md +26 -0
  35. package/llms-instructions/guidelines/MicroBanner.guidelines.md +21 -0
  36. package/llms-instructions/guidelines/Modal.guidelines.md +52 -0
  37. package/llms-instructions/guidelines/PaginationControls.guidelines.md +21 -0
  38. package/llms-instructions/guidelines/Paywall.guidelines.md +57 -0
  39. package/llms-instructions/guidelines/PersistentBanner.guidelines.md +33 -0
  40. package/llms-instructions/guidelines/Pill.guidelines.md +55 -0
  41. package/llms-instructions/guidelines/Popover.guidelines.md +42 -0
  42. package/llms-instructions/guidelines/ProgressBar.guidelines.md +35 -0
  43. package/llms-instructions/guidelines/SegmentedControl.guidelines.md +21 -0
  44. package/llms-instructions/guidelines/Skeleton.guidelines.md +30 -0
  45. package/llms-instructions/guidelines/Spinner.guidelines.md +32 -0
  46. package/llms-instructions/guidelines/Toast.guidelines.md +34 -0
  47. package/llms-instructions/guidelines/Toggle.guidelines.md +19 -0
  48. package/llms-instructions/guidelines/ToolbarSelect.guidelines.md +22 -0
  49. package/llms-instructions/guidelines/Tooltip.guidelines.md +45 -0
  50. package/llms-instructions/llms-components.md +61 -261
  51. package/llms-instructions/llms-icons-and-illustrations.md +2 -0
  52. package/llms-instructions/llms-tokens.md +97 -16
  53. package/package.json +6 -1
@@ -1,3 +1,5 @@
1
+ <!-- AUTO-GENERATED by scripts/build-llms-tokens.js. Do not edit manually. Run `yarn build-llms-tokens` to regenerate. -->
2
+
1
3
  # Sous Chef Design System Tokens
2
4
 
3
5
  Design tokens are the single source of truth to name and store design decisions, including colors, typography, spacing, and other design primitives. Tokens are available as CSS custom properties and as JavaScript constants.
@@ -143,13 +145,13 @@ Here is some information about common words you'll see across our color roles:
143
145
 
144
146
  | Token | Light | Dark |
145
147
  | ------------------------------------------ | ------------------------------------ | ------------------------------------ |
146
- | --color-surface-color | --color-white | --color-grey-600 |
147
- | --color-surface-color-dim | --color-eggshell | --color-coal |
148
148
  | --color-surface-color-overlay | --color-neutral-black-transparent-20 | rgba(0,0,0,0.5) |
149
+ | --color-surface-color-dim | --color-eggshell | --color-coal |
150
+ | --color-surface-color | --color-white | --color-grey-600 |
151
+ | --color-surface-on-color-disabled | --color-neutral-black-transparent-20 | --color-neutral-white-transparent-30 |
152
+ | --color-surface-on-color-subtle | --color-grey-400 | --color-grey-300 |
149
153
  | --color-surface-on-color | --color-grey-500 | --color-grey-100 |
150
154
  | --color-surface-on-color-bold | --color-grey-600 | --color-white |
151
- | --color-surface-on-color-subtle | --color-grey-400 | --color-grey-300 |
152
- | --color-surface-on-color-disabled | --color-neutral-black-transparent-20 | --color-neutral-white-transparent-30 |
153
155
  | --color-surface-container | --color-white | --color-grey-600 |
154
156
  | --color-surface-container-high | --color-grey-100 | --color-grey-500 |
155
157
  | --color-surface-container-highest | --color-grey-200 | --color-grey-400 |
@@ -284,18 +286,79 @@ Outline color tokens are used for borders.
284
286
 
285
287
  | Token | Light | Dark |
286
288
  | --------------------- | ------------------------------------ | ------------------------------------ |
287
- | --color-hover-darken | --color-neutral-black-transparent-05 | --color-neutral-white-transparent-05 |
288
- | --color-hover-lighten | --color-neutral-white-transparent-20 | --color-neutral-black-transparent-20 |
289
289
  | --color-hover-inverse | --color-neutral-white-transparent-05 | --color-neutral-black-transparent-05 |
290
+ | --color-hover-lighten | --color-neutral-white-transparent-20 | --color-neutral-black-transparent-20 |
291
+ | --color-hover-darken | --color-neutral-black-transparent-05 | --color-neutral-white-transparent-05 |
290
292
 
291
- #### Brand & Graphic
292
-
293
- | Token | Light | Dark |
294
- | ---------------------------------------- | ------------- | ------------- |
295
- | --color-brand-neutrals-caviar-dynamic | --color-black | --color-white |
296
- | --color-brand-neutrals-chefscoat-dynamic | --color-white | --color-black |
297
- | --color-on-graphic-black | --color-black | --color-black |
298
- | --color-on-graphic-white | --color-white | --color-white |
293
+ #### Sequential
294
+
295
+ Used for data visualization such as charts and graphs.
296
+
297
+ | Token | Light | Dark |
298
+ | -------------- | ------- | ------- |
299
+ | --color-seq-1 | #00b5d8 | #28d2f3 |
300
+ | --color-seq-2 | #f9922b | #f9ad61 |
301
+ | --color-seq-3 | #28cc6d | #31e17b |
302
+ | --color-seq-4 | #d83f87 | #ef5ca1 |
303
+ | --color-seq-5 | #4359ce | #7288ff |
304
+ | --color-seq-6 | #ff6f61 | #ff867a |
305
+ | --color-seq-7 | #35e5c6 | #43f2d3 |
306
+ | --color-seq-8 | #a966e7 | #cb93ff |
307
+ | --color-seq-9 | #905642 | #b66d54 |
308
+ | --color-seq-10 | #ffb300 | #ffc437 |
309
+ | --color-seq-11 | #708238 | #8a9c52 |
310
+ | --color-seq-12 | #4fc3f7 | #8adbff |
311
+ | --color-seq-13 | #e94057 | #fa5c71 |
312
+ | --color-seq-14 | #00a896 | #15c7b4 |
313
+ | --color-seq-15 | #6a4c93 | #a978ec |
314
+ | --color-seq-16 | #a3cb38 | #aed83e |
315
+ | --color-seq-17 | #546e7a | #82adc0 |
316
+ | --color-seq-18 | #fc9999 | #ffa9a9 |
317
+ | --color-seq-19 | #2f80ed | #4594ff |
318
+ | --color-seq-20 | #be3434 | #e45555 |
319
+
320
+ #### Brand
321
+
322
+ | Token | Light | Dark |
323
+ | ---------------------------------------- | ---------------------- | ---------------------- |
324
+ | --color-brand-neutrals-caviar-dynamic | --color-black | --color-white |
325
+ | --color-brand-neutrals-caviar-hue | --color-black | --color-black |
326
+ | --color-brand-neutrals-chefscoat-dynamic | --color-white | --color-black |
327
+ | --color-brand-neutrals-chefscoat-hue | --color-white | --color-white |
328
+ | --color-brand-neutrals-marshmallow-hue | --color-oat-100 | --color-oat-100 |
329
+ | --color-brand-neutrals-oat-hue | --color-oat-200 | --color-oat-200 |
330
+ | --color-brand-neutrals-earl-hue | --color-oat-400 | --color-oat-400 |
331
+ | --color-brand-primary-spritz-hue | --color-tangerine-400 | --color-tangerine-400 |
332
+ | --color-brand-primary-spritz-tint | --color-tangerine-300 | --color-tangerine-300 |
333
+ | --color-brand-primary-spritz-shade | --color-tangerine-500 | --color-tangerine-500 |
334
+ | --color-brand-primary-curacao-hue | --color-blackberry-400 | --color-blackberry-400 |
335
+ | --color-brand-primary-curacao-tint | --color-blackberry-300 | --color-blackberry-300 |
336
+ | --color-brand-primary-curacao-shade | --color-blackberry-500 | --color-blackberry-500 |
337
+ | --color-brand-primary-mojito-hue | --color-lime-400 | --color-lime-400 |
338
+ | --color-brand-primary-mojito-tint | --color-lime-300 | --color-lime-300 |
339
+ | --color-brand-primary-mojito-shade | --color-lime-500 | --color-lime-500 |
340
+ | --color-brand-primary-empress-hue | --color-eggplant-400 | --color-eggplant-400 |
341
+ | --color-brand-primary-empress-tint | --color-eggplant-300 | --color-eggplant-300 |
342
+ | --color-brand-primary-empress-shade | --color-eggplant-500 | --color-eggplant-500 |
343
+ | --color-brand-secondary-ice-hue | --color-blackberry-200 | --color-blackberry-200 |
344
+ | --color-brand-secondary-zest-hue | --color-lime-200 | --color-lime-200 |
345
+ | --color-brand-secondary-lavender-hue | --color-eggplant-200 | --color-eggplant-200 |
346
+ | --color-brand-secondary-ranch-hue | --color-blackberry-600 | --color-blackberry-600 |
347
+ | --color-brand-secondary-pesto-hue | --color-lime-600 | --color-lime-600 |
348
+ | --color-brand-secondary-babaganoush-hue | --color-eggplant-600 | --color-eggplant-600 |
349
+
350
+ #### Graphic
351
+
352
+ | Token | Light | Dark |
353
+ | ------------------------ | ------------- | ------------- |
354
+ | --color-on-graphic-black | --color-black | --color-black |
355
+ | --color-on-graphic-white | --color-white | --color-white |
356
+
357
+ #### Canvas
358
+
359
+ | Token | Light | Dark |
360
+ | ------------------------------- | ------------- | ------- |
361
+ | --color-canvas-background-color | --color-white | #2c2c2c |
299
362
 
300
363
  ## Typography
301
364
 
@@ -336,10 +399,14 @@ Ideally, you won't need to use the typography tokens, as you will be using the S
336
399
 
337
400
  | Token | Value |
338
401
  | ------------------------ | ----- |
339
- | --p-font-weight-light | 300 |
340
- | --p-font-weight-normal | 400 |
402
+ | --p-font-weight-thin | 100 |
403
+ | --p-font-weight-light | 200 |
404
+ | --p-font-weight-normal | 300 |
405
+ | --p-font-weight-medium | 400 |
341
406
  | --p-font-weight-semibold | 500 |
342
407
  | --p-font-weight-bold | 600 |
408
+ | --p-font-weight-heavy | 700 |
409
+ | --p-font-weight-black | 800 |
343
410
 
344
411
  ## Border radius
345
412
 
@@ -351,6 +418,20 @@ Most of the time you won't need to use these tokens because it is baked into Sou
351
418
  | --border-radius-400 | 8px |
352
419
  | --border-radius-600 | 20px |
353
420
 
421
+ ## Z-index
422
+
423
+ Use these tokens to keep stacking contexts consistent. Prefer them over hardcoded `z-index` values so overlays, modals, and tooltips layer correctly.
424
+
425
+ | Token | Value |
426
+ | -------------------------- | ----- |
427
+ | --z-index-base | 1 |
428
+ | --z-index-nav | 7 |
429
+ | --z-index-modal | 100 |
430
+ | --z-index-dropdown | 200 |
431
+ | --z-index-dropdown-level-2 | 210 |
432
+ | --z-index-tooltip | 300 |
433
+ | --z-index-portal | 9999 |
434
+
354
435
  ## Spacing
355
436
 
356
437
  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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "4.4.1",
3
+ "version": "4.5.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -21,6 +21,11 @@
21
21
  "build-tokens": "./scripts/build-tokens.sh",
22
22
  "build-colors": "./scripts/tokens/build-colors.sh",
23
23
  "build-zindexes": "./scripts/tokens/build-z-indexes.sh",
24
+ "build-llms": "run-s build-llms-components build-llms-icons-and-illustrations build-llms-tokens build-llms-guidelines",
25
+ "build-llms-components": "node ./scripts/build-llms-components.js",
26
+ "build-llms-icons-and-illustrations": "node ./scripts/build-llms-icons-and-illustrations.js",
27
+ "build-llms-tokens": "node ./scripts/build-llms-tokens.js",
28
+ "build-llms-guidelines": "node ./scripts/build-llms-guidelines.js",
24
29
  "link-local": "./scripts/link-local.sh",
25
30
  "unlink-local": "./scripts/unlink-local.sh",
26
31
  "test": "run-s test:unit test:lint test:build",