chop-logic-components 2.6.0 → 3.1.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 (278) hide show
  1. package/dist/index.cjs.js +18 -18
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.css +1 -0
  4. package/dist/index.d.ts +503 -7
  5. package/dist/index.es.js +2122 -1580
  6. package/dist/index.es.js.map +1 -1
  7. package/package.json +3 -1
  8. package/dist/assets/icons/__tests__/icons.test.d.ts +0 -1
  9. package/dist/assets/icons/index.d.ts +0 -8
  10. package/dist/assets/icons/svg/ArrowDownIcon.d.ts +0 -3
  11. package/dist/assets/icons/svg/ArrowUpIcon.d.ts +0 -3
  12. package/dist/assets/icons/svg/BackIcon.d.ts +0 -3
  13. package/dist/assets/icons/svg/CancelIcon.d.ts +0 -3
  14. package/dist/assets/icons/svg/CheckMarkIcon.d.ts +0 -3
  15. package/dist/assets/icons/svg/CheckboxCheckedIcon.d.ts +0 -3
  16. package/dist/assets/icons/svg/CheckboxUncheckedIcon.d.ts +0 -3
  17. package/dist/assets/icons/svg/ChevronDownIcon.d.ts +0 -3
  18. package/dist/assets/icons/svg/ChevronLeftIcon.d.ts +0 -3
  19. package/dist/assets/icons/svg/ChevronRightIcon.d.ts +0 -3
  20. package/dist/assets/icons/svg/ChevronUpIcon.d.ts +0 -3
  21. package/dist/assets/icons/svg/ClearIcon.d.ts +0 -3
  22. package/dist/assets/icons/svg/CopyIcon.d.ts +0 -3
  23. package/dist/assets/icons/svg/CutIcon.d.ts +0 -3
  24. package/dist/assets/icons/svg/DeleteIcon.d.ts +0 -3
  25. package/dist/assets/icons/svg/DownloadIcon.d.ts +0 -3
  26. package/dist/assets/icons/svg/ErrorIcon.d.ts +0 -3
  27. package/dist/assets/icons/svg/ForwardIcon.d.ts +0 -3
  28. package/dist/assets/icons/svg/GraduateIcon.d.ts +0 -3
  29. package/dist/assets/icons/svg/HelpIcon.d.ts +0 -3
  30. package/dist/assets/icons/svg/HideIcon.d.ts +0 -3
  31. package/dist/assets/icons/svg/HomeIcon.d.ts +0 -3
  32. package/dist/assets/icons/svg/InfoIcon.d.ts +0 -3
  33. package/dist/assets/icons/svg/LoginIcon.d.ts +0 -3
  34. package/dist/assets/icons/svg/PasteIcon.d.ts +0 -3
  35. package/dist/assets/icons/svg/QuestionIcon.d.ts +0 -3
  36. package/dist/assets/icons/svg/RemoveIcon.d.ts +0 -3
  37. package/dist/assets/icons/svg/SaveIcon.d.ts +0 -3
  38. package/dist/assets/icons/svg/ShowIcon.d.ts +0 -3
  39. package/dist/assets/icons/svg/UploadIcon.d.ts +0 -3
  40. package/dist/assets/icons/svg/WarningIcon.d.ts +0 -3
  41. package/dist/atoms/editable-text/EditView.d.ts +0 -14
  42. package/dist/atoms/editable-text/EditableText.d.ts +0 -4
  43. package/dist/atoms/editable-text/ReadView.d.ts +0 -10
  44. package/dist/atoms/editable-text/__docs__/EditableText.stories.d.ts +0 -6
  45. package/dist/atoms/editable-text/__tests__/EditView.test.d.ts +0 -1
  46. package/dist/atoms/editable-text/__tests__/EditableText.test.d.ts +0 -1
  47. package/dist/atoms/editable-text/__tests__/ReadView.test.d.ts +0 -1
  48. package/dist/atoms/editable-text/__tests__/useEditModeState.test.d.ts +0 -1
  49. package/dist/atoms/editable-text/__tests__/useInputFocus.test.d.ts +0 -1
  50. package/dist/atoms/editable-text/__tests__/useValueState.test.d.ts +0 -1
  51. package/dist/atoms/editable-text/useEditModeState.d.ts +0 -6
  52. package/dist/atoms/editable-text/useInputFocus.d.ts +0 -2
  53. package/dist/atoms/editable-text/useValueState.d.ts +0 -6
  54. package/dist/atoms/header/Header.d.ts +0 -4
  55. package/dist/atoms/header/Header.test.d.ts +0 -1
  56. package/dist/atoms/header/__docs__/Header.stories.d.ts +0 -6
  57. package/dist/atoms/icon/Icon.d.ts +0 -4
  58. package/dist/atoms/icon/Icon.test.d.ts +0 -1
  59. package/dist/atoms/icon/__docs__/Icon.stories.d.ts +0 -6
  60. package/dist/atoms/index.d.ts +0 -7
  61. package/dist/atoms/label/Label.d.ts +0 -11
  62. package/dist/atoms/label/Label.test.d.ts +0 -1
  63. package/dist/atoms/label/__docs__/Label.stories.d.ts +0 -9
  64. package/dist/atoms/loader/Loader.d.ts +0 -4
  65. package/dist/atoms/loader/Loader.test.d.ts +0 -1
  66. package/dist/atoms/loader/__docs__/Loader.example.d.ts +0 -3
  67. package/dist/atoms/loader/__docs__/Loader.stories.d.ts +0 -6
  68. package/dist/atoms/portal/Portal.d.ts +0 -5
  69. package/dist/atoms/portal/Portal.test.d.ts +0 -1
  70. package/dist/atoms/portal/__docs__/Portal.example.d.ts +0 -2
  71. package/dist/atoms/portal/__docs__/Portal.stories.d.ts +0 -6
  72. package/dist/atoms/tooltip/Tooltip.controller.d.ts +0 -19
  73. package/dist/atoms/tooltip/Tooltip.d.ts +0 -4
  74. package/dist/atoms/tooltip/Tooltip.test.d.ts +0 -1
  75. package/dist/atoms/tooltip/__docs__/Tooltip.example.d.ts +0 -3
  76. package/dist/atoms/tooltip/__docs__/Tooltip.stories.d.ts +0 -9
  77. package/dist/chop-logic-components.css +0 -1
  78. package/dist/contexts/form/context.d.ts +0 -7
  79. package/dist/contexts/index.d.ts +0 -3
  80. package/dist/contexts/theme/context.d.ts +0 -6
  81. package/dist/contexts/theme/provider.d.ts +0 -6
  82. package/dist/contexts/theme/provider.test.d.ts +0 -1
  83. package/dist/enums/chop-logic-alert-mode.d.ts +0 -7
  84. package/dist/enums/chop-logic-button-view.d.ts +0 -6
  85. package/dist/enums/chop-logic-icon-name.d.ts +0 -33
  86. package/dist/enums/chop-logic-loader-view.d.ts +0 -11
  87. package/dist/enums/chop-logic-orientation-mode.d.ts +0 -4
  88. package/dist/enums/chop-logic-theme-mode.d.ts +0 -4
  89. package/dist/enums/chop-logic-tooltip-container.d.ts +0 -7
  90. package/dist/enums/index.d.ts +0 -7
  91. package/dist/hocs/index.d.ts +0 -1
  92. package/dist/hocs/with-tooltip/with-tooltip.d.ts +0 -7
  93. package/dist/hocs/with-tooltip/with-tooltip.test.d.ts +0 -1
  94. package/dist/hooks/index.d.ts +0 -12
  95. package/dist/hooks/use-auto-close/__docs__/use-auto-close.example.d.ts +0 -2
  96. package/dist/hooks/use-auto-close/__docs__/use-auto-close.stories.d.ts +0 -6
  97. package/dist/hooks/use-auto-close/use-auto-close.d.ts +0 -6
  98. package/dist/hooks/use-auto-close/use-auto-close.test.d.ts +0 -1
  99. package/dist/hooks/use-chop-logic-theme/use-chop-logic-theme.d.ts +0 -1
  100. package/dist/hooks/use-click-outside/__docs__/use-click-outside.example.d.ts +0 -1
  101. package/dist/hooks/use-click-outside/__docs__/use-click-outside.stories.d.ts +0 -6
  102. package/dist/hooks/use-click-outside/use-click-outside.d.ts +0 -8
  103. package/dist/hooks/use-click-outside/use-click-outside.test.d.ts +0 -1
  104. package/dist/hooks/use-container-dimensions/__docs__/use-container-dimensions.example.d.ts +0 -1
  105. package/dist/hooks/use-container-dimensions/__docs__/use-container-dimensions.stories.d.ts +0 -6
  106. package/dist/hooks/use-container-dimensions/use-container-dimensions.d.ts +0 -8
  107. package/dist/hooks/use-element-ids/use-element-ids.d.ts +0 -5
  108. package/dist/hooks/use-element-ids/use-element-ids.test.d.ts +0 -1
  109. package/dist/hooks/use-is-mounted/__docs__/use-is-mounted.example.d.ts +0 -1
  110. package/dist/hooks/use-is-mounted/__docs__/use-is-mounted.stories.d.ts +0 -6
  111. package/dist/hooks/use-is-mounted/use-is-mounted.d.ts +0 -1
  112. package/dist/hooks/use-is-mounted/use-is-mounted.test.d.ts +0 -1
  113. package/dist/hooks/use-is-overflow/__docs__/use-is-overflow.example.d.ts +0 -4
  114. package/dist/hooks/use-is-overflow/__docs__/use-is-overflow.stories.d.ts +0 -6
  115. package/dist/hooks/use-is-overflow/use-is-overflow.d.ts +0 -6
  116. package/dist/hooks/use-is-overflow/use-is-overflow.test.d.ts +0 -1
  117. package/dist/hooks/use-key-press/__docs__/use-key-press.example.d.ts +0 -1
  118. package/dist/hooks/use-key-press/__docs__/use-key-press.stories.d.ts +0 -6
  119. package/dist/hooks/use-key-press/use-key-press.d.ts +0 -8
  120. package/dist/hooks/use-key-press/use-key-press.test.d.ts +0 -1
  121. package/dist/hooks/use-modal-focus-trap/__docs__/use-modal-focus-trap.example.d.ts +0 -1
  122. package/dist/hooks/use-modal-focus-trap/__docs__/use-modal-focus-trap.stories.d.ts +0 -6
  123. package/dist/hooks/use-modal-focus-trap/use-modal-focus-trap.d.ts +0 -7
  124. package/dist/hooks/use-modal-focus-trap/use-modal-focus-trap.test.d.ts +0 -1
  125. package/dist/hooks/use-reset-form-input/use-reset-form-input.d.ts +0 -1
  126. package/dist/hooks/use-tooltip-position/__docs__/use-tooltip-position.example.d.ts +0 -1
  127. package/dist/hooks/use-tooltip-position/__docs__/use-tooltip-position.stories.d.ts +0 -6
  128. package/dist/hooks/use-tooltip-position/use-tooltip-position.d.ts +0 -12
  129. package/dist/hooks/use-tooltip-position/use-tooltip-position.test.d.ts +0 -1
  130. package/dist/hooks/use-window-dimensions/__docs__/use-window-dimensions.example.d.ts +0 -1
  131. package/dist/hooks/use-window-dimensions/__docs__/use-window-dimensions.stories.d.ts +0 -6
  132. package/dist/hooks/use-window-dimensions/use-window-dimensions.d.ts +0 -2
  133. package/dist/hooks/use-window-dimensions/use-window-dimensions.test.d.ts +0 -1
  134. package/dist/models/_common.d.ts +0 -33
  135. package/dist/models/alert.d.ts +0 -11
  136. package/dist/models/button.d.ts +0 -14
  137. package/dist/models/checkbox.d.ts +0 -8
  138. package/dist/models/dialog.d.ts +0 -9
  139. package/dist/models/editable-text.d.ts +0 -12
  140. package/dist/models/form.d.ts +0 -19
  141. package/dist/models/grid.d.ts +0 -23
  142. package/dist/models/header.d.ts +0 -9
  143. package/dist/models/icon.d.ts +0 -11
  144. package/dist/models/index.d.ts +0 -18
  145. package/dist/models/loader.d.ts +0 -6
  146. package/dist/models/menu.d.ts +0 -17
  147. package/dist/models/multi-select.d.ts +0 -7
  148. package/dist/models/numeric.d.ts +0 -16
  149. package/dist/models/select.d.ts +0 -7
  150. package/dist/models/tabs.d.ts +0 -14
  151. package/dist/models/text.d.ts +0 -17
  152. package/dist/models/tooltip.d.ts +0 -10
  153. package/dist/molecules/index.d.ts +0 -6
  154. package/dist/molecules/inputs/__elements__/error-message/ErrorMessage.d.ts +0 -10
  155. package/dist/molecules/inputs/__elements__/error-message/ErrorMessage.test.d.ts +0 -1
  156. package/dist/molecules/inputs/__elements__/icon-button/IconButton.d.ts +0 -4
  157. package/dist/molecules/inputs/__elements__/icon-button/IconButton.test.d.ts +0 -1
  158. package/dist/molecules/inputs/__elements__/index.d.ts +0 -10
  159. package/dist/molecules/inputs/__elements__/inner-button/InnerButton.d.ts +0 -9
  160. package/dist/molecules/inputs/__elements__/inner-button/InnerButton.test.d.ts +0 -1
  161. package/dist/molecules/inputs/__elements__/input/Input.d.ts +0 -4
  162. package/dist/molecules/inputs/__elements__/multi-select/Combobox.d.ts +0 -15
  163. package/dist/molecules/inputs/__elements__/multi-select/Dropdown.d.ts +0 -11
  164. package/dist/molecules/inputs/__elements__/multi-select/Option.d.ts +0 -8
  165. package/dist/molecules/inputs/__elements__/primary-button/PrimaryButton.d.ts +0 -4
  166. package/dist/molecules/inputs/__elements__/primary-button/PrimaryButton.test.d.ts +0 -1
  167. package/dist/molecules/inputs/__elements__/secondary-button/SecondaryButton.d.ts +0 -4
  168. package/dist/molecules/inputs/__elements__/secondary-button/SecondaryButton.test.d.ts +0 -1
  169. package/dist/molecules/inputs/__elements__/select/combobox/Combobox.d.ts +0 -15
  170. package/dist/molecules/inputs/__elements__/select/dropdown/Dropdown.d.ts +0 -14
  171. package/dist/molecules/inputs/__elements__/select/option/Option.d.ts +0 -10
  172. package/dist/molecules/inputs/button/Button.d.ts +0 -7
  173. package/dist/molecules/inputs/button/Button.test.d.ts +0 -1
  174. package/dist/molecules/inputs/button/__docs__/Button.example.d.ts +0 -3
  175. package/dist/molecules/inputs/button/__docs__/Button.stories.d.ts +0 -9
  176. package/dist/molecules/inputs/checkbox/Checkbox.controller.d.ts +0 -9
  177. package/dist/molecules/inputs/checkbox/Checkbox.d.ts +0 -4
  178. package/dist/molecules/inputs/checkbox/Checkbox.helpers.d.ts +0 -6
  179. package/dist/molecules/inputs/checkbox/Checkbox.test.d.ts +0 -1
  180. package/dist/molecules/inputs/checkbox/__docs__/Checkbox.example.d.ts +0 -3
  181. package/dist/molecules/inputs/checkbox/__docs__/Checkbox.stories.d.ts +0 -8
  182. package/dist/molecules/inputs/multi-select/MultiSelect.d.ts +0 -4
  183. package/dist/molecules/inputs/multi-select/MultiSelect.test.d.ts +0 -1
  184. package/dist/molecules/inputs/multi-select/Multiselect.controller.d.ts +0 -13
  185. package/dist/molecules/inputs/multi-select/Multiselect.helpers.d.ts +0 -9
  186. package/dist/molecules/inputs/multi-select/Multiselect.helpers.test.d.ts +0 -1
  187. package/dist/molecules/inputs/multi-select/__docs__/MultiSelect.example.d.ts +0 -3
  188. package/dist/molecules/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +0 -6
  189. package/dist/molecules/inputs/numeric/NumericInput.controller.d.ts +0 -21
  190. package/dist/molecules/inputs/numeric/NumericInput.d.ts +0 -4
  191. package/dist/molecules/inputs/numeric/NumericInput.helpers.d.ts +0 -13
  192. package/dist/molecules/inputs/numeric/NumericInput.helpers.test.d.ts +0 -1
  193. package/dist/molecules/inputs/numeric/NumericInput.test.d.ts +0 -1
  194. package/dist/molecules/inputs/numeric/__docs__/NumericInput.example.d.ts +0 -3
  195. package/dist/molecules/inputs/numeric/__docs__/NumericInput.stories.d.ts +0 -6
  196. package/dist/molecules/inputs/select/Select.controller.d.ts +0 -14
  197. package/dist/molecules/inputs/select/Select.d.ts +0 -4
  198. package/dist/molecules/inputs/select/Select.helpers.d.ts +0 -7
  199. package/dist/molecules/inputs/select/Select.helpers.test.d.ts +0 -1
  200. package/dist/molecules/inputs/select/Select.test.d.ts +0 -1
  201. package/dist/molecules/inputs/select/__docs__/Select.example.d.ts +0 -3
  202. package/dist/molecules/inputs/select/__docs__/Select.stories.d.ts +0 -6
  203. package/dist/molecules/inputs/text/TextInput.controller.d.ts +0 -17
  204. package/dist/molecules/inputs/text/TextInput.d.ts +0 -4
  205. package/dist/molecules/inputs/text/TextInput.helpers.d.ts +0 -11
  206. package/dist/molecules/inputs/text/TextInput.helpers.test.d.ts +0 -1
  207. package/dist/molecules/inputs/text/TextInput.test.d.ts +0 -1
  208. package/dist/molecules/inputs/text/__docs__/TextInput.example.d.ts +0 -3
  209. package/dist/molecules/inputs/text/__docs__/TextInput.stories.d.ts +0 -8
  210. package/dist/organisms/alert/Alert.d.ts +0 -4
  211. package/dist/organisms/alert/Alert.helpers.d.ts +0 -3
  212. package/dist/organisms/alert/Alert.test.d.ts +0 -1
  213. package/dist/organisms/alert/__docs__/Alert.example.d.ts +0 -3
  214. package/dist/organisms/alert/__docs__/Alert.stories.d.ts +0 -6
  215. package/dist/organisms/dialog/Dialog.d.ts +0 -4
  216. package/dist/organisms/dialog/Dialog.test.d.ts +0 -1
  217. package/dist/organisms/dialog/__docs__/Dialog.example.d.ts +0 -3
  218. package/dist/organisms/dialog/__docs__/Dialog.stories.d.ts +0 -6
  219. package/dist/organisms/form/Form.controller.d.ts +0 -14
  220. package/dist/organisms/form/Form.d.ts +0 -4
  221. package/dist/organisms/form/Form.helpers.d.ts +0 -4
  222. package/dist/organisms/form/Form.helpers.test.d.ts +0 -1
  223. package/dist/organisms/form/Form.test.d.ts +0 -1
  224. package/dist/organisms/form/__docs__/Form.example.d.ts +0 -3
  225. package/dist/organisms/form/__docs__/Form.stories.d.ts +0 -6
  226. package/dist/organisms/grid/Grid.controller.d.ts +0 -15
  227. package/dist/organisms/grid/Grid.d.ts +0 -4
  228. package/dist/organisms/grid/Grid.helpers.d.ts +0 -7
  229. package/dist/organisms/grid/Grid.helpers.test.d.ts +0 -1
  230. package/dist/organisms/grid/Grid.test.d.ts +0 -1
  231. package/dist/organisms/grid/__docs__/Grid.example.d.ts +0 -3
  232. package/dist/organisms/grid/__docs__/Grid.stories.d.ts +0 -7
  233. package/dist/organisms/grid/__elements__/body/GridBody.d.ts +0 -13
  234. package/dist/organisms/grid/__elements__/body/GridBody.test.d.ts +0 -1
  235. package/dist/organisms/grid/__elements__/checkbox/GridCheckbox.d.ts +0 -6
  236. package/dist/organisms/grid/__elements__/column-group/GridColumnGroup.d.ts +0 -6
  237. package/dist/organisms/grid/__elements__/column-group/GridColumnGroup.test.d.ts +0 -1
  238. package/dist/organisms/grid/__elements__/data-cell/GridDataCell.d.ts +0 -4
  239. package/dist/organisms/grid/__elements__/grid-row/GridRow.d.ts +0 -12
  240. package/dist/organisms/grid/__elements__/grid-row/GridRow.test.d.ts +0 -1
  241. package/dist/organisms/grid/__elements__/head/GridHead.d.ts +0 -13
  242. package/dist/organisms/grid/__elements__/head/GridHead.test.d.ts +0 -1
  243. package/dist/organisms/grid/__elements__/header-cell/HeaderCell.d.ts +0 -5
  244. package/dist/organisms/grid/__elements__/index.d.ts +0 -3
  245. package/dist/organisms/grid/__elements__/select-all-grid-rows-cell/SelectAllGridRowsCell.d.ts +0 -10
  246. package/dist/organisms/grid/__elements__/select-all-grid-rows-cell/SelectAllGridRowsCell.test.d.ts +0 -1
  247. package/dist/organisms/grid/__elements__/select-grid-row-cell/SelectGridRowCell.d.ts +0 -10
  248. package/dist/organisms/grid/__elements__/select-grid-row-cell/SelectGridRowCell.test.d.ts +0 -1
  249. package/dist/organisms/index.d.ts +0 -6
  250. package/dist/organisms/menu/Menu.d.ts +0 -4
  251. package/dist/organisms/menu/Menu.test.d.ts +0 -1
  252. package/dist/organisms/menu/__docs__/Menu.example.d.ts +0 -4
  253. package/dist/organisms/menu/__docs__/Menu.stories.d.ts +0 -8
  254. package/dist/organisms/menu/__elements__/index.d.ts +0 -1
  255. package/dist/organisms/menu/__elements__/item/MenuItem.d.ts +0 -10
  256. package/dist/organisms/menu/__elements__/item/MenuItem.test.d.ts +0 -1
  257. package/dist/organisms/menu/__elements__/leaf/MenuLeaf.d.ts +0 -5
  258. package/dist/organisms/menu/__elements__/leaf/MenuLeaf.test.d.ts +0 -1
  259. package/dist/organisms/menu/__elements__/sub-menu/SubMenu.d.ts +0 -14
  260. package/dist/organisms/menu/__elements__/sub-menu/SubMenu.test.d.ts +0 -1
  261. package/dist/organisms/tabs/Tabs.d.ts +0 -4
  262. package/dist/organisms/tabs/Tabs.test.d.ts +0 -1
  263. package/dist/organisms/tabs/__docs__/Tabs.example.d.ts +0 -3
  264. package/dist/organisms/tabs/__docs__/Tabs.stories.d.ts +0 -7
  265. package/dist/organisms/tabs/__elements__/button/TabButton.d.ts +0 -13
  266. package/dist/organisms/tabs/__elements__/button/TabButton.test.d.ts +0 -1
  267. package/dist/organisms/tabs/__elements__/content/TabContent.d.ts +0 -6
  268. package/dist/organisms/tabs/__elements__/content/TabContent.test.d.ts +0 -1
  269. package/dist/organisms/tabs/__elements__/index.d.ts +0 -2
  270. package/dist/organisms/tabs/__elements__/list/TabList.d.ts +0 -13
  271. package/dist/organisms/tabs/__elements__/list/TabList.test.d.ts +0 -1
  272. package/dist/utils/__tests__/get-class-name.test.d.ts +0 -1
  273. package/dist/utils/__tests__/handle-dropdown-list-key-press.test.d.ts +0 -1
  274. package/dist/utils/__tests__/move-focus-on-element-by-id.test.d.ts +0 -1
  275. package/dist/utils/get-class-name.d.ts +0 -5
  276. package/dist/utils/handle-dropdown-list-key-press.d.ts +0 -7
  277. package/dist/utils/index.d.ts +0 -3
  278. package/dist/utils/move-focus-on-element-by-id.d.ts +0 -1
