@sphereon/ui-components.ssi-react 0.2.1-unstable.26 → 0.2.1-unstable.31

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { fontColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
3
+ import { getIcon } from '../../../utils';
3
4
  import { IconButtonContainerStyled as Container, SSITextH3Styled as Caption } from '../../../styles';
4
- import { getIcon } from '../../../helpers/iconHelper';
5
5
  const IconButton = (props) => {
6
6
  const { caption, icon, iconColor = fontColors.dark } = props;
7
7
  const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DropDownListItemCaptionContainerStyled as ListItemCaption, DropDownListItemContainerStyled as Container, DropDownListItemIconContainerStyled as IconContainer, } from '../../../styles/components';
3
2
  import { borderColors, fontColors } from '@sphereon/ui-components.core';
4
- import { getIcon } from '../../../helpers/iconHelper';
3
+ import { getIcon } from '../../../utils';
4
+ import { DropDownListItemCaptionContainerStyled as ListItemCaption, DropDownListItemContainerStyled as Container, DropDownListItemIconContainerStyled as IconContainer, } from '../../../styles/components';
5
5
  const DropDownListItem = (props) => {
6
6
  const { disabled, label, icon, showBorder = false, fontColor = fontColors.dark, borderColor = borderColors.light, onClick } = props;
7
7
  const onContainerClick = async (event) => {
@@ -3,10 +3,11 @@ import { ButtonIcon, fontColors } from '@sphereon/ui-components.core';
3
3
  import SSIAddIcon from '../components/assets/icons/SSIAddIcon';
4
4
  import SSIArrowDownIcon from '../components/assets/icons/SSIArrowDownIcon';
5
5
  import MeatBallsIcon from '../components/assets/icons/MeatBallsIcon';
6
- import { PencilIcon, ViewIcon } from '../index';
7
6
  import CopyIcon from '../components/assets/icons/CopyIcon';
8
7
  import DeleteIcon from '../components/assets/icons/DeleteIcon';
9
8
  import SSIFilterIcon from '../components/assets/icons/SSIFilterIcon';
9
+ import PencilIcon from '../components/assets/icons/PencilIcon';
10
+ import ViewIcon from '../components/assets/icons/ViewIcon';
10
11
  export const getIcon = (icon, color = fontColors.dark) => {
11
12
  switch (icon) {
12
13
  case ButtonIcon.ADD:
@@ -1,2 +1,3 @@
1
1
  export * from './FileUtils';
2
2
  export * from './ImageUtils';
3
+ export * from './IconUtils';
@@ -1,2 +1,3 @@
1
1
  export * from './FileUtils';
2
2
  export * from './ImageUtils';
3
+ export * from './IconUtils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react",
3
3
  "private": false,
4
- "version": "0.2.1-unstable.26+22e0ff2",
4
+ "version": "0.2.1-unstable.31+5f7746b",
5
5
  "description": "SSI UI components for React",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -40,7 +40,7 @@
40
40
  "@mui/styled-engine-sc": "^5.14.12",
41
41
  "@mui/system": "^5.15.12",
42
42
  "@mui/x-date-pickers": "^6.19.5",
43
- "@sphereon/ui-components.core": "0.2.1-unstable.26+22e0ff2",
43
+ "@sphereon/ui-components.core": "0.2.1-unstable.31+5f7746b",
44
44
  "@tanstack/react-table": "^8.9.3",
45
45
  "react-json-tree": "^0.18.0",
46
46
  "react-loader-spinner": "5.4.5",
@@ -59,5 +59,5 @@
59
59
  "peerDependencies": {
60
60
  "react": ">= 18"
61
61
  },
62
- "gitHead": "22e0ff2b7a9719e06efd7561eb4e9818f41926f0"
62
+ "gitHead": "5f7746b335cc357bbd00aaa845223cf3702b3d1a"
63
63
  }
@@ -1,3 +1,3 @@
1
- import { ButtonIcon } from '@sphereon/ui-components.core';
2
1
  import { ReactElement } from 'react';
2
+ import { ButtonIcon } from '@sphereon/ui-components.core';
3
3
  export declare const getIcon: (icon: ButtonIcon, color?: string) => ReactElement;