@db-ux/v-core-components 4.9.0 → 4.10.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/CHANGELOG.md +17 -1
- package/README.md +101 -33
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -0
- package/dist/components/accordion-item/model.d.ts +5 -1
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +4 -4
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-list/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/drawer/model.d.ts +1 -1
- package/dist/components/header/header.vue.d.ts +8 -8
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation-item/model.d.ts +6 -2
- package/dist/components/navigation-item/navigation-item.vue.d.ts +4 -3
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +3 -3
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/db-ux.es.js +36 -22
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/figma.d.ts +12 -6
- package/package.json +7 -7
package/dist/shared/figma.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ export type FigmaEnumProp = {
|
|
|
12
12
|
key: string;
|
|
13
13
|
/** Map of Figma variant value → code value. Values can be strings, booleans, numbers, or instance swaps. */
|
|
14
14
|
value: Record<string, string | boolean | number | FigmaInstanceProp>;
|
|
15
|
+
/**
|
|
16
|
+
* Optional Figma boolean property key that guards this prop.
|
|
17
|
+
* When set, the resolved value is only emitted if getPropertyValue(guardKey) === 'True'.
|
|
18
|
+
* Useful for icon swaps that are only present when a show-flag is enabled.
|
|
19
|
+
*/
|
|
20
|
+
guardKey?: string;
|
|
15
21
|
};
|
|
16
22
|
/** A simple scalar prop. */
|
|
17
23
|
export type FigmaSimpleProp = {
|
|
@@ -86,19 +92,19 @@ export type FigmaConnectedInstancesProp = {
|
|
|
86
92
|
*/
|
|
87
93
|
export type FigmaNestedConnectedInstancesProp = {
|
|
88
94
|
type: 'nestedConnectedInstances';
|
|
89
|
-
/** Import string to filter by (e.g. 'DBAccordionItem'). Only instances whose template nestedImports contain this string are included. */
|
|
90
|
-
filter
|
|
95
|
+
/** Import string to filter by (e.g. 'DBAccordionItem'). Only instances whose template nestedImports contain this string are included. When omitted, all connected instances are included. */
|
|
96
|
+
filter?: string;
|
|
91
97
|
};
|
|
92
98
|
/**
|
|
93
|
-
* Wraps an iconSwap prop so it is only rendered when a boolean
|
|
94
|
-
* Generates: let icon = ''; if (
|
|
99
|
+
* Wraps an iconSwap prop so it is only rendered when a boolean Figma property is enabled.
|
|
100
|
+
* Generates: let icon = ''; if (getPropertyValue(guardKey) === true || getPropertyValue(guardKey) === 'True') { icon = `\n\t\ticon="${iconLeading}"` }
|
|
95
101
|
*/
|
|
96
102
|
export type FigmaConditionalProp = {
|
|
97
103
|
type: 'conditionalProp';
|
|
98
104
|
/** The Figma property key of the icon instance swap. */
|
|
99
105
|
key: string;
|
|
100
|
-
/** The
|
|
101
|
-
|
|
106
|
+
/** The Figma boolean property key that guards this prop (e.g. 'Show Icon Leading'). */
|
|
107
|
+
guardKey: string;
|
|
102
108
|
/** The attribute name to render (e.g. 'icon'). */
|
|
103
109
|
attrName: string;
|
|
104
110
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/v-core-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue components for @db-ux/core-components",
|
|
6
6
|
"repository": {
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"dist/"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@db-ux/core-components": "4.
|
|
32
|
-
"@db-ux/core-foundations": "4.
|
|
31
|
+
"@db-ux/core-components": "4.10.0",
|
|
32
|
+
"@db-ux/core-foundations": "4.10.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@playwright/experimental-ct-vue": "1.60.0",
|
|
36
36
|
"@vitejs/plugin-vue": "6.0.7",
|
|
37
37
|
"@vue/compiler-dom": "3.5.34",
|
|
38
38
|
"cpr": "3.0.1",
|
|
39
|
-
"npm-run-all2": "
|
|
39
|
+
"npm-run-all2": "9.0.1",
|
|
40
40
|
"replace-in-file": "8.4.0",
|
|
41
|
-
"tsx": "4.22.
|
|
41
|
+
"tsx": "4.22.3",
|
|
42
42
|
"typescript": "5.9.3",
|
|
43
|
-
"vite": "8.0.
|
|
43
|
+
"vite": "8.0.14",
|
|
44
44
|
"vue": "3.5.34",
|
|
45
|
-
"vue-tsc": "3.2
|
|
45
|
+
"vue-tsc": "3.3.2"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"registry": "https://registry.npmjs.org/",
|