@odx/foundation 1.0.0-beta.24 → 1.0.0-beta.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +37 -14
  2. package/dist/_virtual_class-decorator-runtime.js +13 -0
  3. package/dist/breakpoints/main.d.ts +22 -0
  4. package/dist/breakpoints/models.d.ts +15 -0
  5. package/dist/breakpoints/utils.d.ts +13 -0
  6. package/dist/breakpoints.js +118 -0
  7. package/dist/components/accordion/accordion.d.ts +11 -6
  8. package/dist/components/accordion-item/accordion-item.d.ts +25 -0
  9. package/dist/components/{accordion → accordion-panel}/accordion-panel.d.ts +4 -3
  10. package/dist/components/action-button/action-button.d.ts +28 -0
  11. package/dist/components/action-group/action-group.d.ts +6 -13
  12. package/dist/components/anchor-navigation/anchor-navigation.d.ts +8 -6
  13. package/dist/components/anchor-navigation/index.d.ts +0 -1
  14. package/dist/components/area-footer/area-footer.d.ts +29 -0
  15. package/dist/components/area-header/area-header.d.ts +13 -4
  16. package/dist/components/autocomplete/autocomplete.d.ts +27 -0
  17. package/dist/components/avatar/avatar.d.ts +18 -9
  18. package/dist/components/badge/badge.d.ts +23 -6
  19. package/dist/components/breadcrumbs/breadcrumbs.d.ts +18 -7
  20. package/dist/components/button/button.d.ts +19 -37
  21. package/dist/components/button-group/button-group.d.ts +9 -5
  22. package/dist/components/card/card.d.ts +21 -3
  23. package/dist/components/checkbox/checkbox.d.ts +7 -6
  24. package/dist/components/checkbox-group/checkbox-group.d.ts +7 -7
  25. package/dist/components/chip/chip.d.ts +9 -6
  26. package/dist/components/drawer/drawer.d.ts +17 -0
  27. package/dist/components/dropdown/dropdown.d.ts +23 -15
  28. package/dist/components/empty-state/empty-state.d.ts +45 -0
  29. package/dist/components/form-field/form-field.d.ts +3 -4
  30. package/dist/components/format/base-format.d.ts +2 -2
  31. package/dist/components/format/format-bytes.d.ts +1 -1
  32. package/dist/components/format/format-number.d.ts +1 -1
  33. package/dist/components/format/relative-time.d.ts +2 -2
  34. package/dist/components/gradient-overlay/gradient-overlay.d.ts +23 -0
  35. package/dist/components/header/header.d.ts +12 -2
  36. package/dist/components/header/index.d.ts +0 -1
  37. package/dist/components/highlight/highlight.d.ts +30 -7
  38. package/dist/components/icon-button/icon-button.d.ts +26 -17
  39. package/dist/components/image/image.d.ts +5 -5
  40. package/dist/components/inline-message/inline-message.d.ts +12 -7
  41. package/dist/components/input/input.d.ts +15 -8
  42. package/dist/components/key-value/key-value.d.ts +52 -0
  43. package/dist/components/key-value-list/key-value-list.d.ts +15 -0
  44. package/dist/components/label/label.d.ts +11 -0
  45. package/dist/components/line-clamp/line-clamp.d.ts +3 -3
  46. package/dist/components/link/link.d.ts +12 -4
  47. package/dist/components/list/list.d.ts +10 -2
  48. package/dist/components/list-item/list-item.d.ts +24 -0
  49. package/dist/components/loader.d.ts +2 -0
  50. package/dist/components/loading-overlay/loading-overlay.d.ts +3 -5
  51. package/dist/components/loading-spinner/loading-spinner.d.ts +9 -3
  52. package/dist/components/logo/logo.d.ts +4 -3
  53. package/dist/components/main-menu/index.d.ts +1 -4
  54. package/dist/components/main-menu/main-menu-button.d.ts +3 -2
  55. package/dist/components/main-menu/main-menu.d.ts +1 -7
  56. package/dist/components/main.d.ts +75 -60
  57. package/dist/components/menu/menu.d.ts +7 -5
  58. package/dist/components/menu-item/menu-item.d.ts +28 -6
  59. package/dist/components/modal/modal.d.ts +6 -27
  60. package/dist/components/navigation/navigation.d.ts +18 -0
  61. package/dist/components/navigation-item/navigation-item.d.ts +11 -15
  62. package/dist/components/navigation-item-group/navigation-item-group.d.ts +20 -0
  63. package/dist/components/option/option.d.ts +6 -3
  64. package/dist/components/page/page.d.ts +15 -9
  65. package/dist/components/page-layout/page-layout.d.ts +9 -1
  66. package/dist/components/pagination/pagination.d.ts +3 -2
  67. package/dist/components/popover/compute-popover-placement.d.ts +13 -0
  68. package/dist/components/popover/popover-host.d.ts +43 -0
  69. package/dist/components/popover/popover-observer.d.ts +10 -0
  70. package/dist/{cdk → components}/popover/popover.d.ts +3 -2
  71. package/dist/components/progress-bar/base-progress.d.ts +23 -0
  72. package/dist/components/progress-bar/progress-bar.d.ts +3 -19
  73. package/dist/components/progress-ring/progress-ring.d.ts +31 -0
  74. package/dist/components/radio-button/radio-button.d.ts +4 -3
  75. package/dist/components/radio-group/radio-group.d.ts +8 -5
  76. package/dist/components/rail-navigation/rail-navigation.d.ts +5 -7
  77. package/dist/components/scroll-container/scroll-container.d.ts +36 -0
  78. package/dist/components/search-bar/search-bar.d.ts +15 -5
  79. package/dist/components/select/select.d.ts +11 -10
  80. package/dist/components/separator/separator.d.ts +8 -6
  81. package/dist/components/sidebar/sidebar.d.ts +30 -0
  82. package/dist/components/skeleton/skeleton.d.ts +11 -18
  83. package/dist/components/slider/index.d.ts +2 -2
  84. package/dist/components/slider/slider-handle.d.ts +21 -6
  85. package/dist/components/slider/slider-marks.d.ts +2 -2
  86. package/dist/components/slider/slider.d.ts +2 -3
  87. package/dist/components/slider/slider.models.d.ts +4 -4
  88. package/dist/components/spinbox/spinbox.d.ts +14 -10
  89. package/dist/components/status/status.d.ts +9 -5
  90. package/dist/components/switch/switch.d.ts +10 -2
  91. package/dist/components/tab-bar/tab-bar.d.ts +39 -0
  92. package/dist/components/table/index.d.ts +2 -3
  93. package/dist/components/table/table-body.d.ts +1 -3
  94. package/dist/components/table/table-cell.d.ts +1 -3
  95. package/dist/components/table/table-checkbox-cell.d.ts +2 -2
  96. package/dist/components/table/table-header-cell.d.ts +1 -1
  97. package/dist/components/table/table-header.d.ts +5 -3
  98. package/dist/components/table/table-row.d.ts +3 -3
  99. package/dist/components/table/table.d.ts +1 -1
  100. package/dist/components/text/text.d.ts +10 -5
  101. package/dist/components/textarea/textarea.d.ts +21 -0
  102. package/dist/components/tile/tile.d.ts +36 -0
  103. package/dist/components/title/title.d.ts +13 -7
  104. package/dist/components/toast/toast.d.ts +10 -4
  105. package/dist/components/toggle-button/toggle-button.d.ts +38 -6
  106. package/dist/components/toggle-button-group/toggle-button-group.d.ts +20 -0
  107. package/dist/components/toggle-content/toggle-content.d.ts +4 -4
  108. package/dist/components/toolbar/toolbar.d.ts +14 -0
  109. package/dist/components/tooltip/tooltip.d.ts +40 -5
  110. package/dist/components/translate/translate.d.ts +2 -2
  111. package/dist/components-loader.js +3 -0
  112. package/dist/components.js +3910 -4218
  113. package/dist/en.js +6 -0
  114. package/dist/i18n/{lib/is-localized.d.ts → is-localized.d.ts} +3 -2
  115. package/dist/i18n/{lib/localization.d.ts → localization.d.ts} +0 -1
  116. package/dist/i18n/main.d.ts +7 -6
  117. package/dist/i18n/translate.d.ts +6 -0
  118. package/dist/i18n/translations/en.json.d.ts +19 -0
  119. package/dist/i18n/types.d.ts +30 -0
  120. package/dist/i18n.js +50 -57
  121. package/dist/lib/behaviors/can-be-collapsed.d.ts +10 -0
  122. package/dist/lib/behaviors/can-be-disabled.d.ts +9 -0
  123. package/dist/lib/behaviors/can-be-expanded.d.ts +11 -0
  124. package/dist/lib/behaviors/checkbox-control.d.ts +15 -0
  125. package/dist/lib/behaviors/checkbox-group-control.d.ts +22 -0
  126. package/dist/lib/behaviors/form-associated.d.ts +22 -0
  127. package/dist/lib/behaviors/is-draggable.d.ts +23 -0
  128. package/dist/lib/behaviors/listbox-control.d.ts +26 -0
  129. package/dist/lib/behaviors/number-form-control.d.ts +11 -0
  130. package/dist/lib/behaviors/option-control.d.ts +18 -0
  131. package/dist/lib/behaviors/radio-group-control.d.ts +12 -0
  132. package/dist/lib/behaviors/with-presets.d.ts +12 -0
  133. package/dist/lib/control-element.d.ts +39 -0
  134. package/dist/lib/controllers/active-descendants-controller.d.ts +29 -0
  135. package/dist/lib/controllers/drag.controller.d.ts +18 -0
  136. package/dist/lib/controllers/expandable-controller.d.ts +6 -10
  137. package/dist/lib/custom-element.d.ts +9 -5
  138. package/dist/lib/dialog-element.d.ts +183 -0
  139. package/dist/lib/interactive-control-element.d.ts +19 -0
  140. package/dist/lib/link-control-element.d.ts +19 -0
  141. package/dist/lib/models/layout.d.ts +46 -0
  142. package/dist/lib/models/shape.d.ts +2 -2
  143. package/dist/lib/models/size.d.ts +2 -2
  144. package/dist/lib/models/variant.d.ts +5 -2
  145. package/dist/main.d.ts +25 -0
  146. package/dist/main.js +1149 -730
  147. package/dist/oss-licenses.json +37 -0
  148. package/dist/oss-licenses.txt +178 -0
  149. package/dist/signals/main.d.ts +6 -0
  150. package/dist/signals.js +3 -0
  151. package/dist/styles.css +1 -1
  152. package/dist/theming/dark-mode.d.ts +4 -0
  153. package/dist/theming/main.d.ts +2 -0
  154. package/dist/theming.js +18 -0
  155. package/dist/utils/attribute-directive.d.ts +20 -0
  156. package/dist/utils/command-directive.d.ts +22 -0
  157. package/dist/utils/dom-events.d.ts +48 -0
  158. package/dist/{lib/types/a11y.d.ts → utils/dom-types.d.ts} +1 -17
  159. package/dist/utils/dom.d.ts +19 -0
  160. package/dist/utils/lit.d.ts +4 -0
  161. package/dist/utils/main.d.ts +12 -0
  162. package/dist/utils/shared-event-listener.d.ts +3 -0
  163. package/dist/utils/shared-media-observer.d.ts +4 -0
  164. package/dist/utils/shared-resize-observer.d.ts +7 -0
  165. package/dist/utils/types.d.ts +5 -0
  166. package/dist/utils/unique-id.d.ts +20 -0
  167. package/dist/utils.js +352 -0
  168. package/dist/vendor.js +233 -0
  169. package/package.json +66 -30
  170. package/dist/cdk/control/checkbox-form-control.d.ts +0 -15
  171. package/dist/cdk/control/checkbox-group-form-control.d.ts +0 -21
  172. package/dist/cdk/control/listbox-form-control.d.ts +0 -22
  173. package/dist/cdk/control/option-control.d.ts +0 -24
  174. package/dist/cdk/control/radio-group-form-control.d.ts +0 -22
  175. package/dist/cdk/drag-drop/drag-events.d.ts +0 -9
  176. package/dist/cdk/drag-drop/drag.controller.d.ts +0 -18
  177. package/dist/cdk/drag-drop/is-draggable.d.ts +0 -18
  178. package/dist/cdk/interactive/interactive-element.d.ts +0 -28
  179. package/dist/cdk/interactive/interactive-link.d.ts +0 -15
  180. package/dist/cdk/main.d.ts +0 -14
  181. package/dist/cdk/popover/popover-host.d.ts +0 -25
  182. package/dist/cdk/popover/popover.models.d.ts +0 -35
  183. package/dist/cdk/popover/popover.utils.d.ts +0 -5
  184. package/dist/cdk.js +0 -953
  185. package/dist/components/accordion/accordion-header.d.ts +0 -17
  186. package/dist/components/accordion/index.d.ts +0 -4
  187. package/dist/components/action-group/index.d.ts +0 -2
  188. package/dist/components/anchor-navigation/anchor-observer.d.ts +0 -11
  189. package/dist/components/area-header/index.d.ts +0 -2
  190. package/dist/components/avatar/index.d.ts +0 -2
  191. package/dist/components/avatar-group/avatar-group.d.ts +0 -15
  192. package/dist/components/avatar-group/index.d.ts +0 -2
  193. package/dist/components/badge/index.d.ts +0 -2
  194. package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +0 -17
  195. package/dist/components/breadcrumbs/index.d.ts +0 -3
  196. package/dist/components/button/index.d.ts +0 -2
  197. package/dist/components/button-group/index.d.ts +0 -2
  198. package/dist/components/card/index.d.ts +0 -2
  199. package/dist/components/checkbox/index.d.ts +0 -2
  200. package/dist/components/checkbox-group/index.d.ts +0 -2
  201. package/dist/components/chip/index.d.ts +0 -2
  202. package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +0 -50
  203. package/dist/components/circular-progress-bar/index.d.ts +0 -2
  204. package/dist/components/combobox/combobox.d.ts +0 -20
  205. package/dist/components/combobox/index.d.ts +0 -2
  206. package/dist/components/content-box/content-box.d.ts +0 -11
  207. package/dist/components/content-box/index.d.ts +0 -2
  208. package/dist/components/dropdown/index.d.ts +0 -2
  209. package/dist/components/form-field/index.d.ts +0 -2
  210. package/dist/components/header/header-actions.d.ts +0 -10
  211. package/dist/components/headline/headline.d.ts +0 -21
  212. package/dist/components/headline/index.d.ts +0 -2
  213. package/dist/components/highlight/index.d.ts +0 -2
  214. package/dist/components/icon-button/index.d.ts +0 -2
  215. package/dist/components/image/index.d.ts +0 -2
  216. package/dist/components/inline-message/index.d.ts +0 -2
  217. package/dist/components/input/index.d.ts +0 -2
  218. package/dist/components/line-clamp/index.d.ts +0 -2
  219. package/dist/components/link/base-link.d.ts +0 -15
  220. package/dist/components/link/index.d.ts +0 -3
  221. package/dist/components/list/index.d.ts +0 -3
  222. package/dist/components/list/list-item.d.ts +0 -27
  223. package/dist/components/loading-overlay/index.d.ts +0 -2
  224. package/dist/components/loading-spinner/index.d.ts +0 -2
  225. package/dist/components/logo/index.d.ts +0 -2
  226. package/dist/components/main-menu/main-menu-link.d.ts +0 -9
  227. package/dist/components/main-menu/main-menu-subtitle.d.ts +0 -12
  228. package/dist/components/main-menu/main-menu-title.d.ts +0 -12
  229. package/dist/components/menu/index.d.ts +0 -3
  230. package/dist/components/menu/menu-label.d.ts +0 -9
  231. package/dist/components/menu-item/index.d.ts +0 -2
  232. package/dist/components/modal/index.d.ts +0 -2
  233. package/dist/components/navigation-item/index.d.ts +0 -2
  234. package/dist/components/option/index.d.ts +0 -2
  235. package/dist/components/page/index.d.ts +0 -2
  236. package/dist/components/page-layout/index.d.ts +0 -2
  237. package/dist/components/pagination/index.d.ts +0 -2
  238. package/dist/components/progress-bar/index.d.ts +0 -2
  239. package/dist/components/radio-button/index.d.ts +0 -2
  240. package/dist/components/radio-group/index.d.ts +0 -2
  241. package/dist/components/rail-navigation/index.d.ts +0 -2
  242. package/dist/components/search-bar/index.d.ts +0 -3
  243. package/dist/components/search-bar/search-bar.events.d.ts +0 -7
  244. package/dist/components/select/index.d.ts +0 -2
  245. package/dist/components/separator/index.d.ts +0 -2
  246. package/dist/components/skeleton/index.d.ts +0 -2
  247. package/dist/components/spacer/index.d.ts +0 -2
  248. package/dist/components/spacer/spacer.d.ts +0 -13
  249. package/dist/components/spinbox/index.d.ts +0 -2
  250. package/dist/components/stack/index.d.ts +0 -3
  251. package/dist/components/stack/stack.d.ts +0 -17
  252. package/dist/components/stack/stack.models.d.ts +0 -26
  253. package/dist/components/status/index.d.ts +0 -2
  254. package/dist/components/switch/index.d.ts +0 -2
  255. package/dist/components/table/table.models.d.ts +0 -10
  256. package/dist/components/text/index.d.ts +0 -2
  257. package/dist/components/timeline/index.d.ts +0 -3
  258. package/dist/components/timeline/timeline-item.d.ts +0 -9
  259. package/dist/components/timeline/timeline.d.ts +0 -9
  260. package/dist/components/title/index.d.ts +0 -2
  261. package/dist/components/toast/index.d.ts +0 -2
  262. package/dist/components/toggle-button/index.d.ts +0 -2
  263. package/dist/components/toggle-content/index.d.ts +0 -2
  264. package/dist/components/tooltip/index.d.ts +0 -2
  265. package/dist/components/translate/index.d.ts +0 -2
  266. package/dist/components/visually-hidden/index.d.ts +0 -2
  267. package/dist/components/visually-hidden/visually-hidden.d.ts +0 -11
  268. package/dist/i18n/lib/translate.d.ts +0 -11
  269. package/dist/lib/controllers/active-desendants-controller.d.ts +0 -25
  270. package/dist/lib/controllers/focus-trap.controller.d.ts +0 -14
  271. package/dist/lib/main.d.ts +0 -36
  272. package/dist/lib/mixins/can-be-disabled.d.ts +0 -15
  273. package/dist/lib/mixins/can-be-expanded.d.ts +0 -10
  274. package/dist/lib/mixins/can-be-highlighted.d.ts +0 -8
  275. package/dist/lib/mixins/can-be-readonly.d.ts +0 -7
  276. package/dist/lib/mixins/can-be-required.d.ts +0 -7
  277. package/dist/lib/mixins/can-be-selected.d.ts +0 -9
  278. package/dist/lib/mixins/can-be-validated.d.ts +0 -12
  279. package/dist/lib/mixins/form-control.d.ts +0 -17
  280. package/dist/lib/mixins/number-control.d.ts +0 -12
  281. package/dist/lib/mixins/with-loading-state.d.ts +0 -8
  282. package/dist/lib/types/utils.d.ts +0 -2
  283. package/dist/lib/utils/date.d.ts +0 -2
  284. package/dist/lib/utils/dedupe-mixin.d.ts +0 -3
  285. package/dist/lib/utils/dom.d.ts +0 -15
  286. package/dist/lib/utils/empty-slot-fallback-fix.d.ts +0 -8
  287. package/dist/lib/utils/get-unique-id.d.ts +0 -36
  288. package/dist/lib/utils/keyboard-events.d.ts +0 -43
  289. package/dist/lib/utils/lit.d.ts +0 -5
  290. package/dist/lib/utils/query-assigned-element.d.ts +0 -16
  291. package/dist/lib/utils/search-text-content.d.ts +0 -8
  292. package/dist/lib/utils/shared-intersection-observer.d.ts +0 -18
  293. package/dist/lib/utils/shared-resize-observer.d.ts +0 -18
  294. package/dist/lib/utils/transformers.d.ts +0 -5
  295. package/dist/loader/main.d.ts +0 -2
  296. package/dist/loader.js +0 -12
  297. package/dist/vendor-Cef33Vym.js +0 -149
  298. /package/dist/i18n/{lib/config.d.ts → config.d.ts} +0 -0
  299. /package/dist/i18n/{lib/format.d.ts → format.d.ts} +0 -0
  300. /package/dist/i18n/{lib/models.d.ts → models.d.ts} +0 -0
