@mekari/pixel3-theme 0.2.2-dev.5 → 0.2.2-dev.7

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 (43) hide show
  1. package/dist/index.js +60 -14
  2. package/dist/index.mjs +60 -14
  3. package/dist/semanticTokens/colors.d.mts +7 -0
  4. package/dist/semanticTokens/colors.d.ts +7 -0
  5. package/dist/semanticTokens/index.d.mts +7 -0
  6. package/dist/semanticTokens/index.d.ts +7 -0
  7. package/package.json +1 -1
  8. package/src/conditions.ts +3 -2
  9. package/src/fonts.ts +4 -4
  10. package/src/global-css.ts +3 -3
  11. package/src/index.ts +1 -1
  12. package/src/recipes/avatar.ts +28 -20
  13. package/src/recipes/badge.ts +7 -7
  14. package/src/recipes/banner.ts +7 -7
  15. package/src/recipes/broadcast.ts +26 -26
  16. package/src/recipes/button.ts +4 -4
  17. package/src/recipes/carousel.ts +2 -6
  18. package/src/recipes/color-picker.ts +1 -1
  19. package/src/recipes/date-picker.ts +1 -1
  20. package/src/recipes/divider.ts +3 -3
  21. package/src/recipes/form-control.ts +3 -3
  22. package/src/recipes/input.ts +23 -23
  23. package/src/recipes/modal.ts +3 -3
  24. package/src/recipes/popover.ts +1 -1
  25. package/src/recipes/rich-text-editor.ts +2 -2
  26. package/src/recipes/segmented-control.ts +14 -13
  27. package/src/recipes/select.ts +9 -9
  28. package/src/recipes/slider.ts +16 -11
  29. package/src/recipes/table.ts +5 -5
  30. package/src/recipes/tabs.ts +2 -2
  31. package/src/recipes/textarea.ts +1 -1
  32. package/src/recipes/textlink.ts +14 -11
  33. package/src/recipes/timeline.ts +27 -2
  34. package/src/recipes/toast.ts +12 -12
  35. package/src/recipes/toggle.ts +1 -1
  36. package/src/semanticTokens/colors.ts +8 -1
  37. package/src/semanticTokens/index.ts +1 -1
  38. package/src/semanticTokens/spacing.ts +12 -12
  39. package/src/tokens/colors.ts +2 -2
  40. package/src/tokens/spacing.ts +2 -2
  41. package/src/tokens-next/radii.ts +1 -1
  42. package/src/tokens-next/shadows.ts +16 -4
  43. package/src/tokens-next/spacing.ts +1 -1
