@db-ux/react-core-components 4.11.1 → 4.12.1
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 +23 -0
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +83 -102
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion/model.js +2 -4
- package/dist/components/accordion-item/accordion-item.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.js +56 -89
- package/dist/components/accordion-item/index.d.ts +1 -1
- package/dist/components/accordion-item/index.js +1 -0
- package/dist/components/accordion-item/model.d.ts +1 -1
- package/dist/components/accordion-item/model.js +1 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +28 -72
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/badge/model.js +1 -12
- package/dist/components/brand/brand.d.ts +1 -1
- package/dist/components/brand/brand.js +10 -60
- package/dist/components/brand/index.d.ts +1 -1
- package/dist/components/brand/index.js +1 -0
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/brand/model.js +1 -0
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +19 -75
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/button/model.js +2 -13
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.js +14 -65
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/card/model.js +2 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +143 -163
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/checkbox/model.js +1 -0
- package/dist/components/custom-button/custom-button.d.ts +1 -1
- package/dist/components/custom-button/custom-button.js +10 -65
- package/dist/components/custom-button/index.d.ts +1 -1
- package/dist/components/custom-button/index.js +1 -0
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-button/model.js +1 -0
- package/dist/components/custom-select/custom-select.d.ts +1 -1
- package/dist/components/custom-select/custom-select.js +688 -509
- package/dist/components/custom-select/index.d.ts +1 -1
- package/dist/components/custom-select/index.js +1 -0
- package/dist/components/custom-select/model.d.ts +4 -4
- package/dist/components/custom-select/model.js +1 -8
- package/dist/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -1
- package/dist/components/custom-select-dropdown/custom-select-dropdown.js +10 -62
- package/dist/components/custom-select-dropdown/index.d.ts +1 -1
- package/dist/components/custom-select-dropdown/index.js +1 -0
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-dropdown/model.js +1 -8
- package/dist/components/custom-select-form-field/custom-select-form-field.d.ts +1 -1
- package/dist/components/custom-select-form-field/custom-select-form-field.js +9 -57
- package/dist/components/custom-select-form-field/index.d.ts +1 -1
- package/dist/components/custom-select-form-field/index.js +1 -0
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.js +1 -0
- package/dist/components/custom-select-list/custom-select-list.d.ts +1 -1
- package/dist/components/custom-select-list/custom-select-list.js +9 -60
- package/dist/components/custom-select-list/index.d.ts +1 -1
- package/dist/components/custom-select-list/index.js +1 -0
- package/dist/components/custom-select-list/model.d.ts +1 -1
- package/dist/components/custom-select-list/model.js +1 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
- package/dist/components/custom-select-list-item/custom-select-list-item.js +28 -89
- package/dist/components/custom-select-list-item/index.d.ts +1 -1
- package/dist/components/custom-select-list-item/index.js +1 -0
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.js +1 -4
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.js +9 -60
- package/dist/components/divider/index.d.ts +1 -1
- package/dist/components/divider/index.js +1 -0
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/divider/model.js +2 -4
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.js +109 -118
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/drawer/model.d.ts +4 -1
- package/dist/components/drawer/model.js +4 -14
- package/dist/components/header/header.d.ts +1 -1
- package/dist/components/header/header.js +43 -143
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +1 -0
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/header/model.js +1 -0
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.js +9 -61
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/icon/model.js +1 -11
- package/dist/components/infotext/index.d.ts +1 -1
- package/dist/components/infotext/index.js +1 -0
- package/dist/components/infotext/infotext.d.ts +1 -1
- package/dist/components/infotext/infotext.js +9 -62
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/infotext/model.js +1 -0
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +154 -198
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/input/model.js +5 -21
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +9 -70
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/link/model.js +3 -8
- package/dist/components/navigation/index.d.ts +1 -1
- package/dist/components/navigation/index.js +1 -0
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation/model.js +1 -0
- package/dist/components/navigation/navigation.d.ts +1 -1
- package/dist/components/navigation/navigation.js +9 -57
- package/dist/components/navigation-item/index.d.ts +1 -1
- package/dist/components/navigation-item/index.js +1 -0
- package/dist/components/navigation-item/model.d.ts +2 -2
- package/dist/components/navigation-item/model.js +1 -0
- package/dist/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.js +71 -117
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/index.js +1 -0
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/notification/model.js +3 -12
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/notification/notification.js +23 -100
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/index.js +1 -0
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/model.js +2 -4
- package/dist/components/page/page.d.ts +1 -1
- package/dist/components/page/page.js +42 -74
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/model.js +1 -0
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +119 -126
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/radio/model.js +1 -0
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +86 -124
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +1 -0
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/section/model.js +1 -0
- package/dist/components/section/section.d.ts +1 -1
- package/dist/components/section/section.js +9 -59
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/select/model.js +1 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +172 -188
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.js +1 -0
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/model.js +4 -14
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +9 -63
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/switch/model.js +1 -0
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +135 -182
- package/dist/components/tab-item/index.d.ts +1 -1
- package/dist/components/tab-item/index.js +1 -0
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-item/model.js +1 -0
- package/dist/components/tab-item/tab-item.d.ts +1 -1
- package/dist/components/tab-item/tab-item.js +72 -105
- package/dist/components/tab-list/index.d.ts +1 -1
- package/dist/components/tab-list/index.js +1 -0
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-list/model.js +1 -0
- package/dist/components/tab-list/tab-list.d.ts +1 -1
- package/dist/components/tab-list/tab-list.js +9 -60
- package/dist/components/tab-panel/index.d.ts +1 -1
- package/dist/components/tab-panel/index.js +1 -0
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tab-panel/model.js +1 -0
- package/dist/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.js +10 -59
- package/dist/components/table/examples/data.d.ts +1 -1
- package/dist/components/table/examples/data.js +258 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/model.d.ts +2 -2
- package/dist/components/table/model.js +6 -28
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +77 -111
- package/dist/components/table-body/index.d.ts +1 -1
- package/dist/components/table-body/index.js +1 -0
- package/dist/components/table-body/model.d.ts +2 -2
- package/dist/components/table-body/model.js +1 -0
- package/dist/components/table-body/table-body.d.ts +1 -1
- package/dist/components/table-body/table-body.js +12 -64
- package/dist/components/table-caption/index.d.ts +1 -1
- package/dist/components/table-caption/index.js +1 -0
- package/dist/components/table-caption/model.d.ts +1 -1
- package/dist/components/table-caption/model.js +1 -0
- package/dist/components/table-caption/table-caption.d.ts +1 -1
- package/dist/components/table-caption/table-caption.js +9 -57
- package/dist/components/table-data-cell/index.d.ts +1 -1
- package/dist/components/table-data-cell/index.js +1 -0
- package/dist/components/table-data-cell/model.d.ts +1 -1
- package/dist/components/table-data-cell/model.js +1 -0
- package/dist/components/table-data-cell/table-data-cell.d.ts +1 -1
- package/dist/components/table-data-cell/table-data-cell.js +9 -62
- package/dist/components/table-footer/index.d.ts +1 -1
- package/dist/components/table-footer/index.js +1 -0
- package/dist/components/table-footer/model.d.ts +2 -2
- package/dist/components/table-footer/model.js +1 -0
- package/dist/components/table-footer/table-footer.d.ts +1 -1
- package/dist/components/table-footer/table-footer.js +12 -64
- package/dist/components/table-head/index.d.ts +1 -1
- package/dist/components/table-head/index.js +1 -0
- package/dist/components/table-head/model.d.ts +2 -2
- package/dist/components/table-head/model.js +1 -0
- package/dist/components/table-head/table-head.d.ts +1 -1
- package/dist/components/table-head/table-head.js +18 -71
- package/dist/components/table-header-cell/index.d.ts +1 -1
- package/dist/components/table-header-cell/index.js +1 -0
- package/dist/components/table-header-cell/model.d.ts +1 -1
- package/dist/components/table-header-cell/model.js +1 -9
- package/dist/components/table-header-cell/table-header-cell.d.ts +1 -1
- package/dist/components/table-header-cell/table-header-cell.js +9 -65
- package/dist/components/table-row/index.d.ts +1 -1
- package/dist/components/table-row/index.js +1 -0
- package/dist/components/table-row/model.d.ts +4 -4
- package/dist/components/table-row/model.js +1 -8
- package/dist/components/table-row/table-row.d.ts +1 -1
- package/dist/components/table-row/table-row.js +20 -127
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/model.d.ts +3 -3
- package/dist/components/tabs/model.js +2 -4
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +170 -191
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/tag/model.js +1 -4
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.js +26 -91
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/textarea/model.js +2 -13
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +139 -165
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/model.js +1 -4
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +197 -160
- package/dist/index.d.ts +97 -97
- package/dist/index.js +97 -75
- package/dist/shared/constants.js +100 -32
- package/dist/shared/examples/index.js +4 -0
- package/dist/shared/figma.js +1 -0
- package/dist/shared/model.js +22 -77
- package/dist/shared/showcase/show-code-link.js +51 -0
- package/dist/utils/document-click-listener.js +29 -26
- package/dist/utils/document-scroll-listener.js +38 -30
- package/dist/utils/floating-components.js +404 -107
- package/dist/utils/form-components.js +71 -34
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +170 -49
- package/dist/utils/navigation.js +134 -68
- package/dist/utils/react.js +21 -10
- package/package.json +6 -9
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"brand",
|
|
5
|
-
"inline"
|
|
6
|
-
], t = ["medium", "small"], n = ["external", "internal"];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n as LinkContentList, t as LinkSizeList, e as LinkVariantList };
|
|
1
|
+
export const LinkVariantList = ['adaptive', 'brand', 'inline'];
|
|
2
|
+
export const LinkSizeList = ['medium', 'small'];
|
|
3
|
+
export const LinkContentList = ['external', 'internal'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBNavigation } from './navigation';
|
|
1
|
+
export { default as DBNavigation } from './navigation.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBNavigation } from './navigation.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalProps } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps } from '../../shared/model.js';
|
|
2
2
|
export type DBNavigationDefaultProps = {};
|
|
3
3
|
export type DBNavigationProps = DBNavigationDefaultProps & GlobalProps;
|
|
4
4
|
export type DBNavigationDefaultState = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBNavigation: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("
|
|
2
|
+
declare const DBNavigation: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../index.js").GlobalProps> & import("../../index.js").GlobalProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBNavigation;
|
|
@@ -1,59 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ref: o || i(o),
|
|
10
|
-
...e(r, [
|
|
11
|
-
"data-icon-variant",
|
|
12
|
-
"data-icon-variant-before",
|
|
13
|
-
"data-icon-variant-after",
|
|
14
|
-
"data-icon-weight",
|
|
15
|
-
"data-icon-weight-before",
|
|
16
|
-
"data-icon-weight-after",
|
|
17
|
-
"data-interactive",
|
|
18
|
-
"data-force-mobile",
|
|
19
|
-
"data-color",
|
|
20
|
-
"data-container-color",
|
|
21
|
-
"data-bg-color",
|
|
22
|
-
"data-on-bg-color",
|
|
23
|
-
"data-color-scheme",
|
|
24
|
-
"data-font-size",
|
|
25
|
-
"data-headline-size",
|
|
26
|
-
"data-divider",
|
|
27
|
-
"data-focus",
|
|
28
|
-
"data-font",
|
|
29
|
-
"data-density"
|
|
30
|
-
]),
|
|
31
|
-
id: r.id ?? r.propOverrides?.id,
|
|
32
|
-
...t(r, [
|
|
33
|
-
"data-icon-variant",
|
|
34
|
-
"data-icon-variant-before",
|
|
35
|
-
"data-icon-variant-after",
|
|
36
|
-
"data-icon-weight",
|
|
37
|
-
"data-icon-weight-before",
|
|
38
|
-
"data-icon-weight-after",
|
|
39
|
-
"data-interactive",
|
|
40
|
-
"data-force-mobile",
|
|
41
|
-
"data-color",
|
|
42
|
-
"data-container-color",
|
|
43
|
-
"data-bg-color",
|
|
44
|
-
"data-on-bg-color",
|
|
45
|
-
"data-color-scheme",
|
|
46
|
-
"data-font-size",
|
|
47
|
-
"data-headline-size",
|
|
48
|
-
"data-divider",
|
|
49
|
-
"data-focus",
|
|
50
|
-
"data-font",
|
|
51
|
-
"data-density"
|
|
52
|
-
]),
|
|
53
|
-
className: n("db-navigation", r.className),
|
|
54
|
-
children: /* @__PURE__ */ a("menu", { children: r.children })
|
|
55
|
-
});
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useRef, forwardRef } from "react";
|
|
5
|
+
import { cls } from "../../utils/index.js";
|
|
6
|
+
function DBNavigationFn(props, component) {
|
|
7
|
+
const _ref = component || useRef(component);
|
|
8
|
+
return (_jsx("nav", { ref: _ref, ...filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), id: props.id ?? props.propOverrides?.id, ...getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), className: cls("db-navigation", props.className), children: _jsx("menu", { children: props.children }) }));
|
|
56
9
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export { s as default };
|
|
10
|
+
const DBNavigation = forwardRef(DBNavigationFn);
|
|
11
|
+
export default DBNavigation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBNavigationItem } from './navigation-item';
|
|
1
|
+
export { default as DBNavigationItem } from './navigation-item.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBNavigationItem } from './navigation-item.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
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';
|
|
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
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBNavigationItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../shared/model").GlobalProps | "text" | "wrap" | "icon" | "showIcon" | keyof import("../../shared/model").ClickEventProps<HTMLButtonElement> | "width" | keyof import("./model").DBNavigationItemDefaultProps | keyof import("../../shared/model").NavigationBackButtonProps> & import("./model").DBNavigationItemDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").ClickEventProps<HTMLButtonElement> & import("../../shared/model").IconProps & import("../../shared/model").WidthProps & import("../../shared/model").WrapProps & import("../../shared/model").NavigationBackButtonProps & import("../../shared/model").ShowIconProps & import("../../shared/model").TextProps & React.RefAttributes<any>>;
|
|
2
|
+
declare const DBNavigationItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../shared/model.js").GlobalProps | "text" | "wrap" | "icon" | "showIcon" | keyof import("../../shared/model.js").ClickEventProps<HTMLButtonElement> | "width" | keyof import("./model.js").DBNavigationItemDefaultProps | keyof import("../../shared/model.js").NavigationBackButtonProps> & import("./model.js").DBNavigationItemDefaultProps & import("../../shared/model.js").GlobalProps & import("../../shared/model.js").ClickEventProps<HTMLButtonElement> & import("../../shared/model.js").IconProps & import("../../shared/model.js").WidthProps & import("../../shared/model.js").WrapProps & import("../../shared/model.js").NavigationBackButtonProps & import("../../shared/model.js").ShowIconProps & import("../../shared/model.js").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBNavigationItem;
|
|
@@ -1,119 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"data-container-color",
|
|
72
|
-
"data-bg-color",
|
|
73
|
-
"data-on-bg-color",
|
|
74
|
-
"data-color-scheme",
|
|
75
|
-
"data-font-size",
|
|
76
|
-
"data-headline-size",
|
|
77
|
-
"data-divider",
|
|
78
|
-
"data-focus",
|
|
79
|
-
"data-font",
|
|
80
|
-
"data-density"
|
|
81
|
-
]),
|
|
82
|
-
className: n("db-navigation-item", c.className),
|
|
83
|
-
"data-width": c.width,
|
|
84
|
-
"data-icon": c.icon,
|
|
85
|
-
"data-show-icon": a(c.showIcon, "showIcon"),
|
|
86
|
-
"data-active": c.active,
|
|
87
|
-
"data-wrap": a(c.wrap, "wrap"),
|
|
88
|
-
"aria-disabled": a(c.disabled, "disabled"),
|
|
89
|
-
children: !i(c.hideSubNavigation, "hideSubNavigation") && C ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
90
|
-
className: "db-navigation-item-expand-button",
|
|
91
|
-
id: N,
|
|
92
|
-
"aria-haspopup": x ? "true" : void 0,
|
|
93
|
-
"aria-expanded": T,
|
|
94
|
-
"aria-controls": j,
|
|
95
|
-
disabled: i(c.disabled, "disabled"),
|
|
96
|
-
onClick: (e) => I(e),
|
|
97
|
-
children: c.text ? /* @__PURE__ */ m(p, { children: c.text }) : /* @__PURE__ */ m(p, { children: c.children })
|
|
98
|
-
}), /* @__PURE__ */ h("menu", {
|
|
99
|
-
className: "db-sub-navigation",
|
|
100
|
-
id: j,
|
|
101
|
-
"aria-labelledby": N,
|
|
102
|
-
"data-force-close": D,
|
|
103
|
-
onClick: (e) => F(e),
|
|
104
|
-
children: [x ? /* @__PURE__ */ m("div", {
|
|
105
|
-
className: "db-mobile-navigation-back",
|
|
106
|
-
children: /* @__PURE__ */ m(o, {
|
|
107
|
-
icon: "arrow_left",
|
|
108
|
-
variant: "ghost",
|
|
109
|
-
id: c.backButtonId,
|
|
110
|
-
onClick: (e) => L(e),
|
|
111
|
-
children: c.backButtonText ?? "Back"
|
|
112
|
-
})
|
|
113
|
-
}) : null, /* @__PURE__ */ m(p, { children: c.subNavigation })]
|
|
114
|
-
})] }) : c.text ? /* @__PURE__ */ m(p, { children: c.text }) : /* @__PURE__ */ m(p, { children: c.children })
|
|
115
|
-
});
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_BACK } from "../../shared/constants.js";
|
|
6
|
+
import { cls, delay, getBoolean, getBooleanAsString } from "../../utils/index.js";
|
|
7
|
+
import { NavigationItemSafeTriangle } from "../../utils/navigation.js";
|
|
8
|
+
import DBButton from "../button/button.js";
|
|
9
|
+
import { useId } from "react";
|
|
10
|
+
function DBNavigationItemFn(props, component) {
|
|
11
|
+
const uuid = useId();
|
|
12
|
+
const _ref = component || useRef(component);
|
|
13
|
+
const [initialized, setInitialized] = useState(() => false);
|
|
14
|
+
const [hasAreaPopup, setHasAreaPopup] = useState(() => false);
|
|
15
|
+
const [hasSubNavigation, setHasSubNavigation] = useState(() => true);
|
|
16
|
+
const [isSubNavigationExpanded, setIsSubNavigationExpanded] = useState(() => false);
|
|
17
|
+
const [autoClose, setAutoClose] = useState(() => false);
|
|
18
|
+
const [navigationItemSafeTriangle, setNavigationItemSafeTriangle] = useState(() => undefined);
|
|
19
|
+
const [subNavigationId, setSubNavigationId] = useState(() => undefined);
|
|
20
|
+
const [subNavigationToggleId, setSubNavigationToggleId] = useState(() => undefined);
|
|
21
|
+
function handleNavigationItemClick(event) {
|
|
22
|
+
if (event?.target?.nodeName === "A") {
|
|
23
|
+
setAutoClose(true);
|
|
24
|
+
void delay(() => {
|
|
25
|
+
setAutoClose(false);
|
|
26
|
+
}, 1000);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function handleClick(event) {
|
|
30
|
+
if (props.onClick) {
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
props.onClick(event);
|
|
33
|
+
}
|
|
34
|
+
if (hasAreaPopup) {
|
|
35
|
+
setIsSubNavigationExpanded(true);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function handleBackClick(event) {
|
|
39
|
+
event.stopPropagation();
|
|
40
|
+
setIsSubNavigationExpanded(false);
|
|
41
|
+
}
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
setInitialized(true);
|
|
44
|
+
const subNavId = `sub-nav-${props.id ?? uuid}`;
|
|
45
|
+
setSubNavigationId(subNavId);
|
|
46
|
+
setSubNavigationToggleId(`${subNavId}-toggle`);
|
|
47
|
+
}, []);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (props.subNavigationExpanded !== undefined) {
|
|
50
|
+
setIsSubNavigationExpanded(!!getBoolean(props.subNavigationExpanded, "subNavigationExpanded"));
|
|
51
|
+
}
|
|
52
|
+
}, [props.subNavigationExpanded]);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (initialized && _ref.current) {
|
|
55
|
+
const subNavigationSlot = _ref.current.querySelector("menu");
|
|
56
|
+
if (subNavigationSlot) {
|
|
57
|
+
if (subNavigationSlot.children?.length > 0) {
|
|
58
|
+
setHasAreaPopup(true);
|
|
59
|
+
if (!navigationItemSafeTriangle) {
|
|
60
|
+
setNavigationItemSafeTriangle(new NavigationItemSafeTriangle(_ref.current, subNavigationSlot));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
setHasSubNavigation(false);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, [initialized, _ref.current]);
|
|
69
|
+
return (_jsx("li", { ref: _ref, ...filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), id: props.id ?? props.propOverrides?.id, onMouseOver: (event) => navigationItemSafeTriangle?.enableFollow(), onMouseLeave: (event) => navigationItemSafeTriangle?.disableFollow(), onMouseMove: (event) => navigationItemSafeTriangle?.followByMouseEvent(event), ...getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), className: cls("db-navigation-item", props.className), "data-width": props.width, "data-icon": props.icon, "data-show-icon": getBooleanAsString(props.showIcon, "showIcon"), "data-active": props.active, "data-wrap": getBooleanAsString(props.wrap, "wrap"), "aria-disabled": getBooleanAsString(props.disabled, "disabled"), children: !getBoolean(props.hideSubNavigation, "hideSubNavigation") &&
|
|
70
|
+
hasSubNavigation ? (_jsxs(_Fragment, { children: [_jsx("button", { className: "db-navigation-item-expand-button", id: subNavigationToggleId, "aria-haspopup": hasAreaPopup ? "true" : undefined, "aria-expanded": isSubNavigationExpanded, "aria-controls": subNavigationId, disabled: getBoolean(props.disabled, "disabled"), onClick: (event) => handleClick(event), children: props.text ? _jsx(_Fragment, { children: props.text }) : _jsx(_Fragment, { children: props.children }) }), _jsxs("menu", { className: "db-sub-navigation", id: subNavigationId, "aria-labelledby": subNavigationToggleId, "data-force-close": autoClose, onClick: (event) => handleNavigationItemClick(event), children: [hasAreaPopup ? (_jsx("div", { className: "db-mobile-navigation-back", children: _jsx(DBButton, { icon: "arrow_left", variant: "ghost", id: props.backButtonId, onClick: (event) => handleBackClick(event), children: props.backButtonText ?? DEFAULT_BACK }) })) : null, _jsx(_Fragment, { children: props.subNavigation })] })] })) : props.text ? (_jsx(_Fragment, { children: props.text })) : (_jsx(_Fragment, { children: props.children })) }));
|
|
116
71
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
export { _ as default };
|
|
72
|
+
const DBNavigationItem = forwardRef(DBNavigationItemFn);
|
|
73
|
+
export default DBNavigationItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBNotification } from './notification';
|
|
1
|
+
export { default as DBNotification } from './notification.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBNotification } from './notification.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { 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.js';
|
|
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,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"standalone",
|
|
5
|
-
"overlay"
|
|
6
|
-
], t = ["block", "inline"], n = [
|
|
7
|
-
"assertive",
|
|
8
|
-
"polite",
|
|
9
|
-
"off"
|
|
10
|
-
];
|
|
11
|
-
//#endregion
|
|
12
|
-
export { n as NotificationAriaLiveList, t as NotificationLinkVariantList, e as NotificationVariantList };
|
|
1
|
+
export const NotificationVariantList = ['docked', 'standalone', 'overlay'];
|
|
2
|
+
export const NotificationLinkVariantList = ['block', 'inline'];
|
|
3
|
+
export const NotificationAriaLiveList = ['assertive', 'polite', 'off'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ClickEvent } from "../../shared/model";
|
|
3
|
-
declare const DBNotification: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "role" | keyof import("../../shared/model").GlobalProps | "semantic" | "text" | "icon" | "showIcon" | keyof import("../../shared/model").InnerCloseButtonProps | keyof import("./model").DBNotificationDefaultProps | keyof import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement>>> & import("./model").DBNotificationDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").RoleProps & import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement>> & import("../../shared/model").IconProps & import("../../shared/model").SemanticProps & import("../../shared/model").InnerCloseButtonProps & import("../../shared/model").ShowIconProps & import("../../shared/model").TextProps & React.RefAttributes<any>>;
|
|
2
|
+
import { ClickEvent } from "../../shared/model.js";
|
|
3
|
+
declare const DBNotification: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "role" | keyof import("../../shared/model.js").GlobalProps | "semantic" | "text" | "icon" | "showIcon" | keyof import("../../shared/model.js").InnerCloseButtonProps | keyof import("./model.js").DBNotificationDefaultProps | keyof import("../../shared/model.js").CloseEventProps<ClickEvent<HTMLButtonElement>>> & import("./model.js").DBNotificationDefaultProps & import("../../shared/model.js").GlobalProps & import("../../shared/model.js").RoleProps & import("../../shared/model.js").CloseEventProps<ClickEvent<HTMLButtonElement>> & import("../../shared/model.js").IconProps & import("../../shared/model.js").SemanticProps & import("../../shared/model.js").InnerCloseButtonProps & import("../../shared/model.js").ShowIconProps & import("../../shared/model.js").TextProps & React.RefAttributes<any>>;
|
|
4
4
|
export default DBNotification;
|
|
@@ -1,102 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"data-interactive",
|
|
24
|
-
"data-force-mobile",
|
|
25
|
-
"data-color",
|
|
26
|
-
"data-container-color",
|
|
27
|
-
"data-bg-color",
|
|
28
|
-
"data-on-bg-color",
|
|
29
|
-
"data-color-scheme",
|
|
30
|
-
"data-font-size",
|
|
31
|
-
"data-headline-size",
|
|
32
|
-
"data-divider",
|
|
33
|
-
"data-focus",
|
|
34
|
-
"data-font",
|
|
35
|
-
"data-density",
|
|
36
|
-
"onClose"
|
|
37
|
-
]),
|
|
38
|
-
id: c.id ?? c.propOverrides?.id,
|
|
39
|
-
...t(c, [
|
|
40
|
-
"data-icon-variant",
|
|
41
|
-
"data-icon-variant-before",
|
|
42
|
-
"data-icon-variant-after",
|
|
43
|
-
"data-icon-weight",
|
|
44
|
-
"data-icon-weight-before",
|
|
45
|
-
"data-icon-weight-after",
|
|
46
|
-
"data-interactive",
|
|
47
|
-
"data-force-mobile",
|
|
48
|
-
"data-color",
|
|
49
|
-
"data-container-color",
|
|
50
|
-
"data-bg-color",
|
|
51
|
-
"data-on-bg-color",
|
|
52
|
-
"data-color-scheme",
|
|
53
|
-
"data-font-size",
|
|
54
|
-
"data-headline-size",
|
|
55
|
-
"data-divider",
|
|
56
|
-
"data-focus",
|
|
57
|
-
"data-font",
|
|
58
|
-
"data-density"
|
|
59
|
-
]),
|
|
60
|
-
className: n("db-notification", c.className),
|
|
61
|
-
role: a({
|
|
62
|
-
semantic: c.semantic,
|
|
63
|
-
role: c.role,
|
|
64
|
-
ariaLive: c.ariaLive
|
|
65
|
-
}),
|
|
66
|
-
"aria-live": c.ariaLive,
|
|
67
|
-
"data-semantic": c.semantic,
|
|
68
|
-
"data-variant": c.variant,
|
|
69
|
-
"data-icon": r(c.showIcon) === !1 ? void 0 : c.icon,
|
|
70
|
-
"data-show-icon": i(c.showIcon, "showIcon"),
|
|
71
|
-
"data-link-variant": c.linkVariant,
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ d(u, { children: c.image }),
|
|
74
|
-
o(c.headline, c.showHeadline) ? /* @__PURE__ */ d("header", {
|
|
75
|
-
"data-area": "head",
|
|
76
|
-
children: c.headline
|
|
77
|
-
}) : null,
|
|
78
|
-
/* @__PURE__ */ f("div", {
|
|
79
|
-
"data-area": "content",
|
|
80
|
-
children: [c.text ? /* @__PURE__ */ d(u, { children: c.text }) : null, c.children]
|
|
81
|
-
}),
|
|
82
|
-
o(c.timestamp, c.showTimestamp) ? /* @__PURE__ */ d("time", {
|
|
83
|
-
"data-area": "timestamp",
|
|
84
|
-
dateTime: c.timestampDatetime,
|
|
85
|
-
children: c.timestamp
|
|
86
|
-
}) : null,
|
|
87
|
-
/* @__PURE__ */ d(u, { children: c.link }),
|
|
88
|
-
r(c.closeable, "closeable") ? /* @__PURE__ */ d(s, {
|
|
89
|
-
icon: "cross",
|
|
90
|
-
variant: "ghost",
|
|
91
|
-
size: "small",
|
|
92
|
-
id: c.closeButtonId,
|
|
93
|
-
noText: !0,
|
|
94
|
-
onClick: (e) => h(e),
|
|
95
|
-
children: c.closeButtonText ?? "Close"
|
|
96
|
-
}) : null
|
|
97
|
-
]
|
|
98
|
-
});
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useRef, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants.js";
|
|
6
|
+
import { cls, getBoolean, getBooleanAsString, getNotificationRole, stringPropVisible, } from "../../utils/index.js";
|
|
7
|
+
import DBButton from "../button/button.js";
|
|
8
|
+
function DBNotificationFn(props, component) {
|
|
9
|
+
const _ref = component || useRef(component);
|
|
10
|
+
function handleClose(event) {
|
|
11
|
+
if (!event)
|
|
12
|
+
return;
|
|
13
|
+
event.stopPropagation();
|
|
14
|
+
if (props.onClose) {
|
|
15
|
+
props.onClose(event);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return (_jsxs("div", { ref: _ref, ...filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density", "onClose"]), id: props.id ?? props.propOverrides?.id, ...getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), className: cls("db-notification", props.className), role: getNotificationRole({
|
|
19
|
+
semantic: props.semantic,
|
|
20
|
+
role: props.role,
|
|
21
|
+
ariaLive: props.ariaLive,
|
|
22
|
+
}), "aria-live": props.ariaLive, "data-semantic": props.semantic, "data-variant": props.variant, "data-icon": getBoolean(props.showIcon) !== false ? props.icon : undefined, "data-show-icon": getBooleanAsString(props.showIcon, "showIcon"), "data-link-variant": props.linkVariant, children: [_jsx(_Fragment, { children: props.image }), stringPropVisible(props.headline, props.showHeadline) ? (_jsx("header", { "data-area": "head", children: props.headline })) : null, _jsxs("div", { "data-area": "content", children: [props.text ? _jsx(_Fragment, { children: props.text }) : null, props.children] }), stringPropVisible(props.timestamp, props.showTimestamp) ? (_jsx("time", { "data-area": "timestamp", dateTime: props.timestampDatetime, children: props.timestamp })) : null, _jsx(_Fragment, { children: props.link }), getBoolean(props.closeable, "closeable") ? (_jsx(DBButton, { icon: "cross", variant: "ghost", size: "small", id: props.closeButtonId, noText: true, onClick: (event) => handleClose(event), children: props.closeButtonText ?? DEFAULT_CLOSE_BUTTON })) : null] }));
|
|
99
23
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export { m as default };
|
|
24
|
+
const DBNotification = forwardRef(DBNotificationFn);
|
|
25
|
+
export default DBNotification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBPage } from './page';
|
|
1
|
+
export { default as DBPage } from './page.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBPage } from './page.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalProps, GlobalState } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState } from '../../shared/model.js';
|
|
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,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#endregion
|
|
4
|
-
export { t as PageDocumentOverflowList, e as PageVariantList };
|
|
1
|
+
export const PageVariantList = ['auto', 'fixed'];
|
|
2
|
+
export const PageDocumentOverflowList = ['hidden', 'auto'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBPage: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("
|
|
2
|
+
declare const DBPage: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../index.js").GlobalProps | keyof import("./model.js").DBPageDefaultProps> & import("./model.js").DBPageDefaultProps & import("../../index.js").GlobalProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBPage;
|