@raystack/apsara 0.27.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/container/container.cjs +3 -0
  2. package/dist/container/container.cjs.map +1 -1
  3. package/dist/container/container.d.ts +3 -0
  4. package/dist/container/container.d.ts.map +1 -1
  5. package/dist/container/container.js +3 -0
  6. package/dist/container/container.js.map +1 -1
  7. package/dist/image/image.cjs +6 -0
  8. package/dist/image/image.cjs.map +1 -1
  9. package/dist/image/image.d.ts +6 -0
  10. package/dist/image/image.d.ts.map +1 -1
  11. package/dist/image/image.js +6 -0
  12. package/dist/image/image.js.map +1 -1
  13. package/dist/link/link.cjs +3 -0
  14. package/dist/link/link.cjs.map +1 -1
  15. package/dist/link/link.d.ts +3 -0
  16. package/dist/link/link.d.ts.map +1 -1
  17. package/dist/link/link.js +3 -0
  18. package/dist/link/link.js.map +1 -1
  19. package/dist/separator/separator.cjs +3 -0
  20. package/dist/separator/separator.cjs.map +1 -1
  21. package/dist/separator/separator.d.ts +3 -0
  22. package/dist/separator/separator.d.ts.map +1 -1
  23. package/dist/separator/separator.js +3 -0
  24. package/dist/separator/separator.js.map +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/table/DataTableFilterChips.cjs.map +1 -1
  27. package/dist/table/DataTableFilterChips.js.map +1 -1
  28. package/dist/toggle-group/togglegroup.cjs +3 -3
  29. package/dist/toggle-group/togglegroup.cjs.map +1 -1
  30. package/dist/toggle-group/togglegroup.d.ts +5 -5
  31. package/dist/toggle-group/togglegroup.js +3 -3
  32. package/dist/toggle-group/togglegroup.js.map +1 -1
  33. package/dist/v1/components/box/box.cjs +3 -3
  34. package/dist/v1/components/box/box.cjs.map +1 -1
  35. package/dist/v1/components/box/box.d.ts +7 -2
  36. package/dist/v1/components/box/box.d.ts.map +1 -1
  37. package/dist/v1/components/box/box.js +3 -3
  38. package/dist/v1/components/box/box.js.map +1 -1
  39. package/dist/v1/components/calendar/calendar.cjs +6 -6
  40. package/dist/v1/components/calendar/calendar.cjs.map +1 -1
  41. package/dist/v1/components/calendar/calendar.d.ts.map +1 -1
  42. package/dist/v1/components/calendar/calendar.js +6 -6
  43. package/dist/v1/components/calendar/calendar.js.map +1 -1
  44. package/dist/v1/components/calendar/calendar.module.css.cjs +1 -1
  45. package/dist/v1/components/calendar/calendar.module.css.js +1 -1
  46. package/dist/v1/components/calendar/date-picker.cjs +6 -6
  47. package/dist/v1/components/calendar/date-picker.cjs.map +1 -1
  48. package/dist/v1/components/calendar/date-picker.d.ts +3 -2
  49. package/dist/v1/components/calendar/date-picker.d.ts.map +1 -1
  50. package/dist/v1/components/calendar/date-picker.js +6 -6
  51. package/dist/v1/components/calendar/date-picker.js.map +1 -1
  52. package/dist/v1/components/calendar/range-picker.cjs +6 -6
  53. package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
  54. package/dist/v1/components/calendar/range-picker.d.ts +3 -2
  55. package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
  56. package/dist/v1/components/calendar/range-picker.js +6 -6
  57. package/dist/v1/components/calendar/range-picker.js.map +1 -1
  58. package/dist/v1/components/callout/callout.cjs +1 -1
  59. package/dist/v1/components/callout/callout.cjs.map +1 -1
  60. package/dist/v1/components/callout/callout.d.ts +1 -1
  61. package/dist/v1/components/callout/callout.d.ts.map +1 -1
  62. package/dist/v1/components/callout/callout.js +1 -1
  63. package/dist/v1/components/callout/callout.js.map +1 -1
  64. package/dist/v1/components/container/container.cjs +31 -0
  65. package/dist/v1/components/container/container.cjs.map +1 -0
  66. package/dist/v1/components/container/container.d.ts +13 -0
  67. package/dist/v1/components/container/container.d.ts.map +1 -0
  68. package/dist/v1/components/container/container.js +29 -0
  69. package/dist/v1/components/container/container.js.map +1 -0
  70. package/dist/v1/components/container/container.module.css.cjs +8 -0
  71. package/dist/v1/components/container/container.module.css.cjs.map +1 -0
  72. package/dist/v1/components/container/container.module.css.js +4 -0
  73. package/dist/v1/components/container/container.module.css.js.map +1 -0
  74. package/dist/v1/components/container/index.d.ts +2 -0
  75. package/dist/v1/components/container/index.d.ts.map +1 -0
  76. package/dist/v1/components/filter-chip/filter-chip.cjs +53 -0
  77. package/dist/v1/components/filter-chip/filter-chip.cjs.map +1 -0
  78. package/dist/v1/components/filter-chip/filter-chip.d.ts +24 -0
  79. package/dist/v1/components/filter-chip/filter-chip.d.ts.map +1 -0
  80. package/dist/v1/components/filter-chip/filter-chip.js +51 -0
  81. package/dist/v1/components/filter-chip/filter-chip.js.map +1 -0
  82. package/dist/v1/components/filter-chip/filter-chip.module.css.cjs +8 -0
  83. package/dist/v1/components/filter-chip/filter-chip.module.css.cjs.map +1 -0
  84. package/dist/v1/components/filter-chip/filter-chip.module.css.js +4 -0
  85. package/dist/v1/components/filter-chip/filter-chip.module.css.js.map +1 -0
  86. package/dist/v1/components/filter-chip/index.d.ts +2 -0
  87. package/dist/v1/components/filter-chip/index.d.ts.map +1 -0
  88. package/dist/v1/components/image/image.cjs +43 -0
  89. package/dist/v1/components/image/image.cjs.map +1 -0
  90. package/dist/v1/components/image/image.d.ts +17 -0
  91. package/dist/v1/components/image/image.d.ts.map +1 -0
  92. package/dist/v1/components/image/image.js +41 -0
  93. package/dist/v1/components/image/image.js.map +1 -0
  94. package/dist/v1/components/image/image.module.css.cjs +8 -0
  95. package/dist/v1/components/image/image.module.css.cjs.map +1 -0
  96. package/dist/v1/components/image/image.module.css.js +4 -0
  97. package/dist/v1/components/image/image.module.css.js.map +1 -0
  98. package/dist/v1/components/image/index.d.ts +2 -0
  99. package/dist/v1/components/image/index.d.ts.map +1 -0
  100. package/dist/v1/components/input-field/input-field.cjs.map +1 -1
  101. package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
  102. package/dist/v1/components/input-field/input-field.js.map +1 -1
  103. package/dist/v1/components/link/index.d.ts +2 -0
  104. package/dist/v1/components/link/index.d.ts.map +1 -0
  105. package/dist/v1/components/link/link.cjs +74 -0
  106. package/dist/v1/components/link/link.cjs.map +1 -0
  107. package/dist/v1/components/link/link.d.ts +18 -0
  108. package/dist/v1/components/link/link.d.ts.map +1 -0
  109. package/dist/v1/components/link/link.js +72 -0
  110. package/dist/v1/components/link/link.js.map +1 -0
  111. package/dist/v1/components/link/link.module.css.cjs +8 -0
  112. package/dist/v1/components/link/link.module.css.cjs.map +1 -0
  113. package/dist/v1/components/link/link.module.css.js +4 -0
  114. package/dist/v1/components/link/link.module.css.js.map +1 -0
  115. package/dist/v1/components/list/index.d.ts +2 -0
  116. package/dist/v1/components/list/index.d.ts.map +1 -0
  117. package/dist/v1/components/list/list.cjs +42 -0
  118. package/dist/v1/components/list/list.cjs.map +1 -0
  119. package/dist/v1/components/list/list.d.ts +44 -0
  120. package/dist/v1/components/list/list.d.ts.map +1 -0
  121. package/dist/v1/components/list/list.js +40 -0
  122. package/dist/v1/components/list/list.js.map +1 -0
  123. package/dist/v1/components/list/list.module.css.cjs +8 -0
  124. package/dist/v1/components/list/list.module.css.cjs.map +1 -0
  125. package/dist/v1/components/list/list.module.css.js +4 -0
  126. package/dist/v1/components/list/list.module.css.js.map +1 -0
  127. package/dist/v1/components/popover/popover.cjs +1 -1
  128. package/dist/v1/components/popover/popover.cjs.map +1 -1
  129. package/dist/v1/components/popover/popover.d.ts.map +1 -1
  130. package/dist/v1/components/popover/popover.js +1 -1
  131. package/dist/v1/components/popover/popover.js.map +1 -1
  132. package/dist/v1/components/search/search.cjs.map +1 -1
  133. package/dist/v1/components/search/search.d.ts.map +1 -1
  134. package/dist/v1/components/search/search.js.map +1 -1
  135. package/dist/v1/components/select/select.cjs +6 -1
  136. package/dist/v1/components/select/select.cjs.map +1 -1
  137. package/dist/v1/components/select/select.d.ts +1 -0
  138. package/dist/v1/components/select/select.d.ts.map +1 -1
  139. package/dist/v1/components/select/select.js +6 -1
  140. package/dist/v1/components/select/select.js.map +1 -1
  141. package/dist/v1/components/select/select.module.css.cjs +1 -1
  142. package/dist/v1/components/select/select.module.css.js +1 -1
  143. package/dist/v1/components/separator/index.d.ts +2 -0
  144. package/dist/v1/components/separator/index.d.ts.map +1 -0
  145. package/dist/v1/components/separator/separator.cjs +32 -0
  146. package/dist/v1/components/separator/separator.cjs.map +1 -0
  147. package/dist/v1/components/separator/separator.d.ts +13 -0
  148. package/dist/v1/components/separator/separator.d.ts.map +1 -0
  149. package/dist/v1/components/separator/separator.js +30 -0
  150. package/dist/v1/components/separator/separator.js.map +1 -0
  151. package/dist/v1/components/separator/separator.module.css.cjs +8 -0
  152. package/dist/v1/components/separator/separator.module.css.cjs.map +1 -0
  153. package/dist/v1/components/separator/separator.module.css.js +4 -0
  154. package/dist/v1/components/separator/separator.module.css.js.map +1 -0
  155. package/dist/v1/components/sidepanel/sidepanel.cjs.map +1 -1
  156. package/dist/v1/components/sidepanel/sidepanel.d.ts +1 -1
  157. package/dist/v1/components/sidepanel/sidepanel.d.ts.map +1 -1
  158. package/dist/v1/components/sidepanel/sidepanel.js.map +1 -1
  159. package/dist/v1/components/slider/slider.cjs +2 -2
  160. package/dist/v1/components/slider/slider.cjs.map +1 -1
  161. package/dist/v1/components/slider/slider.d.ts +2 -2
  162. package/dist/v1/components/slider/slider.d.ts.map +1 -1
  163. package/dist/v1/components/slider/slider.js +2 -2
  164. package/dist/v1/components/slider/slider.js.map +1 -1
  165. package/dist/v1/components/text/text.cjs.map +1 -1
  166. package/dist/v1/components/text/text.d.ts.map +1 -1
  167. package/dist/v1/components/text/text.js +33 -33
  168. package/dist/v1/components/text/text.js.map +1 -1
  169. package/dist/v1/components/text/text.module.css.cjs +2 -2
  170. package/dist/v1/components/text/text.module.css.js +2 -2
  171. package/dist/v1/components/text-area/text-area.cjs +1 -1
  172. package/dist/v1/components/text-area/text-area.cjs.map +1 -1
  173. package/dist/v1/components/text-area/text-area.d.ts +1 -1
  174. package/dist/v1/components/text-area/text-area.d.ts.map +1 -1
  175. package/dist/v1/components/text-area/text-area.js +1 -1
  176. package/dist/v1/components/text-area/text-area.js.map +1 -1
  177. package/dist/v1/components/textfield/textfield.cjs.map +1 -1
  178. package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
  179. package/dist/v1/components/textfield/textfield.js.map +1 -1
  180. package/dist/v1/components/tooltip/tooltip.cjs.map +1 -1
  181. package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
  182. package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
  183. package/dist/v1/components/tooltip/tooltip.js.map +1 -1
  184. package/dist/v1/index.cjs +20 -8
  185. package/dist/v1/index.cjs.map +1 -1
  186. package/dist/v1/index.d.ts +10 -4
  187. package/dist/v1/index.d.ts.map +1 -1
  188. package/dist/v1/index.js +10 -4
  189. package/dist/v1/index.js.map +1 -1
  190. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +23 -0
  191. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs.map +1 -1
  192. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +23 -1
  193. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
  194. package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.cjs +51 -0
  195. package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -0
  196. package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.js +48 -0
  197. package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -0
  198. package/dist/v1/style.css +1 -1
  199. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sidepanel.cjs","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\nimport * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\n\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["cva","styles","_jsx","TooltipProvider","_jsxs","Collapsible.Root","Tooltip"],"mappings":";;;;;;;;AAOA,MAAM,IAAI,GAAGA,WAAG,CAACC,wBAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfC,gCAAA,CAACC,uBAAe,EACd,EAAA,QAAA,EAAAC,iCAAA,CAACC,UAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,E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MAAA,SAAS,GAAG;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;;;;;"}
