@dolanske/vui 0.3.4 → 0.5.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.
Files changed (114) hide show
  1. package/LICENSE +673 -673
  2. package/README.md +41 -40
  3. package/dist/components/Dropdown/DropdownItem.vue.d.ts +1 -0
  4. package/dist/components/Flex/Flex.vue.d.ts +3 -1
  5. package/dist/components/Grid/Grid.vue.d.ts +3 -1
  6. package/dist/components/Tabs/Tabs.vue.d.ts +4 -0
  7. package/dist/style.css +1 -1
  8. package/dist/vui.js +1547 -1534
  9. package/package.json +68 -68
  10. package/src/App.vue +176 -175
  11. package/src/components/Accordion/Accordion.vue +91 -91
  12. package/src/components/Accordion/AccordionGroup.vue +43 -43
  13. package/src/components/Accordion/accordion.scss +81 -80
  14. package/src/components/Alert/Alert.vue +53 -53
  15. package/src/components/Alert/alert.scss +80 -80
  16. package/src/components/Avatar/Avatar.vue +50 -50
  17. package/src/components/Avatar/avatar.scss +52 -52
  18. package/src/components/Badge/Badge.vue +21 -21
  19. package/src/components/Badge/badge.scss +89 -89
  20. package/src/components/Breadcrumbs/BreadcrumbItem.vue +26 -26
  21. package/src/components/Breadcrumbs/Breadcrumbs.vue +33 -33
  22. package/src/components/Breadcrumbs/breadcrumbs.scss +30 -30
  23. package/src/components/Button/Button.vue +90 -90
  24. package/src/components/Button/button.scss +178 -176
  25. package/src/components/ButtonGroup/ButtonGroup.vue +25 -25
  26. package/src/components/ButtonGroup/button-group.scss +51 -51
  27. package/src/components/Calendar/Calendar.vue +63 -60
  28. package/src/components/Calendar/calendar.scss +60 -56
  29. package/src/components/Card/Card.vue +48 -48
  30. package/src/components/Card/card.scss +53 -53
  31. package/src/components/Checkbox/Checkbox.vue +51 -52
  32. package/src/components/Checkbox/checkbox.scss +75 -66
  33. package/src/components/CopyClipboard/CopyClipboard.vue +82 -82
  34. package/src/components/CopyClipboard/copy-clipboard.scss +17 -17
  35. package/src/components/Divider/Divider.vue +44 -44
  36. package/src/components/Divider/divider.scss +35 -35
  37. package/src/components/Drawer/Drawer.vue +97 -97
  38. package/src/components/Drawer/drawer.scss +36 -36
  39. package/src/components/Dropdown/Dropdown.vue +111 -111
  40. package/src/components/Dropdown/DropdownItem.vue +33 -29
  41. package/src/components/Dropdown/DropdownTitle.vue +8 -8
  42. package/src/components/Dropdown/dropdown-item.scss +77 -0
  43. package/src/components/Dropdown/dropdown.scss +39 -117
  44. package/src/components/Flex/Flex.vue +113 -106
  45. package/src/components/Grid/Grid.vue +60 -54
  46. package/src/components/Input/Counter.vue +70 -70
  47. package/src/components/Input/Dropzone.vue +65 -65
  48. package/src/components/Input/File.vue +15 -15
  49. package/src/components/Input/Input.vue +121 -121
  50. package/src/components/Input/Password.vue +47 -47
  51. package/src/components/Input/Textarea.vue +76 -76
  52. package/src/components/Input/input.scss +208 -208
  53. package/src/components/Kbd/Kbd.vue +48 -48
  54. package/src/components/Kbd/KbdGroup.vue +31 -31
  55. package/src/components/Kbd/kbd.scss +18 -18
  56. package/src/components/Modal/Confirm.vue +56 -56
  57. package/src/components/Modal/Modal.vue +91 -91
  58. package/src/components/Modal/modal.scss +49 -49
  59. package/src/components/OTP/OTP.vue +133 -133
  60. package/src/components/OTP/OTPItem.vue +37 -37
  61. package/src/components/OTP/otp.scss +83 -83
  62. package/src/components/Pagination/Pagination.vue +74 -74
  63. package/src/components/Pagination/pagination.ts +78 -78
  64. package/src/components/Popout/Popout.vue +42 -42
  65. package/src/components/Popout/popout.scss +8 -8
  66. package/src/components/Progress/Progress.vue +90 -90
  67. package/src/components/Progress/progress.scss +41 -41
  68. package/src/components/Radio/Radio.vue +36 -36
  69. package/src/components/Radio/RadioGroup.vue +40 -40
  70. package/src/components/Radio/radio.scss +68 -59
  71. package/src/components/Select/Select.vue +180 -180
  72. package/src/components/Select/select.scss +44 -44
  73. package/src/components/Sheet/Sheet.vue +92 -92
  74. package/src/components/Sheet/sheet.scss +60 -60
  75. package/src/components/Sidebar/Sidebar.vue +102 -0
  76. package/src/components/Sidebar/sidebar.scss +123 -0
  77. package/src/components/Skeleton/Skeleton.vue +43 -43
  78. package/src/components/Skeleton/skeleton.scss +14 -14
  79. package/src/components/Spinner/Spinner.vue +42 -42
  80. package/src/components/Spinner/spinner.scss +46 -46
  81. package/src/components/Switch/Switch.vue +30 -30
  82. package/src/components/Switch/switch.scss +60 -52
  83. package/src/components/Table/Cell.vue +23 -23
  84. package/src/components/Table/Header.vue +59 -59
  85. package/src/components/Table/Row.vue +9 -9
  86. package/src/components/Table/SelectAll.vue +23 -23
  87. package/src/components/Table/SelectRow.vue +29 -29
  88. package/src/components/Table/Table.vue +66 -66
  89. package/src/components/Table/table.scss +134 -134
  90. package/src/components/Table/table.ts +244 -244
  91. package/src/components/Tabs/Tab.vue +27 -27
  92. package/src/components/Tabs/Tabs.vue +89 -82
  93. package/src/components/Tabs/tabs.scss +80 -79
  94. package/src/components/Toast/Toasts.vue +47 -47
  95. package/src/components/Toast/toast.scss +41 -41
  96. package/src/components/Toast/toast.ts +68 -68
  97. package/src/components/Tooltip/Tooltip.vue +86 -86
  98. package/src/components/Tooltip/tooltip.scss +4 -4
  99. package/src/index.scss +1 -1
  100. package/src/index.ts +119 -119
  101. package/src/internal/Backdrop/Backdrop.vue +22 -22
  102. package/src/internal/Backdrop/backdrop.scss +28 -28
  103. package/src/main.ts +5 -5
  104. package/src/shared/helpers.ts +74 -74
  105. package/src/shared/types.ts +29 -29
  106. package/src/style/animation.scss +21 -21
  107. package/src/style/core.scss +150 -148
  108. package/src/style/layout.scss +168 -136
  109. package/src/style/media-query.scss +29 -29
  110. package/src/style/reset.scss +135 -135
  111. package/src/style/{fonts.scss → text.scss} +74 -53
  112. package/src/style/tooltip.scss +128 -128
  113. package/src/style/typography.scss +338 -338
  114. package/src/style/utils.scss +36 -36
