@zonos/amino 5.4.36 → 5.5.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/CountryMultiSelectExpandedOption-920c1ec2.js +1 -0
- package/{DateControlsWrapper-d09e2e06.js → DateControlsWrapper-4900e6bb.js} +1 -1
- package/all.d.ts +1 -4
- package/components/avatar/AvatarBase.js +1 -1
- package/components/avatar/ImageAvatar.js +1 -1
- package/components/avatar/UserAvatar.js +1 -1
- package/components/badge/Badge.js +1 -1
- package/components/banner/Banner.d.ts +2 -2
- package/components/banner/Banner.js +1 -1
- package/components/button/Button.d.ts +1 -1
- package/components/button/Button.js +1 -1
- package/components/button/ButtonIcon.js +1 -1
- package/components/button/MenuButton.js +1 -1
- package/components/button/RippleGroup.d.ts +1 -1
- package/components/button/RippleGroup.js +1 -1
- package/components/button/_Ripple.d.ts +2 -2
- package/components/button/_Ripple.js +1 -1
- package/components/button/button-group/ButtonGroup.js +1 -1
- package/components/card/Card.js +1 -1
- package/components/checkbox/Checkbox.d.ts +1 -1
- package/components/checkbox/Checkbox.js +1 -1
- package/components/connection-map/ConnectionMap.js +1 -1
- package/components/country-multi-select/CountryMultiSelectExpanded.d.ts +2 -16
- package/components/country-multi-select/CountryMultiSelectExpanded.js +1 -1
- package/components/country-multi-select/CountryMultiSelectExpandedOption.d.ts +23 -0
- package/components/country-multi-select/CountryMultiSelectExpandedOption.js +1 -0
- package/components/cover-sheet/CoverSheet.js +1 -1
- package/components/cover-sheet/CoverSheetActions.js +1 -1
- package/components/currency/Currency.js +1 -1
- package/components/currency/DualCurrency.js +1 -1
- package/components/danger-zone/DangerZone.js +1 -1
- package/components/dialog/BaseDialog.d.ts +1 -1
- package/components/dialog/BaseDialog.js +1 -1
- package/components/dialog/Dialog.d.ts +3 -3
- package/components/dialog/Dialog.js +1 -1
- package/components/dialog/DismissableDialog.d.ts +2 -2
- package/components/dialog/DismissableDialog.js +1 -1
- package/components/dialog/alert/AlertContext.js +1 -1
- package/components/dialog/alert/AlertDialog.d.ts +1 -1
- package/components/dialog/alert/AlertDialog.js +1 -1
- package/components/dialog/alert/useAlert.js +1 -1
- package/components/dialog/announcement/AnnouncementDialog.d.ts +1 -1
- package/components/dialog/announcement/AnnouncementDialog.js +1 -1
- package/components/dialog/confirm/ConfirmContext.js +1 -1
- package/components/dialog/confirm/ConfirmDialog.d.ts +2 -2
- package/components/dialog/confirm/ConfirmDialog.js +1 -1
- package/components/dialog/confirm/useConfirm.js +1 -1
- package/components/drop-zone/DropZone.d.ts +2 -2
- package/components/drop-zone/DropZone.js +1 -1
- package/components/file-upload/FileUpload.d.ts +1 -1
- package/components/file-upload/FileUpload.js +1 -1
- package/components/filter/FilterWrapper.d.ts +2 -2
- package/components/filter/FilterWrapper.js +1 -1
- package/components/filter/filter-amount/FilterAmount.js +1 -1
- package/components/filter/filter-amount/filterAmountReducer.js +1 -1
- package/components/filter/filter-date/DateControls.d.ts +2 -2
- package/components/filter/filter-date/DateControls.js +1 -1
- package/components/filter/filter-date/DateControlsWrapper.d.ts +1 -1
- package/components/filter/filter-date/DateControlsWrapper.js +1 -1
- package/components/filter/filter-date/FilterDate.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsAfter.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsBefore.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsBeforeOrOn.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsBetween.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsEqualTo.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsInTheLast.js +1 -1
- package/components/filter/filter-date/_DateControls/_IsOnOrAfter.js +1 -1
- package/components/filter/filter-date/filterDateReducer.js +1 -1
- package/components/filter/filter-multi-select/FilterMultiSelect.d.ts +1 -1
- package/components/filter/filter-multi-select/FilterMultiSelect.js +1 -1
- package/components/filter/filter-select/FilterSelect.d.ts +3 -3
- package/components/filter/filter-select/FilterSelect.js +1 -1
- package/components/filter/filter-text/FilterText.d.ts +1 -1
- package/components/filter/filter-text/FilterText.js +1 -1
- package/components/filter/useFilterWrapper.js +1 -1
- package/components/flex/Flex.js +1 -1
- package/components/glow/GlowWrapper.js +1 -1
- package/components/help-text/HelpText.js +1 -1
- package/components/input/Input.js +1 -1
- package/components/input/MultiInput.d.ts +2 -2
- package/components/input/MultiInput.js +1 -1
- package/components/input/input-type/_DateInput.d.ts +1 -1
- package/components/input/input-type/_DateInput.js +1 -1
- package/components/input/input-type/_FloatLabelInput.d.ts +1 -1
- package/components/input/input-type/_FloatLabelInput.js +1 -1
- package/components/input/input-type/_NumberInput.d.ts +1 -1
- package/components/input/input-type/_NumberInput.js +1 -1
- package/components/input/input-type/_PasswordInput.d.ts +1 -1
- package/components/input/input-type/_PasswordInput.js +1 -1
- package/components/input/input-type/_TimeInput.d.ts +1 -1
- package/components/input/input-type/_TimeInput.js +1 -1
- package/components/layout/Layout.js +1 -1
- package/components/lightbox/LightBox.js +1 -1
- package/components/list/CollapsibleList.js +1 -1
- package/components/list-item/ListItem.js +1 -1
- package/components/nested-data-table/NestedDataTable.d.ts +1 -1
- package/components/nested-data-table/NestedDataTable.js +1 -1
- package/components/nested-data-table/NestedDataTableHasura.d.ts +2 -2
- package/components/nested-data-table/NestedDataTableHasura.js +1 -1
- package/components/nested-data-table/_Filter.js +1 -1
- package/components/nested-data-table/_TableData.js +1 -1
- package/components/pivot-table/PivotTable.d.ts +2 -2
- package/components/pivot-table/PivotTable.js +1 -1
- package/components/progress-bar/ProgressBar.d.ts +1 -1
- package/components/progress-bar/ProgressBar.js +1 -1
- package/components/radio/Radio.d.ts +1 -1
- package/components/radio/Radio.js +1 -1
- package/components/radio/RadioGroup.js +1 -1
- package/components/rest-state/RestState.js +1 -1
- package/components/rich-card-select/RichCardStateSelect.d.ts +1 -1
- package/components/rich-card-select/RichCardStateSelect.js +1 -1
- package/components/rich-checkbox/RichCheckbox.js +1 -1
- package/components/rich-radio/RichRadio.d.ts +1 -1
- package/components/rich-radio/RichRadio.js +1 -1
- package/components/rounded-icon/RoundedIcon.js +1 -1
- package/components/section/HSection.js +1 -1
- package/components/section/VSection.js +1 -1
- package/components/section/_SectionHeader.js +1 -1
- package/components/section/_SectionSubheader.js +1 -1
- package/components/select/CountryMultiSelect.d.ts +1 -1
- package/components/select/CountryMultiSelect.js +1 -1
- package/components/select/CountrySelect.d.ts +1 -1
- package/components/select/CountrySelect.js +1 -1
- package/components/select/MultiSelect.js +1 -1
- package/components/select/Select.d.ts +9 -9
- package/components/select/Select.js +1 -1
- package/components/select/_StyledReactSelect.d.ts +1 -1
- package/components/select/_StyledReactSelect.js +1 -1
- package/components/simple-table/SimpleTable.d.ts +18 -18
- package/components/simple-table/SimpleTable.js +1 -1
- package/components/skeleton/Skeleton.js +1 -1
- package/components/slide-over/SlideOver.js +1 -1
- package/components/spinner/Spinner.js +1 -1
- package/components/split-panel/SplitPanel.js +1 -1
- package/components/stack/HStack.js +1 -1
- package/components/stack/Stack.d.ts +1 -1
- package/components/stack/Stack.js +1 -1
- package/components/stack/VStack.js +1 -1
- package/components/switch/Switch.d.ts +1 -1
- package/components/switch/Switch.js +1 -1
- package/components/table/TableCell.js +1 -1
- package/components/table/TableRowCollapse.js +1 -1
- package/components/tabs/Tabs.d.ts +1 -1
- package/components/tabs/Tabs.js +1 -1
- package/components/tag/Tag.d.ts +1 -1
- package/components/text/Text.d.ts +1 -1
- package/components/text/Text.js +1 -1
- package/components/text-avatar/TextAvatar.js +1 -1
- package/components/textarea/Textarea.js +1 -1
- package/components/theme-select/ThemeSelect.js +1 -1
- package/components/thumbnail/Thumbnail.js +1 -1
- package/components/toast/Toast.d.ts +2 -2
- package/components/toast/Toast.js +1 -1
- package/components/toast/ToastContext.d.ts +1 -1
- package/components/toast/ToastContext.js +1 -1
- package/components/toggle/Toggle.d.ts +1 -1
- package/components/toggle/Toggle.js +1 -1
- package/components/tooltip/Tooltip.d.ts +1 -1
- package/components/tooltip/Tooltip.js +1 -1
- package/icons/AIDuotoneIcon.d.ts +1 -1
- 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/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/CollectDuotoneIcon.d.ts +1 -1
- package/icons/CommentDuotoneIcon.d.ts +1 -1
- package/icons/CopilotDuotoneIcon.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/FilterDuotoneIcon.d.ts +1 -1
- package/icons/FolderListDuotoneIcon.d.ts +1 -1
- package/icons/FolderUploadDuotoneIcon.d.ts +1 -1
- package/icons/FusionDuotoneIcon.d.ts +1 -1
- package/icons/GlobeDuotoneIcon.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/LeftPanelClosedDuotoneIcon.d.ts +1 -1
- package/icons/LeftPanelOpenDuotoneIcon.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/MaximizeDuotoneIcon.d.ts +1 -1
- package/icons/MenuDuotoneIcon.d.ts +1 -1
- package/icons/MinimizeDuotoneIcon.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/PaletteDuotoneIcon.d.ts +1 -1
- package/icons/PauseCircleDuotoneIcon.d.ts +1 -1
- package/icons/PenDuotoneIcon.d.ts +1 -1
- package/icons/PercentBadgeDuotoneIcon.d.ts +1 -1
- package/icons/PercentDuotoneIcon.d.ts +1 -1
- package/icons/PlaneDuotoneIcon.d.ts +1 -1
- package/icons/PlayCircleDuotoneIcon.d.ts +1 -1
- package/icons/PlusCircleDuotoneIcon.d.ts +1 -1
- package/icons/PrepayDuotoneIcon.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/RightPanelClosedDuotoneIcon.d.ts +1 -1
- package/icons/RightPanelOpenDuotoneIcon.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/SearchDuotoneIcon.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/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/TaxDuotoneIcon.d.ts +1 -1
- package/icons/TotalLandedCostDuotoneIcon.d.ts +1 -1
- package/icons/TrashCanDuotoneIcon.d.ts +1 -1
- package/icons/TruckDuotoneIcon.d.ts +1 -1
- package/icons/UFODuotoneIcon.d.ts +1 -1
- package/icons/UserDuotoneIcon.d.ts +1 -1
- package/icons/WarningDuotoneIcon.d.ts +1 -1
- package/icons/custom/products/CheckoutColorIcon.js +1 -1
- package/icons/custom/products/ClassifyColorIcon.js +1 -1
- package/icons/custom/products/ClearColorIcon.js +1 -1
- package/icons/custom/products/CollectColorIcon.js +1 -1
- package/icons/custom/products/CounterCompanionColorIcon.js +1 -1
- package/icons/custom/products/DashboardColorIcon.js +1 -1
- package/icons/custom/products/HelloColorIcon.js +1 -1
- package/icons/custom/products/InclusivePricingColorIcon.js +1 -1
- package/icons/custom/products/LandedCostColorIcon.js +1 -1
- package/icons/custom/products/PrepayColorIcon.js +1 -1
- package/icons/custom/products/RateColorIcon.js +1 -1
- package/icons/custom/products/RestrictColorIcon.js +1 -1
- package/icons/custom/products/ScreenColorIcon.js +1 -1
- package/icons/custom/products/TaxColorIcon.js +1 -1
- package/icons/custom/theme/ThemeDarkIcon.js +1 -1
- package/icons/custom/theme/ThemeLightIcon.js +1 -1
- package/icons/flag-icon/FlagIcon.d.ts +1 -1
- package/icons/flag-icon/FlagIcon.js +1 -1
- package/icons/flag-icon/_FlagIconBase.js +1 -1
- package/icons/flag-icon/useStableUniqueId.js +1 -1
- package/icons/flags/AF.js +1 -1
- package/icons/flags/AG.js +1 -1
- package/icons/flags/AL.js +1 -1
- package/icons/flags/AR.js +1 -1
- package/icons/flags/AS.js +1 -1
- package/icons/flags/AX.js +1 -1
- package/icons/flags/BA.js +1 -1
- package/icons/flags/BB.js +1 -1
- package/icons/flags/BH.js +1 -1
- package/icons/flags/BI.js +1 -1
- package/icons/flags/BS.js +1 -1
- package/icons/flags/BV.js +1 -1
- package/icons/flags/CF.js +1 -1
- package/icons/flags/CG.js +1 -1
- package/icons/flags/CL.js +1 -1
- package/icons/flags/CN.js +1 -1
- package/icons/flags/CU.js +1 -1
- package/icons/flags/CV.js +1 -1
- package/icons/flags/CW.js +1 -1
- package/icons/flags/CX.js +1 -1
- package/icons/flags/CY.js +1 -1
- package/icons/flags/CZ.js +1 -1
- package/icons/flags/DJ.js +1 -1
- package/icons/flags/DO.js +1 -1
- package/icons/flags/EH.js +1 -1
- package/icons/flags/ET.js +1 -1
- package/icons/flags/FM.js +1 -1
- package/icons/flags/FO.js +1 -1
- package/icons/flags/GB.js +1 -1
- package/icons/flags/GD.js +1 -1
- package/icons/flags/GG.js +1 -1
- package/icons/flags/GI.js +1 -1
- package/icons/flags/GM.js +1 -1
- package/icons/flags/GR.js +1 -1
- package/icons/flags/HK.js +1 -1
- package/icons/flags/HN.js +1 -1
- package/icons/flags/IL.js +1 -1
- package/icons/flags/IN.js +1 -1
- package/icons/flags/IO.js +1 -1
- package/icons/flags/IS.js +1 -1
- package/icons/flags/JE.js +1 -1
- package/icons/flags/JO.js +1 -1
- package/icons/flags/JP.js +1 -1
- package/icons/flags/KE.js +1 -1
- package/icons/flags/KG.js +1 -1
- package/icons/flags/KI.js +1 -1
- package/icons/flags/KM.js +1 -1
- package/icons/flags/KN.js +1 -1
- package/icons/flags/KP.js +1 -1
- package/icons/flags/KR.js +1 -1
- package/icons/flags/KW.js +1 -1
- package/icons/flags/LA.js +1 -1
- package/icons/flags/LB.js +1 -1
- package/icons/flags/LR.js +1 -1
- package/icons/flags/LY.js +1 -1
- package/icons/flags/MO.js +1 -1
- package/icons/flags/MP.js +1 -1
- package/icons/flags/MR.js +1 -1
- package/icons/flags/MY.js +1 -1
- package/icons/flags/NA.js +1 -1
- package/icons/flags/NP.js +1 -1
- package/icons/flags/NR.js +1 -1
- package/icons/flags/NU.js +1 -1
- package/icons/flags/NZ.js +1 -1
- package/icons/flags/OM.js +1 -1
- package/icons/flags/PA.js +1 -1
- package/icons/flags/PF.js +1 -1
- package/icons/flags/PK.js +1 -1
- package/icons/flags/PR.js +1 -1
- package/icons/flags/PS.js +1 -1
- package/icons/flags/PW.js +1 -1
- package/icons/flags/RW.js +1 -1
- package/icons/flags/SA.js +1 -1
- package/icons/flags/SB.js +1 -1
- package/icons/flags/SC.js +1 -1
- package/icons/flags/SD.js +1 -1
- package/icons/flags/SG.js +1 -1
- package/icons/flags/SI.js +1 -1
- package/icons/flags/SO.js +1 -1
- package/icons/flags/ST.js +1 -1
- package/icons/flags/SZ.js +1 -1
- package/icons/flags/TF.js +1 -1
- package/icons/flags/TG.js +1 -1
- package/icons/flags/TJ.js +1 -1
- package/icons/flags/TL.js +1 -1
- package/icons/flags/TN.js +1 -1
- package/icons/flags/TV.js +1 -1
- package/icons/flags/TW.js +1 -1
- package/icons/flags/TZ.js +1 -1
- package/icons/flags/UM.js +1 -1
- package/icons/flags/UY.js +1 -1
- package/icons/flags/UZ.js +1 -1
- package/icons/flags/VE.js +1 -1
- package/icons/flags/VI.js +1 -1
- package/icons/flags/VN.js +1 -1
- package/icons/flags/ZA.js +1 -1
- package/icons/flags/ZW.js +1 -1
- package/icons/icon-base/_StateIconBase.d.ts +1 -1
- package/package.json +3 -9
- package/theme.css +2 -1
- package/tslib.es6-5672428a.js +1 -0
- package/utils/_extractQueryParams.js +1 -1
- package/utils/addIndex.js +1 -1
- package/utils/flattenRow.js +1 -1
- package/utils/formatCurrency.js +1 -1
- package/utils/getAminoColor.d.ts +1 -1
- package/utils/getFuzzySearch.d.ts +1 -1
- package/utils/getIsInternalLink.js +1 -1
- package/utils/getProductDetails.js +1 -1
- package/utils/handleFetch.d.ts +10 -6
- package/utils/handleFetch.js +1 -1
- package/utils/hooks/action-pivot-table/useHasuraGqlPagination.js +1 -1
- package/utils/hooks/useAminoTheme.d.ts +1 -1
- package/utils/hooks/useCountryOptions.d.ts +2 -2
- package/utils/hooks/useCountryOptions.js +1 -1
- package/utils/hooks/useDropdown.js +1 -1
- package/utils/hooks/useHeightAdjustTextarea.js +1 -1
- package/utils/hooks/useNotify.d.ts +1 -1
- package/utils/hooks/useNotify.js +1 -1
- package/utils/hooks/usePrevious.d.ts +1 -1
- package/utils/hooks/useStateUrl.js +1 -1
- package/utils/hooks/useStorage.d.ts +3 -3
- package/utils/hooks/useSwrt.d.ts +9 -1
- package/utils/hooks/useSwrt.js +1 -1
- package/utils/jsonParse.d.ts +1 -1
- package/utils/prepCountryOptions.js +1 -1
- package/utils/prepRegionCountryOptions.js +1 -1
- package/utils/setupNestedData.js +1 -1
- package/utils/storage.d.ts +4 -4
- package/utils/useCopyText.js +1 -1
- package/_tslib-bd4862e8.js +0 -1
- package/components/slider/Slider.d.ts +0 -21
- package/components/slider/Slider.js +0 -1
- package/components/sortable-list/SortableList.d.ts +0 -10
- package/components/sortable-list/SortableList.js +0 -1
- package/components/sortable-list/SortableListDeps.d.ts +0 -2
- package/components/sortable-list/SortableListDeps.js +0 -1
- package/components/sortable-list/SortableListItem.d.ts +0 -10
- package/components/sortable-list/SortableListItem.js +0 -1
- package/types/FetcherError.d.ts +0 -5
- package/types/JsonError.d.ts +0 -5
- package/types/NoInfer.d.ts +0 -5
- package/types/SwrtParams.d.ts +0 -4
- package/types/index.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonos/amino",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Core UI components for Amino",
|
|
5
5
|
"repository": "git@github.com:Zonos/amino.git",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
8
|
"homepage": "https://amino.zonos.com",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "^20"
|
|
10
|
+
"node": "^20 || ^22"
|
|
11
11
|
},
|
|
12
12
|
"packageManager": "pnpm@8.15.8",
|
|
13
13
|
"browserslist": [
|
|
@@ -18,20 +18,14 @@
|
|
|
18
18
|
],
|
|
19
19
|
"scripts": {},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dnd-kit/core": "^6.0.8",
|
|
22
|
-
"@dnd-kit/modifiers": "^6.0.1",
|
|
23
|
-
"@dnd-kit/sortable": "^7.0.2",
|
|
24
|
-
"@dnd-kit/utilities": "^3.2.1",
|
|
25
21
|
"@floating-ui/react": "^0.26.0",
|
|
26
22
|
"@mui/material": "^5.14.0",
|
|
27
|
-
"@radix-ui/react-slider": "^1.1.2",
|
|
28
|
-
"@types/topojson-client": "^3.1.1",
|
|
29
23
|
"clsx": "^2.0.0",
|
|
30
24
|
"d3-geo": "^2.0.2",
|
|
31
25
|
"fuse.js": "^6.6.2",
|
|
32
|
-
"pretty-bytes": "^6.1.0",
|
|
33
26
|
"react-data-grid": "7.0.0-beta.34",
|
|
34
27
|
"react-dropzone": "^12.1.0",
|
|
28
|
+
"react-intersection-observer": "^9.13.1",
|
|
35
29
|
"react-select": "^5.7.4",
|
|
36
30
|
"react-simple-maps": "^3.0.0",
|
|
37
31
|
"react-split-it": "^2.0.0",
|
package/theme.css
CHANGED
|
@@ -413,7 +413,8 @@
|
|
|
413
413
|
--amino-v3-shadow-inset: 0px 2px 4px rgba(0, 0, 0, 0.24),
|
|
414
414
|
0px 1px 0px rgba(17, 17, 20, 1), inset 0px 0px 8px rgba(0, 0, 0, 0.16),
|
|
415
415
|
inset 0px 0px 0px 0.5px rgba(0, 0, 0, 0.24),
|
|
416
|
-
inset 0px 2px 4px rgba(0, 0, 0, 0.24),
|
|
416
|
+
inset 0px 2px 4px rgba(0, 0, 0, 0.24),
|
|
417
|
+
inset 0px 1px 1px rgba(0, 0, 0, 0.24),
|
|
417
418
|
0px 0px 6px rgba(255, 255, 255, 0.08),
|
|
418
419
|
0px 0px 0px 1px rgba(255, 255, 255, 0.12);
|
|
419
420
|
--amino-shadow-button-primary: 0px 1px 3px 0px rgba(68, 111, 238, 0.4),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.__assign=function(){return exports.__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},exports.__assign.apply(this,arguments)},"function"==typeof SuppressedError&&SuppressedError,exports.__awaiter=function(r,t,e,n){return new(e||(e=Promise))((function(o,a){function l(r){try{i(n.next(r))}catch(r){a(r)}}function c(r){try{i(n.throw(r))}catch(r){a(r)}}function i(r){var t;r.done?o(r.value):(t=r.value,t instanceof e?t:new e((function(r){r(t)}))).then(l,c)}i((n=n.apply(r,t||[])).next())}))},exports.__generator=function(r,t){var e,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function c(c){return function(i){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(a=0)),a;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(r,a)}catch(r){c=[6,r],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,i])}}},exports.__read=function(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,o,a=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return l},exports.__rest=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]])}return e},exports.__spreadArray=function(r,t,e){if(e||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return r.concat(n||Array.prototype.slice.call(t))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../
|
|
1
|
+
"use strict";var r=require("../tslib.es6-5672428a.js"),e="\\s*\\(([\\W\\w]*)\\)";exports.extractQueryParams=function(s){var t=s.actionName,a=s.query,n="".concat(t).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,s){var t,a=r.__read(s.split(/\s*:\s*/),2),n=a[0],i=a[1];return r.__assign(r.__assign({},e),((t={})[n]=i,t))}),{});return u},exports.paramRegex=e;
|
package/utils/addIndex.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=require("../
|
|
1
|
+
"use strict";var s=require("../tslib.es6-5672428a.js");exports.addIndex=function(e,i){return s.__assign(s.__assign({},e),{_itemIndex:i+1})};
|
package/utils/flattenRow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../
|
|
1
|
+
"use strict";var r=require("../tslib.es6-5672428a.js"),e=function(n){var t,s,a,i,c,_,o=r.__read(n.currentVal,2),u=o[0],f=o[1],p=n.prev,g=n.previousKey,y=void 0===g?"":g,v=""!==y?"".concat(y,".").concat(u):u;if(Array.isArray(f))return r.__assign(r.__assign({},p),((t={})[v]=f.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 f&&f){var b=Object.entries(f).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):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}if("number"==typeof f)return r.__assign(r.__assign({},p),((s={})[v]=f,s));if("boolean"==typeof f)return r.__assign(r.__assign({},p),((a={})[v]=!!f,a));if("string"==typeof f)try{var j=JSON.parse(f);if(Array.isArray(j))return r.__assign(r.__assign({},p),((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&&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):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}}catch(r){}return f?r.__assign(r.__assign({},p),((_={})[v]="".concat(f),_)):r.__assign(r.__assign({},p),((c={})[v]="",c))};exports.flattenRow=e;
|
package/utils/formatCurrency.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../
|
|
1
|
+
"use strict";var e=require("../tslib.es6-5672428a.js"),r=function(r){var l=r.code,n=r.options,o=r.value;return new Intl.NumberFormat(navigator.language,e.__assign({currency:l,style:"currency"},n)).format(o).replace(/[^0-9.\-,]+/g,"")};exports.formatCurrency=r,exports.getDualCurrency=function(e){var l=e.conversionRate,n=e.foreignCode,o=void 0===n?"USD":n,u=e.localCode,a=void 0===u?"USD":u,t=e.value,c=e.valueIsForeign,i=void 0!==c&&c,v=l?i?t/l:t:i?null:t,s=l?i?t:t*l:i?t:null,d=null!==v?{amount:v,code:a,value:r({code:a,value:v})}:null;return{foreign:null!==s?{amount:s,code:o,value:r({code:o,value:s})}:null,local:d}};
|
package/utils/getAminoColor.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Color } from "../types";
|
|
1
|
+
import type { Color } from "../types/Color";
|
|
2
2
|
export declare const getAminoColor: (color?: Color | 'inherit') => "var(--amino-glass-0)" | "var(--amino-glass-50)" | "var(--amino-glass-100)" | "var(--amino-glass-200)" | "var(--amino-glass-300)" | "var(--amino-glass-400)" | "var(--amino-glass-500)" | "var(--amino-glass-600)" | "var(--amino-glass-700)" | "var(--amino-glass-800)" | "var(--amino-glass-900)" | "var(--amino-glass-950)" | "var(--amino-glass-1000)" | "var(--amino-gray-0)" | "var(--amino-gray-50)" | "var(--amino-gray-100)" | "var(--amino-gray-200)" | "var(--amino-gray-300)" | "var(--amino-gray-400)" | "var(--amino-gray-500)" | "var(--amino-gray-600)" | "var(--amino-gray-700)" | "var(--amino-gray-800)" | "var(--amino-gray-900)" | "var(--amino-gray-950)" | "var(--amino-gray-1000)" | "var(--amino-blue-50)" | "var(--amino-blue-100)" | "var(--amino-blue-200)" | "var(--amino-blue-300)" | "var(--amino-blue-400)" | "var(--amino-blue-500)" | "var(--amino-blue-600)" | "var(--amino-blue-700)" | "var(--amino-blue-800)" | "var(--amino-blue-900)" | "var(--amino-blue-950)" | "var(--amino-cyan-50)" | "var(--amino-cyan-100)" | "var(--amino-cyan-200)" | "var(--amino-cyan-300)" | "var(--amino-cyan-400)" | "var(--amino-cyan-500)" | "var(--amino-cyan-600)" | "var(--amino-cyan-700)" | "var(--amino-cyan-800)" | "var(--amino-cyan-900)" | "var(--amino-cyan-950)" | "var(--amino-red-50)" | "var(--amino-red-100)" | "var(--amino-red-200)" | "var(--amino-red-300)" | "var(--amino-red-400)" | "var(--amino-red-500)" | "var(--amino-red-600)" | "var(--amino-red-700)" | "var(--amino-red-800)" | "var(--amino-red-900)" | "var(--amino-red-950)" | "var(--amino-orange-50)" | "var(--amino-orange-100)" | "var(--amino-orange-200)" | "var(--amino-orange-300)" | "var(--amino-orange-400)" | "var(--amino-orange-500)" | "var(--amino-orange-600)" | "var(--amino-orange-700)" | "var(--amino-orange-800)" | "var(--amino-orange-900)" | "var(--amino-orange-950)" | "var(--amino-green-50)" | "var(--amino-green-100)" | "var(--amino-green-200)" | "var(--amino-green-300)" | "var(--amino-green-400)" | "var(--amino-green-500)" | "var(--amino-green-600)" | "var(--amino-green-700)" | "var(--amino-green-800)" | "var(--amino-green-900)" | "var(--amino-green-950)" | "var(--amino-purple-50)" | "var(--amino-purple-100)" | "var(--amino-purple-200)" | "var(--amino-purple-300)" | "var(--amino-purple-400)" | "var(--amino-purple-500)" | "var(--amino-purple-600)" | "var(--amino-purple-700)" | "var(--amino-purple-800)" | "var(--amino-purple-900)" | "var(--amino-purple-950)" | "inherit" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var n=require("../
|
|
1
|
+
"use strict";var n=require("../tslib.es6-5672428a.js");exports.getIsInternalLink=function(i){var t=i.href,e=i.internalPaths,r=i.shouldWarn,s=void 0===r||r,l=(null==t?void 0:t.startsWith("/"))||(null==t?void 0:t.startsWith("#"));if(l&&t&&(null==e?void 0:e.length)){var a=n.__read(t.split("#"),1)[0];if(!(null==e?void 0:e.includes(a)))return s&&console.warn("This page has an internal link that does not exist: ".concat(t),"This internal link may be handled by a redirect, but since it is an internal link it should be corrected."),{isBrokenLink:!0,isInternalLink:l}}return{isBrokenLink:!1,isInternalLink:l}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("../icons/custom/products/CheckoutColorIcon.js"),o=require("../icons/custom/products/ClassifyColorIcon.js"),n=require("../icons/custom/products/ClearColorIcon.js"),c=require("../icons/custom/products/CollectColorIcon.js"),i=require("../icons/custom/products/CounterCompanionColorIcon.js"),s=require("../icons/custom/products/DashboardColorIcon.js"),a=require("../icons/custom/products/HelloColorIcon.js"),t=require("../icons/custom/products/InclusivePricingColorIcon.js"),l=require("../icons/custom/products/LandedCostColorIcon.js"),u=require("../icons/custom/products/PrepayColorIcon.js"),d=require("../icons/custom/products/RateColorIcon.js"),g=require("../icons/custom/products/RestrictColorIcon.js"),C=require("../icons/custom/products/ScreenColorIcon.js"),m=require("../icons/custom/products/TaxColorIcon.js");require("react"),require("../icons/flag-icon/useStableUniqueId.js"),require("../
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("../icons/custom/products/CheckoutColorIcon.js"),o=require("../icons/custom/products/ClassifyColorIcon.js"),n=require("../icons/custom/products/ClearColorIcon.js"),c=require("../icons/custom/products/CollectColorIcon.js"),i=require("../icons/custom/products/CounterCompanionColorIcon.js"),s=require("../icons/custom/products/DashboardColorIcon.js"),a=require("../icons/custom/products/HelloColorIcon.js"),t=require("../icons/custom/products/InclusivePricingColorIcon.js"),l=require("../icons/custom/products/LandedCostColorIcon.js"),u=require("../icons/custom/products/PrepayColorIcon.js"),d=require("../icons/custom/products/RateColorIcon.js"),g=require("../icons/custom/products/RestrictColorIcon.js"),C=require("../icons/custom/products/ScreenColorIcon.js"),m=require("../icons/custom/products/TaxColorIcon.js");require("react"),require("../icons/flag-icon/useStableUniqueId.js"),require("../tslib.es6-5672428a.js"),require("uuid"),require("../icons/icon-base/_IconBase.js"),require("../styles/constants/theme.js");exports.getProductDetails=function(j){var I=j.iconSize,p=void 0===I?24:I;switch(j.product){case"checkout":return{color:"orange",gradient:"linear-gradient(90deg, #E7910A 42.48%, #DF2B76 109.98%)",icon:e.jsx(r.CheckoutColorIcon,{size:p}),name:"Checkout"};case"classify":return{color:"purple",gradient:"linear-gradient(301.28deg, #AA2DC9 23.74%, #7278F2 95.06%)",icon:e.jsx(o.ClassifyColorIcon,{size:p}),name:"Classify"};case"clear":return{color:"cyan",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(n.ClearColorIcon,{size:p}),name:"Clear"};case"dashboard":return{color:"blue",gradient:"conic-gradient(#B004A4 -10grad, #FEBD10 10grad 80grad, #98C729 120grad 190grad, #536CFE 210grad 280grad, #B004A4 320grad 390grad, #FEBD10 410grad);",icon:e.jsx(s.DashboardColorIcon,{size:p}),name:"Dashboard"};case"hello":return{color:"green",gradient:"linear-gradient(314.52deg, #80B917 36.5%, #0CC4E2 86.53%)",icon:e.jsx(a.HelloColorIcon,{size:p}),name:"Hello"};case"inclusive-pricing":return{color:"purple",gradient:"linear-gradient(180deg, #C8286B 43.87%, #AA2EC9 77.46%)",icon:e.jsx(t.InclusivePricingColorIcon,{size:p}),name:"Inclusive Pricing"};case"landed-cost":return{color:"red",gradient:"linear-gradient(41.91deg, #DF2B76 31.62%, #FFB90D 83.63%)",icon:e.jsx(l.LandedCostColorIcon,{size:p}),name:"Landed Cost"};case"rate":return{color:"blue",gradient:"linear-gradient(269.86deg, #2740F3 -11.3%, #AA2DC9 168.06%)",icon:e.jsx(d.RateColorIcon,{size:p}),name:"Rate"};case"restrict":return{color:"blue",gradient:"linear-gradient(49.93deg, #9297FA 41.5%, #3122F9 113.97%)",icon:e.jsx(g.RestrictColorIcon,{size:p}),name:"Restrict"};case"screen":return{color:"green",gradient:"linear-gradient(180deg, #80BC17 -16.78%, #FFD900 80.83%)",icon:e.jsx(C.ScreenColorIcon,{size:p}),name:"Screen"};case"prepay":return{color:"blue",gradient:"linear-gradient(270deg, #4560EE 32.33%, #65E4EF 126.81%)",icon:e.jsx(u.PrepayColorIcon,{size:p}),name:"Prepay"};case"collect":return{color:"red",gradient:"linear-gradient(135deg, #DC2A54 46.38%, #D078FC 78.57%)",icon:e.jsx(c.CollectColorIcon,{size:p}),name:"Collect"};case"tax":return{color:"green",gradient:"linear-gradient(126.15deg, #10A74C 42.95%, #93F317 76.49%)",icon:e.jsx(m.TaxColorIcon,{size:p}),name:"Tax"};case"counter-companion":return{color:"purple",gradient:"linear-gradient(180deg, #880DC2 36.69%, #F229F7 76.94%)",icon:e.jsx(i.CounterCompanionColorIcon,{size:p}),name:"Counter Companion"};default:return{color:"blue",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(s.DashboardColorIcon,{}),name:"Dashboard"}}};
|
package/utils/handleFetch.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type JsonError = {
|
|
2
|
+
errorId?: number;
|
|
3
|
+
message: string;
|
|
4
|
+
type: string;
|
|
5
|
+
};
|
|
6
|
+
export type HandleFetchReturn<ResponseBody> = {
|
|
3
7
|
errors: JsonError[];
|
|
4
8
|
json: NoInfer<ResponseBody> | null;
|
|
5
9
|
response: Response | null;
|
|
6
10
|
};
|
|
7
|
-
export type FetcherReturn<ResponseBody
|
|
11
|
+
export type FetcherReturn<ResponseBody> = {
|
|
8
12
|
json: NoInfer<ResponseBody> | null;
|
|
9
13
|
response: Response | null;
|
|
10
14
|
};
|
|
11
|
-
export declare const handleRequest: <ResponseBody
|
|
15
|
+
export declare const handleRequest: <ResponseBody>(url: string, options?: RequestInit) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
12
16
|
export type RequestOptions<ResponseBody, RequestBody> = {
|
|
13
17
|
body?: NoInfer<RequestBody>;
|
|
14
18
|
testExpectedData?: (data: ResponseBody) => boolean;
|
|
15
19
|
} & Omit<RequestInit, 'body'>;
|
|
16
|
-
export declare const handleFetch: <ResponseBody
|
|
20
|
+
export declare const handleFetch: <ResponseBody, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody> & {
|
|
17
21
|
logRequestIfError?: boolean;
|
|
18
22
|
}) => Promise<HandleFetchReturn<ResponseBody>>;
|
|
19
|
-
export declare const fetcher: <ResponseBody
|
|
23
|
+
export declare const fetcher: <ResponseBody, RequestBody = unknown>(url: string, options?: RequestOptions<ResponseBody, RequestBody>) => Promise<FetcherReturn<ResponseBody>>;
|
package/utils/handleFetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../
|
|
1
|
+
"use strict";var e=require("../tslib.es6-5672428a.js"),r=function(r){return e.__awaiter(void 0,[r],void 0,(function(r){var n,s=r.response,t=r.shouldLog,o=void 0===t||t,u=r.shouldThrow,a=void 0!==u&&u;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s.json()];case 1:return[2,e.sent()];case 2:if(n=e.sent(),a)throw n;return o&&console.error(n),[2,null];case 3:return[2]}}))}))},n=function(n,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch(n,s)];case 1:return t=e.sent(),[3,3];case 2:return(o=e.sent())instanceof Error?[2,{errors:[{message:o.message,type:"unknown"}],json:null,response:null}]:[2,{errors:[{message:i="Fail to fetch",type:"unknown"}],json:null,response:null}];case 3:return t.ok?[4,r({response:t})]:[3,5];case 4:return[2,{errors:[],json:a=e.sent(),response:t}];case 5:u=t.status.toString(),e.label=6;case 6:return e.trys.push([6,8,,9]),[4,r({response:t,shouldThrow:!0})];case 7:return a=e.sent(),i=JSON.stringify(a),[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:t}];case 8:return e.sent(),i="Unknown error",[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:null}];case 9:return[2]}}))}))},s=function(r,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a;return e.__generator(this,(function(i){return(t=s||{}).logRequestIfError,o=e.__rest(t,["logRequestIfError"]),u=o.body&&JSON.stringify(o.body),a=e.__assign(e.__assign({},o),{body:u}),[2,n(r,a)]}))}))};exports.fetcher=function(r,n){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,s(r,n)];case 1:if(t=e.sent(),o=t.errors,u=t.json,a=t.response,i=o.find(Boolean),!(null==a?void 0:a.ok)||["pollUntil","failedData"].includes((null==i?void 0:i.type)||""))throw{errors:o,status:null==a?void 0:a.status};return[2,{json:u,response:a}]}}))}))},exports.handleFetch=s,exports.handleRequest=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../../
|
|
1
|
+
"use strict";var e=require("../../../tslib.es6-5672428a.js"),t=require("react"),a=require("../../_extractQueryParams.js");exports.useHasuraGqlPagination=function(r){var n=r.actionName,c=r.query,i=r.setCachingKey,o=r.setQuery,s=a.extractQueryParams({actionName:n,query:c}),u=s.limit,f=s.offset,g=u&&"string"==typeof u?parseInt(u,10):10,l=f&&"string"==typeof f?parseInt(f,10):0,p=e.__read(t.useState(Math.floor(l/g)+1),2),m=p[0],y=p[1];return{currentPage:m,handlePagination:t.useCallback((function(e){var t=e*g-g,r=c.replace(new RegExp("".concat(n).concat(a.paramRegex),"g"),(function(e){return void 0!==f&&void 0!==u?e.replace(/offset:\s*\d+/g,"offset: ".concat(t)):void 0!==u?e.replace(/(limit:\s*(\d+))/g,"$1, offset: ".concat(t)):e}));o(r),i("".concat(n,"?page=").concat(e)),y(e)}),[u,f,n,g,c,i,o]),limit:g,offset:l}};
|
|
@@ -22,8 +22,8 @@ declare const schemaCountry: z.ZodObject<{
|
|
|
22
22
|
label: string;
|
|
23
23
|
region: "Africa" | "Americas" | "Asia" | "Central America" | "Europe" | "North America" | "Oceania" | "South America";
|
|
24
24
|
active: boolean;
|
|
25
|
-
value: string;
|
|
26
25
|
displayName: string;
|
|
26
|
+
value: string;
|
|
27
27
|
code3: string | null;
|
|
28
28
|
currencyCode: string;
|
|
29
29
|
fraudRisk: number;
|
|
@@ -37,8 +37,8 @@ declare const schemaCountry: z.ZodObject<{
|
|
|
37
37
|
label: string;
|
|
38
38
|
region: "Africa" | "Americas" | "Asia" | "Central America" | "Europe" | "North America" | "Oceania" | "South America";
|
|
39
39
|
active: boolean;
|
|
40
|
-
value: string;
|
|
41
40
|
displayName: string;
|
|
41
|
+
value: string;
|
|
42
42
|
code3: string | null;
|
|
43
43
|
currencyCode: string;
|
|
44
44
|
fraudRisk: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),r=require("dayjs"),n=require("zod"),t=require("../handleFetch.js"),s=require("./useSwrt.js"),i=require("../prepCountryOptions.js"),a=require("./useStorage.js");function u(e){return e&&e.__esModule?e:{default:e}}require("lodash/isEqual"),require("swr"),require("../countryPhoneCodes.js"),require("react"),require("../storage.js");var o=u(r),l=["Africa","Americas","Asia","Central America","Europe","North America","Oceania","South America"],c=n.z.object({active:n.z.boolean(),code:n.z.string(),code3:n.z.string().nullable(),currencyCode:n.z.string(),displayName:n.z.string(),fraudRisk:n.z.number(),label:n.z.string(),languageCode:n.z.string().nullable(),numericCode:n.z.string().nullable(),phoneCode:n.z.array(n.z.string()),region:n.z.enum(l),upsCode:n.z.string().nullable(),value:n.z.string(),zipRegex:n.z.string().nullable()}),d=n.z.array(c);exports.regions=l,exports.useCountryOptions=function(r){var n=a.useStorageWithLifetime({defaultValue:[],key:"__zn_country_options",lifetime:o.default().endOf("week"),schema:d,type:"local"}),u=n.setValue,l=n.value,c=s.useSwrt("".concat(r,"/api/address/getCountries"),{fetcher:function(r){return e.__awaiter(void 0,void 0,void 0,(function(){var n,s,a,o;return e.__generator(this,(function(e){switch(e.label){case 0:return l.length?[3,2]:[4,t.fetcher(r,{headers:{"cache-control":"no-cache"}})];case 1:return n=e.sent(),s=n.json,a=n.response,o=s?i.prepCountryOptions({json:s}):[],u(o),[2,{json:o,response:a}];case 2:return[2,{json:l,response:null}]}}))}))}}).data;return(null==c?void 0:c.json)||[]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),i=require("@floating-ui/react");exports.useDropdown=function(n){var o=null!=n?n:{},s=o.floatingOptions,r=void 0===s?{}:s,u=o.offsetCrossAxis,a=void 0===u?0:u,l=o.offsetMainAxis,d=void 0===l?0:l,f=o.placement,c=void 0===f?"bottom-start":f,v=o.startOpen,p=void 0!==v&&v,m=e.__read(t.useState(p),2),b=m[0],g=m[1],w=b?"visible":"hidden",x=t.useRef(null),y=i.useFloating(e.__assign({middleware:[i.shift(),i.offset({crossAxis:a,mainAxis:d}),i.flip()],placement:c,whileElementsMounted:i.autoUpdate},r)),A=y.floatingStyles,E=y.refs,_=t.useCallback((function(e){var t,i=e.target;b&&0===e.button&&((null===(t=null==x?void 0:x.current)||void 0===t?void 0:t.contains(i))||(e.preventDefault(),e.stopPropagation(),g(!1)))}),[b]);return t.useEffect((function(){return"undefined"!=typeof document&&document.addEventListener("mousedown",_),function(){"undefined"!=typeof document&&document.removeEventListener("mousedown",_)}}),[_]),{floatingStyles:A,refs:E,setVisible:g,visibility:w,visible:b,wrapperRef:x}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),a=function(e,t){return window.getComputedStyle(e)[t]};exports.useHeightAdjustTextarea=function(i){var o=i.additionalHeight,r=void 0===o?0:o,s=i.initialRows,l=void 0===s?2:s,n=i.maxRows,d=void 0===n?20:n,h=i.ref,u=i.shouldExpand,c=i.textareaValue,g=e.__read(t.useState(0),2),p=g[0],v=g[1];t.useEffect((function(){var e=h.current;if(e&&u){var t=parseFloat(a(e,"height")),i=parseFloat(a(e,"lineHeight")),o=parseFloat(a(e,"paddingTop"))||0,s=parseFloat(a(e,"paddingBottom"))||0;p||v(t);var l=i*d+o+s;if(e.style.height="0",e.scrollHeight+r<=l){var n=Math.max(p,e.scrollHeight+r);e.style.height="".concat(n,"px"),e.style.overflow="hidden"}else e.style.height="".concat(l+r,"px"),e.style.overflow="auto"}}),[h,d,c,u,p,l,r])};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const useNotify: () => {
|
|
2
|
-
notify: import("../../components/toast/ToastContext").ToastContextFunctionType;
|
|
3
2
|
dismissAllToasts: () => void;
|
|
4
3
|
dismissToast: (toastId: string) => void;
|
|
4
|
+
notify: import("../../components/toast/ToastContext").ToastContextFunctionType;
|
|
5
5
|
};
|
package/utils/hooks/useNotify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react"),r=require("../../components/toast/ToastContext.js");require("../../
|
|
1
|
+
"use strict";var e=require("react"),r=require("../../components/toast/ToastContext.js");require("../../tslib.es6-5672428a.js"),require("react/jsx-runtime"),require("clsx"),require("framer-motion"),require("uuid"),require("../../components/button/Button.js"),require("../../components/button/RippleGroup.js"),require("../../components/button/_Ripple.js"),require("../getAminoColor.js"),require("../../styles/constants/theme.js"),require("../../style-inject.es-d4ddeae4.js"),require("../../components/button/useRipple.js"),require("../../components/spinner/Spinner.js"),require("../getTestId.js"),require("../../components/flex/Flex.js"),require("../../components/toast/Toast.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../icons/InfoIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../../icons/WarningIcon.js");exports.useNotify=function(){return e.useContext(r.ToastContext)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const usePrevious: <T
|
|
1
|
+
export declare const usePrevious: <T>(value: T) => T | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),a=function(e){var t=e.name,a=e.schema,r=new URLSearchParams(window.location.search).get(t);if(!r)return null;try{var n=JSON.parse(r);return(s=a.safeParse(n)).success?s.data:null}catch(e){var s;return(s=a.safeParse(r)).success?s.data:null}},r=function(e){var t=e.name,a=e.value,r=new URLSearchParams(window.location.search);try{if("object"==typeof a&&(null===a||0===Object.keys(a).length))return void r.delete(t);var n="string"==typeof a?a:JSON.stringify(a);null===a?r.delete(t):r.set(t,n)}finally{""===r.toString()?window.history.replaceState(null,"",window.location.pathname):window.history.replaceState(null,"","?".concat(r.toString()))}};exports.getCurrentStateUrl=a,exports.setStateUrl=r,exports.useStateUrl=function(n){var s=n.initialValue,l=n.name,i=n.schema,c=e.__read(t.useState(a({name:l,schema:i})||s),2),u=c[0],o=c[1];return[u,t.useCallback((function(e){r({name:l,value:e}),o(e)}),[l])]};
|
|
@@ -3,14 +3,14 @@ import { type StorageParams } from "../storage";
|
|
|
3
3
|
type AminoLocalStorageKey = 'current-schema';
|
|
4
4
|
/** Storage key that's being used in Amino */
|
|
5
5
|
export type AminoStorageKey = `amino:${AminoLocalStorageKey}` | (string & Record<never, never>);
|
|
6
|
-
export type UseStorageParams<TValue
|
|
6
|
+
export type UseStorageParams<TValue, TKey extends AminoStorageKey> = StorageParams<TValue, TKey> & {
|
|
7
7
|
defaultValue: TValue;
|
|
8
8
|
};
|
|
9
|
-
export declare const useStorage: <TValue
|
|
9
|
+
export declare const useStorage: <TValue, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, schema, type, }: UseStorageParams<TValue, TKey>) => {
|
|
10
10
|
setValue: (value: TValue) => void;
|
|
11
11
|
value: TValue;
|
|
12
12
|
};
|
|
13
|
-
export declare const useStorageWithLifetime: <TValue
|
|
13
|
+
export declare const useStorageWithLifetime: <TValue, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, lifetime, schema, type, }: UseStorageParams<TValue, TKey> & {
|
|
14
14
|
lifetime: Dayjs;
|
|
15
15
|
}) => {
|
|
16
16
|
setValue: (value: TValue) => void;
|
package/utils/hooks/useSwrt.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type Fetcher, type Key, type SWRConfiguration } from 'swr';
|
|
2
|
-
import type {
|
|
2
|
+
import type { JsonError } from "../handleFetch";
|
|
3
|
+
type SwrtParams<T> = {
|
|
4
|
+
json: T | null;
|
|
5
|
+
response: Response | null;
|
|
6
|
+
};
|
|
7
|
+
type FetcherError = {
|
|
8
|
+
errors: JsonError[];
|
|
9
|
+
status: number;
|
|
10
|
+
};
|
|
3
11
|
type UseSwrArgs<ResponseData> = readonly [Key] | readonly [Key, Fetcher<SwrtParams<ResponseData>> | null] | readonly [
|
|
4
12
|
Key,
|
|
5
13
|
SWRConfiguration<SwrtParams<ResponseData>, FetcherError> | undefined
|
package/utils/hooks/useSwrt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../../
|
|
1
|
+
"use strict";var r=require("../../tslib.es6-5672428a.js"),e=require("lodash/isEqual"),n=require("swr");function u(r){return r&&r.__esModule?r:{default:r}}var t=u(e),i=u(n),o=function(){for(var r=arguments,e=[],n=0;n<arguments.length;n++)e[n]=r[n];return"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]};exports.useSwrt=function(){for(var e=arguments,n=[],u=0;u<arguments.length;u++)n[u]=e[u];var s=function(r){return{config:r[2],fetcher:r[1],key:r[0]}}(o.apply(void 0,r.__spreadArray([],r.__read(n),!1))),a=r.__assign(r.__assign({},s),{config:r.__assign({compare:function(r,e){return t.default(null==r?void 0:r.json,null==e?void 0:e.json)}},s.config)});return i.default(a.key,a.fetcher,a.config)};
|
package/utils/jsonParse.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const jsonParse: <DataType
|
|
1
|
+
export declare const jsonParse: <DataType>(data: string | null) => DataType | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../
|
|
1
|
+
"use strict";var e=require("../tslib.es6-5672428a.js"),n=require("./countryPhoneCodes.js");exports.prepCountryOptions=function(o){var r=o.json;return Object.entries(r).map((function(o){var r,s=e.__read(o,2)[1];return e.__assign(e.__assign({},s),{label:s.displayName,phoneCode:(null===(r=n.countryPhoneCodes.find((function(e){return e.code===s.code})))||void 0===r?void 0:r.phoneCode)||[],value:s.code})})).sort((function(e,n){return e.displayName.localeCompare(n.displayName)}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("./hooks/useCountryOptions.js");require("../tslib.es6-5672428a.js"),require("dayjs"),require("zod"),require("./handleFetch.js"),require("./hooks/useSwrt.js"),require("lodash/isEqual"),require("swr"),require("./prepCountryOptions.js"),require("./countryPhoneCodes.js"),require("./hooks/useStorage.js"),require("react"),require("./storage.js");exports.prepRegionCountryOptions=function(r){return e.regions.map((function(e){return{label:e,options:r.filter((function(r){return r.region===e}))}}))};
|
package/utils/setupNestedData.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../
|
|
1
|
+
"use strict";var e=require("../tslib.es6-5672428a.js");exports.setupNestedData=function(s){return e.__assign(e.__assign({},s),{_expandedData:[],_expandedKey:""})};
|
package/utils/storage.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ export type StorageParams<Value, Key extends string = string> = {
|
|
|
12
12
|
type SetParams<Value> = Omit<StorageParams<Value>, 'schema'> & {
|
|
13
13
|
value: Value;
|
|
14
14
|
};
|
|
15
|
-
export declare const getStorageItem: <Value
|
|
16
|
-
export declare const setStorageItem: <Value
|
|
17
|
-
export declare const setStorageItemWithLifetime: <Value
|
|
15
|
+
export declare const getStorageItem: <Value>({ key, schema, type, }: StorageParams<Value>) => Value | null;
|
|
16
|
+
export declare const setStorageItem: <Value>({ key, type, value, }: SetParams<Value>) => void;
|
|
17
|
+
export declare const setStorageItemWithLifetime: <Value>({ key, lifetime, type, value, }: SetParams<Value> & {
|
|
18
18
|
lifetime: Dayjs;
|
|
19
19
|
}) => void;
|
|
20
|
-
export declare const getShouldUpdateStorageItem: <Value
|
|
20
|
+
export declare const getShouldUpdateStorageItem: <Value>({ key, type, }: StorageParams<Value>) => boolean;
|
|
21
21
|
export {};
|
package/utils/useCopyText.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("../
|
|
1
|
+
"use strict";var t=require("../tslib.es6-5672428a.js"),e=require("react");exports.useCopyText=function(o){var r=(null!=o?o:{}).tooltipDuration,i=void 0===r?4e3:r,u=t.__read(e.useState(!1),2),n=u[0],s=u[1];return{copyText:function(t){navigator.clipboard.writeText(t),s(!0),setTimeout((function(){return s(!1)}),i)},setShowTooltip:s,showTooltip:n}};
|
package/_tslib-bd4862e8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.__assign=function(){return exports.__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},exports.__assign.apply(this,arguments)},"function"==typeof SuppressedError&&SuppressedError,exports.__awaiter=function(r,t,e,n){return new(e||(e=Promise))((function(o,a){function l(r){try{c(n.next(r))}catch(r){a(r)}}function i(r){try{c(n.throw(r))}catch(r){a(r)}}function c(r){var t;r.done?o(r.value):(t=r.value,t instanceof e?t:new e((function(r){r(t)}))).then(l,i)}c((n=n.apply(r,t||[])).next())}))},exports.__generator=function(r,t){var e,n,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(l=0)),l;)try{if(e=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,n=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(r,l)}catch(r){i=[6,r],n=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},exports.__read=function(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,o,a=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return l},exports.__rest=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]])}return e},exports.__spreadArray=function(r,t,e){if(e||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return r.concat(n||Array.prototype.slice.call(t))};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BaseProps } from "../../types/BaseProps";
|
|
2
|
-
type SliderSize = 8 | 12;
|
|
3
|
-
export type SliderProps = BaseProps & {
|
|
4
|
-
hideIndicator?: boolean;
|
|
5
|
-
max?: number;
|
|
6
|
-
min?: number;
|
|
7
|
-
/**
|
|
8
|
-
* How thick you want the progress look
|
|
9
|
-
* @default 12
|
|
10
|
-
* */
|
|
11
|
-
size?: SliderSize;
|
|
12
|
-
step?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @default "%"
|
|
15
|
-
*/
|
|
16
|
-
suffix?: string;
|
|
17
|
-
value: number;
|
|
18
|
-
onChange: (newValue: number) => void;
|
|
19
|
-
};
|
|
20
|
-
export declare const Slider: ({ className, hideIndicator, max, min, onChange, size, step, style, suffix, value, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-bd4862e8.js"),i=require("react/jsx-runtime"),r=require("@radix-ui/react-slider"),o=require("clsx"),a=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=d(o),s="Amino_Slider-module__styledSlider--DgldC",n="Amino_Slider-module__styledTrack--LJSr2",t="Amino_Slider-module__styledRange--H8Kqc",m="Amino_Slider-module__styledThumb--ZJzHZ",u="Amino_Slider-module__sliderWrapper--NJhMD",_="Amino_Slider-module__indicator---fWLA",c="Amino_Slider-module__upTriangle--obmpR",h="Amino_Slider-module__indicatorWrapper---so7l";a.styleInject(".Amino_Slider-module__styledSlider--DgldC{align-items:center;display:flex;height:12px;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.Amino_Slider-module__styledTrack--LJSr2{background-color:var(--amino-gray-200);border-radius:20px;box-shadow:var(--amino-v3-shadow-inset);flex-grow:1;height:var(--amino-slider-styled-track-height);position:relative}.Amino_Slider-module__styledTrack--LJSr2+span{transition:all .3s ease}.Amino_Slider-module__styledRange--H8Kqc{background-color:var(--amino-primary);border-radius:9999px;height:100%;position:absolute;transition:all .3s ease}.Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-0);border:var(--amino-border);border-radius:20px;box-shadow:var(--amino-v3-shadow-base);cursor:pointer;display:block;height:var(--amino-slider-styled-thumb-height);width:var(--amino-slider-styled-thumb-width)}[data-theme=night] .Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-1000)}.Amino_Slider-module__styledThumb--ZJzHZ:active,.Amino_Slider-module__styledThumb--ZJzHZ:focus{background:var(--amino-gray-100);border-color:var(--amino-primary);box-shadow:var(--amino-glow-blue);outline:none}.Amino_Slider-module__sliderWrapper--NJhMD{height:var(--amino-slider-wrapper-height);position:relative}.Amino_Slider-module__indicator---fWLA{align-items:center;background:var(--amino-blue-100);border-bottom-left-radius:var(--amino-radius-6);border-bottom-right-radius:var(--amino-radius-6);color:var(--amino-blue-800);display:flex;font-weight:500;height:32px;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:48px}.Amino_Slider-module__indicator---fWLA span{margin-top:-8px}.Amino_Slider-module__upTriangle--obmpR{border-bottom:24px solid var(--amino-blue-100);border-left:24px solid #0000;border-right:24px solid #0000;border-top-left-radius:var(--amino-radius-6);border-top-right-radius:var(--amino-radius-6);height:0;width:0;width:48px}.Amino_Slider-module__indicatorWrapper---so7l{margin-left:-12px;margin-top:34px}");exports.Slider=function(o){var a=o.className,d=o.hideIndicator,p=void 0!==d&&d,b=o.max,g=o.min,v=o.onChange,x=o.size,y=void 0===x?12:x,S=o.step,A=o.style,f=o.suffix,w=void 0===f?"%":f,j=o.value;return i.jsx("div",{className:l.default(a,u),style:e.__assign(e.__assign({},A),{"--amino-slider-styled-thumb-height":"".concat(2*y,"px"),"--amino-slider-styled-thumb-width":"".concat(2*y,"px"),"--amino-slider-styled-track-height":"".concat(y,"px"),"--amino-slider-wrapper-height":p?"":"90px"}),children:i.jsxs(r.Root,{className:s,max:b,min:g,onValueChange:function(i){var r=e.__read(i,1)[0];return void 0!==r&&v(r)},step:S,value:[j],children:[i.jsx(r.Track,{className:n,children:i.jsx(r.Range,{className:t})}),i.jsx(r.Thumb,{className:m,children:!p&&i.jsxs("div",{className:h,children:[i.jsx("div",{className:c}),i.jsx("div",{className:_,children:i.jsxs("span",{children:[j,w]})})]})})]})})};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { SortingStrategy } from '@dnd-kit/sortable/dist/types';
|
|
3
|
-
import type { DragEndEvent } from "./SortableListDeps";
|
|
4
|
-
export type SortableListProps = {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
itemIds: string[];
|
|
7
|
-
sortingStrategy?: SortingStrategy;
|
|
8
|
-
handleDragEnd: (e: DragEndEvent) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const SortableList: ({ children, handleDragEnd, itemIds, sortingStrategy, }: SortableListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/core"),r=require("@dnd-kit/modifiers"),i=require("@dnd-kit/sortable"),s=require("../../style-inject.es-d4ddeae4.js"),l="Amino_SortableList-module__styledSortableList--lwAuY";s.styleInject(".Amino_SortableList-module__styledSortableList--lwAuY{display:flex;flex-direction:column;gap:5px}");exports.SortableList=function(s){var n=s.children,o=s.handleDragEnd,d=s.itemIds,a=s.sortingStrategy,c=void 0===a?i.verticalListSortingStrategy:a;return e.jsx(t.DndContext,{collisionDetection:t.closestCenter,modifiers:[r.restrictToParentElement,r.restrictToVerticalAxis],onDragEnd:o,children:e.jsx(i.SortableContext,{items:d,strategy:c,children:e.jsx("div",{className:l,children:n})})})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@dnd-kit/sortable");Object.defineProperty(exports,"arrayMove",{enumerable:!0,get:function(){return e.arrayMove}});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
-
export type SortableListItemProps = BaseProps & {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
handleIconSize?: number;
|
|
6
|
-
id: string;
|
|
7
|
-
useHandle?: boolean;
|
|
8
|
-
};
|
|
9
|
-
/** @description This must be a direct child of SortableList */
|
|
10
|
-
export declare const SortableListItem: ({ children, handleIconSize, id, style, useHandle, }: SortableListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-bd4862e8.js"),s=require("react/jsx-runtime"),t=require("@dnd-kit/sortable"),i=require("@dnd-kit/utilities"),r=require("../../icons/DragIcon.js"),n=require("../../style-inject.es-d4ddeae4.js");require("react"),require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js");var a="Amino_SortableListItem-module__styledSortableListItem--N-vqT",l="Amino_SortableListItem-module__styledSortableSection--fMakn";n.styleInject(".Amino_SortableListItem-module__styledSortableListItem--N-vqT{align-items:center;display:flex;gap:24px;justify-content:flex-end}.Amino_SortableListItem-module__styledSortableSection--fMakn{flex-grow:1}");exports.SortableListItem=function(n){var o=n.children,d=n.handleIconSize,c=void 0===d?20:d,m=n.id,u=n.style,_=n.useHandle,j=t.useSortable({id:m}),S=j.attributes,b=j.listeners,x=j.setNodeRef,f=j.transform,v=j.transition,y=e.__assign(e.__assign({},u),{transform:i.CSS.Transform.toString(f),transition:v});return s.jsx("div",{ref:x,children:_?s.jsxs("div",{className:a,style:y,children:[s.jsx("div",{className:l,children:o}),s.jsx("div",e.__assign({},b,S,{children:s.jsx(r.DragIcon,{size:c})}))]}):s.jsx("div",e.__assign({className:a,style:u},b,S,{children:s.jsx("div",{className:l,children:o})}))})};
|
package/types/FetcherError.d.ts
DELETED
package/types/JsonError.d.ts
DELETED
package/types/NoInfer.d.ts
DELETED
package/types/SwrtParams.d.ts
DELETED
package/types/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type { Color } from './Color';
|
|
2
|
-
export type { FetcherError } from './FetcherError';
|
|
3
|
-
export type * from './GridSpacing';
|
|
4
|
-
export type { IconProps } from './IconProps';
|
|
5
|
-
export type { Intent } from './Intent';
|
|
6
|
-
export type { JsonError } from './JsonError';
|
|
7
|
-
export type { NoInfer } from './NoInfer';
|
|
8
|
-
export type { SwrtParams } from './SwrtParams';
|
|
9
|
-
export type { Theme } from './Theme';
|