@zazz-ui/core 0.1.0 → 0.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 (60) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/README.md +53 -7
  3. package/dist/sri.json +40 -40
  4. package/dist/zazz.css +1 -1
  5. package/examples/components.html +1 -6
  6. package/package.json +1 -1
  7. package/src/base/_layers.css +14 -4
  8. package/src/base/_layout.css +5 -2
  9. package/src/base/_typography.css +24 -6
  10. package/src/base/_utilities.css +525 -395
  11. package/src/base/_variables.css +22 -81
  12. package/src/base/_view-transitions.css +1 -1
  13. package/src/base/embla.d.ts +1 -0
  14. package/src/base/embla.d.ts.map +1 -1
  15. package/src/base/embla.ts +3 -3
  16. package/src/base/utils.d.ts +1 -1
  17. package/src/base/utils.js +1 -1
  18. package/src/base/utils.ts +1 -1
  19. package/src/globals.d.ts +3 -3
  20. package/src/index.css +13 -5
  21. package/src/manifest.ts +6 -6
  22. package/src/primitives/accordion/accordion.css +2 -2
  23. package/src/primitives/alert-dialog/alert-dialog.css +2 -2
  24. package/src/primitives/badge/badge.css +30 -26
  25. package/src/primitives/button/button.css +44 -38
  26. package/src/primitives/carousel/carousel.css +2 -2
  27. package/src/primitives/carousel/carousel.d.ts +32 -0
  28. package/src/primitives/carousel/carousel.d.ts.map +1 -1
  29. package/src/primitives/carousel/carousel.html +1 -1
  30. package/src/primitives/carousel/carousel.js +0 -31
  31. package/src/primitives/carousel/carousel.ts +1 -0
  32. package/src/primitives/checkbox/checkbox.css +21 -12
  33. package/src/primitives/combobox/combobox.css +17 -15
  34. package/src/primitives/command/command.css +1 -1
  35. package/src/primitives/dialog/dialog.css +18 -20
  36. package/src/primitives/fields/fields.css +14 -10
  37. package/src/primitives/input/input.css +10 -8
  38. package/src/primitives/input-group/input-group.css +18 -18
  39. package/src/primitives/kbd/kbd.css +2 -2
  40. package/src/primitives/lightbox/lightbox.css +7 -13
  41. package/src/primitives/meter/meter.css +2 -2
  42. package/src/primitives/mobile-menu/mobile-menu.css +6 -6
  43. package/src/primitives/otp/otp.css +9 -6
  44. package/src/primitives/password-group/password-group.css +18 -18
  45. package/src/primitives/popover/popover.css +2 -2
  46. package/src/primitives/progress/progress.css +2 -2
  47. package/src/primitives/radio/radio.css +12 -8
  48. package/src/primitives/select/select.css +27 -20
  49. package/src/primitives/slider/slider.css +4 -4
  50. package/src/primitives/switch/switch.css +8 -8
  51. package/src/primitives/table/table.css +3 -3
  52. package/src/primitives/tabs/tabs.css +13 -9
  53. package/src/primitives/textarea/textarea.css +10 -7
  54. package/src/primitives/toaster/toaster.css +7 -7
  55. package/src/primitives/toggle/toggle.css +35 -32
  56. package/src/primitives/tooltip/tooltip-disabled.html +1 -6
  57. package/src/primitives/tooltip/tooltip-sides.html +3 -22
  58. package/src/primitives/tooltip/tooltip-with-kbd.html +1 -6
  59. package/src/primitives/tooltip/tooltip.css +6 -4
  60. package/src/primitives/tooltip/tooltip.html +1 -6
@@ -446,12 +446,7 @@
446
446
  <button type="button" class="ui-button" interestfor="tooltip-components-1">
447
447
  Hover or focus
448
448
  </button>
449
- <div
450
- data-slot="tooltip-content"
451
- id="tooltip-components-1"
452
- popover="hint"
453
- data-use-inverted-menu="false"
454
- >
449
+ <div data-slot="tooltip-content" id="tooltip-components-1" popover="hint">
455
450
  Add to library
456
451
  <span data-slot="tooltip-arrow" aria-hidden="true"></span>
457
452
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zazz-ui/core",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
5
5
  "keywords": [
6
6
  "cascade-layers",
@@ -1,12 +1,22 @@
1
1
  /**
2
2
  * layers.css — Cascade layer order (must load first).
3
3
  *
4
- * @layer legacy, reset, zazz, migrations
5
- * @sublayers zazz.variables, zazz.reset, zazz.components, zazz.utilities
4
+ * @layer variables, reset, vendors, legacy, zazz, overrides
5
+ * @sublayers legacy.imports, legacy.components, legacy.utilities,
6
+ * legacy.migrations; zazz.components, zazz.plugins, zazz.utilities
7
+ *
8
+ * Never import styles into bare `legacy` or `zazz`: un-sublayered rules form
9
+ * an implicit final sublayer that outranks every named sublayer (a whole-file
10
+ * legacy import would beat its own migration shims; bare zazz CSS would beat
11
+ * utilities). Always target a sublayer.
6
12
  */
7
13
 
8
- @layer variables, reset, legacy, zazz, migrations;
14
+ @layer variables, reset, vendors, legacy, zazz, overrides;
15
+
16
+ @layer legacy {
17
+ @layer imports, components, utilities, migrations;
18
+ }
9
19
 
10
20
  @layer zazz {
11
- @layer components, utilities;
21
+ @layer components, plugins, utilities;
12
22
  }
@@ -408,12 +408,15 @@
408
408
  --_article: var(--article-xl);
409
409
  }
