@zazz-ui/core 0.12.2 → 0.13.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 (86) hide show
  1. package/AUTHORING.md +6 -6
  2. package/CHANGELOG.md +51 -0
  3. package/README.md +8 -6
  4. package/dist/sri.json +53 -53
  5. package/dist/zazz.css +1 -1
  6. package/dist/zazz.js +1 -1
  7. package/editor/zazz.css-data.json +1254 -3556
  8. package/editor/zazz.html-data.json +9 -0
  9. package/editor/zazz.language-data.json +48 -11
  10. package/editor/zazz.lint-data.json +1141 -1110
  11. package/package.json +5 -5
  12. package/src/base/_defaults.css +0 -83
  13. package/src/base/_properties-2xl.css +0 -8
  14. package/src/base/_properties-active.css +0 -4
  15. package/src/base/_properties-checked.css +0 -4
  16. package/src/base/_properties-current.css +0 -4
  17. package/src/base/_properties-disabled.css +0 -4
  18. package/src/base/_properties-focus-visible.css +0 -4
  19. package/src/base/_properties-focus-within.css +0 -4
  20. package/src/base/_properties-hover.css +0 -4
  21. package/src/base/_properties-lg.css +0 -8
  22. package/src/base/_properties-md.css +0 -8
  23. package/src/base/_properties-open.css +0 -4
  24. package/src/base/_properties-sm.css +0 -8
  25. package/src/base/_properties-starting.css +0 -26
  26. package/src/base/_properties-stuck.css +0 -2
  27. package/src/base/_properties-xl.css +0 -8
  28. package/src/base/_properties.css +23 -0
  29. package/src/base/_utilities-box.css +1 -6
  30. package/src/base/_utilities-color.css +1 -1
  31. package/src/base/_utilities-effects.css +7 -7
  32. package/src/base/_utilities-flow.css +54 -11
  33. package/src/base/_utilities-grid.css +5 -85
  34. package/src/base/_utilities-tier-2xl.css +0 -4
  35. package/src/base/_utilities-tier-active.css +0 -2
  36. package/src/base/_utilities-tier-checked.css +0 -2
  37. package/src/base/_utilities-tier-current.css +0 -2
  38. package/src/base/_utilities-tier-disabled.css +0 -2
  39. package/src/base/_utilities-tier-focus-visible.css +0 -2
  40. package/src/base/_utilities-tier-focus-within.css +0 -2
  41. package/src/base/_utilities-tier-hover.css +0 -2
  42. package/src/base/_utilities-tier-lg.css +0 -4
  43. package/src/base/_utilities-tier-md.css +0 -4
  44. package/src/base/_utilities-tier-open.css +0 -2
  45. package/src/base/_utilities-tier-sm.css +0 -4
  46. package/src/base/_utilities-tier-starting.css +0 -13
  47. package/src/base/_utilities-tier-stuck.css +0 -1
  48. package/src/base/_utilities-tier-xl.css +0 -4
  49. package/src/base/_utilities-typography.css +4 -8
  50. package/src/base/embla.d.ts.map +1 -1
  51. package/src/base/embla.js +223 -65
  52. package/src/base/embla.ts +245 -62
  53. package/src/base/kit-styling.d.ts.map +1 -1
  54. package/src/base/kit-styling.js +154 -150
  55. package/src/base/kit-styling.ts +154 -150
  56. package/src/base/utilities.d.ts +23 -7
  57. package/src/base/utilities.d.ts.map +1 -1
  58. package/src/base/utilities.js +91 -22
  59. package/src/base/utilities.ts +101 -23
  60. package/src/head.js +8 -8
  61. package/src/head.ts +8 -8
  62. package/src/manifest.d.ts.map +1 -1
  63. package/src/manifest.js +7 -1
  64. package/src/manifest.ts +7 -1
  65. package/src/primitives/carousel/carousel.css +4 -3
  66. package/src/primitives/carousel/carousel.d.ts +2 -1
  67. package/src/primitives/carousel/carousel.d.ts.map +1 -1
  68. package/src/primitives/carousel/carousel.js +2 -1
  69. package/src/primitives/carousel/carousel.ts +2 -1
  70. package/src/primitives/debug/audit-core.d.ts.map +1 -1
  71. package/src/primitives/debug/audit-core.js +46 -4
  72. package/src/primitives/debug/audit-core.ts +53 -4
  73. package/src/primitives/lightbox/lightbox.js +2 -2
  74. package/src/primitives/lightbox/lightbox.ts +2 -2
  75. package/src/primitives/slider/slider.css +7 -2
  76. package/src/primitives/switch/switch.css +26 -3
  77. package/src/primitives/tabs/tabs-underline.html +117 -0
  78. package/src/primitives/tabs/tabs.css +119 -27
  79. package/src/primitives/toggle/toggle.css +153 -40
  80. package/src/primitives/utilities/flex-direction.html +1 -1
  81. package/src/primitives/utilities/flex-reverse.html +136 -0
  82. package/src/primitives/utilities/gallery.html +289 -0
  83. package/src/primitives/utilities/inline-flex.html +45 -0
  84. package/src/primitives/utilities/subgrid-col.html +109 -0
  85. package/src/primitives/utilities/subgrid-row.html +98 -0
  86. package/src/primitives/utilities/subgrid.html +135 -0
