@redvars/peacock 3.2.10 → 3.3.1

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 (242) hide show
  1. package/dist/{PeacockComponent-CxJc63xj.js → IndividualComponent-tDnXrOLV.js} +3 -3
  2. package/dist/IndividualComponent-tDnXrOLV.js.map +1 -0
  3. package/dist/assets/components.css +1 -1
  4. package/dist/assets/components.css.map +1 -1
  5. package/dist/assets/styles.css +1 -1
  6. package/dist/assets/styles.css.map +1 -1
  7. package/dist/button-group-DA7xoziD.js +292 -0
  8. package/dist/button-group-DA7xoziD.js.map +1 -0
  9. package/dist/button-group.js +6 -107
  10. package/dist/button-group.js.map +1 -1
  11. package/dist/{button-DaL4va7Q.js → button-trIfcqC7.js} +21 -35
  12. package/dist/button-trIfcqC7.js.map +1 -0
  13. package/dist/button.js +5 -5
  14. package/dist/chart-donut.js +307 -0
  15. package/dist/chart-donut.js.map +1 -0
  16. package/dist/chart-doughnut.js +307 -0
  17. package/dist/chart-doughnut.js.map +1 -0
  18. package/dist/chart-pie.js +259 -0
  19. package/dist/chart-pie.js.map +1 -0
  20. package/dist/{class-map-BvQRv7eW.js → class-map-hJdvjl-W.js} +9 -3
  21. package/dist/class-map-hJdvjl-W.js.map +1 -0
  22. package/dist/clock.js +5 -6
  23. package/dist/clock.js.map +1 -1
  24. package/dist/code-editor.js +38 -25
  25. package/dist/code-editor.js.map +1 -1
  26. package/dist/code-highlighter.js +10 -14
  27. package/dist/code-highlighter.js.map +1 -1
  28. package/dist/custom-elements-jsdocs.json +8144 -3654
  29. package/dist/custom-elements.json +7925 -3901
  30. package/dist/{dispatch-event-utils-vbdiOSeC.js → dispatch-event-utils-B4odODQf.js} +2 -15
  31. package/dist/dispatch-event-utils-B4odODQf.js.map +1 -0
  32. package/dist/index.js +13 -10
  33. package/dist/index.js.map +1 -1
  34. package/dist/number-counter.js +12 -10
  35. package/dist/number-counter.js.map +1 -1
  36. package/dist/{observe-theme-change-NneLARW8.js → observe-theme-change-BISF-Gl5.js} +2 -2
  37. package/dist/{observe-theme-change-NneLARW8.js.map → observe-theme-change-BISF-Gl5.js.map} +1 -1
  38. package/dist/peacock-loader.js +94 -502
  39. package/dist/peacock-loader.js.map +1 -1
  40. package/dist/query-QBcUV-L_.js +15 -0
  41. package/dist/query-QBcUV-L_.js.map +1 -0
  42. package/dist/src/IndividualComponent.d.ts +1 -0
  43. package/dist/src/accordion/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +5 -4
  44. package/dist/src/accordion/{accordion/accordion.d.ts → accordion.d.ts} +6 -6
  45. package/dist/src/accordion/{accordion-item/index.d.ts → index.d.ts} +1 -0
  46. package/dist/src/avatar/avatar.d.ts +2 -2
  47. package/dist/src/badge/badge.d.ts +2 -2
  48. package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +9 -8
  49. package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +4 -3
  50. package/dist/src/button/button/button.d.ts +2 -2
  51. package/dist/src/button/button-group/button-group.d.ts +9 -5
  52. package/dist/src/button/icon-button/icon-button.d.ts +2 -2
  53. package/dist/src/chart-donut/chart-donut.d.ts +53 -0
  54. package/dist/src/chart-donut/index.d.ts +1 -0
  55. package/dist/src/chart-doughnut/chart-doughnut.d.ts +53 -0
  56. package/dist/src/chart-doughnut/index.d.ts +1 -0
  57. package/dist/src/chart-pie/chart-pie.d.ts +50 -0
  58. package/dist/src/chart-pie/index.d.ts +1 -0
  59. package/dist/src/checkbox/checkbox.d.ts +3 -6
  60. package/dist/src/chip/chip/chip.d.ts +4 -4
  61. package/dist/src/chip/tag/tag.d.ts +3 -3
  62. package/dist/src/clock/clock.d.ts +3 -4
  63. package/dist/src/code-editor/code-editor.d.ts +13 -10
  64. package/dist/src/code-highlighter/code-highlighter.d.ts +4 -7
  65. package/dist/src/container/container.d.ts +6 -11
  66. package/dist/src/date-picker/date-picker.d.ts +3 -3
  67. package/dist/src/divider/divider.d.ts +2 -2
  68. package/dist/src/elevation/elevation.d.ts +2 -2
  69. package/dist/src/empty-state/empty-state.d.ts +9 -2
  70. package/dist/src/field/field.d.ts +17 -0
  71. package/dist/src/focus-ring/focus-ring.d.ts +1 -1
  72. package/dist/src/icon/icon.d.ts +2 -2
  73. package/dist/src/image/image.d.ts +4 -12
  74. package/dist/src/index.d.ts +9 -1
  75. package/dist/src/input/input.d.ts +2 -2
  76. package/dist/src/link/link.d.ts +4 -5
  77. package/dist/src/menu/index.d.ts +3 -0
  78. package/dist/src/menu/menu/MenuSurfaceController.d.ts +18 -0
  79. package/dist/src/menu/menu/menu.d.ts +66 -8
  80. package/dist/src/menu/menu-item/menu-item.d.ts +24 -5
  81. package/dist/src/menu/sub-menu/sub-menu.d.ts +36 -0
  82. package/dist/src/number-counter/number-counter.d.ts +9 -7
  83. package/dist/src/number-field/number-field.d.ts +1 -1
  84. package/dist/src/pagination/index.d.ts +1 -0
  85. package/dist/src/pagination/pagination.d.ts +38 -0
  86. package/dist/src/popover/PopoverController.d.ts +4 -1
  87. package/dist/src/popover/index.d.ts +1 -1
  88. package/dist/src/progress/circular-progress/circular-progress.d.ts +3 -3
  89. package/dist/src/progress/linear-progress/linear-progress.d.ts +3 -3
  90. package/dist/src/ripple/ripple.d.ts +60 -4
  91. package/dist/src/skeleton/skeleton.d.ts +6 -5
  92. package/dist/src/slider/index.d.ts +1 -0
  93. package/dist/src/slider/slider.d.ts +52 -0
  94. package/dist/src/spinner/spinner.d.ts +2 -2
  95. package/dist/src/switch/switch.d.ts +2 -2
  96. package/dist/src/table/index.d.ts +1 -0
  97. package/dist/src/table/table.d.ts +110 -0
  98. package/dist/src/tabs/index.d.ts +4 -0
  99. package/dist/src/tabs/tab-group.d.ts +45 -0
  100. package/dist/src/tabs/tab-panel.d.ts +22 -0
  101. package/dist/src/tabs/tab.d.ts +59 -0
  102. package/dist/src/tabs/tabs.d.ts +29 -0
  103. package/dist/src/textarea/textarea.d.ts +3 -3
  104. package/dist/src/time-picker/time-picker.d.ts +3 -3
  105. package/dist/src/{popover/tooltip → tooltip}/tooltip.d.ts +4 -3
  106. package/dist/src/tree-view/index.d.ts +2 -0
  107. package/dist/src/tree-view/tree-node.d.ts +69 -0
  108. package/dist/src/tree-view/tree-view.d.ts +40 -0
  109. package/dist/src/tree-view/wc-tree-view.d.ts +6 -0
  110. package/dist/{style-map-B8xgVEc9.js → style-map-CfNHEkQp.js} +2 -2
  111. package/dist/{style-map-B8xgVEc9.js.map → style-map-CfNHEkQp.js.map} +1 -1
  112. package/dist/test/icon.test.d.ts +1 -1
  113. package/dist/test/menu.test.d.ts +1 -0
  114. package/dist/test/sub-menu.test.d.ts +1 -0
  115. package/dist/test/tree-view.test.d.ts +1 -0
  116. package/dist/transform-DRuHEvar.js +3312 -0
  117. package/dist/transform-DRuHEvar.js.map +1 -0
  118. package/dist/{image-v3BujlY5.js → tree-view-CLolVlU0.js} +4088 -672
  119. package/dist/tree-view-CLolVlU0.js.map +1 -0
  120. package/dist/tsconfig.tsbuildinfo +1 -1
  121. package/dist/{unsafe-html-B-dV3Jps.js → unsafe-html-CV6Je6HL.js} +2 -2
  122. package/dist/{unsafe-html-B-dV3Jps.js.map → unsafe-html-CV6Je6HL.js.map} +1 -1
  123. package/package.json +3 -1
  124. package/readme.md +40 -40
  125. package/src/{PeacockComponent.ts → IndividualComponent.ts} +1 -1
  126. package/src/accordion/{accordion-item/accordion-item.scss → accordion-item.scss} +1 -1
  127. package/src/accordion/{accordion-item/accordion-item.ts → accordion-item.ts} +7 -6
  128. package/src/accordion/{accordion/accordion.scss → accordion.scss} +2 -1
  129. package/src/accordion/{accordion/accordion.ts → accordion.ts} +6 -6
  130. package/src/accordion/{accordion-item/index.ts → index.ts} +2 -0
  131. package/src/avatar/avatar.ts +2 -2
  132. package/src/badge/badge.ts +2 -2
  133. package/src/breadcrumb/breadcrumb/breadcrumb.ts +10 -8
  134. package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +4 -3
  135. package/src/button/BaseButton.ts +1 -1
  136. package/src/button/button/button.scss +9 -23
  137. package/src/button/button/button.ts +8 -8
  138. package/src/button/button-group/button-group.ts +13 -7
  139. package/src/button/icon-button/icon-button.ts +8 -8
  140. package/src/chart-donut/chart-donut.scss +37 -0
  141. package/src/chart-donut/chart-donut.ts +287 -0
  142. package/src/chart-donut/demo/index.html +51 -0
  143. package/src/chart-donut/index.ts +1 -0
  144. package/src/chart-doughnut/chart-donut.scss +37 -0
  145. package/src/chart-doughnut/chart-doughnut.ts +287 -0
  146. package/src/chart-doughnut/demo/index.html +51 -0
  147. package/src/chart-doughnut/index.ts +1 -0
  148. package/src/chart-pie/chart-pie.scss +27 -0
  149. package/src/chart-pie/chart-pie.ts +256 -0
  150. package/src/chart-pie/demo/index.html +51 -0
  151. package/src/chart-pie/index.ts +1 -0
  152. package/src/checkbox/checkbox.ts +3 -6
  153. package/src/chip/chip/chip.ts +6 -6
  154. package/src/chip/tag/tag.ts +6 -6
  155. package/src/clock/clock.ts +5 -6
  156. package/src/code-editor/code-editor.scss +3 -5
  157. package/src/code-editor/code-editor.ts +32 -16
  158. package/src/code-highlighter/code-highlighter.ts +8 -11
  159. package/src/container/container.ts +6 -11
  160. package/src/date-picker/date-picker.ts +7 -7
  161. package/src/divider/divider.scss +2 -2
  162. package/src/divider/divider.ts +2 -2
  163. package/src/elevation/elevation.ts +2 -2
  164. package/src/empty-state/empty-state.scss +1 -1
  165. package/src/empty-state/empty-state.ts +10 -3
  166. package/src/field/field.scss +4 -4
  167. package/src/field/field.ts +19 -2
  168. package/src/focus-ring/focus-ring.scss +2 -1
  169. package/src/focus-ring/focus-ring.ts +1 -1
  170. package/src/icon/icon.ts +2 -2
  171. package/src/icon/p-icon.ts +1 -1
  172. package/src/image/image.ts +4 -12
  173. package/src/index.ts +11 -3
  174. package/src/input/input.ts +6 -6
  175. package/src/link/link.ts +4 -5
  176. package/src/menu/index.ts +3 -0
  177. package/src/menu/menu/MenuSurfaceController.ts +61 -0
  178. package/src/menu/{menu-list/menu-list.scss → menu/menu.scss} +19 -4
  179. package/src/menu/menu/menu.ts +401 -77
  180. package/src/menu/menu-item/menu-item-colors.scss +2 -2
  181. package/src/menu/menu-item/menu-item.ts +128 -37
  182. package/src/menu/sub-menu/sub-menu.scss +7 -0
  183. package/src/menu/sub-menu/sub-menu.ts +243 -0
  184. package/src/number-counter/demo/index.html +1 -1
  185. package/src/number-counter/number-counter.ts +11 -9
  186. package/src/number-field/number-field.ts +7 -7
  187. package/src/pagination/index.ts +1 -0
  188. package/src/pagination/pagination.scss +59 -0
  189. package/src/pagination/pagination.ts +135 -0
  190. package/src/peacock-loader.ts +92 -51
  191. package/src/popover/PopoverController.ts +13 -7
  192. package/src/popover/index.ts +1 -1
  193. package/src/progress/circular-progress/circular-progress.scss +1 -1
  194. package/src/progress/circular-progress/circular-progress.ts +3 -3
  195. package/src/progress/linear-progress/linear-progress.ts +3 -3
  196. package/src/ripple/ripple.ts +478 -94
  197. package/src/skeleton/skeleton.ts +6 -5
  198. package/src/slider/index.ts +1 -0
  199. package/src/slider/slider.scss +130 -0
  200. package/src/slider/slider.ts +178 -0
  201. package/src/spinner/spinner.ts +2 -2
  202. package/src/switch/switch.ts +4 -4
  203. package/src/table/index.ts +1 -0
  204. package/src/table/table.scss +174 -0
  205. package/src/table/table.ts +475 -0
  206. package/src/tabs/index.ts +4 -0
  207. package/src/tabs/tab-group.scss +10 -0
  208. package/src/tabs/tab-group.ts +143 -0
  209. package/src/tabs/tab-panel.scss +12 -0
  210. package/src/tabs/tab-panel.ts +29 -0
  211. package/src/tabs/tab.scss +157 -0
  212. package/src/tabs/tab.ts +243 -0
  213. package/src/tabs/tabs.scss +19 -0
  214. package/src/tabs/tabs.ts +66 -0
  215. package/src/text/text.css-component.scss +6 -3
  216. package/src/textarea/textarea.ts +5 -5
  217. package/src/time-picker/time-picker.ts +7 -7
  218. package/src/{popover/tooltip → tooltip}/tooltip.scss +17 -14
  219. package/src/{popover/tooltip → tooltip}/tooltip.ts +12 -10
  220. package/src/tree-view/demo/index.html +57 -0
  221. package/src/tree-view/index.ts +2 -0
  222. package/src/tree-view/tree-node.scss +101 -0
  223. package/src/tree-view/tree-node.ts +268 -0
  224. package/src/tree-view/tree-view.scss +12 -0
  225. package/src/tree-view/tree-view.ts +182 -0
  226. package/src/tree-view/wc-tree-view.ts +9 -0
  227. package/dist/PeacockComponent-CxJc63xj.js.map +0 -1
  228. package/dist/button-DaL4va7Q.js.map +0 -1
  229. package/dist/class-map-BvQRv7eW.js.map +0 -1
  230. package/dist/dispatch-event-utils-vbdiOSeC.js.map +0 -1
  231. package/dist/image-v3BujlY5.js.map +0 -1
  232. package/dist/src/PeacockComponent.d.ts +0 -1
  233. package/dist/src/accordion/accordion/index.d.ts +0 -1
  234. package/dist/src/avatar/p-avatar.d.ts +0 -3
  235. package/dist/src/badge/p-badge.d.ts +0 -3
  236. package/dist/src/menu/menu-list/menu-list.d.ts +0 -7
  237. package/dist/state-B09bP3XH.js +0 -10
  238. package/dist/state-B09bP3XH.js.map +0 -1
  239. package/src/accordion/accordion/index.ts +0 -1
  240. package/src/avatar/p-avatar.ts +0 -5
  241. package/src/badge/p-badge.ts +0 -5
  242. package/src/menu/menu-list/menu-list.ts +0 -33
