cetec-design-system 1.2.2-next.0 → 1.3.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 (81) hide show
  1. package/README.md +8 -0
  2. package/dist/{cetec-preset-D3bQHejk.js → cetec-preset-DoOSSOUC.js} +4688 -3924
  3. package/dist/cetec-preset-DoOSSOUC.js.map +1 -0
  4. package/dist/icon-metadata.json +22 -0
  5. package/dist/index.js +14547 -8587
  6. package/dist/index.js.map +1 -1
  7. package/dist/panda.buildinfo.json +1389 -297
  8. package/dist/playroom-static.css +67682 -176791
  9. package/dist/preset.js +1 -1
  10. package/dist/specs/color-palette.json +2 -10
  11. package/dist/specs/conditions.json +24 -0
  12. package/dist/specs/keyframes.json +11 -0
  13. package/dist/specs/recipes.json +386 -149
  14. package/dist/specs/semantic-tokens.json +560 -55
  15. package/dist/specs/text-styles.json +144 -0
  16. package/dist/specs/tokens.json +143 -163
  17. package/dist/sprite.svg +1 -1
  18. package/dist/sprite.symbol.html +57 -2
  19. package/dist/styles.css +15669 -3841
  20. package/dist/svgs/barcode-off.svg +1 -0
  21. package/dist/svgs/barcode.svg +1 -1
  22. package/dist/svgs/spinner.svg +1 -0
  23. package/dist/types/index.d.ts +3238 -230
  24. package/dist/types/preset.d.ts +15 -0
  25. package/package.json +5 -2
  26. package/src/recipes/autocomplete.ts +254 -0
  27. package/src/recipes/avatar.ts +13 -35
  28. package/src/recipes/badge.ts +24 -42
  29. package/src/recipes/breakpointIndicator.ts +26 -0
  30. package/src/recipes/button.ts +135 -155
  31. package/src/recipes/calendar.ts +92 -0
  32. package/src/recipes/card.ts +3 -63
  33. package/src/recipes/checkbox.ts +13 -2
  34. package/src/recipes/chip.ts +184 -151
  35. package/src/recipes/dateMenus.ts +40 -0
  36. package/src/recipes/dateTimeMenus.ts +43 -0
  37. package/src/recipes/formField.ts +2 -1
  38. package/src/recipes/icon.ts +13 -3
  39. package/src/recipes/kbd.ts +53 -0
  40. package/src/recipes/list.ts +8 -1
  41. package/src/recipes/listDensity.ts +58 -0
  42. package/src/recipes/listItem.ts +22 -160
  43. package/src/recipes/listItemGroup.ts +11 -39
  44. package/src/recipes/menu.ts +0 -286
  45. package/src/recipes/modal.ts +51 -53
  46. package/src/recipes/radio.ts +3 -0
  47. package/src/recipes/recipes-regular.ts +2 -2
  48. package/src/recipes/recipes-slot.ts +11 -2
  49. package/src/recipes/segmentedFields.ts +192 -0
  50. package/src/recipes/segmentedInputs.ts +106 -0
  51. package/src/recipes/select.ts +268 -0
  52. package/src/recipes/skeleton.ts +73 -0
  53. package/src/recipes/spinner.ts +37 -29
  54. package/src/recipes/tag.ts +1 -0
  55. package/src/recipes/text.ts +4 -6
  56. package/src/recipes/textInput.ts +86 -116
  57. package/src/recipes/timeMenus.ts +110 -0
  58. package/src/styles/primitives/animations.ts +3 -0
  59. package/src/styles/primitives/colors.ts +26 -48
  60. package/src/styles/primitives/shadows.ts +12 -64
  61. package/src/styles/primitives/sizes.ts +1 -0
  62. package/src/styles/semantics/colors.ts +186 -0
  63. package/src/styles/semantics/fontSizes.ts +60 -0
  64. package/src/styles/semantics/index.ts +1 -0
  65. package/src/styles/semantics/shadows.ts +5 -18
  66. package/src/styles/utilities/conditions.ts +2 -0
  67. package/src/styles/utilities/dropShadows.ts +45 -0
  68. package/src/styles/utilities/filters.ts +4 -0
  69. package/src/styles/utilities/index.ts +2 -0
  70. package/src/styles/utilities/keyframes.ts +16 -8
  71. package/src/styles/utilities/shadowDefinitions.ts +75 -0
  72. package/src/styles/utilities/textStyles.ts +168 -34
  73. package/src/styles/utilities/transitions.ts +2 -1
  74. package/src/utils/dsChain.ts +83 -0
  75. package/src/utils/dsComponent.ts +44 -0
  76. package/src/utils/dsPart.ts +41 -0
  77. package/src/utils/splitProps.ts +15 -0
  78. package/src/utils/useControllableState.ts +35 -0
  79. package/dist/cetec-preset-D3bQHejk.js.map +0 -1
  80. package/src/recipes/datePicker.ts +0 -223
  81. package/src/recipes/timePicker.ts +0 -199
