@orangelogic/design-system-react 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/3d-viewer.css +3 -0
- package/dist/3d-viewer.js +14 -14
- package/dist/action-overflow.css +3 -0
- package/dist/action-overflow.js +11 -11
- package/dist/alert.css +3 -0
- package/dist/alert.js +5 -5
- package/dist/am-chart.js +2 -2
- package/dist/animated-image.css +3 -0
- package/dist/animated-image.js +3 -3
- package/dist/annotator.css +3 -0
- package/dist/annotator.js +12 -12
- package/dist/array-line-clamp.css +3 -0
- package/dist/array-line-clamp.js +11 -11
- package/dist/asset-data-display.css +3 -0
- package/dist/asset-data-display.js +9 -9
- package/dist/asset-format-picker.css +3 -0
- package/dist/asset-format-picker.js +10 -10
- package/dist/asset-picker.css +3 -0
- package/dist/asset-picker.js +10 -10
- package/dist/assets/fonts/fontawesome.css +2 -0
- package/dist/assets/fonts/material-symbols/material-symbols-outlined-core.woff2 +0 -0
- package/dist/assets/fonts/material-symbols-outlined-core.css +2 -0
- package/dist/assets/fonts/material-symbols-outlined.css +2 -0
- package/dist/assets/fonts/material-symbols-rounded.css +2 -0
- package/dist/assets/fonts/material-symbols-sharp.css +2 -0
- package/dist/audio.css +3 -0
- package/dist/audio.js +5 -5
- package/dist/avatar.css +3 -0
- package/dist/avatar.js +3 -3
- package/dist/bicolor-picker.css +3 -0
- package/dist/bicolor-picker.js +20 -20
- package/dist/border-input-group.css +3 -0
- package/dist/border-input-group.js +21 -21
- package/dist/breadcrumb.css +3 -0
- package/dist/breadcrumb.js +3 -3
- package/dist/button.css +3 -0
- package/dist/button.js +4 -4
- package/dist/checkbox.css +3 -0
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{BookReader-ZTOHK7DI.js → BookReader-6ZM4Y2Z6.js} +7 -7
- package/dist/chunks/{BookReader-ZFBERPGE.css → BookReader-DMA2233M.css} +4 -1
- package/dist/chunks/{GraphView-MJYFGDTP.js → GraphView-JJK2TJUP.js} +15 -15
- package/dist/chunks/{GraphView-7T4FYJIW.css → GraphView-XIVASOEO.css} +4 -1
- package/dist/chunks/{chunk-E4OPENJE.js → chunk-2JMYD3G2.js} +7 -7
- package/dist/chunks/{chunk-SKC6QJWO.js → chunk-3PXNXU2W.js} +1 -1
- package/dist/chunks/{chunk-7JFBFMDZ.js → chunk-3W2G7C7R.js} +2 -2
- package/dist/chunks/{chunk-ZYBSBH3V.js → chunk-3XSIYTL5.js} +8 -8
- package/dist/chunks/{chunk-MCNWR3KE.js → chunk-47QZBIFP.js} +3 -3
- package/dist/chunks/{chunk-GQXUNJBB.js → chunk-4JG5JUIF.js} +12 -12
- package/dist/chunks/{chunk-R7D47BIC.js → chunk-545OYVA2.js} +3 -3
- package/dist/chunks/{chunk-RM7ZEMLV.js → chunk-5D3M4MQP.js} +6 -6
- package/dist/chunks/{chunk-XZRPOD7F.js → chunk-5FMO7VJG.js} +2 -2
- package/dist/chunks/{chunk-BELS34M2.js → chunk-5FXTAXJB.js} +6 -6
- package/dist/chunks/{chunk-QJCBANJ6.js → chunk-5I4SWPEV.js} +3 -3
- package/dist/chunks/{chunk-UMAMKCS5.js → chunk-6SB2GAU2.js} +1 -1
- package/dist/chunks/{chunk-C7OLSU3A.js → chunk-6UFUOG23.js} +3 -3
- package/dist/chunks/{chunk-ME4SJXT2.js → chunk-7HG6FX64.js} +3 -3
- package/dist/chunks/{chunk-PJB4OW4R.js → chunk-7LWRDOOV.js} +4 -4
- package/dist/chunks/{chunk-63QUAHDX.js → chunk-7PYVMAD5.js} +6 -6
- package/dist/chunks/{chunk-GS5L5HBJ.js → chunk-7TSF5MHG.js} +1 -1
- package/dist/chunks/{chunk-TOW2XL5W.js → chunk-7YZW3PFZ.js} +10 -10
- package/dist/chunks/{chunk-HGGB2W6X.js → chunk-AAP47S77.js} +3 -3
- package/dist/chunks/{chunk-PQPWADPX.js → chunk-AHEQSW5V.js} +12 -12
- package/dist/chunks/{chunk-QBYRSEE5.js → chunk-AL7CNX64.js} +1 -1
- package/dist/chunks/{chunk-I5LVNHPI.js → chunk-BILL4L45.js} +2 -2
- package/dist/chunks/{chunk-WUGHMMZW.js → chunk-BLA6A2KU.js} +1 -1
- package/dist/chunks/{chunk-QJ6KE4G6.js → chunk-BNQYFFU3.js} +1 -1
- package/dist/chunks/{chunk-KB6V3MZU.js → chunk-CMQK3TLH.js} +4 -4
- package/dist/chunks/{chunk-B3OXD7TM.js → chunk-DUR4FFHN.js} +2 -2
- package/dist/chunks/{chunk-Y34Q3MEJ.js → chunk-DYRBJQ3G.js} +2 -2
- package/dist/chunks/{chunk-WXBJ53DU.js → chunk-EOLVAFHQ.js} +1 -1
- package/dist/chunks/{chunk-R7VZGE6I.js → chunk-EYXFTBXJ.js} +1 -1
- package/dist/chunks/{chunk-SVNHTOGU.js → chunk-EZMEIYUK.js} +3 -3
- package/dist/chunks/{chunk-DVAROGKN.js → chunk-G4NSZGSJ.js} +3 -3
- package/dist/chunks/{chunk-XK2K54PW.js → chunk-GD7SZUVC.js} +3 -3
- package/dist/chunks/{chunk-WWUMOU6A.js → chunk-GFH7MCBY.js} +25 -23
- package/dist/chunks/{chunk-IDKNW3YW.js → chunk-GORDZMMK.js} +1 -1
- package/dist/chunks/{chunk-TY3EZMCS.js → chunk-GP3SDN7R.js} +3 -3
- package/dist/chunks/{chunk-UQOUWFV2.js → chunk-H7GHAUDZ.js} +4 -4
- package/dist/chunks/{chunk-6EZDGUA5.js → chunk-IJQIHMR4.js} +1 -1
- package/dist/chunks/{chunk-PKJBYJ4J.js → chunk-IPU5HNEG.js} +14 -14
- package/dist/chunks/{chunk-AQBKT7U3.js → chunk-IZLKLRA7.js} +3 -3
- package/dist/chunks/{chunk-WHZB2ZIL.js → chunk-J34KEUYL.js} +12 -12
- package/dist/chunks/{chunk-MB76ZWNE.js → chunk-JEV45G2O.js} +3 -3
- package/dist/chunks/{chunk-YM5WCRQY.js → chunk-JIKG4IV6.js} +3 -3
- package/dist/chunks/{chunk-KMXB6NN3.js → chunk-JJ4G3G5H.js} +1 -1
- package/dist/chunks/{chunk-KZDEKWLR.js → chunk-JPNKN7MO.js} +2 -2
- package/dist/chunks/{chunk-K75ZUXVI.js → chunk-K4C4BWSJ.js} +2 -2
- package/dist/chunks/{chunk-MOB76J5Y.js → chunk-K7C4WP6M.js} +1 -1
- package/dist/chunks/{chunk-ABST4SVI.js → chunk-KFVMXXAD.js} +3 -3
- package/dist/chunks/{chunk-I4HS5BRP.js → chunk-KHVYFV42.js} +4 -4
- package/dist/chunks/{chunk-OFFAQKKC.js → chunk-KIXYQHDN.js} +2 -2
- package/dist/chunks/{chunk-4NRCDSCX.js → chunk-KMUC57YN.js} +5 -5
- package/dist/chunks/{chunk-IQZNY4KS.js → chunk-KNJASTHS.js} +8 -8
- package/dist/chunks/{chunk-EKAACNO4.js → chunk-KQAEECUV.js} +1 -1
- package/dist/chunks/{chunk-ZYUZFQXR.js → chunk-KQO5MOJZ.js} +11 -11
- package/dist/chunks/{chunk-NYL5NECJ.js → chunk-KTFQGZ5N.js} +2 -2
- package/dist/chunks/{chunk-B3XNCYIY.js → chunk-KZMIV4C7.js} +3 -3
- package/dist/chunks/{chunk-UMDE3S7Y.js → chunk-KZSYVD7T.js} +5 -5
- package/dist/chunks/{chunk-KA6ME27K.js → chunk-LJAUCGZD.js} +4 -4
- package/dist/chunks/{chunk-QLC6NQYU.js → chunk-LO2A2WBZ.js} +3 -3
- package/dist/chunks/{chunk-DAZP4MUE.js → chunk-LUJ6HV2K.js} +13 -13
- package/dist/chunks/{chunk-CGL3EAG4.js → chunk-M3R23DFI.js} +2 -2
- package/dist/chunks/{chunk-HFQTTQ6G.js → chunk-M7SX2VRX.js} +4 -4
- package/dist/chunks/{chunk-BO3R4KXK.js → chunk-N6VDSUZU.js} +2 -2
- package/dist/chunks/{chunk-BXI62OCM.js → chunk-NOIO6CO4.js} +2 -2
- package/dist/chunks/{chunk-CAHWSGIZ.js → chunk-NYZHHEAS.js} +4 -4
- package/dist/chunks/{chunk-CAIFRWSY.js → chunk-O2E2DCH3.js} +1 -1
- package/dist/chunks/{chunk-RM573WIA.js → chunk-O3P4224X.js} +1 -1
- package/dist/chunks/{chunk-6TIPGIW5.js → chunk-OFTQ2L3H.js} +2 -2
- package/dist/chunks/{chunk-HBNQIDJW.js → chunk-OM2W5TDU.js} +1 -1
- package/dist/chunks/{chunk-5JDAJ7ON.js → chunk-OTBWFOG7.js} +5 -5
- package/dist/chunks/{chunk-FN3JQCBY.js → chunk-OU5MMF5U.js} +1 -1
- package/dist/chunks/{chunk-FA23AVNE.js → chunk-OWISGMW5.js} +1 -1
- package/dist/chunks/{chunk-L3MZWYTL.js → chunk-OXVEJR55.js} +1 -1
- package/dist/chunks/{chunk-HVKX4VLJ.js → chunk-PECPHH7O.js} +1 -1
- package/dist/chunks/{chunk-VUEEJJT3.js → chunk-PHBQQW4M.js} +7 -7
- package/dist/chunks/{chunk-XCUVSEYU.js → chunk-PPFEHEGU.js} +3 -3
- package/dist/chunks/{chunk-Z4SSSMV7.js → chunk-PXK2AN7T.js} +7 -7
- package/dist/chunks/{chunk-RGBI26UC.js → chunk-PYPSM56W.js} +1 -1
- package/dist/chunks/{chunk-UJ6TN5NN.js → chunk-QEIYDZXY.js} +1 -1
- package/dist/chunks/{chunk-TM74Q6Q3.js → chunk-QJE4DIJU.js} +5 -5
- package/dist/chunks/{chunk-4ZYE5QQT.js → chunk-QZLYQC4B.js} +6 -6
- package/dist/chunks/{chunk-EMDSY7ZS.js → chunk-R4SXR3AG.js} +6 -6
- package/dist/chunks/{chunk-HB3AO7A7.js → chunk-RFPUO7LE.js} +5 -5
- package/dist/chunks/{chunk-ZC2RUONP.js → chunk-S23E5PDO.js} +1 -1
- package/dist/chunks/{chunk-UQNXQXCI.js → chunk-SFXOKZNZ.js} +7 -7
- package/dist/chunks/chunk-SJAMEE5J.js +139 -0
- package/dist/chunks/{chunk-FWZYJ75E.js → chunk-SQDHD5J4.js} +1 -1
- package/dist/chunks/{chunk-TLBDYFVD.js → chunk-ST5ZYIRQ.js} +2 -2
- package/dist/chunks/{chunk-RSOA7Q2T.js → chunk-TLFYKSCI.js} +2 -2
- package/dist/chunks/{chunk-G3GPQCXZ.js → chunk-TMFWLCJ5.js} +3 -3
- package/dist/chunks/{chunk-4VPDUKR2.js → chunk-TRJ37OLL.js} +2 -2
- package/dist/chunks/{chunk-EM26XET2.js → chunk-TXESPPRC.js} +3 -3
- package/dist/chunks/{chunk-MSHSS6PI.js → chunk-UJYTGKQW.js} +4 -4
- package/dist/chunks/{chunk-ZHH75HH5.js → chunk-URERTALC.js} +1 -1
- package/dist/chunks/{chunk-FSUCXGLQ.js → chunk-WA4H4IXN.js} +1 -1
- package/dist/chunks/{chunk-IIBYHCO2.js → chunk-WK6GU2EX.js} +3 -3
- package/dist/chunks/{chunk-GGIND2RV.js → chunk-WOQ65PA5.js} +3 -3
- package/dist/chunks/{chunk-EAEVNIIM.js → chunk-WQHHESDD.js} +4 -4
- package/dist/chunks/{chunk-4ZBY7ZU3.js → chunk-WSU5KT62.js} +4 -4
- package/dist/chunks/{chunk-7TJT4ZJY.js → chunk-X636FDOY.js} +1 -1
- package/dist/chunks/{chunk-23YZQNHU.js → chunk-X7OJJ7Y7.js} +1 -1
- package/dist/chunks/{chunk-B54MXCBZ.js → chunk-XUO2U6W4.js} +2 -2
- package/dist/chunks/{chunk-5YKD6ERQ.js → chunk-XVFXPPFZ.js} +1 -1
- package/dist/chunks/{chunk-GRS7YTQR.js → chunk-Y7DTJRRL.js} +2 -2
- package/dist/chunks/{chunk-A5DFZHG3.js → chunk-YAW4WTVD.js} +3 -3
- package/dist/chunks/{chunk-KQPCNQFG.js → chunk-YHCOY32B.js} +2 -2
- package/dist/chunks/{chunk-GY6PJ7F5.js → chunk-YX6APMO2.js} +5 -5
- package/dist/chunks/{chunk-WJBOMZXG.js → chunk-YYZXO5EJ.js} +3 -3
- package/dist/chunks/{chunk-236FU3L7.js → chunk-Z43JQVIG.js} +5 -5
- package/dist/chunks/{chunk-J5URSEIZ.js → chunk-ZV6U7B3T.js} +6 -6
- package/dist/color-picker.css +3 -0
- package/dist/color-picker.js +19 -19
- package/dist/color-swatch.css +3 -0
- package/dist/color-swatch.js +10 -10
- package/dist/confirm-popover.css +3 -0
- package/dist/confirm-popover.js +9 -9
- package/dist/copy-button.css +3 -0
- package/dist/copy-button.js +6 -6
- package/dist/corner-position-input-group.css +3 -0
- package/dist/corner-position-input-group.js +14 -14
- package/dist/cropper.js +3 -3
- package/dist/dashboard-iframe.js +4 -4
- package/dist/data-tab-group.css +3 -0
- package/dist/data-tab-group.js +15 -15
- package/dist/date-calendar.css +3 -0
- package/dist/date-calendar.js +5 -5
- package/dist/details-group.css +3 -0
- package/dist/details-group.js +4 -4
- package/dist/details.css +3 -0
- package/dist/details.js +3 -3
- package/dist/dialog.css +3 -0
- package/dist/dialog.js +5 -5
- package/dist/document-viewer.css +3 -0
- package/dist/document-viewer.js +6 -6
- package/dist/dot-pagination.js +5 -5
- package/dist/download-format-picker.css +3 -0
- package/dist/download-format-picker.js +8 -8
- package/dist/drawer.css +3 -0
- package/dist/drawer.js +6 -6
- package/dist/dropdown.css +3 -0
- package/dist/dropdown.js +7 -7
- package/dist/dynamic-select.css +3 -0
- package/dist/dynamic-select.js +13 -13
- package/dist/e-chart.css +3 -0
- package/dist/e-chart.js +5 -5
- package/dist/element-clamp.css +3 -0
- package/dist/element-clamp.js +5 -5
- package/dist/estimated-reading-time.js +3 -3
- package/dist/extension-frame.css +3 -0
- package/dist/extension-frame.js +5 -5
- package/dist/facet-date-picker.css +3 -0
- package/dist/facet-date-picker.js +17 -17
- package/dist/facet-date-range.css +3 -0
- package/dist/facet-date-range.js +18 -18
- package/dist/faceted-filter-facet.css +3 -0
- package/dist/faceted-filter-facet.js +12 -12
- package/dist/faceted-filter.css +3 -0
- package/dist/faceted-filter.js +22 -22
- package/dist/folder-select.css +3 -0
- package/dist/folder-select.js +15 -15
- package/dist/font-picker.css +3 -0
- package/dist/font-picker.js +13 -13
- package/dist/format-bytes.js +2 -2
- package/dist/format-date.js +2 -2
- package/dist/format-number.js +2 -2
- package/dist/format-time.js +2 -2
- package/dist/foundation.js +2 -2
- package/dist/gallery-item.css +3 -0
- package/dist/gallery-item.js +11 -11
- package/dist/graph-view.css +3 -0
- package/dist/graph-view.js +4 -4
- package/dist/header.css +3 -0
- package/dist/header.js +7 -7
- package/dist/icon-button.css +3 -0
- package/dist/icon-button.js +4 -4
- package/dist/icon-picker.css +3 -0
- package/dist/icon-picker.js +23 -23
- package/dist/icon.css +3 -0
- package/dist/icon.js +2 -2
- package/dist/iframe.js +3 -3
- package/dist/image-comparer.css +3 -0
- package/dist/image-comparer.js +3 -3
- package/dist/image.css +3 -0
- package/dist/image.js +5 -5
- package/dist/index.css +4 -1
- package/dist/index.js +108 -108
- package/dist/input-date-picker.css +3 -0
- package/dist/input-date-picker.js +15 -15
- package/dist/input-date-range-picker.css +3 -0
- package/dist/input-date-range-picker.js +16 -16
- package/dist/input.css +3 -0
- package/dist/input.js +6 -6
- package/dist/integrations/mount-screen.js +2 -2
- package/dist/integrations/unit-renderer.css +3 -0
- package/dist/integrations/unit-renderer.js +23 -23
- package/dist/integrations/widget-ui.css +3 -0
- package/dist/integrations/widget-ui.js +23 -23
- package/dist/line-clamp.css +3 -0
- package/dist/line-clamp.js +8 -8
- package/dist/markdown-viewer.css +3 -0
- package/dist/markdown-viewer.js +10 -10
- package/dist/markdown.css +3 -0
- package/dist/markdown.js +5 -5
- package/dist/masonry.css +3 -0
- package/dist/masonry.js +9 -9
- package/dist/mentions.css +3 -0
- package/dist/mentions.js +9 -9
- package/dist/menu-item.css +3 -0
- package/dist/menu-item.js +6 -6
- package/dist/menu.css +3 -0
- package/dist/menu.js +7 -7
- package/dist/multi-select.css +3 -0
- package/dist/multi-select.js +11 -11
- package/dist/option.css +3 -0
- package/dist/option.js +3 -3
- package/dist/padding-input-group.css +3 -0
- package/dist/padding-input-group.js +7 -7
- package/dist/page-outline.css +3 -0
- package/dist/page-outline.js +9 -9
- package/dist/pagination.css +3 -0
- package/dist/pagination.js +14 -14
- package/dist/pdf-viewer-toolbar.css +3 -0
- package/dist/pdf-viewer-toolbar.js +22 -22
- package/dist/popup.js +3 -3
- package/dist/position-picker.js +2 -2
- package/dist/progress-bar.js +2 -2
- package/dist/progress-ring.js +2 -2
- package/dist/publish-page.css +3 -0
- package/dist/publish-page.js +10 -10
- package/dist/radio-card.css +3 -0
- package/dist/radio-card.js +9 -9
- package/dist/range.js +5 -5
- package/dist/rating.css +3 -0
- package/dist/rating.js +3 -3
- package/dist/relative-time.js +2 -2
- package/dist/rich-text.css +3 -0
- package/dist/rich-text.js +22 -22
- package/dist/select.css +3 -0
- package/dist/select.js +11 -11
- package/dist/shadow-input-group.css +3 -0
- package/dist/shadow-input-group.js +21 -21
- package/dist/share-option-list.css +3 -0
- package/dist/share-option-list.js +6 -6
- package/dist/sidebar.css +3 -0
- package/dist/sidebar.js +5 -5
- package/dist/size-input-group.css +3 -0
- package/dist/size-input-group.js +14 -14
- package/dist/spinner.js +2 -2
- package/dist/split-panel.js +2 -2
- package/dist/stat-card.css +3 -0
- package/dist/stat-card.js +7 -7
- package/dist/step.css +3 -0
- package/dist/step.js +10 -10
- package/dist/stepper-wizard.css +3 -0
- package/dist/stepper-wizard.js +11 -11
- package/dist/switch.css +3 -0
- package/dist/switch.js +4 -4
- package/dist/tab-group.css +3 -0
- package/dist/tab-group.js +11 -11
- package/dist/tab.css +3 -0
- package/dist/tab.js +10 -10
- package/dist/table.css +4 -1
- package/dist/table.js +31 -31
- package/dist/tag.css +3 -0
- package/dist/tag.js +10 -10
- package/dist/tooltip.js +4 -4
- package/dist/tree-item.css +3 -0
- package/dist/tree-item.js +10 -10
- package/dist/type-subtype-select.css +3 -0
- package/dist/type-subtype-select.js +13 -13
- package/dist/typeface.css +3 -0
- package/dist/typeface.js +10 -10
- package/dist/types/react/src/atoms/icon/core-icon-names.d.ts +2 -0
- package/dist/types/react/src/atoms/icon/font-loading.d.ts +8 -0
- package/dist/types/react/src/foundation/provider.d.ts +15 -0
- package/dist/types/react/src/molecules/markdown-viewer/schema.d.ts +1 -1
- package/dist/uploader.css +3 -0
- package/dist/uploader.js +6 -6
- package/dist/video.css +3 -0
- package/dist/video.js +7 -7
- package/dist/view-and-sort.css +3 -0
- package/dist/view-and-sort.js +14 -14
- package/package.json +1 -1
- package/dist/chunks/chunk-SBO5ZB6A.js +0 -76
- /package/dist/chunks/{BookReader-ZTOHK7DI.js.LEGAL.txt → BookReader-6ZM4Y2Z6.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{BookReader-ZFBERPGE.css.LEGAL.txt → BookReader-DMA2233M.css.LEGAL.txt} +0 -0
- /package/dist/chunks/{GraphView-7T4FYJIW.css.LEGAL.txt → GraphView-XIVASOEO.css.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-KB6V3MZU.js.LEGAL.txt → chunk-CMQK3TLH.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-J5URSEIZ.js.LEGAL.txt → chunk-ZV6U7B3T.js.LEGAL.txt} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOQ65PA5.js";
|
|
4
4
|
import {
|
|
5
5
|
CxImage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JEV45G2O.js";
|
|
7
7
|
import {
|
|
8
8
|
CxSpace
|
|
9
9
|
} from "./chunk-2QVV7WXP.js";
|
|
10
10
|
import {
|
|
11
11
|
CxButton
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KZMIV4C7.js";
|
|
13
13
|
import {
|
|
14
14
|
useControllableState
|
|
15
15
|
} from "./chunk-2DH2EWIR.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk-GOLE3W6T.js";
|
|
19
19
|
import {
|
|
20
20
|
CxIconButton
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GD7SZUVC.js";
|
|
22
22
|
import {
|
|
23
23
|
useCortex
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PYPSM56W.js";
|
|
25
25
|
|
|
26
26
|
// packages/react/src/molecules/asset-picker/component.tsx
|
|
27
27
|
import { useCallback, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-2QVV7WXP.js";
|
|
7
7
|
import {
|
|
8
8
|
CxIcon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SJAMEE5J.js";
|
|
10
10
|
|
|
11
11
|
// packages/react/src/atoms/option/component.tsx
|
|
12
12
|
import { useId, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -10,31 +10,31 @@ import {
|
|
|
10
10
|
} from "./chunk-7NAYQPPP.js";
|
|
11
11
|
import {
|
|
12
12
|
CxTag
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JIKG4IV6.js";
|
|
14
14
|
import {
|
|
15
15
|
CxLineClamp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KTFQGZ5N.js";
|
|
17
17
|
import {
|
|
18
18
|
CxPopup
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TLFYKSCI.js";
|
|
20
20
|
import {
|
|
21
21
|
OverlayOwnedElements,
|
|
22
22
|
OverlayOwnerContext,
|
|
23
23
|
registerOverlay,
|
|
24
24
|
useOverlayOwner
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BNQYFFU3.js";
|
|
26
26
|
import {
|
|
27
27
|
CxTypography
|
|
28
28
|
} from "./chunk-GOLE3W6T.js";
|
|
29
29
|
import {
|
|
30
30
|
CxSpinner
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OWISGMW5.js";
|
|
32
32
|
import {
|
|
33
33
|
CxIcon
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SJAMEE5J.js";
|
|
35
35
|
import {
|
|
36
36
|
useCortex
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PYPSM56W.js";
|
|
38
38
|
|
|
39
39
|
// packages/react/src/atoms/select/component.tsx
|
|
40
40
|
import { useCallback, useContext, useId, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxCopyButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YYZXO5EJ.js";
|
|
4
4
|
import {
|
|
5
5
|
CxSpace
|
|
6
6
|
} from "./chunk-2QVV7WXP.js";
|
|
7
7
|
import {
|
|
8
8
|
CxLineClamp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KTFQGZ5N.js";
|
|
10
10
|
import {
|
|
11
11
|
CxResizeObserver
|
|
12
12
|
} from "./chunk-SZNEBEU4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-GOLE3W6T.js";
|
|
16
16
|
import {
|
|
17
17
|
useCortex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PYPSM56W.js";
|
|
19
19
|
|
|
20
20
|
// packages/react/src/molecules/color-swatch/component.tsx
|
|
21
21
|
import { useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxMenu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WK6GU2EX.js";
|
|
4
4
|
import {
|
|
5
5
|
CxMenuItem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQHHESDD.js";
|
|
7
7
|
import {
|
|
8
8
|
CxDropdown
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LO2A2WBZ.js";
|
|
10
10
|
import {
|
|
11
11
|
CxTooltip
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M3R23DFI.js";
|
|
13
13
|
import {
|
|
14
14
|
CxButton
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KZMIV4C7.js";
|
|
16
16
|
import {
|
|
17
17
|
CxIconButton
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GD7SZUVC.js";
|
|
19
19
|
import {
|
|
20
20
|
useCortex
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PYPSM56W.js";
|
|
22
22
|
|
|
23
23
|
// packages/react/src/molecules/annotator/component.tsx
|
|
24
24
|
import { useEffect, useImperativeHandle as useImperativeHandle2, useLayoutEffect, useMemo, useRef as useRef2, useState } from "react";
|
|
@@ -5,7 +5,7 @@ var defaults = { assetBasePath: "/assets", services: {}, locale: "en", dir: "ltr
|
|
|
5
5
|
var Context = createContext(defaults);
|
|
6
6
|
function DesignSystemProvider({ children, rootProps, ...options }) {
|
|
7
7
|
const parent = useContext(Context);
|
|
8
|
-
const value = useMemo(() => ({ ...parent, ...options, messages: { ...parent.messages, ...options.messages } }), [parent, options.assetBasePath, options.services, options.locale, options.dir, options.theme, options.resolveIcon, options.overlayContainer, options.shouldHandleEscape, options.messages]);
|
|
8
|
+
const value = useMemo(() => ({ ...parent, ...options, messages: { ...parent.messages, ...options.messages } }), [parent, options.assetBasePath, options.services, options.locale, options.dir, options.theme, options.resolveIcon, options.loadIconFont, options.overlayContainer, options.shouldHandleEscape, options.messages]);
|
|
9
9
|
return /* @__PURE__ */ jsx(Context.Provider, { value, children: /* @__PURE__ */ jsx("div", { ...rootProps, "data-cx-provider": "", lang: value.locale, dir: value.dir, "data-cx-theme": value.theme, className: [`cx-theme-${value.theme}`, rootProps?.className].filter(Boolean).join(" "), children }) });
|
|
10
10
|
}
|
|
11
11
|
function useDesignSystem() {
|
|
@@ -10,22 +10,22 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
CxMarkdown,
|
|
12
12
|
component_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OFTQ2L3H.js";
|
|
14
14
|
import {
|
|
15
15
|
require_prism
|
|
16
16
|
} from "./chunk-RNEIIFZX.js";
|
|
17
17
|
import {
|
|
18
18
|
CxCopyButton
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YYZXO5EJ.js";
|
|
20
20
|
import {
|
|
21
21
|
CxIconButton
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GD7SZUVC.js";
|
|
23
23
|
import {
|
|
24
24
|
CxIcon
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SJAMEE5J.js";
|
|
26
26
|
import {
|
|
27
27
|
useCortex
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PYPSM56W.js";
|
|
29
29
|
import {
|
|
30
30
|
__toESM
|
|
31
31
|
} from "./chunk-EXOVVZNP.js";
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./chunk-NN5AOQYI.js";
|
|
4
4
|
import {
|
|
5
5
|
CxInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WOQ65PA5.js";
|
|
7
7
|
import {
|
|
8
8
|
CxDialog
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KHVYFV42.js";
|
|
10
10
|
import {
|
|
11
11
|
CxBadge
|
|
12
12
|
} from "./chunk-UJXSQEGV.js";
|
|
13
13
|
import {
|
|
14
14
|
CxCheckbox
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7TSF5MHG.js";
|
|
16
16
|
import {
|
|
17
17
|
CxButton
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KZMIV4C7.js";
|
|
19
19
|
import {
|
|
20
20
|
CxSpinner
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OWISGMW5.js";
|
|
22
22
|
import {
|
|
23
23
|
CortexProvider,
|
|
24
24
|
useCortex
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PYPSM56W.js";
|
|
26
26
|
|
|
27
27
|
// packages/react/src/molecules/publish-page/component.tsx
|
|
28
28
|
import { useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-MK6FC7VU.js";
|
|
4
4
|
import {
|
|
5
5
|
CxSelect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PHBQQW4M.js";
|
|
7
7
|
import {
|
|
8
8
|
CxOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PECPHH7O.js";
|
|
10
10
|
import {
|
|
11
11
|
CxInput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WOQ65PA5.js";
|
|
13
13
|
import {
|
|
14
14
|
CxSpace
|
|
15
15
|
} from "./chunk-2QVV7WXP.js";
|
|
16
16
|
import {
|
|
17
17
|
CxTooltip
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M3R23DFI.js";
|
|
19
19
|
import {
|
|
20
20
|
CxIconButton
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GD7SZUVC.js";
|
|
22
22
|
import {
|
|
23
23
|
useCortex
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PYPSM56W.js";
|
|
25
25
|
|
|
26
26
|
// packages/react/src/molecules/size-input-group/component.tsx
|
|
27
27
|
import { useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-X2FZ7MEM.js";
|
|
4
4
|
import {
|
|
5
5
|
CxProgressBar
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WA4H4IXN.js";
|
|
7
7
|
import {
|
|
8
8
|
CxLineClamp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KTFQGZ5N.js";
|
|
10
10
|
import {
|
|
11
11
|
CxTooltip
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M3R23DFI.js";
|
|
13
13
|
import {
|
|
14
14
|
CxIcon
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SJAMEE5J.js";
|
|
16
16
|
import {
|
|
17
17
|
useCortex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PYPSM56W.js";
|
|
19
19
|
|
|
20
20
|
// packages/react/src/atoms/step/component.tsx
|
|
21
21
|
import { useCallback, useContext, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-D5OUAJXF.js";
|
|
4
4
|
import {
|
|
5
5
|
CxTreeItem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z43JQVIG.js";
|
|
7
7
|
import {
|
|
8
8
|
CxDetails
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NOIO6CO4.js";
|
|
10
10
|
import {
|
|
11
11
|
CxLineClamp
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KTFQGZ5N.js";
|
|
13
13
|
import {
|
|
14
14
|
CxButton
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KZMIV4C7.js";
|
|
16
16
|
import {
|
|
17
17
|
CxSpinner
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OWISGMW5.js";
|
|
19
19
|
import {
|
|
20
20
|
CxIcon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SJAMEE5J.js";
|
|
22
22
|
import {
|
|
23
23
|
useCortex
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PYPSM56W.js";
|
|
25
25
|
|
|
26
26
|
// packages/react/src/molecules/faceted-filter-facet/component.tsx
|
|
27
27
|
import { useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCortex
|
|
3
|
+
} from "./chunk-PYPSM56W.js";
|
|
4
|
+
|
|
5
|
+
// packages/react/src/atoms/icon/component.tsx
|
|
6
|
+
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
7
|
+
|
|
8
|
+
// packages/react/src/atoms/icon/component.module.css
|
|
9
|
+
var component_default = {
|
|
10
|
+
root: "component_root",
|
|
11
|
+
icon: "component_icon2",
|
|
12
|
+
"icon--loaded": "component_icon--loaded",
|
|
13
|
+
"icon--outlined": "component_icon--outlined",
|
|
14
|
+
"icon--filled": "component_icon--filled",
|
|
15
|
+
"icon--round": "component_icon--round",
|
|
16
|
+
"icon--sharp": "component_icon--sharp",
|
|
17
|
+
"icon--two-tone": "component_icon--two-tone",
|
|
18
|
+
"icon--core": "component_icon--core",
|
|
19
|
+
"custom-icon": "component_custom-icon",
|
|
20
|
+
"custom-icon--svg": "component_custom-icon--svg",
|
|
21
|
+
"pull-right": "component_pull-right",
|
|
22
|
+
"pull-left": "component_pull-left",
|
|
23
|
+
"fa-spin": "component_fa-spin"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// packages/react/src/atoms/icon/font-loading.ts
|
|
27
|
+
import { useEffect, useState } from "react";
|
|
28
|
+
|
|
29
|
+
// packages/react/src/atoms/icon/core-icon-names.ts
|
|
30
|
+
var CORE_ICON_NAMES = /* @__PURE__ */ new Set(["ac_unit", "accessibility", "account_box", "add", "add_2", "add_circle", "add_circle_outline", "add_column_right", "add_row_below", "anchor", "animation", "api", "arrow_back", "arrow_back_ios", "arrow_downward", "arrow_drop_down", "arrow_forward", "arrow_forward_ios", "arrow_outward", "arrow_upward", "attachment", "auto_stories", "autoplay", "autorenew", "badge", "block", "book", "bookmark", "bookmark_border", "box", "browse", "brush", "calendar_today", "cancel", "category", "chat", "check", "check_circle", "check_circle_filled", "check_circle_outline", "chevron_left", "chevron_right", "circle", "class", "clear", "close", "cloud_download", "code", "code_blocks", "collections", "colorize", "commit", "compress", "content_copy", "control_point", "cookie", "create", "crop_din", "crop_original", "crop_square", "csv", "cut", "delete", "delete_outline", "description", "deselect", "details", "device_reset", "distance", "do_disturb", "do_not_disturb_alt", "download", "draft", "drag_indicator", "draw", "dropdown", "edit", "email", "equal", "error", "error_circle_rounded", "error_outline", "expand", "expand_less", "expand_more", "explicit", "exposure", "extension", "file_download", "filter", "filter_alt", "first_page", "flip", "fmd_good", "folder", "folder_open", "format_align_center", "format_align_justify", "format_align_left", "format_align_right", "format_bold", "format_clear", "format_h1", "format_h2", "format_h3", "format_indent_decrease", "format_indent_increase", "format_italic", "format_list_bulleted", "format_list_numbered", "format_quote", "format_strikethrough", "format_underlined", "forward", "foundation", "fullscreen", "fullscreen_exit", "function", "get_app", "gif", "google_plus_reshare", "grade", "gradient", "grid_off", "group", "height", "help", "help_outline", "hide", "hide_image", "highlight", "highlight_off", "history", "horizontal_rule", "host", "html", "http", "https", "iframe", "image", "import_contacts", "import_export", "info", "input", "insert_drive_file", "insert_link", "insert_photo", "iso", "javascript", "key", "keyboard", "keyboard_arrow_down", "keyboard_arrow_left", "keyboard_arrow_right", "keyboard_arrow_up", "keyboard_double_arrow_left", "keyboard_double_arrow_right", "label", "label_outline", "landscape", "last_page", "light", "line_weight", "link", "link_off", "list", "local_printshop", "location_on", "location_pin", "lock", "lock_outline", "loop", "lowercase", "mail", "mail_outline", "margin", "markdown", "markunread", "menu", "menu_book", "message", "mobile", "mode", "mode_edit", "mode_edit_outline", "money", "more", "more_horiz", "more_vert", "mouse", "move", "navigate_before", "navigate_next", "navigation", "not_interested", "note", "notes", "opacity", "padding", "pages", "pan_tool", "password", "pause", "pen_size_2", "pending", "people", "people_alt", "people_outline", "percent", "perm_identity", "person", "person_filled", "person_outline", "pill", "place", "play_arrow", "portrait", "preview", "print", "publish", "radio", "radio_button_unchecked", "redo", "remove", "remove_red_eye", "reorder", "replay", "report", "report_gmailerrorred", "report_problem", "resize", "restore", "room", "rotate_left", "rotate_right", "save_alt", "scale", "script", "search", "select", "send", "settings", "share", "shift", "shortcut", "side_navigation", "skeleton", "slideshow", "smartphone", "sort", "source", "speed", "spellcheck", "square", "star", "star_border", "star_outline", "start", "stay_current_portrait", "step", "style", "subscript", "superscript", "swap_horiz", "swap_vert", "switch", "tab", "table", "tablet", "tabs", "tag", "target", "terrain", "text_fields", "text_select_end", "text_snippet", "timeline", "timer", "title", "toast", "today", "toolbar", "tooltip", "topic", "traffic", "tune", "turned_in", "turned_in_not", "undo", "unsubscribe", "update", "upload_file", "uppercase", "variable_remove", "videocam", "view_array", "visibility", "visibility_off", "warning", "warning_amber", "width", "wrap_text", "wysiwyg"]);
|
|
31
|
+
|
|
32
|
+
// packages/react/src/atoms/icon/font-loading.ts
|
|
33
|
+
var ICON_FONT_STYLESHEETS = Object.freeze({
|
|
34
|
+
"outlined-core": "assets/fonts/material-symbols-outlined-core.css",
|
|
35
|
+
outlined: "assets/fonts/material-symbols-outlined.css",
|
|
36
|
+
fontawesome: "assets/fonts/fontawesome.css",
|
|
37
|
+
rounded: "assets/fonts/material-symbols-rounded.css",
|
|
38
|
+
sharp: "assets/fonts/material-symbols-sharp.css"
|
|
39
|
+
});
|
|
40
|
+
function iconFontFamily(name, effective) {
|
|
41
|
+
if (!name) return void 0;
|
|
42
|
+
if (effective === "fa") return "fontawesome";
|
|
43
|
+
if (effective === "round") return "rounded";
|
|
44
|
+
if (effective === "sharp") return "sharp";
|
|
45
|
+
return CORE_ICON_NAMES.has(name) ? "outlined-core" : "outlined";
|
|
46
|
+
}
|
|
47
|
+
var requests = /* @__PURE__ */ new WeakMap();
|
|
48
|
+
function request(loader, family) {
|
|
49
|
+
let families = requests.get(loader);
|
|
50
|
+
if (!families) requests.set(loader, families = /* @__PURE__ */ new Map());
|
|
51
|
+
let entry = families.get(family);
|
|
52
|
+
if (!entry) {
|
|
53
|
+
const promise = Promise.resolve().then(() => loader({ family, stylesheet: ICON_FONT_STYLESHEETS[family] }));
|
|
54
|
+
const created = { promise, loaded: false };
|
|
55
|
+
promise.then(() => {
|
|
56
|
+
created.loaded = true;
|
|
57
|
+
}, () => {
|
|
58
|
+
});
|
|
59
|
+
families.set(family, entry = created);
|
|
60
|
+
}
|
|
61
|
+
return entry;
|
|
62
|
+
}
|
|
63
|
+
function useIconFontReady(loader, family) {
|
|
64
|
+
const known = loader && family ? requests.get(loader)?.get(family)?.loaded === true : true;
|
|
65
|
+
const [, settled] = useState(0);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (!loader || !family) return;
|
|
68
|
+
const entry = request(loader, family);
|
|
69
|
+
if (entry.loaded) {
|
|
70
|
+
if (!known) settled((count) => count + 1);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
let active = true;
|
|
74
|
+
entry.promise.then(() => {
|
|
75
|
+
if (active) settled((count) => count + 1);
|
|
76
|
+
}, () => {
|
|
77
|
+
});
|
|
78
|
+
return () => {
|
|
79
|
+
active = false;
|
|
80
|
+
};
|
|
81
|
+
}, [loader, family, known]);
|
|
82
|
+
return known;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// packages/react/src/atoms/icon/component.tsx
|
|
86
|
+
import { jsx } from "react/jsx-runtime";
|
|
87
|
+
function CxIcon({ name = "", src = "", label = "", variant = "outlined", iconClass = "", className, classNames, ref, ...native }) {
|
|
88
|
+
const { resolveIcon, assetBasePath, loadIconFont } = useCortex();
|
|
89
|
+
const builtIn = ["mailchimp", "chatbot", "orangelogic", "amazon_s3", "file_on_demand"].includes(name) ? `${assetBasePath.replace(/\/$/, "")}/icons/${name}.svg` : "";
|
|
90
|
+
const [AmazonS3, setAmazonS3] = useState2();
|
|
91
|
+
useEffect2(() => {
|
|
92
|
+
let active = true;
|
|
93
|
+
if (name === "amazon_s3") void import("./amazon-s3-6QHPWIPT.js").then((module) => {
|
|
94
|
+
if (active) setAmazonS3(() => module.default);
|
|
95
|
+
}, () => {
|
|
96
|
+
});
|
|
97
|
+
return () => {
|
|
98
|
+
active = false;
|
|
99
|
+
};
|
|
100
|
+
}, [name]);
|
|
101
|
+
const [resolved, setResolved] = useState2();
|
|
102
|
+
useEffect2(() => {
|
|
103
|
+
let active = true;
|
|
104
|
+
if (resolveIcon && name)
|
|
105
|
+
Promise.resolve().then(() => resolveIcon(name)).then((asset2) => {
|
|
106
|
+
if (active)
|
|
107
|
+
setResolved({ name, resolver: resolveIcon, asset: asset2 });
|
|
108
|
+
}, () => {
|
|
109
|
+
if (active)
|
|
110
|
+
setResolved({ name, resolver: resolveIcon });
|
|
111
|
+
});
|
|
112
|
+
return () => {
|
|
113
|
+
active = false;
|
|
114
|
+
};
|
|
115
|
+
}, [name, resolveIcon]);
|
|
116
|
+
const asset = resolveIcon && resolved?.resolver === resolveIcon && resolved.name === name ? resolved.asset : void 0;
|
|
117
|
+
const hasNode = asset != null && "node" in asset;
|
|
118
|
+
const builtInSvg = !asset && name === "amazon_s3";
|
|
119
|
+
const builtInImage = !asset && !builtInSvg ? builtIn : "";
|
|
120
|
+
const image = builtInImage || src || (asset && "src" in asset ? asset.src : "");
|
|
121
|
+
const node = hasNode ? asset.node : void 0;
|
|
122
|
+
const effective = /^fa\S* fa-/.test(name) ? "fa" : variant;
|
|
123
|
+
const family = image || hasNode || builtInSvg ? void 0 : iconFontFamily(name, effective);
|
|
124
|
+
const fontReady = useIconFontReady(loadIconFont, family);
|
|
125
|
+
return /* @__PURE__ */ jsx("span", { ...native, ref, "data-cx-icon": "", className: [component_default.root, className].filter(Boolean).join(" "), role: label ? "img" : void 0, "aria-label": label || void 0, "aria-hidden": label ? void 0 : true, children: image || hasNode || builtInSvg ? /* @__PURE__ */ jsx("span", { "data-cx-part": "span", onLoad: (event) => {
|
|
126
|
+
if (hasNode || builtInSvg) event.stopPropagation();
|
|
127
|
+
}, onError: (event) => {
|
|
128
|
+
if (hasNode || builtInSvg) event.stopPropagation();
|
|
129
|
+
}, className: [component_default["custom-icon"], hasNode || builtInImage || builtInSvg ? component_default["custom-icon--svg"] : "", classNames?.span].filter(Boolean).join(" "), children: hasNode ? node : builtInSvg ? AmazonS3 ? /* @__PURE__ */ jsx(AmazonS3, {}) : null : /* @__PURE__ */ jsx("img", { src: image, alt: "", onLoad: (event) => {
|
|
130
|
+
if (builtInImage) event.stopPropagation();
|
|
131
|
+
}, onError: (event) => {
|
|
132
|
+
if (builtInImage) event.stopPropagation();
|
|
133
|
+
} }) }) : effective === "fa" ? /* @__PURE__ */ jsx("i", { className: `${name} ${iconClass}`.trim(), style: fontReady ? void 0 : { visibility: "hidden" } }) : /* @__PURE__ */ jsx("span", { "data-cx-part": "span", className: [component_default.icon, fontReady ? component_default["icon--loaded"] : "", component_default[`icon--${effective}`], family === "outlined-core" ? component_default["icon--core"] : "", classNames?.span].filter(Boolean).join(" "), children: name }) });
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export {
|
|
137
|
+
useIconFontReady,
|
|
138
|
+
CxIcon
|
|
139
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxTooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M3R23DFI.js";
|
|
4
4
|
import {
|
|
5
5
|
useCortex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PYPSM56W.js";
|
|
7
7
|
|
|
8
8
|
// packages/react/src/atoms/dot-pagination/component.tsx
|
|
9
9
|
import { useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OverlayPortal,
|
|
3
3
|
useOverlayOwner
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BNQYFFU3.js";
|
|
5
5
|
import {
|
|
6
6
|
useCortex
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PYPSM56W.js";
|
|
8
8
|
|
|
9
9
|
// packages/react/src/atoms/popup/component.tsx
|
|
10
10
|
import { useCallback, useImperativeHandle, useInsertionEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
lockOverlayScroll,
|
|
11
11
|
registerOverlay,
|
|
12
12
|
restoreOverlayFocus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BNQYFFU3.js";
|
|
14
14
|
import {
|
|
15
15
|
useControllableState
|
|
16
16
|
} from "./chunk-2DH2EWIR.js";
|
|
17
17
|
import {
|
|
18
18
|
CxIconButton
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GD7SZUVC.js";
|
|
20
20
|
import {
|
|
21
21
|
useCortex
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PYPSM56W.js";
|
|
23
23
|
|
|
24
24
|
// packages/react/src/atoms/drawer/component.tsx
|
|
25
25
|
import { useId, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-6OYXMRL2.js";
|
|
5
5
|
import {
|
|
6
6
|
CxCopyButton
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YYZXO5EJ.js";
|
|
8
8
|
import {
|
|
9
9
|
CxIcon
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SJAMEE5J.js";
|
|
11
11
|
|
|
12
12
|
// packages/react/src/atoms/header/component.tsx
|
|
13
13
|
import { useCallback, useImperativeHandle, useInsertionEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxTooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M3R23DFI.js";
|
|
4
4
|
import {
|
|
5
5
|
CxResizeObserver
|
|
6
6
|
} from "./chunk-SZNEBEU4.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-GOLE3W6T.js";
|
|
10
10
|
import {
|
|
11
11
|
CxIcon
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SJAMEE5J.js";
|
|
13
13
|
import {
|
|
14
14
|
useCortex
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PYPSM56W.js";
|
|
16
16
|
|
|
17
17
|
// packages/react/src/molecules/share-option-list/component.tsx
|
|
18
18
|
import { useId, useImperativeHandle as useImperativeHandle2, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CxSelect
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PHBQQW4M.js";
|
|
4
4
|
import {
|
|
5
5
|
CxOption
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PECPHH7O.js";
|
|
7
7
|
import {
|
|
8
8
|
CxIconButton
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GD7SZUVC.js";
|
|
10
10
|
import {
|
|
11
11
|
useCortex
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PYPSM56W.js";
|
|
13
13
|
|
|
14
14
|
// packages/react/src/molecules/type-subtype-select/component.tsx
|
|
15
15
|
import { useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|