@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,68 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* The text input component is a UI element that allows users to input single-line text data.
|
|
4
|
-
* It functions similarly to the HTML `<input type="text">` tag, providing a simple and efficient way for users to enter and edit short pieces of texts, such as names, email addresses, or search queries.
|
|
5
|
-
* Can be used within `daikin-input-group` component.
|
|
6
|
-
*
|
|
7
|
-
* Hierarchies:
|
|
8
|
-
* - `daikin-text-input` (can be used solely)
|
|
9
|
-
* - `daikin-input-group` > `daikin-text-input`
|
|
10
|
-
*
|
|
11
|
-
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input>` element.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* ```html
|
|
16
|
-
* <!-- See `daikin-input-group` component for complete example. -->
|
|
17
|
-
* <daikin-text-input name="name"></daikin-text-input>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare class DaikinTextInput extends LitElement {
|
|
21
|
-
static readonly styles: import('lit').CSSResult;
|
|
22
|
-
static readonly formAssociated = true;
|
|
23
|
-
private _internals;
|
|
24
|
-
/**
|
|
25
|
-
* Field value
|
|
26
|
-
*/
|
|
27
|
-
value: string;
|
|
28
|
-
/**
|
|
29
|
-
* Type of field
|
|
30
|
-
*/
|
|
31
|
-
type: "text" | "email" | "tel" | "search";
|
|
32
|
-
/**
|
|
33
|
-
* Placeholder text
|
|
34
|
-
*/
|
|
35
|
-
placeholder: string;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the field is disabled
|
|
38
|
-
*/
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the field is readonly
|
|
42
|
-
*/
|
|
43
|
-
readonly: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Name of the input field control used in the form
|
|
46
|
-
*/
|
|
47
|
-
name?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Maximum length in field values
|
|
50
|
-
*/
|
|
51
|
-
maxlength?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Specify auto-completion values
|
|
54
|
-
*/
|
|
55
|
-
autocomplete?: HTMLInputElement["autocomplete"];
|
|
56
|
-
/**
|
|
57
|
-
* Error state. Ignored if the `disabled` is `true`.
|
|
58
|
-
*/
|
|
59
|
-
error: boolean;
|
|
60
|
-
private _handleInput;
|
|
61
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
62
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
63
|
-
}
|
|
64
|
-
declare global {
|
|
65
|
-
interface HTMLElementTagNameMap {
|
|
66
|
-
"daikin-text-input": DaikinTextInput;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinTextInput = require("./daikin-text-input.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinTextInput", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinTextInput.DaikinTextInput
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './daikin-text-input';
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const variables_js = require("@daikin-oss/dds-tokens/js/daikin/Light/variables.js");
|
|
4
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
5
|
-
const lit = require("lit");
|
|
6
|
-
const decorators_js = require("lit/decorators.js");
|
|
7
|
-
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
8
|
-
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
const cvaTextarea = classVarianceAuthority.cva(
|
|
20
|
-
[
|
|
21
|
-
"w-[340px]",
|
|
22
|
-
"h-[120px]",
|
|
23
|
-
"text-daikinNeutral-900",
|
|
24
|
-
"border",
|
|
25
|
-
"border-solid",
|
|
26
|
-
"px-[9px]",
|
|
27
|
-
"py-1",
|
|
28
|
-
"font-daikinSerif",
|
|
29
|
-
"rounded-[6px]",
|
|
30
|
-
"placeholder:text-daikinNeutral-200",
|
|
31
|
-
"enabled:hover:outline",
|
|
32
|
-
"enabled:hover:outline-2",
|
|
33
|
-
"enabled:hover:outline-[--text-input-outline-color-hover]",
|
|
34
|
-
"enabled:active:outline",
|
|
35
|
-
"enabled:active:outline-2",
|
|
36
|
-
"enabled:active:outline-[--text-input-outline-color-active]",
|
|
37
|
-
"focus-visible:outline",
|
|
38
|
-
"focus-visible:outline-2",
|
|
39
|
-
"focus-visible:outline-[--text-input-outline-color-active]",
|
|
40
|
-
"disabled:text-[--text-input-outline-color-disabled]",
|
|
41
|
-
"disabled:bg-[--text-input-background-color]",
|
|
42
|
-
"disabled:border-[--text-input-outline-color-disabled]"
|
|
43
|
-
],
|
|
44
|
-
{
|
|
45
|
-
variants: {
|
|
46
|
-
variant: {
|
|
47
|
-
normal: ["border-daikinNeutral-600"],
|
|
48
|
-
error: ["bg-daikinRed-50", "border-[--text-input-border-color-error]"]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
const cvaCounter = classVarianceAuthority.cva(
|
|
54
|
-
["absolute", "top-[-24px]", "right-0", "text-[12px]", "font-daikinSerif"],
|
|
55
|
-
{
|
|
56
|
-
variants: {
|
|
57
|
-
variant: {
|
|
58
|
-
normal: ["text-daikinNeutral-900"],
|
|
59
|
-
disabled: ["text-[--text-input-outline-color-disabled]"]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
exports.DaikinTextarea = class DaikinTextarea extends lit.LitElement {
|
|
65
|
-
constructor() {
|
|
66
|
-
super(...arguments);
|
|
67
|
-
this._internals = this.attachInternals();
|
|
68
|
-
this.value = "";
|
|
69
|
-
this.placeholder = "";
|
|
70
|
-
this.disabled = false;
|
|
71
|
-
this.required = false;
|
|
72
|
-
this.readonly = false;
|
|
73
|
-
this.maxlength = 100;
|
|
74
|
-
this.error = false;
|
|
75
|
-
this.counter = false;
|
|
76
|
-
this._textareaCounter = 0;
|
|
77
|
-
}
|
|
78
|
-
_updateValueAndCounter(value) {
|
|
79
|
-
this._internals.setFormValue(value);
|
|
80
|
-
this._textareaCounter = [...value].length;
|
|
81
|
-
}
|
|
82
|
-
_handleInput(e) {
|
|
83
|
-
this.value = e.target.value;
|
|
84
|
-
this._updateValueAndCounter(this.value);
|
|
85
|
-
}
|
|
86
|
-
render() {
|
|
87
|
-
const textareaClassName = cvaTextarea({
|
|
88
|
-
variant: !this.disabled && this.error ? "error" : "normal"
|
|
89
|
-
});
|
|
90
|
-
const textareaCounterClassName = cvaCounter({
|
|
91
|
-
variant: this.disabled ? "disabled" : "normal"
|
|
92
|
-
});
|
|
93
|
-
return lit.html`<textarea
|
|
94
|
-
class=${textareaClassName}
|
|
95
|
-
.value=${this.value}
|
|
96
|
-
placeholder=${this.placeholder}
|
|
97
|
-
maxlength=${this.maxlength}
|
|
98
|
-
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
99
|
-
ifDefined_js.ifDefined(this.autocomplete)}
|
|
100
|
-
?disabled=${this.disabled}
|
|
101
|
-
?readonly=${this.readonly}
|
|
102
|
-
@change=${(e) => this.dispatchEvent(new Event("change", e))}
|
|
103
|
-
@input=${this._handleInput}
|
|
104
|
-
@keydown=${this._handleInput}
|
|
105
|
-
></textarea>
|
|
106
|
-
${this.counter ? lit.html`
|
|
107
|
-
<span class=${textareaCounterClassName}
|
|
108
|
-
>${this._textareaCounter}/${this.maxlength}</span
|
|
109
|
-
>
|
|
110
|
-
` : null}`;
|
|
111
|
-
}
|
|
112
|
-
updated(changedProperties) {
|
|
113
|
-
if (!changedProperties.has("value")) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
this._updateValueAndCounter(this.value);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
exports.DaikinTextarea.styles = lit.css`
|
|
120
|
-
${lit.unsafeCSS(tailwind.default)}
|
|
121
|
-
|
|
122
|
-
:host {
|
|
123
|
-
--text-input-border-color-error: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
124
|
-
--text-input-outline-color-hover: #54c3f1;
|
|
125
|
-
--text-input-outline-color-disabled: #dcdcdc;
|
|
126
|
-
--text-input-outline-color-active: #cecece;
|
|
127
|
-
--text-input-background-color: #ffffff;
|
|
128
|
-
|
|
129
|
-
display: block;
|
|
130
|
-
width: max-content;
|
|
131
|
-
height: 120px;
|
|
132
|
-
position: relative;
|
|
133
|
-
}
|
|
134
|
-
`;
|
|
135
|
-
exports.DaikinTextarea.formAssociated = true;
|
|
136
|
-
__decorateClass([
|
|
137
|
-
decorators_js.property({ type: String })
|
|
138
|
-
], exports.DaikinTextarea.prototype, "value", 2);
|
|
139
|
-
__decorateClass([
|
|
140
|
-
decorators_js.property({ type: String })
|
|
141
|
-
], exports.DaikinTextarea.prototype, "placeholder", 2);
|
|
142
|
-
__decorateClass([
|
|
143
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
144
|
-
], exports.DaikinTextarea.prototype, "disabled", 2);
|
|
145
|
-
__decorateClass([
|
|
146
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
147
|
-
], exports.DaikinTextarea.prototype, "required", 2);
|
|
148
|
-
__decorateClass([
|
|
149
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
150
|
-
], exports.DaikinTextarea.prototype, "readonly", 2);
|
|
151
|
-
__decorateClass([
|
|
152
|
-
decorators_js.property({ type: Number, reflect: true })
|
|
153
|
-
], exports.DaikinTextarea.prototype, "maxlength", 2);
|
|
154
|
-
__decorateClass([
|
|
155
|
-
decorators_js.property({ type: String, reflect: true })
|
|
156
|
-
], exports.DaikinTextarea.prototype, "autocomplete", 2);
|
|
157
|
-
__decorateClass([
|
|
158
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
159
|
-
], exports.DaikinTextarea.prototype, "error", 2);
|
|
160
|
-
__decorateClass([
|
|
161
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
162
|
-
], exports.DaikinTextarea.prototype, "counter", 2);
|
|
163
|
-
__decorateClass([
|
|
164
|
-
decorators_js.state()
|
|
165
|
-
], exports.DaikinTextarea.prototype, "_textareaCounter", 2);
|
|
166
|
-
exports.DaikinTextarea = __decorateClass([
|
|
167
|
-
decorators_js.customElement("daikin-textarea")
|
|
168
|
-
], exports.DaikinTextarea);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* The textarea component is designed for multiline text input, similar to the HTML `<textarea>` tag.
|
|
4
|
-
* It is ideal for situations where users need to enter longer pieces of text, such as comments, descriptions, or messages.
|
|
5
|
-
* Can be used within `daikin-input-group` component.
|
|
6
|
-
*
|
|
7
|
-
* Hierarchies:
|
|
8
|
-
* - `daikin-textarea` (can be used solely)
|
|
9
|
-
* - `daikin-input-group` > `daikin-textarea`
|
|
10
|
-
*
|
|
11
|
-
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<textarea>` element.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* ```html
|
|
16
|
-
* <!-- See `daikin-input-group` component for complete example. -->
|
|
17
|
-
* <daikin-textarea name="name"></daikin-textarea>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare class DaikinTextarea extends LitElement {
|
|
21
|
-
static readonly styles: import('lit').CSSResult;
|
|
22
|
-
static readonly formAssociated = true;
|
|
23
|
-
private _internals;
|
|
24
|
-
/**
|
|
25
|
-
* Field value
|
|
26
|
-
*/
|
|
27
|
-
value: string;
|
|
28
|
-
/**
|
|
29
|
-
* Placeholder text
|
|
30
|
-
*/
|
|
31
|
-
placeholder: string;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the field is disabled
|
|
34
|
-
*/
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the field is required
|
|
38
|
-
*/
|
|
39
|
-
required: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the field is readonly
|
|
42
|
-
*/
|
|
43
|
-
readonly: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Maximum length in field values
|
|
46
|
-
*/
|
|
47
|
-
maxlength: number;
|
|
48
|
-
/**
|
|
49
|
-
* Specify auto-completion values
|
|
50
|
-
*/
|
|
51
|
-
autocomplete?: HTMLInputElement["autocomplete"];
|
|
52
|
-
/**
|
|
53
|
-
* Error state. Ignored if the `disabled` is `true`.
|
|
54
|
-
*/
|
|
55
|
-
error: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Whether to display a counter at the top of the text area
|
|
58
|
-
*/
|
|
59
|
-
counter: boolean;
|
|
60
|
-
protected _textareaCounter: number;
|
|
61
|
-
private _updateValueAndCounter;
|
|
62
|
-
private _handleInput;
|
|
63
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
64
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
65
|
-
}
|
|
66
|
-
declare global {
|
|
67
|
-
interface HTMLElementTagNameMap {
|
|
68
|
-
"daikin-textarea": DaikinTextarea;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinTextarea = require("./daikin-textarea.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinTextarea", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinTextarea.DaikinTextarea
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './daikin-textarea';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { ARIARole } from '../../lit-analyzer-types';
|
|
3
|
-
/**
|
|
4
|
-
* The panel switcher component is a child element within the `daikin-tab-group` that controls the display of the content panels associated with each tab.
|
|
5
|
-
* When a user selects a tab, the panel switcher component ensures the corresponding content panel is shown while hiding the others.
|
|
6
|
-
*
|
|
7
|
-
* Hierarchy:
|
|
8
|
-
* - `daikin-tab-group` > `daikin-panel-switcher` ("panels" slot)
|
|
9
|
-
*
|
|
10
|
-
* @slot panel:\<name\> - A slot for each panel content.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
*
|
|
14
|
-
* ```html
|
|
15
|
-
* <!-- Note that `panels` must be set via property. -->
|
|
16
|
-
* <daikin-panel-switcher
|
|
17
|
-
* class="block w-full h-full"
|
|
18
|
-
* .panels="${['foo', 'bar', 'baz']}"
|
|
19
|
-
* value="foo"
|
|
20
|
-
* panelRole="tabpanel"
|
|
21
|
-
* >
|
|
22
|
-
* <div slot="panel:foo">Foo Panel (visible)</div>
|
|
23
|
-
* <div slot="panel:bar">Bar Panel (hidden)</div>
|
|
24
|
-
* <div slot="panel:baz">Baz Panel (hidden)</div>
|
|
25
|
-
* </daikin-panel-switcher>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class DaikinPanelSwitcher extends LitElement {
|
|
29
|
-
static readonly styles: import('lit').CSSResult;
|
|
30
|
-
/**
|
|
31
|
-
* The panel to be displayed.
|
|
32
|
-
* Set automatically by `daikin-tab-group` if used within it.
|
|
33
|
-
*/
|
|
34
|
-
value: string;
|
|
35
|
-
/**
|
|
36
|
-
* Set automatically by `daikin-tab-group` if used within it.
|
|
37
|
-
*/
|
|
38
|
-
panels: string[];
|
|
39
|
-
/**
|
|
40
|
-
* `role` attribute of the container.
|
|
41
|
-
* Set to "tablist" automatically by `daikin-tab-group` if used within it.
|
|
42
|
-
*/
|
|
43
|
-
panelRole: ARIARole | null;
|
|
44
|
-
render(): unknown;
|
|
45
|
-
}
|
|
46
|
-
declare global {
|
|
47
|
-
interface HTMLElementTagNameMap {
|
|
48
|
-
"daikin-panel-switcher": DaikinPanelSwitcher;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinPanelSwitcher = require("./daikin-panel-switcher.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinPanelSwitcher", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinPanelSwitcher.DaikinPanelSwitcher
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './daikin-panel-switcher';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinTabGroup = require("./daikin-tab-group.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinTabGroup", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinTabGroup.DaikinTabGroup
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './daikin-tab-group';
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const variables_js = require("@daikin-oss/dds-tokens/js/daikin/Light/variables.js");
|
|
4
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
5
|
-
const lit = require("lit");
|
|
6
|
-
const decorators_js = require("lit/decorators.js");
|
|
7
|
-
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
8
|
-
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
-
if (decorator = decorators[i])
|
|
15
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
-
if (kind && result) __defProp(target, key, result);
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
const cvaInput = classVarianceAuthority.cva(
|
|
20
|
-
[
|
|
21
|
-
"w-[340px]",
|
|
22
|
-
"h-12",
|
|
23
|
-
"text-daikinNeutral-900",
|
|
24
|
-
"border",
|
|
25
|
-
"border-solid",
|
|
26
|
-
"px-[9px]",
|
|
27
|
-
"rounded-[6px]",
|
|
28
|
-
"font-daikinSerif",
|
|
29
|
-
"placeholder:text-daikinNeutral-200",
|
|
30
|
-
"enabled:hover:outline",
|
|
31
|
-
"enabled:hover:outline-2",
|
|
32
|
-
"enabled:hover:outline-[--text-input-outline-color-hover]",
|
|
33
|
-
"enabled:active:outline",
|
|
34
|
-
"enabled:active:outline-2",
|
|
35
|
-
"enabled:active:outline-[--text-input-outline-color-active]",
|
|
36
|
-
"focus-visible:outline",
|
|
37
|
-
"focus-visible:outline-2",
|
|
38
|
-
"focus-visible:outline-[--text-input-outline-color-active]",
|
|
39
|
-
"disabled:text-[--text-input-outline-color-disabled]",
|
|
40
|
-
"disabled:bg-[--text-input-background-color]",
|
|
41
|
-
"disabled:border-[--text-input-outline-color-disabled]"
|
|
42
|
-
],
|
|
43
|
-
{
|
|
44
|
-
variants: {
|
|
45
|
-
variant: {
|
|
46
|
-
normal: ["border-daikinNeutral-600"],
|
|
47
|
-
error: ["bg-daikinRed-50", "border-[--text-input-border-color-error]"]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
exports.DaikinTextInput = class DaikinTextInput extends lit.LitElement {
|
|
53
|
-
constructor() {
|
|
54
|
-
super(...arguments);
|
|
55
|
-
this._internals = this.attachInternals();
|
|
56
|
-
this.value = "";
|
|
57
|
-
this.type = "text";
|
|
58
|
-
this.placeholder = "";
|
|
59
|
-
this.disabled = false;
|
|
60
|
-
this.readonly = false;
|
|
61
|
-
this.error = false;
|
|
62
|
-
}
|
|
63
|
-
_handleInput(e) {
|
|
64
|
-
this.value = e.target.value;
|
|
65
|
-
this._internals.setFormValue(this.value);
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
const textInputInputClassName = cvaInput({
|
|
69
|
-
variant: !this.disabled && this.error ? "error" : "normal"
|
|
70
|
-
});
|
|
71
|
-
return lit.html`<input
|
|
72
|
-
class=${textInputInputClassName}
|
|
73
|
-
type=${this.type}
|
|
74
|
-
value=${this.value}
|
|
75
|
-
placeholder=${this.placeholder}
|
|
76
|
-
name=${ifDefined_js.ifDefined(this.name)}
|
|
77
|
-
maxlength=${ifDefined_js.ifDefined(this.maxlength)}
|
|
78
|
-
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
79
|
-
ifDefined_js.ifDefined(this.autocomplete)}
|
|
80
|
-
?disabled=${this.disabled}
|
|
81
|
-
?readonly=${this.readonly}
|
|
82
|
-
@change=${(e) => this.dispatchEvent(new Event("change", e))}
|
|
83
|
-
@input=${this._handleInput}
|
|
84
|
-
/>`;
|
|
85
|
-
}
|
|
86
|
-
updated(changedProperties) {
|
|
87
|
-
if (!changedProperties.has("value")) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
this._internals.setFormValue(this.value);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
exports.DaikinTextInput.styles = lit.css`
|
|
94
|
-
${lit.unsafeCSS(tailwind.default)}
|
|
95
|
-
|
|
96
|
-
:host {
|
|
97
|
-
--text-input-background-color: #ffffff;
|
|
98
|
-
--text-input-border-color-error: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
99
|
-
--text-input-outline-color-disabled: #dcdcdc;
|
|
100
|
-
--text-input-outline-color-active: #cecece;
|
|
101
|
-
--text-input-outline-color-hover: #54c3f1;
|
|
102
|
-
|
|
103
|
-
display: block;
|
|
104
|
-
width: max-content;
|
|
105
|
-
}
|
|
106
|
-
`;
|
|
107
|
-
exports.DaikinTextInput.formAssociated = true;
|
|
108
|
-
__decorateClass([
|
|
109
|
-
decorators_js.property({ type: String, reflect: true })
|
|
110
|
-
], exports.DaikinTextInput.prototype, "value", 2);
|
|
111
|
-
__decorateClass([
|
|
112
|
-
decorators_js.property({ type: String })
|
|
113
|
-
], exports.DaikinTextInput.prototype, "type", 2);
|
|
114
|
-
__decorateClass([
|
|
115
|
-
decorators_js.property({ type: String })
|
|
116
|
-
], exports.DaikinTextInput.prototype, "placeholder", 2);
|
|
117
|
-
__decorateClass([
|
|
118
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
119
|
-
], exports.DaikinTextInput.prototype, "disabled", 2);
|
|
120
|
-
__decorateClass([
|
|
121
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
122
|
-
], exports.DaikinTextInput.prototype, "readonly", 2);
|
|
123
|
-
__decorateClass([
|
|
124
|
-
decorators_js.property({ type: String, reflect: true })
|
|
125
|
-
], exports.DaikinTextInput.prototype, "name", 2);
|
|
126
|
-
__decorateClass([
|
|
127
|
-
decorators_js.property({ type: Number })
|
|
128
|
-
], exports.DaikinTextInput.prototype, "maxlength", 2);
|
|
129
|
-
__decorateClass([
|
|
130
|
-
decorators_js.property({ type: String })
|
|
131
|
-
], exports.DaikinTextInput.prototype, "autocomplete", 2);
|
|
132
|
-
__decorateClass([
|
|
133
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
134
|
-
], exports.DaikinTextInput.prototype, "error", 2);
|
|
135
|
-
exports.DaikinTextInput = __decorateClass([
|
|
136
|
-
decorators_js.customElement("daikin-text-input")
|
|
137
|
-
], exports.DaikinTextInput);
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* The text input component is a UI element that allows users to input single-line text data.
|
|
4
|
-
* It functions similarly to the HTML `<input type="text">` tag, providing a simple and efficient way for users to enter and edit short pieces of texts, such as names, email addresses, or search queries.
|
|
5
|
-
* Can be used within `daikin-input-group` component.
|
|
6
|
-
*
|
|
7
|
-
* Hierarchies:
|
|
8
|
-
* - `daikin-text-input` (can be used solely)
|
|
9
|
-
* - `daikin-input-group` > `daikin-text-input`
|
|
10
|
-
*
|
|
11
|
-
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input>` element.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* ```html
|
|
16
|
-
* <!-- See `daikin-input-group` component for complete example. -->
|
|
17
|
-
* <daikin-text-input name="name"></daikin-text-input>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare class DaikinTextInput extends LitElement {
|
|
21
|
-
static readonly styles: import('lit').CSSResult;
|
|
22
|
-
static readonly formAssociated = true;
|
|
23
|
-
private _internals;
|
|
24
|
-
/**
|
|
25
|
-
* Field value
|
|
26
|
-
*/
|
|
27
|
-
value: string;
|
|
28
|
-
/**
|
|
29
|
-
* Type of field
|
|
30
|
-
*/
|
|
31
|
-
type: "text" | "email" | "tel" | "search";
|
|
32
|
-
/**
|
|
33
|
-
* Placeholder text
|
|
34
|
-
*/
|
|
35
|
-
placeholder: string;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the field is disabled
|
|
38
|
-
*/
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the field is readonly
|
|
42
|
-
*/
|
|
43
|
-
readonly: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Name of the input field control used in the form
|
|
46
|
-
*/
|
|
47
|
-
name?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Maximum length in field values
|
|
50
|
-
*/
|
|
51
|
-
maxlength?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Specify auto-completion values
|
|
54
|
-
*/
|
|
55
|
-
autocomplete?: HTMLInputElement["autocomplete"];
|
|
56
|
-
/**
|
|
57
|
-
* Error state. Ignored if the `disabled` is `true`.
|
|
58
|
-
*/
|
|
59
|
-
error: boolean;
|
|
60
|
-
private _handleInput;
|
|
61
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
62
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
63
|
-
}
|
|
64
|
-
declare global {
|
|
65
|
-
interface HTMLElementTagNameMap {
|
|
66
|
-
"daikin-text-input": DaikinTextInput;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinTextInput = require("./daikin-text-input.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinTextInput", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinTextInput.DaikinTextInput
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './daikin-text-input';
|