@@ -1575,6 +1575,15 @@
1575
1575
  }
1576
1576
  ]
1577
1577
  },
1578
+ {
1579
+ "name": "data-tabs-variant",
1580
+ "description": "Preset or config of the tabs primitive.",
1581
+ "values": [
1582
+ {
1583
+ "name": "underline"
1584
+ }
1585
+ ]
1586
+ },
1578
1587
  {
1579
1588
  "name": "data-toaster-close-button",
1580
1589
  "description": "Preset or config of the toaster primitive.",
@@ -438,7 +438,7 @@
438
438
  "_layers.css, _variables.css"
439
439
  ],
440
440
  "uses": [
441
- "data-carousel attributes — layout hooks only; behaviour from zazz/scripts/embla.js",
441
+ "data-carousel attributes — layout hooks only; behavior from base/embla.js (Embla v9)",
442
442
  "data-ui-dragging on :root — written by embla.js while a slide drags; the grabbing cursor page-wide",
443
443
  "container-type on viewport — basis-* / @sm:basis-* utils query [data-carousel-slot~=\"viewport\"] width"
444
444
  ],
@@ -1068,7 +1068,8 @@
1068
1068
  "anchor-scope — isolates --active-tab inside nested menus",
1069
1069
  "text-box, color-mix() — label trim and focus ring",
1070
1070
  "--_touch-min (touch screens) — labels grow to the touch floor, and each inline side gains half of what the height grew",
1071
- "corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
1071
+ "corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
1072
+ "data-tabs-variant=\"underline\" — no track; the indicator is a line under the checked label (at its start edge when vertical)"
1072
1073
  ],
1073
1074
  "tokens": [
1074
1075
  "--ui-tabs-* (@layer variables)"
@@ -1135,17 +1136,17 @@
1135
1136
  }
1136
1137
  },
