@mekari/pixel3-theme 0.2.1-dev.0 → 0.2.2-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.
Files changed (84) hide show
  1. package/dist/conditions.d.mts +4 -1
  2. package/dist/conditions.d.ts +4 -1
  3. package/dist/index.js +2889 -409
  4. package/dist/index.mjs +2888 -408
  5. package/dist/semanticTokens/colors.d.mts +892 -0
  6. package/dist/semanticTokens/colors.d.ts +892 -0
  7. package/dist/semanticTokens/index.d.mts +951 -0
  8. package/dist/semanticTokens/index.d.ts +951 -0
  9. package/dist/semanticTokens/spacing.d.mts +59 -0
  10. package/dist/semanticTokens/spacing.d.ts +59 -0
  11. package/dist/tokens/borders.d.mts +2 -2
  12. package/dist/tokens/borders.d.ts +2 -2
  13. package/dist/tokens/colors.d.mts +37 -34
  14. package/dist/tokens/colors.d.ts +37 -34
  15. package/dist/tokens/index.d.mts +59 -35
  16. package/dist/tokens/index.d.ts +59 -35
  17. package/dist/tokens/radii.d.mts +5 -0
  18. package/dist/tokens/radii.d.ts +5 -0
  19. package/dist/tokens/spacing.d.mts +16 -0
  20. package/dist/tokens/spacing.d.ts +16 -0
  21. package/dist/tokens-next/borders.d.mts +22 -0
  22. package/dist/tokens-next/borders.d.ts +22 -0
  23. package/dist/tokens-next/colors.d.mts +441 -0
  24. package/dist/tokens-next/colors.d.ts +441 -0
  25. package/dist/tokens-next/index.d.mts +772 -0
  26. package/dist/tokens-next/index.d.ts +772 -0
  27. package/dist/tokens-next/radii.d.mts +26 -0
  28. package/dist/tokens-next/radii.d.ts +26 -0
  29. package/dist/tokens-next/shadows.d.mts +28 -0
  30. package/dist/tokens-next/shadows.d.ts +28 -0
  31. package/dist/tokens-next/spacing.d.mts +51 -0
  32. package/dist/tokens-next/spacing.d.ts +51 -0
  33. package/package.json +1 -1
  34. package/src/conditions.ts +6 -4
  35. package/src/global-css.ts +4 -0
  36. package/src/index.ts +15 -2
  37. package/src/recipes/accordion.ts +12 -2
  38. package/src/recipes/autocomplete.ts +6 -1
  39. package/src/recipes/avatar.ts +68 -11
  40. package/src/recipes/badge.ts +174 -50
  41. package/src/recipes/banner.ts +36 -11
  42. package/src/recipes/broadcast.ts +78 -12
  43. package/src/recipes/button.ts +132 -9
  44. package/src/recipes/carousel.ts +5 -0
  45. package/src/recipes/chart.ts +10 -5
  46. package/src/recipes/checkbox.ts +68 -13
  47. package/src/recipes/color-picker.ts +74 -23
  48. package/src/recipes/date-picker.ts +165 -31
  49. package/src/recipes/divider.ts +5 -1
  50. package/src/recipes/dropzone.ts +80 -8
  51. package/src/recipes/form-control.ts +12 -3
  52. package/src/recipes/input-tag.ts +48 -8
  53. package/src/recipes/input.ts +75 -8
  54. package/src/recipes/modal.ts +30 -9
  55. package/src/recipes/popover.ts +28 -9
  56. package/src/recipes/progress.ts +9 -2
  57. package/src/recipes/radio.ts +52 -21
  58. package/src/recipes/rich-text-editor.ts +32 -6
  59. package/src/recipes/segmented-control.ts +47 -7
  60. package/src/recipes/select.ts +42 -0
  61. package/src/recipes/slider.ts +46 -6
  62. package/src/recipes/table.ts +26 -11
  63. package/src/recipes/tabs.ts +35 -3
  64. package/src/recipes/tag.ts +43 -13
  65. package/src/recipes/textarea.ts +0 -46
  66. package/src/recipes/timeline.ts +36 -8
  67. package/src/recipes/toast.ts +21 -4
  68. package/src/recipes/toggle.ts +59 -11
  69. package/src/recipes/tooltip.ts +5 -1
  70. package/src/recipes/upload.ts +51 -16
  71. package/src/semanticTokens/colors.ts +893 -0
  72. package/src/semanticTokens/index.ts +8 -0
  73. package/src/semanticTokens/spacing.ts +59 -0
  74. package/src/tokens/borders.ts +1 -1
  75. package/src/tokens/colors.ts +18 -23
  76. package/src/tokens/index.ts +2 -2
  77. package/src/tokens/radii.ts +5 -5
  78. package/src/tokens/spacing.ts +17 -17
  79. package/src/tokens-next/borders.ts +10 -0
  80. package/src/tokens-next/colors.ts +171 -0
  81. package/src/tokens-next/index.ts +32 -0
  82. package/src/tokens-next/radii.ts +10 -0
  83. package/src/tokens-next/shadows.ts +28 -0
  84. package/src/tokens-next/spacing.ts +16 -0