@@ -1,29 +1,26 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Checkbox
4
- * @tag base-checkbox
4
+ * @tag wc-checkbox
5
5
  * @rawTag checkbox
6
- *
7
6
  * @summary Captures boolean input with an optional indeterminate mode.
8
7
  * @overview
9
8
  * <p>Checkboxes allow users to select one or more items from a set. Checkboxes can turn an option on or off.</p>
10
9
  * <p>Material Design 3 checkboxes feature a smooth animation and clear visual states for checked, unchecked, and indeterminate.</p>
11
- *
12
10
  * @cssprop --checkbox-size: Size of the checkbox container.
13
11
  * @cssprop --checkbox-selected-color: Color of the checkbox when selected.
14
12
  * @cssprop --checkbox-unselected-color: Color of the checkbox border when unselected.
15
13
  * @cssprop --checkbox-checkmark-color: Color of the checkmark icon.
16
14
  * @cssprop --checkbox-state-layer-size: Size of the state layer for touch target.
17
- *
18
15
  * @fires {CustomEvent} change - Dispatched when the checkbox value changes.
19
16
  * @fires {CustomEvent} blur - Dispatched when the checkbox loses focus.
20
17
  * @fires {CustomEvent} focus - Dispatched when the checkbox receives focus.
18
+ * @tags input, form
21
19
  *
