@raystack/apsara 0.40.0 → 0.40.2

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 (179) hide show
  1. package/dist/avatar/avatar.d.ts +3 -3
  2. package/dist/avatar/avatar.d.ts.map +1 -1
  3. package/dist/badge/badge.d.ts +1 -1
  4. package/dist/body/body.d.ts +1 -1
  5. package/dist/body/body.d.ts.map +1 -1
  6. package/dist/box/box.d.ts +1 -1
  7. package/dist/box/box.d.ts.map +1 -1
  8. package/dist/button/button.d.ts +1 -1
  9. package/dist/checkbox/checkbox.d.ts +2 -2
  10. package/dist/checkbox/checkbox.d.ts.map +1 -1
  11. package/dist/container/container.d.ts +1 -1
  12. package/dist/container/container.d.ts.map +1 -1
  13. package/dist/dialog/dialog.d.ts +2 -2
  14. package/dist/dialog/dialog.d.ts.map +1 -1
  15. package/dist/display/display.d.ts +1 -1
  16. package/dist/display/display.d.ts.map +1 -1
  17. package/dist/dropdown-menu/dropdown-menu.d.ts +5 -5
  18. package/dist/emptystate/emptystate.d.ts +1 -1
  19. package/dist/emptystate/emptystate.d.ts.map +1 -1
  20. package/dist/errorstate/errorstate.d.ts +1 -1
  21. package/dist/errorstate/errorstate.d.ts.map +1 -1
  22. package/dist/flex/flex.d.ts +1 -1
  23. package/dist/grid/grid.d.ts +1 -1
  24. package/dist/grid/grid.d.ts.map +1 -1
  25. package/dist/headline/headline.d.ts +1 -1
  26. package/dist/headline/headline.d.ts.map +1 -1
  27. package/dist/image/image.d.ts +1 -1
  28. package/dist/image/image.d.ts.map +1 -1
  29. package/dist/inputfield/inputfield.d.ts +1 -1
  30. package/dist/inputfield/inputfield.d.ts.map +1 -1
  31. package/dist/label/label.d.ts +1 -1
  32. package/dist/label/label.d.ts.map +1 -1
  33. package/dist/link/link.d.ts +1 -1
  34. package/dist/link/link.d.ts.map +1 -1
  35. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  36. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  37. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
  38. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  39. package/dist/radio/radio.d.ts +2 -2
  40. package/dist/radio/radio.d.ts.map +1 -1
  41. package/dist/scroll-area/scrollarea.d.ts +2 -2
  42. package/dist/select/select.d.ts +2 -2
  43. package/dist/separator/separator.d.ts +1 -1
  44. package/dist/separator/separator.d.ts.map +1 -1
  45. package/dist/sheet/sheet.d.ts +2 -2
  46. package/dist/sheet/sheet.d.ts.map +1 -1
  47. package/dist/sidebar/sidebar.d.ts +3 -3
  48. package/dist/sidebar/sidebar.d.ts.map +1 -1
  49. package/dist/style.css +1 -1
  50. package/dist/switch/switch.d.ts +2 -2
  51. package/dist/switch/switch.d.ts.map +1 -1
  52. package/dist/table/table.d.ts +7 -7
  53. package/dist/tabs/tabs.d.ts +4 -4
  54. package/dist/tabs/tabs.d.ts.map +1 -1
  55. package/dist/text/text.d.ts +1 -1
  56. package/dist/text/text.d.ts.map +1 -1
  57. package/dist/textarea/textarea.d.ts +2 -2
  58. package/dist/textarea/textarea.d.ts.map +1 -1
  59. package/dist/textfield/textfield.d.ts +2 -2
  60. package/dist/textfield/textfield.d.ts.map +1 -1
  61. package/dist/title/title.d.ts +1 -1
  62. package/dist/title/title.d.ts.map +1 -1
  63. package/dist/toggle-group/togglegroup.d.ts +2 -2
  64. package/dist/toggle-group/togglegroup.d.ts.map +1 -1
  65. package/dist/v1/components/announcement-bar/announcement-bar.d.ts +2 -2
  66. package/dist/v1/components/announcement-bar/announcement-bar.d.ts.map +1 -1
  67. package/dist/v1/components/avatar/avatar.d.ts +1 -1
  68. package/dist/v1/components/avatar/avatar.d.ts.map +1 -1
  69. package/dist/v1/components/badge/badge.d.ts +1 -1
  70. package/dist/v1/components/badge/badge.d.ts.map +1 -1
  71. package/dist/v1/components/box/box.d.ts +1 -1
  72. package/dist/v1/components/box/box.d.ts.map +1 -1
  73. package/dist/v1/components/breadcrumb/breadcrumb.d.ts +1 -1
  74. package/dist/v1/components/button/button.d.ts +1 -1
  75. package/dist/v1/components/calendar/calendar.module.css.cjs +1 -1
  76. package/dist/v1/components/calendar/calendar.module.css.js +1 -1
  77. package/dist/v1/components/calendar/range-picker.cjs +25 -7
  78. package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
  79. package/dist/v1/components/calendar/range-picker.d.ts +2 -1
  80. package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
  81. package/dist/v1/components/calendar/range-picker.js +25 -7
  82. package/dist/v1/components/calendar/range-picker.js.map +1 -1
  83. package/dist/v1/components/callout/callout.d.ts +2 -2
  84. package/dist/v1/components/callout/callout.d.ts.map +1 -1
  85. package/dist/v1/components/checkbox/checkbox.d.ts +1 -1
  86. package/dist/v1/components/checkbox/checkbox.d.ts.map +1 -1
  87. package/dist/v1/components/chip/chip.d.ts +1 -1
  88. package/dist/v1/components/chip/chip.d.ts.map +1 -1
  89. package/dist/v1/components/container/container.d.ts +1 -1
  90. package/dist/v1/components/container/container.d.ts.map +1 -1
  91. package/dist/v1/components/data-table/data-table.cjs +29 -6
  92. package/dist/v1/components/data-table/data-table.cjs.map +1 -1
  93. package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
  94. package/dist/v1/components/data-table/data-table.js +30 -7
  95. package/dist/v1/components/data-table/data-table.js.map +1 -1
  96. package/dist/v1/components/dialog/dialog.cjs +1 -1
  97. package/dist/v1/components/dialog/dialog.cjs.map +1 -1
  98. package/dist/v1/components/dialog/dialog.d.ts +1 -1
  99. package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
  100. package/dist/v1/components/dialog/dialog.js +1 -1
  101. package/dist/v1/components/dialog/dialog.js.map +1 -1
  102. package/dist/v1/components/dropdown-menu/dropdown-menu.d.ts +5 -5
  103. package/dist/v1/components/flex/flex.d.ts +1 -1
  104. package/dist/v1/components/headline/headline.cjs +8 -7
  105. package/dist/v1/components/headline/headline.cjs.map +1 -1
  106. package/dist/v1/components/headline/headline.d.ts +6 -4
  107. package/dist/v1/components/headline/headline.d.ts.map +1 -1
  108. package/dist/v1/components/headline/headline.js +8 -7
  109. package/dist/v1/components/headline/headline.js.map +1 -1
  110. package/dist/v1/components/headline/headline.module.css.cjs +1 -1
  111. package/dist/v1/components/headline/headline.module.css.js +1 -1
  112. package/dist/v1/components/headline/index.d.ts +1 -1
  113. package/dist/v1/components/headline/index.d.ts.map +1 -1
  114. package/dist/v1/components/icon-button/icon-button.d.ts +1 -1
  115. package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
  116. package/dist/v1/components/image/image.d.ts +1 -1
  117. package/dist/v1/components/image/image.d.ts.map +1 -1
  118. package/dist/v1/components/indicator/indicator.d.ts +1 -1
  119. package/dist/v1/components/indicator/indicator.d.ts.map +1 -1
  120. package/dist/v1/components/input-field/input-field.d.ts +1 -1
  121. package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
  122. package/dist/v1/components/label/label.d.ts +1 -1
  123. package/dist/v1/components/label/label.d.ts.map +1 -1
  124. package/dist/v1/components/link/link.cjs +17 -63
  125. package/dist/v1/components/link/link.cjs.map +1 -1
  126. package/dist/v1/components/link/link.d.ts +2 -11
  127. package/dist/v1/components/link/link.d.ts.map +1 -1
  128. package/dist/v1/components/link/link.js +17 -63
  129. package/dist/v1/components/link/link.js.map +1 -1
  130. package/dist/v1/components/link/link.module.css.cjs +1 -1
  131. package/dist/v1/components/link/link.module.css.js +1 -1
  132. package/dist/v1/components/list/list.d.ts +1 -1
  133. package/dist/v1/components/list/list.d.ts.map +1 -1
  134. package/dist/v1/components/radio/radio.d.ts +1 -1
  135. package/dist/v1/components/radio/radio.d.ts.map +1 -1
  136. package/dist/v1/components/select/select.d.ts +4 -5
  137. package/dist/v1/components/select/select.d.ts.map +1 -1
  138. package/dist/v1/components/sheet/sheet.d.ts +2 -2
  139. package/dist/v1/components/sheet/sheet.d.ts.map +1 -1
  140. package/dist/v1/components/side-panel/side-panel.d.ts +1 -1
  141. package/dist/v1/components/side-panel/side-panel.d.ts.map +1 -1
  142. package/dist/v1/components/sidebar/sidebar.cjs +12 -7
  143. package/dist/v1/components/sidebar/sidebar.cjs.map +1 -1
  144. package/dist/v1/components/sidebar/sidebar.d.ts +1 -0
  145. package/dist/v1/components/sidebar/sidebar.d.ts.map +1 -1
  146. package/dist/v1/components/sidebar/sidebar.js +13 -8
  147. package/dist/v1/components/sidebar/sidebar.js.map +1 -1
  148. package/dist/v1/components/slider/slider.d.ts +1 -1
  149. package/dist/v1/components/slider/slider.d.ts.map +1 -1
  150. package/dist/v1/components/spinner/spinner.d.ts +1 -1
  151. package/dist/v1/components/spinner/spinner.d.ts.map +1 -1
  152. package/dist/v1/components/table/table.d.ts +4 -4
  153. package/dist/v1/components/tabs/tabs.d.ts +1 -1
  154. package/dist/v1/components/tabs/tabs.d.ts.map +1 -1
  155. package/dist/v1/components/text/index.d.ts +1 -1
  156. package/dist/v1/components/text/index.d.ts.map +1 -1
  157. package/dist/v1/components/text/text.cjs +61 -30
  158. package/dist/v1/components/text/text.cjs.map +1 -1
  159. package/dist/v1/components/text/text.d.ts +31 -8
  160. package/dist/v1/components/text/text.d.ts.map +1 -1
  161. package/dist/v1/components/text/text.js +69 -39
  162. package/dist/v1/components/text/text.js.map +1 -1
  163. package/dist/v1/components/text/text.module.css.cjs +2 -2
  164. package/dist/v1/components/text/text.module.css.js +2 -2
  165. package/dist/v1/components/text-area/text-area.cjs +2 -2
  166. package/dist/v1/components/text-area/text-area.cjs.map +1 -1
  167. package/dist/v1/components/text-area/text-area.d.ts.map +1 -1
  168. package/dist/v1/components/text-area/text-area.js +2 -2
  169. package/dist/v1/components/text-area/text-area.js.map +1 -1
  170. package/dist/v1/components/textfield/textfield.d.ts +2 -2
  171. package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
  172. package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
  173. package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
  174. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  175. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  176. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
  177. package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  178. package/dist/v1/style.css +1 -1
  179. package/package.json +1 -1