@@ -1,6 +1,7 @@
1
1
  import { defineRecipe } from '@pandacss/dev'
2
+ import type { RecipeVariantRecord } from '@mekari/pixel3-styled-system/types'
2
3
 
3
- const badgeRecipe = defineRecipe({
4
+ const badgeRecipe = defineRecipe<RecipeVariantRecord>({
4
5
  className: 'badge',
5
6
  jsx: ['MpBadge', 'mp-badge'],
6
7
  base: {
@@ -15,14 +16,23 @@ const badgeRecipe = defineRecipe({
15
16
  solid: {
16
17
  color: 'white'
17
18
  },
18
- subtle: {}
19
+ subtle: {},
20
+ 'additionalInformation': {},
21
+ 'tableStatus': {},
22
+ indicator: {}
19
23
  },
20
24
  variantColor: {
21
25
  blue: {},
22
26
  green: {},
23
27
  orange: {},
24
28
  red: {},
25
- gray: {}
29
+ gray: {},
30
+
31
+ announcement: {},
32
+ information: {},
33
+ warning: {},
34
+ completed: {},
35
+ critical: {}
26
36
  },
27
37
  size: {
28
38
  sm: {
@@ -30,16 +40,12 @@ const badgeRecipe = defineRecipe({
30
40
  fontWeight: 'semiBold',
31
41
  lineHeight: '0',
32
42
  letterSpacing: 'normal',
33
- minWidth: '4',
34
- height: '4'
35
43
  },
36
44
  md: {
37
45
  fontSize: 'md',
38
46
  fontWeight: 'regular',
39
47
  lineHeight: '0',
40
48
  letterSpacing: 'normal',
41
- minWidth: '5',
42
- height: '5'
43
49
  }
44
50
  }
45
51
  },
@@ -47,122 +53,240 @@ const badgeRecipe = defineRecipe({
47
53
  compoundVariants: [
48
54
  // Size
49
55
  {
50
- variant: 'solid',
56
+ variant: ['solid', 'additionalInformation', 'tableStatus'],
51
57
  size: 'md',
52
58
  css: {
53
59
  paddingX: '1.5',
54
- paddingY: '0.5'
60
+ paddingY: '0.5',
61
+ minWidth: '5',
62
+ height: '5'
55
63
  }
56
64
  },
57
65
  {
58
- variant: 'solid',
66
+ variant: ['solid', 'additionalInformation', 'tableStatus'],
59
67
  size: 'sm',
60
68
  css: {
61
69
  paddingX: '1',
62
- paddingY: '0.5'
70
+ paddingY: '0.5',
71
+ minWidth: '4',
72
+ height: '4'
63
73
  }
64
74
  },
65
75
  {
66
- variant: 'subtle',
76
+ variant: ['subtle', 'additionalInformation', 'tableStatus'],
67
77
  size: 'md',
68
78
  css: {
69
79
  paddingX: '2',
70
- paddingY: '0'
80
+ paddingY: '0',
81
+ minWidth: '5',
82
+ height: '5'
71
83
  }
72
84
  },
73
85
  {
74
- variant: 'subtle',
86
+ variant: ['subtle', 'additionalInformation', 'tableStatus'],
75
87
  size: 'sm',
76
88
  css: {
77
89
  paddingX: '1',
78
- paddingY: '0'
90
+ paddingY: '0',
91
+ minWidth: '4',
92
+ height: '4'
93
+ }
94
+ },
95
+ {
96
+ variant: 'indicator',
97
+ size: ['sm', 'md'],
98
+ css: {
99
+ width: '3',
100
+ height: '3'
79
101
  }
80
102
  },
81
103
 
82
- // Solid
104
+ // Solid / Additional Information
83
105
  {
84
- variant: 'solid',
85
- variantColor: 'blue',
106
+ variant: ['solid', 'additionalInformation'],
107
+ variantColor: ['blue', 'information'],
86
108
  css: {
87
- backgroundColor: 'sky.400'
109
+ backgroundColor: 'sky.400',
110
+ color: 'white',
111
+ _nextTheme: {
112
+ backgroundColor: 'background.brand.bold',
113
+ color: 'text.inverse'
114
+ }
88
115
  }
89
116
  },
90
117
  {
91
- variant: 'solid',
92
- variantColor: 'green',
118
+ variant: ['solid', 'additionalInformation'],
119
+ variantColor: ['green', 'completed'],
93
120
  css: {
94
- backgroundColor: 'teal.400'
121
+ backgroundColor: 'teal.400',
122
+ color: 'white',
123
+ _nextTheme: {
124
+ backgroundColor: 'background.success.bold',
125
+ color: 'text.inverse'
126
+ }
95
127
  }
96
128
  },
97
129
  {
98
- variant: 'solid',
99
- variantColor: 'orange',
130
+ variant: ['solid', 'additionalInformation'],
131
+ variantColor: ['orange', 'warning'],
100
132
  css: {
101
- backgroundColor: 'amber.400'
133
+ backgroundColor: 'amber.400',
134
+ color: 'white',
135
+ _nextTheme: {
136
+ backgroundColor: 'background.warning.bold',
137
+ color: 'text.warning.inverse'
138
+ }
102
139
  }
103
140
  },
104
141
  {
105
- variant: 'solid',
106
- variantColor: 'red',
142
+ variant: ['solid', 'additionalInformation'],
143
+ variantColor: ['red', 'critical'],
107
144
  css: {
108
- backgroundColor: 'rose.400'
145
+ backgroundColor: 'rose.400',
146
+ color: 'white',
147
+ _nextTheme: {
148
+ backgroundColor: 'background.danger.bold',
149
+ color: 'text.inverse'
150
+ }
109
151
  }
110
152
  },
111
153
  {
112
- variant: 'solid',
113
- variantColor: 'gray',
154
+ variant: ['solid', 'additionalInformation'] ,
155
+ variantColor: ['gray', 'announcement'],
114
156
  css: {
115
- backgroundColor: 'stone.400'
157
+ backgroundColor: 'stone.400',
158
+ color: 'white',
159
+ _nextTheme: {
160
+ backgroundColor: 'background.neutral.bold',
161
+ color: 'text.inverse'
162
+ }
116
163
  }
117
164
  },
118
165
 
119
- // Subtle
166
+ // Subtle / Table Status
120
167
  {
121
- variant: ['subtle'],
122
- variantColor: 'blue',
168
+ variant: ['subtle', 'tableStatus'],
169
+ variantColor: ['blue', 'information'],
123
170
  css: {
124
171
  backgroundColor: 'blue.50',
125
- color: 'blue.700'
172
+ color: 'blue.700',
173
+ _nextTheme: {
174
+ backgroundColor: 'background.brand',
175
+ color: 'text.information'
176
+ }
126
177
  }
127
178
  },
128
179
  {
129
- variant: ['subtle'],
130
- variantColor: 'green',
180
+ variant: ['subtle', 'tableStatus'],
181
+ variantColor: ['green', 'completed'],
131
182
  css: {
132
183
  backgroundColor: 'green.50',
133
- color: 'green.700'
184
+ color: 'green.700',
185
+ _nextTheme: {
186
+ backgroundColor: 'background.success',
187
+ color: 'text.success'
188
+ }
134
189
  }
135
190
  },
136
191
  {
137
- variant: ['subtle'],
138
- variantColor: 'orange',
192
+ variant: ['subtle', 'tableStatus'],
193
+ variantColor: ['orange', 'warning'],
139
194
  css: {
140
195
  backgroundColor: 'orange.50',
141
- color: 'orange.700'
196
+ color: 'orange.700',
197
+ _nextTheme: {
198
+ backgroundColor: 'background.warning',
199
+ color: 'text.warning'
200
+ }
142
201
  }
143
202
  },
144
203
  {
145
- variant: ['subtle'],
146
- variantColor: 'red',
204
+ variant: ['subtle', 'tableStatus'],
205
+ variantColor: ['red', 'critical'],
147
206
  css: {
148
207
  backgroundColor: 'red.50',
149
- color: 'red.700'
208
+ color: 'red.700',
209
+ _nextTheme: {
210
+ backgroundColor: 'background.danger',
211
+ color: 'text.danger'
212
+ }
150
213
  }
151
214
  },
152
215
  {
153
- variant: ['subtle'],
154
- variantColor: 'gray',
216
+ variant: ['subtle', 'tableStatus'],
217
+ variantColor: ['gray', 'announcement'],
155
218
  css: {
156
219
  backgroundColor: 'gray.50',
157
- color: 'black'
220
+ color: 'black',
221
+ _nextTheme: {
222
+ color: 'text.default',
223
+ backgroundColor: 'background.neutral.subtle'
224
+ }
158
225
  }
159
- }
226
+ },
227
+
228
+ // Indicator
229
+ {
230
+ variant: 'indicator',
231
+ variantColor: ['blue', 'information'],
232
+ css: {
233
+ backgroundColor: 'sky.400',
234
+ _nextTheme: {
235
+ backgroundColor: 'icon.brand',
236
+ color: 'text.inverse'
237
+ }
238
+ }
239
+ },
240
+ {
241
+ variant: 'indicator',
242
+ variantColor: ['green', 'completed'],
243
+ css: {
244
+ backgroundColor: 'teal.400',
245
+ _nextTheme: {
246
+ backgroundColor: 'icon.success',
247
+ color: 'text.inverse'
248
+ }
249
+ }
250
+ },
251
+ {
252
+ variant: 'indicator',
253
+ variantColor: ['orange', 'warning'],
254
+ css: {
255
+ backgroundColor: 'amber.400',
256
+ _nextTheme: {
257
+ backgroundColor: 'icon.warning',
258
+ color: 'text.warning.inverse'
259
+ }
260
+ }
261
+ },
262
+ {
263
+ variant: 'indicator',
264
+ variantColor: ['red', 'critical'],
265
+ css: {
266
+ backgroundColor: 'rose.400',
267
+ _nextTheme: {
268
+ backgroundColor: 'icon.danger',
269
+ color: 'text.inverse'
270
+ }
271
+ }
272
+ },
273
+ {
274
+ variant: 'indicator',
275
+ variantColor: ['gray', 'announcement'],
276
+ css: {
277
+ backgroundColor: 'stone.400',
278
+ _nextTheme: {
279
+ color: 'text.inverse',
280
+ backgroundColor: 'icon.default'
281
+ }
282
+ }
283
+ },
160
284
  ],
161
285
 
162
286
  defaultVariants: {
163
- variant: 'solid',
287
+ variant: 'additionalInformation',
164
288
  size: 'md',
165
- variantColor: 'blue'
289
+ variantColor: 'information'
166
290
  }
167
291
  })
168
292
 
@@ -10,8 +10,8 @@ const bannerSlotRecipe = defineSlotRecipe({
10
10
  position: 'relative',
11
11
  alignItems: 'var(--mp-banner--align-items)',
12
12
  borderRadius: 'md',
13
- paddingY: 'var(--mp-banner--padding-y)',
14
- paddingX: 'var(--mp-banner--padding-x)'
13
+ paddingY: '3',
14
+ paddingX: '4'
15
15
  },
16
16
  body: {
17
17
  display: 'flex',
@@ -23,16 +23,36 @@ const bannerSlotRecipe = defineSlotRecipe({
23
23
  variants: {
24
24
  variant: {
25
25
  info: {
26
- root: { backgroundColor: 'blue.50' }
26
+ root: {
27
+ backgroundColor: 'blue.50',
28
+ _nextTheme: {
29
+ backgroundColor: 'background.brand',
30
+ }
31
+ }
27
32
  },
28
33
  success: {
29
- root: { backgroundColor: 'green.50' }
34
+ root: {
35
+ backgroundColor: 'green.50',
36
+ _nextTheme: {
37
+ backgroundColor: 'background.success'
38
+ }
39
+ }
30
40
  },
31
41
  danger: {
32
- root: { backgroundColor: 'red.50' }
42
+ root: {
43
+ backgroundColor: 'red.50',
44
+ _nextTheme: {
45
+ backgroundColor: 'background.danger'
46
+ }
47
+ }
33
48
  },
34
49
  warning: {
35
- root: { backgroundColor: 'orange.50' }
50
+ root: {
51
+ backgroundColor: 'orange.50',
52
+ _nextTheme: {
53
+ backgroundColor: 'background.warning'
54
+ }
55
+ }
36
56
  }
37
57
  }
38
58
  },
@@ -53,7 +73,10 @@ const bannerTitleRecipe = defineRecipe({
53
73
  letterSpacing: 'normal',
54
74
  color: 'dark',
55
75
  marginTop: '0.5',
56
- marginBottom: '1.5'
76
+ marginBottom: '1',
77
+ _nextTheme: {
78
+ color: 'text.default',
79
+ }
57
80
  },
58
81
  variants: {},
59
82
  compoundVariants: [],
@@ -69,7 +92,10 @@ const bannerDescriptionRecipe = defineRecipe({
69
92
  fontWeight: 'regular',
70
93
  lineHeight: 'md',
71
94
  letterSpacing: 'normal',
72
- color: 'dark'
95
+ color: 'dark',
96
+ _nextTheme: {
97
+ color: 'text.default',
98
+ }
73
99
  },
74
100
  variants: {},
75
101
  compoundVariants: [],
@@ -106,7 +132,6 @@ const bannerLinkRecipe = defineRecipe({
106
132
  base: {
107
133
  display: 'flex',
108
134
  gap: '4',
109
- marginBottom: 'var(--mp-banner-link--margin-bottom)',
110
135
  marginTop: 'var(--mp-banner-link--margin-top)'
111
136
  },
112
137
  variants: {},
@@ -119,8 +144,8 @@ const bannerCloseButtonRecipe = defineRecipe({
119
144
  jsx: ['MpBannerCloseButton', 'mp-banner-close-button'],
120
145
  base: {
121
146
  position: 'absolute',
122
- top: 'var(--mp-banner-close-button--top)',
123
- right: 'var(--mp-banner-close-button--right)',
147
+ top: '3',
148
+ right: '4',
124
149
  display: 'inline-flex',
125
150
  justifyContent: 'center',
126
151
  alignItems: 'center',
@@ -38,28 +38,94 @@ const broadcastSlotRecipe = defineSlotRecipe({
38
38
  marginLeft: '3',
39
39
  _hover: {
40
40
  color: 'white!'
41
+ },
42
+ _nextTheme: {
43
+ color: 'icon.inverse!',
44
+ _hover: {
45
+ color: 'icon.inverse!'
46
+ },
41
47
  }
42
48
  }
43
49
  },
44
50
  variants: {
45
51
  variant: {
46
52
  announcement: {
47
- container: { backgroundColor: 'stone.400' },
48
- icon: { color: 'white' },
49
- label: { color: 'white' },
50
- textLink: { color: 'white' }
53
+ container: {
54
+ backgroundColor: 'stone.400',
55
+ _nextTheme: {
56
+ backgroundColor: 'background.neutral.bold',
57
+ }
58
+ },
59
+ icon: {
60
+ color: 'white',
61
+ _nextTheme: {
62
+ color: 'icon.inverse'
63
+ }
64
+ },
65
+ label: {
66
+ color: 'white',
67
+ _nextTheme: {
68
+ color: 'text.inverse'
69
+ }
70
+ },
71
+ textLink: {
72
+ color: 'white',
73
+ _nextTheme: {
74
+ color: 'text.inverse'
75
+ }
76
+ }
51
77
  },
52
78
  information: {
53
- container: { backgroundColor: 'violet.400' },
54
- icon: { color: 'white' },
55
- label: { color: 'white' },
56
- textLink: { color: 'white' }
79
+ container: {
80
+ backgroundColor: 'violet.400',
81
+ _nextTheme: {
82
+ backgroundColor: 'background.highlight.bold',
83
+ }
84
+ },
85
+ icon: {
86
+ color: 'white',
87
+ _nextTheme: {
88
+ color: 'icon.inverse.static'
89
+ }
90
+ },
91
+ label: {
92
+ color: 'white',
93
+ _nextTheme: {
94
+ color: 'text.inverse'
95
+ }
96
+ },
97
+ textLink: {
98
+ color: 'white',
99
+ _nextTheme: {
100
+ color: 'text.inverse'
101
+ }
102
+ }
57
103
  },
58
104
  important: {
59
- container: { backgroundColor: 'amber.100' },
60
- icon: { color: 'dark' },
61
- label: { color: 'dark' },
62
- textLink: { color: 'dark' }
105
+ container: {
106
+ backgroundColor: 'amber.100',
107
+ _nextTheme: {
108
+ backgroundColor: 'background.warning.bold',
109
+ }
110
+ },
111
+ icon: {
112
+ color: 'dark',
113
+ _nextTheme: {
114
+ color: 'icon.warning.inverse'
115
+ }
116
+ },
117
+ label: {
118
+ color: 'dark',
119
+ _nextTheme: {
120
+ color: 'text.warning.inverse'
121
+ }
122
+ },
123
+ textLink: {
124
+ color: 'dark',
125
+ _nextTheme: {
126
+ color: 'text.warning.inverse'
127
+ }
128
+ }
63
129
  }
64
130
  }
65
131
  },