@traefik-labs/faency 12.3.5 → 12.3.6

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 (263) hide show
  1. package/dist/colors/deepBlue.cjs.map +1 -1
  2. package/dist/colors/deepBlue.js.map +1 -1
  3. package/dist/colors/elevation.cjs.map +1 -1
  4. package/dist/colors/elevation.js.map +1 -1
  5. package/dist/colors/grayBlue.cjs.map +1 -1
  6. package/dist/colors/grayBlue.js.map +1 -1
  7. package/dist/colors/index.cjs +0 -1
  8. package/dist/colors/index.cjs.map +1 -1
  9. package/dist/colors/index.js.map +1 -1
  10. package/dist/colors/neon.cjs.map +1 -1
  11. package/dist/colors/neon.js.map +1 -1
  12. package/dist/colors/orange.cjs.map +1 -1
  13. package/dist/colors/orange.js.map +1 -1
  14. package/dist/colors/red.cjs.map +1 -1
  15. package/dist/colors/red.js.map +1 -1
  16. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  17. package/dist/components/Accordion/Accordion.js.map +1 -1
  18. package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
  19. package/dist/components/Accordion/Accordion.themes.js.map +1 -1
  20. package/dist/components/Alert/Alert.cjs.map +1 -1
  21. package/dist/components/Alert/Alert.js.map +1 -1
  22. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  23. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  24. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  25. package/dist/components/Avatar/Avatar.js.map +1 -1
  26. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  27. package/dist/components/Avatar/Avatar.vanilla.css.cjs +0 -1
  28. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  29. package/dist/components/Badge/Badge.cjs.map +1 -1
  30. package/dist/components/Badge/Badge.js.map +1 -1
  31. package/dist/components/Badge/Badge.theme.cjs.map +1 -1
  32. package/dist/components/Badge/Badge.theme.js.map +1 -1
  33. package/dist/components/Badge/Badge.themes.cjs.map +1 -1
  34. package/dist/components/Badge/Badge.themes.js.map +1 -1
  35. package/dist/components/Badge/Badge.vanilla.cjs +0 -1
  36. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  37. package/dist/components/Badge/Badge.vanilla.css.cjs +0 -1
  38. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  39. package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
  40. package/dist/components/Blockquote/Blockquote.js.map +1 -1
  41. package/dist/components/Blockquote/Blockquote.vanilla.cjs +0 -1
  42. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  43. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +0 -1
  44. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  45. package/dist/components/Box/Box.cjs.map +1 -1
  46. package/dist/components/Box/Box.js.map +1 -1
  47. package/dist/components/Box/Box.vanilla.cjs +0 -1
  48. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  49. package/dist/components/Box/Box.vanilla.js.map +1 -1
  50. package/dist/components/Bubble/Bubble.cjs.map +1 -1
  51. package/dist/components/Bubble/Bubble.js.map +1 -1
  52. package/dist/components/Bubble/Bubble.vanilla.cjs +0 -1
  53. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  54. package/dist/components/Bubble/Bubble.vanilla.css.cjs +0 -1
  55. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  56. package/dist/components/Button/Button.cjs.map +1 -1
  57. package/dist/components/Button/Button.js.map +1 -1
  58. package/dist/components/Button/Button.themes.cjs.map +1 -1
  59. package/dist/components/Button/Button.themes.js.map +1 -1
  60. package/dist/components/Button/Button.vanilla.cjs +0 -1
  61. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  62. package/dist/components/Button/Button.vanilla.css.cjs +0 -1
  63. package/dist/components/Button/Button.vanilla.js.map +1 -1
  64. package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
  65. package/dist/components/ButtonSwitch/ButtonSwitch.js.map +1 -1
  66. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
  67. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
  68. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  69. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  70. package/dist/components/Card/Card.cjs.map +1 -1
  71. package/dist/components/Card/Card.js.map +1 -1
  72. package/dist/components/Card/Card.theme.cjs.map +1 -1
  73. package/dist/components/Card/Card.theme.js.map +1 -1
  74. package/dist/components/Card/Card.themes.cjs.map +1 -1
  75. package/dist/components/Card/Card.themes.js.map +1 -1
  76. package/dist/components/Card/Card.vanilla.cjs +0 -1
  77. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  78. package/dist/components/Card/Card.vanilla.css.cjs +0 -1
  79. package/dist/components/Card/Card.vanilla.js.map +1 -1
  80. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  81. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  82. package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
  83. package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
  84. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
  85. package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
  86. package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
  87. package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
  88. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  89. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  90. package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
  91. package/dist/components/CodeBlock/prism-extend.js.map +1 -1
  92. package/dist/components/Container/Container.cjs.map +1 -1
  93. package/dist/components/Container/Container.js.map +1 -1
  94. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  95. package/dist/components/Container/Container.vanilla.css.cjs +0 -1
  96. package/dist/components/Container/Container.vanilla.js.map +1 -1
  97. package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
  98. package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
  99. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
  100. package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
  101. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  102. package/dist/components/Dialog/Dialog.js.map +1 -1
  103. package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
  104. package/dist/components/Dialog/Dialog.themes.js.map +1 -1
  105. package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  106. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  107. package/dist/components/DropdownMenu/styles.cjs.map +1 -1
  108. package/dist/components/DropdownMenu/styles.js.map +1 -1
  109. package/dist/components/Elevation/Elevation.cjs.map +1 -1
  110. package/dist/components/Elevation/Elevation.js.map +1 -1
  111. package/dist/components/Elevation/Elevation.vanilla.cjs +0 -1
  112. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  113. package/dist/components/Elevation/Elevation.vanilla.css.cjs +0 -1
  114. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  115. package/dist/components/FaencyProvider.cjs.map +1 -1
  116. package/dist/components/FaencyProvider.js.map +1 -1
  117. package/dist/components/Flex/Flex.cjs.map +1 -1
  118. package/dist/components/Flex/Flex.js.map +1 -1
  119. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  120. package/dist/components/Flex/Flex.vanilla.css.cjs +0 -1
  121. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  122. package/dist/components/Grid/Grid.cjs.map +1 -1
  123. package/dist/components/Grid/Grid.js.map +1 -1
  124. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  125. package/dist/components/Grid/Grid.vanilla.css.cjs +0 -1
  126. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  127. package/dist/components/Heading/Heading.cjs.map +1 -1
  128. package/dist/components/Heading/Heading.js.map +1 -1
  129. package/dist/components/Heading/Heading.themes.cjs.map +1 -1
  130. package/dist/components/Heading/Heading.themes.js.map +1 -1
  131. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  132. package/dist/components/IconButton/IconButton.js.map +1 -1
  133. package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
  134. package/dist/components/IconButton/IconButton.themes.js.map +1 -1
  135. package/dist/components/IconButton/IconButton.vanilla.cjs +0 -1
  136. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  137. package/dist/components/IconButton/IconButton.vanilla.css.cjs +0 -1
  138. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  139. package/dist/components/Image/Image.cjs.map +1 -1
  140. package/dist/components/Image/Image.js.map +1 -1
  141. package/dist/components/Image/Image.vanilla.cjs +0 -1
  142. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  143. package/dist/components/Image/Image.vanilla.js.map +1 -1
  144. package/dist/components/Input/Input.cjs.map +1 -1
  145. package/dist/components/Input/Input.js.map +1 -1
  146. package/dist/components/Input/Input.theme.cjs.map +1 -1
  147. package/dist/components/Input/Input.theme.js.map +1 -1
  148. package/dist/components/Input/Input.themes.cjs.map +1 -1
  149. package/dist/components/Input/Input.themes.js.map +1 -1
  150. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  151. package/dist/components/Input/Input.vanilla.css.cjs +0 -1
  152. package/dist/components/Input/Input.vanilla.js.map +1 -1
  153. package/dist/components/Label/Label.cjs.map +1 -1
  154. package/dist/components/Label/Label.js.map +1 -1
  155. package/dist/components/Label/Label.vanilla.cjs +0 -1
  156. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  157. package/dist/components/Label/Label.vanilla.css.cjs +0 -1
  158. package/dist/components/Label/Label.vanilla.js.map +1 -1
  159. package/dist/components/Link/Link.cjs.map +1 -1
  160. package/dist/components/Link/Link.js.map +1 -1
  161. package/dist/components/Link/Link.themes.cjs.map +1 -1
  162. package/dist/components/Link/Link.themes.js.map +1 -1
  163. package/dist/components/List/List.cjs.map +1 -1
  164. package/dist/components/List/List.js.map +1 -1
  165. package/dist/components/List/List.themes.cjs.map +1 -1
  166. package/dist/components/List/List.themes.js.map +1 -1
  167. package/dist/components/Navigation/Navigation.cjs.map +1 -1
  168. package/dist/components/Navigation/Navigation.js.map +1 -1
  169. package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
  170. package/dist/components/Navigation/Navigation.themes.js.map +1 -1
  171. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  172. package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
  173. package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
  174. package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
  175. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
  176. package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
  177. package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
  178. package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
  179. package/dist/components/Overlay.cjs.map +1 -1
  180. package/dist/components/Overlay.js.map +1 -1
  181. package/dist/components/Panel/Panel.cjs.map +1 -1
  182. package/dist/components/Panel/Panel.js.map +1 -1
  183. package/dist/components/Panel/Panel.theme.cjs.map +1 -1
  184. package/dist/components/Panel/Panel.theme.js.map +1 -1
  185. package/dist/components/Panel/Panel.vanilla.cjs +0 -1
  186. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  187. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  188. package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
  189. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  190. package/dist/components/Paragraph/Paragraph.vanilla.cjs +0 -1
  191. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  192. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +0 -1
  193. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  194. package/dist/components/Popover/Popover.cjs.map +1 -1
  195. package/dist/components/Popover/Popover.js.map +1 -1
  196. package/dist/components/Radio/Radio.cjs.map +1 -1
  197. package/dist/components/Radio/Radio.js.map +1 -1
  198. package/dist/components/Radio/Radio.themes.cjs.map +1 -1
  199. package/dist/components/Radio/Radio.themes.js.map +1 -1
  200. package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
  201. package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
  202. package/dist/components/Select/Select.cjs.map +1 -1
  203. package/dist/components/Select/Select.js.map +1 -1
  204. package/dist/components/Select/Select.themes.cjs.map +1 -1
  205. package/dist/components/Select/Select.themes.js.map +1 -1
  206. package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
  207. package/dist/components/SidePanel/SidePanel.js.map +1 -1
  208. package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
  209. package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
  210. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  211. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  212. package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
  213. package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
  214. package/dist/components/Skeleton/Skeleton.vanilla.cjs +0 -1
  215. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  216. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +0 -1
  217. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  218. package/dist/components/Switch/Switch.cjs.map +1 -1
  219. package/dist/components/Switch/Switch.js.map +1 -1
  220. package/dist/components/Switch/Switch.themes.cjs.map +1 -1
  221. package/dist/components/Switch/Switch.themes.js.map +1 -1
  222. package/dist/components/Table/Table.cjs.map +1 -1
  223. package/dist/components/Table/Table.js.map +1 -1
  224. package/dist/components/Table/Table.themes.cjs.map +1 -1
  225. package/dist/components/Table/Table.themes.js.map +1 -1
  226. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  227. package/dist/components/Tabs/Tabs.js.map +1 -1
  228. package/dist/components/Text/Text.cjs.map +1 -1
  229. package/dist/components/Text/Text.js.map +1 -1
  230. package/dist/components/Text/Text.themes.cjs.map +1 -1
  231. package/dist/components/Text/Text.themes.js.map +1 -1
  232. package/dist/components/TextField/TextField.cjs.map +1 -1
  233. package/dist/components/TextField/TextField.js.map +1 -1
  234. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  235. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  236. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  237. package/dist/components/Textarea/Textarea.js.map +1 -1
  238. package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
  239. package/dist/components/Textarea/Textarea.theme.js.map +1 -1
  240. package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
  241. package/dist/components/Textarea/Textarea.themes.js.map +1 -1
  242. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  243. package/dist/components/Textarea/Textarea.vanilla.css.cjs +0 -1
  244. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  245. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  246. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  247. package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
  248. package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
  249. package/dist/components/colorSchemeContext.cjs.map +1 -1
  250. package/dist/components/colorSchemeContext.js.map +1 -1
  251. package/dist/index.cjs +0 -1
  252. package/dist/stitches.config.cjs +0 -1
  253. package/dist/stitches.config.cjs.map +1 -1
  254. package/dist/stitches.config.js.map +1 -1
  255. package/dist/styles/cssProps.cjs.map +1 -1
  256. package/dist/styles/cssProps.js.map +1 -1
  257. package/dist/styles/themeContext.cjs.map +1 -1
  258. package/dist/styles/themeContext.js.map +1 -1
  259. package/dist/utils/deepMerge.cjs.map +1 -1
  260. package/dist/utils/deepMerge.js.map +1 -1
  261. package/dist/utils/getPrimaryColorInfo.cjs.map +1 -1
  262. package/dist/utils/getPrimaryColorInfo.js.map +1 -1
  263. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.themes.js","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAaQ,OAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;CAEY,OAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,MAAM,CAAC,SAAS,GAAI,CAAC,aAAa;EACpF;yBACF"}
