@arc-ui/components 11.8.0 → 11.10.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/dist/Alert/Alert.cjs.js +15 -15
- package/dist/Alert/Alert.esm.js +15 -15
- package/dist/Alert/package.json +1 -1
- package/dist/Align/Align.cjs.js +3 -3
- package/dist/Align/Align.esm.js +3 -3
- package/dist/Align/package.json +1 -1
- package/dist/Badge/Badge.cjs.js +8 -8
- package/dist/Badge/Badge.esm.js +8 -8
- package/dist/Badge/package.json +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.js +2 -2
- package/dist/Base/package.json +1 -1
- package/dist/Box/Box.cjs.js +3 -3
- package/dist/Box/Box.esm.js +3 -3
- package/dist/Box/package.json +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +5 -5
- package/dist/BrandLogo/BrandLogo.esm.js +5 -5
- package/dist/BrandLogo/package.json +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +8 -8
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +8 -8
- package/dist/Breadcrumbs/package.json +1 -1
- package/dist/Button/Button.cjs.js +8 -8
- package/dist/Button/Button.esm.js +8 -8
- package/dist/Button/package.json +1 -1
- package/dist/Card/Card.cjs.js +9 -9
- package/dist/Card/Card.esm.js +9 -9
- package/dist/Card/package.json +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +11 -11
- package/dist/Checkbox/Checkbox.esm.js +11 -11
- package/dist/Checkbox/package.json +1 -1
- package/dist/Clock/Clock.cjs.js +1 -1
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Clock/package.json +1 -1
- package/dist/Columns/Columns.cjs.js +4 -4
- package/dist/Columns/Columns.esm.js +4 -4
- package/dist/Columns/package.json +1 -1
- package/dist/Curve/Curve.cjs.js +4 -4
- package/dist/Curve/Curve.esm.js +4 -4
- package/dist/Curve/package.json +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +7 -7
- package/dist/Disclosure/Disclosure.esm.js +7 -7
- package/dist/Disclosure/package.json +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +7 -7
- package/dist/DisclosureMini/DisclosureMini.esm.js +7 -7
- package/dist/DisclosureMini/package.json +1 -1
- package/dist/Elevation/Elevation.cjs.js +2 -2
- package/dist/Elevation/Elevation.esm.js +2 -2
- package/dist/Elevation/package.json +1 -1
- package/dist/Filter/Filter.cjs.js +4 -4
- package/dist/Filter/Filter.esm.js +4 -4
- package/dist/Filter/package.json +1 -1
- package/dist/FormControl/FormControl.cjs.js +9 -9
- package/dist/FormControl/FormControl.esm.js +9 -9
- package/dist/FormControl/package.json +1 -1
- package/dist/Group/Group.cjs.js +4 -4
- package/dist/Group/Group.esm.js +4 -4
- package/dist/Group/package.json +1 -1
- package/dist/Heading/Heading.cjs.js +5 -5
- package/dist/Heading/Heading.esm.js +5 -5
- package/dist/Heading/package.json +1 -1
- package/dist/Icon/Icon.cjs.js +5 -5
- package/dist/Icon/Icon.esm.js +5 -5
- package/dist/Icon/package.json +1 -1
- package/dist/Image/Image.cjs.js +4 -4
- package/dist/Image/Image.esm.js +4 -4
- package/dist/Image/package.json +1 -1
- package/dist/Markup/Markup.cjs.js +3 -3
- package/dist/Markup/Markup.esm.js +3 -3
- package/dist/Markup/package.json +1 -1
- package/dist/Modal/Modal.cjs.js +21 -97
- package/dist/Modal/Modal.esm.js +21 -97
- package/dist/Modal/package.json +1 -1
- package/dist/Pagination/Pagination.cjs.js +9 -9
- package/dist/Pagination/Pagination.esm.js +9 -9
- package/dist/Pagination/package.json +1 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +9 -9
- package/dist/PaginationSimple/PaginationSimple.esm.js +9 -9
- package/dist/PaginationSimple/package.json +1 -1
- package/dist/Poster/Poster.cjs.js +6 -6
- package/dist/Poster/Poster.esm.js +6 -6
- package/dist/Poster/package.json +1 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +20 -22
- package/dist/ProgressBar/ProgressBar.esm.js +17 -19
- package/dist/ProgressBar/package.json +1 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +11 -145
- package/dist/ProgressStepper/ProgressStepper.esm.js +10 -144
- package/dist/ProgressStepper/package.json +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +10 -10
- package/dist/RadioGroup/RadioGroup.esm.js +10 -10
- package/dist/RadioGroup/package.json +1 -1
- package/dist/Rule/Rule.cjs.js +3 -3
- package/dist/Rule/Rule.esm.js +3 -3
- package/dist/Rule/package.json +1 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +14 -16
- package/dist/ScrollToTop/ScrollToTop.esm.js +10 -12
- package/dist/ScrollToTop/package.json +1 -1
- package/dist/Section/Section.cjs.js +3 -3
- package/dist/Section/Section.esm.js +3 -3
- package/dist/Section/package.json +1 -1
- package/dist/Select/Select.cjs.js +192 -572
- package/dist/Select/Select.esm.js +55 -435
- package/dist/Select/package.json +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +9 -9
- package/dist/SiteFooter/SiteFooter.esm.js +10 -10
- package/dist/SiteFooter/package.json +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +13 -13
- package/dist/SiteHeader/SiteHeader.esm.js +13 -13
- package/dist/SiteHeader/package.json +1 -1
- package/dist/Surface/Surface.cjs.js +3 -3
- package/dist/Surface/Surface.esm.js +3 -3
- package/dist/Surface/package.json +1 -1
- package/dist/Switch/Switch.cjs.js +21 -244
- package/dist/Switch/Switch.esm.js +16 -239
- package/dist/Switch/package.json +1 -1
- package/dist/Tabs/Tabs.cjs.js +12 -506
- package/dist/Tabs/Tabs.esm.js +11 -505
- package/dist/Tabs/package.json +1 -1
- package/dist/Tag/Tag.cjs.js +18 -22
- package/dist/Tag/Tag.esm.js +14 -18
- package/dist/Tag/package.json +1 -1
- package/dist/Text/Text.cjs.js +5 -5
- package/dist/Text/Text.esm.js +5 -5
- package/dist/Text/package.json +1 -1
- package/dist/TextArea/TextArea.cjs.js +47 -35
- package/dist/TextArea/TextArea.esm.js +47 -35
- package/dist/TextArea/package.json +1 -1
- package/dist/TextInput/TextInput.cjs.js +10 -10
- package/dist/TextInput/TextInput.esm.js +10 -10
- package/dist/TextInput/package.json +1 -1
- package/dist/Toast/Toast.cjs.js +19 -739
- package/dist/Toast/Toast.esm.js +15 -735
- package/dist/Toast/package.json +1 -1
- package/dist/Truncate/Truncate.cjs.js +1 -1
- package/dist/Truncate/Truncate.esm.js +1 -1
- package/dist/Truncate/package.json +1 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +4 -4
- package/dist/UniversalHeader/UniversalHeader.esm.js +4 -4
- package/dist/UniversalHeader/package.json +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +3 -3
- package/dist/VerticalSpace/VerticalSpace.esm.js +3 -3
- package/dist/VerticalSpace/package.json +1 -1
- package/dist/VisuallyHidden/package.json +1 -1
- package/dist/_shared/cjs/{Base-569e4334.js → Base-f5a86eed.js} +1 -1
- package/dist/_shared/cjs/{BrandLogo-8107d59f.js → BrandLogo-f001e0c0.js} +4 -4
- package/dist/_shared/cjs/{Breadcrumbs-0906dd10.js → Breadcrumbs-9aa1d18b.js} +7 -9
- package/dist/_shared/cjs/{BtIconAlert-637db790.js → BtIconAlert.esm-e62a75b7.js} +8 -10
- package/dist/_shared/cjs/{BtIconChevronDown2Px-8fb4e2eb.js → BtIconChevronDown2Px.esm-c6f8ced2.js} +6 -8
- package/dist/_shared/cjs/{BtIconChevronLeftMid-df952a3e.js → BtIconChevronLeftMid.esm-7c2fc822.js} +5 -7
- package/dist/_shared/cjs/{BtIconChevronRight2Px-a8e40136.js → BtIconChevronRight2Px.esm-3c438341.js} +10 -14
- package/dist/_shared/cjs/{BtIconChevronRightMid-5a38d855.js → BtIconChevronRightMid.esm-cce080c8.js} +5 -7
- package/dist/_shared/cjs/{BtIconCrossAlt2Px-30dc2688.js → BtIconCrossAlt2Px.esm-c002bf55.js} +6 -8
- package/dist/_shared/cjs/{BtIconTick-42fcc5ec.js → BtIconTick.esm-613dfd8a.js} +18 -24
- package/dist/_shared/cjs/{BtIconTickAlt2Px-bdf06f8c.js → BtIconTickAlt2Px.esm-4862184c.js} +6 -8
- package/dist/_shared/cjs/{Button-5aaa6776.js → Button-c22c9787.js} +8 -8
- package/dist/_shared/cjs/{Card-fd189ba8.js → Card-55a1c129.js} +9 -11
- package/dist/_shared/cjs/{Checkbox-02c546ca.js → Checkbox-7ce718e7.js} +8 -8
- package/dist/_shared/cjs/{Columns-e90798f8.js → Columns-ae4f8cef.js} +3 -4
- package/dist/_shared/cjs/{Curve-781ef633.js → Curve-d038052b.js} +3 -3
- package/dist/_shared/cjs/{DisclosureMini-52706ee6.js → DisclosureMini-c666cc4d.js} +6 -6
- package/dist/_shared/cjs/{Filter-a7574fe7.js → Filter-22b8b171.js} +3 -7
- package/dist/_shared/cjs/{FormControl-1e1bf2bf.js → FormControl-5541ac3a.js} +6 -6
- package/dist/_shared/cjs/{Group-f85dd4c0.js → Group-143a4578.js} +4 -5
- package/dist/_shared/cjs/{Heading-e3332dcf.js → Heading-ba2f74ad.js} +4 -5
- package/dist/_shared/cjs/{Icon-e1dd45eb.js → Icon-cf30e736.js} +10 -12
- package/dist/_shared/cjs/{Image-0e393cbf.js → Image-e873b8fc.js} +3 -4
- package/dist/_shared/cjs/{Poster-faea1ad3.js → Poster-62e2ba67.js} +5 -9
- package/dist/_shared/cjs/ProgressStepper-92668367.js +144 -0
- package/dist/_shared/cjs/{RadioGroup-d7664b0c.js → RadioGroup-66c1e882.js} +4 -5
- package/dist/_shared/cjs/{Section-48aca5f5.js → Section-59804166.js} +2 -2
- package/dist/_shared/cjs/{SiteFooter-5da774e1.js → SiteFooter-d3babe07.js} +7 -9
- package/dist/_shared/cjs/{SiteHeader.rehydrator-acc9d8c4.js → SiteHeader.rehydrator-b7284004.js} +16 -24
- package/dist/_shared/cjs/{Surface-b7c51b2b.js → Surface-80c0909a.js} +2 -2
- package/dist/_shared/cjs/Tabs-65e7af8a.js +503 -0
- package/dist/_shared/cjs/{Text-fa447e2d.js → Text-76b7fea1.js} +4 -4
- package/dist/_shared/cjs/{TextInput-f4549637.js → TextInput-5bee337d.js} +4 -4
- package/dist/_shared/cjs/Toast-874d9be4.js +730 -0
- package/dist/_shared/cjs/{UniversalHeader-da622e1a.js → UniversalHeader-f5a225b6.js} +2 -3
- package/dist/_shared/cjs/{VerticalSpace-86f697e7.js → VerticalSpace-dc53bb70.js} +2 -2
- package/dist/_shared/cjs/{extends-bb8ffacd.js → extends-8c5e4b48.js} +1 -4
- package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +227 -0
- package/dist/_shared/cjs/{index-ec260f5e.js → index-43458549.js} +13 -96
- package/dist/_shared/cjs/{index-96c4d581.js → index-6b2a9ac3.js} +2 -2
- package/dist/_shared/cjs/{index-45bfb67b.js → index-9947ac13.js} +11 -10
- package/dist/_shared/cjs/{index-fb4b8fda.js → index-adbb63da.js} +2 -9
- package/dist/_shared/cjs/{index-27b53d49.js → index-b2fd6338.js} +3 -80
- package/dist/_shared/cjs/{index-952918c9.js → index-c575a255.js} +11 -10
- package/dist/_shared/cjs/index.module-dd1d7d0b.js +382 -0
- package/dist/_shared/cjs/{suffix-modifier-1ee2da04.js → suffix-modifier-64dcd338.js} +1 -1
- package/dist/_shared/esm/{Base-6c01e0ec.js → Base-f200653c.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-9ec620e8.js → BrandLogo-51fc6f15.js} +4 -4
- package/dist/_shared/esm/{Breadcrumbs-dafa8dde.js → Breadcrumbs-50d0f406.js} +7 -9
- package/dist/_shared/esm/{BtIconAlert-55a6ed5c.js → BtIconAlert.esm-09346130.js} +6 -8
- package/dist/_shared/esm/{BtIconChevronDown2Px-782876e2.js → BtIconChevronDown2Px.esm-345d78fe.js} +4 -6
- package/dist/_shared/esm/{BtIconChevronLeftMid-9f4f3a3d.js → BtIconChevronLeftMid.esm-e69276cb.js} +3 -5
- package/dist/_shared/esm/{BtIconChevronRight2Px-b8e7b4ad.js → BtIconChevronRight2Px.esm-2c693ef3.js} +7 -11
- package/dist/_shared/esm/{BtIconChevronRightMid-d9b11761.js → BtIconChevronRightMid.esm-24809a93.js} +3 -5
- package/dist/_shared/esm/{BtIconCrossAlt2Px-a6a9f431.js → BtIconCrossAlt2Px.esm-425a6beb.js} +4 -6
- package/dist/_shared/esm/{BtIconTick-5fe50cc7.js → BtIconTick.esm-673282f5.js} +14 -20
- package/dist/_shared/esm/{BtIconTickAlt2Px-da97e9ae.js → BtIconTickAlt2Px.esm-ce22224b.js} +4 -6
- package/dist/_shared/esm/{Button-d1dbcf79.js → Button-67f68b14.js} +8 -8
- package/dist/_shared/esm/{Card-e62c3ff6.js → Card-bf0c3b0b.js} +9 -11
- package/dist/_shared/esm/{Checkbox-d8891198.js → Checkbox-50e2d4ab.js} +8 -8
- package/dist/_shared/esm/{Columns-8704515b.js → Columns-d96b7425.js} +3 -4
- package/dist/_shared/esm/{Curve-bbc5589c.js → Curve-d8679dde.js} +3 -3
- package/dist/_shared/esm/{DisclosureMini-9b819941.js → DisclosureMini-376c013c.js} +6 -6
- package/dist/_shared/esm/{Filter-a01aed11.js → Filter-f7ac126b.js} +3 -7
- package/dist/_shared/esm/{FormControl-f18e2f59.js → FormControl-aad4288c.js} +6 -6
- package/dist/_shared/esm/{Group-fb26fd32.js → Group-0129c979.js} +4 -5
- package/dist/_shared/esm/{Heading-0f629151.js → Heading-8bb7b7c0.js} +4 -5
- package/dist/_shared/esm/{Icon-c1af47bc.js → Icon-3bfabb14.js} +7 -9
- package/dist/_shared/esm/{Image-3ed3863c.js → Image-12fbd327.js} +3 -4
- package/dist/_shared/esm/{Poster-a83ae770.js → Poster-046b0f77.js} +5 -9
- package/dist/_shared/esm/ProgressStepper-3ffbdb73.js +138 -0
- package/dist/_shared/esm/{RadioGroup-be16d5d3.js → RadioGroup-1273a716.js} +4 -5
- package/dist/_shared/esm/{Section-b8038d66.js → Section-73781b56.js} +2 -2
- package/dist/_shared/esm/{SiteFooter-a182cb18.js → SiteFooter-60d1b216.js} +7 -9
- package/dist/_shared/esm/{SiteHeader.rehydrator-023b7b76.js → SiteHeader.rehydrator-029f568e.js} +16 -24
- package/dist/_shared/esm/{Surface-dde51789.js → Surface-c6e817cd.js} +2 -2
- package/dist/_shared/esm/Tabs-ec960828.js +497 -0
- package/dist/_shared/esm/{Text-40457811.js → Text-a3720712.js} +4 -4
- package/dist/_shared/esm/{TextInput-4424c195.js → TextInput-732f0b51.js} +4 -4
- package/dist/_shared/esm/Toast-b81384a4.js +724 -0
- package/dist/_shared/esm/{UniversalHeader-1c5a886d.js → UniversalHeader-354a1867.js} +2 -3
- package/dist/_shared/esm/{VerticalSpace-93980c9c.js → VerticalSpace-43cd9138.js} +2 -2
- package/dist/_shared/esm/{extends-4575346e.js → extends-8cc61aad.js} +1 -4
- package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +220 -0
- package/dist/_shared/esm/{index-22aad354.js → index-13d575cc.js} +11 -11
- package/dist/_shared/esm/{index-2ae58626.js → index-2e73c2e9.js} +11 -10
- package/dist/_shared/esm/{index-94ecc5f8.js → index-3797d77e.js} +2 -2
- package/dist/_shared/esm/{index-369dce7f.js → index-41d7af2b.js} +9 -92
- package/dist/_shared/esm/{index-8000d9e3.js → index-a1d2d9b3.js} +2 -79
- package/dist/_shared/esm/{index-bed18a88.js → index-efd9ef1c.js} +1 -9
- package/dist/_shared/esm/index.module-44714d3f.js +371 -0
- package/dist/_shared/esm/{suffix-modifier-7e640670.js → suffix-modifier-3d548e45.js} +1 -1
- package/dist/index.es.js +2541 -1304
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2865 -1617
- package/dist/index.js.map +1 -1
- package/dist/styles.css +11 -1
- package/dist/types/components/Badge/Badge.d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Card/Card.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Clock/Clock.d.ts +1 -1
- package/dist/types/components/Columns/Columns.d.ts +2 -2
- package/dist/types/components/FormControl/FormControl.d.ts +1 -1
- package/dist/types/components/Group/GroupItem/GroupItem.d.ts +17 -0
- package/dist/types/components/Heading/Heading.d.ts +4 -4
- package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +15 -0
- package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +1 -1
- package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +1 -1
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/RadioGroup/context.d.ts +2 -2
- package/dist/types/components/Surface/Surface.d.ts +3 -3
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +1 -1
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +5 -2
- package/dist/types/components/Toast/ToastNotification.d.ts +2 -2
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +1 -1
- package/dist/types/components/index.d.ts +17 -6
- package/dist/types/types/arc-icon.d.ts +1 -1
- package/package.json +44 -15
- package/dist/Alert/Alert.cjs.d.ts +0 -57
- package/dist/Alert/Alert.esm.d.ts +0 -57
- package/dist/Align/Align.cjs.d.ts +0 -25
- package/dist/Align/Align.esm.d.ts +0 -25
- package/dist/Badge/Badge.cjs.d.ts +0 -26
- package/dist/Badge/Badge.esm.d.ts +0 -26
- package/dist/Base/Base.cjs.d.ts +0 -1
- package/dist/Base/Base.esm.d.ts +0 -1
- package/dist/Box/Box.cjs.d.ts +0 -40
- package/dist/Box/Box.esm.d.ts +0 -40
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +0 -1
- package/dist/BrandLogo/BrandLogo.esm.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +0 -1
- package/dist/Button/Button.cjs.d.ts +0 -1
- package/dist/Button/Button.esm.d.ts +0 -1
- package/dist/Card/Card.cjs.d.ts +0 -1
- package/dist/Card/Card.esm.d.ts +0 -1
- package/dist/Checkbox/Checkbox.cjs.d.ts +0 -1
- package/dist/Checkbox/Checkbox.esm.d.ts +0 -1
- package/dist/Clock/Clock.cjs.d.ts +0 -15
- package/dist/Clock/Clock.esm.d.ts +0 -15
- package/dist/Columns/Columns.cjs.d.ts +0 -1
- package/dist/Columns/Columns.esm.d.ts +0 -1
- package/dist/Curve/Curve.cjs.d.ts +0 -1
- package/dist/Curve/Curve.esm.d.ts +0 -1
- package/dist/Disclosure/Disclosure.cjs.d.ts +0 -31
- package/dist/Disclosure/Disclosure.esm.d.ts +0 -31
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +0 -1
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +0 -1
- package/dist/Elevation/Elevation.cjs.d.ts +0 -20
- package/dist/Elevation/Elevation.esm.d.ts +0 -20
- package/dist/Filter/Filter.cjs.d.ts +0 -1
- package/dist/Filter/Filter.esm.d.ts +0 -1
- package/dist/FormControl/FormControl.cjs.d.ts +0 -1
- package/dist/FormControl/FormControl.esm.d.ts +0 -1
- package/dist/Group/Group.cjs.d.ts +0 -1
- package/dist/Group/Group.esm.d.ts +0 -1
- package/dist/Heading/Heading.cjs.d.ts +0 -1
- package/dist/Heading/Heading.esm.d.ts +0 -1
- package/dist/Icon/Icon.cjs.d.ts +0 -1
- package/dist/Icon/Icon.esm.d.ts +0 -1
- package/dist/Image/Image.cjs.d.ts +0 -1
- package/dist/Image/Image.esm.d.ts +0 -1
- package/dist/Markup/Markup.cjs.d.ts +0 -16
- package/dist/Markup/Markup.esm.d.ts +0 -16
- package/dist/Modal/Modal.cjs.d.ts +0 -53
- package/dist/Modal/Modal.esm.d.ts +0 -53
- package/dist/Pagination/Pagination.cjs.d.ts +0 -20
- package/dist/Pagination/Pagination.esm.d.ts +0 -20
- package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +0 -28
- package/dist/PaginationSimple/PaginationSimple.esm.d.ts +0 -28
- package/dist/Poster/Poster.cjs.d.ts +0 -1
- package/dist/Poster/Poster.esm.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.cjs.d.ts +0 -47
- package/dist/ProgressBar/ProgressBar.esm.d.ts +0 -47
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +0 -89
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +0 -89
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +0 -1
- package/dist/RadioGroup/RadioGroup.esm.d.ts +0 -1
- package/dist/Rule/Rule.cjs.d.ts +0 -8
- package/dist/Rule/Rule.esm.d.ts +0 -8
- package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +0 -25
- package/dist/ScrollToTop/ScrollToTop.esm.d.ts +0 -25
- package/dist/Section/Section.cjs.d.ts +0 -1
- package/dist/Section/Section.esm.d.ts +0 -1
- package/dist/Select/Select.cjs.d.ts +0 -25
- package/dist/Select/Select.esm.d.ts +0 -25
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +0 -4
- package/dist/SiteFooter/SiteFooter.esm.d.ts +0 -4
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +0 -2
- package/dist/SiteHeader/SiteHeader.esm.d.ts +0 -2
- package/dist/Surface/Surface.cjs.d.ts +0 -1
- package/dist/Surface/Surface.esm.d.ts +0 -1
- package/dist/Switch/Switch.cjs.d.ts +0 -40
- package/dist/Switch/Switch.esm.d.ts +0 -40
- package/dist/Tabs/Tabs.cjs.d.ts +0 -75
- package/dist/Tabs/Tabs.esm.d.ts +0 -75
- package/dist/Tag/Tag.cjs.d.ts +0 -33
- package/dist/Tag/Tag.esm.d.ts +0 -33
- package/dist/Text/Text.cjs.d.ts +0 -1
- package/dist/Text/Text.esm.d.ts +0 -1
- package/dist/TextArea/TextArea.cjs.d.ts +0 -64
- package/dist/TextArea/TextArea.esm.d.ts +0 -64
- package/dist/TextInput/TextInput.cjs.d.ts +0 -1
- package/dist/TextInput/TextInput.esm.d.ts +0 -1
- package/dist/Toast/Toast.cjs.d.ts +0 -52
- package/dist/Toast/Toast.esm.d.ts +0 -52
- package/dist/Truncate/Truncate.cjs.d.ts +0 -18
- package/dist/Truncate/Truncate.esm.d.ts +0 -18
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +0 -1
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +0 -1
- package/dist/_shared/cjs/Base-569e4334.d.ts +0 -19
- package/dist/_shared/cjs/BrandLogo-8107d59f.d.ts +0 -26
- package/dist/_shared/cjs/Breadcrumbs-0906dd10.d.ts +0 -61
- package/dist/_shared/cjs/Button-5aaa6776.d.ts +0 -102
- package/dist/_shared/cjs/Card-fd189ba8.d.ts +0 -136
- package/dist/_shared/cjs/Checkbox-02c546ca.d.ts +0 -64
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +0 -76
- package/dist/_shared/cjs/Curve-781ef633.d.ts +0 -35
- package/dist/_shared/cjs/DisclosureMini-52706ee6.d.ts +0 -37
- package/dist/_shared/cjs/Filter-a7574fe7.d.ts +0 -83
- package/dist/_shared/cjs/FormControl-1e1bf2bf.d.ts +0 -99
- package/dist/_shared/cjs/Group-f85dd4c0.d.ts +0 -46
- package/dist/_shared/cjs/Heading-e3332dcf.d.ts +0 -50
- package/dist/_shared/cjs/Icon-e1dd45eb.d.ts +0 -34
- package/dist/_shared/cjs/Image-0e393cbf.d.ts +0 -94
- package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/cjs/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/cjs/Poster-faea1ad3.d.ts +0 -81
- package/dist/_shared/cjs/RadioGroup-d7664b0c.d.ts +0 -97
- package/dist/_shared/cjs/Section-48aca5f5.d.ts +0 -21
- package/dist/_shared/cjs/SiteFooter-5da774e1.d.ts +0 -62
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/cjs/SiteHeader.rehydrator-acc9d8c4.d.ts +0 -78
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/cjs/Surface-b7c51b2b.d.ts +0 -51
- package/dist/_shared/cjs/Text-fa447e2d.d.ts +0 -38
- package/dist/_shared/cjs/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/cjs/TextInput-f4549637.d.ts +0 -10
- package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +0 -26
- package/dist/_shared/cjs/VerticalSpace-86f697e7.d.ts +0 -34
- package/dist/_shared/cjs/VisuallyHidden-e2c8b291.d.ts +0 -12
- package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.d.ts +0 -2
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.js +0 -215
- package/dist/_shared/cjs/handle-link-click-17a44cf4.d.ts +0 -7
- package/dist/_shared/cjs/index-699086a7.d.ts +0 -2
- package/dist/_shared/cjs/index-74488a9f.d.ts +0 -2
- package/dist/_shared/cjs/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/cjs/index-c81c9401.d.ts +0 -4
- package/dist/_shared/cjs/index-e340924e.d.ts +0 -2
- package/dist/_shared/cjs/index-e6d20018.d.ts +0 -3
- package/dist/_shared/cjs/index-eb06f640.d.ts +0 -2
- package/dist/_shared/cjs/index-f419cf04.d.ts +0 -2
- package/dist/_shared/cjs/index.es-77def0c9.d.ts +0 -19
- package/dist/_shared/cjs/index.module-bbcc4e18.js +0 -126
- package/dist/_shared/cjs/suffix-modifier-1ee2da04.d.ts +0 -10
- package/dist/_shared/esm/Base-6c01e0ec.d.ts +0 -19
- package/dist/_shared/esm/BrandLogo-9ec620e8.d.ts +0 -26
- package/dist/_shared/esm/Breadcrumbs-dafa8dde.d.ts +0 -61
- package/dist/_shared/esm/Button-d1dbcf79.d.ts +0 -102
- package/dist/_shared/esm/Card-e62c3ff6.d.ts +0 -136
- package/dist/_shared/esm/Checkbox-d8891198.d.ts +0 -64
- package/dist/_shared/esm/Columns-8704515b.d.ts +0 -76
- package/dist/_shared/esm/Curve-bbc5589c.d.ts +0 -35
- package/dist/_shared/esm/DisclosureMini-9b819941.d.ts +0 -37
- package/dist/_shared/esm/Filter-a01aed11.d.ts +0 -83
- package/dist/_shared/esm/FormControl-f18e2f59.d.ts +0 -99
- package/dist/_shared/esm/Group-fb26fd32.d.ts +0 -46
- package/dist/_shared/esm/Heading-0f629151.d.ts +0 -50
- package/dist/_shared/esm/Icon-c1af47bc.d.ts +0 -34
- package/dist/_shared/esm/Image-3ed3863c.d.ts +0 -94
- package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/esm/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/esm/Poster-a83ae770.d.ts +0 -81
- package/dist/_shared/esm/RadioGroup-be16d5d3.d.ts +0 -97
- package/dist/_shared/esm/Section-b8038d66.d.ts +0 -21
- package/dist/_shared/esm/SiteFooter-a182cb18.d.ts +0 -62
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/esm/SiteHeader.rehydrator-023b7b76.d.ts +0 -78
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/esm/Surface-dde51789.d.ts +0 -51
- package/dist/_shared/esm/Text-40457811.d.ts +0 -38
- package/dist/_shared/esm/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/esm/TextInput-4424c195.d.ts +0 -10
- package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +0 -26
- package/dist/_shared/esm/VerticalSpace-93980c9c.d.ts +0 -34
- package/dist/_shared/esm/VisuallyHidden-b9eebf71.d.ts +0 -12
- package/dist/_shared/esm/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.d.ts +0 -2
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.js +0 -208
- package/dist/_shared/esm/handle-link-click-f64f55a2.d.ts +0 -7
- package/dist/_shared/esm/index-699086a7.d.ts +0 -2
- package/dist/_shared/esm/index-74488a9f.d.ts +0 -2
- package/dist/_shared/esm/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/esm/index-c81c9401.d.ts +0 -4
- package/dist/_shared/esm/index-e340924e.d.ts +0 -2
- package/dist/_shared/esm/index-e6d20018.d.ts +0 -3
- package/dist/_shared/esm/index-eb06f640.d.ts +0 -2
- package/dist/_shared/esm/index-f419cf04.d.ts +0 -2
- package/dist/_shared/esm/index.es-00cb3bcb.d.ts +0 -19
- package/dist/_shared/esm/index.module-5ed90b21.js +0 -122
- package/dist/_shared/esm/suffix-modifier-7e640670.d.ts +0 -10
- /package/dist/_shared/cjs/{debounce-506538c5.js → debounce-123468fb.js} +0 -0
- /package/dist/_shared/esm/{debounce-e228705f.js → debounce-6fed6b84.js} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-
|
|
2
|
-
import { c as classNames } from '../_shared/esm/index-
|
|
1
|
+
import { a as __assign, _ as __rest, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { T as Text } from '../_shared/esm/Text-
|
|
5
|
-
import { H as Heading } from '../_shared/esm/Heading-
|
|
6
|
-
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-
|
|
7
|
-
import { I as Icon } from '../_shared/esm/Icon-
|
|
8
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as
|
|
11
|
-
import '../_shared/esm/suffix-modifier-
|
|
4
|
+
import { T as Text } from '../_shared/esm/Text-a3720712.js';
|
|
5
|
+
import { H as Heading } from '../_shared/esm/Heading-8bb7b7c0.js';
|
|
6
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-43cd9138.js';
|
|
7
|
+
import { I as Icon } from '../_shared/esm/Icon-3bfabb14.js';
|
|
8
|
+
import { C as Context } from '../_shared/esm/Surface-c6e817cd.js';
|
|
9
|
+
import { B as BtIconTickAlt2Px } from '../_shared/esm/BtIconTickAlt2Px.esm-ce22224b.js';
|
|
10
|
+
import { B as BtIconCrossAlt2Px } from '../_shared/esm/BtIconCrossAlt2Px.esm-425a6beb.js';
|
|
11
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
12
12
|
|
|
13
|
-
const React = React__default;
|
|
14
13
|
const BtIconRefresh = props =>
|
|
15
|
-
/*#__PURE__*/
|
|
14
|
+
/*#__PURE__*/ React__default.createElement(
|
|
16
15
|
"svg",
|
|
17
16
|
Object.assign(
|
|
18
17
|
{
|
|
@@ -21,24 +20,23 @@ const BtIconRefresh = props =>
|
|
|
21
20
|
},
|
|
22
21
|
props
|
|
23
22
|
),
|
|
24
|
-
/*#__PURE__*/
|
|
25
|
-
/*#__PURE__*/
|
|
23
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
24
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
26
25
|
d:
|
|
27
26
|
"M13.41077,21.99951a.5005.5005,0,0,0-.35743.8501l2.04609,2.08716A8.98732,8.98732,0,0,1,13.15332,7.46631a.50028.50028,0,1,0-.31641-.94922A9.98437,9.98437,0,0,0,15.127,25.93823l.00159.02881c.0011.01.02008.00128.03015.002L13.026,28.16846a.50036.50036,0,0,0,.71875.69629l3.28418-3.38819-3.26074-3.32715A.50106.50106,0,0,0,13.41077,21.99951Z",
|
|
28
27
|
fill: "currentColor"
|
|
29
28
|
}),
|
|
30
|
-
/*#__PURE__*/
|
|
29
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
31
30
|
d:
|
|
32
31
|
"M16.79028,6.04633,16.79,6.04077c-.0011-.01-.02008-.00128-.03015-.00195l2.13275-2.19946a.50036.50036,0,0,0-.71875-.69629L14.88965,6.53125,18.15039,9.8584a.50106.50106,0,0,0,.35742.1499.5005.5005,0,0,0,.35742-.8501L16.7951,7.04657a8.98484,8.98484,0,0,1,2.05646,17.47589.49982.49982,0,1,0,.31641.94824A9.98244,9.98244,0,0,0,16.79028,6.04633Z",
|
|
33
32
|
fill: "currentColor"
|
|
34
33
|
})
|
|
35
34
|
);
|
|
36
|
-
var BtIconRefresh_2 = BtIconRefresh;
|
|
37
35
|
|
|
38
36
|
var PROGRESS_BAR_ICON_MAP = {
|
|
39
|
-
refresh:
|
|
40
|
-
tick:
|
|
41
|
-
cross:
|
|
37
|
+
refresh: BtIconRefresh,
|
|
38
|
+
tick: BtIconTickAlt2Px,
|
|
39
|
+
cross: BtIconCrossAlt2Px
|
|
42
40
|
};
|
|
43
41
|
|
|
44
42
|
var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
@@ -2,151 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
require('../_shared/cjs/
|
|
5
|
+
var ProgressStepper = require('../_shared/cjs/ProgressStepper-92668367.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
+
require('../_shared/cjs/BtIconAlert.esm-e62a75b7.js');
|
|
10
|
+
require('../_shared/cjs/Icon-cf30e736.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
12
|
+
require('../_shared/cjs/Surface-80c0909a.js');
|
|
13
|
+
require('../_shared/cjs/VerticalSpace-dc53bb70.js');
|
|
14
|
+
require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
14
15
|
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
const BtIconTickVariant = props =>
|
|
21
|
-
/*#__PURE__*/ React$2.createElement(
|
|
22
|
-
"svg",
|
|
23
|
-
Object.assign(
|
|
24
|
-
{
|
|
25
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
-
viewBox: "0 0 32 32"
|
|
27
|
-
},
|
|
28
|
-
props
|
|
29
|
-
),
|
|
30
|
-
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
31
|
-
/*#__PURE__*/ React$2.createElement("path", {
|
|
32
|
-
d:
|
|
33
|
-
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
34
|
-
fill: "currentColor"
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
38
|
-
|
|
39
|
-
const React$1 = React__default["default"];
|
|
40
|
-
const BtIconCrossAlt = props =>
|
|
41
|
-
/*#__PURE__*/ React$1.createElement(
|
|
42
|
-
"svg",
|
|
43
|
-
Object.assign(
|
|
44
|
-
{
|
|
45
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
-
viewBox: "0 0 32 32"
|
|
47
|
-
},
|
|
48
|
-
props
|
|
49
|
-
),
|
|
50
|
-
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
51
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
52
|
-
d:
|
|
53
|
-
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
54
|
-
fill: "currentColor"
|
|
55
|
-
})
|
|
56
|
-
);
|
|
57
|
-
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
58
|
-
|
|
59
|
-
const React = React__default["default"];
|
|
60
|
-
const BtIconCircle = props =>
|
|
61
|
-
/*#__PURE__*/ React.createElement(
|
|
62
|
-
"svg",
|
|
63
|
-
Object.assign(
|
|
64
|
-
{
|
|
65
|
-
viewBox: "0 0 32 32",
|
|
66
|
-
fill: "none",
|
|
67
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
-
},
|
|
69
|
-
props
|
|
70
|
-
),
|
|
71
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
72
|
-
fillRule: "evenodd",
|
|
73
|
-
clipRule: "evenodd",
|
|
74
|
-
d:
|
|
75
|
-
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
76
|
-
fill: "currentColor"
|
|
77
|
-
})
|
|
78
|
-
);
|
|
79
|
-
var BtIconCircle_2 = BtIconCircle;
|
|
80
|
-
|
|
81
|
-
var ProgressStepperItem = function (_a) {
|
|
82
|
-
var _b, _c;
|
|
83
|
-
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = filterDataAttrs.__rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
84
|
-
var surface = React$3.useContext(Surface.Context).surface;
|
|
85
|
-
var statusIcons = {
|
|
86
|
-
completed: BtIconTickVariant_2,
|
|
87
|
-
current: BtIconCircle_2,
|
|
88
|
-
warning: BtIconAlert.BtIconAlert_2,
|
|
89
|
-
error: BtIconCrossAlt_2
|
|
90
|
-
};
|
|
91
|
-
var onClickHandler = function (event) {
|
|
92
|
-
event.preventDefault();
|
|
93
|
-
onClick && onClick();
|
|
94
|
-
};
|
|
95
|
-
var capitaliseFirstLetter = function (word) {
|
|
96
|
-
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
97
|
-
};
|
|
98
|
-
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepperItem", (_b = {
|
|
99
|
-
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
100
|
-
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
101
|
-
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
102
|
-
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
103
|
-
},
|
|
104
|
-
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
105
|
-
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
106
|
-
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
107
|
-
React__default["default"].createElement("div", { className: index.classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
108
|
-
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
109
|
-
_c)) },
|
|
110
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
111
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default["default"].createElement("div", { style: {
|
|
112
|
-
width: size === "small" ? "16px" : "32px",
|
|
113
|
-
height: size === "small" ? "16px" : "32px"
|
|
114
|
-
} })) : (React__default["default"].createElement(Icon.Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
115
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
116
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
117
|
-
status !== "todo" && (React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null,
|
|
118
|
-
capitaliseFirstLetter(status),
|
|
119
|
-
":")),
|
|
120
|
-
titleHref ? (React__default["default"].createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
121
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
122
|
-
isExpandable && direction === "vertical" && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
123
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
124
|
-
React__default["default"].createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
125
|
-
stepContent && !isStepContentHidden && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
126
|
-
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
127
|
-
stepContent))))))));
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
131
|
-
var ProgressStepper = function (_a) {
|
|
132
|
-
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = filterDataAttrs.__rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
133
|
-
var items = React__default["default"].Children.toArray(children);
|
|
134
|
-
var getStepStatus = function (item) {
|
|
135
|
-
var _a;
|
|
136
|
-
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
137
|
-
};
|
|
138
|
-
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-ProgressStepper", {
|
|
139
|
-
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
140
|
-
}) }, filterDataAttrs.filterDataAttrs(props)), items.map(function (item, index) {
|
|
141
|
-
var currentPosition = index === 0
|
|
142
|
-
? "first"
|
|
143
|
-
: index === React__default["default"].Children.count(children) - 1
|
|
144
|
-
? "last"
|
|
145
|
-
: undefined;
|
|
146
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, { key: "StepperItem-".concat(index) },
|
|
147
|
-
React__default["default"].createElement(ProgressStepperItem, filterDataAttrs.__assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs.filterDataAttrs(item.props)))));
|
|
148
|
-
})));
|
|
149
|
-
};
|
|
150
|
-
ProgressStepper.Item = ProgressStepperItem;
|
|
151
|
-
|
|
152
|
-
exports.ProgressStepper = ProgressStepper;
|
|
18
|
+
exports.ProgressStepper = ProgressStepper.ProgressStepper;
|
|
@@ -1,144 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import '../_shared/esm/
|
|
10
|
-
|
|
11
|
-
const React$2 = React__default;
|
|
12
|
-
const BtIconTickVariant = props =>
|
|
13
|
-
/*#__PURE__*/ React$2.createElement(
|
|
14
|
-
"svg",
|
|
15
|
-
Object.assign(
|
|
16
|
-
{
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
viewBox: "0 0 32 32"
|
|
19
|
-
},
|
|
20
|
-
props
|
|
21
|
-
),
|
|
22
|
-
/*#__PURE__*/ React$2.createElement("defs", null),
|
|
23
|
-
/*#__PURE__*/ React$2.createElement("path", {
|
|
24
|
-
d:
|
|
25
|
-
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
26
|
-
fill: "currentColor"
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
30
|
-
|
|
31
|
-
const React$1 = React__default;
|
|
32
|
-
const BtIconCrossAlt = props =>
|
|
33
|
-
/*#__PURE__*/ React$1.createElement(
|
|
34
|
-
"svg",
|
|
35
|
-
Object.assign(
|
|
36
|
-
{
|
|
37
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
-
viewBox: "0 0 32 32"
|
|
39
|
-
},
|
|
40
|
-
props
|
|
41
|
-
),
|
|
42
|
-
/*#__PURE__*/ React$1.createElement("defs", null),
|
|
43
|
-
/*#__PURE__*/ React$1.createElement("path", {
|
|
44
|
-
d:
|
|
45
|
-
"M16.70709,16.02l4.48236-4.49365a.4996.4996,0,1,0-.707-.70606l-4.481,4.49225-4.481-4.49225a.4996.4996,0,1,0-.707.70606L15.29584,16.02l-4.48236,4.49365a.4996.4996,0,1,0,.707.70606l4.481-4.49225,4.481,4.49225a.4996.4996,0,1,0,.707-.70606Z",
|
|
46
|
-
fill: "currentColor"
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
var BtIconCrossAlt_2 = BtIconCrossAlt;
|
|
50
|
-
|
|
51
|
-
const React = React__default;
|
|
52
|
-
const BtIconCircle = props =>
|
|
53
|
-
/*#__PURE__*/ React.createElement(
|
|
54
|
-
"svg",
|
|
55
|
-
Object.assign(
|
|
56
|
-
{
|
|
57
|
-
viewBox: "0 0 32 32",
|
|
58
|
-
fill: "none",
|
|
59
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
60
|
-
},
|
|
61
|
-
props
|
|
62
|
-
),
|
|
63
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
64
|
-
fillRule: "evenodd",
|
|
65
|
-
clipRule: "evenodd",
|
|
66
|
-
d:
|
|
67
|
-
"M9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9C12.13 9 9 12.13 9 16ZM16 7C11.03 7 7 11.03 7 16C7 20.97 11.03 25 16 25C20.97 25 25 20.97 25 16C25 11.03 20.97 7 16 7Z",
|
|
68
|
-
fill: "currentColor"
|
|
69
|
-
})
|
|
70
|
-
);
|
|
71
|
-
var BtIconCircle_2 = BtIconCircle;
|
|
72
|
-
|
|
73
|
-
var ProgressStepperItem = function (_a) {
|
|
74
|
-
var _b, _c;
|
|
75
|
-
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _d = _a.direction, direction = _d === void 0 ? "horizontal" : _d, _e = _a.status, status = _e === void 0 ? "todo" : _e, _f = _a.size, size = _f === void 0 ? "large" : _f, _g = _a.position, position = _g === void 0 ? "middle" : _g, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, isExpandable = _a.isExpandable, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "position", "isFluid", "ariaLabel", "onClick", "previousStep", "isExpandable", "stepContent", "isStepContentHidden"]);
|
|
76
|
-
var surface = useContext(Context).surface;
|
|
77
|
-
var statusIcons = {
|
|
78
|
-
completed: BtIconTickVariant_2,
|
|
79
|
-
current: BtIconCircle_2,
|
|
80
|
-
warning: BtIconAlert_2,
|
|
81
|
-
error: BtIconCrossAlt_2
|
|
82
|
-
};
|
|
83
|
-
var onClickHandler = function (event) {
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
onClick && onClick();
|
|
86
|
-
};
|
|
87
|
-
var capitaliseFirstLetter = function (word) {
|
|
88
|
-
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
89
|
-
};
|
|
90
|
-
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", (_b = {
|
|
91
|
-
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
92
|
-
"arc-ProgressStepperItem--isFluid": isFluid,
|
|
93
|
-
"arc-ProgressStepperItem--onDarkSurface": surface === "dark",
|
|
94
|
-
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
95
|
-
},
|
|
96
|
-
_b["arc-ProgressStepperItem--".concat(status)] = status !== "todo",
|
|
97
|
-
_b["arc-ProgressStepperItem--".concat(size)] = size === "small",
|
|
98
|
-
_b)) }, filterDataAttrs(props)),
|
|
99
|
-
React__default.createElement("div", { className: classNames("arc-ProgressStepperItem-iconSection", (_c = {},
|
|
100
|
-
_c["arc-ProgressStepperItem-iconSection--".concat(position)] = position !== "middle",
|
|
101
|
-
_c)) },
|
|
102
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailBefore" }),
|
|
103
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper" }, statusIcons[status] === undefined ? (React__default.createElement("div", { style: {
|
|
104
|
-
width: size === "small" ? "16px" : "32px",
|
|
105
|
-
height: size === "small" ? "16px" : "32px"
|
|
106
|
-
} })) : (React__default.createElement(Icon, { size: size === "small" ? 16 : 32, icon: statusIcons[status] }))),
|
|
107
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSectionTrailAfter" })),
|
|
108
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
109
|
-
status !== "todo" && (React__default.createElement(VisuallyHidden, null,
|
|
110
|
-
capitaliseFirstLetter(status),
|
|
111
|
-
":")),
|
|
112
|
-
titleHref ? (React__default.createElement("a", { href: titleHref, "aria-label": ariaLabel, className: "arc-ProgressStepperItem-title", onClick: onClickHandler }, title)) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" }, title)),
|
|
113
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
114
|
-
isExpandable && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
115
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" },
|
|
116
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-keyline" }),
|
|
117
|
-
stepContent && !isStepContentHidden && (React__default.createElement(React__default.Fragment, null,
|
|
118
|
-
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
119
|
-
stepContent))))))));
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/** Use `ProgressStepper` to illustrate the progress of a specific task within a page, by displaying a step-by-step progress through the user journey. This is commonly used in multi-step processes or wizards. */
|
|
123
|
-
var ProgressStepper = function (_a) {
|
|
124
|
-
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable"]);
|
|
125
|
-
var items = React__default.Children.toArray(children);
|
|
126
|
-
var getStepStatus = function (item) {
|
|
127
|
-
var _a;
|
|
128
|
-
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
129
|
-
};
|
|
130
|
-
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepper", {
|
|
131
|
-
"arc-ProgressStepper--vertical": direction === "vertical"
|
|
132
|
-
}) }, filterDataAttrs(props)), items.map(function (item, index) {
|
|
133
|
-
var currentPosition = index === 0
|
|
134
|
-
? "first"
|
|
135
|
-
: index === React__default.Children.count(children) - 1
|
|
136
|
-
? "last"
|
|
137
|
-
: undefined;
|
|
138
|
-
return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
139
|
-
React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, direction: direction, isExpandable: isExpandable, size: size, position: currentPosition, previousStep: getStepStatus(items[index - 1]) }, filterDataAttrs(item.props)))));
|
|
140
|
-
})));
|
|
141
|
-
};
|
|
142
|
-
ProgressStepper.Item = ProgressStepperItem;
|
|
143
|
-
|
|
144
|
-
export { ProgressStepper };
|
|
1
|
+
export { P as ProgressStepper } from '../_shared/esm/ProgressStepper-3ffbdb73.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
+
import '../_shared/esm/BtIconAlert.esm-09346130.js';
|
|
6
|
+
import '../_shared/esm/Icon-3bfabb14.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
8
|
+
import '../_shared/esm/Surface-c6e817cd.js';
|
|
9
|
+
import '../_shared/esm/VerticalSpace-43cd9138.js';
|
|
10
|
+
import '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('../_shared/cjs/RadioGroup-
|
|
6
|
-
require('../_shared/cjs/filter-data-attrs-
|
|
5
|
+
var RadioGroup = require('../_shared/cjs/RadioGroup-66c1e882.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('react');
|
|
8
|
-
require('../_shared/cjs/FormControl-
|
|
9
|
-
require('../_shared/cjs/index-
|
|
10
|
-
require('../_shared/cjs/BtIconAlert-
|
|
11
|
-
require('../_shared/cjs/Surface-
|
|
12
|
-
require('../_shared/cjs/DisclosureMini-
|
|
13
|
-
require('../_shared/cjs/BtIconChevronDown2Px-
|
|
14
|
-
require('../_shared/cjs/Text-
|
|
15
|
-
require('../_shared/cjs/suffix-modifier-
|
|
8
|
+
require('../_shared/cjs/FormControl-5541ac3a.js');
|
|
9
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
10
|
+
require('../_shared/cjs/BtIconAlert.esm-e62a75b7.js');
|
|
11
|
+
require('../_shared/cjs/Surface-80c0909a.js');
|
|
12
|
+
require('../_shared/cjs/DisclosureMini-c666cc4d.js');
|
|
13
|
+
require('../_shared/cjs/BtIconChevronDown2Px.esm-c6f8ced2.js');
|
|
14
|
+
require('../_shared/cjs/Text-76b7fea1.js');
|
|
15
|
+
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { R as RadioGroup } from '../_shared/esm/RadioGroup-
|
|
2
|
-
import '../_shared/esm/filter-data-attrs-
|
|
1
|
+
export { R as RadioGroup } from '../_shared/esm/RadioGroup-1273a716.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../_shared/esm/FormControl-
|
|
5
|
-
import '../_shared/esm/index-
|
|
6
|
-
import '../_shared/esm/BtIconAlert-
|
|
7
|
-
import '../_shared/esm/Surface-
|
|
8
|
-
import '../_shared/esm/DisclosureMini-
|
|
9
|
-
import '../_shared/esm/BtIconChevronDown2Px-
|
|
10
|
-
import '../_shared/esm/Text-
|
|
11
|
-
import '../_shared/esm/suffix-modifier-
|
|
4
|
+
import '../_shared/esm/FormControl-aad4288c.js';
|
|
5
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
6
|
+
import '../_shared/esm/BtIconAlert.esm-09346130.js';
|
|
7
|
+
import '../_shared/esm/Surface-c6e817cd.js';
|
|
8
|
+
import '../_shared/esm/DisclosureMini-376c013c.js';
|
|
9
|
+
import '../_shared/esm/BtIconChevronDown2Px.esm-345d78fe.js';
|
|
10
|
+
import '../_shared/esm/Text-a3720712.js';
|
|
11
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
package/dist/Rule/Rule.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-
|
|
6
|
-
var index = require('../_shared/cjs/index-
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
6
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Surface = require('../_shared/cjs/Surface-
|
|
8
|
+
var Surface = require('../_shared/cjs/Surface-80c0909a.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
package/dist/Rule/Rule.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-
|
|
2
|
-
import { c as classNames } from '../_shared/esm/index-
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-c6e817cd.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Rule` to display a horizontal rule.
|
package/dist/Rule/package.json
CHANGED
|
@@ -2,21 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-
|
|
6
|
-
var index = require('../_shared/cjs/index-
|
|
7
|
-
var React
|
|
8
|
-
var debounce = require('../_shared/cjs/debounce-
|
|
9
|
-
var Icon = require('../_shared/cjs/Icon-
|
|
10
|
-
require('../_shared/cjs/suffix-modifier-
|
|
11
|
-
require('../_shared/cjs/Surface-
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
6
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var debounce = require('../_shared/cjs/debounce-123468fb.js');
|
|
9
|
+
var Icon = require('../_shared/cjs/Icon-cf30e736.js');
|
|
10
|
+
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
11
|
+
require('../_shared/cjs/Surface-80c0909a.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
|
|
17
|
-
const React = React__default["default"];
|
|
18
17
|
const BtIconArrowAltUp = props =>
|
|
19
|
-
/*#__PURE__*/
|
|
18
|
+
/*#__PURE__*/ React__default["default"].createElement(
|
|
20
19
|
"svg",
|
|
21
20
|
Object.assign(
|
|
22
21
|
{
|
|
@@ -25,22 +24,21 @@ const BtIconArrowAltUp = props =>
|
|
|
25
24
|
},
|
|
26
25
|
props
|
|
27
26
|
),
|
|
28
|
-
/*#__PURE__*/
|
|
29
|
-
/*#__PURE__*/
|
|
27
|
+
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
28
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
30
29
|
d:
|
|
31
30
|
"M20.35352,13.14648,16,8.793l-4.35352,4.35352a.49995.49995,0,0,0,.707.707L15.5,10.707V22.5a.5.5,0,0,0,1,0V10.707l3.14648,3.14648a.49995.49995,0,0,0,.707-.707Z",
|
|
32
31
|
fill: "currentColor"
|
|
33
32
|
})
|
|
34
33
|
);
|
|
35
|
-
var BtIconArrowAltUp_2 = BtIconArrowAltUp;
|
|
36
34
|
|
|
37
35
|
/**
|
|
38
36
|
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
39
37
|
*/
|
|
40
38
|
var ScrollToTop = function (_a) {
|
|
41
39
|
var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, props = filterDataAttrs.__rest(_a, ["appear", "isFixed", "fill", "zIndex"]);
|
|
42
|
-
var _f = React
|
|
43
|
-
React
|
|
40
|
+
var _f = React.useState(false), hasScrolled = _f[0], setHasScrolled = _f[1];
|
|
41
|
+
React.useEffect(function () {
|
|
44
42
|
var handleScroll = debounce.debounce_1(function () {
|
|
45
43
|
setHasScrolled(window.scrollY > 0);
|
|
46
44
|
}, 100);
|
|
@@ -62,7 +60,7 @@ var ScrollToTop = function (_a) {
|
|
|
62
60
|
React__default["default"].createElement("div", { className: "arc-ScrollToTop-textWrapper" },
|
|
63
61
|
React__default["default"].createElement("span", { className: "arc-ScrollToTop-text" }, "Scroll to top")),
|
|
64
62
|
React__default["default"].createElement("span", { className: "arc-ScrollToTop-iconContainer" },
|
|
65
|
-
React__default["default"].createElement(Icon.Icon, { icon:
|
|
63
|
+
React__default["default"].createElement(Icon.Icon, { icon: BtIconArrowAltUp, size: 44 }))));
|
|
66
64
|
};
|
|
67
65
|
|
|
68
66
|
exports.ScrollToTop = ScrollToTop;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-
|
|
2
|
-
import { c as classNames } from '../_shared/esm/index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
|
-
import { d as debounce_1 } from '../_shared/esm/debounce-
|
|
5
|
-
import { I as Icon } from '../_shared/esm/Icon-
|
|
6
|
-
import '../_shared/esm/suffix-modifier-
|
|
7
|
-
import '../_shared/esm/Surface-
|
|
4
|
+
import { d as debounce_1 } from '../_shared/esm/debounce-6fed6b84.js';
|
|
5
|
+
import { I as Icon } from '../_shared/esm/Icon-3bfabb14.js';
|
|
6
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
7
|
+
import '../_shared/esm/Surface-c6e817cd.js';
|
|
8
8
|
|
|
9
|
-
const React = React__default;
|
|
10
9
|
const BtIconArrowAltUp = props =>
|
|
11
|
-
/*#__PURE__*/
|
|
10
|
+
/*#__PURE__*/ React__default.createElement(
|
|
12
11
|
"svg",
|
|
13
12
|
Object.assign(
|
|
14
13
|
{
|
|
@@ -17,14 +16,13 @@ const BtIconArrowAltUp = props =>
|
|
|
17
16
|
},
|
|
18
17
|
props
|
|
19
18
|
),
|
|
20
|
-
/*#__PURE__*/
|
|
21
|
-
/*#__PURE__*/
|
|
19
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
20
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
22
21
|
d:
|
|
23
22
|
"M20.35352,13.14648,16,8.793l-4.35352,4.35352a.49995.49995,0,0,0,.707.707L15.5,10.707V22.5a.5.5,0,0,0,1,0V10.707l3.14648,3.14648a.49995.49995,0,0,0,.707-.707Z",
|
|
24
23
|
fill: "currentColor"
|
|
25
24
|
})
|
|
26
25
|
);
|
|
27
|
-
var BtIconArrowAltUp_2 = BtIconArrowAltUp;
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
@@ -54,7 +52,7 @@ var ScrollToTop = function (_a) {
|
|
|
54
52
|
React__default.createElement("div", { className: "arc-ScrollToTop-textWrapper" },
|
|
55
53
|
React__default.createElement("span", { className: "arc-ScrollToTop-text" }, "Scroll to top")),
|
|
56
54
|
React__default.createElement("span", { className: "arc-ScrollToTop-iconContainer" },
|
|
57
|
-
React__default.createElement(Icon, { icon:
|
|
55
|
+
React__default.createElement(Icon, { icon: BtIconArrowAltUp, size: 44 }))));
|
|
58
56
|
};
|
|
59
57
|
|
|
60
58
|
export { ScrollToTop };
|