@frontile/theme 0.18.6 → 0.18.8

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 (37) hide show
  1. package/declarations/colors.d.ts +1 -0
  2. package/declarations/colors.d.ts.map +1 -1
  3. package/declarations/components/app-layout.d.ts +483 -0
  4. package/declarations/components/app-layout.d.ts.map +1 -0
  5. package/declarations/components/badge.d.ts +162 -0
  6. package/declarations/components/badge.d.ts.map +1 -0
  7. package/declarations/components/bottom-nav.d.ts +61 -0
  8. package/declarations/components/bottom-nav.d.ts.map +1 -0
  9. package/declarations/components/chip.d.ts +0 -18
  10. package/declarations/components/chip.d.ts.map +1 -1
  11. package/declarations/components/forms/forms.d.ts +5 -1
  12. package/declarations/components/forms/forms.d.ts.map +1 -1
  13. package/declarations/components/index.d.ts +5 -0
  14. package/declarations/components/index.d.ts.map +1 -1
  15. package/declarations/components/nav-color.d.ts +15 -0
  16. package/declarations/components/nav-color.d.ts.map +1 -0
  17. package/declarations/components/nav-item.d.ts +184 -0
  18. package/declarations/components/nav-item.d.ts.map +1 -0
  19. package/declarations/components/shared.d.ts +8 -0
  20. package/declarations/components/shared.d.ts.map +1 -1
  21. package/declarations/components/stepper.d.ts +364 -0
  22. package/declarations/components/stepper.d.ts.map +1 -0
  23. package/declarations/plugin/power-select.d.ts.map +1 -1
  24. package/declarations/plugin/resolve.d.ts.map +1 -1
  25. package/declarations/plugin/theme-context.d.ts +15 -0
  26. package/declarations/plugin/theme-context.d.ts.map +1 -0
  27. package/declarations/plugin.d.ts.map +1 -1
  28. package/dist/colors.js +1 -1
  29. package/dist/index.js +1507 -15
  30. package/dist/index.js.map +1 -1
  31. package/dist/plugin.js +87 -13
  32. package/dist/plugin.js.map +1 -1
  33. package/dist/{util-PU966Q_x.js → util-DrX1hjH-.js} +2 -2
  34. package/dist/{util-PU966Q_x.js.map → util-DrX1hjH-.js.map} +1 -1
  35. package/package.json +2 -2
  36. package/src/index.css +68 -3
  37. package/src/styles/theme.css +11 -1
package/src/index.css CHANGED
@@ -2,9 +2,48 @@
2
2
  @import './styles/font-faces.css';
3
3
  @import './styles/theme.css';
4
4
 
5
- /* Theme variants */
6
- @custom-variant dark (&:is(.dark *, .light .theme-inverse *):not(.dark .theme-inverse *));
7
- @custom-variant light (&:is(.light *, .dark .theme-inverse *):not(.light .theme-inverse *));
5
+ /* Theme variants
6
+
7
+ `dark:` applies when the element's nearest themed ancestor resolves dark:
8
+ a `.dark`, or a `.theme-inverse` whose own context is light. `light:` is
9
+ the mirror. Only ancestors count -- a `dark:` utility on the element that
10
+ itself carries `.dark` does not match.
11
+
12
+ The selectors enumerate every chain of themed ancestors (`.light`, `.dark`,
13
+ `.theme-inverse`) up to 3 deep, grouped by exact depth: one themed ancestor,
14
+ exactly two, exactly three. On an element with 4 or more themed ancestors
15
+ neither variant applies, so the plain utility shows. Chains of consecutive
16
+ `.theme-inverse` resolve up to 2 deep, matching the token rules in
17
+ `plugin/resolve.ts`.
18
+
19
+ Why not `@scope`, as the token rules use: Tailwind nests a block custom
20
+ variant inside the utility rule (`.dark\:x { @scope (.dark) { ... } }`), and
21
+ a nested `@scope` resolves its root relative to the parent rule -- among
22
+ the utility element's descendants, never its ancestors -- so it never
23
+ matches.
24
+
25
+ Specificity stays at (0,4,0) for the variant, (0,5,0) with the utility, as
26
+ before: the `:not()` depth guard counts four classes and the enumeration
27
+ sits in `:where()`. A `dark:` utility therefore wins and loses against the
28
+ same compound variants as it did.
29
+
30
+ `plugin/theme-context.ts` repeats the `dark` enumeration for the plugin's
31
+ `.dark <selector>` component rules (radio icon, power-select surfaces);
32
+ change both together. */
33
+ @custom-variant dark (&:not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *):where(
34
+ :is(.dark *):not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *),
35
+ :is(:is(.light, .dark, .theme-inverse) .dark *, .light .theme-inverse *):not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *),
36
+ :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) .dark *,
37
+ :is(.light, .dark, .theme-inverse) .light .theme-inverse *,
38
+ .dark .theme-inverse .theme-inverse *
39
+ ));
40
+ @custom-variant light (&:not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *):where(
41
+ :is(.light *):not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *),
42
+ :is(:is(.light, .dark, .theme-inverse) .light *, .dark .theme-inverse *):not(:is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) *),
43
+ :is(.light, .dark, .theme-inverse) :is(.light, .dark, .theme-inverse) .light *,
44
+ :is(.light, .dark, .theme-inverse) .dark .theme-inverse *,
45
+ .light .theme-inverse .theme-inverse *
46
+ ));
8
47
  @custom-variant focus-visible (&[data-focus-visible-added]);
