@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.
Files changed (94) hide show
  1. package/dist/conditions.d.mts +4 -1
  2. package/dist/conditions.d.ts +4 -1
  3. package/dist/index.js +3423 -606
  4. package/dist/index.mjs +3382 -565
  5. package/dist/recipes/airene-button.d.mts +5 -0
  6. package/dist/recipes/airene-button.d.ts +5 -0
  7. package/dist/recipes/index.d.mts +1 -0
  8. package/dist/recipes/index.d.ts +1 -0
  9. package/dist/semanticTokens/colors.d.mts +892 -0
  10. package/dist/semanticTokens/colors.d.ts +892 -0
  11. package/dist/semanticTokens/index.d.mts +951 -0
  12. package/dist/semanticTokens/index.d.ts +951 -0
  13. package/dist/semanticTokens/spacing.d.mts +59 -0
  14. package/dist/semanticTokens/spacing.d.ts +59 -0
  15. package/dist/tokens/borders.d.mts +2 -2
  16. package/dist/tokens/borders.d.ts +2 -2
  17. package/dist/tokens/colors.d.mts +40 -34
  18. package/dist/tokens/colors.d.ts +40 -34
  19. package/dist/tokens/index.d.mts +62 -35
  20. package/dist/tokens/index.d.ts +62 -35
  21. package/dist/tokens/radii.d.mts +5 -0
  22. package/dist/tokens/radii.d.ts +5 -0
  23. package/dist/tokens/spacing.d.mts +16 -0
  24. package/dist/tokens/spacing.d.ts +16 -0
  25. package/dist/tokens-next/borders.d.mts +22 -0
  26. package/dist/tokens-next/borders.d.ts +22 -0
  27. package/dist/tokens-next/colors.d.mts +444 -0
  28. package/dist/tokens-next/colors.d.ts +444 -0
  29. package/dist/tokens-next/index.d.mts +775 -0
  30. package/dist/tokens-next/index.d.ts +775 -0
  31. package/dist/tokens-next/radii.d.mts +26 -0
  32. package/dist/tokens-next/radii.d.ts +26 -0
  33. package/dist/tokens-next/shadows.d.mts +28 -0
  34. package/dist/tokens-next/shadows.d.ts +28 -0
  35. package/dist/tokens-next/spacing.d.mts +51 -0
  36. package/dist/tokens-next/spacing.d.ts +51 -0
  37. package/package.json +3 -2
  38. package/src/conditions.ts +6 -4
  39. package/src/global-css.ts +4 -0
  40. package/src/index.ts +15 -2
  41. package/src/keyframes.ts +5 -0
  42. package/src/recipes/accordion.ts +60 -10
  43. package/src/recipes/airene-button.ts +120 -0
  44. package/src/recipes/autocomplete.ts +6 -1
  45. package/src/recipes/avatar.ts +101 -24
  46. package/src/recipes/badge.ts +174 -50
  47. package/src/recipes/banner.ts +36 -12
  48. package/src/recipes/broadcast.ts +78 -12
  49. package/src/recipes/button.ts +239 -11
  50. package/src/recipes/carousel.ts +5 -0
  51. package/src/recipes/chart.ts +10 -5
  52. package/src/recipes/checkbox.ts +72 -15
  53. package/src/recipes/color-picker.ts +74 -23
  54. package/src/recipes/date-picker.ts +165 -31
  55. package/src/recipes/divider.ts +5 -1
  56. package/src/recipes/dropzone.ts +80 -8
  57. package/src/recipes/form-control.ts +12 -3
  58. package/src/recipes/icon.ts +3 -1
  59. package/src/recipes/index.ts +3 -1
  60. package/src/recipes/input-tag.ts +48 -8
  61. package/src/recipes/input.ts +105 -18
  62. package/src/recipes/modal.ts +38 -10
  63. package/src/recipes/popover.ts +28 -9
  64. package/src/recipes/progress.ts +9 -2
  65. package/src/recipes/radio.ts +56 -23
  66. package/src/recipes/rich-text-editor.ts +32 -6
  67. package/src/recipes/segmented-control.ts +48 -8
  68. package/src/recipes/select.ts +42 -0
  69. package/src/recipes/slider.ts +46 -6
  70. package/src/recipes/table.ts +26 -11
  71. package/src/recipes/tabs.ts +36 -4
  72. package/src/recipes/tag.ts +44 -14
  73. package/src/recipes/text.ts +0 -1
  74. package/src/recipes/textarea.ts +0 -46
  75. package/src/recipes/timeline.ts +42 -8
  76. package/src/recipes/toast.ts +21 -5
  77. package/src/recipes/toggle.ts +63 -13
  78. package/src/recipes/tooltip.ts +6 -1
  79. package/src/recipes/upload.ts +51 -16
  80. package/src/semanticTokens/colors.ts +893 -0
  81. package/src/semanticTokens/index.ts +8 -0
  82. package/src/semanticTokens/spacing.ts +59 -0
  83. package/src/text-styles.ts +1 -1
  84. package/src/tokens/borders.ts +1 -1
  85. package/src/tokens/colors.ts +19 -23
  86. package/src/tokens/index.ts +2 -2
  87. package/src/tokens/radii.ts +5 -5
  88. package/src/tokens/spacing.ts +17 -17
  89. package/src/tokens-next/borders.ts +10 -0
  90. package/src/tokens-next/colors.ts +172 -0
  91. package/src/tokens-next/index.ts +32 -0
  92. package/src/tokens-next/radii.ts +10 -0
  93. package/src/tokens-next/shadows.ts +28 -0
  94. package/src/tokens-next/spacing.ts +16 -0
