@six-group/ui-library 4.2.6 → 4.3.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/dist/cjs/{form-control-de259450.js → form-control-b39f1df5.js} +2 -2
- package/dist/cjs/{form-control-de259450.js.map → form-control-b39f1df5.js.map} +1 -1
- package/dist/cjs/index-417a06c8.js +1948 -0
- package/dist/cjs/index-417a06c8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/six-alert.cjs.entry.js +2 -2
- package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/six-avatar.cjs.entry.js +3 -3
- package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-badge.cjs.entry.js +3 -3
- package/dist/cjs/six-button.cjs.entry.js +4 -4
- package/dist/cjs/six-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-card.cjs.entry.js +2 -2
- package/dist/cjs/{six-checkbox_2.cjs.entry.js → six-checkbox.cjs.entry.js} +5 -69
- package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-details.cjs.entry.js +4 -4
- package/dist/cjs/six-details.cjs.entry.js.map +1 -1
- package/dist/cjs/six-dialog.cjs.entry.js +3 -3
- package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/six-drawer.cjs.entry.js +3 -3
- package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +73 -9
- package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
- package/dist/cjs/six-error-page.cjs.entry.js +2 -2
- package/dist/cjs/six-error.cjs.entry.js +2 -2
- package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
- package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-file-list.cjs.entry.js +2 -2
- package/dist/cjs/six-file-upload.cjs.entry.js +6 -9
- package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/six-footer.cjs.entry.js +2 -2
- package/dist/cjs/six-group-label.cjs.entry.js +3 -3
- package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
- package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
- package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
- package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
- package/dist/cjs/six-header.cjs.entry.js +40 -31
- package/dist/cjs/six-header.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon-button.cjs.entry.js +11 -5
- package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/six-icon.cjs.entry.js +3 -3
- package/dist/cjs/six-input.cjs.entry.js +5 -5
- package/dist/cjs/six-input.cjs.entry.js.map +1 -1
- package/dist/cjs/six-item-picker.cjs.entry.js +4 -4
- package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
- package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/six-main-container.cjs.entry.js +2 -2
- package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
- package/dist/cjs/six-picto.cjs.entry.js +2 -2
- package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
- package/dist/cjs/six-radio.cjs.entry.js +3 -3
- package/dist/cjs/six-range.cjs.entry.js +4 -4
- package/dist/cjs/six-range.cjs.entry.js.map +1 -1
- package/dist/cjs/six-root.cjs.entry.js +2 -2
- package/dist/cjs/six-root.cjs.entry.js.map +1 -1
- package/dist/cjs/six-search-field.cjs.entry.js +2 -2
- package/dist/cjs/six-select.cjs.entry.js +8 -8
- package/dist/cjs/six-select.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
- package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/six-spinner.cjs.entry.js +1 -1
- package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
- package/dist/cjs/six-switch.cjs.entry.js +4 -4
- package/dist/cjs/six-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/six-tab.cjs.entry.js +3 -3
- package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tag.cjs.entry.js +3 -3
- package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/six-textarea.cjs.entry.js +4 -4
- package/dist/cjs/six-tile.cjs.entry.js +6 -6
- package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/six-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/ui-library.cjs.js +10 -10
- package/dist/cjs/ui-library.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +6 -2
- package/dist/collection/components/six-alert/six-alert.js +1 -1
- package/dist/collection/components/six-alert/six-alert.js.map +1 -1
- package/dist/collection/components/six-avatar/six-avatar.js +2 -2
- package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
- package/dist/collection/components/six-badge/six-badge.js +2 -2
- package/dist/collection/components/six-button/six-button.css +0 -4
- package/dist/collection/components/six-button/six-button.js +2 -2
- package/dist/collection/components/six-button/six-button.js.map +1 -1
- package/dist/collection/components/six-card/six-card.js +1 -1
- package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
- package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
- package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
- package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
- package/dist/collection/components/six-details/six-details.js +3 -3
- package/dist/collection/components/six-details/six-details.js.map +1 -1
- package/dist/collection/components/six-dialog/six-dialog.js +2 -2
- package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
- package/dist/collection/components/six-drawer/six-drawer.js +2 -2
- package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
- package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
- package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
- package/dist/collection/components/six-error/six-error.js +1 -1
- package/dist/collection/components/six-error-page/six-error-page.js +1 -1
- package/dist/collection/components/six-file-list/six-file-list.js +1 -1
- package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
- package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
- package/dist/collection/components/six-file-upload/six-file-upload.js +5 -8
- package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
- package/dist/collection/components/six-footer/six-footer.js +1 -1
- package/dist/collection/components/six-group-label/six-group-label.js +1 -1
- package/dist/collection/components/six-header/six-header.css +5 -29
- package/dist/collection/components/six-header/six-header.js +115 -47
- package/dist/collection/components/six-header/six-header.js.map +1 -1
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
- package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
- package/dist/collection/components/six-header-item/six-header-item.css +15 -0
- package/dist/collection/components/six-header-item/six-header-item.js +51 -0
- package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
- package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
- package/dist/collection/components/six-icon/six-icon.js +2 -2
- package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
- package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
- package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
- package/dist/collection/components/six-input/six-input.js +4 -4
- package/dist/collection/components/six-input/six-input.js.map +1 -1
- package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
- package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
- package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
- package/dist/collection/components/six-logo/six-logo.css +18 -0
- package/dist/collection/components/six-logo/six-logo.js +54 -0
- package/dist/collection/components/six-logo/six-logo.js.map +1 -0
- package/dist/collection/components/six-main-container/six-main-container.js +1 -1
- package/dist/collection/components/six-menu/six-menu.js +2 -2
- package/dist/collection/components/six-menu/six-menu.js.map +1 -1
- package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
- package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
- package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
- package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
- package/dist/collection/components/six-picto/six-picto.js +1 -1
- package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
- package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
- package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
- package/dist/collection/components/six-radio/six-radio.js +2 -2
- package/dist/collection/components/six-range/six-range.js +2 -2
- package/dist/collection/components/six-range/six-range.js.map +1 -1
- package/dist/collection/components/six-root/six-root.js +1 -1
- package/dist/collection/components/six-root/six-root.js.map +1 -1
- package/dist/collection/components/six-search-field/six-search-field.js +1 -1
- package/dist/collection/components/six-select/six-select.js +6 -6
- package/dist/collection/components/six-select/six-select.js.map +1 -1
- package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
- package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +7 -0
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
- package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
- package/dist/collection/components/six-switch/six-switch.js +2 -2
- package/dist/collection/components/six-tab/six-tab.js +2 -2
- package/dist/collection/components/six-tab/six-tab.js.map +1 -1
- package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
- package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
- package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
- package/dist/collection/components/six-tag/six-tag.js +2 -2
- package/dist/collection/components/six-tag/six-tag.js.map +1 -1
- package/dist/collection/components/six-textarea/six-textarea.js +4 -4
- package/dist/collection/components/six-tile/six-tile.js +5 -5
- package/dist/collection/components/six-tile/six-tile.js.map +1 -1
- package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
- package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
- package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
- package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
- package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
- package/dist/components/index.js +8 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/six-alert.js +1 -1
- package/dist/components/six-alert.js.map +1 -1
- package/dist/components/six-avatar.js +2 -2
- package/dist/components/six-avatar.js.map +1 -1
- package/dist/components/six-badge.js +2 -2
- package/dist/components/six-button2.js +3 -3
- package/dist/components/six-button2.js.map +1 -1
- package/dist/components/six-card.js +1 -1
- package/dist/components/six-checkbox2.js +2 -2
- package/dist/components/six-checkbox2.js.map +1 -1
- package/dist/components/six-datepicker.js +3 -3
- package/dist/components/six-datepicker.js.map +1 -1
- package/dist/components/six-details2.js +3 -3
- package/dist/components/six-details2.js.map +1 -1
- package/dist/components/six-dialog.js +2 -2
- package/dist/components/six-dialog.js.map +1 -1
- package/dist/components/six-drawer.js +2 -2
- package/dist/components/six-drawer.js.map +1 -1
- package/dist/components/six-dropdown2.js +5 -5
- package/dist/components/six-dropdown2.js.map +1 -1
- package/dist/components/six-error-page.js +1 -1
- package/dist/components/six-error2.js +1 -1
- package/dist/components/six-file-list-item.js +2 -2
- package/dist/components/six-file-list-item.js.map +1 -1
- package/dist/components/six-file-list.js +1 -1
- package/dist/components/six-file-upload.js +5 -8
- package/dist/components/six-file-upload.js.map +1 -1
- package/dist/components/six-footer.js +1 -1
- package/dist/components/six-group-label.js +1 -1
- package/dist/components/six-header-dropdown-item.d.ts +11 -0
- package/dist/components/six-header-dropdown-item.js +103 -0
- package/dist/components/six-header-dropdown-item.js.map +1 -0
- package/dist/components/six-header-item.d.ts +11 -0
- package/dist/components/six-header-item.js +8 -0
- package/dist/components/six-header-item.js.map +1 -0
- package/dist/components/six-header-item2.js +39 -0
- package/dist/components/six-header-item2.js.map +1 -0
- package/dist/components/six-header-menu-button.d.ts +11 -0
- package/dist/components/six-header-menu-button.js +57 -0
- package/dist/components/six-header-menu-button.js.map +1 -0
- package/dist/components/six-header.js +64 -42
- package/dist/components/six-header.js.map +1 -1
- package/dist/components/six-icon-button2.js +14 -5
- package/dist/components/six-icon-button2.js.map +1 -1
- package/dist/components/six-icon2.js +2 -2
- package/dist/components/six-input2.js +3 -3
- package/dist/components/six-input2.js.map +1 -1
- package/dist/components/six-item-picker2.js +3 -3
- package/dist/components/six-language-switcher.js +1 -1
- package/dist/components/six-layout-grid.js +1 -1
- package/dist/components/six-logo.d.ts +11 -0
- package/dist/components/six-logo.js +8 -0
- package/dist/components/six-logo.js.map +1 -0
- package/dist/components/six-logo2.js +42 -0
- package/dist/components/six-logo2.js.map +1 -0
- package/dist/components/six-main-container.js +1 -1
- package/dist/components/six-menu-divider.js +1 -1
- package/dist/components/six-menu-item2.js +2 -2
- package/dist/components/six-menu-item2.js.map +1 -1
- package/dist/components/six-menu-label.js +1 -1
- package/dist/components/six-menu2.js +2 -2
- package/dist/components/six-menu2.js.map +1 -1
- package/dist/components/six-picto2.js +1 -1
- package/dist/components/six-progress-bar.js +3 -3
- package/dist/components/six-progress-bar.js.map +1 -1
- package/dist/components/six-progress-ring.js +1 -1
- package/dist/components/six-radio.js +2 -2
- package/dist/components/six-range.js +2 -2
- package/dist/components/six-range.js.map +1 -1
- package/dist/components/six-root.js +1 -1
- package/dist/components/six-root.js.map +1 -1
- package/dist/components/six-search-field.js +1 -1
- package/dist/components/six-select.js +6 -6
- package/dist/components/six-select.js.map +1 -1
- package/dist/components/six-sidebar-item-group.js +2 -2
- package/dist/components/six-sidebar-item-group.js.map +1 -1
- package/dist/components/six-sidebar-item.js +3 -3
- package/dist/components/six-sidebar-item.js.map +1 -1
- package/dist/components/six-sidebar.js +2 -2
- package/dist/components/six-switch.js +2 -2
- package/dist/components/six-tab-group.js +2 -2
- package/dist/components/six-tab-group.js.map +1 -1
- package/dist/components/six-tab-panel.js +1 -1
- package/dist/components/six-tab.js +2 -2
- package/dist/components/six-tab.js.map +1 -1
- package/dist/components/six-tag.js +2 -2
- package/dist/components/six-tag.js.map +1 -1
- package/dist/components/six-textarea.js +2 -2
- package/dist/components/six-tile.js +5 -5
- package/dist/components/six-tile.js.map +1 -1
- package/dist/components/six-timepicker2.js +2 -2
- package/dist/components/six-timepicker2.js.map +1 -1
- package/dist/components/six-tooltip2.js +2 -2
- package/dist/components.d.ts +34 -0
- package/dist/components.json +477 -32
- package/dist/esm/{form-control-30c5bd8b.js → form-control-ad1710bf.js} +2 -2
- package/dist/esm/{form-control-30c5bd8b.js.map → form-control-ad1710bf.js.map} +1 -1
- package/dist/esm/index-a7bee415.js +1919 -0
- package/dist/esm/index-a7bee415.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/six-alert.entry.js +2 -2
- package/dist/esm/six-alert.entry.js.map +1 -1
- package/dist/esm/six-avatar.entry.js +3 -3
- package/dist/esm/six-avatar.entry.js.map +1 -1
- package/dist/esm/six-badge.entry.js +3 -3
- package/dist/esm/six-button.entry.js +4 -4
- package/dist/esm/six-button.entry.js.map +1 -1
- package/dist/esm/six-card.entry.js +2 -2
- package/dist/esm/{six-checkbox_2.entry.js → six-checkbox.entry.js} +7 -70
- package/dist/esm/six-checkbox.entry.js.map +1 -0
- package/dist/esm/six-datepicker.entry.js +4 -4
- package/dist/esm/six-datepicker.entry.js.map +1 -1
- package/dist/esm/six-details.entry.js +4 -4
- package/dist/esm/six-details.entry.js.map +1 -1
- package/dist/esm/six-dialog.entry.js +3 -3
- package/dist/esm/six-dialog.entry.js.map +1 -1
- package/dist/esm/six-drawer.entry.js +3 -3
- package/dist/esm/six-drawer.entry.js.map +1 -1
- package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +73 -10
- package/dist/esm/six-dropdown_3.entry.js.map +1 -0
- package/dist/esm/six-error-page.entry.js +2 -2
- package/dist/esm/six-error.entry.js +2 -2
- package/dist/esm/six-file-list-item.entry.js +3 -3
- package/dist/esm/six-file-list-item.entry.js.map +1 -1
- package/dist/esm/six-file-list.entry.js +2 -2
- package/dist/esm/six-file-upload.entry.js +6 -9
- package/dist/esm/six-file-upload.entry.js.map +1 -1
- package/dist/esm/six-footer.entry.js +2 -2
- package/dist/esm/six-group-label.entry.js +3 -3
- package/dist/esm/six-header-dropdown-item.entry.js +41 -0
- package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
- package/dist/esm/six-header-item_2.entry.js +42 -0
- package/dist/esm/six-header-item_2.entry.js.map +1 -0
- package/dist/esm/six-header-menu-button.entry.js +19 -0
- package/dist/esm/six-header-menu-button.entry.js.map +1 -0
- package/dist/esm/six-header.entry.js +40 -31
- package/dist/esm/six-header.entry.js.map +1 -1
- package/dist/esm/six-icon-button.entry.js +11 -5
- package/dist/esm/six-icon-button.entry.js.map +1 -1
- package/dist/esm/six-icon.entry.js +3 -3
- package/dist/esm/six-input.entry.js +5 -5
- package/dist/esm/six-input.entry.js.map +1 -1
- package/dist/esm/six-item-picker.entry.js +4 -4
- package/dist/esm/six-language-switcher.entry.js +2 -2
- package/dist/esm/six-layout-grid.entry.js +2 -2
- package/dist/esm/six-main-container.entry.js +2 -2
- package/dist/esm/six-menu-divider.entry.js +2 -2
- package/dist/esm/six-menu-label.entry.js +2 -2
- package/dist/esm/six-picto.entry.js +2 -2
- package/dist/esm/six-progress-bar.entry.js +4 -4
- package/dist/esm/six-progress-bar.entry.js.map +1 -1
- package/dist/esm/six-progress-ring.entry.js +2 -2
- package/dist/esm/six-radio.entry.js +3 -3
- package/dist/esm/six-range.entry.js +4 -4
- package/dist/esm/six-range.entry.js.map +1 -1
- package/dist/esm/six-root.entry.js +2 -2
- package/dist/esm/six-root.entry.js.map +1 -1
- package/dist/esm/six-search-field.entry.js +2 -2
- package/dist/esm/six-select.entry.js +8 -8
- package/dist/esm/six-select.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item-group.entry.js +3 -3
- package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
- package/dist/esm/six-sidebar-item.entry.js +4 -4
- package/dist/esm/six-sidebar-item.entry.js.map +1 -1
- package/dist/esm/six-sidebar.entry.js +3 -3
- package/dist/esm/six-spinner.entry.js +1 -1
- package/dist/esm/six-stage-indicator.entry.js +1 -1
- package/dist/esm/six-switch.entry.js +4 -4
- package/dist/esm/six-tab-group.entry.js +3 -3
- package/dist/esm/six-tab-group.entry.js.map +1 -1
- package/dist/esm/six-tab-panel.entry.js +2 -2
- package/dist/esm/six-tab.entry.js +3 -3
- package/dist/esm/six-tab.entry.js.map +1 -1
- package/dist/esm/six-tag.entry.js +3 -3
- package/dist/esm/six-tag.entry.js.map +1 -1
- package/dist/esm/six-textarea.entry.js +4 -4
- package/dist/esm/six-tile.entry.js +6 -6
- package/dist/esm/six-tile.entry.js.map +1 -1
- package/dist/esm/six-timepicker.entry.js +3 -3
- package/dist/esm/six-timepicker.entry.js.map +1 -1
- package/dist/esm/six-tooltip.entry.js +3 -3
- package/dist/esm/ui-library.js +11 -11
- package/dist/esm/ui-library.js.map +1 -1
- package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
- package/dist/types/components/six-header/six-header.d.ts +79 -18
- package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
- package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
- package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
- package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
- package/dist/types/components/six-logo/six-logo.d.ts +9 -0
- package/dist/types/components.d.ts +197 -5
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/utils/type-check.d.ts +1 -1
- package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
- package/dist/ui-library/index.esm.js.map +1 -1
- package/dist/ui-library/{p-d42f1ea9.entry.js → p-03acec96.entry.js} +2 -2
- package/dist/ui-library/{p-d42f1ea9.entry.js.map → p-03acec96.entry.js.map} +1 -1
- package/dist/ui-library/p-06ba4450.js.map +1 -1
- package/dist/ui-library/{p-b7c68f74.entry.js → p-06d562b7.entry.js} +2 -2
- package/dist/ui-library/{p-b7c68f74.entry.js.map → p-06d562b7.entry.js.map} +1 -1
- package/dist/ui-library/p-07b6203f.entry.js +2 -0
- package/dist/ui-library/{p-7c18b8ca.entry.js.map → p-07b6203f.entry.js.map} +1 -1
- package/dist/ui-library/{p-2386627e.entry.js → p-0a6b6429.entry.js} +2 -2
- package/dist/ui-library/{p-2386627e.entry.js.map → p-0a6b6429.entry.js.map} +1 -1
- package/dist/ui-library/p-0cebf1d2.js.map +1 -1
- package/dist/ui-library/p-14d09601.entry.js +2 -0
- package/dist/ui-library/{p-11344bb8.entry.js.map → p-14d09601.entry.js.map} +1 -1
- package/dist/ui-library/{p-45b0748e.entry.js → p-171df3ad.entry.js} +2 -2
- package/dist/ui-library/{p-45b0748e.entry.js.map → p-171df3ad.entry.js.map} +1 -1
- package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
- package/dist/ui-library/{p-36d5f98a.entry.js.map → p-1cc3b56d.entry.js.map} +1 -1
- package/dist/ui-library/{p-7bdd1116.entry.js → p-1cd09d9b.entry.js} +2 -2
- package/dist/ui-library/{p-7bdd1116.entry.js.map → p-1cd09d9b.entry.js.map} +1 -1
- package/dist/ui-library/{p-416b0439.entry.js → p-1f7a0cb5.entry.js} +2 -2
- package/dist/ui-library/{p-416b0439.entry.js.map → p-1f7a0cb5.entry.js.map} +1 -1
- package/dist/ui-library/p-2355c444.entry.js +2 -0
- package/dist/ui-library/{p-347e568f.entry.js.map → p-2355c444.entry.js.map} +1 -1
- package/dist/ui-library/p-281ffc35.entry.js +2 -0
- package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
- package/dist/ui-library/{p-c62893e5.entry.js → p-2ad904a7.entry.js} +2 -2
- package/dist/ui-library/{p-c62893e5.entry.js.map → p-2ad904a7.entry.js.map} +1 -1
- package/dist/ui-library/{p-b5acf54d.entry.js → p-30000e86.entry.js} +2 -2
- package/dist/ui-library/{p-b5acf54d.entry.js.map → p-30000e86.entry.js.map} +1 -1
- package/dist/ui-library/{p-4d89932f.entry.js → p-42cd3588.entry.js} +2 -2
- package/dist/ui-library/{p-4d89932f.entry.js.map → p-42cd3588.entry.js.map} +1 -1
- package/dist/ui-library/p-48118ce8.js +3 -0
- package/dist/ui-library/p-48118ce8.js.map +1 -0
- package/dist/ui-library/{p-b335ed9c.entry.js → p-49019d6c.entry.js} +2 -2
- package/dist/ui-library/{p-b335ed9c.entry.js.map → p-49019d6c.entry.js.map} +1 -1
- package/dist/ui-library/{p-c6464bfe.entry.js → p-4d72b179.entry.js} +2 -2
- package/dist/ui-library/{p-c6464bfe.entry.js.map → p-4d72b179.entry.js.map} +1 -1
- package/dist/ui-library/{p-d9586999.entry.js → p-4de4ee7a.entry.js} +2 -2
- package/dist/ui-library/{p-d9586999.entry.js.map → p-4de4ee7a.entry.js.map} +1 -1
- package/dist/ui-library/p-4edde816.entry.js +2 -0
- package/dist/ui-library/p-4edde816.entry.js.map +1 -0
- package/dist/ui-library/p-4f129bb3.entry.js +2 -0
- package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
- package/dist/ui-library/{p-3b5a76ea.entry.js → p-53867d77.entry.js} +2 -2
- package/dist/ui-library/{p-3b5a76ea.entry.js.map → p-53867d77.entry.js.map} +1 -1
- package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
- package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
- package/dist/ui-library/{p-a398e3eb.entry.js → p-5ece7986.entry.js} +2 -2
- package/dist/ui-library/{p-a398e3eb.entry.js.map → p-5ece7986.entry.js.map} +1 -1
- package/dist/ui-library/p-5f491974.entry.js +2 -0
- package/dist/ui-library/p-5f491974.entry.js.map +1 -0
- package/dist/ui-library/{p-b60c20aa.entry.js → p-5fc9cd7b.entry.js} +2 -2
- package/dist/ui-library/{p-b60c20aa.entry.js.map → p-5fc9cd7b.entry.js.map} +1 -1
- package/dist/ui-library/{p-4bc7bbdb.entry.js → p-618bf750.entry.js} +2 -2
- package/dist/ui-library/{p-4bc7bbdb.entry.js.map → p-618bf750.entry.js.map} +1 -1
- package/dist/ui-library/{p-63acceb6.entry.js → p-62a1f514.entry.js} +2 -2
- package/dist/ui-library/{p-63acceb6.entry.js.map → p-62a1f514.entry.js.map} +1 -1
- package/dist/ui-library/p-651293e7.js.map +1 -1
- package/dist/ui-library/p-6513b8ce.entry.js +2 -0
- package/dist/ui-library/{p-189602e4.entry.js.map → p-6513b8ce.entry.js.map} +1 -1
- package/dist/ui-library/{p-47c84904.entry.js → p-6795e0a9.entry.js} +2 -2
- package/dist/ui-library/{p-47c84904.entry.js.map → p-6795e0a9.entry.js.map} +1 -1
- package/dist/ui-library/p-6ec126f7.entry.js +2 -0
- package/dist/ui-library/{p-9cb83369.entry.js.map → p-6ec126f7.entry.js.map} +1 -1
- package/dist/ui-library/p-705e3612.entry.js +2 -0
- package/dist/ui-library/p-705e3612.entry.js.map +1 -0
- package/dist/ui-library/{p-06ba653e.entry.js → p-70fac778.entry.js} +2 -2
- package/dist/ui-library/{p-06ba653e.entry.js.map → p-70fac778.entry.js.map} +1 -1
- package/dist/ui-library/{p-037afc74.entry.js → p-7afdff5c.entry.js} +2 -2
- package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
- package/dist/ui-library/{p-4963f03c.entry.js → p-7eb9ae75.entry.js} +2 -2
- package/dist/ui-library/{p-4963f03c.entry.js.map → p-7eb9ae75.entry.js.map} +1 -1
- package/dist/ui-library/p-7f856f00.js.map +1 -1
- package/dist/ui-library/p-8227aaed.js.map +1 -1
- package/dist/ui-library/p-842b492e.js.map +1 -1
- package/dist/ui-library/p-862d474e.js.map +1 -1
- package/dist/ui-library/{p-6f9153be.entry.js → p-870139dc.entry.js} +2 -2
- package/dist/ui-library/{p-6f9153be.entry.js.map → p-870139dc.entry.js.map} +1 -1
- package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
- package/dist/ui-library/{p-605bdd81.js → p-a04460e3.js} +2 -2
- package/dist/ui-library/{p-605bdd81.js.map → p-a04460e3.js.map} +1 -1
- package/dist/ui-library/p-a1502802.js.map +1 -1
- package/dist/ui-library/{p-07c8de65.entry.js → p-a20a702a.entry.js} +2 -2
- package/dist/ui-library/{p-07c8de65.entry.js.map → p-a20a702a.entry.js.map} +1 -1
- package/dist/ui-library/p-adc65fc8.entry.js +2 -0
- package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
- package/dist/ui-library/{p-0c129b61.entry.js → p-afb15ea4.entry.js} +2 -2
- package/dist/ui-library/{p-0c129b61.entry.js.map → p-afb15ea4.entry.js.map} +1 -1
- package/dist/ui-library/p-b361d5da.entry.js +2 -0
- package/dist/ui-library/{p-32e421a3.entry.js.map → p-b361d5da.entry.js.map} +1 -1
- package/dist/ui-library/{p-99f6fe01.entry.js → p-bfb398c6.entry.js} +2 -2
- package/dist/ui-library/{p-99f6fe01.entry.js.map → p-bfb398c6.entry.js.map} +1 -1
- package/dist/ui-library/{p-d88b9c16.entry.js → p-cd65e3b2.entry.js} +2 -2
- package/dist/ui-library/{p-d88b9c16.entry.js.map → p-cd65e3b2.entry.js.map} +1 -1
- package/dist/ui-library/{p-a9e009af.entry.js → p-cd79700c.entry.js} +2 -2
- package/dist/ui-library/{p-a9e009af.entry.js.map → p-cd79700c.entry.js.map} +1 -1
- package/dist/ui-library/{p-419ed003.entry.js → p-cdc9224d.entry.js} +2 -2
- package/dist/ui-library/{p-419ed003.entry.js.map → p-cdc9224d.entry.js.map} +1 -1
- package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
- package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
- package/dist/ui-library/{p-8f1d3461.entry.js → p-d46acf21.entry.js} +2 -2
- package/dist/ui-library/{p-8f1d3461.entry.js.map → p-d46acf21.entry.js.map} +1 -1
- package/dist/ui-library/p-d67b8482.entry.js +2 -0
- package/dist/ui-library/{p-030fa1fa.entry.js.map → p-d67b8482.entry.js.map} +1 -1
- package/dist/ui-library/{p-1adc26f2.entry.js → p-db193a32.entry.js} +2 -2
- package/dist/ui-library/{p-1adc26f2.entry.js.map → p-db193a32.entry.js.map} +1 -1
- package/dist/ui-library/p-e080d5b6.js.map +1 -1
- package/dist/ui-library/p-e1255160.js.map +1 -1
- package/dist/ui-library/{p-fe89a7c4.entry.js → p-e1529ef6.entry.js} +2 -2
- package/dist/ui-library/{p-fe89a7c4.entry.js.map → p-e1529ef6.entry.js.map} +1 -1
- package/dist/ui-library/{p-e9b8ad98.entry.js → p-e181944f.entry.js} +2 -2
- package/dist/ui-library/{p-e9b8ad98.entry.js.map → p-e181944f.entry.js.map} +1 -1
- package/dist/ui-library/{p-d1a2f84b.entry.js → p-e6efc08a.entry.js} +2 -2
- package/dist/ui-library/{p-d1a2f84b.entry.js.map → p-e6efc08a.entry.js.map} +1 -1
- package/dist/ui-library/p-ea854ec5.entry.js +2 -0
- package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
- package/dist/ui-library/{p-63ee5e7e.entry.js → p-f12b22bc.entry.js} +2 -2
- package/dist/ui-library/{p-63ee5e7e.entry.js.map → p-f12b22bc.entry.js.map} +1 -1
- package/dist/ui-library/p-f136a6b2.js.map +1 -1
- package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
- package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
- package/dist/ui-library/{p-cf109cbf.entry.js → p-ffce31da.entry.js} +2 -2
- package/dist/ui-library/{p-cf109cbf.entry.js.map → p-ffce31da.entry.js.map} +1 -1
- package/dist/ui-library/ui-library.css +1 -1
- package/dist/ui-library/ui-library.esm.js +1 -1
- package/dist/ui-library/ui-library.esm.js.map +1 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +6 -18
- package/dist/cjs/index-1f707a55.js +0 -2718
- package/dist/cjs/index-1f707a55.js.map +0 -1
- package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
- package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
- package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
- package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
- package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
- package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
- package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
- package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
- package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
- package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
- package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
- package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
- package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
- package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
- package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
- package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
- package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
- package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
- package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -266
- package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
- package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
- package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
- package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
- package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
- package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
- package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
- package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
- package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
- package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
- package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
- package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
- package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
- package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
- package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
- package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
- package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
- package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
- package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
- package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
- package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
- package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
- package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
- package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
- package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
- package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
- package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
- package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
- package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
- package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
- package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
- package/dist/collection/components/six-select/test/util.spec.js +0 -103
- package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
- package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
- package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
- package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
- package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
- package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
- package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
- package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
- package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
- package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
- package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
- package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
- package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
- package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
- package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
- package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
- package/dist/collection/files/file-list.json +0 -308
- package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
- package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
- package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
- package/dist/collection/utils/date-util.spec.js +0 -995
- package/dist/collection/utils/date-util.spec.js.map +0 -1
- package/dist/collection/utils/scroll.spec.js +0 -122
- package/dist/collection/utils/scroll.spec.js.map +0 -1
- package/dist/collection/utils/time.util.spec.js +0 -368
- package/dist/collection/utils/time.util.spec.js.map +0 -1
- package/dist/esm/index-5390c1d6.js +0 -2689
- package/dist/esm/index-5390c1d6.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/six-checkbox_2.entry.js.map +0 -1
- package/dist/esm/six-dropdown_2.entry.js.map +0 -1
- package/dist/ui-library/files/file-list.json +0 -308
- package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
- package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
- package/dist/ui-library/p-030fa1fa.entry.js +0 -2
- package/dist/ui-library/p-037afc74.entry.js.map +0 -1
- package/dist/ui-library/p-047d02ad.entry.js +0 -2
- package/dist/ui-library/p-047d02ad.entry.js.map +0 -1
- package/dist/ui-library/p-05eb1bab.js +0 -3
- package/dist/ui-library/p-05eb1bab.js.map +0 -1
- package/dist/ui-library/p-11344bb8.entry.js +0 -2
- package/dist/ui-library/p-14e5fccc.entry.js +0 -2
- package/dist/ui-library/p-14e5fccc.entry.js.map +0 -1
- package/dist/ui-library/p-189602e4.entry.js +0 -2
- package/dist/ui-library/p-32e421a3.entry.js +0 -2
- package/dist/ui-library/p-347e568f.entry.js +0 -2
- package/dist/ui-library/p-36d5f98a.entry.js +0 -2
- package/dist/ui-library/p-37433242.entry.js +0 -2
- package/dist/ui-library/p-37433242.entry.js.map +0 -1
- package/dist/ui-library/p-6b40c40c.entry.js +0 -2
- package/dist/ui-library/p-6b40c40c.entry.js.map +0 -1
- package/dist/ui-library/p-7c18b8ca.entry.js +0 -2
- package/dist/ui-library/p-96d441e9.entry.js +0 -2
- package/dist/ui-library/p-96d441e9.entry.js.map +0 -1
- package/dist/ui-library/p-9cb83369.entry.js +0 -2
- package/dist/ui-library/p-e14d78e9.entry.js +0 -2
- package/dist/ui-library/p-e14d78e9.entry.js.map +0 -1
- package/dist/ui-library/p-ebbe9bdc.entry.js +0 -2
- package/dist/ui-library/p-ebbe9bdc.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,h as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as a,h as e}from"./p-48118ce8.js";const i=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block;--size:2rem}.avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;width:var(--size);height:var(--size);background-color:var(--six-avatar-background-color);font-family:var(--six-font-sans);font-size:calc(var(--size) * 0.5);font-weight:var(--six-font-weight-normal);color:var(--six-avatar-color);overflow:hidden;user-select:none;vertical-align:middle;cursor:pointer;outline:none}.avatar:hover{box-shadow:var(--six-shadow-medium)}.avatar--circle{border-radius:var(--six-border-radius-circle)}.avatar--rounded{border-radius:var(--six-border-radius-medium)}.avatar--square{border-radius:0}.avatar__icon{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%}.avatar__initials{line-height:1;text-transform:uppercase}.avatar__image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}";const t=i;const r=class{constructor(e){a(this,e);this.handleImageError=()=>{this.hasError=true};this.hasError=false;this.image="";this.alt="";this.initials="";this.shape="circle"}render(){return e("div",{key:"0dbd57a48040d1a7c7c07fa838e8be3da457e2c1",part:"base",class:{avatar:true,"avatar--circle":this.shape==="circle","avatar--rounded":this.shape==="rounded","avatar--square":this.shape==="square"},role:"image","aria-label":this.alt,tabIndex:0},this.initials===""&&e("div",{key:"86e4e434e5da9fe126c6950b3716aa69e0738278",part:"icon",class:"avatar__icon"},e("slot",{key:"376b3afc1ded98932f9f80c440f0f142e5bce33f",name:"icon"},e("six-icon",{key:"0371ad768fc7440b24528bf2b1b331f466ab5574"},"person"))),this.initials&&e("div",{key:"d1a3412dc155ff96e7d3fddfac1d483561537e98",part:"initials",class:"avatar__initials"},this.initials),this.image&&!this.hasError&&e("img",{key:"e8a7e31f01329601ae9181c89b702f9469accc35",part:"image",class:"avatar__image",src:this.image,onError:this.handleImageError}))}};r.style=t;export{r as six_avatar};
|
|
2
|
+
//# sourceMappingURL=p-618bf750.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixAvatarCss","SixAvatarStyle0","SixAvatar","this","handleImageError","hasError","render","h","key","part","class","avatar","shape","role","alt","tabIndex","initials","name","image","src","onError"],"sources":["src/components/six-avatar/six-avatar.scss?tag=six-avatar&encapsulation=shadow","src/components/six-avatar/six-avatar.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --size: The size of the avatar.\n */\n:host {\n display: inline-block;\n\n --size: 2rem;\n}\n\n.avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: var(--size);\n height: var(--size);\n background-color: var(--six-avatar-background-color);\n font-family: var(--six-font-sans);\n font-size: calc(var(--size) * 0.5);\n font-weight: var(--six-font-weight-normal);\n color: var(--six-avatar-color);\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n cursor: pointer;\n outline: none;\n\n &:hover {\n box-shadow: var(--six-shadow-medium);\n }\n}\n\n.avatar--circle {\n border-radius: var(--six-border-radius-circle);\n}\n\n.avatar--rounded {\n border-radius: var(--six-border-radius-medium);\n}\n\n.avatar--square {\n border-radius: 0;\n}\n\n.avatar__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.avatar__initials {\n line-height: 1;\n text-transform: uppercase;\n}\n\n.avatar__image {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n","import { Component, h, Prop, State } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot icon - The default icon to use when no image or initials are present.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the avatar icon.\n * @part initials - The container that wraps the avatar initials.\n * @part image - The avatar image.\n */\n@Component({\n tag: 'six-avatar',\n styleUrl: 'six-avatar.scss',\n shadow: true,\n})\nexport class SixAvatar {\n @State() hasError = false;\n\n /** The image source to use for the avatar. */\n @Prop() image = '';\n\n /** Alternative text for the image. */\n @Prop() alt = '';\n\n /** Initials to use as a fallback when no image is available (1-2 characters max recommended). */\n @Prop() initials = '';\n\n /** The shape of the avatar. */\n @Prop() shape: 'circle' | 'square' | 'rounded' = 'circle';\n\n private handleImageError = () => {\n this.hasError = true;\n };\n\n render() {\n return (\n <div\n part=\"base\"\n class={{\n avatar: true,\n 'avatar--circle': this.shape === 'circle',\n 'avatar--rounded': this.shape === 'rounded',\n 'avatar--square': this.shape === 'square',\n }}\n role=\"image\"\n aria-label={this.alt}\n tabIndex={0}\n >\n {this.initials === '' && (\n <div part=\"icon\" class=\"avatar__icon\">\n <slot name=\"icon\">\n <six-icon>person</six-icon>\n </slot>\n </div>\n )}\n\n {this.initials && (\n <div part=\"initials\" class=\"avatar__initials\">\n {this.initials}\n </div>\n )}\n\n {this.image && !this.hasError && (\n <img part=\"image\" class=\"avatar__image\" src={this.image} onError={this.handleImageError} />\n )}\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAe,2/BACrB,MAAAC,EAAeD,E,MCmBFE,EAAS,M,yBAeZC,KAAAC,iBAAmB,KACzBD,KAAKE,SAAW,IAAI,E,cAfF,M,WAGJ,G,SAGF,G,cAGK,G,WAG8B,Q,CAMjD,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,KAAK,OACLC,MAAO,CACLC,OAAQ,KACR,iBAAkBR,KAAKS,QAAU,SACjC,kBAAmBT,KAAKS,QAAU,UAClC,iBAAkBT,KAAKS,QAAU,UAEnCC,KAAK,QAAO,aACAV,KAAKW,IACjBC,SAAU,GAETZ,KAAKa,WAAa,IACjBT,EAAA,
|
|
1
|
+
{"version":3,"names":["sixAvatarCss","SixAvatarStyle0","SixAvatar","this","handleImageError","hasError","render","h","key","part","class","avatar","shape","role","alt","tabIndex","initials","name","image","src","onError"],"sources":["src/components/six-avatar/six-avatar.scss?tag=six-avatar&encapsulation=shadow","src/components/six-avatar/six-avatar.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --size: The size of the avatar.\n */\n:host {\n display: inline-block;\n\n --size: 2rem;\n}\n\n.avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: var(--size);\n height: var(--size);\n background-color: var(--six-avatar-background-color);\n font-family: var(--six-font-sans);\n font-size: calc(var(--size) * 0.5);\n font-weight: var(--six-font-weight-normal);\n color: var(--six-avatar-color);\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n cursor: pointer;\n outline: none;\n\n &:hover {\n box-shadow: var(--six-shadow-medium);\n }\n}\n\n.avatar--circle {\n border-radius: var(--six-border-radius-circle);\n}\n\n.avatar--rounded {\n border-radius: var(--six-border-radius-medium);\n}\n\n.avatar--square {\n border-radius: 0;\n}\n\n.avatar__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.avatar__initials {\n line-height: 1;\n text-transform: uppercase;\n}\n\n.avatar__image {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n","import { Component, h, Prop, State } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot icon - The default icon to use when no image or initials are present.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the avatar icon.\n * @part initials - The container that wraps the avatar initials.\n * @part image - The avatar image.\n */\n@Component({\n tag: 'six-avatar',\n styleUrl: 'six-avatar.scss',\n shadow: true,\n})\nexport class SixAvatar {\n @State() hasError = false;\n\n /** The image source to use for the avatar. */\n @Prop() image = '';\n\n /** Alternative text for the image. */\n @Prop() alt = '';\n\n /** Initials to use as a fallback when no image is available (1-2 characters max recommended). */\n @Prop() initials = '';\n\n /** The shape of the avatar. */\n @Prop() shape: 'circle' | 'square' | 'rounded' = 'circle';\n\n private handleImageError = () => {\n this.hasError = true;\n };\n\n render() {\n return (\n <div\n part=\"base\"\n class={{\n avatar: true,\n 'avatar--circle': this.shape === 'circle',\n 'avatar--rounded': this.shape === 'rounded',\n 'avatar--square': this.shape === 'square',\n }}\n role=\"image\"\n aria-label={this.alt}\n tabIndex={0}\n >\n {this.initials === '' && (\n <div part=\"icon\" class=\"avatar__icon\">\n <slot name=\"icon\">\n <six-icon>person</six-icon>\n </slot>\n </div>\n )}\n\n {this.initials && (\n <div part=\"initials\" class=\"avatar__initials\">\n {this.initials}\n </div>\n )}\n\n {this.image && !this.hasError && (\n <img part=\"image\" class=\"avatar__image\" src={this.image} onError={this.handleImageError} />\n )}\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAe,2/BACrB,MAAAC,EAAeD,E,MCmBFE,EAAS,M,yBAeZC,KAAAC,iBAAmB,KACzBD,KAAKE,SAAW,IAAI,E,cAfF,M,WAGJ,G,SAGF,G,cAGK,G,WAG8B,Q,CAMjD,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,KAAK,OACLC,MAAO,CACLC,OAAQ,KACR,iBAAkBR,KAAKS,QAAU,SACjC,kBAAmBT,KAAKS,QAAU,UAClC,iBAAkBT,KAAKS,QAAU,UAEnCC,KAAK,QAAO,aACAV,KAAKW,IACjBC,SAAU,GAETZ,KAAKa,WAAa,IACjBT,EAAA,OAAAC,IAAA,2CAAKC,KAAK,OAAOC,MAAM,gBACrBH,EAAA,QAAAC,IAAA,2CAAMS,KAAK,QACTV,EAAA,YAAAC,IAAA,wDAKLL,KAAKa,UACJT,EAAA,OAAAC,IAAA,2CAAKC,KAAK,WAAWC,MAAM,oBACxBP,KAAKa,UAITb,KAAKe,QAAUf,KAAKE,UACnBE,EAAA,OAAAC,IAAA,2CAAKC,KAAK,QAAQC,MAAM,gBAAgBS,IAAKhB,KAAKe,MAAOE,QAASjB,KAAKC,mB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as r}from"./p-48118ce8.js";const s=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{--track-color:var(--six-progress-track-color);--indicator-color:var(--six-progress-indicator-color);display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.progress-ring__image{transform:rotate(-90deg);transform-origin:50% 50%}.progress-ring__track{stroke:var(--track-color)}.progress-ring__indicator{stroke:var(--indicator-color);transition:0.35s stroke-dashoffset, 0.35s stroke}.progress-ring__label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;font-family:var(--six-font-family)}";const t=s;const i=class{constructor(r){e(this,r);this.size=128;this.strokeWidth=4;this.percentage=0}handlePercentageChange(){this.updateProgress()}componentDidLoad(){this.updateProgress()}updateProgress(){var e;if(((e=this.indicator)===null||e===void 0?void 0:e.r)==null)return;const r=this.indicator.r.baseVal.value;const s=r*2*Math.PI;const t=s-this.percentage/100*s;this.indicator.style.strokeDasharray=`${s} ${s}`;this.indicator.style.strokeDashoffset=`${t}`}render(){return r("div",{key:"585f31918309719acad14e1b01121be9a8c1cd89",part:"base",class:"progress-ring"},r("svg",{key:"5c039de9145c4c43f52e2787d39aaf3710c30f76",class:"progress-ring__image",width:this.size,height:this.size},r("circle",{key:"8b8ae8deb553e5e34a916fedfd7b5378ab47de9f",class:"progress-ring__track","stroke-width":this.strokeWidth,"stroke-linecap":"round",fill:"transparent",r:this.size/2-this.strokeWidth*2,cx:this.size/2,cy:this.size/2}),r("circle",{key:"aab242e5b4797bdbcf75146e55a73f080d8742c1",ref:e=>this.indicator=e,class:"progress-ring__indicator","stroke-width":this.strokeWidth,"stroke-linecap":"round",fill:"transparent",r:this.size/2-this.strokeWidth*2,cx:this.size/2,cy:this.size/2})),r("span",{key:"dea1cbc19b910dd1d07a10a56ae6b1700b0d5113",part:"label",class:"progress-ring__label"},r("slot",{key:"a00bf6f710f3e65dfc1bc645a808aba2fabe0d40"})))}static get watchers(){return{percentage:["handlePercentageChange"]}}};i.style=t;export{i as six_progress_ring};
|
|
2
|
+
//# sourceMappingURL=p-62a1f514.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixProgressRingCss","SixProgressRingStyle0","SixProgressRing","handlePercentageChange","this","updateProgress","componentDidLoad","_a","indicator","r","radius","baseVal","value","circumference","Math","PI","offset","percentage","style","strokeDasharray","strokeDashoffset","render","h","key","part","class","width","size","height","strokeWidth","fill","cx","cy","ref","el"],"sources":["src/components/six-progress-ring/six-progress-ring.scss?tag=six-progress-ring&encapsulation=shadow","src/components/six-progress-ring/six-progress-ring.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --track-color: The track color.\n * @prop --indicator-color: The indicator color.\n */\n:host {\n --track-color: var(--six-progress-track-color);\n --indicator-color: var(--six-progress-indicator-color);\n\n display: inline-flex;\n}\n\n.progress-ring {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.progress-ring__image {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n\n.progress-ring__track {\n stroke: var(--track-color);\n}\n\n.progress-ring__indicator {\n stroke: var(--indicator-color);\n transition: 0.35s stroke-dashoffset, 0.35s stroke;\n}\n\n.progress-ring__label {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n user-select: none;\n font-family: var(--six-font-family);\n}\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - A label to show inside the ring.\n *\n * @part base - The component's base wrapper.\n * @part label - The progress ring label.\n */\n\n@Component({\n tag: 'six-progress-ring',\n styleUrl: 'six-progress-ring.scss',\n shadow: true,\n})\nexport class SixProgressRing {\n private indicator?: SVGCircleElement;\n\n /** The size of the progress ring in pixels. */\n @Prop() size = 128;\n\n /** The stroke width of the progress ring in pixels. */\n @Prop() strokeWidth = 4;\n\n /** The current progress percentage, 0 - 100. */\n @Prop() percentage = 0;\n\n @Watch('percentage')\n handlePercentageChange() {\n this.updateProgress();\n }\n\n componentDidLoad() {\n this.updateProgress();\n }\n\n private updateProgress() {\n if (this.indicator?.r == null) return;\n\n const radius = this.indicator.r.baseVal.value;\n const circumference = radius * 2 * Math.PI;\n const offset = circumference - (this.percentage / 100) * circumference;\n\n this.indicator.style.strokeDasharray = `${circumference} ${circumference}`;\n this.indicator.style.strokeDashoffset = `${offset}`;\n }\n\n render() {\n return (\n <div part=\"base\" class=\"progress-ring\">\n <svg class=\"progress-ring__image\" width={this.size} height={this.size}>\n <circle\n class=\"progress-ring__track\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n\n <circle\n ref={(el) => (this.indicator = el as SVGCircleElement)}\n class=\"progress-ring__indicator\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n </svg>\n\n <span part=\"label\" class=\"progress-ring__label\">\n <slot />\n </span>\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAqB,mvBAC3B,MAAAC,EAAeD,E,MCkBFE,EAAe,M,mCAIX,I,iBAGO,E,gBAGD,C,CAGrB,sBAAAC,GACEC,KAAKC,gB,CAGP,gBAAAC,GACEF,KAAKC,gB,CAGC,cAAAA,G,MACN,KAAIE,EAAAH,KAAKI,aAAS,MAAAD,SAAA,SAAAA,EAAEE,IAAK,KAAM,OAE/B,MAAMC,EAASN,KAAKI,UAAUC,EAAEE,QAAQC,MACxC,MAAMC,EAAgBH,EAAS,EAAII,KAAKC,GACxC,MAAMC,EAASH,EAAiBT,KAAKa,WAAa,IAAOJ,EAEzDT,KAAKI,UAAUU,MAAMC,gBAAkB,GAAGN,KAAiBA,IAC3DT,KAAKI,UAAUU,MAAME,iBAAmB,GAAGJ,G,CAG7C,MAAAK,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,KAAK,OAAOC,MAAM,iBACrBH,EAAA,OAAAC,IAAA,2CAAKE,MAAM,uBAAuBC,MAAOtB,KAAKuB,KAAMC,OAAQxB,KAAKuB,MAC/DL,EAAA,UAAAC,IAAA,2CACEE,MAAM,uBAAsB,eACdrB,KAAKyB,YAAW,iBACf,QACfC,KAAK,cACLrB,EAAGL,KAAKuB,KAAO,EAAIvB,KAAKyB,YAAc,EACtCE,GAAI3B,KAAKuB,KAAO,EAChBK,GAAI5B,KAAKuB,KAAO,IAGlBL,EAAA,UAAAC,IAAA,2CACEU,IAAMC,GAAQ9B,KAAKI,UAAY0B,EAC/BT,MAAM,2BAA0B,eAClBrB,KAAKyB,YAAW,iBACf,QACfC,KAAK,cACLrB,EAAGL,KAAKuB,KAAO,EAAIvB,KAAKyB,YAAc,EACtCE,GAAI3B,KAAKuB,KAAO,EAChBK,GAAI5B,KAAKuB,KAAO,KAIpBL,EAAA,QAAAC,IAAA,2CAAMC,KAAK,QAAQC,MAAM,wBACvBH,EAAA,QAAAC,IAAA,8C"}
|
|
1
|
+
{"version":3,"names":["sixProgressRingCss","SixProgressRingStyle0","SixProgressRing","handlePercentageChange","this","updateProgress","componentDidLoad","_a","indicator","r","radius","baseVal","value","circumference","Math","PI","offset","percentage","style","strokeDasharray","strokeDashoffset","render","h","key","part","class","width","size","height","strokeWidth","fill","cx","cy","ref","el"],"sources":["src/components/six-progress-ring/six-progress-ring.scss?tag=six-progress-ring&encapsulation=shadow","src/components/six-progress-ring/six-progress-ring.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --track-color: The track color.\n * @prop --indicator-color: The indicator color.\n */\n:host {\n --track-color: var(--six-progress-track-color);\n --indicator-color: var(--six-progress-indicator-color);\n\n display: inline-flex;\n}\n\n.progress-ring {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.progress-ring__image {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n\n.progress-ring__track {\n stroke: var(--track-color);\n}\n\n.progress-ring__indicator {\n stroke: var(--indicator-color);\n transition: 0.35s stroke-dashoffset, 0.35s stroke;\n}\n\n.progress-ring__label {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n user-select: none;\n font-family: var(--six-font-family);\n}\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - A label to show inside the ring.\n *\n * @part base - The component's base wrapper.\n * @part label - The progress ring label.\n */\n\n@Component({\n tag: 'six-progress-ring',\n styleUrl: 'six-progress-ring.scss',\n shadow: true,\n})\nexport class SixProgressRing {\n private indicator?: SVGCircleElement;\n\n /** The size of the progress ring in pixels. */\n @Prop() size = 128;\n\n /** The stroke width of the progress ring in pixels. */\n @Prop() strokeWidth = 4;\n\n /** The current progress percentage, 0 - 100. */\n @Prop() percentage = 0;\n\n @Watch('percentage')\n handlePercentageChange() {\n this.updateProgress();\n }\n\n componentDidLoad() {\n this.updateProgress();\n }\n\n private updateProgress() {\n if (this.indicator?.r == null) return;\n\n const radius = this.indicator.r.baseVal.value;\n const circumference = radius * 2 * Math.PI;\n const offset = circumference - (this.percentage / 100) * circumference;\n\n this.indicator.style.strokeDasharray = `${circumference} ${circumference}`;\n this.indicator.style.strokeDashoffset = `${offset}`;\n }\n\n render() {\n return (\n <div part=\"base\" class=\"progress-ring\">\n <svg class=\"progress-ring__image\" width={this.size} height={this.size}>\n <circle\n class=\"progress-ring__track\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n\n <circle\n ref={(el) => (this.indicator = el as SVGCircleElement)}\n class=\"progress-ring__indicator\"\n stroke-width={this.strokeWidth}\n stroke-linecap=\"round\"\n fill=\"transparent\"\n r={this.size / 2 - this.strokeWidth * 2}\n cx={this.size / 2}\n cy={this.size / 2}\n />\n </svg>\n\n <span part=\"label\" class=\"progress-ring__label\">\n <slot />\n </span>\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAqB,mvBAC3B,MAAAC,EAAeD,E,MCkBFE,EAAe,M,mCAIX,I,iBAGO,E,gBAGD,C,CAGrB,sBAAAC,GACEC,KAAKC,gB,CAGP,gBAAAC,GACEF,KAAKC,gB,CAGC,cAAAA,G,MACN,KAAIE,EAAAH,KAAKI,aAAS,MAAAD,SAAA,SAAAA,EAAEE,IAAK,KAAM,OAE/B,MAAMC,EAASN,KAAKI,UAAUC,EAAEE,QAAQC,MACxC,MAAMC,EAAgBH,EAAS,EAAII,KAAKC,GACxC,MAAMC,EAASH,EAAiBT,KAAKa,WAAa,IAAOJ,EAEzDT,KAAKI,UAAUU,MAAMC,gBAAkB,GAAGN,KAAiBA,IAC3DT,KAAKI,UAAUU,MAAME,iBAAmB,GAAGJ,G,CAG7C,MAAAK,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,KAAK,OAAOC,MAAM,iBACrBH,EAAA,OAAAC,IAAA,2CAAKE,MAAM,uBAAuBC,MAAOtB,KAAKuB,KAAMC,OAAQxB,KAAKuB,MAC/DL,EAAA,UAAAC,IAAA,2CACEE,MAAM,uBAAsB,eACdrB,KAAKyB,YAAW,iBACf,QACfC,KAAK,cACLrB,EAAGL,KAAKuB,KAAO,EAAIvB,KAAKyB,YAAc,EACtCE,GAAI3B,KAAKuB,KAAO,EAChBK,GAAI5B,KAAKuB,KAAO,IAGlBL,EAAA,UAAAC,IAAA,2CACEU,IAAMC,GAAQ9B,KAAKI,UAAY0B,EAC/BT,MAAM,2BAA0B,eAClBrB,KAAKyB,YAAW,iBACf,QACfC,KAAK,cACLrB,EAAGL,KAAKuB,KAAO,EAAIvB,KAAKyB,YAAc,EACtCE,GAAI3B,KAAKuB,KAAO,EAChBK,GAAI5B,KAAKuB,KAAO,KAIpBL,EAAA,QAAAC,IAAA,2CAAMC,KAAK,QAAQC,MAAM,wBACvBH,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["activeModals","Modal","constructor","element","options","this","handleFocusIn","bind","activate","push","document","addEventListener","deactivate","filter","modal","removeEventListener","isActive","length","event","target","tagName","toLowerCase","closest","_a","onFocusOut","_b"],"sources":["src/utils/modal.ts"],"sourcesContent":["interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"],"mappings":"AAIA,IAAIA,EAA8B,G,MAEbC,EAInB,WAAAC,CAAYC,EAAsBC,GAChCC,KAAKF,QAAUA,EACfE,KAAKD,QAAUA,EACfC,KAAKC,cAAgBD,KAAKC,cAAcC,KAAKF,K,CAG/C,QAAAG,GACER,EAAaS,KAAKJ,KAAKF,SACvBO,SAASC,iBAAiB,UAAWN,KAAKC,c,CAG5C,UAAAM,GACEZ,EAAeA,EAAaa,QAAQC,GAAUA,IAAUT,KAAKF,UAC7DO,SAASK,oBAAoB,UAAWV,KAAKC,c,CAG/C,QAAAU,GAEE,OAAOhB,EAAaA,EAAaiB,OAAS,KAAOZ,KAAKF,O,CAGxD,aAAAG,CAAcY,G,QACZ,MAAMC,EAASD,EAAMC,OACrB,MAAMC,EAAUf,KAAKF,QAAQiB,QAAQC,cAGrC,GAAIhB,KAAKW,YAAcG,EAAOG,QAAQF,KAAaf,KAAKF,iBAAkBoB,EAAAlB,KAAKD,WAAO,MAAAmB,SAAA,SAAAA,EAAEC,cAAe,WAAY,EACjHC,EAAApB,KAAKD,WAAO,MAAAqB,SAAA,SAAAA,EAAED,WAAWN,E"}
|
|
1
|
+
{"version":3,"names":["activeModals","Modal","constructor","element","options","this","handleFocusIn","bind","activate","push","document","addEventListener","deactivate","filter","modal","removeEventListener","isActive","length","event","target","tagName","toLowerCase","closest","_a","onFocusOut","_b"],"sources":["src/utils/modal.ts"],"sourcesContent":["interface ModalOptions {\n onFocusOut?: (event: Event) => void;\n}\n\nlet activeModals: HTMLElement[] = [];\n\nexport default class Modal {\n element: HTMLElement;\n options?: ModalOptions;\n\n constructor(element: HTMLElement, options?: ModalOptions) {\n this.element = element;\n this.options = options;\n this.handleFocusIn = this.handleFocusIn.bind(this);\n }\n\n activate() {\n activeModals.push(this.element);\n document.addEventListener('focusin', this.handleFocusIn);\n }\n\n deactivate() {\n activeModals = activeModals.filter((modal) => modal !== this.element);\n document.removeEventListener('focusin', this.handleFocusIn);\n }\n\n isActive() {\n // The \"active\" modal is always the most recent one shown\n return activeModals[activeModals.length - 1] === this.element;\n }\n\n handleFocusIn(event: Event) {\n const target = event.target as HTMLElement;\n const tagName = this.element.tagName.toLowerCase();\n\n // If focus is lost while the modal is active, run the onFocusOut callback\n if (this.isActive() && target.closest(tagName) !== this.element && typeof this.options?.onFocusOut === 'function') {\n this.options?.onFocusOut(event);\n }\n }\n}\n"],"mappings":"AAIA,IAAIA,EAA8B,G,MAEbC,EAInB,WAAAC,CAAYC,EAAsBC,GAChCC,KAAKF,QAAUA,EACfE,KAAKD,QAAUA,EACfC,KAAKC,cAAgBD,KAAKC,cAAcC,KAAKF,K,CAG/C,QAAAG,GACER,EAAaS,KAAKJ,KAAKF,SACvBO,SAASC,iBAAiB,UAAWN,KAAKC,c,CAG5C,UAAAM,GACEZ,EAAeA,EAAaa,QAAQC,GAAUA,IAAUT,KAAKF,UAC7DO,SAASK,oBAAoB,UAAWV,KAAKC,c,CAG/C,QAAAU,GAEE,OAAOhB,EAAaA,EAAaiB,OAAS,KAAOZ,KAAKF,O,CAGxD,aAAAG,CAAcY,G,QACZ,MAAMC,EAASD,EAAMC,OACrB,MAAMC,EAAUf,KAAKF,QAAQiB,QAAQC,cAGrC,GAAIhB,KAAKW,YAAcG,EAAOG,QAAQF,KAAaf,KAAKF,iBAAkBoB,EAAAlB,KAAKD,WAAO,MAAAmB,SAAA,SAAAA,EAAEC,cAAe,WAAY,EACjHC,EAAApB,KAAKD,WAAO,MAAAqB,SAAA,SAAAA,EAAED,WAAWN,E","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as s,H as t,g as e}from"./p-48118ce8.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;font-family:var(--six-font-family)}.tab-panel{border:solid 1px transparent;padding:20px 20px}";const i=o;let r=0;const b=class{constructor(s){a(this,s);this.componentId=`tab-panel-${++r}`;this.name="";this.active=false}render(){return s(t,{key:"71a56c2593d07ab74bfca2036c6c48015800cb3a",id:this.host.id||this.componentId,style:{display:this.active?"block":"none"}},s("div",{key:"f9c9c0f9bcb3365d5919e721e2ce85b96310aa50",part:"base",class:"tab-panel",role:"tabpanel","aria-selected":this.active?"true":"false","aria-hidden":this.active?"false":"true"},s("slot",{key:"a78c62e6fa855d1181069c3c99c8f0bba23fea17"})))}get host(){return e(this)}};b.style=i;export{b as six_tab_panel};
|
|
2
|
+
//# sourceMappingURL=p-6513b8ce.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixTabPanelCss","SixTabPanelStyle0","id","SixTabPanel","this","componentId","render","h","Host","key","host","style","display","active","part","class","role"],"sources":["src/components/six-tab-panel/six-tab-panel.scss?tag=six-tab-panel&encapsulation=shadow","src/components/six-tab-panel/six-tab-panel.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.tab-panel {\n border: solid 1px transparent;\n padding: 20px 20px;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab panel's content.\n *\n * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-tab-panel',\n styleUrl: 'six-tab-panel.scss',\n shadow: true,\n})\nexport class SixTabPanel {\n private componentId = `tab-panel-${++id}`;\n\n @Element() host!: HTMLSixTabPanelElement;\n\n /** The tab panel's name. */\n @Prop() name = '';\n\n /** When true, the tab panel will be shown. */\n @Prop({ reflect: true }) active = false;\n\n render() {\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId} style={{ display: this.active ? 'block' : 'none' }}>\n <div\n part=\"base\"\n class=\"tab-panel\"\n role=\"tabpanel\"\n aria-selected={this.active ? 'true' : 'false'}\n aria-hidden={this.active ? 'false' : 'true'}\n >\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAiB,6NACvB,MAAAC,EAAeD,ECCf,IAAIE,EAAK,E,MAkBIC,EAAW,M,yBACdC,KAAAC,YAAc,eAAeH,I,UAKtB,G,YAGmB,K,CAElC,MAAAI,GACE,OAEEC,EAACC,EAAI,CAAAC,IAAA,2CAACP,GAAIE,KAAKM,KAAKR,IAAME,KAAKC,YAAaM,MAAO,CAAEC,QAASR,KAAKS,OAAS,QAAU,SACpFN,EAAA,OAAAE,IAAA,2CACEK,KAAK,OACLC,MAAM,YACNC,KAAK,WAAU,gBACAZ,KAAKS,OAAS,OAAS,QAAO,cAChCT,KAAKS,OAAS,QAAU,QAErCN,EAAA,QAAAE,IAAA,8C"}
|
|
1
|
+
{"version":3,"names":["sixTabPanelCss","SixTabPanelStyle0","id","SixTabPanel","this","componentId","render","h","Host","key","host","style","display","active","part","class","role"],"sources":["src/components/six-tab-panel/six-tab-panel.scss?tag=six-tab-panel&encapsulation=shadow","src/components/six-tab-panel/six-tab-panel.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.tab-panel {\n border: solid 1px transparent;\n padding: 20px 20px;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab panel's content.\n *\n * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-tab-panel',\n styleUrl: 'six-tab-panel.scss',\n shadow: true,\n})\nexport class SixTabPanel {\n private componentId = `tab-panel-${++id}`;\n\n @Element() host!: HTMLSixTabPanelElement;\n\n /** The tab panel's name. */\n @Prop() name = '';\n\n /** When true, the tab panel will be shown. */\n @Prop({ reflect: true }) active = false;\n\n render() {\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId} style={{ display: this.active ? 'block' : 'none' }}>\n <div\n part=\"base\"\n class=\"tab-panel\"\n role=\"tabpanel\"\n aria-selected={this.active ? 'true' : 'false'}\n aria-hidden={this.active ? 'false' : 'true'}\n >\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAiB,6NACvB,MAAAC,EAAeD,ECCf,IAAIE,EAAK,E,MAkBIC,EAAW,M,yBACdC,KAAAC,YAAc,eAAeH,I,UAKtB,G,YAGmB,K,CAElC,MAAAI,GACE,OAEEC,EAACC,EAAI,CAAAC,IAAA,2CAACP,GAAIE,KAAKM,KAAKR,IAAME,KAAKC,YAAaM,MAAO,CAAEC,QAASR,KAAKS,OAAS,QAAU,SACpFN,EAAA,OAAAE,IAAA,2CACEK,KAAK,OACLC,MAAM,YACNC,KAAK,WAAU,gBACAZ,KAAKS,OAAS,OAAS,QAAO,cAChCT,KAAKS,OAAS,QAAU,QAErCN,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as o,g as r}from"./p-05eb1bab.js";import{F as e}from"./p-605bdd81.js";import{h as s}from"./p-0cebf1d2.js";import{E as n}from"./p-8bfb4bfc.js";import{s as l}from"./p-842b492e.js";const a=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:"*";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}.input{display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--six-font-family);font-weight:var(--six-input-font-weight);letter-spacing:var(--six-input-letter-spacing);background-color:var(--six-input-background-color);border:solid var(--six-border-width) var(--six-input-border-color);vertical-align:middle;overflow:hidden;transition:var(--six-transition-fast) color, var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;cursor:text}.input--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.input:hover:not(.input--disabled){background-color:var(--six-input-background-color-hover);border-color:var(--six-input-border-color-hover)}.input:hover:not(.input--disabled) .input__control{color:var(--six-input-color-hover)}.input:hover.input--dropdown-search{border-color:transparent}.input--dropdown-search{border-color:transparent}.input--dropdown-search.input--focused{border-color:var(--six-input-border-color)}.input.input--focused:not(.input--disabled){background-color:var(--six-input-background-color-focus);border-bottom-color:var(--six-input-border-color-focus);box-shadow:0 1px 0 0 var(--six-input-border-color-focus)}.input.input--focused:not(.input--disabled):not(.input--line){border-color:var(--six-input-border-color-focus);box-shadow:var(--six-input-focus-shadow)}.input.input--focused:not(.input--disabled) .input__control{color:var(--six-input-color-focus)}.input.input--disabled{background-color:var(--six-input-background-color-disabled);border-color:var(--six-input-border-color-disabled);cursor:not-allowed}.input.input--disabled .input__control{color:var(--six-input-color-disabled)}.input.input--disabled .input__control::placeholder{color:var(--six-input-placeholder-color-disabled)}.input.input--invalid:not(.input--disabled):not(.input--focused){border-bottom-color:var(--six-input-border-color-danger)}.input.input--invalid:not(.input--disabled):not(.input--focused):not(.input--line){border-color:var(--six-input-border-color-danger)}.input__control{flex:1 1 auto;width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;color:var(--six-input-color);border:none;background:none;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--six-height-large) var(--six-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--six-color-primary-500)}.input__control::placeholder{color:var(--six-input-placeholder-color);user-select:none}.input__control:focus{outline:none}.input__control::-ms-reveal{display:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}.input__prefix ::slotted(six-icon),.input__suffix ::slotted(six-icon){color:var(--six-input-icon-color)}.input.input--disabled ::slotted(six-icon){cursor:not-allowed}.input--small{border-radius:var(--six-input-border-radius-small);font-size:var(--six-input-font-size-small);height:var(--six-height-small)}.input--small .input__control{height:calc(var(--six-height-small) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-small)}.input--small .input__control__prefix{margin:0 var(--six-input-prefix-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{margin-right:var(--six-input-spacing-small)}.input--small .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-small)}.input--small .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-small)}.input--medium{border-radius:var(--six-input-border-radius-medium);font-size:var(--six-input-font-size-medium);height:var(--six-height-medium)}.input--medium .input__control{height:calc(var(--six-height-medium) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-medium)}.input--medium .input__control__prefix{margin:0 var(--six-input-prefix-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{margin-right:var(--six-input-spacing-medium)}.input--medium .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-medium)}.input--medium .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-medium)}.input--large{border-radius:var(--six-input-border-radius-large);font-size:var(--six-input-font-size-large);height:var(--six-height-large)}.input--large .input__control{height:calc(var(--six-height-large) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-large)}.input--large .input__control__prefix{margin:0 var(--six-input-prefix-spacing-large)}.input--large .input__clear,.input--large .input__password-toggle{margin-right:var(--six-input-spacing-large)}.input--large .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-large)}.input--large .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-large)}.input--pill.input--small{border-radius:var(--six-height-small)}.input--pill.input--medium{border-radius:var(--six-height-medium)}.input--pill.input--large{border-radius:var(--six-height-large)}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;padding:0;transition:var(--six-transition-fast) color;cursor:pointer}.input__clear:hover,.input__password-toggle:hover{color:var(--six-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}.input--empty .input__clear{visibility:hidden}';const u=a;const p={large:"medium",medium:"small",small:"xSmall"};let h=0;const c=class{constructor(o){i(this,o);this.sixChange=t(this,"six-input-change",7);this.sixClear=t(this,"six-input-clear",7);this.sixInput=t(this,"six-input-input",7);this.sixFocus=t(this,"six-input-focus",7);this.sixBlur=t(this,"six-input-blur",7);this.inputId=`input-${++h}`;this.labelId=`input-label-${h}`;this.helpTextId=`input-help-text-${h}`;this.errorTextId=`input-error-text-${h}`;this.eventListeners=new n;this.handleChange=i=>{i.stopPropagation();if(this.nativeInput!=null){this.value=this.nativeInput.value;this.sixChange.emit()}};this.handleInput=i=>{i.stopPropagation();if(this.nativeInput!=null){this.value=this.nativeInput.value;this.sixInput.emit()}};this.handleBlur=()=>{this.hasFocus=false;this.sixBlur.emit()};this.handleFocus=()=>{this.hasFocus=true;this.sixFocus.emit()};this.handleClearClick=i=>{this.value="";this.sixClear.emit();this.sixInput.emit();this.sixChange.emit();if(this.nativeInput!=null){this.nativeInput.focus()}i.stopPropagation()};this.handleKeyDown=i=>{const t=i.metaKey||i.ctrlKey||i.shiftKey||i.altKey;if(i.key==="Enter"&&!t){setTimeout((()=>{if(!i.defaultPrevented&&!i.isComposing){l(this.host)}}))}};this.handlePasswordToggle=()=>{this.isPasswordVisible=!this.isPasswordVisible};this.handleSlotChange=()=>{this.hasHelpTextSlot=s(this.host,"help-text");this.hasLabelSlot=s(this.host,"label");this.hasErrorSlot=s(this.host,"error-text")};this.hasFocus=false;this.hasHelpTextSlot=false;this.hasLabelSlot=false;this.hasErrorSlot=false;this.isPasswordVisible=false;this.type="text";this.size="medium";this.name="";this.value="";this.pill=false;this.helpText="";this.placeholder=undefined;this.disabled=false;this.readonly=false;this.minlength=undefined;this.maxlength=undefined;this.min=undefined;this.max=undefined;this.step=undefined;this.pattern=undefined;this.dropdownSearch=false;this.required=false;this.autocapitalize="off";this.autocorrect="off";this.autocomplete="off";this.autofocus=false;this.spellcheck=false;this.label="";this.errorText="";this.errorTextCount=undefined;this.invalid=false;this.clearable=false;this.togglePassword=false;this.inputmode=undefined;this.line=false}handleLabelChange(){this.handleSlotChange()}handleValueChange(){this.value=this.getValue();if(this.nativeInput!=null&&this.nativeInput.value!==this.value){this.nativeInput.value=this.value}}connectedCallback(){var i;(i=this.host.shadowRoot)===null||i===void 0?void 0:i.addEventListener("slotchange",this.handleSlotChange);this.eventListeners.forward("six-input-input","input",this.host);this.eventListeners.forward("six-input-change","change",this.host);this.eventListeners.forward("six-input-focus","focus",this.host);this.eventListeners.forward("six-input-blur","blur",this.host)}componentWillLoad(){this.handleSlotChange()}disconnectedCallback(){var i;(i=this.host.shadowRoot)===null||i===void 0?void 0:i.removeEventListener("slotchange",this.handleSlotChange);this.eventListeners.removeAll()}async setFocus(i){var t;(t=this.nativeInput)===null||t===void 0?void 0:t.focus(i)}async removeFocus(){var i;(i=this.nativeInput)===null||i===void 0?void 0:i.blur()}async select(){var i;return(i=this.nativeInput)===null||i===void 0?void 0:i.select()}async setSelectionRange(i,t,o="none"){var r;return(r=this.nativeInput)===null||r===void 0?void 0:r.setSelectionRange(i,t,o)}async getSelectionRange(){var i,t,o,r,e,s;return{selectionStart:(t=(i=this.nativeInput)===null||i===void 0?void 0:i.selectionStart)!==null&&t!==void 0?t:undefined,selectionEnd:(r=(o=this.nativeInput)===null||o===void 0?void 0:o.selectionEnd)!==null&&r!==void 0?r:undefined,selectionDirection:(s=(e=this.nativeInput)===null||e===void 0?void 0:e.selectionDirection)!==null&&s!==void 0?s:undefined}}async setRangeText(i,t,o,r="preserve"){if(this.nativeInput==null){return}this.nativeInput.setRangeText(i,t,o,r);if(this.getValue()!==this.nativeInput.value){this.value=this.nativeInput.value;this.sixChange.emit();this.sixInput.emit()}}getValue(){var i;return((i=this.value)!==null&&i!==void 0?i:"").toString()}render(){return o(e,{key:"73c1694ce5e466407258d8d38303f3adcf50e150",inputId:this.inputId,label:this.label,labelId:this.labelId,hasLabelSlot:this.hasLabelSlot,helpTextId:this.helpTextId,helpText:this.helpText,hasHelpTextSlot:this.hasHelpTextSlot,errorTextId:this.errorTextId,errorText:this.errorText,errorTextCount:this.errorTextCount,hasErrorTextSlot:this.hasErrorSlot,size:this.size,disabled:this.disabled,required:this.required,displayError:this.invalid},o("div",{key:"0326b1027576d6de7980845a6dd95c9019c3169c",part:"base",class:{input:true,"input--small":this.size==="small","input--medium":this.size==="medium","input--large":this.size==="large","input--line":this.line,"input--pill":this.pill,"input--disabled":this.disabled,"input--dropdown-search":this.dropdownSearch,"input--focused":this.hasFocus,"input--empty":this.getValue().length===0,"input--invalid":this.invalid}},o("span",{key:"1949ec04d935c5cd2a225dfe967bfb7c53b815e1",part:"prefix",class:"input__prefix"},o("slot",{key:"cd1a905c2a3001271aa9c700fc5fa7dd3c010515",name:"prefix"})),o("input",{key:"5d4e05793017d078f06263ef72414cfedcb3cd30",part:"input",ref:i=>this.nativeInput=i,id:this.inputId,size:1,class:{input__control:true,input__control__prefix:s(this.host,"prefix")},type:this.type==="password"&&this.isPasswordVisible?"text":this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,minLength:this.minlength,maxLength:this.maxlength,min:this.min,max:this.max,step:this.step,value:this.getValue(),autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,spellcheck:this.spellcheck,pattern:this.pattern,required:this.required,inputMode:this.inputmode,"aria-labelledby":this.labelId,"aria-describedby":this.helpTextId,"aria-invalid":this.invalid?"true":"false",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,"data-testid":"input-control"}),this.clearable&&!this.disabled&&o("button",{part:"clear-button",class:"input__clear",type:"button",onClick:this.handleClearClick,tabindex:"-1","data-testid":"input-clear-button"},o("slot",{name:"clear-icon"},o("six-icon",{size:p[this.size]},"clear"))),this.togglePassword&&o("button",{part:"password-toggle-button",class:"input__password-toggle",type:"button",onClick:this.handlePasswordToggle,tabindex:"-1"},this.isPasswordVisible?o("slot",{name:"show-password-icon"},o("six-icon",{size:p[this.size]},"visibility_off")):o("slot",{name:"hide-password-icon"},o("six-icon",{size:p[this.size]},"visibility"))),o("span",{key:"ab640af8cca8aa5beca57a4e4acd3e9b25833ba0",part:"suffix",class:"input__suffix"},o("slot",{key:"8384a4f9b7ecc8979a69f9a1fa1ded302a73611a",name:"suffix"}))))}get host(){return r(this)}static get watchers(){return{helpText:["handleLabelChange"],errorText:["handleLabelChange"],label:["handleLabelChange"],value:["handleValueChange"]}}};c.style=u;export{c as six_input};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as o,g as r}from"./p-48118ce8.js";import{F as e}from"./p-a04460e3.js";import{h as s}from"./p-0cebf1d2.js";import{E as n}from"./p-8bfb4bfc.js";import{s as l}from"./p-842b492e.js";const a=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:"*";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}.input{display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--six-font-family);font-weight:var(--six-input-font-weight);letter-spacing:var(--six-input-letter-spacing);background-color:var(--six-input-background-color);border:solid var(--six-border-width) var(--six-input-border-color);vertical-align:middle;overflow:hidden;transition:var(--six-transition-fast) color, var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;cursor:text}.input--line{border:none;border-bottom:solid var(--six-border-width) var(--six-input-border-color)}.input:hover:not(.input--disabled){background-color:var(--six-input-background-color-hover);border-color:var(--six-input-border-color-hover)}.input:hover:not(.input--disabled) .input__control{color:var(--six-input-color-hover)}.input:hover.input--dropdown-search{border-color:transparent}.input--dropdown-search{border-color:transparent}.input--dropdown-search.input--focused{border-color:var(--six-input-border-color)}.input.input--focused:not(.input--disabled){background-color:var(--six-input-background-color-focus);border-bottom-color:var(--six-input-border-color-focus);box-shadow:0 1px 0 0 var(--six-input-border-color-focus)}.input.input--focused:not(.input--disabled):not(.input--line){border-color:var(--six-input-border-color-focus);box-shadow:var(--six-input-focus-shadow)}.input.input--focused:not(.input--disabled) .input__control{color:var(--six-input-color-focus)}.input.input--disabled{background-color:var(--six-input-background-color-disabled);border-color:var(--six-input-border-color-disabled);cursor:not-allowed}.input.input--disabled .input__control{color:var(--six-input-color-disabled)}.input.input--disabled .input__control::placeholder{color:var(--six-input-placeholder-color-disabled)}.input.input--invalid:not(.input--disabled):not(.input--focused){border-bottom-color:var(--six-input-border-color-danger)}.input.input--invalid:not(.input--disabled):not(.input--focused):not(.input--line){border-color:var(--six-input-border-color-danger)}.input__control{flex:1 1 auto;width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;color:var(--six-input-color);border:none;background:none;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--six-height-large) var(--six-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--six-color-primary-500)}.input__control::placeholder{color:var(--six-input-placeholder-color);user-select:none}.input__control:focus{outline:none}.input__control::-ms-reveal{display:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}.input__prefix ::slotted(six-icon),.input__suffix ::slotted(six-icon){color:var(--six-input-icon-color)}.input.input--disabled ::slotted(six-icon){cursor:not-allowed}.input--small{border-radius:var(--six-input-border-radius-small);font-size:var(--six-input-font-size-small);height:var(--six-height-small)}.input--small .input__control{height:calc(var(--six-height-small) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-small)}.input--small .input__control__prefix{margin:0 var(--six-input-prefix-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{margin-right:var(--six-input-spacing-small)}.input--small .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-small)}.input--small .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-small)}.input--medium{border-radius:var(--six-input-border-radius-medium);font-size:var(--six-input-font-size-medium);height:var(--six-height-medium)}.input--medium .input__control{height:calc(var(--six-height-medium) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-medium)}.input--medium .input__control__prefix{margin:0 var(--six-input-prefix-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{margin-right:var(--six-input-spacing-medium)}.input--medium .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-medium)}.input--medium .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-medium)}.input--large{border-radius:var(--six-input-border-radius-large);font-size:var(--six-input-font-size-large);height:var(--six-height-large)}.input--large .input__control{height:calc(var(--six-height-large) - var(--six-border-width) * 2);margin:0 var(--six-input-spacing-large)}.input--large .input__control__prefix{margin:0 var(--six-input-prefix-spacing-large)}.input--large .input__clear,.input--large .input__password-toggle{margin-right:var(--six-input-spacing-large)}.input--large .input__prefix ::slotted(*){margin-left:var(--six-input-prefix-spacing-large)}.input--large .input__suffix ::slotted(*){margin-right:var(--six-input-prefix-spacing-large)}.input--pill.input--small{border-radius:var(--six-height-small)}.input--pill.input--medium{border-radius:var(--six-height-medium)}.input--pill.input--large{border-radius:var(--six-height-large)}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;font-size:inherit;color:var(--six-input-icon-color);border:none;background:none;padding:0;transition:var(--six-transition-fast) color;cursor:pointer}.input__clear:hover,.input__password-toggle:hover{color:var(--six-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}.input--empty .input__clear{visibility:hidden}';const u=a;const p={large:"medium",medium:"small",small:"xSmall"};let h=0;const c=class{constructor(o){i(this,o);this.sixChange=t(this,"six-input-change",7);this.sixClear=t(this,"six-input-clear",7);this.sixInput=t(this,"six-input-input",7);this.sixFocus=t(this,"six-input-focus",7);this.sixBlur=t(this,"six-input-blur",7);this.inputId=`input-${++h}`;this.labelId=`input-label-${h}`;this.helpTextId=`input-help-text-${h}`;this.errorTextId=`input-error-text-${h}`;this.eventListeners=new n;this.handleChange=i=>{i.stopPropagation();if(this.nativeInput!=null){this.value=this.nativeInput.value;this.sixChange.emit()}};this.handleInput=i=>{i.stopPropagation();if(this.nativeInput!=null){this.value=this.nativeInput.value;this.sixInput.emit()}};this.handleBlur=()=>{this.hasFocus=false;this.sixBlur.emit()};this.handleFocus=()=>{this.hasFocus=true;this.sixFocus.emit()};this.handleClearClick=i=>{this.value="";this.sixClear.emit();this.sixInput.emit();this.sixChange.emit();if(this.nativeInput!=null){this.nativeInput.focus()}i.stopPropagation()};this.handleKeyDown=i=>{const t=i.metaKey||i.ctrlKey||i.shiftKey||i.altKey;if(i.key==="Enter"&&!t){setTimeout((()=>{if(!i.defaultPrevented&&!i.isComposing){l(this.host)}}))}};this.handlePasswordToggle=()=>{this.isPasswordVisible=!this.isPasswordVisible};this.handleSlotChange=()=>{this.hasHelpTextSlot=s(this.host,"help-text");this.hasLabelSlot=s(this.host,"label");this.hasErrorSlot=s(this.host,"error-text")};this.hasFocus=false;this.hasHelpTextSlot=false;this.hasLabelSlot=false;this.hasErrorSlot=false;this.isPasswordVisible=false;this.type="text";this.size="medium";this.name="";this.value="";this.pill=false;this.helpText="";this.placeholder=undefined;this.disabled=false;this.readonly=false;this.minlength=undefined;this.maxlength=undefined;this.min=undefined;this.max=undefined;this.step=undefined;this.pattern=undefined;this.dropdownSearch=false;this.required=false;this.autocapitalize="off";this.autocorrect="off";this.autocomplete="off";this.autofocus=false;this.spellcheck=false;this.label="";this.errorText="";this.errorTextCount=undefined;this.invalid=false;this.clearable=false;this.togglePassword=false;this.inputmode=undefined;this.line=false}handleLabelChange(){this.handleSlotChange()}handleValueChange(){this.value=this.getValue();if(this.nativeInput!=null&&this.nativeInput.value!==this.value){this.nativeInput.value=this.value}}connectedCallback(){var i;(i=this.host.shadowRoot)===null||i===void 0?void 0:i.addEventListener("slotchange",this.handleSlotChange);this.eventListeners.forward("six-input-input","input",this.host);this.eventListeners.forward("six-input-change","change",this.host);this.eventListeners.forward("six-input-focus","focus",this.host);this.eventListeners.forward("six-input-blur","blur",this.host)}componentWillLoad(){this.handleSlotChange()}disconnectedCallback(){var i;(i=this.host.shadowRoot)===null||i===void 0?void 0:i.removeEventListener("slotchange",this.handleSlotChange);this.eventListeners.removeAll()}async setFocus(i){var t;(t=this.nativeInput)===null||t===void 0?void 0:t.focus(i)}async removeFocus(){var i;(i=this.nativeInput)===null||i===void 0?void 0:i.blur()}async select(){var i;return(i=this.nativeInput)===null||i===void 0?void 0:i.select()}async setSelectionRange(i,t,o="none"){var r;return(r=this.nativeInput)===null||r===void 0?void 0:r.setSelectionRange(i,t,o)}async getSelectionRange(){var i,t,o,r,e,s;return{selectionStart:(t=(i=this.nativeInput)===null||i===void 0?void 0:i.selectionStart)!==null&&t!==void 0?t:undefined,selectionEnd:(r=(o=this.nativeInput)===null||o===void 0?void 0:o.selectionEnd)!==null&&r!==void 0?r:undefined,selectionDirection:(s=(e=this.nativeInput)===null||e===void 0?void 0:e.selectionDirection)!==null&&s!==void 0?s:undefined}}async setRangeText(i,t,o,r="preserve"){if(this.nativeInput==null){return}this.nativeInput.setRangeText(i,t,o,r);if(this.getValue()!==this.nativeInput.value){this.value=this.nativeInput.value;this.sixChange.emit();this.sixInput.emit()}}getValue(){var i;return((i=this.value)!==null&&i!==void 0?i:"").toString()}render(){return o(e,{key:"8db2b6cf7a3065d1fd4c958c1301ffa459e2ce37",inputId:this.inputId,label:this.label,labelId:this.labelId,hasLabelSlot:this.hasLabelSlot,helpTextId:this.helpTextId,helpText:this.helpText,hasHelpTextSlot:this.hasHelpTextSlot,errorTextId:this.errorTextId,errorText:this.errorText,errorTextCount:this.errorTextCount,hasErrorTextSlot:this.hasErrorSlot,size:this.size,disabled:this.disabled,required:this.required,displayError:this.invalid},o("div",{key:"4b2564db4347ab7bd6cb44c51f65770fcb6ea816",part:"base",class:{input:true,"input--small":this.size==="small","input--medium":this.size==="medium","input--large":this.size==="large","input--line":this.line,"input--pill":this.pill,"input--disabled":this.disabled,"input--dropdown-search":this.dropdownSearch,"input--focused":this.hasFocus,"input--empty":this.getValue().length===0,"input--invalid":this.invalid}},o("span",{key:"874d1edb40d14490dc100af7c85f618883c9cd63",part:"prefix",class:"input__prefix"},o("slot",{key:"eee751e03fe42da62100cc2fb18bcb46cbba76e1",name:"prefix"})),o("input",{key:"b89a34876aae5f073c73495f79c4b0b47cdf10e3",part:"input",ref:i=>this.nativeInput=i,id:this.inputId,size:1,class:{input__control:true,input__control__prefix:s(this.host,"prefix")},type:this.type==="password"&&this.isPasswordVisible?"text":this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readonly:this.readonly,minLength:this.minlength,maxLength:this.maxlength,min:this.min,max:this.max,step:this.step,value:this.getValue(),autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,spellcheck:this.spellcheck,pattern:this.pattern,required:this.required,inputMode:this.inputmode,"aria-labelledby":this.labelId,"aria-describedby":this.helpTextId,"aria-invalid":this.invalid?"true":"false",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,"data-testid":"input-control"}),this.clearable&&!this.disabled&&o("button",{key:"248251ba299d52bf44583e7acb9bbe823d51c724",part:"clear-button",class:"input__clear",type:"button",onClick:this.handleClearClick,tabindex:"-1","data-testid":"input-clear-button"},o("slot",{key:"2e353a833fd696a55de542d5df69a9cb33957b23",name:"clear-icon"},o("six-icon",{key:"ceac32b1b954c75e9b7fe9682a487e72967b4e46",size:p[this.size]},"clear"))),this.togglePassword&&o("button",{key:"74e7b5714fc20329a3f18321e552b21bcbd6d77a",part:"password-toggle-button",class:"input__password-toggle",type:"button",onClick:this.handlePasswordToggle,tabindex:"-1"},this.isPasswordVisible?o("slot",{name:"show-password-icon"},o("six-icon",{size:p[this.size]},"visibility_off")):o("slot",{name:"hide-password-icon"},o("six-icon",{size:p[this.size]},"visibility"))),o("span",{key:"f179d2cdcbfd319b8cb1291df0219ba5d89c8b4c",part:"suffix",class:"input__suffix"},o("slot",{key:"bdea79b0fad36a1b34a70ce0a414a624febe68a5",name:"suffix"}))))}get host(){return r(this)}static get watchers(){return{helpText:["handleLabelChange"],errorText:["handleLabelChange"],label:["handleLabelChange"],value:["handleValueChange"]}}};c.style=u;export{c as six_input};
|
|
2
|
+
//# sourceMappingURL=p-6795e0a9.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixInputCss","SixInputStyle0","ICON_SIZES","large","medium","small","id","SixInput","this","inputId","labelId","helpTextId","errorTextId","eventListeners","EventListeners","handleChange","event","stopPropagation","nativeInput","value","sixChange","emit","handleInput","sixInput","handleBlur","hasFocus","sixBlur","handleFocus","sixFocus","handleClearClick","sixClear","focus","handleKeyDown","hasModifier","metaKey","ctrlKey","shiftKey","altKey","key","setTimeout","defaultPrevented","isComposing","submitForm","host","handlePasswordToggle","isPasswordVisible","handleSlotChange","hasHelpTextSlot","hasSlot","hasLabelSlot","hasErrorSlot","handleLabelChange","handleValueChange","getValue","connectedCallback","_a","shadowRoot","addEventListener","forward","componentWillLoad","disconnectedCallback","removeEventListener","removeAll","setFocus","options","removeFocus","blur","select","setSelectionRange","selectionStart","selectionEnd","selectionDirection","getSelectionRange","_b","undefined","_d","_c","_f","_e","setRangeText","replacement","start","end","selectMode","toString","render","h","FormControl","label","helpText","errorText","errorTextCount","hasErrorTextSlot","size","disabled","required","displayError","invalid","part","class","input","line","pill","dropdownSearch","length","name","ref","el","input__control","input__control__prefix","type","placeholder","readonly","minLength","minlength","maxLength","maxlength","min","max","step","autoCapitalize","autocapitalize","autoComplete","autocomplete","autoCorrect","autocorrect","autoFocus","autofocus","spellcheck","pattern","inputMode","inputmode","onChange","onInput","onFocus","onBlur","onKeyDown","clearable","onClick","tabindex","togglePassword"],"sources":["src/components/six-input/six-input.scss?tag=six-input&encapsulation=shadow","src/components/six-input/six-input.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: block;\n}\n\n.input {\n display: inline-flex;\n align-items: stretch;\n justify-content: start;\n position: relative;\n width: 100%;\n font-family: var(--six-font-family);\n font-weight: var(--six-input-font-weight);\n letter-spacing: var(--six-input-letter-spacing);\n background-color: var(--six-input-background-color);\n border: solid var(--six-border-width) var(--six-input-border-color);\n vertical-align: middle;\n overflow: hidden;\n transition: var(--six-transition-fast) color, var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;\n cursor: text;\n\n &--line {\n border: none;\n border-bottom: solid var(--six-border-width) var(--six-input-border-color);\n }\n\n &:hover:not(.input--disabled) {\n background-color: var(--six-input-background-color-hover);\n border-color: var(--six-input-border-color-hover);\n\n .input__control {\n color: var(--six-input-color-hover);\n }\n }\n\n &:hover.input--dropdown-search {\n border-color: transparent;\n }\n\n &--dropdown-search {\n border-color: transparent;\n }\n\n &--dropdown-search.input--focused {\n border-color: var(--six-input-border-color);\n }\n\n &.input--focused:not(.input--disabled) {\n background-color: var(--six-input-background-color-focus);\n\n border-bottom-color: var(--six-input-border-color-focus);\n box-shadow: 0 1px 0 0 var(--six-input-border-color-focus);\n\n &:not(.input--line) {\n border-color: var(--six-input-border-color-focus);\n box-shadow: var(--six-input-focus-shadow);\n }\n\n .input__control {\n color: var(--six-input-color-focus);\n }\n }\n\n &.input--disabled {\n background-color: var(--six-input-background-color-disabled);\n border-color: var(--six-input-border-color-disabled);\n cursor: not-allowed;\n\n .input__control {\n color: var(--six-input-color-disabled);\n\n &::placeholder {\n color: var(--six-input-placeholder-color-disabled);\n }\n }\n }\n\n &.input--invalid:not(.input--disabled):not(.input--focused) {\n border-bottom-color: var(--six-input-border-color-danger);\n\n &:not(.input--line) {\n border-color: var(--six-input-border-color-danger);\n }\n }\n}\n\n.input__control {\n flex: 1 1 auto;\n width: 100%;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n min-width: 0;\n color: var(--six-input-color);\n border: none;\n background: none;\n box-shadow: none;\n padding: 0;\n margin: 0;\n cursor: inherit;\n -webkit-appearance: none;\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus,\n &:-webkit-autofill:active {\n box-shadow: 0 0 0 var(--six-height-large) var(--six-input-background-color-hover) inset !important;\n -webkit-text-fill-color: var(--six-color-primary-500);\n }\n\n &::placeholder {\n color: var(--six-input-placeholder-color);\n user-select: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::-ms-reveal {\n display: none;\n }\n}\n\n.input__prefix,\n.input__suffix {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n cursor: default;\n\n ::slotted(six-icon) {\n color: var(--six-input-icon-color);\n }\n}\n\n.input {\n &.input--disabled {\n ::slotted(six-icon) {\n cursor: not-allowed;\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input--small {\n border-radius: var(--six-input-border-radius-small);\n font-size: var(--six-input-font-size-small);\n height: var(--six-height-small);\n\n .input__control {\n height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-small);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-small);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-small);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-small);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-small);\n }\n}\n\n.input--medium {\n border-radius: var(--six-input-border-radius-medium);\n font-size: var(--six-input-font-size-medium);\n height: var(--six-height-medium);\n\n .input__control {\n height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-medium);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-medium);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-medium);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-medium);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-medium);\n }\n}\n\n.input--large {\n border-radius: var(--six-input-border-radius-large);\n font-size: var(--six-input-font-size-large);\n height: var(--six-height-large);\n\n .input__control {\n height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-large);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-large);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-large);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-large);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input--pill {\n &.input--small {\n border-radius: var(--six-height-small);\n }\n\n &.input--medium {\n border-radius: var(--six-height-medium);\n }\n\n &.input--large {\n border-radius: var(--six-height-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Clearable + Password Toggle\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input__clear,\n.input__password-toggle {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n}\n\n.input--empty .input__clear {\n visibility: hidden;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { submitForm } from '../../utils/form';\n\nconst ICON_SIZES: Record<'small' | 'medium' | 'large', 'xSmall' | 'small' | 'medium'> = {\n large: 'medium',\n medium: 'small',\n small: 'xSmall',\n};\n\nexport type SelectionRangeDirection = 'forward' | 'backward' | 'none';\nexport type SelectionRange = {\n selectionStart: number | undefined;\n selectionEnd: number | undefined;\n selectionDirection: SelectionRangeDirection | undefined;\n};\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The input's label. Alternatively, you can use the label prop.\n * @slot prefix - Used to prepend an icon or similar element to the input.\n * @slot suffix - Used to append an icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Help text that describes how to use the input. Alternatively, you can use the help-text prop.\n * @slot error-text - Error text that is shown when the status is set to invalid. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part form-control - The form control that wraps the label, input, error-text and help-text.\n * @part label - The input label.\n * @part input - The input control.\n * @part prefix - The input prefix container.\n * @part clear-button - The clear button.\n * @part password-toggle-button - The password toggle button.\n * @part suffix - The input suffix container.\n * @part help-text - The input help text.\n * @part error-text - The input error text.\n */\n\n@Component({\n tag: 'six-input',\n styleUrl: 'six-input.scss',\n shadow: true,\n})\nexport class SixInput {\n private inputId = `input-${++id}`;\n private labelId = `input-label-${id}`;\n private helpTextId = `input-help-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixInputElement;\n\n @State() hasFocus = false;\n @State() hasHelpTextSlot = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n @State() isPasswordVisible = false;\n\n /** The input's type. */\n @Prop({ reflect: true }) type: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' = 'text';\n\n /** The input's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** The input's value attribute. */\n @Prop({ mutable: true, reflect: true }) value = '';\n\n /** Set to true to draw a pill-style input with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** The input's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** The input's placeholder text. */\n @Prop() placeholder?: string;\n\n /** Set to true to disable the input. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to make the input readonly. */\n @Prop({ reflect: true }) readonly = false;\n\n /** The minimum length of input that will be considered valid. */\n @Prop({ reflect: true }) minlength?: number;\n\n /** The maximum length of input that will be considered valid. */\n @Prop({ reflect: true }) maxlength?: number;\n\n /** The input's minimum value. */\n @Prop({ reflect: true }) min?: number;\n\n /** The input's maximum value. */\n @Prop({ reflect: true }) max?: number;\n\n /** The input's step attribute. */\n @Prop({ reflect: true }) step?: number;\n\n /** A pattern to validate input against. */\n @Prop({ reflect: true }) pattern?: string;\n\n /**\n * Internal: Styles the input for the dropdown filter search.\n */\n @Prop() dropdownSearch = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The input's autocaptialize attribute. */\n @Prop() autocapitalize = 'off';\n\n /** The input's autocorrect attribute. */\n @Prop() autocorrect: 'on' | 'off' = 'off';\n\n /** The input's autocomplete attribute. */\n @Prop() autocomplete = 'off';\n\n /** The input's autofocus attribute. */\n @Prop() autofocus = false;\n\n /** Enables spell checking on the input. */\n @Prop() spellcheck = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set to true to add a password toggle button for password inputs. */\n @Prop() togglePassword = false;\n\n /** The input's inputmode attribute. */\n @Prop() inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /** Set to render as line */\n @Prop() line = false;\n\n @Watch('helpText')\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n @Watch('value')\n handleValueChange() {\n this.value = this.getValue();\n if (this.nativeInput != null && this.nativeInput.value !== this.value) {\n this.nativeInput.value = this.value;\n }\n }\n\n /** Emitted when the control's value changes. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-input-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control receives input. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-input' }) sixInput!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-input-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control loses focus. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-input-input', 'input', this.host);\n this.eventListeners.forward('six-input-change', 'change', this.host);\n this.eventListeners.forward('six-input-focus', 'focus', this.host);\n this.eventListeners.forward('six-input-blur', 'blur', this.host);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n /** Sets focus on the input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the input. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n /** Selects all the text in the input. */\n @Method()\n async select() {\n return this.nativeInput?.select();\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n @Method()\n async setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: SelectionRangeDirection = 'none'\n ) {\n return this.nativeInput?.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Returns the start and end positions of the text selection */\n @Method()\n async getSelectionRange(): Promise<SelectionRange> {\n return {\n selectionStart: this.nativeInput?.selectionStart ?? undefined,\n selectionEnd: this.nativeInput?.selectionEnd ?? undefined,\n selectionDirection: this.nativeInput?.selectionDirection ?? undefined,\n };\n }\n\n /** Replaces a range of text with a new string. */\n @Method()\n async setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n if (this.nativeInput == null) {\n return;\n }\n this.nativeInput.setRangeText(replacement, start, end, selectMode);\n if (this.getValue() !== this.nativeInput.value) {\n this.value = this.nativeInput.value;\n this.sixChange.emit();\n this.sixInput.emit();\n }\n }\n\n private handleChange = (event: Event) => {\n event.stopPropagation();\n if (this.nativeInput != null) {\n this.value = this.nativeInput.value;\n this.sixChange.emit();\n }\n };\n\n private handleInput = (event: Event) => {\n event.stopPropagation();\n if (this.nativeInput != null) {\n this.value = this.nativeInput.value;\n this.sixInput.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleClearClick = (event: MouseEvent) => {\n this.value = '';\n this.sixClear.emit();\n this.sixInput.emit();\n this.sixChange.emit();\n if (this.nativeInput != null) {\n this.nativeInput.focus();\n }\n event.stopPropagation();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n if (!event.defaultPrevented && !event.isComposing) {\n submitForm(this.host);\n }\n });\n }\n };\n\n private handlePasswordToggle = () => {\n this.isPasswordVisible = !this.isPasswordVisible;\n };\n\n private handleSlotChange = () => {\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\n };\n\n private getValue(): string {\n return (this.value ?? '').toString();\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n hasErrorTextSlot={this.hasErrorSlot}\n size={this.size}\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <div\n part=\"base\"\n class={{\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--line': this.line,\n 'input--pill': this.pill,\n 'input--disabled': this.disabled,\n 'input--dropdown-search': this.dropdownSearch,\n 'input--focused': this.hasFocus,\n 'input--empty': this.getValue().length === 0,\n 'input--invalid': this.invalid,\n }}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <input\n part=\"input\"\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n size={1} // needed for firefox to overrule the default of 20\n class={{\n input__control: true,\n input__control__prefix: hasSlot(this.host, 'prefix'),\n }}\n type={this.type === 'password' && this.isPasswordVisible ? 'text' : this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n readonly={this.readonly}\n minLength={this.minlength}\n maxLength={this.maxlength}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.getValue()}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n autoFocus={this.autofocus}\n spellcheck={this.spellcheck}\n pattern={this.pattern}\n required={this.required}\n inputMode={this.inputmode}\n aria-labelledby={this.labelId}\n aria-describedby={this.helpTextId}\n aria-invalid={this.invalid ? 'true' : 'false'}\n onChange={this.handleChange}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onKeyDown={this.handleKeyDown}\n data-testid=\"input-control\"\n />\n\n {this.clearable && !this.disabled && (\n <button\n part=\"clear-button\"\n class=\"input__clear\"\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n data-testid=\"input-clear-button\"\n >\n <slot name=\"clear-icon\">\n <six-icon size={ICON_SIZES[this.size]}>clear</six-icon>\n </slot>\n </button>\n )}\n\n {this.togglePassword && (\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n onClick={this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n {this.isPasswordVisible ? (\n <slot name=\"show-password-icon\">\n <six-icon size={ICON_SIZES[this.size]}>visibility_off</six-icon>\n </slot>\n ) : (\n <slot name=\"hide-password-icon\">\n <six-icon size={ICON_SIZES[this.size]}>visibility</six-icon>\n </slot>\n )}\n </button>\n )}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\" />\n </span>\n </div>\n </FormControl>\n );\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"names":["sixInputCss","SixInputStyle0","ICON_SIZES","large","medium","small","id","SixInput","this","inputId","labelId","helpTextId","errorTextId","eventListeners","EventListeners","handleChange","event","stopPropagation","nativeInput","value","sixChange","emit","handleInput","sixInput","handleBlur","hasFocus","sixBlur","handleFocus","sixFocus","handleClearClick","sixClear","focus","handleKeyDown","hasModifier","metaKey","ctrlKey","shiftKey","altKey","key","setTimeout","defaultPrevented","isComposing","submitForm","host","handlePasswordToggle","isPasswordVisible","handleSlotChange","hasHelpTextSlot","hasSlot","hasLabelSlot","hasErrorSlot","handleLabelChange","handleValueChange","getValue","connectedCallback","_a","shadowRoot","addEventListener","forward","componentWillLoad","disconnectedCallback","removeEventListener","removeAll","setFocus","options","removeFocus","blur","select","setSelectionRange","selectionStart","selectionEnd","selectionDirection","getSelectionRange","_b","undefined","_d","_c","_f","_e","setRangeText","replacement","start","end","selectMode","toString","render","h","FormControl","label","helpText","errorText","errorTextCount","hasErrorTextSlot","size","disabled","required","displayError","invalid","part","class","input","line","pill","dropdownSearch","length","name","ref","el","input__control","input__control__prefix","type","placeholder","readonly","minLength","minlength","maxLength","maxlength","min","max","step","autoCapitalize","autocapitalize","autoComplete","autocomplete","autoCorrect","autocorrect","autoFocus","autofocus","spellcheck","pattern","inputMode","inputmode","onChange","onInput","onFocus","onBlur","onKeyDown","clearable","onClick","tabindex","togglePassword"],"sources":["src/components/six-input/six-input.scss?tag=six-input&encapsulation=shadow","src/components/six-input/six-input.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: block;\n}\n\n.input {\n display: inline-flex;\n align-items: stretch;\n justify-content: start;\n position: relative;\n width: 100%;\n font-family: var(--six-font-family);\n font-weight: var(--six-input-font-weight);\n letter-spacing: var(--six-input-letter-spacing);\n background-color: var(--six-input-background-color);\n border: solid var(--six-border-width) var(--six-input-border-color);\n vertical-align: middle;\n overflow: hidden;\n transition: var(--six-transition-fast) color, var(--six-transition-fast) border, var(--six-transition-fast) box-shadow;\n cursor: text;\n\n &--line {\n border: none;\n border-bottom: solid var(--six-border-width) var(--six-input-border-color);\n }\n\n &:hover:not(.input--disabled) {\n background-color: var(--six-input-background-color-hover);\n border-color: var(--six-input-border-color-hover);\n\n .input__control {\n color: var(--six-input-color-hover);\n }\n }\n\n &:hover.input--dropdown-search {\n border-color: transparent;\n }\n\n &--dropdown-search {\n border-color: transparent;\n }\n\n &--dropdown-search.input--focused {\n border-color: var(--six-input-border-color);\n }\n\n &.input--focused:not(.input--disabled) {\n background-color: var(--six-input-background-color-focus);\n\n border-bottom-color: var(--six-input-border-color-focus);\n box-shadow: 0 1px 0 0 var(--six-input-border-color-focus);\n\n &:not(.input--line) {\n border-color: var(--six-input-border-color-focus);\n box-shadow: var(--six-input-focus-shadow);\n }\n\n .input__control {\n color: var(--six-input-color-focus);\n }\n }\n\n &.input--disabled {\n background-color: var(--six-input-background-color-disabled);\n border-color: var(--six-input-border-color-disabled);\n cursor: not-allowed;\n\n .input__control {\n color: var(--six-input-color-disabled);\n\n &::placeholder {\n color: var(--six-input-placeholder-color-disabled);\n }\n }\n }\n\n &.input--invalid:not(.input--disabled):not(.input--focused) {\n border-bottom-color: var(--six-input-border-color-danger);\n\n &:not(.input--line) {\n border-color: var(--six-input-border-color-danger);\n }\n }\n}\n\n.input__control {\n flex: 1 1 auto;\n width: 100%;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n min-width: 0;\n color: var(--six-input-color);\n border: none;\n background: none;\n box-shadow: none;\n padding: 0;\n margin: 0;\n cursor: inherit;\n -webkit-appearance: none;\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus,\n &:-webkit-autofill:active {\n box-shadow: 0 0 0 var(--six-height-large) var(--six-input-background-color-hover) inset !important;\n -webkit-text-fill-color: var(--six-color-primary-500);\n }\n\n &::placeholder {\n color: var(--six-input-placeholder-color);\n user-select: none;\n }\n\n &:focus {\n outline: none;\n }\n\n &::-ms-reveal {\n display: none;\n }\n}\n\n.input__prefix,\n.input__suffix {\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n cursor: default;\n\n ::slotted(six-icon) {\n color: var(--six-input-icon-color);\n }\n}\n\n.input {\n &.input--disabled {\n ::slotted(six-icon) {\n cursor: not-allowed;\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input--small {\n border-radius: var(--six-input-border-radius-small);\n font-size: var(--six-input-font-size-small);\n height: var(--six-height-small);\n\n .input__control {\n height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-small);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-small);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-small);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-small);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-small);\n }\n}\n\n.input--medium {\n border-radius: var(--six-input-border-radius-medium);\n font-size: var(--six-input-font-size-medium);\n height: var(--six-height-medium);\n\n .input__control {\n height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-medium);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-medium);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-medium);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-medium);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-medium);\n }\n}\n\n.input--large {\n border-radius: var(--six-input-border-radius-large);\n font-size: var(--six-input-font-size-large);\n height: var(--six-height-large);\n\n .input__control {\n height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n margin: 0 var(--six-input-spacing-large);\n }\n\n .input__control__prefix {\n margin: 0 var(--six-input-prefix-spacing-large);\n }\n\n .input__clear,\n .input__password-toggle {\n margin-right: var(--six-input-spacing-large);\n }\n\n .input__prefix ::slotted(*) {\n margin-left: var(--six-input-prefix-spacing-large);\n }\n\n .input__suffix ::slotted(*) {\n margin-right: var(--six-input-prefix-spacing-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input--pill {\n &.input--small {\n border-radius: var(--six-height-small);\n }\n\n &.input--medium {\n border-radius: var(--six-height-medium);\n }\n\n &.input--large {\n border-radius: var(--six-height-large);\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Clearable + Password Toggle\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.input__clear,\n.input__password-toggle {\n display: inline-flex;\n align-items: center;\n font-size: inherit;\n color: var(--six-input-icon-color);\n border: none;\n background: none;\n padding: 0;\n transition: var(--six-transition-fast) color;\n cursor: pointer;\n\n &:hover {\n color: var(--six-input-icon-color-hover);\n }\n\n &:focus {\n outline: none;\n }\n}\n\n.input--empty .input__clear {\n visibility: hidden;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { submitForm } from '../../utils/form';\n\nconst ICON_SIZES: Record<'small' | 'medium' | 'large', 'xSmall' | 'small' | 'medium'> = {\n large: 'medium',\n medium: 'small',\n small: 'xSmall',\n};\n\nexport type SelectionRangeDirection = 'forward' | 'backward' | 'none';\nexport type SelectionRange = {\n selectionStart: number | undefined;\n selectionEnd: number | undefined;\n selectionDirection: SelectionRangeDirection | undefined;\n};\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The input's label. Alternatively, you can use the label prop.\n * @slot prefix - Used to prepend an icon or similar element to the input.\n * @slot suffix - Used to append an icon or similar element to the input.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot show-password-icon - An icon to use in lieu of the default show password icon.\n * @slot hide-password-icon - An icon to use in lieu of the default hide password icon.\n * @slot help-text - Help text that describes how to use the input. Alternatively, you can use the help-text prop.\n * @slot error-text - Error text that is shown when the status is set to invalid. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part form-control - The form control that wraps the label, input, error-text and help-text.\n * @part label - The input label.\n * @part input - The input control.\n * @part prefix - The input prefix container.\n * @part clear-button - The clear button.\n * @part password-toggle-button - The password toggle button.\n * @part suffix - The input suffix container.\n * @part help-text - The input help text.\n * @part error-text - The input error text.\n */\n\n@Component({\n tag: 'six-input',\n styleUrl: 'six-input.scss',\n shadow: true,\n})\nexport class SixInput {\n private inputId = `input-${++id}`;\n private labelId = `input-label-${id}`;\n private helpTextId = `input-help-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixInputElement;\n\n @State() hasFocus = false;\n @State() hasHelpTextSlot = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n @State() isPasswordVisible = false;\n\n /** The input's type. */\n @Prop({ reflect: true }) type: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' = 'text';\n\n /** The input's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** The input's value attribute. */\n @Prop({ mutable: true, reflect: true }) value = '';\n\n /** Set to true to draw a pill-style input with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** The input's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** The input's placeholder text. */\n @Prop() placeholder?: string;\n\n /** Set to true to disable the input. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to make the input readonly. */\n @Prop({ reflect: true }) readonly = false;\n\n /** The minimum length of input that will be considered valid. */\n @Prop({ reflect: true }) minlength?: number;\n\n /** The maximum length of input that will be considered valid. */\n @Prop({ reflect: true }) maxlength?: number;\n\n /** The input's minimum value. */\n @Prop({ reflect: true }) min?: number;\n\n /** The input's maximum value. */\n @Prop({ reflect: true }) max?: number;\n\n /** The input's step attribute. */\n @Prop({ reflect: true }) step?: number;\n\n /** A pattern to validate input against. */\n @Prop({ reflect: true }) pattern?: string;\n\n /**\n * Internal: Styles the input for the dropdown filter search.\n */\n @Prop() dropdownSearch = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The input's autocaptialize attribute. */\n @Prop() autocapitalize = 'off';\n\n /** The input's autocorrect attribute. */\n @Prop() autocorrect: 'on' | 'off' = 'off';\n\n /** The input's autocomplete attribute. */\n @Prop() autocomplete = 'off';\n\n /** The input's autofocus attribute. */\n @Prop() autofocus = false;\n\n /** Enables spell checking on the input. */\n @Prop() spellcheck = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set to true to add a password toggle button for password inputs. */\n @Prop() togglePassword = false;\n\n /** The input's inputmode attribute. */\n @Prop() inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /** Set to render as line */\n @Prop() line = false;\n\n @Watch('helpText')\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n @Watch('value')\n handleValueChange() {\n this.value = this.getValue();\n if (this.nativeInput != null && this.nativeInput.value !== this.value) {\n this.nativeInput.value = this.value;\n }\n }\n\n /** Emitted when the control's value changes. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-input-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control receives input. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-input' }) sixInput!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-input-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control loses focus. Access the new value via event.target.value. */\n @Event({ eventName: 'six-input-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-input-input', 'input', this.host);\n this.eventListeners.forward('six-input-change', 'change', this.host);\n this.eventListeners.forward('six-input-focus', 'focus', this.host);\n this.eventListeners.forward('six-input-blur', 'blur', this.host);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n /** Sets focus on the input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the input. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n /** Selects all the text in the input. */\n @Method()\n async select() {\n return this.nativeInput?.select();\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n @Method()\n async setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: SelectionRangeDirection = 'none'\n ) {\n return this.nativeInput?.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Returns the start and end positions of the text selection */\n @Method()\n async getSelectionRange(): Promise<SelectionRange> {\n return {\n selectionStart: this.nativeInput?.selectionStart ?? undefined,\n selectionEnd: this.nativeInput?.selectionEnd ?? undefined,\n selectionDirection: this.nativeInput?.selectionDirection ?? undefined,\n };\n }\n\n /** Replaces a range of text with a new string. */\n @Method()\n async setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n if (this.nativeInput == null) {\n return;\n }\n this.nativeInput.setRangeText(replacement, start, end, selectMode);\n if (this.getValue() !== this.nativeInput.value) {\n this.value = this.nativeInput.value;\n this.sixChange.emit();\n this.sixInput.emit();\n }\n }\n\n private handleChange = (event: Event) => {\n event.stopPropagation();\n if (this.nativeInput != null) {\n this.value = this.nativeInput.value;\n this.sixChange.emit();\n }\n };\n\n private handleInput = (event: Event) => {\n event.stopPropagation();\n if (this.nativeInput != null) {\n this.value = this.nativeInput.value;\n this.sixInput.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleClearClick = (event: MouseEvent) => {\n this.value = '';\n this.sixClear.emit();\n this.sixInput.emit();\n this.sixChange.emit();\n if (this.nativeInput != null) {\n this.nativeInput.focus();\n }\n event.stopPropagation();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;\n if (event.key === 'Enter' && !hasModifier) {\n setTimeout(() => {\n if (!event.defaultPrevented && !event.isComposing) {\n submitForm(this.host);\n }\n });\n }\n };\n\n private handlePasswordToggle = () => {\n this.isPasswordVisible = !this.isPasswordVisible;\n };\n\n private handleSlotChange = () => {\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\n };\n\n private getValue(): string {\n return (this.value ?? '').toString();\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n hasErrorTextSlot={this.hasErrorSlot}\n size={this.size}\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <div\n part=\"base\"\n class={{\n input: true,\n\n // Sizes\n 'input--small': this.size === 'small',\n 'input--medium': this.size === 'medium',\n 'input--large': this.size === 'large',\n\n // States\n 'input--line': this.line,\n 'input--pill': this.pill,\n 'input--disabled': this.disabled,\n 'input--dropdown-search': this.dropdownSearch,\n 'input--focused': this.hasFocus,\n 'input--empty': this.getValue().length === 0,\n 'input--invalid': this.invalid,\n }}\n >\n <span part=\"prefix\" class=\"input__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <input\n part=\"input\"\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n size={1} // needed for firefox to overrule the default of 20\n class={{\n input__control: true,\n input__control__prefix: hasSlot(this.host, 'prefix'),\n }}\n type={this.type === 'password' && this.isPasswordVisible ? 'text' : this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n readonly={this.readonly}\n minLength={this.minlength}\n maxLength={this.maxlength}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.getValue()}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n autoFocus={this.autofocus}\n spellcheck={this.spellcheck}\n pattern={this.pattern}\n required={this.required}\n inputMode={this.inputmode}\n aria-labelledby={this.labelId}\n aria-describedby={this.helpTextId}\n aria-invalid={this.invalid ? 'true' : 'false'}\n onChange={this.handleChange}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onKeyDown={this.handleKeyDown}\n data-testid=\"input-control\"\n />\n\n {this.clearable && !this.disabled && (\n <button\n part=\"clear-button\"\n class=\"input__clear\"\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n data-testid=\"input-clear-button\"\n >\n <slot name=\"clear-icon\">\n <six-icon size={ICON_SIZES[this.size]}>clear</six-icon>\n </slot>\n </button>\n )}\n\n {this.togglePassword && (\n <button\n part=\"password-toggle-button\"\n class=\"input__password-toggle\"\n type=\"button\"\n onClick={this.handlePasswordToggle}\n tabindex=\"-1\"\n >\n {this.isPasswordVisible ? (\n <slot name=\"show-password-icon\">\n <six-icon size={ICON_SIZES[this.size]}>visibility_off</six-icon>\n </slot>\n ) : (\n <slot name=\"hide-password-icon\">\n <six-icon size={ICON_SIZES[this.size]}>visibility</six-icon>\n </slot>\n )}\n </button>\n )}\n\n <span part=\"suffix\" class=\"input__suffix\">\n <slot name=\"suffix\" />\n </span>\n </div>\n </FormControl>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as e,H as t,g as r}from"./p-48118ce8.js";const n=":host{display:flex;flex-wrap:nowrap;min-width:fit-content}.left-margin,.right-margin{flex:1 6 10rem;min-width:var(--six-spacing-xxx-large)}.content{flex:6 1 60rem;min-width:48rem;max-width:100rem}.content--padded{padding:var(--six-spacing-xxx-large) 0}";const i=n;const s=class{constructor(e){a(this,e);this.padded=true}render(){return e(t,{key:"8120e711578ecb0a3479ad136b5925a617ba40ec"},e("div",{key:"789008ec7e1d6d866a81f619586ae500d61f4abe",part:"left-margin",class:"left-margin"}),e("div",{key:"dead6e81df7c7172c67404f43549e29ff3b7ea7a",part:"content",class:{content:true,"content--padded":this.padded}},e("slot",{key:"7ab34707d262f5fc7cc6aad9a1b93659bd56e71d"})),e("div",{key:"b87314fc06229b79a625606f625bac160d593689",part:"right-margin",class:"right-margin"}))}get host(){return r(this)}};s.style=i;export{s as six_main_container};
|
|
2
|
+
//# sourceMappingURL=p-6ec126f7.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixMainContainerCss","SixMainContainerStyle0","SixMainContainer","render","h","Host","key","part","class","content","this","padded"],"sources":["src/components/six-main-container/six-main-container.scss?tag=six-main-container&encapsulation=shadow","src/components/six-main-container/six-main-container.tsx"],"sourcesContent":["$margin-default-width: 10rem;\n$content-default-width: 60rem;\n$content-min-width: 48rem;\n$content-max-width: 100rem;\n\n:host {\n display: flex;\n flex-wrap: nowrap;\n min-width: fit-content;\n}\n\n.left-margin,\n.right-margin {\n flex: 1 6 $margin-default-width;\n min-width: var(--six-spacing-xxx-large);\n}\n\n.content {\n flex: 6 1 $content-default-width;\n min-width: $content-min-width;\n max-width: $content-max-width;\n &--padded {\n padding: var(--six-spacing-xxx-large) 0;\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n/**\n * @since 1.01\n * @status stable\n *\n * @slot - The main container's content.\n *\n * @part left-margin - The component's left margin area.\n * @part content - The component's content area.\n * @part right-margin - The component's right margin area.\n */\n\n@Component({\n tag: 'six-main-container',\n styleUrl: 'six-main-container.scss',\n shadow: true,\n})\nexport class SixMainContainer {\n @Element() host!: HTMLSixMainContainerElement;\n\n /** Set to false to remove top and bottom padding. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() padded = true;\n\n render() {\n return (\n <Host>\n <div part=\"left-margin\" class=\"left-margin\" />\n <div part=\"content\" class={{ content: true, 'content--padded': this.padded }}>\n <slot />\n </div>\n <div part=\"right-margin\" class=\"right-margin\" />\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAsB,+PAC5B,MAAAC,EAAeD,E,MCiBFE,EAAgB,M,qCAKV,I,CAEjB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,KAAK,cAAcC,MAAM,gBAC9BJ,EAAA,OAAAE,IAAA,2CAAKC,KAAK,UAAUC,MAAO,CAAEC,QAAS,KAAM,kBAAmBC,KAAKC,SAClEP,EAAA,QAAAE,IAAA,8CAEFF,EAAA,OAAAE,IAAA,2CAAKC,KAAK,eAAeC,MAAM,iB"}
|
|
1
|
+
{"version":3,"names":["sixMainContainerCss","SixMainContainerStyle0","SixMainContainer","render","h","Host","key","part","class","content","this","padded"],"sources":["src/components/six-main-container/six-main-container.scss?tag=six-main-container&encapsulation=shadow","src/components/six-main-container/six-main-container.tsx"],"sourcesContent":["$margin-default-width: 10rem;\n$content-default-width: 60rem;\n$content-min-width: 48rem;\n$content-max-width: 100rem;\n\n:host {\n display: flex;\n flex-wrap: nowrap;\n min-width: fit-content;\n}\n\n.left-margin,\n.right-margin {\n flex: 1 6 $margin-default-width;\n min-width: var(--six-spacing-xxx-large);\n}\n\n.content {\n flex: 6 1 $content-default-width;\n min-width: $content-min-width;\n max-width: $content-max-width;\n &--padded {\n padding: var(--six-spacing-xxx-large) 0;\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n/**\n * @since 1.01\n * @status stable\n *\n * @slot - The main container's content.\n *\n * @part left-margin - The component's left margin area.\n * @part content - The component's content area.\n * @part right-margin - The component's right margin area.\n */\n\n@Component({\n tag: 'six-main-container',\n styleUrl: 'six-main-container.scss',\n shadow: true,\n})\nexport class SixMainContainer {\n @Element() host!: HTMLSixMainContainerElement;\n\n /** Set to false to remove top and bottom padding. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() padded = true;\n\n render() {\n return (\n <Host>\n <div part=\"left-margin\" class=\"left-margin\" />\n <div part=\"content\" class={{ content: true, 'content--padded': this.padded }}>\n <slot />\n </div>\n <div part=\"right-margin\" class=\"right-margin\" />\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAsB,+PAC5B,MAAAC,EAAeD,E,MCiBFE,EAAgB,M,qCAKV,I,CAEjB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,KAAK,cAAcC,MAAM,gBAC9BJ,EAAA,OAAAE,IAAA,2CAAKC,KAAK,UAAUC,MAAO,CAAEC,QAAS,KAAM,kBAAmBC,KAAKC,SAClEP,EAAA,QAAAE,IAAA,8CAEFF,EAAA,OAAAE,IAAA,2CAAKC,KAAK,eAAeC,MAAM,iB","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as e,h as t,g as r}from"./p-48118ce8.js";import{F as i}from"./p-a04460e3.js";import{h as c}from"./p-0cebf1d2.js";import{E as l}from"./p-8bfb4bfc.js";const s=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:"*";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:inline-block}.checkbox{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-input-font-size-medium);font-weight:var(--six-input-font-weight);color:var(--six-input-color);vertical-align:middle;cursor:pointer}.checkbox--focused .checkbox__control{outline:var(--six-focus-ring);outline-offset:0}.checkbox__control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--six-selection-control-toggle-size);min-width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size);border:solid var(--six-border-width) var(--six-input-border-color);border-radius:0;background-color:var(--six-input-background-color);color:var(--six-checkbox-color);transition:var(--six-transition-fast) border-color, var(--six-transition-fast) background-color, var(--six-transition-fast) color, var(--six-transition-fast) box-shadow}.checkbox__control input[type=checkbox]{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none;min-width:var(--six-selection-control-toggle-size)}.checkbox__control .checkbox__icon{display:inline-flex;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size)}.checkbox__control .checkbox__icon svg{width:100%;height:100%}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-hover)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--six-selection-control-color);background-color:var(--six-selection-control-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-focus);background-color:var(--six-input-border-color-focus)}.checkbox--disabled{cursor:not-allowed;color:var(--six-input-color-disabled)}.checkbox--disabled .checkbox__control{border-color:var(--six-input-border-color-disabled)}.checkbox--disabled.checkbox--checked .checkbox__control,.checkbox--disabled.checkbox--indeterminate .checkbox__control{background-color:var(--six-selection-control-color-disabled)}.checkbox--invalid:not(.checkbox--disabled) .checkbox__control{border-color:var(--six-input-border-color-danger)}.checkbox__text{line-height:var(--six-selection-control-toggle-size);margin-left:0.5em;user-select:none}';const a=s;let n=0;const h=class{constructor(t){o(this,t);this.sixBlur=e(this,"six-checkbox-blur",7);this.sixChange=e(this,"six-checkbox-change",7);this.sixFocus=e(this,"six-checkbox-focus",7);this.inputId=`checkbox-${++n}`;this.labelId=`checkbox-label-${n}`;this.textId=`checkbox-text-${n}`;this.errorTextId=`input-error-text-${n}`;this.eventListeners=new l;this.handleChange=()=>{if(this.nativeInput!=null){this.checked=this.nativeInput.checked;this.indeterminate=false;this.sixChange.emit()}};this.handleBlur=()=>{this.hasFocus=false;this.sixBlur.emit()};this.handleFocus=()=>{this.hasFocus=true;this.sixFocus.emit()};this.handleMouseDown=o=>{var e;o.preventDefault();(e=this.nativeInput)===null||e===void 0?void 0:e.focus()};this.hasFocus=false;this.hasLabelSlot=false;this.hasErrorSlot=false;this.name="";this.value="on";this.disabled=false;this.required=false;this.label="";this.errorText="";this.errorTextCount=undefined;this.invalid=false;this.checked=false;this.indeterminate=false}handleCheckedChange(){if(this.nativeInput==null)return;this.nativeInput.checked=this.checked;this.checked=this.nativeInput.checked;this.nativeInput.indeterminate=this.indeterminate}handleLabelChange(){this.handleSlotChange()}connectedCallback(){var o;(o=this.host.shadowRoot)===null||o===void 0?void 0:o.addEventListener("slotchange",this.handleSlotChange);this.eventListeners.forward("six-checkbox-change","change",this.host);this.eventListeners.forward("six-checkbox-blur","blur",this.host);this.eventListeners.forward("six-checkbox-focus","focus",this.host)}disconnectedCallback(){var o;(o=this.host.shadowRoot)===null||o===void 0?void 0:o.removeEventListener("slotchange",this.handleSlotChange);this.eventListeners.removeAll()}componentWillLoad(){this.handleSlotChange()}componentDidLoad(){const o=this.nativeInput;if(o==null){return}o.indeterminate=this.indeterminate}async setFocus(o){var e;(e=this.nativeInput)===null||e===void 0?void 0:e.focus(o)}async removeFocus(){var o;(o=this.nativeInput)===null||o===void 0?void 0:o.blur()}handleSlotChange(){this.hasLabelSlot=c(this.host,"label");this.hasErrorSlot=c(this.host,"error-text")}render(){return t(i,{key:"3881d6f70869fe371be4bdc084d1e2ee2ffcaad0",inputId:this.inputId,label:this.label,labelId:this.labelId,hasLabelSlot:this.hasLabelSlot,errorTextId:this.errorTextId,hasErrorTextSlot:this.hasErrorSlot,errorText:this.errorText,errorTextCount:this.errorTextCount,size:"medium",disabled:this.disabled,required:this.required,displayError:this.invalid},t("label",{key:"a42631ccd1b8fb0ee21d575c4f08d92b6349d9f8",part:"base",class:{checkbox:true,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--invalid":this.invalid,"checkbox--indeterminate":this.indeterminate},htmlFor:this.inputId,onMouseDown:this.handleMouseDown},t("span",{key:"d1e1080dd43c4e3110b9f272f1dd2185c99ecbc4",part:"control",class:"checkbox__control"},this.checked&&t("span",{key:"e02e32f28b9e997ee1baf81aa5d12e00df275e9e",part:"checked-icon",class:"checkbox__icon"},t("svg",{key:"b313da8df11a0cce0c8f3c8785e46be998106528",viewBox:"0 0 16 16"},t("g",{key:"9e49d0e0f0cf1070b1b283cc63586ad34c284302",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"round"},t("g",{key:"a36e0b3299473a24a14ce268052b00f3929e0f31",stroke:"currentColor","stroke-width":"2"},t("g",{key:"f4f0033909e86d0a79bfba797b6ec9f389e2d8c7",transform:"translate(3.428571, 3.428571)"},t("path",{key:"09a34c50138270daad1968cd330f16d49d1807ce",d:"M0,5.71428571 L3.42857143,9.14285714"}),t("path",{key:"1fa1a9f56875cfd60d1595f05bf8a294bd85aaaa",d:"M9.14285714,0 L3.42857143,9.14285714"})))))),!this.checked&&this.indeterminate&&t("span",{key:"d263c3e0de02a8c17869ff74b6c864d23d7539e6",part:"indeterminate-icon",class:"checkbox__icon"},t("svg",{key:"192a9d79ce11edb96b51776a5d0a517ea160d0e6",viewBox:"0 0 16 16"},t("g",{key:"ccd9afa0efe3c764521dd1d34e02c2680b68fb37",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"round"},t("g",{key:"f9d774248f858e7ff08d91a23f4a0290b2000a66",stroke:"currentColor","stroke-width":"2"},t("g",{key:"d098b4ab5ee88a3d90f13488d86a3f37a382fee9",transform:"translate(2.285714, 6.857143)"},t("path",{key:"d47b208149e864b67ac8d25c0607b6e5868262a7",d:"M10.2857143,1.14285714 L1.14285714,1.14285714"})))))),t("input",{key:"e3da5bf1a133e8a31a6abfd8852cd1e8434f1861",ref:o=>this.nativeInput=o,id:this.inputId,type:"checkbox",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,required:this.required,role:"checkbox","aria-checked":this.checked?"true":"false","aria-labelledby":this.labelId,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus})),t("span",{key:"298954f2c0314e37a43fb47a8d1e9a3069f7ee4e",part:"text",id:this.textId,class:"checkbox__text"},t("slot",{key:"539f5cde4f4a771422145d6faf4a611c1c07b74f"}))))}get host(){return r(this)}static get watchers(){return{checked:["handleCheckedChange"],indeterminate:["handleCheckedChange"],errorText:["handleLabelChange"],label:["handleLabelChange"]}}};h.style=a;export{h as six_checkbox};
|
|
2
|
+
//# sourceMappingURL=p-705e3612.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sixCheckboxCss","SixCheckboxStyle0","id","SixCheckbox","this","inputId","labelId","textId","errorTextId","eventListeners","EventListeners","handleChange","nativeInput","checked","indeterminate","sixChange","emit","handleBlur","hasFocus","sixBlur","handleFocus","sixFocus","handleMouseDown","event","preventDefault","_a","focus","handleCheckedChange","handleLabelChange","handleSlotChange","connectedCallback","host","shadowRoot","addEventListener","forward","disconnectedCallback","removeEventListener","removeAll","componentWillLoad","componentDidLoad","setFocus","options","removeFocus","blur","hasLabelSlot","hasSlot","hasErrorSlot","render","h","FormControl","key","label","hasErrorTextSlot","errorText","errorTextCount","size","disabled","required","displayError","invalid","part","class","checkbox","htmlFor","onMouseDown","viewBox","stroke","fill","transform","d","ref","el","type","name","value","role","onChange","onBlur","onFocus"],"sources":["src/components/six-checkbox/six-checkbox.scss?tag=six-checkbox&encapsulation=shadow","src/components/six-checkbox/six-checkbox.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: inline-block;\n}\n\n.checkbox {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-input-font-size-medium);\n font-weight: var(--six-input-font-weight);\n color: var(--six-input-color);\n vertical-align: middle;\n cursor: pointer;\n}\n\n.checkbox--focused {\n .checkbox__control {\n outline: var(--six-focus-ring);\n outline-offset: 0;\n }\n}\n\n.checkbox__control {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--six-selection-control-toggle-size);\n min-width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n border: solid var(--six-border-width) var(--six-input-border-color);\n border-radius: 0;\n background-color: var(--six-input-background-color);\n color: var(--six-checkbox-color);\n transition: var(--six-transition-fast) border-color, var(--six-transition-fast) background-color,\n var(--six-transition-fast) color, var(--six-transition-fast) box-shadow;\n\n input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n min-width: var(--six-selection-control-toggle-size);\n }\n\n .checkbox__icon {\n display: inline-flex;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n\n svg {\n width: 100%;\n height: 100%;\n }\n }\n}\n\n// Hover\n.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-hover);\n}\n\n// Checked/indeterminate\n.checkbox--checked .checkbox__control,\n.checkbox--indeterminate .checkbox__control {\n border-color: var(--six-selection-control-color);\n background-color: var(--six-selection-control-color);\n}\n\n// Checked/indeterminate + hover\n.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,\n.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-focus);\n background-color: var(--six-input-border-color-focus);\n}\n\n// Disabled\n.checkbox--disabled {\n cursor: not-allowed;\n color: var(--six-input-color-disabled);\n\n .checkbox__control {\n border-color: var(--six-input-border-color-disabled);\n }\n\n &.checkbox--checked .checkbox__control,\n &.checkbox--indeterminate .checkbox__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n}\n\n// Invalid\n.checkbox--invalid:not(.checkbox--disabled) {\n .checkbox__control {\n border-color: var(--six-input-border-color-danger);\n }\n}\n\n.checkbox__text {\n line-height: var(--six-selection-control-toggle-size);\n margin-left: 0.5em;\n user-select: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The checkbox label.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n errorTextId={this.errorTextId}\n hasErrorTextSlot={this.hasErrorSlot}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as s,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as s,h as e}from"./p-48118ce8.js";const t=".six-files-list-item{padding-bottom:0.5rem}.six-files-list-item__name{color:var(--six-color-action-600);cursor:pointer}.six-files-list-item__name--disabled{cursor:inherit;color:var(--six-color-web-rock-500)}.six-files-list-item__name:hover:not(.six-files-list-item__name--disabled){color:var(--six-color-action-500)}.six-files-list-item__date{padding-left:1rem;color:var(--six-color-web-rock-600)}.six-files-list-item__size{padding-left:1rem;color:var(--six-color-web-rock-600)}.six-files-list-item__icon{padding-left:0.5rem;display:inline-block;transform:translateY(-3px);cursor:pointer;color:var(--six-color-web-rock-600)}.six-files-list-item__icon--disabled{cursor:not-allowed;color:var(--six-color-web-rock-500)}.six-files-list-item__icon:hover:not(.six-files-list-item__icon--disabled){color:var(--six-color-web-rock-900)}";const l=t;const o=class{constructor(e){i(this,e);this.downloadEvent=s(this,"six-file-list-item-download",7);this.removeEvent=s(this,"six-file-list-item-remove",7);this.downloadFile=()=>{if(this.nodownload){return}this.downloadEvent.emit({fileId:this.identifier,name:this.name})};this.removeFile=()=>{if(this.nodelete){return}this.removeEvent.emit({fileId:this.identifier,name:this.name})};this.identifier="";this.name="";this.date="";this.size=undefined;this.nodownload=false;this.nodelete=false}render(){return e("div",{key:"65ea17f1ce1ff3d9cb48696bbf25465f126ca879",class:"six-files-list-item"},e("span",{key:"53749104860721fd92bbb07b84029e2d3a22c0c0",class:{"six-files-list-item__name":true,"six-files-list-item__name--disabled":this.nodownload},onClick:this.downloadFile},this.name),e("span",{key:"637a12f8bb040e3cf5392ebe7ac488e3d08ae6fb",class:"six-files-list-item__date"},this.date),this.size!=null&&e("span",{key:"208e19ce7a5fa642b0b860fdba2d0dc83feb12fc",class:"six-files-list-item__size"},Math.round(this.size/1024)," KB"),e("six-icon",{key:"ecca120c27d87cd450f99ab24ec26f056d014d71",class:{"six-files-list-item__icon":true,"six-files-list-item__icon--disabled":this.nodelete},size:"small",onClick:this.removeFile},"delete"))}};o.style=l;export{o as six_file_list_item};
|
|
2
|
+
//# sourceMappingURL=p-70fac778.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sixFileListItemCss","SixFileListItemStyle0","SixFileListItem","this","downloadFile","nodownload","downloadEvent","emit","fileId","identifier","name","removeFile","nodelete","removeEvent","render","h","key","class","onClick","date","size","Math","round"],"sources":["src/components/six-file-list-item/six-file-list-item.scss?tag=six-file-list-item&encapsulation=shadow","src/components/six-file-list-item/six-file-list-item.tsx"],"sourcesContent":[".six-files-list-item {\n padding-bottom: 0.5rem;\n\n &__name {\n color: var(--six-color-action-600);\n cursor: pointer;\n\n &--disabled {\n cursor: inherit;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-action-500);\n }\n }\n\n &__date {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__size {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__icon {\n padding-left: 0.5rem;\n display: inline-block;\n transform: translateY(-3px);\n cursor: pointer;\n color: var(--six-color-web-rock-600);\n\n &--disabled {\n cursor: not-allowed;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\nexport interface SixFileListDownloadPayload {\n fileId: string;\n name: string;\n}\n\nexport interface SixFileListRemovePayload {\n fileId: string;\n name: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-list-item',\n styleUrl: 'six-file-list-item.scss',\n shadow: true,\n})\nexport class SixFileListItem {\n /** An id to clearly identify the file */\n @Prop({ reflect: true }) identifier = '';\n\n /** The filename */\n @Prop({ reflect: true }) name = '';\n\n /** The date when the file was uploaded */\n @Prop({ reflect: true }) date = '';\n\n /** The file size. This number will be divided by 1024 to show the filesize in KB */\n @Prop({ reflect: true }) size?: number;\n\n /** Set to true if you don't want to allow to download this file */\n @Prop({ reflect: true }) nodownload = false;\n\n /** Set to true if you don't want to allow to delete this file */\n @Prop({ reflect: true }) nodelete = false;\n\n /** Triggered on file download. */\n @Event({ eventName: 'six-file-list-item-download' }) downloadEvent!: EventEmitter<SixFileListDownloadPayload>;\n\n /** Triggered on file remove. */\n @Event({ eventName: 'six-file-list-item-remove' }) removeEvent!: EventEmitter<SixFileListRemovePayload>;\n\n private downloadFile = () => {\n if (this.nodownload) {\n return;\n }\n\n this.downloadEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n private removeFile = () => {\n if (this.nodelete) {\n return;\n }\n\n this.removeEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n render() {\n return (\n <div class=\"six-files-list-item\">\n <span\n class={{\n 'six-files-list-item__name': true,\n 'six-files-list-item__name--disabled': this.nodownload,\n }}\n onClick={this.downloadFile}\n >\n {this.name}\n </span>\n <span class=\"six-files-list-item__date\">{this.date}</span>\n {this.size != null && <span class=\"six-files-list-item__size\">{Math.round(this.size / 1024)} KB</span>}\n <six-icon\n class={{\n 'six-files-list-item__icon': true,\n 'six-files-list-item__icon--disabled': this.nodelete,\n }}\n size=\"small\"\n onClick={this.removeFile}\n >\n delete\n </six-icon>\n </div>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAqB,8zBAC3B,MAAAC,EAAeD,E,MCqBFE,EAAe,M,2IAyBlBC,KAAAC,aAAe,KACrB,GAAID,KAAKE,WAAY,CACnB,M,CAGFF,KAAKG,cAAcC,KAAK,CAAEC,OAAQL,KAAKM,WAAYC,KAAMP,KAAKO,MAAO,EAG/DP,KAAAQ,WAAa,KACnB,GAAIR,KAAKS,SAAU,CACjB,M,CAGFT,KAAKU,YAAYN,KAAK,CAAEC,OAAQL,KAAKM,WAAYC,KAAMP,KAAKO,MAAO,E,gBApC/B,G,UAGN,G,UAGA,G,oCAMM,M,cAGF,K,CAwBpC,MAAAI,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,uBACTF,EAAA,QAAAC,IAAA,2CACEC,MAAO,CACL,4BAA6B,KAC7B,sCAAuCd,KAAKE,YAE9Ca,QAASf,KAAKC,cAEbD,KAAKO,MAERK,EAAA,QAAAC,IAAA,2CAAMC,MAAM,6BAA6Bd,KAAKgB,MAC7ChB,KAAKiB,MAAQ,MAAQL,EAAA,
|
|
1
|
+
{"version":3,"names":["sixFileListItemCss","SixFileListItemStyle0","SixFileListItem","this","downloadFile","nodownload","downloadEvent","emit","fileId","identifier","name","removeFile","nodelete","removeEvent","render","h","key","class","onClick","date","size","Math","round"],"sources":["src/components/six-file-list-item/six-file-list-item.scss?tag=six-file-list-item&encapsulation=shadow","src/components/six-file-list-item/six-file-list-item.tsx"],"sourcesContent":[".six-files-list-item {\n padding-bottom: 0.5rem;\n\n &__name {\n color: var(--six-color-action-600);\n cursor: pointer;\n\n &--disabled {\n cursor: inherit;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-action-500);\n }\n }\n\n &__date {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__size {\n padding-left: 1rem;\n color: var(--six-color-web-rock-600);\n }\n\n &__icon {\n padding-left: 0.5rem;\n display: inline-block;\n transform: translateY(-3px);\n cursor: pointer;\n color: var(--six-color-web-rock-600);\n\n &--disabled {\n cursor: not-allowed;\n color: var(--six-color-web-rock-500);\n }\n\n &:hover:not(&--disabled) {\n color: var(--six-color-web-rock-900);\n }\n }\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\nexport interface SixFileListDownloadPayload {\n fileId: string;\n name: string;\n}\n\nexport interface SixFileListRemovePayload {\n fileId: string;\n name: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-list-item',\n styleUrl: 'six-file-list-item.scss',\n shadow: true,\n})\nexport class SixFileListItem {\n /** An id to clearly identify the file */\n @Prop({ reflect: true }) identifier = '';\n\n /** The filename */\n @Prop({ reflect: true }) name = '';\n\n /** The date when the file was uploaded */\n @Prop({ reflect: true }) date = '';\n\n /** The file size. This number will be divided by 1024 to show the filesize in KB */\n @Prop({ reflect: true }) size?: number;\n\n /** Set to true if you don't want to allow to download this file */\n @Prop({ reflect: true }) nodownload = false;\n\n /** Set to true if you don't want to allow to delete this file */\n @Prop({ reflect: true }) nodelete = false;\n\n /** Triggered on file download. */\n @Event({ eventName: 'six-file-list-item-download' }) downloadEvent!: EventEmitter<SixFileListDownloadPayload>;\n\n /** Triggered on file remove. */\n @Event({ eventName: 'six-file-list-item-remove' }) removeEvent!: EventEmitter<SixFileListRemovePayload>;\n\n private downloadFile = () => {\n if (this.nodownload) {\n return;\n }\n\n this.downloadEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n private removeFile = () => {\n if (this.nodelete) {\n return;\n }\n\n this.removeEvent.emit({ fileId: this.identifier, name: this.name });\n };\n\n render() {\n return (\n <div class=\"six-files-list-item\">\n <span\n class={{\n 'six-files-list-item__name': true,\n 'six-files-list-item__name--disabled': this.nodownload,\n }}\n onClick={this.downloadFile}\n >\n {this.name}\n </span>\n <span class=\"six-files-list-item__date\">{this.date}</span>\n {this.size != null && <span class=\"six-files-list-item__size\">{Math.round(this.size / 1024)} KB</span>}\n <six-icon\n class={{\n 'six-files-list-item__icon': true,\n 'six-files-list-item__icon--disabled': this.nodelete,\n }}\n size=\"small\"\n onClick={this.removeFile}\n >\n delete\n </six-icon>\n </div>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAqB,8zBAC3B,MAAAC,EAAeD,E,MCqBFE,EAAe,M,2IAyBlBC,KAAAC,aAAe,KACrB,GAAID,KAAKE,WAAY,CACnB,M,CAGFF,KAAKG,cAAcC,KAAK,CAAEC,OAAQL,KAAKM,WAAYC,KAAMP,KAAKO,MAAO,EAG/DP,KAAAQ,WAAa,KACnB,GAAIR,KAAKS,SAAU,CACjB,M,CAGFT,KAAKU,YAAYN,KAAK,CAAEC,OAAQL,KAAKM,WAAYC,KAAMP,KAAKO,MAAO,E,gBApC/B,G,UAGN,G,UAGA,G,oCAMM,M,cAGF,K,CAwBpC,MAAAI,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,uBACTF,EAAA,QAAAC,IAAA,2CACEC,MAAO,CACL,4BAA6B,KAC7B,sCAAuCd,KAAKE,YAE9Ca,QAASf,KAAKC,cAEbD,KAAKO,MAERK,EAAA,QAAAC,IAAA,2CAAMC,MAAM,6BAA6Bd,KAAKgB,MAC7ChB,KAAKiB,MAAQ,MAAQL,EAAA,QAAAC,IAAA,2CAAMC,MAAM,6BAA6BI,KAAKC,MAAMnB,KAAKiB,KAAO,MAAK,OAC3FL,EAAA,YAAAC,IAAA,2CACEC,MAAO,CACL,4BAA6B,KAC7B,sCAAuCd,KAAKS,UAE9CQ,KAAK,QACLF,QAASf,KAAKQ,YAAU,U","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as s,h as e,g as l}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as s,h as e,g as l}from"./p-48118ce8.js";import{h as o}from"./p-0cebf1d2.js";const a=".sc-six-file-upload-h{position:relative;box-sizing:border-box}.sc-six-file-upload-h *.sc-six-file-upload,.sc-six-file-upload-h *.sc-six-file-upload:before,.sc-six-file-upload-h *.sc-six-file-upload:after{box-sizing:border-box}.sc-six-file-upload-h{position:static;display:block}.six-file-upload.sc-six-file-upload six-card.sc-six-file-upload{box-shadow:none;padding:0;width:100%}.six-file-upload__label--highlighted.sc-six-file-upload{color:var(--six-color-action-600)}.six-file-upload__container--full.sc-six-file-upload{border:dashed 1px var(--six-color-web-rock-500)}.six-file-upload__label-icon.sc-six-file-upload{margin-right:0.5rem}.six-file-upload__drop-zone.sc-six-file-upload{padding:2rem 0;display:flex;justify-content:center;width:100%;transition:background-color 0.3s}.six-file-upload__drop-zone__spinner-container.sc-six-file-upload{display:flex;align-items:center}.six-file-upload__drop-zone__spinner-container.sc-six-file-upload six-spinner.sc-six-file-upload{margin-right:var(--six-spacing-x-small)}.six-file-upload__drop-zone--compact.sc-six-file-upload{padding:0}.six-file-upload__input.sc-six-file-upload{cursor:pointer;position:absolute;top:0;left:0;width:100%;user-select:none;height:100%;opacity:0;outline:none}.six-file-upload--disabled.sc-six-file-upload .six-file-upload__drop-zone.sc-six-file-upload{background-color:var(--six-color-inactive);cursor:not-allowed}.six-file-upload.sc-six-file-upload:not(.six-file-upload--disabled) .six-file-upload__drop-zone.sc-six-file-upload:hover,.six-file-upload__drop-zone--hover.sc-six-file-upload{background-color:var(--six-color-action-light-to-be-defined)}.six-file-upload.sc-six-file-upload:not(.six-file-upload--disabled) .six-file-upload__drop-zone.sc-six-file-upload:hover.six-file-upload__drop-zone--compact,.six-file-upload__drop-zone--hover.six-file-upload__drop-zone--compact.sc-six-file-upload{background-color:inherit}.six-file-upload--disabled.sc-six-file-upload .six-file-upload__input.sc-six-file-upload{cursor:not-allowed}.six-file-upload__error-text.sc-six-file-upload{font-size:var(--six-input-help-text-font-size-medium)}";const t=a;const d=class{constructor(e){i(this,e);this.success=s(this,"six-file-upload-success",7);this.failure=s(this,"six-file-upload-failure",7);this.handleSlotChange=()=>{let i=false;if(this.errorText!=null&&(typeof this.errorText=="string"&&this.errorText.trim().length>0||typeof this.errorText=="object"&&this.errorText.length>0)){i=true}this.hasError=i||o(this.host,"error-text")};this.handleFiles=i=>{if(this.disabled||i.length===0||this.uploading){return}if(!this.multiple&&i.length>1){return this.failure.emit({reason:"Only one file is allowed."})}for(const s of i){if(s==null){return}let e=[];if(this.accept!=null){e=this.accept.replace(/\s/g,"").split(",")}if(e.length>0&&e.indexOf(s.type)===-1){const s=i.length>1?"One or more files have invalid MIME type.":"File has invalid MIME type.";return this.failure.emit({reason:s})}if(this.maxFileSize!=null&&s.size>this.maxFileSize){const s=i.length>1?"One or more files are too big":"File is too big.";return this.failure.emit({reason:s})}}const s=this.multiple?{files:i}:{file:i[0]};this.success.emit(s)};this.onChange=()=>{var i;if(((i=this.fileInput)===null||i===void 0?void 0:i.files)!=null){const i=this.fileInput.files;this.handleFiles(i);this.fileInput.value=""}};this.isOver=false;this.hasError=false;this.compact=false;this.label=undefined;this.disabled=false;this.accept=undefined;this.multiple=false;this.maxFileSize=undefined;this.uploading=false;this.errorText="";this.invalid=false}dragenterHandler(){if(!this.disabled){this.isOver=true}}dragoverHandler(){if(!this.disabled){this.isOver=true}}dragleaveHandler(){if(!this.disabled){this.isOver=false}}dropHandler(){if(!this.disabled){this.isOver=false}}componentWillLoad(){this.handleSlotChange()}componentDidLoad(){var i;["dragenter","dragover","dragleave","drop"].forEach((i=>{this.host.addEventListener(i,this.preventDefaults,false);document.body.addEventListener(i,this.preventDefaults,false)}));(i=this.host.shadowRoot)===null||i===void 0?void 0:i.addEventListener("slotchange",this.handleSlotChange)}disconnectedCallback(){var i;["dragenter","dragover","dragleave","drop"].forEach((i=>{this.host.removeEventListener(i,this.preventDefaults,false);document.body.removeEventListener(i,this.preventDefaults,false)}));(i=this.host.shadowRoot)===null||i===void 0?void 0:i.removeEventListener("slotchange",this.handleSlotChange)}preventDefaults(i){i.preventDefault();i.stopPropagation()}renderLabel(){var i;return(i=this.label)!==null&&i!==void 0?i:this.compact?"Upload":e("span",null,"Drop files to upload, or ",e("span",{class:"six-file-upload__label--highlighted"},"browse"))}render(){const i=this.compact?"six-button":"six-card";const s=(Array.isArray(this.errorText)?this.errorText:[this.errorText]).filter((i=>i!=null&&i.trim()!==""));return e("div",{key:"273eaa495b7158f3caba301a3efa49918ee44e2b",class:{"six-file-upload":true,"six-file-upload--disabled":this.disabled||this.uploading}},e(i,{key:"6f230b253610a589d7ef1ce8d38ec5db724c129a",disabled:this.disabled||this.uploading,"aria-invalid":this.invalid?"true":"false",class:{"six-file-upload__container--compact":this.compact,"six-file-upload__container--full":!this.compact}},this.compact&&!this.uploading&&e("span",{key:"b1f5604ddacd8ec9b996e4de2f91b8afc48757b4",slot:"prefix"},e("six-icon",{key:"fd364b1912a31f703c8e8db887eb83ff53998e46",class:"six-file-upload__label-icon"},"arrow_circle_up")),e("div",{key:"4f26acba5da00bea31b8f7d87073e839058a86ec",class:{"six-file-upload__drop-zone":true,"six-file-upload__drop-zone--hover":this.isOver,"six-file-upload__drop-zone--compact":this.compact}},this.uploading?e("span",{class:"six-file-upload__drop-zone__spinner-container"},e("six-spinner",null)," Uploading..."):e("div",null,e("span",null,this.renderLabel()),e("input",{class:"six-file-upload__input",type:"file",name:"resume",disabled:this.disabled,accept:this.accept,multiple:this.multiple,onChange:this.onChange,ref:i=>this.fileInput=i})))),e("div",{key:"b3959e13c80f7d12102ef746aaa290bb9e420547","aria-hidden":this.invalid?"false":"true"},e("slot",{key:"979d2e80ad7028b300cc5a80888cb5f3fcfb598e",name:"error-text"},s.map((i=>e("six-error",null,e("div",{class:"six-file-upload__error-text"},i)))))))}get host(){return l(this)}};d.style=t;export{d as six_file_upload};
|
|
2
|
+
//# sourceMappingURL=p-7afdff5c.entry.js.map
|