@bloomreach/react-banana-ui 1.8.5 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bloomreach-react-banana-ui.es.js +1951 -1864
- 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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface BaseFieldProps {
|
|
3
|
+
/**
|
|
4
|
+
* Custom class name for the container of this component.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The control element to render as the main content of the field.
|
|
9
|
+
*/
|
|
10
|
+
control: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* If `true`, the field will indicate an error.
|
|
13
|
+
*/
|
|
14
|
+
error?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* If `true`, the field will take up the full width of its container.
|
|
17
|
+
*/
|
|
18
|
+
fullWidth?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The helper text content.
|
|
21
|
+
*/
|
|
22
|
+
helperText?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The label content.
|
|
25
|
+
*/
|
|
26
|
+
label?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* The position of the label.
|
|
29
|
+
* @default 'block-start'
|
|
30
|
+
*/
|
|
31
|
+
labelPosition?: 'block-start' | 'inline-start' | 'inline-end';
|
|
32
|
+
/**
|
|
33
|
+
* The metadata content.
|
|
34
|
+
*/
|
|
35
|
+
metadata?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Tooltip to display when the field has label.
|
|
38
|
+
*/
|
|
39
|
+
tooltip?: ReactNode;
|
|
40
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BaseField } from './base-field';
|
|
2
|
-
export type { BaseFieldProps } from './base-field';
|
|
2
|
+
export type { BaseFieldProps } from './base-field.types';
|
|
@@ -1,109 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BaseInputProps } from './base-input.types';
|
|
2
3
|
import './base-input.scss';
|
|
3
|
-
export interface BaseInputProps {
|
|
4
|
-
/**
|
|
5
|
-
* Automatically adjusts textarea height to match the length of the content within.
|
|
6
|
-
* When `multiline` is `false`, this prop is ignored.
|
|
7
|
-
*/
|
|
8
|
-
autoSize?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Custom class name for the container of this component.
|
|
11
|
-
*/
|
|
12
|
-
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Allow to remove `input` content with clear icon.
|
|
15
|
-
* When `multiline` is `true`, this prop is ignored.
|
|
16
|
-
*/
|
|
17
|
-
clearable?: 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 `input` or `textarea`.
|
|
28
|
-
*/
|
|
29
|
-
error?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* The `id` of the `input` or `textarea` element.
|
|
32
|
-
*/
|
|
33
|
-
id?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Attributes applied to the `input` or `textarea` element, check the link below for more details.
|
|
36
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes
|
|
37
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes
|
|
38
|
-
*/
|
|
39
|
-
inputProps?: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>;
|
|
40
|
-
/**
|
|
41
|
-
* The ref to the `input` or `textarea` element.
|
|
42
|
-
*/
|
|
43
|
-
inputRef?: ForwardedRef<HTMLInputElement> | ForwardedRef<HTMLTextAreaElement>;
|
|
44
|
-
/**
|
|
45
|
-
* Icon or any element displayed at the end of the `input` or `textarea`.
|
|
46
|
-
*/
|
|
47
|
-
leftElement?: ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* The maximum number of text lines to grow when `autoSize` and `multiline` are `true`.
|
|
50
|
-
*/
|
|
51
|
-
maxRows?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The number of visible text lines for the field.
|
|
54
|
-
* When `autoSize` is `false`, this prop behaves as `rows` for `textarea`.
|
|
55
|
-
* Works only when `multiline` is `true`.
|
|
56
|
-
*/
|
|
57
|
-
minRows?: number;
|
|
58
|
-
/**
|
|
59
|
-
* If `true`, a `textarea` element is rendered.
|
|
60
|
-
*/
|
|
61
|
-
multiline?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* The `name` attribute of the `input` or `textarea` element.
|
|
64
|
-
*/
|
|
65
|
-
name?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Callback fired when the `input` or `textarea` is blurred.
|
|
68
|
-
*/
|
|
69
|
-
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
70
|
-
/**
|
|
71
|
-
* Callback fired when the value is changed.
|
|
72
|
-
*/
|
|
73
|
-
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
74
|
-
/**
|
|
75
|
-
* Callback fired when the `input` or `textarea` value length is changed.
|
|
76
|
-
*/
|
|
77
|
-
onCountChange?: (count: number) => void;
|
|
78
|
-
/**
|
|
79
|
-
* Callback fired when the `input` or `textarea` is focused.
|
|
80
|
-
*/
|
|
81
|
-
onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
82
|
-
/**
|
|
83
|
-
* The short hint displayed in the `input` or `textarea` before the user enters a value.
|
|
84
|
-
*/
|
|
85
|
-
placeholder?: string;
|
|
86
|
-
/**
|
|
87
|
-
* If `true`, the `input` or `textarea` will be read-only.
|
|
88
|
-
*/
|
|
89
|
-
readOnly?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* If `true`, the `input` or `textarea` will be required.
|
|
92
|
-
*/
|
|
93
|
-
required?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Icon or any element displayed at the start of the `input` or `textarea`.
|
|
96
|
-
*/
|
|
97
|
-
rightElement?: ReactNode;
|
|
98
|
-
/**
|
|
99
|
-
* The `value` of the `input` or `textarea` element, required for a controlled component.
|
|
100
|
-
*/
|
|
101
|
-
value?: string;
|
|
102
|
-
}
|
|
103
4
|
/**
|
|
104
5
|
* @internal
|
|
105
6
|
* The base input component to enter and edit text.
|
|
106
7
|
* Should be used only by other components and not exposed to the end users.
|
|
107
8
|
*/
|
|
108
|
-
declare const BaseInput:
|
|
9
|
+
declare const BaseInput: import("react").ForwardRefExoticComponent<BaseInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
109
10
|
export default BaseInput;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler, ForwardedRef, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface BaseInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* Automatically adjusts textarea height to match the length of the content within.
|
|
5
|
+
* When `multiline` is `false`, this prop is ignored.
|
|
6
|
+
*/
|
|
7
|
+
autoSize?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Custom class name for the container of this component.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Allow to remove `input` content with clear icon.
|
|
14
|
+
* When `multiline` is `true`, this prop is ignored.
|
|
15
|
+
*/
|
|
16
|
+
clearable?: 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 `input` or `textarea`.
|
|
27
|
+
*/
|
|
28
|
+
error?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The `id` of the `input` or `textarea` element.
|
|
31
|
+
*/
|
|
32
|
+
id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Attributes applied to the `input` or `textarea` element, check the link below for more details.
|
|
35
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes
|
|
36
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes
|
|
37
|
+
*/
|
|
38
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>;
|
|
39
|
+
/**
|
|
40
|
+
* The ref to the `input` or `textarea` element.
|
|
41
|
+
*/
|
|
42
|
+
inputRef?: ForwardedRef<HTMLInputElement> | ForwardedRef<HTMLTextAreaElement>;
|
|
43
|
+
/**
|
|
44
|
+
* Icon or any element displayed at the end of the `input` or `textarea`.
|
|
45
|
+
*/
|
|
46
|
+
leftElement?: ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* The maximum number of text lines to grow when `autoSize` and `multiline` are `true`.
|
|
49
|
+
*/
|
|
50
|
+
maxRows?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The number of visible text lines for the field.
|
|
53
|
+
* When `autoSize` is `false`, this prop behaves as `rows` for `textarea`.
|
|
54
|
+
* Works only when `multiline` is `true`.
|
|
55
|
+
*/
|
|
56
|
+
minRows?: number;
|
|
57
|
+
/**
|
|
58
|
+
* If `true`, a `textarea` element is rendered.
|
|
59
|
+
*/
|
|
60
|
+
multiline?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The `name` attribute of the `input` or `textarea` element.
|
|
63
|
+
*/
|
|
64
|
+
name?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Callback fired when the `input` or `textarea` is blurred.
|
|
67
|
+
*/
|
|
68
|
+
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
69
|
+
/**
|
|
70
|
+
* Callback fired when the value is changed.
|
|
71
|
+
*/
|
|
72
|
+
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
73
|
+
/**
|
|
74
|
+
* Callback fired when the `input` or `textarea` value length is changed.
|
|
75
|
+
*/
|
|
76
|
+
onCountChange?: (count: number) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Callback fired when the `input` or `textarea` is focused.
|
|
79
|
+
*/
|
|
80
|
+
onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
81
|
+
/**
|
|
82
|
+
* The short hint displayed in the `input` or `textarea` before the user enters a value.
|
|
83
|
+
*/
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
/**
|
|
86
|
+
* If `true`, the `input` or `textarea` will be read-only.
|
|
87
|
+
*/
|
|
88
|
+
readOnly?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* If `true`, the `input` or `textarea` will be required.
|
|
91
|
+
*/
|
|
92
|
+
required?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Icon or any element displayed at the start of the `input` or `textarea`.
|
|
95
|
+
*/
|
|
96
|
+
rightElement?: ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* The `value` of the `input` or `textarea` element, required for a controlled component.
|
|
99
|
+
*/
|
|
100
|
+
value?: string;
|
|
101
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BaseInput } from './base-input';
|
|
2
|
-
export type { BaseInputProps } from './base-input';
|
|
2
|
+
export type { BaseInputProps } from './base-input.types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CheckboxProps } from './checkbox.types';
|
|
3
|
+
import './checkbox.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Checkboxes are used to pick an option when one or more options can be chosen.
|
|
6
|
+
* A single checkbox can be used representing a singular option,
|
|
7
|
+
* for the purpose of toggling an element between an active and inactive state.
|
|
8
|
+
*
|
|
9
|
+
* ### Usage
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { useState } from 'react';
|
|
13
|
+
* import { Checkbox } from '@bloomreach/react-banana-ui';
|
|
14
|
+
*
|
|
15
|
+
* export default function MyCustomComponent() {
|
|
16
|
+
* const [checked, setChecked] = useState(true);
|
|
17
|
+
*
|
|
18
|
+
* return <Checkbox {...args} checked onChange((event) => setChecked(event.target.checked)) />
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default Checkbox;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { type Story } from './checkbox.stories';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const SelectedUncontrolled: Story;
|
|
6
|
+
export declare const SelectedControlled: Story;
|
|
7
|
+
export declare const Unselected: Story;
|
|
8
|
+
export declare const Indeterminate: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Checkbox from './checkbox';
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export type Story = StoryObj<typeof Checkbox>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const Controlled: Story;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
/**
|
|
4
|
+
* Custom class name for the container of the component.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* If `true`, the checkbox is checked.
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The state of the checkbox when it is initially rendered. Use when you do not need to control its state.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
defaultChecked?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, prevents the user from interacting with the switch.
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Callback fired when the state is changed.
|
|
23
|
+
*/
|
|
24
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the component is read only and prevent user to change value.
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, the `input` element is required.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
required?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If `true`, the checkbox will be in indeterminate state.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
indeterminate?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The props applied to the input element.
|
|
42
|
+
*/
|
|
43
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CheckboxFieldProps } from './checkbox-field.types';
|
|
3
|
+
import './checkbox-field.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Checkbox fields are used to pick an option when one or more options can be chosen.
|
|
6
|
+
* A single checkbox field can be used representing a singular option,
|
|
7
|
+
* for the purpose of toggling an element between an active and inactive state.
|
|
8
|
+
*
|
|
9
|
+
* ### Usage
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { useState } from 'react';
|
|
13
|
+
* import { CheckboxField } from '@bloomreach/react-banana-ui';
|
|
14
|
+
*
|
|
15
|
+
* export default function MyCustomComponent() {
|
|
16
|
+
* const [checked, setChecked] = useState(true);
|
|
17
|
+
*
|
|
18
|
+
* return <CheckboxField checked={checked} onChange((event) => setChecked(event.target.checked)) />
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const CheckboxField: import("react").ForwardRefExoticComponent<CheckboxFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default CheckboxField;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { type Story } from './checkbox-field.stories';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const WithLabelAndTooltip: Story;
|
|
6
|
+
export declare const Uncontrolled: Story;
|
|
7
|
+
export declare const Controlled: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import CheckboxField from './checkbox-field';
|
|
3
|
+
declare const meta: Meta<typeof CheckboxField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export type Story = StoryObj<typeof CheckboxField>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithLabelAndTooltip: Story;
|
|
8
|
+
export declare const Controlled: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const ReadOnly: Story;
|
|
11
|
+
export declare const Indeterminate: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { CheckboxProps } from '../checkbox';
|
|
3
|
+
export interface CheckboxFieldProps extends CheckboxProps {
|
|
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,24 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FieldLabelProps } from './field-label.types';
|
|
2
3
|
import './field-label.scss';
|
|
3
|
-
export interface FieldLabelProps {
|
|
4
|
-
/**
|
|
5
|
-
* Custom class name for the container of the component.
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The content of the component.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* The `id` of the element the label is associated with.
|
|
14
|
-
*/
|
|
15
|
-
htmlFor?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The size of the label.
|
|
18
|
-
* @default 'bold'
|
|
19
|
-
*/
|
|
20
|
-
view?: 'normal' | 'bold';
|
|
21
|
-
}
|
|
22
4
|
/**
|
|
23
5
|
* @internal
|
|
24
6
|
* The `FieldLabel` component renders a label for a form field like `input`, `select`, `textarea`, etc.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FieldLabelProps {
|
|
3
|
+
/**
|
|
4
|
+
* Custom class name for the container of the component.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The content of the component.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The `id` of the element the label is associated with.
|
|
13
|
+
*/
|
|
14
|
+
htmlFor?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The size of the label.
|
|
17
|
+
* @default 'bold'
|
|
18
|
+
*/
|
|
19
|
+
view?: 'normal' | 'bold';
|
|
20
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as FieldLabel } from './field-label';
|
|
2
|
-
export type { FieldLabelProps } from './field-label';
|
|
2
|
+
export type { FieldLabelProps } from './field-label.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as InputField } from './input-field';
|
|
2
|
-
export type { InputFieldProps } from './input-field';
|
|
2
|
+
export type { InputFieldProps } from './input-field.types';
|
|
@@ -1,91 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Custom class name for the container of this component.
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Allow to remove `input` content with clear icon.
|
|
9
|
-
*/
|
|
10
|
-
clearable?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The default value. Use when the component is not controlled.
|
|
13
|
-
*/
|
|
14
|
-
defaultValue?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If `true`, the field is disabled.
|
|
17
|
-
*/
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If `true`, the ``field` will indicate an error and set the `aria-invalid` attribute for `input`.
|
|
21
|
-
*/
|
|
22
|
-
error?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* If `true`, the field will take up the full width of its container.
|
|
25
|
-
*/
|
|
26
|
-
fullWidth?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The helper text content.
|
|
29
|
-
*/
|
|
30
|
-
helperText?: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* The `id` of the `input` element.
|
|
33
|
-
*/
|
|
34
|
-
id?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Attributes applied to the `input` element, check the link below for more details.
|
|
37
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes
|
|
38
|
-
*/
|
|
39
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
40
|
-
/**
|
|
41
|
-
* The label content.
|
|
42
|
-
*/
|
|
43
|
-
label?: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Icon or any element displayed at the end of the `input`.
|
|
46
|
-
*/
|
|
47
|
-
leftElement?: React.ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* The `name` attribute of the `input` element.
|
|
50
|
-
*/
|
|
51
|
-
name?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Callback fired when the `input` is blurred.
|
|
54
|
-
*/
|
|
55
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
56
|
-
/**
|
|
57
|
-
* Callback fired when the value is changed.
|
|
58
|
-
*/
|
|
59
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
60
|
-
/**
|
|
61
|
-
* Callback fired when the `input` is focused.
|
|
62
|
-
*/
|
|
63
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
64
|
-
/**
|
|
65
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
66
|
-
*/
|
|
67
|
-
placeholder?: string;
|
|
68
|
-
/**
|
|
69
|
-
* If `true`, the `input` element will be read-only.
|
|
70
|
-
*/
|
|
71
|
-
readOnly?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* If `true`, the `input` element will be required.
|
|
74
|
-
*/
|
|
75
|
-
required?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Icon or any element displayed at the start of the `input`.
|
|
78
|
-
*/
|
|
79
|
-
rightElement?: React.ReactNode;
|
|
80
|
-
/**
|
|
81
|
-
* Tooltip to display when the field has label.
|
|
82
|
-
*/
|
|
83
|
-
tooltip?: ReactNode;
|
|
84
|
-
/**
|
|
85
|
-
* The `value` of the `input` element, required for a controlled component.
|
|
86
|
-
*/
|
|
87
|
-
value?: string;
|
|
88
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { InputFieldProps } from './input-field.types';
|
|
89
3
|
/**
|
|
90
4
|
* The input field includes a label, a helper text and an input field where users can type one line of text.
|
|
91
5
|
* The input field component typically appears in forms and dialogs.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface InputFieldProps {
|
|
3
|
+
/**
|
|
4
|
+
* Custom class name for the container of this component.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Allow to remove `input` content with clear icon.
|
|
9
|
+
*/
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The default value. Use when the component is not controlled.
|
|
13
|
+
*/
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
/**
|
|
16
|
+
* If `true`, the field is disabled.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, the ``field` will indicate an error and set the `aria-invalid` attribute for `input`.
|
|
21
|
+
*/
|
|
22
|
+
error?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, the field will take up the full width of its container.
|
|
25
|
+
*/
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The helper text content.
|
|
29
|
+
*/
|
|
30
|
+
helperText?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The `id` of the `input` element.
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Attributes applied to the `input` element, check the link below for more details.
|
|
37
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes
|
|
38
|
+
*/
|
|
39
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
40
|
+
/**
|
|
41
|
+
* The label content.
|
|
42
|
+
*/
|
|
43
|
+
label?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Icon or any element displayed at the end of the `input`.
|
|
46
|
+
*/
|
|
47
|
+
leftElement?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* The `name` attribute of the `input` element.
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Callback fired when the `input` is blurred.
|
|
54
|
+
*/
|
|
55
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
56
|
+
/**
|
|
57
|
+
* Callback fired when the value is changed.
|
|
58
|
+
*/
|
|
59
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
60
|
+
/**
|
|
61
|
+
* Callback fired when the `input` is focused.
|
|
62
|
+
*/
|
|
63
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
64
|
+
/**
|
|
65
|
+
* The short hint displayed in the `input` before the user enters a value.
|
|
66
|
+
*/
|
|
67
|
+
placeholder?: string;
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, the `input` element will be read-only.
|
|
70
|
+
*/
|
|
71
|
+
readOnly?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* If `true`, the `input` element will be required.
|
|
74
|
+
*/
|
|
75
|
+
required?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Icon or any element displayed at the start of the `input`.
|
|
78
|
+
*/
|
|
79
|
+
rightElement?: React.ReactNode;
|
|
80
|
+
/**
|
|
81
|
+
* Tooltip to display when the field has label.
|
|
82
|
+
*/
|
|
83
|
+
tooltip?: ReactNode;
|
|
84
|
+
/**
|
|
85
|
+
* The `value` of the `input` element, required for a controlled component.
|
|
86
|
+
*/
|
|
87
|
+
value?: string;
|
|
88
|
+
}
|