@@ -1,56 +1,86 @@
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 textStyles from './text.module.css.js';
3
+ import { forwardRef } from 'react';
4
+ import { Root as $5e63c961fc1ce211$export$be92b6f5f03c0fe9 } from '../../node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js';
5
+ import styles from './text.module.css.js';
4
6
 
5
- const text = cva(textStyles.text, {
7
+ const textVariants = cva(styles.text, {
6
8
  variants: {
7
9
  variant: {
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"],
10
+ primary: styles["text-primary"],
11
+ secondary: styles["text-secondary"],
12
+ tertiary: styles["text-tertiary"],
13
+ emphasis: styles["text-emphasis"],
14
+ accent: styles["text-accent"],
15
+ attention: styles["text-attention"],
16
+ danger: styles["text-danger"],
17
+ success: styles["text-success"],
16
18
  },
17
19
  size: {
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"],
20
+ micro: styles["text-micro"],
21
+ mini: styles["text-mini"],
22
+ small: styles["text-small"],
23
+ regular: styles["text-regular"],
24
+ large: styles["text-large"],
28
25
  },
29
26
  weight: {
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"],
27
+ regular: styles["text-weight-regular"],
28
+ medium: styles["text-weight-medium"],
29
+ },
30
+ transform: {
31
+ capitalize: styles["text-transform-capitalize"],
32
+ uppercase: styles["text-transform-uppercase"],
33
+ lowercase: styles["text-transform-lowercase"],
34
+ },
35
+ align: {
36
+ center: styles["text-align-center"],
37
+ start: styles["text-align-start"],
38
+ end: styles["text-align-end"],
39
+ justify: styles["text-align-justify"],
40
+ },
41
+ lineClamp: {
42
+ 1: [styles["text-line-clamp"], styles["text-line-clamp-1"]],
43
+ 2: [styles["text-line-clamp"], styles["text-line-clamp-2"]],
44
+ 3: [styles["text-line-clamp"], styles["text-line-clamp-3"]],
45
+ 4: [styles["text-line-clamp"], styles["text-line-clamp-4"]],
46
+ 5: [styles["text-line-clamp"], styles["text-line-clamp-5"]],
47
+ },
48
+ underline: {
49
+ true: styles["text-underline"],
50
+ },
51
+ strikeThrough: {
52
+ true: styles["text-strike-through"],
53
+ },
54
+ italic: {
55
+ true: styles["text-italic"],
43
56
  },
44
57
  },
45
58
  defaultVariants: {
46
59
  variant: "primary",
47
- size: 2,
48
- weight: 400,
60
+ size: "regular",
61
+ weight: "regular",
49
62
  },
63
+ compoundVariants: [
64
+ {
65
+ strikeThrough: true,
66
+ underline: true,
67
+ className: styles["text-italic-strike-through"],
68
+ },
69
+ ],
50
70
  });
51
- function Text({ children, className, size, variant, weight, ...props }) {
52
- return (jsxRuntimeExports.jsx("span", { className: text({ size, className, weight, variant }), ...props, children: children }));
53
- }
71
+ const Text = forwardRef(({ className, size, variant, weight, transform, align, lineClamp, underline, strikeThrough, italic, as: Component = "span", children, ...rest }, ref) => (jsxRuntimeExports.jsx($5e63c961fc1ce211$export$be92b6f5f03c0fe9, { ref: ref, className: textVariants({
72
+ size,
73
+ className,
74
+ weight,
75
+ variant,
76
+ transform,
77
+ align,
78
+ lineClamp,
79
+ underline,
80
+ strikeThrough,
81
+ italic,
82
+ }), ...rest, children: jsxRuntimeExports.jsx(Component, { children: children }) })));
83
+ Text.displayName = "Text";
54
84
 
55
- export { Text };
85
+ export { Text, textVariants };
56
86
  //# sourceMappingURL=text.js.map
@@ -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\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,C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EA,UAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAEA,UAAM,CAAC,iBAAiB,CAAC;AAC9B,YAAA,GAAG,EAAEA,UAAM,CAAC,iBAAiB,CAAC;AAC9B,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;;;;"}
1
+ {"version":3,"file":"text.js","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, forwardRef } from \"react\";\nimport * as Slot from \"@radix-ui/react-slot\";\nimport styles from \"./text.module.css\";\n\nexport const textVariants = 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 micro: styles[\"text-micro\"],\n mini: styles[\"text-mini\"],\n small: styles[\"text-small\"],\n regular: styles[\"text-regular\"],\n large: styles[\"text-large\"],\n },\n weight: {\n regular: styles[\"text-weight-regular\"],\n medium: styles[\"text-weight-medium\"],\n },\n transform: {\n capitalize: styles[\"text-transform-capitalize\"],\n uppercase: styles[\"text-transform-uppercase\"],\n lowercase: styles[\"text-transform-lowercase\"],\n },\n align: {\n center: styles[\"text-align-center\"],\n start: styles[\"text-align-start\"],\n end: styles[\"text-align-end\"],\n justify: styles[\"text-align-justify\"],\n },\n lineClamp: {\n 1: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-1\"]],\n 2: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-2\"]],\n 3: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-3\"]],\n 4: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-4\"]],\n 5: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-5\"]],\n },\n underline: {\n true: styles[\"text-underline\"],\n },\n strikeThrough: {\n true: styles[\"text-strike-through\"],\n },\n italic: {\n true: styles[\"text-italic\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"regular\",\n weight: \"regular\",\n },\n compoundVariants: [\n {\n strikeThrough: true,\n underline: true,\n className: styles[\"text-italic-strike-through\"],\n },\n ],\n});\n\nexport type TextBaseProps = VariantProps<typeof textVariants>;\n\ntype TextSpanProps = { as?: \"span\" } & ComponentPropsWithoutRef<\"span\">;\ntype TextDivProps = { as: \"div\" } & ComponentPropsWithoutRef<\"div\">;\ntype TextLabelProps = { as: \"label\" } & ComponentPropsWithoutRef<\"label\">;\ntype TextPProps = { as: \"p\" } & ComponentPropsWithoutRef<\"p\">;\ntype TextAProps = { as: \"a\" } & ComponentPropsWithoutRef<\"a\">;\ntype TextProps = TextBaseProps &\n (TextSpanProps | TextDivProps | TextLabelProps | TextPProps | TextAProps);\ntype TextRef =\n | HTMLSpanElement\n | HTMLParagraphElement\n | HTMLDivElement\n | HTMLLabelElement\n | HTMLAnchorElement;\n\nexport const Text = forwardRef<TextRef, TextProps>(\n (\n {\n className,\n size,\n variant,\n weight,\n transform,\n align,\n lineClamp,\n underline,\n strikeThrough,\n italic,\n as: Component = \"span\",\n children,\n ...rest\n },\n ref,\n ) => (\n <Slot.Root\n ref={ref}\n className={textVariants({\n size,\n className,\n weight,\n variant,\n transform,\n align,\n lineClamp,\n underline,\n strikeThrough,\n italic,\n })}\n {...rest}>\n <Component>{children}</Component>\n </Slot.Root>\n ),\n);\n\nText.displayName = \"Text\";\n"],"names":["_jsx","Slot.Root"],"mappings":";;;;;;MAKa,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;AAC/B,YAAA,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC;AACjC,YAAA,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC;AACjC,YAAA,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACnC,YAAA,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;AAC7B,YAAA,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;AAChC,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC;AACzB,YAAA,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;AAC3B,YAAA,OAAO,EAAE,MAAM,CAAC,cAAc,CAAC;AAC/B,YAAA,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;AAC5B,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,MAAM,CAAC,qBAAqB,CAAC;AACtC,YAAA,MAAM,EAAE,MAAM,CAAC,oBAAoB,CAAC;AACrC,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,UAAU,EAAE,MAAM,CAAC,2BA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AA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA;AACE,YAAA,aAAa,EAAE,IAAI;AACnB,YAAA,SAAS,EAAE,IAAI;AACf,YAAA,SAAS,EAAE,MAAM,CAAC,4BAA4B,CAAC;AAChD,SAAA;AACF,KAAA;AACF,CAAA,EAAE;AAkBU,MAAA,IAAI,GAAG,UAAU,CAC5B,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,MAAM,EACN,EAAE,EAAE,SAAS,GAAG,MAAM,EACtB,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,MAEHA,qBAAC,CAAAC,yCAAS,EACR,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,YAAY,CAAC;QACtB,IAAI;QACJ,SAAS;QACT,MAAM;QACN,OAAO;QACP,SAAS;QACT,KAAK;QACL,SAAS;QACT,SAAS;QACT,aAAa;QACb,MAAM;KACP,CAAC,EAAA,GACE,IAAI,EAAA,QAAA,EACRD,qBAAC,CAAA,SAAS,EAAE,EAAA,QAAA,EAAA,QAAQ,EAAa,CAAA,EAAA,CACvB,CACb,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
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"};
5
+ var styles = {"text":"text-module_text__tFuTL","text-micro":"text-module_text-micro__GSUAc","text-mini":"text-module_text-mini__fIuvK","text-small":"text-module_text-small__Q3nLf","text-regular":"text-module_text-regular__8a0m1","text-large":"text-module_text-large__IFXes","text-weight-regular":"text-module_text-weight-regular__Bb12b","text-weight-medium":"text-module_text-weight-medium__TMOcw","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-transform-capitalize":"text-module_text-transform-capitalize__s3Df7","text-transform-uppercase":"text-module_text-transform-uppercase__Juinc","text-transform-lowercase":"text-module_text-transform-lowercase__T7WO4","text-align-center":"text-module_text-align-center__WKK-d","text-align-start":"text-module_text-align-start__TssZj","text-align-end":"text-module_text-align-end__nUYaq","text-align-justify":"text-module_text-align-justify__ma8h9","text-line-clamp":"text-module_text-line-clamp__ruTvG","text-line-clamp-1":"text-module_text-line-clamp-1__pwDt2","text-line-clamp-2":"text-module_text-line-clamp-2__Ldcfo","text-line-clamp-3":"text-module_text-line-clamp-3__lYBCv","text-line-clamp-4":"text-module_text-line-clamp-4__lwOTX","text-line-clamp-5":"text-module_text-line-clamp-5__Vz1i1","text-underline":"text-module_text-underline__akQaR","text-strike-through":"text-module_text-strike-through__94QfL","text-italic-strike-through":"text-module_text-italic-strike-through__5mMnz","text-italic":"text-module_text-italic__PDStX","text___micro":"text-module_text-micro__GSUAc","text___mini":"text-module_text-mini__fIuvK","text___small":"text-module_text-small__Q3nLf","text___regular":"text-module_text-regular__8a0m1","text___large":"text-module_text-large__IFXes","text___weight___regular":"text-module_text-weight-regular__Bb12b","text___weight___medium":"text-module_text-weight-medium__TMOcw","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___transform___capitalize":"text-module_text-transform-capitalize__s3Df7","text___transform___uppercase":"text-module_text-transform-uppercase__Juinc","text___transform___lowercase":"text-module_text-transform-lowercase__T7WO4","text___align___center":"text-module_text-align-center__WKK-d","text___align___start":"text-module_text-align-start__TssZj","text___align___end":"text-module_text-align-end__nUYaq","text___align___justify":"text-module_text-align-justify__ma8h9","text___line___clamp":"text-module_text-line-clamp__ruTvG","text___line___clamp___1":"text-module_text-line-clamp-1__pwDt2","text___line___clamp___2":"text-module_text-line-clamp-2__Ldcfo","text___line___clamp___3":"text-module_text-line-clamp-3__lYBCv","text___line___clamp___4":"text-module_text-line-clamp-4__lwOTX","text___line___clamp___5":"text-module_text-line-clamp-5__Vz1i1","text___underline":"text-module_text-underline__akQaR","text___strike___through":"text-module_text-strike-through__94QfL","text___italic___strike___through":"text-module_text-italic-strike-through__5mMnz","text___italic":"text-module_text-italic__PDStX"};
6
6
 
7
- exports.default = textStyles;
7
+ exports.default = styles;
8
8
  //# sourceMappingURL=text.module.css.cjs.map
@@ -1,4 +1,4 @@
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"};
1
+ var styles = {"text":"text-module_text__tFuTL","text-micro":"text-module_text-micro__GSUAc","text-mini":"text-module_text-mini__fIuvK","text-small":"text-module_text-small__Q3nLf","text-regular":"text-module_text-regular__8a0m1","text-large":"text-module_text-large__IFXes","text-weight-regular":"text-module_text-weight-regular__Bb12b","text-weight-medium":"text-module_text-weight-medium__TMOcw","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-transform-capitalize":"text-module_text-transform-capitalize__s3Df7","text-transform-uppercase":"text-module_text-transform-uppercase__Juinc","text-transform-lowercase":"text-module_text-transform-lowercase__T7WO4","text-align-center":"text-module_text-align-center__WKK-d","text-align-start":"text-module_text-align-start__TssZj","text-align-end":"text-module_text-align-end__nUYaq","text-align-justify":"text-module_text-align-justify__ma8h9","text-line-clamp":"text-module_text-line-clamp__ruTvG","text-line-clamp-1":"text-module_text-line-clamp-1__pwDt2","text-line-clamp-2":"text-module_text-line-clamp-2__Ldcfo","text-line-clamp-3":"text-module_text-line-clamp-3__lYBCv","text-line-clamp-4":"text-module_text-line-clamp-4__lwOTX","text-line-clamp-5":"text-module_text-line-clamp-5__Vz1i1","text-underline":"text-module_text-underline__akQaR","text-strike-through":"text-module_text-strike-through__94QfL","text-italic-strike-through":"text-module_text-italic-strike-through__5mMnz","text-italic":"text-module_text-italic__PDStX","text___micro":"text-module_text-micro__GSUAc","text___mini":"text-module_text-mini__fIuvK","text___small":"text-module_text-small__Q3nLf","text___regular":"text-module_text-regular__8a0m1","text___large":"text-module_text-large__IFXes","text___weight___regular":"text-module_text-weight-regular__Bb12b","text___weight___medium":"text-module_text-weight-medium__TMOcw","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___transform___capitalize":"text-module_text-transform-capitalize__s3Df7","text___transform___uppercase":"text-module_text-transform-uppercase__Juinc","text___transform___lowercase":"text-module_text-transform-lowercase__T7WO4","text___align___center":"text-module_text-align-center__WKK-d","text___align___start":"text-module_text-align-start__TssZj","text___align___end":"text-module_text-align-end__nUYaq","text___align___justify":"text-module_text-align-justify__ma8h9","text___line___clamp":"text-module_text-line-clamp__ruTvG","text___line___clamp___1":"text-module_text-line-clamp-1__pwDt2","text___line___clamp___2":"text-module_text-line-clamp-2__Ldcfo","text___line___clamp___3":"text-module_text-line-clamp-3__lYBCv","text___line___clamp___4":"text-module_text-line-clamp-4__lwOTX","text___line___clamp___5":"text-module_text-line-clamp-5__Vz1i1","text___underline":"text-module_text-underline__akQaR","text___strike___through":"text-module_text-strike-through__94QfL","text___italic___strike___through":"text-module_text-italic-strike-through__5mMnz","text___italic":"text-module_text-italic__PDStX"};
2
2
 
3
- export { textStyles as default };
3
+ export { styles as default };
4
4
  //# sourceMappingURL=text.module.css.js.map
@@ -34,8 +34,8 @@ const textArea = index.cva(textArea_module.default.textarea, {
34
34
  }
35
35
  }
36
36
  });
