@mekari/pixel3-theme 0.5.0-dev.0 → 0.5.0-dev.2
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/conditions.d.mts +1 -0
- package/dist/conditions.d.ts +1 -0
- package/dist/index.js +160 -72
- package/dist/index.mjs +160 -72
- package/dist/semanticTokens/colors.d.mts +59 -24
- package/dist/semanticTokens/colors.d.ts +59 -24
- package/dist/semanticTokens/index.d.mts +59 -24
- package/dist/semanticTokens/index.d.ts +59 -24
- package/dist/tokens/index.d.mts +4 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/spacing.d.mts +4 -0
- package/dist/tokens/spacing.d.ts +4 -0
- package/package.json +1 -1
- package/src/conditions.ts +1 -0
- package/src/recipes/avatar.ts +6 -2
- package/src/recipes/button.ts +29 -12
- package/src/recipes/modal.ts +16 -1
- package/src/recipes/progress.ts +1 -1
- package/src/semanticTokens/colors.ts +97 -56
- package/src/tokens/spacing.ts +1 -0
|
@@ -237,19 +237,21 @@ declare const colors: {
|
|
|
237
237
|
};
|
|
238
238
|
};
|
|
239
239
|
selected: {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
DEFAULT: {
|
|
241
|
+
value: {
|
|
242
|
+
base: string;
|
|
243
|
+
_light: string;
|
|
244
|
+
_dark: string;
|
|
245
|
+
_enterprise: string;
|
|
246
|
+
};
|
|
245
247
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
disabled: {
|
|
249
|
+
value: {
|
|
250
|
+
base: string;
|
|
251
|
+
_light: string;
|
|
252
|
+
_dark: string;
|
|
253
|
+
_enterprise: string;
|
|
254
|
+
};
|
|
253
255
|
};
|
|
254
256
|
};
|
|
255
257
|
};
|
|
@@ -552,6 +554,34 @@ declare const colors: {
|
|
|
552
554
|
};
|
|
553
555
|
};
|
|
554
556
|
};
|
|
557
|
+
nav: {
|
|
558
|
+
parent: {
|
|
559
|
+
value: {
|
|
560
|
+
base: string;
|
|
561
|
+
_light: string;
|
|
562
|
+
_dark: string;
|
|
563
|
+
_enterprise: string;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
stack: {
|
|
567
|
+
DEFAULT: {
|
|
568
|
+
value: {
|
|
569
|
+
base: string;
|
|
570
|
+
_light: string;
|
|
571
|
+
_dark: string;
|
|
572
|
+
_enterprise: string;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
hovered: {
|
|
576
|
+
value: {
|
|
577
|
+
base: string;
|
|
578
|
+
_light: string;
|
|
579
|
+
_dark: string;
|
|
580
|
+
_enterprise: string;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
555
585
|
header: {
|
|
556
586
|
DEFAULT: {
|
|
557
587
|
value: {
|
|
@@ -591,6 +621,7 @@ declare const colors: {
|
|
|
591
621
|
};
|
|
592
622
|
nav: {
|
|
593
623
|
parent: {
|
|
624
|
+
deprecated: string;
|
|
594
625
|
value: {
|
|
595
626
|
base: string;
|
|
596
627
|
_light: string;
|
|
@@ -600,6 +631,7 @@ declare const colors: {
|
|
|
600
631
|
};
|
|
601
632
|
stack: {
|
|
602
633
|
DEFAULT: {
|
|
634
|
+
deprecated: string;
|
|
603
635
|
value: {
|
|
604
636
|
base: string;
|
|
605
637
|
_light: string;
|
|
@@ -608,6 +640,7 @@ declare const colors: {
|
|
|
608
640
|
};
|
|
609
641
|
};
|
|
610
642
|
hovered: {
|
|
643
|
+
deprecated: string;
|
|
611
644
|
value: {
|
|
612
645
|
base: string;
|
|
613
646
|
_light: string;
|
|
@@ -895,19 +928,21 @@ declare const colors: {
|
|
|
895
928
|
};
|
|
896
929
|
border: {
|
|
897
930
|
default: {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
931
|
+
DEFAULT: {
|
|
932
|
+
value: {
|
|
933
|
+
base: string;
|
|
934
|
+
_light: string;
|
|
935
|
+
_dark: string;
|
|
936
|
+
_enterprise: string;
|
|
937
|
+
};
|
|
903
938
|
};
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
939
|
+
subtle: {
|
|
940
|
+
value: {
|
|
941
|
+
base: string;
|
|
942
|
+
_light: string;
|
|
943
|
+
_dark: string;
|
|
944
|
+
_enterprise: string;
|
|
945
|
+
};
|
|
911
946
|
};
|
|
912
947
|
};
|
|
913
948
|
bold: {
|
|
@@ -238,19 +238,21 @@ declare const semanticTokens: {
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
selected: {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
DEFAULT: {
|
|
242
|
+
value: {
|
|
243
|
+
base: string;
|
|
244
|
+
_light: string;
|
|
245
|
+
_dark: string;
|
|
246
|
+
_enterprise: string;
|
|
247
|
+
};
|
|
246
248
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
disabled: {
|
|
250
|
+
value: {
|
|
251
|
+
base: string;
|
|
252
|
+
_light: string;
|
|
253
|
+
_dark: string;
|
|
254
|
+
_enterprise: string;
|
|
255
|
+
};
|
|
254
256
|
};
|
|
255
257
|
};
|
|
256
258
|
};
|
|
@@ -553,6 +555,34 @@ declare const semanticTokens: {
|
|
|
553
555
|
};
|
|
554
556
|
};
|
|
555
557
|
};
|
|
558
|
+
nav: {
|
|
559
|
+
parent: {
|
|
560
|
+
value: {
|
|
561
|
+
base: string;
|
|
562
|
+
_light: string;
|
|
563
|
+
_dark: string;
|
|
564
|
+
_enterprise: string;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
stack: {
|
|
568
|
+
DEFAULT: {
|
|
569
|
+
value: {
|
|
570
|
+
base: string;
|
|
571
|
+
_light: string;
|
|
572
|
+
_dark: string;
|
|
573
|
+
_enterprise: string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
hovered: {
|
|
577
|
+
value: {
|
|
578
|
+
base: string;
|
|
579
|
+
_light: string;
|
|
580
|
+
_dark: string;
|
|
581
|
+
_enterprise: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
556
586
|
header: {
|
|
557
587
|
DEFAULT: {
|
|
558
588
|
value: {
|
|
@@ -592,6 +622,7 @@ declare const semanticTokens: {
|
|
|
592
622
|
};
|
|
593
623
|
nav: {
|
|
594
624
|
parent: {
|
|
625
|
+
deprecated: string;
|
|
595
626
|
value: {
|
|
596
627
|
base: string;
|
|
597
628
|
_light: string;
|
|
@@ -601,6 +632,7 @@ declare const semanticTokens: {
|
|
|
601
632
|
};
|
|
602
633
|
stack: {
|
|
603
634
|
DEFAULT: {
|
|
635
|
+
deprecated: string;
|
|
604
636
|
value: {
|
|
605
637
|
base: string;
|
|
606
638
|
_light: string;
|
|
@@ -609,6 +641,7 @@ declare const semanticTokens: {
|
|
|
609
641
|
};
|
|
610
642
|
};
|
|
611
643
|
hovered: {
|
|
644
|
+
deprecated: string;
|
|
612
645
|
value: {
|
|
613
646
|
base: string;
|
|
614
647
|
_light: string;
|
|
@@ -896,19 +929,21 @@ declare const semanticTokens: {
|
|
|
896
929
|
};
|
|
897
930
|
border: {
|
|
898
931
|
default: {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
932
|
+
DEFAULT: {
|
|
933
|
+
value: {
|
|
934
|
+
base: string;
|
|
935
|
+
_light: string;
|
|
936
|
+
_dark: string;
|
|
937
|
+
_enterprise: string;
|
|
938
|
+
};
|
|
904
939
|
};
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
940
|
+
subtle: {
|
|
941
|
+
value: {
|
|
942
|
+
base: string;
|
|
943
|
+
_light: string;
|
|
944
|
+
_dark: string;
|
|
945
|
+
_enterprise: string;
|
|
946
|
+
};
|
|
912
947
|
};
|
|
913
948
|
};
|
|
914
949
|
bold: {
|
|
@@ -238,19 +238,21 @@ declare const semanticTokens: {
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
selected: {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
DEFAULT: {
|
|
242
|
+
value: {
|
|
243
|
+
base: string;
|
|
244
|
+
_light: string;
|
|
245
|
+
_dark: string;
|
|
246
|
+
_enterprise: string;
|
|
247
|
+
};
|
|
246
248
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
disabled: {
|
|
250
|
+
value: {
|
|
251
|
+
base: string;
|
|
252
|
+
_light: string;
|
|
253
|
+
_dark: string;
|
|
254
|
+
_enterprise: string;
|
|
255
|
+
};
|
|
254
256
|
};
|
|
255
257
|
};
|
|
256
258
|
};
|
|
@@ -553,6 +555,34 @@ declare const semanticTokens: {
|
|
|
553
555
|
};
|
|
554
556
|
};
|
|
555
557
|
};
|
|
558
|
+
nav: {
|
|
559
|
+
parent: {
|
|
560
|
+
value: {
|
|
561
|
+
base: string;
|
|
562
|
+
_light: string;
|
|
563
|
+
_dark: string;
|
|
564
|
+
_enterprise: string;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
stack: {
|
|
568
|
+
DEFAULT: {
|
|
569
|
+
value: {
|
|
570
|
+
base: string;
|
|
571
|
+
_light: string;
|
|
572
|
+
_dark: string;
|
|
573
|
+
_enterprise: string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
hovered: {
|
|
577
|
+
value: {
|
|
578
|
+
base: string;
|
|
579
|
+
_light: string;
|
|
580
|
+
_dark: string;
|
|
581
|
+
_enterprise: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
556
586
|
header: {
|
|
557
587
|
DEFAULT: {
|
|
558
588
|
value: {
|
|
@@ -592,6 +622,7 @@ declare const semanticTokens: {
|
|
|
592
622
|
};
|
|
593
623
|
nav: {
|
|
594
624
|
parent: {
|
|
625
|
+
deprecated: string;
|
|
595
626
|
value: {
|
|
596
627
|
base: string;
|
|
597
628
|
_light: string;
|
|
@@ -601,6 +632,7 @@ declare const semanticTokens: {
|
|
|
601
632
|
};
|
|
602
633
|
stack: {
|
|
603
634
|
DEFAULT: {
|
|
635
|
+
deprecated: string;
|
|
604
636
|
value: {
|
|
605
637
|
base: string;
|
|
606
638
|
_light: string;
|
|
@@ -609,6 +641,7 @@ declare const semanticTokens: {
|
|
|
609
641
|
};
|
|
610
642
|
};
|
|
611
643
|
hovered: {
|
|
644
|
+
deprecated: string;
|
|
612
645
|
value: {
|
|
613
646
|
base: string;
|
|
614
647
|
_light: string;
|
|
@@ -896,19 +929,21 @@ declare const semanticTokens: {
|
|
|
896
929
|
};
|
|
897
930
|
border: {
|
|
898
931
|
default: {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
932
|
+
DEFAULT: {
|
|
933
|
+
value: {
|
|
934
|
+
base: string;
|
|
935
|
+
_light: string;
|
|
936
|
+
_dark: string;
|
|
937
|
+
_enterprise: string;
|
|
938
|
+
};
|
|
904
939
|
};
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
940
|
+
subtle: {
|
|
941
|
+
value: {
|
|
942
|
+
base: string;
|
|
943
|
+
_light: string;
|
|
944
|
+
_dark: string;
|
|
945
|
+
_enterprise: string;
|
|
946
|
+
};
|
|
912
947
|
};
|
|
913
948
|
};
|
|
914
949
|
bold: {
|
package/dist/tokens/index.d.mts
CHANGED
package/dist/tokens/index.d.ts
CHANGED
package/dist/tokens/spacing.d.ts
CHANGED
package/package.json
CHANGED
package/src/conditions.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const conditions = {
|
|
|
17
17
|
hasBorder: '&[data-has-border=true]',
|
|
18
18
|
hasBackground: '&[data-has-background=true]',
|
|
19
19
|
isFullWidth: '&[data-is-full-width=true]',
|
|
20
|
+
isRounded: '&[data-is-rounded=true]',
|
|
20
21
|
placementLeft: '&[data-placement=left]',
|
|
21
22
|
placementRight: '&[data-placement=right]',
|
|
22
23
|
nextTheme: '[data-panda-theme=next] &',
|
package/src/recipes/avatar.ts
CHANGED
|
@@ -186,7 +186,9 @@ const avatarSlotRecipe = defineSlotRecipe({
|
|
|
186
186
|
defaultVariants: {
|
|
187
187
|
size: 'md',
|
|
188
188
|
variant: 'circle'
|
|
189
|
-
}
|
|
189
|
+
},
|
|
190
|
+
// TODO: Check why this recipe need to generate statically
|
|
191
|
+
staticCss: ['*']
|
|
190
192
|
})
|
|
191
193
|
|
|
192
194
|
const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
@@ -261,7 +263,9 @@ const avatarGroupSlotRecipe = defineSlotRecipe({
|
|
|
261
263
|
}
|
|
262
264
|
},
|
|
263
265
|
compoundVariants: [],
|
|
264
|
-
defaultVariants: {}
|
|
266
|
+
defaultVariants: {},
|
|
267
|
+
// TODO: Check why this recipe need to generate statically
|
|
268
|
+
staticCss: ['*']
|
|
265
269
|
})
|
|
266
270
|
|
|
267
271
|
export { avatarSlotRecipe, avatarGroupSlotRecipe }
|
package/src/recipes/button.ts
CHANGED
|
@@ -23,6 +23,9 @@ const buttonRecipe = defineRecipe({
|
|
|
23
23
|
_isFullWidth: {
|
|
24
24
|
width: 'full'
|
|
25
25
|
},
|
|
26
|
+
_isRounded: {
|
|
27
|
+
borderRadius: 'full'
|
|
28
|
+
},
|
|
26
29
|
_loading: {
|
|
27
30
|
cursor: 'wait',
|
|
28
31
|
position: 'absolute',
|
|
@@ -271,8 +274,14 @@ const buttonRecipe = defineRecipe({
|
|
|
271
274
|
borderRadius: 'sm',
|
|
272
275
|
textStyle: 'label.md',
|
|
273
276
|
fontWeight: 'regular',
|
|
277
|
+
_isRounded: {
|
|
278
|
+
borderRadius: 'full'
|
|
279
|
+
},
|
|
274
280
|
_loading: {
|
|
275
|
-
borderRadius: 'sm'
|
|
281
|
+
borderRadius: 'sm',
|
|
282
|
+
_isRounded: {
|
|
283
|
+
borderRadius: 'full'
|
|
284
|
+
}
|
|
276
285
|
},
|
|
277
286
|
_hasIcon: {
|
|
278
287
|
paddingX: '1',
|
|
@@ -316,8 +325,14 @@ const buttonRecipe = defineRecipe({
|
|
|
316
325
|
borderRadius: 'md',
|
|
317
326
|
textStyle: 'label.md',
|
|
318
327
|
fontWeight: 'semiBold',
|
|
328
|
+
_isRounded: {
|
|
329
|
+
borderRadius: 'full'
|
|
330
|
+
},
|
|
319
331
|
_loading: {
|
|
320
|
-
borderRadius: 'md'
|
|
332
|
+
borderRadius: 'md',
|
|
333
|
+
_isRounded: {
|
|
334
|
+
borderRadius: 'full'
|
|
335
|
+
}
|
|
321
336
|
},
|
|
322
337
|
_hasIcon: {
|
|
323
338
|
paddingX: '2',
|
|
@@ -459,16 +474,18 @@ const buttonGroupRecipe = defineRecipe({
|
|
|
459
474
|
gap: 'var(--mp-button-group-spacing)',
|
|
460
475
|
'&[data-split-button=true]': {
|
|
461
476
|
gap: '0',
|
|
462
|
-
'& >
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
477
|
+
'& > button:first-of-type': {
|
|
478
|
+
borderTopRightRadius: 'none !important',
|
|
479
|
+
borderBottomRightRadius: 'none !important',
|
|
480
|
+
borderRight: '0 !important'
|
|
481
|
+
},
|
|
482
|
+
'& > button:not(:first-of-type):not(:last-of-type)': {
|
|
483
|
+
borderRadius: 'none !important',
|
|
484
|
+
borderRight: '0 !important'
|
|
485
|
+
},
|
|
486
|
+
'& > button:last-of-type': {
|
|
487
|
+
borderTopLeftRadius: 'none !important',
|
|
488
|
+
borderBottomLeftRadius: 'none !important'
|
|
472
489
|
}
|
|
473
490
|
}
|
|
474
491
|
}
|
package/src/recipes/modal.ts
CHANGED
|
@@ -29,7 +29,17 @@ export const modalSlotRecipe = defineSlotRecipe({
|
|
|
29
29
|
},
|
|
30
30
|
body: {
|
|
31
31
|
p: 4,
|
|
32
|
-
flex: 1
|
|
32
|
+
flex: 1,
|
|
33
|
+
'&[data-drawer-variant="floating"]': {
|
|
34
|
+
rounded: 'lg',
|
|
35
|
+
background: 'background.stage',
|
|
36
|
+
px: '0',
|
|
37
|
+
pt: '0',
|
|
38
|
+
pb: '4',
|
|
39
|
+
_focus: {
|
|
40
|
+
outline: 'none'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
},
|
|
34
44
|
contentRoot: {
|
|
35
45
|
pos: 'fixed',
|
|
@@ -57,6 +67,11 @@ export const modalSlotRecipe = defineSlotRecipe({
|
|
|
57
67
|
'&[data-modal-type="drawer"]': {
|
|
58
68
|
borderColor: 'border.default'
|
|
59
69
|
}
|
|
70
|
+
},
|
|
71
|
+
'&[data-modal-type="drawer"][data-drawer-variant="floating"]': {
|
|
72
|
+
background: 'transparent',
|
|
73
|
+
borderWidth: '0px !important',
|
|
74
|
+
p: '3'
|
|
60
75
|
}
|
|
61
76
|
},
|
|
62
77
|
header: {
|
package/src/recipes/progress.ts
CHANGED