@zonos/amino 4.2.6 → 4.3.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/all.d.ts +1 -0
- package/components/alert-dialog/AlertContext.d.ts +3 -3
- package/components/alert-dialog/AlertDialog.d.ts +4 -4
- package/components/avatar/AvatarBase.d.ts +5 -5
- package/components/avatar/ImageAvatar.d.ts +2 -2
- package/components/avatar/UserAvatar.d.ts +2 -2
- package/components/badge/Badge.d.ts +4 -4
- package/components/banner/Banner.d.ts +3 -3
- package/components/button/Button.d.ts +11 -11
- package/components/button/MenuButton.d.ts +2 -2
- package/components/button/RippleGroup.d.ts +2 -2
- package/components/button/_Ripple.d.ts +1 -1
- package/components/button/useRipple.d.ts +3 -3
- package/components/card/Card.d.ts +2 -2
- package/components/checkbox/Checkbox.d.ts +2 -2
- package/components/collapse/Collapse.d.ts +2 -2
- package/components/confirm-dialog/ConfirmContext.d.ts +3 -3
- package/components/confirm-dialog/ConfirmDialog.d.ts +4 -4
- package/components/connection-map/ConnectionMap.d.ts +3 -3
- package/components/cover-sheet/CoverSheet.d.ts +2 -2
- package/components/cover-sheet/CoverSheetActions.d.ts +2 -2
- package/components/currency/Currency.d.ts +1 -1
- package/components/currency/DualCurrency.d.ts +2 -2
- package/components/dark-mode-wrapper/DarkModeWrapper.d.ts +2 -2
- package/components/dialog/Dialog.d.ts +3 -3
- package/components/dialog/_BaseDialog.d.ts +3 -3
- package/components/divider/Divider.d.ts +1 -1
- package/components/drop-zone/DropZone.d.ts +3 -3
- package/components/emoji/Emoji.d.ts +1 -1
- package/components/file-upload/FileUpload.d.ts +3 -3
- package/components/graph-matrix/GraphMatrix.d.ts +3 -3
- package/components/graph-matrix/GraphMatrix.js +1 -1
- package/components/graph-matrix/_GraphiqlContextWrapper.d.ts +4 -4
- package/components/graph-matrix/_LoadingIcon.js +1 -1
- package/components/help-text/HelpText.d.ts +2 -2
- package/components/input/Input.d.ts +6 -6
- package/components/input/SearchInput.d.ts +3 -3
- package/components/input/input-type/_FloatLabelInput.d.ts +6 -6
- package/components/layout/Layout.d.ts +3 -3
- package/components/layout/Layout.js +1 -1
- package/components/layout/NavigationGroup.d.ts +3 -3
- package/components/lightbox/LightBox.d.ts +3 -3
- package/components/list/CollapsibleList.d.ts +3 -3
- package/components/list/List.d.ts +2 -2
- package/components/list-item/ListItem.d.ts +2 -2
- package/components/mdx-anchor/MdxAnchor.d.ts +2 -2
- package/components/mdx-badge/MdxBadge.d.ts +1 -1
- package/components/mdx-banner/MdxBanner.d.ts +2 -2
- package/components/mdx-bread-crumbs/MdxBreadCrumbs.d.ts +2 -2
- package/components/mdx-button/MdxButton.d.ts +2 -2
- package/components/mdx-card/MdxCard.d.ts +3 -3
- package/components/mdx-card-grid/MdxCardGrid.d.ts +2 -2
- package/components/mdx-code-block/MdxCodeBlock.d.ts +2 -2
- package/components/mdx-collapse/MdxCollapse.d.ts +2 -2
- package/components/mdx-copy-value/MdxCopyValue.d.ts +1 -1
- package/components/mdx-hero/MdxHero.d.ts +2 -2
- package/components/mdx-image/MdxImage.d.ts +2 -2
- package/components/mdx-progress-checkbox/MdxProgressCheckbox.d.ts +2 -2
- package/components/mdx-related-content/MdxRelatedContent.d.ts +2 -2
- package/components/mdx-section/MdxSection.d.ts +2 -2
- package/components/mdx-subtitle/MdxSubtitle.d.ts +1 -1
- package/components/mdx-table/MdxTable.d.ts +1 -1
- package/components/mdx-tabs/MdxTab.d.ts +1 -1
- package/components/mdx-tabs/MdxTabs.d.ts +2 -2
- package/components/mdx-video-guide/MdxVideoGuide.d.ts +1 -1
- package/components/menu/MenuItem.d.ts +2 -2
- package/components/nested-data-table/NestedDataTable.d.ts +13 -5
- package/components/nested-data-table/NestedDataTable.js +1 -1
- package/components/nested-data-table/NestedDataTableHasura.d.ts +1 -1
- package/components/nested-data-table/NestedDataTableHasura.js +1 -1
- package/components/nested-data-table/_Filter.d.ts +2 -2
- package/components/nested-data-table/_Filter.js +1 -1
- package/components/nested-data-table/_TableData.d.ts +10 -3
- package/components/nested-data-table/_TableData.js +1 -1
- package/components/ownership-block/OwnershipBlock.d.ts +2 -2
- package/components/pivot-table/PivotTable.d.ts +8 -8
- package/components/profile-icon/ProfileIcon.d.ts +1 -1
- package/components/radio/Radio.d.ts +1 -1
- package/components/radio/RadioGroup.d.ts +2 -2
- package/components/rest-state/RestState.d.ts +2 -2
- package/components/rich-checkbox/RichCheckbox.d.ts +3 -3
- package/components/rich-radio/RichRadio.d.ts +3 -3
- package/components/rounded-icon/RoundedIcon.d.ts +5 -5
- package/components/section/HSection.d.ts +2 -2
- package/components/section/VSection.d.ts +2 -2
- package/components/section/_SectionHeader.d.ts +2 -2
- package/components/section/_SectionInnerWrapper.d.ts +2 -2
- package/components/section/_SectionSubheader.d.ts +2 -2
- package/components/select/CountryMultiSelect.d.ts +3 -3
- package/components/select/CountryMultiSelect.js +1 -1
- package/components/select/CountryPhoneSelect.d.ts +4 -4
- package/components/select/CountrySelect.d.ts +4 -4
- package/components/select/CountrySelect.js +1 -1
- package/components/select/MultiSelect.d.ts +5 -5
- package/components/select/MultiSelect.js +1 -1
- package/components/select/Select.d.ts +5 -5
- package/components/select/Select.js +1 -1
- package/components/select/_StyledReactSelect.d.ts +5 -5
- package/components/skeleton/Skeleton.d.ts +2 -2
- package/components/slide-over/SlideOver.d.ts +3 -3
- package/components/slider/Slider.d.ts +1 -1
- package/components/sortable-list/SortableList.d.ts +3 -3
- package/components/sortable-list/SortableListItem.d.ts +1 -1
- package/components/spinner/Spinner.d.ts +3 -3
- package/components/spinner/Spinner.js +1 -1
- package/components/split-panel/SplitPanel.d.ts +5 -5
- package/components/split-panel/SplitPanel.js +1 -1
- package/components/stack/GridSpacing.d.ts +2 -2
- package/components/stack/HStack.d.ts +1 -1
- package/components/stack/Stack.d.ts +3 -3
- package/components/stack/VStack.d.ts +1 -1
- package/components/surface/Surface.d.ts +3 -3
- package/components/switch/Switch.d.ts +2 -2
- package/components/table/Table.d.ts +2 -2
- package/components/table/TableBody.d.ts +2 -2
- package/components/table/TableCell.d.ts +3 -3
- package/components/table/TableFooter.d.ts +2 -2
- package/components/table/TableHead.d.ts +2 -2
- package/components/table/TableRow.d.ts +2 -2
- package/components/table/TableRowCollapse.d.ts +2 -2
- package/components/tabs/Tabs.d.ts +1 -1
- package/components/tag/Tag.d.ts +1 -1
- package/components/text/LegacyText.d.ts +3 -3
- package/components/text/Text.d.ts +10 -10
- package/components/text-avatar/TextAvatar.d.ts +1 -1
- package/components/textarea/Textarea.d.ts +3 -3
- package/components/thumbnail/Thumbnail.d.ts +4 -4
- package/components/toast/Toast.d.ts +3 -3
- package/components/toast/ToastContext.d.ts +5 -5
- package/components/tooltip/Tooltip.d.ts +3 -3
- package/icons/ArrowSwapDuotoneIcon.d.ts +1 -1
- package/icons/BagDuotoneIcon.d.ts +1 -1
- package/icons/BankDuotoneIcon.d.ts +1 -1
- package/icons/BellDuotoneIcon.d.ts +1 -1
- package/icons/BellOffDuotoneIcon.d.ts +1 -1
- package/icons/BookDuotoneIcon.d.ts +1 -1
- package/icons/BookmarkAddDuotoneIcon.d.ts +1 -1
- package/icons/BookmarkCheckDuotoneIcon.d.ts +1 -1
- package/icons/BookmarkOffDuotoneIcon.d.ts +1 -1
- package/icons/BookmarkRemoveDuotoneIcon.d.ts +1 -1
- package/icons/BookmarkSubtractDuotoneIcon.d.ts +1 -1
- package/icons/BoxesDuotoneIcon.d.ts +1 -1
- package/icons/BufferDuotoneIcon.d.ts +1 -1
- package/icons/CalculatorDuotoneIcon.d.ts +1 -1
- package/icons/CalendarDuotoneIcon.d.ts +1 -1
- package/icons/CardDuotoneIcon.d.ts +1 -1
- package/icons/CartDuotoneIcon.d.ts +1 -1
- package/icons/ChartDuotoneIcon.d.ts +1 -1
- package/icons/CheckCircleDuotoneIcon.d.ts +1 -1
- package/icons/CheckoutDuotoneIcon.d.ts +1 -1
- package/icons/ChevronDownCircleDuotoneIcon.d.ts +1 -1
- package/icons/ChevronLeftCircleDuotoneIcon.d.ts +1 -1
- package/icons/ChevronRightCircleDuotoneIcon.d.ts +1 -1
- package/icons/ChevronUpCircleDuotoneIcon.d.ts +1 -1
- package/icons/ClassifyDuotoneIcon.d.ts +1 -1
- package/icons/ClearDuotoneIcon.d.ts +1 -1
- package/icons/ClockDuotoneIcon.d.ts +1 -1
- package/icons/CodeCircleDuotoneIcon.d.ts +1 -1
- package/icons/CodeDuotoneIcon.d.ts +1 -1
- package/icons/CoinsDuotoneIcon.d.ts +1 -1
- package/icons/CommentDuotoneIcon.d.ts +1 -1
- package/icons/CopyDuotoneIcon.d.ts +1 -1
- package/icons/CubeDuotoneIcon.d.ts +1 -1
- package/icons/DashboardDuotoneIcon.d.ts +1 -1
- package/icons/DislikeDuotoneIcon.d.ts +1 -1
- package/icons/DocsDuotoneIcon.d.ts +1 -1
- package/icons/DollarDuotoneIcon.d.ts +1 -1
- package/icons/DoubleChevronDuotoneIcon.d.ts +1 -1
- package/icons/DragDuotoneIcon.d.ts +1 -1
- package/icons/EditDuotoneIcon.d.ts +1 -1
- package/icons/ExclamationMarkDuotoneIcon.d.ts +1 -1
- package/icons/ExportDuotoneIcon.d.ts +1 -1
- package/icons/ExternalDuotoneIcon.d.ts +1 -1
- package/icons/EyeDuotoneIcon.d.ts +1 -1
- package/icons/EyeOffDuotoneIcon.d.ts +1 -1
- package/icons/FileDuotoneIcon.d.ts +1 -1
- package/icons/FileUploadDuotoneIcon.d.ts +1 -1
- package/icons/FolderListDuotoneIcon.d.ts +1 -1
- package/icons/FolderUploadDuotoneIcon.d.ts +1 -1
- package/icons/GridDuotoneIcon.d.ts +1 -1
- package/icons/HelloDuotoneIcon.d.ts +1 -1
- package/icons/HelpDuotoneIcon.d.ts +1 -1
- package/icons/HomeDuotoneIcon.d.ts +1 -1
- package/icons/ImageDuotoneIcon.d.ts +1 -1
- package/icons/ImportDuotoneIcon.d.ts +1 -1
- package/icons/InfoDuotoneIcon.d.ts +1 -1
- package/icons/IntegrationDuotoneIcon.d.ts +1 -1
- package/icons/LandedCostDuotoneIcon.d.ts +1 -1
- package/icons/LaptopDuotoneIcon.d.ts +1 -1
- package/icons/LightDuotoneIcon.d.ts +1 -1
- package/icons/LikeDuotoneIcon.d.ts +1 -1
- package/icons/LineDownDuotoneIcon.d.ts +1 -1
- package/icons/LineUpDuotoneIcon.d.ts +1 -1
- package/icons/LinkDuotoneIcon.d.ts +1 -1
- package/icons/LocationDuotoneIcon.d.ts +1 -1
- package/icons/LockDuotoneIcon.d.ts +1 -1
- package/icons/LoginDuotoneIcon.d.ts +1 -1
- package/icons/LogoutDuotoneIcon.d.ts +1 -1
- package/icons/MailDuotoneIcon.d.ts +1 -1
- package/icons/MenuDuotoneIcon.d.ts +1 -1
- package/icons/MinusCircleDuotoneIcon.d.ts +1 -1
- package/icons/MobileDuotoneIcon.d.ts +1 -1
- package/icons/MoneyDuotoneIcon.d.ts +1 -1
- package/icons/MonitorDuotoneIcon.d.ts +1 -1
- package/icons/PauseCircleDuotoneIcon.d.ts +1 -1
- package/icons/PercentBadgeDuotoneIcon.d.ts +1 -1
- package/icons/PercentDuotoneIcon.d.ts +1 -1
- package/icons/PlayCircleDuotoneIcon.d.ts +1 -1
- package/icons/PlusCircleDuotoneIcon.d.ts +1 -1
- package/icons/PrinterDuotoneIcon.d.ts +1 -1
- package/icons/RateDuotoneIcon.d.ts +1 -1
- package/icons/ReceiptDuotoneIcon.d.ts +1 -1
- package/icons/RefreshDuotoneIcon.d.ts +1 -1
- package/icons/RemoveCircleDuotoneIcon.d.ts +1 -1
- package/icons/RestrictDuotoneIcon.d.ts +1 -1
- package/icons/RocketDuotoneIcon.d.ts +1 -1
- package/icons/ScanDuotoneIcon.d.ts +1 -1
- package/icons/ScreenDuotoneIcon.d.ts +1 -1
- package/icons/SendDuotoneIcon.d.ts +1 -1
- package/icons/SettingsDuotoneIcon.d.ts +1 -1
- package/icons/ShoppingListDuotoneIcon.d.ts +1 -1
- package/icons/ShoppingTagDuotoneIcon.d.ts +1 -1
- package/icons/ShoppingTagIcon.d.ts +1 -1
- package/icons/StarOffDuotoneIcon.d.ts +1 -1
- package/icons/StarsDuotoneIcon.d.ts +1 -1
- package/icons/SunnyDuotoneIcon.d.ts +1 -1
- package/icons/TagDuotoneIcon.d.ts +1 -1
- package/icons/TagIcon.d.ts +1 -1
- package/icons/TrashCanDuotoneIcon.d.ts +1 -1
- package/icons/TruckDuotoneIcon.d.ts +1 -1
- package/icons/UserDuotoneIcon.d.ts +1 -1
- package/icons/WarningDuotoneIcon.d.ts +1 -1
- package/icons/custom/ZonosLogoIcon.d.ts +7 -0
- package/icons/custom/ZonosLogoIcon.js +1 -0
- package/icons/custom/products/CheckoutIcon.d.ts +1 -1
- package/icons/custom/products/ClassifyIcon.d.ts +1 -1
- package/icons/custom/products/ClearIcon.d.ts +1 -1
- package/icons/custom/products/DashboardIcon.d.ts +1 -1
- package/icons/custom/products/HelloIcon.d.ts +1 -1
- package/icons/custom/products/LandedCostIcon.d.ts +1 -1
- package/icons/custom/products/RateIcon.d.ts +1 -1
- package/icons/custom/products/RestrictIcon.d.ts +1 -1
- package/icons/custom/products/ScreenIcon.d.ts +1 -1
- package/icons/flag-icon/FlagIcon.d.ts +3 -3
- package/icons/flag-icon/_FlagIconBase.d.ts +2 -2
- package/icons/flags/AD.d.ts +1 -1
- package/icons/flags/AE.d.ts +1 -1
- package/icons/flags/AF.d.ts +1 -1
- package/icons/flags/AG.d.ts +1 -1
- package/icons/flags/AI.d.ts +1 -1
- package/icons/flags/AL.d.ts +1 -1
- package/icons/flags/AM.d.ts +1 -1
- package/icons/flags/AO.d.ts +1 -1
- package/icons/flags/AR.d.ts +1 -1
- package/icons/flags/AS.d.ts +1 -1
- package/icons/flags/AT.d.ts +1 -1
- package/icons/flags/AU.d.ts +1 -1
- package/icons/flags/AW.d.ts +1 -1
- package/icons/flags/AX.d.ts +1 -1
- package/icons/flags/AZ.d.ts +1 -1
- package/icons/flags/BA.d.ts +1 -1
- package/icons/flags/BB.d.ts +1 -1
- package/icons/flags/BD.d.ts +1 -1
- package/icons/flags/BE.d.ts +1 -1
- package/icons/flags/BF.d.ts +1 -1
- package/icons/flags/BG.d.ts +1 -1
- package/icons/flags/BH.d.ts +1 -1
- package/icons/flags/BI.d.ts +1 -1
- package/icons/flags/BJ.d.ts +1 -1
- package/icons/flags/BL.d.ts +1 -1
- package/icons/flags/BM.d.ts +1 -1
- package/icons/flags/BN.d.ts +1 -1
- package/icons/flags/BO.d.ts +1 -1
- package/icons/flags/BQ.d.ts +1 -1
- package/icons/flags/BR.d.ts +1 -1
- package/icons/flags/BS.d.ts +1 -1
- package/icons/flags/BT.d.ts +1 -1
- package/icons/flags/BW.d.ts +1 -1
- package/icons/flags/BY.d.ts +1 -1
- package/icons/flags/BZ.d.ts +1 -1
- package/icons/flags/CA.d.ts +1 -1
- package/icons/flags/CD.d.ts +1 -1
- package/icons/flags/CF.d.ts +1 -1
- package/icons/flags/CG.d.ts +1 -1
- package/icons/flags/CH.d.ts +1 -1
- package/icons/flags/CI.d.ts +1 -1
- package/icons/flags/CK.d.ts +1 -1
- package/icons/flags/CL.d.ts +1 -1
- package/icons/flags/CM.d.ts +1 -1
- package/icons/flags/CN.d.ts +1 -1
- package/icons/flags/CO.d.ts +1 -1
- package/icons/flags/CR.d.ts +1 -1
- package/icons/flags/CU.d.ts +1 -1
- package/icons/flags/CV.d.ts +1 -1
- package/icons/flags/CW.d.ts +1 -1
- package/icons/flags/CY.d.ts +1 -1
- package/icons/flags/CZ.d.ts +1 -1
- package/icons/flags/DE.d.ts +1 -1
- package/icons/flags/DJ.d.ts +1 -1
- package/icons/flags/DK.d.ts +1 -1
- package/icons/flags/DM.d.ts +1 -1
- package/icons/flags/DO.d.ts +1 -1
- package/icons/flags/DZ.d.ts +1 -1
- package/icons/flags/Default.d.ts +1 -1
- package/icons/flags/EC.d.ts +1 -1
- package/icons/flags/EE.d.ts +1 -1
- package/icons/flags/EG.d.ts +1 -1
- package/icons/flags/EH.d.ts +1 -1
- package/icons/flags/ER.d.ts +1 -1
- package/icons/flags/ES.d.ts +1 -1
- package/icons/flags/ET.d.ts +1 -1
- package/icons/flags/FI.d.ts +1 -1
- package/icons/flags/FJ.d.ts +1 -1
- package/icons/flags/FK.d.ts +1 -1
- package/icons/flags/FM.d.ts +1 -1
- package/icons/flags/FO.d.ts +1 -1
- package/icons/flags/FR.d.ts +1 -1
- package/icons/flags/GA.d.ts +1 -1
- package/icons/flags/GB.d.ts +1 -1
- package/icons/flags/GD.d.ts +1 -1
- package/icons/flags/GE.d.ts +1 -1
- package/icons/flags/GF.d.ts +1 -1
- package/icons/flags/GG.d.ts +1 -1
- package/icons/flags/GH.d.ts +1 -1
- package/icons/flags/GI.d.ts +1 -1
- package/icons/flags/GL.d.ts +1 -1
- package/icons/flags/GM.d.ts +1 -1
- package/icons/flags/GN.d.ts +1 -1
- package/icons/flags/GP.d.ts +1 -1
- package/icons/flags/GQ.d.ts +1 -1
- package/icons/flags/GR.d.ts +1 -1
- package/icons/flags/GT.d.ts +1 -1
- package/icons/flags/GU.d.ts +1 -1
- package/icons/flags/GW.d.ts +1 -1
- package/icons/flags/GY.d.ts +1 -1
- package/icons/flags/HK.d.ts +1 -1
- package/icons/flags/HM.d.ts +1 -1
- package/icons/flags/HN.d.ts +1 -1
- package/icons/flags/HR.d.ts +1 -1
- package/icons/flags/HT.d.ts +1 -1
- package/icons/flags/HU.d.ts +1 -1
- package/icons/flags/IC.d.ts +1 -1
- package/icons/flags/ID.d.ts +1 -1
- package/icons/flags/IE.d.ts +1 -1
- package/icons/flags/IL.d.ts +1 -1
- package/icons/flags/IM.d.ts +1 -1
- package/icons/flags/IN.d.ts +1 -1
- package/icons/flags/IQ.d.ts +1 -1
- package/icons/flags/IR.d.ts +1 -1
- package/icons/flags/IS.d.ts +1 -1
- package/icons/flags/IT.d.ts +1 -1
- package/icons/flags/JE.d.ts +1 -1
- package/icons/flags/JM.d.ts +1 -1
- package/icons/flags/JO.d.ts +1 -1
- package/icons/flags/JP.d.ts +1 -1
- package/icons/flags/KE.d.ts +1 -1
- package/icons/flags/KG.d.ts +1 -1
- package/icons/flags/KH.d.ts +1 -1
- package/icons/flags/KI.d.ts +1 -1
- package/icons/flags/KM.d.ts +1 -1
- package/icons/flags/KN.d.ts +1 -1
- package/icons/flags/KP.d.ts +1 -1
- package/icons/flags/KR.d.ts +1 -1
- package/icons/flags/KW.d.ts +1 -1
- package/icons/flags/KY.d.ts +1 -1
- package/icons/flags/KZ.d.ts +1 -1
- package/icons/flags/LA.d.ts +1 -1
- package/icons/flags/LB.d.ts +1 -1
- package/icons/flags/LC.d.ts +1 -1
- package/icons/flags/LI.d.ts +1 -1
- package/icons/flags/LK.d.ts +1 -1
- package/icons/flags/LR.d.ts +1 -1
- package/icons/flags/LS.d.ts +1 -1
- package/icons/flags/LT.d.ts +1 -1
- package/icons/flags/LU.d.ts +1 -1
- package/icons/flags/LV.d.ts +1 -1
- package/icons/flags/LY.d.ts +1 -1
- package/icons/flags/MA.d.ts +1 -1
- package/icons/flags/MC.d.ts +1 -1
- package/icons/flags/MD.d.ts +1 -1
- package/icons/flags/ME.d.ts +1 -1
- package/icons/flags/MF.d.ts +1 -1
- package/icons/flags/MG.d.ts +1 -1
- package/icons/flags/MH.d.ts +1 -1
- package/icons/flags/MK.d.ts +1 -1
- package/icons/flags/ML.d.ts +1 -1
- package/icons/flags/MM.d.ts +1 -1
- package/icons/flags/MN.d.ts +1 -1
- package/icons/flags/MO.d.ts +1 -1
- package/icons/flags/MP.d.ts +1 -1
- package/icons/flags/MQ.d.ts +1 -1
- package/icons/flags/MR.d.ts +1 -1
- package/icons/flags/MS.d.ts +1 -1
- package/icons/flags/MT.d.ts +1 -1
- package/icons/flags/MU.d.ts +1 -1
- package/icons/flags/MV.d.ts +1 -1
- package/icons/flags/MW.d.ts +1 -1
- package/icons/flags/MX.d.ts +1 -1
- package/icons/flags/MY.d.ts +1 -1
- package/icons/flags/MZ.d.ts +1 -1
- package/icons/flags/NA.d.ts +1 -1
- package/icons/flags/NC.d.ts +1 -1
- package/icons/flags/NE.d.ts +1 -1
- package/icons/flags/NF.d.ts +1 -1
- package/icons/flags/NG.d.ts +1 -1
- package/icons/flags/NI.d.ts +1 -1
- package/icons/flags/NL.d.ts +1 -1
- package/icons/flags/NO.d.ts +1 -1
- package/icons/flags/NP.d.ts +1 -1
- package/icons/flags/NR.d.ts +1 -1
- package/icons/flags/NU.d.ts +1 -1
- package/icons/flags/NZ.d.ts +1 -1
- package/icons/flags/OM.d.ts +1 -1
- package/icons/flags/PA.d.ts +1 -1
- package/icons/flags/PE.d.ts +1 -1
- package/icons/flags/PF.d.ts +1 -1
- package/icons/flags/PG.d.ts +1 -1
- package/icons/flags/PH.d.ts +1 -1
- package/icons/flags/PK.d.ts +1 -1
- package/icons/flags/PL.d.ts +1 -1
- package/icons/flags/PM.d.ts +1 -1
- package/icons/flags/PN.d.ts +1 -1
- package/icons/flags/PR.d.ts +1 -1
- package/icons/flags/PS.d.ts +1 -1
- package/icons/flags/PT.d.ts +1 -1
- package/icons/flags/PW.d.ts +1 -1
- package/icons/flags/PY.d.ts +1 -1
- package/icons/flags/QA.d.ts +1 -1
- package/icons/flags/RE.d.ts +1 -1
- package/icons/flags/RO.d.ts +1 -1
- package/icons/flags/RS.d.ts +1 -1
- package/icons/flags/RU.d.ts +1 -1
- package/icons/flags/RW.d.ts +1 -1
- package/icons/flags/SA.d.ts +1 -1
- package/icons/flags/SB.d.ts +1 -1
- package/icons/flags/SC.d.ts +1 -1
- package/icons/flags/SD.d.ts +1 -1
- package/icons/flags/SE.d.ts +1 -1
- package/icons/flags/SG.d.ts +1 -1
- package/icons/flags/SH.d.ts +1 -1
- package/icons/flags/SI.d.ts +1 -1
- package/icons/flags/SJ.d.ts +1 -1
- package/icons/flags/SK.d.ts +1 -1
- package/icons/flags/SL.d.ts +1 -1
- package/icons/flags/SM.d.ts +1 -1
- package/icons/flags/SN.d.ts +1 -1
- package/icons/flags/SO.d.ts +1 -1
- package/icons/flags/SR.d.ts +1 -1
- package/icons/flags/SS.d.ts +1 -1
- package/icons/flags/ST.d.ts +1 -1
- package/icons/flags/SV.d.ts +1 -1
- package/icons/flags/SX.d.ts +1 -1
- package/icons/flags/SY.d.ts +1 -1
- package/icons/flags/SZ.d.ts +1 -1
- package/icons/flags/TC.d.ts +1 -1
- package/icons/flags/TD.d.ts +1 -1
- package/icons/flags/TF.d.ts +1 -1
- package/icons/flags/TG.d.ts +1 -1
- package/icons/flags/TH.d.ts +1 -1
- package/icons/flags/TJ.d.ts +1 -1
- package/icons/flags/TK.d.ts +1 -1
- package/icons/flags/TL.d.ts +1 -1
- package/icons/flags/TM.d.ts +1 -1
- package/icons/flags/TN.d.ts +1 -1
- package/icons/flags/TO.d.ts +1 -1
- package/icons/flags/TR.d.ts +1 -1
- package/icons/flags/TT.d.ts +1 -1
- package/icons/flags/TV.d.ts +1 -1
- package/icons/flags/TW.d.ts +1 -1
- package/icons/flags/TZ.d.ts +1 -1
- package/icons/flags/UA.d.ts +1 -1
- package/icons/flags/UG.d.ts +1 -1
- package/icons/flags/UM.d.ts +1 -1
- package/icons/flags/US.d.ts +1 -1
- package/icons/flags/UY.d.ts +1 -1
- package/icons/flags/UZ.d.ts +1 -1
- package/icons/flags/VA.d.ts +1 -1
- package/icons/flags/VC.d.ts +1 -1
- package/icons/flags/VE.d.ts +1 -1
- package/icons/flags/VG.d.ts +1 -1
- package/icons/flags/VI.d.ts +1 -1
- package/icons/flags/VN.d.ts +1 -1
- package/icons/flags/VU.d.ts +1 -1
- package/icons/flags/WF.d.ts +1 -1
- package/icons/flags/WS.d.ts +1 -1
- package/icons/flags/YE.d.ts +1 -1
- package/icons/flags/YT.d.ts +1 -1
- package/icons/flags/ZA.d.ts +1 -1
- package/icons/flags/ZM.d.ts +1 -1
- package/icons/flags/ZW.d.ts +1 -1
- package/icons/icon-base/_IconBase.d.ts +1 -1
- package/package.json +3 -3
- package/styles/constants/theme.d.ts +2 -2
- package/types/AlertDialogOpts.d.ts +2 -2
- package/types/Color.d.ts +3 -3
- package/types/ConfirmDialogOpts.d.ts +2 -2
- package/types/Depth.d.ts +1 -1
- package/types/IAminoTheme.d.ts +1 -1
- package/types/ICountry.d.ts +2 -2
- package/types/IGeoJsonWorld.d.ts +5 -5
- package/types/IOption.d.ts +1 -1
- package/types/IconProps.d.ts +2 -2
- package/types/Intent.d.ts +1 -1
- package/types/NoInfer.d.ts +1 -1
- package/types/SectionLayout.d.ts +1 -1
- package/types/Size.d.ts +1 -1
- package/types/StyledProps.d.ts +1 -1
- package/types/Theme.d.ts +1 -1
- package/types/UploadedFile.d.ts +1 -1
- package/utils/_extractQueryParams.js +1 -1
- package/utils/_graphiqlFetcher.d.ts +9 -9
- package/utils/flattenRow.d.ts +5 -4
- package/utils/flattenRow.js +1 -1
- package/utils/getCountryCodeByName.d.ts +1 -1
- package/utils/getHashId.d.ts +1 -1
- package/utils/getProductDetails.d.ts +3 -3
- package/utils/getTestId.d.ts +1 -1
- package/utils/handleFetch.d.ts +3 -3
- package/utils/hooks/_useGraphiqlExplorer.d.ts +1 -1
- package/utils/hooks/_useGraphiqlExplorer.js +1 -1
- package/utils/hooks/_useGraphiqlFetcher.d.ts +2 -2
- package/utils/hooks/action-pivot-table/useHasuraGqlPagination.d.ts +1 -1
- package/utils/hooks/useStorage.d.ts +5 -5
- package/utils/hooks/useSwrt.d.ts +1 -1
- package/utils/hooks/useSwrt.js +1 -1
- package/utils/prepCountryOptions.d.ts +1 -1
- package/utils/prepRegionCountryOptions.d.ts +1 -1
- package/utils/setupNestedData.d.ts +1 -1
- package/utils/storage.d.ts +3 -3
- package/utils/truncateText.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonos/amino",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Core UI components for Amino",
|
|
5
5
|
"repository": "git@github.com:Zonos/amino.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-awesome-gravatar": "^2.0.3",
|
|
30
30
|
"react-data-grid": "^7.0.0-beta.28",
|
|
31
31
|
"react-dropzone": "^12.0.4",
|
|
32
|
-
"react-select": "^5.
|
|
32
|
+
"react-select": "^5.7.3",
|
|
33
33
|
"react-simple-maps": "^3.0.0",
|
|
34
34
|
"topojson-client": "^3.1.0",
|
|
35
35
|
"uuid": "^8.3.2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@emotion/styled": "^11.x",
|
|
40
40
|
"@graphiql/plugin-explorer": "0.x",
|
|
41
41
|
"@graphiql/react": "0.x",
|
|
42
|
-
"@graphiql/toolkit": "0.x",
|
|
42
|
+
"@graphiql/toolkit": "0.8.x",
|
|
43
43
|
"framer-motion": "^4.x",
|
|
44
44
|
"graphiql": "^2.x",
|
|
45
45
|
"graphql": "^16.x",
|
|
@@ -404,5 +404,5 @@ export declare const theme: {
|
|
|
404
404
|
/** @info 'Fira Code', var(--amino-font-sans) */
|
|
405
405
|
readonly fontHarmonizedCodes: "var(--amino-font-harmonized-codes)";
|
|
406
406
|
};
|
|
407
|
-
export
|
|
408
|
-
export
|
|
407
|
+
export type ThemeKey = keyof typeof theme;
|
|
408
|
+
export type ThemeValue = typeof theme[ThemeKey];
|
package/types/Color.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const colorPrefixes: readonly ["blue", "cyan", "green", "orange", "purple", "red", "gray"];
|
|
2
2
|
export declare const colorContrasts: readonly ["100", "200", "300", "400", "500", "600", "700", "800", "900", "1000"];
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type ColorContrast = typeof colorContrasts[number];
|
|
4
|
+
export type ColorPrefix = typeof colorPrefixes[number];
|
|
5
|
+
export type Color = `${ColorPrefix}${ColorContrast}` | 'black' | 'gray1100' | 'gray1200' | 'gray1300';
|
package/types/Depth.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Depth = 'depth4' | 'depth8' | 'depth16' | 'depth64';
|
package/types/IAminoTheme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type IAminoTheme = 'dark' | 'light';
|
package/types/ICountry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOption } from
|
|
1
|
+
import type { IOption } from "./IOption";
|
|
2
2
|
export declare const regions: readonly ["Africa", "Americas", "Asia", "Central America", "Europe", "North America", "Oceania", "South America"];
|
|
3
|
-
|
|
3
|
+
type IRegion = typeof regions[number];
|
|
4
4
|
/** @desc /api/address/getCountries */
|
|
5
5
|
export interface ICountry<CountryCode extends string = string> {
|
|
6
6
|
active: boolean;
|
package/types/IGeoJsonWorld.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BBox } from 'geojson';
|
|
2
|
-
import { Arc, MultiPolygon, Polygon, Transform } from 'topojson-specification';
|
|
3
|
-
|
|
1
|
+
import type { BBox } from 'geojson';
|
|
2
|
+
import type { Arc, MultiPolygon, Polygon, Transform } from 'topojson-specification';
|
|
3
|
+
type IProperties = {
|
|
4
4
|
name: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type IGeometry = (Polygon | MultiPolygon) & {
|
|
7
7
|
properties: IProperties;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type IGeoJsonWorld = {
|
|
10
10
|
type: 'Topology';
|
|
11
11
|
objects: {
|
|
12
12
|
countries: {
|
package/types/IOption.d.ts
CHANGED
package/types/IconProps.d.ts
CHANGED
package/types/Intent.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Intent = 'default' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'error';
|
package/types/NoInfer.d.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* @desc A way to disable type inference
|
|
3
3
|
* https:stackoverflow.com/questions/56687668/a-way-to-disable-type-argument-inference-in-generics
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type NoInfer<T> = [T][T extends unknown ? 0 : never];
|
package/types/SectionLayout.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SectionLayout = 'vertical' | 'horizontal';
|
package/types/Size.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Size = 'sm' | 'md' | 'lg' | 'xl';
|
package/types/StyledProps.d.ts
CHANGED
package/types/Theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Theme = 'light' | 'dark';
|
package/types/UploadedFile.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../_tslib-fe391a2e.js");exports.extractQueryParams=function(
|
|
1
|
+
"use strict";var r=require("../_tslib-fe391a2e.js"),e="\\s*\\(([\\W\\w]*)\\)";exports.extractQueryParams=function(t){var a=t.query,s=t.actionName,n="".concat(s).concat(e),i=new RegExp(n).exec(a),c=r.__read(i?Array.from(i):[],2)[1],u=((null==c?void 0:c.split(/\s*,\s*/).map((function(r){return r.trim()})))||[]).reduce((function(e,t){var a,s=r.__read(t.split(/\s*:\s*/),2),n=s[0],i=s[1];return r.__assign(r.__assign({},e),((a={})[n]=i,a))}),{});return u},exports.paramRegex=e;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { DocumentNode, ExecutionResult } from 'graphql';
|
|
2
|
-
import { HandleFetchReturn, RequestOptions } from './handleFetch';
|
|
3
|
-
|
|
1
|
+
import type { DocumentNode, ExecutionResult } from 'graphql';
|
|
2
|
+
import { type HandleFetchReturn, type RequestOptions } from './handleFetch';
|
|
3
|
+
type FetcherParams = {
|
|
4
4
|
query: string;
|
|
5
5
|
operationName?: string | null;
|
|
6
6
|
variables?: Record<string, unknown>;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
|
|
8
|
+
export type ExecutionResultType = Record<string, unknown> | Record<string, unknown>[];
|
|
9
|
+
type FetcherOpts = {
|
|
10
10
|
headers?: {
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
};
|
|
13
13
|
documentAST?: DocumentNode;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type GraphiqlExecutionResult<T extends ExecutionResultType = ExecutionResultType> = {
|
|
16
16
|
data: ExecutionResult<T, ExecutionResultType>['data'];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type GraphiqlFetcher = (graphQLParams: FetcherParams, opts?: FetcherOpts) => Promise<GraphiqlExecutionResult>;
|
|
19
|
+
export type HandleFetchFetcher = <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody> & {
|
|
20
20
|
logRequestIfError?: boolean;
|
|
21
21
|
}) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
22
|
-
|
|
22
|
+
type IFetcher = (props: {
|
|
23
23
|
url: string | null;
|
|
24
24
|
customFetcher: HandleFetchFetcher | null;
|
|
25
25
|
}) => GraphiqlFetcher;
|
package/utils/flattenRow.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type Value = string | number | boolean;
|
|
2
|
+
type Params = {
|
|
3
3
|
prev: Record<string, unknown>;
|
|
4
4
|
currentVal: [string, unknown];
|
|
5
|
-
previousKey?: string
|
|
6
|
-
}
|
|
5
|
+
previousKey?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const flattenRow: ({ prev, currentVal: [key, value], previousKey, }: Params) => Record<string, unknown> | Value;
|
|
7
8
|
export {};
|
package/utils/flattenRow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var r=require("../_tslib-fe391a2e.js"),e=function(n){var t,s,a,i,c,_,o=n.prev,u=r.__read(n.currentVal,2),f=u[0],p=u[1],g=n.previousKey,y=void 0===g?"":g,v=""!==y?"".concat(y,".").concat(f):f;if(Array.isArray(p))return r.__assign(r.__assign({},o),((t={})[v]=p.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),t));if("object"==typeof p&&p){var b=Object.entries(p).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):f});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},o),b)}if("number"==typeof p)return r.__assign(r.__assign({},o),((s={})[v]=p,s));if("boolean"==typeof p)return r.__assign(r.__assign({},o),((a={})[v]=!!p,a));if("string"==typeof p)try{var j=JSON.parse(p);if(Array.isArray(j))return r.__assign(r.__assign({},o),((i={})[v]=j.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),i));if("object"==typeof j){b=Object.entries(j).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):f});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},o),b)}}catch(r){}return p?r.__assign(r.__assign({},o),((_={})[v]="".concat(p),_)):r.__assign(r.__assign({},o),((c={})[v]="",c))};exports.flattenRow=e;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ICountryOption } from "../types/ICountry";
|
|
1
|
+
import type { ICountryOption } from "../types/ICountry";
|
|
2
2
|
export declare const getCountryCodeByName: (countryName: string, countries: ICountryOption[]) => string;
|
package/utils/getHashId.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
export declare const getHashId: (title: ReactNode) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ColorPrefix } from "../types/Color";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
import type { ColorPrefix } from "../types/Color";
|
|
3
|
+
export type Products = 'landed-cost' | 'classify' | 'rate' | 'clear' | 'restrict' | 'screen' | 'checkout' | 'hello' | 'dashboard';
|
|
4
|
+
export type ProductNames = 'Landed Cost' | 'Classify' | 'Rate' | 'Clear' | 'Restrict' | 'Screen' | 'Checkout' | 'Hello' | 'Dashboard';
|
|
5
5
|
export declare const getProductDetails: (product?: Products) => {
|
|
6
6
|
icon: JSX.Element;
|
|
7
7
|
color: ColorPrefix;
|
package/utils/getTestId.d.ts
CHANGED
package/utils/handleFetch.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { JsonError, NoInfer } from "../types";
|
|
2
|
-
export
|
|
2
|
+
export type HandleFetchReturn<ResponseBody extends unknown> = {
|
|
3
3
|
errors: JsonError[];
|
|
4
4
|
json: NoInfer<ResponseBody> | null;
|
|
5
5
|
response: Response | null;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type FetcherReturn<ResponseBody extends unknown> = {
|
|
8
8
|
json: NoInfer<ResponseBody> | null;
|
|
9
9
|
response: Response | null;
|
|
10
10
|
};
|
|
11
11
|
export declare const handleRequest: <ResponseBody extends unknown>(url: string, options?: RequestInit) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
12
|
-
export
|
|
12
|
+
export type RequestOptions<ResponseBody, RequestBody> = {
|
|
13
13
|
body?: NoInfer<RequestBody>;
|
|
14
14
|
testExpectedData?: (data: ResponseBody) => boolean;
|
|
15
15
|
} & Omit<RequestInit, 'body'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-fe391a2e.js"),r=require("@graphiql/plugin-explorer")
|
|
1
|
+
"use strict";var e=require("../../_tslib-fe391a2e.js"),r=require("@graphiql/plugin-explorer");require("graphql");var t=require("../../styles/constants/theme.js");exports.useGraphiqlExplorer=function(u){var i=u.onEdit,l=u.query,o=u.overrideColor,s={query:l,onEdit:i,showAttribution:!0,colors:e.__assign({atom:t.theme.blue300,attribute:t.theme.blue700,builtin:t.theme.blue300,def:t.theme.blue700,keyword:t.theme.red500,number:t.theme.blue700,property:t.theme.blue700,qualifier:t.theme.blue700,string2:t.theme.blue500,string:t.theme.blue500,variable:t.theme.red400},o)};return r.useExplorerPlugin(s)};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExecutionResultType, GraphiqlExecutionResult, GraphiqlFetcher, HandleFetchFetcher } from '../_graphiqlFetcher';
|
|
2
|
-
|
|
1
|
+
import { type ExecutionResultType, type GraphiqlExecutionResult, type GraphiqlFetcher, type HandleFetchFetcher } from '../_graphiqlFetcher';
|
|
2
|
+
type Props = {
|
|
3
3
|
cachingKey: string;
|
|
4
4
|
query: string;
|
|
5
5
|
operationName?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { StorageType } from '../storage';
|
|
2
|
-
|
|
1
|
+
import { type StorageType } from '../storage';
|
|
2
|
+
type AminoLocalStorageKey = 'current-schema';
|
|
3
3
|
/** Storage key that's being used in Amino */
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export type AminoStorageKey = `amino:${AminoLocalStorageKey}` | (string & Record<never, never>);
|
|
5
|
+
type Props<TValue extends unknown, TKey extends AminoStorageKey> = {
|
|
6
6
|
type: StorageType;
|
|
7
7
|
key: TKey;
|
|
8
8
|
/**
|
|
@@ -12,6 +12,6 @@ declare type Props<TValue extends unknown, TKey extends AminoStorageKey> = {
|
|
|
12
12
|
json?: boolean;
|
|
13
13
|
defaultValue: TValue;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type Return<T> = [value: T, setValue: (value: T) => void];
|
|
16
16
|
export declare const useStorage: <TValue extends unknown, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, type, json, }: Props<TValue, TKey>) => Return<TValue>;
|
|
17
17
|
export {};
|
package/utils/hooks/useSwrt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FetcherError, SwrtParams } from "../../types";
|
|
2
2
|
import { type Fetcher, type Key, type SWRConfiguration } from 'swr';
|
|
3
|
-
|
|
3
|
+
type UseSwrArgs<ResponseData> = readonly [Key] | readonly [Key, Fetcher<SwrtParams<ResponseData>> | null] | readonly [
|
|
4
4
|
Key,
|
|
5
5
|
SWRConfiguration<SwrtParams<ResponseData>, FetcherError> | undefined
|
|
6
6
|
] | readonly [
|
package/utils/hooks/useSwrt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../../_tslib-fe391a2e.js"),n=require("lodash/isEqual"),e=require("swr");function u(r){return r&&r.__esModule?r:{default:r}}var t=u(n),i=u(e),o=function(
|
|
1
|
+
"use strict";var r=require("../../_tslib-fe391a2e.js"),n=require("lodash/isEqual"),e=require("swr");function u(r){return r&&r.__esModule?r:{default:r}}var t=u(n),i=u(e),o=function(){for(var r=arguments,n=[],e=0;e<arguments.length;e++)n[e]=r[e];return"function"==typeof n[1]?[n[0],n[1],n[2]||{}]:[n[0],null,(null===n[1]?n[2]:n[1])||{}]};exports.useSwrt=function(){for(var n=arguments,e=[],u=0;u<arguments.length;u++)e[u]=n[u];var s=function(r){return{key:r[0],fetcher:r[1],config:r[2]}}(o.apply(void 0,r.__spreadArray([],r.__read(e),!1))),a=r.__assign(r.__assign({},s),{config:r.__assign({compare:function(r,n){return t.default(null==r?void 0:r.json,null==n?void 0:n.json)}},s.config)});return i.default(a.key,a.fetcher,a.config)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGetCountriesResponse } from "../types/ICountry";
|
|
1
|
+
import type { IGetCountriesResponse } from "../types/ICountry";
|
|
2
2
|
export declare const prepCountryOptions: <CountryCode extends string = string>({ json, }: {
|
|
3
3
|
json: IGetCountriesResponse<CountryCode>;
|
|
4
4
|
}) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICountryOption } from "../types/ICountry";
|
|
1
|
+
import { type ICountryOption } from "../types/ICountry";
|
|
2
2
|
export declare const prepRegionCountryOptions: <T extends string = string>(countries: ICountryOption<T>[]) => {
|
|
3
3
|
label: "Africa" | "Americas" | "Asia" | "Central America" | "Europe" | "North America" | "Oceania" | "South America";
|
|
4
4
|
options: ICountryOption<T>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NestedRowData } from "../components/pivot-table/PivotTable";
|
|
1
|
+
import type { NestedRowData } from "../components/pivot-table/PivotTable";
|
|
2
2
|
export declare const setupNestedData: <T extends Record<string, unknown>>(row: T) => T & NestedRowData;
|
package/utils/storage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type StorageType = 'session' | 'local';
|
|
2
|
+
export type StorageProps = {
|
|
3
3
|
type: StorageType;
|
|
4
4
|
key: string;
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ export declare type StorageProps = {
|
|
|
8
8
|
*/
|
|
9
9
|
json?: boolean;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type SetProps<Value> = StorageProps & {
|
|
12
12
|
value: Value;
|
|
13
13
|
};
|
|
14
14
|
export declare const getStorageItem: <Value extends unknown>({ type, key, json, }: StorageProps) => Value | null;
|
package/utils/truncateText.d.ts
CHANGED