hrm_ui_lib 2.0.0-alpha.10 → 2.0.0-alpha.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrm_ui_lib",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
4
4
  "description": "UI library for Dino",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -1,9 +0,0 @@
1
- import { ReactElement } from 'react';
2
- interface IconDynamicComponentProps {
3
- componentName: string;
4
- size?: string;
5
- type?: string;
6
- className?: string;
7
- }
8
- export declare const IconDynamicComponent: ({ componentName, size, type, className }: IconDynamicComponentProps) => ReactElement | null;
9
- export default IconDynamicComponent;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Suspense } from 'react';
3
- import { IconComponentMapping } from './constants';
4
- export const IconDynamicComponent = ({ componentName, size = 'small', type = 'inverse', className }) => {
5
- if (!componentName || !IconComponentMapping[componentName]) {
6
- return null;
7
- }
8
- // Dynamically load the component based on the componentName prop
9
- const Component = IconComponentMapping[componentName];
10
- return (_jsx(Suspense, { fallback: null, children: _jsx(Component, { type: type, size: size, className: className }) }));
11
- };
12
- export default IconDynamicComponent;
@@ -1,3 +0,0 @@
1
- export declare const IconComponentMapping: {
2
- [key: string]: any;
3
- };
@@ -1,12 +0,0 @@
1
- import { lazy } from 'react';
2
- export const IconComponentMapping = {
3
- warningFilled: lazy(() => import('../../components/SVGIcons/IconWarningFilled')),
4
- checkmarkCircleFilled: lazy(() => import('../../components/SVGIcons/IconCheckmarkCircleFilled')),
5
- errorCircleFilled: lazy(() => import('../../components/SVGIcons/IconErrorCircleFilled')),
6
- infoFilled: lazy(() => import('../../components/SVGIcons/IconInfoFilled')),
7
- checkmark: lazy(() => import('../../components/SVGIcons/IconCheckmark')),
8
- subtract: lazy(() => import('../../components/SVGIcons/IconSubtract')),
9
- am: lazy(() => import('../../components/SVGIcons/IconAm')),
10
- ru: lazy(() => import('../../components/SVGIcons/IconRu')),
11
- us: lazy(() => import('../../components/SVGIcons/IconGb'))
12
- };
@@ -1 +0,0 @@
1
- export * from './IconDynamicComponent';
@@ -1 +0,0 @@
1
- export * from './IconDynamicComponent';