@bloomreach/react-banana-ui 1.8.5 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bloomreach-react-banana-ui.es.js +1973 -1876
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -1
- package/dist/bloomreach-react-banana-ui.umd.js +12 -12
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -1
- package/dist/components/buttons/button/button.d.ts +2 -57
- package/dist/components/buttons/button/button.types.d.ts +57 -0
- package/dist/components/buttons/button/index.d.ts +1 -1
- package/dist/components/buttons/button-group/button-group.d.ts +2 -22
- package/dist/components/buttons/button-group/button-group.types.d.ts +22 -0
- package/dist/components/buttons/button-group/index.d.ts +1 -1
- package/dist/components/buttons/toggle-button/index.d.ts +1 -1
- package/dist/components/buttons/toggle-button/toggle-button.d.ts +2 -30
- package/dist/components/buttons/toggle-button/toggle-button.types.d.ts +30 -0
- package/dist/components/buttons/toggle-button-group/index.d.ts +1 -1
- package/dist/components/buttons/toggle-button-group/toggle-button-group.d.ts +2 -34
- package/dist/components/buttons/toggle-button-group/toggle-button-group.types.d.ts +35 -0
- package/dist/components/feedback/alert/alert-title.d.ts +2 -11
- package/dist/components/feedback/alert/alert.d.ts +2 -39
- package/dist/components/feedback/alert/alert.types.d.ts +49 -0
- package/dist/components/feedback/alert/index.d.ts +1 -2
- package/dist/components/foundations/icon/deprecated/NextStepIcon.d.ts +1 -1
- package/dist/components/foundations/icon/deprecated/SortAscIcon.d.ts +1 -1
- package/dist/components/foundations/icon/deprecated/SortDescIcon.d.ts +1 -1
- package/dist/components/foundations/icon/deprecated/SortInactiveIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icon.d.ts +2 -17
- package/dist/components/foundations/icon/icon.types.d.ts +17 -0
- package/dist/components/foundations/icon/icons/AbTestIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AggregateIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AnalyticsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AndroidIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AnonymizeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AppleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArchiveAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArchiveIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowCollapseIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowDownIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowExpandIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowKeyboardNextIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowKeyboardPreviousIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowKeyboardUpIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ArrowUpIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AttributeSlotIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AxisIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/AxisLimtIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BarChartIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BooleanIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BoostIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BracketsCancelIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BracketsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BrowserIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BrowserPushIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/BuryIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CalendarAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CalendarIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CatalogIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChatAddIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChatIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChatsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CheckCircleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CheckFilledIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CheckIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CheckSmallIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronDownFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronLeftFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronRightFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronUpFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ClearFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ClearIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ClipboardAddIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ClockCircleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CloneIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CloseIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CloseSmallIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CloudCheckIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CloudDownloadIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CodeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ColorPickerAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ColorPickerIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ColumnsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ConditionAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ConditionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ConsoleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ConstantAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ConstantIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ContextualPersonalizationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CopyIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CopyToDashboardIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CsvIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CustomRowIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CustomerIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CustomersFilterIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/CustomersSegmentationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DateTimeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DescriptionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DesktopIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DisabledIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DivideIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DocumentationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DownloadIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DragHorizontalIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/DragVericalIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EditIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EducationHubIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EllipsisVerticalIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EllipsissHorizontalIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EmailIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EmojiPickerIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EmptyIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ErrorFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EventIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EventsSegmentationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ExperimentIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ExposeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ExpressionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ExternalLinkIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EyeCrossedIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/EyeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FastForwardIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FileIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FileVideoIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FilterIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FireIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FolderEmptyIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FolderFullIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ForceAddToRecallIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ForceAddToRecallUndoIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FormulaExpressionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FormulaIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FromStartAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/FullscreenIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/GiftIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/GoToIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/GraphStatsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/GridAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/GridIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/HelpIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/HistoryIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/HomeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/HtmlIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ImageSearchIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ImagesIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ImpactDownIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/InfoFilledIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/InfoIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/InfoSmallIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/InternetIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/KeyIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LayoutIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LikeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LineChartIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LinkIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ListIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LoaderIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/LockIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MapIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MetricAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MinusIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobileAppInboxIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobileImageMessageIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobilePhoneLandscapeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobilePhonePortraitIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobilePushIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobileSmsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MobileTextMessageIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MoveIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MultiParentRejectedIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MultiParentSelectedIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/MultiParentUnassignedIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/NegationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/NotificationIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/NumberIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/OfflineFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/OfflineIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/OutOfStockIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PagesIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PaintIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ParagraphCenterAlignIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ParagraphLeftAlignIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ParagraphRightAlignIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PassDownIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PassThroughIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PercentageIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PersAlt1Icon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PersAlt2Icon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PersAlt3Icon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PersAlt4Icon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PictureAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PictureIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PinIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PlugPlayIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PlusCircleFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PlusCircleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PlusIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/PoverButtonIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ProductSlotsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ReceiveIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RefreshIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ReleaseNotesIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RenameAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RenameIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ReorderIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ReportIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RetentionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RewertLeftIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RewertRightIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RibbonIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RoadmapIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RobotIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RuleLabelIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/RunningAggregateIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SaveIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ScenarioIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SearchIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SecurityShieldIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SendIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SettingsAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SettingsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ShareIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ShopIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/ShrinkIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SortIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SplitFlowIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SqlIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StarFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StarIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StartFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StartIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StatusDotIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StopIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StopwatchIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StringComponentIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/StringIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SuggestionIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SurveyIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/SwapIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TabletLangscapeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TabletPortraitIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TagAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TagIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TemplateIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TextBoldIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TextItalicIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TextStyleIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TragetIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TransferIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TrashIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/TrendIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UnExposeIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UnarchiveAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UndoIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UnlinkIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UnlockIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UntilNowAltIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UploadIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UsagesIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/UsersIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/VariantsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/VisualIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/VoucherIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WaitIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WalkthroughsIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WarningFillIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WebhookIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WeblayerIcon.d.ts +1 -1
- package/dist/components/foundations/icon/icons/WrenchIcon.d.ts +1 -1
- package/dist/components/foundations/icon/index.d.ts +1 -1
- package/dist/components/inputs/base-field/base-field.d.ts +2 -40
- package/dist/components/inputs/base-field/base-field.types.d.ts +40 -0
- package/dist/components/inputs/base-field/index.d.ts +1 -1
- package/dist/components/inputs/base-input/base-input.d.ts +3 -102
- package/dist/components/inputs/base-input/base-input.types.d.ts +101 -0
- package/dist/components/inputs/base-input/index.d.ts +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +23 -0
- package/dist/components/inputs/checkbox/checkbox.qa.stories.d.ts +8 -0
- package/dist/components/inputs/checkbox/checkbox.stories.d.ts +7 -0
- package/dist/components/inputs/checkbox/checkbox.types.d.ts +44 -0
- package/dist/components/inputs/checkbox/index.d.ts +2 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +23 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.qa.stories.d.ts +7 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.stories.d.ts +11 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.types.d.ts +16 -0
- package/dist/components/inputs/checkbox-field/index.d.ts +2 -0
- package/dist/components/inputs/field-label/field-label.d.ts +2 -20
- package/dist/components/inputs/field-label/field-label.types.d.ts +20 -0
- package/dist/components/inputs/field-label/index.d.ts +1 -1
- package/dist/components/inputs/index.d.ts +2 -0
- package/dist/components/inputs/input-field/index.d.ts +1 -1
- package/dist/components/inputs/input-field/input-field.d.ts +2 -88
- package/dist/components/inputs/input-field/input-field.types.d.ts +88 -0
- package/dist/components/inputs/internal.d.ts +1 -0
- package/dist/components/inputs/select/select.d.ts +1 -1
- package/dist/components/inputs/select-field/select-field.d.ts +1 -1
- package/dist/components/inputs/select-option/select-option.d.ts +1 -1
- package/dist/components/inputs/text-field/index.d.ts +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +2 -106
- package/dist/components/inputs/text-field/text-field.types.d.ts +106 -0
- package/dist/components/inputs/toggle/index.d.ts +1 -1
- package/dist/components/inputs/toggle/toggle.d.ts +1 -38
- package/dist/components/inputs/toggle/toggle.types.d.ts +39 -0
- package/dist/components/inputs/toggle-field/index.d.ts +1 -1
- package/dist/components/inputs/toggle-field/toggle-field.d.ts +2 -16
- package/dist/components/inputs/toggle-field/toggle-field.types.d.ts +16 -0
- package/dist/components/lists/listbox/listbox.d.ts +1 -1
- package/dist/components/lists/listbox-item/listbox-item.d.ts +1 -1
- package/dist/components/navigation/pagination/index.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination-config.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination-context.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination-navigation-helpers.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination-navigation-item.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +1 -1
- package/dist/components/popovers/modal/index.d.ts +1 -1
- package/dist/components/popovers/modal/modal-body.d.ts +1 -1
- package/dist/components/popovers/modal/modal-close-button.d.ts +1 -1
- package/dist/components/popovers/modal/modal-context.d.ts +1 -1
- package/dist/components/popovers/modal/modal-footer-actions.d.ts +1 -1
- package/dist/components/popovers/modal/modal-footer.d.ts +1 -1
- package/dist/components/popovers/modal/modal-header-title.d.ts +1 -1
- package/dist/components/popovers/modal/modal-header.d.ts +1 -1
- package/dist/components/popovers/modal/modal.d.ts +1 -1
- package/dist/components/popovers/modal/modal.qa.stories.d.ts +1 -1
- package/dist/components/popovers/tooltip/index.d.ts +1 -1
- package/dist/components/popovers/tooltip/tooltip.d.ts +2 -31
- package/dist/components/popovers/tooltip/tooltip.types.d.ts +31 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/components/navigation/pagination/{pagination-types.d.ts → pagination.types.d.ts} +0 -0
- /package/dist/components/popovers/modal/{modal-types.d.ts → modal.types.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectFieldComponentType } from './select-field.types';
|
|
1
|
+
import type { SelectFieldComponentType } from './select-field.types';
|
|
2
2
|
/**
|
|
3
3
|
* The `SelectField` component is meant to optimize user interaction and experience.
|
|
4
4
|
* It is a customizable dropdown list that allows users to choose one or more options from a list.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as TextField } from './text-field';
|
|
2
|
-
export type { TextFieldProps } from './text-field';
|
|
2
|
+
export type { TextFieldProps } from './text-field.types';
|
|
@@ -1,110 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TextFieldProps } from './text-field.types';
|
|
2
3
|
import './text-field.scss';
|
|
3
|
-
export interface TextFieldProps {
|
|
4
|
-
/**
|
|
5
|
-
* Automatically adjusts `textarea` height to match the length of the content within.
|
|
6
|
-
*/
|
|
7
|
-
autoSize?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Custom class name for the container of this component.
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* If `true`, the field will display a character counter.
|
|
14
|
-
* When the `maxCount` is also specified, the counter will be displayed like `x/y`,
|
|
15
|
-
* where `x` is the current number of characters entered and `y` is the maximum number of characters allowed.
|
|
16
|
-
*/
|
|
17
|
-
counter?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The default value. Use when the component is not controlled.
|
|
20
|
-
*/
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
/**
|
|
23
|
-
* If `true`, the `field is disabled.
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* If `true`, the ``field` will indicate an error and set the `aria-invalid` attribute for `textarea`.
|
|
28
|
-
*/
|
|
29
|
-
error?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* If `true`, the `field will take up the full width of its container.
|
|
32
|
-
*/
|
|
33
|
-
fullWidth?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* The helper text content.
|
|
36
|
-
*/
|
|
37
|
-
helperText?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* The `id` of the `textarea` element.
|
|
40
|
-
*/
|
|
41
|
-
id?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The label content.
|
|
44
|
-
*/
|
|
45
|
-
label?: ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* The maximum number of characters allowed in the field to display in the counter.
|
|
48
|
-
* It doesn't prevent the user from typing more characters.
|
|
49
|
-
* To do that, set the `maxLength` attribute via `textareaProps`.
|
|
50
|
-
*/
|
|
51
|
-
maxCount?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The maximum number of text lines to grow when `autoSize` is `true`.
|
|
54
|
-
*/
|
|
55
|
-
maxRows?: number;
|
|
56
|
-
/**
|
|
57
|
-
* The number of visible text lines for the field.
|
|
58
|
-
* When `autoSize` is `false`, this prop behaves as `rows` for `textarea`.
|
|
59
|
-
* @default 3
|
|
60
|
-
*/
|
|
61
|
-
minRows?: number;
|
|
62
|
-
/**
|
|
63
|
-
* The `name` attribute of the `textarea` element.
|
|
64
|
-
*/
|
|
65
|
-
name?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Callback fired when the `textarea` is blurred.
|
|
68
|
-
*/
|
|
69
|
-
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
70
|
-
/**
|
|
71
|
-
* Callback fired when the value is changed.
|
|
72
|
-
*/
|
|
73
|
-
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
74
|
-
/**
|
|
75
|
-
* Callback fired when the `textarea` is focused.
|
|
76
|
-
*/
|
|
77
|
-
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
78
|
-
/**
|
|
79
|
-
* The short hint displayed in the `textarea` before the user enters a value.
|
|
80
|
-
*/
|
|
81
|
-
placeholder?: string;
|
|
82
|
-
/**
|
|
83
|
-
* If `true`, the `textarea` will be read-only.
|
|
84
|
-
*/
|
|
85
|
-
readOnly?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* If `true`, the `textarea` is required.
|
|
88
|
-
*/
|
|
89
|
-
required?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* If `true`, the `textarea` will be manually resizable.
|
|
92
|
-
*/
|
|
93
|
-
resizable?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Attributes applied to the `textarea` element, check the link below for more details.
|
|
96
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes
|
|
97
|
-
*/
|
|
98
|
-
textareaProps?: TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
99
|
-
/**
|
|
100
|
-
* Tooltip to display when the field has label.
|
|
101
|
-
*/
|
|
102
|
-
tooltip?: ReactNode;
|
|
103
|
-
/**
|
|
104
|
-
* The `value` of the `textarea` element, required for a controlled component.
|
|
105
|
-
*/
|
|
106
|
-
value?: string;
|
|
107
|
-
}
|
|
108
4
|
/**
|
|
109
5
|
* The text field includes a label, a helper text and a textarea field where users can type multiline of text.
|
|
110
6
|
* The text field component typically appears in forms and dialogs.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface TextFieldProps {
|
|
3
|
+
/**
|
|
4
|
+
* Automatically adjusts `textarea` height to match the length of the content within.
|
|
5
|
+
*/
|
|
6
|
+
autoSize?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name for the container of this component.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* If `true`, the field will display a character counter.
|
|
13
|
+
* When the `maxCount` is also specified, the counter will be displayed like `x/y`,
|
|
14
|
+
* where `x` is the current number of characters entered and `y` is the maximum number of characters allowed.
|
|
15
|
+
*/
|
|
16
|
+
counter?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The default value. Use when the component is not controlled.
|
|
19
|
+
*/
|
|
20
|
+
defaultValue?: string;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the `field is disabled.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the ``field` will indicate an error and set the `aria-invalid` attribute for `textarea`.
|
|
27
|
+
*/
|
|
28
|
+
error?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, the `field will take up the full width of its container.
|
|
31
|
+
*/
|
|
32
|
+
fullWidth?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The helper text content.
|
|
35
|
+
*/
|
|
36
|
+
helperText?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The `id` of the `textarea` element.
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The label content.
|
|
43
|
+
*/
|
|
44
|
+
label?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number of characters allowed in the field to display in the counter.
|
|
47
|
+
* It doesn't prevent the user from typing more characters.
|
|
48
|
+
* To do that, set the `maxLength` attribute via `textareaProps`.
|
|
49
|
+
*/
|
|
50
|
+
maxCount?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The maximum number of text lines to grow when `autoSize` is `true`.
|
|
53
|
+
*/
|
|
54
|
+
maxRows?: number;
|
|
55
|
+
/**
|
|
56
|
+
* The number of visible text lines for the field.
|
|
57
|
+
* When `autoSize` is `false`, this prop behaves as `rows` for `textarea`.
|
|
58
|
+
* @default 3
|
|
59
|
+
*/
|
|
60
|
+
minRows?: number;
|
|
61
|
+
/**
|
|
62
|
+
* The `name` attribute of the `textarea` element.
|
|
63
|
+
*/
|
|
64
|
+
name?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Callback fired when the `textarea` is blurred.
|
|
67
|
+
*/
|
|
68
|
+
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
69
|
+
/**
|
|
70
|
+
* Callback fired when the value is changed.
|
|
71
|
+
*/
|
|
72
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
73
|
+
/**
|
|
74
|
+
* Callback fired when the `textarea` is focused.
|
|
75
|
+
*/
|
|
76
|
+
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
77
|
+
/**
|
|
78
|
+
* The short hint displayed in the `textarea` before the user enters a value.
|
|
79
|
+
*/
|
|
80
|
+
placeholder?: string;
|
|
81
|
+
/**
|
|
82
|
+
* If `true`, the `textarea` will be read-only.
|
|
83
|
+
*/
|
|
84
|
+
readOnly?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* If `true`, the `textarea` is required.
|
|
87
|
+
*/
|
|
88
|
+
required?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* If `true`, the `textarea` will be manually resizable.
|
|
91
|
+
*/
|
|
92
|
+
resizable?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Attributes applied to the `textarea` element, check the link below for more details.
|
|
95
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes
|
|
96
|
+
*/
|
|
97
|
+
textareaProps?: TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
98
|
+
/**
|
|
99
|
+
* Tooltip to display when the field has label.
|
|
100
|
+
*/
|
|
101
|
+
tooltip?: ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* The `value` of the `textarea` element, required for a controlled component.
|
|
104
|
+
*/
|
|
105
|
+
value?: string;
|
|
106
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Toggle } from './toggle';
|
|
2
|
-
export type { ToggleProps } from './toggle';
|
|
2
|
+
export type { ToggleProps } from './toggle.types';
|
|
@@ -1,43 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { ToggleProps } from './toggle.types';
|
|
2
3
|
import './toggle.scss';
|
|
3
|
-
export interface ToggleProps {
|
|
4
|
-
/**
|
|
5
|
-
* If `true`, the toggle is checked.
|
|
6
|
-
*/
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Custom class name for the container of the component.
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The state of the toggle when it is initially rendered. Use when you do not need to control its state.
|
|
14
|
-
*/
|
|
15
|
-
defaultChecked?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* When `true`, prevents the user from interacting with the switch.
|
|
18
|
-
*/
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The props applied to the input element.
|
|
22
|
-
*/
|
|
23
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
24
|
-
/**
|
|
25
|
-
* The `name` of the `input` element.
|
|
26
|
-
*/
|
|
27
|
-
name?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Callback fired when the state is changed.
|
|
30
|
-
*/
|
|
31
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
32
|
-
/**
|
|
33
|
-
* If `true`, the component is read only and prevent user to change value.
|
|
34
|
-
*/
|
|
35
|
-
readOnly?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* If `true`, the `input` element is required.
|
|
38
|
-
*/
|
|
39
|
-
required?: boolean;
|
|
40
|
-
}
|
|
41
4
|
/**
|
|
42
5
|
* Toggle represents an action that changes a state by clicking on it.
|
|
43
6
|
* They are usually used for actions or options that have an immediate effect on the UI.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface ToggleProps {
|
|
3
|
+
/**
|
|
4
|
+
* If `true`, the toggle is checked.
|
|
5
|
+
*/
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Custom class name for the container of the component.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The state of the toggle when it is initially rendered. Use when you do not need to control its state.
|
|
13
|
+
*/
|
|
14
|
+
defaultChecked?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When `true`, prevents the user from interacting with the switch.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The props applied to the input element.
|
|
21
|
+
*/
|
|
22
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
23
|
+
/**
|
|
24
|
+
* The `name` of the `input` element.
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Callback fired when the state is changed.
|
|
29
|
+
*/
|
|
30
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
31
|
+
/**
|
|
32
|
+
* If `true`, the component is read only and prevent user to change value.
|
|
33
|
+
*/
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If `true`, the `input` element is required.
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ToggleField } from './toggle-field';
|
|
2
|
-
export type { ToggleFieldProps } from './toggle-field';
|
|
2
|
+
export type { ToggleFieldProps } from './toggle-field.types';
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ToggleFieldProps } from './toggle-field.types';
|
|
3
3
|
import './toggle-field.scss';
|
|
4
|
-
export interface ToggleFieldProps extends ToggleProps {
|
|
5
|
-
/**
|
|
6
|
-
* Custom class name for the container of the component.
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The label content.
|
|
11
|
-
*/
|
|
12
|
-
label?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Tooltip to display when the field has label.
|
|
15
|
-
*/
|
|
16
|
-
tooltip?: ReactNode;
|
|
17
|
-
}
|
|
18
4
|
/**
|
|
19
5
|
* The toggle field represents an action that changes a state by clicking on it.
|
|
20
6
|
* Usually used for actions or options that have an immediate effect on the UI and
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { ToggleProps } from '../../internal';
|
|
3
|
+
export interface ToggleFieldProps extends ToggleProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name for the container of the component.
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The label content.
|
|
10
|
+
*/
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip to display when the field has label.
|
|
14
|
+
*/
|
|
15
|
+
tooltip?: ReactNode;
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Pagination } from './pagination';
|
|
2
|
-
export type { PaginationProps } from './pagination
|
|
2
|
+
export type { PaginationProps } from './pagination.types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ItemsPerPageOptionsType } from './pagination
|
|
1
|
+
import type { ItemsPerPageOptionsType } from './pagination.types';
|
|
2
2
|
export declare const DEFAULT_ITEMS_PER_PAGE_OPTIONS: ItemsPerPageOptionsType;
|
|
3
3
|
export declare const PAGINATION_PAGES_LIMIT = 9;
|
|
4
4
|
export declare const PAGINATION_PAGES_BUFFER = 2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PaginationProps } from './pagination
|
|
2
|
+
import type { PaginationProps } from './pagination.types';
|
|
3
3
|
declare const PaginationContext: import("react").Context<PaginationProps | null>;
|
|
4
4
|
export declare function usePaginationContext(): PaginationProps | null;
|
|
5
5
|
export default PaginationContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PaginationProps } from './pagination
|
|
2
|
+
import type { PaginationProps } from './pagination.types';
|
|
3
3
|
import './pagination.scss';
|
|
4
4
|
/**
|
|
5
5
|
* Pagination component to display pagination links and manage the number of items per page
|
|
@@ -5,4 +5,4 @@ export { default as ModalBody } from './modal-body';
|
|
|
5
5
|
export { default as ModalFooter } from './modal-footer';
|
|
6
6
|
export { default as ModalFooterActions } from './modal-footer-actions';
|
|
7
7
|
export { default as ModalCloseButton } from './modal-close-button';
|
|
8
|
-
export type { ModalProps, ModalChildProps, ModalBodyProps } from './modal
|
|
8
|
+
export type { ModalProps, ModalChildProps, ModalBodyProps } from './modal.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ButtonProps } from '../../buttons
|
|
2
|
+
import { ButtonProps } from '../../buttons';
|
|
3
3
|
/**
|
|
4
4
|
* This button is a convenience component that applies the recommended styling for the Cancel button in the
|
|
5
5
|
* modal footer. It wraps the BrButton and sets the type to tertiary and attaches the Modal's onClose handler
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalProps } from './modal
|
|
2
|
+
import type { ModalProps } from './modal.types';
|
|
3
3
|
declare const ModalContext: import("react").Context<ModalProps | null>;
|
|
4
4
|
export declare function useModalContext(): ModalProps | null;
|
|
5
5
|
export default ModalContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalChildProps } from './modal
|
|
2
|
+
import type { ModalChildProps } from './modal.types';
|
|
3
3
|
/**
|
|
4
4
|
* Modal footer actions component is used to render the actions section of the modal dialog footer.
|
|
5
5
|
* You can use `ModalCloseButton` component to render the cancel button which is call `onClose` by default.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalChildProps } from './modal
|
|
2
|
+
import type { ModalChildProps } from './modal.types';
|
|
3
3
|
/**
|
|
4
4
|
* Modal footer component is used to render the footer section of the modal dialog and it is recommended to use
|
|
5
5
|
* the `ModalFooterActions` component to render the actions in the footer section.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalChildProps } from './modal
|
|
2
|
+
import type { ModalChildProps } from './modal.types';
|
|
3
3
|
/**
|
|
4
4
|
* Modal header component is used to render the header section of the modal dialog.
|
|
5
5
|
* If `onClose` is provided to the `Modal` component, then a close button is rendered in the header section.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Tooltip } from './tooltip';
|
|
2
|
-
export type { TooltipProps } from './tooltip';
|
|
2
|
+
export type { TooltipProps } from './tooltip.types';
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TooltipProps } from './tooltip.types';
|
|
3
3
|
import './tooltip.scss';
|
|
4
|
-
export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
-
/**
|
|
6
|
-
* Custom class name for the tooltip container
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The tooltip child has to be a valid React element
|
|
11
|
-
*/
|
|
12
|
-
children: ReactElement;
|
|
13
|
-
/**
|
|
14
|
-
* The tooltip message, it can be string or any valid React node
|
|
15
|
-
*/
|
|
16
|
-
title: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Location of the tooltip, default is 'top'. The placement automatically adjusts if there is not enough space
|
|
19
|
-
* to render in the specified direction
|
|
20
|
-
*/
|
|
21
|
-
placement?: Placement;
|
|
22
|
-
/**
|
|
23
|
-
* By default the tooltip container is attached to the body, turning on this flag will attach it to the container
|
|
24
|
-
* where the tooltip component is used
|
|
25
|
-
*/
|
|
26
|
-
disablePortal?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Specify a custom container (using id or ref) to attach the tooltip to. The tooltip will also use this container to
|
|
29
|
-
* determine the placement of the tooltip
|
|
30
|
-
*/
|
|
31
|
-
portalRoot?: string | HTMLElement | React.MutableRefObject<HTMLElement | null>;
|
|
32
|
-
}
|
|
33
4
|
/**
|
|
34
5
|
* The tooltip component is supposed to display informative text when users hover over or tap an element
|
|
35
6
|
*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/react';
|
|
2
|
+
import React, { ReactNode, ReactElement, HTMLAttributes } from 'react';
|
|
3
|
+
export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name for the tooltip container
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The tooltip child has to be a valid React element
|
|
10
|
+
*/
|
|
11
|
+
children: ReactElement;
|
|
12
|
+
/**
|
|
13
|
+
* The tooltip message, it can be string or any valid React node
|
|
14
|
+
*/
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Location of the tooltip, default is 'top'. The placement automatically adjusts if there is not enough space
|
|
18
|
+
* to render in the specified direction
|
|
19
|
+
*/
|
|
20
|
+
placement?: Placement;
|
|
21
|
+
/**
|
|
22
|
+
* By default the tooltip container is attached to the body, turning on this flag will attach it to the container
|
|
23
|
+
* where the tooltip component is used
|
|
24
|
+
*/
|
|
25
|
+
disablePortal?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Specify a custom container (using id or ref) to attach the tooltip to. The tooltip will also use this container to
|
|
28
|
+
* determine the placement of the tooltip
|
|
29
|
+
*/
|
|
30
|
+
portalRoot?: string | HTMLElement | React.MutableRefObject<HTMLElement | null>;
|
|
31
|
+
}
|