1137
1138
  "primitives/toggle/toggle.css": {
1138
- "summary": "toggle.css: Toggle ([data-ui~=\"toggle\"]), a button-styled checkbox/radio Same look as the button (hooks default to the --ui-button-* family), but it wraps a native checkbox or radio inside a <label>. State is driven from the nested input via :has(): the checked state reuses the button's *active* token values, so an \"on\" toggle reads like a pressed button. Because the state lives on the input, the label's own state tiers (`--bg--checked`) do not fire; theme the checked look through the `--ui-toggle-*--checked` hooks.",
1139
+ "summary": "toggle.css: Toggle ([data-ui~=\"toggle\"]), a button-styled checkbox/radio Same look as the button (hooks default to the --ui-button-* family), but it wraps a native checkbox or radio inside a <label>. State is driven from the nested input via :has(): the checked state takes the primary role, so an \"on\" toggle reads like a primary button. Because the state lives on the input, the label's own state tiers (`--bg--checked`) do not fire; theme the checked look through the `--ui-toggle-*--checked` hooks.",
1139
1140
  "tags": {
1140
1141
  "layer": [
1141
1142
  "variables, components"
1142
1143
  ],
1143
1144
  "requires": [
1144
- "_layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-shadow), button.css"
1145
+ "_layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-shadow), button.css, kbd.css (--ui-kbd-*)"
1145
1146
  ],
1146
1147
  "uses": [
1147
1148
  ":has(): drive label state from the nested input (checked/focus/disabled)",
1148
- "oklch(from …): variant hover/active tints (inherited from --ui-button-*)",
1149
+ "color-mix(), oklch(from …): variant hover/active tints, the same steps as the button's variants",
1149
1150
  "text-box: vertical trim (patchy browser support)",
1150
1151
  "corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
1151
1152
  "--_touch-min (touch screens) — the default and icon sizes grow to the touch floor, and each inline side gains half of what the height grew; sm and icon-sm keep their box and extend an invisible ::after hit area"
@@ -3162,6 +3163,30 @@
3162
3163
  "value": "var(--color-primary-foreground)",
3163
3164
  "file": "primitives/switch/switch.css"
3164
3165
  },
3166
+ "--ui-switch-thumb-border-color": {
3167
+ "value": "transparent",
3168
+ "file": "primitives/switch/switch.css"
3169
+ },
3170
+ "--ui-switch-thumb-border-color--checked": {
3171
+ "value": "transparent",
3172
+ "file": "primitives/switch/switch.css"
3173
+ },
3174
+ "--ui-switch-thumb-border-color--checked-hover": {
3175
+ "value": "transparent",
3176
+ "file": "primitives/switch/switch.css"
3177
+ },
3178
+ "--ui-switch-thumb-border-color--hover": {
3179
+ "value": "transparent",
3180
+ "file": "primitives/switch/switch.css"
3181
+ },
3182
+ "--ui-switch-thumb-border-style": {
3183
+ "value": "var(--ui-field-border-style)",
3184
+ "file": "primitives/switch/switch.css"
3185
+ },
3186
+ "--ui-switch-thumb-border-width": {
3187
+ "value": "var(--ui-field-border-width)",
3188
+ "file": "primitives/switch/switch.css"
3189
+ },
3165
3190
  "--ui-switch-thumb-corner-shape": {
3166
3191
  "value": "var(--ui-switch-corner-shape)",
3167
3192
  "file": "primitives/switch/switch.css"
@@ -3175,11 +3200,11 @@
3175
3200
  "file": "primitives/switch/switch.css"
3176
3201
  },
3177
3202
  "--ui-switch-thumb-shadow": {
3178
- "value": "var(--shadow-sm)",
3203
+ "value": "var(--shadow-xs)",
3179
3204
  "file": "primitives/switch/switch.css"
3180
3205
  },
3181
3206
  "--ui-switch-thumb-size": {
3182
- "value": "calc((var(--ui-switch-track-w) / 2) - var(--ui-switch-track-p))",
3207
+ "value": "calc( (var(--ui-switch-track-w) / 2) - var(--ui-switch-track-p) - var(--ui-switch-thumb-border-width) )",
3183
3208
  "file": "primitives/switch/switch.css"
3184
3209
  },
3185
3210
  "--ui-switch-thumb-translate": {
@@ -3231,7 +3256,7 @@
3231
3256
  "file": "primitives/switch/switch.css"
3232
3257
  },
3233
3258
  "--ui-switch-track-h": {
3234
- "value": "calc(var(--ui-switch-track-w) / 2 + var(--ui-switch-track-p))",
3259
+ "value": "calc( var(--ui-switch-track-w) / 2 + var(--ui-switch-track-p) + var(--ui-switch-track-border-width) )",
3235
3260
  "file": "primitives/switch/switch.css"
3236
3261
  },
3237
3262
  "--ui-switch-track-p": {
@@ -3454,6 +3479,14 @@
3454
3479
  "value": "var(--ui-field-radius)",
3455
3480
  "file": "primitives/tabs/tabs.css"
3456
3481
  },
3482
+ "--ui-tabs-underline-color": {
3483
+ "value": "var(--color-foreground)",
3484
+ "file": "primitives/tabs/tabs.css"
3485
+ },
3486
+ "--ui-tabs-underline-width": {
3487
+ "value": "2px",
3488
+ "file": "primitives/tabs/tabs.css"
3489
+ },
3457
3490
  "--ui-textarea-border-color": {
3458
3491
  "value": "var(--ui-field-border-color)",
3459
3492
  "file": "primitives/textarea/textarea.css"
@@ -3594,6 +3627,10 @@
3594
3627
  "value": "min(356px, calc(100vi - var(--gutters) * 2))",
3595
3628
  "file": "primitives/toaster/toaster.css"
3596
3629
  },
3630
+ "--ui-toggle-background-clip": {
3631
+ "value": "border-box",
3632
+ "file": "primitives/toggle/toggle.css"
3633
+ },
3597
3634
  "--ui-toggle-bg": {
3598
3635
  "value": "var(--ui-button-bg)",
3599
3636
  "file": "primitives/toggle/toggle.css"
@@ -3627,15 +3664,15 @@
3627
3664
  "file": "primitives/toggle/toggle.css"
3628
3665
  },
3629
3666
  "--ui-toggle-border-color--checked": {
3630
- "value": "var(--color-primary)",
3667
+ "value": "var(--color-border)",
3631
3668
  "file": "primitives/toggle/toggle.css"
3632
3669
  },
3633
3670
  "--ui-toggle-border-color--checked-active": {
3634
- "value": "var(--color-primary)",
3671
+ "value": "var(--color-border)",
3635
3672
  "file": "primitives/toggle/toggle.css"
3636
3673
  },
3637
3674
  "--ui-toggle-border-color--checked-hover": {
3638
- "value": "var(--color-primary)",
3675
+ "value": "var(--color-border)",
3639
3676
  "file": "primitives/toggle/toggle.css"
3640
3677
  },
3641
3678
  "--ui-toggle-border-color--hover": {