@weni/unnnic-system 3.11.1-alpha.2 → 3.11.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.
Files changed (190) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/components/Alert/Alert.vue.d.ts +3 -3
  3. package/dist/components/Alert/Version1dot1.vue.d.ts +1 -1
  4. package/dist/components/AudioRecorder/AudioHandler.vue.d.ts +18 -109
  5. package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +36 -218
  6. package/dist/components/AvatarIcon/AvatarIcon.vue.d.ts +1 -1
  7. package/dist/components/Button/Button.vue.d.ts +2 -2
  8. package/dist/components/Card/AccountCard.vue.d.ts +2 -2
  9. package/dist/components/Card/Card.vue.d.ts +29 -120
  10. package/dist/components/Card/CardCompany.vue.d.ts +2 -2
  11. package/dist/components/Card/CardStatusesContainer.vue.d.ts +19 -110
  12. package/dist/components/Card/ContentCard.vue.d.ts +1 -1
  13. package/dist/components/Card/DashCard.vue.d.ts +2 -2
  14. package/dist/components/Card/DefaultCard.vue.d.ts +1 -1
  15. package/dist/components/Card/MarketplaceCard.vue.d.ts +1 -1
  16. package/dist/components/Card/SimpleCard.vue.d.ts +18 -109
  17. package/dist/components/Card/StatusCard.vue.d.ts +1 -1
  18. package/dist/components/Card/TitleCard.vue.d.ts +18 -109
  19. package/dist/components/CardImage/CardImage.vue.d.ts +5 -5
  20. package/dist/components/CardInformation/CardInformation.vue.d.ts +19 -110
  21. package/dist/components/CardProject/CardProject.vue.d.ts +2 -2
  22. package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
  23. package/dist/components/Carousel/TagCarousel.vue.d.ts +2 -2
  24. package/dist/components/ChartBar/ChartBar.vue.d.ts +24 -115
  25. package/dist/components/ChartLine/ChartLine.vue.d.ts +18 -109
  26. package/dist/components/ChatText/ChatText.vue.d.ts +18 -109
  27. package/dist/components/ChatsContact/ChatsContact.vue.d.ts +6 -6
  28. package/dist/components/ChatsMessage/ChatsMessage.vue.d.ts +18 -109
  29. package/dist/components/ChatsUserAvatar/ChatsUserAvatar.vue.d.ts +1 -1
  30. package/dist/components/Checkbox/Checkbox.vue.d.ts +3 -3
  31. package/dist/components/DataArea/DataArea.vue.d.ts +18 -109
  32. package/dist/components/DataTable/index.vue.d.ts +1 -1
  33. package/dist/components/DataTable/index.vue.d.ts.map +1 -1
  34. package/dist/components/DateFilter/DateFilter.vue.d.ts +10 -10
  35. package/dist/components/DatePicker/DatePicker.vue.d.ts +69 -249
  36. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  37. package/dist/components/Drawer/Drawer.vue.d.ts +207 -35
  38. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  39. package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -1
  40. package/dist/components/FormElement/FormElement.vue.d.ts +4 -4
  41. package/dist/components/ImportCard/ImportCard.vue.d.ts +6 -6
  42. package/dist/components/Input/Input.vue.d.ts +9 -9
  43. package/dist/components/Input/TextInput.vue.d.ts +2 -2
  44. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +47 -911
  45. package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts.map +1 -1
  46. package/dist/components/InputNext/InputNext.vue.d.ts +3 -3
  47. package/dist/components/Modal/Modal.vue.d.ts +1 -1
  48. package/dist/components/ModalDialog/ModalDialog.vue.d.ts +35 -209
  49. package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
  50. package/dist/components/ModalNext/ModalNext.vue.d.ts +15 -15
  51. package/dist/components/ModalUpload/ModalUpload.vue.d.ts +12 -12
  52. package/dist/components/MoodRating/MoodRating.vue.d.ts +18 -109
  53. package/dist/components/MultiSelect/MultiSelect.vue.d.ts +18 -18
  54. package/dist/components/Pagination/Pagination.vue.d.ts +6 -6
  55. package/dist/components/Radio/Radio.vue.d.ts +6 -6
  56. package/dist/components/Select/SelectItem.vue.d.ts +1 -1
  57. package/dist/components/SelectSmart/SelectSmart.vue.d.ts +12 -12
  58. package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +2 -2
  59. package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +6 -6
  60. package/dist/components/SelectTime/index.vue.d.ts +3 -3
  61. package/dist/components/Sidebar/SidebarItem.vue.d.ts +2 -2
  62. package/dist/components/Slider/Slider.vue.d.ts +18 -109
  63. package/dist/components/Switch/Switch.vue.d.ts +2 -2
  64. package/dist/components/Tab/Tab.vue.d.ts +18 -109
  65. package/dist/components/TableNext/TableBodyCell.vue.d.ts +2 -2
  66. package/dist/components/TableNext/TablePagination.vue.d.ts +6 -6
  67. package/dist/components/Tag/DefaultTag.vue.d.ts +1 -1
  68. package/dist/components/Tag/Tag.vue.d.ts +2 -2
  69. package/dist/components/TextArea/TextArea.vue.d.ts +5 -5
  70. package/dist/components/Toast/Toast.vue.d.ts +1 -1
  71. package/dist/components/ToolTip/ToolTip.vue.d.ts +18 -109
  72. package/dist/components/ToolTip/ToolTip.vue.d.ts.map +1 -1
  73. package/dist/components/Tour/Tour.vue.d.ts +6 -6
  74. package/dist/components/Tour/TourPopover.vue.d.ts +6 -6
  75. package/dist/components/UploadArea/UploadArea.vue.d.ts +6 -6
  76. package/dist/components/ui/popover/PopoverContent.vue.d.ts +2 -2
  77. package/dist/components/ui/popover/PopoverContent.vue.d.ts.map +1 -1
  78. package/dist/components/ui/tabs/TabsTrigger.vue.d.ts.map +1 -1
  79. package/dist/{es-2f0d1dd1.mjs → es-042a0d15.mjs} +1 -1
  80. package/dist/{index-7d496127.mjs → index-fd0ea6b9.mjs} +51896 -54819
  81. package/dist/{pt-br-ec24bd23.mjs → pt-br-3b7cced5.mjs} +1 -1
  82. package/dist/style.css +1 -1
  83. package/dist/unnnic.mjs +196 -232
  84. package/dist/unnnic.umd.js +46 -50
  85. package/package.json +1 -2
  86. package/src/assets/scss/tailwind.scss +0 -8
  87. package/src/components/DatePicker/DatePicker.vue +628 -516
  88. package/src/components/DatePicker/__tests__/DatePicker.spec.js +227 -0
  89. package/src/components/Drawer/Drawer.vue +270 -177
  90. package/src/components/Drawer/__tests__/Drawer.spec.js +43 -32
  91. package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +19 -18
  92. package/src/components/InputDatePicker/InputDatePicker.vue +149 -183
  93. package/src/components/InputDatePicker/__test__/InputDatePicker.spec.js +159 -0
  94. package/src/components/ModalDialog/ModalDialog.vue +148 -62
  95. package/src/components/ModalDialog/__tests__/ModalDialog.spec.js +221 -11
  96. package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +22 -1
  97. package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +1 -3
  98. package/src/components/ToolTip/ToolTip.vue +188 -41
  99. package/src/components/ToolTip/__tests__/ToolTip.spec.js +61 -345
  100. package/src/components/index.ts +12 -86
  101. package/src/components/ui/tabs/TabsTrigger.vue +20 -4
  102. package/src/stories/DatePicker.stories.js +71 -0
  103. package/src/stories/Drawer.stories.js +1 -1
  104. package/src/stories/InputDatePicker.stories.js +22 -0
  105. package/src/stories/ModalDialog.mdx +0 -3
  106. package/src/stories/ModalDialog.stories.js +1 -1
  107. package/src/stories/Tabs.stories.js +1 -1
  108. package/dist/components/index.d.ts +0 -25946
  109. package/dist/components/index.d.ts.map +0 -1
  110. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -23
  111. package/dist/components/ui/dialog/Dialog.vue.d.ts.map +0 -1
  112. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -19
  113. package/dist/components/ui/dialog/DialogClose.vue.d.ts.map +0 -1
  114. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -43
  115. package/dist/components/ui/dialog/DialogContent.vue.d.ts.map +0 -1
  116. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -25
  117. package/dist/components/ui/dialog/DialogFooter.vue.d.ts.map +0 -1
  118. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -29
  119. package/dist/components/ui/dialog/DialogHeader.vue.d.ts.map +0 -1
  120. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -23
  121. package/dist/components/ui/dialog/DialogTitle.vue.d.ts.map +0 -1
  122. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -19
  123. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts.map +0 -1
  124. package/dist/components/ui/dialog/index.d.ts +0 -8
  125. package/dist/components/ui/dialog/index.d.ts.map +0 -1
  126. package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -35
  127. package/dist/components/ui/drawer/Drawer.vue.d.ts.map +0 -1
  128. package/dist/components/ui/drawer/DrawerClose.vue.d.ts +0 -19
  129. package/dist/components/ui/drawer/DrawerClose.vue.d.ts.map +0 -1
  130. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -42
  131. package/dist/components/ui/drawer/DrawerContent.vue.d.ts.map +0 -1
  132. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -23
  133. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts.map +0 -1
  134. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -22
  135. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts.map +0 -1
  136. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -25
  137. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts.map +0 -1
  138. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -8
  139. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts.map +0 -1
  140. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -23
  141. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts.map +0 -1
  142. package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts +0 -19
  143. package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts.map +0 -1
  144. package/dist/components/ui/drawer/index.d.ts +0 -11
  145. package/dist/components/ui/drawer/index.d.ts.map +0 -1
  146. package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts +0 -26
  147. package/dist/components/ui/segmented-control/SegmentedControlList.vue.d.ts.map +0 -1
  148. package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts +0 -24
  149. package/dist/components/ui/segmented-control/SegmentedControlTrigger.vue.d.ts.map +0 -1
  150. package/dist/components/ui/segmented-control/index.d.ts +0 -5
  151. package/dist/components/ui/segmented-control/index.d.ts.map +0 -1
  152. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +0 -23
  153. package/dist/components/ui/tooltip/Tooltip.vue.d.ts.map +0 -1
  154. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +0 -31
  155. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts.map +0 -1
  156. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -19
  157. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts.map +0 -1
  158. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -19
  159. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts.map +0 -1
  160. package/dist/components/ui/tooltip/index.d.ts +0 -5
  161. package/dist/components/ui/tooltip/index.d.ts.map +0 -1
  162. package/src/components/ui/dialog/Dialog.vue +0 -15
  163. package/src/components/ui/dialog/DialogClose.vue +0 -25
  164. package/src/components/ui/dialog/DialogContent.vue +0 -133
  165. package/src/components/ui/dialog/DialogFooter.vue +0 -46
  166. package/src/components/ui/dialog/DialogHeader.vue +0 -79
  167. package/src/components/ui/dialog/DialogTitle.vue +0 -34
  168. package/src/components/ui/dialog/DialogTrigger.vue +0 -12
  169. package/src/components/ui/dialog/index.ts +0 -7
  170. package/src/components/ui/drawer/Drawer.vue +0 -27
  171. package/src/components/ui/drawer/DrawerClose.vue +0 -37
  172. package/src/components/ui/drawer/DrawerContent.vue +0 -102
  173. package/src/components/ui/drawer/DrawerDescription.vue +0 -40
  174. package/src/components/ui/drawer/DrawerFooter.vue +0 -38
  175. package/src/components/ui/drawer/DrawerHeader.vue +0 -57
  176. package/src/components/ui/drawer/DrawerOverlay.vue +0 -34
  177. package/src/components/ui/drawer/DrawerTitle.vue +0 -37
  178. package/src/components/ui/drawer/DrawerTrigger.vue +0 -31
  179. package/src/components/ui/drawer/index.ts +0 -10
  180. package/src/components/ui/segmented-control/SegmentedControlList.vue +0 -51
  181. package/src/components/ui/segmented-control/SegmentedControlTrigger.vue +0 -81
  182. package/src/components/ui/segmented-control/index.ts +0 -4
  183. package/src/components/ui/tooltip/Tooltip.vue +0 -15
  184. package/src/components/ui/tooltip/TooltipContent.vue +0 -73
  185. package/src/components/ui/tooltip/TooltipProvider.vue +0 -15
  186. package/src/components/ui/tooltip/TooltipTrigger.vue +0 -22
  187. package/src/components/ui/tooltip/index.ts +0 -4
  188. package/src/stories/Dialog.stories.js +0 -832
  189. package/src/stories/DrawerNext.stories.js +0 -610
  190. package/src/stories/SegmentedControl.stories.js +0 -253