package/README.md CHANGED
@@ -104,6 +104,8 @@ This design system is built on **Panda CSS** with a strict tokens-first approach
104
104
  - Type props with TypeScript strict mode
105
105
  - Style with Panda recipes (no inline styles or hard-coded values)
106
106
  - Follow accessibility guidelines (semantic HTML, keyboard support, ARIA when needed)
107
+ - Native form controls support both controlled and uncontrolled usage where it fits the element semantics. Use `checked` / `value` when React owns the state, and `defaultChecked` / `defaultValue` / `defaultOpen` when the browser or widget should own the initial state.
108
+ - Binary and group-based controls (`Checkbox`, `Radio`, `Toggle`, `Select`, `DatePicker`, `TimePicker`, `ChipGroup`) now expose explicit uncontrolled entrypoints so static pages can avoid hydration when they do not need React state.
107
109
 
108
110
  Also see [Component Standards](./src/storybook/docs/componentStandards.mdx)
109
111
 
@@ -177,11 +179,15 @@ Packages are published from the repo root with `dist` included in the published
177
179
 
178
180
  - **Workflow trigger**: Every push to `main` runs the release workflow.
179
181
  - **Automatic labels**: PR title labels are synced automatically from the Conventional Commit title.
182
+ - **Merge strategy**: Release resolution assumes squash merges and reads the PR number from the squash commit title when possible.
180
183
  - **Publishing behavior**: A merged change that resolves to a releasable bump publishes a prerelease by default. Add the `release` label to graduate that merge to a stable `latest` release.
181
184
  - **Version bump labels**: `major`, `minor`, and `patch` remain manual labels.
182
185
  - **Default bump**: If the merged PR has no semver label, Auto will not publish a release.
183
186
  - **No-release labels**: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, and `revert` are changelog labels. They do not publish on their own unless paired with a semver label.
184
187
  - **Skip label**: Use `skip-release` to prevent publishing.
188
+ - **Version source of truth**: Publish version selection is based on versions already published to npm. `package.json` is only a fallback when there is no published history yet.
189
+ - **Stable releases**: A `release` label promotes the PR’s semver bump from the highest published stable version.
190
+ - **Prereleases**: Without `release`, the workflow bumps from the highest published version overall, including existing prereleases, then publishes the next prerelease for that line.
185
191
  - **Changelog**: Auto-generated based on PR labels and titles
186
192
  - **PR Titles**: Must follow our defined format for Auto release automation:
187
193
 
@@ -254,6 +260,8 @@ Examples:
254
260
  - `refactor(major)!: break input API` => label `refactor`, no publish until a semver label is added
255
261
  - `feat: add modal` + manual `minor` label => prerelease minor
256
262
  - `feat: add modal` + manual `minor` + `release` labels => stable minor release
263
+ - highest published version `2.0.0-next.0` + manual `patch` label => `2.0.1-next.0`
264
+ - highest published stable version `2.0.0` + manual `patch` + `release` labels => `2.0.1`
257
265
  - `skip-release` => no publish
258
266
 
259
267
  See `.autorc` for the complete configuration.