@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,15 +1,15 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
3
|
-
import { C as k } from "./typography.
|
|
2
|
+
import { C as $ } from "./table.WNd284in.js";
|
|
3
|
+
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import { C, a as
|
|
6
|
-
import { c as A } from "./component.styles.
|
|
7
|
-
import { D as p } from "./
|
|
5
|
+
import { C, a as g } from "./color-swatch.2HS4bc3N.js";
|
|
6
|
+
import { c as A } from "./component.styles.CRO4Odto.js";
|
|
7
|
+
import { D as p } from "./toast.B2cJgW5u.js";
|
|
8
8
|
import { c as S } from "./custom-element.L4WJXn1j.js";
|
|
9
9
|
import { d as T } from "./debounce.DaHuiSGU.js";
|
|
10
|
-
import { L as E } from "./i18n.
|
|
11
|
-
import { w as x } from "./watch.
|
|
12
|
-
import { g as D, a as R } from "./responsive.
|
|
10
|
+
import { L as E } from "./i18n.BFqTRDCA.js";
|
|
11
|
+
import { w as x } from "./watch.BCJD77bD.js";
|
|
12
|
+
import { g as D, a as R } from "./responsive.BndCeSg0.js";
|
|
13
13
|
import { x as l, B as H, i as O } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as d } from "./state.CSDxrqLd.js";
|
|
15
15
|
import { e as P } from "./query.BBf1UFkC.js";
|
|
@@ -20,8 +20,8 @@ import { o as M } from "./if-defined.BRoBj_Rp.js";
|
|
|
20
20
|
import { c as G } from "./repeat.DbF2p5ae.js";
|
|
21
21
|
import { o as f } from "./style-map.llVFPd__.js";
|
|
22
22
|
import { n as L } from "./when.Dr1es41R.js";
|
|
23
|
-
var
|
|
24
|
-
const
|
|
23
|
+
var c = /* @__PURE__ */ ((e) => (e.Circles = "circles", e.Grid = "grid", e.Table = "table", e))(c || {});
|
|
24
|
+
const y = 165, B = ["HEX", "RGB", "CMYK", "PMS"], I = {
|
|
25
25
|
resizable: !1
|
|
26
26
|
}, _ = [
|
|
27
27
|
{
|
|
@@ -83,39 +83,22 @@ function u(e, r, t) {
|
|
|
83
83
|
const i = r.getValue() ?? "";
|
|
84
84
|
if (!i)
|
|
85
85
|
return null;
|
|
86
|
-
const s = l`
|
|
87
|
-
<cx-copy-button
|
|
88
|
-
copy-label=${e.term("clickToCopy")}
|
|
89
|
-
focus-copy-label=${e.term("pressEnterOrCtrlCToCopy")}
|
|
90
|
-
hoist
|
|
91
|
-
label=${`${t}, ${r.getField()} ${e.term("code")} ${i}. ${e.term("clickOrPressCtrlCToCopy")}`}
|
|
92
|
-
no-icon
|
|
93
|
-
tooltip-distance="0"
|
|
94
|
-
value=${i}
|
|
95
|
-
style=${f({
|
|
86
|
+
const s = l`<cx-copy-button copy-label=${e.term("clickToCopy")} focus-copy-label=${e.term("pressEnterOrCtrlCToCopy")} hoist label=${`${t}, ${r.getField()} ${e.term("code")} ${i}. ${e.term("clickOrPressCtrlCToCopy")}`} no-icon tooltip-distance="0" value=${i} style=${f({
|
|
96
87
|
"--button-background-color": "transparent",
|
|
97
88
|
"--button-font-size": "var(--cx-font-size-large)",
|
|
98
89
|
"--button-padding": "0",
|
|
99
90
|
"max-width": "100%"
|
|
100
|
-
})}
|
|
101
|
-
>
|
|
102
|
-
<span
|
|
103
|
-
style=${f({
|
|
91
|
+
})}><span style=${f({
|
|
104
92
|
display: "inline-block",
|
|
105
93
|
maxWidth: "100%",
|
|
106
94
|
overflow: "hidden",
|
|
107
95
|
textOverflow: "ellipsis",
|
|
108
96
|
verticalAlign: "middle",
|
|
109
97
|
whiteSpace: "nowrap"
|
|
110
|
-
})}
|
|
111
|
-
|
|
112
|
-
${i}
|
|
113
|
-
</span>
|
|
114
|
-
</cx-copy-button>
|
|
115
|
-
`, c = document.createDocumentFragment();
|
|
116
|
-
return H(s, c), c.firstElementChild;
|
|
98
|
+
})}>${i}</span></cx-copy-button>`, n = document.createDocumentFragment();
|
|
99
|
+
return H(s, n), n.firstElementChild;
|
|
117
100
|
}
|
|
118
|
-
const
|
|
101
|
+
const K = (e, r) => [
|
|
119
102
|
..._.slice(0, 2),
|
|
120
103
|
{
|
|
121
104
|
field: "hex",
|
|
@@ -153,106 +136,16 @@ const N = (e, r) => [
|
|
|
153
136
|
title: "PMS",
|
|
154
137
|
widthGrow: 2
|
|
155
138
|
}
|
|
156
|
-
],
|
|
157
|
-
:host {
|
|
158
|
-
--grid-gap: var(--cx-spacing-medium);
|
|
159
|
-
--padding: 0;
|
|
160
|
-
|
|
161
|
-
display: block;
|
|
162
|
-
padding: var(--cx-focus-ring-width);
|
|
163
|
-
width: 100%;
|
|
164
|
-
min-width: 0;
|
|
165
|
-
overflow: auto;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.color-swatch-group__swatches {
|
|
169
|
-
padding: var(--padding, 0);
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
max-width: 100%;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.color-swatch-group__table-container {
|
|
176
|
-
max-width: 100%;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.color-swatch-group__table-container:focus-visible {
|
|
180
|
-
outline: var(--cx-focus-ring);
|
|
181
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.color-swatch-group__swatches--circles--horizontal
|
|
185
|
-
> cx-color-swatch:not(:first-child) {
|
|
186
|
-
margin-left: var(--swatch-group-horizontal-gap, -100px);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.color-swatch-group__swatches--circles--vertical
|
|
190
|
-
> cx-color-swatch:not(:first-child) {
|
|
191
|
-
margin-top: var(--swatch-group-vertical-gap, -50px);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.color-swatch-group__swatches--circles--horizontal__item {
|
|
195
|
-
/** No padding for positive gap value - which give no overlapping */
|
|
196
|
-
--swatch-content-padding: 0
|
|
197
|
-
min(calc(var(--swatch-group-horizontal-gap, -100px) * -0.5), 0) 0 0;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.color-swatch-group__swatches--circles--vertical__item {
|
|
201
|
-
/** No padding for positive gap value - which give no overlapping */
|
|
202
|
-
--swatch-content-padding: 0 0
|
|
203
|
-
min(calc(var(--swatch-group-vertical-gap, -50px) * -0.5), 0) 0;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.color-swatch-group__swatches--circles--vertical__item--mobile {
|
|
207
|
-
--swatch-size: 100%;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.color-swatch-group__swatches--grid {
|
|
211
|
-
display: grid;
|
|
212
|
-
gap: var(--grid-gap, var(--cx-spacing-medium));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.color-swatch-group__table {
|
|
216
|
-
--body-background-color: transparent;
|
|
217
|
-
--row-background-color: transparent;
|
|
218
|
-
--row-even-background-color: transparent;
|
|
219
|
-
--row-hover-background-color: var(--cx-color-neutral-50);
|
|
220
|
-
--row-even-hover-background-color: var(--cx-color-neutral-50);
|
|
221
|
-
--header-background-color: transparent;
|
|
222
|
-
--group-row-background-color: transparent;
|
|
223
|
-
--cell-border-color: transparent;
|
|
224
|
-
--cell-bottom-border-color: transparent;
|
|
225
|
-
|
|
226
|
-
--header-font-size: var(--cx-font-size-large);
|
|
227
|
-
--header-font-weight: var(--cx-font-weight-semibold);
|
|
228
|
-
--header-border-right: none;
|
|
229
|
-
|
|
230
|
-
--cell-font-size: var(--cx-font-size-large);
|
|
231
|
-
--cell-font-weight: var(--cx-font-weight-regular);
|
|
232
|
-
--cell-line-height: 40px;
|
|
233
|
-
--cell-hover-background-color: transparent;
|
|
234
|
-
|
|
235
|
-
--placeholder-font-size: var(--cx-font-size-medium-large);
|
|
236
|
-
--cell-horizontal-padding: var(--cx-spacing-2x-small);
|
|
237
|
-
--header-horizontal-padding: var(--cx-spacing-2x-small);
|
|
238
|
-
--header-border-bottom: 1px solid var(--cx-color-neutral-200);
|
|
239
|
-
--hover-menu-background-color: var(--row-hover-background-color);
|
|
240
|
-
--outer-border-color: transparent;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.color-swatch-group__table::part(table) {
|
|
244
|
-
background-color: transparent;
|
|
245
|
-
}
|
|
246
|
-
`;
|
|
139
|
+
], N = O`:host{--grid-gap:var(--cx-spacing-medium);--padding:0;padding:var(--cx-focus-ring-width);width:100%;min-width:0;display:block;overflow:auto}.color-swatch-group__swatches{padding:var(--padding,0);width:100%;max-width:100%;height:100%}.color-swatch-group__table-container{max-width:100%}.color-swatch-group__table-container:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch-group__swatches--circles--horizontal>cx-color-swatch:not(:first-child){margin-left:var(--swatch-group-horizontal-gap,-100px)}.color-swatch-group__swatches--circles--vertical>cx-color-swatch:not(:first-child){margin-top:var(--swatch-group-vertical-gap,-50px)}.color-swatch-group__swatches--circles--horizontal__item{--swatch-content-padding:0 min(calc(var(--swatch-group-horizontal-gap,-100px) * -.5), 0) 0 0}.color-swatch-group__swatches--circles--vertical__item{--swatch-content-padding:0 0 min(calc(var(--swatch-group-vertical-gap,-50px) * -.5), 0) 0}.color-swatch-group__swatches--circles--vertical__item--mobile{--swatch-size:100%}.color-swatch-group__swatches--grid{gap:var(--grid-gap,var(--cx-spacing-medium));display:grid}.color-swatch-group__table{--body-background-color:transparent;--row-background-color:transparent;--row-even-background-color:transparent;--row-hover-background-color:var(--cx-color-neutral-50);--row-even-hover-background-color:var(--cx-color-neutral-50);--header-background-color:transparent;--group-row-background-color:transparent;--cell-border-color:transparent;--cell-bottom-border-color:transparent;--header-font-size:var(--cx-font-size-large);--header-font-weight:var(--cx-font-weight-semibold);--header-border-right:none;--cell-font-size:var(--cx-font-size-large);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:40px;--cell-hover-background-color:transparent;--placeholder-font-size:var(--cx-font-size-medium-large);--cell-horizontal-padding:var(--cx-spacing-2x-small);--header-horizontal-padding:var(--cx-spacing-2x-small);--header-border-bottom:1px solid var(--cx-color-neutral-200);--hover-menu-background-color:var(--row-hover-background-color);--outer-border-color:transparent}.color-swatch-group__table::part(table){background-color:#0000}`;
|
|
247
140
|
var U = Object.defineProperty, j = Object.getOwnPropertyDescriptor, a = (e, r, t, i) => {
|
|
248
|
-
for (var s = i > 1 ? void 0 : i ? j(r, t) : r,
|
|
249
|
-
(
|
|
141
|
+
for (var s = i > 1 ? void 0 : i ? j(r, t) : r, n = e.length - 1, m; n >= 0; n--)
|
|
142
|
+
(m = e[n]) && (s = (i ? m(r, t, s) : m(s)) || s);
|
|
250
143
|
return i && s && U(r, t, s), s;
|
|
251
144
|
};
|
|
252
|
-
const
|
|
145
|
+
const v = "unnamed";
|
|
253
146
|
let o = class extends F {
|
|
254
147
|
constructor() {
|
|
255
|
-
super(), this.localize = new E(this), this.variant =
|
|
148
|
+
super(), this.localize = new E(this), this.variant = c.Table, this.data = [], this.maxCol = 4, this.canCopy = !1, this.showCodes = ["HEX", "RGB", "CMYK", "PMS"], this.multiLanguage = !1, this.breakpoints = [350, 696, 1024], this.deviceType = p.Desktop, this.currentCol = 0, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
256
149
|
}
|
|
257
150
|
runFirstUpdated() {
|
|
258
151
|
this.breakpoints = D(this, this.breakpoints), this.handleResize();
|
|
@@ -272,16 +165,16 @@ let o = class extends F {
|
|
|
272
165
|
handleResize() {
|
|
273
166
|
const e = window.innerWidth;
|
|
274
167
|
switch (this.variant) {
|
|
275
|
-
case
|
|
168
|
+
case c.Grid: {
|
|
276
169
|
const r = Number.parseFloat(
|
|
277
170
|
getComputedStyle(this.containerEl).getPropertyValue("--grid-gap")
|
|
278
171
|
);
|
|
279
172
|
this.currentCol = Math.floor(
|
|
280
|
-
(e + r) / (
|
|
173
|
+
(e + r) / (y + r)
|
|
281
174
|
);
|
|
282
175
|
break;
|
|
283
176
|
}
|
|
284
|
-
case
|
|
177
|
+
case c.Circles: {
|
|
285
178
|
this.deviceType = R(this.breakpoints);
|
|
286
179
|
break;
|
|
287
180
|
}
|
|
@@ -304,7 +197,7 @@ let o = class extends F {
|
|
|
304
197
|
* Filter out the columns that are not in the showCodes
|
|
305
198
|
*/
|
|
306
199
|
getTableColumns(e) {
|
|
307
|
-
const r = this.canCopy ?
|
|
200
|
+
const r = this.canCopy ? K(this.localize, e) : _;
|
|
308
201
|
return [
|
|
309
202
|
...r.slice(0, 2),
|
|
310
203
|
...r.slice(2).filter(
|
|
@@ -318,7 +211,7 @@ let o = class extends F {
|
|
|
318
211
|
categorizeByPalette() {
|
|
319
212
|
return Object.values(
|
|
320
213
|
this.data.reduce((e, r) => {
|
|
321
|
-
const t = r.palette?.trim() ? r.palette :
|
|
214
|
+
const t = r.palette?.trim() ? r.palette : v;
|
|
322
215
|
return e[t] || (e[t] = { colors: [], palette: t }), e[t].colors.push(r), e;
|
|
323
216
|
}, {})
|
|
324
217
|
);
|
|
@@ -336,17 +229,17 @@ let o = class extends F {
|
|
|
336
229
|
* Get current direction of the color swatch group
|
|
337
230
|
*/
|
|
338
231
|
get currentDirection() {
|
|
339
|
-
return this.variant ===
|
|
232
|
+
return this.variant === c.Circles && this.deviceType !== p.Desktop ? "vertical" : "horizontal";
|
|
340
233
|
}
|
|
341
234
|
/**
|
|
342
235
|
* Get the variant of the color swatch
|
|
343
236
|
*/
|
|
344
237
|
get swatchVariant() {
|
|
345
238
|
switch (this.variant) {
|
|
346
|
-
case
|
|
347
|
-
return this.deviceType === p.Tablet ?
|
|
348
|
-
case
|
|
349
|
-
return
|
|
239
|
+
case c.Circles:
|
|
240
|
+
return this.deviceType === p.Tablet ? g.Oval : g.Circle;
|
|
241
|
+
case c.Grid:
|
|
242
|
+
return g.GridItem;
|
|
350
243
|
default:
|
|
351
244
|
return;
|
|
352
245
|
}
|
|
@@ -355,14 +248,8 @@ let o = class extends F {
|
|
|
355
248
|
const e = this.currentDirection, r = this.localize.lang();
|
|
356
249
|
return l`
|
|
357
250
|
${L(
|
|
358
|
-
this.variant ===
|
|
359
|
-
() => l
|
|
360
|
-
<cx-space
|
|
361
|
-
class="color-swatch-group__swatches"
|
|
362
|
-
direction="vertical"
|
|
363
|
-
spacing="2x-small"
|
|
364
|
-
>
|
|
365
|
-
${b(
|
|
251
|
+
this.variant === c.Table,
|
|
252
|
+
() => l`<cx-space class="color-swatch-group__swatches" direction="vertical" spacing="2x-small">${b(
|
|
366
253
|
[this.data, this.canCopy],
|
|
367
254
|
() => this.categorizeByPalette().map(
|
|
368
255
|
(t) => {
|
|
@@ -370,95 +257,38 @@ let o = class extends F {
|
|
|
370
257
|
...s,
|
|
371
258
|
name: s[`name-${r.toLowerCase()}`] ?? s.name
|
|
372
259
|
})) : t.colors;
|
|
373
|
-
return l
|
|
374
|
-
<div
|
|
375
|
-
tabindex=${M(
|
|
260
|
+
return l`<div tabindex=${M(
|
|
376
261
|
this.canFocusContainer ? "0" : void 0
|
|
377
|
-
)}
|
|
378
|
-
data-table-container
|
|
379
|
-
class="color-swatch-group__table-container"
|
|
380
|
-
@focusin=${this.handleFocusIn}
|
|
381
|
-
@focusout=${this.handleFocusOut}
|
|
382
|
-
@keydown=${this.handleKeyDown}
|
|
383
|
-
>
|
|
384
|
-
<cx-typography variant="h3">
|
|
385
|
-
${t.palette === y ? this.localize.term("noPalette") : this.localize.term("shadesPalette", t.palette)}
|
|
386
|
-
</cx-typography>
|
|
387
|
-
<cx-table
|
|
388
|
-
part="table"
|
|
389
|
-
tabindex=${this.isFocused ? void 0 : "-1"}
|
|
390
|
-
no-selectable
|
|
391
|
-
layout="fitColumns"
|
|
392
|
-
.columns=${b(
|
|
262
|
+
)} data-table-container class="color-swatch-group__table-container" @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.handleKeyDown}><cx-typography variant="h3">${t.palette === v ? this.localize.term("noPalette") : this.localize.term("shadesPalette", t.palette)}</cx-typography><cx-table part="table" tabindex=${this.isFocused ? void 0 : "-1"} no-selectable layout="fitColumns" .columns=${b(
|
|
393
263
|
[this.showCodes, this.canCopy, this.localize],
|
|
394
264
|
() => this.getTableColumns(t.palette)
|
|
395
|
-
)}
|
|
396
|
-
.columnDefaults=${I}
|
|
397
|
-
.rowHeight=${48}
|
|
398
|
-
.data=${i}
|
|
399
|
-
class="color-swatch-group__table"
|
|
400
|
-
></cx-table>
|
|
401
|
-
</div>
|
|
402
|
-
`;
|
|
265
|
+
)} .columnDefaults=${I} .rowHeight=${48} .data=${i} class="color-swatch-group__table"></cx-table></div>`;
|
|
403
266
|
}
|
|
404
267
|
)
|
|
405
|
-
)}
|
|
406
|
-
|
|
407
|
-
`,
|
|
408
|
-
() => l`
|
|
409
|
-
<cx-space
|
|
410
|
-
part="color-swatch"
|
|
411
|
-
role="list"
|
|
412
|
-
aria-label=${this.localize.term("listOfColors")}
|
|
413
|
-
aria-roledescription=${this.localize.term("listOfColors")}
|
|
414
|
-
direction=${e}
|
|
415
|
-
justify-content="flex-start"
|
|
416
|
-
wrap=${this.variant === "circles" ? "nowrap" : "wrap"}
|
|
417
|
-
class=${w({
|
|
268
|
+
)}</cx-space>`,
|
|
269
|
+
() => l`<cx-space part="color-swatch" role="list" aria-label=${this.localize.term("listOfColors")} aria-roledescription=${this.localize.term("listOfColors")} direction=${e} justify-content="flex-start" wrap=${this.variant === "circles" ? "nowrap" : "wrap"} class=${w({
|
|
418
270
|
"color-swatch-group__swatches": !0,
|
|
419
|
-
"color-swatch-group__swatches--grid": this.variant ===
|
|
420
|
-
[`color-swatch-group__swatches--circles--${e}`]: this.variant ===
|
|
421
|
-
})}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
})}
|
|
425
|
-
>
|
|
426
|
-
${G(
|
|
271
|
+
"color-swatch-group__swatches--grid": this.variant === c.Grid,
|
|
272
|
+
[`color-swatch-group__swatches--circles--${e}`]: this.variant === c.Circles
|
|
273
|
+
})} style=${f({
|
|
274
|
+
gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : `repeat(auto-fit, minmax(${y}px, 1fr))`
|
|
275
|
+
})}>${G(
|
|
427
276
|
this.data,
|
|
428
277
|
(t) => t.name,
|
|
429
|
-
(t, i) => l`<cx-color-swatch
|
|
430
|
-
part="color-swatch-item"
|
|
431
|
-
role="listitem"
|
|
432
|
-
aria-label=${this.localize.term(
|
|
278
|
+
(t, i) => l`<cx-color-swatch part="color-swatch-item" role="listitem" aria-label=${this.localize.term(
|
|
433
279
|
"colorOfTotal",
|
|
434
280
|
i + 1,
|
|
435
281
|
this.data.length
|
|
436
|
-
)}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
name=${this.multiLanguage && r ? t[`name-${r.toLowerCase()}`] ?? t.name : t.name}
|
|
442
|
-
variant=${this.swatchVariant}
|
|
443
|
-
?can-copy=${this.canCopy}
|
|
444
|
-
?can-focus-code-only=${this.isFocused}
|
|
445
|
-
.showCodes=${this.showCodes}
|
|
446
|
-
no-auto-convert
|
|
447
|
-
class=${w({
|
|
448
|
-
[`color-swatch-group__swatches--circles--${e}__item`]: this.variant === n.Circles,
|
|
449
|
-
"color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === n.Circles && this.deviceType === p.Mobile
|
|
450
|
-
})}
|
|
451
|
-
@keydown=${this.handleKeyDown}
|
|
452
|
-
@focusout=${this.handleFocusOut}
|
|
453
|
-
></cx-color-swatch>`
|
|
454
|
-
)}
|
|
455
|
-
</cx-space>
|
|
456
|
-
`
|
|
282
|
+
)} hex=${t.hex} rgb=${t.rgb} cmyk=${t.cmyk} pms=${t.pms} name=${this.multiLanguage && r ? t[`name-${r.toLowerCase()}`] ?? t.name : t.name} variant=${this.swatchVariant} ?can-copy=${this.canCopy} ?can-focus-code-only=${this.isFocused} .showCodes=${this.showCodes} no-auto-convert class=${w({
|
|
283
|
+
[`color-swatch-group__swatches--circles--${e}__item`]: this.variant === c.Circles,
|
|
284
|
+
"color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === c.Circles && this.deviceType === p.Mobile
|
|
285
|
+
})} @keydown=${this.handleKeyDown} @focusout=${this.handleFocusOut}></cx-color-swatch>`
|
|
286
|
+
)}</cx-space>`
|
|
457
287
|
)}
|
|
458
288
|
`;
|
|
459
289
|
}
|
|
460
290
|
};
|
|
461
|
-
o.styles = [A,
|
|
291
|
+
o.styles = [A, N];
|
|
462
292
|
o.dependencies = {
|
|
463
293
|
"cx-color-swatch": C,
|
|
464
294
|
"cx-space": z,
|
|
@@ -528,5 +358,5 @@ o = a([
|
|
|
528
358
|
], o);
|
|
529
359
|
export {
|
|
530
360
|
o as C,
|
|
531
|
-
|
|
361
|
+
c as a
|
|
532
362
|
};
|
|
@@ -2,14 +2,14 @@ import v from "../components/copy-button.js";
|
|
|
2
2
|
import f from "../components/line-clamp.js";
|
|
3
3
|
import w from "../components/resize-observer.js";
|
|
4
4
|
import b from "../components/space.js";
|
|
5
|
-
import { C as _ } from "./typography.
|
|
5
|
+
import { C as _ } from "./typography.DJC_UXgs.js";
|
|
6
6
|
import { n as a, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
7
|
-
import { c as F } from "./component.styles.
|
|
7
|
+
import { c as F } from "./component.styles.CRO4Odto.js";
|
|
8
8
|
import { c as n, C as h, H as $, l as z } from "./color.vLD2sNTs.js";
|
|
9
9
|
import { c as O } from "./custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as W } from "./debounce.DaHuiSGU.js";
|
|
11
|
-
import { L as A } from "./i18n.
|
|
12
|
-
import { w as i } from "./watch.
|
|
11
|
+
import { L as A } from "./i18n.BFqTRDCA.js";
|
|
12
|
+
import { w as i } from "./watch.BCJD77bD.js";
|
|
13
13
|
import { i as G, x as u } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as c } from "./state.CSDxrqLd.js";
|
|
15
15
|
import { e as R } from "./query.BBf1UFkC.js";
|
|
@@ -19,102 +19,7 @@ import { c as U } from "./repeat.DbF2p5ae.js";
|
|
|
19
19
|
import { o as l } from "./style-map.llVFPd__.js";
|
|
20
20
|
import { n as E } from "./when.Dr1es41R.js";
|
|
21
21
|
var p = /* @__PURE__ */ ((o) => (o.Circle = "circle", o.GridItem = "grid-item", o.Oval = "oval", o))(p || {});
|
|
22
|
-
const S = G
|
|
23
|
-
:host {
|
|
24
|
-
display: block;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.color-swatch {
|
|
28
|
-
border: 1px solid var(--cx-color-neutral-200);
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.color-swatch:focus-visible {
|
|
35
|
-
outline: var(--cx-focus-ring);
|
|
36
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.color-swatch--circle {
|
|
40
|
-
aspect-ratio: 1 / 1;
|
|
41
|
-
height: auto;
|
|
42
|
-
width: var(--swatch-size, 350px);
|
|
43
|
-
min-width: var(--swatch-size, 230px);
|
|
44
|
-
max-width: 100%;
|
|
45
|
-
border-radius: var(--cx-border-radius-circle);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.color-swatch--oval {
|
|
49
|
-
height: var(--swatch-size, 350px);
|
|
50
|
-
width: 100%;
|
|
51
|
-
border-radius: calc(var(--swatch-size, 350px) / 2);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.color-swatch--grid {
|
|
55
|
-
width: 100%;
|
|
56
|
-
height: var(--swatch-size, 300px);
|
|
57
|
-
min-width: var(--swatch-grid-min-width, 165px);
|
|
58
|
-
border-radius: var(--cx-border-radius-x-large);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.color-swatch__content {
|
|
62
|
-
max-height: 100%;
|
|
63
|
-
padding: var(--swatch-content-padding, 0);
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
gap: var(--cx-spacing-medium);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.color-swatch--circle > .color-swatch__content {
|
|
69
|
-
max-width: 75%;
|
|
70
|
-
min-width: 50%;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.color-swatch--oval > .color-swatch__content {
|
|
74
|
-
max-width: 85%;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.color-swatch--grid > .color-swatch__content {
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
padding: var(--cx-spacing-large) var(--cx-spacing-medium);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.color-swatch__key::part(base) {
|
|
84
|
-
min-width: 50px;
|
|
85
|
-
height: 100%;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.color-swatch__key[variant='small']::part(base) {
|
|
90
|
-
display: inline-block;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.color-swatch__copy-button::part(button) {
|
|
94
|
-
min-height: fit-content;
|
|
95
|
-
height: fit-content;
|
|
96
|
-
border-width: 0 !important;
|
|
97
|
-
background: transparent !important;
|
|
98
|
-
padding: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.color-swatch__copy-button::part(label) {
|
|
102
|
-
height: fit-content;
|
|
103
|
-
padding: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.color-swatch__value {
|
|
107
|
-
text-transform: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.color-swatch__value::part(base) {
|
|
111
|
-
word-break: break-word;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.color-swatch__value-wrapper {
|
|
115
|
-
text-align: left;
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
22
|
+
const S = G`:host{display:block}.color-swatch{border:1px solid var(--cx-color-neutral-200);justify-content:center;align-items:center;display:flex}.color-swatch:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch--circle{aspect-ratio:1;height:auto;width:var(--swatch-size,350px);min-width:var(--swatch-size,230px);border-radius:var(--cx-border-radius-circle);max-width:100%}.color-swatch--oval{height:var(--swatch-size,350px);border-radius:calc(var(--swatch-size,350px) / 2);width:100%}.color-swatch--grid{width:100%;height:var(--swatch-size,300px);min-width:var(--swatch-grid-min-width,165px);border-radius:var(--cx-border-radius-x-large)}.color-swatch__content{max-height:100%;padding:var(--swatch-content-padding,0);justify-content:space-between;gap:var(--cx-spacing-medium)}.color-swatch--circle>.color-swatch__content{min-width:50%;max-width:75%}.color-swatch--oval>.color-swatch__content{max-width:85%}.color-swatch--grid>.color-swatch__content{width:100%;height:100%;padding:var(--cx-spacing-large) var(--cx-spacing-medium)}.color-swatch__key::part(base){vertical-align:middle;min-width:50px;height:100%}.color-swatch__key[variant=small]::part(base){display:inline-block}.color-swatch__copy-button::part(button){height:fit-content;min-height:fit-content;padding:0;background:0 0!important;border-width:0!important}.color-swatch__copy-button::part(label){height:fit-content;padding:0}.color-swatch__value{text-transform:none}.color-swatch__value::part(base){word-break:break-word}.color-swatch__value-wrapper{text-align:left}`;
|
|
118
23
|
var V = Object.defineProperty, B = Object.getOwnPropertyDescriptor, e = (o, r, y, d) => {
|
|
119
24
|
for (var s = d > 1 ? void 0 : d ? B(r, y) : r, C = o.length - 1, m; C >= 0; C--)
|
|
120
25
|
(m = o[C]) && (s = (d ? m(r, y, s) : m(s)) || s);
|
|
@@ -186,125 +91,36 @@ let t = class extends k {
|
|
|
186
91
|
{ key: "CMYK", value: this.cmyk },
|
|
187
92
|
{ key: "PMS", value: this.pms }
|
|
188
93
|
].filter((r) => this.showCodes.includes(r.key));
|
|
189
|
-
return u
|
|
190
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
191
|
-
<div
|
|
192
|
-
part="base"
|
|
193
|
-
tabindex=${x(this.canFocusContainer ? "0" : void 0)}
|
|
194
|
-
class=${g({
|
|
94
|
+
return u`<cx-resize-observer @cx-resize=${this.handleResize}><div part="base" tabindex=${x(this.canFocusContainer ? "0" : void 0)} class=${g({
|
|
195
95
|
"color-swatch": !0,
|
|
196
96
|
"color-swatch--circle": this.variant === p.Circle,
|
|
197
97
|
"color-swatch--grid": this.variant === p.GridItem,
|
|
198
98
|
"color-swatch--oval": this.variant === p.Oval
|
|
199
|
-
})}
|
|
200
|
-
style=${l({
|
|
99
|
+
})} style=${l({
|
|
201
100
|
backgroundColor: this.backgroundColor
|
|
202
|
-
})}
|
|
203
|
-
@focusin=${this.handleFocusIn}
|
|
204
|
-
@focusout=${this.handleFocusOut}
|
|
205
|
-
>
|
|
206
|
-
<cx-space
|
|
207
|
-
part="content"
|
|
208
|
-
direction="vertical"
|
|
209
|
-
class="color-swatch__content"
|
|
210
|
-
>
|
|
211
|
-
<cx-typography
|
|
212
|
-
variant="h5"
|
|
213
|
-
part="name"
|
|
214
|
-
style=${l({
|
|
101
|
+
})} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut}><cx-space part="content" direction="vertical" class="color-swatch__content"><cx-typography variant="h5" part="name" style=${l({
|
|
215
102
|
"--color": this.textColor
|
|
216
|
-
})}
|
|
217
|
-
>
|
|
218
|
-
${this.name}
|
|
219
|
-
</cx-typography>
|
|
220
|
-
<cx-space
|
|
221
|
-
direction="vertical"
|
|
222
|
-
spacing=${this.rowGap}
|
|
223
|
-
part="content"
|
|
224
|
-
>
|
|
225
|
-
${U(
|
|
103
|
+
})}>${this.name}</cx-typography><cx-space direction="vertical" spacing=${this.rowGap} part="content">${U(
|
|
226
104
|
o,
|
|
227
105
|
(r) => r.key,
|
|
228
|
-
(r) => u`<cx-space
|
|
229
|
-
direction="horizontal"
|
|
230
|
-
align-items="center"
|
|
231
|
-
spacing="small"
|
|
232
|
-
part="item"
|
|
233
|
-
wrap="nowrap"
|
|
234
|
-
>
|
|
235
|
-
<cx-typography
|
|
236
|
-
variant=${this.textVariant}
|
|
237
|
-
class="color-swatch__key"
|
|
238
|
-
part="key"
|
|
239
|
-
style=${l({
|
|
106
|
+
(r) => u`<cx-space direction="horizontal" align-items="center" spacing="small" part="item" wrap="nowrap"><cx-typography variant=${this.textVariant} class="color-swatch__key" part="key" style=${l({
|
|
240
107
|
"--color": this.textColor
|
|
241
|
-
})}
|
|
242
|
-
>
|
|
243
|
-
${r.key}
|
|
244
|
-
</cx-typography>
|
|
245
|
-
${E(
|
|
108
|
+
})}>${r.key}</cx-typography>${E(
|
|
246
109
|
this.canCopy && r.value !== "",
|
|
247
|
-
() => u
|
|
248
|
-
<cx-copy-button
|
|
249
|
-
part="copy-button"
|
|
250
|
-
tabindex=${x(
|
|
110
|
+
() => u`<cx-copy-button part="copy-button" tabindex=${x(
|
|
251
111
|
this.canFocusCodeOnly ? void 0 : "-1"
|
|
252
|
-
)}
|
|
253
|
-
class="color-swatch__copy-button"
|
|
254
|
-
copy-label=${this.localize.term("clickToCopy")}
|
|
255
|
-
focus-copy-label=${this.localize.term(
|
|
112
|
+
)} class="color-swatch__copy-button" copy-label=${this.localize.term("clickToCopy")} focus-copy-label=${this.localize.term(
|
|
256
113
|
"pressEnterOrCtrlCToCopy"
|
|
257
|
-
)}
|
|
258
|
-
label=${`${r.key} ${r.value}`}
|
|
259
|
-
no-icon
|
|
260
|
-
value=${r.value}
|
|
261
|
-
>
|
|
262
|
-
<cx-line-clamp
|
|
263
|
-
lines=${this.lineClamp}
|
|
264
|
-
disabled-tooltip
|
|
265
|
-
class=${g({
|
|
114
|
+
)} label=${`${r.key} ${r.value}`} no-icon value=${r.value}><cx-line-clamp lines=${this.lineClamp} disabled-tooltip class=${g({
|
|
266
115
|
"color-swatch__value-wrapper": !0
|
|
267
|
-
})}
|
|
268
|
-
>
|
|
269
|
-
<cx-typography
|
|
270
|
-
variant=${this.textVariant}
|
|
271
|
-
style=${l({
|
|
116
|
+
})}><cx-typography variant=${this.textVariant} style=${l({
|
|
272
117
|
"--color": this.textColor
|
|
273
|
-
})}
|
|
274
|
-
|
|
275
|
-
part="value"
|
|
276
|
-
>
|
|
277
|
-
${r.value}
|
|
278
|
-
</cx-typography>
|
|
279
|
-
</cx-line-clamp>
|
|
280
|
-
</cx-copy-button>
|
|
281
|
-
`,
|
|
282
|
-
() => u`
|
|
283
|
-
<cx-line-clamp
|
|
284
|
-
lines=${this.lineClamp}
|
|
285
|
-
disabled-tooltip
|
|
286
|
-
class="color-swatch__value-wrapper"
|
|
287
|
-
>
|
|
288
|
-
<cx-typography
|
|
289
|
-
variant=${this.textVariant}
|
|
290
|
-
style=${l({
|
|
118
|
+
})} class="color-swatch__value" part="value">${r.value}</cx-typography></cx-line-clamp></cx-copy-button>`,
|
|
119
|
+
() => u`<cx-line-clamp lines=${this.lineClamp} disabled-tooltip class="color-swatch__value-wrapper"><cx-typography variant=${this.textVariant} style=${l({
|
|
291
120
|
"--color": this.textColor
|
|
292
|
-
})}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
>
|
|
296
|
-
${r.value}
|
|
297
|
-
</cx-typography>
|
|
298
|
-
</cx-line-clamp>
|
|
299
|
-
`
|
|
300
|
-
)}
|
|
301
|
-
</cx-space>`
|
|
302
|
-
)}
|
|
303
|
-
</cx-space>
|
|
304
|
-
</cx-space>
|
|
305
|
-
</div>
|
|
306
|
-
</cx-resize-observer>
|
|
307
|
-
`;
|
|
121
|
+
})} class="color-swatch__value" part="value">${r.value}</cx-typography></cx-line-clamp>`
|
|
122
|
+
)}</cx-space>`
|
|
123
|
+
)}</cx-space></cx-space></div></cx-resize-observer>`;
|
|
308
124
|
}
|
|
309
125
|
};
|
|
310
126
|
t.styles = [F, S];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as L, q as i, R as m, d as s, x as c, H as A, C as h, w as g, L as R, T, B as y, G as _, b, s as G, c as S, a as x, f as p, bx as D, by as P } from "./am-chart.
|
|
2
|
-
import { L as k } from "./LinearGradient.
|
|
3
|
-
import { C as M } from "./Circle.
|
|
4
|
-
import { E as H } from "./EditableLabel.
|
|
5
|
-
import { S as B } from "./Slider.
|
|
1
|
+
import { D as L, q as i, R as m, d as s, x as c, H as A, C as h, w as g, L as R, T, B as y, G as _, b, s as G, c as S, a as x, f as p, bx as D, by as P } from "./am-chart.H2jnOzFc.js";
|
|
2
|
+
import { L as k } from "./LinearGradient.B1z9AGUt.js";
|
|
3
|
+
import { C as M } from "./Circle.DBa5Ok8V.js";
|
|
4
|
+
import { E as H } from "./EditableLabel.BWeq6fgX.js";
|
|
5
|
+
import { S as B } from "./Slider.C20No2z5.js";
|
|
6
6
|
class O extends L {
|
|
7
7
|
setupDefaultRules() {
|
|
8
8
|
super.setupDefaultRules();
|