@okshaun/components 1.0.2 → 2.0.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 (129) hide show
  1. package/dist/.mcp.json +2 -5
  2. package/dist/icon-metadata.json +5173 -0
  3. package/dist/index.js +17118 -9339
  4. package/dist/index.js.map +1 -1
  5. package/dist/panda.buildinfo.json +696 -0
  6. package/dist/playroom-static.css +187432 -0
  7. package/dist/{preset-DCCViEDs.js → preset-Df8i1OIQ.js} +3651 -2776
  8. package/dist/preset-Df8i1OIQ.js.map +1 -0
  9. package/dist/preset.js +1 -1
  10. package/dist/specs/color-palette.json +22 -1
  11. package/dist/specs/patterns.json +0 -16
  12. package/dist/specs/recipes.json +411 -239
  13. package/dist/specs/semantic-tokens.json +347 -146
  14. package/dist/specs/text-styles.json +72 -0
  15. package/dist/specs/tokens.json +267 -67
  16. package/dist/sprite.svg +1 -1
  17. package/dist/sprite.symbol.html +6662 -320
  18. package/dist/styles.css +36925 -5
  19. package/dist/svgs/calendar-lock.svg +1 -0
  20. package/dist/svgs/computer.svg +1 -0
  21. package/dist/svgs/cookie.svg +1 -0
  22. package/dist/svgs/folder-check.svg +1 -0
  23. package/dist/svgs/folder-copy.svg +1 -0
  24. package/dist/svgs/folder-dashed.svg +1 -0
  25. package/dist/svgs/folder-open.svg +1 -0
  26. package/dist/svgs/folder-topic.svg +1 -0
  27. package/dist/svgs/folder.svg +1 -0
  28. package/dist/svgs/mobile.svg +1 -0
  29. package/dist/svgs/numpad.svg +1 -0
  30. package/dist/svgs/phone.svg +1 -0
  31. package/dist/svgs/qr-code.svg +1 -0
  32. package/dist/svgs/sparkle.svg +1 -0
  33. package/dist/svgs/trolley.svg +1 -0
  34. package/dist/types/index.d.ts +837 -337
  35. package/package.json +49 -24
  36. package/src/recipes/avatar.ts +98 -98
  37. package/src/recipes/badge.ts +22 -39
  38. package/src/recipes/box.ts +1 -7
  39. package/src/recipes/breadcrumbs.ts +42 -25
  40. package/src/recipes/button.ts +201 -105
  41. package/src/recipes/card.ts +5 -1
  42. package/src/recipes/checkbox.ts +23 -24
  43. package/src/recipes/checkboxInput.ts +25 -0
  44. package/src/recipes/chip.ts +35 -37
  45. package/src/recipes/code.ts +4 -4
  46. package/src/recipes/datePicker.ts +212 -0
  47. package/src/recipes/divider.ts +38 -32
  48. package/src/recipes/formField.ts +41 -23
  49. package/src/recipes/highlightText.ts +14 -0
  50. package/src/recipes/icon.ts +13 -0
  51. package/src/recipes/list.ts +14 -0
  52. package/src/recipes/listItem.ts +310 -0
  53. package/src/recipes/listItemGroup.ts +62 -0
  54. package/src/recipes/menu.ts +90 -163
  55. package/src/recipes/modal.ts +55 -25
  56. package/src/recipes/radio.ts +29 -20
  57. package/src/recipes/radioInput.ts +25 -0
  58. package/src/recipes/recipes-regular.ts +14 -0
  59. package/src/recipes/recipes-slot.ts +19 -0
  60. package/src/recipes/select.ts +1 -1
  61. package/src/recipes/spinner.ts +49 -23
  62. package/src/recipes/tag.ts +80 -84
  63. package/src/recipes/text.ts +18 -10
  64. package/src/recipes/textInput.ts +205 -0
  65. package/src/recipes/textarea.ts +65 -138
  66. package/src/recipes/themeSwitcher.ts +3 -3
  67. package/src/recipes/timePicker.ts +199 -0
  68. package/src/recipes/toggle.ts +72 -99
  69. package/src/recipes/toggleInput.ts +26 -0
  70. package/src/recipes/tooltip.ts +52 -343
  71. package/src/styles/index.css +1 -1
  72. package/src/styles/primitives/borders.ts +7 -1
  73. package/src/styles/primitives/colors.ts +51 -0
  74. package/src/styles/primitives/fontSizes.ts +1 -0
  75. package/src/styles/primitives/index.ts +2 -1
  76. package/src/styles/primitives/shadows.ts +28 -37
  77. package/src/styles/primitives/sizes.ts +1 -0
  78. package/src/styles/primitives/zIndex.ts +17 -0
  79. package/src/styles/semantics/colors.ts +137 -82
  80. package/src/styles/semantics/index.ts +1 -0
  81. package/src/styles/semantics/shadows.ts +27 -16
  82. package/src/styles/semantics/zIndex.ts +18 -0
  83. package/src/styles/utilities/breakpoints.ts +6 -6
  84. package/src/styles/utilities/index.ts +3 -0
  85. package/src/styles/utilities/textStyles.ts +70 -0
  86. package/src/utils/splitProps.ts +3 -3
  87. package/dist/preset-DCCViEDs.js.map +0 -1
  88. package/dist/styles/global.css +0 -148
  89. package/dist/styles/recipes/avatar.css +0 -185
  90. package/dist/styles/recipes/badge.css +0 -85
  91. package/dist/styles/recipes/breadcrumbs.css +0 -38
  92. package/dist/styles/recipes/button.css +0 -195
  93. package/dist/styles/recipes/card.css +0 -57
  94. package/dist/styles/recipes/checkbox-input.css +0 -12
  95. package/dist/styles/recipes/checkbox.css +0 -90
  96. package/dist/styles/recipes/chip.css +0 -137
  97. package/dist/styles/recipes/code.css +0 -12
  98. package/dist/styles/recipes/divider.css +0 -40
  99. package/dist/styles/recipes/form-field.css +0 -39
  100. package/dist/styles/recipes/heading.css +0 -40
  101. package/dist/styles/recipes/icon-button.css +0 -181
  102. package/dist/styles/recipes/label.css +0 -14
  103. package/dist/styles/recipes/link.css +0 -49
  104. package/dist/styles/recipes/menu.css +0 -141
  105. package/dist/styles/recipes/modal.css +0 -99
  106. package/dist/styles/recipes/pre.css +0 -16
  107. package/dist/styles/recipes/radio-input.css +0 -7
  108. package/dist/styles/recipes/radio.css +0 -82
  109. package/dist/styles/recipes/select.css +0 -103
  110. package/dist/styles/recipes/spinner.css +0 -36
  111. package/dist/styles/recipes/tag.css +0 -27
  112. package/dist/styles/recipes/text.css +0 -46
  113. package/dist/styles/recipes/textarea.css +0 -91
  114. package/dist/styles/recipes/textinput.css +0 -87
  115. package/dist/styles/recipes/theme-switcher.css +0 -53
  116. package/dist/styles/recipes/toggle-input.css +0 -12
  117. package/dist/styles/recipes/toggle.css +0 -125
  118. package/dist/styles/recipes/tooltip.css +0 -133
  119. package/dist/styles/recipes.css +0 -30
  120. package/dist/styles/reset.css +0 -1
  121. package/dist/styles/tokens.css +0 -1016
  122. package/dist/styles/utilities.css +0 -1694
  123. package/src/recipes/checkboxinput.ts +0 -15
  124. package/src/recipes/index.ts +0 -28
  125. package/src/recipes/radioinput.ts +0 -12
  126. package/src/recipes/textinput.ts +0 -100
  127. package/src/recipes/toggleinput.ts +0 -16
  128. package/src/utils/injectSprite.ts +0 -36
  129. package/src/utils/spriteContent.ts +0 -4
