@daikin-oss/design-system-web-components 0.3.2 → 0.4.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.
- package/CHANGELOG.md +63 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +31 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +105 -59
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +28 -13
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +3 -6
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +38 -30
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
- package/dist/cjs/components/button/daikin-button.cjs +89 -128
- package/dist/cjs/components/button/daikin-button.d.ts +30 -27
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +99 -119
- package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/cjs/components/icon/daikin-icon.d.ts +4 -0
- package/dist/cjs/components/icon/icons.json.cjs +20 -0
- package/dist/cjs/components/icon/icons.json.d.ts +20 -0
- package/dist/cjs/components/index.cjs +18 -8
- package/dist/cjs/components/index.d.ts +4 -2
- package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
- package/dist/cjs/components/input-group/daikin-input-group.d.ts +6 -0
- package/dist/cjs/components/list/daikin-list.cjs +24 -0
- package/dist/cjs/components/list/daikin-list.d.ts +28 -0
- package/dist/cjs/components/list/index.cjs +7 -0
- package/dist/cjs/components/list/index.d.ts +1 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +125 -0
- package/dist/cjs/components/list-item/daikin-list-item.d.ts +64 -0
- package/dist/cjs/components/list-item/index.cjs +7 -0
- package/dist/cjs/components/list-item/index.d.ts +1 -0
- package/dist/cjs/components/notification/daikin-notification.cjs +14 -15
- package/dist/cjs/components/notification/daikin-notification.d.ts +13 -11
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +53 -29
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +32 -10
- package/dist/cjs/components/radio/daikin-radio.cjs +73 -92
- package/dist/cjs/components/radio/daikin-radio.d.ts +23 -39
- package/dist/cjs/components/tab/daikin-tab.cjs +41 -46
- package/dist/cjs/components/tab/daikin-tab.d.ts +12 -12
- package/dist/cjs/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +8 -8
- package/dist/{cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.ts} +17 -11
- package/dist/cjs/components/tab-panels/index.cjs +7 -0
- package/dist/cjs/components/tab-panels/index.d.ts +1 -0
- package/dist/cjs/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +29 -35
- package/dist/cjs/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -21
- package/dist/cjs/components/tabs/index.cjs +7 -0
- package/dist/cjs/components/tabs/index.d.ts +1 -0
- package/dist/cjs/components/text-input/daikin-text-input.cjs +4 -3
- package/dist/cjs/components/text-input/daikin-text-input.d.ts +5 -0
- package/dist/cjs/components/textarea/daikin-textarea.cjs +3 -3
- package/dist/cjs/components/textarea/daikin-textarea.d.ts +5 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
- package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -26
- package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +4 -0
- package/dist/cjs/index.cjs +18 -8
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +31 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +105 -59
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +3 -6
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +38 -30
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
- package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -27
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +99 -119
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +20 -0
- package/dist/cjs-dev/components/icon/icons.json.d.ts +20 -0
- package/dist/cjs-dev/components/index.cjs +18 -8
- package/dist/cjs-dev/components/index.d.ts +4 -2
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +6 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +24 -0
- package/dist/cjs-dev/components/list/daikin-list.d.ts +28 -0
- package/dist/cjs-dev/components/list/index.cjs +7 -0
- package/dist/cjs-dev/components/list/index.d.ts +1 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +125 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.ts +64 -0
- package/dist/cjs-dev/components/list-item/index.cjs +7 -0
- package/dist/cjs-dev/components/list-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +14 -15
- package/dist/cjs-dev/components/notification/daikin-notification.d.ts +13 -11
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +53 -29
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +73 -92
- package/dist/cjs-dev/components/radio/daikin-radio.d.ts +23 -39
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +41 -46
- package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -12
- package/dist/cjs-dev/components/{panel-switcher/daikin-panel-switcher.cjs → tab-panels/daikin-tab-panels.cjs} +9 -9
- package/dist/{cjs/components/panel-switcher/daikin-panel-switcher.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.ts} +17 -11
- package/dist/cjs-dev/components/tab-panels/index.cjs +7 -0
- package/dist/cjs-dev/components/tab-panels/index.d.ts +1 -0
- package/dist/cjs-dev/components/{tab-group/daikin-tab-group.cjs → tabs/daikin-tabs.cjs} +31 -37
- package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -21
- package/dist/cjs-dev/components/tabs/index.cjs +7 -0
- package/dist/cjs-dev/components/tabs/index.d.ts +1 -0
- package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +4 -3
- package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +5 -0
- package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +3 -3
- package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +5 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -26
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +4 -0
- package/dist/cjs-dev/index.cjs +18 -8
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/es/components/accordion/daikin-accordion.js +32 -7
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -13
- package/dist/es/components/accordion-item/daikin-accordion-item.js +106 -60
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +3 -6
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
- package/dist/es/components/button/daikin-button.d.ts +30 -27
- package/dist/es/components/button/daikin-button.js +90 -129
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/es/components/checkbox/daikin-checkbox.js +101 -121
- package/dist/es/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es/components/icon/icons.json.d.ts +20 -0
- package/dist/es/components/icon/icons.json.js +20 -0
- package/dist/es/components/index.d.ts +4 -2
- package/dist/es/components/index.js +8 -4
- package/dist/es/components/input-group/daikin-input-group.d.ts +6 -0
- package/dist/es/components/input-group/daikin-input-group.js +1 -1
- package/dist/es/components/list/daikin-list.d.ts +28 -0
- package/dist/es/components/list/daikin-list.js +25 -0
- package/dist/es/components/list/index.d.ts +1 -0
- package/dist/es/components/list/index.js +4 -0
- package/dist/es/components/list-item/daikin-list-item.d.ts +64 -0
- package/dist/es/components/list-item/daikin-list-item.js +126 -0
- package/dist/es/components/list-item/index.d.ts +1 -0
- package/dist/es/components/list-item/index.js +4 -0
- package/dist/es/components/notification/daikin-notification.d.ts +13 -11
- package/dist/es/components/notification/daikin-notification.js +15 -16
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +32 -10
- package/dist/es/components/progress-bar/daikin-progress-bar.js +53 -29
- package/dist/es/components/radio/daikin-radio.d.ts +23 -39
- package/dist/es/components/radio/daikin-radio.js +74 -93
- package/dist/es/components/tab/daikin-tab.d.ts +12 -12
- package/dist/es/components/tab/daikin-tab.js +42 -47
- package/dist/es/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -11
- package/dist/es/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +9 -9
- package/dist/es/components/tab-panels/index.d.ts +1 -0
- package/dist/es/components/tab-panels/index.js +4 -0
- package/dist/es/components/{tab-group/daikin-tab-group.d.ts → tabs/daikin-tabs.d.ts} +27 -21
- package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +30 -36
- package/dist/es/components/tabs/index.d.ts +1 -0
- package/dist/es/components/tabs/index.js +4 -0
- package/dist/es/components/text-input/daikin-text-input.d.ts +5 -0
- package/dist/es/components/text-input/daikin-text-input.js +4 -3
- package/dist/es/components/textarea/daikin-textarea.d.ts +5 -0
- package/dist/es/components/textarea/daikin-textarea.js +3 -3
- package/dist/es/components/toggle/daikin-toggle.d.ts +15 -26
- package/dist/es/components/toggle/daikin-toggle.js +45 -69
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +4 -0
- package/dist/es/index.js +8 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/es-dev/components/accordion/daikin-accordion.js +32 -7
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -13
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +106 -60
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +3 -6
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +12 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +38 -30
- package/dist/es-dev/components/button/daikin-button.d.ts +30 -27
- package/dist/es-dev/components/button/daikin-button.js +90 -129
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +101 -121
- package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es-dev/components/icon/icons.json.d.ts +20 -0
- package/dist/es-dev/components/icon/icons.json.js +20 -0
- package/dist/es-dev/components/index.d.ts +4 -2
- package/dist/es-dev/components/index.js +8 -4
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +6 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
- package/dist/es-dev/components/list/daikin-list.d.ts +28 -0
- package/dist/es-dev/components/list/daikin-list.js +25 -0
- package/dist/es-dev/components/list/index.d.ts +1 -0
- package/dist/es-dev/components/list/index.js +4 -0
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +64 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +126 -0
- package/dist/es-dev/components/list-item/index.d.ts +1 -0
- package/dist/es-dev/components/list-item/index.js +4 -0
- package/dist/es-dev/components/notification/daikin-notification.d.ts +13 -11
- package/dist/es-dev/components/notification/daikin-notification.js +15 -16
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +32 -10
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +53 -29
- package/dist/es-dev/components/radio/daikin-radio.d.ts +23 -39
- package/dist/es-dev/components/radio/daikin-radio.js +74 -93
- package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -12
- package/dist/es-dev/components/tab/daikin-tab.js +42 -47
- package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.d.ts → tab-panels/daikin-tab-panels.d.ts} +17 -11
- package/dist/es-dev/components/{panel-switcher/daikin-panel-switcher.js → tab-panels/daikin-tab-panels.js} +10 -10
- package/dist/es-dev/components/tab-panels/index.d.ts +1 -0
- package/dist/es-dev/components/tab-panels/index.js +4 -0
- package/dist/{cjs-dev/components/tab-group/daikin-tab-group.d.ts → es-dev/components/tabs/daikin-tabs.d.ts} +27 -21
- package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +32 -38
- package/dist/es-dev/components/tabs/index.d.ts +1 -0
- package/dist/es-dev/components/tabs/index.js +4 -0
- package/dist/es-dev/components/text-input/daikin-text-input.d.ts +5 -0
- package/dist/es-dev/components/text-input/daikin-text-input.js +4 -3
- package/dist/es-dev/components/textarea/daikin-textarea.d.ts +5 -0
- package/dist/es-dev/components/textarea/daikin-textarea.js +3 -3
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -26
- package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +4 -0
- package/dist/es-dev/index.js +8 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/icons/checkbox-indeterminate.svg +2 -2
- package/icons/chevron-down.svg +3 -0
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/chevron-up.svg +3 -0
- package/icons/status-error.svg +3 -0
- package/package.json +2 -1
- package/dist/cjs/components/panel-switcher/index.cjs +0 -7
- package/dist/cjs/components/panel-switcher/index.d.ts +0 -1
- package/dist/cjs/components/tab-group/index.cjs +0 -7
- package/dist/cjs/components/tab-group/index.d.ts +0 -1
- package/dist/cjs-dev/components/panel-switcher/index.cjs +0 -7
- package/dist/cjs-dev/components/panel-switcher/index.d.ts +0 -1
- package/dist/cjs-dev/components/tab-group/index.cjs +0 -7
- package/dist/cjs-dev/components/tab-group/index.d.ts +0 -1
- package/dist/es/components/panel-switcher/index.d.ts +0 -1
- package/dist/es/components/panel-switcher/index.js +0 -4
- package/dist/es/components/tab-group/index.d.ts +0 -1
- package/dist/es/components/tab-group/index.js +0 -4
- package/dist/es-dev/components/panel-switcher/index.d.ts +0 -1
- package/dist/es-dev/components/panel-switcher/index.js +0 -4
- package/dist/es-dev/components/tab-group/index.d.ts +0 -1
- package/dist/es-dev/components/tab-group/index.js +0 -4
- package/icons/accordion-chevron-up.svg +0 -3
- package/icons/radio-checked.svg +0 -4
- package/icons/radio-unchecked.svg +0 -4
- package/icons/status-negative.svg +0 -11
- /package/dist/cjs/components/{tab-group → tabs}/scroller.cjs +0 -0
- /package/dist/cjs/components/{tab-group → tabs}/scroller.d.ts +0 -0
- /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.cjs +0 -0
- /package/dist/cjs-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
- /package/dist/es/components/{tab-group → tabs}/scroller.d.ts +0 -0
- /package/dist/es/components/{tab-group → tabs}/scroller.js +0 -0
- /package/dist/es-dev/components/{tab-group → tabs}/scroller.d.ts +0 -0
- /package/dist/es-dev/components/{tab-group → tabs}/scroller.js +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { property, query, customElement } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
6
|
+
import "../icon/daikin-icon.js";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
const INNER_CN = cva([
|
|
18
|
+
"text-left",
|
|
19
|
+
"before:absolute",
|
|
20
|
+
"before:inset-0",
|
|
21
|
+
"before:w-full",
|
|
22
|
+
"before:h-full",
|
|
23
|
+
"focus-visible:outline-none",
|
|
24
|
+
"focus-visible:before:outline",
|
|
25
|
+
"focus-visible:before:outline-1",
|
|
26
|
+
"focus-visible:before:-outline-offset-1",
|
|
27
|
+
"focus-visible:before:outline-daikinBlue-700",
|
|
28
|
+
// For buttons and links
|
|
29
|
+
"link-enabled:before:group-hover:[&:not(:active)]:bg-[#f2f2f2]",
|
|
30
|
+
"link-enabled:before:active:bg-daikinNeutral-100",
|
|
31
|
+
// For text
|
|
32
|
+
"[&:not(a,button)]:before:group-hover:bg-[#f2f2f2]"
|
|
33
|
+
])();
|
|
34
|
+
let DaikinListItem = class extends LitElement {
|
|
35
|
+
constructor() {
|
|
36
|
+
super();
|
|
37
|
+
this.type = "button";
|
|
38
|
+
this.href = null;
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
this.addEventListener("click", (event) => {
|
|
41
|
+
if (this._disabled) {
|
|
42
|
+
event.stopImmediatePropagation();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
get _disabled() {
|
|
47
|
+
return (
|
|
48
|
+
// False if `type` is "text".
|
|
49
|
+
this.type !== "text" && // True if `this.disabled`, or if `type` is "link" and `href` is missing.
|
|
50
|
+
(this.disabled || this.type === "link" && this.href == null)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
_handleClickAction(event) {
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
const disabled = this._disabled;
|
|
58
|
+
const content = html`<span class="flex items-center w-full relative">
|
|
59
|
+
<slot name="left-icon">
|
|
60
|
+
<span class="block -ml-1"></span>
|
|
61
|
+
</slot>
|
|
62
|
+
<slot class="block pl-2 pr-3 text-left"></slot>
|
|
63
|
+
</span>`;
|
|
64
|
+
const list = {
|
|
65
|
+
button: () => html`<button type="button" class=${INNER_CN} ?disabled=${disabled}>
|
|
66
|
+
${content}
|
|
67
|
+
</button>`,
|
|
68
|
+
link: () => html`<a
|
|
69
|
+
class=${INNER_CN}
|
|
70
|
+
href=${ifDefined(!disabled ? this.href ?? void 0 : void 0)}
|
|
71
|
+
role=${ifDefined(disabled ? "link" : void 0)}
|
|
72
|
+
aria-disabled=${ifDefined(disabled ? "true" : void 0)}
|
|
73
|
+
>
|
|
74
|
+
${content}
|
|
75
|
+
</a>`,
|
|
76
|
+
text: () => html`<span class=${INNER_CN}>${content}</span>`
|
|
77
|
+
}[this.type]();
|
|
78
|
+
return html`<div
|
|
79
|
+
class=${// We cannot directly write classes like `class="..."` as they include '&', which must be escaped. It can't be escaped either because TailwindCSS can't process it.
|
|
80
|
+
// Set the text color here to apply to the icons on both sides along with text.
|
|
81
|
+
"group flex justify-between items-center w-full min-h-12 p-3 text-left relative text-daikinNeutral-800 [&:has(a:not(:any-link),:disabled)]:text-daikinNeutral-200"}
|
|
82
|
+
role="listitem"
|
|
83
|
+
>
|
|
84
|
+
${list}
|
|
85
|
+
<slot
|
|
86
|
+
name="action"
|
|
87
|
+
class="flex items-center gap-3"
|
|
88
|
+
@click=${this._handleClickAction}
|
|
89
|
+
>
|
|
90
|
+
<slot name="right-icon" class="pointer-events-none">
|
|
91
|
+
<span class="block -mr-1"></span>
|
|
92
|
+
</slot>
|
|
93
|
+
</slot>
|
|
94
|
+
</div>`;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Focuses on the inner button or link.
|
|
98
|
+
* It will have no effect if the `type` is "text" or `disabled` is `true`.
|
|
99
|
+
* @param options focus options
|
|
100
|
+
*/
|
|
101
|
+
focus(options) {
|
|
102
|
+
var _a;
|
|
103
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
DaikinListItem.styles = css`
|
|
107
|
+
${unsafeCSS(tailwindStyles)}
|
|
108
|
+
`;
|
|
109
|
+
__decorateClass([
|
|
110
|
+
property({ type: String, reflect: true })
|
|
111
|
+
], DaikinListItem.prototype, "type", 2);
|
|
112
|
+
__decorateClass([
|
|
113
|
+
property({ type: String, reflect: true })
|
|
114
|
+
], DaikinListItem.prototype, "href", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
property({ type: Boolean, reflect: true })
|
|
117
|
+
], DaikinListItem.prototype, "disabled", 2);
|
|
118
|
+
__decorateClass([
|
|
119
|
+
query("a,button")
|
|
120
|
+
], DaikinListItem.prototype, "_focusableElement", 2);
|
|
121
|
+
DaikinListItem = __decorateClass([
|
|
122
|
+
customElement("daikin-list-item")
|
|
123
|
+
], DaikinListItem);
|
|
124
|
+
export {
|
|
125
|
+
DaikinListItem
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-list-item';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
2
|
import { MergeVariantProps } from '../../type-utils';
|
|
3
3
|
declare const cvaContainer: (props?: ({
|
|
4
4
|
variant?: "toast" | "inline" | null | undefined;
|
|
@@ -25,22 +25,24 @@ type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof c
|
|
|
25
25
|
*
|
|
26
26
|
* @fires close - A custom event emitted when a user clicks the close button.
|
|
27
27
|
*
|
|
28
|
+
* @slot title - A slot for the notification title content.
|
|
29
|
+
* @slot description - A slot for the notification description content.
|
|
30
|
+
*
|
|
28
31
|
* @example
|
|
29
32
|
*
|
|
33
|
+
* ```js
|
|
34
|
+
* import "@daikin-oss/design-system-web-components/components/notification/index.js";
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
30
37
|
* ```html
|
|
31
|
-
*
|
|
38
|
+
* <daikin-notification>
|
|
39
|
+
* <span slot="title">Notification title</span>
|
|
40
|
+
* <span slot="description">Notification description</span>
|
|
41
|
+
* </daikin-notification>
|
|
32
42
|
* ```
|
|
33
43
|
*/
|
|
34
44
|
export declare class DaikinNotification extends LitElement {
|
|
35
45
|
static readonly styles: import('lit').CSSResult;
|
|
36
|
-
/**
|
|
37
|
-
* Title text
|
|
38
|
-
*/
|
|
39
|
-
title: string;
|
|
40
|
-
/**
|
|
41
|
-
* Description text
|
|
42
|
-
*/
|
|
43
|
-
description: string;
|
|
44
46
|
/**
|
|
45
47
|
* Type of notification
|
|
46
48
|
*/
|
|
@@ -65,7 +67,7 @@ export declare class DaikinNotification extends LitElement {
|
|
|
65
67
|
* Call the event registered in "close"
|
|
66
68
|
*/
|
|
67
69
|
private _handleClickClose;
|
|
68
|
-
render(): import('lit-html').TemplateResult<1> |
|
|
70
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
69
71
|
}
|
|
70
72
|
declare global {
|
|
71
73
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { colorFeedbackPositive, colorFeedbackWarning, colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { css, unsafeCSS, LitElement, html, nothing } from "lit";
|
|
4
4
|
import { property, customElement } from "lit/decorators.js";
|
|
5
5
|
import { EVENT_CLOSE } from "../../constants/events.js";
|
|
6
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -76,8 +76,6 @@ const cvaContent = cva(
|
|
|
76
76
|
let DaikinNotification = class extends LitElement {
|
|
77
77
|
constructor() {
|
|
78
78
|
super(...arguments);
|
|
79
|
-
this.title = "";
|
|
80
|
-
this.description = "";
|
|
81
79
|
this.variant = "toast";
|
|
82
80
|
this.status = "positive";
|
|
83
81
|
this.line = "single";
|
|
@@ -93,11 +91,16 @@ let DaikinNotification = class extends LitElement {
|
|
|
93
91
|
this.dispatchEvent(event);
|
|
94
92
|
}
|
|
95
93
|
render() {
|
|
94
|
+
const role = {
|
|
95
|
+
inline: "status",
|
|
96
|
+
toast: "alert"
|
|
97
|
+
}[this.variant];
|
|
96
98
|
return this.open ? html`<aside
|
|
97
99
|
class=${cvaContainer({
|
|
98
100
|
variant: this.variant,
|
|
99
101
|
status: this.status
|
|
100
102
|
})}
|
|
103
|
+
role=${role}
|
|
101
104
|
>
|
|
102
105
|
<div
|
|
103
106
|
class=${cvaIconContainer({
|
|
@@ -111,17 +114,19 @@ let DaikinNotification = class extends LitElement {
|
|
|
111
114
|
></daikin-icon>
|
|
112
115
|
</div>
|
|
113
116
|
<div
|
|
114
|
-
class="flex justify-between items-center gap-5 p-5 flex-
|
|
117
|
+
class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
|
|
115
118
|
>
|
|
116
119
|
<div
|
|
117
120
|
class=${cvaContent({
|
|
118
121
|
line: this.line
|
|
119
122
|
})}
|
|
120
123
|
>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</
|
|
124
|
-
<
|
|
124
|
+
<div class="font-bold flex-none">
|
|
125
|
+
<slot name="title"></slot>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="flex-none">
|
|
128
|
+
<slot name="description"></slot>
|
|
129
|
+
</div>
|
|
125
130
|
</div>
|
|
126
131
|
${this.closeButton ? html`
|
|
127
132
|
<div class="flex items-center gap-5">
|
|
@@ -137,9 +142,9 @@ let DaikinNotification = class extends LitElement {
|
|
|
137
142
|
></daikin-icon>
|
|
138
143
|
</button>
|
|
139
144
|
</div>
|
|
140
|
-
` :
|
|
145
|
+
` : nothing}
|
|
141
146
|
</div>
|
|
142
|
-
</aside>` :
|
|
147
|
+
</aside>` : nothing;
|
|
143
148
|
}
|
|
144
149
|
};
|
|
145
150
|
DaikinNotification.styles = css`
|
|
@@ -163,12 +168,6 @@ DaikinNotification.styles = css`
|
|
|
163
168
|
width: 100%;
|
|
164
169
|
}
|
|
165
170
|
`;
|
|
166
|
-
__decorateClass([
|
|
167
|
-
property({ type: String })
|
|
168
|
-
], DaikinNotification.prototype, "title", 2);
|
|
169
|
-
__decorateClass([
|
|
170
|
-
property({ type: String })
|
|
171
|
-
], DaikinNotification.prototype, "description", 2);
|
|
172
171
|
__decorateClass([
|
|
173
172
|
property({ type: String, reflect: true })
|
|
174
173
|
], DaikinNotification.prototype, "variant", 2);
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
declare const cvaBar: (props?: ({
|
|
4
|
+
variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
|
|
5
|
+
size?: "medium" | "large" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare const cvaHelper: (props?: ({
|
|
8
|
+
variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
|
|
9
|
+
visible?: boolean | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelper>;
|
|
2
12
|
/**
|
|
3
13
|
* The progress bar component is used to visually convey the progress to the user.
|
|
4
14
|
*
|
|
5
15
|
* There are four variants of the progress bar:
|
|
6
16
|
*
|
|
7
|
-
* - "inprogress"
|
|
8
|
-
* - "indeterminate"
|
|
9
|
-
* - "completed"
|
|
10
|
-
* - "error"
|
|
17
|
+
* - `"inprogress"`: The default variant. Use this when you know the exact progress. The length of the bar is the ratio of `value` to `max`.
|
|
18
|
+
* - `"indeterminate"`: Use this variant when you don't know the exact progress. In this variant, the `value` is ignored and the bar always animates from left to right with a constant length.
|
|
19
|
+
* - `"completed"`: In addition to `"inprogress"`, a completed icon is added. In this variant, the `value` is ignored and the bar always expands to the full width.
|
|
20
|
+
* - `"error"`: In addition to `"inprogress"`, an error icon is added and the color becomes red. In this variant, the `value` is ignored and the bar always expands to the full width.
|
|
21
|
+
*
|
|
22
|
+
* @slot - A slot for label text displayed at the top of the progress bar.
|
|
11
23
|
*
|
|
12
24
|
* @example
|
|
13
25
|
*
|
|
26
|
+
* ```js
|
|
27
|
+
* import "@daikin-oss/design-system-web-components/components/progress-bar/index.js";
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
14
30
|
* ```html
|
|
15
31
|
* <daikin-progress-bar value="40" helper="Progress bar helper">
|
|
16
32
|
* Progress bar label
|
|
@@ -20,19 +36,25 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
20
36
|
export declare class DaikinProgressBar extends LitElement {
|
|
21
37
|
static readonly styles: import('lit').CSSResult;
|
|
22
38
|
/**
|
|
23
|
-
*
|
|
39
|
+
* Variant of the progress bar.
|
|
24
40
|
*/
|
|
25
|
-
|
|
41
|
+
variant: ProgressBarVariantProps["variant"];
|
|
26
42
|
/**
|
|
27
|
-
*
|
|
43
|
+
* Size of the progress bar
|
|
28
44
|
*/
|
|
29
|
-
|
|
45
|
+
size: ProgressBarVariantProps["size"];
|
|
46
|
+
/**
|
|
47
|
+
* Value of the progress bar.
|
|
48
|
+
* Only used for `"inprogress"` variant.
|
|
49
|
+
*/
|
|
50
|
+
value: number;
|
|
30
51
|
/**
|
|
31
|
-
*
|
|
52
|
+
* Max value of the progress bar.
|
|
53
|
+
* Only used for `"inprogress"` variant.
|
|
32
54
|
*/
|
|
33
55
|
max: number;
|
|
34
56
|
/**
|
|
35
|
-
* Helper text
|
|
57
|
+
* Helper text displayed at the bottom of the progress bar.
|
|
36
58
|
*/
|
|
37
59
|
helper: string;
|
|
38
60
|
private _validateProperties;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { colorFeedbackPositive, colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
|
|
2
1
|
import { cva } from "class-variance-authority";
|
|
3
2
|
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
4
3
|
import { property, customElement } from "lit/decorators.js";
|
|
@@ -16,7 +15,6 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
15
|
const cvaBar = cva(
|
|
17
16
|
[
|
|
18
17
|
"w-full",
|
|
19
|
-
"h-1",
|
|
20
18
|
"bg-daikinNeutral-200",
|
|
21
19
|
"overflow-hidden",
|
|
22
20
|
"relative",
|
|
@@ -29,42 +27,62 @@ const cvaBar = cva(
|
|
|
29
27
|
variants: {
|
|
30
28
|
variant: {
|
|
31
29
|
inprogress: ["after:w-[--bar-width]", "after:bg-daikinBlue-500"],
|
|
32
|
-
completed: ["after:w-full", "after:bg-
|
|
30
|
+
completed: ["after:w-full", "after:bg-daikinGreen-500"],
|
|
33
31
|
indeterminate: [
|
|
34
32
|
"after:w-1/2",
|
|
35
33
|
"after:bg-daikinBlue-500",
|
|
36
34
|
"after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
|
|
37
35
|
],
|
|
38
|
-
error: ["after:w-full", "after:bg-
|
|
36
|
+
error: ["after:w-full", "after:bg-daikinRed-500"]
|
|
37
|
+
},
|
|
38
|
+
size: {
|
|
39
|
+
medium: ["h-1"],
|
|
40
|
+
large: ["h-2"]
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
);
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
const cvaBarContainer = cva(
|
|
46
|
+
["flex", "justify-between", "items-center", "leading-5", "font-bold"],
|
|
47
|
+
{
|
|
48
|
+
variants: {
|
|
49
|
+
variant: {
|
|
50
|
+
inprogress: [],
|
|
51
|
+
completed: [
|
|
52
|
+
"after:size-4",
|
|
53
|
+
"after:text-daikinGreen-500",
|
|
54
|
+
"after:i-daikin-notification-status-positive"
|
|
55
|
+
],
|
|
56
|
+
indeterminate: [],
|
|
57
|
+
error: [
|
|
58
|
+
"after:size-4",
|
|
59
|
+
"after:text-daikinRed-500",
|
|
60
|
+
"after:i-daikin-status-error"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
50
63
|
}
|
|
51
64
|
}
|
|
52
|
-
|
|
53
|
-
const cvaHelper = cva(["text-
|
|
65
|
+
);
|
|
66
|
+
const cvaHelper = cva(["text-sm"], {
|
|
54
67
|
variants: {
|
|
55
68
|
variant: {
|
|
56
69
|
inprogress: [],
|
|
57
70
|
completed: [],
|
|
58
71
|
indeterminate: [],
|
|
59
|
-
error: ["text-
|
|
72
|
+
error: ["text-daikinRed-500", "font-bold"]
|
|
73
|
+
},
|
|
74
|
+
visible: {
|
|
75
|
+
false: ["hidden"],
|
|
76
|
+
true: []
|
|
60
77
|
}
|
|
61
78
|
}
|
|
62
79
|
});
|
|
63
80
|
let DaikinProgressBar = class extends LitElement {
|
|
64
81
|
constructor() {
|
|
65
82
|
super(...arguments);
|
|
66
|
-
this.value = 0;
|
|
67
83
|
this.variant = "inprogress";
|
|
84
|
+
this.size = "medium";
|
|
85
|
+
this.value = 0;
|
|
68
86
|
this.max = 100;
|
|
69
87
|
this.helper = "";
|
|
70
88
|
}
|
|
@@ -97,23 +115,29 @@ let DaikinProgressBar = class extends LitElement {
|
|
|
97
115
|
}
|
|
98
116
|
render() {
|
|
99
117
|
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
100
|
-
return html`<div class="flex flex-col w-full font-daikinSerif">
|
|
101
|
-
<div class
|
|
102
|
-
<
|
|
103
|
-
<span class=${cvaIcon({ variant: this.variant })}></span>
|
|
118
|
+
return html`<div class="flex flex-col gap-2 w-full font-daikinSerif">
|
|
119
|
+
<div class=${cvaBarContainer({ variant: this.variant })}>
|
|
120
|
+
<slot></slot>
|
|
104
121
|
</div>
|
|
105
122
|
<div
|
|
106
|
-
class=${cvaBar({ variant: this.variant })}
|
|
123
|
+
class=${cvaBar({ variant: this.variant, size: this.size })}
|
|
107
124
|
role="progressbar"
|
|
108
125
|
aria-label=${this.textContent ?? ""}
|
|
109
126
|
aria-valuenow=${this.value}
|
|
110
127
|
aria-valuemin="0"
|
|
111
128
|
aria-valuemax=${this.max}
|
|
129
|
+
aria-busy=${progressRatio < 1 && this.variant === "inprogress" || this.variant === "indeterminate"}
|
|
112
130
|
style=${`--bar-width:${progressRatio * 100}%`}
|
|
113
131
|
></div>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
132
|
+
<span
|
|
133
|
+
class=${cvaHelper({
|
|
134
|
+
variant: this.variant,
|
|
135
|
+
visible: !!this.helper.length
|
|
136
|
+
})}
|
|
137
|
+
aria-live="polite"
|
|
138
|
+
>
|
|
139
|
+
${this.helper}
|
|
140
|
+
</span>
|
|
117
141
|
</div>`;
|
|
118
142
|
}
|
|
119
143
|
updated(changedProperties) {
|
|
@@ -126,19 +150,19 @@ DaikinProgressBar.styles = css`
|
|
|
126
150
|
${unsafeCSS(tailwindStyles)}
|
|
127
151
|
|
|
128
152
|
:host {
|
|
129
|
-
--colorFeedbackPositive: ${unsafeCSS(colorFeedbackPositive)};
|
|
130
|
-
--colorFeedbackNegative: ${unsafeCSS(colorFeedbackNegative)};
|
|
131
|
-
|
|
132
153
|
display: block;
|
|
133
154
|
width: 100%;
|
|
134
155
|
}
|
|
135
156
|
`;
|
|
136
|
-
__decorateClass([
|
|
137
|
-
property({ type: Number })
|
|
138
|
-
], DaikinProgressBar.prototype, "value", 2);
|
|
139
157
|
__decorateClass([
|
|
140
158
|
property({ type: String })
|
|
141
159
|
], DaikinProgressBar.prototype, "variant", 2);
|
|
160
|
+
__decorateClass([
|
|
161
|
+
property({ type: String, reflect: true })
|
|
162
|
+
], DaikinProgressBar.prototype, "size", 2);
|
|
163
|
+
__decorateClass([
|
|
164
|
+
property({ type: Number })
|
|
165
|
+
], DaikinProgressBar.prototype, "value", 2);
|
|
142
166
|
__decorateClass([
|
|
143
167
|
property({ type: Number })
|
|
144
168
|
], DaikinProgressBar.prototype, "max", 2);
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
declare const cvaRadio: (props?: ({
|
|
4
|
-
size?: "small" | "large" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
declare const cvaLabel: (props?: ({
|
|
7
|
-
size?: "small" | "large" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
10
2
|
/**
|
|
11
3
|
* The radio button component is a UI element that allows users to select one options from a set of choices.
|
|
12
4
|
* It functions similarly to the HTML `<input type="radio">` tag. \
|
|
@@ -16,60 +8,52 @@ type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
|
16
8
|
*
|
|
17
9
|
* @example
|
|
18
10
|
*
|
|
11
|
+
* ```js
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
19
15
|
* ```html
|
|
20
16
|
* <daikin-radio name="name" value="value" label="Radio button label"></daikin-radio>
|
|
21
17
|
* ```
|
|
22
18
|
*/
|
|
23
19
|
export declare class DaikinRadio extends LitElement {
|
|
24
20
|
static readonly styles: import('lit').CSSResult;
|
|
25
|
-
private _handleClick;
|
|
26
|
-
static readonly formAssociated = true;
|
|
27
|
-
private _internals;
|
|
28
|
-
private _updateFormValue;
|
|
29
|
-
updated(changedProperties: Map<string, unknown>): void;
|
|
30
|
-
private _handleChange;
|
|
31
|
-
/**
|
|
32
|
-
* Specify the label text for the radio
|
|
33
|
-
*/
|
|
34
|
-
label: string;
|
|
35
21
|
/**
|
|
36
|
-
*
|
|
22
|
+
* Form name of the radio button.
|
|
37
23
|
*/
|
|
38
|
-
|
|
24
|
+
name: string;
|
|
39
25
|
/**
|
|
40
|
-
*
|
|
41
|
-
* when `left` the label will be in left of radio, when `right` label will be in right of radio
|
|
26
|
+
* Form value of the radio button.
|
|
42
27
|
*/
|
|
43
|
-
|
|
28
|
+
value: string;
|
|
44
29
|
/**
|
|
45
|
-
*
|
|
30
|
+
* Label text for the radio button.
|
|
46
31
|
*/
|
|
47
|
-
|
|
32
|
+
label: string;
|
|
48
33
|
/**
|
|
49
|
-
*
|
|
34
|
+
* Label position.
|
|
35
|
+
* - `right` (default): The label will be placed to the right of the radio button.
|
|
36
|
+
* - `hidden`: The label will not be shown.
|
|
50
37
|
*/
|
|
51
|
-
|
|
38
|
+
labelPosition: "right" | "hidden";
|
|
52
39
|
/**
|
|
53
|
-
*
|
|
40
|
+
* Whether the radio button is checked.
|
|
54
41
|
*/
|
|
55
42
|
checked: boolean;
|
|
56
43
|
/**
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
name: string;
|
|
60
|
-
/**
|
|
61
|
-
* The form value.
|
|
62
|
-
*/
|
|
63
|
-
value: string;
|
|
64
|
-
/**
|
|
65
|
-
* Specify whether the Radio is in a error state
|
|
44
|
+
* Whether the radio button is disabled.
|
|
66
45
|
*/
|
|
67
|
-
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
static readonly formAssociated = true;
|
|
48
|
+
private _internals;
|
|
49
|
+
private _updateFormValue;
|
|
50
|
+
private _handleClick;
|
|
51
|
+
private _handleChange;
|
|
68
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
53
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
69
54
|
}
|
|
70
55
|
declare global {
|
|
71
56
|
interface HTMLElementTagNameMap {
|
|
72
57
|
"daikin-radio": DaikinRadio;
|
|
73
58
|
}
|
|
74
59
|
}
|
|
75
|
-
export {};
|