@daikin-oss/design-system-web-components 0.3.1 → 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 +107 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +31 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -10
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +105 -59
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +28 -14
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
- package/dist/cjs/components/breadcrumb/index.cjs +7 -0
- package/dist/cjs/components/breadcrumb/index.d.ts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
- package/dist/cjs/components/breadcrumb-item/index.cjs +7 -0
- package/dist/cjs/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +89 -128
- package/dist/cjs/components/button/daikin-button.d.ts +30 -28
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +99 -119
- package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -39
- package/dist/cjs/components/icon/daikin-icon.d.ts +4 -1
- 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 +36 -6
- package/dist/cjs/components/index.d.ts +8 -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 -1
- 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 -12
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +161 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +69 -0
- package/dist/cjs/components/progress-bar/index.cjs +7 -0
- package/dist/cjs/components/progress-bar/index.d.ts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +73 -92
- package/dist/cjs/components/radio/daikin-radio.d.ts +23 -40
- package/dist/cjs/components/tab/daikin-tab.cjs +41 -46
- package/dist/cjs/components/tab/daikin-tab.d.ts +12 -13
- 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 -12
- 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 -22
- 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 -1
- package/dist/cjs/components/textarea/daikin-textarea.cjs +3 -3
- package/dist/cjs/components/textarea/daikin-textarea.d.ts +5 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +44 -68
- package/dist/cjs/components/toggle/daikin-toggle.d.ts +15 -27
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +223 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +80 -0
- package/dist/cjs/components/tooltip/index.cjs +7 -0
- package/dist/cjs/components/tooltip/index.d.ts +1 -0
- package/dist/cjs/index.cjs +36 -6
- package/dist/cjs/is-client.cjs +5 -0
- package/dist/cjs/is-client.d.ts +1 -0
- package/dist/cjs/tailwind.css.cjs +2 -2
- package/dist/cjs/type-utils.d.ts +0 -1
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +31 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -10
- 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 -14
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +121 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
- package/dist/cjs-dev/components/breadcrumb/index.cjs +7 -0
- package/dist/cjs-dev/components/breadcrumb/index.d.ts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +124 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
- package/dist/cjs-dev/components/breadcrumb-item/index.cjs +7 -0
- package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +89 -128
- package/dist/cjs-dev/components/button/daikin-button.d.ts +30 -28
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +99 -119
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
- package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -1
- 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 +36 -6
- package/dist/cjs-dev/components/index.d.ts +8 -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 -1
- 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 -12
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +176 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
- package/dist/cjs-dev/components/progress-bar/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-bar/index.d.ts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +73 -92
- package/dist/cjs-dev/components/radio/daikin-radio.d.ts +23 -40
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +41 -46
- package/dist/cjs-dev/components/tab/daikin-tab.d.ts +12 -13
- 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 -12
- 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 -22
- 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 -1
- package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +3 -3
- package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +5 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +44 -68
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +15 -27
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +223 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
- package/dist/cjs-dev/components/tooltip/index.cjs +7 -0
- package/dist/cjs-dev/components/tooltip/index.d.ts +1 -0
- package/dist/cjs-dev/index.cjs +36 -6
- package/dist/cjs-dev/is-client.cjs +5 -0
- package/dist/cjs-dev/is-client.d.ts +1 -0
- package/dist/cjs-dev/tailwind.css.cjs +2 -2
- package/dist/cjs-dev/type-utils.d.ts +0 -1
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -10
- package/dist/es/components/accordion/daikin-accordion.js +32 -7
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -14
- package/dist/es/components/accordion-item/daikin-accordion-item.js +106 -60
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +122 -0
- package/dist/es/components/breadcrumb/index.d.ts +1 -0
- package/dist/es/components/breadcrumb/index.js +4 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
- package/dist/es/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/es/components/breadcrumb-item/index.js +4 -0
- package/dist/es/components/button/daikin-button.d.ts +30 -28
- package/dist/es/components/button/daikin-button.js +90 -129
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +27 -39
- package/dist/es/components/checkbox/daikin-checkbox.js +101 -121
- package/dist/es/components/icon/daikin-icon.d.ts +4 -1
- 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 +8 -2
- package/dist/es/components/index.js +16 -4
- package/dist/es/components/input-group/daikin-input-group.d.ts +6 -1
- 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 -12
- package/dist/es/components/notification/daikin-notification.js +15 -16
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +69 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +162 -0
- package/dist/es/components/progress-bar/index.d.ts +1 -0
- package/dist/es/components/progress-bar/index.js +4 -0
- package/dist/es/components/radio/daikin-radio.d.ts +23 -40
- package/dist/es/components/radio/daikin-radio.js +74 -93
- package/dist/es/components/tab/daikin-tab.d.ts +12 -13
- 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 -12
- 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 -22
- 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 -1
- package/dist/es/components/text-input/daikin-text-input.js +4 -3
- package/dist/es/components/textarea/daikin-textarea.d.ts +5 -1
- package/dist/es/components/textarea/daikin-textarea.js +3 -3
- package/dist/es/components/toggle/daikin-toggle.d.ts +15 -27
- package/dist/es/components/toggle/daikin-toggle.js +45 -69
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +80 -0
- package/dist/es/components/tooltip/daikin-tooltip.js +224 -0
- package/dist/es/components/tooltip/index.d.ts +1 -0
- package/dist/es/components/tooltip/index.js +4 -0
- package/dist/es/index.js +16 -4
- package/dist/es/is-client.d.ts +1 -0
- package/dist/es/is-client.js +5 -0
- package/dist/es/tailwind.css.js +2 -2
- package/dist/es/type-utils.d.ts +0 -1
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -10
- package/dist/es-dev/components/accordion/daikin-accordion.js +32 -7
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +28 -14
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +106 -60
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +56 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +122 -0
- package/dist/es-dev/components/breadcrumb/index.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb/index.js +4 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +72 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +125 -0
- package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb-item/index.js +4 -0
- package/dist/es-dev/components/button/daikin-button.d.ts +30 -28
- package/dist/es-dev/components/button/daikin-button.js +90 -129
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +27 -39
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +101 -121
- package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -1
- 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 +8 -2
- package/dist/es-dev/components/index.js +16 -4
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +6 -1
- 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 -12
- package/dist/es-dev/components/notification/daikin-notification.js +15 -16
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +69 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +177 -0
- package/dist/es-dev/components/progress-bar/index.d.ts +1 -0
- package/dist/es-dev/components/progress-bar/index.js +4 -0
- package/dist/es-dev/components/radio/daikin-radio.d.ts +23 -40
- package/dist/es-dev/components/radio/daikin-radio.js +74 -93
- package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -13
- 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 -12
- 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 -22
- 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 -1
- package/dist/es-dev/components/text-input/daikin-text-input.js +4 -3
- package/dist/es-dev/components/textarea/daikin-textarea.d.ts +5 -1
- package/dist/es-dev/components/textarea/daikin-textarea.js +3 -3
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +15 -27
- package/dist/es-dev/components/toggle/daikin-toggle.js +45 -69
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +80 -0
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +224 -0
- package/dist/es-dev/components/tooltip/index.d.ts +1 -0
- package/dist/es-dev/components/tooltip/index.js +4 -0
- package/dist/es-dev/index.js +16 -4
- package/dist/es-dev/is-client.d.ts +1 -0
- package/dist/es-dev/is-client.js +5 -0
- package/dist/es-dev/tailwind.css.js +2 -2
- package/dist/es-dev/type-utils.d.ts +0 -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/icons/status-positive.svg +15 -0
- package/package.json +47 -44
- 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/input-group-error.svg +0 -11
- package/icons/radio-checked.svg +0 -4
- package/icons/radio-unchecked.svg +0 -4
- /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
|
@@ -14,100 +14,90 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
14
|
if (kind && result) __defProp(target, key, result);
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
17
|
+
const RADIO_CLASS_NAME = classVarianceAuthority.cva([
|
|
18
|
+
"flex",
|
|
19
|
+
"justify-center",
|
|
20
|
+
"items-center",
|
|
21
|
+
"size-4",
|
|
22
|
+
"bg-white",
|
|
23
|
+
"rounded-full",
|
|
24
|
+
"relative",
|
|
25
|
+
"appearance-none",
|
|
26
|
+
"focus-visible:outline",
|
|
27
|
+
"focus-visible:outline-1",
|
|
28
|
+
"focus-visible:outline-offset-1",
|
|
29
|
+
"focus-visible:outline-daikinBlue-700",
|
|
30
|
+
"unchecked:border-2",
|
|
31
|
+
"enabled:unchecked:border-daikinNeutral-600",
|
|
32
|
+
"enabled:unchecked:hover:border-daikinNeutral-400",
|
|
33
|
+
"enabled:unchecked:active:border-daikinNeutral-700",
|
|
34
|
+
"checked:border-[5px]",
|
|
35
|
+
"enabled:checked:border-daikinBlue-500",
|
|
36
|
+
"enabled:checked:group-hover:border-daikinBlue-300",
|
|
37
|
+
"enabled:checked:group-active:border-daikinBlue-600",
|
|
38
|
+
"disabled:border-daikinNeutral-200"
|
|
39
|
+
])();
|
|
40
|
+
const cvaLabel = classVarianceAuthority.cva([], {
|
|
41
|
+
variants: {
|
|
42
|
+
disabled: {
|
|
43
|
+
false: [],
|
|
44
|
+
true: ["text-daikinNeutral-200"]
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
);
|
|
45
|
-
const cvaLabel = classVarianceAuthority.cva(
|
|
46
|
-
["leading-8", "not-italic", "font-normal", "align-middle"],
|
|
47
|
-
{
|
|
48
|
-
variants: {
|
|
49
|
-
size: {
|
|
50
|
-
small: ["text-sm"],
|
|
51
|
-
large: ["text-base"]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
);
|
|
47
|
+
});
|
|
56
48
|
exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
|
|
57
49
|
constructor() {
|
|
58
50
|
super(...arguments);
|
|
59
|
-
this.
|
|
51
|
+
this.name = "";
|
|
52
|
+
this.value = "";
|
|
60
53
|
this.label = "";
|
|
61
|
-
this.size = "small";
|
|
62
54
|
this.labelPosition = "right";
|
|
63
|
-
this.disabled = false;
|
|
64
|
-
this.readonly = false;
|
|
65
55
|
this.checked = false;
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.error = false;
|
|
69
|
-
}
|
|
70
|
-
_handleClick(event) {
|
|
71
|
-
if (this.readonly || this.disabled) {
|
|
72
|
-
event.preventDefault();
|
|
73
|
-
}
|
|
56
|
+
this.disabled = false;
|
|
57
|
+
this._internals = this.attachInternals();
|
|
74
58
|
}
|
|
75
59
|
_updateFormValue() {
|
|
76
60
|
this._internals.setFormValue(this.checked ? this.value : null);
|
|
77
61
|
}
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
|
|
62
|
+
_handleClick(event) {
|
|
63
|
+
if (this.disabled) {
|
|
64
|
+
event.preventDefault();
|
|
81
65
|
}
|
|
82
66
|
}
|
|
83
67
|
_handleChange(event) {
|
|
84
|
-
|
|
85
|
-
const input = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("input");
|
|
86
|
-
this.checked = input.checked;
|
|
68
|
+
this.checked = event.target.checked;
|
|
87
69
|
this._updateFormValue();
|
|
88
|
-
|
|
89
|
-
this.dispatchEvent(newEvent);
|
|
70
|
+
this.dispatchEvent(new Event("change", event));
|
|
90
71
|
}
|
|
91
72
|
render() {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
73
|
+
return lit.html`<label class="group flex gap-2 items-center font-daikinSerif">
|
|
74
|
+
<div class="p-2">
|
|
75
|
+
<input
|
|
76
|
+
class=${RADIO_CLASS_NAME}
|
|
77
|
+
type="radio"
|
|
78
|
+
name=${this.name}
|
|
79
|
+
value=${this.value}
|
|
80
|
+
aria-label=${this.labelPosition === "hidden" ? this.label : lit.nothing}
|
|
81
|
+
?disabled=${this.disabled}
|
|
82
|
+
.checked=${this.checked}
|
|
83
|
+
@click=${this._handleClick}
|
|
84
|
+
@change=${this._handleChange}
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
<span
|
|
88
|
+
class=${cvaLabel({
|
|
89
|
+
disabled: this.disabled
|
|
90
|
+
})}
|
|
91
|
+
?hidden=${this.labelPosition === "hidden"}
|
|
92
|
+
>
|
|
93
|
+
${this.label}
|
|
94
|
+
</span>
|
|
95
|
+
</label>`;
|
|
96
|
+
}
|
|
97
|
+
updated(changedProperties) {
|
|
98
|
+
if (changedProperties.has("checked")) {
|
|
99
|
+
this._updateFormValue();
|
|
100
|
+
}
|
|
111
101
|
}
|
|
112
102
|
};
|
|
113
103
|
exports.DaikinRadio.styles = lit.css`
|
|
@@ -119,32 +109,23 @@ exports.DaikinRadio.styles = lit.css`
|
|
|
119
109
|
`;
|
|
120
110
|
exports.DaikinRadio.formAssociated = true;
|
|
121
111
|
__decorateClass([
|
|
122
|
-
decorators_js.property({ type: String })
|
|
123
|
-
], exports.DaikinRadio.prototype, "
|
|
112
|
+
decorators_js.property({ type: String, reflect: true })
|
|
113
|
+
], exports.DaikinRadio.prototype, "name", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
decorators_js.property({ type: String, reflect: true })
|
|
116
|
+
], exports.DaikinRadio.prototype, "value", 2);
|
|
124
117
|
__decorateClass([
|
|
125
118
|
decorators_js.property({ type: String })
|
|
126
|
-
], exports.DaikinRadio.prototype, "
|
|
119
|
+
], exports.DaikinRadio.prototype, "label", 2);
|
|
127
120
|
__decorateClass([
|
|
128
121
|
decorators_js.property({ type: String, attribute: "label-position" })
|
|
129
122
|
], exports.DaikinRadio.prototype, "labelPosition", 2);
|
|
130
|
-
__decorateClass([
|
|
131
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
132
|
-
], exports.DaikinRadio.prototype, "disabled", 2);
|
|
133
|
-
__decorateClass([
|
|
134
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
135
|
-
], exports.DaikinRadio.prototype, "readonly", 2);
|
|
136
123
|
__decorateClass([
|
|
137
124
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
138
125
|
], exports.DaikinRadio.prototype, "checked", 2);
|
|
139
|
-
__decorateClass([
|
|
140
|
-
decorators_js.property({ type: String, reflect: true })
|
|
141
|
-
], exports.DaikinRadio.prototype, "name", 2);
|
|
142
|
-
__decorateClass([
|
|
143
|
-
decorators_js.property({ type: String, reflect: true })
|
|
144
|
-
], exports.DaikinRadio.prototype, "value", 2);
|
|
145
126
|
__decorateClass([
|
|
146
127
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
147
|
-
], exports.DaikinRadio.prototype, "
|
|
128
|
+
], exports.DaikinRadio.prototype, "disabled", 2);
|
|
148
129
|
exports.DaikinRadio = __decorateClass([
|
|
149
130
|
decorators_js.customElement("daikin-radio")
|
|
150
131
|
], exports.DaikinRadio);
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
|
|
4
|
-
declare const cvaRadio: (props?: ({
|
|
5
|
-
size?: "small" | "large" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare const cvaLabel: (props?: ({
|
|
8
|
-
size?: "small" | "large" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
11
2
|
/**
|
|
12
3
|
* The radio button component is a UI element that allows users to select one options from a set of choices.
|
|
13
4
|
* It functions similarly to the HTML `<input type="radio">` tag. \
|
|
@@ -17,60 +8,52 @@ type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
|
17
8
|
*
|
|
18
9
|
* @example
|
|
19
10
|
*
|
|
11
|
+
* ```js
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
20
15
|
* ```html
|
|
21
16
|
* <daikin-radio name="name" value="value" label="Radio button label"></daikin-radio>
|
|
22
17
|
* ```
|
|
23
18
|
*/
|
|
24
19
|
export declare class DaikinRadio extends LitElement {
|
|
25
20
|
static readonly styles: import('lit').CSSResult;
|
|
26
|
-
private _handleClick;
|
|
27
|
-
static readonly formAssociated = true;
|
|
28
|
-
private _internals;
|
|
29
|
-
private _updateFormValue;
|
|
30
|
-
updated(changedProperties: Map<string, unknown>): void;
|
|
31
|
-
private _handleChange;
|
|
32
|
-
/**
|
|
33
|
-
* Specify the label text for the radio
|
|
34
|
-
*/
|
|
35
|
-
label: string;
|
|
36
21
|
/**
|
|
37
|
-
*
|
|
22
|
+
* Form name of the radio button.
|
|
38
23
|
*/
|
|
39
|
-
|
|
24
|
+
name: string;
|
|
40
25
|
/**
|
|
41
|
-
*
|
|
42
|
-
* 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.
|
|
43
27
|
*/
|
|
44
|
-
|
|
28
|
+
value: string;
|
|
45
29
|
/**
|
|
46
|
-
*
|
|
30
|
+
* Label text for the radio button.
|
|
47
31
|
*/
|
|
48
|
-
|
|
32
|
+
label: string;
|
|
49
33
|
/**
|
|
50
|
-
*
|
|
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.
|
|
51
37
|
*/
|
|
52
|
-
|
|
38
|
+
labelPosition: "right" | "hidden";
|
|
53
39
|
/**
|
|
54
|
-
*
|
|
40
|
+
* Whether the radio button is checked.
|
|
55
41
|
*/
|
|
56
42
|
checked: boolean;
|
|
57
43
|
/**
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* The form value.
|
|
63
|
-
*/
|
|
64
|
-
value: string;
|
|
65
|
-
/**
|
|
66
|
-
* Specify whether the Radio is in a error state
|
|
44
|
+
* Whether the radio button is disabled.
|
|
67
45
|
*/
|
|
68
|
-
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
static readonly formAssociated = true;
|
|
48
|
+
private _internals;
|
|
49
|
+
private _updateFormValue;
|
|
50
|
+
private _handleClick;
|
|
51
|
+
private _handleChange;
|
|
69
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
53
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
70
54
|
}
|
|
71
55
|
declare global {
|
|
72
56
|
interface HTMLElementTagNameMap {
|
|
73
57
|
"daikin-radio": DaikinRadio;
|
|
74
58
|
}
|
|
75
59
|
}
|
|
76
|
-
export {};
|
|
@@ -21,38 +21,44 @@ const cvaTab = classVarianceAuthority.cva(
|
|
|
21
21
|
"h-full",
|
|
22
22
|
"items-center",
|
|
23
23
|
"justify-center",
|
|
24
|
+
"px-4",
|
|
25
|
+
"pt-2",
|
|
26
|
+
"pb-3",
|
|
27
|
+
"text-base",
|
|
28
|
+
"font-bold",
|
|
24
29
|
"text-center",
|
|
25
|
-
"relative",
|
|
26
30
|
"font-daikinSerif",
|
|
27
|
-
"
|
|
31
|
+
"relative",
|
|
28
32
|
"tracking-wide",
|
|
29
33
|
"whitespace-nowrap",
|
|
30
34
|
"contain-paint",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"text-daikinBlue-500",
|
|
40
|
-
"hover:text-daikinBlue-400",
|
|
41
|
-
"active:text-daikinBlue-600",
|
|
42
|
-
"focus-visible:text-daikinBlue-700",
|
|
43
|
-
"disabled:text-daikinNeutral-300",
|
|
44
|
-
"aria-selected:after:h-1",
|
|
45
|
-
"aria-selected:after:bg-daikinBlue-500",
|
|
46
|
-
"hover:aria-selected:after:bg-daikinBlue-400",
|
|
47
|
-
"active:aria-selected:after:bg-daikinBlue-600",
|
|
48
|
-
"focus-visible:aria-selected:after:bg-daikinBlue-700",
|
|
49
|
-
"disabled:after:bg-daikinNeutral-300"
|
|
35
|
+
"focus-visible:outline-none",
|
|
36
|
+
"focus-visible:before:w-full",
|
|
37
|
+
"focus-visible:before:h-[calc(100%_-_4px)]",
|
|
38
|
+
"focus-visible:before:border",
|
|
39
|
+
"focus-visible:before:border-daikinBlue-700",
|
|
40
|
+
"focus-visible:before:absolute",
|
|
41
|
+
"focus-visible:before:top-0",
|
|
42
|
+
"disabled:text-daikinNeutral-200"
|
|
50
43
|
],
|
|
51
44
|
{
|
|
52
45
|
variants: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
active: {
|
|
47
|
+
false: [
|
|
48
|
+
"hover:text-daikinNeutral-500",
|
|
49
|
+
"active:text-daikinNeutral-700"
|
|
50
|
+
],
|
|
51
|
+
true: [
|
|
52
|
+
"text-daikinBlue-500",
|
|
53
|
+
"hover:text-daikinBlue-300",
|
|
54
|
+
"active:text-daikinBlue-600",
|
|
55
|
+
"after:w-full",
|
|
56
|
+
"after:h-1",
|
|
57
|
+
"after:absolute",
|
|
58
|
+
"after:bottom-0",
|
|
59
|
+
"enabled:after:bg-daikinBlue-500",
|
|
60
|
+
"disabled:after:bg-daikinNeutral-200"
|
|
61
|
+
]
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
}
|
|
@@ -61,31 +67,26 @@ exports.DaikinTab = class DaikinTab extends lit.LitElement {
|
|
|
61
67
|
constructor() {
|
|
62
68
|
super();
|
|
63
69
|
this.value = "";
|
|
64
|
-
this.size = "default";
|
|
65
70
|
this.disabled = false;
|
|
66
71
|
this.active = false;
|
|
67
|
-
this.addEventListener("click",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
72
|
+
this.addEventListener("click", (event) => {
|
|
73
|
+
if (this.disabled) {
|
|
74
|
+
event.stopImmediatePropagation();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
75
79
|
* Focuses on the inner button.
|
|
76
80
|
* @param options focus options
|
|
77
81
|
*/
|
|
78
82
|
focus(options) {
|
|
79
|
-
var _a
|
|
80
|
-
(
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = this._button) == null ? void 0 : _a.focus(options);
|
|
81
85
|
}
|
|
82
86
|
render() {
|
|
83
|
-
const cn = cvaTab({
|
|
84
|
-
size: this.size
|
|
85
|
-
});
|
|
86
87
|
return lit.html`
|
|
87
88
|
<button
|
|
88
|
-
class=${
|
|
89
|
+
class=${cvaTab({ active: this.active })}
|
|
89
90
|
?disabled=${this.disabled}
|
|
90
91
|
role="tab"
|
|
91
92
|
aria-selected=${!this.disabled && this.active}
|
|
@@ -101,26 +102,20 @@ exports.DaikinTab.styles = lit.css`
|
|
|
101
102
|
|
|
102
103
|
:host {
|
|
103
104
|
display: inline-block;
|
|
104
|
-
width: fit-content;
|
|
105
|
-
height: 48px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host([size="condensed"]) {
|
|
109
|
-
height: 40px;
|
|
110
105
|
}
|
|
111
106
|
`;
|
|
112
107
|
__decorateClass([
|
|
113
108
|
decorators_js.property({ type: String, reflect: true })
|
|
114
109
|
], exports.DaikinTab.prototype, "value", 2);
|
|
115
|
-
__decorateClass([
|
|
116
|
-
decorators_js.property({ type: String, reflect: true })
|
|
117
|
-
], exports.DaikinTab.prototype, "size", 2);
|
|
118
110
|
__decorateClass([
|
|
119
111
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
120
112
|
], exports.DaikinTab.prototype, "disabled", 2);
|
|
121
113
|
__decorateClass([
|
|
122
114
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
123
115
|
], exports.DaikinTab.prototype, "active", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
decorators_js.query("button")
|
|
118
|
+
], exports.DaikinTab.prototype, "_button", 2);
|
|
124
119
|
exports.DaikinTab = __decorateClass([
|
|
125
120
|
decorators_js.customElement("daikin-tab")
|
|
126
121
|
], exports.DaikinTab);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
|
-
* The tab component is a child element within the `daikin-
|
|
3
|
+
* The tab component is a child element within the `daikin-tabs` component, representing a clickable button or label that users interact with to switch between different panels of content.
|
|
5
4
|
* Each tab corresponds to a specific panel and is typically labeled to indicate the content it reveals.
|
|
6
5
|
*
|
|
7
6
|
* Hierarchy:
|
|
8
|
-
* - `daikin-
|
|
7
|
+
* - `daikin-tabs` > `daikin-tab`
|
|
9
8
|
*
|
|
10
9
|
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
|
|
11
10
|
*
|
|
@@ -13,8 +12,12 @@ import { LitElement } from 'lit';
|
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
*
|
|
15
|
+
* ```js
|
|
16
|
+
* import "@daikin-oss/design-system-web-components/components/tab/index.js";
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
16
19
|
* ```html
|
|
17
|
-
* <!-- See `daikin-
|
|
20
|
+
* <!-- See `daikin-tabs` component for complete example. -->
|
|
18
21
|
* <daikin-tab value="foo">Foo tab</daikin-tab>
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
@@ -22,30 +25,26 @@ export declare class DaikinTab extends LitElement {
|
|
|
22
25
|
static readonly styles: import('lit').CSSResult;
|
|
23
26
|
/**
|
|
24
27
|
* A unique string that identifies a tab.
|
|
25
|
-
* Must be unique within the `daikin-
|
|
28
|
+
* Must be unique within the `daikin-tabs` component.
|
|
26
29
|
*/
|
|
27
30
|
value: string;
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
size: "default" | "condensed";
|
|
32
|
-
/**
|
|
33
|
-
* Whether to show the disabled state.
|
|
32
|
+
* Whether the tab is disabled.
|
|
34
33
|
*/
|
|
35
34
|
disabled: boolean;
|
|
36
35
|
/**
|
|
37
36
|
* Whether to show the active (selected) state.
|
|
38
37
|
* Ignored if `disabled` is `true`.
|
|
39
|
-
* Set automatically by `daikin-
|
|
38
|
+
* Set automatically by `daikin-tabs` component.
|
|
40
39
|
*/
|
|
41
40
|
active: boolean;
|
|
42
|
-
private
|
|
41
|
+
private _button;
|
|
43
42
|
constructor();
|
|
44
43
|
/**
|
|
45
44
|
* Focuses on the inner button.
|
|
46
45
|
* @param options focus options
|
|
47
46
|
*/
|
|
48
|
-
focus(options?: FocusOptions
|
|
47
|
+
focus(options?: FocusOptions): void;
|
|
49
48
|
render(): import('lit-html').TemplateResult<1>;
|
|
50
49
|
}
|
|
51
50
|
declare global {
|
|
@@ -14,7 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
14
|
if (kind && result) __defProp(target, key, result);
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.DaikinTabPanels = class DaikinTabPanels extends lit.LitElement {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.value = "";
|
|
@@ -35,21 +35,21 @@ exports.DaikinPanelSwitcher = class DaikinPanelSwitcher extends lit.LitElement {
|
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
38
|
+
exports.DaikinTabPanels.styles = lit.css`
|
|
39
39
|
${lit.unsafeCSS(tailwind.default)}
|
|
40
40
|
`;
|
|
41
41
|
__decorateClass([
|
|
42
42
|
decorators_js.property({ type: String, reflect: true })
|
|
43
|
-
], exports.
|
|
43
|
+
], exports.DaikinTabPanels.prototype, "value", 2);
|
|
44
44
|
__decorateClass([
|
|
45
45
|
decorators_js.property({
|
|
46
46
|
type: Array,
|
|
47
47
|
hasChanged: (newValue, oldValue) => JSON.stringify(newValue) !== JSON.stringify(oldValue)
|
|
48
48
|
})
|
|
49
|
-
], exports.
|
|
49
|
+
], exports.DaikinTabPanels.prototype, "panels", 2);
|
|
50
50
|
__decorateClass([
|
|
51
51
|
decorators_js.property({ type: String, reflect: true, attribute: "panel-role" })
|
|
52
|
-
], exports.
|
|
53
|
-
exports.
|
|
54
|
-
decorators_js.customElement("daikin-
|
|
55
|
-
], exports.
|
|
52
|
+
], exports.DaikinTabPanels.prototype, "panelRole", 2);
|
|
53
|
+
exports.DaikinTabPanels = __decorateClass([
|
|
54
|
+
decorators_js.customElement("daikin-tab-panels")
|
|
55
|
+
], exports.DaikinTabPanels);
|
|
@@ -1,51 +1,56 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { ARIARole } from '../../lit-analyzer-types';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
|
-
* The panel switcher component is a child element within the `daikin-
|
|
4
|
+
* The panel switcher component is a child element within the `daikin-tabs` that controls the display of the content panels associated with each tab.
|
|
6
5
|
* When a user selects a tab, the panel switcher component ensures the corresponding content panel is shown while hiding the others.
|
|
7
6
|
*
|
|
8
7
|
* Hierarchy:
|
|
9
|
-
* - `daikin-
|
|
8
|
+
* - `daikin-tabs` > `daikin-tab-panels` ("panels" slot)
|
|
10
9
|
*
|
|
11
10
|
* @slot panel:\<name\> - A slot for each panel content.
|
|
12
11
|
*
|
|
13
12
|
* @example
|
|
14
13
|
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/panel-switcher/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
15
18
|
* ```html
|
|
16
19
|
* <!-- Note that `panels` must be set via property. -->
|
|
17
|
-
* <daikin-
|
|
20
|
+
* <daikin-tab-panels
|
|
18
21
|
* class="block w-full h-full"
|
|
19
|
-
*
|
|
22
|
+
* panel-role="tabpanel"
|
|
20
23
|
* value="foo"
|
|
21
|
-
*
|
|
24
|
+
* .panels="${['foo', 'bar', 'baz']}"
|
|
22
25
|
* >
|
|
23
26
|
* <div slot="panel:foo">Foo Panel (visible)</div>
|
|
24
27
|
* <div slot="panel:bar">Bar Panel (hidden)</div>
|
|
25
28
|
* <div slot="panel:baz">Baz Panel (hidden)</div>
|
|
26
|
-
* </daikin-
|
|
29
|
+
* </daikin-tab-panels>
|
|
27
30
|
* ```
|
|
28
31
|
*/
|
|
29
|
-
export declare class
|
|
32
|
+
export declare class DaikinTabPanels extends LitElement {
|
|
30
33
|
static readonly styles: import('lit').CSSResult;
|
|
31
34
|
/**
|
|
32
35
|
* The panel to be displayed.
|
|
33
|
-
* Set automatically by `daikin-
|
|
36
|
+
* Set automatically by `daikin-tabs` if used within it.
|
|
34
37
|
*/
|
|
35
38
|
value: string;
|
|
36
39
|
/**
|
|
37
|
-
*
|
|
40
|
+
* A list of panel names.
|
|
41
|
+
* This is used as the slot name for panels (`panel:<name>`).
|
|
42
|
+
* Set automatically by `daikin-tabs` if used within it.
|
|
38
43
|
*/
|
|
39
44
|
panels: string[];
|
|
40
45
|
/**
|
|
41
46
|
* `role` attribute of the container.
|
|
42
|
-
* Set to "tablist" automatically by `daikin-
|
|
47
|
+
* Set to "tablist" automatically by `daikin-tabs` if used within it.
|
|
43
48
|
*/
|
|
44
49
|
panelRole: ARIARole | null;
|
|
45
50
|
render(): unknown;
|
|
46
51
|
}
|
|
47
52
|
declare global {
|
|
48
53
|
interface HTMLElementTagNameMap {
|
|
49
|
-
"daikin-
|
|
54
|
+
"daikin-tab-panels": DaikinTabPanels;
|
|
50
55
|
}
|
|
51
56
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinTabPanels = require("./daikin-tab-panels.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinTabPanels", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinTabPanels.DaikinTabPanels
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-tab-panels';
|