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

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 (97) hide show
  1. package/dist/cdk/interactive/interactive-element.d.ts +2 -2
  2. package/dist/cdk/popover/popover.models.d.ts +3 -2
  3. package/dist/cdk.js +5 -2
  4. package/dist/components/area-header/area-header.d.ts +10 -3
  5. package/dist/components/area-header/index.d.ts +0 -1
  6. package/dist/components/avatar/avatar.d.ts +25 -2
  7. package/dist/components/avatar/index.d.ts +0 -1
  8. package/dist/components/avatar-group/avatar-group.d.ts +1 -1
  9. package/dist/components/badge/badge.d.ts +11 -2
  10. package/dist/components/badge/index.d.ts +0 -1
  11. package/dist/components/button/button.d.ts +26 -1
  12. package/dist/components/button/index.d.ts +0 -1
  13. package/dist/components/checkbox-group/checkbox-group.d.ts +7 -2
  14. package/dist/components/checkbox-group/index.d.ts +0 -1
  15. package/dist/components/chip/chip.d.ts +11 -2
  16. package/dist/components/chip/index.d.ts +0 -1
  17. package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +11 -3
  18. package/dist/components/circular-progress-bar/index.d.ts +0 -1
  19. package/dist/components/dropdown/dropdown.d.ts +6 -2
  20. package/dist/components/dropdown/index.d.ts +0 -1
  21. package/dist/components/headline/headline.d.ts +10 -2
  22. package/dist/components/headline/index.d.ts +0 -1
  23. package/dist/components/icon-button/icon-button.d.ts +1 -0
  24. package/dist/components/inline-message/index.d.ts +0 -1
  25. package/dist/components/inline-message/inline-message.d.ts +12 -3
  26. package/dist/components/input/index.d.ts +0 -1
  27. package/dist/components/input/input.d.ts +0 -2
  28. package/dist/components/logo/index.d.ts +0 -1
  29. package/dist/components/logo/logo.d.ts +10 -2
  30. package/dist/components/main.d.ts +2 -0
  31. package/dist/components/modal/index.d.ts +0 -1
  32. package/dist/components/modal/modal.d.ts +7 -3
  33. package/dist/components/navigation-item/index.d.ts +0 -1
  34. package/dist/components/navigation-item/navigation-item.d.ts +10 -2
  35. package/dist/components/page/index.d.ts +0 -1
  36. package/dist/components/page/page.d.ts +12 -4
  37. package/dist/components/progress-bar/index.d.ts +0 -1
  38. package/dist/components/progress-bar/progress-bar.d.ts +7 -2
  39. package/dist/components/radio-group/index.d.ts +0 -1
  40. package/dist/components/radio-group/radio-group.d.ts +7 -2
  41. package/dist/components/search-bar/index.d.ts +0 -1
  42. package/dist/components/search-bar/search-bar.d.ts +6 -2
  43. package/dist/components/separator/index.d.ts +0 -1
  44. package/dist/components/separator/separator.d.ts +6 -2
  45. package/dist/components/skeleton/index.d.ts +0 -1
  46. package/dist/components/skeleton/skeleton.d.ts +16 -2
  47. package/dist/components/slider/slider.models.d.ts +3 -2
  48. package/dist/components/stack/stack.models.d.ts +4 -3
  49. package/dist/components/status/index.d.ts +2 -0
  50. package/dist/components/status/status.d.ts +23 -0
  51. package/dist/components/text/index.d.ts +0 -1
  52. package/dist/components/text/text.d.ts +20 -2
  53. package/dist/components/timeline/index.d.ts +3 -0
  54. package/dist/components/timeline/timeline-item.d.ts +9 -0
  55. package/dist/components/timeline/timeline.d.ts +9 -0
  56. package/dist/components/title/index.d.ts +0 -1
  57. package/dist/components/title/title.d.ts +10 -2
  58. package/dist/components/toast/index.d.ts +0 -1
  59. package/dist/components/toast/toast.d.ts +11 -2
  60. package/dist/components/tooltip/index.d.ts +0 -1
  61. package/dist/components/tooltip/tooltip.d.ts +16 -0
  62. package/dist/components.js +955 -1051
  63. package/dist/i18n.js +1 -1
  64. package/dist/lib/main.d.ts +5 -0
  65. package/dist/lib/models/shape.d.ts +7 -0
  66. package/dist/lib/models/size.d.ts +11 -0
  67. package/dist/lib/models/variant.d.ts +12 -0
  68. package/dist/lib/types/utils.d.ts +2 -0
  69. package/dist/main.js +27 -2
  70. package/dist/{vendor-dJxQG085.js → vendor-Cef33Vym.js} +49 -38
  71. package/package.json +1 -1
  72. package/dist/components/area-header/area-header.models.d.ts +0 -12
  73. package/dist/components/avatar/avatar.models.d.ts +0 -18
  74. package/dist/components/badge/badge.models.d.ts +0 -14
  75. package/dist/components/button/button.models.d.ts +0 -27
  76. package/dist/components/checkbox-group/checkbox-group.models.d.ts +0 -6
  77. package/dist/components/chip/chip.models.d.ts +0 -10
  78. package/dist/components/circular-progress-bar/circular-progress-bar.models.d.ts +0 -7
  79. package/dist/components/content-box/content-box.models.d.ts +0 -2
  80. package/dist/components/dropdown/dropdown.models.d.ts +0 -6
  81. package/dist/components/headline/headline.models.d.ts +0 -8
  82. package/dist/components/inline-message/inline-message.models.d.ts +0 -12
  83. package/dist/components/input/input.models.d.ts +0 -7
  84. package/dist/components/logo/logo.models.d.ts +0 -9
  85. package/dist/components/modal/modal.models.d.ts +0 -5
  86. package/dist/components/navigation-item/navigation-item.models.d.ts +0 -6
  87. package/dist/components/page/page.models.d.ts +0 -10
  88. package/dist/components/progress-bar/progress-bar.models.d.ts +0 -7
  89. package/dist/components/radio-group/radio-group.models.d.ts +0 -6
  90. package/dist/components/search-bar/search-bar.models.d.ts +0 -6
  91. package/dist/components/separator/separator.models.d.ts +0 -6
  92. package/dist/components/skeleton/skeleton.models.d.ts +0 -13
  93. package/dist/components/spacer/spacer.models.d.ts +0 -7
  94. package/dist/components/text/text.models.d.ts +0 -14
  95. package/dist/components/title/title.models.d.ts +0 -10
  96. package/dist/components/toast/toast.models.d.ts +0 -5
  97. package/dist/components/tooltip/tooltip.models.d.ts +0 -8
