@redvars/peacock 3.2.10 → 3.3.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 (197) 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/{button-DaL4va7Q.js → button-BGFJfbT2.js} +22 -35
  4. package/dist/button-BGFJfbT2.js.map +1 -0
  5. package/dist/button-group.js +8 -8
  6. package/dist/button-group.js.map +1 -1
  7. package/dist/button.js +6 -5
  8. package/dist/button.js.map +1 -1
  9. package/dist/chart-donut.js +307 -0
  10. package/dist/chart-donut.js.map +1 -0
  11. package/dist/chart-doughnut.js +307 -0
  12. package/dist/chart-doughnut.js.map +1 -0
  13. package/dist/chart-pie.js +259 -0
  14. package/dist/chart-pie.js.map +1 -0
  15. package/dist/{class-map-BvQRv7eW.js → class-map-DpeNtqCn.js} +2 -2
  16. package/dist/{class-map-BvQRv7eW.js.map → class-map-DpeNtqCn.js.map} +1 -1
  17. package/dist/clock.js +5 -6
  18. package/dist/clock.js.map +1 -1
  19. package/dist/code-editor.js +37 -24
  20. package/dist/code-editor.js.map +1 -1
  21. package/dist/code-highlighter.js +21 -7
  22. package/dist/code-highlighter.js.map +1 -1
  23. package/dist/custom-elements-jsdocs.json +5377 -3122
  24. package/dist/custom-elements.json +5527 -3940
  25. package/dist/{dispatch-event-utils-vbdiOSeC.js → dispatch-event-utils-B4odODQf.js} +2 -15
  26. package/dist/dispatch-event-utils-B4odODQf.js.map +1 -0
  27. package/dist/index.js +13 -9
  28. package/dist/index.js.map +1 -1
  29. package/dist/number-counter.js +12 -10
  30. package/dist/number-counter.js.map +1 -1
  31. package/dist/{observe-theme-change-NneLARW8.js → observe-theme-change-BISF-Gl5.js} +2 -2
  32. package/dist/{observe-theme-change-NneLARW8.js.map → observe-theme-change-BISF-Gl5.js.map} +1 -1
  33. package/dist/peacock-loader.js +124 -62
  34. package/dist/peacock-loader.js.map +1 -1
  35. package/dist/query-QBcUV-L_.js +15 -0
  36. package/dist/query-QBcUV-L_.js.map +1 -0
  37. package/dist/{image-v3BujlY5.js → slider-Dk9CFWTG.js} +1606 -327
  38. package/dist/slider-Dk9CFWTG.js.map +1 -0
  39. package/dist/src/IndividualComponent.d.ts +1 -0
  40. package/dist/src/accordion/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +4 -4
  41. package/dist/src/accordion/{accordion/accordion.d.ts → accordion.d.ts} +6 -6
  42. package/dist/src/accordion/{accordion-item/index.d.ts → index.d.ts} +1 -0
  43. package/dist/src/avatar/avatar.d.ts +2 -2
  44. package/dist/src/badge/badge.d.ts +2 -2
  45. package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +7 -8
  46. package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +3 -3
  47. package/dist/src/button/button/button.d.ts +2 -2
  48. package/dist/src/button/button-group/button-group.d.ts +5 -5
  49. package/dist/src/button/icon-button/icon-button.d.ts +2 -2
  50. package/dist/src/chart-donut/chart-donut.d.ts +53 -0
  51. package/dist/src/chart-donut/index.d.ts +1 -0
  52. package/dist/src/chart-doughnut/chart-doughnut.d.ts +53 -0
  53. package/dist/src/chart-doughnut/index.d.ts +1 -0
  54. package/dist/src/chart-pie/chart-pie.d.ts +50 -0
  55. package/dist/src/chart-pie/index.d.ts +1 -0
  56. package/dist/src/checkbox/checkbox.d.ts +3 -6
  57. package/dist/src/chip/chip/chip.d.ts +4 -4
  58. package/dist/src/chip/tag/tag.d.ts +3 -3
  59. package/dist/src/clock/clock.d.ts +3 -4
  60. package/dist/src/code-editor/code-editor.d.ts +11 -9
  61. package/dist/src/container/container.d.ts +6 -11
  62. package/dist/src/date-picker/date-picker.d.ts +3 -3
  63. package/dist/src/divider/divider.d.ts +2 -2
  64. package/dist/src/elevation/elevation.d.ts +2 -2
  65. package/dist/src/empty-state/empty-state.d.ts +9 -2
  66. package/dist/src/field/field.d.ts +17 -0
  67. package/dist/src/focus-ring/focus-ring.d.ts +1 -1
  68. package/dist/src/icon/icon.d.ts +2 -2
  69. package/dist/src/image/image.d.ts +4 -12
  70. package/dist/src/index.d.ts +5 -1
  71. package/dist/src/input/input.d.ts +2 -2
  72. package/dist/src/link/link.d.ts +4 -5
  73. package/dist/src/menu/menu/menu.d.ts +16 -0
  74. package/dist/src/menu/menu-item/menu-item.d.ts +12 -0
  75. package/dist/src/menu/menu-list/menu-list.d.ts +15 -0
  76. package/dist/src/number-counter/number-counter.d.ts +9 -7
  77. package/dist/src/number-field/number-field.d.ts +1 -1
  78. package/dist/src/popover/index.d.ts +1 -1
  79. package/dist/src/progress/circular-progress/circular-progress.d.ts +3 -3
  80. package/dist/src/progress/linear-progress/linear-progress.d.ts +3 -3
  81. package/dist/src/ripple/ripple.d.ts +60 -4
  82. package/dist/src/skeleton/skeleton.d.ts +6 -5
  83. package/dist/src/slider/index.d.ts +1 -0
  84. package/dist/src/slider/slider.d.ts +52 -0
  85. package/dist/src/spinner/spinner.d.ts +2 -2
  86. package/dist/src/switch/switch.d.ts +2 -2
  87. package/dist/src/tabs/index.d.ts +4 -0
  88. package/dist/src/tabs/tab-group.d.ts +41 -0
  89. package/dist/src/tabs/tab-panel.d.ts +21 -0
  90. package/dist/src/tabs/tab.d.ts +58 -0
  91. package/dist/src/tabs/tabs.d.ts +27 -0
  92. package/dist/src/textarea/textarea.d.ts +3 -3
  93. package/dist/src/time-picker/time-picker.d.ts +3 -3
  94. package/dist/src/{popover/tooltip → tooltip}/tooltip.d.ts +6 -3
  95. package/dist/{state-B09bP3XH.js → state-8v48Exzh.js} +2 -2
  96. package/dist/{state-B09bP3XH.js.map → state-8v48Exzh.js.map} +1 -1
  97. package/dist/{style-map-B8xgVEc9.js → style-map-CfNHEkQp.js} +2 -2
  98. package/dist/{style-map-B8xgVEc9.js.map → style-map-CfNHEkQp.js.map} +1 -1
  99. package/dist/transform-DRuHEvar.js +3312 -0
  100. package/dist/transform-DRuHEvar.js.map +1 -0
  101. package/dist/tsconfig.tsbuildinfo +1 -1
  102. package/dist/{unsafe-html-B-dV3Jps.js → unsafe-html-CV6Je6HL.js} +2 -2
  103. package/dist/{unsafe-html-B-dV3Jps.js.map → unsafe-html-CV6Je6HL.js.map} +1 -1
  104. package/package.json +3 -1
  105. package/readme.md +2 -2
  106. package/src/{PeacockComponent.ts → IndividualComponent.ts} +1 -1
  107. package/src/accordion/{accordion-item/accordion-item.scss → accordion-item.scss} +1 -1
  108. package/src/accordion/{accordion-item/accordion-item.ts → accordion-item.ts} +5 -5
  109. package/src/accordion/{accordion/accordion.scss → accordion.scss} +2 -1
  110. package/src/accordion/{accordion/accordion.ts → accordion.ts} +6 -6
  111. package/src/accordion/{accordion-item/index.ts → index.ts} +2 -0
  112. package/src/avatar/avatar.ts +2 -2
  113. package/src/badge/badge.ts +2 -2
  114. package/src/breadcrumb/breadcrumb/breadcrumb.ts +7 -8
  115. package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +3 -3
  116. package/src/button/BaseButton.ts +1 -1
  117. package/src/button/button/button.scss +9 -23
  118. package/src/button/button/button.ts +8 -8
  119. package/src/button/button-group/button-group.ts +7 -7
  120. package/src/button/icon-button/icon-button.ts +8 -8
  121. package/src/chart-donut/chart-donut.scss +37 -0
  122. package/src/chart-donut/chart-donut.ts +287 -0
  123. package/src/chart-donut/demo/index.html +51 -0
  124. package/src/chart-donut/index.ts +1 -0
  125. package/src/chart-doughnut/chart-donut.scss +37 -0
  126. package/src/chart-doughnut/chart-doughnut.ts +287 -0
  127. package/src/chart-doughnut/demo/index.html +51 -0
  128. package/src/chart-doughnut/index.ts +1 -0
  129. package/src/chart-pie/chart-pie.scss +27 -0
  130. package/src/chart-pie/chart-pie.ts +256 -0
  131. package/src/chart-pie/demo/index.html +51 -0
  132. package/src/chart-pie/index.ts +1 -0
  133. package/src/checkbox/checkbox.ts +3 -6
  134. package/src/chip/chip/chip.ts +6 -6
  135. package/src/chip/tag/tag.ts +6 -6
  136. package/src/clock/clock.ts +5 -6
  137. package/src/code-editor/code-editor.scss +3 -5
  138. package/src/code-editor/code-editor.ts +30 -15
  139. package/src/code-highlighter/code-highlighter.ts +19 -4
  140. package/src/container/container.ts +6 -11
  141. package/src/date-picker/date-picker.ts +7 -7
  142. package/src/divider/divider.ts +2 -2
  143. package/src/elevation/elevation.ts +2 -2
  144. package/src/empty-state/empty-state.ts +10 -3
  145. package/src/field/field.scss +4 -4
  146. package/src/field/field.ts +19 -2
  147. package/src/focus-ring/focus-ring.scss +2 -1
  148. package/src/focus-ring/focus-ring.ts +1 -1
  149. package/src/icon/icon.ts +2 -2
  150. package/src/icon/p-icon.ts +1 -1
  151. package/src/image/image.ts +4 -12
  152. package/src/index.ts +6 -2
  153. package/src/input/input.ts +6 -6
  154. package/src/link/link.ts +4 -5
  155. package/src/menu/menu/menu.ts +16 -0
  156. package/src/menu/menu-item/menu-item-colors.scss +2 -2
  157. package/src/menu/menu-item/menu-item.ts +14 -2
  158. package/src/menu/menu-list/menu-list.ts +16 -1
  159. package/src/number-counter/demo/index.html +1 -1
  160. package/src/number-counter/number-counter.ts +11 -9
  161. package/src/number-field/number-field.ts +7 -7
  162. package/src/peacock-loader.ts +71 -44
  163. package/src/popover/index.ts +1 -1
  164. package/src/progress/circular-progress/circular-progress.scss +1 -1
  165. package/src/progress/circular-progress/circular-progress.ts +3 -3
  166. package/src/progress/linear-progress/linear-progress.ts +3 -3
  167. package/src/ripple/ripple.ts +478 -94
  168. package/src/skeleton/skeleton.ts +6 -5
  169. package/src/slider/index.ts +1 -0
  170. package/src/slider/slider.scss +130 -0
  171. package/src/slider/slider.ts +178 -0
  172. package/src/spinner/spinner.ts +2 -2
  173. package/src/switch/switch.ts +4 -4
  174. package/src/tabs/index.ts +4 -0
  175. package/src/tabs/tab-group.scss +10 -0
  176. package/src/tabs/tab-group.ts +137 -0
  177. package/src/tabs/tab-panel.scss +12 -0
  178. package/src/tabs/tab-panel.ts +28 -0
  179. package/src/tabs/tab.scss +157 -0
  180. package/src/tabs/tab.ts +242 -0
  181. package/src/tabs/tabs.scss +18 -0
  182. package/src/tabs/tabs.ts +64 -0
  183. package/src/textarea/textarea.ts +5 -5
  184. package/src/time-picker/time-picker.ts +7 -7
  185. package/src/{popover/tooltip → tooltip}/tooltip.scss +1 -1
  186. package/src/{popover/tooltip → tooltip}/tooltip.ts +10 -6
  187. package/dist/PeacockComponent-CxJc63xj.js.map +0 -1
  188. package/dist/button-DaL4va7Q.js.map +0 -1
  189. package/dist/dispatch-event-utils-vbdiOSeC.js.map +0 -1
  190. package/dist/image-v3BujlY5.js.map +0 -1
  191. package/dist/src/PeacockComponent.d.ts +0 -1
  192. package/dist/src/accordion/accordion/index.d.ts +0 -1
  193. package/dist/src/avatar/p-avatar.d.ts +0 -3
  194. package/dist/src/badge/p-badge.d.ts +0 -3
  195. package/src/accordion/accordion/index.ts +0 -1
  196. package/src/avatar/p-avatar.ts +0 -5
  197. package/src/badge/p-badge.ts +0 -5
