@mekari/pixel3-theme 0.0.1-alpha.0 → 0.0.2

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 (70) hide show
  1. package/dist/index.js +2803 -2082
  2. package/dist/index.mjs +2834 -2111
  3. package/dist/recipes/banner.d.mts +10 -0
  4. package/dist/recipes/banner.d.ts +10 -0
  5. package/dist/recipes/divider.d.mts +5 -0
  6. package/dist/recipes/divider.d.ts +5 -0
  7. package/dist/recipes/dropzone.d.mts +5 -0
  8. package/dist/recipes/dropzone.d.ts +5 -0
  9. package/dist/recipes/form-control.d.mts +5 -0
  10. package/dist/recipes/form-control.d.ts +5 -0
  11. package/dist/recipes/index.d.mts +13 -0
  12. package/dist/recipes/index.d.ts +13 -0
  13. package/dist/recipes/input-tag.d.mts +5 -0
  14. package/dist/recipes/input-tag.d.ts +5 -0
  15. package/dist/recipes/modal.d.mts +5 -0
  16. package/dist/recipes/modal.d.ts +5 -0
  17. package/dist/recipes/upload.d.mts +6 -0
  18. package/dist/recipes/upload.d.ts +6 -0
  19. package/dist/tokens/colors.d.mts +64 -0
  20. package/dist/tokens/colors.d.ts +64 -0
  21. package/dist/tokens/index.d.mts +71 -0
  22. package/dist/tokens/index.d.ts +71 -0
  23. package/dist/tokens/sizes.d.mts +7 -0
  24. package/dist/tokens/sizes.d.ts +7 -0
  25. package/package.json +5 -4
  26. package/src/breakpoints.ts +6 -0
  27. package/src/conditions.ts +22 -0
  28. package/src/global-css.ts +23 -0
  29. package/src/index.ts +26 -0
  30. package/src/keyframes.ts +15 -0
  31. package/src/recipes/accordion.ts +57 -0
  32. package/src/recipes/avatar.ts +179 -0
  33. package/src/recipes/badge.ts +166 -0
  34. package/src/recipes/banner.ts +143 -0
  35. package/src/recipes/button.ts +224 -0
  36. package/src/recipes/checkbox.ts +92 -0
  37. package/src/recipes/divider.ts +31 -0
  38. package/src/recipes/dropzone.ts +161 -0
  39. package/src/recipes/form-control.ts +40 -0
  40. package/src/recipes/icon.ts +31 -0
  41. package/src/recipes/index.ts +83 -0
  42. package/src/recipes/input-tag.ts +119 -0
  43. package/src/recipes/input.ts +204 -0
  44. package/src/recipes/modal.ts +108 -0
  45. package/src/recipes/popover.ts +82 -0
  46. package/src/recipes/progress.ts +76 -0
  47. package/src/recipes/radio.ts +103 -0
  48. package/src/recipes/select.ts +114 -0
  49. package/src/recipes/shared.ts +19 -0
  50. package/src/recipes/spinner.ts +25 -0
  51. package/src/recipes/table.ts +113 -0
  52. package/src/recipes/tabs.ts +204 -0
  53. package/src/recipes/tag.ts +105 -0
  54. package/src/recipes/text.ts +56 -0
  55. package/src/recipes/textarea.ts +60 -0
  56. package/src/recipes/toggle.ts +99 -0
  57. package/src/recipes/tooltip.ts +24 -0
  58. package/src/recipes/upload.ts +99 -0
  59. package/src/text-styles.ts +34 -0
  60. package/src/tokens/borders.ts +8 -0
  61. package/src/tokens/colors.ts +154 -0
  62. package/src/tokens/durations.ts +7 -0
  63. package/src/tokens/index.ts +28 -0
  64. package/src/tokens/opacity.ts +8 -0
  65. package/src/tokens/radii.ts +11 -0
  66. package/src/tokens/shadows.ts +40 -0
  67. package/src/tokens/sizes.ts +29 -0
  68. package/src/tokens/spacing.ts +21 -0
  69. package/src/tokens/typography.ts +45 -0
  70. package/src/tokens/z-index.ts +12 -0
