@atom-learning/components 2.29.1 → 2.30.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 (136) hide show
  1. package/CHANGELOG.md +2 -5
  2. package/dist/components/accordion/Accordion.d.ts +37 -127
  3. package/dist/components/accordion/AccordionContent.d.ts +37 -127
  4. package/dist/components/accordion/AccordionContent.js +1 -1
  5. package/dist/components/accordion/AccordionItem.d.ts +37 -127
  6. package/dist/components/accordion/AccordionItem.js +1 -1
  7. package/dist/components/accordion/AccordionTrigger.d.ts +42 -131
  8. package/dist/components/accordion/AccordionTrigger.js +1 -1
  9. package/dist/components/action-icon/ActionIcon.d.ts +37 -127
  10. package/dist/components/alert-dialog/AlertDialog.d.ts +37 -127
  11. package/dist/components/alert-dialog/AlertDialogContent.d.ts +37 -127
  12. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  13. package/dist/components/avatar/Avatar.d.ts +104 -284
  14. package/dist/components/badge/Badge.d.ts +104 -284
  15. package/dist/components/box/Box.d.ts +37 -127
  16. package/dist/components/button/Button.d.ts +37 -127
  17. package/dist/components/calendar/Day.d.ts +37 -127
  18. package/dist/components/carousel/CarouselPagination.d.ts +37 -127
  19. package/dist/components/carousel/CarouselSlide.d.ts +37 -127
  20. package/dist/components/carousel/CarouselSlider.d.ts +37 -127
  21. package/dist/components/checkbox/Checkbox.d.ts +37 -127
  22. package/dist/components/chip/Chip.d.ts +304 -934
  23. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +74 -254
  24. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +74 -254
  25. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +104 -284
  26. package/dist/components/combobox/Combobox.d.ts +37 -127
  27. package/dist/components/combobox/ComboboxInput.d.ts +37 -127
  28. package/dist/components/combobox/ComboboxList.d.ts +37 -127
  29. package/dist/components/combobox/ComboboxOption.d.ts +37 -127
  30. package/dist/components/combobox/ComboboxPopover.d.ts +37 -127
  31. package/dist/components/data-table/DataTableLoading.d.ts +37 -127
  32. package/dist/components/data-table/drag-and-drop/Handle.d.ts +74 -254
  33. package/dist/components/data-table/pagination/Pagination.d.ts +37 -127
  34. package/dist/components/dialog/Dialog.d.ts +37 -127
  35. package/dist/components/dialog/DialogBackground.d.ts +104 -284
  36. package/dist/components/dialog/DialogClose.d.ts +37 -127
  37. package/dist/components/dialog/DialogContent.d.ts +37 -127
  38. package/dist/components/dialog/DialogContent.js +1 -1
  39. package/dist/components/divider/Divider.d.ts +37 -127
  40. package/dist/components/dropdown-menu/DropdownMenu.d.ts +37 -127
  41. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +37 -127
  42. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +37 -127
  43. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +37 -127
  44. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +37 -127
  45. package/dist/components/empty-state/EmptyState.d.ts +104 -284
  46. package/dist/components/empty-state/EmptyStateBody.d.ts +74 -254
  47. package/dist/components/empty-state/EmptyStateImage.d.ts +74 -254
  48. package/dist/components/empty-state/EmptyStateTitle.d.ts +37 -127
  49. package/dist/components/flex/Flex.d.ts +37 -127
  50. package/dist/components/form/Form.d.ts +37 -127
  51. package/dist/components/grid/Grid.d.ts +37 -127
  52. package/dist/components/heading/Heading.d.ts +37 -127
  53. package/dist/components/icon/Icon.d.ts +37 -127
  54. package/dist/components/image/Image.d.ts +37 -127
  55. package/dist/components/inline-message/InlineMessage.d.ts +104 -284
  56. package/dist/components/input/Input.d.ts +37 -127
  57. package/dist/components/label/Label.d.ts +37 -127
  58. package/dist/components/link/Link.d.ts +37 -127
  59. package/dist/components/list/List.d.ts +104 -284
  60. package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +37 -127
  61. package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +74 -254
  62. package/dist/components/notification-badge/NotificationBadge.d.ts +104 -284
  63. package/dist/components/popover/Popover.d.ts +37 -127
  64. package/dist/components/popover/PopoverContent.d.ts +37 -127
  65. package/dist/components/progress-bar/ProgressBar.d.ts +37 -127
  66. package/dist/components/radio-button/RadioButton.d.ts +37 -127
  67. package/dist/components/radio-button/RadioButtonGroup.d.ts +37 -127
  68. package/dist/components/radio-card/RadioCard.d.ts +37 -127
  69. package/dist/components/select/Select.d.ts +37 -127
  70. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +37 -127
  71. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +37 -127
  72. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +37 -127
  73. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +37 -127
  74. package/dist/components/sidedrawer/SidedrawerContent.d.ts +37 -127
  75. package/dist/components/sidedrawer/SidedrawerFooter.d.ts +37 -127
  76. package/dist/components/sidedrawer/SidedrawerHeader.d.ts +37 -127
  77. package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +37 -127
  78. package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +37 -127
  79. package/dist/components/slider/Slider.d.ts +37 -127
  80. package/dist/components/stack/Stack.d.ts +37 -127
  81. package/dist/components/stack-content/StackContent.d.ts +37 -127
  82. package/dist/components/stepper/StepperStepBullet.d.ts +104 -284
  83. package/dist/components/stepper/StepperStepContainer.d.ts +104 -284
  84. package/dist/components/stepper/StepperStepLabel.d.ts +74 -254
  85. package/dist/components/switch/Switch.d.ts +37 -127
  86. package/dist/components/table/Table.d.ts +37 -127
  87. package/dist/components/table/TableBody.d.ts +37 -127
  88. package/dist/components/table/TableCell.d.ts +37 -127
  89. package/dist/components/table/TableFooter.d.ts +37 -127
  90. package/dist/components/table/TableFooterCell.d.ts +37 -127
  91. package/dist/components/table/TableHeader.d.ts +37 -127
  92. package/dist/components/table/TableHeaderCell.d.ts +37 -127
  93. package/dist/components/table/TableRow.d.ts +74 -254
  94. package/dist/components/tabs/Tabs.d.ts +44 -403
  95. package/dist/components/tabs/Tabs.js +1 -1
  96. package/dist/components/tabs/TabsContent.d.ts +177 -0
  97. package/dist/components/tabs/TabsContent.js +1 -0
  98. package/dist/components/tabs/TabsTrigger.d.ts +182 -0
  99. package/dist/components/tabs/TabsTrigger.js +1 -0
  100. package/dist/components/tabs/TabsTriggerList.d.ts +42 -136
  101. package/dist/components/tabs/TabsTriggerList.js +1 -1
  102. package/dist/components/text/Text.d.ts +37 -127
  103. package/dist/components/textarea/Textarea.d.ts +37 -127
  104. package/dist/components/toast/Toast.d.ts +37 -127
  105. package/dist/components/toggle-group/ToggleGroupButton.d.ts +104 -284
  106. package/dist/components/toggle-group/ToggleGroupItem.d.ts +104 -284
  107. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +37 -127
  108. package/dist/components/toggle-group/index.d.ts +245 -695
  109. package/dist/components/tooltip/TooltipContent.d.ts +37 -127
  110. package/dist/components/top-bar/TopBar.d.ts +37 -127
  111. package/dist/components/top-bar/TopBarBrand.d.ts +111 -381
  112. package/dist/components/video/Video.d.ts +104 -284
  113. package/dist/docgen.json +1 -1
  114. package/dist/docs/Accordion.mdx +56 -7
  115. package/dist/docs/README.mdx +79 -0
  116. package/dist/docs/Tabs.mdx +31 -57
  117. package/dist/experiments/color-scheme/ColorScheme.d.ts +111 -0
  118. package/dist/experiments/color-scheme/ColorScheme.js +1 -0
  119. package/dist/experiments/color-scheme/blue.json.js +1 -0
  120. package/dist/experiments/color-scheme/generateAlphaColors.d.ts +1 -0
  121. package/dist/experiments/color-scheme/generateAlphaColors.js +1 -0
  122. package/dist/experiments/color-scheme/index.d.ts +1 -0
  123. package/dist/experiments/color-scheme/slate.json.js +1 -0
  124. package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +256 -0
  125. package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -0
  126. package/dist/index.cjs.js +1 -1
  127. package/dist/stitches.d.ts +474 -786
  128. package/dist/stitches.js +1 -1
  129. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  130. package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
  131. package/dist/utilities/hooks/useWindowSize.js +1 -0
  132. package/package.json +4 -3
  133. package/dist/components/tabs/TabTrigger.d.ts +0 -275
  134. package/dist/components/tabs/TabTrigger.js +0 -1
  135. package/dist/components/tabs/utils.d.ts +0 -2
  136. package/dist/components/tabs/utils.js +0 -1
