@saas-ui/react 3.0.0-next.44 → 3.0.0-next.48

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 (223) hide show
  1. package/dist/.tsbuildinfo.json +1 -1
  2. package/dist/colors.d.ts +1 -1
  3. package/dist/colors.js +1 -1
  4. package/dist/components/command/command.d.ts +1 -1
  5. package/dist/components/grid-list/grid-list.d.ts +1 -1
  6. package/dist/components/persona/persona-composed.d.ts +1 -1
  7. package/dist/components/persona/persona.d.ts +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/preset.d.ts +1 -3
  10. package/dist/preset.js +1 -10
  11. package/package.json +4 -3
  12. package/dist/components/accordion/accordion.recipe.d.ts +0 -84
  13. package/dist/components/accordion/accordion.recipe.js +0 -148
  14. package/dist/components/action-bar/action-bar.recipe.d.ts +0 -1
  15. package/dist/components/action-bar/action-bar.recipe.js +0 -56
  16. package/dist/components/alert/alert.recipe.d.ts +0 -120
  17. package/dist/components/alert/alert.recipe.js +0 -149
  18. package/dist/components/app-shell/app-shell.recipe.d.ts +0 -13
  19. package/dist/components/app-shell/app-shell.recipe.js +0 -41
  20. package/dist/components/avatar/avatar.recipe.d.ts +0 -88
  21. package/dist/components/avatar/avatar.recipe.js +0 -129
  22. package/dist/components/badge/badge.recipe.d.ts +0 -48
  23. package/dist/components/badge/badge.recipe.js +0 -66
  24. package/dist/components/blockquote/blockquote.recipe.d.ts +0 -52
  25. package/dist/components/blockquote/blockquote.recipe.js +0 -77
  26. package/dist/components/breadcrumb/breadcrumb.recipe.d.ts +0 -46
  27. package/dist/components/breadcrumb/breadcrumb.recipe.js +0 -90
  28. package/dist/components/button/button.recipe.d.ts +0 -141
  29. package/dist/components/button/button.recipe.js +0 -185
  30. package/dist/components/card/card.recipe.d.ts +0 -78
  31. package/dist/components/card/card.recipe.js +0 -133
  32. package/dist/components/checkbox/checkbox.recipe.d.ts +0 -80
  33. package/dist/components/checkbox/checkbox.recipe.js +0 -64
  34. package/dist/components/checkbox-card/checkbox-card.recipe.d.ts +0 -188
  35. package/dist/components/checkbox-card/checkbox-card.recipe.js +0 -202
  36. package/dist/components/checkmark/checkmark.recipe.d.ts +0 -54
  37. package/dist/components/checkmark/checkmark.recipe.js +0 -80
  38. package/dist/components/code/code.recipe.d.ts +0 -48
  39. package/dist/components/code/code.recipe.js +0 -14
  40. package/dist/components/collapsible/collapsible.recipe.d.ts +0 -1
  41. package/dist/components/collapsible/collapsible.recipe.js +0 -19
  42. package/dist/components/combobox/combobox.recipe.d.ts +0 -144
  43. package/dist/components/combobox/combobox.recipe.js +0 -292
  44. package/dist/components/command/command.recipe.d.ts +0 -15
  45. package/dist/components/command/command.recipe.js +0 -34
  46. package/dist/components/container/container.recipe.d.ts +0 -14
  47. package/dist/components/container/container.recipe.js +0 -25
  48. package/dist/components/data-list/data-list.recipe.d.ts +0 -55
  49. package/dist/components/data-list/data-list.recipe.js +0 -78
  50. package/dist/components/dialog/dialog.recipe.d.ts +0 -166
  51. package/dist/components/dialog/dialog.recipe.js +0 -256
  52. package/dist/components/drawer/drawer.recipe.d.ts +0 -113
  53. package/dist/components/drawer/drawer.recipe.js +0 -202
  54. package/dist/components/editable/editable.recipe.d.ts +0 -37
  55. package/dist/components/editable/editable.recipe.js +0 -89
  56. package/dist/components/empty-state/empty-state.recipe.d.ts +0 -83
  57. package/dist/components/empty-state/empty-state.recipe.js +0 -137
  58. package/dist/components/field/field.recipe.d.ts +0 -29
  59. package/dist/components/field/field.recipe.js +0 -74
  60. package/dist/components/fieldset/fieldset.recipe.d.ts +0 -37
  61. package/dist/components/fieldset/fieldset.recipe.js +0 -59
  62. package/dist/components/file-upload/file-upload.recipe.d.ts +0 -1
  63. package/dist/components/file-upload/file-upload.recipe.js +0 -90
  64. package/dist/components/grid-list/grid-list.recipe.d.ts +0 -60
  65. package/dist/components/grid-list/grid-list.recipe.js +0 -131
  66. package/dist/components/heading/heading.recipe.d.ts +0 -59
  67. package/dist/components/heading/heading.recipe.js +0 -70
  68. package/dist/components/hover-card/hover-card.recipe.d.ts +0 -28
  69. package/dist/components/hover-card/hover-card.recipe.js +0 -70
  70. package/dist/components/icon/icon.recipe.d.ts +0 -25
  71. package/dist/components/icon/icon.recipe.js +0 -27
  72. package/dist/components/icon-badge/icon-badge.recipe.d.ts +0 -43
  73. package/dist/components/icon-badge/icon-badge.recipe.js +0 -57
  74. package/dist/components/input/input.recipe.d.ts +0 -66
  75. package/dist/components/input/input.recipe.js +0 -93
  76. package/dist/components/input-addon/input-addon.recipe.d.ts +0 -56
  77. package/dist/components/input-addon/input-addon.recipe.js +0 -36
  78. package/dist/components/kbd/kbd.recipe.d.ts +0 -36
  79. package/dist/components/kbd/kbd.recipe.js +0 -56
  80. package/dist/components/link/link.recipe.d.ts +0 -18
  81. package/dist/components/link/link.recipe.js +0 -34
  82. package/dist/components/list/list.recipe.d.ts +0 -38
  83. package/dist/components/list/list.recipe.js +0 -62
  84. package/dist/components/loading-overlay/loading-overlay.recipe.d.ts +0 -26
  85. package/dist/components/loading-overlay/loading-overlay.recipe.js +0 -51
  86. package/dist/components/mark/mark.recipe.d.ts +0 -16
  87. package/dist/components/mark/mark.recipe.js +0 -25
  88. package/dist/components/menu/menu.recipe.d.ts +0 -58
  89. package/dist/components/menu/menu.recipe.js +0 -133
  90. package/dist/components/native-select/native-select.recipe.d.ts +0 -90
  91. package/dist/components/native-select/native-select.recipe.js +0 -134
  92. package/dist/components/navbar/navbar.recipe.d.ts +0 -46
  93. package/dist/components/navbar/navbar.recipe.js +0 -124
  94. package/dist/components/number-input/number-input.recipe.d.ts +0 -144
  95. package/dist/components/number-input/number-input.recipe.js +0 -111
  96. package/dist/components/page/page.recipe.d.ts +0 -61
  97. package/dist/components/page/page.recipe.js +0 -99
  98. package/dist/components/persona/persona.recipe.d.ts +0 -104
  99. package/dist/components/persona/persona.recipe.js +0 -106
  100. package/dist/components/pin-input/pin-input.recipe.d.ts +0 -236
  101. package/dist/components/pin-input/pin-input.recipe.js +0 -32
  102. package/dist/components/popover/popover.recipe.d.ts +0 -24
  103. package/dist/components/popover/popover.recipe.js +0 -84
  104. package/dist/components/progress/progress.recipe.d.ts +0 -82
  105. package/dist/components/progress/progress.recipe.js +0 -121
  106. package/dist/components/progress-circle/progress-circle.recipe.d.ts +0 -49
  107. package/dist/components/progress-circle/progress-circle.recipe.js +0 -91
  108. package/dist/components/radio/radiomark.recipe.d.ts +0 -56
  109. package/dist/components/radio/radiomark.recipe.js +0 -95
  110. package/dist/components/radio-card/radio-card.recipe.d.ts +0 -191
  111. package/dist/components/radio-card/radio-card.recipe.js +0 -209
  112. package/dist/components/radio-group/radio-group.recipe.d.ts +0 -77
  113. package/dist/components/radio-group/radio-group.recipe.js +0 -61
  114. package/dist/components/rating-group/rating-group.recipe.d.ts +0 -24
  115. package/dist/components/rating-group/rating-group.recipe.js +0 -83
  116. package/dist/components/section/section.recipe.d.ts +0 -27
  117. package/dist/components/section/section.recipe.js +0 -63
  118. package/dist/components/segmented-control/segment-group.recipe.d.ts +0 -48
  119. package/dist/components/segmented-control/segment-group.recipe.js +0 -127
  120. package/dist/components/select/select.recipe.d.ts +0 -155
  121. package/dist/components/select/select.recipe.js +0 -285
  122. package/dist/components/separator/separator.recipe.d.ts +0 -37
  123. package/dist/components/separator/separator.recipe.js +0 -50
  124. package/dist/components/sidebar/sidebar-nav-item.recipe.d.ts +0 -67
  125. package/dist/components/sidebar/sidebar-nav-item.recipe.js +0 -118
  126. package/dist/components/sidebar/sidebar.recipe.d.ts +0 -108
  127. package/dist/components/sidebar/sidebar.recipe.js +0 -280
  128. package/dist/components/skeleton/skeleton.recipe.d.ts +0 -41
  129. package/dist/components/skeleton/skeleton.recipe.js +0 -50
  130. package/dist/components/skip-nav-link/skip-nav-link.recipe.d.ts +0 -1
  131. package/dist/components/skip-nav-link/skip-nav-link.recipe.js +0 -31
  132. package/dist/components/slider/slider.recipe.d.ts +0 -101
  133. package/dist/components/slider/slider.recipe.js +0 -175
  134. package/dist/components/spinner/spinner.recipe.d.ts +0 -22
  135. package/dist/components/spinner/spinner.recipe.js +0 -31
  136. package/dist/components/stat/stat.recipe.d.ts +0 -19
  137. package/dist/components/stat/stat.recipe.js +0 -76
  138. package/dist/components/status/status.recipe.d.ts +0 -19
  139. package/dist/components/status/status.recipe.js +0 -44
  140. package/dist/components/steps/steps.recipe.d.ts +0 -142
  141. package/dist/components/steps/steps.recipe.js +0 -213
  142. package/dist/components/switch/switch.recipe.d.ts +0 -77
  143. package/dist/components/switch/switch.recipe.js +0 -157
  144. package/dist/components/table/table.recipe.d.ts +0 -121
  145. package/dist/components/table/table.recipe.js +0 -161
  146. package/dist/components/tabs/tabs.recipe.d.ts +0 -263
  147. package/dist/components/tabs/tabs.recipe.js +0 -332
  148. package/dist/components/tag/tag.recipe.d.ts +0 -95
  149. package/dist/components/tag/tag.recipe.js +0 -154
  150. package/dist/components/textarea/textarea.recipe.d.ts +0 -65
  151. package/dist/components/textarea/textarea.recipe.js +0 -90
  152. package/dist/components/timeline/timeline.recipe.d.ts +0 -62
  153. package/dist/components/timeline/timeline.recipe.js +0 -134
  154. package/dist/components/toaster/toast.recipe.d.ts +0 -1
  155. package/dist/components/toaster/toast.recipe.js +0 -90
  156. package/dist/components/tooltip/tooltip.recipe.d.ts +0 -10
  157. package/dist/components/tooltip/tooltip.recipe.js +0 -52
  158. package/dist/theme/animation-styles.d.ts +0 -1
  159. package/dist/theme/animation-styles.js +0 -49
  160. package/dist/theme/breakpoints.d.ts +0 -10
  161. package/dist/theme/breakpoints.js +0 -8
  162. package/dist/theme/conditions.d.ts +0 -18
  163. package/dist/theme/conditions.js +0 -19
  164. package/dist/theme/fluid-font-sizes.d.ts +0 -0
  165. package/dist/theme/fluid-font-sizes.js +0 -61
  166. package/dist/theme/global-css.d.ts +0 -1
  167. package/dist/theme/global-css.js +0 -56
  168. package/dist/theme/index.d.ts +0 -1
  169. package/dist/theme/index.js +0 -72
  170. package/dist/theme/layer-styles.d.ts +0 -1
  171. package/dist/theme/layer-styles.js +0 -133
  172. package/dist/theme/recipes.d.ts +0 -861
  173. package/dist/theme/recipes.js +0 -44
  174. package/dist/theme/semantic-tokens/colors.d.ts +0 -1298
  175. package/dist/theme/semantic-tokens/colors.js +0 -687
  176. package/dist/theme/semantic-tokens/radii.d.ts +0 -44
  177. package/dist/theme/semantic-tokens/radii.js +0 -39
  178. package/dist/theme/semantic-tokens/shadows.d.ts +0 -56
  179. package/dist/theme/semantic-tokens/shadows.js +0 -57
  180. package/dist/theme/slot-recipes.d.ts +0 -4030
  181. package/dist/theme/slot-recipes.js +0 -108
  182. package/dist/theme/text-styles.d.ts +0 -1
  183. package/dist/theme/text-styles.js +0 -82
  184. package/dist/theme/tokens/animations.d.ts +0 -14
  185. package/dist/theme/tokens/animations.js +0 -7
  186. package/dist/theme/tokens/aspect-ratios.d.ts +0 -20
  187. package/dist/theme/tokens/aspect-ratios.js +0 -9
  188. package/dist/theme/tokens/blurs.d.ts +0 -26
  189. package/dist/theme/tokens/blurs.js +0 -11
  190. package/dist/theme/tokens/borders.d.ts +0 -17
  191. package/dist/theme/tokens/borders.js +0 -8
  192. package/dist/theme/tokens/colors.d.ts +0 -820
  193. package/dist/theme/tokens/colors.js +0 -306
  194. package/dist/theme/tokens/cursor.d.ts +0 -26
  195. package/dist/theme/tokens/cursor.js +0 -11
  196. package/dist/theme/tokens/durations.d.ts +0 -23
  197. package/dist/theme/tokens/durations.js +0 -10
  198. package/dist/theme/tokens/easings.d.ts +0 -20
  199. package/dist/theme/tokens/easings.js +0 -9
  200. package/dist/theme/tokens/font-sizes.d.ts +0 -44
  201. package/dist/theme/tokens/font-sizes.js +0 -18
  202. package/dist/theme/tokens/font-weights.d.ts +0 -29
  203. package/dist/theme/tokens/font-weights.js +0 -12
  204. package/dist/theme/tokens/fonts.d.ts +0 -11
  205. package/dist/theme/tokens/fonts.js +0 -13
  206. package/dist/theme/tokens/keyframes.d.ts +0 -1
  207. package/dist/theme/tokens/keyframes.js +0 -157
  208. package/dist/theme/tokens/letter-spacing.d.ts +0 -56
  209. package/dist/theme/tokens/letter-spacing.js +0 -21
  210. package/dist/theme/tokens/line-heights.d.ts +0 -77
  211. package/dist/theme/tokens/line-heights.js +0 -29
  212. package/dist/theme/tokens/radius.d.ts +0 -32
  213. package/dist/theme/tokens/radius.js +0 -15
  214. package/dist/theme/tokens/sizes.d.ts +0 -257
  215. package/dist/theme/tokens/sizes.js +0 -66
  216. package/dist/theme/tokens/spacing.d.ts +0 -101
  217. package/dist/theme/tokens/spacing.js +0 -37
  218. package/dist/theme/tokens/z-indices.d.ts +0 -53
  219. package/dist/theme/tokens/z-indices.js +0 -32
  220. package/dist/theme/utilities.d.ts +0 -10
  221. package/dist/theme/utilities.js +0 -49
  222. package/dist/theme/utils.d.ts +0 -19
  223. package/dist/theme/utils.js +0 -34
