@db-ux/v-core-components 4.9.0 → 4.10.0-esm-94516f3

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 (47) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/README.md +101 -33
  3. package/dist/components/accordion/model.d.ts +2 -2
  4. package/dist/components/accordion-item/accordion-item.vue.d.ts +1 -0
  5. package/dist/components/accordion-item/model.d.ts +5 -1
  6. package/dist/components/badge/model.d.ts +1 -1
  7. package/dist/components/brand/model.d.ts +1 -1
  8. package/dist/components/button/model.d.ts +1 -1
  9. package/dist/components/card/model.d.ts +1 -1
  10. package/dist/components/checkbox/model.d.ts +1 -1
  11. package/dist/components/custom-button/model.d.ts +2 -2
  12. package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
  13. package/dist/components/custom-select/model.d.ts +4 -4
  14. package/dist/components/custom-select-dropdown/model.d.ts +1 -1
  15. package/dist/components/custom-select-form-field/model.d.ts +1 -1
  16. package/dist/components/custom-select-list/model.d.ts +1 -1
  17. package/dist/components/custom-select-list-item/model.d.ts +1 -1
  18. package/dist/components/divider/model.d.ts +1 -1
  19. package/dist/components/drawer/model.d.ts +1 -1
  20. package/dist/components/header/header.vue.d.ts +8 -8
  21. package/dist/components/header/model.d.ts +1 -1
  22. package/dist/components/icon/model.d.ts +1 -1
  23. package/dist/components/infotext/model.d.ts +1 -1
  24. package/dist/components/input/model.d.ts +1 -1
  25. package/dist/components/link/model.d.ts +1 -1
  26. package/dist/components/navigation/model.d.ts +1 -1
  27. package/dist/components/navigation-item/model.d.ts +6 -2
  28. package/dist/components/navigation-item/navigation-item.vue.d.ts +4 -3
  29. package/dist/components/notification/model.d.ts +1 -1
  30. package/dist/components/page/model.d.ts +1 -1
  31. package/dist/components/popover/model.d.ts +1 -1
  32. package/dist/components/radio/model.d.ts +1 -1
  33. package/dist/components/section/model.d.ts +1 -1
  34. package/dist/components/select/model.d.ts +1 -1
  35. package/dist/components/stack/model.d.ts +1 -1
  36. package/dist/components/switch/model.d.ts +1 -1
  37. package/dist/components/tab-item/model.d.ts +1 -1
  38. package/dist/components/tab-list/model.d.ts +1 -1
  39. package/dist/components/tab-panel/model.d.ts +1 -1
  40. package/dist/components/tabs/model.d.ts +3 -3
  41. package/dist/components/tag/model.d.ts +1 -1
  42. package/dist/components/textarea/model.d.ts +1 -1
  43. package/dist/components/tooltip/model.d.ts +1 -1
  44. package/dist/db-ux.es.js +36 -22
  45. package/dist/db-ux.umd.js +1 -1
  46. package/dist/shared/figma.d.ts +12 -6
  47. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @db-ux/v-core-components
2
2
 
