@jobber/components 4.85.5 → 4.85.6-CJS-to-ESM.3
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/README.md +4 -0
- package/dist/AnimatedPresence/{index.js → index.cjs} +1 -3
- package/dist/AnimatedPresence/index.mjs +4 -0
- package/dist/AnimatedPresence-D73apgLB.js +98 -0
- package/dist/{AnimatedPresence-20a02aaa.js → AnimatedPresence-DFaAEYUa.js} +3 -7
- package/dist/AnimatedSwitcher/index.cjs +11 -0
- package/dist/AnimatedSwitcher/index.mjs +5 -0
- package/dist/AnimatedSwitcher-B4fUExeN.js +90 -0
- package/dist/{AnimatedSwitcher-3d45ec5d.js → AnimatedSwitcher-UmlTf067.js} +4 -8
- package/dist/Autocomplete/index.cjs +33 -0
- package/dist/Autocomplete/index.mjs +27 -0
- package/dist/Autocomplete-1iO7JRX2.js +190 -0
- package/dist/Autocomplete-CfntbJ6I.js +188 -0
- package/dist/Avatar/index.cjs +13 -0
- package/dist/Avatar/index.mjs +7 -0
- package/dist/Avatar-DZCQBKMr.js +70 -0
- package/dist/Avatar-Q2BQymsE.js +72 -0
- package/dist/Banner/components/BannerIcon/index.cjs +13 -0
- package/dist/Banner/components/BannerIcon/index.mjs +7 -0
- package/dist/Banner/index.cjs +23 -0
- package/dist/Banner/index.mjs +17 -0
- package/dist/Banner-9-5fXphG.js +82 -0
- package/dist/Banner-QqoLHMka.js +84 -0
- package/dist/BannerIcon-QB3lZddm.js +24 -0
- package/dist/BannerIcon-YIreWKuC.js +27 -0
- package/dist/Body-DMRyfeGa.js +59 -0
- package/dist/Body-Dd2-HEDo.js +50 -0
- package/dist/Button/index.cjs +14 -0
- package/dist/Button/index.mjs +8 -0
- package/dist/Button-CWVwgwhn.js +50 -0
- package/dist/Button-D3mW3Hcg.js +52 -0
- package/dist/ButtonDismiss/index.cjs +15 -0
- package/dist/ButtonDismiss/index.mjs +9 -0
- package/dist/ButtonDismiss-GLptCaNc.js +8 -0
- package/dist/ButtonDismiss-l6Kunmen.js +10 -0
- package/dist/Card/index.cjs +22 -0
- package/dist/Card/index.mjs +16 -0
- package/dist/{Card-e3144022.js → Card-BeL8rCSY.js} +20 -25
- package/dist/Card-DQB6rhwZ.js +86 -0
- package/dist/Checkbox/index.cjs +16 -0
- package/dist/Checkbox/index.mjs +10 -0
- package/dist/Checkbox-C78HDAVJ.js +58 -0
- package/dist/Checkbox-qsepteuE.js +56 -0
- package/dist/Chip/hooks/index.cjs +8 -0
- package/dist/Chip/hooks/index.mjs +2 -0
- package/dist/Chip/index.cjs +27 -0
- package/dist/Chip/index.mjs +19 -0
- package/dist/Chip-Cvuqhi_q.js +70 -0
- package/dist/Chip-DSy6Xm8R.js +73 -0
- package/dist/ChipDismissible-BtVU1TDW.js +22 -0
- package/dist/ChipDismissible-C8X7PyuZ.js +19 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +23 -0
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +13 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +34 -0
- package/dist/Chips/InternalChipDismissible/index.mjs +28 -0
- package/dist/Chips/index.cjs +47 -0
- package/dist/Chips/index.mjs +43 -0
- package/dist/Chips-CWmwDShP.js +91 -0
- package/dist/Chips-DqEZ8iEX.js +93 -0
- package/dist/Combobox/components/ComboboxAction/index.cjs +13 -0
- package/dist/Combobox/components/ComboboxAction/index.mjs +7 -0
- package/dist/Combobox/components/ComboboxActivator/index.cjs +28 -0
- package/dist/Combobox/components/ComboboxActivator/index.mjs +22 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +15 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +9 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +26 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +20 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.cjs +11 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxContentSearch/index.mjs +5 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +11 -0
- package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +5 -0
- package/dist/Combobox/components/ComboboxContent/index.cjs +36 -0
- package/dist/Combobox/components/ComboboxContent/index.mjs +30 -0
- package/dist/Combobox/components/ComboboxOption/index.cjs +15 -0
- package/dist/Combobox/components/ComboboxOption/index.mjs +9 -0
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +26 -0
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +20 -0
- package/dist/Combobox/index.cjs +52 -0
- package/dist/Combobox/index.mjs +45 -0
- package/dist/Combobox-BBsXbnmz.js +122 -0
- package/dist/Combobox-YIT4j2TF.js +120 -0
- package/dist/ComboboxAction-B3RwsCtx.js +27 -0
- package/dist/ComboboxAction-BzEwYtPm.js +25 -0
- package/dist/ComboboxActivator-D41tfwAg.js +26 -0
- package/dist/ComboboxActivator-DT29yQ2v.js +28 -0
- package/dist/ComboboxContent-BRgUJ7J4.js +144 -0
- package/dist/ComboboxContent-C3MIJd9a.js +146 -0
- package/dist/ComboboxContentHeader-CJ0if4JI.js +32 -0
- package/dist/ComboboxContentHeader-DFLlxg-X.js +30 -0
- package/dist/ComboboxContentList-B_KlRjj7.js +78 -0
- package/dist/ComboboxContentList-wTyr0j1u.js +80 -0
- package/dist/ComboboxContentSearch-B8hsfo_D.js +35 -0
- package/dist/ComboboxContentSearch-UAyHetvM.js +37 -0
- package/dist/ComboboxLoadMore-Bfg4pEkg.js +19 -0
- package/dist/ComboboxLoadMore-CBXYoxXv.js +17 -0
- package/dist/ComboboxOption-CWkyTkzU.js +25 -0
- package/dist/ComboboxOption-D_f4NcBM.js +23 -0
- package/dist/ComboboxProvider-BwxfVgmL.js +13 -0
- package/dist/ComboboxProvider-Dm_tfmkr.js +10 -0
- package/dist/ComboboxTrigger-DdG9k28y.js +22 -0
- package/dist/ComboboxTrigger-zTO01W3n.js +24 -0
- package/dist/ConfirmationModal/index.cjs +29 -0
- package/dist/ConfirmationModal/index.mjs +23 -0
- package/dist/{ConfirmationModal-52e16873.js → ConfirmationModal-BX-WMEkO.js} +8 -12
- package/dist/ConfirmationModal-KamMnKR1.js +94 -0
- package/dist/Content/index.cjs +10 -0
- package/dist/Content/index.mjs +4 -0
- package/dist/Content-B8Od1cqS.js +20 -0
- package/dist/Content-BknIp35w.js +18 -0
- package/dist/Countdown/index.cjs +10 -0
- package/dist/Countdown/index.mjs +4 -0
- package/dist/Countdown-DQYi_QSJ.js +63 -0
- package/dist/{Countdown/index.js → Countdown-mTio5lCJ.js} +2 -9
- package/dist/DataDump/index.cjs +25 -0
- package/dist/DataDump/index.mjs +19 -0
- package/dist/DataDump-BQOPiKBi.js +15 -0
- package/dist/DataDump-DFesmG7X.js +17 -0
- package/dist/DataList/components/DataListAction/index.cjs +14 -0
- package/dist/DataList/components/DataListAction/index.mjs +8 -0
- package/dist/DataList/components/DataListActions/index.cjs +43 -0
- package/dist/DataList/components/DataListActions/index.mjs +37 -0
- package/dist/DataList/components/DataListActionsMenu/index.cjs +16 -0
- package/dist/DataList/components/DataListActionsMenu/index.mjs +10 -0
- package/dist/DataList/components/DataListBulkActions/index.cjs +46 -0
- package/dist/DataList/components/DataListBulkActions/index.mjs +39 -0
- package/dist/DataList/components/DataListEmptyState/index.cjs +21 -0
- package/dist/DataList/components/DataListEmptyState/index.mjs +14 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +53 -0
- package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +47 -0
- package/dist/DataList/components/DataListFilters/index.cjs +67 -0
- package/dist/DataList/components/DataListFilters/index.mjs +60 -0
- package/dist/DataList/components/DataListHeader/index.cjs +53 -0
- package/dist/DataList/components/DataListHeader/index.mjs +47 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.cjs +13 -0
- package/dist/DataList/components/DataListHeaderTile/components/index.mjs +7 -0
- package/dist/DataList/components/DataListHeaderTile/index.cjs +21 -0
- package/dist/DataList/components/DataListHeaderTile/index.mjs +15 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.cjs +15 -0
- package/dist/DataList/components/DataListItem/components/DataListItemClickable/index.mjs +9 -0
- package/dist/DataList/components/DataListItem/index.cjs +52 -0
- package/dist/DataList/components/DataListItem/index.mjs +46 -0
- package/dist/DataList/components/DataListItemActions/index.cjs +45 -0
- package/dist/DataList/components/DataListItemActions/index.mjs +38 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +25 -0
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +19 -0
- package/dist/DataList/components/DataListItems/index.cjs +53 -0
- package/dist/DataList/components/DataListItems/index.mjs +47 -0
- package/dist/DataList/components/DataListLayout/index.cjs +56 -0
- package/dist/DataList/components/DataListLayout/index.mjs +50 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.cjs +9 -0
- package/dist/DataList/components/DataListLayoutActions/DataListLayoutContext/index.mjs +2 -0
- package/dist/DataList/components/DataListLayoutActions/index.cjs +33 -0
- package/dist/DataList/components/DataListLayoutActions/index.mjs +27 -0
- package/dist/DataList/components/DataListLoadMore/index.cjs +22 -0
- package/dist/DataList/components/DataListLoadMore/index.mjs +15 -0
- package/dist/DataList/components/DataListLoadingState/index.cjs +22 -0
- package/dist/DataList/components/DataListLoadingState/index.mjs +14 -0
- package/dist/DataList/components/DataListOverflowFade/index.cjs +13 -0
- package/dist/DataList/components/DataListOverflowFade/index.mjs +6 -0
- package/dist/DataList/components/DataListSearch/index.cjs +34 -0
- package/dist/DataList/components/DataListSearch/index.mjs +26 -0
- package/dist/DataList/components/DataListStatusBar/index.cjs +32 -0
- package/dist/DataList/components/DataListStatusBar/index.mjs +25 -0
- package/dist/DataList/components/DataListStickyHeader/index.cjs +12 -0
- package/dist/DataList/components/DataListStickyHeader/index.mjs +6 -0
- package/dist/DataList/components/DataListTags/index.cjs +13 -0
- package/dist/DataList/components/DataListTags/index.mjs +7 -0
- package/dist/DataList/components/DataListTotalCount/index.cjs +16 -0
- package/dist/DataList/components/DataListTotalCount/index.mjs +9 -0
- package/dist/DataList/context/DataListContext/index.cjs +12 -0
- package/dist/DataList/context/DataListContext/index.mjs +4 -0
- package/dist/DataList/context/DataListLayoutContext/index.cjs +12 -0
- package/dist/DataList/context/DataListLayoutContext/index.mjs +4 -0
- package/dist/DataList/index.cjs +97 -0
- package/dist/DataList/index.mjs +91 -0
- package/dist/DataList-BL3zeA83.js +9 -0
- package/dist/DataList-D8rsiB6p.js +7 -0
- package/dist/DataList-DPwZfKmO.js +141 -0
- package/dist/DataList-_BDe70gJ.js +139 -0
- package/dist/DataList.const-Wz370ukq.js +25 -0
- package/dist/DataList.const-YbvF2-QB.js +38 -0
- package/dist/DataList.utils-DTLgRGnD.js +168 -0
- package/dist/DataList.utils-DoGRceLK.js +161 -0
- package/dist/DataListAction-CMZbwbN5.js +40 -0
- package/dist/DataListAction-CzSLV230.js +42 -0
- package/dist/DataListActions-CeuvLm4e.js +45 -0
- package/dist/DataListActions-DiFKUVOd.js +43 -0
- package/dist/DataListActionsMenu-BOJ6GBFf.js +55 -0
- package/dist/DataListActionsMenu-BtZsN7F7.js +53 -0
- package/dist/DataListBulkActions-BBh5Yg_B.js +29 -0
- package/dist/DataListBulkActions-DWmugOCQ.js +32 -0
- package/dist/DataListContext-9uw8XwzP.js +25 -0
- package/dist/DataListContext-B4eBw_aH.js +29 -0
- package/dist/DataListEmptyState-B7Yug5IF.js +56 -0
- package/dist/DataListEmptyState-bCN6CJ0x.js +53 -0
- package/dist/DataListFilters-BtkKOPc0.js +46 -0
- package/dist/DataListFilters-Cer-kvNp.js +43 -0
- package/dist/DataListHeader-1UOL7n9h.js +93 -0
- package/dist/DataListHeader-Baxtt1sP.js +95 -0
- package/dist/DataListHeaderTile-Bmb-3jk4.js +86 -0
- package/dist/DataListHeaderTile-CawTnwxZ.js +84 -0
- package/dist/DataListItem-B2PBp6pr.js +112 -0
- package/dist/DataListItem-CVmLNaR9.js +114 -0
- package/dist/DataListItemActions-BDMYnI5D.js +35 -0
- package/dist/DataListItemActions-BNZ702t2.js +32 -0
- package/dist/DataListItemActionsOverflow-Cv89cyOn.js +33 -0
- package/dist/DataListItemActionsOverflow-jnHamzf7.js +35 -0
- package/dist/DataListItemClickable-8iEm6BU0.js +45 -0
- package/dist/DataListItemClickable-BZ7u37GY.js +47 -0
- package/dist/DataListItems-C2afygvC.js +21 -0
- package/dist/DataListItems-DWx1TECw.js +19 -0
- package/dist/DataListLayout-DMY8Io7b.js +19 -0
- package/dist/DataListLayout-KiPC1zwI.js +21 -0
- package/dist/DataListLayoutActions-AijXG655.js +41 -0
- package/dist/DataListLayoutActions-DrTY5Ejw.js +39 -0
- package/dist/DataListLayoutContext-CavOWAD3.js +14 -0
- package/dist/DataListLayoutContext-D3REliDa.js +8 -0
- package/dist/DataListLayoutContext-DT0mtKzt.js +11 -0
- package/dist/DataListLayoutContext-DvTtBMxW.js +18 -0
- package/dist/DataListLoadMore-BgEh97cj.js +37 -0
- package/dist/DataListLoadMore-RU8ynOhk.js +34 -0
- package/dist/DataListLoadingState-Bvrt8fF7.js +25 -0
- package/dist/DataListLoadingState-Cm3mAc4V.js +29 -0
- package/dist/DataListOverflowFade-BZk4jUAc.js +28 -0
- package/dist/DataListOverflowFade-DqAHrxFC.js +25 -0
- package/dist/DataListSearch-2s_UETky.js +62 -0
- package/dist/DataListSearch-P9-j_TtT.js +66 -0
- package/dist/DataListSort-B2WPMPA4.js +94 -0
- package/dist/DataListSort-Bwwe-KI1.js +92 -0
- package/dist/DataListSortingOptions-Ciu5gWGt.js +38 -0
- package/dist/DataListSortingOptions-SfZWLgFS.js +40 -0
- package/dist/DataListStatusBar-D-j7Wk18.js +25 -0
- package/dist/DataListStatusBar-wvLYlUTP.js +22 -0
- package/dist/DataListStickyHeader-BKN9V51R.js +28 -0
- package/dist/DataListStickyHeader-CCG09E7V.js +26 -0
- package/dist/DataListTags-C5inHFOR.js +67 -0
- package/dist/DataListTags-CHZr9DW3.js +65 -0
- package/dist/DataListTotalCount-B9K3hGqp.js +30 -0
- package/dist/DataListTotalCount-Dzzm_buN.js +27 -0
- package/dist/DataTable/index.cjs +37 -0
- package/dist/DataTable/index.mjs +26 -0
- package/dist/DataTable/test-utilities/index.cjs +246 -0
- package/dist/DataTable/test-utilities/index.mjs +238 -0
- package/dist/DataTable-CMTFBvO6.js +247 -0
- package/dist/DataTable-D0MIpeXc.js +245 -0
- package/dist/DatePicker/index.cjs +24 -0
- package/dist/DatePicker/index.mjs +18 -0
- package/dist/DatePicker-B2LXoRjW.js +1279 -0
- package/dist/DatePicker-BuD8xaKB.js +1282 -0
- package/dist/DayOfMonthSelect--s7Ry-jx.js +141 -0
- package/dist/DayOfMonthSelect-UlE6seGW.js +148 -0
- package/dist/DescriptionList/index.cjs +11 -0
- package/dist/DescriptionList/index.mjs +5 -0
- package/dist/DescriptionList-CBeTDl49.js +15 -0
- package/dist/DescriptionList-DBENvQT5.js +17 -0
- package/dist/Disclosure/index.cjs +18 -0
- package/dist/Disclosure/index.mjs +12 -0
- package/dist/Disclosure-CWNmDoE_.js +38 -0
- package/dist/Disclosure-CXQ8I0Xh.js +36 -0
- package/dist/Divider/index.cjs +10 -0
- package/dist/Divider/index.mjs +4 -0
- package/dist/Divider-DOmpOAKU.js +20 -0
- package/dist/{Divider/index.js → Divider-Dt_qE9xe.js} +4 -11
- package/dist/Drawer/index.cjs +19 -0
- package/dist/Drawer/index.mjs +12 -0
- package/dist/DrawerGrid-Bg9ydPFR.js +33 -0
- package/dist/DrawerGrid-DM3WKmX6.js +36 -0
- package/dist/Emphasis/index.cjs +11 -0
- package/dist/Emphasis/index.mjs +5 -0
- package/dist/Emphasis-B3vf8Ek9.js +15 -0
- package/dist/Emphasis-xxFrrT2i.js +13 -0
- package/dist/FeatureSwitch/index.cjs +24 -0
- package/dist/FeatureSwitch/index.mjs +18 -0
- package/dist/FeatureSwitch-C1cXc0VS.js +55 -0
- package/dist/FeatureSwitch-C66nDoAy.js +57 -0
- package/dist/Flex/index.cjs +10 -0
- package/dist/Flex/index.mjs +4 -0
- package/dist/{Flex-d490c4db.js → Flex-CBKf3epb.js} +3 -8
- package/dist/Flex-DXDpEzMI.js +31 -0
- package/dist/Form/index.cjs +10 -0
- package/dist/Form/index.mjs +4 -0
- package/dist/{Form/index.js → Form-ChkdN1bx.js} +3 -9
- package/dist/Form-Dd9YKBh-.js +48 -0
- package/dist/FormField/index.cjs +21 -0
- package/dist/FormField/index.mjs +15 -0
- package/dist/FormField-D2Dlrypi.js +296 -0
- package/dist/FormField-hCrwUWca.js +298 -0
- package/dist/FormatDate/{index.js → index.cjs} +1 -3
- package/dist/FormatDate/index.mjs +2 -0
- package/dist/{FormatDate-70ea5b43.js → FormatDate-BzJETLja.js} +1 -5
- package/dist/FormatDate-Dxs33-Xj.js +27 -0
- package/dist/FormatEmail/index.cjs +10 -0
- package/dist/FormatEmail/index.mjs +4 -0
- package/dist/FormatEmail-BH1qM7Va.js +16 -0
- package/dist/FormatEmail-_Ytrq7mn.js +14 -0
- package/dist/FormatFile/index.cjs +34 -0
- package/dist/FormatFile/index.mjs +28 -0
- package/dist/FormatFile-BA27eKT-.js +154 -0
- package/dist/FormatFile-BIVkB0MY.js +156 -0
- package/dist/FormatRelativeDateTime/index.cjs +8 -0
- package/dist/FormatRelativeDateTime/index.mjs +2 -0
- package/dist/{FormatRelativeDateTime/index.js → FormatRelativeDateTime-COgItrYT.js} +5 -11
- package/dist/FormatRelativeDateTime-DTnQraIq.js +64 -0
- package/dist/FormatTime/index.cjs +8 -0
- package/dist/FormatTime/index.mjs +2 -0
- package/dist/FormatTime-BGr7_DaA.js +28 -0
- package/dist/{FormatTime/index.js → FormatTime-CfcVslez.js} +1 -7
- package/dist/Gallery/index.cjs +40 -0
- package/dist/Gallery/index.mjs +34 -0
- package/dist/Gallery-DwACTTDQ.js +68 -0
- package/dist/Gallery-OozTFjse.js +66 -0
- package/dist/Glimmer/index.cjs +13 -0
- package/dist/Glimmer/index.mjs +6 -0
- package/dist/Glimmer-Cgcy2Ruw.js +72 -0
- package/dist/Glimmer-Dz1E9Bo5.js +69 -0
- package/dist/Grid/InternalGridCell/index.cjs +10 -0
- package/dist/Grid/InternalGridCell/index.mjs +3 -0
- package/dist/Grid/index.cjs +14 -0
- package/dist/Grid/index.mjs +7 -0
- package/dist/Grid-C2MuTPpS.js +34 -0
- package/dist/Grid-MPbWi5rM.js +37 -0
- package/dist/Heading/index.cjs +12 -0
- package/dist/Heading/index.mjs +6 -0
- package/dist/Heading-CL3UujY7.js +49 -0
- package/dist/{Heading-1e8e4bd3.js → Heading-suKDLmO4.js} +3 -7
- package/dist/Icon/index.cjs +9 -0
- package/dist/Icon/index.mjs +3 -0
- package/dist/Icon-B9XNdA1T.js +36 -0
- package/dist/Icon-CoHJokXb.js +34 -0
- package/dist/InlineLabel/index.cjs +11 -0
- package/dist/InlineLabel/index.mjs +5 -0
- package/dist/InlineLabel-BPjH1ASc.js +23 -0
- package/dist/InlineLabel-x3msDD5R.js +21 -0
- package/dist/InputAvatar/index.cjs +26 -0
- package/dist/InputAvatar/index.mjs +20 -0
- package/dist/InputAvatar-BOUrq-0O.js +52 -0
- package/dist/InputAvatar-BsaMMOEu.js +50 -0
- package/dist/InputDate/index.cjs +32 -0
- package/dist/InputDate/index.mjs +26 -0
- package/dist/InputDate-C9ydz9Nu.js +33 -0
- package/dist/InputDate-DEsSVsNk.js +31 -0
- package/dist/InputEmail/index.cjs +23 -0
- package/dist/InputEmail/index.mjs +16 -0
- package/dist/InputEmail-58nfESu9.js +20 -0
- package/dist/InputEmail-C_90uNvB.js +23 -0
- package/dist/InputFile/index.cjs +23 -0
- package/dist/InputFile/index.mjs +16 -0
- package/dist/InputFile-BTkuYVab.js +2794 -0
- package/dist/InputFile-D3TxxmjO.js +2797 -0
- package/dist/InputGroup/index.cjs +10 -0
- package/dist/InputGroup/index.mjs +4 -0
- package/dist/{InputGroup-8d4fd4eb.js → InputGroup-Bljb97cw.js} +5 -10
- package/dist/InputGroup-CCJ2rycA.js +26 -0
- package/dist/InputNumber/index.cjs +22 -0
- package/dist/InputNumber/index.mjs +16 -0
- package/dist/InputNumber-9zWSTnld.js +56 -0
- package/dist/{InputNumber-d451b52e.js → InputNumber-B0sa7sL7.js} +2 -6
- package/dist/InputPassword/index.cjs +22 -0
- package/dist/InputPassword/index.mjs +16 -0
- package/dist/InputPassword--RuWqNxH.js +21 -0
- package/dist/InputPassword-D6CEA3YM.js +19 -0
- package/dist/InputPhoneNumber/index.cjs +22 -0
- package/dist/InputPhoneNumber/index.mjs +16 -0
- package/dist/{InputPhoneNumber/index.js → InputPhoneNumber-Bv3OG77a.js} +8 -25
- package/dist/InputPhoneNumber-j8Cr2jkb.js +97 -0
- package/dist/InputText/index.cjs +23 -0
- package/dist/InputText/index.mjs +17 -0
- package/dist/{InputText-55b6cb65.js → InputText--fuxI6yf.js} +4 -8
- package/dist/InputText-CCmzDC9W.js +96 -0
- package/dist/InputTime/index.cjs +27 -0
- package/dist/InputTime/index.mjs +21 -0
- package/dist/{InputTime/index.js → InputTime-BcgwlVsy.js} +5 -25
- package/dist/InputTime-DBtpOhbX.js +187 -0
- package/dist/InputValidation/index.cjs +15 -0
- package/dist/InputValidation/index.mjs +9 -0
- package/dist/InputValidation-BmgvSw0e.js +23 -0
- package/dist/InputValidation-DIwnbDDv.js +25 -0
- package/dist/InternalChipDismissible-Btb0-4Ng.js +157 -0
- package/dist/InternalChipDismissible-DO0XSGT9.js +162 -0
- package/dist/InternalGridCell-CBv95C-G.js +37 -0
- package/dist/InternalGridCell-DFrhM8oX.js +40 -0
- package/dist/LightBox/index.cjs +25 -0
- package/dist/LightBox/index.mjs +19 -0
- package/dist/LightBox-D4a2D7do.js +109 -0
- package/dist/LightBox-D57afhgq.js +111 -0
- package/dist/Link/index.cjs +8 -0
- package/dist/Link/index.mjs +2 -0
- package/dist/Link-Bnzn51lp.js +9 -0
- package/dist/Link-CTWzdpyV.js +7 -0
- package/dist/List/index.cjs +28 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.mjs +21 -0
- package/dist/List-BmI9aBh-.js +193 -0
- package/dist/List-DMvKP4KP.js +196 -0
- package/dist/Markdown/index.cjs +17 -0
- package/dist/Markdown/index.mjs +11 -0
- package/dist/Markdown-B2B4q1R4.js +57 -0
- package/dist/Markdown-BqNLA1UK.js +55 -0
- package/dist/Menu/index.cjs +19 -0
- package/dist/Menu/index.mjs +13 -0
- package/dist/Menu-6YnPYEq0.js +132 -0
- package/dist/Menu-D3mhNOYC.js +134 -0
- package/dist/Modal/index.cjs +23 -0
- package/dist/Modal/index.mjs +17 -0
- package/dist/Modal-DYsKMdiT.js +65 -0
- package/dist/Modal-u49JU_yq.js +63 -0
- package/dist/MultiSelect/index.cjs +17 -0
- package/dist/MultiSelect/index.mjs +11 -0
- package/dist/MultiSelect-ByY6NzAS.js +169 -0
- package/dist/{MultiSelect/index.js → MultiSelect-D_-_TiTD.js} +16 -27
- package/dist/Option-CK6AzE_2.js +12 -0
- package/dist/Option-CbvjqSHC.js +15 -0
- package/dist/Page/index.cjs +32 -0
- package/dist/Page/index.mjs +26 -0
- package/dist/Page-B7b9jIoH.js +61 -0
- package/dist/Page-dfDVxvl3.js +59 -0
- package/dist/Popover/index.cjs +18 -0
- package/dist/Popover/index.mjs +12 -0
- package/dist/Popover-DYWEx-xf.js +49 -0
- package/dist/Popover-EUC6wuNn.js +47 -0
- package/dist/ProgressBar/index.cjs +10 -0
- package/dist/ProgressBar/index.mjs +4 -0
- package/dist/ProgressBar-D2wik11q.js +38 -0
- package/dist/ProgressBar-DjFTRxLD.js +36 -0
- package/dist/RadioGroup/index.cjs +13 -0
- package/dist/RadioGroup/index.mjs +6 -0
- package/dist/RadioGroup-CL8tcJwY.js +42 -0
- package/dist/RadioGroup-CvoMZUNQ.js +39 -0
- package/dist/RecurringSelect/components/index.cjs +16 -0
- package/dist/RecurringSelect/components/index.mjs +7 -0
- package/dist/RecurringSelect/index.cjs +36 -0
- package/dist/RecurringSelect/index.mjs +22 -0
- package/dist/RecurringSelect-D2F9hWJb.js +74 -0
- package/dist/RecurringSelect-QdDavgCT.js +76 -0
- package/dist/Select/index.cjs +23 -0
- package/dist/Select/index.mjs +16 -0
- package/dist/Spinner/index.cjs +10 -0
- package/dist/Spinner/index.mjs +4 -0
- package/dist/Spinner-BOhyUAA_.js +17 -0
- package/dist/Spinner-DT15aa_r.js +19 -0
- package/dist/StatusIndicator/index.cjs +9 -0
- package/dist/StatusIndicator/index.mjs +3 -0
- package/dist/StatusIndicator-DMcPLJ2i.js +14 -0
- package/dist/StatusIndicator-DcXKG260.js +12 -0
- package/dist/StatusLabel/index.cjs +13 -0
- package/dist/StatusLabel/index.mjs +7 -0
- package/dist/StatusLabel-8RoVevu0.js +21 -0
- package/dist/StatusLabel-BJsnaMk6.js +19 -0
- package/dist/Switch/index.cjs +11 -0
- package/dist/Switch/index.mjs +5 -0
- package/dist/Switch-CQA6xnNA.js +49 -0
- package/dist/Switch-CWis2Tw3.js +51 -0
- package/dist/Table/index.cjs +18 -0
- package/dist/Table/index.mjs +5 -0
- package/dist/Tabs/index.cjs +12 -0
- package/dist/Tabs/index.mjs +5 -0
- package/dist/Tabs-D8_NCGQa.js +70 -0
- package/dist/Tabs-DsTn5FwP.js +73 -0
- package/dist/Text/index.cjs +11 -0
- package/dist/Text/index.mjs +5 -0
- package/dist/{Text-259af966.js → Text-D9gsHxbp.js} +2 -6
- package/dist/Text-DEviM1Tv.js +25 -0
- package/dist/Toast/index.cjs +17 -0
- package/dist/Toast/index.mjs +11 -0
- package/dist/Tooltip/index.cjs +14 -0
- package/dist/Tooltip/index.mjs +8 -0
- package/dist/{Tooltip-ef3d6ef4.js → Tooltip-BEW-a9OW.js} +12 -18
- package/dist/Tooltip-mn2jRxXD.js +104 -0
- package/dist/Typography/index.cjs +10 -0
- package/dist/Typography/index.mjs +4 -0
- package/dist/Typography-Dx8KtnBw.js +57 -0
- package/dist/Typography-G8pA_xwj.js +55 -0
- package/dist/_baseAssignValue-B6tvMdT2.js +31 -0
- package/dist/_baseAssignValue-TwbvXiTB.js +29 -0
- package/dist/_baseEach--p319nr8.js +1073 -0
- package/dist/_baseEach-DPBHJoX6.js +1069 -0
- package/dist/_commonjsHelpers-B83fTs8d.js +36 -0
- package/dist/_commonjsHelpers-E-ZsRS8r.js +32 -0
- package/dist/_defineProperty-Bai9NpfZ.js +1306 -0
- package/dist/_defineProperty-DjLE4Bk3.js +1326 -0
- package/dist/_getTag-Bcit8gs_.js +718 -0
- package/dist/_getTag-Bd2IuclU.js +733 -0
- package/dist/_setToString-DwIrtHSk.js +230 -0
- package/dist/_setToString-QSHar2ai.js +234 -0
- package/dist/debounce-CJA36ltI.js +332 -0
- package/dist/debounce-D3te8_TG.js +329 -0
- package/dist/getAtlantisConfig-6FPWID0P.js +11 -0
- package/dist/helpers-B7JgOXZj.js +15 -0
- package/dist/helpers-y1-dsK59.js +17 -0
- package/dist/index.cjs +272 -0
- package/dist/index.d.mts +73 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.mjs +162 -0
- package/dist/isObjectLike-BUFV4ggG.js +197 -0
- package/dist/isObjectLike-CkQBn_-v.js +190 -0
- package/dist/isSymbol-BB8mecpv.js +33 -0
- package/dist/isSymbol-DS9vlqp3.js +35 -0
- package/dist/noop-BHeBk22E.js +26 -0
- package/dist/noop-CJPLieIK.js +24 -0
- package/dist/showToast-CSU2xysR.js +102 -0
- package/dist/showToast-lrVl7hOm.js +104 -0
- package/dist/style-inject.es-tgCJW-Cu.js +28 -0
- package/dist/tslib.es6-Df1SgIEn.js +97 -0
- package/dist/tslib.es6-ld72nsZq.js +102 -0
- package/dist/useActiveLayout-BjGE_HD9.js +16 -0
- package/dist/useActiveLayout-Bvo5EJVa.js +14 -0
- package/dist/useAssert-CmHXXmL3.js +57 -0
- package/dist/useAssert-DswGyJhs.js +59 -0
- package/dist/useBatchSelect-D2oSwHTp.js +38 -0
- package/dist/useBatchSelect-DnLpNm6-.js +36 -0
- package/dist/useChildComponent-BUH0ttPi.js +17 -0
- package/dist/useChildComponent-D95jU7NM.js +15 -0
- package/dist/useFocusTrap-BtnnoHG8.js +104 -0
- package/dist/useFocusTrap-CMLwEDMY.js +106 -0
- package/dist/useInView-Ct13SCWB.js +70 -0
- package/dist/useInView-Yth15M0p.js +68 -0
- package/dist/useOnKeyDown-B9JF2jLZ.js +72 -0
- package/dist/useOnKeyDown-BsUfDste.js +70 -0
- package/dist/useRefocusOnActivator-CMNWUYSe.js +62 -0
- package/dist/useRefocusOnActivator-DOJm9VWz.js +64 -0
- package/dist/useResizeObserver-BwGseyVc.js +1234 -0
- package/dist/useResizeObserver-ZgXMUTij.js +1231 -0
- package/dist/useResponsiveSizing-CMuS7Or1.js +46 -0
- package/dist/useResponsiveSizing-DRjeJos_.js +44 -0
- package/dist/useSafeLayoutEffect-Qir6pm57.js +44 -0
- package/dist/useSafeLayoutEffect-yaw3NyzX.js +42 -0
- package/dist/useScrollToActive-BkZ3BYNd.js +621 -0
- package/dist/useScrollToActive-DMDRmhoI.js +627 -0
- package/package.json +382 -9
- package/{rollup.config.js → rollup.config.mjs} +27 -18
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/Autocomplete/index.js +0 -209
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-76a799fa.js +0 -78
- package/dist/Banner/index.js +0 -110
- package/dist/Button/index.js +0 -16
- package/dist/Button-b73a5e01.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-350af163.js +0 -14
- package/dist/Card/index.js +0 -24
- package/dist/Checkbox/index.js +0 -18
- package/dist/Checkbox-787e2e47.js +0 -63
- package/dist/Chip/index.js +0 -41
- package/dist/Chip-3d1bfddc.js +0 -89
- package/dist/Chips/index.js +0 -524
- package/dist/Combobox/index.js +0 -40
- package/dist/Combobox-a24c8241.js +0 -479
- package/dist/ConfirmationModal/index.js +0 -31
- package/dist/Content/index.js +0 -12
- package/dist/Content-e3f7b6fc.js +0 -24
- package/dist/DataDump/index.js +0 -37
- package/dist/DataList/index.js +0 -1335
- package/dist/DataTable/index.js +0 -301
- package/dist/DatePicker/index.js +0 -20
- package/dist/DatePicker-64c5ab1a.js +0 -134
- package/dist/DescriptionList/index.js +0 -24
- package/dist/Disclosure/index.js +0 -46
- package/dist/Drawer/index.js +0 -49
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-bda56d3b.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -70
- package/dist/Flex/index.js +0 -12
- package/dist/FormField/index.js +0 -24
- package/dist/FormField-6ff183f8.js +0 -253
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -36
- package/dist/FormatFile-f036902d.js +0 -162
- package/dist/Gallery/index.js +0 -99
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer-84dee1ed.js +0 -77
- package/dist/Grid/index.js +0 -76
- package/dist/Heading/index.js +0 -14
- package/dist/Icon/index.js +0 -11
- package/dist/Icon-405a216c.js +0 -40
- package/dist/InlineLabel/index.js +0 -13
- package/dist/InlineLabel-a6557829.js +0 -28
- package/dist/InputAvatar/index.js +0 -70
- package/dist/InputDate/index.js +0 -57
- package/dist/InputEmail/index.js +0 -43
- package/dist/InputFile/index.js +0 -25
- package/dist/InputFile-bb945071.js +0 -190
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputNumber/index.js +0 -25
- package/dist/InputPassword/index.js +0 -41
- package/dist/InputText/index.js +0 -26
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-05e839fa.js +0 -29
- package/dist/LightBox/index.js +0 -24
- package/dist/LightBox-a89d8863.js +0 -117
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -93
- package/dist/Markdown/index.js +0 -19
- package/dist/Markdown-f7c55304.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-083fc4c4.js +0 -139
- package/dist/Modal/index.js +0 -25
- package/dist/Modal-c336cac6.js +0 -71
- package/dist/Option-3c4d377e.js +0 -19
- package/dist/Page/index.js +0 -78
- package/dist/Popover/index.js +0 -61
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-b68edc8f.js +0 -43
- package/dist/RadioGroup/index.js +0 -15
- package/dist/RadioGroup-17b67ade.js +0 -46
- package/dist/RecurringSelect/index.js +0 -227
- package/dist/Select/index.js +0 -26
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-9d8fc7ff.js +0 -24
- package/dist/StatusIndicator/index.js +0 -11
- package/dist/StatusIndicator-b179d06e.js +0 -18
- package/dist/StatusLabel/index.js +0 -29
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-7d4aa7c3.js +0 -56
- package/dist/Table/index.js +0 -66
- package/dist/Tabs/index.js +0 -80
- package/dist/Text/index.js +0 -13
- package/dist/Toast/index.js +0 -111
- package/dist/Tooltip/index.js +0 -16
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-c45bf216.js +0 -62
- package/dist/tslib.es6-754e2961.js +0 -46
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/dist/{getAtlantisConfig-0f3e8af2.js → getAtlantisConfig-mcMVqf6m.js} +0 -0
- /package/dist/{style-inject.es-9d2f5f4e.js → style-inject.es-XZHJH68X.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var DataList_utils = require('./DataList.utils-DTLgRGnD.js');
|
|
5
|
+
var DataListContext = require('./DataListContext-B4eBw_aH.js');
|
|
6
|
+
|
|
7
|
+
// This component is meant to capture the props of the DataList.Filters
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
+
function DataListStatusBar(_) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders the DataList.StatusBar component
|
|
14
|
+
*/
|
|
15
|
+
function InternalDataListStatusBar() {
|
|
16
|
+
const { children: parentChildren } = DataListContext.useDataListContext();
|
|
17
|
+
const component = DataList_utils.getCompoundComponent(parentChildren, DataListStatusBar);
|
|
18
|
+
if (!component)
|
|
19
|
+
return null;
|
|
20
|
+
const children = component === null || component === void 0 ? void 0 : component.props.children;
|
|
21
|
+
return React.createElement(React.Fragment, null, children);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.DataListStatusBar = DataListStatusBar;
|
|
25
|
+
exports.InternalDataListStatusBar = InternalDataListStatusBar;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { g as getCompoundComponent } from './DataList.utils-DoGRceLK.js';
|
|
3
|
+
import { u as useDataListContext } from './DataListContext-9uw8XwzP.js';
|
|
4
|
+
|
|
5
|
+
// This component is meant to capture the props of the DataList.Filters
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
|
+
function DataListStatusBar(_) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Renders the DataList.StatusBar component
|
|
12
|
+
*/
|
|
13
|
+
function InternalDataListStatusBar() {
|
|
14
|
+
const { children: parentChildren } = useDataListContext();
|
|
15
|
+
const component = getCompoundComponent(parentChildren, DataListStatusBar);
|
|
16
|
+
if (!component)
|
|
17
|
+
return null;
|
|
18
|
+
const children = component === null || component === void 0 ? void 0 : component.props.children;
|
|
19
|
+
return React.createElement(React.Fragment, null, children);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DataListStatusBar as D, InternalDataListStatusBar as I };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classnames = require('classnames');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
6
|
+
var DataList_const = require('./DataList.const-YbvF2-QB.js');
|
|
7
|
+
|
|
8
|
+
var css_248z = ".PGOHzrMh374- {\n --offset: 1px;\n --sticky-header-transition-properties: var(--timing-base) ease-in-out;\n\n position: sticky;\n top: calc(1px * -1);\n top: calc(var(--offset) * -1);\n z-index: var(--elevation-base);\n padding-top: 1px;\n padding-top: var(--offset);\n background-color: var(--color-surface);\n}\n\n/**\n * Draw a border that gets covered by the column headers border when it shows up.\n *\n * Mostly to prevent us from writing some complex JS to remove the border when\n * the column headers show up.\n */\n\n.PGOHzrMh374-::before {\n content: \"\";\n display: block;\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: -1;\n width: 0;\n height: 0;\n background-color: var(--color-border);\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n transition: height var(--sticky-header-transition-properties)\n var(--timing-quick),\n width var(--sticky-header-transition-properties);\n}\n\n.PGjWc5ocjpI-::before {\n width: 100%;\n height: var(--border-thick);\n transition: height var(--sticky-header-transition-properties),\n width var(--sticky-header-transition-properties) var(--timing-quick);\n}\n";
|
|
9
|
+
var styles = {"header":"PGOHzrMh374-","stuck":"PGjWc5ocjpI-"};
|
|
10
|
+
styleInject_es.styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
function DataListStickyHeader({ children }) {
|
|
13
|
+
const [isStuck, setIsStuck] = React.useState(false);
|
|
14
|
+
const ref = React.useRef(null);
|
|
15
|
+
const handleObserver = React.useCallback(([e]) => setIsStuck(e.intersectionRatio < 1), [setIsStuck]);
|
|
16
|
+
React.useEffect(() => {
|
|
17
|
+
if (!window.IntersectionObserver)
|
|
18
|
+
return;
|
|
19
|
+
const observer = new IntersectionObserver(handleObserver, { threshold: 1 });
|
|
20
|
+
ref.current && observer.observe(ref.current);
|
|
21
|
+
return () => {
|
|
22
|
+
ref.current && observer.unobserve(ref.current);
|
|
23
|
+
};
|
|
24
|
+
}, [handleObserver, ref.current]);
|
|
25
|
+
return (React.createElement("div", { "data-testid": DataList_const.DATA_LIST_STICKY_HEADER_TEST_ID, ref: ref, className: classnames(styles.header, { [styles.stuck]: isStuck }) }, children));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.DataListStickyHeader = DataListStickyHeader;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import classnames from 'classnames';
|
|
2
|
+
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
+
import { a as DATA_LIST_STICKY_HEADER_TEST_ID } from './DataList.const-Wz370ukq.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = ".PGOHzrMh374- {\n --offset: 1px;\n --sticky-header-transition-properties: var(--timing-base) ease-in-out;\n\n position: sticky;\n top: calc(1px * -1);\n top: calc(var(--offset) * -1);\n z-index: var(--elevation-base);\n padding-top: 1px;\n padding-top: var(--offset);\n background-color: var(--color-surface);\n}\n\n/**\n * Draw a border that gets covered by the column headers border when it shows up.\n *\n * Mostly to prevent us from writing some complex JS to remove the border when\n * the column headers show up.\n */\n\n.PGOHzrMh374-::before {\n content: \"\";\n display: block;\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: -1;\n width: 0;\n height: 0;\n background-color: var(--color-border);\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n transition: height var(--sticky-header-transition-properties)\n var(--timing-quick),\n width var(--sticky-header-transition-properties);\n}\n\n.PGjWc5ocjpI-::before {\n width: 100%;\n height: var(--border-thick);\n transition: height var(--sticky-header-transition-properties),\n width var(--sticky-header-transition-properties) var(--timing-quick);\n}\n";
|
|
7
|
+
var styles = {"header":"PGOHzrMh374-","stuck":"PGjWc5ocjpI-"};
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
function DataListStickyHeader({ children }) {
|
|
11
|
+
const [isStuck, setIsStuck] = useState(false);
|
|
12
|
+
const ref = useRef(null);
|
|
13
|
+
const handleObserver = useCallback(([e]) => setIsStuck(e.intersectionRatio < 1), [setIsStuck]);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (!window.IntersectionObserver)
|
|
16
|
+
return;
|
|
17
|
+
const observer = new IntersectionObserver(handleObserver, { threshold: 1 });
|
|
18
|
+
ref.current && observer.observe(ref.current);
|
|
19
|
+
return () => {
|
|
20
|
+
ref.current && observer.unobserve(ref.current);
|
|
21
|
+
};
|
|
22
|
+
}, [handleObserver, ref.current]);
|
|
23
|
+
return (React.createElement("div", { "data-testid": DATA_LIST_STICKY_HEADER_TEST_ID, ref: ref, className: classnames(styles.header, { [styles.stuck]: isStuck }) }, children));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { DataListStickyHeader as D };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
6
|
+
var InlineLabel = require('./InlineLabel-BPjH1ASc.js');
|
|
7
|
+
var Text = require('./Text-D9gsHxbp.js');
|
|
8
|
+
|
|
9
|
+
var css_248z = "._8MYxAQYdZzM- {\n position: relative;\n}\n\n.WRV-UmQmPzo- {\n --inline-label-height: calc(\n var(--typography--fontSize-small) * 1.5 + calc(var(--space-smaller) * 1.25) *\n 2\n );\n\n display: -ms-flexbox;\n\n display: flex;\n z-index: var(--elevation-default);\n max-height: calc((\n var(--typography--fontSize-small) * 1.5 + (var(--space-smaller) * 1.25) *\n 2\n ) * 2);\n max-height: calc(calc(\n var(--typography--fontSize-small) * 1.5 + calc(var(--space-smaller) * 1.25) *\n 2\n ) * 2);\n max-height: calc(var(--inline-label-height) * 2);\n overflow: hidden;\n white-space: nowrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n gap: var(--space-smaller);\n}\n\n.ND-cN-mX5-c- {\n -webkit-mask-image: linear-gradient(\n to left,\n transparent,\n transparent var(--space-large),\n rgba(0, 0, 0, 1) var(--space-largest),\n rgba(0, 0, 0, 1)\n );\n mask-image: linear-gradient(\n to left,\n transparent,\n transparent var(--space-large),\n rgba(0, 0, 0, 1) var(--space-largest),\n rgba(0, 0, 0, 1)\n );\n}\n\n.liQeWCMenD0- {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n -ms-flex-align: center;\n align-items: center;\n}\n";
|
|
10
|
+
var styles = {"tagWrapper":"_8MYxAQYdZzM-","tags":"WRV-UmQmPzo-","tagsMask":"ND-cN-mX5-c-","tagCount":"liQeWCMenD0-"};
|
|
11
|
+
styleInject_es.styleInject(css_248z);
|
|
12
|
+
|
|
13
|
+
function DataListTags({ items }) {
|
|
14
|
+
const ref = React.useRef(null);
|
|
15
|
+
const [visibleIndex, setVisibleIndex] = React.useState([]);
|
|
16
|
+
const visibleItems = visibleIndex.filter(Boolean).length;
|
|
17
|
+
const shouldShowTagCount = Boolean(visibleItems);
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
if (!window.IntersectionObserver)
|
|
21
|
+
return;
|
|
22
|
+
setVisibleIndex([]);
|
|
23
|
+
const observer = new IntersectionObserver(handleIntersection, {
|
|
24
|
+
root: ref.current,
|
|
25
|
+
threshold: buildIntersectionThreshold(items),
|
|
26
|
+
});
|
|
27
|
+
const elements = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll("[data-tag-element]");
|
|
28
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach(element => observer.observe(element));
|
|
29
|
+
return () => {
|
|
30
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach(element => observer.unobserve(element));
|
|
31
|
+
};
|
|
32
|
+
}, [items]);
|
|
33
|
+
return (React.createElement("div", { className: styles.tagWrapper, ref: ref },
|
|
34
|
+
React.createElement("div", { className: classnames(styles.tags, {
|
|
35
|
+
[styles.tagsMask]: shouldShowTagCount,
|
|
36
|
+
}) }, items.filter(Boolean).map((tag, index) => (React.createElement("div", { key: tag, "data-tag-element": index },
|
|
37
|
+
React.createElement(InlineLabel.InlineLabel, null, tag))))),
|
|
38
|
+
shouldShowTagCount && (React.createElement("div", { className: styles.tagCount },
|
|
39
|
+
React.createElement(Text.Text, null,
|
|
40
|
+
"+",
|
|
41
|
+
visibleItems)))));
|
|
42
|
+
function handleIntersection(...[entries]) {
|
|
43
|
+
entries.forEach(entry => {
|
|
44
|
+
const index = entry.target.getAttribute("data-tag-element");
|
|
45
|
+
const indexNumber = Number(index);
|
|
46
|
+
if (!index || isNaN(indexNumber))
|
|
47
|
+
return;
|
|
48
|
+
setVisibleIndex(prevState => {
|
|
49
|
+
const newState = [...prevState];
|
|
50
|
+
newState[indexNumber] = entry.intersectionRatio !== 1;
|
|
51
|
+
return newState;
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function buildIntersectionThreshold(items) {
|
|
57
|
+
const thresholds = [];
|
|
58
|
+
const totalItems = items.length;
|
|
59
|
+
for (let i = 1.0; i <= totalItems; i++) {
|
|
60
|
+
const ratio = i / totalItems;
|
|
61
|
+
thresholds.push(ratio);
|
|
62
|
+
}
|
|
63
|
+
thresholds.push(0);
|
|
64
|
+
return thresholds;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
exports.DataListTags = DataListTags;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
+
import { I as InlineLabel } from './InlineLabel-x3msDD5R.js';
|
|
5
|
+
import { T as Text } from './Text-DEviM1Tv.js';
|
|
6
|
+
|
|
7
|
+
var css_248z = "._8MYxAQYdZzM- {\n position: relative;\n}\n\n.WRV-UmQmPzo- {\n --inline-label-height: calc(\n var(--typography--fontSize-small) * 1.5 + calc(var(--space-smaller) * 1.25) *\n 2\n );\n\n display: -ms-flexbox;\n\n display: flex;\n z-index: var(--elevation-default);\n max-height: calc((\n var(--typography--fontSize-small) * 1.5 + (var(--space-smaller) * 1.25) *\n 2\n ) * 2);\n max-height: calc(calc(\n var(--typography--fontSize-small) * 1.5 + calc(var(--space-smaller) * 1.25) *\n 2\n ) * 2);\n max-height: calc(var(--inline-label-height) * 2);\n overflow: hidden;\n white-space: nowrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n gap: var(--space-smaller);\n}\n\n.ND-cN-mX5-c- {\n -webkit-mask-image: linear-gradient(\n to left,\n transparent,\n transparent var(--space-large),\n rgba(0, 0, 0, 1) var(--space-largest),\n rgba(0, 0, 0, 1)\n );\n mask-image: linear-gradient(\n to left,\n transparent,\n transparent var(--space-large),\n rgba(0, 0, 0, 1) var(--space-largest),\n rgba(0, 0, 0, 1)\n );\n}\n\n.liQeWCMenD0- {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n -ms-flex-align: center;\n align-items: center;\n}\n";
|
|
8
|
+
var styles = {"tagWrapper":"_8MYxAQYdZzM-","tags":"WRV-UmQmPzo-","tagsMask":"ND-cN-mX5-c-","tagCount":"liQeWCMenD0-"};
|
|
9
|
+
styleInject(css_248z);
|
|
10
|
+
|
|
11
|
+
function DataListTags({ items }) {
|
|
12
|
+
const ref = useRef(null);
|
|
13
|
+
const [visibleIndex, setVisibleIndex] = useState([]);
|
|
14
|
+
const visibleItems = visibleIndex.filter(Boolean).length;
|
|
15
|
+
const shouldShowTagCount = Boolean(visibleItems);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
if (!window.IntersectionObserver)
|
|
19
|
+
return;
|
|
20
|
+
setVisibleIndex([]);
|
|
21
|
+
const observer = new IntersectionObserver(handleIntersection, {
|
|
22
|
+
root: ref.current,
|
|
23
|
+
threshold: buildIntersectionThreshold(items),
|
|
24
|
+
});
|
|
25
|
+
const elements = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll("[data-tag-element]");
|
|
26
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach(element => observer.observe(element));
|
|
27
|
+
return () => {
|
|
28
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach(element => observer.unobserve(element));
|
|
29
|
+
};
|
|
30
|
+
}, [items]);
|
|
31
|
+
return (React.createElement("div", { className: styles.tagWrapper, ref: ref },
|
|
32
|
+
React.createElement("div", { className: classnames(styles.tags, {
|
|
33
|
+
[styles.tagsMask]: shouldShowTagCount,
|
|
34
|
+
}) }, items.filter(Boolean).map((tag, index) => (React.createElement("div", { key: tag, "data-tag-element": index },
|
|
35
|
+
React.createElement(InlineLabel, null, tag))))),
|
|
36
|
+
shouldShowTagCount && (React.createElement("div", { className: styles.tagCount },
|
|
37
|
+
React.createElement(Text, null,
|
|
38
|
+
"+",
|
|
39
|
+
visibleItems)))));
|
|
40
|
+
function handleIntersection(...[entries]) {
|
|
41
|
+
entries.forEach(entry => {
|
|
42
|
+
const index = entry.target.getAttribute("data-tag-element");
|
|
43
|
+
const indexNumber = Number(index);
|
|
44
|
+
if (!index || isNaN(indexNumber))
|
|
45
|
+
return;
|
|
46
|
+
setVisibleIndex(prevState => {
|
|
47
|
+
const newState = [...prevState];
|
|
48
|
+
newState[indexNumber] = entry.intersectionRatio !== 1;
|
|
49
|
+
return newState;
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function buildIntersectionThreshold(items) {
|
|
55
|
+
const thresholds = [];
|
|
56
|
+
const totalItems = items.length;
|
|
57
|
+
for (let i = 1.0; i <= totalItems; i++) {
|
|
58
|
+
const ratio = i / totalItems;
|
|
59
|
+
thresholds.push(ratio);
|
|
60
|
+
}
|
|
61
|
+
thresholds.push(0);
|
|
62
|
+
return thresholds;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { DataListTags as D };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styleInject_es = require('./style-inject.es-XZHJH68X.js');
|
|
5
|
+
var Text = require('./Text-D9gsHxbp.js');
|
|
6
|
+
var Glimmer = require('./Glimmer-Cgcy2Ruw.js');
|
|
7
|
+
|
|
8
|
+
var css_248z = ".F56prQsXm3A- {\n min-width: 80px;\n margin-left: var(--space-small);\n}\n";
|
|
9
|
+
var styles = {"results":"F56prQsXm3A-"};
|
|
10
|
+
styleInject_es.styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
const DATALIST_TOTALCOUNT_TEST_ID = "ATL-DataList-TotalCount";
|
|
13
|
+
function DataListTotalCount({ totalCount, loading, }) {
|
|
14
|
+
if (totalCount === undefined)
|
|
15
|
+
return null;
|
|
16
|
+
let output = null;
|
|
17
|
+
if (totalCount === null && loading) {
|
|
18
|
+
output = React.createElement(Glimmer.Glimmer, { size: "auto", shape: "rectangle" });
|
|
19
|
+
}
|
|
20
|
+
if (typeof totalCount === "number") {
|
|
21
|
+
output = (React.createElement(Text.Text, { variation: "subdued" },
|
|
22
|
+
"(",
|
|
23
|
+
totalCount.toLocaleString(),
|
|
24
|
+
" results)"));
|
|
25
|
+
}
|
|
26
|
+
return (React.createElement("div", { className: styles.results, "data-testid": DATALIST_TOTALCOUNT_TEST_ID }, output));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
exports.DATALIST_TOTALCOUNT_TEST_ID = DATALIST_TOTALCOUNT_TEST_ID;
|
|
30
|
+
exports.DataListTotalCount = DataListTotalCount;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
3
|
+
import { T as Text } from './Text-DEviM1Tv.js';
|
|
4
|
+
import { G as Glimmer } from './Glimmer-Dz1E9Bo5.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = ".F56prQsXm3A- {\n min-width: 80px;\n margin-left: var(--space-small);\n}\n";
|
|
7
|
+
var styles = {"results":"F56prQsXm3A-"};
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
const DATALIST_TOTALCOUNT_TEST_ID = "ATL-DataList-TotalCount";
|
|
11
|
+
function DataListTotalCount({ totalCount, loading, }) {
|
|
12
|
+
if (totalCount === undefined)
|
|
13
|
+
return null;
|
|
14
|
+
let output = null;
|
|
15
|
+
if (totalCount === null && loading) {
|
|
16
|
+
output = React.createElement(Glimmer, { size: "auto", shape: "rectangle" });
|
|
17
|
+
}
|
|
18
|
+
if (typeof totalCount === "number") {
|
|
19
|
+
output = (React.createElement(Text, { variation: "subdued" },
|
|
20
|
+
"(",
|
|
21
|
+
totalCount.toLocaleString(),
|
|
22
|
+
" results)"));
|
|
23
|
+
}
|
|
24
|
+
return (React.createElement("div", { className: styles.results, "data-testid": DATALIST_TOTALCOUNT_TEST_ID }, output));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DATALIST_TOTALCOUNT_TEST_ID as D, DataListTotalCount as a };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var DataTable = require('../DataTable-CMTFBvO6.js');
|
|
4
|
+
var helpers = require('../helpers-y1-dsK59.js');
|
|
5
|
+
var reactTable = require('@tanstack/react-table');
|
|
6
|
+
require('classnames');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../useResizeObserver-BwGseyVc.js');
|
|
9
|
+
require('../_commonjsHelpers-B83fTs8d.js');
|
|
10
|
+
require('../debounce-CJA36ltI.js');
|
|
11
|
+
require('../isObjectLike-BUFV4ggG.js');
|
|
12
|
+
require('../isSymbol-DS9vlqp3.js');
|
|
13
|
+
require('../style-inject.es-XZHJH68X.js');
|
|
14
|
+
require('../Glimmer-Cgcy2Ruw.js');
|
|
15
|
+
require('../tslib.es6-ld72nsZq.js');
|
|
16
|
+
require('../Content-B8Od1cqS.js');
|
|
17
|
+
require('../Option-CbvjqSHC.js');
|
|
18
|
+
require('../FormField-hCrwUWca.js');
|
|
19
|
+
require('react-hook-form');
|
|
20
|
+
require('../Button-D3mW3Hcg.js');
|
|
21
|
+
require('react-router-dom');
|
|
22
|
+
require('../Icon-B9XNdA1T.js');
|
|
23
|
+
require('@jobber/design');
|
|
24
|
+
require('../Typography-Dx8KtnBw.js');
|
|
25
|
+
require('../Text-D9gsHxbp.js');
|
|
26
|
+
require('../InputValidation-DIwnbDDv.js');
|
|
27
|
+
require('framer-motion');
|
|
28
|
+
require('../Spinner-DT15aa_r.js');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.DataTable = DataTable.DataTable;
|
|
33
|
+
exports.mockContainerWidth = helpers.mockContainerWidth;
|
|
34
|
+
Object.defineProperty(exports, "createColumnHelper", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return reactTable.createColumnHelper; }
|
|
37
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { D as DataTable } from '../DataTable-D0MIpeXc.js';
|
|
2
|
+
export { m as mockContainerWidth } from '../helpers-B7JgOXZj.js';
|
|
3
|
+
export { createColumnHelper } from '@tanstack/react-table';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '../useResizeObserver-ZgXMUTij.js';
|
|
7
|
+
import '../_commonjsHelpers-E-ZsRS8r.js';
|
|
8
|
+
import '../debounce-D3te8_TG.js';
|
|
9
|
+
import '../isObjectLike-CkQBn_-v.js';
|
|
10
|
+
import '../isSymbol-BB8mecpv.js';
|
|
11
|
+
import '../style-inject.es-tgCJW-Cu.js';
|
|
12
|
+
import '../Glimmer-Dz1E9Bo5.js';
|
|
13
|
+
import '../tslib.es6-Df1SgIEn.js';
|
|
14
|
+
import '../Content-BknIp35w.js';
|
|
15
|
+
import '../Option-CK6AzE_2.js';
|
|
16
|
+
import '../FormField-D2Dlrypi.js';
|
|
17
|
+
import 'react-hook-form';
|
|
18
|
+
import '../Button-CWVwgwhn.js';
|
|
19
|
+
import 'react-router-dom';
|
|
20
|
+
import '../Icon-CoHJokXb.js';
|
|
21
|
+
import '@jobber/design';
|
|
22
|
+
import '../Typography-G8pA_xwj.js';
|
|
23
|
+
import '../Text-DEviM1Tv.js';
|
|
24
|
+
import '../InputValidation-BmgvSw0e.js';
|
|
25
|
+
import 'framer-motion';
|
|
26
|
+
import '../Spinner-BOhyUAA_.js';
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var helpers = require('../../helpers-y1-dsK59.js');
|
|
4
|
+
require('../../useResizeObserver-BwGseyVc.js');
|
|
5
|
+
require('../../_commonjsHelpers-B83fTs8d.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('../../debounce-CJA36ltI.js');
|
|
8
|
+
require('../../isObjectLike-BUFV4ggG.js');
|
|
9
|
+
require('../../isSymbol-DS9vlqp3.js');
|
|
10
|
+
|
|
11
|
+
const data = [
|
|
12
|
+
{
|
|
13
|
+
name: "Eddard",
|
|
14
|
+
house: "Stark",
|
|
15
|
+
region: "North",
|
|
16
|
+
sigil: "Direwolf",
|
|
17
|
+
isAlive: "No",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "Catelyn",
|
|
21
|
+
house: "Stark",
|
|
22
|
+
region: "North",
|
|
23
|
+
sigil: "Direwolf",
|
|
24
|
+
isAlive: "No",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "Jon Snow",
|
|
28
|
+
house: "Stark",
|
|
29
|
+
region: "North",
|
|
30
|
+
sigil: "Direwolf",
|
|
31
|
+
isAlive: "Yes",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Robert",
|
|
35
|
+
house: "Stark",
|
|
36
|
+
region: "North",
|
|
37
|
+
sigil: "Direwolf",
|
|
38
|
+
isAlive: "No",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "Rickon",
|
|
42
|
+
house: "Stark",
|
|
43
|
+
region: "North",
|
|
44
|
+
sigil: "Direwolf",
|
|
45
|
+
isAlive: "No",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "Robert",
|
|
49
|
+
house: "Baratheon",
|
|
50
|
+
region: "Stormlands",
|
|
51
|
+
sigil: "Black Stag",
|
|
52
|
+
isAlive: "No",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "Cercei",
|
|
56
|
+
house: "Lannister",
|
|
57
|
+
region: "Westerlands",
|
|
58
|
+
sigil: "Golden Lion",
|
|
59
|
+
isAlive: "Yes",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "Sansa",
|
|
63
|
+
house: "Stark",
|
|
64
|
+
region: "North",
|
|
65
|
+
sigil: "Direwolf",
|
|
66
|
+
isAlive: "Yes",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "Arya",
|
|
70
|
+
house: "Stark",
|
|
71
|
+
region: "North",
|
|
72
|
+
sigil: "Direwolf",
|
|
73
|
+
isAlive: "Yes",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "Bran",
|
|
77
|
+
house: "Stark",
|
|
78
|
+
region: "North",
|
|
79
|
+
sigil: "Direwolf",
|
|
80
|
+
isAlive: "Yes",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "Joffrey",
|
|
84
|
+
house: "Baratheon",
|
|
85
|
+
region: "Stormlands",
|
|
86
|
+
sigil: "Black Stag",
|
|
87
|
+
isAlive: "No",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "Myrcella",
|
|
91
|
+
house: "Baratheon",
|
|
92
|
+
region: "Stormlands",
|
|
93
|
+
sigil: "Black Stag",
|
|
94
|
+
isAlive: "Yes",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "Tommen",
|
|
98
|
+
house: "Baratheon",
|
|
99
|
+
region: "Stormlands",
|
|
100
|
+
sigil: "Black Stag",
|
|
101
|
+
isAlive: "Yes",
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
const columns = [
|
|
105
|
+
{
|
|
106
|
+
accessorKey: "name",
|
|
107
|
+
cell: info => info.getValue(),
|
|
108
|
+
header: "Name",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
accessorKey: "house",
|
|
112
|
+
cell: info => info.getValue(),
|
|
113
|
+
header: "House",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
accessorKey: "region",
|
|
117
|
+
cell: info => info.getValue(),
|
|
118
|
+
header: "Region",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
accessorKey: "sigil",
|
|
122
|
+
cell: info => info.getValue(),
|
|
123
|
+
header: "Sigil",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
accessorKey: "isAlive",
|
|
127
|
+
accessorFn: row => (row.name === "Jon Snow" ? "Resurrected" : row.isAlive),
|
|
128
|
+
cell: info => info.getValue(),
|
|
129
|
+
header: "Alive",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
const royaltyReportColumns = [
|
|
133
|
+
{
|
|
134
|
+
id: "franchiseName",
|
|
135
|
+
accessorKey: "franchiseName",
|
|
136
|
+
header: "Franchise Name",
|
|
137
|
+
footer: "Report Totals ($)",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: "payment",
|
|
141
|
+
accessorKey: "payment",
|
|
142
|
+
header: "Payment ($)",
|
|
143
|
+
footer: "10,050,400",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "royaltyRate",
|
|
147
|
+
accessorKey: "royaltyRate",
|
|
148
|
+
header: "Royalty Rate (%)",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: "royaltyAmount",
|
|
152
|
+
accessorKey: "royaltyAmount",
|
|
153
|
+
header: "Royalty Amount ($)",
|
|
154
|
+
footer: "300,000",
|
|
155
|
+
},
|
|
156
|
+
];
|
|
157
|
+
const royaltyReportData = [
|
|
158
|
+
{
|
|
159
|
+
franchiseName: "The Patch Boys of Macon and Warner Robins",
|
|
160
|
+
payment: "1,000,000",
|
|
161
|
+
royaltyRate: 5,
|
|
162
|
+
royaltyAmount: "50,000",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
franchiseName: "The Patch Boys of San Antonio",
|
|
166
|
+
payment: "2,000,000",
|
|
167
|
+
royaltyRate: 5,
|
|
168
|
+
royaltyAmount: "40,000",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
franchiseName: "The Patch Boys of Phoenix",
|
|
172
|
+
payment: "1,250,000",
|
|
173
|
+
royaltyRate: 8,
|
|
174
|
+
royaltyAmount: "20,000",
|
|
175
|
+
},
|
|
176
|
+
];
|
|
177
|
+
const columnSizeData = [
|
|
178
|
+
{
|
|
179
|
+
name: "Daenerys Stormborn of House Targaryen, the First of Her Name, Queen of the Andals and the First Men, Protector of the Seven Kingdoms, the Mother of Dragons, the Khaleesi of the Great Grass Sea, the Unburnt, the Breaker of Chains.",
|
|
180
|
+
points: "1,000,000",
|
|
181
|
+
chance: 5,
|
|
182
|
+
power: "50,000",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "Aegon “The Conqueror” Targaryen and Rhaenys Targaryen",
|
|
186
|
+
points: "2,000,000",
|
|
187
|
+
chance: 5,
|
|
188
|
+
power: "40,000",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "Jaehaerys “The Old King” Targaryen and Alysanne Targaryen",
|
|
192
|
+
points: "1,250,000",
|
|
193
|
+
chance: 8,
|
|
194
|
+
power: "20,000",
|
|
195
|
+
},
|
|
196
|
+
];
|
|
197
|
+
const columSizeColumns = [
|
|
198
|
+
{
|
|
199
|
+
id: "name",
|
|
200
|
+
accessorKey: "name",
|
|
201
|
+
header: "Name",
|
|
202
|
+
footer: "Totals",
|
|
203
|
+
enableResizing: false,
|
|
204
|
+
cell: (info) => info.getValue(),
|
|
205
|
+
size: 538,
|
|
206
|
+
minSize: 438,
|
|
207
|
+
maxSize: 538,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: "points",
|
|
211
|
+
accessorKey: "points",
|
|
212
|
+
header: "Points",
|
|
213
|
+
footer: "10,050,400",
|
|
214
|
+
cell: (info) => info.getValue(),
|
|
215
|
+
size: 268,
|
|
216
|
+
minSize: 168,
|
|
217
|
+
maxSize: 268,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "chance",
|
|
221
|
+
accessorKey: "chance",
|
|
222
|
+
header: "Chance (%)",
|
|
223
|
+
cell: (info) => info.getValue(),
|
|
224
|
+
size: 268,
|
|
225
|
+
minSize: 168,
|
|
226
|
+
maxSize: 268,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "power",
|
|
230
|
+
accessorKey: "power",
|
|
231
|
+
header: "Power",
|
|
232
|
+
footer: "300,000",
|
|
233
|
+
cell: (info) => info.getValue(),
|
|
234
|
+
size: 268,
|
|
235
|
+
minSize: 168,
|
|
236
|
+
maxSize: 268,
|
|
237
|
+
},
|
|
238
|
+
];
|
|
239
|
+
|
|
240
|
+
exports.mockContainerWidth = helpers.mockContainerWidth;
|
|
241
|
+
exports.columSizeColumns = columSizeColumns;
|
|
242
|
+
exports.columnSizeData = columnSizeData;
|
|
243
|
+
exports.columns = columns;
|
|
244
|
+
exports.data = data;
|
|
245
|
+
exports.royaltyReportColumns = royaltyReportColumns;
|
|
246
|
+
exports.royaltyReportData = royaltyReportData;
|