@weni/unnnic-system 3.10.0 → 3.11.1-alpha.0
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 +80 -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 +10 -10
- 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/InputDatePicker/InputDatePicker.vue.d.ts +182 -51
- 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/SelectSmart/SelectSmart.vue.d.ts +67 -468
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +12 -415
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +18 -25
- 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/index.d.ts +12880 -11199
- package/dist/components/index.d.ts.map +1 -1
- 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-5af54117.mjs} +1 -1
- package/dist/{index-23489897.mjs → index-eb28c19c.mjs} +99655 -96333
- package/dist/{pt-br-5a914a63.mjs → pt-br-e0368966.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +216 -179
- package/dist/unnnic.umd.js +48 -45
- 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/Drawer/Drawer.vue +174 -271
- package/src/components/Drawer/__tests__/Drawer.spec.js +32 -43
- 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 +88 -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 +23 -0
- package/src/components/ui/drawer/DrawerClose.vue +33 -0
- package/src/components/ui/drawer/DrawerContent.vue +98 -0
- package/src/components/ui/drawer/DrawerDescription.vue +36 -0
- package/src/components/ui/drawer/DrawerFooter.vue +34 -0
- package/src/components/ui/drawer/DrawerHeader.vue +53 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +30 -0
- package/src/components/ui/drawer/DrawerTitle.vue +33 -0
- package/src/components/ui/drawer/DrawerTrigger.vue +27 -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/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/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/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,10 @@
|
|
|
1
|
+
export { default as Drawer } from './Drawer.vue';
|
|
2
|
+
export { default as DrawerContent } from './DrawerContent.vue';
|
|
3
|
+
export { default as DrawerDescription } from './DrawerDescription.vue';
|
|
4
|
+
export { default as DrawerFooter } from './DrawerFooter.vue';
|
|
5
|
+
export { default as DrawerHeader } from './DrawerHeader.vue';
|
|
6
|
+
export { default as DrawerOverlay } from './DrawerOverlay.vue';
|
|
7
|
+
export { default as DrawerTitle } from './DrawerTitle.vue';
|
|
8
|
+
export { default as DrawerTrigger } from './DrawerTrigger.vue';
|
|
9
|
+
export { default as DrawerClose } from './DrawerClose.vue';
|
|
10
|
+
export { DrawerPortal } from 'vaul-vue';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TabsListProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
5
|
+
import { TabsList } from 'reka-ui';
|
|
6
|
+
import { cn } from '@/lib/utils';
|
|
7
|
+
import { provide, computed } from 'vue';
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(
|
|
10
|
+
defineProps<
|
|
11
|
+
TabsListProps & {
|
|
12
|
+
size?: 'small' | 'medium';
|
|
13
|
+
class?: HTMLAttributes['class'];
|
|
14
|
+
}
|
|
15
|
+
>(),
|
|
16
|
+
{
|
|
17
|
+
size: 'medium',
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const delegatedProps = reactiveOmit(props, 'class');
|
|
22
|
+
|
|
23
|
+
provide(
|
|
24
|
+
'segmented-control-size',
|
|
25
|
+
computed(() => props.size),
|
|
26
|
+
);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<TabsList
|
|
31
|
+
v-bind="delegatedProps"
|
|
32
|
+
:class="cn('unnnic-segmented-control-list', props.class)"
|
|
33
|
+
>
|
|
34
|
+
<slot />
|
|
35
|
+
</TabsList>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<style lang="scss" scoped>
|
|
39
|
+
@use '@/assets/scss/unnnic' as *;
|
|
40
|
+
|
|
41
|
+
.unnnic-segmented-control-list {
|
|
42
|
+
padding: $unnnic-space-1;
|
|
43
|
+
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: $unnnic-space-1;
|
|
47
|
+
|
|
48
|
+
border-radius: $unnnic-radius-2;
|
|
49
|
+
background-color: $unnnic-color-bg-soft;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TabsTriggerProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes, ComputedRef } from 'vue';
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
5
|
+
import { TabsTrigger, useForwardProps } from 'reka-ui';
|
|
6
|
+
import { cn } from '@/lib/utils';
|
|
7
|
+
import { inject, computed } from 'vue';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<
|
|
10
|
+
TabsTriggerProps & {
|
|
11
|
+
size?: 'small' | 'medium';
|
|
12
|
+
class?: HTMLAttributes['class'];
|
|
13
|
+
}
|
|
14
|
+
>();
|
|
15
|
+
|
|
16
|
+
const delegatedProps = reactiveOmit(props, 'class');
|
|
17
|
+
|
|
18
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
19
|
+
|
|
20
|
+
const injectedSize = inject<ComputedRef<'small' | 'medium'>>(
|
|
21
|
+
'segmented-control-size',
|
|
22
|
+
);
|
|
23
|
+
const currentSize = computed(
|
|
24
|
+
() => props.size ?? injectedSize?.value ?? 'medium',
|
|
25
|
+
);
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<TabsTrigger
|
|
30
|
+
v-bind="forwardedProps"
|
|
31
|
+
:class="
|
|
32
|
+
cn(
|
|
33
|
+
'unnnic-segmented-control-trigger',
|
|
34
|
+
`unnnic-segmented-control-trigger--${currentSize}`,
|
|
35
|
+
'transition-all',
|
|
36
|
+
props.class,
|
|
37
|
+
)
|
|
38
|
+
"
|
|
39
|
+
>
|
|
40
|
+
<slot />
|
|
41
|
+
</TabsTrigger>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
@use '@/assets/scss/unnnic' as *;
|
|
46
|
+
|
|
47
|
+
.unnnic-segmented-control-trigger {
|
|
48
|
+
width: 100%;
|
|
49
|
+
|
|
50
|
+
border: 1px solid $unnnic-color-bg-soft;
|
|
51
|
+
|
|
52
|
+
padding: $unnnic-space-2 $unnnic-space-4;
|
|
53
|
+
|
|
54
|
+
background-color: $unnnic-color-bg-soft;
|
|
55
|
+
border-radius: $unnnic-radius-1;
|
|
56
|
+
|
|
57
|
+
font: $unnnic-font-emphasis;
|
|
58
|
+
color: $unnnic-color-fg-base;
|
|
59
|
+
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
|
|
62
|
+
&[data-state='active'] {
|
|
63
|
+
border-color: $unnnic-color-border-soft;
|
|
64
|
+
background-color: $unnnic-color-bg-base;
|
|
65
|
+
color: $unnnic-color-fg-emphasized;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:disabled {
|
|
69
|
+
color: $unnnic-color-fg-muted;
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:hover:not(:disabled) {
|
|
74
|
+
color: $unnnic-color-fg-emphasized;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--small {
|
|
78
|
+
font: $unnnic-font-caption-1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as SegmentedControl } from '../tabs/Tabs.vue';
|
|
2
|
+
export { default as SegmentedControlContent } from '../tabs/TabsContent.vue';
|
|
3
|
+
export { default as SegmentedControlList } from './SegmentedControlList.vue';
|
|
4
|
+
export { default as SegmentedControlTrigger } from './SegmentedControlTrigger.vue';
|
|
@@ -4,7 +4,6 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { TabsTrigger, useForwardProps } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { computed } from 'vue';
|
|
8
7
|
|
|
9
8
|
const props = defineProps<
|
|
10
9
|
TabsTriggerProps & { class?: HTMLAttributes['class'] }
|
|
@@ -13,28 +12,12 @@ const props = defineProps<
|
|
|
13
12
|
const delegatedProps = reactiveOmit(props, 'class');
|
|
14
13
|
|
|
15
14
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
16
|
-
|
|
17
|
-
const classes = computed(() => {
|
|
18
|
-
const defaultClasses = ['unnnic-tabs-trigger'];
|
|
19
|
-
|
|
20
|
-
if (props.disabled) {
|
|
21
|
-
defaultClasses.push('unnnic-tabs-trigger--disabled');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return defaultClasses;
|
|
25
|
-
});
|
|
26
15
|
</script>
|
|
27
16
|
|
|
28
17
|
<template>
|
|
29
18
|
<TabsTrigger
|
|
30
19
|
v-bind="forwardedProps"
|
|
31
|
-
:class="
|
|
32
|
-
cn(
|
|
33
|
-
...classes,
|
|
34
|
-
'transition-all disabled:pointer-events-none disabled:opacity-50',
|
|
35
|
-
props.class,
|
|
36
|
-
)
|
|
37
|
-
"
|
|
20
|
+
:class="cn('unnnic-tabs-trigger', 'transition-all', props.class)"
|
|
38
21
|
>
|
|
39
22
|
<span class="unnnic-tabs-trigger__content truncate">
|
|
40
23
|
<slot />
|
|
@@ -62,11 +45,12 @@ const classes = computed(() => {
|
|
|
62
45
|
$unnnic-color-border-active;
|
|
63
46
|
}
|
|
64
47
|
|
|
65
|
-
|
|
48
|
+
&:disabled {
|
|
66
49
|
color: $unnnic-color-fg-muted;
|
|
50
|
+
cursor: not-allowed;
|
|
67
51
|
}
|
|
68
52
|
|
|
69
|
-
&:hover {
|
|
53
|
+
&:hover:not(:disabled) {
|
|
70
54
|
color: $unnnic-color-fg-emphasized;
|
|
71
55
|
}
|
|
72
56
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TooltipRootEmits, TooltipRootProps } from 'reka-ui';
|
|
3
|
+
import { TooltipRoot, useForwardPropsEmits } from 'reka-ui';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<TooltipRootProps>();
|
|
6
|
+
const emits = defineEmits<TooltipRootEmits>();
|
|
7
|
+
|
|
8
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<TooltipRoot v-bind="forwarded">
|
|
13
|
+
<slot />
|
|
14
|
+
</TooltipRoot>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TooltipContentEmits, TooltipContentProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
5
|
+
import {
|
|
6
|
+
TooltipArrow,
|
|
7
|
+
TooltipContent,
|
|
8
|
+
TooltipPortal,
|
|
9
|
+
useForwardPropsEmits,
|
|
10
|
+
} from 'reka-ui';
|
|
11
|
+
import { cn } from '@/lib/utils';
|
|
12
|
+
|
|
13
|
+
defineOptions({
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(
|
|
18
|
+
defineProps<TooltipContentProps & { class?: HTMLAttributes['class'] }>(),
|
|
19
|
+
{
|
|
20
|
+
sideOffset: 0,
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const emits = defineEmits<TooltipContentEmits>();
|
|
25
|
+
|
|
26
|
+
const delegatedProps = reactiveOmit(props, 'class');
|
|
27
|
+
|
|
28
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<TooltipPortal>
|
|
33
|
+
<TooltipContent
|
|
34
|
+
v-bind="{ ...forwarded, ...$attrs }"
|
|
35
|
+
:class="
|
|
36
|
+
cn(
|
|
37
|
+
'tooltip__content',
|
|
38
|
+
'animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
39
|
+
props.class,
|
|
40
|
+
)
|
|
41
|
+
"
|
|
42
|
+
>
|
|
43
|
+
<slot />
|
|
44
|
+
|
|
45
|
+
<TooltipArrow class="tooltip__arrow" />
|
|
46
|
+
</TooltipContent>
|
|
47
|
+
</TooltipPortal>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<style lang="scss">
|
|
51
|
+
@use '@/assets/scss/unnnic' as *;
|
|
52
|
+
|
|
53
|
+
.tooltip__content {
|
|
54
|
+
z-index: 10001;
|
|
55
|
+
|
|
56
|
+
background-color: $unnnic-color-gray-900;
|
|
57
|
+
color: $unnnic-color-white;
|
|
58
|
+
border-radius: $unnnic-radius-1;
|
|
59
|
+
padding: $unnnic-space-2;
|
|
60
|
+
box-shadow: $unnnic-shadow-1;
|
|
61
|
+
font: $unnnic-font-caption-2;
|
|
62
|
+
|
|
63
|
+
overflow-wrap: break-word;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tooltip__arrow {
|
|
67
|
+
width: 10px;
|
|
68
|
+
height: 10px;
|
|
69
|
+
background-color: $unnnic-color-gray-900;
|
|
70
|
+
fill: $unnnic-color-gray-900;
|
|
71
|
+
transform: rotate(45deg) translate(-50%, -50%);
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TooltipProviderProps } from 'reka-ui';
|
|
3
|
+
import { TooltipProvider } from 'reka-ui';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<TooltipProviderProps>();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<TooltipProvider
|
|
10
|
+
v-bind="props"
|
|
11
|
+
:delayDuration="100"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</TooltipProvider>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TooltipTriggerProps } from 'reka-ui';
|
|
3
|
+
import { TooltipTrigger } from 'reka-ui';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<TooltipTriggerProps>();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<TooltipTrigger
|
|
10
|
+
v-bind="props"
|
|
11
|
+
as="div"
|
|
12
|
+
class="unnnic-tooltip-trigger"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</TooltipTrigger>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<style lang="scss" scoped>
|
|
19
|
+
.unnnic-tooltip-trigger {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import AlertCaller from '../components/Alert/AlertCaller.vue';
|
|
2
1
|
import alert from '../utils/call';
|
|
3
2
|
import UnnnicAlert from '../components/Alert/Alert.vue';
|
|
4
|
-
import AlertBanner from '../components/Alert/AlertBanner.vue';
|
|
5
3
|
|
|
6
4
|
export default {
|
|
7
5
|
title: 'Feedback/Alert',
|
|
@@ -20,9 +18,6 @@ export default {
|
|
|
20
18
|
args: {
|
|
21
19
|
type: 'default',
|
|
22
20
|
text: 'Text',
|
|
23
|
-
linkHref: '',
|
|
24
|
-
linkText: '',
|
|
25
|
-
linkTarget: '',
|
|
26
21
|
},
|
|
27
22
|
argTypes: {
|
|
28
23
|
type: {
|
|
@@ -37,42 +32,15 @@ export default {
|
|
|
37
32
|
type: 'text',
|
|
38
33
|
},
|
|
39
34
|
},
|
|
40
|
-
|
|
41
|
-
linkHref: {
|
|
42
|
-
control: {
|
|
43
|
-
type: 'text',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
linkText: {
|
|
48
|
-
control: {
|
|
49
|
-
type: 'text',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
linkTarget: {
|
|
35
|
+
version: {
|
|
54
36
|
control: {
|
|
55
|
-
type: '
|
|
37
|
+
type: 'select',
|
|
56
38
|
},
|
|
57
|
-
|
|
58
|
-
position: {
|
|
59
|
-
if: { arg: 'version' },
|
|
60
|
-
},
|
|
61
|
-
version: {
|
|
62
|
-
control: false,
|
|
39
|
+
options: ['1.1', '2.0'],
|
|
63
40
|
},
|
|
64
41
|
title: {
|
|
65
42
|
if: { arg: 'version' },
|
|
66
43
|
},
|
|
67
|
-
icon: {
|
|
68
|
-
if: { arg: 'version' },
|
|
69
|
-
},
|
|
70
|
-
closeText: {
|
|
71
|
-
if: { arg: 'version' },
|
|
72
|
-
},
|
|
73
|
-
scheme: {
|
|
74
|
-
if: { arg: 'version' },
|
|
75
|
-
},
|
|
76
44
|
},
|
|
77
45
|
};
|
|
78
46
|
|
|
@@ -95,7 +63,7 @@ export const Normal = {
|
|
|
95
63
|
},
|
|
96
64
|
},
|
|
97
65
|
render: (args) => ({
|
|
98
|
-
components: {
|
|
66
|
+
components: { UnnnicAlert },
|
|
99
67
|
setup() {
|
|
100
68
|
return { args };
|
|
101
69
|
},
|
|
@@ -117,7 +85,7 @@ export const Normal = {
|
|
|
117
85
|
|
|
118
86
|
export const InlineComponent = {
|
|
119
87
|
render: (args) => ({
|
|
120
|
-
components: {
|
|
88
|
+
components: { UnnnicAlert },
|
|
121
89
|
setup() {
|
|
122
90
|
return { args };
|
|
123
91
|
},
|
|
@@ -166,7 +134,7 @@ export const WithContainerRef = {
|
|
|
166
134
|
},
|
|
167
135
|
},
|
|
168
136
|
render: (args) => ({
|
|
169
|
-
components: {
|
|
137
|
+
components: { UnnnicAlert },
|
|
170
138
|
setup() {
|
|
171
139
|
return { args };
|
|
172
140
|
},
|
|
@@ -190,32 +158,3 @@ export const WithContainerRef = {
|
|
|
190
158
|
scheme: 'feedback-green',
|
|
191
159
|
},
|
|
192
160
|
};
|
|
193
|
-
|
|
194
|
-
export const Banner = {
|
|
195
|
-
parameters: {
|
|
196
|
-
docs: {
|
|
197
|
-
description: {
|
|
198
|
-
story: `This variation has the additional prop ${'`showCloseButton`'}, false by default.`,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
render: (args) => ({
|
|
203
|
-
components: { AlertBanner },
|
|
204
|
-
setup() {
|
|
205
|
-
return { args };
|
|
206
|
-
},
|
|
207
|
-
methods: {
|
|
208
|
-
unnnicCallAlert() {
|
|
209
|
-
alert.callAlert({
|
|
210
|
-
props: this.args,
|
|
211
|
-
containerRef: this.$refs.divContainer,
|
|
212
|
-
});
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
template: '<alert-banner v-bind="args" />',
|
|
216
|
-
}),
|
|
217
|
-
args: {
|
|
218
|
-
text: 'Text',
|
|
219
|
-
showCloseButton: false,
|
|
220
|
-
},
|
|
221
|
-
};
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
description: {
|
|
9
9
|
component: `Allows users to perform an action or navigate to another page.
|
|
10
10
|
It has styles for various needs and are ideal for directing the user's attention.
|
|
11
|
-
It is divided into
|
|
11
|
+
It is divided into 5 types: Primary, Secondary, Tertiary, Warning, Attention.
|
|
12
12
|
Each of these types has its states.
|
|
13
13
|
<br/>
|
|
14
14
|
<br/>
|
|
@@ -36,14 +36,7 @@ export default {
|
|
|
36
36
|
argTypes: {
|
|
37
37
|
type: {
|
|
38
38
|
control: { type: 'select' },
|
|
39
|
-
options: [
|
|
40
|
-
'primary',
|
|
41
|
-
'secondary',
|
|
42
|
-
'tertiary',
|
|
43
|
-
'alternative',
|
|
44
|
-
'warning',
|
|
45
|
-
'attention',
|
|
46
|
-
],
|
|
39
|
+
options: ['primary', 'secondary', 'tertiary', 'warning', 'attention'],
|
|
47
40
|
},
|
|
48
41
|
size: {
|
|
49
42
|
control: { type: 'select' },
|
|
@@ -75,74 +68,71 @@ export default {
|
|
|
75
68
|
|
|
76
69
|
export const Primary = {
|
|
77
70
|
args: {
|
|
78
|
-
text: '
|
|
71
|
+
text: 'Text',
|
|
79
72
|
},
|
|
80
73
|
};
|
|
81
74
|
|
|
82
75
|
export const Secondary = {
|
|
83
76
|
args: {
|
|
84
77
|
type: 'secondary',
|
|
85
|
-
text: '
|
|
78
|
+
text: 'Text',
|
|
86
79
|
},
|
|
87
80
|
};
|
|
88
81
|
|
|
89
82
|
export const Tertiary = {
|
|
90
83
|
args: {
|
|
91
84
|
type: 'tertiary',
|
|
92
|
-
text: '
|
|
85
|
+
text: 'Text',
|
|
93
86
|
},
|
|
94
87
|
};
|
|
95
88
|
|
|
96
|
-
export const
|
|
89
|
+
export const Warning = {
|
|
90
|
+
parameters: {
|
|
91
|
+
docs: {
|
|
92
|
+
description: {
|
|
93
|
+
story: `This variation aims to highlight actions that could be destructive or have negative consequences if taken.
|
|
94
|
+
For example: Deleting an element.`,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
97
98
|
args: {
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
type: 'warning',
|
|
100
|
+
text: 'Text',
|
|
100
101
|
},
|
|
101
102
|
};
|
|
102
103
|
|
|
103
|
-
export const
|
|
104
|
+
export const Attention = {
|
|
104
105
|
args: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
iconsFilled: true,
|
|
106
|
+
type: 'attention',
|
|
107
|
+
text: 'Text',
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
export const
|
|
111
|
+
export const Loading = {
|
|
112
112
|
args: {
|
|
113
|
-
|
|
113
|
+
loading: true,
|
|
114
|
+
text: 'Text',
|
|
114
115
|
},
|
|
115
116
|
};
|
|
116
117
|
|
|
117
|
-
export const
|
|
118
|
+
export const WithIcon = {
|
|
118
119
|
args: {
|
|
119
|
-
type: 'alternative',
|
|
120
|
-
iconLeft: 'add',
|
|
121
120
|
text: 'Text',
|
|
121
|
+
iconLeft: 'add',
|
|
122
122
|
},
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
export const
|
|
126
|
-
parameters: {
|
|
127
|
-
docs: {
|
|
128
|
-
description: {
|
|
129
|
-
story: `This variation aims to highlight actions that could be destructive or have negative consequences if taken.
|
|
130
|
-
For example: Deleting an element.`,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
},
|
|
125
|
+
export const FilledIcon = {
|
|
134
126
|
args: {
|
|
135
|
-
type: 'warning',
|
|
136
|
-
iconLeft: 'add',
|
|
137
127
|
text: 'Text',
|
|
128
|
+
iconLeft: 'play_arrow',
|
|
129
|
+
iconsFilled: true,
|
|
138
130
|
},
|
|
139
131
|
};
|
|
140
132
|
|
|
141
|
-
export const
|
|
133
|
+
export const OnlyIcon = {
|
|
142
134
|
args: {
|
|
143
|
-
|
|
144
|
-
iconLeft: 'add',
|
|
145
|
-
text: 'Text',
|
|
135
|
+
iconCenter: 'add',
|
|
146
136
|
},
|
|
147
137
|
};
|
|
148
138
|
|
|
@@ -15,12 +15,12 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
args: { disabled: false
|
|
18
|
+
args: { disabled: false },
|
|
19
19
|
argTypes: {
|
|
20
20
|
modelValue: { control: 'inline-radio', options: [true, false, 'less'] },
|
|
21
21
|
disabled: { control: 'boolean' },
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
label: { control: 'text' },
|
|
23
|
+
helper: { control: 'text' },
|
|
24
24
|
},
|
|
25
25
|
render: (args) => ({
|
|
26
26
|
components: {
|
|
@@ -34,6 +34,7 @@ export default {
|
|
|
34
34
|
return { args, updateModelValue };
|
|
35
35
|
},
|
|
36
36
|
template: `
|
|
37
|
+
<pre>v-model: {{ args.modelValue }}</pre>
|
|
37
38
|
<UnnnicCheckbox v-bind="args" @update:modelValue="updateModelValue"/>
|
|
38
39
|
`,
|
|
39
40
|
}),
|
|
@@ -42,18 +43,22 @@ export default {
|
|
|
42
43
|
export const Default = {
|
|
43
44
|
args: {
|
|
44
45
|
modelValue: false,
|
|
46
|
+
label: 'Label',
|
|
47
|
+
helper: 'Helper',
|
|
45
48
|
},
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export const Selected = {
|
|
49
52
|
args: {
|
|
50
53
|
modelValue: true,
|
|
54
|
+
label: 'Label',
|
|
51
55
|
},
|
|
52
56
|
};
|
|
53
57
|
|
|
54
|
-
export const
|
|
58
|
+
export const Less = {
|
|
55
59
|
args: {
|
|
56
60
|
modelValue: 'less',
|
|
61
|
+
label: 'Label',
|
|
57
62
|
},
|
|
58
63
|
};
|
|
59
64
|
|
|
@@ -61,6 +66,7 @@ export const Disabled = {
|
|
|
61
66
|
args: {
|
|
62
67
|
modelValue: false,
|
|
63
68
|
disabled: true,
|
|
69
|
+
label: 'Label',
|
|
64
70
|
},
|
|
65
71
|
};
|
|
66
72
|
|
|
@@ -68,5 +74,6 @@ export const DisabledSelected = {
|
|
|
68
74
|
args: {
|
|
69
75
|
modelValue: true,
|
|
70
76
|
disabled: true,
|
|
77
|
+
label: 'Label',
|
|
71
78
|
},
|
|
72
79
|
};
|