@redvars/peacock 3.6.2 → 3.7.0

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 (200) hide show
  1. package/dist/ButtonConstants-D06bY4uy.js +114 -0
  2. package/dist/ButtonConstants-D06bY4uy.js.map +1 -0
  3. package/dist/{BaseHyperlinkMixin-BNuwbiEf.js → NativeHyperlinkMixin-DrYXyfMQ.js} +8 -10
  4. package/dist/NativeHyperlinkMixin-DrYXyfMQ.js.map +1 -0
  5. package/dist/assets/components.css +1 -1
  6. package/dist/assets/components.css.map +1 -1
  7. package/dist/assets/styles.css +1 -1
  8. package/dist/assets/styles.css.map +1 -1
  9. package/dist/button-colors-Dwnez1tR.js +586 -0
  10. package/dist/button-colors-Dwnez1tR.js.map +1 -0
  11. package/dist/button-group.js +8 -8
  12. package/dist/button-group.js.map +1 -1
  13. package/dist/button.js +236 -133
  14. package/dist/button.js.map +1 -1
  15. package/dist/calendar-column-view.js +0 -1
  16. package/dist/calendar-column-view.js.map +1 -1
  17. package/dist/calendar-month-view.js +0 -1
  18. package/dist/calendar-month-view.js.map +1 -1
  19. package/dist/canvas.js +126 -107
  20. package/dist/canvas.js.map +1 -1
  21. package/dist/card-content.js +0 -1
  22. package/dist/card-content.js.map +1 -1
  23. package/dist/card.js +96 -90
  24. package/dist/card.js.map +1 -1
  25. package/dist/cb-compound-expression.js +4 -1
  26. package/dist/cb-compound-expression.js.map +1 -1
  27. package/dist/cb-divider.js +0 -1
  28. package/dist/cb-divider.js.map +1 -1
  29. package/dist/cb-expression.js +0 -2
  30. package/dist/cb-expression.js.map +1 -1
  31. package/dist/cb-predicate.js +0 -1
  32. package/dist/cb-predicate.js.map +1 -1
  33. package/dist/code-highlighter.js +23 -6
  34. package/dist/code-highlighter.js.map +1 -1
  35. package/dist/custom-elements-jsdocs.json +5079 -17882
  36. package/dist/custom-elements.json +19272 -19314
  37. package/dist/fab.js +181 -117
  38. package/dist/fab.js.map +1 -1
  39. package/dist/flow-designer.js +4 -4
  40. package/dist/icon-button-DJ0kZXYr.js +318 -0
  41. package/dist/icon-button-DJ0kZXYr.js.map +1 -0
  42. package/dist/index.js +7 -7
  43. package/dist/{navigation-rail-CD7IrqbN.js → navigation-rail-CM_svs5_.js} +1311 -730
  44. package/dist/navigation-rail-CM_svs5_.js.map +1 -0
  45. package/dist/observe-slot-change-D8Xg-kSS.js +60 -0
  46. package/dist/observe-slot-change-D8Xg-kSS.js.map +1 -0
  47. package/dist/peacock-loader.js +10 -7
  48. package/dist/peacock-loader.js.map +1 -1
  49. package/dist/popover-content.js +0 -1
  50. package/dist/popover-content.js.map +1 -1
  51. package/dist/search.js +15 -15
  52. package/dist/search.js.map +1 -1
  53. package/dist/src/__controllers/attachable-controller.d.ts +109 -0
  54. package/dist/src/__mixins/{BaseButtonMixin.d.ts → NativeButtonMixin.d.ts} +3 -3
  55. package/dist/src/__mixins/{BaseHyperlinkMixin.d.ts → NativeHyperlinkMixin.d.ts} +3 -4
  56. package/dist/src/__utils/is-link.d.ts +1 -0
  57. package/dist/src/__utils/observe-slot-change.d.ts +1 -1
  58. package/dist/src/accordion/accordion-item.d.ts +0 -1
  59. package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +0 -1
  60. package/dist/src/button/ButtonConstants.d.ts +1 -0
  61. package/dist/src/button/GroupButtonInterface.d.ts +4 -0
  62. package/dist/src/button/button/button.d.ts +32 -7
  63. package/dist/src/button/button-group/button-group.d.ts +2 -1
  64. package/dist/src/button/icon-button/icon-button.d.ts +26 -5
  65. package/dist/src/button/index.d.ts +1 -1
  66. package/dist/src/calendar/calendar-column-view.d.ts +0 -1
  67. package/dist/src/calendar/calendar-month-view.d.ts +0 -1
  68. package/dist/src/canvas/canvas.d.ts +3 -3
  69. package/dist/src/card/card-content.d.ts +0 -1
  70. package/dist/src/card/card.d.ts +9 -6
  71. package/dist/src/chip/chip/chip.d.ts +22 -3
  72. package/dist/src/condition-builder/cb-compound-expression.d.ts +0 -1
  73. package/dist/src/condition-builder/cb-divider.d.ts +0 -1
  74. package/dist/src/condition-builder/cb-expression.d.ts +0 -1
  75. package/dist/src/condition-builder/cb-predicate.d.ts +0 -1
  76. package/dist/src/fab/fab.d.ts +20 -6
  77. package/dist/src/field/field.d.ts +1 -0
  78. package/dist/src/focus-ring/focus-ring.d.ts +26 -20
  79. package/dist/src/image/image.d.ts +2 -2
  80. package/dist/src/index.d.ts +1 -0
  81. package/dist/src/input/input.d.ts +1 -3
  82. package/dist/src/item/index.d.ts +1 -0
  83. package/dist/src/item/item.d.ts +49 -0
  84. package/dist/src/link/link.d.ts +1 -1
  85. package/dist/src/list/list-item.d.ts +1 -2
  86. package/dist/src/menu/menu-item/menu-item.d.ts +9 -11
  87. package/dist/src/menu/sub-menu/sub-menu.d.ts +1 -1
  88. package/dist/src/navigation-rail/navigation-rail-item.d.ts +0 -2
  89. package/dist/src/navigation-rail/navigation-rail.d.ts +2 -6
  90. package/dist/src/popover/popover-content.d.ts +0 -1
  91. package/dist/src/ripple/ripple.d.ts +9 -1
  92. package/dist/src/search/search.d.ts +2 -6
  93. package/dist/src/segmented-button/segmented-button.d.ts +0 -1
  94. package/dist/src/select/option.d.ts +0 -1
  95. package/dist/src/sidebar-menu/sidebar-menu-item.d.ts +0 -1
  96. package/dist/src/sidebar-menu/sidebar-sub-menu.d.ts +0 -1
  97. package/dist/src/tabs/tab-panel.d.ts +0 -1
  98. package/dist/src/tabs/tab.d.ts +4 -6
  99. package/dist/test/item.test.d.ts +1 -0
  100. package/dist/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +4 -2
  102. package/readme.md +2 -2
  103. package/scss/components.scss +0 -1
  104. package/scss/mixin.scss +33 -13
  105. package/scss/styles.scss +1 -3
  106. package/src/__controllers/attachable-controller.ts +198 -0
  107. package/src/__mixins/NativeButtonMixin.ts +87 -0
  108. package/src/__mixins/{BaseHyperlinkMixin.ts → NativeHyperlinkMixin.ts} +15 -15
  109. package/src/__utils/is-link.ts +3 -0
  110. package/src/__utils/observe-slot-change.ts +46 -14
  111. package/src/accordion/accordion-item.scss +1 -1
  112. package/src/accordion/accordion-item.ts +0 -1
  113. package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +0 -1
  114. package/src/button/ButtonConstants.ts +1 -0
  115. package/src/button/GroupButtonInterface.ts +4 -0
  116. package/src/button/button/button-colors.scss +2 -2
  117. package/src/button/button/button-layers.scss +124 -0
  118. package/src/button/button/button-sizes.scss +31 -53
  119. package/src/button/button/button.scss +139 -262
  120. package/src/button/button/button.ts +260 -106
  121. package/src/button/button/only-button.scss +13 -0
  122. package/src/button/button-group/button-group.ts +59 -17
  123. package/src/button/icon-button/icon-button-sizes.scss +12 -27
  124. package/src/button/icon-button/icon-button.ts +191 -83
  125. package/src/button/index.ts +1 -1
  126. package/src/calendar/calendar-column-view.ts +0 -1
  127. package/src/calendar/calendar-month-view.ts +0 -1
  128. package/src/canvas/canvas.scss +18 -6
  129. package/src/canvas/canvas.ts +125 -103
  130. package/src/card/card-content.ts +2 -3
  131. package/src/card/card.scss +87 -95
  132. package/src/card/card.ts +62 -60
  133. package/src/chip/chip/chip.scss +66 -71
  134. package/src/chip/chip/chip.ts +155 -56
  135. package/src/code-highlighter/code-highlighter.scss +1 -1
  136. package/src/code-highlighter/code-highlighter.ts +20 -5
  137. package/src/condition-builder/cb-compound-expression.scss +4 -0
  138. package/src/condition-builder/cb-compound-expression.ts +0 -1
  139. package/src/condition-builder/cb-divider.ts +0 -1
  140. package/src/condition-builder/cb-expression.scss +0 -1
  141. package/src/condition-builder/cb-expression.ts +0 -1
  142. package/src/condition-builder/cb-predicate.ts +0 -1
  143. package/src/elevation/elevation.scss +5 -1
  144. package/src/empty-state/empty-state.scss +1 -0
  145. package/src/fab/fab-colors.scss +2 -2
  146. package/src/fab/fab-sizes.scss +24 -34
  147. package/src/fab/fab.scss +77 -71
  148. package/src/fab/fab.ts +141 -65
  149. package/src/field/field.ts +6 -0
  150. package/src/focus-ring/focus-ring.ts +81 -72
  151. package/src/image/image.scss +21 -16
  152. package/src/image/image.ts +13 -14
  153. package/src/index.ts +1 -0
  154. package/src/input/input.ts +16 -25
  155. package/src/item/index.ts +1 -0
  156. package/src/item/item.scss +195 -0
  157. package/src/item/item.ts +362 -0
  158. package/src/link/link.scss +1 -10
  159. package/src/link/link.ts +4 -2
  160. package/src/list/list-item.ts +8 -8
  161. package/src/menu/menu/menu.ts +5 -9
  162. package/src/menu/menu-item/menu-item.scss +30 -108
  163. package/src/menu/menu-item/menu-item.ts +102 -133
  164. package/src/menu/sub-menu/sub-menu.ts +6 -3
  165. package/src/navigation-rail/navigation-rail-item.scss +5 -0
  166. package/src/navigation-rail/navigation-rail-item.ts +10 -15
  167. package/src/navigation-rail/navigation-rail.ts +2 -6
  168. package/src/peacock-loader.ts +5 -1
  169. package/src/popover/popover-content.ts +0 -1
  170. package/src/ripple/ripple.ts +52 -20
  171. package/src/search/search.scss +3 -0
  172. package/src/search/search.ts +11 -16
  173. package/src/segmented-button/segmented-button.ts +0 -1
  174. package/src/select/option.ts +1 -2
  175. package/src/select/select.scss +1 -10
  176. package/src/select/select.ts +2 -0
  177. package/src/sidebar-menu/sidebar-menu-item.ts +0 -1
  178. package/src/sidebar-menu/sidebar-sub-menu.ts +0 -1
  179. package/src/skeleton/skeleton.scss +5 -1
  180. package/src/tabs/tab-panel.ts +0 -1
  181. package/src/tabs/tab.ts +60 -70
  182. package/src/text/text.css-component.scss +3 -21
  183. package/src/tooltip/tooltip.scss +5 -8
  184. package/src/tooltip/tooltip.ts +1 -2
  185. package/dist/BaseButton-BNFAYn-S.js +0 -219
  186. package/dist/BaseButton-BNFAYn-S.js.map +0 -1
  187. package/dist/BaseHyperlinkMixin-BNuwbiEf.js.map +0 -1
  188. package/dist/button-colors-AvGh22Zn.js +0 -561
  189. package/dist/button-colors-AvGh22Zn.js.map +0 -1
  190. package/dist/icon-button-ohxHhy4t.js +0 -247
  191. package/dist/icon-button-ohxHhy4t.js.map +0 -1
  192. package/dist/navigation-rail-CD7IrqbN.js.map +0 -1
  193. package/dist/observe-slot-change-BGJfgg2E.js +0 -31
  194. package/dist/observe-slot-change-BGJfgg2E.js.map +0 -1
  195. package/dist/src/button/BaseButton.d.ts +0 -28
  196. package/dist/src/focus-ring/FocusAttachableController.d.ts +0 -8
  197. package/src/__mixins/BaseButtonMixin.ts +0 -83
  198. package/src/button/BaseButton.ts +0 -113
  199. package/src/focus-ring/FocusAttachableController.ts +0 -28
  200. package/src/popover/tooltip.css-component.scss +0 -19