@@ -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';
@@ -30,3 +30,7 @@ export { Breadcrumb, BreadcrumbItem } from './breadcrumb/index.js';
30
30
  export { CodeHighlighter } from './code-highlighter/index.js';
31
31
  export { CodeEditor } from './code-editor/index.js';
32
32
  export { Image } from './image/index.js';
33
+ export { Tab, TabGroup, TabPanel, Tabs } from './tabs/index.js';
34
+ export { Slider } from './slider/index.js';
35
+ export { ChartDoughnut } from './chart-doughnut/index.js';
36
+ export { ChartPie } from './chart-pie/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[];
@@ -1,4 +1,20 @@
1
1
  import { LitElement } from 'lit';
2
+ /**
3
+ * @label Menu
4
+ * @tag wc-menu
5
+ * @rawTag menu
6
+ * @summary A dropdown menu component.
7
+ * @tags navigation
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-menu>
12
+ * <wc-menu-list>
13
+ * <wc-menu-item>Item 1</wc-menu-item>
14
+ * </wc-menu-list>
15
+ * </wc-menu>
16
+ * ```
17
+ */
2
18
  export declare class Menu extends LitElement {
3
19
  open: boolean;
4
20
  align: string;
@@ -1,4 +1,16 @@
1
1
  import { LitElement } from 'lit';
2
+ /**
3
+ * @label Menu Item
4
+ * @tag wc-menu-item
5
+ * @rawTag menu-item
6
+ * @summary An item in a menu list.
7
+ * @tags navigation
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-menu-item>Menu Item</wc-menu-item>
12
+ * ```
13
+ */
2
14
  export declare class MenuItem extends LitElement {
3
15
  disabled: boolean;
4
16
  value: string;
@@ -1,4 +1,19 @@
1
1
  import { LitElement } from 'lit';
2
+ /**
3
+ * @label Menu List
4
+ * @tag wc-menu-list
5
+ * @rawTag menu-list
6
+ * @summary A list of menu items.
7
+ * @tags navigation
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-menu-list>
12
+ * <wc-menu-item>Item 1</wc-menu-item>
13
+ * <wc-menu-item>Item 2</wc-menu-item>
14
+ * </wc-menu-list>
15
+ * ```
16
+ */
2
17
  export declare class MenuList extends LitElement {
3
18
  static styles: import("lit").CSSResultGroup[];
4
19
  variant: 'standard' | 'vibrant';
@@ -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 {
@@ -1 +1 @@
1
- export { Tooltip } from './tooltip/tooltip.js';
1
+ export { Tooltip } from '../tooltip/tooltip.js';
@@ -1,14 +1,14 @@
1
1
  import { BaseProgress } from '../base-progress.js';
2
2
  /**
3
3
  * @label Circular Progress
4
- * @tag circular-progress
4
+ * @tag wc-circular-progress
5
5
  * @rawTag circular-progress
6
- *
7
6
  * @summary A circular progress indicator is a visual representation of progress toward a specific goal.
7
+ * @tags display
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <circular-progress value="30"></circular-progress>
11
+ * <wc-circular-progress value="30"></wc-circular-progress>
12
12
  * ```
13
13
  */
14
14
  export declare class CircularProgress extends BaseProgress {
@@ -1,14 +1,14 @@
1
1
  import { BaseProgress } from '../base-progress.js';
2
2
  /**
3
3
  * @label Linear Progress
4
- * @tag linear-progress
4
+ * @tag wc-linear-progress
5
5
  * @rawTag linear-progress
6
- *
7
6
  * @summary A linear progress indicator is a visual representation of progress toward a specific goal.
7
+ * @tags display
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <linear-progress value="30" style="width:10rem"></linear-progress>
11
+ * <wc-linear-progress value="30" style="width:10rem"></wc-linear-progress>
12
12
  * ```
13
13
  */
14
14
  export declare class LinearProgress extends BaseProgress {
@@ -1,9 +1,65 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ /**
3
+ * @label Ripple
4
+ * @tag wc-ripple
5
+ * @rawTag ripple
6
+ *
7
+ * @summary Provides ripple effect for interactive elements.
8
+ * @overview
9
+ * <p>Ripple creates a visual feedback effect when users interact with buttons or other clickable elements.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <button style="position: relative;">
14
+ * <wc-ripple></wc-ripple>
15
+ * Click me
16
+ * </button>
17
+ * ```
18
+ * @tags display
19
+ */
2
20
  export declare class Ripple extends LitElement {
3
21
  static styles: import("lit").CSSResult;
22
+ /**
23
+ * Disables the ripple.
24
+ */
25
+ disabled: boolean;
26
+ private hovered;
27
+ private pressed;
28
+ private readonly mdRoot;
29
+ private rippleSize;
30
+ private rippleScale;
31
+ private initialSize;
32
+ private growAnimation?;
33
+ private state;
34
+ private rippleStartEvent?;
4
35
  connectedCallback(): void;
5
36
  disconnectedCallback(): void;
6
- _setupParent(): void;
7
- _createRipple: (event: PointerEvent) => void;
8
- render(): import("lit-html").TemplateResult<1>;
37
+ attach(control: HTMLElement): void;
38
+ detach(): void;
39
+ protected render(): import("lit-html").TemplateResult<1>;
40
+ protected update(changedProps: PropertyValues<Ripple>): void;
41
+ handlePointerenter(event: PointerEvent): void;
42
+ handlePointerleave(event: PointerEvent): void;
43
+ private handlePointerup;
44
+ private handlePointerdown;
45
+ private handleClick;
46
+ private handlePointercancel;
47
+ private handleContextmenu;
48
+ private determineRippleSize;
49
+ private getTranslationCoordinates;
50
+ private startPressAnimation;
51
+ private endPressAnimation;
52
+ /**
53
+ * Returns `true` if
54
+ * - the ripple element is enabled
55
+ * - the pointer is primary for the input type
56
+ * - the pointer is the pointer that started the interaction, or will start
57
+ * the interaction
58
+ * - the pointer is a touch, or the pointer state has the primary button
59
+ * held, or the pointer is hovering
60
+ */
61
+ private shouldReactToEvent;
62
+ private isTouch;
63
+ handleEvent(event: Event): Promise<void>;
64
+ private getNormalizedPointerEventCoords;
9
65
  }
@@ -1,14 +1,15 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Skeleton
4
- *
5
- * @tag base-skeleton
4
+ * @tag wc-skeleton
6
5
  * @rawTag skeleton
7
- *
8
6
  * @summary Adds a skeleton effect to an element.
9
- *
10
- *
11
7
  * @tags display
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-skeleton visible></wc-skeleton>
12
+ * ```
12
13
  */
13
14
  export declare class Skeleton extends LitElement {
14
15
  static styles: import("lit").CSSResultGroup[];
@@ -0,0 +1 @@
1
+ export { Slider } from './slider.js';
@@ -0,0 +1,52 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Slider
4
+ * @tag wc-slider
5
+ * @rawTag slider
6
+ *
7
+ * @summary Sliders allow users to make selections from a range of values.
8
+ *
9
+ * @fires {CustomEvent} input - Dispatched when the slider value changes during interaction.
10
+ * @fires {CustomEvent} change - Dispatched when the slider interaction ends.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-slider min="0" max="100" value="50"></wc-slider>
15
+ * ```
16
+ */
17
+ export declare class Slider extends LitElement {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ /**
20
+ * The minimum value of the slider.
21
+ */
22
+ min: number;
23
+ /**
24
+ * The maximum value of the slider.
25
+ */
26
+ max: number;
27
+ /**
28
+ * The current value of the slider.
29
+ */
30
+ value: number;
31
+ /**
32
+ * The step increment for the slider.
33
+ */
34
+ step: number;
35
+ /**
36
+ * Whether the slider is disabled.
37
+ */
38
+ disabled: boolean;
39
+ /**
40
+ * Whether to show labels on the slider.
41
+ */
42
+ labeled: boolean;
43
+ private isDragging;
44
+ private container;
45
+ private thumbElement;
46
+ private handleInput;
47
+ private onMouseDown;
48
+ private onMouseMove;
49
+ private onMouseUp;
50
+ private handleKeyDown;
51
+ render(): import("lit-html").TemplateResult<1>;
52
+ }
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Spinner
4
- * @tag base-spinner
4
+ * @tag wc-spinner
5
5
  * @rawTag spinner
6
6
  * @summary A spinner component that animates a circular shape.
7
7
  * @cssprop --spinner-track-color - The color of the track.
@@ -10,7 +10,7 @@ import { LitElement } from 'lit';
10
10
  *
11
11
  * @example
12
12
  * ```html
13
- * <base-spinner></base-spinner>
13
+ * <wc-spinner></wc-spinner>
14
14
  * ```
15
15
  */
16
16
  export declare class Spinner extends LitElement {
@@ -2,7 +2,7 @@ import { nothing } from 'lit';
2
2
  import BaseInput from '../input/BaseInput.js';
3
3
  /**
4
4
  * @label Switch
5
- * @tag base-switch
5
+ * @tag wc-switch
6
6
  * @rawTag switch
7
7
  *
8
8
  * @summary Captures boolean input with an on/off switch interaction.
@@ -22,7 +22,7 @@ import BaseInput from '../input/BaseInput.js';
22
22
  *
23
23
  * @example
24
24
  * ```html
25
- * <base-switch value="true"></base-switch>
25
+ * <wc-switch value="true"></wc-switch>
26
26
  * ```
27
27
  * @tags input, form
28
28
  */
@@ -0,0 +1,4 @@
1
+ export { Tab } from './tab.js';
2
+ export { TabGroup } from './tab-group.js';
3
+ export { TabPanel } from './tab-panel.js';
4
+ export { Tabs } from './tabs.js';
@@ -0,0 +1,41 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Tab Group
4
+ * @tag wc-tab-group
5
+ * @rawTag tab-group
6
+ *
7
+ * @summary The tab group component is used to display multiple panels of content in a container.
8
+ * @overview
9
+ * <p>The tab group component allows users to switch between different views or content sections.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-tab-group>
14
+ *
15
+ * <wc-tabs>
16
+ * <wc-tab selected >Tab 1</wc-tab>
17
+ * <wc-tab>Tab 2</wc-tab>
18
+ * </wc-tabs>
19
+ *
20
+ * <wc-tab-panel>Panel 1</wc-tab-panel>
21
+ * <wc-tab-panel>Panel 2</wc-tab-panel>
22
+ * </wc-tab-group>
23
+ * ```
24
+ * @tags navigation
25
+ */
26
+ export declare class TabGroup extends LitElement {
27
+ static styles: import("lit").CSSResultGroup[];
28
+ variant: 'line' | 'line-secondary' | 'contained' | 'pill';
29
+ private uid;
30
+ connectedCallback(): void;
31
+ disconnectedCallback(): void;
32
+ firstUpdated(): void;
33
+ private onTabClick;
34
+ selectTab(target: string): void;
35
+ private getTabs;
36
+ private getTabPanels;
37
+ private getTabList;
38
+ private tabsHaveTarget;
39
+ private initializeTabs;
40
+ render(): import("lit-html").TemplateResult<1>;
41
+ }
@@ -0,0 +1,21 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Tab Panel
4
+ * @tag wc-tab-panel
5
+ * @rawTag tab-panel
6
+ *
7
+ * @summary Content panel for tabs.
8
+ * @overview
9
+ * <p>TabPanel contains the content associated with a tab.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-tab-panel>Content for this tab</wc-tab-panel>
14
+ * ```
15
+ * @tags navigation
16
+ */
17
+ export declare class TabPanel extends LitElement {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ value?: string;
20
+ render(): import("lit-html").TemplateResult<1>;
21
+ }
@@ -0,0 +1,58 @@
1
+ import { LitElement, nothing } from 'lit';
2
+ /**
3
+ * @label Tab
4
+ * @tag wc-tab
5
+ * @rawTag tab
6
+ *
7
+ * @summary A tab component for use within tabs.
8
+ * @overview
9
+ * <p>Tab represents an individual tab in a tabs component.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-tab>Tab Label</wc-tab>
14
+ * ```
15
+ * @tags navigation
16
+ */
17
+ export declare class Tab extends LitElement {
18
+ #private;
19
+ static styles: import("lit").CSSResultGroup[];
20
+ active: boolean;
21
+ disabled: boolean;
22
+ disabledReason: string;
23
+ icon?: string;
24
+ label?: string;
25
+ value?: string;
26
+ configAria?: {
27
+ [key: string]: any;
28
+ };
29
+ /**
30
+ * Sets or retrieves the window or frame at which to target content.
31
+ */
32
+ target: string;
33
+ href?: string;
34
+ /**
35
+ * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
36
+ */
37
+ throttleDelay: number;
38
+ hasFocus: boolean;
39
+ slotHasContent: boolean;
40
+ /**
41
+ * States
42
+ */
43
+ isPressed: boolean;
44
+ private _tabindex;
45
+ readonly tabElement: HTMLElement | null;
46
+ focus(): void;
47
+ blur(): void;
48
+ constructor();
49
+ firstUpdated(): void;
50
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
51
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
52
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
53
+ __isLink(): boolean;
54
+ render(): import("lit-html").TemplateResult<1>;
55
+ renderTabContent(): import("lit-html").TemplateResult<1>;
56
+ __getDisabledReasonID(): string | typeof nothing;
57
+ __renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
58
+ }
@@ -0,0 +1,27 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Tabs
4
+ * @tag wc-tabs
5
+ * @rawTag tabs
6
+ *
7
+ * @summary Container for tab components.
8
+ * @overview
9
+ * <p>Tabs holds the tab buttons and manages their layout.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-tabs>
14
+ * <wc-tab>Tab 1</wc-tab>
15
+ * <wc-tab>Tab 2</wc-tab>
16
+ * </wc-tabs>
17
+ * ```
18
+ * @tags navigation
19
+ */
20
+ export declare class Tabs extends LitElement {
21
+ static styles: import("lit").CSSResultGroup[];
22
+ managed: boolean;
23
+ connectedCallback(): void;
24
+ disconnectedCallback(): void;
25
+ private __handleTabClick;
26
+ render(): import("lit-html").TemplateResult<1>;
27
+ }
@@ -1,14 +1,14 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Textarea
4
- * @tag textarea-field
4
+ * @tag wc-textarea
5
5
  * @rawTag textarea
6
- *
7
6
  * @summary The Textarea component is used to capture user input.
7
+ * @tags input
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <textarea-field label="Name" required placeholder="Enter your name"></textarea-field>
11
+ * <wc-textarea label="Description" placeholder="Enter text"></wc-textarea>
12
12
  * ```
13
13
  */
14
14
  export declare class Textarea extends BaseInput {
@@ -1,14 +1,14 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Time Picker
4
- * @tag time-picker
4
+ * @tag wc-time-picker
5
5
  * @rawTag time-picker
6
- *
7
6
  * @summary The Time Picker component is used to capture time user input.
7
+ * @tags input
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <time-picker label="Name" required placeholder="Enter your name"></time-picker>
11
+ * <wc-time-picker label="Time" placeholder="Select a time"></wc-time-picker>
12
12
  * ```
13
13
  */
14
14
  export declare class TimePicker extends BaseInput {
@@ -2,15 +2,17 @@ import { LitElement } from 'lit';
2
2
  export type TooltipTrigger = 'hover' | 'focus' | 'click';
3
3
  /**
4
4
  * @label Tooltip
5
- * @tag base-tooltip
5
+ * @tag wc-tooltip
6
6
  * @rawTag tooltip
7
7
  * @summary Displays a tooltip for an element.
8
+ * @tags display
8
9
  *
9
10
  * @example
10
11
  * ```html
11
- * <span class="tooltip">Tooltip</span>
12
+ * <wc-tooltip content="Tooltip text">
13
+ * <button>Hover me</button>
14
+ * </wc-tooltip>
12
15
  * ```
13
- * @tags display
14
16
  */
15
17
  export declare class Tooltip extends LitElement {
16
18
  static styles: import("lit").CSSResultGroup[];
@@ -23,6 +25,7 @@ export declare class Tooltip extends LitElement {
23
25
  trigger: string;
24
26
  open: boolean;
25
27
  variant: 'plain' | 'rich';
28
+ preview: boolean;
26
29
  floatingEl: HTMLElement;
27
30
  private _target;
28
31
  private _popover;
@@ -1,4 +1,4 @@
1
- import { n } from './PeacockComponent-CxJc63xj.js';
1
+ import { n } from './IndividualComponent-tDnXrOLV.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -7,4 +7,4 @@ import { n } from './PeacockComponent-CxJc63xj.js';
7
7
  */function r(r){return n({...r,state:true,attribute:false})}
8
8
 
9
9
  export { r };
10
- //# sourceMappingURL=state-B09bP3XH.js.map
10
+ //# sourceMappingURL=state-8v48Exzh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state-B09bP3XH.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n"],"names":["t"],"mappings":";;AACA;AACA;AACA;AACA;AACA,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAOA,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAE,CAAC,SAAS,CAAC,KAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"state-8v48Exzh.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js"],"sourcesContent":["import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n"],"names":["t"],"mappings":";;AACA;AACA;AACA;AACA;AACA,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAOA,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAE,CAAC,SAAS,CAAC,KAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}