@mekari/pixel3-theme 0.0.3 → 0.0.5-dev.0
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/index.js +228 -79
- package/dist/index.mjs +194 -45
- package/dist/recipes/index.d.mts +2 -0
- package/dist/recipes/index.d.ts +2 -0
- package/dist/recipes/segmented-control.d.mts +5 -0
- package/dist/recipes/segmented-control.d.ts +5 -0
- package/dist/recipes/toast.d.mts +5 -0
- package/dist/recipes/toast.d.ts +5 -0
- package/dist/tokens/colors.d.mts +1 -1
- package/dist/tokens/colors.d.ts +1 -1
- package/dist/tokens/index.d.mts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/global-css.ts +4 -2
- package/src/recipes/avatar.ts +32 -29
- package/src/recipes/badge.ts +2 -2
- package/src/recipes/button.ts +8 -3
- package/src/recipes/index.ts +5 -1
- package/src/recipes/progress.ts +1 -1
- package/src/recipes/segmented-control.ts +91 -0
- package/src/recipes/tag.ts +2 -1
- package/src/recipes/text.ts +2 -1
- package/src/recipes/toast.ts +49 -0
- package/src/recipes/upload.ts +1 -1
- package/src/tokens/colors.ts +1 -1
- package/src/tokens/typography.ts +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'segmented-control',
|
|
5
|
+
jsx: ['MpSegmentedControl', 'mp-segmented-control'],
|
|
6
|
+
slots: ['root', 'item', 'hidden', 'control', 'label', 'icon'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
display: 'inline-flex',
|
|
11
|
+
gap: '1',
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
justifyContent: 'var(--mp-segmented-control--justify-content)',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
width: 'var(--mp-segmented-control--width)',
|
|
16
|
+
height: '9.5',
|
|
17
|
+
borderWidth: '1px',
|
|
18
|
+
borderColor: 'gray.100',
|
|
19
|
+
borderRadius: 'md',
|
|
20
|
+
outline: '0px solid transparent',
|
|
21
|
+
padding: '1'
|
|
22
|
+
},
|
|
23
|
+
item: {
|
|
24
|
+
flex: 'var(--mp-segmented-control--flex)',
|
|
25
|
+
cursor: 'var(--mp-segmented-control--cursor)'
|
|
26
|
+
},
|
|
27
|
+
hidden: {
|
|
28
|
+
border: '0px',
|
|
29
|
+
clip: 'rect(0px, 0px, 0px, 0px)',
|
|
30
|
+
margin: '-1px',
|
|
31
|
+
padding: '0px',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
whiteSpace: 'nowrap',
|
|
34
|
+
height: '1px',
|
|
35
|
+
width: '1px',
|
|
36
|
+
position: 'absolute'
|
|
37
|
+
},
|
|
38
|
+
control: {
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'var(--mp-segmented-control--justify-content)',
|
|
42
|
+
height: '7',
|
|
43
|
+
paddingY: '1',
|
|
44
|
+
userSelect: 'none',
|
|
45
|
+
borderRadius: 'sm',
|
|
46
|
+
transition: 'all 250ms',
|
|
47
|
+
color: 'gray.600',
|
|
48
|
+
backgroundColor: 'white',
|
|
49
|
+
gap: 'var(--mp-segmented-control--gap)',
|
|
50
|
+
paddingX: 'var(--mp-segmented-control--padding-x)',
|
|
51
|
+
'input[type=radio]:hover:not(:disabled):not(:checked) + &': {
|
|
52
|
+
color: 'blue.700'
|
|
53
|
+
},
|
|
54
|
+
'input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &': {
|
|
55
|
+
color: 'blue.400',
|
|
56
|
+
backgroundColor: 'blue.50'
|
|
57
|
+
},
|
|
58
|
+
'input[type=radio]:disabled + &': {
|
|
59
|
+
color: 'gray.400'
|
|
60
|
+
},
|
|
61
|
+
'input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &':
|
|
62
|
+
{
|
|
63
|
+
color: 'blue.700'
|
|
64
|
+
},
|
|
65
|
+
'input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &': {
|
|
66
|
+
color: 'blue.700',
|
|
67
|
+
boxShadow: 'outer'
|
|
68
|
+
},
|
|
69
|
+
'input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &':
|
|
70
|
+
{
|
|
71
|
+
color: 'gray.400',
|
|
72
|
+
backgroundColor: 'gray.50'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
label: {
|
|
76
|
+
color: 'currentColor',
|
|
77
|
+
fontSize: 'md',
|
|
78
|
+
fontFamily: 'body',
|
|
79
|
+
lineHeight: 'md',
|
|
80
|
+
opacity: '1'
|
|
81
|
+
},
|
|
82
|
+
icon: {
|
|
83
|
+
color: 'currentColor'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
variants: {},
|
|
87
|
+
compoundVariants: [],
|
|
88
|
+
defaultVariants: {}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
export { segmentedControlSlotRecipe }
|
package/src/recipes/tag.ts
CHANGED
package/src/recipes/text.ts
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const toastSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'toast',
|
|
5
|
+
jsx: ['MpToast', 'mp-toast'],
|
|
6
|
+
slots: ['root', 'icon', 'label'],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
gap: '2',
|
|
12
|
+
width: '356px',
|
|
13
|
+
border: '1.5px solid',
|
|
14
|
+
borderRadius: 'md',
|
|
15
|
+
backgroundColor: 'white',
|
|
16
|
+
padding: '3',
|
|
17
|
+
boxShadow: 'lg',
|
|
18
|
+
zIndex: '9999'
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
fontSize: 'md'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
success: {},
|
|
27
|
+
error: {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{
|
|
32
|
+
variant: 'success',
|
|
33
|
+
css: {
|
|
34
|
+
root: { borderColor: 'green.700' }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
variant: 'error',
|
|
39
|
+
css: {
|
|
40
|
+
root: { borderColor: 'red.700' }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
variant: 'success'
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
export { toastSlotRecipe }
|
package/src/recipes/upload.ts
CHANGED
package/src/tokens/colors.ts
CHANGED
|
@@ -39,7 +39,7 @@ export const colors = defineTokens.colors({
|
|
|
39
39
|
800: { value: 'rgba(255, 255, 255, 0.80)' },
|
|
40
40
|
900: { value: 'rgba(255, 255, 255, 0.92)' }
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
blackAlpha: {
|
|
43
43
|
50: { value: 'rgba(0, 0, 0, 0.04)' },
|
|
44
44
|
100: { value: 'rgba(0, 0, 0, 0.06)' },
|
|
45
45
|
200: { value: 'rgba(0, 0, 0, 0.08)' },
|
package/src/tokens/typography.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { defineTokens } from '@pandacss/dev'
|
|
|
3
3
|
export const fonts = defineTokens.fonts({
|
|
4
4
|
body: {
|
|
5
5
|
value:
|
|
6
|
-
'"
|
|
6
|
+
'"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
7
7
|
},
|
|
8
8
|
mono: {
|
|
9
9
|
value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'
|