@@ -1,4 +1,6 @@
1
- import { BaseButton } from '../BaseButton.js';
1
+ import { LitElement, nothing } from 'lit';
2
+ import { GroupButtonInterface } from '@/button/GroupButtonInterface.js';
3
+ declare const Button_base: typeof LitElement & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
2
4
  /**
3
5
  * @label Button
4
6
  * @tag wc-button
@@ -41,22 +43,22 @@ import { BaseButton } from '../BaseButton.js';
41
43
  * ```
42
44
  * @tags display
43
45
  */
44
- export declare class Button extends BaseButton {
46
+ export declare class Button extends Button_base implements GroupButtonInterface {
45
47
  static styles: import("lit").CSSResultGroup[];
46
48
  /**
47
49
  * Icon alignment.
48
50
  * Possible values are `"start"`, `"end"`. Defaults to `"end"`.
49
51
  */
50
- iconAlign: 'start' | 'end';
52
+ trailingIcon: boolean;
51
53
  /**
52
54
  * Button size.
53
55
  * Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
54
56
  */
55
57
  size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
56
58
  /**
57
- * Type is preset of color and variant. Type will be only applied.
58
- *
59
- */
59
+ * Type is preset of color and variant. Type will be only applied.
60
+ *
61
+ */
60
62
  type?: 'primary' | 'secondary' | 'tertiary';
61
63
  /**
62
64
  * The visual style of the button.
@@ -79,11 +81,34 @@ export declare class Button extends BaseButton {
79
81
  configAria?: {
80
82
  [key: string]: any;
81
83
  };
82
- private slotHasContent;
83
84
  focus(): void;
84
85
  blur(): void;
85
86
  firstUpdated(): void;
86
87
  __convertTypeToVariantAndColor(): void;
87
88
  render(): import("lit-html").TemplateResult<1>;
89
+ renderButtonElement(): import("lit-html").TemplateResult<1>;
88
90
  renderButtonContent(): import("lit-html").TemplateResult<1>;
91
+ skeleton: boolean;
92
+ toggle: boolean;
93
+ selected: boolean;
94
+ /**
95
+ * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
96
+ */
97
+ throttleDelay: number;
98
+ tooltip?: string;
99
+ /**
100
+ * States
101
+ */
102
+ pressed: boolean;
103
+ private __iconSlotCleanup;
104
+ private __labelSlotCleanup;
105
+ connectedCallback(): void;
106
+ disconnectedCallback(): void;
107
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
108
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
109
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
110
+ private getControl;
111
+ __renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
112
+ __renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
89
113
  }
114
+ export {};
@@ -18,7 +18,7 @@ import { IconButton } from '../icon-button/icon-button.js';
18
18
  *
19
19
  * @tags controls
20
20
  */
21
- export declare class ButtonGroup extends LitElement {
21
+ declare class ButtonGroup extends LitElement {
22
22
  static styles: import("lit").CSSResultGroup[];
23
23
  static Button: typeof Button;
24
24
  static IconButton: typeof IconButton;
@@ -58,3 +58,4 @@ export declare class ButtonGroup extends LitElement {
58
58
  private _syncChildren;
59
59
  render(): import("lit-html").TemplateResult<1>;
60
60
  }
61
+ export default ButtonGroup;
@@ -1,4 +1,6 @@
1
- import { BaseButton } from '../BaseButton.js';
1
+ import { LitElement, nothing } from 'lit';
2
+ import { GroupButtonInterface } from '@/button/GroupButtonInterface.js';
3
+ declare const IconButton_base: typeof LitElement & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
2
4
  /**
3
5
  * @label Icon Button
4
6
  * @tag wc-icon-button
@@ -42,7 +44,7 @@ import { BaseButton } from '../BaseButton.js';
42
44
  * ```
43
45
  * @tags display
44
46
  */
45
- export declare class IconButton extends BaseButton {
47
+ export declare class IconButton extends IconButton_base implements GroupButtonInterface {
46
48
  static styles: import("lit").CSSResultGroup[];
47
49
  /**
48
50
  * Button size.
@@ -50,9 +52,9 @@ export declare class IconButton extends BaseButton {
50
52
  */
51
53
  size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
52
54
  /**
53
- * Type is preset of color and variant. Type will be only applied.
54
- *
55
- */
55
+ * Type is preset of color and variant. Type will be only applied.
56
+ *
57
+ */
56
58
  type?: 'primary' | 'secondary' | 'tertiary';
57
59
  /**
58
60
  * The visual style of the button.
@@ -75,10 +77,29 @@ export declare class IconButton extends BaseButton {
75
77
  configAria?: {
76
78
  [key: string]: any;
77
79
  };
80
+ skeleton: boolean;
81
+ toggle: boolean;
82
+ selected: boolean;
83
+ /**
84
+ * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
85
+ */
86
+ throttleDelay: number;
87
+ tooltip?: string;
88
+ pressed: boolean;
89
+ readonly buttonElement: HTMLElement | null;
90
+ connectedCallback(): void;
91
+ disconnectedCallback(): void;
92
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
93
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
94
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
95
+ __renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
96
+ __renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
78
97
  focus(): void;
79
98
  blur(): void;
80
99
  firstUpdated(): void;
81
100
  __convertTypeToVariantAndColor(): void;
82
101
  render(): import("lit-html").TemplateResult<1>;
102
+ renderButtonElement(): import("lit-html").TemplateResult<1>;
83
103
  renderButtonContent(): import("lit-html").TemplateResult<1>;
84
104
  }
105
+ export {};
@@ -1,3 +1,3 @@
1
1
  export { Button } from './button/button.js';
2
- export { ButtonGroup } from './button-group/button-group.js';
2
+ export { default as ButtonGroup } from './button-group/button-group.js';
3
3
  export { IconButton } from './icon-button/icon-button.js';
@@ -4,7 +4,6 @@ import { CalendarEvent } from './calendar-event.js';
4
4
  * @label Calendar Column View
5
5
  * @tag wc-calendar-column-view
6
6
  * @rawTag calendar-column-view
7
- * @parentRawTag calendar
8
7
  * @summary Internal column view component for the calendar (day/week views).
9
8
  */
10
9
  export declare class CalendarColumnView extends LitElement {
@@ -4,7 +4,6 @@ import { CalendarEvent } from './calendar-event.js';
4
4
  * @label Calendar Month View
5
5
  * @tag wc-calendar-month-view
6
6
  * @rawTag calendar-month-view
7
- * @parentRawTag calendar
8
7
  * @summary Internal month view component for the calendar.
9
8
  */
10
9
  export declare class CalendarMonthView extends LitElement {
@@ -81,12 +81,12 @@ export declare class Canvas extends LitElement {
81
81
  * Optional viewbox override string (e.g. "0 0 100 100").
82
82
  */
83
83
  viewbox?: string;
84
- private unitSize;
85
- private gap;
86
84
  private static getNextPoint;
87
- private static updateComputationArea;
85
+ private static updateExtents;
88
86
  private static getStrokeVariantClasses;
89
87
  private computeShapes;
88
+ private renderBackgroundSvg;
89
+ private renderShapesSvg;
90
90
  protected render(): import("lit-html").TemplateResult<1>;
91
91
  }
92
92
  export {};
@@ -3,7 +3,6 @@ import { LitElement } from 'lit';
3
3
  * @label Card Content
4
4
  * @tag wc-card-content
5
5
  * @rawTag card-content
6
- * @parentRawTag
7
6
  *
8
7
  * @cssprop --card-content-padding - Inner padding for the card container. Defaults to 1rem.
9
8
  *
@@ -1,6 +1,6 @@
1
1
  import { LitElement, nothing } from 'lit';
2
2
  type CardVariant = 'elevated' | 'filled' | 'outlined';
3
- declare const Card_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseHyperlinkMixin.js").BaseHyperlinkInterface>;
3
+ declare const Card_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface>;
4
4
  /**
5
5
  * @label Card
6
6
  * @tag wc-card
@@ -12,9 +12,11 @@ declare const Card_base: typeof LitElement & import("../__mixins/MixinConstructo
12
12
  *
13
13
  * @example
14
14
  * ```html
15
- * <wc-card variant="outlined">
16
- * <h3>Title</h3>
17
- * <p>Supportive text</p>
15
+ * <wc-card variant="outlined" style="padding-block: 1rem;">
16
+ * <wc-card-content>
17
+ * <h3 class="text-headline">Title</h3>
18
+ * <p class="text-body">Supportive text</p>
19
+ * </wc-card-content>
18
20
  * </wc-card>
19
21
  * ```
20
22
  */
@@ -25,8 +27,8 @@ export declare class Card extends Card_base {
25
27
  disabled: boolean;
26
28
  actionable: boolean;
27
29
  /**
28
- * If button is disabled, the reason why it is disabled.
29
- */
30
+ * If button is disabled, the reason why it is disabled.
31
+ */
30
32
  disabledReason: string;
31
33
  /**
32
34
  * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
@@ -45,6 +47,7 @@ export declare class Card extends Card_base {
45
47
  __renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
46
48
  __handlePress: (event: KeyboardEvent | MouseEvent) => void;
47
49
  render(): import("lit-html").TemplateResult<1>;
50
+ renderCardElement(isLinkElement: boolean, disableSlotTabbing: boolean): import("lit-html").TemplateResult<1>;
48
51
  renderCardContent(disableSlotTabbing: boolean): import("lit-html").TemplateResult<1>;
49
52
  }
50
53
  export {};
@@ -1,4 +1,5 @@
1
- import { BaseButton } from '@/button/BaseButton.js';
1
+ import { LitElement, nothing } from 'lit';
2
+ declare const Chip_base: typeof LitElement & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
2
3
  /**
3
4
  * @label Chip
4
5
  * @tag wc-chip
@@ -11,7 +12,7 @@ import { BaseButton } from '@/button/BaseButton.js';
11
12
  * <wc-chip>Chip content</wc-chip>
12
13
  * ```
13
14
  */
14
- export declare class Chip extends BaseButton {
15
+ export declare class Chip extends Chip_base {
15
16
  static styles: import("lit").CSSResultGroup[];
16
17
  /** If true, the tag will have a close icon. */
17
18
  dismissible: boolean;
@@ -22,12 +23,30 @@ export declare class Chip extends BaseButton {
22
23
  [key: string]: any;
23
24
  };
24
25
  private _hasIconSlotContent;
25
- private _isPressed;
26
+ skeleton: boolean;
27
+ toggle: boolean;
28
+ selected: boolean;
29
+ /**
30
+ * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
31
+ */
32
+ throttleDelay: number;
33
+ tooltip?: string;
34
+ pressed: boolean;
35
+ readonly buttonElement: HTMLElement | null;
36
+ connectedCallback(): void;
37
+ disconnectedCallback(): void;
38
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
39
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
40
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
41
+ __renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
42
+ __renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
26
43
  focus(): void;
27
44
  blur(): void;
28
45
  firstUpdated(): void;
29
46
  private _dismissClickHandler;
30
47
  private _renderCloseButton;
31
48
  render(): import("lit-html").TemplateResult<1>;
49
+ renderChipElement(): import("lit-html").TemplateResult<1>;
32
50
  renderChipContent(): import("lit-html").TemplateResult<1>;
33
51
  }
52
+ export {};
@@ -5,7 +5,6 @@ import { LitElement } from 'lit';
5
5
  * @rawTag cb-compound-expression
6
6
  * @summary A compound expression group in a condition builder that displays a field label, an optional condition operator divider, and slots for child expressions.
7
7
  * @tags condition-builder
8
- * @parentRawTag compound-builder
9
8
  *
10
9
  * @example
11
10
  * ```html
@@ -5,7 +5,6 @@ import { LitElement } from 'lit';
5
5
  * @rawTag cb-divider
6
6
  * @summary A divider line used within a condition builder to visually connect expressions with operator tags.
7
7
  * @tags condition-builder
8
- * @parentRawTag compound-builder
9
8
  *
10
9
  * @example
11
10
  * ```html
@@ -5,7 +5,6 @@ import { LitElement } from 'lit';
5
5
  * @rawTag cb-expression
6
6
  * @summary An expression row within a condition builder, containing an operator select and a slot for value inputs.
7
7
  * @tags condition-builder
8
- * @parentRawTag compound-builder
9
8
  *
10
9
  * @example
11
10
  * ```html
@@ -5,7 +5,6 @@ import { LitElement } from 'lit';
5
5
  * @rawTag cb-predicate
6
6
  * @summary A predicate container in a condition builder that can display conditions in horizontal or vertical layout with an optional logical operator divider.
7
7
  * @tags condition-builder
8
- * @parentRawTag compound-expression
9
8
  *
10
9
  * @example
11
10
  * ```html
@@ -1,5 +1,5 @@
1
- import { nothing } from 'lit';
2
- import { BaseButton } from '@/button/BaseButton.js';
1
+ import { LitElement, nothing } from 'lit';
2
+ declare const Fab_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
3
3
  /**
4
4
  * @label FAB
5
5
  * @tag wc-fab
@@ -22,7 +22,7 @@ import { BaseButton } from '@/button/BaseButton.js';
22
22
  * ```
23
23
  * @tags controls
24
24
  */
25
- export declare class Fab extends BaseButton {
25
+ export declare class Fab extends Fab_base {
26
26
  #private;
27
27
  static styles: import("lit").CSSResultGroup[];
28
28
  /**
@@ -69,12 +69,26 @@ export declare class Fab extends BaseButton {
69
69
  * Tooltip text shown on hover.
70
70
  */
71
71
  tooltip?: string;
72
- isPressed: boolean;
72
+ skeleton: boolean;
73
+ toggle: boolean;
74
+ selected: boolean;
75
+ /**
76
+ * States
77
+ */
78
+ pressed: boolean;
79
+ readonly buttonElement: HTMLElement | null;
80
+ connectedCallback(): void;
81
+ disconnectedCallback(): void;
82
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
83
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
84
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
85
+ __renderDisabledReason(softDisabled: boolean): typeof nothing | import("lit-html").TemplateResult<1>;
86
+ __renderTooltip(): typeof nothing | import("lit-html").TemplateResult<1>;
73
87
  focus(): void;
74
88
  blur(): void;
75
89
  firstUpdated(): void;
76
- __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
77
- __getDisabledReasonID(): string | typeof nothing;
78
90
  render(): import("lit-html").TemplateResult<1>;
91
+ __renderFabElement(isExtended: boolean): import("lit-html").TemplateResult<1>;
79
92
  __renderFabContent(isExtended: boolean): import("lit-html").TemplateResult<1>;
80
93
  }
94
+ export {};
@@ -17,6 +17,7 @@ import { LitElement, nothing } from 'lit';
17
17
  * @tags form
18
18
  */
19
19
  export declare class Field extends LitElement {
20
+ static shadowRootOptions: ShadowRootInit;
20
21
  static styles: import("lit").CSSResultGroup[];
21
22
  label: string;
22
23
  help: string;
@@ -1,4 +1,9 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { Attachable } from '@/__controllers/attachable-controller.js';
3
+ declare const HANDLED_BY_FOCUS_RING: unique symbol;
4
+ interface FocusRingEvent extends Event {
5
+ [HANDLED_BY_FOCUS_RING]: true;
6
+ }
2
7
  /**
3
8
  * @label Focus Ring
4
9
  *
@@ -9,29 +14,30 @@ import { LitElement } from 'lit';
9
14
  *
10
15
  *
11
16
  * @tags display
17
+ *
18
+ * @fires visibility-changed {Event} Fired whenever `visible` changes.
12
19
  */
13
- export declare class FocusRing extends LitElement {
20
+ export declare class FocusRing extends LitElement implements Attachable {
14
21
  static styles: import("lit").CSSResultGroup[];
22
+ /**
23
+ * Makes the focus ring visible.
24
+ */
15
25
  visible: boolean;
16
- for: string;
17
- private __boundFocusin;
18
- private __boundFocusout;
19
- private __boundPointerdown;
20
- render(): symbol;
21
- connectedCallback(): void;
22
- disconnectedCallback(): void;
23
- updated(changed: Map<string, unknown>): void;
24
- __focusin(): void;
25
- __focusout(): void;
26
- __pointerdown(): void;
27
26
  /**
28
- * Resolves the element that should receive focus-ring event listeners by id.
29
- * Prefers lookup from the current control's root node, then falls back to a
30
- * document-level lookup.
31
- *
32
- * @returns The resolved focus target, if one can be found.
27
+ * Makes the focus ring animate inwards instead of outwards.
33
28
  */
34
- __getFocusTarget(): HTMLElement | undefined;
35
- attach(): void;
29
+ inward: boolean;
30
+ get htmlFor(): string | null;
31
+ set htmlFor(htmlFor: string | null);
32
+ get control(): HTMLElement | null;
33
+ set control(control: HTMLElement | null);
34
+ private readonly attachableController;
35
+ attach(control: HTMLElement): void;
36
36
  detach(): void;
37
+ connectedCallback(): void;
38
+ /** @private */
39
+ handleEvent(event: FocusRingEvent): void;
40
+ private onControlChange;
41
+ update(changed: PropertyValues<FocusRing>): void;
37
42
  }
43
+ export {};
@@ -23,7 +23,7 @@ export declare class Image extends LitElement {
23
23
  preview: boolean;
24
24
  private _isDarkMode;
25
25
  private _loaded;
26
- private _previewOpen;
26
+ private _dialog?;
27
27
  private _intersectionObserver;
28
28
  private _themeCleanup;
29
29
  connectedCallback(): void;
@@ -32,6 +32,6 @@ export declare class Image extends LitElement {
32
32
  private _setupIntersectionObserver;
33
33
  private get _activeSrc();
34
34
  private _handleClick;
35
- private _closePreview;
35
+ private _handleDialogClick;
36
36
  render(): import("lit-html").TemplateResult<1>;
37
37
  }
@@ -37,6 +37,7 @@ export { Popover, PopoverContent } from './popover/index.js';
37
37
  export { Breadcrumb, BreadcrumbItem } from './breadcrumb/index.js';
38
38
  export { Menu, MenuItem, SubMenu } from './menu/index.js';
39
39
  export { List, ListItem } from './list/index.js';
40
+ export { Item } from './item/index.js';
40
41
  export { CodeHighlighter } from './code-highlighter/index.js';
41
42
  export { CodeEditor } from './code-editor/index.js';
42
43
  export { HtmlEditor } from './html-editor/index.js';
@@ -39,12 +39,10 @@ export declare class Input extends BaseInput {
39
39
  */
40
40
  private dirty;
41
41
  private inputElement?;
42
- private tabindex?;
42
+ focus(): Promise<void>;
43
43
  connectedCallback(): void;
44
44
  private handleInitialAttributes;
45
45
  private __handleInput;
46
- focus(): void;
47
- blur(): void;
48
46
  private __handleFocusChange;
49
47
  private __redispatchEvent;
50
48
  render(): import("lit-html").TemplateResult<1>;
@@ -0,0 +1 @@
1
+ export { Item } from './item.js';
@@ -0,0 +1,49 @@
1
+ import { LitElement } from 'lit';
2
+ declare const Item_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
3
+ /**
4
+ * @label Item
5
+ * @tag wc-item
6
+ * @rawTag item
7
+ *
8
+ * @summary A Material 3 item with start, text and end slots.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-item selected>
13
+ * <wc-icon slot="start" name="home"></wc-icon>
14
+ * <div slot="overline">Overline</div>
15
+ * <div slot="headline">Headline</div>
16
+ * <div slot="supporting-text">Supporting text</div>
17
+ * <div slot="trailing-supporting-text">Trailing</div>
18
+ * <wc-icon slot="end" name="chevron_right"></wc-icon>
19
+ * </wc-item>
20
+ * ```
21
+ * @tags display
22
+ */
23
+ export declare class Item extends Item_base {
24
+ static styles: import("lit").CSSResultGroup[];
25
+ static get observedAttributes(): string[];
26
+ private readonly __contentObserver;
27
+ private __capturedTabIndex?;
28
+ private __isCapturingTabIndex;
29
+ selected: boolean;
30
+ readonly itemElement: HTMLElement | null;
31
+ isPressed: boolean;
32
+ private __handleSlotChange;
33
+ private __hasNamedSlot;
34
+ private __hasDefaultSlot;
35
+ connectedCallback(): void;
36
+ disconnectedCallback(): void;
37
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
38
+ focus(): void;
39
+ blur(): void;
40
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
41
+ __handleKeyDown: (event: KeyboardEvent) => void;
42
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
43
+ private __getForwardedAttribute;
44
+ private __captureHostTabIndex;
45
+ render(): import("lit-html").TemplateResult<1>;
46
+ renderItemElement(cssClasses: any, role: string | undefined, tabIndex: string | undefined, ariaHasPopup: string | undefined, ariaControls: string | undefined, ariaExpanded: string | undefined): import("lit-html").TemplateResult<1>;
47
+ renderContent(): import("lit-html").TemplateResult<1>;
48
+ }
49
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- declare const Link_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("../__mixins/BaseHyperlinkMixin.js").BaseHyperlinkInterface>;
2
+ declare const Link_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface>;
3
3
  /**
4
4
  * @label Link
5
5
  * @tag wc-link
@@ -1,10 +1,9 @@
1
1
  import { LitElement } from 'lit';
2
- declare const ListItem_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseHyperlinkMixin.js").BaseHyperlinkInterface> & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseButtonMixin.js").BaseButtonInterface>;
2
+ declare const ListItem_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
3
3
  /**
4
4
  * @label List Item
5
5
  * @tag wc-list-item
6
6
  * @rawTag list-item
7
- * @parentRawTag list
8
7
  *
9
8
  * @summary A Material 3 list item with leading, trailing and content slots.
10
9
  *
@@ -1,10 +1,10 @@
1
1
  import { LitElement } from 'lit';
2
- declare const MenuItem_base: typeof LitElement & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseHyperlinkMixin.js").BaseHyperlinkInterface> & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseButtonMixin.js").BaseButtonInterface>;
2
+ import { Item } from '@/item/item.js';
3
+ declare const MenuItem_base: typeof LitElement & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeHyperlinkMixin.js").NativeHyperlinkInterface> & import("../../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/NativeButtonMixin.js").NativeButtonInterface>;
3
4
  /**
4
5
  * @label Menu Item
5
6
  * @tag wc-menu-item
6
7
  * @rawTag menu-item
7
- * @parentRawTag menu
8
8
  * @summary An item in a menu list.
9
9
  * @tags navigation
10
10
  *
@@ -21,19 +21,17 @@ export declare class MenuItem extends MenuItem_base {
21
21
  submenuOpen: boolean;
22
22
  variant: 'standard' | 'vibrant';
23
23
  static styles: import("lit").CSSResultGroup[];
24
- readonly itemElement: HTMLElement | null;
25
- /**
26
- * States
27
- */
28
- isPressed: boolean;
24
+ readonly itemElement: Item | null;
25
+ private readonly _contentObserver;
26
+ private _rovingTabIndex;
29
27
  connectedCallback(): void;
30
28
  disconnectedCallback(): void;
29
+ get tabIndex(): number;
30
+ set tabIndex(value: number);
31
31
  focus(): void;
32
32
  blur(): void;
33
- __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
34
- __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
35
- __handleKeyDown: (event: KeyboardEvent) => void;
36
- __handlePress: (event: KeyboardEvent | MouseEvent) => void;
33
+ private _hasNamedSlot;
34
+ private _hasDefaultSlot;
37
35
  render(): import("lit-html").TemplateResult<1>;
38
36
  renderContent(): import("lit-html").TemplateResult<1>;
39
37
  }
@@ -5,7 +5,6 @@ import { Menu } from '../menu/menu.js';
5
5
  * @label Sub Menu
6
6
  * @tag wc-sub-menu
7
7
  * @rawTag sub-menu
8
- * @parentRawTag menu
9
8
  * @summary Connects a menu item to a nested menu.
10
9
  */
11
10
  export declare class SubMenu extends LitElement {
@@ -18,6 +17,7 @@ export declare class SubMenu extends LitElement {
18
17
  private readonly _menus;
19
18
  private _openTimeout?;
20
19
  private _closeTimeout?;
20
+ private _resolveAnchorElement;
21
21
  private readonly _onChildMenuOpened;
22
22
  private readonly _onChildMenuClosed;
23
23
  get item(): MenuItem | null;
@@ -3,7 +3,6 @@ import { LitElement, nothing } from 'lit';
3
3
  * @label Navigation Rail Item
4
4
  * @tag wc-navigation-rail-item
5
5
  * @rawTag navigation-rail-item
6
- * @parentRawTag navigation-rail
7
6
  *
8
7
  * @summary An individual item within a navigation rail.
9
8
  * @overview
@@ -47,7 +46,6 @@ export declare class NavigationRailItem extends LitElement {
47
46
  __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
48
47
  __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
49
48
  __handlePress: (event: KeyboardEvent | MouseEvent) => void;
50
- __isLink(): boolean;
51
49
  __getDisabledReasonID(): string | typeof nothing;
52
50
  __renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
53
51
  __renderItemContent(): import("lit-html").TemplateResult<1>;
@@ -28,17 +28,13 @@ import { NavigationRailItem } from './navigation-rail-item.js';
28
28
  * ```html
29
29
  * <wc-navigation-rail>
30
30
  * <wc-navigation-rail-item active>
31
- * <wc-icon slot="icon">home</wc-icon>
31
+ * <wc-icon slot="icon" name="home"></wc-icon>
32
32
  * Home
33
33
  * </wc-navigation-rail-item>
34
34
  * <wc-navigation-rail-item>
35
- * <wc-icon slot="icon">search</wc-icon>
35
+ * <wc-icon slot="icon" name="search"></wc-icon>
36
36
  * Search
37
37
  * </wc-navigation-rail-item>
38
- * <wc-navigation-rail-item>
39
- * <wc-icon slot="icon">settings</wc-icon>
40
- * Settings
41
- * </wc-navigation-rail-item>
42
38
  * </wc-navigation-rail>
43
39
  * ```
44
40
  * @tags navigation