1
+ {"version":3,"file":"Radio.themes.js","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAaQ,OAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioAccordion.cjs","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;;;AAoBA,IAAa,sBAAuE,UAClF,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;CAAS,CAAA;AAMhE,IAAa,qBAAqB,MAAA,QAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;CACjD,OACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;GAAU;EACpD,GAAI;EAEH;EACa,CAAA;EAElB;AAEF,IAAM,cAAc,wBAAA,OAAO,OAAO,cAAA,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,mBAClB;CACF,CAAC;AAEF,IAAM,kBAAkB,wBAAA,OAAO,OAAO,cAAA,sBAAsB;AAE5D,IAAM,8BAA8B,wBAAA,OAAO,kBAAA,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,4CACZ,EACF,EACF,EACF,CAAC;AAGF,IAAa,wBAAwB,MAAA,QAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;CACjC,OACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,uBAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,MAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,iBAAA,GAAA,kBAAA,KAAC,aAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAD,EAAmB,CAAA,EACP,CAAA,EACb,SAC2B;KACR,CAAA;EAE1B;AAEF,IAAa,wBAAwB,kBAAA"}
1
+ {"version":3,"file":"RadioAccordion.cjs","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;;;AAoBA,IAAa,sBAAuE,UAClF,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;AAAQ,CAAA;AAM/D,IAAa,qBAAqB,MAAA,QAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;CACjD,OACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;EAAS;EACnD,GAAI;EAEH;CACY,CAAA;AAEnB,CAAC;AAED,IAAM,cAAc,wBAAA,OAAO,OAAO,cAAA,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,kBACnB;AACF,CAAC;AAED,IAAM,kBAAkB,wBAAA,OAAO,OAAO,cAAA,qBAAqB;AAE3D,IAAM,8BAA8B,wBAAA,OAAO,kBAAA,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,2CACb,EACF,EACF,EACF,CAAC;AAGD,IAAa,wBAAwB,MAAA,QAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;CACjC,OACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,uBAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,MAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,iBAAA,GAAA,kBAAA,KAAC,aAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAD,CAAkB,CAAA,EACP,CAAA,GACZ,QAC0B;IACR,CAAA;AAE3B,CAAC;AAED,IAAa,wBAAwB,kBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioAccordion.js","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;AAoBA,IAAa,sBAAuE,UAClF,oBAAC,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;CAAS,CAAA;AAMhE,IAAa,qBAAqB,MAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;CACjD,OACE,oBAAC,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;GAAU;EACpD,GAAI;EAEH;EACa,CAAA;EAElB;AAEF,IAAM,cAAc,OAAO,OAAO,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,mBAClB;CACF,CAAC;AAEF,IAAM,kBAAkB,OAAO,OAAO,sBAAsB;AAE5D,IAAM,8BAA8B,OAAO,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,4CACZ,EACF,EACF,EACF,CAAC;AAGF,IAAa,wBAAwB,MAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;CACjC,OACE,oBAAC,uBAAD,EAAA,UACE,qBAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,EAAmB,CAAA,EACP,CAAA,EACb,SAC2B;KACR,CAAA;EAE1B;AAEF,IAAa,wBAAwB"}
1
+ {"version":3,"file":"RadioAccordion.js","names":[],"sources":["../../../components/RadioAccordion/RadioAccordion.tsx"],"sourcesContent":["import type { AccordionSingleProps } from '@radix-ui/react-accordion';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport {\n AccordionContent,\n AccordionItem,\n AccordionRoot,\n AccordionTriggerProps,\n StyledAccordionHeader,\n StyledAccordionTrigger,\n} from '../Accordion';\nimport { INDICATOR_BASE_STYLES, RADIO_BASE_STYLES } from '../Radio';\n\nexport interface RadioAccordionRootProps\n extends Omit<AccordionSingleProps, 'type' | 'collapsible'>,\n Omit<VariantProps<typeof AccordionRoot>, 'type' | 'collapsible'> {\n css?: CSS; // could not skipped\n}\n\nexport const RadioAccordionRoot: (props: RadioAccordionRootProps) => JSX.Element = (props) => (\n <AccordionRoot {...props} type=\"single\" collapsible={false} />\n);\n\nexport interface RadioAccordionItemProps\n extends ComponentProps<typeof AccordionItem>,\n VariantProps<typeof AccordionItem> {}\nexport const RadioAccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionItem>,\n RadioAccordionItemProps\n>(({ value, children, ...props }, forwardedRef) => {\n return (\n <AccordionItem\n value={value}\n ref={forwardedRef}\n css={{ display: 'inherit', flexDirection: 'column' }}\n {...props}\n >\n {children}\n </AccordionItem>\n );\n});\n\nconst StyledRadio = styled('div', RADIO_BASE_STYLES, {\n width: 18,\n height: 18,\n mr: '$2',\n '[data-state=open] > &': {\n backgroundColor: '$radioIndicator',\n },\n});\n\nconst StyledIndicator = styled('div', INDICATOR_BASE_STYLES);\n\nconst StyledRadioAccordionTrigger = styled(StyledAccordionTrigger, {\n '@hover': {\n '&:hover': {\n [`& ${StyledRadio}`]: {\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n },\n});\n\nexport interface RadioAccordionTriggerProps extends AccordionTriggerProps {}\nexport const RadioAccordionTrigger = React.forwardRef<\n React.ElementRef<typeof StyledRadioAccordionTrigger>,\n RadioAccordionTriggerProps\n>(({ children, ...props }, ref) => {\n return (\n <StyledAccordionHeader>\n <StyledRadioAccordionTrigger ref={ref} {...props}>\n <StyledRadio>\n <StyledIndicator />\n </StyledRadio>\n {children}\n </StyledRadioAccordionTrigger>\n </StyledAccordionHeader>\n );\n});\n\nexport const RadioAccordionContent = AccordionContent;\n"],"mappings":";;;;;;AAoBA,IAAa,sBAAuE,UAClF,oBAAC,eAAD;CAAe,GAAI;CAAO,MAAK;CAAS,aAAa;AAAQ,CAAA;AAM/D,IAAa,qBAAqB,MAAM,YAGrC,EAAE,OAAO,UAAU,GAAG,SAAS,iBAAiB;CACjD,OACE,oBAAC,eAAD;EACS;EACP,KAAK;EACL,KAAK;GAAE,SAAS;GAAW,eAAe;EAAS;EACnD,GAAI;EAEH;CACY,CAAA;AAEnB,CAAC;AAED,IAAM,cAAc,OAAO,OAAO,mBAAmB;CACnD,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,yBAAyB,EACvB,iBAAiB,kBACnB;AACF,CAAC;AAED,IAAM,kBAAkB,OAAO,OAAO,qBAAqB;AAE3D,IAAM,8BAA8B,OAAO,wBAAwB,EACjE,UAAU,EACR,WAAW,GACR,KAAK,gBAAgB,EACpB,WAAW,2CACb,EACF,EACF,EACF,CAAC;AAGD,IAAa,wBAAwB,MAAM,YAGxC,EAAE,UAAU,GAAG,SAAS,QAAQ;CACjC,OACE,oBAAC,uBAAD,EAAA,UACE,qBAAC,6BAAD;EAAkC;EAAK,GAAI;YAA3C,CACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,CAAkB,CAAA,EACP,CAAA,GACZ,QAC0B;IACR,CAAA;AAE3B,CAAC;AAED,IAAa,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.cjs","names":[],"sources":["../../../components/Select/Select.tsx"],"sourcesContent":["import { CaretSortIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\nconst CARET_WIDTH = '15px';\n\nconst StyledCaretSortIcon = styled(CaretSortIcon, {\n position: 'absolute',\n pointerEvents: 'none',\n display: 'inline',\n\n variants: {\n // Use margins instead of top/left to avoid setting \"position: relative\" on parent,\n // which would make stacking context tricky with Select used in a control group.\n size: {\n small: {\n marginTop: 5,\n marginLeft: -16,\n },\n medium: {\n marginTop: 9,\n marginLeft: -16,\n },\n large: {\n marginTop: 13,\n marginLeft: -16,\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '&:focus': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n borderRadius: 'inherit',\n color: 'inherit',\n font: 'inherit',\n outline: 'none',\n width: '100%',\n height: '100%',\n pl: '$1',\n pr: '$3',\n lineHeight: '25px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n '& option': {\n color: 'black',\n bc: 'white',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$selectDisabledText',\n },\n});\n\nconst SelectWrapper = styled('div', {\n position: 'relative',\n backgroundColor: '$selectBg',\n borderRadius: '$2',\n boxShadow: 'inset 0 0 0 1px $colors$selectBorder',\n color: '$selectText',\n fontFamily: '$rubik',\n fontSize: '$1',\n fontVariantNumeric: 'tabular-nums',\n fontWeight: '$regular',\n height: '$5',\n flexShrink: 0,\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$selectFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$selectHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$selectDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n display: 'none',\n },\n '&::after': {\n display: 'none',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n height: '$5',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line': {\n fontSize: '$1',\n },\n [`& ${StyledSelect}`]: {\n pl: '$2',\n pr: `calc($2 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($2 / 2)',\n },\n },\n medium: {\n borderRadius: '$3',\n height: '$6',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n large: {\n borderRadius: '$3',\n height: '$7',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n boxShadow: 'inset 0 0 0 1px $colors$slateA7',\n backgroundColor: '$selectHoverBg',\n },\n },\n '&:focus-within': {\n backgroundColor: '$loContrast',\n boxShadow:\n 'inset 0px 0px 0px 1px $colors$selectFocusBorder, 0px 0px 0px 1px $colors$selectFocusBorder',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$selectInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport type SelectVariants = VariantProps<typeof StyledSelect> &\n VariantProps<typeof SelectWrapper> &\n VariantProps<typeof StyledCaretSortIcon>;\n\nexport type SelectProps = Omit<React.ComponentProps<typeof StyledSelect>, 'size'> &\n SelectVariants & { css?: CSS };\n\nexport const Select = React.forwardRef<React.ElementRef<typeof StyledSelect>, SelectProps>(\n ({ css, size, state, variant, cursor, ...props }, forwardedRef) => {\n return (\n <SelectWrapper\n css={css}\n size={size}\n state={state}\n variant={variant}\n disabled={props.disabled}\n >\n <StyledSelect ref={forwardedRef} {...props} />\n <StyledCaretSortIcon size={size} cursor={cursor} />\n </SelectWrapper>\n );\n }\n);\n\nSelect.toString = () => `.${SelectWrapper.className}`;\n"],"mappings":";;;;;;;;AAOA,IAAM,eAAe,kBAAA,kBAAkB,GAAG;AAC1C,IAAM,cAAc;AAEpB,IAAM,sBAAsB,wBAAA,OAAO,sBAAA,eAAe;CAChD,UAAU;CACV,eAAe;CACf,SAAS;CAET,UAAU;EAGR,MAAM;GACJ,OAAO;IACL,WAAW;IACX,YAAY;IACb;GACD,QAAQ;IACN,WAAW;IACX,YAAY;IACb;GACD,OAAO;IACL,WAAW;IACX,YAAY;IACb;GACF;EACD,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,WAAW,EACT,QAAQ,QACT;IACF;GACD,MAAM,EACJ,QAAQ,QACT;GACF;EACF;CACD,iBAAiB,EACf,MAAM,UACP;CACF,CAAC;AAEF,IAAM,eAAe,wBAAA,OAAO,UAAU;CACpC,YAAY;CACZ,iB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CAAkC,EAChC,UAAU,MACX;KACA,KAAK,iBAAiB;KACrB,IAAI;KACJ,IAAI,aAAa,YAAY;KAC9B;KACA,KAAK,wBAAwB,EAC5B,OAAO,gBACR;IACF;GACD,OAAO;IACL,cAAc;IACd,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,kCAAkC,EAChC,UAAU,MACX;KACA,KAAK,iBAAiB;KACrB,IAAI;KACJ,IAAI,aAAa,YAAY;KAC9B;KACA,KAAK,wBAAwB,EAC5B,OAAO,gBACR;IACF;GACF;EACD,SAAS,EACP,OAAO;GACL,WAAW;GACX,iBAAiB;GACjB,UAAU,EACR,WAAW;IACT,WAAW;IACX,iBAAiB;IAClB,EACF;GACD,kBAAkB;IAChB,iBAAiB;IACjB,WACE;IACH;GACF,EACF;EACD,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,gDAAgD,gBAC5D;GACF,EACF;EACF;CACD,iBAAiB,EACf,MAAM,UACP;CACF,CAAC;AASF,IAAa,SAAS,MAAA,QAAM,YACzB,EAAE,KAAK,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,iBAAiB;CACjE,OACE,iBAAA,GAAA,kBAAA,MAAC,eAAD;EACO;EACC;EACC;EACE;EACT,UAAU,MAAM;YALlB,CAOE,iBAAA,GAAA,kBAAA,KAAC,cAAD;GAAc,KAAK;GAAc,GAAI;GAAS,CAAA,EAC9C,iBAAA,GAAA,kBAAA,KAAC,qBAAD;GAA2B;GAAc;GAAU,CAAA,CACrC;;EAGrB;AAED,OAAO,iBAAiB,IAAI,cAAc"}
1
+ {"version":3,"file":"Select.cjs","names":[],"sources":["../../../components/Select/Select.tsx"],"sourcesContent":["import { CaretSortIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\nconst CARET_WIDTH = '15px';\n\nconst StyledCaretSortIcon = styled(CaretSortIcon, {\n position: 'absolute',\n pointerEvents: 'none',\n display: 'inline',\n\n variants: {\n // Use margins instead of top/left to avoid setting \"position: relative\" on parent,\n // which would make stacking context tricky with Select used in a control group.\n size: {\n small: {\n marginTop: 5,\n marginLeft: -16,\n },\n medium: {\n marginTop: 9,\n marginLeft: -16,\n },\n large: {\n marginTop: 13,\n marginLeft: -16,\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '&:focus': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n borderRadius: 'inherit',\n color: 'inherit',\n font: 'inherit',\n outline: 'none',\n width: '100%',\n height: '100%',\n pl: '$1',\n pr: '$3',\n lineHeight: '25px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n '& option': {\n color: 'black',\n bc: 'white',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$selectDisabledText',\n },\n});\n\nconst SelectWrapper = styled('div', {\n position: 'relative',\n backgroundColor: '$selectBg',\n borderRadius: '$2',\n boxShadow: 'inset 0 0 0 1px $colors$selectBorder',\n color: '$selectText',\n fontFamily: '$rubik',\n fontSize: '$1',\n fontVariantNumeric: 'tabular-nums',\n fontWeight: '$regular',\n height: '$5',\n flexShrink: 0,\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$selectFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$selectHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$selectDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n display: 'none',\n },\n '&::after': {\n display: 'none',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n height: '$5',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line': {\n fontSize: '$1',\n },\n [`& ${StyledSelect}`]: {\n pl: '$2',\n pr: `calc($2 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($2 / 2)',\n },\n },\n medium: {\n borderRadius: '$3',\n height: '$6',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n large: {\n borderRadius: '$3',\n height: '$7',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n boxShadow: 'inset 0 0 0 1px $colors$slateA7',\n backgroundColor: '$selectHoverBg',\n },\n },\n '&:focus-within': {\n backgroundColor: '$loContrast',\n boxShadow:\n 'inset 0px 0px 0px 1px $colors$selectFocusBorder, 0px 0px 0px 1px $colors$selectFocusBorder',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$selectInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport type SelectVariants = VariantProps<typeof StyledSelect> &\n VariantProps<typeof SelectWrapper> &\n VariantProps<typeof StyledCaretSortIcon>;\n\nexport type SelectProps = Omit<React.ComponentProps<typeof StyledSelect>, 'size'> &\n SelectVariants & { css?: CSS };\n\nexport const Select = React.forwardRef<React.ElementRef<typeof StyledSelect>, SelectProps>(\n ({ css, size, state, variant, cursor, ...props }, forwardedRef) => {\n return (\n <SelectWrapper\n css={css}\n size={size}\n state={state}\n variant={variant}\n disabled={props.disabled}\n >\n <StyledSelect ref={forwardedRef} {...props} />\n <StyledCaretSortIcon size={size} cursor={cursor} />\n </SelectWrapper>\n );\n }\n);\n\nSelect.toString = () => `.${SelectWrapper.className}`;\n"],"mappings":";;;;;;;;AAOA,IAAM,eAAe,kBAAA,kBAAkB,GAAG;AAC1C,IAAM,cAAc;AAEpB,IAAM,sBAAsB,wBAAA,OAAO,sBAAA,eAAe;CAChD,UAAU;CACV,eAAe;CACf,SAAS;CAET,UAAU;EAGR,MAAM;GACJ,OAAO;IACL,WAAW;IACX,YAAY;GACd;GACA,QAAQ;IACN,WAAW;IACX,YAAY;GACd;GACA,OAAO;IACL,WAAW;IACX,YAAY;GACd;EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,WAAW,EACT,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,eAAe,wBAAA,OAAO,UAAU;CACpC,YAAY;CACZ,iBAAiB;CACjB,QAAQ;CACR,cAAc;CACd,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,IAAI;CACJ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EAC5B,OAAO,eACT;GACF;GACA,OAAO;IACL,cAAc;IACd,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,kCAAkC,EAChC,UAAU,KACZ;KACC,KAAK,iBAAiB;KACrB,IAAI;KACJ,IAAI,aAAa,YAAY;IAC/B;KACC,KAAK,wBAAwB,EAC5B,OAAO,eACT;GACF;EACF;EACA,SAAS,EACP,OAAO;GACL,WAAW;GACX,iBAAiB;GACjB,UAAU,EACR,WAAW;IACT,WAAW;IACX,iBAAiB;GACnB,EACF;GACA,kBAAkB;IAChB,iBAAiB;IACjB,WACE;GACJ;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,gDAAgD,eAC7D;EACF,EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AASD,IAAa,SAAS,MAAA,QAAM,YACzB,EAAE,KAAK,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,iBAAiB;CACjE,OACE,iBAAA,GAAA,kBAAA,MAAC,eAAD;EACO;EACC;EACC;EACE;EACT,UAAU,MAAM;YALlB,CAOE,iBAAA,GAAA,kBAAA,KAAC,cAAD;GAAc,KAAK;GAAc,GAAI;EAAQ,CAAA,GAC7C,iBAAA,GAAA,kBAAA,KAAC,qBAAD;GAA2B;GAAc;EAAS,CAAA,CACrC;;AAEnB,CACF;AAEA,OAAO,iBAAiB,IAAI,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":[],"sources":["../../../components/Select/Select.tsx"],"sourcesContent":["import { CaretSortIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\nconst CARET_WIDTH = '15px';\n\nconst StyledCaretSortIcon = styled(CaretSortIcon, {\n position: 'absolute',\n pointerEvents: 'none',\n display: 'inline',\n\n variants: {\n // Use margins instead of top/left to avoid setting \"position: relative\" on parent,\n // which would make stacking context tricky with Select used in a control group.\n size: {\n small: {\n marginTop: 5,\n marginLeft: -16,\n },\n medium: {\n marginTop: 9,\n marginLeft: -16,\n },\n large: {\n marginTop: 13,\n marginLeft: -16,\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '&:focus': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n borderRadius: 'inherit',\n color: 'inherit',\n font: 'inherit',\n outline: 'none',\n width: '100%',\n height: '100%',\n pl: '$1',\n pr: '$3',\n lineHeight: '25px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n '& option': {\n color: 'black',\n bc: 'white',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$selectDisabledText',\n },\n});\n\nconst SelectWrapper = styled('div', {\n position: 'relative',\n backgroundColor: '$selectBg',\n borderRadius: '$2',\n boxShadow: 'inset 0 0 0 1px $colors$selectBorder',\n color: '$selectText',\n fontFamily: '$rubik',\n fontSize: '$1',\n fontVariantNumeric: 'tabular-nums',\n fontWeight: '$regular',\n height: '$5',\n flexShrink: 0,\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$selectFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$selectHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$selectDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n display: 'none',\n },\n '&::after': {\n display: 'none',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n height: '$5',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line': {\n fontSize: '$1',\n },\n [`& ${StyledSelect}`]: {\n pl: '$2',\n pr: `calc($2 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($2 / 2)',\n },\n },\n medium: {\n borderRadius: '$3',\n height: '$6',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n large: {\n borderRadius: '$3',\n height: '$7',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n boxShadow: 'inset 0 0 0 1px $colors$slateA7',\n backgroundColor: '$selectHoverBg',\n },\n },\n '&:focus-within': {\n backgroundColor: '$loContrast',\n boxShadow:\n 'inset 0px 0px 0px 1px $colors$selectFocusBorder, 0px 0px 0px 1px $colors$selectFocusBorder',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$selectInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport type SelectVariants = VariantProps<typeof StyledSelect> &\n VariantProps<typeof SelectWrapper> &\n VariantProps<typeof StyledCaretSortIcon>;\n\nexport type SelectProps = Omit<React.ComponentProps<typeof StyledSelect>, 'size'> &\n SelectVariants & { css?: CSS };\n\nexport const Select = React.forwardRef<React.ElementRef<typeof StyledSelect>, SelectProps>(\n ({ css, size, state, variant, cursor, ...props }, forwardedRef) => {\n return (\n <SelectWrapper\n css={css}\n size={size}\n state={state}\n variant={variant}\n disabled={props.disabled}\n >\n <StyledSelect ref={forwardedRef} {...props} />\n <StyledCaretSortIcon size={size} cursor={cursor} />\n </SelectWrapper>\n );\n }\n);\n\nSelect.toString = () => `.${SelectWrapper.className}`;\n"],"mappings":";;;;;;AAOA,IAAM,eAAe,kBAAkB,GAAG;AAC1C,IAAM,cAAc;AAEpB,IAAM,sBAAsB,OAAO,eAAe;CAChD,UAAU;CACV,eAAe;CACf,SAAS;CAET,UAAU;EAGR,MAAM;GACJ,OAAO;IACL,WAAW;IACX,YAAY;IACb;GACD,QAAQ;IACN,WAAW;IACX,YAAY;IACb;GACD,OAAO;IACL,WAAW;IACX,YAAY;IACb;GACF;EACD,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,WAAW,EACT,QAAQ,QACT;IACF;GACD,MAAM,EACJ,QAAQ,QACT;GACF;EACF;CACD,iBAAiB,EACf,MAAM,UACP;CACF,CAAC;AAEF,IAAM,eAAe,OAAO,UAAU;CACpC,YAAY;CACZ,iBAAiB;CACjB,QAAQ;CACR,cAAc;CACd,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,cAAc;CACd,YAAY;CAEZ,YAAY;EACV,OAAO;EACP,IAAI;EACL;CAED,mBAAmB,EACjB,WAAW,8CAA8C,gBAC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B,IAAI;KACJ,IAAI,aAAa,YAAY;KAC9B;KACA,KAAK,wBAAwB,EAC5B,OAAO,gBACR;IACF;GACF;EACD,SAAS,EACP,OAAO;GACL,WAAW;GACX,iBAAiB;GACjB,UAAU,EACR,WAAW;IACT,WAAW;IACX,iBAAiB;IAClB,EACF;GACD,kBAAkB;IAChB,iBAAiB;IACjB,WACE;IACH;GACF,EACF;EACD,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,gDAAgD,gBAC5D;GACF,EACF;EACF;CACD,iBAAiB,EACf,MAAM,UACP;CACF,CAAC;AASF,IAAa,SAAS,MAAM,YACzB,EAAE,KAAK,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,iBAAiB;CACjE,OACE,qBAAC,eAAD;EACO;EACC;EACC;EACE;EACT,UAAU,MAAM;YALlB,CAOE,oBAAC,cAAD;GAAc,KAAK;GAAc,GAAI;GAAS,CAAA,EAC9C,oBAAC,qBAAD;GAA2B;GAAc;GAAU,CAAA,CACrC;;EAGrB;AAED,OAAO,iBAAiB,IAAI,cAAc"}
1
+ {"version":3,"file":"Select.js","names":[],"sources":["../../../components/Select/Select.tsx"],"sourcesContent":["import { CaretSortIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\nconst CARET_WIDTH = '15px';\n\nconst StyledCaretSortIcon = styled(CaretSortIcon, {\n position: 'absolute',\n pointerEvents: 'none',\n display: 'inline',\n\n variants: {\n // Use margins instead of top/left to avoid setting \"position: relative\" on parent,\n // which would make stacking context tricky with Select used in a control group.\n size: {\n small: {\n marginTop: 5,\n marginLeft: -16,\n },\n medium: {\n marginTop: 9,\n marginLeft: -16,\n },\n large: {\n marginTop: 13,\n marginLeft: -16,\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '&:focus': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n borderRadius: 'inherit',\n color: 'inherit',\n font: 'inherit',\n outline: 'none',\n width: '100%',\n height: '100%',\n pl: '$1',\n pr: '$3',\n lineHeight: '25px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n '& option': {\n color: 'black',\n bc: 'white',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$selectDisabledText',\n },\n});\n\nconst SelectWrapper = styled('div', {\n position: 'relative',\n backgroundColor: '$selectBg',\n borderRadius: '$2',\n boxShadow: 'inset 0 0 0 1px $colors$selectBorder',\n color: '$selectText',\n fontFamily: '$rubik',\n fontSize: '$1',\n fontVariantNumeric: 'tabular-nums',\n fontWeight: '$regular',\n height: '$5',\n flexShrink: 0,\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n pointerEvents: 'none',\n borderRadius: 'inherit',\n },\n\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$selectFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$selectHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$selectDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n display: 'none',\n },\n '&::after': {\n display: 'none',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n height: '$5',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line': {\n fontSize: '$1',\n },\n [`& ${StyledSelect}`]: {\n pl: '$2',\n pr: `calc($2 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($2 / 2)',\n },\n },\n medium: {\n borderRadius: '$3',\n height: '$6',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n large: {\n borderRadius: '$3',\n height: '$7',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line': {\n fontSize: '$3',\n },\n [`& ${StyledSelect}`]: {\n pl: '$3',\n pr: `calc($3 + ${CARET_WIDTH})`,\n },\n [`& ${StyledCaretSortIcon}`]: {\n right: 'calc($3 / 2)',\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n boxShadow: 'inset 0 0 0 1px $colors$slateA7',\n backgroundColor: '$selectHoverBg',\n },\n },\n '&:focus-within': {\n backgroundColor: '$loContrast',\n boxShadow:\n 'inset 0px 0px 0px 1px $colors$selectFocusBorder, 0px 0px 0px 1px $colors$selectFocusBorder',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$selectInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$selectInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport type SelectVariants = VariantProps<typeof StyledSelect> &\n VariantProps<typeof SelectWrapper> &\n VariantProps<typeof StyledCaretSortIcon>;\n\nexport type SelectProps = Omit<React.ComponentProps<typeof StyledSelect>, 'size'> &\n SelectVariants & { css?: CSS };\n\nexport const Select = React.forwardRef<React.ElementRef<typeof StyledSelect>, SelectProps>(\n ({ css, size, state, variant, cursor, ...props }, forwardedRef) => {\n return (\n <SelectWrapper\n css={css}\n size={size}\n state={state}\n variant={variant}\n disabled={props.disabled}\n >\n <StyledSelect ref={forwardedRef} {...props} />\n <StyledCaretSortIcon size={size} cursor={cursor} />\n </SelectWrapper>\n );\n }\n);\n\nSelect.toString = () => `.${SelectWrapper.className}`;\n"],"mappings":";;;;;;AAOA,IAAM,eAAe,kBAAkB,GAAG;AAC1C,IAAM,cAAc;AAEpB,IAAM,sBAAsB,OAAO,eAAe;CAChD,UAAU;CACV,eAAe;CACf,SAAS;CAET,UAAU;EAGR,MAAM;GACJ,OAAO;IACL,WAAW;IACX,YAAY;GACd;GACA,QAAQ;IACN,WAAW;IACX,YAAY;GACd;GACA,OAAO;IACL,WAAW;IACX,YAAY;GACd;EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,WAAW,EACT,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,eAAe,OAAO,UAAU;CACpC,YAAY;CACZ,iBAAiB;CACjB,QAAQ;CACR,cAAc;CACd,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,cAAc;CACd,YAAY;CAEZ,YAAY;EACV,OAAO;EACP,IAAI;CACN;CAEA,mBAAmB,EACjB,WAAW,8CAA8C,eAC3D;CAEA,cAAc;EACZ,eAAe;EACf,OAAO;CACT;AACF,CAAC;AAED,IAAM,gBAAgB,OAAO,OAAO;CAClC,UAAU;CACV,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,OAAO;CACP,YAAY;CACZ,UAAU;CACV,oBAAoB;CACpB,YAAY;CACZ,QAAQ;CACR,YAAY;C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BAAiB;IACjB,WACE;GACJ;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,gDAAgD,eAC7D;EACF,EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AASD,IAAa,SAAS,MAAM,YACzB,EAAE,KAAK,MAAM,OAAO,SAAS,QAAQ,GAAG,SAAS,iBAAiB;CACjE,OACE,qBAAC,eAAD;EACO;EACC;EACC;EACE;EACT,UAAU,MAAM;YALlB,CAOE,oBAAC,cAAD;GAAc,KAAK;GAAc,GAAI;EAAQ,CAAA,GAC7C,oBAAC,qBAAD;GAA2B;GAAc;EAAS,CAAA,CACrC;;AAEnB,CACF;AAEA,OAAO,iBAAiB,IAAI,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.themes.cjs","names":[],"sources":["../../../components/Select/Select.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nimport { Theme as InputTheme } from '../Input/Input.themes';\n\nexport namespace Theme {\n type Colors = {\n selectBg: Property.Color;\n selectBorder: Property.Color;\n selectFocusBg: Property.Color;\n selectFocusBorder: Property.Color;\n selectHoverBg: Property.Color;\n selectText: Property.Color;\n selectPlaceholder: Property.Color;\n selectDisabledText: Property.Color;\n selectInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n type FactoryMapper = (colors: InputTheme.Colors) => Colors;\n\n const remapInputTheme: FactoryMapper = (inputLightOrDark) => ({\n selectBg: inputLightOrDark.inputBg,\n selectBorder: inputLightOrDark.inputBorder,\n selectFocusBg: inputLightOrDark.inputFocusBg,\n selectFocusBorder: inputLightOrDark.inputFocusBorder,\n selectHoverBg: inputLightOrDark.inputHoverBg,\n selectText: inputLightOrDark.inputText,\n selectPlaceholder: inputLightOrDark.inputPlaceholder,\n selectDisabledText: inputLightOrDark.inputDisabledText,\n selectInvalidBorder: inputLightOrDark.inputInvalidBorder,\n });\n\n export const getLight: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getLight(primaryColor)),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getDark(primaryColor)),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAgBL,MAAM,mBAAkC,sBAAsB;EAC5D,UAAU,iBAAiB;EAC3B,cAAc,iBAAiB;EAC/B,eAAe,iBAAiB;EAChC,mBAAmB,iBAAiB;EACpC,eAAe,iBAAiB;EAChC,YAAY,iBAAiB;EAC7B,mBAAmB,iBAAiB;EACpC,oBAAoB,iBAAiB;EACrC,qBAAqB,iBAAiB;EACvC;CAEY,OAAA,YAAqB,kBAAkB,EAClD,GAAG,gBAAgB,qBAAA,MAAW,SAAS,aAAa,CAAC,EACtD;CAEY,OAAA,WAAoB,kBAAkB,EACjD,GAAG,gBAAgB,qBAAA,MAAW,QAAQ,aAAa,CAAC,EACrD;yBACF"}
1
+ {"version":3,"file":"Select.themes.cjs","names":[],"sources":["../../../components/Select/Select.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nimport { Theme as InputTheme } from '../Input/Input.themes';\n\nexport namespace Theme {\n type Colors = {\n selectBg: Property.Color;\n selectBorder: Property.Color;\n selectFocusBg: Property.Color;\n selectFocusBorder: Property.Color;\n selectHoverBg: Property.Color;\n selectText: Property.Color;\n selectPlaceholder: Property.Color;\n selectDisabledText: Property.Color;\n selectInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n type FactoryMapper = (colors: InputTheme.Colors) => Colors;\n\n const remapInputTheme: FactoryMapper = (inputLightOrDark) => ({\n selectBg: inputLightOrDark.inputBg,\n selectBorder: inputLightOrDark.inputBorder,\n selectFocusBg: inputLightOrDark.inputFocusBg,\n selectFocusBorder: inputLightOrDark.inputFocusBorder,\n selectHoverBg: inputLightOrDark.inputHoverBg,\n selectText: inputLightOrDark.inputText,\n selectPlaceholder: inputLightOrDark.inputPlaceholder,\n selectDisabledText: inputLightOrDark.inputDisabledText,\n selectInvalidBorder: inputLightOrDark.inputInvalidBorder,\n });\n\n export const getLight: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getLight(primaryColor)),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getDark(primaryColor)),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAgBL,MAAM,mBAAkC,sBAAsB;EAC5D,UAAU,iBAAiB;EAC3B,cAAc,iBAAiB;EAC/B,eAAe,iBAAiB;EAChC,mBAAmB,iBAAiB;EACpC,eAAe,iBAAiB;EAChC,YAAY,iBAAiB;EAC7B,mBAAmB,iBAAiB;EACpC,oBAAoB,iBAAiB;EACrC,qBAAqB,iBAAiB;CACxC;CAEa,OAAA,YAAqB,kBAAkB,EAClD,GAAG,gBAAgB,qBAAA,MAAW,SAAS,YAAY,CAAC,EACtD;CAEa,OAAA,WAAoB,kBAAkB,EACjD,GAAG,gBAAgB,qBAAA,MAAW,QAAQ,YAAY,CAAC,EACrD;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.themes.js","names":[],"sources":["../../../components/Select/Select.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nimport { Theme as InputTheme } from '../Input/Input.themes';\n\nexport namespace Theme {\n type Colors = {\n selectBg: Property.Color;\n selectBorder: Property.Color;\n selectFocusBg: Property.Color;\n selectFocusBorder: Property.Color;\n selectHoverBg: Property.Color;\n selectText: Property.Color;\n selectPlaceholder: Property.Color;\n selectDisabledText: Property.Color;\n selectInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n type FactoryMapper = (colors: InputTheme.Colors) => Colors;\n\n const remapInputTheme: FactoryMapper = (inputLightOrDark) => ({\n selectBg: inputLightOrDark.inputBg,\n selectBorder: inputLightOrDark.inputBorder,\n selectFocusBg: inputLightOrDark.inputFocusBg,\n selectFocusBorder: inputLightOrDark.inputFocusBorder,\n selectHoverBg: inputLightOrDark.inputHoverBg,\n selectText: inputLightOrDark.inputText,\n selectPlaceholder: inputLightOrDark.inputPlaceholder,\n selectDisabledText: inputLightOrDark.inputDisabledText,\n selectInvalidBorder: inputLightOrDark.inputInvalidBorder,\n });\n\n export const getLight: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getLight(primaryColor)),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getDark(primaryColor)),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAgBL,MAAM,mBAAkC,sBAAsB;EAC5D,UAAU,iBAAiB;EAC3B,cAAc,iBAAiB;EAC/B,eAAe,iBAAiB;EAChC,mBAAmB,iBAAiB;EACpC,eAAe,iBAAiB;EAChC,YAAY,iBAAiB;EAC7B,mBAAmB,iBAAiB;EACpC,oBAAoB,iBAAiB;EACrC,qBAAqB,iBAAiB;EACvC;CAEY,OAAA,YAAqB,kBAAkB,EAClD,GAAG,gBAAgB,QAAW,SAAS,aAAa,CAAC,EACtD;CAEY,OAAA,WAAoB,kBAAkB,EACjD,GAAG,gBAAgB,QAAW,QAAQ,aAAa,CAAC,EACrD;yBACF"}
1
+ {"version":3,"file":"Select.themes.js","names":[],"sources":["../../../components/Select/Select.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nimport { Theme as InputTheme } from '../Input/Input.themes';\n\nexport namespace Theme {\n type Colors = {\n selectBg: Property.Color;\n selectBorder: Property.Color;\n selectFocusBg: Property.Color;\n selectFocusBorder: Property.Color;\n selectHoverBg: Property.Color;\n selectText: Property.Color;\n selectPlaceholder: Property.Color;\n selectDisabledText: Property.Color;\n selectInvalidBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n type FactoryMapper = (colors: InputTheme.Colors) => Colors;\n\n const remapInputTheme: FactoryMapper = (inputLightOrDark) => ({\n selectBg: inputLightOrDark.inputBg,\n selectBorder: inputLightOrDark.inputBorder,\n selectFocusBg: inputLightOrDark.inputFocusBg,\n selectFocusBorder: inputLightOrDark.inputFocusBorder,\n selectHoverBg: inputLightOrDark.inputHoverBg,\n selectText: inputLightOrDark.inputText,\n selectPlaceholder: inputLightOrDark.inputPlaceholder,\n selectDisabledText: inputLightOrDark.inputDisabledText,\n selectInvalidBorder: inputLightOrDark.inputInvalidBorder,\n });\n\n export const getLight: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getLight(primaryColor)),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n ...remapInputTheme(InputTheme.getDark(primaryColor)),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAgBL,MAAM,mBAAkC,sBAAsB;EAC5D,UAAU,iBAAiB;EAC3B,cAAc,iBAAiB;EAC/B,eAAe,iBAAiB;EAChC,mBAAmB,iBAAiB;EACpC,eAAe,iBAAiB;EAChC,YAAY,iBAAiB;EAC7B,mBAAmB,iBAAiB;EACpC,oBAAoB,iBAAiB;EACrC,qBAAqB,iBAAiB;CACxC;CAEa,OAAA,YAAqB,kBAAkB,EAClD,GAAG,gBAAgB,QAAW,SAAS,YAAY,CAAC,EACtD;CAEa,OAAA,WAAoB,kBAAkB,EACjD,GAAG,gBAAgB,QAAW,QAAQ,YAAY,CAAC,EACrD;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.cjs","names":[],"sources":["../../../components/SidePanel/SidePanel.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\nimport { IconButton } from '../IconButton';\nimport { overlayStyles } from '../Overlay';\n\nconst fadeIn = keyframes({\n from: { opacity: '0' },\n to: { opacity: '1' },\n});\n\nconst fadeOut = keyframes({\n from: { opacity: '1' },\n to: { opacity: '0' },\n});\n\nconst SidePanelOverlay = styled(DialogPrimitive.Overlay, overlayStyles, {\n position: 'fixed',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n});\n\nconst slideIn = keyframes({\n from: { transform: '$$transformValue' },\n to: { transform: 'translate3d(0,0,0)' },\n});\n\nconst slideOut = keyframes({\n from: { transform: 'translate3d(0,0,0)' },\n to: { transform: '$$transformValue' },\n});\n\nconst StyledContent = styled(DialogPrimitive.Content, {\n backgroundColor: '$sidePanelBackground',\n boxShadow: 'inset 0 0 0 1px $colors$deepBlue4',\n position: 'fixed',\n top: 0,\n bottom: 0,\n width: 375,\n p: '$4',\n\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n variants: {\n side: {\n top: {\n $$transformValue: 'translate3d(0,-100%,0)',\n width: '100%',\n height: 250,\n bottom: 'auto',\n },\n right: {\n $$transformValue: 'translate3d(100%,0,0)',\n right: 0,\n maxWidth: '50%',\n },\n bottom: {\n $$transformValue: 'translate3d(0,100%,0)',\n width: '100%',\n height: 250,\n bottom: 0,\n top: 'auto',\n },\n left: {\n $$transformValue: 'translate3d(-100%,0,0)',\n left: 0,\n maxWidth: '50%',\n },\n },\n },\n\n defaultVariants: {\n side: 'right',\n },\n});\n\nconst StyledCloseButton = styled(DialogPrimitive.Close, {\n position: 'absolute',\n top: '$2',\n right: '$2',\n cursor: 'pointer',\n});\n\ninterface SidePanelCloseButtonProps\n extends VariantProps<typeof IconButton>,\n ComponentProps<typeof IconButton> {}\n\nconst SidePanelCloseIconButton = React.forwardRef<\n React.ElementRef<typeof IconButton>,\n SidePanelCloseButtonProps\n>((props, forwardedRef) => (\n <StyledCloseButton asChild>\n <IconButton ref={forwardedRef} css={{ color: '$hiContrast' }} {...props}>\n <Cross1Icon />\n </IconButton>\n </StyledCloseButton>\n));\n\ntype SidePanelContentVariants = VariantProps<typeof StyledContent>;\ntype SidePanelContentPrimitiveProps = React.ComponentProps<typeof DialogPrimitive.Content>;\ntype SidePanelProps = SidePanelContentPrimitiveProps &\n SidePanelContentVariants & {\n css?: CSS;\n description?: string;\n noOverlay?: boolean;\n noCloseIcon?: boolean;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange(open: boolean): void;\n };\n\nexport const SidePanel = React.forwardRef<React.ElementRef<typeof StyledContent>, SidePanelProps>(\n (\n {\n description,\n noOverlay = false,\n noCloseIcon = false,\n children,\n onOpenChange,\n open = false,\n defaultOpen = false,\n ...props\n },\n forwardedRef,\n ) => (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange} defaultOpen={defaultOpen}>\n <DialogPrimitive.Portal>\n {!noOverlay && <SidePanelOverlay />}\n <StyledContent {...props} ref={forwardedRef}>\n {description ? (\n <VisuallyHidden asChild>\n <DialogPrimitive.Description>{description}</DialogPrimitive.Description>\n </VisuallyHidden>\n ) : null}\n {children}\n {!noCloseIcon && <SidePanelCloseIconButton />}\n </StyledContent>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n ),\n);\n"],"mappings":";;;;;;;;;;;;AASA,IAAM,SAAS,wBAAA,UAAU;CACvB,MAAM,EAAE,SAAS,KAAK;CACtB,IAAI,EAAE,SAAS,KAAK;CACrB,CAAC;AAEF,IAAM,UAAU,wBAAA,UAAU;CACxB,MAAM,EAAE,SAAS,KAAK;CACtB,IAAI,EAAE,SAAS,KAAK;CACrB,CAAC;AAEF,IAAM,mBAAmB,wBAAA,OAAO,uBAAgB,SAAS,gBAAA,eAAe;CACtE,U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BAAA,KAAC,sBAAA,YAAD,EAAc,CAAA;EACH,CAAA;CACK,CAAA,CACpB;AAeF,IAAa,YAAY,MAAA,QAAM,YAE3B,EACE,aACA,YAAY,OACZ,cAAc,OACd,UACA,cACA,OAAO,OACP,cAAc,OACd,GAAG,SAEL,iBAEA,iBAAA,GAAA,kBAAA,KAAC,uBAAgB,MAAjB;CAA4B;CAAoB;CAA2B;WACzE,iBAAA,GAAA,kBAAA,MAAC,uBAAgB,QAAjB,EAAA,UAAA,CACG,CAAC,aAAa,iBAAA,GAAA,kBAAA,KAAC,kBAAD,EAAoB,CAAA,EACnC,iBAAA,GAAA,kBAAA,MAAC,eAAD;EAAe,GAAI;EAAO,KAAK;YAA/B;GACG,cACC,iBAAA,GAAA,kBAAA,KAAC,gCAAA,gBAAD;IAAgB,SAAA;cACd,iBAAA,GAAA,kBAAA,KAAC,uBAAgB,aAAjB,EAAA,UAA8B,aAA0C,CAAA;IACzD,CAAA,GACf;GACH;GACA,CAAC,eAAe,iBAAA,GAAA,kBAAA,KAAC,0BAAD,EAA4B,CAAA;GAC/B;IACO,EAAA,CAAA;CACJ,CAAA,CAE1B"}
1
+ {"version":3,"file":"SidePanel.cjs","names":[],"sources":["../../../components/SidePanel/SidePanel.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\nimport { IconButton } from '../IconButton';\nimport { overlayStyles } from '../Overlay';\n\nconst fadeIn = keyframes({\n from: { opacity: '0' },\n to: { opacity: '1' },\n});\n\nconst fadeOut = keyframes({\n from: { opacity: '1' },\n to: { opacity: '0' },\n});\n\nconst SidePanelOverlay = styled(DialogPrimitive.Overlay, overlayStyles, {\n position: 'fixed',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n});\n\nconst slideIn = keyframes({\n from: { transform: '$$transformValue' },\n to: { transform: 'translate3d(0,0,0)' },\n});\n\nconst slideOut = keyframes({\n from: { transform: 'translate3d(0,0,0)' },\n to: { transform: '$$transformValue' },\n});\n\nconst StyledContent = styled(DialogPrimitive.Content, {\n backgroundColor: '$sidePanelBackground',\n boxShadow: 'inset 0 0 0 1px $colors$deepBlue4',\n position: 'fixed',\n top: 0,\n bottom: 0,\n width: 375,\n p: '$4',\n\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n variants: {\n side: {\n top: {\n $$transformValue: 'translate3d(0,-100%,0)',\n width: '100%',\n height: 250,\n bottom: 'auto',\n },\n right: {\n $$transformValue: 'translate3d(100%,0,0)',\n right: 0,\n maxWidth: '50%',\n },\n bottom: {\n $$transformValue: 'translate3d(0,100%,0)',\n width: '100%',\n height: 250,\n bottom: 0,\n top: 'auto',\n },\n left: {\n $$transformValue: 'translate3d(-100%,0,0)',\n left: 0,\n maxWidth: '50%',\n },\n },\n },\n\n defaultVariants: {\n side: 'right',\n },\n});\n\nconst StyledCloseButton = styled(DialogPrimitive.Close, {\n position: 'absolute',\n top: '$2',\n right: '$2',\n cursor: 'pointer',\n});\n\ninterface SidePanelCloseButtonProps\n extends VariantProps<typeof IconButton>,\n ComponentProps<typeof IconButton> {}\n\nconst SidePanelCloseIconButton = React.forwardRef<\n React.ElementRef<typeof IconButton>,\n SidePanelCloseButtonProps\n>((props, forwardedRef) => (\n <StyledCloseButton asChild>\n <IconButton ref={forwardedRef} css={{ color: '$hiContrast' }} {...props}>\n <Cross1Icon />\n </IconButton>\n </StyledCloseButton>\n));\n\ntype SidePanelContentVariants = VariantProps<typeof StyledContent>;\ntype SidePanelContentPrimitiveProps = React.ComponentProps<typeof DialogPrimitive.Content>;\ntype SidePanelProps = SidePanelContentPrimitiveProps &\n SidePanelContentVariants & {\n css?: CSS;\n description?: string;\n noOverlay?: boolean;\n noCloseIcon?: boolean;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange(open: boolean): void;\n };\n\nexport const SidePanel = React.forwardRef<React.ElementRef<typeof StyledContent>, SidePanelProps>(\n (\n {\n description,\n noOverlay = false,\n noCloseIcon = false,\n children,\n onOpenChange,\n open = false,\n defaultOpen = false,\n ...props\n },\n forwardedRef,\n ) => (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange} defaultOpen={defaultOpen}>\n <DialogPrimitive.Portal>\n {!noOverlay && <SidePanelOverlay />}\n <StyledContent {...props} ref={forwardedRef}>\n {description ? (\n <VisuallyHidden asChild>\n <DialogPrimitive.Description>{description}</DialogPrimitive.Description>\n </VisuallyHidden>\n ) : null}\n {children}\n {!noCloseIcon && <SidePanelCloseIconButton />}\n </StyledContent>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n ),\n);\n"],"mappings":";;;;;;;;;;;;AASA,IAAM,SAAS,wBAAA,UAAU;CACvB,MAAM,EAAE,SAAS,IAAI;CACrB,IAAI,EAAE,SAAS,IAAI;AACrB,CAAC;AAED,IAAM,UAAU,wBAAA,UAAU;CACxB,MAAM,EAAE,SAAS,IAAI;CACrB,IAAI,EAAE,SAAS,IAAI;AACrB,CAAC;AAED,IAAM,mBAAmB,wBAAA,OAAO,uBAAgB,SAAS,gBAAA,eAAe;CACtE,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CAEN,0BAAwB,EACtB,WAAW,GAAG,OAAO,uCACvB;CAEA,4BAA0B,EACxB,WAAW,GAAG,QAAQ,uCACxB;AACF,CAAC;AAED,IAAM,UAAU,wBAAA,UAAU;CACxB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iBAAA,GAAA,kBAAA,KAAC,uBAAgB,MAAjB;CAA4B;CAAoB;CAA2B;WACzE,iBAAA,GAAA,kBAAA,MAAC,uBAAgB,QAAjB,EAAA,UAAA,CACG,CAAC,aAAa,iBAAA,GAAA,kBAAA,KAAC,kBAAD,CAAmB,CAAA,GAClC,iBAAA,GAAA,kBAAA,MAAC,eAAD;EAAe,GAAI;EAAO,KAAK;YAA/B;GACG,cACC,iBAAA,GAAA,kBAAA,KAAC,gCAAA,gBAAD;IAAgB,SAAA;cACd,iBAAA,GAAA,kBAAA,KAAC,uBAAgB,aAAjB,EAAA,UAA8B,YAAyC,CAAA;GACzD,CAAA,IACd;GACH;GACA,CAAC,eAAe,iBAAA,GAAA,kBAAA,KAAC,0BAAD,CAA2B,CAAA;EAC/B;GACO,EAAA,CAAA;AACJ,CAAA,CAE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.js","names":[],"sources":["../../../components/SidePanel/SidePanel.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\nimport { IconButton } from '../IconButton';\nimport { overlayStyles } from '../Overlay';\n\nconst fadeIn = keyframes({\n from: { opacity: '0' },\n to: { opacity: '1' },\n});\n\nconst fadeOut = keyframes({\n from: { opacity: '1' },\n to: { opacity: '0' },\n});\n\nconst SidePanelOverlay = styled(DialogPrimitive.Overlay, overlayStyles, {\n position: 'fixed',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n});\n\nconst slideIn = keyframes({\n from: { transform: '$$transformValue' },\n to: { transform: 'translate3d(0,0,0)' },\n});\n\nconst slideOut = keyframes({\n from: { transform: 'translate3d(0,0,0)' },\n to: { transform: '$$transformValue' },\n});\n\nconst StyledContent = styled(DialogPrimitive.Content, {\n backgroundColor: '$sidePanelBackground',\n boxShadow: 'inset 0 0 0 1px $colors$deepBlue4',\n position: 'fixed',\n top: 0,\n bottom: 0,\n width: 375,\n p: '$4',\n\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n variants: {\n side: {\n top: {\n $$transformValue: 'translate3d(0,-100%,0)',\n width: '100%',\n height: 250,\n bottom: 'auto',\n },\n right: {\n $$transformValue: 'translate3d(100%,0,0)',\n right: 0,\n maxWidth: '50%',\n },\n bottom: {\n $$transformValue: 'translate3d(0,100%,0)',\n width: '100%',\n height: 250,\n bottom: 0,\n top: 'auto',\n },\n left: {\n $$transformValue: 'translate3d(-100%,0,0)',\n left: 0,\n maxWidth: '50%',\n },\n },\n },\n\n defaultVariants: {\n side: 'right',\n },\n});\n\nconst StyledCloseButton = styled(DialogPrimitive.Close, {\n position: 'absolute',\n top: '$2',\n right: '$2',\n cursor: 'pointer',\n});\n\ninterface SidePanelCloseButtonProps\n extends VariantProps<typeof IconButton>,\n ComponentProps<typeof IconButton> {}\n\nconst SidePanelCloseIconButton = React.forwardRef<\n React.ElementRef<typeof IconButton>,\n SidePanelCloseButtonProps\n>((props, forwardedRef) => (\n <StyledCloseButton asChild>\n <IconButton ref={forwardedRef} css={{ color: '$hiContrast' }} {...props}>\n <Cross1Icon />\n </IconButton>\n </StyledCloseButton>\n));\n\ntype SidePanelContentVariants = VariantProps<typeof StyledContent>;\ntype SidePanelContentPrimitiveProps = React.ComponentProps<typeof DialogPrimitive.Content>;\ntype SidePanelProps = SidePanelContentPrimitiveProps &\n SidePanelContentVariants & {\n css?: CSS;\n description?: string;\n noOverlay?: boolean;\n noCloseIcon?: boolean;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange(open: boolean): void;\n };\n\nexport const SidePanel = React.forwardRef<React.ElementRef<typeof StyledContent>, SidePanelProps>(\n (\n {\n description,\n noOverlay = false,\n noCloseIcon = false,\n children,\n onOpenChange,\n open = false,\n defaultOpen = false,\n ...props\n },\n forwardedRef,\n ) => (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange} defaultOpen={defaultOpen}>\n <DialogPrimitive.Portal>\n {!noOverlay && <SidePanelOverlay />}\n <StyledContent {...props} ref={forwardedRef}>\n {description ? (\n <VisuallyHidden asChild>\n <DialogPrimitive.Description>{description}</DialogPrimitive.Description>\n </VisuallyHidden>\n ) : null}\n {children}\n {!noCloseIcon && <SidePanelCloseIconButton />}\n </StyledContent>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n ),\n);\n"],"mappings":";;;;;;;;;AASA,IAAM,SAAS,UAAU;CACvB,MAAM,EAAE,SAAS,KAAK;CACtB,IAAI,EAAE,SAAS,KAAK;CACrB,CAAC;AAEF,IAAM,UAAU,UAAU;CACxB,MAAM,EAAE,SAAS,KAAK;CACtB,IAAI,EAAE,SAAS,KAAK;CACrB,CAAC;AAEF,IAAM,mBAAmB,OAAO,gBAAgB,SAAS,eAAe;CACtE,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CAEN,0BAAwB,EACtB,WAAW,GAAG,OAAO,wCACtB;CAED,4BAA0B,EACxB,WAAW,GAAG,QAAQ,wCACvB;CACF,CAAC;AAEF,IAAM,UAAU,UAAU;CACxB,MAAM,EAAE,WAAW,oBAAoB;CACvC,IAAI,EAAE,WAAW,sBAAsB;CACxC,CAAC;AAEF,IAAM,WAAW,UAAU;CACzB,MAAM,EAAE,WAAW,sBAAsB;CACzC,IAAI,EAAE,WAAW,oBAAoB;CACtC,CAAC;AAEF,IAAM,gBAAgB,OAAO,gBAAgB,SAA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AAD,EAA4B,CAAA;GAC/B;IACO,EAAA,CAAA;CACJ,CAAA,CAE1B"}
1
+ {"version":3,"file":"SidePanel.js","names":[],"sources":["../../../components/SidePanel/SidePanel.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport React, { ComponentProps } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\nimport { IconButton } from '../IconButton';\nimport { overlayStyles } from '../Overlay';\n\nconst fadeIn = keyframes({\n from: { opacity: '0' },\n to: { opacity: '1' },\n});\n\nconst fadeOut = keyframes({\n from: { opacity: '1' },\n to: { opacity: '0' },\n});\n\nconst SidePanelOverlay = styled(DialogPrimitive.Overlay, overlayStyles, {\n position: 'fixed',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n});\n\nconst slideIn = keyframes({\n from: { transform: '$$transformValue' },\n to: { transform: 'translate3d(0,0,0)' },\n});\n\nconst slideOut = keyframes({\n from: { transform: 'translate3d(0,0,0)' },\n to: { transform: '$$transformValue' },\n});\n\nconst StyledContent = styled(DialogPrimitive.Content, {\n backgroundColor: '$sidePanelBackground',\n boxShadow: 'inset 0 0 0 1px $colors$deepBlue4',\n position: 'fixed',\n top: 0,\n bottom: 0,\n width: 375,\n p: '$4',\n\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,\n },\n\n variants: {\n side: {\n top: {\n $$transformValue: 'translate3d(0,-100%,0)',\n width: '100%',\n height: 250,\n bottom: 'auto',\n },\n right: {\n $$transformValue: 'translate3d(100%,0,0)',\n right: 0,\n maxWidth: '50%',\n },\n bottom: {\n $$transformValue: 'translate3d(0,100%,0)',\n width: '100%',\n height: 250,\n bottom: 0,\n top: 'auto',\n },\n left: {\n $$transformValue: 'translate3d(-100%,0,0)',\n left: 0,\n maxWidth: '50%',\n },\n },\n },\n\n defaultVariants: {\n side: 'right',\n },\n});\n\nconst StyledCloseButton = styled(DialogPrimitive.Close, {\n position: 'absolute',\n top: '$2',\n right: '$2',\n cursor: 'pointer',\n});\n\ninterface SidePanelCloseButtonProps\n extends VariantProps<typeof IconButton>,\n ComponentProps<typeof IconButton> {}\n\nconst SidePanelCloseIconButton = React.forwardRef<\n React.ElementRef<typeof IconButton>,\n SidePanelCloseButtonProps\n>((props, forwardedRef) => (\n <StyledCloseButton asChild>\n <IconButton ref={forwardedRef} css={{ color: '$hiContrast' }} {...props}>\n <Cross1Icon />\n </IconButton>\n </StyledCloseButton>\n));\n\ntype SidePanelContentVariants = VariantProps<typeof StyledContent>;\ntype SidePanelContentPrimitiveProps = React.ComponentProps<typeof DialogPrimitive.Content>;\ntype SidePanelProps = SidePanelContentPrimitiveProps &\n SidePanelContentVariants & {\n css?: CSS;\n description?: string;\n noOverlay?: boolean;\n noCloseIcon?: boolean;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange(open: boolean): void;\n };\n\nexport const SidePanel = React.forwardRef<React.ElementRef<typeof StyledContent>, SidePanelProps>(\n (\n {\n description,\n noOverlay = false,\n noCloseIcon = false,\n children,\n onOpenChange,\n open = false,\n defaultOpen = false,\n ...props\n },\n forwardedRef,\n ) => (\n <DialogPrimitive.Root open={open} onOpenChange={onOpenChange} defaultOpen={defaultOpen}>\n <DialogPrimitive.Portal>\n {!noOverlay && <SidePanelOverlay />}\n <StyledContent {...props} ref={forwardedRef}>\n {description ? (\n <VisuallyHidden asChild>\n <DialogPrimitive.Description>{description}</DialogPrimitive.Description>\n </VisuallyHidden>\n ) : null}\n {children}\n {!noCloseIcon && <SidePanelCloseIconButton />}\n </StyledContent>\n </DialogPrimitive.Portal>\n </DialogPrimitive.Root>\n ),\n);\n"],"mappings":";;;;;;;;;AASA,IAAM,SAAS,UAAU;CACvB,MAAM,EAAE,SAAS,IAAI;CACrB,IAAI,EAAE,SAAS,IAAI;AACrB,CAAC;AAED,IAAM,UAAU,UAAU;CACxB,MAAM,EAAE,SAAS,IAAI;CACrB,IAAI,EAAE,SAAS,IAAI;AACrB,CAAC;AAED,IAAM,mBAAmB,OAAO,gBAAgB,SAAS,eAAe;CACtE,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,MAAM;CAEN,0BAAwB,EACtB,WAAW,GAAG,OAAO,uCACvB;CAEA,4BAA0B,EACxB,WAAW,GAAG,QAAQ,uCACxB;AACF,CAAC;AAED,IAAM,UAAU,UAAU;CACxB,MAAM,EAAE,WAAW,mBAAmB;CACtC,IAAI,EAAE,WAAW,qBAAqB;AACxC,CAAC;AAED,IAAM,WAAW,UAAU;CACzB,MAAM,EAAE,WAAW,qBAAqB;CACxC,IAAI,EAAE,WAAW,mBAAmB;AACtC,CAAC;AAED,IAAM,gBAAgB,OAAO,gBAAgB,SAAS;CACpD,iBAAiB;CACjB,WAAW;CACX,UAAU;CACV,KAAK;CACL,QAAQ;CACR,OAAO;CACP,GAAG;CAEH,0BAAwB,EACtB,WAAW,GAAG,QAAQ,uCACxB;CAEA,4BAA0B,EACxB,WAAW,GAAG,SAAS,uCACzB;CAEA,UAAU,EACR,MAAM;EACJ,KAAK;GACH,kBAAkB;GAClB,OAAO;GACP,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GACL,kBAAkB;GAClB,OAAO;GACP,UAAU;EACZ;EACA,QAAQ;GACN,kBAAkB;GAClB,OAAO;GACP,QAAQ;GACR,QAAQ;GACR,KAAK;EACP;EACA,MAAM;GACJ,kBAAkB;GAClB,MAAM;GACN,UAAU;EACZ;CACF,EACF;CAEA,iBAAiB,EACf,MAAM,QACR;AACF,CAAC;AAED,IAAM,oBAAoB,OAAO,gBAAgB,OAAO;CACtD,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;AACV,CAAC;AAMD,IAAM,2BAA2B,MAAM,YAGpC,OAAO,iBACR,oBAAC,mBAAD;CAAmB,SAAA;WACjB,oBAAC,YAAD;EAAY,KAAK;EAAc,KAAK,EAAE,OAAO,cAAc;EAAG,GAAI;YAChE,oBAAC,YAAD,CAAa,CAAA;CACH,CAAA;AACK,CAAA,CACpB;AAeD,IAAa,YAAY,MAAM,YAE3B,EACE,aACA,YAAY,OACZ,cAAc,OACd,UACA,cACA,OAAO,OACP,cAAc,OACd,GAAG,SAEL,iBAEA,oBAAC,gBAAgB,MAAjB;CAA4B;CAAoB;CAA2B;WACzE,qBAAC,gBAAgB,QAAjB,EAAA,UAAA,CACG,CAAC,aAAa,oBAAC,kBAAD,CAAmB,CAAA,GAClC,qBAAC,eAAD;EAAe,GAAI;EAAO,KAAK;YAA/B;GACG,cACC,oBAAC,gBAAD;IAAgB,SAAA;cACd,oBAAC,gBAAgB,aAAjB,EAAA,UAA8B,YAAyC,CAAA;GACzD,CAAA,IACd;GACH;GACA,CAAC,eAAe,oBAAC,0BAAD,CAA2B,CAAA;EAC/B;GACO,EAAA,CAAA;AACJ,CAAA,CAE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.themes.cjs","names":[],"sources":["../../../components/SidePanel/SidePanel.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n sidePanelBackground: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n sidePanelBackground: '$deepBlue2',\n });\n\n export const getDark: Factory = () => ({\n sidePanelBackground: '$deepBlue3',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAOQ,OAAA,kBAA2B,EACtC,qBAAqB,cACtB;CAEY,OAAA,iBAA0B,EACrC,qBAAqB,cACtB;yBACF"}
1
+ {"version":3,"file":"SidePanel.themes.cjs","names":[],"sources":["../../../components/SidePanel/SidePanel.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n sidePanelBackground: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n sidePanelBackground: '$deepBlue2',\n });\n\n export const getDark: Factory = () => ({\n sidePanelBackground: '$deepBlue3',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAOQ,OAAA,kBAA2B,EACtC,qBAAqB,aACvB;CAEa,OAAA,iBAA0B,EACrC,qBAAqB,aACvB;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.themes.js","names":[],"sources":["../../../components/SidePanel/SidePanel.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n sidePanelBackground: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n sidePanelBackground: '$deepBlue2',\n });\n\n export const getDark: Factory = () => ({\n sidePanelBackground: '$deepBlue3',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAOQ,OAAA,kBAA2B,EACtC,qBAAqB,cACtB;CAEY,OAAA,iBAA0B,EACrC,qBAAqB,cACtB;yBACF"}
1
+ {"version":3,"file":"SidePanel.themes.js","names":[],"sources":["../../../components/SidePanel/SidePanel.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n sidePanelBackground: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n sidePanelBackground: '$deepBlue2',\n });\n\n export const getDark: Factory = () => ({\n sidePanelBackground: '$deepBlue3',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAOQ,OAAA,kBAA2B,EACtC,qBAAqB,aACvB;CAEa,OAAA,iBAA0B,EACrC,qBAAqB,aACvB;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { keyframes, styled, VariantProps } from '../../stitches.config';\n\nconst pulse = keyframes({\n '0%': { opacity: 0 },\n '100%': { opacity: '100%' },\n});\n\nexport const Skeleton = styled('div', {\n backgroundColor: '$skeletonBackground',\n position: 'relative',\n overflow: 'hidden',\n borderRadius: '3px',\n height: 'auto',\n width: 'auto',\n '&:not(:empty)': {\n '& > *': {\n visibility: 'hidden',\n display: 'block',\n },\n maxWidth: 'fit-content',\n },\n\n '&::after': {\n animationName: `${pulse}`,\n animationDuration: '500ms',\n animationDirection: 'alternate',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n backgroundColor: '$skeletonAnimation',\n borderRadius: 'inherit',\n bottom: 0,\n content: '\"\"',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n\n variants: {\n variant: {\n square: {\n borderRadius: '$2',\n },\n circle: {\n borderRadius: '$round',\n },\n badge: {\n borderRadius: '$pill',\n display: 'inline-flex',\n },\n button: {\n borderRadius: '$3',\n display: 'inline-flex',\n },\n text: {\n '&:empty:before': {\n content: '\"\\\\00a0\"', // adds a space character before element\n },\n },\n },\n },\n defaultVariants: {\n variant: 'text',\n },\n});\n\nexport type SkeletonVariants = VariantProps<typeof Skeleton>;\nexport type SkeletonProps = SkeletonVariants & NonNullable<unknown>;\n"],"mappings":";;AAEA,IAAM,QAAQ,wBAAA,UAAU;CACtB,MAAM,EAAE,SAAS,GAAG;CACpB,QAAQ,EAAE,SAAS,QAAQ;CAC5B,CAAC;AAEF,IAAa,WAAW,wBAAA,OAAO,OAAO;CACpC,iBAAiB;CACjB,UAAU;CACV,UAAU;CACV,cAAc;CACd,QAAQ;CACR,OAAO;CACP,iBAAiB;EACf,SAAS;GACP,YAAY;GACZ,SAAS;GACV;EACD,UAAU;EACX;CAED,YAAY;EACV,eAAe,GAAG;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;EACd,QAAQ;EACR,SAAS;EACT,MAAM;EACN,UAAU;EACV,OAAO;EACP,KAAK;EACN;CAED,UAAU,EACR,SAAS;EACP,QAAQ,EACN,cAAc,MACf;EACD,QAAQ,EACN,cAAc,UACf;EACD,OAAO;GACL,cAAc;GACd,SAAS;GACV;EACD,QAAQ;GACN,cAAc;GACd,SAAS;GACV;EACD,MAAM,EACJ,kBAAkB,EAChB,SAAS,cACV,EACF;EACF,EACF;CACD,iBAAiB,EACf,SAAS,QACV;CACF,CAAC"}
1
+ {"version":3,"file":"Skeleton.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { keyframes, styled, VariantProps } from '../../stitches.config';\n\nconst pulse = keyframes({\n '0%': { opacity: 0 },\n '100%': { opacity: '100%' },\n});\n\nexport const Skeleton = styled('div', {\n backgroundColor: '$skeletonBackground',\n position: 'relative',\n overflow: 'hidden',\n borderRadius: '3px',\n height: 'auto',\n width: 'auto',\n '&:not(:empty)': {\n '& > *': {\n visibility: 'hidden',\n display: 'block',\n },\n maxWidth: 'fit-content',\n },\n\n '&::after': {\n animationName: `${pulse}`,\n animationDuration: '500ms',\n animationDirection: 'alternate',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n backgroundColor: '$skeletonAnimation',\n borderRadius: 'inherit',\n bottom: 0,\n content: '\"\"',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n\n variants: {\n variant: {\n square: {\n borderRadius: '$2',\n },\n circle: {\n borderRadius: '$round',\n },\n badge: {\n borderRadius: '$pill',\n display: 'inline-flex',\n },\n button: {\n borderRadius: '$3',\n display: 'inline-flex',\n },\n text: {\n '&:empty:before': {\n content: '\"\\\\00a0\"', // adds a space character before element\n },\n },\n },\n },\n defaultVariants: {\n variant: 'text',\n },\n});\n\nexport type SkeletonVariants = VariantProps<typeof Skeleton>;\nexport type SkeletonProps = SkeletonVariants & NonNullable<unknown>;\n"],"mappings":";;AAEA,IAAM,QAAQ,wBAAA,UAAU;CACtB,MAAM,EAAE,SAAS,EAAE;CACnB,QAAQ,EAAE,SAAS,OAAO;AAC5B,CAAC;AAED,IAAa,WAAW,wBAAA,OAAO,OAAO;CACpC,iBAAiB;CACjB,UAAU;CACV,UAAU;CACV,cAAc;CACd,QAAQ;CACR,OAAO;CACP,iBAAiB;EACf,SAAS;GACP,YAAY;GACZ,SAAS;EACX;EACA,UAAU;CACZ;CAEA,YAAY;EACV,eAAe,GAAG;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;EACd,QAAQ;EACR,SAAS;EACT,MAAM;EACN,UAAU;EACV,OAAO;EACP,KAAK;CACP;CAEA,UAAU,EACR,SAAS;EACP,QAAQ,EACN,cAAc,KAChB;EACA,QAAQ,EACN,cAAc,SAChB;EACA,OAAO;GACL,cAAc;GACd,SAAS;EACX;EACA,QAAQ;GACN,cAAc;GACd,SAAS;EACX;EACA,MAAM,EACJ,kBAAkB,EAChB,SAAS,aACX,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.js","names":[],"sources":["../../../components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { keyframes, styled, VariantProps } from '../../stitches.config';\n\nconst pulse = keyframes({\n '0%': { opacity: 0 },\n '100%': { opacity: '100%' },\n});\n\nexport const Skeleton = styled('div', {\n backgroundColor: '$skeletonBackground',\n position: 'relative',\n overflow: 'hidden',\n borderRadius: '3px',\n height: 'auto',\n width: 'auto',\n '&:not(:empty)': {\n '& > *': {\n visibility: 'hidden',\n display: 'block',\n },\n maxWidth: 'fit-content',\n },\n\n '&::after': {\n animationName: `${pulse}`,\n animationDuration: '500ms',\n animationDirection: 'alternate',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n backgroundColor: '$skeletonAnimation',\n borderRadius: 'inherit',\n bottom: 0,\n content: '\"\"',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n\n variants: {\n variant: {\n square: {\n borderRadius: '$2',\n },\n circle: {\n borderRadius: '$round',\n },\n badge: {\n borderRadius: '$pill',\n display: 'inline-flex',\n },\n button: {\n borderRadius: '$3',\n display: 'inline-flex',\n },\n text: {\n '&:empty:before': {\n content: '\"\\\\00a0\"', // adds a space character before element\n },\n },\n },\n },\n defaultVariants: {\n variant: 'text',\n },\n});\n\nexport type SkeletonVariants = VariantProps<typeof Skeleton>;\nexport type SkeletonProps = SkeletonVariants & NonNullable<unknown>;\n"],"mappings":";AAOA,IAAa,WAAW,OAAO,OAAO;CACpC,iBAAiB;CACjB,UAAU;CACV,UAAU;CACV,cAAc;CACd,QAAQ;CACR,OAAO;CACP,iBAAiB;EACf,SAAS;GACP,YAAY;GACZ,SAAS;GACV;EACD,UAAU;EACX;CAED,YAAY;EACV,eAAe,GArBL,UAAU;GACtB,MAAM,EAAE,SAAS,GAAG;GACpB,QAAQ,EAAE,SAAS,QAAQ;GAC5B,CAkBqB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;EACd,QAAQ;EACR,SAAS;EACT,MAAM;EACN,UAAU;EACV,OAAO;EACP,KAAK;EACN;CAED,UAAU,EACR,SAAS;EACP,QAAQ,EACN,cAAc,MACf;EACD,QAAQ,EACN,cAAc,UACf;EACD,OAAO;GACL,cAAc;GACd,SAAS;GACV;EACD,QAAQ;GACN,cAAc;GACd,SAAS;GACV;EACD,MAAM,EACJ,kBAAkB,EAChB,SAAS,cACV,EACF;EACF,EACF;CACD,iBAAiB,EACf,SAAS,QACV;CACF,CAAC"}
1
+ {"version":3,"file":"Skeleton.js","names":[],"sources":["../../../components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { keyframes, styled, VariantProps } from '../../stitches.config';\n\nconst pulse = keyframes({\n '0%': { opacity: 0 },\n '100%': { opacity: '100%' },\n});\n\nexport const Skeleton = styled('div', {\n backgroundColor: '$skeletonBackground',\n position: 'relative',\n overflow: 'hidden',\n borderRadius: '3px',\n height: 'auto',\n width: 'auto',\n '&:not(:empty)': {\n '& > *': {\n visibility: 'hidden',\n display: 'block',\n },\n maxWidth: 'fit-content',\n },\n\n '&::after': {\n animationName: `${pulse}`,\n animationDuration: '500ms',\n animationDirection: 'alternate',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'ease-in-out',\n backgroundColor: '$skeletonAnimation',\n borderRadius: 'inherit',\n bottom: 0,\n content: '\"\"',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n\n variants: {\n variant: {\n square: {\n borderRadius: '$2',\n },\n circle: {\n borderRadius: '$round',\n },\n badge: {\n borderRadius: '$pill',\n display: 'inline-flex',\n },\n button: {\n borderRadius: '$3',\n display: 'inline-flex',\n },\n text: {\n '&:empty:before': {\n content: '\"\\\\00a0\"', // adds a space character before element\n },\n },\n },\n },\n defaultVariants: {\n variant: 'text',\n },\n});\n\nexport type SkeletonVariants = VariantProps<typeof Skeleton>;\nexport type SkeletonProps = SkeletonVariants & NonNullable<unknown>;\n"],"mappings":";AAOA,IAAa,WAAW,OAAO,OAAO;CACpC,iBAAiB;CACjB,UAAU;CACV,UAAU;CACV,cAAc;CACd,QAAQ;CACR,OAAO;CACP,iBAAiB;EACf,SAAS;GACP,YAAY;GACZ,SAAS;EACX;EACA,UAAU;CACZ;CAEA,YAAY;EACV,eAAe,GArBL,UAAU;GACtB,MAAM,EAAE,SAAS,EAAE;GACnB,QAAQ,EAAE,SAAS,OAAO;EAC5B,CAkBsB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,yBAAyB;EACzB,yBAAyB;EACzB,iBAAiB;EACjB,cAAc;EACd,QAAQ;EACR,SAAS;EACT,MAAM;EACN,UAAU;EACV,OAAO;EACP,KAAK;CACP;CAEA,UAAU,EACR,SAAS;EACP,QAAQ,EACN,cAAc,KAChB;EACA,QAAQ,EACN,cAAc,SAChB;EACA,OAAO;GACL,cAAc;GACd,SAAS;EACX;EACA,QAAQ;GACN,cAAc;GACd,SAAS;EACX;EACA,MAAM,EACJ,kBAAkB,EAChB,SAAS,aACX,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.themes.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n skeletonBackground: Property.Color;\n skeletonAnimation: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n skeletonBackground: '$slate4',\n skeletonAnimation: '$slate6',\n });\n\n export const getDark: Factory = () => ({\n skeletonBackground: '$deepBlue3',\n skeletonAnimation: '$deepBlue4',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAQQ,OAAA,kBAA2B;EACtC,oBAAoB;EACpB,mBAAmB;EACpB;CAEY,OAAA,iBAA0B;EACrC,oBAAoB;EACpB,mBAAmB;EACpB;yBACF"}
1
+ {"version":3,"file":"Skeleton.themes.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n skeletonBackground: Property.Color;\n skeletonAnimation: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n skeletonBackground: '$slate4',\n skeletonAnimation: '$slate6',\n });\n\n export const getDark: Factory = () => ({\n skeletonBackground: '$deepBlue3',\n skeletonAnimation: '$deepBlue4',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAQQ,OAAA,kBAA2B;EACtC,oBAAoB;EACpB,mBAAmB;CACrB;CAEa,OAAA,iBAA0B;EACrC,oBAAoB;EACpB,mBAAmB;CACrB;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.themes.js","names":[],"sources":["../../../components/Skeleton/Skeleton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n skeletonBackground: Property.Color;\n skeletonAnimation: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n skeletonBackground: '$slate4',\n skeletonAnimation: '$slate6',\n });\n\n export const getDark: Factory = () => ({\n skeletonBackground: '$deepBlue3',\n skeletonAnimation: '$deepBlue4',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAQQ,OAAA,kBAA2B;EACtC,oBAAoB;EACpB,mBAAmB;EACpB;CAEY,OAAA,iBAA0B;EACrC,oBAAoB;EACpB,mBAAmB;EACpB;yBACF"}
1
+ {"version":3,"file":"Skeleton.themes.js","names":[],"sources":["../../../components/Skeleton/Skeleton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n skeletonBackground: Property.Color;\n skeletonAnimation: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n skeletonBackground: '$slate4',\n skeletonAnimation: '$slate6',\n });\n\n export const getDark: Factory = () => ({\n skeletonBackground: '$deepBlue3',\n skeletonAnimation: '$deepBlue4',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAQQ,OAAA,kBAA2B;EACtC,oBAAoB;EACpB,mBAAmB;CACrB;CAEa,OAAA,iBAA0B;EACrC,oBAAoB;EACpB,mBAAmB;CACrB;wBACF"}
@@ -1,4 +1,3 @@
1
- require("../../_virtual/_rolldown/runtime.cjs");
2
1
  const require_cssProps = require("../../styles/cssProps.cjs");
3
2
  const require_themeContext = require("../../styles/themeContext.cjs");
4
3
  const require_Skeleton_vanilla_css = require("./Skeleton.vanilla.css.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.vanilla.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { skeletonRecipe } from './Skeleton.vanilla.css';\n\ntype SkeletonRecipeVariants = NonNullable<RecipeVariants<typeof skeletonRecipe>>;\n\ninterface SkeletonVanillaOwnProps extends SkeletonRecipeVariants, CSSProps {}\n\nexport type SkeletonVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n SkeletonVanillaOwnProps\n>;\n\ntype SkeletonVanillaComponent = PolymorphicComponent<'div', SkeletonVanillaProps<ElementType>>;\n\nconst SkeletonVanillaImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: SkeletonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = skeletonRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nSkeletonVanillaImpl.displayName = 'SkeletonVanilla';\n\nexport const SkeletonVanilla = SkeletonVanillaImpl as SkeletonVanillaComponent;\n"],"mappings":";;;;;;;;AAwBA,IAAM,uBAAA,GAAA,MAAA,aAEF,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,SACzC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,qBAAA,wBAAwB;CAC3C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,OAAO;CAE9D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAA,yBAAA,kBAAoB,KAAK;EAC1B;CAID,OACE,iBAAA,GAAA,kBAAA,KAAC,WAAD;EACO;EACL,WAAW,GALK,6BAAA,eAAe,EAAE,SAAS,CAK5B,CAAY,GAAG,aAAa,KAAK,MAAM;EACrD,OAAO;EACP,GAAI;EACJ,CAAA;EAGP;AAED,oBAAoB,cAAc;AAElC,IAAa,kBAAkB"}
1
+ {"version":3,"file":"Skeleton.vanilla.cjs","names":[],"sources":["../../../components/Skeleton/Skeleton.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { skeletonRecipe } from './Skeleton.vanilla.css';\n\ntype SkeletonRecipeVariants = NonNullable<RecipeVariants<typeof skeletonRecipe>>;\n\ninterface SkeletonVanillaOwnProps extends SkeletonRecipeVariants, CSSProps {}\n\nexport type SkeletonVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n SkeletonVanillaOwnProps\n>;\n\ntype SkeletonVanillaComponent = PolymorphicComponent<'div', SkeletonVanillaProps<ElementType>>;\n\nconst SkeletonVanillaImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: SkeletonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = skeletonRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nSkeletonVanillaImpl.displayName = 'SkeletonVanilla';\n\nexport const SkeletonVanilla = SkeletonVanillaImpl as SkeletonVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,uBAAA,GAAA,MAAA,aAEF,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,SACzC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,qBAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAA,yBAAA,kBAAoB,IAAI;CAC1B;CAIA,OACE,iBAAA,GAAA,kBAAA,KAAC,WAAD;EACO;EACL,WAAW,GALK,6BAAA,eAAe,EAAE,QAAQ,CAK3B,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,kBAAkB"}
@@ -1,4 +1,3 @@
1
- require("../../_virtual/_rolldown/runtime.cjs");
2
1
  ;/* empty css */
3
2
  //#region components/Skeleton/Skeleton.vanilla.css.ts
4
3
  var skeletonRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").createRuntimeFn)({
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.vanilla.js","names":[],"sources":["../../../components/Skeleton/Skeleton.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { skeletonRecipe } from './Skeleton.vanilla.css';\n\ntype SkeletonRecipeVariants = NonNullable<RecipeVariants<typeof skeletonRecipe>>;\n\ninterface SkeletonVanillaOwnProps extends SkeletonRecipeVariants, CSSProps {}\n\nexport type SkeletonVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n SkeletonVanillaOwnProps\n>;\n\ntype SkeletonVanillaComponent = PolymorphicComponent<'div', SkeletonVanillaProps<ElementType>>;\n\nconst SkeletonVanillaImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: SkeletonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = skeletonRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nSkeletonVanillaImpl.displayName = 'SkeletonVanilla';\n\nexport const SkeletonVanilla = SkeletonVanillaImpl as SkeletonVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,sBAAsB,YAExB,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,SACzC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,wBAAwB;CAC3C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,OAAO;CAE9D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,KAAK;EAC1B;CAID,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GALK,eAAe,EAAE,SAAS,CAK5B,CAAY,GAAG,aAAa,KAAK,MAAM;EACrD,OAAO;EACP,GAAI;EACJ,CAAA;EAGP;AAED,oBAAoB,cAAc;AAElC,IAAa,kBAAkB"}
1
+ {"version":3,"file":"Skeleton.vanilla.js","names":[],"sources":["../../../components/Skeleton/Skeleton.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { skeletonRecipe } from './Skeleton.vanilla.css';\n\ntype SkeletonRecipeVariants = NonNullable<RecipeVariants<typeof skeletonRecipe>>;\n\ninterface SkeletonVanillaOwnProps extends SkeletonRecipeVariants, CSSProps {}\n\nexport type SkeletonVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n SkeletonVanillaOwnProps\n>;\n\ntype SkeletonVanillaComponent = PolymorphicComponent<'div', SkeletonVanillaProps<ElementType>>;\n\nconst SkeletonVanillaImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: SkeletonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = skeletonRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nSkeletonVanillaImpl.displayName = 'SkeletonVanilla';\n\nexport const SkeletonVanilla = SkeletonVanillaImpl as SkeletonVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,sBAAsB,YAExB,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,SACzC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAIA,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GALK,eAAe,EAAE,QAAQ,CAK3B,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.cjs","names":[],"sources":["../../../components/Switch/Switch.tsx"],"sourcesContent":["import * as SwitchPrimitive from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst THUMB_DIAMETER = 14; // @FIXME: shouldn't this size be part of theme ?\nconst LARGE_RATIO = 1.5;\nconst THUMB_GAP = 2; // Gap between thumb and background\nconst ROOT_WIDTH = 32;\nconst ROOT_HEIGHT = 18;\n\n// COMPONENTS\nconst StyledThumb = styled(SwitchPrimitive.Thumb, {\n position: 'absolute',\n left: 0,\n width: THUMB_DIAMETER,\n height: THUMB_DIAMETER,\n backgroundColor: '$switchThumb',\n borderRadius: '$round',\n boxShadow: 'rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;',\n transition: 'transform 100ms cubic-bezier(0.22, 1, 0.36, 1)',\n transform: `translateX(${THUMB_GAP}px)`,\n willChange: 'transform',\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER}px)`,\n },\n});\n\nconst StyledSwitch = styled(SwitchPrimitive.Root, {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n backgroundColor: '$switchBackground',\n borderRadius: '$pill',\n position: 'relative',\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[1],\n },\n },\n },\n '&:focus': {\n outline: '2px solid $switchFocusBorder',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[2],\n },\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.38,\n },\n '&[data-state=\"checked\"]': {\n backgroundColor: '$switchActiveBackground',\n },\n\n variants: {\n size: {\n '1': {\n width: ROOT_WIDTH,\n height: ROOT_HEIGHT,\n m: '$2',\n },\n '2': {\n width: ROOT_WIDTH * LARGE_RATIO,\n height: ROOT_HEIGHT * LARGE_RATIO,\n [`& ${StyledThumb}`]: {\n width: THUMB_DIAMETER * LARGE_RATIO,\n height: THUMB_DIAMETER * LARGE_RATIO,\n transform: `translateX(${LARGE_RATIO * THUMB_GAP})`,\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${LARGE_RATIO * (ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER)}px)`,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type SwitchVariants = VariantProps<typeof StyledSwitch>;\ntype SwitchPrimitiveProps = Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, 'as'>;\nexport type SwitchProps = SwitchPrimitiveProps & SwitchVariants & { css?: CSS };\n\nexport const Switch = React.forwardRef<React.ElementRef<typeof StyledSwitch>, SwitchProps>(\n (props, forwardedRef) => (\n <StyledSwitch {...props} ref={forwardedRef}>\n <StyledThumb />\n </StyledSwitch>\n )\n);\n"],"mappings":";;;;;;;;;AAOA,IAAM,iBAAiB;AACvB,IAAM,cAAc;AACpB,IAAM,YAAY;AAClB,IAAM,aAAa;AACnB,IAAM,cAAc;AAGpB,IAAM,cAAc,wBAAA,OAAO,uBAAgB,OAAO;CAChD,UAAU;CACV,MAAM;CACN,OAAO;CACP,QAAQ;CACR,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,YAAY;CACZ,WAAW,cAAc,UAAU;CACnC,YAAY;CAEZ,6BAA2B,EACzB,WAAW,cAAc,aAAa,YAAY,eAAe,MAClE;CACF,CAAC;AAEF,IAAM,eAAe,wBAAA,OAAO,uBAAgB,MAAM;CAChD,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,cACZ;CACD,YAAY,EACV,WAAW,cACZ;CAGD,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,yBAAyB;CAEzB,iBAAiB;CACjB,cAAc;CACd,UAAU;CACV,UAAU,EACR,WAAW;EACT,QAAQ;GACP,KAAK,gBAAgB,EACpB,GAAG,kBAAA,kBAAkB,IACtB;EACF,EACF;CACD,WAAW;EACT,SAAS;GACR,KAAK,gBAAgB,EACpB,GAAG,kBAAA,kBAAkB,IACtB;EACF;CACD,cAAc;EACZ,eAAe;EACf,SAAS;EACV;CACD,6BAA2B,EACzB,iBAAiB,2BAClB;CAED,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;GACR,GAAG;GACJ;EACD,KAAK;GACH,OAAO,aAAa;GACpB,QAAQ,cAAc;IACrB,KAAK,gBAAgB;IACpB,OAAO,iBAAiB;IACxB,QAAQ,iBAAiB;IACzB,WAAW,cAAc,cAAc,UAAU;IAEjD,6BAA2B,EACzB,WAAW,cAAc,eAAe,aAAa,YAAY,gBAAgB,MAClF;IACF;GACF;EACF,EACF;CACD,iBAAiB,EACf,MAAM,KACP;CACF,CAAC;AAMF,IAAa,SAAS,MAAA,QAAM,YACzB,OAAO,iBACN,iBAAA,GAAA,kBAAA,KAAC,cAAD;CAAc,GAAI;CAAO,KAAK;WAC5B,iBAAA,GAAA,kBAAA,KAAC,aAAD,EAAe,CAAA;CACF,CAAA,CAElB"}
1
+ {"version":3,"file":"Switch.cjs","names":[],"sources":["../../../components/Switch/Switch.tsx"],"sourcesContent":["import * as SwitchPrimitive from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst THUMB_DIAMETER = 14; // @FIXME: shouldn't this size be part of theme ?\nconst LARGE_RATIO = 1.5;\nconst THUMB_GAP = 2; // Gap between thumb and background\nconst ROOT_WIDTH = 32;\nconst ROOT_HEIGHT = 18;\n\n// COMPONENTS\nconst StyledThumb = styled(SwitchPrimitive.Thumb, {\n position: 'absolute',\n left: 0,\n width: THUMB_DIAMETER,\n height: THUMB_DIAMETER,\n backgroundColor: '$switchThumb',\n borderRadius: '$round',\n boxShadow: 'rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;',\n transition: 'transform 100ms cubic-bezier(0.22, 1, 0.36, 1)',\n transform: `translateX(${THUMB_GAP}px)`,\n willChange: 'transform',\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER}px)`,\n },\n});\n\nconst StyledSwitch = styled(SwitchPrimitive.Root, {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n backgroundColor: '$switchBackground',\n borderRadius: '$pill',\n position: 'relative',\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[1],\n },\n },\n },\n '&:focus': {\n outline: '2px solid $switchFocusBorder',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[2],\n },\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.38,\n },\n '&[data-state=\"checked\"]': {\n backgroundColor: '$switchActiveBackground',\n },\n\n variants: {\n size: {\n '1': {\n width: ROOT_WIDTH,\n height: ROOT_HEIGHT,\n m: '$2',\n },\n '2': {\n width: ROOT_WIDTH * LARGE_RATIO,\n height: ROOT_HEIGHT * LARGE_RATIO,\n [`& ${StyledThumb}`]: {\n width: THUMB_DIAMETER * LARGE_RATIO,\n height: THUMB_DIAMETER * LARGE_RATIO,\n transform: `translateX(${LARGE_RATIO * THUMB_GAP})`,\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${LARGE_RATIO * (ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER)}px)`,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type SwitchVariants = VariantProps<typeof StyledSwitch>;\ntype SwitchPrimitiveProps = Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, 'as'>;\nexport type SwitchProps = SwitchPrimitiveProps & SwitchVariants & { css?: CSS };\n\nexport const Switch = React.forwardRef<React.ElementRef<typeof StyledSwitch>, SwitchProps>(\n (props, forwardedRef) => (\n <StyledSwitch {...props} ref={forwardedRef}>\n <StyledThumb />\n </StyledSwitch>\n )\n);\n"],"mappings":";;;;;;;;;AAOA,IAAM,iBAAiB;AACvB,IAAM,cAAc;AACpB,IAAM,YAAY;AAClB,IAAM,aAAa;AACnB,IAAM,cAAc;AAGpB,IAAM,cAAc,wBAAA,OAAO,uBAAgB,OAAO;CAChD,UAAU;CACV,MAAM;CACN,OAAO;C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../../components/Switch/Switch.tsx"],"sourcesContent":["import * as SwitchPrimitive from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst THUMB_DIAMETER = 14; // @FIXME: shouldn't this size be part of theme ?\nconst LARGE_RATIO = 1.5;\nconst THUMB_GAP = 2; // Gap between thumb and background\nconst ROOT_WIDTH = 32;\nconst ROOT_HEIGHT = 18;\n\n// COMPONENTS\nconst StyledThumb = styled(SwitchPrimitive.Thumb, {\n position: 'absolute',\n left: 0,\n width: THUMB_DIAMETER,\n height: THUMB_DIAMETER,\n backgroundColor: '$switchThumb',\n borderRadius: '$round',\n boxShadow: 'rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;',\n transition: 'transform 100ms cubic-bezier(0.22, 1, 0.36, 1)',\n transform: `translateX(${THUMB_GAP}px)`,\n willChange: 'transform',\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER}px)`,\n },\n});\n\nconst StyledSwitch = styled(SwitchPrimitive.Root, {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n backgroundColor: '$switchBackground',\n borderRadius: '$pill',\n position: 'relative',\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[1],\n },\n },\n },\n '&:focus': {\n outline: '2px solid $switchFocusBorder',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[2],\n },\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.38,\n },\n '&[data-state=\"checked\"]': {\n backgroundColor: '$switchActiveBackground',\n },\n\n variants: {\n size: {\n '1': {\n width: ROOT_WIDTH,\n height: ROOT_HEIGHT,\n m: '$2',\n },\n '2': {\n width: ROOT_WIDTH * LARGE_RATIO,\n height: ROOT_HEIGHT * LARGE_RATIO,\n [`& ${StyledThumb}`]: {\n width: THUMB_DIAMETER * LARGE_RATIO,\n height: THUMB_DIAMETER * LARGE_RATIO,\n transform: `translateX(${LARGE_RATIO * THUMB_GAP})`,\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${LARGE_RATIO * (ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER)}px)`,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type SwitchVariants = VariantProps<typeof StyledSwitch>;\ntype SwitchPrimitiveProps = Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, 'as'>;\nexport type SwitchProps = SwitchPrimitiveProps & SwitchVariants & { css?: CSS };\n\nexport const Switch = React.forwardRef<React.ElementRef<typeof StyledSwitch>, SwitchProps>(\n (props, forwardedRef) => (\n <StyledSwitch {...props} ref={forwardedRef}>\n <StyledThumb />\n </StyledSwitch>\n )\n);\n"],"mappings":";;;;;;AAOA,IAAM,iBAAiB;AACvB,IAAM,cAAc;AACpB,IAAM,YAAY;AAClB,IAAM,aAAa;AACnB,IAAM,cAAc;AAGpB,IAAM,cAAc,OAAO,gBAAgB,OAAO;CAChD,UAAU;CACV,MAAM;CACN,OAAO;CACP,QAAQ;CACR,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,YAAY;CACZ,WAAW,cAAc,UAAU;CACnC,YAAY;CAEZ,6BAA2B,EACzB,WAAW,cAAc,aAAa,YAAY,eAAe,MAClE;CACF,CAAC;AAEF,IAAM,eAAe,OAAO,gBAAgB,MAAM;CAChD,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,cACZ;CACD,YAAY,EACV,WAAW,cACZ;CAGD,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,yBAAyB;CAEzB,iBAAiB;CACjB,cAAc;CACd,UAAU;CACV,UAAU,EACR,WAAW;EACT,QAAQ;GACP,KAAK,gBAAgB,EACpB,GAAG,kBAAkB,IACtB;EACF,EACF;CACD,WAAW;EACT,SAAS;GACR,KAAK,gBAAgB,EACpB,GAAG,kBAAkB,IACtB;EACF;CACD,cAAc;EACZ,eAAe;EACf,SAAS;EACV;CACD,6BAA2B,EACzB,iBAAiB,2BAClB;CAED,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;GACR,GAAG;GACJ;EACD,KAAK;GACH,OAAO,aAAa;GACpB,QAAQ,cAAc;IACrB,KAAK,gBAAgB;IACpB,OAAO,iBAAiB;IACxB,QAAQ,iBAAiB;IACzB,WAAW,cAAc,cAAc,UAAU;IAEjD,6BAA2B,EACzB,WAAW,cAAc,eAAe,aAAa,YAAY,gBAAgB,MAClF;IACF;GACF;EACF,EACF;CACD,iBAAiB,EACf,MAAM,KACP;CACF,CAAC;AAMF,IAAa,SAAS,MAAM,YACzB,OAAO,iBACN,oBAAC,cAAD;CAAc,GAAI;CAAO,KAAK;WAC5B,oBAAC,aAAD,EAAe,CAAA;CACF,CAAA,CAElB"}
1
+ {"version":3,"file":"Switch.js","names":[],"sources":["../../../components/Switch/Switch.tsx"],"sourcesContent":["import * as SwitchPrimitive from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst THUMB_DIAMETER = 14; // @FIXME: shouldn't this size be part of theme ?\nconst LARGE_RATIO = 1.5;\nconst THUMB_GAP = 2; // Gap between thumb and background\nconst ROOT_WIDTH = 32;\nconst ROOT_HEIGHT = 18;\n\n// COMPONENTS\nconst StyledThumb = styled(SwitchPrimitive.Thumb, {\n position: 'absolute',\n left: 0,\n width: THUMB_DIAMETER,\n height: THUMB_DIAMETER,\n backgroundColor: '$switchThumb',\n borderRadius: '$round',\n boxShadow: 'rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;',\n transition: 'transform 100ms cubic-bezier(0.22, 1, 0.36, 1)',\n transform: `translateX(${THUMB_GAP}px)`,\n willChange: 'transform',\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER}px)`,\n },\n});\n\nconst StyledSwitch = styled(SwitchPrimitive.Root, {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n backgroundColor: '$switchBackground',\n borderRadius: '$pill',\n position: 'relative',\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[1],\n },\n },\n },\n '&:focus': {\n outline: '2px solid $switchFocusBorder',\n [`& ${StyledThumb}`]: {\n ...elevationVariants[2],\n },\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.38,\n },\n '&[data-state=\"checked\"]': {\n backgroundColor: '$switchActiveBackground',\n },\n\n variants: {\n size: {\n '1': {\n width: ROOT_WIDTH,\n height: ROOT_HEIGHT,\n m: '$2',\n },\n '2': {\n width: ROOT_WIDTH * LARGE_RATIO,\n height: ROOT_HEIGHT * LARGE_RATIO,\n [`& ${StyledThumb}`]: {\n width: THUMB_DIAMETER * LARGE_RATIO,\n height: THUMB_DIAMETER * LARGE_RATIO,\n transform: `translateX(${LARGE_RATIO * THUMB_GAP})`,\n\n '&[data-state=\"checked\"]': {\n transform: `translateX(${LARGE_RATIO * (ROOT_WIDTH - THUMB_GAP - THUMB_DIAMETER)}px)`,\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type SwitchVariants = VariantProps<typeof StyledSwitch>;\ntype SwitchPrimitiveProps = Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, 'as'>;\nexport type SwitchProps = SwitchPrimitiveProps & SwitchVariants & { css?: CSS };\n\nexport const Switch = React.forwardRef<React.ElementRef<typeof StyledSwitch>, SwitchProps>(\n (props, forwardedRef) => (\n <StyledSwitch {...props} ref={forwardedRef}>\n <StyledThumb />\n </StyledSwitch>\n )\n);\n"],"mappings":";;;;;;AAOA,IAAM,iBAAiB;AACvB,IAAM,cAAc;AACpB,IAAM,YAAY;AAClB,IAAM,aAAa;AACnB,IAAM,cAAc;AAGpB,IAAM,cAAc,OAAO,gBAAgB,OAAO;CAChD,UAAU;CACV,MAAM;CACN,OAAO;CACP,QAAQ;CACR,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,YAAY;CACZ,WAAW,cAAc,UAAU;CACnC,YAAY;CAEZ,6BAA2B,EACzB,WAAW,cAAc,aAAa,YAAY,eAAe,KACnE;AACF,CAAC;AAED,IAAM,eAAe,OAAO,gBAAgB,MAAM;CAChD,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,aACb;CACA,YAAY,EACV,WAAW,aACb;CAGA,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,yBAAyB;CAEzB,iBAAiB;CACjB,cAAc;CACd,UAAU;CACV,UAAU,EACR,WAAW;EACT,QAAQ;GACP,KAAK,gBAAgB,EACpB,GAAG,kBAAkB,GACvB;CACF,EACF;CACA,WAAW;EACT,SAAS;GACR,KAAK,gBAAgB,EACpB,GAAG,kBAAkB,GACvB;CACF;CACA,cAAc;EACZ,eAAe;EACf,SAAS;CACX;CACA,6BAA2B,EACzB,iBAAiB,0BACnB;CAEA,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;GACR,GAAG;EACL;EACA,KAAK;GACH,OAAO,aAAa;GACpB,QAAQ,cAAc;IACrB,KAAK,gBAAgB;IACpB,OAAO,iBAAiB;IACxB,QAAQ,iBAAiB;IACzB,WAAW,cAAc,cAAc,UAAU;IAEjD,6BAA2B,EACzB,WAAW,cAAc,eAAe,aAAa,YAAY,gBAAgB,KACnF;GACF;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,IACR;AACF,CAAC;AAMD,IAAa,SAAS,MAAM,YACzB,OAAO,iBACN,oBAAC,cAAD;CAAc,GAAI;CAAO,KAAK;WAC5B,oBAAC,aAAD,CAAc,CAAA;AACF,CAAA,CAElB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.themes.cjs","names":[],"sources":["../../../components/Switch/Switch.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n switchBackground: Property.Color;\n switchActiveBackground: Property.Color;\n switchFocusBorder: Property.Color;\n switchThumb: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n switchBackground: tinycolor('black').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(8),\n switchThumb: tinycolor('white').setAlpha(0.87).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n switchBackground: tinycolor('white').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(11),\n switchThumb: tinycolor('black').setAlpha(0.87).toHslString(),\n });\n}\n"],"mappings":";;;;AAKO,IAAA;;CAUQ,OAAA,YAAqB,kBAAkB;EAClD,mBAAA,GAAA,WAAA,SAA4B,QAAQ,CAAC,SAAS,GAAI,CAAC,aAAa;EAChE,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,EAAE;EACpD,cAAA,GAAA,WAAA,SAAuB,QAAQ,CAAC,SAAS,IAAK,CAAC,aAAa;EAC7D;CAEY,OAAA,WAAoB,kBAAkB;EACjD,mBAAA,GAAA,WAAA,SAA4B,QAAQ,CAAC,SAAS,GAAI,CAAC,aAAa;EAChE,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,GAAG;EACrD,cAAA,GAAA,WAAA,SAAuB,QAAQ,CAAC,SAAS,IAAK,CAAC,aAAa;EAC7D;yBACF"}
1
+ {"version":3,"file":"Switch.themes.cjs","names":[],"sources":["../../../components/Switch/Switch.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n switchBackground: Property.Color;\n switchActiveBackground: Property.Color;\n switchFocusBorder: Property.Color;\n switchThumb: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n switchBackground: tinycolor('black').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(8),\n switchThumb: tinycolor('white').setAlpha(0.87).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n switchBackground: tinycolor('white').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(11),\n switchThumb: tinycolor('black').setAlpha(0.87).toHslString(),\n });\n}\n"],"mappings":";;;;AAKO,IAAA;;CAUQ,OAAA,YAAqB,kBAAkB;EAClD,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,EAAG,EAAE,YAAY;EAC/D,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,CAAC;EACnD,cAAA,GAAA,WAAA,SAAuB,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;CAC7D;CAEa,OAAA,WAAoB,kBAAkB;EACjD,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,EAAG,EAAE,YAAY;EAC/D,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,EAAE;EACpD,cAAA,GAAA,WAAA,SAAuB,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;CAC7D;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.themes.js","names":[],"sources":["../../../components/Switch/Switch.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n switchBackground: Property.Color;\n switchActiveBackground: Property.Color;\n switchFocusBorder: Property.Color;\n switchThumb: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n switchBackground: tinycolor('black').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(8),\n switchThumb: tinycolor('white').setAlpha(0.87).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n switchBackground: tinycolor('white').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(11),\n switchThumb: tinycolor('black').setAlpha(0.87).toHslString(),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAUQ,OAAA,YAAqB,kBAAkB;EAClD,kBAAkB,UAAU,QAAQ,CAAC,SAAS,GAAI,CAAC,aAAa;EAChE,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,EAAE;EACpD,aAAa,UAAU,QAAQ,CAAC,SAAS,IAAK,CAAC,aAAa;EAC7D;CAEY,OAAA,WAAoB,kBAAkB;EACjD,kBAAkB,UAAU,QAAQ,CAAC,SAAS,GAAI,CAAC,aAAa;EAChE,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,GAAG;EACrD,aAAa,UAAU,QAAQ,CAAC,SAAS,IAAK,CAAC,aAAa;EAC7D;yBACF"}
1
+ {"version":3,"file":"Switch.themes.js","names":[],"sources":["../../../components/Switch/Switch.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n switchBackground: Property.Color;\n switchActiveBackground: Property.Color;\n switchFocusBorder: Property.Color;\n switchThumb: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n switchBackground: tinycolor('black').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(8),\n switchThumb: tinycolor('white').setAlpha(0.87).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n switchBackground: tinycolor('white').setAlpha(0.2).toHslString(),\n switchActiveBackground: '$primary',\n switchFocusBorder: primaryColor.helpers.pickScale(11),\n switchThumb: tinycolor('black').setAlpha(0.87).toHslString(),\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAUQ,OAAA,YAAqB,kBAAkB;EAClD,kBAAkB,UAAU,OAAO,EAAE,SAAS,EAAG,EAAE,YAAY;EAC/D,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,CAAC;EACnD,aAAa,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;CAC7D;CAEa,OAAA,WAAoB,kBAAkB;EACjD,kBAAkB,UAAU,OAAO,EAAE,SAAS,EAAG,EAAE,YAAY;EAC/D,wBAAwB;EACxB,mBAAmB,aAAa,QAAQ,UAAU,EAAE;EACpD,aAAa,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;CAC7D;wBACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.cjs","names":[],"sources":["../../../components/Table/Table.tsx"],"sourcesContent":["import { ChevronRightIcon } from '@radix-ui/react-icons';\nimport React, { ComponentProps, ElementRef, forwardRef, ReactNode, useMemo, useState } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { Box } from '../Box';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\nimport { Label } from '../Label';\nimport { Text } from '../Text';\n\nexport const Caption = styled('caption', Text, {\n display: 'table-caption',\n textAlign: 'start',\n fontVariantNumeric: 'proportional-nums',\n fontWeight: '$medium',\n lineHeight: '1.25',\n});\n\nexport const Tbody = styled('tbody', {\n width: '100%',\n verticalAlign: 'middle',\n});\n\nexport const Th = styled('th', Label, {\n // override Label\n display: 'table-cell',\n verticalAlign: 'inherit',\n\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n\n textAlign: 'start',\n p: '$2 $3',\n borderBottom: '1px solid $tableRowBorder',\n\n variants: {\n align: {\n start: {\n textAlign: 'start',\n },\n center: {\n textAlign: 'center',\n },\n end: {\n textAlign: 'end',\n },\n },\n transform: {\n capitalize: {\n display: 'table-cell', // revert Label enforced value\n },\n },\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const Td = styled('td', {\n boxSizing: 'border-box',\n p: '$5 $3',\n borderBottom: '1px solid $tableRowBorder',\n fontSize: '$3',\n lineHeight: '16px',\n verticalAlign: 'inherit',\n variants: {\n subtle: {\n true: {\n fontWeight: '$regular',\n color: '$tableSubtleText',\n },\n },\n align: {\n start: {\n textAlign: 'start',\n },\n center: {\n textAlign: 'center',\n },\n end: {\n textAlign: 'end',\n },\n },\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const StyledTr = styled('tr', {\n verticalAlign: 'inherit',\n '&:hover': {\n color: '$tableHoverText',\n },\n [`&:last-child > ${Td}`]: {\n borderBottom: 'none',\n },\n\n variants: {\n interactive: {\n true: {\n '&:hover': {\n backgroundColor: '$tableHoverBackground',\n cursor: 'pointer',\n },\n },\n },\n active: {\n true: {\n backgroundColor: '$tableHoverBackground',\n color: '$tableActiveText',\n fontWeight: '$semiBold',\n },\n },\n },\n compoundVariants: [\n {\n interactive: true,\n active: true,\n css: {\n '&:hover': {\n color: '$tableActiveHoverText',\n },\n },\n },\n ],\n});\n\nconst AnimatedTr = ({\n collapsedContentColSpan,\n isOpen,\n children,\n}: {\n collapsedContentColSpan: number;\n isOpen: boolean;\n children: ReactNode;\n}) => {\n const appliedStyle = useMemo(\n () =>\n isOpen\n ? { transition: 'padding 0.2s ease-out' }\n : {\n transition: 'padding 0.2s ease-out',\n lineHeight: 0,\n fontSize: 0,\n padding: '0px 16px',\n border: 'none',\n },\n [isOpen],\n );\n\n const containerStyle = useMemo(\n () =>\n isOpen\n ? { transition: 'all 0.2s ease-out' }\n : {\n transition: 'all 0.2s ease-out',\n height: 0,\n overflow: 'hidden',\n },\n [isOpen],\n );\n\n return (\n <Tr>\n <Td colSpan={collapsedContentColSpan} css={appliedStyle}>\n <Box css={containerStyle}>{children}</Box>\n </Td>\n </Tr>\n );\n};\nexport type TrProps = ComponentProps<typeof StyledTr> &\n VariantProps<typeof StyledTr> & {\n children: React.ReactNode;\n collapsedContent?: React.ReactNode;\n emptyFirstColumn?: boolean;\n tableHead?: boolean;\n collapsedContentColSpan?: number;\n };\n\nexport const Tr = forwardRef<ElementRef<typeof StyledTr>, TrProps>(\n (\n {\n children,\n collapsedContent,\n emptyFirstColumn = false,\n tableHead = false,\n collapsedContentColSpan = 1,\n css,\n ...props\n },\n ref,\n ) => {\n const [isCollapsed, setIsCollapsed] = useState(false);\n\n return (\n <>\n <StyledTr\n ref={ref}\n css={\n !!collapsedContent && !isCollapsed\n ? {\n ...css,\n [`&:nth-last-child(2) > ${Td}`]: {\n borderBottom: 'none',\n },\n }\n : { ...css }\n }\n {...props}\n >\n {emptyFirstColumn ? tableHead ? <Th css={{ width: 24 }} /> : <Td /> : null}\n {!!collapsedContent && (\n <Td\n css={{ padding: '0 0 0 $3' }}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n <Flex\n align=\"center\"\n justify=\"center\"\n css={{\n height: '40px',\n '&:hover': {\n color: '$tableActiveText',\n },\n }}\n onClick={() => setIsCollapsed(!isCollapsed)}\n >\n <ChevronRightIcon\n style={{\n cursor: 'pointer',\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n </Flex>\n </Td>\n )}\n {children}\n </StyledTr>\n {!!collapsedContent && (\n <AnimatedTr isOpen={isCollapsed} collapsedContentColSpan={collapsedContentColSpan}>\n {collapsedContent}\n </AnimatedTr>\n )}\n </>\n );\n },\n);\n\nexport const Tfoot = styled('tfoot', {\n verticalAlign: 'middle',\n position: 'relative',\n borderRadius: 'inherit',\n\n '&::after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor: '$tableFooterLayerBackground',\n borderRadius: 'inherit',\n },\n\n [`& ${Td}`]: {\n fontSize: '$1',\n color: '$tableHeaderText',\n fontWeight: '$light',\n p: '$2 $3',\n },\n});\n\nexport const Thead = styled('thead', {\n position: 'relative',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n verticalAlign: 'middle',\n\n '&::after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor: '$tableHeaderLayerBackground',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n },\n\n [`& ${Th}`]: {\n fontSize: '$1',\n color: '$tableHeaderText',\n fontWeight: '$light',\n },\n});\n\nexport const Table = styled('table', {\n width: '100%',\n tableLayout: 'fixed',\n boxSizing: 'border-box',\n borderCollapse: 'separate',\n borderSpacing: 0,\n fontFamily: '$rubik',\n color: '$tableText',\n borderRadius: '$3',\n overflow: 'hidden',\n [`& ${Tbody}:not(:empty) ~ ${Tfoot}`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n [`& ${Td}`]: {\n borderTop: '1px solid $tableRowBorder',\n },\n },\n [`& ${Thead}:not(:empty) ~ ${Tfoot}`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 1,\n },\n});\n\nexport type TableVariants = VariantProps<typeof Table>;\nexport type TableProps = TableVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;;;;;AAUA,IAAa,UAAU,wBAAA,OAAO,WAAW,aAAA,MAAM;CAC7C,SAAS;CACT,WAAW;CACX,oBAAoB;CACpB,YAAY;CACZ,YAAY;CACb,CAAC;AAEF,IAAa,QAAQ,wBAAA,OAAO,SAAS;CACnC,OAAO;CACP,eAAe;CAChB,CAAC;AAEF,IAAa,KAAK,wBAAA,OAAO,MAAM,cAAA,OAAO;CAEpC,SAAS;CACT,eAAe;CAEf,qBAAqB;CACrB,sBAAsB;CAEtB,WAAW;CACX,GAAG;CACH,cAAc;CAEd,UAAU;EACR,OAAO;GACL,OAAO,EACL,WAAW,SACZ;GACD,QAAQ,EACN,WAAW,UACZ;GACD,KAAK,EACH,WAAW,OACZ;GACF;EACD,WAAW,EACT,YAAY,EACV,SAAS,cACV,EACF;EACF;CACD,iBAAiB,EACf,OAAO,SACR;CACF,CAAC;AAEF,IAAa,KAAK,wBAAA,OAAO,MAAM;CAC7B,WAAW;CACX,GAAG;CACH,cAAc;CACd,UAAU;CACV,YAAY;CACZ,eAAe;CACf,UAAU;EACR,QAAQ,EACN,MAAM;GACJ,YAAY;GACZ,OAAO;GACR,EACF;EACD,OAAO;GACL,OAAO,EACL,WAAW,SACZ;GACD,QAAQ,EACN,WAAW,UACZ;GACD,KAAK,EACH,WAAW,OACZ;GACF;EACF;CACD,iBAAiB,EACf,OAAO,SACR;CACF,CAAC;AAEF,IAAa,WAAW,wBAAA,OAAO,MAAM;CACnC,eAAe;CACf,WAAW,EACT,OAAO,mBACR;EACA,kBAAkB,OAAO,EACxB,cAAc,QACf;CAED,UAAU;EACR,aAAa,EACX,MAAM,EACJ,WAAW;GACT,iBAAiB;GACjB,QAAQ;GACT,EACF,EACF;EACD,QAAQ,EACN,MAAM;GACJ,iBAAiB;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qBAAqB;EACrB,sBAAsB;GACrB,KAAK,OAAO,EACX,WAAW,6BACZ;EACF;EACA,KAAK,MAAM,iBAAiB,UAAU;EACrC,qBAAqB;EACrB,sBAAsB;EACvB;CAED,UAAU,EACR,WAAW,kBAAA,mBACZ;CACD,iBAAiB,EACf,WAAW,GACZ;CACF,CAAC"}
1
+ {"version":3,"file":"Table.cjs","names":[],"sources":["../../../components/Table/Table.tsx"],"sourcesContent":["import { ChevronRightIcon } from '@radix-ui/react-icons';\nimport React, { ComponentProps, ElementRef, forwardRef, ReactNode, useMemo, useState } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { Box } from '../Box';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\nimport { Label } from '../Label';\nimport { Text } from '../Text';\n\nexport const Caption = styled('caption', Text, {\n display: 'table-caption',\n textAlign: 'start',\n fontVariantNumeric: 'proportional-nums',\n fontWeight: '$medium',\n lineHeight: '1.25',\n});\n\nexport const Tbody = styled('tbody', {\n width: '100%',\n verticalAlign: 'middle',\n});\n\nexport const Th = styled('th', Label, {\n // override Label\n display: 'table-cell',\n verticalAlign: 'inherit',\n\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n\n textAlign: 'start',\n p: '$2 $3',\n borderBottom: '1px solid $tableRowBorder',\n\n variants: {\n align: {\n start: {\n textAlign: 'start',\n },\n center: {\n textAlign: 'center',\n },\n end: {\n textAlign: 'end',\n },\n },\n transform: {\n capitalize: {\n display: 'table-cell', // revert Label enforced value\n },\n },\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const Td = styled('td', {\n boxSizing: 'border-box',\n p: '$5 $3',\n borderBottom: '1px solid $tableRowBorder',\n fontSize: '$3',\n lineHeight: '16px',\n verticalAlign: 'inherit',\n variants: {\n subtle: {\n true: {\n fontWeight: '$regular',\n color: '$tableSubtleText',\n },\n },\n align: {\n start: {\n textAlign: 'start',\n },\n center: {\n textAlign: 'center',\n },\n end: {\n textAlign: 'end',\n },\n },\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const StyledTr = styled('tr', {\n verticalAlign: 'inherit',\n '&:hover': {\n color: '$tableHoverText',\n },\n [`&:last-child > ${Td}`]: {\n borderBottom: 'none',\n },\n\n variants: {\n interactive: {\n true: {\n '&:hover': {\n backgroundColor: '$tableHoverBackground',\n cursor: 'pointer',\n },\n },\n },\n active: {\n true: {\n backgroundColor: '$tableHoverBackground',\n color: '$tableActiveText',\n fontWeight: '$semiBold',\n },\n },\n },\n compoundVariants: [\n {\n interactive: true,\n active: true,\n css: {\n '&:hover': {\n color: '$tableActiveHoverText',\n },\n },\n },\n ],\n});\n\nconst AnimatedTr = ({\n collapsedContentColSpan,\n isOpen,\n children,\n}: {\n collapsedContentColSpan: number;\n isOpen: boolean;\n children: ReactNode;\n}) => {\n const appliedStyle = useMemo(\n () =>\n isOpen\n ? { transition: 'padding 0.2s ease-out' }\n : {\n transition: 'padding 0.2s ease-out',\n lineHeight: 0,\n fontSize: 0,\n padding: '0px 16px',\n border: 'none',\n },\n [isOpen],\n );\n\n const containerStyle = useMemo(\n () =>\n isOpen\n ? { transition: 'all 0.2s ease-out' }\n : {\n transition: 'all 0.2s ease-out',\n height: 0,\n overflow: 'hidden',\n },\n [isOpen],\n );\n\n return (\n <Tr>\n <Td colSpan={collapsedContentColSpan} css={appliedStyle}>\n <Box css={containerStyle}>{children}</Box>\n </Td>\n </Tr>\n );\n};\nexport type TrProps = ComponentProps<typeof StyledTr> &\n VariantProps<typeof StyledTr> & {\n children: React.ReactNode;\n collapsedContent?: React.ReactNode;\n emptyFirstColumn?: boolean;\n tableHead?: boolean;\n collapsedContentColSpan?: number;\n };\n\nexport const Tr = forwardRef<ElementRef<typeof StyledTr>, TrProps>(\n (\n {\n children,\n collapsedContent,\n emptyFirstColumn = false,\n tableHead = false,\n collapsedContentColSpan = 1,\n css,\n ...props\n },\n ref,\n ) => {\n const [isCollapsed, setIsCollapsed] = useState(false);\n\n return (\n <>\n <StyledTr\n ref={ref}\n css={\n !!collapsedContent && !isCollapsed\n ? {\n ...css,\n [`&:nth-last-child(2) > ${Td}`]: {\n borderBottom: 'none',\n },\n }\n : { ...css }\n }\n {...props}\n >\n {emptyFirstColumn ? tableHead ? <Th css={{ width: 24 }} /> : <Td /> : null}\n {!!collapsedContent && (\n <Td\n css={{ padding: '0 0 0 $3' }}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n <Flex\n align=\"center\"\n justify=\"center\"\n css={{\n height: '40px',\n '&:hover': {\n color: '$tableActiveText',\n },\n }}\n onClick={() => setIsCollapsed(!isCollapsed)}\n >\n <ChevronRightIcon\n style={{\n cursor: 'pointer',\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n </Flex>\n </Td>\n )}\n {children}\n </StyledTr>\n {!!collapsedContent && (\n <AnimatedTr isOpen={isCollapsed} collapsedContentColSpan={collapsedContentColSpan}>\n {collapsedContent}\n </AnimatedTr>\n )}\n </>\n );\n },\n);\n\nexport const Tfoot = styled('tfoot', {\n verticalAlign: 'middle',\n position: 'relative',\n borderRadius: 'inherit',\n\n '&::after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor: '$tableFooterLayerBackground',\n borderRadius: 'inherit',\n },\n\n [`& ${Td}`]: {\n fontSize: '$1',\n color: '$tableHeaderText',\n fontWeight: '$light',\n p: '$2 $3',\n },\n});\n\nexport const Thead = styled('thead', {\n position: 'relative',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n verticalAlign: 'middle',\n\n '&::after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor: '$tableHeaderLayerBackground',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n },\n\n [`& ${Th}`]: {\n fontSize: '$1',\n color: '$tableHeaderText',\n fontWeight: '$light',\n },\n});\n\nexport const Table = styled('table', {\n width: '100%',\n tableLayout: 'fixed',\n boxSizing: 'border-box',\n borderCollapse: 'separate',\n borderSpacing: 0,\n fontFamily: '$rubik',\n color: '$tableText',\n borderRadius: '$3',\n overflow: 'hidden',\n [`& ${Tbody}:not(:empty) ~ ${Tfoot}`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n [`& ${Td}`]: {\n borderTop: '1px solid $tableRowBorder',\n },\n },\n [`& ${Thead}:not(:empty) ~ ${Tfoot}`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 1,\n },\n});\n\nexport type TableVariants = VariantProps<typeof Table>;\nexport type TableProps = TableVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;;;;;AAUA,IAAa,UAAU,wBAAA,OAAO,WAAW,aAAA,MAAM;CAC7C,SAAS;CACT,WAAW;CACX,oBAAoB;CACpB,YAAY;CACZ,YAAY;AACd,CAAC;AAED,IAAa,QAAQ,wBAAA,OAAO,SAAS;CACnC,OAAO;CACP,eAAe;AACjB,CAAC;AAED,IAAa,KAAK,wBAAA,OAAO,MAAM,cAAA,OAAO;CAEpC,SAAS;CACT,eAAe;CAEf,qBAAqB;CACrB,sBAAsB;CAEtB,WAAW;CACX,GAAG;CACH,cAAc;CAEd,UAAU;EACR,OAAO;GACL,OAAO,EACL,WAAW,QACb;GACA,QAAQ,EACN,WAAW,SACb;GACA,KAAK,EACH,WAAW,MACb;EACF;EACA,WAAW,EACT,YAAY,EACV,SAAS,aACX,EACF;CACF;CACA,iBAAiB,EACf,OAAO,QACT;AACF,CAAC;AAED,IAAa,KAAK,wBAAA,OAAO,MAAM;CAC7B,WAAW;CACX,GAAG;CACH,cAAc;CACd,UAAU;CACV,YAAY;CACZ,eAAe;CACf,UAAU;EACR,QAAQ,EACN,MAAM;GACJ,YAAY;GACZ,OAAO;EACT,EACF;EACA,OAAO;GACL,OAAO,EACL,WAAW,QACb;G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