@tpc-mare/mare-ui-components-react 1.0.2 → 1.0.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -0
  3. package/dist/accordion/index.js +1 -1
  4. package/dist/accordion.d.ts +36 -0
  5. package/dist/{avatar/Avatar.types.d.ts → avatar.d.ts} +34 -26
  6. package/dist/badge.d.ts +19 -0
  7. package/dist/banner/index.js +1 -1
  8. package/dist/banner.d.ts +23 -0
  9. package/dist/breadcrumbs/index.js +1 -1
  10. package/dist/breadcrumbs.d.ts +24 -0
  11. package/dist/button/index.js +1 -1
  12. package/dist/button.d.ts +45 -0
  13. package/dist/checkbox/index.js +1 -1
  14. package/dist/{checkbox/Checkbox.types.d.ts → checkbox.d.ts} +79 -69
  15. package/dist/combobox/index.js +1 -1
  16. package/dist/combobox.d.ts +43 -0
  17. package/dist/confirm-dialog/index.js +1 -1
  18. package/dist/confirm-dialog.d.ts +34 -0
  19. package/dist/counter/index.js +1 -1
  20. package/dist/{counter/Counter.types.d.ts → counter.d.ts} +34 -23
  21. package/dist/date-picker/index.js +1 -1
  22. package/dist/{date-picker/DatePicker.types.d.ts → date-picker.d.ts} +76 -52
  23. package/dist/dialog/index.js +2 -2
  24. package/dist/{dialog/Dialog.types.d.ts → dialog.d.ts} +74 -55
  25. package/dist/divider.d.ts +18 -0
  26. package/dist/drawer/index.js +1 -1
  27. package/dist/{drawer/Drawer.types.d.ts → drawer.d.ts} +68 -53
  28. package/dist/expandable-counter/index.js +1 -1
  29. package/dist/{expandable-counter/ExpandableCounter.types.d.ts → expandable-counter.d.ts} +25 -19
  30. package/dist/filter-chip/index.js +1 -1
  31. package/dist/filter-chip-dropdown-multiple/index.js +1 -1
  32. package/dist/filter-chip-dropdown-multiple.d.ts +42 -0
  33. package/dist/filter-chip-dropdown-single/index.js +1 -1
  34. package/dist/filter-chip-dropdown-single.d.ts +40 -0
  35. package/dist/filter-chip-group.d.ts +27 -0
  36. package/dist/{filter-chip/FilterChip.types.d.ts → filter-chip.d.ts} +49 -40
  37. package/dist/floating-action-button/index.js +1 -1
  38. package/dist/floating-action-button.d.ts +46 -0
  39. package/dist/image-item.d.ts +15 -0
  40. package/dist/image-slider/index.js +1 -1
  41. package/dist/image-slider.d.ts +12 -0
  42. package/dist/index/index.js +40 -40
  43. package/dist/index.d.ts +1693 -0
  44. package/dist/input-number/index.js +1 -1
  45. package/dist/{input-number/InputNumber.types.d.ts → input-number.d.ts} +42 -30
  46. package/dist/input-otp/index.js +1 -1
  47. package/dist/{input-otp/InputOtp.types.d.ts → input-otp.d.ts} +36 -27
  48. package/dist/input-text/index.js +2 -2
  49. package/dist/input-text.d.ts +77 -0
  50. package/dist/keyboard-commands/index.js +51 -31
  51. package/dist/keyboard-commands.d.ts +264 -0
  52. package/dist/menu/index.js +1 -1
  53. package/dist/menu.d.ts +48 -0
  54. package/dist/message/index.js +1 -1
  55. package/dist/message.d.ts +28 -0
  56. package/dist/multi-select/index.js +1 -1
  57. package/dist/{multi-select/MultiSelect.types.d.ts → multi-select.d.ts} +62 -31
  58. package/dist/overlay-badge/index.js +1 -1
  59. package/dist/{overlay-badge/OverlayBadge.types.d.ts → overlay-badge.d.ts} +25 -17
  60. package/dist/paginator/index.js +1 -1
  61. package/dist/{paginator/Paginator.types.d.ts → paginator.d.ts} +27 -21
  62. package/dist/panel-menu/index.js +1 -1
  63. package/dist/panel-menu.d.ts +29 -0
  64. package/dist/password/index.js +1 -1
  65. package/dist/{password/Password.types.d.ts → password.d.ts} +58 -39
  66. package/dist/{progress-bar/ProgressBar.types.d.ts → progress-bar.d.ts} +45 -38
  67. package/dist/{progress-spinner/ProgressSpinner.d.ts → progress-spinner.d.ts} +15 -10
  68. package/dist/radio-group/index.js +1 -1
  69. package/dist/{radio-group/RadioGroup.types.d.ts → radio-group.d.ts} +81 -62
  70. package/dist/search-field/index.js +1 -1
  71. package/dist/search-field.d.ts +55 -0
  72. package/dist/segmented-control/index.js +1 -1
  73. package/dist/{segmented-control/SegmentedControl.types.d.ts → segmented-control.d.ts} +70 -54
  74. package/dist/select-field/index.js +1 -1
  75. package/dist/select-field.d.ts +40 -0
  76. package/dist/shared/{Accordion-BSmOrxH6.js → Accordion-QSdlMSst.js} +9 -6
  77. package/dist/shared/{Banner-D4na_bM8.js → Banner-DMWwNO2K.js} +6 -3
  78. package/dist/shared/{Breadcrumbs-Cqr3Jitd.js → Breadcrumbs-bcs9_ByY.js} +4 -1
  79. package/dist/shared/{Button-C2ULmKj3.js → Button-BqFuDnSs.js} +98 -92
  80. package/dist/shared/{Checkbox-DCq3_MWz.js → Checkbox-DgZAQsbr.js} +94 -87
  81. package/dist/shared/Combobox-CiaEi_RG.js +148 -0
  82. package/dist/shared/{ConfirmDialog-cmLTBBNs.js → ConfirmDialog-DHsPafOo.js} +8 -3
  83. package/dist/shared/{Counter-0siKQRKc.js → Counter-lqywtgF6.js} +25 -27
  84. package/dist/shared/{DatePicker-DhIWE0V_.js → DatePicker-t6xP4UWu.js} +370 -346
  85. package/dist/shared/{DialogFooter-Cx7G-GHH.js → DialogFooter-DKFuHOJl.js} +4 -1
  86. package/dist/shared/{DialogHeader-DdVPFxGf.js → DialogHeader-D0dg5FBI.js} +14 -14
  87. package/dist/shared/{DrawerFooter-DEb2gqW-.js → DrawerFooter-CGrPQoLH.js} +35 -26
  88. package/dist/shared/{ExpandableCounter-pPJIrd6L.js → ExpandableCounter-BOCHfuye.js} +23 -22
  89. package/dist/shared/{FilterChip-TpKF-4vP.js → FilterChip-Cc4BBVz3.js} +21 -21
  90. package/dist/shared/{FilterChipDropdownMultiple-2mr_Z57i.js → FilterChipDropdownMultiple-DL3mHW9H.js} +20 -15
  91. package/dist/shared/{FilterChipDropdownSingle-CLmWzX9q.js → FilterChipDropdownSingle-BUrzUAmy.js} +31 -22
  92. package/dist/shared/FloatingActionButton-Dhqp98s7.js +27 -0
  93. package/dist/shared/{HelperText-zmUym82m.js → HelperText-C9TsD0wC.js} +1 -0
  94. package/dist/shared/IconField-Bp2H10B1.js +89 -0
  95. package/dist/shared/{ImageSlider-Bgb1kNQ4.js → ImageSlider-DT0B5g68.js} +5 -5
  96. package/dist/shared/InputNumber-CUNq3cPa.js +75 -0
  97. package/dist/shared/InputOtp-wTUwu1NG.js +75 -0
  98. package/dist/shared/{Menu-Cv9dU1iA.js → Menu-DBHlDgtQ.js} +5 -2
  99. package/dist/shared/{Message-CQUdM9rR.js → Message-B36kcrfu.js} +4 -4
  100. package/dist/shared/MultiSelect-CfKm_FPp.js +248 -0
  101. package/dist/shared/{OverlayBadge-Dkosm3Il.js → OverlayBadge-CnQI_NE0.js} +1 -0
  102. package/dist/shared/{Paginator-QTDpAJ-N.js → Paginator-BRQx1GRQ.js} +48 -49
  103. package/dist/shared/{PanelMenu-BpjNM7O_.js → PanelMenu-Dw-K6H2C.js} +14 -4
  104. package/dist/shared/Password-BWNvygrO.js +113 -0
  105. package/dist/shared/RadioGroup-CHgzVvZO.js +145 -0
  106. package/dist/shared/SearchField-Cuw3MVaD.js +73 -0
  107. package/dist/shared/{SegmentedControl-BfE3jNM6.js → SegmentedControl-D3znmx9l.js} +4 -1
  108. package/dist/shared/SelectField-BAuctVIF.js +120 -0
  109. package/dist/shared/Slider-D_iNiPxa.js +110 -0
  110. package/dist/shared/{Snackbar-BhORbyt-.js → Snackbar-DP-b4GWx.js} +50 -17
  111. package/dist/shared/{Stepper-DrKKSn_j.js → Stepper-CudtdHSg.js} +26 -18
  112. package/dist/shared/Switch-C1dd2rX1.js +114 -0
  113. package/dist/shared/{Tabs-DuufYBV2.js → Tabs-lGGLALGR.js} +4 -1
  114. package/dist/shared/{TagChip-CP3aX2_G.js → TagChip-QQ6p0JgU.js} +1 -1
  115. package/dist/shared/Textarea-CJfNbqGA.js +51 -0
  116. package/dist/shared/useControllableValue-DhckT_e1.js +13 -0
  117. package/dist/skeleton.d.ts +30 -0
  118. package/dist/slider/index.js +1 -1
  119. package/dist/{slider/Slider.types.d.ts → slider.d.ts} +33 -24
  120. package/dist/snackbar/index.js +1 -1
  121. package/dist/{snackbar/Snackbar.types.d.ts → snackbar.d.ts} +63 -42
  122. package/dist/stepper/index.js +1 -1
  123. package/dist/stepper.d.ts +38 -0
  124. package/dist/switch/index.js +1 -1
  125. package/dist/{switch/Switch.types.d.ts → switch.d.ts} +68 -59
  126. package/dist/tabs/index.js +1 -1
  127. package/dist/tabs.d.ts +30 -0
  128. package/dist/tag-chip/index.js +1 -1
  129. package/dist/{tag-chip/TagChip.types.d.ts → tag-chip.d.ts} +33 -21
  130. package/dist/tag.d.ts +23 -0
  131. package/dist/textarea/index.js +1 -1
  132. package/dist/textarea.d.ts +26 -0
  133. package/package.json +15 -8
  134. package/dist/.storybook/main.d.ts +0 -3
  135. package/dist/.storybook/manager.d.ts +0 -1
  136. package/dist/.storybook/preview.d.ts +0 -3
  137. package/dist/accordion/Accordion.d.ts +0 -2
  138. package/dist/accordion/Accordion.types.d.ts +0 -20
  139. package/dist/accordion/index.d.ts +0 -2
  140. package/dist/avatar/Avatar.d.ts +0 -2
  141. package/dist/avatar/index.d.ts +0 -2
  142. package/dist/badge/Badge.d.ts +0 -2
  143. package/dist/badge/Badge.types.d.ts +0 -11
  144. package/dist/badge/index.d.ts +0 -2
  145. package/dist/banner/Banner.d.ts +0 -2
  146. package/dist/banner/Banner.types.d.ts +0 -15
  147. package/dist/banner/index.d.ts +0 -2
  148. package/dist/breadcrumbs/Breadcrumbs.d.ts +0 -2
  149. package/dist/breadcrumbs/Breadcrumbs.types.d.ts +0 -11
  150. package/dist/breadcrumbs/index.d.ts +0 -2
  151. package/dist/button/Button.d.ts +0 -2
  152. package/dist/button/Button.types.d.ts +0 -24
  153. package/dist/button/index.d.ts +0 -2
  154. package/dist/checkbox/Checkbox.d.ts +0 -2
  155. package/dist/checkbox/index.d.ts +0 -2
  156. package/dist/combobox/Combobox.d.ts +0 -13
  157. package/dist/combobox/Combobox.types.d.ts +0 -16
  158. package/dist/combobox/index.d.ts +0 -2
  159. package/dist/confirm-dialog/ConfirmDialog.d.ts +0 -2
  160. package/dist/confirm-dialog/ConfirmDialog.types.d.ts +0 -21
  161. package/dist/confirm-dialog/index.d.ts +0 -2
  162. package/dist/counter/Counter.d.ts +0 -2
  163. package/dist/counter/index.d.ts +0 -2
  164. package/dist/date-picker/DatePicker.d.ts +0 -3
  165. package/dist/date-picker/index.d.ts +0 -2
  166. package/dist/dialog/Dialog.d.ts +0 -2
  167. package/dist/dialog/DialogFooter.d.ts +0 -2
  168. package/dist/dialog/DialogHeader.d.ts +0 -2
  169. package/dist/dialog/index.d.ts +0 -4
  170. package/dist/divider/Divider.d.ts +0 -2
  171. package/dist/divider/Divider.types.d.ts +0 -8
  172. package/dist/divider/index.d.ts +0 -2
  173. package/dist/drawer/Drawer.d.ts +0 -2
  174. package/dist/drawer/DrawerFooter.d.ts +0 -2
  175. package/dist/drawer/DrawerHeader.d.ts +0 -2
  176. package/dist/drawer/index.d.ts +0 -4
  177. package/dist/expandable-counter/ExpandableCounter.d.ts +0 -2
  178. package/dist/expandable-counter/index.d.ts +0 -2
  179. package/dist/filter-chip/FilterChip.d.ts +0 -2
  180. package/dist/filter-chip/index.d.ts +0 -2
  181. package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.d.ts +0 -9
  182. package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.types.d.ts +0 -19
  183. package/dist/filter-chip-dropdown-multiple/index.d.ts +0 -2
  184. package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.d.ts +0 -11
  185. package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.types.d.ts +0 -15
  186. package/dist/filter-chip-dropdown-single/index.d.ts +0 -2
  187. package/dist/filter-chip-group/FilterChipGroup.d.ts +0 -8
  188. package/dist/filter-chip-group/FilterChipGroup.types.d.ts +0 -12
  189. package/dist/filter-chip-group/index.d.ts +0 -2
  190. package/dist/floating-action-button/FloatingActionButton.d.ts +0 -2
  191. package/dist/floating-action-button/FloatingActionButton.types.d.ts +0 -9
  192. package/dist/floating-action-button/index.d.ts +0 -2
  193. package/dist/image-item/ImageItem.d.ts +0 -2
  194. package/dist/image-item/ImageItem.types.d.ts +0 -7
  195. package/dist/image-item/index.d.ts +0 -2
  196. package/dist/image-slider/ImageSlider.d.ts +0 -2
  197. package/dist/image-slider/ImageSlider.types.d.ts +0 -6
  198. package/dist/image-slider/index.d.ts +0 -2
  199. package/dist/index/index.d.ts +0 -94
  200. package/dist/input-number/InputNumber.d.ts +0 -2
  201. package/dist/input-number/index.d.ts +0 -2
  202. package/dist/input-otp/InputOtp.d.ts +0 -2
  203. package/dist/input-otp/index.d.ts +0 -2
  204. package/dist/input-text/CharacterCount.d.ts +0 -5
  205. package/dist/input-text/FloatLabel.d.ts +0 -6
  206. package/dist/input-text/FormField.d.ts +0 -8
  207. package/dist/input-text/HelperText.d.ts +0 -4
  208. package/dist/input-text/IconField.d.ts +0 -18
  209. package/dist/input-text/InputText.d.ts +0 -2
  210. package/dist/input-text/InputText.types.d.ts +0 -14
  211. package/dist/input-text/field-layout.d.ts +0 -12
  212. package/dist/input-text/index.d.ts +0 -11
  213. package/dist/keyboard-commands/index.d.ts +0 -5
  214. package/dist/keyboard-commands/useKeyboardCommands.d.ts +0 -27
  215. package/dist/keyboard-commands/useKeyboardNavGrid.d.ts +0 -19
  216. package/dist/keyboard-commands/useKeyboardNavList.d.ts +0 -17
  217. package/dist/keyboard-commands/useKeyboardScope.d.ts +0 -20
  218. package/dist/menu/Menu.d.ts +0 -2
  219. package/dist/menu/Menu.types.d.ts +0 -19
  220. package/dist/menu/index.d.ts +0 -2
  221. package/dist/message/Message.d.ts +0 -2
  222. package/dist/message/Message.types.d.ts +0 -17
  223. package/dist/message/index.d.ts +0 -2
  224. package/dist/multi-select/MultiSelect.d.ts +0 -12
  225. package/dist/multi-select/index.d.ts +0 -2
  226. package/dist/overlay-badge/OverlayBadge.d.ts +0 -2
  227. package/dist/overlay-badge/index.d.ts +0 -2
  228. package/dist/paginator/Paginator.d.ts +0 -2
  229. package/dist/paginator/index.d.ts +0 -2
  230. package/dist/panel-menu/PanelMenu.d.ts +0 -2
  231. package/dist/panel-menu/PanelMenu.types.d.ts +0 -12
  232. package/dist/panel-menu/index.d.ts +0 -2
  233. package/dist/password/Password.d.ts +0 -7
  234. package/dist/password/index.d.ts +0 -2
  235. package/dist/progress-bar/ProgressBar.d.ts +0 -2
  236. package/dist/progress-bar/index.d.ts +0 -2
  237. package/dist/progress-spinner/index.d.ts +0 -2
  238. package/dist/radio-group/RadioGroup.d.ts +0 -2
  239. package/dist/radio-group/index.d.ts +0 -2
  240. package/dist/search-field/SearchField.d.ts +0 -2
  241. package/dist/search-field/SearchField.types.d.ts +0 -26
  242. package/dist/search-field/index.d.ts +0 -2
  243. package/dist/segmented-control/SegmentedControl.d.ts +0 -2
  244. package/dist/segmented-control/index.d.ts +0 -2
  245. package/dist/select-field/SelectField.d.ts +0 -14
  246. package/dist/select-field/SelectField.types.d.ts +0 -11
  247. package/dist/select-field/index.d.ts +0 -2
  248. package/dist/shared/Combobox-DrkeDMW0.js +0 -139
  249. package/dist/shared/FloatingActionButton-BWB5Taeg.js +0 -28
  250. package/dist/shared/IconCheck-DzZA6b2U.js +0 -5
  251. package/dist/shared/IconChevronDown-ev2ML7Ex.js +0 -5
  252. package/dist/shared/IconChevronRight-DEIDRsvg.js +0 -7
  253. package/dist/shared/IconField-CqKydKep.js +0 -81
  254. package/dist/shared/IconMinus-fS_GL0Et.js +0 -5
  255. package/dist/shared/IconSearch-CgM6jEUh.js +0 -5
  256. package/dist/shared/IconX-CpPADKjZ.js +0 -5
  257. package/dist/shared/InputNumber-nxus9h5s.js +0 -64
  258. package/dist/shared/InputOtp-BxBc6Vhs.js +0 -73
  259. package/dist/shared/MultiSelect-DlaYWcPo.js +0 -248
  260. package/dist/shared/Password-D4PRaleH.js +0 -97
  261. package/dist/shared/RadioGroup-B8CXU8-l.js +0 -139
  262. package/dist/shared/SearchField-DIsFhJ22.js +0 -64
  263. package/dist/shared/SelectField-CcnbnPEi.js +0 -121
  264. package/dist/shared/Slider-Cl9PyH2q.js +0 -102
  265. package/dist/shared/Switch-B5DSQLFL.js +0 -106
  266. package/dist/shared/Textarea-DHJIWBRM.js +0 -42
  267. package/dist/shared/createReactComponent-Cb6Pzf10.js +0 -48
  268. package/dist/shared/useMediaQuery.d.ts +0 -5
  269. package/dist/skeleton/Skeleton.d.ts +0 -2
  270. package/dist/skeleton/Skeleton.types.d.ts +0 -20
  271. package/dist/skeleton/index.d.ts +0 -2
  272. package/dist/slider/Slider.d.ts +0 -2
  273. package/dist/slider/index.d.ts +0 -2
  274. package/dist/snackbar/Snackbar.d.ts +0 -3
  275. package/dist/snackbar/Snackbar.test.d.ts +0 -1
  276. package/dist/snackbar/index.d.ts +0 -2
  277. package/dist/stepper/Stepper.d.ts +0 -2
  278. package/dist/stepper/Stepper.types.d.ts +0 -18
  279. package/dist/stepper/index.d.ts +0 -2
  280. package/dist/switch/Switch.d.ts +0 -2
  281. package/dist/switch/index.d.ts +0 -2
  282. package/dist/tabs/Tabs.d.ts +0 -10
  283. package/dist/tabs/Tabs.types.d.ts +0 -7
  284. package/dist/tabs/index.d.ts +0 -2
  285. package/dist/tag/Tag.d.ts +0 -2
  286. package/dist/tag/Tag.types.d.ts +0 -11
  287. package/dist/tag/index.d.ts +0 -2
  288. package/dist/tag-chip/TagChip.d.ts +0 -2
  289. package/dist/tag-chip/index.d.ts +0 -2
  290. package/dist/textarea/Textarea.d.ts +0 -2
  291. package/dist/textarea/Textarea.types.d.ts +0 -15
  292. package/dist/textarea/index.d.ts +0 -2
  293. package/dist/vite.config.d.ts +0 -2