@@ -16,7 +16,7 @@ const tableRecipe = defineRecipe({
16
16
  '& > td': {
17
17
  backgroundColor: 'gray.50',
18
18
  _nextTheme: {
19
- background: 'background.neutral.hovered',
19
+ background: 'background.neutral.hovered'
20
20
  }
21
21
  }
22
22
  }
@@ -45,7 +45,7 @@ const tableRecipe = defineRecipe({
45
45
  '& th, & td': {
46
46
  cursor: 'default',
47
47
  paddingLeft: '2',
48
- paddingRight: '4',
48
+ paddingRight: '4',
49
49
  height: '52px',
50
50
  textStyle: 'label.md',
51
51
  textAlign: 'left',
@@ -56,21 +56,21 @@ const tableRecipe = defineRecipe({
56
56
  _nextTheme: {
57
57
  color: 'text.default',
58
58
  borderBottomWidth: 'sm',
59
- borderColor: 'border.default',
59
+ borderColor: 'border.default'
60
60
  }
61
61
  },
62
62
  '& th': {
63
63
  fontWeight: 'semiBold',
64
64
  background: 'gray.25',
65
65
  _nextTheme: {
66
- background: 'background.surface',
66
+ background: 'background.surface'
67
67
  }
68
68
  },
69
69
  '& td': {
70
70
  fontWeight: 'regular',
71
71
  backgroundColor: 'white',
72
72
  _nextTheme: {
73
- background: 'background.neutral',
73
+ background: 'background.neutral'
74
74
  }
75
75
  },
76
76
  '& th[data-table-cell-fixed=true], & td[data-table-cell-fixed=true]': {
@@ -197,8 +197,8 @@ const tabSelectedBorderRecipe = defineRecipe({
197
197
  _nextTheme: {
198
198
  background: 'border.selected',
199
199
  _groupHover: {
200
- background: 'border.selected',
201
- },
200
+ background: 'border.selected'
201
+ }
202
202
  }
203
203
  }
204
204
  },
@@ -5,7 +5,7 @@ const textareaRecipe = defineRecipe({
5
5
  jsx: ['MpTextarea', 'mp-textarea'],
6
6
  base: {
7
7
  minHeight: '20',
8
- resize: 'both',
8
+ resize: 'both'
9
9
  }
10
10
  })
11
11
 
@@ -15,7 +15,7 @@ const textlinkRecipe = defineRecipe({
15
15
  },
16
16
  _loading: {
17
17
  background: 'white'
18
- },
18
+ }
19
19
  },
20
20
  variants: {
21
21
  variant: {
@@ -30,11 +30,11 @@ const textlinkRecipe = defineRecipe({
30
30
  _nextTheme: {
31
31
  color: 'text.link',
32
32
  _hover: {
33
- color: 'text.link',
33
+ color: 'text.link'
34
34
  },
35
35
  _active: {
36
36
  color: 'text.link.pressed'
37
- },
37
+ }
38
38
  }
39
39
  },
40
40
  secondary: {
@@ -43,16 +43,16 @@ const textlinkRecipe = defineRecipe({
43
43
  color: 'gray.400'
44
44
  },
45
45
  _active: {
46
- color: 'gray.700',
46
+ color: 'gray.700'
47
47
  },
48
48
  _nextTheme: {
49
49
  color: 'text.secondary',
50
50
  _hover: {
51
- color: 'text.secondary',
51
+ color: 'text.secondary'
52
52
  },
53
53
  _active: {
54
54
  color: 'text.secondary.pressed'
55
- },
55
+ }
56
56
  }
57
57
  },
58
58
  danger: {
@@ -66,13 +66,13 @@ const textlinkRecipe = defineRecipe({
66
66
  _nextTheme: {
67
67
  color: 'text.danger',
68
68
  _hover: {
69
- color: 'text.danger',
69
+ color: 'text.danger'
70
70
  },
71
71
  _active: {
72
72
  color: 'text.danger.pressed'
73
- },
73
+ }
74
74
  }
75
- },
75
+ }
76
76
  }
77
77
  },
78
78
  compoundVariants: [
@@ -99,7 +99,10 @@ const textlinkRecipe = defineRecipe({
99
99
  }
100
100
  }
101
101
  }
102
- ]
102
+ ],
103
+ defaultVariants: {
104
+ variant: 'primary',
105
+ }
103
106
  })
104
107
 
