@daikin-oss/design-system-web-components 0.3.2 → 0.5.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 +104 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +24 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +106 -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 +100 -119
- package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +367 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.d.ts +100 -0
- package/dist/cjs/components/dropdown/index.cjs +7 -0
- package/dist/cjs/components/dropdown/index.d.ts +1 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
- package/dist/cjs/components/dropdown-item/index.cjs +7 -0
- package/dist/cjs/components/dropdown-item/index.d.ts +1 -0
- package/dist/cjs/components/icon/daikin-icon.d.ts +4 -0
- package/dist/cjs/components/icon/icons.json.cjs +29 -5
- package/dist/cjs/components/icon/icons.json.d.ts +29 -5
- package/dist/cjs/components/index.cjs +49 -14
- package/dist/cjs/components/index.d.ts +11 -4
- package/dist/cjs/components/input-group/daikin-input-group.cjs +103 -46
- package/dist/cjs/components/input-group/daikin-input-group.d.ts +69 -25
- 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 +131 -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/progress-indicator/daikin-progress-indicator.cjs +75 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
- package/dist/cjs/components/progress-indicator/index.cjs +7 -0
- package/dist/cjs/components/progress-indicator/index.d.ts +1 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
- package/dist/cjs/components/progress-indicator-item/index.cjs +7 -0
- package/dist/cjs/components/progress-indicator-item/index.d.ts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +92 -90
- package/dist/cjs/components/radio/daikin-radio.d.ts +33 -35
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +144 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.d.ts +82 -0
- package/dist/cjs/components/radio-group/index.cjs +7 -0
- package/dist/cjs/components/radio-group/index.d.ts +1 -0
- package/dist/cjs/components/select/daikin-select.cjs +160 -0
- package/dist/cjs/components/select/daikin-select.d.ts +60 -0
- package/dist/cjs/components/select/index.cjs +7 -0
- package/dist/cjs/components/select/index.d.ts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +48 -48
- 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/components/tab-panels/daikin-tab-panels.d.ts +56 -0
- 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} +35 -36
- package/dist/{es-dev/components/tab-group/daikin-tab-group.d.ts → cjs/components/tabs/daikin-tabs.d.ts} +27 -25
- package/dist/cjs/components/tabs/index.cjs +7 -0
- package/dist/cjs/components/tabs/index.d.ts +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +164 -0
- package/dist/cjs/components/text-area/daikin-text-area.d.ts +82 -0
- package/dist/cjs/components/text-area/index.cjs +7 -0
- package/dist/cjs/components/text-area/index.d.ts +1 -0
- package/dist/cjs/components/text-field/daikin-text-field.cjs +211 -0
- package/dist/cjs/components/text-field/daikin-text-field.d.ts +94 -0
- package/dist/cjs/components/text-field/index.cjs +7 -0
- package/dist/cjs/components/text-field/index.d.ts +1 -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.cjs +77 -70
- package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +39 -15
- package/dist/cjs/controllers/click-outside.cjs +29 -0
- package/dist/cjs/controllers/click-outside.d.ts +37 -0
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +75 -0
- package/dist/cjs/controllers/floating-ui-auto-update.d.ts +22 -0
- package/dist/cjs/controllers/helpers/controller-directive.cjs +50 -0
- package/dist/cjs/controllers/helpers/controller-directive.d.ts +12 -0
- package/dist/cjs/index.cjs +49 -14
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/reDispatch.cjs +10 -0
- package/dist/cjs/utils/reDispatch.d.ts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +24 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +106 -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 +100 -119
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +27 -38
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +367 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
- package/dist/cjs-dev/components/dropdown/index.cjs +7 -0
- package/dist/cjs-dev/components/dropdown/index.d.ts +1 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
- package/dist/cjs-dev/components/dropdown-item/index.cjs +7 -0
- package/dist/cjs-dev/components/dropdown-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.d.ts +4 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +29 -5
- package/dist/cjs-dev/components/icon/icons.json.d.ts +29 -5
- package/dist/cjs-dev/components/index.cjs +49 -14
- package/dist/cjs-dev/components/index.d.ts +11 -4
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +103 -46
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +69 -25
- 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 +131 -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/progress-indicator/daikin-progress-indicator.cjs +85 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.ts +47 -0
- package/dist/cjs-dev/components/progress-indicator/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-indicator/index.d.ts +1 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +92 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
- package/dist/cjs-dev/components/progress-indicator-item/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-indicator-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +92 -90
- package/dist/cjs-dev/components/radio/daikin-radio.d.ts +33 -35
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +144 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
- package/dist/cjs-dev/components/radio-group/index.cjs +7 -0
- package/dist/cjs-dev/components/radio-group/index.d.ts +1 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +160 -0
- package/dist/cjs-dev/components/select/daikin-select.d.ts +60 -0
- package/dist/cjs-dev/components/select/index.cjs +7 -0
- package/dist/cjs-dev/components/select/index.d.ts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +48 -48
- 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-dev/components/tab-panels/daikin-tab-panels.d.ts +56 -0
- 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} +37 -38
- package/dist/{cjs/components/tab-group/daikin-tab-group.d.ts → cjs-dev/components/tabs/daikin-tabs.d.ts} +27 -25
- 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-area/daikin-text-area.cjs +164 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.ts +82 -0
- package/dist/cjs-dev/components/text-area/index.cjs +7 -0
- package/dist/cjs-dev/components/text-area/index.d.ts +1 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +211 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.ts +94 -0
- package/dist/cjs-dev/components/text-field/index.cjs +7 -0
- package/dist/cjs-dev/components/text-field/index.d.ts +1 -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.cjs +77 -70
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +39 -15
- package/dist/cjs-dev/controllers/click-outside.cjs +29 -0
- package/dist/cjs-dev/controllers/click-outside.d.ts +37 -0
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +82 -0
- package/dist/cjs-dev/controllers/floating-ui-auto-update.d.ts +22 -0
- package/dist/cjs-dev/controllers/helpers/controller-directive.cjs +50 -0
- package/dist/cjs-dev/controllers/helpers/controller-directive.d.ts +12 -0
- package/dist/cjs-dev/index.cjs +49 -14
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/reDispatch.cjs +10 -0
- package/dist/cjs-dev/utils/reDispatch.d.ts +1 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/es/components/accordion/daikin-accordion.js +25 -7
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +28 -13
- package/dist/es/components/accordion-item/daikin-accordion-item.js +107 -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 +102 -121
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +100 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +368 -0
- package/dist/es/components/dropdown/index.d.ts +1 -0
- package/dist/es/components/dropdown/index.js +4 -0
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +113 -0
- package/dist/es/components/dropdown-item/index.d.ts +1 -0
- package/dist/es/components/dropdown-item/index.js +4 -0
- package/dist/es/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es/components/icon/icons.json.d.ts +29 -5
- package/dist/es/components/icon/icons.json.js +29 -5
- package/dist/es/components/index.d.ts +11 -4
- package/dist/es/components/index.js +22 -8
- package/dist/es/components/input-group/daikin-input-group.d.ts +69 -25
- package/dist/es/components/input-group/daikin-input-group.js +105 -48
- 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 +132 -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/progress-indicator/daikin-progress-indicator.d.ts +47 -0
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +76 -0
- package/dist/es/components/progress-indicator/index.d.ts +1 -0
- package/dist/es/components/progress-indicator/index.js +4 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
- package/dist/es/components/progress-indicator-item/index.d.ts +1 -0
- package/dist/es/components/progress-indicator-item/index.js +4 -0
- package/dist/es/components/radio/daikin-radio.d.ts +33 -35
- package/dist/es/components/radio/daikin-radio.js +94 -92
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +82 -0
- package/dist/es/components/radio-group/daikin-radio-group.js +145 -0
- package/dist/es/components/radio-group/index.d.ts +1 -0
- package/dist/es/components/radio-group/index.js +4 -0
- package/dist/es/components/select/daikin-select.d.ts +60 -0
- package/dist/es/components/select/daikin-select.js +161 -0
- package/dist/es/components/select/index.d.ts +1 -0
- package/dist/es/components/select/index.js +4 -0
- package/dist/es/components/tab/daikin-tab.d.ts +12 -12
- package/dist/es/components/tab/daikin-tab.js +49 -49
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +56 -0
- 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 -25
- package/dist/es/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +36 -37
- package/dist/es/components/tabs/index.d.ts +1 -0
- package/dist/es/components/tabs/index.js +4 -0
- package/dist/es/components/text-area/daikin-text-area.d.ts +82 -0
- package/dist/es/components/text-area/daikin-text-area.js +165 -0
- package/dist/es/components/text-area/index.d.ts +1 -0
- package/dist/es/components/text-area/index.js +4 -0
- package/dist/es/components/text-field/daikin-text-field.d.ts +94 -0
- package/dist/es/components/text-field/daikin-text-field.js +212 -0
- package/dist/es/components/text-field/index.d.ts +1 -0
- package/dist/es/components/text-field/index.js +4 -0
- 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 +39 -15
- package/dist/es/components/tooltip/daikin-tooltip.js +78 -71
- package/dist/es/controllers/click-outside.d.ts +37 -0
- package/dist/es/controllers/click-outside.js +29 -0
- package/dist/es/controllers/floating-ui-auto-update.d.ts +22 -0
- package/dist/es/controllers/floating-ui-auto-update.js +75 -0
- package/dist/es/controllers/helpers/controller-directive.d.ts +12 -0
- package/dist/es/controllers/helpers/controller-directive.js +50 -0
- package/dist/es/index.js +22 -8
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/reDispatch.d.ts +1 -0
- package/dist/es/utils/reDispatch.js +10 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -9
- package/dist/es-dev/components/accordion/daikin-accordion.js +25 -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 +107 -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 +102 -121
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +100 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +368 -0
- package/dist/es-dev/components/dropdown/index.d.ts +1 -0
- package/dist/es-dev/components/dropdown/index.js +4 -0
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +42 -0
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +113 -0
- package/dist/es-dev/components/dropdown-item/index.d.ts +1 -0
- package/dist/es-dev/components/dropdown-item/index.js +4 -0
- package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es-dev/components/icon/icons.json.d.ts +29 -5
- package/dist/es-dev/components/icon/icons.json.js +29 -5
- package/dist/es-dev/components/index.d.ts +11 -4
- package/dist/es-dev/components/index.js +22 -8
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +69 -25
- package/dist/es-dev/components/input-group/daikin-input-group.js +105 -48
- 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 +132 -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/progress-indicator/daikin-progress-indicator.d.ts +47 -0
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +86 -0
- package/dist/es-dev/components/progress-indicator/index.d.ts +1 -0
- package/dist/es-dev/components/progress-indicator/index.js +4 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +44 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +93 -0
- package/dist/es-dev/components/progress-indicator-item/index.d.ts +1 -0
- package/dist/es-dev/components/progress-indicator-item/index.js +4 -0
- package/dist/es-dev/components/radio/daikin-radio.d.ts +33 -35
- package/dist/es-dev/components/radio/daikin-radio.js +94 -92
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +82 -0
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +145 -0
- package/dist/es-dev/components/radio-group/index.d.ts +1 -0
- package/dist/es-dev/components/radio-group/index.js +4 -0
- package/dist/es-dev/components/select/daikin-select.d.ts +60 -0
- package/dist/es-dev/components/select/daikin-select.js +161 -0
- package/dist/es-dev/components/select/index.d.ts +1 -0
- package/dist/es-dev/components/select/index.js +4 -0
- package/dist/es-dev/components/tab/daikin-tab.d.ts +12 -12
- package/dist/es-dev/components/tab/daikin-tab.js +49 -49
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +56 -0
- 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 -25
- package/dist/es-dev/components/{tab-group/daikin-tab-group.js → tabs/daikin-tabs.js} +38 -39
- 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-area/daikin-text-area.d.ts +82 -0
- package/dist/es-dev/components/text-area/daikin-text-area.js +165 -0
- package/dist/es-dev/components/text-area/index.d.ts +1 -0
- package/dist/es-dev/components/text-area/index.js +4 -0
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +94 -0
- package/dist/es-dev/components/text-field/daikin-text-field.js +212 -0
- package/dist/es-dev/components/text-field/index.d.ts +1 -0
- package/dist/es-dev/components/text-field/index.js +4 -0
- 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 +39 -15
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +78 -71
- package/dist/es-dev/controllers/click-outside.d.ts +37 -0
- package/dist/es-dev/controllers/click-outside.js +29 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +22 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +82 -0
- package/dist/es-dev/controllers/helpers/controller-directive.d.ts +12 -0
- package/dist/es-dev/controllers/helpers/controller-directive.js +50 -0
- package/dist/es-dev/index.js +22 -8
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/reDispatch.d.ts +1 -0
- package/dist/es-dev/utils/reDispatch.js +10 -0
- 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/dropdown-check.svg +3 -0
- package/icons/dropdown-chevron-down.svg +3 -0
- package/icons/required.svg +3 -0
- package/icons/status-error.svg +3 -0
- package/icons/status-negative.svg +3 -11
- package/icons/status-positive.svg +4 -14
- package/icons/status-success.svg +6 -0
- package/package.json +3 -2
- package/dist/cjs/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
- 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/components/text-input/daikin-text-input.cjs +0 -137
- package/dist/cjs/components/text-input/daikin-text-input.d.ts +0 -68
- package/dist/cjs/components/text-input/index.cjs +0 -7
- package/dist/cjs/components/text-input/index.d.ts +0 -1
- package/dist/cjs/components/textarea/daikin-textarea.cjs +0 -168
- package/dist/cjs/components/textarea/daikin-textarea.d.ts +0 -70
- package/dist/cjs/components/textarea/index.cjs +0 -7
- package/dist/cjs/components/textarea/index.d.ts +0 -1
- package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
- 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/cjs-dev/components/text-input/daikin-text-input.cjs +0 -137
- package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +0 -68
- package/dist/cjs-dev/components/text-input/index.cjs +0 -7
- package/dist/cjs-dev/components/text-input/index.d.ts +0 -1
- package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +0 -168
- package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +0 -70
- package/dist/cjs-dev/components/textarea/index.cjs +0 -7
- package/dist/cjs-dev/components/textarea/index.d.ts +0 -1
- package/dist/es/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
- 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/components/text-input/daikin-text-input.d.ts +0 -68
- package/dist/es/components/text-input/daikin-text-input.js +0 -138
- package/dist/es/components/text-input/index.d.ts +0 -1
- package/dist/es/components/text-input/index.js +0 -4
- package/dist/es/components/textarea/daikin-textarea.d.ts +0 -70
- package/dist/es/components/textarea/daikin-textarea.js +0 -169
- package/dist/es/components/textarea/index.d.ts +0 -1
- package/dist/es/components/textarea/index.js +0 -4
- package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.d.ts +0 -50
- 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/dist/es-dev/components/text-input/daikin-text-input.d.ts +0 -68
- package/dist/es-dev/components/text-input/daikin-text-input.js +0 -138
- package/dist/es-dev/components/text-input/index.d.ts +0 -1
- package/dist/es-dev/components/text-input/index.js +0 -4
- package/dist/es-dev/components/textarea/daikin-textarea.d.ts +0 -70
- package/dist/es-dev/components/textarea/daikin-textarea.js +0 -169
- package/dist/es-dev/components/textarea/index.d.ts +0 -1
- package/dist/es-dev/components/textarea/index.js +0 -4
- package/icons/accordion-chevron-up.svg +0 -3
- package/icons/notification-status-negative.svg +0 -3
- package/icons/notification-status-positive.svg +0 -5
- 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
- /package/icons/{notification-status-alarm.svg → status-alarm.svg} +0 -0
- /package/icons/{notification-status-information.svg → status-information.svg} +0 -0
- /package/icons/{notification-status-warning.svg → status-warning.svg} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { buttonColorBackgroundPrimaryActive, buttonColorBackgroundPrimaryFocus, buttonColorBackgroundPrimaryHover, buttonColorBackgroundPrimaryPress, buttonColorBackgroundPrimaryDisabled } 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
|
-
import { property, customElement } from "lit/decorators.js";
|
|
3
|
+
import { property, query, customElement } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
6
|
import "../icon/daikin-icon.js";
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -14,200 +14,161 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
14
|
if (kind && result) __defProp(target, key, result);
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
|
-
const BUTTON_ICON_SIZE_MAP = {
|
|
18
|
-
default: "m",
|
|
19
|
-
condensed: "s"
|
|
20
|
-
};
|
|
21
17
|
const cvaButton = cva(
|
|
22
18
|
[
|
|
23
19
|
"inline-flex",
|
|
24
20
|
"justify-center",
|
|
25
21
|
"items-center",
|
|
26
|
-
"
|
|
22
|
+
"w-full",
|
|
23
|
+
"h-full",
|
|
27
24
|
"font-daikinSerif",
|
|
28
25
|
"font-bold",
|
|
29
|
-
"rounded
|
|
26
|
+
"rounded",
|
|
27
|
+
"px-3",
|
|
30
28
|
"tracking-wide",
|
|
31
29
|
"text-nowrap",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
30
|
+
"focus-visible:outline",
|
|
31
|
+
"focus-visible:outline-2",
|
|
32
|
+
"focus-visible:outline-offset-2",
|
|
33
|
+
"focus-visible:outline-system-state-focus",
|
|
34
|
+
"var-color-transparent/color-secondary",
|
|
35
|
+
"link-disabled:var-color-system-state-disabled/color-primary"
|
|
35
36
|
],
|
|
36
37
|
{
|
|
37
38
|
variants: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"enabled:
|
|
43
|
-
"enabled:
|
|
44
|
-
"enabled:active:
|
|
45
|
-
"disabled:bg-[--buttonColorBackgroundPrimaryDisabled]",
|
|
46
|
-
"focus-visible:outline-none"
|
|
47
|
-
],
|
|
48
|
-
secondary: [
|
|
49
|
-
"border-2",
|
|
50
|
-
"bg-white",
|
|
51
|
-
"text-daikinBlue-500",
|
|
52
|
-
"border-daikinBlue-500",
|
|
53
|
-
"enabled:hover:text-daikinBlue-300",
|
|
54
|
-
"enabled:hover:border-daikinBlue-300",
|
|
55
|
-
"enabled:active:text-daikinBlue-600",
|
|
56
|
-
"enabled:active:border-daikinBlue-600",
|
|
57
|
-
"enabled:focus-visible:text-daikinBlue-700",
|
|
58
|
-
"enabled:focus-visible:border-daikinBlue-700",
|
|
59
|
-
"disabled:border-daikinNeutral-300",
|
|
60
|
-
"disabled:text-daikinNeutral-400",
|
|
61
|
-
"disabled:border",
|
|
62
|
-
"focus-visible:outline-none"
|
|
39
|
+
color: {
|
|
40
|
+
default: [
|
|
41
|
+
"link-enabled:var-color-system-state-primary-active/color-primary",
|
|
42
|
+
"link-enabled:hover:var-color-system-state-primary-hover/color-primary",
|
|
43
|
+
"link-enabled:hover:var-color-system-state-primary-surface-hover/color-secondary",
|
|
44
|
+
"link-enabled:active:var-color-system-state-primary-press/color-primary",
|
|
45
|
+
"link-enabled:active:var-color-system-state-primary-surface-press/color-secondary"
|
|
63
46
|
],
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"enabled:
|
|
70
|
-
"disabled:bg-transparent",
|
|
71
|
-
"disabled:text-daikinNeutral-400"
|
|
72
|
-
],
|
|
73
|
-
primaryDanger: [
|
|
74
|
-
"bg-daikinRed",
|
|
75
|
-
"text-white",
|
|
76
|
-
"enabled:hover:bg-daikinRed-400",
|
|
77
|
-
"enabled:focus-visible:bg-daikinRed-700",
|
|
78
|
-
"enabled:active:bg-daikinRed-700",
|
|
79
|
-
"disabled:bg-daikinNeutral-300",
|
|
80
|
-
"focus-visible:outline-none"
|
|
47
|
+
danger: [
|
|
48
|
+
"link-enabled:var-color-system-state-error-active/color-primary",
|
|
49
|
+
"link-enabled:hover:var-color-system-state-error-hover/color-primary",
|
|
50
|
+
"link-enabled:hover:var-color-system-state-error-surface-hover/color-secondary",
|
|
51
|
+
"link-enabled:active:var-color-system-state-error-press/color-primary",
|
|
52
|
+
"link-enabled:active:var-color-system-state-error-surface-press/color-secondary"
|
|
81
53
|
]
|
|
82
54
|
},
|
|
55
|
+
variant: {
|
|
56
|
+
fill: ["text-system-element-text-inverse", "bg-[--color-primary]"],
|
|
57
|
+
outline: [
|
|
58
|
+
"border",
|
|
59
|
+
"text-[--color-primary]",
|
|
60
|
+
"bg-[--color-secondary]",
|
|
61
|
+
"border-[--color-primary]"
|
|
62
|
+
],
|
|
63
|
+
ghost: ["text-[--color-primary]", "bg-[--color-secondary]"]
|
|
64
|
+
},
|
|
83
65
|
size: {
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
small: ["text-sm"],
|
|
67
|
+
medium: ["text-sm"]
|
|
86
68
|
}
|
|
87
|
-
},
|
|
88
|
-
defaultVariants: {
|
|
89
|
-
intent: "primary",
|
|
90
|
-
size: "condensed"
|
|
91
69
|
}
|
|
92
70
|
}
|
|
93
71
|
);
|
|
94
72
|
let DaikinButton = class extends LitElement {
|
|
95
73
|
constructor() {
|
|
96
|
-
super(
|
|
97
|
-
this.variant = "
|
|
74
|
+
super();
|
|
75
|
+
this.variant = "fill";
|
|
76
|
+
this.size = "medium";
|
|
77
|
+
this.color = "default";
|
|
98
78
|
this.disabled = false;
|
|
99
|
-
this.
|
|
100
|
-
this.leftIcon = null;
|
|
101
|
-
this.href = "";
|
|
102
|
-
this.size = "default";
|
|
79
|
+
this.href = null;
|
|
103
80
|
this.type = "button";
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
81
|
+
this.buttonRole = null;
|
|
82
|
+
this.addEventListener("click", (event) => {
|
|
83
|
+
if (this.disabled) {
|
|
84
|
+
event.stopImmediatePropagation();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
106
87
|
}
|
|
107
88
|
render() {
|
|
108
|
-
const
|
|
109
|
-
|
|
89
|
+
const className = cvaButton({
|
|
90
|
+
variant: this.variant,
|
|
91
|
+
color: this.color,
|
|
110
92
|
size: this.size
|
|
111
93
|
});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
icon=${this.leftIcon}
|
|
115
|
-
size=${BUTTON_ICON_SIZE_MAP[this.size]}
|
|
116
|
-
color="current"
|
|
117
|
-
></daikin-icon>` : null}
|
|
118
|
-
<slot></slot>
|
|
119
|
-
${this.rightIcon ? html`<daikin-icon
|
|
120
|
-
icon=${this.rightIcon}
|
|
121
|
-
size=${BUTTON_ICON_SIZE_MAP[this.size]}
|
|
122
|
-
color="current"
|
|
123
|
-
></daikin-icon>` : null}
|
|
124
|
-
`;
|
|
125
|
-
if (this.href) {
|
|
94
|
+
if (this.type === "link") {
|
|
95
|
+
const linkDisabled = this.disabled || this.href == null;
|
|
126
96
|
return html`<a
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
role
|
|
97
|
+
class=${className}
|
|
98
|
+
href=${ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
|
|
99
|
+
role=${ifDefined(
|
|
100
|
+
this.buttonRole ?? (linkDisabled ? "link" : void 0)
|
|
101
|
+
)}
|
|
102
|
+
aria-disabled=${ifDefined(linkDisabled ? "true" : void 0)}
|
|
130
103
|
>
|
|
131
|
-
|
|
104
|
+
<slot name="left-icon"><span class="block -ml-1"></span></slot>
|
|
105
|
+
<span class="px-2"><slot></slot></span>
|
|
106
|
+
<slot name="right-icon"><span class="block -mr-1"></span></slot>
|
|
132
107
|
</a>`;
|
|
133
108
|
}
|
|
134
109
|
return html`
|
|
135
110
|
<button
|
|
136
|
-
class
|
|
137
|
-
?disabled
|
|
138
|
-
type
|
|
139
|
-
role
|
|
111
|
+
class=${className}
|
|
112
|
+
?disabled=${this.disabled}
|
|
113
|
+
type=${this.type}
|
|
114
|
+
role=${ifDefined(this.buttonRole ?? void 0)}
|
|
140
115
|
>
|
|
141
|
-
|
|
116
|
+
<slot name="left-icon"><span class="block -ml-1"></span></slot>
|
|
117
|
+
<span class="px-2"><slot></slot></span>
|
|
118
|
+
<slot name="right-icon"><span class="block -mr-1"></span></slot>
|
|
142
119
|
</button>
|
|
143
120
|
`;
|
|
144
121
|
}
|
|
145
122
|
/**
|
|
146
|
-
* Focuses on the inner button.
|
|
123
|
+
* Focuses on the inner button or link.
|
|
147
124
|
* @param options focus options
|
|
148
125
|
*/
|
|
149
126
|
focus(options) {
|
|
150
|
-
var _a
|
|
151
|
-
(
|
|
127
|
+
var _a;
|
|
128
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
152
129
|
}
|
|
153
130
|
};
|
|
154
131
|
DaikinButton.styles = css`
|
|
155
132
|
${unsafeCSS(tailwindStyles)}
|
|
156
133
|
|
|
157
134
|
:host {
|
|
158
|
-
--buttonColorBackgroundPrimaryActive: ${unsafeCSS(
|
|
159
|
-
buttonColorBackgroundPrimaryActive
|
|
160
|
-
)};
|
|
161
|
-
--buttonColorBackgroundPrimaryFocus: ${unsafeCSS(
|
|
162
|
-
buttonColorBackgroundPrimaryFocus
|
|
163
|
-
)};
|
|
164
|
-
--buttonColorBackgroundPrimaryHover: ${unsafeCSS(
|
|
165
|
-
buttonColorBackgroundPrimaryHover
|
|
166
|
-
)};
|
|
167
|
-
--buttonColorBackgroundPrimaryPress: ${unsafeCSS(
|
|
168
|
-
buttonColorBackgroundPrimaryPress
|
|
169
|
-
)};
|
|
170
|
-
--buttonColorBackgroundPrimaryDisabled: ${unsafeCSS(
|
|
171
|
-
buttonColorBackgroundPrimaryDisabled
|
|
172
|
-
)};
|
|
173
|
-
|
|
174
135
|
display: inline-block;
|
|
175
|
-
width: fit-content;
|
|
176
|
-
min-height: 42px;
|
|
177
|
-
height: 1px;
|
|
178
136
|
}
|
|
179
137
|
|
|
180
|
-
:host([size="
|
|
181
|
-
min-
|
|
138
|
+
:host([size="small"]) {
|
|
139
|
+
min-width: 52px;
|
|
140
|
+
height: 32px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([size="medium"]) {
|
|
144
|
+
min-width: 60px;
|
|
145
|
+
height: 48px;
|
|
182
146
|
}
|
|
183
147
|
`;
|
|
184
148
|
__decorateClass([
|
|
185
|
-
property({ type: String })
|
|
149
|
+
property({ type: String, reflect: true })
|
|
186
150
|
], DaikinButton.prototype, "variant", 2);
|
|
187
|
-
__decorateClass([
|
|
188
|
-
property({ type: Boolean, reflect: true })
|
|
189
|
-
], DaikinButton.prototype, "disabled", 2);
|
|
190
151
|
__decorateClass([
|
|
191
152
|
property({ type: String, reflect: true })
|
|
192
|
-
], DaikinButton.prototype, "
|
|
153
|
+
], DaikinButton.prototype, "size", 2);
|
|
193
154
|
__decorateClass([
|
|
194
155
|
property({ type: String, reflect: true })
|
|
195
|
-
], DaikinButton.prototype, "
|
|
156
|
+
], DaikinButton.prototype, "color", 2);
|
|
196
157
|
__decorateClass([
|
|
197
|
-
property({ type:
|
|
198
|
-
], DaikinButton.prototype, "
|
|
158
|
+
property({ type: Boolean, reflect: true })
|
|
159
|
+
], DaikinButton.prototype, "disabled", 2);
|
|
199
160
|
__decorateClass([
|
|
200
161
|
property({ type: String, reflect: true })
|
|
201
|
-
], DaikinButton.prototype, "
|
|
162
|
+
], DaikinButton.prototype, "href", 2);
|
|
202
163
|
__decorateClass([
|
|
203
164
|
property({ type: String, reflect: true })
|
|
204
165
|
], DaikinButton.prototype, "type", 2);
|
|
205
166
|
__decorateClass([
|
|
206
|
-
property({ type: String, reflect: true })
|
|
207
|
-
], DaikinButton.prototype, "
|
|
167
|
+
property({ type: String, reflect: true, attribute: "button-role" })
|
|
168
|
+
], DaikinButton.prototype, "buttonRole", 2);
|
|
208
169
|
__decorateClass([
|
|
209
|
-
|
|
210
|
-
], DaikinButton.prototype, "
|
|
170
|
+
query("a,button")
|
|
171
|
+
], DaikinButton.prototype, "_focusableElement", 2);
|
|
211
172
|
DaikinButton = __decorateClass([
|
|
212
173
|
customElement("daikin-button")
|
|
213
174
|
], DaikinButton);
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
declare const cvaCheckbox: (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 CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLabel>;
|
|
10
2
|
/**
|
|
11
3
|
* The checkbox component is a UI element that allows users to select one or more options from a list of choices.
|
|
12
4
|
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
@@ -16,56 +8,54 @@ type CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLab
|
|
|
16
8
|
*
|
|
17
9
|
* @example
|
|
18
10
|
*
|
|
11
|
+
* ```js
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/checkbox/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
19
15
|
* ```html
|
|
20
16
|
* <daikin-checkbox label="Checkbox label" name="name" value="value"></daikin-checkbox>
|
|
21
17
|
* ```
|
|
22
18
|
*/
|
|
23
19
|
export declare class DaikinCheckbox 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
|
-
private _input;
|
|
30
|
-
get checked(): boolean;
|
|
31
|
-
private _handleChange;
|
|
32
|
-
/**
|
|
33
|
-
* Specify the label text for check box
|
|
34
|
-
*/
|
|
35
|
-
label: string;
|
|
36
21
|
/**
|
|
37
|
-
*
|
|
22
|
+
* Form name of the checkbox.
|
|
38
23
|
*/
|
|
39
|
-
|
|
24
|
+
name: string;
|
|
40
25
|
/**
|
|
41
|
-
*
|
|
42
|
-
* when `left` the label will be in left of checkbox, when `right` label will be in right of checkbox
|
|
26
|
+
* Form value of the checkbox.
|
|
43
27
|
*/
|
|
44
|
-
|
|
28
|
+
value: string;
|
|
45
29
|
/**
|
|
46
|
-
*
|
|
30
|
+
* Label text for the checkbox.
|
|
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 checkbox.
|
|
36
|
+
* - `hidden`: The label will not be shown.
|
|
51
37
|
*/
|
|
52
|
-
|
|
38
|
+
labelPosition: "right" | "hidden";
|
|
53
39
|
/**
|
|
54
|
-
*
|
|
40
|
+
* Checked state of the checkbox.
|
|
55
41
|
*/
|
|
56
42
|
checkState: "unchecked" | "indeterminate" | "checked";
|
|
57
43
|
/**
|
|
58
|
-
*
|
|
44
|
+
* Whether the checkbox is disabled.
|
|
59
45
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* The value.
|
|
63
|
-
*/
|
|
64
|
-
value: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
get checked(): boolean;
|
|
65
48
|
/**
|
|
66
|
-
*
|
|
49
|
+
* A property-only accessor for `checkState` provided for convenience.
|
|
50
|
+
* _Getter_: Returns `true` when `checkState` is `"checked"`, and `false` otherwise.
|
|
51
|
+
* _Setter_: If `true` is set, it updates `checkState` to `"checked"`, and if `false` is set, it updates `checkState` to `"unchecked"`.
|
|
67
52
|
*/
|
|
68
|
-
|
|
53
|
+
set checked(value: boolean);
|
|
54
|
+
static readonly formAssociated = true;
|
|
55
|
+
private _internals;
|
|
56
|
+
private _updateFormValue;
|
|
57
|
+
private _handleClick;
|
|
58
|
+
private _handleChange;
|
|
69
59
|
render(): import('lit-html').TemplateResult<1>;
|
|
70
60
|
updated(changedProperties: PropertyValues<this>): void;
|
|
71
61
|
}
|
|
@@ -74,4 +64,3 @@ declare global {
|
|
|
74
64
|
"daikin-checkbox": DaikinCheckbox;
|
|
75
65
|
}
|
|
76
66
|
}
|
|
77
|
-
export {};
|