nuance-ui 0.2.5 → 0.2.6

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 (135) hide show
  1. package/LICENSE.md +9 -9
  2. package/README.md +75 -75
  3. package/dist/module.json +1 -1
  4. package/dist/runtime/components/action-icon/action-icon-section.vue +3 -3
  5. package/dist/runtime/components/action-icon/action-icon.vue +22 -22
  6. package/dist/runtime/components/alert.vue +128 -128
  7. package/dist/runtime/components/app-shell/app-shell-aside.vue +30 -30
  8. package/dist/runtime/components/app-shell/app-shell-footer.vue +29 -29
  9. package/dist/runtime/components/app-shell/app-shell-header.vue +30 -30
  10. package/dist/runtime/components/app-shell/app-shell-navbar.vue +34 -34
  11. package/dist/runtime/components/app-shell/app-shell-section.vue +10 -10
  12. package/dist/runtime/components/app-shell/app-shell.vue +34 -34
  13. package/dist/runtime/components/avatar/avatar-group.vue +3 -3
  14. package/dist/runtime/components/avatar/avatar.vue +1 -1
  15. package/dist/runtime/components/background-image.vue +18 -18
  16. package/dist/runtime/components/badge.vue +160 -159
  17. package/dist/runtime/components/breadcrumbs.vue +78 -78
  18. package/dist/runtime/components/button/button-group.vue +3 -3
  19. package/dist/runtime/components/button/button.vue +37 -37
  20. package/dist/runtime/components/button/unstyled-button.vue +23 -23
  21. package/dist/runtime/components/calendar/calendar.vue +60 -60
  22. package/dist/runtime/components/calendar/ui/core/calendar-cell.vue +115 -115
  23. package/dist/runtime/components/calendar/ui/core/calendar-header.vue +95 -95
  24. package/dist/runtime/components/calendar/ui/core/calendar-root.vue +3 -3
  25. package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue +40 -40
  26. package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +77 -77
  27. package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +40 -40
  28. package/dist/runtime/components/card/card-section.vue +3 -3
  29. package/dist/runtime/components/card/card.vue +3 -3
  30. package/dist/runtime/components/checkbox/checkbox-card.vue +36 -36
  31. package/dist/runtime/components/checkbox/checkbox-group.vue +16 -16
  32. package/dist/runtime/components/checkbox/checkbox-indicator.vue +116 -116
  33. package/dist/runtime/components/checkbox/checkbox.vue +140 -140
  34. package/dist/runtime/components/chip/chip-group.vue +2 -2
  35. package/dist/runtime/components/chip/chip.vue +200 -200
  36. package/dist/runtime/components/combobox/combobox-dropdown.vue +1 -1
  37. package/dist/runtime/components/combobox/combobox-empty.vue +3 -3
  38. package/dist/runtime/components/combobox/combobox-group.d.vue.ts +5 -5
  39. package/dist/runtime/components/combobox/combobox-group.vue +2 -2
  40. package/dist/runtime/components/combobox/combobox-group.vue.d.ts +5 -5
  41. package/dist/runtime/components/combobox/combobox-option-list.vue +3 -3
  42. package/dist/runtime/components/combobox/combobox-option.vue +6 -11
  43. package/dist/runtime/components/combobox/combobox-options-dropdown.d.vue.ts +6 -8
  44. package/dist/runtime/components/combobox/combobox-options-dropdown.vue +6 -7
  45. package/dist/runtime/components/combobox/combobox-options-dropdown.vue.d.ts +6 -8
  46. package/dist/runtime/components/combobox/combobox-root.d.vue.ts +0 -2
  47. package/dist/runtime/components/combobox/combobox-root.vue +4 -6
  48. package/dist/runtime/components/combobox/combobox-root.vue.d.ts +0 -2
  49. package/dist/runtime/components/combobox/combobox-target.vue +3 -3
  50. package/dist/runtime/components/combobox/combobox.module.css +1 -1
  51. package/dist/runtime/components/combobox/lib/use-combobox/use-combobox.js +8 -1
  52. package/dist/runtime/components/combobox/lib/use-combobox-data/get-parsed-combobox-data.d.ts +2 -2
  53. package/dist/runtime/components/combobox/lib/use-combobox-data/get-parsed-combobox-data.js +2 -1
  54. package/dist/runtime/components/combobox/lib/use-combobox-data/use-combobox-data.d.ts +4 -4
  55. package/dist/runtime/components/combobox/lib/use-combobox-data/use-combobox-data.js +3 -2
  56. package/dist/runtime/components/combobox/lib/utils/default-option-filter.d.ts +3 -3
  57. package/dist/runtime/components/combobox/lib/utils/default-option-filter.js +1 -1
  58. package/dist/runtime/components/combobox/lib/utils/index.d.ts +2 -3
  59. package/dist/runtime/components/combobox/lib/utils/index.js +2 -2
  60. package/dist/runtime/components/combobox/lib/utils/is-empty-combobox-data.d.ts +2 -2
  61. package/dist/runtime/components/combobox/lib/utils/is-guards.d.ts +2 -0
  62. package/dist/runtime/components/combobox/types/item.d.ts +3 -8
  63. package/dist/runtime/components/container.vue +8 -8
  64. package/dist/runtime/components/date-time-picker.vue +65 -65
  65. package/dist/runtime/components/dialog/ui/dialog-close-button.vue +11 -11
  66. package/dist/runtime/components/dialog/ui/dialog-header.vue +5 -5
  67. package/dist/runtime/components/dialog/ui/dialog-root.vue +20 -20
  68. package/dist/runtime/components/dialog/ui/dialog-title.vue +5 -5
  69. package/dist/runtime/components/drawer/drawer-close-button.vue +3 -3
  70. package/dist/runtime/components/drawer/drawer-header.vue +3 -3
  71. package/dist/runtime/components/drawer/drawer-root.vue +15 -15
  72. package/dist/runtime/components/drawer/drawer-title.vue +3 -3
  73. package/dist/runtime/components/files/file-upload-button.vue +12 -12
  74. package/dist/runtime/components/files/file-upload-icon.vue +1 -1
  75. package/dist/runtime/components/input/date-picker.vue +85 -85
  76. package/dist/runtime/components/input/email-input.vue +21 -21
  77. package/dist/runtime/components/input/number-input.vue +132 -132
  78. package/dist/runtime/components/input/password-input.vue +28 -28
  79. package/dist/runtime/components/input/text-input.vue +33 -33
  80. package/dist/runtime/components/input/ui/button-input.vue +64 -64
  81. package/dist/runtime/components/input/ui/input-base.vue +283 -283
  82. package/dist/runtime/components/input/ui/input-inline.vue +105 -105
  83. package/dist/runtime/components/input/ui/input-label.vue +4 -4
  84. package/dist/runtime/components/input/ui/input-wrapper.vue +54 -54
  85. package/dist/runtime/components/input/ui/spin-input.vue +69 -69
  86. package/dist/runtime/components/link/link-button.vue +16 -16
  87. package/dist/runtime/components/link/link.vue +10 -10
  88. package/dist/runtime/components/loader/_loaders/bars-loader.vue +5 -5
  89. package/dist/runtime/components/loader/_loaders/dots-loader.vue +5 -5
  90. package/dist/runtime/components/loader/_loaders/oval-loader.vue +1 -1
  91. package/dist/runtime/components/loader/loader.vue +1 -1
  92. package/dist/runtime/components/modal/modal-close-button.vue +3 -3
  93. package/dist/runtime/components/modal/modal-header.vue +3 -3
  94. package/dist/runtime/components/modal/modal-root.vue +13 -13
  95. package/dist/runtime/components/modal/modal-title.vue +3 -3
  96. package/dist/runtime/components/nav-link/nav-icon-link.vue +15 -15
  97. package/dist/runtime/components/nav-link/nav-link.vue +130 -130
  98. package/dist/runtime/components/paper.vue +33 -33
  99. package/dist/runtime/components/popover/popover-dropdown.vue +70 -69
  100. package/dist/runtime/components/popover/popover-target.vue +8 -8
  101. package/dist/runtime/components/popover/popover.vue +1 -1
  102. package/dist/runtime/components/progress/progress-label.vue +3 -3
  103. package/dist/runtime/components/progress/progress-root.vue +3 -3
  104. package/dist/runtime/components/progress/progress-section.vue +8 -8
  105. package/dist/runtime/components/progress/progress.vue +9 -9
  106. package/dist/runtime/components/renderless/renderless.vue +3 -3
  107. package/dist/runtime/components/roving-focus/roving-focus-item.vue +14 -14
  108. package/dist/runtime/components/roving-focus/roving-focus.vue +3 -3
  109. package/dist/runtime/components/select/select.d.vue.ts +20 -7
  110. package/dist/runtime/components/select/select.vue +53 -19
  111. package/dist/runtime/components/select/select.vue.d.ts +20 -7
  112. package/dist/runtime/components/table/table.d.ts +30 -30
  113. package/dist/runtime/components/table/ui/table-sort-icon.vue +1 -1
  114. package/dist/runtime/components/table/ui/table-sortable-header.vue +11 -11
  115. package/dist/runtime/components/table/ui/table.vue +295 -295
  116. package/dist/runtime/components/tabs/tabs-list.vue +10 -10
  117. package/dist/runtime/components/tabs/tabs-panel.vue +11 -11
  118. package/dist/runtime/components/tabs/tabs-root.vue +8 -8
  119. package/dist/runtime/components/tabs/tabs-tab.vue +20 -20
  120. package/dist/runtime/components/text.vue +67 -67
  121. package/dist/runtime/components/textarea.vue +34 -34
  122. package/dist/runtime/components/time-picker/time-picker.vue +230 -230
  123. package/dist/runtime/components/title.vue +14 -14
  124. package/dist/runtime/components/transition/transition.vue +3 -3
  125. package/dist/runtime/components/tree/_ui/tree-item.vue +129 -128
  126. package/dist/runtime/components/tree/_ui/tree-root.vue +21 -21
  127. package/dist/runtime/components/tree/tree.vue +20 -20
  128. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +1 -1
  129. package/dist/runtime/components/visually-hidden/visually-hidden.vue +9 -9
  130. package/dist/runtime/modals/_confirm-modal/confirm-modal.vue +31 -31
  131. package/dist/runtime/modals/modals-provider.vue +10 -10
  132. package/dist/runtime/styles/dark-theme.css +1 -1
  133. package/package.json +2 -2
  134. package/dist/runtime/components/combobox/lib/utils/is-options-group.d.ts +0 -2
  135. /package/dist/runtime/components/combobox/lib/utils/{is-options-group.js → is-guards.js} +0 -0