@@ -1,102 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { DialogContentEmits, DialogContentProps } from 'reka-ui';
3
- import { type HTMLAttributes } from 'vue';
4
- import { reactiveOmit } from '@vueuse/core';
5
- import { useForwardPropsEmits } from 'reka-ui';
6
- import { DrawerContent, DrawerPortal } from 'vaul-vue';
7
- import { cn } from '@/lib/utils';
8
- import DrawerOverlay from './DrawerOverlay.vue';
9
-
10
- defineOptions({
11
- name: 'UnnnicDrawerContent',
12
- });
13
-
14
- const props = withDefaults(
15
- defineProps<
16
- DialogContentProps & {
17
- class?: HTMLAttributes['class'];
18
- size?: 'medium' | 'large' | 'extra-large' | 'giant';
19
- showOverlay?: boolean;
20
- }
21
- >(),
22
- {
23
- size: 'medium',
24
- showOverlay: true,
25
- },
26
- );
27
- const emits = defineEmits<DialogContentEmits>();
28
-
29
- const delegatedProps = reactiveOmit(props, 'class');
30
- const forwardedProps = useForwardPropsEmits(delegatedProps, emits);
31
- </script>
32
-
33
- <template>
34
- <DrawerPortal>
35
- <DrawerOverlay v-if="showOverlay" />
36
- <DrawerContent
37
- v-bind="forwardedProps"
38
- :class="
39
- cn(
40
- 'unnnic-drawer__content',
41
- `unnnic-drawer__content--${props.size}`,
42
- props.class,
43
- )
44
- "
45
- :style="{ '--initial-transform': 'calc(100% + 8px)' }"
46
- >
47
- <slot />
48
- </DrawerContent>
49
- </DrawerPortal>
50
- </template>
51
-
52
- <style lang="scss" scoped>
53
- @use '@/assets/scss/unnnic' as *;
54
-
55
- $drawer-space: $unnnic-space-2;
56
-
57
- .unnnic-drawer__content {
58
- -webkit-user-select: unset;
59
- user-select: unset;
60
- will-change: unset;
61
-
62
- &::after {
63
- display: none;
64
- }
65
-
66
- position: fixed;
67
- top: $drawer-space;
68
- right: $drawer-space;
69
- z-index: 50;
70
-
71
- display: flex;
72
- flex-direction: column;
73
-
74
- height: calc(100% - $drawer-space * 2);
75
-
76
- border-radius: $unnnic-radius-4;
77
- border: 1px solid $unnnic-color-border-soft;
78
- background-color: $unnnic-color-bg-base;
79
-
80
- &--medium {
81
- width: calc(100% / 3);
82
- }
83
-
84
- &--large {
85
- width: 50%;
86
- }
87
-
88
- &--extra-large {
89
- width: 66%;
90
- }
91
-
92
- &--giant {
93
- width: 75%;
94
- }
95
-
96
- &__body {
97
- overflow-y: auto;
98
- padding: $unnnic-space-6;
99
- flex: 1 0 0;
100
- }
101
- }
102
- </style>
@@ -1,40 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { DrawerDescriptionProps } from 'vaul-vue';
3
- import type { HTMLAttributes } from 'vue';
4
- import { reactiveOmit } from '@vueuse/core';
5
- import { DrawerDescription } from 'vaul-vue';
6
- import { cn } from '@/lib/utils';
7
-
8
- defineOptions({
9
- name: 'UnnnicDrawerDescription',
10
- });
11
-
12
- const props = defineProps<
13
- DrawerDescriptionProps & { class?: HTMLAttributes['class'] }
14
- >();
15
-
16
- const delegatedProps = reactiveOmit(props, 'class');
17
- </script>
18
-
19
- <template>
20
- <DrawerDescription
21
- v-bind="delegatedProps"
22
- :class="cn('unnnic-drawer__description', props.class)"
23
- >
24
- <slot />
25
- </DrawerDescription>
26
- </template>
27
-
28
- <style lang="scss" scoped>
29
- @use '@/assets/scss/unnnic' as *;
30
-
31
- .unnnic-drawer__description {
32
- margin: 0;
33
-
34
- font: $unnnic-font-body;
35
- color: $unnnic-color-fg-base;
36
-
37
- grid-column: 1 / 3;
38
- grid-row: 2 / 3;
39
- }
40
- </style>
@@ -1,38 +0,0 @@
1
- <script lang="ts" setup>
2
- import { type HTMLAttributes } from 'vue';
3
- import { cn } from '@/lib/utils';
4
-
5
- defineOptions({
6
- name: 'UnnnicDrawerFooter',
7
- });
8
-
9
- const props = defineProps<{
10
- class?: HTMLAttributes['class'];
11
- }>();
12
- </script>
13
-
14
- <template>
15
- <footer :class="cn('unnnic-drawer__footer', props.class)">
16
- <slot />
17
- </footer>
18
- </template>
19
-
20
- <style lang="scss" scoped>
21
- @use '@/assets/scss/unnnic' as *;
22
-
23
- .unnnic-drawer__footer {
24
- border-top: 1px solid $unnnic-color-border-soft;
25
-
26
- margin-top: auto;
27
- padding: $unnnic-space-6;
28
-
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- gap: $unnnic-space-2;
33
-
34
- > * {
35
- width: 100%;
36
- }
37
- }
38
- </style>
@@ -1,57 +0,0 @@
1
- <script lang="ts" setup>
2
- import { type HTMLAttributes } from 'vue';
3
- import { cn } from '@/lib/utils';
4
- import UnnnicButton from '@/components/Button/Button.vue';
5
- import DrawerClose from './DrawerClose.vue';
6
-
7
- defineOptions({
8
- name: 'UnnnicDrawerHeader',
9
- });
10
-
11
- const props = defineProps<{
12
- class?: HTMLAttributes['class'];
13
- }>();
14
- </script>
15
-
16
- <template>
17
- <header :class="cn('unnnic-drawer__header', props.class)">
18
- <slot />
19
-
20
- <template v-if="$slots.close">
21
- <slot
22
- name="close"
23
- class="unnnic-drawer__close-button"
24
- />
25
- </template>
26
- <template v-else>
27
- <DrawerClose>
28
- <UnnnicButton
29
- iconCenter="close"
30
- size="small"
31
- type="tertiary"
32
- class="unnnic-drawer__close-button"
33
- />
34
- </DrawerClose>
35
- </template>
36
- </header>
37
- </template>
38
-
39
- <style lang="scss" scoped>
40
- @use '@/assets/scss/unnnic' as *;
41
-
42
- .unnnic-drawer__header {
43
- display: grid;
44
- align-items: center;
45
- grid-template-columns: 1fr auto;
46
- padding: $unnnic-space-6;
47
-
48
- gap: $unnnic-space-1;
49
-
50
- border-bottom: 1px solid $unnnic-color-border-soft;
51
- }
52
-
53
- .unnnic-drawer__close-button {
54
- grid-column: 2 / 3;
55
- grid-row: 1 / 2;
56
- }
57
- </style>
@@ -1,34 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { DialogOverlayProps } from 'reka-ui';
3
- import { type HTMLAttributes } from 'vue';
4
- import { reactiveOmit } from '@vueuse/core';
5
- import { DrawerOverlay } from 'vaul-vue';
6
- import { cn } from '@/lib/utils';
7
-
8
- defineOptions({
9
- name: 'UnnnicDrawerOverlay',
10
- });
11
-
12
- const props = defineProps<
13
- DialogOverlayProps & { class?: HTMLAttributes['class'] }
14
- >();
15
-
16
- const delegatedProps = reactiveOmit(props, 'class');
17
- </script>
18
-
19
- <template>
20
- <DrawerOverlay
21
- v-bind="delegatedProps"
22
- :class="cn('unnnic-drawer__overlay', props.class)"
23
- />
24
- </template>
25
-
26
- <style lang="scss" scoped>
27
- .unnnic-drawer__overlay {
28
- position: fixed;
29
- inset: 0;
30
- z-index: 50;
31
-
32
- background: rgba(53, 57, 69, 0.65);
33
- }
34
- </style>
@@ -1,37 +0,0 @@
1
- <script lang="ts" setup>
2
- import type { DrawerTitleProps } from 'vaul-vue';
3
- import { type HTMLAttributes } from 'vue';
4
- import { reactiveOmit } from '@vueuse/core';
5
- import { DrawerTitle } from 'vaul-vue';
6
- import { cn } from '@/lib/utils';
7
-
8
- defineOptions({
9
- name: 'UnnnicDrawerTitle',
10
- });
11
-
12
- const props = defineProps<
13
- DrawerTitleProps & { class?: HTMLAttributes['class'] }
14
- >();
15
-
16
- const delegatedProps = reactiveOmit(props, 'class');
17
- </script>
18
-
19
- <template>
20
- <DrawerTitle
21
- v-bind="delegatedProps"
22
- :class="cn('unnnic-drawer__title', props.class)"
23
- >
24
- <slot />
25
- </DrawerTitle>
26
- </template>
27
-
28
- <style lang="scss" scoped>
29
- @use '@/assets/scss/unnnic' as *;
30
-
31
- .unnnic-drawer__title {
32
- margin: 0;
33
-
34
- color: $unnnic-color-fg-emphasized;
35
- font: $unnnic-font-display-2;
36
- }
37
- </style>
@@ -1,31 +0,0 @@
1
- <script setup lang="ts">
2
- import type { DrawerTriggerProps } from 'vaul-vue';
3
- import { DrawerTrigger } from 'vaul-vue';
4
-
5
- defineOptions({
6
- name: 'UnnnicDrawerTrigger',
7
- });
8
-
9
- const props = defineProps<DrawerTriggerProps>();
10
- </script>
11
-
12
- <template>
13
- <DrawerTrigger
14
- v-bind="props"
15
- class="unnnic-drawer__trigger"
16
- >
17
- <slot />
18
- </DrawerTrigger>
19
- </template>
20
-
21
- <style lang="scss" scoped>
22
- @use '@/assets/scss/unnnic' as *;
23
-
24
- .unnnic-drawer__trigger {
25
- border: none;
26
- background: none;
27
- padding: 0;
28
- margin: 0;
29
- cursor: pointer;
30
- }
31
- </style>
@@ -1,10 +0,0 @@
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';
@@ -1,51 +0,0 @@
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>
@@ -1,81 +0,0 @@
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>
@@ -1,4 +0,0 @@
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';
@@ -1,15 +0,0 @@
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>
@@ -1,73 +0,0 @@
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>
@@ -1,15 +0,0 @@
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>
@@ -1,22 +0,0 @@
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,4 +0,0 @@
1
- export { default as Tooltip } from './Tooltip.vue';
2
- export { default as TooltipContent } from './TooltipContent.vue';
3
- export { default as TooltipProvider } from './TooltipProvider.vue';
4
- export { default as TooltipTrigger } from './TooltipTrigger.vue';