@@ -13,11 +13,11 @@ declare const InteractiveElement_base: import('../../lib/main.js').Constructor<i
13
13
  * @slot suffix - Contains the button's icon or state indicator, e.g. a spinner.
14
14
  * @slot - Contains button text
15
15
  */
16
- export declare class InteractiveElement extends InteractiveElement_base implements InteractiveElement {
16
+ export declare class InteractiveElement extends InteractiveElement_base {
17
17
  #private;
18
18
  static readonly styles: import('lit').CSSResult;
19
19
  nativeElement: HTMLButtonElement | HTMLAnchorElement;
20
- loaderSlot?: 'prefix' | 'suffix';
20
+ loaderSlot?: 'prefix' | 'suffix' | 'default';
21
21
  lineClamp: 1 | 2;
22
22
  protected render(): TemplateResult;
23
23
  protected renderContent(withSpinner?: boolean): TemplateResult;
@@ -1,4 +1,5 @@
1
- export type PopoverPlacement = (typeof PopoverPlacement)[keyof typeof PopoverPlacement];
1
+ import { EnumString } from '../../lib/main.js';
2
+ export type PopoverPlacement = EnumString<typeof PopoverPlacement>;
2
3
  export declare const PopoverPlacement: {
3
4
  readonly TOP: "top";
4
5
  readonly TOP_START: "top-start";
@@ -24,7 +25,7 @@ export interface PopoverPlacementOptions {
24
25
  outerPadding: number;
25
26
  }
26
27
  export declare function PopoverPlacementOptions(options?: Partial<PopoverPlacementOptions>): PopoverPlacementOptions;
27
- export type PopoverSide = (typeof PopoverSide)[keyof typeof PopoverSide];
28
+ export type PopoverSide = EnumString<typeof PopoverSide>;
28
29
  export declare const PopoverSide: {
29
30
  readonly TOP: "top";
30
31
  readonly RIGHT: "right";
package/dist/cdk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { FormControl, CustomElement, getKeyboardEventInfo, toAriaBooleanAttribute, CanBeHighlighted, CanBeDisabled, getUniqueId, getElementFromEvent, ActiveDescendantsController, dedupeMixin, optionalAttr, requestUpdateOnAriaChange, WithLoadingState, getAssignedElements, toPx, waitForAnimations, findClosestDocument, createMutationObserver, customElement } from '@odx/foundation';
2
2
  import { isServer, html, unsafeCSS } from 'lit';
3
3
  import { property, queryAssignedElements, query, state } from 'lit/decorators.js';
4
- import { R as RovingTabindexController, m as minBy } from './vendor-dJxQG085.js';
4
+ import { R as RovingTabindexController, m as minBy } from './vendor-Cef33Vym.js';
5
5
  import { when } from 'lit/directives/when.js';
6
6
  import { arrow, flip, computePosition, offset, shift, size, hide, autoUpdate } from '@floating-ui/dom';
7
7
 
@@ -580,7 +580,7 @@ class DragController {
580
580
  }
581
581
  }
582
582
 
583
- const styles$2 = "@layer base{:host{--_color-background: var(--odx-color-transparent);--_color-background-hover: var(--odx-color-transparent-hover);--_color-background-pressed: var(--odx-color-transparent-pressed);--_color-foreground: var(--odx-color-foreground-base);--_color-foreground-hover: var(--odx-color-foreground-base);--_color-foreground-pressed: var(--odx-color-foreground-base);--_color-stroke: transparent;--_color-stroke-hover: transparent;--_color-stroke-pressed: transparent;--_block-size: var(--odx-size-225);--_min-inline-size: var(--odx-size-500);--_font-size: var(--odx-typography-font-size-3);--_icon-size: var(--odx-typography-font-size-6);--_padding-block: var(--odx-size-37);--_padding-inline: var(--odx-size-75);--_margin-block: 0;--_margin-icon: calc(-.5 * (var(--_icon-size) - var(--_padding-inline)) - var(--odx-size-px));block-size:var(--_block-size);cursor:pointer;position:relative;user-select:none;vertical-align:top;border-radius:var(--odx-border-radius-controls);margin-block:var(--_margin-block);min-inline-size:max(var(--_min-inline-size),min-content);max-inline-size:100%;-webkit-tap-highlight-color:transparent}:host(:focus-visible){outline:none}:host,[part=base]{display:inline-flex;place-items:center;place-content:center}[part=base]{overflow:clip;border-radius:inherit;cursor:inherit;-webkit-appearance:none;vertical-align:middle;text-decoration:none;font:inherit;block-size:100%;inline-size:100%;padding:0;gap:inherit;text-transform:inherit;padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);border:var(--odx-border-width-thin) solid var(--_color-stroke);transition:var(--odx-transition-reduced);transition-property:background-color,border-color,color,opacity,outline-color,transform,block-size;background-color:var(--_color-background, transparent);color:var(--_color-foreground);font-size:var(--_font-size);gap:var(--_padding-inline);font-weight:var(--odx-typography-font-weight-normal);outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset);line-height:min(calc(var(--_block-size) / 2 - var(--odx-size-25)),1em);&:focus-visible{outline-color:var(--odx-focus-ring-color)}}[part=base]::-moz-focus-inner{padding:0;border:0}[part=loader]{--_size: calc(var(--_icon-size) - var(--odx-size-25));color:var(--_color-foreground);margin-inline:calc(var(--_margin-icon) + var(--odx-size-25))}[part=label]{margin-block:calc(-1 * var(--_padding-block));margin-inline:calc(-1 * var(--_padding-inline));padding-block:var(--_padding-block);padding-inline:var(--_padding-inline)}:is(odx-icon),::slotted(:is(odx-avatar,odx-icon)){--size: var(--_icon-size);margin-inline:var(--_margin-icon)}::slotted([slot=\"badge\"]){--_badge-margin: var(--odx-size-12);position:absolute;inset-block-start:var(--_badge-margin);inset-inline-end:var(--_badge-margin);pointer-events:none;translate:var(--odx-size-37) -50%}::slotted(odx-avatar){--_color-background: var(--odx-color-transparent-pressed);--_size: var(--odx-size-200);--_font-size: var(--odx-typography-font-size-2);--_spacing: calc(var(--odx-size-75) - var(--odx-size-px));margin:0 calc(-1 * var(--_spacing))}}@layer state{:host(:not([aria-busy=\"true\"])) [part=base]:hover{--_color-background: var(--_color-background-hover);--_color-stroke: var(--_color-stroke-hover)}:host(:not([aria-busy=\"true\"])) [part=base]:active{--_color-background: var(--_color-background-pressed);--_color-stroke: var(--_color-stroke-pressed)}:host([aria-busy=\"true\"]){cursor:default}:host([aria-disabled=\"true\"]){--_color-background: var(--odx-color-disabled-fill);--_color-background-hover: var(--odx-color-disabled-fill);--_color-background-pressed: var(--odx-color-disabled-fill);--_color-foreground: var(--odx-color-disabled-foreground);--_color-stroke: var(--odx-color-disabled-stroke);cursor:not-allowed}:host(:is([align-badge=\"end\"],[align-badge=\"center\"])) ::slotted([slot=\"badge\"]){inset-block-start:unset;inset-block-end:0}:host([align-badge=\"end\"]) ::slotted([slot=\"badge\"]){translate:var(--odx-size-37) 50%}:host([align-badge=\"center\"]) ::slotted([slot=\"badge\"]){inset-inline:auto;translate:0 calc(50% + var(--_badge-margin))}}";
583
+ const styles$2 = "@layer base{:host{--_color-background: var(--odx-color-transparent);--_color-background-hover: var(--odx-color-transparent-hover);--_color-background-pressed: var(--odx-color-transparent-pressed);--_color-foreground: var(--odx-color-foreground-base);--_color-foreground-hover: var(--odx-color-foreground-base);--_color-foreground-pressed: var(--odx-color-foreground-base);--_color-stroke: transparent;--_color-stroke-hover: transparent;--_color-stroke-pressed: transparent;--_block-size: var(--odx-size-225);--_min-inline-size: var(--odx-size-500);--_font-size: var(--odx-typography-font-size-3);--_icon-size: var(--odx-typography-font-size-6);--_padding-block: var(--odx-size-37);--_padding-inline: var(--odx-size-75);--_margin-block: 0;--_margin-icon: calc(-.5 * (var(--_icon-size) - var(--_padding-inline)) - var(--odx-size-px));block-size:var(--_block-size);cursor:pointer;position:relative;user-select:none;vertical-align:top;border-radius:var(--odx-border-radius-controls);margin-block:var(--_margin-block);min-inline-size:max(var(--_min-inline-size),min-content);max-inline-size:100%;-webkit-tap-highlight-color:transparent}:host(:focus-visible){outline:none}:host,[part=base]{display:inline-flex;place-items:center;place-content:center}[part=base]{overflow:clip;border-radius:inherit;cursor:inherit;-webkit-appearance:none;vertical-align:middle;text-decoration:none;font:inherit;block-size:100%;inline-size:100%;padding:0;gap:inherit;text-transform:inherit;padding-block:var(--_padding-block);padding-inline:var(--_padding-inline);border:var(--odx-border-width-thin) solid var(--_color-stroke);transition:var(--odx-transition-reduced);transition-property:background-color,border-color,color,opacity,outline-color,transform,block-size;background-color:var(--_color-background, transparent);color:var(--_color-foreground);font-size:var(--_font-size);gap:var(--_padding-inline);font-weight:var(--odx-typography-font-weight-normal);outline:var(--odx-focus-ring-outline);outline-offset:var(--odx-focus-ring-offset);line-height:min(calc(var(--_block-size) / 2 - var(--odx-size-25)),1em);&:focus-visible{outline-color:var(--odx-focus-ring-color)}}[part=base]::-moz-focus-inner{padding:0;border:0}[part=loader]{--_size: calc(var(--_icon-size) - var(--odx-size-25));color:var(--_color-foreground);margin-inline:calc(var(--_margin-icon) + var(--odx-size-12))}[part=label]{margin-block:calc(-1 * var(--_padding-block));margin-inline:calc(-1 * var(--_padding-inline));padding-block:var(--_padding-block);padding-inline:var(--_padding-inline)}:is(odx-icon),::slotted(:is(odx-avatar,odx-icon)){--size: var(--_icon-size);margin-inline:var(--_margin-icon)}::slotted([slot=\"badge\"]){--_badge-margin: var(--odx-size-12);position:absolute;inset-block-start:var(--_badge-margin);inset-inline-end:var(--_badge-margin);pointer-events:none;translate:var(--odx-size-37) -50%}::slotted(odx-avatar){--_color-background: var(--odx-color-transparent-pressed);--_size: var(--odx-size-200);--_font-size: var(--odx-typography-font-size-2);--_spacing: calc(var(--odx-size-75) - var(--odx-size-px));margin:0 calc(-1 * var(--_spacing))}}@layer state{:host(:not([aria-busy=\"true\"])) [part=base]:hover{--_color-background: var(--_color-background-hover);--_color-stroke: var(--_color-stroke-hover)}:host(:not([aria-busy=\"true\"])) [part=base]:active{--_color-background: var(--_color-background-pressed);--_color-stroke: var(--_color-stroke-pressed)}:host([aria-busy=\"true\"]){cursor:default}:host([aria-disabled=\"true\"]){--_color-background: var(--odx-color-disabled-fill);--_color-background-hover: var(--odx-color-disabled-fill);--_color-background-pressed: var(--odx-color-disabled-fill);--_color-foreground: var(--odx-color-disabled-foreground);--_color-stroke: var(--odx-color-disabled-stroke);cursor:not-allowed}:host(:is([align-badge=\"end\"],[align-badge=\"center\"])) ::slotted([slot=\"badge\"]){inset-block-start:unset;inset-block-end:0}:host([align-badge=\"end\"]) ::slotted([slot=\"badge\"]){translate:var(--odx-size-37) 50%}:host([align-badge=\"center\"]) ::slotted([slot=\"badge\"]){inset-inline:auto;translate:0 calc(50% + var(--_badge-margin))}}";
584
584
 
585
585
  var __defProp$3 = Object.defineProperty;
586
586
  var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
@@ -712,6 +712,9 @@ renderSlot_fn = function(name, force) {
712
712
  return html`<slot name=${optionalAttr(name)}></slot>`;
713
713
  };
714
714
  isLoaderSlot_fn = function(name) {
715
+ if (name === void 0 && this.loaderSlot === "default") {
716
+ return true;
717
+ }
715
718
  return name === (this.loaderSlot || Object.values(["prefix", "suffix"]).find((slot) => getAssignedElements(this, slot).length > 0));
716
719
  };
717
720
  InteractiveElement.styles = unsafeCSS(styles$2);
@@ -1,14 +1,21 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { AreaHeaderSize, AreaHeaderVariant } from './area-header.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-area-header': OdxAreaHeader;
7
6
  }
8
7
  }
8
+ export type AreaHeaderSize = EnumString<typeof AreaHeaderSize>;
9
+ export declare const AreaHeaderSize: Pick<{
10
+ readonly XS: "xs";
11
+ readonly SM: "sm";
12
+ readonly MD: "md";
13
+ readonly LG: "lg";
14
+ readonly XL: "xl";
15
+ readonly XXL: "xxl";
16
+ }, "SM" | "MD" | "LG" | "XL">;
9
17
  export declare class OdxAreaHeader extends CustomElement {
10
18
  size?: AreaHeaderSize;
11
- variant?: AreaHeaderVariant;
12
19
  protected render(): TemplateResult;
13
20
  }
14
21
  //# sourceMappingURL=area-header.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from './area-header.js';
2
- export * from './area-header.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,33 @@
1
- import { CustomElement } from '../../lib/main.js';
2
- import { AvatarShape, AvatarSize, AvatarVariant } from './avatar.models.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
3
2
  declare global {
4
3
  interface HTMLElementTagNameMap {
5
4
  'odx-avatar': OdxAvatar;
6
5
  }
7
6
  }
7
+ export type AvatarShape = EnumString<typeof AvatarShape>;
8
+ export declare const AvatarShape: Pick<{
9
+ readonly CIRCLE: "circle";
10
+ readonly RECTANGLE: "rectangle";
11
+ }, "CIRCLE" | "RECTANGLE">;
12
+ export type AvatarSize = EnumString<typeof AvatarSize>;
13
+ export declare const AvatarSize: Pick<{
14
+ readonly XS: "xs";
15
+ readonly SM: "sm";
16
+ readonly MD: "md";
17
+ readonly LG: "lg";
18
+ readonly XL: "xl";
19
+ readonly XXL: "xxl";
20
+ }, "SM" | "MD" | "LG" | "XL">;
21
+ export type AvatarVariant = EnumString<typeof AvatarVariant>;
22
+ export declare const AvatarVariant: Pick<{
23
+ readonly NEUTRAL: "neutral";
24
+ readonly PRIMARY: "primary";
25
+ readonly ACCENT: "accent";
26
+ readonly SUCCESS: "success";
27
+ readonly WARNING: "warning";
28
+ readonly DANGER: "danger";
29
+ readonly GHOST: "ghost";
30
+ }, "NEUTRAL" | "PRIMARY">;
8
31
  export declare class OdxAvatar extends CustomElement {
9
32
  shape?: AvatarShape;
10
33
  size?: AvatarSize;
@@ -1,3 +1,2 @@
1
1
  export * from './avatar.js';
2
- export * from './avatar.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { CustomElement } from '../../lib/main.js';
2
2
  import { PropertyValues } from 'lit';
3
- import { AvatarSize, AvatarVariant, OdxAvatar } from '../avatar/index.js';
3
+ import { AvatarSize, AvatarVariant, OdxAvatar } from '../avatar/avatar.js';
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
6
6
  'odx-avatar-group': OdxAvatarGroup;
@@ -1,11 +1,20 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { BadgeVariant } from './badge.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-badge': OdxBadge;
7
6
  }
8
7
  }
