@zonos/amino 5.5.30 → 5.5.31
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 +768 -0
- package/components/avatar/AvatarBase.d.ts +73 -0
- package/components/avatar/ImageAvatar.d.ts +56 -0
- package/components/avatar/UserAvatar.d.ts +35 -0
- package/components/badge/Badge.d.ts +72 -0
- package/components/banner/Banner.d.ts +83 -0
- package/components/button/Button.d.ts +140 -0
- package/components/button/ButtonIcon.d.ts +5 -0
- package/components/button/MenuButton.d.ts +19 -0
- package/components/button/RippleGroup.d.ts +21 -0
- package/components/button/_Ripple.d.ts +15 -0
- package/components/button/button-group/ButtonGroup.d.ts +9 -0
- package/components/button/useRipple.d.ts +17 -0
- package/components/card/Card.d.ts +68 -0
- package/components/checkbox/Checkbox.d.ts +86 -0
- package/components/collapse/Collapse.d.ts +87 -0
- package/components/connection-map/ConnectionMap.d.ts +75 -0
- package/components/country-multi-select/CountryMultiSelectExpanded.d.ts +123 -0
- package/components/country-multi-select/CountryMultiSelectExpandedOption.d.ts +23 -0
- package/components/cover-sheet/CoverSheet.d.ts +119 -0
- package/components/cover-sheet/CoverSheetActions.d.ts +115 -0
- package/components/currency/Currency.d.ts +40 -0
- package/components/currency/DualCurrency.d.ts +33 -0
- package/components/danger-zone/DangerZone.d.ts +71 -0
- package/components/dialog/BaseDialog.d.ts +49 -0
- package/components/dialog/Dialog.d.ts +105 -0
- package/components/dialog/DismissableDialog.d.ts +21 -0
- package/components/dialog/alert/AlertContext.d.ts +12 -0
- package/components/dialog/alert/AlertDialog.d.ts +6 -0
- package/components/dialog/alert/useAlert.d.ts +1 -0
- package/components/dialog/announcement/AnnouncementDialog.d.ts +28 -0
- package/components/dialog/confirm/ConfirmContext.d.ts +13 -0
- package/components/dialog/confirm/ConfirmDialog.d.ts +8 -0
- package/components/dialog/confirm/useConfirm.d.ts +1 -0
- package/components/divider/Divider.d.ts +58 -0
- package/components/drop-zone/DropZone.d.ts +178 -0
- package/components/file-upload/FileUpload.d.ts +112 -0
- package/components/filter/FilterWrapper.d.ts +115 -0
- package/components/filter/filter-amount/FilterAmount.d.ts +55 -0
- package/components/filter/filter-amount/filterAmountReducer.d.ts +20 -0
- package/components/filter/filter-date/DateControls.d.ts +11 -0
- package/components/filter/filter-date/DateControlsWrapper.d.ts +13 -0
- package/components/filter/filter-date/FilterDate.d.ts +64 -0
- package/components/filter/filter-date/_DateControls/_IsAfter.d.ts +2 -0
- package/components/filter/filter-date/_DateControls/_IsBefore.d.ts +2 -0
- package/components/filter/filter-date/_DateControls/_IsBeforeOrOn.d.ts +2 -0
- package/components/filter/filter-date/_DateControls/_IsBetween.d.ts +3 -0
- package/components/filter/filter-date/_DateControls/_IsEqualTo.d.ts +2 -0
- package/components/filter/filter-date/_DateControls/_IsInTheLast.d.ts +2 -0
- package/components/filter/filter-date/_DateControls/_IsOnOrAfter.d.ts +2 -0
- package/components/filter/filter-date/filterDateReducer.d.ts +24 -0
- package/components/filter/filter-multi-select/FilterMultiSelect.d.ts +64 -0
- package/components/filter/filter-select/FilterSelect.d.ts +88 -0
- package/components/filter/filter-text/FilterText.d.ts +48 -0
- package/components/filter/useFilterWrapper.d.ts +154 -0
- package/components/flex/Flex.d.ts +108 -0
- package/components/glow/GlowWrapper.d.ts +84 -0
- package/components/help-text/HelpText.d.ts +79 -0
- package/components/input/Input.d.ts +112 -0
- package/components/input/MultiInput.d.ts +94 -0
- package/components/input/input-simple/InputSimple.d.ts +130 -0
- package/components/input/input-simple/input-type/_DateInput.d.ts +20 -0
- package/components/input/input-simple/input-type/_InputBase.d.ts +125 -0
- package/components/input/input-simple/input-type/_NumberInput.d.ts +21 -0
- package/components/input/input-simple/input-type/_PasswordInput.d.ts +20 -0
- package/components/input/input-simple/input-type/_TimeInput.d.ts +20 -0
- package/components/input/input-type/_DateInput.d.ts +20 -0
- package/components/input/input-type/_FloatLabelInput.d.ts +127 -0
- package/components/input/input-type/_NumberInput.d.ts +21 -0
- package/components/input/input-type/_PasswordInput.d.ts +20 -0
- package/components/input/input-type/_TimeInput.d.ts +20 -0
- package/components/layout/Layout.d.ts +98 -0
- package/components/layout/NavigationGroup.d.ts +160 -0
- package/components/lightbox/LightBox.d.ts +90 -0
- package/components/list/CollapsibleList.d.ts +101 -0
- package/components/list/List.d.ts +88 -0
- package/components/list-item/ListItem.d.ts +35 -0
- package/components/menu/Menu.d.ts +51 -0
- package/components/menu/MenuItem.d.ts +74 -0
- package/components/nested-data-table/NestedDataTable.d.ts +121 -0
- package/components/nested-data-table/NestedDataTableHasura.d.ts +19 -0
- package/components/nested-data-table/_Filter.d.ts +7 -0
- package/components/nested-data-table/_TableData.d.ts +16 -0
- package/components/pivot-table/PivotTable.d.ts +130 -0
- package/components/progress-bar/ProgressBar.d.ts +58 -0
- package/components/radio/Radio.d.ts +76 -0
- package/components/radio/RadioGroup.d.ts +105 -0
- package/components/rest-state/RestState.d.ts +72 -0
- package/components/rich-card-select/RichCardStateSelect.d.ts +75 -0
- package/components/rich-checkbox/RichCheckbox.d.ts +104 -0
- package/components/rich-radio/RichRadio.d.ts +177 -0
- package/components/rounded-icon/RoundedIcon.d.ts +56 -0
- package/components/section/HSection.d.ts +87 -0
- package/components/section/VSection.d.ts +94 -0
- package/components/section/_SectionHeader.d.ts +9 -0
- package/components/section/_SectionInnerWrapper.d.ts +7 -0
- package/components/section/_SectionSubheader.d.ts +7 -0
- package/components/select/CountryMultiSelect.d.ts +89 -0
- package/components/select/CountrySelect.d.ts +102 -0
- package/components/select/MultiSelect.d.ts +27 -0
- package/components/select/Select.d.ts +127 -0
- package/components/select/_StyledReactSelect.d.ts +22 -0
- package/components/simple-table/SimpleTable.d.ts +242 -0
- package/components/simple-table/SimpleTableRow.d.ts +34 -0
- package/components/skeleton/Skeleton.d.ts +50 -0
- package/components/slide-over/SlideOver.d.ts +112 -0
- package/components/spinner/Spinner.d.ts +55 -0
- package/components/split-panel/SplitPanel.d.ts +113 -0
- package/components/stack/HStack.d.ts +44 -0
- package/components/stack/Stack.d.ts +64 -0
- package/components/stack/VStack.d.ts +53 -0
- package/components/surface/Surface.d.ts +65 -0
- package/components/switch/Switch.d.ts +86 -0
- package/components/table/Table.d.ts +121 -0
- package/components/table/TableBody.d.ts +6 -0
- package/components/table/TableCell.d.ts +11 -0
- package/components/table/TableFooter.d.ts +6 -0
- package/components/table/TableHead.d.ts +6 -0
- package/components/table/TableRow.d.ts +15 -0
- package/components/table/TableRowCollapse.d.ts +19 -0
- package/components/tabs/Tabs.d.ts +76 -0
- package/components/tag/Tag.d.ts +46 -0
- package/components/text/Text.d.ts +159 -0
- package/components/text-avatar/TextAvatar.d.ts +25 -0
- package/components/textarea/Textarea.d.ts +141 -0
- package/components/theme-select/ThemeSelect.d.ts +28 -0
- package/components/thumbnail/Thumbnail.d.ts +64 -0
- package/components/toast/Toast.d.ts +97 -0
- package/components/toast/ToastContext.d.ts +17 -0
- package/components/toggle/Toggle.d.ts +118 -0
- package/components/tooltip/Tooltip.d.ts +37 -0
- package/icons/AIDuotoneIcon.d.ts +5 -0
- package/icons/AIIcon.d.ts +2 -0
- package/icons/ArrowDownDuotoneIcon.d.ts +2 -0
- package/icons/ArrowDownIcon.d.ts +2 -0
- package/icons/ArrowLeftDuotoneIcon.d.ts +2 -0
- package/icons/ArrowLeftIcon.d.ts +2 -0
- package/icons/ArrowRightDuotoneIcon.d.ts +2 -0
- package/icons/ArrowRightIcon.d.ts +2 -0
- package/icons/ArrowSwapDuotoneIcon.d.ts +5 -0
- package/icons/ArrowSwapIcon.d.ts +2 -0
- package/icons/ArrowUpDuotoneIcon.d.ts +2 -0
- package/icons/ArrowUpIcon.d.ts +2 -0
- package/icons/BagDuotoneIcon.d.ts +5 -0
- package/icons/BagIcon.d.ts +2 -0
- package/icons/BankDuotoneIcon.d.ts +5 -0
- package/icons/BankIcon.d.ts +2 -0
- package/icons/BellDuotoneIcon.d.ts +5 -0
- package/icons/BellIcon.d.ts +2 -0
- package/icons/BellOffDuotoneIcon.d.ts +5 -0
- package/icons/BellOffIcon.d.ts +2 -0
- package/icons/BookDuotoneIcon.d.ts +5 -0
- package/icons/BookIcon.d.ts +2 -0
- package/icons/BookmarkAddDuotoneIcon.d.ts +5 -0
- package/icons/BookmarkAddIcon.d.ts +2 -0
- package/icons/BookmarkCheckDuotoneIcon.d.ts +5 -0
- package/icons/BookmarkCheckIcon.d.ts +2 -0
- package/icons/BookmarkDuotoneIcon.d.ts +2 -0
- package/icons/BookmarkIcon.d.ts +2 -0
- package/icons/BookmarkOffDuotoneIcon.d.ts +5 -0
- package/icons/BookmarkOffIcon.d.ts +2 -0
- package/icons/BookmarkRemoveDuotoneIcon.d.ts +5 -0
- package/icons/BookmarkRemoveIcon.d.ts +2 -0
- package/icons/BookmarkSubtractDuotoneIcon.d.ts +5 -0
- package/icons/BookmarkSubtractIcon.d.ts +2 -0
- package/icons/BoxesDuotoneIcon.d.ts +5 -0
- package/icons/BoxesIcon.d.ts +2 -0
- package/icons/BufferDuotoneIcon.d.ts +5 -0
- package/icons/BufferIcon.d.ts +2 -0
- package/icons/CalculatorDuotoneIcon.d.ts +5 -0
- package/icons/CalculatorIcon.d.ts +2 -0
- package/icons/CalendarDuotoneIcon.d.ts +5 -0
- package/icons/CalendarIcon.d.ts +2 -0
- package/icons/CardDuotoneIcon.d.ts +5 -0
- package/icons/CardIcon.d.ts +2 -0
- package/icons/CaretDownDuotoneIcon.d.ts +2 -0
- package/icons/CaretDownIcon.d.ts +2 -0
- package/icons/CaretLeftDuotoneIcon.d.ts +2 -0
- package/icons/CaretLeftIcon.d.ts +2 -0
- package/icons/CaretRightDuotoneIcon.d.ts +2 -0
- package/icons/CaretRightIcon.d.ts +2 -0
- package/icons/CaretUpDuotoneIcon.d.ts +2 -0
- package/icons/CaretUpIcon.d.ts +2 -0
- package/icons/CartDuotoneIcon.d.ts +5 -0
- package/icons/CartIcon.d.ts +2 -0
- package/icons/ChartDuotoneIcon.d.ts +5 -0
- package/icons/ChartIcon.d.ts +2 -0
- package/icons/CheckCircleDuotoneIcon.d.ts +5 -0
- package/icons/CheckCircleIcon.d.ts +2 -0
- package/icons/CheckmarkDuotoneIcon.d.ts +2 -0
- package/icons/CheckmarkIcon.d.ts +2 -0
- package/icons/CheckoutDuotoneIcon.d.ts +5 -0
- package/icons/CheckoutIcon.d.ts +2 -0
- package/icons/ChevronDownCircleDuotoneIcon.d.ts +5 -0
- package/icons/ChevronDownCircleIcon.d.ts +2 -0
- package/icons/ChevronDownDuotoneIcon.d.ts +2 -0
- package/icons/ChevronDownIcon.d.ts +2 -0
- package/icons/ChevronLeftCircleDuotoneIcon.d.ts +5 -0
- package/icons/ChevronLeftCircleIcon.d.ts +2 -0
- package/icons/ChevronLeftDuotoneIcon.d.ts +2 -0
- package/icons/ChevronLeftIcon.d.ts +2 -0
- package/icons/ChevronRightCircleDuotoneIcon.d.ts +5 -0
- package/icons/ChevronRightCircleIcon.d.ts +2 -0
- package/icons/ChevronRightDuotoneIcon.d.ts +2 -0
- package/icons/ChevronRightIcon.d.ts +2 -0
- package/icons/ChevronUpCircleDuotoneIcon.d.ts +2 -0
- package/icons/ChevronUpCircleIcon.d.ts +2 -0
- package/icons/ChevronUpDuotoneIcon.d.ts +2 -0
- package/icons/ChevronUpIcon.d.ts +2 -0
- package/icons/CircleDuotoneIcon.d.ts +2 -0
- package/icons/CircleIcon.d.ts +2 -0
- package/icons/ClassifyDuotoneIcon.d.ts +5 -0
- package/icons/ClassifyIcon.d.ts +2 -0
- package/icons/ClearDuotoneIcon.d.ts +5 -0
- package/icons/ClearIcon.d.ts +2 -0
- package/icons/ClockDuotoneIcon.d.ts +5 -0
- package/icons/ClockIcon.d.ts +2 -0
- package/icons/CodeCircleDuotoneIcon.d.ts +5 -0
- package/icons/CodeCircleIcon.d.ts +2 -0
- package/icons/CodeDuotoneIcon.d.ts +5 -0
- package/icons/CodeIcon.d.ts +2 -0
- package/icons/CoinsDuotoneIcon.d.ts +5 -0
- package/icons/CoinsIcon.d.ts +2 -0
- package/icons/CollectDuotoneIcon.d.ts +5 -0
- package/icons/CollectIcon.d.ts +2 -0
- package/icons/CommentDuotoneIcon.d.ts +5 -0
- package/icons/CommentIcon.d.ts +2 -0
- package/icons/CopilotDuotoneIcon.d.ts +5 -0
- package/icons/CopilotIcon.d.ts +2 -0
- package/icons/CopyDuotoneIcon.d.ts +5 -0
- package/icons/CopyIDIcon.d.ts +2 -0
- package/icons/CopyIcon.d.ts +2 -0
- package/icons/CubeDuotoneIcon.d.ts +5 -0
- package/icons/CubeIcon.d.ts +2 -0
- package/icons/DashboardDuotoneIcon.d.ts +5 -0
- package/icons/DashboardIcon.d.ts +2 -0
- package/icons/DiamondDuotoneIcon.d.ts +2 -0
- package/icons/DiamondIcon.d.ts +2 -0
- package/icons/DislikeDuotoneIcon.d.ts +5 -0
- package/icons/DislikeIcon.d.ts +2 -0
- package/icons/DocsDuotoneIcon.d.ts +5 -0
- package/icons/DocsIcon.d.ts +2 -0
- package/icons/DollarDuotoneIcon.d.ts +5 -0
- package/icons/DollarIcon.d.ts +2 -0
- package/icons/DoubleChevronDuotoneIcon.d.ts +5 -0
- package/icons/DoubleChevronIcon.d.ts +2 -0
- package/icons/DragDuotoneIcon.d.ts +5 -0
- package/icons/DragIcon.d.ts +2 -0
- package/icons/EditDuotoneIcon.d.ts +5 -0
- package/icons/EditIcon.d.ts +2 -0
- package/icons/ExclamationMarkDuotoneIcon.d.ts +5 -0
- package/icons/ExclamationMarkIcon.d.ts +2 -0
- package/icons/ExportDuotoneIcon.d.ts +5 -0
- package/icons/ExportIcon.d.ts +2 -0
- package/icons/ExternalDuotoneIcon.d.ts +5 -0
- package/icons/ExternalIcon.d.ts +2 -0
- package/icons/EyeDuotoneIcon.d.ts +5 -0
- package/icons/EyeIcon.d.ts +2 -0
- package/icons/EyeOffDuotoneIcon.d.ts +5 -0
- package/icons/EyeOffIcon.d.ts +2 -0
- package/icons/FileDuotoneIcon.d.ts +5 -0
- package/icons/FileIcon.d.ts +2 -0
- package/icons/FileUploadDuotoneIcon.d.ts +5 -0
- package/icons/FileUploadIcon.d.ts +2 -0
- package/icons/FilterDuotoneIcon.d.ts +5 -0
- package/icons/FilterIcon.d.ts +2 -0
- package/icons/FolderListDuotoneIcon.d.ts +5 -0
- package/icons/FolderListIcon.d.ts +2 -0
- package/icons/FolderUploadDuotoneIcon.d.ts +5 -0
- package/icons/FolderUploadIcon.d.ts +2 -0
- package/icons/FusionDuotoneIcon.d.ts +5 -0
- package/icons/FusionIcon.d.ts +2 -0
- package/icons/GlobeDuotoneIcon.d.ts +5 -0
- package/icons/GlobeIcon.d.ts +2 -0
- package/icons/GraphQLDuotoneIcon.d.ts +2 -0
- package/icons/GraphQLIcon.d.ts +2 -0
- package/icons/GridDuotoneIcon.d.ts +5 -0
- package/icons/GridIcon.d.ts +2 -0
- package/icons/HelloDuotoneIcon.d.ts +5 -0
- package/icons/HelloIcon.d.ts +2 -0
- package/icons/HelpDuotoneIcon.d.ts +5 -0
- package/icons/HelpIcon.d.ts +2 -0
- package/icons/HexagonDuotoneIcon.d.ts +2 -0
- package/icons/HexagonIcon.d.ts +2 -0
- package/icons/HomeDuotoneIcon.d.ts +5 -0
- package/icons/HomeIcon.d.ts +2 -0
- package/icons/ImageDuotoneIcon.d.ts +5 -0
- package/icons/ImageIcon.d.ts +2 -0
- package/icons/ImportDuotoneIcon.d.ts +5 -0
- package/icons/ImportIcon.d.ts +2 -0
- package/icons/InfoDuotoneIcon.d.ts +5 -0
- package/icons/InfoIcon.d.ts +2 -0
- package/icons/IntegrationDuotoneIcon.d.ts +5 -0
- package/icons/IntegrationIcon.d.ts +2 -0
- package/icons/LandedCostDuotoneIcon.d.ts +5 -0
- package/icons/LandedCostIcon.d.ts +2 -0
- package/icons/LaptopDuotoneIcon.d.ts +5 -0
- package/icons/LaptopIcon.d.ts +2 -0
- package/icons/LeftPanelClosedDuotoneIcon.d.ts +5 -0
- package/icons/LeftPanelClosedIcon.d.ts +2 -0
- package/icons/LeftPanelOpenDuotoneIcon.d.ts +5 -0
- package/icons/LeftPanelOpenIcon.d.ts +2 -0
- package/icons/LightDuotoneIcon.d.ts +5 -0
- package/icons/LightIcon.d.ts +2 -0
- package/icons/LikeDuotoneIcon.d.ts +5 -0
- package/icons/LikeIcon.d.ts +2 -0
- package/icons/LineDownDuotoneIcon.d.ts +5 -0
- package/icons/LineDownIcon.d.ts +2 -0
- package/icons/LineUpDuotoneIcon.d.ts +5 -0
- package/icons/LineUpIcon.d.ts +2 -0
- package/icons/LinkDuotoneIcon.d.ts +5 -0
- package/icons/LinkIcon.d.ts +2 -0
- package/icons/LocationDuotoneIcon.d.ts +5 -0
- package/icons/LocationIcon.d.ts +2 -0
- package/icons/LockDuotoneIcon.d.ts +5 -0
- package/icons/LockIcon.d.ts +2 -0
- package/icons/LoginDuotoneIcon.d.ts +5 -0
- package/icons/LoginIcon.d.ts +2 -0
- package/icons/LogoutDuotoneIcon.d.ts +5 -0
- package/icons/LogoutIcon.d.ts +2 -0
- package/icons/MailDuotoneIcon.d.ts +5 -0
- package/icons/MailIcon.d.ts +2 -0
- package/icons/MaximizeDuotoneIcon.d.ts +5 -0
- package/icons/MaximizeIcon.d.ts +2 -0
- package/icons/MenuDuotoneIcon.d.ts +5 -0
- package/icons/MenuIcon.d.ts +2 -0
- package/icons/MinimizeDuotoneIcon.d.ts +5 -0
- package/icons/MinimizeIcon.d.ts +2 -0
- package/icons/MinusCircleDuotoneIcon.d.ts +5 -0
- package/icons/MinusCircleIcon.d.ts +2 -0
- package/icons/MinusDuotoneIcon.d.ts +2 -0
- package/icons/MinusIcon.d.ts +2 -0
- package/icons/MobileDuotoneIcon.d.ts +5 -0
- package/icons/MobileIcon.d.ts +2 -0
- package/icons/MoneyDuotoneIcon.d.ts +5 -0
- package/icons/MoneyIcon.d.ts +2 -0
- package/icons/MonitorDuotoneIcon.d.ts +5 -0
- package/icons/MonitorIcon.d.ts +2 -0
- package/icons/NightDuotoneIcon.d.ts +2 -0
- package/icons/NightIcon.d.ts +2 -0
- package/icons/NoteIcon.d.ts +2 -0
- package/icons/PaletteDuotoneIcon.d.ts +5 -0
- package/icons/PaletteIcon.d.ts +2 -0
- package/icons/PauseCircleDuotoneIcon.d.ts +5 -0
- package/icons/PauseCircleIcon.d.ts +2 -0
- package/icons/PenDuotoneIcon.d.ts +5 -0
- package/icons/PenIcon.d.ts +2 -0
- package/icons/PercentBadgeDuotoneIcon.d.ts +5 -0
- package/icons/PercentBadgeIcon.d.ts +2 -0
- package/icons/PercentDuotoneIcon.d.ts +5 -0
- package/icons/PercentIcon.d.ts +2 -0
- package/icons/PlaneDuotoneIcon.d.ts +5 -0
- package/icons/PlaneIcon.d.ts +2 -0
- package/icons/PlayCircleDuotoneIcon.d.ts +5 -0
- package/icons/PlayCircleIcon.d.ts +2 -0
- package/icons/PlayDuotoneIcon.d.ts +2 -0
- package/icons/PlayIcon.d.ts +2 -0
- package/icons/PlusCircleDuotoneIcon.d.ts +5 -0
- package/icons/PlusCircleIcon.d.ts +2 -0
- package/icons/PlusDuotoneIcon.d.ts +2 -0
- package/icons/PlusIcon.d.ts +2 -0
- package/icons/PrepayDuotoneIcon.d.ts +5 -0
- package/icons/PrepayIcon.d.ts +2 -0
- package/icons/PrinterDuotoneIcon.d.ts +5 -0
- package/icons/PrinterIcon.d.ts +2 -0
- package/icons/RadioIcon.d.ts +2 -0
- package/icons/RateDuotoneIcon.d.ts +5 -0
- package/icons/RateIcon.d.ts +2 -0
- package/icons/ReceiptDuotoneIcon.d.ts +5 -0
- package/icons/ReceiptIcon.d.ts +2 -0
- package/icons/RefreshDuotoneIcon.d.ts +5 -0
- package/icons/RefreshIcon.d.ts +2 -0
- package/icons/RemoveCircleDuotoneIcon.d.ts +5 -0
- package/icons/RemoveCircleIcon.d.ts +2 -0
- package/icons/RemoveDuotoneIcon.d.ts +2 -0
- package/icons/RemoveIcon.d.ts +2 -0
- package/icons/RestrictDuotoneIcon.d.ts +5 -0
- package/icons/RestrictIcon.d.ts +2 -0
- package/icons/RightPanelClosedDuotoneIcon.d.ts +5 -0
- package/icons/RightPanelClosedIcon.d.ts +2 -0
- package/icons/RightPanelOpenDuotoneIcon.d.ts +5 -0
- package/icons/RightPanelOpenIcon.d.ts +2 -0
- package/icons/RocketDuotoneIcon.d.ts +5 -0
- package/icons/RocketIcon.d.ts +2 -0
- package/icons/RulesIcon.d.ts +2 -0
- package/icons/ScanDuotoneIcon.d.ts +5 -0
- package/icons/ScanIcon.d.ts +2 -0
- package/icons/ScreenDuotoneIcon.d.ts +5 -0
- package/icons/ScreenIcon.d.ts +2 -0
- package/icons/SearchDuotoneIcon.d.ts +5 -0
- package/icons/SearchIcon.d.ts +2 -0
- package/icons/SendDuotoneIcon.d.ts +5 -0
- package/icons/SendIcon.d.ts +2 -0
- package/icons/SettingsDuotoneIcon.d.ts +5 -0
- package/icons/SettingsIcon.d.ts +2 -0
- package/icons/ShoppingListDuotoneIcon.d.ts +5 -0
- package/icons/ShoppingListIcon.d.ts +2 -0
- package/icons/ShoppingTagDuotoneIcon.d.ts +5 -0
- package/icons/ShoppingTagIcon.d.ts +2 -0
- package/icons/SquareDuotoneIcon.d.ts +2 -0
- package/icons/SquareIcon.d.ts +2 -0
- package/icons/StarDuotoneIcon.d.ts +2 -0
- package/icons/StarIcon.d.ts +2 -0
- package/icons/StarOffDuotoneIcon.d.ts +5 -0
- package/icons/StarOffIcon.d.ts +2 -0
- package/icons/StarsDuotoneIcon.d.ts +5 -0
- package/icons/StarsIcon.d.ts +2 -0
- package/icons/SunnyDuotoneIcon.d.ts +5 -0
- package/icons/SunnyIcon.d.ts +2 -0
- package/icons/TagDuotoneIcon.d.ts +5 -0
- package/icons/TagIcon.d.ts +2 -0
- package/icons/TaxDuotoneIcon.d.ts +5 -0
- package/icons/TaxIcon.d.ts +2 -0
- package/icons/ThreeDotDuotoneIcon.d.ts +2 -0
- package/icons/ThreeDotIcon.d.ts +2 -0
- package/icons/TotalLandedCostDuotoneIcon.d.ts +5 -0
- package/icons/TotalLandedCostIcon.d.ts +2 -0
- package/icons/TrashCanDuotoneIcon.d.ts +5 -0
- package/icons/TrashCanIcon.d.ts +2 -0
- package/icons/TriangleDuotoneIcon.d.ts +2 -0
- package/icons/TriangleIcon.d.ts +2 -0
- package/icons/TruckDuotoneIcon.d.ts +5 -0
- package/icons/TruckIcon.d.ts +2 -0
- package/icons/UFODuotoneIcon.d.ts +5 -0
- package/icons/UFOIcon.d.ts +2 -0
- package/icons/UserDuotoneIcon.d.ts +5 -0
- package/icons/UserIcon.d.ts +2 -0
- package/icons/UsersIcon.d.ts +2 -0
- package/icons/UtahDuotoneIcon.d.ts +2 -0
- package/icons/UtahIcon.d.ts +2 -0
- package/icons/WarningDuotoneIcon.d.ts +5 -0
- package/icons/WarningIcon.d.ts +2 -0
- package/icons/custom/AvatarIcon.d.ts +2 -0
- package/icons/custom/logo/ZonosIcon.d.ts +2 -0
- package/icons/custom/logo/ZonosLogoIcon.d.ts +2 -0
- package/icons/custom/logo/ZonosWordmark.d.ts +2 -0
- package/icons/custom/products/CheckoutColorIcon.d.ts +2 -0
- package/icons/custom/products/ClassifyColorIcon.d.ts +2 -0
- package/icons/custom/products/ClearColorIcon.d.ts +2 -0
- package/icons/custom/products/CollectColorIcon.d.ts +2 -0
- package/icons/custom/products/CounterCompanionColorIcon.d.ts +2 -0
- package/icons/custom/products/DashboardColorIcon.d.ts +2 -0
- package/icons/custom/products/HelloColorIcon.d.ts +2 -0
- package/icons/custom/products/InclusivePricingColorIcon.d.ts +2 -0
- package/icons/custom/products/LandedCostColorIcon.d.ts +2 -0
- package/icons/custom/products/PrepayColorIcon.d.ts +2 -0
- package/icons/custom/products/RateColorIcon.d.ts +2 -0
- package/icons/custom/products/RestrictColorIcon.d.ts +2 -0
- package/icons/custom/products/ScreenColorIcon.d.ts +2 -0
- package/icons/custom/products/TaxColorIcon.d.ts +2 -0
- package/icons/custom/theme/ThemeDarkIcon.d.ts +3 -0
- package/icons/custom/theme/ThemeLightIcon.d.ts +3 -0
- package/icons/custom/us-states/AlabamaIcon.d.ts +2 -0
- package/icons/custom/us-states/AlaskaIcon.d.ts +2 -0
- package/icons/custom/us-states/ArizonaIcon.d.ts +2 -0
- package/icons/custom/us-states/ArkansasIcon.d.ts +2 -0
- package/icons/custom/us-states/CaliforniaIcon.d.ts +2 -0
- package/icons/custom/us-states/ColoradoIcon.d.ts +2 -0
- package/icons/custom/us-states/ConnecticutIcon.d.ts +2 -0
- package/icons/custom/us-states/DelawareIcon.d.ts +2 -0
- package/icons/custom/us-states/FloridaIcon.d.ts +2 -0
- package/icons/custom/us-states/GeorgiaIcon.d.ts +2 -0
- package/icons/custom/us-states/HawaiiIcon.d.ts +2 -0
- package/icons/custom/us-states/IdahoIcon.d.ts +2 -0
- package/icons/custom/us-states/IllinoisIcon.d.ts +2 -0
- package/icons/custom/us-states/IndianaIcon.d.ts +2 -0
- package/icons/custom/us-states/IowaIcon.d.ts +2 -0
- package/icons/custom/us-states/KansasIcon.d.ts +2 -0
- package/icons/custom/us-states/KentuckyIcon.d.ts +2 -0
- package/icons/custom/us-states/LouisianaIcon.d.ts +2 -0
- package/icons/custom/us-states/MaineIcon.d.ts +2 -0
- package/icons/custom/us-states/MarylandIcon.d.ts +2 -0
- package/icons/custom/us-states/MassachusettsIcon.d.ts +2 -0
- package/icons/custom/us-states/MichiganIcon.d.ts +2 -0
- package/icons/custom/us-states/MinnesotaIcon.d.ts +2 -0
- package/icons/custom/us-states/MississippiIcon.d.ts +2 -0
- package/icons/custom/us-states/MissouriIcon.d.ts +2 -0
- package/icons/custom/us-states/MontanaIcon.d.ts +2 -0
- package/icons/custom/us-states/NebraskaIcon.d.ts +2 -0
- package/icons/custom/us-states/NevadaIcon.d.ts +2 -0
- package/icons/custom/us-states/NewHampshireIcon.d.ts +2 -0
- package/icons/custom/us-states/NewJerseyIcon.d.ts +2 -0
- package/icons/custom/us-states/NewMexicoIcon.d.ts +2 -0
- package/icons/custom/us-states/NewYorkIcon.d.ts +2 -0
- package/icons/custom/us-states/NorthCarolinaIcon.d.ts +2 -0
- package/icons/custom/us-states/NorthDakotaIcon.d.ts +2 -0
- package/icons/custom/us-states/OhioIcon.d.ts +2 -0
- package/icons/custom/us-states/OklahomaIcon.d.ts +2 -0
- package/icons/custom/us-states/OregonIcon.d.ts +2 -0
- package/icons/custom/us-states/PennsylvaniaIcon.d.ts +2 -0
- package/icons/custom/us-states/PuertoRicoIcon.d.ts +2 -0
- package/icons/custom/us-states/RhodeIslandIcon.d.ts +2 -0
- package/icons/custom/us-states/SouthCarolinaIcon.d.ts +2 -0
- package/icons/custom/us-states/SouthDakotaIcon.d.ts +2 -0
- package/icons/custom/us-states/TennesseeIcon.d.ts +2 -0
- package/icons/custom/us-states/TexasIcon.d.ts +2 -0
- package/icons/custom/us-states/UtahIcon.d.ts +2 -0
- package/icons/custom/us-states/VermontIcon.d.ts +2 -0
- package/icons/custom/us-states/VirginiaIcon.d.ts +2 -0
- package/icons/custom/us-states/WashingtonIcon.d.ts +2 -0
- package/icons/custom/us-states/WestVirginiaIcon.d.ts +2 -0
- package/icons/custom/us-states/WisconsinIcon.d.ts +2 -0
- package/icons/custom/us-states/WyomingIcon.d.ts +2 -0
- package/icons/flag-icon/FlagIcon.d.ts +13 -0
- package/icons/flag-icon/_FlagIconBase.d.ts +10 -0
- package/icons/flags/AD.d.ts +7 -0
- package/icons/flags/AE.d.ts +7 -0
- package/icons/flags/AF.d.ts +7 -0
- package/icons/flags/AG.d.ts +7 -0
- package/icons/flags/AI.d.ts +7 -0
- package/icons/flags/AL.d.ts +7 -0
- package/icons/flags/AM.d.ts +7 -0
- package/icons/flags/AO.d.ts +7 -0
- package/icons/flags/AQ.d.ts +7 -0
- package/icons/flags/AR.d.ts +7 -0
- package/icons/flags/AS.d.ts +7 -0
- package/icons/flags/AT.d.ts +7 -0
- package/icons/flags/AU.d.ts +7 -0
- package/icons/flags/AW.d.ts +7 -0
- package/icons/flags/AX.d.ts +7 -0
- package/icons/flags/AZ.d.ts +7 -0
- package/icons/flags/BA.d.ts +7 -0
- package/icons/flags/BB.d.ts +7 -0
- package/icons/flags/BD.d.ts +7 -0
- package/icons/flags/BE.d.ts +7 -0
- package/icons/flags/BF.d.ts +7 -0
- package/icons/flags/BG.d.ts +7 -0
- package/icons/flags/BH.d.ts +7 -0
- package/icons/flags/BI.d.ts +7 -0
- package/icons/flags/BJ.d.ts +7 -0
- package/icons/flags/BL.d.ts +7 -0
- package/icons/flags/BM.d.ts +7 -0
- package/icons/flags/BN.d.ts +7 -0
- package/icons/flags/BO.d.ts +7 -0
- package/icons/flags/BQ.d.ts +7 -0
- package/icons/flags/BR.d.ts +7 -0
- package/icons/flags/BS.d.ts +7 -0
- package/icons/flags/BT.d.ts +7 -0
- package/icons/flags/BV.d.ts +7 -0
- package/icons/flags/BW.d.ts +7 -0
- package/icons/flags/BY.d.ts +7 -0
- package/icons/flags/BZ.d.ts +7 -0
- package/icons/flags/CA.d.ts +7 -0
- package/icons/flags/CC.d.ts +7 -0
- package/icons/flags/CD.d.ts +7 -0
- package/icons/flags/CF.d.ts +7 -0
- package/icons/flags/CG.d.ts +7 -0
- package/icons/flags/CH.d.ts +7 -0
- package/icons/flags/CI.d.ts +7 -0
- package/icons/flags/CK.d.ts +7 -0
- package/icons/flags/CL.d.ts +7 -0
- package/icons/flags/CM.d.ts +7 -0
- package/icons/flags/CN.d.ts +7 -0
- package/icons/flags/CO.d.ts +7 -0
- package/icons/flags/CR.d.ts +7 -0
- package/icons/flags/CU.d.ts +7 -0
- package/icons/flags/CV.d.ts +7 -0
- package/icons/flags/CW.d.ts +7 -0
- package/icons/flags/CX.d.ts +7 -0
- package/icons/flags/CY.d.ts +7 -0
- package/icons/flags/CZ.d.ts +7 -0
- package/icons/flags/DE.d.ts +7 -0
- package/icons/flags/DJ.d.ts +7 -0
- package/icons/flags/DK.d.ts +7 -0
- package/icons/flags/DM.d.ts +7 -0
- package/icons/flags/DO.d.ts +7 -0
- package/icons/flags/DZ.d.ts +7 -0
- package/icons/flags/Default.d.ts +7 -0
- package/icons/flags/EC.d.ts +7 -0
- package/icons/flags/EE.d.ts +7 -0
- package/icons/flags/EG.d.ts +7 -0
- package/icons/flags/EH.d.ts +7 -0
- package/icons/flags/ER.d.ts +7 -0
- package/icons/flags/ES.d.ts +7 -0
- package/icons/flags/ET.d.ts +7 -0
- package/icons/flags/FI.d.ts +7 -0
- package/icons/flags/FJ.d.ts +7 -0
- package/icons/flags/FK.d.ts +7 -0
- package/icons/flags/FM.d.ts +7 -0
- package/icons/flags/FO.d.ts +7 -0
- package/icons/flags/FR.d.ts +7 -0
- package/icons/flags/GA.d.ts +7 -0
- package/icons/flags/GB.d.ts +7 -0
- package/icons/flags/GD.d.ts +7 -0
- package/icons/flags/GE.d.ts +7 -0
- package/icons/flags/GF.d.ts +7 -0
- package/icons/flags/GG.d.ts +7 -0
- package/icons/flags/GH.d.ts +7 -0
- package/icons/flags/GI.d.ts +7 -0
- package/icons/flags/GL.d.ts +7 -0
- package/icons/flags/GM.d.ts +7 -0
- package/icons/flags/GN.d.ts +7 -0
- package/icons/flags/GP.d.ts +7 -0
- package/icons/flags/GQ.d.ts +7 -0
- package/icons/flags/GR.d.ts +7 -0
- package/icons/flags/GS.d.ts +7 -0
- package/icons/flags/GT.d.ts +7 -0
- package/icons/flags/GU.d.ts +7 -0
- package/icons/flags/GW.d.ts +7 -0
- package/icons/flags/GY.d.ts +7 -0
- package/icons/flags/HK.d.ts +7 -0
- package/icons/flags/HM.d.ts +7 -0
- package/icons/flags/HN.d.ts +7 -0
- package/icons/flags/HR.d.ts +7 -0
- package/icons/flags/HT.d.ts +7 -0
- package/icons/flags/HU.d.ts +7 -0
- package/icons/flags/IC.d.ts +7 -0
- package/icons/flags/ID.d.ts +7 -0
- package/icons/flags/IE.d.ts +7 -0
- package/icons/flags/IL.d.ts +7 -0
- package/icons/flags/IM.d.ts +7 -0
- package/icons/flags/IN.d.ts +7 -0
- package/icons/flags/IO.d.ts +7 -0
- package/icons/flags/IQ.d.ts +7 -0
- package/icons/flags/IR.d.ts +7 -0
- package/icons/flags/IS.d.ts +7 -0
- package/icons/flags/IT.d.ts +7 -0
- package/icons/flags/JE.d.ts +7 -0
- package/icons/flags/JM.d.ts +7 -0
- package/icons/flags/JO.d.ts +7 -0
- package/icons/flags/JP.d.ts +7 -0
- package/icons/flags/KE.d.ts +7 -0
- package/icons/flags/KG.d.ts +7 -0
- package/icons/flags/KH.d.ts +7 -0
- package/icons/flags/KI.d.ts +7 -0
- package/icons/flags/KM.d.ts +7 -0
- package/icons/flags/KN.d.ts +7 -0
- package/icons/flags/KP.d.ts +7 -0
- package/icons/flags/KR.d.ts +7 -0
- package/icons/flags/KW.d.ts +7 -0
- package/icons/flags/KY.d.ts +7 -0
- package/icons/flags/KZ.d.ts +7 -0
- package/icons/flags/LA.d.ts +7 -0
- package/icons/flags/LB.d.ts +7 -0
- package/icons/flags/LC.d.ts +7 -0
- package/icons/flags/LI.d.ts +7 -0
- package/icons/flags/LK.d.ts +7 -0
- package/icons/flags/LR.d.ts +7 -0
- package/icons/flags/LS.d.ts +7 -0
- package/icons/flags/LT.d.ts +7 -0
- package/icons/flags/LU.d.ts +7 -0
- package/icons/flags/LV.d.ts +7 -0
- package/icons/flags/LY.d.ts +7 -0
- package/icons/flags/MA.d.ts +7 -0
- package/icons/flags/MC.d.ts +7 -0
- package/icons/flags/MD.d.ts +7 -0
- package/icons/flags/ME.d.ts +7 -0
- package/icons/flags/MF.d.ts +7 -0
- package/icons/flags/MG.d.ts +7 -0
- package/icons/flags/MH.d.ts +7 -0
- package/icons/flags/MK.d.ts +7 -0
- package/icons/flags/ML.d.ts +7 -0
- package/icons/flags/MM.d.ts +7 -0
- package/icons/flags/MN.d.ts +7 -0
- package/icons/flags/MO.d.ts +7 -0
- package/icons/flags/MP.d.ts +7 -0
- package/icons/flags/MQ.d.ts +7 -0
- package/icons/flags/MR.d.ts +7 -0
- package/icons/flags/MS.d.ts +7 -0
- package/icons/flags/MT.d.ts +7 -0
- package/icons/flags/MU.d.ts +7 -0
- package/icons/flags/MV.d.ts +7 -0
- package/icons/flags/MW.d.ts +7 -0
- package/icons/flags/MX.d.ts +7 -0
- package/icons/flags/MY.d.ts +7 -0
- package/icons/flags/MZ.d.ts +7 -0
- package/icons/flags/NA.d.ts +7 -0
- package/icons/flags/NC.d.ts +7 -0
- package/icons/flags/NE.d.ts +7 -0
- package/icons/flags/NF.d.ts +7 -0
- package/icons/flags/NG.d.ts +7 -0
- package/icons/flags/NI.d.ts +7 -0
- package/icons/flags/NL.d.ts +7 -0
- package/icons/flags/NO.d.ts +7 -0
- package/icons/flags/NP.d.ts +7 -0
- package/icons/flags/NR.d.ts +7 -0
- package/icons/flags/NU.d.ts +7 -0
- package/icons/flags/NZ.d.ts +7 -0
- package/icons/flags/OM.d.ts +7 -0
- package/icons/flags/PA.d.ts +7 -0
- package/icons/flags/PE.d.ts +7 -0
- package/icons/flags/PF.d.ts +7 -0
- package/icons/flags/PG.d.ts +7 -0
- package/icons/flags/PH.d.ts +7 -0
- package/icons/flags/PK.d.ts +7 -0
- package/icons/flags/PL.d.ts +7 -0
- package/icons/flags/PM.d.ts +7 -0
- package/icons/flags/PN.d.ts +7 -0
- package/icons/flags/PR.d.ts +7 -0
- package/icons/flags/PS.d.ts +7 -0
- package/icons/flags/PT.d.ts +7 -0
- package/icons/flags/PW.d.ts +7 -0
- package/icons/flags/PY.d.ts +7 -0
- package/icons/flags/QA.d.ts +7 -0
- package/icons/flags/RE.d.ts +7 -0
- package/icons/flags/RO.d.ts +7 -0
- package/icons/flags/RS.d.ts +7 -0
- package/icons/flags/RU.d.ts +7 -0
- package/icons/flags/RW.d.ts +7 -0
- package/icons/flags/SA.d.ts +7 -0
- package/icons/flags/SB.d.ts +7 -0
- package/icons/flags/SC.d.ts +7 -0
- package/icons/flags/SD.d.ts +7 -0
- package/icons/flags/SE.d.ts +7 -0
- package/icons/flags/SG.d.ts +7 -0
- package/icons/flags/SH.d.ts +7 -0
- package/icons/flags/SI.d.ts +7 -0
- package/icons/flags/SJ.d.ts +7 -0
- package/icons/flags/SK.d.ts +7 -0
- package/icons/flags/SL.d.ts +7 -0
- package/icons/flags/SM.d.ts +7 -0
- package/icons/flags/SN.d.ts +7 -0
- package/icons/flags/SO.d.ts +7 -0
- package/icons/flags/SR.d.ts +7 -0
- package/icons/flags/SS.d.ts +7 -0
- package/icons/flags/ST.d.ts +7 -0
- package/icons/flags/SV.d.ts +7 -0
- package/icons/flags/SX.d.ts +7 -0
- package/icons/flags/SY.d.ts +7 -0
- package/icons/flags/SZ.d.ts +7 -0
- package/icons/flags/TC.d.ts +7 -0
- package/icons/flags/TD.d.ts +7 -0
- package/icons/flags/TF.d.ts +7 -0
- package/icons/flags/TG.d.ts +7 -0
- package/icons/flags/TH.d.ts +7 -0
- package/icons/flags/TJ.d.ts +7 -0
- package/icons/flags/TK.d.ts +7 -0
- package/icons/flags/TL.d.ts +7 -0
- package/icons/flags/TM.d.ts +7 -0
- package/icons/flags/TN.d.ts +7 -0
- package/icons/flags/TO.d.ts +7 -0
- package/icons/flags/TR.d.ts +7 -0
- package/icons/flags/TT.d.ts +7 -0
- package/icons/flags/TV.d.ts +7 -0
- package/icons/flags/TW.d.ts +7 -0
- package/icons/flags/TZ.d.ts +7 -0
- package/icons/flags/UA.d.ts +7 -0
- package/icons/flags/UG.d.ts +7 -0
- package/icons/flags/UM.d.ts +7 -0
- package/icons/flags/US.d.ts +7 -0
- package/icons/flags/UY.d.ts +7 -0
- package/icons/flags/UZ.d.ts +7 -0
- package/icons/flags/VA.d.ts +7 -0
- package/icons/flags/VC.d.ts +7 -0
- package/icons/flags/VE.d.ts +7 -0
- package/icons/flags/VG.d.ts +7 -0
- package/icons/flags/VI.d.ts +7 -0
- package/icons/flags/VN.d.ts +7 -0
- package/icons/flags/VU.d.ts +7 -0
- package/icons/flags/WF.d.ts +7 -0
- package/icons/flags/WS.d.ts +7 -0
- package/icons/flags/YE.d.ts +7 -0
- package/icons/flags/YT.d.ts +7 -0
- package/icons/flags/ZA.d.ts +7 -0
- package/icons/flags/ZM.d.ts +7 -0
- package/icons/flags/ZW.d.ts +7 -0
- package/icons/flags/_FlagIndex.d.ts +251 -0
- package/icons/icon-base/_IconBase.d.ts +6 -0
- package/icons/icon-base/_StateIconBase.d.ts +6 -0
- package/icons/icon-base/_ThemeIconBase.d.ts +8 -0
- package/package.json +1 -1
- package/styles/constants/theme.d.ts +534 -0
- package/styles/devices.d.ts +10 -0
- package/tools/mcp/client.d.ts +37 -0
- package/tools/mcp/index.d.ts +3 -0
- package/tools/mcp/tools.d.ts +37 -0
- package/tools/mcp/types.d.ts +124 -0
- package/tsconfig.emitDeclarationOnly.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/BaseProps.d.ts +7 -0
- package/types/Color.d.ts +5 -0
- package/types/Depth.d.ts +1 -0
- package/types/GeoJsonWorld.d.ts +21 -0
- package/types/GridSpacing.d.ts +2 -0
- package/types/IconProps.d.ts +10 -0
- package/types/Intent.d.ts +1 -0
- package/types/ReactComponent.d.ts +2 -0
- package/types/SectionLayout.d.ts +1 -0
- package/types/SelectOption.d.ts +12 -0
- package/types/Size.d.ts +1 -0
- package/types/Theme.d.ts +3 -0
- package/types/UnitedStates.d.ts +12 -0
- package/types/UploadedFile.d.ts +5 -0
- package/types/Variant.d.ts +1 -0
- package/types/deep/Deep.test-d.d.ts +1 -0
- package/types/deep/DeepKeyof.d.ts +18 -0
- package/types/deep/DeepKeyofAtIndex.d.ts +12 -0
- package/types/deep/DeepKeyofAtIndex.test-d.d.ts +1 -0
- package/types/deep/DeepReducerActions.d.ts +25 -0
- package/types/deep/deep.d.ts +4 -0
- package/utils/_extractQueryParams.d.ts +5 -0
- package/utils/addIndex.d.ts +6 -0
- package/utils/changeDeepProperty.d.ts +45 -0
- package/utils/changeDeepPropertyAtIndex.d.ts +69 -0
- package/utils/countryPhoneCodes.d.ts +4 -0
- package/utils/flattenRow.d.ts +8 -0
- package/utils/formatCurrency.d.ts +49 -0
- package/utils/getAminoColor.d.ts +2 -0
- package/utils/getCountryCodeByName.d.ts +2 -0
- package/utils/getCountryUrls.d.ts +1 -0
- package/utils/getFuzzySearch.d.ts +8 -0
- package/utils/getHashId.d.ts +2 -0
- package/utils/getIsInternalLink.d.ts +8 -0
- package/utils/getProductDetails.d.ts +19 -0
- package/utils/getTestId.d.ts +5 -0
- package/utils/handleFetch.d.ts +23 -0
- package/utils/hooks/action-pivot-table/useHasuraGqlPagination.d.ts +13 -0
- package/utils/hooks/useAminoTheme.d.ts +12 -0
- package/utils/hooks/useCountryOptions.d.ts +71 -0
- package/utils/hooks/useDropdown.d.ts +31 -0
- package/utils/hooks/useHeightAdjustTextarea.d.ts +15 -0
- package/utils/hooks/useNotify.d.ts +5 -0
- package/utils/hooks/usePrevious.d.ts +1 -0
- package/utils/hooks/useStateUrl.d.ts +24 -0
- package/utils/hooks/useStorage.d.ts +19 -0
- package/utils/hooks/useSwr.d.ts +1 -0
- package/utils/hooks/useSwrt.d.ts +29 -0
- package/utils/isKeyInObj.d.ts +5 -0
- package/utils/jsonParse.d.ts +1 -0
- package/utils/multiinput/parseStringIntoTags.d.ts +2 -0
- package/utils/prepCountryOptions.d.ts +19 -0
- package/utils/prepRegionCountryOptions.d.ts +5 -0
- package/utils/setupNestedData.d.ts +2 -0
- package/utils/storage.d.ts +21 -0
- package/utils/truncateText.d.ts +25 -0
- package/utils/unitedStates.d.ts +2 -0
- package/utils/useCopyText.d.ts +12 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type SelectProps } from "./Select";
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
+
import type { CountryOption } from "../../utils/hooks/useCountryOptions";
|
|
4
|
+
type CountrySelectType<T extends string> = {
|
|
5
|
+
/**
|
|
6
|
+
* Determines if the field should automatically receive focus when rendered
|
|
7
|
+
*/
|
|
8
|
+
autoFocus?: SelectProps['autoFocus'];
|
|
9
|
+
/**
|
|
10
|
+
* Array of country options to display in the select dropdown
|
|
11
|
+
*/
|
|
12
|
+
countryOptions: CountryOption<T>[];
|
|
13
|
+
/**
|
|
14
|
+
* Optional filter function to determine which countries to show
|
|
15
|
+
* @param country The country option to filter
|
|
16
|
+
* @returns Whether the country should be included in the dropdown
|
|
17
|
+
* @default Boolean - Shows all countries that are truthy
|
|
18
|
+
*/
|
|
19
|
+
filter?: (country: CountryOption<T>) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Label displayed above the select input
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Handler called when selection changes
|
|
26
|
+
* @param value The selected country value or null if cleared
|
|
27
|
+
* @param option The selected country option or null if cleared
|
|
28
|
+
*/
|
|
29
|
+
onChange: SelectProps<T, CountryOption<T>>['onChange'];
|
|
30
|
+
/**
|
|
31
|
+
* Text displayed when no option is selected
|
|
32
|
+
*/
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The currently selected country code or null if none selected
|
|
36
|
+
*/
|
|
37
|
+
value: T | null;
|
|
38
|
+
};
|
|
39
|
+
export type CountrySelectProps<T extends string = string> = CountrySelectType<T> & BaseProps & Omit<SelectProps<T, CountryOption<T>>, keyof CountrySelectType<T> | 'options'>;
|
|
40
|
+
/**
|
|
41
|
+
* A select component specialized for selecting a single country.
|
|
42
|
+
* Displays country flags alongside names and supports filtering options.
|
|
43
|
+
*
|
|
44
|
+
* @example Basic usage
|
|
45
|
+
* ```tsx
|
|
46
|
+
* const [selectedCountry, setSelectedCountry] = useState<string | null>(null);
|
|
47
|
+
* const { countryOptions } = useCountryOptions();
|
|
48
|
+
*
|
|
49
|
+
* <CountrySelect
|
|
50
|
+
* countryOptions={countryOptions}
|
|
51
|
+
* label="Country"
|
|
52
|
+
* onChange={(value) => setSelectedCountry(value)}
|
|
53
|
+
* placeholder="Select a country"
|
|
54
|
+
* value={selectedCountry}
|
|
55
|
+
* />
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @example With pre-selected value
|
|
59
|
+
* ```tsx
|
|
60
|
+
* const [selectedCountry, setSelectedCountry] = useState<string | null>('US');
|
|
61
|
+
* const { countryOptions } = useCountryOptions();
|
|
62
|
+
*
|
|
63
|
+
* <CountrySelect
|
|
64
|
+
* countryOptions={countryOptions}
|
|
65
|
+
* label="Country"
|
|
66
|
+
* onChange={(value) => setSelectedCountry(value)}
|
|
67
|
+
* value={selectedCountry}
|
|
68
|
+
* />
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example With country filtering
|
|
72
|
+
* ```tsx
|
|
73
|
+
* const [selectedCountry, setSelectedCountry] = useState<string | null>(null);
|
|
74
|
+
* const { countryOptions } = useCountryOptions();
|
|
75
|
+
*
|
|
76
|
+
* // Only show EU countries
|
|
77
|
+
* const euCountries = ['AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU',
|
|
78
|
+
* 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE'];
|
|
79
|
+
*
|
|
80
|
+
* <CountrySelect
|
|
81
|
+
* countryOptions={countryOptions}
|
|
82
|
+
* filter={(country) => euCountries.includes(country.code)}
|
|
83
|
+
* label="EU Country"
|
|
84
|
+
* onChange={(value) => setSelectedCountry(value)}
|
|
85
|
+
* value={selectedCountry}
|
|
86
|
+
* />
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @example With error state
|
|
90
|
+
* ```tsx
|
|
91
|
+
* <CountrySelect
|
|
92
|
+
* countryOptions={countryOptions}
|
|
93
|
+
* error={!selectedCountry}
|
|
94
|
+
* helpText={!selectedCountry ? 'Country selection is required' : undefined}
|
|
95
|
+
* label="Country"
|
|
96
|
+
* onChange={(value) => setSelectedCountry(value)}
|
|
97
|
+
* value={selectedCountry}
|
|
98
|
+
* />
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare const CountrySelect: <T extends string>({ autoFocus, countryOptions, filter, label, onChange, placeholder, value, ...props }: CountrySelectProps<T>) => import("react").JSX.Element;
|
|
102
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { GroupBase, Props, PropsValue, SelectComponentsConfig, StylesConfig } from 'react-select';
|
|
3
|
+
import type { HelpTextProps } from "../help-text/HelpText";
|
|
4
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
5
|
+
import type { SelectOption, SelectValue } from "../../types/SelectOption";
|
|
6
|
+
type RequiredProps = 'onChange' | 'options' | 'value';
|
|
7
|
+
export type MultiSelectProps<Option extends SelectOption = SelectOption, IsMulti extends true = true, Group extends GroupBase<Option> = GroupBase<Option>> = BaseProps & {
|
|
8
|
+
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
9
|
+
hasGroups?: boolean;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
label?: string;
|
|
12
|
+
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* value: { label: string; value: string; }[];
|
|
16
|
+
*/
|
|
17
|
+
value: PropsValue<Option>;
|
|
18
|
+
} & Omit<Props<Option, IsMulti, Group>, 'isMulti' | RequiredProps> & Required<Pick<Props<Option, IsMulti, Group>, RequiredProps>> & HelpTextProps;
|
|
19
|
+
export type GroupOption<Option extends SelectOption> = {
|
|
20
|
+
data: Option;
|
|
21
|
+
index: 0;
|
|
22
|
+
isDisabled: false;
|
|
23
|
+
isSelected: false;
|
|
24
|
+
type: 'option';
|
|
25
|
+
} & SelectOption;
|
|
26
|
+
export declare const MultiSelect: <V extends SelectValue, Option extends SelectOption<V>, Group extends GroupBase<Option>>({ closeMenuOnSelect, hideSelectedOptions, ...props }: MultiSelectProps<Option, true, Group>) => import("react").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ActionMeta, GroupBase, Props, SelectComponentsConfig, StylesConfig } from 'react-select';
|
|
3
|
+
import type { HelpTextProps } from "../help-text/HelpText";
|
|
4
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
5
|
+
import type { SelectOption, SelectValue } from "../../types/SelectOption";
|
|
6
|
+
import type { Size } from "../../types/Size";
|
|
7
|
+
type RequiredProps = 'options' | 'value';
|
|
8
|
+
export type SelectProps<V extends SelectValue = SelectValue, Option = SelectOption<V>, IsMulti extends false = false, Group extends GroupBase<Option> = GroupBase<Option>> = BaseProps & {
|
|
9
|
+
/** Close the select dropdown menu when scrolling outside of menu to prevent graphical jank */
|
|
10
|
+
closeOnOutsideScroll?: boolean;
|
|
11
|
+
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
12
|
+
/**
|
|
13
|
+
* An easier way to override the option rendering without having to use the typical component props and recreating all the styles.
|
|
14
|
+
*/
|
|
15
|
+
customOption?: (value: V) => ReactNode;
|
|
16
|
+
hasGroups?: boolean;
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* onChange={changed => setExampleValue(changed?.value || null)}
|
|
22
|
+
*/
|
|
23
|
+
onChange: (changed: Option | null, actionMeta: ActionMeta<Option>) => void;
|
|
24
|
+
size?: Size;
|
|
25
|
+
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* value={options.filter(x => x.value === exampleValue)}
|
|
29
|
+
*/
|
|
30
|
+
value: Option[] | Option | null;
|
|
31
|
+
} & Omit<Props<Option, IsMulti, Group>, 'isMulti' | RequiredProps> & Required<Pick<Props<Option, IsMulti, Group>, RequiredProps>> & HelpTextProps;
|
|
32
|
+
/**
|
|
33
|
+
* Select component that allows users to select one option from a dropdown list.
|
|
34
|
+
* It's a wrapper around react-select with Amino styling and additional features.
|
|
35
|
+
*
|
|
36
|
+
* @example Basic usage
|
|
37
|
+
* <Select
|
|
38
|
+
* label="Currency"
|
|
39
|
+
* options={[
|
|
40
|
+
* { label: 'US Dollar (USD)', value: 'USD' },
|
|
41
|
+
* { label: 'Euro (EUR)', value: 'EUR' },
|
|
42
|
+
* { label: 'British Pound (GBP)', value: 'GBP' }
|
|
43
|
+
* ]}
|
|
44
|
+
* value={{ label: 'US Dollar (USD)', value: 'USD' }}
|
|
45
|
+
* onChange={(option) => setValue(option)}
|
|
46
|
+
* />
|
|
47
|
+
*
|
|
48
|
+
* @example With search functionality
|
|
49
|
+
* <Select
|
|
50
|
+
* label="Currency"
|
|
51
|
+
* options={currencyOptions}
|
|
52
|
+
* value={selectedCurrency}
|
|
53
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
54
|
+
* isSearchable={true}
|
|
55
|
+
* placeholder="Search for a currency..."
|
|
56
|
+
* />
|
|
57
|
+
*
|
|
58
|
+
* @example With icon
|
|
59
|
+
* <Select
|
|
60
|
+
* label="Currency"
|
|
61
|
+
* icon={<MoneyIcon size={24} />}
|
|
62
|
+
* options={currencyOptions}
|
|
63
|
+
* value={selectedCurrency}
|
|
64
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
65
|
+
* />
|
|
66
|
+
*
|
|
67
|
+
* @example With error state
|
|
68
|
+
* <Select
|
|
69
|
+
* label="Currency"
|
|
70
|
+
* options={currencyOptions}
|
|
71
|
+
* value={selectedCurrency}
|
|
72
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
73
|
+
* error={true}
|
|
74
|
+
* helpText="Please select a currency"
|
|
75
|
+
* />
|
|
76
|
+
*
|
|
77
|
+
* @example With option icons
|
|
78
|
+
* <Select
|
|
79
|
+
* label="Country"
|
|
80
|
+
* options={[
|
|
81
|
+
* { label: 'United States', value: 'US', icon: <FlagIcon code="US" iconScale="small" /> },
|
|
82
|
+
* { label: 'Canada', value: 'CA', icon: <FlagIcon code="CA" iconScale="small" /> },
|
|
83
|
+
* { label: 'Mexico', value: 'MX', icon: <FlagIcon code="MX" iconScale="small" /> }
|
|
84
|
+
* ]}
|
|
85
|
+
* value={selectedCountry}
|
|
86
|
+
* onChange={(option) => setSelectedCountry(option)}
|
|
87
|
+
* />
|
|
88
|
+
*
|
|
89
|
+
* @example With custom option rendering
|
|
90
|
+
* <Select
|
|
91
|
+
* label="Currency"
|
|
92
|
+
* options={currencyOptions}
|
|
93
|
+
* value={selectedCurrency}
|
|
94
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
95
|
+
* customOption={(value) => (
|
|
96
|
+
* <div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
97
|
+
* <span>{value}</span>
|
|
98
|
+
* <span style={{ color: 'gray' }}>Rate: 1.0</span>
|
|
99
|
+
* </div>
|
|
100
|
+
* )}
|
|
101
|
+
* />
|
|
102
|
+
*
|
|
103
|
+
* @example With custom styles
|
|
104
|
+
* <Select
|
|
105
|
+
* label="Currency"
|
|
106
|
+
* options={currencyOptions}
|
|
107
|
+
* value={selectedCurrency}
|
|
108
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
109
|
+
* styles={{
|
|
110
|
+
* menu: (base) => ({
|
|
111
|
+
* ...base,
|
|
112
|
+
* background: theme.blue100,
|
|
113
|
+
* }),
|
|
114
|
+
* }}
|
|
115
|
+
* />
|
|
116
|
+
*
|
|
117
|
+
* @example In a dialog with scrolling
|
|
118
|
+
* <Select
|
|
119
|
+
* label="Currency"
|
|
120
|
+
* options={currencyOptions}
|
|
121
|
+
* value={selectedCurrency}
|
|
122
|
+
* onChange={(option) => setSelectedCurrency(option)}
|
|
123
|
+
* closeOnOutsideScroll={true}
|
|
124
|
+
* />
|
|
125
|
+
*/
|
|
126
|
+
export declare const Select: <V extends SelectValue, Option extends SelectOption<V>, Group extends GroupBase<Option> = GroupBase<Option>>({ isClearable, isSearchable, label, value, ...props }: SelectProps<V, Option, false, Group>) => import("react").JSX.Element;
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { GroupBase, OptionProps, Props, SelectComponentsConfig, StylesConfig } from 'react-select';
|
|
3
|
+
import { type HelpTextProps } from "../help-text/HelpText";
|
|
4
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
5
|
+
import type { SelectOption, SelectValue } from "../../types/SelectOption";
|
|
6
|
+
import type { Size } from "../../types/Size";
|
|
7
|
+
type AdditionalProps<Value> = {
|
|
8
|
+
customOption?: (value: Value) => ReactNode;
|
|
9
|
+
hasGroups?: boolean;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: Size;
|
|
13
|
+
};
|
|
14
|
+
export declare const CheckboxOptionComponent: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => import("react").JSX.Element;
|
|
15
|
+
export type StyledReactSelectProps<V extends SelectValue, Option extends SelectOption<V>, IsMulti extends boolean, Group extends GroupBase<Option>> = {
|
|
16
|
+
closeOnOutsideScroll?: boolean;
|
|
17
|
+
components?: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
18
|
+
size?: Size;
|
|
19
|
+
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
20
|
+
} & Props<Option, IsMulti, Group> & HelpTextProps & AdditionalProps<Option['value']> & BaseProps;
|
|
21
|
+
export declare const StyledReactSelect: <V extends SelectValue, Option extends SelectOption<V>, IsMulti extends boolean, Group extends GroupBase<Option>>({ closeOnOutsideScroll, components, customOption, error, hasGroups, helpText, icon, label, menuPosition, placeholder, size, style, ...props }: StyledReactSelectProps<V, Option, IsMulti, Group>) => import("react").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
+
import type { ReactComponent } from "../../types/ReactComponent";
|
|
4
|
+
export type SimpleTableHeaderBaseProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Text alignment for a column
|
|
7
|
+
* @default 'start'
|
|
8
|
+
*/
|
|
9
|
+
align?: 'start' | 'center' | 'end';
|
|
10
|
+
/**
|
|
11
|
+
* @default false
|
|
12
|
+
* Disable link routing on cells
|
|
13
|
+
*/
|
|
14
|
+
disabledLink?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @default 0
|
|
17
|
+
* Minimum width of column in pixels
|
|
18
|
+
*/
|
|
19
|
+
minWidth?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @default false
|
|
22
|
+
* Disable padding on cells
|
|
23
|
+
*/
|
|
24
|
+
noPadding?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Determines cell content wrapping method
|
|
27
|
+
* @default 'nowrap'
|
|
28
|
+
*/
|
|
29
|
+
textWrapMethod?: 'truncate' | 'normal' | 'nowrap';
|
|
30
|
+
/**
|
|
31
|
+
* Width of column in percent
|
|
32
|
+
* @default undefined
|
|
33
|
+
*/
|
|
34
|
+
width?: number;
|
|
35
|
+
};
|
|
36
|
+
export type SimpleTableHeader<T extends object> = {
|
|
37
|
+
[Key in keyof T]: {
|
|
38
|
+
/** The key for each record that the header corresponds to */
|
|
39
|
+
key: Key;
|
|
40
|
+
/** null means don't show a header for this column */
|
|
41
|
+
name: ReactNode | null;
|
|
42
|
+
renderCustom?: (value: T[Key], item: T) => React.ReactNode;
|
|
43
|
+
} & SimpleTableHeaderBaseProps;
|
|
44
|
+
}[keyof T extends React.Key ? keyof T : never];
|
|
45
|
+
export type SimpleTableProps<T extends object> = BaseProps & {
|
|
46
|
+
/**
|
|
47
|
+
* Custom component for the link. Defaults to <a>
|
|
48
|
+
*/
|
|
49
|
+
CustomLinkComponent?: ReactComponent<{
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
href: string;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* @default false
|
|
55
|
+
* Use bordered variant of table
|
|
56
|
+
*/
|
|
57
|
+
bordered?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @default false
|
|
60
|
+
* Enable rows to collapse and expand with more information
|
|
61
|
+
*/
|
|
62
|
+
collapsible?: {
|
|
63
|
+
/**
|
|
64
|
+
* Content to show when row is expanded
|
|
65
|
+
*/
|
|
66
|
+
collapseContent?: {
|
|
67
|
+
content: ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* @note Key must match the key of the item it is expanding from
|
|
70
|
+
*/
|
|
71
|
+
key: string;
|
|
72
|
+
}[];
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
expandedItemKeys: string[];
|
|
75
|
+
toggleItem: (key: string) => void;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Will make the whole row (each td) an anchor tag so native link functionality exists. If clicking just navigates, use this over onRowClick.
|
|
79
|
+
*/
|
|
80
|
+
getRowLink?: (item: T) => string;
|
|
81
|
+
headers: SimpleTableHeader<T>[];
|
|
82
|
+
items: T[];
|
|
83
|
+
/** Adding unique list keys */
|
|
84
|
+
keyExtractor: (item: T) => string;
|
|
85
|
+
/**
|
|
86
|
+
* Render loading skeleton
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
loading?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Number of rows to render while loading
|
|
92
|
+
* @default 10
|
|
93
|
+
*/
|
|
94
|
+
loadingItems?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Height of loading skeleton
|
|
97
|
+
* @default 13
|
|
98
|
+
*/
|
|
99
|
+
loadingSkeletonHeight?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Maximum height of the table. Required for the sticky header to work correctly.
|
|
102
|
+
* @default '100%
|
|
103
|
+
*/
|
|
104
|
+
maxHeight?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @default false,
|
|
107
|
+
* Disable hover background color effect on rows
|
|
108
|
+
*/
|
|
109
|
+
noHoverBackground?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Callback for clicking anywhere on row.
|
|
112
|
+
*
|
|
113
|
+
* If having buttons in the table, remember to call e.stopPropagation() to prevent this from firing.
|
|
114
|
+
*/
|
|
115
|
+
onRowClick?: (item: T) => void;
|
|
116
|
+
/** Callback for hovering anywhere on row */
|
|
117
|
+
onRowHover?: (item: T) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Component places at the bottom of the table
|
|
120
|
+
*/
|
|
121
|
+
renderFooter?: ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* @default false
|
|
124
|
+
* Show checkbox on each row, and checkbox for toggling all in header
|
|
125
|
+
*/
|
|
126
|
+
selectable?: {
|
|
127
|
+
/**
|
|
128
|
+
* If this is true, then onRowClick will call onRowCheckboxChange with the opposite of the current value
|
|
129
|
+
*/
|
|
130
|
+
anySelected?: boolean;
|
|
131
|
+
enabled: boolean;
|
|
132
|
+
headerCheckboxValue?: boolean;
|
|
133
|
+
isRowCheckboxDisabled?: (item: T, index: number) => boolean;
|
|
134
|
+
isRowChecked?: (item: T, index: number) => boolean;
|
|
135
|
+
onHeaderCheckboxChange?: (checked: boolean) => void;
|
|
136
|
+
onRowCheckboxChange?: (checked: boolean, item: T, index: number) => void;
|
|
137
|
+
/**
|
|
138
|
+
* Overrides custom handlers for more control
|
|
139
|
+
*/
|
|
140
|
+
renderCustomHeaderCheckbox?: ReactNode;
|
|
141
|
+
/**
|
|
142
|
+
* Overrides custom handlers for more control
|
|
143
|
+
*/
|
|
144
|
+
renderCustomRowCheckbox?: (item: T, index: number) => ReactNode;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* SimpleTable provides a flexible, accessible table component for displaying tabular data.
|
|
149
|
+
* It supports features like selectable rows, collapsible rows, custom cell rendering, loading skeletons,
|
|
150
|
+
* and sticky headers. Designed for use cases where you need a straightforward but powerful table UI.
|
|
151
|
+
*
|
|
152
|
+
* @example Basic usage
|
|
153
|
+
* ```tsx
|
|
154
|
+
* type User = { id: number; name: string; age: number };
|
|
155
|
+
* const headers: SimpleTableHeader<User>[] = [
|
|
156
|
+
* { key: 'name', name: 'Name' },
|
|
157
|
+
* { key: 'age', name: 'Age' },
|
|
158
|
+
* ];
|
|
159
|
+
* const users: User[] = [
|
|
160
|
+
* { id: 1, name: 'Alice', age: 30 },
|
|
161
|
+
* { id: 2, name: 'Bob', age: 25 },
|
|
162
|
+
* ];
|
|
163
|
+
* <SimpleTable
|
|
164
|
+
* headers={headers}
|
|
165
|
+
* items={users}
|
|
166
|
+
* keyExtractor={user => String(user.id)}
|
|
167
|
+
* />
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @example With selectable rows
|
|
171
|
+
* ```tsx
|
|
172
|
+
* const [selected, setSelected] = useState<number[]>([]);
|
|
173
|
+
* <SimpleTable
|
|
174
|
+
* headers={headers}
|
|
175
|
+
* items={users}
|
|
176
|
+
* keyExtractor={user => String(user.id)}
|
|
177
|
+
* selectable={{
|
|
178
|
+
* enabled: true,
|
|
179
|
+
* isRowChecked: (item) => selected.includes(item.id),
|
|
180
|
+
* onRowCheckboxChange: (checked, item) => {
|
|
181
|
+
* setSelected(checked
|
|
182
|
+
* ? [...selected, item.id]
|
|
183
|
+
* : selected.filter(id => id !== item.id)
|
|
184
|
+
* );
|
|
185
|
+
* },
|
|
186
|
+
* }}
|
|
187
|
+
* />
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @example With collapsible rows
|
|
191
|
+
* ```tsx
|
|
192
|
+
* <SimpleTable
|
|
193
|
+
* headers={headers}
|
|
194
|
+
* items={users}
|
|
195
|
+
* keyExtractor={user => String(user.id)}
|
|
196
|
+
* collapsible={{
|
|
197
|
+
* enabled: true,
|
|
198
|
+
* expandedItemKeys: expandedKeys,
|
|
199
|
+
* toggleItem: key => setExpandedKeys(keys =>
|
|
200
|
+
* keys.includes(key) ? keys.filter(k => k !== key) : [...keys, key]
|
|
201
|
+
* ),
|
|
202
|
+
* collapseContent: users.map(user => ({
|
|
203
|
+
* key: String(user.id),
|
|
204
|
+
* content: <div>More info about {user.name}</div>,
|
|
205
|
+
* })),
|
|
206
|
+
* }}
|
|
207
|
+
* />
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @example With custom cell rendering
|
|
211
|
+
* ```tsx
|
|
212
|
+
* const headers: SimpleTableHeader<User>[] = [
|
|
213
|
+
* { key: 'name', name: 'Name' },
|
|
214
|
+
* {
|
|
215
|
+
* key: 'age',
|
|
216
|
+
* name: 'Age',
|
|
217
|
+
* renderCustom: (age) => <Text color={age > 25 ? 'green600' : 'red600'}>{age}</Text>,
|
|
218
|
+
* },
|
|
219
|
+
* ];
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* @example With loading skeleton
|
|
223
|
+
* ```tsx
|
|
224
|
+
* <SimpleTable
|
|
225
|
+
* headers={headers}
|
|
226
|
+
* items={[]}
|
|
227
|
+
* keyExtractor={user => String(user.id)}
|
|
228
|
+
* loading
|
|
229
|
+
* />
|
|
230
|
+
* ```
|
|
231
|
+
*
|
|
232
|
+
* @example With row click handler
|
|
233
|
+
* ```tsx
|
|
234
|
+
* <SimpleTable
|
|
235
|
+
* headers={headers}
|
|
236
|
+
* items={users}
|
|
237
|
+
* keyExtractor={user => String(user.id)}
|
|
238
|
+
* onRowClick={user => alert(`Clicked: ${user.name}`)}
|
|
239
|
+
* />
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
export declare const SimpleTable: <T extends object>({ bordered, className, collapsible, CustomLinkComponent, getRowLink, headers, items, keyExtractor, loading, loadingItems, loadingSkeletonHeight, maxHeight, noHoverBackground, onRowClick, onRowHover, renderFooter, selectable, style, }: SimpleTableProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SimpleTableHeader, SimpleTableProps } from './SimpleTable';
|
|
3
|
+
type SimpleTableRowProps<T extends object> = {
|
|
4
|
+
CustomLinkComponent?: SimpleTableProps<T>['CustomLinkComponent'];
|
|
5
|
+
bordered: SimpleTableProps<T>['bordered'];
|
|
6
|
+
collapsible: SimpleTableProps<T>['collapsible'];
|
|
7
|
+
getRowLink?: (item: T) => string;
|
|
8
|
+
headers: SimpleTableHeader<T>[];
|
|
9
|
+
index: number;
|
|
10
|
+
item: T;
|
|
11
|
+
noHoverBackground: boolean;
|
|
12
|
+
onRowClick?: (item: T) => void;
|
|
13
|
+
onRowHover?: (item: T) => void;
|
|
14
|
+
rowKey: string;
|
|
15
|
+
selectable: SimpleTableProps<T>['selectable'];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* SimpleTableRow is an internal component used by SimpleTable to render each table row.
|
|
19
|
+
* It supports selectable rows, collapsible content, custom cell rendering, and row click/hover handlers.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This component is not intended for direct use. Use `SimpleTable` for all table needs.
|
|
23
|
+
*
|
|
24
|
+
* @example Used internally by SimpleTable
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <SimpleTable
|
|
27
|
+
* headers={headers}
|
|
28
|
+
* items={items}
|
|
29
|
+
* keyExtractor={item => String(item.id)}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const SimpleTableRow: <T extends object>({ bordered, collapsible, CustomLinkComponent, getRowLink, headers, index, item, noHoverBackground, onRowClick, onRowHover, rowKey, selectable, }: SimpleTableRowProps<T>) => React.JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
+
export type SkeletonProps = BaseProps & {
|
|
4
|
+
animation?: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
height?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Skeleton displays a placeholder block to indicate loading content.
|
|
11
|
+
* It can be used to mimic the shape of text, cards, or other UI elements while data is loading.
|
|
12
|
+
* Supports custom width, height, animation, and children for more advanced skeleton states.
|
|
13
|
+
*
|
|
14
|
+
* @example Basic usage
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Skeleton height={20} width={200} />
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @example Animated skeleton
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Skeleton animation height={32} width={300} />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example Skeleton inside a card
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Card label="Loading...">
|
|
27
|
+
* <Skeleton height={24} width={180} />
|
|
28
|
+
* <Skeleton height={16} width={220} />
|
|
29
|
+
* </Card>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example With children (content overlay)
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <Skeleton height={100} width={400}>
|
|
35
|
+
* <Text color="gray600" type="subheader">
|
|
36
|
+
* Generating report...
|
|
37
|
+
* </Text>
|
|
38
|
+
* </Skeleton>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example Multiple skeleton lines
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <VStack spacing={8}>
|
|
44
|
+
* <Skeleton height={16} width={180} />
|
|
45
|
+
* <Skeleton height={16} width={220} />
|
|
46
|
+
* <Skeleton height={16} width={200} />
|
|
47
|
+
* </VStack>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const Skeleton: ({ animation, children, className, height, style, width, }: SkeletonProps) => import("react").JSX.Element;
|