@@ -11,7 +11,9 @@ export const iconRecipe = defineRecipe({
11
11
  flexShrink: 0,
12
12
  '&:not(:root)': {
13
13
  overflow: 'hidden'
14
- }
14
+ },
15
+ width: 'var(--mp-icon-size)',
16
+ height: 'var(--mp-icon-size)'
15
17
  },
16
18
  variants: {
17
19
  size: {
@@ -1,5 +1,6 @@
1
1
  import { tagSlotRecipe } from './tag'
2
2
  import { avatarSlotRecipe, avatarGroupSlotRecipe } from './avatar'
3
+ import { aireneButtonSlotRecipe } from './airene-button'
3
4
  import { buttonRecipe, buttonGroupRecipe } from './button'
4
5
  import { inputSlotRecipe, inputGroupSlotRecipe, inputAddonSlotRecipe } from './input'
5
6
  import { selectSlotRecipe } from './select'
@@ -137,5 +138,6 @@ export const slotRecipes = {
137
138
  tabListSlotRecipe,
138
139
  colorPickerSlotRecipe,
139
140
  sliderSlotRecipe,
140
- tourSlotRecipe
141
+ tourSlotRecipe,
142
+ aireneButtonSlotRecipe
141
143
  }
@@ -31,30 +31,64 @@ const inputTagSlotRecipe = defineSlotRecipe({
31
31
  borderWidth: '1px',
32
32
  borderColor: 'gray.100',
33
33
  borderRadius: 'md',
34
+ backgroundColor: 'white',
34
35
  paddingTop: '2',
35
36
  paddingBottom: '2',
36
37
  paddingLeft: '3',
37
38
  paddingRight: '8',
38
- backgroundColor: 'white',
39
39
  transition: 'all 250ms',
40
+ _nextTheme: {
41
+ borderRadius: 'md',
42
+ borderColor: 'border.form',
43
+ background: 'background.neutral'
44
+ },
40
45
  _hover: {
41
- borderColor: 'gray.400'
46
+ borderColor: 'gray.400',
47
+ _nextTheme: {
48
+ borderColor: 'border.form',
49
+ background: 'background.neutral.hovered'
50
+ }
42
51
  },
43
- _focusVisible: {
52
+ _focus: {
44
53
  boxShadow: 'focus',
45
54
  borderColor: 'blue.400',
55
+ _nextTheme: {
56
+ boxShadow: 'focus',
57
+ borderColor: 'border.focused'
58
+ },
46
59
  _hover: {
47
- borderColor: 'blue.400'
60
+ borderColor: 'blue.400',
61
+ _nextTheme: {
62
+ borderColor: 'border.focused'
63
+ }
48
64
  }
49
65
  },
50
66
  _disabled: {
51
67
  cursor: 'not-allowed',
52
- background: 'gray.50'
68
+ background: 'gray.50',
69
+ _nextTheme: {
70
+ background: 'background.disabled',
71
+ borderColor: 'border.disabled'
72
+ },
73
+
74
+ _hover: {
75
+ _nextTheme: {
76
+ background: 'background.disabled',
77
+ borderColor: 'border.disabled'
78
+ }
79
+ }
53
80
  },
54
81
  _invalid: {
55
82
  borderColor: 'red.400',
83
+ _nextTheme: {
84
+ borderColor: 'border.danger'
85
+ },
86
+
56
87
  _hover: {
57
- borderColor: 'red.400'
88
+ borderColor: 'red.400',
89
+ _nextTheme: {
90
+ borderColor: 'border.danger'
91
+ }
58
92
  }
59
93
  },
60
94
  _hasIcon: {
@@ -65,6 +99,12 @@ const inputTagSlotRecipe = defineSlotRecipe({
65
99
  padding: '0 !important',
66
100
  margin: '0 !important',
67
101
  borderWidth: '0 !important',
102
+ _placeholder: {
103
+ color: 'gray.400',
104
+ _nextTheme: {
105
+ borderColor: 'text.placeholder'
106
+ }
107
+ }
68
108
  },
69
109
  content: {
70
110
  maxHeight: '300px',
@@ -101,7 +141,7 @@ const inputTagSlotRecipe = defineSlotRecipe({
101
141
  textAlign: 'left'
102
142
  },
103
143
  suggestionWrapper: {
104
- display: 'flex',
144
+ display: 'flex',
105
145
  flexDirection: 'column',
106
146
  width: '100%'
107
147
  },
@@ -112,7 +152,7 @@ const inputTagSlotRecipe = defineSlotRecipe({
112
152
  width: 'full',
113
153
  height: '9',
114
154
  py: '2',
115
- px: '3',
155
+ px: '3'
116
156
  }
117
157
  }
118
158
  })
@@ -33,12 +33,23 @@ const inputSlotRecipe = defineSlotRecipe({
33
33
  borderWidth: '1px',
34
34
  borderColor: 'inherit',
35
35
  borderRadius: 'sm',
36
- paddingInline: '12px',
36
+ paddingInline: '3',
37
37
  appearance: 'none',
38
- transition: 'all 250ms',
38
+ caretColor: 'blue.500',
39
+ transition: 'border-color 250ms, background-color 250ms',
39
40
  _isFullWidth: {
40
41
  width: 'full'
41
42
  },
43
+ _placeholder: {
44
+ color: 'gray.400',
45
+ },
46
+ _nextTheme: {
47
+ color: 'text.default',
48
+ caretColor: 'border.selected',
49
+ _placeholder: {
50
+ borderColor: 'text.placeholder',
51
+ },
52
+ }
42
53
  },
43
54
  clear: {
44
55
  position: 'absolute!',
@@ -56,6 +67,9 @@ const inputSlotRecipe = defineSlotRecipe({
56
67
  _groupHover: {
57
68
  visibility: 'var(--mp-input--visibility)',
58
69
  opacity: 'var(--mp-input--opacity)'
70
+ },
71
+ _nextTheme: {
72
+ color: 'icon.default',
59
73
  }
60
74
  }
61
75
  },
@@ -76,7 +90,7 @@ const inputSlotRecipe = defineSlotRecipe({
76
90
  borderColor: 'gray.400',
77
91
  _invalid: {
78
92
  borderColor: 'red.400'
79
- }
93
+ },
80
94
  },
81
95
  _focus: {
82
96
  borderColor: 'blue.500',
@@ -100,6 +114,42 @@ const inputSlotRecipe = defineSlotRecipe({
100
114
  _readOnly: {
101
115
  boxShadow: 'none',
102
116
  userSelect: 'all'
117
+ },
118
+ _nextTheme: {
119
+ backgroundColor: 'background.neutral',
120
+ borderColor: 'border.form',
121
+ _hover: {
122
+ borderColor: 'border.form',
123
+ backgroundColor: 'background.neutral.hovered',
124
+ _invalid: {
125
+ borderColor: 'border.danger'
126
+ }
127
+ },
128
+ _focus: {
129
+ borderColor: 'border.focused',
130
+ boxShadow: 'focus',
131
+ _hover: {
132
+ borderColor: 'border.focused',
133
+ },
134
+ _invalid: {
135
+ borderColor: 'border.focused',
136
+ _hover: {
137
+ borderColor: 'border.focused',
138
+ },
139
+ }
140
+ },
141
+ _disabled: {
142
+ color: 'text.disabled',
143
+ backgroundColor: 'background.disabled',
144
+ borderColor: 'border.disabled',
145
+ _hover: {
146
+ borderColor: 'border.disabled',
147
+ backgroundColor: 'background.disabled',
148
+ },
149
+ },
150
+ _invalid: {
151
+ borderColor: 'border.danger'
152
+ },
103
153
  }
104
154
  }
105
155
  }
@@ -144,7 +194,7 @@ const inputGroupSlotRecipe = defineSlotRecipe({
144
194
  width: 'full',
145
195
  '&[data-with-left-addon=true]': {
146
196
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
147
- paddingLeft: 'calc(var(--mp-input-offset--left) + 24px)'
197
+ paddingLeft: 'calc(var(--mp-input-offset--left) + 14px)'
148
198
  },
149
199
  },
150
200
  '&[data-with-clearable=true]': {
@@ -157,25 +207,25 @@ const inputGroupSlotRecipe = defineSlotRecipe({
157
207
  },
158
208
  '&[data-with-left-bg-addon=true]': {
159
209
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
160
- paddingLeft: 'calc(var(--mp-input-offset--left) + 12px)'
210
+ paddingLeft: 'calc(var(--mp-input-offset--left) + 14px)'
161
211
  },
162
212
  },
163
213
  '&[data-with-right-addon=true]': {
164
214
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
165
- paddingRight: 'calc(var(--mp-input-offset--right) + 24px)'
215
+ paddingRight: 'calc(var(--mp-input-offset--right) + 14px)'
166
216
  },
167
217
  '&[data-with-clearable=true]': {
168
218
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
169
219
  paddingRight: 'calc(var(--mp-input-offset--right) + 54px)'
170
220
  },
171
221
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputClear]': {
172
- '--mp-input--right': 'calc(var(--mp-input-offset--right) + 24px)'
222
+ '--mp-input--right': 'calc(var(--mp-input-offset--right) + 14px)'
173
223
  }
174
224
  }
175
225
  },
176
226
  '&[data-with-right-bg-addon=true]': {
177
227
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
178
- paddingRight: 'calc(var(--mp-input-offset--right) + 24px)'
228
+ paddingRight: 'calc(var(--mp-input-offset--right) + 14px)'
179
229
  },
180
230
  '&[data-with-clearable=true]': {
181
231
  '& > [data-pixel-component=MpInput] > [data-pixel-component=MpInputControl]': {
@@ -186,6 +236,17 @@ const inputGroupSlotRecipe = defineSlotRecipe({
186
236
  }
187
237
  }
188
238
  },
239
+ _nextTheme: {
240
+ '&:has(input:hover) [data-pixel-component=MpInputAddon][data-has-background=true]': {
241
+ backgroundColor: 'background.neutral.subtle.hovered'
242
+ },
243
+ '&:has(input:focus) [data-pixel-component=MpInputAddon][data-has-background=true]': {
244
+ backgroundColor: 'background.neutral.subtle.pressed'
245
+ },
246
+ '&:has(input:disabled) [data-pixel-component=MpInputAddon][data-has-background=true]': {
247
+ backgroundColor: 'background.neutral.subtle.pressed'
248
+ },
249
+ }
189
250
  }
190
251
  },
191
252
  variants: {},
@@ -205,8 +266,14 @@ const inputAddonSlotRecipe = defineSlotRecipe({
205
266
  paddingX: '0',
206
267
  whiteSpace: 'nowrap',
207
268
  zIndex: '2',
269
+ transition: 'all 250ms',
208
270
  _hasBackground: {
209
- backgroundColor: 'gray.50'
271
+ backgroundColor: 'gray.50',
272
+ },
273
+ _nextTheme: {
274
+ _hasBackground: {
275
+ backgroundColor: 'background.neutral.subtle',
276
+ }
210
277
  }
211
278
  }
212
279
  },
@@ -214,16 +281,20 @@ const inputAddonSlotRecipe = defineSlotRecipe({
214
281
  placement: {
215
282
  left: {
216
283
  root: {
217
- left: '3',
284
+ left: '2',
218
285
  borderTopRightRadius: 'none!',
219
- borderBottomRightRadius: 'none!'
286
+ borderBottomRightRadius: 'none!',
287
+ minWidth: '32px',
288
+ justifyContent: 'center'
220
289
  }
221
290
  },
222
291
  right: {
223
292
  root: {
224
- right: '3',
293
+ right: '2',
225
294
  borderTopLeftRadius: 'none!',
226
- borderBottomLeftRadius: 'none!'
295
+ borderBottomLeftRadius: 'none!',
296
+ minWidth: '32px',
297
+ justifyContent: 'center'
227
298
  }
228
299
  }
229
300
  },
@@ -233,18 +304,34 @@ const inputAddonSlotRecipe = defineSlotRecipe({
233
304
  height: '6.5',
234
305
  borderRadius: '2xs',
235
306
  _hasBackground: {
236
- _placementLeft: { left: '0.5' },
237
- _placementRight: { right: '0.5' }
307
+ _placementLeft: {
308
+ left: '0.5',
309
+ minWidth: '24px',
310
+ justifyContent: 'center'
311
+ },
312
+ _placementRight: {
313
+ right: '0.5',
314
+ minWidth: '24px',
315
+ justifyContent: 'center'
316
+ }
238
317
  }
239
318
  }
240
319
  },
241
320
  md: {
242
321
  root: {
243
- height: '7.5',
322
+ height: '32px',
244
323
  borderRadius: 'sm',
245
324
  _hasBackground: {
246
- _placementLeft: { left: '1' },
247
- _placementRight: { right: '1' }
325
+ _placementLeft: {
326
+ left: '3px',
327
+ minWidth: '32px',
328
+ justifyContent: 'center'
329
+ },
330
+ _placementRight: {
331
+ right: '3px',
332
+ minWidth: '32px',
333
+ justifyContent: 'center'
334
+ }
248
335
  }
249
336
  }
250
337
  }
@@ -4,7 +4,18 @@ export const modalSlotRecipe = defineSlotRecipe({
4
4
  className: 'modal',
5
5
  description: 'The styles for the Modal component',
6
6
  jsx: ['MpModal', 'mp-modal'],
7
- slots: ['root', 'rootChild', 'body', 'contentRoot', 'contentChild', 'header', 'footer', 'body', 'overlay', 'closeButton'],
7
+ slots: [
8
+ 'root',
9
+ 'rootChild',
10
+ 'body',
11
+ 'contentRoot',
12
+ 'contentChild',
13
+ 'header',
14
+ 'footer',
15
+ 'body',
16
+ 'overlay',
17
+ 'closeButton'
18
+ ],
8
19
  base: {
9
20
  root: {
10
21
  position: 'relative',
@@ -19,14 +30,14 @@ export const modalSlotRecipe = defineSlotRecipe({
19
30
  },
20
31
  body: {
21
32
  p: 4,
22
- flex: 1,
33
+ flex: 1
23
34
  },
24
35
  contentRoot: {
25
36
  pos: 'fixed',
26
37
  left: '0',
27
38
  w: '100%',
28
39
  h: '100%',
29
- zIndex: 'modal',
40
+ zIndex: 'modal'
30
41
  },
31
42
  contentChild: {
32
43
  outline: 0,
@@ -39,6 +50,14 @@ export const modalSlotRecipe = defineSlotRecipe({
39
50
  borderColor: 'gray.100',
40
51
  bg: 'white',
41
52
  marginInline: 'auto',
53
+ _nextTheme: {
54
+ background: 'background.stage',
55
+ borderColor: 'border.bold',
56
+ color: 'text.default',
57
+ '&[data-modal-type="drawer"]': {
58
+ borderColor: 'border.default',
59
+ }
60
+ }
42
61
  },
43
62
 
44
63
  header: {
@@ -51,7 +70,16 @@ export const modalSlotRecipe = defineSlotRecipe({
51
70
  borderTopLeftRadius: 'md',
52
71
  borderTopRightRadius: 'md',
53
72
  borderBottom: 'solid 1px',
54
- borderBottomColor: 'gray.100'
73
+ borderBottomColor: 'gray.100',
74
+ _nextTheme: {
75
+ color: 'text.default',
76
+ background: 'background.neutral.subtle',
77
+ borderBottomColor: 'border.default'
78
+ },
79
+ '&[data-modal-presentation="drawer"]': {
80
+ borderTopLeftRadius: 'none',
81
+ borderTopRightRadius: 'none',
82
+ }
55
83
  },
56
84
  closeButton: {
57
85
  position: 'absolute',
@@ -65,7 +93,7 @@ export const modalSlotRecipe = defineSlotRecipe({
65
93
  pt: 2,
66
94
  px: 4,
67
95
  pb: 4,
68
- justifyContent: 'flex-end',
96
+ justifyContent: 'flex-end'
69
97
  },
70
98
  overlay: {
71
99
  position: 'fixed',
@@ -74,14 +102,14 @@ export const modalSlotRecipe = defineSlotRecipe({
74
102
  top: '0',
75
103
  w: '100vw',
76
104
  h: '100vh',
77
- zIndex: 'overlay',
105
+ zIndex: 'overlay'
78
106
  }
79
107
  },
80
108
  variants: {
81
109
  full: {
82
110
  true: {
83
111
  contentRoot: {
84
- top: '0',
112
+ top: '0'
85
113
  },
86
114
  contentChild: {
87
115
  height: '100vh',
@@ -91,7 +119,7 @@ export const modalSlotRecipe = defineSlotRecipe({
91
119
  },
92
120
  false: {
93
121
  contentRoot: {
94
- top: '3.75rem',
122
+ top: '3.75rem'
95
123
  },
96
124
  contentChild: {
97
125
  height: '100%',
@@ -99,10 +127,10 @@ export const modalSlotRecipe = defineSlotRecipe({
99
127
  borderRadius: 'md'
100
128
  }
101
129
  }
102
- }
130
+ },
103
131
  },
104
132
 
105
133
  defaultVariants: {
106
134
  full: false
107
- },
135
+ }
108
136
  })
@@ -12,16 +12,22 @@ const popoverContentRecipe = defineRecipe({
12
12
  shadow: 'lg',
13
13
  borderWidth: '1px',
14
14
  borderColor: 'gray.400',
15
- zIndex: 'popover'
15
+ zIndex: 'popover',
16
+ _nextTheme: {
17
+ borderColor: 'border.bold'
18
+ }
16
19
  }
17
20
  },
18
21
  isDark: {
19
22
  true: {
20
23
  background: 'overlay',
21
- color: 'white'
24
+ color: 'white',
22
25
  },
23
26
  false: {
24
- background: 'white'
27
+ background: 'white',
28
+ _nextTheme: {
29
+ background: 'background.stage'
30
+ }
25
31
  }
26
32
  }
27
33
  },
@@ -62,19 +68,32 @@ const popoverListItemRecipe = defineRecipe({
62
68
  _disabled: {
63
69
  color: 'gray.400',
64
70
  bg: 'white',
65
- cursor: 'not-allowed'
71
+ cursor: 'not-allowed',
72
+ _nextTheme: {
73
+ background: 'background.disabled',
74
+ color: 'text.disabled'
75
+ }
66
76
  },
67
77
  _highlight: {
68
- background: 'white',
69
- bg: 'gray.50',
78
+ background: 'gray.50',
70
79
  color: 'dark',
71
- outline: 0
80
+ outline: 0,
81
+ _nextTheme: {
82
+ background: 'background.neutral.hovered',
83
+ color: 'text.default'
84
+ }
72
85
  },
73
86
  _active: {
74
87
  background: 'ice.50',
75
- bg: 'ice.50',
76
88
  color: 'dark',
77
- outline: 0
89
+ outline: 0,
90
+ _nextTheme: {
91
+ background: 'background.brand.selected',
92
+ color: 'text.default'
93
+ }
94
+ },
95
+ _nextTheme: {
96
+ color: 'text.default'
78
97
  }
79
98
  }
80
99
  })
@@ -10,7 +10,10 @@ const progressSlotRecipe = defineSlotRecipe({
10
10
  width: 'full',
11
11
  borderRadius: '100px',
12
12
  background: 'gray.100',
13
- transition: 'all 250ms linear'
13
+ transition: 'all 250ms linear',
14
+ _nextTheme: {
15
+ background: 'background.subtle'
16
+ }
14
17
  },
15
18
  linear: {
16
19
  transition: 'all 250ms linear',
@@ -24,7 +27,11 @@ const progressSlotRecipe = defineSlotRecipe({
24
27
  height: 'full',
25
28
  borderRadius: 'full',
26
29
  background:
27
- 'conic-gradient(var(--mp-progress-color) var(--mp-progress-width), var(--mp-colors-gray-100) 0deg)'
30
+ 'conic-gradient(var(--mp-progress-color) var(--mp-progress-width), var(--mp-colors-gray-100) 0deg)',
31
+ _nextTheme: {
32
+ background:
33
+ 'conic-gradient(var(--mp-progress-color) var(--mp-progress-width), var(--mp-colors-background-neutral-subtle) 0deg)'
34
+ }
28
35
  },
29
36
  circularTrack: {
30
37
  width: 'calc(100% - 6px)',
@@ -7,27 +7,38 @@ const radioSlotRecipe = defineSlotRecipe({
7
7
  base: {
8
8
  root: {
9
9
  position: 'relative',
10
- display: 'inline-flex',
10
+ width: 'fit-content',
11
+ display: 'flex',
11
12
  alignItems: 'center',
12
- justifyContent: 'center',
13
- gap: '2',
13
+ justifyContent: 'flex-start',
14
+ gap: '3',
14
15
  cursor: 'pointer',
15
16
  outline: 'none',
16
17
  '&[data-has-description=true]': {
17
18
  alignItems: 'flex-start',
18
19
  '& .mp-radio__control': {
19
- marginTop: '1'
20
+ marginTop: '2px'
20
21
  }
21
22
  },
22
23
  '& .mp-shared__hidden': {
23
- '&:focus + .mp-radio__control': {
24
- borderColor: 'blue.400',
25
- boxShadow: 'focus'
24
+ _focusVisible: {
25
+ '& + .mp-radio__control': {
26
+ borderColor: 'blue.400',
27
+ boxShadow: 'focus',
28
+ _nextTheme: {
29
+ borderColor: 'border.focused',
30
+ boxShadow: '0 0 0 1px {colors.border.focused}'
31
+ }
32
+ }
26
33
  }
27
34
  },
28
35
  _hover: {
29
36
  '& .mp-radio__control': {
30
- borderColor: 'gray.400'
37
+ borderColor: 'gray.400',
38
+ _nextTheme: {
39
+ borderColor: 'border.form',
40
+ background: 'background.neutral.hovered'
41
+ }
31
42
  }
32
43
  },
33
44
  _disabled: {
@@ -36,37 +47,45 @@ const radioSlotRecipe = defineSlotRecipe({
36
47
  borderColor: 'gray.100 !important',
37
48
  background: 'gray.50 !important',
38
49
  boxShadow: 'none !important',
50
+ _nextTheme: {
51
+ borderColor: 'border.disabled !important',
52
+ background: 'background.disabled !important'
53
+ },
39
54
 
40
55
  '& div': {
41
- background: 'gray.400'
56
+ background: 'gray.400',
57
+ _nextTheme: {
58
+ color: 'icon.disabled'
59
+ }
42
60
  }
43
61
  }
44
62
  },
45
63
  _invalid: {
46
64
  '& .mp-radio__control': {
47
65
  borderColor: 'red.400',
48
- background: 'white'
66
+ background: 'white',
67
+ _nextTheme: {
68
+ borderColor: 'border.danger !important',
69
+ background: 'background.neutral'
70
+ }
49
71
  }
50
72
  },
51
73
  _checked: {
52
74
  '& .mp-radio__control': {
53
75
  borderColor: 'blue.400',
54
- background: 'blue.400'
55
- },
56
- _hover: {
57
- '& .mp-radio__control': {
58
- borderColor: 'blue.400'
76
+ background: 'blue.400',
77
+ _nextTheme: {
78
+ borderColor: 'border.selected',
79
+ background: 'background.brand.bold.selected'
59
80
  }
60
- }
61
- },
62
- _indeterminate: {
63
- '& .mp-radio__control': {
64
- borderColor: 'blue.400',
65
- background: 'blue.400'
66
81
  },
67
82
  _hover: {
68
83
  '& .mp-radio__control': {
69
- borderColor: 'blue.400'
84
+ borderColor: 'blue.400',
85
+ _nextTheme: {
86
+ borderColor: 'border.selected.hovered',
87
+ background: 'background.brand.bold.hovered'
88
+ }
70
89
  }
71
90
  }
72
91
  }
@@ -86,12 +105,26 @@ const radioSlotRecipe = defineSlotRecipe({
86
105
  borderColor: 'gray.100',
87
106
  borderRadius: 'full',
88
107
  background: 'white',
108
+ _nextTheme: {
109
+ width: '4',
110
+ height: '4',
111
+ borderWidth: 'sm',
112
+ borderColor: 'border.form',
113
+ borderRadius: 'full',
114
+ background: 'background.neutral'
115
+ },
89
116
 
90
117
  '& div': {
91
118
  width: '2.5',
92
119
  height: '2.5',
93
120
  background: 'white',
94
- borderRadius: 'full'
121
+ borderRadius: 'full',
122
+ _nextTheme: {
123
+ width: '2',
124
+ height: '2',
125
+ background: 'icon.inverse',
126
+ borderRadius: 'full'
127
+ }
95
128
  }
96
129
  },
97
130
  label: {