8
+ export type BadgeVariant = EnumString<typeof BadgeVariant>;
9
+ export declare const BadgeVariant: Pick<{
10
+ readonly NEUTRAL: "neutral";
11
+ readonly PRIMARY: "primary";
12
+ readonly ACCENT: "accent";
13
+ readonly SUCCESS: "success";
14
+ readonly WARNING: "warning";
15
+ readonly DANGER: "danger";
16
+ readonly GHOST: "ghost";
17
+ }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
9
18
  export declare class OdxBadge extends CustomElement {
10
19
  compact?: boolean;
11
20
  pulse?: boolean;
@@ -1,3 +1,2 @@
1
1
  export * from './badge.js';
2
- export * from './badge.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,36 @@
1
+ import { EnumString } from '../../lib/main.js';
1
2
  import { InteractiveElement } from '../../cdk/main.js';
2
3
  import { TemplateResult } from 'lit';
3
- import { ButtonBadgeAlign, ButtonSize, ButtonVariant } from './button.models.js';
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
6
6
  'odx-button': OdxButton;
7
7
  }
8
8
  }
9
+ export type ButtonBadgeAlign = EnumString<typeof ButtonBadgeAlign>;
10
+ export declare const ButtonBadgeAlign: {
11
+ readonly START: "start";
12
+ readonly CENTER: "center";
13
+ readonly END: "end";
14
+ };
15
+ export type ButtonSize = EnumString<typeof ButtonSize>;
16
+ export declare const ButtonSize: 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
+ }, "XS" | "SM" | "MD" | "LG">;
24
+ export type ButtonVariant = EnumString<typeof ButtonVariant>;
25
+ export declare const ButtonVariant: Pick<{
26
+ readonly NEUTRAL: "neutral";
27
+ readonly PRIMARY: "primary";
28
+ readonly ACCENT: "accent";
29
+ readonly SUCCESS: "success";
30
+ readonly WARNING: "warning";
31
+ readonly DANGER: "danger";
32
+ readonly GHOST: "ghost";
33
+ }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "DANGER" | "GHOST">;
9
34
  /**
10
35
  * A button is clickable text or an icon that triggers an action on the page or in the background.
11
36
  * Depending on the action, content, and hierarchy, a button can be used on its own or grouped with
@@ -1,3 +1,2 @@
1
1
  export * from './button.js';
2
- export * from './button.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,19 @@
1
+ import { EnumString } from '../../lib/main.js';
1
2
  import { CheckboxGroupFormControl } from '../../cdk/main.js';
2
3
  import { TemplateResult } from 'lit';
3
- import { CheckboxGroupVariant } from './checkbox-group.models.js';
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
6
6
  'odx-checkbox-group': OdxCheckboxGroup;
7
7
  }
8
8
  }
9
+ export type CheckboxGroupLayout = EnumString<typeof CheckboxGroupLayout>;
10
+ export declare const CheckboxGroupLayout: {
11
+ readonly INLINE: "inline";
12
+ readonly LIST: "list";
13
+ };
9
14
  export declare class OdxCheckboxGroup extends CheckboxGroupFormControl {
10
15
  #private;
11
- variant?: CheckboxGroupVariant;
16
+ layout?: CheckboxGroupLayout;
12
17
  protected render(): TemplateResult;
13
18
  }
14
19
  //# sourceMappingURL=checkbox-group.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from './checkbox-group.js';
2
- export * from './checkbox-group.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,20 @@
1
- import { CanBeDisabled, CustomElement } from '../../lib/main.js';
1
+ import { CanBeDisabled, CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { PropertyValues, TemplateResult } from 'lit';
3
- import { ChipVariant } from './chip.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-chip': OdxChip;
7
6
  }
8
7
  }
8
+ export type ChipVariant = EnumString<typeof ChipVariant>;
9
+ export declare const ChipVariant: Pick<{
10
+ readonly NEUTRAL: "neutral";
11
+ readonly PRIMARY: "primary";
12
+ readonly ACCENT: "accent";
13
+ readonly SUCCESS: "success";
14
+ readonly WARNING: "warning";
15
+ readonly DANGER: "danger";
16
+ readonly GHOST: "ghost";
17
+ }, "NEUTRAL" | "PRIMARY" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
9
18
  declare const OdxChip_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof CustomElement;
10
19
  export declare class OdxChip extends OdxChip_base {
11
20
  #private;
@@ -1,3 +1,2 @@
1
1
  export * from './chip.js';
2
- export * from './chip.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,19 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { PropertyValueMap, TemplateResult } from 'lit';
3
- import { CircularProgressBarSize } from './circular-progress-bar.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-circular-progress-bar': OdxCircularProgressBar;
7
6
  }
8
7
  }
8
+ export type CircularProgressBarSize = EnumString<typeof CircularProgressBarSize>;
9
+ export declare const CircularProgressBarSize: Pick<{
10
+ readonly XS: "xs";
11
+ readonly SM: "sm";
12
+ readonly MD: "md";
13
+ readonly LG: "lg";
14
+ readonly XL: "xl";
15
+ readonly XXL: "xxl";
16
+ }, "SM" | "MD" | "LG">;
9
17
  /**
10
18
  * A circular progress bar that indicates the progress of a task.
11
19
  * @summary Displays the progress of a task in a circular format
@@ -33,7 +41,7 @@ export declare class OdxCircularProgressBar extends CustomElement {
33
41
  /**
34
42
  * The size of the progress bar.
35
43
  */