@@ -0,0 +1,57 @@
1
+ // import { accordionAnatomy } from "@ark-ui/anatomy";
2
+ import { defineSlotRecipe } from '@pandacss/dev'
3
+
4
+ export const accordion = defineSlotRecipe({
5
+ className: 'accordion',
6
+ slots: ['root', 'item', 'trigger', 'content'],
7
+ base: {
8
+ root: {
9
+ divideY: '1px',
10
+ width: 'full'
11
+ },
12
+ trigger: {
13
+ alignItems: 'center',
14
+ color: 'fg.default',
15
+ cursor: 'pointer',
16
+ display: 'flex',
17
+ fontWeight: 'normal',
18
+ justifyContent: 'space-between',
19
+ textStyle: 'lg',
20
+ width: 'full',
21
+ fontSize: 'lg'
22
+ },
23
+ content: {
24
+ color: 'fg.muted',
25
+ display: 'grid',
26
+ gridTemplateRows: '0fr',
27
+ transitionProperty: 'grid-template-rows, padding-bottom',
28
+ transitionDuration: 'normal',
29
+ transitionTimingFunction: 'default',
30
+ _open: {
31
+ gridTemplateRows: '1fr'
32
+ },
33
+ '& > div': {
34
+ overflow: 'hidden'
35
+ }
36
+ }
37
+ },
38
+ defaultVariants: {
39
+ size: 'md'
40
+ },
41
+ variants: {
42
+ size: {
43
+ md: {
44
+ trigger: {
45
+ py: '4'
46
+ },
47
+ content: {
48
+ pb: '6',
49
+ pr: '8',
50
+ _closed: {
51
+ pb: '0'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ })
@@ -0,0 +1,179 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const avatarSlotRecipe = defineSlotRecipe({
4
+ className: 'avatar',
5
+ jsx: ['MpAvatar', 'mp-avatar'],
6
+ slots: ['root', 'fallback', 'image', 'icon'],
7
+ base: {
8
+ root: {
9
+ color: 'white',
10
+ position: 'relative',
11
+ display: 'inline-flex',
12
+ alignItems: 'center',
13
+ justifyContent: 'center',
14
+ verticalAlign: 'top',
15
+ flexShrink: '0',
16
+ fontWeight: 'semiBold',
17
+ textTransform: 'uppercase',
18
+ userSelect: 'none',
19
+ backgroundColor: 'var(--mp-avatar--background-color)',
20
+ borderColor: 'var(--mp-avatar--border-color)',
21
+ marginLeft: 'var(--mp-avatar--margin-left)',
22
+ cursor: 'var(--mp-avatar--cursor)',
23
+ _hasBorder: {
24
+ borderWidth: '0.125rem'
25
+ }
26
+ },
27
+ fallback: {
28
+ width: '100%',
29
+ height: '100%',
30
+ visibility: 'var(--mp-avatar--visibility)',
31
+ display: 'var(--mp-avatar--display)'
32
+ },
33
+ image: {
34
+ width: '100%',
35
+ height: '100%',
36
+ objectFit: 'cover'
37
+ }
38
+ },
39
+ variants: {
40
+ variant: {
41
+ square: {
42
+ root: { borderRadius: 'md' },
43
+ image: { borderRadius: 'md' }
44
+ },
45
+ circle: {
46
+ root: { borderRadius: 'full' },
47
+ image: { borderRadius: 'full' }
48
+ }
49
+ },
50
+ variantColor: {
51
+ gray: {
52
+ root: { backgroundColor: 'gray.50' }
53
+ },
54
+ sky: {
55
+ root: { backgroundColor: 'sky.400' }
56
+ },
57
+ teal: {
58
+ root: { backgroundColor: 'teal.400' }
59
+ },
60
+ violet: {
61
+ root: { backgroundColor: 'violet.400' }
62
+ },
63
+ amber: {
64
+ root: { backgroundColor: 'amber.400' }
65
+ },
66
+ rose: {
67
+ root: { backgroundColor: 'rose.400' }
68
+ },
69
+ stone: {
70
+ root: { backgroundColor: 'stone.400' }
71
+ },
72
+ lime: {
73
+ root: { backgroundColor: 'lime.400' }
74
+ },
75
+ pink: {
76
+ root: { backgroundColor: 'pink.400' }
77
+ }
78
+ },
79
+ size: {
80
+ sm: {
81
+ root: { width: '6', height: '6', fontSize: 'xs' },
82
+ icon: { width: '4!', height: '4!' }
83
+ },
84
+ md: {
85
+ root: { width: '8', height: '8', fontSize: 'sm' },
86
+ icon: { width: '5!', height: '5!' }
87
+ },
88
+ lg: {
89
+ root: { width: '12', height: '12', fontSize: 'lg' },
90
+ icon: { width: '8!', height: '8!' }
91
+ },
92
+ xl: {
93
+ root: { width: '20', height: '20', fontSize: '2xl' },
94
+ icon: { width: '16!', height: '16!' }
95
+ }
96
+ }
97
+ },
98
+ compoundVariants: [
99
+ {
100
+ size: 'sm',
101
+ variant: 'square',
102
+ css: {
103
+ root: { borderRadius: 'sm' },
104
+ image: { borderRadius: 'sm' }
105
+ }
106
+ },
107
+ {
108
+ size: 'lg',
109
+ variant: 'square',
110
+ css: {
111
+ root: { borderRadius: 'lg' },
112
+ image: { borderRadius: 'lg' }
113
+ }
114
+ },
115
+ {
116
+ size: 'xl',
117
+ variant: 'square',
118
+ css: {
119
+ root: { borderRadius: 'xl' },
120
+ image: { borderRadius: 'xl' }
121
+ }
122
+ },
123
+ {
124
+ variantColor: 'gray',
125
+ css: {
126
+ root: { color: 'gray.600' }
127
+ }
128
+ }
129
+ ],
130
+ defaultVariants: {
131
+ size: 'md',
132
+ variant: 'circle'
133
+ }
134
+ })
135
+
136
+ const avatarGroupSlotRecipe = defineSlotRecipe({
137
+ className: 'avatar-group',
138
+ jsx: ['MpAvatarGroup', 'mp-avatar-group'],
139
+ slots: ['root', 'excess'],
140
+ base: {
141
+ root: {
142
+ display: 'flex',
143
+ alignItems: 'center',
144
+ zIndex: '0'
145
+ },
146
+ excess: {
147
+ marginLeft: '2',
148
+ color: 'blue.400',
149
+ backgroundColor: 'blue.50',
150
+ fontWeight: 'semiBold',
151
+ display: 'flex',
152
+ alignItems: 'center',
153
+ justifyContent: 'center',
154
+ borderRadius: 'full',
155
+ userSelect: 'none',
156
+ cursor: 'var(--mp-avatar-group--cursor)'
157
+ }
158
+ },
159
+ variants: {
160
+ size: {
161
+ sm: {
162
+ excess: { width: '6', height: '6', fontSize: 'xs' }
163
+ },
164
+ md: {
165
+ excess: { width: '8', height: '8', fontSize: 'sm' }
166
+ },
167
+ lg: {
168
+ excess: { width: '12', height: '12', fontSize: 'lg' }
169
+ },
170
+ xl: {
171
+ excess: { width: '20', height: '20', fontSize: '2xl' }
172
+ }
173
+ }
174
+ },
175
+ compoundVariants: [],
176
+ defaultVariants: {}
177
+ })
178
+
179
+ export { avatarSlotRecipe, avatarGroupSlotRecipe }
@@ -0,0 +1,166 @@
1
+ import { defineRecipe } from '@pandacss/dev'
2
+
3
+ const badgeRecipe = defineRecipe({
4
+ className: 'badge',
5
+ jsx: ['MpBadge', 'mp-badge'],
6
+ base: {
7
+ display: 'inline-flex',
8
+ alignItems: 'center',
9
+ borderRadius: '999px'
10
+ },
11
+
12
+ variants: {
13
+ variant: {
14
+ solid: {
15
+ color: 'white'
16
+ },
17
+ subtle: {}
18
+ },
19
+ variantColor: {
20
+ blue: {},
21
+ green: {},
22
+ orange: {},
23
+ red: {},
24
+ gray: {}
25
+ },
26
+ size: {
27
+ sm: {
28
+ fontSize: 'xs',
29
+ fontWeight: 'semibold',
30
+ lineHeight: '1sm',
31
+ letterSpacing: 'normal',
32
+ height: '4'
33
+ },
34
+ md: {
35
+ fontSize: 'md',
36
+ fontWeight: 'regular',
37
+ lineHeight: 'md',
38
+ letterSpacing: 'normal',
39
+ height: '5'
40
+ }
41
+ }
42
+ },
43
+
44
+ compoundVariants: [
45
+ // Size
46
+ {
47
+ variant: 'solid',
48
+ size: 'md',
49
+ css: {
50
+ paddingX: '1.5',
51
+ paddingY: '0.5'
52
+ }
53
+ },
54
+ {
55
+ variant: 'solid',
56
+ size: 'sm',
57
+ css: {
58
+ paddingX: '1',
59
+ paddingY: '0.5'
60
+ }
61
+ },
62
+ {
63
+ variant: 'subtle',
64
+ size: 'md',
65
+ css: {
66
+ paddingX: '2',
67
+ paddingY: '0'
68
+ }
69
+ },
70
+ {
71
+ variant: 'subtle',
72
+ size: 'sm',
73
+ css: {
74
+ paddingX: '1',
75
+ paddingY: '0'
76
+ }
77
+ },
78
+
79
+ // Solid
80
+ {
81
+ variant: 'solid',
82
+ variantColor: 'blue',
83
+ css: {
84
+ backgroundColor: 'sky.400'
85
+ }
86
+ },
87
+ {
88
+ variant: 'solid',
89
+ variantColor: 'green',
90
+ css: {
91
+ backgroundColor: 'teal.400'
92
+ }
93
+ },
94
+ {
95
+ variant: 'solid',
96
+ variantColor: 'orange',
97
+ css: {
98
+ backgroundColor: 'amber.400'
99
+ }
100
+ },
101
+ {
102
+ variant: 'solid',
103
+ variantColor: 'red',
104
+ css: {
105
+ backgroundColor: 'rose.400'
106
+ }
107
+ },
108
+ {
109
+ variant: 'solid',
110
+ variantColor: 'gray',
111
+ css: {
112
+ backgroundColor: 'stone.400'
113
+ }
114
+ },
115
+
116
+ // Subtle
117
+ {
118
+ variant: ['subtle'],
119
+ variantColor: 'blue',
120
+ css: {
121
+ backgroundColor: 'blue.50',
122
+ color: 'blue.700'
123
+ }
124
+ },
125
+ {
126
+ variant: ['subtle'],
127
+ variantColor: 'green',
128
+ css: {
129
+ backgroundColor: 'green.50',
130
+ color: 'green.700'
131
+ }
132
+ },
133
+ {
134
+ variant: ['subtle'],
135
+ variantColor: 'orange',
136
+ css: {
137
+ backgroundColor: 'orange.50',
138
+ color: 'orange.700'
139
+ }
140
+ },
141
+ {
142
+ variant: ['subtle'],
143
+ variantColor: 'red',
144
+ css: {
145
+ backgroundColor: 'red.50',
146
+ color: 'red.700'
147
+ }
148
+ },
149
+ {
150
+ variant: ['subtle'],
151
+ variantColor: 'gray',
152
+ css: {
153
+ backgroundColor: 'gray.50',
154
+ color: 'black'
155
+ }
156
+ }
157
+ ],
158
+
159
+ defaultVariants: {
160
+ variant: 'solid',
161
+ size: 'md',
162
+ variantColor: 'blue'
163
+ }
164
+ })
165
+
166
+ export { badgeRecipe }
@@ -0,0 +1,143 @@
1
+ import { defineRecipe, defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const bannerSlotRecipe = defineSlotRecipe({
4
+ className: 'banner',
5
+ jsx: ['MpBanner', 'mp-banner'],
6
+ slots: ['root', 'body'],
7
+ base: {
8
+ root: {
9
+ display: 'flex',
10
+ position: 'relative',
11
+ alignItems: 'var(--mp-banner--align-items)',
12
+ borderRadius: 'md',
13
+ paddingY: 'var(--mp-banner--padding-y)',
14
+ paddingX: 'var(--mp-banner--padding-x)'
15
+ },
16
+ body: {
17
+ display: 'flex',
18
+ justifyContent: 'space-between',
19
+ alignItems: 'center',
20
+ width: 'full'
21
+ }
22
+ },
23
+ variants: {
24
+ variant: {
25
+ info: {
26
+ root: { backgroundColor: 'blue.50' }
27
+ },
28
+ success: {
29
+ root: { backgroundColor: 'green.50' }
30
+ },
31
+ danger: {
32
+ root: { backgroundColor: 'red.50' }
33
+ },
34
+ warning: {
35
+ root: { backgroundColor: 'orange.50' }
36
+ }
37
+ }
38
+ },
39
+ compoundVariants: [],
40
+ defaultVariants: {
41
+ variant: 'info'
42
+ }
43
+ })
44
+
45
+ const bannerTitleRecipe = defineRecipe({
46
+ className: 'banner-title',
47
+ jsx: ['MpBannerTitle', 'mp-banner-title'],
48
+ base: {
49
+ fontFamily: 'body',
50
+ fontSize: 'md',
51
+ fontWeight: 'semiBold',
52
+ lineHeight: 'md',
53
+ letterSpacing: 'normal',
54
+ color: 'dark',
55
+ marginTop: '0.5',
56
+ marginBottom: '1.5'
57
+ },
58
+ variants: {},
59
+ compoundVariants: [],
60
+ defaultVariants: {}
61
+ })
62
+
63
+ const bannerDescriptionRecipe = defineRecipe({
64
+ className: 'banner-description',
65
+ jsx: ['MpBannerDescription', 'mp-banner-description'],
66
+ base: {
67
+ fontFamily: 'body',
68
+ fontSize: 'md',
69
+ fontWeight: 'regular',
70
+ lineHeight: 'md',
71
+ letterSpacing: 'normal',
72
+ color: 'dark'
73
+ },
74
+ variants: {},
75
+ compoundVariants: [],
76
+ defaultVariants: {}
77
+ })
78
+
79
+ const bannerIconSlotRecipe = defineSlotRecipe({
80
+ className: 'banner-icon',
81
+ jsx: ['MpBannerIcon', 'mp-banner-icon'],
82
+ slots: ['root', 'custom'],
83
+ base: {
84
+ root: {
85
+ marginRight: '3'
86
+ },
87
+ custom: {
88
+ flexShrink: '0',
89
+ backfaceVisibility: 'hidden',
90
+ width: '6',
91
+ height: '6',
92
+ display: 'inline-block',
93
+ verticalAlign: 'middle',
94
+ marginRight: '3',
95
+ color: 'var(--mp-banner-icon--color)'
96
+ }
97
+ },
98
+ variants: {},
99
+ compoundVariants: [],
100
+ defaultVariants: {}
101
+ })
102
+
103
+ const bannerLinkRecipe = defineRecipe({
104
+ className: 'banner-link',
105
+ jsx: ['MpBannerLink', 'mp-banner-link'],
106
+ base: {
107
+ display: 'flex',
108
+ gap: '4',
109
+ marginBottom: 'var(--mp-banner-link--margin-bottom)',
110
+ marginTop: 'var(--mp-banner-link--margin-top)'
111
+ },
112
+ variants: {},
113
+ compoundVariants: [],
114
+ defaultVariants: {}
115
+ })
116
+
117
+ const bannerCloseButtonRecipe = defineRecipe({
118
+ className: 'banner-close-button',
119
+ jsx: ['MpBannerCloseButton', 'mp-banner-close-button'],
120
+ base: {
121
+ position: 'absolute',
122
+ top: 'var(--mp-banner-close-button--top)',
123
+ right: 'var(--mp-banner-close-button--right)',
124
+ display: 'inline-flex',
125
+ justifyContent: 'center',
126
+ alignItems: 'center',
127
+ width: '6',
128
+ height: '6',
129
+ cursor: 'pointer'
130
+ },
131
+ variants: {},
132
+ compoundVariants: [],
133
+ defaultVariants: {}
134
+ })
135
+
136
+ export {
137
+ bannerSlotRecipe,
138
+ bannerTitleRecipe,
139
+ bannerDescriptionRecipe,
140
+ bannerIconSlotRecipe,
141
+ bannerLinkRecipe,
142
+ bannerCloseButtonRecipe
143
+ }