@optiaxiom/react 0.1.0-next.8 → 0.1.0-next.9
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/alert-dialog/AlertDialog-css.js +12 -0
- package/dist/alert-dialog/AlertDialog.js +51 -0
- package/dist/assets/src/alert-dialog/AlertDialog.css.ts.vanilla-CeDk9JQ5.css +29 -0
- package/dist/assets/src/button/{Button.css.ts.vanilla-BopXGX13.css → Button.css.ts.vanilla-CmOG82Kg.css} +53 -41
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-w5cdPwHc.css +23 -0
- package/dist/assets/src/chip/Chip.css.ts.vanilla-SD4SsrSx.css +26 -0
- package/dist/assets/src/control-base/ControlBase.css.ts.vanilla-BRvl57K9.css +32 -0
- package/dist/assets/src/dialog/Dialog.css.ts.vanilla-B7OE7tnX.css +28 -0
- package/dist/assets/src/dialog-body/DialogBody.css.ts.vanilla-C_QoodTy.css +6 -0
- package/dist/assets/src/{input/Input.css.ts.vanilla-X0R-SsOp.css → input-base/InputBase.css.ts.vanilla-CZg9RekC.css} +10 -8
- package/dist/assets/src/kbd/{Kbd.css.ts.vanilla-DB-l95Nr.css → Kbd.css.ts.vanilla-C9xHGnsD.css} +0 -3
- package/dist/assets/src/link/Link.css.ts.vanilla-Cpe5mdsJ.css +32 -0
- package/dist/assets/src/radio-group-item/RadioGroupItem.css.ts.vanilla-BFZr4-E-.css +9 -0
- package/dist/assets/src/sprinkles/{sprinkles.css.ts.vanilla-Cj5eURGG.css → sprinkles.css.ts.vanilla-3EoQkW4g.css} +2244 -2741
- package/dist/assets/src/styles/{theme.css.ts.vanilla-BftJbjRk.css → theme.css.ts.vanilla-CQvpCMCS.css} +53 -51
- package/dist/assets/src/switch/Switch.css.ts.vanilla-DqRWTr5T.css +23 -0
- package/dist/assets/src/textarea/Textarea.css.ts.vanilla-B4lEj1jX.css +9 -0
- package/dist/box/Box-css.js +1 -1
- package/dist/button/Button-css.js +3 -3
- package/dist/button/Button.js +7 -5
- package/dist/checkbox/Checkbox-css.js +12 -0
- package/dist/checkbox/Checkbox.js +32 -0
- package/dist/checkbox/icons-svg/IconChecked.js +27 -0
- package/dist/checkbox/icons-svg/IconIndeterminate.js +23 -0
- package/dist/chip/Chip-css.js +8 -0
- package/dist/chip/Chip.js +31 -0
- package/dist/chip/IconCross.js +21 -0
- package/dist/code/Code-css.js +1 -1
- package/dist/code/Code.js +4 -13
- package/dist/control-base/ControlBase-css.js +10 -0
- package/dist/control-base/ControlBase.js +30 -0
- package/dist/dialog/CloseIcon.js +21 -0
- package/dist/dialog/Dialog-css.js +9 -0
- package/dist/dialog/Dialog.js +51 -0
- package/dist/dialog-body/DialogBody-css.js +7 -0
- package/dist/dialog-body/DialogBody.js +13 -0
- package/dist/dialog-footer/DialogFooter-css.js +6 -0
- package/dist/dialog-footer/DialogFooter.js +13 -0
- package/dist/dialog-title/DialogTitle.js +21 -0
- package/dist/field/Field.js +24 -7
- package/dist/field/IconInfo.js +26 -0
- package/dist/index.d.ts +537 -376
- package/dist/index.js +12 -0
- package/dist/input/Input-css.js +3 -5
- package/dist/input/Input.js +11 -23
- package/dist/input-base/InputBase-css.js +9 -0
- package/dist/input-base/InputBase.js +44 -0
- package/dist/kbd/Kbd-css.js +3 -4
- package/dist/kbd/Kbd.js +3 -3
- package/dist/link/IconUpRight.js +24 -0
- package/dist/link/Link-css.js +8 -0
- package/dist/link/Link.js +39 -0
- package/dist/radio-group/RadioGroup.js +28 -0
- package/dist/radio-group-item/RadioGroupItem-css.js +10 -0
- package/dist/radio-group-item/RadioGroupItem.js +27 -0
- package/dist/skeleton/Skeleton-css.js +1 -1
- package/dist/skeleton/Skeleton.js +3 -8
- package/dist/sprinkles/sprinkles-css.js +3 -3
- package/dist/styles/theme-css.js +2 -2
- package/dist/switch/Switch-css.js +10 -0
- package/dist/switch/Switch.js +27 -0
- package/dist/text/Text-css.js +1 -1
- package/dist/text/Text.js +0 -1
- package/dist/textarea/Textarea-css.js +8 -0
- package/dist/textarea/Textarea.js +40 -0
- package/dist/tokens/colors.js +16 -1
- package/dist/tokens/fontSize.js +13 -9
- package/dist/tokens/spacing.js +0 -6
- package/dist/tooltip/Tooltip.js +36 -7
- package/dist/transition/Transition.js +7 -8
- package/dist/vanilla-extract/recipeRuntime.js +2 -2
- package/package.json +21 -12
|
@@ -80,6 +80,13 @@
|
|
|
80
80
|
--ax-colors-neutral-900: #262B37;
|
|
81
81
|
--ax-colors-neutral-1000: #1C2029;
|
|
82
82
|
--ax-colors-neutral-1100: #171A23;
|
|
83
|
+
--ax-colors-neutral-1200: #091E42;
|
|
84
|
+
--ax-colors-neutral-50-32: #F9FAFC52;
|
|
85
|
+
--ax-colors-neutral-1200-5: #091E420D;
|
|
86
|
+
--ax-colors-neutral-1200-12: #091E421F;
|
|
87
|
+
--ax-colors-neutral-1200-18: #091E422E;
|
|
88
|
+
--ax-colors-neutral-1200-22: #091E4238;
|
|
89
|
+
--ax-colors-neutral-1200-32: #091E4252;
|
|
83
90
|
--ax-colors-orange-50: #fff5e5;
|
|
84
91
|
--ax-colors-orange-200: #ffd699;
|
|
85
92
|
--ax-colors-orange-500: #ff9900;
|
|
@@ -124,7 +131,7 @@
|
|
|
124
131
|
--ax-colors-bg-brand-solid-hover: #002CCC;
|
|
125
132
|
--ax-colors-bg-brand-subtle: #F0F3FF;
|
|
126
133
|
--ax-colors-bg-default-hover: #F5F6FA;
|
|
127
|
-
--ax-colors-bg-disabled: #
|
|
134
|
+
--ax-colors-bg-disabled: #091E422E;
|
|
128
135
|
--ax-colors-bg-discovery: #F1ECF8;
|
|
129
136
|
--ax-colors-bg-error-solid: #CC1616;
|
|
130
137
|
--ax-colors-bg-error-solid-hover: #B21313;
|
|
@@ -139,6 +146,8 @@
|
|
|
139
146
|
--ax-colors-bg-warning-solid: #F79008;
|
|
140
147
|
--ax-colors-bg-warning-solid-hover: #DC6903;
|
|
141
148
|
--ax-colors-bg-warning-subtle: #FFFAEA;
|
|
149
|
+
--ax-colors-border-active: #868FA4;
|
|
150
|
+
--ax-colors-border-active-hover: #626A81;
|
|
142
151
|
--ax-colors-border-brand: #0037FF;
|
|
143
152
|
--ax-colors-border-default: #CACFDC;
|
|
144
153
|
--ax-colors-border-disabled: #F5F6FA;
|
|
@@ -166,29 +175,33 @@
|
|
|
166
175
|
--ax-colors-fg-tertiary-hover: #464D61;
|
|
167
176
|
--ax-colors-fg-warning: #F79008;
|
|
168
177
|
--ax-colors-fg-warning-hover: #DC6903;
|
|
178
|
+
--ax-colors-outline-brand: #6A8FFC;
|
|
179
|
+
--ax-colors-overlay: #091E4252;
|
|
169
180
|
--ax-colors-surface: #FFFFFF;
|
|
170
181
|
--ax-fontFamily-mono: Fira Code Variable, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
|
|
171
182
|
--ax-fontFamily-sans: InterVariable, system-ui, sans-serif;
|
|
172
183
|
--ax-fontSize-xs-fontSize: 0.625rem;
|
|
173
|
-
--ax-fontSize-xs-lineHeight:
|
|
184
|
+
--ax-fontSize-xs-lineHeight: 0.875rem;
|
|
174
185
|
--ax-fontSize-sm-fontSize: 0.75rem;
|
|
175
|
-
--ax-fontSize-sm-lineHeight: 1.
|
|
186
|
+
--ax-fontSize-sm-lineHeight: 1.125rem;
|
|
176
187
|
--ax-fontSize-md-fontSize: 0.875rem;
|
|
177
|
-
--ax-fontSize-md-lineHeight: 1.
|
|
188
|
+
--ax-fontSize-md-lineHeight: 1.25rem;
|
|
178
189
|
--ax-fontSize-lg-fontSize: 1rem;
|
|
179
|
-
--ax-fontSize-lg-lineHeight: 1.
|
|
190
|
+
--ax-fontSize-lg-lineHeight: 1.5rem;
|
|
180
191
|
--ax-fontSize-xl-fontSize: 1.125rem;
|
|
181
|
-
--ax-fontSize-xl-lineHeight: 1.
|
|
192
|
+
--ax-fontSize-xl-lineHeight: 1.75rem;
|
|
182
193
|
--ax-fontSize-2xl-fontSize: 1.25rem;
|
|
183
|
-
--ax-fontSize-2xl-lineHeight: 1.
|
|
184
|
-
--ax-fontSize-3xl-fontSize: 1.
|
|
185
|
-
--ax-fontSize-3xl-lineHeight:
|
|
186
|
-
--ax-fontSize-4xl-fontSize:
|
|
187
|
-
--ax-fontSize-4xl-lineHeight: 2.
|
|
188
|
-
--ax-fontSize-5xl-fontSize:
|
|
189
|
-
--ax-fontSize-5xl-lineHeight:
|
|
190
|
-
--ax-fontSize-6xl-fontSize:
|
|
194
|
+
--ax-fontSize-2xl-lineHeight: 1.75rem;
|
|
195
|
+
--ax-fontSize-3xl-fontSize: 1.5rem;
|
|
196
|
+
--ax-fontSize-3xl-lineHeight: 2rem;
|
|
197
|
+
--ax-fontSize-4xl-fontSize: 1.875rem;
|
|
198
|
+
--ax-fontSize-4xl-lineHeight: 2.25rem;
|
|
199
|
+
--ax-fontSize-5xl-fontSize: 2.25rem;
|
|
200
|
+
--ax-fontSize-5xl-lineHeight: 2.5rem;
|
|
201
|
+
--ax-fontSize-6xl-fontSize: 3rem;
|
|
191
202
|
--ax-fontSize-6xl-lineHeight: 1;
|
|
203
|
+
--ax-fontSize-7xl-fontSize: 3.75rem;
|
|
204
|
+
--ax-fontSize-7xl-lineHeight: 1;
|
|
192
205
|
--ax-letterSpacing-tighter: -0.05em;
|
|
193
206
|
--ax-letterSpacing-tight: -0.025em;
|
|
194
207
|
--ax-letterSpacing-normal: 0;
|
|
@@ -200,17 +213,11 @@
|
|
|
200
213
|
--ax-lineHeight-normal: 1.5;
|
|
201
214
|
--ax-lineHeight-loose: 2;
|
|
202
215
|
--ax-margins-0: 0;
|
|
203
|
-
--ax-margins-1: 0.063rem;
|
|
204
216
|
--ax-margins-2: 0.125rem;
|
|
205
|
-
--ax-margins-3: 0.188rem;
|
|
206
217
|
--ax-margins-4: 0.25rem;
|
|
207
|
-
--ax-margins-5: 0.313rem;
|
|
208
218
|
--ax-margins-6: 0.375rem;
|
|
209
|
-
--ax-margins-7: 0.438rem;
|
|
210
219
|
--ax-margins-8: 0.5rem;
|
|
211
|
-
--ax-margins-9: 0.563rem;
|
|
212
220
|
--ax-margins-10: 0.625rem;
|
|
213
|
-
--ax-margins-11: 0.688rem;
|
|
214
221
|
--ax-margins-12: 0.75rem;
|
|
215
222
|
--ax-margins-16: 1rem;
|
|
216
223
|
--ax-margins-20: 1.25rem;
|
|
@@ -298,17 +305,11 @@
|
|
|
298
305
|
--ax-size-max: max-content;
|
|
299
306
|
--ax-size-min: min-content;
|
|
300
307
|
--ax-spacing-0: 0;
|
|
301
|
-
--ax-spacing-1: 0.063rem;
|
|
302
308
|
--ax-spacing-2: 0.125rem;
|
|
303
|
-
--ax-spacing-3: 0.188rem;
|
|
304
309
|
--ax-spacing-4: 0.25rem;
|
|
305
|
-
--ax-spacing-5: 0.313rem;
|
|
306
310
|
--ax-spacing-6: 0.375rem;
|
|
307
|
-
--ax-spacing-7: 0.438rem;
|
|
308
311
|
--ax-spacing-8: 0.5rem;
|
|
309
|
-
--ax-spacing-9: 0.563rem;
|
|
310
312
|
--ax-spacing-10: 0.625rem;
|
|
311
|
-
--ax-spacing-11: 0.688rem;
|
|
312
313
|
--ax-spacing-12: 0.75rem;
|
|
313
314
|
--ax-spacing-16: 1rem;
|
|
314
315
|
--ax-spacing-20: 1.25rem;
|
|
@@ -413,6 +414,13 @@
|
|
|
413
414
|
--ax-colors-neutral-900: #262B37;
|
|
414
415
|
--ax-colors-neutral-1000: #1C2029;
|
|
415
416
|
--ax-colors-neutral-1100: #171A23;
|
|
417
|
+
--ax-colors-neutral-1200: #091E42;
|
|
418
|
+
--ax-colors-neutral-50-32: #F9FAFC52;
|
|
419
|
+
--ax-colors-neutral-1200-5: #091E420D;
|
|
420
|
+
--ax-colors-neutral-1200-12: #091E421F;
|
|
421
|
+
--ax-colors-neutral-1200-18: #091E422E;
|
|
422
|
+
--ax-colors-neutral-1200-22: #091E4238;
|
|
423
|
+
--ax-colors-neutral-1200-32: #091E4252;
|
|
416
424
|
--ax-colors-orange-50: #fff5e5;
|
|
417
425
|
--ax-colors-orange-200: #ffd699;
|
|
418
426
|
--ax-colors-orange-500: #ff9900;
|
|
@@ -472,6 +480,8 @@
|
|
|
472
480
|
--ax-colors-bg-warning-solid: #F79008;
|
|
473
481
|
--ax-colors-bg-warning-solid-hover: #DC6903;
|
|
474
482
|
--ax-colors-bg-warning-subtle: #FFFAEA;
|
|
483
|
+
--ax-colors-border-active: #868FA4;
|
|
484
|
+
--ax-colors-border-active-hover: #626A81;
|
|
475
485
|
--ax-colors-border-brand: #0037FF;
|
|
476
486
|
--ax-colors-border-default: #1f2937;
|
|
477
487
|
--ax-colors-border-disabled: #F5F6FA;
|
|
@@ -499,29 +509,33 @@
|
|
|
499
509
|
--ax-colors-fg-tertiary-hover: #464D61;
|
|
500
510
|
--ax-colors-fg-warning: #F79008;
|
|
501
511
|
--ax-colors-fg-warning-hover: #DC6903;
|
|
512
|
+
--ax-colors-outline-brand: #6A8FFC;
|
|
513
|
+
--ax-colors-overlay: #F9FAFC52;
|
|
502
514
|
--ax-colors-surface: #111827;
|
|
503
515
|
--ax-fontFamily-mono: Fira Code Variable, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
|
|
504
516
|
--ax-fontFamily-sans: InterVariable, system-ui, sans-serif;
|
|
505
517
|
--ax-fontSize-xs-fontSize: 0.625rem;
|
|
506
|
-
--ax-fontSize-xs-lineHeight:
|
|
518
|
+
--ax-fontSize-xs-lineHeight: 0.875rem;
|
|
507
519
|
--ax-fontSize-sm-fontSize: 0.75rem;
|
|
508
|
-
--ax-fontSize-sm-lineHeight: 1.
|
|
520
|
+
--ax-fontSize-sm-lineHeight: 1.125rem;
|
|
509
521
|
--ax-fontSize-md-fontSize: 0.875rem;
|
|
510
|
-
--ax-fontSize-md-lineHeight: 1.
|
|
522
|
+
--ax-fontSize-md-lineHeight: 1.25rem;
|
|
511
523
|
--ax-fontSize-lg-fontSize: 1rem;
|
|
512
|
-
--ax-fontSize-lg-lineHeight: 1.
|
|
524
|
+
--ax-fontSize-lg-lineHeight: 1.5rem;
|
|
513
525
|
--ax-fontSize-xl-fontSize: 1.125rem;
|
|
514
|
-
--ax-fontSize-xl-lineHeight: 1.
|
|
526
|
+
--ax-fontSize-xl-lineHeight: 1.75rem;
|
|
515
527
|
--ax-fontSize-2xl-fontSize: 1.25rem;
|
|
516
|
-
--ax-fontSize-2xl-lineHeight: 1.
|
|
517
|
-
--ax-fontSize-3xl-fontSize: 1.
|
|
518
|
-
--ax-fontSize-3xl-lineHeight:
|
|
519
|
-
--ax-fontSize-4xl-fontSize:
|
|
520
|
-
--ax-fontSize-4xl-lineHeight: 2.
|
|
521
|
-
--ax-fontSize-5xl-fontSize:
|
|
522
|
-
--ax-fontSize-5xl-lineHeight:
|
|
523
|
-
--ax-fontSize-6xl-fontSize:
|
|
528
|
+
--ax-fontSize-2xl-lineHeight: 1.75rem;
|
|
529
|
+
--ax-fontSize-3xl-fontSize: 1.5rem;
|
|
530
|
+
--ax-fontSize-3xl-lineHeight: 2rem;
|
|
531
|
+
--ax-fontSize-4xl-fontSize: 1.875rem;
|
|
532
|
+
--ax-fontSize-4xl-lineHeight: 2.25rem;
|
|
533
|
+
--ax-fontSize-5xl-fontSize: 2.25rem;
|
|
534
|
+
--ax-fontSize-5xl-lineHeight: 2.5rem;
|
|
535
|
+
--ax-fontSize-6xl-fontSize: 3rem;
|
|
524
536
|
--ax-fontSize-6xl-lineHeight: 1;
|
|
537
|
+
--ax-fontSize-7xl-fontSize: 3.75rem;
|
|
538
|
+
--ax-fontSize-7xl-lineHeight: 1;
|
|
525
539
|
--ax-letterSpacing-tighter: -0.05em;
|
|
526
540
|
--ax-letterSpacing-tight: -0.025em;
|
|
527
541
|
--ax-letterSpacing-normal: 0;
|
|
@@ -533,17 +547,11 @@
|
|
|
533
547
|
--ax-lineHeight-normal: 1.5;
|
|
534
548
|
--ax-lineHeight-loose: 2;
|
|
535
549
|
--ax-margins-0: 0;
|
|
536
|
-
--ax-margins-1: 0.063rem;
|
|
537
550
|
--ax-margins-2: 0.125rem;
|
|
538
|
-
--ax-margins-3: 0.188rem;
|
|
539
551
|
--ax-margins-4: 0.25rem;
|
|
540
|
-
--ax-margins-5: 0.313rem;
|
|
541
552
|
--ax-margins-6: 0.375rem;
|
|
542
|
-
--ax-margins-7: 0.438rem;
|
|
543
553
|
--ax-margins-8: 0.5rem;
|
|
544
|
-
--ax-margins-9: 0.563rem;
|
|
545
554
|
--ax-margins-10: 0.625rem;
|
|
546
|
-
--ax-margins-11: 0.688rem;
|
|
547
555
|
--ax-margins-12: 0.75rem;
|
|
548
556
|
--ax-margins-16: 1rem;
|
|
549
557
|
--ax-margins-20: 1.25rem;
|
|
@@ -631,17 +639,11 @@
|
|
|
631
639
|
--ax-size-max: max-content;
|
|
632
640
|
--ax-size-min: min-content;
|
|
633
641
|
--ax-spacing-0: 0;
|
|
634
|
-
--ax-spacing-1: 0.063rem;
|
|
635
642
|
--ax-spacing-2: 0.125rem;
|
|
636
|
-
--ax-spacing-3: 0.188rem;
|
|
637
643
|
--ax-spacing-4: 0.25rem;
|
|
638
|
-
--ax-spacing-5: 0.313rem;
|
|
639
644
|
--ax-spacing-6: 0.375rem;
|
|
640
|
-
--ax-spacing-7: 0.438rem;
|
|
641
645
|
--ax-spacing-8: 0.5rem;
|
|
642
|
-
--ax-spacing-9: 0.563rem;
|
|
643
646
|
--ax-spacing-10: 0.625rem;
|
|
644
|
-
--ax-spacing-11: 0.688rem;
|
|
645
647
|
--ax-spacing-12: 0.75rem;
|
|
646
648
|
--ax-spacing-16: 1rem;
|
|
647
649
|
--ax-spacing-20: 1.25rem;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@layer optiaxiom._1kfj4ga1;
|
|
2
|
+
@layer optiaxiom._1kfj4ga1 {
|
|
3
|
+
.n3x1po0 {
|
|
4
|
+
background-color: var(--_7uwxjo1);
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.n3x1po0[data-state="unchecked"]:not([data-disabled]) {
|
|
8
|
+
background-color: var(--ax-colors-bg-disabled);
|
|
9
|
+
}
|
|
10
|
+
.n3x1po1 {
|
|
11
|
+
background-color: var(--ax-colors-white);
|
|
12
|
+
transform: translateX(-10px);
|
|
13
|
+
}
|
|
14
|
+
.n3x1po1:not([data-disabled]) {
|
|
15
|
+
box-shadow: var(--ax-boxShadow-sm);
|
|
16
|
+
}
|
|
17
|
+
.n3x1po1[data-disabled] {
|
|
18
|
+
background-color: var(--ax-colors-bg-disabled);
|
|
19
|
+
}
|
|
20
|
+
.n3x1po1[data-state="checked"] {
|
|
21
|
+
transform: translateX(10px);
|
|
22
|
+
}
|
|
23
|
+
}
|
package/dist/box/Box-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-CQvpCMCS.css';
|
|
3
3
|
import './../assets/src/box/Box.css.ts.vanilla-DMx7YI4c.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-CQvpCMCS.css';
|
|
3
3
|
import './../assets/src/button-group/ButtonGroup.css.ts.vanilla-4BGjgIuZ.css';
|
|
4
|
-
import './../assets/src/button/Button.css.ts.vanilla-
|
|
4
|
+
import './../assets/src/button/Button.css.ts.vanilla-CmOG82Kg.css';
|
|
5
5
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
6
6
|
|
|
7
|
-
var button = recipeRuntime({base:[{alignItems:'center',display:'inline-flex',flexDirection:'row',gap:'4',justifyContent:'center',overflow:'hidden',transition:'colors'},'
|
|
7
|
+
var button = recipeRuntime({base:[{alignItems:'center',display:'inline-flex',flexDirection:'row',gap:'4',justifyContent:'center',overflow:'hidden',transition:'colors'},'_1gqmi2d4'],variants:{colorScheme:{danger:'_1gqmi2d5',primary:'_1gqmi2d6',secondary:'_1gqmi2d7'},iconOnly:{false:{},true:{}},size:{sm:{fontSize:'sm',h:'sm'},md:{fontSize:'md',h:'md'},lg:{fontSize:'lg',h:'lg'}},variant:{outline:'_1gqmi2d8',solid:'_1gqmi2d9',subtle:'_1gqmi2da'}},variantsCompounded:[{style:'_1gqmi2db',variants:{colorScheme:'secondary',variant:'outline'}},{style:'_1gqmi2dc',variants:{iconOnly:true,size:'sm'}},{style:'_1gqmi2dd',variants:{iconOnly:false,size:'sm'}},{style:'_1gqmi2de',variants:{iconOnly:true,size:'md'}},{style:'_1gqmi2df',variants:{iconOnly:false,size:'md'}},{style:'_1gqmi2dg',variants:{iconOnly:true,size:'lg'}},{style:'_1gqmi2dh',variants:{iconOnly:false,size:'lg'}}]});
|
|
8
8
|
var icon = recipeRuntime({variants:{position:{end:{},start:{}},size:{sm:{w:'20'},md:{w:'20'},lg:{w:'20'}}},variantsCompounded:[{style:{ml:'2'},variants:{position:'end',size:'md'}},{style:{mr:'2'},variants:{position:'start',size:'md'}},{style:{ml:'4'},variants:{position:'end',size:'lg'}},{style:{mr:'4'},variants:{position:'start',size:'lg'}}]});
|
|
9
9
|
|
|
10
10
|
export { button, icon };
|
package/dist/button/Button.js
CHANGED
|
@@ -2,6 +2,8 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Slottable, Slot } from '@radix-ui/react-slot';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Box } from '../box/Box.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles-css.js';
|
|
5
7
|
import { button, icon } from './Button-css.js';
|
|
6
8
|
|
|
7
9
|
const appearances = {
|
|
@@ -9,7 +11,7 @@ const appearances = {
|
|
|
9
11
|
"danger-outline": { colorScheme: "danger", variant: "outline" },
|
|
10
12
|
default: { colorScheme: "secondary", variant: "outline" },
|
|
11
13
|
primary: { colorScheme: "primary", variant: "solid" },
|
|
12
|
-
secondary: { colorScheme: "secondary", variant: "
|
|
14
|
+
secondary: { colorScheme: "secondary", variant: "subtle" }
|
|
13
15
|
};
|
|
14
16
|
const Button = forwardRef(
|
|
15
17
|
({
|
|
@@ -27,6 +29,7 @@ const Button = forwardRef(
|
|
|
27
29
|
...props
|
|
28
30
|
}, ref) => {
|
|
29
31
|
const Comp = asChild ? Slot : "button";
|
|
32
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
30
33
|
const presetProps = appearances[appearance];
|
|
31
34
|
const finalColorScheme = colorScheme ?? presetProps.colorScheme;
|
|
32
35
|
const finalVariant = variant ?? presetProps.variant;
|
|
@@ -36,19 +39,18 @@ const Button = forwardRef(
|
|
|
36
39
|
Box,
|
|
37
40
|
{
|
|
38
41
|
asChild: true,
|
|
39
|
-
"data-disabled": isDisabled,
|
|
42
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
40
43
|
...button(
|
|
41
44
|
{
|
|
42
45
|
colorScheme: finalColorScheme,
|
|
43
|
-
disabled: isDisabled,
|
|
44
46
|
iconOnly: isIconOnly,
|
|
45
47
|
size,
|
|
46
48
|
variant: finalVariant
|
|
47
49
|
},
|
|
48
50
|
className
|
|
49
51
|
),
|
|
50
|
-
...
|
|
51
|
-
children: /* @__PURE__ */ jsxs(Comp, { disabled: isDisabled, ref, children: [
|
|
52
|
+
...sprinkleProps,
|
|
53
|
+
children: /* @__PURE__ */ jsxs(Comp, { disabled: isDisabled, ref, ...restProps, children: [
|
|
52
54
|
!isIconOnly && /* @__PURE__ */ jsx(
|
|
53
55
|
Box,
|
|
54
56
|
{
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-CQvpCMCS.css';
|
|
3
|
+
import './../assets/src/control-base/ControlBase.css.ts.vanilla-BRvl57K9.css';
|
|
4
|
+
import './../assets/src/checkbox/Checkbox.css.ts.vanilla-w5cdPwHc.css';
|
|
5
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
6
|
+
|
|
7
|
+
var checkbox = recipeRuntime({base:['_1vlnf5q0',{color:'white',rounded:'xs',size:'16'},'_1vlnf5q3']});
|
|
8
|
+
var iconChecked = recipeRuntime({base:['_1vlnf5q1']});
|
|
9
|
+
var iconIndeterminate = recipeRuntime({base:['_1vlnf5q2']});
|
|
10
|
+
var indicator = recipeRuntime({base:[{alignItems:'center',display:'flex',justifyContent:'center',p:'2',size:'full'}]});
|
|
11
|
+
|
|
12
|
+
export { checkbox, iconChecked, iconIndeterminate, indicator };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixCheckbox from '@radix-ui/react-checkbox';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
import { ControlBase } from '../control-base/ControlBase.js';
|
|
6
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinkles-css.js';
|
|
8
|
+
import { checkbox, indicator, iconChecked, iconIndeterminate } from './Checkbox-css.js';
|
|
9
|
+
import { IconChecked } from './icons-svg/IconChecked.js';
|
|
10
|
+
import { IconIndeterminate } from './icons-svg/IconIndeterminate.js';
|
|
11
|
+
|
|
12
|
+
const Checkbox = forwardRef(
|
|
13
|
+
({ children, className, endDecorator, ...props }, ref) => {
|
|
14
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
ControlBase,
|
|
17
|
+
{
|
|
18
|
+
endDecorator: endDecorator && /* @__PURE__ */ jsx(Box, { asChild: true, ml: "lg", children: endDecorator }),
|
|
19
|
+
label: children,
|
|
20
|
+
ref,
|
|
21
|
+
...sprinkleProps,
|
|
22
|
+
children: /* @__PURE__ */ jsx(Box, { asChild: true, ...checkbox(), children: /* @__PURE__ */ jsx(RadixCheckbox.Root, { ...restProps, children: /* @__PURE__ */ jsx(Box, { asChild: true, ...indicator(), children: /* @__PURE__ */ jsxs(RadixCheckbox.Indicator, { children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, ...iconChecked(), children: /* @__PURE__ */ jsx(IconChecked, {}) }),
|
|
24
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, ...iconIndeterminate(), children: /* @__PURE__ */ jsx(IconIndeterminate, {}) })
|
|
25
|
+
] }) }) }) })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
Checkbox.displayName = "@optiaxiom/react/Checkbox";
|
|
31
|
+
|
|
32
|
+
export { Checkbox };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const IconChecked = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
fill: "none",
|
|
8
|
+
height: "8",
|
|
9
|
+
viewBox: "0 0 12 8",
|
|
10
|
+
width: "12",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
...props,
|
|
13
|
+
children: /* @__PURE__ */ jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M1.5 3.47059L4.83333 7L10.5 1",
|
|
17
|
+
stroke: "currentColor",
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
strokeWidth: "1.5"
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { IconChecked };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const IconIndeterminate = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
height: "8",
|
|
8
|
+
viewBox: "0 0 12 8",
|
|
9
|
+
width: "12",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...props,
|
|
12
|
+
children: /* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M2.85714 3.19995C2.35714 3.19995 2 3.56662 2 3.99995C2 4.46662 2.35714 4.79995 2.85714 4.79995H9.14286C9.60714 4.79995 10 4.46662 10 3.99995C10 3.56662 9.60714 3.19995 9.14286 3.19995H2.85714Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { IconIndeterminate };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-CQvpCMCS.css';
|
|
3
|
+
import './../assets/src/chip/Chip.css.ts.vanilla-SD4SsrSx.css';
|
|
4
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
|
+
|
|
6
|
+
var chip = recipeRuntime({base:[{alignItems:'center',display:'inline-flex',flexDirection:'row',gap:'xs',justifyContent:'center',rounded:'full'},'wnd97r0'],variants:{size:{sm:{fontSize:'sm',px:'sm',py:'2'},md:{fontSize:'md',px:'sm',py:'4'},lg:{fontSize:'lg',px:'md',py:'6'}}}});
|
|
7
|
+
|
|
8
|
+
export { chip };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixToggle from '@radix-ui/react-toggle';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles-css.js';
|
|
7
|
+
import { chip } from './Chip-css.js';
|
|
8
|
+
import { IconCross } from './IconCross.js';
|
|
9
|
+
|
|
10
|
+
const Chip = forwardRef(
|
|
11
|
+
({
|
|
12
|
+
children,
|
|
13
|
+
className,
|
|
14
|
+
disabled,
|
|
15
|
+
endDecorator,
|
|
16
|
+
onPressedChange,
|
|
17
|
+
size = "md",
|
|
18
|
+
startDecorator,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => {
|
|
21
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
22
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...chip({ size }, className), ...sprinkleProps, children: /* @__PURE__ */ jsxs(RadixToggle.Root, { disabled, ref, ...restProps, children: [
|
|
23
|
+
startDecorator && /* @__PURE__ */ jsx(Box, { asChild: true, ml: "4", children: startDecorator }),
|
|
24
|
+
children,
|
|
25
|
+
endDecorator ? /* @__PURE__ */ jsx(Box, { asChild: true, children: endDecorator }) : !!onPressedChange && /* @__PURE__ */ jsx(IconCross, {})
|
|
26
|
+
] }) });
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
Chip.displayName = "@optiaxiom/react/Chip";
|
|
30
|
+
|
|
31
|
+
export { Chip };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const IconCross = (props) => /* @__PURE__ */ jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
height: "16",
|
|
7
|
+
viewBox: "0 0 20 16",
|
|
8
|
+
width: "20",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
...props,
|
|
11
|
+
children: /* @__PURE__ */ jsx(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M14.8438 12.875C14.6562 13.0625 14.3125 13.0625 14.125 12.875L10 8.71875L5.84375 12.875C5.65625 13.0625 5.3125 13.0625 5.125 12.875C4.9375 12.6875 4.9375 12.3438 5.125 12.1562L9.28125 8L5.125 3.875C4.9375 3.6875 4.9375 3.34375 5.125 3.15625C5.3125 2.96875 5.65625 2.96875 5.84375 3.15625L10 7.3125L14.125 3.15625C14.3125 2.96875 14.6562 2.96875 14.8438 3.15625C15.0312 3.34375 15.0312 3.6875 14.8438 3.875L10.6875 8L14.8438 12.1562C15.0312 12.3438 15.0312 12.6875 14.8438 12.875Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export { IconCross };
|
package/dist/code/Code-css.js
CHANGED
|
@@ -2,6 +2,6 @@ import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
|
2
2
|
import './../assets/src/code/Code.css.ts.vanilla-Dz07Qp9h.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var code = recipeRuntime({base:'go7emt0'});
|
|
5
|
+
var code = recipeRuntime({base:[{bg:'bg.neutral',display:'inline-block',px:'4',rounded:'sm'},'go7emt0']});
|
|
6
6
|
|
|
7
7
|
export { code };
|
package/dist/code/Code.js
CHANGED
|
@@ -2,24 +2,15 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Slot } from '@radix-ui/react-slot';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Box } from '../box/Box.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles-css.js';
|
|
5
7
|
import { code } from './Code-css.js';
|
|
6
8
|
|
|
7
9
|
const Code = forwardRef(
|
|
8
10
|
({ asChild, children, className, ...props }, ref) => {
|
|
9
11
|
const Comp = asChild ? Slot : "code";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
asChild: true,
|
|
14
|
-
bg: "bg.neutral",
|
|
15
|
-
display: "inline-block",
|
|
16
|
-
px: "4",
|
|
17
|
-
rounded: "sm",
|
|
18
|
-
...code({}, className),
|
|
19
|
-
...props,
|
|
20
|
-
children: /* @__PURE__ */ jsx(Comp, { ref, children })
|
|
21
|
-
}
|
|
22
|
-
);
|
|
12
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
13
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...code({}, className), ...sprinkleProps, children: /* @__PURE__ */ jsx(Comp, { ref, ...restProps, children }) });
|
|
23
14
|
}
|
|
24
15
|
);
|
|
25
16
|
Code.displayName = "@optiaxiom/react/Code";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-CQvpCMCS.css';
|
|
3
|
+
import './../assets/src/control-base/ControlBase.css.ts.vanilla-BRvl57K9.css';
|
|
4
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
|
+
|
|
6
|
+
var controlBase = recipeRuntime({base:[{flexDirection:'row',gap:'0'},'_7uwxjo2']});
|
|
7
|
+
var indicator = recipeRuntime({base:['_7uwxjo0','_7uwxjo3']});
|
|
8
|
+
var label = recipeRuntime({base:[{flex:'1',pl:'xs'},'_7uwxjo4']});
|
|
9
|
+
|
|
10
|
+
export { controlBase, indicator, label };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixLabel from '@radix-ui/react-label';
|
|
3
|
+
import { useId } from '@reach/auto-id';
|
|
4
|
+
import { forwardRef, cloneElement } from 'react';
|
|
5
|
+
import { Box } from '../box/Box.js';
|
|
6
|
+
import { Flex } from '../flex/Flex.js';
|
|
7
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
8
|
+
import '../sprinkles/sprinkles-css.js';
|
|
9
|
+
import { Text } from '../text/Text.js';
|
|
10
|
+
import { controlBase, indicator, label } from './ControlBase-css.js';
|
|
11
|
+
|
|
12
|
+
const ControlBase = forwardRef(
|
|
13
|
+
({ children, className, endDecorator, id: idProp, label: label$1, ...props }, ref) => {
|
|
14
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
15
|
+
const id = useId(idProp);
|
|
16
|
+
return /* @__PURE__ */ jsxs(Flex, { className, gap: "0", ref, ...sprinkleProps, children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(Flex, { ...controlBase(), children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, ...indicator(), children: cloneElement(children, {
|
|
19
|
+
id,
|
|
20
|
+
...restProps
|
|
21
|
+
}) }),
|
|
22
|
+
/* @__PURE__ */ jsx(Text, { asChild: true, ...label(), children: /* @__PURE__ */ jsx(RadixLabel.Root, { htmlFor: id, children: label$1 }) })
|
|
23
|
+
] }),
|
|
24
|
+
endDecorator
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
ControlBase.displayName = "@optiaxiom/react/ControlBase";
|
|
29
|
+
|
|
30
|
+
export { ControlBase };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const CloseIcon = () => /* @__PURE__ */ jsx(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
fill: "none",
|
|
7
|
+
height: "16",
|
|
8
|
+
viewBox: "0 0 20 16",
|
|
9
|
+
width: "20",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /* @__PURE__ */ jsx(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M14.8436 12.875C14.6561 13.0625 14.3124 13.0625 14.1249 12.875L9.99988 8.71875L5.84363 12.875C5.65613 13.0625 5.31238 13.0625 5.12488 12.875C4.93738 12.6875 4.93738 12.3438 5.12488 12.1562L9.28113 8L5.12488 3.875C4.93738 3.6875 4.93738 3.34375 5.12488 3.15625C5.31238 2.96875 5.65613 2.96875 5.84363 3.15625L9.99988 7.3125L14.1249 3.15625C14.3124 2.96875 14.6561 2.96875 14.8436 3.15625C15.0311 3.34375 15.0311 3.6875 14.8436 3.875L10.6874 8L14.8436 12.1562C15.0311 12.3438 15.0311 12.6875 14.8436 12.875Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export { CloseIcon };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/dialog/Dialog.css.ts.vanilla-B7OE7tnX.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var close = recipeRuntime({base:[{rounded:'full'},'_1hgarxm5']});
|
|
6
|
+
var content = recipeRuntime({base:[{rounded:'lg',shadow:'md',z:'popover'},'_1hgarxm0'],variants:{size:{sm:'_1hgarxm1',md:'_1hgarxm2',lg:'_1hgarxm3'}}});
|
|
7
|
+
var overlay = recipeRuntime({base:[{bg:'overlay',z:'popover'},'_1hgarxm4']});
|
|
8
|
+
|
|
9
|
+
export { close, content, overlay };
|