410
410
 
411
+ /* full/bleed mirror the band container semantics: full spans the available
412
+ width but keeps the gutters; bleed runs edge to edge. */
411
413
  :where(:is(.container, [class*=":container"])[data-variant="article"])[data-container="full"] {
412
- --_article: var(--article-full);
414
+ --_article: 100%;
413
415
  }
414
416
 
415
417
  :where(:is(.container, [class*=":container"])[data-variant="article"])[data-container="bleed"] {
416
- --_article: var(--article-bleed);
418
+ --_article: 100%;
419
+ inline-size: 100%;
417
420
  }
418
421
 
419
422
  /* Responsive article variants — reading width from the breakpoint up (min) or only
@@ -13,6 +13,8 @@
13
13
  @layer variables {
14
14
  :root {
15
15
  --ui-prose-figcaption-margin: var(--gap-xs) 0 0 0;
16
+ /* 0 preserves the figcaption-margin spacing; a length adds flex gap on top */
17
+ --ui-prose-figcaption-gap: 0px;
16
18
  --ui-prose-img-radius: var(--radius-md);
17
19
  --ui-prose-img-border: none;
18
20
  --ui-prose-link-color: var(--primary);
@@ -31,9 +33,9 @@
31
33
 
32
34
  :where(.ui-prose h1) {
33
35
  font-family: var(--font-family-heading);
36
+ font-weight: var(--font-weight-heading);
34
37
  font-size: var(--font-size-h1);
35
38
  line-height: var(--leading-h1);
36
- font-weight: var(--font-weight-heading);
37
39
  letter-spacing: var(--tracking-h1);
38
40
  text-wrap: balance;
39
41
  font-optical-sizing: auto;
@@ -41,9 +43,9 @@
41
43
 
42
44
  :where(.ui-prose h2) {
43
45
  font-family: var(--font-family-heading);
46
+ font-weight: var(--font-weight-heading);
44
47
  font-size: var(--font-size-h2);
45
48
  line-height: var(--leading-h2);
46
- font-weight: var(--font-weight-heading);
47
49
  letter-spacing: var(--tracking-h2);
48
50
  text-wrap: balance;
49
51
  font-optical-sizing: auto;
@@ -51,9 +53,9 @@
51
53
 
52
54
  :where(.ui-prose h3) {
53
55
  font-family: var(--font-family-heading);
56
+ font-weight: var(--font-weight-heading);
54
57
  font-size: var(--font-size-h3);
55
58
  line-height: var(--leading-h3);
56
- font-weight: var(--font-weight-heading);
57
59
  letter-spacing: var(--tracking-h3);
58
60
  text-wrap: balance;
59
61
  font-optical-sizing: auto;
@@ -61,9 +63,9 @@
61
63
 
62
64
  :where(.ui-prose h4) {
63
65
  font-family: var(--font-family-heading);
66
+ font-weight: var(--font-weight-heading);
64
67
  font-size: var(--font-size-h4);
65
68
  line-height: var(--leading-h4);
66
- font-weight: var(--font-weight-heading);
67
69
  letter-spacing: var(--tracking-h4);
68
70
  text-wrap: balance;
69
71
  font-optical-sizing: auto;
@@ -71,9 +73,9 @@
71
73
 
72
74
  :where(.ui-prose h5) {
73
75
  font-family: var(--font-family-heading);
76
+ font-weight: var(--font-weight-heading);
74
77
  font-size: var(--font-size-h5);
75
78
  line-height: var(--leading-h5);
76
- font-weight: var(--font-weight-heading);
77
79
  letter-spacing: var(--tracking-h5);
78
80
  text-wrap: balance;
79
81
  font-optical-sizing: auto;
@@ -81,9 +83,9 @@
81
83
 
82
84
  :where(.ui-prose h6) {
83
85
  font-family: var(--font-family-heading);
86
+ font-weight: var(--font-weight-heading);
84
87
  font-size: var(--font-size-h6);
85
88
  line-height: var(--leading-h6);
86
- font-weight: var(--font-weight-heading);
87
89
  letter-spacing: var(--tracking-h6);
88
90
  text-wrap: balance;
89
91
  font-optical-sizing: auto;
@@ -492,4 +494,20 @@
492
494
  :where(.italic) {
493
495
  font-style: italic;
494
496
  }
497
+
498
+ :where(.underline) {
499
+ text-decoration-line: underline;
500
+ }
501
+
502
+ :where(.overline) {
503
+ text-decoration-line: overline;
504
+ }
505
+
506
+ :where(.line-through) {
507
+ text-decoration-line: line-through;
508
+ }
509
+
510
+ :where(.no-underline) {
511
+ text-decoration-line: none;
512
+ }
495
513
  }