@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,39 +1,58 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
- import { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
3
- type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'type' | 'className' | 'style'>;
4
- export interface PasswordProperties extends ForwardedNativeProperties {
5
- /** Controlled value. */
6
- value?: string;
7
- /** Controlled change handler receives the next string value. */
8
- onValueChange?: (value: string) => void;
9
- size?: InputTextSize;
10
- rounded?: boolean;
11
- invalid?: boolean;
12
- disabled?: boolean;
13
- /** Shows a button that toggles the value between hidden/visible. @default true */
14
- toggleMask?: boolean;
15
- /** Icon shown when the value is hidden click reveals it. @default an eye icon */
16
- showIcon?: ReactNode;
17
- /** Icon shown when the value is visible — click hides it. @default an eye-off icon */
18
- hideIcon?: ReactNode;
19
- /** Shows the strength-meter panel while the field has focus. @default true */
20
- feedback?: boolean;
21
- /** Custom content at the top of the feedback panel. */
22
- header?: ReactNode;
23
- /** Custom content at the bottom of the feedback panel, below a divider —
24
- * e.g. a list of `PasswordFooterItem`s describing the requirements. */
25
- footer?: ReactNode;
26
- /** Label shown before there's a value. @default 'Please enter a password' */
27
- promptLabel?: string;
28
- /** @default 'Weak' */
29
- weakLabel?: string;
30
- /** @default 'Medium' */
31
- mediumLabel?: string;
32
- /** @default 'Strong' */
33
- strongLabel?: string;
34
- /** Regex (as a string) a value must match to count as at least 'medium'. */
35
- mediumRegex?: string;
36
- /** Regex (as a string) a value must match to count as 'strong'. */
37
- strongRegex?: string;
38
- }
39
- export {};
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { InputHTMLAttributes } from 'react';
3
+ import { JSX as JSX_2 } from 'react';
4
+ import { ReactNode } from 'react';
5
+ import { RefAttributes } from 'react';
6
+
7
+ declare type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue' | 'size' | 'type' | 'className' | 'style'>;
8
+
9
+ declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
10
+
11
+ declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
12
+
13
+ export declare const Password: ForwardRefExoticComponent<PasswordProperties & RefAttributes<HTMLInputElement>>;
14
+
15
+ /** A single requirement row for `footer` (e.g. "At least one uppercase"). */
16
+ export declare function PasswordFooterItem({ children }: {
17
+ children?: ReactNode;
18
+ }): JSX_2.Element;
19
+
20
+ export declare interface PasswordProperties extends ForwardedNativeProperties {
21
+ /** Valor controlado. Omítelo para dejar el campo uncontrolled. */
22
+ value?: string;
23
+ /** Valor inicial cuando el campo es uncontrolled (sin `value`). */
24
+ defaultValue?: string;
25
+ /** Controlled change handler — receives the next string value. */
26
+ onValueChange?: (value: string) => void;
27
+ size?: InputTextSize;
28
+ rounded?: boolean;
29
+ invalid?: boolean;
30
+ disabled?: boolean;
31
+ /** Shows a button that toggles the value between hidden/visible. @default true */
32
+ toggleMask?: boolean;
33
+ /** Icon shown when the value is hidden — click reveals it. @default an eye icon */
34
+ showIcon?: ReactNode;
35
+ /** Icon shown when the value is visible — click hides it. @default an eye-off icon */
36
+ hideIcon?: ReactNode;
37
+ /** Shows the strength-meter panel while the field has focus. @default true */
38
+ feedback?: boolean;
39
+ /** Custom content at the top of the feedback panel. */
40
+ header?: ReactNode;
41
+ /** Custom content at the bottom of the feedback panel, below a divider —
42
+ * e.g. a list of `PasswordFooterItem`s describing the requirements. */
43
+ footer?: ReactNode;
44
+ /** Label shown before there's a value. @default 'Please enter a password' */
45
+ promptLabel?: string;
46
+ /** @default 'Weak' */
47
+ weakLabel?: string;
48
+ /** @default 'Medium' */
49
+ mediumLabel?: string;
50
+ /** @default 'Strong' */
51
+ strongLabel?: string;
52
+ /** Regex (as a string) a value must match to count as at least 'medium'. */
53
+ mediumRegex?: string;
54
+ /** Regex (as a string) a value must match to count as 'strong'. */
55
+ strongRegex?: string;
56
+ }
57
+
58
+ export { }
@@ -1,38 +1,45 @@
1
- export type ProgressBarMode = 'determinate' | 'indeterminate';
2
- export interface ProgressBarProperties {
3
- /**
4
- * The current value. Ignored when `mode` is `'indeterminate'`.
5
- * @default 0
6
- */
7
- value?: number;
8
- /**
9
- * `'determinate'` shows a filled bar sized to `value`. `'indeterminate'`
10
- * shows the looping two-bar animation (no known value/ETA).
11
- * @default 'determinate'
12
- */
13
- mode?: ProgressBarMode;
14
- /**
15
- * The minimum allowed value.
16
- * @default 0
17
- */
18
- min?: number;
19
- /**
20
- * The maximum allowed value.
21
- * @default 100
22
- */
23
- max?: number;
24
- /**
25
- * Label rendered above the bar.
26
- */
27
- label?: string;
28
- /**
29
- * Shows the formatted value (e.g. "40%") next to the label.
30
- * Ignored when `mode` is `'indeterminate'` (there's no value to show).
31
- * @default false
32
- */
33
- showValue?: boolean;
34
- /**
35
- * Unique identifier for the progress bar.
36
- */
37
- id?: string;
38
- }
1
+ import { JSX as JSX_2 } from 'react';
2
+
3
+ export declare function ProgressBar({ value, mode, min, max, label, showValue, id, }: ProgressBarProperties): JSX_2.Element;
4
+
5
+ export declare type ProgressBarMode = 'determinate' | 'indeterminate';
6
+
7
+ export declare interface ProgressBarProperties {
8
+ /**
9
+ * The current value. Ignored when `mode` is `'indeterminate'`.
10
+ * @default 0
11
+ */
12
+ value?: number;
13
+ /**
14
+ * `'determinate'` shows a filled bar sized to `value`. `'indeterminate'`
15
+ * shows the looping two-bar animation (no known value/ETA).
16
+ * @default 'determinate'
17
+ */
18
+ mode?: ProgressBarMode;
19
+ /**
20
+ * The minimum allowed value.
21
+ * @default 0
22
+ */
23
+ min?: number;
24
+ /**
25
+ * The maximum allowed value.
26
+ * @default 100
27
+ */
28
+ max?: number;
29
+ /**
30
+ * Label rendered above the bar.
31
+ */
32
+ label?: string;
33
+ /**
34
+ * Shows the formatted value (e.g. "40%") next to the label.
35
+ * Ignored when `mode` is `'indeterminate'` (there's no value to show).
36
+ * @default false
37
+ */
38
+ showValue?: boolean;
39
+ /**
40
+ * Unique identifier for the progress bar.
41
+ */
42
+ id?: string;
43
+ }
44
+
45
+ export { }
@@ -1,10 +1,15 @@
1
- /**
2
- * Mare ProgressSpinner — React. Ark has no spinner (pure SVG + CSS), so it's
3
- * Mare-owned. Identical markup to the Vue version. Dash keyframe in styles.css.
4
- */
5
- export interface ProgressSpinnerProperties {
6
- /** Extra classes for the <circle> (e.g. stroke color per Button severity). */
7
- circleClass?: string;
8
- className?: string;
9
- }
10
- export declare function ProgressSpinner({ circleClass, className, }: ProgressSpinnerProperties): import("react").JSX.Element;
1
+ import { JSX as JSX_2 } from 'react';
2
+
3
+ export declare function ProgressSpinner({ circleClass, className, }: ProgressSpinnerProperties): JSX_2.Element;
4
+
5
+ /**
6
+ * Mare ProgressSpinner React. Ark has no spinner (pure SVG + CSS), so it's
7
+ * Mare-owned. Identical markup to the Vue version. Dash keyframe in styles.css.
8
+ */
9
+ export declare interface ProgressSpinnerProperties {
10
+ /** Extra classes for the <circle> (e.g. stroke color per Button severity). */
11
+ circleClass?: string;
12
+ className?: string;
13
+ }
14
+
15
+ export { }
@@ -1,4 +1,4 @@
1
- import { R as a } from "../shared/RadioGroup-B8CXU8-l.js";
1
+ import { R as a } from "../shared/RadioGroup-CHgzVvZO.js";
2
2
  export {
3
3
  a as RadioGroup
4
4
  };
@@ -1,62 +1,81 @@
1
- import { RadioGroupSize, RadioGroupOrientation, RadioOptionItem } from '@tpc-development/mare-ui-components-core/radio-group';
2
- export type { RadioGroupSize, RadioGroupOrientation, RadioOptionItem, } from '@tpc-development/mare-ui-components-core/radio-group';
3
- export interface RadioGroupProperties {
4
- /**
5
- * The available options.
6
- */
7
- items: RadioOptionItem[];
8
- /**
9
- * The controlled selected value.
10
- */
11
- value?: string | null;
12
- /**
13
- * Initial selected value (uncontrolled mode).
14
- */
15
- defaultValue?: string;
16
- /**
17
- * Handler called when the selected value changes.
18
- */
19
- onValueChange?: (value: string) => void;
20
- /**
21
- * Size variant.
22
- * @default 'small'
23
- */
24
- size?: RadioGroupSize;
25
- /**
26
- * Layout direction of the items.
27
- * @default 'vertical'
28
- */
29
- orientation?: RadioGroupOrientation;
30
- /**
31
- * Disables the entire group.
32
- * @default false
33
- */
34
- disabled?: boolean;
35
- /**
36
- * Marks the group as invalid (red styling).
37
- * @default false
38
- */
39
- invalid?: boolean;
40
- /**
41
- * Makes the group read-only.
42
- * @default false
43
- */
44
- readOnly?: boolean;
45
- /**
46
- * Marks the group as required for form validation.
47
- * @default false
48
- */
49
- required?: boolean;
50
- /**
51
- * The name attribute for form submission.
52
- */
53
- name?: string;
54
- /**
55
- * ID of an associated form element.
56
- */
57
- form?: string;
58
- /**
59
- * Unique identifier for the group.
60
- */
61
- id?: string;
62
- }
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { RefAttributes } from 'react';
3
+
4
+ declare const RADIO_GROUP_ORIENTATIONS: readonly ["horizontal", "vertical"];
5
+
6
+ declare const RADIO_GROUP_SIZES: readonly ["small", "medium", "large"];
7
+
8
+ export declare const RadioGroup: ForwardRefExoticComponent<RadioGroupProperties & RefAttributes<HTMLDivElement>>;
9
+
10
+ export declare type RadioGroupOrientation = (typeof RADIO_GROUP_ORIENTATIONS)[number];
11
+
12
+ export declare interface RadioGroupProperties {
13
+ /**
14
+ * The available options.
15
+ */
16
+ items: RadioOptionItem[];
17
+ /**
18
+ * The controlled selected value.
19
+ */
20
+ value?: string | null;
21
+ /**
22
+ * Initial selected value (uncontrolled mode).
23
+ */
24
+ defaultValue?: string;
25
+ /**
26
+ * Handler called when the selected value changes.
27
+ */
28
+ onValueChange?: (value: string) => void;
29
+ /**
30
+ * Size variant.
31
+ * @default 'small'
32
+ */
33
+ size?: RadioGroupSize;
34
+ /**
35
+ * Layout direction of the items.
36
+ * @default 'vertical'
37
+ */
38
+ orientation?: RadioGroupOrientation;
39
+ /**
40
+ * Disables the entire group.
41
+ * @default false
42
+ */
43
+ disabled?: boolean;
44
+ /**
45
+ * Marks the group as invalid (red styling).
46
+ * @default false
47
+ */
48
+ invalid?: boolean;
49
+ /**
50
+ * Makes the group read-only.
51
+ * @default false
52
+ */
53
+ readOnly?: boolean;
54
+ /**
55
+ * Marks the group as required for form validation.
56
+ * @default false
57
+ */
58
+ required?: boolean;
59
+ /**
60
+ * The name attribute for form submission.
61
+ */
62
+ name?: string;
63
+ /**
64
+ * ID of an associated form element.
65
+ */
66
+ form?: string;
67
+ /**
68
+ * Unique identifier for the group.
69
+ */
70
+ id?: string;
71
+ }
72
+
73
+ export declare type RadioGroupSize = (typeof RADIO_GROUP_SIZES)[number];
74
+
75
+ export declare interface RadioOptionItem {
76
+ value: string;
77
+ label: string;
78
+ disabled?: boolean;
79
+ }
80
+
81
+ export { }
@@ -1,4 +1,4 @@
1
- import { S as a } from "../shared/SearchField-DIsFhJ22.js";
1
+ import { S as a } from "../shared/SearchField-Cuw3MVaD.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
@@ -0,0 +1,55 @@
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { InputHTMLAttributes } from 'react';
3
+ import { ReactNode } from 'react';
4
+ import { RefAttributes } from 'react';
5
+
6
+ /** Native passthrough same as InputText, minus what SearchField owns/reshapes. */
7
+ declare type ForwardedInputProperties = Omit<InputTextProperties, 'value' | 'onValueChange' | 'rounded' | 'defaultValue'>;
8
+
9
+ declare type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue' | 'size' | 'className' | 'style'>;
10
+
11
+ declare const INPUT_TEXT_SIZES: readonly ["small", "medium"];
12
+
13
+ declare interface InputTextProperties extends ForwardedNativeProperties {
14
+ /** Valor controlado. Omítelo para dejar el campo uncontrolled (el DOM
15
+ * guarda el valor y `defaultValue` aplica). */
16
+ value?: string;
17
+ /** Valor inicial cuando el campo es uncontrolled (sin `value`). */
18
+ defaultValue?: string;
19
+ /** Controlled change handler — receives the next string value. */
20
+ onValueChange?: (value: string) => void;
21
+ size?: InputTextSize;
22
+ rounded?: boolean;
23
+ invalid?: boolean;
24
+ disabled?: boolean;
25
+ }
26
+
27
+ declare type InputTextSize = (typeof INPUT_TEXT_SIZES)[number];
28
+
29
+ export declare const SearchField: ForwardRefExoticComponent<SearchFieldProperties & RefAttributes<HTMLInputElement>>;
30
+
31
+ export declare interface SearchFieldProperties extends ForwardedInputProperties {
32
+ /** Valor controlado. Omítelo para dejar el campo uncontrolled. */
33
+ value?: string;
34
+ /** Valor inicial cuando el campo es uncontrolled (sin `value`). */
35
+ defaultValue?: string;
36
+ /** Controlled change handler — receives the next string value. */
37
+ onValueChange?: (value: string) => void;
38
+ /** Shows a spinner instead of the clear icon. @default false */
39
+ loading?: boolean;
40
+ /** Shows a clear (X) button when there's a value. @default false */
41
+ clearable?: boolean;
42
+ /** Overrides the left icon. @default a search icon */
43
+ leftIcon?: ReactNode;
44
+ /** Overrides the clear button's icon. @default a close (X) icon */
45
+ clearIcon?: ReactNode;
46
+ /** Replaces the clear/spinner logic entirely with your own right-side
47
+ * content (matches the legacy: a custom right icon takes over from the
48
+ * built-in clear button). @default undefined */
49
+ rightIcon?: ReactNode;
50
+ /** Fires when the built-in clear button is clicked (clears `value` too).
51
+ * Does NOT fire for a custom `rightIcon` — wire that yourself. */
52
+ onClear?: () => void;
53
+ }
54
+
55
+ export { }
@@ -1,4 +1,4 @@
1
- import { S as r } from "../shared/SegmentedControl-BfE3jNM6.js";
1
+ import { S as r } from "../shared/SegmentedControl-D3znmx9l.js";
2
2
  export {
3
3
  r as SegmentedControl
4
4
  };
@@ -1,54 +1,70 @@
1
- import { ReactNode } from 'react';
2
- import { SegmentedControlSize, SegmentedControlOptionWidth, SegmentedControlOptionItem } from '@tpc-development/mare-ui-components-core/segmented-control';
3
- export type { SegmentedControlSize, SegmentedControlOptionWidth, SegmentedControlOptionItem, } from '@tpc-development/mare-ui-components-core/segmented-control';
4
- export interface SegmentedControlProperties {
5
- /**
6
- * The available segments.
7
- */
8
- items: SegmentedControlOptionItem[];
9
- /**
10
- * The controlled selected value.
11
- */
12
- value?: string;
13
- /**
14
- * Initial selected value (uncontrolled mode).
15
- */
16
- defaultValue?: string;
17
- /**
18
- * Handler called when the selected segment changes.
19
- */
20
- onValueChange?: (value: string) => void;
21
- /**
22
- * Size variant.
23
- * @default 'small'
24
- */
25
- size?: SegmentedControlSize;
26
- /**
27
- * With 'equal', every segment takes up the same width (flex-1). Own Mare
28
- * prop, not present in PrimeVue.
29
- * @default 'auto'
30
- */
31
- optionWidth?: SegmentedControlOptionWidth;
32
- /**
33
- * Disables the entire group.
34
- * @default false
35
- */
36
- disabled?: boolean;
37
- /**
38
- * Replaces a segment's default text content — e.g. to add a leading
39
- * icon. Receives the raw item.
40
- */
41
- renderOption?: (item: SegmentedControlOptionItem) => ReactNode;
42
- /**
43
- * The name attribute for form submission.
44
- */
45
- name?: string;
46
- /**
47
- * ID of an associated form element.
48
- */
49
- form?: string;
50
- /**
51
- * Unique identifier for the group.
52
- */
53
- id?: string;
54
- }
1
+ import { JSX as JSX_2 } from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare const SEGMENTED_CONTROL_SIZES: readonly ["small", "medium"];
5
+
6
+ export declare function SegmentedControl({ items, value, defaultValue, onValueChange, size, optionWidth, disabled, renderOption, name, form, id, }: SegmentedControlProperties): JSX_2.Element;
7
+
8
+ export declare interface SegmentedControlOptionItem {
9
+ value: string;
10
+ label: string;
11
+ disabled?: boolean;
12
+ }
13
+
14
+ export declare type SegmentedControlOptionWidth = 'auto' | 'equal';
15
+
16
+ export declare interface SegmentedControlProperties {
17
+ /**
18
+ * The available segments.
19
+ */
20
+ items: SegmentedControlOptionItem[];
21
+ /**
22
+ * The controlled selected value.
23
+ */
24
+ value?: string;
25
+ /**
26
+ * Initial selected value (uncontrolled mode).
27
+ */
28
+ defaultValue?: string;
29
+ /**
30
+ * Handler called when the selected segment changes.
31
+ */
32
+ onValueChange?: (value: string) => void;
33
+ /**
34
+ * Size variant.
35
+ * @default 'small'
36
+ */
37
+ size?: SegmentedControlSize;
38
+ /**
39
+ * With 'equal', every segment takes up the same width (flex-1). Own Mare
40
+ * prop, not present in PrimeVue.
41
+ * @default 'auto'
42
+ */
43
+ optionWidth?: SegmentedControlOptionWidth;
44
+ /**
45
+ * Disables the entire group.
46
+ * @default false
47
+ */
48
+ disabled?: boolean;
49
+ /**
50
+ * Replaces a segment's default text content — e.g. to add a leading
51
+ * icon. Receives the raw item.
52
+ */
53
+ renderOption?: (item: SegmentedControlOptionItem) => ReactNode;
54
+ /**
55
+ * The name attribute for form submission.
56
+ */
57
+ name?: string;
58
+ /**
59
+ * ID of an associated form element.
60
+ */
61
+ form?: string;
62
+ /**
63
+ * Unique identifier for the group.
64
+ */
65
+ id?: string;
66
+ }
67
+
68
+ export declare type SegmentedControlSize = (typeof SEGMENTED_CONTROL_SIZES)[number];
69
+
70
+ export { }
@@ -1,4 +1,4 @@
1
- import { S as o } from "../shared/SelectField-CcnbnPEi.js";
1
+ import { S as o } from "../shared/SelectField-BAuctVIF.js";
2
2
  export {
3
3
  o as SelectField
4
4
  };
@@ -0,0 +1,40 @@
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { RefAttributes } from 'react';
4
+
5
+ declare const SELECT_FIELD_SIZES: readonly ["small", "medium"];
6
+
7
+ export declare const SelectField: ForwardRefExoticComponent<SelectFieldReactProperties & RefAttributes<HTMLDivElement>>;
8
+
9
+ export declare interface SelectFieldProperties {
10
+ options: SelectOptionItem[];
11
+ placeholder?: string;
12
+ size?: SelectFieldSize;
13
+ disabled?: boolean;
14
+ invalid?: boolean;
15
+ clearable?: boolean;
16
+ label?: string;
17
+ }
18
+
19
+ declare interface SelectFieldReactProperties extends SelectFieldProperties {
20
+ value?: string | null;
21
+ onValueChange?: (value: string | null) => void;
22
+ leadingIcon?: ReactNode;
23
+ indicator?: ReactNode;
24
+ clearIcon?: ReactNode;
25
+ checkIcon?: ReactNode;
26
+ renderValue?: (item: SelectOptionItem) => ReactNode;
27
+ renderOption?: (option: SelectOptionItem) => ReactNode;
28
+ }
29
+
30
+ export declare type SelectFieldSize = (typeof SELECT_FIELD_SIZES)[number];
31
+
32
+ export declare interface SelectOptionItem {
33
+ label: string;
34
+ value: string;
35
+ disabled?: boolean;
36
+ /** Consumer-defined extras (icon, description…) resolved in the option slot. */
37
+ [key: string]: unknown;
38
+ }
39
+
40
+ export { }
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import { Accordion as r } from "@ark-ui/react/accordion";
3
- import { I as c } from "./IconChevronDown-ev2ML7Ex.js";
3
+ import { IconChevronDown as c } from "@tabler/icons-react";
4
4
  const d = "mare:w-full", u = (t) => `
5
5
  mare:flex mare:flex-col
6
6
  ${t ? "mare:border-b mare:border-default" : ""}
@@ -20,11 +20,14 @@ const d = "mare:w-full", u = (t) => `
20
20
  mare:ark-closed:[animation:mare-panel-menu-branch-close_200ms_ease-in]
21
21
  `, x = "mare:pb-4";
22
22
  function w({
23
- items: t,
23
+ /* Default a [] aunque el tipo diga que es requerido: `items={data}`
24
+ * con data de un fetch sin resolver llega `undefined` en el primer
25
+ * render y el .map() de abajo tiraba pantalla blanca. */
26
+ items: t = [],
24
27
  value: n,
25
28
  defaultValue: o,
26
- onValueChange: s,
27
- multiple: l = !1,
29
+ onValueChange: l,
30
+ multiple: s = !1,
28
31
  collapsible: i = !0
29
32
  }) {
30
33
  return /* @__PURE__ */ a(
@@ -33,9 +36,9 @@ function w({
33
36
  className: d,
34
37
  value: n,
35
38
  defaultValue: o,
36
- multiple: l,
39
+ multiple: s,
37
40
  collapsible: i,
38
- onValueChange: (e) => s?.(e.value),
41
+ onValueChange: (e) => l?.(e.value),
39
42
  children: t.map((e) => /* @__PURE__ */ m(
40
43
  r.Item,
41
44
  {