@hitachivantara/uikit-react-core 5.88.0 → 5.90.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/ActionBar/ActionBar.styles.cjs +1 -1
- package/dist/cjs/ActionsGeneric/ActionsGeneric.cjs +1 -2
- package/dist/cjs/AppSwitcher/Action/Action.cjs +2 -2
- package/dist/cjs/AppSwitcher/Action/Action.styles.cjs +3 -3
- package/dist/cjs/Avatar/Avatar.cjs +6 -9
- package/dist/cjs/Avatar/Avatar.styles.cjs +3 -2
- package/dist/cjs/AvatarGroup/AvatarGroup.cjs +1 -1
- package/dist/cjs/AvatarGroup/AvatarGroup.styles.cjs +1 -1
- package/dist/cjs/Badge/Badge.styles.cjs +2 -2
- package/dist/cjs/Banner/Banner.cjs +7 -5
- package/dist/cjs/Banner/BannerContent/BannerContent.cjs +59 -97
- package/dist/cjs/Banner/BannerContent/BannerContent.styles.cjs +21 -47
- package/dist/cjs/BaseCheckBox/BaseCheckBox.styles.cjs +17 -17
- package/dist/cjs/BaseDropdown/BaseDropdown.cjs +1 -1
- package/dist/cjs/BaseDropdown/BaseDropdown.styles.cjs +19 -20
- package/dist/cjs/BaseInput/BaseInput.styles.cjs +15 -18
- package/dist/cjs/BaseRadio/BaseRadio.styles.cjs +17 -17
- package/dist/cjs/BaseSwitch/BaseSwitch.styles.cjs +10 -10
- package/dist/cjs/BreadCrumb/Page/Page.styles.cjs +2 -2
- package/dist/cjs/BreadCrumb/PathElement/PathElement.cjs +1 -1
- package/dist/cjs/BreadCrumb/utils.cjs +1 -1
- package/dist/cjs/BulkActions/BulkActions.styles.cjs +6 -6
- package/dist/cjs/Button/Button.cjs +1 -2
- package/dist/cjs/Button/Button.styles.cjs +8 -14
- package/dist/cjs/ButtonBase/ButtonBase.styles.cjs +2 -2
- package/dist/cjs/Calendar/Calendar.styles.cjs +1 -1
- package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.styles.cjs +1 -1
- package/dist/cjs/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.cjs +1 -1
- package/dist/cjs/Calendar/CalendarNavigation/Navigation/Navigation.styles.cjs +1 -1
- package/dist/cjs/Calendar/SingleCalendar/CalendarCell.styles.cjs +8 -8
- package/dist/cjs/Calendar/SingleCalendar/SingleCalendar.styles.cjs +11 -11
- package/dist/cjs/Card/Card.cjs +1 -1
- package/dist/cjs/Card/Card.styles.cjs +3 -7
- package/dist/cjs/Carousel/Carousel.styles.cjs +8 -8
- package/dist/cjs/CheckBox/CheckBox.styles.cjs +5 -5
- package/dist/cjs/CheckBoxGroup/CheckBoxGroup.styles.cjs +1 -1
- package/dist/cjs/ColorPicker/Picker/Picker.styles.cjs +2 -2
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +1 -1
- package/dist/cjs/DatePicker/DatePicker.styles.cjs +2 -3
- package/dist/cjs/Dialog/Actions/Actions.styles.cjs +1 -1
- package/dist/cjs/Dialog/Dialog.styles.cjs +6 -4
- package/dist/cjs/DotPagination/DotPagination.styles.cjs +5 -2
- package/dist/cjs/Drawer/Drawer.styles.cjs +2 -2
- package/dist/cjs/Dropdown/Dropdown.styles.cjs +6 -6
- package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +7 -12
- package/dist/cjs/FileUploader/DropZone/DropZone.styles.cjs +7 -7
- package/dist/cjs/FileUploader/FileList/FileList.styles.cjs +2 -2
- package/dist/cjs/FileUploader/Preview/Preview.styles.cjs +1 -1
- package/dist/cjs/FilterGroup/FilterContent/FilterContent.styles.cjs +1 -1
- package/dist/cjs/Footer/Footer.styles.cjs +3 -3
- package/dist/cjs/FormElement/Adornment/Adornment.styles.cjs +1 -4
- package/dist/cjs/FormElement/CharCounter/CharCounter.styles.cjs +1 -1
- package/dist/cjs/FormElement/InfoMessage/InfoMessage.styles.cjs +2 -2
- package/dist/cjs/FormElement/Label/Label.styles.cjs +1 -1
- package/dist/cjs/FormElement/Suggestions/Suggestions.styles.cjs +2 -2
- package/dist/cjs/FormElement/WarningText/WarningText.styles.cjs +1 -1
- package/dist/cjs/GlobalActions/GlobalActions.styles.cjs +3 -3
- package/dist/cjs/Header/Actions/Actions.styles.cjs +1 -1
- package/dist/cjs/Header/Brand/Brand.styles.cjs +1 -1
- package/dist/cjs/Header/Header.styles.cjs +1 -1
- package/dist/cjs/Header/Navigation/MenuBar/Bar.styles.cjs +3 -3
- package/dist/cjs/Header/Navigation/MenuItem/MenuItem.styles.cjs +3 -3
- package/dist/cjs/IconContainer/IconContainer.cjs +81 -0
- package/dist/cjs/InlineEditor/InlineEditor.cjs +1 -1
- package/dist/cjs/InlineEditor/InlineEditor.styles.cjs +4 -4
- package/dist/cjs/Input/Input.styles.cjs +2 -2
- package/dist/cjs/List/List.styles.cjs +1 -1
- package/dist/cjs/ListContainer/ListItem/ListItem.styles.cjs +6 -12
- package/dist/cjs/Loading/Loading.cjs +2 -3
- package/dist/cjs/Loading/Loading.styles.cjs +4 -2
- package/dist/cjs/LoadingContainer/LoadingContainer.styles.cjs +1 -1
- package/dist/cjs/Login/Login.styles.cjs +1 -1
- package/dist/cjs/MultiButton/MultiButton.styles.cjs +15 -15
- package/dist/cjs/Pagination/Pagination.styles.cjs +1 -1
- package/dist/cjs/Pagination/Select.styles.cjs +3 -3
- package/dist/cjs/Panel/Panel.styles.cjs +2 -2
- package/dist/cjs/ProgressBar/ProgressBar.styles.cjs +2 -2
- package/dist/cjs/QueryBuilder/QueryBuilder.styles.cjs +7 -7
- package/dist/cjs/QueryBuilder/Rule/Rule.styles.cjs +3 -3
- package/dist/cjs/Radio/Radio.styles.cjs +6 -3
- package/dist/cjs/RadioGroup/RadioGroup.styles.cjs +1 -1
- package/dist/cjs/ScrollToHorizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.cjs +3 -3
- package/dist/cjs/ScrollToHorizontal/ScrollToHorizontal.styles.cjs +1 -1
- package/dist/cjs/ScrollToVertical/ScrollToVertical.styles.cjs +1 -1
- package/dist/cjs/ScrollToVertical/VerticalScrollListItem/VerticalScrollListItem.styles.cjs +6 -6
- package/dist/cjs/Section/Section.styles.cjs +2 -3
- package/dist/cjs/Select/Select.styles.cjs +3 -3
- package/dist/cjs/SelectionList/SelectionList.styles.cjs +1 -1
- package/dist/cjs/Skeleton/Skeleton.styles.cjs +3 -3
- package/dist/cjs/Slider/Slider.styles.cjs +14 -16
- package/dist/cjs/Slider/SliderInput/SliderInput.cjs +1 -1
- package/dist/cjs/Slider/base.cjs +6 -8
- package/dist/cjs/Slider/utils.cjs +10 -10
- package/dist/cjs/Snackbar/Snackbar.cjs +8 -5
- package/dist/cjs/Snackbar/SnackbarContent/SnackbarContent.cjs +20 -28
- package/dist/cjs/Snackbar/SnackbarContent/SnackbarContent.styles.cjs +28 -56
- package/dist/cjs/Stack/Stack.styles.cjs +1 -1
- package/dist/cjs/Switch/Switch.styles.cjs +1 -1
- package/dist/cjs/Table/Table.styles.cjs +1 -1
- package/dist/cjs/Table/TableCell/TableCell.styles.cjs +4 -4
- package/dist/cjs/Table/TableHeader/TableHeader.styles.cjs +6 -6
- package/dist/cjs/Table/TableRow/TableRow.styles.cjs +10 -10
- package/dist/cjs/{TableSection → Table/TableSection}/TableSection.cjs +2 -2
- package/dist/cjs/{TableSection → Table/TableSection}/TableSection.styles.cjs +18 -18
- package/dist/cjs/Table/hooks/useHvPagination.cjs +0 -1
- package/dist/cjs/Table/hooks/useHvRowExpand.cjs +3 -4
- package/dist/cjs/Table/hooks/useHvRowSelection.cjs +0 -3
- package/dist/cjs/Table/hooks/useHvSticky.cjs +1 -1
- package/dist/cjs/Table/renderers/ProgressColumnCell.cjs +3 -4
- package/dist/cjs/Tabs/Tab/Tab.styles.cjs +4 -7
- package/dist/cjs/Tag/Tag.cjs +1 -1
- package/dist/cjs/Tag/Tag.styles.cjs +6 -6
- package/dist/cjs/TagsInput/TagsInput.styles.cjs +9 -12
- package/dist/cjs/TimePicker/TimePicker.cjs +1 -1
- package/dist/cjs/TimePicker/TimePicker.styles.cjs +3 -4
- package/dist/cjs/Tooltip/Tooltip.styles.cjs +2 -2
- package/dist/cjs/TreeView/TreeItem/TreeItem.styles.cjs +5 -5
- package/dist/cjs/Typography/Typography.styles.cjs +3 -2
- package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +3 -6
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +1 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +3 -7
- package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +3 -3
- package/dist/cjs/index.cjs +9 -18
- package/dist/cjs/providers/ThemeProvider.cjs +11 -11
- package/dist/cjs/utils/Callout.cjs +142 -0
- package/dist/cjs/utils/iconVariant.cjs +4 -4
- package/dist/esm/ActionBar/ActionBar.styles.js +1 -1
- package/dist/esm/ActionBar/ActionBar.styles.js.map +1 -1
- package/dist/esm/ActionsGeneric/ActionsGeneric.js +1 -2
- package/dist/esm/ActionsGeneric/ActionsGeneric.js.map +1 -1
- package/dist/esm/AppSwitcher/Action/Action.js +2 -2
- package/dist/esm/AppSwitcher/Action/Action.js.map +1 -1
- package/dist/esm/AppSwitcher/Action/Action.styles.js +3 -3
- package/dist/esm/AppSwitcher/Action/Action.styles.js.map +1 -1
- package/dist/esm/Avatar/Avatar.js +7 -10
- package/dist/esm/Avatar/Avatar.js.map +1 -1
- package/dist/esm/Avatar/Avatar.styles.js +3 -2
- package/dist/esm/Avatar/Avatar.styles.js.map +1 -1
- package/dist/esm/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/esm/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/esm/AvatarGroup/AvatarGroup.styles.js +1 -1
- package/dist/esm/AvatarGroup/AvatarGroup.styles.js.map +1 -1
- package/dist/esm/Badge/Badge.styles.js +2 -2
- package/dist/esm/Badge/Badge.styles.js.map +1 -1
- package/dist/esm/Banner/Banner.js +7 -5
- package/dist/esm/Banner/Banner.js.map +1 -1
- package/dist/esm/Banner/BannerContent/BannerContent.js +60 -96
- package/dist/esm/Banner/BannerContent/BannerContent.js.map +1 -1
- package/dist/esm/Banner/BannerContent/BannerContent.styles.js +21 -47
- package/dist/esm/Banner/BannerContent/BannerContent.styles.js.map +1 -1
- package/dist/esm/BaseCheckBox/BaseCheckBox.styles.js +17 -17
- package/dist/esm/BaseCheckBox/BaseCheckBox.styles.js.map +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.js +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.js.map +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.styles.js +19 -20
- package/dist/esm/BaseDropdown/BaseDropdown.styles.js.map +1 -1
- package/dist/esm/BaseInput/BaseInput.styles.js +15 -18
- package/dist/esm/BaseInput/BaseInput.styles.js.map +1 -1
- package/dist/esm/BaseRadio/BaseRadio.styles.js +17 -17
- package/dist/esm/BaseRadio/BaseRadio.styles.js.map +1 -1
- package/dist/esm/BaseSwitch/BaseSwitch.styles.js +10 -10
- package/dist/esm/BaseSwitch/BaseSwitch.styles.js.map +1 -1
- package/dist/esm/BreadCrumb/Page/Page.styles.js +2 -2
- package/dist/esm/BreadCrumb/Page/Page.styles.js.map +1 -1
- package/dist/esm/BreadCrumb/PathElement/PathElement.js +1 -1
- package/dist/esm/BreadCrumb/PathElement/PathElement.js.map +1 -1
- package/dist/esm/BreadCrumb/utils.js +1 -1
- package/dist/esm/BreadCrumb/utils.js.map +1 -1
- package/dist/esm/BulkActions/BulkActions.styles.js +6 -6
- package/dist/esm/BulkActions/BulkActions.styles.js.map +1 -1
- package/dist/esm/Button/Button.js +2 -3
- package/dist/esm/Button/Button.js.map +1 -1
- package/dist/esm/Button/Button.styles.js +8 -14
- package/dist/esm/Button/Button.styles.js.map +1 -1
- package/dist/esm/ButtonBase/ButtonBase.styles.js +2 -2
- package/dist/esm/ButtonBase/ButtonBase.styles.js.map +1 -1
- package/dist/esm/Calendar/Calendar.styles.js +1 -1
- package/dist/esm/Calendar/Calendar.styles.js.map +1 -1
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js +1 -1
- package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/dist/esm/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.js +1 -1
- package/dist/esm/Calendar/CalendarNavigation/MonthSelector/MonthSelector.styles.js.map +1 -1
- package/dist/esm/Calendar/CalendarNavigation/Navigation/Navigation.styles.js +1 -1
- package/dist/esm/Calendar/CalendarNavigation/Navigation/Navigation.styles.js.map +1 -1
- package/dist/esm/Calendar/SingleCalendar/CalendarCell.styles.js +8 -8
- package/dist/esm/Calendar/SingleCalendar/CalendarCell.styles.js.map +1 -1
- package/dist/esm/Calendar/SingleCalendar/SingleCalendar.styles.js +11 -11
- package/dist/esm/Calendar/SingleCalendar/SingleCalendar.styles.js.map +1 -1
- package/dist/esm/Card/Card.js +1 -1
- package/dist/esm/Card/Card.js.map +1 -1
- package/dist/esm/Card/Card.styles.js +3 -7
- package/dist/esm/Card/Card.styles.js.map +1 -1
- package/dist/esm/Carousel/Carousel.styles.js +8 -8
- package/dist/esm/Carousel/Carousel.styles.js.map +1 -1
- package/dist/esm/CheckBox/CheckBox.styles.js +5 -5
- package/dist/esm/CheckBox/CheckBox.styles.js.map +1 -1
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js +1 -1
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.styles.js.map +1 -1
- package/dist/esm/ColorPicker/Picker/Picker.styles.js +2 -2
- package/dist/esm/ColorPicker/Picker/Picker.styles.js.map +1 -1
- package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -1
- package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js.map +1 -1
- package/dist/esm/DatePicker/DatePicker.styles.js +2 -3
- package/dist/esm/DatePicker/DatePicker.styles.js.map +1 -1
- package/dist/esm/Dialog/Actions/Actions.styles.js +1 -1
- package/dist/esm/Dialog/Actions/Actions.styles.js.map +1 -1
- package/dist/esm/Dialog/Dialog.styles.js +6 -4
- package/dist/esm/Dialog/Dialog.styles.js.map +1 -1
- package/dist/esm/DotPagination/DotPagination.styles.js +5 -2
- 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/Dropdown/Dropdown.styles.js +6 -6
- package/dist/esm/Dropdown/Dropdown.styles.js.map +1 -1
- package/dist/esm/DropdownButton/DropdownButton.styles.js +7 -12
- package/dist/esm/DropdownButton/DropdownButton.styles.js.map +1 -1
- package/dist/esm/FileUploader/DropZone/DropZone.styles.js +7 -7
- package/dist/esm/FileUploader/DropZone/DropZone.styles.js.map +1 -1
- package/dist/esm/FileUploader/FileList/FileList.styles.js +2 -2
- package/dist/esm/FileUploader/FileList/FileList.styles.js.map +1 -1
- package/dist/esm/FileUploader/Preview/Preview.styles.js +1 -1
- package/dist/esm/FileUploader/Preview/Preview.styles.js.map +1 -1
- package/dist/esm/FilterGroup/FilterContent/FilterContent.styles.js +1 -1
- package/dist/esm/FilterGroup/FilterContent/FilterContent.styles.js.map +1 -1
- package/dist/esm/Footer/Footer.styles.js +3 -3
- package/dist/esm/Footer/Footer.styles.js.map +1 -1
- package/dist/esm/FormElement/Adornment/Adornment.styles.js +1 -4
- package/dist/esm/FormElement/Adornment/Adornment.styles.js.map +1 -1
- package/dist/esm/FormElement/CharCounter/CharCounter.styles.js +1 -1
- package/dist/esm/FormElement/CharCounter/CharCounter.styles.js.map +1 -1
- package/dist/esm/FormElement/InfoMessage/InfoMessage.styles.js +2 -2
- package/dist/esm/FormElement/InfoMessage/InfoMessage.styles.js.map +1 -1
- package/dist/esm/FormElement/Label/Label.styles.js +1 -1
- package/dist/esm/FormElement/Label/Label.styles.js.map +1 -1
- package/dist/esm/FormElement/Suggestions/Suggestions.styles.js +2 -2
- package/dist/esm/FormElement/Suggestions/Suggestions.styles.js.map +1 -1
- package/dist/esm/FormElement/WarningText/WarningText.styles.js +1 -1
- package/dist/esm/FormElement/WarningText/WarningText.styles.js.map +1 -1
- package/dist/esm/GlobalActions/GlobalActions.styles.js +3 -3
- package/dist/esm/GlobalActions/GlobalActions.styles.js.map +1 -1
- package/dist/esm/Header/Actions/Actions.styles.js +1 -1
- package/dist/esm/Header/Actions/Actions.styles.js.map +1 -1
- package/dist/esm/Header/Brand/Brand.styles.js +1 -1
- package/dist/esm/Header/Brand/Brand.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/Header/Navigation/MenuBar/Bar.styles.js +3 -3
- package/dist/esm/Header/Navigation/MenuBar/Bar.styles.js.map +1 -1
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js +3 -3
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js.map +1 -1
- package/dist/esm/IconContainer/IconContainer.js +81 -0
- package/dist/esm/IconContainer/IconContainer.js.map +1 -0
- package/dist/esm/InlineEditor/InlineEditor.js +1 -1
- package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.styles.js +4 -4
- package/dist/esm/InlineEditor/InlineEditor.styles.js.map +1 -1
- package/dist/esm/Input/Input.styles.js +2 -2
- package/dist/esm/Input/Input.styles.js.map +1 -1
- package/dist/esm/List/List.styles.js +1 -1
- package/dist/esm/List/List.styles.js.map +1 -1
- package/dist/esm/ListContainer/ListItem/ListItem.styles.js +6 -12
- package/dist/esm/ListContainer/ListItem/ListItem.styles.js.map +1 -1
- package/dist/esm/Loading/Loading.js +2 -3
- package/dist/esm/Loading/Loading.js.map +1 -1
- package/dist/esm/Loading/Loading.styles.js +4 -2
- package/dist/esm/Loading/Loading.styles.js.map +1 -1
- package/dist/esm/LoadingContainer/LoadingContainer.styles.js +1 -1
- package/dist/esm/LoadingContainer/LoadingContainer.styles.js.map +1 -1
- package/dist/esm/Login/Login.styles.js +1 -1
- package/dist/esm/Login/Login.styles.js.map +1 -1
- package/dist/esm/MultiButton/MultiButton.styles.js +15 -15
- package/dist/esm/MultiButton/MultiButton.styles.js.map +1 -1
- package/dist/esm/Pagination/Pagination.styles.js +1 -1
- package/dist/esm/Pagination/Pagination.styles.js.map +1 -1
- package/dist/esm/Pagination/Select.styles.js +3 -3
- package/dist/esm/Pagination/Select.styles.js.map +1 -1
- package/dist/esm/Panel/Panel.styles.js +2 -2
- package/dist/esm/Panel/Panel.styles.js.map +1 -1
- package/dist/esm/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/esm/ProgressBar/ProgressBar.styles.js.map +1 -1
- package/dist/esm/QueryBuilder/QueryBuilder.styles.js +7 -7
- package/dist/esm/QueryBuilder/QueryBuilder.styles.js.map +1 -1
- package/dist/esm/QueryBuilder/Rule/Rule.styles.js +3 -3
- package/dist/esm/QueryBuilder/Rule/Rule.styles.js.map +1 -1
- package/dist/esm/Radio/Radio.styles.js +6 -3
- package/dist/esm/Radio/Radio.styles.js.map +1 -1
- package/dist/esm/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/esm/RadioGroup/RadioGroup.styles.js.map +1 -1
- package/dist/esm/ScrollToHorizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js +3 -3
- package/dist/esm/ScrollToHorizontal/HorizontalScrollListItem/HorizontalScrollListItem.styles.js.map +1 -1
- package/dist/esm/ScrollToHorizontal/ScrollToHorizontal.styles.js +1 -1
- package/dist/esm/ScrollToHorizontal/ScrollToHorizontal.styles.js.map +1 -1
- package/dist/esm/ScrollToVertical/ScrollToVertical.styles.js +1 -1
- package/dist/esm/ScrollToVertical/ScrollToVertical.styles.js.map +1 -1
- package/dist/esm/ScrollToVertical/VerticalScrollListItem/VerticalScrollListItem.styles.js +6 -6
- package/dist/esm/ScrollToVertical/VerticalScrollListItem/VerticalScrollListItem.styles.js.map +1 -1
- package/dist/esm/Section/Section.styles.js +2 -3
- package/dist/esm/Section/Section.styles.js.map +1 -1
- package/dist/esm/Select/Select.styles.js +3 -3
- package/dist/esm/Select/Select.styles.js.map +1 -1
- package/dist/esm/SelectionList/SelectionList.styles.js +1 -1
- package/dist/esm/SelectionList/SelectionList.styles.js.map +1 -1
- package/dist/esm/Skeleton/Skeleton.styles.js +3 -3
- package/dist/esm/Skeleton/Skeleton.styles.js.map +1 -1
- package/dist/esm/Slider/Slider.styles.js +14 -16
- package/dist/esm/Slider/Slider.styles.js.map +1 -1
- package/dist/esm/Slider/SliderInput/SliderInput.js +1 -1
- package/dist/esm/Slider/SliderInput/SliderInput.js.map +1 -1
- package/dist/esm/Slider/base.js +6 -8
- package/dist/esm/Slider/base.js.map +1 -1
- package/dist/esm/Slider/utils.js +10 -10
- package/dist/esm/Slider/utils.js.map +1 -1
- package/dist/esm/Snackbar/Snackbar.js +8 -5
- package/dist/esm/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.js +23 -29
- package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.js.map +1 -1
- package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.styles.js +28 -56
- package/dist/esm/Snackbar/SnackbarContent/SnackbarContent.styles.js.map +1 -1
- package/dist/esm/SnackbarProvider/SnackbarProvider.js.map +1 -1
- package/dist/esm/Stack/Stack.styles.js +1 -1
- package/dist/esm/Stack/Stack.styles.js.map +1 -1
- package/dist/esm/Switch/Switch.styles.js +1 -1
- package/dist/esm/Switch/Switch.styles.js.map +1 -1
- package/dist/esm/Table/Table.js.map +1 -1
- package/dist/esm/Table/Table.styles.js +1 -1
- package/dist/esm/Table/Table.styles.js.map +1 -1
- package/dist/esm/Table/TableCell/TableCell.styles.js +4 -4
- package/dist/esm/Table/TableCell/TableCell.styles.js.map +1 -1
- package/dist/esm/Table/TableHeader/TableHeader.styles.js +6 -6
- package/dist/esm/Table/TableHeader/TableHeader.styles.js.map +1 -1
- package/dist/esm/Table/TableRow/TableRow.styles.js +10 -10
- package/dist/esm/Table/TableRow/TableRow.styles.js.map +1 -1
- package/dist/esm/{TableSection → Table/TableSection}/TableSection.js +2 -2
- package/dist/esm/Table/TableSection/TableSection.js.map +1 -0
- package/dist/esm/{TableSection → Table/TableSection}/TableSection.styles.js +18 -18
- package/dist/esm/Table/TableSection/TableSection.styles.js.map +1 -0
- package/dist/esm/Table/hooks/useHvPagination.js +0 -1
- package/dist/esm/Table/hooks/useHvPagination.js.map +1 -1
- package/dist/esm/Table/hooks/useHvRowExpand.js +3 -4
- package/dist/esm/Table/hooks/useHvRowExpand.js.map +1 -1
- package/dist/esm/Table/hooks/useHvRowSelection.js +0 -3
- package/dist/esm/Table/hooks/useHvRowSelection.js.map +1 -1
- package/dist/esm/Table/hooks/useHvSticky.js +1 -1
- package/dist/esm/Table/hooks/useHvSticky.js.map +1 -1
- package/dist/esm/Table/renderers/ProgressColumnCell.js +4 -5
- package/dist/esm/Table/renderers/ProgressColumnCell.js.map +1 -1
- package/dist/esm/Tabs/Tab/Tab.styles.js +4 -7
- package/dist/esm/Tabs/Tab/Tab.styles.js.map +1 -1
- package/dist/esm/Tag/Tag.js +1 -1
- package/dist/esm/Tag/Tag.js.map +1 -1
- package/dist/esm/Tag/Tag.styles.js +6 -6
- package/dist/esm/Tag/Tag.styles.js.map +1 -1
- package/dist/esm/TagsInput/TagsInput.styles.js +9 -12
- package/dist/esm/TagsInput/TagsInput.styles.js.map +1 -1
- package/dist/esm/TimePicker/TimePicker.js +1 -1
- package/dist/esm/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/TimePicker/TimePicker.styles.js +3 -4
- package/dist/esm/TimePicker/TimePicker.styles.js.map +1 -1
- package/dist/esm/Tooltip/Tooltip.styles.js +2 -2
- package/dist/esm/Tooltip/Tooltip.styles.js.map +1 -1
- package/dist/esm/TreeView/TreeItem/TreeItem.styles.js +5 -5
- package/dist/esm/TreeView/TreeItem/TreeItem.styles.js.map +1 -1
- package/dist/esm/Typography/Typography.styles.js +3 -2
- package/dist/esm/Typography/Typography.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +3 -6
- package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.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 +3 -7
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +3 -3
- package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
- package/dist/esm/index.js +61 -70
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/providers/ThemeProvider.js +11 -11
- package/dist/esm/providers/ThemeProvider.js.map +1 -1
- package/dist/esm/utils/Callout.js +140 -0
- package/dist/esm/utils/Callout.js.map +1 -0
- package/dist/esm/utils/hexToRgbA.js.map +1 -1
- package/dist/esm/utils/iconVariant.js +4 -4
- package/dist/esm/utils/iconVariant.js.map +1 -1
- package/dist/types/index.d.ts +533 -484
- package/package.json +6 -6
- package/dist/cjs/hocs/withTooltip.cjs +0 -53
- package/dist/cjs/utils/Random.cjs +0 -18
- package/dist/cjs/utils/checkValidHexColorValue.cjs +0 -7
- package/dist/cjs/utils/wrapperTooltip.cjs +0 -14
- package/dist/esm/TableSection/TableSection.js.map +0 -1
- package/dist/esm/TableSection/TableSection.styles.js.map +0 -1
- package/dist/esm/hocs/withTooltip.js +0 -53
- package/dist/esm/hocs/withTooltip.js.map +0 -1
- package/dist/esm/utils/Random.js +0 -18
- package/dist/esm/utils/Random.js.map +0 -1
- package/dist/esm/utils/checkValidHexColorValue.js +0 -7
- package/dist/esm/utils/checkValidHexColorValue.js.map +0 -1
- package/dist/esm/utils/wrapperTooltip.js +0 -14
- package/dist/esm/utils/wrapperTooltip.js.map +0 -1
|
@@ -5,7 +5,7 @@ const show = {
|
|
|
5
5
|
transition: ["top"],
|
|
6
6
|
boxShadow: theme.colors.shadow,
|
|
7
7
|
transitionDuration: "500ms",
|
|
8
|
-
backgroundColor: theme.colors.
|
|
8
|
+
backgroundColor: theme.colors.bgPage
|
|
9
9
|
};
|
|
10
10
|
const hide = {
|
|
11
11
|
top: 0,
|
|
@@ -26,14 +26,14 @@ const { staticClasses, useClasses } = createClasses("HvHeader-MenuBar", {
|
|
|
26
26
|
position: "absolute",
|
|
27
27
|
zIndex: -2,
|
|
28
28
|
height: theme.header.secondLevelHeight,
|
|
29
|
-
backgroundColor: theme.colors.
|
|
29
|
+
backgroundColor: theme.colors.bgPage,
|
|
30
30
|
"& li > div": {
|
|
31
31
|
marginTop: 0
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
menubar: {
|
|
35
35
|
position: "relative",
|
|
36
|
-
backgroundColor: theme.colors.
|
|
36
|
+
backgroundColor: theme.colors.bgContainer
|
|
37
37
|
},
|
|
38
38
|
hidden: { ...hide },
|
|
39
39
|
active: { ...show },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bar.styles.js","sources":["../../../../../src/Header/Navigation/MenuBar/Bar.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nconst show = {\n top: theme.header.height,\n transition: [\"top\"],\n boxShadow: theme.colors.shadow,\n transitionDuration: \"500ms\",\n backgroundColor: theme.colors.
|
|
1
|
+
{"version":3,"file":"Bar.styles.js","sources":["../../../../../src/Header/Navigation/MenuBar/Bar.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nconst show = {\n top: theme.header.height,\n transition: [\"top\"],\n boxShadow: theme.colors.shadow,\n transitionDuration: \"500ms\",\n backgroundColor: theme.colors.bgPage,\n};\n\nconst hide = {\n top: 0,\n transition: [\"top\"],\n boxShadow: \"none\",\n transitionDuration: \"300ms\",\n};\n\n// TODO - rename to HvHeaderMenuBar (the actual component's name) in v6\nexport const { staticClasses, useClasses } = createClasses(\"HvHeader-MenuBar\", {\n root: {\n left: 0,\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n menu: {\n position: \"absolute\",\n zIndex: -2,\n height: theme.header.secondLevelHeight,\n backgroundColor: theme.colors.bgPage,\n \"& li > div\": {\n marginTop: 0,\n },\n },\n menubar: {\n position: \"relative\",\n backgroundColor: theme.colors.bgContainer,\n },\n hidden: { ...hide },\n active: { ...show },\n list: {\n margin: 0,\n padding: 0,\n display: \"inherit\",\n alignItems: \"center\",\n height: \"100%\",\n \"&:hover $active\": {\n ...hide,\n },\n \"& li:hover > $hidden\": {\n ...show,\n },\n\n \"&:focus-within $active\": {\n ...hide,\n zIndex: -2,\n },\n \"& li:focus-within > $hidden\": {\n ...show,\n zIndex: -1,\n },\n },\n});\n"],"names":[],"mappings":";;AAGA,MAAM,OAAO;AAAA,EACX,KAAK,MAAM,OAAO;AAAA,EAClB,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW,MAAM,OAAO;AAAA,EACxB,oBAAoB;AAAA,EACpB,iBAAiB,MAAM,OAAO;AAChC;AAEA,MAAM,OAAO;AAAA,EACX,KAAK;AAAA,EACL,YAAY,CAAC,KAAK;AAAA,EAClB,WAAW;AAAA,EACX,oBAAoB;AACtB;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,oBAAoB;AAAA,EAC7E,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,YAAY;AAAA,EACd;AAAA,EACA,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ,MAAM,OAAO;AAAA,IACrB,iBAAiB,MAAM,OAAO;AAAA,IAC9B,cAAc;AAAA,MACZ,WAAW;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,iBAAiB,MAAM,OAAO;AAAA,EAChC;AAAA,EACA,QAAQ,EAAE,GAAG,KAAK;AAAA,EAClB,QAAQ,EAAE,GAAG,KAAK;AAAA,EAClB,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,mBAAmB;AAAA,MACjB,GAAG;AAAA,IACL;AAAA,IACA,wBAAwB;AAAA,MACtB,GAAG;AAAA,IACL;AAAA,IAEA,0BAA0B;AAAA,MACxB,GAAG;AAAA,MACH,QAAQ;AAAA,IACV;AAAA,IACA,+BAA+B;AAAA,MAC7B,GAAG;AAAA,MACH,QAAQ;AAAA,IAAA;AAAA,EACV;AAEJ,CAAC;"}
|
|
@@ -45,14 +45,14 @@ const { staticClasses, useClasses } = createClasses(
|
|
|
45
45
|
height: "100%",
|
|
46
46
|
borderBottom: "4px solid transparent",
|
|
47
47
|
":hover, :focus-within": {
|
|
48
|
-
backgroundColor: theme.colors.
|
|
48
|
+
backgroundColor: theme.colors.bgHover
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
menu: {},
|
|
52
52
|
menubar: {},
|
|
53
53
|
selected: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
color: theme.colors.text,
|
|
55
|
+
borderColor: "currentcolor"
|
|
56
56
|
},
|
|
57
57
|
item,
|
|
58
58
|
link: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.styles.js","sources":["../../../../../src/Header/Navigation/MenuItem/MenuItem.styles.tsx"],"sourcesContent":["import type { CSSInterpolation } from \"@emotion/serialize\";\nimport { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { outlineStyles } from \"../../../utils/focusUtils\";\n\nconst item: CSSInterpolation = {\n border: \"none\",\n cursor: \"pointer\",\n padding: `${theme.space.xs} ${theme.space.sm}`,\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n \"&:active\": {\n outline: \"none\",\n },\n \"&:focus\": {\n outline: \"none\",\n },\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n \"& span\": {\n display: \"inline-flex\",\n color: \"inherit\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n },\n \"& span::after\": {\n content: \"attr(data-text)\",\n height: 0,\n visibility: \"hidden\",\n overflow: \"hidden\",\n userSelect: \"none\",\n pointerEvents: \"none\",\n fontWeight: theme.fontWeights.semibold,\n\n \"@media speech\": {\n display: \"none\",\n },\n },\n};\n\n// TODO - rename to HvHeaderMenuItem (the actual component's name) in v6\nexport const { staticClasses, useClasses } = createClasses(\n \"HvHeader-MenuItem\",\n {\n root: {\n display: \"inline\",\n height: \"100%\",\n borderBottom: \"4px solid transparent\",\n\n \":hover, :focus-within\": {\n backgroundColor: theme.colors.
|
|
1
|
+
{"version":3,"file":"MenuItem.styles.js","sources":["../../../../../src/Header/Navigation/MenuItem/MenuItem.styles.tsx"],"sourcesContent":["import type { CSSInterpolation } from \"@emotion/serialize\";\nimport { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { outlineStyles } from \"../../../utils/focusUtils\";\n\nconst item: CSSInterpolation = {\n border: \"none\",\n cursor: \"pointer\",\n padding: `${theme.space.xs} ${theme.space.sm}`,\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n \"&:active\": {\n outline: \"none\",\n },\n \"&:focus\": {\n outline: \"none\",\n },\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n \"& span\": {\n display: \"inline-flex\",\n color: \"inherit\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n },\n \"& span::after\": {\n content: \"attr(data-text)\",\n height: 0,\n visibility: \"hidden\",\n overflow: \"hidden\",\n userSelect: \"none\",\n pointerEvents: \"none\",\n fontWeight: theme.fontWeights.semibold,\n\n \"@media speech\": {\n display: \"none\",\n },\n },\n};\n\n// TODO - rename to HvHeaderMenuItem (the actual component's name) in v6\nexport const { staticClasses, useClasses } = createClasses(\n \"HvHeader-MenuItem\",\n {\n root: {\n display: \"inline\",\n height: \"100%\",\n borderBottom: \"4px solid transparent\",\n\n \":hover, :focus-within\": {\n backgroundColor: theme.colors.bgHover,\n },\n },\n menu: {},\n menubar: {},\n selected: {\n color: theme.colors.text,\n borderColor: \"currentcolor\",\n },\n item,\n link: {\n textDecoration: \"none\",\n },\n button: {\n color: \"inherit\",\n },\n },\n);\n"],"names":[],"mappings":";;;AAMA,MAAM,OAAyB;AAAA,EAC7B,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS,GAAG,MAAM,MAAM,EAAE,IAAI,MAAM,MAAM,EAAE;AAAA,EAC5C,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,YAAY;AAAA,IACV,SAAS;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EACA,mBAAmB;AAAA,IACjB,GAAG;AAAA,EACL;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,IACT,OAAO;AAAA,IACP,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,gBAAgB;AAAA,EAClB;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,YAAY,MAAM,YAAY;AAAA,IAE9B,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAGa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,cAAc;AAAA,MAEd,yBAAyB;AAAA,QACvB,iBAAiB,MAAM,OAAO;AAAA,MAAA;AAAA,IAElC;AAAA,IACA,MAAM,CAAC;AAAA,IACP,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,MACR,OAAO,MAAM,OAAO;AAAA,MACpB,aAAa;AAAA,IACf;AAAA,IACA;AAAA,IACA,MAAM;AAAA,MACJ,gBAAgB;AAAA,IAClB;AAAA,IACA,QAAQ;AAAA,MACN,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ;"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { createClasses, useDefaultProps, mergeStyles } from "@hitachivantara/uikit-react-utils";
|
|
4
|
+
import { getColor } from "@hitachivantara/uikit-styles";
|
|
5
|
+
const { staticClasses, useClasses } = createClasses("HvIconContainer", {
|
|
6
|
+
root: {
|
|
7
|
+
display: "inline-flex",
|
|
8
|
+
flex: "0 0 auto",
|
|
9
|
+
// ensure icon doesn't flex grow/shrink
|
|
10
|
+
fontSize: `var(--icsize, 16px)`,
|
|
11
|
+
// default size of 16px
|
|
12
|
+
transition: "rotate 0.2s ease",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
padding: 8
|
|
16
|
+
// default padding
|
|
17
|
+
// we're assuming svg children inherits from text color and size
|
|
18
|
+
},
|
|
19
|
+
xs: {
|
|
20
|
+
fontSize: 12,
|
|
21
|
+
padding: 10
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
fontSize: 16
|
|
25
|
+
},
|
|
26
|
+
md: {
|
|
27
|
+
fontSize: 32
|
|
28
|
+
},
|
|
29
|
+
lg: {
|
|
30
|
+
fontSize: 96
|
|
31
|
+
},
|
|
32
|
+
xl: {
|
|
33
|
+
fontSize: 112
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const HvIconContainer = forwardRef(function HvIconContainer2(props, ref) {
|
|
37
|
+
const {
|
|
38
|
+
className,
|
|
39
|
+
classes: classesProp,
|
|
40
|
+
style,
|
|
41
|
+
color,
|
|
42
|
+
size: sizeProp = "S",
|
|
43
|
+
rotate,
|
|
44
|
+
children,
|
|
45
|
+
...others
|
|
46
|
+
} = useDefaultProps("HvIconContainer", props);
|
|
47
|
+
const { cx, classes } = useClasses(classesProp);
|
|
48
|
+
const size = mapSizes(sizeProp);
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: cx(classes.root, className, {
|
|
54
|
+
[classes[size]]: size
|
|
55
|
+
}),
|
|
56
|
+
style: mergeStyles(style, {
|
|
57
|
+
color: getColor(color),
|
|
58
|
+
rotate: rotate ? "180deg" : void 0,
|
|
59
|
+
...style
|
|
60
|
+
}),
|
|
61
|
+
...others,
|
|
62
|
+
children
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
function mapSizes(size) {
|
|
67
|
+
if (typeof size === "number") return void 0;
|
|
68
|
+
const iconSizeMap = {
|
|
69
|
+
XS: "xs",
|
|
70
|
+
S: "sm",
|
|
71
|
+
M: "md",
|
|
72
|
+
L: "lg"
|
|
73
|
+
};
|
|
74
|
+
return iconSizeMap[size] || size;
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
HvIconContainer,
|
|
78
|
+
staticClasses as iconContainerClasses,
|
|
79
|
+
staticClasses,
|
|
80
|
+
useClasses
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconContainer.js","sources":["../../../src/IconContainer/IconContainer.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport {\n createClasses,\n ExtractNames,\n mergeStyles,\n useDefaultProps,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { getColor, HvColorAny, HvSize } from \"@hitachivantara/uikit-styles\";\n\ntype HvIconSize = \"XS\" | \"S\" | \"M\" | \"L\";\n\n// keep this aligned with `icon`'s package, TODO: dedupe\nexport const { staticClasses, useClasses } = createClasses(\"HvIconContainer\", {\n root: {\n display: \"inline-flex\",\n flex: \"0 0 auto\", // ensure icon doesn't flex grow/shrink\n fontSize: `var(--icsize, 16px)`, // default size of 16px\n transition: \"rotate 0.2s ease\",\n justifyContent: \"center\",\n alignItems: \"center\",\n padding: 8, // default padding\n // we're assuming svg children inherits from text color and size\n },\n xs: {\n fontSize: 12,\n padding: 10,\n },\n sm: {\n fontSize: 16,\n },\n md: {\n fontSize: 32,\n },\n lg: {\n fontSize: 96,\n },\n xl: {\n fontSize: 112,\n },\n});\n\nexport { staticClasses as iconContainerClasses };\n\nexport type HvIconContainerClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvIconContainerProps\n extends React.HTMLAttributes<HTMLDivElement> {\n classes?: HvIconContainerClasses;\n /**\n * A color to override the default icon colors.\n * Accepts any valid CSS color or color from the UI Kit palette.\n * @example \"warning\"\n */\n color?: HvColorAny;\n /**\n * The size of the icon container. Takes in a `number` in pixels or any `HvSize` or `IconSize`.\n *\n * This will also affect the size of the icon by changing the `font-size`.\n *\n * @example\n * size={16}\n * size=\"S\"\n * size=\"lg\"\n *\n * @default \"S\"\n */\n size?: HvSize | HvIconSize | number;\n /** Whether to rotate the icon 180deg. @private */\n rotate?: boolean;\n}\n/**\n * This component allows using the theme utilities, such as `color` and `size` in icons from\n * external icon libraries, such as FontAwesome or Phosphor.\n *\n * @example\n * <HvIconContainer size=\"lg\" color=\"warning\">\n * <FontAwesomeIcon icon={faUser} />\n * </HvIconContainer>\n */\nexport const HvIconContainer = forwardRef<\n // no-indent\n HTMLDivElement,\n HvIconContainerProps\n>(function HvIconContainer(props, ref) {\n const {\n className,\n classes: classesProp,\n style,\n color,\n size: sizeProp = \"S\",\n rotate,\n children,\n ...others\n } = useDefaultProps(\"HvIconContainer\", props);\n const { cx, classes } = useClasses(classesProp);\n\n const size = mapSizes(sizeProp);\n\n return (\n <div\n ref={ref}\n className={cx(classes.root, className, {\n [classes[size!]]: size,\n })}\n style={mergeStyles(style, {\n color: getColor(color),\n rotate: rotate ? \"180deg\" : undefined,\n ...style,\n })}\n {...others}\n >\n {children}\n </div>\n );\n});\n\nfunction mapSizes(size: HvSize | HvIconSize | number) {\n if (typeof size === \"number\") return undefined;\n const iconSizeMap: Record<HvIconSize, HvSize> = {\n XS: \"xs\",\n S: \"sm\",\n M: \"md\",\n L: \"lg\",\n };\n return iconSizeMap[size as HvIconSize] || size;\n}\n"],"names":["HvIconContainer"],"mappings":";;;;AAYO,MAAM,EAAE,eAAe,eAAe,cAAc,mBAAmB;AAAA,EAC5E,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,MAAM;AAAA;AAAA,IACN,UAAU;AAAA;AAAA,IACV,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,SAAS;AAAA;AAAA;AAAA,EAEX;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,IACV,SAAS;AAAA,EACX;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,IAAI;AAAA,IACF,UAAU;AAAA,EAAA;AAEd,CAAC;AAwCM,MAAM,kBAAkB,WAI7B,SAASA,iBAAgB,OAAO,KAAK;AAC/B,QAAA;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,MAAM,WAAW;AAAA,IACjB;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,mBAAmB,KAAK;AAC5C,QAAM,EAAE,IAAI,YAAY,WAAW,WAAW;AAExC,QAAA,OAAO,SAAS,QAAQ;AAG5B,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,WAAW,GAAG,QAAQ,MAAM,WAAW;AAAA,QACrC,CAAC,QAAQ,IAAK,CAAC,GAAG;AAAA,MAAA,CACnB;AAAA,MACD,OAAO,YAAY,OAAO;AAAA,QACxB,OAAO,SAAS,KAAK;AAAA,QACrB,QAAQ,SAAS,WAAW;AAAA,QAC5B,GAAG;AAAA,MAAA,CACJ;AAAA,MACA,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EACH;AAEJ,CAAC;AAED,SAAS,SAAS,MAAoC;AAChD,MAAA,OAAO,SAAS,SAAiB,QAAA;AACrC,QAAM,cAA0C;AAAA,IAC9C,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACO,SAAA,YAAY,IAAkB,KAAK;AAC5C;"}
|
|
@@ -102,7 +102,7 @@ const HvInlineEditor = fixedForwardRef(function HvInlineEditor2(props, ref) {
|
|
|
102
102
|
endIcon: /* @__PURE__ */ jsx(
|
|
103
103
|
Edit,
|
|
104
104
|
{
|
|
105
|
-
color: "
|
|
105
|
+
color: "textDisabled",
|
|
106
106
|
className: cx(classes.icon, {
|
|
107
107
|
[classes.iconVisible]: showIcon
|
|
108
108
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEditor.js","sources":["../../../src/InlineEditor/InlineEditor.tsx"],"sourcesContent":["import { useRef, useState } from \"react\";\nimport { Edit } from \"@hitachivantara/uikit-react-icons\";\nimport {\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { useControlled } from \"../hooks/useControlled\";\nimport { useEnhancedEffect } from \"../hooks/useEnhancedEffect\";\nimport { HvInput, HvInputProps } from \"../Input\";\nimport { HvTooltip } from \"../Tooltip\";\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport {\n HvTypography,\n HvTypographyProps,\n HvTypographyVariants,\n} from \"../Typography\";\nimport { isKey } from \"../utils/keyboardUtils\";\nimport { staticClasses, useClasses } from \"./InlineEditor.styles\";\n\nexport { staticClasses as inlineEditorClasses };\n\nexport type HvInlineEditorClasses = ExtractNames<typeof useClasses>;\n\nexport type HvInlineEditorProps<C extends React.ElementType = typeof HvInput> =\n PolymorphicComponentRef<\n C,\n {\n /** The value of the form element. */\n value?: string;\n /** The default value of the form element. */\n defaultValue?: string;\n /** Whether the Edit icon should always be visible */\n showIcon?: boolean;\n /** Variant of the HvTypography to display */\n variant?: HvTypographyVariants;\n /** Called when the input is blurred. */\n onBlur?: (\n event: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement>,\n value: string,\n ) => void;\n /** Called when the input value changes. */\n onChange?: (event: React.SyntheticEvent, value: string) => void;\n /** Called when there's a keydown event on the input. */\n onKeyDown?: (\n event:\n | React.KeyboardEvent<HTMLTextAreaElement | HTMLInputElement>\n | React.MouseEvent,\n value: string,\n ) => void;\n /** Props passed to the HvButton component */\n buttonProps?: HvButtonProps;\n /** Props passed to the HvTypography text component */\n typographyProps?: HvTypographyProps;\n /** Whether the editor is disabled or not. */\n disabled?: boolean;\n /** A Jss Object used to override or extend the styles applied to the empty state component. */\n classes?: HvInlineEditorClasses;\n /** The placeholder value of the input. */\n placeholder?: string;\n }\n >;\n\n/**\n * An Inline Editor allows the user to edit a record without making a major switch\n * between viewing and editing, making it an efficient method of updating a record.\n */\nexport const HvInlineEditor = fixedForwardRef(function HvInlineEditor<\n C extends React.ElementType = typeof HvInput,\n>(props: HvInlineEditorProps<C>, ref: PolymorphicRef<C>) {\n const {\n className,\n classes: classesProp,\n value: valueProp,\n defaultValue = \"\",\n showIcon,\n component: InputComponent = HvInput,\n variant = \"body\",\n placeholder = \"Enter text\",\n onBlur,\n onChange,\n onKeyDown,\n buttonProps,\n typographyProps,\n disabled,\n ...others\n } = useDefaultProps(\"HvInlineEditor\", props);\n\n const { classes, cx } = useClasses(classesProp);\n const [value, setValue] = useControlled(valueProp, defaultValue);\n const [editMode, setEditMode] = useState(false);\n const [cachedValue, setCachedValue] = useState(value);\n const inputRef = useRef<HTMLInputElement>();\n const { activeTheme } = useTheme();\n const [isOverflowing, setIsOverflowing] = useState(false);\n\n const typographyStyles = activeTheme?.typography[variant] || {};\n const { lineHeight } = typographyStyles;\n\n const checkOverflow = (el: HTMLElement | null) => {\n if (!el) return;\n setIsOverflowing(el.scrollWidth > el.clientWidth);\n };\n\n useEnhancedEffect(() => {\n const input = inputRef.current;\n if (editMode && input) {\n input.focus();\n input.select();\n }\n }, [editMode]);\n\n const handleClick = () => {\n setEditMode(true);\n setCachedValue(value);\n };\n\n const handleBlur: HvInputProps[\"onBlur\"] = (event) => {\n setEditMode(false);\n\n const newValue = value || cachedValue; // empty values should be ignored\n setValue(newValue);\n onBlur?.(event, newValue);\n };\n\n const handleKeyDown: HvInputProps[\"onKeyDown\"] = (event) => {\n let newValue = value;\n if (isKey(event, \"Esc\")) {\n newValue = cachedValue;\n setEditMode(false);\n setValue(newValue);\n }\n onKeyDown?.(event, newValue);\n };\n\n const handleChange: HvInputProps[\"onChange\"] = (event, val) => {\n setValue(val);\n onChange?.(event, val);\n };\n\n return (\n <div className={cx(classes.root, className)}>\n {editMode && !disabled ? (\n <InputComponent\n ref={ref}\n inputRef={inputRef}\n classes={{\n root: classes.inputRoot,\n input: classes.input,\n }}\n inputProps={{\n style: {\n ...typographyStyles,\n height: InputComponent === HvInput ? lineHeight : undefined,\n },\n }}\n value={value}\n onBlur={handleBlur}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n {...others}\n />\n ) : (\n <HvButton\n variant=\"secondaryGhost\"\n overrideIconColors={false}\n endIcon={\n <Edit\n color=\"
|
|
1
|
+
{"version":3,"file":"InlineEditor.js","sources":["../../../src/InlineEditor/InlineEditor.tsx"],"sourcesContent":["import { useRef, useState } from \"react\";\nimport { Edit } from \"@hitachivantara/uikit-react-icons\";\nimport {\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { useControlled } from \"../hooks/useControlled\";\nimport { useEnhancedEffect } from \"../hooks/useEnhancedEffect\";\nimport { HvInput, HvInputProps } from \"../Input\";\nimport { HvTooltip } from \"../Tooltip\";\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport {\n HvTypography,\n HvTypographyProps,\n HvTypographyVariants,\n} from \"../Typography\";\nimport { isKey } from \"../utils/keyboardUtils\";\nimport { staticClasses, useClasses } from \"./InlineEditor.styles\";\n\nexport { staticClasses as inlineEditorClasses };\n\nexport type HvInlineEditorClasses = ExtractNames<typeof useClasses>;\n\nexport type HvInlineEditorProps<C extends React.ElementType = typeof HvInput> =\n PolymorphicComponentRef<\n C,\n {\n /** The value of the form element. */\n value?: string;\n /** The default value of the form element. */\n defaultValue?: string;\n /** Whether the Edit icon should always be visible */\n showIcon?: boolean;\n /** Variant of the HvTypography to display */\n variant?: HvTypographyVariants;\n /** Called when the input is blurred. */\n onBlur?: (\n event: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement>,\n value: string,\n ) => void;\n /** Called when the input value changes. */\n onChange?: (event: React.SyntheticEvent, value: string) => void;\n /** Called when there's a keydown event on the input. */\n onKeyDown?: (\n event:\n | React.KeyboardEvent<HTMLTextAreaElement | HTMLInputElement>\n | React.MouseEvent,\n value: string,\n ) => void;\n /** Props passed to the HvButton component */\n buttonProps?: HvButtonProps;\n /** Props passed to the HvTypography text component */\n typographyProps?: HvTypographyProps;\n /** Whether the editor is disabled or not. */\n disabled?: boolean;\n /** A Jss Object used to override or extend the styles applied to the empty state component. */\n classes?: HvInlineEditorClasses;\n /** The placeholder value of the input. */\n placeholder?: string;\n }\n >;\n\n/**\n * An Inline Editor allows the user to edit a record without making a major switch\n * between viewing and editing, making it an efficient method of updating a record.\n */\nexport const HvInlineEditor = fixedForwardRef(function HvInlineEditor<\n C extends React.ElementType = typeof HvInput,\n>(props: HvInlineEditorProps<C>, ref: PolymorphicRef<C>) {\n const {\n className,\n classes: classesProp,\n value: valueProp,\n defaultValue = \"\",\n showIcon,\n component: InputComponent = HvInput,\n variant = \"body\",\n placeholder = \"Enter text\",\n onBlur,\n onChange,\n onKeyDown,\n buttonProps,\n typographyProps,\n disabled,\n ...others\n } = useDefaultProps(\"HvInlineEditor\", props);\n\n const { classes, cx } = useClasses(classesProp);\n const [value, setValue] = useControlled(valueProp, defaultValue);\n const [editMode, setEditMode] = useState(false);\n const [cachedValue, setCachedValue] = useState(value);\n const inputRef = useRef<HTMLInputElement>();\n const { activeTheme } = useTheme();\n const [isOverflowing, setIsOverflowing] = useState(false);\n\n const typographyStyles = activeTheme?.typography[variant] || {};\n const { lineHeight } = typographyStyles;\n\n const checkOverflow = (el: HTMLElement | null) => {\n if (!el) return;\n setIsOverflowing(el.scrollWidth > el.clientWidth);\n };\n\n useEnhancedEffect(() => {\n const input = inputRef.current;\n if (editMode && input) {\n input.focus();\n input.select();\n }\n }, [editMode]);\n\n const handleClick = () => {\n setEditMode(true);\n setCachedValue(value);\n };\n\n const handleBlur: HvInputProps[\"onBlur\"] = (event) => {\n setEditMode(false);\n\n const newValue = value || cachedValue; // empty values should be ignored\n setValue(newValue);\n onBlur?.(event, newValue);\n };\n\n const handleKeyDown: HvInputProps[\"onKeyDown\"] = (event) => {\n let newValue = value;\n if (isKey(event, \"Esc\")) {\n newValue = cachedValue;\n setEditMode(false);\n setValue(newValue);\n }\n onKeyDown?.(event, newValue);\n };\n\n const handleChange: HvInputProps[\"onChange\"] = (event, val) => {\n setValue(val);\n onChange?.(event, val);\n };\n\n return (\n <div className={cx(classes.root, className)}>\n {editMode && !disabled ? (\n <InputComponent\n ref={ref}\n inputRef={inputRef}\n classes={{\n root: classes.inputRoot,\n input: classes.input,\n }}\n inputProps={{\n style: {\n ...typographyStyles,\n height: InputComponent === HvInput ? lineHeight : undefined,\n },\n }}\n value={value}\n onBlur={handleBlur}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n {...others}\n />\n ) : (\n <HvButton\n variant=\"secondaryGhost\"\n overrideIconColors={false}\n endIcon={\n <Edit\n color=\"textDisabled\"\n className={cx(classes.icon, {\n [classes.iconVisible]: showIcon,\n })}\n />\n }\n className={cx(classes.button, {\n [classes.largeText]: parseInt(lineHeight as string, 10) >= 28,\n })}\n onClick={handleClick}\n disabled={disabled}\n {...buttonProps}\n >\n <HvTooltip title={isOverflowing && value}>\n <HvTypography\n component=\"div\"\n ref={checkOverflow}\n variant={variant}\n noWrap\n className={cx(classes.text, { [classes.textEmpty]: !value })}\n {...typographyProps}\n >\n {value || placeholder}\n </HvTypography>\n </HvTooltip>\n </HvButton>\n )}\n </div>\n );\n});\n"],"names":["HvInlineEditor"],"mappings":";;;;;;;;;;;;;;AAyEO,MAAM,iBAAiB,gBAAgB,SAASA,gBAErD,OAA+B,KAAwB;AACjD,QAAA;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT,OAAO;AAAA,IACP,eAAe;AAAA,IACf;AAAA,IACA,WAAW,iBAAiB;AAAA,IAC5B,UAAU;AAAA,IACV,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,kBAAkB,KAAK;AAE3C,QAAM,EAAE,SAAS,OAAO,WAAW,WAAW;AAC9C,QAAM,CAAC,OAAO,QAAQ,IAAI,cAAc,WAAW,YAAY;AAC/D,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,KAAK;AACpD,QAAM,WAAW,OAAyB;AACpC,QAAA,EAAE,YAAY,IAAI,SAAS;AACjC,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAS,KAAK;AAExD,QAAM,mBAAmB,aAAa,WAAW,OAAO,KAAK,CAAC;AACxD,QAAA,EAAE,eAAe;AAEjB,QAAA,gBAAgB,CAAC,OAA2B;AAChD,QAAI,CAAC,GAAI;AACQ,qBAAA,GAAG,cAAc,GAAG,WAAW;AAAA,EAClD;AAEA,oBAAkB,MAAM;AACtB,UAAM,QAAQ,SAAS;AACvB,QAAI,YAAY,OAAO;AACrB,YAAM,MAAM;AACZ,YAAM,OAAO;AAAA,IAAA;AAAA,EACf,GACC,CAAC,QAAQ,CAAC;AAEb,QAAM,cAAc,MAAM;AACxB,gBAAY,IAAI;AAChB,mBAAe,KAAK;AAAA,EACtB;AAEM,QAAA,aAAqC,CAAC,UAAU;AACpD,gBAAY,KAAK;AAEjB,UAAM,WAAW,SAAS;AAC1B,aAAS,QAAQ;AACjB,aAAS,OAAO,QAAQ;AAAA,EAC1B;AAEM,QAAA,gBAA2C,CAAC,UAAU;AAC1D,QAAI,WAAW;AACX,QAAA,MAAM,OAAO,KAAK,GAAG;AACZ,iBAAA;AACX,kBAAY,KAAK;AACjB,eAAS,QAAQ;AAAA,IAAA;AAEnB,gBAAY,OAAO,QAAQ;AAAA,EAC7B;AAEM,QAAA,eAAyC,CAAC,OAAO,QAAQ;AAC7D,aAAS,GAAG;AACZ,eAAW,OAAO,GAAG;AAAA,EACvB;AAGE,SAAA,oBAAC,OAAI,EAAA,WAAW,GAAG,QAAQ,MAAM,SAAS,GACvC,UAAY,YAAA,CAAC,WACZ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,SAAS;AAAA,QACP,MAAM,QAAQ;AAAA,QACd,OAAO,QAAQ;AAAA,MACjB;AAAA,MACA,YAAY;AAAA,QACV,OAAO;AAAA,UACL,GAAG;AAAA,UACH,QAAQ,mBAAmB,UAAU,aAAa;AAAA,QAAA;AAAA,MAEtD;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,WAAW;AAAA,MACV,GAAG;AAAA,IAAA;AAAA,EAAA,IAGN;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,oBAAoB;AAAA,MACpB,SACE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAW,GAAG,QAAQ,MAAM;AAAA,YAC1B,CAAC,QAAQ,WAAW,GAAG;AAAA,UACxB,CAAA;AAAA,QAAA;AAAA,MACH;AAAA,MAEF,WAAW,GAAG,QAAQ,QAAQ;AAAA,QAC5B,CAAC,QAAQ,SAAS,GAAG,SAAS,YAAsB,EAAE,KAAK;AAAA,MAAA,CAC5D;AAAA,MACD,SAAS;AAAA,MACT;AAAA,MACC,GAAG;AAAA,MAEJ,UAAC,oBAAA,WAAA,EAAU,OAAO,iBAAiB,OACjC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,KAAK;AAAA,UACL;AAAA,UACA,QAAM;AAAA,UACN,WAAW,GAAG,QAAQ,MAAM,EAAE,CAAC,QAAQ,SAAS,GAAG,CAAC,OAAO;AAAA,UAC1D,GAAG;AAAA,UAEH,UAAS,SAAA;AAAA,QAAA;AAAA,MAAA,EAEd,CAAA;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ,CAAC;"}
|
|
@@ -12,7 +12,7 @@ const { staticClasses, useClasses } = createClasses("HvInlineEditor", {
|
|
|
12
12
|
text: {},
|
|
13
13
|
largeText: {},
|
|
14
14
|
textEmpty: {
|
|
15
|
-
color: theme.colors.
|
|
15
|
+
color: theme.colors.textDisabled
|
|
16
16
|
},
|
|
17
17
|
button: {
|
|
18
18
|
padding: theme.spacing("6px", "8px", "5px", "8px"),
|
|
@@ -25,17 +25,17 @@ const { staticClasses, useClasses } = createClasses("HvInlineEditor", {
|
|
|
25
25
|
justifyContent: "start",
|
|
26
26
|
textAlign: "start",
|
|
27
27
|
alignItems: "center",
|
|
28
|
-
backgroundColor: theme.colors.
|
|
28
|
+
backgroundColor: theme.colors.bgContainer,
|
|
29
29
|
borderColor: "transparent",
|
|
30
30
|
"&:hover, &:focus": {
|
|
31
31
|
borderColor: theme.colors.primary,
|
|
32
|
-
backgroundColor: theme.colors.
|
|
32
|
+
backgroundColor: theme.colors.bgContainer,
|
|
33
33
|
"& $icon": {
|
|
34
34
|
visibility: "visible"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"&:active": {
|
|
38
|
-
borderColor: theme.colors.
|
|
38
|
+
borderColor: theme.colors.text,
|
|
39
39
|
backgroundColor: "transparent",
|
|
40
40
|
"& $icon": {
|
|
41
41
|
visibility: "visible"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineEditor.styles.js","sources":["../../../src/InlineEditor/InlineEditor.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvInlineEditor\", {\n root: {},\n /** @deprecated unused. use `classes.root::after` instead */\n inputBorderContainer: {},\n input: {},\n inputRoot: {\n height: \"100%\",\n minHeight: \"32px\",\n },\n text: {},\n largeText: {},\n textEmpty: {\n color: theme.colors.
|
|
1
|
+
{"version":3,"file":"InlineEditor.styles.js","sources":["../../../src/InlineEditor/InlineEditor.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvInlineEditor\", {\n root: {},\n /** @deprecated unused. use `classes.root::after` instead */\n inputBorderContainer: {},\n input: {},\n inputRoot: {\n height: \"100%\",\n minHeight: \"32px\",\n },\n text: {},\n largeText: {},\n textEmpty: {\n color: theme.colors.textDisabled,\n },\n button: {\n padding: theme.spacing(\"6px\", \"8px\", \"5px\", \"8px\"),\n minHeight: \"32px\",\n\n boxSizing: \"border-box\",\n cursor: \"text\",\n height: \"100%\",\n width: \"100%\",\n maxWidth: \"100%\",\n justifyContent: \"start\",\n textAlign: \"start\",\n alignItems: \"center\",\n\n backgroundColor: theme.colors.bgContainer,\n borderColor: \"transparent\",\n\n \"&:hover, &:focus\": {\n borderColor: theme.colors.primary,\n backgroundColor: theme.colors.bgContainer,\n\n \"& $icon\": {\n visibility: \"visible\",\n },\n },\n\n \"&:active\": {\n borderColor: theme.colors.text,\n backgroundColor: \"transparent\",\n\n \"& $icon\": {\n visibility: \"visible\",\n },\n },\n },\n icon: {\n cursor: \"pointer\",\n visibility: \"hidden\",\n alignSelf: \"center\",\n height: 16,\n },\n iconVisible: {\n visibility: \"visible\",\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,kBAAkB;AAAA,EAC3E,MAAM,CAAC;AAAA;AAAA,EAEP,sBAAsB,CAAC;AAAA,EACvB,OAAO,CAAC;AAAA,EACR,WAAW;AAAA,IACT,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AAAA,EACA,MAAM,CAAC;AAAA,EACP,WAAW,CAAC;AAAA,EACZ,WAAW;AAAA,IACT,OAAO,MAAM,OAAO;AAAA,EACtB;AAAA,EACA,QAAQ;AAAA,IACN,SAAS,MAAM,QAAQ,OAAO,OAAO,OAAO,KAAK;AAAA,IACjD,WAAW;AAAA,IAEX,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,YAAY;AAAA,IAEZ,iBAAiB,MAAM,OAAO;AAAA,IAC9B,aAAa;AAAA,IAEb,oBAAoB;AAAA,MAClB,aAAa,MAAM,OAAO;AAAA,MAC1B,iBAAiB,MAAM,OAAO;AAAA,MAE9B,WAAW;AAAA,QACT,YAAY;AAAA,MAAA;AAAA,IAEhB;AAAA,IAEA,YAAY;AAAA,MACV,aAAa,MAAM,OAAO;AAAA,MAC1B,iBAAiB;AAAA,MAEjB,WAAW;AAAA,QACT,YAAY;AAAA,MAAA;AAAA,IACd;AAAA,EAEJ;AAAA,EACA,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,QAAQ;AAAA,EACV;AAAA,EACA,aAAa;AAAA,IACX,YAAY;AAAA,EAAA;AAEhB,CAAC;"}
|
|
@@ -31,8 +31,8 @@ const { staticClasses, useClasses } = createClasses("HvInput", {
|
|
|
31
31
|
},
|
|
32
32
|
inputExtension: {
|
|
33
33
|
height: theme.space.xs,
|
|
34
|
-
backgroundColor: theme.colors.
|
|
35
|
-
boxShadow: `0px 8px 0px ${theme.colors.
|
|
34
|
+
backgroundColor: theme.colors.bgContainer,
|
|
35
|
+
boxShadow: `0px 8px 0px ${theme.colors.bgContainer}, 0px 0px 9px 0px rgba(65,65,65,.12)`
|
|
36
36
|
},
|
|
37
37
|
input: {},
|
|
38
38
|
inputRoot: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.styles.js","sources":["../../../src/Input/Input.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { suggestionsClasses } from \"../FormElement/Suggestions\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvInput\", {\n root: { display: \"block\" },\n labelContainer: { display: \"flex\", alignItems: \"flex-start\" },\n label: {},\n description: {},\n adornmentsBox: {\n display: \"flex\",\n flexDirection: \"row\",\n height: \"30px\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginRight: 1,\n },\n icon: { width: \"30px\", height: \"30px\" },\n adornmentButton: {\n \":focus-visible,:hover\": {\n backgroundColor: \"transparent\",\n },\n },\n iconClear: { display: \"none\" },\n hasSuggestions: {},\n suggestionsContainer: { width: \"100%\", position: \"relative\" },\n suggestionList: {\n [`& .${suggestionsClasses.root} .${suggestionsClasses.list} &`]: {\n width: \"100%\",\n },\n },\n inputExtension: {\n height: theme.space.xs,\n backgroundColor: theme.colors.
|
|
1
|
+
{"version":3,"file":"Input.styles.js","sources":["../../../src/Input/Input.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { suggestionsClasses } from \"../FormElement/Suggestions\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvInput\", {\n root: { display: \"block\" },\n labelContainer: { display: \"flex\", alignItems: \"flex-start\" },\n label: {},\n description: {},\n adornmentsBox: {\n display: \"flex\",\n flexDirection: \"row\",\n height: \"30px\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginRight: 1,\n },\n icon: { width: \"30px\", height: \"30px\" },\n adornmentButton: {\n \":focus-visible,:hover\": {\n backgroundColor: \"transparent\",\n },\n },\n iconClear: { display: \"none\" },\n hasSuggestions: {},\n suggestionsContainer: { width: \"100%\", position: \"relative\" },\n suggestionList: {\n [`& .${suggestionsClasses.root} .${suggestionsClasses.list} &`]: {\n width: \"100%\",\n },\n },\n inputExtension: {\n height: theme.space.xs,\n backgroundColor: theme.colors.bgContainer,\n boxShadow: `0px 8px 0px ${theme.colors.bgContainer}, 0px 0px 9px 0px rgba(65,65,65,.12)`,\n },\n input: {},\n inputRoot: {\n \":is(:hover,:focus-within) $iconClear\": {\n display: \"block\",\n },\n },\n inputRootFocused: {\n \"& $iconClear\": {\n display: \"block\",\n },\n },\n inputRootDisabled: {},\n inputRootMultiline: { padding: 0 },\n /** @deprecated unused. use `::after` instead */\n inputBorderContainer: {},\n error: {},\n});\n"],"names":["suggestionsClasses"],"mappings":";;;;AAKO,MAAM,EAAE,eAAe,eAAe,cAAc,WAAW;AAAA,EACpE,MAAM,EAAE,SAAS,QAAQ;AAAA,EACzB,gBAAgB,EAAE,SAAS,QAAQ,YAAY,aAAa;AAAA,EAC5D,OAAO,CAAC;AAAA,EACR,aAAa,CAAC;AAAA,EACd,eAAe;AAAA,IACb,SAAS;AAAA,IACT,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,aAAa;AAAA,EACf;AAAA,EACA,MAAM,EAAE,OAAO,QAAQ,QAAQ,OAAO;AAAA,EACtC,iBAAiB;AAAA,IACf,yBAAyB;AAAA,MACvB,iBAAiB;AAAA,IAAA;AAAA,EAErB;AAAA,EACA,WAAW,EAAE,SAAS,OAAO;AAAA,EAC7B,gBAAgB,CAAC;AAAA,EACjB,sBAAsB,EAAE,OAAO,QAAQ,UAAU,WAAW;AAAA,EAC5D,gBAAgB;AAAA,IACd,CAAC,MAAMA,gBAAmB,IAAI,KAAKA,gBAAmB,IAAI,IAAI,GAAG;AAAA,MAC/D,OAAO;AAAA,IAAA;AAAA,EAEX;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ,MAAM,MAAM;AAAA,IACpB,iBAAiB,MAAM,OAAO;AAAA,IAC9B,WAAW,eAAe,MAAM,OAAO,WAAW;AAAA,EACpD;AAAA,EACA,OAAO,CAAC;AAAA,EACR,WAAW;AAAA,IACT,wCAAwC;AAAA,MACtC,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,kBAAkB;AAAA,IAChB,gBAAgB;AAAA,MACd,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,mBAAmB,CAAC;AAAA,EACpB,oBAAoB,EAAE,SAAS,EAAE;AAAA;AAAA,EAEjC,sBAAsB,CAAC;AAAA,EACvB,OAAO,CAAA;AACT,CAAC;"}
|
|
@@ -24,7 +24,7 @@ const { staticClasses, useClasses } = createClasses("HvList", {
|
|
|
24
24
|
item: {},
|
|
25
25
|
itemSelector: {
|
|
26
26
|
"&:not(:hover):not(.HvIsFocused):not(:focus-within)": {
|
|
27
|
-
backgroundColor: theme.colors.
|
|
27
|
+
backgroundColor: theme.colors.bgHover
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
link: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.styles.js","sources":["../../../src/List/List.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvList\", {\n root: {},\n virtualizedRoot: { marginBottom: 5 },\n selectorRoot: { width: \"100%\", zIndex: 0 },\n selectorContainer: {\n \"&:hover\": {\n backgroundColor: \"transparent\",\n },\n\n \"&:focus-within\": {\n backgroundColor: \"transparent\",\n outline: \"none\",\n boxShadow: \"none\",\n },\n },\n box: { width: \"32px\", height: \"32px\", marginLeft: \"auto\" },\n truncate: {\n display: \"inline-block\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n },\n item: {},\n itemSelector: {\n \"&:not(:hover):not(.HvIsFocused):not(:focus-within)\": {\n backgroundColor: theme.colors.
|
|
1
|
+
{"version":3,"file":"List.styles.js","sources":["../../../src/List/List.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvList\", {\n root: {},\n virtualizedRoot: { marginBottom: 5 },\n selectorRoot: { width: \"100%\", zIndex: 0 },\n selectorContainer: {\n \"&:hover\": {\n backgroundColor: \"transparent\",\n },\n\n \"&:focus-within\": {\n backgroundColor: \"transparent\",\n outline: \"none\",\n boxShadow: \"none\",\n },\n },\n box: { width: \"32px\", height: \"32px\", marginLeft: \"auto\" },\n truncate: {\n display: \"inline-block\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n },\n item: {},\n itemSelector: {\n \"&:not(:hover):not(.HvIsFocused):not(:focus-within)\": {\n backgroundColor: theme.colors.bgHover,\n },\n },\n link: {\n ...theme.typography.body,\n textDecoration: \"none\",\n\n \"&:focus\": {\n boxShadow: \"unset !important\",\n },\n },\n selectAllSelector: {\n width: \"100%\",\n margin: \"0 0 2px 0\",\n\n position: \"relative\",\n zIndex: 0,\n\n // prevent the focus ring to be hidden by sibling hover background\n \"&:focus-within\": {\n zIndex: 1,\n },\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,UAAU;AAAA,EACnE,MAAM,CAAC;AAAA,EACP,iBAAiB,EAAE,cAAc,EAAE;AAAA,EACnC,cAAc,EAAE,OAAO,QAAQ,QAAQ,EAAE;AAAA,EACzC,mBAAmB;AAAA,IACjB,WAAW;AAAA,MACT,iBAAiB;AAAA,IACnB;AAAA,IAEA,kBAAkB;AAAA,MAChB,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,WAAW;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,KAAK,EAAE,OAAO,QAAQ,QAAQ,QAAQ,YAAY,OAAO;AAAA,EACzD,UAAU;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,cAAc;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,MAAM,CAAC;AAAA,EACP,cAAc;AAAA,IACZ,sDAAsD;AAAA,MACpD,iBAAiB,MAAM,OAAO;AAAA,IAAA;AAAA,EAElC;AAAA,EACA,MAAM;AAAA,IACJ,GAAG,MAAM,WAAW;AAAA,IACpB,gBAAgB;AAAA,IAEhB,WAAW;AAAA,MACT,WAAW;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,QAAQ;AAAA,IAER,UAAU;AAAA,IACV,QAAQ;AAAA;AAAA,IAGR,kBAAkB;AAAA,MAChB,QAAQ;AAAA,IAAA;AAAA,EACV;AAEJ,CAAC;"}
|
|
@@ -22,11 +22,11 @@ const { staticClasses, useClasses } = createClasses("HvListItem", {
|
|
|
22
22
|
},
|
|
23
23
|
"&.HvIsFocused": {
|
|
24
24
|
...outlineStyles,
|
|
25
|
-
backgroundColor: theme.colors.
|
|
25
|
+
backgroundColor: theme.colors.bgPageSecondary,
|
|
26
26
|
zIndex: 2
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
focus: { backgroundColor: theme.colors.
|
|
29
|
+
focus: { backgroundColor: theme.colors.bgPageSecondary, zIndex: 2 },
|
|
30
30
|
startAdornment: {},
|
|
31
31
|
endAdornment: {},
|
|
32
32
|
gutters: {
|
|
@@ -42,16 +42,16 @@ const { staticClasses, useClasses } = createClasses("HvListItem", {
|
|
|
42
42
|
interactive: {
|
|
43
43
|
cursor: "pointer",
|
|
44
44
|
"&:not($disabled):not($selected):hover": {
|
|
45
|
-
backgroundColor: theme.colors.
|
|
45
|
+
backgroundColor: theme.colors.bgHover
|
|
46
46
|
},
|
|
47
47
|
"&$disabled": {
|
|
48
48
|
cursor: "not-allowed"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
selected: { backgroundColor: theme.colors.
|
|
51
|
+
selected: { backgroundColor: theme.colors.bgHover },
|
|
52
52
|
disabled: {
|
|
53
|
-
color: theme.colors.
|
|
54
|
-
backgroundColor: theme.colors.
|
|
53
|
+
color: theme.colors.textDisabled,
|
|
54
|
+
backgroundColor: theme.colors.bgDisabled
|
|
55
55
|
},
|
|
56
56
|
withStartAdornment: {
|
|
57
57
|
"& > div": {
|
|
@@ -60,9 +60,6 @@ const { staticClasses, useClasses } = createClasses("HvListItem", {
|
|
|
60
60
|
"& svg": {
|
|
61
61
|
boxShadow: "none !important",
|
|
62
62
|
outline: "none !important"
|
|
63
|
-
},
|
|
64
|
-
"$disabled > svg *.color0": {
|
|
65
|
-
fill: theme.colors.secondary_60
|
|
66
63
|
}
|
|
67
64
|
},
|
|
68
65
|
withEndAdornment: {
|
|
@@ -70,9 +67,6 @@ const { staticClasses, useClasses } = createClasses("HvListItem", {
|
|
|
70
67
|
"& svg": {
|
|
71
68
|
boxShadow: "none !important",
|
|
72
69
|
outline: "none !important"
|
|
73
|
-
},
|
|
74
|
-
"$disabled > svg *.color0": {
|
|
75
|
-
fill: theme.colors.secondary_60
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
72
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.styles.js","sources":["../../../../src/ListContainer/ListItem/ListItem.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { outlineStyles } from \"../../utils/focusUtils\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvListItem\", {\n root: {\n ...theme.typography.body,\n padding: 0,\n display: \"block\",\n height: \"32px\",\n lineHeight: \"32px\",\n listStyleType: \"none\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n position: \"relative\",\n alignContent: \"center\",\n\n \"&:not(:last-child)\": {\n marginBottom: \"8px\",\n },\n\n \"&$condensed\": {\n marginBottom: 0,\n },\n\n \"&.HvIsFocused\": {\n ...outlineStyles,\n backgroundColor: theme.colors.
|
|
1
|
+
{"version":3,"file":"ListItem.styles.js","sources":["../../../../src/ListContainer/ListItem/ListItem.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { outlineStyles } from \"../../utils/focusUtils\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvListItem\", {\n root: {\n ...theme.typography.body,\n padding: 0,\n display: \"block\",\n height: \"32px\",\n lineHeight: \"32px\",\n listStyleType: \"none\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n position: \"relative\",\n alignContent: \"center\",\n\n \"&:not(:last-child)\": {\n marginBottom: \"8px\",\n },\n\n \"&$condensed\": {\n marginBottom: 0,\n },\n\n \"&.HvIsFocused\": {\n ...outlineStyles,\n backgroundColor: theme.colors.bgPageSecondary,\n zIndex: 2,\n },\n },\n focus: { backgroundColor: theme.colors.bgPageSecondary, zIndex: 2 },\n startAdornment: {},\n endAdornment: {},\n gutters: {\n padding: `0 ${theme.space.xs}`,\n\n \"&$withStartAdornment\": {\n paddingLeft: 0,\n },\n \"&$withEndAdornment\": {\n paddingRight: 0,\n },\n },\n condensed: {},\n interactive: {\n cursor: \"pointer\",\n \"&:not($disabled):not($selected):hover\": {\n backgroundColor: theme.colors.bgHover,\n },\n \"&$disabled\": {\n cursor: \"not-allowed\",\n },\n },\n selected: { backgroundColor: theme.colors.bgHover },\n disabled: {\n color: theme.colors.textDisabled,\n backgroundColor: theme.colors.bgDisabled,\n },\n withStartAdornment: {\n \"& > div\": {\n float: \"left\",\n },\n\n \"& svg\": {\n boxShadow: \"none !important\",\n outline: \"none !important\",\n },\n },\n withEndAdornment: {\n \"& > div\": { float: \"right\" },\n\n \"& svg\": {\n boxShadow: \"none !important\",\n outline: \"none !important\",\n },\n },\n});\n"],"names":[],"mappings":";;;AAKO,MAAM,EAAE,eAAe,eAAe,cAAc,cAAc;AAAA,EACvE,MAAM;AAAA,IACJ,GAAG,MAAM,WAAW;AAAA,IACpB,SAAS;AAAA,IACT,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,UAAU;AAAA,IACV,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,cAAc;AAAA,IAEd,sBAAsB;AAAA,MACpB,cAAc;AAAA,IAChB;AAAA,IAEA,eAAe;AAAA,MACb,cAAc;AAAA,IAChB;AAAA,IAEA,iBAAiB;AAAA,MACf,GAAG;AAAA,MACH,iBAAiB,MAAM,OAAO;AAAA,MAC9B,QAAQ;AAAA,IAAA;AAAA,EAEZ;AAAA,EACA,OAAO,EAAE,iBAAiB,MAAM,OAAO,iBAAiB,QAAQ,EAAE;AAAA,EAClE,gBAAgB,CAAC;AAAA,EACjB,cAAc,CAAC;AAAA,EACf,SAAS;AAAA,IACP,SAAS,KAAK,MAAM,MAAM,EAAE;AAAA,IAE5B,wBAAwB;AAAA,MACtB,aAAa;AAAA,IACf;AAAA,IACA,sBAAsB;AAAA,MACpB,cAAc;AAAA,IAAA;AAAA,EAElB;AAAA,EACA,WAAW,CAAC;AAAA,EACZ,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,yCAAyC;AAAA,MACvC,iBAAiB,MAAM,OAAO;AAAA,IAChC;AAAA,IACA,cAAc;AAAA,MACZ,QAAQ;AAAA,IAAA;AAAA,EAEZ;AAAA,EACA,UAAU,EAAE,iBAAiB,MAAM,OAAO,QAAQ;AAAA,EAClD,UAAU;AAAA,IACR,OAAO,MAAM,OAAO;AAAA,IACpB,iBAAiB,MAAM,OAAO;AAAA,EAChC;AAAA,EACA,oBAAoB;AAAA,IAClB,WAAW;AAAA,MACT,OAAO;AAAA,IACT;AAAA,IAEA,SAAS;AAAA,MACP,WAAW;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,kBAAkB;AAAA,IAChB,WAAW,EAAE,OAAO,QAAQ;AAAA,IAE5B,SAAS;AAAA,MACP,WAAW;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,CAAC;"}
|
|
@@ -5,7 +5,6 @@ import { getColor } from "@hitachivantara/uikit-styles";
|
|
|
5
5
|
import { range } from "../utils/helpers.js";
|
|
6
6
|
import { useClasses } from "./Loading.styles.js";
|
|
7
7
|
import { staticClasses } from "./Loading.styles.js";
|
|
8
|
-
import { HvTypography } from "../Typography/Typography.js";
|
|
9
8
|
const HvLoading = forwardRef(function HvLoading2(props, ref) {
|
|
10
9
|
const {
|
|
11
10
|
color,
|
|
@@ -26,7 +25,7 @@ const HvLoading = forwardRef(function HvLoading2(props, ref) {
|
|
|
26
25
|
ref,
|
|
27
26
|
hidden: !!hidden,
|
|
28
27
|
style: mergeStyles(style, {
|
|
29
|
-
color: getColor(color, small ? "
|
|
28
|
+
color: getColor(color, small ? "text" : "brand"),
|
|
30
29
|
"--customColor": getColor(color)
|
|
31
30
|
}),
|
|
32
31
|
className: cx(
|
|
@@ -50,7 +49,7 @@ const HvLoading = forwardRef(function HvLoading2(props, ref) {
|
|
|
50
49
|
},
|
|
51
50
|
e
|
|
52
51
|
)) }),
|
|
53
|
-
label && /* @__PURE__ */ jsx(
|
|
52
|
+
label && /* @__PURE__ */ jsx("div", { className: classes.label, children: label })
|
|
54
53
|
]
|
|
55
54
|
}
|
|
56
55
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sources":["../../../src/Loading/Loading.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport {\n mergeStyles,\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { getColor, HvColorAny } from \"@hitachivantara/uikit-styles\";\n\nimport { HvBaseProps } from \"../types/generic\";\nimport {
|
|
1
|
+
{"version":3,"file":"Loading.js","sources":["../../../src/Loading/Loading.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport {\n mergeStyles,\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { getColor, HvColorAny } from \"@hitachivantara/uikit-styles\";\n\nimport { HvBaseProps } from \"../types/generic\";\nimport { range } from \"../utils/helpers\";\nimport { staticClasses, useClasses } from \"./Loading.styles\";\n\nexport { staticClasses as loadingClasses };\n\nexport type HvLoadingClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvLoadingProps extends HvBaseProps {\n /** Indicates if the component should be render in a small size. */\n small?: boolean;\n /** The label to be displayed. */\n label?: React.ReactNode;\n /** Whether the loading animation is hidden. */\n hidden?: boolean;\n /** Color applied to the bars. */\n color?: HvColorAny;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvLoadingClasses;\n}\n\n/**\n * Loading provides feedback about a process that is taking place in the application.\n */\nexport const HvLoading = forwardRef<\n // no-indent\n React.ComponentRef<\"div\">,\n HvLoadingProps\n>(function HvLoading(props, ref) {\n const {\n color,\n hidden,\n small,\n label,\n classes: classesProp,\n style,\n className,\n ...others\n } = useDefaultProps(\"HvLoading\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const size = small ? \"small\" : \"regular\";\n const colorVariant = color && (`${size}Color` as const);\n\n return (\n <div\n ref={ref}\n hidden={!!hidden}\n style={mergeStyles(style, {\n color: getColor(color, small ? \"text\" : \"brand\"),\n \"--customColor\": getColor(color),\n })}\n className={cx(\n classes.root,\n {\n [classes.hidden]: hidden,\n },\n className,\n )}\n {...others}\n >\n <div className={classes.barContainer}>\n {range(3).map((e) => (\n <div\n key={e}\n className={cx(\n classes.loadingBar,\n // TODO: hoist to parent & remove unused `colorVariant` in v6\n classes[size],\n classes[colorVariant!],\n )}\n />\n ))}\n </div>\n {label && <div className={classes.label}>{label}</div>}\n </div>\n );\n});\n"],"names":["HvLoading"],"mappings":";;;;;;;AAgCO,MAAM,YAAY,WAIvB,SAASA,WAAU,OAAO,KAAK;AACzB,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,aAAa,KAAK;AAEtC,QAAM,EAAE,SAAS,OAAO,WAAW,WAAW;AAExC,QAAA,OAAO,QAAQ,UAAU;AACzB,QAAA,eAAe,SAAU,GAAG,IAAI;AAGpC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,QAAQ,CAAC,CAAC;AAAA,MACV,OAAO,YAAY,OAAO;AAAA,QACxB,OAAO,SAAS,OAAO,QAAQ,SAAS,OAAO;AAAA,QAC/C,iBAAiB,SAAS,KAAK;AAAA,MAAA,CAChC;AAAA,MACD,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,MAAM,GAAG;AAAA,QACpB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAC,oBAAA,OAAA,EAAI,WAAW,QAAQ,cACrB,gBAAM,CAAC,EAAE,IAAI,CAAC,MACb;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAW;AAAA,cACT,QAAQ;AAAA;AAAA,cAER,QAAQ,IAAI;AAAA,cACZ,QAAQ,YAAa;AAAA,YAAA;AAAA,UACvB;AAAA,UANK;AAAA,QAQR,CAAA,GACH;AAAA,QACC,SAAU,oBAAA,OAAA,EAAI,WAAW,QAAQ,OAAQ,UAAM,MAAA,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAClD;AAEJ,CAAC;"}
|
|
@@ -32,13 +32,15 @@ const { staticClasses, useClasses } = createClasses("HvLoading", {
|
|
|
32
32
|
"@keyframes loading": {
|
|
33
33
|
"50%": {
|
|
34
34
|
height: "var(--height, 60%)",
|
|
35
|
-
backgroundColor: `var(--customColor, ${theme.colors.
|
|
35
|
+
backgroundColor: `var(--customColor, ${theme.colors.text})`
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
":nth-of-type(2)": { animationDelay: "0.22s" },
|
|
39
39
|
":nth-of-type(3)": { animationDelay: "0.44s" }
|
|
40
40
|
},
|
|
41
|
-
label: {
|
|
41
|
+
label: {
|
|
42
|
+
...theme.typography.caption1
|
|
43
|
+
},
|
|
42
44
|
overlay: {},
|
|
43
45
|
blur: {},
|
|
44
46
|
hidden: { display: "none" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.styles.js","sources":["../../../src/Loading/Loading.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvLoading\", {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: theme.space.xs,\n },\n barContainer: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-around\",\n\n \":has($regular)\": {\n width: 30,\n height: 30,\n },\n\n \":has($small)\": {\n \"--height\": \"40%\",\n width: 18,\n height: 18,\n },\n },\n loadingBar: {\n backgroundColor: \"currentcolor\",\n display: \"inline-block\",\n animation: \"loading 1s ease-in-out infinite\",\n // TODO: make this the default when it has better support\n width: \"round(up, 0.11em, 2px)\",\n height: \"100%\",\n\n \"@keyframes loading\": {\n \"50%\": {\n height: \"var(--height, 60%)\",\n backgroundColor: `var(--customColor, ${theme.colors.
|
|
1
|
+
{"version":3,"file":"Loading.styles.js","sources":["../../../src/Loading/Loading.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvLoading\", {\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: theme.space.xs,\n },\n barContainer: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-around\",\n\n \":has($regular)\": {\n width: 30,\n height: 30,\n },\n\n \":has($small)\": {\n \"--height\": \"40%\",\n width: 18,\n height: 18,\n },\n },\n loadingBar: {\n backgroundColor: \"currentcolor\",\n display: \"inline-block\",\n animation: \"loading 1s ease-in-out infinite\",\n // TODO: make this the default when it has better support\n width: \"round(up, 0.11em, 2px)\",\n height: \"100%\",\n\n \"@keyframes loading\": {\n \"50%\": {\n height: \"var(--height, 60%)\",\n backgroundColor: `var(--customColor, ${theme.colors.text})`,\n },\n },\n\n \":nth-of-type(2)\": { animationDelay: \"0.22s\" },\n \":nth-of-type(3)\": { animationDelay: \"0.44s\" },\n },\n label: {\n ...theme.typography.caption1,\n },\n overlay: {},\n blur: {},\n hidden: { display: \"none\" },\n small: {\n width: 2,\n },\n regular: {\n width: 4,\n },\n smallColor: {},\n regularColor: {},\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,aAAa;AAAA,EACtE,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,KAAK,MAAM,MAAM;AAAA,EACnB;AAAA,EACA,cAAc;AAAA,IACZ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAEhB,kBAAkB;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,IAEA,gBAAgB;AAAA,MACd,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,QAAQ;AAAA,IAAA;AAAA,EAEZ;AAAA,EACA,YAAY;AAAA,IACV,iBAAiB;AAAA,IACjB,SAAS;AAAA,IACT,WAAW;AAAA;AAAA,IAEX,OAAO;AAAA,IACP,QAAQ;AAAA,IAER,sBAAsB;AAAA,MACpB,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,iBAAiB,sBAAsB,MAAM,OAAO,IAAI;AAAA,MAAA;AAAA,IAE5D;AAAA,IAEA,mBAAmB,EAAE,gBAAgB,QAAQ;AAAA,IAC7C,mBAAmB,EAAE,gBAAgB,QAAQ;AAAA,EAC/C;AAAA,EACA,OAAO;AAAA,IACL,GAAG,MAAM,WAAW;AAAA,EACtB;AAAA,EACA,SAAS,CAAC;AAAA,EACV,MAAM,CAAC;AAAA,EACP,QAAQ,EAAE,SAAS,OAAO;AAAA,EAC1B,OAAO;AAAA,IACL,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,YAAY,CAAC;AAAA,EACb,cAAc,CAAA;AAChB,CAAC;"}
|
|
@@ -11,7 +11,7 @@ const { staticClasses, useClasses } = createClasses("HvLoadingContainer", {
|
|
|
11
11
|
inset: 0,
|
|
12
12
|
zIndex: theme.zIndices.overlay,
|
|
13
13
|
transition: "background-color .2s ease",
|
|
14
|
-
backgroundColor: theme.alpha("
|
|
14
|
+
backgroundColor: theme.alpha("bgContainer", "var(--opacity, 80%)")
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingContainer.styles.js","sources":["../../../src/LoadingContainer/LoadingContainer.styles.ts"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nconst { staticClasses, useClasses } = createClasses(\"HvLoadingContainer\", {\n root: {\n position: \"relative\",\n height: \"inherit\",\n },\n loading: {\n position: \"absolute\",\n userSelect: \"none\",\n inset: 0,\n zIndex: theme.zIndices.overlay,\n transition: \"background-color .2s ease\",\n backgroundColor: theme.alpha(\"
|
|
1
|
+
{"version":3,"file":"LoadingContainer.styles.js","sources":["../../../src/LoadingContainer/LoadingContainer.styles.ts"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nconst { staticClasses, useClasses } = createClasses(\"HvLoadingContainer\", {\n root: {\n position: \"relative\",\n height: \"inherit\",\n },\n loading: {\n position: \"absolute\",\n userSelect: \"none\",\n inset: 0,\n zIndex: theme.zIndices.overlay,\n transition: \"background-color .2s ease\",\n backgroundColor: theme.alpha(\"bgContainer\", \"var(--opacity, 80%)\"),\n },\n});\n\nexport { staticClasses, useClasses };\n"],"names":[],"mappings":";;AAGA,MAAM,EAAE,eAAe,eAAe,cAAc,sBAAsB;AAAA,EACxE,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,QAAQ;AAAA,EACV;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,QAAQ,MAAM,SAAS;AAAA,IACvB,YAAY;AAAA,IACZ,iBAAiB,MAAM,MAAM,eAAe,qBAAqB;AAAA,EAAA;AAErE,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Login.styles.js","sources":["../../../src/Login/Login.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvLogin\", {\n root: {\n backgroundRepeat: \"no-repeat\",\n backgroundPosition: \"bottom\",\n backgroundSize: \"cover\",\n width: \"100%\",\n height: \"100%\",\n padding: 0,\n margin: \"-1px 0 0 0\",\n },\n formContainer: {\n background: theme.colors.
|
|
1
|
+
{"version":3,"file":"Login.styles.js","sources":["../../../src/Login/Login.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvLogin\", {\n root: {\n backgroundRepeat: \"no-repeat\",\n backgroundPosition: \"bottom\",\n backgroundSize: \"cover\",\n width: \"100%\",\n height: \"100%\",\n padding: 0,\n margin: \"-1px 0 0 0\",\n },\n formContainer: {\n background: theme.colors.bgPage,\n marginLeft: \"auto\",\n maxWidth: 500,\n height: \"100%\",\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,WAAW;AAAA,EACpE,MAAM;AAAA,IACJ,kBAAkB;AAAA,IAClB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,eAAe;AAAA,IACb,YAAY,MAAM,OAAO;AAAA,IACzB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,QAAQ;AAAA,EAAA;AAEZ,CAAC;"}
|
|
@@ -9,9 +9,9 @@ const { staticClasses, useClasses } = createClasses("HvMultiButton", {
|
|
|
9
9
|
position: "relative"
|
|
10
10
|
},
|
|
11
11
|
multiple: {
|
|
12
|
-
backgroundColor: theme.colors.
|
|
12
|
+
backgroundColor: theme.colors.bgPage,
|
|
13
13
|
borderWidth: 0,
|
|
14
|
-
borderColor: `${theme.colors.
|
|
14
|
+
borderColor: `${theme.colors.border} transparent`,
|
|
15
15
|
borderRadius: theme.radii.base,
|
|
16
16
|
"& $button": {
|
|
17
17
|
minWidth: 32,
|
|
@@ -23,43 +23,43 @@ const { staticClasses, useClasses } = createClasses("HvMultiButton", {
|
|
|
23
23
|
borderRadius: 0,
|
|
24
24
|
fontWeight: theme.typography.body.fontWeight,
|
|
25
25
|
"&:disabled": {
|
|
26
|
-
color: theme.colors.
|
|
26
|
+
color: theme.colors.textDisabled,
|
|
27
27
|
borderColor: "inherit"
|
|
28
28
|
},
|
|
29
29
|
"&:hover": {
|
|
30
30
|
borderColor: "inherit"
|
|
31
31
|
},
|
|
32
32
|
"&$firstButton": {
|
|
33
|
-
borderLeftColor: theme.colors.
|
|
33
|
+
borderLeftColor: theme.colors.border,
|
|
34
34
|
borderTopLeftRadius: "inherit",
|
|
35
35
|
borderBottomLeftRadius: "inherit",
|
|
36
36
|
"&:disabled": {
|
|
37
|
-
borderLeftColor: theme.colors.
|
|
37
|
+
borderLeftColor: theme.colors.border
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"&$lastButton": {
|
|
41
|
-
borderRightColor: theme.colors.
|
|
41
|
+
borderRightColor: theme.colors.border,
|
|
42
42
|
borderTopRightRadius: "inherit",
|
|
43
43
|
borderBottomRightRadius: "inherit",
|
|
44
44
|
"&:disabled": {
|
|
45
|
-
borderRightColor: theme.colors.
|
|
45
|
+
borderRightColor: theme.colors.border
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"&:not($firstButton)": {
|
|
49
49
|
marginLeft: "-1px"
|
|
50
50
|
},
|
|
51
51
|
"&$selected": {
|
|
52
|
-
backgroundColor: theme.colors.
|
|
52
|
+
backgroundColor: theme.colors.bgContainer,
|
|
53
53
|
fontWeight: theme.typography.label.fontWeight,
|
|
54
54
|
borderRadius: "inherit",
|
|
55
|
-
borderColor: theme.colors.
|
|
55
|
+
borderColor: theme.colors.text,
|
|
56
56
|
zIndex: 2,
|
|
57
57
|
"&:hover:not(:disabled),&:focus-visible": {
|
|
58
|
-
backgroundColor: theme.colors.
|
|
58
|
+
backgroundColor: theme.colors.bgHover
|
|
59
59
|
},
|
|
60
60
|
"&:disabled": {
|
|
61
61
|
zIndex: 1,
|
|
62
|
-
borderColor: theme.colors.
|
|
62
|
+
borderColor: theme.colors.border
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -102,17 +102,17 @@ const { staticClasses, useClasses } = createClasses("HvMultiButton", {
|
|
|
102
102
|
vertical: {
|
|
103
103
|
flexDirection: "column",
|
|
104
104
|
height: "auto",
|
|
105
|
-
borderColor: `transparent ${theme.colors.
|
|
105
|
+
borderColor: `transparent ${theme.colors.border}`,
|
|
106
106
|
"& $button": {
|
|
107
107
|
minWidth: 32,
|
|
108
108
|
width: "100%",
|
|
109
109
|
"&$firstButton": {
|
|
110
|
-
borderTopColor: theme.colors.
|
|
110
|
+
borderTopColor: theme.colors.border,
|
|
111
111
|
borderTopLeftRadius: "inherit",
|
|
112
112
|
borderTopRightRadius: "inherit"
|
|
113
113
|
},
|
|
114
114
|
"&$lastButton": {
|
|
115
|
-
borderBottomColor: theme.colors.
|
|
115
|
+
borderBottomColor: theme.colors.border,
|
|
116
116
|
borderBottomLeftRadius: "inherit",
|
|
117
117
|
borderBottomRightRadius: "inherit"
|
|
118
118
|
},
|
|
@@ -123,7 +123,7 @@ const { staticClasses, useClasses } = createClasses("HvMultiButton", {
|
|
|
123
123
|
"&$selected": {
|
|
124
124
|
height: 32,
|
|
125
125
|
width: "calc(100% + 2px)",
|
|
126
|
-
borderColor: theme.colors.
|
|
126
|
+
borderColor: theme.colors.text
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
},
|