@@ -1,6 +0,0 @@
1
- export { default as ChopLogicButton } from './inputs/button/Button';
2
- export { default as ChopLogicCheckbox } from './inputs/checkbox/Checkbox';
3
- export { default as ChopLogicMultiSelect } from './inputs/multi-select/MultiSelect';
4
- export { default as ChopLogicNumericInput } from './inputs/numeric/NumericInput';
5
- export { default as ChopLogicSelect } from './inputs/select/Select';
6
- export { default as ChopLogicTextInput } from './inputs/text/TextInput';
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- type ErrorMessageProps = {
3
- errorId: string;
4
- visible?: boolean;
5
- message?: string;
6
- testId?: string;
7
- className?: string;
8
- };
9
- export declare const ErrorMessage: FC<ErrorMessageProps>;
10
- export {};
@@ -1,4 +0,0 @@
1
- import { ButtonHTMLAttributes, FC, PropsWithChildren } from 'react';
2
- type Props = ButtonHTMLAttributes<HTMLButtonElement> & PropsWithChildren;
3
- export declare const IconButton: FC<Props>;
4
- export {};
@@ -1,10 +0,0 @@
1
- export { ErrorMessage } from './error-message/ErrorMessage';
2
- export { IconButton } from './icon-button/IconButton';
3
- export { InnerButton } from './inner-button/InnerButton';
4
- export { Input } from './input/Input';
5
- export { MultiSelectCombobox } from './multi-select/Combobox';
6
- export { MultiSelectDropdown } from './multi-select/Dropdown';
7
- export { PrimaryButton } from './primary-button/PrimaryButton';
8
- export { SecondaryButton } from './secondary-button/SecondaryButton';
9
- export { SelectCombobox } from './select/combobox/Combobox';
10
- export { SelectDropdown } from './select/dropdown/Dropdown';
@@ -1,9 +0,0 @@
1
- import { ChopLogicIconName } from '../../../../enums';
2
- import { ButtonHTMLAttributes, FC, MouseEvent } from 'react';
3
- type Props = {
4
- label?: string;
5
- icon?: ChopLogicIconName;
6
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
7
- } & ButtonHTMLAttributes<HTMLButtonElement>;
8
- export declare const InnerButton: FC<Props>;
9
- export {};
@@ -1,4 +0,0 @@
1
- import { FC, InputHTMLAttributes, PropsWithChildren } from 'react';
2
- type Props = InputHTMLAttributes<HTMLInputElement> & PropsWithChildren;
3
- export declare const Input: FC<Props>;
4
- export {};
@@ -1,15 +0,0 @@
1
- import { ChopLogicMultiSelectValue } from '../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- opened: boolean;
5
- disabled: boolean;
6
- required: boolean;
7
- onClick: () => void;
8
- comboboxId: string;
9
- dropdownId: string;
10
- values?: ChopLogicMultiSelectValue[];
11
- placeholder?: string;
12
- name: string;
13
- };
14
- export declare const MultiSelectCombobox: FC<Props>;
15
- export {};
@@ -1,11 +0,0 @@
1
- import { ChopLogicMultiSelectValue } from '../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- options: ChopLogicMultiSelectValue[];
5
- opened: boolean;
6
- dropdownId: string;
7
- onClose: () => void;
8
- onSelect: (id: string) => void;
9
- };
10
- export declare const MultiSelectDropdown: FC<Props>;
11
- export {};
@@ -1,8 +0,0 @@
1
- import { ChopLogicMultiSelectValue } from '../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- value: ChopLogicMultiSelectValue;
5
- onSelect: (id: string) => void;
6
- };
7
- export declare const MultiSelectOption: FC<Props>;
8
- export {};
@@ -1,4 +0,0 @@
1
- import { ButtonHTMLAttributes, FC, PropsWithChildren } from 'react';
2
- type Props = ButtonHTMLAttributes<HTMLButtonElement> & PropsWithChildren;
3
- export declare const PrimaryButton: FC<Props>;
4
- export {};
@@ -1,4 +0,0 @@
1
- import { ButtonHTMLAttributes, FC, PropsWithChildren } from 'react';
2
- type Props = ButtonHTMLAttributes<HTMLButtonElement> & PropsWithChildren;
3
- export declare const SecondaryButton: FC<Props>;
4
- export {};
@@ -1,15 +0,0 @@
1
- import { ChopLogicSelectValue } from '../../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- opened: boolean;
5
- disabled: boolean;
6
- required: boolean;
7
- onClick: () => void;
8
- comboboxId: string;
9
- dropdownId: string;
10
- selected?: ChopLogicSelectValue;
11
- placeholder?: string;
12
- name: string;
13
- };
14
- export declare const SelectCombobox: FC<Props>;
15
- export {};
@@ -1,14 +0,0 @@
1
- import { ChopLogicSelectValue } from '../../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- options: ChopLogicSelectValue[];
5
- opened: boolean;
6
- dropdownId: string;
7
- comboboxId: string;
8
- onClose: () => void;
9
- selected?: ChopLogicSelectValue;
10
- onSelect: (id: string) => void;
11
- onClear: () => void;
12
- };
13
- export declare const SelectDropdown: FC<Props>;
14
- export {};
@@ -1,10 +0,0 @@
1
- import { ChopLogicSelectValue } from '../../../../../models';
2
- import { FC } from 'react';
3
- type Props = {
4
- value: ChopLogicSelectValue;
5
- selected: boolean;
6
- onSelect: (id: string) => void;
7
- onClear: () => void;
8
- };
9
- export declare const SelectOption: FC<Props>;
10
- export {};
@@ -1,7 +0,0 @@
1
- import { ChopLogicButtonProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicButton: FC<ChopLogicButtonProps & {
4
- tooltip?: string;
5
- visibleOn?: "hover" | "click" | "focus" | "contextmenu";
6
- }>;
7
- export default ChopLogicButton;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicButtonProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const ChopLogicButtonExample: FC<ChopLogicButtonProps>;
@@ -1,9 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { default as ChopLogicButton } from '../Button';
3
- declare const meta: Meta<typeof ChopLogicButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicButton>;
6
- export declare const PrimaryButton: Story;
7
- export declare const SecondaryButton: Story;
8
- export declare const IconButton: Story;
9
- export declare const ButtonWithTooltip: Story;
@@ -1,9 +0,0 @@
1
- import { ChangeEvent, ChangeEventHandler } from 'react';
2
- export declare function useChopLogicCheckboxController({ name, defaultChecked, onChange, }: {
3
- name: string;
4
- defaultChecked?: boolean;
5
- onChange?: ChangeEventHandler<HTMLInputElement>;
6
- }): {
7
- handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
8
- checked: boolean;
9
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicCheckboxProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicCheckbox: FC<ChopLogicCheckboxProps>;
4
- export default ChopLogicCheckbox;
@@ -1,6 +0,0 @@
1
- import { ChopLogicFormData } from '../../../models';
2
- export declare function getCheckboxInitialValue({ defaultChecked, initialValues, name, }: {
3
- defaultChecked?: boolean;
4
- initialValues?: ChopLogicFormData;
5
- name: string;
6
- }): boolean;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicCheckboxProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const CheckboxExample: FC<ChopLogicCheckboxProps>;
@@ -1,8 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { default as ChopLogicCheckbox } from '../Checkbox';
3
- declare const meta: Meta<typeof ChopLogicCheckbox>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicCheckbox>;
6
- export declare const LeftIconCheckbox: Story;
7
- export declare const RightIconCheckbox: Story;
8
- export declare const NoLabelCheckbox: Story;
@@ -1,4 +0,0 @@
1
- import { ChopLogicMultiSelectProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicMultiSelect: FC<ChopLogicMultiSelectProps>;
4
- export default ChopLogicMultiSelect;
@@ -1,13 +0,0 @@
1
- import { ChopLogicMultiSelectValue, ChopLogicSelectValue } from '../../../models';
2
- export declare function useChopLogicMultiSelectController({ name, defaultValue, onChange, options, }: {
3
- name: string;
4
- defaultValue?: string | number | readonly string[];
5
- onChange?: (values?: ChopLogicSelectValue[]) => void;
6
- options: ChopLogicSelectValue[];
7
- }): {
8
- handleClose: () => void;
9
- handleToggle: () => void;
10
- handleSelect: (id: string) => void;
11
- opened: boolean;
12
- values: ChopLogicMultiSelectValue[];
13
- };
@@ -1,9 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicMultiSelectValue, ChopLogicSelectValue } from '../../../models';
2
- export declare function getMultiSelectInitialValues({ name, options, initialValues, defaultValue, }: {
3
- name: string;
4
- options: ChopLogicSelectValue[];
5
- initialValues?: ChopLogicFormData;
6
- defaultValue?: string | number | readonly string[];
7
- }): ChopLogicMultiSelectValue[];
8
- export declare const getMultiSelectFormValues: (options: ChopLogicMultiSelectValue[]) => string[];
9
- export declare const getMultiSelectUpdatedValues: (options: ChopLogicMultiSelectValue[], id: string) => ChopLogicMultiSelectValue[];
@@ -1,3 +0,0 @@
1
- import { ChopLogicMultiSelectProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const MultiSelectExample: FC<ChopLogicMultiSelectProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { default as ChopLogicMultiSelect } from '../MultiSelect';
3
- declare const meta: Meta<typeof ChopLogicMultiSelect>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicMultiSelect>;
6
- export declare const Example: Story;
@@ -1,21 +0,0 @@
1
- import { ChopLogicNumericInputValidator } from '../../../models';
2
- import { ChangeEvent, ChangeEventHandler } from 'react';
3
- export declare function useChopLogicNumericInputController({ name, defaultValue, onChange, onSpinButtonClick, min, max, step, required, validator, }: {
4
- name: string;
5
- defaultValue?: string | number | readonly string[];
6
- onChange?: ChangeEventHandler<HTMLInputElement>;
7
- onSpinButtonClick?: (value?: number) => void;
8
- min?: string | number;
9
- max?: string | number;
10
- step: number;
11
- required: boolean;
12
- validator?: ChopLogicNumericInputValidator;
13
- }): {
14
- handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
15
- value: number;
16
- valid: boolean;
17
- minValue: number;
18
- maxValue: number;
19
- increment: () => void;
20
- decrement: () => void;
21
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicNumericInputProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicNumericInput: FC<ChopLogicNumericInputProps>;
4
- export default ChopLogicNumericInput;
@@ -1,13 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicNumericInputValidator } from '../../../models';
2
- export declare function getNumericInputInitialValue({ name, initialValues, defaultValue, }: {
3
- name: string;
4
- initialValues?: ChopLogicFormData;
5
- defaultValue?: string | number | readonly string[];
6
- }): number;
7
- export declare function validateNumericInputValue({ value, required, validator, maxValue, minValue, }: {
8
- value?: number;
9
- required?: boolean;
10
- validator?: ChopLogicNumericInputValidator;
11
- maxValue?: number;
12
- minValue?: number;
13
- }): boolean;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicNumericInputProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const NumericInputExample: FC<ChopLogicNumericInputProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { NumericInputExample } from './NumericInput.example';
3
- declare const meta: Meta<typeof NumericInputExample>;
4
- export default meta;
5
- type Story = StoryObj<typeof NumericInputExample>;
6
- export declare const Example: Story;
@@ -1,14 +0,0 @@
1
- import { ChopLogicSelectValue } from '../../../models';
2
- export declare function useChopLogicSelectController({ name, defaultValue, onChange, options, }: {
3
- name: string;
4
- defaultValue?: string | number | readonly string[];
5
- onChange?: (value?: ChopLogicSelectValue) => void;
6
- options: ChopLogicSelectValue[];
7
- }): {
8
- selected: ChopLogicSelectValue | undefined;
9
- opened: boolean;
10
- handleClear: () => void;
11
- handleClose: () => void;
12
- handleToggle: () => void;
13
- handleSelect: (id: string) => void;
14
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicSelectProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicSelect: FC<ChopLogicSelectProps>;
4
- export default ChopLogicSelect;
@@ -1,7 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicSelectValue } from '../../../models';
2
- export declare function getSelectInitialValue({ name, options, initialValues, defaultValue, }: {
3
- name: string;
4
- options: ChopLogicSelectValue[];
5
- initialValues?: ChopLogicFormData;
6
- defaultValue?: string | number | readonly string[];
7
- }): ChopLogicSelectValue | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicSelectProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const ChopLogicSelectExample: FC<ChopLogicSelectProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { ChopLogicSelectExample } from './Select.example.tsx';
3
- declare const meta: Meta<typeof ChopLogicSelectExample>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicSelectExample>;
6
- export declare const Example: Story;
@@ -1,17 +0,0 @@
1
- import { ChopLogicRegExpWithFlags, ChopLogicTextInputValidator } from '../../../models';
2
- import { ChangeEvent, ChangeEventHandler } from 'react';
3
- export declare function useChopLogicTextInputController({ name, defaultValue, onChange, onClear, required, validator, }: {
4
- name: string;
5
- required: boolean;
6
- validator?: ChopLogicRegExpWithFlags | ChopLogicTextInputValidator;
7
- defaultValue?: string | number | readonly string[];
8
- onChange?: ChangeEventHandler<HTMLInputElement>;
9
- onClear?: () => void;
10
- }): {
11
- value: string;
12
- valid: boolean;
13
- passwordShown: boolean;
14
- handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
15
- handleClear: () => void;
16
- togglePassword: () => void;
17
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicTextInputProps } from '../../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicTextInput: FC<ChopLogicTextInputProps>;
4
- export default ChopLogicTextInput;
@@ -1,11 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicRegExpWithFlags, ChopLogicTextInputValidator } from '../../../models';
2
- export declare function validateTextInputValue({ value, required, validator, }: {
3
- value: string;
4
- required: boolean;
5
- validator?: ChopLogicRegExpWithFlags | ChopLogicTextInputValidator;
6
- }): boolean;
7
- export declare function getTextInputInitialValue({ name, initialValues, defaultValue, }: {
8
- name: string;
9
- initialValues?: ChopLogicFormData;
10
- defaultValue?: string | number | readonly string[];
11
- }): string;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicTextInputProps } from '../../../../models';
2
- import { FC } from 'react';
3
- export declare const TextInputExample: FC<ChopLogicTextInputProps>;
@@ -1,8 +0,0 @@
1
- import { Meta, StoryObj } from '../../../../storybook/react-vite';
2
- import { TextInputExample } from './TextInput.example.tsx';
3
- declare const meta: Meta<typeof TextInputExample>;
4
- export default meta;
5
- type Story = StoryObj<typeof TextInputExample>;
6
- export declare const DefaultTextInput: Story;
7
- export declare const PasswordInput: Story;
8
- export declare const EmailInput: Story;
@@ -1,4 +0,0 @@
1
- import { ChopLogicAlertProps } from '../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicAlert: FC<ChopLogicAlertProps>;
4
- export default ChopLogicAlert;
@@ -1,3 +0,0 @@
1
- import { ChopLogicAlertMode, ChopLogicIconName } from '../../enums';
2
- export declare function getAlertTitle(mode: ChopLogicAlertMode, title?: string): string;
3
- export declare function getAlertIcon(mode: ChopLogicAlertMode, icon?: ChopLogicIconName): ChopLogicIconName | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicAlertProps } from '../../../models';
2
- import { FC } from 'react';
3
- export declare const AlertExample: FC<ChopLogicAlertProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../storybook/react-vite';
2
- import { AlertExample } from './Alert.example';
3
- declare const meta: Meta<typeof AlertExample>;
4
- export default meta;
5
- type Story = StoryObj<typeof AlertExample>;
6
- export declare const Example: Story;
@@ -1,4 +0,0 @@
1
- import { ChopLogicDialogProps } from '../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicDialog: FC<ChopLogicDialogProps>;
4
- export default ChopLogicDialog;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicDialogProps } from '../../../models';
2
- import { FC } from 'react';
3
- export declare const ChopLogicDialogExample: FC<ChopLogicDialogProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../storybook/react-vite';
2
- import { default as ChopLogicDialog } from '../Dialog';
3
- declare const meta: Meta<typeof ChopLogicDialog>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicDialog>;
6
- export declare const Example: Story;
@@ -1,14 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicFormInputParams } from '../../models';
2
- import { FormEvent, FormEventHandler } from 'react';
3
- export declare function useChopLogicFormController({ initialValues, onReset, onSubmit, onClickSubmit, }: {
4
- initialValues?: ChopLogicFormData;
5
- onReset?: FormEventHandler<HTMLFormElement>;
6
- onSubmit?: FormEventHandler<HTMLFormElement>;
7
- onClickSubmit?: (data: ChopLogicFormData) => void;
8
- }): {
9
- handleInputChange: (params: ChopLogicFormInputParams) => void;
10
- handleSubmit: (event: FormEvent<HTMLFormElement>) => void;
11
- handleReset: (event: FormEvent<HTMLFormElement>) => void;
12
- resetSignal: number;
13
- valid: boolean;
14
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicFormProps } from '../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicForm: FC<ChopLogicFormProps>;
4
- export default ChopLogicForm;
@@ -1,4 +0,0 @@
1
- import { ChopLogicFormData, ChopLogicFormInputParams, ChopLogicFormValidationState } from '../../models';
2
- export declare function getInitialValidationState(data?: ChopLogicFormData): ChopLogicFormValidationState;
3
- export declare function updateValidationState(state: ChopLogicFormValidationState, params: ChopLogicFormInputParams): ChopLogicFormValidationState;
4
- export declare function isFormDataValid(state: ChopLogicFormValidationState): boolean;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicFormProps } from '../../../models';
2
- import { FC } from 'react';
3
- export declare const FormExample: FC<ChopLogicFormProps>;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '../../../storybook/react-vite';
2
- import { default as ChopLogicForm } from '../Form.tsx';
3
- declare const meta: Meta<typeof ChopLogicForm>;
4
- export default meta;
5
- type Story = StoryObj<typeof ChopLogicForm>;
6
- export declare const Example: Story;
@@ -1,15 +0,0 @@
1
- import { ChopLogicGridItem } from '../../models';
2
- export declare const useChopLogicGridController: ({ data, id, onSelect, }: {
3
- data: ChopLogicGridItem[];
4
- id?: string;
5
- onSelect?: (ids: string[]) => void;
6
- }) => {
7
- elementId: string;
8
- isAllSelected: boolean;
9
- isAllCheckboxDisabled: boolean;
10
- selectedIds: string[];
11
- handleSelectAll: () => void;
12
- handleDeselectAll: () => void;
13
- handleSelectRowById: (id: string) => void;
14
- handleDeselectRowById: (id: string) => void;
15
- };
@@ -1,4 +0,0 @@
1
- import { ChopLogicGridProps } from '../../models';
2
- import { FC } from 'react';
3
- declare const ChopLogicGrid: FC<ChopLogicGridProps>;
4
- export default ChopLogicGrid;
@@ -1,7 +0,0 @@
1
- import { ChopLogicGridColumn, ChopLogicGridItem, RenderDataItemCallback } from '../../models';
2
- import { ReactElement } from 'react';
3
- export declare function getGridRowValues({ item, columns, renderDataItem, }: {
4
- item: ChopLogicGridItem;
5
- columns: ChopLogicGridColumn[];
6
- renderDataItem?: RenderDataItemCallback;
7
- }): (string | ReactElement)[];
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { ChopLogicGridProps } from '../../../models';
2
- import { FC } from 'react';
3
- export declare const GridExample: FC<ChopLogicGridProps>;