@@ -29,112 +29,112 @@ const style = computed(() => ({
29
29
  </script>
30
30
 
31
31
  <template>
32
- <Box :style :class='$style.root' :mod='[{ "label-position": labelPosition }, mod]'>
33
- <div :class='$style.body'>
34
- <slot />
35
-
36
- <div :class='$style.wrapper'>
37
- <Box is='label' v-if='label || $slots.label' :class='$style.label' :for='id' :mod='{ disabled }'>
38
- <slot name='label'>
39
- {{ label }}
40
- </slot>
41
- </Box>
42
-
43
- <Box is='p' v-if='error' :class='$style.error' :mod='{ disabled }'>
44
- <slot name='error'>
45
- {{ error }}
46
- </slot>
47
- </Box>
48
-
49
- <Box is='p' v-else-if='description || $slots.description' :class='$style.description' :mod='{ disabled }'>
50
- <slot name='description'>
51
- {{ description }}
52
- </slot>
53
- </Box>
54
- </div>
55
- </div>
56
- </Box>
32
+ <Box :style :class='$style.root' :mod='[{ "label-position": labelPosition }, mod]'>
33
+ <div :class='$style.body'>
34
+ <slot />
35
+
36
+ <div :class='$style.wrapper'>
37
+ <Box is='label' v-if='label || $slots.label' :class='$style.label' :for='id' :mod='{ disabled }'>
38
+ <slot name='label'>
39
+ {{ label }}
40
+ </slot>
41
+ </Box>
42
+
43
+ <Box is='p' v-if='error' :class='$style.error' :mod='{ disabled }'>
44
+ <slot name='error'>
45
+ {{ error }}
46
+ </slot>
47
+ </Box>
48
+
49
+ <Box is='p' v-else-if='description || $slots.description' :class='$style.description' :mod='{ disabled }'>
50
+ <slot name='description'>
51
+ {{ description }}
52
+ </slot>
53
+ </Box>
54
+ </div>
55
+ </div>
56
+ </Box>
57
57
  </template>
58
58
 
59
59
  <style lang="postcss" module>
60
- .root {
61
- --label-lh-xs: rem(16px);
62
- --label-lh-sm: rem(20px);
63
- --label-lh-md: rem(24px);
64
- --label-lh-lg: rem(30px);
65
- --label-lh-xl: rem(36px);
66
- --label-lh: var(--label-lh-sm);
67
-
68
- --label-fz: var(--font-size-sm);
69
-
70
- &[data-label-position='left'] {
71
- --label-order: 0;
72
- }
73
-
74
- &[data-label-position='right'] {
75
- --label-order: 1;
76
- }
77
- }
78
-
79
- .body {
80
- display: flex;
81
- gap: var(--spacing-sm);
82
- }
83
-
84
- .wrapper {
85
- --label-cursor: default;
86
-
87
- cursor: var(--label-cursor);
88
-
89
- display: inline-flex;
90
- flex-direction: column;
91
- gap: .25rem;
92
- order: var(--label-order);
93
-
94
- font-size: var(--label-fz);
95
- line-height: var(--label-lh);
96
-
97
- -webkit-tap-highlight-color: transparent;
98
-
99
- fieldset:disabled &,
100
- &[data-disabled] {
101
- --label-cursor: not-allowed;
102
- }
103
-
104
- &:empty {
105
- display: none;
106
- }
107
- }
108
-
109
- .label {
110
- cursor: var(--label-cursor);
111
-
112
- color: inherit;
113
-
114
- fieldset:disabled &,
115
- &:where([data-disabled]) {
116
- color: var(--color-gray-5);
117
- }
118
- }
119
-
120
- .error,
121
- .description {
122
- display: block;
123
-
124
- margin: 0;
125
- padding: 0;
126
-
127
- line-height: 1.2;
128
- overflow-wrap: break-word;
129
- }
130
-
131
- .description {
132
- font-size: var(--input-description-size, calc(var(--font-size-sm) - rem(2px)));
133
- color: var(--color-dimmed);
134
- }
135
-
136
- .error {
137
- font-size: var(--input-error-size);
138
- color: var(--color-error);
139
- }
60
+ .root {
61
+ --label-lh-xs: rem(16px);
62
+ --label-lh-sm: rem(20px);
63
+ --label-lh-md: rem(24px);
64
+ --label-lh-lg: rem(30px);
65
+ --label-lh-xl: rem(36px);
66
+ --label-lh: var(--label-lh-sm);
67
+
68
+ --label-fz: var(--font-size-sm);
69
+
70
+ &[data-label-position='left'] {
71
+ --label-order: 0;
72
+ }
73
+
74
+ &[data-label-position='right'] {
75
+ --label-order: 1;
76
+ }
77
+ }
78
+
79
+ .body {
80
+ display: flex;
81
+ gap: var(--spacing-sm);
82
+ }
83
+
84
+ .wrapper {
85
+ --label-cursor: default;
86
+
87
+ cursor: var(--label-cursor);
88
+
89
+ display: inline-flex;
90
+ flex-direction: column;
91
+ gap: .25rem;
92
+ order: var(--label-order);
93
+
94
+ font-size: var(--label-fz);
95
+ line-height: var(--label-lh);
96
+
97
+ -webkit-tap-highlight-color: transparent;
98
+
99
+ fieldset:disabled &,
100
+ &[data-disabled] {
101
+ --label-cursor: not-allowed;
102
+ }
103
+
104
+ &:empty {
105
+ display: none;
106
+ }
107
+ }
108
+
109
+ .label {
110
+ cursor: var(--label-cursor);
111
+
112
+ color: inherit;
113
+
114
+ fieldset:disabled &,
115
+ &:where([data-disabled]) {
116
+ color: var(--color-gray-5);
117
+ }
118
+ }
119
+
120
+ .error,
121
+ .description {
122
+ display: block;
123
+
124
+ margin: 0;
125
+ padding: 0;
126
+
127
+ line-height: 1.2;
128
+ overflow-wrap: break-word;
129
+ }
130
+
131
+ .description {
132
+ font-size: var(--input-description-size, calc(var(--font-size-sm) - rem(2px)));
133
+ color: var(--color-dimmed);
134
+ }
135
+
136
+ .error {
137
+ font-size: var(--input-error-size);
138
+ color: var(--color-error);
139
+ }
140
140
  </style>
@@ -12,10 +12,10 @@ const style = computed(() => ({
12
12
  </script>
13
13
 
14
14
  <template>
15
- <label :style :class='$style.root'>
16
- <slot />
17
- <span v-if='required' :class='$style.required'> *</span>
18
- </label>
15
+ <label :style :class='$style.root'>
16
+ <slot />
17
+ <span v-if='required' :class='$style.required'> *</span>
18
+ </label>
19
19
  </template>
20
20
 
21
21
  <style module>
@@ -52,61 +52,61 @@ const style = computed(() => ({
52
52
  </script>
53
53
 
54
54
  <template>
55
- <div :style :class='$style.wrapper'>
56
- <InputLabel
57
- :data-v-hidden='!label && !$slots.label || null'
58
- :for='uid'
59
- :class='$style.label'
60
- :size
61
- :required
62
- >
63
- <slot name='label'>
64
- {{ label }}
65
- </slot>
66
- </InputLabel>
67
-
68
- <slot />
69
-
70
- <p v-if='error' :class='$style.error'>
71
- <slot name='error'>
72
- {{ error }}
73
- </slot>
74
- </p>
75
-
76
- <p v-else-if='description || $slots.description' :class='$style.description'>
77
- <slot name='description'>
78
- {{ description }}
79
- </slot>
80
- </p>
81
- </div>
55
+ <div :style :class='$style.wrapper'>
56
+ <InputLabel
57
+ :data-v-hidden='!label && !$slots.label || null'
58
+ :for='uid'
59
+ :class='$style.label'
60
+ :size
61
+ :required
62
+ >
63
+ <slot name='label'>
64
+ {{ label }}
65
+ </slot>
66
+ </InputLabel>
67
+
68
+ <slot />
69
+
70
+ <p v-if='error' :class='$style.error'>
71
+ <slot name='error'>
72
+ {{ error }}
73
+ </slot>
74
+ </p>
75
+
76
+ <p v-else-if='description || $slots.description' :class='$style.description'>
77
+ <slot name='description'>
78
+ {{ description }}
79
+ </slot>
80
+ </p>
81
+ </div>
82
82
  </template>
83
83
 
84
84
  <style lang="postcss" module>
85
- .wrapper {
86
- --input-error-size: calc(var(--font-size-sm) - rem(2px));
87
- --input-description-size: calc(var(--font-size-sm) - rem(2px));
88
-
89
- line-height: var(--line-height);
90
- }
91
-
92
- .error,
93
- .description {
94
- display: block;
95
-
96
- margin: 0;
97
- padding: 0;
98
-
99
- line-height: 1.2;
100
- overflow-wrap: break-word;
101
- }
102
-
103
- .error {
104
- font-size: var(--input-error-size);
105
- color: var(--color-error);
106
- }
107
-
108
- .description {
109
- font-size: var(--input-description-size, calc(var(--font-size-sm) - rem(2px)));
110
- color: var(--color-dimmed);
111
- }
85
+ .wrapper {
86
+ --input-error-size: calc(var(--font-size-sm) - rem(2px));
87
+ --input-description-size: calc(var(--font-size-sm) - rem(2px));
88
+
89
+ line-height: var(--line-height);
90
+ }
91
+
92
+ .error,
93
+ .description {
94
+ display: block;
95
+
96
+ margin: 0;
97
+ padding: 0;
98
+
99
+ line-height: 1.2;
100
+ overflow-wrap: break-word;
101
+ }
102
+
103
+ .error {
104
+ font-size: var(--input-error-size);
105
+ color: var(--color-error);
106
+ }
107
+
108
+ .description {
109
+ font-size: var(--input-description-size, calc(var(--font-size-sm) - rem(2px)));
110
+ color: var(--color-dimmed);
111
+ }
112
112
  </style>
@@ -87,76 +87,76 @@ function handleKeyDown(event) {
87
87
  </script>
88
88
 
89
89
  <template>
90
- <input
91
- v-model='value'
92
- type='text'
93
- role='spinbutton'
94
- :aria-valuemin='min'
95
- :aria-valuemax='max'
96
- :aria-valuenow='value === null ? 0 : value'
97
- :data-empty='value === null || void 0'
98
- inputMode='numeric'
99
- :placeholder
100
- :readonly
101
- :disabled
102
- :class='$style.field'
103
- @keydown='handleKeyDown'
104
- @focus='!readonly && !disabled && ($event?.target).select()'
105
- @click.stop='!readonly && !disabled && ($event?.target).select()'
106
- >
90
+ <input
91
+ v-model='value'
92
+ type='text'
93
+ role='spinbutton'
94
+ :aria-valuemin='min'
95
+ :aria-valuemax='max'
96
+ :aria-valuenow='value === null ? 0 : value'
97
+ :data-empty='value === null || void 0'
98
+ inputMode='numeric'
99
+ :placeholder
100
+ :readonly
101
+ :disabled
102
+ :class='$style.field'
103
+ @keydown='handleKeyDown'
104
+ @focus='!readonly && !disabled && ($event?.target).select()'
105
+ @click.stop='!readonly && !disabled && ($event?.target).select()'
106
+ >
107
107
  </template>
108
108
 
109
109
  <style lang="postcss" module>
110
- .field {
111
- position: relative;
112
-
113
- width: calc(2ch + 0.3em);
114
- height: 100%;
115
- padding-inline: 0.15em;
116
- border: 0;
117
- border-radius: 2px;
118
-
119
- font-variant-numeric: tabular-nums;
120
- line-height: 1;
121
- color: var(--input-color);
122
- text-align: center;
123
- text-align-last: center;
124
-
125
- appearance: none;
126
- background-color: transparent;
127
- caret-color: transparent;
128
-
129
- &:where([data-am-pm]) {
130
- width: auto;
131
- }
132
-
133
- &:where(:disabled) {
134
- cursor: not-allowed;
135
- }
136
-
137
- &::selection {
138
- background-color: transparent;
139
- }
140
-
141
- &::placeholder {
142
- color: inherit;
143
-
144
- opacity: 1;
145
- }
146
-
147
- &:not(:read-only):focus {
148
- color: var(--color-white);
149
-
150
- background-color: var(--color-primary-filled);
151
- outline: 0;
152
-
153
- &::placeholder {
154
- color: var(--color-white);
155
- }
156
- }
157
-
158
- &:read-only:focus {
159
- outline: 0;
160
- }
161
- }
110
+ .field {
111
+ position: relative;
112
+
113
+ width: calc(2ch + 0.3em);
114
+ height: 100%;
115
+ padding-inline: 0.15em;
116
+ border: 0;
117
+ border-radius: 2px;
118
+
119
+ font-variant-numeric: tabular-nums;
120
+ line-height: 1;
121
+ color: var(--input-color);
122
+ text-align: center;
123
+ text-align-last: center;
124
+
125
+ appearance: none;
126
+ background-color: transparent;
127
+ caret-color: transparent;
128
+
129
+ &:where([data-am-pm]) {
130
+ width: auto;
131
+ }
132
+
133
+ &:where(:disabled) {
134
+ cursor: not-allowed;
135
+ }
136
+
137
+ &::selection {
138
+ background-color: transparent;
139
+ }
140
+
141
+ &::placeholder {
142
+ color: inherit;
143
+
144
+ opacity: 1;
145
+ }
146
+
147
+ &:not(:read-only):focus {
148
+ color: var(--color-white);
149
+
150
+ background-color: var(--color-primary-filled);
151
+ outline: 0;
152
+
153
+ &::placeholder {
154
+ color: var(--color-white);
155
+ }
156
+ }
157
+
158
+ &:read-only:focus {
159
+ outline: 0;
160
+ }
161
+ }
162
162
  </style>
@@ -36,26 +36,26 @@ const { link, rest } = pickLinkProps(props);
36
36
  </script>
37
37
 
38
38
  <template>
39
- <NuxtLink v-slot='{ href, navigate, ...linkProps }' v-bind='link' custom>
40
- <Button
39
+ <NuxtLink v-slot='{ href, navigate, ...linkProps }' v-bind='link' custom>
40
+ <Button
41
41
  v-bind='{
42
42
  ...rest,
43
43
  is: rest?.is || "a",
44
44
  href,
45
45
  rel: "rel" in linkProps ? linkProps.rel : void 0,
46
46
  target: "target" in linkProps ? linkProps.target : void 0
47
- }'
48
- @click='navigate'
49
- >
50
- <template v-if='$slots.leftSection' #leftSection>
51
- <slot name='leftSection' />
52
- </template>
53
-
54
- <slot />
55
-
56
- <template v-if='$slots.rightSection' #rightSection>
57
- <slot name='rightSection' />
58
- </template>
59
- </Button>
60
- </NuxtLink>
47
+ }'
48
+ @click='navigate'
49
+ >
50
+ <template v-if='$slots.leftSection' #leftSection>
51
+ <slot name='leftSection' />
52
+ </template>
53
+
54
+ <slot />
55
+
56
+ <template v-if='$slots.rightSection' #rightSection>
57
+ <slot name='rightSection' />
58
+ </template>
59
+ </Button>
60
+ </NuxtLink>
61
61
  </template>
@@ -37,22 +37,22 @@ const { link, rest: { underline, ...rest } } = pickLinkProps(props);
37
37
  </script>
38
38
 
39
39
  <template>
40
- <NuxtLink v-slot='{ href, navigate, ...linkProps }' v-bind='link' custom>
41
- <Text
42
- is='a'
43
- :class='[$style.root, { [$style.underline]: underline }]'
40
+ <NuxtLink v-slot='{ href, navigate, ...linkProps }' v-bind='link' custom>
41
+ <Text
42
+ is='a'
43
+ :class='[$style.root, { [$style.underline]: underline }]'
44
44
  v-bind='{
45
45
  ...rest,
46
46
  ...$attrs,
47
47
  href,
48
48
  rel: "rel" in linkProps ? linkProps.rel : void 0,
49
49
  target: "target" in linkProps ? linkProps.target : void 0
50
- }'
51
- @click='navigate'
52
- >
53
- <slot />
54
- </Text>
55
- </NuxtLink>
50
+ }'
51
+ @click='navigate'
52
+ >
53
+ <slot />
54
+ </Text>
55
+ </NuxtLink>
56
56
  </template>
57
57
 
58
58
  <style module>
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <span :class='$style.root'>
3
- <span :class='$style.bar' />
4
- <span :class='$style.bar' />
5
- <span :class='$style.bar' />
6
- </span>
2
+ <span :class='$style.root'>
3
+ <span :class='$style.bar' />
4
+ <span :class='$style.bar' />
5
+ <span :class='$style.bar' />
6
+ </span>
7
7
  </template>
8
8
 
9
9
  <style module>
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <span :class='$style.root'>
3
- <span :class='$style.dot' />
4
- <span :class='$style.dot' />
5
- <span :class='$style.dot' />
6
- </span>
2
+ <span :class='$style.root'>
3
+ <span :class='$style.dot' />
4
+ <span :class='$style.dot' />
5
+ <span :class='$style.dot' />
6
+ </span>
7
7
  </template>
8
8
 
9
9
  <style module>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span :class='$style.root' />
2
+ <span :class='$style.root' />
3
3
  </template>
4
4
 
5
5
  <style module>
@@ -25,7 +25,7 @@ const style = computed(() => useStyleResolver((theme) => {
25
25
  </script>
26
26
 
27
27
  <template>
28
- <component :is='loaders[type]' :class='$style.root' :style />
28
+ <component :is='loaders[type]' :class='$style.root' :style />
29
29
  </template>
30
30
 
31
31
  <style module>
@@ -15,7 +15,7 @@ const props = defineProps({
15
15
  </script>
16
16
 
17
17
  <template>
18
- <DialogCloseButton v-bind='props'>
19
- <slot />
20
- </DialogCloseButton>
18
+ <DialogCloseButton v-bind='props'>
19
+ <slot />
20
+ </DialogCloseButton>
21
21
  </template>
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  </script>
8
8
 
9
9
  <template>
10
- <DialogHeader v-bind='props'>
11
- <slot />
12
- </DialogHeader>
10
+ <DialogHeader v-bind='props'>
11
+ <slot />
12
+ </DialogHeader>
13
13
  </template>
@@ -31,17 +31,17 @@ const opened = defineModel("open", { type: Boolean, ...{ default: false } });
31
31
  </script>
32
32
 
33
33
  <template>
34
- <DialogRoot
35
- v-model:open='opened'
36
- :mod='[{ centered, "full-screen": fullScreen }, mod]'
37
- :root-class='css.root'
38
- :within-portal
39
- :close-on-click-outside
40
- :without-overlay
41
- v-bind='rest'
42
- @open='$emit("open")'
43
- @close='$emit("close")'
44
- >
45
- <slot />
46
- </DialogRoot>
34
+ <DialogRoot
35
+ v-model:open='opened'
36
+ :mod='[{ centered, "full-screen": fullScreen }, mod]'
37
+ :root-class='css.root'
38
+ :within-portal
39
+ :close-on-click-outside
40
+ :without-overlay
41
+ v-bind='rest'
42
+ @open='$emit("open")'
43
+ @close='$emit("close")'
44
+ >
45
+ <slot />
46
+ </DialogRoot>
47
47
  </template>