36
- size: CircularProgressBarSize;
44
+ size?: CircularProgressBarSize;
37
45
  firstUpdated(changes: PropertyValueMap<this>): void;
38
46
  disconnectedCallback(): void;
39
47
  protected render(): TemplateResult;
@@ -1,3 +1,2 @@
1
1
  export * from './circular-progress-bar.js';
2
- export * from './circular-progress-bar.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,16 @@
1
- import { CanBeDisabled } from '../../lib/main.js';
1
+ import { CanBeDisabled, EnumString } from '../../lib/main.js';
2
2
  import { OdxPopover, PopoverHost, PopoverPlacementOptions } from '../../cdk/main.js';
3
3
  import { PropertyValues, TemplateResult } from 'lit';
4
- import { DropdownPlacement } from './dropdown.models.js';
5
4
  declare global {
6
5
  interface HTMLElementTagNameMap {
7
6
  'odx-dropdown': OdxDropdown;
8
7
  }
9
8
  }
9
+ export type DropdownPlacement = EnumString<typeof DropdownPlacement>;
10
+ export declare const DropdownPlacement: {
11
+ readonly TOP: "top";
12
+ readonly BOTTOM: "bottom";
13
+ };
10
14
  declare const OdxDropdown_base: import('../../lib/main.js').Constructor<CanBeDisabled> & typeof PopoverHost;
