@fast-simon/dashboard-utilities 1.0.8 → 1.0.10

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.
@@ -5,3 +5,4 @@ export * from './InStoreFiltersIcon';
5
5
  export * from './PromoteIcon';
6
6
  export * from './RemoveIcon';
7
7
  export * from './RestoreIcon';
8
+ export * from './styles.module.css';
@@ -5,4 +5,5 @@ export * from './InStoreFiltersIcon';
5
5
  export * from './PromoteIcon';
6
6
  export * from './RemoveIcon';
7
7
  export * from './RestoreIcon';
8
+ export * from './styles.module.css';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA","sourcesContent":["export * from './BackOfficeFiltersIcon'\r\nexport * from './BannersIcon'\r\nexport * from './HelpIcon'\r\nexport * from './InStoreFiltersIcon'\r\nexport * from './PromoteIcon'\r\nexport * from './RemoveIcon'\r\nexport * from './RestoreIcon'"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA","sourcesContent":["export * from './BackOfficeFiltersIcon'\r\nexport * from './BannersIcon'\r\nexport * from './HelpIcon'\r\nexport * from './InStoreFiltersIcon'\r\nexport * from './PromoteIcon'\r\nexport * from './RemoveIcon'\r\nexport * from './RestoreIcon'\r\nexport * from './styles.module.css'"]}
@@ -0,0 +1,61 @@
1
+ .svg {
2
+ fill: black;
3
+ transition: all ease-in-out 110ms;
4
+
5
+ }
6
+
7
+ .svg:hover {
8
+ fill: var(--primary-color);
9
+ }
10
+
11
+ .svgPath {
12
+ stroke: black;
13
+ transition: all ease-in-out 200ms;
14
+ stroke-width: 2;
15
+ }
16
+
17
+ .iconWrapper {
18
+ transition: all ease-in-out 200ms;
19
+ width: 100%;
20
+ height: 100%;
21
+ display: flex;
22
+ position: relative;
23
+ align-items: center;
24
+ justify-content: center;
25
+ }
26
+
27
+ .iconWrapperForStrokedSvg:hover .svgPath {
28
+ stroke: var(--primary-color);
29
+ }
30
+
31
+ .iconWrapper:hover .svg {
32
+ fill: var(--primary-color);
33
+ }
34
+
35
+ .iconWrapperForStrokedSvg:hover .svg{
36
+ fill: var(--primary-color);
37
+ }
38
+
39
+ .iconWrapperForStrokedSvg {
40
+ transition: all ease-in-out 200ms;
41
+ width: 100%;
42
+ display: flex;
43
+ position: relative;
44
+ align-items: center;
45
+ justify-content: center;
46
+ height: 100%;
47
+ }
48
+
49
+ .iconWrapper:hover .materialIcon {
50
+ color: var(--primary-color);
51
+ }
52
+
53
+ .materialIcon {
54
+ transition: all ease-in-out 200ms;
55
+ font-size: 26px;
56
+ font-variation-settings:
57
+ 'FILL' 0,
58
+ 'wght' 500,
59
+ 'GRAD' 0,
60
+ 'opsz' 48
61
+ }
package/lib/main.d.ts CHANGED
@@ -3,6 +3,7 @@ import { CustomClasses, SideMenuType, SideMenuItem } from "./@types/sideMenu";
3
3
  import { ProductLabelType } from "./@types/productLabel";
4
4
  import { videoFormats, Banner } from "./@types/banner";
5
5
  import { EditorProduct } from "./@types/editorProduct";
6
+ import { IconProps } from "./@types/iconProps";
6
7
  import * as Icons from "./icons";
7
8
  import BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu';
8
9
  import InStoreFiltersMenu from './components/InStoreFiltersMenu';
@@ -13,5 +14,5 @@ import ProductGrid from "./components/productGrid/ProductGrid";
13
14
  import RenderIfVisible from "./components/RenderIfVisible";
14
15
  import { useDragToSelect } from "./utils/useDragToSelect";
15
16
  import { LandingPage } from "./services/landingPage";
