@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2
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/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
- package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.D7E0-cUV.js +460 -0
- package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
- package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
- package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
- package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
- package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
- package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
- package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
- package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
- package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
- package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/folder-select.BT1drT8C.js +775 -0
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
- package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.BePZwMCQ.js +170 -0
- package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
- package/library/chunks/icon-button.rKe0N4VB.js +149 -0
- package/library/chunks/iframe.DznmlYpV.js +73 -0
- package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
- package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.COnEtd3X.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/pagination.DaD9Yul6.js +334 -0
- package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
- package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/string.BigZhczf.js +185 -0
- package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
- package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
- package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/toast.B2cJgW5u.js +71 -0
- package/library/chunks/transformation.CzBptarI.js +140 -0
- package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +11 -179
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +13 -101
- package/library/components/animation.js +3 -3
- package/library/components/array-line-clamp.js +8 -89
- package/library/components/asset-link-format.js +718 -1380
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +6 -95
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +5 -26
- package/library/components/breadcrumb-item.js +25 -156
- package/library/components/breadcrumb.js +4 -22
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +6 -6
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +13 -254
- package/library/components/color-picker.js +57 -728
- package/library/components/color-swatch-group.js +9 -9
- package/library/components/color-swatch.js +5 -5
- package/library/components/confirm-popover.js +6 -6
- package/library/components/copy-button.js +11 -256
- package/library/components/corner-position-input-group.js +5 -58
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +6 -6
- package/library/components/divider.js +6 -68
- package/library/components/dot-pagination.js +4 -4
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +11 -242
- package/library/components/dropdown.js +49 -151
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +8 -51
- package/library/components/element-clamp.js +7 -80
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +9 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +3 -7
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +4 -14
- package/library/components/grid-item.js +5 -172
- package/library/components/grid.js +5 -41
- package/library/components/header.js +4 -4
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +14 -679
- package/library/components/icon.js +9 -2449
- package/library/components/iframe.js +4 -4
- package/library/components/image-comparer.js +9 -129
- package/library/components/image.js +4 -4
- package/library/components/include.js +3 -7
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +358 -966
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +9 -9
- package/library/components/markdown.js +2 -4
- package/library/components/masonry.js +24 -223
- package/library/components/menu-item.js +155 -445
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +5 -113
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +3 -7
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +10 -8
- package/library/components/popup.js +385 -682
- package/library/components/position-picker.js +4 -94
- package/library/components/progress-bar.js +19 -136
- package/library/components/progress-ring.js +4 -95
- package/library/components/qr-code.js +5 -17
- package/library/components/radio-button.js +5 -25
- package/library/components/radio-card.js +8 -176
- package/library/components/radio-group.js +22 -153
- package/library/components/radio.js +14 -171
- package/library/components/range.js +123 -660
- package/library/components/rating.js +58 -238
- package/library/components/relative-time.js +3 -13
- package/library/components/resize-observer.js +4 -8
- package/library/components/select.js +305 -1012
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +21 -313
- package/library/components/sidebar.js +15 -221
- package/library/components/size-input-group.js +12 -77
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +7 -76
- package/library/components/split-panel.js +18 -125
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +17 -34
- package/library/components/switch.js +13 -276
- package/library/components/tab-group.js +7 -7
- package/library/components/tab-panel.js +5 -32
- package/library/components/tab.js +11 -257
- package/library/components/table.js +8 -8
- package/library/components/tag.js +15 -166
- package/library/components/textarea.js +183 -504
- package/library/components/timecode.js +6 -25
- package/library/components/tooltip.js +10 -94
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +24 -123
- package/library/components/types.js +37225 -47339
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3875 -6263
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
- package/library/packages/atoms/src/components/input/input.d.ts +10 -2
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/table.d.ts +49 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +11 -1
- package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
- package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
- package/library/packages/organisms/src/comment/comment.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +27 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/types/src/icon-button.d.ts +7 -0
- package/library/packages/types/src/menu-item.d.ts +33 -0
- package/library/packages/types/src/storybook.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +37 -1
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/types/src/video-format-picker.d.ts +11 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +33 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +293 -29
- package/library/utils.js +483 -178
- package/package.json +4 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/asset.CG_yXtWK.js +0 -288
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
- package/library/chunks/content-builder.D_phDrlo.js +0 -127
- package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
- package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
- package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.BduX6KJP.js +0 -777
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/iframe.BPKV2K7z.js +0 -160
- package/library/chunks/index.B3wJT3XS.js +0 -373
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/option.DnpkE8Xi.js +0 -296
- package/library/chunks/pagination.C30LoTya.js +0 -341
- package/library/chunks/string.B_rEG27K.js +0 -160
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/chunks/typography.oDzoLbZS.js +0 -149
- package/library/chunks/url.LjsR2sB5.js +0 -15
- package/library/chunks/watch.q1sEjPWL.js +0 -501
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
|
@@ -1,681 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const z = _`
|
|
15
|
-
:host {
|
|
16
|
-
display: inline-block;
|
|
17
|
-
color: var(--cx-color-neutral-600);
|
|
18
|
-
--group-divider-color: rgb(128 128 128 / 33%);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.icon-button {
|
|
22
|
-
flex: 0 0 auto;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
background: none;
|
|
26
|
-
border: none;
|
|
27
|
-
border-radius: var(--cx-border-radius-medium);
|
|
28
|
-
font-size: inherit;
|
|
29
|
-
color: inherit;
|
|
30
|
-
padding: var(--cx-spacing-x-small);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
transition: var(--cx-transition-x-fast) color;
|
|
33
|
-
position: relative;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.icon-button:focus {
|
|
37
|
-
outline: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.icon-button--disabled {
|
|
41
|
-
opacity: 0.5;
|
|
42
|
-
cursor: default;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.icon-button:focus-visible {
|
|
46
|
-
outline: var(--cx-focus-ring);
|
|
47
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.icon-button__icon {
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
margin: auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.icon-button--small {
|
|
56
|
-
font-size: var(--cx-font-size-x-small);
|
|
57
|
-
padding: var(--cx-spacing-2x-small);
|
|
58
|
-
min-height: var(--cx-input-height-small);
|
|
59
|
-
min-width: var(--cx-input-height-small);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.icon-button--medium {
|
|
63
|
-
font-size: var(--cx-font-size-large);
|
|
64
|
-
padding: var(--cx-spacing-2x-small);
|
|
65
|
-
min-height: var(--cx-input-height-medium);
|
|
66
|
-
min-width: var(--cx-input-height-medium);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.icon-button--large {
|
|
70
|
-
font-size: var(--cx-font-size-large);
|
|
71
|
-
padding: var(--cx-spacing-x-small);
|
|
72
|
-
min-height: var(--cx-input-height-large);
|
|
73
|
-
min-width: var(--cx-input-width-large);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.icon-button--x-large {
|
|
77
|
-
font-size: var(--cx-font-size-large);
|
|
78
|
-
padding: var(--cx-spacing-small);
|
|
79
|
-
min-height: var(--cx-input-height-x-large);
|
|
80
|
-
min-width: var(--cx-input-height-x-large);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/*
|
|
84
|
-
* Standard buttons
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
/* Default */
|
|
88
|
-
.icon-button.icon-button--default {
|
|
89
|
-
background-color: var(--cx-color-neutral-100);
|
|
90
|
-
border-color: var(--cx-color-neutral-100);
|
|
91
|
-
color: var(--cx-color-neutral);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.icon-button.icon-button--default:hover:not(.icon-button--disabled),
|
|
95
|
-
.icon-button.icon-button--default.icon-button--focused:not(
|
|
96
|
-
.icon-button--disabled
|
|
97
|
-
) {
|
|
98
|
-
background-color: var(--cx-color-neutral-200);
|
|
99
|
-
border-color: var(--cx-color-neutral-200);
|
|
100
|
-
color: var(--cx-color-neutral);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.icon-button.icon-button--default:active:not(.icon-button--disabled) {
|
|
104
|
-
background-color: var(--cx-color-neutral-300);
|
|
105
|
-
border-color: var(--cx-color-neutral-300);
|
|
106
|
-
color: var(--cx-color-neutral);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* Primary */
|
|
110
|
-
.icon-button.icon-button--primary {
|
|
111
|
-
background-color: var(--cx-color-primary);
|
|
112
|
-
border-color: var(--cx-color-primary);
|
|
113
|
-
color: var(--cx-color-neutral-0);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.icon-button.icon-button--primary:hover:not(.icon-button--disabled),
|
|
117
|
-
.icon-button.icon-button--primary.icon-button--focused:not(
|
|
118
|
-
.icon-button--disabled
|
|
119
|
-
) {
|
|
120
|
-
background-color: var(--cx-color-primary-500);
|
|
121
|
-
border-color: var(--cx-color-primary-500);
|
|
122
|
-
color: var(--cx-color-neutral-0);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.icon-button.icon-button--primary:active:not(.icon-button--disabled) {
|
|
126
|
-
background-color: var(--cx-color-primary-700);
|
|
127
|
-
border-color: var(--cx-color-primary-700);
|
|
128
|
-
color: var(--cx-color-neutral-0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Success */
|
|
132
|
-
.icon-button.icon-button--success {
|
|
133
|
-
background-color: var(--cx-color-success);
|
|
134
|
-
border-color: var(--cx-color-success);
|
|
135
|
-
color: var(--cx-color-neutral-0);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.icon-button.icon-button--success:hover:not(.icon-button--disabled),
|
|
139
|
-
.icon-button.icon-button--success.icon-button--focused:not(
|
|
140
|
-
.icon-button--disabled
|
|
141
|
-
) {
|
|
142
|
-
background-color: var(--cx-color-success-500);
|
|
143
|
-
border-color: var(--cx-color-success-500);
|
|
144
|
-
color: var(--cx-color-neutral-0);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.icon-button.icon-button--success:active:not(.icon-button--disabled) {
|
|
148
|
-
background-color: var(--cx-color-success-700);
|
|
149
|
-
border-color: var(--cx-color-success-700);
|
|
150
|
-
color: var(--cx-color-neutral-0);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* Warning */
|
|
154
|
-
.icon-button.icon-button--warning {
|
|
155
|
-
background-color: var(--cx-color-warning);
|
|
156
|
-
border-color: var(--cx-color-warning);
|
|
157
|
-
color: var(--cx-color-neutral-0);
|
|
158
|
-
}
|
|
159
|
-
.icon-button.icon-button--warning:hover:not(.icon-button--disabled),
|
|
160
|
-
.icon-button.icon-button--warning.icon-button--focused:not(
|
|
161
|
-
.icon-button--disabled
|
|
162
|
-
) {
|
|
163
|
-
background-color: var(--cx-color-warning-500);
|
|
164
|
-
border-color: var(--cx-color-warning-500);
|
|
165
|
-
color: var(--cx-color-neutral-0);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.icon-button.icon-button--warning:active:not(.icon-button--disabled) {
|
|
169
|
-
background-color: var(--cx-color-warning-700);
|
|
170
|
-
border-color: var(--cx-color-warning-700);
|
|
171
|
-
color: var(--cx-color-neutral-0);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/* Danger */
|
|
175
|
-
.icon-button.icon-button--danger {
|
|
176
|
-
background-color: var(--cx-color-danger);
|
|
177
|
-
border-color: var(--cx-color-danger);
|
|
178
|
-
color: var(--cx-color-neutral-0);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.icon-button.icon-button--danger:hover:not(.icon-button--disabled),
|
|
182
|
-
.icon-button.icon-button--danger.icon-button--focused:not(
|
|
183
|
-
.icon-button--disabled
|
|
184
|
-
) {
|
|
185
|
-
background-color: var(--cx-color-danger-500);
|
|
186
|
-
border-color: var(--cx-color-danger-500);
|
|
187
|
-
color: var(--cx-color-neutral-0);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.icon-button.icon-button--danger:active:not(.icon-button--disabled) {
|
|
191
|
-
background-color: var(--cx-color-danger-700);
|
|
192
|
-
border-color: var(--cx-color-danger-700);
|
|
193
|
-
color: var(--cx-color-neutral-0);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* Custom */
|
|
197
|
-
.icon-button.icon-button--custom {
|
|
198
|
-
background-color: var(--background-color);
|
|
199
|
-
border-color: var(--background-color);
|
|
200
|
-
color: var(--color);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.icon-button.icon-button--custom:hover:not(.icon-button--disabled),
|
|
204
|
-
.icon-button.icon-button--custom.icon-button--focused:not(
|
|
205
|
-
.icon-button--disabled
|
|
206
|
-
) {
|
|
207
|
-
background-color: var(--background-color);
|
|
208
|
-
border-color: var(--background-color);
|
|
209
|
-
color: var(--color);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.icon-button.icon-button--custom:active:not(.icon-button--disabled) {
|
|
213
|
-
background-color: var(--background-color);
|
|
214
|
-
border-color: var(--background-color);
|
|
215
|
-
color: var(--color);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/*
|
|
219
|
-
* Outline buttons
|
|
220
|
-
*/
|
|
221
|
-
|
|
222
|
-
.icon-button--outline {
|
|
223
|
-
background: none;
|
|
224
|
-
border: solid var(--cx-input-border-width);
|
|
225
|
-
border-color: var(--cx-input-border-color);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/* Default */
|
|
229
|
-
.icon-button--outline.icon-button--default {
|
|
230
|
-
border-color: var(--cx-input-border-color);
|
|
231
|
-
color: var(--cx-color-neutral);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.icon-button--outline.icon-button--default:hover:not(.icon-button--disabled),
|
|
235
|
-
.icon-button--outline.icon-button--default.icon-button--focused:not(
|
|
236
|
-
.icon-button--disabled
|
|
237
|
-
),
|
|
238
|
-
.icon-button--outline.icon-button--default.icon-button--checked:not(
|
|
239
|
-
.icon-button--disabled
|
|
240
|
-
) {
|
|
241
|
-
border-color: var(--cx-color-neutral-300);
|
|
242
|
-
background-color: var(--cx-color-neutral-100);
|
|
243
|
-
color: var(--cx-color-neutral);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.icon-button--outline.icon-button--default:active:not(
|
|
247
|
-
.icon-button--disabled
|
|
248
|
-
) {
|
|
249
|
-
border-color: var(--cx-color-neutral-300);
|
|
250
|
-
background-color: var(--cx-color-neutral-200);
|
|
251
|
-
color: var(--cx-color-neutral);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* Primary */
|
|
255
|
-
.icon-button--outline.icon-button--primary {
|
|
256
|
-
border-color: var(--cx-color-primary);
|
|
257
|
-
color: var(--cx-color-primary);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.icon-button--outline.icon-button--primary:hover:not(.icon-button--disabled),
|
|
261
|
-
.icon-button--outline.icon-button--primary.icon-button--focused:not(
|
|
262
|
-
.icon-button--disabled
|
|
263
|
-
),
|
|
264
|
-
.icon-button--outline.icon-button--primary.icon-button--checked:not(
|
|
265
|
-
.icon-button--disabled
|
|
266
|
-
) {
|
|
267
|
-
background-color: var(--cx-color-primary-500);
|
|
268
|
-
color: var(--cx-color-neutral-0);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.icon-button--outline.icon-button--primary:active:not(
|
|
272
|
-
.icon-button--disabled
|
|
273
|
-
) {
|
|
274
|
-
border-color: var(--cx-color-primary-700);
|
|
275
|
-
background-color: var(--cx-color-primary-700);
|
|
276
|
-
color: var(--cx-color-neutral-0);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/* Success */
|
|
280
|
-
.icon-button--outline.icon-button--success {
|
|
281
|
-
border-color: var(--cx-color-success);
|
|
282
|
-
color: var(--cx-color-success);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.icon-button--outline.icon-button--success:hover:not(.icon-button--disabled),
|
|
286
|
-
.icon-button--outline.icon-button--success.icon-button--focused:not(
|
|
287
|
-
.icon-button--disabled
|
|
288
|
-
),
|
|
289
|
-
.icon-button--outline.icon-button--success.icon-button--checked:not(
|
|
290
|
-
.icon-button--disabled
|
|
291
|
-
) {
|
|
292
|
-
background-color: var(--cx-color-success-500);
|
|
293
|
-
color: var(--cx-color-neutral-0);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.icon-button--outline.icon-button--success:active:not(
|
|
297
|
-
.icon-button--disabled
|
|
298
|
-
) {
|
|
299
|
-
border-color: var(--cx-color-success);
|
|
300
|
-
background-color: var(--cx-color-success);
|
|
301
|
-
color: var(--cx-color-neutral-0);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/* Warning */
|
|
305
|
-
.icon-button--outline.icon-button--warning {
|
|
306
|
-
border-color: var(--cx-color-warning);
|
|
307
|
-
color: var(--cx-color-warning);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.icon-button--outline.icon-button--warning:hover:not(.icon-button--disabled),
|
|
311
|
-
.icon-button--outline.icon-button--warning.icon-button--focused:not(
|
|
312
|
-
.icon-button--disabled
|
|
313
|
-
),
|
|
314
|
-
.icon-button--outline.icon-button--warning.icon-button--checked:not(
|
|
315
|
-
.icon-button--disabled
|
|
316
|
-
) {
|
|
317
|
-
background-color: var(--cx-color-warning-500);
|
|
318
|
-
color: var(--cx-color-neutral-0);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.icon-button--outline.icon-button--warning:active:not(
|
|
322
|
-
.icon-button--disabled
|
|
323
|
-
) {
|
|
324
|
-
border-color: var(--cx-color-warning-700);
|
|
325
|
-
background-color: var(--cx-color-warning-700);
|
|
326
|
-
color: var(--cx-color-neutral-0);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/* Danger */
|
|
330
|
-
.icon-button--outline.icon-button--danger {
|
|
331
|
-
border-color: var(--cx-color-danger);
|
|
332
|
-
color: var(--cx-color-danger);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.icon-button--outline.icon-button--danger:hover:not(.icon-button--disabled),
|
|
336
|
-
.icon-button--outline.icon-button--danger.icon-button--focused:not(
|
|
337
|
-
.icon-button--disabled
|
|
338
|
-
),
|
|
339
|
-
.icon-button--outline.icon-button--danger.icon-button--checked:not(
|
|
340
|
-
.icon-button--disabled
|
|
341
|
-
) {
|
|
342
|
-
background-color: var(--cx-color-danger-500);
|
|
343
|
-
color: var(--cx-color-neutral-0);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.icon-button--outline.icon-button--danger:active:not(.icon-button--disabled) {
|
|
347
|
-
border-color: var(--cx-color-danger-700);
|
|
348
|
-
background-color: var(--cx-color-danger-700);
|
|
349
|
-
color: var(--cx-color-neutral-0);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/*
|
|
353
|
-
* Tertiary buttons
|
|
354
|
-
*/
|
|
355
|
-
|
|
356
|
-
.icon-button--tertiary {
|
|
357
|
-
background-color: transparent;
|
|
358
|
-
border-color: transparent;
|
|
359
|
-
color: var(--cx-color-neutral);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.icon-button--tertiary:hover:not(.icon-button--disabled),
|
|
363
|
-
.icon-button--tertiary.icon-button--focused:not(.icon-button--disabled) {
|
|
364
|
-
background-color: var(--cx-color-neutral-100);
|
|
365
|
-
border-color: transparent;
|
|
366
|
-
color: var(--cx-color-neutral);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.icon-button--tertiary:focus-visible:not(.icon-button--disabled) {
|
|
370
|
-
background-color: var(--cx-color-neutral-200);
|
|
371
|
-
border-color: transparent;
|
|
372
|
-
color: var(--cx-color-neutral);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.icon-button--tertiary:active:not(.icon-button--disabled) {
|
|
376
|
-
background-color: var(--cx-color-neutral-300);
|
|
377
|
-
border-color: transparent;
|
|
378
|
-
color: var(--cx-color-neutral);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.icon-button--circle {
|
|
382
|
-
border-radius: var(--cx-border-radius-circle);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/*
|
|
386
|
-
* Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
|
|
387
|
-
* This means buttons aren't always direct descendants of the button group, thus we can't target them with the
|
|
388
|
-
* ::slotted selector. To work around this, the button group component does some magic to add these special classes to
|
|
389
|
-
* buttons and we style them here instead.
|
|
390
|
-
*/
|
|
391
|
-
|
|
392
|
-
:host(
|
|
393
|
-
[data-cx-button-group__button--first]:not(
|
|
394
|
-
[data-cx-button-group__button--last]
|
|
395
|
-
)
|
|
396
|
-
)
|
|
397
|
-
.icon-button {
|
|
398
|
-
border-start-end-radius: 0;
|
|
399
|
-
border-end-end-radius: 0;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:host([data-cx-button-group__button--inner]) .icon-button {
|
|
403
|
-
border-radius: 0;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
:host(
|
|
407
|
-
[data-cx-button-group__button--last]:not(
|
|
408
|
-
[data-cx-button-group__button--first]
|
|
409
|
-
)
|
|
410
|
-
)
|
|
411
|
-
.icon-button {
|
|
412
|
-
border-start-start-radius: 0;
|
|
413
|
-
border-end-start-radius: 0;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* All except the first */
|
|
417
|
-
:host(
|
|
418
|
-
[data-cx-button-group__button]:not([data-cx-button-group__button--first])
|
|
419
|
-
) {
|
|
420
|
-
margin-inline-start: calc(-1 * var(--cx-input-border-width));
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/* Add a visual separator between solid buttons */
|
|
424
|
-
:host(
|
|
425
|
-
[data-cx-button-group__button]:not(
|
|
426
|
-
[data-cx-button-group__button--first],
|
|
427
|
-
[data-cx-button-group__button--radio],
|
|
428
|
-
[variant='default']
|
|
429
|
-
):not(:hover)
|
|
430
|
-
)
|
|
431
|
-
.icon-button:after {
|
|
432
|
-
content: '';
|
|
433
|
-
position: absolute;
|
|
434
|
-
top: 0;
|
|
435
|
-
inset-inline-start: 0;
|
|
436
|
-
bottom: 0;
|
|
437
|
-
border-left: solid 1px var(--group-divider-color);
|
|
438
|
-
mix-blend-mode: multiply;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
|
|
442
|
-
:host([data-cx-button-group__button--hover]) {
|
|
443
|
-
z-index: 1;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
/* Focus and checked are always on top */
|
|
447
|
-
:host([data-cx-button-group__button--focus]),
|
|
448
|
-
:host([data-cx-button-group__button][checked]) {
|
|
449
|
-
z-index: 2;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/*
|
|
453
|
-
* Badges
|
|
454
|
-
*/
|
|
455
|
-
|
|
456
|
-
.icon-button ::slotted(cx-badge) {
|
|
457
|
-
position: absolute !important;
|
|
458
|
-
top: 0 !important;
|
|
459
|
-
left: unset !important;
|
|
460
|
-
right: 0 !important;
|
|
461
|
-
translate: 50% -50%;
|
|
462
|
-
pointer-events: none;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.icon-button--rtl ::slotted(cx-badge) {
|
|
466
|
-
right: auto;
|
|
467
|
-
left: 0;
|
|
468
|
-
translate: -50% -50%;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.icon-button--small ::slotted(cx-badge) {
|
|
472
|
-
--padding: 0.1em 0.32em;
|
|
473
|
-
--font-size: var(--cx-font-size-x-small);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.icon-button--medium ::slotted(cx-badge) {
|
|
477
|
-
--font-size: var(--cx-font-size-small);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.icon-button--large ::slotted(cx-badge) {
|
|
481
|
-
--font-size: var(--cx-font-size-medium);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.icon-button--x-large ::slotted(cx-badge) {
|
|
485
|
-
--font-size: var(--cx-font-size-medium);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.icon-button__icon-container {
|
|
489
|
-
position: relative;
|
|
490
|
-
display: flex;
|
|
491
|
-
align-items: center;
|
|
492
|
-
justify-content: center;
|
|
493
|
-
width: 100%;
|
|
494
|
-
height: 100%;
|
|
495
|
-
line-height: 1;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.icon-button--loading {
|
|
499
|
-
position: relative;
|
|
500
|
-
cursor: wait;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.icon-button--loading cx-spinner {
|
|
504
|
-
--indicator-color: currentColor;
|
|
505
|
-
position: absolute;
|
|
506
|
-
font-size: calc(1em);
|
|
507
|
-
height: calc(1em);
|
|
508
|
-
width: calc(1em);
|
|
509
|
-
top: calc(50% - 0.5em);
|
|
510
|
-
left: calc(50% - 0.5em);
|
|
511
|
-
}
|
|
512
|
-
`;
|
|
513
|
-
var $ = Object.defineProperty, C = Object.getOwnPropertyDescriptor, n = (t, i, l, a) => {
|
|
514
|
-
for (var e = a > 1 ? void 0 : a ? C(i, l) : i, u = t.length - 1, s; u >= 0; u--)
|
|
515
|
-
(s = t[u]) && (e = (a ? s(i, l, e) : s(e)) || e);
|
|
516
|
-
return a && e && $(i, l, e), e;
|
|
517
|
-
};
|
|
518
|
-
let o = class extends g {
|
|
519
|
-
constructor() {
|
|
520
|
-
super(...arguments), this.localize = new h(this), this.hasFocus = !1, this.variant = "outlined", this.buttonVariant = "text", this.label = "", this.disabled = !1, this.loading = !1, this.iconClass = "", this.size = "medium", this.outline = !1, this.circle = !1;
|
|
521
|
-
}
|
|
522
|
-
connectedUpdatedCallback() {
|
|
523
|
-
this.syncStyles(), this.styleObserver = new MutationObserver(() => this.syncStyles()), this.styleObserver.observe(this, {
|
|
524
|
-
attributeFilter: ["style"],
|
|
525
|
-
attributes: !0
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
disconnectedCallback() {
|
|
529
|
-
super.disconnectedCallback(), this.styleObserver?.disconnect();
|
|
530
|
-
}
|
|
531
|
-
syncStyles() {
|
|
532
|
-
const t = this.style.fontSize;
|
|
533
|
-
t && this.button && (this.icon.style.setProperty("--font-size", t), this.button.style.fontSize = "inherit", this.style.fontSize = "");
|
|
534
|
-
}
|
|
535
|
-
handleBlur() {
|
|
536
|
-
this.hasFocus = !1, this.emit("cx-blur");
|
|
537
|
-
}
|
|
538
|
-
handleFocus() {
|
|
539
|
-
this.hasFocus = !0, this.emit("cx-focus");
|
|
540
|
-
}
|
|
541
|
-
handleClick(t) {
|
|
542
|
-
this.disabled && (t.preventDefault(), t.stopPropagation());
|
|
543
|
-
}
|
|
544
|
-
/** Simulates a click on the icon button. */
|
|
545
|
-
click() {
|
|
546
|
-
this.button.click();
|
|
547
|
-
}
|
|
548
|
-
/** Sets focus on the icon button. */
|
|
549
|
-
focus(t) {
|
|
550
|
-
this.button.focus(t);
|
|
551
|
-
}
|
|
552
|
-
/** Removes focus from the icon button. */
|
|
553
|
-
blur() {
|
|
554
|
-
this.button.blur();
|
|
555
|
-
}
|
|
556
|
-
render() {
|
|
557
|
-
const t = !!this.href, i = t ? d`a` : d`button`;
|
|
558
|
-
return b`
|
|
559
|
-
<${i}
|
|
560
|
-
part="base"
|
|
561
|
-
class=${f({
|
|
562
|
-
"icon-button": !0,
|
|
563
|
-
"icon-button--circle": this.circle,
|
|
564
|
-
"icon-button--custom": !!this.src,
|
|
565
|
-
"icon-button--danger": this.buttonVariant === "danger",
|
|
566
|
-
"icon-button--default": this.buttonVariant === "default" || this.buttonVariant === "neutral",
|
|
567
|
-
"icon-button--disabled": !t && this.disabled,
|
|
568
|
-
"icon-button--focused": this.hasFocus,
|
|
569
|
-
"icon-button--large": this.size === "large",
|
|
570
|
-
"icon-button--loading": this.loading,
|
|
571
|
-
"icon-button--medium": this.size === "medium",
|
|
572
|
-
"icon-button--outline": this.outline,
|
|
573
|
-
"icon-button--primary": this.buttonVariant === "primary",
|
|
574
|
-
"icon-button--rtl": this.localize.dir() === "rtl",
|
|
575
|
-
"icon-button--small": this.size === "small",
|
|
576
|
-
"icon-button--success": this.buttonVariant === "success",
|
|
577
|
-
"icon-button--tertiary": this.buttonVariant === "tertiary",
|
|
578
|
-
"icon-button--text": this.buttonVariant === "text",
|
|
579
|
-
"icon-button--warning": this.buttonVariant === "warning",
|
|
580
|
-
"icon-button--x-large": this.size === "x-large"
|
|
581
|
-
})}
|
|
582
|
-
?disabled=${c(t ? void 0 : this.disabled)}
|
|
583
|
-
type=${c(t ? void 0 : "button")}
|
|
584
|
-
href=${c(t ? this.href : void 0)}
|
|
585
|
-
target=${c(t ? this.target : void 0)}
|
|
586
|
-
download=${c(t ? this.download : void 0)}
|
|
587
|
-
rel=${c(
|
|
588
|
-
t && this.target ? "noreferrer noopener" : void 0
|
|
589
|
-
)}
|
|
590
|
-
role=${c(t ? void 0 : "button")}
|
|
591
|
-
aria-disabled=${this.disabled || this.loading ? "true" : "false"}
|
|
592
|
-
aria-label=${this.label}
|
|
593
|
-
tabindex=${this.disabled || this.loading ? "-1" : "0"}
|
|
594
|
-
aria-busy=${this.loading ? "true" : "false"}
|
|
595
|
-
@blur=${this.handleBlur}
|
|
596
|
-
@focus=${this.handleFocus}
|
|
597
|
-
@click=${this.handleClick}
|
|
598
|
-
>
|
|
599
|
-
<div class="icon-button__icon-container">
|
|
600
|
-
${y(
|
|
601
|
-
this.loading,
|
|
602
|
-
() => b`<cx-spinner
|
|
603
|
-
part="spinner"
|
|
604
|
-
role="status"
|
|
605
|
-
aria-live="polite"
|
|
606
|
-
></cx-spinner>`,
|
|
607
|
-
() => b`<cx-icon
|
|
608
|
-
class="icon-button__icon"
|
|
609
|
-
icon-class=${c(this.iconClass)}
|
|
610
|
-
name=${c(this.name)}
|
|
611
|
-
variant=${this.variant}
|
|
612
|
-
src=${c(this.src)}
|
|
613
|
-
aria-hidden="true"
|
|
614
|
-
part="icon"
|
|
615
|
-
></cx-icon>`
|
|
616
|
-
)}
|
|
617
|
-
<slot name="badge"></slot>
|
|
618
|
-
</div>
|
|
619
|
-
</${i}>
|
|
620
|
-
`;
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
o.styles = [p, z];
|
|
624
|
-
o.dependencies = { "cx-icon": k, "cx-spinner": w };
|
|
625
|
-
n([
|
|
626
|
-
v(".icon-button")
|
|
627
|
-
], o.prototype, "button", 2);
|
|
628
|
-
n([
|
|
629
|
-
v(".icon-button__icon")
|
|
630
|
-
], o.prototype, "icon", 2);
|
|
631
|
-
n([
|
|
632
|
-
m()
|
|
633
|
-
], o.prototype, "hasFocus", 2);
|
|
634
|
-
n([
|
|
635
|
-
r()
|
|
636
|
-
], o.prototype, "name", 2);
|
|
637
|
-
n([
|
|
638
|
-
r({ type: String })
|
|
639
|
-
], o.prototype, "variant", 2);
|
|
640
|
-
n([
|
|
641
|
-
r({ attribute: "button-variant", reflect: !0, type: String })
|
|
642
|
-
], o.prototype, "buttonVariant", 2);
|
|
643
|
-
n([
|
|
644
|
-
r()
|
|
645
|
-
], o.prototype, "src", 2);
|
|
646
|
-
n([
|
|
647
|
-
r()
|
|
648
|
-
], o.prototype, "href", 2);
|
|
649
|
-
n([
|
|
650
|
-
r()
|
|
651
|
-
], o.prototype, "target", 2);
|
|
652
|
-
n([
|
|
653
|
-
r()
|
|
654
|
-
], o.prototype, "download", 2);
|
|
655
|
-
n([
|
|
656
|
-
r()
|
|
657
|
-
], o.prototype, "label", 2);
|
|
658
|
-
n([
|
|
659
|
-
r({ reflect: !0, type: Boolean })
|
|
660
|
-
], o.prototype, "disabled", 2);
|
|
661
|
-
n([
|
|
662
|
-
r({ reflect: !0, type: Boolean })
|
|
663
|
-
], o.prototype, "loading", 2);
|
|
664
|
-
n([
|
|
665
|
-
r({ attribute: "icon-class", type: String })
|
|
666
|
-
], o.prototype, "iconClass", 2);
|
|
667
|
-
n([
|
|
668
|
-
r({ reflect: !0 })
|
|
669
|
-
], o.prototype, "size", 2);
|
|
670
|
-
n([
|
|
671
|
-
r({ reflect: !0, type: Boolean })
|
|
672
|
-
], o.prototype, "outline", 2);
|
|
673
|
-
n([
|
|
674
|
-
r({ reflect: !0, type: Boolean })
|
|
675
|
-
], o.prototype, "circle", 2);
|
|
676
|
-
o = n([
|
|
677
|
-
x("cx-icon-button")
|
|
678
|
-
], o);
|
|
1
|
+
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { C } from "../chunks/icon-button.rKe0N4VB.js";
|
|
4
|
+
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
+
import "../chunks/i18n.BFqTRDCA.js";
|
|
6
|
+
import "../chunks/state.CSDxrqLd.js";
|
|
7
|
+
import "../chunks/query.BBf1UFkC.js";
|
|
8
|
+
import "../chunks/class-map.BiVq-cVR.js";
|
|
9
|
+
import "../chunks/if-defined.BRoBj_Rp.js";
|
|
10
|
+
import "../chunks/when.Dr1es41R.js";
|
|
11
|
+
import "../chunks/static.UA3G1Deq.js";
|
|
12
|
+
import "./icon.js";
|
|
13
|
+
import "./spinner.js";
|
|
679
14
|
export {
|
|
680
|
-
|
|
15
|
+
C as default
|
|
681
16
|
};
|