@hitachivantara/uikit-react-core 5.90.0 → 5.91.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/cjs/Accordion/Accordion.cjs +1 -1
- package/dist/cjs/Accordion/Accordion.styles.cjs +1 -5
- package/dist/cjs/Avatar/Avatar.cjs +16 -9
- package/dist/cjs/Avatar/Avatar.styles.cjs +13 -37
- package/dist/cjs/AvatarGroup/AvatarGroup.styles.cjs +36 -43
- package/dist/cjs/Badge/Badge.cjs +3 -2
- package/dist/cjs/Badge/Badge.styles.cjs +5 -2
- package/dist/cjs/BaseCheckBox/BaseCheckBox.cjs +8 -11
- package/dist/cjs/BaseCheckBox/BaseCheckBox.styles.cjs +17 -16
- package/dist/cjs/BaseDropdown/BaseDropdown.cjs +4 -3
- package/dist/cjs/BaseDropdown/BaseDropdown.styles.cjs +26 -24
- package/dist/cjs/BaseRadio/BaseRadio.cjs +6 -10
- package/dist/cjs/BaseRadio/BaseRadio.styles.cjs +12 -26
- package/dist/cjs/BaseSwitch/BaseSwitch.styles.cjs +12 -8
- package/dist/cjs/BulkActions/BulkActions.styles.cjs +4 -3
- package/dist/cjs/Button/Button.styles.cjs +11 -12
- package/dist/cjs/Card/Card.styles.cjs +2 -2
- package/dist/cjs/CheckBox/CheckBox.cjs +1 -1
- package/dist/cjs/CheckBox/CheckBox.styles.cjs +13 -4
- package/dist/cjs/ColorPicker/PresetColors/PresetColors.cjs +2 -0
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.cjs +5 -6
- package/dist/cjs/DatePicker/DatePicker.cjs +1 -1
- package/dist/cjs/DatePicker/DatePicker.styles.cjs +1 -1
- package/dist/cjs/DotPagination/DotPagination.cjs +10 -15
- package/dist/cjs/DotPagination/DotPagination.styles.cjs +15 -3
- package/dist/cjs/Drawer/Drawer.styles.cjs +2 -2
- package/dist/cjs/DropDownMenu/DropDownMenu.cjs +2 -2
- package/dist/cjs/DropDownMenu/DropDownMenu.styles.cjs +8 -8
- package/dist/cjs/Dropdown/Dropdown.styles.cjs +5 -6
- package/dist/cjs/DropdownButton/DropdownButton.cjs +2 -3
- package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +9 -10
- package/dist/cjs/FileUploader/File/File.cjs +4 -2
- package/dist/cjs/FileUploader/File/File.styles.cjs +15 -13
- package/dist/cjs/FileUploader/FileList/FileList.cjs +1 -1
- package/dist/cjs/FileUploader/FileList/FileList.styles.cjs +2 -10
- package/dist/cjs/Footer/Footer.styles.cjs +4 -12
- package/dist/cjs/Header/Header.styles.cjs +1 -1
- package/dist/cjs/InlineEditor/InlineEditor.cjs +0 -1
- package/dist/cjs/InlineEditor/InlineEditor.styles.cjs +1 -1
- package/dist/cjs/MultiButton/MultiButton.styles.cjs +11 -9
- package/dist/cjs/Pagination/Pagination.styles.cjs +2 -3
- package/dist/cjs/QueryBuilder/QueryBuilder.styles.cjs +2 -3
- package/dist/cjs/Radio/Radio.styles.cjs +1 -6
- package/dist/cjs/Select/Select.cjs +1 -1
- package/dist/cjs/Select/Select.styles.cjs +12 -7
- package/dist/cjs/Skeleton/Skeleton.cjs +2 -5
- package/dist/cjs/Slider/Slider.styles.cjs +3 -3
- package/dist/cjs/Slider/SliderInput/SliderInput.cjs +2 -3
- package/dist/cjs/Slider/SliderInput/SliderInput.styles.cjs +9 -3
- package/dist/cjs/Table/TableHeader/TableHeader.cjs +0 -1
- package/dist/cjs/Tag/Tag.cjs +19 -10
- package/dist/cjs/Tag/Tag.styles.cjs +35 -8
- package/dist/cjs/TimePicker/TimePicker.styles.cjs +1 -1
- package/dist/cjs/Tooltip/Tooltip.styles.cjs +1 -1
- package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +1 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +1 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +1 -0
- package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +2 -2
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/utils/Callout.cjs +1 -1
- package/dist/esm/Accordion/Accordion.js +1 -1
- package/dist/esm/Accordion/Accordion.js.map +1 -1
- package/dist/esm/Accordion/Accordion.styles.js +1 -5
- package/dist/esm/Accordion/Accordion.styles.js.map +1 -1
- package/dist/esm/Avatar/Avatar.js +14 -7
- package/dist/esm/Avatar/Avatar.js.map +1 -1
- package/dist/esm/Avatar/Avatar.styles.js +13 -37
- package/dist/esm/Avatar/Avatar.styles.js.map +1 -1
- package/dist/esm/AvatarGroup/AvatarGroup.styles.js +36 -43
- package/dist/esm/AvatarGroup/AvatarGroup.styles.js.map +1 -1
- package/dist/esm/Badge/Badge.js +3 -2
- package/dist/esm/Badge/Badge.js.map +1 -1
- package/dist/esm/Badge/Badge.styles.js +5 -2
- package/dist/esm/Badge/Badge.styles.js.map +1 -1
- package/dist/esm/BaseCheckBox/BaseCheckBox.js +4 -7
- package/dist/esm/BaseCheckBox/BaseCheckBox.js.map +1 -1
- package/dist/esm/BaseCheckBox/BaseCheckBox.styles.js +17 -16
- package/dist/esm/BaseCheckBox/BaseCheckBox.styles.js.map +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.js +4 -3
- package/dist/esm/BaseDropdown/BaseDropdown.js.map +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.styles.js +26 -24
- package/dist/esm/BaseDropdown/BaseDropdown.styles.js.map +1 -1
- package/dist/esm/BaseRadio/BaseRadio.js +4 -8
- package/dist/esm/BaseRadio/BaseRadio.js.map +1 -1
- package/dist/esm/BaseRadio/BaseRadio.styles.js +12 -26
- package/dist/esm/BaseRadio/BaseRadio.styles.js.map +1 -1
- package/dist/esm/BaseSwitch/BaseSwitch.styles.js +12 -8
- package/dist/esm/BaseSwitch/BaseSwitch.styles.js.map +1 -1
- package/dist/esm/BulkActions/BulkActions.styles.js +4 -3
- package/dist/esm/BulkActions/BulkActions.styles.js.map +1 -1
- package/dist/esm/Button/Button.styles.js +11 -12
- package/dist/esm/Button/Button.styles.js.map +1 -1
- package/dist/esm/Card/Card.styles.js +2 -2
- package/dist/esm/Card/Card.styles.js.map +1 -1
- package/dist/esm/CheckBox/CheckBox.js +1 -1
- package/dist/esm/CheckBox/CheckBox.js.map +1 -1
- package/dist/esm/CheckBox/CheckBox.styles.js +13 -4
- package/dist/esm/CheckBox/CheckBox.styles.js.map +1 -1
- package/dist/esm/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/esm/ColorPicker/PresetColors/PresetColors.js +2 -0
- package/dist/esm/ColorPicker/PresetColors/PresetColors.js.map +1 -1
- package/dist/esm/ColorPicker/SavedColors/SavedColors.js +5 -6
- package/dist/esm/ColorPicker/SavedColors/SavedColors.js.map +1 -1
- package/dist/esm/DatePicker/DatePicker.js +1 -1
- package/dist/esm/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/DatePicker/DatePicker.styles.js +1 -1
- package/dist/esm/DatePicker/DatePicker.styles.js.map +1 -1
- package/dist/esm/DotPagination/DotPagination.js +10 -15
- package/dist/esm/DotPagination/DotPagination.js.map +1 -1
- package/dist/esm/DotPagination/DotPagination.styles.js +15 -3
- package/dist/esm/DotPagination/DotPagination.styles.js.map +1 -1
- package/dist/esm/Drawer/Drawer.styles.js +2 -2
- package/dist/esm/Drawer/Drawer.styles.js.map +1 -1
- package/dist/esm/DropDownMenu/DropDownMenu.js +2 -2
- package/dist/esm/DropDownMenu/DropDownMenu.js.map +1 -1
- package/dist/esm/DropDownMenu/DropDownMenu.styles.js +8 -8
- package/dist/esm/DropDownMenu/DropDownMenu.styles.js.map +1 -1
- package/dist/esm/Dropdown/Dropdown.styles.js +5 -6
- package/dist/esm/Dropdown/Dropdown.styles.js.map +1 -1
- package/dist/esm/DropdownButton/DropdownButton.js +2 -3
- package/dist/esm/DropdownButton/DropdownButton.js.map +1 -1
- package/dist/esm/DropdownButton/DropdownButton.styles.js +9 -10
- package/dist/esm/DropdownButton/DropdownButton.styles.js.map +1 -1
- package/dist/esm/FileUploader/File/File.js +4 -2
- package/dist/esm/FileUploader/File/File.js.map +1 -1
- package/dist/esm/FileUploader/File/File.styles.js +15 -13
- package/dist/esm/FileUploader/File/File.styles.js.map +1 -1
- package/dist/esm/FileUploader/FileList/FileList.js +1 -1
- package/dist/esm/FileUploader/FileList/FileList.js.map +1 -1
- package/dist/esm/FileUploader/FileList/FileList.styles.js +2 -10
- package/dist/esm/FileUploader/FileList/FileList.styles.js.map +1 -1
- package/dist/esm/Footer/Footer.styles.js +4 -12
- package/dist/esm/Footer/Footer.styles.js.map +1 -1
- package/dist/esm/Header/Header.styles.js +1 -1
- package/dist/esm/Header/Header.styles.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.js +0 -1
- package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.styles.js +1 -1
- package/dist/esm/InlineEditor/InlineEditor.styles.js.map +1 -1
- package/dist/esm/MultiButton/MultiButton.styles.js +11 -9
- package/dist/esm/MultiButton/MultiButton.styles.js.map +1 -1
- package/dist/esm/Pagination/Pagination.styles.js +2 -3
- package/dist/esm/Pagination/Pagination.styles.js.map +1 -1
- package/dist/esm/QueryBuilder/QueryBuilder.styles.js +2 -3
- package/dist/esm/QueryBuilder/QueryBuilder.styles.js.map +1 -1
- package/dist/esm/Radio/Radio.styles.js +1 -6
- package/dist/esm/Radio/Radio.styles.js.map +1 -1
- package/dist/esm/Select/Select.js +1 -1
- package/dist/esm/Select/Select.js.map +1 -1
- package/dist/esm/Select/Select.styles.js +12 -7
- package/dist/esm/Select/Select.styles.js.map +1 -1
- package/dist/esm/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/esm/Skeleton/Skeleton.js +2 -5
- package/dist/esm/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/Slider/Slider.styles.js +3 -3
- package/dist/esm/Slider/Slider.styles.js.map +1 -1
- package/dist/esm/Slider/SliderInput/SliderInput.js +3 -4
- package/dist/esm/Slider/SliderInput/SliderInput.js.map +1 -1
- package/dist/esm/Slider/SliderInput/SliderInput.styles.js +9 -3
- package/dist/esm/Slider/SliderInput/SliderInput.styles.js.map +1 -1
- package/dist/esm/Table/TableHeader/TableHeader.js +0 -1
- package/dist/esm/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/esm/Tag/Tag.js +20 -11
- package/dist/esm/Tag/Tag.js.map +1 -1
- package/dist/esm/Tag/Tag.styles.js +35 -8
- package/dist/esm/Tag/Tag.styles.js.map +1 -1
- package/dist/esm/TimePicker/TimePicker.styles.js +1 -1
- package/dist/esm/TimePicker/TimePicker.styles.js.map +1 -1
- package/dist/esm/Tooltip/Tooltip.styles.js +1 -1
- package/dist/esm/Tooltip/Tooltip.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +1 -0
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +2 -2
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/utils/Callout.js +1 -1
- package/dist/esm/utils/Callout.js.map +1 -1
- package/dist/types/index.d.ts +35 -25
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.js","sources":["../../../src/utils/Callout.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { SnackbarProps as MuiSnackbarProps } from \"@mui/material/Snackbar\";\nimport SnackbarContent, {\n type SnackbarContentProps as MuiSnackbarContentProps,\n} from \"@mui/material/SnackbarContent\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport {\n createClasses,\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvActionsGeneric, HvActionsGenericProps } from \"../ActionsGeneric\";\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { iconVariant } from \"./iconVariant\";\n\nconst { useClasses } = createClasses(\"HvCallout\", {\n root: {\n position: \"relative\",\n boxShadow: \"none\",\n flexWrap: \"nowrap\",\n padding: 0,\n },\n success: {\n backgroundColor: theme.colors.positiveDimmed,\n },\n warning: {\n backgroundColor: theme.colors.warningDimmed,\n },\n error: {\n backgroundColor: theme.colors.negativeDimmed,\n },\n info: {\n backgroundColor: theme.colors.infoDimmed,\n },\n accent: {\n backgroundColor: theme.colors.accentDimmed,\n },\n default: {\n backgroundColor: theme.colors.infoDimmed,\n },\n message: {\n display: \"flex\",\n alignItems: \"center\",\n padding: 0,\n color: theme.colors.textDark,\n },\n messageContent: {\n textWrap: \"balance\",\n overflow: \"hidden\",\n wordBreak: \"break-word\",\n },\n messageIcon: {},\n messageTitle: {\n display: \"block\",\n fontWeight: theme.fontWeights.semibold,\n },\n action: {\n marginRight: 0,\n },\n actionContent: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n justifyContent: \"space-between\",\n gap: theme.space.xs,\n },\n actionCustom: {\n flex: \"0 0 auto\",\n },\n actionClose: {\n alignSelf: \"flex-end\",\n },\n});\n\nexport type HvCalloutVariant =\n | \"success\"\n | \"warning\"\n | \"error\"\n | \"default\"\n | \"info\"\n | \"accent\";\n\nexport type HvCalloutActionPosition = \"auto\" | \"inline\" | \"bottom-right\";\n\nexport type HvCalloutClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvCalloutProps\n extends Omit<\n MuiSnackbarContentProps,\n \"title\" | \"variant\" | \"classes\" | \"onClose\"\n > {\n /** The title to display. */\n title?: React.ReactNode;\n /** The message to display. */\n children?: React.ReactNode;\n /** Variant of the snackbar. */\n variant?: HvCalloutVariant;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Controls whether to show the close icon */\n showClose?: boolean;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** @inheritdoc */\n onClose?: MuiSnackbarProps[\"onClose\"];\n /** Actions to display on the right side. */\n actions?: HvActionsGenericProps[\"actions\"];\n /** The callback function called when an action is triggered, receiving `action` as parameter. */\n onAction?: HvActionsGenericProps[\"onAction\"];\n /** The position property of the header. */\n actionsPosition?: HvCalloutActionPosition;\n /** The props to pass down to the Action Container. */\n actionProps?: Partial<HvButtonProps>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvCalloutClasses;\n}\n\n/**\n * `HvCallout` is the internal content handler for the snackbars and banners. Might be promoted to a component.\n * @private @internal\n */\nexport const HvCallout = forwardRef<\n // no-indent\n HTMLDivElement,\n HvCalloutProps\n>(function HvCallout(props, ref) {\n const {\n id,\n classes: classesProp,\n className,\n title,\n showClose,\n showIcon,\n customIcon,\n variant = \"default\",\n onClose,\n actions,\n onAction,\n actionsPosition: actionsPositionProp = \"auto\",\n children,\n actionProps,\n ...others\n } = useDefaultProps(\"HvCallout\", props);\n const { classes, cx } = useClasses(classesProp, false);\n const { activeTheme } = useTheme();\n const icon = customIcon || (showIcon && iconVariant(variant
|
|
1
|
+
{"version":3,"file":"Callout.js","sources":["../../../src/utils/Callout.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { SnackbarProps as MuiSnackbarProps } from \"@mui/material/Snackbar\";\nimport SnackbarContent, {\n type SnackbarContentProps as MuiSnackbarContentProps,\n} from \"@mui/material/SnackbarContent\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport {\n createClasses,\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { HvActionsGeneric, HvActionsGenericProps } from \"../ActionsGeneric\";\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { iconVariant } from \"./iconVariant\";\n\nconst { useClasses } = createClasses(\"HvCallout\", {\n root: {\n position: \"relative\",\n boxShadow: \"none\",\n flexWrap: \"nowrap\",\n padding: 0,\n },\n success: {\n backgroundColor: theme.colors.positiveDimmed,\n },\n warning: {\n backgroundColor: theme.colors.warningDimmed,\n },\n error: {\n backgroundColor: theme.colors.negativeDimmed,\n },\n info: {\n backgroundColor: theme.colors.infoDimmed,\n },\n accent: {\n backgroundColor: theme.colors.accentDimmed,\n },\n default: {\n backgroundColor: theme.colors.infoDimmed,\n },\n message: {\n display: \"flex\",\n alignItems: \"center\",\n padding: 0,\n color: theme.colors.textDark,\n },\n messageContent: {\n textWrap: \"balance\",\n overflow: \"hidden\",\n wordBreak: \"break-word\",\n },\n messageIcon: {},\n messageTitle: {\n display: \"block\",\n fontWeight: theme.fontWeights.semibold,\n },\n action: {\n marginRight: 0,\n },\n actionContent: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n justifyContent: \"space-between\",\n gap: theme.space.xs,\n },\n actionCustom: {\n flex: \"0 0 auto\",\n },\n actionClose: {\n alignSelf: \"flex-end\",\n },\n});\n\nexport type HvCalloutVariant =\n | \"success\"\n | \"warning\"\n | \"error\"\n | \"default\"\n | \"info\"\n | \"accent\";\n\nexport type HvCalloutActionPosition = \"auto\" | \"inline\" | \"bottom-right\";\n\nexport type HvCalloutClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvCalloutProps\n extends Omit<\n MuiSnackbarContentProps,\n \"title\" | \"variant\" | \"classes\" | \"onClose\"\n > {\n /** The title to display. */\n title?: React.ReactNode;\n /** The message to display. */\n children?: React.ReactNode;\n /** Variant of the snackbar. */\n variant?: HvCalloutVariant;\n /** Controls if the associated icon to the variant should be shown. */\n showIcon?: boolean;\n /** Controls whether to show the close icon */\n showClose?: boolean;\n /** Custom icon to replace the variant default. */\n customIcon?: React.ReactNode;\n /** @inheritdoc */\n onClose?: MuiSnackbarProps[\"onClose\"];\n /** Actions to display on the right side. */\n actions?: HvActionsGenericProps[\"actions\"];\n /** The callback function called when an action is triggered, receiving `action` as parameter. */\n onAction?: HvActionsGenericProps[\"onAction\"];\n /** The position property of the header. */\n actionsPosition?: HvCalloutActionPosition;\n /** The props to pass down to the Action Container. */\n actionProps?: Partial<HvButtonProps>;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvCalloutClasses;\n}\n\n/**\n * `HvCallout` is the internal content handler for the snackbars and banners. Might be promoted to a component.\n * @private @internal\n */\nexport const HvCallout = forwardRef<\n // no-indent\n HTMLDivElement,\n HvCalloutProps\n>(function HvCallout(props, ref) {\n const {\n id,\n classes: classesProp,\n className,\n title,\n showClose,\n showIcon,\n customIcon,\n variant = \"default\",\n onClose,\n actions,\n onAction,\n actionsPosition: actionsPositionProp = \"auto\",\n children,\n actionProps,\n ...others\n } = useDefaultProps(\"HvCallout\", props);\n const { classes, cx } = useClasses(classesProp, false);\n const { activeTheme } = useTheme();\n const icon = customIcon || (showIcon && iconVariant(variant));\n\n // TODO: consider making this flex-flow only, so it adapts according to the\n // content length, available space, number of actions, etc.\n const actionsPosition =\n actionsPositionProp === \"auto\" ? \"inline\" : actionsPositionProp;\n\n const actionsContent = (\n <HvActionsGeneric\n id={id}\n className={classes.actionCustom}\n variant={activeTheme?.snackbar.actionButtonVariant as any}\n actions={actions}\n onAction={onAction}\n />\n );\n\n const showCustomActions = actions && actionsPosition === \"bottom-right\";\n\n return (\n <SnackbarContent\n ref={ref}\n id={id}\n classes={{\n root: cx(classes.root, classes[variant], className),\n message: classes.message,\n action: classes.action,\n }}\n message={\n <>\n {icon && <div className={classes.messageIcon}>{icon}</div>}\n <div className={classes.messageContent}>\n {title && <b className={classes.messageTitle}>{title}</b>}\n {children}\n </div>\n {actions && actionsPosition === \"inline\" && actionsContent}\n </>\n }\n action={\n (showClose || showCustomActions) && (\n <div className={classes.actionContent}>\n {showClose && (\n <HvButton\n icon\n className={classes.actionClose}\n variant=\"semantic\"\n aria-label=\"Close\"\n onClick={(evt) => onClose?.(evt, \"clickaway\")}\n {...actionProps}\n >\n <Close size=\"XS\" />\n </HvButton>\n )}\n {showCustomActions && actionsContent}\n </div>\n )\n }\n {...others}\n />\n );\n});\n"],"names":["HvCallout"],"mappings":"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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -254,17 +254,17 @@ declare type AsProp<C extends React.ElementType> = {
|
|
|
254
254
|
|
|
255
255
|
export declare const avatarClasses: {
|
|
256
256
|
root: string;
|
|
257
|
-
container: string;
|
|
258
257
|
img: string;
|
|
259
258
|
fallback: string;
|
|
260
259
|
status: string;
|
|
261
|
-
|
|
262
|
-
badge: string;
|
|
260
|
+
container: string;
|
|
263
261
|
xs: string;
|
|
264
262
|
sm: string;
|
|
265
263
|
md: string;
|
|
266
264
|
lg: string;
|
|
267
265
|
xl: string;
|
|
266
|
+
avatar: string;
|
|
267
|
+
badge: string;
|
|
268
268
|
circular: string;
|
|
269
269
|
square: string;
|
|
270
270
|
};
|
|
@@ -859,9 +859,9 @@ export declare const dropdownClasses: {
|
|
|
859
859
|
};
|
|
860
860
|
|
|
861
861
|
export declare const dropDownMenuClasses: {
|
|
862
|
+
root: string;
|
|
862
863
|
container: string;
|
|
863
864
|
baseContainer: string;
|
|
864
|
-
root: string;
|
|
865
865
|
icon: string;
|
|
866
866
|
iconSelected: string;
|
|
867
867
|
menuListRoot: string;
|
|
@@ -963,11 +963,6 @@ export declare const getPrevNextFocus: (nodeId?: string) => {
|
|
|
963
963
|
prevFocus: any;
|
|
964
964
|
};
|
|
965
965
|
|
|
966
|
-
export declare const getSelectorIcons: () => {
|
|
967
|
-
radio: JSX_2.Element;
|
|
968
|
-
radioChecked: JSX_2.Element;
|
|
969
|
-
};
|
|
970
|
-
|
|
971
966
|
export declare const getVarValue: (cssVar: string, rootElementId?: string) => string | undefined;
|
|
972
967
|
|
|
973
968
|
export declare const globalActionsClasses: {
|
|
@@ -2584,7 +2579,7 @@ export declare interface HvColorPickerProps {
|
|
|
2584
2579
|
/** The placeholder value when nothing is selected. */
|
|
2585
2580
|
placeholder?: string;
|
|
2586
2581
|
/** Recommended colors. The colors are HEX values. */
|
|
2587
|
-
recommendedColors?:
|
|
2582
|
+
recommendedColors?: HvColorAny[];
|
|
2588
2583
|
/** Recommended colors position. */
|
|
2589
2584
|
recommendedColorsPosition?: "top" | "bottom";
|
|
2590
2585
|
/** If `true`, the labels are shown. If `false`, they are not shown. */
|
|
@@ -6529,6 +6524,12 @@ export declare interface HvTagProps extends Omit<HvButtonBaseProps, "type" | "co
|
|
|
6529
6524
|
disabled?: boolean;
|
|
6530
6525
|
/** The type of the tag element. A tag can be of semantic or categoric type. */
|
|
6531
6526
|
type?: "semantic" | "categorical";
|
|
6527
|
+
/** @deprecated */
|
|
6528
|
+
variant?: "filled" | "outlined";
|
|
6529
|
+
size?: Extract<HvSize, "xs" | "sm" | "md">;
|
|
6530
|
+
icon?: React.ReactNode;
|
|
6531
|
+
/** Whether to show the select icon checkbox. */
|
|
6532
|
+
showSelectIcon?: boolean;
|
|
6532
6533
|
/** The color variant of the tag */
|
|
6533
6534
|
color?: HvColorAny;
|
|
6534
6535
|
/** Icon used to customize the delete icon */
|
|
@@ -6540,9 +6541,7 @@ export declare interface HvTagProps extends Omit<HvButtonBaseProps, "type" | "co
|
|
|
6540
6541
|
onDelete?: React.EventHandler<any>;
|
|
6541
6542
|
/** Callback triggered when any item is clicked. */
|
|
6542
6543
|
onClick?: (event: React.MouseEvent<HTMLElement>, selected?: boolean) => void;
|
|
6543
|
-
/** Aria properties to apply to delete button in tag
|
|
6544
|
-
* @deprecated no longer used
|
|
6545
|
-
*/
|
|
6544
|
+
/** Aria properties to apply to delete button in tag. @deprecated no longer used */
|
|
6546
6545
|
deleteButtonArialLabel?: string;
|
|
6547
6546
|
/** Props to apply to delete icon */
|
|
6548
6547
|
deleteButtonProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -7963,6 +7962,7 @@ export declare const snackbarProviderClasses: {
|
|
|
7963
7962
|
snackItemRoot: string;
|
|
7964
7963
|
};
|
|
7965
7964
|
|
|
7965
|
+
/** @deprecated use `HvBreakpoints` instead */
|
|
7966
7966
|
export declare type Spacing = HvBreakpoints;
|
|
7967
7967
|
|
|
7968
7968
|
export declare const stackClasses: {
|
|
@@ -8129,7 +8129,12 @@ export declare const tabsClasses: {
|
|
|
8129
8129
|
|
|
8130
8130
|
export declare const tagClasses: {
|
|
8131
8131
|
root: string;
|
|
8132
|
+
hasIcon: string;
|
|
8133
|
+
outlined: string;
|
|
8132
8134
|
categorical: string;
|
|
8135
|
+
xs: string;
|
|
8136
|
+
sm: string;
|
|
8137
|
+
md: string;
|
|
8133
8138
|
disabled: string;
|
|
8134
8139
|
label: string;
|
|
8135
8140
|
deleteIcon: string;
|
|
@@ -8544,10 +8549,15 @@ declare const useClasses_114: (classesProp?: Partial<Record<"root" | "stickyHead
|
|
|
8544
8549
|
readonly cx: (...args: any) => string;
|
|
8545
8550
|
};
|
|
8546
8551
|
|
|
8547
|
-
declare const useClasses_115: (classesProp?: Partial<Record<"label" | "root" | "disabled" | "icon" | "selected" | "button" | "
|
|
8552
|
+
declare const useClasses_115: (classesProp?: Partial<Record<"label" | "xs" | "sm" | "md" | "root" | "disabled" | "icon" | "selected" | "button" | "categorical" | "hasIcon" | "deleteIcon" | "clickable" | "focusVisible" | "outlined" | "chipRoot" | "tagButton" | "disabledDeleteIcon" | "categoricalFocus" | "categoricalDisabled", string>>, addStatic?: boolean) => {
|
|
8548
8553
|
readonly classes: {
|
|
8549
8554
|
root: string;
|
|
8555
|
+
hasIcon: string;
|
|
8556
|
+
outlined: string;
|
|
8550
8557
|
categorical: string;
|
|
8558
|
+
xs: string;
|
|
8559
|
+
sm: string;
|
|
8560
|
+
md: string;
|
|
8551
8561
|
disabled: string;
|
|
8552
8562
|
label: string;
|
|
8553
8563
|
deleteIcon: string;
|
|
@@ -8762,7 +8772,7 @@ declare const useClasses_128: (classesProp?: Partial<Record<"action" | "minimize
|
|
|
8762
8772
|
readonly cx: (...args: any) => string;
|
|
8763
8773
|
};
|
|
8764
8774
|
|
|
8765
|
-
declare const useClasses_129: (classesProp?: Partial<Record<"root" | "
|
|
8775
|
+
declare const useClasses_129: (classesProp?: Partial<Record<"root" | "list" | "popup" | "listItem" | "collapsed" | "navigationPopup", string>>, addStatic?: boolean) => {
|
|
8766
8776
|
readonly classes: {
|
|
8767
8777
|
root: string;
|
|
8768
8778
|
list: string;
|
|
@@ -8856,7 +8866,7 @@ declare const useClasses_133: (classesProp?: Partial<Record<"text" | "content" |
|
|
|
8856
8866
|
readonly cx: (...args: any) => string;
|
|
8857
8867
|
};
|
|
8858
8868
|
|
|
8859
|
-
declare const useClasses_14: (classesProp?: Partial<Record<"primary" | "primarySubtle" | "secondary" | "root" | "
|
|
8869
|
+
declare const useClasses_14: (classesProp?: Partial<Record<"primary" | "primarySubtle" | "secondary" | "root" | "semantic" | "disabled" | "icon" | "secondarySubtle" | "ghost" | "secondaryGhost" | "contained" | "primaryGhost" | "subtle" | "startIcon" | "endIcon" | "focusVisible", string>>, addStatic?: boolean) => {
|
|
8860
8870
|
readonly classes: {
|
|
8861
8871
|
root: string;
|
|
8862
8872
|
startIcon: string;
|
|
@@ -9053,9 +9063,9 @@ declare const useClasses_23: (classesProp?: Partial<Record<"root" | "button" | "
|
|
|
9053
9063
|
|
|
9054
9064
|
declare const useClasses_24: (classesProp?: Partial<Record<"container" | "root" | "icon" | "iconSelected" | "baseContainer" | "menuListRoot" | "menuList", string>>, addStatic?: boolean) => {
|
|
9055
9065
|
readonly classes: {
|
|
9066
|
+
root: string;
|
|
9056
9067
|
container: string;
|
|
9057
9068
|
baseContainer: string;
|
|
9058
|
-
root: string;
|
|
9059
9069
|
icon: string;
|
|
9060
9070
|
iconSelected: string;
|
|
9061
9071
|
menuListRoot: string;
|
|
@@ -9108,17 +9118,17 @@ declare const useClasses_26: (classesProp?: Partial<Record<"typography" | "root"
|
|
|
9108
9118
|
declare const useClasses_27: (classesProp?: Partial<Record<"container" | "xs" | "sm" | "md" | "lg" | "xl" | "root" | "square" | "img" | "status" | "fallback" | "avatar" | "badge" | "circular", string>>, addStatic?: boolean) => {
|
|
9109
9119
|
readonly classes: {
|
|
9110
9120
|
root: string;
|
|
9111
|
-
container: string;
|
|
9112
9121
|
img: string;
|
|
9113
9122
|
fallback: string;
|
|
9114
9123
|
status: string;
|
|
9115
|
-
|
|
9116
|
-
badge: string;
|
|
9124
|
+
container: string;
|
|
9117
9125
|
xs: string;
|
|
9118
9126
|
sm: string;
|
|
9119
9127
|
md: string;
|
|
9120
9128
|
lg: string;
|
|
9121
9129
|
xl: string;
|
|
9130
|
+
avatar: string;
|
|
9131
|
+
badge: string;
|
|
9122
9132
|
circular: string;
|
|
9123
9133
|
square: string;
|
|
9124
9134
|
};
|
|
@@ -9198,7 +9208,7 @@ declare const useClasses_31: (classesProp?: Partial<Record<"accent" | "warning"
|
|
|
9198
9208
|
readonly cx: (...args: any) => string;
|
|
9199
9209
|
};
|
|
9200
9210
|
|
|
9201
|
-
declare const useClasses_32: (classesProp?: Partial<Record<"root" | "
|
|
9211
|
+
declare const useClasses_32: (classesProp?: Partial<Record<"root" | "checked" | "semantic" | "indeterminate" | "disabled" | "icon" | "focusVisible", string>>, addStatic?: boolean) => {
|
|
9202
9212
|
readonly classes: {
|
|
9203
9213
|
root: string;
|
|
9204
9214
|
disabled: string;
|
|
@@ -9212,7 +9222,7 @@ declare const useClasses_32: (classesProp?: Partial<Record<"root" | "disabled" |
|
|
|
9212
9222
|
readonly cx: (...args: any) => string;
|
|
9213
9223
|
};
|
|
9214
9224
|
|
|
9215
|
-
declare const useClasses_33: (classesProp?: Partial<Record<"root" | "
|
|
9225
|
+
declare const useClasses_33: (classesProp?: Partial<Record<"root" | "checked" | "semantic" | "disabled" | "icon" | "focusVisible", string>>, addStatic?: boolean) => {
|
|
9216
9226
|
readonly classes: {
|
|
9217
9227
|
root: string;
|
|
9218
9228
|
disabled: string;
|
|
@@ -9225,7 +9235,7 @@ declare const useClasses_33: (classesProp?: Partial<Record<"root" | "disabled" |
|
|
|
9225
9235
|
readonly cx: (...args: any) => string;
|
|
9226
9236
|
};
|
|
9227
9237
|
|
|
9228
|
-
declare const useClasses_34: (classesProp?: Partial<Record<"root" | "disabled" | "readOnly" | "switch" | "switchBase" | "track" | "
|
|
9238
|
+
declare const useClasses_34: (classesProp?: Partial<Record<"root" | "checked" | "disabled" | "readOnly" | "switch" | "switchBase" | "track" | "thumb" | "focusVisible", string>>, addStatic?: boolean) => {
|
|
9229
9239
|
readonly classes: {
|
|
9230
9240
|
root: string;
|
|
9231
9241
|
switch: string;
|
|
@@ -9269,7 +9279,7 @@ declare const useClasses_36: (classesProp?: Partial<Record<"root" | "semantic" |
|
|
|
9269
9279
|
readonly cx: (...args: any) => string;
|
|
9270
9280
|
};
|
|
9271
9281
|
|
|
9272
|
-
declare const useClasses_37: (classesProp?: Partial<Record<"container" | "label" | "root" | "
|
|
9282
|
+
declare const useClasses_37: (classesProp?: Partial<Record<"container" | "label" | "root" | "checked" | "semantic" | "indeterminate" | "disabled" | "checkbox" | "focusVisible" | "invalidContainer" | "invalidCheckbox", string>>, addStatic?: boolean) => {
|
|
9273
9283
|
readonly classes: {
|
|
9274
9284
|
root: string;
|
|
9275
9285
|
container: string;
|
|
@@ -10288,7 +10298,7 @@ declare const useClasses_97: (classesProp?: Partial<Record<"root" | "topGroup" |
|
|
|
10288
10298
|
readonly cx: (...args: any) => string;
|
|
10289
10299
|
};
|
|
10290
10300
|
|
|
10291
|
-
declare const useClasses_98: (classesProp?: Partial<Record<"container" | "label" | "root" | "
|
|
10301
|
+
declare const useClasses_98: (classesProp?: Partial<Record<"container" | "label" | "root" | "checked" | "semantic" | "disabled" | "radio" | "focusVisible" | "invalidContainer" | "invalidRadio", string>>, addStatic?: boolean) => {
|
|
10292
10302
|
readonly classes: {
|
|
10293
10303
|
root: string;
|
|
10294
10304
|
container: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.91.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Core React components for the NEXT Design System.",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.11.0",
|
|
34
34
|
"@emotion/serialize": "^1.1.2",
|
|
35
|
-
"@hitachivantara/uikit-react-icons": "^5.14.
|
|
36
|
-
"@hitachivantara/uikit-react-shared": "^5.3.
|
|
37
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
38
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-icons": "^5.14.2",
|
|
36
|
+
"@hitachivantara/uikit-react-shared": "^5.3.27",
|
|
37
|
+
"@hitachivantara/uikit-react-utils": "^0.2.28",
|
|
38
|
+
"@hitachivantara/uikit-styles": "^5.44.0",
|
|
39
39
|
"@internationalized/date": "^3.2.0",
|
|
40
40
|
"@mui/base": "5.0.0-beta.68",
|
|
41
41
|
"@popperjs/core": "^2.11.8",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"access": "public",
|
|
63
63
|
"directory": "package"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6e2771d0ab5d8b8f3fa36e35da3c4233ffa59db9",
|
|
66
66
|
"exports": {
|
|
67
67
|
".": {
|
|
68
68
|
"types": "./dist/types/index.d.ts",
|