@epilot/spark-ui 0.26.1 → 0.27.1
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/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/avatar.d.cts +1 -1
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/badge.cjs +10 -2
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +2 -1
- package/dist/components/badge.d.ts +2 -1
- package/dist/components/badge.js +10 -2
- package/dist/components/badge.js.map +1 -1
- package/dist/components/banner.d.cts +1 -1
- package/dist/components/banner.d.ts +1 -1
- package/dist/components/box.d.cts +1 -1
- package/dist/components/box.d.ts +1 -1
- package/dist/components/bubble.cjs +1 -1
- package/dist/components/bubble.cjs.map +1 -1
- package/dist/components/bubble.d.cts +1 -1
- package/dist/components/bubble.d.ts +1 -1
- package/dist/components/bubble.js +1 -1
- package/dist/components/bubble.js.map +1 -1
- package/dist/components/button-group.d.cts +1 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button.cjs +28 -6
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +7 -6
- package/dist/components/button.d.ts +7 -6
- package/dist/components/button.js +28 -6
- package/dist/components/button.js.map +1 -1
- package/dist/components/callout.d.cts +1 -1
- package/dist/components/callout.d.ts +1 -1
- package/dist/components/card.cjs +8 -4
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +6 -2
- package/dist/components/card.d.ts +6 -2
- package/dist/components/card.js +8 -4
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +31 -0
- package/dist/components/checkbox-group.cjs.map +1 -0
- package/dist/components/checkbox-group.d.cts +27 -0
- package/dist/components/checkbox-group.d.ts +27 -0
- package/dist/components/checkbox-group.js +28 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.d.cts +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/empty-state.d.cts +2 -2
- package/dist/components/empty-state.d.ts +2 -2
- package/dist/components/field.cjs +110 -15
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +16 -3
- package/dist/components/field.d.ts +16 -3
- package/dist/components/field.js +111 -17
- package/dist/components/field.js.map +1 -1
- package/dist/components/input-group.cjs +9 -9
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.js +9 -9
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.d.cts +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/list.cjs +21 -5
- package/dist/components/list.cjs.map +1 -1
- package/dist/components/list.d.cts +13 -5
- package/dist/components/list.d.ts +13 -5
- package/dist/components/list.js +21 -5
- package/dist/components/list.js.map +1 -1
- package/dist/components/marker.cjs +1 -1
- package/dist/components/marker.cjs.map +1 -1
- package/dist/components/marker.d.cts +1 -1
- package/dist/components/marker.d.ts +1 -1
- package/dist/components/marker.js +1 -1
- package/dist/components/marker.js.map +1 -1
- package/dist/components/pill.d.cts +1 -1
- package/dist/components/pill.d.ts +1 -1
- package/dist/components/radio.cjs +6 -2
- package/dist/components/radio.cjs.map +1 -1
- package/dist/components/radio.d.cts +4 -2
- package/dist/components/radio.d.ts +4 -2
- package/dist/components/radio.js +6 -2
- package/dist/components/radio.js.map +1 -1
- package/dist/components/rating.cjs +167 -0
- package/dist/components/rating.cjs.map +1 -0
- package/dist/components/rating.d.cts +50 -0
- package/dist/components/rating.d.ts +50 -0
- package/dist/components/rating.js +162 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/scroll-area.cjs +9 -2
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.d.cts +1 -1
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +10 -3
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/segmented-control.d.cts +1 -1
- package/dist/components/segmented-control.d.ts +1 -1
- package/dist/components/select.d.cts +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/selection-item.cjs +42 -0
- package/dist/components/selection-item.cjs.map +1 -0
- package/dist/components/selection-item.d.cts +25 -0
- package/dist/components/selection-item.d.ts +25 -0
- package/dist/components/selection-item.js +39 -0
- package/dist/components/selection-item.js.map +1 -0
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/skeleton.cjs +1 -1
- package/dist/components/skeleton.cjs.map +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.cjs.map +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/spinner.cjs +81 -8
- package/dist/components/spinner.cjs.map +1 -1
- package/dist/components/spinner.js +81 -8
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/stepper.cjs +3 -2
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.js +3 -2
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch-group.cjs +32 -0
- package/dist/components/switch-group.cjs.map +1 -0
- package/dist/components/switch-group.d.cts +26 -0
- package/dist/components/switch-group.d.ts +26 -0
- package/dist/components/switch-group.js +29 -0
- package/dist/components/switch-group.js.map +1 -0
- package/dist/components/switch.d.cts +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/tabs.cjs +32 -23
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +5 -5
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.js +32 -23
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/textarea.d.cts +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/theme.cjs +44 -2
- package/dist/components/theme.cjs.map +1 -1
- package/dist/components/theme.d.cts +4 -2
- package/dist/components/theme.d.ts +4 -2
- package/dist/components/theme.js +44 -2
- package/dist/components/theme.js.map +1 -1
- package/dist/components/toast.cjs +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-group.d.cts +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle.d.cts +2 -2
- package/dist/components/toggle.d.ts +2 -2
- package/dist/lib/accent-theme.d.cts +1 -1
- package/dist/lib/accent-theme.d.ts +1 -1
- package/dist/lib/container-chrome.cjs +4 -4
- package/dist/lib/container-chrome.cjs.map +1 -1
- package/dist/lib/container-chrome.d.cts +1 -1
- package/dist/lib/container-chrome.d.ts +1 -1
- package/dist/lib/container-chrome.js +4 -4
- package/dist/lib/container-chrome.js.map +1 -1
- package/dist/lib/input-box-variants.cjs +8 -8
- package/dist/lib/input-box-variants.cjs.map +1 -1
- package/dist/lib/input-box-variants.d.cts +1 -1
- package/dist/lib/input-box-variants.d.ts +1 -1
- package/dist/lib/input-box-variants.js +8 -8
- package/dist/lib/input-box-variants.js.map +1 -1
- package/dist/lib/selection-list.cjs +17 -0
- package/dist/lib/selection-list.cjs.map +1 -0
- package/dist/lib/selection-list.d.cts +11 -0
- package/dist/lib/selection-list.d.ts +11 -0
- package/dist/lib/selection-list.js +15 -0
- package/dist/lib/selection-list.js.map +1 -0
- package/dist/lib/theme-types.cjs.map +1 -1
- package/dist/lib/theme-types.d.cts +2 -2
- package/dist/lib/theme-types.d.ts +2 -2
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/toggle-group-context.d.cts +2 -1
- package/dist/lib/toggle-group-context.d.ts +2 -1
- package/dist/styles/spark-default.css +12 -1
- package/dist/styles/theme.css +98 -0
- package/dist/{theme-types-Bn5E15-P.d.ts → theme-types-CKZzOmSa.d.cts} +11 -2
- package/dist/{theme-types-Bn5E15-P.d.cts → theme-types-CKZzOmSa.d.ts} +11 -2
- package/package.json +1 -1
package/dist/styles/theme.css
CHANGED
|
@@ -52,6 +52,104 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/* Spinner comet. Dash lengths and offsets are user units on the r=9.5 circles in
|
|
56
|
+
spinner.tsx (circumference ≈ 59.69): change the radius and these stop lining up. */
|
|
57
|
+
@theme {
|
|
58
|
+
--animate-spinner-turn: spark-spinner-turn 1.6s linear infinite;
|
|
59
|
+
--animate-spinner-spark: spark-spinner-spark 1.4s ease-in-out infinite;
|
|
60
|
+
--animate-spinner-band-1: spark-spinner-band-1 1.4s ease-in-out infinite;
|
|
61
|
+
--animate-spinner-band-1-end: spark-spinner-band-1-end 1.4s ease-in-out
|
|
62
|
+
infinite;
|
|
63
|
+
--animate-spinner-band-2: spark-spinner-band-2 1.4s ease-in-out infinite;
|
|
64
|
+
--animate-spinner-band-3: spark-spinner-band-3 1.4s ease-in-out infinite;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@keyframes spark-spinner-turn {
|
|
68
|
+
to {
|
|
69
|
+
transform: rotate(360deg);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@keyframes spark-spinner-spark {
|
|
73
|
+
0% {
|
|
74
|
+
stroke-dasharray: 0.25 200;
|
|
75
|
+
stroke-dashoffset: 0;
|
|
76
|
+
opacity: 0.12;
|
|
77
|
+
}
|
|
78
|
+
40% {
|
|
79
|
+
stroke-dasharray: 6 200;
|
|
80
|
+
stroke-dashoffset: -7.5;
|
|
81
|
+
opacity: 0.12;
|
|
82
|
+
}
|
|
83
|
+
60% {
|
|
84
|
+
stroke-dasharray: 3 200;
|
|
85
|
+
stroke-dashoffset: -9;
|
|
86
|
+
opacity: 0.12;
|
|
87
|
+
}
|
|
88
|
+
82% {
|
|
89
|
+
stroke-dasharray: 0.01 200;
|
|
90
|
+
stroke-dashoffset: -10.5;
|
|
91
|
+
opacity: 0;
|
|
92
|
+
}
|
|
93
|
+
100% {
|
|
94
|
+
stroke-dasharray: 0.25 200;
|
|
95
|
+
stroke-dashoffset: -58;
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@keyframes spark-spinner-band-1 {
|
|
100
|
+
0% {
|
|
101
|
+
stroke-dasharray: 0.25 200;
|
|
102
|
+
stroke-dashoffset: -0.25;
|
|
103
|
+
}
|
|
104
|
+
50% {
|
|
105
|
+
stroke-dasharray: 7.5 200;
|
|
106
|
+
stroke-dashoffset: -17.5;
|
|
107
|
+
}
|
|
108
|
+
100% {
|
|
109
|
+
stroke-dasharray: 0.42 200;
|
|
110
|
+
stroke-dashoffset: -58.42;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@keyframes spark-spinner-band-1-end {
|
|
114
|
+
0% {
|
|
115
|
+
stroke-dashoffset: -0.25;
|
|
116
|
+
}
|
|
117
|
+
50% {
|
|
118
|
+
stroke-dashoffset: -17.5;
|
|
119
|
+
}
|
|
120
|
+
100% {
|
|
121
|
+
stroke-dashoffset: -58.42;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
@keyframes spark-spinner-band-2 {
|
|
125
|
+
0% {
|
|
126
|
+
stroke-dasharray: 0.25 200;
|
|
127
|
+
stroke-dashoffset: -0.5;
|
|
128
|
+
}
|
|
129
|
+
50% {
|
|
130
|
+
stroke-dasharray: 7.5 200;
|
|
131
|
+
stroke-dashoffset: -25;
|
|
132
|
+
}
|
|
133
|
+
100% {
|
|
134
|
+
stroke-dasharray: 0.42 200;
|
|
135
|
+
stroke-dashoffset: -58.84;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@keyframes spark-spinner-band-3 {
|
|
139
|
+
0% {
|
|
140
|
+
stroke-dasharray: 0.25 200;
|
|
141
|
+
stroke-dashoffset: -0.75;
|
|
142
|
+
}
|
|
143
|
+
50% {
|
|
144
|
+
stroke-dasharray: 7.5 200;
|
|
145
|
+
stroke-dashoffset: -32.5;
|
|
146
|
+
}
|
|
147
|
+
100% {
|
|
148
|
+
stroke-dasharray: 0.42 200;
|
|
149
|
+
stroke-dashoffset: -59.27;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
55
153
|
/* `inline` so color utilities emit the underlying var() chain (bg-spark-9 →
|
|
56
154
|
var(--spark-9)) and re-resolve per subtree — a mid-tree accent/neutral/style
|
|
57
155
|
override reaches components instead of freezing at :root. */
|
|
@@ -33,6 +33,15 @@ type SparkCardColor = 'neutral' | 'accent';
|
|
|
33
33
|
type SparkLabelPosition = 'outset' | 'inset';
|
|
34
34
|
type SparkInputStyle = 'soft' | 'surface' | 'outlined' | 'ghost';
|
|
35
35
|
type SparkInputColor = 'brand' | 'gray';
|
|
36
|
+
/** Preferred: `primary` | `neutral` | `destructive`. `accent` / `danger` stay as aliases. */
|
|
37
|
+
type SparkButtonColor = 'primary' | 'accent' | 'neutral' | 'destructive' | 'danger';
|
|
38
|
+
type SparkButtonEmphasis = 'primary' | 'secondary' | 'tertiary';
|
|
39
|
+
interface SparkButtonRole {
|
|
40
|
+
style?: SparkStyle;
|
|
41
|
+
color?: SparkButtonColor;
|
|
42
|
+
}
|
|
43
|
+
/** Per-emphasis `<Button>` look; a nested `<Theme>` replaces only the roles it sets. */
|
|
44
|
+
type SparkButtonRoles = Partial<Record<SparkButtonEmphasis, SparkButtonRole>>;
|
|
36
45
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
-
//# sourceMappingURL=theme-types-
|
|
46
|
+
export { isSparkNeutralFamily as _, SparkButtonRoles as a, SparkInputColor as c, SparkNeutral as d, SparkNeutralFamily as f, SparkStyle as g, SparkSpacing as h, SparkButtonRole as i, SparkInputStyle as l, SparkScaling as m, SparkButtonColor as n, SparkCardColor as o, SparkRadius as p, SparkButtonEmphasis as r, SparkCardVariant as s, SPARK_NEUTRAL_FAMILIES as t, SparkLabelPosition as u };
|
|
47
|
+
//# sourceMappingURL=theme-types-CKZzOmSa.d.cts.map
|
|
@@ -33,6 +33,15 @@ type SparkCardColor = 'neutral' | 'accent';
|
|
|
33
33
|
type SparkLabelPosition = 'outset' | 'inset';
|
|
34
34
|
type SparkInputStyle = 'soft' | 'surface' | 'outlined' | 'ghost';
|
|
35
35
|
type SparkInputColor = 'brand' | 'gray';
|
|
36
|
+
/** Preferred: `primary` | `neutral` | `destructive`. `accent` / `danger` stay as aliases. */
|
|
37
|
+
type SparkButtonColor = 'primary' | 'accent' | 'neutral' | 'destructive' | 'danger';
|
|
38
|
+
type SparkButtonEmphasis = 'primary' | 'secondary' | 'tertiary';
|
|
39
|
+
interface SparkButtonRole {
|
|
40
|
+
style?: SparkStyle;
|
|
41
|
+
color?: SparkButtonColor;
|
|
42
|
+
}
|
|
43
|
+
/** Per-emphasis `<Button>` look; a nested `<Theme>` replaces only the roles it sets. */
|
|
44
|
+
type SparkButtonRoles = Partial<Record<SparkButtonEmphasis, SparkButtonRole>>;
|
|
36
45
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
-
//# sourceMappingURL=theme-types-
|
|
46
|
+
export { isSparkNeutralFamily as _, SparkButtonRoles as a, SparkInputColor as c, SparkNeutral as d, SparkNeutralFamily as f, SparkStyle as g, SparkSpacing as h, SparkButtonRole as i, SparkInputStyle as l, SparkScaling as m, SparkButtonColor as n, SparkCardColor as o, SparkRadius as p, SparkButtonEmphasis as r, SparkCardVariant as s, SPARK_NEUTRAL_FAMILIES as t, SparkLabelPosition as u };
|
|
47
|
+
//# sourceMappingURL=theme-types-CKZzOmSa.d.ts.map
|