pixel-react 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  3. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +2 -0
  4. package/lib/components/MultiSelect/dropdownTypes.d.ts +2 -0
  5. package/lib/index.d.ts +3 -1
  6. package/lib/index.esm.js +512 -2327
  7. package/lib/index.esm.js.map +1 -1
  8. package/lib/index.js +512 -2328
  9. package/lib/index.js.map +1 -1
  10. package/lib/tsconfig.tsbuildinfo +1 -1
  11. package/lib/utils/compareArrays/compareArrays.d.ts +11 -0
  12. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  13. package/lib/utils/compareObjects/compareObjects.d.ts +2 -0
  14. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  15. package/lib/utils/debounce/debounce.d.ts +6 -0
  16. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  17. package/lib/utils/find/findAndInsert.d.ts +7 -0
  18. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  19. package/lib/utils/throttle/throttle.d.ts +6 -0
  20. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  21. package/package.json +3 -1
  22. package/rollup.config.mjs +10 -5
  23. package/src/StyleGuide/ColorPalette/ColorPalette.scss +4 -5
  24. package/src/StyleGuide/Typography/Typography.scss +4 -5
  25. package/src/assets/Themes/Theme.scss +7 -191
  26. package/src/assets/icons/filter.svg +5 -0
  27. package/src/components/Accordion/Accordion.scss +1 -2
  28. package/src/components/Button/Button.scss +1 -1
  29. package/src/components/Charts/DonutChart/DonutChart.scss +1 -1
  30. package/src/components/Charts/RadialChart/RadialChart.scss +1 -1
  31. package/src/components/Drawer/Drawer.scss +9 -10
  32. package/src/components/ExpandableMenu/ExpandableMenu.scss +1 -1
  33. package/src/components/Icon/Icons.scss +5 -6
  34. package/src/components/Icon/iconList.ts +2 -0
  35. package/src/components/MenuOption/MenuOption.scss +1 -1
  36. package/src/components/MultiSelect/Dropdown.scss +27 -16
  37. package/src/components/MultiSelect/Dropdown.tsx +51 -28
  38. package/src/components/MultiSelect/MultiSelect.scss +1 -1
  39. package/src/components/MultiSelect/MultiSelect.stories.tsx +9 -5
  40. package/src/components/MultiSelect/MultiSelect.tsx +4 -0
  41. package/src/components/MultiSelect/MultiSelectTypes.ts +2 -0
  42. package/src/components/MultiSelect/dropdownTypes.ts +2 -0
  43. package/src/components/RadioButton/RadioButton.scss +2 -3
  44. package/src/components/Search/Search.scss +1 -1
  45. package/src/components/Table/Table.scss +1 -1
  46. package/src/components/TextArea/Textarea.scss +1 -2
  47. package/src/components/Toggle/Toggle.scss +5 -4
  48. package/src/components/Tooltip/Tooltip.scss +1 -1
  49. package/src/index.ts +1 -4
  50. package/src/utils/checkEmpty/checkEmpty.stories.tsx +1 -1
  51. package/src/utils/checkEmpty/checkEmpty.ts +21 -7
  52. package/src/utils/compareArrays/compareArrays.stories.tsx +62 -0
  53. package/src/utils/compareArrays/compareArrays.ts +31 -0
  54. package/src/utils/compareObjects/compareObjects.stories.tsx +51 -0
  55. package/src/utils/compareObjects/compareObjects.ts +53 -0
  56. package/src/utils/debounce/debounce.stories.tsx +81 -0
  57. package/src/utils/debounce/debounce.ts +28 -0
  58. package/src/utils/find/findAndInsert.stories.tsx +119 -0
  59. package/src/utils/find/findAndInsert.ts +49 -0
  60. package/src/utils/throttle/throttle.stories.tsx +100 -0
  61. package/src/utils/throttle/throttle.ts +33 -0
  62. package/vite.config.js +8 -16
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/comparearrays/comparearrays.stories.tsx","../src/utils/comparearrays/comparearrays.ts","../src/utils/compareobjects/compareobjects.stories.tsx","../src/utils/compareobjects/compareobjects.ts","../src/utils/debounce/debounce.stories.tsx","../src/utils/debounce/debounce.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/find/findandinsert.stories.tsx","../src/utils/find/findandinsert.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/throttle/throttle.stories.tsx","../src/utils/throttle/throttle.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.3"}
@@ -0,0 +1,11 @@
1
+ export type AnyObject = Record<string, unknown>;
2
+ /**
3
+ * Compare two arrays for equality.
4
+ * This function checks if both arrays contain the same elements in the same order,
5
+ * including nested structures.
6
+ *
7
+ * @param arr1 - The first array to compare.
8
+ * @param arr2 - The second array to compare.
9
+ * @returns - A boolean indicating if the arrays are equal.
10
+ */
11
+ export declare const compareArrays: (arr1: unknown[], arr2: unknown[]) => boolean;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (arr1: unknown[], arr2: unknown[]) => boolean;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export type AnyObject = Record<string, unknown>;
2
+ export declare const compareObjects: (obj1: AnyObject | null, obj2: AnyObject | null) => boolean;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (obj1: import("./compareObjects").AnyObject | null, obj2: import("./compareObjects").AnyObject | null) => boolean;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ type Callback = (...args: any[]) => void;
2
+ export interface DebouncedFunction extends Function {
3
+ cancel: () => void;
4
+ }
5
+ export declare const debounce: (func: Callback, delay: number) => DebouncedFunction;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (func: (...args: any[]) => void, delay: number) => import("./debounce").DebouncedFunction;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type AnyObject = {
2
+ id: number;
3
+ [key: string]: any;
4
+ };
5
+ export declare function findAndInsert<T extends AnyObject>(data: T[], key: keyof T, targetId: number, newEntry: T, insertPosition: 'above' | 'below' | 'replace', childrenKey?: string): {
6
+ updatedArray: T[];
7
+ } | null;
@@ -0,0 +1,7 @@
1
+ import { findAndInsert } from './findAndInsert';
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof findAndInsert;
5
+ };
6
+ export default _default;
7
+ export declare const InteractivePlayground: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ type Callback = (...args: any[]) => void;
2
+ export interface ThrottledFunction extends Function {
3
+ cancel: () => void;
4
+ }
5
+ export declare const throttle: (func: Callback, limit: number) => ThrottledFunction;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: (func: (...args: any[]) => void, limit: number) => import("./throttle").ThrottledFunction;
4
+ };
5
+ export default _default;
6
+ export declare const Default: () => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -10,7 +10,9 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "devDependencies": {
13
+ "@babel/preset-react": "^7.25.9",
13
14
  "@chromatic-com/storybook": "^2.0.2",
15
+ "@rollup/plugin-babel": "^6.0.4",
14
16
  "@rollup/plugin-commonjs": "^25.0.7",
15
17
  "@rollup/plugin-node-resolve": "^15.2.3",
16
18
  "@rollup/plugin-typescript": "^11.1.6",
package/rollup.config.mjs CHANGED
@@ -4,12 +4,10 @@ import commonjs from '@rollup/plugin-commonjs';
4
4
  import typescript from '@rollup/plugin-typescript';
5
5
  import postcss from 'rollup-plugin-postcss';
6
6
  import dts from 'rollup-plugin-dts';
7
- import react from '@vitejs/plugin-react';
7
+ import { babel } from '@rollup/plugin-babel'; // Import Babel plugin
8
8
  import svgrPlugin from 'vite-plugin-svgr';
9
9
  import { createRequire } from 'node:module';
10
10
 
11
- // This is required to read package.json file when
12
- // using Native ES modules in Node.js
13
11
  const requireFile = createRequire(import.meta.url);
14
12
  const packageJson = requireFile('./package.json');
15
13
 
@@ -34,11 +32,18 @@ export default [
34
32
  peerDepsExternal(),
35
33
  resolve(),
36
34
  commonjs(),
37
- typescript(), // Ensure tsconfig.json targets ESM
35
+ typescript(),
38
36
  postcss({
39
37
  extensions: ['.scss'],
38
+ use: {
39
+ sass: true, // Ensure Dart Sass is used
40
+ },
40
41
  }),
41
- react(),
42
+ babel({
43
+ presets: ['@babel/preset-react'],
44
+ babelHelpers: 'bundled',
45
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
46
+ }), // Use Babel to handle JSX instead of Vite React
42
47
  svgrPlugin({
43
48
  svgrOptions: {
44
49
  icon: true,
@@ -1,16 +1,15 @@
1
- @import '../../assets/styles/colors';
2
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
3
2
 
4
3
  .ff-style-guide {
5
4
  border-radius: 12px;
6
5
 
7
6
  .style-guide-header {
8
- background-color: $brand-color;
7
+ background-color: var(--brand-color);
9
8
  height: 100px;
10
9
  padding: 40px;
11
10
  border-top-left-radius: 12px;
12
11
  border-top-right-radius: 12px;
13
- color: $tooltip-text-color;
12
+ color: var(--tooltip-text-color);
14
13
 
15
14
  & div {
16
15
  @extend .font-size-32;
@@ -51,7 +50,7 @@
51
50
  .color-code {
52
51
  @extend .fontSm;
53
52
  font-weight: 400;
54
- color: $text-color;
53
+ color: var(--text-color);
55
54
  }
56
55
  }
57
56
  }
@@ -1,5 +1,4 @@
1
- @import '../../assets/styles/colors';
2
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
3
2
 
4
3
  .typography-container {
5
4
  .typography-header {
@@ -10,7 +9,7 @@
10
9
  & span {
11
10
  @extend .fontSm;
12
11
  font-weight: 400;
13
- color: $tooltip-bg-color; // need to change color #7A7A7A
12
+ color: var(--tooltip-bg-color); // need to change color #7A7A7A
14
13
  }
15
14
  }
16
15
  }
@@ -30,7 +29,7 @@
30
29
  width: 60%;
31
30
  display: flex;
32
31
  flex-direction: column;
33
- border-right: 1px solid $border-color;
32
+ border-right: 1px solid var(--border-color);
34
33
  padding: 10px;
35
34
  gap: 10px;
36
35
 
@@ -93,7 +92,7 @@
93
92
  .font-size {
94
93
  @extend .fontLg;
95
94
  font-weight: 400;
96
- color: $tooltip-bg-color;
95
+ color: var(--tooltip-bg-color);
97
96
  }
98
97
  }
99
98
  }
@@ -1,200 +1,16 @@
1
- @import './BaseTheme.scss';
2
- @import './DarkTheme.scss';
1
+ @use './BaseTheme' as base;
2
+ @use './DarkTheme' as dark;
3
3
 
4
4
  @mixin set-theme-variables($theme-map) {
5
- --brand-color: #{map-get($theme-map, brand-color)};
6
- --text-color: #{map-get($theme-map, text-color)};
7
- --description-text: #{map-get($theme-map, description-text)};
8
- --border-color: #{map-get($theme-map, border-color)};
9
- --disable-color: #{map-get($theme-map, disable-color)};
10
- --hover-color: #{map-get($theme-map, hover-color)};
11
- --pop-up-background-blur: #{map-get($theme-map, pop-up-background-blur)};
12
- --slider-table-color: #{map-get($theme-map, slider-table-color)};
13
- --drawer-footer-bg: #{map-get($theme-map, drawer-footer-bg)};
14
- --drawer-footer-border: #{map-get($theme-map, drawer-footer-border)};
15
- --text-bg-highlight: #{map-get($theme-map, text-bg-highlight)};
16
- --tooltip-bg-color: #{map-get($theme-map, tooltip-bg-color)};
17
- --tooltip-text-color: #{map-get($theme-map, tooltip-text-color)};
18
- --toggle-strip-color: #{map-get($theme-map, toggle-strip-color)};
19
- --toggle-strip-active: #{map-get($theme-map, toggle-strip-active)};
20
- --toggle-strip-shadow: #{map-get($theme-map, toggle-strip-shadow)};
21
- --toggle-button-bg-color: #{map-get($theme-map, toggle-button-bg-color)};
22
- --toggle-disable-icon-color: #{map-get($theme-map, toggle-disable-icon-color)};
23
- --chip-fill-color: #{map-get($theme-map, chip-fill-color)};
24
- --chip-text-color: #{map-get($theme-map, chip-text-color)};
25
- --primary-button-color: #{map-get($theme-map, primary-button-color)};
26
- --primary-button-hover: #{map-get($theme-map, primary-button-hover)};
27
- --primary-button-disable: #{map-get($theme-map, primary-button-disable)};
28
- --primary-button-text-color: #{map-get($theme-map, primary-button-text-color)};
29
- --primary-button-border: #{map-get($theme-map, primary-button-border)};
30
- --secondary-button-color-text: #{map-get(
31
- $theme-map,
32
- secondary-button-color-text
33
- )};
34
- --secondary-button-border: #{map-get($theme-map, secondary-button-border)};
35
- --secondary-button-text-color: #{map-get(
36
- $theme-map,
37
- secondary-button-text-color
38
- )};
39
- --secondary-button-hover: #{map-get($theme-map, secondary-button-hover)};
40
- --tertiary-button-color: #{map-get($theme-map, tertiary-button-color)};
41
- --tertiary-button-hover: #{map-get($theme-map, tertiary-button-hover)};
42
- --delete-button-color: #{map-get($theme-map, delete-button-color)};
43
- --delete-button-border: #{map-get($theme-map, delete-button-border)};
44
- --delete-button-hover: #{map-get($theme-map, delete-button-hover)};
45
- --delete-button-disable: #{map-get($theme-map, delete-button-disable)};
46
- --add-icon-hover-color: #{map-get($theme-map, add-icon-hover-color)};
47
- --arrow-button-bg-color: #{map-get($theme-map, arrow-button-bg-color)};
48
- --arrows-button-border-color: #{map-get(
49
- $theme-map,
50
- arrows-button-border-color
51
- )};
52
- --add-icon-hover-color: #{map-get($theme-map, add-icon-hover-color)};
53
- --arrow-button-bg-color: #{map-get($theme-map, arrow-button-bg-color)};
54
- --arrows-button-border-color: #{map-get(
55
- $theme-map,
56
- arrows-button-border-color
57
- )};
58
- --default-icon-color: #{map-get($theme-map, default-icon-color)};
59
- --error_light: #{map-get($theme-map, error_light)};
60
- --text-area-default-color: #{map-get($theme-map, text-area-default-color)};
61
- --expandable-menu-default-bg: #{map-get(
62
- $theme-map,
63
- expandable-menu-default-bg
64
- )};
65
- --expandable-menu-option-bg: #{map-get($theme-map, expandable-menu-option-bg)};
66
- --file-dropzone-default-color: #{map-get(
67
- $theme-map,
68
- file-dropzone-default-color
69
- )};
70
- --file-dropzone-selected-color: #{map-get(
71
- $theme-map,
72
- file-dropzone-selected-color
73
- )};
74
- --file-details-container-shadow: #{map-get(
75
- $theme-map,
76
- file-details-container-shadow
77
- )};
78
- --file-details-bg: #{map-get($theme-map, file-details-bg)};
79
- --ff-mini-modal-border: #{map-get($theme-map, ff-mini-modal-border)};
80
- --ff-mini-modal-box-shadow: #{map-get($theme-map, ff-mini-modal-box-shadow)};
81
- --ff-mini-modal-footer-background: #{map-get(
82
- $theme-map,
83
- ff-mini-modal-footer-background
84
- )};
85
-
86
- --input-default-border-color: #{map-get(
87
- $theme-map,
88
- input-default-border-color
89
- )};
90
- --input-hover-border-color: #{map-get($theme-map, input-hover-border-color)};
91
- --input-default-label-color: #{map-get($theme-map, input-default-label-color)};
92
- --input-label-bg-color: #{map-get($theme-map, input-label-bg-color)};
93
- --input-active-text-color: #{map-get($theme-map, input-active-text-color)};
94
- --input-error-text-color: #{map-get($theme-map, input-error-text-color)};
95
- --tabs-label-default-color: #{map-get($theme-map, tabs-label-default-color)};
96
- --tabs-label-active-color: #{map-get($theme-map, tabs-label-active-color)};
97
- --tabs-border-color: #{map-get($theme-map, tabs-border-color)};
98
- --tabs-bg-color: #{map-get($theme-map, tabs-bg-color)};
99
- --tab-bg-color: #{map-get($theme-map, tab-bg-color)};
100
- --option-card-border-color: #{map-get($theme-map, option-card-border-color)};
101
- --option-card-bg-color: #{map-get($theme-map, option-card-bg-color)};
102
- --checkbox-bg-color: #{map-get($theme-map, checkbox-bg-color)};
103
- --checkbox-border-color: #{map-get($theme-map, checkbox-border-color)};
104
- --checkbox-partial-color: #{map-get($theme-map, checkbox-partial-color)};
105
- --checkbox-hover-color: #{map-get($theme-map, checkbox-hover-color)};
106
- --multi-select-border: #{map-get($theme-map, multi-select-border)};
107
- --text-color-light: #{map-get($theme-map, text-color-light)};
108
- --multi-select-label-bg: #{map-get($theme-map, multi-select-label-bg)};
109
- --radio-button-border: #{map-get($theme-map, radio-button-border)};
110
- --radio-button-hover: #{map-get($theme-map, radio-button-hover)};
111
- --tree-connecting-lines-color: #{map-get(
112
- $theme-map,
113
- tree-connecting-lines-color
114
- )};
115
- --menu-option-icon-color: #{map-get($theme-map, menu-option-icon-color)};
116
- --menu-option-icon-clicked: #{map-get($theme-map, menu-option-icon-clicked)};
117
- --delete-text-color: #{map-get($theme-map, delete-text-color)};
118
- --status-success-text-color: #{map-get($theme-map, status-success-text-color)};
119
- --status-warning-text-color: #{map-get($theme-map, status-warning-text-color)};
120
- --status-rejected-text-color: #{map-get(
121
- $theme-map,
122
- status-rejected-text-color
123
- )};
124
- --status-skipped-text-color: #{map-get($theme-map, status-skipped-text-color)};
125
- --status-success-bg-color: #{map-get($theme-map, status-success-bg-color)};
126
- --status-warning-bg-color: #{map-get($theme-map, status-warning-bg-color)};
127
- --status-rejected-bg-color: #{map-get($theme-map, status-rejected-bg-color)};
128
- --status-skipped-bg-color: #{map-get($theme-map, status-skipped-bg-color)};
129
- --status-percentage-growth-bg-color: #{map-get(
130
- $theme-map,
131
- status-percentage-growth-bg-color
132
- )};
133
-
134
- // Select Dropdown Color
135
- --ff-select-option-border-color: #{map-get(
136
- $theme-map,
137
- ff-select-option-border-color
138
- )};
139
- --ff-select-option-wrapper-box-shadow: #{map-get(
140
- $theme-map,
141
- ff-select-option-wrapper-box-shadow
142
- )};
143
- --ff-select-background-color: #{map-get(
144
- $theme-map,
145
- ff-select-background-color
146
- )};
147
- --ff-select-scroll-thumb-color: #{map-get(
148
- $theme-map,
149
- ff-select-scroll-thumb-color
150
- )};
151
- --ff-select-scroll-track-bg: #{map-get($theme-map, ff-select-scroll-track-bg)};
152
- --ff-select-scroll-thumb-hover: #{map-get(
153
- $theme-map,
154
- ff-select-scroll-thumb-hover
155
- )};
156
- --ff-select-text-color: #{map-get($theme-map, ff-select-text-color)};
157
- --ff-select-option-hover-color: #{map-get(
158
- $theme-map,
159
- ff-select-option-hover-color
160
- )};
161
- --ff-select-default-color: #{map-get($theme-map, ff-select-default-color)};
162
- --ff-select-border-color: #{map-get($theme-map, ff-select-border-color)};
163
- --ff-select-brand-color: #{map-get($theme-map, ff-select-brand-color)};
164
- --ff-select-text-hover-color: #{map-get(
165
- $theme-map,
166
- ff-select-text-hover-color
167
- )};
168
- --toaster-boxshadow: #{map-get($theme-map, toaster-boxshadow)};
169
- --toast-close-icon-wrapper-bg: #{map-get(
170
- $theme-map,
171
- toast-close-icon-wrapper-bg
172
- )};
173
- --toaster-success-border: #{map-get($theme-map, toaster-success-border)};
174
- --toaster-warning-border: #{map-get($theme-map, toaster-warning-border)};
175
- --toaster-info-border: #{map-get($theme-map, toaster-info-border)};
176
- --toaster-danger_confirm-border: #{map-get(
177
- $theme-map,
178
- toaster-danger_confirm-border
179
- )};
180
- --ff-search-filed-clear-text: #{map-get(
181
- $theme-map,
182
- ff-search-filed-clear-text
183
- )};
184
- --ff-search-filed-placeholder-text: #{map-get(
185
- $theme-map,
186
- ff-search-filed-placeholder-text
187
- )};
188
- --ff-search-filed-close-Icon: #{map-get(
189
- $theme-map,
190
- ff-search-filed-close-Icon
191
- )};
5
+ @each $key, $value in $theme-map {
6
+ --#{$key}: #{$value};
7
+ }
192
8
  }
