@db-ux/react-core-components 4.9.1 → 4.10.0-esm-f121fc3
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 +9 -2
- package/README.md +97 -35
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +102 -86
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/model.d.ts +1 -1
- package/dist/components/accordion/model.js +4 -2
- package/dist/components/accordion-item/accordion-item.d.ts +3 -2
- package/dist/components/accordion-item/accordion-item.js +89 -56
- package/dist/components/accordion-item/index.d.ts +1 -1
- package/dist/components/accordion-item/model.d.ts +5 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +72 -32
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/badge/model.js +12 -1
- package/dist/components/brand/brand.d.ts +1 -1
- package/dist/components/brand/brand.js +60 -13
- package/dist/components/brand/index.d.ts +1 -1
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +75 -21
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/button/model.js +13 -2
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.js +65 -15
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/card/model.js +8 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +163 -157
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/custom-button/custom-button.d.ts +1 -1
- package/dist/components/custom-button/custom-button.js +65 -10
- package/dist/components/custom-button/index.d.ts +1 -1
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-select/custom-select.d.ts +1 -1
- package/dist/components/custom-select/custom-select.js +509 -727
- package/dist/components/custom-select/index.d.ts +1 -1
- package/dist/components/custom-select/model.d.ts +3 -3
- package/dist/components/custom-select/model.js +8 -1
- package/dist/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -1
- package/dist/components/custom-select-dropdown/custom-select-dropdown.js +62 -11
- package/dist/components/custom-select-dropdown/index.d.ts +1 -1
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-dropdown/model.js +8 -1
- 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 +57 -10
- package/dist/components/custom-select-form-field/index.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-list/custom-select-list.d.ts +1 -1
- package/dist/components/custom-select-list/custom-select-list.js +60 -11
- package/dist/components/custom-select-list/index.d.ts +1 -1
- package/dist/components/custom-select-list/model.d.ts +1 -1
- 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 +89 -32
- package/dist/components/custom-select-list-item/index.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.js +4 -1
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.js +60 -10
- package/dist/components/divider/index.d.ts +1 -1
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/divider/model.js +4 -2
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.js +118 -97
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/model.d.ts +1 -1
- package/dist/components/drawer/model.js +14 -4
- package/dist/components/header/header.d.ts +1 -1
- package/dist/components/header/header.js +143 -65
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.js +61 -12
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/icon/model.js +11 -1
- package/dist/components/infotext/index.d.ts +1 -1
- package/dist/components/infotext/infotext.d.ts +1 -1
- package/dist/components/infotext/infotext.js +62 -12
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +198 -167
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/input/model.js +21 -5
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +70 -12
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/link/model.js +8 -3
- package/dist/components/navigation/index.d.ts +1 -1
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation/navigation.d.ts +1 -1
- package/dist/components/navigation/navigation.js +57 -11
- package/dist/components/navigation-item/index.d.ts +1 -1
- package/dist/components/navigation-item/model.d.ts +6 -2
- package/dist/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.js +117 -81
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/notification/model.js +12 -3
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/notification/notification.js +100 -32
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/model.js +4 -2
- package/dist/components/page/page.d.ts +1 -1
- package/dist/components/page/page.js +74 -46
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +126 -125
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +124 -85
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/section/section.d.ts +1 -1
- package/dist/components/section/section.js +59 -10
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +188 -191
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/model.js +14 -4
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +63 -10
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +182 -150
- package/dist/components/tab-item/index.d.ts +1 -1
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-item/tab-item.d.ts +1 -1
- package/dist/components/tab-item/tab-item.js +105 -76
- package/dist/components/tab-list/index.d.ts +1 -1
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-list/tab-list.d.ts +1 -1
- package/dist/components/tab-list/tab-list.js +60 -11
- package/dist/components/tab-panel/index.d.ts +1 -1
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.js +59 -13
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +1 -1
- package/dist/components/tabs/model.js +4 -2
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +191 -178
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/tag/model.js +4 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.js +91 -32
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/textarea/model.js +13 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +165 -150
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/model.js +4 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +119 -115
- package/dist/index.d.ts +26 -26
- package/dist/index.js +64 -81
- package/dist/shared/constants.js +32 -94
- package/dist/shared/figma.d.ts +12 -6
- package/dist/shared/model.js +73 -22
- package/dist/utils/document-click-listener.js +26 -29
- package/dist/utils/document-scroll-listener.js +30 -38
- package/dist/utils/floating-components.js +107 -358
- package/dist/utils/form-components.js +34 -60
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +49 -167
- package/dist/utils/navigation.js +68 -135
- package/dist/utils/react.js +10 -15
- package/package.json +13 -8
- package/dist/components/accordion/index.js +0 -1
- package/dist/components/accordion-item/index.js +0 -1
- package/dist/components/accordion-item/model.js +0 -1
- package/dist/components/badge/index.js +0 -1
- package/dist/components/brand/index.js +0 -1
- package/dist/components/brand/model.js +0 -1
- package/dist/components/button/index.js +0 -1
- package/dist/components/card/index.js +0 -1
- package/dist/components/checkbox/index.js +0 -1
- package/dist/components/checkbox/model.js +0 -1
- package/dist/components/custom-button/index.js +0 -1
- package/dist/components/custom-button/model.js +0 -1
- package/dist/components/custom-select/index.js +0 -1
- package/dist/components/custom-select-dropdown/index.js +0 -1
- package/dist/components/custom-select-form-field/index.js +0 -1
- package/dist/components/custom-select-form-field/model.js +0 -1
- package/dist/components/custom-select-list/index.js +0 -1
- package/dist/components/custom-select-list/model.js +0 -1
- package/dist/components/custom-select-list-item/index.js +0 -1
- package/dist/components/divider/index.js +0 -1
- package/dist/components/drawer/index.js +0 -1
- package/dist/components/header/index.js +0 -1
- package/dist/components/header/model.js +0 -1
- package/dist/components/icon/index.js +0 -1
- package/dist/components/infotext/index.js +0 -1
- package/dist/components/infotext/model.js +0 -1
- package/dist/components/input/index.js +0 -1
- package/dist/components/link/index.js +0 -1
- package/dist/components/navigation/index.js +0 -1
- package/dist/components/navigation/model.js +0 -1
- package/dist/components/navigation-item/index.js +0 -1
- package/dist/components/navigation-item/model.js +0 -1
- package/dist/components/notification/index.js +0 -1
- package/dist/components/page/index.js +0 -1
- package/dist/components/popover/index.js +0 -1
- package/dist/components/popover/model.js +0 -1
- package/dist/components/radio/index.js +0 -1
- package/dist/components/radio/model.js +0 -1
- package/dist/components/section/index.js +0 -1
- package/dist/components/section/model.js +0 -1
- package/dist/components/select/index.js +0 -1
- package/dist/components/select/model.js +0 -1
- package/dist/components/stack/index.js +0 -1
- package/dist/components/switch/index.js +0 -1
- package/dist/components/switch/model.js +0 -1
- package/dist/components/tab-item/index.js +0 -1
- package/dist/components/tab-item/model.js +0 -1
- package/dist/components/tab-list/index.js +0 -1
- package/dist/components/tab-list/model.js +0 -1
- package/dist/components/tab-panel/index.js +0 -1
- package/dist/components/tab-panel/model.js +0 -1
- package/dist/components/tabs/index.js +0 -1
- package/dist/components/tag/index.js +0 -1
- package/dist/components/textarea/index.js +0 -1
- package/dist/components/tooltip/index.js +0 -1
- package/dist/shared/examples/index.js +0 -4
- package/dist/shared/figma.js +0 -1
- package/dist/shared/showcase/show-code-link.js +0 -51
package/dist/shared/constants.js
CHANGED
|
@@ -1,94 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})(COLOR_SIMPLE || (COLOR_SIMPLE = {}));
|
|
34
|
-
export var COLOR;
|
|
35
|
-
(function (COLOR) {
|
|
36
|
-
COLOR["NEUTRAL_BG_LEVEL_1"] = "neutral-bg-basic-level-1";
|
|
37
|
-
COLOR["NEUTRAL_BG_LEVEL_2"] = "neutral-bg-basic-level-2";
|
|
38
|
-
COLOR["NEUTRAL_BG_LEVEL_3"] = "neutral-bg-basic-level-3";
|
|
39
|
-
COLOR["NEUTRAL_BG_TRANSPARENT_SEMI"] = "neutral-bg-basic-transparent-semi";
|
|
40
|
-
COLOR["NEUTRAL_BG_TRANSPARENT_FULL"] = "neutral-bg-basic-transparent-full";
|
|
41
|
-
COLOR["BRAND_BG_LEVEL_1"] = "brand-bg-basic-level-1";
|
|
42
|
-
COLOR["BRAND_BG_LEVEL_2"] = "brand-bg-basic-level-2";
|
|
43
|
-
COLOR["BRAND_BG_LEVEL_3"] = "brand-bg-basic-level-3";
|
|
44
|
-
COLOR["BRAND_BG_TRANSPARENT_SEMI"] = "brand-bg-basic-transparent-semi";
|
|
45
|
-
COLOR["BRAND_BG_TRANSPARENT_FULL"] = "brand-bg-basic-transparent-full";
|
|
46
|
-
COLOR["SUCCESSFUL_BG_LEVEL_1"] = "successful-bg-basic-level-1";
|
|
47
|
-
COLOR["SUCCESSFUL_BG_LEVEL_2"] = "successful-bg-basic-level-2";
|
|
48
|
-
COLOR["SUCCESSFUL_BG_LEVEL_3"] = "successful-bg-basic-level-3";
|
|
49
|
-
COLOR["SUCCESSFUL_BG_TRANSPARENT_SEMI"] = "successful-bg-basic-transparent-semi";
|
|
50
|
-
COLOR["SUCCESSFUL_BG_TRANSPARENT_FULL"] = "successful-bg-basic-transparent-full";
|
|
51
|
-
COLOR["CRITICAL_BG_LEVEL_1"] = "critical-bg-basic-level-1";
|
|
52
|
-
COLOR["CRITICAL_BG_LEVEL_2"] = "critical-bg-basic-level-2";
|
|
53
|
-
COLOR["CRITICAL_BG_LEVEL_3"] = "critical-bg-basic-level-3";
|
|
54
|
-
COLOR["CRITICAL_BG_TRANSPARENT_SEMI"] = "critical-bg-basic-transparent-semi";
|
|
55
|
-
COLOR["CRITICAL_BG_TRANSPARENT_Full"] = "critical-bg-basic-transparent-full";
|
|
56
|
-
COLOR["WARNING_BG_LEVEL_1"] = "warning-bg-basic-level-1";
|
|
57
|
-
COLOR["WARNING_BG_LEVEL_2"] = "warning-bg-basic-level-2";
|
|
58
|
-
COLOR["WARNING_BG_LEVEL_3"] = "warning-bg-basic-level-3";
|
|
59
|
-
COLOR["WARNING_BG_TRANSPARENT_SEMI"] = "warning-bg-basic-transparent-semi";
|
|
60
|
-
COLOR["WARNING_BG_TRANSPARENT_FULL"] = "warning-bg-basic-transparent-full";
|
|
61
|
-
COLOR["INFORMATIONAL_BG_LEVEL_1"] = "informational-bg-basic-level-1";
|
|
62
|
-
COLOR["INFORMATIONAL_BG_LEVEL_2"] = "informational-bg-basic-level-2";
|
|
63
|
-
COLOR["INFORMATIONAL_BG_LEVEL_3"] = "informational-bg-basic-level-3";
|
|
64
|
-
COLOR["INFORMATIONAL_BG_TRANSPARENT_SEMI"] = "informational-bg-basic-transparent-semi";
|
|
65
|
-
COLOR["INFORMATIONAL_BG_TRANSPARENT_FULL"] = "informational-bg-basic-transparent-full";
|
|
66
|
-
})(COLOR || (COLOR = {}));
|
|
67
|
-
export const COLORS = Object.entries(COLOR).map(([, value]) => value);
|
|
68
|
-
export const COLORS_SIMPLE = Object.entries(COLOR_SIMPLE).map(([, value]) => value);
|
|
69
|
-
export var SEMANTIC;
|
|
70
|
-
(function (SEMANTIC) {
|
|
71
|
-
SEMANTIC["CRITICAL"] = "critical";
|
|
72
|
-
SEMANTIC["INFORMATIONAL"] = "informational";
|
|
73
|
-
SEMANTIC["WARNING"] = "warning";
|
|
74
|
-
SEMANTIC["SUCCESSFUL"] = "successful";
|
|
75
|
-
})(SEMANTIC || (SEMANTIC = {}));
|
|
76
|
-
export const SEMANTICS = Object.entries(SEMANTIC).map(([, value]) => value);
|
|
77
|
-
export const DEFAULT_VIEWPORT = {
|
|
78
|
-
width: 390,
|
|
79
|
-
height: 884
|
|
80
|
-
};
|
|
81
|
-
export const DESKTOP_VIEWPORT = {
|
|
82
|
-
width: 1920,
|
|
83
|
-
height: 1280
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Use those viewports if your component has a css media-query otherwise use the DEFAULT_VIEWPORT
|
|
87
|
-
*/
|
|
88
|
-
export const TESTING_VIEWPORTS = [Object.assign({ name: 'desktop' }, DESKTOP_VIEWPORT), {
|
|
89
|
-
name: 'tablet',
|
|
90
|
-
width: 768,
|
|
91
|
-
height: 1024
|
|
92
|
-
}, Object.assign({ name: 'mobile' }, DEFAULT_VIEWPORT)];
|
|
93
|
-
export const DB_UX_LOCAL_STORAGE_FRAMEWORK = 'db-ux-framework';
|
|
94
|
-
export const DB_UX_LOCAL_STORAGE_MODE = 'db-ux-mode';
|
|
1
|
+
//#region src/shared/constants.ts
|
|
2
|
+
var e = "OVERWRITE_DEFAULT_ID", t = "LABEL SHOULD BE SET", n = " ", r = "MESSAGE SHOULD BE SET", i = "-label", a = "-select", o = "-message", s = "-valid-message", c = "-invalid-message", l = "-placeholder", u = "-datalist", d = "TODO: Add a validMessage", f = "TODO: Add an invalidMessage", p = "Remove", m = "Back", h = "Selected", g = "BurgerMenu", _ = "brand", v = 4, y = "Close", b = "density", x = "color", S = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e;
|
|
4
|
+
}({}), C = Object.entries(S).map(([, e]) => e), w = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.PRIMARY = "primary", e;
|
|
6
|
+
}({}), T = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e;
|
|
8
|
+
}({}), E = Object.entries(T).map(([, e]) => e), D = Object.entries(w).map(([, e]) => e), O = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e;
|
|
10
|
+
}({}), k = Object.entries(O).map(([, e]) => e), A = {
|
|
11
|
+
width: 390,
|
|
12
|
+
height: 884
|
|
13
|
+
}, j = {
|
|
14
|
+
width: 1920,
|
|
15
|
+
height: 1280
|
|
16
|
+
}, M = [
|
|
17
|
+
{
|
|
18
|
+
name: "desktop",
|
|
19
|
+
...j
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "tablet",
|
|
23
|
+
width: 768,
|
|
24
|
+
height: 1024
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "mobile",
|
|
28
|
+
...A
|
|
29
|
+
}
|
|
30
|
+
], N = "db-ux-framework", P = "db-ux-mode";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { T as COLOR, E as COLORS, D as COLORS_SIMPLE, x as COLOR_CONST, w as COLOR_SIMPLE, N as DB_UX_LOCAL_STORAGE_FRAMEWORK, P as DB_UX_LOCAL_STORAGE_MODE, m as DEFAULT_BACK, g as DEFAULT_BURGER_MENU, y as DEFAULT_CLOSE_BUTTON, u as DEFAULT_DATALIST_ID_SUFFIX, _ as DEFAULT_ICON, e as DEFAULT_ID, f as DEFAULT_INVALID_MESSAGE, c as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, t as DEFAULT_LABEL, i as DEFAULT_LABEL_ID_SUFFIX, r as DEFAULT_MESSAGE, o as DEFAULT_MESSAGE_ID_SUFFIX, n as DEFAULT_PLACEHOLDER, l as DEFAULT_PLACEHOLDER_ID_SUFFIX, p as DEFAULT_REMOVE, v as DEFAULT_ROWS, h as DEFAULT_SELECTED, a as DEFAULT_SELECT_ID_SUFFIX, d as DEFAULT_VALID_MESSAGE, s as DEFAULT_VALID_MESSAGE_ID_SUFFIX, A as DEFAULT_VIEWPORT, C as DENSITIES, S as DENSITY, b as DENSITY_CONST, j as DESKTOP_VIEWPORT, O as SEMANTIC, k as SEMANTICS, M as TESTING_VIEWPORTS };
|
package/dist/shared/figma.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ export type FigmaEnumProp = {
|
|
|
12
12
|
key: string;
|
|
13
13
|
/** Map of Figma variant value → code value. Values can be strings, booleans, numbers, or instance swaps. */
|
|
14
14
|
value: Record<string, string | boolean | number | FigmaInstanceProp>;
|
|
15
|
+
/**
|
|
16
|
+
* Optional Figma boolean property key that guards this prop.
|
|
17
|
+
* When set, the resolved value is only emitted if getPropertyValue(guardKey) === 'True'.
|
|
18
|
+
* Useful for icon swaps that are only present when a show-flag is enabled.
|
|
19
|
+
*/
|
|
20
|
+
guardKey?: string;
|
|
15
21
|
};
|
|
16
22
|
/** A simple scalar prop. */
|
|
17
23
|
export type FigmaSimpleProp = {
|
|
@@ -86,19 +92,19 @@ export type FigmaConnectedInstancesProp = {
|
|
|
86
92
|
*/
|
|
87
93
|
export type FigmaNestedConnectedInstancesProp = {
|
|
88
94
|
type: 'nestedConnectedInstances';
|
|
89
|
-
/** Import string to filter by (e.g. 'DBAccordionItem'). Only instances whose template nestedImports contain this string are included. */
|
|
90
|
-
filter
|
|
95
|
+
/** Import string to filter by (e.g. 'DBAccordionItem'). Only instances whose template nestedImports contain this string are included. When omitted, all connected instances are included. */
|
|
96
|
+
filter?: string;
|
|
91
97
|
};
|
|
92
98
|
/**
|
|
93
|
-
* Wraps an iconSwap prop so it is only rendered when a boolean
|
|
94
|
-
* Generates: let icon = ''; if (
|
|
99
|
+
* Wraps an iconSwap prop so it is only rendered when a boolean Figma property is enabled.
|
|
100
|
+
* Generates: let icon = ''; if (getPropertyValue(guardKey) === true || getPropertyValue(guardKey) === 'True') { icon = `\n\t\ticon="${iconLeading}"` }
|
|
95
101
|
*/
|
|
96
102
|
export type FigmaConditionalProp = {
|
|
97
103
|
type: 'conditionalProp';
|
|
98
104
|
/** The Figma property key of the icon instance swap. */
|
|
99
105
|
key: string;
|
|
100
|
-
/** The
|
|
101
|
-
|
|
106
|
+
/** The Figma boolean property key that guards this prop (e.g. 'Show Icon Leading'). */
|
|
107
|
+
guardKey: string;
|
|
102
108
|
/** The attribute name to render (e.g. 'icon'). */
|
|
103
109
|
attrName: string;
|
|
104
110
|
};
|
package/dist/shared/model.js
CHANGED
|
@@ -1,22 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
//#region src/shared/model.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"adaptive",
|
|
4
|
+
"neutral",
|
|
5
|
+
"critical",
|
|
6
|
+
"informational",
|
|
7
|
+
"warning",
|
|
8
|
+
"successful"
|
|
9
|
+
], t = [
|
|
10
|
+
"medium",
|
|
11
|
+
"small",
|
|
12
|
+
"large",
|
|
13
|
+
"none"
|
|
14
|
+
], n = [
|
|
15
|
+
"medium",
|
|
16
|
+
"small",
|
|
17
|
+
"large",
|
|
18
|
+
"none"
|
|
19
|
+
], r = [
|
|
20
|
+
"left",
|
|
21
|
+
"right",
|
|
22
|
+
"left-start",
|
|
23
|
+
"left-end",
|
|
24
|
+
"right-start",
|
|
25
|
+
"right-end"
|
|
26
|
+
], i = [
|
|
27
|
+
"top",
|
|
28
|
+
"bottom",
|
|
29
|
+
"top-start",
|
|
30
|
+
"top-end",
|
|
31
|
+
"bottom-start",
|
|
32
|
+
"bottom-end"
|
|
33
|
+
], a = [...r, ...i], o = [
|
|
34
|
+
"none",
|
|
35
|
+
"3x-large",
|
|
36
|
+
"2x-large",
|
|
37
|
+
"x-large",
|
|
38
|
+
"large",
|
|
39
|
+
"medium",
|
|
40
|
+
"small",
|
|
41
|
+
"x-small",
|
|
42
|
+
"2x-small",
|
|
43
|
+
"3x-small"
|
|
44
|
+
], s = ["horizontal", "vertical"], c = ["full", "auto"], l = [
|
|
45
|
+
"full",
|
|
46
|
+
"medium",
|
|
47
|
+
"large",
|
|
48
|
+
"small"
|
|
49
|
+
], u = [
|
|
50
|
+
"none",
|
|
51
|
+
"slow",
|
|
52
|
+
"fast"
|
|
53
|
+
], d = ["auto", "fixed"], f = ["small", "medium"], p = ["weak", "strong"], m = [
|
|
54
|
+
"invalid",
|
|
55
|
+
"valid",
|
|
56
|
+
"no-validation"
|
|
57
|
+
], h = ["fixed", "content"], g = ["above", "floating"], _ = ["leading", "trailing"], v = /* @__PURE__ */ "off.on.name.honorific-prefix.given-name.additional-name.family-name.honorific-suffix.nickname.email.username.new-password.current-password.one-time-code.organization-title.organization.street-address.shipping.billing.address-line1.address-line2.address-line3.address-level4.address-level3.address-level2.address-level1.country.country-name.postal-code.cc-name.cc-given-name.cc-additional-name.cc-family-name.cc-number.cc-exp.cc-exp-month.cc-exp-year.cc-csc.cc-type.transaction-currency.transaction-amount.language.bday.bday-day.bday-month.bday-year.sex.tel.tel-country-code.tel-national.tel-area-code.tel-local.tel-extension.impp.url.photo.webauthn".split("."), y = [
|
|
58
|
+
"_self",
|
|
59
|
+
"_blank",
|
|
60
|
+
"_parent",
|
|
61
|
+
"_top"
|
|
62
|
+
], b = [
|
|
63
|
+
"no-referrer",
|
|
64
|
+
"no-referrer-when-downgrade",
|
|
65
|
+
"origin",
|
|
66
|
+
"origin-when-cross-origin",
|
|
67
|
+
"same-origin",
|
|
68
|
+
"strict-origin",
|
|
69
|
+
"strict-origin-when-cross-origin",
|
|
70
|
+
"unsafe-url"
|
|
71
|
+
], x = ["start", "center"];
|
|
72
|
+
//#endregion
|
|
73
|
+
export { x as AlignmentList, v as AutoCompleteList, p as EmphasisList, h as FieldSizingList, o as GapSpacingList, _ as LabelVariantHorizontalList, g as LabelVariantList, b as LinkReferrerPolicyList, y as LinkTargetList, n as MarginList, l as MaxWidthList, s as OrientationList, r as PlacementHorizontalList, a as PlacementList, i as PlacementVerticalList, u as PopoverDelayList, d as PopoverWidthList, e as SemanticList, f as SizeList, t as SpacingList, m as ValidationList, c as WidthList };
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import { uuid } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
DocumentClickListener.callbacks = {};
|
|
29
|
-
DocumentClickListener._instance = null;
|
|
1
|
+
import { uuid as e } from "./index.js";
|
|
2
|
+
//#region src/utils/document-click-listener.ts
|
|
3
|
+
var t = class t {
|
|
4
|
+
static {
|
|
5
|
+
this.callbacks = {};
|
|
6
|
+
}
|
|
7
|
+
static {
|
|
8
|
+
this._instance = null;
|
|
9
|
+
}
|
|
10
|
+
static runCallbacks(e) {
|
|
11
|
+
for (let n of Object.values(t.callbacks)) typeof n == "function" && n(e);
|
|
12
|
+
}
|
|
13
|
+
constructor() {
|
|
14
|
+
if (t._instance) return t._instance;
|
|
15
|
+
t._instance = this, self.document && self.document.addEventListener("click", (e) => t.runCallbacks(e));
|
|
16
|
+
}
|
|
17
|
+
addCallback(n) {
|
|
18
|
+
let r = e();
|
|
19
|
+
return t.callbacks[r] = n, r;
|
|
20
|
+
}
|
|
21
|
+
removeCallback(e) {
|
|
22
|
+
delete t.callbacks[e];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { t as DocumentClickListener };
|
|
@@ -1,38 +1,30 @@
|
|
|
1
|
-
import { uuid } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return callbackID;
|
|
32
|
-
}
|
|
33
|
-
removeCallback(id) {
|
|
34
|
-
delete DocumentScrollListener.callbacks[id];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
DocumentScrollListener.callbacks = {};
|
|
38
|
-
DocumentScrollListener._instance = null;
|
|
1
|
+
import { uuid as e } from "./index.js";
|
|
2
|
+
//#region src/utils/document-scroll-listener.ts
|
|
3
|
+
var t = class t {
|
|
4
|
+
static {
|
|
5
|
+
this.callbacks = {};
|
|
6
|
+
}
|
|
7
|
+
static {
|
|
8
|
+
this._instance = null;
|
|
9
|
+
}
|
|
10
|
+
static runCallbacks(e) {
|
|
11
|
+
for (let n of Object.values(t.callbacks)) typeof n == "function" && n(e);
|
|
12
|
+
}
|
|
13
|
+
constructor() {
|
|
14
|
+
if (this.ticking = !1, t._instance) return t._instance;
|
|
15
|
+
t._instance = this, self.document && self.document.addEventListener("scroll", (e) => {
|
|
16
|
+
this.ticking ||= (window.requestAnimationFrame(() => {
|
|
17
|
+
t.runCallbacks(e), this.ticking = !1;
|
|
18
|
+
}), !0);
|
|
19
|
+
}, !0);
|
|
20
|
+
}
|
|
21
|
+
addCallback(n) {
|
|
22
|
+
let r = e();
|
|
23
|
+
return t.callbacks[r] = n, r;
|
|
24
|
+
}
|
|
25
|
+
removeCallback(e) {
|
|
26
|
+
delete t.callbacks[e];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as DocumentScrollListener };
|