11
15
  export declare class OdxDropdown extends OdxDropdown_base {
12
16
  #private;
@@ -1,3 +1,2 @@
1
1
  export * from './dropdown.js';
2
- export * from './dropdown.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,19 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { PropertyValueMap } from 'lit';
3
- import { HeadlineSize } from './headline.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-headline': OdxHeadline;
7
6
  }
8
7
  }
8
+ export type HeadlineSize = EnumString<typeof HeadlineSize>;
9
+ export declare const HeadlineSize: Pick<{
10
+ readonly XS: "xs";
11
+ readonly SM: "sm";
12
+ readonly MD: "md";
13
+ readonly LG: "lg";
14
+ readonly XL: "xl";
15
+ readonly XXL: "xxl";
16
+ }, "SM" | "MD" | "LG" | "XL">;
9
17
  export declare class OdxHeadline extends CustomElement {
10
18
  size?: HeadlineSize;
11
19
  protected willUpdate(props: PropertyValueMap<this>): void;
@@ -1,3 +1,2 @@
1
1
  export * from './headline.js';
2
- export * from './headline.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -19,6 +19,7 @@ declare global {
19
19
  * @slot - Contains button text
20
20
  */
21
21
  export declare class OdxIconButton extends OdxButton {
22
+ float: boolean;
22
23
  icon?: AvailableIcons;
23
24
  protected renderContent(): TemplateResult;
24
25
  }
@@ -1,3 +1,2 @@
1
1
  export * from './inline-message.js';
2
- export * from './inline-message.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,15 +1,24 @@
1
- import { AvailableIcons, CustomElement } from '../../lib/main.js';
1
+ import { AvailableIcons, CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { InlineMessageVariant } from './inline-message.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-inline-message': OdxInlineMessage;
7
6
  }
8
7
  }
