@frontile/theme 0.18.11 → 0.18.12

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.
@@ -24,6 +24,11 @@ declare const badge: import("tailwind-variants").TVReturnType<{
24
24
  };
25
25
  };
26
26
  size: {
27
+ '2xs': {
28
+ base: string;
29
+ dot: string;
30
+ icon: string;
31
+ };
27
32
  xs: {
28
33
  base: string;
29
34
  dot: string;
@@ -44,6 +49,16 @@ declare const badge: import("tailwind-variants").TVReturnType<{
44
49
  dot: string;
45
50
  icon: string;
46
51
  };
52
+ xl: {
53
+ base: string;
54
+ dot: string;
55
+ icon: string;
56
+ };
57
+ '2xl': {
58
+ base: string;
59
+ dot: string;
60
+ icon: string;
61
+ };
47
62
  };
48
63
  }, {
49
64
  base: string;
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CA+JT,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAkLT,CAAC;AAEH,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -7,6 +7,8 @@ declare const button: import("tailwind-variants").TVReturnType<{
7
7
  ghost: string;
8
8
  plain: string;
9
9
  custom: string;
10
+ glass: string;
11
+ link: string;
10
12
  };
11
13
  isLoading: {
12
14
  true: string;
@@ -115,5 +117,15 @@ declare const toggleButton: import("tailwind-variants").TVReturnType<{
115
117
  }, undefined, string[], undefined, undefined, undefined>>;
116
118
  declare const buttonGroup: import("tailwind-variants").TVReturnType<{}, undefined, string[], undefined, undefined, undefined>;
117
119
  declare const buttonSpinner: import("tailwind-variants").TVReturnType<{}, undefined, "size-[1em] text-current/25 fill-current", undefined, undefined, undefined>;
118
- export { button, toggleButton, buttonGroup, buttonSpinner };
120
+ declare const iconButton: import("tailwind-variants").TVReturnType<{
121
+ size: {
122
+ xs: string;
123
+ sm: string;
124
+ md: string;
125
+ lg: string;
126
+ xl: string;
127
+ '2xl': string;
128
+ };
129
+ }, undefined, "px-0", undefined, undefined, undefined>;
130
+ export { button, toggleButton, buttonGroup, buttonSpinner, iconButton };
119
131
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":"AA6FA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAmRV,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAmEhB,CAAC;AAEH,QAAA,MAAM,WAAW,oGAEf,CAAC;AAMH,QAAA,MAAM,aAAa,qIAEjB,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.ts"],"names":[],"mappings":"AAwGA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA6UV,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAmEhB,CAAC;AAEH,QAAA,MAAM,WAAW,oGAEf,CAAC;AAMH,QAAA,MAAM,aAAa,qIAEjB,CAAC;AAWH,QAAA,MAAM,UAAU;;;;;;;;;sDAed,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Card is a surface and nothing else: it owns the fill, border, radius,
3
+ * padding and the states a surface can be in. What goes inside is the call
4
+ * site's business, and so is selection behaviour — `isSelected` only changes
5
+ * how the surface looks.
6
+ *
7
+ * The border is `border` (1px) in every variant and state, so moving between
8
+ * states never shifts the contents. `flat` and `soft` keep the same border
9
+ * width but make it transparent. Hover and selected add weight without
10
+ * changing that width: a second 1px layer, drawn inside the border in the same
11
+ * colour with `inset-shadow-[0_0_0_1px_…]`, so the edge reads as 2px.
12
+ *
13
+ * That layer is an `inset-shadow`, not a `ring` or an `outline`. `ring-*`
14
+ * shares its `--tw-ring-*` variables with the focus ring (`focusVisibleRing`),
15
+ * so a focused selected card would get an inset focus ring; `outline` is the
16
+ * focus indicator in forced-colors (`outline-hidden`). `inset-shadow` has its
17
+ * own variable and stacks with `shadow-elevation-*` and the focus ring.
18
+ *
19
+ * `box-shadow` is not drawn in forced-colors, so a selected card widens its
20
+ * border to 3px in that mode instead (`forced-colors:border-[3px]`). A layout
21
+ * shift is acceptable there; losing the selected cue is not.
22
+ *
23
+ * Everything that depends on more than one variant lives in
24
+ * `compoundVariants`. tv() applies those after the plain variants and
25
+ * resolves conflicts with tailwind-merge, so a state's border or fill wins
26
+ * over the variant's resting one without relying on declaration order.
27
+ */
28
+ declare const card: import("tailwind-variants").TVReturnType<{
29
+ variant: {
30
+ outline: string;
31
+ flat: string;
32
+ soft: string;
33
+ };
34
+ color: {
35
+ neutral: string;
36
+ primary: string;
37
+ };
38
+ density: {
39
+ compact: string;
40
+ comfortable: string;
41
+ spacious: string;
42
+ };
43
+ elevation: {
44
+ raised: string;
45
+ none: string;
46
+ };
47
+ isSelected: {
48
+ true: string;
49
+ false: string;
50
+ };
51
+ isInteractive: {
52
+ true: string;
53
+ false: string;
54
+ };
55
+ isDisabled: {
56
+ true: string;
57
+ false: string;
58
+ };
59
+ }, undefined, string[], undefined, undefined, undefined>;
60
+ /**
61
+ * The selection indicator: a small solid circle overhanging a card's top-right
62
+ * corner, holding whatever icon the call site passes in the `indicator` block.
63
+ * Card renders it only while selected, so it has no state of its own. The
64
+ * overhang is why `card` is `relative` and has no `overflow-hidden`.
65
+ *
66
+ * `starting:` gives it a short fade and scale in when it mounts; reduced
67
+ * motion drops the transition.
68
+ */
69
+ declare const cardIndicator: import("tailwind-variants").TVReturnType<{
70
+ color: {
71
+ neutral: string;
72
+ primary: string;
73
+ };
74
+ }, undefined, string[], undefined, undefined, undefined>;
75
+ export { card, cardIndicator };
76
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDA2KR,CAAC;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa;;;;;wDAoBjB,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC"}
@@ -38,6 +38,12 @@ declare const chip: import("tailwind-variants").TVReturnType<{
38
38
  };
39
39
  };
40
40
  size: {
41
+ '2xs': {
42
+ base: string;
43
+ content: string;
44
+ dot: string;
45
+ closeButton: string;
46
+ };
41
47
  xs: {
42
48
  base: string;
43
49
  content: string;
@@ -62,6 +68,18 @@ declare const chip: import("tailwind-variants").TVReturnType<{
62
68
  dot: string;
63
69
  closeButton: string;
64
70
  };
71
+ xl: {
72
+ base: string;
73
+ content: string;
74
+ dot: string;
75
+ closeButton: string;
76
+ };
77
+ '2xl': {
78
+ base: string;
79
+ content: string;
80
+ dot: string;
81
+ closeButton: string;
82
+ };
65
83
  };
66
84
  }, {
67
85
  base: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../src/components/chip.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAmSR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../src/components/chip.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAwTR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type VariantProps } from '../tw';
2
+ declare const icon: import("tailwind-variants").TVReturnType<{
3
+ size: {
4
+ '4xs': string;
5
+ '3xs': string;
6
+ '2xs': string;
7
+ xs: string;
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ xl: string;
12
+ '2xl': string;
13
+ '3xl': string;
14
+ };
15
+ color: {
16
+ neutral: string;
17
+ primary: string;
18
+ secondary: string;
19
+ tertiary: string;
20
+ success: string;
21
+ warning: string;
22
+ danger: string;
23
+ };
24
+ variant: {
25
+ solid: string;
26
+ soft: string;
27
+ subtle: string;
28
+ outline: string;
29
+ plain: string;
30
+ };
31
+ inverse: {
32
+ true: string;
33
+ };
34
+ }, undefined, "box-border inline-flex shrink-0 items-center justify-center rounded-full align-middle", undefined, undefined, undefined>;
35
+ export type IconVariants = VariantProps<typeof icon>;
36
+ export { icon };
37
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/components/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAgF9C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uIAuHR,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -4,6 +4,7 @@ export * from './badge';
4
4
  export * from './breadcrumbs';
5
5
  export * from './button';
6
6
  export * from './chip';
7
+ export * from './icon';
7
8
  export * from './progress-bar';
8
9
  export * from './close-button';
9
10
  export * from './command';
@@ -12,6 +13,7 @@ export * from './listbox';
12
13
  export * from './dropdown';
13
14
  export * from './popover';
14
15
  export * from './divider';
16
+ export * from './card';
15
17
  export * from './external-link';
16
18
  export * from './skeleton';
17
19
  export * from './spinner';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAE1B,cAAc,2BAA2B,CAA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