package/README.md CHANGED
@@ -1,36 +1,35 @@
1
1
 
2
2
  # @odx/foundation
3
3
 
4
- The `@odx/foundation` package is an integral element of the ODX Design System, offering essential building blocks for developing consistent and cohesive user interfaces. This package provides foundational styles for layout, typography, and global styles, ensuring a unified design across all ODX projects.
4
+ The `@odx/foundation` package is a core part of the ODX Design System, providing essential building blocks for creating consistent and cohesive user interfaces. This package includes foundational components, styles, and utilities to ensure a unified design across all ODX projects.
5
5
 
6
6
  ### Features
7
7
 
8
- - **Layout Styles**: Standardized layout styles to maintain consistency across different pages and elements.
9
- - **Typography**: Predefined typography styles for headers, paragraphs, and other text elements to ensure a cohesive look and feel.
10
- - **Global Styles**: Comprehensive global styles that set the base for your application's design, including colors, spacing, and more.
11
-
12
- ### Prequisites
13
-
8
+ - **CSS Framework**: A comprehensive CSS framework that includes layout, typography, and utility classes to streamline styling and ensure consistency
9
+ - **Components**: Reusable web components, including buttons, tables, headers, and more.
10
+ - **i18n**: Internationalization utilities for building multilingual applications, with support for locale changes and translations.
11
+ - **Global Styles**: Comprehensive global styles, including colors, spacing, and themes.
12
+ - **Browser Support**: <a href="https://web-platform-dx.github.io/web-features/supported-browsers/?targetYear=2024" target="_blank">Baseline 2024</a>
14
13
 