37
- const TextArea = React__namespace.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, ...props }, ref) => {
38
- return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.container, style: { width }, children: [label && (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.labelContainer, children: [jsxRuntime.jsxRuntimeExports.jsxs("label", { className: clsx.clsx(textArea_module.default.label, disabled && textArea_module.default.labelDisabled), children: [label, !required && jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: infoTooltip, side: "right", children: jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.helpIcon, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.InfoCircledIcon, {}) }) }))] })), jsxRuntime.jsxRuntimeExports.jsx("textarea", { className: index.cx(textArea({ error }), disabled && textArea_module.default.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, ...props }), helperText && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: clsx.clsx(textArea_module.default.helperText, error && textArea_module.default.helperTextError, disabled && textArea_module.default.helperTextDisabled), children: helperText }))] }));
37
+ const TextArea = React__namespace.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, placeholder, ...props }, ref) => {
38
+ return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.container, style: { width }, children: [label && (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.labelContainer, children: [jsxRuntime.jsxRuntimeExports.jsxs("label", { className: clsx.clsx(textArea_module.default.label, disabled && textArea_module.default.labelDisabled), children: [label, !required && jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: infoTooltip, side: "right", children: jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.helpIcon, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.InfoCircledIcon, {}) }) }))] })), jsxRuntime.jsxRuntimeExports.jsx("textarea", { className: index.cx(textArea({ error }), disabled && textArea_module.default.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, placeholder: placeholder, ...props }), helperText && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: clsx.clsx(textArea_module.default.helperText, error && textArea_module.default.helperTextError, disabled && textArea_module.default.helperTextDisabled), children: helperText }))] }));
39
39
  });
