@db-ux/v-core-components 4.12.1 → 4.13.0-shell-f221975

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 (116) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/agent/ControlPanelBrand.md +15 -0
  3. package/agent/ControlPanelDesktop.md +48 -0
  4. package/agent/ControlPanelMeta.md +19 -0
  5. package/agent/ControlPanelMobile.md +40 -0
  6. package/agent/ControlPanelNavigation.md +24 -0
  7. package/agent/ControlPanelNavigationItem.md +39 -0
  8. package/agent/ControlPanelPrimaryActions.md +20 -0
  9. package/agent/ControlPanelSecondaryActions.md +24 -0
  10. package/agent/Drawer.md +0 -8
  11. package/agent/Shell.md +28 -0
  12. package/agent/ShellSubNavigation.md +6 -0
  13. package/agent/_instructions.md +11 -6
  14. package/dist/components/accordion/accordion.vue.d.ts +1 -1
  15. package/dist/components/accordion/model.d.ts +2 -8
  16. package/dist/components/button/button.vue.d.ts +3 -1
  17. package/dist/components/button/model.d.ts +8 -0
  18. package/dist/components/control-panel-brand/index.d.ts +1 -0
  19. package/dist/components/control-panel-brand/model.d.ts +5 -0
  20. package/dist/components/control-panel-desktop/control-panel-desktop.vue.d.ts +34 -0
  21. package/dist/components/control-panel-desktop/index.d.ts +1 -0
  22. package/dist/components/control-panel-desktop/model.d.ts +5 -0
  23. package/dist/components/control-panel-flat-icon/control-panel-flat-icon.vue.d.ts +22 -0
  24. package/dist/components/control-panel-flat-icon/index.d.ts +1 -0
  25. package/dist/components/control-panel-flat-icon/model.d.ts +12 -0
  26. package/dist/components/control-panel-meta/control-panel-meta.vue.d.ts +18 -0
  27. package/dist/components/control-panel-meta/index.d.ts +1 -0
  28. package/dist/components/control-panel-meta/model.d.ts +5 -0
  29. package/dist/components/control-panel-mobile/control-panel-mobile.vue.d.ts +33 -0
  30. package/dist/components/control-panel-mobile/index.d.ts +1 -0
  31. package/dist/components/control-panel-mobile/model.d.ts +21 -0
  32. package/dist/components/control-panel-navigation/control-panel-navigation.vue.d.ts +25 -0
  33. package/dist/components/control-panel-navigation/index.d.ts +1 -0
  34. package/dist/components/control-panel-navigation/model.d.ts +25 -0
  35. package/dist/components/control-panel-navigation-item/control-panel-navigation-item.vue.d.ts +27 -0
  36. package/dist/components/control-panel-navigation-item/index.d.ts +1 -0
  37. package/dist/components/control-panel-navigation-item/model.d.ts +20 -0
  38. package/dist/components/{navigation-item/navigation-item.vue.d.ts → control-panel-navigation-item-group/control-panel-navigation-item-group.vue.d.ts} +7 -11
  39. package/dist/components/control-panel-navigation-item-group/index.d.ts +1 -0
  40. package/dist/components/control-panel-navigation-item-group/model.d.ts +44 -0
  41. package/dist/components/control-panel-primary-actions/control-panel-primary-actions.vue.d.ts +18 -0
  42. package/dist/components/control-panel-primary-actions/index.d.ts +1 -0
  43. package/dist/components/control-panel-primary-actions/model.d.ts +5 -0
  44. package/dist/components/control-panel-secondary-actions/control-panel-secondary-actions.vue.d.ts +18 -0
  45. package/dist/components/control-panel-secondary-actions/index.d.ts +1 -0
  46. package/dist/components/control-panel-secondary-actions/model.d.ts +5 -0
  47. package/dist/components/{brand/brand.vue.d.ts → control-panel-skip-navigation/control-panel-skip-navigation.vue.d.ts} +3 -5
  48. package/dist/components/control-panel-skip-navigation/index.d.ts +1 -0
  49. package/dist/components/control-panel-skip-navigation/model.d.ts +16 -0
  50. package/dist/components/custom-button/custom-button.vue.d.ts +1 -1
  51. package/dist/components/custom-select/custom-select.vue.d.ts +1 -1
  52. package/dist/components/custom-select/model.d.ts +5 -1
  53. package/dist/components/custom-select-list/custom-select-list.vue.d.ts +1 -1
  54. package/dist/components/drawer/drawer.vue.d.ts +7 -7
  55. package/dist/components/drawer/model.d.ts +18 -3
  56. package/dist/components/drawer-footer/drawer-footer.vue.d.ts +18 -0
  57. package/dist/components/drawer-footer/index.d.ts +1 -0
  58. package/dist/components/drawer-footer/model.d.ts +5 -0
  59. package/dist/components/drawer-header/drawer-header.vue.d.ts +26 -0
  60. package/dist/components/drawer-header/index.d.ts +1 -0
  61. package/dist/components/drawer-header/model.d.ts +9 -0
  62. package/dist/components/input/input.vue.d.ts +1 -1
  63. package/dist/components/notification/notification.vue.d.ts +1 -1
  64. package/dist/components/select/select.vue.d.ts +1 -1
  65. package/dist/components/shell/index.d.ts +1 -0
  66. package/dist/components/shell/model.d.ts +34 -0
  67. package/dist/components/shell/shell.vue.d.ts +25 -0
  68. package/dist/components/shell-content/index.d.ts +1 -0
  69. package/dist/components/shell-content/model.d.ts +28 -0
  70. package/dist/components/{page/page.vue.d.ts → shell-content/shell-content.vue.d.ts} +7 -7
  71. package/dist/components/shell-sub-navigation/index.d.ts +1 -0
  72. package/dist/components/shell-sub-navigation/model.d.ts +5 -0
  73. package/dist/components/shell-sub-navigation/shell-sub-navigation.vue.d.ts +22 -0
  74. package/dist/components/table/table.vue.d.ts +1 -0
  75. package/dist/components/table-body/table-body.vue.d.ts +1 -0
  76. package/dist/components/table-caption/table-caption.vue.d.ts +1 -0
  77. package/dist/components/table-data-cell/table-data-cell.vue.d.ts +1 -0
  78. package/dist/components/table-footer/table-footer.vue.d.ts +1 -0
  79. package/dist/components/table-head/table-head.vue.d.ts +1 -0
  80. package/dist/components/table-header-cell/table-header-cell.vue.d.ts +1 -0
  81. package/dist/components/table-row/table-row.vue.d.ts +1 -0
  82. package/dist/components/tabs/model.d.ts +4 -12
  83. package/dist/components/tabs/tabs.vue.d.ts +4 -2
  84. package/dist/db-ux.es.js +2670 -1751
  85. package/dist/db-ux.umd.js +1 -1
  86. package/dist/index.d.ts +32 -10
  87. package/dist/shared/constants.d.ts +44 -39
  88. package/dist/shared/figma.d.ts +11 -4
  89. package/dist/shared/model.d.ts +109 -7
  90. package/dist/utils/abstract-document-listener.d.ts +18 -0
  91. package/dist/utils/abstract-observer-listener.d.ts +39 -0
  92. package/dist/utils/document-click-listener.d.ts +3 -3
  93. package/dist/utils/document-scroll-listener.d.ts +3 -3
  94. package/dist/utils/floating-components.d.ts +29 -6
  95. package/dist/utils/index.d.ts +11 -0
  96. package/dist/utils/intersection-observer-listener.d.ts +15 -0
  97. package/dist/utils/navigation.d.ts +12 -11
  98. package/dist/utils/resize-observer-listener.d.ts +15 -0
  99. package/package.json +8 -8
  100. package/agent/Brand.md +0 -19
  101. package/agent/Header.md +0 -35
  102. package/agent/Navigation.md +0 -23
  103. package/agent/NavigationItem.md +0 -29
  104. package/agent/Page.md +0 -33
  105. package/dist/components/brand/index.d.ts +0 -1
  106. package/dist/components/brand/model.d.ts +0 -10
  107. package/dist/components/header/header.vue.d.ts +0 -40
  108. package/dist/components/header/index.d.ts +0 -1
  109. package/dist/components/header/model.d.ts +0 -44
  110. package/dist/components/navigation/index.d.ts +0 -1
  111. package/dist/components/navigation/model.d.ts +0 -5
  112. package/dist/components/navigation-item/index.d.ts +0 -1
  113. package/dist/components/navigation-item/model.d.ts +0 -39
  114. package/dist/components/page/index.d.ts +0 -1
  115. package/dist/components/page/model.d.ts +0 -36
  116. /package/dist/components/{navigation/navigation.vue.d.ts → control-panel-brand/control-panel-brand.vue.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "4.12.1",
3
+ "version": "4.13.0-shell-f221975",
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.12.1",
32
- "@db-ux/core-foundations": "4.12.1"
31
+ "@db-ux/core-components": "4.13.0-shell-f221975",
32
+ "@db-ux/core-foundations": "4.13.0-shell-f221975"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@playwright/experimental-ct-vue": "1.60.0",
36
36
  "@vitejs/plugin-vue": "6.0.7",
37
- "@vue/compiler-dom": "3.5.38",
37
+ "@vue/compiler-dom": "3.5.39",
38
38
  "cpr": "3.0.1",
39
39
  "npm-run-all2": "9.0.2",
40
40
  "replace-in-file": "8.4.0",
41
- "tsx": "4.22.4",
41
+ "tsx": "4.23.0",
42
42
  "typescript": "5.9.3",
43
- "vite": "8.0.16",
44
- "vue": "3.5.38",
45
- "vue-tsc": "3.3.5"
43
+ "vite": "8.1.3",
44
+ "vue": "3.5.39",
45
+ "vue-tsc": "3.3.6"
46
46
  },