105
- export { textlinkRecipe}
108
+ export { textlinkRecipe }
@@ -145,7 +145,11 @@ const timelineSeparatorSlotRecipe = defineSlotRecipe({
145
145
  root: {
146
146
  display: 'flex',
147
147
  flexDirection: 'column',
148
- alignItems: 'center'
148
+ alignItems: 'center',
149
+ '&[data-accordion-child=true]': {
150
+ alignItems: 'start',
151
+ marginLeft: '9px'
152
+ }
149
153
  },
150
154
  topConnector: {
151
155
  height: '6px',
@@ -155,8 +159,20 @@ const timelineSeparatorSlotRecipe = defineSlotRecipe({
155
159
  '&[data-position=first]': {
156
160
  backgroundColor: 'transparent'
157
161
  },
162
+ '&[data-hide=true]': {
163
+ backgroundColor: 'transparent'
164
+ },
165
+ '&[data-accordion-child=true]': {
166
+ roundedBottom: '',
167
+ },
158
168
  _nextTheme: {
159
- backgroundColor: 'border.default'
169
+ backgroundColor: 'border.default',
170
+ '&[data-position=first]': {
171
+ backgroundColor: 'transparent'
172
+ },
173
+ '&[data-hide=true]': {
174
+ backgroundColor: 'transparent'
175
+ },
160
176
  }
161
177
  },
162
178
  bottomConnector: {
@@ -168,10 +184,19 @@ const timelineSeparatorSlotRecipe = defineSlotRecipe({
168
184
  '&[data-position=last]': {
169
185
  backgroundColor: 'transparent'
170
186
  },
187
+ '&[data-hide=true]': {
188
+ backgroundColor: 'transparent'
189
+ },
190
+ '&[data-accordion-child=true]': {
191
+ roundedTop: '',
192
+ },
171
193
  _nextTheme: {
172
194
  backgroundColor: 'border.default',
173
195
  '&[data-position=last]': {
174
196
  backgroundColor: 'transparent'
197
+ },
198
+ '&[data-hide=true]': {
199
+ backgroundColor: 'transparent'
175
200
  }
176
201
  }
177
202
  }
@@ -16,14 +16,14 @@ const toastSlotRecipe = defineSlotRecipe({
16
16
  boxShadow: 'lg',
17
17
  zIndex: '1700',
18
18
  _nextTheme: {
19
- backgroundColor: 'background.neutral',
19
+ backgroundColor: 'background.neutral'
20
20
  }
21
21
  },
22
22
  label: {
23
23
  color: 'dark',
24
24
  fontSize: 'md',
25
25
  _nextTheme: {
26
- color: 'text.default',
26
+ color: 'text.default'
27
27
  }
28
28
  }
29
29
  },
@@ -38,40 +38,40 @@ const toastSlotRecipe = defineSlotRecipe({
38
38
  {
39
39
  variant: 'success',
40
40
  css: {
41
- root: {
41
+ root: {
42
42
  borderColor: 'green.700',
43
43
  _nextTheme: {
44
- borderColor: 'border.success',
45
- }
44
+ borderColor: 'border.success'
45
+ }
46
46
  }
47
47
  }
48
48
  },
49
49
  {
50
50
  variant: 'error',
51
51
  css: {
52
- root: {
52
+ root: {
53
53
  borderColor: 'red.700',
54
54
  _nextTheme: {
55
- borderColor: 'border.danger',
56
- }
55
+ borderColor: 'border.danger'
56
+ }
57
57
  }
58
58
  }
59
59
  },
60
60
  {
61
61
  variant: 'greeting',
62
62
  css: {
63
- root: {
63
+ root: {
64
64
  borderRadius: '999px',
65
65
  border: 'none',
66
66
  backgroundColor: 'overlay',
67
67
  _nextTheme: {
68
- backgroundColor: 'background.overlay',
69
- }
68
+ backgroundColor: 'background.overlay'
69
+ }
70
70
  },
71
71
  label: {
72
72
  color: 'white',
73
73
  _nextTheme: {
74
- color: 'text.inverse-static',
74
+ color: 'text.inverse-static'
75
75
  }
76
76
  }
77
77
  }
@@ -136,7 +136,7 @@ const toggleSlotRecipe = defineSlotRecipe({
136
136
  _nextTheme: {
137
137
  transform: 'translateX(2px)',
138
138
  background: 'icon.subtle',
139
- borderRadius: 'full',
139
+ borderRadius: 'full'
140
140
  }
141
141
  }
142
142
  },
@@ -379,7 +379,14 @@ export const colors = defineSemanticTokens.colors({
379
379
  }
380
380
  }
381
381
  }
382
- }
382
+ },
383
+ airene: {
384
+ value: {
385
+ base: 'radial-gradient(108.28% 139.29% at 0% 0%, #EEF0FC 0%, #F3F1FC 100%)', // Doens't have raw token
386
+ _light: 'radial-gradient(108.28% 139.29% at 0% 0%, #EEF0FC 0%, #F3F1FC 100%)', // Doesn't have raw token
387
+ _dark: 'radial-gradient(108.28% 139.29% at 0% 0%, #1D2656 0%, #2B2549 100%)' // Doesn't have raw token
388
+ }
389
+ },
383
390
  },
384
391
  nav: {
385
392
  parent: {
@@ -5,4 +5,4 @@ import { spacing } from './spacing'
5
5
  export const semanticTokens = defineSemanticTokens({
6
6
  colors,
7
7
  spacing
8
- })
8
+ })
@@ -2,58 +2,58 @@ import { defineSemanticTokens } from '@pandacss/dev'
2
2
 
3
3
  export const spacing = defineSemanticTokens.spacing({
4
4
  '4xs': {
5
- value : {
5
+ value: {
6
6
  base: '0.125rem'
7
7
  }
8
8
  },
9
9
  '3xs': {
10
- value : {
10
+ value: {
11
11
  base: '{spacing.1}'
12
12
  }
13
13
  },
14
14
  '2xs': {
15
- value : {
15
+ value: {
16
16
  base: '0.375rem'
17
17
  }
18
18
  },
19
19
  xs: {
20
- value : {
20
+ value: {
21
21
  base: '{spacing.2}'
22
22
  }
23
23
  },
24
24
  sm: {
25
- value : {
25
+ value: {
26
26
  base: '{spacing.3}'
27
27
  }
28
28
  },
29
29
  md: {
30
- value : {
30
+ value: {
31
31
  base: '{spacing.4}'
32
32
  }
33
33
  },
34
34
  lg: {
35
- value : {
35
+ value: {
36
36
  base: '{spacing.5}'
37
37
  }
38
38
  },
39
39
  xl: {
40
- value : {
40
+ value: {
41
41
  base: '{spacing.6}'
42
42
  }
43
43
  },
44
44
  '2xl': {
45
- value : {
45
+ value: {
46
46
  base: '{spacing.8}'
47
47
  }
48
48
  },
49
49
  '3xl': {
50
- value : {
50
+ value: {
51
51
  base: '{spacing.10}'
52
52
  }
53
53
  },
54
54
  '4xl': {
55
- value : {
55
+ value: {
56
56
  base: '{spacing.20}'
57
57
  }
58
58
  }
59
- })
59
+ })
@@ -138,5 +138,5 @@ export const colors = defineTokens.colors({
138
138
  qontak: { value: '#2979FF' },
139
139
  talenta: { value: '#F22929' },
140
140
  university: { value: '#448AFF' }
141
- },
142
- })
141
+ }
142
+ })
@@ -1,14 +1,14 @@
1
1
  import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const spacing = defineTokens.spacing({
4
- 0: { value: '0'},
4
+ 0: { value: '0' },
5
5
  0.5: { value: '0.125rem', description: '2px' },
6
6
  1: { value: '0.25rem', description: '4px' },
7
7
  1.5: { value: '0.375rem', description: '6px' },
8
8
  2: { value: '0.5rem', description: '8px' },
9
9
  3: { value: '0.75rem', description: '12px' },
10
10
  4: { value: '1rem', description: '16px' },
11
- 5: { value: '1.3rem', description: '20px' },
11
+ 5: { value: '1.3rem', description: '20px' },
12
12
  6: { value: '1.5rem', description: '24px' },
13
13
  8: { value: '2rem', description: '32px' },
14
14
  12: { value: '3rem', description: '48px' },
@@ -7,4 +7,4 @@ export const radii = defineTokens.radii({
7
7
  lg: { value: '0.5rem', description: '8px' },
8
8
  xl: { value: '0.75rem', description: '12px' },
9
9
  full: { value: '999px' }
10
- })
10
+ })
@@ -2,16 +2,28 @@ import { defineTokens } from '@pandacss/dev'
2
2
 
3
3
  export const shadows = defineTokens.shadows({
4
4
  xs: {
5
- value: ['0px 2px 4px 0px {colors.background.shadow}', '0px 0px 2px 0px {colors.background.shadow}']
5
+ value: [
6
+ '0px 2px 4px 0px {colors.background.shadow}',
7
+ '0px 0px 2px 0px {colors.background.shadow}'
8
+ ]
6
9
  },
7
10
  sm: {
8
- value: ['0px 10px 15px -3px {colors.background.shadow}', '0px 4px 6px -2px {colors.background.shadow}']
11
+ value: [
12
+ '0px 10px 15px -3px {colors.background.shadow}',
13
+ '0px 4px 6px -2px {colors.background.shadow}'
14
+ ]
9
15
  },
10
16
  md: {
11
- value: ['0px 20px 25px -5px {colors.background.shadow}', '0px 10px 10px -5px {colors.background.shadow}']
17
+ value: [
18
+ '0px 20px 25px -5px {colors.background.shadow}',
19
+ '0px 10px 10px -5px {colors.background.shadow}'
20
+ ]
12
21
  },
13
22
  lg: {
14
- value: ['0px 25px 30px -10px {colors.background.shadow}', '0px 15px 15px -10px {colors.background.shadow}']
23
+ value: [
24
+ '0px 25px 30px -10px {colors.background.shadow}',
25
+ '0px 15px 15px -10px {colors.background.shadow}'
26
+ ]
15
27
  },
16
28
  focus: {
17
29
  value: '0 0 0 1px {colors.border.focused}'
@@ -8,7 +8,7 @@ export const spacing = defineTokens.spacing({
8
8
  2: { value: '0.5rem', description: '8px' },
9
9
  3: { value: '0.75rem', description: '12px' },
10
10
  4: { value: '1rem', description: '16px' },
11
- 5: { value: '1.3rem', description: '20px' },
11
+ 5: { value: '1.3rem', description: '20px' },
12
12
  6: { value: '1.5rem', description: '24px' },
13
13
  8: { value: '2rem', description: '32px' },
14
14
  10: { value: '2.5rem', description: '40px' },