@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,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section
|
|
3
|
+
:class="[
|
|
4
|
+
'unnnic-checkbox-group__container',
|
|
5
|
+
`unnnic-checkbox-group--state-${state}`,
|
|
6
|
+
]"
|
|
7
|
+
>
|
|
8
|
+
<UnnnicLabel
|
|
9
|
+
v-if="label"
|
|
10
|
+
:label="label"
|
|
11
|
+
:tooltip="labelTooltip"
|
|
12
|
+
:useHtmlTooltip="labelUseHtmlTooltip"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<section class="unnnic-checkbox-group__checkboxes">
|
|
16
|
+
<slot />
|
|
17
|
+
</section>
|
|
18
|
+
|
|
19
|
+
<footer
|
|
20
|
+
v-if="helper"
|
|
21
|
+
class="unnnic-checkbox-group__helper"
|
|
22
|
+
>
|
|
23
|
+
{{ helper }}
|
|
24
|
+
</footer>
|
|
25
|
+
</section>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup>
|
|
29
|
+
import UnnnicLabel from '../Label/Label.vue';
|
|
30
|
+
|
|
31
|
+
const props = defineProps({
|
|
32
|
+
state: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'horizontal',
|
|
35
|
+
validator(value) {
|
|
36
|
+
return ['horizontal', 'vertical'].includes(value);
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
label: {
|
|
41
|
+
type: String,
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
labelTooltip: {
|
|
45
|
+
type: String,
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
labelUseHtmlTooltip: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
helper: {
|
|
53
|
+
type: String,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="scss" scoped>
|
|
59
|
+
@use '@/assets/scss/unnnic' as *;
|
|
60
|
+
|
|
61
|
+
.unnnic-checkbox-group {
|
|
62
|
+
&__container {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__checkboxes {
|
|
68
|
+
margin-top: $unnnic-space-3;
|
|
69
|
+
|
|
70
|
+
display: flex;
|
|
71
|
+
gap: $unnnic-space-4 $unnnic-space-6;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__helper {
|
|
75
|
+
margin-top: $unnnic-space-2;
|
|
76
|
+
font: $unnnic-font-caption-2;
|
|
77
|
+
color: $unnnic-color-fg-base;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&--state-horizontal {
|
|
81
|
+
.unnnic-checkbox-group__checkboxes {
|
|
82
|
+
flex-direction: row;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&--state-vertical {
|
|
87
|
+
.unnnic-checkbox-group__checkboxes {
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.unnnic-checkbox-group__helper {
|
|
92
|
+
margin-top: $unnnic-space-3;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -1,198 +1,192 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
2
|
+
<Drawer
|
|
3
|
+
:open="modelValue"
|
|
4
|
+
@update:open="$emit('update:modelValue', $event)"
|
|
4
5
|
class="unnnic-drawer"
|
|
5
6
|
data-testid="drawer"
|
|
6
7
|
>
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/>
|
|
13
|
-
<Transition
|
|
14
|
-
appear
|
|
15
|
-
name="drawer"
|
|
8
|
+
<DrawerContent
|
|
9
|
+
:showOverlay="!withoutOverlay"
|
|
10
|
+
data-testid="drawer-container"
|
|
11
|
+
:size="mappedSize"
|
|
12
|
+
:class="['unnnic-drawer__container', `unnnic-drawer__container--${size}`]"
|
|
16
13
|
>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`unnnic-drawer__container--${size}`,
|
|
23
|
-
]"
|
|
24
|
-
>
|
|
25
|
-
<header class="unnnic-drawer__header">
|
|
26
|
-
<section class="unnnic-drawer__title-container">
|
|
27
|
-
<slot
|
|
28
|
-
v-if="$slots.title"
|
|
29
|
-
name="title"
|
|
30
|
-
/>
|
|
31
|
-
|
|
32
|
-
<template v-else>
|
|
33
|
-
<h1
|
|
34
|
-
class="unnnic-drawer__title"
|
|
35
|
-
data-testid="drawer-title"
|
|
36
|
-
>
|
|
37
|
-
{{ title }}
|
|
38
|
-
</h1>
|
|
39
|
-
<p
|
|
40
|
-
v-if="description"
|
|
41
|
-
class="unnnic-drawer__description"
|
|
42
|
-
data-testid="drawer-description"
|
|
43
|
-
>
|
|
44
|
-
{{ description }}
|
|
45
|
-
</p>
|
|
46
|
-
</template>
|
|
47
|
-
</section>
|
|
48
|
-
<UnnnicIcon
|
|
49
|
-
class="unnnic-drawer__close"
|
|
50
|
-
data-testid="close-icon"
|
|
51
|
-
:icon="closeIcon"
|
|
52
|
-
size="avatar-nano"
|
|
53
|
-
clickable
|
|
54
|
-
@click="back"
|
|
14
|
+
<DrawerHeader class="unnnic-drawer__header">
|
|
15
|
+
<section class="unnnic-drawer__title-container">
|
|
16
|
+
<slot
|
|
17
|
+
v-if="$slots.title"
|
|
18
|
+
name="title"
|
|
55
19
|
/>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
20
|
+
|
|
21
|
+
<template v-else>
|
|
22
|
+
<DrawerTitle
|
|
23
|
+
class="unnnic-drawer__title"
|
|
24
|
+
data-testid="drawer-title"
|
|
25
|
+
>
|
|
26
|
+
{{ title }}
|
|
27
|
+
</DrawerTitle>
|
|
28
|
+
<DrawerDescription
|
|
29
|
+
v-if="description"
|
|
30
|
+
class="unnnic-drawer__description"
|
|
31
|
+
data-testid="drawer-description"
|
|
32
|
+
>
|
|
33
|
+
{{ description }}
|
|
34
|
+
</DrawerDescription>
|
|
35
|
+
</template>
|
|
59
36
|
</section>
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
v-if="primaryButtonText"
|
|
77
|
-
data-testid="primary-button"
|
|
78
|
-
size="large"
|
|
79
|
-
:disabled="disabledPrimaryButton"
|
|
80
|
-
:loading="loadingPrimaryButton"
|
|
81
|
-
:type="primaryButtonType"
|
|
82
|
-
:text="primaryButtonText"
|
|
83
|
-
@click="$emit('primaryButtonClick')"
|
|
84
|
-
/>
|
|
85
|
-
</footer>
|
|
37
|
+
<template #close>
|
|
38
|
+
<DrawerClose>
|
|
39
|
+
<UnnnicButton
|
|
40
|
+
class="unnnic-drawer__close-icon"
|
|
41
|
+
data-testid="close-icon"
|
|
42
|
+
:iconCenter="closeIcon"
|
|
43
|
+
size="small"
|
|
44
|
+
type="tertiary"
|
|
45
|
+
@click="back"
|
|
46
|
+
/>
|
|
47
|
+
</DrawerClose>
|
|
48
|
+
</template>
|
|
49
|
+
</DrawerHeader>
|
|
50
|
+
|
|
51
|
+
<section class="unnnic-drawer__content">
|
|
52
|
+
<slot name="content"></slot>
|
|
86
53
|
</section>
|
|
87
|
-
|
|
88
|
-
|
|
54
|
+
|
|
55
|
+
<DrawerFooter
|
|
56
|
+
v-if="showFooter"
|
|
57
|
+
class="unnnic-drawer__footer"
|
|
58
|
+
data-testid="footer"
|
|
59
|
+
>
|
|
60
|
+
<UnnnicButton
|
|
61
|
+
v-if="secondaryButtonText"
|
|
62
|
+
data-testid="secondary-button"
|
|
63
|
+
size="large"
|
|
64
|
+
type="tertiary"
|
|
65
|
+
:disabled="disabledSecondaryButton"
|
|
66
|
+
:loading="loadingSecondaryButton"
|
|
67
|
+
:text="secondaryButtonText"
|
|
68
|
+
@click="$emit('secondaryButtonClick')"
|
|
69
|
+
/>
|
|
70
|
+
<UnnnicButton
|
|
71
|
+
v-if="primaryButtonText"
|
|
72
|
+
data-testid="primary-button"
|
|
73
|
+
size="large"
|
|
74
|
+
:disabled="disabledPrimaryButton"
|
|
75
|
+
:loading="loadingPrimaryButton"
|
|
76
|
+
:type="primaryButtonType"
|
|
77
|
+
:text="primaryButtonText"
|
|
78
|
+
@click="$emit('primaryButtonClick')"
|
|
79
|
+
/>
|
|
80
|
+
</DrawerFooter>
|
|
81
|
+
</DrawerContent>
|
|
82
|
+
</Drawer>
|
|
89
83
|
</template>
|
|
90
84
|
|
|
91
|
-
<script>
|
|
92
|
-
import
|
|
93
|
-
import UnnnicButton from '../Button/Button.vue';
|
|
85
|
+
<script setup>
|
|
86
|
+
import { computed } from 'vue';
|
|
94
87
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
import UnnnicButton from '../Button/Button.vue';
|
|
89
|
+
import {
|
|
90
|
+
Drawer,
|
|
91
|
+
DrawerContent,
|
|
92
|
+
DrawerHeader,
|
|
93
|
+
DrawerFooter,
|
|
94
|
+
DrawerClose,
|
|
95
|
+
DrawerTitle,
|
|
96
|
+
DrawerDescription,
|
|
97
|
+
} from '../ui/drawer';
|
|
98
|
+
|
|
99
|
+
const props = defineProps({
|
|
100
|
+
title: {
|
|
101
|
+
type: String,
|
|
102
|
+
required: true,
|
|
100
103
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
required: true,
|
|
105
|
-
},
|
|
106
|
-
description: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: '',
|
|
109
|
-
},
|
|
110
|
-
disabledPrimaryButton: {
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: false,
|
|
113
|
-
},
|
|
114
|
-
disabledSecondaryButton: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: false,
|
|
117
|
-
},
|
|
118
|
-
loadingPrimaryButton: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false,
|
|
121
|
-
},
|
|
122
|
-
loadingSecondaryButton: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: false,
|
|
125
|
-
},
|
|
126
|
-
primaryButtonText: {
|
|
127
|
-
type: String,
|
|
128
|
-
default: '',
|
|
129
|
-
},
|
|
130
|
-
primaryButtonType: {
|
|
131
|
-
type: String,
|
|
132
|
-
default: 'primary',
|
|
133
|
-
},
|
|
134
|
-
secondaryButtonText: {
|
|
135
|
-
type: String,
|
|
136
|
-
default: '',
|
|
137
|
-
},
|
|
138
|
-
size: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: 'md',
|
|
141
|
-
validator(val) {
|
|
142
|
-
return ['md', 'lg', 'xl', 'gt'].includes(val);
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
wide: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
default: false,
|
|
148
|
-
},
|
|
149
|
-
modelValue: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
required: true,
|
|
152
|
-
},
|
|
153
|
-
withoutOverlay: {
|
|
154
|
-
type: Boolean,
|
|
155
|
-
default: false,
|
|
156
|
-
},
|
|
157
|
-
closeIcon: {
|
|
158
|
-
type: String,
|
|
159
|
-
default: 'arrow_back',
|
|
160
|
-
},
|
|
161
|
-
distinctCloseBack: {
|
|
162
|
-
type: Boolean,
|
|
163
|
-
default: false,
|
|
164
|
-
},
|
|
104
|
+
description: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: '',
|
|
165
107
|
},
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
showDrawer: true,
|
|
170
|
-
};
|
|
108
|
+
disabledPrimaryButton: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false,
|
|
171
111
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
112
|
+
disabledSecondaryButton: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: false,
|
|
176
115
|
},
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
116
|
+
loadingPrimaryButton: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false,
|
|
119
|
+
},
|
|
120
|
+
loadingSecondaryButton: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false,
|
|
123
|
+
},
|
|
124
|
+
primaryButtonText: {
|
|
125
|
+
type: String,
|
|
126
|
+
default: '',
|
|
127
|
+
},
|
|
128
|
+
primaryButtonType: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: 'primary',
|
|
131
|
+
},
|
|
132
|
+
secondaryButtonText: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: '',
|
|
135
|
+
},
|
|
136
|
+
size: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: 'md',
|
|
139
|
+
validator(val) {
|
|
140
|
+
return ['md', 'lg', 'xl', 'gt'].includes(val);
|
|
194
141
|
},
|
|
195
142
|
},
|
|
143
|
+
modelValue: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
required: true,
|
|
146
|
+
},
|
|
147
|
+
withoutOverlay: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false,
|
|
150
|
+
},
|
|
151
|
+
closeIcon: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: 'arrow_forward',
|
|
154
|
+
},
|
|
155
|
+
distinctCloseBack: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: false,
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
const emit = defineEmits([
|
|
162
|
+
'primaryButtonClick',
|
|
163
|
+
'secondaryButtonClick',
|
|
164
|
+
'close',
|
|
165
|
+
'back',
|
|
166
|
+
]);
|
|
167
|
+
const showFooter = computed(
|
|
168
|
+
() => !!(props.primaryButtonText || props.secondaryButtonText),
|
|
169
|
+
);
|
|
170
|
+
const mappedSize = computed(() => {
|
|
171
|
+
const sizes = {
|
|
172
|
+
md: 'medium',
|
|
173
|
+
lg: 'large',
|
|
174
|
+
xl: 'extra-large',
|
|
175
|
+
gt: 'giant',
|
|
176
|
+
};
|
|
177
|
+
return sizes[props.size] || 'medium';
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
const close = () => {
|
|
181
|
+
emit('close');
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const back = () => {
|
|
185
|
+
if (props.distinctCloseBack) {
|
|
186
|
+
emit('back');
|
|
187
|
+
} else {
|
|
188
|
+
close();
|
|
189
|
+
}
|
|
196
190
|
};
|
|
197
191
|
</script>
|
|
198
192
|
|
|
@@ -204,107 +198,16 @@ export default {
|
|
|
204
198
|
box-sizing: border-box;
|
|
205
199
|
}
|
|
206
200
|
|
|
207
|
-
@keyframes drawerOpen {
|
|
208
|
-
from {
|
|
209
|
-
transform: translateX(100%);
|
|
210
|
-
}
|
|
211
|
-
to {
|
|
212
|
-
transform: translateX(0);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
@keyframes drawerClose {
|
|
217
|
-
from {
|
|
218
|
-
transform: translateX(0);
|
|
219
|
-
}
|
|
220
|
-
to {
|
|
221
|
-
transform: translateX(100%);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.drawer-enter-active,
|
|
226
|
-
.drawer-enter-to {
|
|
227
|
-
animation: drawerOpen 200ms ease-in;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.drawer-leave-active,
|
|
231
|
-
.drawer-leave-to {
|
|
232
|
-
display: none;
|
|
233
|
-
animation: drawerClose 200ms ease-in;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
201
|
.unnnic-drawer {
|
|
237
|
-
width: 100vw;
|
|
238
|
-
height: 100vh;
|
|
239
|
-
position: fixed;
|
|
240
|
-
left: 0;
|
|
241
|
-
top: 0;
|
|
242
202
|
z-index: 8;
|
|
243
203
|
}
|
|
244
204
|
|
|
245
|
-
.unnnic-drawer__overlay {
|
|
246
|
-
z-index: 9;
|
|
247
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 100%;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
205
|
.unnnic-drawer__container {
|
|
253
206
|
z-index: 10;
|
|
254
|
-
top: 0;
|
|
255
|
-
right: 0;
|
|
256
|
-
position: fixed;
|
|
257
|
-
display: flex;
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
font-family: $unnnic-font-family-secondary;
|
|
260
|
-
justify-content: space-between;
|
|
261
|
-
height: 100%;
|
|
262
|
-
background-color: $unnnic-color-neutral-white;
|
|
263
207
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
&--lg {
|
|
269
|
-
width: 50%;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&--xl {
|
|
273
|
-
width: 66%;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&--gt {
|
|
277
|
-
width: 75%;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.unnnic-drawer__header {
|
|
208
|
+
.unnnic-drawer__close-icon {
|
|
209
|
+
margin: $unnnic-spacing-nano;
|
|
281
210
|
display: flex;
|
|
282
|
-
justify-content: space-between;
|
|
283
|
-
border-bottom: 1px solid $unnnic-color-neutral-soft;
|
|
284
|
-
padding: $unnnic-spacing-md;
|
|
285
|
-
.unnnic-drawer__title-container {
|
|
286
|
-
.unnnic-drawer__title {
|
|
287
|
-
color: $unnnic-color-neutral-darkest;
|
|
288
|
-
font-family: $unnnic-font-family-secondary;
|
|
289
|
-
font-size: $unnnic-font-size-title-sm;
|
|
290
|
-
font-weight: $unnnic-font-weight-black;
|
|
291
|
-
line-height: $unnnic-line-height-large * 1.75;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.unnnic-drawer__description {
|
|
295
|
-
color: $unnnic-color-neutral-cloudy;
|
|
296
|
-
font-family: $unnnic-font-family-secondary;
|
|
297
|
-
font-size: $unnnic-font-size-body-gt;
|
|
298
|
-
font-weight: $unnnic-font-weight-regular;
|
|
299
|
-
line-height: $unnnic-line-height-large * 1.375;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.unnnic-drawer__close {
|
|
304
|
-
margin: $unnnic-spacing-nano;
|
|
305
|
-
transform: rotate(180deg);
|
|
306
|
-
display: flex;
|
|
307
|
-
}
|
|
308
211
|
}
|
|
309
212
|
|
|
310
213
|
.unnnic-drawer__content {
|