15
14
  ### Install
16
15
 
17
16
  [<img alt="NPM Version (with dist tag)" src="https://img.shields.io/npm/v/%40odx%2Ffoundation/latest?style=flat-square">](https://npmjs.org/package/@odx/foundation)
18
17
 
19
18
 
20
- To install `@odx/foundation` in your project, run the following command:
19
+ To install `@odx/foundation` and it's peer dependencies in your project, run the following command:
21
20
 
22
21
  ```bash
23
22
  npm install @odx/foundation @odx/icons@next --save
24
23
  ```
25
24
 
26
- > We depend on the <a href="https://lit.dev" target="_blank" rel="noopener">**Lit package**</a> for building web elements because it offers a lightweight, efficient framework with a simple syntax for creating fast, reusable elements. Its powerful templating system ensures high performance and seamless user experience. Lit is also highly interoperable, making it easy to integrate with other frameworks and libraries.
25
+ > We depend on the <a href="https://lit.dev" target="_blank" rel="noopener">Lit package</a> for building web elements because it offers a lightweight, efficient framework with a simple syntax for creating fast, reusable elements. Its powerful templating system ensures high performance and seamless user experience. Lit is also highly interoperable, making it easy to integrate with other frameworks and libraries.
27
26
  >
28
27
  > [<img src="https://img.shields.io/npm/dependency-version/@odx/foundation/lit" />](https://npmjs.org/package/lit)
29
28
 
30
29
 
31
30
  ### Setup
32
31
 
33
- > Ensure that you have followed the installation and setup instructions for our [**design tokens**](https://npmjs.org/package/@odx/design-tokens) library.
32
+ > Ensure that you have followed the installation and setup instructions for our [design tokens](https://npmjs.org/package/@odx/design-tokens) library.
34
33
 
35
34
  Once installed, you can import the foundational components and styles into your project:
36
35
 
@@ -43,18 +42,42 @@ import '@odx/icons/core';
43
42
  import '@odx/foundation/loader';
44
43
 
45
44
  // Load styles (in JS)
46
- import '@odx/foundation/styles'; // JS
45
+ import '@odx/foundation/styles';
46
+
47
47
 
48
48
  ```
49
49
 
50
50
  ```css
51
- // Load styles (in CSS)
51
+ /* Load styles (in CSS) */
52
52
  @import '@odx/foundation/dist/styles.css';
53
+
54
+ ```
55
+
56
+ ### Framework integration
57
+
58
+ We currently do not provide any framework specific integration for the `@odx/foundation` package. However, you can easily integrate the web components into your framework of choice by following the standard practices for using web components in that framework.
59
+
60
+ #### Angular Example
61
+
62
+ ```typescript
63
+ import { Directive, input } from '@angular/core';
64
+
65
+ @Directive({
66
+ selector: 'odx-title',
67
+ host: { '[attr.size]': 'size() || null' },
68
+ })
69
+ export class Title {
70
+ size = input<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'>();
71
+ }
53
72
  ```
54
73
 
74
+ #### React Example
75
+
76
+ See <a href="https://lit.dev/docs/frameworks/react/" target="_blank">Lit documentation</a> for more information on how to use web components in React.
77
+
55
78
  ### Documentation
56
79
 
57
- For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://odx.draeger.com" target="_blank" rel="noopener">**documentation**</a>.
80
+ For detailed documentation on how to use the `@odx/foundation` package, including examples and best practices, please visit our <a href="https://ca-odx-storybook-dev.yellowisland-7b13f2d7.westeurope.azurecontainerapps.io/" target="_blank" rel="noopener">storybook documentation</a>.
58
81
 
59
82
  ### Contact
60
- For questions, feedback, or support, please reach out to us through our <a href="https://odx.draeger.com/contact" target="_blank" rel="noopener">**contact page**</a>.
83
+ For questions, feedback, or support, please reach out to us through our <a href="https://odx.draeger.com/contact" target="_blank" rel="noopener">contact page</a>.
@@ -0,0 +1,13 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+
4
+ const __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+
13
+ export { __decorateClass as _ };
@@ -0,0 +1,22 @@
1
+ import { BreakpointConfig } from './models.js';
2
+ export declare const defaultBreakpoints: {
3
+ readonly mobile: {
4
+ readonly id: "mobile";
5
+ readonly min: 0;
6
+ readonly max: 575.98;
7
+ };
8
+ readonly tablet: {
9
+ readonly id: "tablet";
10
+ readonly min: 576;
11
+ readonly max: 991.98;
12
+ };
13
+ readonly desktop: {
14
+ readonly id: "desktop";
15
+ readonly min: 992;
16
+ readonly max: 1199.98;
17
+ };
18
+ };
19
+ export default function setupBreakpoints(breakpointsConfig?: BreakpointConfig[]): () => void;
20
+ export type * from './models.js';
21
+ export * from './utils.js';
22
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1,15 @@
1
+ export interface BreakpointConfig {
2
+ id: string;
3
+ min: number;
4
+ max: number;
5
+ customQuery?: string;
6
+ }
7
+ export type BreakpointOperator = '<' | '<=' | '>=' | '>';
8
+ export type Breakpoint = BreakpointConfig & {
9
+ query: string;
10
+ operator?: BreakpointOperator;
11
+ };
12
+ export type BreakpointChange = Breakpoint & {
13
+ matches: boolean;
14
+ };
15
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { Signal } from '../signals/main.js';
2
+ import { Breakpoint, BreakpointChange, BreakpointConfig, BreakpointOperator } from './models.js';
3
+ export declare const breakpointDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint">;
4
+ export declare const breakpointClassDirective: import('../utils/main.js').StringAttributeDirective<"odx-breakpoint-class">;
5
+ export declare const breakpointActiveDirective: import('../utils/main.js').BooleanAttributeDirective<"odx-breakpoint-active">;
6
+ export declare function buildBreakpoint(breakpoint: BreakpointConfig, operator?: BreakpointOperator): Breakpoint;
7
+ export declare function generateBreakpointStyles(breakpoints: Breakpoint[]): string;
8
+ export declare function expandBreakpoints(...breakpoints: BreakpointConfig[]): Breakpoint[];
9
+ export declare function observeBreakpoint(breakpoint: Breakpoint, initialValue?: boolean): Signal<Breakpoint & {
10
+ matches: boolean;
11
+ }>;
12
+ export declare function createBreakpointDirectiveUpdater(breakpoints: Breakpoint[], update?: (target: HTMLElement, change: BreakpointChange) => void): () => void;
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,118 @@
1
+ import { signal, effect } from '@odx/foundation/signals';
2
+ import { stringAttributeDirective, booleanAttributeDirective, observeMedia } from '@odx/foundation/utils';
3
+
4
+ const operators = ["<", "<=", ">=", ">"];
5
+ const breakpointDirective = stringAttributeDirective("odx-breakpoint");
6
+ const breakpointClassDirective = stringAttributeDirective("odx-breakpoint-class");
7
+ const breakpointActiveDirective = booleanAttributeDirective({
8
+ name: "odx-breakpoint-active",
9
+ onUpdate: (directive, value) => {
10
+ if (!breakpointClassDirective.applied(directive)) return;
11
+ const classNames = breakpointClassDirective.value(directive)?.split(" ") ?? [];
12
+ for (const className of classNames) {
13
+ directive.classList.toggle(className, value);
14
+ }
15
+ }
16
+ });
17
+ function buildBreakpoint(breakpoint, operator) {
18
+ const id = operator ? `${operator}${breakpoint.id}` : breakpoint.id;
19
+ let query = `(min-width: ${breakpoint.min}px) and (max-width: ${breakpoint.max}px)`;
20
+ switch (operator) {
21
+ case "<":
22
+ query = `(max-width: ${breakpoint.min - 0.02}px)`;
23
+ break;
24
+ case "<=":
25
+ query = `(max-width: ${breakpoint.max}px)`;
26
+ break;
27
+ case ">=":
28
+ query = `(min-width: ${breakpoint.min}px)`;
29
+ break;
30
+ case ">":
31
+ query = `(min-width: ${breakpoint.max + 0.02}px)`;
32
+ break;
33
+ }
34
+ return { ...breakpoint, id, operator, query: [query, breakpoint.customQuery].filter(Boolean).join(" and ") };
35
+ }
36
+ function generateBreakpointStyles(breakpoints) {
37
+ const selectors = breakpoints.map((breakpoint) => `[${breakpointDirective.attribute}="${breakpoint.id}"]`);
38
+ const excludedSelectors = [breakpointActiveDirective.selector, breakpointClassDirective.selector].map((selector) => `:not(${selector})`);
39
+ return `:where(${selectors.join(", ")})${excludedSelectors.join("")} { display: none !important; }`;
40
+ }
41
+ function expandBreakpoints(...breakpoints) {
42
+ return breakpoints.flatMap((breakpoint) => [void 0, ...operators].map((operator) => buildBreakpoint(breakpoint, operator)));
43
+ }
44
+ function observeBreakpoint(breakpoint, initialValue = false) {
45
+ let unobserveMedia;
46
+ return signal(
47
+ { ...breakpoint, matches: initialValue },
48
+ {
49
+ unwatched: () => {
50
+ unobserveMedia?.();
51
+ },
52
+ watched() {
53
+ unobserveMedia = observeMedia(breakpoint.query, ({ matches }) => {
54
+ this.value = { ...breakpoint, matches };
55
+ });
56
+ }
57
+ }
58
+ );
59
+ }
60
+ function createBreakpointDirectiveUpdater(breakpoints, update) {
61
+ const breakpointCache = /* @__PURE__ */ new WeakMap();
62
+ const breakpointObservers = breakpoints.map((breakpoint) => observeBreakpoint(breakpoint, false));
63
+ return () => {
64
+ const directives = document.querySelectorAll(breakpointDirective.selector);
65
+ const changes = breakpointObservers.reduce((breakpoints2, { value }) => {
66
+ breakpoints2[value.id] = value;
67
+ return breakpoints2;
68
+ }, {});
69
+ let i = directives.length;
70
+ while (i--) {
71
+ const directive = directives[i];
72
+ const change = changes[breakpointDirective.value(directive) || ""];
73
+ if (!change || change.matches === breakpointCache.get(directive)) continue;
74
+ update?.(directive, change);
75
+ breakpointActiveDirective.toggle(directive, change.matches);
76
+ breakpointCache.set(directive, change.matches);
77
+ }
78
+ };
79
+ }
80
+
81
+ const defaultBreakpoints = {
82
+ mobile: { id: "mobile", min: 0, max: 575.98 },
83
+ tablet: { id: "tablet", min: 576, max: 991.98 },
84
+ desktop: { id: "desktop", min: 992, max: 1199.98 }
85
+ };
86
+ function setupBreakpoints(breakpointsConfig = []) {
87
+ const breakpoints = expandBreakpoints(...Object.values(defaultBreakpoints), ...breakpointsConfig);
88
+ const directiveUpdater = createBreakpointDirectiveUpdater(breakpoints);
89
+ let mutationObserver;
90
+ let unobserveBreakpoints = () => {
91
+ };
92
+ let stylesElement;
93
+ function initBreakpoints() {
94
+ destroyBreakpoints();
95
+ stylesElement ??= document.createElement("style");
96
+ stylesElement.id = "odx-breakpoint-styles";
97
+ stylesElement.textContent = generateBreakpointStyles(breakpoints);
98
+ document.head.appendChild(stylesElement);
99
+ mutationObserver = new MutationObserver(directiveUpdater);
100
+ mutationObserver.observe(document.documentElement, {
101
+ attributes: true,
102
+ subtree: true,
103
+ childList: true,
104
+ attributeFilter: [breakpointDirective.attribute]
105
+ });
106
+ unobserveBreakpoints = effect(directiveUpdater);
107
+ }
108
+ function destroyBreakpoints() {
109
+ stylesElement && document.head.removeChild(stylesElement);
110
+ unobserveBreakpoints();
111
+ mutationObserver?.disconnect();
112
+ globalThis.removeEventListener("DOMContentLoaded", initBreakpoints);
113
+ }
114
+ globalThis.addEventListener("DOMContentLoaded", initBreakpoints);
115
+ return destroyBreakpoints;
116
+ }
117
+
118
+ export { breakpointActiveDirective, breakpointClassDirective, breakpointDirective, buildBreakpoint, createBreakpointDirectiveUpdater, setupBreakpoints as default, defaultBreakpoints, expandBreakpoints, generateBreakpointStyles, observeBreakpoint };
@@ -1,15 +1,20 @@
1
- import { CustomElement } from '../../lib/main.js';
2
- import { OdxAccordionHeader } from './accordion-header.js';
1
+ import { ControlSize, CustomElement, ExpandableItemManagerHost } from '../../main.js';
2
+ import { PropertyValues, TemplateResult } from 'lit';
3
+ import { AccordionItemIndicatorPosition, OdxAccordionItem } from '../accordion-item/accordion-item.js';
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  'odx-accordion': OdxAccordion;
6
7
  }
7
8
  }
8
- export declare class OdxAccordion extends CustomElement {
9
- items: OdxAccordionHeader[];
10
- controlPosition?: 'start';
9
+ export declare class OdxAccordion extends CustomElement implements ExpandableItemManagerHost<OdxAccordionItem> {
10
+ #private;
11
+ indicatorPosition: AccordionItemIndicatorPosition;
11
12
  multiple: boolean;
13
+ size: ControlSize;
12
14
  constructor();
13
- toggleAll(force?: boolean, emitEvent?: boolean): void;
15
+ protected render(): TemplateResult | string;
16
+ getItems(): OdxAccordionItem[];
17
+ toggleAll(state?: boolean, emitEvent?: boolean): void;
18
+ protected updated(props: PropertyValues<this>): void;
14
19
  }
15
20
  //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { CanBeExpanded, InteractiveControlElement } from '../../main.js';
2
+ import { ValuesOf } from '../../utils/main.js';
3
+ import { PropertyValues, TemplateResult } from 'lit';
4
+ import { OdxAccordionPanel } from '../accordion-panel/accordion-panel.js';
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'odx-accordion-item': OdxAccordionItem;
8
+ }
9
+ }
10
+ export type AccordionItemIndicatorPosition = ValuesOf<typeof AccordionItemIndicatorPosition>;
11
+ export declare const AccordionItemIndicatorPosition: Pick<{
12
+ readonly START: "start";
13
+ readonly CENTER: "center";
14
+ readonly END: "end";
15
+ }, "START" | "END">;
16
+ declare const OdxAccordionItem_base: import('../../utils/main.js').Constructor<CanBeExpanded> & typeof InteractiveControlElement;
17
+ export declare class OdxAccordionItem extends OdxAccordionItem_base {
18
+ indicatorPosition: AccordionItemIndicatorPosition;
19
+ getPanel(): OdxAccordionPanel | null;
20
+ connectedCallback(): void;
21
+ protected renderContent(): TemplateResult;
22
+ protected willUpdate(props: PropertyValues<this>): void;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=accordion-item.d.ts.map
@@ -1,13 +1,14 @@
1
- import { CustomElement } from '../../lib/main.js';
2
- import { TemplateResult } from 'lit';
1
+ import { CustomElement } from '../../main.js';
2
+ import { PropertyValues, TemplateResult } from 'lit';
3
3
  declare global {
4
4
  interface HTMLElementTagNameMap {
5
5
  'odx-accordion-panel': OdxAccordionPanel;
6
6
  }
7
7
  }
8
8
  export declare class OdxAccordionPanel extends CustomElement {
9
- hidden: boolean;
9
+ expanded: boolean;
10
10
  connectedCallback(): void;
11
+ protected updated(props: PropertyValues<this>): void;
11
12
  protected render(): TemplateResult;
12
13
  }
13
14
  //# sourceMappingURL=accordion-panel.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { OdxIconName } from '@odx/icons';
2
+ import { PropertyValues, TemplateResult } from 'lit';
3
+ import { OdxButton } from '../button/button.js';
4
+ import { OdxTooltip, TooltipPlacement } from '../tooltip/tooltip.js';
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'odx-action-button': OdxActionButton;
8
+ }
9
+ }
10
+ export declare class OdxActionButton extends OdxButton {
11
+ #private;
12
+ protected tooltip?: OdxTooltip;
13
+ done: boolean;
14
+ icon: OdxIconName | undefined;
15
+ label: string;
16
+ labelPlacement?: TooltipPlacement;
17
+ statusIcon: OdxIconName;
18
+ statusMessage: string;
19
+ statusTimeout: number;
20
+ statusMessageTimeout: number;
21
+ replaceContent: boolean;
22
+ protected firstUpdated(props: PropertyValues<this>): void;
23
+ protected render(): TemplateResult;
24
+ protected renderContent(): TemplateResult;
25
+ protected renderLabel(label: TemplateResult | string): TemplateResult;
26
+ protected updated(props: PropertyValues<this>): void;
27
+ }
28
+ //# sourceMappingURL=action-button.d.ts.map
@@ -1,24 +1,17 @@
1
- import { CanBeDisabled, CustomElement } from '../../lib/main.js';
1
+ import { CustomElement } from '../../main.js';
2
2
  import { PropertyValues, TemplateResult } from 'lit';
3
- import { ButtonSize, ButtonVariant } from '../button/index.js';
3
+ import { OdxButton } from '../button/button.js';
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
6
6
  'odx-action-group': OdxActionGroup;
7
7
  }
8
8
  }
9
- declare const OdxActionGroup_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
10
- export declare class OdxActionGroup extends OdxActionGroup_base {
9
+ export declare class OdxActionGroup extends CustomElement {
11
10
  #private;
12
- private assignedElements;
13
- private fallbackElements;
14
- private base;
15
- private container;
16
- connected: boolean;
17
- size?: ButtonSize | null;
18
- variant?: ButtonVariant | null;
19
- connectedCallback(): void;
11
+ getItems(): OdxButton[];
12
+ disconnectedCallback(): void;
20
13
  protected render(): TemplateResult;
14
+ protected renderOverflowMenu(items: OdxButton[]): TemplateResult;
21
15
  protected updated(props: PropertyValues<this>): void;
22
16
  }
23
- export {};
24
17
  //# sourceMappingURL=action-group.d.ts.map
@@ -1,5 +1,6 @@
1
- import { CustomElement } from '../../lib/main.js';
2
- import { PropertyValueMap, TemplateResult } from 'lit';
1
+ import { CustomElement } from '../../main.js';
2
+ import { PropertyValues, TemplateResult } from 'lit';
3
+ import { OdxNavigationItem } from '../navigation-item/navigation-item.js';
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  'odx-anchor-navigation': OdxAnchorNavigation;
@@ -8,14 +9,15 @@ declare global {
8
9
  declare const OdxAnchorNavigation_base: typeof CustomElement;
9
10
  export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
10
11
  #private;
11
- container?: string;
12
+ readonly activeItem: import('@preact/signals-core').ReadonlySignal<OdxNavigationItem | undefined>;
13
+ root: Document | HTMLElement;
14
+ rootMargin?: string;
15
+ threshold: number;
12
16
  vertical: boolean;
13
17
  constructor();
14
- connectedCallback(): void;
15
18
  disconnectedCallback(): void;
16
- renderAnchorLink(anchor: Element, isActive?: boolean): unknown;
17
19
  protected render(): TemplateResult;
18
- protected updated(props: PropertyValueMap<this>): void;
20
+ protected updated(props: PropertyValues<this>): void;
19
21
  }
20
22
  export {};
21
23
  //# sourceMappingURL=anchor-navigation.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from './anchor-navigation.js';
2
- export * from './anchor-observer.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { CustomElement } from '../../main.js';
2
+ import { ValuesOf } from '../../utils/main.js';
3
+ import { TemplateResult } from 'lit';
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'odx-area-footer': OdxAreaFooter;
7
+ }
8
+ }
9
+ export type AreaFooterAlignment = ValuesOf<typeof AreaFooterAlignment>;
10
+ export declare const AreaFooterAlignment: Pick<{
11
+ readonly START: "start";
12
+ readonly CENTER: "center";
13
+ readonly END: "end";
14
+ }, "START" | "CENTER" | "END">;
15
+ export type AreaFooterSize = ValuesOf<typeof AreaFooterSize>;
16
+ export declare const AreaFooterSize: Pick<{
17
+ readonly XS: "xs";
18
+ readonly SM: "sm";
19
+ readonly MD: "md";
20
+ readonly LG: "lg";
21
+ readonly XL: "xl";
22
+ readonly XXL: "xxl";
23
+ }, "SM" | "MD" | "LG">;
24
+ export declare class OdxAreaFooter extends CustomElement {
25
+ alignment: AreaFooterAlignment;
26
+ size: AreaFooterSize;
27
+ protected render(): TemplateResult;
28
+ }
29
+ //# sourceMappingURL=area-footer.d.ts.map
@@ -1,11 +1,18 @@
1
- import { CustomElement, EnumString } from '../../lib/main.js';
1
+ import { CustomElement } from '../../main.js';
2
+ import { ValuesOf } from '../../utils/main.js';
2
3
  import { TemplateResult } from 'lit';
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  'odx-area-header': OdxAreaHeader;
6
7
  }
7
8
  }
8
- export type AreaHeaderSize = EnumString<typeof AreaHeaderSize>;
9
+ export type AreaHeaderAlignment = ValuesOf<typeof AreaHeaderAlignment>;
10
+ export declare const AreaHeaderAlignment: Pick<{
11
+ readonly START: "start";
12
+ readonly CENTER: "center";
13
+ readonly END: "end";
14
+ }, "START" | "CENTER" | "END">;
15
+ export type AreaHeaderSize = ValuesOf<typeof AreaHeaderSize>;
9
16
  export declare const AreaHeaderSize: Pick<{
10
17
  readonly XS: "xs";
11
18
  readonly SM: "sm";
@@ -13,9 +20,11 @@ export declare const AreaHeaderSize: Pick<{
13
20
  readonly LG: "lg";
14
21
  readonly XL: "xl";
15
22
  readonly XXL: "xxl";
16
- }, "SM" | "MD" | "LG" | "XL">;
23
+ }, "XS" | "SM" | "MD" | "LG" | "XL">;
17
24
  export declare class OdxAreaHeader extends CustomElement {
18
- size?: AreaHeaderSize;
25
+ #private;
26
+ alignment: AreaHeaderAlignment;
27
+ size: AreaHeaderSize;
19
28
  protected render(): TemplateResult;
20
29
  }
21
30
  //# sourceMappingURL=area-header.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { ActiveDescendantsController, CustomElement, FormAssociated } from '../../main.js';
2
+ import { PropertyValues, TemplateResult } from 'lit';
3
+ import { OdxDropdown } from '../dropdown/dropdown.js';
4
+ import { OdxHighlight } from '../highlight/highlight.js';
5
+ import { OdxOption } from '../option/option.js';
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'odx-autocomplete': OdxAutocomplete;
9
+ }
10
+ }
11
+ declare const OdxAutocomplete_base: import('../../utils/main.js').Constructor<FormAssociated<string>> & typeof CustomElement;
12
+ export declare class OdxAutocomplete extends OdxAutocomplete_base {
13
+ #private;
14
+ static shadowRootOptions: ShadowRootInit;
15
+ protected readonly activeDescendants: ActiveDescendantsController<OdxOption>;
16
+ protected get options(): OdxOption[];
17
+ protected readonly highlight: OdxHighlight;
18
+ protected readonly dropdown: OdxDropdown;
19
+ minQueryLength: number;
20
+ searchFn: (option: OdxOption, query?: string) => boolean;
21
+ get control(): HTMLInputElement | undefined;
22
+ get controlValue(): string;
23
+ protected firstUpdated(props: PropertyValues<this>): void;
24
+ protected render(): TemplateResult;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=autocomplete.d.ts.map
@@ -1,15 +1,17 @@
1
- import { CustomElement, EnumString } from '../../lib/main.js';
1
+ import { CustomElement } from '../../main.js';
2
+ import { ValuesOf } from '../../utils/main.js';
3
+ import { PropertyValues, TemplateResult } from 'lit';
2
4
  declare global {
3
5
  interface HTMLElementTagNameMap {
4
6
  'odx-avatar': OdxAvatar;
5
7
  }
6
8
  }
7
- export type AvatarShape = EnumString<typeof AvatarShape>;
9
+ export type AvatarShape = ValuesOf<typeof AvatarShape>;
8
10
  export declare const AvatarShape: Pick<{
9
11
  readonly CIRCLE: "circle";
10
12
  readonly RECTANGLE: "rectangle";
11
13
  }, "CIRCLE" | "RECTANGLE">;
12
- export type AvatarSize = EnumString<typeof AvatarSize>;
14
+ export type AvatarSize = ValuesOf<typeof AvatarSize>;
13
15
  export declare const AvatarSize: Pick<{
14
16
  readonly XS: "xs";
15
17
  readonly SM: "sm";
@@ -17,20 +19,27 @@ export declare const AvatarSize: Pick<{
17
19
  readonly LG: "lg";
18
20
  readonly XL: "xl";
19
21
  readonly XXL: "xxl";
20
- }, "SM" | "MD" | "LG" | "XL">;
21
- export type AvatarVariant = EnumString<typeof AvatarVariant>;
22
+ }, "XS" | "SM" | "MD" | "LG" | "XL" | "XXL">;
23
+ export type AvatarVariant = ValuesOf<typeof AvatarVariant>;
22
24
  export declare const AvatarVariant: Pick<{
23
25
  readonly NEUTRAL: "neutral";
26
+ readonly NEUTRAL_SUBTLE: "neutral-subtle";
24
27
  readonly PRIMARY: "primary";
25
28
  readonly ACCENT: "accent";
29
+ readonly ACCENT_GHOST: "accent-ghost";
26
30
  readonly SUCCESS: "success";
27
31
  readonly WARNING: "warning";
28
32
  readonly DANGER: "danger";
33
+ readonly DANGER_GHOST: "danger-ghost";
29
34
  readonly GHOST: "ghost";
30
- }, "NEUTRAL" | "PRIMARY">;
35
+ }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "GHOST">;
31
36
  export declare class OdxAvatar extends CustomElement {
32
- shape?: AvatarShape;
33
- size?: AvatarSize;
34
- variant?: AvatarVariant;
37
+ interactive: boolean;
38
+ name: string;
39
+ shape: AvatarShape;
40
+ size: AvatarSize;
41
+ variant: AvatarVariant;
42
+ protected willUpdate(props: PropertyValues): void;
43
+ protected render(): TemplateResult;
35
44
  }
36
45
  //# sourceMappingURL=avatar.d.ts.map
@@ -1,24 +1,41 @@
1
- import { CustomElement, EnumString } from '../../lib/main.js';
1
+ import { CustomElement } from '../../main.js';
2
+ import { ValuesOf } from '../../utils/main.js';
2
3
  import { TemplateResult } from 'lit';
3
4
  declare global {
4
5
  interface HTMLElementTagNameMap {
5
6
  'odx-badge': OdxBadge;
6
7
  }
7
8
  }
8
- export type BadgeVariant = EnumString<typeof BadgeVariant>;
9
+ export type BadgeSize = ValuesOf<typeof BadgeSize>;
10
+ export declare const BadgeSize: Pick<{
11
+ readonly XS: "xs";
12
+ readonly SM: "sm";
13
+ readonly MD: "md";
14
+ readonly LG: "lg";
15
+ readonly XL: "xl";
16
+ readonly XXL: "xxl";
17
+ }, "SM" | "MD" | "LG">;
18
+ export type BadgeVariant = ValuesOf<typeof BadgeVariant>;
9
19
  export declare const BadgeVariant: Pick<{
10
20
  readonly NEUTRAL: "neutral";
21
+ readonly NEUTRAL_SUBTLE: "neutral-subtle";
11
22
  readonly PRIMARY: "primary";
12
23
  readonly ACCENT: "accent";
24
+ readonly ACCENT_GHOST: "accent-ghost";
13
25
  readonly SUCCESS: "success";
14
26
  readonly WARNING: "warning";
15
27
  readonly DANGER: "danger";
28
+ readonly DANGER_GHOST: "danger-ghost";
16
29
  readonly GHOST: "ghost";
17
- }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
30
+ }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "ACCENT_GHOST" | "SUCCESS" | "WARNING" | "DANGER" | "DANGER_GHOST">;
18
31
  export declare class OdxBadge extends CustomElement {
19
- compact?: boolean;
20
- pulse?: boolean;
21
- variant?: BadgeVariant;
32
+ #private;
33
+ animated: boolean;
34
+ compact: boolean;
35
+ contrast: boolean;
36
+ loading: boolean;
37
+ size: BadgeSize;
38
+ variant: BadgeVariant;
22
39
  protected render(): TemplateResult;
23
40
  }
24
41
  //# sourceMappingURL=badge.d.ts.map