@@ -1,14 +0,0 @@
1
- import { InputHTMLAttributes } from 'react';
2
- import { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
3
- export type { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
4
- type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'className' | 'style'>;
5
- export interface InputTextProperties extends ForwardedNativeProperties {
6
- /** Controlled value. */
7
- value?: string;
8
- /** Controlled change handler — receives the next string value. */
9
- onValueChange?: (value: string) => void;
10
- size?: InputTextSize;
11
- rounded?: boolean;
12
- invalid?: boolean;
13
- disabled?: boolean;
14
- }
@@ -1,12 +0,0 @@
1
- export interface FieldLayout {
2
- hasFloatLabel: boolean;
3
- iconSide: 'left' | 'right' | 'both' | null;
4
- }
5
- export declare const FieldLayoutContext: import('react').Context<FieldLayout | null>;
6
- export declare const useFieldLayout: () => FieldLayout | null;
7
- /** Combines a parent IconField's side (if any) with this one's — nesting two
8
- * IconFields (one 'left', one 'right') around the same input, e.g.
9
- * SearchField's search + clear icons, needs both padded, not just the
10
- * nearest one. Two IconFields on the SAME side is a consumer error; last one
11
- * wins rather than throwing. */
12
- export declare const mergeIconSide: (parentSide: FieldLayout["iconSide"], ownSide: "left" | "right") => FieldLayout["iconSide"];
@@ -1,11 +0,0 @@
1
- export { InputText } from './InputText';
2
- export { CharacterCount } from './CharacterCount';
3
- export { FormField } from './FormField';
4
- export { FloatLabel } from './FloatLabel';
5
- export { IconField } from './IconField';
6
- export { HelperText } from './HelperText';
7
- export type { InputTextProperties, InputTextSize } from './InputText.types';
8
- export type { CharacterCountProperties } from './CharacterCount';
9
- export type { FormFieldProperties } from './FormField';
10
- export type { FloatLabelProperties } from './FloatLabel';
11
- export type { IconFieldProperties } from './IconField';
@@ -1,5 +0,0 @@
1
- export * from './useKeyboardScope';
2
- export * from './useKeyboardCommands';
3
- export * from './useKeyboardNavList';
4
- export * from './useKeyboardNavGrid';
5
- export * from '@tpc-development/mare-ui-components-core/keyboard-commands';
@@ -1,27 +0,0 @@
1
- import { KeyboardCommandTarget, ScrollAreaOptions, KeyboardCommand, KbdHintContext, KbdHintEntry } from '@tpc-development/mare-ui-components-core/keyboard-commands';
2
- export interface UseKeyboardCommandsOptions {
3
- commands?: KeyboardCommand[];
4
- hintContext?: KbdHintContext;
5
- hintCommands?: KbdHintEntry[];
6
- depth?: number;
7
- /** Default: true. */
8
- visible?: boolean;
9
- autoFocus?: boolean;
10
- scrollable?: boolean | ScrollAreaOptions;
11
- ariaAttributes?: Record<string, string>;
12
- capture?: boolean;
13
- triggerOn?: 'keydown' | 'keyup' | 'both';
14
- }
15
- /**
16
- * React adapter for the keyboard-commands engine — same core (chord
17
- * matching, ARIA injection, scroll handling, overlay depth-guard) as the Vue
18
- * `useKeyboardCommands` composable, wired with hooks instead of Vue
19
- * reactivity. `targetRef` is a plain ref object (window, or an element ref
20
- * attached via JSX `ref={...}`); bind/rebind happens once on mount.
21
- */
22
- export declare function useKeyboardCommands(targetRef: {
23
- current: KeyboardCommandTarget | null;
24
- }, options?: UseKeyboardCommandsOptions): {
25
- commandGroupId: string;
26
- isActive: boolean;
27
- };
@@ -1,19 +0,0 @@
1
- export interface NavGridCell {
2
- row: number;
3
- col: number;
4
- }
5
- export interface UseKeyboardNavGridOptions {
6
- rows: number;
7
- cols: number;
8
- depth?: number;
9
- wrap?: boolean;
10
- onSelect?: (cell: NavGridCell) => void;
11
- onActivate?: (cell: NavGridCell) => void;
12
- }
13
- export interface UseKeyboardNavGridReturn {
14
- focused: NavGridCell;
15
- containerRef: (node: HTMLElement | null) => void;
16
- focus: (cell: NavGridCell, instant?: boolean) => void;
17
- isFocused: (row: number, col: number) => boolean;
18
- }
19
- export declare function useKeyboardNavGrid(options: UseKeyboardNavGridOptions): UseKeyboardNavGridReturn;
@@ -1,17 +0,0 @@
1
- export interface UseKeyboardNavListOptions<T> {
2
- items: readonly T[];
3
- depth?: number;
4
- wrap?: boolean;
5
- onSelect?: (item: T, index: number) => void;
6
- onActivate?: (item: T, index: number) => void;
7
- }
8
- export interface UseKeyboardNavListReturn<T> {
9
- focusedIndex: number;
10
- focusedItem: T | null;
11
- containerRef: (node: HTMLElement | null) => void;
12
- focus: (index: number) => void;
13
- focusFirst: () => void;
14
- focusLast: () => void;
15
- clearFocus: () => void;
16
- }
17
- export declare function useKeyboardNavList<T>(options: UseKeyboardNavListOptions<T>): UseKeyboardNavListReturn<T>;
@@ -1,20 +0,0 @@
1
- import { onScopeDepthChange, getActiveDepth, ScopeDepth } from '@tpc-development/mare-ui-components-core/keyboard-commands';
2
- export { onScopeDepthChange, getActiveDepth, type ScopeDepth };
3
- export interface UseKeyboardScopeOptions {
4
- /** Higher number = closer to the user (like z-index). Default: 1. Base page = 0. */
5
- depth?: ScopeDepth;
6
- /** When false, this scope is removed from the global stack. Default: true. */
7
- visible?: boolean;
8
- }
9
- /**
10
- * Registers/unregisters this component's keyboard scope with the global
11
- * stack shared across both the Vue and React adapters. Use this inside
12
- * overlay components so keyboard commands only fire when the overlay is the
13
- * topmost one.
14
- *
15
- * @example
16
- * const { scopeId } = useKeyboardScope({ visible: isOpen, depth: 1 });
17
- */
18
- export declare function useKeyboardScope(options?: UseKeyboardScopeOptions): {
19
- scopeId: string;
20
- };
@@ -1,2 +0,0 @@
1
- import { MenuProperties } from './Menu.types';
2
- export declare function Menu({ trigger, items, onSelect, renderItem, portalContainer, }: MenuProperties): import("react").JSX.Element;
@@ -1,19 +0,0 @@
1
- import { ReactNode, RefObject } from 'react';
2
- import { MenuEntry, MenuItemData } from '@tpc-development/mare-ui-components-core/menu';
3
- export type { MenuItemData, MenuSeparatorEntry, MenuGroupEntry, MenuEntry, } from '@tpc-development/mare-ui-components-core/menu';
4
- export interface MenuProperties {
5
- /** The element that opens the menu on click — typically a `<Button>`. */
6
- trigger: ReactNode;
7
- items: MenuEntry[];
8
- /** Called with the selected item's `value` when an item (or an item
9
- * inside a group) is chosen. */
10
- onSelect?: (value: string) => void;
11
- /** Custom render for an item's content (icon + label). Defaults to
12
- * `item.icon` (if any) + `item.label`. */
13
- renderItem?: (item: MenuItemData) => ReactNode;
14
- /** Where the menu portals to. Ark defaults to `document.body` — override
15
- * this if your app scopes `data-theme` (or any other CSS custom property)
16
- * to a sub-tree rather than the document root, otherwise the portaled
17
- * menu renders outside that scope and loses the tokens. */
18
- portalContainer?: RefObject<HTMLElement | null>;
19
- }
@@ -1,2 +0,0 @@
1
- export { Menu } from './Menu';
2
- export type { MenuProperties, MenuItemData, MenuSeparatorEntry, MenuGroupEntry, MenuEntry, } from './Menu.types';
@@ -1,2 +0,0 @@
1
- import { MessageProperties } from './Message.types';
2
- export declare function Message({ severity, variant, title, icon, disabled, closable, onClose, children, }: MessageProperties): import("react").JSX.Element;
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { MessageSeverity, MessageVariant } from '@tpc-development/mare-ui-components-core/message';
3
- export type { MessageSeverity, MessageVariant, } from '@tpc-development/mare-ui-components-core/message';
4
- export interface MessageProperties {
5
- /** @default 'neutral' */
6
- severity?: MessageSeverity;
7
- /** @default 'simple' */
8
- variant?: MessageVariant;
9
- title?: string;
10
- icon?: ReactNode;
11
- /** @default false */
12
- disabled?: boolean;
13
- /** @default false */
14
- closable?: boolean;
15
- onClose?: () => void;
16
- children?: ReactNode;
17
- }
@@ -1,2 +0,0 @@
1
- export { Message } from './Message';
2
- export type { MessageProperties, MessageSeverity, MessageVariant, } from './Message.types';
@@ -1,12 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { MultiSelectProperties, MultiSelectOptionItem } from './MultiSelect.types';
3
- interface MultiSelectReactProperties extends MultiSelectProperties {
4
- value?: string[];
5
- onValueChange?: (value: string[]) => void;
6
- indicator?: ReactNode;
7
- clearIcon?: ReactNode;
8
- filterIcon?: ReactNode;
9
- renderOption?: (option: MultiSelectOptionItem) => ReactNode;
10
- }
11
- export declare function MultiSelect({ value, onValueChange, options, placeholder, searchPlaceholder, size, itemSize, disabled, invalid, loading, clearable, filterable, hasCheckbox, showToggleAll, headerLabel, display, maxSelectedLabels, label, emptyText, indicator, clearIcon, filterIcon, renderOption, }: MultiSelectReactProperties): import("react").JSX.Element;
12
- export {};
@@ -1,2 +0,0 @@
1
- export { MultiSelect } from './MultiSelect';
2
- export type { MultiSelectProperties, MultiSelectSize, MultiSelectItemSize, MultiSelectDisplay, MultiSelectOptionItem, } from './MultiSelect.types';
@@ -1,2 +0,0 @@
1
- import { OverlayBadgeProperties } from './OverlayBadge.types';
2
- export declare function OverlayBadge({ children, severity, icon, value, offsetX, offsetY, }: OverlayBadgeProperties): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { OverlayBadge } from './OverlayBadge';
2
- export type { OverlayBadgeProperties, BadgeSeverity } from './OverlayBadge.types';
@@ -1,2 +0,0 @@
1
- import { PaginatorProperties } from './Paginator.types';
2
- export declare function Paginator({ count, page, defaultPage, onPageChange, pageSize, defaultPageSize, onPageSizeChange, pageLinkSize, showFirstLastLinks, rowsPerPageOptions, rowsPerPageOptionsLabel, }: PaginatorProperties): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { Paginator } from './Paginator';
2
- export type { PaginatorProperties } from './Paginator.types';
@@ -1,2 +0,0 @@
1
- import { PanelMenuProperties } from './PanelMenu.types';
2
- export declare function PanelMenu({ items, expandedValue, defaultExpandedValue, onExpandedChange, renderItem, }: PanelMenuProperties): import("react").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
3
- export type { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
4
- export interface PanelMenuProperties {
5
- items: PanelMenuItemData[];
6
- /** Controlled expanded branch values. Omit to let Ark manage it (uncontrolled). */
7
- expandedValue?: string[];
8
- defaultExpandedValue?: string[];
9
- onExpandedChange?: (value: string[]) => void;
10
- /** Override the default icon + label row entirely. */
11
- renderItem?: (item: PanelMenuItemData) => ReactNode;
12
- }
@@ -1,2 +0,0 @@
1
- export { PanelMenu } from './PanelMenu';
2
- export type { PanelMenuProperties, PanelMenuItemData } from './PanelMenu.types';
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PasswordProperties } from './Password.types';
3
- export declare function Password({ value, onValueChange, size, rounded, invalid, disabled, toggleMask, showIcon, hideIcon, feedback, header, footer, promptLabel, weakLabel, mediumLabel, strongLabel, mediumRegex, strongRegex, ...native }: PasswordProperties): import("react").JSX.Element;
4
- /** A single requirement row for `footer` (e.g. "At least one uppercase"). */
5
- export declare function PasswordFooterItem({ children }: {
6
- children?: ReactNode;
7
- }): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { Password, PasswordFooterItem } from './Password';
2
- export type { PasswordProperties } from './Password.types';
@@ -1,2 +0,0 @@
1
- import { ProgressBarProperties } from './ProgressBar.types';
2
- export declare function ProgressBar({ value, mode, min, max, label, showValue, id, }: ProgressBarProperties): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { ProgressBar } from './ProgressBar';
2
- export type { ProgressBarProperties, ProgressBarMode, } from './ProgressBar.types';
@@ -1,2 +0,0 @@
1
- export { ProgressSpinner } from './ProgressSpinner';
2
- export type { ProgressSpinnerProperties } from './ProgressSpinner';
@@ -1,2 +0,0 @@
1
- import { RadioGroupProperties } from './RadioGroup.types';
2
- export declare function RadioGroup({ items, value, defaultValue, onValueChange, size, orientation, disabled, invalid, readOnly, required, name, form, id, }: RadioGroupProperties): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { RadioGroup } from './RadioGroup';
2
- export type { RadioGroupProperties, RadioGroupSize, RadioGroupOrientation, RadioOptionItem, } from './RadioGroup.types';
@@ -1,2 +0,0 @@
1
- import { SearchFieldProperties } from './SearchField.types';
2
- export declare function SearchField({ value, onValueChange, loading, clearable, disabled, leftIcon, clearIcon, rightIcon, onClear, ...native }: SearchFieldProperties): import("react").JSX.Element;
@@ -1,26 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { InputTextProperties } from '../InputText';
3
- /** Native passthrough same as InputText, minus what SearchField owns/reshapes. */
4
- type ForwardedInputProperties = Omit<InputTextProperties, 'value' | 'onValueChange' | 'rounded'>;
5
- export interface SearchFieldProperties extends ForwardedInputProperties {
6
- /** Controlled value. */
7
- value?: string;
8
- /** Controlled change handler — receives the next string value. */
9
- onValueChange?: (value: string) => void;
10
- /** Shows a spinner instead of the clear icon. @default false */
11
- loading?: boolean;
12
- /** Shows a clear (X) button when there's a value. @default false */
13
- clearable?: boolean;
14
- /** Overrides the left icon. @default a search icon */
15
- leftIcon?: ReactNode;
16
- /** Overrides the clear button's icon. @default a close (X) icon */
17
- clearIcon?: ReactNode;
18
- /** Replaces the clear/spinner logic entirely with your own right-side
19
- * content (matches the legacy: a custom right icon takes over from the
20
- * built-in clear button). @default undefined */
21
- rightIcon?: ReactNode;
22
- /** Fires when the built-in clear button is clicked (clears `value` too).
23
- * Does NOT fire for a custom `rightIcon` — wire that yourself. */
24
- onClear?: () => void;
25
- }
26
- export {};
@@ -1,2 +0,0 @@
1
- export { SearchField } from './SearchField';
2
- export type { SearchFieldProperties } from './SearchField.types';
@@ -1,2 +0,0 @@
1
- import { SegmentedControlProperties } from './SegmentedControl.types';
2
- export declare function SegmentedControl({ items, value, defaultValue, onValueChange, size, optionWidth, disabled, renderOption, name, form, id, }: SegmentedControlProperties): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { SegmentedControl } from './SegmentedControl';
2
- export type { SegmentedControlProperties, SegmentedControlSize, SegmentedControlOptionWidth, SegmentedControlOptionItem, } from './SegmentedControl.types';
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { SelectFieldProperties, SelectOptionItem } from './SelectField.types';
3
- interface SelectFieldReactProperties extends SelectFieldProperties {
4
- value?: string | null;
5
- onValueChange?: (value: string | null) => void;
6
- leadingIcon?: ReactNode;
7
- indicator?: ReactNode;
8
- clearIcon?: ReactNode;
9
- checkIcon?: ReactNode;
10
- renderValue?: (item: SelectOptionItem) => ReactNode;
11
- renderOption?: (option: SelectOptionItem) => ReactNode;
12
- }
13
- export declare function SelectField({ value, onValueChange, options, placeholder, size, disabled, invalid, clearable, label, leadingIcon, indicator, clearIcon, checkIcon, renderValue, renderOption, }: SelectFieldReactProperties): import("react").JSX.Element;
14
- export {};
@@ -1,11 +0,0 @@
1
- import { SelectFieldSize, SelectOptionItem } from '@tpc-development/mare-ui-components-core/select-field';
2
- export type { SelectFieldSize, SelectOptionItem, } from '@tpc-development/mare-ui-components-core/select-field';
3
- export interface SelectFieldProperties {
4
- options: SelectOptionItem[];
5
- placeholder?: string;
6
- size?: SelectFieldSize;
7
- disabled?: boolean;
8
- invalid?: boolean;
9
- clearable?: boolean;
10
- label?: string;
11
- }
@@ -1,2 +0,0 @@
1
- export { SelectField } from './SelectField';
2
- export type { SelectFieldProperties, SelectFieldSize, SelectOptionItem, } from './SelectField.types';
@@ -1,139 +0,0 @@
1
- import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { useState as T, useMemo as b } from "react";
3
- import { createListCollection as V, ComboboxRoot as _, ComboboxLabel as $, ComboboxControl as j, ComboboxTrigger as q, ComboboxClearTrigger as D, ComboboxPositioner as E, ComboboxContent as M, ComboboxInput as O, ComboboxEmpty as P, ComboboxItem as Q, ComboboxItemText as R, ComboboxItemIndicator as X } from "@ark-ui/react/combobox";
4
- import { o as A } from "./index-ByQ37VXf.js";
5
- import { I as B } from "./IconX-CpPADKjZ.js";
6
- import { I as F } from "./IconChevronDown-ev2ML7Ex.js";
7
- import { I as G } from "./IconSearch-CgM6jEUh.js";
8
- import { I as H } from "./IconCheck-DzZA6b2U.js";
9
- const J = ["small", "medium"], K = {
10
- small: "mare:h-10",
11
- medium: "mare:h-12"
12
- }, f = {
13
- small: "mare:tpc-typography-body-s",
14
- medium: "mare:tpc-typography-body-m"
15
- }, U = (r) => `
16
- mare:relative mare:flex mare:items-center mare:gap-2
17
- ${K[r]}
18
- mare:px-3 mare:rounded-input mare:border mare:border-strong mare:bg-default
19
- mare:focus-within:outline-solid mare:focus-within:outline-2 mare:focus-within:outline-accent mare:focus-within:-outline-offset-2
20
- mare:ark-disabled:text-disabled mare:ark-disabled:border-disabled-default mare:ark-disabled:cursor-not-allowed
21
- mare:data-[invalid]:outline-solid mare:data-[invalid]:outline-2 mare:data-[invalid]:outline-danger mare:data-[invalid]:-outline-offset-2
22
- `, p = "mare:flex mare:items-center mare:shrink-0 mare:text-weak mare:[&>svg]:size-5", W = (r) => `
23
- mare:flex-auto mare:flex mare:items-center mare:cursor-pointer
24
- mare:bg-transparent mare:text-left mare:truncate mare:text-default ${f[r]}
25
- `, Y = `
26
- mare:flex mare:items-center mare:gap-2 mare:mb-1 mare:px-3 mare:h-10
27
- mare:rounded-input mare:border mare:border-strong mare:bg-default
28
- mare:focus-within:outline-solid mare:focus-within:outline-2 mare:focus-within:outline-accent mare:focus-within:-outline-offset-2
29
- `, Z = (r) => `
30
- mare:flex-auto mare:bg-transparent mare:outline-none mare:text-default
31
- mare:placeholder:text-weak ${f[r]}
32
- `, ee = "mare:flex mare:items-center mare:shrink-0 mare:text-base mare:cursor-pointer mare:text-default mare:hover:text-weak", ae = "mare:flex mare:items-center mare:shrink-0 mare:text-lg mare:transition-transform mare:ark-open:rotate-180 mare:text-default", re = `
33
- mare:flex mare:flex-col mare:gap-0.5 mare:p-1
34
- mare:rounded-input mare:border mare:border-default mare:bg-raised
35
- mare:shadow-[0_2px_6px_0_rgba(0,0,0,0.16)]
36
- mare:max-h-72 mare:overflow-y-auto
37
- mare:min-w-[var(--reference-width)]
38
- mare:z-50
39
- mare:[&[hidden]]:hidden
40
- `, me = `
41
- mare:group/option mare:flex mare:items-center mare:justify-between mare:gap-2
42
- mare:w-full mare:min-h-8 mare:py-2 mare:px-3 mare:cursor-pointer mare:rounded-menu-item
43
- mare:tpc-typography-body-s mare:text-default
44
- mare:ark-highlighted:bg-hover
45
- mare:ark-selected:bg-accent-weak mare:ark-selected:text-accent
46
- mare:ark-disabled:text-disabled mare:ark-disabled:cursor-not-allowed
47
- `, te = "mare:flex mare:items-center mare:text-accent", oe = "mare:py-2 mare:px-3 mare:tpc-typography-body-s mare:text-weak", le = "mare:tpc-typography-label-s mare:text-weak mare:mb-1.5 mare:block";
48
- function fe({
49
- value: r = null,
50
- onValueChange: h,
51
- options: t,
52
- placeholder: x = "Select…",
53
- searchPlaceholder: g = "",
54
- size: w = "small",
55
- disabled: C = !1,
56
- invalid: k = !1,
57
- clearable: y = !1,
58
- emptyText: v = "Sin resultados",
59
- label: i,
60
- leadingIcon: s,
61
- triggerIcon: I,
62
- checkIcon: N,
63
- clearIcon: z,
64
- renderOption: c
65
- }) {
66
- const o = A(w, J, "small"), [l, d] = T(""), n = b(() => {
67
- const e = l.trim().toLowerCase();
68
- return e ? t.filter((L) => L.label.toLowerCase().includes(e)) : t;
69
- }, [l, t]), S = b(
70
- () => V({
71
- items: n,
72
- itemToValue: (e) => e.value,
73
- itemToString: (e) => e.label,
74
- isItemDisabled: (e) => !!e.disabled
75
- }),
76
- [n]
77
- ), u = t.find((e) => e.value === r)?.label ?? null;
78
- return /* @__PURE__ */ m(
79
- _,
80
- {
81
- collection: S,
82
- value: r == null ? [] : [r],
83
- disabled: C,
84
- invalid: k,
85
- openOnClick: !0,
86
- inputValue: l,
87
- onValueChange: (e) => h?.(e.value[0] ?? null),
88
- onInputValueChange: (e) => {
89
- e.reason === "input-change" && d(e.inputValue);
90
- },
91
- onOpenChange: (e) => {
92
- e.open || d("");
93
- },
94
- children: [
95
- i && /* @__PURE__ */ a($, { className: le, children: i }),
96
- /* @__PURE__ */ m(j, { className: U(o), children: [
97
- s && /* @__PURE__ */ a("span", { className: p, children: s }),
98
- /* @__PURE__ */ a(q, { className: W(o), children: u ? /* @__PURE__ */ a("span", { children: u }) : /* @__PURE__ */ a("span", { className: "mare:text-weak", children: x }) }),
99
- y && /* @__PURE__ */ a(D, { className: ee, children: z ?? /* @__PURE__ */ a(B, { size: "1em" }) }),
100
- /* @__PURE__ */ a("span", { className: ae, children: I ?? /* @__PURE__ */ a(F, { size: "1em" }) })
101
- ] }),
102
- /* @__PURE__ */ a(E, { children: /* @__PURE__ */ m(M, { className: re, children: [
103
- /* @__PURE__ */ m("div", { className: Y, children: [
104
- /* @__PURE__ */ a(
105
- O,
106
- {
107
- placeholder: g,
108
- className: Z(o)
109
- }
110
- ),
111
- /* @__PURE__ */ a("span", { className: p, children: /* @__PURE__ */ a(G, {}) })
112
- ] }),
113
- /* @__PURE__ */ a(P, { className: oe, children: v }),
114
- n.map((e) => /* @__PURE__ */ m(
115
- Q,
116
- {
117
- item: e,
118
- className: me,
119
- children: [
120
- /* @__PURE__ */ a(R, { children: c ? c(e) : e.label }),
121
- /* @__PURE__ */ a(
122
- X,
123
- {
124
- className: te,
125
- children: N ?? /* @__PURE__ */ a(H, { size: "1em" })
126
- }
127
- )
128
- ]
129
- },
130
- e.value
131
- ))
132
- ] }) })
133
- ]
134
- }
135
- );
136
- }
137
- export {
138
- fe as C
139
- };
@@ -1,28 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { a as i, B as n } from "./Button-C2ULmKj3.js";
3
- import { o as a } from "./index-ByQ37VXf.js";
4
- const s = i.filter(
5
- (r) => r !== "ghost" && r !== "danger"
6
- );
7
- function p({
8
- severity: r = "primary",
9
- ...t
10
- }) {
11
- const o = a(
12
- r,
13
- s,
14
- "primary"
15
- );
16
- return /* @__PURE__ */ e(
17
- n,
18
- {
19
- ...t,
20
- severity: o,
21
- raised: !0,
22
- rounded: !0
23
- }
24
- );
25
- }
26
- export {
27
- p as F
28
- };
@@ -1,5 +0,0 @@
1
- import { c } from "./createReactComponent-Cb6Pzf10.js";
2
- const e = [["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }]], t = c("outline", "check", "Check", e);
3
- export {
4
- t as I
5
- };
@@ -1,5 +0,0 @@
1
- import { c as o } from "./createReactComponent-Cb6Pzf10.js";
2
- const n = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], t = o("outline", "chevron-down", "ChevronDown", n);
3
- export {
4
- t as I
5
- };
@@ -1,7 +0,0 @@
1
- import { c as o } from "./createReactComponent-Cb6Pzf10.js";
2
- const e = [["path", { d: "M15 6l-6 6l6 6", key: "svg-0" }]], c = o("outline", "chevron-left", "ChevronLeft", e);
3
- const t = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], h = o("outline", "chevron-right", "ChevronRight", t);
4
- export {
5
- c as I,
6
- h as a
7
- };
@@ -1,81 +0,0 @@
1
- import { jsx as l, jsxs as L } from "react/jsx-runtime";
2
- import { useFieldContext as b, FieldInput as v, FieldRoot as I } from "@ark-ui/react/field";
3
- import { m as N } from "./InputText.types-KhlkzHMw-BtRY371_.js";
4
- import { u as f, d as g, m as x, f as y, F as C } from "./field-layout-o6bDLvVU.js";
5
- import { o as d } from "./index-ByQ37VXf.js";
6
- function _({
7
- value: o = "",
8
- onValueChange: r,
9
- size: s = "medium",
10
- rounded: e = !1,
11
- invalid: c = !1,
12
- disabled: m = !1,
13
- placeholder: a,
14
- ...i
15
- }) {
16
- const t = f(), n = !b(), h = d(s, N, "medium"), p = g({
17
- size: h,
18
- rounded: e,
19
- hasFloatLabel: t?.hasFloatLabel ?? !1,
20
- iconSide: t?.iconSide ?? null
21
- }), F = t?.hasFloatLabel ? " " : a, u = /* @__PURE__ */ l(
22
- v,
23
- {
24
- ...i,
25
- className: p,
26
- placeholder: F,
27
- value: o,
28
- onChange: (S) => r?.(S.target.value)
29
- }
30
- );
31
- return n ? /* @__PURE__ */ l(
32
- I,
33
- {
34
- invalid: c,
35
- disabled: m,
36
- className: "mare:w-full",
37
- children: u
38
- }
39
- ) : u;
40
- }
41
- const P = ["left", "right"];
42
- function D({
43
- icon: o,
44
- position: r = "left",
45
- disabled: s = !1,
46
- onIconClick: e,
47
- iconLabel: c,
48
- children: m
49
- }) {
50
- const a = d(r, P, "left"), i = f(), t = {
51
- hasFloatLabel: i?.hasFloatLabel ?? !1,
52
- iconSide: x(i?.iconSide ?? null, a)
53
- }, n = y(a, {
54
- disabled: s,
55
- interactive: !!e
56
- });
57
- return /* @__PURE__ */ l(C.Provider, { value: t, children: /* @__PURE__ */ L(
58
- "div",
59
- {
60
- className: `mare:relative mare:w-full mare:group ${a === "left" ? "mare-icon-left" : "mare-icon-right"}`,
61
- children: [
62
- m,
63
- e ? /* @__PURE__ */ l(
64
- "button",
65
- {
66
- type: "button",
67
- disabled: s,
68
- onClick: e,
69
- "aria-label": c,
70
- className: n,
71
- children: o
72
- }
73
- ) : /* @__PURE__ */ l("span", { className: n, children: o })
74
- ]
75
- }
76
- ) });
77
- }
78
- export {
79
- D as I,
80
- _ as a
81
- };