@dpa-id-components/dpa-shared-components 20.0.5 → 20.0.7
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/src/components/DpaMediaItem/DpaMediaItem.spec.ts +123 -0
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +140 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.spec.ts +39 -0
- package/dist/src/components/UiAutocomplete/UiAutocomplete.stories.ts +46 -0
- package/dist/src/components/UiBadge/UiBadge.spec.ts +32 -0
- package/dist/src/components/UiBadge/UiBadge.stories.ts +80 -0
- package/dist/src/components/UiButton/UiButton.spec.ts +136 -0
- package/dist/src/components/UiButton/UiButton.stories.ts +57 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.spec.ts +16 -0
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +50 -0
- package/dist/src/components/UiCard/UiCard.spec.ts +16 -0
- package/dist/src/components/UiCard/UiCard.stories.ts +30 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +67 -0
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +59 -0
- package/dist/src/components/UiCheckbox/UiCheckbox.spec.ts +173 -0
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +99 -0
- package/dist/src/components/UiChip/UiChip.spec.ts +75 -0
- package/dist/src/components/UiChip/UiChip.stories.ts +39 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +21 -0
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +66 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +52 -0
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +44 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +335 -0
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +273 -0
- package/dist/src/components/UiDialog/UiDialog.spec.ts +160 -0
- package/dist/src/components/UiDialog/UiDialog.stories.ts +79 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +17 -0
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +44 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.ts +41 -0
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +55 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +79 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +88 -0
- package/dist/src/components/UiIcon/IconOverview.stories.vue +23 -0
- package/dist/src/components/UiIcon/UiIcon.spec.ts +56 -0
- package/dist/src/components/UiIcon/UiIcon.stories.ts +48 -0
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +78 -0
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +63 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +43 -0
- package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +56 -0
- package/dist/src/components/UiInput/UiInput.spec.ts +239 -0
- package/dist/src/components/UiInput/UiInput.stories.ts +127 -0
- package/dist/src/components/UiList/UiList.spec.ts +22 -0
- package/dist/src/components/UiList/UiList.stories.ts +64 -0
- package/dist/src/components/UiListItem/UiListItem.spec.ts +99 -0
- package/dist/src/components/UiListItem/UiListItem.stories.ts +83 -0
- package/dist/src/components/UiMenu/UiMenu.spec.ts +319 -0
- package/dist/src/components/UiMenu/UiMenu.stories.ts +634 -0
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +16 -0
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +22 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +32 -0
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +39 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +66 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +70 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +82 -0
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +191 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.spec.ts +45 -0
- package/dist/src/components/UiSearchInput/UiSearchInput.stories.ts +61 -0
- package/dist/src/components/UiSection/UiSection.spec.ts +49 -0
- package/dist/src/components/UiSection/UiSection.stories.ts +61 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +19 -0
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +48 -0
- package/dist/src/components/UiSelect/UIiSelect.spec.ts +102 -0
- package/dist/src/components/UiSelect/UiSelect.stories.ts +94 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.spec.ts +58 -0
- package/dist/src/components/UiSimpleInput/UiSimpleInput.stories.ts +53 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +15 -0
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.stories.ts +33 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +63 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +65 -0
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +30 -0
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +48 -0
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +99 -0
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +60 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +89 -0
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +102 -0
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +139 -0
- package/dist/src/components/UiTooltip/UiTooltip.stories.ts +107 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.ts +23 -0
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +12 -0
- package/dist/src/utils/index.spec.ts +12 -0
- package/dist/tailwindPreset.css +126 -0
- package/package.json +5 -4
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* This line is needed for `@reference`s in Vue SFC `style` blocks within the shared components library to work. */
|
|
2
|
+
@import "tailwindcss";
|
|
3
|
+
|
|
4
|
+
@plugin "@tailwindcss/typography";
|
|
5
|
+
|
|
6
|
+
@custom-variant aria-invalid (&[aria-invalid="true"]);
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
10
|
+
so we've added these compatibility styles to make sure everything still
|
|
11
|
+
looks the same as it did with Tailwind CSS v3.
|
|
12
|
+
|
|
13
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
14
|
+
color utility to any element that depends on these defaults.
|
|
15
|
+
*/
|
|
16
|
+
@layer base {
|
|
17
|
+
*,
|
|
18
|
+
::after,
|
|
19
|
+
::before,
|
|
20
|
+
::backdrop,
|
|
21
|
+
::file-selector-button {
|
|
22
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Address https://tailwindcss.com/docs/upgrade-guide#buttons-use-the-default-cursor */
|
|
26
|
+
button:not(:disabled),
|
|
27
|
+
[role="button"]:not(:disabled) {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@utility outline-blue {
|
|
33
|
+
isolation: isolate;
|
|
34
|
+
outline: 2px solid rgba(0, 62, 219, 0.5);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@theme {
|
|
39
|
+
/**
|
|
40
|
+
* COLORS
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
--color-transparent: rgba(255, 255, 255, 0);
|
|
44
|
+
|
|
45
|
+
--color-gray-100: #f5f5f5;
|
|
46
|
+
--color-gray-200: #eeeeee;
|
|
47
|
+
--color-gray-300: #e3e3e3;
|
|
48
|
+
--color-gray-400: #bababa;
|
|
49
|
+
--color-gray-500: #8c8c8c;
|
|
50
|
+
--color-gray-600: #7e7e7e;
|
|
51
|
+
--color-gray-700: #757575;
|
|
52
|
+
--color-gray-800: #4d4d4d;
|
|
53
|
+
--color-gray-900: #212121;
|
|
54
|
+
|
|
55
|
+
--color-green-neon: #00e281;
|
|
56
|
+
--color-green-primary: #00b064;
|
|
57
|
+
--color-green-night: #006345;
|
|
58
|
+
|
|
59
|
+
--color-blue-default: #003edb;
|
|
60
|
+
--color-blue-dark: #0030aa;
|
|
61
|
+
|
|
62
|
+
--color-red-default: #e53935;
|
|
63
|
+
--color-red-dark: #ab000d;
|
|
64
|
+
|
|
65
|
+
--color-pink-default: #f5138d;
|
|
66
|
+
--color-pink-dark: #bd0060;
|
|
67
|
+
|
|
68
|
+
--color-purple-default: #8e24aa;
|
|
69
|
+
--color-purple-dark: #5c007a;
|
|
70
|
+
|
|
71
|
+
--color-cyan-default: #00acc1;
|
|
72
|
+
--color-cyan-dark: #007c91;
|
|
73
|
+
|
|
74
|
+
--color-teal-default: #00897b;
|
|
75
|
+
--color-teal-dark: #005b4f;
|
|
76
|
+
|
|
77
|
+
--color-yellow-default: #f9f500;
|
|
78
|
+
--color-yellow-dark: #c1be00;
|
|
79
|
+
|
|
80
|
+
--color-orange-default: #ffb300;
|
|
81
|
+
--color-orange-dark: #c68400;
|
|
82
|
+
|
|
83
|
+
--color-alert-red-default: #f53000;
|
|
84
|
+
--color-alert-red-dark: #ba2400;
|
|
85
|
+
|
|
86
|
+
--color-alert-green-default: #00d200;
|
|
87
|
+
--color-alert-green-dark: #00aa00;
|
|
88
|
+
|
|
89
|
+
--color-rainbow-red: #e53935;
|
|
90
|
+
--color-rainbow-red-dark: #ab000d;
|
|
91
|
+
--color-rainbow-orange: #ffb300;
|
|
92
|
+
--color-rainbow-purple: #8e24aa;
|
|
93
|
+
|
|
94
|
+
--shadow-default: 0px 1px 1px rgba(0, 0, 0, 0.1);
|
|
95
|
+
--shadow-negative: 0px -1px 1px rgba(0, 0, 0, 0.1);
|
|
96
|
+
--shadow-md: 0px 1px 5px rgba(0, 0, 0, 0.1);
|
|
97
|
+
--shadow-lg: 0px 4px 6px 0px rgba(0, 0, 0, 0.25);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* TYPOGRAPHY
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
--font-sans: Inter, sans-serif;
|
|
104
|
+
--font-marketing: Futura, sans-serif;
|
|
105
|
+
|
|
106
|
+
--text-xs--line-height: calc(1.125 / 0.75);
|
|
107
|
+
--text-sm--line-height: calc(1.3125 / 0.875);
|
|
108
|
+
--text-lg--line-height: calc(1.6875 / 1.125);
|
|
109
|
+
--text-xl--line-height: calc(1.875 / 1.25);
|
|
110
|
+
--text-2xl--line-height: calc(2.25 / 1.5);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* SPACING
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
--spacing: 4px;
|
|
117
|
+
|
|
118
|
+
--spacing-inherit: inherit;
|
|
119
|
+
--spacing-half: 2px;
|
|
120
|
+
/* Used for form controls that receive a 2px border on :focus instead of the usual 1px and so a padding of 15px is applied instead of 16px to stop the content from jumping around. */
|
|
121
|
+
--spacing-inputFocused: 15px;
|
|
122
|
+
|
|
123
|
+
--inset-1/2: 50%;
|
|
124
|
+
--inset-full: 100%;
|
|
125
|
+
--inset-auto: auto;
|
|
126
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpa-id-components/dpa-shared-components",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.7",
|
|
4
4
|
"description": "Shared Vue components library for dpa projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"npm-run-all2": "8.0.4",
|
|
64
64
|
"prettier": "3.8.1",
|
|
65
65
|
"rimraf": "6.1.3",
|
|
66
|
+
"rollup-plugin-copy": "3.5.0",
|
|
66
67
|
"storybook": "10.3.3",
|
|
67
68
|
"tailwindcss": "4.2.2",
|
|
68
69
|
"typescript": "5.9.3",
|
|
69
70
|
"vite": "8.0.2",
|
|
70
71
|
"vite-plugin-dts": "4.5.4",
|
|
71
|
-
"vite-plugin-static-copy": "4.0.0",
|
|
72
72
|
"vitest": "4.1.1",
|
|
73
73
|
"vue": "3.5.30",
|
|
74
74
|
"vue-router": "5.0.4",
|
|
@@ -91,9 +91,10 @@
|
|
|
91
91
|
"vue-eslint-parser": "^10.4.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
+
"@eslint/js": "^9.39.2 || ^10.0.1",
|
|
94
95
|
"@tailwindcss/typography": "^0.5.16",
|
|
95
|
-
"eslint": "
|
|
96
|
-
"prettier": "
|
|
96
|
+
"eslint": "^9.39.2 || ^10.1.0",
|
|
97
|
+
"prettier": "^3.8.1",
|
|
97
98
|
"tailwindcss": "^4.1.11",
|
|
98
99
|
"vue": "^3.5.0",
|
|
99
100
|
"vue-router": "^4.6.4 || ^5.0.0"
|