@@ -1,91 +0,0 @@
1
- import { progressAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- export const progressCircleSlotRecipe = defineSlotRecipe({
4
- className: 'chakra-progress-circle',
5
- slots: progressAnatomy.keys(),
6
- base: {
7
- root: {
8
- display: 'inline-flex',
9
- textStyle: 'sm',
10
- position: 'relative',
11
- },
12
- circle: {
13
- _indeterminate: {
14
- animation: 'spin 2s linear infinite',
15
- },
16
- },
17
- circleTrack: {
18
- '--track-color': 'colors.colorPalette.muted',
19
- stroke: 'var(--track-color)',
20
- },
21
- circleRange: {
22
- stroke: 'colorPalette.solid',
23
- transitionProperty: 'stroke-dasharray',
24
- transitionDuration: '0.6s',
25
- _indeterminate: {
26
- animation: 'circular-progress 1.5s linear infinite',
27
- },
28
- },
29
- label: {
30
- display: 'inline-flex',
31
- },
32
- valueText: {
33
- lineHeight: '1',
34
- fontWeight: 'medium',
35
- letterSpacing: 'tight',
36
- fontVariantNumeric: 'tabular-nums',
37
- },
38
- },
39
- variants: {
40
- size: {
41
- xs: {
42
- circle: {
43
- '--size': 'sizes.4',
44
- '--thickness': '3px',
45
- },
46
- valueText: {
47
- textStyle: '2xs',
48
- },
49
- },
50
- sm: {
51
- circle: {
52
- '--size': 'sizes.6',
53
- '--thickness': '5px',
54
- },
55
- valueText: {
56
- textStyle: '2xs',
57
- },
58
- },
59
- md: {
60
- circle: {
61
- '--size': 'sizes.10',
62
- '--thickness': '6px',
63
- },
64
- valueText: {
65
- textStyle: 'xs',
66
- },
67
- },
68
- lg: {
69
- circle: {
70
- '--size': 'sizes.14',
71
- '--thickness': '7px',
72
- },
73
- valueText: {
74
- textStyle: 'sm',
75
- },
76
- },
77
- xl: {
78
- circle: {
79
- '--size': 'sizes.16',
80
- '--thickness': '8px',
81
- },
82
- valueText: {
83
- textStyle: 'sm',
84
- },
85
- },
86
- },
87
- },
88
- defaultVariants: {
89
- size: 'md',
90
- },
91
- });
@@ -1,56 +0,0 @@
1
- export declare const radiomarkRecipe: import("@chakra-ui/react").RecipeDefinition<{
2
- variant: {
3
- solid: {
4
- borderWidth: "1px";
5
- borderColor: "border";
6
- _checked: {
7
- bg: "colorPalette.solid";
8
- color: "colorPalette.contrast";
9
- borderColor: "colorPalette.solid";
10
- };
11
- };
12
- subtle: {
13
- borderWidth: "1px";
14
- bg: "colorPalette.muted";
15
- borderColor: "colorPalette.muted";
16
- color: "transparent";
17
- _checked: {
18
- color: "colorPalette.fg";
19
- };
20
- };
21
- outline: {
22
- borderWidth: "1px";
23
- borderColor: "inherit";
24
- _checked: {
25
- color: "colorPalette.fg";
26
- borderColor: "colorPalette.solid";
27
- };
28
- '& .dot': {
29
- scale: "0.6";
30
- };
31
- };
32
- inverted: {
33
- bg: "bg";
34
- borderWidth: "1px";
35
- borderColor: "inherit";
36
- _checked: {
37
- color: "colorPalette.solid";
38
- borderColor: "currentcolor";
39
- };
40
- };
41
- };
42
- size: {
43
- xs: {
44
- boxSize: "3";
45
- };
46
- sm: {
47
- boxSize: "3.5";
48
- };
49
- md: {
50
- boxSize: "4";
51
- };
52
- lg: {
53
- boxSize: "5";
54
- };
55
- };
56
- }>;
@@ -1,95 +0,0 @@
1
- import { defineRecipe } from '@chakra-ui/react/styled-system';
2
- export const radiomarkRecipe = defineRecipe({
3
- className: 'chakra-radiomark',
4
- base: {
5
- colorPalette: 'accent',
6
- display: 'inline-flex',
7
- alignItems: 'center',
8
- justifyContent: 'center',
9
- flexShrink: 0,
10
- verticalAlign: 'top',
11
- color: 'white',
12
- borderWidth: '1px',
13
- borderColor: 'transparent',
14
- borderRadius: 'full',
15
- cursor: 'radio',
16
- _focusVisible: {
17
- focusVisibleRing: 'outside',
18
- },
19
- _invalid: {
20
- colorPalette: 'red',
21
- borderColor: 'red.500',
22
- },
23
- _disabled: {
24
- opacity: '0.5',
25
- cursor: 'disabled',
26
- },
27
- '& .dot': {
28
- height: '100%',
29
- width: '100%',
30
- borderRadius: 'full',
31
- bg: 'currentColor',
32
- scale: '0.4',
33
- },
34
- },
35
- variants: {
36
- variant: {
37
- solid: {
38
- borderWidth: '1px',
39
- borderColor: 'border',
40
- _checked: {
41
- bg: 'colorPalette.solid',
42
- color: 'colorPalette.contrast',
43
- borderColor: 'colorPalette.solid',
44
- },
45
- },
46
- subtle: {
47
- borderWidth: '1px',
48
- bg: 'colorPalette.muted',
49
- borderColor: 'colorPalette.muted',
50
- color: 'transparent',
51
- _checked: {
52
- color: 'colorPalette.fg',
53
- },
54
- },
55
- outline: {
56
- borderWidth: '1px',
57
- borderColor: 'inherit',
58
- _checked: {
59
- color: 'colorPalette.fg',
60
- borderColor: 'colorPalette.solid',
61
- },
62
- '& .dot': {
63
- scale: '0.6',
64
- },
65
- },
66
- inverted: {
67
- bg: 'bg',
68
- borderWidth: '1px',
69
- borderColor: 'inherit',
70
- _checked: {
71
- color: 'colorPalette.solid',
72
- borderColor: 'currentcolor',
73
- },
74
- },
75
- },
76
- size: {
77
- xs: {
78
- boxSize: '3',
79
- },
80
- sm: {
81
- boxSize: '3.5',
82
- },
83
- md: {
84
- boxSize: '4',
85
- },
86
- lg: {
87
- boxSize: '5',
88
- },
89
- },
90
- },
91
- defaultVariants: {
92
- variant: 'solid',
93
- size: 'md',
94
- },
95
- });
@@ -1,191 +0,0 @@
1
- export declare const radioCardSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"label" | "indicator" | "root" | "item" | "itemContent" | "itemIndicator" | "itemText" | "itemControl" | "itemAddon" | "itemDescription", {
2
- size: {
3
- sm: {
4
- item: {
5
- textStyle: "sm";
6
- };
7
- itemControl: {
8
- padding: "3";
9
- gap: "1.5";
10
- };
11
- itemAddon: {
12
- px: "3";
13
- py: "1.5";
14
- borderTopWidth: "1px";
15
- };
16
- itemIndicator: {
17
- boxSize: "3.5";
18
- } | undefined;
19
- };
20
- md: {
21
- item: {
22
- textStyle: "sm";
23
- };
24
- itemControl: {
25
- padding: "4";
26
- gap: "2.5";
27
- };
28
- itemAddon: {
29
- px: "4";
30
- py: "2";
31
- borderTopWidth: "1px";
32
- };
33
- itemIndicator: {
34
- boxSize: "4";
35
- } | undefined;
36
- };
37
- lg: {
38
- item: {
39
- textStyle: "md";
40
- };
41
- itemControl: {
42
- padding: "4";
43
- gap: "3.5";
44
- };
45
- itemAddon: {
46
- px: "4";
47
- py: "2";
48
- borderTopWidth: "1px";
49
- };
50
- itemIndicator: {
51
- boxSize: "5";
52
- } | undefined;
53
- };
54
- };
55
- variant: {
56
- surface: {
57
- item: {
58
- borderWidth: "1px";
59
- _checked: {
60
- bg: "colorPalette.subtle";
61
- color: "colorPalette.fg";
62
- borderColor: "colorPalette.muted";
63
- };
64
- };
65
- itemIndicator: {
66
- borderWidth: "1px";
67
- borderColor: "border";
68
- _checked: {
69
- bg: "colorPalette.solid";
70
- color: "colorPalette.contrast";
71
- borderColor: "colorPalette.solid";
72
- };
73
- } | undefined;
74
- };
75
- subtle: {
76
- item: {
77
- bg: "bg.muted";
78
- };
79
- itemControl: {
80
- _checked: {
81
- bg: "colorPalette.muted";
82
- color: "colorPalette.fg";
83
- };
84
- };
85
- itemIndicator: {
86
- borderWidth: "1px";
87
- borderColor: "inherit";
88
- _checked: {
89
- color: "colorPalette.fg";
90
- borderColor: "colorPalette.solid";
91
- };
92
- '& .dot': {
93
- scale: "0.6";
94
- };
95
- } | undefined;
96
- };
97
- outline: {
98
- item: {
99
- borderWidth: "1px";
100
- _checked: {
101
- boxShadow: "0 0 0 1px var(--shadow-color)";
102
- boxShadowColor: "colorPalette.solid";
103
- borderColor: "colorPalette.solid";
104
- };
105
- };
106
- itemIndicator: {
107
- borderWidth: "1px";
108
- borderColor: "border";
109
- _checked: {
110
- bg: "colorPalette.solid";
111
- color: "colorPalette.contrast";
112
- borderColor: "colorPalette.solid";
113
- };
114
- } | undefined;
115
- };
116
- solid: {
117
- item: {
118
- borderWidth: "1px";
119
- _checked: {
120
- bg: "colorPalette.solid";
121
- color: "colorPalette.contrast";
122
- borderColor: "colorPalette.solid";
123
- };
124
- };
125
- itemIndicator: {
126
- bg: "bg";
127
- borderWidth: "1px";
128
- borderColor: "inherit";
129
- _checked: {
130
- color: "colorPalette.solid";
131
- borderColor: "currentcolor";
132
- };
133
- } | undefined;
134
- };
135
- };
136
- justify: {
137
- start: {
138
- item: {
139
- '--radio-card-justify': "flex-start";
140
- };
141
- };
142
- end: {
143
- item: {
144
- '--radio-card-justify': "flex-end";
145
- };
146
- };
147
- center: {
148
- item: {
149
- '--radio-card-justify': "center";
150
- };
151
- };
152
- };
153
- align: {
154
- start: {
155
- item: {
156
- '--radio-card-align': "flex-start";
157
- };
158
- itemControl: {
159
- textAlign: "start";
160
- };
161
- };
162
- end: {
163
- item: {
164
- '--radio-card-align': "flex-end";
165
- };
166
- itemControl: {
167
- textAlign: "end";
168
- };
169
- };
170
- center: {
171
- item: {
172
- '--radio-card-align': "center";
173
- };
174
- itemControl: {
175
- textAlign: "center";
176
- };
177
- };
178
- };
179
- orientation: {
180
- vertical: {
181
- itemControl: {
182
- flexDirection: "column";
183
- };
184
- };
185
- horizontal: {
186
- itemControl: {
187
- flexDirection: "row";
188
- };
189
- };
190
- };
191
- }>;
@@ -1,209 +0,0 @@
1
- import { radioCardAnatomy } from '@chakra-ui/react/anatomy';
2
- import { defineSlotRecipe } from '@chakra-ui/react/styled-system';
3
- import { radiomarkRecipe } from "../radio/radiomark.recipe.js";
4
- export const radioCardSlotRecipe = defineSlotRecipe({
5
- className: 'chakra-radio-card',
6
- slots: radioCardAnatomy.keys(),
7
- base: {
8
- root: {
9
- display: 'flex',
10
- flexDirection: 'column',
11
- gap: '1.5',
12
- isolation: 'isolate',
13
- },
14
- item: {
15
- flex: '1',
16
- display: 'flex',
17
- flexDirection: 'column',
18
- userSelect: 'none',
19
- position: 'relative',
20
- borderRadius: 'panel.md',
21
- _focus: {
22
- bg: 'colorPalette.muted/20',
23
- },
24
- _disabled: {
25
- opacity: '0.8',
26
- borderColor: 'border.disabled',
27
- },
28
- _checked: {
29
- zIndex: '1',
30
- },
31
- },
32
- label: {
33
- display: 'inline-flex',
34
- fontWeight: 'medium',
35
- textStyle: 'sm',
36
- _disabled: {
37
- opacity: '0.5',
38
- },
39
- },
40
- itemText: {
41
- fontWeight: 'medium',
42
- },
43
- itemDescription: {
44
- opacity: '0.64',
45
- textStyle: 'sm',
46
- },
47
- itemControl: {
48
- display: 'inline-flex',
49
- flex: '1',
50
- pos: 'relative',
51
- rounded: 'inherit',
52
- justifyContent: 'var(--radio-card-justify)',
53
- alignItems: 'var(--radio-card-align)',
54
- _disabled: {
55
- bg: 'bg.muted',
56
- },
57
- },
58
- itemIndicator: radiomarkRecipe.base,
59
- itemAddon: {
60
- roundedBottom: 'inherit',
61
- _disabled: {
62
- color: 'fg.muted',
63
- },
64
- },
65
- itemContent: {
66
- display: 'flex',
67
- flexDirection: 'column',
68
- flex: '1',
69
- gap: '1',
70
- justifyContent: 'var(--radio-card-justify)',
71
- alignItems: 'var(--radio-card-align)',
72
- },
73
- },
74
- variants: {
75
- size: {
76
- sm: {
77
- item: {
78
- textStyle: 'sm',
79
- },
80
- itemControl: {
81
- padding: '3',
82
- gap: '1.5',
83
- },
84
- itemAddon: {
85
- px: '3',
86
- py: '1.5',
87
- borderTopWidth: '1px',
88
- },
89
- itemIndicator: radiomarkRecipe.variants?.size.sm,
90
- },
91
- md: {
92
- item: {
93
- textStyle: 'sm',
94
- },
95
- itemControl: {
96
- padding: '4',
97
- gap: '2.5',
98
- },
99
- itemAddon: {
100
- px: '4',
101
- py: '2',
102
- borderTopWidth: '1px',
103
- },
104
- itemIndicator: radiomarkRecipe.variants?.size.md,
105
- },
106
- lg: {
107
- item: {
108
- textStyle: 'md',
109
- },
110
- itemControl: {
111
- padding: '4',
112
- gap: '3.5',
113
- },
114
- itemAddon: {
115
- px: '4',
116
- py: '2',
117
- borderTopWidth: '1px',
118
- },
119
- itemIndicator: radiomarkRecipe.variants?.size.lg,
120
- },
121
- },
122
- variant: {
123
- surface: {
124
- item: {
125
- borderWidth: '1px',
126
- _checked: {
127
- bg: 'colorPalette.subtle',
128
- color: 'colorPalette.fg',
129
- borderColor: 'colorPalette.muted',
130
- },
131
- },
132
- itemIndicator: radiomarkRecipe.variants?.variant.solid,
133
- },
134
- subtle: {
135
- item: {
136
- bg: 'bg.muted',
137
- },
138
- itemControl: {
139
- _checked: {
140
- bg: 'colorPalette.muted',
141
- color: 'colorPalette.fg',
142
- },
143
- },
144
- itemIndicator: radiomarkRecipe.variants?.variant.outline,
145
- },
146
- outline: {
147
- item: {
148
- borderWidth: '1px',
149
- _checked: {
150
- boxShadow: '0 0 0 1px var(--shadow-color)',
151
- boxShadowColor: 'colorPalette.solid',
152
- borderColor: 'colorPalette.solid',
153
- },
154
- },
155
- itemIndicator: radiomarkRecipe.variants?.variant.solid,
156
- },
157
- solid: {
158
- item: {
159
- borderWidth: '1px',
160
- _checked: {
161
- bg: 'colorPalette.solid',
162
- color: 'colorPalette.contrast',
163
- borderColor: 'colorPalette.solid',
164
- },
165
- },
166
- itemIndicator: radiomarkRecipe.variants?.variant.inverted,
167
- },
168
- },
169
- justify: {
170
- start: {
171
- item: { '--radio-card-justify': 'flex-start' },
172
- },
173
- end: {
174
- item: { '--radio-card-justify': 'flex-end' },
175
- },
176
- center: {
177
- item: { '--radio-card-justify': 'center' },
178
- },
179
- },
180
- align: {
181
- start: {
182
- item: { '--radio-card-align': 'flex-start' },
183
- itemControl: { textAlign: 'start' },
184
- },
185
- end: {
186
- item: { '--radio-card-align': 'flex-end' },
187
- itemControl: { textAlign: 'end' },
188
- },
189
- center: {
190
- item: { '--radio-card-align': 'center' },
191
- itemControl: { textAlign: 'center' },
192
- },
193
- },
194
- orientation: {
195
- vertical: {
196
- itemControl: { flexDirection: 'column' },
197
- },
198
- horizontal: {
199
- itemControl: { flexDirection: 'row' },
200
- },
201
- },
202
- },
203
- defaultVariants: {
204
- size: 'md',
205
- variant: 'outline',
206
- align: 'start',
207
- orientation: 'horizontal',
208
- },
209
- });