triafly-ui-kit 1.0.21 → 1.0.22
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/dist/assets/ButtonsArray.css +1 -1
- package/dist/assets/FormRoot.css +1 -1
- package/dist/assets/ModalWindow.css +1 -0
- package/dist/components/Ui/ButtonsArray/ButtonsArray.js +4 -4
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +78 -0
- package/dist/components/Ui/Form/FormRoot/FormRoot.js +9 -11
- package/dist/components/Ui/ModalWindow/ModalWindow.js +50 -0
- package/dist/components/Ui/ModalWindow/index.js +4 -0
- package/dist/main.d.ts +34 -11
- package/dist/main.js +153 -151
- package/package.json +1 -1
- package/dist/assets/FormControls.css +0 -1
- 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.stories.d.ts +0 -10
- package/dist/components/Ui/Accordeon/Accordeon.stories.d.ts.map +0 -1
- 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/Alert/Alert.d.ts +0 -11
- package/dist/components/Ui/Alert/Alert.d.ts.map +0 -1
- 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/Avatar/Avatar.d.ts +0 -8
- package/dist/components/Ui/Avatar/Avatar.d.ts.map +0 -1
- 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/Badge/Badge.d.ts +0 -15
- package/dist/components/Ui/Badge/Badge.d.ts.map +0 -1
- 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/Button/Button.d.ts +0 -20
- package/dist/components/Ui/Button/Button.d.ts.map +0 -1
- 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/ButtonsArray/ButtonsArray.d.ts +0 -17
- package/dist/components/Ui/ButtonsArray/ButtonsArray.d.ts.map +0 -1
- 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/Checkbox/Checkbox.d.ts +0 -12
- package/dist/components/Ui/Checkbox/Checkbox.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/Checkbox/index.d.ts.map +0 -1
- 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/index.d.ts +0 -3
- package/dist/components/Ui/CliTextareaInput/index.d.ts.map +0 -1
- 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/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/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/index.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.d.ts.map +0 -1
- 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/index.d.ts +0 -4
- package/dist/components/Ui/CliTextareaInput/utils/index.d.ts.map +0 -1
- 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/processJson.d.ts +0 -2
- package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.d.ts.map +0 -1
- 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/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/types.d.ts +0 -11
- package/dist/components/Ui/CliTextareaInput/utils/types.d.ts.map +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/index.d.ts +0 -2
- package/dist/components/Ui/CustomLink/index.d.ts.map +0 -1
- 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.stories.d.ts +0 -20
- package/dist/components/Ui/DropdownInput/DropdownInput.stories.d.ts.map +0 -1
- 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/DropdownMenu/DropdownMenu.d.ts +0 -17
- package/dist/components/Ui/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/DropdownMenu/index.d.ts.map +0 -1
- 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/fn.d.ts +0 -8
- package/dist/components/Ui/FileUpload/fn.d.ts.map +0 -1
- 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/types.d.ts +0 -33
- package/dist/components/Ui/FileUpload/types.d.ts.map +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/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/fn.d.ts +0 -3
- package/dist/components/Ui/Form/FormItem/fn.d.ts.map +0 -1
- 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/FormRoot/FormRoot.d.ts +0 -5
- package/dist/components/Ui/Form/FormRoot/FormRoot.d.ts.map +0 -1
- 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/types.d.ts +0 -13
- package/dist/components/Ui/Form/FormRoot/types.d.ts.map +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/useForm/index.d.ts +0 -2
- package/dist/components/Ui/Form/useForm/index.d.ts.map +0 -1
- 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/utils/fn.d.ts +0 -8
- package/dist/components/Ui/Form/utils/fn.d.ts.map +0 -1
- 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/Icons/Icons.d.ts +0 -565
- package/dist/components/Ui/Icons/Icons.d.ts.map +0 -1
- 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/utils/CreateIcon.d.ts +0 -12
- package/dist/components/Ui/Icons/utils/CreateIcon.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/Loader/index.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/Pagination/index.d.ts.map +0 -1
- 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.stories.d.ts +0 -9
- package/dist/components/Ui/Radio/Radio.stories.d.ts.map +0 -1
- 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/SearchInput/SearchData.d.ts +0 -2
- package/dist/components/Ui/SearchInput/SearchData.d.ts.map +0 -1
- 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/Skeleton/Skeleton.d.ts +0 -13
- package/dist/components/Ui/Skeleton/Skeleton.d.ts.map +0 -1
- 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/Switch/Switch.d.ts +0 -12
- package/dist/components/Ui/Switch/Switch.d.ts.map +0 -1
- 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/Table/MemoizedRow/MemoizedRow.d.ts +0 -14
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.d.ts.map +0 -1
- 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/TableTypes.d.ts +0 -35
- package/dist/components/Ui/Table/TableTypes.d.ts.map +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/Tabs/Tabs.d.ts +0 -15
- package/dist/components/Ui/Tabs/Tabs.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/Tabs/index.d.ts.map +0 -1
- 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.stories.d.ts +0 -17
- package/dist/components/Ui/TextInput/TextInput.stories.d.ts.map +0 -1
- 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/TextareaInput/TextareaInput.d.ts +0 -18
- package/dist/components/Ui/TextareaInput/TextareaInput.d.ts.map +0 -1
- 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/index.d.ts +0 -2
- package/dist/components/Ui/TextareaInput/index.d.ts.map +0 -1
- 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.stories.d.ts +0 -9
- package/dist/components/Ui/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/components/Ui/Tooltip/index.d.ts +0 -2
- package/dist/components/Ui/Tooltip/index.d.ts.map +0 -1
- package/dist/context/ToastContext/ToastContext.d.ts +0 -10
- package/dist/context/ToastContext/ToastContext.d.ts.map +0 -1
- package/dist/context/ToastContext/index.d.ts +0 -2
- package/dist/context/ToastContext/index.d.ts.map +0 -1
- 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/TriaflyProvider.d.ts +0 -8
- package/dist/context/TriaflyContext/TriaflyProvider.d.ts.map +0 -1
- 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/useBreakpointValue/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.d.ts.map +0 -1
- 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/useModal/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useModal/index.d.ts.map +0 -1
- 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/useTheme/index.d.ts +0 -2
- package/dist/context/TriaflyContext/hooks/useTheme/index.d.ts.map +0 -1
- 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/index.d.ts +0 -3
- package/dist/context/TriaflyContext/index.d.ts.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DemoForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Demos/DemoForm/DemoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAWzB,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAiBD,QAAA,MAAM,QAAQ,GAAI,qFAMf,aAAa,KAAG,GAAG,CAAC,OA8EtB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
2
|
-
import { DemoFormProps } from "./DemoForm";
|
3
|
-
declare const meta: Meta<DemoFormProps>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof meta>;
|
6
|
-
export declare const Primary: Story;
|
7
|
-
//# sourceMappingURL=DemoForm.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DemoForm.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Demos/DemoForm/DemoForm.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,aAAa,CA0BG,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DemoLogin.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Demos/DemoLogin/DemoLogin.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAU1B,QAAA,MAAM,SAAS,QAAO,GAAG,CAAC,OAsDzB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
2
|
-
import "@/styles/main.scss";
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: () => JSX.Element;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
};
|
9
|
-
};
|
10
|
-
export default meta;
|
11
|
-
type Story = StoryObj<typeof meta>;
|
12
|
-
export declare const Primary: Story;
|
13
|
-
//# sourceMappingURL=DemoLogin.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DemoLogin.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Demos/DemoLogin/DemoLogin.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,oBAAoB,CAAC;AAE5B,QAAA,MAAM,IAAI;;;;;;CAIwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import "./DropdownInput.scss";
|
3
|
-
type Option = {
|
4
|
-
value: string;
|
5
|
-
label: string;
|
6
|
-
};
|
7
|
-
type DropdownInputProps = {
|
8
|
-
label?: string;
|
9
|
-
options: Option[];
|
10
|
-
value?: string | number;
|
11
|
-
onChange?: (value: string) => void;
|
12
|
-
name?: string;
|
13
|
-
placeholder?: string;
|
14
|
-
errorMessage?: string;
|
15
|
-
isDisabled?: boolean;
|
16
|
-
className?: string;
|
17
|
-
};
|
18
|
-
export declare const DropdownInput: React.FC<DropdownInputProps>;
|
19
|
-
export default DropdownInput;
|
20
|
-
//# sourceMappingURL=DropdownInput.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DropdownInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownInput/DropdownInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,sBAAsB,CAAC;AAG9B,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwHtD,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import type { Meta } from "@storybook/react";
|
2
|
-
interface DropdownInputStoryArgs {
|
3
|
-
label?: string;
|
4
|
-
name?: string;
|
5
|
-
options: {
|
6
|
-
value: string;
|
7
|
-
label: string;
|
8
|
-
}[];
|
9
|
-
placeholder?: string;
|
10
|
-
value?: string | number;
|
11
|
-
errorMessage?: string;
|
12
|
-
isDisabled?: boolean;
|
13
|
-
}
|
14
|
-
declare const meta: Meta<DropdownInputStoryArgs>;
|
15
|
-
export default meta;
|
16
|
-
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, DropdownInputStoryArgs>;
|
17
|
-
export declare const WithSelectedValue: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, DropdownInputStoryArgs>;
|
18
|
-
export declare const Disabled: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, DropdownInputStoryArgs>;
|
19
|
-
export declare const WithErrorMessage: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, DropdownInputStoryArgs>;
|
20
|
-
//# sourceMappingURL=DropdownInput.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DropdownInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownInput/DropdownInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGtD,UAAU,sBAAsB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAatC,CAAC;AAEF,eAAe,IAAI,CAAC;AAYpB,eAAO,MAAM,OAAO,kHAAoB,CAAC;AAYzC,eAAO,MAAM,iBAAiB,kHAAoB,CAAC;AAanD,eAAO,MAAM,QAAQ,kHAAoB,CAAC;AAa1C,eAAO,MAAM,gBAAgB,kHAAoB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import "./DropdownMenu.scss";
|
3
|
-
export type MenuContent = {
|
4
|
-
icon?: React.ReactNode;
|
5
|
-
title: string;
|
6
|
-
isDanger?: boolean;
|
7
|
-
onClick?: () => void;
|
8
|
-
};
|
9
|
-
type DropdownMenuProps = {
|
10
|
-
content: MenuContent[];
|
11
|
-
horizontalPosition?: "left" | "center" | "right";
|
12
|
-
verticalPosition?: "top" | "bottom";
|
13
|
-
iconTrigger?: React.ReactNode | string;
|
14
|
-
};
|
15
|
-
export declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
16
|
-
export default DropdownMenu;
|
17
|
-
//# sourceMappingURL=DropdownMenu.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,qBAAqB,CAAC;AAE7B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACjD,gBAAgB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmJpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
2
|
-
import { DropdownMenu } from "./DropdownMenu";
|
3
|
-
declare const meta: Meta<typeof DropdownMenu>;
|
4
|
-
export default meta;
|
5
|
-
type Story = StoryObj<typeof DropdownMenu>;
|
6
|
-
export declare const Default: Story;
|
7
|
-
//# sourceMappingURL=DropdownMenu.stories.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAoBnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAG3C,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/DropdownMenu/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import "./FileUpload.scss";
|
3
|
-
import { FileUploadHandle, FileUploadProps } from "./types";
|
4
|
-
export declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<FileUploadHandle>>;
|
5
|
-
//# sourceMappingURL=FileUpload.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyE,MAAM,OAAO,CAAC;AAE9F,OAAO,mBAAmB,CAAC;AAK3B,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,UAAU,0FA2StB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fn.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/FileUpload/fn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;CAKtB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAK9C,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/FileUpload/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
export type SizeUnit = "B" | "KB" | "MB" | "GB";
|
2
|
-
export type FileUploadProps = {
|
3
|
-
acceptedFormats?: string[];
|
4
|
-
maxSize?: number;
|
5
|
-
multiple?: boolean;
|
6
|
-
onFilesChange?: (files: File[], parsedData?: unknown[][]) => void;
|
7
|
-
onError?: (error: string) => void;
|
8
|
-
onSuccess?: () => void;
|
9
|
-
parserCsv?: boolean;
|
10
|
-
sizeUnit?: SizeUnit;
|
11
|
-
onReset?: () => void;
|
12
|
-
visibilityFileUpload?: boolean;
|
13
|
-
onVisibilityChange?: (visible: boolean) => void;
|
14
|
-
value?: File[];
|
15
|
-
onChange?: (value: File[]) => void;
|
16
|
-
isDisabled?: boolean;
|
17
|
-
hasError?: boolean;
|
18
|
-
errorMessage?: string;
|
19
|
-
label?: string;
|
20
|
-
isNotDeleteElement?: boolean;
|
21
|
-
};
|
22
|
-
export type UploadedFile = {
|
23
|
-
file: File;
|
24
|
-
parsedData?: unknown[][];
|
25
|
-
error?: string;
|
26
|
-
isLoading?: boolean;
|
27
|
-
};
|
28
|
-
export type FileUploadHandle = {
|
29
|
-
reset: () => void;
|
30
|
-
getFiles: () => File[];
|
31
|
-
getParsedData: () => unknown[][];
|
32
|
-
};
|
33
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/FileUpload/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,IAAI,CAAC;IAClE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,OAAO,EAAE,EAAE,CAAC;CAClC,CAAC"}
|
@@ -1,77 +0,0 @@
|
|
1
|
-
import type { Rule } from "../utils/types";
|
2
|
-
export type FieldPath = string | string[];
|
3
|
-
export interface FormInstance {
|
4
|
-
/**
|
5
|
-
* Сбрасывает все значения формы и ошибки
|
6
|
-
* (возвращает форму в исходное состояние)
|
7
|
-
*/
|
8
|
-
resetFields: () => void;
|
9
|
-
/**
|
10
|
-
* Устанавливает значения для нескольких полей формы сразу
|
11
|
-
* @param values - объект с новыми значениями {имяПоля: значение}
|
12
|
-
*/
|
13
|
-
setFieldsValue: (values: Record<string, unknown>) => void;
|
14
|
-
/**
|
15
|
-
* Возвращает текущие значения всех полей формы
|
16
|
-
* @returns объект со значениями {имяПоля: значение}
|
17
|
-
*/
|
18
|
-
getFieldsValue: () => Record<string, unknown>;
|
19
|
-
/**
|
20
|
-
* Устанавливает значение конкретного поля формы
|
21
|
-
* @param name - имя поля для обновления
|
22
|
-
* @param value - новое значение поля
|
23
|
-
*/
|
24
|
-
setFieldValue: (name: FieldPath, value: unknown) => void;
|
25
|
-
/**
|
26
|
-
* Получает текущее значение конкретного поля
|
27
|
-
* @param name - имя поля
|
28
|
-
* @returns текущее значение поля
|
29
|
-
*/
|
30
|
-
getFieldValue: (name: FieldPath) => unknown;
|
31
|
-
/**
|
32
|
-
* Отправляет форму (вызывает валидацию перед отправкой)
|
33
|
-
* @throws выбрасывает ошибку, если валидация не пройдена
|
34
|
-
*/
|
35
|
-
submit: () => Promise<void>;
|
36
|
-
/**
|
37
|
-
* Валидирует указанные поля (или все поля, если не указаны)
|
38
|
-
* @param names - опциональный массив имен полей для валидации
|
39
|
-
* @returns Promise с текущими значениями формы при успешной валидации
|
40
|
-
* @throws выбрасывает ошибку с информацией о невалидных полях
|
41
|
-
*/
|
42
|
-
validateFields: (names?: string[]) => Promise<Record<string, unknown>>;
|
43
|
-
/**
|
44
|
-
* Получает ошибки валидации для указанного поля
|
45
|
-
* @param name - имя поля
|
46
|
-
* @returns массив сообщений об ошибках или пустой массив, если ошибок нет
|
47
|
-
*/
|
48
|
-
getFieldError: (name: FieldPath) => string[];
|
49
|
-
/**
|
50
|
-
* Устанавливает ошибки валидации для указанного поля
|
51
|
-
* @param name - имя поля
|
52
|
-
* @param errors - массив сообщений об ошибках
|
53
|
-
*/
|
54
|
-
setFieldError: (name: FieldPath, errors: string[]) => void;
|
55
|
-
/**
|
56
|
-
* Получает правила валидации для указанного поля
|
57
|
-
* @param name - имя поля
|
58
|
-
* @returns массив правил валидации
|
59
|
-
*/
|
60
|
-
getFieldRules: (name: FieldPath) => Rule[];
|
61
|
-
/**
|
62
|
-
* Устанавливает правила валидации для указанного поля
|
63
|
-
* @param name - имя поля
|
64
|
-
* @param rules - массив правил валидации
|
65
|
-
*/
|
66
|
-
setFieldRules: (name: FieldPath, rules: Rule[]) => void;
|
67
|
-
/**
|
68
|
-
* Подписывает на изменения конкретного поля формы
|
69
|
-
* @param name - имя поля для подписки
|
70
|
-
* @param listener - функция-обработчик изменений
|
71
|
-
* @returns функция для отписки от изменений
|
72
|
-
*/
|
73
|
-
subscribe: (name: FieldPath, listener: () => void) => () => void;
|
74
|
-
disabled?: boolean;
|
75
|
-
}
|
76
|
-
export declare const FormContext: import("react").Context<FormInstance | null>;
|
77
|
-
//# sourceMappingURL=FormContext.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormContext/FormContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAE1D;;;OAGG;IACH,cAAc,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE9C;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzD;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC;IAE5C;;;OAGG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;;OAKG;IACH,cAAc,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEvE;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,EAAE,CAAC;IAE7C;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE3D;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,EAAE,CAAC;IAE3C;;;;OAIG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAExD;;;;;OAKG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAEjE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,8CAA2C,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import type { FormItemProps } from "./types";
|
3
|
-
export declare const FormItem: React.MemoExoticComponent<({ name, children, rules, label, isDisabled: itemDisabled, style, classNameItem, }: FormItemProps) => import("react/jsx-runtime").JSX.Element>;
|
4
|
-
//# sourceMappingURL=FormItem.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FormItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormItem/FormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAI3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,gHAShB,aAAa,6CAuHjB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fn.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormItem/fn.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,WAAW,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,KAAG,MA0CxE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,CAAC,YAAY,KAAG,MACP,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Rule } from "../utils/types";
|
2
|
-
export interface FormItemProps {
|
3
|
-
name: string | string[];
|
4
|
-
children: React.ReactElement;
|
5
|
-
rules?: Rule[];
|
6
|
-
label?: string;
|
7
|
-
isDisabled?: boolean;
|
8
|
-
style?: React.CSSProperties;
|
9
|
-
classNameItem?: string;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FormRoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormRoot/FormRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAIrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,aAwBX,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormRoot/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FormInstance } from "../FormContext/FormContext";
|
2
|
-
import type { FormItem } from "../FormItem/FormItem";
|
3
|
-
interface FormProps {
|
4
|
-
form?: FormInstance;
|
5
|
-
children: React.ReactNode;
|
6
|
-
onFinish?: (values: Record<string, unknown>) => void;
|
7
|
-
disabled?: boolean;
|
8
|
-
}
|
9
|
-
export interface FormComponent extends React.FC<FormProps> {
|
10
|
-
Item: typeof FormItem;
|
11
|
-
}
|
12
|
-
export {};
|
13
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/FormRoot/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC;IACxD,IAAI,EAAE,OAAO,QAAQ,CAAC;CACvB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Ui/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/useForm/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/useForm/useForm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAkB/D,wBAAgB,OAAO,IAAI,CAAC,YAAY,CAAC,CAwKxC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { Rule } from "./types";
|
2
|
-
export declare const validateRule: (rule: Rule, value: unknown) => string | null;
|
3
|
-
export declare const normalizePath: (name: string | string[]) => string[];
|
4
|
-
export declare const getFieldKey: (name: string | string[]) => string;
|
5
|
-
export declare const setByPath: (obj: any, path: string | string[], value: unknown) => void;
|
6
|
-
export declare const getByPath: (obj: any, path: string | string[]) => unknown;
|
7
|
-
export declare const getNestedValue: (obj: any, path: string[]) => unknown;
|
8
|
-
//# sourceMappingURL=fn.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fn.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/utils/fn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAIpC,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI,EAAE,OAAO,OAAO,KAAG,MAAM,GAAG,IA4BlE,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,GAAG,MAAM,EAAE,KAAG,MAAM,EACzB,CAAC;AAGtC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,GAAG,MAAM,EAAE,KAAG,MACT,CAAC;AAE9C,eAAO,MAAM,SAAS,GAAI,KAAK,GAAG,EAAE,MAAM,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,OAAO,KAAG,IAa7E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,KAAK,GAAG,EAAE,MAAM,MAAM,GAAG,MAAM,EAAE,KAAG,OAU7D,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,KAAK,GAAG,EAAE,MAAM,MAAM,EAAE,KAAG,OAMjD,CAAC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export type FormValues = Record<string, unknown>;
|
2
|
-
export type FormErrors = Record<string, string[]>;
|
3
|
-
export type FormRules = Record<string, Rule[]>;
|
4
|
-
export type Rule = {
|
5
|
-
required?: boolean;
|
6
|
-
message?: string;
|
7
|
-
pattern?: RegExp;
|
8
|
-
validator?: (value: unknown) => string | null;
|
9
|
-
min?: number;
|
10
|
-
max?: number;
|
11
|
-
type?: "email";
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Ui/Form/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAE/C,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,CAAC;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
|