8
+ export type InlineMessageVariant = EnumString<typeof InlineMessageVariant>;
9
+ export declare const InlineMessageVariant: Pick<{
10
+ readonly NEUTRAL: "neutral";
11
+ readonly PRIMARY: "primary";
12
+ readonly ACCENT: "accent";
13
+ readonly SUCCESS: "success";
14
+ readonly WARNING: "warning";
15
+ readonly DANGER: "danger";
16
+ readonly GHOST: "ghost";
17
+ }, "NEUTRAL" | "ACCENT" | "SUCCESS" | "WARNING" | "DANGER">;
9
18
  export declare class OdxInlineMessage extends CustomElement {
10
19
  closable: boolean;
11
20
  emphasized: boolean;
12
- icon?: AvailableIcons;
21
+ icon?: AvailableIcons | null;
13
22
  variant?: InlineMessageVariant;
14
23
  show(): void;
15
24
  hide(): Promise<void>;
@@ -1,3 +1,2 @@
1
1
  export * from './input.js';
2
- export * from './input.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { CustomElement } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { InputVariant } from './input.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-input': OdxInput;
@@ -15,7 +14,6 @@ export declare class OdxInput extends OdxInput_base {
15
14
  clearable: boolean;
16
15
  placeholder: string;
17
16
  type: HTMLInputElement['type'];
18
- variant?: InputVariant | null;
19
17
  clear(): void;
20
18
  focus(): void;
21
19
  protected render(): TemplateResult;
@@ -1,3 +1,2 @@
1
1
  export * from './logo.js';
2
- export * from './logo.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,18 @@
1
- import { CustomElement } from '../../lib/main.js';
2
- import { LogoSize } from './logo.models.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
3
2
  declare global {
4
3
  interface HTMLElementTagNameMap {
5
4
  'odx-logo': OdxLogo;
6
5
  }
7
6
  }
7
+ export type LogoSize = EnumString<typeof LogoSize>;
8
+ export declare const LogoSize: Pick<{
9
+ readonly XS: "xs";
10
+ readonly SM: "sm";
11
+ readonly MD: "md";
12
+ readonly LG: "lg";
13
+ readonly XL: "xl";
14
+ readonly XXL: "xxl";
15
+ }, "XS" | "SM" | "MD" | "LG" | "XL">;
8
16
  export declare class OdxLogo extends CustomElement {
9
17
  size?: LogoSize;
10
18
  compact: boolean;
@@ -52,9 +52,11 @@ export * from './slider/index.js';
52
52
  export * from './spacer/index.js';
53
53
  export * from './spinbox/index.js';
54
54
  export * from './stack/index.js';
55
+ export * from './status/index.js';
55
56
  export * from './switch/index.js';
56
57
  export * from './table/index.js';
57
58
  export * from './text/index.js';
59
+ export * from './timeline/index.js';
58
60
  export * from './title/index.js';
59
61
  export * from './toast/index.js';
60
62
  export * from './toggle-button/index.js';
@@ -1,3 +1,2 @@
1
1
  export * from './modal.js';
2
- export * from './modal.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,15 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { PropertyValues, TemplateResult } from 'lit';
3
- import { ModalVariant } from './modal.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-modal': OdxModal;
7
6
  }
8
7
  }
8
+ export type ModalLayout = EnumString<typeof ModalLayout>;
9
+ export declare const ModalLayout: {
10
+ MODAL: string;
11
+ SIDESHEET: string;
12
+ };
9
13
  export type ModalHookFn = (modal: OdxModal) => Promise<void> | void;
10
14
  export type ModalGuardFn = (modal: OdxModal) => Promise<boolean> | boolean;
11
15
  export declare class OdxModal extends CustomElement {
@@ -17,7 +21,7 @@ export declare class OdxModal extends CustomElement {
17
21
  backdropDisabled?: boolean;
18
22
  dismissable?: boolean;
19
23
  open: boolean;
20
- variant?: ModalVariant | null;
24
+ layout?: ModalLayout;
21
25
  constructor();
22
26
  connectedCallback(): void;
23
27
  canShow?: ModalGuardFn;
@@ -1,3 +1,2 @@
1
1
  export * from './navigation-item.js';
2
- export * from './navigation-item.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,19 @@
1
- import { CanBeSelected } from '../../lib/main.js';
1
+ import { CanBeSelected, EnumString } from '../../lib/main.js';
2
2
  import { InteractiveElement } from '../../cdk/main.js';
3
- import { NavigationItemSize } from './navigation-item.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-navigation-item': OdxNavigationItem;
7
6
  }
8
7
  }
8
+ export type NavigationItemSize = EnumString<typeof NavigationItemSize>;
9
+ export declare const NavigationItemSize: Pick<{
10
+ readonly XS: "xs";
11
+ readonly SM: "sm";
12
+ readonly MD: "md";
13
+ readonly LG: "lg";
14
+ readonly XL: "xl";
15
+ readonly XXL: "xxl";
16
+ }, "MD" | "LG">;
9
17
  declare const OdxNavigationItem_base: import('../../lib/main.js').Constructor<CanBeSelected> & typeof InteractiveElement;
10
18
  export declare class OdxNavigationItem extends OdxNavigationItem_base {
11
19
  size?: NavigationItemSize | null;
@@ -1,3 +1,2 @@
1
1
  export * from './page.js';
2
- export * from './page.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,16 +1,24 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { PageAlignment, PageLayout } from './page.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-page': OdxPage;
7
6
  }
8
7
  }
