@agility/plenum-ui 1.3.50 → 2.0.0-rc2
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/.eslintrc.json +6 -0
- package/.prettierrc +12 -12
- package/.storybook/Layout.jsx +9 -6
- package/.storybook/head.tsx +4 -0
- package/.storybook/main.ts +18 -0
- package/.storybook/manager-head.html +1 -0
- package/.storybook/manager.ts +25 -0
- package/.storybook/plenumTheme.ts +8 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.tsx +28 -0
- package/.vscode/settings.json +4 -0
- package/.yarnrc.yml +1 -0
- package/README.md +165 -53
- package/app/globals.css +99 -0
- package/app/head.tsx +59 -0
- package/app/layout.tsx +28 -0
- package/app/page.tsx +7 -0
- package/build.js +41 -0
- package/dist/index.d.ts +959 -0
- package/dist/index.js +5936 -0
- package/dist/index.js.map +7 -0
- package/{lib/components → dist/types/stories/atoms}/Avatar/Avatar.d.ts +28 -27
- package/dist/types/stories/atoms/Avatar/index.d.ts +3 -0
- package/dist/types/stories/atoms/badges/Badge.d.ts +21 -0
- package/dist/types/stories/atoms/badges/index.d.ts +3 -0
- package/dist/types/stories/atoms/buttons/Button/Alternative/Alternative.stories.d.ts +13 -0
- package/dist/types/stories/atoms/buttons/Button/Button.d.ts +33 -0
- package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +13 -0
- package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +13 -0
- package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +13 -0
- package/dist/types/stories/atoms/buttons/Button/defaultArgs.d.ts +3 -0
- package/dist/types/stories/atoms/buttons/Button/index.d.ts +3 -0
- package/dist/types/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.d.ts +6 -0
- package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +27 -0
- package/dist/types/stories/atoms/buttons/Capsule/Danger/Danger.stories.d.ts +6 -0
- package/dist/types/stories/atoms/buttons/Capsule/Primary/Primary.stories.d.ts +6 -0
- package/dist/types/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.d.ts +6 -0
- package/dist/types/stories/atoms/buttons/Capsule/index.d.ts +3 -0
- package/dist/types/stories/atoms/buttons/index.d.ts +4 -0
- package/{lib/components/DynamicIcons/DynamicIcons.d.ts → dist/types/stories/atoms/icons/DynamicIcon.d.ts} +20 -18
- package/dist/types/stories/atoms/icons/DynamicIcon.stories.d.ts +10 -0
- package/dist/types/stories/atoms/icons/IconWithShadow.d.ts +6 -0
- package/dist/types/stories/atoms/icons/IconWithShadow.stories.d.ts +10 -0
- package/{lib/components/DynamicIcons → dist/types/stories/atoms/icons}/TablerIcon.d.ts +9 -9
- package/dist/types/stories/atoms/icons/index.d.ts +4 -0
- package/dist/types/stories/atoms/icons/tablerIconNames.d.ts +2 -0
- package/dist/types/stories/atoms/index.d.ts +7 -0
- package/dist/types/stories/atoms/loaders/Loader.d.ts +6 -0
- package/dist/types/stories/atoms/loaders/Loader.stories.d.ts +6 -0
- package/dist/types/stories/atoms/loaders/NProgress/RadialProgress.d.ts +11 -0
- package/dist/types/stories/atoms/loaders/NProgress/index.d.ts +3 -0
- package/dist/types/stories/atoms/loaders/index.d.ts +4 -0
- package/dist/types/stories/index.d.ts +5 -0
- package/dist/types/stories/layouts/index.d.ts +0 -0
- package/dist/types/stories/molecules/index.d.ts +3 -0
- package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +28 -0
- package/dist/types/stories/molecules/inputs/InputField/index.d.ts +3 -0
- package/{lib/components/Forms → dist/types/stories/molecules/inputs}/InputLabel/InputLabel.d.ts +15 -14
- package/dist/types/stories/molecules/inputs/InputLabel/index.d.ts +3 -0
- package/dist/types/stories/molecules/inputs/NestedInputButton/NestedInputButton.d.ts +17 -0
- package/dist/types/stories/molecules/inputs/NestedInputButton/index.d.ts +3 -0
- package/{lib/components/Forms/Checkbox → dist/types/stories/molecules/inputs/checkbox}/Checkbox.d.ts +28 -27
- package/dist/types/stories/molecules/inputs/checkbox/Checkbox.stories.d.ts +6 -0
- package/dist/types/stories/molecules/inputs/checkbox/index.d.ts +3 -0
- package/{lib/components/Combobox/Combobox.d.ts → dist/types/stories/molecules/inputs/combobox/ComboBox.d.ts} +34 -34
- package/dist/types/stories/molecules/inputs/combobox/ComboBox.stories.d.ts +6 -0
- package/dist/types/stories/molecules/inputs/combobox/index.d.ts +3 -0
- package/dist/types/stories/molecules/inputs/index.d.ts +11 -0
- package/{lib/components/Forms/Radio → dist/types/stories/molecules/inputs/radio}/Radio.d.ts +27 -27
- package/dist/types/stories/molecules/inputs/radio/Radio.stories.d.ts +6 -0
- package/dist/types/stories/molecules/inputs/radio/index.d.ts +3 -0
- package/{lib/components/Forms/Select → dist/types/stories/molecules/inputs/select}/Select.d.ts +27 -27
- package/dist/types/stories/molecules/inputs/select/Select.stories.d.ts +6 -0
- package/dist/types/stories/molecules/inputs/select/index.d.ts +3 -0
- package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +26 -0
- package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +6 -0
- package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -0
- package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +18 -0
- package/dist/types/stories/molecules/inputs/toggleSwitch/index.d.ts +3 -0
- package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +18 -0
- package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +3 -0
- package/dist/types/stories/organisms/ButtonDropdown/ButtonDropdown.d.ts +14 -0
- package/dist/types/stories/organisms/ButtonDropdown/index.d.ts +3 -0
- package/{lib/components/Dropdown/Dropdown.d.ts → dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts} +40 -39
- package/dist/types/stories/organisms/DropdownComponent/dropdownItems.d.ts +3 -0
- package/dist/types/stories/organisms/DropdownComponent/index.d.ts +4 -0
- package/dist/types/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.d.ts +19 -0
- package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +3 -0
- package/dist/types/stories/organisms/FormInputWithAddons/FormInputWithAddons.d.ts +21 -0
- package/dist/types/stories/organisms/FormInputWithAddons/index.d.ts +3 -0
- package/dist/types/stories/organisms/index.d.ts +7 -0
- package/dist/types/utils/types.d.ts +2 -0
- package/dist/types/utils/useId.d.ts +1 -0
- package/next.config.js +8 -0
- package/package.json +55 -78
- package/pages/api/hello.ts +13 -0
- package/postcss.config.js +5 -6
- package/public/next.svg +1 -0
- package/public/thirteen.svg +1 -0
- package/public/vercel.svg +1 -0
- package/scripts/create-component.js +97 -0
- package/stories/Introduction.mdx +314 -0
- package/stories/assets/code-brackets.svg +1 -0
- package/stories/assets/colors.svg +1 -0
- package/stories/assets/comments.svg +1 -0
- package/stories/assets/direction.svg +1 -0
- package/stories/assets/flow.svg +1 -0
- package/stories/assets/plugin.svg +1 -0
- package/stories/assets/repo.svg +1 -0
- package/stories/assets/stackalt.svg +1 -0
- package/stories/atoms/Avatar/Avatar.stories.tsx +96 -0
- package/stories/atoms/Avatar/Avatar.tsx +123 -0
- package/stories/atoms/Avatar/index.ts +3 -0
- package/stories/atoms/badges/Badge.tsx +127 -0
- package/stories/atoms/badges/Pill/Pill.stories.tsx +75 -0
- package/stories/atoms/badges/Rounded/Rounded.stories.tsx +75 -0
- package/stories/atoms/badges/index.ts +3 -0
- package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +69 -0
- package/stories/atoms/buttons/Button/Button.tsx +123 -0
- package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +71 -0
- package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +78 -0
- package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +74 -0
- package/stories/atoms/buttons/Button/defaultArgs.ts +9 -0
- package/stories/atoms/buttons/Button/index.ts +3 -0
- package/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.ts +27 -0
- package/stories/atoms/buttons/Capsule/Capsule.tsx +87 -0
- package/stories/atoms/buttons/Capsule/Danger/Danger.stories.ts +27 -0
- package/stories/atoms/buttons/Capsule/Primary/Primary.stories.ts +27 -0
- package/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.ts +27 -0
- package/stories/atoms/buttons/Capsule/index.ts +3 -0
- package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.stories.tsx +15 -0
- package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.tsx +22 -0
- package/stories/atoms/buttons/FloatingActionButton/index.tsx +3 -0
- package/stories/atoms/buttons/index.ts +4 -0
- package/stories/atoms/crumb/Crumb.stories.tsx +18 -0
- package/stories/atoms/crumb/Crumb.tsx +22 -0
- package/stories/atoms/crumb/index.tsx +3 -0
- package/stories/atoms/icons/DynamicIcon.stories.ts +43 -0
- package/stories/atoms/icons/DynamicIcon.tsx +90 -0
- package/stories/atoms/icons/IconWithShadow.stories.ts +43 -0
- package/stories/atoms/icons/IconWithShadow.tsx +16 -0
- package/stories/atoms/icons/TablerIcon.tsx +22 -0
- package/stories/atoms/icons/index.tsx +14 -0
- package/stories/atoms/icons/tablerIconNames.ts +4336 -0
- package/stories/atoms/index.ts +46 -0
- package/stories/atoms/loaders/Loader.stories.ts +15 -0
- package/stories/atoms/loaders/Loader.tsx +15 -0
- package/stories/atoms/loaders/NProgress/RadialProgress.stories.tsx +19 -0
- package/stories/atoms/loaders/NProgress/RadialProgress.tsx +76 -0
- package/stories/atoms/loaders/NProgress/index.ts +3 -0
- package/stories/atoms/loaders/index.ts +4 -0
- package/stories/index.ts +124 -0
- package/stories/layouts/CardLayout/CardLayout.stories.tsx +18 -0
- package/stories/layouts/CardLayout/CardLayout.tsx +22 -0
- package/stories/layouts/CardLayout/index.tsx +3 -0
- package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +18 -0
- package/stories/layouts/ModalLayout/ModalLayout.tsx +22 -0
- package/stories/layouts/ModalLayout/index.tsx +3 -0
- package/stories/layouts/index.ts +0 -0
- package/stories/molecules/index.ts +35 -0
- package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -0
- package/stories/molecules/inputs/InputField/InputField.tsx +88 -0
- package/stories/molecules/inputs/InputField/index.tsx +3 -0
- package/stories/molecules/inputs/InputLabel/InputLabel.stories.tsx +19 -0
- package/stories/molecules/inputs/InputLabel/InputLabel.tsx +45 -0
- package/stories/molecules/inputs/InputLabel/index.tsx +3 -0
- package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +52 -0
- package/stories/molecules/inputs/NestedInputButton/NestedInputButton.tsx +64 -0
- package/stories/molecules/inputs/NestedInputButton/index.tsx +3 -0
- package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +23 -0
- package/stories/molecules/inputs/checkbox/Checkbox.tsx +99 -0
- package/stories/molecules/inputs/checkbox/index.ts +3 -0
- package/stories/molecules/inputs/combobox/ComboBox.stories.ts +41 -0
- package/stories/molecules/inputs/combobox/ComboBox.tsx +194 -0
- package/stories/molecules/inputs/combobox/index.ts +3 -0
- package/stories/molecules/inputs/index.ts +24 -0
- package/stories/molecules/inputs/radio/Radio.stories.ts +27 -0
- package/stories/molecules/inputs/radio/Radio.tsx +92 -0
- package/stories/molecules/inputs/radio/index.ts +3 -0
- package/stories/molecules/inputs/select/Select.stories.ts +23 -0
- package/stories/molecules/inputs/select/Select.tsx +100 -0
- package/stories/molecules/inputs/select/index.ts +3 -0
- package/stories/molecules/inputs/textArea/TextArea.stories.ts +20 -0
- package/stories/molecules/inputs/textArea/TextArea.tsx +67 -0
- package/stories/molecules/inputs/textArea/index.ts +3 -0
- package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +119 -0
- package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +75 -0
- package/stories/molecules/inputs/toggleSwitch/index.ts +3 -0
- package/stories/molecules/tabs/Tabs.stories.tsx +18 -0
- package/stories/molecules/tabs/Tabs.tsx +22 -0
- package/stories/molecules/tabs/index.tsx +3 -0
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +21 -0
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +60 -0
- package/stories/organisms/AnimatedLabelInput/index.tsx +3 -0
- package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +118 -0
- package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +81 -0
- package/stories/organisms/ButtonDropdown/index.tsx +3 -0
- package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +49 -0
- package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +269 -0
- package/stories/organisms/DropdownComponent/dropdownItems.ts +101 -0
- package/stories/organisms/DropdownComponent/index.ts +4 -0
- package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +76 -0
- package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx +52 -0
- package/stories/organisms/EmptySectionPlaceholder/index.tsx +3 -0
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +29 -0
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +140 -0
- package/stories/organisms/FormInputWithAddons/index.tsx +3 -0
- package/stories/organisms/index.ts +16 -0
- package/tailwind.config.js +165 -36
- package/tsconfig.json +27 -21
- package/tsconfig.lib.json +19 -0
- package/utils/types.d.ts +2 -0
- package/utils/types.ts +3 -0
- package/utils/useId.d.ts +1 -0
- package/utils/useId.tsx +16 -0
- package/.babelrc +0 -14
- package/.editorconfig +0 -9
- package/.eslintrc +0 -13
- package/.github/workflows/test.yml +0 -27
- package/.storybook/main.js +0 -17
- package/.storybook/manager.js +0 -6
- package/.storybook/plenumTheme.js +0 -8
- package/.storybook/preview.js +0 -44
- package/_templates/component/new/component.ejs.t +0 -18
- package/_templates/component/new/component.stories.ejs.t +0 -21
- package/_templates/component/new/component.test.ejs.t +0 -15
- package/_templates/component/new/index.ejs.t +0 -6
- package/_templates/component/new/prompt.js +0 -7
- package/jest.config.js +0 -8
- package/lib/common/brandCfg.d.ts +0 -3
- package/lib/common/index.d.ts +0 -3
- package/lib/common/storyCfg.d.ts +0 -5
- package/lib/components/Avatar/Avatar.stories.d.ts +0 -6
- package/lib/components/Avatar/Avatar.test.d.ts +0 -1
- package/lib/components/Avatar/index.d.ts +0 -1
- package/lib/components/Button/Button.d.ts +0 -55
- package/lib/components/Button/Button.stories.d.ts +0 -12
- package/lib/components/Button/Button.test.d.ts +0 -1
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +0 -12
- package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +0 -9
- package/lib/components/ButtonDropdown/index.d.ts +0 -1
- package/lib/components/Combobox/Combobox.stories.d.ts +0 -14
- package/lib/components/Combobox/Combobox.test.d.ts +0 -1
- package/lib/components/Combobox/index.d.ts +0 -1
- package/lib/components/Dropdown/Dropdown.stories.d.ts +0 -8
- package/lib/components/Dropdown/Dropdown.test.d.ts +0 -1
- package/lib/components/Dropdown/data.d.ts +0 -3
- package/lib/components/Dropdown/index.d.ts +0 -1
- package/lib/components/DynamicIcons/DynamicIcons.stories.d.ts +0 -9
- package/lib/components/DynamicIcons/index.d.ts +0 -3
- package/lib/components/DynamicIcons/tablerIconNames.d.ts +0 -2
- package/lib/components/Forms/BaseField/BaseField.d.ts +0 -34
- package/lib/components/Forms/BaseField/BaseField.stories.d.ts +0 -6
- package/lib/components/Forms/BaseField/BaseField.test.d.ts +0 -1
- package/lib/components/Forms/BaseField/index.d.ts +0 -1
- package/lib/components/Forms/Checkbox/Checkbox.stories.d.ts +0 -14
- package/lib/components/Forms/Checkbox/Checkbox.test.d.ts +0 -1
- package/lib/components/Forms/Checkbox/index.d.ts +0 -1
- package/lib/components/Forms/InputCounter/InputCounter.d.ts +0 -9
- package/lib/components/Forms/InputCounter/InputCounter.stories.d.ts +0 -6
- package/lib/components/Forms/InputCounter/InputCounter.test.d.ts +0 -1
- package/lib/components/Forms/InputCounter/index.d.ts +0 -1
- package/lib/components/Forms/InputLabel/InputLabel.stories.d.ts +0 -6
- package/lib/components/Forms/InputLabel/InputLabel.test.d.ts +0 -1
- package/lib/components/Forms/InputLabel/index.d.ts +0 -1
- package/lib/components/Forms/Radio/Radio.stories.d.ts +0 -12
- package/lib/components/Forms/Radio/Radio.test.d.ts +0 -1
- package/lib/components/Forms/Radio/index.d.ts +0 -1
- package/lib/components/Forms/Select/Select.stories.d.ts +0 -11
- package/lib/components/Forms/Select/Select.test.d.ts +0 -1
- package/lib/components/Forms/Select/index.d.ts +0 -1
- package/lib/components/Forms/TextInput/TextInput.d.ts +0 -39
- package/lib/components/Forms/TextInput/TextInput.stories.d.ts +0 -12
- package/lib/components/Forms/TextInput/index.d.ts +0 -1
- package/lib/components/Forms/TextInputAddon/InputCta/InputCta.d.ts +0 -16
- package/lib/components/Forms/TextInputAddon/InputCta/InputCta.stories.d.ts +0 -6
- package/lib/components/Forms/TextInputAddon/InputCta/InputCta.test.d.ts +0 -1
- package/lib/components/Forms/TextInputAddon/InputCta/index.d.ts +0 -1
- package/lib/components/Forms/TextInputAddon/TextInputAddon.d.ts +0 -54
- package/lib/components/Forms/TextInputAddon/TextInputAddon.stories.d.ts +0 -13
- package/lib/components/Forms/TextInputAddon/index.d.ts +0 -1
- package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.d.ts +0 -13
- package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.stories.d.ts +0 -6
- package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.test.d.ts +0 -1
- package/lib/components/Forms/TextInputSelect/InputSelect/index.d.ts +0 -1
- package/lib/components/Forms/TextInputSelect/TextInputSelect.d.ts +0 -48
- package/lib/components/Forms/TextInputSelect/TextInputSelect.stories.d.ts +0 -8
- package/lib/components/Forms/TextInputSelect/index.d.ts +0 -1
- package/lib/components/Forms/Textarea/Textarea.d.ts +0 -32
- package/lib/components/Forms/Textarea/Textarea.stories.d.ts +0 -12
- package/lib/components/Forms/Textarea/Textarea.test.d.ts +0 -1
- package/lib/components/Forms/Textarea/index.d.ts +0 -1
- package/lib/components/ToggleSwitch/ToggleSwitch.d.ts +0 -28
- package/lib/components/ToggleSwitch/ToggleSwitch.stories.d.ts +0 -21
- package/lib/components/ToggleSwitch/ToggleSwitch.test.d.ts +0 -1
- package/lib/components/ToggleSwitch/index.d.ts +0 -1
- package/lib/components/TreeView/TreeView.d.ts +0 -36
- package/lib/components/TreeView/TreeView.stories.d.ts +0 -6
- package/lib/components/TreeView/TreeView.test.d.ts +0 -1
- package/lib/components/TreeView/index.d.ts +0 -1
- package/lib/components/TreeView V1/TreeItem/TreeItem.d.ts +0 -16
- package/lib/components/TreeView V1/TreeItem/TreeItem.stories.d.ts +0 -9
- package/lib/components/TreeView V1/TreeItem/TreeItem.test.d.ts +0 -1
- package/lib/components/TreeView V1/TreeItem/index.d.ts +0 -1
- package/lib/components/TreeView V1/TreeView.d.ts +0 -6
- package/lib/components/TreeView V1/TreeView.stories.d.ts +0 -6
- package/lib/components/TreeView V1/TreeView.test.d.ts +0 -1
- package/lib/components/TreeView V1/context.d.ts +0 -9
- package/lib/components/TreeView V1/index.d.ts +0 -1
- package/lib/components/TreeView V1/sampleData.d.ts +0 -71
- package/lib/components/TreeView V1/types/tree.types.d.ts +0 -21
- package/lib/index.d.ts +0 -13
- package/lib/index.esm.js +0 -105883
- package/lib/index.esm.js.map +0 -1
- package/lib/index.js +0 -105922
- package/lib/index.js.map +0 -1
- package/lib/page/TreeNavigation/CustomNode/CustomNode.d.ts +0 -3
- package/lib/page/TreeNavigation/CustomNode/CustomNode.test.d.ts +0 -1
- package/lib/page/TreeNavigation/CustomNode/index.d.ts +0 -1
- package/lib/page/TreeNavigation/TreeNavigation.d.ts +0 -8
- package/lib/page/TreeNavigation/TreeNavigation.stories.d.ts +0 -6
- package/lib/page/TreeNavigation/hooks/useFetch.d.ts +0 -14
- package/lib/page/TreeNavigation/index.d.ts +0 -1
- package/lib/tailwind.css +0 -2023
- package/lib/util/DynamicIcons.d.ts +0 -10
- package/lib/util/Loader.d.ts +0 -5
- package/lib/util/types.d.ts +0 -2
- package/lib/util/useID.d.ts +0 -1
- package/rollup.config.js +0 -37
- package/setupTests.js +0 -6
- package/styleMock.js +0 -2
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { CheckboxProps } from './Checkbox';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<CheckboxProps>;
|
|
7
|
-
export declare const Default: Story<CheckboxProps>;
|
|
8
|
-
export declare const Description: Story<CheckboxProps>;
|
|
9
|
-
export declare const Required: Story<CheckboxProps>;
|
|
10
|
-
export declare const Checked: Story<CheckboxProps>;
|
|
11
|
-
export declare const ErrorState: Story<CheckboxProps>;
|
|
12
|
-
export declare const Disabled: Story<CheckboxProps>;
|
|
13
|
-
export declare const Events: Story<CheckboxProps>;
|
|
14
|
-
export declare const Bordered: Story<CheckboxProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Checkbox';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface InputCounterProps {
|
|
3
|
-
/** Counter limit */
|
|
4
|
-
limit: number | undefined;
|
|
5
|
-
/** Counter current number */
|
|
6
|
-
current: number;
|
|
7
|
-
}
|
|
8
|
-
/** Primary UI component for user interaction */
|
|
9
|
-
export declare const InputCounter: FC<InputCounterProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputCounterProps } from './InputCounter';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Counter: Story<InputCounterProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputCounter';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputLabelProps } from './InputLabel';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const InputLabelComponent: Story<InputLabelProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputLabel';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { RadioProps } from './Radio';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<RadioProps>;
|
|
7
|
-
export declare const Default: Story<RadioProps>;
|
|
8
|
-
export declare const Description: Story<RadioProps>;
|
|
9
|
-
export declare const Required: Story<RadioProps>;
|
|
10
|
-
export declare const Checked: Story<RadioProps>;
|
|
11
|
-
export declare const ErrorState: Story<RadioProps>;
|
|
12
|
-
export declare const Disabled: Story<RadioProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Radio';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { SimpleSelectProps } from './Select';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<SimpleSelectProps>;
|
|
7
|
-
export declare const Base: Story<SimpleSelectProps>;
|
|
8
|
-
export declare const Label: Story<SimpleSelectProps>;
|
|
9
|
-
export declare const Disabled: Story<SimpleSelectProps>;
|
|
10
|
-
export declare const Required: Story<SimpleSelectProps>;
|
|
11
|
-
export declare const Error: Story<SimpleSelectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Select';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type Type = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
3
|
-
export interface TextInputProps {
|
|
4
|
-
/** Input type*/
|
|
5
|
-
type: Type;
|
|
6
|
-
/** Input ID */
|
|
7
|
-
id?: string;
|
|
8
|
-
/** Input Name */
|
|
9
|
-
name?: string;
|
|
10
|
-
/** Label for the input */
|
|
11
|
-
label?: string;
|
|
12
|
-
/** Force the focus state on the input */
|
|
13
|
-
isFocused?: boolean;
|
|
14
|
-
/** Error state */
|
|
15
|
-
isError?: boolean;
|
|
16
|
-
/** If field is required */
|
|
17
|
-
isRequired?: boolean;
|
|
18
|
-
/** Disabled state */
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/** Readonly state */
|
|
21
|
-
isReadonly?: boolean;
|
|
22
|
-
/** Set default value */
|
|
23
|
-
defaultValue?: string;
|
|
24
|
-
/** Message shown under the text field */
|
|
25
|
-
message?: string;
|
|
26
|
-
/** Input character counter */
|
|
27
|
-
isShowCounter?: boolean;
|
|
28
|
-
/** Max length of input character */
|
|
29
|
-
maxLength?: number;
|
|
30
|
-
/** Callback on change */
|
|
31
|
-
onChange?(value: string): void;
|
|
32
|
-
/** input value */
|
|
33
|
-
value?: string;
|
|
34
|
-
/**Placeholder input text*/
|
|
35
|
-
placeholder?: string;
|
|
36
|
-
className?: string;
|
|
37
|
-
}
|
|
38
|
-
declare const _TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
39
|
-
export { _TextInput as TextInput };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TextInputProps } from './TextInput';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<TextInputProps>;
|
|
7
|
-
export declare const Default: Story<TextInputProps>;
|
|
8
|
-
export declare const Message: Story<TextInputProps>;
|
|
9
|
-
export declare const Counter: Story<TextInputProps>;
|
|
10
|
-
export declare const Required: Story<TextInputProps>;
|
|
11
|
-
export declare const Error: Story<TextInputProps>;
|
|
12
|
-
export declare const Disabled: Story<TextInputProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextInput';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IDynamicIconsProps } from "../../../DynamicIcons/DynamicIcons";
|
|
3
|
-
export interface InputCtaProps {
|
|
4
|
-
/** Icon name */
|
|
5
|
-
icon?: IDynamicIconsProps;
|
|
6
|
-
/** CTA label */
|
|
7
|
-
ctaLabel?: string;
|
|
8
|
-
/** Alignment */
|
|
9
|
-
align: "left" | "right";
|
|
10
|
-
/** Show the CTA without Background color and a border seperator */
|
|
11
|
-
isClear?: boolean;
|
|
12
|
-
/** Onclick callback */
|
|
13
|
-
onClickHandler?(): void;
|
|
14
|
-
}
|
|
15
|
-
/** Comment */
|
|
16
|
-
export declare const InputCta: FC<InputCtaProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputCtaProps } from './InputCta';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const InputCtaComponent: Story<InputCtaProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputCta';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IDynamicIconsProps } from "../../DynamicIcons";
|
|
3
|
-
export type Type = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
4
|
-
export interface TextInputAddonProps {
|
|
5
|
-
/** Input type*/
|
|
6
|
-
type: Type;
|
|
7
|
-
/** Input ID */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** Input Name */
|
|
10
|
-
name?: string;
|
|
11
|
-
/** Label for the input */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** placeholder for the input */
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
/** Force the focus state on the input */
|
|
16
|
-
isFocused?: boolean;
|
|
17
|
-
/** Error state */
|
|
18
|
-
isError?: boolean;
|
|
19
|
-
/** If field is required */
|
|
20
|
-
isRequired?: boolean;
|
|
21
|
-
/** Disabled state */
|
|
22
|
-
isDisabled?: boolean;
|
|
23
|
-
/** Set default value */
|
|
24
|
-
defaultValue?: string;
|
|
25
|
-
/** Set value */
|
|
26
|
-
value?: string;
|
|
27
|
-
/** Message shown under the text field */
|
|
28
|
-
message?: string;
|
|
29
|
-
/** Input character counter */
|
|
30
|
-
isShowCounter?: boolean;
|
|
31
|
-
/** Max length of input character */
|
|
32
|
-
maxLength?: number;
|
|
33
|
-
/** Leading icon displayed within the input */
|
|
34
|
-
leadIcon?: IDynamicIconsProps;
|
|
35
|
-
/** Trailing icon displayed within the input */
|
|
36
|
-
trailIcon?: IDynamicIconsProps;
|
|
37
|
-
/** Icon within the input field at the begining of the field*/
|
|
38
|
-
inlineIcon?: IDynamicIconsProps;
|
|
39
|
-
/** Icon within the input field at the end of the field*/
|
|
40
|
-
inlineTrailingIcon?: IDynamicIconsProps;
|
|
41
|
-
/** Trailing label for the input CTA */
|
|
42
|
-
trailLabel?: string;
|
|
43
|
-
/** Leading label for input CTA */
|
|
44
|
-
leadLabel?: string;
|
|
45
|
-
/** Remove bg and border from CTA */
|
|
46
|
-
clearCta?: "left" | "right" | "both" | "none";
|
|
47
|
-
className?: string;
|
|
48
|
-
/** Callback on change */
|
|
49
|
-
onChange?(value: string): void;
|
|
50
|
-
/** Callback on Cta click */
|
|
51
|
-
onCtaClick?(): void;
|
|
52
|
-
}
|
|
53
|
-
declare const _TextInputAddon: React.ForwardRefExoticComponent<TextInputAddonProps & React.RefAttributes<HTMLInputElement>>;
|
|
54
|
-
export { _TextInputAddon as TextInputAddon };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react/types-6-0";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
import { TextInputAddonProps } from "./TextInputAddon";
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<TextInputAddonProps>;
|
|
7
|
-
export declare const Default: Story<TextInputAddonProps>;
|
|
8
|
-
export declare const LeadIcon: Story<TextInputAddonProps>;
|
|
9
|
-
export declare const TrailAction: Story<TextInputAddonProps>;
|
|
10
|
-
export declare const TrailAndLeadIcons: Story<TextInputAddonProps>;
|
|
11
|
-
export declare const TrailIcon: Story<TextInputAddonProps>;
|
|
12
|
-
export declare const LeadLabel: Story<TextInputAddonProps>;
|
|
13
|
-
export declare const InlineTrailingIcon: Story<TextInputAddonProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextInputAddon';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { SelectOptions } from "..";
|
|
3
|
-
export interface InputSelectProps {
|
|
4
|
-
align: "left" | "right";
|
|
5
|
-
/** Show the CTA without Background color and a border seperator */
|
|
6
|
-
inputOptions: SelectOptions[];
|
|
7
|
-
/** Onclick callback */
|
|
8
|
-
onSelectOption?(value: string): void;
|
|
9
|
-
className?: string;
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** Comment */
|
|
13
|
-
export declare const InputSelect: FC<InputSelectProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { InputSelectProps } from './InputSelect';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const InputSelectComponent: Story<InputSelectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputSelect';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
type Type = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
3
|
-
export type SelectOptions = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
7
|
-
export interface TextInputSelectProps {
|
|
8
|
-
/** Input type*/
|
|
9
|
-
type: Type;
|
|
10
|
-
/** Input ID */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** Input Name */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** Label for the input */
|
|
15
|
-
label?: string;
|
|
16
|
-
/** placeholder for the input */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** Force the focus state on the input */
|
|
19
|
-
isFocused?: boolean;
|
|
20
|
-
/** Error state */
|
|
21
|
-
isError?: boolean;
|
|
22
|
-
/** If field is required */
|
|
23
|
-
isRequired?: boolean;
|
|
24
|
-
/** Disabled state */
|
|
25
|
-
isDisabled?: boolean;
|
|
26
|
-
/** Set default value */
|
|
27
|
-
defaultValue?: string;
|
|
28
|
-
/** Set value */
|
|
29
|
-
value?: string;
|
|
30
|
-
/** Message shown under the text field */
|
|
31
|
-
message?: string;
|
|
32
|
-
/** Input character counter */
|
|
33
|
-
isShowCounter?: boolean;
|
|
34
|
-
/** Max length of input character */
|
|
35
|
-
maxLength?: number;
|
|
36
|
-
/** Select input location */
|
|
37
|
-
selectLocation?: "left" | "right";
|
|
38
|
-
/** Prefix */
|
|
39
|
-
prefix?: string;
|
|
40
|
-
/** List of options to show on the select field */
|
|
41
|
-
inputOptions?: SelectOptions[];
|
|
42
|
-
/** Callback on base input */
|
|
43
|
-
onChange?(value: string): void;
|
|
44
|
-
/** Callback on input select field */
|
|
45
|
-
onSelectOption?(value: string): void;
|
|
46
|
-
}
|
|
47
|
-
export declare const TextInputSelect: FC<TextInputSelectProps>;
|
|
48
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TextInputSelectProps } from './TextInputSelect';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<TextInputSelectProps>;
|
|
7
|
-
export declare const LeadSelect: Story<TextInputSelectProps>;
|
|
8
|
-
export declare const TrailSelect: Story<TextInputSelectProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextInputSelect';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface TextareaProps {
|
|
3
|
-
/** Input ID */
|
|
4
|
-
id?: string;
|
|
5
|
-
/** Input Name */
|
|
6
|
-
name?: string;
|
|
7
|
-
/** Label for the input */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Error state */
|
|
10
|
-
isError?: boolean;
|
|
11
|
-
/** If field is required */
|
|
12
|
-
isRequired?: boolean;
|
|
13
|
-
/** Disabled state */
|
|
14
|
-
isDisabled?: boolean;
|
|
15
|
-
/** Set default value */
|
|
16
|
-
defaultValue?: string;
|
|
17
|
-
value?: string;
|
|
18
|
-
/** Message shown under the text field */
|
|
19
|
-
message?: string;
|
|
20
|
-
/** Input character counter */
|
|
21
|
-
isShowCounter?: boolean;
|
|
22
|
-
/** Max length of input character */
|
|
23
|
-
maxLength?: number;
|
|
24
|
-
/** Callback on change */
|
|
25
|
-
onChange?(value: string): void;
|
|
26
|
-
/** Number of rows */
|
|
27
|
-
rows?: number;
|
|
28
|
-
placeholder?: string;
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
declare const _Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
32
|
-
export { _Textarea as Textarea };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TextareaProps } from './Textarea';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<TextareaProps>;
|
|
7
|
-
export declare const Default: Story<TextareaProps>;
|
|
8
|
-
export declare const Message: Story<TextareaProps>;
|
|
9
|
-
export declare const Counter: Story<TextareaProps>;
|
|
10
|
-
export declare const Required: Story<TextareaProps>;
|
|
11
|
-
export declare const Error: Story<TextareaProps>;
|
|
12
|
-
export declare const Disabled: Story<TextareaProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Textarea';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export interface IToggleSwitchProps {
|
|
3
|
-
/** size of the toggle - default value is "md" */
|
|
4
|
-
size?: "sm" | "md" | "lg";
|
|
5
|
-
/** Toggle Switch label */
|
|
6
|
-
label?: string | null;
|
|
7
|
-
/** A Classname to be used for the label*/
|
|
8
|
-
labelStyles?: string;
|
|
9
|
-
/** A Classname to style the Switch Group*/
|
|
10
|
-
groupStyles?: string;
|
|
11
|
-
/** Toggle Switch ID*/
|
|
12
|
-
id: string;
|
|
13
|
-
/** Disabled state - default value is false*/
|
|
14
|
-
isDisabled?: boolean;
|
|
15
|
-
/** Whether or not the switch is checked. */
|
|
16
|
-
isChecked: boolean;
|
|
17
|
-
/**A function to update isChecked State*/
|
|
18
|
-
onChangeHandler: (state: boolean, value: string) => void;
|
|
19
|
-
/** If field is required - default value is false */
|
|
20
|
-
isRequired?: boolean;
|
|
21
|
-
/** Error state - default value is false*/
|
|
22
|
-
isError?: boolean;
|
|
23
|
-
/** Message or description */
|
|
24
|
-
/** The name used when using this component inside a form.*/
|
|
25
|
-
name: string;
|
|
26
|
-
}
|
|
27
|
-
/** Comment */
|
|
28
|
-
export declare const ToggleSwitch: FC<IToggleSwitchProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Meta } from "@storybook/react/types-6-0";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
import { IToggleSwitchProps } from "./ToggleSwitch";
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllVariations: Story<IToggleSwitchProps>;
|
|
7
|
-
export declare const ToggleSwitchComponentSmDisabled: Story<IToggleSwitchProps>;
|
|
8
|
-
export declare const ToggleSwitchComponentSmChecked: Story<IToggleSwitchProps>;
|
|
9
|
-
export declare const ToggleSwitchComponentSmUnchecked: Story<IToggleSwitchProps>;
|
|
10
|
-
export declare const ToggleSwitchComponentSmError: Story<IToggleSwitchProps>;
|
|
11
|
-
export declare const ToggleSwitchComponentSmRequired: Story<IToggleSwitchProps>;
|
|
12
|
-
export declare const ToggleSwitchComponentMdDisabled: Story<IToggleSwitchProps>;
|
|
13
|
-
export declare const ToggleSwitchComponentMdChecked: Story<IToggleSwitchProps>;
|
|
14
|
-
export declare const ToggleSwitchComponentMdUnchecked: Story<IToggleSwitchProps>;
|
|
15
|
-
export declare const ToggleSwitchComponentMdError: Story<IToggleSwitchProps>;
|
|
16
|
-
export declare const ToggleSwitchComponentMdRequired: Story<IToggleSwitchProps>;
|
|
17
|
-
export declare const ToggleSwitchComponentLgDisabled: Story<IToggleSwitchProps>;
|
|
18
|
-
export declare const ToggleSwitchComponentLgChecked: Story<IToggleSwitchProps>;
|
|
19
|
-
export declare const ToggleSwitchComponentLgUnchecked: Story<IToggleSwitchProps>;
|
|
20
|
-
export declare const ToggleSwitchComponentLgError: Story<IToggleSwitchProps>;
|
|
21
|
-
export declare const ToggleSwitchComponentLgRequired: Story<IToggleSwitchProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ToggleSwitch";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { JSXElementConstructor } from 'react';
|
|
2
|
-
import { NodeModel, TreeMethods } from '@minoru/react-dnd-treeview';
|
|
3
|
-
export interface TreeItemProps {
|
|
4
|
-
node: NodeModel<DataProps>;
|
|
5
|
-
depth: number;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
onToggle: (id: NodeModel['id']) => void;
|
|
8
|
-
onUpdate: (childList: NodeModel<DataProps>[]) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface TreeViewProps {
|
|
11
|
-
/** Prop comment */
|
|
12
|
-
treeData: NodeModel<DataProps>[];
|
|
13
|
-
CustomNode: JSXElementConstructor<TreeItemProps>;
|
|
14
|
-
initialOpen: boolean | Array<number | string>;
|
|
15
|
-
}
|
|
16
|
-
export interface DataProps {
|
|
17
|
-
type: string;
|
|
18
|
-
lazy: boolean;
|
|
19
|
-
expanded: boolean;
|
|
20
|
-
folder: boolean;
|
|
21
|
-
prefix: string;
|
|
22
|
-
iconclass: string;
|
|
23
|
-
galleryID: number;
|
|
24
|
-
galleryFolderID: number;
|
|
25
|
-
assetID: number;
|
|
26
|
-
folderID: number;
|
|
27
|
-
canNestChildren?: boolean;
|
|
28
|
-
}
|
|
29
|
-
declare type PlaceHolderProps = {
|
|
30
|
-
node: NodeModel;
|
|
31
|
-
depth: number;
|
|
32
|
-
};
|
|
33
|
-
/** Custom placeholder design */
|
|
34
|
-
export declare const Placeholder: React.FC<PlaceHolderProps>;
|
|
35
|
-
declare const _TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<TreeMethods>>;
|
|
36
|
-
export { _TreeView as TreeView };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TreeViewProps } from ".";
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const TreeViewComponent: Story<TreeViewProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TreeView';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TreeItemChildrenProps } from '../types/tree.types';
|
|
3
|
-
export interface TreeItemProps {
|
|
4
|
-
/** Selected or current state */
|
|
5
|
-
isCurrent?: boolean;
|
|
6
|
-
/** title of the tree item */
|
|
7
|
-
title?: string;
|
|
8
|
-
/** If tree item is expanded */
|
|
9
|
-
isExpanded?: boolean;
|
|
10
|
-
/** inner nodes within the tree item */
|
|
11
|
-
childNodes?: Partial<TreeItemChildrenProps[] | null>;
|
|
12
|
-
/** A Check to know if item is a root value */
|
|
13
|
-
isRoot?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/** Comment */
|
|
16
|
-
export declare const TreeItem: FC<TreeItemProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TreeItemProps } from './TreeItem';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Base: Story<TreeItemProps>;
|
|
7
|
-
export declare const Active: Story<TreeItemProps>;
|
|
8
|
-
export declare const Expanded: Story<TreeItemProps>;
|
|
9
|
-
export declare const WithChildren: Story<TreeItemProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TreeItem';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { TreeViewProps } from './TreeView';
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const TreeViewComponent: Story<TreeViewProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType } from 'react';
|
|
2
|
-
import { TreeViewContextProps } from "./types/tree.types";
|
|
3
|
-
export interface TreeViewProviderProps {
|
|
4
|
-
children?: JSX.Element | HTMLDivElement | ComponentType;
|
|
5
|
-
}
|
|
6
|
-
declare const TreeViewContext: React.Context<TreeViewContextProps | null>;
|
|
7
|
-
declare const TreeViewProvider: ({ children }: TreeViewProviderProps) => JSX.Element;
|
|
8
|
-
export declare const useTreeViewContext: () => TreeViewContextProps | null;
|
|
9
|
-
export { TreeViewContext, TreeViewProvider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TreeView';
|