@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.
- package/dist/{PeacockComponent-CxJc63xj.js → IndividualComponent-tDnXrOLV.js} +3 -3
- package/dist/IndividualComponent-tDnXrOLV.js.map +1 -0
- package/dist/assets/components.css +1 -1
- package/dist/assets/components.css.map +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles.css.map +1 -1
- package/dist/button-group-DA7xoziD.js +292 -0
- package/dist/button-group-DA7xoziD.js.map +1 -0
- package/dist/button-group.js +6 -107
- package/dist/button-group.js.map +1 -1
- package/dist/{button-DaL4va7Q.js → button-trIfcqC7.js} +21 -35
- package/dist/button-trIfcqC7.js.map +1 -0
- package/dist/button.js +5 -5
- package/dist/chart-donut.js +307 -0
- package/dist/chart-donut.js.map +1 -0
- package/dist/chart-doughnut.js +307 -0
- package/dist/chart-doughnut.js.map +1 -0
- package/dist/chart-pie.js +259 -0
- package/dist/chart-pie.js.map +1 -0
- package/dist/{class-map-BvQRv7eW.js → class-map-hJdvjl-W.js} +9 -3
- package/dist/class-map-hJdvjl-W.js.map +1 -0
- package/dist/clock.js +5 -6
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +38 -25
- package/dist/code-editor.js.map +1 -1
- package/dist/code-highlighter.js +10 -14
- package/dist/code-highlighter.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +8144 -3654
- package/dist/custom-elements.json +7925 -3901
- package/dist/{dispatch-event-utils-vbdiOSeC.js → dispatch-event-utils-B4odODQf.js} +2 -15
- package/dist/dispatch-event-utils-B4odODQf.js.map +1 -0
- package/dist/index.js +13 -10
- package/dist/index.js.map +1 -1
- package/dist/number-counter.js +12 -10
- package/dist/number-counter.js.map +1 -1
- package/dist/{observe-theme-change-NneLARW8.js → observe-theme-change-BISF-Gl5.js} +2 -2
- package/dist/{observe-theme-change-NneLARW8.js.map → observe-theme-change-BISF-Gl5.js.map} +1 -1
- package/dist/peacock-loader.js +94 -502
- package/dist/peacock-loader.js.map +1 -1
- package/dist/query-QBcUV-L_.js +15 -0
- package/dist/query-QBcUV-L_.js.map +1 -0
- package/dist/src/IndividualComponent.d.ts +1 -0
- package/dist/src/accordion/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +5 -4
- package/dist/src/accordion/{accordion/accordion.d.ts → accordion.d.ts} +6 -6
- package/dist/src/accordion/{accordion-item/index.d.ts → index.d.ts} +1 -0
- package/dist/src/avatar/avatar.d.ts +2 -2
- package/dist/src/badge/badge.d.ts +2 -2
- package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +9 -8
- package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +4 -3
- package/dist/src/button/button/button.d.ts +2 -2
- package/dist/src/button/button-group/button-group.d.ts +9 -5
- package/dist/src/button/icon-button/icon-button.d.ts +2 -2
- package/dist/src/chart-donut/chart-donut.d.ts +53 -0
- package/dist/src/chart-donut/index.d.ts +1 -0
- package/dist/src/chart-doughnut/chart-doughnut.d.ts +53 -0
- package/dist/src/chart-doughnut/index.d.ts +1 -0
- package/dist/src/chart-pie/chart-pie.d.ts +50 -0
- package/dist/src/chart-pie/index.d.ts +1 -0
- package/dist/src/checkbox/checkbox.d.ts +3 -6
- package/dist/src/chip/chip/chip.d.ts +4 -4
- package/dist/src/chip/tag/tag.d.ts +3 -3
- package/dist/src/clock/clock.d.ts +3 -4
- package/dist/src/code-editor/code-editor.d.ts +13 -10
- package/dist/src/code-highlighter/code-highlighter.d.ts +4 -7
- package/dist/src/container/container.d.ts +6 -11
- package/dist/src/date-picker/date-picker.d.ts +3 -3
- package/dist/src/divider/divider.d.ts +2 -2
- package/dist/src/elevation/elevation.d.ts +2 -2
- package/dist/src/empty-state/empty-state.d.ts +9 -2
- package/dist/src/field/field.d.ts +17 -0
- package/dist/src/focus-ring/focus-ring.d.ts +1 -1
- package/dist/src/icon/icon.d.ts +2 -2
- package/dist/src/image/image.d.ts +4 -12
- package/dist/src/index.d.ts +9 -1
- package/dist/src/input/input.d.ts +2 -2
- package/dist/src/link/link.d.ts +4 -5
- package/dist/src/menu/index.d.ts +3 -0
- package/dist/src/menu/menu/MenuSurfaceController.d.ts +18 -0
- package/dist/src/menu/menu/menu.d.ts +66 -8
- package/dist/src/menu/menu-item/menu-item.d.ts +24 -5
- package/dist/src/menu/sub-menu/sub-menu.d.ts +36 -0
- package/dist/src/number-counter/number-counter.d.ts +9 -7
- package/dist/src/number-field/number-field.d.ts +1 -1
- package/dist/src/pagination/index.d.ts +1 -0
- package/dist/src/pagination/pagination.d.ts +38 -0
- package/dist/src/popover/PopoverController.d.ts +4 -1
- package/dist/src/popover/index.d.ts +1 -1
- package/dist/src/progress/circular-progress/circular-progress.d.ts +3 -3
- package/dist/src/progress/linear-progress/linear-progress.d.ts +3 -3
- package/dist/src/ripple/ripple.d.ts +60 -4
- package/dist/src/skeleton/skeleton.d.ts +6 -5
- package/dist/src/slider/index.d.ts +1 -0
- package/dist/src/slider/slider.d.ts +52 -0
- package/dist/src/spinner/spinner.d.ts +2 -2
- package/dist/src/switch/switch.d.ts +2 -2
- package/dist/src/table/index.d.ts +1 -0
- package/dist/src/table/table.d.ts +110 -0
- package/dist/src/tabs/index.d.ts +4 -0
- package/dist/src/tabs/tab-group.d.ts +45 -0
- package/dist/src/tabs/tab-panel.d.ts +22 -0
- package/dist/src/tabs/tab.d.ts +59 -0
- package/dist/src/tabs/tabs.d.ts +29 -0
- package/dist/src/textarea/textarea.d.ts +3 -3
- package/dist/src/time-picker/time-picker.d.ts +3 -3
- package/dist/src/{popover/tooltip → tooltip}/tooltip.d.ts +4 -3
- package/dist/src/tree-view/index.d.ts +2 -0
- package/dist/src/tree-view/tree-node.d.ts +69 -0
- package/dist/src/tree-view/tree-view.d.ts +40 -0
- package/dist/src/tree-view/wc-tree-view.d.ts +6 -0
- package/dist/{style-map-B8xgVEc9.js → style-map-CfNHEkQp.js} +2 -2
- package/dist/{style-map-B8xgVEc9.js.map → style-map-CfNHEkQp.js.map} +1 -1
- package/dist/test/icon.test.d.ts +1 -1
- package/dist/test/menu.test.d.ts +1 -0
- package/dist/test/sub-menu.test.d.ts +1 -0
- package/dist/test/tree-view.test.d.ts +1 -0
- package/dist/transform-DRuHEvar.js +3312 -0
- package/dist/transform-DRuHEvar.js.map +1 -0
- package/dist/{image-v3BujlY5.js → tree-view-CLolVlU0.js} +4088 -672
- package/dist/tree-view-CLolVlU0.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{unsafe-html-B-dV3Jps.js → unsafe-html-CV6Je6HL.js} +2 -2
- package/dist/{unsafe-html-B-dV3Jps.js.map → unsafe-html-CV6Je6HL.js.map} +1 -1
- package/package.json +3 -1
- package/readme.md +40 -40
- package/src/{PeacockComponent.ts → IndividualComponent.ts} +1 -1
- package/src/accordion/{accordion-item/accordion-item.scss → accordion-item.scss} +1 -1
- package/src/accordion/{accordion-item/accordion-item.ts → accordion-item.ts} +7 -6
- package/src/accordion/{accordion/accordion.scss → accordion.scss} +2 -1
- package/src/accordion/{accordion/accordion.ts → accordion.ts} +6 -6
- package/src/accordion/{accordion-item/index.ts → index.ts} +2 -0
- package/src/avatar/avatar.ts +2 -2
- package/src/badge/badge.ts +2 -2
- package/src/breadcrumb/breadcrumb/breadcrumb.ts +10 -8
- package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +4 -3
- package/src/button/BaseButton.ts +1 -1
- package/src/button/button/button.scss +9 -23
- package/src/button/button/button.ts +8 -8
- package/src/button/button-group/button-group.ts +13 -7
- package/src/button/icon-button/icon-button.ts +8 -8
- package/src/chart-donut/chart-donut.scss +37 -0
- package/src/chart-donut/chart-donut.ts +287 -0
- package/src/chart-donut/demo/index.html +51 -0
- package/src/chart-donut/index.ts +1 -0
- package/src/chart-doughnut/chart-donut.scss +37 -0
- package/src/chart-doughnut/chart-doughnut.ts +287 -0
- package/src/chart-doughnut/demo/index.html +51 -0
- package/src/chart-doughnut/index.ts +1 -0
- package/src/chart-pie/chart-pie.scss +27 -0
- package/src/chart-pie/chart-pie.ts +256 -0
- package/src/chart-pie/demo/index.html +51 -0
- package/src/chart-pie/index.ts +1 -0
- package/src/checkbox/checkbox.ts +3 -6
- package/src/chip/chip/chip.ts +6 -6
- package/src/chip/tag/tag.ts +6 -6
- package/src/clock/clock.ts +5 -6
- package/src/code-editor/code-editor.scss +3 -5
- package/src/code-editor/code-editor.ts +32 -16
- package/src/code-highlighter/code-highlighter.ts +8 -11
- package/src/container/container.ts +6 -11
- package/src/date-picker/date-picker.ts +7 -7
- package/src/divider/divider.scss +2 -2
- package/src/divider/divider.ts +2 -2
- package/src/elevation/elevation.ts +2 -2
- package/src/empty-state/empty-state.scss +1 -1
- package/src/empty-state/empty-state.ts +10 -3
- package/src/field/field.scss +4 -4
- package/src/field/field.ts +19 -2
- package/src/focus-ring/focus-ring.scss +2 -1
- package/src/focus-ring/focus-ring.ts +1 -1
- package/src/icon/icon.ts +2 -2
- package/src/icon/p-icon.ts +1 -1
- package/src/image/image.ts +4 -12
- package/src/index.ts +11 -3
- package/src/input/input.ts +6 -6
- package/src/link/link.ts +4 -5
- package/src/menu/index.ts +3 -0
- package/src/menu/menu/MenuSurfaceController.ts +61 -0
- package/src/menu/{menu-list/menu-list.scss → menu/menu.scss} +19 -4
- package/src/menu/menu/menu.ts +401 -77
- package/src/menu/menu-item/menu-item-colors.scss +2 -2
- package/src/menu/menu-item/menu-item.ts +128 -37
- package/src/menu/sub-menu/sub-menu.scss +7 -0
- package/src/menu/sub-menu/sub-menu.ts +243 -0
- package/src/number-counter/demo/index.html +1 -1
- package/src/number-counter/number-counter.ts +11 -9
- package/src/number-field/number-field.ts +7 -7
- package/src/pagination/index.ts +1 -0
- package/src/pagination/pagination.scss +59 -0
- package/src/pagination/pagination.ts +135 -0
- package/src/peacock-loader.ts +92 -51
- package/src/popover/PopoverController.ts +13 -7
- package/src/popover/index.ts +1 -1
- package/src/progress/circular-progress/circular-progress.scss +1 -1
- package/src/progress/circular-progress/circular-progress.ts +3 -3
- package/src/progress/linear-progress/linear-progress.ts +3 -3
- package/src/ripple/ripple.ts +478 -94
- package/src/skeleton/skeleton.ts +6 -5
- package/src/slider/index.ts +1 -0
- package/src/slider/slider.scss +130 -0
- package/src/slider/slider.ts +178 -0
- package/src/spinner/spinner.ts +2 -2
- package/src/switch/switch.ts +4 -4
- package/src/table/index.ts +1 -0
- package/src/table/table.scss +174 -0
- package/src/table/table.ts +475 -0
- package/src/tabs/index.ts +4 -0
- package/src/tabs/tab-group.scss +10 -0
- package/src/tabs/tab-group.ts +143 -0
- package/src/tabs/tab-panel.scss +12 -0
- package/src/tabs/tab-panel.ts +29 -0
- package/src/tabs/tab.scss +157 -0
- package/src/tabs/tab.ts +243 -0
- package/src/tabs/tabs.scss +19 -0
- package/src/tabs/tabs.ts +66 -0
- package/src/text/text.css-component.scss +6 -3
- package/src/textarea/textarea.ts +5 -5
- package/src/time-picker/time-picker.ts +7 -7
- package/src/{popover/tooltip → tooltip}/tooltip.scss +17 -14
- package/src/{popover/tooltip → tooltip}/tooltip.ts +12 -10
- package/src/tree-view/demo/index.html +57 -0
- package/src/tree-view/index.ts +2 -0
- package/src/tree-view/tree-node.scss +101 -0
- package/src/tree-view/tree-node.ts +268 -0
- package/src/tree-view/tree-view.scss +12 -0
- package/src/tree-view/tree-view.ts +182 -0
- package/src/tree-view/wc-tree-view.ts +9 -0
- package/dist/PeacockComponent-CxJc63xj.js.map +0 -1
- package/dist/button-DaL4va7Q.js.map +0 -1
- package/dist/class-map-BvQRv7eW.js.map +0 -1
- package/dist/dispatch-event-utils-vbdiOSeC.js.map +0 -1
- package/dist/image-v3BujlY5.js.map +0 -1
- package/dist/src/PeacockComponent.d.ts +0 -1
- package/dist/src/accordion/accordion/index.d.ts +0 -1
- package/dist/src/avatar/p-avatar.d.ts +0 -3
- package/dist/src/badge/p-badge.d.ts +0 -3
- package/dist/src/menu/menu-list/menu-list.d.ts +0 -7
- package/dist/state-B09bP3XH.js +0 -10
- package/dist/state-B09bP3XH.js.map +0 -1
- package/src/accordion/accordion/index.ts +0 -1
- package/src/avatar/p-avatar.ts +0 -5
- package/src/badge/p-badge.ts +0 -5
- 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
|
|
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
|
-
* <
|
|
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
|
|
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
|
-
* <
|
|
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
|
|
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
|
-
* <
|
|
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
|
|
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
|
-
* <
|
|
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
|
|
7
|
+
* @summary A Monaco-based code editing component with syntax highlighting and theming.
|
|
8
8
|
* @overview
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
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-
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* }
|
|
18
|
-
*
|
|
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
|
|
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
|
|
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
|
|
5
|
+
* @tag wc-container
|
|
6
6
|
* @rawTag container
|
|
7
|
-
* @summary
|
|
8
|
-
*
|
|
9
|
-
* @cssprop --
|
|
10
|
-
* @
|
|
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
|
-
* <
|
|
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="
|
|
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
|
|
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
|
-
* <
|
|
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
|
|
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
|
-
* <
|
|
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
|
-
* @
|
|
5
|
-
* @
|
|
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;
|
package/dist/src/icon/icon.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
* <
|
|
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
|
|
4
|
+
* @tag wc-image
|
|
5
5
|
* @rawTag image
|
|
6
|
-
*
|
|
7
|
-
* @
|
|
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
|
-
* <
|
|
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[];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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/
|
|
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
|
|
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
|
|
11
|
+
* <wc-input label="Name" required placeholder="Enter your name"></wc-input>
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
14
|
export declare class Input extends BaseInput {
|
package/dist/src/link/link.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* @label Link
|
|
4
|
-
* @tag
|
|
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
|
-
* @
|
|
7
|
+
* @cssprop --link-color - Controls the color of the link.
|
|
8
|
+
* @tags navigation
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```html
|
|
12
|
-
* <
|
|
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,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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
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';
|