@atom-learning/components 2.29.1 → 2.31.0-beta.0

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/dist/components/accordion/Accordion.d.ts +37 -127
  2. package/dist/components/accordion/AccordionContent.d.ts +37 -127
  3. package/dist/components/accordion/AccordionContent.js +1 -1
  4. package/dist/components/accordion/AccordionItem.d.ts +37 -127
  5. package/dist/components/accordion/AccordionItem.js +1 -1
  6. package/dist/components/accordion/AccordionTrigger.d.ts +42 -131
  7. package/dist/components/accordion/AccordionTrigger.js +1 -1
  8. package/dist/components/action-icon/ActionIcon.d.ts +37 -127
  9. package/dist/components/alert-dialog/AlertDialog.d.ts +37 -127
  10. package/dist/components/alert-dialog/AlertDialogContent.d.ts +37 -127
  11. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  12. package/dist/components/avatar/Avatar.d.ts +104 -284
  13. package/dist/components/badge/Badge.d.ts +104 -284
  14. package/dist/components/box/Box.d.ts +37 -127
  15. package/dist/components/button/Button.d.ts +37 -127
  16. package/dist/components/calendar/Day.d.ts +37 -127
  17. package/dist/components/carousel/CarouselPagination.d.ts +37 -127
  18. package/dist/components/carousel/CarouselSlide.d.ts +37 -127
  19. package/dist/components/carousel/CarouselSlider.d.ts +37 -127
  20. package/dist/components/checkbox/Checkbox.d.ts +37 -127
  21. package/dist/components/chip/Chip.d.ts +304 -934
  22. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +74 -254
  23. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +74 -254
  24. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +104 -284
  25. package/dist/components/combobox/Combobox.d.ts +37 -127
  26. package/dist/components/combobox/ComboboxInput.d.ts +37 -127
  27. package/dist/components/combobox/ComboboxList.d.ts +37 -127
  28. package/dist/components/combobox/ComboboxOption.d.ts +37 -127
  29. package/dist/components/combobox/ComboboxPopover.d.ts +37 -127
  30. package/dist/components/data-table/DataTableLoading.d.ts +37 -127
  31. package/dist/components/data-table/drag-and-drop/Handle.d.ts +74 -254
  32. package/dist/components/data-table/pagination/Pagination.d.ts +37 -127
  33. package/dist/components/dialog/Dialog.d.ts +37 -127
  34. package/dist/components/dialog/DialogBackground.d.ts +104 -284
  35. package/dist/components/dialog/DialogClose.d.ts +37 -127
  36. package/dist/components/dialog/DialogContent.d.ts +37 -127
  37. package/dist/components/dialog/DialogContent.js +1 -1
  38. package/dist/components/divider/Divider.d.ts +37 -127
  39. package/dist/components/dropdown-menu/DropdownMenu.d.ts +37 -127
  40. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +37 -127
  41. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +37 -127
  42. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +37 -127
  43. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +37 -127
  44. package/dist/components/empty-state/EmptyState.d.ts +104 -284
  45. package/dist/components/empty-state/EmptyStateBody.d.ts +74 -254
  46. package/dist/components/empty-state/EmptyStateImage.d.ts +74 -254
  47. package/dist/components/empty-state/EmptyStateTitle.d.ts +37 -127
  48. package/dist/components/flex/Flex.d.ts +37 -127
  49. package/dist/components/form/Form.d.ts +37 -127
  50. package/dist/components/grid/Grid.d.ts +37 -127
  51. package/dist/components/heading/Heading.d.ts +37 -127
  52. package/dist/components/icon/Icon.d.ts +37 -127
  53. package/dist/components/image/Image.d.ts +37 -127
  54. package/dist/components/inline-message/InlineMessage.d.ts +104 -284
  55. package/dist/components/input/Input.d.ts +37 -127
  56. package/dist/components/label/Label.d.ts +37 -127
  57. package/dist/components/link/Link.d.ts +37 -127
  58. package/dist/components/list/List.d.ts +104 -284
  59. package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +37 -127
  60. package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +74 -254
  61. package/dist/components/notification-badge/NotificationBadge.d.ts +104 -284
  62. package/dist/components/popover/Popover.d.ts +37 -127
  63. package/dist/components/popover/PopoverContent.d.ts +37 -127
  64. package/dist/components/progress-bar/ProgressBar.d.ts +37 -127
  65. package/dist/components/radio-button/RadioButton.d.ts +37 -127
  66. package/dist/components/radio-button/RadioButtonGroup.d.ts +37 -127
  67. package/dist/components/radio-card/RadioCard.d.ts +37 -127
  68. package/dist/components/select/Select.d.ts +37 -127
  69. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +37 -127
  70. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +37 -127
  71. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +37 -127
  72. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +37 -127
  73. package/dist/components/sidedrawer/SidedrawerContent.d.ts +37 -127
  74. package/dist/components/sidedrawer/SidedrawerFooter.d.ts +37 -127
  75. package/dist/components/sidedrawer/SidedrawerHeader.d.ts +37 -127
  76. package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +37 -127
  77. package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +37 -127
  78. package/dist/components/slider/Slider.d.ts +37 -127
  79. package/dist/components/stack/Stack.d.ts +37 -127
  80. package/dist/components/stack-content/StackContent.d.ts +37 -127
  81. package/dist/components/stepper/StepperStepBullet.d.ts +104 -284
  82. package/dist/components/stepper/StepperStepContainer.d.ts +104 -284
  83. package/dist/components/stepper/StepperStepLabel.d.ts +74 -254
  84. package/dist/components/switch/Switch.d.ts +37 -127
  85. package/dist/components/table/Table.d.ts +37 -127
  86. package/dist/components/table/TableBody.d.ts +37 -127
  87. package/dist/components/table/TableCell.d.ts +37 -127
  88. package/dist/components/table/TableFooter.d.ts +37 -127
  89. package/dist/components/table/TableFooterCell.d.ts +37 -127
  90. package/dist/components/table/TableHeader.d.ts +37 -127
  91. package/dist/components/table/TableHeaderCell.d.ts +37 -127
  92. package/dist/components/table/TableRow.d.ts +74 -254
  93. package/dist/components/tabs/Tabs.d.ts +44 -403
  94. package/dist/components/tabs/Tabs.js +1 -1
  95. package/dist/components/tabs/TabsContent.d.ts +177 -0
  96. package/dist/components/tabs/TabsContent.js +1 -0
  97. package/dist/components/tabs/TabsTrigger.d.ts +182 -0
  98. package/dist/components/tabs/TabsTrigger.js +1 -0
  99. package/dist/components/tabs/TabsTriggerList.d.ts +42 -136
  100. package/dist/components/tabs/TabsTriggerList.js +1 -1
  101. package/dist/components/text/Text.d.ts +37 -127
  102. package/dist/components/textarea/Textarea.d.ts +37 -127
  103. package/dist/components/toast/Toast.d.ts +37 -127
  104. package/dist/components/toggle-group/ToggleGroupButton.d.ts +104 -284
  105. package/dist/components/toggle-group/ToggleGroupItem.d.ts +104 -284
  106. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +37 -127
  107. package/dist/components/toggle-group/index.d.ts +245 -695
  108. package/dist/components/tooltip/TooltipContent.d.ts +37 -127
  109. package/dist/components/top-bar/TopBar.d.ts +37 -127
  110. package/dist/components/top-bar/TopBarBrand.d.ts +111 -381
  111. package/dist/components/video/Video.d.ts +104 -284
  112. package/dist/docgen.json +1 -1
  113. package/dist/docs/Accordion.mdx +56 -7
  114. package/dist/docs/README.mdx +79 -0
  115. package/dist/docs/Tabs.mdx +31 -57
  116. package/dist/experiments/color-scheme/ColorScheme.d.ts +111 -0
  117. package/dist/experiments/color-scheme/ColorScheme.js +1 -0
  118. package/dist/experiments/color-scheme/blue.json.js +1 -0
  119. package/dist/experiments/color-scheme/generateAlphaColors.d.ts +1 -0
  120. package/dist/experiments/color-scheme/generateAlphaColors.js +1 -0
  121. package/dist/experiments/color-scheme/index.d.ts +1 -0
  122. package/dist/experiments/color-scheme/slate.json.js +1 -0
  123. package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +256 -0
  124. package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -0
  125. package/dist/index.cjs.js +1 -1
  126. package/dist/stitches.d.ts +474 -786
  127. package/dist/stitches.js +1 -1
  128. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  129. package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
  130. package/dist/utilities/hooks/useWindowSize.js +1 -0
  131. package/package.json +4 -3
  132. package/CHANGELOG.md +0 -210
  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.31.0-beta.0",
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": {
package/CHANGELOG.md DELETED
@@ -1,210 +0,0 @@
1
- ## [2.29.1](https://github.com/Atom-Learning/components/compare/v2.29.0...v2.29.1) (2023-01-27)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * reinstated changes that should be here ([25adbf3](https://github.com/Atom-Learning/components/commit/25adbf342a4a9366e06d573cc7c4ecacc36d5265))
7
- * remove hide prop from popovercontent ([3feb90e](https://github.com/Atom-Learning/components/commit/3feb90e15b80ff2b8b6e5141b6feb2d591d154f1))
8
- * remove incorrect prop from DateInput ([865055f](https://github.com/Atom-Learning/components/commit/865055f2b829e468b534b3d883462f641aa7acef))
9
- * snapshots ([f47b5e2](https://github.com/Atom-Learning/components/commit/f47b5e2967e0162aa16056f0aa8cb71fd66549e7))
10
-
11
- # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
12
-
13
-
14
- ### Features
15
-
16
- * **stepper:** adding ability to override default forward behaviour ([#318](https://github.com/Atom-Learning/components/issues/318)) ([c9cc080](https://github.com/Atom-Learning/components/commit/c9cc080ce9c77afda0ba9df48eb74276ce2c4505))
17
-
18
- # [1.3.0](https://github.com/Atom-Learning/components/compare/v1.2.1...v1.3.0) (2022-04-07)
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * add compound variant for outline secondary buttons ([09bb100](https://github.com/Atom-Learning/components/commit/09bb10071d10f421eec37bc505860120396e2232))
24
- * add typings to package.json to explicitly refer index.d.ts ([033c9b6](https://github.com/Atom-Learning/components/commit/033c9b6330d1b75a862a0a0c4d525a53e3707571))
25
- * added type=search back and used css to hide browser icon ([13cf732](https://github.com/Atom-Learning/components/commit/13cf7320eda155eed7b6b340602cfeee02021745))
26
- * adding custom plurals ([ad13522](https://github.com/Atom-Learning/components/commit/ad1352277fac5b6b6e4f4b41c7a7b0092c62d4ae))
27
- * adding label translation, input size, and fixing popover tweaks ([08c47e6](https://github.com/Atom-Learning/components/commit/08c47e6b18537e73150d9010311d8d59d31fdc09))
28
- * adding test for min max values ([5026b4d](https://github.com/Atom-Learning/components/commit/5026b4d95f9ac7a7c9fdc7baf06f153d8c00a8f5))
29
- * adding test for slidersteps ([7254b0f](https://github.com/Atom-Learning/components/commit/7254b0f85d9cb81e2ebeab5946ab91caa46804fb))
30
- * allow external change handler on date input ([d265761](https://github.com/Atom-Learning/components/commit/d26576148c94740899f87cfd6708dc5a982f8fb4))
31
- * attempting to fix merge issue ([531590e](https://github.com/Atom-Learning/components/commit/531590e2ae068be69303f63e83e612e974cb8a90))
32
- * avoid initial render, screenWidth can be left undefined ([35766bf](https://github.com/Atom-Learning/components/commit/35766bfeb28a66bee20e735aaf27b34862815495))
33
- * change accordion type ([8caeed7](https://github.com/Atom-Learning/components/commit/8caeed70b8425090e15ae0451bbc4b8b7601d72c))
34
- * changing composition so value is a separate component ([7cefeed](https://github.com/Atom-Learning/components/commit/7cefeed2d6097152ea484c329d3bce02c45cfc6d))
35
- * changing prop name to appearance ([429cab2](https://github.com/Atom-Learning/components/commit/429cab230f959de10fbbd8af51bebb5942b9193e))
36
- * changing unintuitive variant name ([d6993b0](https://github.com/Atom-Learning/components/commit/d6993b08346dffb6a2033a25f1c05bcbd84bd1c4))
37
- * css as per designs ([9f3a964](https://github.com/Atom-Learning/components/commit/9f3a96483c6acc2482ba7114d45ea11b2cffa529))
38
- * css typing ([324e323](https://github.com/Atom-Learning/components/commit/324e323a0e5aae0bddc76170f7833abf26832809))
39
- * dateinput type error ([ee5e109](https://github.com/Atom-Learning/components/commit/ee5e1094dfc46ec449fc5c1d207c62614dd2e1ea))
40
- * disabled state should not have any interaction whatsoever ([7e458ee](https://github.com/Atom-Learning/components/commit/7e458ee5311be59b552f99eb21aeaa0888168544))
41
- * documentation ([82e8ac4](https://github.com/Atom-Learning/components/commit/82e8ac45bca1d97d34bcb9ac3d36158af5c7edc0))
42
- * drop mount check inside useEffect hook ([8771774](https://github.com/Atom-Learning/components/commit/8771774de3a479d102e804eeec933685f22f1e64))
43
- * ensure dayjs plugin is treated as external dep ([a2525ea](https://github.com/Atom-Learning/components/commit/a2525eaf3d64dbcfd22351ae31d98b3d2d42fef5))
44
- * extend type to allow passing CSS ([261cda6](https://github.com/Atom-Learning/components/commit/261cda629c8435a8615e8b01d51fb55dd0a46d4b))
45
- * fixing tests, changing div to box ([1f57a3a](https://github.com/Atom-Learning/components/commit/1f57a3a874b7049b4accb3d498dfde1563aad4cd))
46
- * focus issue with next/prev buttons ([67d3de3](https://github.com/Atom-Learning/components/commit/67d3de3f5c65ed11f12588757a849bbe4601fa7d))
47
- * forcing boolean to clean up logic ([eeaec16](https://github.com/Atom-Learning/components/commit/eeaec164e7ff5ad35a0f61e38dcfeadff4922a3a))
48
- * introduce enum for icon ([2ce7486](https://github.com/Atom-Learning/components/commit/2ce7486b6410406e1cb67ecc3c5d7f72c4fe1949))
49
- * making position more responsive, updating tests ([01d2e77](https://github.com/Atom-Learning/components/commit/01d2e77a42f78fbe8b6e8ab7d7c3702327e163c9))
50
- * minor test and docs fixes ([a128057](https://github.com/Atom-Learning/components/commit/a1280573e8334c27ae58d5d63169840f1473b755))
51
- * minor tweak to tests ([cfb37a0](https://github.com/Atom-Learning/components/commit/cfb37a073dbb9015e98212525385d50eda1b245f))
52
- * minor update to docs ([c7a1673](https://github.com/Atom-Learning/components/commit/c7a1673f1e655177fcbe93838f84949e645e80dd))
53
- * minor update to docs ([35dbedd](https://github.com/Atom-Learning/components/commit/35dbedd6a0d26001025cf28007e8c9ace8396e73))
54
- * more responsive styling, mdx changes ([e18585a](https://github.com/Atom-Learning/components/commit/e18585accc31e5c62637ad4e9f922a43b10b1e9c))
55
- * positioning of icon ([5f630f0](https://github.com/Atom-Learning/components/commit/5f630f0b351c21a705dcb6f042332ab130f138f3))
56
- * prop name and docs example ([2e6a91e](https://github.com/Atom-Learning/components/commit/2e6a91e882402204507d24391d688f9e608f136b))
57
- * proper types for validationMode ([7f6cb30](https://github.com/Atom-Learning/components/commit/7f6cb300a769a7c43670f937517528519bb4ff13))
58
- * reducing height of track ([43f1f33](https://github.com/Atom-Learning/components/commit/43f1f335b8c1bb9ae06050b7ff913771b1fc5ce8))
59
- * remove unnecessary box wrapper ([cd6203f](https://github.com/Atom-Learning/components/commit/cd6203fab71597d243b25b13be987e0508b462a8))
60
- * remove unnecessary calendar docs, update datefield docs ([2a3ecb0](https://github.com/Atom-Learning/components/commit/2a3ecb0204b29e13f1542f65e11893eaeffad65a))
61
- * remove unused babel file ([8df5e19](https://github.com/Atom-Learning/components/commit/8df5e195eb78c5462e5610cf9d8c3cf1f53c4172))
62
- * remove unused code ([8019865](https://github.com/Atom-Learning/components/commit/8019865df92a86fee4f23480ec09d4dba4c18986))
63
- * remove unwanted padding from container ([2d3fd00](https://github.com/Atom-Learning/components/commit/2d3fd00ccdbdc293d923b96d4a348d508b22c874))
64
- * removing unneeded default value ([4db40c6](https://github.com/Atom-Learning/components/commit/4db40c656bf73b2a459dd69fcee5c0de8d705baf))
65
- * rename Icon component ([ce20992](https://github.com/Atom-Learning/components/commit/ce20992e40e29a6940ef57749184871be539b0b5))
66
- * rename prop and move callback into useEffect hook ([14cd086](https://github.com/Atom-Learning/components/commit/14cd086a536a937087a1088beefedd36170865fd))
67
- * rename test description ([3137897](https://github.com/Atom-Learning/components/commit/313789734a3d06ac0d1e2d5e7ec159335106224b))
68
- * render buttons with display: none to include them in snapshot ([9844223](https://github.com/Atom-Learning/components/commit/9844223fc29a4505620111f8427ba4c3073fe7b0))
69
- * replace babel-jest ([8c1c0d4](https://github.com/Atom-Learning/components/commit/8c1c0d4dcfffe162b0effe415ef96998fb421484))
70
- * replace iconwrapper for accordion ([52d93ad](https://github.com/Atom-Learning/components/commit/52d93ade51e91e9c71e21ab5d078e5ad0668705e))
71
- * revalidate on date select ([a688ed8](https://github.com/Atom-Learning/components/commit/a688ed81950e751e53c686c84331226a03aa397b))
72
- * revert jest to last version to stop node engine errors ([6351b74](https://github.com/Atom-Learning/components/commit/6351b74f7a29363511ed61816b29b09821000ba4))
73
- * review feedback ([9237067](https://github.com/Atom-Learning/components/commit/9237067445a947e3aacde6645a03961de2708703))
74
- * review feedback ([d74a333](https://github.com/Atom-Learning/components/commit/d74a3337de79f373eca066050c0f98116bd9e7e1))
75
- * rotation applied to all icons and not just the arrow ([595a246](https://github.com/Atom-Learning/components/commit/595a246216ffc2bfb84c6c29806d17dcfeb8e817))
76
- * search input onChange ([f13bd23](https://github.com/Atom-Learning/components/commit/f13bd23c8fd12eb32b7c41a62122206891dc9d6f))
77
- * separating slidersteps component ([5d1b0af](https://github.com/Atom-Learning/components/commit/5d1b0afac6268218fd75893365fa0e8ff28095f2))
78
- * separator colours and skipping behaviour ([8e85863](https://github.com/Atom-Learning/components/commit/8e85863fa36f31503cdfc67f74427ff128a77e03))
79
- * slider min max bug ([2a5405f](https://github.com/Atom-Learning/components/commit/2a5405fd7ce0ef7fa13219eb4775b4fa8fc00938))
80
- * snapshot test ([b364cf6](https://github.com/Atom-Learning/components/commit/b364cf66c865a875ae978393c533a1e662bec1b8))
81
- * stepper being able to navigate outside bullet range when no OnComplete handler is passed ([c620481](https://github.com/Atom-Learning/components/commit/c620481fa5d41583779590c63e183f9c0532aba9))
82
- * stepper types ([f7e1c20](https://github.com/Atom-Learning/components/commit/f7e1c208dbb911ccaade2bebb6cdbf49fe82f39b))
83
- * stop render on empty value ([005c14c](https://github.com/Atom-Learning/components/commit/005c14c9fc819f7106ef6768ac1a1ac110af662a))
84
- * tabs jump on font weight change ([219b01b](https://github.com/Atom-Learning/components/commit/219b01bbf86cc81881893b5efd925aea27c1ba93))
85
- * throttle was being called in a wrong way ([bce0d0d](https://github.com/Atom-Learning/components/commit/bce0d0db6d2fc5569bec0e1eec96399fdf573d64))
86
- * TS issues ([fad5121](https://github.com/Atom-Learning/components/commit/fad5121e853f6fa56368c8ec479b260e955c886b))
87
- * tweaking null return logic ([528afda](https://github.com/Atom-Learning/components/commit/528afda648c8c6275414c7856ff145facd4884c2))
88
- * typo on slider mdx ([45c2218](https://github.com/Atom-Learning/components/commit/45c2218bb9e21f41aea864b6ca387794bfcf06b8))
89
- * unifying disabled theme styles ([14538e4](https://github.com/Atom-Learning/components/commit/14538e43f66fb1cf4d1665898c985318aaaada28))
90
- * update snaps ([af59ab1](https://github.com/Atom-Learning/components/commit/af59ab1e77377fac7c71f7e785f44a81b3e24650))
91
- * update theme package ([1059b45](https://github.com/Atom-Learning/components/commit/1059b45256c79fc84bc6f8659b1d32f832b93114))
92
- * updating key to not be index ([26de60e](https://github.com/Atom-Learning/components/commit/26de60e4995a8cd5488a63cec03555ceb9d8d01c))
93
- * updating mdx ([ce15564](https://github.com/Atom-Learning/components/commit/ce155646da9fb5dd4230b9135eaad9cd6d1824e8))
94
- * updating mdx ([60604ee](https://github.com/Atom-Learning/components/commit/60604ee02f959767fdc06d15b8aceb16078918bb))
95
- * updating mdx ([c433934](https://github.com/Atom-Learning/components/commit/c433934f3bc0e3377b2067d61c4a3d0b208b4bdd))
96
- * updating mdx files ([f55277b](https://github.com/Atom-Learning/components/commit/f55277b47476a5614a632b09b39118d0fa3c85c0))
97
- * updating readme ([959ec26](https://github.com/Atom-Learning/components/commit/959ec2629e01bbeb6781e9bcf236fb544153be86))
98
- * updating readme ([4032986](https://github.com/Atom-Learning/components/commit/40329868600b456eff3e7456028e1f747817462b))
99
- * updating style changes to be opt in and better typed ([3b94b09](https://github.com/Atom-Learning/components/commit/3b94b09d7ce7ac359b58149eb2cc86f49a47c740))
100
- * use stitches to style the icon ([5fb3fb2](https://github.com/Atom-Learning/components/commit/5fb3fb2e5a066cc1967ca0093158a363de161ac0))
101
- * yarn.lock ([a81c04a](https://github.com/Atom-Learning/components/commit/a81c04a9f8b67fc222d971c808bc9babfb708b34))
102
-
103
-
104
- ### Features
105
-
106
- * add date field, finalise date input changes ([58edcfc](https://github.com/Atom-Learning/components/commit/58edcfc365ca7a5f902cdffb6f9de9c9f5c2009d))
107
- * add tab scrollers which allows easy navigation if tabs length is more than available space ([cec5b04](https://github.com/Atom-Learning/components/commit/cec5b04235f2c24915050dfd71975608ddee7c86))
108
- * add test:ci option to improve logs on ci ([3452dbb](https://github.com/Atom-Learning/components/commit/3452dbbf141d659a2044148712dd243729fb8916))
109
- * added translation, firstDayOfWeek, test, and documentation ([ca785b4](https://github.com/Atom-Learning/components/commit/ca785b4509ee581f5ba7d916c041f8291235ad24))
110
- * adding neutral outline variant ([53a793a](https://github.com/Atom-Learning/components/commit/53a793a02836a74a8e2dac481cedec2e1707fef2))
111
- * adding new table variants ([8a1fcc8](https://github.com/Atom-Learning/components/commit/8a1fcc8d68f48c78fc3dfc5a9a2e9a758c9eaaf6))
112
- * adding optional uppercase to tabs ([708c6f2](https://github.com/Atom-Learning/components/commit/708c6f2d5ca33988b69f2aa868fdb8543aa56d6b))
113
- * additional icon variant ([7e471bc](https://github.com/Atom-Learning/components/commit/7e471bc558543f84a732bc3180bd79dde76b58aa))
114
- * button neutral theme ([8bbcf1a](https://github.com/Atom-Learning/components/commit/8bbcf1a4301cb07579de485fb6789576f7fa82c1))
115
- * changed new variants colors for different states ([d29b374](https://github.com/Atom-Learning/components/commit/d29b374319bf133d2525681036e9ca3cda326a86))
116
- * grid max item size ([573c17e](https://github.com/Atom-Learning/components/commit/573c17e0aec90b68e636de8238f3a98922113593))
117
- * initial work on calendar component ([ebc8948](https://github.com/Atom-Learning/components/commit/ebc8948b66573efcc782e29b78537d89968d43d8))
118
- * initial work on date input ([4fc6827](https://github.com/Atom-Learning/components/commit/4fc682733639ce69a60e2d869cdeaaeb88f3a4c3))
119
- * initial work on slider ([f5a6ea1](https://github.com/Atom-Learning/components/commit/f5a6ea11349b903ed1b05ab27dc2da0004a2a595))
120
- * make it possible to show / hide close button in modal ([1c44907](https://github.com/Atom-Learning/components/commit/1c44907ad94a5ccf5c07d2b329d292ccb05a9368))
121
- * no light bg for tabs ([b57cdff](https://github.com/Atom-Learning/components/commit/b57cdff08f0c5594d909bcaf2f23414b2087a06a))
122
- * notification badge component ([3f93049](https://github.com/Atom-Learning/components/commit/3f930490be322df4f58e3f643d197e1d7db6d142))
123
- * option to hide the chevron icon in trigger ([6cc28bf](https://github.com/Atom-Learning/components/commit/6cc28bff3dd5a25f734e860cdcbddc17e4725432))
124
- * pass ref onto the ReactPlayer component so that we have access to the ReactPlayer instance ([fb2b09c](https://github.com/Atom-Learning/components/commit/fb2b09ca81e62581dcf3b5e55a8ec5722c3621dc))
125
- * progress-indicator ([b2ebe20](https://github.com/Atom-Learning/components/commit/b2ebe208e0af05245c3738403bb0b6c05250f2d6))
126
- * remove :before and :after for nested Text components ([55e7a9b](https://github.com/Atom-Learning/components/commit/55e7a9be37fac435a85b21c21df505be26b26e89))
127
- * replace babel & terser with esbuild ([bb11c3c](https://github.com/Atom-Learning/components/commit/bb11c3cbb6d226750eaae75372e49d9afaa05606))
128
- * **SearchInput:** added clear functionality ([8c0fc32](https://github.com/Atom-Learning/components/commit/8c0fc3240cfaeb50df231da383a448eabd509d75))
129
- * show / hide scroller buttons based on scroll position ([a6c7e49](https://github.com/Atom-Learning/components/commit/a6c7e49b0851415fc90e4c8d401b6926bacdd719))
130
- * simplifying output label to callback ([fcf0eb2](https://github.com/Atom-Learning/components/commit/fcf0eb2c0d88dfbc6c8b17c8831ba022de537539))
131
- * slider step functionality ([ec0d308](https://github.com/Atom-Learning/components/commit/ec0d308c6f106aed3ba6f130bb163990c923adf9))
132
- * slider value label ([9645dc9](https://github.com/Atom-Learning/components/commit/9645dc9abb3c7dc2fd96212b6c4b395cdc206b89))
133
- * slider.steps component, composition change ([5be643f](https://github.com/Atom-Learning/components/commit/5be643f7caa9db1dcc91bb3c6537dc87458512ed))
134
- * sliderfield component added ([3536925](https://github.com/Atom-Learning/components/commit/35369251f41ddd74bfe491ea5022bd60ab7a2c42))
135
- * support multiple values, updating mdx ([a01bfab](https://github.com/Atom-Learning/components/commit/a01bfab5635b6a0710cb997bc4794fd69299f025))
136
- * tab scroll percentage ([06240fb](https://github.com/Atom-Learning/components/commit/06240fb093d760121ab18ed053f826e37d42cb94))
137
- * update slider api ([d752c75](https://github.com/Atom-Learning/components/commit/d752c751395313cd6fa499c26f5ed342d6b4bbe3))
138
- * update to preset-small-lib to improve performance ([431da9c](https://github.com/Atom-Learning/components/commit/431da9ced8916e0ebc90dc064d200adcb1c25384))
139
- * WIP update packages and improve keyboard accessibility ([e0f5f9d](https://github.com/Atom-Learning/components/commit/e0f5f9dfa989e74c3ada486b16785ebb7f0d7c8e))
140
-
141
-
142
- ### Reverts
143
-
144
- * remove showChevron option ([e9b928c](https://github.com/Atom-Learning/components/commit/e9b928c53e23431563719624cb77b244a79e73b9))
145
-
146
- # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.1...v1.4.0) (2021-12-03)
147
-
148
- # [1.3.1](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.3.1) (2021-11-25)
149
-
150
- # [1.3.0](https://github.com/Atom-Learning/components/compare/v1.2.3...v1.3.0) (2021-11-23)
151
-
152
- # [1.2.3](https://github.com/Atom-Learning/components/compare/v1.2.2...v1.2.3) (2021-11-16)
153
-
154
- # [1.2.2](https://github.com/Atom-Learning/components/compare/v1.2.1...v1.2.2) (2021-11-12)
155
-
156
- # [1.2.1](https://github.com/Atom-Learning/components/compare/v1.2.0...v1.2.1) (2021-11-11)
157
-
158
- # [1.2.0](https://github.com/Atom-Learning/components/compare/v1.1.1...v1.2.0) (2021-11-10)
159
-
160
-
161
- ### Bug Fixes
162
-
163
- * adding TODO on type ([e928651](https://github.com/Atom-Learning/components/commit/e928651928291f8a9b639c8fa6c348b1bafe6513))
164
- * few changes from PR ([e0f75a1](https://github.com/Atom-Learning/components/commit/e0f75a1788af1e23ec6efdfdd24f2788d73d33b0))
165
- * fixing small error on documentation ([3be573a](https://github.com/Atom-Learning/components/commit/3be573a7584cbe8470a0db0186302e3e39e8734b))
166
-
167
-
168
- ### Features
169
-
170
- * adding accordion component ([60eac3c](https://github.com/Atom-Learning/components/commit/60eac3c47e3ce48371af624ff1ec0b6477b86823))
171
-
172
- ## [1.1.1](https://github.com/Atom-Learning/components/compare/v1.1.0...v1.1.1) (2021-11-10)
173
-
174
-
175
- ### Bug Fixes
176
-
177
- * update snapshot ([e71c8a4](https://github.com/Atom-Learning/components/commit/e71c8a4f03227a29eeefca9d2afd7b6355a3ed46))
178
-
179
- # [1.1.0](https://github.com/Atom-Learning/components/compare/v1.0.2...v1.1.0) (2021-11-05)
180
-
181
-
182
- ### Features
183
-
184
- * update dropdown item styles ([6bf229f](https://github.com/Atom-Learning/components/commit/6bf229fbfa9cffaaa74fda5d3629636a926a3404))
185
-
186
- ## [1.0.2](https://github.com/Atom-Learning/components/compare/v1.0.1...v1.0.2) (2021-11-02)
187
-
188
-
189
- ### Bug Fixes
190
-
191
- * reinstate as type on heading and text ([1ec5ca7](https://github.com/Atom-Learning/components/commit/1ec5ca7d7ae09664bbd662cc21fee7784cf1bb3c))
192
- * remove redundant flex styles for block Label ([54715ff](https://github.com/Atom-Learning/components/commit/54715ffc938231b4569a3ce4813c2e25d5404988))
193
- * remove unnecessary overridden as & size types ([985231a](https://github.com/Atom-Learning/components/commit/985231a9259005a6b44cdfe20ba786f942dba81c))
194
-
195
- ## [1.0.1](https://github.com/Atom-Learning/components/compare/v1.0.0...v1.0.1) (2021-11-02)
196
-
197
-
198
- ### Bug Fixes
199
-
200
- * remove cursor pointer from disabled tab ([34c283f](https://github.com/Atom-Learning/components/commit/34c283f70ce73d0ca2b2886e495bcece5475097c))
201
-
202
- # 1.0.0 (2021-10-22)
203
-
204
- - Initial release 🎉
205
-
206
- # Changelog
207
-
208
- All notable changes to this project will be documented in this file.
209
-
210
- _NOTE: THIS FILE IS AUTOMATICALLY UPDATED_
@@ -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};