47
47
  "publishConfig": {
48
48
  "registry": "https://registry.npmjs.org/",
package/agent/Brand.md DELETED
@@ -1,19 +0,0 @@
1
-
2
-
3
- # Brand Examples (vue)
4
-
5
- ```vue
6
- <template>
7
- <h1>DBBrand Documentation Examples</h1>
8
- <h2>1. Default Brand</h2>
9
- <DBBrand>Default Brand</DBBrand>
10
- <h2>2. Icon Visibility</h2>
11
- <DBBrand :showIcon="false">Icon Hidden</DBBrand>
12
- <h2>3. Custom Text</h2>
13
- <DBBrand text="Custom Brand Text">With Custom Text</DBBrand>
14
- </template>
15
-
16
- <script setup lang="ts">
17
- import { DBBrand } from "@db-ux/v-v-core-components";
18
- </script>
19
- ```
package/agent/Header.md DELETED
@@ -1,35 +0,0 @@
1
-
2
-
3
- # Header Examples (vue)
4
-
5
- ```vue
6
- <template>
7
- <h1>DBHeader Documentation Examples</h1>
8
- <h2>1. Default Header</h2>
9
- <DBHeader :drawerOpen="drawerOpen" :onToggle="(open) => (drawerOpen = open)">
10
- <template v-slot:brand><DBBrand>My Awesome App</DBBrand></template>
11
- <template v-slot:metaNavigation><DBLink href="#">Imprint</DBLink><DBLink href="#">Help</DBLink></template>
12
- <template v-slot:primaryAction><DBButton icon="magnifying_glass" variant="ghost" noText>Search</DBButton></template>
13
- <template v-slot:secondaryAction><DBButton icon="x_placeholder" variant="ghost" noText>Profile</DBButton><DBButton icon="alert" variant="ghost" noText>Notification</DBButton><DBButton icon="help" variant="ghost" noText>Help</DBButton></template>
14
-
15
- <DBNavigation
16
- ><DBNavigationItem><a href="#">Navi-Item 1</a></DBNavigationItem
17
- ><DBNavigationItem icon="x_placeholder"
18
- ><a href="#">Navi-Item 2</a></DBNavigationItem
19
- ><DBNavigationItem :disabled="true"
20
- ><a href="#">Navi-Item 3</a></DBNavigationItem
21
- ></DBNavigation
22
- ></DBHeader
23
- >
24
- </template>
25
-
26
- <script setup lang="ts">
27
- import { ref } from "vue";
28
-
29
- import { DBNavigation } from "@db-ux/v-v-core-components";
30
- import { DBNavigationItem } from "@db-ux/v-v-core-components";
31
- import { DBHeader } from "@db-ux/v-v-core-components";
32
-
33
- const drawerOpen = ref<boolean>(false);
34
- </script>
35
- ```
@@ -1,23 +0,0 @@
1
-
2
-
3
- # Navigation Examples (vue)
4
-
5
- ```vue
6
- <template>
7
- <h1>DBNavigation Documentation Examples</h1>
8
- <h2>1. Default Navigation</h2>
9
- <DBNavigation
10
- ><DBNavigationItem><a href="#">Navi-Item 1</a></DBNavigationItem
11
- ><DBNavigationItem icon="x_placeholder"
12
- ><a href="#">Navi-Item 2</a></DBNavigationItem
13
- ><DBNavigationItem :disabled="true"
14
- ><a href="#">Navi-Item 3</a></DBNavigationItem
15
- ></DBNavigation
16
- >
17
- </template>
18
-
19
- <script setup lang="ts">
20
- import { DBNavigationItem } from "@db-ux/v-v-core-components";
21
- import { DBNavigation } from "@db-ux/v-v-core-components";
22
- </script>
23
- ```
@@ -1,29 +0,0 @@
1
-
2
-
3
- # NavigationItem Examples (vue)
4
-
5
- ```vue
6
- <template>
7
- <h1>DBNavigationItem Documentation Examples</h1>
8
- <h2>1. Default Navigation Item</h2>
9
- <DBNavigationItem>Default Navigation Item</DBNavigationItem>
10
- <h2>2. Active State</h2>
11
- <DBNavigationItem :active="true">Active Navigation Item</DBNavigationItem>
12
- <h2>3. Disabled State</h2>
13
- <DBNavigationItem :disabled="true">
14
- Disabled Navigation Item
15
- </DBNavigationItem>
16
- <h2>4. Sub-Navigation</h2>
17
- <DBNavigationItem :subNavigation="<div>Sub Navigation Content</div>">
18
- Navigation Item with Sub-Navigation
19
- </DBNavigationItem>
20
- <h2>5. Icon Support</h2>
21
- <DBNavigationItem icon="user"> Navigation Item with Icon </DBNavigationItem>
22
- <h2>6. Custom Class</h2>
23
- <DBNavigationItem> Navigation Item with Custom Class </DBNavigationItem>
24
- </template>
25
-
26
- <script setup lang="ts">
27
- import { DBNavigationItem } from "@db-ux/v-v-core-components";
28
- </script>
29
- ```
package/agent/Page.md DELETED
@@ -1,33 +0,0 @@
1
-
2
-
3
- # Page Examples (vue)
4
-
5
- ```vue
6
- <template>
7
- <h1>DBPage Documentation Examples</h1>
8
- <h2>1. Default Page</h2>
9
- <DBPage><template v-slot:header><DBHeader>Header Content</DBHeader></template>
10
- Main Page</DBPage>
11
- <h2>2. Document Overflow Variants</h2>
12
- <DBPage documentOverflow="hidden">
13
- <template v-slot:header><DBHeader>Header Content</DBHeader></template>
14
- Main Page with Hidden Overflow
15
- </DBPage>
16
- <DBPage documentOverflow="auto">
17
- <template v-slot:header><DBHeader>Header Content</DBHeader></template>
18
- Main Page with Auto Overflow
19
- </DBPage>
20
- <h2>3. Fade-In Effect</h2>
21
- <DBPage :fadeIn="true"><template v-slot:header><DBHeader>Header Content</DBHeader></template>
22
- Main Page with Fade-In</DBPage>
23
- <h2>4. Variant Examples</h2>
24
- <DBPage variant="auto"><template v-slot:header><DBHeader>Header Content</DBHeader></template>
25
- Page with Auto Variant</DBPage>
26
- <DBPage variant="fixed"><template v-slot:header><DBHeader>Header Content</DBHeader></template>
27
- Page with Fixed Variant</DBPage>
28
- </template>
29
-
30
- <script setup lang="ts">
31
- import { DBPage } from "@db-ux/v-v-core-components";
32
- </script>
33
- ```
@@ -1 +0,0 @@
1
- export { default as DBBrand } from './brand.vue';
@@ -1,10 +0,0 @@
1
- import type { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model.js';
2
- export type DBBrandDefaultProps = {
3
- /**
4
- * @deprecated: Disable the default logo svg to pass in a custom `img`
5
- */
6
- hideLogo?: boolean;
7
- };
8
- export type DBBrandProps = DBBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps;
9
- export type DBBrandDefaultState = {};
10
- export type DBBrandState = DBBrandDefaultState & GlobalState;
@@ -1,40 +0,0 @@
1
- import { DBHeaderProps } from "./model.js";
2
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_15: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {};
3
- type __VLS_Slots = {} & {
4
- 'meta-navigation'?: (props: typeof __VLS_1) => any;
5
- } & {
6
- brand?: (props: typeof __VLS_3) => any;
7
- } & {
8
- default?: (props: typeof __VLS_5) => any;
9
- } & {
10
- 'primary-action'?: (props: typeof __VLS_7) => any;
11
- } & {
12
- 'secondary-action'?: (props: typeof __VLS_15) => any;
13
- } & {
14
- default?: (props: typeof __VLS_23) => any;
15
- } & {
16
- 'meta-navigation'?: (props: typeof __VLS_25) => any;
17
- } & {
18
- 'secondary-action'?: (props: typeof __VLS_27) => any;
19
- };
20
- declare const __VLS_base: import("@vue/runtime-core").DefineComponent<DBHeaderProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DBHeaderProps> & Readonly<{}>, {
21
- id: string;
22
- children: any;
23
- className: string;
24
- propOverrides: import("../../index.js", { with: { "resolution-mode": "import" } }).PropOverridesType;
25
- onToggle: (open: boolean) => void;
26
- width: import("../../index.js", { with: { "resolution-mode": "import" } }).MaxWidthType;
27
- closeButtonId: string;
28
- closeButtonText: string;
29
- drawerOpen: boolean | string;
30
- forceMobile: boolean | string;
31
- burgerMenuLabel: string;
32
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
33
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
- declare const _default: typeof __VLS_export;
35
- export default _default;
36
- type __VLS_WithSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
@@ -1 +0,0 @@
1
- export { default as DBHeader } from './header.vue';
@@ -1,44 +0,0 @@
1
- import type { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model.js';
2
- export type DBHeaderDefaultProps = {
3
- /**
4
- * Slot to pass in the DBBrand component
5
- */
6
- brand?: any;
7
- /**
8
- * Slot to pass in a meta navigation.
9
- * - Desktop: Above the regular header
10
- * - Mobile: Inside the drawer
11
- */
12
- metaNavigation?: any;
13
- /**
14
- * Slot to pass one or more elements like DBButton (e.g. search) as primary action.
15
- * - Desktop: Shown next to the main-navigation
16
- * - Mobile: Shown next to the brand
17
- */
18
- primaryAction?: any;
19
- /**
20
- * Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
21
- * - Desktop: Shown separated by divider at the end of the header
22
- * - Mobile: Shown inside the drawer at the bottom.
23
- */
24
- secondaryAction?: any;
25
- /**
26
- * Open/closes the drawer for mobile header or if `forceMobile` is true.
27
- */
28
- drawerOpen?: boolean | string;
29
- /**
30
- * Forces the header to use mobile layout for desktop as well.
31
- * You should only use this setting if you really can't provide a smaller navigation.
32
- * Overwrite size of the drawer with '--db-drawer-max-width: xxx'
33
- */
34
- forceMobile?: boolean | string;
35
- /**
36
- * This attribute sets the label for the burger menu button for mobile headers.
37
- */
38
- burgerMenuLabel?: string;
39
- };
40
- export type DBHeaderProps = DBHeaderDefaultProps & InnerCloseButtonProps & GlobalProps & ToggleEventProps & ContainerWidthProps;
41
- export type DBHeaderDefaultState = {
42
- forcedToMobile?: boolean;
43
- };
44
- export type DBHeaderState = DBHeaderDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NavigationBehaviorState;
@@ -1 +0,0 @@
1
- export { default as DBNavigation } from './navigation.vue';
@@ -1,5 +0,0 @@
1
- import type { GlobalProps } from '../../shared/model.js';
2
- export type DBNavigationDefaultProps = {};
3
- export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps;
4
- export type DBNavigationDefaultState = {};
5
- export type DBNavigationState = DBNavigationDefaultState;
@@ -1 +0,0 @@
1
- export { default as DBNavigationItem } from './navigation-item.vue';
@@ -1,39 +0,0 @@
1
- import type { ClickEvent, ClickEventProps, ClickEventState, GlobalProps, GlobalState, IconProps, InitializedState, NavigationBackButtonProps, NavigationBehaviorState, ShowIconProps, TextProps, WidthProps, WrapProps } from '../../shared/model.js';
2
- import type { NavigationItemSafeTriangle } from '../../utils/navigation.js';
3
- export type DBNavigationItemDefaultProps = {
4
- /**
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.
6
- */
7
- active?: boolean;
8
- /**
9
- * The disabled attribute can be set to [keep a user from clicking on the item](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).
10
- */
11
- disabled?: boolean | string;
12
- /**
13
- * React-specific property to pass in a slot for sub-navigation
14
- */
15
- subNavigation?: any;
16
- /**
17
- * This is for mobile navigation only, if it is set the sub-navigation is a static overlay
18
- */
19
- subNavigationExpanded?: boolean | string;
20
- /**
21
- * Force hide sub-navigation - for web component output
22
- */
23
- hideSubNavigation?: boolean | string;
24
- };
25
- export type DBNavigationItemProps = DBNavigationItemDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & WrapProps & NavigationBackButtonProps & ShowIconProps & TextProps;
26
- export type DBNavigationItemDefaultState = {
27
- handleBackClick: (event: ClickEvent<HTMLButtonElement>) => void;
28
- hasAreaPopup: boolean;
29
- isSubNavigationExpanded: boolean;
30
- /**
31
- * Internal state property to show/hide sub-navigation button
32
- */
33
- hasSubNavigation?: boolean;
34
- navigationItemSafeTriangle?: NavigationItemSafeTriangle;
35
- autoClose?: boolean;
36
- subNavigationId?: string;
37
- subNavigationToggleId?: string;
38
- };
39
- export type DBNavigationItemState = DBNavigationItemDefaultState & ClickEventState<HTMLButtonElement> & GlobalState & InitializedState & NavigationBehaviorState;
@@ -1 +0,0 @@
1
- export { default as DBPage } from './page.vue';
@@ -1,36 +0,0 @@
1
- import type { GlobalProps, GlobalState } from '../../shared/model.js';
2
- export declare const PageVariantList: readonly ["auto", "fixed"];
3
- export type PageVariantType = (typeof PageVariantList)[number];
4
- export declare const PageDocumentOverflowList: readonly ["hidden", "auto"];
5
- export type PageDocumentOverflowType = (typeof PageDocumentOverflowList)[number];
6
- export type DBPageDefaultProps = {
7
- /**
8
- * The documentOverflow sets the overflow:hidden/auto to the root document
9
- */
10
- documentOverflow?: PageDocumentOverflowType;
11
- /**
12
- * Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/
13
- */
14
- fadeIn?: boolean | string;
15
- /**
16
- * The slot can be used for React to set a footer.
17
- */
18
- footer?: any;
19
- /**
20
- * The slot can be used for React to set a header.
21
- */
22
- header?: any;
23
- /**
24
- * Adds `class` to `<main>` element
25
- */
26
- mainClass?: string;
27
- /**
28
- * The variant=fixed uses flex-box to make header and footer static
29
- */
30
- variant?: PageVariantType;
31
- };
32
- export type DBPageProps = DBPageDefaultProps & GlobalProps;
33
- export type DBPageDefaultState = {
34
- fontsLoaded?: boolean;
35
- };
36
- export type DBPageState = DBPageDefaultState & GlobalState;