22
20
  * @example
23
21
  * ```html
24
- * <base-checkbox label="Accept terms"></base-checkbox>
22
+ * <wc-checkbox label="Accept terms"></wc-checkbox>
25
23
  * ```
26
- * @tags input, form
27
24
  */
28
25
  export declare class Checkbox extends LitElement {
29
26
  static styles: import("lit").CSSResultGroup[];
@@ -1,15 +1,15 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Chip
4
- * @tag base-chip
4
+ * @tag wc-chip
5
5
  * @rawTag chip
6
- * @summary
6
+ * @summary Chip component for displaying compact information with optional actions.
7
+ * @tags display
7
8
  *
8
9
  * @example
9
10
  * ```html
10
- * <base-tag>Link</base-tag>
11
+ * <wc-chip>Chip content</wc-chip>
11
12
  * ```
12
- * @tags display
13
13
  */
14
14
  export declare class Chip extends LitElement {
15
15
  static styles: import("lit").CSSResultGroup[];
@@ -1,15 +1,15 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Tag
4
- * @tag base-tag
4
+ * @tag wc-tag
5
5
  * @rawTag tag
6
6
  * @summary Tag component for displaying labels or values with optional dismiss functionality.
7
+ * @tags display
7
8
  *
8
9
  * @example
9
10
  * ```html
10
- * <base-tag color=red>Tag</base-tag>
11
+ * <wc-tag color="red">Tag</wc-tag>
11
12
  * ```
12
- * @tags display
13
13
  */
14
14
  export declare class Tag extends LitElement {
15
15
  static styles: import("lit").CSSResultGroup[];
@@ -2,19 +2,18 @@ import { LitElement } from 'lit';
2
2
  import { ClockController } from './ClockController.js';
3
3
  /**
4
4
  * @label Clock
5
- * @tag base-clock
5
+ * @tag wc-clock
6
6
  * @rawTag clock
7
- *
8
7
  * @summary Displays the current time in a given timezone.
9
8
  * @overview
10
9
  * - Clocks are used to display the current time in a specified timezone.
11
10
  * - They can be displayed in various formats, including 12-hour and 24-hour time.
11
+ * @tags display
12
12
  *
13
13
  * @example
14
14
  * ```html
15
- * <base-clock></base-clock>
15
+ * <wc-clock></wc-clock>
16
16
  * ```
17
- * @tags display
18
17
  */
19
18
  export declare class Clock extends LitElement {
20
19
  static styles: import("lit").CSSResultGroup[];
@@ -1,23 +1,26 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Code Editor
4
- * @tag code-editor
4
+ * @tag wc-code-editor
5
5
  * @rawTag code-editor
6
6
  *
7
- * @summary Code editor
7
+ * @summary A Monaco-based code editing component with syntax highlighting and theming.
8
8
  * @overview
9
- * - CodeHighlighter is a component that provides syntax highlighting for code snippets.
10
- * - It supports various programming languages and can display line numbers for better readability.
9
+ * - CodeEditor wraps Monaco Editor as a web component.
10
+ * - Supports JS/JSON/HTML languages, read-only mode, line numbers, minimap, and dark/light theme.
11
+ * - Emits `change` when content is edited and updates value from property changes.
11
12
  *
12
13
  * @example
13
14
  * ```html
14
- * <code-highlighter language="javascript" style="height: 9rem"><pre><code>
15
- * function helloWorld() {
16
- * console.log('Hello, world!');
17
- * }</code></pre>
18
- * </code-highlighter>
15
+ * <wc-code-editor
16
+ * language="javascript"
17
+ * style="width: 100%; --code-editor-height: 10rem;"
18
+ * value="function hello() { console.log('Hello'); }"
19
+ * lineNumbers="on"
20
+ * minimap="false">
21
+ * </wc-code-editor>
19
22
  * ```
20
- * @tags display
23
+ * @tags input, editor
21
24
  */
22
25
  export default class CodeEditor extends BaseInput {
23
26
  static styles: import("lit").CSSResultGroup[];
@@ -2,21 +2,18 @@ import { LitElement } from 'lit';
2
2
  import { BundledLanguage } from 'shiki';
3
3
  /**
4
4
  * @label Code Highlighter
5
- * @tag code-highlighter
5
+ * @tag wc-code-highlighter
6
6
  * @rawTag code-highlighter
7
7
  *
8
- * @summary Highlights code snippets with syntax highlighting and line numbers.
9
- * @overview
10
- * - CodeHighlighter is a component that provides syntax highlighting for code snippets.
11
- * - It supports various programming languages and can display line numbers for better readability.
8
+ * @summary A component that provides syntax highlighting for code snippets.
12
9
  *
13
10
  * @example
14
11
  * ```html
15
- * <code-highlighter language="javascript" style="height: 9rem"><pre><code>
12
+ * <wc-code-highlighter language="javascript" style="height: 9rem"><pre><code>
16
13
  * function helloWorld() {
17
14
  * console.log('Hello, world!');
18
15
  * }</code></pre>
19
- * </code-highlighter>
16
+ * </wc-code-highlighter>
20
17
  * ```
21
18
  * @tags display
22
19
  */
@@ -2,22 +2,17 @@ import { LitElement } from 'lit';
2
2
  type ContainerSize = 'max' | 'xl' | 'lg' | 'md' | 'sm' | 'full';
3
3
  /**
4
4
  * @label Container
5
- * @tag base-container
5
+ * @tag wc-container
6
6
  * @rawTag container
7
- * @summary The Avatar component is used to represent user, and displays the profile picture, initials or fallback icon.
8
- *
9
- * @cssprop --avatar-border-radius - Controls the border radius of the avatar.
10
- * @cssprop --avatar-background-color - Controls the color of the avatar.
11
- * @cssprop --avatar-size - Controls the size of the avatar.
12
- * @cssprop --avatar-text-color - Controls the color of the text inside the avatar.
13
- *
7
+ * @summary A responsive container component for layout.
8
+ * @cssprop --container-max-width - Controls the maximum width of the container.
9
+ * @cssprop --container-padding - Controls the padding of the container.
10
+ * @tags layout
14
11
  *
15
12
  * @example
16
13
  * ```html
17
- * <base-container>Container</base-avatar>
14
+ * <wc-container size="lg">Content</wc-container>
18
15
  * ```
19
- *
20
- * @tags display
21
16
  */
22
17
  export declare class Container extends LitElement {
23
18
  size: ContainerSize;
@@ -1,14 +1,14 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Date Picker
4
- * @tag date-picker
4
+ * @tag wc-date-picker
5
5
  * @rawTag date-picker
6
- *
7
6
  * @summary The Date Picker component is used to capture date user input.
7
+ * @tags input
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <date-picker label="Name" required placeholder="Enter your name"></date-picker>
11
+ * <wc-date-picker label="Date" placeholder="Select a date"></wc-date-picker>
12
12
  * ```
13
13
  */
14
14
  export declare class DatePicker extends BaseInput {
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Divider
4
- * @tag base-divider
4
+ * @tag wc-divider
5
5
  * @rawTag divider
6
6
  *
7
7
  * @summary The divider component is used to visually separate content.
@@ -14,7 +14,7 @@ import { LitElement } from 'lit';
14
14
  *
15
15
  * @example
16
16
  * ```html
17
- * <base-divider style="width: 12rem;">or</base-divider>
17
+ * <wc-divider style="width: 12rem;">or</wc-divider>
18
18
  * ```
19
19
  * @tags display
20
20
  */
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Elevation
4
- * @tag base-elevation
4
+ * @tag wc-elevation
5
5
  * @rawTag elevation
6
6
  *
7
7
  * @summary Adds elevation to an element.
@@ -15,7 +15,7 @@ import { LitElement } from 'lit';
15
15
  * @example
16
16
  * ```html
17
17
  * <div style="position: relative; padding: var(--spacing-200);">
18
- * <base-elevation style='--elevation-level: 2; --elevation-container-shape: var(--shape-corner-extra-small);'></base-elevation>
18
+ * <wc-elevation style='--elevation-level: 2; --elevation-container-shape: var(--shape-corner-extra-small);'></wc-elevation>
19
19
  * Level 2
20
20
  * </div>
21
21
  * ```
@@ -1,8 +1,15 @@
1
1
  import { LitElement, nothing } from 'lit';
2
2
  /**
3
3
  * @label Empty State
4
- * @name empty-state
5
- * @description A message that displays when there is no information to display.
4
+ * @tag wc-empty-state
5
+ * @rawTag empty-state
6
+ * @summary A message that displays when there is no information to display.
7
+ * @tags display
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-empty-state headline="No items found"></wc-empty-state>
12
+ * ```
6
13
  */
7
14
  export declare class EmptyState extends LitElement {
8
15
  static styles: import("lit").CSSResultGroup[];
@@ -1,4 +1,21 @@
1
1
  import { LitElement, nothing } from 'lit';
2
+ /**
3
+ * @label Field
4
+ * @tag wc-field
5
+ * @rawTag field
6
+ *
7
+ * @summary Wrapper for form fields with label and help text.
8
+ * @overview
9
+ * <p>Field provides consistent styling and behavior for form inputs.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-field label="Name" required>
14
+ * some text
15
+ * </wc-field>
16
+ * ```
17
+ * @tags form
18
+ */
2
19
  export declare class Field extends LitElement {
3
20
  static styles: import("lit").CSSResultGroup[];
4
21
  label: string;
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Focus Ring
4
4
  *
5
- * @tag focus-ring
5
+ * @tag wc-focus-ring
6
6
  * @rawTag focus-ring
7
7
  *
8
8
  * @summary Adds a focus ring to an element.
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
2
2
  export type IconProvider = 'material-symbols' | 'material-icons';
3
3
  /**
4
4
  * @label Icon
5
- * @tag base-icon
5
+ * @tag wc-icon
6
6
  * @rawTag icon
7
7
  * @summary Icons are visual symbols used to represent ideas, objects, or actions.
8
8
  * @overview Icons are visual symbols used to represent ideas, objects, or actions. They communicate messages at a glance, afford interactivity, and draw attention to important information.
@@ -12,7 +12,7 @@ export type IconProvider = 'material-symbols' | 'material-icons';
12
12
  *
13
13
  * @example
14
14
  * ```html
15
- * <base-icon name="home" style="--icon-size: 2rem;"></base-icon>
15
+ * <wc-icon name="home" style="--icon-size: 2rem;"></wc-icon>
16
16
  * ```
17
17
  *
18
18
  */
@@ -1,23 +1,15 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Image
4
- * @tag base-image
4
+ * @tag wc-image
5
5
  * @rawTag image
6
- *
7
- * @summary Image
8
- * @overview
9
- * - CodeHighlighter is a component that provides syntax highlighting for code snippets.
10
- * - It supports various programming languages and can display line numbers for better readability.
6
+ * @summary An image component with lazy loading and theme support.
7
+ * @tags media
11
8
  *
12
9
  * @example
13
10
  * ```html
14
- * <code-highlighter language="javascript" style="height: 9rem"><pre><code>
15
- * function helloWorld() {
16
- * console.log('Hello, world!');
17
- * }</code></pre>
18
- * </code-highlighter>
11
+ * <wc-image src="image.jpg" alt="Description"></wc-image>
19
12
  * ```
20
- * @tags display
21
13
  */
22
14
  export declare class Image extends LitElement {
23
15
  static styles: import("lit").CSSResultGroup[];
@@ -7,7 +7,7 @@ export { Elevation } from './elevation/index.js';
7
7
  export { Button, ButtonGroup, IconButton } from './button/index.js';
8
8
  export { FocusRing } from './focus-ring/index.js';
9
9
  export { Ripple } from './ripple/index.js';
10
- export { Accordion } from './accordion/accordion/index.js';
10
+ export { Accordion } from './accordion/index.js';
11
11
  export { Link } from './link/index.js';
12
12
  export { Tag } from './chip/tag/index.js';
13
13
  export { Chip } from './chip/chip/index.js';
@@ -27,6 +27,14 @@ export { NumberCounter } from './number-counter/index.js';
27
27
  export { EmptyState } from './empty-state/index.js';
28
28
  export { Tooltip } from './popover/index.js';
29
29
  export { Breadcrumb, BreadcrumbItem } from './breadcrumb/index.js';
30
+ export { Menu, MenuItem, SubMenu } from './menu/index.js';
30
31
  export { CodeHighlighter } from './code-highlighter/index.js';
31
32
  export { CodeEditor } from './code-editor/index.js';
32
33
  export { Image } from './image/index.js';
34
+ export { Tab, TabGroup, TabPanel, Tabs } from './tabs/index.js';
35
+ export { Slider } from './slider/index.js';
36
+ export { ChartDoughnut } from './chart-doughnut/index.js';
37
+ export { ChartPie } from './chart-pie/index.js';
38
+ export { Table } from './table/index.js';
39
+ export { Pagination } from './pagination/index.js';
40
+ export { TreeView, TreeNode } from './tree-view/index.js';
@@ -1,14 +1,14 @@
1
1
  import BaseInput from './BaseInput.js';
2
2
  /**
3
3
  * @label Input
4
- * @tag input-field
4
+ * @tag wc-input
5
5
  * @rawTag input
6
6
  *
7
7
  * @summary The Input component is used to capture user input.
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <input-field label="Name" required placeholder="Enter your name"></input-field>
11
+ * <wc-input label="Name" required placeholder="Enter your name"></wc-input>
12
12
  * ```
13
13
  */
14
14
  export declare class Input extends BaseInput {
@@ -1,17 +1,16 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Link
4
- * @tag base-link
4
+ * @tag wc-link
5
5
  * @rawTag link
6
6
  * @summary The link component is used to navigate to a new page or section within the current page.
7
- *
8
- * @cssprop --badge-color - Controls the color of the badge.
7
+ * @cssprop --link-color - Controls the color of the link.
8
+ * @tags navigation
9
9
  *
10
10
  * @example
11
11
  * ```html
12
- * <base-link href="#">Link</base-link>
12
+ * <wc-link href="#">Link</wc-link>
13
13
  * ```
14
- * @tags display
15
14
  */
16
15
  export declare class Link extends LitElement {
17
16
  static styles: import("lit").CSSResultGroup[];
@@ -0,0 +1,3 @@
1
+ export { Menu } from './menu/menu.js';
2
+ export { MenuItem } from './menu-item/menu-item.js';
3
+ export { SubMenu } from './sub-menu/sub-menu.js';
@@ -0,0 +1,18 @@
1
+ import { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import { type Placement, type Strategy } from '@floating-ui/dom';
3
+ type PositionOptions = {
4
+ reference: HTMLElement;
5
+ floating: HTMLElement;
6
+ placement: Placement;
7
+ offset: number;
8
+ strategy?: Strategy;
9
+ };
10
+ export declare class MenuSurfaceController implements ReactiveController {
11
+ private host;
12
+ private cleanup?;
13
+ constructor(host: ReactiveControllerHost);
14
+ start(options: PositionOptions): void;
15
+ stop(): void;
16
+ hostDisconnected(): void;
17
+ }
18
+ export {};
@@ -1,15 +1,73 @@
1
1
  import { LitElement } from 'lit';
2
+ import type { Placement } from '@floating-ui/dom';
3
+ import { MenuItem } from '../menu-item/menu-item.js';
4
+ type CloseReason = {
5
+ kind: 'click-selection';
6
+ } | {
7
+ kind: 'keydown';
8
+ key: string;
9
+ } | {
10
+ kind: 'outside-click';
11
+ } | {
12
+ kind: 'focusout';
13
+ } | {
14
+ kind: 'programmatic';
15
+ };
16
+ /**
17
+ * @label Menu
18
+ * @tag wc-menu
19
+ * @rawTag menu
20
+ * @summary A list of menu items.
21
+ * @tags navigation
22
+ *
23
+ * @example
24
+ * ```html
25
+ * <wc-menu>
26
+ * <wc-menu-item>Item 1</wc-menu-item>
27
+ * <wc-menu-item>Item 2</wc-menu-item>
28
+ * </wc-menu>
29
+ * ```
30
+ */
2
31
  export declare class Menu extends LitElement {
32
+ static styles: import("lit").CSSResultGroup[];
33
+ static Item: typeof MenuItem;
3
34
  open: boolean;
4
- align: string;
5
- menuWrapper: HTMLElement;
6
- private _boundClickOutside;
7
- constructor();
35
+ variant: 'standard' | 'vibrant';
36
+ anchor: string;
37
+ stayOpenOnOutsideClick: boolean;
38
+ stayOpenOnFocusout: boolean;
39
+ isSubmenu: boolean;
40
+ placement: Placement;
41
+ offset: number;
42
+ private activeIndex;
43
+ private readonly menuListElement;
44
+ anchorElement: HTMLElement | null;
45
+ private readonly _surfaceController;
46
+ private _lastFocusedElement;
47
+ private _closeReason;
8
48
  connectedCallback(): void;
9
49
  disconnectedCallback(): void;
10
- private _handleClickOutside;
11
- private _handleItemClick;
12
- private _toggleMenu;
13
- static styles: import("lit").CSSResult;
50
+ get items(): MenuItem[];
51
+ show(): void;
52
+ close(reason?: CloseReason): void;
53
+ focus(): void;
54
+ private _resolveAnchorElement;
55
+ private _syncAnchorAria;
56
+ private _enabledItems;
57
+ private _syncRovingTabIndex;
58
+ private _setActiveByOffset;
59
+ private _setBoundaryActive;
60
+ private _getActiveItem;
61
+ private _getFirstEnabledItem;
62
+ private _onItemActivate;
63
+ private _onItemRequestClose;
64
+ private _onKeyDown;
65
+ private _onWindowClick;
66
+ private _isWithinMenuTree;
67
+ private _onFocusOut;
68
+ private _onSlotChange;
69
+ private _applyPositioning;
70
+ protected updated(changedProperties: Map<string, unknown>): void;
14
71
  render(): import("lit-html").TemplateResult<1>;
15
72
  }
73
+ export {};
@@ -1,21 +1,40 @@
1
1
  import { LitElement } from 'lit';
2
+ /**
3
+ * @label Menu Item
4
+ * @tag wc-menu-item
5
+ * @rawTag menu-item
6
+ * @parentRawTag menu-list
7
+ * @summary An item in a menu list.
8
+ * @tags navigation
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-menu-item>Menu Item</wc-menu-item>
13
+ * ```
14
+ */
2
15
  export declare class MenuItem extends LitElement {
3
16
  disabled: boolean;
4
17
  value: string;
5
18
  selected: boolean;
19
+ keepOpen: boolean;
20
+ hasSubmenu: boolean;
21
+ submenuOpen: boolean;
6
22
  href?: string;
7
23
  /**
8
- * Sets or retrieves the window or frame at which to target content.
9
- */
24
+ * Sets or retrieves the window or frame at which to target content.
25
+ */
10
26
  target: string;
11
27
  variant: 'standard' | 'vibrant';
12
28
  static styles: import("lit").CSSResultGroup[];
13
29
  connectedCallback(): void;
30
+ disconnectedCallback(): void;
31
+ private emitActivate;
32
+ private requestClose;
33
+ private requestSubmenuKey;
14
34
  private _handleKeyDown;
35
+ private _handleClick;
15
36
  __isLink(): boolean;
16
- private readonly menuItemElement;
17
- focus(): void;
18
- blur(): void;
37
+ get focusTarget(): this;
19
38
  render(): import("lit-html").TemplateResult<1>;
20
39
  renderContent(): import("lit-html").TemplateResult<1>;
21
40
  }
@@ -0,0 +1,36 @@
1
+ import { LitElement } from 'lit';
2
+ import { MenuItem } from '../menu-item/menu-item.js';
3
+ import { Menu } from '../menu/menu.js';
4
+ /**
5
+ * @label Sub Menu
6
+ * @tag wc-sub-menu
7
+ * @rawTag sub-menu
8
+ * @summary Connects a menu item to a nested menu.
9
+ */
10
+ export declare class SubMenu extends LitElement {
11
+ static styles: import("lit").CSSResultGroup[];
12
+ hoverOpenDelay: number;
13
+ hoverCloseDelay: number;
14
+ anchorCorner: string;
15
+ menuCorner: string;
16
+ private readonly _items;
17
+ private readonly _menus;
18
+ private _openTimeout?;
19
+ private _closeTimeout?;
20
+ private readonly _onChildMenuOpened;
21
+ private readonly _onChildMenuClosed;
22
+ get item(): MenuItem | null;
23
+ get menu(): Menu | null;
24
+ connectedCallback(): void;
25
+ disconnectedCallback(): void;
26
+ show(): Promise<void>;
27
+ close(): Promise<void>;
28
+ render(): import("lit-html").TemplateResult<1>;
29
+ private _onSlotChange;
30
+ private _onItemClick;
31
+ private _onItemKeyDown;
32
+ private _onMenuKeyDown;
33
+ private _onCloseMenu;
34
+ private _onMouseEnter;
35
+ private _onMouseLeave;
36
+ }
@@ -1,19 +1,21 @@
1
1
  import { LitElement, nothing } from 'lit';
2
2
  /**
3
3
  * @label Number Counter
4
- * @tag number-counter
4
+ * @tag wc-number-counter
5
5
  * @rawTag number-counter
6
6
  * @summary Displays a number with commas for thousands.
7
7
  *
8
8
  * @example
9
9
  * ```html
10
- * <number-counter value="123456789"></number-counter>
10
+ * <wc-number-counter id="number-counter" value="123456789"></wc-number-counter>
11
11
  * <script>
12
- * const $counter = document.querySelector('number-counter');
13
- *
14
- * setInterval(() => {
15
- * $counter.value = $counter.value + parseInt(Math.floor(Math.random() * 1000));
16
- * }, 1000);
12
+ * customElements.whenDefined('wc-number-counter').then(() => {
13
+ const $counter = document.querySelector('#number-counter');
14
+
15
+ setInterval(() => {
16
+ $counter.value = $counter.value + Math.floor(Math.random() * 1000);
17
+ }, 1000);
18
+ });
17
19
  * </script>
18
20
  * ```
19
21
  * @tags display
@@ -8,7 +8,7 @@ import BaseInput from '../input/BaseInput.js';
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <number-field label="Age" placeholder="Enter your age"></number-field>
11
+ * <wc-number-field label="Age" placeholder="Enter your age"></wc-number-field>
12
12
  * ```
13
13
  */
14
14
  export declare class NumberField extends BaseInput {
@@ -0,0 +1 @@
1
+ export { Pagination } from './pagination.js';