@zazz-ui/core 0.12.3 → 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 (84) hide show
  1. package/AUTHORING.md +6 -6
  2. package/CHANGELOG.md +40 -0
  3. package/README.md +8 -6
  4. package/dist/sri.json +51 -51
  5. package/dist/zazz.css +1 -1
  6. package/dist/zazz.js +1 -1
  7. package/editor/zazz.css-data.json +1238 -3564
  8. package/editor/zazz.html-data.json +9 -0
  9. package/editor/zazz.language-data.json +21 -8
  10. package/editor/zazz.lint-data.json +1139 -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/tabs/tabs-underline.html +117 -0
  76. package/src/primitives/tabs/tabs.css +119 -27
  77. package/src/primitives/toggle/toggle.css +153 -40
  78. package/src/primitives/utilities/flex-direction.html +1 -1
  79. package/src/primitives/utilities/flex-reverse.html +136 -0
  80. package/src/primitives/utilities/gallery.html +289 -0
  81. package/src/primitives/utilities/inline-flex.html +45 -0
  82. package/src/primitives/utilities/subgrid-col.html +109 -0
  83. package/src/primitives/utilities/subgrid-row.html +98 -0
  84. 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"
@@ -3478,6 +3479,14 @@
3478
3479
  "value": "var(--ui-field-radius)",
3479
3480
  "file": "primitives/tabs/tabs.css"
3480
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
+ },
3481
3490
  "--ui-textarea-border-color": {
3482
3491
  "value": "var(--ui-field-border-color)",
3483
3492
  "file": "primitives/textarea/textarea.css"
@@ -3618,6 +3627,10 @@
3618
3627
  "value": "min(356px, calc(100vi - var(--gutters) * 2))",
3619
3628
  "file": "primitives/toaster/toaster.css"
3620
3629
  },
3630
+ "--ui-toggle-background-clip": {
3631
+ "value": "border-box",
3632
+ "file": "primitives/toggle/toggle.css"
3633
+ },
3621
3634
  "--ui-toggle-bg": {
3622
3635
  "value": "var(--ui-button-bg)",
3623
3636
  "file": "primitives/toggle/toggle.css"
@@ -3651,15 +3664,15 @@
3651
3664
  "file": "primitives/toggle/toggle.css"
3652
3665
  },
3653
3666
  "--ui-toggle-border-color--checked": {
3654
- "value": "var(--color-primary)",
3667
+ "value": "var(--color-border)",
3655
3668
  "file": "primitives/toggle/toggle.css"
3656
3669
  },
3657
3670
  "--ui-toggle-border-color--checked-active": {
3658
- "value": "var(--color-primary)",
3671
+ "value": "var(--color-border)",
3659
3672
  "file": "primitives/toggle/toggle.css"
3660
3673
  },
3661
3674
  "--ui-toggle-border-color--checked-hover": {
3662
- "value": "var(--color-primary)",
3675
+ "value": "var(--color-border)",
3663
3676
  "file": "primitives/toggle/toggle.css"
3664
3677
  },
3665
3678
  "--ui-toggle-border-color--hover": {