@veeqo/transfigure 0.0.38 → 1.1.0

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 (201) hide show
  1. package/dist/BusinessLogic/types.d.ts +2 -3
  2. package/dist/api/deleteCustomView/deleteCustomView.d.ts +1 -1
  3. package/dist/api/patchCurrentUser/patchCurrentUser.d.ts +1 -1
  4. package/dist/api/patchCustomView/patchCustomView.d.ts +1 -1
  5. package/dist/api/types.d.ts +1 -1
  6. package/dist/axiosWrappers/axiosWrappers.d.ts +13 -13
  7. package/dist/axiosWrappers/utils/filteringUtils/filteringUtils.d.ts +1 -1
  8. package/dist/components/Filters/Fields/NumberRangeFilter/MuiSlider.d.ts +4 -4
  9. package/dist/components/RefreshButton/RefreshButton.d.ts +1 -1
  10. package/dist/components/RefreshButton/styled.d.ts +3 -3
  11. package/dist/components/SearchBar/SearchBar.d.ts +2 -2
  12. package/dist/components/TableManagement/TableManagement.d.ts +1 -1
  13. package/dist/components/TableManagement/components/DroppableArea.d.ts +1 -1
  14. package/dist/components/TableManagement/components/styled.d.ts +312 -8
  15. package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/mockUseCollisionDetectionStrategy.d.ts +2 -2
  16. package/dist/components/TableManagement/hooks/useDragHandlers/mockUseDragHandlers.d.ts +8 -8
  17. package/dist/components/TableManagement/types.d.ts +1 -2
  18. package/dist/components/TableManagement/utils/filterColumnsBySearch/filterColumnsBySearch.d.ts +1 -1
  19. package/dist/components/Views/OptionsDropdown/styled.d.ts +2 -2
  20. package/dist/components/Views/PillNotifications/variants/styled.d.ts +7 -7
  21. package/dist/components/Views/SortableViews/styled.d.ts +1 -1
  22. package/dist/constants/constants.d.ts +1 -1
  23. package/dist/constants/dateConstants.d.ts +2 -2
  24. package/dist/context/ModalContext/mocks/mockUseModal.d.ts +4 -4
  25. package/dist/fetchers/withCSRF.d.ts +1 -1
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/useCustomViews/useCustomViews.d.ts +1 -1
  28. package/dist/hooks/usePersistColumns/mockUsePersistColumns.d.ts +2 -2
  29. package/dist/hooks/usePersistUnsavedChanges/mockUsePersistUnsavedChanges.d.ts +4 -4
  30. package/dist/hooks/useUrlChange/index.d.ts +1 -0
  31. package/dist/hooks/useUrlChange/useUrlChange.d.ts +7 -0
  32. package/dist/hooks/useViewCountsHook/useViewCountsHook.d.ts +2 -2
  33. package/dist/hooks/useViews/useViews.d.ts +1 -1
  34. package/dist/index.cjs +1 -1
  35. package/dist/index.js +52 -50
  36. package/dist/index100.cjs +1 -80
  37. package/dist/index100.js +28 -100
  38. package/dist/index101.cjs +80 -1
  39. package/dist/index101.js +101 -24
  40. package/dist/index102.cjs +1 -1
  41. package/dist/index102.js +24 -2
  42. package/dist/index103.cjs +1 -13
  43. package/dist/index103.js +19 -17
  44. package/dist/index104.cjs +1 -1
  45. package/dist/index104.js +7 -18
  46. package/dist/index105.cjs +1 -1
  47. package/dist/index105.js +63 -7
  48. package/dist/index106.cjs +1 -1
  49. package/dist/index106.js +26 -60
  50. package/dist/index107.cjs +1 -1
  51. package/dist/index107.js +2 -30
  52. package/dist/index108.cjs +13 -1
  53. package/dist/index108.js +15 -24
  54. package/dist/index109.cjs +1 -1
  55. package/dist/index109.js +22 -32
  56. package/dist/index11.cjs +1 -1
  57. package/dist/index11.js +10 -10
  58. package/dist/index110.cjs +1 -1
  59. package/dist/index110.js +31 -37
  60. package/dist/index111.cjs +7 -1
  61. package/dist/index111.js +10 -63
  62. package/dist/index112.cjs +1 -1
  63. package/dist/index112.js +58 -42
  64. package/dist/index113.cjs +1 -7
  65. package/dist/index113.js +47 -10
  66. package/dist/index15.cjs +1 -1
  67. package/dist/index15.js +1 -1
  68. package/dist/index19.cjs +1 -1
  69. package/dist/index19.js +1 -1
  70. package/dist/index20.cjs +1 -1
  71. package/dist/index20.js +2 -2
  72. package/dist/index21.cjs +1 -1
  73. package/dist/index21.js +2 -2
  74. package/dist/index24.cjs +1 -1
  75. package/dist/index24.js +2 -2
  76. package/dist/index25.cjs +1 -1
  77. package/dist/index25.js +2 -2
  78. package/dist/index27.cjs +1 -1
  79. package/dist/index27.js +1 -1
  80. package/dist/index29.cjs +1 -1
  81. package/dist/index29.js +2 -2
  82. package/dist/index32.cjs +1 -1
  83. package/dist/index32.js +1 -1
  84. package/dist/index34.cjs +1 -1
  85. package/dist/index34.js +4 -4
  86. package/dist/index36.cjs +1 -1
  87. package/dist/index36.js +1 -1
  88. package/dist/index37.cjs +1 -1
  89. package/dist/index37.js +1 -1
  90. package/dist/index38.cjs +1 -1
  91. package/dist/index38.js +1 -1
  92. package/dist/index39.cjs +1 -1
  93. package/dist/index39.js +2 -2
  94. package/dist/index40.cjs +1 -1
  95. package/dist/index40.js +1 -1
  96. package/dist/index42.cjs +1 -1
  97. package/dist/index42.js +1 -1
  98. package/dist/index44.cjs +1 -1
  99. package/dist/index44.js +2 -2
  100. package/dist/index45.cjs +1 -1
  101. package/dist/index45.js +3 -3
  102. package/dist/index54.cjs +1 -1
  103. package/dist/index54.js +3 -3
  104. package/dist/index56.cjs +1 -1
  105. package/dist/index56.js +2 -2
  106. package/dist/index57.cjs +1 -1
  107. package/dist/index57.js +2 -2
  108. package/dist/index58.cjs +1 -1
  109. package/dist/index58.js +2 -2
  110. package/dist/index6.cjs +1 -1
  111. package/dist/index6.js +4 -4
  112. package/dist/index60.cjs +1 -1
  113. package/dist/index60.js +3 -3
  114. package/dist/index61.cjs +1 -1
  115. package/dist/index61.js +2 -2
  116. package/dist/index62.cjs +1 -1
  117. package/dist/index62.js +22 -18
  118. package/dist/index63.cjs +1 -1
  119. package/dist/index63.js +16 -26
  120. package/dist/index64.cjs +1 -1
  121. package/dist/index64.js +26 -10
  122. package/dist/index65.cjs +1 -1
  123. package/dist/index65.js +13 -326
  124. package/dist/index66.cjs +1 -1
  125. package/dist/index66.js +321 -55
  126. package/dist/index67.cjs +1 -1
  127. package/dist/index67.js +50 -47
  128. package/dist/index68.cjs +1 -1
  129. package/dist/index68.js +51 -32
  130. package/dist/index69.cjs +1 -1
  131. package/dist/index69.js +30 -24
  132. package/dist/index70.cjs +1 -1
  133. package/dist/index70.js +26 -32
  134. package/dist/index71.cjs +1 -1
  135. package/dist/index71.js +37 -12
  136. package/dist/index72.cjs +1 -1
  137. package/dist/index72.js +13 -9
  138. package/dist/index73.cjs +1 -1
  139. package/dist/index73.js +9 -17
  140. package/dist/index74.cjs +1 -1
  141. package/dist/index74.js +14 -16
  142. package/dist/index75.cjs +1 -1
  143. package/dist/index75.js +18 -49
  144. package/dist/index76.cjs +1 -1
  145. package/dist/index76.js +50 -21
  146. package/dist/index77.cjs +1 -1
  147. package/dist/index77.js +21 -7
  148. package/dist/index78.cjs +1 -1
  149. package/dist/index78.js +7 -2
  150. package/dist/index79.cjs +1 -1
  151. package/dist/index79.js +2 -9
  152. package/dist/index80.cjs +1 -3
  153. package/dist/index80.js +8 -13
  154. package/dist/index81.cjs +3 -1
  155. package/dist/index81.js +13 -8
  156. package/dist/index82.cjs +1 -11
  157. package/dist/index82.js +9 -16
  158. package/dist/index83.cjs +11 -1
  159. package/dist/index83.js +16 -41
  160. package/dist/index84.cjs +1 -1
  161. package/dist/index84.js +40 -8
  162. package/dist/index85.cjs +1 -1
  163. package/dist/index85.js +9 -118
  164. package/dist/index86.cjs +1 -1
  165. package/dist/index86.js +117 -18
  166. package/dist/index87.cjs +1 -1
  167. package/dist/index87.js +19 -33
  168. package/dist/index88.cjs +1 -1
  169. package/dist/index88.js +13 -29
  170. package/dist/index89.cjs +100 -15
  171. package/dist/index89.js +115 -19
  172. package/dist/index90.cjs +1 -1
  173. package/dist/index90.js +66 -19
  174. package/dist/index91.cjs +1 -12
  175. package/dist/index91.js +29 -16
  176. package/dist/index92.cjs +1 -1
  177. package/dist/index92.js +2 -15
  178. package/dist/index93.cjs +1 -1
  179. package/dist/index93.js +41 -13
  180. package/dist/index94.cjs +1 -104
  181. package/dist/index94.js +10 -119
  182. package/dist/index95.cjs +1 -1
  183. package/dist/index95.js +19 -66
  184. package/dist/index96.cjs +19 -1
  185. package/dist/index96.js +24 -29
  186. package/dist/index97.cjs +1 -1
  187. package/dist/index97.js +15 -2
  188. package/dist/index98.cjs +12 -1
  189. package/dist/index98.js +16 -41
  190. package/dist/index99.cjs +1 -1
  191. package/dist/index99.js +31 -9
  192. package/dist/mobx/Filters/Filters.d.ts +1 -1
  193. package/dist/mobx/Notifications/Notifications.d.ts +1 -1
  194. package/dist/mobx/RangeFilter/RangeFilter.d.ts +3 -3
  195. package/dist/mobx/Table/Table.d.ts +1 -1
  196. package/dist/mockServiceWorker.js +104 -63
  197. package/dist/mocks/internal/mockSWRReturn/mockSWRReturn.d.ts +1 -1
  198. package/dist/setupTests.d.ts +2 -2
  199. package/dist/storybookHelpers/constants.d.ts +1 -1
  200. package/dist/utils/isValidDateRange/isValidDateRange.d.ts +1 -1
  201. package/package.json +8 -4
