@daikin-oss/design-system-web-components 0.4.0 → 0.6.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 +78 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +4 -11
- package/dist/cjs/components/accordion/index.d.cts +1 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +15 -14
- package/dist/cjs/components/accordion-item/{daikin-accordion-item.d.ts → daikin-accordion-item.d.cts} +1 -1
- package/dist/cjs/components/accordion-item/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -5
- package/dist/cjs/components/breadcrumb-item/{daikin-breadcrumb-item.d.ts → daikin-breadcrumb-item.d.cts} +1 -6
- package/dist/cjs/components/breadcrumb-item/index.d.cts +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +30 -24
- package/dist/{cjs-dev/components/button/daikin-button.d.ts → cjs/components/button/daikin-button.d.cts} +3 -3
- package/dist/cjs/components/button/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +36 -35
- package/dist/{cjs-dev/components/checkbox/daikin-checkbox.d.ts → cjs/components/checkbox/daikin-checkbox.d.cts} +4 -4
- package/dist/cjs/components/checkbox/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +367 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +100 -0
- package/dist/cjs/components/dropdown/index.cjs +7 -0
- package/dist/cjs/components/dropdown/index.d.cts +1 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +112 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +42 -0
- package/dist/cjs/components/dropdown-item/index.cjs +7 -0
- package/dist/cjs/components/dropdown-item/index.d.cts +1 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +20 -16
- package/dist/{cjs-dev/components/icon/daikin-icon.d.ts → cjs/components/icon/daikin-icon.d.cts} +8 -6
- package/dist/cjs/components/icon/icons.json.cjs +30 -6
- package/dist/cjs/components/icon/{icons.json.d.ts → icons.json.d.cts} +30 -6
- package/dist/cjs/components/icon/index.d.cts +1 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +165 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +82 -0
- package/dist/cjs/components/icon-button/index.cjs +7 -0
- package/dist/cjs/components/icon-button/index.d.cts +1 -0
- package/dist/cjs/components/index.cjs +61 -6
- package/dist/cjs/components/index.d.cts +31 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +103 -46
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +131 -0
- package/dist/cjs/components/input-group/index.d.cts +1 -0
- package/dist/cjs/components/link/daikin-link.cjs +107 -0
- package/dist/cjs/components/link/daikin-link.d.cts +43 -0
- package/dist/cjs/components/link/index.cjs +7 -0
- package/dist/cjs/components/link/index.d.cts +1 -0
- package/dist/cjs/components/list/index.d.cts +1 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +36 -13
- package/dist/cjs/components/list-item/index.d.cts +1 -0
- package/dist/cjs/components/notification/daikin-notification.cjs +31 -24
- package/dist/{cjs-dev/components/notification/daikin-notification.d.ts → cjs/components/notification/daikin-notification.d.cts} +7 -7
- package/dist/cjs/components/notification/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +215 -0
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +39 -0
- package/dist/cjs/components/pagination/index.cjs +7 -0
- package/dist/cjs/components/pagination/index.d.cts +1 -0
- package/dist/cjs/components/pagination/pagination-utils.cjs +50 -0
- package/dist/cjs/components/pagination/pagination-utils.d.cts +28 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +1 -1
- package/dist/{cjs-dev/components/progress-bar/daikin-progress-bar.d.ts → cjs/components/progress-bar/daikin-progress-bar.d.cts} +1 -1
- package/dist/cjs/components/progress-bar/index.d.cts +1 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +75 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +47 -0
- package/dist/cjs/components/progress-indicator/index.cjs +7 -0
- package/dist/cjs/components/progress-indicator/index.d.cts +1 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +84 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +41 -0
- package/dist/cjs/components/progress-indicator-item/index.cjs +7 -0
- package/dist/cjs/components/progress-indicator-item/index.d.cts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +39 -18
- package/dist/cjs/components/radio/{daikin-radio.d.ts → daikin-radio.d.cts} +18 -4
- package/dist/cjs/components/radio/index.d.cts +1 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +145 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +82 -0
- package/dist/cjs/components/radio-group/index.cjs +7 -0
- package/dist/cjs/components/radio-group/index.d.cts +1 -0
- package/dist/cjs/components/select/daikin-select.cjs +168 -0
- package/dist/cjs/components/select/daikin-select.d.cts +65 -0
- package/dist/cjs/components/select/index.cjs +7 -0
- package/dist/cjs/components/select/index.d.cts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +27 -22
- package/dist/cjs/components/tab/index.d.cts +1 -0
- package/dist/{cjs-dev/components/tab-panels/daikin-tab-panels.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.cts} +4 -4
- package/dist/cjs/components/tab-panels/index.d.cts +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +248 -0
- package/dist/cjs/components/table/daikin-table.d.cts +130 -0
- package/dist/cjs/components/table/index.cjs +7 -0
- package/dist/cjs/components/table/index.d.cts +1 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +68 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +41 -0
- package/dist/cjs/components/table-cell/index.cjs +7 -0
- package/dist/cjs/components/table-cell/index.d.cts +1 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +93 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +50 -0
- package/dist/cjs/components/table-header-cell/index.cjs +7 -0
- package/dist/cjs/components/table-header-cell/index.d.cts +1 -0
- package/dist/cjs/components/tabs/daikin-tabs.cjs +6 -1
- package/dist/{cjs-dev/components/tabs/daikin-tabs.d.ts → cjs/components/tabs/daikin-tabs.d.cts} +1 -5
- package/dist/cjs/components/tabs/index.d.cts +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +164 -0
- package/dist/{cjs-dev/components/textarea/daikin-textarea.d.ts → cjs/components/text-area/daikin-text-area.d.cts} +31 -24
- package/dist/cjs/components/text-area/index.cjs +7 -0
- package/dist/cjs/components/text-area/index.d.cts +1 -0
- package/dist/cjs/components/text-field/daikin-text-field.cjs +222 -0
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +94 -0
- package/dist/cjs/components/text-field/index.cjs +7 -0
- package/dist/cjs/components/text-field/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +13 -13
- package/dist/cjs/components/toggle/{daikin-toggle.d.ts → daikin-toggle.d.cts} +3 -3
- package/dist/cjs/components/toggle/index.d.cts +1 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +77 -113
- package/dist/cjs/components/tooltip/{daikin-tooltip.d.ts → daikin-tooltip.d.cts} +21 -21
- package/dist/cjs/components/tooltip/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.cjs +29 -0
- package/dist/cjs/controllers/click-outside.d.cts +37 -0
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +81 -0
- package/dist/cjs/controllers/floating-ui-auto-update.d.cts +24 -0
- package/dist/cjs/controllers/helpers/controller-directive.cjs +50 -0
- package/dist/cjs/controllers/helpers/controller-directive.d.cts +12 -0
- package/dist/cjs/index.cjs +61 -6
- package/dist/cjs/index.d.cts +3 -0
- package/dist/cjs/tailwind.css.cjs +1 -2
- package/dist/cjs/utils/re-dispatch.cjs +10 -0
- package/dist/cjs/utils/re-dispatch.d.cts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +4 -11
- package/dist/cjs-dev/components/accordion/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +15 -14
- package/dist/cjs-dev/components/accordion-item/{daikin-accordion-item.d.ts → daikin-accordion-item.d.cts} +1 -1
- package/dist/cjs-dev/components/accordion-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -5
- package/dist/cjs-dev/components/breadcrumb-item/{daikin-breadcrumb-item.d.ts → daikin-breadcrumb-item.d.cts} +1 -6
- package/dist/cjs-dev/components/breadcrumb-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +30 -24
- package/dist/{cjs/components/button/daikin-button.d.ts → cjs-dev/components/button/daikin-button.d.cts} +3 -3
- package/dist/cjs-dev/components/button/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +36 -35
- package/dist/{cjs/components/checkbox/daikin-checkbox.d.ts → cjs-dev/components/checkbox/daikin-checkbox.d.cts} +4 -4
- package/dist/cjs-dev/components/checkbox/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +367 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +100 -0
- package/dist/cjs-dev/components/dropdown/index.cjs +7 -0
- package/dist/cjs-dev/components/dropdown/index.d.cts +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.cts +42 -0
- package/dist/cjs-dev/components/dropdown-item/index.cjs +7 -0
- package/dist/cjs-dev/components/dropdown-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +20 -16
- package/dist/{cjs/components/icon/daikin-icon.d.ts → cjs-dev/components/icon/daikin-icon.d.cts} +8 -6
- package/dist/cjs-dev/components/icon/icons.json.cjs +30 -6
- package/dist/cjs-dev/components/icon/{icons.json.d.ts → icons.json.d.cts} +30 -6
- package/dist/cjs-dev/components/icon/index.d.cts +1 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +165 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +82 -0
- package/dist/cjs-dev/components/icon-button/index.cjs +7 -0
- package/dist/cjs-dev/components/icon-button/index.d.cts +1 -0
- package/dist/cjs-dev/components/index.cjs +61 -6
- package/dist/cjs-dev/components/index.d.cts +31 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +103 -46
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +131 -0
- package/dist/cjs-dev/components/input-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/link/daikin-link.cjs +107 -0
- package/dist/cjs-dev/components/link/daikin-link.d.cts +43 -0
- package/dist/cjs-dev/components/link/index.cjs +7 -0
- package/dist/cjs-dev/components/link/index.d.cts +1 -0
- package/dist/cjs-dev/components/list/index.d.cts +1 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +36 -13
- package/dist/cjs-dev/components/list-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +31 -24
- package/dist/{cjs/components/notification/daikin-notification.d.ts → cjs-dev/components/notification/daikin-notification.d.cts} +7 -7
- package/dist/cjs-dev/components/notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +215 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +39 -0
- package/dist/cjs-dev/components/pagination/index.cjs +7 -0
- package/dist/cjs-dev/components/pagination/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/pagination-utils.cjs +50 -0
- package/dist/cjs-dev/components/pagination/pagination-utils.d.cts +28 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +1 -1
- package/dist/{cjs/components/progress-bar/daikin-progress-bar.d.ts → cjs-dev/components/progress-bar/daikin-progress-bar.d.cts} +1 -1
- package/dist/cjs-dev/components/progress-bar/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +85 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +47 -0
- package/dist/cjs-dev/components/progress-indicator/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-indicator/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +84 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +41 -0
- package/dist/cjs-dev/components/progress-indicator-item/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-indicator-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +39 -18
- package/dist/cjs-dev/components/radio/{daikin-radio.d.ts → daikin-radio.d.cts} +18 -4
- package/dist/cjs-dev/components/radio/index.d.cts +1 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +145 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +82 -0
- package/dist/cjs-dev/components/radio-group/index.cjs +7 -0
- package/dist/cjs-dev/components/radio-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +168 -0
- package/dist/cjs-dev/components/select/daikin-select.d.cts +65 -0
- package/dist/cjs-dev/components/select/index.cjs +7 -0
- package/dist/cjs-dev/components/select/index.d.cts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +27 -22
- package/dist/cjs-dev/components/tab/index.d.cts +1 -0
- package/dist/{cjs/components/tab-panels/daikin-tab-panels.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.cts} +4 -4
- package/dist/cjs-dev/components/tab-panels/index.d.cts +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +260 -0
- package/dist/cjs-dev/components/table/daikin-table.d.cts +130 -0
- package/dist/cjs-dev/components/table/index.cjs +7 -0
- package/dist/cjs-dev/components/table/index.d.cts +1 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +68 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +41 -0
- package/dist/cjs-dev/components/table-cell/index.cjs +7 -0
- package/dist/cjs-dev/components/table-cell/index.d.cts +1 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +93 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +50 -0
- package/dist/cjs-dev/components/table-header-cell/index.cjs +7 -0
- package/dist/cjs-dev/components/table-header-cell/index.d.cts +1 -0
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +6 -1
- package/dist/{cjs/components/tabs/daikin-tabs.d.ts → cjs-dev/components/tabs/daikin-tabs.d.cts} +1 -5
- package/dist/cjs-dev/components/tabs/index.d.cts +1 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +164 -0
- package/dist/{es/components/textarea/daikin-textarea.d.ts → cjs-dev/components/text-area/daikin-text-area.d.cts} +31 -24
- package/dist/cjs-dev/components/text-area/index.cjs +7 -0
- package/dist/cjs-dev/components/text-area/index.d.cts +1 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +222 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +94 -0
- package/dist/cjs-dev/components/text-field/index.cjs +7 -0
- package/dist/cjs-dev/components/text-field/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +13 -13
- package/dist/cjs-dev/components/toggle/{daikin-toggle.d.ts → daikin-toggle.d.cts} +3 -3
- package/dist/cjs-dev/components/toggle/index.d.cts +1 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +77 -113
- package/dist/cjs-dev/components/tooltip/{daikin-tooltip.d.ts → daikin-tooltip.d.cts} +21 -21
- package/dist/cjs-dev/components/tooltip/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.cjs +29 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +37 -0
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +88 -0
- package/dist/cjs-dev/controllers/floating-ui-auto-update.d.cts +24 -0
- package/dist/cjs-dev/controllers/helpers/controller-directive.cjs +50 -0
- package/dist/cjs-dev/controllers/helpers/controller-directive.d.cts +12 -0
- package/dist/cjs-dev/index.cjs +61 -6
- package/dist/cjs-dev/index.d.cts +3 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -2
- package/dist/cjs-dev/utils/re-dispatch.cjs +10 -0
- package/dist/cjs-dev/utils/re-dispatch.d.cts +1 -0
- package/dist/es/components/accordion/daikin-accordion.js +4 -11
- package/dist/es/components/accordion/index.d.ts +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +15 -14
- package/dist/es/components/accordion-item/index.d.ts +1 -1
- package/dist/es/components/breadcrumb/index.d.ts +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -6
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -5
- package/dist/es/components/breadcrumb-item/index.d.ts +1 -1
- package/dist/es/components/button/daikin-button.d.ts +3 -3
- package/dist/es/components/button/daikin-button.js +30 -24
- package/dist/es/components/button/index.d.ts +1 -1
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -4
- package/dist/es/components/checkbox/daikin-checkbox.js +36 -35
- package/dist/es/components/checkbox/index.d.ts +1 -1
- 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 +8 -6
- package/dist/es/components/icon/daikin-icon.js +20 -16
- package/dist/es/components/icon/icons.json.d.ts +30 -6
- package/dist/es/components/icon/icons.json.js +30 -6
- package/dist/es/components/icon/index.d.ts +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +82 -0
- package/dist/es/components/icon-button/daikin-icon-button.js +166 -0
- package/dist/es/components/icon-button/index.d.ts +1 -0
- package/dist/es/components/icon-button/index.js +4 -0
- package/dist/es/components/index.d.ts +31 -20
- package/dist/es/components/index.js +26 -4
- package/dist/es/components/input-group/daikin-input-group.d.ts +80 -27
- package/dist/es/components/input-group/daikin-input-group.js +105 -48
- package/dist/es/components/input-group/index.d.ts +1 -1
- package/dist/es/components/link/daikin-link.d.ts +43 -0
- package/dist/es/components/link/daikin-link.js +108 -0
- package/dist/es/components/link/index.d.ts +1 -0
- package/dist/es/components/link/index.js +4 -0
- package/dist/es/components/list/index.d.ts +1 -1
- package/dist/es/components/list-item/daikin-list-item.js +36 -13
- package/dist/es/components/list-item/index.d.ts +1 -1
- package/dist/es/components/notification/daikin-notification.d.ts +7 -7
- package/dist/es/components/notification/daikin-notification.js +31 -24
- package/dist/es/components/notification/index.d.ts +1 -1
- package/dist/es/components/pagination/daikin-pagination.d.ts +39 -0
- package/dist/es/components/pagination/daikin-pagination.js +216 -0
- package/dist/es/components/pagination/index.d.ts +1 -0
- package/dist/es/components/pagination/index.js +4 -0
- package/dist/es/components/pagination/pagination-utils.d.ts +28 -0
- package/dist/es/components/pagination/pagination-utils.js +50 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +1 -1
- package/dist/es/components/progress-bar/index.d.ts +1 -1
- 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 +41 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +85 -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 +18 -4
- package/dist/es/components/radio/daikin-radio.js +40 -19
- package/dist/es/components/radio/index.d.ts +1 -1
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +82 -0
- package/dist/es/components/radio-group/daikin-radio-group.js +146 -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 +65 -0
- package/dist/es/components/select/daikin-select.js +169 -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.js +27 -22
- package/dist/es/components/tab/index.d.ts +1 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +4 -4
- package/dist/es/components/tab-panels/index.d.ts +1 -1
- package/dist/es/components/table/daikin-table.d.ts +130 -0
- package/dist/es/components/table/daikin-table.js +249 -0
- package/dist/es/components/table/index.d.ts +1 -0
- package/dist/es/components/table/index.js +4 -0
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +41 -0
- package/dist/es/components/table-cell/daikin-table-cell.js +69 -0
- package/dist/es/components/table-cell/index.d.ts +1 -0
- package/dist/es/components/table-cell/index.js +4 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +50 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +94 -0
- package/dist/es/components/table-header-cell/index.d.ts +1 -0
- package/dist/es/components/table-header-cell/index.js +4 -0
- package/dist/es/components/tabs/daikin-tabs.d.ts +1 -5
- package/dist/es/components/tabs/daikin-tabs.js +6 -1
- package/dist/es/components/tabs/index.d.ts +1 -1
- package/dist/{cjs/components/textarea/daikin-textarea.d.ts → es/components/text-area/daikin-text-area.d.ts} +31 -24
- 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 +223 -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 +3 -3
- package/dist/es/components/toggle/daikin-toggle.js +13 -13
- package/dist/es/components/toggle/index.d.ts +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +21 -21
- package/dist/es/components/tooltip/daikin-tooltip.js +78 -114
- package/dist/es/components/tooltip/index.d.ts +1 -1
- 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 +24 -0
- package/dist/es/controllers/floating-ui-auto-update.js +81 -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.d.ts +3 -3
- package/dist/es/index.js +26 -4
- package/dist/es/tailwind.css.js +1 -2
- package/dist/es/utils/re-dispatch.d.ts +1 -0
- package/dist/es/utils/re-dispatch.js +10 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +4 -11
- package/dist/es-dev/components/accordion/index.d.ts +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +15 -14
- package/dist/es-dev/components/accordion-item/index.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb/index.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -6
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -5
- package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +3 -3
- package/dist/es-dev/components/button/daikin-button.js +30 -24
- package/dist/es-dev/components/button/index.d.ts +1 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -4
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +36 -35
- package/dist/es-dev/components/checkbox/index.d.ts +1 -1
- 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 +8 -6
- package/dist/es-dev/components/icon/daikin-icon.js +20 -16
- package/dist/es-dev/components/icon/icons.json.d.ts +30 -6
- package/dist/es-dev/components/icon/icons.json.js +30 -6
- package/dist/es-dev/components/icon/index.d.ts +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +82 -0
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +166 -0
- package/dist/es-dev/components/icon-button/index.d.ts +1 -0
- package/dist/es-dev/components/icon-button/index.js +4 -0
- package/dist/es-dev/components/index.d.ts +31 -20
- package/dist/es-dev/components/index.js +26 -4
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +80 -27
- package/dist/es-dev/components/input-group/daikin-input-group.js +105 -48
- package/dist/es-dev/components/input-group/index.d.ts +1 -1
- package/dist/es-dev/components/link/daikin-link.d.ts +43 -0
- package/dist/es-dev/components/link/daikin-link.js +108 -0
- package/dist/es-dev/components/link/index.d.ts +1 -0
- package/dist/es-dev/components/link/index.js +4 -0
- package/dist/es-dev/components/list/index.d.ts +1 -1
- package/dist/es-dev/components/list-item/daikin-list-item.js +36 -13
- package/dist/es-dev/components/list-item/index.d.ts +1 -1
- package/dist/es-dev/components/notification/daikin-notification.d.ts +7 -7
- package/dist/es-dev/components/notification/daikin-notification.js +31 -24
- package/dist/es-dev/components/notification/index.d.ts +1 -1
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +39 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +216 -0
- package/dist/es-dev/components/pagination/index.d.ts +1 -0
- package/dist/es-dev/components/pagination/index.js +4 -0
- package/dist/es-dev/components/pagination/pagination-utils.d.ts +28 -0
- package/dist/es-dev/components/pagination/pagination-utils.js +50 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +1 -1
- package/dist/es-dev/components/progress-bar/index.d.ts +1 -1
- 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 +41 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +85 -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 +18 -4
- package/dist/es-dev/components/radio/daikin-radio.js +40 -19
- package/dist/es-dev/components/radio/index.d.ts +1 -1
- 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 +146 -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 +65 -0
- package/dist/es-dev/components/select/daikin-select.js +169 -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.js +27 -22
- package/dist/es-dev/components/tab/index.d.ts +1 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +4 -4
- package/dist/es-dev/components/tab-panels/index.d.ts +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +130 -0
- package/dist/es-dev/components/table/daikin-table.js +261 -0
- package/dist/es-dev/components/table/index.d.ts +1 -0
- package/dist/es-dev/components/table/index.js +4 -0
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +41 -0
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +69 -0
- package/dist/es-dev/components/table-cell/index.d.ts +1 -0
- package/dist/es-dev/components/table-cell/index.js +4 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +50 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +94 -0
- package/dist/es-dev/components/table-header-cell/index.d.ts +1 -0
- package/dist/es-dev/components/table-header-cell/index.js +4 -0
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +1 -5
- package/dist/es-dev/components/tabs/daikin-tabs.js +6 -1
- package/dist/es-dev/components/tabs/index.d.ts +1 -1
- package/dist/es-dev/components/{textarea/daikin-textarea.d.ts → text-area/daikin-text-area.d.ts} +31 -24
- 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 +223 -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 +3 -3
- package/dist/es-dev/components/toggle/daikin-toggle.js +13 -13
- package/dist/es-dev/components/toggle/index.d.ts +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +21 -21
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +78 -114
- package/dist/es-dev/components/tooltip/index.d.ts +1 -1
- 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 +24 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +88 -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.d.ts +3 -3
- package/dist/es-dev/index.js +26 -4
- package/dist/es-dev/tailwind.css.js +1 -2
- package/dist/es-dev/utils/re-dispatch.d.ts +1 -0
- package/dist/es-dev/utils/re-dispatch.js +10 -0
- package/icons/arrow-up.svg +3 -0
- package/icons/cross.svg +3 -0
- package/icons/dropdown-check.svg +3 -0
- package/icons/dropdown-chevron-down.svg +3 -0
- package/icons/pagination-chevron-left.svg +3 -0
- package/icons/pagination-chevron-right.svg +3 -0
- package/icons/required.svg +3 -0
- package/icons/sort.svg +3 -0
- package/icons/status-error.svg +1 -1
- package/icons/{notification-status-negative.svg → status-negative.svg} +1 -1
- package/icons/status-positive.svg +4 -14
- package/icons/status-success.svg +6 -0
- package/package.json +55 -56
- package/dist/cjs/components/accordion/index.d.ts +0 -1
- package/dist/cjs/components/accordion-item/index.d.ts +0 -1
- package/dist/cjs/components/breadcrumb/index.d.ts +0 -1
- package/dist/cjs/components/breadcrumb-item/index.d.ts +0 -1
- package/dist/cjs/components/button/index.d.ts +0 -1
- package/dist/cjs/components/checkbox/index.d.ts +0 -1
- package/dist/cjs/components/icon/index.d.ts +0 -1
- package/dist/cjs/components/index.d.ts +0 -20
- package/dist/cjs/components/input-group/daikin-input-group.d.ts +0 -78
- package/dist/cjs/components/input-group/index.d.ts +0 -1
- package/dist/cjs/components/list/index.d.ts +0 -1
- package/dist/cjs/components/list-item/index.d.ts +0 -1
- package/dist/cjs/components/notification/index.d.ts +0 -1
- package/dist/cjs/components/progress-bar/index.d.ts +0 -1
- package/dist/cjs/components/radio/index.d.ts +0 -1
- package/dist/cjs/components/tab/index.d.ts +0 -1
- package/dist/cjs/components/tab-panels/index.d.ts +0 -1
- package/dist/cjs/components/tabs/index.d.ts +0 -1
- package/dist/cjs/components/text-input/daikin-text-input.cjs +0 -138
- package/dist/cjs/components/text-input/daikin-text-input.d.ts +0 -73
- 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/index.cjs +0 -7
- package/dist/cjs/components/textarea/index.d.ts +0 -1
- package/dist/cjs/components/toggle/index.d.ts +0 -1
- package/dist/cjs/components/tooltip/index.d.ts +0 -1
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs-dev/components/accordion/index.d.ts +0 -1
- package/dist/cjs-dev/components/accordion-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/breadcrumb/index.d.ts +0 -1
- package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/button/index.d.ts +0 -1
- package/dist/cjs-dev/components/checkbox/index.d.ts +0 -1
- package/dist/cjs-dev/components/icon/index.d.ts +0 -1
- package/dist/cjs-dev/components/index.d.ts +0 -20
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +0 -78
- package/dist/cjs-dev/components/input-group/index.d.ts +0 -1
- package/dist/cjs-dev/components/list/index.d.ts +0 -1
- package/dist/cjs-dev/components/list-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/notification/index.d.ts +0 -1
- package/dist/cjs-dev/components/progress-bar/index.d.ts +0 -1
- package/dist/cjs-dev/components/radio/index.d.ts +0 -1
- package/dist/cjs-dev/components/tab/index.d.ts +0 -1
- package/dist/cjs-dev/components/tab-panels/index.d.ts +0 -1
- package/dist/cjs-dev/components/tabs/index.d.ts +0 -1
- package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +0 -138
- package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +0 -73
- 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/index.cjs +0 -7
- package/dist/cjs-dev/components/textarea/index.d.ts +0 -1
- package/dist/cjs-dev/components/toggle/index.d.ts +0 -1
- package/dist/cjs-dev/components/tooltip/index.d.ts +0 -1
- package/dist/cjs-dev/index.d.ts +0 -3
- package/dist/es/components/text-input/daikin-text-input.d.ts +0 -73
- package/dist/es/components/text-input/daikin-text-input.js +0 -139
- 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.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/text-input/daikin-text-input.d.ts +0 -73
- package/dist/es-dev/components/text-input/daikin-text-input.js +0 -139
- 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.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/notification-status-positive.svg +0 -5
- /package/dist/cjs/{colors.d.ts → colors.d.cts} +0 -0
- /package/dist/cjs/components/accordion/{daikin-accordion.d.ts → daikin-accordion.d.cts} +0 -0
- /package/dist/cjs/components/breadcrumb/{daikin-breadcrumb.d.ts → daikin-breadcrumb.d.cts} +0 -0
- /package/dist/cjs/components/list/{daikin-list.d.ts → daikin-list.d.cts} +0 -0
- /package/dist/cjs/components/list-item/{daikin-list-item.d.ts → daikin-list-item.d.cts} +0 -0
- /package/dist/cjs/components/tab/{daikin-tab.d.ts → daikin-tab.d.cts} +0 -0
- /package/dist/cjs/components/tabs/{scroller.d.ts → scroller.d.cts} +0 -0
- /package/dist/cjs/constants/{events.d.ts → events.d.cts} +0 -0
- /package/dist/cjs/{is-client.d.ts → is-client.d.cts} +0 -0
- /package/dist/cjs/{lit-analyzer-types.d.ts → lit-analyzer-types.d.cts} +0 -0
- /package/dist/cjs/{type-utils.d.ts → type-utils.d.cts} +0 -0
- /package/dist/cjs-dev/{colors.d.ts → colors.d.cts} +0 -0
- /package/dist/cjs-dev/components/accordion/{daikin-accordion.d.ts → daikin-accordion.d.cts} +0 -0
- /package/dist/cjs-dev/components/breadcrumb/{daikin-breadcrumb.d.ts → daikin-breadcrumb.d.cts} +0 -0
- /package/dist/cjs-dev/components/list/{daikin-list.d.ts → daikin-list.d.cts} +0 -0
- /package/dist/cjs-dev/components/list-item/{daikin-list-item.d.ts → daikin-list-item.d.cts} +0 -0
- /package/dist/cjs-dev/components/tab/{daikin-tab.d.ts → daikin-tab.d.cts} +0 -0
- /package/dist/cjs-dev/components/tabs/{scroller.d.ts → scroller.d.cts} +0 -0
- /package/dist/cjs-dev/constants/{events.d.ts → events.d.cts} +0 -0
- /package/dist/cjs-dev/{is-client.d.ts → is-client.d.cts} +0 -0
- /package/dist/cjs-dev/{lit-analyzer-types.d.ts → lit-analyzer-types.d.cts} +0 -0
- /package/dist/cjs-dev/{type-utils.d.ts → type-utils.d.cts} +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
package/dist/es-dev/components/{textarea/daikin-textarea.d.ts → text-area/daikin-text-area.d.ts}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { DaikinInputGroup } from "../input-group/index.js";
|
|
2
3
|
/**
|
|
3
|
-
* The
|
|
4
|
+
* The text area component is designed for multiline text input, similar to the HTML `<textarea>` tag.
|
|
4
5
|
* It is ideal for situations where users need to enter longer pieces of text, such as comments, descriptions, or messages.
|
|
5
6
|
* Can be used within `daikin-input-group` component.
|
|
6
7
|
*
|
|
7
8
|
* Hierarchies:
|
|
8
|
-
* - `daikin-
|
|
9
|
-
* - `daikin-input-group` > `daikin-
|
|
9
|
+
* - `daikin-text-area` (can be used solely)
|
|
10
|
+
* - `daikin-input-group` > `daikin-text-area`
|
|
10
11
|
*
|
|
11
12
|
* @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
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
@@ -14,62 +15,68 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
14
15
|
* @example
|
|
15
16
|
*
|
|
16
17
|
* ```js
|
|
17
|
-
* import "@daikin-oss/design-system-web-components/components/
|
|
18
|
+
* import "@daikin-oss/design-system-web-components/components/text-area/index.js";
|
|
18
19
|
* ```
|
|
19
20
|
*
|
|
20
21
|
* ```html
|
|
21
22
|
* <!-- See `daikin-input-group` component for complete example. -->
|
|
22
|
-
* <daikin-
|
|
23
|
+
* <daikin-text-area name="name"></daikin-text-area>
|
|
23
24
|
* ```
|
|
24
25
|
*/
|
|
25
|
-
export declare class
|
|
26
|
+
export declare class DaikinTextArea extends LitElement {
|
|
26
27
|
static readonly styles: import('lit').CSSResult;
|
|
27
28
|
static readonly formAssociated = true;
|
|
28
29
|
private _internals;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* The current value of the input, submitted as a name/value pair with form data.
|
|
31
32
|
*/
|
|
32
33
|
value: string;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* The name of the input, submitted as a name/value pair with form data.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
name: string;
|
|
37
38
|
/**
|
|
38
|
-
*
|
|
39
|
+
* Placeholder text.
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
placeholder: string | null;
|
|
41
42
|
/**
|
|
42
|
-
* Whether the
|
|
43
|
+
* Whether the text area is disabled.
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
disabled: boolean;
|
|
45
46
|
/**
|
|
46
|
-
* Whether the
|
|
47
|
+
* Whether the text area is readonly.
|
|
47
48
|
*/
|
|
48
49
|
readonly: boolean;
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* Whether the text area is required.
|
|
52
|
+
*/
|
|
53
|
+
required: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Error state. Ignored if the `disabled` is `true`.
|
|
51
56
|
*/
|
|
52
|
-
|
|
57
|
+
error: boolean;
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
59
|
+
* Value of `autocomplete` attribute of the internal `<textarea>`.
|
|
55
60
|
*/
|
|
56
61
|
autocomplete?: HTMLInputElement["autocomplete"];
|
|
57
62
|
/**
|
|
58
|
-
*
|
|
63
|
+
* Whether to allow resizing of the text area.
|
|
59
64
|
*/
|
|
60
|
-
|
|
65
|
+
resizable: boolean;
|
|
61
66
|
/**
|
|
62
|
-
*
|
|
67
|
+
* The label text used as the value of aria-label.
|
|
68
|
+
* Set automatically by `reflectInputGroup` method.
|
|
63
69
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
private
|
|
70
|
+
private _label;
|
|
71
|
+
get count(): number;
|
|
72
|
+
private _updateValue;
|
|
67
73
|
private _handleInput;
|
|
68
74
|
render(): import('lit-html').TemplateResult<1>;
|
|
69
75
|
updated(changedProperties: PropertyValues<this>): void;
|
|
76
|
+
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
70
77
|
}
|
|
71
78
|
declare global {
|
|
72
79
|
interface HTMLElementTagNameMap {
|
|
73
|
-
"daikin-
|
|
80
|
+
"daikin-text-area": DaikinTextArea;
|
|
74
81
|
}
|
|
75
82
|
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result) __defProp(target, key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
const cvaTextArea = cva(
|
|
17
|
+
[
|
|
18
|
+
"w-full",
|
|
19
|
+
"h-full",
|
|
20
|
+
"px-4",
|
|
21
|
+
"py-3",
|
|
22
|
+
"rounded",
|
|
23
|
+
"font-daikinSerif",
|
|
24
|
+
"outline",
|
|
25
|
+
"outline-[--color-border]",
|
|
26
|
+
"outline-0",
|
|
27
|
+
"-outline-offset-2",
|
|
28
|
+
"placeholder:text-system-element-text-secondary",
|
|
29
|
+
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
30
|
+
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
31
|
+
"define-[--color-state-active,--color-state-focus,--color-base]/color-border",
|
|
32
|
+
"border",
|
|
33
|
+
"border-[--color-border]",
|
|
34
|
+
// Update `--color-base` depending on the state.
|
|
35
|
+
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
36
|
+
"enabled:text-system-element-text-primary",
|
|
37
|
+
"enabled:hover:bg-system-background-surface-hover",
|
|
38
|
+
"enabled:active:bg-system-background-surface-press",
|
|
39
|
+
"focus-visible:outline-2",
|
|
40
|
+
"disabled:var-color-system-state-disabled/color-base",
|
|
41
|
+
"disabled:text-system-state-disabled",
|
|
42
|
+
"disabled:bg-white",
|
|
43
|
+
"disabled:placeholder:text-system-state-disabled"
|
|
44
|
+
],
|
|
45
|
+
{
|
|
46
|
+
variants: {
|
|
47
|
+
error: {
|
|
48
|
+
false: [
|
|
49
|
+
"enabled:var-color-system-state-neutral-active/color-base",
|
|
50
|
+
"focus-visible:var-color-system-state-focus/color-state-focus"
|
|
51
|
+
],
|
|
52
|
+
true: ["enabled:var-color-system-state-error-active/color-base"]
|
|
53
|
+
},
|
|
54
|
+
resize: {
|
|
55
|
+
false: ["resize-none"],
|
|
56
|
+
true: ["resize-vertical"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
let DaikinTextArea = class extends LitElement {
|
|
62
|
+
constructor() {
|
|
63
|
+
super(...arguments);
|
|
64
|
+
this._internals = this.attachInternals();
|
|
65
|
+
this.value = "";
|
|
66
|
+
this.name = "";
|
|
67
|
+
this.placeholder = null;
|
|
68
|
+
this.disabled = false;
|
|
69
|
+
this.readonly = false;
|
|
70
|
+
this.required = false;
|
|
71
|
+
this.error = false;
|
|
72
|
+
this.resizable = false;
|
|
73
|
+
this._label = null;
|
|
74
|
+
}
|
|
75
|
+
get count() {
|
|
76
|
+
return this.value.length;
|
|
77
|
+
}
|
|
78
|
+
_updateValue(value) {
|
|
79
|
+
this._internals.setFormValue(value);
|
|
80
|
+
}
|
|
81
|
+
_handleInput(e) {
|
|
82
|
+
this.value = e.target.value;
|
|
83
|
+
this._updateValue(this.value);
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return html`<textarea
|
|
87
|
+
class=${cvaTextArea({
|
|
88
|
+
error: !this.disabled && this.error,
|
|
89
|
+
resize: this.resizable
|
|
90
|
+
})}
|
|
91
|
+
placeholder=${ifDefined(this.placeholder ?? void 0)}
|
|
92
|
+
name=${this.name}
|
|
93
|
+
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
94
|
+
ifDefined(this.autocomplete)}
|
|
95
|
+
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
96
|
+
ifDefined(this._label)}
|
|
97
|
+
.value=${this.value}
|
|
98
|
+
?disabled=${this.disabled}
|
|
99
|
+
?readonly=${this.readonly}
|
|
100
|
+
?required=${this.required}
|
|
101
|
+
@change=${(e) => this.dispatchEvent(new Event("change", e))}
|
|
102
|
+
@input=${this._handleInput}
|
|
103
|
+
@keydown=${this._handleInput}
|
|
104
|
+
></textarea>`;
|
|
105
|
+
}
|
|
106
|
+
updated(changedProperties) {
|
|
107
|
+
if (!changedProperties.has("value")) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
this._updateValue(this.value);
|
|
111
|
+
}
|
|
112
|
+
reflectInputGroup(inputGroup) {
|
|
113
|
+
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
114
|
+
this.disabled = !!inputGroup.disabled;
|
|
115
|
+
this.required = !!inputGroup.required;
|
|
116
|
+
this.error = isError;
|
|
117
|
+
this._label = inputGroup.label;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
DaikinTextArea.styles = css`
|
|
121
|
+
${unsafeCSS(tailwindStyles)}
|
|
122
|
+
|
|
123
|
+
:host {
|
|
124
|
+
display: block;
|
|
125
|
+
height: 5.5rem;
|
|
126
|
+
position: relative;
|
|
127
|
+
}
|
|
128
|
+
`;
|
|
129
|
+
DaikinTextArea.formAssociated = true;
|
|
130
|
+
__decorateClass([
|
|
131
|
+
property({ type: String })
|
|
132
|
+
], DaikinTextArea.prototype, "value", 2);
|
|
133
|
+
__decorateClass([
|
|
134
|
+
property({ type: String, reflect: true })
|
|
135
|
+
], DaikinTextArea.prototype, "name", 2);
|
|
136
|
+
__decorateClass([
|
|
137
|
+
property({ type: String, reflect: true })
|
|
138
|
+
], DaikinTextArea.prototype, "placeholder", 2);
|
|
139
|
+
__decorateClass([
|
|
140
|
+
property({ type: Boolean, reflect: true })
|
|
141
|
+
], DaikinTextArea.prototype, "disabled", 2);
|
|
142
|
+
__decorateClass([
|
|
143
|
+
property({ type: Boolean, reflect: true })
|
|
144
|
+
], DaikinTextArea.prototype, "readonly", 2);
|
|
145
|
+
__decorateClass([
|
|
146
|
+
property({ type: Boolean, reflect: true })
|
|
147
|
+
], DaikinTextArea.prototype, "required", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
property({ type: Boolean, reflect: true })
|
|
150
|
+
], DaikinTextArea.prototype, "error", 2);
|
|
151
|
+
__decorateClass([
|
|
152
|
+
property({ type: String, reflect: true })
|
|
153
|
+
], DaikinTextArea.prototype, "autocomplete", 2);
|
|
154
|
+
__decorateClass([
|
|
155
|
+
property({ type: Boolean, reflect: true })
|
|
156
|
+
], DaikinTextArea.prototype, "resizable", 2);
|
|
157
|
+
__decorateClass([
|
|
158
|
+
state()
|
|
159
|
+
], DaikinTextArea.prototype, "_label", 2);
|
|
160
|
+
DaikinTextArea = __decorateClass([
|
|
161
|
+
customElement("daikin-text-area")
|
|
162
|
+
], DaikinTextArea);
|
|
163
|
+
export {
|
|
164
|
+
DaikinTextArea
|
|
165
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-text-area.js";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { DaikinInputGroup } from "../input-group/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* The text field component is a UI element that allows users to input single-line text data.
|
|
5
|
+
* 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.
|
|
6
|
+
* Can be used within `daikin-input-group` component.
|
|
7
|
+
*
|
|
8
|
+
* Hierarchies:
|
|
9
|
+
* - `daikin-text-field` (can be used solely)
|
|
10
|
+
* - `daikin-input-group` > `daikin-text-field`
|
|
11
|
+
*
|
|
12
|
+
* @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.
|
|
13
|
+
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
14
|
+
*
|
|
15
|
+
* @slot left-icon - Specify the icon you want to use on the left. You can also use something other than `daikin-icon`.
|
|
16
|
+
* @slot right-icon - Specify the icon you want to use on the right. You can also use something other than `daikin-icon`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/text-field/index.js";
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ```html
|
|
25
|
+
* <!-- See `daikin-input-group` component for complete example. -->
|
|
26
|
+
* <daikin-text-field name="name"></daikin-text-field>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class DaikinTextField extends LitElement {
|
|
30
|
+
static readonly styles: import('lit').CSSResult;
|
|
31
|
+
static readonly formAssociated = true;
|
|
32
|
+
private _internals;
|
|
33
|
+
/**
|
|
34
|
+
* Type of field.
|
|
35
|
+
*/
|
|
36
|
+
type: "text" | "email" | "tel" | "search";
|
|
37
|
+
/**
|
|
38
|
+
* The current value of the input, submitted as a name/value pair with form data.
|
|
39
|
+
*/
|
|
40
|
+
value: string;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the input, submitted as a name/value pair with form data.
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text.
|
|
47
|
+
*/
|
|
48
|
+
placeholder: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the text field is readonly.
|
|
51
|
+
*/
|
|
52
|
+
readonly: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the text field is disabled.
|
|
55
|
+
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
56
|
+
*/
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the text field is required.
|
|
60
|
+
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
61
|
+
*/
|
|
62
|
+
required: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether or not to display error states.
|
|
65
|
+
* Ignored if the `disabled` is `true`.
|
|
66
|
+
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
67
|
+
*/
|
|
68
|
+
error: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum length of value.
|
|
71
|
+
*/
|
|
72
|
+
maxlength?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Value of `autocomplete` attribute of the internal `<input>`.
|
|
75
|
+
*/
|
|
76
|
+
autocomplete?: HTMLInputElement["autocomplete"];
|
|
77
|
+
/**
|
|
78
|
+
* The label text used as the value of aria-label.
|
|
79
|
+
* Set automatically by `reflectInputGroup` method.
|
|
80
|
+
*/
|
|
81
|
+
private _label;
|
|
82
|
+
private _hasLeftIcon;
|
|
83
|
+
private _hasRightIcon;
|
|
84
|
+
private _handleSlotChange;
|
|
85
|
+
private _handleInput;
|
|
86
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
87
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
88
|
+
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
89
|
+
}
|
|
90
|
+
declare global {
|
|
91
|
+
interface HTMLElementTagNameMap {
|
|
92
|
+
"daikin-text-field": DaikinTextField;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result) __defProp(target, key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
const cvaInput = cva(
|
|
17
|
+
[
|
|
18
|
+
"flex",
|
|
19
|
+
"items-center",
|
|
20
|
+
"w-full",
|
|
21
|
+
"h-full",
|
|
22
|
+
"relative",
|
|
23
|
+
"px-2",
|
|
24
|
+
"rounded",
|
|
25
|
+
"overflow-hidden",
|
|
26
|
+
"font-daikinSerif",
|
|
27
|
+
"outline",
|
|
28
|
+
"outline-[--color-border]",
|
|
29
|
+
"outline-0",
|
|
30
|
+
"-outline-offset-2",
|
|
31
|
+
"placeholder:text-system-element-text-secondary",
|
|
32
|
+
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
33
|
+
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
34
|
+
"define-[--color-state-focus,--color-base]/color-border",
|
|
35
|
+
"border",
|
|
36
|
+
"border-[--color-border]",
|
|
37
|
+
// Update `--color-base` depending on the state.
|
|
38
|
+
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
39
|
+
"enabled:text-system-element-text-primary",
|
|
40
|
+
"enabled:hover:bg-system-background-surface-hover",
|
|
41
|
+
"enabled:active:bg-system-background-surface-press",
|
|
42
|
+
"focus-visible:outline-2",
|
|
43
|
+
"disabled:var-color-system-state-disabled/color-base",
|
|
44
|
+
"disabled:text-system-state-disabled",
|
|
45
|
+
"disabled:bg-white",
|
|
46
|
+
"disabled:placeholder:text-system-state-disabled"
|
|
47
|
+
],
|
|
48
|
+
{
|
|
49
|
+
variants: {
|
|
50
|
+
error: {
|
|
51
|
+
false: [
|
|
52
|
+
"enabled:var-color-system-state-neutral-active/color-base",
|
|
53
|
+
"focus-visible:var-color-system-state-focus/color-state-focus"
|
|
54
|
+
],
|
|
55
|
+
true: ["enabled:var-color-system-state-error-active/color-base"]
|
|
56
|
+
},
|
|
57
|
+
leftIcon: {
|
|
58
|
+
false: ["pl-4"],
|
|
59
|
+
true: ["pl-11"]
|
|
60
|
+
},
|
|
61
|
+
rightIcon: {
|
|
62
|
+
false: ["pr-4"],
|
|
63
|
+
true: ["pr-11"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
const cvaIcon = cva(
|
|
69
|
+
["flex", "items-center", "absolute", "pointer-events-none"],
|
|
70
|
+
{
|
|
71
|
+
variants: {
|
|
72
|
+
icon: {
|
|
73
|
+
left: "left-3",
|
|
74
|
+
right: "right-3"
|
|
75
|
+
},
|
|
76
|
+
disabled: {
|
|
77
|
+
false: ["text-system-element-text-primary"],
|
|
78
|
+
true: ["text-system-state-disabled"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
let DaikinTextField = class extends LitElement {
|
|
84
|
+
constructor() {
|
|
85
|
+
super(...arguments);
|
|
86
|
+
this._internals = this.attachInternals();
|
|
87
|
+
this.type = "text";
|
|
88
|
+
this.value = "";
|
|
89
|
+
this.name = "";
|
|
90
|
+
this.placeholder = null;
|
|
91
|
+
this.readonly = false;
|
|
92
|
+
this.disabled = false;
|
|
93
|
+
this.required = false;
|
|
94
|
+
this.error = false;
|
|
95
|
+
this._label = null;
|
|
96
|
+
this._hasLeftIcon = false;
|
|
97
|
+
this._hasRightIcon = false;
|
|
98
|
+
}
|
|
99
|
+
_handleSlotChange(event) {
|
|
100
|
+
const target = event.target;
|
|
101
|
+
const name = target.name;
|
|
102
|
+
const hasIcon = !!target.assignedNodes().length;
|
|
103
|
+
switch (name) {
|
|
104
|
+
case "left-icon":
|
|
105
|
+
this._hasLeftIcon = hasIcon;
|
|
106
|
+
break;
|
|
107
|
+
case "right-icon":
|
|
108
|
+
this._hasRightIcon = hasIcon;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
_handleInput(e) {
|
|
113
|
+
this.value = e.target.value;
|
|
114
|
+
this._internals.setFormValue(this.value);
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
const isError = !this.disabled && this.error;
|
|
118
|
+
return html`<input
|
|
119
|
+
class=${cvaInput({
|
|
120
|
+
error: isError,
|
|
121
|
+
leftIcon: this._hasLeftIcon,
|
|
122
|
+
rightIcon: this._hasRightIcon
|
|
123
|
+
})}
|
|
124
|
+
type=${this.type}
|
|
125
|
+
placeholder=${ifDefined(this.placeholder ?? void 0)}
|
|
126
|
+
name=${ifDefined(this.name)}
|
|
127
|
+
maxlength=${ifDefined(this.maxlength)}
|
|
128
|
+
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
129
|
+
ifDefined(this.autocomplete)}
|
|
130
|
+
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
131
|
+
ifDefined(this._label)}
|
|
132
|
+
.value=${this.value}
|
|
133
|
+
?disabled=${this.disabled}
|
|
134
|
+
?readonly=${this.readonly}
|
|
135
|
+
?required=${this.required}
|
|
136
|
+
@change=${(e) => this.dispatchEvent(new Event("change", e))}
|
|
137
|
+
@input=${this._handleInput}
|
|
138
|
+
/>
|
|
139
|
+
<div class=${cvaIcon({ icon: "left", disabled: this.disabled })}>
|
|
140
|
+
<slot
|
|
141
|
+
name="left-icon"
|
|
142
|
+
class="icon-size-6"
|
|
143
|
+
@slotchange=${this._handleSlotChange}
|
|
144
|
+
></slot>
|
|
145
|
+
</div>
|
|
146
|
+
<div class=${cvaIcon({ icon: "right", disabled: this.disabled })}>
|
|
147
|
+
<slot
|
|
148
|
+
name="right-icon"
|
|
149
|
+
class="icon-size-6"
|
|
150
|
+
@slotchange=${this._handleSlotChange}
|
|
151
|
+
></slot>
|
|
152
|
+
</div>`;
|
|
153
|
+
}
|
|
154
|
+
updated(changedProperties) {
|
|
155
|
+
if (!changedProperties.has("value")) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
this._internals.setFormValue(this.value);
|
|
159
|
+
}
|
|
160
|
+
reflectInputGroup(inputGroup) {
|
|
161
|
+
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
162
|
+
this.disabled = !!inputGroup.disabled;
|
|
163
|
+
this.required = !!inputGroup.required;
|
|
164
|
+
this.error = isError;
|
|
165
|
+
this._label = inputGroup.label;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
DaikinTextField.styles = css`
|
|
169
|
+
${unsafeCSS(tailwindStyles)}
|
|
170
|
+
|
|
171
|
+
:host {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
height: 3rem;
|
|
175
|
+
position: relative;
|
|
176
|
+
}
|
|
177
|
+
`;
|
|
178
|
+
DaikinTextField.formAssociated = true;
|
|
179
|
+
__decorateClass([
|
|
180
|
+
property({ type: String })
|
|
181
|
+
], DaikinTextField.prototype, "type", 2);
|
|
182
|
+
__decorateClass([
|
|
183
|
+
property({ type: String })
|
|
184
|
+
], DaikinTextField.prototype, "value", 2);
|
|
185
|
+
__decorateClass([
|
|
186
|
+
property({ type: String, reflect: true })
|
|
187
|
+
], DaikinTextField.prototype, "name", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
property({ type: String })
|
|
190
|
+
], DaikinTextField.prototype, "placeholder", 2);
|
|
191
|
+
__decorateClass([
|
|
192
|
+
property({ type: Boolean, reflect: true })
|
|
193
|
+
], DaikinTextField.prototype, "readonly", 2);
|
|
194
|
+
__decorateClass([
|
|
195
|
+
property({ type: Boolean, reflect: true })
|
|
196
|
+
], DaikinTextField.prototype, "disabled", 2);
|
|
197
|
+
__decorateClass([
|
|
198
|
+
property({ type: Boolean, reflect: true })
|
|
199
|
+
], DaikinTextField.prototype, "required", 2);
|
|
200
|
+
__decorateClass([
|
|
201
|
+
property({ type: Boolean, reflect: true })
|
|
202
|
+
], DaikinTextField.prototype, "error", 2);
|
|
203
|
+
__decorateClass([
|
|
204
|
+
property({ type: Number })
|
|
205
|
+
], DaikinTextField.prototype, "maxlength", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
property({ type: String })
|
|
208
|
+
], DaikinTextField.prototype, "autocomplete", 2);
|
|
209
|
+
__decorateClass([
|
|
210
|
+
state()
|
|
211
|
+
], DaikinTextField.prototype, "_label", 2);
|
|
212
|
+
__decorateClass([
|
|
213
|
+
state()
|
|
214
|
+
], DaikinTextField.prototype, "_hasLeftIcon", 2);
|
|
215
|
+
__decorateClass([
|
|
216
|
+
state()
|
|
217
|
+
], DaikinTextField.prototype, "_hasRightIcon", 2);
|
|
218
|
+
DaikinTextField = __decorateClass([
|
|
219
|
+
customElement("daikin-text-field")
|
|
220
|
+
], DaikinTextField);
|
|
221
|
+
export {
|
|
222
|
+
DaikinTextField
|
|
223
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-text-field.js";
|
|
@@ -20,11 +20,11 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
20
20
|
export declare class DaikinToggle extends LitElement {
|
|
21
21
|
static readonly styles: import('lit').CSSResult;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The form name, submitted as a name/value pair when submitting the form.
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The form value, submitted as a name/value pair when submitting the form.
|
|
28
28
|
*/
|
|
29
29
|
value: string;
|
|
30
30
|
/**
|
|
@@ -32,7 +32,7 @@ export declare class DaikinToggle extends LitElement {
|
|
|
32
32
|
*/
|
|
33
33
|
checked: boolean;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Specify the toggle switch disabled state.
|
|
36
36
|
*/
|
|
37
37
|
disabled: boolean;
|
|
38
38
|
static readonly formAssociated = true;
|
|
@@ -16,22 +16,22 @@ const TOGGLE_CLASS_NAME = cva([
|
|
|
16
16
|
"w-12",
|
|
17
17
|
"h-6",
|
|
18
18
|
"relative",
|
|
19
|
-
"bg-
|
|
19
|
+
"bg-system-state-neutral-active",
|
|
20
20
|
"rounded-full",
|
|
21
21
|
"cursor-pointer",
|
|
22
22
|
"transition-colors",
|
|
23
23
|
"duration-300",
|
|
24
24
|
"appearance-none",
|
|
25
|
-
"enabled:hover:bg-
|
|
26
|
-
"enabled:active:bg-
|
|
25
|
+
"enabled:hover:bg-system-state-neutral-hover",
|
|
26
|
+
"enabled:active:bg-system-state-neutral-press",
|
|
27
27
|
"focus-visible:outline",
|
|
28
|
-
"focus-visible:outline-
|
|
29
|
-
"focus-visible:outline-offset-
|
|
30
|
-
"focus-visible:outline-
|
|
31
|
-
"enabled:checked:bg-
|
|
32
|
-
"enabled:checked:hover:bg-
|
|
33
|
-
"enabled:checked:active:bg-
|
|
34
|
-
"disabled:bg-
|
|
28
|
+
"focus-visible:outline-2",
|
|
29
|
+
"focus-visible:outline-offset-2",
|
|
30
|
+
"focus-visible:outline-system-state-focus",
|
|
31
|
+
"enabled:checked:bg-system-state-primary-active",
|
|
32
|
+
"enabled:checked:hover:bg-system-state-primary-hover",
|
|
33
|
+
"enabled:checked:active:bg-system-state-primary-press",
|
|
34
|
+
"disabled:bg-system-state-disabled",
|
|
35
35
|
"disabled:cursor-default",
|
|
36
36
|
"before:size-4",
|
|
37
37
|
"before:m-auto",
|
|
@@ -43,8 +43,8 @@ const TOGGLE_CLASS_NAME = cva([
|
|
|
43
43
|
"before:transition",
|
|
44
44
|
"before:duration-300",
|
|
45
45
|
"before:checked:translate-x-6",
|
|
46
|
-
"enabled:before:bg-
|
|
47
|
-
"disabled:before:bg-
|
|
46
|
+
"enabled:before:bg-system-background-base",
|
|
47
|
+
"disabled:before:bg-system-background-surface-hover"
|
|
48
48
|
])();
|
|
49
49
|
let DaikinToggle = class extends LitElement {
|
|
50
50
|
constructor() {
|
|
@@ -68,7 +68,7 @@ let DaikinToggle = class extends LitElement {
|
|
|
68
68
|
class=${TOGGLE_CLASS_NAME}
|
|
69
69
|
type="checkbox"
|
|
70
70
|
name=${this.name}
|
|
71
|
-
value=${this.value}
|
|
71
|
+
.value=${this.value}
|
|
72
72
|
role="switch"
|
|
73
73
|
.checked=${this.checked}
|
|
74
74
|
?disabled=${this.disabled}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./daikin-toggle.js";
|