triafly-ui-kit 1.0.21 → 1.0.23
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.
- package/README.md +93 -93
- package/package.json +106 -106
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/assets/Accordeon.css +0 -1
- package/dist/assets/Alert.css +0 -1
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonsArray.css +0 -1
- package/dist/assets/Checkbox.css +0 -1
- package/dist/assets/CliTextareaInput.css +0 -1
- package/dist/assets/CustomLink.css +0 -1
- package/dist/assets/DropdownInput.css +0 -1
- package/dist/assets/DropdownMenu.css +0 -1
- package/dist/assets/FileUpload.css +0 -1
- package/dist/assets/FormControls.css +0 -1
- package/dist/assets/FormRoot.css +0 -1
- package/dist/assets/Loader.css +0 -1
- package/dist/assets/Pagination.css +0 -1
- package/dist/assets/Radio.css +0 -1
- package/dist/assets/SearchInput.css +0 -1
- package/dist/assets/Skeleton.css +0 -1
- package/dist/assets/Switch.css +0 -1
- package/dist/assets/Table.css +0 -1
- package/dist/assets/Tabs.css +0 -1
- package/dist/assets/TextInput.css +0 -1
- package/dist/assets/TextareaInput.css +0 -1
- package/dist/assets/ToastContext.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/assets/Tooltip2.css +0 -1
- package/dist/assets/fonts/FiraCode-Regular.ttf +0 -0
- package/dist/assets/fonts/Manrope-Bold.ttf +0 -0
- package/dist/assets/fonts/Manrope-Regular.ttf +0 -0
- package/dist/assets/fonts/Manrope-SemiBold.ttf +0 -0
- package/dist/assets/fonts/RobotoSlab-SemiBold.ttf +0 -0
- package/dist/components/Ui/Accordeon/Accordeon.d.ts +0 -10
- package/dist/components/Ui/Accordeon/Accordeon.d.ts.map +0 -1
- package/dist/components/Ui/Accordeon/Accordeon.js +0 -33
- package/dist/components/Ui/Accordeon/Accordeon.stories.d.ts +0 -10
- package/dist/components/Ui/Accordeon/Accordeon.stories.d.ts.map +0 -1
- package/dist/components/Ui/Accordeon/Accordeon.stories.js +0 -72
- package/dist/components/Ui/Accordeon/index.d.ts +0 -2
- package/dist/components/Ui/Accordeon/index.d.ts.map +0 -1
- package/dist/components/Ui/Accordeon/index.js +0 -4
- package/dist/components/Ui/Alert/Alert.d.ts +0 -11
- package/dist/components/Ui/Alert/Alert.d.ts.map +0 -1
- package/dist/components/Ui/Alert/Alert.js +0 -14
- package/dist/components/Ui/Alert/index.d.ts +0 -2
- package/dist/components/Ui/Alert/index.d.ts.map +0 -1
- package/dist/components/Ui/Alert/index.js +0 -4
- package/dist/components/Ui/Avatar/Avatar.d.ts +0 -8
- package/dist/components/Ui/Avatar/Avatar.d.ts.map +0 -1
- package/dist/components/Ui/Avatar/Avatar.js +0 -10
- package/dist/components/Ui/Avatar/index.d.ts +0 -2
- package/dist/components/Ui/Avatar/index.d.ts.map +0 -1
- package/dist/components/Ui/Avatar/index.js +0 -4
- package/dist/components/Ui/Badge/Badge.d.ts +0 -15
- package/dist/components/Ui/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Ui/Badge/Badge.js +0 -43
- package/dist/components/Ui/Badge/index.d.ts +0 -2
- package/dist/components/Ui/Badge/index.d.ts.map +0 -1
- package/dist/components/Ui/Badge/index.js +0 -4
- package/dist/components/Ui/Button/Button.d.ts +0 -20
- package/dist/components/Ui/Button/Button.d.ts.map +0 -1
- package/dist/components/Ui/Button/Button.js +0 -49
- package/dist/components/Ui/Button/index.d.ts +0 -2
- package/dist/components/Ui/Button/index.d.ts.map +0 -1
- package/dist/components/Ui/Button/index.js +0 -4
- package/dist/components/Ui/ButtonsArray/ButtonsArray.d.ts +0 -17
- package/dist/components/Ui/ButtonsArray/ButtonsArray.d.ts.map +0 -1
- package/dist/components/Ui/ButtonsArray/ButtonsArray.js +0 -28
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.d.ts +0 -12
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.d.ts.map +0 -1
- package/dist/components/Ui/ButtonsArray/index.d.ts +0 -2
- package/dist/components/Ui/ButtonsArray/index.d.ts.map +0 -1
- package/dist/components/Ui/ButtonsArray/index.js +0 -4
- package/dist/components/Ui/Checkbox/Checkbox.d.ts +0 -12
- package/dist/components/Ui/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Ui/Checkbox/Checkbox.js +0 -39
- package/dist/components/Ui/Checkbox/Checkbox.stories.d.ts +0 -16
- package/dist/components/Ui/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/components/Ui/Checkbox/Checkbox.stories.js +0 -120
- package/dist/components/Ui/Checkbox/index.d.ts +0 -2
- package/dist/components/Ui/Checkbox/index.d.ts.map +0 -1
- package/dist/components/Ui/Checkbox/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/CliTextareaInput.d.ts +0 -19
- package/dist/components/Ui/CliTextareaInput/CliTextareaInput.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/CliTextareaInput.js +0 -121
- package/dist/components/Ui/CliTextareaInput/index.d.ts +0 -3
- package/dist/components/Ui/CliTextareaInput/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/index.js +0 -23
- package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.js +0 -12
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.d.ts +0 -3
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.js +0 -20
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/index.d.ts +0 -8
- package/dist/components/Ui/CliTextareaInput/utils/hooks/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/index.js +0 -17
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.d.ts +0 -6
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.js +0 -29
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.d.ts +0 -7
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.js +0 -34
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.d.ts +0 -10
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.js +0 -45
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.js +0 -5
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.d.ts +0 -8
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.js +0 -17
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.d.ts +0 -7
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.js +0 -13
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.d.ts +0 -15
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.js +0 -37
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.d.ts +0 -11
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.js +0 -14
- package/dist/components/Ui/CliTextareaInput/utils/index.d.ts +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/index.js +0 -21
- package/dist/components/Ui/CliTextareaInput/utils/processJson/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/processJson/index.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/processJson/index.js +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.js +0 -11
- package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.js +0 -8
- package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.js +0 -27
- package/dist/components/Ui/CliTextareaInput/utils/types.d.ts +0 -11
- package/dist/components/Ui/CliTextareaInput/utils/types.d.ts.map +0 -1
- package/dist/components/Ui/CliTextareaInput/utils/types.js +0 -1
- package/dist/components/Ui/CustomLink/CustomLink.d.ts +0 -16
- package/dist/components/Ui/CustomLink/CustomLink.d.ts.map +0 -1
- package/dist/components/Ui/CustomLink/CustomLink.js +0 -49
- package/dist/components/Ui/CustomLink/index.d.ts +0 -2
- package/dist/components/Ui/CustomLink/index.d.ts.map +0 -1
- package/dist/components/Ui/CustomLink/index.js +0 -4
- package/dist/components/Ui/Demos/DemoElements/DemoElements.d.ts +0 -4
- package/dist/components/Ui/Demos/DemoElements/DemoElements.d.ts.map +0 -1
- package/dist/components/Ui/Demos/DemoForm/DemoForm.d.ts +0 -11
- package/dist/components/Ui/Demos/DemoForm/DemoForm.d.ts.map +0 -1
- package/dist/components/Ui/Demos/DemoForm/DemoForm.stories.d.ts +0 -7
- package/dist/components/Ui/Demos/DemoForm/DemoForm.stories.d.ts.map +0 -1
- package/dist/components/Ui/Demos/DemoLogin/DemoLogin.d.ts +0 -4
- package/dist/components/Ui/Demos/DemoLogin/DemoLogin.d.ts.map +0 -1
- package/dist/components/Ui/Demos/DemoLogin/DemoLogin.stories.d.ts +0 -13
- package/dist/components/Ui/Demos/DemoLogin/DemoLogin.stories.d.ts.map +0 -1
- package/dist/components/Ui/DropdownInput/DropdownInput.d.ts +0 -20
- package/dist/components/Ui/DropdownInput/DropdownInput.d.ts.map +0 -1
- package/dist/components/Ui/DropdownInput/DropdownInput.js +0 -91
- package/dist/components/Ui/DropdownInput/DropdownInput.stories.d.ts +0 -20
- package/dist/components/Ui/DropdownInput/DropdownInput.stories.d.ts.map +0 -1
- package/dist/components/Ui/DropdownInput/DropdownInput.stories.js +0 -77
- package/dist/components/Ui/DropdownInput/index.d.ts +0 -2
- package/dist/components/Ui/DropdownInput/index.d.ts.map +0 -1
- package/dist/components/Ui/DropdownInput/index.js +0 -4
- package/dist/components/Ui/DropdownMenu/DropdownMenu.d.ts +0 -17
- package/dist/components/Ui/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- package/dist/components/Ui/DropdownMenu/DropdownMenu.js +0 -83
- package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.d.ts +0 -7
- package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.d.ts.map +0 -1
- package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.js +0 -50
- package/dist/components/Ui/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Ui/DropdownMenu/index.d.ts.map +0 -1
- package/dist/components/Ui/DropdownMenu/index.js +0 -4
- package/dist/components/Ui/FileUpload/FileUpload.d.ts +0 -5
- package/dist/components/Ui/FileUpload/FileUpload.d.ts.map +0 -1
- package/dist/components/Ui/FileUpload/FileUpload.js +0 -615
- package/dist/components/Ui/FileUpload/fn.d.ts +0 -8
- package/dist/components/Ui/FileUpload/fn.d.ts.map +0 -1
- package/dist/components/Ui/FileUpload/fn.js +0 -10
- package/dist/components/Ui/FileUpload/index.d.ts +0 -2
- package/dist/components/Ui/FileUpload/index.d.ts.map +0 -1
- package/dist/components/Ui/FileUpload/index.js +0 -4
- package/dist/components/Ui/FileUpload/types.d.ts +0 -33
- package/dist/components/Ui/FileUpload/types.d.ts.map +0 -1
- package/dist/components/Ui/FileUpload/types.js +0 -1
- package/dist/components/Ui/Form/FormContext/FormContext.d.ts +0 -77
- package/dist/components/Ui/Form/FormContext/FormContext.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormContext/FormContext.js +0 -5
- package/dist/components/Ui/Form/FormGroup/FormControls/FormControls.js +0 -5
- package/dist/components/Ui/Form/FormItem/FormItem.d.ts +0 -4
- package/dist/components/Ui/Form/FormItem/FormItem.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormItem/FormItem.js +0 -107
- package/dist/components/Ui/Form/FormItem/fn.d.ts +0 -3
- package/dist/components/Ui/Form/FormItem/fn.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormItem/fn.js +0 -25
- package/dist/components/Ui/Form/FormItem/types.d.ts +0 -11
- package/dist/components/Ui/Form/FormItem/types.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormItem/types.js +0 -1
- package/dist/components/Ui/Form/FormRoot/FormRoot.d.ts +0 -5
- package/dist/components/Ui/Form/FormRoot/FormRoot.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormRoot/FormRoot.js +0 -27
- package/dist/components/Ui/Form/FormRoot/index.d.ts +0 -2
- package/dist/components/Ui/Form/FormRoot/index.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormRoot/index.js +0 -4
- package/dist/components/Ui/Form/FormRoot/types.d.ts +0 -13
- package/dist/components/Ui/Form/FormRoot/types.d.ts.map +0 -1
- package/dist/components/Ui/Form/FormRoot/types.js +0 -1
- package/dist/components/Ui/Form/index.d.ts +0 -3
- package/dist/components/Ui/Form/index.d.ts.map +0 -1
- package/dist/components/Ui/Form/index.js +0 -6
- package/dist/components/Ui/Form/useForm/index.d.ts +0 -2
- package/dist/components/Ui/Form/useForm/index.d.ts.map +0 -1
- package/dist/components/Ui/Form/useForm/index.js +0 -4
- package/dist/components/Ui/Form/useForm/useForm.d.ts +0 -3
- package/dist/components/Ui/Form/useForm/useForm.d.ts.map +0 -1
- package/dist/components/Ui/Form/useForm/useForm.js +0 -111
- package/dist/components/Ui/Form/utils/fn.d.ts +0 -8
- package/dist/components/Ui/Form/utils/fn.d.ts.map +0 -1
- package/dist/components/Ui/Form/utils/fn.js +0 -31
- package/dist/components/Ui/Form/utils/types.d.ts +0 -13
- package/dist/components/Ui/Form/utils/types.d.ts.map +0 -1
- package/dist/components/Ui/Form/utils/types.js +0 -1
- package/dist/components/Ui/Icons/Icons.d.ts +0 -565
- package/dist/components/Ui/Icons/Icons.d.ts.map +0 -1
- package/dist/components/Ui/Icons/Icons.js +0 -577
- package/dist/components/Ui/Icons/index.d.ts +0 -2
- package/dist/components/Ui/Icons/index.d.ts.map +0 -1
- package/dist/components/Ui/Icons/index.js +0 -97
- package/dist/components/Ui/Icons/utils/CreateIcon.d.ts +0 -12
- package/dist/components/Ui/Icons/utils/CreateIcon.d.ts.map +0 -1
- package/dist/components/Ui/Icons/utils/CreateIcon.js +0 -23
- package/dist/components/Ui/Loader/Loader.d.ts +0 -9
- package/dist/components/Ui/Loader/Loader.d.ts.map +0 -1
- package/dist/components/Ui/Loader/Loader.js +0 -6
- package/dist/components/Ui/Loader/index.d.ts +0 -2
- package/dist/components/Ui/Loader/index.d.ts.map +0 -1
- package/dist/components/Ui/Loader/index.js +0 -4
- package/dist/components/Ui/ModalWindow/ModalWindow.d.ts +0 -27
- package/dist/components/Ui/ModalWindow/ModalWindow.d.ts.map +0 -1
- package/dist/components/Ui/ModalWindow/index.d.ts +0 -2
- package/dist/components/Ui/ModalWindow/index.d.ts.map +0 -1
- package/dist/components/Ui/Pagination/Pagination.d.ts +0 -9
- package/dist/components/Ui/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Ui/Pagination/Pagination.js +0 -294
- package/dist/components/Ui/Pagination/index.d.ts +0 -2
- package/dist/components/Ui/Pagination/index.d.ts.map +0 -1
- package/dist/components/Ui/Pagination/index.js +0 -4
- package/dist/components/Ui/Radio/Radio.d.ts +0 -13
- package/dist/components/Ui/Radio/Radio.d.ts.map +0 -1
- package/dist/components/Ui/Radio/Radio.js +0 -30
- package/dist/components/Ui/Radio/Radio.stories.d.ts +0 -9
- package/dist/components/Ui/Radio/Radio.stories.d.ts.map +0 -1
- package/dist/components/Ui/Radio/Radio.stories.js +0 -42
- package/dist/components/Ui/Radio/index.d.ts +0 -2
- package/dist/components/Ui/Radio/index.d.ts.map +0 -1
- package/dist/components/Ui/Radio/index.js +0 -4
- package/dist/components/Ui/SearchInput/SearchData.d.ts +0 -2
- package/dist/components/Ui/SearchInput/SearchData.d.ts.map +0 -1
- package/dist/components/Ui/SearchInput/SearchData.js +0 -30
- package/dist/components/Ui/SearchInput/SearchInput.d.ts +0 -24
- package/dist/components/Ui/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/components/Ui/SearchInput/SearchInput.js +0 -109
- package/dist/components/Ui/Skeleton/Skeleton.d.ts +0 -13
- package/dist/components/Ui/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/components/Ui/Skeleton/Skeleton.js +0 -28
- package/dist/components/Ui/Skeleton/index.d.ts +0 -2
- package/dist/components/Ui/Skeleton/index.d.ts.map +0 -1
- package/dist/components/Ui/Skeleton/index.js +0 -4
- package/dist/components/Ui/Switch/Switch.d.ts +0 -12
- package/dist/components/Ui/Switch/Switch.d.ts.map +0 -1
- package/dist/components/Ui/Switch/Switch.js +0 -25
- package/dist/components/Ui/Switch/index.d.ts +0 -2
- package/dist/components/Ui/Switch/index.d.ts.map +0 -1
- package/dist/components/Ui/Switch/index.js +0 -4
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.d.ts +0 -14
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.d.ts.map +0 -1
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +0 -79
- package/dist/components/Ui/Table/Table.d.ts +0 -4
- package/dist/components/Ui/Table/Table.d.ts.map +0 -1
- package/dist/components/Ui/Table/Table.js +0 -160
- package/dist/components/Ui/Table/TableTypes.d.ts +0 -35
- package/dist/components/Ui/Table/TableTypes.d.ts.map +0 -1
- package/dist/components/Ui/Table/TableTypes.js +0 -1
- package/dist/components/Ui/Table/index.d.ts +0 -3
- package/dist/components/Ui/Table/index.d.ts.map +0 -1
- package/dist/components/Ui/Table/index.js +0 -4
- package/dist/components/Ui/Tabs/Tabs.d.ts +0 -15
- package/dist/components/Ui/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Ui/Tabs/Tabs.js +0 -24
- package/dist/components/Ui/Tabs/Tabs.stories.d.ts +0 -9
- package/dist/components/Ui/Tabs/Tabs.stories.d.ts.map +0 -1
- package/dist/components/Ui/Tabs/Tabs.stories.js +0 -67
- package/dist/components/Ui/Tabs/index.d.ts +0 -2
- package/dist/components/Ui/Tabs/index.d.ts.map +0 -1
- package/dist/components/Ui/Tabs/index.js +0 -4
- package/dist/components/Ui/TextInput/TextInput.d.ts +0 -24
- package/dist/components/Ui/TextInput/TextInput.d.ts.map +0 -1
- package/dist/components/Ui/TextInput/TextInput.js +0 -85
- package/dist/components/Ui/TextInput/TextInput.stories.d.ts +0 -17
- package/dist/components/Ui/TextInput/TextInput.stories.d.ts.map +0 -1
- package/dist/components/Ui/TextInput/TextInput.stories.js +0 -225
- package/dist/components/Ui/TextInput/index.d.ts +0 -2
- package/dist/components/Ui/TextInput/index.d.ts.map +0 -1
- package/dist/components/Ui/TextInput/index.js +0 -4
- package/dist/components/Ui/TextareaInput/TextareaInput.d.ts +0 -18
- package/dist/components/Ui/TextareaInput/TextareaInput.d.ts.map +0 -1
- package/dist/components/Ui/TextareaInput/TextareaInput.js +0 -68
- package/dist/components/Ui/TextareaInput/TextareaInput.stories.d.ts +0 -7
- package/dist/components/Ui/TextareaInput/TextareaInput.stories.d.ts.map +0 -1
- package/dist/components/Ui/TextareaInput/TextareaInput.stories.js +0 -19
- package/dist/components/Ui/TextareaInput/index.d.ts +0 -2
- package/dist/components/Ui/TextareaInput/index.d.ts.map +0 -1
- package/dist/components/Ui/TextareaInput/index.js +0 -4
- package/dist/components/Ui/Tooltip/Tooltip.d.ts +0 -15
- package/dist/components/Ui/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Ui/Tooltip/Tooltip.js +0 -92
- package/dist/components/Ui/Tooltip/Tooltip.stories.d.ts +0 -9
- package/dist/components/Ui/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/components/Ui/Tooltip/Tooltip.stories.js +0 -92
- package/dist/components/Ui/Tooltip/index.d.ts +0 -2
- package/dist/components/Ui/Tooltip/index.d.ts.map +0 -1
- package/dist/components/Ui/Tooltip/index.js +0 -4
- package/dist/context/ToastContext/ToastContext.d.ts +0 -10
- package/dist/context/ToastContext/ToastContext.d.ts.map +0 -1
- package/dist/context/ToastContext/ToastContext.js +0 -40
- package/dist/context/ToastContext/index.d.ts +0 -2
- package/dist/context/ToastContext/index.d.ts.map +0 -1
- package/dist/context/ToastContext/index.js +0 -5
- package/dist/context/TriaflyContext/TriaflyContext.types.d.ts +0 -8
- package/dist/context/TriaflyContext/TriaflyContext.types.d.ts.map +0 -1
- package/dist/context/TriaflyContext/TriaflyContext.types.js +0 -1
- package/dist/context/TriaflyContext/TriaflyProvider.d.ts +0 -8
- package/dist/context/TriaflyContext/TriaflyProvider.d.ts.map +0 -1
- package/dist/context/TriaflyContext/TriaflyProvider.js +0 -27
- package/dist/context/TriaflyContext/hooks/index.d.ts +0 -4
- package/dist/context/TriaflyContext/hooks/index.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/index.js +0 -8
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.js +0 -4
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.d.ts +0 -9
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js +0 -11
- package/dist/context/TriaflyContext/hooks/useModal/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useModal/index.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useModal/index.js +0 -4
- package/dist/context/TriaflyContext/hooks/useModal/useModal.d.ts +0 -7
- package/dist/context/TriaflyContext/hooks/useModal/useModal.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useModal/useModal.js +0 -16
- package/dist/context/TriaflyContext/hooks/useTheme/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useTheme/index.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useTheme/index.js +0 -4
- package/dist/context/TriaflyContext/hooks/useTheme/useTheme.d.ts +0 -6
- package/dist/context/TriaflyContext/hooks/useTheme/useTheme.d.ts.map +0 -1
- package/dist/context/TriaflyContext/hooks/useTheme/useTheme.js +0 -17
- package/dist/context/TriaflyContext/index.d.ts +0 -3
- package/dist/context/TriaflyContext/index.d.ts.map +0 -1
- package/dist/context/TriaflyContext/index.js +0 -12
- package/dist/index-2QXL0WYc.js +0 -45
- package/dist/main.d.ts +0 -1206
- package/dist/main.js +0 -160
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/vite-env.d.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ReactNode } from "react";
|
2
|
-
import "./Tabs.scss";
|
3
|
-
export interface TabItem {
|
4
|
-
key: string;
|
5
|
-
label: string;
|
6
|
-
children: ReactNode;
|
7
|
-
disabled?: boolean;
|
8
|
-
}
|
9
|
-
export interface TabsProps {
|
10
|
-
items: TabItem[];
|
11
|
-
defaultActiveKey?: string;
|
12
|
-
onChange?: (activeKey: string) => void;
|
13
|
-
}
|
14
|
-
export declare const Tabs: React.FC<TabsProps>;
|
15
|
-
//# sourceMappingURL=Tabs.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAC5C,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2BpC,CAAC"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { useState as v } from "react";
|
3
|
-
import '../../../assets/Tabs.css';const f = ({ items: s, defaultActiveKey: t, onChange: d }) => {
|
4
|
-
var c, b;
|
5
|
-
const [l, i] = v(t || ((c = s[0]) == null ? void 0 : c.key)), n = (a) => {
|
6
|
-
s.some((r) => r.key === a && !r.disabled) && (i(a), d == null || d(a));
|
7
|
-
};
|
8
|
-
return /* @__PURE__ */ o("div", { className: "tabs", children: [
|
9
|
-
/* @__PURE__ */ e("div", { className: "tabs-bar", children: s.map((a) => /* @__PURE__ */ e(
|
10
|
-
"button",
|
11
|
-
{
|
12
|
-
onClick: () => !a.disabled && n(a.key),
|
13
|
-
className: `tab-button ${l === a.key ? "active" : ""} ${a.disabled ? "disabled" : ""}`,
|
14
|
-
disabled: a.disabled,
|
15
|
-
children: a.label
|
16
|
-
},
|
17
|
-
a.key
|
18
|
-
)) }),
|
19
|
-
/* @__PURE__ */ e("div", { className: "tabs-content", children: (b = s.find((a) => a.key === l)) == null ? void 0 : b.children })
|
20
|
-
] });
|
21
|
-
};
|
22
|
-
export {
|
23
|
-
f as Tabs
|
24
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
2
|
-
import { Tabs } from "./Tabs";
|
3
|
-
declare const meta: Meta<typeof Tabs>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof Tabs>;
|
6
|
-
export declare const Basic: Story;
|
7
|
-
export declare const StyledTabs: Story;
|
8
|
-
export declare const SingleTab: Story;
|
9
|
-
//# sourceMappingURL=Tabs.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAU3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,KAAK,EAAE,KAoBnB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAsBxB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC"}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
2
|
-
import { Tabs as t } from "./Tabs.js";
|
3
|
-
const n = {
|
4
|
-
title: "UIKit/Tabs",
|
5
|
-
component: t,
|
6
|
-
tags: ["autodocs"],
|
7
|
-
argTypes: {
|
8
|
-
items: {
|
9
|
-
control: "object",
|
10
|
-
description: "Массив объектов вкладок {label: string, content: ReactNode}"
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}, s = {
|
14
|
-
args: {
|
15
|
-
items: [
|
16
|
-
{
|
17
|
-
key: "profile",
|
18
|
-
label: "Профиль",
|
19
|
-
children: /* @__PURE__ */ e("div", { children: "Информация о пользователе" })
|
20
|
-
},
|
21
|
-
{
|
22
|
-
key: "settings",
|
23
|
-
label: "Настройки",
|
24
|
-
children: /* @__PURE__ */ e("div", { children: "Параметры аккаунта" })
|
25
|
-
},
|
26
|
-
{
|
27
|
-
key: "notifications",
|
28
|
-
label: "Уведомления",
|
29
|
-
children: /* @__PURE__ */ e("div", { children: "Настройки уведомлений" })
|
30
|
-
}
|
31
|
-
]
|
32
|
-
}
|
33
|
-
}, a = {
|
34
|
-
args: {
|
35
|
-
items: [
|
36
|
-
{
|
37
|
-
key: "favorites",
|
38
|
-
label: "Избранное",
|
39
|
-
children: /* @__PURE__ */ e("div", { children: "Ваши избранные элементы" })
|
40
|
-
},
|
41
|
-
{
|
42
|
-
key: "projects",
|
43
|
-
label: "Проекты",
|
44
|
-
children: /* @__PURE__ */ e("div", { children: "Список ваших проектов" })
|
45
|
-
}
|
46
|
-
]
|
47
|
-
},
|
48
|
-
decorators: [
|
49
|
-
(i) => /* @__PURE__ */ e("div", { style: { maxWidth: "500px", margin: "0 auto" }, children: /* @__PURE__ */ e(i, {}) })
|
50
|
-
]
|
51
|
-
}, c = {
|
52
|
-
args: {
|
53
|
-
items: [
|
54
|
-
{
|
55
|
-
key: "single",
|
56
|
-
label: "Единственная вкладка",
|
57
|
-
children: /* @__PURE__ */ e("div", { children: "Контент единственной вкладки" })
|
58
|
-
}
|
59
|
-
]
|
60
|
-
}
|
61
|
-
};
|
62
|
-
export {
|
63
|
-
s as Basic,
|
64
|
-
c as SingleTab,
|
65
|
-
a as StyledTabs,
|
66
|
-
n as default
|
67
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Tabs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import "./TextInput.scss";
|
3
|
-
type TextInputProps = {
|
4
|
-
label?: string;
|
5
|
-
className?: string;
|
6
|
-
placeholder?: string;
|
7
|
-
value?: string;
|
8
|
-
type?: string;
|
9
|
-
name?: string;
|
10
|
-
id?: string;
|
11
|
-
isDisabled?: boolean;
|
12
|
-
iconType?: "checkmark" | "search" | "password" | "email";
|
13
|
-
errorMessage?: string;
|
14
|
-
hasError?: boolean;
|
15
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
16
|
-
isClearable?: boolean;
|
17
|
-
isLoading?: boolean;
|
18
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
19
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
20
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
21
|
-
};
|
22
|
-
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
23
|
-
export {};
|
24
|
-
//# sourceMappingURL=TextInput.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,kBAAkB,CAAC;AAI1B,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACzD,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACpD,CAAC;AAEF,eAAO,MAAM,SAAS,yFAyGrB,CAAC"}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
import { jsxs as m, jsx as e, Fragment as b } from "react/jsx-runtime";
|
2
|
-
import { forwardRef as g, useState as A } from "react";
|
3
|
-
import { IconX as F, IconCheck as R, IconSearch as T, IconLock as X, IconAt as q } from "../Icons/Icons.js";
|
4
|
-
import { Loader as B } from "../Loader/Loader.js";
|
5
|
-
import '../../../assets/TextInput.css';const D = g(
|
6
|
-
({
|
7
|
-
label: t,
|
8
|
-
placeholder: h = "",
|
9
|
-
value: n,
|
10
|
-
// Значение из пропсов
|
11
|
-
type: f = "text",
|
12
|
-
name: I = "TextInput",
|
13
|
-
id: v,
|
14
|
-
isDisabled: x = !1,
|
15
|
-
iconType: c,
|
16
|
-
errorMessage: l = !1,
|
17
|
-
hasError: N = !1,
|
18
|
-
onChange: a,
|
19
|
-
// Обработчик из пропсов
|
20
|
-
className: p,
|
21
|
-
isClearable: r,
|
22
|
-
isLoading: i,
|
23
|
-
onFocus: k,
|
24
|
-
onKeyDown: z,
|
25
|
-
onBlur: $
|
26
|
-
}, w) => {
|
27
|
-
const [C, o] = A(""), s = n !== void 0, u = s ? n : C, j = (d) => {
|
28
|
-
const V = d.target.value;
|
29
|
-
s || o(V), a && a(d);
|
30
|
-
}, L = () => {
|
31
|
-
s && a ? a({ target: { value: "" } }) : o("");
|
32
|
-
}, S = () => {
|
33
|
-
switch (c) {
|
34
|
-
case "email":
|
35
|
-
return /* @__PURE__ */ e(q, { className: "icon", size: 20 });
|
36
|
-
case "password":
|
37
|
-
return /* @__PURE__ */ e(X, { className: "icon", size: 20 });
|
38
|
-
case "search":
|
39
|
-
return /* @__PURE__ */ e(T, { className: "icon", size: 20 });
|
40
|
-
case "checkmark":
|
41
|
-
return /* @__PURE__ */ e(R, { className: "icon", size: 20 });
|
42
|
-
default:
|
43
|
-
return /* @__PURE__ */ e(b, {});
|
44
|
-
}
|
45
|
-
};
|
46
|
-
return /* @__PURE__ */ m(
|
47
|
-
"div",
|
48
|
-
{
|
49
|
-
className: `text-input
|
50
|
-
${p}
|
51
|
-
${N && "invalid"}
|
52
|
-
${r && "clearable"}`,
|
53
|
-
children: [
|
54
|
-
t && /* @__PURE__ */ e("label", { children: t }),
|
55
|
-
/* @__PURE__ */ m("div", { className: `input-container ${c ? `has-icon icon-${c}` : ""}`, children: [
|
56
|
-
/* @__PURE__ */ e(
|
57
|
-
"input",
|
58
|
-
{
|
59
|
-
onBlur: $,
|
60
|
-
type: f,
|
61
|
-
value: u,
|
62
|
-
onChange: j,
|
63
|
-
placeholder: h,
|
64
|
-
name: I,
|
65
|
-
id: v,
|
66
|
-
disabled: x,
|
67
|
-
ref: w,
|
68
|
-
onFocus: k,
|
69
|
-
onKeyDown: z
|
70
|
-
}
|
71
|
-
),
|
72
|
-
S(),
|
73
|
-
r && u && !i && /* @__PURE__ */ e("div", { className: "clear-value", onClick: L, children: /* @__PURE__ */ e(F, { size: 20 }) }),
|
74
|
-
i && /* @__PURE__ */ e(B, {})
|
75
|
-
] }),
|
76
|
-
l && /* @__PURE__ */ e("span", { className: "helper-text", children: l })
|
77
|
-
]
|
78
|
-
}
|
79
|
-
);
|
80
|
-
}
|
81
|
-
);
|
82
|
-
D.displayName = "TextInput";
|
83
|
-
export {
|
84
|
-
D as TextInput
|
85
|
-
};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
2
|
-
import { TextInput } from "./TextInput";
|
3
|
-
declare const meta: Meta<typeof TextInput>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof TextInput>;
|
6
|
-
export declare const Default: Story;
|
7
|
-
export declare const WithIcon: Story;
|
8
|
-
export declare const WithError: Story;
|
9
|
-
export declare const Disabled: Story;
|
10
|
-
export declare const Clearable: Story;
|
11
|
-
export declare const Loading: Story;
|
12
|
-
export declare const SmallSize: Story;
|
13
|
-
export declare const SmallRounded: Story;
|
14
|
-
export declare const AllStates: Story;
|
15
|
-
export declare const SizeComparison: Story;
|
16
|
-
export declare const InteractiveDemo: Story;
|
17
|
-
//# sourceMappingURL=TextInput.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextInput/TextInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAwBhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAGxC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAqCvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAoB5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA4E7B,CAAC"}
|
@@ -1,225 +0,0 @@
|
|
1
|
-
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { useState as t } from "react";
|
3
|
-
import { TextInput as l } from "./TextInput.js";
|
4
|
-
const y = {
|
5
|
-
title: "UIKit/TextInput",
|
6
|
-
component: l,
|
7
|
-
tags: ["autodocs"],
|
8
|
-
argTypes: {
|
9
|
-
iconType: {
|
10
|
-
control: {
|
11
|
-
type: "select",
|
12
|
-
options: [void 0, "email", "password", "search", "checkmark"]
|
13
|
-
}
|
14
|
-
},
|
15
|
-
type: {
|
16
|
-
control: {
|
17
|
-
type: "select",
|
18
|
-
options: ["text", "password", "email", "search"]
|
19
|
-
}
|
20
|
-
},
|
21
|
-
className: {
|
22
|
-
control: {
|
23
|
-
type: "text",
|
24
|
-
description: "Комбинируйте классы: 'sm', 'rounded' через пробел"
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}, f = {
|
29
|
-
args: {
|
30
|
-
placeholder: "Введите текст...",
|
31
|
-
label: "Текстовое поле"
|
32
|
-
}
|
33
|
-
}, v = {
|
34
|
-
args: {
|
35
|
-
placeholder: "Поиск...",
|
36
|
-
iconType: "search"
|
37
|
-
}
|
38
|
-
}, N = {
|
39
|
-
args: {
|
40
|
-
label: "Email",
|
41
|
-
placeholder: "Введите email",
|
42
|
-
hasError: !0,
|
43
|
-
errorMessage: "Неверный формат email",
|
44
|
-
iconType: "email"
|
45
|
-
}
|
46
|
-
}, k = {
|
47
|
-
args: {
|
48
|
-
label: "Заблокированное поле",
|
49
|
-
value: "Нельзя изменить",
|
50
|
-
isDisabled: !0
|
51
|
-
}
|
52
|
-
}, C = {
|
53
|
-
args: {
|
54
|
-
label: "Поле с очисткой",
|
55
|
-
placeholder: "Введите и очистите",
|
56
|
-
isClearable: !0,
|
57
|
-
value: "Пример текста"
|
58
|
-
}
|
59
|
-
}, T = {
|
60
|
-
args: {
|
61
|
-
label: "Поле с загрузкой",
|
62
|
-
isLoading: !0
|
63
|
-
}
|
64
|
-
}, I = {
|
65
|
-
args: {
|
66
|
-
placeholder: "Маленькое поле...",
|
67
|
-
label: "Текстовое поле (sm)",
|
68
|
-
className: "sm"
|
69
|
-
}
|
70
|
-
}, D = {
|
71
|
-
args: {
|
72
|
-
placeholder: "Маленькое и круглое...",
|
73
|
-
label: "Поле (sm + rounded)",
|
74
|
-
className: "sm rounded"
|
75
|
-
}
|
76
|
-
}, S = {
|
77
|
-
render: () => /* @__PURE__ */ a("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "24px" }, children: [
|
78
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
79
|
-
/* @__PURE__ */ e("h3", { children: "Обычный размер (44px)" }),
|
80
|
-
/* @__PURE__ */ e(l, { label: "Обычное поле", placeholder: "Просто текст" }),
|
81
|
-
/* @__PURE__ */ e(l, { label: "С иконкой", iconType: "email", placeholder: "email@example.com" }),
|
82
|
-
/* @__PURE__ */ e(
|
83
|
-
l,
|
84
|
-
{
|
85
|
-
label: "С ошибкой",
|
86
|
-
hasError: !0,
|
87
|
-
errorMessage: "Ошибка валидации",
|
88
|
-
value: "Неверное значение"
|
89
|
-
}
|
90
|
-
),
|
91
|
-
/* @__PURE__ */ e(l, { label: "С очисткой", isClearable: !0, value: "Можно очистить" }),
|
92
|
-
/* @__PURE__ */ e(l, { label: "Загрузка", isLoading: !0 }),
|
93
|
-
/* @__PURE__ */ e(l, { label: "Закругленное", className: "rounded", placeholder: "rounded" })
|
94
|
-
] }),
|
95
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
|
96
|
-
/* @__PURE__ */ e("h3", { children: "Маленький размер (36px)" }),
|
97
|
-
/* @__PURE__ */ e(l, { label: "Поле sm", className: "sm", placeholder: "Маленькое поле" }),
|
98
|
-
/* @__PURE__ */ e(l, { label: "С иконкой", className: "sm", iconType: "search", placeholder: "Поиск..." }),
|
99
|
-
/* @__PURE__ */ e(
|
100
|
-
l,
|
101
|
-
{
|
102
|
-
label: "С ошибкой",
|
103
|
-
className: "sm",
|
104
|
-
hasError: !0,
|
105
|
-
errorMessage: "Маленькая ошибка",
|
106
|
-
value: "Ошибка"
|
107
|
-
}
|
108
|
-
),
|
109
|
-
/* @__PURE__ */ e(l, { label: "С очисткой", className: "sm", isClearable: !0, value: "Можно очистить" }),
|
110
|
-
/* @__PURE__ */ e(l, { label: "Загрузка", className: "sm", isLoading: !0 }),
|
111
|
-
/* @__PURE__ */ e(l, { label: "Закругленное sm", className: "sm rounded", placeholder: "sm + rounded" })
|
112
|
-
] })
|
113
|
-
] })
|
114
|
-
}, E = {
|
115
|
-
render: () => /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", gap: "8px", maxWidth: "400px" }, children: [
|
116
|
-
/* @__PURE__ */ e(l, { label: "Обычный размер (44px)", value: "Текст" }),
|
117
|
-
/* @__PURE__ */ e(l, { label: "Маленький (36px)", className: "sm", value: "Текст" }),
|
118
|
-
/* @__PURE__ */ e(l, { label: "Обычный + rounded", className: "rounded", value: "Текст" }),
|
119
|
-
/* @__PURE__ */ e(l, { label: "Маленький + rounded", className: "sm rounded", value: "Текст" }),
|
120
|
-
/* @__PURE__ */ e("div", { style: { marginTop: "16px", height: "1px", background: "#eee" } }),
|
121
|
-
/* @__PURE__ */ e(
|
122
|
-
l,
|
123
|
-
{
|
124
|
-
label: "Комбинированный пример",
|
125
|
-
className: "sm rounded",
|
126
|
-
iconType: "password",
|
127
|
-
type: "password",
|
128
|
-
isClearable: !0,
|
129
|
-
value: "password123"
|
130
|
-
}
|
131
|
-
)
|
132
|
-
] })
|
133
|
-
}, w = {
|
134
|
-
render: function() {
|
135
|
-
const [i, p] = t(""), [r, m] = t(!1), [c, h] = t(!1), [o, n] = t(!1), d = [r ? "sm" : "", c ? "rounded" : ""].filter(Boolean).join(" ") || void 0;
|
136
|
-
return /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: [
|
137
|
-
/* @__PURE__ */ e(
|
138
|
-
l,
|
139
|
-
{
|
140
|
-
label: "Интерактивная демонстрация",
|
141
|
-
placeholder: "Попробуйте ввести текст",
|
142
|
-
value: i,
|
143
|
-
onChange: (s) => {
|
144
|
-
p(s.target.value), n(s.target.value.length > 0 && s.target.value.length < 3);
|
145
|
-
},
|
146
|
-
className: d,
|
147
|
-
hasError: o,
|
148
|
-
errorMessage: o ? "Слишком короткое значение" : "",
|
149
|
-
isClearable: !0,
|
150
|
-
iconType: "search"
|
151
|
-
}
|
152
|
-
),
|
153
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", flexWrap: "wrap", gap: "16px" }, children: [
|
154
|
-
/* @__PURE__ */ a("label", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
155
|
-
/* @__PURE__ */ e(
|
156
|
-
"input",
|
157
|
-
{
|
158
|
-
type: "checkbox",
|
159
|
-
checked: r,
|
160
|
-
onChange: (s) => m(s.target.checked)
|
161
|
-
}
|
162
|
-
),
|
163
|
-
"Маленький размер (sm)"
|
164
|
-
] }),
|
165
|
-
/* @__PURE__ */ a("label", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
166
|
-
/* @__PURE__ */ e(
|
167
|
-
"input",
|
168
|
-
{
|
169
|
-
type: "checkbox",
|
170
|
-
checked: c,
|
171
|
-
onChange: (s) => h(s.target.checked)
|
172
|
-
}
|
173
|
-
),
|
174
|
-
"Закругленные углы"
|
175
|
-
] }),
|
176
|
-
/* @__PURE__ */ a("label", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
177
|
-
/* @__PURE__ */ e(
|
178
|
-
"input",
|
179
|
-
{
|
180
|
-
type: "checkbox",
|
181
|
-
checked: o,
|
182
|
-
onChange: (s) => n(s.target.checked)
|
183
|
-
}
|
184
|
-
),
|
185
|
-
"Показать ошибку"
|
186
|
-
] })
|
187
|
-
] }),
|
188
|
-
/* @__PURE__ */ a("div", { style: { background: "#f5f5f5", padding: "12px", borderRadius: "4px" }, children: [
|
189
|
-
/* @__PURE__ */ e("h4", { children: "Текущие параметры:" }),
|
190
|
-
/* @__PURE__ */ a("ul", { children: [
|
191
|
-
/* @__PURE__ */ a("li", { children: [
|
192
|
-
"Классы: ",
|
193
|
-
/* @__PURE__ */ e("strong", { children: d || "default" })
|
194
|
-
] }),
|
195
|
-
/* @__PURE__ */ a("li", { children: [
|
196
|
-
"Высота: ",
|
197
|
-
/* @__PURE__ */ e("strong", { children: r ? "36px" : "44px" })
|
198
|
-
] }),
|
199
|
-
c && /* @__PURE__ */ a("li", { children: [
|
200
|
-
"Радиус: ",
|
201
|
-
/* @__PURE__ */ e("strong", { children: r ? "18px" : "22px" })
|
202
|
-
] }),
|
203
|
-
/* @__PURE__ */ a("li", { children: [
|
204
|
-
"Состояние: ",
|
205
|
-
o ? "❌ Ошибка" : "✅ Нормальное"
|
206
|
-
] })
|
207
|
-
] })
|
208
|
-
] })
|
209
|
-
] });
|
210
|
-
}
|
211
|
-
};
|
212
|
-
export {
|
213
|
-
S as AllStates,
|
214
|
-
C as Clearable,
|
215
|
-
f as Default,
|
216
|
-
k as Disabled,
|
217
|
-
w as InteractiveDemo,
|
218
|
-
T as Loading,
|
219
|
-
E as SizeComparison,
|
220
|
-
D as SmallRounded,
|
221
|
-
I as SmallSize,
|
222
|
-
N as WithError,
|
223
|
-
v as WithIcon,
|
224
|
-
y as default
|
225
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import "./TextareaInput.scss";
|
2
|
-
type TextareaInputProps = {
|
3
|
-
label?: string;
|
4
|
-
name?: string;
|
5
|
-
placeholder?: string;
|
6
|
-
errorMessage?: string;
|
7
|
-
hasError?: boolean;
|
8
|
-
isDisabled?: boolean;
|
9
|
-
charLimit?: number;
|
10
|
-
onChange?: (value: string) => void;
|
11
|
-
value?: string;
|
12
|
-
resize?: boolean;
|
13
|
-
isClearable?: boolean;
|
14
|
-
spellCheck?: boolean;
|
15
|
-
};
|
16
|
-
export declare const TextareaInput: import("react").ForwardRefExoticComponent<TextareaInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
17
|
-
export default TextareaInput;
|
18
|
-
//# sourceMappingURL=TextareaInput.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextareaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextareaInput/TextareaInput.tsx"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,CAAC;AAI9B,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,oHA2FzB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { forwardRef as C, useState as V } from "react";
|
3
|
-
import { c as $ } from "../../../index-2QXL0WYc.js";
|
4
|
-
import { IconX as b } from "../Icons/Icons.js";
|
5
|
-
import '../../../assets/TextareaInput.css';const g = C(
|
6
|
-
({
|
7
|
-
label: c,
|
8
|
-
name: f = "TextareaInput",
|
9
|
-
placeholder: p,
|
10
|
-
errorMessage: i,
|
11
|
-
hasError: u = !1,
|
12
|
-
isDisabled: x,
|
13
|
-
charLimit: a,
|
14
|
-
onChange: l,
|
15
|
-
value: o,
|
16
|
-
// Значение из пропсов
|
17
|
-
resize: v = !1,
|
18
|
-
isClearable: d,
|
19
|
-
spellCheck: N = !1
|
20
|
-
}, h) => {
|
21
|
-
const [I, m] = V(""), s = o !== void 0, t = s ? o : I, w = (z) => {
|
22
|
-
const n = z.target.value;
|
23
|
-
(!a || n.length <= a) && (s || m(n), l && l(n));
|
24
|
-
}, T = () => {
|
25
|
-
s && l ? l("") : m("");
|
26
|
-
}, j = $({
|
27
|
-
"no-resize": !v
|
28
|
-
});
|
29
|
-
return /* @__PURE__ */ r(
|
30
|
-
"div",
|
31
|
-
{
|
32
|
-
className: `textarea-input
|
33
|
-
${u && "invalid"}
|
34
|
-
${d && "clearable"}`,
|
35
|
-
children: [
|
36
|
-
c && /* @__PURE__ */ e("label", { children: c }),
|
37
|
-
/* @__PURE__ */ r("div", { className: "textarea-wrapper", children: [
|
38
|
-
/* @__PURE__ */ e(
|
39
|
-
"textarea",
|
40
|
-
{
|
41
|
-
ref: h,
|
42
|
-
className: j,
|
43
|
-
value: t,
|
44
|
-
onChange: w,
|
45
|
-
name: f,
|
46
|
-
placeholder: p,
|
47
|
-
disabled: x,
|
48
|
-
spellCheck: N
|
49
|
-
}
|
50
|
-
),
|
51
|
-
d && t && /* @__PURE__ */ e("div", { className: "clear-value", onClick: T, children: /* @__PURE__ */ e(b, { size: 20 }) })
|
52
|
-
] }),
|
53
|
-
a && /* @__PURE__ */ r("p", { className: "char-limit", children: [
|
54
|
-
t.length,
|
55
|
-
"/",
|
56
|
-
a
|
57
|
-
] }),
|
58
|
-
i && /* @__PURE__ */ e("span", { className: "helper-text", children: i })
|
59
|
-
]
|
60
|
-
}
|
61
|
-
);
|
62
|
-
}
|
63
|
-
);
|
64
|
-
g.displayName = "TextareaInput";
|
65
|
-
export {
|
66
|
-
g as TextareaInput,
|
67
|
-
g as default
|
68
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
2
|
-
import { TextareaInput } from "./TextareaInput";
|
3
|
-
declare const meta: Meta<typeof TextareaInput>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof TextareaInput>;
|
6
|
-
export declare const Default: Story;
|
7
|
-
//# sourceMappingURL=TextareaInput.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextareaInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextareaInput/TextareaInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAGpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAM5C,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
2
|
-
import { TextareaInput as e } from "./TextareaInput.js";
|
3
|
-
const l = {
|
4
|
-
title: "UIKit/TextareaInput",
|
5
|
-
component: e
|
6
|
-
}, r = {
|
7
|
-
render: (t) => /* @__PURE__ */ a(e, { ...t })
|
8
|
-
}, m = {
|
9
|
-
...r,
|
10
|
-
args: {
|
11
|
-
label: "Введите текст:",
|
12
|
-
name: "textarea",
|
13
|
-
placeholder: "Ваш текст"
|
14
|
-
}
|
15
|
-
};
|
16
|
-
export {
|
17
|
-
m as Default,
|
18
|
-
l as default
|
19
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/TextareaInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|