@db-ux/wc-core-components 1.0.0-test-13b991d
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/README.md +92 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/constants-89822e5f.js +116 -0
- package/dist/cjs/constants-89822e5f.js.map +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +73 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/db-accordion.cjs.entry.js +130 -0
- package/dist/cjs/db-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/db-badge.cjs.entry.js +75 -0
- package/dist/cjs/db-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/db-brand.cjs.entry.js +58 -0
- package/dist/cjs/db-brand.cjs.entry.js.map +1 -0
- package/dist/cjs/db-button.cjs.entry.js +62 -0
- package/dist/cjs/db-button.cjs.entry.js.map +1 -0
- package/dist/cjs/db-card.cjs.entry.js +62 -0
- package/dist/cjs/db-card.cjs.entry.js.map +1 -0
- package/dist/cjs/db-checkbox.cjs.entry.js +149 -0
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/db-divider.cjs.entry.js +56 -0
- package/dist/cjs/db-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/db-drawer.cjs.entry.js +108 -0
- package/dist/cjs/db-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/db-header.cjs.entry.js +89 -0
- package/dist/cjs/db-header.cjs.entry.js.map +1 -0
- package/dist/cjs/db-icon.cjs.entry.js +56 -0
- package/dist/cjs/db-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/db-infotext.cjs.entry.js +57 -0
- package/dist/cjs/db-infotext.cjs.entry.js.map +1 -0
- package/dist/cjs/db-input.cjs.entry.js +157 -0
- package/dist/cjs/db-input.cjs.entry.js.map +1 -0
- package/dist/cjs/db-link.cjs.entry.js +63 -0
- package/dist/cjs/db-link.cjs.entry.js.map +1 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +102 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/db-navigation.cjs.entry.js +59 -0
- package/dist/cjs/db-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/db-notification.cjs.entry.js +64 -0
- package/dist/cjs/db-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/db-page.cjs.entry.js +73 -0
- package/dist/cjs/db-page.cjs.entry.js.map +1 -0
- package/dist/cjs/db-popover.cjs.entry.js +113 -0
- package/dist/cjs/db-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/db-radio.cjs.entry.js +98 -0
- package/dist/cjs/db-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/db-section.cjs.entry.js +59 -0
- package/dist/cjs/db-section.cjs.entry.js.map +1 -0
- package/dist/cjs/db-select.cjs.entry.js +170 -0
- package/dist/cjs/db-select.cjs.entry.js.map +1 -0
- package/dist/cjs/db-stack.cjs.entry.js +56 -0
- package/dist/cjs/db-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/db-switch.cjs.entry.js +91 -0
- package/dist/cjs/db-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tab-item_3.cjs.entry.js +175 -0
- package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tabs.cjs.entry.js +173 -0
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tag.cjs.entry.js +83 -0
- package/dist/cjs/db-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/db-textarea.cjs.entry.js +144 -0
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/db-tooltip.cjs.entry.js +86 -0
- package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/db-ux.cjs.js +27 -0
- package/dist/cjs/db-ux.cjs.js.map +1 -0
- package/dist/cjs/index-3d093f06.js +1496 -0
- package/dist/cjs/index-3d093f06.js.map +1 -0
- package/dist/cjs/index-c0df827d.js +169 -0
- package/dist/cjs/index-c0df827d.js.map +1 -0
- package/dist/cjs/index.cjs.js +118 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/navigation-bb2d5552.js +140 -0
- package/dist/cjs/navigation-bb2d5552.js.map +1 -0
- package/dist/collection/collection-manifest.json +42 -0
- package/dist/collection/components/accordion/accordion.js +311 -0
- package/dist/collection/components/accordion/accordion.js.map +1 -0
- package/dist/collection/components/accordion/index.js +3 -0
- package/dist/collection/components/accordion/index.js.map +1 -0
- package/dist/collection/components/accordion/model.js +3 -0
- package/dist/collection/components/accordion/model.js.map +1 -0
- package/dist/collection/components/accordion-item/accordion-item.js +246 -0
- package/dist/collection/components/accordion-item/accordion-item.js.map +1 -0
- package/dist/collection/components/accordion-item/index.js +3 -0
- package/dist/collection/components/accordion-item/index.js.map +1 -0
- package/dist/collection/components/accordion-item/model.js +2 -0
- package/dist/collection/components/accordion-item/model.js.map +1 -0
- package/dist/collection/components/badge/badge.js +280 -0
- package/dist/collection/components/badge/badge.js.map +1 -0
- package/dist/collection/components/badge/index.js +3 -0
- package/dist/collection/components/badge/index.js.map +1 -0
- package/dist/collection/components/badge/model.js +2 -0
- package/dist/collection/components/badge/model.js.map +1 -0
- package/dist/collection/components/brand/brand.js +206 -0
- package/dist/collection/components/brand/brand.js.map +1 -0
- package/dist/collection/components/brand/index.js +3 -0
- package/dist/collection/components/brand/index.js.map +1 -0
- package/dist/collection/components/brand/model.js +2 -0
- package/dist/collection/components/brand/model.js.map +1 -0
- package/dist/collection/components/button/button.js +527 -0
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/button/index.js +3 -0
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button/model.js +4 -0
- package/dist/collection/components/button/model.js.map +1 -0
- package/dist/collection/components/card/card.js +202 -0
- package/dist/collection/components/card/card.js.map +1 -0
- package/dist/collection/components/card/index.js +3 -0
- package/dist/collection/components/card/index.js.map +1 -0
- package/dist/collection/components/card/model.js +3 -0
- package/dist/collection/components/card/model.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +699 -0
- package/dist/collection/components/checkbox/checkbox.js.map +1 -0
- package/dist/collection/components/checkbox/index.js +3 -0
- package/dist/collection/components/checkbox/index.js.map +1 -0
- package/dist/collection/components/checkbox/model.js +2 -0
- package/dist/collection/components/checkbox/model.js.map +1 -0
- package/dist/collection/components/divider/divider.js +204 -0
- package/dist/collection/components/divider/divider.js.map +1 -0
- package/dist/collection/components/divider/index.js +3 -0
- package/dist/collection/components/divider/index.js.map +1 -0
- package/dist/collection/components/divider/model.js +3 -0
- package/dist/collection/components/divider/model.js.map +1 -0
- package/dist/collection/components/drawer/drawer.js +398 -0
- package/dist/collection/components/drawer/drawer.js.map +1 -0
- package/dist/collection/components/drawer/index.js +3 -0
- package/dist/collection/components/drawer/index.js.map +1 -0
- package/dist/collection/components/drawer/model.js +4 -0
- package/dist/collection/components/drawer/model.js.map +1 -0
- package/dist/collection/components/header/header.js +266 -0
- package/dist/collection/components/header/header.js.map +1 -0
- package/dist/collection/components/header/index.js +3 -0
- package/dist/collection/components/header/index.js.map +1 -0
- package/dist/collection/components/header/model.js +2 -0
- package/dist/collection/components/header/model.js.map +1 -0
- package/dist/collection/components/icon/icon.js +204 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/icon/index.js +3 -0
- package/dist/collection/components/icon/index.js.map +1 -0
- package/dist/collection/components/icon/model.js +3 -0
- package/dist/collection/components/icon/model.js.map +1 -0
- package/dist/collection/components/infotext/index.js +3 -0
- package/dist/collection/components/infotext/index.js.map +1 -0
- package/dist/collection/components/infotext/infotext.js +230 -0
- package/dist/collection/components/infotext/infotext.js.map +1 -0
- package/dist/collection/components/infotext/model.js +2 -0
- package/dist/collection/components/infotext/model.js.map +1 -0
- package/dist/collection/components/input/index.js +3 -0
- package/dist/collection/components/input/index.js.map +1 -0
- package/dist/collection/components/input/input.js +1118 -0
- package/dist/collection/components/input/input.js.map +1 -0
- package/dist/collection/components/input/model.js +6 -0
- package/dist/collection/components/input/model.js.map +1 -0
- package/dist/collection/components/link/index.js +3 -0
- package/dist/collection/components/link/index.js.map +1 -0
- package/dist/collection/components/link/link.js +478 -0
- package/dist/collection/components/link/link.js.map +1 -0
- package/dist/collection/components/link/model.js +4 -0
- package/dist/collection/components/link/model.js.map +1 -0
- package/dist/collection/components/navigation/index.js +3 -0
- package/dist/collection/components/navigation/index.js.map +1 -0
- package/dist/collection/components/navigation/model.js +2 -0
- package/dist/collection/components/navigation/model.js.map +1 -0
- package/dist/collection/components/navigation/navigation.js +139 -0
- package/dist/collection/components/navigation/navigation.js.map +1 -0
- package/dist/collection/components/navigation-item/index.js +3 -0
- package/dist/collection/components/navigation-item/index.js.map +1 -0
- package/dist/collection/components/navigation-item/model.js +2 -0
- package/dist/collection/components/navigation-item/model.js.map +1 -0
- package/dist/collection/components/navigation-item/navigation-item.js +404 -0
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -0
- package/dist/collection/components/notification/index.js +3 -0
- package/dist/collection/components/notification/index.js.map +1 -0
- package/dist/collection/components/notification/model.js +4 -0
- package/dist/collection/components/notification/model.js.map +1 -0
- package/dist/collection/components/notification/notification.js +480 -0
- package/dist/collection/components/notification/notification.js.map +1 -0
- package/dist/collection/components/page/index.js +3 -0
- package/dist/collection/components/page/index.js.map +1 -0
- package/dist/collection/components/page/model.js +3 -0
- package/dist/collection/components/page/model.js.map +1 -0
- package/dist/collection/components/page/page.js +204 -0
- package/dist/collection/components/page/page.js.map +1 -0
- package/dist/collection/components/popover/index.js +3 -0
- package/dist/collection/components/popover/index.js.map +1 -0
- package/dist/collection/components/popover/model.js +2 -0
- package/dist/collection/components/popover/model.js.map +1 -0
- package/dist/collection/components/popover/popover.js +344 -0
- package/dist/collection/components/popover/popover.js.map +1 -0
- package/dist/collection/components/radio/index.js +3 -0
- package/dist/collection/components/radio/index.js.map +1 -0
- package/dist/collection/components/radio/model.js +2 -0
- package/dist/collection/components/radio/model.js.map +1 -0
- package/dist/collection/components/radio/radio.js +518 -0
- package/dist/collection/components/radio/radio.js.map +1 -0
- package/dist/collection/components/section/index.js +3 -0
- package/dist/collection/components/section/index.js.map +1 -0
- package/dist/collection/components/section/model.js +2 -0
- package/dist/collection/components/section/model.js.map +1 -0
- package/dist/collection/components/section/section.js +164 -0
- package/dist/collection/components/section/section.js.map +1 -0
- package/dist/collection/components/select/index.js +3 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/select/model.js +2 -0
- package/dist/collection/components/select/model.js.map +1 -0
- package/dist/collection/components/select/select.js +846 -0
- package/dist/collection/components/select/select.js.map +1 -0
- package/dist/collection/components/stack/index.js +3 -0
- package/dist/collection/components/stack/index.js.map +1 -0
- package/dist/collection/components/stack/model.js +5 -0
- package/dist/collection/components/stack/model.js.map +1 -0
- package/dist/collection/components/stack/stack.js +254 -0
- package/dist/collection/components/stack/stack.js.map +1 -0
- package/dist/collection/components/switch/index.js +3 -0
- package/dist/collection/components/switch/index.js.map +1 -0
- package/dist/collection/components/switch/model.js +2 -0
- package/dist/collection/components/switch/model.js.map +1 -0
- package/dist/collection/components/switch/switch.js +587 -0
- package/dist/collection/components/switch/switch.js.map +1 -0
- package/dist/collection/components/tab-item/index.js +3 -0
- package/dist/collection/components/tab-item/index.js.map +1 -0
- package/dist/collection/components/tab-item/model.js +2 -0
- package/dist/collection/components/tab-item/model.js.map +1 -0
- package/dist/collection/components/tab-item/tab-item.js +399 -0
- package/dist/collection/components/tab-item/tab-item.js.map +1 -0
- package/dist/collection/components/tab-list/index.js +3 -0
- package/dist/collection/components/tab-list/index.js.map +1 -0
- package/dist/collection/components/tab-list/model.js +2 -0
- package/dist/collection/components/tab-list/model.js.map +1 -0
- package/dist/collection/components/tab-list/tab-list.js +114 -0
- package/dist/collection/components/tab-list/tab-list.js.map +1 -0
- package/dist/collection/components/tab-panel/index.js +3 -0
- package/dist/collection/components/tab-panel/index.js.map +1 -0
- package/dist/collection/components/tab-panel/model.js +2 -0
- package/dist/collection/components/tab-panel/model.js.map +1 -0
- package/dist/collection/components/tab-panel/tab-panel.js +154 -0
- package/dist/collection/components/tab-panel/tab-panel.js.map +1 -0
- package/dist/collection/components/tabs/index.js +3 -0
- package/dist/collection/components/tabs/index.js.map +1 -0
- package/dist/collection/components/tabs/model.js +3 -0
- package/dist/collection/components/tabs/model.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +458 -0
- package/dist/collection/components/tabs/tabs.js.map +1 -0
- package/dist/collection/components/tag/index.js +3 -0
- package/dist/collection/components/tag/index.js.map +1 -0
- package/dist/collection/components/tag/model.js +2 -0
- package/dist/collection/components/tag/model.js.map +1 -0
- package/dist/collection/components/tag/tag.js +430 -0
- package/dist/collection/components/tag/tag.js.map +1 -0
- package/dist/collection/components/textarea/index.js +3 -0
- package/dist/collection/components/textarea/index.js.map +1 -0
- package/dist/collection/components/textarea/model.js +3 -0
- package/dist/collection/components/textarea/model.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +956 -0
- package/dist/collection/components/textarea/textarea.js.map +1 -0
- package/dist/collection/components/tooltip/index.js +3 -0
- package/dist/collection/components/tooltip/index.js.map +1 -0
- package/dist/collection/components/tooltip/model.js +2 -0
- package/dist/collection/components/tooltip/model.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.js +292 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/index.js +37 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/shared/constants.js +88 -0
- package/dist/collection/shared/constants.js.map +1 -0
- package/dist/collection/shared/model.js +22 -0
- package/dist/collection/shared/model.js.map +1 -0
- package/dist/collection/utils/form-components.js +11 -0
- package/dist/collection/utils/form-components.js.map +1 -0
- package/dist/collection/utils/index.js +167 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/navigation.js +137 -0
- package/dist/collection/utils/navigation.js.map +1 -0
- package/dist/custom-elements.json +13474 -0
- package/dist/db-ux/db-ux.esm.js +2 -0
- package/dist/db-ux/db-ux.esm.js.map +1 -0
- package/dist/db-ux/index.esm.js +2 -0
- package/dist/db-ux/index.esm.js.map +1 -0
- package/dist/db-ux/p-031e9fbf.entry.js +2 -0
- package/dist/db-ux/p-031e9fbf.entry.js.map +1 -0
- package/dist/db-ux/p-08126c21.entry.js +2 -0
- package/dist/db-ux/p-08126c21.entry.js.map +1 -0
- package/dist/db-ux/p-1066cd52.entry.js +2 -0
- package/dist/db-ux/p-1066cd52.entry.js.map +1 -0
- package/dist/db-ux/p-10d30f53.entry.js +2 -0
- package/dist/db-ux/p-10d30f53.entry.js.map +1 -0
- package/dist/db-ux/p-1566cfef.entry.js +2 -0
- package/dist/db-ux/p-1566cfef.entry.js.map +1 -0
- package/dist/db-ux/p-1c12853c.entry.js +2 -0
- package/dist/db-ux/p-1c12853c.entry.js.map +1 -0
- package/dist/db-ux/p-1feee149.js +3 -0
- package/dist/db-ux/p-1feee149.js.map +1 -0
- package/dist/db-ux/p-2d32aa06.entry.js +2 -0
- package/dist/db-ux/p-2d32aa06.entry.js.map +1 -0
- package/dist/db-ux/p-2e318e2a.entry.js +2 -0
- package/dist/db-ux/p-2e318e2a.entry.js.map +1 -0
- package/dist/db-ux/p-34f88e4e.js +2 -0
- package/dist/db-ux/p-34f88e4e.js.map +1 -0
- package/dist/db-ux/p-3f2e2d87.entry.js +2 -0
- package/dist/db-ux/p-3f2e2d87.entry.js.map +1 -0
- package/dist/db-ux/p-43aa16d7.entry.js +2 -0
- package/dist/db-ux/p-43aa16d7.entry.js.map +1 -0
- package/dist/db-ux/p-5a689165.entry.js +2 -0
- package/dist/db-ux/p-5a689165.entry.js.map +1 -0
- package/dist/db-ux/p-683d690f.entry.js +2 -0
- package/dist/db-ux/p-683d690f.entry.js.map +1 -0
- package/dist/db-ux/p-6b6f1f7f.entry.js +2 -0
- package/dist/db-ux/p-6b6f1f7f.entry.js.map +1 -0
- package/dist/db-ux/p-6f645f17.entry.js +2 -0
- package/dist/db-ux/p-6f645f17.entry.js.map +1 -0
- package/dist/db-ux/p-71cb932e.entry.js +2 -0
- package/dist/db-ux/p-71cb932e.entry.js.map +1 -0
- package/dist/db-ux/p-78e5293a.entry.js +2 -0
- package/dist/db-ux/p-78e5293a.entry.js.map +1 -0
- package/dist/db-ux/p-79b43b42.entry.js +2 -0
- package/dist/db-ux/p-79b43b42.entry.js.map +1 -0
- package/dist/db-ux/p-79d9caa7.entry.js +2 -0
- package/dist/db-ux/p-79d9caa7.entry.js.map +1 -0
- package/dist/db-ux/p-871805e1.entry.js +2 -0
- package/dist/db-ux/p-871805e1.entry.js.map +1 -0
- package/dist/db-ux/p-8e2a086b.entry.js +2 -0
- package/dist/db-ux/p-8e2a086b.entry.js.map +1 -0
- package/dist/db-ux/p-99d90022.js +2 -0
- package/dist/db-ux/p-99d90022.js.map +1 -0
- package/dist/db-ux/p-a3be13fd.entry.js +2 -0
- package/dist/db-ux/p-a3be13fd.entry.js.map +1 -0
- package/dist/db-ux/p-a494046c.entry.js +2 -0
- package/dist/db-ux/p-a494046c.entry.js.map +1 -0
- package/dist/db-ux/p-ab8a1944.entry.js +2 -0
- package/dist/db-ux/p-ab8a1944.entry.js.map +1 -0
- package/dist/db-ux/p-af3834b6.js +2 -0
- package/dist/db-ux/p-af3834b6.js.map +1 -0
- package/dist/db-ux/p-b0f1a571.entry.js +2 -0
- package/dist/db-ux/p-b0f1a571.entry.js.map +1 -0
- package/dist/db-ux/p-b47af6eb.entry.js +2 -0
- package/dist/db-ux/p-b47af6eb.entry.js.map +1 -0
- package/dist/db-ux/p-c6d54dd4.entry.js +2 -0
- package/dist/db-ux/p-c6d54dd4.entry.js.map +1 -0
- package/dist/db-ux/p-d48f3770.entry.js +2 -0
- package/dist/db-ux/p-d48f3770.entry.js.map +1 -0
- package/dist/db-ux/p-e1255160.js +2 -0
- package/dist/db-ux/p-e1255160.js.map +1 -0
- package/dist/db-ux/p-f65f4eac.entry.js +2 -0
- package/dist/db-ux/p-f65f4eac.entry.js.map +1 -0
- package/dist/db-ux/p-fea6db86.entry.js +2 -0
- package/dist/db-ux/p-fea6db86.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/constants-745cf8d7.js +91 -0
- package/dist/esm/constants-745cf8d7.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +69 -0
- package/dist/esm/db-accordion-item.entry.js.map +1 -0
- package/dist/esm/db-accordion.entry.js +126 -0
- package/dist/esm/db-accordion.entry.js.map +1 -0
- package/dist/esm/db-badge.entry.js +71 -0
- package/dist/esm/db-badge.entry.js.map +1 -0
- package/dist/esm/db-brand.entry.js +54 -0
- package/dist/esm/db-brand.entry.js.map +1 -0
- package/dist/esm/db-button.entry.js +58 -0
- package/dist/esm/db-button.entry.js.map +1 -0
- package/dist/esm/db-card.entry.js +58 -0
- package/dist/esm/db-card.entry.js.map +1 -0
- package/dist/esm/db-checkbox.entry.js +145 -0
- package/dist/esm/db-checkbox.entry.js.map +1 -0
- package/dist/esm/db-divider.entry.js +52 -0
- package/dist/esm/db-divider.entry.js.map +1 -0
- package/dist/esm/db-drawer.entry.js +104 -0
- package/dist/esm/db-drawer.entry.js.map +1 -0
- package/dist/esm/db-header.entry.js +85 -0
- package/dist/esm/db-header.entry.js.map +1 -0
- package/dist/esm/db-icon.entry.js +52 -0
- package/dist/esm/db-icon.entry.js.map +1 -0
- package/dist/esm/db-infotext.entry.js +53 -0
- package/dist/esm/db-infotext.entry.js.map +1 -0
- package/dist/esm/db-input.entry.js +153 -0
- package/dist/esm/db-input.entry.js.map +1 -0
- package/dist/esm/db-link.entry.js +59 -0
- package/dist/esm/db-link.entry.js.map +1 -0
- package/dist/esm/db-navigation-item.entry.js +98 -0
- package/dist/esm/db-navigation-item.entry.js.map +1 -0
- package/dist/esm/db-navigation.entry.js +55 -0
- package/dist/esm/db-navigation.entry.js.map +1 -0
- package/dist/esm/db-notification.entry.js +60 -0
- package/dist/esm/db-notification.entry.js.map +1 -0
- package/dist/esm/db-page.entry.js +69 -0
- package/dist/esm/db-page.entry.js.map +1 -0
- package/dist/esm/db-popover.entry.js +109 -0
- package/dist/esm/db-popover.entry.js.map +1 -0
- package/dist/esm/db-radio.entry.js +94 -0
- package/dist/esm/db-radio.entry.js.map +1 -0
- package/dist/esm/db-section.entry.js +55 -0
- package/dist/esm/db-section.entry.js.map +1 -0
- package/dist/esm/db-select.entry.js +166 -0
- package/dist/esm/db-select.entry.js.map +1 -0
- package/dist/esm/db-stack.entry.js +52 -0
- package/dist/esm/db-stack.entry.js.map +1 -0
- package/dist/esm/db-switch.entry.js +87 -0
- package/dist/esm/db-switch.entry.js.map +1 -0
- package/dist/esm/db-tab-item_3.entry.js +169 -0
- package/dist/esm/db-tab-item_3.entry.js.map +1 -0
- package/dist/esm/db-tabs.entry.js +169 -0
- package/dist/esm/db-tabs.entry.js.map +1 -0
- package/dist/esm/db-tag.entry.js +79 -0
- package/dist/esm/db-tag.entry.js.map +1 -0
- package/dist/esm/db-textarea.entry.js +140 -0
- package/dist/esm/db-textarea.entry.js.map +1 -0
- package/dist/esm/db-tooltip.entry.js +82 -0
- package/dist/esm/db-tooltip.entry.js.map +1 -0
- package/dist/esm/db-ux.js +22 -0
- package/dist/esm/db-ux.js.map +1 -0
- package/dist/esm/index-5be50117.js +1468 -0
- package/dist/esm/index-5be50117.js.map +1 -0
- package/dist/esm/index-fad99efc.js +153 -0
- package/dist/esm/index-fad99efc.js.map +1 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/navigation-9fec9921.js +137 -0
- package/dist/esm/navigation-9fec9921.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/components/accordion/accordion.d.ts +29 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/accordion/model.d.ts +41 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +27 -0
- package/dist/types/components/accordion-item/index.d.ts +2 -0
- package/dist/types/components/accordion-item/model.d.ts +24 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/index.d.ts +2 -0
- package/dist/types/components/badge/model.d.ts +16 -0
- package/dist/types/components/brand/brand.d.ts +22 -0
- package/dist/types/components/brand/index.d.ts +2 -0
- package/dist/types/components/brand/model.d.ts +10 -0
- package/dist/types/components/button/button.d.ts +37 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +52 -0
- package/dist/types/components/card/card.d.ts +24 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/card/model.d.ts +18 -0
- package/dist/types/components/checkbox/checkbox.d.ts +51 -0
- package/dist/types/components/checkbox/index.d.ts +2 -0
- package/dist/types/components/checkbox/model.d.ts +10 -0
- package/dist/types/components/divider/divider.d.ts +22 -0
- package/dist/types/components/divider/index.d.ts +2 -0
- package/dist/types/components/divider/model.d.ts +18 -0
- package/dist/types/components/drawer/drawer.d.ts +32 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/drawer/model.d.ts +41 -0
- package/dist/types/components/header/header.d.ts +32 -0
- package/dist/types/components/header/index.d.ts +2 -0
- package/dist/types/components/header/model.d.ts +44 -0
- package/dist/types/components/icon/icon.d.ts +22 -0
- package/dist/types/components/icon/index.d.ts +2 -0
- package/dist/types/components/icon/model.d.ts +12 -0
- package/dist/types/components/infotext/index.d.ts +2 -0
- package/dist/types/components/infotext/infotext.d.ts +23 -0
- package/dist/types/components/infotext/model.d.ts +5 -0
- package/dist/types/components/input/index.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +71 -0
- package/dist/types/components/input/model.d.ts +39 -0
- package/dist/types/components/link/index.d.ts +2 -0
- package/dist/types/components/link/link.d.ts +35 -0
- package/dist/types/components/link/model.d.ts +24 -0
- package/dist/types/components/navigation/index.d.ts +2 -0
- package/dist/types/components/navigation/model.d.ts +5 -0
- package/dist/types/components/navigation/navigation.d.ts +20 -0
- package/dist/types/components/navigation-item/index.d.ts +2 -0
- package/dist/types/components/navigation-item/model.d.ts +34 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +39 -0
- package/dist/types/components/notification/index.d.ts +2 -0
- package/dist/types/components/notification/model.d.ts +57 -0
- package/dist/types/components/notification/notification.d.ts +36 -0
- package/dist/types/components/page/index.d.ts +2 -0
- package/dist/types/components/page/model.d.ts +32 -0
- package/dist/types/components/page/page.d.ts +24 -0
- package/dist/types/components/popover/index.d.ts +2 -0
- package/dist/types/components/popover/model.d.ts +18 -0
- package/dist/types/components/popover/popover.d.ts +31 -0
- package/dist/types/components/radio/index.d.ts +2 -0
- package/dist/types/components/radio/model.d.ts +7 -0
- package/dist/types/components/radio/radio.d.ts +41 -0
- package/dist/types/components/section/index.d.ts +2 -0
- package/dist/types/components/section/model.d.ts +5 -0
- package/dist/types/components/section/section.d.ts +21 -0
- package/dist/types/components/select/index.d.ts +2 -0
- package/dist/types/components/select/model.d.ts +43 -0
- package/dist/types/components/select/select.d.ts +62 -0
- package/dist/types/components/stack/index.d.ts +2 -0
- package/dist/types/components/stack/model.d.ts +34 -0
- package/dist/types/components/stack/stack.d.ts +24 -0
- package/dist/types/components/switch/index.d.ts +2 -0
- package/dist/types/components/switch/model.d.ts +12 -0
- package/dist/types/components/switch/switch.d.ts +44 -0
- package/dist/types/components/tab-item/index.d.ts +2 -0
- package/dist/types/components/tab-item/model.d.ts +24 -0
- package/dist/types/components/tab-item/tab-item.d.ts +34 -0
- package/dist/types/components/tab-list/index.d.ts +2 -0
- package/dist/types/components/tab-list/model.d.ts +5 -0
- package/dist/types/components/tab-list/tab-list.d.ts +19 -0
- package/dist/types/components/tab-panel/index.d.ts +2 -0
- package/dist/types/components/tab-panel/model.d.ts +10 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +20 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/model.d.ts +47 -0
- package/dist/types/components/tabs/tabs.d.ts +39 -0
- package/dist/types/components/tag/index.d.ts +2 -0
- package/dist/types/components/tag/model.d.ts +45 -0
- package/dist/types/components/tag/tag.d.ts +34 -0
- package/dist/types/components/textarea/index.d.ts +2 -0
- package/dist/types/components/textarea/model.d.ts +30 -0
- package/dist/types/components/textarea/textarea.d.ts +63 -0
- package/dist/types/components/tooltip/index.d.ts +2 -0
- package/dist/types/components/tooltip/model.d.ts +7 -0
- package/dist/types/components/tooltip/tooltip.d.ts +30 -0
- package/dist/types/components.d.ts +1479 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/shared/constants.d.ts +83 -0
- package/dist/types/shared/model.d.ts +445 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/utils/form-components.d.ts +2 -0
- package/dist/types/utils/index.d.ts +61 -0
- package/dist/types/utils/navigation.d.ts +32 -0
- package/dist/vscode.html-custom-data.json +2245 -0
- package/dist/web-types.json +3991 -0
- package/package.json +48 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { cls } from "../../utils";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
|
+
/**
|
|
4
|
+
* @slot children - This is a default/unnamed slot
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
export class DBCard {
|
|
8
|
+
handleClick(event) {
|
|
9
|
+
if (this.onClick) {
|
|
10
|
+
this.onClick.emit(event);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
15
|
+
* @param element the ref for the component
|
|
16
|
+
* @param customElementSelector the custom element like `my-component`
|
|
17
|
+
*/
|
|
18
|
+
enableAttributePassing(element, customElementSelector) {
|
|
19
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
20
|
+
if (element && parent) {
|
|
21
|
+
const attributes = parent.attributes;
|
|
22
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
23
|
+
const attr = attributes.item(i);
|
|
24
|
+
if (attr &&
|
|
25
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
26
|
+
element.setAttribute(attr.name, attr.value);
|
|
27
|
+
parent.removeAttribute(attr.name);
|
|
28
|
+
}
|
|
29
|
+
if (attr && attr.name === "class") {
|
|
30
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
31
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
32
|
+
const currentClass = element.getAttribute("class");
|
|
33
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
34
|
+
if (isWebComponent) {
|
|
35
|
+
// Stencil is using this class for lazy loading component
|
|
36
|
+
parent.setAttribute("class", "hydrated");
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
parent.removeAttribute(attr.name);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
this.enableAttributePassing(this._ref, "db-card");
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return (h("div", { key: 'ccbc53820799b727bdf095528da4bf4c7fdf1129', class: cls("db-card", this.className), ref: (el) => {
|
|
50
|
+
this._ref = el;
|
|
51
|
+
}, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, role: this.behavior === "interactive" ? "button" : undefined, tabIndex: this.behavior === "interactive" ? 0 : undefined, onClick: (event) => this.handleClick(event) }, h("slot", { key: '8afa05261ef6931eceecfd55694c8dc06d78f7a3' })));
|
|
52
|
+
}
|
|
53
|
+
static get is() { return "db-card"; }
|
|
54
|
+
static get properties() {
|
|
55
|
+
return {
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "DBCardProps[\"id\"]",
|
|
61
|
+
"resolved": "string",
|
|
62
|
+
"references": {
|
|
63
|
+
"DBCardProps": {
|
|
64
|
+
"location": "import",
|
|
65
|
+
"path": "./model",
|
|
66
|
+
"id": "src/components/card/model.ts::DBCardProps"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": ""
|
|
75
|
+
},
|
|
76
|
+
"getter": false,
|
|
77
|
+
"setter": false,
|
|
78
|
+
"attribute": "id",
|
|
79
|
+
"reflect": false
|
|
80
|
+
},
|
|
81
|
+
"className": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "DBCardProps[\"className\"]",
|
|
86
|
+
"resolved": "string",
|
|
87
|
+
"references": {
|
|
88
|
+
"DBCardProps": {
|
|
89
|
+
"location": "import",
|
|
90
|
+
"path": "./model",
|
|
91
|
+
"id": "src/components/card/model.ts::DBCardProps"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
103
|
+
"attribute": "classname",
|
|
104
|
+
"reflect": false
|
|
105
|
+
},
|
|
106
|
+
"behavior": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "DBCardProps[\"behavior\"]",
|
|
111
|
+
"resolved": "\"interactive\" | \"static\"",
|
|
112
|
+
"references": {
|
|
113
|
+
"DBCardProps": {
|
|
114
|
+
"location": "import",
|
|
115
|
+
"path": "./model",
|
|
116
|
+
"id": "src/components/card/model.ts::DBCardProps"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"getter": false,
|
|
127
|
+
"setter": false,
|
|
128
|
+
"attribute": "behavior",
|
|
129
|
+
"reflect": false
|
|
130
|
+
},
|
|
131
|
+
"elevationLevel": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "DBCardProps[\"elevationLevel\"]",
|
|
136
|
+
"resolved": "\"1\" | \"2\" | \"3\"",
|
|
137
|
+
"references": {
|
|
138
|
+
"DBCardProps": {
|
|
139
|
+
"location": "import",
|
|
140
|
+
"path": "./model",
|
|
141
|
+
"id": "src/components/card/model.ts::DBCardProps"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": ""
|
|
150
|
+
},
|
|
151
|
+
"getter": false,
|
|
152
|
+
"setter": false,
|
|
153
|
+
"attribute": "elevation-level",
|
|
154
|
+
"reflect": false
|
|
155
|
+
},
|
|
156
|
+
"spacing": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"mutable": false,
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "DBCardProps[\"spacing\"]",
|
|
161
|
+
"resolved": "\"large\" | \"medium\" | \"none\" | \"small\"",
|
|
162
|
+
"references": {
|
|
163
|
+
"DBCardProps": {
|
|
164
|
+
"location": "import",
|
|
165
|
+
"path": "./model",
|
|
166
|
+
"id": "src/components/card/model.ts::DBCardProps"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": ""
|
|
175
|
+
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
178
|
+
"attribute": "spacing",
|
|
179
|
+
"reflect": false
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
static get events() {
|
|
184
|
+
return [{
|
|
185
|
+
"method": "onClick",
|
|
186
|
+
"name": "onClick",
|
|
187
|
+
"bubbles": true,
|
|
188
|
+
"cancelable": true,
|
|
189
|
+
"composed": true,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": ""
|
|
193
|
+
},
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "any",
|
|
196
|
+
"resolved": "any",
|
|
197
|
+
"references": {}
|
|
198
|
+
}
|
|
199
|
+
}];
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"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","sourcesContent":["import type { DBCardProps, DBCardState } from \"./model\";\nimport { cls } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport { Component, h, Fragment, Event, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-card\",\n})\nexport class DBCard {\n private _ref!: HTMLDivElement | null;\n @Event() onClick: any;\n @Prop() id: DBCardProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBCardProps[\"className\"];\n @Prop() behavior: DBCardProps[\"behavior\"];\n @Prop() elevationLevel: DBCardProps[\"elevationLevel\"];\n @Prop() spacing: DBCardProps[\"spacing\"];\n\n\n handleClick(event: ClickEvent<HTMLElement>) {\n if (this.onClick) {\n this.onClick.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-card\");\n }\n\n render() {\n return (\n <div\n class={cls(\"db-card\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-behavior={this.behavior}\n data-elevation-level={this.elevationLevel}\n data-spacing={this.spacing}\n role={this.behavior === \"interactive\" ? \"button\" : undefined}\n tabIndex={this.behavior === \"interactive\" ? 0 : undefined}\n onClick={(event) => this.handleClick(event)}\n >\n <slot></slot>\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAe,MAAM,CAAC","sourcesContent":["import { DBCard } from './card';\n\nexport default DBCard;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/card/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,gBAAgB,GAAI,CAAC,QAAQ,EAAE,aAAa,CAAW,CAAC;AAErE,MAAM,CAAC,MAAM,sBAAsB,GAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAW,CAAC","sourcesContent":["import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';\nexport const CardBehaviorList = (['static', 'interactive'] as const);\nexport type CardBehaviorType = (typeof CardBehaviorList)[number];\nexport const CardElevationLevelList = (['1', '2', '3'] as const);\nexport type CardElevationLevelType = (typeof CardElevationLevelList)[number];\nexport type DBCardDefaultProps = {\n /**\n * Makes the card interactive\n */\n behavior?: CardBehaviorType;\n\n /**\n * Changes the elevation of the card which is equal to `basic-background-level`\n */\n elevationLevel?: CardElevationLevelType;\n};\nexport type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;\nexport type DBCardDefaultState = {};\nexport type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>"]}
|