1
+ {"version":3,"file":"sidepanel.cjs","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"sourcesContent":["import * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["cva","styles","_jsx","TooltipProvider","_jsxs","Collapsible.Root","Tooltip"],"mappings":";;;;;;;;AAOA,MAAM,IAAI,GAAGA,WAAG,CAACC,wBAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfC,gCAAA,CAACC,uBAAe,EACd,EAAA,QAAA,EAAAC,iCAAA,CAACC,UAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,EAAA,QAAA,EAAA,CAETH,gCAAC,CAAAI,eAAO,IACN,OAAO,EAAE,IAAI,GAAG,mBAAmB,GAAG,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AA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;;;;;"}
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithoutRef, ComponentRef, ReactNode } from "react";
2
1
  import * as Collapsible from '@radix-ui/react-collapsible';
2
+ import { ComponentPropsWithoutRef, ComponentRef, ReactNode } from "react";
3
3
  interface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {
4
4
  position?: 'left' | 'right';
5
5
  profile?: {
@@ -1 +1 @@
1
- {"version":3,"file":"sidepanel.d.ts","sourceRoot":"","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAQ3D,UAAU,cAAe,SAAQ,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC;IAChF,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;IACF,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;CAC7C;AAED,UAAU,oBAAqB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,GAAG,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;CAC3B;AAED,UAAU,kBAAmB,SAAQ,wBAAwB,CAAC,GAAG,CAAC;IAChE,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,C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oBAAoB;;;;;;;;;;;;;;;;+DAoEpB,kBAAkB;;;CA0BpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sidepanel.js","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\nimport * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\n\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["_jsx","_jsxs","Collapsible.Root"],"mappings":";;;;;;AAOA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfA,qBAAA,CAAC,eAAe,EACd,EAAA,QAAA,EAAAC,sBAAA,CAACC,IAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,EAAA,QAAA,EAAA,CAETF,qBAAC,CAAA,OAAO,IACN,OAAO,EAAE,IAAI,GAAG,mBAAmB,GAAG,iBAAiB,EACvD,IAAI,EAAE,QAAQ,KAAK,MAAM,GAAG,OAAO,GAAG,MAAM,EAAA,QAAA,EAE5CA,qBACE,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,M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"sourcesContent":["import * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["_jsx","_jsxs","Collapsible.Root"],"mappings":";;;;;;AAOA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfA,qBAAA,CAAC,eAAe,EACd,EAAA,QAAA,EAAAC,sBAAA,CAACC,IAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,EAAA,QAAA,EAAA,CAETF,qBAAC,CAAA,OAAO,IACN,OAAO,EAAE,IAAI,GAAG,mBAAmB,GAAG,iBAAiB,EACvD,IAAI,EAAE,QAAQ,KAAK,MAAM,GAAG,OAAO,GAAG,MAAM,EAAA,QAAA,EAE5CA,qBACE,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,OAAO,EAAE,MAAM,YAAY,GAAG,CAAC,IAAI,CAAC,EACpC,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,gBACC,IAAI,GAAG,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AK,YAER,QAAQ,EAAA,CACL,CACP,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACW,MACnBC,sBACE,CAAA,GAAA,EAAA,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAA,aAAA,EAChB,MAAM,EACnB,IAAI,EAAC,UAAU,EACD,cAAA,EAAA,MAAM,GAAG,MAAM,GAAG,SAAS,EACrC,GAAA,KAAK,aAETD,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAc,aAAA,EAAA,MAAM,YAAE,IAAI,EAAA,CAAQ,EACrEA,qBAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAG,QAAA,EAAA,QAAQ,EAAQ,CAAA,CAAA,EAAA,CACpD,CACL,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,eAAe,CAAC,WAAW,GAAG,kBAAkB,CAAC;AACjD,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,eAAe,CAAC,WAAW,GAAG,kBAAkB,CAAC;AACjD,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAEhC,MAAA,SAAS,GAAG;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;;;;;"}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
4
- var React = require('react');
5
4
  var index = require('../../node_modules/.pnpm/@radix-ui_react-slider@1.2.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-slider/dist/index.cjs');
6
5
  var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
7
- var thumb = require('./thumb.cjs');
6
+ var React = require('react');
8
7
  var slider_module = require('./slider.module.css.cjs');
8
+ var thumb = require('./thumb.cjs');
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -1 +1 @@
1
- {"version":3,"file":"slider.cjs","sources":["../../../../v1/components/slider/slider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type ComponentPropsWithoutRef } from 'react';\nimport * as RadixSlider from '@radix-ui/react-slider';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { ThumbIcon } from './thumb';\n\nimport styles from './slider.module.css';\n\nconst slider = cva(styles.slider, {\n variants: {\n variant: {\n single: styles['slider-variant-single'],\n range: styles['slider-variant-range'],\n },\n },\n defaultVariants: {\n variant: 'single',\n },\n});\n\nexport interface SliderProps\n extends Omit<ComponentPropsWithoutRef<typeof RadixSlider.Root>, 'value' | 'defaultValue' | 'onChange'>,\n VariantProps<typeof slider> {\n value?: number | [number, number];\n defaultValue?: number | [number, number];\n min?: number;\n max?: number;\n step?: number;\n label?: string | [string, string];\n onChange?: (value: number | [number, number]) => void;\n 'aria-label'?: string;\n 'aria-valuetext'?: string;\n}\n\nexport const Slider = React.forwardRef<React.ElementRef<typeof RadixSlider.Root>, SliderProps>(\n ({ \n className, \n variant = 'single', \n value, \n defaultValue, \n min = 0, \n max = 100, \n step = 1, \n label, \n onChange,\n 'aria-label': ariaLabel,\n 'aria-valuetext': ariaValueText,\n ...props \n }, ref) => {\n const isRange = variant === 'range';\n const defaultVal = isRange \n ? (defaultValue as [number, number]) || [min, max] \n : [defaultValue as number || min];\n const currentValue = value ? (isRange ? value as [number, number] : [value as number]) : defaultVal;\n\n const getLabel = (index: number) => {\n if (!label) return undefined;\n if (typeof label === 'string') return label;\n return label[index];\n };\n\n const getAriaValueText = (index: number) => {\n if (ariaValueText) return ariaValueText;\n const labelText = getLabel(index);\n const val = currentValue[index];\n return labelText ? `${labelText}: ${val}` : `${val}`;\n };\n\n return (\n <RadixSlider.Root\n ref={ref}\n className={`${slider({ variant })} ${className || ''}`}\n value={value ? currentValue : undefined}\n defaultValue={defaultVal}\n min={min}\n max={max}\n step={step}\n onValueChange={(val) => onChange?.(isRange ? val as [number, number] : val[0])}\n aria-label={ariaLabel || (isRange ? 'Range slider' : 'Slider')}\n {...props}\n >\n <RadixSlider.Track className={styles.track}>\n <RadixSlider.Range className={styles.range} />\n </RadixSlider.Track>\n {defaultVal.map((_, i) => (\n <RadixSlider.Thumb \n key={i} \n className={styles.thumb} \n asChild\n aria-label={getLabel(i) || `Thumb ${i + 1}`}\n aria-valuetext={getAriaValueText(i)}\n >\n <div>\n <ThumbIcon />\n {getLabel(i) && <div className={styles.label}>{getLabel(i)}</div>}\n </div>\n </RadixSlider.Thumb>\n ))}\n </RadixSlider.Root>\n );\n }\n);\n\nSlider.displayName = 'Slider';"],"names":["cva","styles","React","_jsxs","RadixSlider.Root","_jsx","RadixSlider.Track","RadixSlider.Range","RadixSlider.Thumb","ThumbIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,MAAM,GAAGA,WAAG,CAACC,qBAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,MAAM,EAAEA,qBAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAEA,qBAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,QAAQ;AAClB,KAAA;AACF,CAAA,CAAC,CAAC;MAgBU,MAAM,GAAGC,gBAAK,CAAC,UAAU,CACpC,CAAC,EACC,SAAS,EACT,OAAO,GAAG,QAAQ,EAClB,KAAK,EACL,Y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ent":["import * as RadixSlider from '@radix-ui/react-slider';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { type ComponentPropsWithoutRef } from 'react';\n\nimport styles from './slider.module.css';\nimport { ThumbIcon } from './thumb';\n\nconst slider = cva(styles.slider, {\n variants: {\n variant: {\n single: styles['slider-variant-single'],\n range: styles['slider-variant-range'],\n },\n },\n defaultVariants: {\n variant: 'single',\n },\n});\n\nexport interface SliderProps\n extends Omit<ComponentPropsWithoutRef<typeof RadixSlider.Root>, 'value' | 'defaultValue' | 'onChange'>,\n VariantProps<typeof slider> {\n value?: number | [number, number];\n defaultValue?: number | [number, number];\n min?: number;\n max?: number;\n step?: number;\n label?: string | [string, string];\n onChange?: (value: number | [number, number]) => void;\n 'aria-label'?: string;\n 'aria-valuetext'?: string;\n}\n\nexport const Slider = React.forwardRef<React.ElementRef<typeof RadixSlider.Root>, SliderProps>(\n ({ \n className, \n variant = 'single', \n value, \n defaultValue, \n min = 0, \n max = 100, \n step = 1, \n label, \n onChange,\n 'aria-label': ariaLabel,\n 'aria-valuetext': ariaValueText,\n ...props \n }, ref) => {\n const isRange = variant === 'range';\n const defaultVal = isRange \n ? (defaultValue as [number, number]) || [min, max] \n : [defaultValue as number || min];\n const currentValue = value ? (isRange ? value as [number, number] : [value as number]) : defaultVal;\n\n const getLabel = (index: number) => {\n if (!label) return undefined;\n if (typeof label === 'string') return label;\n return label[index];\n };\n\n const getAriaValueText = (index: number) => {\n if (ariaValueText) return ariaValueText;\n const labelText = getLabel(index);\n const val = currentValue[index];\n return labelText ? `${labelText}: ${val}` : `${val}`;\n };\n\n return (\n <RadixSlider.Root\n ref={ref}\n className={`${slider({ variant })} ${className || ''}`}\n value={value ? currentValue : undefined}\n defaultValue={defaultVal}\n min={min}\n max={max}\n step={step}\n onValueChange={(val) => onChange?.(isRange ? val as [number, number] : val[0])}\n aria-label={ariaLabel || (isRange ? 'Range slider' : 'Slider')}\n {...props}\n >\n <RadixSlider.Track className={styles.track}>\n <RadixSlider.Range className={styles.range} />\n </RadixSlider.Track>\n {defaultVal.map((_, i) => (\n <RadixSlider.Thumb \n key={i} \n className={styles.thumb} \n asChild\n aria-label={getLabel(i) || `Thumb ${i + 1}`}\n aria-valuetext={getAriaValueText(i)}\n >\n <div>\n <ThumbIcon />\n {getLabel(i) && <div className={styles.label}>{getLabel(i)}</div>}\n </div>\n </RadixSlider.Thumb>\n ))}\n </RadixSlider.Root>\n );\n }\n);\n\nSlider.displayName = 'Slider';"],"names":["cva","styles","React","_jsxs","RadixSlider.Root","_jsx","RadixSlider.Track","RadixSlider.Range","RadixSlider.Thumb","ThumbIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAM,MAAM,GAAGA,WAAG,CAACC,qBAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,MAAM,EAAEA,qBAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAEA,qBAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,QAAQ;AAClB,KAAA;AACF,CAAA,CAAC,CAAC;MAgBU,MAAM,GAAGC,gBAAK,CAAC,UAAU,CACpC,CAAC,EACC,SAAS,EACT,OAAO,GAAG,QAAQ,EAClB,KAAK,EACL,YAAY,EACZ,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,IAAI,GAAG,CAAC,EACR,KAAK,EACL,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,gBAAgB,EAAE,aAAa,EAC/B,GAAG,KAAK,EACT,EAAE,GAAG,KAAI;AACR,IAAA,MAAM,OAAO,GAAG,OAAO,KAAK,OAAO,CAAC;IACpC,MAAM,UAAU,GAAG,OAAO;AACxB,UAAG,YAAiC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;AAClD,UAAE,CAAC,YAAsB,IAAI,GAAG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AAiB,IAAC,SAAS,EAAEL,qBAAM,CAAC,KAAK,YACxCI,gCAAC,CAAAE,WAAiB,EAAA,EAAC,SAAS,EAAEN,qBAAM,CAAC,KAAK,EAAA,CAAI,GAC5B,EACnB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MACnBI,gCAAA,CAACG,WAAiB,IAEhB,SAAS,EAAEP,qBAAM,CAAC,KAAK,EACvB,OAAO,EAAA,IAAA,EAAA,YAAA,EACK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA,MAAA,EAAS,CAAC,GAAG,CAAC,EAAE,EAC3B,gBAAA,EAAA,gBAAgB,CAAC,CAAC,CAAC,YAEnCE,iCACE,CAAA,KAAA,EAAA,EAAA,QAAA,EAAA,CAAAE,gCAAA,CAACI,eAAS,EAAG,EAAA,CAAA,EACZ,QAAQ,CAAC,CAAC,CAAC,IAAIJ,gCAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEJ,qBAAM,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,CAAC,CAAC,CAAC,EAAO,CAAA,CAAA,EAAA,CAC7D,IATD,CAAC,CAUY,CACrB,CAAC,CAAA,EAAA,CACe,EACnB;AACJ,CAAC,EACD;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { type ComponentPropsWithoutRef } from 'react';
3
1
  import * as RadixSlider from '@radix-ui/react-slider';
4
2
  import { type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ import { type ComponentPropsWithoutRef } from 'react';
5
5
  declare const slider: (props?: ({
6
6
  variant?: "range" | "single" | null | undefined;
7
7
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../v1/components/slider/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,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AW,WACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,EACpG,YAAY,CAAC,OAAO,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,qFAmElB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
2
- import * as React from 'react';
3
2
  import { Root, Track, Range, Thumb } from '../../node_modules/.pnpm/@radix-ui_react-slider@1.2.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-slider/dist/index.js';
4
3
  import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
5
- import { ThumbIcon } from './thumb.js';
4
+ import * as React from 'react';
6
5
  import styles from './slider.module.css.js';
6
+ import { ThumbIcon } from './thumb.js';
7
7
 
8
8
  const slider = cva(styles.slider, {
9
9
  variants: {
@@ -1 +1 @@
1
- {"version":3,"file":"slider.js","sources":["../../../../v1/components/slider/slider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type ComponentPropsWithoutRef } from 'react';\nimport * as RadixSlider from '@radix-ui/react-slider';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { ThumbIcon } from './thumb';\n\nimport styles from './slider.module.css';\n\nconst slider = cva(styles.slider, {\n variants: {\n variant: {\n single: styles['slider-variant-single'],\n range: styles['slider-variant-range'],\n },\n },\n defaultVariants: {\n variant: 'single',\n },\n});\n\nexport interface SliderProps\n extends Omit<ComponentPropsWithoutRef<typeof RadixSlider.Root>, 'value' | 'defaultValue' | 'onChange'>,\n VariantProps<typeof slider> {\n value?: number | [number, number];\n defaultValue?: number | [number, number];\n min?: number;\n max?: number;\n step?: number;\n label?: string | [string, string];\n onChange?: (value: number | [number, number]) => void;\n 'aria-label'?: string;\n 'aria-valuetext'?: string;\n}\n\nexport const Slider = React.forwardRef<React.ElementRef<typeof RadixSlider.Root>, SliderProps>(\n ({ \n className, \n variant = 'single', \n value, \n defaultValue, \n min = 0, \n max = 100, \n step = 1, \n label, \n onChange,\n 'aria-label': ariaLabel,\n 'aria-valuetext': ariaValueText,\n ...props \n }, ref) => {\n const isRange = variant === 'range';\n const defaultVal = isRange \n ? (defaultValue as [number, number]) || [min, max] \n : [defaultValue as number || min];\n const currentValue = value ? (isRange ? value as [number, number] : [value as number]) : defaultVal;\n\n const getLabel = (index: number) => {\n if (!label) return undefined;\n if (typeof label === 'string') return label;\n return label[index];\n };\n\n const getAriaValueText = (index: number) => {\n if (ariaValueText) return ariaValueText;\n const labelText = getLabel(index);\n const val = currentValue[index];\n return labelText ? `${labelText}: ${val}` : `${val}`;\n };\n\n return (\n <RadixSlider.Root\n ref={ref}\n className={`${slider({ variant })} ${className || ''}`}\n value={value ? currentValue : undefined}\n defaultValue={defaultVal}\n min={min}\n max={max}\n step={step}\n onValueChange={(val) => onChange?.(isRange ? val as [number, number] : val[0])}\n aria-label={ariaLabel || (isRange ? 'Range slider' : 'Slider')}\n {...props}\n >\n <RadixSlider.Track className={styles.track}>\n <RadixSlider.Range className={styles.range} />\n </RadixSlider.Track>\n {defaultVal.map((_, i) => (\n <RadixSlider.Thumb \n key={i} \n className={styles.thumb} \n asChild\n aria-label={getLabel(i) || `Thumb ${i + 1}`}\n aria-valuetext={getAriaValueText(i)}\n >\n <div>\n <ThumbIcon />\n {getLabel(i) && <div className={styles.label}>{getLabel(i)}</div>}\n </div>\n </RadixSlider.Thumb>\n ))}\n </RadixSlider.Root>\n );\n }\n);\n\nSlider.displayName = 'Slider';"],"names":["_jsxs","RadixSlider.Root","_jsx","RadixSlider.Track","RadixSlider.Range","RadixSlider.Thumb"],"mappings":";;;;;;;AASA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,MAAM,EAAE,MAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAE,MAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,QAAQ;AAClB,KAAA;AACF,CAAA,CAAC,CAAC;MAgBU,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EACC,SAAS,EACT,OAAO,GAAG,QAAQ,EAClB,KAAK,EACL,YAAY,EACZ,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,IAAI,GAAG,CAAC,EACR,KAAK,EACL,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,gBAAgB,EAAE,aAAa,EAC/B,GAAG,KAAK,EACT,EAAE,GAAG,KAAI;AACR,IAAA,MAAM,OAAO,GAAG,OAAO,KAAK,OAAO,CAAC;IACpC,MAAM,UAAU,GAAG,OAAO;AACxB,UAAG,YAAiC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;AAClD,UAAE,CAAC,YAAsB,IAAI,GAAG,CAAC,CAAC;IACpC,MAAM,YAAY,GAAG,K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AK,YACxCD,qBAAC,CAAAE,KAAiB,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,CAAI,GAC5B,EACnB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MACnBF,qBAAA,CAACG,KAAiB,IAEhB,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAA,IAAA,EAAA,YAAA,EACK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA,MAAA,EAAS,CAAC,GAAG,CAAC,EAAE,EAC3B,gBAAA,EAAA,gBAAgB,CAAC,CAAC,CAAC,YAEnCL,sBACE,CAAA,KAAA,EAAA,EAAA,QAAA,EAAA,CAAAE,qBAAA,CAAC,SAAS,EAAG,EAAA,CAAA,EACZ,QAAQ,CAAC,CAAC,CAAC,IAAIA,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,CAAC,CAAC,CAAC,EAAO,CAAA,CAAA,EAAA,CAC7D,IATD,CAAC,CAUY,CACrB,CAAC,CAAA,EAAA,CACe,EACnB;AACJ,CAAC,EACD;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
1
+ {"version":3,"file":"slider.js","sources":["../../../../v1/components/slider/slider.tsx"],"sourcesContent":["import * as RadixSlider from '@radix-ui/react-slider';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { type ComponentPropsWithoutRef } from 'react';\n\nimport styles from './slider.module.css';\nimport { ThumbIcon } from './thumb';\n\nconst slider = cva(styles.slider, {\n variants: {\n variant: {\n single: styles['slider-variant-single'],\n range: styles['slider-variant-range'],\n },\n },\n defaultVariants: {\n variant: 'single',\n },\n});\n\nexport interface SliderProps\n extends Omit<ComponentPropsWithoutRef<typeof RadixSlider.Root>, 'value' | 'defaultValue' | 'onChange'>,\n VariantProps<typeof slider> {\n value?: number | [number, number];\n defaultValue?: number | [number, number];\n min?: number;\n max?: number;\n step?: number;\n label?: string | [string, string];\n onChange?: (value: number | [number, number]) => void;\n 'aria-label'?: string;\n 'aria-valuetext'?: string;\n}\n\nexport const Slider = React.forwardRef<React.ElementRef<typeof RadixSlider.Root>, SliderProps>(\n ({ \n className, \n variant = 'single', \n value, \n defaultValue, \n min = 0, \n max = 100, \n step = 1, \n label, \n onChange,\n 'aria-label': ariaLabel,\n 'aria-valuetext': ariaValueText,\n ...props \n }, ref) => {\n const isRange = variant === 'range';\n const defaultVal = isRange \n ? (defaultValue as [number, number]) || [min, max] \n : [defaultValue as number || min];\n const currentValue = value ? (isRange ? value as [number, number] : [value as number]) : defaultVal;\n\n const getLabel = (index: number) => {\n if (!label) return undefined;\n if (typeof label === 'string') return label;\n return label[index];\n };\n\n const getAriaValueText = (index: number) => {\n if (ariaValueText) return ariaValueText;\n const labelText = getLabel(index);\n const val = currentValue[index];\n return labelText ? `${labelText}: ${val}` : `${val}`;\n };\n\n return (\n <RadixSlider.Root\n ref={ref}\n className={`${slider({ variant })} ${className || ''}`}\n value={value ? currentValue : undefined}\n defaultValue={defaultVal}\n min={min}\n max={max}\n step={step}\n onValueChange={(val) => onChange?.(isRange ? val as [number, number] : val[0])}\n aria-label={ariaLabel || (isRange ? 'Range slider' : 'Slider')}\n {...props}\n >\n <RadixSlider.Track className={styles.track}>\n <RadixSlider.Range className={styles.range} />\n </RadixSlider.Track>\n {defaultVal.map((_, i) => (\n <RadixSlider.Thumb \n key={i} \n className={styles.thumb} \n asChild\n aria-label={getLabel(i) || `Thumb ${i + 1}`}\n aria-valuetext={getAriaValueText(i)}\n >\n <div>\n <ThumbIcon />\n {getLabel(i) && <div className={styles.label}>{getLabel(i)}</div>}\n </div>\n </RadixSlider.Thumb>\n ))}\n </RadixSlider.Root>\n );\n }\n);\n\nSlider.displayName = 'Slider';"],"names":["_jsxs","RadixSlider.Root","_jsx","RadixSlider.Track","RadixSlider.Range","RadixSlider.Thumb"],"mappings":";;;;;;;AAQA,MAAM,MAAM,GAAG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qBAAA,CAAC,SAAS,EAAG,EAAA,CAAA,EACZ,QAAQ,CAAC,CAAC,CAAC,IAAIA,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,CAAC,CAAC,CAAC,EAAO,CAAA,CAAA,EAAA,CAC7D,IATD,CAAC,CAUY,CACrB,CAAC,CAAA,EAAA,CACe,EACnB;AACJ,CAAC,EACD;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"text.cjs","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\nimport styles from \"./text.module.css\";\n\nconst text = cva(styles.text, {\n variants: {\n variant: {\n primary: styles[\"text-primary\"],\n secondary: styles[\"text-secondary\"],\n tertiary: styles[\"text-tertiary\"],\n emphasis: styles[\"text-emphasis\"],\n accent: styles[\"text-accent\"],\n attention: styles[\"text-attention\"],\n danger: styles[\"text-danger\"],\n success: styles[\"text-success\"],\n },\n size: {\n 1: styles[\"text-1\"],\n 2: styles[\"text-2\"],\n 3: styles[\"text-3\"],\n 4: styles[\"text-4\"],\n 5: styles[\"text-5\"],\n 6: styles[\"text-6\"],\n 7: styles[\"text-7\"],\n 8: styles[\"text-8\"],\n 9: styles[\"text-9\"],\n 10: styles[\"text-10\"],\n },\n weight: {\n bold: styles[\"text-weight-bold\"],\n bolder: styles[\"text-weight-bolder\"],\n normal: styles[\"text-weight-normal\"],\n lighter: styles[\"text-weight-lighter\"],\n 100: styles[\"text-weight-100\"],\n 200: styles[\"text-weight-200\"],\n 300: styles[\"text-weight-300\"],\n 400: styles[\"text-weight-400\"],\n 500: styles[\"text-weight-500\"],\n 600: styles[\"text-weight-600\"],\n 700: styles[\"text-weight-700\"],\n 800: styles[\"text-weight-800\"],\n 900: styles[\"text-weight-900\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: 2,\n weight: 400,\n },\n});\n\nexport type TextProps = PropsWithChildren<VariantProps<typeof text>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Text({\n children,\n className,\n size,\n variant,\n weight,\n ...props\n}: TextProps) {\n return (\n <span className={text({ size, className, weight, variant })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAKA,MAAM,IAAI,GAAGA,SAAG,CAACC,mBAAM,CAAC,IAAI,EAAE;AAC5B,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAEA,mBAAM,CAAC,cAAc,CAAC;AAC/B,YAAA,SAAS,EAAEA,mBAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,QAAQ,EAAEA,mBAAM,CAAC,eAAe,CAAC;AACjC,YAAA,QAAQ,EAAEA,mBAAM,CAAC,eAAe,CAAC;AACjC,YAAA,MAAM,EAAEA,mBAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,SAAS,EAAEA,mBAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,MAAM,EAAEA,mBAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,OAAO,EAAEA,mBAAM,CAAC,cAAc,CAAC;AAChC,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACnB,YAAA,CAAC,EAAEA,mBAAM,CAAC,QAAQ,CAAC;AACn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AA,EAAA,QAAQ,EACJ,CAAA,EACP;AACJ;;;;"}
1
+ {"version":3,"file":"text.cjs","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\n// Also used by link.tsx\nimport styles from \"./text.module.css\";\n\nconst text = cva(styles.text, {\n variants: {\n variant: {\n primary: styles[\"text-primary\"],\n secondary: styles[\"text-secondary\"],\n tertiary: styles[\"text-tertiary\"],\n emphasis: styles[\"text-emphasis\"],\n accent: styles[\"text-accent\"],\n attention: styles[\"text-attention\"],\n danger: styles[\"text-danger\"],\n success: styles[\"text-success\"],\n },\n size: {\n 1: styles[\"text-1\"],\n 2: styles[\"text-2\"],\n 3: styles[\"text-3\"],\n 4: styles[\"text-4\"],\n 5: styles[\"text-5\"],\n 6: styles[\"text-6\"],\n 7: styles[\"text-7\"],\n 8: styles[\"text-8\"],\n 9: styles[\"text-9\"],\n 10: styles[\"text-10\"],\n },\n weight: {\n bold: styles[\"text-weight-bold\"],\n bolder: styles[\"text-weight-bolder\"],\n normal: styles[\"text-weight-normal\"],\n lighter: styles[\"text-weight-lighter\"],\n 100: styles[\"text-weight-100\"],\n 200: styles[\"text-weight-200\"],\n 300: styles[\"text-weight-300\"],\n 400: styles[\"text-weight-400\"],\n 500: styles[\"text-weight-500\"],\n 600: styles[\"text-weight-600\"],\n 700: styles[\"text-weight-700\"],\n 800: styles[\"text-weight-800\"],\n 900: styles[\"text-weight-900\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: 2,\n weight: 400,\n },\n});\n\nexport type TextProps = PropsWithChildren<VariantProps<typeof text>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Text({\n children,\n className,\n size,\n variant,\n weight,\n ...props\n}: TextProps) {\n return (\n <span className={text({ size, className, weight, variant })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAMA,MAAM,IAAI,GAAG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;;mFA6CR,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAClE,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,2CAMX"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../v1/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK1D,QAAA,MAAM,IAAI;;;;mFA6CR,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAClE,cAAc,CAAC,eAAe,CAAC,CAAC;AAElC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,2CAMX"}
@@ -1,45 +1,45 @@
1
1
  import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
2
2
  import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
3
- import styles from './text.module.css.js';
3
+ import textStyles from './text.module.css.js';
4
4
 
5
- const text = cva(styles.text, {
5
+ const text = cva(textStyles.text, {
6
6
  variants: {
7
7
  variant: {
8
- primary: styles["text-primary"],
9
- secondary: styles["text-secondary"],
10
- tertiary: styles["text-tertiary"],
11
- emphasis: styles["text-emphasis"],
12
- accent: styles["text-accent"],
13
- attention: styles["text-attention"],
14
- danger: styles["text-danger"],
15
- success: styles["text-success"],
8
+ primary: textStyles["text-primary"],
9
+ secondary: textStyles["text-secondary"],
10
+ tertiary: textStyles["text-tertiary"],
11
+ emphasis: textStyles["text-emphasis"],
12
+ accent: textStyles["text-accent"],
13
+ attention: textStyles["text-attention"],
14
+ danger: textStyles["text-danger"],
15
+ success: textStyles["text-success"],
16
16
  },
17
17
  size: {
18
- 1: styles["text-1"],
19
- 2: styles["text-2"],
20
- 3: styles["text-3"],
21
- 4: styles["text-4"],
22
- 5: styles["text-5"],
23
- 6: styles["text-6"],
24
- 7: styles["text-7"],
25
- 8: styles["text-8"],
26
- 9: styles["text-9"],
27
- 10: styles["text-10"],
18
+ 1: textStyles["text-1"],
19
+ 2: textStyles["text-2"],
20
+ 3: textStyles["text-3"],
21
+ 4: textStyles["text-4"],
22
+ 5: textStyles["text-5"],
23
+ 6: textStyles["text-6"],
24
+ 7: textStyles["text-7"],
25
+ 8: textStyles["text-8"],
26
+ 9: textStyles["text-9"],
27
+ 10: textStyles["text-10"],
28
28
  },
29
29
  weight: {
30
- bold: styles["text-weight-bold"],
31
- bolder: styles["text-weight-bolder"],
32
- normal: styles["text-weight-normal"],
33
- lighter: styles["text-weight-lighter"],
34
- 100: styles["text-weight-100"],
35
- 200: styles["text-weight-200"],
36
- 300: styles["text-weight-300"],
37
- 400: styles["text-weight-400"],
38
- 500: styles["text-weight-500"],
39
- 600: styles["text-weight-600"],
40
- 700: styles["text-weight-700"],
41
- 800: styles["text-weight-800"],
42
- 900: styles["text-weight-900"],
30
+ bold: textStyles["text-weight-bold"],
31
+ bolder: textStyles["text-weight-bolder"],
32
+ normal: textStyles["text-weight-normal"],
33
+ lighter: textStyles["text-weight-lighter"],
34
+ 100: textStyles["text-weight-100"],
35
+ 200: textStyles["text-weight-200"],
36
+ 300: textStyles["text-weight-300"],
37
+ 400: textStyles["text-weight-400"],
38
+ 500: textStyles["text-weight-500"],
39
+ 600: textStyles["text-weight-600"],
40
+ 700: textStyles["text-weight-700"],
41
+ 800: textStyles["text-weight-800"],
42
+ 900: textStyles["text-weight-900"],
43
43
  },
44
44
  },
45
45
  defaultVariants: {
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\nimport styles from \"./text.module.css\";\n\nconst text = cva(styles.text, {\n variants: {\n variant: {\n primary: styles[\"text-primary\"],\n secondary: styles[\"text-secondary\"],\n tertiary: styles[\"text-tertiary\"],\n emphasis: styles[\"text-emphasis\"],\n accent: styles[\"text-accent\"],\n attention: styles[\"text-attention\"],\n danger: styles[\"text-danger\"],\n success: styles[\"text-success\"],\n },\n size: {\n 1: styles[\"text-1\"],\n 2: styles[\"text-2\"],\n 3: styles[\"text-3\"],\n 4: styles[\"text-4\"],\n 5: styles[\"text-5\"],\n 6: styles[\"text-6\"],\n 7: styles[\"text-7\"],\n 8: styles[\"text-8\"],\n 9: styles[\"text-9\"],\n 10: styles[\"text-10\"],\n },\n weight: {\n bold: styles[\"text-weight-bold\"],\n bolder: styles[\"text-weight-bolder\"],\n normal: styles[\"text-weight-normal\"],\n lighter: styles[\"text-weight-lighter\"],\n 100: styles[\"text-weight-100\"],\n 200: styles[\"text-weight-200\"],\n 300: styles[\"text-weight-300\"],\n 400: styles[\"text-weight-400\"],\n 500: styles[\"text-weight-500\"],\n 600: styles[\"text-weight-600\"],\n 700: styles[\"text-weight-700\"],\n 800: styles[\"text-weight-800\"],\n 900: styles[\"text-weight-900\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: 2,\n weight: 400,\n },\n});\n\nexport type TextProps = PropsWithChildren<VariantProps<typeof text>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Text({\n children,\n className,\n size,\n variant,\n weight,\n ...props\n}: TextProps) {\n return (\n <span className={text({ size, className, weight, variant })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["_jsx"],"mappings":";;;;AAKA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE;AAC5B,IA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,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,MAAM,EAAE,GAAG;AACZ,KAAA;AACF,CAAA,CAAC,CAAC;SAKa,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACE,EAAA;IACV,QACEA,gCAAM,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAA,GAAM,KAAK,EACnE,QAAA,EAAA,QAAQ,EACJ,CAAA,EACP;AACJ;;;;"}
1
+ {"version":3,"file":"text.js","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\n// Also used by link.tsx\nimport styles from \"./text.module.css\";\n\nconst text = cva(styles.text, {\n variants: {\n variant: {\n primary: styles[\"text-primary\"],\n secondary: styles[\"text-secondary\"],\n tertiary: styles[\"text-tertiary\"],\n emphasis: styles[\"text-emphasis\"],\n accent: styles[\"text-accent\"],\n attention: styles[\"text-attention\"],\n danger: styles[\"text-danger\"],\n success: styles[\"text-success\"],\n },\n size: {\n 1: styles[\"text-1\"],\n 2: styles[\"text-2\"],\n 3: styles[\"text-3\"],\n 4: styles[\"text-4\"],\n 5: styles[\"text-5\"],\n 6: styles[\"text-6\"],\n 7: styles[\"text-7\"],\n 8: styles[\"text-8\"],\n 9: styles[\"text-9\"],\n 10: styles[\"text-10\"],\n },\n weight: {\n bold: styles[\"text-weight-bold\"],\n bolder: styles[\"text-weight-bolder\"],\n normal: styles[\"text-weight-normal\"],\n lighter: styles[\"text-weight-lighter\"],\n 100: styles[\"text-weight-100\"],\n 200: styles[\"text-weight-200\"],\n 300: styles[\"text-weight-300\"],\n 400: styles[\"text-weight-400\"],\n 500: styles[\"text-weight-500\"],\n 600: styles[\"text-weight-600\"],\n 700: styles[\"text-weight-700\"],\n 800: styles[\"text-weight-800\"],\n 900: styles[\"text-weight-900\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: 2,\n weight: 400,\n },\n});\n\nexport type TextProps = PropsWithChildren<VariantProps<typeof text>> &\n HTMLAttributes<HTMLSpanElement>;\n\nexport function Text({\n children,\n className,\n size,\n variant,\n weight,\n ...props\n}: TextProps) {\n return (\n <span className={text({ size, className, weight, variant })} {...props}>\n {children}\n </span>\n );\n}\n"],"names":["styles","_jsx"],"mappings":";;;;AAMA,MAAM,IAAI,GAAG,GAAG,CAACA,UAAM,CAAC,IAAI,EAAE;AAC5B,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAEA,UAAM,CAAC,cAAc,CAAC;AAC/B,YAAA,SAAS,EAAEA,UAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,QAAQ,EAAEA,UAAM,CAAC,eAAe,CAAC;AACjC,YAAA,QAAQ,EAAEA,UAAM,CAAC,eAAe,CAAC;AACjC,YAAA,MAAM,EAAEA,UAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,SAAS,EAAEA,UAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,MAAM,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AC9B,YAAA,GAAG,EAAEA,UAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAEA,UAAM,CAAC,iBAAiB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,MAAM,EAAE,GAAG;AACZ,KAAA;AACF,CAAA,CAAC,CAAC;SAKa,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACE,EAAA;IACV,QACEC,gCAAM,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAA,GAAM,KAAK,EACnE,QAAA,EAAA,QAAQ,EACJ,CAAA,EACP;AACJ;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"text":"text-module_text__tFuTL","text-1":"text-module_text-1__-2-1Q","text-2":"text-module_text-2__5ZsOG","text-3":"text-module_text-3__U15pQ","text-4":"text-module_text-4__9N-7-","text-5":"text-module_text-5__e0fbX","text-6":"text-module_text-6__BUzVU","text-7":"text-module_text-7__No7hH","text-8":"text-module_text-8__yNdGp","text-9":"text-module_text-9__DSyEB","text-10":"text-module_text-10__k14Sp","text-weight-bold":"text-module_text-weight-bold__7ih3v","text-weight-bolder":"text-module_text-weight-bolder__mVFaj","text-weight-normal":"text-module_text-weight-normal__WnUcI","text-weight-lighter":"text-module_text-weight-lighter__5rGlI","text-weight-100":"text-module_text-weight-100__yQW-Y","text-weight-200":"text-module_text-weight-200__y7kFi","text-weight-300":"text-module_text-weight-300__dCeJe","text-weight-400":"text-module_text-weight-400__GRCMw","text-weight-500":"text-module_text-weight-500__1LhmO","text-weight-600":"text-module_text-weight-600__w51eJ","text-weight-700":"text-module_text-weight-700__oz9p8","text-weight-800":"text-module_text-weight-800__nnim6","text-weight-900":"text-module_text-weight-900__Ol4Lo","text-primary":"text-module_text-primary__3JNcv","text-secondary":"text-module_text-secondary__qhbTE","text-tertiary":"text-module_text-tertiary__-Bta6","text-emphasis":"text-module_text-emphasis__nmBMl","text-accent":"text-module_text-accent__oymau","text-attention":"text-module_text-attention__Ugy-6","text-danger":"text-module_text-danger__7pZHX","text-success":"text-module_text-success__aRO0z","text___1":"text-module_text-1__-2-1Q","text___2":"text-module_text-2__5ZsOG","text___3":"text-module_text-3__U15pQ","text___4":"text-module_text-4__9N-7-","text___5":"text-module_text-5__e0fbX","text___6":"text-module_text-6__BUzVU","text___7":"text-module_text-7__No7hH","text___8":"text-module_text-8__yNdGp","text___9":"text-module_text-9__DSyEB","text___10":"text-module_text-10__k14Sp","text___weight___bold":"text-module_text-weight-bold__7ih3v","text___weight___bolder":"text-module_text-weight-bolder__mVFaj","text___weight___normal":"text-module_text-weight-normal__WnUcI","text___weight___lighter":"text-module_text-weight-lighter__5rGlI","text___weight___100":"text-module_text-weight-100__yQW-Y","text___weight___200":"text-module_text-weight-200__y7kFi","text___weight___300":"text-module_text-weight-300__dCeJe","text___weight___400":"text-module_text-weight-400__GRCMw","text___weight___500":"text-module_text-weight-500__1LhmO","text___weight___600":"text-module_text-weight-600__w51eJ","text___weight___700":"text-module_text-weight-700__oz9p8","text___weight___800":"text-module_text-weight-800__nnim6","text___weight___900":"text-module_text-weight-900__Ol4Lo","text___primary":"text-module_text-primary__3JNcv","text___secondary":"text-module_text-secondary__qhbTE","text___tertiary":"text-module_text-tertiary__-Bta6","text___emphasis":"text-module_text-emphasis__nmBMl","text___accent":"text-module_text-accent__oymau","text___attention":"text-module_text-attention__Ugy-6","text___danger":"text-module_text-danger__7pZHX","text___success":"text-module_text-success__aRO0z"};
5
+ var textStyles = {"text":"text-module_text__tFuTL","text-1":"text-module_text-1__-2-1Q","text-2":"text-module_text-2__5ZsOG","text-3":"text-module_text-3__U15pQ","text-4":"text-module_text-4__9N-7-","text-5":"text-module_text-5__e0fbX","text-6":"text-module_text-6__BUzVU","text-7":"text-module_text-7__No7hH","text-8":"text-module_text-8__yNdGp","text-9":"text-module_text-9__DSyEB","text-10":"text-module_text-10__k14Sp","text-weight-bold":"text-module_text-weight-bold__7ih3v","text-weight-bolder":"text-module_text-weight-bolder__mVFaj","text-weight-normal":"text-module_text-weight-normal__WnUcI","text-weight-lighter":"text-module_text-weight-lighter__5rGlI","text-weight-100":"text-module_text-weight-100__yQW-Y","text-weight-200":"text-module_text-weight-200__y7kFi","text-weight-300":"text-module_text-weight-300__dCeJe","text-weight-400":"text-module_text-weight-400__GRCMw","text-weight-500":"text-module_text-weight-500__1LhmO","text-weight-600":"text-module_text-weight-600__w51eJ","text-weight-700":"text-module_text-weight-700__oz9p8","text-weight-800":"text-module_text-weight-800__nnim6","text-weight-900":"text-module_text-weight-900__Ol4Lo","text-primary":"text-module_text-primary__3JNcv","text-secondary":"text-module_text-secondary__qhbTE","text-tertiary":"text-module_text-tertiary__-Bta6","text-emphasis":"text-module_text-emphasis__nmBMl","text-accent":"text-module_text-accent__oymau","text-attention":"text-module_text-attention__Ugy-6","text-danger":"text-module_text-danger__7pZHX","text-success":"text-module_text-success__aRO0z","text___1":"text-module_text-1__-2-1Q","text___2":"text-module_text-2__5ZsOG","text___3":"text-module_text-3__U15pQ","text___4":"text-module_text-4__9N-7-","text___5":"text-module_text-5__e0fbX","text___6":"text-module_text-6__BUzVU","text___7":"text-module_text-7__No7hH","text___8":"text-module_text-8__yNdGp","text___9":"text-module_text-9__DSyEB","text___10":"text-module_text-10__k14Sp","text___weight___bold":"text-module_text-weight-bold__7ih3v","text___weight___bolder":"text-module_text-weight-bolder__mVFaj","text___weight___normal":"text-module_text-weight-normal__WnUcI","text___weight___lighter":"text-module_text-weight-lighter__5rGlI","text___weight___100":"text-module_text-weight-100__yQW-Y","text___weight___200":"text-module_text-weight-200__y7kFi","text___weight___300":"text-module_text-weight-300__dCeJe","text___weight___400":"text-module_text-weight-400__GRCMw","text___weight___500":"text-module_text-weight-500__1LhmO","text___weight___600":"text-module_text-weight-600__w51eJ","text___weight___700":"text-module_text-weight-700__oz9p8","text___weight___800":"text-module_text-weight-800__nnim6","text___weight___900":"text-module_text-weight-900__Ol4Lo","text___primary":"text-module_text-primary__3JNcv","text___secondary":"text-module_text-secondary__qhbTE","text___tertiary":"text-module_text-tertiary__-Bta6","text___emphasis":"text-module_text-emphasis__nmBMl","text___accent":"text-module_text-accent__oymau","text___attention":"text-module_text-attention__Ugy-6","text___danger":"text-module_text-danger__7pZHX","text___success":"text-module_text-success__aRO0z"};
6
6
 
7
- exports.default = styles;
7
+ exports.default = textStyles;
8
8
  //# sourceMappingURL=text.module.css.cjs.map
@@ -1,4 +1,4 @@
1
- var styles = {"text":"text-module_text__tFuTL","text-1":"text-module_text-1__-2-1Q","text-2":"text-module_text-2__5ZsOG","text-3":"text-module_text-3__U15pQ","text-4":"text-module_text-4__9N-7-","text-5":"text-module_text-5__e0fbX","text-6":"text-module_text-6__BUzVU","text-7":"text-module_text-7__No7hH","text-8":"text-module_text-8__yNdGp","text-9":"text-module_text-9__DSyEB","text-10":"text-module_text-10__k14Sp","text-weight-bold":"text-module_text-weight-bold__7ih3v","text-weight-bolder":"text-module_text-weight-bolder__mVFaj","text-weight-normal":"text-module_text-weight-normal__WnUcI","text-weight-lighter":"text-module_text-weight-lighter__5rGlI","text-weight-100":"text-module_text-weight-100__yQW-Y","text-weight-200":"text-module_text-weight-200__y7kFi","text-weight-300":"text-module_text-weight-300__dCeJe","text-weight-400":"text-module_text-weight-400__GRCMw","text-weight-500":"text-module_text-weight-500__1LhmO","text-weight-600":"text-module_text-weight-600__w51eJ","text-weight-700":"text-module_text-weight-700__oz9p8","text-weight-800":"text-module_text-weight-800__nnim6","text-weight-900":"text-module_text-weight-900__Ol4Lo","text-primary":"text-module_text-primary__3JNcv","text-secondary":"text-module_text-secondary__qhbTE","text-tertiary":"text-module_text-tertiary__-Bta6","text-emphasis":"text-module_text-emphasis__nmBMl","text-accent":"text-module_text-accent__oymau","text-attention":"text-module_text-attention__Ugy-6","text-danger":"text-module_text-danger__7pZHX","text-success":"text-module_text-success__aRO0z","text___1":"text-module_text-1__-2-1Q","text___2":"text-module_text-2__5ZsOG","text___3":"text-module_text-3__U15pQ","text___4":"text-module_text-4__9N-7-","text___5":"text-module_text-5__e0fbX","text___6":"text-module_text-6__BUzVU","text___7":"text-module_text-7__No7hH","text___8":"text-module_text-8__yNdGp","text___9":"text-module_text-9__DSyEB","text___10":"text-module_text-10__k14Sp","text___weight___bold":"text-module_text-weight-bold__7ih3v","text___weight___bolder":"text-module_text-weight-bolder__mVFaj","text___weight___normal":"text-module_text-weight-normal__WnUcI","text___weight___lighter":"text-module_text-weight-lighter__5rGlI","text___weight___100":"text-module_text-weight-100__yQW-Y","text___weight___200":"text-module_text-weight-200__y7kFi","text___weight___300":"text-module_text-weight-300__dCeJe","text___weight___400":"text-module_text-weight-400__GRCMw","text___weight___500":"text-module_text-weight-500__1LhmO","text___weight___600":"text-module_text-weight-600__w51eJ","text___weight___700":"text-module_text-weight-700__oz9p8","text___weight___800":"text-module_text-weight-800__nnim6","text___weight___900":"text-module_text-weight-900__Ol4Lo","text___primary":"text-module_text-primary__3JNcv","text___secondary":"text-module_text-secondary__qhbTE","text___tertiary":"text-module_text-tertiary__-Bta6","text___emphasis":"text-module_text-emphasis__nmBMl","text___accent":"text-module_text-accent__oymau","text___attention":"text-module_text-attention__Ugy-6","text___danger":"text-module_text-danger__7pZHX","text___success":"text-module_text-success__aRO0z"};
1
+ var textStyles = {"text":"text-module_text__tFuTL","text-1":"text-module_text-1__-2-1Q","text-2":"text-module_text-2__5ZsOG","text-3":"text-module_text-3__U15pQ","text-4":"text-module_text-4__9N-7-","text-5":"text-module_text-5__e0fbX","text-6":"text-module_text-6__BUzVU","text-7":"text-module_text-7__No7hH","text-8":"text-module_text-8__yNdGp","text-9":"text-module_text-9__DSyEB","text-10":"text-module_text-10__k14Sp","text-weight-bold":"text-module_text-weight-bold__7ih3v","text-weight-bolder":"text-module_text-weight-bolder__mVFaj","text-weight-normal":"text-module_text-weight-normal__WnUcI","text-weight-lighter":"text-module_text-weight-lighter__5rGlI","text-weight-100":"text-module_text-weight-100__yQW-Y","text-weight-200":"text-module_text-weight-200__y7kFi","text-weight-300":"text-module_text-weight-300__dCeJe","text-weight-400":"text-module_text-weight-400__GRCMw","text-weight-500":"text-module_text-weight-500__1LhmO","text-weight-600":"text-module_text-weight-600__w51eJ","text-weight-700":"text-module_text-weight-700__oz9p8","text-weight-800":"text-module_text-weight-800__nnim6","text-weight-900":"text-module_text-weight-900__Ol4Lo","text-primary":"text-module_text-primary__3JNcv","text-secondary":"text-module_text-secondary__qhbTE","text-tertiary":"text-module_text-tertiary__-Bta6","text-emphasis":"text-module_text-emphasis__nmBMl","text-accent":"text-module_text-accent__oymau","text-attention":"text-module_text-attention__Ugy-6","text-danger":"text-module_text-danger__7pZHX","text-success":"text-module_text-success__aRO0z","text___1":"text-module_text-1__-2-1Q","text___2":"text-module_text-2__5ZsOG","text___3":"text-module_text-3__U15pQ","text___4":"text-module_text-4__9N-7-","text___5":"text-module_text-5__e0fbX","text___6":"text-module_text-6__BUzVU","text___7":"text-module_text-7__No7hH","text___8":"text-module_text-8__yNdGp","text___9":"text-module_text-9__DSyEB","text___10":"text-module_text-10__k14Sp","text___weight___bold":"text-module_text-weight-bold__7ih3v","text___weight___bolder":"text-module_text-weight-bolder__mVFaj","text___weight___normal":"text-module_text-weight-normal__WnUcI","text___weight___lighter":"text-module_text-weight-lighter__5rGlI","text___weight___100":"text-module_text-weight-100__yQW-Y","text___weight___200":"text-module_text-weight-200__y7kFi","text___weight___300":"text-module_text-weight-300__dCeJe","text___weight___400":"text-module_text-weight-400__GRCMw","text___weight___500":"text-module_text-weight-500__1LhmO","text___weight___600":"text-module_text-weight-600__w51eJ","text___weight___700":"text-module_text-weight-700__oz9p8","text___weight___800":"text-module_text-weight-800__nnim6","text___weight___900":"text-module_text-weight-900__Ol4Lo","text___primary":"text-module_text-primary__3JNcv","text___secondary":"text-module_text-secondary__qhbTE","text___tertiary":"text-module_text-tertiary__-Bta6","text___emphasis":"text-module_text-emphasis__nmBMl","text___accent":"text-module_text-accent__oymau","text___attention":"text-module_text-attention__Ugy-6","text___danger":"text-module_text-danger__7pZHX","text___success":"text-module_text-success__aRO0z"};
2
2
 
3
- export { styles as default };
3
+ export { textStyles as default };
4
4
  //# sourceMappingURL=text.module.css.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
4
- var React = require('react');
5
4
  var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
5
+ var React = require('react');
6
6
  var textArea_module = require('./text-area.module.css.cjs');
7
7
 
8
8
  function _interopNamespaceDefault(e) {
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.cjs","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { cva, cx,VariantProps } from \"class-variance-authority\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<VariantProps<typeof textArea>>, \n HTMLAttributes<HTMLTextAreaElement> {\n label?: string;\n required?: boolean;\n // tooltip?: string;\n helperText?: string;\n error?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, helperText, error, width = \"200px\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={styles.label}>\n {label}\n </label>\n {!required && <span className={styles.optional}>(optional)</span>}\n {/* {tooltip && <span className={styles.helpIcon}><InfoCircledIcon /></span>} */}\n </div>\n )}\n <textarea\n className={cx(textArea({ error }), className)}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n {...props}\n />\n {helperText && <span className={styles.helperText}>{helperText}</span>}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["cva","styles","React","_jsxs","_jsx","cx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAEA,uBAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAGC,gBAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC5G,QACEC,2CAAK,SAAS,EAAEF,uBAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,aAC/C,KAAK,KACJE,iCAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEF,uBAAM,CAAC,cAAc,EACnC,QAAA,EAAA,CAAAG,gCAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAEH,uBAAM,CAAC,KAAK,EAAA,QAAA,EAC3B,KAAK,EACA,CAAA,EACP,CAAC,QAAQ,IAAIG,2CAAM,SAAS,EAAEH,uBAAM,CAAC,QAAQ,EAAmB,QAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA,CAE7D,CACP,EACDG,+CACE,SAAS,EAAEC,QAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAC7C,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,KACd,KAAK,EAAA,CACT,EACD,UAAU,IAAID,2CAAM,SAAS,EAAEH,uBAAM,CAAC,UAAU,YAAG,UAAU,EAAA,CAAQ,CAClE,EAAA,CAAA,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
1
+ {"version":3,"file":"text-area.cjs","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { cva, cx,VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<VariantProps<typeof textArea>>, \n HTMLAttributes<HTMLTextAreaElement> {\n label?: string;\n required?: boolean;\n // tooltip?: string;\n helperText?: string;\n error?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, helperText, error, width = \"200px\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={styles.label}>\n {label}\n </label>\n {!required && <span className={styles.optional}>(optional)</span>}\n {/* {tooltip && <span className={styles.helpIcon}><InfoCircledIcon /></span>} */}\n </div>\n )}\n <textarea\n className={cx(textArea({ error }), className)}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n {...props}\n />\n {helperText && <span className={styles.helperText}>{helperText}</span>}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea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,CAClE,EAAA,CAAA,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
@@ -1,6 +1,6 @@
1
+ import { VariantProps } from "class-variance-authority";
1
2
  import * as React from "react";
2
3
  import { HTMLAttributes, PropsWithChildren } from "react";
3
- import { VariantProps } from "class-variance-authority";
4
4
  declare const textArea: (props?: ({
5
5
  error?: boolean | null | undefined;
6
6
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../v1/components/text-area/text-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIhE,QAAA,MAAM,QAAQ;;mFAMZ,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,EACrF,cAAc,CAAC,mBAAmB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACpE;AAED,QAAA,MAAM,QAAQ,2FAyBb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../v1/components/text-area/text-area.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,QAAQ;;mFAMZ,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,EACrF,cAAc,CAAC,mBAAmB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACpE;AAED,QAAA,MAAM,QAAQ,2FAyBb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
2
- import * as React from 'react';
3
2
  import { cx, cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
3
+ import * as React from 'react';
4
4
  import styles from './text-area.module.css.js';
5
5
 
6
6
  const textArea = cva(styles.textarea, {
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.js","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { cva, cx,VariantProps } from \"class-variance-authority\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<VariantProps<typeof textArea>>, \n HTMLAttributes<HTMLTextAreaElement> {\n label?: string;\n required?: boolean;\n // tooltip?: string;\n helperText?: string;\n error?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, helperText, error, width = \"200px\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={styles.label}>\n {label}\n </label>\n {!required && <span className={styles.optional}>(optional)</span>}\n {/* {tooltip && <span className={styles.helpIcon}><InfoCircledIcon /></span>} */}\n </div>\n )}\n <textarea\n className={cx(textArea({ error }), className)}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n {...props}\n />\n {helperText && <span className={styles.helperText}>{helperText}</span>}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;AAOA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC5G,QACEA,gCAAK,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,aAC/C,KAAK,KACJA,sBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,cAAc,EACnC,QAAA,EAAA,CAAAC,qBAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,QAAA,EAC3B,KAAK,EACA,CAAA,EACP,CAAC,QAAQ,IAAIA,gCAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAmB,QAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA,CAE7D,CACP,EACDA,oCACE,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAC7C,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,KACd,KAAK,EAAA,CACT,EACD,UAAU,IAAIA,gCAAM,SAAS,EAAE,MAAM,CAAC,UAAU,YAAG,UAAU,EAAA,CAAQ,CAClE,EAAA,CAAA,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
1
+ {"version":3,"file":"text-area.js","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { cva, cx,VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<VariantProps<typeof textArea>>, \n HTMLAttributes<HTMLTextAreaElement> {\n label?: string;\n required?: boolean;\n // tooltip?: string;\n helperText?: string;\n error?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, helperText, error, width = \"200px\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={styles.label}>\n {label}\n </label>\n {!required && <span className={styles.optional}>(optional)</span>}\n {/* {tooltip && <span className={styles.helpIcon}><InfoCircledIcon /></span>} */}\n </div>\n )}\n <textarea\n className={cx(textArea({ error }), className)}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n {...props}\n />\n {helperText && <span className={styles.helperText}>{helperText}</span>}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;AAOA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC5G,QACEA,gCAAK,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,aAC/C,KAAK,KACJA,sBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,cAAc,EACnC,QAAA,EAAA,CAAAC,qBAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,QAAA,EAC3B,KAAK,EACA,CAAA,EACP,CAAC,QAAQ,IAAIA,gCAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAmB,QAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA,CAE7D,CACP,EACDA,oCACE,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,EAC7C,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,KACd,KAAK,EAAA,CACT,EACD,UAAU,IAAIA,gCAAM,SAAS,EAAE,MAAM,CAAC,UAAU,YAAG,UAAU,EAAA,CAAQ,CAClE,EAAA,CAAA,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"textfield.cjs","sources":["../../../../v1/components/textfield/textfield.tsx"],"sourcesContent":["import { cva, cx, VariantProps } from \"class-variance-authority\";\nimport { forwardRef, InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { Flex } from \"../flex\";\nimport styles from \"./textfield.module.css\";\n\nconst textfield = cva(styles.textfield, {\n variants: {\n size: {\n small: styles[\"textfield-sm\"],\n medium: styles[\"textfield-md\"],\n },\n\n state: {\n invalid: styles[\"textfield-invalid\"],\n valid: styles[\"textfield-valid\"],\n },\n\n hasLeadingElement: {\n true: styles[\"textfield-leading\"],\n },\n hasTrailingElement: {\n true: styles[\"textfield-trailing\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport type TextfieldProps = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> &\n PropsWithChildren<VariantProps<typeof textfield>> & {\n leading?: React.ReactElement;\n trailing?: React.ReactElement;\n iconClass?: { leadingIcon?: string; trailingIcon?: string };\n };\n\nexport const TextField = forwardRef<HTMLInputElement, TextfieldProps>(\n (\n {\n leading,\n trailing,\n className,\n src,\n size,\n state,\n style,\n iconClass,\n ...props\n },\n ref\n ) => {\n const hasLeadingElement = Boolean(leading);\n const hasTrailingElement = Boolean(trailing);\n\n return (\n <Flex align=\"center\" style={{ position: \"relative\", width: \"100%\" }}>\n {hasLeadingElement ? (\n <Flex\n style={{ left: \"8px\" }}\n className={cx(styles.leadingIcon, iconClass?.leadingIcon)}\n >\n {leading}\n </Flex>\n ) : null}\n\n <input\n className={cx(\n textfield({\n size,\n state,\n className,\n hasLeadingElement,\n hasTrailingElement,\n })\n )}\n {...props}\n ref={ref}\n />\n\n {hasTrailingElement ? (\n <Flex\n style={{ right: \"8px\" }}\n className={cx(styles.trailingIcon, iconClass?.trailingIcon)}\n >\n {trailing}\n </Flex>\n ) : null}\n </Flex>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n"],"names":["cva","styles","forwardRef","_jsxs","Flex","_jsx","cx"],"mappings":";;;;;;;;AAKA,MAAM,SAAS,GAAGA,SAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,wBAAM,CAAC,cAAc,CAAC;AAC7B,YAAA,MAAM,EAAEA,wBAAM,CAAC,cAAc,CAAC;AAC/B,SAAA;AAED,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAEA,wBAAM,CAAC,mBAAmB,CAAC;AACpC,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AACjC,SAAA;AAED,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAEA,wBAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACD,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAEA,wBAAM,CAAC,oBAAoB,CAAC;AACnC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAYI,MAAM,SAAS,GAAGC,gBAAU,CACjC,CACE,EACE,OAAO,EACP,QAAQ,EACR,SAAS,EACT,GAAG,EACH,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,KACD;AACF,IAAA,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC3C,IAAA,MAAM,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7C,IAAA,QACEC,iCAAA,CAACC,SAAI,EAAA,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAA,QAAA,EAAA,CAChE,iBAAiB,IAChBC,gCAAA,CAACD,SAAI,EAAA,EACH,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EACtB,SAAS,EAAEE,QAAE,CAACL,wBAAM,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,EAExD,QAAA,EAAA,OAAO,EACH,CAAA,IACL,IAAI,EAERI,gCAAA,CAAA,OAAA,EAAA,EACE,SAAS,EAAEC,QAAE,CACX,SAAS,CAAC;oBACR,IAAI;oBACJ,KAAK;oBACL,SAAS;oBACT,iBAAiB;oBACjB,kBAAkB;iBACnB,CAAC,CACH,KACG,KAAK,EACT,GAAG,EAAE,GAAG,GACR,EAED,kBAAkB,IACjBD,gCAAC,CAAAD,SAAI,IACH,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EACvB,SAAS,EAAEE,QAAE,CAACL,wBAAM,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,EAE1D,QAAA,EAAA,QAAQ,GACJ,IACL,IAAI,CACH,EAAA,CAAA,EACP;AACJ,CAAC,EACD;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
1
+ {"version":3,"file":"textfield.cjs","sources":["../../../../v1/components/textfield/textfield.tsx"],"sourcesContent":["import { cva, cx, VariantProps } from \"class-variance-authority\";\nimport { forwardRef, InputHTMLAttributes, PropsWithChildren } from \"react\";\n\nimport { Flex } from \"../flex\";\nimport styles from \"./textfield.module.css\";\n\nconst textfield = cva(styles.textfield, {\n variants: {\n size: {\n small: styles[\"textfield-sm\"],\n medium: styles[\"textfield-md\"],\n },\n\n state: {\n invalid: styles[\"textfield-invalid\"],\n valid: styles[\"textfield-valid\"],\n },\n\n hasLeadingElement: {\n true: styles[\"textfield-leading\"],\n },\n hasTrailingElement: {\n true: styles[\"textfield-trailing\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport type TextfieldProps = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> &\n PropsWithChildren<VariantProps<typeof textfield>> & {\n leading?: React.ReactElement;\n trailing?: React.ReactElement;\n iconClass?: { leadingIcon?: string; trailingIcon?: string };\n };\n\nexport const TextField = forwardRef<HTMLInputElement, TextfieldProps>(\n (\n {\n leading,\n trailing,\n className,\n src,\n size,\n state,\n style,\n iconClass,\n ...props\n },\n ref\n ) => {\n const hasLeadingElement = Boolean(leading);\n const hasTrailingElement = Boolean(trailing);\n\n return (\n <Flex align=\"center\" style={{ position: \"relative\", width: \"100%\" }}>\n {hasLeadingElement ? (\n <Flex\n style={{ left: \"8px\" }}\n className={cx(styles.leadingIcon, iconClass?.leadingIcon)}\n >\n {leading}\n </Flex>\n ) : null}\n\n <input\n className={cx(\n textfield({\n size,\n state,\n className,\n hasLeadingElement,\n hasTrailingElement,\n })\n )}\n {...props}\n ref={ref}\n />\n\n {hasTrailingElement ? (\n <Flex\n style={{ right: \"8px\" }}\n className={cx(styles.trailingIcon, iconClass?.trailingIcon)}\n >\n {trailing}\n </Flex>\n ) : null}\n </Flex>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n"],"names":["cva","styles","forwardRef","_jsxs","Flex","_jsx","cx"],"mappings":";;;;;;;;AAMA,MAAM,SAAS,GAAGA,SAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,wBAAM,CAAC,cAAc,CAAC;AAC7B,YAAA,MAAM,EAAEA,wBAAM,CAAC,cAAc,CAAC;AAC/B,SAAA;AAED,QAAA,KAAK,EAAE;AACL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AK,EACT,GAAG,EAAE,GAAG,GACR,EAED,kBAAkB,IACjBD,gCAAC,CAAAD,SAAI,IACH,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EACvB,SAAS,EAAEE,QAAE,CAACL,wBAAM,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,EAE1D,QAAA,EAAA,QAAQ,GACJ,IACL,IAAI,CACH,EAAA,CAAA,EACP;AACJ,CAAC,EACD;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../../v1/components/textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAc,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI3E,QAAA,MAAM,SAAS;;;;;mFAsBb,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP,GACC,iBAAiB,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,SAAS,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D,CAAC;AAEJ,eAAO,MAAM,SAAS;;;;;;;;;;;;;;oDAsDrB,CAAC"}
1
+ {"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../../v1/components/textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAc,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK3E,QAAA,MAAM,SAAS;;;;;mFAsBb,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,CACP,GACC,iBAAiB,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,SAAS,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D,CAAC;AAEJ,eAAO,MAAM,SAAS;;;;;;;;;;;;;;oDAsDrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"textfield.js","sources":["../../../../v1/components/textfield/textfield.tsx"],"sourcesContent":["import { cva, cx, VariantProps } from \"class-variance-authority\";\nimport { forwardRef, InputHTMLAttributes, PropsWithChildren } from \"react\";\nimport { Flex } from \"../flex\";\nimport styles from \"./textfield.module.css\";\n\nconst textfield = cva(styles.textfield, {\n variants: {\n size: {\n small: styles[\"textfield-sm\"],\n medium: styles[\"textfield-md\"],\n },\n\n state: {\n invalid: styles[\"textfield-invalid\"],\n valid: styles[\"textfield-valid\"],\n },\n\n hasLeadingElement: {\n true: styles[\"textfield-leading\"],\n },\n hasTrailingElement: {\n true: styles[\"textfield-trailing\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport type TextfieldProps = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> &\n PropsWithChildren<VariantProps<typeof textfield>> & {\n leading?: React.ReactElement;\n trailing?: React.ReactElement;\n iconClass?: { leadingIcon?: string; trailingIcon?: string };\n };\n\nexport const TextField = forwardRef<HTMLInputElement, TextfieldProps>(\n (\n {\n leading,\n trailing,\n className,\n src,\n size,\n state,\n style,\n iconClass,\n ...props\n },\n ref\n ) => {\n const hasLeadingElement = Boolean(leading);\n const hasTrailingElement = Boolean(trailing);\n\n return (\n <Flex align=\"center\" style={{ position: \"relative\", width: \"100%\" }}>\n {hasLeadingElement ? (\n <Flex\n style={{ left: \"8px\" }}\n className={cx(styles.leadingIcon, iconClass?.leadingIcon)}\n >\n {leading}\n </Flex>\n ) : null}\n\n <input\n className={cx(\n textfield({\n size,\n state,\n className,\n hasLeadingElement,\n hasTrailingElement,\n })\n )}\n {...props}\n ref={ref}\n />\n\n {hasTrailingElement ? (\n <Flex\n style={{ right: \"8px\" }}\n className={cx(styles.trailingIcon, iconClass?.trailingIcon)}\n >\n {trailing}\n </Flex>\n ) : null}\n </Flex>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAKA,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC;AAC7B,YAAA,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AAC/B,SAAA;AAED,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,MAAM,CAAC,mBAAmB,CAAC;AACpC,YAAA,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC;AACjC,SAAA;AAED,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACD,QAAA,kBAAkB,EAAE;AAClB,YAAA,IAAI,EAAE,MAAM,CAAC,oBAAoB,CAAC;AACnC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA,CAAC,CAAC;AAYI,MAAM,SAAS,GAAG,UAAU,CACjC,CACE,EACE,OAAO,EACP,QAAQ,EACR,SAAS,EACT,GAAG,EACH,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,KACD;AACF,IAAA,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC3C,IAAA,MAAM,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7C,IAAA,QACEA,sBAAA,CAAC,IAAI,EAAA,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAA,QAAA,EAAA,CAChE,iBAAiB,IAChBC,qBAAA,CAAC,IAAI,EAAA,EACH,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EACtB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,EAExD,QAAA,EAAA,OAAO,EACH,CAAA,IACL,IAAI,EAERA,qBAAA,CAAA,OAAA,EAAA,EACE,SAAS,EAAE,EAAE,CACX,SAAS,CAAC;oBACR,IAAI;oBACJ,KAAK;oBACL,SAAS;oBACT,iBAAiB;oBACjB,kBAAkB;iBACnB,CAAC,CACH,KACG,KAAK,EACT,GAAG,EAAE,GAAG,GACR,EAED,kBAAkB,IACjBA,qBAAC,CAAA,IAAI,IACH,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EACvB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,EAE1D,QAAA,EAAA,QAAQ,GACJ,IACL,IAAI,CACH,EAAA,CAAA,EACP;AACJ,CAAC,EACD;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
1
+ {"version":3,"file":"textfield.js","sources":["../../../../v1/components/textfield/textfield.tsx"],"sourcesContent":["import { cva, cx, VariantProps } from \"class-variance-authority\";\nimport { forwardRef, InputHTMLAttributes, PropsWithChildren } from \"react\";\n\nimport { Flex } from \"../flex\";\nimport styles from \"./textfield.module.css\";\n\nconst textfield = cva(styles.textfield, {\n variants: {\n size: {\n small: styles[\"textfield-sm\"],\n medium: styles[\"textfield-md\"],\n },\n\n state: {\n invalid: styles[\"textfield-invalid\"],\n valid: styles[\"textfield-valid\"],\n },\n\n hasLeadingElement: {\n true: styles[\"textfield-leading\"],\n },\n hasTrailingElement: {\n true: styles[\"textfield-trailing\"],\n },\n },\n defaultVariants: {\n size: \"small\",\n },\n});\n\nexport type TextfieldProps = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"size\"\n> &\n PropsWithChildren<VariantProps<typeof textfield>> & {\n leading?: React.ReactElement;\n trailing?: React.ReactElement;\n iconClass?: { leadingIcon?: string; trailingIcon?: string };\n };\n\nexport const TextField = forwardRef<HTMLInputElement, TextfieldProps>(\n (\n {\n leading,\n trailing,\n className,\n src,\n size,\n state,\n style,\n iconClass,\n ...props\n },\n ref\n ) => {\n const hasLeadingElement = Boolean(leading);\n const hasTrailingElement = Boolean(trailing);\n\n return (\n <Flex align=\"center\" style={{ position: \"relative\", width: \"100%\" }}>\n {hasLeadingElement ? (\n <Flex\n style={{ left: \"8px\" }}\n className={cx(styles.leadingIcon, iconClass?.leadingIcon)}\n >\n {leading}\n </Flex>\n ) : null}\n\n <input\n className={cx(\n textfield({\n size,\n state,\n className,\n hasLeadingElement,\n hasTrailingElement,\n })\n )}\n {...props}\n ref={ref}\n />\n\n {hasTrailingElement ? (\n <Flex\n style={{ right: \"8px\" }}\n className={cx(styles.trailingIcon, iconClass?.trailingIcon)}\n >\n {trailing}\n </Flex>\n ) : null}\n </Flex>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC;AAC7B,YAAA,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AAC/B,SAAA;AAED,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ACG,KAAK,EACT,GAAG,EAAE,GAAG,GACR,EAED,kBAAkB,IACjBA,qBAAC,CAAA,IAAI,IACH,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EACvB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,EAE1D,QAAA,EAAA,QAAQ,GACJ,IACL,IAAI,CACH,EAAA,CAAA,EACP;AACJ,CAAC,EACD;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.cjs","sources":["../../../../v1/components/tooltip/tooltip.tsx"],"sourcesContent":["import React from \"react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport { Text } from \"../text\";\n\nimport styles from \"./tooltip.module.css\";\n\nconst tooltip = cva(styles.content, {\n variants: {\n side: {\n top: styles[\"side-top\"],\n right: styles[\"side-right\"],\n bottom: styles[\"side-bottom\"],\n left: styles[\"side-left\"],\n \"top-left\": styles[\"side-top-left\"],\n \"top-right\": styles[\"side-top-right\"],\n \"bottom-left\": styles[\"side-bottom-left\"],\n \"bottom-right\": styles[\"side-bottom-right\"],\n }\n },\n defaultVariants: {\n side: \"top\"\n }\n});\n\ninterface TooltipProps extends VariantProps<typeof tooltip> {\n disabled?: boolean;\n children: React.ReactNode;\n message: React.ReactNode;\n className?: string;\n delayDuration?: number;\n skipDelayDuration?: number;\n 'aria-label'?: string;\n asChild?: boolean;\n}\n\nexport const Tooltip: React.FC<TooltipProps> = ({\n children,\n message,\n disabled,\n side = \"top\",\n className,\n delayDuration = 200,\n skipDelayDuration = 200,\n 'aria-label': ariaLabel,\n asChild = true,\n}) => {\n return disabled ? (\n children\n ) : (\n <TooltipPrimitive.Provider delayDuration={delayDuration} skipDelayDuration={skipDelayDuration}>\n <TooltipPrimitive.Root>\n <TooltipPrimitive.Trigger aria-describedby=\"tooltip\" asChild={asChild}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n id=\"tooltip\"\n role=\"tooltip\"\n aria-label={ariaLabel || (typeof message === 'string' ? message : undefined)}\n side={side?.split('-')[0] as TooltipPrimitive.TooltipContentProps['side'] || 'top'}\n align={(side?.includes('-') ? (side.split('-')[1] === 'left' ? 'start' : 'end') : 'center') satisfies 'start' | 'end' | 'center'}\n sideOffset={4}\n className={tooltip({ side, className })}\n >\n {typeof message === \"string\" ? (\n <Text>{message}</Text>\n ) : (\n message\n )}\n <TooltipPrimitive.Arrow className={styles.arrow} width={12} height={6} />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.Provider>\n );\n};\n\nTooltip.displayName = 'Tooltip';\n\nexport const TooltipProvider = TooltipPrimitive.Provider;\n"],"names":["cva","styles","_jsx","TooltipPrimitive.Provider","_jsxs","TooltipPrimitive.Root","TooltipPrimitive.Trigger","TooltipPrimitive.Portal","TooltipPrimitive.Content","Text","TooltipPrimitive.Arrow"],"mappings":";;;;;;;;AAOA,MAAM,OAAO,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAEA,sBAAM,CAAC,UAAU,CAAC;AACvB,YAAA,KAAK,EAAEA,sBAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,MAAM,EAAEA,sBAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,IAAI,EAAEA,sBAAM,CAAC,WAAW,CAAC;AACzB,YAAA,UAAU,EAAEA,sBAAM,CAAC,eAAe,CAAC;AACnC,YAAA,WAAW,EAAEA,sBAAM,CAAC,gBAAgB,CAAC;AACrC,YAAA,aAAa,EAAEA,sBAAM,CAAC,kBAAkB,CAAC;AACzC,YAAA,cAAc,EAAEA,sBAAM,CAAC,mBAAmB,CAAC;AAC5C,SAAA;AACF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,CAAQ,KAEtB,OAAO,CACR,EACDP,gCAAA,CAACQ,WAAsB,IAAC,SAAS,EAAET,sBAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAA,CAAI,IAChD,EACH,CAAA,CAAA,EAAA,CACJ,EACE,CAAA,CAC7B,CAAC;AACJ,EAAE;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEnB,MAAA,eAAe,GAAGE;;;;;"}
1
+ {"version":3,"file":"tooltip.cjs","sources":["../../../../v1/components/tooltip/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React from \"react\";\n\nimport { Text } from \"../text\";\nimport styles from \"./tooltip.module.css\";\n\nconst tooltip = cva(styles.content, {\n variants: {\n side: {\n top: styles[\"side-top\"],\n right: styles[\"side-right\"],\n bottom: styles[\"side-bottom\"],\n left: styles[\"side-left\"],\n \"top-left\": styles[\"side-top-left\"],\n \"top-right\": styles[\"side-top-right\"],\n \"bottom-left\": styles[\"side-bottom-left\"],\n \"bottom-right\": styles[\"side-bottom-right\"],\n }\n },\n defaultVariants: {\n side: \"top\"\n }\n});\n\ninterface TooltipProps extends VariantProps<typeof tooltip> {\n disabled?: boolean;\n children: React.ReactNode;\n message: React.ReactNode;\n className?: string;\n delayDuration?: number;\n skipDelayDuration?: number;\n 'aria-label'?: string;\n asChild?: boolean;\n}\n\nexport const Tooltip: React.FC<TooltipProps> = ({\n children,\n message,\n disabled,\n side = \"top\",\n className,\n delayDuration = 200,\n skipDelayDuration = 200,\n 'aria-label': ariaLabel,\n asChild = true,\n}) => {\n return disabled ? (\n children\n ) : (\n <TooltipPrimitive.Provider delayDuration={delayDuration} skipDelayDuration={skipDelayDuration}>\n <TooltipPrimitive.Root>\n <TooltipPrimitive.Trigger aria-describedby=\"tooltip\" asChild={asChild}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n id=\"tooltip\"\n role=\"tooltip\"\n aria-label={ariaLabel || (typeof message === 'string' ? message : undefined)}\n side={side?.split('-')[0] as TooltipPrimitive.TooltipContentProps['side'] || 'top'}\n align={(side?.includes('-') ? (side.split('-')[1] === 'left' ? 'start' : 'end') : 'center') satisfies 'start' | 'end' | 'center'}\n sideOffset={4}\n className={tooltip({ side, className })}\n >\n {typeof message === \"string\" ? (\n <Text>{message}</Text>\n ) : (\n message\n )}\n <TooltipPrimitive.Arrow className={styles.arrow} width={12} height={6} />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.Provider>\n );\n};\n\nTooltip.displayName = 'Tooltip';\n\nexport const TooltipProvider = TooltipPrimitive.Provider;\n"],"names":["cva","styles","_jsx","TooltipPrimitive.Provider","_jsxs","TooltipPrimitive.Root","TooltipPrimitive.Trigger","TooltipPrimitive.Portal","TooltipPrimitive.Content","Text","TooltipPrimitive.Arrow"],"mappings":";;;;;;;;AAOA,MAAM,OAAO,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAEA,sBAAM,CAAC,UAAU,CAAC;AACvB,YAAA,KAAK,EAAEA,sBAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,MAAM,EAAEA,sBAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,IAAI,EAAEA,sBAAM,CAAC,WAAW,CAAC;AACzB,YAAA,UAAU,EAAEA,sBAAM,CAAC,eAAe,CAAC;AACnC,YAAA,WAAW,EAAEA,sBAAM,CAAC,gBAAgB,CAAC;AACrC,YAAA,aAAa,EAAEA,sBAAM,CAAC,kBAAkB,CAAC;AACzC,YAAA,cAAc,EAAEA,sBAAM,CAAC,mBAAmB,CAAC;AAC5C,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,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