@@ -1,25 +1,25 @@
1
- <script setup lang='ts'>
2
- import Flex from '../Flex/Flex.vue'
3
- import './button-group.scss'
4
-
5
- interface Props {
6
- vertical?: boolean
7
- }
8
-
9
- const {
10
- vertical,
11
- } = defineProps<Props>()
12
- </script>
13
-
14
- <template>
15
- <Flex
16
- :row="!vertical"
17
- :column="vertical"
18
- class="vui-button-group"
19
- :class="{ vertical }"
20
- :gap="0"
21
- inline
22
- >
23
- <slot />
24
- </Flex>
25
- </template>
1
+ <script setup lang='ts'>
2
+ import Flex from '../Flex/Flex.vue'
3
+ import './button-group.scss'
4
+
5
+ interface Props {
6
+ vertical?: boolean
7
+ }
8
+
9
+ const {
10
+ vertical,
11
+ } = defineProps<Props>()
12
+ </script>
13
+
14
+ <template>
15
+ <Flex
16
+ :row="!vertical"
17
+ :column="vertical"
18
+ class="vui-button-group"
19
+ :class="{ vertical }"
20
+ :gap="0"
21
+ inline
22
+ >
23
+ <slot />
24
+ </Flex>
25
+ </template>
@@ -1,51 +1,51 @@
1
- .vui-button-group {
2
- .vui-button {
3
- z-index: 1;
4
-
5
- &:hover {
6
- z-index: 2;
7
- }
8
-
9
- &:not(:first-child, :last-child) {
10
- border-radius: 0;
11
- }
12
-
13
- &:first-child {
14
- border-top-right-radius: 0;
15
- border-bottom-right-radius: 0;
16
- }
17
-
18
- &:last-child {
19
- border-top-left-radius: 0;
20
- border-bottom-left-radius: 0;
21
- }
22
-
23
- &:not(:last-child) {
24
- margin-right: -1px;
25
- }
26
- }
27
-
28
- &.vertical {
29
- .vui-button {
30
- width: 100%;
31
-
32
- &:not(:first-child, :last-child) {
33
- border-radius: 0;
34
- }
35
-
36
- &:first-child {
37
- border-bottom-left-radius: 0;
38
- border-bottom-right-radius: 0;
39
- }
40
-
41
- &:last-child {
42
- border-top-left-radius: 0;
43
- border-top-right-radius: 0;
44
- }
45
-
46
- &:not(:last-child) {
47
- margin-bottom: -1px;
48
- }
49
- }
50
- }
51
- }
1
+ .vui-button-group {
2
+ .vui-button {
3
+ z-index: 1;
4
+
5
+ &:hover {
6
+ z-index: 2;
7
+ }
8
+
9
+ &:not(:first-child, :last-child) {
10
+ border-radius: 0;
11
+ }
12
+
13
+ &:first-child {
14
+ border-top-right-radius: 0;
15
+ border-bottom-right-radius: 0;
16
+ }
17
+
18
+ &:last-child {
19
+ border-top-left-radius: 0;
20
+ border-bottom-left-radius: 0;
21
+ }
22
+
23
+ &:not(:last-child) {
24
+ margin-right: -1px;
25
+ }
26
+ }
27
+
28
+ &.vertical {
29
+ .vui-button {
30
+ width: 100%;
31
+
32
+ &:not(:first-child, :last-child) {
33
+ border-radius: 0;
34
+ }
35
+
36
+ &:first-child {
37
+ border-bottom-left-radius: 0;
38
+ border-bottom-right-radius: 0;
39
+ }
40
+
41
+ &:last-child {
42
+ border-top-left-radius: 0;
43
+ border-top-right-radius: 0;
44
+ }
45
+
46
+ &:not(:last-child) {
47
+ margin-bottom: -1px;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -1,60 +1,63 @@
1
- <script setup lang='ts'>
2
- import type { VueDatePickerProps } from '@vuepic/vue-datepicker'
3
- import { Icon } from '@iconify/vue'
4
- import VueDatePicker from '@vuepic/vue-datepicker'
5
- import '@vuepic/vue-datepicker/dist/main.css'
6
- import './calendar.scss'
7
-
8
- const props = withDefaults(defineProps<VueDatePickerProps & {
9
- expand?: boolean
10
- }>(), {
11
- autoApply: true,
12
- autoPosition: true,
13
- dark: true,
14
- format: 'dd/MM/yyyy HH:mm',
15
- expand: false,
16
- })
17
-
18
- const ICON_SIZE = 18
19
- </script>
20
-
21
- <template>
22
- <VueDatePicker
23
- v-bind="props"
24
- :style="props.expand || !$slots.trigger
25
- ? undefined
26
- : { display: 'inline-block', width: 'auto' }
27
- "
28
- >
29
- <!-- Icon slots -->
30
- <template #input-icon>
31
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:calendar-blank" />
32
- </template>
33
- <template #calendar-icon>
34
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:calendar-blank" />
35
- </template>
36
- <template #clear-icon>
37
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:x" />
38
- </template>
39
- <template #clock-icon>
40
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:clock" />
41
- </template>
42
- <template #arrow-left>
43
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-left" />
44
- </template>
45
- <template #arrow-right>
46
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-right" />
47
- </template>
48
- <template #arrow-up>
49
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-up" />
50
- </template>
51
- <template #arrow-down>
52
- <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-down" />
53
- </template>
54
-
55
- <!-- Content slots -->
56
- <template v-if="$slots.trigger" #trigger>
57
- <slot name="trigger" />
58
- </template>
59
- </VueDatePicker>
60
- </template>
1
+ <script setup lang='ts'>
2
+ import type { VueDatePickerProps } from '@vuepic/vue-datepicker'
3
+ import { Icon } from '@iconify/vue'
4
+ import VueDatePicker from '@vuepic/vue-datepicker'
5
+ import { useAttrs } from 'vue'
6
+ import '@vuepic/vue-datepicker/dist/main.css'
7
+ import './calendar.scss'
8
+
9
+ const props = withDefaults(defineProps<VueDatePickerProps & {
10
+ expand?: boolean
11
+ }>(), {
12
+ autoApply: true,
13
+ autoPosition: true,
14
+ dark: true,
15
+ format: 'dd/MM/yyyy HH:mm',
16
+ expand: false,
17
+ })
18
+
19
+ const ICON_SIZE = 18
20
+ const attrs = useAttrs()
21
+ </script>
22
+
23
+ <template>
24
+ <VueDatePicker
25
+ v-bind="{ ...props, ...attrs }"
26
+ class="vui-calendar"
27
+ :style="props.expand ?? !$slots.trigger
28
+ ? undefined
29
+ : { display: 'inline-block', width: 'auto' }
30
+ "
31
+ >
32
+ <!-- Icon slots -->
33
+ <template #input-icon>
34
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:calendar-blank" />
35
+ </template>
36
+ <template #calendar-icon>
37
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:calendar-blank" />
38
+ </template>
39
+ <template #clear-icon>
40
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:x" />
41
+ </template>
42
+ <template #clock-icon>
43
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:clock" />
44
+ </template>
45
+ <template #arrow-left>
46
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-left" />
47
+ </template>
48
+ <template #arrow-right>
49
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-right" />
50
+ </template>
51
+ <template #arrow-up>
52
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-up" />
53
+ </template>
54
+ <template #arrow-down>
55
+ <Icon :width="ICON_SIZE" :height="ICON_SIZE" icon="ph:caret-down" />
56
+ </template>
57
+
58
+ <!-- Content slots -->
59
+ <template v-if="$slots.trigger" #trigger>
60
+ <slot name="trigger" />
61
+ </template>
62
+ </VueDatePicker>
63
+ </template>
@@ -1,56 +1,60 @@
1
- .dp__theme_dark {
2
- --dp-background-color: var(--color-bg);
3
- --dp-text-color: var(--color-text);
4
- --dp-hover-color: var(--color-button-gray-hover);
5
- --dp-hover-text-color: var(--color-text);
6
- --dp-hover-icon-color: var(--color-text-lighter);
7
- --dp-primary-color: var(--color-accent);
8
- --dp-primary-disabled-color: var(--color-accent-disabled);
9
- --dp-primary-text-color: var(--color-text-invert);
10
- --dp-secondary-color: var(--color-border);
11
- --dp-border-color: var(--color-border);
12
- --dp-menu-border-color: var(--color-border);
13
- --dp-border-color-hover: var(--color-border-strong);
14
- --dp-border-color-focus: var(--color-border-strong);
15
- --dp-disabled-color: var(--color-bg-raised);
16
- --dp-disabled-color-text: var(--color-text-light);
17
- --dp-scroll-bar-background: var(--color-bg-lowered);
18
- --dp-scroll-bar-color: var(--color-border);
19
- --dp-success-color: var(--color-green);
20
- --dp-success-color-disabled: var(--color-green-disabled);
21
- --dp-icon-color: var(--color-text-light);
22
- --dp-danger-color: var(--color-red);
23
- --dp-marker-color: var(--color-red);
24
- --dp-tooltip-color: var(--color-bg-raised);
25
- --dp-highlight-color: var(--color-bg-raised);
26
- --dp-range-between-dates-background-color: var(--dp-hover-color, #484848);
27
- --dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);
28
- --dp-range-between-border-color: var(--dp-hover-color, #fff);
29
- }
30
-
31
- :root {
32
- --dp-font-family: var(--global-font);
33
- --dp-border-radius: var(--border-radius-s);
34
- --dp-cell-border-radius: var(--border-radius-s);
35
- --dp-common-transition: var(--transition);
36
-
37
- --dp-font-size: var(--font-size-ms);
38
- --dp-preview-font-size: var(--font-size-s);
39
- --dp-time-font-size: var(--font-size-s);
40
- }
41
-
42
- .dp__main {
43
- font-size: var(--n-font-size-m);
44
- }
45
-
46
- .dp__outer_menu_wrap {
47
- box-shadow: var(--box-shadow-strong);
48
- }
49
-
50
- .dp__input_icon {
51
- inset-inline-start: 8px;
52
- }
53
-
54
- .dp--clear-btn {
55
- inset-inline-end: 8px;
56
- }
1
+ .dp__theme_dark {
2
+ --dp-background-color: var(--color-bg);
3
+ --dp-text-color: var(--color-text);
4
+ --dp-hover-color: var(--color-button-gray-hover);
5
+ --dp-hover-text-color: var(--color-text);
6
+ --dp-hover-icon-color: var(--color-text-lighter);
7
+ --dp-primary-color: var(--color-accent);
8
+ --dp-primary-disabled-color: var(--color-accent-disabled);
9
+ --dp-primary-text-color: var(--color-text-invert);
10
+ --dp-secondary-color: var(--color-border);
11
+ --dp-border-color: var(--color-border);
12
+ --dp-menu-border-color: var(--color-border);
13
+ --dp-border-color-hover: var(--color-border-strong);
14
+ --dp-border-color-focus: var(--color-border-strong);
15
+ --dp-disabled-color: var(--color-bg-raised);
16
+ --dp-disabled-color-text: var(--color-text-light);
17
+ --dp-scroll-bar-background: var(--color-bg-lowered);
18
+ --dp-scroll-bar-color: var(--color-border);
19
+ --dp-success-color: var(--color-green);
20
+ --dp-success-color-disabled: var(--color-green-disabled);
21
+ --dp-icon-color: var(--color-text-light);
22
+ --dp-danger-color: var(--color-red);
23
+ --dp-marker-color: var(--color-red);
24
+ --dp-tooltip-color: var(--color-bg-raised);
25
+ --dp-highlight-color: var(--color-bg-raised);
26
+ --dp-range-between-dates-background-color: var(--dp-hover-color, #484848);
27
+ --dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);
28
+ --dp-range-between-border-color: var(--dp-hover-color, #fff);
29
+ }
30
+
31
+ :root {
32
+ --dp-font-family: var(--global-font);
33
+ --dp-border-radius: var(--border-radius-s);
34
+ --dp-cell-border-radius: var(--border-radius-s);
35
+ --dp-common-transition: var(--transition);
36
+
37
+ --dp-font-size: var(--font-size-ms);
38
+ --dp-preview-font-size: var(--font-size-s);
39
+ --dp-time-font-size: var(--font-size-s);
40
+ }
41
+
42
+ .dp__main {
43
+ font-size: var(--n-font-size-m);
44
+ }
45
+
46
+ .dp__outer_menu_wrap {
47
+ box-shadow: var(--box-shadow-strong);
48
+ }
49
+
50
+ .dp__input_icon {
51
+ inset-inline-start: 8px;
52
+ }
53
+
54
+ .dp--clear-btn {
55
+ inset-inline-end: 8px;
56
+ }
57
+
58
+ .dp__input {
59
+ height: var(--interactive-el-height);
60
+ }
@@ -1,48 +1,48 @@
1
- <script setup lang="ts">
2
- import Divider from '../Divider/Divider.vue'
3
- import './card.scss'
4
-
5
- export interface Props {
6
- separators?: boolean
7
- headerSeparator?: boolean
8
- footerSeparator?: boolean
9
- padding?: boolean
10
- }
11
-
12
- const {
13
- padding = true,
14
- separators,
15
- headerSeparator,
16
- footerSeparator,
17
- } = defineProps<Props>()
18
- </script>
19
-
20
- <template>
21
- <div
22
- class="vui-card" :class="{
23
- separators,
24
- 'header-separator': headerSeparator,
25
- 'footer-separator': footerSeparator,
26
- 'no-padding': !padding,
27
- }"
28
- >
29
- <div v-if="$slots.header || $slots['header-end']" class="vui-card-header">
30
- <div>
31
- <slot name="header" />
32
- </div>
33
- <slot name="header-end" />
34
- </div>
35
-
36
- <Divider v-if="(separators || headerSeparator) && ($slots.header || $slots['header-end'])" :space="1" />
37
-
38
- <div v-if="$slots.default" class="vui-card-content">
39
- <slot />
40
- </div>
41
-
42
- <Divider v-if="(separators || footerSeparator) && $slots.footer" :space="1" />
43
-
44
- <div v-if="$slots.footer" class="vui-card-footer">
45
- <slot name="footer" />
46
- </div>
47
- </div>
48
- </template>
1
+ <script setup lang="ts">
2
+ import Divider from '../Divider/Divider.vue'
3
+ import './card.scss'
4
+
5
+ export interface Props {
6
+ separators?: boolean
7
+ headerSeparator?: boolean
8
+ footerSeparator?: boolean
9
+ padding?: boolean
10
+ }
11
+
12
+ const {
13
+ padding = true,
14
+ separators,
15
+ headerSeparator,
16
+ footerSeparator,
17
+ } = defineProps<Props>()
18
+ </script>
19
+
20
+ <template>
21
+ <div
22
+ class="vui-card" :class="{
23
+ separators,
24
+ 'header-separator': headerSeparator,
25
+ 'footer-separator': footerSeparator,
26
+ 'no-padding': !padding,
27
+ }"
28
+ >
29
+ <div v-if="$slots.header || $slots['header-end']" class="vui-card-header">
30
+ <div>
31
+ <slot name="header" />
32
+ </div>
33
+ <slot name="header-end" />
34
+ </div>
35
+
36
+ <Divider v-if="(separators || headerSeparator) && ($slots.header || $slots['header-end'])" :space="1" />
37
+
38
+ <div v-if="$slots.default" class="vui-card-content">
39
+ <slot />
40
+ </div>
41
+
42
+ <Divider v-if="(separators || footerSeparator) && $slots.footer" :space="1" />
43
+
44
+ <div v-if="$slots.footer" class="vui-card-footer">
45
+ <slot name="footer" />
46
+ </div>
47
+ </div>
48
+ </template>
@@ -1,53 +1,53 @@
1
- .vui-card {
2
- background-color: var(--color-bg);
3
- border-radius: var(--border-radius-m);
4
- border: 1px solid var(--color-border);
5
-
6
- &.no-padding {
7
- .vui-card-header,
8
- .vui-card-content,
9
- .vui-card-footer {
10
- padding: 0;
11
- }
12
- }
13
-
14
- &:not(.separators) {
15
- .vui-card-content:not(:first-child) {
16
- padding-block: var(--space-xs);
17
- }
18
-
19
- &.header-separator {
20
- .vui-card-content:not(:first-child) {
21
- padding-top: var(--space-m);
22
- // padding-block: var(--space-m);
23
- }
24
- }
25
-
26
- &.footer-separator {
27
- .vui-card-content {
28
- padding-bottom: var(--space-m);
29
- }
30
- }
31
- }
32
-
33
- .vui-card-header {
34
- display: flex;
35
- align-items: flex-start;
36
- justify-content: space-between;
37
- padding: var(--space-s) var(--space-m);
38
- background-color: var(--color-bg);
39
- border-top-left-radius: var(--border-radius-m);
40
- border-top-right-radius: var(--border-radius-m);
41
- }
42
-
43
- .vui-card-content {
44
- padding: var(--space-m);
45
- }
46
-
47
- .vui-card-footer {
48
- padding: var(--space-s) var(--space-m);
49
- background-color: var(--color-bg);
50
- border-bottom-left-radius: var(--border-radius-m);
51
- border-bottom-right-radius: var(--border-radius-m);
52
- }
53
- }
1
+ .vui-card {
2
+ background-color: var(--color-bg);
3
+ border-radius: var(--border-radius-m);
4
+ border: 1px solid var(--color-border);
5
+
6
+ &.no-padding {
7
+ .vui-card-header,
8
+ .vui-card-content,
9
+ .vui-card-footer {
10
+ padding: 0;
11
+ }
12
+ }
13
+
14
+ &:not(.separators) {
15
+ .vui-card-content:not(:first-child) {
16
+ padding-block: var(--space-xs);
17
+ }
18
+
19
+ &.header-separator {
20
+ .vui-card-content:not(:first-child) {
21
+ padding-top: var(--space-m);
22
+ // padding-block: var(--space-m);
23
+ }
24
+ }
25
+
26
+ &.footer-separator {
27
+ .vui-card-content {
28
+ padding-bottom: var(--space-m);
29
+ }
30
+ }
31
+ }
32
+
33
+ .vui-card-header {
34
+ display: flex;
35
+ align-items: flex-start;
36
+ justify-content: space-between;
37
+ padding: var(--space-s) var(--space-m);
38
+ background-color: var(--color-bg);
39
+ border-top-left-radius: var(--border-radius-m);
40
+ border-top-right-radius: var(--border-radius-m);
41
+ }
42
+
43
+ .vui-card-content {
44
+ padding: var(--space-m);
45
+ }
46
+
47
+ .vui-card-footer {
48
+ padding: var(--space-s) var(--space-m);
49
+ background-color: var(--color-bg);
50
+ border-bottom-left-radius: var(--border-radius-m);
51
+ border-bottom-right-radius: var(--border-radius-m);
52
+ }
53
+ }