@mekari/pixel3-theme 0.2.1 → 0.2.2-dev.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/conditions.d.mts +4 -1
- package/dist/conditions.d.ts +4 -1
- package/dist/index.js +3423 -606
- package/dist/index.mjs +3382 -565
- package/dist/recipes/airene-button.d.mts +5 -0
- package/dist/recipes/airene-button.d.ts +5 -0
- package/dist/recipes/index.d.mts +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/semanticTokens/colors.d.mts +892 -0
- package/dist/semanticTokens/colors.d.ts +892 -0
- package/dist/semanticTokens/index.d.mts +951 -0
- package/dist/semanticTokens/index.d.ts +951 -0
- package/dist/semanticTokens/spacing.d.mts +59 -0
- package/dist/semanticTokens/spacing.d.ts +59 -0
- package/dist/tokens/borders.d.mts +2 -2
- package/dist/tokens/borders.d.ts +2 -2
- package/dist/tokens/colors.d.mts +40 -34
- package/dist/tokens/colors.d.ts +40 -34
- package/dist/tokens/index.d.mts +62 -35
- package/dist/tokens/index.d.ts +62 -35
- package/dist/tokens/radii.d.mts +5 -0
- package/dist/tokens/radii.d.ts +5 -0
- package/dist/tokens/spacing.d.mts +16 -0
- package/dist/tokens/spacing.d.ts +16 -0
- package/dist/tokens-next/borders.d.mts +22 -0
- package/dist/tokens-next/borders.d.ts +22 -0
- package/dist/tokens-next/colors.d.mts +444 -0
- package/dist/tokens-next/colors.d.ts +444 -0
- package/dist/tokens-next/index.d.mts +775 -0
- package/dist/tokens-next/index.d.ts +775 -0
- package/dist/tokens-next/radii.d.mts +26 -0
- package/dist/tokens-next/radii.d.ts +26 -0
- package/dist/tokens-next/shadows.d.mts +28 -0
- package/dist/tokens-next/shadows.d.ts +28 -0
- package/dist/tokens-next/spacing.d.mts +51 -0
- package/dist/tokens-next/spacing.d.ts +51 -0
- package/package.json +3 -2
- package/src/conditions.ts +6 -4
- package/src/global-css.ts +4 -0
- package/src/index.ts +15 -2
- package/src/keyframes.ts +5 -0
- package/src/recipes/accordion.ts +60 -10
- package/src/recipes/airene-button.ts +120 -0
- package/src/recipes/autocomplete.ts +6 -1
- package/src/recipes/avatar.ts +101 -24
- package/src/recipes/badge.ts +174 -50
- package/src/recipes/banner.ts +36 -12
- package/src/recipes/broadcast.ts +78 -12
- package/src/recipes/button.ts +239 -11
- package/src/recipes/carousel.ts +5 -0
- package/src/recipes/chart.ts +10 -5
- package/src/recipes/checkbox.ts +72 -15
- package/src/recipes/color-picker.ts +74 -23
- package/src/recipes/date-picker.ts +165 -31
- package/src/recipes/divider.ts +5 -1
- package/src/recipes/dropzone.ts +80 -8
- package/src/recipes/form-control.ts +12 -3
- package/src/recipes/icon.ts +3 -1
- package/src/recipes/index.ts +3 -1
- package/src/recipes/input-tag.ts +48 -8
- package/src/recipes/input.ts +105 -18
- package/src/recipes/modal.ts +38 -10
- package/src/recipes/popover.ts +28 -9
- package/src/recipes/progress.ts +9 -2
- package/src/recipes/radio.ts +56 -23
- package/src/recipes/rich-text-editor.ts +32 -6
- package/src/recipes/segmented-control.ts +48 -8
- package/src/recipes/select.ts +42 -0
- package/src/recipes/slider.ts +46 -6
- package/src/recipes/table.ts +26 -11
- package/src/recipes/tabs.ts +36 -4
- package/src/recipes/tag.ts +44 -14
- package/src/recipes/text.ts +0 -1
- package/src/recipes/textarea.ts +0 -46
- package/src/recipes/timeline.ts +42 -8
- package/src/recipes/toast.ts +21 -5
- package/src/recipes/toggle.ts +63 -13
- package/src/recipes/tooltip.ts +6 -1
- package/src/recipes/upload.ts +51 -16
- package/src/semanticTokens/colors.ts +893 -0
- package/src/semanticTokens/index.ts +8 -0
- package/src/semanticTokens/spacing.ts +59 -0
- package/src/text-styles.ts +1 -1
- package/src/tokens/borders.ts +1 -1
- package/src/tokens/colors.ts +19 -23
- package/src/tokens/index.ts +2 -2
- package/src/tokens/radii.ts +5 -5
- package/src/tokens/spacing.ts +17 -17
- package/src/tokens-next/borders.ts +10 -0
- package/src/tokens-next/colors.ts +172 -0
- package/src/tokens-next/index.ts +32 -0
- package/src/tokens-next/radii.ts +10 -0
- package/src/tokens-next/shadows.ts +28 -0
- package/src/tokens-next/spacing.ts +16 -0
|
@@ -30,6 +30,10 @@ const richTextEditorSlotRecipe = defineSlotRecipe({
|
|
|
30
30
|
paddingY: '1',
|
|
31
31
|
paddingX: '3',
|
|
32
32
|
marginBottom: '1',
|
|
33
|
+
_nextTheme: {
|
|
34
|
+
backgroundColor: 'background.neutral.subtle',
|
|
35
|
+
border: '0px solid'
|
|
36
|
+
},
|
|
33
37
|
'& button': {
|
|
34
38
|
display: 'flex',
|
|
35
39
|
justifyContent: 'center',
|
|
@@ -42,18 +46,30 @@ const richTextEditorSlotRecipe = defineSlotRecipe({
|
|
|
42
46
|
borderRadius: 'md',
|
|
43
47
|
color: 'blue.400',
|
|
44
48
|
backgroundColor: 'blue.50',
|
|
45
|
-
|
|
49
|
+
_nextTheme: {
|
|
50
|
+
color: 'icon.brand',
|
|
51
|
+
backgroundColor: 'background.brand.hovered'
|
|
52
|
+
}
|
|
46
53
|
},
|
|
47
54
|
'&.is-active': {
|
|
48
|
-
color: 'blue.400'
|
|
49
|
-
|
|
55
|
+
color: 'blue.400',
|
|
56
|
+
_nextTheme: {
|
|
57
|
+
color: 'icon.brand'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
_nextTheme: {
|
|
61
|
+
color: 'icon.default'
|
|
62
|
+
},
|
|
50
63
|
},
|
|
51
64
|
'& button.mp-popover-list-item': {
|
|
52
65
|
padding: '0',
|
|
53
66
|
'&:hover': {
|
|
54
67
|
borderRadius: '0',
|
|
55
68
|
color: 'blue.400',
|
|
56
|
-
backgroundColor: 'transparent'
|
|
69
|
+
backgroundColor: 'transparent',
|
|
70
|
+
_nextTheme: {
|
|
71
|
+
color: 'icon.brand'
|
|
72
|
+
}
|
|
57
73
|
},
|
|
58
74
|
'& div': {
|
|
59
75
|
justifyContent: 'center!',
|
|
@@ -78,7 +94,10 @@ const richTextEditorSlotRecipe = defineSlotRecipe({
|
|
|
78
94
|
content: 'attr(data-placeholder)',
|
|
79
95
|
float: 'left',
|
|
80
96
|
height: '0',
|
|
81
|
-
pointerEvents: 'none'
|
|
97
|
+
pointerEvents: 'none',
|
|
98
|
+
_nextTheme: {
|
|
99
|
+
color: 'text.placeholder'
|
|
100
|
+
}
|
|
82
101
|
}
|
|
83
102
|
}
|
|
84
103
|
},
|
|
@@ -91,6 +110,7 @@ const RTEStyleProviderRecipe = defineRecipe({
|
|
|
91
110
|
className: 'typography-style-provider',
|
|
92
111
|
jsx: ['MpTypographyStyleProvider', 'mp-typography-style-provider'],
|
|
93
112
|
base: {
|
|
113
|
+
color: 'dark',
|
|
94
114
|
'& h1': {
|
|
95
115
|
textStyle: 'h1'
|
|
96
116
|
},
|
|
@@ -129,7 +149,13 @@ const RTEStyleProviderRecipe = defineRecipe({
|
|
|
129
149
|
'& blockquote': {
|
|
130
150
|
borderLeft: '4px solid',
|
|
131
151
|
borderColor: 'dark',
|
|
132
|
-
padding: '2'
|
|
152
|
+
padding: '2',
|
|
153
|
+
_nextTheme: {
|
|
154
|
+
borderColor: 'text.default'
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
_nextTheme: {
|
|
158
|
+
color: 'text.default'
|
|
133
159
|
}
|
|
134
160
|
},
|
|
135
161
|
variants: {},
|
|
@@ -18,7 +18,10 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
18
18
|
borderColor: 'gray.100',
|
|
19
19
|
borderRadius: 'md',
|
|
20
20
|
outline: '0px solid transparent',
|
|
21
|
-
padding: '1'
|
|
21
|
+
padding: '1',
|
|
22
|
+
_nextTheme: {
|
|
23
|
+
borderColor: 'border.form',
|
|
24
|
+
}
|
|
22
25
|
},
|
|
23
26
|
item: {
|
|
24
27
|
flex: 'var(--mp-segmented-control--flex)',
|
|
@@ -45,32 +48,69 @@ const segmentedControlSlotRecipe = defineSlotRecipe({
|
|
|
45
48
|
borderRadius: 'sm',
|
|
46
49
|
transition: 'all 250ms',
|
|
47
50
|
color: 'gray.600',
|
|
48
|
-
backgroundColor: '
|
|
51
|
+
backgroundColor: 'transparent',
|
|
49
52
|
gap: 'var(--mp-segmented-control--gap)',
|
|
50
53
|
paddingX: 'var(--mp-segmented-control--padding-x)',
|
|
51
54
|
'input[type=radio]:hover:not(:disabled):not(:checked) + &': {
|
|
52
|
-
color: 'blue.700'
|
|
55
|
+
color: 'blue.700',
|
|
56
|
+
_nextTheme: {
|
|
57
|
+
color: 'text.secondary',
|
|
58
|
+
backgroundColor: 'background.neutral.hovered',
|
|
59
|
+
'& > svg': {
|
|
60
|
+
color: 'icon.default',
|
|
61
|
+
}
|
|
62
|
+
}
|
|
53
63
|
},
|
|
54
64
|
'input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &': {
|
|
55
65
|
color: 'blue.400',
|
|
56
|
-
backgroundColor: 'blue.50'
|
|
66
|
+
backgroundColor: 'blue.50',
|
|
67
|
+
_nextTheme: {
|
|
68
|
+
color: 'text.selected',
|
|
69
|
+
backgroundColor: 'background.brand.selected',
|
|
70
|
+
'& > svg': {
|
|
71
|
+
color: 'icon.selected',
|
|
72
|
+
}
|
|
73
|
+
}
|
|
57
74
|
},
|
|
58
75
|
'input[type=radio]:disabled + &': {
|
|
59
|
-
color: 'gray.400'
|
|
76
|
+
color: 'gray.400',
|
|
77
|
+
cursor: 'not-allowed',
|
|
78
|
+
_nextTheme: {
|
|
79
|
+
color: 'text.disabled',
|
|
80
|
+
backgroundColor: 'background.disabled',
|
|
81
|
+
'& > svg': {
|
|
82
|
+
color: 'icon.disabled',
|
|
83
|
+
}
|
|
84
|
+
}
|
|
60
85
|
},
|
|
61
86
|
'input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &':
|
|
62
87
|
{
|
|
63
88
|
color: 'blue.700'
|
|
64
89
|
},
|
|
65
|
-
'input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &': {
|
|
90
|
+
'input[type=radio]:checked:focus-visible + &, input[type=radio][aria-checked=mixed]:focus-visible + &': {
|
|
66
91
|
color: 'blue.700',
|
|
67
|
-
boxShadow: 'outer'
|
|
92
|
+
boxShadow: 'outer',
|
|
93
|
+
_nextTheme: {
|
|
94
|
+
color: 'text.selected',
|
|
95
|
+
boxShadow: '0 0 0 2px {colors.border.focused}'
|
|
96
|
+
}
|
|
68
97
|
},
|
|
69
98
|
'input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &':
|
|
70
99
|
{
|
|
71
100
|
color: 'gray.400',
|
|
72
|
-
backgroundColor: 'gray.50'
|
|
101
|
+
backgroundColor: 'gray.50',
|
|
102
|
+
cursor: 'not-allowed',
|
|
103
|
+
_nextTheme: {
|
|
104
|
+
color: 'text.disabled',
|
|
105
|
+
backgroundColor: 'background.disabled'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
_nextTheme: {
|
|
109
|
+
color: 'text.secondary',
|
|
110
|
+
'& > svg': {
|
|
111
|
+
color: 'icon.default',
|
|
73
112
|
}
|
|
113
|
+
}
|
|
74
114
|
},
|
|
75
115
|
label: {
|
|
76
116
|
color: 'currentColor',
|
package/src/recipes/select.ts
CHANGED
|
@@ -54,6 +54,48 @@ const selectSlotRecipe = defineSlotRecipe({
|
|
|
54
54
|
},
|
|
55
55
|
_isFullWidth: {
|
|
56
56
|
width: 'full'
|
|
57
|
+
},
|
|
58
|
+
_placeholder: {
|
|
59
|
+
color: 'gray.400',
|
|
60
|
+
},
|
|
61
|
+
_nextTheme: {
|
|
62
|
+
backgroundColor: 'background.neutral',
|
|
63
|
+
borderColor: 'border.form',
|
|
64
|
+
_hover: {
|
|
65
|
+
borderColor: 'border.form',
|
|
66
|
+
backgroundColor: 'background.neutral.hovered',
|
|
67
|
+
_invalid: {
|
|
68
|
+
borderColor: 'border.danger'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
_focus: {
|
|
72
|
+
borderColor: 'transparent',
|
|
73
|
+
boxShadow: 'focus',
|
|
74
|
+
_hover: {
|
|
75
|
+
borderColor: 'transparent',
|
|
76
|
+
},
|
|
77
|
+
_invalid: {
|
|
78
|
+
borderColor: 'transparent',
|
|
79
|
+
_hover: {
|
|
80
|
+
borderColor: 'transparent',
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
_disabled: {
|
|
85
|
+
color: 'text.disabled',
|
|
86
|
+
backgroundColor: 'background.disabled',
|
|
87
|
+
borderColor: 'border.disabled',
|
|
88
|
+
_hover: {
|
|
89
|
+
borderColor: 'border.disabled',
|
|
90
|
+
backgroundColor: 'background.disabled',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
_invalid: {
|
|
94
|
+
borderColor: 'border.danger'
|
|
95
|
+
},
|
|
96
|
+
_placeholder: {
|
|
97
|
+
borderColor: 'text.placeholder',
|
|
98
|
+
}
|
|
57
99
|
}
|
|
58
100
|
},
|
|
59
101
|
clear: {
|
package/src/recipes/slider.ts
CHANGED
|
@@ -21,7 +21,7 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
21
21
|
flexDirection: 'column',
|
|
22
22
|
gap: '10px'
|
|
23
23
|
},
|
|
24
|
-
labelWrapper: {
|
|
24
|
+
labelWrapper: {
|
|
25
25
|
display: 'flex',
|
|
26
26
|
justifyContent: 'space-between'
|
|
27
27
|
},
|
|
@@ -53,26 +53,66 @@ const sliderSlotRecipe = defineSlotRecipe({
|
|
|
53
53
|
background: 'none',
|
|
54
54
|
outline: 'none',
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
_focus: {
|
|
57
57
|
borderRadius: '100px',
|
|
58
58
|
borderWidth: '1px',
|
|
59
59
|
borderStyle: 'solid',
|
|
60
60
|
borderColor: 'blue.400',
|
|
61
|
-
boxShadow: 'focus'
|
|
61
|
+
boxShadow: 'focus',
|
|
62
|
+
|
|
63
|
+
_nextTheme: {
|
|
64
|
+
borderColor : 'border.focused',
|
|
65
|
+
boxShadow: 'focus',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
_disabled: {
|
|
70
|
+
'&::-webkit-slider-thumb': {
|
|
71
|
+
cursor: 'not-allowed',
|
|
72
|
+
background: 'radial-gradient(circle, var(--mp-colors-gray-100) 40%, var(--mp-colors-white) 50%)',
|
|
73
|
+
|
|
74
|
+
_nextTheme: {
|
|
75
|
+
background: 'radial-gradient(circle, var(--mp-colors-icon-disabled) 40%, var(--mp-colors-background-neutral) 50%)'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
'&[minpressed=true], &[maxpressed=true]': {
|
|
81
|
+
'&::-webkit-slider-thumb': {
|
|
82
|
+
borderColor: 'blue.400',
|
|
83
|
+
|
|
84
|
+
_nextTheme: {
|
|
85
|
+
borderColor: 'border.brand'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
62
88
|
},
|
|
63
89
|
|
|
64
90
|
'&::-webkit-slider-thumb': {
|
|
91
|
+
cursor: 'pointer',
|
|
65
92
|
appearance: 'none',
|
|
93
|
+
pointerEvents: 'auto',
|
|
66
94
|
width: '5',
|
|
67
95
|
height: '5',
|
|
68
96
|
borderRadius: 'full',
|
|
69
97
|
borderStyle: 'solid',
|
|
70
98
|
borderColor: 'gray.100',
|
|
99
|
+
background: 'radial-gradient(circle, var(--mp-colors-blue-400) 40%, var(--mp-colors-white) 50%)',
|
|
71
100
|
boxShadow: 'sm',
|
|
72
|
-
filter:
|
|
73
|
-
'drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.05)) drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.10))',
|
|
101
|
+
filter: 'drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.05)) drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.10))',
|
|
74
102
|
transition: 'border-color 250ms',
|
|
75
|
-
|
|
103
|
+
|
|
104
|
+
_hover: {
|
|
105
|
+
borderColor: 'gray.600',
|
|
106
|
+
|
|
107
|
+
_nextTheme: {
|
|
108
|
+
borderColor: 'border.bold'
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
_nextTheme: {
|
|
113
|
+
borderColor: 'border.default',
|
|
114
|
+
background: 'radial-gradient(circle, var(--mp-colors-border-brand) 40%, var(--mp-colors-background-neutral) 50%)'
|
|
115
|
+
}
|
|
76
116
|
}
|
|
77
117
|
}
|
|
78
118
|
}
|
package/src/recipes/table.ts
CHANGED
|
@@ -14,19 +14,24 @@ const tableRecipe = defineRecipe({
|
|
|
14
14
|
'& tr': {
|
|
15
15
|
_hover: {
|
|
16
16
|
'& > td': {
|
|
17
|
-
backgroundColor: 'gray.50'
|
|
17
|
+
backgroundColor: 'gray.50',
|
|
18
|
+
_nextTheme: {
|
|
19
|
+
background: 'background.neutral.hovered',
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
},
|
|
22
25
|
'& > thead': {
|
|
23
26
|
width: 'full',
|
|
24
|
-
backgroundColor: 'gray.25',
|
|
25
27
|
'&[data-table-head-fixed=true]': {
|
|
26
28
|
position: 'sticky',
|
|
27
29
|
zIndex: 'sticky',
|
|
28
30
|
top: '0',
|
|
29
|
-
boxShadow: '0px 2px var(--mp-colors-gray-100)'
|
|
31
|
+
boxShadow: '0px 2px var(--mp-colors-gray-100)',
|
|
32
|
+
_nextTheme: {
|
|
33
|
+
boxShadow: '0px 2px var(--mp-colors-border-default)'
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
},
|
|
32
37
|
'& > tbody': {
|
|
@@ -40,23 +45,33 @@ const tableRecipe = defineRecipe({
|
|
|
40
45
|
'& th, & td': {
|
|
41
46
|
cursor: 'default',
|
|
42
47
|
paddingLeft: '2',
|
|
43
|
-
paddingRight: '4',
|
|
44
|
-
|
|
45
|
-
height: '12',
|
|
48
|
+
paddingRight: '4',
|
|
49
|
+
height: '52px',
|
|
46
50
|
textStyle: 'label.md',
|
|
47
51
|
textAlign: 'left',
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
color: 'dark',
|
|
53
|
+
borderBottomWidth: 'sm',
|
|
50
54
|
borderColor: 'gray.100',
|
|
51
|
-
transition: 'background linear 120ms'
|
|
55
|
+
transition: 'background linear 120ms',
|
|
56
|
+
_nextTheme: {
|
|
57
|
+
color: 'text.default',
|
|
58
|
+
borderBottomWidth: 'sm',
|
|
59
|
+
borderColor: 'border.default',
|
|
60
|
+
}
|
|
52
61
|
},
|
|
53
62
|
'& th': {
|
|
54
63
|
fontWeight: 'semiBold',
|
|
55
|
-
|
|
64
|
+
background: 'gray.25',
|
|
65
|
+
_nextTheme: {
|
|
66
|
+
background: 'background.surface',
|
|
67
|
+
}
|
|
56
68
|
},
|
|
57
69
|
'& td': {
|
|
58
70
|
fontWeight: 'regular',
|
|
59
|
-
backgroundColor: 'white'
|
|
71
|
+
backgroundColor: 'white',
|
|
72
|
+
_nextTheme: {
|
|
73
|
+
background: 'background.neutral',
|
|
74
|
+
}
|
|
60
75
|
},
|
|
61
76
|
'& th[data-table-cell-fixed=true], & td[data-table-cell-fixed=true]': {
|
|
62
77
|
position: 'sticky',
|
package/src/recipes/tabs.ts
CHANGED
|
@@ -15,7 +15,10 @@ const tabListSlotRecipe = defineSlotRecipe({
|
|
|
15
15
|
position: 'absolute',
|
|
16
16
|
right: 0,
|
|
17
17
|
left: 0,
|
|
18
|
-
bottom: '1px'
|
|
18
|
+
bottom: '1px',
|
|
19
|
+
_nextTheme: {
|
|
20
|
+
background: 'border.default'
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
},
|
|
@@ -29,7 +32,10 @@ const tabListSlotRecipe = defineSlotRecipe({
|
|
|
29
32
|
padding: 0.5,
|
|
30
33
|
alignItems: 'center',
|
|
31
34
|
justifyContent: 'flex-start',
|
|
32
|
-
maxWidth: 'full'
|
|
35
|
+
maxWidth: 'full',
|
|
36
|
+
_nextTheme: {
|
|
37
|
+
color: 'text.secondary'
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
40
|
}
|
|
35
41
|
})
|
|
@@ -56,9 +62,18 @@ const tabRecipe = defineRecipe({
|
|
|
56
62
|
opacity: 0.4,
|
|
57
63
|
cursor: 'not-allowed'
|
|
58
64
|
},
|
|
59
|
-
|
|
65
|
+
_focusVisible: {
|
|
60
66
|
shadow: '0 0 0 2px #E0EEFF',
|
|
61
67
|
borderRadius: 'sm'
|
|
68
|
+
},
|
|
69
|
+
_nextTheme: {
|
|
70
|
+
color: 'text.secondary',
|
|
71
|
+
_hover: {
|
|
72
|
+
color: 'text.default'
|
|
73
|
+
},
|
|
74
|
+
_focusVisible: {
|
|
75
|
+
shadow: '0 0 0 2px var(--mp-colors-border-focused)'
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
},
|
|
64
79
|
variants: {
|
|
@@ -81,6 +96,12 @@ const tabRecipe = defineRecipe({
|
|
|
81
96
|
color: 'blue.400',
|
|
82
97
|
_hover: {
|
|
83
98
|
color: 'blue.500'
|
|
99
|
+
},
|
|
100
|
+
_nextTheme: {
|
|
101
|
+
color: 'text.selected',
|
|
102
|
+
_hover: {
|
|
103
|
+
color: 'text.selected'
|
|
104
|
+
}
|
|
84
105
|
}
|
|
85
106
|
}
|
|
86
107
|
},
|
|
@@ -154,6 +175,11 @@ const tabSelectedBorderRecipe = defineRecipe({
|
|
|
154
175
|
background: 'transparent',
|
|
155
176
|
_groupHover: {
|
|
156
177
|
background: 'gray.400'
|
|
178
|
+
},
|
|
179
|
+
_nextTheme: {
|
|
180
|
+
_groupHover: {
|
|
181
|
+
background: 'border.bold'
|
|
182
|
+
}
|
|
157
183
|
}
|
|
158
184
|
},
|
|
159
185
|
true: {}
|
|
@@ -166,7 +192,13 @@ const tabSelectedBorderRecipe = defineRecipe({
|
|
|
166
192
|
css: {
|
|
167
193
|
background: 'blue.400',
|
|
168
194
|
_groupHover: {
|
|
169
|
-
background: '
|
|
195
|
+
background: 'border.selected'
|
|
196
|
+
},
|
|
197
|
+
_nextTheme: {
|
|
198
|
+
background: 'border.selected',
|
|
199
|
+
_groupHover: {
|
|
200
|
+
background: 'border.selected',
|
|
201
|
+
},
|
|
170
202
|
}
|
|
171
203
|
}
|
|
172
204
|
},
|
package/src/recipes/tag.ts
CHANGED
|
@@ -11,8 +11,7 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
userSelect: 'auto',
|
|
13
13
|
outline: '0px solid transparent',
|
|
14
|
-
borderWidth: '
|
|
15
|
-
borderColor: 'transparent',
|
|
14
|
+
borderWidth: '0',
|
|
16
15
|
borderRadius: 'sm',
|
|
17
16
|
transition: 'all 250ms',
|
|
18
17
|
textAlign: 'left',
|
|
@@ -24,19 +23,18 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
24
23
|
whiteSpace: 'normal',
|
|
25
24
|
overflowWrap: 'anywhere',
|
|
26
25
|
cursor: 'var(--mp-tag--cursor)',
|
|
27
|
-
height: 'fit-content'
|
|
26
|
+
height: 'fit-content',
|
|
27
|
+
_nextTheme: {
|
|
28
|
+
paddingX: '1.5'
|
|
29
|
+
}
|
|
28
30
|
},
|
|
29
31
|
close: {
|
|
30
32
|
position: 'absolute!',
|
|
31
|
-
color: 'gray.600',
|
|
32
33
|
border: 'none',
|
|
33
34
|
right: '0',
|
|
34
|
-
width: '5',
|
|
35
|
-
height: '5',
|
|
36
|
-
minWidth: '5',
|
|
37
35
|
paddingTop: '1',
|
|
38
36
|
padding: '0',
|
|
39
|
-
transition: '
|
|
37
|
+
transition: 'opacity 250ms!',
|
|
40
38
|
visibility: 'hidden',
|
|
41
39
|
opacity: '0',
|
|
42
40
|
_groupHover: {
|
|
@@ -49,12 +47,20 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
49
47
|
size: {
|
|
50
48
|
sm: {
|
|
51
49
|
root: {
|
|
52
|
-
|
|
50
|
+
height: '5',
|
|
51
|
+
},
|
|
52
|
+
close: {
|
|
53
|
+
width: '5',
|
|
54
|
+
height: '5',
|
|
53
55
|
}
|
|
54
56
|
},
|
|
55
57
|
md: {
|
|
56
58
|
root: {
|
|
57
|
-
|
|
59
|
+
height: '7',
|
|
60
|
+
},
|
|
61
|
+
close: {
|
|
62
|
+
width: '7',
|
|
63
|
+
height: '7',
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
},
|
|
@@ -62,13 +68,21 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
62
68
|
gray: {
|
|
63
69
|
root: {
|
|
64
70
|
color: 'gray.600',
|
|
65
|
-
background: 'gray.50'
|
|
71
|
+
background: 'gray.50',
|
|
72
|
+
_nextTheme: {
|
|
73
|
+
color: 'text.secondary',
|
|
74
|
+
background: 'background.neutral.subtle',
|
|
75
|
+
}
|
|
66
76
|
}
|
|
67
77
|
},
|
|
68
78
|
red: {
|
|
69
79
|
root: {
|
|
70
80
|
color: 'red.400',
|
|
71
|
-
backgroundColor: 'red.50'
|
|
81
|
+
backgroundColor: 'red.50',
|
|
82
|
+
_nextTheme: {
|
|
83
|
+
color: 'text.danger',
|
|
84
|
+
background: 'background.danger',
|
|
85
|
+
}
|
|
72
86
|
}
|
|
73
87
|
}
|
|
74
88
|
}
|
|
@@ -78,7 +92,15 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
78
92
|
variant: 'gray',
|
|
79
93
|
css: {
|
|
80
94
|
close: {
|
|
81
|
-
background: 'linear-gradient(270deg, #EDF0F2 75%, rgba(237, 240, 242, 0) 111.54%)'
|
|
95
|
+
background: 'linear-gradient(270deg, #EDF0F2 75%, rgba(237, 240, 242, 0) 111.54%)',
|
|
96
|
+
borderTopLeftRadius: '0',
|
|
97
|
+
borderBottomLeftRadius: '0',
|
|
98
|
+
color: 'gray.600',
|
|
99
|
+
_nextTheme: {
|
|
100
|
+
background: 'background.neutral.subtle',
|
|
101
|
+
boxShadow: '-7px 0px 15px -3px #0000001A',
|
|
102
|
+
color: 'icon.default',
|
|
103
|
+
}
|
|
82
104
|
}
|
|
83
105
|
}
|
|
84
106
|
},
|
|
@@ -86,7 +108,15 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
86
108
|
variant: 'red',
|
|
87
109
|
css: {
|
|
88
110
|
close: {
|
|
89
|
-
background: 'linear-gradient(270deg, #FDECEE 75%, rgba(237, 240, 242, 0) 111.54%)'
|
|
111
|
+
background: 'linear-gradient(270deg, #FDECEE 75%, rgba(237, 240, 242, 0) 111.54%)',
|
|
112
|
+
borderTopLeftRadius: '0',
|
|
113
|
+
borderBottomLeftRadius: '0',
|
|
114
|
+
color: 'red.400',
|
|
115
|
+
_nextTheme: {
|
|
116
|
+
background: 'background.danger',
|
|
117
|
+
boxShadow: '-7px 0px 15px -3px #0000001A',
|
|
118
|
+
color: 'icon.danger',
|
|
119
|
+
}
|
|
90
120
|
}
|
|
91
121
|
}
|
|
92
122
|
},
|
package/src/recipes/text.ts
CHANGED
package/src/recipes/textarea.ts
CHANGED
|
@@ -4,54 +4,8 @@ const textareaRecipe = defineRecipe({
|
|
|
4
4
|
className: 'textarea',
|
|
5
5
|
jsx: ['MpTextarea', 'mp-textarea'],
|
|
6
6
|
base: {
|
|
7
|
-
position: 'relative',
|
|
8
|
-
display: 'flex',
|
|
9
|
-
alignItems: 'center',
|
|
10
|
-
outline: '0',
|
|
11
|
-
borderWidth: '1px',
|
|
12
|
-
borderColor: 'gray.100',
|
|
13
|
-
borderRadius: 'md',
|
|
14
|
-
color: 'dark',
|
|
15
|
-
backgroundColor: 'white',
|
|
16
|
-
appearance: 'none',
|
|
17
|
-
transition: 'all 250ms',
|
|
18
7
|
minHeight: '20',
|
|
19
|
-
fontSize: 'md',
|
|
20
|
-
fontWeight: 'regular',
|
|
21
|
-
lineHeight: 'md',
|
|
22
|
-
paddingX: '3',
|
|
23
|
-
paddingTop: '2',
|
|
24
|
-
paddingBottom: '5',
|
|
25
8
|
resize: 'both',
|
|
26
|
-
_isFullWidth: {
|
|
27
|
-
width: 'full'
|
|
28
|
-
},
|
|
29
|
-
_hover: {
|
|
30
|
-
borderColor: 'gray.400'
|
|
31
|
-
},
|
|
32
|
-
_focus: {
|
|
33
|
-
borderColor: 'blue.500',
|
|
34
|
-
boxShadow: 'outer',
|
|
35
|
-
_hover: {
|
|
36
|
-
borderColor: 'blue.500'
|
|
37
|
-
},
|
|
38
|
-
_invalid: {
|
|
39
|
-
borderColor: 'red.400'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
_disabled: {
|
|
43
|
-
color: 'gray.400',
|
|
44
|
-
backgroundColor: 'gray.50',
|
|
45
|
-
borderColor: 'gray.100',
|
|
46
|
-
cursor: 'not-allowed'
|
|
47
|
-
},
|
|
48
|
-
_invalid: {
|
|
49
|
-
borderColor: 'red.400'
|
|
50
|
-
},
|
|
51
|
-
_readOnly: {
|
|
52
|
-
boxShadow: 'none',
|
|
53
|
-
userSelect: 'all'
|
|
54
|
-
}
|
|
55
9
|
}
|
|
56
10
|
})
|
|
57
11
|
|