@weni/unnnic-system 3.10.0 → 3.11.0-alpha.2
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/CHANGELOG.md +106 -0
- package/dist/assets/tokens/colors.json.d.ts +376 -0
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -1
- package/dist/components/Alert/Alert.vue.d.ts +17 -116
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Alert/Version1dot1.vue.d.ts +2 -38
- package/dist/components/Alert/Version1dot1.vue.d.ts.map +1 -1
- package/dist/components/AudioRecorder/AudioHandler.vue.d.ts +111 -20
- package/dist/components/AudioRecorder/AudioPlayer.vue.d.ts +1 -1
- package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +223 -41
- package/dist/components/AvatarIcon/AvatarIcon.vue.d.ts +3 -3
- package/dist/components/Banner/Banner.vue.d.ts +1 -1
- package/dist/components/Banner/InfoBanner.vue.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/dist/components/Button/Button.vue.d.ts +3 -3
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/ButtonIcon.vue.d.ts +1 -1
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/AccountCard.vue.d.ts +4 -4
- package/dist/components/Card/BlankCard.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts +128 -37
- package/dist/components/Card/CardCompany.vue.d.ts +12 -415
- package/dist/components/Card/CardData.vue.d.ts +1 -1
- package/dist/components/Card/CardStatusesContainer.vue.d.ts +114 -23
- package/dist/components/Card/ContentCard.vue.d.ts +2 -2
- package/dist/components/Card/DashCard.vue.d.ts +4 -4
- package/dist/components/Card/MarketplaceCard.vue.d.ts +1 -1
- package/dist/components/Card/SimpleCard.vue.d.ts +112 -21
- package/dist/components/Card/StatusCard.vue.d.ts +1 -1
- package/dist/components/Card/TitleCard.vue.d.ts +112 -21
- package/dist/components/CardImage/CardImage.vue.d.ts +23 -30
- package/dist/components/CardInformation/CardInformation.vue.d.ts +114 -23
- package/dist/components/CardProject/CardProject.vue.d.ts +3 -3
- package/dist/components/Carousel/Carousel.vue.d.ts +14 -417
- package/dist/components/Carousel/TagCarousel.vue.d.ts +13 -416
- package/dist/components/ChartBar/ChartBar.vue.d.ts +120 -29
- package/dist/components/ChartLine/ChartLine.vue.d.ts +110 -19
- package/dist/components/ChatText/ChatText.vue.d.ts +111 -20
- package/dist/components/ChatsContact/ChatsContact.vue.d.ts +22 -447
- package/dist/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue.d.ts +1 -1
- package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts +1 -1
- package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts.map +1 -1
- package/dist/components/ChatsMessage/ChatsMessage.vue.d.ts +114 -23
- package/dist/components/ChatsMessage/ChatsMessageStatusBackdrop.vue.d.ts +2 -2
- package/dist/components/ChatsNavbar/ChatsNavbar.vue.d.ts +1 -1
- package/dist/components/ChatsUserAvatar/ChatsUserAvatar.vue.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.vue.d.ts +17 -24
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +28 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts.map +1 -0
- package/dist/components/Comment/Comment.vue.d.ts +1 -1
- package/dist/components/DataArea/DataArea.vue.d.ts +111 -20
- package/dist/components/DataTable/index.vue.d.ts +2 -2
- package/dist/components/DataTable/index.vue.d.ts.map +1 -1
- package/dist/components/DateFilter/DateFilter.vue.d.ts +172 -41
- package/dist/components/DatePicker/DatePicker.vue.d.ts +69 -249
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +35 -207
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/LanguageSelect.vue.d.ts +3 -3
- package/dist/components/Flag.vue.d.ts +2 -2
- package/dist/components/FormElement/FormElement.vue.d.ts +50 -27
- package/dist/components/FormElement/FormElement.vue.d.ts.map +1 -1
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/Icon.vue.d.ts.map +1 -1
- package/dist/components/IconLoading/IconLoading.vue.d.ts +1 -1
- package/dist/components/ImportCard/ImportCard.vue.d.ts +10 -10
- package/dist/components/Input/BaseInput.vue.d.ts +11 -2
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +171 -40
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +33 -24
- package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
- package/dist/components/InputNext/InputNext.vue.d.ts +3 -3
- package/dist/components/Label/Label.vue.d.ts +9 -15
- package/dist/components/Label/Label.vue.d.ts.map +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts +214 -40
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
- package/dist/components/ModalNext/ModalNext.vue.d.ts +182 -51
- package/dist/components/ModalUpload/ModalUpload.vue.d.ts +21 -21
- package/dist/components/MoodRating/MoodRating.vue.d.ts +110 -19
- package/dist/components/MultiSelect/MultiSelect.vue.d.ts +26 -14
- package/dist/components/PageHeader/PageHeader.vue.d.ts +28 -0
- package/dist/components/PageHeader/PageHeader.vue.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/PageHeader/types.d.ts +9 -0
- package/dist/components/PageHeader/types.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/dist/components/Radio/Radio.vue.d.ts +10 -6
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/Select/SelectItem.vue.d.ts +1 -1
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +68 -469
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +12 -415
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +19 -26
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts.map +1 -1
- package/dist/components/SelectTime/index.vue.d.ts +34 -25
- package/dist/components/SkeletonLoading/skeletonTheme.vue.d.ts +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +111 -20
- package/dist/components/StarRating/StarRating.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +56 -22
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Tab/Tab.vue.d.ts +122 -20
- package/dist/components/TableNext/TablePagination.vue.d.ts +9 -9
- package/dist/components/TabsExpanded/TabsExpanded.vue.d.ts +1 -1
- package/dist/components/Tag/DefaultTag.vue.d.ts +4 -83
- package/dist/components/Tag/DefaultTag.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +13 -415
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Tag/types.d.ts +18 -0
- package/dist/components/Tag/types.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.vue.d.ts +78 -33
- package/dist/components/TextArea/TextArea.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +16 -0
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -0
- package/dist/components/Toast/ToastManager.d.ts +14 -0
- package/dist/components/Toast/ToastManager.d.ts.map +1 -0
- package/dist/components/Toast/types.d.ts +35 -0
- package/dist/components/Toast/types.d.ts.map +1 -0
- package/dist/components/ToolTip/ToolTip.vue.d.ts +110 -19
- package/dist/components/ToolTip/ToolTip.vue.d.ts.map +1 -1
- package/dist/components/Tour/Tour.vue.d.ts +9 -9
- package/dist/components/Tour/TourPopover.vue.d.ts +9 -9
- package/dist/components/UploadArea/UploadArea.vue.d.ts +10 -10
- package/dist/components/ui/dialog/Dialog.vue.d.ts +23 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +19 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +43 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +25 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +29 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +23 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +19 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/dialog/index.d.ts +8 -0
- package/dist/components/ui/dialog/index.d.ts.map +1 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +35 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerClose.vue.d.ts +19 -0
- package/dist/components/ui/drawer/DrawerClose.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +42 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +23 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +22 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +25 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +8 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +23 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts +19 -0
- package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/drawer/index.d.ts +11 -0
- package/dist/components/ui/drawer/index.d.ts.map +1 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +2 -2
- package/dist/components/ui/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts +26 -0
- package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts.map +1 -0
- package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts +24 -0
- package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/segmented-control/index.d.ts +5 -0
- package/dist/components/ui/segmented-control/index.d.ts.map +1 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts.map +1 -1
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts.map +1 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +31 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts.map +1 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +19 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts.map +1 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +19 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +5 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -0
- package/dist/{es-4b899f97.mjs → es-34baba30.mjs} +1 -1
- package/dist/{index-23489897.mjs → index-147b4c7d.mjs} +99341 -95991
- package/dist/{pt-br-5a914a63.mjs → pt-br-3921d504.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +229 -185
- package/dist/unnnic.umd.js +50 -47
- package/dist/utils/call.d.ts +2 -1
- package/dist/utils/call.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/assets/icons/checkbox-checked-disabled.svg +3 -0
- package/src/assets/icons/checkbox-checked.svg +3 -0
- package/src/assets/icons/checkbox-less-disabled.svg +3 -0
- package/src/assets/icons/checkbox-less.svg +3 -0
- package/src/assets/icons/radio-checked.svg +3 -0
- package/src/assets/icons/switch-checked-disabled.svg +3 -0
- package/src/assets/icons/switch-checked.svg +3 -0
- package/src/assets/scss/tailwind.scss +8 -0
- package/src/components/Alert/Alert.vue +26 -135
- package/src/components/Alert/Version1dot1.vue +0 -36
- package/src/components/Alert/__tests__/Alert.spec.js +2 -45
- package/src/components/Alert/__tests__/Version1dot1.spec.js +0 -21
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +11 -7
- package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +1 -1
- package/src/components/Button/Button.vue +67 -117
- package/src/components/Button/types.ts +0 -1
- package/src/components/ChatsContact/ChatsContact.vue +10 -6
- package/src/components/Checkbox/Checkbox.vue +117 -65
- package/src/components/Checkbox/__tests__/Checkbox.spec.js +6 -21
- package/src/components/CheckboxGroup/CheckboxGroup.vue +96 -0
- package/src/components/DatePicker/DatePicker.vue +628 -516
- package/src/components/DatePicker/__tests__/DatePicker.spec.js +227 -0
- package/src/components/Drawer/Drawer.vue +177 -270
- package/src/components/Drawer/__tests__/Drawer.spec.js +31 -46
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +18 -19
- package/src/components/FormElement/FormElement.vue +63 -93
- package/src/components/Icon.vue +2 -0
- package/src/components/Input/BaseInput.vue +12 -12
- package/src/components/Input/Input.scss +19 -20
- package/src/components/Input/Input.vue +60 -55
- package/src/components/Input/TextInput.vue +25 -54
- package/src/components/Input/__test__/Input.spec.js +13 -33
- package/src/components/Input/__test__/TextInput.spec.js +6 -8
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +14 -5
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
- package/src/components/Label/Label.vue +52 -21
- package/src/components/Label/__tests__/Label.spec.js +1 -1
- package/src/components/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
- package/src/components/ModalDialog/ModalDialog.vue +62 -148
- package/src/components/ModalDialog/__tests__/ModalDialog.spec.js +11 -221
- package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -22
- package/src/components/PageHeader/PageHeader.vue +148 -0
- package/src/components/PageHeader/index.ts +2 -0
- package/src/components/PageHeader/types.ts +10 -0
- package/src/components/Radio/Radio.vue +118 -66
- package/src/components/Radio/__test__/Radio.spec.js +14 -20
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +4 -3
- package/src/components/RadioGroup/RadioGroup.vue +142 -0
- package/src/components/SelectSmart/SelectSmart.vue +4 -3
- package/src/components/Switch/Switch.vue +132 -91
- package/src/components/Switch/__tests__/Switch.spec.js +8 -75
- package/src/components/Switch/__tests__/__snapshots__/Switch.spec.js.snap +5 -6
- package/src/components/Tab/Tab.vue +37 -23
- package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +3 -1
- package/src/components/TableNext/__test__/__snapshots__/TableNext.spec.js.snap +2 -2
- package/src/components/TableNext/__test__/__snapshots__/TablePagination.spec.js.snap +2 -2
- package/src/components/Tag/DefaultTag.vue +51 -107
- package/src/components/Tag/Tag.vue +32 -79
- package/src/components/Tag/types.ts +19 -0
- package/src/components/TextArea/TextArea.vue +41 -12
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +11 -3
- package/src/components/Toast/Toast.vue +246 -0
- package/src/components/Toast/ToastManager.ts +110 -0
- package/src/components/Toast/__tests__/Toast.spec.js +291 -0
- package/src/components/Toast/__tests__/ToastManager.spec.js +294 -0
- package/src/components/Toast/types.ts +57 -0
- package/src/components/ToolTip/ToolTip.vue +41 -188
- package/src/components/ToolTip/__tests__/ToolTip.spec.js +345 -61
- package/src/components/index.ts +95 -5
- package/src/components/ui/dialog/Dialog.vue +15 -0
- package/src/components/ui/dialog/DialogClose.vue +25 -0
- package/src/components/ui/dialog/DialogContent.vue +133 -0
- package/src/components/ui/dialog/DialogFooter.vue +46 -0
- package/src/components/ui/dialog/DialogHeader.vue +79 -0
- package/src/components/ui/dialog/DialogTitle.vue +34 -0
- package/src/components/ui/dialog/DialogTrigger.vue +12 -0
- package/src/components/ui/dialog/index.ts +7 -0
- package/src/components/ui/drawer/Drawer.vue +27 -0
- package/src/components/ui/drawer/DrawerClose.vue +37 -0
- package/src/components/ui/drawer/DrawerContent.vue +102 -0
- package/src/components/ui/drawer/DrawerDescription.vue +40 -0
- package/src/components/ui/drawer/DrawerFooter.vue +38 -0
- package/src/components/ui/drawer/DrawerHeader.vue +57 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +34 -0
- package/src/components/ui/drawer/DrawerTitle.vue +37 -0
- package/src/components/ui/drawer/DrawerTrigger.vue +31 -0
- package/src/components/ui/drawer/index.ts +10 -0
- package/src/components/ui/segmented-control/SegmentedControlList.vue +51 -0
- package/src/components/ui/segmented-control/SegmentedControlTrigger.vue +81 -0
- package/src/components/ui/segmented-control/index.ts +4 -0
- package/src/components/ui/tabs/TabsTrigger.vue +4 -20
- package/src/components/ui/tooltip/Tooltip.vue +15 -0
- package/src/components/ui/tooltip/TooltipContent.vue +73 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +15 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +22 -0
- package/src/components/ui/tooltip/index.ts +4 -0
- package/src/stories/Alert.stories.js +6 -67
- package/src/stories/Button.stories.js +29 -39
- package/src/stories/Checkbox.stories.js +11 -4
- package/src/stories/CheckboxGroup.stories.js +105 -0
- package/src/stories/DatePicker.stories.js +71 -0
- package/src/stories/Dialog.stories.js +832 -0
- package/src/stories/Drawer.stories.js +1 -1
- package/src/stories/DrawerNext.stories.js +610 -0
- package/src/stories/Input.stories.js +71 -76
- package/src/stories/Label.stories.js +7 -0
- package/src/stories/ModalDialog.mdx +3 -0
- package/src/stories/ModalDialog.stories.js +1 -1
- package/src/stories/PageHeader.stories.js +330 -0
- package/src/stories/Radio.stories.js +28 -1
- package/src/stories/RadioGroup.stories.js +144 -0
- package/src/stories/SegmentedControl.stories.js +253 -0
- package/src/stories/Switch.stories.js +10 -5
- package/src/stories/Tab.stories.js +11 -4
- package/src/stories/Tabs.stories.js +1 -1
- package/src/stories/Tag.stories.js +24 -43
- package/src/stories/TextArea.stories.js +14 -2
- package/src/stories/Toast.mdx +123 -0
- package/src/stories/Toast.stories.js +126 -0
- package/src/types/scheme-colors.d.ts +1 -0
- package/src/utils/call.js +46 -18
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +0 -792
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts.map +0 -1
- package/dist/components/Tag/BrandTag.vue.d.ts +0 -51
- package/dist/components/Tag/BrandTag.vue.d.ts.map +0 -1
- package/dist/components/Tag/IndicatorTag.vue.d.ts +0 -151
- package/dist/components/Tag/IndicatorTag.vue.d.ts.map +0 -1
- package/dist/components/Tag/TagNext.vue.d.ts +0 -24
- package/dist/components/Tag/TagNext.vue.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -24078
- package/dist/components/index.d.ts.map +0 -1
- package/src/components/Alert/AlertBanner.vue +0 -182
- package/src/components/Alert/AlertCaller.vue +0 -49
- package/src/components/Alert/__tests__/AlertBanner.spec.js +0 -89
- package/src/components/Alert/__tests__/AlertCaller.spec.js +0 -98
- package/src/components/Tag/BrandTag.vue +0 -96
- package/src/components/Tag/IndicatorTag.vue +0 -107
- package/src/components/Tag/TagNext.vue +0 -60
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import UnnnicRadioGroup from '../components/RadioGroup/RadioGroup.vue';
|
|
3
|
+
import UnnnicRadio from '../components/Radio/Radio.vue';
|
|
4
|
+
import { ref } from 'vue';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Form/RadioGroup',
|
|
8
|
+
component: UnnnicRadioGroup,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: `Fundamental in forms, used when we present a list of two or more mutually
|
|
14
|
+
exclusive options, and the user needs to choose exactly one of them. When you click on
|
|
15
|
+
an unselected radio button, it will automatically deselect any other buttons that were
|
|
16
|
+
previously selected in the list.
|
|
17
|
+
`,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
argTypes: {
|
|
22
|
+
label: { control: { type: 'text' } },
|
|
23
|
+
labelTooltip: { control: { type: 'text' } },
|
|
24
|
+
labelUseHtmlTooltip: { control: 'boolean' },
|
|
25
|
+
modelValue: { control: { type: ['string', 'number'] } },
|
|
26
|
+
name: { control: { type: 'text' } },
|
|
27
|
+
state: { control: 'select', options: ['horizontal', 'vertical'] },
|
|
28
|
+
helper: { control: { type: 'text' } },
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const Default = {
|
|
33
|
+
args: {
|
|
34
|
+
label: 'Radio Group 1',
|
|
35
|
+
helper: 'Helper text',
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
render: (args) => ({
|
|
39
|
+
components: {
|
|
40
|
+
UnnnicRadioGroup,
|
|
41
|
+
UnnnicRadio,
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
setup() {
|
|
45
|
+
const modelValue = ref('option 1');
|
|
46
|
+
|
|
47
|
+
const updateModelValue = (value) => {
|
|
48
|
+
action('update:modelValue')(value);
|
|
49
|
+
modelValue.value = value;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
return { args, modelValue, updateModelValue };
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
template: `
|
|
56
|
+
<section>
|
|
57
|
+
<pre>v-model: {{ modelValue }}</pre>
|
|
58
|
+
|
|
59
|
+
<UnnnicRadioGroup v-bind="args" :modelValue="modelValue" @update:modelValue="updateModelValue">
|
|
60
|
+
<UnnnicRadio value="option 1">
|
|
61
|
+
Option 1
|
|
62
|
+
</UnnnicRadio>
|
|
63
|
+
|
|
64
|
+
<UnnnicRadio value="option 2">
|
|
65
|
+
Option 2
|
|
66
|
+
</UnnnicRadio>
|
|
67
|
+
|
|
68
|
+
<UnnnicRadio value="option 3">
|
|
69
|
+
Option 3
|
|
70
|
+
</UnnnicRadio>
|
|
71
|
+
</UnnnicRadioGroup>
|
|
72
|
+
</section>
|
|
73
|
+
`,
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const Horizontal = {
|
|
78
|
+
args: {
|
|
79
|
+
state: 'horizontal',
|
|
80
|
+
label: 'Label',
|
|
81
|
+
name: 'Radio Group 1',
|
|
82
|
+
helper: 'Helper text',
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
render: (args) => ({
|
|
86
|
+
components: {
|
|
87
|
+
UnnnicRadioGroup,
|
|
88
|
+
UnnnicRadio,
|
|
89
|
+
},
|
|
90
|
+
setup() {
|
|
91
|
+
return { args };
|
|
92
|
+
},
|
|
93
|
+
template: `
|
|
94
|
+
<UnnnicRadioGroup v-bind="args">
|
|
95
|
+
<UnnnicRadio value="option 1">
|
|
96
|
+
Option 1
|
|
97
|
+
</UnnnicRadio>
|
|
98
|
+
|
|
99
|
+
<UnnnicRadio value="option 2">
|
|
100
|
+
Option 2
|
|
101
|
+
</UnnnicRadio>
|
|
102
|
+
|
|
103
|
+
<UnnnicRadio value="option 3">
|
|
104
|
+
Option 3
|
|
105
|
+
</UnnnicRadio>
|
|
106
|
+
</UnnnicRadioGroup>
|
|
107
|
+
`,
|
|
108
|
+
}),
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const Vertical = {
|
|
112
|
+
args: {
|
|
113
|
+
state: 'vertical',
|
|
114
|
+
label: 'Label',
|
|
115
|
+
labelTooltip: 'Tooltip',
|
|
116
|
+
name: 'Radio Group 2',
|
|
117
|
+
helper: 'Helper text',
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
render: (args) => ({
|
|
121
|
+
components: {
|
|
122
|
+
UnnnicRadioGroup,
|
|
123
|
+
UnnnicRadio,
|
|
124
|
+
},
|
|
125
|
+
setup() {
|
|
126
|
+
return { args };
|
|
127
|
+
},
|
|
128
|
+
template: `
|
|
129
|
+
<UnnnicRadioGroup v-bind="args">
|
|
130
|
+
<UnnnicRadio value="option 1">
|
|
131
|
+
Option 1
|
|
132
|
+
</UnnnicRadio>
|
|
133
|
+
|
|
134
|
+
<UnnnicRadio value="option 2">
|
|
135
|
+
Option 2
|
|
136
|
+
</UnnnicRadio>
|
|
137
|
+
|
|
138
|
+
<UnnnicRadio value="option 3">
|
|
139
|
+
Option 3
|
|
140
|
+
</UnnnicRadio>
|
|
141
|
+
</UnnnicRadioGroup>
|
|
142
|
+
`,
|
|
143
|
+
}),
|
|
144
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SegmentedControl,
|
|
3
|
+
SegmentedControlList,
|
|
4
|
+
SegmentedControlTrigger,
|
|
5
|
+
SegmentedControlContent,
|
|
6
|
+
} from '@/components/ui/segmented-control';
|
|
7
|
+
|
|
8
|
+
const segmentedControlTrigger = (
|
|
9
|
+
value,
|
|
10
|
+
disabled = false,
|
|
11
|
+
isUnnnic = false,
|
|
12
|
+
) => `<${isUnnnic ? 'Unnnic' : ''}SegmentedControlTrigger value="${value}" ${disabled ? 'disabled' : ''}>
|
|
13
|
+
${value.charAt(0).toUpperCase() + value.slice(1)}
|
|
14
|
+
</${isUnnnic ? 'Unnnic' : ''}SegmentedControlTrigger>`;
|
|
15
|
+
|
|
16
|
+
const unnnicSegmentedControlTrigger = (value, disabled = false) =>
|
|
17
|
+
segmentedControlTrigger(value, disabled, true);
|
|
18
|
+
|
|
19
|
+
const segmentedControlContent = (
|
|
20
|
+
value,
|
|
21
|
+
isUnnnic = false,
|
|
22
|
+
) => `<${isUnnnic ? 'Unnnic' : ''}SegmentedControlContent value="${value}">
|
|
23
|
+
<div>Content for ${value} here.</div>
|
|
24
|
+
</${isUnnnic ? 'Unnnic' : ''}SegmentedControlContent>`;
|
|
25
|
+
|
|
26
|
+
const unnnicSegmentedControlContent = (value) =>
|
|
27
|
+
segmentedControlContent(value, true);
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
title: 'Navigation/SegmentedControl',
|
|
31
|
+
component: SegmentedControl,
|
|
32
|
+
tags: ['autodocs'],
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
component: `A segmented control component that allows the user to select a single option from a list of options.
|
|
37
|
+
<br/>
|
|
38
|
+
It supports two sizes (small, medium).
|
|
39
|
+
<br/>
|
|
40
|
+
API reference: https://www.reka-ui.com/docs/components/tabs
|
|
41
|
+
`,
|
|
42
|
+
},
|
|
43
|
+
source: {
|
|
44
|
+
code: `
|
|
45
|
+
<UnnnicSegmentedControl>
|
|
46
|
+
<UnnnicSegmentedControlList>
|
|
47
|
+
${unnnicSegmentedControlTrigger('account')}
|
|
48
|
+
${unnnicSegmentedControlTrigger('password')}
|
|
49
|
+
${unnnicSegmentedControlTrigger('settings')}
|
|
50
|
+
${unnnicSegmentedControlTrigger('help')}
|
|
51
|
+
${unnnicSegmentedControlTrigger('about')}
|
|
52
|
+
</UnnnicSegmentedControlList>
|
|
53
|
+
${unnnicSegmentedControlContent('account')}
|
|
54
|
+
${unnnicSegmentedControlContent('password')}
|
|
55
|
+
${unnnicSegmentedControlContent('settings')}
|
|
56
|
+
${unnnicSegmentedControlContent('help')}
|
|
57
|
+
${unnnicSegmentedControlContent('about')}
|
|
58
|
+
</UnnnicSegmentedControl>
|
|
59
|
+
`,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
argTypes: {
|
|
64
|
+
size: {
|
|
65
|
+
control: { type: 'select' },
|
|
66
|
+
options: ['small', 'medium'],
|
|
67
|
+
description: 'The size of the triggers in the segmented control',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
args: {
|
|
71
|
+
defaultValue: 'account',
|
|
72
|
+
size: 'medium',
|
|
73
|
+
},
|
|
74
|
+
render: (args) => ({
|
|
75
|
+
components: {
|
|
76
|
+
SegmentedControl,
|
|
77
|
+
SegmentedControlList,
|
|
78
|
+
SegmentedControlTrigger,
|
|
79
|
+
SegmentedControlContent,
|
|
80
|
+
},
|
|
81
|
+
setup() {
|
|
82
|
+
return { args };
|
|
83
|
+
},
|
|
84
|
+
template: `
|
|
85
|
+
<SegmentedControl v-bind="args">
|
|
86
|
+
<SegmentedControlList :size="args.size">
|
|
87
|
+
${segmentedControlTrigger('account')}
|
|
88
|
+
${segmentedControlTrigger('password')}
|
|
89
|
+
${segmentedControlTrigger('settings')}
|
|
90
|
+
${segmentedControlTrigger('help')}
|
|
91
|
+
${segmentedControlTrigger('about')}
|
|
92
|
+
</SegmentedControlList>
|
|
93
|
+
${segmentedControlContent('account')}
|
|
94
|
+
${segmentedControlContent('password')}
|
|
95
|
+
${segmentedControlContent('settings')}
|
|
96
|
+
${segmentedControlContent('help')}
|
|
97
|
+
${segmentedControlContent('about')}
|
|
98
|
+
</SegmentedControl>
|
|
99
|
+
`,
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const Default = {
|
|
104
|
+
args: {
|
|
105
|
+
defaultValue: 'account',
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const Disabled = {
|
|
110
|
+
parameters: {
|
|
111
|
+
docs: {
|
|
112
|
+
description: {
|
|
113
|
+
story: 'Segmented control with disabled triggers.',
|
|
114
|
+
},
|
|
115
|
+
source: {
|
|
116
|
+
code: `
|
|
117
|
+
<UnnnicSegmentedControl>
|
|
118
|
+
<UnnnicSegmentedControlList>
|
|
119
|
+
${unnnicSegmentedControlTrigger('account')}
|
|
120
|
+
${unnnicSegmentedControlTrigger('password', true)}
|
|
121
|
+
${unnnicSegmentedControlTrigger('settings')}
|
|
122
|
+
</UnnnicSegmentedControlList>
|
|
123
|
+
${unnnicSegmentedControlContent('account')}
|
|
124
|
+
${unnnicSegmentedControlContent('settings')}
|
|
125
|
+
</UnnnicSegmentedControl>
|
|
126
|
+
`,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
render: (args) => ({
|
|
131
|
+
components: {
|
|
132
|
+
SegmentedControl,
|
|
133
|
+
SegmentedControlList,
|
|
134
|
+
SegmentedControlTrigger,
|
|
135
|
+
SegmentedControlContent,
|
|
136
|
+
},
|
|
137
|
+
setup() {
|
|
138
|
+
return { args };
|
|
139
|
+
},
|
|
140
|
+
template: `
|
|
141
|
+
<SegmentedControl v-bind="args">
|
|
142
|
+
<SegmentedControlList :size="args.size">
|
|
143
|
+
${segmentedControlTrigger('account')}
|
|
144
|
+
${segmentedControlTrigger('password', true)}
|
|
145
|
+
${segmentedControlTrigger('settings')}
|
|
146
|
+
</SegmentedControlList>
|
|
147
|
+
${segmentedControlContent('account')}
|
|
148
|
+
${segmentedControlContent('settings')}
|
|
149
|
+
</SegmentedControl>
|
|
150
|
+
`,
|
|
151
|
+
}),
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const AdaptedTriggersWidth = {
|
|
155
|
+
parameters: {
|
|
156
|
+
docs: {
|
|
157
|
+
description: {
|
|
158
|
+
story:
|
|
159
|
+
'Segmented control with triggers width adapted to the content width.',
|
|
160
|
+
},
|
|
161
|
+
source: {
|
|
162
|
+
code: `
|
|
163
|
+
<div style="width: fit-content;">
|
|
164
|
+
<UnnnicSegmentedControl>
|
|
165
|
+
<UnnnicSegmentedControlList>
|
|
166
|
+
${unnnicSegmentedControlTrigger('account')}
|
|
167
|
+
${unnnicSegmentedControlTrigger('password')}
|
|
168
|
+
</UnnnicSegmentedControlList>
|
|
169
|
+
${unnnicSegmentedControlContent('account')}
|
|
170
|
+
${unnnicSegmentedControlContent('password')}
|
|
171
|
+
</UnnnicSegmentedControl>
|
|
172
|
+
</div>
|
|
173
|
+
`,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
render: (args) => ({
|
|
178
|
+
components: {
|
|
179
|
+
SegmentedControl,
|
|
180
|
+
SegmentedControlList,
|
|
181
|
+
SegmentedControlTrigger,
|
|
182
|
+
SegmentedControlContent,
|
|
183
|
+
},
|
|
184
|
+
setup() {
|
|
185
|
+
return { args };
|
|
186
|
+
},
|
|
187
|
+
template: `
|
|
188
|
+
<div style="width: fit-content;">
|
|
189
|
+
<SegmentedControl v-bind="args">
|
|
190
|
+
<SegmentedControlList :size="args.size">
|
|
191
|
+
${segmentedControlTrigger('account')}
|
|
192
|
+
${segmentedControlTrigger('password')}
|
|
193
|
+
</SegmentedControlList>
|
|
194
|
+
${segmentedControlContent('account')}
|
|
195
|
+
${segmentedControlContent('password')}
|
|
196
|
+
</SegmentedControl>
|
|
197
|
+
</div>
|
|
198
|
+
`,
|
|
199
|
+
}),
|
|
200
|
+
args: {
|
|
201
|
+
defaultValue: 'account',
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export const Small = {
|
|
206
|
+
parameters: {
|
|
207
|
+
docs: {
|
|
208
|
+
description: {
|
|
209
|
+
story: 'Segmented control with small triggers.',
|
|
210
|
+
},
|
|
211
|
+
source: {
|
|
212
|
+
code: `
|
|
213
|
+
<UnnnicSegmentedControl>
|
|
214
|
+
<UnnnicSegmentedControlList size="small">
|
|
215
|
+
${unnnicSegmentedControlTrigger('account')}
|
|
216
|
+
${unnnicSegmentedControlTrigger('password')}
|
|
217
|
+
${unnnicSegmentedControlTrigger('settings')}
|
|
218
|
+
</UnnnicSegmentedControlList>
|
|
219
|
+
${unnnicSegmentedControlContent('account')}
|
|
220
|
+
${unnnicSegmentedControlContent('password')}
|
|
221
|
+
${unnnicSegmentedControlContent('settings')}
|
|
222
|
+
</UnnnicSegmentedControl>
|
|
223
|
+
`,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
render: (args) => ({
|
|
228
|
+
components: {
|
|
229
|
+
SegmentedControl,
|
|
230
|
+
SegmentedControlList,
|
|
231
|
+
SegmentedControlTrigger,
|
|
232
|
+
SegmentedControlContent,
|
|
233
|
+
},
|
|
234
|
+
setup() {
|
|
235
|
+
return { args };
|
|
236
|
+
},
|
|
237
|
+
template: `
|
|
238
|
+
<SegmentedControl v-bind="args">
|
|
239
|
+
<SegmentedControlList :size="args.size">
|
|
240
|
+
${segmentedControlTrigger('account')}
|
|
241
|
+
${segmentedControlTrigger('password')}
|
|
242
|
+
${segmentedControlTrigger('settings')}
|
|
243
|
+
</SegmentedControlList>
|
|
244
|
+
${segmentedControlContent('account')}
|
|
245
|
+
${segmentedControlContent('password')}
|
|
246
|
+
${segmentedControlContent('settings')}
|
|
247
|
+
</SegmentedControl>
|
|
248
|
+
`,
|
|
249
|
+
}),
|
|
250
|
+
args: {
|
|
251
|
+
size: 'small',
|
|
252
|
+
},
|
|
253
|
+
};
|
|
@@ -4,9 +4,11 @@ export default {
|
|
|
4
4
|
title: 'Form/Switch',
|
|
5
5
|
component: UnnnicSwitch,
|
|
6
6
|
argTypes: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
label: { control: { type: 'text' } },
|
|
8
|
+
labelTooltip: { control: { type: 'text' } },
|
|
9
|
+
labelUseHtmlTooltip: { control: 'boolean' },
|
|
10
|
+
option: { control: { type: 'text' } },
|
|
11
|
+
helper: { control: { type: 'text' } },
|
|
10
12
|
disabled: { control: { type: 'boolean' } },
|
|
11
13
|
},
|
|
12
14
|
render: (args) => ({
|
|
@@ -32,8 +34,11 @@ export default {
|
|
|
32
34
|
|
|
33
35
|
export const Default = {
|
|
34
36
|
args: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
label: 'Default',
|
|
38
|
+
labelTooltip: 'Tooltip',
|
|
39
|
+
labelUseHtmlTooltip: true,
|
|
40
|
+
option: 'Option',
|
|
41
|
+
helper: 'Helper text',
|
|
37
42
|
disabled: false,
|
|
38
43
|
},
|
|
39
44
|
};
|
|
@@ -3,9 +3,6 @@ import unnnicTab from '../components/Tab/Tab.vue';
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'tabs/Tab',
|
|
5
5
|
component: unnnicTab,
|
|
6
|
-
argTypes: {
|
|
7
|
-
size: { control: { type: 'select', options: ['md', 'sm'] } },
|
|
8
|
-
},
|
|
9
6
|
render: (args) => ({
|
|
10
7
|
components: {
|
|
11
8
|
unnnicTab,
|
|
@@ -36,6 +33,15 @@ export default {
|
|
|
36
33
|
Second description
|
|
37
34
|
</p>
|
|
38
35
|
</template>
|
|
36
|
+
<template #tab-head-third>
|
|
37
|
+
Third
|
|
38
|
+
</template>
|
|
39
|
+
<template #tab-panel-third>
|
|
40
|
+
<h2 class="title">Third Content</h2>
|
|
41
|
+
<p class="description">
|
|
42
|
+
Third description
|
|
43
|
+
</p>
|
|
44
|
+
</template>
|
|
39
45
|
</unnnic-tab>
|
|
40
46
|
`,
|
|
41
47
|
}),
|
|
@@ -44,6 +50,7 @@ export default {
|
|
|
44
50
|
export const Default = {
|
|
45
51
|
args: {
|
|
46
52
|
initialTab: 'first',
|
|
47
|
-
tabs: ['first', 'second'],
|
|
53
|
+
tabs: ['first', 'second', 'third'],
|
|
54
|
+
disabledTabs: ['third'],
|
|
48
55
|
},
|
|
49
56
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import UnnnicTag from '../components/Tag/Tag.vue';
|
|
2
|
-
import colorsList from '../utils/colorsList';
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
title: 'Data Display/Tag',
|
|
@@ -8,13 +7,30 @@ export default {
|
|
|
8
7
|
argTypes: {
|
|
9
8
|
text: { control: { type: 'text' } },
|
|
10
9
|
type: {
|
|
11
|
-
control:
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['default', 'brand', 'next'],
|
|
12
12
|
},
|
|
13
13
|
scheme: {
|
|
14
|
-
control:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
control: 'select',
|
|
15
|
+
options: [
|
|
16
|
+
'green',
|
|
17
|
+
'blue',
|
|
18
|
+
'purple',
|
|
19
|
+
'red',
|
|
20
|
+
'orange',
|
|
21
|
+
'yellow',
|
|
22
|
+
'gray',
|
|
23
|
+
'teal',
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: ['small', 'medium'],
|
|
29
|
+
},
|
|
30
|
+
hasCloseIcon: { control: 'boolean' },
|
|
31
|
+
leftIcon: {
|
|
32
|
+
control: 'select',
|
|
33
|
+
options: [null, 'check_circle', 'sentiment_satisfied'],
|
|
18
34
|
},
|
|
19
35
|
},
|
|
20
36
|
};
|
|
@@ -34,45 +50,10 @@ export const LeftIcon = {
|
|
|
34
50
|
},
|
|
35
51
|
};
|
|
36
52
|
|
|
37
|
-
export const
|
|
53
|
+
export const Small = {
|
|
38
54
|
args: {
|
|
39
55
|
text: 'Label',
|
|
40
56
|
type: 'default',
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const CloseIcon = {
|
|
46
|
-
args: {
|
|
47
|
-
text: 'Label',
|
|
48
|
-
type: 'default',
|
|
49
|
-
hasCloseIcon: true,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const Next = {
|
|
54
|
-
args: {
|
|
55
|
-
text: 'Label',
|
|
56
|
-
type: 'next',
|
|
57
|
-
scheme: 'weni',
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const Indicator = {
|
|
62
|
-
args: {
|
|
63
|
-
text: 'Tag Name',
|
|
64
|
-
type: 'indicator',
|
|
65
|
-
count: 100,
|
|
66
|
-
clickable: true,
|
|
67
|
-
hasBackButton: false,
|
|
68
|
-
enableTooltip: true,
|
|
69
|
-
tooltipText: 'This is the amount',
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export const Brand = {
|
|
74
|
-
args: {
|
|
75
|
-
text: 'Settings',
|
|
76
|
-
type: 'brand',
|
|
57
|
+
size: 'small',
|
|
77
58
|
},
|
|
78
59
|
};
|
|
@@ -37,6 +37,7 @@ export const Default = {
|
|
|
37
37
|
errors: [],
|
|
38
38
|
size: 'md',
|
|
39
39
|
message: 'Helper text',
|
|
40
|
+
tooltip: 'Tooltip',
|
|
40
41
|
},
|
|
41
42
|
};
|
|
42
43
|
|
|
@@ -47,7 +48,7 @@ export const Error = {
|
|
|
47
48
|
maxLength: 150,
|
|
48
49
|
disabled: false,
|
|
49
50
|
type: 'error',
|
|
50
|
-
|
|
51
|
+
errors: 'Error text',
|
|
51
52
|
size: 'md',
|
|
52
53
|
},
|
|
53
54
|
};
|
|
@@ -84,7 +85,7 @@ export const ErrorSm = {
|
|
|
84
85
|
maxLength: 150,
|
|
85
86
|
disabled: false,
|
|
86
87
|
type: 'error',
|
|
87
|
-
|
|
88
|
+
errors: 'Error text',
|
|
88
89
|
size: 'sm',
|
|
89
90
|
},
|
|
90
91
|
};
|
|
@@ -100,3 +101,14 @@ export const DisabledSm = {
|
|
|
100
101
|
message: 'Helper text',
|
|
101
102
|
},
|
|
102
103
|
};
|
|
104
|
+
|
|
105
|
+
export const ResizeNone = {
|
|
106
|
+
args: {
|
|
107
|
+
label: 'Label',
|
|
108
|
+
placeholder: 'Placeholder',
|
|
109
|
+
maxLength: 150,
|
|
110
|
+
disabled: false,
|
|
111
|
+
type: 'normal',
|
|
112
|
+
resize: 'none',
|
|
113
|
+
},
|
|
114
|
+
};
|