3
+ ## 4.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat(`DBAccordionItem`): add `open` prop to control the expanded state of an accordion item programmatically. - [see commit 8e7c85d](https://github.com/db-ux-design-system/core-web/commit/8e7c85dfba9e0b013fce9db2151545b8f336a29a)
8
+
9
+ - refactor(form components): replace hard 25ch label width limit with customizable CSS variable `--db-label-max-size` (defaults to `100%`). To restore the previous behavior, set `--db-label-max-size: 25ch;` in your project styles. - [see commit 08b1234](https://github.com/db-ux-design-system/core-web/commit/08b1234342e3c0d622116d528a979ff53d7e2356)
10
+
11
+ ## 4.9.1
12
+
13
+ ### Patch Changes
14
+
15
+ - fix(switch): use `2lh` unit and add `min-inline-size` to prevent track from shrinking - [see commit 78c9fde](https://github.com/db-ux-design-system/core-web/commit/78c9fde67d9677f61eaa41761a088b9c1a9773a1)
16
+
17
+ - fix(notification): remove empty grid gap when icon is hidden - [see commit 96f94c6](https://github.com/db-ux-design-system/core-web/commit/96f94c651391f014e2d073402c2700b524ccbf5e)
18
+
3
19
  ## 4.9.0
4
20
 
5
21
  ### Minor Changes
@@ -199,7 +215,7 @@ _version bump_
199
215
 
200
216
  - fix: set DBTabItem internal state `_selected` correctly - [see commit f7625cb](https://github.com/db-ux-design-system/core-web/commit/f7625cbd9d64513527e826c9d2c1ef42b2734a4b):
201
217
 
202
- - Now also sets aria-selected=true|false correctly which improves screen reader behaviour
218
+ - Now also sets aria-selected=true|false correctly which improves screen reader behaviour
203
219
 
204
220
  ## 4.2.1
205
221
 
package/README.md CHANGED
@@ -6,49 +6,89 @@
6
6
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
7
7
 
8
8
  A Vue library containing all styles & components of [DB UX Design System (technical components)](https://github.com/db-ux-design-system/core-web).
9
-
10
- > **Note:** Find more information about specific components [here](https://design-system.deutschebahn.com/core-web/review/main)
9
+ We also provide more information about specific components. This information is in our [Design System documentation](https://design-system.deutschebahn.com/documentation/get-started/).
11
10
 
12
11
  ## Install
13
12
 
14
13
  ```shell
15
- npm i @db-ux/v-core-components
14
+ pnpm add @db-ux/v-core-components @db-ux/core-components @db-ux/core-foundations --save-dev
16
15
  ```
17
16
 
18
- > **Note:** This will install [`@db-ux/core-foundations`](https://www.npmjs.com/package/@db-ux/core-foundations) and [`@db-ux/core-components`](https://www.npmjs.com/package/@db-ux/core-components) as well which contains the `css`/`scss` files
19
-
20
17
  ## Styling Dependencies
21
18
 
22
- Import the styles in scss or css. Based on your technology the file names could be different.
19
+ ### Vite Plugin
20
+
21
+ If you're using Vite, you can use the [`@db-ux/core-vite-plugin`](https://www.npmjs.com/package/@db-ux/core-vite-plugin) which simplifies the CSS setup to a single import.
22
+
23
+ ```shell
24
+ pnpm add @db-ux/core-vite-plugin --save-dev
25
+ ```
26
+
27
+ Add the plugin to your `vite.config.ts`:
28
+
29
+ ```ts
30
+ import { defineConfig } from "vite";
31
+ import dbUxPlugin from "@db-ux/core-vite-plugin";
32
+
33
+ export default defineConfig({
34
+ plugins: [dbUxPlugin()]
35
+ });
36
+ ```
37
+
38
+ Then import the plugin in your CSS file:
39
+
40
+ ```css
41
+ /* style.css */
42
+ @import "@db-ux/core-vite-plugin/index.css";
43
+ ```
44
+
45
+ 📖 **[Learn more about `@db-ux/core-vite-plugin` node package](https://www.npmjs.com/package/@db-ux/core-vite-plugin)**
23
46
 
24
- - Default (relative): points to `../assets`
25
- - Rollup (rollup): points to `@db-ux/core-foundations/assets`
26
- - Webpack (webpack): points to `~@db-ux/core-foundations/assets`
47
+ ### PostCSS Plugin (recommended)
27
48
 
28
- <details>
29
- <summary><strong>SCSS</strong></summary>
49
+ We recommend using the [`@db-ux/core-postcss-plugin`](https://www.npmjs.com/package/@db-ux/core-postcss-plugin) to reduce your bundle size. It flattens CSS custom properties by resolving `var()`, `calc()`, `color-mix()`, and `light-dark()` at build time, removing unused declarations.
30
50
 
31
- ```scss
32
- // style.scss
33
- @forward "@db-ux/core-components/build/styles/rollup";
51
+ ```shell
52
+ pnpm add @db-ux/core-postcss-plugin --save-dev
34
53
  ```
35
54
 
55
+ Configure it in `vite.config.ts`:
56
+
36
57
  ```ts
37
- // main.ts
38
- import "./style.scss";
58
+ import { defineConfig } from "vite";
59
+ import { dbUxFlatten } from "@db-ux/core-postcss-plugin";
60
+
61
+ export default defineConfig({
62
+ css: {
63
+ transformer: "postcss", // required for Vite 8+ (default: 'lightningcss')
64
+ postcss: {
65
+ plugins: [dbUxFlatten()]
66
+ }
67
+ }
68
+ });
39
69
  ```
40
70
 
41
- </details>
42
- <details>
43
- <summary><strong>CSS</strong></summary>
71
+ 📖 **[Learn more about `@db-ux/core-postcss-plugin` node package](https://www.npmjs.com/package/@db-ux/core-postcss-plugin)**
72
+
73
+ ### Manual CSS Setup
74
+
75
+ If you're not using Vite or prefer manual setup, import the styles in your main CSS file:
76
+
77
+ ```css
78
+ /* style.css */
79
+ @layer whitelabel-theme, db-ux;
80
+ /* You may want to include another theme here, this is a whitelabel theme! So instead of including the following line of code, please have a look at the DB Theme section */
81
+ @import "@db-ux/core-foundations/build/styles/theme/rollup.css"
82
+ layer(whitelabel-theme);
83
+
84
+ @import "@db-ux/core-components/build/styles/bundle.css" layer(db-ux);
85
+ ```
44
86
 
45
87
  ```ts
46
88
  // main.ts
47
- import "@db-ux/core-components/build/styles/rollup.css";
89
+ import "./style.css";
48
90
  ```
49
91
 
50
- </details>
51
-
52
92
  ### Vite 8
53
93
 
54
94
  Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). To keep CSS output stable, configure `vite.config.ts` like this:
@@ -85,8 +125,6 @@ export default defineConfig({
85
125
  });
86
126
  ```
87
127
 
88
- > **Note:** The `@db-ux/core-components/build/styles/relative` file contains optional and all components styles. If you consider performance issues see [@db-ux/core-components](https://www.npmjs.com/package/@db-ux/core-components) for more information.
89
-
90
128
  ### DB Theme
91
129
 
92
130
  In case that you're building a website or application for Deutsche Bahn, you'll additionally have to install the DB Theme via the [`@db-ux/db-theme`](https://www.npmjs.com/package/@db-ux/db-theme) node package (even also available as an inner source node package, as described within that packages README).
@@ -99,7 +137,7 @@ import { DBButton } from "@db-ux/v-core-components";
99
137
  </script>
100
138
 
101
139
  <template>
102
- <DBButton icon="x_placeholder">Test</DBButton>
140
+ <DBButton variant="brand">Add item to cart</DBButton>
103
141
  </template>
104
142
  ```
105
143
 
@@ -108,14 +146,15 @@ import { DBButton } from "@db-ux/v-core-components";
108
146
  We add `v-model` support which fires on every change.
109
147
  But you can use normal `@` events as well.
110
148
 
111
- Both Inputs in this example do the same:
149
+ Both inputs in this example do the same:
112
150
 
113
- ```html
151
+ ```vue
114
152
  <script setup lang="ts">
115
- import { DbInput } from "@db-ux/v-core-components";
116
- import { ref } from "vue";
117
- const input = ref("");
153
+ import { DBInput } from "@db-ux/v-core-components";
154
+ import { ref } from "vue";
155
+ const input = ref("");
118
156
  </script>
157
+
119
158
  <template>
120
159
  <DBInput
121
160
  label="Inputfield"
@@ -126,7 +165,7 @@ Both Inputs in this example do the same:
126
165
  label="Inputfield"
127
166
  name="input-name"
128
167
  :value="input"
129
- @change="e => input = e.target.value"
168
+ @change="(e) => (input = e.target.value)"
130
169
  ></DBInput>
131
170
  </template>
132
171
  ```
@@ -145,7 +184,7 @@ npx @db-ux/agent-cli
145
184
 
146
185
  This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
147
186
 
148
- 📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
187
+ 📖 **[Learn more about `@db-ux/agent-cli` node package](https://www.npmjs.com/package/@db-ux/agent-cli)**
149
188
 
150
189
  ## Code Quality
151
190
 
@@ -154,7 +193,7 @@ To enforce correct usage of DB UX Design System components in your Vue project,
154
193
  ### Installation
155
194
 
156
195
  ```shell
157
- npm install eslint @db-ux/core-eslint-plugin vue-eslint-parser @typescript-eslint/parser --save-dev
196
+ pnpm add eslint @db-ux/core-eslint-plugin vue-eslint-parser @typescript-eslint/parser --save-dev
158
197
  ```
159
198
 
160
199
  ### Setup
@@ -186,6 +225,35 @@ export default [
186
225
 
187
226
  📖 **[Learn more about `@db-ux/core-eslint-plugin` node package](https://www.npmjs.com/package/@db-ux/core-eslint-plugin)**
188
227
 
228
+ ## Stylelint
229
+
230
+ To validate correct usage of DB UX Design System tokens in your CSS/SCSS, use the [`@db-ux/core-stylelint`](https://www.npmjs.com/package/@db-ux/core-stylelint) plugin.
231
+
232
+ ### Installation
233
+
234
+ ```shell
235
+ pnpm add stylelint @db-ux/core-stylelint --save-dev
236
+ ```
237
+
238
+ ### Setup
239
+
240
+ Add to your `.stylelintrc.json`:
241
+
242
+ ```json
243
+ {
244
+ "plugins": ["@db-ux/core-stylelint"],
245
+ "rules": {
246
+ "db-ux/use-spacings": [true],
247
+ "db-ux/use-sizing": [true],
248
+ "db-ux/use-border-width": [true],
249
+ "db-ux/use-border-radius": [true],
250
+ "db-ux/use-border-color": [true]
251
+ }
252
+ }
253
+ ```
254
+
255
+ 📖 **[Learn more about `@db-ux/core-stylelint` node package](https://www.npmjs.com/package/@db-ux/core-stylelint)**
256
+
189
257
  ## Deutsche Bahn brand
190
258
 
191
259
  As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
@@ -1,5 +1,5 @@
1
- import { GlobalProps, InitializedState } from '../../shared/model';
2
- import { DBAccordionItemDefaultProps } from '../accordion-item/model';
1
+ import type { GlobalProps, InitializedState } from '../../shared/model';
2
+ import type { DBAccordionItemDefaultProps } from '../accordion-item/model';
3
3
  export declare const AccordionVariantList: readonly ["divider", "card"];
4
4
  export type AccordionVariantType = (typeof AccordionVariantList)[number];
5
5
  export declare const AccordionBehaviorList: readonly ["multiple", "single"];
@@ -13,6 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<DBAccordionItemProps, {}
13
13
  name: string;
14
14
  text: string;
15
15
  defaultOpen: boolean;
16
+ open: boolean | string;
16
17
  disabled: boolean | string;
17
18
  headlinePlain: string;
18
19
  onToggle: (open: boolean) => void;
@@ -1,9 +1,13 @@
1
- import { GlobalProps, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
1
+ import type { GlobalProps, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';
2
2
  export type DBAccordionItemDefaultProps = {
3
3
  /**
4
4
  * Initial state for the accordion item
5
5
  */
6
6
  defaultOpen?: boolean;
7
+ /**
8
+ * State for the accordion item
9
+ */
10
+ open?: boolean | string;
7
11
  /**
8
12
  * The disabled attribute can be set to keep a user from clicking on the element.
9
13
  */
@@ -1,4 +1,4 @@
1
- import { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
1
+ import type { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
2
2
  export declare const BadgePlacementList: readonly ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"];
3
3
  export type BadgePlacementType = (typeof BadgePlacementList)[number];
4
4
  export type DBBadgeDefaultProps = {
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';
2
2
  export type DBBrandDefaultProps = {
3
3
  /**
4
4
  * @deprecated: Disable the default logo svg to pass in a custom `img`
@@ -1,4 +1,4 @@
1
- import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
1
+ import type { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
2
2
  export declare const ButtonVariantList: readonly ["outlined", "brand", "filled", "ghost"];
3
3
  export type ButtonVariantType = (typeof ButtonVariantList)[number];
4
4
  export declare const ButtonTypeList: readonly ["button", "reset", "submit"];
@@ -1,4 +1,4 @@
1
- import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
1
+ import type { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';
2
2
  export declare const CardBehaviorList: readonly ["static", "interactive"];
3
3
  export type CardBehaviorType = (typeof CardBehaviorList)[number];
4
4
  export declare const CardElevationLevelList: readonly ["1", "2", "3"];
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
1
+ import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';
2
2
  export type DBCheckboxDefaultProps = {
3
3
  /**
4
4
  * Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox
@@ -1,5 +1,5 @@
1
- import { GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, WidthProps, WrapProps } from '../../shared/model';
2
- import { DBButtonSharedProps } from '../button/model';
1
+ import type { GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, NoTextProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, WidthProps, WrapProps } from '../../shared/model';
2
+ import type { DBButtonSharedProps } from '../button/model';
3
3
  export type DBCustomButtonDefaultProps = {};
4
4
  export type DBCustomButtonProps = DBCustomButtonDefaultProps & DBButtonSharedProps & GlobalProps & IconProps & WidthProps & SizeProps & ShowIconProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps & NoTextProps & WrapProps;
5
5
  export type DBCustomButtonDefaultState = {};
@@ -17,8 +17,8 @@ declare const __VLS_base: import("vue").DefineComponent<DBCustomSelectProps, {},
17
17
  form: string;
18
18
  label: string;
19
19
  values: string[];
20
- disabled: boolean | string;
21
20
  open: boolean;
21
+ disabled: boolean | string;
22
22
  multiple: boolean | string;
23
23
  variant: import("../../shared/model").LabelVariantType;
24
24
  placement: import("../../shared/model").PlacementVerticalType;
@@ -1,7 +1,7 @@
1
- import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
2
- import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
3
- import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
4
- import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
1
+ import type { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
2
+ import type { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
3
+ import type { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
4
+ import type { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
5
5
  export type CustomSelectOptionType = {
6
6
  /**
7
7
  * Disables this option
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState } from '../../shared/model';
2
2
  export declare const CustomSelectDropdownWidthList: readonly ["fixed", "auto", "full"];
3
3
  export type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];
4
4
  export type DBCustomSelectDropdownDefaultProps = {
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState } from '../../shared/model';
2
2
  export type DBCustomSelectFormFieldDefaultProps = {};
3
3
  export type DBCustomSelectFormFieldProps = DBCustomSelectFormFieldDefaultProps & GlobalProps;
4
4
  export type DBCustomSelectFormFieldDefaultState = {};
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState } from '../../shared/model';
2
2
  export type DBCustomSelectListDefaultProps = {
3
3
  label?: string;
4
4
  multiple?: boolean;
@@ -1,4 +1,4 @@
1
- import { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
1
+ import type { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, IconProps, ShowIconProps, ValueProps } from '../../shared/model';
2
2
  export declare const CustomSelectListItemTypeList: readonly ["checkbox", "radio"];
3
3
  export type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];
4
4
  export type DBCustomSelectListItemExtraProps = {
@@ -1,4 +1,4 @@
1
- import { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
1
+ import type { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';
2
2
  export declare const DividerMarginList: readonly ["none", "_"];
3
3
  export type DividerMarginType = (typeof DividerMarginList)[number];
4
4
  export declare const DividerVariantList: readonly ["horizontal", "vertical"];
@@ -1,4 +1,4 @@
1
- import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
1
+ import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
2
2
  export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
3
3
  export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
4
4
  export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
@@ -1,19 +1,19 @@
1
1
  import { DBHeaderProps } from "./model";
2
- declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_27: {};
2
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_15: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_7) => any;
4
+ 'meta-navigation'?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- 'meta-navigation'?: (props: typeof __VLS_9) => any;
6
+ brand?: (props: typeof __VLS_3) => any;
7
7
  } & {
8
- 'secondary-action'?: (props: typeof __VLS_11) => any;
8
+ default?: (props: typeof __VLS_5) => any;
9
9
  } & {
10
- 'meta-navigation'?: (props: typeof __VLS_13) => any;
10
+ 'primary-action'?: (props: typeof __VLS_7) => any;
11
11
  } & {
12
- brand?: (props: typeof __VLS_15) => any;
12
+ 'secondary-action'?: (props: typeof __VLS_15) => any;
13
13
  } & {
14
- default?: (props: typeof __VLS_17) => any;
14
+ default?: (props: typeof __VLS_23) => any;
15
15
  } & {
16
- 'primary-action'?: (props: typeof __VLS_19) => any;
16
+ 'meta-navigation'?: (props: typeof __VLS_25) => any;
17
17
  } & {
18
18
  'secondary-action'?: (props: typeof __VLS_27) => any;
19
19
  };
@@ -1,4 +1,4 @@
1
- import { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
1
+ import type { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
2
2
  export type DBHeaderDefaultProps = {
3
3
  /**
4
4
  * Slot to pass in the DBBrand component
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
2
2
  export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
3
3
  export type IconWeightType = (typeof IconWeightList)[number];
4
4
  export type DBIconDefaultProps = {
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState, IconProps, SemanticProps, ShowIconProps, SizeProps, TextProps, WrapProps } from '../../shared/model';
2
2
  export type DBInfotextDefaultProps = {};
3
3
  export type DBInfotextProps = DBInfotextDefaultProps & GlobalProps & SemanticProps & IconProps & SizeProps & ShowIconProps & TextProps & WrapProps;
4
4
  export type DBInfotextDefaultState = {};
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeType, ValueLabelType } from '../../shared/model';
1
+ import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeType, ValueLabelType } from '../../shared/model';
2
2
  export declare const InputTypeList: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", "week"];
3
3
  export type InputTypeType = (typeof InputTypeList)[number];
4
4
  export type DBInputDefaultProps = {
@@ -1,4 +1,4 @@
1
- import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, RoleProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
1
+ import type { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, RoleProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';
2
2
  export declare const LinkVariantList: readonly ["adaptive", "brand", "inline"];
3
3
  export type LinkVariantType = (typeof LinkVariantList)[number];
4
4
  export declare const LinkSizeList: readonly ["medium", "small"];
@@ -1,4 +1,4 @@
1
- import { GlobalProps } from '../../shared/model';
1
+ import type { GlobalProps } from '../../shared/model';
2
2
  export type DBNavigationDefaultProps = {};
3
3
  export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps;
4
4
  export type DBNavigationDefaultState = {};
@@ -1,5 +1,5 @@
1
- import { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
2
- import { NavigationItemSafeTriangle } from '../../utils/navigation';
1
+ import type { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model';
2
+ import type { NavigationItemSafeTriangle } from '../../utils/navigation';
3
3
  export type DBNavigationItemDefaultProps = {
4
4
  /**
5
5
  * Alternative indicator for active navigation item (bold font). In contrast to the use of aria-current="page" on the contained anchor, this does not guarantee correct a11y.
@@ -17,6 +17,10 @@ export type DBNavigationItemDefaultProps = {
17
17
  * This is for mobile navigation only, if it is set the sub-navigation is a static overlay
18
18
  */
19
19
  subNavigationExpanded?: boolean | string;
20
+ /**
21
+ * Force hide sub-navigation - for web component output
22
+ */
23
+ hideSubNavigation?: boolean | string;
20
24
  };
21
25
  export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
22
26
  export type DBNavigationItemDefaultState = {
@@ -1,12 +1,12 @@
1
1
  import { ClickEvent } from "../../shared/model";
2
2
  import { DBNavigationItemProps } from "./model";
3
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {};
3
+ declare var __VLS_1: {}, __VLS_9: {}, __VLS_11: {};
4
4
  type __VLS_Slots = {} & {
5
5
  default?: (props: typeof __VLS_1) => any;
6
6
  } & {
7
- default?: (props: typeof __VLS_3) => any;
7
+ 'sub-navigation'?: (props: typeof __VLS_9) => any;
8
8
  } & {
9
- 'sub-navigation'?: (props: typeof __VLS_11) => any;
9
+ default?: (props: typeof __VLS_11) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<DBNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DBNavigationItemProps> & Readonly<{}>, {
12
12
  id: string;
@@ -22,6 +22,7 @@ declare const __VLS_base: import("vue").DefineComponent<DBNavigationItemProps, {
22
22
  width: import("../../shared/model").WidthType | string;
23
23
  active: boolean;
24
24
  subNavigationExpanded: boolean | string;
25
+ hideSubNavigation: boolean | string;
25
26
  backButtonId: string;
26
27
  backButtonText: string;
27
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, RoleProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
1
+ import type { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, RoleProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';
2
2
  export declare const NotificationVariantList: readonly ["docked", "standalone", "overlay"];
3
3
  export type NotificationVariantType = (typeof NotificationVariantList)[number];
4
4
  export declare const NotificationLinkVariantList: readonly ["block", "inline"];
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState } from '../../shared/model';
2
2
  export declare const PageVariantList: readonly ["auto", "fixed"];
3
3
  export type PageVariantType = (typeof PageVariantList)[number];
4
4
  export declare const PageDocumentOverflowList: readonly ["hidden", "auto"];
@@ -1,4 +1,4 @@
1
- import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
1
+ import type { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';
2
2
  export type DBPopoverDefaultProps = {
3
3
  /**
4
4
  * Use open to disable the default hover/focus behavior to use it on click or other trigger.
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, InputEventProps, InputEventState, SizeProps } from '../../shared/model';
1
+ import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, InitializedState, InputEventProps, InputEventState, SizeProps } from '../../shared/model';
2
2
  export type DBRadioDefaultProps = {};
3
3
  export type DBRadioProps = DBRadioDefaultProps & GlobalProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & SizeProps;
4
4
  export type DBRadioDefaultState = {};
@@ -1,3 +1,3 @@
1
- import { ContainerWidthProps, GlobalProps, SpacingProps } from '../../shared/model';
1
+ import type { ContainerWidthProps, GlobalProps, SpacingProps } from '../../shared/model';
2
2
  export type DBSectionDefaultProps = {};
3
3
  export type DBSectionProps = DBSectionDefaultProps & GlobalProps & SpacingProps & ContainerWidthProps;
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
1
+ import type { ChangeEventProps, ChangeEventState, ClickEventProps, ClickEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FromValidState, GlobalProps, GlobalState, IconProps, InitializedState, InputEventProps, InputEventState, ShowIconProps } from '../../shared/model';
2
2
  export type DBSelectDefaultProps = {
3
3
  /**
4
4
  * @deprecated
@@ -1,4 +1,4 @@
1
- import { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';
2
2
  export declare const StackVariantList: readonly ["simple", "divider"];
3
3
  export type StackVariantType = (typeof StackVariantList)[number];
4
4
  export declare const StackDirectionList: readonly ["row", "column"];
@@ -1,4 +1,4 @@
1
- import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model';
1
+ import type { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GeneralKeyboardEvent, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, LabelVariantHorizontalType, SizeProps } from '../../shared/model';
2
2
  export type DBSwitchDefaultProps = {
3
3
  /**
4
4
  * Add additional icons to indicate active/inactive state.
@@ -1,4 +1,4 @@
1
- import { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
1
+ import type { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
2
2
  export type DBTabItemDefaultProps = {
3
3
  /**
4
4
  * To control the component
@@ -1,4 +1,4 @@
1
- import { GlobalProps } from '../../shared/model';
1
+ import type { GlobalProps } from '../../shared/model';
2
2
  export type DBTabListDefaultProps = {};
3
3
  export type DBTabListProps = DBTabListDefaultProps & GlobalProps;
4
4
  export type DBTabListDefaultState = {};
@@ -1,4 +1,4 @@
1
- import { GlobalProps, GlobalState } from '../../shared/model';
1
+ import type { GlobalProps, GlobalState } from '../../shared/model';
2
2
  export type DBTabPanelDefaultProps = {
3
3
  /**
4
4
  * The content if you don't want to use children.
@@ -1,6 +1,6 @@
1
- import { AlignmentProps, GlobalProps, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';
2
- import { DBTabItemProps } from '../tab-item/model';
3
- import { DBTabPanelProps } from '../tab-panel/model';
1
+ import type { AlignmentProps, GlobalProps, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';
2
+ import type { DBTabItemProps } from '../tab-item/model';
3
+ import type { DBTabPanelProps } from '../tab-panel/model';
4
4
  export declare const TabsBehaviorList: readonly ["scrollbar", "arrows"];
5
5
  export type TabsBehaviorType = (typeof TabsBehaviorList)[number];
6
6
  export declare const TabsInitialSelectedModeList: readonly ["auto", "manually"];
@@ -1,4 +1,4 @@
1
- import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, NoTextProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
1
+ import type { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, NoTextProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
2
2
  export declare const TagBehaviorList: readonly ["static", "removable"];
3
3
  export type TagBehaviorType = (typeof TagBehaviorList)[number];
4
4
  export type DBTagEventsProps = {