8
+ export type PageAlignment = EnumString<typeof PageAlignment>;
9
+ export declare const PageAlignment: {
10
+ readonly CENTER: "center";
11
+ };
12
+ export type PageLayout = EnumString<typeof PageLayout>;
13
+ export declare const PageLayout: {
14
+ readonly NARROW: "narrow";
15
+ readonly WIDE: "wide";
16
+ };
9
17
  export declare class OdxPage extends CustomElement {
10
18
  headerElement: HTMLElement;
11
19
  subheaderElement: HTMLElement;
12
- alignment?: PageAlignment | null;
13
- layout?: PageLayout | null;
20
+ alignment?: PageAlignment;
21
+ layout?: PageLayout;
14
22
  firstUpdated(): void;
15
23
  protected render(): TemplateResult;
16
24
  }
@@ -1,3 +1,2 @@
1
1
  export * from './progress-bar.js';
2
- export * from './progress-bar.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,16 @@
1
- import { CustomElement } from '../../lib/main.js';
1
+ import { CustomElement, EnumString } from '../../lib/main.js';
2
2
  import { TemplateResult } from 'lit';
3
- import { ProgressState } from './progress-bar.models.js';
4
3
  declare global {
5
4
  interface HTMLElementTagNameMap {
6
5
  'odx-progress-bar': OdxProgressBar;
7
6
  }
8
7
  }
