@carbon/web-components 1.33.0 → 1.34.0-rc.0
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/custom-elements.json +21 -8
- package/dist/16-0941dd83.js +65 -0
- package/dist/16-28bddc31.js +65 -0
- package/dist/{16-61723e38.js → 16-8e34a1fb.js} +1 -1
- package/dist/{16-1e54ef69.js → 16-967865d0.js} +1 -1
- package/dist/{16-83c13872.js → 16-9e2c1ff1.js} +1 -1
- package/dist/16-a2e61b42.js +65 -0
- package/dist/{16-604aab02.js → 16-a6a38475.js} +1 -1
- package/dist/{16-61622d26.js → 16-a993279d.js} +1 -1
- package/dist/{16-897e344d.js → 16-deefa0c3.js} +1 -1
- package/dist/{16-481c3b8f.js → 16-efa1f157.js} +1 -1
- package/dist/20-68dfa4ba.js +65 -0
- package/dist/{16-4e44b70d.js → 20-f2be7924.js} +1 -1
- package/dist/accordion.min.js +1 -1
- package/dist/accordion.rtl.min.js +1 -1
- package/dist/breadcrumb.min.js +1 -1
- package/dist/breadcrumb.rtl.min.js +1 -1
- package/dist/{button-c71594fa.js → button-4e0b32c8.js} +1 -1
- package/dist/{button-e31ba29e.js → button-99f6b809.js} +1 -1
- package/dist/button.min.js +1 -1
- package/dist/button.rtl.min.js +1 -1
- package/dist/{checkbox-724e95de.js → checkbox-33a1eaf8.js} +1 -1
- package/dist/checkbox-7352ebd3.js +65 -0
- package/dist/checkbox.min.js +1 -1
- package/dist/checkbox.rtl.min.js +1 -1
- package/dist/{class-map-20d48808.js → class-map-bd61e03f.js} +2 -2
- package/dist/code-snippet.min.js +1 -1
- package/dist/code-snippet.rtl.min.js +2 -2
- package/dist/combo-box.min.js +1 -1
- package/dist/combo-box.rtl.min.js +1 -1
- package/dist/{content-switcher-item-96395561.js → content-switcher-item-55452b53.js} +1 -1
- package/dist/{content-switcher-item-77b690a9.js → content-switcher-item-f853369b.js} +1 -1
- package/dist/content-switcher.min.js +1 -1
- package/dist/content-switcher.rtl.min.js +1 -1
- package/dist/{copy-button-9cb9a0c6.js → copy-button-7a7bbaf8.js} +1 -1
- package/dist/{copy-button-50221d0f.js → copy-button-9fb90a01.js} +1 -1
- package/dist/copy-button.min.js +1 -1
- package/dist/copy-button.rtl.min.js +1 -1
- package/dist/data-table.min.js +1 -1
- package/dist/data-table.rtl.min.js +1 -1
- package/dist/date-picker.min.js +1 -1
- package/dist/date-picker.rtl.min.js +1 -1
- package/dist/{defineProperty-3aba2ee5.js → defineProperty-93eef18e.js} +1 -1
- package/dist/{dropdown-item-ba6ae5c0.js → dropdown-item-2d248e51.js} +1 -1
- package/dist/{dropdown-item-53fb6bdf.js → dropdown-item-9c062c1c.js} +1 -1
- package/dist/dropdown.min.js +1 -1
- package/dist/dropdown.rtl.min.js +1 -1
- package/dist/file-uploader.min.js +1 -1
- package/dist/file-uploader.rtl.min.js +1 -1
- package/dist/{floating-menu-821f738e.js → floating-menu-72acc1bc.js} +1 -1
- package/dist/floating-menu.min.js +1 -1
- package/dist/floating-menu.rtl.min.js +1 -1
- package/dist/{focus-d79d88d5.js → focus-1800056c.js} +1 -1
- package/dist/{form-79cb55d3.js → form-80943f8c.js} +1 -1
- package/dist/form.min.js +1 -1
- package/dist/form.rtl.min.js +1 -1
- package/dist/{host-listener-7ba48376.js → host-listener-01e0a787.js} +1 -1
- package/dist/{if-defined-e752b789.js → if-defined-dd1fb04b.js} +1 -1
- package/dist/{if-non-empty-e64f4f53.js → if-non-empty-f23befc6.js} +2 -2
- package/dist/{if-non-null-06324b2b.js → if-non-null-63ecd660.js} +2 -2
- package/dist/inline-loading.min.js +1 -1
- package/dist/inline-loading.rtl.min.js +1 -1
- package/dist/{input-5ec944df.js → input-47bf976e.js} +2 -2
- package/dist/{input-ecba9b56.js → input-e5442b90.js} +2 -2
- package/dist/input.min.js +1 -1
- package/dist/input.rtl.min.js +1 -1
- package/dist/{link-3c734b06.js → link-3bb57cfd.js} +1 -1
- package/dist/{link-aecb4d2a.js → link-d64eff5e.js} +1 -1
- package/dist/link.min.js +1 -1
- package/dist/link.rtl.min.js +1 -1
- package/dist/list.min.js +1 -1
- package/dist/list.rtl.min.js +1 -1
- package/dist/{loading-9ce928f0.js → loading-926a29f5.js} +1 -1
- package/dist/{loading-c77e0b8d.js → loading-a1c01e84.js} +1 -1
- package/dist/{loading-icon-45c89d9a.js → loading-icon-9d1c486a.js} +2 -2
- package/dist/loading.min.js +1 -1
- package/dist/loading.rtl.min.js +1 -1
- package/dist/modal.min.js +1 -1
- package/dist/modal.rtl.min.js +1 -1
- package/dist/multi-select.min.js +1 -1
- package/dist/multi-select.rtl.min.js +1 -1
- package/dist/notification.min.js +1 -1
- package/dist/notification.rtl.min.js +1 -1
- package/dist/number-input.min.js +1 -1
- package/dist/number-input.rtl.min.js +1 -1
- package/dist/{objectSpread2-65402b05.js → objectSpread2-8dc8a158.js} +1 -1
- package/dist/overflow-menu.min.js +1 -1
- package/dist/overflow-menu.rtl.min.js +1 -1
- package/dist/pagination.min.js +1 -1
- package/dist/pagination.rtl.min.js +1 -1
- package/dist/progress-indicator.min.js +1 -1
- package/dist/progress-indicator.rtl.min.js +1 -1
- package/dist/radio-button.min.js +1 -1
- package/dist/radio-button.rtl.min.js +1 -1
- package/dist/{radio-group-manager-eb1598f5.js → radio-group-manager-e095bcbf.js} +1 -1
- package/dist/{search-1a7ba563.js → search-87761b5e.js} +1 -1
- package/dist/{search-ce08ae42.js → search-f2955dfc.js} +1 -1
- package/dist/search.min.js +1 -1
- package/dist/search.rtl.min.js +1 -1
- package/dist/select.min.js +1 -1
- package/dist/select.rtl.min.js +1 -1
- package/dist/skeleton-placeholder.min.js +1 -1
- package/dist/skeleton-placeholder.rtl.min.js +1 -1
- package/dist/skeleton-text.min.js +1 -1
- package/dist/skeleton-text.rtl.min.js +1 -1
- package/dist/skip-to-content.min.js +1 -1
- package/dist/skip-to-content.rtl.min.js +1 -1
- package/dist/slider.min.js +1 -1
- package/dist/slider.rtl.min.js +1 -1
- package/dist/{spread-dc4ee429.js → spread-989d7408.js} +1 -1
- package/dist/structured-list.min.js +1 -1
- package/dist/structured-list.rtl.min.js +1 -1
- package/dist/tabs.min.js +2 -2
- package/dist/tabs.rtl.min.js +2 -2
- package/dist/tag.min.js +1 -1
- package/dist/tag.rtl.min.js +1 -1
- package/dist/textarea.min.js +1 -1
- package/dist/textarea.rtl.min.js +1 -1
- package/dist/tile.min.js +1 -1
- package/dist/tile.rtl.min.js +1 -1
- package/dist/toggle.min.js +2 -2
- package/dist/toggle.rtl.min.js +1 -1
- package/dist/tooltip.min.js +1 -1
- package/dist/tooltip.rtl.min.js +1 -1
- package/dist/ui-shell.min.js +2 -2
- package/dist/ui-shell.rtl.min.js +2 -2
- package/es/components/data-table/table-toolbar-search.js +1 -1
- package/es/components/data-table/table-toolbar-search.js.map +1 -1
- package/es/components/file-uploader/drop-container.js +1 -1
- package/es/components/file-uploader/drop-container.js.map +1 -1
- package/es/components/input/input.d.ts +4 -5
- package/es/components/input/input.d.ts.map +1 -1
- package/es/components/input/input.js +16 -35
- package/es/components/input/input.js.map +1 -1
- package/es/components/overflow-menu/overflow-menu-body.js +1 -1
- package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
- package/es/components/overflow-menu/overflow-menu.js +1 -1
- package/es/components/overflow-menu/overflow-menu.js.map +1 -1
- package/es/components/pagination/page-sizes-select.js +1 -1
- package/es/components/pagination/page-sizes-select.js.map +1 -1
- package/es/components/slider/slider.js +1 -1
- package/es/components/slider/slider.js.map +1 -1
- package/es/components/structured-list/structured-list-row.js +1 -1
- package/es/components/structured-list/structured-list-row.js.map +1 -1
- package/es/components/tabs/tab.d.ts +8 -0
- package/es/components/tabs/tab.d.ts.map +1 -1
- package/es/components/tabs/tab.js +28 -4
- package/es/components/tabs/tab.js.map +1 -1
- package/es/components/tooltip/tooltip.js +2 -2
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/components/ui-shell/side-nav-link.js +1 -1
- package/es/components/ui-shell/side-nav-link.js.map +1 -1
- package/es/components/ui-shell/side-nav-menu-item.d.ts +1 -0
- package/es/components/ui-shell/side-nav-menu-item.d.ts.map +1 -1
- package/es/components/ui-shell/side-nav-menu-item.js +11 -0
- package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
- package/es/components/ui-shell/side-nav-menu.js +1 -1
- package/es/components/ui-shell/side-nav-menu.js.map +1 -1
- package/es/components/ui-shell/side-nav.js +1 -1
- package/es/components/ui-shell/side-nav.js.map +1 -1
- package/es/components-react/input/input.d.ts +4 -4
- package/es/components-react/input/input.js +2 -2
- package/es/components-react/tabs/tab.d.ts +4 -0
- package/es/components-react/tabs/tab.js +2 -0
- package/es/globals/wrappers/createReactCustomElementType.js +2 -1
- package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/lib/components/accordion/defs.js +2 -4
- package/lib/components/accordion/defs.js.map +1 -1
- package/lib/components/button/defs.js +3 -6
- package/lib/components/button/defs.js.map +1 -1
- package/lib/components/code-snippet/defs.js +1 -2
- package/lib/components/code-snippet/defs.js.map +1 -1
- package/lib/components/content-switcher/defs.js +2 -4
- package/lib/components/content-switcher/defs.js.map +1 -1
- package/lib/components/data-table/defs.js +5 -10
- package/lib/components/data-table/defs.js.map +1 -1
- package/lib/components/date-picker/defs.js +2 -4
- package/lib/components/date-picker/defs.js.map +1 -1
- package/lib/components/dropdown/defs.js +4 -8
- package/lib/components/dropdown/defs.js.map +1 -1
- package/lib/components/file-uploader/defs.js +2 -4
- package/lib/components/file-uploader/defs.js.map +1 -1
- package/lib/components/floating-menu/defs.js +4 -8
- package/lib/components/floating-menu/defs.js.map +1 -1
- package/lib/components/inline-loading/defs.js +1 -2
- package/lib/components/inline-loading/defs.js.map +1 -1
- package/lib/components/input/defs.js +2 -4
- package/lib/components/input/defs.js.map +1 -1
- package/lib/components/loading/defs.js +1 -2
- package/lib/components/loading/defs.js.map +1 -1
- package/lib/components/modal/defs.js +1 -2
- package/lib/components/modal/defs.js.map +1 -1
- package/lib/components/notification/defs.js +2 -4
- package/lib/components/notification/defs.js.map +1 -1
- package/lib/components/number-input/defs.js +1 -2
- package/lib/components/number-input/defs.js.map +1 -1
- package/lib/components/overflow-menu/defs.js +2 -4
- package/lib/components/overflow-menu/defs.js.map +1 -1
- package/lib/components/progress-indicator/defs.js +1 -2
- package/lib/components/progress-indicator/defs.js.map +1 -1
- package/lib/components/radio-button/defs.js +2 -4
- package/lib/components/radio-button/defs.js.map +1 -1
- package/lib/components/skeleton-text/defs.js +1 -2
- package/lib/components/skeleton-text/defs.js.map +1 -1
- package/lib/components/tabs/defs.js +3 -6
- package/lib/components/tabs/defs.js.map +1 -1
- package/lib/components/tag/defs.js +2 -4
- package/lib/components/tag/defs.js.map +1 -1
- package/lib/components/toggle/defs.js +1 -2
- package/lib/components/toggle/defs.js.map +1 -1
- package/lib/components/tooltip/defs.js +2 -4
- package/lib/components/tooltip/defs.js.map +1 -1
- package/lib/components/ui-shell/defs.js +2 -4
- package/lib/components/ui-shell/defs.js.map +1 -1
- package/lib/components-react-node/accordion/accordion-item.js +25 -45
- package/lib/components-react-node/accordion/accordion.js +5 -8
- package/lib/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
- package/lib/components-react-node/breadcrumb/breadcrumb.js +3 -6
- package/lib/components-react-node/button/button-skeleton.js +7 -6
- package/lib/components-react-node/button/button.js +25 -45
- package/lib/components-react-node/checkbox/checkbox.js +25 -45
- package/lib/components-react-node/code-snippet/code-snippet-skeleton.js +5 -8
- package/lib/components-react-node/code-snippet/code-snippet.js +25 -45
- package/lib/components-react-node/combo-box/combo-box-item.js +11 -6
- package/lib/components-react-node/combo-box/combo-box.js +5 -8
- package/lib/components-react-node/content-switcher/content-switcher-item.js +25 -45
- package/lib/components-react-node/content-switcher/content-switcher.js +5 -8
- package/lib/components-react-node/copy-button/copy-button.js +25 -45
- package/lib/components-react-node/data-table/table-batch-actions.js +25 -45
- package/lib/components-react-node/data-table/table-body.js +5 -8
- package/lib/components-react-node/data-table/table-cell-skeleton.js +11 -6
- package/lib/components-react-node/data-table/table-cell.js +3 -6
- package/lib/components-react-node/data-table/table-expand-row.js +25 -45
- package/lib/components-react-node/data-table/table-expanded-row.js +25 -45
- package/lib/components-react-node/data-table/table-head.js +3 -6
- package/lib/components-react-node/data-table/table-header-cell-skeleton.js +11 -6
- package/lib/components-react-node/data-table/table-header-cell.js +25 -45
- package/lib/components-react-node/data-table/table-header-expand-row.js +25 -20
- package/lib/components-react-node/data-table/table-header-row.js +5 -8
- package/lib/components-react-node/data-table/table-row.js +25 -45
- package/lib/components-react-node/data-table/table-toolbar-content.js +25 -45
- package/lib/components-react-node/data-table/table-toolbar-search.js +25 -45
- package/lib/components-react-node/data-table/table-toolbar.js +3 -6
- package/lib/components-react-node/data-table/table.js +25 -45
- package/lib/components-react-node/date-picker/date-picker-input-skeleton.js +5 -8
- package/lib/components-react-node/date-picker/date-picker-input.js +25 -45
- package/lib/components-react-node/date-picker/date-picker.js +25 -45
- package/lib/components-react-node/dropdown/dropdown-item.js +25 -45
- package/lib/components-react-node/dropdown/dropdown-skeleton.js +3 -6
- package/lib/components-react-node/dropdown/dropdown.js +25 -45
- package/lib/components-react-node/file-uploader/drop-container.js +25 -45
- package/lib/components-react-node/file-uploader/file-uploader-item.js +25 -45
- package/lib/components-react-node/file-uploader/file-uploader.js +5 -8
- package/lib/components-react-node/floating-menu/floating-menu.js +2 -4
- package/lib/components-react-node/form/form-item.js +3 -6
- package/lib/components-react-node/inline-loading/inline-loading.js +5 -8
- package/lib/components-react-node/input/input.js +27 -47
- package/lib/components-react-node/link/link.js +25 -45
- package/lib/components-react-node/list/list-item.js +25 -45
- package/lib/components-react-node/list/ordered-list.js +11 -6
- package/lib/components-react-node/list/unordered-list.js +25 -45
- package/lib/components-react-node/loading/loading.js +25 -45
- package/lib/components-react-node/modal/modal-body.js +3 -6
- package/lib/components-react-node/modal/modal-close-button.js +5 -8
- package/lib/components-react-node/modal/modal-footer-button.js +7 -6
- package/lib/components-react-node/modal/modal-footer.js +3 -6
- package/lib/components-react-node/modal/modal-header.js +3 -6
- package/lib/components-react-node/modal/modal-heading.js +3 -6
- package/lib/components-react-node/modal/modal-label.js +3 -6
- package/lib/components-react-node/modal/modal.js +25 -45
- package/lib/components-react-node/multi-select/multi-select-item.js +41 -53
- package/lib/components-react-node/multi-select/multi-select.js +25 -45
- package/lib/components-react-node/notification/inline-notification.js +25 -45
- package/lib/components-react-node/notification/toast-notification.js +15 -10
- package/lib/components-react-node/number-input/number-input-skeleton.js +25 -45
- package/lib/components-react-node/number-input/number-input.js +25 -45
- package/lib/components-react-node/overflow-menu/overflow-menu-body.js +45 -57
- package/lib/components-react-node/overflow-menu/overflow-menu-item.js +25 -45
- package/lib/components-react-node/overflow-menu/overflow-menu.js +25 -45
- package/lib/components-react-node/pagination/page-sizes-select.js +25 -45
- package/lib/components-react-node/pagination/pages-select.js +25 -45
- package/lib/components-react-node/pagination/pagination.js +25 -45
- package/lib/components-react-node/progress-indicator/progress-indicator-skeleton.js +25 -45
- package/lib/components-react-node/progress-indicator/progress-indicator.js +25 -45
- package/lib/components-react-node/progress-indicator/progress-step-skeleton.js +25 -45
- package/lib/components-react-node/progress-indicator/progress-step.js +25 -45
- package/lib/components-react-node/radio-button/radio-button-group.js +25 -45
- package/lib/components-react-node/radio-button/radio-button-skeleton.js +3 -6
- package/lib/components-react-node/radio-button/radio-button.js +25 -45
- package/lib/components-react-node/search/search-skeleton.js +5 -8
- package/lib/components-react-node/search/search.js +25 -45
- package/lib/components-react-node/select/select-item-group.js +25 -45
- package/lib/components-react-node/select/select-item.js +25 -45
- package/lib/components-react-node/select/select.js +25 -45
- package/lib/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
- package/lib/components-react-node/skeleton-text/skeleton-text.js +5 -8
- package/lib/components-react-node/skip-to-content/skip-to-content.js +5 -8
- package/lib/components-react-node/slider/slider-input.js +25 -45
- package/lib/components-react-node/slider/slider-skeleton.js +3 -6
- package/lib/components-react-node/slider/slider.js +25 -45
- package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-row.js +5 -8
- package/lib/components-react-node/structured-list/structured-list-row.js +25 -45
- package/lib/components-react-node/structured-list/structured-list.js +5 -8
- package/lib/components-react-node/tabs/tab-skeleton.js +3 -6
- package/lib/components-react-node/tabs/tab.js +41 -51
- package/lib/components-react-node/tabs/tabs-skeleton.js +3 -6
- package/lib/components-react-node/tabs/tabs.js +39 -34
- package/lib/components-react-node/tag/filter-tag.js +25 -45
- package/lib/components-react-node/tag/tag.js +25 -45
- package/lib/components-react-node/textarea/textarea-skeleton.js +3 -6
- package/lib/components-react-node/textarea/textarea.js +25 -45
- package/lib/components-react-node/tile/clickable-tile.js +5 -8
- package/lib/components-react-node/tile/expandable-tile.js +25 -45
- package/lib/components-react-node/tile/radio-tile.js +11 -6
- package/lib/components-react-node/tile/selectable-tile.js +25 -45
- package/lib/components-react-node/tile/tile-group.js +3 -6
- package/lib/components-react-node/tile/tile.js +5 -8
- package/lib/components-react-node/toggle/toggle.js +5 -8
- package/lib/components-react-node/tooltip/tooltip-body.js +41 -53
- package/lib/components-react-node/tooltip/tooltip-definition.js +5 -8
- package/lib/components-react-node/tooltip/tooltip-footer.js +3 -6
- package/lib/components-react-node/tooltip/tooltip-icon.js +11 -6
- package/lib/components-react-node/tooltip/tooltip.js +25 -45
- package/lib/components-react-node/ui-shell/header-menu-button.js +25 -45
- package/lib/components-react-node/ui-shell/header-menu-item.js +11 -6
- package/lib/components-react-node/ui-shell/header-menu.js +25 -45
- package/lib/components-react-node/ui-shell/header-name.js +5 -8
- package/lib/components-react-node/ui-shell/header-nav-item.js +5 -8
- package/lib/components-react-node/ui-shell/header-nav.js +5 -8
- package/lib/components-react-node/ui-shell/header.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-divider.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-items.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-link.js +25 -45
- package/lib/components-react-node/ui-shell/side-nav-menu-item.js +25 -45
- package/lib/components-react-node/ui-shell/side-nav-menu.js +25 -45
- package/lib/components-react-node/ui-shell/side-nav.js +25 -45
- package/lib/globals/settings.js +1 -2
- package/lib/globals/settings.js.map +1 -1
- package/lib/globals/shared-enums.js +1 -2
- package/lib/globals/shared-enums.js.map +1 -1
- package/lib/globals/wrappers/createReactCustomElementType.js +3 -4
- package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/package.json +8 -8
- package/dist/16-b206f640.js +0 -65
- package/dist/16-ce95fee1.js +0 -65
- package/dist/20-434c5bc4.js +0 -65
- package/dist/20-99b4c026.js +0 -65
- package/dist/checkbox-a3f539a3.js +0 -65
- /package/dist/{settings-f1ddfc10.js → settings-898bd7b0.js} +0 -0
|
@@ -22,48 +22,31 @@ var _settings = _interopRequireDefault(
|
|
|
22
22
|
function _interopRequireDefault(obj) {
|
|
23
23
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
24
24
|
}
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
if (typeof WeakMap
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
return (_getRequireWildcardCache = function (
|
|
30
|
-
return
|
|
31
|
-
})(
|
|
25
|
+
function _getRequireWildcardCache(e) {
|
|
26
|
+
if ('function' != typeof WeakMap) return null;
|
|
27
|
+
var r = new WeakMap(),
|
|
28
|
+
t = new WeakMap();
|
|
29
|
+
return (_getRequireWildcardCache = function (e) {
|
|
30
|
+
return e ? t : r;
|
|
31
|
+
})(e);
|
|
32
32
|
}
|
|
33
|
-
function _interopRequireWildcard(
|
|
34
|
-
if (!
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var hasPropertyDescriptor =
|
|
46
|
-
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
47
|
-
for (var key in obj) {
|
|
48
|
-
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
49
|
-
var desc = hasPropertyDescriptor
|
|
50
|
-
? Object.getOwnPropertyDescriptor(obj, key)
|
|
51
|
-
: null;
|
|
52
|
-
if (desc && (desc.get || desc.set)) {
|
|
53
|
-
Object.defineProperty(newObj, key, desc);
|
|
54
|
-
} else {
|
|
55
|
-
newObj[key] = obj[key];
|
|
56
|
-
}
|
|
33
|
+
function _interopRequireWildcard(e, r) {
|
|
34
|
+
if (!r && e && e.__esModule) return e;
|
|
35
|
+
if (null === e || ('object' != typeof e && 'function' != typeof e))
|
|
36
|
+
return { default: e };
|
|
37
|
+
var t = _getRequireWildcardCache(r);
|
|
38
|
+
if (t && t.has(e)) return t.get(e);
|
|
39
|
+
var n = { __proto__: null },
|
|
40
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
+
for (var u in e)
|
|
42
|
+
if ('default' !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
|
43
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
44
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : (n[u] = e[u]);
|
|
57
45
|
}
|
|
58
|
-
|
|
59
|
-
newObj.default = obj;
|
|
60
|
-
if (cache) {
|
|
61
|
-
cache.set(obj, newObj);
|
|
62
|
-
}
|
|
63
|
-
return newObj;
|
|
46
|
+
return (n.default = e), t && t.set(e, n), n;
|
|
64
47
|
}
|
|
65
48
|
var prefix = _settings.default.prefix;
|
|
66
|
-
var descriptor = {
|
|
49
|
+
var descriptor = (exports.descriptor = {
|
|
67
50
|
active: {
|
|
68
51
|
serialize: _createReactCustomElementType.booleanSerializer,
|
|
69
52
|
},
|
|
@@ -81,21 +64,18 @@ var descriptor = {
|
|
|
81
64
|
onToggle: {
|
|
82
65
|
event: ''.concat(prefix, '-side-nav-menu-toggled'),
|
|
83
66
|
},
|
|
84
|
-
};
|
|
85
|
-
exports.
|
|
86
|
-
var propTypes = {
|
|
67
|
+
});
|
|
68
|
+
var propTypes = (exports.propTypes = {
|
|
87
69
|
active: _propTypes.default.bool,
|
|
88
70
|
expanded: _propTypes.default.bool,
|
|
89
71
|
forceCollapsed: _propTypes.default.bool,
|
|
90
72
|
title: _propTypes.default.string,
|
|
91
73
|
onBeforeToggle: _propTypes.default.func,
|
|
92
74
|
onToggle: _propTypes.default.func,
|
|
93
|
-
};
|
|
94
|
-
exports.propTypes = propTypes;
|
|
75
|
+
});
|
|
95
76
|
const Component = (0, _createReactCustomElementType.default)(
|
|
96
77
|
''.concat(prefix, '-side-nav-menu'),
|
|
97
78
|
descriptor
|
|
98
79
|
);
|
|
99
80
|
Component.propTypes = propTypes;
|
|
100
|
-
var _default = Component;
|
|
101
|
-
exports.default = _default;
|
|
81
|
+
var _default = (exports.default = Component);
|
|
@@ -35,48 +35,31 @@ var _settings = _interopRequireDefault(
|
|
|
35
35
|
function _interopRequireDefault(obj) {
|
|
36
36
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
37
37
|
}
|
|
38
|
-
function _getRequireWildcardCache(
|
|
39
|
-
if (typeof WeakMap
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
return (_getRequireWildcardCache = function (
|
|
43
|
-
return
|
|
44
|
-
})(
|
|
38
|
+
function _getRequireWildcardCache(e) {
|
|
39
|
+
if ('function' != typeof WeakMap) return null;
|
|
40
|
+
var r = new WeakMap(),
|
|
41
|
+
t = new WeakMap();
|
|
42
|
+
return (_getRequireWildcardCache = function (e) {
|
|
43
|
+
return e ? t : r;
|
|
44
|
+
})(e);
|
|
45
45
|
}
|
|
46
|
-
function _interopRequireWildcard(
|
|
47
|
-
if (!
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var hasPropertyDescriptor =
|
|
59
|
-
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
60
|
-
for (var key in obj) {
|
|
61
|
-
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
62
|
-
var desc = hasPropertyDescriptor
|
|
63
|
-
? Object.getOwnPropertyDescriptor(obj, key)
|
|
64
|
-
: null;
|
|
65
|
-
if (desc && (desc.get || desc.set)) {
|
|
66
|
-
Object.defineProperty(newObj, key, desc);
|
|
67
|
-
} else {
|
|
68
|
-
newObj[key] = obj[key];
|
|
69
|
-
}
|
|
46
|
+
function _interopRequireWildcard(e, r) {
|
|
47
|
+
if (!r && e && e.__esModule) return e;
|
|
48
|
+
if (null === e || ('object' != typeof e && 'function' != typeof e))
|
|
49
|
+
return { default: e };
|
|
50
|
+
var t = _getRequireWildcardCache(r);
|
|
51
|
+
if (t && t.has(e)) return t.get(e);
|
|
52
|
+
var n = { __proto__: null },
|
|
53
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
54
|
+
for (var u in e)
|
|
55
|
+
if ('default' !== u && Object.prototype.hasOwnProperty.call(e, u)) {
|
|
56
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
57
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : (n[u] = e[u]);
|
|
70
58
|
}
|
|
71
|
-
|
|
72
|
-
newObj.default = obj;
|
|
73
|
-
if (cache) {
|
|
74
|
-
cache.set(obj, newObj);
|
|
75
|
-
}
|
|
76
|
-
return newObj;
|
|
59
|
+
return (n.default = e), t && t.set(e, n), n;
|
|
77
60
|
}
|
|
78
61
|
var prefix = _settings.default.prefix;
|
|
79
|
-
var descriptor = {
|
|
62
|
+
var descriptor = (exports.descriptor = {
|
|
80
63
|
collapseMode: {
|
|
81
64
|
attribute: 'collapse-mode',
|
|
82
65
|
},
|
|
@@ -89,19 +72,16 @@ var descriptor = {
|
|
|
89
72
|
onButtonToggle: {
|
|
90
73
|
event: ''.concat(prefix, '-header-menu-button-toggled'),
|
|
91
74
|
},
|
|
92
|
-
};
|
|
93
|
-
exports.
|
|
94
|
-
var propTypes = {
|
|
75
|
+
});
|
|
76
|
+
var propTypes = (exports.propTypes = {
|
|
95
77
|
collapseMode: _propTypes.default.string,
|
|
96
78
|
expanded: _propTypes.default.bool,
|
|
97
79
|
usageMode: _propTypes.default.string,
|
|
98
80
|
onButtonToggle: _propTypes.default.func,
|
|
99
|
-
};
|
|
100
|
-
exports.propTypes = propTypes;
|
|
81
|
+
});
|
|
101
82
|
const Component = (0, _createReactCustomElementType.default)(
|
|
102
83
|
''.concat(prefix, '-side-nav'),
|
|
103
84
|
descriptor
|
|
104
85
|
);
|
|
105
86
|
Component.propTypes = propTypes;
|
|
106
|
-
var _default = Component;
|
|
107
|
-
exports.default = _default;
|
|
87
|
+
var _default = (exports.default = Component);
|
package/lib/globals/settings.js
CHANGED
|
@@ -30,7 +30,7 @@ const {
|
|
|
30
30
|
* A selector selecting tabbable nodes.
|
|
31
31
|
* Borrowed from `carbon-angular`. tabbable === focusable.
|
|
32
32
|
*/
|
|
33
|
-
const selectorTabbable = `
|
|
33
|
+
const selectorTabbable = exports.selectorTabbable = `
|
|
34
34
|
a[href], area[href], input:not([disabled]):not([tabindex='-1']),
|
|
35
35
|
button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
|
|
36
36
|
textarea:not([disabled]):not([tabindex='-1']),
|
|
@@ -88,5 +88,4 @@ const selectorTabbable = `
|
|
|
88
88
|
`;
|
|
89
89
|
|
|
90
90
|
// Because we're going to have a bunch of exports
|
|
91
|
-
exports.selectorTabbable = selectorTabbable;
|
|
92
91
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","names":["_settings","_interopRequireDefault","require","prefix","settings","selectorTabbable","exports"],"sources":["globals/settings.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport settings from 'carbon-components/es/globals/js/settings';\n\nconst { prefix } = settings;\n\n/**\n * A selector selecting tabbable nodes.\n * Borrowed from `carbon-angular`. tabbable === focusable.\n */\nconst selectorTabbable = `\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true],\n ${prefix}-accordion-item,\n ${prefix}-btn,\n ${prefix}-breadcrumb-link,\n ${prefix}-checkbox,\n ${prefix}-code-snippet,\n ${prefix}-combo-box,\n ${prefix}-content-switcher-item,\n ${prefix}-copy-button,\n ${prefix}-table-header-row,\n ${prefix}-table-row,\n ${prefix}-table-toolbar-search,\n ${prefix}-date-picker-input,\n ${prefix}-dropdown,\n ${prefix}-input,\n ${prefix}-link,\n ${prefix}-number-input,\n ${prefix}-modal,\n ${prefix}-modal-close-button,\n ${prefix}-multi-select,\n ${prefix}-inline-notification,\n ${prefix}-toast-notification,\n ${prefix}-overflow-menu,\n ${prefix}-overflow-menu-item,\n ${prefix}-page-sizes-select,\n ${prefix}-pages-select,\n ${prefix}-progress-step,\n ${prefix}-radio-button,\n ${prefix}-search,\n ${prefix}-slider,\n ${prefix}-slider-input,\n ${prefix}-structured-list,\n ${prefix}-tab,\n ${prefix}-filter-tag,\n ${prefix}-textarea,\n ${prefix}-clickable-tile,\n ${prefix}-expandable-tile,\n ${prefix}-radio-tile,\n ${prefix}-selectable-tile,\n ${prefix}-toggle,\n ${prefix}-tooltip,\n ${prefix}-tooltip-definition,\n ${prefix}-tooltip-icon,\n ${prefix}-header-menu,\n ${prefix}-header-menu-button,\n ${prefix}-header-menu-item,\n ${prefix}-header-name,\n ${prefix}-header-nav-item,\n ${prefix}-side-nav-link,\n ${prefix}-side-nav-menu,\n ${prefix}-side-nav-menu-item\n`;\n\n// Because we're going to have a bunch of exports\nexport { selectorTabbable };\n"],"mappings":";;;;;;;AASA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,MAAM;EAAEC;AAAO,CAAC,GAAGC,iBAAQ;;AAE3B;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAI;AAC1B;AACA;AACA;AACA;AACA,IAAIF,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,CAAC;;AAED
|
|
1
|
+
{"version":3,"file":"settings.js","names":["_settings","_interopRequireDefault","require","prefix","settings","selectorTabbable","exports"],"sources":["globals/settings.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport settings from 'carbon-components/es/globals/js/settings';\n\nconst { prefix } = settings;\n\n/**\n * A selector selecting tabbable nodes.\n * Borrowed from `carbon-angular`. tabbable === focusable.\n */\nconst selectorTabbable = `\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true],\n ${prefix}-accordion-item,\n ${prefix}-btn,\n ${prefix}-breadcrumb-link,\n ${prefix}-checkbox,\n ${prefix}-code-snippet,\n ${prefix}-combo-box,\n ${prefix}-content-switcher-item,\n ${prefix}-copy-button,\n ${prefix}-table-header-row,\n ${prefix}-table-row,\n ${prefix}-table-toolbar-search,\n ${prefix}-date-picker-input,\n ${prefix}-dropdown,\n ${prefix}-input,\n ${prefix}-link,\n ${prefix}-number-input,\n ${prefix}-modal,\n ${prefix}-modal-close-button,\n ${prefix}-multi-select,\n ${prefix}-inline-notification,\n ${prefix}-toast-notification,\n ${prefix}-overflow-menu,\n ${prefix}-overflow-menu-item,\n ${prefix}-page-sizes-select,\n ${prefix}-pages-select,\n ${prefix}-progress-step,\n ${prefix}-radio-button,\n ${prefix}-search,\n ${prefix}-slider,\n ${prefix}-slider-input,\n ${prefix}-structured-list,\n ${prefix}-tab,\n ${prefix}-filter-tag,\n ${prefix}-textarea,\n ${prefix}-clickable-tile,\n ${prefix}-expandable-tile,\n ${prefix}-radio-tile,\n ${prefix}-selectable-tile,\n ${prefix}-toggle,\n ${prefix}-tooltip,\n ${prefix}-tooltip-definition,\n ${prefix}-tooltip-icon,\n ${prefix}-header-menu,\n ${prefix}-header-menu-button,\n ${prefix}-header-menu-item,\n ${prefix}-header-name,\n ${prefix}-header-nav-item,\n ${prefix}-side-nav-link,\n ${prefix}-side-nav-menu,\n ${prefix}-side-nav-menu-item\n`;\n\n// Because we're going to have a bunch of exports\nexport { selectorTabbable };\n"],"mappings":";;;;;;;AASA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,MAAM;EAAEC;AAAO,CAAC,GAAGC,iBAAQ;;AAE3B;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAI;AAC1B;AACA;AACA;AACA;AACA,IAAIF,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,IAAIA,MAAO;AACX,CAAC;;AAED"}
|
|
@@ -15,8 +15,7 @@ exports.FORM_ELEMENT_COLOR_SCHEME = void 0;
|
|
|
15
15
|
/**
|
|
16
16
|
* Color scheme for form elements.
|
|
17
17
|
*/
|
|
18
|
-
let FORM_ELEMENT_COLOR_SCHEME;
|
|
19
|
-
exports.FORM_ELEMENT_COLOR_SCHEME = FORM_ELEMENT_COLOR_SCHEME;
|
|
18
|
+
let FORM_ELEMENT_COLOR_SCHEME = exports.FORM_ELEMENT_COLOR_SCHEME = void 0;
|
|
20
19
|
(function (FORM_ELEMENT_COLOR_SCHEME) {
|
|
21
20
|
FORM_ELEMENT_COLOR_SCHEME["REGULAR"] = "";
|
|
22
21
|
FORM_ELEMENT_COLOR_SCHEME["LIGHT"] = "light";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-enums.js","names":["FORM_ELEMENT_COLOR_SCHEME","exports"],"sources":["globals/shared-enums.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Color scheme for form elements.\n */\nexport enum FORM_ELEMENT_COLOR_SCHEME {\n /**\n * Regular color scheme.\n */\n REGULAR = '',\n\n /**\n * Light color scheme.\n */\n LIGHT = 'light',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,yBAAyB
|
|
1
|
+
{"version":3,"file":"shared-enums.js","names":["FORM_ELEMENT_COLOR_SCHEME","exports"],"sources":["globals/shared-enums.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Color scheme for form elements.\n */\nexport enum FORM_ELEMENT_COLOR_SCHEME {\n /**\n * Regular color scheme.\n */\n REGULAR = '',\n\n /**\n * Light color scheme.\n */\n LIGHT = 'light',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA;AAAA,WAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;AAAA,GAAzBA,yBAAyB,KAAAC,OAAA,CAAAD,yBAAA,GAAzBA,yBAAyB"}
|
|
@@ -10,6 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _on = _interopRequireDefault(require("carbon-components/umd/globals/js/misc/on"));
|
|
13
|
+
const _excluded = ["children", "innerRef"];
|
|
13
14
|
/**
|
|
14
15
|
* @license
|
|
15
16
|
*
|
|
@@ -18,7 +19,6 @@ var _on = _interopRequireDefault(require("carbon-components/umd/globals/js/misc/
|
|
|
18
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
20
|
* LICENSE file in the root directory of this source tree.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
22
|
/**
|
|
23
23
|
* A descriptor for a React event prop of a custom element.
|
|
24
24
|
*/
|
|
@@ -254,7 +254,7 @@ const createReactCustomElementType = (name, descriptor) => {
|
|
|
254
254
|
children,
|
|
255
255
|
innerRef
|
|
256
256
|
} = _this$props,
|
|
257
|
-
props = (0, _objectWithoutProperties2.default)(_this$props,
|
|
257
|
+
props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
258
258
|
const mergedRef = mergeRefs(innerRef, this._handleElemRef);
|
|
259
259
|
return (0, _react.createElement)(name, (0, _objectSpread2.default)({
|
|
260
260
|
ref: mergedRef
|
|
@@ -286,6 +286,5 @@ const numberSerializer = value => value == null ? value : String(value);
|
|
|
286
286
|
exports.numberSerializer = numberSerializer;
|
|
287
287
|
const objectSerializer = value => value == null ? value : JSON.stringify(value);
|
|
288
288
|
exports.objectSerializer = objectSerializer;
|
|
289
|
-
var _default = createReactCustomElementType;
|
|
290
|
-
exports.default = _default;
|
|
289
|
+
var _default = exports.default = createReactCustomElementType;
|
|
291
290
|
//# sourceMappingURL=createReactCustomElementType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReactCustomElementType.js","names":["_react","require","_on","_interopRequireDefault","mergeRefs","refs","el","forEach","ref","Object","current","convertProp","prop","descriptor","event","serialize","undefined","convertProps","props","keys","reduce","acc","propName","descriptorItem","converted","attribute","_objectSpread2","default","attachEventListeners","elem","callback","handles","Set","eventDescriptor","name","options","add","on","release","handle","delete","createReactCustomElementType","nonAttributeProps","filter","CustomElementType","Component","constructor","args","_defineProperty2","listener","call","currentTarget","_elem","_eventListenersHandle","_handleEvent","updateProps","prevProps","prevValue","value","componentDidMount","componentDidUpdate","render","_this$props","children","innerRef","_objectWithoutProperties2","mergedRef","_handleElemRef","createElement","forwardRef","booleanSerializer","exports","numberSerializer","String","objectSerializer","JSON","stringify","_default"],"sources":["globals/wrappers/createReactCustomElementType.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport React, { Component, createElement, forwardRef } from 'react';\nimport on from 'carbon-components/es/globals/js/misc/on';\nimport Handle from '../internal/handle';\n\n/**\n * A descriptor for a React event prop of a custom element.\n */\ninterface CustomElementEventDescriptor {\n /**\n * The event name.\n */\n name: string;\n\n /**\n * A boolean to detemine usage of capture mode or the event options.\n */\n options?: boolean | EventListenerOptions;\n}\n\n/**\n * A descriptor for a React prop for an attribute of a custom element.\n */\ninterface CustomElementPropDescriptor {\n /**\n * The attribute name for the prop.\n */\n attribute?: string | false;\n\n /**\n * The event name (or descriptor) for the prop.\n */\n event?: string | CustomElementEventDescriptor;\n\n /**\n * A function that takes a property value and returns the corresponding attribute value.\n */\n serialize?: (value: any) => string | void;\n}\n\n/**\n * A descriptor for a set of React props for attributes of a custom element.\n */\ninterface CustomElementPropsDescriptor {\n [propName: string]: CustomElementPropDescriptor;\n}\n\n/**\n * React props for the component `createCustomElementType()` generates.\n */\ninterface CustomElementTypeProps {\n /**\n * Ordinal prop.\n */\n [propName: string]: any;\n\n /**\n * Child nodes.\n */\n // eslint-disable-next-line react/no-unused-prop-types\n children?: React.ReactNode;\n}\n\n/**\n * @param refs List of React refs to merge.\n * @returns Merged React ref.\n */\nconst mergeRefs =\n <T>(...refs: React.Ref<T>[]) =>\n (el) => {\n refs.forEach((ref) => {\n // https://github.com/facebook/react/issues/13029#issuecomment-410002316\n if (typeof ref === 'function') {\n ref(el);\n } else if (Object(ref) === ref) {\n // `React.Ref.current` is read-only for regular use case, but we update it here\n (ref as { current: T }).current = el;\n }\n });\n };\n\n/**\n * @param prop A prop value.\n * @param descriptor A React prop descriptor.\n * @returns The corresponding attribute value for the given prop value.\n */\nconst convertProp = (prop: any, descriptor: CustomElementPropDescriptor) => {\n if (!descriptor) {\n return prop;\n }\n const { event, serialize } = descriptor;\n if (event) {\n // Events are not set as props, we use DOM `addEventListener()` instead\n return undefined;\n }\n return !serialize ? prop : serialize(prop);\n};\n\n/**\n * @param props A set of React props.\n * @param descriptor A set of React prop desciptor.\n * @returns The set of React props to set to a custom element, corresponding to the given React props.\n */\nconst convertProps = (\n props: CustomElementTypeProps,\n descriptor: CustomElementPropsDescriptor\n) =>\n Object.keys(props).reduce((acc, propName) => {\n const { [propName]: descriptorItem } = descriptor;\n const converted = convertProp(props[propName], descriptorItem);\n const { attribute } = descriptorItem ?? {};\n return attribute === false\n ? acc\n : {\n ...acc,\n [attribute || propName]: converted,\n };\n }, {});\n\n/**\n * Attaches listeners of custom events, to a custom element.\n *\n * @param elem The custom element.\n * @param descriptor An object, keyed by prop name, of data that may have custom event names.\n * @param callback A callback function that runs as the custom events fire.\n * @returns A handle that allows to release all event listeners attached.\n */\nconst attachEventListeners = (\n elem: HTMLElement,\n descriptor: CustomElementPropsDescriptor,\n callback: (name: string, event: Event) => void\n): Handle => {\n const handles = new Set<Handle>();\n Object.keys(descriptor).forEach((propName) => {\n if (descriptor[propName]) {\n const { event: eventDescriptor } = descriptor[propName];\n const name =\n Object(eventDescriptor) !== eventDescriptor\n ? (eventDescriptor as string)\n : (eventDescriptor as CustomElementEventDescriptor).name;\n const options =\n Object(eventDescriptor) !== eventDescriptor\n ? undefined\n : (eventDescriptor as CustomElementEventDescriptor).options;\n if (name) {\n handles.add(\n on(\n elem,\n name,\n (event) => {\n callback(propName, event);\n },\n options\n )\n );\n }\n }\n });\n return {\n release() {\n handles.forEach((handle) => {\n handle.release();\n handles.delete(handle);\n });\n return null;\n },\n };\n};\n\n/**\n * @param name The tag name of the custom element.\n * @param descriptor A descriptor for a set of React props for attributes of a custom element.\n * @returns A React component working as a wrapper for the given custom element.\n * @example\n * import { render } from 'react-dom';\n * import createCustomElementType, { booleanSerializer } from '/path/to/createCustomElementType';\n *\n * const BXDropdown = createCustomElementType('bx-dropdown', {\n * disabled: {\n * // Sets `disabled` attribute when the React prop value is truthy, unsets otherwise\n * serialize: booleanSerializer,\n * },\n * helperText: {\n * // Maps `helperText` React prop to `helper-text` attribute\n * attribute: 'helper-text',\n * },\n * onBeforeSelect: {\n * // Sets `onBeforeSelect` React prop value as a listener of `bx-dropdown-beingselected` custom event\n * event: 'bx-dropdown-beingselected',\n * },\n * });\n *\n * render(\n * (\n * <BXDropdown\n * disabled={true}\n * helperText=\"some-helper-text\"\n * onBeforeSelect={event => { console.log('bx-dropdown-beingselected is fired!', event); }}>\n * <bx-dropdown-item value=\"all\">Option 1</bx-dropdown-item>\n * <bx-dropdown-item value=\"cloudFoundry\">Option 2</bx-dropdown-item>\n * <bx-dropdown-item value=\"staging\">Option 3</bx-dropdown-item>\n * </BXDropdown>\n * )\n * document.body\n * );\n */\nconst createReactCustomElementType = (\n name: string,\n descriptor: CustomElementPropsDescriptor\n) => {\n /**\n * Array of React prop names that should be mapped to DOM properties instead of attributes.\n */\n const nonAttributeProps = Object.keys(descriptor).filter((propName) => {\n const { [propName]: descriptorItem } = descriptor;\n const { attribute } = descriptorItem ?? {};\n return attribute === false;\n });\n\n /**\n * A React component working as a wrapper for the custom element.\n */\n class CustomElementType extends Component<CustomElementTypeProps> {\n /**\n * The element.\n */\n private _elem: HTMLElement | null = null;\n\n /**\n * The handle that allows to release all event listeners attached to this custom element.\n */\n private _eventListenersHandle: Handle | null = null;\n\n /**\n * The callback function that runs as the custom events fire.\n *\n * @param propName The React prop name associated with the event listener.\n * @param event The event.\n */\n private _handleEvent = (propName: string, event: Event) => {\n const { [propName]: listener } = this.props;\n if (listener) {\n listener.call(event.currentTarget, event);\n }\n };\n\n /**\n * Handles getting/losing the React `ref` object of this custom element.\n *\n * @param elem The custom element.\n */\n private _handleElemRef = (elem: HTMLElement) => {\n this._elem = elem;\n if (this._eventListenersHandle) {\n this._eventListenersHandle.release();\n this._eventListenersHandle = null;\n }\n if (elem) {\n this._eventListenersHandle = attachEventListeners(\n elem,\n descriptor,\n this._handleEvent\n );\n }\n };\n\n /**\n * Reflects change in React props to DOM properties.\n *\n * @param prevProps The previous props.\n */\n updateProps(prevProps: { [key: string]: any } = {}) {\n const { props, _elem: elem } = this;\n nonAttributeProps.forEach((propName) => {\n const { [propName]: prevValue } = prevProps;\n const { [propName]: value } = props;\n if (prevValue !== value) {\n elem![propName] = value;\n }\n });\n }\n\n componentDidMount() {\n this.updateProps();\n }\n\n componentDidUpdate(prevProps) {\n this.updateProps(prevProps);\n }\n\n render() {\n // eslint-disable-next-line react/prop-types\n const { children, innerRef, ...props } = this.props;\n const mergedRef = mergeRefs<HTMLElement>(innerRef, this._handleElemRef);\n return createElement(\n name,\n { ref: mergedRef, ...convertProps(props, descriptor) },\n children\n );\n }\n }\n\n return forwardRef<HTMLElement, CustomElementTypeProps>((props, ref) =>\n createElement(CustomElementType, { ...props, innerRef: ref })\n );\n};\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a boolean attribute in a custom element.\n */\nexport const booleanSerializer = (value) => (!value ? undefined : '');\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a number attribute in a custom element.\n */\nexport const numberSerializer = (value) =>\n value == null ? value : String(value);\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a object attribute in a custom element.\n */\nexport const objectSerializer = (value) =>\n value == null ? value : JSON.stringify(value);\n\nexport default createReactCustomElementType;\n"],"mappings":";;;;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAC,sBAAA,CAAAF,OAAA;AAVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;;AAaA;AACA;AACA;;AAkBA;AACA;AACA;;AAKA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA,MAAMG,SAAS,GACbA,CAAI,GAAGC,IAAoB,KAC1BC,EAAE,IAAK;EACND,IAAI,CAACE,OAAO,CAAEC,GAAG,IAAK;IACpB;IACA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;MAC7BA,GAAG,CAACF,EAAE,CAAC;IACT,CAAC,MAAM,IAAIG,MAAM,CAACD,GAAG,CAAC,KAAKA,GAAG,EAAE;MAC9B;MACCA,GAAG,CAAoBE,OAAO,GAAGJ,EAAE;IACtC;EACF,CAAC,CAAC;AACJ,CAAC;;AAEH;AACA;AACA;AACA;AACA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A,KAAK,IAAI,IAAI,GAAGA,KAAK,GAAGe,MAAM,CAACf,KAAK,CAAC;;AAEvC;AACA;AACA;AACA;AAHAa,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAIO,MAAME,gBAAgB,GAAIhB,KAAK,IACpCA,KAAK,IAAI,IAAI,GAAGA,KAAK,GAAGiB,IAAI,CAACC,SAAS,CAAClB,KAAK,CAAC;AAACa,OAAA,CAAAG,gBAAA,GAAAA,gBAAA;AAAA,IAAAG,QAAA,GAEjCpC,4BAA4B;AAAA8B,OAAA,CAAA5C,OAAA,GAAAkD,QAAA"}
|
|
1
|
+
{"version":3,"file":"createReactCustomElementType.js","names":["_react","require","_on","_interopRequireDefault","_excluded","mergeRefs","refs","el","forEach","ref","Object","current","convertProp","prop","descriptor","event","serialize","undefined","convertProps","props","keys","reduce","acc","propName","descriptorItem","converted","attribute","_objectSpread2","default","attachEventListeners","elem","callback","handles","Set","eventDescriptor","name","options","add","on","release","handle","delete","createReactCustomElementType","nonAttributeProps","filter","CustomElementType","Component","constructor","args","_defineProperty2","listener","call","currentTarget","_elem","_eventListenersHandle","_handleEvent","updateProps","prevProps","prevValue","value","componentDidMount","componentDidUpdate","render","_this$props","children","innerRef","_objectWithoutProperties2","mergedRef","_handleElemRef","createElement","forwardRef","booleanSerializer","exports","numberSerializer","String","objectSerializer","JSON","stringify","_default"],"sources":["globals/wrappers/createReactCustomElementType.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport React, { Component, createElement, forwardRef } from 'react';\nimport on from 'carbon-components/es/globals/js/misc/on';\nimport Handle from '../internal/handle';\n\n/**\n * A descriptor for a React event prop of a custom element.\n */\ninterface CustomElementEventDescriptor {\n /**\n * The event name.\n */\n name: string;\n\n /**\n * A boolean to detemine usage of capture mode or the event options.\n */\n options?: boolean | EventListenerOptions;\n}\n\n/**\n * A descriptor for a React prop for an attribute of a custom element.\n */\ninterface CustomElementPropDescriptor {\n /**\n * The attribute name for the prop.\n */\n attribute?: string | false;\n\n /**\n * The event name (or descriptor) for the prop.\n */\n event?: string | CustomElementEventDescriptor;\n\n /**\n * A function that takes a property value and returns the corresponding attribute value.\n */\n serialize?: (value: any) => string | void;\n}\n\n/**\n * A descriptor for a set of React props for attributes of a custom element.\n */\ninterface CustomElementPropsDescriptor {\n [propName: string]: CustomElementPropDescriptor;\n}\n\n/**\n * React props for the component `createCustomElementType()` generates.\n */\ninterface CustomElementTypeProps {\n /**\n * Ordinal prop.\n */\n [propName: string]: any;\n\n /**\n * Child nodes.\n */\n // eslint-disable-next-line react/no-unused-prop-types\n children?: React.ReactNode;\n}\n\n/**\n * @param refs List of React refs to merge.\n * @returns Merged React ref.\n */\nconst mergeRefs =\n <T>(...refs: React.Ref<T>[]) =>\n (el) => {\n refs.forEach((ref) => {\n // https://github.com/facebook/react/issues/13029#issuecomment-410002316\n if (typeof ref === 'function') {\n ref(el);\n } else if (Object(ref) === ref) {\n // `React.Ref.current` is read-only for regular use case, but we update it here\n (ref as { current: T }).current = el;\n }\n });\n };\n\n/**\n * @param prop A prop value.\n * @param descriptor A React prop descriptor.\n * @returns The corresponding attribute value for the given prop value.\n */\nconst convertProp = (prop: any, descriptor: CustomElementPropDescriptor) => {\n if (!descriptor) {\n return prop;\n }\n const { event, serialize } = descriptor;\n if (event) {\n // Events are not set as props, we use DOM `addEventListener()` instead\n return undefined;\n }\n return !serialize ? prop : serialize(prop);\n};\n\n/**\n * @param props A set of React props.\n * @param descriptor A set of React prop desciptor.\n * @returns The set of React props to set to a custom element, corresponding to the given React props.\n */\nconst convertProps = (\n props: CustomElementTypeProps,\n descriptor: CustomElementPropsDescriptor\n) =>\n Object.keys(props).reduce((acc, propName) => {\n const { [propName]: descriptorItem } = descriptor;\n const converted = convertProp(props[propName], descriptorItem);\n const { attribute } = descriptorItem ?? {};\n return attribute === false\n ? acc\n : {\n ...acc,\n [attribute || propName]: converted,\n };\n }, {});\n\n/**\n * Attaches listeners of custom events, to a custom element.\n *\n * @param elem The custom element.\n * @param descriptor An object, keyed by prop name, of data that may have custom event names.\n * @param callback A callback function that runs as the custom events fire.\n * @returns A handle that allows to release all event listeners attached.\n */\nconst attachEventListeners = (\n elem: HTMLElement,\n descriptor: CustomElementPropsDescriptor,\n callback: (name: string, event: Event) => void\n): Handle => {\n const handles = new Set<Handle>();\n Object.keys(descriptor).forEach((propName) => {\n if (descriptor[propName]) {\n const { event: eventDescriptor } = descriptor[propName];\n const name =\n Object(eventDescriptor) !== eventDescriptor\n ? (eventDescriptor as string)\n : (eventDescriptor as CustomElementEventDescriptor).name;\n const options =\n Object(eventDescriptor) !== eventDescriptor\n ? undefined\n : (eventDescriptor as CustomElementEventDescriptor).options;\n if (name) {\n handles.add(\n on(\n elem,\n name,\n (event) => {\n callback(propName, event);\n },\n options\n )\n );\n }\n }\n });\n return {\n release() {\n handles.forEach((handle) => {\n handle.release();\n handles.delete(handle);\n });\n return null;\n },\n };\n};\n\n/**\n * @param name The tag name of the custom element.\n * @param descriptor A descriptor for a set of React props for attributes of a custom element.\n * @returns A React component working as a wrapper for the given custom element.\n * @example\n * import { render } from 'react-dom';\n * import createCustomElementType, { booleanSerializer } from '/path/to/createCustomElementType';\n *\n * const BXDropdown = createCustomElementType('bx-dropdown', {\n * disabled: {\n * // Sets `disabled` attribute when the React prop value is truthy, unsets otherwise\n * serialize: booleanSerializer,\n * },\n * helperText: {\n * // Maps `helperText` React prop to `helper-text` attribute\n * attribute: 'helper-text',\n * },\n * onBeforeSelect: {\n * // Sets `onBeforeSelect` React prop value as a listener of `bx-dropdown-beingselected` custom event\n * event: 'bx-dropdown-beingselected',\n * },\n * });\n *\n * render(\n * (\n * <BXDropdown\n * disabled={true}\n * helperText=\"some-helper-text\"\n * onBeforeSelect={event => { console.log('bx-dropdown-beingselected is fired!', event); }}>\n * <bx-dropdown-item value=\"all\">Option 1</bx-dropdown-item>\n * <bx-dropdown-item value=\"cloudFoundry\">Option 2</bx-dropdown-item>\n * <bx-dropdown-item value=\"staging\">Option 3</bx-dropdown-item>\n * </BXDropdown>\n * )\n * document.body\n * );\n */\nconst createReactCustomElementType = (\n name: string,\n descriptor: CustomElementPropsDescriptor\n) => {\n /**\n * Array of React prop names that should be mapped to DOM properties instead of attributes.\n */\n const nonAttributeProps = Object.keys(descriptor).filter((propName) => {\n const { [propName]: descriptorItem } = descriptor;\n const { attribute } = descriptorItem ?? {};\n return attribute === false;\n });\n\n /**\n * A React component working as a wrapper for the custom element.\n */\n class CustomElementType extends Component<CustomElementTypeProps> {\n /**\n * The element.\n */\n private _elem: HTMLElement | null = null;\n\n /**\n * The handle that allows to release all event listeners attached to this custom element.\n */\n private _eventListenersHandle: Handle | null = null;\n\n /**\n * The callback function that runs as the custom events fire.\n *\n * @param propName The React prop name associated with the event listener.\n * @param event The event.\n */\n private _handleEvent = (propName: string, event: Event) => {\n const { [propName]: listener } = this.props;\n if (listener) {\n listener.call(event.currentTarget, event);\n }\n };\n\n /**\n * Handles getting/losing the React `ref` object of this custom element.\n *\n * @param elem The custom element.\n */\n private _handleElemRef = (elem: HTMLElement) => {\n this._elem = elem;\n if (this._eventListenersHandle) {\n this._eventListenersHandle.release();\n this._eventListenersHandle = null;\n }\n if (elem) {\n this._eventListenersHandle = attachEventListeners(\n elem,\n descriptor,\n this._handleEvent\n );\n }\n };\n\n /**\n * Reflects change in React props to DOM properties.\n *\n * @param prevProps The previous props.\n */\n updateProps(prevProps: { [key: string]: any } = {}) {\n const { props, _elem: elem } = this;\n nonAttributeProps.forEach((propName) => {\n const { [propName]: prevValue } = prevProps;\n const { [propName]: value } = props;\n if (prevValue !== value) {\n elem![propName] = value;\n }\n });\n }\n\n componentDidMount() {\n this.updateProps();\n }\n\n componentDidUpdate(prevProps) {\n this.updateProps(prevProps);\n }\n\n render() {\n // eslint-disable-next-line react/prop-types\n const { children, innerRef, ...props } = this.props;\n const mergedRef = mergeRefs<HTMLElement>(innerRef, this._handleElemRef);\n return createElement(\n name,\n { ref: mergedRef, ...convertProps(props, descriptor) },\n children\n );\n }\n }\n\n return forwardRef<HTMLElement, CustomElementTypeProps>((props, ref) =>\n createElement(CustomElementType, { ...props, innerRef: ref })\n );\n};\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a boolean attribute in a custom element.\n */\nexport const booleanSerializer = (value) => (!value ? undefined : '');\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a number attribute in a custom element.\n */\nexport const numberSerializer = (value) =>\n value == null ? value : String(value);\n\n/**\n * @param value A React prop value.\n * @returns Serialized version of React prop value, as a object attribute in a custom element.\n */\nexport const objectSerializer = (value) =>\n value == null ? value : JSON.stringify(value);\n\nexport default createReactCustomElementType;\n"],"mappings":";;;;;;;;;;AASA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAyD,MAAAG,SAAA;AAVzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;;AAaA;AACA;AACA;;AAkBA;AACA;AACA;;AAKA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA,MAAMC,SAAS,GACbA,CAAI,GAAGC,IAAoB,KAC1BC,EAAE,IAAK;EACND,IAAI,CAACE,OAAO,CAAEC,GAAG,IAAK;IACpB;IACA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;MAC7BA,GAAG,CAACF,EAAE,CAAC;IACT,CAAC,MAAM,IAAIG,MAAM,CAACD,GAAG,CAAC,KAAKA,GAAG,EAAE;MAC9B;MACCA,GAAG,CAAoBE,OAAO,GAAGJ,EAAE;IACtC;EACF,CAAC,CAAC;AACJ,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA,MAAMK,WAAW,GAAGA,CAACC,IAAS,EAAEC,UAAuC,KAAK;EAC1E,IAAI,CAACA,UAAU,EAAE;IACf,OAAOD,IAAI;EACb;EACA,MAAM;IAAEE,KAAK;I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gBAAA;AAIO,MAAME,gBAAgB,GAAIhB,KAAK,IACpCA,KAAK,IAAI,IAAI,GAAGA,KAAK,GAAGiB,IAAI,CAACC,SAAS,CAAClB,KAAK,CAAC;AAACa,OAAA,CAAAG,gBAAA,GAAAA,gBAAA;AAAA,IAAAG,QAAA,GAAAN,OAAA,CAAA5C,OAAA,GAEjCc,4BAA4B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/web-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0-rc.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "~7.12.0",
|
|
80
|
-
"@babel/plugin-proposal-class-properties": "~7.12.0",
|
|
81
80
|
"@babel/plugin-proposal-decorators": "~7.12.0",
|
|
82
|
-
"@babel/plugin-
|
|
83
|
-
"@babel/plugin-proposal-object-rest-spread": "~7.12.0",
|
|
84
|
-
"@babel/plugin-proposal-optional-chaining": "~7.12.0",
|
|
81
|
+
"@babel/plugin-transform-class-properties": "~7.22.5",
|
|
85
82
|
"@babel/plugin-transform-modules-commonjs": "~7.12.0",
|
|
83
|
+
"@babel/plugin-transform-nullish-coalescing-operator": "~7.22.11",
|
|
84
|
+
"@babel/plugin-transform-object-rest-spread": "~7.22.15",
|
|
85
|
+
"@babel/plugin-transform-optional-chaining": "~7.23.0",
|
|
86
86
|
"@babel/plugin-transform-runtime": "7.18.5",
|
|
87
87
|
"@babel/plugin-transform-template-literals": "~7.12.0",
|
|
88
88
|
"@babel/plugin-transform-typescript": "~7.12.0",
|
|
89
|
-
"@babel/preset-env": "~7.
|
|
89
|
+
"@babel/preset-env": "~7.23.2",
|
|
90
90
|
"@babel/preset-modules": "^0.1.5",
|
|
91
91
|
"@babel/template": "~7.12.0",
|
|
92
|
-
"@babel/traverse": "~7.
|
|
92
|
+
"@babel/traverse": "~7.23.0",
|
|
93
93
|
"@carbon/icon-helpers": "^10.28.0",
|
|
94
94
|
"@carbon/icons": "^10.48.0",
|
|
95
95
|
"@open-wc/semantic-dom-diff": "~0.18.0",
|
|
@@ -211,5 +211,5 @@
|
|
|
211
211
|
"zone.js": "~0.14.0"
|
|
212
212
|
},
|
|
213
213
|
"typings": "es/index.d.ts",
|
|
214
|
-
"gitHead": "
|
|
214
|
+
"gitHead": "af3f800ae4236d13d49a16c3d0e2633acf6cb700"
|
|
215
215
|
}
|
package/dist/16-b206f640.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2019, 2020
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
*
|
|
12
|
-
* This bundle contains the following third-party dependencies:
|
|
13
|
-
*
|
|
14
|
-
* lit-html:
|
|
15
|
-
*
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
18
|
-
* This code may only be used under the BSD style license found at
|
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
|
20
|
-
* The complete set of authors may be found at
|
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
22
|
-
* The complete set of contributors may be found at
|
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
|
25
|
-
* subject to an additional IP rights grant found at
|
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
|
27
|
-
*
|
|
28
|
-
* lit-element:
|
|
29
|
-
*
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
-
* This code may only be used under the BSD style license found at
|
|
33
|
-
* http://polymer.github.io/LICENSE.txt
|
|
34
|
-
* The complete set of authors may be found at
|
|
35
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
36
|
-
* The complete set of contributors may be found at
|
|
37
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
38
|
-
* Code distributed by Google as part of the polymer project is also
|
|
39
|
-
* subject to an additional IP rights grant found at
|
|
40
|
-
* http://polymer.github.io/PATENTS.txt
|
|
41
|
-
*
|
|
42
|
-
* flatpickr:
|
|
43
|
-
*
|
|
44
|
-
*****************************************************************************
|
|
45
|
-
Copyright (c) Microsoft Corporation.
|
|
46
|
-
|
|
47
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
48
|
-
purpose with or without fee is hereby granted.
|
|
49
|
-
|
|
50
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
51
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
52
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
53
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
54
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
55
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
56
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
57
|
-
*****************************************************************************
|
|
58
|
-
*
|
|
59
|
-
* Also refer to the following links for the license of other third-party dependencies:
|
|
60
|
-
*
|
|
61
|
-
* https://www.npmjs.com/package/@carbon/icons
|
|
62
|
-
* https://www.npmjs.com/package/lodash-es
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
import{a as t}from"./settings-f1ddfc10.js";import{s as e}from"./spread-dc4ee429.js";const s=({children:s,...a}={})=>t`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${e(a)}" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16">${s}${s}<path d="M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"></path><path d="M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z" data-icon-path="inner-path" opacity="0"></path></svg>`;export{s};
|
package/dist/16-ce95fee1.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2019, 2020
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
*
|
|
12
|
-
* This bundle contains the following third-party dependencies:
|
|
13
|
-
*
|
|
14
|
-
* lit-html:
|
|
15
|
-
*
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
18
|
-
* This code may only be used under the BSD style license found at
|
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
|
20
|
-
* The complete set of authors may be found at
|
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
22
|
-
* The complete set of contributors may be found at
|
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
|
25
|
-
* subject to an additional IP rights grant found at
|
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
|
27
|
-
*
|
|
28
|
-
* lit-element:
|
|
29
|
-
*
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
-
* This code may only be used under the BSD style license found at
|
|
33
|
-
* http://polymer.github.io/LICENSE.txt
|
|
34
|
-
* The complete set of authors may be found at
|
|
35
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
36
|
-
* The complete set of contributors may be found at
|
|
37
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
38
|
-
* Code distributed by Google as part of the polymer project is also
|
|
39
|
-
* subject to an additional IP rights grant found at
|
|
40
|
-
* http://polymer.github.io/PATENTS.txt
|
|
41
|
-
*
|
|
42
|
-
* flatpickr:
|
|
43
|
-
*
|
|
44
|
-
*****************************************************************************
|
|
45
|
-
Copyright (c) Microsoft Corporation.
|
|
46
|
-
|
|
47
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
48
|
-
purpose with or without fee is hereby granted.
|
|
49
|
-
|
|
50
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
51
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
52
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
53
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
54
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
55
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
56
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
57
|
-
*****************************************************************************
|
|
58
|
-
*
|
|
59
|
-
* Also refer to the following links for the license of other third-party dependencies:
|
|
60
|
-
*
|
|
61
|
-
* https://www.npmjs.com/package/@carbon/icons
|
|
62
|
-
* https://www.npmjs.com/package/lodash-es
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
import{a as t}from"./settings-f1ddfc10.js";import{s as e}from"./spread-dc4ee429.js";const s=({children:s,...a}={})=>t`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${e(a)}" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16">${s}<path d="M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"></path><path d="M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z" data-icon-path="inner-path" opacity="0"></path></svg>`;export{s};
|
package/dist/20-434c5bc4.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2019, 2020
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
*
|
|
12
|
-
* This bundle contains the following third-party dependencies:
|
|
13
|
-
*
|
|
14
|
-
* lit-html:
|
|
15
|
-
*
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
18
|
-
* This code may only be used under the BSD style license found at
|
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
|
20
|
-
* The complete set of authors may be found at
|
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
22
|
-
* The complete set of contributors may be found at
|
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
|
25
|
-
* subject to an additional IP rights grant found at
|
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
|
27
|
-
*
|
|
28
|
-
* lit-element:
|
|
29
|
-
*
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
-
* This code may only be used under the BSD style license found at
|
|
33
|
-
* http://polymer.github.io/LICENSE.txt
|
|
34
|
-
* The complete set of authors may be found at
|
|
35
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
36
|
-
* The complete set of contributors may be found at
|
|
37
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
38
|
-
* Code distributed by Google as part of the polymer project is also
|
|
39
|
-
* subject to an additional IP rights grant found at
|
|
40
|
-
* http://polymer.github.io/PATENTS.txt
|
|
41
|
-
*
|
|
42
|
-
* flatpickr:
|
|
43
|
-
*
|
|
44
|
-
*****************************************************************************
|
|
45
|
-
Copyright (c) Microsoft Corporation.
|
|
46
|
-
|
|
47
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
48
|
-
purpose with or without fee is hereby granted.
|
|
49
|
-
|
|
50
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
51
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
52
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
53
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
54
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
55
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
56
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
57
|
-
*****************************************************************************
|
|
58
|
-
*
|
|
59
|
-
* Also refer to the following links for the license of other third-party dependencies:
|
|
60
|
-
*
|
|
61
|
-
* https://www.npmjs.com/package/@carbon/icons
|
|
62
|
-
* https://www.npmjs.com/package/lodash-es
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
import{a as e}from"./settings-f1ddfc10.js";import{s}from"./spread-dc4ee429.js";const t=({children:t,...r}={})=>e`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${s(r)}" aria-hidden="true" width="20" height="20" viewBox="0 0 32 32">${t}${t}<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>`;export{t as s};
|