40
40
  TextArea.displayName = "TextArea";
41
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.cjs","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\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<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: 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, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["cva","styles","React","_jsxs","clsx","_jsx","Tooltip","InfoCircledIcon","cx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,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,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAClI,IAAA,QACEC,iCAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEF,uBAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAC/C,QAAA,EAAA,CAAA,KAAK,KACJE,iCAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEF,uBAAM,CAAC,cAAc,EACnC,QAAA,EAAA,CAAAE,iCAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAEC,SAAI,CAACH,uBAAM,CAAC,KAAK,EAAE,QAAQ,IAAIA,uBAAM,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,CACnE,KAAK,EACL,CAAC,QAAQ,IAAII,2CAAM,SAAS,EAAEJ,uBAAM,CAAC,QAAQ,EAAmB,QAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA,CAC3D,EACP,WAAW,KACVI,gCAAA,CAACC,eAAO,EAAA,EAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAC,OAAO,EAAA,QAAA,EACzCD,gCAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAEJ,uBAAM,CAAC,QAAQ,EAC9B,QAAA,EAAAI,gCAAA,CAACE,8BAAe,EAAG,EAAA,CAAA,EAAA,CACd,EACC,CAAA,CACX,IACG,CACP,EACDF,gCACE,CAAA,UAAA,EAAA,EAAA,SAAS,EAAEG,QAAE,CACX,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EACnB,QAAQ,IAAIP,uBAAM,CAAC,QAAQ,EAC3B,SAAS,CACV,EACD,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EACd,GAAA,KAAK,GACT,EACD,UAAU,KACTI,2CACE,SAAS,EAAED,SAAI,CACbH,uBAAM,CAAC,UAAU,EACjB,KAAK,IAAIA,uBAAM,CAAC,eAAe,EAC/B,QAAQ,IAAIA,uBAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,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 { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\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<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: 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, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, placeholder, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n placeholder={placeholder}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["cva","styles","React","_jsxs","clsx","_jsx","Tooltip","InfoCircledIcon","cx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,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,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,GAA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AAK,IAAIA,uBAAM,CAAC,eAAe,EAC/B,QAAQ,IAAIA,uBAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../v1/components/text-area/text-area.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAa1D,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,2FA8Cb,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":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAa1D,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,2FA+Cb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -13,8 +13,8 @@ const textArea = cva(styles.textarea, {
13
13
  }
