@fast-simon/dashboard-utilities 1.0.4 → 1.0.6

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.
Files changed (219) hide show
  1. package/{dist → lib}/components/DragAndDrop/Droppable.js +1 -1
  2. package/lib/components/DragAndDrop/Droppable.js.map +1 -0
  3. package/{dist → lib}/components/FastSimonApi/reducer.d.ts +2 -2
  4. package/lib/main.d.ts +16 -0
  5. package/lib/main.js +11 -0
  6. package/lib/main.js.map +1 -0
  7. package/package.json +11 -8
  8. package/dist/components/BackOfficeFiltersMenu/styles.module.css +0 -10
  9. package/dist/components/CheckboxFilter/Checkbox/styles.module.css +0 -143
  10. package/dist/components/CheckboxFilter/styles.module.css +0 -5
  11. package/dist/components/DragAndDrop/Droppable.js.map +0 -1
  12. package/dist/components/DragAndDrop/styles.module.css +0 -21
  13. package/dist/components/FacetItem/styles.module.css +0 -55
  14. package/dist/components/FromToFilter/From/styles.module.css +0 -9
  15. package/dist/components/FromToFilter/To/styles.module.css +0 -9
  16. package/dist/components/FromToFilter/styles.module.css +0 -34
  17. package/dist/components/InStoreFiltersMenu/styles.module.css +0 -10
  18. package/dist/components/Input/styles.module.css +0 -3
  19. package/dist/components/LastReceivedDateFilter/styles.module.css +0 -41
  20. package/dist/components/RadioFilter/Radio/styles.module.css +0 -145
  21. package/dist/components/RadioFilter/styles.module.css +0 -23
  22. package/dist/components/ReactDatePicker/styles.module.css +0 -3
  23. package/dist/components/SingleFilter/styles.module.css +0 -23
  24. package/dist/components/SliderFilter/styles.module.css +0 -16
  25. package/dist/components/Tooltip/styles.module.css +0 -34
  26. package/dist/components/productGrid/styles.module.css +0 -23
  27. package/dist/icons/styles.module.css +0 -61
  28. package/dist/main.d.ts +0 -1
  29. package/dist/main.js +0 -6
  30. package/dist/main.js.map +0 -1
  31. /package/{dist → lib}/@types/banner.d.ts +0 -0
  32. /package/{dist → lib}/@types/banner.js +0 -0
  33. /package/{dist → lib}/@types/banner.js.map +0 -0
  34. /package/{dist → lib}/@types/categories.d.ts +0 -0
  35. /package/{dist → lib}/@types/categories.js +0 -0
  36. /package/{dist → lib}/@types/categories.js.map +0 -0
  37. /package/{dist → lib}/@types/currency.d.ts +0 -0
  38. /package/{dist → lib}/@types/currency.js +0 -0
  39. /package/{dist → lib}/@types/currency.js.map +0 -0
  40. /package/{dist → lib}/@types/editorProduct.d.ts +0 -0
  41. /package/{dist → lib}/@types/editorProduct.js +0 -0
  42. /package/{dist → lib}/@types/editorProduct.js.map +0 -0
  43. /package/{dist → lib}/@types/iconProps.d.ts +0 -0
  44. /package/{dist → lib}/@types/iconProps.js +0 -0
  45. /package/{dist → lib}/@types/iconProps.js.map +0 -0
  46. /package/{dist → lib}/@types/product.d.ts +0 -0
  47. /package/{dist → lib}/@types/product.js +0 -0
  48. /package/{dist → lib}/@types/product.js.map +0 -0
  49. /package/{dist → lib}/@types/productLabel.d.ts +0 -0
  50. /package/{dist → lib}/@types/productLabel.js +0 -0
  51. /package/{dist → lib}/@types/productLabel.js.map +0 -0
  52. /package/{dist → lib}/@types/promoTile.d.ts +0 -0
  53. /package/{dist → lib}/@types/promoTile.js +0 -0
  54. /package/{dist → lib}/@types/promoTile.js.map +0 -0
  55. /package/{dist → lib}/@types/results.d.ts +0 -0
  56. /package/{dist → lib}/@types/results.js +0 -0
  57. /package/{dist → lib}/@types/results.js.map +0 -0
  58. /package/{dist → lib}/@types/sideMenu.d.ts +0 -0
  59. /package/{dist → lib}/@types/sideMenu.js +0 -0
  60. /package/{dist → lib}/@types/sideMenu.js.map +0 -0
  61. /package/{dist → lib}/@types/sortBy.d.ts +0 -0
  62. /package/{dist → lib}/@types/sortBy.js +0 -0
  63. /package/{dist → lib}/@types/sortBy.js.map +0 -0
  64. /package/{dist → lib}/App.d.ts +0 -0
  65. /package/{dist → lib}/App.js +0 -0
  66. /package/{dist → lib}/App.js.map +0 -0
  67. /package/{dist → lib}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +0 -0
  68. /package/{dist → lib}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +0 -0
  69. /package/{dist → lib}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +0 -0
  70. /package/{dist → lib}/components/BackOfficeFiltersMenu/index.d.ts +0 -0
  71. /package/{dist → lib}/components/BackOfficeFiltersMenu/index.js +0 -0
  72. /package/{dist → lib}/components/BackOfficeFiltersMenu/index.js.map +0 -0
  73. /package/{dist → lib}/components/BackOfficeFiltersMenu/utils.d.ts +0 -0
  74. /package/{dist → lib}/components/BackOfficeFiltersMenu/utils.js +0 -0
  75. /package/{dist → lib}/components/BackOfficeFiltersMenu/utils.js.map +0 -0
  76. /package/{dist → lib}/components/CheckboxFilter/Checkbox/Checkbox.d.ts +0 -0
  77. /package/{dist → lib}/components/CheckboxFilter/Checkbox/Checkbox.js +0 -0
  78. /package/{dist → lib}/components/CheckboxFilter/Checkbox/Checkbox.js.map +0 -0
  79. /package/{dist → lib}/components/CheckboxFilter/CheckboxFilter.d.ts +0 -0
  80. /package/{dist → lib}/components/CheckboxFilter/CheckboxFilter.js +0 -0
  81. /package/{dist → lib}/components/CheckboxFilter/CheckboxFilter.js.map +0 -0
  82. /package/{dist → lib}/components/DragAndDrop/DndContextWrapper.d.ts +0 -0
  83. /package/{dist → lib}/components/DragAndDrop/DndContextWrapper.js +0 -0
  84. /package/{dist → lib}/components/DragAndDrop/DndContextWrapper.js.map +0 -0
  85. /package/{dist → lib}/components/DragAndDrop/Droppable.d.ts +0 -0
  86. /package/{dist → lib}/components/DragAndDrop/SortableItem.d.ts +0 -0
  87. /package/{dist → lib}/components/DragAndDrop/SortableItem.js +0 -0
  88. /package/{dist → lib}/components/DragAndDrop/SortableItem.js.map +0 -0
  89. /package/{dist → lib}/components/FacetItem/FacetItem.d.ts +0 -0
  90. /package/{dist → lib}/components/FacetItem/FacetItem.js +0 -0
  91. /package/{dist → lib}/components/FacetItem/FacetItem.js.map +0 -0
  92. /package/{dist → lib}/components/FastSimonApi/FastSimonApi.d.ts +0 -0
  93. /package/{dist → lib}/components/FastSimonApi/FastSimonApi.js +0 -0
  94. /package/{dist → lib}/components/FastSimonApi/FastSimonApi.js.map +0 -0
  95. /package/{dist → lib}/components/FastSimonApi/context.d.ts +0 -0
  96. /package/{dist → lib}/components/FastSimonApi/context.js +0 -0
  97. /package/{dist → lib}/components/FastSimonApi/context.js.map +0 -0
  98. /package/{dist → lib}/components/FastSimonApi/index.d.ts +0 -0
  99. /package/{dist → lib}/components/FastSimonApi/index.js +0 -0
  100. /package/{dist → lib}/components/FastSimonApi/index.js.map +0 -0
  101. /package/{dist → lib}/components/FastSimonApi/reducer.js +0 -0
  102. /package/{dist → lib}/components/FastSimonApi/reducer.js.map +0 -0
  103. /package/{dist → lib}/components/FromToFilter/From/From.d.ts +0 -0
  104. /package/{dist → lib}/components/FromToFilter/From/From.js +0 -0
  105. /package/{dist → lib}/components/FromToFilter/From/From.js.map +0 -0
  106. /package/{dist → lib}/components/FromToFilter/FromToFilter.d.ts +0 -0
  107. /package/{dist → lib}/components/FromToFilter/FromToFilter.js +0 -0
  108. /package/{dist → lib}/components/FromToFilter/FromToFilter.js.map +0 -0
  109. /package/{dist → lib}/components/FromToFilter/To/To.d.ts +0 -0
  110. /package/{dist → lib}/components/FromToFilter/To/To.js +0 -0
  111. /package/{dist → lib}/components/FromToFilter/To/To.js.map +0 -0
  112. /package/{dist → lib}/components/FromToFilter/utils.d.ts +0 -0
  113. /package/{dist → lib}/components/FromToFilter/utils.js +0 -0
  114. /package/{dist → lib}/components/FromToFilter/utils.js.map +0 -0
  115. /package/{dist → lib}/components/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +0 -0
  116. /package/{dist → lib}/components/InStoreFiltersMenu/InStoreFiltersMenu.js +0 -0
  117. /package/{dist → lib}/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +0 -0
  118. /package/{dist → lib}/components/InStoreFiltersMenu/index.d.ts +0 -0
  119. /package/{dist → lib}/components/InStoreFiltersMenu/index.js +0 -0
  120. /package/{dist → lib}/components/InStoreFiltersMenu/index.js.map +0 -0
  121. /package/{dist → lib}/components/Input/Input.d.ts +0 -0
  122. /package/{dist → lib}/components/Input/Input.js +0 -0
  123. /package/{dist → lib}/components/Input/Input.js.map +0 -0
  124. /package/{dist → lib}/components/Input/index.d.ts +0 -0
  125. /package/{dist → lib}/components/Input/index.js +0 -0
  126. /package/{dist → lib}/components/Input/index.js.map +0 -0
  127. /package/{dist → lib}/components/LastReceivedDateFilter/LastReceivedDate.d.ts +0 -0
  128. /package/{dist → lib}/components/LastReceivedDateFilter/LastReceivedDate.js +0 -0
  129. /package/{dist → lib}/components/LastReceivedDateFilter/LastReceivedDate.js.map +0 -0
  130. /package/{dist → lib}/components/LastReceivedDateFilter/utils.d.ts +0 -0
  131. /package/{dist → lib}/components/LastReceivedDateFilter/utils.js +0 -0
  132. /package/{dist → lib}/components/LastReceivedDateFilter/utils.js.map +0 -0
  133. /package/{dist → lib}/components/RadioFilter/Radio/Radio.d.ts +0 -0
  134. /package/{dist → lib}/components/RadioFilter/Radio/Radio.js +0 -0
  135. /package/{dist → lib}/components/RadioFilter/Radio/Radio.js.map +0 -0
  136. /package/{dist → lib}/components/RadioFilter/RadioFilter.d.ts +0 -0
  137. /package/{dist → lib}/components/RadioFilter/RadioFilter.js +0 -0
  138. /package/{dist → lib}/components/RadioFilter/RadioFilter.js.map +0 -0
  139. /package/{dist → lib}/components/RadioFilter/utils.d.ts +0 -0
  140. /package/{dist → lib}/components/RadioFilter/utils.js +0 -0
  141. /package/{dist → lib}/components/RadioFilter/utils.js.map +0 -0
  142. /package/{dist → lib}/components/ReactDatePicker/ReactDatePicker.d.ts +0 -0
  143. /package/{dist → lib}/components/ReactDatePicker/ReactDatePicker.js +0 -0
  144. /package/{dist → lib}/components/ReactDatePicker/ReactDatePicker.js.map +0 -0
  145. /package/{dist → lib}/components/ReactDatePicker/index.d.ts +0 -0
  146. /package/{dist → lib}/components/ReactDatePicker/index.js +0 -0
  147. /package/{dist → lib}/components/ReactDatePicker/index.js.map +0 -0
  148. /package/{dist → lib}/components/RenderIfVisible/RenderIfVisible.d.ts +0 -0
  149. /package/{dist → lib}/components/RenderIfVisible/RenderIfVisible.js +0 -0
  150. /package/{dist → lib}/components/RenderIfVisible/RenderIfVisible.js.map +0 -0
  151. /package/{dist → lib}/components/RenderIfVisible/index.d.ts +0 -0
  152. /package/{dist → lib}/components/RenderIfVisible/index.js +0 -0
  153. /package/{dist → lib}/components/RenderIfVisible/index.js.map +0 -0
  154. /package/{dist → lib}/components/SingleFilter/SingleFilter.d.ts +0 -0
  155. /package/{dist → lib}/components/SingleFilter/SingleFilter.js +0 -0
  156. /package/{dist → lib}/components/SingleFilter/SingleFilter.js.map +0 -0
  157. /package/{dist → lib}/components/SingleFilter/utils.d.ts +0 -0
  158. /package/{dist → lib}/components/SingleFilter/utils.js +0 -0
  159. /package/{dist → lib}/components/SingleFilter/utils.js.map +0 -0
  160. /package/{dist → lib}/components/SliderFilter/SliderFilter.d.ts +0 -0
  161. /package/{dist → lib}/components/SliderFilter/SliderFilter.js +0 -0
  162. /package/{dist → lib}/components/SliderFilter/SliderFilter.js.map +0 -0
  163. /package/{dist → lib}/components/SliderFilter/index.d.ts +0 -0
  164. /package/{dist → lib}/components/SliderFilter/index.js +0 -0
  165. /package/{dist → lib}/components/SliderFilter/index.js.map +0 -0
  166. /package/{dist → lib}/components/Tooltip/Tooltip.d.ts +0 -0
  167. /package/{dist → lib}/components/Tooltip/Tooltip.js +0 -0
  168. /package/{dist → lib}/components/Tooltip/Tooltip.js.map +0 -0
  169. /package/{dist → lib}/components/common.d.ts +0 -0
  170. /package/{dist → lib}/components/common.js +0 -0
  171. /package/{dist → lib}/components/common.js.map +0 -0
  172. /package/{dist → lib}/components/productGrid/ProductGrid.d.ts +0 -0
  173. /package/{dist → lib}/components/productGrid/ProductGrid.js +0 -0
  174. /package/{dist → lib}/components/productGrid/ProductGrid.js.map +0 -0
  175. /package/{dist → lib}/components/productGrid/index.d.ts +0 -0
  176. /package/{dist → lib}/components/productGrid/index.js +0 -0
  177. /package/{dist → lib}/components/productGrid/index.js.map +0 -0
  178. /package/{dist → lib}/icons/BackOfficeFiltersIcon.d.ts +0 -0
  179. /package/{dist → lib}/icons/BackOfficeFiltersIcon.js +0 -0
  180. /package/{dist → lib}/icons/BackOfficeFiltersIcon.js.map +0 -0
  181. /package/{dist → lib}/icons/BannersIcon.d.ts +0 -0
  182. /package/{dist → lib}/icons/BannersIcon.js +0 -0
  183. /package/{dist → lib}/icons/BannersIcon.js.map +0 -0
  184. /package/{dist → lib}/icons/HelpIcon.d.ts +0 -0
  185. /package/{dist → lib}/icons/HelpIcon.js +0 -0
  186. /package/{dist → lib}/icons/HelpIcon.js.map +0 -0
  187. /package/{dist → lib}/icons/InStoreFiltersIcon.d.ts +0 -0
  188. /package/{dist → lib}/icons/InStoreFiltersIcon.js +0 -0
  189. /package/{dist → lib}/icons/InStoreFiltersIcon.js.map +0 -0
  190. /package/{dist → lib}/icons/PromoteIcon.d.ts +0 -0
  191. /package/{dist → lib}/icons/PromoteIcon.js +0 -0
  192. /package/{dist → lib}/icons/PromoteIcon.js.map +0 -0
  193. /package/{dist → lib}/icons/RemoveIcon.d.ts +0 -0
  194. /package/{dist → lib}/icons/RemoveIcon.js +0 -0
  195. /package/{dist → lib}/icons/RemoveIcon.js.map +0 -0
  196. /package/{dist → lib}/icons/RestoreIcon.d.ts +0 -0
  197. /package/{dist → lib}/icons/RestoreIcon.js +0 -0
  198. /package/{dist → lib}/icons/RestoreIcon.js.map +0 -0
  199. /package/{dist → lib}/icons/index.d.ts +0 -0
  200. /package/{dist → lib}/icons/index.js +0 -0
  201. /package/{dist → lib}/icons/index.js.map +0 -0
  202. /package/{dist → lib}/services/API.d.ts +0 -0
  203. /package/{dist → lib}/services/API.js +0 -0
  204. /package/{dist → lib}/services/API.js.map +0 -0
  205. /package/{dist → lib}/services/landingPage.d.ts +0 -0
  206. /package/{dist → lib}/services/landingPage.js +0 -0
  207. /package/{dist → lib}/services/landingPage.js.map +0 -0
  208. /package/{dist → lib}/utils/customTagsFilters.d.ts +0 -0
  209. /package/{dist → lib}/utils/customTagsFilters.js +0 -0
  210. /package/{dist → lib}/utils/customTagsFilters.js.map +0 -0
  211. /package/{dist → lib}/utils/products.d.ts +0 -0
  212. /package/{dist → lib}/utils/products.js +0 -0
  213. /package/{dist → lib}/utils/products.js.map +0 -0
  214. /package/{dist → lib}/utils/shopifyMarkets.d.ts +0 -0
  215. /package/{dist → lib}/utils/shopifyMarkets.js +0 -0
  216. /package/{dist → lib}/utils/shopifyMarkets.js.map +0 -0
  217. /package/{dist → lib}/utils/useDragToSelect.d.ts +0 -0
  218. /package/{dist → lib}/utils/useDragToSelect.js +0 -0
  219. /package/{dist → lib}/utils/useDragToSelect.js.map +0 -0
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useDroppable } from "@dnd-kit/core/dist/hooks/useDroppable";
2
+ import { useDroppable } from "@dnd-kit/core";
3
3
  const Droppable = ({ id, children }) => {
4
4
  const { setNodeRef } = useDroppable({
5
5
  id: id,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Droppable.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/Droppable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAQ3C,MAAM,SAAS,GAAG,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAiB,EAAE,EAAE;IACjD,MAAM,EAAC,UAAU,EAAC,GAAG,YAAY,CAAC;QAC9B,EAAE,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,OAAO,CACH,4BAAK,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,gBAC7E,QAAQ,IACP,CACT,CAAC;AACN,CAAC,CAAA;AAED,eAAe,SAAS,CAAA","sourcesContent":["import {useDroppable} from \"@dnd-kit/core\";\r\nimport { ReactNode } from \"react\";\r\n\r\ninterface DroppableProps {\r\n id: string;\r\n children: ReactNode;\r\n}\r\n\r\nconst Droppable = ({id, children}: DroppableProps) => {\r\n const {setNodeRef} = useDroppable({\r\n id: id,\r\n });\r\n\r\n return (\r\n <div ref={setNodeRef} style={{width: '100%', height: '100%', position: 'relative'}}>\r\n {children}\r\n </div>\r\n );\r\n}\r\n\r\nexport default Droppable"]}
@@ -108,7 +108,7 @@ export declare function fastStateReducer(state: FastStateProps, action: FastStat
108
108
  ancestors: import("fast-simon-sdk").CategoryAncestor[];
109
109
  categoryID: string;
110
110
  name: string;
111
- facets?: import("fast-simon-sdk").Facet[] | import("@fast-simon/utilities").ServerFacet[] | undefined;
111
+ facets?: import("@fast-simon/utilities").ServerFacet[] | import("fast-simon-sdk").Facet[] | undefined;
112
112
  totalResults: number;
113
113
  sortBy?: SortBy | undefined;
114
114
  narrow?: Narrow[] | undefined;
@@ -122,7 +122,7 @@ export declare function fastStateReducer(state: FastStateProps, action: FastStat
122
122
  } | {
123
123
  products: Product[];
124
124
  query: string;
125
- facets?: import("fast-simon-sdk").Facet[] | import("@fast-simon/utilities").ServerFacet[] | undefined;
125
+ facets?: import("@fast-simon/utilities").ServerFacet[] | import("fast-simon-sdk").Facet[] | undefined;
126
126
  totalResults: number;
127
127
  narrow?: Narrow[] | undefined;
128
128
  sortBy?: SortBy | undefined;
package/lib/main.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import * as sideMenuTypes from "./@types/sideMenu";
2
+ import { ProductLabelType } from "./@types/productLabel";
3
+ import { videoFormats, Banner } from "./@types/banner";
4
+ import { EditorProduct } from "./@types/editorProduct";
5
+ import * as Icons from "./icons";
6
+ import BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu';
7
+ import InStoreFiltersMenu from './components/InStoreFiltersMenu';
8
+ import DndContextWrapper from './components/DragAndDrop/DndContextWrapper';
9
+ import Droppable from './components/DragAndDrop/Droppable';
10
+ import { SortableItem } from './components/DragAndDrop/SortableItem';
11
+ import ProductGrid from "./components/productGrid/ProductGrid";
12
+ import RenderIfVisible from "./components/RenderIfVisible";
13
+ import { useDragToSelect } from "./utils/useDragToSelect";
14
+ import { LandingPage } from "./services/landingPage";
15
+ export type { sideMenuTypes, ProductLabelType, videoFormats, Banner, EditorProduct, Icons, };
16
+ export { BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible, useDragToSelect, LandingPage };
package/lib/main.js ADDED
@@ -0,0 +1,11 @@
1
+ import BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu';
2
+ import InStoreFiltersMenu from './components/InStoreFiltersMenu';
3
+ import DndContextWrapper from './components/DragAndDrop/DndContextWrapper';
4
+ import Droppable from './components/DragAndDrop/Droppable';
5
+ import { SortableItem } from './components/DragAndDrop/SortableItem';
6
+ import ProductGrid from "./components/productGrid/ProductGrid";
7
+ import RenderIfVisible from "./components/RenderIfVisible";
8
+ import { useDragToSelect } from "./utils/useDragToSelect";
9
+ import { LandingPage } from "./services/landingPage";
10
+ export { BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible, useDragToSelect, LandingPage };
11
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAKA,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,EAAC,CAAA","sourcesContent":["import * as sideMenuTypes 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 { sideMenuTypes, ProductLabelType, videoFormats, Banner, EditorProduct, Icons,};\nexport {\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\n useDragToSelect, LandingPage}"]}
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@fast-simon/dashboard-utilities",
3
- "version": "1.0.4",
3
+ "files": [
4
+ "lib/**/*"
5
+ ],
6
+ "version": "1.0.6",
4
7
  "scripts": {
5
8
  "dev": "vite",
6
9
  "preview": "vite preview",
7
10
  "build": "tsc -p tsconfig-build.json",
8
11
  "prepublishOnly": "npm version patch && npm run build",
9
- "postbuild": "copyfiles -u 2 src/components/**/*.css dist/components && copyfiles -u 2 src/icons/**/*.css dist/icons && copyfiles -u 2 src/assets/**/*.gif dist/assets"
12
+ "tsc": "tsc"
13
+ },
14
+ "main": "lib/main.js",
15
+ "type": "module",
16
+ "types": "lib/main.d.ts",
17
+ "directories": {
18
+ "lib": "lib"
10
19
  },
11
- "main": "dist/index.js",
12
- "module": "dist/index.js",
13
- "types": "dist/index.d.ts",
14
- "files": [
15
- "dist"
16
- ],
17
20
  "dependencies": {
18
21
  "@babel/core": "^7.20.12",
19
22
  "@dnd-kit/core": "^6.0.8",
@@ -1,10 +0,0 @@
1
- .filtersContainer {
2
- padding: 8px 16px;
3
- font-size: 12px;
4
- }
5
- .clearAll {
6
- color: var(--windows-blue);
7
- text-decoration: none;
8
- cursor: pointer;
9
- font-size: 1.2rem;
10
- }
@@ -1,143 +0,0 @@
1
- .fsCheckbox {
2
- display: flex;
3
- position: relative;
4
- padding: 0 5px 0 0;
5
- margin-top: 5px;
6
- margin-bottom: 5px;
7
- cursor: pointer;
8
- -webkit-user-select: none;
9
- -moz-user-select: none;
10
- -ms-user-select: none;
11
- user-select: none;
12
- font-family: Arial, serif;
13
- animation: growDown 300ms ease forwards;
14
- align-items: center;
15
- }
16
-
17
- .fsCheckbox input {
18
- position: fixed;
19
- opacity: 0;
20
- cursor: pointer;
21
- height: 0;
22
- width: 0;
23
- }
24
-
25
- .checkmark {
26
- min-height: 16px;
27
- min-width: 16px;
28
- background-color: #eee;
29
- margin-right: 10px;
30
- }
31
-
32
- .fsCheckbox:hover input ~ .checkmark {
33
- background-color: #d00202cf;
34
- }
35
-
36
- .fsCheckbox input:checked ~ .checkmark {
37
- background-color: white;
38
- }
39
-
40
- .fsCheckbox input:checked ~ .checkmark:after {
41
- display: block;
42
- }
43
-
44
- .fsCheckboxx .checkmark:after {
45
- left: 5px;
46
- width: 4px;
47
- height: 9px;
48
- border: solid white;
49
- border-width: 0 2px 2px 0;
50
- -webkit-transform: rotate(45deg);
51
- -ms-transform: rotate(45deg);
52
- transform: rotate(45deg);
53
- }
54
- .fsSelectedCheckboxTrue{}
55
- .fsSelectedCheckboxFalse{}
56
-
57
- @keyframes growDown {
58
- 0% {
59
- transform: scaleY(0)
60
- }
61
- 80% {
62
- transform: scaleY(1.1)
63
- }
64
- 100% {
65
- transform: scaleY(1)
66
- }
67
- }
68
-
69
- .checkbox {
70
- display: flex;
71
- position: relative;
72
- padding: 0 5px 0 0;
73
- margin-top: 5px;
74
- margin-bottom: 5px;
75
- cursor: pointer;
76
- -webkit-user-select: none;
77
- -moz-user-select: none;
78
- -ms-user-select: none;
79
- user-select: none;
80
- font-family: Arial, serif;
81
- animation: growDown 300ms ease forwards;
82
- align-items: center;
83
- }
84
-
85
- .checkbox .checkboxLabel {
86
- align-self: start;
87
- text-transform: capitalize;
88
- display: flex;
89
- line-height: 20px;
90
- align-items: center;
91
- margin-top: 2px;
92
- width: -webkit-fill-available;
93
- justify-content: space-between;
94
- text-overflow: ellipsis;
95
- overflow: hidden;
96
- }
97
-
98
- .checkbox input {
99
- position: fixed;
100
- opacity: 0;
101
- cursor: pointer;
102
- height: 0;
103
- width: 0;
104
- }
105
-
106
- .checkmark {
107
- min-height: 16px;
108
- min-width: 16px;
109
- background-color: #eee;
110
- margin-right: 10px;
111
- }
112
-
113
- .checkbox:hover input ~ .checkmark {
114
- background-color: #ccc;
115
- }
116
-
117
- .checkbox input:checked ~ .checkmark {
118
- background-color: #000000;
119
- }
120
-
121
- .checkmark:after {
122
- content: "";
123
- position: absolute;
124
- display: none;
125
- }
126
-
127
- .checkbox input:checked ~ .checkmark:after {
128
- display: block;
129
- }
130
-
131
- .checkbox .checkmark:after {
132
- left: 5px;
133
- width: 4px;
134
- height: 9px;
135
- border: solid white;
136
- border-width: 0 2px 2px 0;
137
- -webkit-transform: rotate(45deg);
138
- -ms-transform: rotate(45deg);
139
- transform: rotate(45deg);
140
- }
141
- :global(.modal-mobile-filters .fs-serp-filter-count, .modal-mobile-filters .fsSerpCheckmark) {
142
- display: none;
143
- }
@@ -1,5 +0,0 @@
1
- .fs-switch-left-margin{
2
- margin-left: 10px;
3
- }
4
- .fs-serp-filter-text {}
5
- .filters-option-text {}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Droppable.js","sourceRoot":"","sources":["../../../src/components/DragAndDrop/Droppable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AAQnE,MAAM,SAAS,GAAG,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAiB,EAAE,EAAE;IACjD,MAAM,EAAC,UAAU,EAAC,GAAG,YAAY,CAAC;QAC9B,EAAE,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,OAAO,CACH,4BAAK,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,gBAC7E,QAAQ,IACP,CACT,CAAC;AACN,CAAC,CAAA;AAED,eAAe,SAAS,CAAA","sourcesContent":["import {useDroppable} from \"@dnd-kit/core/dist/hooks/useDroppable\";\r\nimport { ReactNode } from \"react\";\r\n\r\ninterface DroppableProps {\r\n id: string;\r\n children: ReactNode;\r\n}\r\n\r\nconst Droppable = ({id, children}: DroppableProps) => {\r\n const {setNodeRef} = useDroppable({\r\n id: id,\r\n });\r\n\r\n return (\r\n <div ref={setNodeRef} style={{width: '100%', height: '100%', position: 'relative'}}>\r\n {children}\r\n </div>\r\n );\r\n}\r\n\r\nexport default Droppable"]}
@@ -1,21 +0,0 @@
1
- .over:after {
2
- background-color: #4c9ffe;
3
- content: '';
4
- position: absolute;
5
- top: 0;
6
- bottom: 0;
7
- width: 3px;
8
- }
9
-
10
- .after:after {
11
- right: -12px;
12
- }
13
-
14
- .before:after {
15
- left: -12px;
16
- }
17
-
18
- .disabledChildren {
19
- pointer-events: none;
20
- opacity: 1;
21
- }
@@ -1,55 +0,0 @@
1
- .fsFlexFacetTitle {
2
- display: flex;
3
- }
4
- .fsFlexFacetSpan {
5
- margin-left: 0.7rem;
6
- }
7
- .fsFacetTitle {
8
- -webkit-font-smoothing: antialiased;
9
- -moz-osx-font-smoothing: grayscale;
10
- letter-spacing: .2px;
11
- background-color: #fff0;
12
- border: none;
13
- width: 100%;
14
- text-align: left;
15
- padding: 8px 0;
16
- position: relative;
17
- border-radius: 8px;
18
- transition: background-color .2s ease-out;
19
- cursor: pointer;
20
- color: #000;
21
- font-size: 14px;
22
- font-weight: 600;
23
- display: flex;
24
- gap: 10px;
25
- align-items: center;
26
- }
27
-
28
- .fsFacetContainer {
29
- display: flex;
30
- flex-direction: column;
31
- }
32
- .fsFacetOptions {
33
- display: flex;
34
- flex-direction: column;
35
- padding: 0;
36
- max-height: 230px;
37
- overflow: auto;
38
- }
39
- .fsFacetOptions::-webkit-scrollbar {
40
- width: 10px;
41
- height: 10px;
42
- }
43
-
44
- .fsFacetOptions::-webkit-scrollbar-track {
45
- border-radius: 4px;
46
- border: 1px solid #cacaca;
47
- background-color: white;
48
- }
49
-
50
- .fsFacetOptions::-webkit-scrollbar-thumb {
51
- border-radius: 4px;
52
- background-color: #e1e1e1;
53
- border: 1px solid #cacaca;
54
- transition: background-color ease-in-out 100ms;
55
- }
@@ -1,9 +0,0 @@
1
- .from {
2
- float: left;
3
- width: calc(50% - 20px);
4
- padding: 0 10px;
5
- }
6
-
7
- .from > div > input {
8
- max-width: 100%;
9
- }
@@ -1,9 +0,0 @@
1
- .to {
2
- float: left;
3
- width: calc(50% - 20px);
4
- padding: 0 10px;
5
- }
6
-
7
- .to > div > input {
8
- max-width: 100%;
9
- }
@@ -1,34 +0,0 @@
1
- .fsFacetTitle {
2
- -webkit-font-smoothing: antialiased;
3
- -moz-osx-font-smoothing: grayscale;
4
- letter-spacing: .2px;
5
- background-color: #fff0;
6
- border: none;
7
- width: 100%;
8
- text-align: left;
9
- padding: 8px 0;
10
- position: relative;
11
- border-radius: 8px;
12
- transition: background-color .2s ease-out;
13
- cursor: pointer;
14
- color: #000;
15
- font-size: 14px;
16
- font-weight: 600;
17
- display: flex;
18
- gap: 10px;
19
- align-items: center;
20
- }
21
-
22
- .fsFacetContainer {
23
- display: flex;
24
- flex-direction: column;
25
- }
26
- .fsFacetOptions {
27
- width: 100%;
28
- margin: 0 -5px;
29
- }
30
- .fsFacetOptions:after {
31
- content: "";
32
- display: table;
33
- clear: both;
34
- }
@@ -1,10 +0,0 @@
1
- .filtersContainer {
2
- padding: 8px 16px;
3
- font-size: 12px;
4
- }
5
- .clearAll {
6
- color: var(--windows-blue);
7
- text-decoration: none;
8
- cursor: pointer;
9
- font-size: 1.2rem;
10
- }
@@ -1,3 +0,0 @@
1
- .inputContainer {
2
-
3
- }
@@ -1,41 +0,0 @@
1
- .fsOptions {
2
- padding: 0 0 8px 8px;
3
- }
4
- .showMore {
5
- color: #737373;
6
- }
7
-
8
- .showMore:hover {
9
- cursor: pointer;
10
- }
11
-
12
- .arrow {
13
- border: solid #636363;
14
- border-width: 0 1.5px 1.5px 0;
15
- display: inline-block;
16
- padding: 3px;
17
- }
18
-
19
- .down {
20
- transform: rotate(45deg);
21
- -webkit-transform: rotate(45deg);
22
- margin-bottom: 2px;
23
- }
24
- .fsFacetContainer {
25
- display: flex;
26
- flex-direction: row;
27
- padding: 0pc 2px;
28
- width: calc(100% - 4px);
29
- }
30
- .fsFacetOptions {
31
- width: calc(50% - 12px);
32
- padding: 0px 6px;
33
- }
34
- .fsFacetOptions:after {
35
- content: "";
36
- display: table;
37
- clear: both;
38
- }
39
- .fsFacetOptions>.react-datepicker-wrapper {
40
- width: calc(100% - 6px)!important;
41
- }
@@ -1,145 +0,0 @@
1
- .fsCheckbox {
2
- display: flex;
3
- position: relative;
4
- padding: 0 5px 0 0;
5
- margin-top: 5px;
6
- margin-bottom: 5px;
7
- cursor: pointer;
8
- -webkit-user-select: none;
9
- -moz-user-select: none;
10
- -ms-user-select: none;
11
- user-select: none;
12
- font-family: Arial, serif;
13
- animation: growDown 300ms ease forwards;
14
- align-items: center;
15
- }
16
-
17
- .fsCheckbox input {
18
- position: fixed;
19
- opacity: 0;
20
- cursor: pointer;
21
- height: 0;
22
- width: 0;
23
- }
24
-
25
- .checkmark {
26
- min-height: 16px;
27
- min-width: 16px;
28
- background-color: #eee;
29
- margin-right: 10px;
30
- }
31
-
32
- .fsCheckbox:hover input ~ .checkmark {
33
- background-color: #d00202cf;
34
- }
35
-
36
- .fsCheckbox input:checked ~ .checkmark {
37
- background-color: white;
38
- }
39
-
40
- .fsCheckbox input:checked ~ .checkmark:after {
41
- display: block;
42
- }
43
-
44
- .fsCheckboxx .checkmark:after {
45
- left: 5px;
46
- width: 4px;
47
- height: 9px;
48
- border: solid white;
49
- border-width: 0 2px 2px 0;
50
- -webkit-transform: rotate(45deg);
51
- -ms-transform: rotate(45deg);
52
- transform: rotate(45deg);
53
- }
54
- .fsSelectedCheckboxTrue{}
55
- .fsSelectedCheckboxFalse{}
56
-
57
- @keyframes growDown {
58
- 0% {
59
- transform: scaleY(0)
60
- }
61
- 80% {
62
- transform: scaleY(1.1)
63
- }
64
- 100% {
65
- transform: scaleY(1)
66
- }
67
- }
68
-
69
- .checkbox {
70
- display: flex;
71
- position: relative;
72
- padding: 0 5px 0 0;
73
- margin-top: 5px;
74
- margin-bottom: 5px;
75
- cursor: pointer;
76
- -webkit-user-select: none;
77
- -moz-user-select: none;
78
- -ms-user-select: none;
79
- user-select: none;
80
- font-family: Arial, serif;
81
- animation: growDown 300ms ease forwards;
82
- align-items: center;
83
- }
84
-
85
- .checkbox .checkboxLabel {
86
- align-self: start;
87
- text-transform: capitalize;
88
- display: flex;
89
- line-height: 20px;
90
- align-items: center;
91
- margin-top: 2px;
92
- width: -webkit-fill-available;
93
- justify-content: space-between;
94
- text-overflow: ellipsis;
95
- overflow: hidden;
96
- }
97
-
98
- .checkbox input {
99
- position: fixed;
100
- opacity: 0;
101
- cursor: pointer;
102
- height: 0;
103
- width: 0;
104
- }
105
-
106
- .checkmark {
107
- min-height: 16px;
108
- min-width: 16px;
109
- background-color: #eee;
110
- margin-right: 10px;
111
- border-radius: 18px;
112
- }
113
-
114
- .checkbox:hover input ~ .checkmark {
115
- background-color: #ccc;
116
- }
117
-
118
- .checkbox input:checked ~ .checkmark {
119
- background-color: #000000;
120
- }
121
-
122
- .checkmark:after {
123
- content: "";
124
- position: absolute;
125
- display: none;
126
- }
127
-
128
- .checkbox input:checked ~ .checkmark:after {
129
- display: block;
130
- }
131
-
132
- .checkbox .checkmark:after {
133
- left: 5px;
134
- width: 3px;
135
- height: 8px;
136
- top: 5px;
137
- border: solid white;
138
- border-width: 0 2px 2px 0;
139
- -webkit-transform: rotate(45deg);
140
- -ms-transform: rotate(45deg);
141
- transform: rotate(45deg);
142
- }
143
- :global(.modal-mobile-filters .fs-serp-filter-count, .modal-mobile-filters .fsSerpCheckmark) {
144
- display: none;
145
- }
@@ -1,23 +0,0 @@
1
- .fsOptions {
2
- padding: 0 0 8px 8px;
3
- }
4
- .showMore {
5
- color: #737373;
6
- }
7
-
8
- .showMore:hover {
9
- cursor: pointer;
10
- }
11
-
12
- .arrow {
13
- border: solid #636363;
14
- border-width: 0 1.5px 1.5px 0;
15
- display: inline-block;
16
- padding: 3px;
17
- }
18
-
19
- .down {
20
- transform: rotate(45deg);
21
- -webkit-transform: rotate(45deg);
22
- margin-bottom: 2px;
23
- }
@@ -1,3 +0,0 @@
1
- .fullWidthInput{
2
- width: 100%;
3
- }
@@ -1,23 +0,0 @@
1
- .fsOptions {
2
- padding: 0 5px 8px 8px;
3
- }
4
- .showMore {
5
- color: #737373;
6
- }
7
-
8
- .showMore:hover {
9
- cursor: pointer;
10
- }
11
-
12
- .arrow {
13
- border: solid #636363;
14
- border-width: 0 1.5px 1.5px 0;
15
- display: inline-block;
16
- padding: 3px;
17
- }
18
-
19
- .down {
20
- transform: rotate(45deg);
21
- -webkit-transform: rotate(45deg);
22
- margin-bottom: 2px;
23
- }
@@ -1,16 +0,0 @@
1
- .select {
2
- width: 250px !important;
3
- font-size: 18px;
4
- box-sizing: border-box !important;
5
- }
6
- .rcSlider{
7
- width: calc(100% - 10px)!important;
8
- min-height: 30px!important;
9
- padding: 5px 4px !important;
10
- }
11
- .rcSlider>.rc-slider-track{
12
- background-color: #282828;
13
- }
14
- .rcSlider>.rc-slider-handle{
15
- border-color: #575757;
16
- }