@ionic/core 8.0.0-dev.11711408410.14d71406 → 8.0.0-dev.11711498366.18f063ac
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/components/button.js +21 -7
- package/components/index6.js +3 -1
- package/components/ion-input-password-toggle.d.ts +11 -0
- package/components/ion-input-password-toggle.js +131 -0
- package/components/ion-input.js +28 -8
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +3 -3
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +3 -3
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +3 -3
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +2 -2
- package/components/ion-searchbar.js +6 -6
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +3 -3
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-thumbnail.js +2 -2
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +4 -4
- package/components/ion-toolbar.js +2 -2
- package/components/ionic-global.js +2 -2
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +2 -2
- package/components/spinner.js +1 -1
- package/css/core.css +18 -0
- package/css/core.css.map +1 -1
- package/css/display.css +6 -0
- package/css/display.css.map +1 -1
- package/css/float-elements.css +6 -0
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +12 -0
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +6 -0
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css +6 -0
- package/css/padding.css.map +1 -1
- package/css/structure.css +6 -0
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css +6 -0
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css +6 -0
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +6 -0
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +30 -0
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{app-globals-98e49326.js → app-globals-c355ec99.js} +1 -1
- package/dist/cjs/{data-f2ccf911.js → data-7c73c8b9.js} +1 -1
- package/dist/cjs/{hardware-back-button-f66bce00.js → hardware-back-button-e79bd12c.js} +1 -1
- package/dist/cjs/{index-f52c6d38.js → index-073c7cdc.js} +4 -0
- package/dist/cjs/{index-91435ed0.js → index-193def18.js} +1 -1
- package/dist/cjs/{index-f5fcf972.js → index-f06d55a9.js} +2 -2
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{input-shims-837af288.js → input-shims-0c59e88a.js} +2 -2
- package/dist/cjs/{input.utils-01c2fa15.js → input.utils-ee49fd29.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +3 -3
- package/dist/cjs/ion-alert.cjs.entry.js +3 -3
- package/dist/cjs/ion-app_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +21 -7
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ion-chip.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +92 -0
- package/dist/cjs/ion-input.cjs.entry.js +28 -9
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +14 -14
- package/dist/cjs/ion-loading.cjs.entry.js +5 -5
- package/dist/cjs/ion-menu_3.cjs.entry.js +11 -11
- package/dist/cjs/ion-modal.cjs.entry.js +7 -7
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +5 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-range.cjs.entry.js +5 -5
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +7 -7
- package/dist/cjs/ion-segment_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-select_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +3 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
- package/dist/cjs/ion-toast.cjs.entry.js +5 -5
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -5
- package/dist/cjs/{ionic-global-94d8021d.js → ionic-global-ceb32795.js} +2 -2
- package/dist/cjs/ionic.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{overlays-de847251.js → overlays-f770745f.js} +2 -2
- package/dist/cjs/{status-tap-3ef7ca2b.js → status-tap-8d40351a.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.ios.css +12 -0
- package/dist/collection/components/accordion/accordion.md.css +6 -0
- package/dist/collection/components/accordion-group/accordion-group.ios.css +12 -0
- package/dist/collection/components/accordion-group/accordion-group.md.css +18 -0
- package/dist/collection/components/action-sheet/action-sheet.ios.css +12 -0
- package/dist/collection/components/action-sheet/action-sheet.md.css +12 -0
- package/dist/collection/components/alert/alert.ios.css +18 -0
- package/dist/collection/components/alert/alert.md.css +18 -0
- package/dist/collection/components/avatar/avatar.ios.css +12 -0
- package/dist/collection/components/avatar/avatar.md.css +12 -0
- package/dist/collection/components/back-button/back-button.ios.css +12 -0
- package/dist/collection/components/back-button/back-button.md.css +12 -0
- package/dist/collection/components/backdrop/backdrop.ios.css +12 -0
- package/dist/collection/components/backdrop/backdrop.md.css +12 -0
- package/dist/collection/components/badge/badge.ios.css +12 -0
- package/dist/collection/components/badge/badge.md.css +12 -0
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +12 -0
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +12 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
- package/dist/collection/components/button/button.ionic.css +565 -0
- package/dist/collection/components/button/button.ios.css +18 -0
- package/dist/collection/components/button/button.js +24 -10
- package/dist/collection/components/button/button.md.css +12 -0
- package/dist/collection/components/button/test/clear/button.e2e.js +6 -3
- package/dist/collection/components/button/test/shape/button.e2e.js +88 -0
- package/dist/collection/components/button/test/size/button.e2e.js +19 -1
- package/dist/collection/components/buttons/buttons.ios.css +18 -0
- package/dist/collection/components/buttons/buttons.md.css +18 -0
- package/dist/collection/components/card/card.ios.css +12 -0
- package/dist/collection/components/card/card.md.css +12 -0
- package/dist/collection/components/card-content/card-content.ios.css +12 -0
- package/dist/collection/components/card-content/card-content.md.css +12 -0
- package/dist/collection/components/card-header/card-header.ios.css +12 -0
- package/dist/collection/components/card-header/card-header.md.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
- package/dist/collection/components/card-title/card-title.ios.css +12 -0
- package/dist/collection/components/card-title/card-title.md.css +12 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +18 -0
- package/dist/collection/components/checkbox/checkbox.md.css +18 -0
- package/dist/collection/components/chip/chip.ios.css +6 -0
- package/dist/collection/components/chip/chip.md.css +6 -0
- package/dist/collection/components/col/col.css +12 -0
- package/dist/collection/components/content/content.css +6 -0
- package/dist/collection/components/datetime/datetime.ios.css +12 -0
- package/dist/collection/components/datetime/datetime.md.css +12 -0
- package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
- package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
- package/dist/collection/components/fab/fab.css +24 -0
- package/dist/collection/components/fab-button/fab-button.ios.css +12 -0
- package/dist/collection/components/fab-button/fab-button.md.css +12 -0
- package/dist/collection/components/fab-list/fab-list.css +12 -0
- package/dist/collection/components/footer/footer.ios.css +12 -0
- package/dist/collection/components/footer/footer.md.css +12 -0
- package/dist/collection/components/grid/grid.css +12 -0
- package/dist/collection/components/header/header.ios.css +12 -0
- package/dist/collection/components/header/header.md.css +12 -0
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
- package/dist/collection/components/input/input.ios.css +27 -0
- package/dist/collection/components/input/input.js +26 -5
- package/dist/collection/components/input/input.md.css +45 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.css +0 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +183 -0
- package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +21 -0
- package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +38 -0
- package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +76 -0
- package/dist/collection/components/item/item.ios.css +12 -0
- package/dist/collection/components/item/item.md.css +24 -0
- package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-divider/item-divider.md.css +18 -0
- package/dist/collection/components/item-group/item-group.ios.css +12 -0
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-group/item-group.md.css +12 -0
- package/dist/collection/components/item-option/item-option.ios.css +12 -0
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-option/item-option.md.css +12 -0
- package/dist/collection/components/item-options/item-options.ios.css +18 -0
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-options/item-options.md.css +18 -0
- package/dist/collection/components/item-sliding/item-sliding.css +6 -0
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.ios.css +18 -0
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/label/label.md.css +18 -0
- package/dist/collection/components/list/list.ios.css +18 -0
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/list.md.css +18 -0
- package/dist/collection/components/list-header/list-header.ios.css +18 -0
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/list-header/list-header.md.css +18 -0
- package/dist/collection/components/loading/loading.ios.css +12 -0
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/loading/loading.md.css +12 -0
- package/dist/collection/components/menu/menu.ios.css +12 -0
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu/menu.md.css +12 -0
- package/dist/collection/components/menu-button/menu-button.ios.css +12 -0
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-button/menu-button.md.css +12 -0
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.ios.css +12 -0
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/modal/modal.md.css +12 -0
- package/dist/collection/components/nav/nav.css +6 -0
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.ios.css +12 -0
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/note/note.md.css +12 -0
- package/dist/collection/components/picker/picker.ios.css +12 -0
- package/dist/collection/components/picker/picker.md.css +12 -0
- package/dist/collection/components/picker-column/picker-column.css +6 -0
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +12 -0
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy/picker.md.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
- package/dist/collection/components/popover/popover.ios.css +12 -0
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/popover/popover.md.css +12 -0
- package/dist/collection/components/progress-bar/progress-bar.ios.css +6 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.md.css +6 -0
- package/dist/collection/components/radio/radio.ios.css +18 -0
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio/radio.md.css +18 -0
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.ios.css +12 -0
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/range/range.md.css +12 -0
- package/dist/collection/components/refresher/refresher.ios.css +12 -0
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher/refresher.md.css +12 -0
- package/dist/collection/components/refresher-content/refresher-content.js +2 -2
- package/dist/collection/components/reorder/reorder.ios.css +6 -0
- package/dist/collection/components/reorder/reorder.js +2 -2
- package/dist/collection/components/reorder/reorder.md.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.css +6 -0
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.css +6 -0
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.css +6 -0
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.css +12 -0
- package/dist/collection/components/row/row.js +2 -2
- package/dist/collection/components/searchbar/searchbar.ios.css +12 -0
- package/dist/collection/components/searchbar/searchbar.js +8 -7
- package/dist/collection/components/searchbar/searchbar.md.css +12 -0
- package/dist/collection/components/segment/segment.ios.css +18 -0
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment/segment.md.css +18 -0
- package/dist/collection/components/segment-button/segment-button.ios.css +12 -0
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/segment-button/segment-button.md.css +12 -0
- package/dist/collection/components/select/select.ios.css +18 -0
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select/select.md.css +30 -0
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
- package/dist/collection/components/select-popover/select-popover.js +2 -2
- package/dist/collection/components/select-popover/select-popover.md.css +18 -0
- package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.css +6 -0
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.ios.css +18 -0
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/split-pane/split-pane.md.css +18 -0
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.ios.css +18 -0
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.md.css +18 -0
- package/dist/collection/components/tab-button/tab-button.ios.css +12 -0
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tab-button/tab-button.md.css +12 -0
- package/dist/collection/components/tabs/tabs.css +6 -0
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.css +6 -0
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.ios.css +24 -0
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/textarea/textarea.md.css +36 -0
- package/dist/collection/components/thumbnail/thumbnail.css +6 -0
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/title/title.ios.css +6 -0
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/title/title.md.css +6 -0
- package/dist/collection/components/toast/toast.ios.css +12 -0
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toast/toast.md.css +12 -0
- package/dist/collection/components/toggle/toggle.ios.css +18 -0
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toggle/toggle.md.css +18 -0
- package/dist/collection/components/toolbar/toolbar.ios.css +12 -0
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/components/toolbar/toolbar.md.css +12 -0
- package/dist/collection/global/ionic-global.js +2 -2
- package/dist/docs.json +198 -11
- package/dist/esm/{app-globals-4194f7b0.js → app-globals-378c927e.js} +1 -1
- package/dist/esm/{data-735635b1.js → data-502c79ce.js} +1 -1
- package/dist/esm/{hardware-back-button-ff84501f.js → hardware-back-button-6d25372a.js} +1 -1
- package/dist/esm/{index-62041d9c.js → index-47afdf4f.js} +2 -2
- package/dist/esm/{index-4bbc4ca3.js → index-84145911.js} +1 -1
- package/dist/esm/{index-f7dc70ba.js → index-e2cf2ceb.js} +3 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{input-shims-131a3f9f.js → input-shims-d80cf854.js} +2 -2
- package/dist/esm/{input.utils-41b26b54.js → input.utils-526678b9.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +3 -3
- package/dist/esm/ion-alert.entry.js +3 -3
- package/dist/esm/ion-app_8.entry.js +11 -11
- package/dist/esm/ion-avatar_3.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +21 -7
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +1 -1
- package/dist/esm/ion-chip.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +9 -9
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +88 -0
- package/dist/esm/ion-input.entry.js +28 -9
- package/dist/esm/ion-item-option_3.entry.js +6 -6
- package/dist/esm/ion-item_8.entry.js +14 -14
- package/dist/esm/ion-loading.entry.js +5 -5
- package/dist/esm/ion-menu_3.entry.js +11 -11
- package/dist/esm/ion-modal.entry.js +7 -7
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +5 -5
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +5 -5
- package/dist/esm/ion-range.entry.js +5 -5
- package/dist/esm/ion-refresher_2.entry.js +6 -6
- package/dist/esm/ion-reorder_2.entry.js +6 -6
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +7 -7
- package/dist/esm/ion-segment_2.entry.js +6 -6
- package/dist/esm/ion-select_3.entry.js +9 -9
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +3 -3
- package/dist/esm/ion-tab-bar_2.entry.js +5 -5
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +3 -3
- package/dist/esm/ion-textarea.entry.js +4 -4
- package/dist/esm/ion-toast.entry.js +5 -5
- package/dist/esm/ion-toggle.entry.js +5 -5
- package/dist/esm/{ionic-global-d47e129d.js → ionic-global-a03b1588.js} +2 -2
- package/dist/esm/ionic.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{overlays-213b5a21.js → overlays-84f5c587.js} +2 -2
- package/dist/esm/{status-tap-8838c434.js → status-tap-a65b162a.js} +2 -2
- package/dist/esm-es5/app-globals-378c927e.js +4 -0
- package/dist/esm-es5/{data-735635b1.js → data-502c79ce.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-ff84501f.js → hardware-back-button-6d25372a.js} +1 -1
- package/dist/esm-es5/{index-62041d9c.js → index-47afdf4f.js} +1 -1
- package/dist/esm-es5/{index-4bbc4ca3.js → index-84145911.js} +1 -1
- package/dist/esm-es5/{index-f7dc70ba.js → index-e2cf2ceb.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{input-shims-131a3f9f.js → input-shims-d80cf854.js} +1 -1
- package/dist/esm-es5/{input.utils-41b26b54.js → input.utils-526678b9.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +4 -0
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-d47e129d.js → ionic-global-a03b1588.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{overlays-213b5a21.js → overlays-84f5c587.js} +1 -1
- package/dist/esm-es5/{status-tap-8838c434.js → status-tap-a65b162a.js} +1 -1
- package/dist/html.html-data.json +77 -0
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-00017a0e.entry.js +4 -0
- package/dist/ionic/{p-3e9e667a.entry.js → p-0483cb18.entry.js} +1 -1
- package/dist/ionic/{p-3e47e61e.entry.js → p-0afb8cd7.entry.js} +1 -1
- package/dist/ionic/{p-09b71030.entry.js → p-0fc68641.entry.js} +1 -1
- package/dist/ionic/{p-f7a041dc.js → p-11f322f2.js} +1 -1
- package/dist/ionic/{p-23e053d0.system.entry.js → p-158f84ef.system.entry.js} +1 -1
- package/dist/ionic/{p-30aed000.system.entry.js → p-1a721859.system.entry.js} +1 -1
- package/dist/ionic/p-1a8de6fa.entry.js +4 -0
- package/dist/ionic/p-1e955a45.system.js +4 -0
- package/dist/ionic/{p-617a8c10.system.entry.js → p-1ed7baef.system.entry.js} +1 -1
- package/dist/ionic/{p-bb4431d3.entry.js → p-22c5142f.entry.js} +1 -1
- package/dist/ionic/p-2a31b1f5.system.js +4 -0
- package/dist/ionic/{p-df92bab7.system.js → p-2a6e67b4.system.js} +1 -1
- package/dist/ionic/{p-e399a113.entry.js → p-2ab228af.entry.js} +1 -1
- package/dist/ionic/{p-4c55c5ce.entry.js → p-31b66414.entry.js} +1 -1
- package/dist/ionic/p-31bf1d38.entry.js +4 -0
- package/dist/ionic/{p-c957dcbd.system.entry.js → p-3302a619.system.entry.js} +1 -1
- package/dist/ionic/{p-6d1854de.system.entry.js → p-33c1c033.system.entry.js} +1 -1
- package/dist/ionic/{p-197fca36.system.entry.js → p-348beae7.system.entry.js} +1 -1
- package/dist/ionic/{p-3ecd1809.entry.js → p-355f3434.entry.js} +1 -1
- package/dist/ionic/{p-605c456e.system.entry.js → p-35dc747b.system.entry.js} +1 -1
- package/dist/ionic/p-35e5e98a.system.entry.js +4 -0
- package/dist/ionic/{p-e7522003.js → p-368b5f57.js} +1 -1
- package/dist/ionic/{p-2fad37de.system.entry.js → p-379c62e1.system.entry.js} +1 -1
- package/dist/ionic/{p-16b3b748.system.js → p-37c9bc91.system.js} +1 -1
- package/dist/ionic/{p-98ced5a7.system.entry.js → p-3b14e7b9.system.entry.js} +1 -1
- package/dist/ionic/{p-e557901b.entry.js → p-3d14260a.entry.js} +1 -1
- package/dist/ionic/{p-b8df09fa.entry.js → p-3df045bd.entry.js} +1 -1
- package/dist/ionic/{p-dff73ffc.system.js → p-47883cab.system.js} +1 -1
- package/dist/ionic/{p-c7e3ef1f.js → p-487bee8d.js} +1 -1
- package/dist/ionic/{p-35b46c05.entry.js → p-49d23e05.entry.js} +1 -1
- package/dist/ionic/{p-bb01995b.entry.js → p-4e27762d.entry.js} +1 -1
- package/dist/ionic/{p-e62f29e0.system.entry.js → p-4f785e62.system.entry.js} +1 -1
- package/dist/ionic/{p-2c8cb8c0.system.entry.js → p-4faa6455.system.entry.js} +1 -1
- package/dist/ionic/{p-7d6993fa.entry.js → p-4fbe6e81.entry.js} +1 -1
- package/dist/ionic/{p-11f25a12.system.js → p-50cf70e8.system.js} +1 -1
- package/dist/ionic/p-525a9d5f.system.entry.js +4 -0
- package/dist/ionic/{p-62ad354a.system.entry.js → p-54cbb70e.system.entry.js} +1 -1
- package/dist/ionic/{p-4f30e4c3.system.entry.js → p-5589bb5b.system.entry.js} +1 -1
- package/dist/ionic/p-57963dea.entry.js +4 -0
- package/dist/ionic/{p-69e691df.system.entry.js → p-58d1ab91.system.entry.js} +1 -1
- package/dist/ionic/{p-de5f6929.system.entry.js → p-58df6e9f.system.entry.js} +1 -1
- package/dist/ionic/{p-5fed4c24.system.entry.js → p-5e0d356b.system.entry.js} +1 -1
- package/dist/ionic/p-602146d8.js +4 -0
- package/dist/ionic/{p-365d2cfe.system.entry.js → p-6117f6c5.system.entry.js} +1 -1
- package/dist/ionic/{p-6718dfd8.system.entry.js → p-61a87440.system.entry.js} +1 -1
- package/dist/ionic/{p-644df0cc.system.entry.js → p-64eb01cb.system.entry.js} +1 -1
- package/dist/ionic/{p-385c76dc.system.entry.js → p-66d0a048.system.entry.js} +1 -1
- package/dist/ionic/{p-af732189.system.js → p-66d55ac3.system.js} +2 -2
- package/dist/ionic/{p-0daf382b.system.entry.js → p-680448fe.system.entry.js} +1 -1
- package/dist/ionic/{p-c78731fc.system.js → p-6df8b089.system.js} +1 -1
- package/dist/ionic/{p-3ed32307.system.entry.js → p-707a9d71.system.entry.js} +1 -1
- package/dist/ionic/{p-322eb715.system.js → p-726f80e7.system.js} +1 -1
- package/dist/ionic/{p-ae3fdd38.entry.js → p-738714f4.entry.js} +1 -1
- package/dist/ionic/{p-52698131.entry.js → p-789f197c.entry.js} +1 -1
- package/dist/ionic/{p-7fefe43e.system.js → p-822696e5.system.js} +1 -1
- package/dist/ionic/{p-ae2c6708.system.entry.js → p-8244824f.system.entry.js} +2 -2
- package/dist/ionic/{p-29ceda88.js → p-832dae23.js} +1 -1
- package/dist/ionic/{p-cd94b05a.system.entry.js → p-83d220ee.system.entry.js} +1 -1
- package/dist/ionic/{p-57082094.entry.js → p-84549d94.entry.js} +1 -1
- package/dist/ionic/{p-23a3320b.js → p-86379b84.js} +1 -1
- package/dist/ionic/{p-57b76977.system.entry.js → p-89d25317.system.entry.js} +1 -1
- package/dist/ionic/{p-b0da0e7e.entry.js → p-8e8522e3.entry.js} +1 -1
- package/dist/ionic/{p-a68b1b19.entry.js → p-8ef1d644.entry.js} +1 -1
- package/dist/ionic/{p-7c6ba817.system.entry.js → p-91b79359.system.entry.js} +1 -1
- package/dist/ionic/{p-71784639.entry.js → p-929058ef.entry.js} +1 -1
- package/dist/ionic/{p-2a4641fb.system.entry.js → p-93c12309.system.entry.js} +1 -1
- package/dist/ionic/{p-d6788bde.system.entry.js → p-94a31caf.system.entry.js} +1 -1
- package/dist/ionic/{p-9a76dbbb.entry.js → p-96472d74.entry.js} +1 -1
- package/dist/ionic/{p-a5456295.entry.js → p-99bf116a.entry.js} +1 -1
- package/dist/ionic/{p-c1d0861e.entry.js → p-9c52644e.entry.js} +1 -1
- package/dist/ionic/p-9d6f10bd.entry.js +4 -0
- package/dist/ionic/p-9dccdc99.entry.js +4 -0
- package/dist/ionic/{p-84dd4f6c.system.entry.js → p-9f1b4c72.system.entry.js} +1 -1
- package/dist/ionic/{p-77cdf8f0.system.entry.js → p-a300b844.system.entry.js} +1 -1
- package/dist/ionic/{p-eab67c46.system.entry.js → p-a3d98f76.system.entry.js} +1 -1
- package/dist/ionic/p-a9e86436.system.entry.js +4 -0
- package/dist/ionic/{p-6770c46d.system.entry.js → p-ab45eca5.system.entry.js} +1 -1
- package/dist/ionic/{p-8cd83c08.system.entry.js → p-ae6a5ee1.system.entry.js} +1 -1
- package/dist/ionic/{p-8fbf7c49.entry.js → p-af5123f7.entry.js} +1 -1
- package/dist/ionic/p-b29b0043.system.entry.js +4 -0
- package/dist/ionic/{p-24cc69ab.entry.js → p-b4f2d31e.entry.js} +1 -1
- package/dist/ionic/{p-46e489c1.entry.js → p-b5c85b3c.entry.js} +1 -1
- package/dist/ionic/{p-4c6278ca.system.entry.js → p-b6ad1585.system.entry.js} +1 -1
- package/dist/ionic/{p-56dfd814.entry.js → p-b8df12bb.entry.js} +1 -1
- package/dist/ionic/{p-f9398178.entry.js → p-ba85f57a.entry.js} +1 -1
- package/dist/ionic/{p-b0bd2f28.system.entry.js → p-bc4f3bb5.system.entry.js} +1 -1
- package/dist/ionic/{p-3e8cfe35.system.entry.js → p-bd1a5533.system.entry.js} +1 -1
- package/dist/ionic/p-bfd648f6.entry.js +4 -0
- package/dist/ionic/{p-716cc857.entry.js → p-c0d40adb.entry.js} +1 -1
- package/dist/ionic/{p-d83f3852.system.entry.js → p-c11dbd56.system.entry.js} +1 -1
- package/dist/ionic/p-c33fe06e.entry.js +4 -0
- package/dist/ionic/{p-e86fef55.system.js → p-c47d0e2a.system.js} +1 -1
- package/dist/ionic/p-c5c7d271.entry.js +4 -0
- package/dist/ionic/{p-fe1345b7.js → p-ca958797.js} +1 -1
- package/dist/ionic/p-cbb46ee9.entry.js +4 -0
- package/dist/ionic/{p-cc1dabd2.system.entry.js → p-cf5829f5.system.entry.js} +1 -1
- package/dist/ionic/{p-afeebbc2.entry.js → p-d08ac146.entry.js} +1 -1
- package/dist/ionic/{p-57a4c6c3.js → p-d3498aab.js} +1 -1
- package/dist/ionic/{p-0507489e.system.entry.js → p-d74b5b06.system.entry.js} +1 -1
- package/dist/ionic/p-da2b833b.js +4 -0
- package/dist/ionic/{p-139e8ff1.js → p-db490c56.js} +1 -1
- package/dist/ionic/{p-2bc784c2.system.entry.js → p-db643807.system.entry.js} +1 -1
- package/dist/ionic/{p-45684f75.system.entry.js → p-dfbfcb53.system.entry.js} +1 -1
- package/dist/ionic/{p-820be1bf.entry.js → p-e03b9251.entry.js} +1 -1
- package/dist/ionic/{p-fea6e789.system.entry.js → p-e1403ca6.system.entry.js} +1 -1
- package/dist/ionic/{p-1126b6fb.entry.js → p-e30d6c34.entry.js} +1 -1
- package/dist/ionic/{p-ed454419.entry.js → p-e39ec17c.entry.js} +1 -1
- package/dist/ionic/{p-f85988bd.entry.js → p-e3b6bda8.entry.js} +1 -1
- package/dist/ionic/{p-ff93a0f3.entry.js → p-e6f26311.entry.js} +1 -1
- package/dist/ionic/{p-18d1e318.system.js → p-e78ab7a6.system.js} +1 -1
- package/dist/ionic/{p-1f04779e.entry.js → p-e85a8a81.entry.js} +1 -1
- package/dist/ionic/{p-226bdf0f.entry.js → p-ec637936.entry.js} +1 -1
- package/dist/ionic/{p-30b7a6a6.system.entry.js → p-ef61637a.system.entry.js} +2 -2
- package/dist/ionic/{p-6981ada8.entry.js → p-f02998b5.entry.js} +1 -1
- package/dist/ionic/{p-d2a65df9.js → p-f35f7d6c.js} +1 -1
- package/dist/ionic/{p-4e7a18b3.entry.js → p-fc174bf1.entry.js} +1 -1
- package/dist/ionic/p-fc9c5b84.system.js +4 -0
- package/dist/types/components/button/button.d.ts +6 -2
- package/dist/types/components/input/input.d.ts +6 -0
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +37 -0
- package/dist/types/components/searchbar/searchbar.d.ts +0 -14
- package/dist/types/components.d.ts +51 -5
- package/hydrate/index.js +245 -114
- package/package.json +1 -1
- package/css/core.ionic.css +0 -13
- package/css/core.ionic.css.map +0 -1
- package/dist/collection/components/button/test/round/button.e2e.js +0 -52
- package/dist/esm-es5/app-globals-4194f7b0.js +0 -4
- package/dist/ionic/p-116239e0.system.entry.js +0 -4
- package/dist/ionic/p-13aa1338.entry.js +0 -4
- package/dist/ionic/p-24e9aa21.entry.js +0 -4
- package/dist/ionic/p-41908d5c.entry.js +0 -4
- package/dist/ionic/p-44d8d5c3.entry.js +0 -4
- package/dist/ionic/p-5919403e.js +0 -4
- package/dist/ionic/p-6087c7ac.system.entry.js +0 -4
- package/dist/ionic/p-70a396e0.entry.js +0 -4
- package/dist/ionic/p-831269de.js +0 -4
- package/dist/ionic/p-8fd110c6.entry.js +0 -4
- package/dist/ionic/p-ac1eb107.system.js +0 -4
- package/dist/ionic/p-b69db5bf.entry.js +0 -4
- package/dist/ionic/p-c8985963.system.js +0 -4
- package/dist/ionic/p-dfb6de03.system.js +0 -4
- package/dist/ionic/p-e4cd4316.system.entry.js +0 -4
- package/dist/ionic/p-f977c8c5.entry.js +0 -4
- package/dist/ionic/p-ff584ff5.entry.js +0 -4
package/components/button.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { h as hasShadowDom, i as inheritAriaAttributes } from './helpers.js';
|
|
6
|
-
import {
|
|
6
|
+
import { d as getIonTheme, p as printIonWarning } from './ionic-global.js';
|
|
7
7
|
import { o as openURL, c as createColorClasses, h as hostContext } from './theme.js';
|
|
8
8
|
import { d as defineCustomElement$1 } from './ripple-effect.js';
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
const IonButtonIonicStyle0 =
|
|
10
|
+
const buttonIonicCss = ":host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:0.5rem;--padding-bottom:var(--padding-top);--padding-end:1rem;--padding-start:var(--padding-end);--padding-top:0.75rem;--focus-ring-color:#9ec4fd;--focus-ring-width:2px;position:relative;min-height:2.5rem;font-size:min(0.875rem, 42px)}:host::after{left:0;right:0;top:50%;position:absolute;height:100%;min-height:3rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:\"\";cursor:pointer;z-index:1}:host ::slotted(ion-icon[slot=start]){-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host ::slotted(ion-icon[slot=end]){-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host(.button-xsmall) ::slotted(ion-icon[slot=start]),:host(.button-small) ::slotted(ion-icon[slot=start]){-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host(.button-xsmall) ::slotted(ion-icon[slot=end]),:host(.button-small) ::slotted(ion-icon[slot=end]){-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}:host(.button-xsmall){--border-radius:0.25rem;--padding-top:0.25rem;--padding-end:0.75rem;min-height:1.5rem;font-size:min(0.75rem, 36px)}:host(.button-small){--border-radius:0.25rem;--padding-top:0.5rem;--padding-end:1rem;min-height:2rem;font-size:min(0.75rem, 36px)}:host(.button-large){--padding-top:1rem;--padding-end:1.5rem;min-height:3rem;font-size:min(1rem, 48px)}:host(.button-xlarge){--padding-top:1rem;--padding-end:2rem;min-height:3.5rem;font-size:min(1.25rem, 60px)}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]),::slotted(ion-icon[slot=icon-only]){font-size:1em}:host(.button-has-icon-only.button-xsmall){--padding-end:0.375rem}:host(.button-has-icon-only.button-small){--padding-end:0.625rem}:host(.button-has-icon-only){--padding-end:0.8125rem}:host(.button-has-icon-only.button-large){--padding-end:1rem}:host(.button-has-icon-only.button-xlarge){--padding-end:1.125rem}:host(.button-rectangular){--border-radius:0}:host(.button-round){--border-radius:62.4375rem}:host(.ion-focused) .button-native{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:2px}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd)}:host(.button-outline){--border-width:1px;--border-style:solid;--background-activated:#e3e3e3;--background-activated-opacity:1;--background-focused:transparent;--background-hover:transparent;--background-focused-opacity:0.1;--color-activated:var(--ion-color-primary, #0054e9)}:host(.button-outline.ion-focused){--border-color:transparent}:host(.button-clear){--background-activated:#e3e3e3;--background-activated-opacity:1;--background-focused:transparent;--background-hover:transparent}:host(.button-outline),:host(.button-clear){--background-hover:#121212;--background-hover-opacity:0.04}:host(.button-disabled){--color:#c9c9c9;--border-color:var(--color);opacity:1}:host(.button-solid.button-disabled){--background:#f5f5f5}";
|
|
11
|
+
const IonButtonIonicStyle0 = buttonIonicCss;
|
|
12
12
|
|
|
13
13
|
const buttonIosCss = ":host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:1.125em}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:1.4em}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:1em}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}";
|
|
14
14
|
const IonButtonIosStyle0 = buttonIosCss;
|
|
@@ -126,6 +126,20 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
126
126
|
}
|
|
127
127
|
return 'bounded';
|
|
128
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Disable the "xsmall" and "xlarge" sizes if the theme is "ios" or "md"
|
|
131
|
+
*/
|
|
132
|
+
getSize() {
|
|
133
|
+
const theme = getIonTheme(this);
|
|
134
|
+
const { size } = this;
|
|
135
|
+
if (size === undefined && this.inItem) {
|
|
136
|
+
return 'small';
|
|
137
|
+
}
|
|
138
|
+
if ((theme === 'ios' || theme === 'md') && (size === 'xsmall' || size === 'xlarge')) {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
return size;
|
|
142
|
+
}
|
|
129
143
|
/**
|
|
130
144
|
* Finds the form element based on the provided `form` selector
|
|
131
145
|
* or element reference provided.
|
|
@@ -186,9 +200,9 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
186
200
|
}
|
|
187
201
|
}
|
|
188
202
|
render() {
|
|
189
|
-
const { buttonType, type, disabled, rel, target,
|
|
203
|
+
const { buttonType, type, disabled, rel, target, href, color, expand, hasIconOnly, shape, strong, inheritedAttributes, } = this;
|
|
190
204
|
const theme = getIonTheme(this);
|
|
191
|
-
const finalSize =
|
|
205
|
+
const finalSize = this.getSize();
|
|
192
206
|
const TagType = href === undefined ? 'button' : 'a';
|
|
193
207
|
const attrs = TagType === 'button'
|
|
194
208
|
? { type }
|
|
@@ -216,7 +230,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
216
230
|
{
|
|
217
231
|
type !== 'button' && this.renderHiddenButton();
|
|
218
232
|
}
|
|
219
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: 'ad194a242d68360d9bbbd025a409af09d87b4d34', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
220
234
|
[theme]: true,
|
|
221
235
|
[buttonType]: true,
|
|
222
236
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -231,7 +245,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
231
245
|
'button-disabled': disabled,
|
|
232
246
|
'ion-activatable': true,
|
|
233
247
|
'ion-focusable': true,
|
|
234
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
248
|
+
}) }, h(TagType, Object.assign({ key: '6ca717c26b637859f780c22f8b4a7e921b723e12' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }, inheritedAttributes), h("span", { key: '60ff7c727df3fee342bed8839a493057149e2600', class: "button-inner" }, h("slot", { key: 'e048881659c50129e29668694ef11420400c9059', name: "icon-only", onSlotchange: this.slotChanged }), h("slot", { key: '3783397b79a5f4756fce1ba546c9b3e00e8afb69', name: "start" }), h("slot", { key: '1e3c2fd3969bf4c83e432e2a1a2058d699d9685a' }), h("slot", { key: 'badb9b5954d8d8a19a53ff4be3ff5d0e0b3354ae', name: "end" })), theme === 'md' && h("ion-ripple-effect", { type: this.rippleType }))));
|
|
235
249
|
}
|
|
236
250
|
get el() { return this; }
|
|
237
251
|
static get watchers() { return {
|
package/components/index6.js
CHANGED
|
@@ -18,6 +18,8 @@ const closeCircle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/
|
|
|
18
18
|
const closeSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>";
|
|
19
19
|
const ellipseOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='192' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
|
|
20
20
|
const ellipsisHorizontal = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='48'/><circle cx='416' cy='256' r='48'/><circle cx='96' cy='256' r='48'/></svg>";
|
|
21
|
+
const eye = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='64'/><path d='M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 00-.1-34.76zM256 352a96 96 0 1196-96 96.11 96.11 0 01-96 96z'/></svg>";
|
|
22
|
+
const eyeOff = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M432 448a15.92 15.92 0 01-11.31-4.69l-352-352a16 16 0 0122.62-22.62l352 352A16 16 0 01432 448zM248 315.85l-51.79-51.79a2 2 0 00-3.39 1.69 64.11 64.11 0 0053.49 53.49 2 2 0 001.69-3.39zM264 196.15L315.87 248a2 2 0 003.4-1.69 64.13 64.13 0 00-53.55-53.55 2 2 0 00-1.72 3.39z'/><path d='M491 273.36a32.2 32.2 0 00-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 00-71.82 11.79 4 4 0 00-1.56 6.63l47.24 47.24a4 4 0 003.82 1.05 96 96 0 01116 116 4 4 0 001.05 3.81l67.95 68a4 4 0 005.4.24 343.81 343.81 0 0067.24-77.4zM256 352a96 96 0 01-93.3-118.63 4 4 0 00-1.05-3.81l-66.84-66.87a4 4 0 00-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0072.64-11.55 4 4 0 001.61-6.64l-47.47-47.46a4 4 0 00-3.81-1.05A96 96 0 01256 352z'/></svg>";
|
|
21
23
|
const menuOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
|
|
22
24
|
const menuSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z'/></svg>";
|
|
23
25
|
const removeOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
|
|
@@ -26,4 +28,4 @@ const reorderTwoSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2
|
|
|
26
28
|
const searchOutline = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>";
|
|
27
29
|
const searchSharp = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>";
|
|
28
30
|
|
|
29
|
-
export { chevronBack as a, arrowBackSharp as b, chevronDown as c, chevronForwardOutline as d, ellipsisHorizontal as e, chevronForward as f, caretUpSharp as g, caretDownSharp as h, close as i, closeCircle as j, closeSharp as k,
|
|
31
|
+
export { chevronBack as a, arrowBackSharp as b, chevronDown as c, chevronForwardOutline as d, ellipsisHorizontal as e, chevronForward as f, caretUpSharp as g, caretDownSharp as h, close as i, closeCircle as j, closeSharp as k, eye as l, eyeOff as m, menuOutline as n, menuSharp as o, caretBackSharp as p, arrowDown as q, reorderThreeOutline as r, reorderTwoSharp as s, searchOutline as t, searchSharp as u, chevronExpand as v, checkmarkOutline as w, removeOutline as x, ellipseOutline as y };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface IonInputPasswordToggle extends Components.IonInputPasswordToggle, HTMLElement {}
|
|
4
|
+
export const IonInputPasswordToggle: {
|
|
5
|
+
prototype: IonInputPasswordToggle;
|
|
6
|
+
new (): IonInputPasswordToggle;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { p as printIonWarning, b as getIonMode } from './ionic-global.js';
|
|
6
|
+
import { c as createColorClasses } from './theme.js';
|
|
7
|
+
import { l as eye, m as eyeOff } from './index6.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './button.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './ripple-effect.js';
|
|
11
|
+
|
|
12
|
+
const iosInputPasswordToggleCss = "";
|
|
13
|
+
const IonInputPasswordToggleIosStyle0 = iosInputPasswordToggleCss;
|
|
14
|
+
|
|
15
|
+
const mdInputPasswordToggleCss = "";
|
|
16
|
+
const IonInputPasswordToggleMdStyle0 = mdInputPasswordToggleCss;
|
|
17
|
+
|
|
18
|
+
const InputPasswordToggle = /*@__PURE__*/ proxyCustomElement(class InputPasswordToggle extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
this.__attachShadow();
|
|
23
|
+
this.togglePasswordVisibility = () => {
|
|
24
|
+
const { inputElRef } = this;
|
|
25
|
+
if (!inputElRef) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
inputElRef.type = inputElRef.type === 'text' ? 'password' : 'text';
|
|
29
|
+
};
|
|
30
|
+
this.color = undefined;
|
|
31
|
+
this.showIcon = undefined;
|
|
32
|
+
this.hideIcon = undefined;
|
|
33
|
+
this.type = 'password';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Whenever the input type changes we need to re-run validation to ensure the password
|
|
37
|
+
* toggle is being used with the correct input type. If the application changes the type
|
|
38
|
+
* outside of this component we also need to re-render so the correct icon is shown.
|
|
39
|
+
*/
|
|
40
|
+
onTypeChange(newValue) {
|
|
41
|
+
if (newValue !== 'text' && newValue !== 'password') {
|
|
42
|
+
printIonWarning(`ion-input-password-toggle only supports inputs of type "text" or "password". Input of type "${newValue}" is not compatible.`, this.el);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
const { el } = this;
|
|
48
|
+
const inputElRef = (this.inputElRef = el.closest('ion-input'));
|
|
49
|
+
if (!inputElRef) {
|
|
50
|
+
printIonWarning('No ancestor ion-input found for ion-input-password-toggle. This component must be slotted inside of an ion-input.', el);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Important: Set the type in connectedCallback because the default value
|
|
55
|
+
* of this.type may not always be accurate. Usually inputs have the "password" type
|
|
56
|
+
* but it is possible to have the input to initially have the "text" type. In that scenario
|
|
57
|
+
* the wrong icon will show briefly before switching to the correct icon. Setting the
|
|
58
|
+
* type here allows us to avoid that flicker.
|
|
59
|
+
*/
|
|
60
|
+
this.type = inputElRef.type;
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.inputElRef = null;
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
const { color, type } = this;
|
|
68
|
+
const mode = getIonMode(this);
|
|
69
|
+
const showPasswordIcon = (_a = this.showIcon) !== null && _a !== void 0 ? _a : eye;
|
|
70
|
+
const hidePasswordIcon = (_b = this.hideIcon) !== null && _b !== void 0 ? _b : eyeOff;
|
|
71
|
+
const isPasswordVisible = type === 'text';
|
|
72
|
+
return (h(Host, { key: '1cb075999e41c2fde3a3d6cafe6f37c9b5429299', class: createColorClasses(color, {
|
|
73
|
+
[mode]: true,
|
|
74
|
+
}) }, h("ion-button", { key: 'cfaaec221f530ecc475690b6508c2333e32ff609', mode: mode, color: color, fill: "clear", shape: "round", "aria-checked": isPasswordVisible ? 'true' : 'false', "aria-label": "show password", role: "switch", type: "button", onPointerDown: (ev) => {
|
|
75
|
+
/**
|
|
76
|
+
* This prevents mobile browsers from
|
|
77
|
+
* blurring the input when the password toggle
|
|
78
|
+
* button is activated.
|
|
79
|
+
*/
|
|
80
|
+
ev.preventDefault();
|
|
81
|
+
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: 'dc0fc5fe8df4df4c145e29b30e589f159aab9cd9', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? hidePasswordIcon : showPasswordIcon }))));
|
|
82
|
+
}
|
|
83
|
+
get el() { return this; }
|
|
84
|
+
static get watchers() { return {
|
|
85
|
+
"type": ["onTypeChange"]
|
|
86
|
+
}; }
|
|
87
|
+
static get style() { return {
|
|
88
|
+
ios: IonInputPasswordToggleIosStyle0,
|
|
89
|
+
md: IonInputPasswordToggleMdStyle0
|
|
90
|
+
}; }
|
|
91
|
+
}, [33, "ion-input-password-toggle", {
|
|
92
|
+
"color": [513],
|
|
93
|
+
"showIcon": [1, "show-icon"],
|
|
94
|
+
"hideIcon": [1, "hide-icon"],
|
|
95
|
+
"type": [1025]
|
|
96
|
+
}, undefined, {
|
|
97
|
+
"type": ["onTypeChange"]
|
|
98
|
+
}]);
|
|
99
|
+
function defineCustomElement$1() {
|
|
100
|
+
if (typeof customElements === "undefined") {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const components = ["ion-input-password-toggle", "ion-button", "ion-icon", "ion-ripple-effect"];
|
|
104
|
+
components.forEach(tagName => { switch (tagName) {
|
|
105
|
+
case "ion-input-password-toggle":
|
|
106
|
+
if (!customElements.get(tagName)) {
|
|
107
|
+
customElements.define(tagName, InputPasswordToggle);
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case "ion-button":
|
|
111
|
+
if (!customElements.get(tagName)) {
|
|
112
|
+
defineCustomElement$4();
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case "ion-icon":
|
|
116
|
+
if (!customElements.get(tagName)) {
|
|
117
|
+
defineCustomElement$3();
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
case "ion-ripple-effect":
|
|
121
|
+
if (!customElements.get(tagName)) {
|
|
122
|
+
defineCustomElement$2();
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
} });
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const IonInputPasswordToggle = InputPasswordToggle;
|
|
129
|
+
const defineCustomElement = defineCustomElement$1;
|
|
130
|
+
|
|
131
|
+
export { IonInputPasswordToggle, defineCustomElement };
|