@zazz-ui/core 0.10.0 → 0.11.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/CHANGELOG.md +55 -0
- package/README.md +2 -2
- package/dist/sri.json +27 -27
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +9 -1
- package/editor/zazz.language-data.json +53 -19
- package/editor/zazz.lint-data.json +915 -896
- package/package.json +1 -1
- package/src/base/_defaults.css +2 -2
- package/src/base/_variables.css +28 -3
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +145 -143
- package/src/base/kit-styling.ts +145 -143
- package/src/primitives/accordion/accordion.css +3 -0
- package/src/primitives/alert-dialog/alert-dialog.html +14 -14
- package/src/primitives/badge/badge.css +14 -0
- package/src/primitives/button/button.css +31 -3
- package/src/primitives/checkbox/checkbox.css +9 -0
- package/src/primitives/combobox/combobox.css +17 -1
- package/src/primitives/command/command-dialog.html +109 -107
- package/src/primitives/command/command.css +16 -8
- package/src/primitives/dialog/dialog.css +92 -40
- package/src/primitives/input/input.css +2 -1
- package/src/primitives/input-group/input-group.css +7 -3
- package/src/primitives/lightbox/lightbox.css +4 -4
- package/src/primitives/mobile-menu/mobile-menu.css +17 -16
- package/src/primitives/mobile-menu/mobile-menu.html +4 -4
- package/src/primitives/navigation-menu/navigation-menu.css +3 -3
- package/src/primitives/otp/otp.css +3 -2
- package/src/primitives/password-group/password-group.css +7 -3
- package/src/primitives/popover/popover.css +23 -10
- package/src/primitives/radio/radio.css +12 -2
- package/src/primitives/scroll-fade/scroll-fade.css +1 -1
- package/src/primitives/select/select.css +26 -13
- package/src/primitives/slider/slider.css +3 -0
- package/src/primitives/switch/switch.css +11 -0
- package/src/primitives/tabs/tabs.css +2 -1
- package/src/primitives/toggle/toggle.css +27 -3
- package/src/primitives/tooltip/tooltip.css +40 -25
|
@@ -131820,7 +131820,15 @@
|
|
|
131820
131820
|
"description": "Primitive hook: the public override surface."
|
|
131821
131821
|
},
|
|
131822
131822
|
{
|
|
131823
|
-
"name": "--ui-dialog-border",
|
|
131823
|
+
"name": "--ui-dialog-border-color",
|
|
131824
|
+
"description": "Primitive hook: the public override surface."
|
|
131825
|
+
},
|
|
131826
|
+
{
|
|
131827
|
+
"name": "--ui-dialog-border-style",
|
|
131828
|
+
"description": "Primitive hook: the public override surface."
|
|
131829
|
+
},
|
|
131830
|
+
{
|
|
131831
|
+
"name": "--ui-dialog-border-width",
|
|
131824
131832
|
"description": "Primitive hook: the public override surface."
|
|
131825
131833
|
},
|
|
131826
131834
|
{
|
|
@@ -261,6 +261,7 @@
|
|
|
261
261
|
],
|
|
262
262
|
"uses": [
|
|
263
263
|
"::details-content: native open/close block-size transition (reset layer)",
|
|
264
|
+
"--_touch-min (touch screens): the summary row grows to the touch floor",
|
|
264
265
|
"interpolate-size: allow-keywords (from _variables.css; required for block-size: 0 -> auto transitions)"
|
|
265
266
|
],
|
|
266
267
|
"tokens": [
|
|
@@ -325,6 +326,7 @@
|
|
|
325
326
|
"uses": [
|
|
326
327
|
"color-mix(), oklch(from …): variant hover/active tints",
|
|
327
328
|
"text-box: vertical trim (patchy browser support)",
|
|
329
|
+
"--_touch-min (touch screens): an interactive badge keeps its size and extends an invisible ::after hit area to the touch floor",
|
|
328
330
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
329
331
|
],
|
|
330
332
|
"tokens": [
|
|
@@ -367,7 +369,8 @@
|
|
|
367
369
|
"uses": [
|
|
368
370
|
"color-mix(), oklch(from …) — variant hover/active tints",
|
|
369
371
|
"text-box — vertical trim (patchy browser support)",
|
|
370
|
-
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
372
|
+
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
373
|
+
"--_touch-min (touch screens) — the default and icon sizes grow to the touch floor; sm and icon-sm keep their box and extend an invisible ::after hit area"
|
|
371
374
|
],
|
|
372
375
|
"tokens": [
|
|
373
376
|
"--ui-button-* (@layer variables; hooks are named after the utilities they back; metrics default to the --ui-field-* family)"
|
|
@@ -454,6 +457,7 @@
|
|
|
454
457
|
],
|
|
455
458
|
"uses": [
|
|
456
459
|
"appearance: none — redraws the native control from theme tokens",
|
|
460
|
+
"--_touch-min (touch screens) — the box keeps its size; an invisible ::after centred on it is at least the touch floor square",
|
|
457
461
|
"checked/indeterminate fill with --primary and layer a glyph (never color alone)",
|
|
458
462
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
459
463
|
],
|
|
@@ -476,6 +480,7 @@
|
|
|
476
480
|
],
|
|
477
481
|
"uses": [
|
|
478
482
|
"[popover=\"manual\"]: panel opened/closed by combobox.ts",
|
|
483
|
+
"--_touch-min (touch screens): the control grows to the touch floor; tag-remove keeps its box and extends an invisible ::after hit area (the trigger needs none: the whole control is one hit target)",
|
|
479
484
|
"anchor-name, anchor-scope, position-anchor: tether panel to the control",
|
|
480
485
|
"anchor-size(width): match panel width to the control (Baseline 2026)",
|
|
481
486
|
":has(): chevron rotation, group + empty-state visibility",
|
|
@@ -503,7 +508,7 @@
|
|
|
503
508
|
],
|
|
504
509
|
"uses": [
|
|
505
510
|
"popovertarget + [popover=\"auto\"]: dropdown surface, native light dismiss",
|
|
506
|
-
"<dialog data-ui=\"dialog\"> + command=\"show-modal\": focused surface",
|
|
511
|
+
"<dialog data-ui=\"dialog\"> + command=\"show-modal\": focused surface; its parts carry data-dialog-slot=\"content | header | body | footer\" beside the command slots, so dialog.css owns layout, scrolling, and the phone's full-height model",
|
|
507
512
|
"anchor-name, anchor-scope, position-anchor: tether the popover form",
|
|
508
513
|
":has(): group + empty-state visibility without JavaScript"
|
|
509
514
|
],
|
|
@@ -530,7 +535,8 @@
|
|
|
530
535
|
"@starting-style + allow-discrete — open/close opacity, transform, overlay",
|
|
531
536
|
"anchor-name, container-type — layout hooks for sized variants",
|
|
532
537
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
533
|
-
"@media (width < 40rem) + @container style(--ui-dialog-mobile-size) — below the sm band every dialog takes the hook's size (layout-bleed by default) over its preset; style queries are Firefox 151+, Chrome 111+, Safari 18+, an older engine keeps the preset"
|
|
538
|
+
"@media (width < 40rem) and (not (hover: hover)) + @container style(--ui-dialog-mobile-size) — below the sm band on a touch screen every dialog takes the hook's size (layout-bleed by default) over its preset; a narrow window with a mouse keeps the preset; style queries are Firefox 151+, Chrome 111+, Safari 18+, an older engine keeps the preset",
|
|
539
|
+
"env(safe-area-inset-bottom) — the full-height content slot clears the home indicator"
|
|
534
540
|
],
|
|
535
541
|
"tokens": [
|
|
536
542
|
"--ui-dialog-* (@layer variables; --ui-dialog-h defaults to a keyword, so the hook is read raw and takes a length or keyword; a --h utility or tier takes a scale number or a length; a keyword tier needs a base --h, or it renders as auto)"
|
|
@@ -539,7 +545,7 @@
|
|
|
539
545
|
"data-dialog-size=\"sm | md | lg | xl | 2xl | full | bleed\" (the layout bands; sm when absent)"
|
|
540
546
|
],
|
|
541
547
|
"consumedby": [
|
|
542
|
-
"alert-dialog.css, mobile-menu.css"
|
|
548
|
+
"alert-dialog.css, command.css, lightbox.css, mobile-menu.css"
|
|
543
549
|
]
|
|
544
550
|
}
|
|
545
551
|
},
|
|
@@ -589,6 +595,7 @@
|
|
|
589
595
|
],
|
|
590
596
|
"uses": [
|
|
591
597
|
":focus-within — lifts shell ring/border as one field",
|
|
598
|
+
"--_touch-min (touch screens) — the shell and its addons grow to the touch floor",
|
|
592
599
|
":has() — restore padding when addons absent; invalid text color",
|
|
593
600
|
"data-input-group-align on the addon slot — inline-start/end, block-start/end",
|
|
594
601
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
@@ -614,7 +621,8 @@
|
|
|
614
621
|
"::-webkit-calendar-picker-indicator — date/time picker chrome (WebKit)",
|
|
615
622
|
"mask — calendar icon (not background-image, for color: currentColor)",
|
|
616
623
|
"@supports (-webkit-touch-callout: none) — iOS-only width fix for temporal inputs (webkit.org/b/301648)",
|
|
617
|
-
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
624
|
+
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
625
|
+
"--_touch-min (touch screens) — the field grows to the touch floor"
|
|
618
626
|
],
|
|
619
627
|
"tokens": [
|
|
620
628
|
"--ui-input-* (@layer variables; surface colors and height read the --ui-field-* family directly)"
|
|
@@ -741,11 +749,12 @@
|
|
|
741
749
|
"_layers.css, _variables.css, dialog.css, accordion.css"
|
|
742
750
|
],
|
|
743
751
|
"uses": [
|
|
744
|
-
"Composes [data-ui~=\"dialog\"][data-dialog-size=\"bleed\"] — fullscreen native <dialog
|
|
752
|
+
"Composes [data-ui~=\"dialog\"][data-dialog-size=\"bleed\"] — fullscreen native <dialog>; the slots carry data-dialog-slot=\"content | header | body | footer\" beside their own, so dialog.css owns the grid, the body scroller, and the safe-area padding",
|
|
745
753
|
"Invoker Commands (command=\"show-modal\") — open without JS (markup)",
|
|
746
754
|
"view-transition-name — stable menu across navigations",
|
|
747
755
|
"@starting-style — viewport enter animation",
|
|
748
|
-
"Overrides --ui-dialog-* motion tokens for slide-right variant"
|
|
756
|
+
"Overrides --ui-dialog-* motion tokens for slide-right variant",
|
|
757
|
+
":dir(rtl): slide-right mirrors to enter from the inline-start (right) edge"
|
|
749
758
|
],
|
|
750
759
|
"tokens": [
|
|
751
760
|
"--ui-mobile-menu-* (@layer variables)"
|
|
@@ -791,6 +800,7 @@
|
|
|
791
800
|
"uses": [
|
|
792
801
|
"Invisible-overlay input: the real input stretches over the stamped cell rail with transparent text/caret so autofill, paste, and focus stay native; never display:none",
|
|
793
802
|
":focus-within: active-cell ring only while the input has focus",
|
|
803
|
+
"--_touch-min (touch screens): each cell grows to the touch floor",
|
|
794
804
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
795
805
|
],
|
|
796
806
|
"tokens": [
|
|
@@ -812,6 +822,7 @@
|
|
|
812
822
|
],
|
|
813
823
|
"uses": [
|
|
814
824
|
":focus-within, :has: shell focus ring and padding (as input-group.css)",
|
|
825
|
+
"--_touch-min (touch screens): the shell and its addons grow to the touch floor",
|
|
815
826
|
"aria-pressed on toggle — show/hide icon swap via CSS (JS sets type + aria in password-group.ts)",
|
|
816
827
|
"Native reveal suppressed in _reset.css (::-ms-reveal, etc.)",
|
|
817
828
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
@@ -834,7 +845,8 @@
|
|
|
834
845
|
"[popover], popovertarget, :popover-open: Popover API (native, no polyfill)",
|
|
835
846
|
"@starting-style + allow-discrete: enter/exit opacity/transform",
|
|
836
847
|
"anchor-name, position-anchor, position-area, position-try-fallbacks: anchor positioning (gated behind @supports; Safari 26.x falls back to the UA-centered popover)",
|
|
837
|
-
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
848
|
+
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
849
|
+
":dir(rtl): inline-side transform origins mirror in RTL (transform-origin has no logical keywords); origins follow the declared side, not an active position-try fallback"
|
|
838
850
|
],
|
|
839
851
|
"tokens": [
|
|
840
852
|
"--ui-popover-* (Tier 3 owner; @layer variables)"
|
|
@@ -880,6 +892,7 @@
|
|
|
880
892
|
],
|
|
881
893
|
"uses": [
|
|
882
894
|
"appearance: none — custom circle + masked ::before dot when :checked",
|
|
895
|
+
"--_touch-min (touch screens) — the circle keeps its size; an invisible ::after centred on it is at least the touch floor square",
|
|
883
896
|
"corner-shape — round by default, so circles stay circles; a hook takes any shape"
|
|
884
897
|
],
|
|
885
898
|
"tokens": [
|
|
@@ -947,6 +960,7 @@
|
|
|
947
960
|
"position-area, position-try-fallbacks: placement tokens come from popover.css's shared matrix (@supports gated)",
|
|
948
961
|
"Degrades to native OS dropdown where base-select is unsupported",
|
|
949
962
|
"ui-multiselect (multiselect.ts): JS-projected dropdown for <select multiple> (base-select has no stable multi-select); degrades to the native multi listbox without JS",
|
|
963
|
+
"--_touch-min (touch screens) — the trigger and every option row grow to the touch floor",
|
|
950
964
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
951
965
|
],
|
|
952
966
|
"tokens": [
|
|
@@ -986,6 +1000,7 @@
|
|
|
986
1000
|
],
|
|
987
1001
|
"uses": [
|
|
988
1002
|
"appearance: none — redraws track + thumb from theme tokens",
|
|
1003
|
+
"--_touch-min (touch screens) — the transparent input grows to the touch floor; the track stays --ui-slider-track-h and the thumb centred on it",
|
|
989
1004
|
"corner-shape — round by default, so circles stay circles; a hook takes any shape"
|
|
990
1005
|
],
|
|
991
1006
|
"tokens": [
|
|
@@ -1004,6 +1019,7 @@
|
|
|
1004
1019
|
],
|
|
1005
1020
|
"uses": [
|
|
1006
1021
|
"appearance: none on input[role=\"switch\"]",
|
|
1022
|
+
"--_touch-min (touch screens) — the track keeps its size; an invisible ::after on the input, centred on it, is at least the touch floor square",
|
|
1007
1023
|
"label:has(> input[role=\"switch\"])::after — thumb drawn on label (no JS)",
|
|
1008
1024
|
"oklch(from …) — checked/hover track tints",
|
|
1009
1025
|
"corner-shape — round by default, so circles stay circles; a hook takes any shape"
|
|
@@ -1044,6 +1060,7 @@
|
|
|
1044
1060
|
"anchor-name, position-anchor, anchor() — sliding indicator pill (@supports gated; checked-label fallback paints card fill without pill)",
|
|
1045
1061
|
"anchor-scope — isolates --active-tab inside nested menus",
|
|
1046
1062
|
"text-box, color-mix() — label trim and focus ring",
|
|
1063
|
+
"--_touch-min (touch screens) — labels grow to the touch floor",
|
|
1047
1064
|
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
1048
1065
|
],
|
|
1049
1066
|
"tokens": [
|
|
@@ -1123,7 +1140,8 @@
|
|
|
1123
1140
|
":has(): drive label state from the nested input (checked/focus/disabled)",
|
|
1124
1141
|
"oklch(from …): variant hover/active tints (inherited from --ui-button-*)",
|
|
1125
1142
|
"text-box: vertical trim (patchy browser support)",
|
|
1126
|
-
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
1143
|
+
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
1144
|
+
"--_touch-min (touch screens) — the default and icon sizes grow to the touch floor; sm and icon-sm keep their box and extend an invisible ::after hit area"
|
|
1127
1145
|
],
|
|
1128
1146
|
"tokens": [
|
|
1129
1147
|
"--ui-toggle-* (@layer variables; default to the --ui-button-* family)"
|
|
@@ -1146,7 +1164,9 @@
|
|
|
1146
1164
|
"interestfor: Interest Invokers API (Chromium 142+; polyfill via invokers)",
|
|
1147
1165
|
"data-tooltip-slot=\"content\": hint popover (light dismiss, auto-hides sibling hints)",
|
|
1148
1166
|
"anchor-name, position-anchor, position-area, position-try-fallbacks: explicit anchors for polyfill; data-popover-side maps to --ui-popover-position-*",
|
|
1149
|
-
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners"
|
|
1167
|
+
"corner-shape — superellipse corners; unsupported browsers keep plain rounded corners",
|
|
1168
|
+
":dir(rtl): inline-side origins and slide-in mirror; the arrow uses logical insets",
|
|
1169
|
+
"@media not (hover: hover) — hidden on touch screens (no hover to show it, and a tap would cover the trigger's own action); keep essential text visible"
|
|
1150
1170
|
],
|
|
1151
1171
|
"tokens": [
|
|
1152
1172
|
"--ui-tooltip-* (@layer variables; read on the content slot)"
|
|
@@ -1720,19 +1740,27 @@
|
|
|
1720
1740
|
"file": "primitives/dialog/dialog.css"
|
|
1721
1741
|
},
|
|
1722
1742
|
"--ui-dialog-backdrop-transition-duration": {
|
|
1723
|
-
"value": "calc(var(--ui-dialog-transition-duration)
|
|
1743
|
+
"value": "calc(var(--ui-dialog-transition-duration) / 2)",
|
|
1724
1744
|
"file": "primitives/dialog/dialog.css"
|
|
1725
1745
|
},
|
|
1726
1746
|
"--ui-dialog-backdrop-transition-timing-function": {
|
|
1727
|
-
"value": "
|
|
1747
|
+
"value": "var(--bezier-easing)",
|
|
1728
1748
|
"file": "primitives/dialog/dialog.css"
|
|
1729
1749
|
},
|
|
1730
1750
|
"--ui-dialog-bg": {
|
|
1731
1751
|
"value": "var(--color-card)",
|
|
1732
1752
|
"file": "primitives/dialog/dialog.css"
|
|
1733
1753
|
},
|
|
1734
|
-
"--ui-dialog-border": {
|
|
1735
|
-
"value": "
|
|
1754
|
+
"--ui-dialog-border-color": {
|
|
1755
|
+
"value": "var(--color-border)",
|
|
1756
|
+
"file": "primitives/dialog/dialog.css"
|
|
1757
|
+
},
|
|
1758
|
+
"--ui-dialog-border-style": {
|
|
1759
|
+
"value": "solid",
|
|
1760
|
+
"file": "primitives/dialog/dialog.css"
|
|
1761
|
+
},
|
|
1762
|
+
"--ui-dialog-border-width": {
|
|
1763
|
+
"value": "1px",
|
|
1736
1764
|
"file": "primitives/dialog/dialog.css"
|
|
1737
1765
|
},
|
|
1738
1766
|
"--ui-dialog-corner-shape": {
|
|
@@ -2688,7 +2716,7 @@
|
|
|
2688
2716
|
"file": "primitives/popover/popover.css"
|
|
2689
2717
|
},
|
|
2690
2718
|
"--ui-popover-origin": {
|
|
2691
|
-
"value": "top
|
|
2719
|
+
"value": "top var(--_origin-inline-start)",
|
|
2692
2720
|
"file": "primitives/navigation-menu/navigation-menu.css"
|
|
2693
2721
|
},
|
|
2694
2722
|
"--ui-popover-p": {
|
|
@@ -2820,7 +2848,7 @@
|
|
|
2820
2848
|
"file": "primitives/radio/radio.css"
|
|
2821
2849
|
},
|
|
2822
2850
|
"--ui-radio-dot-size": {
|
|
2823
|
-
"value": "
|
|
2851
|
+
"value": "1.125em",
|
|
2824
2852
|
"file": "primitives/radio/radio.css"
|
|
2825
2853
|
},
|
|
2826
2854
|
"--ui-radio-radius": {
|
|
@@ -4826,10 +4854,10 @@
|
|
|
4826
4854
|
"dark": "500"
|
|
4827
4855
|
},
|
|
4828
4856
|
"--gutters": {
|
|
4829
|
-
"value": "var(--space-
|
|
4857
|
+
"value": "var(--space-sm)",
|
|
4830
4858
|
"file": "base/_variables.css",
|
|
4831
|
-
"min": "
|
|
4832
|
-
"max": "
|
|
4859
|
+
"min": "0.9rem",
|
|
4860
|
+
"max": "1rem"
|
|
4833
4861
|
},
|
|
4834
4862
|
"--layout-2xl": {
|
|
4835
4863
|
"value": "96rem",
|
|
@@ -5279,6 +5307,12 @@
|
|
|
5279
5307
|
"light": "0.225rem",
|
|
5280
5308
|
"dark": "0.225rem"
|
|
5281
5309
|
},
|
|
5310
|
+
"--spacing-touch-min": {
|
|
5311
|
+
"value": "44px",
|
|
5312
|
+
"file": "base/_variables.css",
|
|
5313
|
+
"light": "44px",
|
|
5314
|
+
"dark": "44px"
|
|
5315
|
+
},
|
|
5282
5316
|
"--spin": {
|
|
5283
5317
|
"value": "spin 1s linear infinite",
|
|
5284
5318
|
"file": "base/_variables.css",
|