193
9
 
194
10
  .ff-light-theme {
195
- @include set-theme-variables($base-theme);
11
+ @include set-theme-variables(base.$base-theme);
196
12
  }
197
13
 
198
14
  .ff-dark-theme {
199
- @include set-theme-variables($dark-theme);
15
+ @include set-theme-variables(dark.$dark-theme);
200
16
  }
@@ -0,0 +1,5 @@
1
+ <svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M12.7145 0.400147H2.8385C2.43037 0.399936 2.03133 0.520731 1.69184 0.747262C1.35234 0.973792 1.08763 1.29589 0.931152 1.67284C0.774679 2.04979 0.733473 2.46466 0.812743 2.86503C0.892012 3.26539 1.0882 3.63326 1.3765 3.92215L5.6195 8.16515V13.1001C5.62058 13.3566 5.69752 13.6071 5.84062 13.82C5.98373 14.0328 6.18661 14.1986 6.42373 14.2964C6.66085 14.3943 6.9216 14.4197 7.17317 14.3697C7.42475 14.3196 7.65589 14.1963 7.8375 14.0151L9.4565 12.4001C9.60732 12.2508 9.7269 12.0728 9.80828 11.8768C9.88965 11.6807 9.9312 11.4704 9.9305 11.2581V8.15815L14.1765 3.91615C14.3675 3.72539 14.5189 3.4987 14.6219 3.24914C14.7249 2.99959 14.7774 2.73211 14.7765 2.46215C14.7754 1.91559 14.5579 1.39173 14.1714 1.00526C13.7849 0.618789 13.2611 0.401204 12.7145 0.400147ZM13.4095 3.15715L9.1715 7.40015C9.07035 7.50015 8.99014 7.61931 8.93554 7.75065C8.88094 7.882 8.85305 8.02291 8.8535 8.16515V11.2651C8.85142 11.4076 8.79572 11.544 8.6975 11.6471L7.0815 13.2641C7.04817 13.2903 7.00843 13.307 6.96643 13.3126C6.92444 13.3182 6.88171 13.3124 6.8427 13.2959C6.8037 13.2793 6.76984 13.2526 6.74466 13.2186C6.71947 13.1845 6.70388 13.1443 6.6995 13.1021V8.16515C6.69983 8.02382 6.67186 7.88385 6.61724 7.75349C6.56263 7.62314 6.48247 7.50504 6.3815 7.40615L2.1445 3.15715C2.00588 3.01997 1.91124 2.84462 1.87265 2.65346C1.83406 2.46229 1.85326 2.26396 1.92782 2.08375C2.00237 1.90354 2.12889 1.7496 2.29126 1.64157C2.45362 1.53354 2.64448 1.4763 2.8395 1.47715H12.7145C12.9095 1.4763 13.1004 1.53354 13.2627 1.64157C13.4251 1.7496 13.5516 1.90354 13.6262 2.08375C13.7007 2.26396 13.7199 2.46229 13.6814 2.65346C13.6428 2.84462 13.5481 3.01997 13.4095 3.15715Z"
4
+ fill="currentColor" stroke="currentColor" stroke-width="0.5" />
5
+ </svg>
@@ -1,5 +1,4 @@
1
- @import '../../assets/styles/colors';
2
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
3
2
 