16
- export type { MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, videoFormats, Banner, EditorProduct };
17
+ export type { MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, videoFormats, Banner, EditorProduct, IconProps };
17
18
  export { BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible, useDragToSelect, LandingPage, Icons };
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,qBAAqB,MAAM,oCAAoC,CAAA;AACtE,OAAO,kBAAkB,MAAM,iCAAiC,CAAA;AAChE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAA;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACH,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EACnH,eAAe,EAAE,WAAW,EAAE,KAAK,EAAC,CAAA","sourcesContent":["import {MenuItemName} from \"./@types/sideMenu\"\nimport {CustomClasses, SideMenuType, SideMenuItem} from \"./@types/sideMenu\"\nimport {ProductLabelType} from \"./@types/productLabel\"\nimport {videoFormats, Banner} from \"./@types/banner\"\nimport {EditorProduct} from \"./@types/editorProduct\"\nimport * as Icons from \"./icons\"\nimport BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu'\nimport InStoreFiltersMenu from './components/InStoreFiltersMenu'\nimport DndContextWrapper from './components/DragAndDrop/DndContextWrapper'\nimport Droppable from './components/DragAndDrop/Droppable'\nimport {SortableItem} from './components/DragAndDrop/SortableItem'\nimport ProductGrid from \"./components/productGrid/ProductGrid\";\nimport RenderIfVisible from \"./components/RenderIfVisible\";\nimport {useDragToSelect} from \"./utils/useDragToSelect\";\nimport { LandingPage } from \"./services/landingPage\";\n\nexport type { MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, videoFormats, Banner, EditorProduct};\nexport {\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\n useDragToSelect, LandingPage, Icons}"]}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,qBAAqB,MAAM,oCAAoC,CAAA;AACtE,OAAO,kBAAkB,MAAM,iCAAiC,CAAA;AAChE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAA;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACH,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EACnH,eAAe,EAAE,WAAW,EAAE,KAAK,EAAC,CAAA","sourcesContent":["import {MenuItemName} from \"./@types/sideMenu\"\nimport {CustomClasses, SideMenuType, SideMenuItem} from \"./@types/sideMenu\"\nimport {ProductLabelType} from \"./@types/productLabel\"\nimport {videoFormats, Banner} from \"./@types/banner\"\nimport {EditorProduct} from \"./@types/editorProduct\"\nimport {IconProps} from \"./@types/iconProps\"\n\nimport * as Icons from \"./icons\"\nimport BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu'\nimport InStoreFiltersMenu from './components/InStoreFiltersMenu'\nimport DndContextWrapper from './components/DragAndDrop/DndContextWrapper'\nimport Droppable from './components/DragAndDrop/Droppable'\nimport {SortableItem} from './components/DragAndDrop/SortableItem'\nimport ProductGrid from \"./components/productGrid/ProductGrid\";\nimport RenderIfVisible from \"./components/RenderIfVisible\";\nimport {useDragToSelect} from \"./utils/useDragToSelect\";\nimport { LandingPage } from \"./services/landingPage\";\n\nexport type { MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, videoFormats, Banner, EditorProduct, IconProps};\nexport {\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\n useDragToSelect, LandingPage, Icons}"]}
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "files": [
4
4
  "lib/**/*"
5
5
  ],
6
- "version": "1.0.8",
6
+ "version": "1.0.10",
7
7
  "scripts": {
8
8
  "dev": "vite",
9
9
  "preview": "vite preview",
10
10
  "build": "tsc -p tsconfig-build.json",
11
11
  "prepublishOnly": "npm version patch && npm run build",
12
- "postbuild": "copyfiles -u 2 src/components/**/*.css lib/components && copyfiles -u 2 lib/icons/**/*.css lib/icons && copyfiles -u 2 src/assets/**/*.gif lib/assets",
12
+ "postbuild": "copyfiles -u 2 src/components/**/*.css lib/components && copyfiles -u 2 src/icons/**/*.css lib/icons && copyfiles -u 2 src/assets/**/*.gif lib/assets",
13
13
  "tsc": "tsc"
14
14
  },
15
15
  "main": "lib/main.js",