@dpa-id-components/dpa-shared-components 22.0.0-next.9 → 22.0.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/dist/assets/icons/bot.vue.d.ts +3 -0
- package/dist/bot-C103nFwL.js +19 -0
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +1 -1
- package/dist/components/UiIcon/icons.d.ts +1 -0
- package/dist/components/UiInput/UiInput.vue.d.ts +1 -1
- package/dist/components/UiMenu/UiMenu.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -18
- package/dist/dpa-shared-components.js +3326 -3978
- package/dist/eslint.base.config.js +1 -4
- package/dist/src/assets/icons/bot.vue +14 -0
- package/dist/src/components/UiChip/UiChip.spec.ts +1 -1
- package/dist/src/components/UiChip/UiChip.vue +2 -2
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +11 -8
- package/dist/src/components/UiDialog/UiDialog.vue +10 -7
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +1 -3
- package/dist/src/components/UiIcon/UiIcon.stories.ts +1 -1
- package/dist/src/components/UiIcon/icons.ts +1 -0
- package/dist/src/components/UiListItem/README.md +13 -12
- package/dist/src/components/UiListItem/UiListItem.stories.ts +0 -26
- package/dist/src/components/UiListItem/UiListItem.vue +1 -1
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.stories.ts +1 -1
- package/dist/src/components/UiMenu/UiMenu.stories.ts +85 -2
- package/dist/src/components/UiMenu/UiMenu.vue +7 -8
- package/dist/src/components/UiSelect/UiSelect.vue +1 -1
- package/dist/src/components/index.ts +0 -33
- package/dist/src/tailwindPreset.css +70 -62
- package/dist/style.css +2 -2
- package/dist/tailwindPreset.css +70 -62
- package/package.json +19 -19
- package/src/assets/icons/bot.vue +14 -0
- package/src/components/UiChip/UiChip.vue +2 -2
- package/src/components/UiDatePicker/UiDatePicker.vue +11 -8
- package/src/components/UiDialog/UiDialog.vue +10 -7
- package/src/components/UiIcon/icons.ts +1 -0
- package/src/components/UiListItem/README.md +13 -12
- package/src/components/UiListItem/UiListItem.vue +1 -1
- package/src/components/UiMenu/UiMenu.vue +7 -8
- package/src/components/UiSelect/UiSelect.vue +1 -1
- package/src/tailwindPreset.css +70 -62
- package/dist/components/DpaMediaItem/DpaMediaItem.vue.d.ts +0 -43
- package/dist/components/UiButtonGroup/UiButtonGroup.vue.d.ts +0 -7
- package/dist/components/UiCard/UiCard.vue.d.ts +0 -7
- package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.vue.d.ts +0 -33
- package/dist/components/UiCollapseNavigation/UiCollapseNavigation.vue.d.ts +0 -28
- package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +0 -54
- package/dist/components/UiIconButton/UiIconButton.vue.d.ts +0 -30
- package/dist/components/UiList/UiList.vue.d.ts +0 -7
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +0 -35
- package/dist/components/UiMenu/UiMenuList.vue.d.ts +0 -20
- package/dist/components/UiOverlay/UiOverlay.vue.d.ts +0 -18
- package/dist/components/UiOverlayMenu/UiOverlayMenu.vue.d.ts +0 -24
- package/dist/components/UiRadioInputGroup/UiRadioInputGroup.vue.d.ts +0 -35
- package/dist/components/UiSection/UiSection.vue.d.ts +0 -29
- package/dist/components/UiSectionDivider/UiSectionDivider.vue.d.ts +0 -16
- package/dist/components/UiTextButton/UiTextButton.vue.d.ts +0 -42
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +0 -123
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +0 -140
- package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
- package/dist/src/components/DpaMediaItem/README.md +0 -42
- package/dist/src/components/UiButtonGroup/README.md +0 -29
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +0 -16
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +0 -53
- package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +0 -29
- package/dist/src/components/UiCard/README.md +0 -32
- package/dist/src/components/UiCard/UiCard.spec.ts +0 -16
- package/dist/src/components/UiCard/UiCard.stories.ts +0 -30
- package/dist/src/components/UiCard/UiCard.vue +0 -28
- package/dist/src/components/UiCheckBoxGroup/README.md +0 -35
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +0 -70
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +0 -59
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
- package/dist/src/components/UiCollapseNavigation/README.md +0 -37
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +0 -21
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +0 -67
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
- package/dist/src/components/UiFilterButton/README.md +0 -37
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +0 -79
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +0 -90
- package/dist/src/components/UiFilterButton/UiFilterButton.vue +0 -170
- package/dist/src/components/UiIconButton/README.md +0 -31
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +0 -78
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +0 -65
- package/dist/src/components/UiIconButton/UiIconButton.vue +0 -112
- package/dist/src/components/UiList/README.md +0 -31
- package/dist/src/components/UiList/UiList.spec.ts +0 -23
- package/dist/src/components/UiList/UiList.stories.ts +0 -66
- package/dist/src/components/UiList/UiList.vue +0 -29
- package/dist/src/components/UiMenu/UiMenuItem.vue +0 -71
- package/dist/src/components/UiMenu/UiMenuList.vue +0 -40
- package/dist/src/components/UiOverlay/README.md +0 -38
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +0 -16
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +0 -22
- package/dist/src/components/UiOverlay/UiOverlay.vue +0 -36
- package/dist/src/components/UiOverlayMenu/README.md +0 -40
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +0 -33
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +0 -40
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
- package/dist/src/components/UiRadioInputGroup/README.md +0 -51
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +0 -66
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +0 -45
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +0 -76
- package/dist/src/components/UiSection/README.md +0 -33
- package/dist/src/components/UiSection/UiSection.spec.ts +0 -49
- package/dist/src/components/UiSection/UiSection.stories.ts +0 -61
- package/dist/src/components/UiSection/UiSection.vue +0 -63
- package/dist/src/components/UiSectionDivider/README.md +0 -29
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +0 -19
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +0 -49
- package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
- package/dist/src/components/UiTextButton/README.md +0 -41
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +0 -99
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +0 -62
- package/dist/src/components/UiTextButton/UiTextButton.vue +0 -173
- package/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
- package/src/components/DpaMediaItem/README.md +0 -42
- package/src/components/UiButtonGroup/README.md +0 -29
- package/src/components/UiButtonGroup/UiButtonGroup.vue +0 -29
- package/src/components/UiCard/README.md +0 -32
- package/src/components/UiCard/UiCard.vue +0 -28
- package/src/components/UiCheckBoxGroup/README.md +0 -35
- package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
- package/src/components/UiCollapseNavigation/README.md +0 -37
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
- package/src/components/UiFilterButton/README.md +0 -37
- package/src/components/UiFilterButton/UiFilterButton.vue +0 -170
- package/src/components/UiIconButton/README.md +0 -31
- package/src/components/UiIconButton/UiIconButton.vue +0 -112
- package/src/components/UiList/README.md +0 -31
- package/src/components/UiList/UiList.vue +0 -29
- package/src/components/UiMenu/UiMenuItem.vue +0 -71
- package/src/components/UiMenu/UiMenuList.vue +0 -40
- package/src/components/UiOverlay/README.md +0 -38
- package/src/components/UiOverlay/UiOverlay.vue +0 -36
- package/src/components/UiOverlayMenu/README.md +0 -40
- package/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
- package/src/components/UiRadioInputGroup/README.md +0 -51
- package/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +0 -76
- package/src/components/UiSection/README.md +0 -33
- package/src/components/UiSection/UiSection.vue +0 -63
- package/src/components/UiSectionDivider/README.md +0 -29
- package/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
- package/src/components/UiTextButton/README.md +0 -41
- package/src/components/UiTextButton/UiTextButton.vue +0 -173
package/dist/tailwindPreset.css
CHANGED
|
@@ -36,33 +36,12 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
@theme {
|
|
39
|
-
/*
|
|
40
|
-
--color-
|
|
41
|
-
--color-
|
|
42
|
-
|
|
43
|
-
--color-
|
|
44
|
-
--color-
|
|
45
|
-
--color-rainbow-orange: #ffb300;
|
|
46
|
-
--color-rainbow-purple: #8e24aa;
|
|
47
|
-
--color-blue-default: oklch(0.459 0.242 263.397);
|
|
48
|
-
--color-blue-dark: #0030aa;
|
|
49
|
-
--color-green-neon: #00e281;
|
|
50
|
-
--color-green-primary: #00b064;
|
|
51
|
-
--color-green-night: #006345;
|
|
52
|
-
|
|
53
|
-
/* ---Gray Overrides - */
|
|
54
|
-
--color-gray-100: oklch(0.97 0 0);
|
|
55
|
-
--color-gray-200: oklch(0.949 0 0);
|
|
56
|
-
--color-gray-300: oklch(0.916 0 0);
|
|
57
|
-
--color-gray-400: oklch(0.789 0 0);
|
|
58
|
-
--color-gray-500: oklch(0.64 0 0);
|
|
59
|
-
--color-gray-600: oklch(0.593 0 0);
|
|
60
|
-
--color-gray-700: oklch(0.562 0 0);
|
|
61
|
-
--color-gray-800: oklch(0.418 0 0);
|
|
62
|
-
--color-gray-900: oklch(0.248 0 0);
|
|
63
|
-
|
|
64
|
-
--color-error: oklch(0.627 0.234 32.5);
|
|
65
|
-
--color-error-dark: oklch(0.511 0.189 32.9);
|
|
39
|
+
/* TODO: Remove primitive color definition. */
|
|
40
|
+
--color-alert-red-default: oklch(0.627 0.234 32.527);
|
|
41
|
+
--color-error: oklch(0.627 0.234 32.527);
|
|
42
|
+
/* TODO: Remove primitive color definition. */
|
|
43
|
+
--color-alert-red-dark: oklch(0.511 0.189 32.898);
|
|
44
|
+
--color-error-dark: oklch(0.511 0.189 32.898);
|
|
66
45
|
--color-error-darkest: oklch(0.379 0.136 34.1);
|
|
67
46
|
|
|
68
47
|
--color-red-default: oklch(0.608 0.209 27);
|
|
@@ -74,8 +53,12 @@
|
|
|
74
53
|
--color-purple-default: oklch(0.49 0.208 318);
|
|
75
54
|
--color-purple-dark: oklch(0.357 0.177 314.2);
|
|
76
55
|
|
|
77
|
-
|
|
78
|
-
--color-
|
|
56
|
+
/* TODO: Remove primitive color definition. */
|
|
57
|
+
--color-blue-default: oklch(0.459 0.242 263.397);
|
|
58
|
+
--color-primary: oklch(0.459 0.242 263.397);
|
|
59
|
+
/* TODO: Remove primitive color definition. */
|
|
60
|
+
--color-blue-dark: oklch(0.384 0.198 263.247);
|
|
61
|
+
--color-primary-dark: oklch(0.384 0.198 263.247);
|
|
79
62
|
--color-primary-darkest: oklch(0.29 0.142 262.7);
|
|
80
63
|
--color-primary-light: oklch(0.496 0.263 263.5);
|
|
81
64
|
|
|
@@ -85,10 +68,16 @@
|
|
|
85
68
|
--color-teal-default: oklch(0.566 0.101 182.5);
|
|
86
69
|
--color-teal-dark: oklch(0.422 0.077 179.8);
|
|
87
70
|
|
|
88
|
-
|
|
89
|
-
--color-
|
|
71
|
+
/* TODO: Remove primitive color definition. */
|
|
72
|
+
--color-green-primary: oklch(0.665 0.165 154.776);
|
|
73
|
+
--color-secondary: oklch(0.665 0.165 154.776);
|
|
74
|
+
/* TODO: Remove primitive color definition. */
|
|
75
|
+
--color-green-night: oklch(0.442 0.094 164.147);
|
|
76
|
+
--color-secondary-dark: oklch(0.442 0.094 164.147);
|
|
90
77
|
--color-secondary-darkest: oklch(0.329 0.069 164.9);
|
|
91
|
-
|
|
78
|
+
/* TODO: Remove primitive color definition. */
|
|
79
|
+
--color-green-neon: oklch(0.801 0.2 154.544);
|
|
80
|
+
--color-secondary-light: oklch(0.801 0.2 154.544);
|
|
92
81
|
|
|
93
82
|
--color-yellow-default: oklch(0.942 0.204 108.5);
|
|
94
83
|
--color-yellow-dark: oklch(0.814 0.173 104.8);
|
|
@@ -100,100 +89,119 @@
|
|
|
100
89
|
--color-brown-default: oklch(0.497 0.123 54.7);
|
|
101
90
|
--color-brown-dark: oklch(0.395 0.096 56.4);
|
|
102
91
|
|
|
103
|
-
/*
|
|
92
|
+
/* Primary */
|
|
104
93
|
--color-primary-hover: var(--color-primary-dark);
|
|
105
94
|
--color-primary-pressed: var(--color-primary-darkest);
|
|
106
95
|
--color-primary-active: var(--color-primary-darkest);
|
|
107
96
|
--color-primary-emphasis: var(--color-primary-light);
|
|
108
97
|
|
|
109
|
-
/*
|
|
98
|
+
/* Secondary */
|
|
110
99
|
--color-secondary-hover: var(--color-secondary-dark);
|
|
111
100
|
--color-secondary-pressed: var(--color-secondary-darkest);
|
|
112
101
|
--color-secondary-active: var(--color-secondary-darkest);
|
|
113
102
|
--color-secondary-emphasis: var(--color-secondary-light);
|
|
114
103
|
|
|
115
|
-
/*
|
|
104
|
+
/* Signal: Success */
|
|
116
105
|
--color-success: var(--color-secondary);
|
|
117
106
|
--color-success-hover: var(--color-secondary-dark);
|
|
118
107
|
--color-success-pressed: var(--color-secondary-darkest);
|
|
119
108
|
--color-success-active: var(--color-secondary-darkest);
|
|
120
109
|
|
|
121
|
-
/*
|
|
110
|
+
/* Signal: Error */
|
|
122
111
|
--color-error-hover: var(--color-error-dark);
|
|
123
112
|
--color-error-pressed: var(--color-error-darkest);
|
|
124
113
|
--color-error-active: var(--color-error-darkest);
|
|
125
114
|
|
|
126
|
-
/*
|
|
115
|
+
/* Signal: Warning */
|
|
127
116
|
--color-warning: var(--color-orange-default);
|
|
128
117
|
--color-warning-hover: var(--color-orange-dark);
|
|
129
118
|
--color-warning-pressed: var(--color-orange-darkest);
|
|
130
119
|
--color-warning-active: var(--color-orange-darkest);
|
|
131
120
|
|
|
132
|
-
/*
|
|
121
|
+
/* Accent: Red */
|
|
133
122
|
--color-accent-red: var(--color-red-default);
|
|
134
123
|
--color-accent-red-dark: var(--color-red-dark);
|
|
135
124
|
|
|
136
|
-
/*
|
|
125
|
+
/* Accent: Pink */
|
|
137
126
|
--color-accent-pink: var(--color-pink-default);
|
|
138
127
|
--color-accent-pink-dark: var(--color-pink-dark);
|
|
139
128
|
|
|
140
|
-
/*
|
|
129
|
+
/* Accent: Purple */
|
|
141
130
|
--color-accent-purple: var(--color-purple-default);
|
|
142
131
|
--color-accent-purple-dark: var(--color-purple-dark);
|
|
143
132
|
|
|
144
|
-
/*
|
|
133
|
+
/* Accent: Cyan */
|
|
145
134
|
--color-accent-cyan: var(--color-cyan-default);
|
|
146
135
|
--color-accent-cyan-dark: var(--color-cyan-dark);
|
|
147
136
|
|
|
148
|
-
/*
|
|
137
|
+
/* Accent: Teal */
|
|
149
138
|
--color-accent-teal: var(--color-teal-default);
|
|
150
139
|
--color-accent-teal-dark: var(--color-teal-dark);
|
|
151
140
|
|
|
152
|
-
/*
|
|
141
|
+
/* Accent: Green */
|
|
153
142
|
--color-accent-green: var(--color-secondary);
|
|
154
143
|
--color-accent-green-hover: var(--color-secondary-dark);
|
|
155
144
|
|
|
156
|
-
/*
|
|
145
|
+
/* Accent: Yellow */
|
|
157
146
|
--color-accent-yellow: var(--color-yellow-default);
|
|
158
147
|
--color-accent-yellow-dark: var(--color-yellow-dark);
|
|
159
148
|
|
|
160
|
-
/*
|
|
149
|
+
/* Accent: Orange */
|
|
161
150
|
--color-accent-orange: var(--color-orange-default);
|
|
162
151
|
--color-accent-orange-dark: var(--color-orange-dark);
|
|
163
152
|
--color-accent-orange-darkest: var(--color-orange-darkest);
|
|
164
153
|
|
|
165
|
-
/*
|
|
154
|
+
/* Accent: Brown */
|
|
166
155
|
--color-accent-brown: var(--color-brown-default);
|
|
167
156
|
--color-accent-brown-dark: var(--color-brown-dark);
|
|
168
157
|
|
|
169
|
-
--color-surface-base: var(--color-
|
|
170
|
-
--color-surface-level-1: var(--color-
|
|
158
|
+
--color-surface-base: var(--color-neutral-whisper);
|
|
159
|
+
--color-surface-level-1: var(--color-neutral);
|
|
171
160
|
|
|
172
|
-
/*
|
|
161
|
+
/* Overlay & Shadow */
|
|
173
162
|
--color-overlay: oklch(0 0 0 / 0.75);
|
|
174
163
|
--color-shadow-weak: oklch(0 0 0 / 0.1);
|
|
175
164
|
--color-shadow-medium: oklch(0 0 0 / 0.2);
|
|
176
165
|
--color-shadow-strong: oklch(0 0 0 / 0.35);
|
|
177
166
|
|
|
178
|
-
/*
|
|
179
|
-
--color-
|
|
180
|
-
--color-neutral
|
|
181
|
-
|
|
182
|
-
--color-
|
|
183
|
-
--color-neutral-
|
|
184
|
-
|
|
185
|
-
--color-
|
|
186
|
-
--color-neutral-
|
|
187
|
-
|
|
188
|
-
--color-
|
|
167
|
+
/* Neutral */
|
|
168
|
+
--color-transparent: oklch(0 0 0 / 0);
|
|
169
|
+
--color-neutral: oklch(1 0 0);
|
|
170
|
+
/* TODO: Remove primitive color definition. */
|
|
171
|
+
--color-gray-900: oklch(0.248 0 0);
|
|
172
|
+
--color-neutral-primary: oklch(0.248 0 0);
|
|
173
|
+
/* TODO: Remove primitive color definition. */
|
|
174
|
+
--color-gray-800: oklch(0.418 0 0);
|
|
175
|
+
--color-neutral-emphasis: oklch(0.418 0 0);
|
|
176
|
+
/* TODO: Remove primitive color definition. */
|
|
177
|
+
--color-gray-700: oklch(0.562 0 0);
|
|
178
|
+
--color-neutral-subtle: oklch(0.562 0 0);
|
|
179
|
+
/* TODO: Remove primitive color definition. */
|
|
180
|
+
--color-gray-600: oklch(0.593 0 0);
|
|
181
|
+
--color-neutral-medium: oklch(0.593 0 0);
|
|
182
|
+
/* TODO: Remove primitive color definition. */
|
|
183
|
+
--color-gray-500: oklch(0.64 0 0);
|
|
184
|
+
--color-neutral-muted: oklch(0.64 0 0);
|
|
185
|
+
/* TODO: Remove primitive color definition. */
|
|
186
|
+
--color-gray-400: oklch(0.789 0 0);
|
|
187
|
+
--color-neutral-soft: oklch(0.789 0 0);
|
|
188
|
+
/* TODO: Remove primitive color definition. */
|
|
189
|
+
--color-gray-300: oklch(0.916 0 0);
|
|
190
|
+
--color-neutral-faint: oklch(0.916 0 0);
|
|
191
|
+
/* TODO: Remove primitive color definition. */
|
|
192
|
+
--color-gray-200: oklch(0.949 0 0);
|
|
193
|
+
--color-neutral-pale: oklch(0.949 0 0);
|
|
194
|
+
/* TODO: Remove primitive color definition. */
|
|
195
|
+
--color-gray-100: oklch(0.97 0 0);
|
|
196
|
+
--color-neutral-whisper: oklch(0.97 0 0);
|
|
189
197
|
--color-neutral-disabled: oklch(0 0 0 / 0.2);
|
|
190
|
-
--color-neutral-inverse-primary:
|
|
198
|
+
--color-neutral-inverse-primary: oklch(1 0 0);
|
|
191
199
|
--color-neutral-inverse-subtle: oklch(1 0 0 / 0.8);
|
|
192
200
|
--color-neutral-inverse-muted: oklch(1 0 0 / 0.6);
|
|
193
201
|
--color-neutral-inverse-faint: oklch(1 0 0 / 0.4);
|
|
194
202
|
--color-neutral-inverse-disabled: oklch(1 0 0 / 0.2);
|
|
195
203
|
|
|
196
|
-
/*
|
|
204
|
+
/* TODO: Remove in favor of shadow-sm. */
|
|
197
205
|
--shadow-default: var(--shadow-sm);
|
|
198
206
|
|
|
199
207
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpa-id-components/dpa-shared-components",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"description": "Shared Vue components library for dpa projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -40,45 +40,45 @@
|
|
|
40
40
|
"devEngines": {
|
|
41
41
|
"runtime": {
|
|
42
42
|
"name": "node",
|
|
43
|
-
"version": "24.
|
|
43
|
+
"version": "24.18.0"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": {
|
|
46
46
|
"name": "pnpm",
|
|
47
|
-
"version": "11.
|
|
47
|
+
"version": "11.11.0",
|
|
48
48
|
"onFail": "download"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@eslint/js": "10.0.1",
|
|
53
|
-
"@storybook/addon-docs": "10.
|
|
54
|
-
"@storybook/vue3-vite": "10.
|
|
53
|
+
"@storybook/addon-docs": "10.5.0",
|
|
54
|
+
"@storybook/vue3-vite": "10.5.0",
|
|
55
55
|
"@tailwindcss/typography": "0.5.20",
|
|
56
|
-
"@tailwindcss/vite": "4.3.
|
|
56
|
+
"@tailwindcss/vite": "4.3.2",
|
|
57
57
|
"@tsconfig/node24": "24.0.4",
|
|
58
58
|
"@types/jsdom": "28.0.3",
|
|
59
|
-
"@types/node": "25.9.
|
|
59
|
+
"@types/node": "25.9.5",
|
|
60
60
|
"@vitejs/plugin-vue": "6.0.7",
|
|
61
61
|
"@vue/test-utils": "2.4.11",
|
|
62
62
|
"@vue/tsconfig": "0.9.1",
|
|
63
63
|
"ajv": "8.20.0",
|
|
64
64
|
"commit-and-tag-version": "12.7.3",
|
|
65
|
-
"eslint": "10.
|
|
66
|
-
"eslint-plugin-storybook": "10.
|
|
65
|
+
"eslint": "10.7.0",
|
|
66
|
+
"eslint-plugin-storybook": "10.5.0",
|
|
67
67
|
"husky": "9.1.7",
|
|
68
68
|
"jsdom": "29.1.1",
|
|
69
|
-
"npm-run-all2": "9.0.
|
|
70
|
-
"prettier": "3.
|
|
69
|
+
"npm-run-all2": "9.0.2",
|
|
70
|
+
"prettier": "3.9.5",
|
|
71
71
|
"rimraf": "6.1.3",
|
|
72
72
|
"rollup-plugin-copy": "3.5.0",
|
|
73
|
-
"storybook": "10.
|
|
74
|
-
"tailwindcss": "4.3.
|
|
73
|
+
"storybook": "10.5.0",
|
|
74
|
+
"tailwindcss": "4.3.2",
|
|
75
75
|
"typescript": "6.0.3",
|
|
76
|
-
"unplugin-dts": "1.0.
|
|
77
|
-
"vite": "8.
|
|
78
|
-
"vitest": "4.1.
|
|
79
|
-
"vue": "3.5.
|
|
76
|
+
"unplugin-dts": "1.0.3",
|
|
77
|
+
"vite": "8.1.4",
|
|
78
|
+
"vitest": "4.1.10",
|
|
79
|
+
"vue": "3.5.39",
|
|
80
80
|
"vue-router": "5.1.0",
|
|
81
|
-
"vue-tsc": "3.3.
|
|
81
|
+
"vue-tsc": "3.3.7"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@floating-ui/vue": "^2.0.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"prettier": "^3.8.1",
|
|
106
106
|
"tailwindcss": "^4.1.11",
|
|
107
107
|
"vue": "^3.5.0",
|
|
108
|
-
"vue-router": "^
|
|
108
|
+
"vue-router": "^5.1.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"dev": "storybook dev -p 6006",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
width="24"
|
|
4
|
+
height="24"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
fill="none"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
d="M12 3C12.5523 3 13 3.44772 13 4V7H18C19.6569 7 21 8.34315 21 10V13H22C22.5523 13 23 13.4477 23 14C23 14.5523 22.5523 15 22 15H21V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V15H2C1.44772 15 1 14.5523 1 14C1 13.4477 1.44772 13 2 13H3V10C3 8.34315 4.34315 7 6 7H11V5H8C7.44772 5 7 4.55228 7 4C7 3.44772 7.44772 3 8 3H12ZM6 9C5.44772 9 5 9.44772 5 10V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V10C19 9.44772 18.5523 9 18 9H6ZM9 12C9.55228 12 10 12.4477 10 13V15C10 15.5523 9.55228 16 9 16C8.44772 16 8 15.5523 8 15V13C8 12.4477 8.44772 12 9 12ZM15 12C15.5523 12 16 12.4477 16 13V15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15V13C14 12.4477 14.4477 12 15 12Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
</template>
|
|
@@ -152,10 +152,7 @@ export interface PresetRange {
|
|
|
152
152
|
name?: string;
|
|
153
153
|
}
|
|
154
154
|
export type DateType =
|
|
155
|
-
| Date
|
|
156
|
-
| [Date, Date]
|
|
157
|
-
| string
|
|
158
|
-
| { month: number; year: number };
|
|
155
|
+
Date | [Date, Date] | string | { month: number; year: number };
|
|
159
156
|
|
|
160
157
|
const datePicker =
|
|
161
158
|
useTemplateRef<InstanceType<typeof VueDatePicker>>("datePicker");
|
|
@@ -405,11 +402,17 @@ function formatInput(date: Date | [Date, Date]): string {
|
|
|
405
402
|
--dp-hover-icon-color: var(--color-neutral);
|
|
406
403
|
--dp-primary-disabled-color: var(--color-neutral-soft);
|
|
407
404
|
--dp-primary-text-color: var(--color-neutral);
|
|
408
|
-
--dp-secondary-color:
|
|
405
|
+
--dp-secondary-color: oklch(0.82 0.012 264.559);
|
|
409
406
|
--dp-border-color: var(--color-neutral-pale);
|
|
410
407
|
--dp-menu-border-color: var(--color-neutral-pale);
|
|
411
|
-
--dp-range-between-dates-background-color: var(
|
|
412
|
-
|
|
413
|
-
|
|
408
|
+
--dp-range-between-dates-background-color: var(
|
|
409
|
+
--dp-hover-color,
|
|
410
|
+
oklch(0.964 0 0)
|
|
411
|
+
);
|
|
412
|
+
--dp-range-between-dates-text-color: var(
|
|
413
|
+
--dp-hover-text-color,
|
|
414
|
+
var(--color-neutral-primary)
|
|
415
|
+
);
|
|
416
|
+
--dp-range-between-border-color: var(--dp-hover-color, oklch(0.964 0 0));
|
|
414
417
|
}
|
|
415
418
|
</style>
|
|
@@ -13,9 +13,12 @@
|
|
|
13
13
|
>
|
|
14
14
|
<header
|
|
15
15
|
v-if="$slots.header || hasCloseButton"
|
|
16
|
-
class="flex flex-wrap items-center justify-between gap-4 rounded-t-2xl bg-neutral-whisper
|
|
16
|
+
class="flex flex-wrap items-center justify-between gap-4 rounded-t-2xl bg-neutral-whisper py-2 pr-2 pl-4"
|
|
17
17
|
>
|
|
18
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
v-if="$slots.header"
|
|
20
|
+
class="text-lg font-medium text-neutral-primary"
|
|
21
|
+
>
|
|
19
22
|
<slot name="header" v-bind="{ close, requestClose }" />
|
|
20
23
|
</div>
|
|
21
24
|
|
|
@@ -31,13 +34,13 @@
|
|
|
31
34
|
</UiButton>
|
|
32
35
|
</header>
|
|
33
36
|
|
|
34
|
-
<div v-if="$slots.default" class="space-y-2
|
|
37
|
+
<div v-if="$slots.default" class="space-y-2 p-6">
|
|
35
38
|
<slot />
|
|
36
39
|
</div>
|
|
37
40
|
|
|
38
41
|
<footer
|
|
39
42
|
v-if="$slots.footer"
|
|
40
|
-
class="flex flex-wrap items-center justify-between gap-2 px-4
|
|
43
|
+
class="flex flex-wrap items-center justify-between gap-2 px-4 pt-2 pb-4"
|
|
41
44
|
>
|
|
42
45
|
<slot name="footer" v-bind="{ close, requestClose }" />
|
|
43
46
|
</footer>
|
|
@@ -98,7 +101,7 @@ defineExpose({
|
|
|
98
101
|
@media (prefers-reduced-motion: no-preference) {
|
|
99
102
|
/* Backdrop */
|
|
100
103
|
.animate::backdrop {
|
|
101
|
-
background:
|
|
104
|
+
background: oklch(0 0 0 / 0);
|
|
102
105
|
transition:
|
|
103
106
|
background 0.3s ease,
|
|
104
107
|
display 0.2s ease allow-discrete,
|
|
@@ -106,10 +109,10 @@ defineExpose({
|
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
.animate[open]::backdrop {
|
|
109
|
-
background:
|
|
112
|
+
background: oklch(0 0 0 / 0.5);
|
|
110
113
|
|
|
111
114
|
@starting-style {
|
|
112
|
-
background:
|
|
115
|
+
background: oklch(0 0 0 / 0);
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
|
|
@@ -25,6 +25,7 @@ export const icons = {
|
|
|
25
25
|
"book": () => import("../../assets/icons/book.vue"),
|
|
26
26
|
"bookmark": () => import("../../assets/icons/bookmark.vue"),
|
|
27
27
|
"bookmark-filled": () => import("../../assets/icons/bookmark-filled.vue"),
|
|
28
|
+
"bot": () => import('../../assets/icons/bot.vue'),
|
|
28
29
|
"box": () => import("../../assets/icons/box.vue"),
|
|
29
30
|
"bulb": () => import("../../assets/icons/bulb.vue"),
|
|
30
31
|
"call": () => import("../../assets/icons/call.vue"),
|
|
@@ -19,18 +19,19 @@
|
|
|
19
19
|
|
|
20
20
|
### Props
|
|
21
21
|
|
|
22
|
-
| Name | Type | Default | Description
|
|
23
|
-
|
|
24
|
-
| `value` | `string` | `""` | Sets the value which gets emitted with the click event
|
|
25
|
-
| `checkBoxMenu` | `Boolean` | `false` | Displays checkbox on the beginning of list item
|
|
26
|
-
| `isChecked` | `Boolean` | `false` | Checked attribute of checkbox, if displayed
|
|
27
|
-
| `selectable` | `Boolean` | `false` | Makes the list item selectable
|
|
28
|
-
| `selected` | `Boolean` | `false` | Displays checkmark at the end of the list item
|
|
29
|
-
| `overrideClasses` | `String` | `false` | Adds classes to the inner of the list item
|
|
30
|
-
| `iconName` | `UiIconName` | | Icon to be displayed at the beginning of the list item
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
22
|
+
| Name | Type | Default | Description |
|
|
23
|
+
|-------------------|-----------------------------|------------|---------------------------------------------------------------------|
|
|
24
|
+
| `value` | `string` | `""` | Sets the value which gets emitted with the click event |
|
|
25
|
+
| `checkBoxMenu` | `Boolean` | `false` | Displays checkbox on the beginning of list item |
|
|
26
|
+
| `isChecked` | `Boolean` | `false` | Checked attribute of checkbox, if displayed |
|
|
27
|
+
| `selectable` | `Boolean` | `false` | Makes the list item selectable |
|
|
28
|
+
| `selected` | `Boolean` | `false` | Displays checkmark at the end of the list item |
|
|
29
|
+
| `overrideClasses` | `String` | `false` | Adds classes to the inner of the list item |
|
|
30
|
+
| `iconName` | `UiIconName` | | Icon to be displayed at the beginning of the list item |
|
|
31
|
+
| `iconSize` | `sm` `md` `lg` | | Size of the checkmark icon when selected and selectable is set true |
|
|
32
|
+
| `imageSrc` | `String` | `""` | Image to be displayed at the beginning of the list item. |
|
|
33
|
+
| `imageShape` | `"rounded" | "square"` | `"square"` | Shape pf the image to be displayed. |
|
|
34
|
+
| `checkboxColor` | `"blue" | "gray"` | `"blue"` | Checkbox color style. |
|
|
34
35
|
|
|
35
36
|
### Events
|
|
36
37
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<li
|
|
3
3
|
:class="
|
|
4
4
|
cn(
|
|
5
|
-
'flex cursor-pointer list-none items-center gap-2
|
|
5
|
+
'flex cursor-pointer list-none items-center gap-2 p-2 text-sm/4 text-neutral-primary select-none hover:bg-neutral-whisper hover:text-primary focus:bg-neutral-faint focus:outline-hidden focus-visible:focus-outline focus-visible:-outline-offset-2',
|
|
6
6
|
{
|
|
7
7
|
'cursor-default text-neutral-medium': disabled,
|
|
8
8
|
'is-selected': selected,
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
data-testid="menu-button"
|
|
18
18
|
@click="toggle"
|
|
19
19
|
>
|
|
20
|
-
<div class="flex items-center gap-2">
|
|
21
|
-
<UiIcon v-if="iconLeft" :name="iconLeft" size="sm" />
|
|
22
|
-
{{ selectedOptionLabel }}
|
|
20
|
+
<div class="flex min-w-0 items-center gap-2 overflow-hidden">
|
|
21
|
+
<UiIcon v-if="iconLeft" class="shrink-0" :name="iconLeft" size="sm" />
|
|
22
|
+
<span class="truncate">{{ selectedOptionLabel }}</span>
|
|
23
23
|
</div>
|
|
24
|
-
<UiIcon name="chevron-down" size="sm" />
|
|
24
|
+
<UiIcon class="shrink-0" name="chevron-down" size="sm" />
|
|
25
25
|
</UiButton>
|
|
26
26
|
</template>
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
32
|
v-if="hasSearch"
|
|
33
|
-
class="flex items-center gap-2 rounded-t-lg
|
|
33
|
+
class="flex items-center gap-2 rounded-t-lg p-2 text-neutral-primary [&:has(>input:focus-visible)]:focus-outline [&:has(>input:focus-visible)]:-outline-offset-2"
|
|
34
34
|
>
|
|
35
35
|
<UiIcon
|
|
36
36
|
class="shrink-0 text-neutral-emphasis"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
v-model="queryModel"
|
|
43
43
|
type="text"
|
|
44
44
|
spellcheck="false"
|
|
45
|
-
class="w-full text-sm focus:outline-hidden"
|
|
45
|
+
class="w-full text-sm/4 focus:outline-hidden"
|
|
46
46
|
:placeholder="searchPlaceholder"
|
|
47
47
|
data-testid="menu-search-input"
|
|
48
48
|
/>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<template v-if="group.options.length > 0">
|
|
71
71
|
<li
|
|
72
72
|
v-if="group.groupLabel"
|
|
73
|
-
class="flex h-6 items-center bg-neutral-faint px-
|
|
73
|
+
class="flex h-6 items-center bg-neutral-faint px-2 text-xs font-semibold tracking-wider text-neutral-subtle uppercase"
|
|
74
74
|
>
|
|
75
75
|
{{ group.groupLabel }}
|
|
76
76
|
</li>
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
:image-src="option.imageSrc"
|
|
88
88
|
:icon-name="option.iconName"
|
|
89
89
|
:checkbox-appearance="checkboxAppearance"
|
|
90
|
-
class="hover:bg-neutral-whisper focus:bg-neutral-faint"
|
|
91
90
|
:class="{
|
|
92
91
|
'border-t': option.hasDividerAbove,
|
|
93
92
|
}"
|