@agility/plenum-ui 1.3.50 → 2.0.0-rc10
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 +1117 -0
- package/dist/index.js +6296 -0
- package/dist/index.js.map +7 -0
- package/dist/lib/tailwind.css +63535 -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 +14 -0
- package/dist/types/stories/atoms/buttons/Button/Button.d.ts +35 -0
- package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +14 -0
- package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +14 -0
- package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +14 -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/{lib/components/Forms → dist/types/stories/molecules/inputs}/InputCounter/InputCounter.d.ts +10 -9
- package/dist/types/stories/molecules/inputs/InputCounter/index.d.ts +2 -0
- package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +30 -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 → dist/types/stories/molecules/inputs}/TextInput/TextInput.d.ts +39 -39
- package/dist/types/stories/molecules/inputs/TextInput/index.d.ts +4 -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 +12 -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/{lib/components/Forms/Textarea/Textarea.d.ts → dist/types/stories/molecules/inputs/textArea/TextArea.d.ts} +35 -32
- 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} +36 -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/{lib/components/Forms/TextInputSelect/InputSelect → dist/types/stories/organisms/TextInputSelect}/InputSelect.d.ts +16 -13
- package/{lib/components/Forms → dist/types/stories/organisms}/TextInputSelect/TextInputSelect.d.ts +48 -48
- package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
- package/dist/types/stories/organisms/index.d.ts +8 -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 +76 -0
- package/stories/atoms/buttons/Button/Button.tsx +146 -0
- package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +78 -0
- package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +85 -0
- package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +81 -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 +134 -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 +51 -0
- package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -0
- package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -0
- package/stories/molecules/inputs/InputCounter/index.tsx +3 -0
- package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -0
- package/stories/molecules/inputs/InputField/InputField.tsx +94 -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/TextInput/TextInput.stories.tsx +32 -0
- package/stories/molecules/inputs/TextInput/TextInput.tsx +162 -0
- package/stories/molecules/inputs/TextInput/index.tsx +5 -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 +38 -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 +22 -0
- package/stories/molecules/inputs/textArea/TextArea.tsx +128 -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 +300 -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/TextInputSelect/InputSelect.tsx +59 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
- package/stories/organisms/TextInputSelect/index.tsx +3 -0
- package/stories/organisms/index.ts +18 -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.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.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.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.stories.d.ts +0 -8
- package/lib/components/Forms/TextInputSelect/index.d.ts +0 -1
- 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
package/{lib/components/Forms/Checkbox → dist/types/stories/molecules/inputs/checkbox}/Checkbox.d.ts
RENAMED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
export interface
|
|
3
|
-
/** Checkbox label */
|
|
4
|
-
label: string;
|
|
5
|
-
/** Checkbox ID */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Disabled state */
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
/** value */
|
|
10
|
-
value?: string;
|
|
11
|
-
/** Check state */
|
|
12
|
-
isChecked?: boolean;
|
|
13
|
-
/** If field is required */
|
|
14
|
-
isRequired?: boolean;
|
|
15
|
-
/** Error state */
|
|
16
|
-
isError?: boolean;
|
|
17
|
-
/** Message or description */
|
|
18
|
-
message?: string;
|
|
19
|
-
/** Callback on input change */
|
|
20
|
-
onChange?(value: string, isChecked: boolean): void;
|
|
21
|
-
/** Has a border around the checkbox and label */
|
|
22
|
-
hasBorder?: boolean;
|
|
23
|
-
/** any arbitrary classNames to add to the wrapper */
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
/** Comment */
|
|
27
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface ICheckboxProps {
|
|
3
|
+
/** Checkbox label */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Checkbox ID */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Disabled state */
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
/** value */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** Check state */
|
|
12
|
+
isChecked?: boolean;
|
|
13
|
+
/** If field is required */
|
|
14
|
+
isRequired?: boolean;
|
|
15
|
+
/** Error state */
|
|
16
|
+
isError?: boolean;
|
|
17
|
+
/** Message or description */
|
|
18
|
+
message?: string;
|
|
19
|
+
/** Callback on input change */
|
|
20
|
+
onChange?(value: string, isChecked: boolean): void;
|
|
21
|
+
/** Has a border around the checkbox and label */
|
|
22
|
+
hasBorder?: boolean;
|
|
23
|
+
/** any arbitrary classNames to add to the wrapper */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Comment */
|
|
27
|
+
declare const Checkbox: FC<ICheckboxProps>;
|
|
28
|
+
export default Checkbox;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export
|
|
1
|
+
export interface IComboboxProps<T extends Record<string, unknown>> {
|
|
2
|
+
/** Label */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** ID */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Array of items to display */
|
|
7
|
+
items: T[];
|
|
8
|
+
/** the item property to use as the key */
|
|
9
|
+
keyProperty: string;
|
|
10
|
+
/** the item property to use as the display */
|
|
11
|
+
displayProperty: string;
|
|
12
|
+
/** Placeholder */
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** Callback to trigger on change */
|
|
15
|
+
onChange?(value: T | undefined): void;
|
|
16
|
+
/** Select disabled state */
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
/** Select error state */
|
|
19
|
+
isError?: boolean;
|
|
20
|
+
/** Select required state */
|
|
21
|
+
isRequired?: boolean;
|
|
22
|
+
/** Message shown under field */
|
|
23
|
+
message?: string;
|
|
24
|
+
displayValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether this item is nullable or not.
|
|
27
|
+
*
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof ComboboxProps
|
|
30
|
+
*/
|
|
31
|
+
nullable?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const Combobox: <T extends Record<string, unknown>>({ label, items, displayProperty, displayValue, keyProperty, onChange, placeholder, message, isDisabled, isError, isRequired, id, nullable }: IComboboxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export default Combobox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Checkbox, { ICheckboxProps } from "./checkbox";
|
|
2
|
+
import Combobox, { IComboboxProps } from "./combobox";
|
|
3
|
+
import InputField, { AcceptedInputTypes, IInputFieldProps } from "./InputField";
|
|
4
|
+
import InputLabel, { IInputLabelProps } from "./InputLabel";
|
|
5
|
+
import NestedInputButton, { INestedInputButtonProps } from "./NestedInputButton";
|
|
6
|
+
import Radio, { IRadioProps } from "./radio";
|
|
7
|
+
import Select, { ISelectProps, ISimpleSelectOptions } from "./select";
|
|
8
|
+
import Textarea, { ITextareaProps } from "./textArea";
|
|
9
|
+
import TextInput, { ITextInputProps } from "./TextInput";
|
|
10
|
+
import ToggleSwitch, { IToggleSwitchProps } from "./toggleSwitch";
|
|
11
|
+
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ISimpleSelectOptions, ITextareaProps, ITextInputProps, IToggleSwitchProps, AcceptedInputTypes };
|
|
12
|
+
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface
|
|
3
|
-
/** group name */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** Radio label */
|
|
6
|
-
label: string;
|
|
7
|
-
/** Radio ID */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** Disabled state */
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
/** Check state */
|
|
12
|
-
isChecked?: boolean;
|
|
13
|
-
/** If field is required */
|
|
14
|
-
isRequired?: boolean;
|
|
15
|
-
/** Error state */
|
|
16
|
-
isError?: boolean;
|
|
17
|
-
/** Message or description */
|
|
18
|
-
message?: string;
|
|
19
|
-
/** value */
|
|
20
|
-
value?: string;
|
|
21
|
-
/** Callback on input change */
|
|
22
|
-
onChange?(value: string, isChecked: boolean): void;
|
|
23
|
-
/** Callback on click */
|
|
24
|
-
onClick?(value: string, isChecked: boolean): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IRadioProps {
|
|
3
|
+
/** group name */
|
|
4
|
+
name?: string;
|
|
5
|
+
/** Radio label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Radio ID */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Disabled state */
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
/** Check state */
|
|
12
|
+
isChecked?: boolean;
|
|
13
|
+
/** If field is required */
|
|
14
|
+
isRequired?: boolean;
|
|
15
|
+
/** Error state */
|
|
16
|
+
isError?: boolean;
|
|
17
|
+
/** Message or description */
|
|
18
|
+
message?: string;
|
|
19
|
+
/** value */
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Callback on input change */
|
|
22
|
+
onChange?(value: string, isChecked: boolean): void;
|
|
23
|
+
/** Callback on click */
|
|
24
|
+
onClick?(value: string, isChecked: boolean): void;
|
|
25
|
+
}
|
|
26
|
+
declare const Radio: React.FC<IRadioProps>;
|
|
27
|
+
export default Radio;
|
package/{lib/components/Forms/Select → dist/types/stories/molecules/inputs/select}/Select.d.ts
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export interface
|
|
7
|
-
/** Label */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Select ID prop */
|
|
10
|
-
id?: string;
|
|
11
|
-
/** Select name prop */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** List of options to display in the select menu */
|
|
14
|
-
options:
|
|
15
|
-
/** Select name prop */
|
|
16
|
-
onChange?(value: string): void;
|
|
17
|
-
/** Select disabled state */
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/** Select error state */
|
|
20
|
-
isError?: boolean;
|
|
21
|
-
/** Select required state */
|
|
22
|
-
isRequired?: boolean;
|
|
23
|
-
value?: string;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ISimpleSelectOptions {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ISelectProps {
|
|
7
|
+
/** Label */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Select ID prop */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Select name prop */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** List of options to display in the select menu */
|
|
14
|
+
options: ISimpleSelectOptions[];
|
|
15
|
+
/** Select name prop */
|
|
16
|
+
onChange?(value: string): void;
|
|
17
|
+
/** Select disabled state */
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
/** Select error state */
|
|
20
|
+
isError?: boolean;
|
|
21
|
+
/** Select required state */
|
|
22
|
+
isRequired?: boolean;
|
|
23
|
+
value?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const Select: React.FC<ISelectProps>;
|
|
27
|
+
export default Select;
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ITextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
|
|
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
|
+
/** Number of cols */
|
|
29
|
+
cols?: number;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
ref?: React.LegacyRef<HTMLTextAreaElement>;
|
|
33
|
+
}
|
|
34
|
+
declare const Textarea: React.FC<ITextareaProps>;
|
|
35
|
+
export default Textarea;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDynamicIconProps } from "@/stories/atoms";
|
|
3
|
+
export interface IToggleSwitchProps {
|
|
4
|
+
isChecked: boolean;
|
|
5
|
+
onChange: (isChecked: boolean) => void;
|
|
6
|
+
label?: {
|
|
7
|
+
text: string | JSX.Element;
|
|
8
|
+
className?: string;
|
|
9
|
+
xPosition?: "left" | "right";
|
|
10
|
+
};
|
|
11
|
+
screenReaderLabel: string;
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
variant: "base" | "short";
|
|
15
|
+
withIcon?: IDynamicIconProps;
|
|
16
|
+
}
|
|
17
|
+
declare const ToggleSwitch: React.FC<IToggleSwitchProps>;
|
|
18
|
+
export default ToggleSwitch;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
|
|
3
|
+
import { ITextareaProps } from "@/stories/molecules/inputs/textArea/TextArea";
|
|
4
|
+
interface ILabelProps extends React.ComponentPropsWithoutRef<"label"> {
|
|
5
|
+
display: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IAnimatedLabelInputProps {
|
|
8
|
+
id: string;
|
|
9
|
+
containerStyles?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
input?: IInputFieldProps;
|
|
12
|
+
textarea?: ITextareaProps;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
isError?: boolean;
|
|
15
|
+
label: ILabelProps;
|
|
16
|
+
}
|
|
17
|
+
declare const AnimatedLabelInput: React.FC<IAnimatedLabelInputProps>;
|
|
18
|
+
export default AnimatedLabelInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IButtonProps } from "@/stories/atoms/buttons/Button";
|
|
3
|
+
import { IDropdownProps } from "../DropdownComponent";
|
|
4
|
+
export interface IButtonDropdownProps {
|
|
5
|
+
button: IButtonProps;
|
|
6
|
+
dropDown: IDropdownProps;
|
|
7
|
+
placement?: IDropdownProps["placement"];
|
|
8
|
+
offsetOptions?: IDropdownProps["offsetOptions"];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Primary UI component for user interaction
|
|
12
|
+
*/
|
|
13
|
+
declare const ButtonDropdown: FC<IButtonDropdownProps>;
|
|
14
|
+
export default ButtonDropdown;
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { Placement } from "@floating-ui/react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface
|
|
6
|
-
icon?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare const defaultClassNames: IDropdownClassnames;
|
|
38
|
-
/** Comment */
|
|
39
|
-
export declare const Dropdown: React.FC<IDropdownProps>;
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
import { Placement } from "@floating-ui/react";
|
|
3
|
+
import { ClassNameWithAutocomplete } from "utils/types";
|
|
4
|
+
import { IDynamicIconProps, UnifiedIconName } from "@/stories/atoms/icons";
|
|
5
|
+
export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
icon?: IDynamicIconProps | UnifiedIconName;
|
|
7
|
+
iconPosition?: "trailing" | "leading";
|
|
8
|
+
label: string;
|
|
9
|
+
onClick?(): void;
|
|
10
|
+
isEmphasized?: boolean;
|
|
11
|
+
key: React.Key;
|
|
12
|
+
}
|
|
13
|
+
export interface IDropdownClassnames {
|
|
14
|
+
groupClassname?: ClassNameWithAutocomplete;
|
|
15
|
+
itemsClassname?: ClassNameWithAutocomplete;
|
|
16
|
+
itemClassname?: ClassNameWithAutocomplete;
|
|
17
|
+
activeItemClassname?: ClassNameWithAutocomplete;
|
|
18
|
+
buttonClassname?: ClassNameWithAutocomplete;
|
|
19
|
+
}
|
|
20
|
+
export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
items: IItemProp[][];
|
|
22
|
+
label: string;
|
|
23
|
+
CustomDropdownTrigger?: React.ReactNode;
|
|
24
|
+
id: string;
|
|
25
|
+
classNames?: IDropdownClassnames;
|
|
26
|
+
placement?: Placement;
|
|
27
|
+
offsetOptions?: Partial<{
|
|
28
|
+
mainAxis: number;
|
|
29
|
+
crossAxis: number;
|
|
30
|
+
alignmentAxis: number | null;
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
export declare const defaultClassNames: IDropdownClassnames;
|
|
34
|
+
/** Comment */
|
|
35
|
+
declare const Dropdown: React.FC<IDropdownProps>;
|
|
36
|
+
export default Dropdown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IButtonProps } from "@/stories/atoms/buttons/Button";
|
|
3
|
+
import { IDynamicIconProps } from "@/stories/atoms/icons";
|
|
4
|
+
export interface IEmptySectionPlaceholderProps {
|
|
5
|
+
/** the primary icon to display at top of component */
|
|
6
|
+
icon: IDynamicIconProps;
|
|
7
|
+
/** the muted text to display below the icon */
|
|
8
|
+
mutedText?: string;
|
|
9
|
+
/** the primary message to display below the muted text */
|
|
10
|
+
primaryMessage: string;
|
|
11
|
+
/** the call to action component that if provided will be used instead of primaryMessage */
|
|
12
|
+
CallToActionComponent?: React.ReactNode;
|
|
13
|
+
/** the actions to display below the primary call to action or message */
|
|
14
|
+
actions: IButtonProps[];
|
|
15
|
+
/** whether to display the component in a wide or narrow format */
|
|
16
|
+
isWide?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const EmptySectionPlaceholder: React.FC<IEmptySectionPlaceholderProps>;
|
|
19
|
+
export default EmptySectionPlaceholder;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IDynamicIconProps } from "@/stories/atoms/icons";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { IInputFieldProps, AcceptedInputTypes } from "@/stories/molecules/inputs/InputField";
|
|
4
|
+
export interface IFormInputWithAddonsProps extends Omit<IInputFieldProps, "type"> {
|
|
5
|
+
leadIcon?: IDynamicIconProps;
|
|
6
|
+
leadLabel?: string;
|
|
7
|
+
trailIcon?: IDynamicIconProps;
|
|
8
|
+
trailLabel?: string;
|
|
9
|
+
iconOutlined?: boolean;
|
|
10
|
+
/** @param addonOffset An extra buffer zone in pixels between the trailing/leading icon or label and search input -- Default is 24 */
|
|
11
|
+
addonOffset?: number;
|
|
12
|
+
topLabel?: string;
|
|
13
|
+
labelClass?: string;
|
|
14
|
+
containerClassName?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
leadIconClassNames?: string;
|
|
17
|
+
customIconClass?: string;
|
|
18
|
+
type: AcceptedInputTypes;
|
|
19
|
+
}
|
|
20
|
+
declare const FormInputWithAddons: React.FC<IFormInputWithAddonsProps>;
|
|
21
|
+
export default FormInputWithAddons;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export type SelectOptions = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export interface InputSelectProps {
|
|
7
|
+
align: "left" | "right";
|
|
8
|
+
/** Show the CTA without Background color and a border seperator */
|
|
9
|
+
inputOptions: SelectOptions[];
|
|
10
|
+
/** Onclick callback */
|
|
11
|
+
onSelectOption?(value: string): void;
|
|
12
|
+
className?: string;
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Comment */
|
|
16
|
+
export declare const InputSelect: FC<InputSelectProps>;
|