4
3
  .ff-accordion {
5
4
  border: 1px solid var(--border-color);
@@ -1,5 +1,5 @@
1
1
  @use '../../assets/styles/colors' as *;
2
- @import '../../assets/styles/fonts';
2
+ @use '../../assets/styles/fonts';
3
3
 
4
4
  .ff-button {
5
5
  width: auto;
@@ -1,4 +1,4 @@
1
- @import '../../../assets/styles/fonts';
1
+ @use '../../../assets/styles/fonts';
2
2
  .ff-donut-chart-section {
3
3
  display: flex;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- @import '../../../assets/styles/fonts';
1
+ @use '../../../assets/styles/fonts';
2
2
 
3
3
  .ff-radial-chart-container {
4
4
  cursor: pointer;
@@ -1,11 +1,10 @@
1
- @import '../../assets/styles/colors';
2
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
3
2
 
4
3
  .ff-drawer-container {
5
4
  .ff-overlay {
6
5
  position: fixed;
7
6
  inset: 0;
8
- background-color: $drawer-title-color;
7
+ background-color: var(--drawer-title-color);
9
8
  opacity: 0.5;
10
9
  }
11
10
 
@@ -16,7 +15,7 @@
16
15
  top: 0;
17
16
  bottom: 0;
18
17
  min-width: 450px;
19
- background-color: $primary-button-text-color;
18
+ background-color: var(--primary-button-text-color);
20
19
  z-index: 999;
21
20
  transform: translateX(100%);
22
21
  opacity: 0;
@@ -43,19 +42,19 @@
43
42
  &--x-large {
44
43
  transition: all 0.4s ease-in-out;
45
44
  border-radius: 5px;
46
- border: 2px solid $border-color;
45
+ border: 2px solid var(--border-color);
47
46
  }
48
47
 
49
48
  .ff-drawer-header {
50
49
  padding: 10px 8px 10px 8px;
51
50
  display: flex;
52
51
  gap: 10px;
53
- border-bottom: 2px solid $border-color;
52
+ border-bottom: 2px solid var(--border-color);
54
53
 
55
54
  .ff-drawer-title {
56
55
  @extend .fontSm;
57
56
  font-weight: 600;
58
- color: $drawer-title-color;
57
+ color: var(--drawer-title-color);
59
58
  display: flex;
60
59
  align-items: center;
61
60
  gap: 12px;
@@ -75,7 +74,7 @@
75
74
 
76
75
  .ff-expand-collapse-button {
77
76
  cursor: pointer;
78
- background-color: $button-bg-color;
77
+ background-color: var(--button-bg-color);
79
78
  outline: none;
80
79
  border: none;
81
80
  margin: 0;
@@ -91,7 +90,7 @@
91
90
  }
92
91
 
93
92
  .ff-drawer-body {
94
- background-color: $drawer-footer-bg;
93
+ background-color: var(--drawer-footer-bg);
95
94
  padding: 8px;
96
95
  height: calc(100vh - 76px);
97
96
  overflow: hidden auto;
@@ -109,7 +108,7 @@
109
108
  padding: 5px 16px 5px 16px;
110
109
  display: flex;
111
110
  justify-content: space-between;
112
- border-top: 2px solid $drawer-footer-border;
111
+ border-top: 2px solid var(--drawer-footer-border);
113
112
 
114
113
  .button-container {
115
114
  display: flex;
@@ -1,4 +1,4 @@
1
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
2
2
 
3
3
  .ff-expandable-chip-menu {
4
4
  display: inline-flex;
@@ -1,4 +1,3 @@
1
- @import '../../assets/styles/colors';
2
1
 
3
2
  .ff-icon-container {
4
3
  display: flex;
@@ -12,10 +11,10 @@
12
11
  box-sizing: content-box;
13
12
  &:hover {
14
13
  border-radius: 50%;
15
- background-color: $drawer-footer-bg;
16
- box-shadow: 0px 0px 16px $toggle-strip-shadow;
14
+ background-color: var(--drawer-footer-bg);
15
+ box-shadow: 0px 0px 16px var(--toggle-strip-shadow);
17
16
  & > svg {
18
- color: $brand-color;
17
+ color: var(--brand-color);
19
18
  }
20
19
  }
21
20
  }
@@ -23,12 +22,12 @@
23
22
  .ff-icon-disabled {
24
23
  cursor: no-drop;
25
24
  & > svg {
26
- color: $toggle-strip-color;
25
+ color: var(--toggle-strip-color);
27
26
  }
28
27
  &:hover {
29
28
  box-shadow: none;
30
29
  & > svg {
31
- color: $toggle-strip-color;
30
+ color: var(--toggle-strip-color);
32
31
  }
33
32
  }
34
33
  }
@@ -28,6 +28,7 @@ import CheckMarkIcon from '../../assets/icons/check_mark.svg?react';
28
28
  import WrongMarkIcon from '../../assets/icons/wrong_mark.svg?react';
29
29
  import Tick from '../../assets/Icons/tick_icon.svg?react';
30
30
  import Search from '../../assets/icons/search.svg?react';
31
+ import Filter from '../../assets/icons/filter.svg?react';
31
32
 
32
33
  //icons
33
34
  Components['delete'] = DeleteIcon;
@@ -58,5 +59,6 @@ Components['wrong_mark'] = WrongMarkIcon;
58
59
  Components['tick'] = Tick;
59
60
  Components['arrow_right'] = ArrowRight;
60
61
  Components['search'] = Search;
62
+ Components['filter'] = Filter;
61
63
 
62
64
  export default Components;
@@ -1,4 +1,4 @@
1
- @import '../../assets/styles/fonts';
1
+ @use '../../assets/styles/fonts';
2
2
 
3
3
  .ff-menu-option-container {
4
4
  cursor: pointer;