14
14
  }
15
15
  });
16
- const TextArea = React.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, ...props }, ref) => {
17
- return (jsxRuntimeExports.jsxs("div", { className: styles.container, style: { width }, children: [label && (jsxRuntimeExports.jsxs("div", { className: styles.labelContainer, children: [jsxRuntimeExports.jsxs("label", { className: clsx(styles.label, disabled && styles.labelDisabled), children: [label, !required && jsxRuntimeExports.jsx("span", { className: styles.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntimeExports.jsx(Tooltip, { message: infoTooltip, side: "right", children: jsxRuntimeExports.jsx("span", { className: styles.helpIcon, children: jsxRuntimeExports.jsx(InfoCircledIcon, {}) }) }))] })), jsxRuntimeExports.jsx("textarea", { className: cx(textArea({ error }), disabled && styles.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, ...props }), helperText && (jsxRuntimeExports.jsx("span", { className: clsx(styles.helperText, error && styles.helperTextError, disabled && styles.helperTextDisabled), children: helperText }))] }));
16
+ const TextArea = React.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, placeholder, ...props }, ref) => {
17
+ return (jsxRuntimeExports.jsxs("div", { className: styles.container, style: { width }, children: [label && (jsxRuntimeExports.jsxs("div", { className: styles.labelContainer, children: [jsxRuntimeExports.jsxs("label", { className: clsx(styles.label, disabled && styles.labelDisabled), children: [label, !required && jsxRuntimeExports.jsx("span", { className: styles.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntimeExports.jsx(Tooltip, { message: infoTooltip, side: "right", children: jsxRuntimeExports.jsx("span", { className: styles.helpIcon, children: jsxRuntimeExports.jsx(InfoCircledIcon, {}) }) }))] })), jsxRuntimeExports.jsx("textarea", { className: cx(textArea({ error }), disabled && styles.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, placeholder: placeholder, ...props }), helperText && (jsxRuntimeExports.jsx("span", { className: clsx(styles.helperText, error && styles.helperTextError, disabled && styles.helperTextDisabled), children: helperText }))] }));
18
18
  });
19
19
  TextArea.displayName = "TextArea";
20
20
 
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.js","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\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<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: 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, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AASA,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,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAClI,IAAA,QACEA,sBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAC/C,QAAA,EAAA,CAAA,KAAK,KACJA,sBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,cAAc,EACnC,QAAA,EAAA,CAAAA,sBAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,CACnE,KAAK,EACL,CAAC,QAAQ,IAAIC,gCAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAmB,QAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA,CAC3D,EACP,WAAW,KACVA,qBAAA,CAAC,OAAO,EAAA,EAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAC,OAAO,EAAA,QAAA,EACzCA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC9B,QAAA,EAAAA,qBAAA,CAAC,eAAe,EAAG,EAAA,CAAA,EAAA,CACd,EACC,CAAA,CACX,IACG,CACP,EACDA,qBACE,CAAA,UAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CACX,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,EACnB,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAC3B,SAAS,CACV,EACD,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EACd,GAAA,KAAK,GACT,EACD,UAAU,KACTA,gCACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,EACjB,KAAK,IAAI,MAAM,CAAC,eAAe,EAC/B,QAAQ,IAAI,MAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,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 { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\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<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: 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, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, placeholder, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n placeholder={placeholder}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AASA,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,GAA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AAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EAAA,GACpB,KAAK,EACT,CAAA,EACD,UAAU,KACTA,qBACE,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,EACjB,KAAK,IAAI,MAAM,CAAC,eAAe,EAC/B,QAAQ,IAAI,MAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
@@ -5,7 +5,7 @@ declare const textfield: (props?: ({
5
5
  state?: "invalid" | "valid" | null | undefined;
6
6
  hasLeadingElement?: boolean | null | undefined;
7
7
  hasTrailingElement?: boolean | null | undefined;
8
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export type TextfieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & PropsWithChildren<VariantProps<typeof textfield>> & {
10
10
  leading?: React.ReactElement;
11
11
  trailing?: React.ReactElement;
@@ -19,7 +19,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<I
19
19
  state?: "invalid" | "valid" | null | undefined;
20
20
  hasLeadingElement?: boolean | null | undefined;
21
21
  hasTrailingElement?: boolean | null | undefined;
22
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & {
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
23
23
  children?: import("react").ReactNode;
24
24
  } & {
25
25
  leading?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -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;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
+ {"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;;;;;8EAsBb,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"}
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
3
3
  import React from "react";
4
4
  declare const tooltip: (props?: ({
5
5
  side?: "top" | "right" | "bottom" | "left" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface TooltipProps extends VariantProps<typeof tooltip> {
8
8
  disabled?: boolean;
9
9
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../v1/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,OAAO;;mFAgBX,CAAC;AAEH,UAAU,YAAa,SAAQ,YAAY,CAAC,OAAO,OAAO,CAAC;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuD1C,CAAC;AAIF,eAAO,MAAM,eAAe,iDAA4B,CAAC"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../v1/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,OAAO;;8EAgBX,CAAC;AAEH,UAAU,YAAa,SAAQ,YAAY,CAAC,OAAO,OAAO,CAAC;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuD1C,CAAC;AAIF,eAAO,MAAM,eAAe,iDAA4B,CAAC"}
@@ -79,7 +79,9 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
79
79
  ...overrideProps
80
80
  };
81
81
  }
82
+ const $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
82
83
 
84
+ exports.Root = $5e63c961fc1ce211$export$be92b6f5f03c0fe9;
83
85
  exports.Slot = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
84
86
  exports.Slottable = $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
85
87
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-slot@1.0.2_@types+react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$9IrjX$composeRefs","$9IrjX$Fragment"],"mappings":";;;;;;AAOA;AACA;AACA,qGAA0G,MAAC,yCAAyC,iBAAiBA,gBAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AAC9M,IAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AACxD,IAAI,MAAM,aAAa,GAAGC,cAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC5E,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;AACvD,YAAY,IAAI,KAAK,KAAK,SAAS,EAAE;AACrC;AACA;AACA,gBAAgB,IAAIA,cAAe,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,OAAOA,cAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7F,gBAAgB,qBAAqBC,oBAAqB,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,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AC;AACV,aAAa,IAAI,QAAQ,KAAK,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACrE,YAAY,aAAa;AACzB,YAAY,cAAc;AAC1B,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,OAAO;AACX,QAAQ,GAAG,SAAS;AACpB,QAAQ,GAAG,aAAa;AACxB,KAAK,CAAC;AACN;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-slot@1.0.2_@types+react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$9IrjX$composeRefs","$9IrjX$Fragment"],"mappings":";;;;;;AAOA;AACA;AACA,qGAA0G,MAAC,yCAAyC,iBAAiBA,gBAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AAC9M,IAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AACxD,IAAI,MAAM,aAAa,GAAGC,cAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC5E,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;AACvD,YAAY,IAAI,KAAK,KAAK,SAAS,EAAE;AACrC;AACA;AACA,gBAAgB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AC,QAAQ,CAAC,GAAG,aAAa,CAAC;AAC5E,SAAS,MAAM,IAAI,QAAQ,KAAK,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACnE,YAAY,GAAG,aAAa;AAC5B,YAAY,GAAG,cAAc;AAC7B,SAAS,CAAC;AACV,aAAa,IAAI,QAAQ,KAAK,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACrE,YAAY,aAAa;AACzB,YAAY,cAAc;AAC1B,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,OAAO;AACX,QAAQ,GAAG,SAAS;AACpB,QAAQ,GAAG,aAAa;AACxB,KAAK,CAAC;AACN,CAAC;AACI,MAAC,yCAAyC,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -77,6 +77,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
77
77
  ...overrideProps
78
78
  };
79
79
  }
80
+ const $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;
80
81
 
81
- export { $5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable };
82
+ export { $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable };
82
83
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-slot@1.0.2_@types+react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babel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AAU,EAAE;AACjE;AACA,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,GAAG,UAAU;AACrB,KAAK,CAAC;AACN,IAAI,IAAI,MAAM,QAAQ,IAAI,UAAU,CAAC;AACrC,QAAQ,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAClD,QAAQ,MAAM,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AACpD,QAAQ,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACpD,QAAQ,IAAI,SAAS,EAAE;AACvB;AACA,YAAY,IAAI,aAAa,IAAI,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG;AACtF,gBAAgB,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACxC,gBAAgB,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC;AACvC,aAAa,CAAC;AACd,iBAAiB,IAAI,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;AAC5E,SAAS,MAAM,IAAI,QAAQ,KAAK,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACnE,YAAY,GAAG,aAAa;AAC5B,YAAY,GAAG,cAAc;AAC7B,SAAS,CAAC;AACV,aAAa,IAAI,QAAQ,KAAK,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG;AACrE,YAAY,aAAa;AACzB,YAAY,cAAc;AAC1B,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,OAAO;AACX,QAAQ,GAAG,SAAS;AACpB,QAAQ,GAAG,aAAa;AACxB,KAAK,CAAC;AACN;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-slot@1.0.2_@types+react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["import $9IrjX$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $9IrjX$forwardRef, Children as $9IrjX$Children, isValidElement as $9IrjX$isValidElement, createElement as $9IrjX$createElement, cloneElement as $9IrjX$cloneElement, Fragment as $9IrjX$Fragment} from \"react\";\nimport {composeRefs as $9IrjX$composeRefs} from \"@radix-ui/react-compose-refs\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Slot\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n const childrenArray = $9IrjX$Children.toArray(children);\n const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);\n if (slottable) {\n // the new element to render is the one passed as a child of `Slottable`\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child)=>{\n if (child === slottable) {\n // because the new element will be the one rendered, we are only interested\n // in grabbing its children (`newElement.props.children`)\n if ($9IrjX$Children.count(newElement) > 1) return $9IrjX$Children.only(null);\n return /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? newElement.props.children : null;\n } else return child;\n });\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), /*#__PURE__*/ $9IrjX$isValidElement(newElement) ? /*#__PURE__*/ $9IrjX$cloneElement(newElement, undefined, newChildren) : null);\n }\n return /*#__PURE__*/ $9IrjX$createElement($5e63c961fc1ce211$var$SlotClone, $9IrjX$babelruntimehelpersesmextends({}, slotProps, {\n ref: forwardedRef\n }), children);\n});\n$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';\n/* -------------------------------------------------------------------------------------------------\n * SlotClone\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ $9IrjX$forwardRef((props, forwardedRef)=>{\n const { children: children , ...slotProps } = props;\n if (/*#__PURE__*/ $9IrjX$isValidElement(children)) return /*#__PURE__*/ $9IrjX$cloneElement(children, {\n ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),\n ref: forwardedRef ? $9IrjX$composeRefs(forwardedRef, children.ref) : children.ref\n });\n return $9IrjX$Children.count(children) > 1 ? $9IrjX$Children.only(null) : null;\n});\n$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';\n/* -------------------------------------------------------------------------------------------------\n * Slottable\n * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{\n return /*#__PURE__*/ $9IrjX$createElement($9IrjX$Fragment, null, children);\n};\n/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {\n return /*#__PURE__*/ $9IrjX$isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;\n}\nfunction $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {\n // all child props should override\n const overrideProps = {\n ...childProps\n };\n for(const propName in childProps){\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n // if the handler exists on both, we compose them\n if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{\n childPropValue(...args);\n slotPropValue(...args);\n };\n else if (slotPropValue) overrideProps[propName] = slotPropValue;\n } else if (propName === 'style') overrideProps[propName] = {\n ...slotPropValue,\n ...childPropValue\n };\n else if (propName === 'className') overrideProps[propName] = [\n slotPropValue,\n childPropValue\n ].filter(Boolean).join(' ');\n }\n return {\n ...slotProps,\n ...overrideProps\n };\n}\nconst $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360;\n\n\n\n\nexport {$5e63c961fc1ce211$export$8c6ed5c666ac1360 as Slot, $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 as Slottable, $5e63c961fc1ce211$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9IrjX$forwardRef","$9IrjX$Children","$9IrjX$isValidElement","$9IrjX$createElement","$9IrjX$babelruntimehelpersesmextends","$9IrjX$cloneElement","$9IrjX$composeRefs","$9IrjX$Fragment"],"mappings":";;;;AAOA;AACA;AACA,qGAA0G,MAAC,yCAAyC,iBAAiBA,UAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AAC9M,IAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;AACxD,IAAI,MAAM,aAAa,GAAGC,QAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5D,IAAI,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAC5E,IAAI,IAAI,SAAS,EAAE;AACnB;AACA,QAAQ,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpD,QAAQ,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;AACvD,YAAY,IAAI,KAAK,KAAK,SAAS,EAAE;AACrC;AACA;AACA,gBAAgB,IAAIA,QAAe,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,OAAOA,QAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7F,gBAAgB,qBAAqBC,cAAqB,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1G,aAAa,MAAM,OAAO,KAAK,CAAC;AAChC,SAAS,CAAC,CAAC;AACX,QAAQ,qBAAqBC,aAAoB,CAAC,+BAA+B,EAAEC,QAAoC,CAAC,EAAE,EAAE,SAAS,EAAE;AACvI,YAAY,GAAG,EAAE,YAAY;AAC7B,SAAS,CAAC,gBAAgBF,c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