@ionic/core 9.0.3-dev.11788456135.1ab1d6cd → 9.0.3-dev.11790116791.11c9cd1e
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/index.js +1 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-backdrop.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-buttons.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-checkbox.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-divider.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-gallery-item.js +1 -1
- package/components/ion-gallery.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-label.js +1 -1
- package/components/ion-list-header.js +1 -1
- package/components/ion-list.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +1 -1
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-column.js +1 -1
- package/components/ion-picker.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio-group.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-ripple-effect.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/p-0Zqw1uai.js +4 -0
- package/{dist/ionic/p-BqQ15K9a.js → components/p-0rXxxCTt.js} +1 -1
- package/components/{p-CTTmpA7l.js → p-3cjGQppH.js} +1 -1
- package/components/{p-W8Yq_OMR.js → p-B5AgguuG.js} +1 -1
- package/components/{p-BZmR0M4X.js → p-BNEGSmbp.js} +1 -1
- package/components/p-BSIw8XlU.js +4 -0
- package/components/{p-ZxET9sbA.js → p-BW5EN2Xi.js} +1 -1
- package/components/p-BYk20Mf5.js +4 -0
- package/components/p-BYnI-EJn.js +4 -0
- package/components/p-B_aT3oAQ.js +4 -0
- package/components/{p-CPXKIYkL.js → p-BkZBiLB3.js} +1 -1
- package/components/p-BouoWyEU.js +4 -0
- package/components/p-BqvZYIdI.js +4 -0
- package/components/p-BrRaGlll.js +4 -0
- package/components/{p-BBz0jPCg.js → p-C2CD_fhN.js} +1 -1
- package/components/{p-CsQsFkwO.js → p-C4xXkVID.js} +1 -1
- package/components/{p-VLn2Ytmp.js → p-CEKVY_H-.js} +1 -1
- package/components/{p-DkQNAyg8.js → p-CGj2vPt5.js} +1 -1
- package/components/{p-DgIAZUGe.js → p-CJp2AnUY.js} +1 -1
- package/components/p-CO6vPcgh.js +4 -0
- package/components/{p-DhBOoebx.js → p-Ce2nAsLZ.js} +1 -1
- package/components/{p-JAFy4ZHv.js → p-Cf8Sc9qN.js} +1 -1
- package/components/p-Cfk7czUn.js +4 -0
- package/components/{p-DNrr6r3I.js → p-CiRvXVG4.js} +1 -1
- package/components/p-Cl4FcpPX.js +4 -0
- package/components/{p-CtLeQL1G.js → p-CmZn5IDl.js} +1 -1
- package/components/p-D8HKWBJm.js +4 -0
- package/components/{p-EayFnjkU.js → p-D9UifuBV.js} +1 -1
- package/components/p-DBFO9oVW.js +4 -0
- package/components/{p-BGP1kR6j.js → p-DCpIv6ib.js} +1 -1
- package/components/p-DKWIsI1o.js +4 -0
- package/components/p-DQKxHcJi.js +4 -0
- package/components/p-DT2MRyId.js +4 -0
- package/components/{p-DWBpR7SJ.js → p-DdEyFcAR.js} +1 -1
- package/components/{p-DOdd_Inr.js → p-DrnBmDva.js} +1 -1
- package/components/{p-DGfjyB0v.js → p-Dsp7VCux.js} +1 -1
- package/components/p-DwTxdFPM.js +4 -0
- package/components/p-DxjhU4Lj.js +4 -0
- package/components/p-HWerNWEa.js +4 -0
- package/components/{p-D5lFNdff.js → p-M-IrAJS3.js} +1 -1
- package/components/p-Xl2x2-Ol.js +4 -0
- package/components/p-YP5ydNow.js +4 -0
- package/components/p-_FtneEj3.js +4 -0
- package/components/{p-C9cwz4xv.js → p-eDabxF6I.js} +1 -1
- package/components/p-fKHu5GWX.js +4 -0
- package/components/p-gGbm4ACs.js +4 -0
- package/components/p-hJBybumI.js +4 -0
- package/components/{p-Be00fpKV.js → p-jG41Us4a.js} +1 -1
- package/components/{p-CvRAtS4n.js → p-ndDJHQew.js} +1 -1
- package/components/p-oaWlbHN_.js +4 -0
- package/{dist/ionic/p-DpE9LgN6.js → components/p-oe85PI7E.js} +1 -1
- package/components/p-tglOeKd7.js +4 -0
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/css/ionic/global.bundle.ionic.css +1 -1
- package/css/ionic/global.bundle.ionic.css.map +1 -1
- package/css/ionic/ionic-swiper.ionic.css +1 -1
- package/css/ionic/ionic-swiper.ionic.css.map +1 -1
- package/css/ionic/link.ionic.css +1 -1
- package/css/ionic/link.ionic.css.map +1 -1
- package/css/ionic/typography.ionic.css +1 -1
- package/css/ionic/typography.ionic.css.map +1 -1
- package/dist/cjs/{animation-DVrkairK.js → animation-Dfev6yFW.js} +1 -1
- package/dist/cjs/{app-globals-CTxe9MxF.js → app-globals-BwOspzE5.js} +1 -1
- package/dist/cjs/{button-active-B8t6YMNb.js → button-active-DfzJC914.js} +1 -1
- package/dist/cjs/{capacitor-w_r4U-_S.js → capacitor-B7dK21VK.js} +1 -1
- package/dist/cjs/{clear-button-press-controller-BKSn-dVq.js → clear-button-press-controller-B49x92PF.js} +1 -1
- package/dist/cjs/{focus-visible-BIj-I3-C.js → focus-visible-DGPRKkcx.js} +52 -2
- package/dist/cjs/{framework-delegate-Dmce7iqZ.js → framework-delegate-BKYAwcZK.js} +1 -1
- package/dist/cjs/{haptic-DZEv3V5s.js → haptic-CMs5ejXB.js} +1 -1
- package/dist/cjs/{helpers-DFJMw-qZ.js → helpers-D5NVnu5x.js} +16 -1
- package/dist/cjs/{index-DN51-BQl.js → index-6hDA5UlZ.js} +3 -3
- package/dist/cjs/{index-BoQA7njo.js → index-Byoi861q.js} +3 -3
- package/dist/cjs/{index-DWP810QI.js → index-CutlvfR4.js} +1 -1
- package/dist/cjs/{index-Bm6y0Ibt.js → index-Y8n2FvXS.js} +3 -3
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{input-shims-BFGH5o2Z.js → input-shims-SVR_4pAX.js} +6 -6
- package/dist/cjs/ion-accordion_2.cjs.entry.js +14 -19
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -10
- package/dist/cjs/ion-alert.cjs.entry.js +13 -13
- package/dist/cjs/ion-app_8.cjs.entry.js +14 -14
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +14 -16
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +19 -32
- package/dist/cjs/ion-button_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-card_5.cjs.entry.js +6 -6
- package/dist/cjs/ion-checkbox.cjs.entry.js +26 -18
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime.cjs.entry.js +20 -56
- package/dist/cjs/ion-divider.cjs.entry.js +2 -2
- package/dist/cjs/ion-fab_3.cjs.entry.js +12 -17
- package/dist/cjs/ion-gallery-item.cjs.entry.js +1 -1
- package/dist/cjs/ion-gallery.cjs.entry.js +3 -3
- package/dist/cjs/ion-img.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-input-otp.cjs.entry.js +4 -4
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +19 -31
- package/dist/cjs/ion-input.cjs.entry.js +17 -33
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +15 -20
- package/dist/cjs/ion-loading.cjs.entry.js +6 -6
- package/dist/cjs/ion-menu_3.cjs.entry.js +16 -19
- package/dist/cjs/ion-modal.cjs.entry.js +12 -12
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +5 -5
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +8 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +4 -4
- 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 +17 -12
- package/dist/cjs/ion-reorder_2.cjs.entry.js +11 -19
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
- package/dist/cjs/ion-searchbar.cjs.entry.js +13 -42
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +17 -16
- package/dist/cjs/ion-select_3.cjs.entry.js +20 -44
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +1 -1
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +9 -9
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +17 -25
- package/dist/cjs/ion-toast.cjs.entry.js +7 -7
- package/dist/cjs/ion-toggle.cjs.entry.js +18 -34
- package/dist/cjs/{ionic-global-BaVLW54G.js → ionic-global-CRAqTE7M.js} +5 -5
- package/dist/cjs/ionic.cjs.js +2 -2
- package/dist/cjs/{ios.transition-Bm4N3WK1.js → ios.transition-BluJBTN6.js} +5 -5
- package/dist/cjs/{keyboard-9uOUQmB-.js → keyboard-B44EnZyJ.js} +1 -1
- package/dist/cjs/{keyboard-5cEsoK5l.js → keyboard-CR7Eg8u3.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{md.transition-Z-7hu2x1.js → md.transition-TBHPCec3.js} +5 -5
- package/dist/cjs/{overlays-Jn6TNpc3.js → overlays-B5YzPlbv.js} +5 -5
- package/dist/cjs/{scroll-hide-controller-DQ9ulQ11.js → scroll-hide-controller-Bht8yQkC.js} +3 -3
- package/dist/cjs/{slot-mutation-controller-C9i1ymbP.js → slot-mutation-controller-CinDJgCY.js} +2 -2
- package/dist/cjs/{status-tap-DT7J4fZQ.js → status-tap-Aq-o5Csp.js} +3 -3
- package/dist/cjs/{swipe-back-BIbF7bVy.js → swipe-back-Byqp-bJI.js} +2 -2
- package/dist/collection/components/accordion/accordion.ionic.css +10 -12
- package/dist/collection/components/accordion/accordion.js +9 -14
- package/dist/collection/components/accordion-group/accordion-group.ionic.css +6 -6
- package/dist/collection/components/action-sheet/action-sheet.ionic.css +22 -26
- package/dist/collection/components/alert/alert.ionic.css +46 -54
- package/dist/collection/components/alert/alert.js +3 -3
- package/dist/collection/components/avatar/avatar.ionic.css +29 -35
- package/dist/collection/components/back-button/back-button.js +11 -13
- package/dist/collection/components/backdrop/backdrop.ionic.css +1 -1
- package/dist/collection/components/badge/badge.ionic.css +15 -18
- package/dist/collection/components/breadcrumb/breadcrumb.js +16 -28
- package/dist/collection/components/button/button.ionic.css +22 -26
- package/dist/collection/components/buttons/buttons.ionic.css +1 -1
- package/dist/collection/components/card/card.ionic.css +7 -7
- package/dist/collection/components/card-content/card-content.ionic.css +3 -4
- package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +4 -5
- package/dist/collection/components/checkbox/checkbox.ionic.css +51 -59
- package/dist/collection/components/checkbox/checkbox.ios.css +33 -29
- package/dist/collection/components/checkbox/checkbox.js +23 -13
- package/dist/collection/components/checkbox/checkbox.md.css +33 -29
- package/dist/collection/components/chip/chip.ionic.css +12 -13
- package/dist/collection/components/datetime/datetime.ionic.css +43 -49
- package/dist/collection/components/datetime/datetime.ios.css +5 -10
- package/dist/collection/components/datetime/datetime.js +12 -48
- package/dist/collection/components/datetime/datetime.md.css +5 -10
- package/dist/collection/components/divider/divider.ionic.css +1 -1
- package/dist/collection/components/fab-button/fab-button.js +9 -14
- package/dist/collection/components/header/header.ionic.css +1 -1
- package/dist/collection/components/input/input.ionic.css +142 -122
- package/dist/collection/components/input/input.js +11 -27
- package/dist/collection/components/input-otp/input-otp.ionic.css +29 -31
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +1 -1
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +18 -28
- package/dist/collection/components/item/item.ionic.css +9 -10
- package/dist/collection/components/item/item.js +10 -15
- package/dist/collection/components/item-option/item-option.ionic.css +5 -6
- package/dist/collection/components/item-sliding/item-sliding.ionic.css +1 -1
- package/dist/collection/components/list-header/list-header.ionic.css +4 -5
- package/dist/collection/components/menu-button/menu-button.js +9 -12
- package/dist/collection/components/modal/modal.ionic.css +3 -3
- package/dist/collection/components/popover/popover.ionic.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.ionic.css +3 -3
- package/dist/collection/components/radio/radio.ionic.css +9 -10
- package/dist/collection/components/radio-group/radio-group.ionic.css +5 -6
- package/dist/collection/components/range/range.ionic.css +11 -12
- package/dist/collection/components/refresher-content/refresher-content.js +10 -4
- package/dist/collection/components/reorder/reorder.js +5 -13
- package/dist/collection/components/searchbar/searchbar.ionic.css +17 -18
- package/dist/collection/components/searchbar/searchbar.js +8 -35
- package/dist/collection/components/segment-button/segment-button.ionic.css +8 -9
- package/dist/collection/components/select/select.ionic.css +213 -105
- package/dist/collection/components/select/select.js +14 -39
- package/dist/collection/components/select-modal/select-modal.ionic.css +13 -16
- package/dist/collection/components/select-modal/select-modal.js +12 -10
- package/dist/collection/components/select-popover/select-popover.ionic.css +11 -13
- package/dist/collection/components/spinner/spinner.ionic.css +2 -2
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +6 -6
- package/dist/collection/components/tab-button/tab-button.ionic.css +4 -5
- package/dist/collection/components/textarea/textarea.ionic.css +173 -128
- package/dist/collection/components/textarea/textarea.ios.css +0 -4
- package/dist/collection/components/textarea/textarea.js +13 -18
- package/dist/collection/components/textarea/textarea.md.css +0 -4
- package/dist/collection/components/title/title.ionic.css +6 -8
- package/dist/collection/components/toast/toast.ionic.css +16 -19
- package/dist/collection/components/toggle/toggle.ionic.css +14 -16
- package/dist/collection/components/toggle/toggle.js +12 -26
- package/dist/collection/components/toolbar/toolbar.ionic.css +1 -1
- package/dist/collection/utils/focus-trap.js +2 -2
- package/dist/collection/utils/focus-visible.js +51 -2
- package/dist/collection/utils/helpers.js +15 -1
- package/dist/collection/utils/overlays.js +2 -2
- package/dist/collection/utils/test/playwright/field-geometry.js +34 -0
- package/dist/collection/utils/test/playwright/index.js +1 -0
- package/dist/docs.json +60 -25
- package/dist/esm/{animation-DXpoXT3G.js → animation-CSQV6dzD.js} +1 -1
- package/dist/esm/{app-globals-gnMsODWu.js → app-globals-PWSz-l_N.js} +1 -1
- package/dist/esm/{button-active-DtDlu9-d.js → button-active-C57xZQjg.js} +1 -1
- package/dist/esm/{capacitor-CMyaZHxy.js → capacitor-DBIFQa2o.js} +1 -1
- package/dist/esm/{clear-button-press-controller-CWOPHFBc.js → clear-button-press-controller-Dd5_yhOF.js} +1 -1
- package/dist/esm/{focus-visible-vXpMhGrs.js → focus-visible-BYk20Mf5.js} +52 -3
- package/dist/esm/{framework-delegate-DUQ69ajj.js → framework-delegate-BGk11dmh.js} +1 -1
- package/dist/esm/{haptic-Dal3yCq6.js → haptic-PEF9NVXM.js} +1 -1
- package/dist/esm/{helpers-DTqW6MzS.js → helpers-COVHAPv8.js} +16 -2
- package/dist/esm/{index-CpKLzrYn.js → index-B7Bz5x4m.js} +1 -1
- package/dist/esm/{index-BqQ15K9a.js → index-BkJpfpXI.js} +1 -1
- package/dist/esm/{index-C2QkTAgc.js → index-DHp8pAEm.js} +3 -3
- package/dist/esm/{index-D_YUqPZN.js → index-Detgiv22.js} +3 -3
- package/dist/esm/{index-D76uuG8P.js → index-MCAWImIY.js} +3 -3
- package/dist/esm/index.js +10 -10
- package/dist/esm/{input-shims-DgFi_b6v.js → input-shims-rVCP_KOP.js} +6 -6
- package/dist/esm/ion-accordion_2.entry.js +15 -20
- package/dist/esm/ion-action-sheet.entry.js +10 -10
- package/dist/esm/ion-alert.entry.js +13 -13
- package/dist/esm/ion-app_8.entry.js +14 -14
- package/dist/esm/ion-avatar_3.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +15 -17
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +20 -33
- package/dist/esm/ion-button_2.entry.js +4 -4
- package/dist/esm/ion-card_5.entry.js +6 -6
- package/dist/esm/ion-checkbox.entry.js +27 -19
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +3 -3
- package/dist/esm/ion-datetime.entry.js +21 -57
- package/dist/esm/ion-divider.entry.js +2 -2
- package/dist/esm/ion-fab_3.entry.js +13 -18
- package/dist/esm/ion-gallery-item.entry.js +1 -1
- package/dist/esm/ion-gallery.entry.js +3 -3
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -4
- package/dist/esm/ion-input-otp.entry.js +4 -4
- package/dist/esm/ion-input-password-toggle.entry.js +20 -32
- package/dist/esm/ion-input.entry.js +18 -34
- package/dist/esm/ion-item-option_3.entry.js +6 -6
- package/dist/esm/ion-item_8.entry.js +16 -21
- package/dist/esm/ion-loading.entry.js +6 -6
- package/dist/esm/ion-menu_3.entry.js +17 -20
- package/dist/esm/ion-modal.entry.js +12 -12
- package/dist/esm/ion-nav_2.entry.js +6 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +5 -5
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -8
- package/dist/esm/ion-progress-bar.entry.js +4 -4
- 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 +18 -13
- package/dist/esm/ion-reorder_2.entry.js +12 -20
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +4 -4
- package/dist/esm/ion-searchbar.entry.js +14 -43
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +19 -18
- package/dist/esm/ion-select_3.entry.js +21 -45
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +1 -1
- package/dist/esm/ion-tab-bar_2.entry.js +9 -9
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +17 -25
- package/dist/esm/ion-toast.entry.js +7 -7
- package/dist/esm/ion-toggle.entry.js +19 -35
- package/dist/esm/{ionic-global-oK2heABF.js → ionic-global-DPSBlusf.js} +5 -5
- package/dist/esm/ionic.js +2 -2
- package/dist/esm/{ios.transition-D6rsx0aJ.js → ios.transition-Dg02Css6.js} +5 -5
- package/dist/esm/{keyboard-YBye__Ay.js → keyboard-0MlGMI-U.js} +3 -3
- package/dist/esm/{keyboard-Dzp50ozz.js → keyboard-C09oMZsY.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{md.transition-0y4So3tu.js → md.transition-DWmGdm6c.js} +5 -5
- package/dist/esm/{overlays-CLlfG_qy.js → overlays-Bv7M5ll5.js} +5 -5
- package/dist/esm/{scroll-hide-controller-BUZm0jSI.js → scroll-hide-controller-Tp5xjq2E.js} +3 -3
- package/dist/esm/{slot-mutation-controller-C5Vj7Od7.js → slot-mutation-controller-PS17pZ-_.js} +2 -2
- package/dist/esm/{status-tap-VmNhEOZr.js → status-tap-_VvGTiUU.js} +3 -3
- package/dist/esm/{swipe-back-BHHiqew-.js → swipe-back-D2R5S8HL.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-3bb43e22.entry.js → p-054bdefd.entry.js} +1 -1
- package/dist/ionic/p-155f3baf.entry.js +4 -0
- package/dist/ionic/{p-2e3acd77.entry.js → p-18d55baa.entry.js} +1 -1
- package/dist/ionic/p-1d40a19c.entry.js +4 -0
- package/dist/ionic/p-221d7b0b.entry.js +4 -0
- package/dist/ionic/p-30858188.entry.js +4 -0
- package/dist/ionic/{p-924182fc.entry.js → p-3111972e.entry.js} +1 -1
- package/dist/ionic/p-323b7322.entry.js +4 -0
- package/dist/ionic/p-32ed09fe.entry.js +4 -0
- package/dist/ionic/{p-d0368d31.entry.js → p-343f72d0.entry.js} +1 -1
- package/dist/ionic/{p-db011674.entry.js → p-37faa244.entry.js} +1 -1
- package/dist/ionic/p-3966cd77.entry.js +4 -0
- package/dist/ionic/p-4030db68.entry.js +4 -0
- package/dist/ionic/p-42a054ee.entry.js +4 -0
- package/dist/ionic/{p-fdb940e3.entry.js → p-42cfdcb7.entry.js} +1 -1
- package/dist/ionic/p-44cd6a88.entry.js +4 -0
- package/dist/ionic/{p-886236f0.entry.js → p-6589a3f6.entry.js} +1 -1
- package/dist/ionic/p-68ffe393.entry.js +4 -0
- package/dist/ionic/p-6b9b6175.entry.js +4 -0
- package/dist/ionic/{p-84b5eafe.entry.js → p-6c99f6c8.entry.js} +1 -1
- package/dist/ionic/{p-dc000de0.entry.js → p-6c9d8e84.entry.js} +1 -1
- package/dist/ionic/p-6fe03c66.entry.js +4 -0
- package/dist/ionic/p-747c4c1e.entry.js +4 -0
- package/dist/ionic/p-7b769a8c.entry.js +4 -0
- package/dist/ionic/p-7e07f60d.entry.js +4 -0
- package/dist/ionic/p-7e9a0222.entry.js +4 -0
- package/dist/ionic/p-8f052ddf.entry.js +4 -0
- package/dist/ionic/p-8fb06684.entry.js +4 -0
- package/dist/ionic/p-91a7e3df.entry.js +4 -0
- package/dist/ionic/p-9344a53d.entry.js +4 -0
- package/dist/ionic/{p-55e13406.entry.js → p-93c69512.entry.js} +1 -1
- package/dist/ionic/{p-b83de44e.entry.js → p-96f73def.entry.js} +1 -1
- package/dist/ionic/p-9c0cae6a.entry.js +4 -0
- package/dist/ionic/{p-CsmXfOZY.js → p-B3Kiljjq.js} +1 -1
- package/dist/ionic/p-BN5wKnhU.js +4 -0
- package/dist/ionic/p-BQmJoNKC.js +4 -0
- package/dist/ionic/p-BYk20Mf5.js +4 -0
- package/{components/p-Cc3oC60a.js → dist/ionic/p-BkJpfpXI.js} +1 -1
- package/{components/p-CN41sVGB.js → dist/ionic/p-Bp2Gog3I.js} +1 -1
- package/dist/ionic/p-Br2aTSXv.js +4 -0
- package/dist/ionic/{p-D8HyO4-0.js → p-BxyvWHWp.js} +1 -1
- package/dist/ionic/p-C-5bbxTv.js +4 -0
- package/dist/ionic/p-CalV2EFO.js +4 -0
- package/dist/ionic/p-Ck7LvynN.js +4 -0
- package/dist/ionic/{p-BnRvdoDY.js → p-CpbV2dkG.js} +1 -1
- package/dist/ionic/p-CyqXbsry.js +4 -0
- package/dist/ionic/{p-Izgzy5eB.js → p-DAdCwTwc.js} +1 -1
- package/dist/ionic/{p-DAFzmzMJ.js → p-DWu51GL8.js} +1 -1
- package/dist/ionic/p-DYl9g-Nn.js +4 -0
- package/dist/ionic/p-DhRGeAiB.js +4 -0
- package/dist/ionic/{p-BdqFx5km.js → p-Dynoer0Z.js} +1 -1
- package/dist/ionic/p-HzpJgzPY.js +4 -0
- package/dist/ionic/{p-Cs5kzNVE.js → p-PrbehP8l.js} +1 -1
- package/dist/ionic/p-XIxYRztg.js +4 -0
- package/dist/ionic/{p-B3L20Lav.js → p-_RfHVD7s.js} +1 -1
- package/dist/ionic/{p-8a7bf6c7.entry.js → p-a69ccce3.entry.js} +1 -1
- package/dist/ionic/p-a8bce8c2.entry.js +4 -0
- package/dist/ionic/p-aa658bb9.entry.js +4 -0
- package/dist/ionic/p-ada3f6b9.entry.js +4 -0
- package/dist/ionic/p-b2d4bb26.entry.js +4 -0
- package/dist/ionic/p-b9f0ce4c.entry.js +4 -0
- package/dist/ionic/{p-30c4458b.entry.js → p-be5bc00a.entry.js} +1 -1
- package/dist/ionic/p-bfe9bfae.entry.js +4 -0
- package/dist/ionic/p-c85c7436.entry.js +4 -0
- package/dist/ionic/p-caa7801f.entry.js +4 -0
- package/dist/ionic/{p-46709a42.entry.js → p-d97fabaa.entry.js} +1 -1
- package/dist/ionic/p-da319993.entry.js +4 -0
- package/dist/ionic/p-df1c1199.entry.js +4 -0
- package/dist/ionic/{p-2c3704b9.entry.js → p-e02e6d2b.entry.js} +1 -1
- package/dist/ionic/{p-6b23289a.entry.js → p-e10326b5.entry.js} +1 -1
- package/dist/ionic/{p-d1d3048b.entry.js → p-e8e3b85f.entry.js} +1 -1
- package/dist/ionic/p-ec90ddaf.entry.js +4 -0
- package/dist/ionic/{p-cd05447f.entry.js → p-ee6708ce.entry.js} +1 -1
- package/dist/ionic/{p-e939adf3.entry.js → p-f301235c.entry.js} +1 -1
- package/dist/ionic/p-fd0666a5.entry.js +4 -0
- package/dist/ionic/{p-CP5-2cXj.js → p-j9My4oCO.js} +1 -1
- package/dist/ionic/p-pQdkMmul.js +4 -0
- package/dist/ionic/p-sXOU046_.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +7 -1
- package/dist/types/components/back-button/back-button.d.ts +8 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +12 -2
- package/dist/types/components/checkbox/checkbox.d.ts +12 -1
- package/dist/types/components/datetime/datetime.d.ts +4 -4
- package/dist/types/components/fab-button/fab-button.d.ts +7 -1
- package/dist/types/components/input/input.d.ts +7 -10
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +14 -2
- package/dist/types/components/item/item.d.ts +7 -1
- package/dist/types/components/menu-button/menu-button.d.ts +6 -1
- package/dist/types/components/refresher-content/refresher-content.d.ts +6 -0
- package/dist/types/components/reorder/reorder.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +7 -12
- package/dist/types/components/select-modal/select-modal.d.ts +6 -1
- package/dist/types/components/textarea/textarea.d.ts +8 -8
- package/dist/types/components/toggle/toggle.d.ts +5 -2
- package/dist/types/utils/config.d.ts +22 -2
- package/dist/types/utils/focus-visible.d.ts +20 -0
- package/dist/types/utils/helpers.d.ts +7 -0
- package/dist/types/utils/test/playwright/field-geometry.d.ts +13 -0
- package/dist/types/utils/test/playwright/index.d.ts +1 -0
- package/hydrate/index.js +318 -417
- package/hydrate/index.mjs +318 -417
- package/package.json +4 -5
- package/components/p-B1AK6oR-.js +0 -4
- package/components/p-B8dfyFoB.js +0 -4
- package/components/p-B9UT2JwK.js +0 -4
- package/components/p-BDqjX7Z_.js +0 -4
- package/components/p-BQUTtt8S.js +0 -4
- package/components/p-BYSs-jZz.js +0 -4
- package/components/p-BZtGrrX4.js +0 -4
- package/components/p-BdAOHgnb.js +0 -4
- package/components/p-C8aonLbo.js +0 -4
- package/components/p-CDmCFFLL.js +0 -4
- package/components/p-CPdOdJa7.js +0 -4
- package/components/p-CksPhDEa.js +0 -4
- package/components/p-Cm78Kk79.js +0 -4
- package/components/p-CmEe-Llj.js +0 -4
- package/components/p-D1t981Ih.js +0 -4
- package/components/p-D9jEKvVd.js +0 -4
- package/components/p-DG-ZC7Js.js +0 -4
- package/components/p-DJkuoL4u.js +0 -4
- package/components/p-DOoxQDxg.js +0 -4
- package/components/p-DcOWEjmv.js +0 -4
- package/components/p-DgEOEy6x.js +0 -4
- package/components/p-Dhi5xtNS.js +0 -4
- package/components/p-DtPgvez6.js +0 -4
- package/components/p-DwAij6DN.js +0 -4
- package/components/p-DzaPYdjZ.js +0 -4
- package/components/p-Dzuh_AKJ.js +0 -4
- package/components/p-Uo-TYRpE.js +0 -4
- package/components/p-cKiRADSB.js +0 -4
- package/components/p-e73ca-aN.js +0 -4
- package/components/p-fIOYmaqA.js +0 -4
- package/components/p-fh4o6dKR.js +0 -4
- package/components/p-vXpMhGrs.js +0 -4
- package/dist/cjs/caret-down-vtVgfXIs.js +0 -8
- package/dist/cjs/caret-left-CxZXLRv5.js +0 -8
- package/dist/cjs/caret-right-CRCgv98E.js +0 -8
- package/dist/cjs/list-a-7GSA6K.js +0 -8
- package/dist/cjs/x-BTF99yFH.js +0 -8
- package/dist/esm/caret-down-D1t981Ih.js +0 -6
- package/dist/esm/caret-left-fIOYmaqA.js +0 -6
- package/dist/esm/caret-right-BYSs-jZz.js +0 -6
- package/dist/esm/list-Dhi5xtNS.js +0 -6
- package/dist/esm/x-BDqjX7Z_.js +0 -6
- package/dist/ionic/p-04d96dad.entry.js +0 -4
- package/dist/ionic/p-08f20edc.entry.js +0 -4
- package/dist/ionic/p-0a924e6a.entry.js +0 -4
- package/dist/ionic/p-0f268972.entry.js +0 -4
- package/dist/ionic/p-18c6af89.entry.js +0 -4
- package/dist/ionic/p-1cc2a196.entry.js +0 -4
- package/dist/ionic/p-201f484e.entry.js +0 -4
- package/dist/ionic/p-26efcc45.entry.js +0 -4
- package/dist/ionic/p-2da21af7.entry.js +0 -4
- package/dist/ionic/p-2fc1521f.entry.js +0 -4
- package/dist/ionic/p-32be916d.entry.js +0 -4
- package/dist/ionic/p-384fb50d.entry.js +0 -4
- package/dist/ionic/p-4QzQhqmw.js +0 -4
- package/dist/ionic/p-5217eb00.entry.js +0 -4
- package/dist/ionic/p-73309d35.entry.js +0 -4
- package/dist/ionic/p-74ab5f49.entry.js +0 -4
- package/dist/ionic/p-7d2f3242.entry.js +0 -4
- package/dist/ionic/p-7e28cc53.entry.js +0 -4
- package/dist/ionic/p-83d13d56.entry.js +0 -4
- package/dist/ionic/p-854b95f9.entry.js +0 -4
- package/dist/ionic/p-8NLG9fne.js +0 -4
- package/dist/ionic/p-8dcd18cf.entry.js +0 -4
- package/dist/ionic/p-92f21db6.entry.js +0 -4
- package/dist/ionic/p-9ca59419.entry.js +0 -4
- package/dist/ionic/p-B6aOaV_m.js +0 -4
- package/dist/ionic/p-BDqjX7Z_.js +0 -4
- package/dist/ionic/p-BVv5nqxG.js +0 -4
- package/dist/ionic/p-BYSs-jZz.js +0 -4
- package/dist/ionic/p-CD4Mty1V.js +0 -4
- package/dist/ionic/p-CLVGlNRl.js +0 -4
- package/dist/ionic/p-CRbXZpID.js +0 -4
- package/dist/ionic/p-CZ-V4tB0.js +0 -4
- package/dist/ionic/p-CyXL8sF6.js +0 -4
- package/dist/ionic/p-D1ej8PMz.js +0 -4
- package/dist/ionic/p-D1t981Ih.js +0 -4
- package/dist/ionic/p-Dhi5xtNS.js +0 -4
- package/dist/ionic/p-DvXo4Ng9.js +0 -4
- package/dist/ionic/p-ac4ea8db.entry.js +0 -4
- package/dist/ionic/p-b10dc124.entry.js +0 -4
- package/dist/ionic/p-b411d90d.entry.js +0 -4
- package/dist/ionic/p-b7ce4a50.entry.js +0 -4
- package/dist/ionic/p-c7035f3f.entry.js +0 -4
- package/dist/ionic/p-c91fc9d4.entry.js +0 -4
- package/dist/ionic/p-cd4791d5.entry.js +0 -4
- package/dist/ionic/p-ce1ab874.entry.js +0 -4
- package/dist/ionic/p-e9480e7f.entry.js +0 -4
- package/dist/ionic/p-e9fdff49.entry.js +0 -4
- package/dist/ionic/p-f29b784f.entry.js +0 -4
- package/dist/ionic/p-f82b13a6.entry.js +0 -4
- package/dist/ionic/p-fIOYmaqA.js +0 -4
- package/dist/ionic/p-psKsVoNI.js +0 -4
- package/dist/ionic/p-si7ttuvL.js +0 -4
- package/dist/ionic/p-vXpMhGrs.js +0 -4
|
@@ -5,6 +5,7 @@ import { Build, Host, forceUpdate, h } from "@stencil/core";
|
|
|
5
5
|
import { checkInvalidState, createItemMultipleInputsObserver } from "../../utils/forms/index";
|
|
6
6
|
import { inheritAriaAttributes, renderHiddenInput } from "../../utils/helpers";
|
|
7
7
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
8
|
+
import { config } from "../../global/config";
|
|
8
9
|
import { getIonTheme } from "../../global/ionic-global";
|
|
9
10
|
/**
|
|
10
11
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
@@ -14,7 +15,8 @@ import { getIonTheme } from "../../global/ionic-global";
|
|
|
14
15
|
*
|
|
15
16
|
* @part container - The container for the checkbox mark.
|
|
16
17
|
* @part label - The label text describing the checkbox.
|
|
17
|
-
* @part
|
|
18
|
+
* @part icon - The icon that displays the checked or indeterminate mark.
|
|
19
|
+
* @part mark - The mark used to indicate the checked or indeterminate state. Only applies when no icon is set in the config.
|
|
18
20
|
* @part supporting-text - Supporting text displayed beneath the checkbox label.
|
|
19
21
|
* @part helper-text - Supporting text displayed beneath the checkbox label when the checkbox is valid.
|
|
20
22
|
* @part error-text - Supporting text displayed beneath the checkbox label when the checkbox is invalid and touched.
|
|
@@ -189,6 +191,20 @@ export class Checkbox {
|
|
|
189
191
|
async setFocus() {
|
|
190
192
|
this.el.focus();
|
|
191
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Get the icon to use for the checked icon.
|
|
196
|
+
* Use the icon set in the config.
|
|
197
|
+
*/
|
|
198
|
+
get checkboxCheckedIcon() {
|
|
199
|
+
return config.get('checkboxCheckedIcon');
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Get the icon to use for the indeterminate icon.
|
|
203
|
+
* Use the icon set in the config.
|
|
204
|
+
*/
|
|
205
|
+
get checkboxIndeterminateIcon() {
|
|
206
|
+
return config.get('checkboxIndeterminateIcon');
|
|
207
|
+
}
|
|
192
208
|
getHintTextId() {
|
|
193
209
|
const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
|
|
194
210
|
if (isInvalid && errorText) {
|
|
@@ -216,15 +232,16 @@ export class Checkbox {
|
|
|
216
232
|
return (h("div", { class: "checkbox-bottom" }, h("div", { id: helperTextId, class: "helper-text", part: "supporting-text helper-text", "aria-live": "polite" }, !isInvalid ? helperText : null), h("div", { id: errorTextId, class: "error-text", part: "supporting-text error-text", role: "alert" }, isInvalid ? errorText : null)));
|
|
217
233
|
}
|
|
218
234
|
render() {
|
|
219
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, required, shape, size, } = this;
|
|
235
|
+
const { color, checkboxCheckedIcon, checkboxIndeterminateIcon, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, required, shape, size, } = this;
|
|
220
236
|
const theme = getIonTheme(this);
|
|
237
|
+
const markIcon = indeterminate ? checkboxIndeterminateIcon : checkboxCheckedIcon;
|
|
221
238
|
const path = getSVGPath(theme, indeterminate);
|
|
222
239
|
const inItem = hostContext('ion-item', el);
|
|
223
240
|
const inMultipleInputsItem = hostContext('ion-item.item-multiple-inputs', el);
|
|
224
241
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
225
242
|
// The host element must have a checkbox role to ensure proper VoiceOver
|
|
226
243
|
// support in Safari for accessibility.
|
|
227
|
-
return (h(Host, { key: '
|
|
244
|
+
return (h(Host, { key: 'f7e1aa9fd8d2050334c976f0c9cc9ed6c798ae5f', role: "checkbox", "aria-checked": indeterminate ? 'mixed' : `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.hasLabelContent ? this.inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
|
228
245
|
[theme]: true,
|
|
229
246
|
'in-item': inItem,
|
|
230
247
|
'checkbox-checked': checked,
|
|
@@ -239,23 +256,16 @@ export class Checkbox {
|
|
|
239
256
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
240
257
|
[`checkbox-size-${size}`]: size !== undefined,
|
|
241
258
|
[`checkbox-shape-${shape}`]: true,
|
|
242
|
-
}) }, h("label", { key: '
|
|
259
|
+
}) }, h("label", { key: 'eff61c7348c1f71f67e463134e105bf4d51faa67', class: "checkbox-wrapper", htmlFor: inputId }, h("input", { key: 'd0518f83bbd5ff3d7617233b65b0bd39a4c03cfe', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, required: required, ...inheritedAttributes }), h("div", { key: 'f518f660f5c2b9d22492a85c1fede5bb496d47e8', class: {
|
|
243
260
|
'label-text-wrapper': true,
|
|
244
261
|
'label-text-wrapper-hidden': !this.hasLabelContent,
|
|
245
|
-
}, part: "label", id: this.inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '
|
|
262
|
+
}, part: "label", id: this.inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: 'abe67b013d1927716ab117909591ff9e1592a18c' }), this.renderHintText()), h("div", { key: 'b72d4125c89a2246ed68664f25a8dd633db173b9', class: "native-wrapper", part: "container" }, h("ion-icon", { key: markIcon ? 'config-icon' : 'theme-mark', class: "checkbox-icon", icon: markIcon, part: "icon", "aria-hidden": "true" }, !markIcon && h("svg", { key: 'b28bce725997e1a9bc345651c366c96c7257cbcd', viewBox: "0 0 24 24" }, path))))));
|
|
246
263
|
}
|
|
247
264
|
getSVGPath(theme, indeterminate) {
|
|
248
265
|
let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
249
|
-
if (theme === 'md') {
|
|
266
|
+
if (theme === 'md' || theme === 'ionic') {
|
|
250
267
|
path = indeterminate ? (h("path", { d: "M2 12H22", part: "mark" })) : (h("path", { d: "M1.73,12.91 8.1,19.28 22.79,4.59", part: "mark" }));
|
|
251
268
|
}
|
|
252
|
-
else if (theme === 'ionic') {
|
|
253
|
-
path = indeterminate ? (
|
|
254
|
-
// Phosphor Icon - minus bold
|
|
255
|
-
h("path", { d: "M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z" })) : (
|
|
256
|
-
// Phosphor Icon - check bold
|
|
257
|
-
h("path", { d: "M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z" }));
|
|
258
|
-
}
|
|
259
269
|
return path;
|
|
260
270
|
}
|
|
261
271
|
static get is() { return "ion-checkbox"; }
|
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
/**
|
|
147
147
|
* @prop --size: Size of the checkbox icon
|
|
148
148
|
*
|
|
149
|
+
* @prop --checkbox-background: Background of the checkbox icon
|
|
149
150
|
* @prop --checkbox-background-checked: Background of the checkbox icon when checked
|
|
150
151
|
*
|
|
151
152
|
* @prop --border-color: Border color of the checkbox icon
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
* @prop --transition: Transition of the checkbox icon
|
|
158
159
|
*
|
|
159
160
|
* @prop --checkmark-color: Color of the checkbox checkmark when checked
|
|
160
|
-
* @prop --checkmark-width: Stroke width of the checkbox checkmark
|
|
161
|
+
* @prop --checkmark-width: Stroke width of the checkbox checkmark. Only applies when no icon is set in the config.
|
|
161
162
|
*/
|
|
162
163
|
display: inline-block;
|
|
163
164
|
position: relative;
|
|
@@ -220,16 +221,39 @@ input {
|
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
.native-wrapper {
|
|
224
|
+
border-radius: var(--border-radius);
|
|
223
225
|
display: flex;
|
|
226
|
+
position: relative;
|
|
227
|
+
flex-shrink: 0;
|
|
224
228
|
align-items: center;
|
|
229
|
+
width: var(--size);
|
|
230
|
+
height: var(--size);
|
|
231
|
+
transition: var(--transition);
|
|
232
|
+
border-width: var(--border-width);
|
|
233
|
+
border-style: var(--border-style);
|
|
234
|
+
border-color: var(--border-color);
|
|
235
|
+
background: var(--checkbox-background);
|
|
236
|
+
box-sizing: border-box;
|
|
225
237
|
}
|
|
226
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Apply the color to the ion-icon container so that the default
|
|
241
|
+
* checkmark icon and any configured icon apply color consistently.
|
|
242
|
+
*/
|
|
227
243
|
.checkbox-icon {
|
|
228
|
-
|
|
244
|
+
color: var(--checkmark-color);
|
|
245
|
+
opacity: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.checkbox-icon svg {
|
|
249
|
+
width: 100%;
|
|
250
|
+
height: 100%;
|
|
229
251
|
}
|
|
230
252
|
|
|
231
253
|
.checkbox-icon path {
|
|
232
|
-
|
|
254
|
+
fill: none;
|
|
255
|
+
stroke: currentColor;
|
|
256
|
+
stroke-width: var(--checkmark-width);
|
|
233
257
|
}
|
|
234
258
|
|
|
235
259
|
.checkbox-bottom {
|
|
@@ -349,14 +373,14 @@ input {
|
|
|
349
373
|
display: block;
|
|
350
374
|
}
|
|
351
375
|
|
|
352
|
-
:host(.checkbox-checked) .
|
|
353
|
-
:host(.checkbox-indeterminate) .
|
|
376
|
+
:host(.checkbox-checked) .native-wrapper,
|
|
377
|
+
:host(.checkbox-indeterminate) .native-wrapper {
|
|
354
378
|
border-color: var(--border-color-checked);
|
|
355
379
|
background: var(--checkbox-background-checked);
|
|
356
380
|
}
|
|
357
381
|
|
|
358
|
-
:host(.checkbox-checked) .checkbox-icon
|
|
359
|
-
:host(.checkbox-indeterminate) .checkbox-icon
|
|
382
|
+
:host(.checkbox-checked) .checkbox-icon,
|
|
383
|
+
:host(.checkbox-indeterminate) .checkbox-icon {
|
|
360
384
|
opacity: 1;
|
|
361
385
|
}
|
|
362
386
|
|
|
@@ -365,9 +389,6 @@ input {
|
|
|
365
389
|
}
|
|
366
390
|
|
|
367
391
|
:host {
|
|
368
|
-
/**
|
|
369
|
-
* @prop --checkbox-background: Background of the checkbox icon
|
|
370
|
-
*/
|
|
371
392
|
--checkbox-background-checked: var(--ion-color-primary, #0054e9);
|
|
372
393
|
--border-color-checked: var(--ion-color-primary, #0054e9);
|
|
373
394
|
--checkmark-color: var(--ion-color-primary-contrast, #fff);
|
|
@@ -381,10 +402,6 @@ input {
|
|
|
381
402
|
--checkmark-color: var(--ion-color-contrast);
|
|
382
403
|
}
|
|
383
404
|
|
|
384
|
-
.native-wrapper {
|
|
385
|
-
position: relative;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
405
|
:host(.ion-focused) .native-wrapper::after {
|
|
389
406
|
border-radius: 50%;
|
|
390
407
|
display: block;
|
|
@@ -415,21 +432,8 @@ input {
|
|
|
415
432
|
}
|
|
416
433
|
|
|
417
434
|
.checkbox-icon {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
height: var(--size);
|
|
421
|
-
transition: var(--transition);
|
|
422
|
-
border-width: var(--border-width);
|
|
423
|
-
border-style: var(--border-style);
|
|
424
|
-
border-color: var(--border-color);
|
|
425
|
-
background: var(--checkbox-background);
|
|
426
|
-
box-sizing: border-box;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.checkbox-icon path {
|
|
430
|
-
fill: none;
|
|
431
|
-
stroke: var(--checkmark-color);
|
|
432
|
-
stroke-width: var(--checkmark-width);
|
|
435
|
+
width: 100%;
|
|
436
|
+
height: 100%;
|
|
433
437
|
}
|
|
434
438
|
|
|
435
439
|
.checkbox-bottom {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
* @prop --focus-ring-color: Color of the focus ring
|
|
112
112
|
* @prop --focus-ring-width: Width of the focus ring
|
|
113
113
|
*/
|
|
114
|
-
--focus-ring-color: var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));
|
|
114
|
+
--focus-ring-color: var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));
|
|
115
115
|
--focus-ring-width: var(--token-border-size-050, var(--token-scale-050, 2px));
|
|
116
116
|
-webkit-padding-start: var(--token-space-200, var(--token-scale-200, 8px));
|
|
117
117
|
padding-inline-start: var(--token-space-200, var(--token-scale-200, 8px));
|
|
@@ -120,25 +120,24 @@
|
|
|
120
120
|
padding-top: var(--token-space-150, var(--token-scale-150, 6px));
|
|
121
121
|
padding-bottom: var(--token-space-150, var(--token-scale-150, 6px));
|
|
122
122
|
border-radius: var(--border-radius);
|
|
123
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
123
124
|
font-size: var(--token-font-size-300, 0.75rem);
|
|
124
125
|
font-weight: var(--token-font-weight-medium, 500);
|
|
125
|
-
letter-spacing: var(--token-font-letter-spacing-0, 0
|
|
126
|
-
line-height: var(--token-font-line-height-500,
|
|
127
|
-
text-decoration: none;
|
|
128
|
-
text-transform: none;
|
|
126
|
+
letter-spacing: var(--token-font-letter-spacing-0, 0);
|
|
127
|
+
line-height: var(--token-font-line-height-500, 1.25rem);
|
|
129
128
|
gap: var(--token-space-100, var(--token-scale-100, 4px));
|
|
130
|
-
line-height:
|
|
129
|
+
line-height: 100%;
|
|
131
130
|
cursor: auto;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
:host(.chip-outline) {
|
|
135
134
|
border-width: var(--token-border-size-025, var(--token-scale-025, 1px));
|
|
136
|
-
border-style:
|
|
135
|
+
border-style: solid;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
:host(.ion-focused) {
|
|
140
139
|
outline-offset: var(--token-border-size-050, var(--token-scale-050, 2px));
|
|
141
|
-
outline: var(--token-border-size-050, var(--token-scale-050, 2px))
|
|
140
|
+
outline: var(--token-border-size-050, var(--token-scale-050, 2px)) solid var(--focus-ring-color);
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
:host(.chip-disabled)::after {
|
|
@@ -181,21 +180,21 @@
|
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
:host(.chip-subtle) {
|
|
184
|
-
--background: var(--token-primitives-neutral-100, #
|
|
185
|
-
--color: var(--token-primitives-neutral-800, #
|
|
183
|
+
--background: var(--token-primitives-neutral-100, #f6f7fa);
|
|
184
|
+
--color: var(--token-primitives-neutral-800, #6c727a);
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
:host(.chip-outline.chip-subtle) {
|
|
189
|
-
border-color: var(--token-primitives-neutral-300, #
|
|
188
|
+
border-color: var(--token-primitives-neutral-300, #e6eaee);
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
:host(.chip-bold) {
|
|
193
|
-
--background: var(--token-bg-neutral-bold-default, var(--token-primitives-neutral-1000, #
|
|
192
|
+
--background: var(--token-bg-neutral-bold-default, var(--token-primitives-neutral-1000, #383e45));
|
|
194
193
|
--color: var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
:host(.chip-outline.chip-bold) {
|
|
198
|
-
border-color: var(--token-text-default, var(--token-primitives-neutral-1200, #
|
|
197
|
+
border-color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
|
|
199
198
|
}
|
|
200
199
|
|
|
201
200
|
:host(.chip-subtle.ion-color) {
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
* @prop --focus-ring-width: The width of the ring around the focused element.
|
|
451
451
|
*/
|
|
452
452
|
--background: var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));
|
|
453
|
-
--focus-ring-color: var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));
|
|
453
|
+
--focus-ring-color: var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));
|
|
454
454
|
--focus-ring-width: var(--token-border-radius-025, var(--token-scale-050, 2px));
|
|
455
455
|
/**
|
|
456
456
|
* TODO(FW-6931): Remove these variables upon solving the root cause
|
|
@@ -491,27 +491,25 @@
|
|
|
491
491
|
justify-content: space-between;
|
|
492
492
|
height: var(--token-scale-1400, 56px);
|
|
493
493
|
margin-bottom: var(--token-space-200, var(--token-scale-200, 8px));
|
|
494
|
-
border-bottom:
|
|
494
|
+
border-bottom: solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df);
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
:host .datetime-header .datetime-title {
|
|
498
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
498
499
|
font-size: var(--token-font-size-450, 1.125rem);
|
|
499
500
|
font-weight: var(--token-font-weight-medium, 500);
|
|
500
|
-
letter-spacing: var(--token-font-letter-spacing-0, 0
|
|
501
|
-
line-height: var(--token-font-line-height-700,
|
|
502
|
-
|
|
503
|
-
text-transform: none;
|
|
504
|
-
color: var(--token-primitives-neutral-800, #626262);
|
|
501
|
+
letter-spacing: var(--token-font-letter-spacing-0, 0);
|
|
502
|
+
line-height: var(--token-font-line-height-700, 1.75rem);
|
|
503
|
+
color: var(--token-primitives-neutral-800, #6c727a);
|
|
505
504
|
}
|
|
506
505
|
|
|
507
506
|
:host .datetime-header .datetime-selected-date {
|
|
507
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
508
508
|
font-size: var(--token-font-size-350, 0.875rem);
|
|
509
509
|
font-weight: var(--token-font-weight-regular, 400);
|
|
510
|
-
letter-spacing: var(--token-font-letter-spacing-0, 0
|
|
511
|
-
line-height: var(--token-font-line-height-600,
|
|
512
|
-
|
|
513
|
-
text-transform: none;
|
|
514
|
-
color: var(--token-primitives-neutral-1000, #3b3b3b);
|
|
510
|
+
letter-spacing: var(--token-font-letter-spacing-0, 0);
|
|
511
|
+
line-height: var(--token-font-line-height-600, 1.5rem);
|
|
512
|
+
color: var(--token-primitives-neutral-1000, #383e45);
|
|
515
513
|
}
|
|
516
514
|
|
|
517
515
|
.calendar-action-buttons {
|
|
@@ -528,12 +526,11 @@
|
|
|
528
526
|
|
|
529
527
|
.calendar-month-year-toggle {
|
|
530
528
|
border-radius: var(--token-border-radius-full, 999px);
|
|
529
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
531
530
|
font-size: var(--token-font-size-400, 1rem);
|
|
532
531
|
font-weight: var(--token-font-weight-medium, 500);
|
|
533
|
-
letter-spacing: var(--token-font-letter-spacing-
|
|
534
|
-
line-height: var(--token-font-line-height-600,
|
|
535
|
-
text-decoration: none;
|
|
536
|
-
text-transform: none;
|
|
532
|
+
letter-spacing: var(--token-font-letter-spacing-100, 0.01em);
|
|
533
|
+
line-height: var(--token-font-line-height-600, 1.5rem);
|
|
537
534
|
-webkit-padding-start: var(--token-space-400, var(--token-scale-400, 16px));
|
|
538
535
|
padding-inline-start: var(--token-space-400, var(--token-scale-400, 16px));
|
|
539
536
|
-webkit-padding-end: var(--token-space-400, var(--token-scale-400, 16px));
|
|
@@ -542,13 +539,13 @@
|
|
|
542
539
|
padding-bottom: var(--token-space-200, var(--token-scale-200, 8px));
|
|
543
540
|
min-width: var(--token-scale-1600, 64px);
|
|
544
541
|
min-height: var(--token-scale-1000, 40px);
|
|
545
|
-
border: var(--focus-ring-width)
|
|
542
|
+
border: var(--focus-ring-width) solid transparent;
|
|
546
543
|
color: var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));
|
|
547
544
|
}
|
|
548
545
|
|
|
549
546
|
@media (any-hover: hover) {
|
|
550
547
|
.calendar-month-year-toggle:hover {
|
|
551
|
-
background: var(--token-primitives-neutral-200, #
|
|
548
|
+
background: var(--token-primitives-neutral-200, #ebeef2);
|
|
552
549
|
}
|
|
553
550
|
}
|
|
554
551
|
.calendar-month-year-toggle.ion-focused {
|
|
@@ -556,32 +553,32 @@
|
|
|
556
553
|
}
|
|
557
554
|
|
|
558
555
|
.calendar-month-year-toggle.ion-activated {
|
|
559
|
-
background: var(--token-primitives-neutral-200, #
|
|
556
|
+
background: var(--token-primitives-neutral-200, #ebeef2);
|
|
560
557
|
}
|
|
561
558
|
|
|
562
559
|
.calendar-next-prev ion-button.button-has-icon-only {
|
|
563
|
-
--color: var(--token-primitives-neutral-1000, #
|
|
564
|
-
--background-activated: var(--token-primitives-neutral-200, #
|
|
565
|
-
--background-hover: var(--token-primitives-neutral-200, #
|
|
560
|
+
--color: var(--token-primitives-neutral-1000, #383e45);
|
|
561
|
+
--background-activated: var(--token-primitives-neutral-200, #ebeef2);
|
|
562
|
+
--background-hover: var(--token-primitives-neutral-200, #ebeef2);
|
|
566
563
|
--background-hover-opacity: 1;
|
|
567
564
|
min-height: var(--token-scale-1000, 40px);
|
|
568
565
|
}
|
|
569
566
|
|
|
570
567
|
.calendar-next-prev ion-button.button-has-icon-only.ion-focused::part(native) {
|
|
571
|
-
border: var(--token-border-size-050, var(--token-scale-050, 2px)) var(--token-border-
|
|
568
|
+
border: var(--token-border-size-050, var(--token-scale-050, 2px)) solid var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));
|
|
572
569
|
outline: none;
|
|
573
570
|
}
|
|
574
571
|
|
|
575
572
|
.calendar-days-of-week {
|
|
573
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
576
574
|
font-size: var(--token-font-size-300, 0.75rem);
|
|
577
575
|
font-weight: var(--token-font-weight-medium, 500);
|
|
578
|
-
letter-spacing: var(--token-font-letter-spacing-
|
|
579
|
-
line-height: var(--token-font-line-height-500,
|
|
580
|
-
text-decoration: none;
|
|
576
|
+
letter-spacing: var(--token-font-letter-spacing-150, 0.015em);
|
|
577
|
+
line-height: var(--token-font-line-height-500, 1.25rem);
|
|
581
578
|
text-transform: uppercase;
|
|
582
579
|
align-content: center;
|
|
583
580
|
height: var(--token-scale-1200, 48px);
|
|
584
|
-
color: var(--token-primitives-neutral-800, #
|
|
581
|
+
color: var(--token-primitives-neutral-800, #6c727a);
|
|
585
582
|
}
|
|
586
583
|
|
|
587
584
|
.calendar-day {
|
|
@@ -592,20 +589,19 @@
|
|
|
592
589
|
padding-inline-end: var(--token-space-100, var(--token-scale-100, 4px));
|
|
593
590
|
padding-top: var(--token-space-100, var(--token-scale-100, 4px));
|
|
594
591
|
padding-bottom: var(--token-space-100, var(--token-scale-100, 4px));
|
|
592
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
595
593
|
font-size: var(--token-font-size-350, 0.875rem);
|
|
596
594
|
font-weight: var(--token-font-weight-medium, 500);
|
|
597
|
-
letter-spacing: var(--token-font-letter-spacing-
|
|
598
|
-
line-height: var(--token-font-line-height-500,
|
|
599
|
-
text-decoration: none;
|
|
600
|
-
text-transform: none;
|
|
595
|
+
letter-spacing: var(--token-font-letter-spacing-100, 0.01em);
|
|
596
|
+
line-height: var(--token-font-line-height-500, 1.25rem);
|
|
601
597
|
width: var(--token-scale-1200, 48px);
|
|
602
598
|
min-width: var(--token-scale-1200, 48px);
|
|
603
599
|
height: var(--token-scale-1200, 48px);
|
|
604
|
-
color: var(--token-text-default, var(--token-primitives-neutral-1200, #
|
|
600
|
+
color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
|
|
605
601
|
}
|
|
606
602
|
|
|
607
603
|
.calendar-day[disabled]:not(.calendar-day-constrained) {
|
|
608
|
-
color: var(--token-primitives-neutral-500, #
|
|
604
|
+
color: var(--token-primitives-neutral-500, #9fa5ad);
|
|
609
605
|
}
|
|
610
606
|
|
|
611
607
|
.calendar-day.calendar-day-today {
|
|
@@ -614,11 +610,11 @@
|
|
|
614
610
|
|
|
615
611
|
.calendar-day.calendar-day-active,
|
|
616
612
|
.calendar-day.calendar-day-active.calendar-day-adjacent-day {
|
|
617
|
-
background: var(--token-semantics-primary-100, var(--token-primitives-blue-100, #
|
|
613
|
+
background: var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff));
|
|
618
614
|
}
|
|
619
615
|
|
|
620
616
|
.calendar-day:focus-visible {
|
|
621
|
-
border: var(--focus-ring-width)
|
|
617
|
+
border: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
622
618
|
}
|
|
623
619
|
|
|
624
620
|
@media (any-hover: hover) {
|
|
@@ -632,11 +628,11 @@
|
|
|
632
628
|
}
|
|
633
629
|
|
|
634
630
|
.calendar-day.calendar-day-adjacent-day {
|
|
635
|
-
color: var(--token-text-subtlest, var(--token-primitives-neutral-800, #
|
|
631
|
+
color: var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a));
|
|
636
632
|
}
|
|
637
633
|
|
|
638
634
|
.calendar-day.calendar-day-active.calendar-day-adjacent-day {
|
|
639
|
-
color: var(--token-text-default, var(--token-primitives-neutral-1200, #
|
|
635
|
+
color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
|
|
640
636
|
}
|
|
641
637
|
|
|
642
638
|
:host .datetime-time {
|
|
@@ -649,13 +645,12 @@
|
|
|
649
645
|
}
|
|
650
646
|
|
|
651
647
|
:host .datetime-time .time-header {
|
|
648
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
652
649
|
font-size: var(--token-font-size-400, 1rem);
|
|
653
650
|
font-weight: var(--token-font-weight-medium, 500);
|
|
654
|
-
letter-spacing: var(--token-font-letter-spacing-
|
|
655
|
-
line-height: var(--token-font-line-height-600,
|
|
656
|
-
|
|
657
|
-
text-transform: none;
|
|
658
|
-
color: var(--token-primitives-neutral-800, #626262);
|
|
651
|
+
letter-spacing: var(--token-font-letter-spacing-100, 0.01em);
|
|
652
|
+
line-height: var(--token-font-line-height-600, 1.5rem);
|
|
653
|
+
color: var(--token-primitives-neutral-800, #6c727a);
|
|
659
654
|
}
|
|
660
655
|
|
|
661
656
|
:host .datetime-time button {
|
|
@@ -665,18 +660,17 @@
|
|
|
665
660
|
padding-inline-end: var(--token-space-200, var(--token-scale-200, 8px));
|
|
666
661
|
padding-top: var(--token-space-0, var(--token-scale-0, 0px));
|
|
667
662
|
padding-bottom: var(--token-space-0, var(--token-scale-0, 0px));
|
|
663
|
+
font-family: var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");
|
|
668
664
|
font-size: var(--token-font-size-350, 0.875rem);
|
|
669
665
|
font-weight: var(--token-font-weight-medium, 500);
|
|
670
|
-
letter-spacing: var(--token-font-letter-spacing-0, 0
|
|
671
|
-
line-height: var(--token-font-line-height-600,
|
|
672
|
-
text-decoration: none;
|
|
673
|
-
text-transform: none;
|
|
666
|
+
letter-spacing: var(--token-font-letter-spacing-0, 0);
|
|
667
|
+
line-height: var(--token-font-line-height-600, 1.5rem);
|
|
674
668
|
border-radius: var(--token-border-radius-full, 999px);
|
|
675
669
|
display: flex;
|
|
676
670
|
align-items: center;
|
|
677
671
|
height: var(--token-scale-800, 32px);
|
|
678
|
-
background-color: var(--token-primitives-neutral-100, #
|
|
679
|
-
color: var(--token-text-default, var(--token-primitives-neutral-1200, #
|
|
672
|
+
background-color: var(--token-primitives-neutral-100, #f6f7fa);
|
|
673
|
+
color: var(--token-text-default, var(--token-primitives-neutral-1200, #242528));
|
|
680
674
|
}
|
|
681
675
|
|
|
682
676
|
:host .datetime-footer {
|
|
@@ -690,7 +684,7 @@
|
|
|
690
684
|
margin-bottom: 0;
|
|
691
685
|
border-left: 0;
|
|
692
686
|
border-right: 0;
|
|
693
|
-
border-top:
|
|
687
|
+
border-top: solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df);
|
|
694
688
|
border-bottom: 0;
|
|
695
689
|
}
|
|
696
690
|
|
|
@@ -509,16 +509,11 @@
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
.calendar-day:not(.calendar-day-adjacent-day):focus {
|
|
512
|
-
background: ion-color
|
|
513
|
-
box-shadow: 0px 0px 0px 4px ion-color
|
|
512
|
+
background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);
|
|
513
|
+
box-shadow: 0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus {
|
|
517
|
-
background: current-color(base, 0.2);
|
|
518
|
-
box-shadow: 0px 0px 0px 4px current-color(base, 0.2);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
.calendar-day:focus {
|
|
522
517
|
background: rgba(var(--ion-color-base-rgb), 0.2);
|
|
523
518
|
box-shadow: 0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);
|
|
524
519
|
}
|
|
@@ -563,7 +558,7 @@
|
|
|
563
558
|
}
|
|
564
559
|
|
|
565
560
|
:host .time-body-active {
|
|
566
|
-
color: ion-color
|
|
561
|
+
color: var(--ion-color-primary, #0054e9);
|
|
567
562
|
}
|
|
568
563
|
|
|
569
564
|
:host(.ion-color) .time-body-active {
|
|
@@ -571,7 +566,7 @@
|
|
|
571
566
|
}
|
|
572
567
|
|
|
573
568
|
:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle {
|
|
574
|
-
color: ion-color
|
|
569
|
+
color: var(--ion-color-primary, #0054e9);
|
|
575
570
|
}
|
|
576
571
|
|
|
577
572
|
:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle {
|
|
@@ -579,7 +574,7 @@
|
|
|
579
574
|
}
|
|
580
575
|
|
|
581
576
|
:host .datetime-action-buttons ion-button {
|
|
582
|
-
--color: ion-color
|
|
577
|
+
--color: var(--ion-color-primary, #0054e9);
|
|
583
578
|
}
|
|
584
579
|
|
|
585
580
|
.calendar-month-year-toggle::after {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import caretLeftRegular from "@phosphor-icons/core/assets/regular/caret-left.svg";
|
|
5
|
-
import caretRightRegular from "@phosphor-icons/core/assets/regular/caret-right.svg";
|
|
6
4
|
import { Host, h, writeTask } from "@stencil/core";
|
|
7
5
|
import { startFocusVisible } from "../../utils/focus-visible";
|
|
8
6
|
import { getElementRoot, raf, renderHiddenInput } from "../../utils/helpers";
|
|
@@ -1818,74 +1816,40 @@ export class Datetime {
|
|
|
1818
1816
|
}
|
|
1819
1817
|
/**
|
|
1820
1818
|
* Get the icon to use for the next icon.
|
|
1821
|
-
*
|
|
1819
|
+
* Use the icon set in the config.
|
|
1822
1820
|
* If no icon is set in the config, use the default icon.
|
|
1823
1821
|
*/
|
|
1824
1822
|
get datetimeNextIcon() {
|
|
1825
|
-
|
|
1826
|
-
const theme = getIonTheme(this);
|
|
1827
|
-
const defaultIcons = {
|
|
1828
|
-
ios: chevronForward,
|
|
1829
|
-
ionic: caretRightRegular,
|
|
1830
|
-
md: chevronForward,
|
|
1831
|
-
};
|
|
1832
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1833
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1834
|
-
// Return the configured datetime next icon or the default icon
|
|
1835
|
-
return config.get('datetimeNextIcon', defaultIcon);
|
|
1823
|
+
return config.get('datetimeNextIcon', chevronForward);
|
|
1836
1824
|
}
|
|
1837
1825
|
/**
|
|
1838
1826
|
* Get the icon to use for the previous icon.
|
|
1839
|
-
*
|
|
1827
|
+
* Use the icon set in the config.
|
|
1840
1828
|
* If no icon is set in the config, use the default icon.
|
|
1841
1829
|
*/
|
|
1842
1830
|
get datetimePreviousIcon() {
|
|
1843
|
-
|
|
1844
|
-
const theme = getIonTheme(this);
|
|
1845
|
-
const defaultIcons = {
|
|
1846
|
-
ios: chevronBack,
|
|
1847
|
-
ionic: caretLeftRegular,
|
|
1848
|
-
md: chevronBack,
|
|
1849
|
-
};
|
|
1850
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1851
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1852
|
-
// Return the configured datetime previous icon or the default icon
|
|
1853
|
-
return config.get('datetimePreviousIcon', defaultIcon);
|
|
1831
|
+
return config.get('datetimePreviousIcon', chevronBack);
|
|
1854
1832
|
}
|
|
1855
1833
|
/**
|
|
1856
1834
|
* Get the icon to use for the show month and year icon.
|
|
1857
|
-
*
|
|
1835
|
+
* Use the icon set in the config.
|
|
1858
1836
|
* If no icon is set in the config, use the default icon.
|
|
1859
1837
|
*/
|
|
1860
1838
|
get datetimeCollapsedIcon() {
|
|
1861
|
-
// Determine the theme and map to default
|
|
1839
|
+
// Determine the theme and map to the default icon
|
|
1862
1840
|
const theme = getIonTheme(this);
|
|
1863
|
-
const
|
|
1864
|
-
ios: chevronForward,
|
|
1865
|
-
ionic: undefined,
|
|
1866
|
-
md: caretDownSharp,
|
|
1867
|
-
};
|
|
1868
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1869
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1870
|
-
// Return the configured datetime show month and year icon or the default icon
|
|
1841
|
+
const defaultIcon = theme === 'ios' ? chevronForward : caretDownSharp;
|
|
1871
1842
|
return config.get('datetimeCollapsedIcon', defaultIcon);
|
|
1872
1843
|
}
|
|
1873
1844
|
/**
|
|
1874
1845
|
* Get the icon to use for the hide month and year icon.
|
|
1875
|
-
*
|
|
1846
|
+
* Use the icon set in the config.
|
|
1876
1847
|
* If no icon is set in the config, use the default icon.
|
|
1877
1848
|
*/
|
|
1878
1849
|
get datetimeExpandedIcon() {
|
|
1879
|
-
// Determine the theme and map to default
|
|
1850
|
+
// Determine the theme and map to the default icon
|
|
1880
1851
|
const theme = getIonTheme(this);
|
|
1881
|
-
const
|
|
1882
|
-
ios: chevronDown,
|
|
1883
|
-
ionic: undefined,
|
|
1884
|
-
md: caretUpSharp,
|
|
1885
|
-
};
|
|
1886
|
-
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1887
|
-
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1888
|
-
// Return the configured datetime hide month and year icon or the default icon
|
|
1852
|
+
const defaultIcon = theme === 'ios' ? chevronDown : caretUpSharp;
|
|
1889
1853
|
return config.get('datetimeExpandedIcon', defaultIcon);
|
|
1890
1854
|
}
|
|
1891
1855
|
render() {
|
|
@@ -1897,7 +1861,7 @@ export class Datetime {
|
|
|
1897
1861
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1898
1862
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1899
1863
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1900
|
-
return (h(Host, { key: '
|
|
1864
|
+
return (h(Host, { key: '0c30b5453796094b4ef46ebf4f5bf0879db55ec9', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: {
|
|
1901
1865
|
...createColorClasses(color, {
|
|
1902
1866
|
[theme]: true,
|
|
1903
1867
|
['datetime-readonly']: readonly,
|
|
@@ -1909,7 +1873,7 @@ export class Datetime {
|
|
|
1909
1873
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1910
1874
|
[`datetime-grid`]: isGridStyle,
|
|
1911
1875
|
}),
|
|
1912
|
-
} }, h("div", { key: '
|
|
1876
|
+
} }, h("div", { key: '4daf05c55cb51b877970fc72bb0ad490b740d54c', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme)));
|
|
1913
1877
|
}
|
|
1914
1878
|
static get is() { return "ion-datetime"; }
|
|
1915
1879
|
static get encapsulation() { return "shadow"; }
|