package/dist/stitches.js CHANGED
@@ -1 +1 @@
1
- import*as o from"@atom-learning/theme";import{createStitches as e}from"@stitches/react";const i={bg:t=>({background:t}),inset:t=>({top:t,right:t,bottom:t,left:t}),size:t=>({height:t,width:t}),p:t=>({padding:t}),pt:t=>({paddingTop:t}),pr:t=>({paddingRight:t}),pb:t=>({paddingBottom:t}),pl:t=>({paddingLeft:t}),px:t=>({paddingLeft:t,paddingRight:t}),py:t=>({paddingTop:t,paddingBottom:t}),m:t=>({margin:t}),mt:t=>({marginTop:t}),mr:t=>({marginRight:t}),mb:t=>({marginBottom:t}),ml:t=>({marginLeft:t}),mx:t=>({marginLeft:t,marginRight:t}),my:t=>({marginTop:t,marginBottom:t})},m={sm:"(min-width: 550px)",md:"(min-width: 800px)",lg:"(min-width: 1100px)",xl:"(min-width: 1350px)",reducedMotion:"(prefers-reduced-motion)",allowMotion:"(prefers-reduced-motion: no-preference)",hover:"(hover: hover)"},d=e({theme:o,utils:i,media:m}),{css:n,getCssText:r,createTheme:p,globalCss:g,keyframes:a,styled:h,theme:s}=d;export{p as createTheme,n as css,r as getCssText,g as globalCss,a as keyframes,m as media,h as styled,s as theme,i as utils};
1
+ import*as e from"@atom-learning/theme";import{createStitches as o}from"@stitches/react";const i={bg:t=>({background:t}),size:t=>({height:t,width:t}),p:t=>({padding:t}),pt:t=>({paddingTop:t}),pr:t=>({paddingRight:t}),pb:t=>({paddingBottom:t}),pl:t=>({paddingLeft:t}),px:t=>({paddingLeft:t,paddingRight:t}),py:t=>({paddingTop:t,paddingBottom:t}),m:t=>({margin:t}),mt:t=>({marginTop:t}),mr:t=>({marginRight:t}),mb:t=>({marginBottom:t}),ml:t=>({marginLeft:t}),mx:t=>({marginLeft:t,marginRight:t}),my:t=>({marginTop:t,marginBottom:t})},m={sm:"(min-width: 550px)",md:"(min-width: 800px)",lg:"(min-width: 1100px)",xl:"(min-width: 1350px)",reducedMotion:"(prefers-reduced-motion)",allowMotion:"(prefers-reduced-motion: no-preference)",hover:"(hover: hover)"},d=o({theme:e,utils:i,media:m}),{css:r,getCssText:n,createTheme:p,globalCss:g,keyframes:a,styled:h,theme:s}=d;export{p as createTheme,r as css,n as getCssText,g as globalCss,a as keyframes,m as media,h as styled,s as theme,i as utils};
@@ -1 +1 @@
1
- import*as n from"react";const s=()=>{const e=n.useRef(null),o=n.useCallback(r=>{r&&(e.current=r)},[]);return[e,o]};export{s as useCallbackRef};
1
+ import*as t from"react";const n=()=>{const e=t.useRef(null),u=t.useCallback(l=>{l&&(e.current=l)},[]);return[e,u]},s=()=>{const[e,u]=t.useState(null),l=t.useCallback(a=>{a&&u(a)},[]);return[e,l]};export{n as useCallbackRef,s as useCallbackRefState};
@@ -0,0 +1,8 @@
1
+ interface Size {
2
+ width: number | undefined;
3
+ height: number | undefined;
4
+ }
5
+ export declare const useWindowSize: ({ delay }?: {
6
+ delay?: number | undefined;
7
+ }) => Size;
8
+ export {};
@@ -0,0 +1 @@
1
+ import{useState as o,useEffect as r}from"react";import{debounce as d}from"throttle-debounce";const w=({delay:t=500}={})=>{const[i,n]=o({width:void 0,height:void 0});return r(()=>{const e=d(t,()=>{n({width:window.innerWidth,height:window.innerHeight})});return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[t]),i};export{w as useWindowSize};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "dist/index.cjs.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
7
- "version": "2.29.1",
7
+ "version": "2.30.1",
8
8
  "description": "",
9
9
  "files": [
10
10
  "dist"
@@ -107,6 +107,7 @@
107
107
  "react-docgen-typescript": "2.1.0",
108
108
  "rollup": "^2.39.0",
109
109
  "rollup-plugin-esbuild": "^4.8.2",
110
+ "rollup-plugin-json": "^4.0.0",
110
111
  "rollup-plugin-summary": "^1.3.0",
111
112
  "rollup-plugin-terser": "^7.0.2",
112
113
  "rollup-plugin-visualizer": "^4.2.2",
@@ -148,7 +149,7 @@
148
149
  "@radix-ui/react-tooltip": "^1.0.0",
149
150
  "@radix-ui/react-visually-hidden": "^1.0.0",
150
151
  "@reach/combobox": "^0.16.1",
151
- "@stitches/react": "^1.2.8",
152
+ "@stitches/react": "1.3.1-1",
152
153
  "@tanstack/react-table": "^8.5.11",
153
154
  "@types/react": "^17.0.30",
154
155
  "color2k": "^2.0.0",
@@ -171,7 +172,7 @@
171
172
  "husky": {
172
173
  "hooks": {
173
174
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
174
- "pre-commit": "bash scripts/prevent-commit.sh && lint-staged"
175
+ "pre-commit": "bash ../scripts/prevent-commit.sh && lint-staged"
175
176
  }
176
177
  },
177
178
  "commitlint": {
@@ -1,275 +0,0 @@
1
- import * as React from 'react';
2
- declare const StyledTabTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
3
- theme?: "dark" | "light" | undefined;
4
- }, {
5
- sm: string;
6
- md: string;
7
- lg: string;
8
- xl: string;
9
- reducedMotion: string;
10
- allowMotion: string;
11
- hover: string;
12
- }, import("@stitches/react/types/css-util").CSS<{
13
- sm: string;
14
- md: string;
15
- lg: string;
16
- xl: string;
17
- reducedMotion: string;
18
- allowMotion: string;
19
- hover: string;
20
- }, {
21
- colors: {
22
- textForeground: any;
23
- textSubtle: any;
24
- textPlaceholder: any;
25
- background: any;
26
- backgroundAccent: any;
27
- tonal50: any;
28
- tonal100: any;
29
- tonal200: any;
30
- tonal300: any;
31
- tonal400: any;
32
- tonal500: any;
33
- tonal600: any;
34
- alpha100: any;
35
- alpha150: any;
36
- alpha200: any;
37
- alpha250: any;
38
- alpha600: any;
39
- primaryLight: any;
40
- primary: any;
41
- primaryMid: any;
42
- primaryDark: any;
43
- secondary: any;
44
- brandRed: any;
45
- brandRedAccent: any;
46
- brandGreen: any;
47
- brandGreenAccent: any;
48
- brandPurple: any;
49
- brandPurpleAccent: any;
50
- brandYellow: any;
51
- brandYellowAccent: any;
52
- successLight: any;
53
- success: any;
54
- successMid: any;
55
- successDark: any;
56
- dangerLight: any;
57
- danger: any;
58
- dangerMid: any;
59
- dangerDark: any;
60
- warningLight: any;
61
- warning: any;
62
- warningMid: any;
63
- warningDark: any;
64
- warningText: any;
65
- subjectEnglish: any;
66
- subjectMaths: any;
67
- subjectScience: any;
68
- subjectVerbalReasoning: any;
69
- subjectNonVerbalReasoning: any;
70
- subjectCreativeWriting: any;
71
- subjectExamSkills: any;
72
- };
73
- space: {
74
- "0": any;
75
- "1": any;
76
- "2": any;
77
- "3": any;
78
- "4": any;
79
- "5": any;
80
- "6": any;
81
- "7": any;
82
- "8": any;
83
- "9": any;
84
- };
85
- fontSizes: {
86
- xs: any;
87
- sm: any;
88
- md: any;
89
- lg: any;
90
- xl: any;
91
- "2xl": any;
92
- "3xl": any;
93
- "4xl": any;
94
- };
95
- fonts: {
96
- sans: any;
97
- mono: any;
98
- display: any;
99
- body: any;
100
- };
101
- sizes: {
102
- "0": any;
103
- "1": any;
104
- "2": any;
105
- "3": any;
106
- "4": any;
107
- "5": any;
108
- "6": any;
109
- "7": any;
110
- "8": any;
111
- };
112
- radii: {
113
- "0": any;
114
- "1": any;
115
- "2": any;
116
- "3": any;
117
- round: any;
118
- };
119
- shadows: {
120
- "0": any;
121
- "1": any;
122
- "2": any;
123
- "3": any;
124
- };
125
- }, import("@stitches/react/types/config").DefaultThemeMap, {
126
- bg: (value: {
127
- readonly [$$PropertyValue]: "background";
128
- }) => {
129
- background: {
130
- readonly [$$PropertyValue]: "background";
131
- };
132
- };
133
- inset: (value: string | number | {
134
- readonly [$$ScaleValue]: "space";
135
- }) => {
136
- top: string | number | {
137
- readonly [$$ScaleValue]: "space";
138
- };
139
- right: string | number | {
140
- readonly [$$ScaleValue]: "space";
141
- };
142
- bottom: string | number | {
143
- readonly [$$ScaleValue]: "space";
144
- };
145
- left: string | number | {
146
- readonly [$$ScaleValue]: "space";
147
- };
148
- };
149
- size: (value: string | number | {
150
- readonly [$$ScaleValue]: "size";
151
- }) => {
152
- height: string | number | {
153
- readonly [$$ScaleValue]: "size";
154
- };
155
- width: string | number | {
156
- readonly [$$ScaleValue]: "size";
157
- };
158
- };
159
- p: (value: string | number | {
160
- readonly [$$ScaleValue]: "space";
161
- }) => {
162
- padding: string | number | {
163
- readonly [$$ScaleValue]: "space";
164
- };
165
- };
166
- pt: (value: string | number | {
167
- readonly [$$ScaleValue]: "space";
168
- }) => {
169
- paddingTop: string | number | {
170
- readonly [$$ScaleValue]: "space";
171
- };
172
- };
173
- pr: (value: string | number | {
174
- readonly [$$ScaleValue]: "space";
175
- }) => {
176
- paddingRight: string | number | {
177
- readonly [$$ScaleValue]: "space";
178
- };
179
- };
180
- pb: (value: string | number | {
181
- readonly [$$ScaleValue]: "space";
182
- }) => {
183
- paddingBottom: string | number | {
184
- readonly [$$ScaleValue]: "space";
185
- };
186
- };
187
- pl: (value: string | number | {
188
- readonly [$$ScaleValue]: "space";
189
- }) => {
190
- paddingLeft: string | number | {
191
- readonly [$$ScaleValue]: "space";
192
- };
193
- };
194
- px: (value: string | number | {
195
- readonly [$$ScaleValue]: "space";
196
- }) => {
197
- paddingLeft: string | number | {
198
- readonly [$$ScaleValue]: "space";
199
- };
200
- paddingRight: string | number | {
201
- readonly [$$ScaleValue]: "space";
202
- };
203
- };
204
- py: (value: string | number | {
205
- readonly [$$ScaleValue]: "space";
206
- }) => {
207
- paddingTop: string | number | {
208
- readonly [$$ScaleValue]: "space";
209
- };
210
- paddingBottom: string | number | {
211
- readonly [$$ScaleValue]: "space";
212
- };
213
- };
214
- m: (value: string | number | {
215
- readonly [$$ScaleValue]: "space";
216
- }) => {
217
- margin: string | number | {
218
- readonly [$$ScaleValue]: "space";
219
- };
220
- };
221
- mt: (value: string | number | {
222
- readonly [$$ScaleValue]: "space";
223
- }) => {
224
- marginTop: string | number | {
225
- readonly [$$ScaleValue]: "space";
226
- };
227
- };
228
- mr: (value: string | number | {
229
- readonly [$$ScaleValue]: "space";
230
- }) => {
231
- marginRight: string | number | {
232
- readonly [$$ScaleValue]: "space";
233
- };
234
- };
235
- mb: (value: string | number | {
236
- readonly [$$ScaleValue]: "space";
237
- }) => {
238
- marginBottom: string | number | {
239
- readonly [$$ScaleValue]: "space";
240
- };
241
- };
242
- ml: (value: string | number | {
243
- readonly [$$ScaleValue]: "space";
244
- }) => {
245
- marginLeft: string | number | {
246
- readonly [$$ScaleValue]: "space";
247
- };
248
- };
249
- mx: (value: string | number | {
250
- readonly [$$ScaleValue]: "space";
251
- }) => {
252
- marginLeft: string | number | {
253
- readonly [$$ScaleValue]: "space";
254
- };
255
- marginRight: string | number | {
256
- readonly [$$ScaleValue]: "space";
257
- };
258
- };
259
- my: (value: string | number | {
260
- readonly [$$ScaleValue]: "space";
261
- }) => {
262
- marginTop: string | number | {
263
- readonly [$$ScaleValue]: "space";
264
- };
265
- marginBottom: string | number | {
266
- readonly [$$ScaleValue]: "space";
267
- };
268
- };
269
- }>>;
270
- interface TabTriggerProps extends React.ComponentProps<typeof StyledTabTrigger> {
271
- value: string;
272
- disabled?: boolean;
273
- }
274
- export declare const TabTrigger: React.FC<TabTriggerProps>;
275
- export {};
@@ -1 +0,0 @@
1
- import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as o}from"color2k";import*as n from"react";import{styled as s,theme as e}from"../../stitches.js";const c=s(l,{background:"none",border:"none",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:o(e.colors.primary.value,-.9)},"&:not([data-disabled]):active":{color:"$primary",bg:o(e.colors.primary.value,-.8),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:o("white",-.8)},"&:not([data-disabled]):active":{bg:o("white",-.7),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),a=({children:t,theme:r,disabled:i=!1,...d})=>n.createElement(c,{disabled:i,theme:r,...d},t);a.displayName="TabTrigger";export{a as TabTrigger};
@@ -1,2 +0,0 @@
1
- import { JSXElementConstructor } from 'react';
2
- export declare const passPropsToChildren: (children: any, props: Record<string, any>, allowedChildNodeTypes?: JSXElementConstructor<any>[]) => any;
@@ -1 +0,0 @@
1
- import o from"react";const t=(n,e,i=[])=>o.Children.map(n,l=>o.isValidElement(l)&&i.includes(l==null?void 0:l.type)?o.cloneElement(l,{...e}):l);export{t as passPropsToChildren};