@@ -1,2 +1,2 @@
1
- import { ColumnDefinition } from '../../../../../node_modules/@veeqo/ui/dist/components/DataGrid/types';
1
+ import { ColumnDefinition } from '@veeqo/ui';
2
2
  export declare const filterColumnsBySearch: (columns: ColumnDefinition<any>[], searchQuery: string) => ColumnDefinition<any>[];
@@ -1,6 +1,6 @@
1
1
  export declare const Item: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
2
2
  children?: React.ReactNode;
3
- variant?: import('../../../../node_modules/@veeqo/ui/dist/components/Button/types').ButtonVariant | undefined;
3
+ variant?: import('node_modules/@veeqo/ui/dist/components/Button/types').ButtonVariant | undefined;
4
4
  size?: "base" | "sm" | undefined;
5
5
  iconSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
6
6
  dropdown?: boolean | undefined;
@@ -10,7 +10,7 @@ export declare const Item: import('styled-components').StyledComponent<import('r
10
10
  role: "option";
11
11
  variant: "flat";
12
12
  }, "variant" | "role">;
13
- export declare const MenuItems: import('styled-components').StyledComponent<"div", any, import('../../../../node_modules/@veeqo/ui/dist/components/Card/styled').SurfaceProps & {
13
+ export declare const MenuItems: import('styled-components').StyledComponent<"div", any, import('node_modules/@veeqo/ui/dist/components/Card/styled').SurfaceProps & {
14
14
  role: "listbox";
15
15
  elevation: number;
16
16
  }, "role" | "elevation">;
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
- export declare const UIGlyph: ({ name, size, color, className, ariaLabel, style, onClick, }: import('../../../../../node_modules/@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element;
2
+ export declare const UIGlyph: ({ name, size, color, className, ariaLabel, style, onClick, }: import('@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element;
3
3
  export declare const Notification: import('styled-components').StyledComponent<import('framer-motion').CustomDomComponent<{
4
4
  slot?: string | undefined;
5
5
  style?: import('react').CSSProperties | undefined;
@@ -293,7 +293,7 @@ export declare const Notification: import('styled-components').StyledComponent<i
293
293
  }, "animate" | "initial" | "exit" | "variants">;
294
294
  export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
295
295
  export declare const Pill: import('styled-components').StyledComponent<({ type, text, iconSlot, onClose, className, header, children, backgroundColor, ...props }: {
296
- type?: import('../../../../../node_modules/@veeqo/ui/dist/components/Banner/types').BannerTypes;
296
+ type?: import('node_modules/@veeqo/ui/dist/components/Banner/types').BannerTypes;
297
297
  backgroundColor?: string;
298
298
  text?: string;
299
299
  iconSlot?: import('react').ReactElement;
@@ -304,19 +304,19 @@ export declare const Pill: import('styled-components').StyledComponent<({ type,
304
304
  }) => React.JSX.Element, any, {}, never>;
305
305
  export declare const Button: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
306
306
  children?: React.ReactNode;
307
- variant?: import('../../../../../node_modules/@veeqo/ui/dist/components/Button/types').ButtonVariant | undefined;
307
+ variant?: import('node_modules/@veeqo/ui/dist/components/Button/types').ButtonVariant | undefined;
308
308
  size?: "base" | "sm" | undefined;
309
309
  iconSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
310
310
  dropdown?: boolean | undefined;
311
311
  loading?: boolean | undefined;
312
312
  contentStyles?: React.CSSProperties | undefined;
313
313
  } & import('react').RefAttributes<HTMLButtonElement>>, any, {}, never>;
314
- export declare const Hint: import('styled-components').StyledComponent<"span", any, {} & import('../../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
315
- export declare const Text: import('styled-components').StyledComponent<"span", any, ({} & import('../../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps) & {
314
+ export declare const Hint: import('styled-components').StyledComponent<"span", any, {} & import('node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
315
+ export declare const Text: import('styled-components').StyledComponent<"span", any, ({} & import('node_modules/@veeqo/ui/dist/components/Text/types').TextProps) & {
316
316
  margin?: string;
317
317
  }, never>;
318
- export declare const Bold: import('styled-components').StyledComponent<"span", any, {} & import('../../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
319
- export declare const Glyph: import('styled-components').StyledComponent<({ name, size, color, className, ariaLabel, style, onClick, }: import('../../../../../node_modules/@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element, any, {
318
+ export declare const Bold: import('styled-components').StyledComponent<"span", any, {} & import('node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
319
+ export declare const Glyph: import('styled-components').StyledComponent<({ name, size, color, className, ariaLabel, style, onClick, }: import('@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element, any, {
320
320
  margin?: string;
321
321
  }, never>;
322
322
  export declare const Wrap: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
- import { VeeqoUI } from '../../../../node_modules/@veeqo/components';
1
+ import { VeeqoUI } from '@veeqo/components';
2
2
  /**
3
3
  * @description Styled SortableViews component for ViewsContainer
4
4
  * This is used to add truncation to the SortableViews label by altering the title in the node-renderer.
@@ -1,4 +1,4 @@
1
- import { SWRConfiguration } from '../../node_modules/swr/dist/index';
1
+ import { SWRConfiguration } from 'swr';
2
2
  export declare enum FilterChoiceValue {
3
3
  TEXT = "text",
4
4
  NUMBER = "number",
@@ -1,4 +1,4 @@
1
- import { DateRanges } from '../../node_modules/@veeqo/ui';
1
+ import { DateRanges } from '@veeqo/ui';
2
2
  export declare const DateValue: {
3
3
  readonly CUSTOM: "CUSTOM";
4
4
  readonly TODAY: DateRanges.TODAY;
@@ -14,4 +14,4 @@ export declare const DateValue: {
14
14
  };
15
15
  export type DateValueType = typeof DateValue;
16
16
  export type FilterType = DateRanges | 'CUSTOM';
17
- export declare const DateOptionMap: Map<string, import('../../node_modules/@veeqo/ui/dist/components/Select/Select').SelectOption>;
17
+ export declare const DateOptionMap: Map<string, import('@veeqo/ui').SelectOption>;
@@ -1,8 +1,8 @@
1
1
  export declare const mockUseModal: ({ isModalOpen }: {
2
2
  isModalOpen?: boolean | undefined;
3
3
  }) => {
4
- isModalOpen: import('../../../../node_modules/vitest').Mock<(...args: any[]) => any>;
5
- closeModal: import('../../../../node_modules/vitest').Mock<(...args: any[]) => any>;
6
- openModal: import('../../../../node_modules/vitest').Mock<(...args: any[]) => any>;
7
- toggleModal: import('../../../../node_modules/vitest').Mock<(...args: any[]) => any>;
4
+ isModalOpen: import('vitest').Mock<(...args: any[]) => any>;
5
+ closeModal: import('vitest').Mock<(...args: any[]) => any>;
6
+ openModal: import('vitest').Mock<(...args: any[]) => any>;
7
+ toggleModal: import('vitest').Mock<(...args: any[]) => any>;
8
8
  };
@@ -1,2 +1,2 @@
1
- import { AxiosRequestConfig } from '../../node_modules/axios';
1
+ import { AxiosRequestConfig } from 'axios';
2
2
  export declare const withCSRF: (axiosConfig?: AxiosRequestConfig) => AxiosRequestConfig;
@@ -6,6 +6,7 @@ export * from './usePersistUnsavedChanges';
6
6
  export * from './useStores';
7
7
  export * from './useViews';
8
8
  export * from './useViewUrlChange';
9
+ export * from './useUrlChange';
9
10
  export * from './useCustomViews';
10
11
  export * from './useColumns';
11
12
  export * from './useUrlParams';
@@ -11,6 +11,6 @@ export declare const useCustomViews: ({ type }: UseCustomViewsProps) => {
11
11
  isLoading: boolean;
12
12
  isValidating: boolean;
13
13
  error: any;
14
- mutate: import('../../../node_modules/swr').KeyedMutator<any>;
14
+ mutate: import('swr').KeyedMutator<any>;
15
15
  };
16
16
  export {};
@@ -1,7 +1,7 @@
1
1
  export declare const mockUsePersistColumns: ({ saveColumns, isSavingColumns }?: {
2
- saveColumns?: import('../../../node_modules/vitest').Mock<(...args: any[]) => any> | undefined;
2
+ saveColumns?: import('vitest').Mock<(...args: any[]) => any> | undefined;
3
3
  isSavingColumns?: boolean | undefined;
4
4
  }) => {
5
- saveColumns: import('../../../node_modules/vitest').Mock<(...args: any[]) => any>;
5
+ saveColumns: import('vitest').Mock<(...args: any[]) => any>;
6
6
  isSavingColumns: boolean;
7
7
  };
@@ -1,9 +1,9 @@
1
1
  export declare const mockUsePersistUnsavedChanges: ({ getActiveViewInAPIFormat, saveChanges, isSubmitting }?: {
2
- getActiveViewInAPIFormat?: import('../../../node_modules/vitest').Mock<(...args: any[]) => any> | undefined;
3
- saveChanges?: import('../../../node_modules/vitest').Mock<(...args: any[]) => any> | undefined;
2
+ getActiveViewInAPIFormat?: import('vitest').Mock<(...args: any[]) => any> | undefined;
3
+ saveChanges?: import('vitest').Mock<(...args: any[]) => any> | undefined;
4
4
  isSubmitting?: boolean | undefined;
5
5
  }) => {
6
- getActiveViewInAPIFormat: import('../../../node_modules/vitest').Mock<(...args: any[]) => any>;
7
- saveChanges: import('../../../node_modules/vitest').Mock<(...args: any[]) => any>;
6
+ getActiveViewInAPIFormat: import('vitest').Mock<(...args: any[]) => any>;
7
+ saveChanges: import('vitest').Mock<(...args: any[]) => any>;
8
8
  isSubmitting: boolean;
9
9
  };
@@ -0,0 +1 @@
1
+ export { useUrlChange } from './useUrlChange';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This hook should be used when filters are being on a page that does not incorporate Views functionality.
3
+ * It should be mounted at the top level of the page, if the <ViewsList /> component isn't rendered.
4
+ *
5
+ * An extended version of the hook can be found in useViewUrlChange() which is mounted inside <ViewsList />
6
+ */
7
+ export declare const useUrlChange: () => void;
@@ -9,9 +9,9 @@ export type PaginationType = {
9
9
  export type ResponseType = {
10
10
  meta: PaginationType;
11
11
  };
12
- export declare const useViewCounts: (viewId: string) => {
12
+ export declare const useViewCounts: () => {
13
13
  viewCounts: string | undefined;
14
14
  error: any;
15
15
  isLoadingViewCounts: boolean;
16
- mutate: import('../../../node_modules/swr').KeyedMutator<ResponseType>;
16
+ mutate: import('swr').KeyedMutator<ResponseType>;
17
17
  };
@@ -1,4 +1,4 @@
1
- import { KeyedMutator } from '../../../node_modules/swr';
1
+ import { KeyedMutator } from 'swr';
2
2
  import { TransformedView, View } from 'src/types';
3
3
  export type UseViewsResponse = {
4
4
  viewsArray: TransformedView[];
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),v=require("./index18.cjs"),b=require("./index19.cjs"),h=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),T=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),L=require("./index31.cjs"),U=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),e=require("./index46.cjs"),r=require("./index47.cjs"),K=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),i=require("./index52.cjs"),t=require("./index53.cjs"),Y=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),ve=require("./index76.cjs"),be=require("./index77.cjs");exports.deleteCustomView=s.deleteCustomView;exports.patchCurrentUser=o.patchCurrentUser;exports.patchCustomView=n.patchCustomView;exports.createCustomView=a.createCustomView;exports.axios=c.axios;exports.useBusinessLogic=u.useBusinessLogic;exports.BusinessLogicManager=l.BusinessLogicManager;exports.setMockedBusinessLogic=F.setMockedBusinessLogic;exports.ErrorBoundary=d.ErrorBoundary;exports.SearchBar=q.SearchBar;exports.TableControls=g.TableControls;exports.ToastsManager=w.ToastsManager;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterTag=p.ActiveFilterTag;exports.ActiveFilterArrayTag=v.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=b.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=h.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=m.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=M.AsyncRadioFilter;exports.CheckboxFilter=y.CheckboxFilter;exports.DateRangeFilter=S.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=O.RadioFilter;exports.FiltersDropdown=L.FiltersDropdown;exports.FiltersList=U.FiltersList;exports.FilterGroup=B.FilterGroup;exports.ViewTab=f.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=I.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=E.SortableViews;exports.UnsavedChangesPill=_.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=W.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.RefreshButton=J.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=K.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=z.useModal;exports.withCSRF=Q.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Y.useDropdownManager;exports.useDuplicateActiveView=Z.useDuplicateActiveView;exports.useFilterArrayLabel=ee.useFilterArrayLabel;exports.useFilterLabel=re.useFilterLabel;exports.usePersistUnsavedChanges=ie.usePersistUnsavedChanges;exports.useStores=te.useStores;exports.useViews=se.useViews;exports.useViewUrlChange=oe.useViewUrlChange;exports.useCustomViews=ne.useCustomViews;exports.useColumns=ae.useColumns;exports.useUrlParams=ce.useUrlParams;exports.Filters=ue.Filters;exports.NumberRangeFilterClass=le.NumberRangeFilter;exports.RangeFilter=Fe.RangeFilter;exports.Views=de.Views;exports.Notifications=qe.Notifications;exports.Table=ge.Table;exports.MobXProvider=we.MobXProvider;exports.getAsyncOptions=Ae.getAsyncOptions;exports.getFetcherFunction=Ve.getFetcherFunction;exports.isValidDateRange=Ce.isValidDateRange;exports.viewsAdapter=pe.viewsAdapter;exports.createAllView=ve.createAllView;exports.mockUseStores=be.mockUseStores;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),h=require("./index18.cjs"),v=require("./index19.cjs"),b=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),T=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),U=require("./index31.cjs"),L=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),e=require("./index46.cjs"),r=require("./index47.cjs"),K=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),i=require("./index52.cjs"),t=require("./index53.cjs"),Y=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),he=require("./index76.cjs"),ve=require("./index77.cjs"),be=require("./index78.cjs");exports.deleteCustomView=s.deleteCustomView;exports.patchCurrentUser=o.patchCurrentUser;exports.patchCustomView=n.patchCustomView;exports.createCustomView=a.createCustomView;exports.axios=c.axios;exports.useBusinessLogic=u.useBusinessLogic;exports.BusinessLogicManager=l.BusinessLogicManager;exports.setMockedBusinessLogic=F.setMockedBusinessLogic;exports.ErrorBoundary=d.ErrorBoundary;exports.SearchBar=q.SearchBar;exports.TableControls=g.TableControls;exports.ToastsManager=w.ToastsManager;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterTag=p.ActiveFilterTag;exports.ActiveFilterArrayTag=h.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=v.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=b.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=m.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=M.AsyncRadioFilter;exports.CheckboxFilter=y.CheckboxFilter;exports.DateRangeFilter=S.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=O.RadioFilter;exports.FiltersDropdown=U.FiltersDropdown;exports.FiltersList=L.FiltersList;exports.FilterGroup=B.FilterGroup;exports.ViewTab=f.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=I.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=E.SortableViews;exports.UnsavedChangesPill=_.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=W.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.RefreshButton=J.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=K.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=z.useModal;exports.withCSRF=Q.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Y.useDropdownManager;exports.useDuplicateActiveView=Z.useDuplicateActiveView;exports.useFilterArrayLabel=ee.useFilterArrayLabel;exports.useFilterLabel=re.useFilterLabel;exports.usePersistUnsavedChanges=ie.usePersistUnsavedChanges;exports.useStores=te.useStores;exports.useViews=se.useViews;exports.useViewUrlChange=oe.useViewUrlChange;exports.useUrlChange=ne.useUrlChange;exports.useCustomViews=ae.useCustomViews;exports.useColumns=ce.useColumns;exports.useUrlParams=ue.useUrlParams;exports.Filters=le.Filters;exports.NumberRangeFilterClass=Fe.NumberRangeFilter;exports.RangeFilter=de.RangeFilter;exports.Views=qe.Views;exports.Notifications=ge.Notifications;exports.Table=we.Table;exports.MobXProvider=Ae.MobXProvider;exports.getAsyncOptions=Ve.getAsyncOptions;exports.getFetcherFunction=Ce.getFetcherFunction;exports.isValidDateRange=pe.isValidDateRange;exports.viewsAdapter=he.viewsAdapter;exports.createAllView=ve.createAllView;exports.mockUseStores=be.mockUseStores;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { deleteCustomView as o } from "./index2.js";
2
2
  import { patchCurrentUser as p } from "./index3.js";
3
- import { patchCustomView as m } from "./index4.js";
3
+ import { patchCustomView as i } from "./index4.js";
4
4
  import { createCustomView as x } from "./index5.js";
5
5
  import { axios as s } from "./index6.js";
6
6
  import { useBusinessLogic as n } from "./index7.js";
@@ -8,14 +8,14 @@ import { BusinessLogicManager as F } from "./index8.js";
8
8
  import { setMockedBusinessLogic as d } from "./index9.js";
9
9
  import { ErrorBoundary as w } from "./index10.js";
10
10
  import { SearchBar as V } from "./index11.js";
11
- import { TableControls as v } from "./index12.js";
12
- import { ToastsManager as b } from "./index13.js";
11
+ import { TableControls as h } from "./index12.js";
12
+ import { ToastsManager as R } from "./index13.js";
13
13
  import { ActiveFilters as D } from "./index14.js";
14
14
  import { FilterArrayField as T } from "./index15.js";
15
15
  import { FilterField as O } from "./index16.js";
16
16
  import { ActiveFilterTag as y } from "./index17.js";
17
17
  import { ActiveFilterArrayTag as L } from "./index18.js";
18
- import { ActiveFilterDateRangeTag as U } from "./index19.js";
18
+ import { ActiveFilterDateRangeTag as B } from "./index19.js";
19
19
  import { ActiveFilterNumberRangeTag as k } from "./index20.js";
20
20
  import { ActiveAsyncRadioFilter as _ } from "./index21.js";
21
21
  import { ActiveFilterFooter as G } from "./index22.js";
@@ -27,7 +27,7 @@ import { DateRangeFilter as Z } from "./index27.js";
27
27
  import { MultipleFieldFilter as rr } from "./index28.js";
28
28
  import { NumberRangeFilter as or } from "./index29.js";
29
29
  import { RadioFilter as pr } from "./index30.js";
30
- import { FiltersDropdown as mr } from "./index31.js";
30
+ import { FiltersDropdown as ir } from "./index31.js";
31
31
  import { FiltersList as xr } from "./index32.js";
32
32
  import { FilterGroup as sr } from "./index33.js";
33
33
  import { ViewTab as nr } from "./index34.js";
@@ -35,14 +35,14 @@ import { CreateView as Fr } from "./index35.js";
35
35
  import { EditDropdown as dr } from "./index36.js";
36
36
  import { OptionsDropdown as wr } from "./index37.js";
37
37
  import { PillNotifications as Vr } from "./index38.js";
38
- import { SortableViews as vr } from "./index39.js";
39
- import { UnsavedChangesPill as br } from "./index40.js";
38
+ import { SortableViews as hr } from "./index39.js";
39
+ import { UnsavedChangesPill as Rr } from "./index40.js";
40
40
  import { ViewDropdowns as Dr } from "./index41.js";
41
41
  import { ViewList as Tr } from "./index42.js";
42
42
  import { SHARING_OPTIONS as Or } from "./index43.js";
43
43
  import { TableManagement as yr } from "./index44.js";
44
44
  import { RefreshButton as Lr } from "./index45.js";
45
- import { DateOptionMap as Ur, DateValue as Ir } from "./index46.js";
45
+ import { DateOptionMap as Br, DateValue as Ir } from "./index46.js";
46
46
  import { FilterChoiceValue as Hr, SWR_HOOK_OPTIONS as _r } from "./index47.js";
47
47
  import { ModalProvider as Gr } from "./index48.js";
48
48
  import { ModalId as Kr } from "./index49.js";
@@ -52,32 +52,33 @@ import { onlyJSON as Qr, vndAPI as Yr } from "./index52.js";
52
52
  import { fetcherV1 as $r, fetcherV2 as re } from "./index53.js";
53
53
  import { useDropdownManager as oe } from "./index54.js";
54
54
  import { useDuplicateActiveView as pe } from "./index55.js";
55
- import { useFilterArrayLabel as me } from "./index56.js";
55
+ import { useFilterArrayLabel as ie } from "./index56.js";
56
56
  import { useFilterLabel as xe } from "./index57.js";
57
57
  import { usePersistUnsavedChanges as se } from "./index58.js";
58
58
  import { useStores as ne } from "./index59.js";
59
59
  import { useViews as Fe } from "./index60.js";
60
60
  import { useViewUrlChange as de } from "./index61.js";
61
- import { useCustomViews as we } from "./index62.js";
62
- import { useColumns as Ve } from "./index63.js";
63
- import { useUrlParams as ve } from "./index64.js";
64
- import { Filters as be } from "./index65.js";
65
- import { NumberRangeFilter as De } from "./index66.js";
66
- import { RangeFilter as Te } from "./index67.js";
67
- import { Views as Oe } from "./index68.js";
68
- import { Notifications as ye } from "./index69.js";
69
- import { Table as Le } from "./index70.js";
70
- import { MobXProvider as Ue } from "./index71.js";
71
- import { getAsyncOptions as ke } from "./index72.js";
72
- import { getFetcherFunction as _e } from "./index73.js";
73
- import { isValidDateRange as Ge } from "./index74.js";
74
- import { viewsAdapter as Ke } from "./index75.js";
75
- import { createAllView as Xe } from "./index76.js";
76
- import { mockUseStores as qe } from "./index77.js";
61
+ import { useUrlChange as we } from "./index62.js";
62
+ import { useCustomViews as Ve } from "./index63.js";
63
+ import { useColumns as he } from "./index64.js";
64
+ import { useUrlParams as Re } from "./index65.js";
65
+ import { Filters as De } from "./index66.js";
66
+ import { NumberRangeFilter as Te } from "./index67.js";
67
+ import { RangeFilter as Oe } from "./index68.js";
68
+ import { Views as ye } from "./index69.js";
69
+ import { Notifications as Le } from "./index70.js";
70
+ import { Table as Be } from "./index71.js";
71
+ import { MobXProvider as ke } from "./index72.js";
72
+ import { getAsyncOptions as _e } from "./index73.js";
73
+ import { getFetcherFunction as Ge } from "./index74.js";
74
+ import { isValidDateRange as Ke } from "./index75.js";
75
+ import { viewsAdapter as Xe } from "./index76.js";
76
+ import { createAllView as qe } from "./index77.js";
77
+ import { mockUseStores as Qe } from "./index78.js";
77
78
  export {
78
79
  _ as ActiveAsyncRadioFilter,
79
80
  L as ActiveFilterArrayTag,
80
- U as ActiveFilterDateRangeTag,
81
+ B as ActiveFilterDateRangeTag,
81
82
  G as ActiveFilterFooter,
82
83
  K as ActiveFilterHeader,
83
84
  k as ActiveFilterNumberRangeTag,
@@ -88,7 +89,7 @@ export {
88
89
  F as BusinessLogicManager,
89
90
  Q as CheckboxFilter,
90
91
  Fr as CreateView,
91
- Ur as DateOptionMap,
92
+ Br as DateOptionMap,
92
93
  Z as DateRangeFilter,
93
94
  Ir as DateValue,
94
95
  dr as EditDropdown,
@@ -97,62 +98,63 @@ export {
97
98
  Hr as FilterChoiceValue,
98
99
  O as FilterField,
99
100
  sr as FilterGroup,
100
- be as Filters,
101
- mr as FiltersDropdown,
101
+ De as Filters,
102
+ ir as FiltersDropdown,
102
103
  xr as FiltersList,
103
- Ue as MobXProvider,
104
+ ke as MobXProvider,
104
105
  Kr as ModalId,
105
106
  Gr as ModalProvider,
106
107
  rr as MultipleFieldFilter,
107
- ye as Notifications,
108
+ Le as Notifications,
108
109
  or as NumberRangeFilter,
109
- De as NumberRangeFilterClass,
110
+ Te as NumberRangeFilterClass,
110
111
  wr as OptionsDropdown,
111
112
  Vr as PillNotifications,
112
113
  pr as RadioFilter,
113
- Te as RangeFilter,
114
+ Oe as RangeFilter,
114
115
  Lr as RefreshButton,
115
116
  Or as SHARING_OPTIONS,
116
117
  _r as SWR_HOOK_OPTIONS,
117
118
  V as SearchBar,
118
- vr as SortableViews,
119
- Le as Table,
120
- v as TableControls,
119
+ hr as SortableViews,
120
+ Be as Table,
121
+ h as TableControls,
121
122
  yr as TableManagement,
122
- b as ToastsManager,
123
- br as UnsavedChangesPill,
123
+ R as ToastsManager,
124
+ Rr as UnsavedChangesPill,
124
125
  Dr as ViewDropdowns,
125
126
  Tr as ViewList,
126
127
  nr as ViewTab,
127
- Oe as Views,
128
+ ye as Views,
128
129
  s as axios,
129
- Xe as createAllView,
130
+ qe as createAllView,
130
131
  x as createCustomView,
131
132
  o as deleteCustomView,
132
133
  $r as fetcherV1,
133
134
  re as fetcherV2,
134
- ke as getAsyncOptions,
135
- _e as getFetcherFunction,
136
- Ge as isValidDateRange,
137
- qe as mockUseStores,
135
+ _e as getAsyncOptions,
136
+ Ge as getFetcherFunction,
137
+ Ke as isValidDateRange,
138
+ Qe as mockUseStores,
138
139
  Qr as onlyJSON,
139
140
  p as patchCurrentUser,
140
- m as patchCustomView,
141
+ i as patchCustomView,
141
142
  d as setMockedBusinessLogic,
142
143
  n as useBusinessLogic,
143
- Ve as useColumns,
144
- we as useCustomViews,
144
+ he as useColumns,
145
+ Ve as useCustomViews,
145
146
  oe as useDropdownManager,
146
147
  pe as useDuplicateActiveView,
147
- me as useFilterArrayLabel,
148
+ ie as useFilterArrayLabel,
148
149
  xe as useFilterLabel,
149
150
  Xr as useModal,
150
151
  se as usePersistUnsavedChanges,
151
152
  ne as useStores,
152
- ve as useUrlParams,
153
+ we as useUrlChange,
154
+ Re as useUrlParams,
153
155
  de as useViewUrlChange,
154
156
  Fe as useViews,
155
- Ke as viewsAdapter,
157
+ Xe as viewsAdapter,
156
158
  Yr as vndAPI,
157
159
  qr as withCSRF
158
160
  };
package/dist/index100.cjs CHANGED
@@ -1,80 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),t=require("@veeqo/ui"),r=require("@veeqo/components"),l=require("framer-motion"),s=require("./index108.cjs"),c=e=>e&&e.__esModule?e:{default:e},o=c(a),{Glyph:i}=r.VeeqoCommon,d=o.default(l.motion(t.BaseContainer)).attrs(()=>({variants:s.notificationVariants,initial:"initial",animate:"animate",exit:"exit"}))`
2
- display: flex;
3
- position: fixed;
4
- width: 100vw;
5
- left: 0;
6
- bottom: 24px;
7
- z-index: 1001;
8
-
9
- &.notification-enter {
10
- opacity: 0;
11
- transform: translateY(-16px);
12
- }
13
-
14
- &.notification-enter-active {
15
- opacity: 1;
16
- transform: translateY(0);
17
- transition: 350ms ease;
18
- }
19
-
20
- &.notification-exit {
21
- opacity: 0;
22
- transform: translateY(16px);
23
- transition: 350ms ease;
24
- }
25
- pointer-events: none;
26
- `,f=o.default(t.BaseContainer)`
27
- display: inline-flex;
28
- flex-direction: row;
29
- align-items: center;
30
- padding: 20px 24px 24px 24px;
31
- border-radius: 4px;
32
- margin: 0 auto;
33
- background-color: #fff;
34
- box-shadow: ${t.theme.shadows.lg};
35
- pointer-events: all;
36
- `,p=o.default(t.Banner)`
37
- display: inline-flex;
38
- flex-direction: row;
39
- align-items: center;
40
- margin: 0 auto;
41
- background-color: #fff;
42
- box-shadow: ${t.theme.shadows.lg};
43
- pointer-events: all;
44
- `,x=o.default(t.Button)`
45
- margin-right: 16px;
46
- `,u=o.default(t.Text)`
47
- line-height: 20px;
48
- `,n=o.default(t.Text)`
49
- margin: ${e=>e.margin?e.margin:""};
50
- color: ${e=>e.color};
51
- `,m=o.default(t.Text)`
52
- margin-right: 8px;
53
- color: ${e=>e.color};
54
- `,g=o.default(i)``,h=o.default(t.BaseContainer)`
55
- display: flex;
56
- flex-direction: row;
57
- align-items: flex-end;
58
- flex-grow: 2;
59
- margin-left: 24px;
60
- margin-right: 24px;
61
- `;o.default.button`
62
- display: flex;
63
- flex-direction: row;
64
- width: 100%;
65
- padding: 12px 16px;
66
- cursor: pointer;
67
-
68
- & > ${n} {
69
- white-space: nowrap;
70
- user-select: none;
71
- }
72
-
73
- &:hover {
74
- background-color: ${t.theme.colors.neutral.grey.lightest};
75
- }
76
-
77
- &:hover > ${n} {
78
- color: ${t.theme.colors.secondary.blue.base};
79
- }
80
- `;exports.Bold=m;exports.Button=x;exports.Container=f;exports.Glyph=g;exports.Hint=u;exports.Notification=d;exports.Pill=p;exports.Text=n;exports.UIGlyph=i;exports.Wrap=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
package/dist/index100.js CHANGED
@@ -1,103 +1,31 @@
1
- import t from "styled-components";
2
- import { BaseContainer as n, theme as i, Text as e, Banner as a, Button as l } from "@veeqo/ui";
3
- import { VeeqoCommon as s } from "@veeqo/components";
4
- import { motion as c } from "framer-motion";
5
- import { notificationVariants as p } from "./index108.js";
6
- const { Glyph: x } = s, u = t(c(n)).attrs(() => ({
7
- variants: p,
8
- initial: "initial",
9
- animate: "animate",
10
- exit: "exit"
11
- }))`
12
- display: flex;
13
- position: fixed;
14
- width: 100vw;
15
- left: 0;
16
- bottom: 24px;
17
- z-index: 1001;
18
-
19
- &.notification-enter {
20
- opacity: 0;
21
- transform: translateY(-16px);
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Modal as n, Text as r } from "@veeqo/ui";
3
+ const s = ({ shouldShow: a, viewName: i, onCancel: t, onDelete: o }) => /* @__PURE__ */ e(
4
+ n,
5
+ {
6
+ headerTitle: `Delete '${i}' view?`,
7
+ "data-testid": "act-react-listing-custom-confirmation-popup",
8
+ variant: "sm",
9
+ shouldShow: a,
10
+ onClose: t,
11
+ rightActions: [
12
+ {
13
+ className: "act-react-listing-custom-confirmation-popup-cancel",
14
+ label: "Cancel",
15
+ onClick: t,
16
+ variant: "default"
17
+ },
18
+ {
19
+ className: "act-react-listing-custom-confirmation-popup-delete",
20
+ label: "Delete",
21
+ onClick: o,
22
+ variant: "primaryDestructive"
23
+ }
24
+ ],
25
+ showHeaderCloseButton: !0,
26
+ children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
22
27
  }
23
-
24
- &.notification-enter-active {
25
- opacity: 1;
26
- transform: translateY(0);
27
- transition: 350ms ease;
28
- }
29
-
30
- &.notification-exit {
31
- opacity: 0;
32
- transform: translateY(16px);
33
- transition: 350ms ease;
34
- }
35
- pointer-events: none;
36
- `, w = t(n)`
37
- display: inline-flex;
38
- flex-direction: row;
39
- align-items: center;
40
- padding: 20px 24px 24px 24px;
41
- border-radius: 4px;
42
- margin: 0 auto;
43
- background-color: #fff;
44
- box-shadow: ${i.shadows.lg};
45
- pointer-events: all;
46
- `, y = t(a)`
47
- display: inline-flex;
48
- flex-direction: row;
49
- align-items: center;
50
- margin: 0 auto;
51
- background-color: #fff;
52
- box-shadow: ${i.shadows.lg};
53
- pointer-events: all;
54
- `, $ = t(l)`
55
- margin-right: 16px;
56
- `, b = t(e)`
57
- line-height: 20px;
58
- `, r = t(e)`
59
- margin: ${(o) => o.margin ? o.margin : ""};
60
- color: ${(o) => o.color};
61
- `, v = t(e)`
62
- margin-right: 8px;
63
- color: ${(o) => o.color};
64
- `, B = t(x)``, k = t(n)`
65
- display: flex;
66
- flex-direction: row;
67
- align-items: flex-end;
68
- flex-grow: 2;
69
- margin-left: 24px;
70
- margin-right: 24px;
71
- `;
72
- t.button`
73
- display: flex;
74
- flex-direction: row;
75
- width: 100%;
76
- padding: 12px 16px;
77
- cursor: pointer;
78
-
79
- & > ${r} {
80
- white-space: nowrap;
81
- user-select: none;
82
- }
83
-
84
- &:hover {
85
- background-color: ${i.colors.neutral.grey.lightest};
86
- }
87
-
88
- &:hover > ${r} {
89
- color: ${i.colors.secondary.blue.base};
90
- }
91
- `;
28
+ );
92
29
  export {
93
- v as Bold,
94
- $ as Button,
95
- w as Container,
96
- B as Glyph,
97
- b as Hint,
98
- u as Notification,
99
- y as Pill,
100
- r as Text,
101
- x as UIGlyph,
102
- k as Wrap
30
+ s as Confirmation
103
31
  };