@redis-ui/components 42.8.0 → 43.2.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/AutoCompleteSelect/AutoCompleteSelect.cjs +7 -1
- package/dist/AutoCompleteSelect/AutoCompleteSelect.js +7 -1
- package/dist/AutoCompleteSelect/hooks/useAutoCompleteSelect.cjs +7 -1
- package/dist/AutoCompleteSelect/hooks/useAutoCompleteSelect.d.ts +8 -1
- package/dist/AutoCompleteSelect/hooks/useAutoCompleteSelect.js +7 -1
- package/dist/BoxSelectionGroup/components/Item/components/BoxStateIndicator/BoxStateIndicator.cjs +8 -4
- package/dist/BoxSelectionGroup/components/Item/components/BoxStateIndicator/BoxStateIndicator.js +8 -4
- package/dist/BoxSelectionGroup/components/Item/components/Compose/Compose.style.cjs +18 -4
- package/dist/BoxSelectionGroup/components/Item/components/Compose/Compose.style.js +18 -4
- package/dist/BoxSelectionGroup/hooks/useBoxSelectionGroup.cjs +3 -1
- package/dist/BoxSelectionGroup/hooks/useBoxSelectionGroup.js +3 -1
- package/dist/Button/Button.style.cjs +4 -1
- package/dist/Button/Button.style.js +4 -1
- package/dist/Button/Button.style.utils.cjs +16 -1
- package/dist/Button/Button.style.utils.js +16 -1
- package/dist/Button/Button.types.cjs +1 -1
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/Button.types.js +1 -1
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.cjs +59 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.d.ts +4 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.js +57 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.style.cjs +40 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.style.d.ts +8 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.style.js +38 -0
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.types.d.ts +5 -0
- package/dist/Button/TextButton/TextButton.style.cjs +4 -1
- package/dist/Button/TextButton/TextButton.style.js +4 -1
- package/dist/Button/TextButton/TextButton.types.cjs +1 -1
- package/dist/Button/TextButton/TextButton.types.d.ts +1 -1
- package/dist/Button/TextButton/TextButton.types.js +1 -1
- package/dist/Button/index.d.ts +2 -0
- package/dist/Checkbox/components/Label/Label.style.cjs +15 -3
- package/dist/Checkbox/components/Label/Label.style.js +15 -3
- package/dist/Chip/components/CloseButton/CloseButton.cjs +3 -1
- package/dist/Chip/components/CloseButton/CloseButton.js +3 -1
- package/dist/Chip/components/Compose/Compose.style.cjs +4 -1
- package/dist/Chip/components/Compose/Compose.style.js +4 -1
- package/dist/Drawer/components/Description/Description.cjs +3 -1
- package/dist/Drawer/components/Description/Description.js +3 -1
- package/dist/Helpers/contexts/Popper/PopperCollisionBoundaryManager.cjs +3 -1
- package/dist/Helpers/contexts/Popper/PopperCollisionBoundaryManager.js +3 -1
- package/dist/Helpers/contexts/PrimitiveContextState.cjs +28 -16
- package/dist/Helpers/contexts/PrimitiveContextState.js +28 -16
- package/dist/Helpers/contexts/SharedId.context.cjs +9 -5
- package/dist/Helpers/contexts/SharedId.context.js +9 -5
- package/dist/Helpers/css.utils.cjs +18 -4
- package/dist/Helpers/css.utils.d.ts +15 -3
- package/dist/Helpers/css.utils.js +18 -4
- package/dist/Helpers/hooks/useScrollable.cjs +3 -1
- package/dist/Helpers/hooks/useScrollable.js +3 -1
- package/dist/Helpers/react.utils.cjs +6 -2
- package/dist/Helpers/react.utils.js +6 -2
- package/dist/HighlightedIcon/HighlightedIcon.cjs +26 -0
- package/dist/HighlightedIcon/HighlightedIcon.d.ts +3 -0
- package/dist/HighlightedIcon/HighlightedIcon.js +26 -0
- package/dist/HighlightedIcon/HighlightedIcon.style.cjs +49 -0
- package/dist/HighlightedIcon/HighlightedIcon.style.d.ts +5 -0
- package/dist/HighlightedIcon/HighlightedIcon.style.js +47 -0
- package/dist/HighlightedIcon/HighlightedIcon.types.d.ts +8 -0
- package/dist/HighlightedIcon/index.d.ts +3 -0
- package/dist/Inputs/QuantityCounter/components/InputGroup/components/ValueLabel/ValueLabel.cjs +9 -5
- package/dist/Inputs/QuantityCounter/components/InputGroup/components/ValueLabel/ValueLabel.js +9 -5
- package/dist/Inputs/components/Compose/Compose.style.cjs +29 -6
- package/dist/Inputs/components/Compose/Compose.style.js +29 -6
- package/dist/Inputs/hooks/numericInput/numericInput.utils.cjs +12 -4
- package/dist/Inputs/hooks/numericInput/numericInput.utils.js +12 -4
- package/dist/Inputs/hooks/numericInput/useNumericInput.cjs +15 -3
- package/dist/Inputs/hooks/numericInput/useNumericInput.js +15 -3
- package/dist/Loader/Loader.cjs +1 -0
- package/dist/Loader/Loader.js +1 -0
- package/dist/Menu/components/Content/components/Item/Components/Compose/Compose.style.cjs +19 -4
- package/dist/Menu/components/Content/components/Item/Components/Compose/Compose.style.js +19 -4
- package/dist/Menu/components/Content/components/Label/components/Compose/Compose.style.cjs +4 -1
- package/dist/Menu/components/Content/components/Label/components/Compose/Compose.style.js +4 -1
- package/dist/Modal/components/Content/components/Compose/Compose.cjs +3 -1
- package/dist/Modal/components/Content/components/Compose/Compose.js +3 -1
- package/dist/Modal/components/Content/components/Description/Description.cjs +3 -1
- package/dist/Modal/components/Content/components/Description/Description.js +3 -1
- package/dist/MultiSelect/components/Compose/hooks/useMultiSelectContextApi.cjs +3 -1
- package/dist/MultiSelect/components/Compose/hooks/useMultiSelectContextApi.js +3 -1
- package/dist/MultiSelect/components/Trigger/components/MultiValue/MultiValue.cjs +3 -1
- package/dist/MultiSelect/components/Trigger/components/MultiValue/MultiValue.js +3 -1
- package/dist/Overflow/Overflow.cjs +3 -1
- package/dist/Overflow/Overflow.js +3 -1
- package/dist/Overflow/Overflow.utils.cjs +15 -6
- package/dist/Overflow/Overflow.utils.js +15 -6
- package/dist/Overflow/components/OverflowContainer/OverflowContainer.cjs +3 -1
- package/dist/Overflow/components/OverflowContainer/OverflowContainer.js +3 -1
- package/dist/Pagination/components/PageSizeSelect.cjs +3 -1
- package/dist/Pagination/components/PageSizeSelect.js +3 -1
- package/dist/Popover/components/Content/Content.cjs +3 -1
- package/dist/Popover/components/Content/Content.js +3 -1
- package/dist/Popover/components/Content/components/Footer/Footer.cjs +3 -1
- package/dist/Popover/components/Content/components/Footer/Footer.js +3 -1
- package/dist/RadioGroup/components/Item/components/Label/Label.style.cjs +15 -3
- package/dist/RadioGroup/components/Item/components/Label/Label.style.js +15 -3
- package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.cjs +3 -1
- package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.js +3 -1
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.cjs +3 -1
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.js +3 -1
- package/dist/Select/components/Content/components/Option/components/Compose/Compose.style.cjs +16 -4
- package/dist/Select/components/Content/components/Option/components/Compose/Compose.style.js +16 -4
- package/dist/Select/components/Content/components/OptionList/OptionList.cjs +6 -4
- package/dist/Select/components/Content/components/OptionList/OptionList.js +6 -4
- package/dist/Select/components/Content/components/OptionList/Virtual.cjs +9 -5
- package/dist/Select/components/Content/components/OptionList/Virtual.js +9 -5
- package/dist/Select/components/Context/hooks/useSearch.cjs +3 -1
- package/dist/Select/components/Context/hooks/useSearch.js +3 -1
- package/dist/Select/components/Trigger/components/Compose/Compose.style.cjs +33 -7
- package/dist/Select/components/Trigger/components/Compose/Compose.style.js +33 -7
- package/dist/SideBar/components/Item/Item.style.cjs +14 -3
- package/dist/SideBar/components/Item/Item.style.js +14 -3
- package/dist/Skeleton/components/Circle/Circle.cjs +1 -1
- package/dist/Skeleton/components/Circle/Circle.js +1 -1
- package/dist/Skeleton/components/Square/Square.cjs +1 -1
- package/dist/Skeleton/components/Square/Square.js +1 -1
- package/dist/Slider/components/Label/Compose/Compose.cjs +3 -1
- package/dist/Slider/components/Label/Compose/Compose.js +3 -1
- package/dist/Slider/components/Mark/Compose/Compose.cjs +3 -1
- package/dist/Slider/components/Mark/Compose/Compose.js +3 -1
- package/dist/Slider/hooks/useOffset.cjs +3 -1
- package/dist/Slider/hooks/useOffset.js +3 -1
- package/dist/Stepper/Stepper.cjs +14 -5
- package/dist/Stepper/Stepper.d.ts +2 -0
- package/dist/Stepper/Stepper.js +14 -5
- package/dist/Stepper/Stepper.utils.cjs +12 -0
- package/dist/Stepper/Stepper.utils.d.ts +2 -0
- package/dist/Stepper/Stepper.utils.js +12 -0
- package/dist/Stepper/components/Compose/Compose.d.ts +1 -0
- package/dist/Stepper/components/Step/Step.cjs +2 -0
- package/dist/Stepper/components/Step/Step.d.ts +1 -0
- package/dist/Stepper/components/Step/Step.js +2 -0
- package/dist/Stepper/components/Step/components/Compose/Compose.cjs +5 -10
- package/dist/Stepper/components/Step/components/Compose/Compose.js +5 -10
- package/dist/Stepper/components/Step/components/Separator/Separator.cjs +15 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.d.ts +3 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.js +15 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.style.cjs +24 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.style.d.ts +1 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.style.js +22 -0
- package/dist/Stepper/components/Step/components/Separator/Separator.types.d.ts +5 -0
- package/dist/Stepper/hooks/useStepperInteractive.cjs +12 -4
- package/dist/Stepper/hooks/useStepperInteractive.js +12 -4
- package/dist/Switch/components/Switcher/Switcher.cjs +3 -1
- package/dist/Switch/components/Switcher/Switcher.js +3 -1
- package/dist/Switch/components/Switcher/Switcher.style.cjs +31 -8
- package/dist/Switch/components/Switcher/Switcher.style.js +31 -8
- package/dist/Tabs/components/TabBar/components/Trigger/components/Marker/Marker.style.cjs +24 -5
- package/dist/Tabs/components/TabBar/components/Trigger/components/Marker/Marker.style.js +24 -5
- package/dist/Tabs/components/TabBar/components/Trigger/components/Tab/Tab.style.cjs +24 -5
- package/dist/Tabs/components/TabBar/components/Trigger/components/Tab/Tab.style.js +24 -5
- package/dist/ThemeModeSwitch/useThemeModeSwitch.cjs +6 -2
- package/dist/ThemeModeSwitch/useThemeModeSwitch.js +6 -2
- package/dist/Toast/core/content.helper.cjs +8 -4
- package/dist/Toast/core/content.helper.js +8 -4
- package/dist/Tooltip/components/Content/Content.cjs +3 -1
- package/dist/Tooltip/components/Content/Content.js +3 -1
- package/dist/TreeView/TreeView.cjs +3 -1
- package/dist/TreeView/TreeView.js +3 -1
- package/dist/TreeView/components/TreeItem/components/Compose/Compose.cjs +6 -4
- package/dist/TreeView/components/TreeItem/components/Compose/Compose.js +6 -4
- package/dist/Typography/Typography.types.cjs +4 -0
- package/dist/Typography/Typography.types.d.ts +2 -1
- package/dist/Typography/Typography.types.js +4 -0
- package/dist/index.cjs +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +98 -90
- package/package.json +10 -9
- package/skills/redis-ui-components/SKILL.md +126 -0
- package/skills/redis-ui-components/references/ActionIconButton.md +96 -0
- package/skills/redis-ui-components/references/AppBar.md +161 -0
- package/skills/redis-ui-components/references/AppSelectionMenu.md +184 -0
- package/skills/redis-ui-components/references/AutoCompleteSelect.md +193 -0
- package/skills/redis-ui-components/references/Badge.md +77 -0
- package/skills/redis-ui-components/references/Banner.md +563 -0
- package/skills/redis-ui-components/references/BoxSelectionGroup.md +487 -0
- package/skills/redis-ui-components/references/Breadcrumbs.md +214 -0
- package/skills/redis-ui-components/references/Button.md +169 -0
- package/skills/redis-ui-components/references/ButtonGroup.md +126 -0
- package/skills/redis-ui-components/references/Card.md +56 -0
- package/skills/redis-ui-components/references/Checkbox.md +171 -0
- package/skills/redis-ui-components/references/Chip.md +154 -0
- package/skills/redis-ui-components/references/ChipList.md +307 -0
- package/skills/redis-ui-components/references/CopyToClipboardButton.md +47 -0
- package/skills/redis-ui-components/references/CountryFlag.md +57 -0
- package/skills/redis-ui-components/references/Drawer.md +298 -0
- package/skills/redis-ui-components/references/Filters.md +162 -0
- package/skills/redis-ui-components/references/FlexDivider.md +152 -0
- package/skills/redis-ui-components/references/FlexGroup.md +149 -0
- package/skills/redis-ui-components/references/FlexItem.md +58 -0
- package/skills/redis-ui-components/references/FlexSplit.md +37 -0
- package/skills/redis-ui-components/references/FormField.md +678 -0
- package/skills/redis-ui-components/references/IconButton.md +63 -0
- package/skills/redis-ui-components/references/Input.md +295 -0
- package/skills/redis-ui-components/references/KeyValueList.md +501 -0
- package/skills/redis-ui-components/references/Label.md +238 -0
- package/skills/redis-ui-components/references/Link.md +402 -0
- package/skills/redis-ui-components/references/Loader.md +100 -0
- package/skills/redis-ui-components/references/Menu.md +988 -0
- package/skills/redis-ui-components/references/MidBar.md +358 -0
- package/skills/redis-ui-components/references/Modal.md +525 -0
- package/skills/redis-ui-components/references/MoreInfoIcon.md +119 -0
- package/skills/redis-ui-components/references/MultiSelect.md +558 -0
- package/skills/redis-ui-components/references/NumericInput.md +322 -0
- package/skills/redis-ui-components/references/Overflow.md +127 -0
- package/skills/redis-ui-components/references/Pagination.md +151 -0
- package/skills/redis-ui-components/references/PasswordInput.md +262 -0
- package/skills/redis-ui-components/references/Popover.md +868 -0
- package/skills/redis-ui-components/references/ProfileIcon.md +65 -0
- package/skills/redis-ui-components/references/ProgressBar.md +103 -0
- package/skills/redis-ui-components/references/QuantityCounter.md +555 -0
- package/skills/redis-ui-components/references/RadioGroup.md +265 -0
- package/skills/redis-ui-components/references/ScreenReaderAnnounce.md +147 -0
- package/skills/redis-ui-components/references/SearchBar.md +242 -0
- package/skills/redis-ui-components/references/SearchInput.md +213 -0
- package/skills/redis-ui-components/references/Section.md +349 -0
- package/skills/redis-ui-components/references/Select.md +517 -0
- package/skills/redis-ui-components/references/SideBar.md +468 -0
- package/skills/redis-ui-components/references/Slider.md +398 -0
- package/skills/redis-ui-components/references/Stepper.md +288 -0
- package/skills/redis-ui-components/references/Switch.md +193 -0
- package/skills/redis-ui-components/references/Tabs.md +383 -0
- package/skills/redis-ui-components/references/TextArea.md +139 -0
- package/skills/redis-ui-components/references/TextButton.md +217 -0
- package/skills/redis-ui-components/references/Toast.md +399 -0
- package/skills/redis-ui-components/references/ToggleButton.md +163 -0
- package/skills/redis-ui-components/references/Tooltip.md +636 -0
- package/skills/redis-ui-components/references/Typography.md +323 -0
package/dist/index.js
CHANGED
|
@@ -1106,21 +1106,22 @@ import { default as default13 } from "./Button/ActionIconButton/ActionIconButton
|
|
|
1106
1106
|
import * as ActionIconButton_style from "./Button/ActionIconButton/ActionIconButton.style.js";
|
|
1107
1107
|
import { default as default14 } from "./Button/ToggleButton/ToggleButton.js";
|
|
1108
1108
|
import * as ToggleButton_style from "./Button/ToggleButton/ToggleButton.style.js";
|
|
1109
|
+
import { default as default15 } from "./Button/CopyToClipboardButton/CopyToClipboardButton.js";
|
|
1109
1110
|
import { buttonSizes, buttonVariants } from "./Button/Button.types.js";
|
|
1110
1111
|
import { textButtonVariants } from "./Button/TextButton/TextButton.types.js";
|
|
1111
1112
|
import { iconButtonSizes } from "./Button/IconButton/IconButton.types.js";
|
|
1112
1113
|
import { actionIconButtonSizes, buttonWithIconVariants } from "./Button/ActionIconButton/ActionIconButton.types.js";
|
|
1113
|
-
import { default as
|
|
1114
|
-
import { default as
|
|
1115
|
-
import { default as
|
|
1116
|
-
import { default as
|
|
1114
|
+
import { default as default16 } from "./ButtonGroup/ButtonGroup.js";
|
|
1115
|
+
import { default as default17 } from "./Card/Card.js";
|
|
1116
|
+
import { default as default18 } from "./Checkbox/Checkbox.js";
|
|
1117
|
+
import { default as default19 } from "./Chip/Chip.js";
|
|
1117
1118
|
import { ChipContainer } from "./Chip/components/Compose/Compose.style.js";
|
|
1118
|
-
import { default as
|
|
1119
|
-
import { default as
|
|
1120
|
-
import { default as
|
|
1121
|
-
import { default as
|
|
1122
|
-
import { default as
|
|
1123
|
-
import { default as
|
|
1119
|
+
import { default as default20 } from "./ChipList/ChipList.js";
|
|
1120
|
+
import { default as default21 } from "./CountryFlag/CountryFlag.js";
|
|
1121
|
+
import { default as default22 } from "./DatePicker/DatePicker.js";
|
|
1122
|
+
import { default as default23 } from "./DatePicker/RangeDatePicker.js";
|
|
1123
|
+
import { default as default24 } from "./Drawer/Drawer.js";
|
|
1124
|
+
import { default as default25 } from "./Filters/Filters.js";
|
|
1124
1125
|
import { childrenToString, combineHandlers, forwardRefWithGenerics, handlePreventDefault, handleStopPropagation, isFragmentElement, isTextualNode, memoWithGenerics } from "./Helpers/react.utils.js";
|
|
1125
1126
|
import { generateId, useGeneratedId } from "./Helpers/generateId.js";
|
|
1126
1127
|
import { debounce } from "./Helpers/debounce.js";
|
|
@@ -1131,65 +1132,68 @@ import { SelfContained } from "./Helpers/SelfContained.js";
|
|
|
1131
1132
|
import { RestylableElement } from "./Helpers/RestylableElement.js";
|
|
1132
1133
|
import { PopperProvider, usePopperContext } from "./Helpers/contexts/Popper/Popper.context.js";
|
|
1133
1134
|
import { useScrollable } from "./Helpers/hooks/useScrollable.js";
|
|
1134
|
-
import { default as
|
|
1135
|
-
import
|
|
1136
|
-
import { default as default27 } from "./Inputs/
|
|
1137
|
-
import { default as default28 } from "./Inputs/
|
|
1138
|
-
import { default as default29 } from "./Inputs/
|
|
1139
|
-
import { default as default30 } from "./Inputs/
|
|
1135
|
+
import { default as default26 } from "./HighlightedIcon/HighlightedIcon.js";
|
|
1136
|
+
import * as HighlightedIcon_style from "./HighlightedIcon/HighlightedIcon.style.js";
|
|
1137
|
+
import { default as default27 } from "./Inputs/Input/Input.js";
|
|
1138
|
+
import { default as default28 } from "./Inputs/NumericInput/NumericInput.js";
|
|
1139
|
+
import { default as default29 } from "./Inputs/PasswordInput/PasswordInput.js";
|
|
1140
|
+
import { default as default30 } from "./Inputs/SearchInput/SearchInput.js";
|
|
1141
|
+
import { default as default31 } from "./Inputs/TextArea/TextArea.js";
|
|
1142
|
+
import { default as default32 } from "./Inputs/QuantityCounter/QuantityCounter.js";
|
|
1140
1143
|
import { getClosestDivisibleNumber } from "./Inputs/hooks/numericInput/numericInput.utils.js";
|
|
1141
1144
|
import { ContextProvider, useInputValueApi, useInputValueProps } from "./Inputs/components/Context/InputValue.context.js";
|
|
1142
1145
|
import { ErrorContentProvider, FieldDisabledProvider, FieldDisabledTransProvider, useErrorContent, useFieldDisabled } from "./Inputs/components/Context/Field.context.js";
|
|
1143
|
-
import { default as
|
|
1146
|
+
import { default as default33 } from "./FormField/FormField.js";
|
|
1144
1147
|
import { FieldAdditionTextIdProvider, FieldAdditionTextIdTransProvider, FieldReadonlyProvider, FieldReadonlyTransProvider, FieldRequiredProvider, FieldRequiredTransProvider, FieldStatusProvider, FieldStatusTransProvider, useFieldAdditionTextId, useFieldReadonly, useFieldRequired, useFieldStatus } from "./FormField/FormField.context.js";
|
|
1145
1148
|
import { KeyValueList } from "./KeyValueList/KeyValueList.js";
|
|
1146
1149
|
import { useKeyValueList } from "./KeyValueList/hooks/useKeyValueList.js";
|
|
1147
|
-
import { default as
|
|
1150
|
+
import { default as default34 } from "./Label/Label.js";
|
|
1148
1151
|
import { FlexItem } from "./Layouts/FlexItem/FlexItem.js";
|
|
1149
1152
|
import { FlexGroup } from "./Layouts/FlexGroup/FlexGroup.js";
|
|
1150
1153
|
import { FlexSplit } from "./Layouts/FlexSplit/FlexSplit.js";
|
|
1151
1154
|
import { FlexDivider } from "./Layouts/FlexDivider/FlexDivider.js";
|
|
1152
|
-
import { default as
|
|
1155
|
+
import { default as default35 } from "./Link/Link.js";
|
|
1153
1156
|
import { LinkStyler } from "./Link/LinkStyler/LinkStyler.js";
|
|
1154
|
-
import { default as
|
|
1155
|
-
import { default as
|
|
1156
|
-
import { default as
|
|
1157
|
-
import { default as
|
|
1158
|
-
import { default as
|
|
1159
|
-
import { default as
|
|
1157
|
+
import { default as default36 } from "./Loader/Loader.js";
|
|
1158
|
+
import { default as default37 } from "./Menu/Menu.js";
|
|
1159
|
+
import { default as default38 } from "./MidBar/MidBar.js";
|
|
1160
|
+
import { default as default39 } from "./Modal/Modal.js";
|
|
1161
|
+
import { default as default40 } from "./MoreInfoIcon/MoreInfoIcon.js";
|
|
1162
|
+
import { default as default41 } from "./MultiSelect/MultiSelect.js";
|
|
1160
1163
|
import { useMultiSelectContext } from "./MultiSelect/components/Context/Context.js";
|
|
1161
1164
|
import { Overflow } from "./Overflow/Overflow.js";
|
|
1162
1165
|
import { usePaginationContext } from "./Pagination/Pagination.context.js";
|
|
1163
1166
|
import { Pagination } from "./Pagination/Pagination.js";
|
|
1164
|
-
import { default as
|
|
1165
|
-
import { default as
|
|
1167
|
+
import { default as default42 } from "./Popover/Popover.js";
|
|
1168
|
+
import { default as default43 } from "./RadioGroup/RadioGroup.js";
|
|
1166
1169
|
import { ScreenReaderAnnounce } from "./ScreenReaderAnnounce/ScreenReaderAnnounce.js";
|
|
1167
|
-
import { default as
|
|
1168
|
-
import { default as
|
|
1169
|
-
import { default as
|
|
1170
|
-
import { default as
|
|
1170
|
+
import { default as default44 } from "./SearchBar/SearchBar.js";
|
|
1171
|
+
import { default as default45 } from "./Section/Section.js";
|
|
1172
|
+
import { default as default46 } from "./Section/components/Header/components/CategoryValueList/CategoryValueList.js";
|
|
1173
|
+
import { default as default47 } from "./Select/Select.js";
|
|
1171
1174
|
import { useSelectContext } from "./Select/components/Context/Context.js";
|
|
1172
|
-
import { default as
|
|
1173
|
-
import { default as
|
|
1174
|
-
import { default as
|
|
1175
|
+
import { default as default48 } from "./SideBar/SideBar.js";
|
|
1176
|
+
import { default as default49 } from "./Skeleton/Skeleton.js";
|
|
1177
|
+
import { default as default50 } from "./Stepper/Stepper.js";
|
|
1175
1178
|
import { StepperStepState } from "./Stepper/components/Step/Step.types.js";
|
|
1176
|
-
import { default as
|
|
1177
|
-
import { default as
|
|
1178
|
-
import { default as
|
|
1179
|
+
import { default as default51 } from "./Switch/Switch.js";
|
|
1180
|
+
import { default as default52 } from "./TableHeading/TableHeading.js";
|
|
1181
|
+
import { default as default53 } from "./Tabs/Tabs.js";
|
|
1179
1182
|
import { ThemeModeSwitch } from "./ThemeModeSwitch/ThemeModeSwitch.js";
|
|
1180
1183
|
import { useThemeModeSwitch } from "./ThemeModeSwitch/useThemeModeSwitch.js";
|
|
1181
1184
|
import { useToastParams } from "./Toast/core/context.js";
|
|
1182
|
-
import { default as
|
|
1183
|
-
import { default as
|
|
1185
|
+
import { default as default54 } from "./Toast/Toast.js";
|
|
1186
|
+
import { default as default55 } from "./Toast/Toaster.js";
|
|
1184
1187
|
import { toast } from "./Toast/core/core.js";
|
|
1185
|
-
import { default as
|
|
1186
|
-
import { default as
|
|
1187
|
-
import { default as
|
|
1188
|
-
import { default as
|
|
1189
|
-
import { default as
|
|
1188
|
+
import { default as default56 } from "./Tooltip/Tooltip.js";
|
|
1189
|
+
import { default as default57 } from "./Tooltip/Provider/Provider.js";
|
|
1190
|
+
import { default as default58 } from "./Tooltip/components/TooltipCard/TooltipCard.js";
|
|
1191
|
+
import { default as default59 } from "./TreeView/TreeView.js";
|
|
1192
|
+
import { default as default60 } from "./Typography/Typography.js";
|
|
1190
1193
|
import { useEllipsisTooltip } from "./Typography/hooks/useEllipsisTooltip.js";
|
|
1194
|
+
import { typographyColors } from "./Typography/Typography.types.js";
|
|
1191
1195
|
import { ProgressBar } from "./ProgressBar/ProgressBar.js";
|
|
1192
|
-
import { default as
|
|
1196
|
+
import { default as default61 } from "./ProfileIcon/ProfileIcon.js";
|
|
1193
1197
|
import * as ProfileIcon_style from "./ProfileIcon/ProfileIcon.style.js";
|
|
1194
1198
|
import { Slider } from "./Slider/Slider.js";
|
|
1195
1199
|
export {
|
|
@@ -1205,19 +1209,20 @@ export {
|
|
|
1205
1209
|
default8 as BoxSelectionGroup,
|
|
1206
1210
|
default7 as Breadcrumbs,
|
|
1207
1211
|
default10 as Button,
|
|
1208
|
-
|
|
1212
|
+
default16 as ButtonGroup,
|
|
1209
1213
|
Button_style as ButtonStyles,
|
|
1210
1214
|
IconButton_style as ButtonWithIconStyles,
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
+
default17 as Card,
|
|
1216
|
+
default46 as CategoryValueList,
|
|
1217
|
+
default18 as Checkbox,
|
|
1218
|
+
default19 as Chip,
|
|
1215
1219
|
ChipContainer,
|
|
1216
|
-
|
|
1220
|
+
default20 as ChipList,
|
|
1217
1221
|
ContextProvider,
|
|
1218
|
-
|
|
1219
|
-
default21 as
|
|
1220
|
-
|
|
1222
|
+
default15 as CopyToClipboardButton,
|
|
1223
|
+
default21 as CountryFlag,
|
|
1224
|
+
default22 as DatePicker,
|
|
1225
|
+
default24 as Drawer,
|
|
1221
1226
|
ErrorContentProvider,
|
|
1222
1227
|
FieldAdditionTextIdProvider,
|
|
1223
1228
|
FieldAdditionTextIdTransProvider,
|
|
@@ -1229,67 +1234,69 @@ export {
|
|
|
1229
1234
|
FieldRequiredTransProvider,
|
|
1230
1235
|
FieldStatusProvider,
|
|
1231
1236
|
FieldStatusTransProvider,
|
|
1232
|
-
|
|
1237
|
+
default25 as Filters,
|
|
1233
1238
|
FlexDivider,
|
|
1234
1239
|
FlexGroup,
|
|
1235
1240
|
FlexItem,
|
|
1236
1241
|
FlexSplit,
|
|
1237
|
-
|
|
1242
|
+
default33 as FormField,
|
|
1243
|
+
default26 as HighlightedIcon,
|
|
1244
|
+
HighlightedIcon_style as HighlightedIconStyles,
|
|
1238
1245
|
default12 as IconButton,
|
|
1239
|
-
|
|
1246
|
+
default27 as Input,
|
|
1240
1247
|
KeyValueList,
|
|
1241
|
-
|
|
1242
|
-
|
|
1248
|
+
default34 as Label,
|
|
1249
|
+
default35 as Link,
|
|
1243
1250
|
LinkStyler,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1251
|
+
default36 as Loader,
|
|
1252
|
+
default37 as Menu,
|
|
1253
|
+
default38 as MidBar,
|
|
1254
|
+
default39 as Modal,
|
|
1255
|
+
default40 as MoreInfoIcon,
|
|
1249
1256
|
default9 as MultiBoxSelectionGroup,
|
|
1250
|
-
|
|
1251
|
-
|
|
1257
|
+
default41 as MultiSelect,
|
|
1258
|
+
default28 as NumericInput,
|
|
1252
1259
|
Overflow,
|
|
1253
1260
|
Pagination,
|
|
1254
|
-
|
|
1255
|
-
|
|
1261
|
+
default29 as PasswordInput,
|
|
1262
|
+
default42 as Popover,
|
|
1256
1263
|
PopperProvider,
|
|
1257
|
-
|
|
1264
|
+
default61 as ProfileIcon,
|
|
1258
1265
|
ProfileIcon_style as ProfileIconStyles,
|
|
1259
1266
|
ProgressBar,
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1267
|
+
default32 as QuantityCounter,
|
|
1268
|
+
default43 as RadioGroup,
|
|
1269
|
+
default23 as RangeDatePicker,
|
|
1263
1270
|
RestylableElement,
|
|
1264
1271
|
ScreenReaderAnnounce,
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1272
|
+
default44 as SearchBar,
|
|
1273
|
+
default30 as SearchInput,
|
|
1274
|
+
default45 as Section,
|
|
1275
|
+
default47 as Select,
|
|
1269
1276
|
SelfContained,
|
|
1270
1277
|
SharedIdProvider,
|
|
1271
1278
|
SharedIdTransProvider,
|
|
1272
|
-
|
|
1273
|
-
|
|
1279
|
+
default48 as SideBar,
|
|
1280
|
+
default49 as Skeleton,
|
|
1274
1281
|
Slider,
|
|
1275
|
-
|
|
1282
|
+
default50 as Stepper,
|
|
1276
1283
|
StepperStepState,
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1284
|
+
default51 as Switch,
|
|
1285
|
+
default52 as TableHeading,
|
|
1286
|
+
default53 as Tabs,
|
|
1287
|
+
default31 as TextArea,
|
|
1281
1288
|
default11 as TextButton,
|
|
1282
1289
|
TextButton_style as TextButtonStyles,
|
|
1283
1290
|
ThemeModeSwitch,
|
|
1284
|
-
|
|
1285
|
-
|
|
1291
|
+
default54 as Toast,
|
|
1292
|
+
default55 as Toaster,
|
|
1286
1293
|
default14 as ToggleButton,
|
|
1287
1294
|
ToggleButton_style as ToggleButtonStyles,
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1295
|
+
default56 as Tooltip,
|
|
1296
|
+
default58 as TooltipCard,
|
|
1297
|
+
default57 as TooltipProvider,
|
|
1298
|
+
default59 as TreeView,
|
|
1299
|
+
default60 as Typography,
|
|
1293
1300
|
actionIconButtonSizes,
|
|
1294
1301
|
badgeVariants,
|
|
1295
1302
|
bannerVariants,
|
|
@@ -1312,6 +1319,7 @@ export {
|
|
|
1312
1319
|
memoWithGenerics,
|
|
1313
1320
|
textButtonVariants,
|
|
1314
1321
|
toast,
|
|
1322
|
+
typographyColors,
|
|
1315
1323
|
useEllipsisTooltip,
|
|
1316
1324
|
useErrorContent,
|
|
1317
1325
|
useFieldAdditionTextId,
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis-ui/components",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "43.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"repository": "git@github.com:redislabsdev/redis-ui.git",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"skills"
|
|
10
11
|
],
|
|
11
12
|
"module": "./dist/index.js",
|
|
12
13
|
"main": "./dist/index.cjs",
|
|
@@ -20,12 +21,15 @@
|
|
|
20
21
|
"scripts": {
|
|
21
22
|
"build": "tsc && vite build",
|
|
22
23
|
"deploy": "node ../../scripts/deploy.js",
|
|
23
|
-
"lint": "
|
|
24
|
+
"lint": "oxlint --deny-warnings",
|
|
25
|
+
"lint:fix": "oxlint --fix --deny-warnings",
|
|
26
|
+
"format": "oxfmt --check",
|
|
27
|
+
"format:fix": "oxfmt --write",
|
|
24
28
|
"test": "vitest"
|
|
25
29
|
},
|
|
26
30
|
"peerDependencies": {
|
|
27
|
-
"@redis-ui/icons": "^6.
|
|
28
|
-
"@redis-ui/styles": "^14.
|
|
31
|
+
"@redis-ui/icons": "^6.8.5",
|
|
32
|
+
"@redis-ui/styles": "^14.15.0",
|
|
29
33
|
"react": "^17.0.0 || ^18.0.0",
|
|
30
34
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
31
35
|
"styled-components": "^5.0.0"
|
|
@@ -51,16 +55,13 @@
|
|
|
51
55
|
"react-hotkeys-hook": "^4.6.1",
|
|
52
56
|
"react-loading-skeleton": "^3.3.1",
|
|
53
57
|
"react-toastify": "10.0.4",
|
|
54
|
-
"type-fest": "^
|
|
58
|
+
"type-fest": "^5.4.4",
|
|
55
59
|
"virtua": "^0.36.3"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
|
-
"@redislabsdev/eslint-config-redis-ui": "^2.0.0",
|
|
59
62
|
"@types/date-fns": "^2.6.3",
|
|
60
63
|
"@types/lodash": "^4.17.15",
|
|
61
64
|
"@types/styled-components": "^5.1.26",
|
|
62
|
-
"eslint-plugin-jest": "27.2.1",
|
|
63
|
-
"eslint-plugin-jest-dom": "^4.0.3",
|
|
64
65
|
"vi-canvas-mock": "^1.0.0",
|
|
65
66
|
"vite-plugin-babel-macros": "^1.0.6",
|
|
66
67
|
"vite-plugin-css-injected-by-js": "^3.1.1"
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: redis-ui-components
|
|
3
|
+
description: Use Redis UI components from @redislabsdev/redis-ui-components. Provides usage references, props, and examples for each component. Use any time you need to write frontend code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Redis UI Components
|
|
7
|
+
|
|
8
|
+
Package: `@redislabsdev/redis-ui-components`
|
|
9
|
+
|
|
10
|
+
## How to Use
|
|
11
|
+
|
|
12
|
+
Import components as named exports:
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { Button, Modal, Select } from '@redislabsdev/redis-ui-components';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Icons are imported separately:
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { EditIcon, DeleteIcon } from '@redislabsdev/redis-ui-icons';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Key Patterns
|
|
25
|
+
|
|
26
|
+
- **Composition**: Many components support a `Compose` pattern for advanced customization (e.g., `Select.Compose`, `Section.Compose`). Check the component reference for compose examples.
|
|
27
|
+
- **Compound Components**: Some components use `Object.assign` to attach sub-components (e.g., `Button.Icon`, `Modal.Content`, `Tabs.TabBar`). These sub-components share internal React context with their parent, so they must be rendered inside it.
|
|
28
|
+
- **Layouts**: Use `FlexGroup` and `FlexItem` for flex layouts instead of raw `div` with inline styles. `FlexGroup` supports `gap`, `direction`, `align`, `justify`, and `wrap` props. See the Layout references.
|
|
29
|
+
- **Typography**: Use `Typography.Heading`, `Typography.Body`, and `Typography.Code` for all text rendering instead of raw `<span>`, `<p>`, or `<h1>`–`<h6>` elements. See the [Typography](./references/Typography.md) reference.
|
|
30
|
+
- **Theming**: Components use `styled-components` and access theme via `useTheme()` from `@redislabsdev/redis-ui-styles`.
|
|
31
|
+
- **ForwardRef**: Most components support `ref` forwarding.
|
|
32
|
+
|
|
33
|
+
## Important
|
|
34
|
+
|
|
35
|
+
Always check the relevant component reference before using a component. The reference contains the correct props, variants, sizes, and usage examples.
|
|
36
|
+
|
|
37
|
+
## Component Reference
|
|
38
|
+
|
|
39
|
+
### Buttons
|
|
40
|
+
|
|
41
|
+
- [Button](./references/Button.md)
|
|
42
|
+
- [TextButton](./references/TextButton.md)
|
|
43
|
+
- [IconButton](./references/IconButton.md)
|
|
44
|
+
- [ActionIconButton](./references/ActionIconButton.md)
|
|
45
|
+
- [ToggleButton](./references/ToggleButton.md)
|
|
46
|
+
- [CopyToClipboardButton](./references/CopyToClipboardButton.md)
|
|
47
|
+
|
|
48
|
+
### Inputs
|
|
49
|
+
|
|
50
|
+
- [Input](./references/Input.md)
|
|
51
|
+
- [NumericInput](./references/NumericInput.md)
|
|
52
|
+
- [PasswordInput](./references/PasswordInput.md)
|
|
53
|
+
- [SearchInput](./references/SearchInput.md)
|
|
54
|
+
- [TextArea](./references/TextArea.md)
|
|
55
|
+
- [QuantityCounter](./references/QuantityCounter.md)
|
|
56
|
+
|
|
57
|
+
### Selects
|
|
58
|
+
|
|
59
|
+
- [Select](./references/Select.md)
|
|
60
|
+
- [AutoCompleteSelect](./references/AutoCompleteSelect.md)
|
|
61
|
+
- [MultiSelect](./references/MultiSelect.md)
|
|
62
|
+
|
|
63
|
+
### Form
|
|
64
|
+
|
|
65
|
+
- [Checkbox](./references/Checkbox.md)
|
|
66
|
+
- [RadioGroup](./references/RadioGroup.md)
|
|
67
|
+
- [Switch](./references/Switch.md)
|
|
68
|
+
- [FormField](./references/FormField.md)
|
|
69
|
+
|
|
70
|
+
### Layout
|
|
71
|
+
|
|
72
|
+
- [FlexGroup](./references/FlexGroup.md)
|
|
73
|
+
- [FlexItem](./references/FlexItem.md)
|
|
74
|
+
- [FlexDivider](./references/FlexDivider.md)
|
|
75
|
+
- [FlexSplit](./references/FlexSplit.md)
|
|
76
|
+
- [Card](./references/Card.md)
|
|
77
|
+
- [Section](./references/Section.md)
|
|
78
|
+
- [Breadcrumbs](./references/Breadcrumbs.md)
|
|
79
|
+
|
|
80
|
+
### Navigation
|
|
81
|
+
|
|
82
|
+
- [Tabs](./references/Tabs.md)
|
|
83
|
+
- [Stepper](./references/Stepper.md)
|
|
84
|
+
- [Pagination](./references/Pagination.md)
|
|
85
|
+
- [SideBar](./references/SideBar.md)
|
|
86
|
+
- [AppBar](./references/AppBar.md)
|
|
87
|
+
- [MidBar](./references/MidBar.md)
|
|
88
|
+
|
|
89
|
+
### Overlays
|
|
90
|
+
|
|
91
|
+
- [Modal](./references/Modal.md)
|
|
92
|
+
- [Drawer](./references/Drawer.md)
|
|
93
|
+
- [Tooltip](./references/Tooltip.md)
|
|
94
|
+
- [Popover](./references/Popover.md)
|
|
95
|
+
- [Menu](./references/Menu.md)
|
|
96
|
+
- [Toast](./references/Toast.md)
|
|
97
|
+
|
|
98
|
+
### Display
|
|
99
|
+
|
|
100
|
+
- [Badge](./references/Badge.md)
|
|
101
|
+
- [Chip](./references/Chip.md)
|
|
102
|
+
- [ChipList](./references/ChipList.md)
|
|
103
|
+
- [Label](./references/Label.md)
|
|
104
|
+
- [Link](./references/Link.md)
|
|
105
|
+
- [Loader](./references/Loader.md)
|
|
106
|
+
- [ProgressBar](./references/ProgressBar.md)
|
|
107
|
+
- [Typography](./references/Typography.md)
|
|
108
|
+
- [MoreInfoIcon](./references/MoreInfoIcon.md)
|
|
109
|
+
|
|
110
|
+
### Data
|
|
111
|
+
|
|
112
|
+
- [KeyValueList](./references/KeyValueList.md)
|
|
113
|
+
- [Filters](./references/Filters.md)
|
|
114
|
+
- [SearchBar](./references/SearchBar.md)
|
|
115
|
+
|
|
116
|
+
### Misc
|
|
117
|
+
|
|
118
|
+
- [BoxSelectionGroup](./references/BoxSelectionGroup.md)
|
|
119
|
+
- [CountryFlag](./references/CountryFlag.md)
|
|
120
|
+
- [ProfileIcon](./references/ProfileIcon.md)
|
|
121
|
+
- [Overflow](./references/Overflow.md)
|
|
122
|
+
- [AppSelectionMenu](./references/AppSelectionMenu.md)
|
|
123
|
+
- [ScreenReaderAnnounce](./references/ScreenReaderAnnounce.md)
|
|
124
|
+
- [ButtonGroup](./references/ButtonGroup.md)
|
|
125
|
+
- [Banner](./references/Banner.md)
|
|
126
|
+
- [Slider](./references/Slider.md)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# ActionIconButton
|
|
2
|
+
|
|
3
|
+
Button with only an icon and a circular background. Use it for compact icon-only actions.
|
|
4
|
+
|
|
5
|
+
## Import
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import { ActionIconButton } from '@redislabsdev/redis-ui-components';
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
> If you use the examples below, also import the icon from:
|
|
12
|
+
>
|
|
13
|
+
> ```tsx
|
|
14
|
+
> import { ActiveActiveIcon } from '@redislabsdev/redis-ui-icons';
|
|
15
|
+
> ```
|
|
16
|
+
|
|
17
|
+
## Props
|
|
18
|
+
|
|
19
|
+
| Prop | Type | Default | Description |
|
|
20
|
+
|------|------|---------|-------------|
|
|
21
|
+
| icon | `IconType` | required | Icon to render inside the button. |
|
|
22
|
+
| variant | `'primary' \| 'secondary'` | `'primary'` | Visual style for the button background and foreground. |
|
|
23
|
+
| size | `'L' \| 'M' \| 'S' \| 'XS'` | `'M'` | Button size. |
|
|
24
|
+
| native button attributes | `ButtonHTMLAttributes<HTMLButtonElement>` | `type="button"` | All standard button props such as `disabled`, `onClick`, `aria-*`, and `title`. |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
### Basic Usage
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { ActionIconButton } from '@redislabsdev/redis-ui-components';
|
|
32
|
+
import { ActiveActiveIcon } from '@redislabsdev/redis-ui-icons';
|
|
33
|
+
|
|
34
|
+
<ActionIconButton size="L" disabled={false} icon={ActiveActiveIcon} />;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Sizes
|
|
38
|
+
|
|
39
|
+
> 4 sizes are supported with `M` being the default.
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import { ActionIconButton } from '@redislabsdev/redis-ui-components';
|
|
43
|
+
import { ActiveActiveIcon } from '@redislabsdev/redis-ui-icons';
|
|
44
|
+
|
|
45
|
+
<>
|
|
46
|
+
<ActionIconButton size="XS" icon={ActiveActiveIcon} />
|
|
47
|
+
<ActionIconButton size="S" icon={ActiveActiveIcon} />
|
|
48
|
+
<ActionIconButton size="M" icon={ActiveActiveIcon} />
|
|
49
|
+
<ActionIconButton size="L" icon={ActiveActiveIcon} />
|
|
50
|
+
</>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Variants
|
|
54
|
+
|
|
55
|
+
> 2 variants are supported, `primary` and `secondary`. The default is `primary`.
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import { ActionIconButton, FormField } from '@redislabsdev/redis-ui-components';
|
|
59
|
+
import { ActiveActiveIcon } from '@redislabsdev/redis-ui-icons';
|
|
60
|
+
|
|
61
|
+
<>
|
|
62
|
+
<FormField label="primary">
|
|
63
|
+
<ActionIconButton variant="primary" size="L" icon={ActiveActiveIcon} />
|
|
64
|
+
</FormField>
|
|
65
|
+
<FormField label="secondary">
|
|
66
|
+
<ActionIconButton variant="secondary" size="L" icon={ActiveActiveIcon} />
|
|
67
|
+
</FormField>
|
|
68
|
+
</>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Disabled
|
|
72
|
+
|
|
73
|
+
> ActionIconButton can be disabled by setting the `disabled` prop to `true`.
|
|
74
|
+
>
|
|
75
|
+
> This will disable any hover styles and prevent click events from firing.
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import { ActionIconButton, FormField } from '@redislabsdev/redis-ui-components';
|
|
79
|
+
import { ActiveActiveIcon } from '@redislabsdev/redis-ui-icons';
|
|
80
|
+
|
|
81
|
+
<>
|
|
82
|
+
<FormField label="primary">
|
|
83
|
+
<ActionIconButton variant="primary" size="L" icon={ActiveActiveIcon} disabled />
|
|
84
|
+
</FormField>
|
|
85
|
+
<FormField label="secondary">
|
|
86
|
+
<ActionIconButton variant="secondary" size="L" icon={ActiveActiveIcon} disabled />
|
|
87
|
+
</FormField>
|
|
88
|
+
</>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Notes
|
|
92
|
+
|
|
93
|
+
- `ActionIconButton` is icon-only and should be used for compact actions with no text label.
|
|
94
|
+
- 4 sizes are supported with `M` being the default.
|
|
95
|
+
- 2 variants are supported, `primary` and `secondary`, with `primary` as the default.
|
|
96
|
+
- Setting `disabled` to `true` disables hover styles and prevents click events from firing.
|