9
48
 
10
49
  /* Data state variants */
@@ -65,6 +104,30 @@
65
104
  }
66
105
  }
67
106
 
107
+ /* Stepper: the check draws itself when a step completes. `stroke-dashoffset`
108
+ runs against `pathLength="1"`, so the keyframe is independent of the path's
109
+ real length. */
110
+ @keyframes stepper-check-draw {
111
+ from {
112
+ stroke-dashoffset: 1;
113
+ }
114
+ to {
115
+ stroke-dashoffset: 0;
116
+ }
117
+ }
118
+
119
+ @keyframes stepper-check-pop {
120
+ 0% {
121
+ transform: scale(0.6);
122
+ }
123
+ 60% {
124
+ transform: scale(1.15);
125
+ }
126
+ 100% {
127
+ transform: scale(1);
128
+ }
129
+ }
130
+
68
131
  /*
69
132
  A text caret blinks hard on and off -- it does not fade. Adjacent stops at the
70
133
  midpoint give an instant switch under linear timing, and 1.06s is roughly the
@@ -111,4 +174,6 @@
111
174
  --animate-skeleton-enter: skeleton-enter 320ms cubic-bezier(0.16, 1, 0.3, 1)
112
175
  both;
113
176
  --animate-caret-blink: caret-blink 1.06s linear infinite;
177
+ --animate-stepper-check-draw: stepper-check-draw 320ms 60ms ease-out both;
178
+ --animate-stepper-check-pop: stepper-check-pop 320ms ease-out both;
114
179
  }
@@ -9,7 +9,7 @@
9
9
  --size-icon-pico: var(--font-size-6); /* Icon size for pico scale. */
10
10
  --size-icon-nano: var(--font-size-7); /* Icon size for nano scale. */
11
11
  --size-icon-micro: var(--font-size-8); /* Icon size for micro scale. */
12
- --size-icon-3xs: var(--font-size-7); /* Icon size for 3xs scale. */
12
+ --size-icon-3xs: var(--font-size-9); /* Icon size for 3xs scale. */
13
13
  --size-icon-2xs: var(--font-size-10); /* Icon size for 2xs scale. */
14
14
  --size-icon-xs: var(--font-size-12); /* Icon size for xs scale. */
15
15
  --size-icon-sm: var(--font-size-14); /* Icon size for sm scale. */
@@ -21,6 +21,16 @@
21
21
  --size-icon-kilo: var(--font-size-29); /* Icon size for kilo scale. */
22
22
  --size-icon-mega: var(--font-size-31); /* Icon size for mega scale. */
23
23
 
24
+ /* ==================== Stepper Container Thresholds ====================
25
+ * Container widths at which a collapsed Stepper reveals its titles. These
26
+ * are Frontile-namespaced on purpose: the generic `--container-*` sizes
27
+ * (`@md`, `@2xl`) are shared with `max-w-*` and apps commonly redefine them.
28
+ * `var()` cannot be used inside a container query condition, so apps retune
29
+ * these here, in their own `@theme` block, at build time.
30
+ */
31
+ --container-fr-stepper-bottom: 28rem; /* labelPosition="bottom" shows titles from here. */
32
+ --container-fr-stepper-end: 42rem; /* labelPosition="end" shows titles from here. */
33
+
24
34
  /* ==================== Border Thickness ==================== */
25
35
  --border-width-thin: 0.5px; /* Thin, subtle border style. */
26
36
  --border-width-default: 1px; /* Default border width. */