@@ -19,24 +19,16 @@ const chipBase = {
19
19
  transitionTimingFunction: 'default',
20
20
  userSelect: 'none',
21
21
  border: 'none',
22
- outlineWidth: 2,
22
+ outlineWidth: '2',
23
23
  outlineStyle: 'solid',
24
24
  outlineColor: 'transparent',
25
25
  bg: 'bg.neutral',
26
26
  color: 'text',
27
- icon: {
28
- fill: 'icon.decorative',
29
- transitionDuration: 'fast',
30
- transitionProperty: 'fill',
31
- transitionTimingFunction: 'default',
32
- },
33
27
  _hover: {
34
28
  bg: 'bg.neutral.hovered',
35
- icon: { fill: 'icon.decorative.hovered' },
36
29
  },
37
30
  _active: {
38
31
  bg: 'bg.neutral.pressed',
39
- icon: { fill: 'icon.decorative.hovered' },
40
32
  },
41
33
  _focusVisible: {
42
34
  outlineColor: 'border.focused',
@@ -48,72 +40,78 @@ const chipBase = {
48
40
  _deleted: {
49
41
  textDecoration: 'line-through',
50
42
  cursor: 'not-allowed',
51
- opacity: 0.6,
43
+ opacity: '[0.6]',
52
44
  },
53
45
  _disabled: {
54
46
  cursor: 'not-allowed',
55
47
  bg: 'bg.disabled',
56
48
  color: 'text.disabled',
57
49
  borderColor: 'border.disabled',
58
- icon: { fill: 'icon.disabled' },
59
50
  _hover: {
60
51
  bg: 'bg.disabled',
61
52
  color: 'text.disabled',
62
53
  borderColor: 'border.disabled',
63
- icon: { fill: 'icon.disabled' },
64
54
  },
65
55
  },
66
56
  _selected: {
67
- bg: 'bg.brand.boldest',
57
+ bg: 'bg.neutral.boldest',
68
58
  color: 'text.inverse',
69
- icon: { fill: 'icon.decorative.inverse' },
70
59
  _hover: {
71
- bg: 'bg.brand.boldest.hovered',
72
- icon: { fill: 'icon.inverse' },
60
+ bg: 'bg.neutral.bold.hovered',
73
61
  },
74
62
  _active: {
75
- bg: 'bg.brand.boldest.pressed',
76
- icon: { fill: 'icon.inverse' },
63
+ bg: 'bg.neutral.bold.pressed',
77
64
  },
78
65
  },
79
66
  },
80
- icon: {
67
+ chipIcon: {
68
+ fill: 'icon.decorative',
81
69
  aspectRatio: 'square',
82
70
  transitionDuration: 'fast',
83
71
  transitionProperty: 'fill',
84
72
  transitionTimingFunction: 'default',
73
+ _groupHover: { fill: 'icon.decorative.hovered' },
74
+ _groupActive: { fill: 'icon.decorative.hovered' },
75
+ _groupDisabled: { fill: 'icon.decorative' },
76
+
77
+ '[data-selected=true] &': {
78
+ fill: 'icon.decorative.inverse',
79
+ },
80
+ '.group:is(:hover, [data-hover])[data-selected=true] &': {
81
+ fill: 'icon.decorative.inverse.hovered',
82
+ },
85
83
  },
86
84
  };
87
85
 
88
86
  export const chipRecipe = defineSlotRecipe({
89
87
  className: 'chip',
90
88
  jsx: ['Chip'],
91
- slots: ['container', 'icon'],
89
+ slots: ['container', 'chipIcon'],
92
90
  base: chipBase,
93
91
  variants: {
94
92
  size: {
95
- md: {
93
+ sm: {
96
94
  container: {
97
- gap: '4',
98
- h: '24',
99
- px: '8',
100
- py: '1',
95
+ gap: '2',
96
+ h: '20',
97
+ px: '6',
98
+ py: '0',
101
99
  fontSize: '14',
102
100
  },
103
- icon: {
101
+ chipIcon: {
104
102
  w: '20',
105
103
  h: '20',
106
104
  },
107
105
  },
108
- sm: {
106
+ md: {
109
107
  container: {
110
- gap: '2',
111
- h: '20',
112
- px: '6',
113
- py: '0',
108
+ gap: '4',
109
+ h: '24',
110
+ px: '8',
111
+ py: '1',
114
112
  fontSize: '14',
115
113
  },
116
- icon: {
114
+ chipIcon: {
117
115
  w: '20',
118
116
  h: '20',
119
117
  },
@@ -126,7 +124,7 @@ export const chipRecipe = defineSlotRecipe({
126
124
  py: '4',
127
125
  fontSize: '16',
128
126
  },
129
- icon: {
127
+ chipIcon: {
130
128
  w: '24',
131
129
  h: '24',
132
130
  },
@@ -141,28 +139,28 @@ export const chipRecipe = defineSlotRecipe({
141
139
  },
142
140
  compoundVariants: [
143
141
  {
144
- size: 'md',
142
+ size: 'sm',
145
143
  before: true,
146
144
  css: {
147
145
  container: { ps: '2' },
148
146
  },
149
147
  },
150
148
  {
151
- size: 'md',
149
+ size: 'sm',
152
150
  after: true,
153
151
  css: {
154
152
  container: { pe: '2' },
155
153
  },
156
154
  },
157
155
  {
158
- size: 'sm',
156
+ size: 'md',
159
157
  before: true,
160
158
  css: {
161
159
  container: { ps: '2' },
162
160
  },
163
161
  },
164
162
  {
165
- size: 'sm',
163
+ size: 'md',
166
164
  after: true,
167
165
  css: {
168
166
  container: { pe: '2' },
@@ -1,7 +1,7 @@
1
1
  import { defineRecipe } from '@pandacss/dev';
2
2
 
3
3
  const codeBase = {
4
- bg: 'gray.80',
4
+ bg: 'bg.neutral.inverse',
5
5
  position: 'relative',
6
6
  overflow: 'auto',
7
7
  p: '4',
@@ -13,9 +13,9 @@ const preBase = {
13
13
  borderRadius: '8',
14
14
  overflow: 'hidden',
15
15
  borderWidth: '0',
16
- borderColor: 'gray.60',
17
- bg: 'gray.80',
18
- color: 'gray.10',
16
+ borderColor: 'border',
17
+ bg: 'bg.neutral.inverse',
18
+ color: 'text.inverse.subtlest',
19
19
  px: '16',
20
20
  py: '8',
21
21
  my: '8',
@@ -0,0 +1,212 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev';
2
+
3
+ const datePickerBase = {
4
+ root: {
5
+ display: 'inline-flex',
6
+ flexDirection: 'column',
7
+ position: 'relative',
8
+ },
9
+ input: {
10
+ display: 'inline-flex',
11
+ alignItems: 'center',
12
+ gap: '2',
13
+ width: 'full',
14
+ borderWidth: '1',
15
+ borderStyle: 'solid',
16
+ borderColor: 'border.input',
17
+ borderRadius: '4',
18
+ outlineWidth: '2',
19
+ outlineOffset: '-1',
20
+ outlineStyle: 'solid',
21
+ outlineColor: 'transparent',
22
+ bg: 'bg.input',
23
+ color: 'text',
24
+ fontFamily: 'mono',
25
+ lineHeight: 'default',
26
+ cursor: 'text',
27
+ userSelect: 'none',
28
+ transitionDuration: 'fast',
29
+ transitionProperty: 'background, border-color, outline-color',
30
+ transitionTimingFunction: 'default',
31
+ _focusWithin: {
32
+ bg: 'bg.input.pressed',
33
+ borderColor: 'border.focused',
34
+ outlineColor: 'border.focused',
35
+ },
36
+ _open: {
37
+ bg: 'bg.input.pressed',
38
+ borderColor: 'border.focused',
39
+ outlineColor: 'border.focused',
40
+ },
41
+ _disabled: {
42
+ bg: 'bg.disabled',
43
+ borderColor: 'border.disabled',
44
+ color: 'text.disabled',
45
+ cursor: 'not-allowed',
46
+ pointerEvents: 'none',
47
+ },
48
+ _error: {
49
+ bg: 'bg.danger',
50
+ borderColor: 'border.danger',
51
+ color: 'text.danger',
52
+ _hover: {
53
+ bg: 'bg.danger.hovered',
54
+ borderColor: 'border.danger',
55
+ },
56
+ _focusWithin: {
57
+ bg: 'bg.danger',
58
+ borderColor: 'border.danger',
59
+ outlineColor: 'border.danger',
60
+ },
61
+ _open: {
62
+ bg: 'bg.danger',
63
+ borderColor: 'border.danger',
64
+ outlineColor: 'border.danger',
65
+ },
66
+ },
67
+ },
68
+ segment: {
69
+ display: 'inline-flex',
70
+ alignItems: 'center',
71
+ justifyContent: 'center',
72
+ outline: 'none',
73
+ borderRadius: '{sizes.2}',
74
+ cursor: 'default',
75
+ userSelect: 'none',
76
+ fontFamily: 'mono',
77
+ fontVariantsProperty: 'mono',
78
+ fontVariantNumeric: 'tabular-nums',
79
+ minWidth: '{sizes.24}',
80
+ textAlign: 'center',
81
+ color: 'text',
82
+ _focusVisible: {
83
+ bg: 'bg.neutral.hovered',
84
+ },
85
+ _groupDisabled: {
86
+ color: 'text.disabled',
87
+ },
88
+ },
89
+ separator: {
90
+ color: 'text.placeholder',
91
+ userSelect: 'none',
92
+ display: 'inline-flex',
93
+ alignItems: 'center',
94
+ },
95
+ popover: {
96
+ display: 'flex',
97
+ flexDirection: 'column',
98
+ bg: 'surface.overlay',
99
+ borderWidth: '1',
100
+ borderStyle: 'solid',
101
+ borderColor: 'border',
102
+ borderRadius: '8',
103
+ boxShadow: 'overlay',
104
+ zIndex: '1000',
105
+ width: '280',
106
+ overflow: 'hidden',
107
+ outline: 'none',
108
+ },
109
+ calendarHeader: {
110
+ fontFamily: 'mono',
111
+ display: 'flex',
112
+ alignItems: 'center',
113
+ justifyContent: 'space-between',
114
+ px: '8',
115
+ py: '8',
116
+ borderBottom: 'default',
117
+ gap: '4',
118
+ },
119
+ calendarGrid: {
120
+ display: 'grid',
121
+ gridTemplateColumns: 'repeat(7, 1fr)',
122
+ gap: '2',
123
+ px: '8',
124
+ py: '4',
125
+ pb: '8',
126
+ },
127
+ weekdayLabel: {
128
+ display: 'flex',
129
+ alignItems: 'center',
130
+ justifyContent: 'center',
131
+ userSelect: 'none',
132
+ },
133
+ day: {
134
+ alignItems: 'center',
135
+ justifyContent: 'center',
136
+ fontFamily: 'mono',
137
+ width: '32',
138
+ height: '32',
139
+ _today: {
140
+ fontWeight: 'bold',
141
+ color: 'text.selected',
142
+ bg: 'bg.selected',
143
+ },
144
+ _selected: {
145
+ bg: 'bg.selected.bold',
146
+ color: 'text.inverse',
147
+ _hover: {
148
+ bg: 'bg.selected.bold.hovered',
149
+ },
150
+ _today: {
151
+ bg: 'bg.selected.bold',
152
+ color: 'text.inverse',
153
+ },
154
+ },
155
+ _unavailable: {
156
+ color: 'text.disabled',
157
+ cursor: 'not-allowed',
158
+ pointerEvents: 'none',
159
+ _hover: {
160
+ bg: 'transparent',
161
+ },
162
+ },
163
+ },
164
+ };
165
+
166
+ const datePickerVariants = {
167
+ size: {
168
+ sm: {
169
+ input: {
170
+ py: '0',
171
+ px: '8',
172
+ fontSize: '14',
173
+ },
174
+ },
175
+ md: {
176
+ input: {
177
+ py: '3',
178
+ px: '10',
179
+ fontSize: '16',
180
+ },
181
+ },
182
+ lg: {
183
+ input: {
184
+ py: '7',
185
+ px: '12',
186
+ fontSize: '16',
187
+ },
188
+ },
189
+ },
190
+ };
191
+
192
+ export const datePickerRecipe = defineSlotRecipe({
193
+ className: 'datePicker',
194
+ jsx: ['DatePicker', 'DateRangePicker'],
195
+ slots: [
196
+ 'root',
197
+ 'input',
198
+ 'segment',
199
+ 'separator',
200
+ 'popover',
201
+ 'calendarHeader',
202
+ 'navButton',
203
+ 'calendarGrid',
204
+ 'weekdayLabel',
205
+ 'day',
206
+ ],
207
+ base: datePickerBase,
208
+ variants: datePickerVariants,
209
+ defaultVariants: {
210
+ size: 'md',
211
+ },
212
+ });
@@ -1,40 +1,46 @@
1
1
  import { defineRecipe } from '@pandacss/dev';
2
2
 
3
- const dividerBase = {
4
- '--divider-weight': 'sizes.1',
5
- borderStyle: 'solid',
6
- color: 'border.default',
7
- borderColor: 'current',
8
- minWidth: '1',
9
- minHeight: '1',
10
- };
11
-
12
- const dividerVariants = {
13
- direction: {
14
- horizontal: {
15
- width: 'stretch',
16
- borderTopStyle: 'solid',
17
- borderTopWidth: 'var(--divider-weight)',
18
- },
19
- vertical: {
20
- height: 'stretch',
21
- borderLeftStyle: 'solid',
22
- borderLeftWidth: 'var(--divider-weight)',
23
- },
24
- },
25
- weight: {
26
- thin: { '--divider-weight': 'sizes.1' },
27
- medium: { '--divider-weight': 'sizes.2' },
28
- thick: { '--divider-weight': 'sizes.4' },
29
- thicker: { '--divider-weight': 'sizes.6' },
30
- },
31
- };
32
-
33
3
  export const dividerRecipe = defineRecipe({
34
4
  className: 'divider',
35
5
  jsx: ['Divider'],
36
- base: dividerBase,
37
- variants: dividerVariants,
6
+ base: {
7
+ borderStyle: 'solid',
8
+ color: 'border',
9
+ borderColor: 'current',
10
+ borderWidth: '0',
11
+ minWidth: '1',
12
+ minHeight: '1',
13
+ },
14
+ variants: {
15
+ direction: {
16
+ horizontal: {
17
+ width: 'stretch',
18
+ borderTopWidth: '{sizes.1}',
19
+ },
20
+ vertical: {
21
+ height: 'stretch',
22
+ borderLeftWidth: '{sizes.1}',
23
+ },
24
+ },
25
+ weight: {
26
+ thin: {
27
+ borderTopWidth: '{sizes.1}',
28
+ borderLeftWidth: '{sizes.1}',
29
+ },
30
+ medium: {
31
+ borderTopWidth: '{sizes.2}',
32
+ borderLeftWidth: '{sizes.2}',
33
+ },
34
+ thick: {
35
+ borderTopWidth: '{sizes.4}',
36
+ borderLeftWidth: '{sizes.4}',
37
+ },
38
+ thicker: {
39
+ borderTopWidth: '{sizes.6}',
40
+ borderLeftWidth: '{sizes.6}',
41
+ },
42
+ },
43
+ },
38
44
  defaultVariants: {
39
45
  direction: 'horizontal',
40
46
  weight: 'thin',
@@ -1,60 +1,78 @@
1
1
  import { defineSlotRecipe } from '@pandacss/dev';
2
2
 
3
3
  const formFieldBase = {
4
- formFieldContainer: {
4
+ container: {
5
5
  _disabled: {
6
- // opacity: '0.4',
6
+ opacity: '0.4',
7
7
  pointerEvents: 'none',
8
- labelWrapper: {
9
- '& p': {
10
- color: 'text.disabled',
11
- },
12
- },
13
8
  },
14
9
  },
15
- contentWrapper: {
10
+ inputs: {
16
11
  display: 'flex',
17
12
  flexDirection: 'column',
18
- gap: '6',
13
+ gap: '2',
19
14
  },
20
15
  labelWrapper: {
21
- '& p': {
22
- color: 'text',
23
- },
24
- },
25
- headLabel: {
26
- display: 'flex',
27
- gap: '4',
16
+ alignItems: 'center',
17
+ gap: '2',
28
18
  },
29
19
  };
30
20
 
31
21
  const formFieldVariants = {
32
22
  layout: {
33
23
  default: {
34
- formFieldContainer: {
24
+ container: {
35
25
  display: 'flex',
36
26
  flexDirection: 'column',
37
- gap: '6',
27
+ gap: '2',
38
28
  },
39
29
  },
40
30
  inline: {
41
- formFieldContainer: {
31
+ container: {
42
32
  display: 'grid',
43
- gap: '12',
33
+ columnGap: '12',
34
+ rowGap: '2',
44
35
  gridTemplateColumns: 'auto 1fr',
36
+ gridTemplateRows: 'auto auto',
45
37
  alignItems: 'start',
46
38
  },
47
39
  },
48
40
  },
41
+ size: {
42
+ sm: {
43
+ labelWrapper: {
44
+ '& [class=*-label]': {
45
+ fontSize: '14',
46
+ lineHeight: 'tight',
47
+ },
48
+ },
49
+ },
50
+ md: {
51
+ labelWrapper: {
52
+ pt: '6',
53
+ },
54
+ },
55
+ lg: {
56
+ labelWrapper: {
57
+ pt: '10',
58
+ },
59
+ },
60
+ xl: {
61
+ labelWrapper: {
62
+ pt: '12',
63
+ },
64
+ },
65
+ },
49
66
  };
50
67
 
51
68
  export const formFieldRecipe = defineSlotRecipe({
52
- className: 'formfield',
53
- jsx: ['Formfield'],
54
- slots: ['formFieldContainer', 'contentWrapper', 'labelWrapper', 'headLabel'],
69
+ className: 'formField',
70
+ jsx: ['FormField'],
71
+ slots: ['container', 'inputs', 'labelWrapper'],
55
72
  base: formFieldBase,
56
73
  variants: formFieldVariants,
57
74
  defaultVariants: {
58
75
  layout: 'default',
76
+ size: 'md',
59
77
  },
60
78
  });
@@ -0,0 +1,14 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ export const highlightTextRecipe = defineRecipe({
4
+ className: 'highlightText',
5
+ jsx: ['HighlightText'],
6
+ base: {
7
+ bg: { base: 'orange.40/40', _dark: 'orange.60/40' },
8
+ color: 'text',
9
+ borderRadius: '2',
10
+ lineHeight: 'inherit',
11
+ mixBlendMode: { base: 'multiply', _dark: 'lighten' },
12
+ },
13
+ variants: {},
14
+ });
@@ -0,0 +1,13 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ const iconBase = {
4
+ w: '24',
5
+ aspectRatio: 'square',
6
+ fill: 'icon.decorative',
7
+ };
8
+
9
+ export const iconRecipe = defineRecipe({
10
+ className: 'icon',
11
+ jsx: ['Icon'],
12
+ base: iconBase,
13
+ });
@@ -0,0 +1,14 @@
1
+ import { defineRecipe } from '@pandacss/dev';
2
+
3
+ export const listRecipe = defineRecipe({
4
+ className: 'list',
5
+ jsx: ['List'],
6
+ base: {
7
+ display: 'flex',
8
+ flexDirection: 'column',
9
+ alignItems: 'start',
10
+ justifyContent: 'start',
11
+ gap: '0',
12
+ },
13
+ variants: {},
14
+ });