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,120 +0,0 @@
|
|
1
|
-
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { useState as p } from "react";
|
3
|
-
import { Checkbox as i } from "./Checkbox.js";
|
4
|
-
const k = {
|
5
|
-
title: "UIKit/Checkbox",
|
6
|
-
component: i,
|
7
|
-
tags: ["autodocs"],
|
8
|
-
argTypes: {
|
9
|
-
isChecked: {
|
10
|
-
control: "boolean",
|
11
|
-
description: "Состояние чекбокса (выбран/не выбран)"
|
12
|
-
},
|
13
|
-
isDisabled: {
|
14
|
-
control: "boolean",
|
15
|
-
description: "Отключен ли чекбокс"
|
16
|
-
},
|
17
|
-
label: {
|
18
|
-
control: "text",
|
19
|
-
description: "Текстовая метка чекбокса"
|
20
|
-
},
|
21
|
-
name: {
|
22
|
-
control: "text",
|
23
|
-
description: "Атрибут name для input элемента"
|
24
|
-
},
|
25
|
-
onChange: {
|
26
|
-
action: "changed",
|
27
|
-
description: "Обработчик изменения состояния"
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}, g = {
|
31
|
-
args: {
|
32
|
-
label: "Чекбокс"
|
33
|
-
}
|
34
|
-
}, C = {
|
35
|
-
args: {
|
36
|
-
label: "Выбранный чекбокс",
|
37
|
-
isChecked: !0
|
38
|
-
}
|
39
|
-
}, f = {
|
40
|
-
args: {
|
41
|
-
label: "Отключенный чекбокс",
|
42
|
-
isDisabled: !0
|
43
|
-
}
|
44
|
-
}, D = {
|
45
|
-
args: {
|
46
|
-
label: "Выбранный и отключенный",
|
47
|
-
isChecked: !0,
|
48
|
-
isDisabled: !0
|
49
|
-
}
|
50
|
-
}, y = {
|
51
|
-
args: {}
|
52
|
-
}, I = {
|
53
|
-
args: {
|
54
|
-
label: "Неопределённое состояние",
|
55
|
-
isIndeterminate: !0
|
56
|
-
}
|
57
|
-
}, v = {
|
58
|
-
args: {
|
59
|
-
label: "Неопределённое и отключенное",
|
60
|
-
isIndeterminate: !0,
|
61
|
-
isDisabled: !0
|
62
|
-
}
|
63
|
-
}, b = () => {
|
64
|
-
const [a, c] = p([
|
65
|
-
{ id: 1, checked: !1 },
|
66
|
-
{ id: 2, checked: !0 },
|
67
|
-
{ id: 3, checked: !1 }
|
68
|
-
]), d = a.every((t) => t.checked), r = a.some((t) => t.checked);
|
69
|
-
let n = !1;
|
70
|
-
d ? n = !0 : r && (n = "indeterminate");
|
71
|
-
const o = () => {
|
72
|
-
const t = !d;
|
73
|
-
c(a.map((l) => ({ ...l, checked: t })));
|
74
|
-
}, h = (t) => {
|
75
|
-
c(a.map((l) => l.id === t ? { ...l, checked: !l.checked } : l));
|
76
|
-
};
|
77
|
-
return /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
78
|
-
/* @__PURE__ */ e(
|
79
|
-
i,
|
80
|
-
{
|
81
|
-
label: "Выбрать все",
|
82
|
-
isChecked: n === !0,
|
83
|
-
isIndeterminate: n === "indeterminate",
|
84
|
-
onChange: o
|
85
|
-
}
|
86
|
-
),
|
87
|
-
/* @__PURE__ */ e("div", { style: { marginLeft: "24px", display: "flex", flexDirection: "column", gap: "8px" }, children: a.map((t) => /* @__PURE__ */ e(
|
88
|
-
i,
|
89
|
-
{
|
90
|
-
label: `Элемент ${t.id}`,
|
91
|
-
isChecked: t.checked,
|
92
|
-
onChange: () => h(t.id)
|
93
|
-
},
|
94
|
-
t.id
|
95
|
-
)) })
|
96
|
-
] });
|
97
|
-
}, S = () => /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", gap: "12px" }, children: [
|
98
|
-
/* @__PURE__ */ e(i, { label: "Обычный чекбокс" }),
|
99
|
-
/* @__PURE__ */ e(i, { label: "Выбранный чекбокс", isChecked: !0 }),
|
100
|
-
/* @__PURE__ */ e(i, { label: "Отключенный чекбокс", isDisabled: !0 }),
|
101
|
-
/* @__PURE__ */ e(i, { label: "Выбранный и отключенный", isChecked: !0, isDisabled: !0 }),
|
102
|
-
/* @__PURE__ */ e(i, { label: "Неопределённое состояние", isIndeterminate: !0 }),
|
103
|
-
/* @__PURE__ */ e(i, { label: "Неопределённое и отключенное", isIndeterminate: !0, isDisabled: !0 }),
|
104
|
-
/* @__PURE__ */ e(i, {})
|
105
|
-
] }), P = () => /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: /* @__PURE__ */ s("div", { children: [
|
106
|
-
/* @__PURE__ */ e("h1", { style: { fontSize: "24px", marginBottom: "24px" }, children: "Эмуляция родительского чекбокса с дочерними" }),
|
107
|
-
/* @__PURE__ */ e(b, {})
|
108
|
-
] }) });
|
109
|
-
export {
|
110
|
-
C as Checked,
|
111
|
-
D as CheckedDisabled,
|
112
|
-
g as Default,
|
113
|
-
f as Disabled,
|
114
|
-
I as Indeterminate,
|
115
|
-
v as IndeterminateDisabled,
|
116
|
-
P as InteractivePlayground,
|
117
|
-
S as States,
|
118
|
-
y as WithoutLabel,
|
119
|
-
k as default
|
120
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import "./CliTextareaInput.scss";
|
2
|
-
import type { EditorFormat, HistoryItem } from "./utils/types";
|
3
|
-
type CliTextareaInputProps = {
|
4
|
-
name?: string;
|
5
|
-
spellCheck?: boolean;
|
6
|
-
isDisabled?: boolean;
|
7
|
-
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>, element?: HistoryItem) => void;
|
8
|
-
onSubmit?: (text: string) => Promise<void>;
|
9
|
-
onError?: (error: Error) => void;
|
10
|
-
history?: HistoryItem[];
|
11
|
-
value?: string;
|
12
|
-
resize?: boolean;
|
13
|
-
format: EditorFormat;
|
14
|
-
numberColl?: boolean;
|
15
|
-
showPrompt?: boolean;
|
16
|
-
};
|
17
|
-
export declare const CliTextareaInput: import("react").ForwardRefExoticComponent<CliTextareaInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
18
|
-
export {};
|
19
|
-
//# sourceMappingURL=CliTextareaInput.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CliTextareaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/CliTextareaInput/CliTextareaInput.tsx"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAC;AAWjC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE/D,KAAK,qBAAqB,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IACtF,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,gBAAgB,uHAwJ5B,CAAC"}
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
2
|
-
import { forwardRef as A, useState as C, useRef as d, useCallback as g, useEffect as p } from "react";
|
3
|
-
import { c as F } from "../../../index-2QXL0WYc.js";
|
4
|
-
import { highlightSyntax as $ } from "./utils/highlightSyntax/highlightSyntax.js";
|
5
|
-
import { useHistoryNavigation as q } from "./utils/hooks/useHistoryNavigation/useHistoryNavigation.js";
|
6
|
-
import { useTextCoursore as B } from "./utils/hooks/useTextCoursore/useTextCoursore.js";
|
7
|
-
import { useLineNumbers as G } from "./utils/hooks/useLineNumbers/useLineNumbers.js";
|
8
|
-
import { useScrollSync as J } from "./utils/hooks/useScrollSync/useScrollSync.js";
|
9
|
-
import { useTextActions as O } from "./utils/hooks/useTextActions/useTextActions.js";
|
10
|
-
import { useKeyHandlers as Q } from "./utils/hooks/useKeyHandlers/useKeyHandlers.js";
|
11
|
-
import '../../../assets/CliTextareaInput.css';const W = A(
|
12
|
-
({
|
13
|
-
name: c,
|
14
|
-
spellCheck: T = !1,
|
15
|
-
isDisabled: b = !1,
|
16
|
-
onChange: s,
|
17
|
-
value: o,
|
18
|
-
resize: H = !1,
|
19
|
-
format: i,
|
20
|
-
onSubmit: L,
|
21
|
-
onError: R,
|
22
|
-
history: I,
|
23
|
-
numberColl: K = !1,
|
24
|
-
showPrompt: u = !1
|
25
|
-
}, l) => {
|
26
|
-
const [a, m] = C(o), r = d(null), S = d(null), N = d(null);
|
27
|
-
J(r, S, N, a);
|
28
|
-
const { saveSelectionCoursore: h, restoreSelectionCoursore: v } = B(r), { visibleLines: M } = G(r, a), f = g(
|
29
|
-
(e) => {
|
30
|
-
const { selectionStart: t, selectionEnd: z, value: x } = e.target;
|
31
|
-
h({ start: t, end: z }), m(x), s == null || s(
|
32
|
-
{
|
33
|
-
target: { value: x }
|
34
|
-
},
|
35
|
-
void 0
|
36
|
-
);
|
37
|
-
},
|
38
|
-
[s, c, h]
|
39
|
-
), j = g(
|
40
|
-
(e, t) => {
|
41
|
-
m(e), s == null || s(
|
42
|
-
{
|
43
|
-
target: { value: e }
|
44
|
-
},
|
45
|
-
t
|
46
|
-
);
|
47
|
-
},
|
48
|
-
[s, c]
|
49
|
-
), { handleFormat: w, handleSubmit: D } = O({
|
50
|
-
value: o,
|
51
|
-
format: i,
|
52
|
-
onChange: f,
|
53
|
-
onSubmit: L,
|
54
|
-
onError: R
|
55
|
-
}), { navigate: E } = q(I, i, j), U = Q({
|
56
|
-
navigate: E,
|
57
|
-
handleFormat: w,
|
58
|
-
handleSubmit: D,
|
59
|
-
onChange: f,
|
60
|
-
localValue: a,
|
61
|
-
showPrompt: u
|
62
|
-
});
|
63
|
-
p(() => {
|
64
|
-
m(o), v();
|
65
|
-
}, [o, v]), p(() => {
|
66
|
-
const e = r.current;
|
67
|
-
e && e.selectionStart < 3 && e.setSelectionRange(3, 3);
|
68
|
-
}, [a]), p(() => {
|
69
|
-
typeof l == "function" ? l(r.current) : l && (l.current = r.current);
|
70
|
-
}, [l]);
|
71
|
-
const V = F({
|
72
|
-
"no-resize": !H
|
73
|
-
}), _ = (e) => {
|
74
|
-
if (u) {
|
75
|
-
const t = e.currentTarget;
|
76
|
-
setTimeout(() => {
|
77
|
-
t.selectionStart < 4 && t.setSelectionRange(4, 4);
|
78
|
-
}, 0);
|
79
|
-
}
|
80
|
-
}, k = (e) => {
|
81
|
-
if (u) {
|
82
|
-
const t = e.currentTarget;
|
83
|
-
t.selectionStart < 4 && t.setSelectionRange(4, 4);
|
84
|
-
}
|
85
|
-
};
|
86
|
-
return /* @__PURE__ */ y("div", { className: "cli-textarea-input", children: [
|
87
|
-
K && /* @__PURE__ */ n("div", { ref: N, className: "line-numbers", children: M.map((e) => /* @__PURE__ */ n("div", { className: "line-number", "data-line": e, children: e }, e)) }),
|
88
|
-
/* @__PURE__ */ y("div", { className: "input-with-highlight", children: [
|
89
|
-
/* @__PURE__ */ n(
|
90
|
-
"textarea",
|
91
|
-
{
|
92
|
-
onMouseUp: _,
|
93
|
-
onSelect: k,
|
94
|
-
ref: r,
|
95
|
-
className: V,
|
96
|
-
value: a,
|
97
|
-
onKeyDown: U,
|
98
|
-
onChange: f,
|
99
|
-
name: c,
|
100
|
-
disabled: b,
|
101
|
-
spellCheck: T
|
102
|
-
}
|
103
|
-
),
|
104
|
-
/* @__PURE__ */ n(
|
105
|
-
"pre",
|
106
|
-
{
|
107
|
-
ref: S,
|
108
|
-
className: `formatted-content ${i}`,
|
109
|
-
dangerouslySetInnerHTML: {
|
110
|
-
__html: $(a || "", i) || " "
|
111
|
-
}
|
112
|
-
}
|
113
|
-
)
|
114
|
-
] })
|
115
|
-
] });
|
116
|
-
}
|
117
|
-
);
|
118
|
-
W.displayName = "CliTextareaInput";
|
119
|
-
export {
|
120
|
-
W as CliTextareaInput
|
121
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/CliTextareaInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { CliTextareaInput as e } from "./CliTextareaInput.js";
|
2
|
-
import { highlightSyntax as s } from "./utils/highlightSyntax/highlightSyntax.js";
|
3
|
-
import { processJson as m } from "./utils/processJson/processJson.js";
|
4
|
-
import { useFixFormat as f } from "./utils/hooks/useFixFormat/useFixFormat.js";
|
5
|
-
import { useHistoryNavigation as i } from "./utils/hooks/useHistoryNavigation/useHistoryNavigation.js";
|
6
|
-
import { useTextCoursore as a } from "./utils/hooks/useTextCoursore/useTextCoursore.js";
|
7
|
-
import { LINE_HEIGHT as c, useLineNumbers as y } from "./utils/hooks/useLineNumbers/useLineNumbers.js";
|
8
|
-
import { useScrollSync as T } from "./utils/hooks/useScrollSync/useScrollSync.js";
|
9
|
-
import { useTextActions as h } from "./utils/hooks/useTextActions/useTextActions.js";
|
10
|
-
import { useKeyHandlers as N } from "./utils/hooks/useKeyHandlers/useKeyHandlers.js";
|
11
|
-
export {
|
12
|
-
e as CliTextareaInput,
|
13
|
-
c as LINE_HEIGHT,
|
14
|
-
s as highlightSyntax,
|
15
|
-
m as processJson,
|
16
|
-
f as useFixFormat,
|
17
|
-
i as useHistoryNavigation,
|
18
|
-
N as useKeyHandlers,
|
19
|
-
y as useLineNumbers,
|
20
|
-
T as useScrollSync,
|
21
|
-
h as useTextActions,
|
22
|
-
a as useTextCoursore
|
23
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"escapeHtml.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MACuD,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fixJson.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Ui/CliTextareaInput/utils/fixJson/fixJson.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,WAAW,MAAM,KAAG,MAsC3C,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
const $ = (l) => {
|
2
|
-
let e = l.replace(/([{,]\s*)([a-zA-Z_][a-zA-Z0-9_]*)(\s*:)/g, '$1"$2"$3').replace(/([}\]"0-9truefalsenull])\s*(\n\s*["{])/g, "$1,$2").replace(/,\s*\]\s*$/g, "").replace(/\s*\/\*.*\*\/\s*/g, "").replace(/,(\s*[}\]])/g, "$1").replace(
|
3
|
-
/(['"])?([a-zA-Z_][a-zA-Z0-9_]*)(['"])?\s*:/g,
|
4
|
-
(r, c, t) => `${r || '"'}${c}${t || '"'}:`
|
5
|
-
).replace(/([0-9truefalsenull}])\s*(\s*\[)/g, "$1,$2").replace(/(['"])([a-zA-Z_][a-zA-Z0-9_]*)(['"])?\s*:/g, '"$2":');
|
6
|
-
const a = (e.match(/{/g) || []).length, s = (e.match(/}/g) || []).length;
|
7
|
-
return a > s && (e += `
|
8
|
-
`.repeat(a - s) + "}".repeat(a - s)), e;
|
9
|
-
};
|
10
|
-
export {
|
11
|
-
$ as fixJson
|
12
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"highlightSyntax.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5D,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,MAAM,YAAY,KAAG,MAalE,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { escapeHtml as s } from "../escapeHtml/escapeHtml.js";
|
2
|
-
import { processJson as m } from "../processJson/processJson.js";
|
3
|
-
import { processXml as e } from "../processXml/processXml.js";
|
4
|
-
import { processYml as o } from "../processYml/processYml.js";
|
5
|
-
const a = (r, t) => {
|
6
|
-
if (t === "plain") return r;
|
7
|
-
switch (t) {
|
8
|
-
case "json":
|
9
|
-
return m(r);
|
10
|
-
case "yml":
|
11
|
-
return o(r);
|
12
|
-
case "xml":
|
13
|
-
return e(r);
|
14
|
-
default:
|
15
|
-
return s(r);
|
16
|
-
}
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
a as highlightSyntax
|
20
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Ui/CliTextareaInput/utils/highlightSyntax/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export * from "./useFixFormat";
|
2
|
-
export * from "./useHistoryNavigation";
|
3
|
-
export * from "./useTextCoursore";
|
4
|
-
export * from "./useLineNumbers";
|
5
|
-
export * from "./useScrollSync";
|
6
|
-
export * from "./useTextActions";
|
7
|
-
export * from "./useKeyHandlers";
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { useFixFormat as r } from "./useFixFormat/useFixFormat.js";
|
2
|
-
import { useHistoryNavigation as s } from "./useHistoryNavigation/useHistoryNavigation.js";
|
3
|
-
import { useTextCoursore as m } from "./useTextCoursore/useTextCoursore.js";
|
4
|
-
import { LINE_HEIGHT as f, useLineNumbers as p } from "./useLineNumbers/useLineNumbers.js";
|
5
|
-
import { useScrollSync as n } from "./useScrollSync/useScrollSync.js";
|
6
|
-
import { useTextActions as H } from "./useTextActions/useTextActions.js";
|
7
|
-
import { useKeyHandlers as l } from "./useKeyHandlers/useKeyHandlers.js";
|
8
|
-
export {
|
9
|
-
f as LINE_HEIGHT,
|
10
|
-
r as useFixFormat,
|
11
|
-
s as useHistoryNavigation,
|
12
|
-
l as useKeyHandlers,
|
13
|
-
p as useLineNumbers,
|
14
|
-
n as useScrollSync,
|
15
|
-
H as useTextActions,
|
16
|
-
m as useTextCoursore
|
17
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useFixFormat.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.ts"],"names":[],"mappings":"AAUA,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,kBAuB/B,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { useCallback as e } from "react";
|
2
|
-
import { fixJson as a } from "../../fixJson/fixJson.js";
|
3
|
-
const c = (o, t) => {
|
4
|
-
const r = t.message.match(/at position (\d+)/);
|
5
|
-
if (!r) return 0;
|
6
|
-
const n = parseInt(r[1], 10);
|
7
|
-
return o.substring(0, n).split(`
|
8
|
-
`).length;
|
9
|
-
}, f = () => ({
|
10
|
-
formatJson: e(async (t) => {
|
11
|
-
try {
|
12
|
-
return JSON.stringify(JSON.parse(t), null, 2);
|
13
|
-
} catch {
|
14
|
-
try {
|
15
|
-
const r = a(t), n = JSON.parse(r);
|
16
|
-
return JSON.stringify(n, null, 2);
|
17
|
-
} catch (r) {
|
18
|
-
const n = r instanceof Error ? r : new Error(String(r)), s = new Error(
|
19
|
-
`JSON Error: ${n.message}
|
20
|
-
Line: ${c(t, n)}`
|
21
|
-
);
|
22
|
-
throw s.name = "Ошибка валидации JSON", s;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}, [])
|
26
|
-
});
|
27
|
-
export {
|
28
|
-
f as useFixFormat
|
29
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { EditorFormat, HistoryItem } from "../../types";
|
2
|
-
type UseHistoryNavigationReturn = {
|
3
|
-
navigate: (direction: "up" | "down") => void;
|
4
|
-
};
|
5
|
-
export declare const useHistoryNavigation: (history: HistoryItem[] | undefined, format: EditorFormat, onChange: (value: string, element: HistoryItem) => void) => UseHistoryNavigationReturn;
|
6
|
-
export {};
|
7
|
-
//# sourceMappingURL=useHistoryNavigation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useHistoryNavigation.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE7D,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,SAAS,WAAW,EAAE,GAAG,SAAS,EAClC,QAAQ,YAAY,EACpB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,KACtD,0BAyCF,CAAC"}
|
package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.js
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
import { useState as g, useRef as I, useEffect as v, useCallback as p } from "react";
|
2
|
-
const w = (c, u, a) => {
|
3
|
-
const [r, d] = g(-1), e = I(c);
|
4
|
-
return v(() => {
|
5
|
-
e.current = c;
|
6
|
-
}, [c]), { navigate: p(
|
7
|
-
(f) => {
|
8
|
-
var o;
|
9
|
-
if (!((o = e.current) != null && o.length) || !e.current.filter((t) => t.format === u).length) return;
|
10
|
-
let n = r;
|
11
|
-
if (f === "up") {
|
12
|
-
const t = e.current.findIndex(
|
13
|
-
(s, i) => i > r && s.format === u
|
14
|
-
);
|
15
|
-
n = t !== -1 ? t : r;
|
16
|
-
} else {
|
17
|
-
const t = [...e.current].reverse().findIndex(
|
18
|
-
(s, i) => {
|
19
|
-
var l;
|
20
|
-
return (((l = e == null ? void 0 : e.current) == null ? void 0 : l.length) ?? 0) - 1 - i < r && s.format === u;
|
21
|
-
}
|
22
|
-
);
|
23
|
-
n = t !== -1 ? e.current.length - 1 - t : -1;
|
24
|
-
}
|
25
|
-
d(n);
|
26
|
-
const x = n === -1 ? ">>> " : `>>> ${e.current[n].value}`;
|
27
|
-
a(x, e.current[n]);
|
28
|
-
},
|
29
|
-
[r, u]
|
30
|
-
) };
|
31
|
-
};
|
32
|
-
export {
|
33
|
-
w as useHistoryNavigation
|
34
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { ChangeEventHandler, KeyboardEvent } from "react";
|
2
|
-
export declare const useKeyHandlers: ({ navigate, handleFormat, handleSubmit, onChange, localValue, showPrompt, }: {
|
3
|
-
navigate: (direction: "up" | "down") => void;
|
4
|
-
handleFormat: () => void;
|
5
|
-
handleSubmit: () => void;
|
6
|
-
localValue?: string;
|
7
|
-
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
8
|
-
showPrompt: boolean;
|
9
|
-
}) => ((e: KeyboardEvent<HTMLTextAreaElement>) => void);
|
10
|
-
//# sourceMappingURL=useKeyHandlers.d.ts.map
|
package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useKeyHandlers.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA8C/D,eAAO,MAAM,cAAc,GAAI,6EAO5B;IACD,QAAQ,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IACnD,UAAU,EAAE,OAAO,CAAC;CACrB,KAAG,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAsCjD,CAAC"}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import { useCallback as y } from "react";
|
2
|
-
function u(i, r = "", s) {
|
3
|
-
const e = i.currentTarget, n = e.selectionStart, c = e.selectionEnd, t = r.substring(0, n) + (i.key === "Tab" ? " " : " ") + (r.substring(c) || "");
|
4
|
-
s == null || s({
|
5
|
-
target: { value: t }
|
6
|
-
}), setTimeout(() => {
|
7
|
-
e.selectionStart = n + (i.key === "Tab" ? 4 : 1), e.selectionEnd = e.selectionStart;
|
8
|
-
}, 0);
|
9
|
-
}
|
10
|
-
function k(i, r = "", s) {
|
11
|
-
const e = i.currentTarget, n = e.selectionStart, c = `${r == null ? void 0 : r.substring(0, n)}{}${r == null ? void 0 : r.substring(n)}`;
|
12
|
-
s == null || s({
|
13
|
-
target: { value: c }
|
14
|
-
}), setTimeout(() => {
|
15
|
-
e.selectionStart = n + 1, e.selectionEnd = e.selectionStart;
|
16
|
-
}, 0);
|
17
|
-
}
|
18
|
-
const T = ({
|
19
|
-
navigate: i,
|
20
|
-
handleFormat: r,
|
21
|
-
handleSubmit: s,
|
22
|
-
onChange: e,
|
23
|
-
localValue: n = "",
|
24
|
-
showPrompt: c
|
25
|
-
}) => y(
|
26
|
-
(t) => {
|
27
|
-
if (c) {
|
28
|
-
const f = t.currentTarget;
|
29
|
-
f.selectionStart < 4 && ["Backspace", "Delete", "ArrowLeft"].includes(t.key) && (t.preventDefault(), f.setSelectionRange(4, 4));
|
30
|
-
}
|
31
|
-
if (t.shiftKey && (t.key === "ArrowUp" || t.key === "ArrowDown")) {
|
32
|
-
t.preventDefault(), i(t.key === "ArrowUp" ? "up" : "down");
|
33
|
-
return;
|
34
|
-
}
|
35
|
-
if (t.key === "Tab" || t.key === " ") {
|
36
|
-
t.preventDefault(), u(t, n, e);
|
37
|
-
return;
|
38
|
-
}
|
39
|
-
(t.ctrlKey || t.metaKey) && t.key === "s" && (t.preventDefault(), r()), t.key === "Enter" && !t.shiftKey && !t.ctrlKey && !t.metaKey && (t.preventDefault(), s()), t.key === "{" && (t.preventDefault(), k(t, n, e));
|
40
|
-
},
|
41
|
-
[i, r, s, e, c, n]
|
42
|
-
);
|
43
|
-
export {
|
44
|
-
T as useKeyHandlers
|
45
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|