8
+ export type ProgressState = EnumString<typeof ProgressState>;
9
+ export declare const ProgressState: {
10
+ readonly CONFIRM: "confirm";
11
+ readonly SUCCESS: "success";
12
+ readonly ERROR: "error";
13
+ };
9
14
  export declare class OdxProgressBar extends CustomElement {
10
15
  readonly content: HTMLElement[];
11
16
  indeterminate: boolean;
@@ -1,3 +1,2 @@
1
1
  export * from './radio-group.js';
2
- export * from './radio-group.models.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,16 @@
1
+ import { EnumString } from '../../lib/main.js';
1
2
  import { RadioGroupFormControl } from '../../cdk/main.js';
2
- import { RadioGroupVariant } from './radio-group.models.js';
3
3
  declare global {
4
4
  interface HTMLElementTagNameMap {
5
5
  'odx-radio-group': OdxRadioGroup;
6
6
  }
7
7
  }
8
+ export type RadioGroupLayout = EnumString<typeof RadioGroupLayout>;
9
+ export declare const RadioGroupLayout: {
10
+ readonly INLINE: "inline";
11
+ readonly LIST: "list";
12
+ };
8
13
  export declare class OdxRadioGroup extends RadioGroupFormControl {
9
- variant?: RadioGroupVariant;
14
+ layout?: RadioGroupLayout;
10
15
  }
11
16
  //# sourceMappingURL=radio-group.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './search-bar.events.js';
2
2
  export * from './search-bar.js';
3
- export * from './search-bar.models.js';
4
3
  //# sourceMappingURL=index.d.ts.map