@aglyn/shared-ui-snackstack 1.0.0-beta.143

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 (54) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +7 -0
  3. package/package.json +43 -0
  4. package/src/index.d.ts +17 -0
  5. package/src/index.js +18 -0
  6. package/src/index.js.map +1 -0
  7. package/src/lib/SnackbarContainer.d.ts +26 -0
  8. package/src/lib/SnackbarContainer.js +130 -0
  9. package/src/lib/SnackbarContainer.js.map +1 -0
  10. package/src/lib/SnackbarContent.d.ts +20 -0
  11. package/src/lib/SnackbarContent.js +42 -0
  12. package/src/lib/SnackbarContent.js.map +1 -0
  13. package/src/lib/SnackbarContext.d.ts +19 -0
  14. package/src/lib/SnackbarContext.js +22 -0
  15. package/src/lib/SnackbarContext.js.map +1 -0
  16. package/src/lib/SnackbarItem/Snackbar.d.ts +29 -0
  17. package/src/lib/SnackbarItem/Snackbar.js +129 -0
  18. package/src/lib/SnackbarItem/Snackbar.js.map +1 -0
  19. package/src/lib/SnackbarItem/SnackbarItem.d.ts +29 -0
  20. package/src/lib/SnackbarItem/SnackbarItem.js +246 -0
  21. package/src/lib/SnackbarItem/SnackbarItem.js.map +1 -0
  22. package/src/lib/SnackbarItem/SnackbarItem.util.d.ts +26 -0
  23. package/src/lib/SnackbarItem/SnackbarItem.util.js +29 -0
  24. package/src/lib/SnackbarItem/SnackbarItem.util.js.map +1 -0
  25. package/src/lib/SnackbarItem/index.d.ts +18 -0
  26. package/src/lib/SnackbarItem/index.js +19 -0
  27. package/src/lib/SnackbarItem/index.js.map +1 -0
  28. package/src/lib/SnackbarProvider.d.ts +80 -0
  29. package/src/lib/SnackbarProvider.js +272 -0
  30. package/src/lib/SnackbarProvider.js.map +1 -0
  31. package/src/lib/types.d.ts +270 -0
  32. package/src/lib/types.js +21 -0
  33. package/src/lib/types.js.map +1 -0
  34. package/src/lib/useSnackbar.d.ts +19 -0
  35. package/src/lib/useSnackbar.js +23 -0
  36. package/src/lib/useSnackbar.js.map +1 -0
  37. package/src/lib/utils/constants.d.ts +68 -0
  38. package/src/lib/utils/constants.js +99 -0
  39. package/src/lib/utils/constants.js.map +1 -0
  40. package/src/lib/utils/defaultIconVariants.d.ts +19 -0
  41. package/src/lib/utils/defaultIconVariants.js +60 -0
  42. package/src/lib/utils/defaultIconVariants.js.map +1 -0
  43. package/src/lib/utils/useEventCallback.d.ts +17 -0
  44. package/src/lib/utils/useEventCallback.js +26 -0
  45. package/src/lib/utils/useEventCallback.js.map +1 -0
  46. package/src/lib/utils/warning.d.ts +18 -0
  47. package/src/lib/utils/warning.js +28 -0
  48. package/src/lib/utils/warning.js.map +1 -0
  49. package/src/lib/withSnackbar.d.ts +19 -0
  50. package/src/lib/withSnackbar.js +37 -0
  51. package/src/lib/withSnackbar.js.map +1 -0
  52. package/src/snackstack.d.ts +21 -0
  53. package/src/snackstack.js +22 -0
  54. package/src/snackstack.js.map +1 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { useContext } from "react";
17
+ import SnackbarContext from "./SnackbarContext.js";
18
+ export function useSnackbar() {
19
+ return useContext(SnackbarContext);
20
+ }
21
+ export default useSnackbar;
22
+
23
+ //# sourceMappingURL=useSnackbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/shared/ui/snackstack/src/lib/useSnackbar.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {useContext} from 'react'\nimport SnackbarContext from './SnackbarContext'\nimport type {ProviderContext} from './types'\n\n\nexport function useSnackbar(): ProviderContext {\n return useContext(SnackbarContext)\n}\n\nexport default useSnackbar\n"],"names":["useContext","SnackbarContext","useSnackbar"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAAQA,UAAU,QAAO,QAAO;AAChC,OAAOC,qBAAqB,uBAAmB;AAI/C,OAAO,SAASC;IACd,OAAOF,WAAWC;AACpB;AAEA,eAAeC,YAAW"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Slide, type SnackbarClassKey } from '@mui/material';
18
+ import { type SnackbarItemProps } from '../SnackbarItem';
19
+ import { type Snack } from '../SnackbarProvider';
20
+ import { type CloseReason, type ContainerClassKey, type SnackbarOrigin, type SnackbarProviderProps, type VariantClassKey, type VariantType } from '../types';
21
+ export declare const allClasses: {
22
+ mui: Record<SnackbarClassKey, object>;
23
+ container: Record<ContainerClassKey, object>;
24
+ };
25
+ export declare const MESSAGES: {
26
+ NO_PERSIST_ALL: string;
27
+ };
28
+ export declare const SNACKBAR_INDENTS: {
29
+ view: {
30
+ default: number;
31
+ dense: number;
32
+ };
33
+ snackbar: {
34
+ default: number;
35
+ dense: number;
36
+ };
37
+ };
38
+ export declare const DEFAULTS: {
39
+ maxSnack: number;
40
+ dense: boolean;
41
+ hideIconVariant: boolean;
42
+ variant: VariantType;
43
+ autoHideDuration: number;
44
+ anchorOrigin: SnackbarOrigin;
45
+ TransitionComponent: typeof Slide;
46
+ transitionDuration: {
47
+ enter: number;
48
+ exit: number;
49
+ };
50
+ };
51
+ export declare const capitalise: (text: string) => string;
52
+ export declare const originKeyExtractor: (anchor: Snack["anchorOrigin"]) => string;
53
+ /**
54
+ * Omit SnackbarContainer class keys that are not needed for SnackbarItem
55
+ */
56
+ export declare const omitContainerKeys: (classes: SnackbarProviderProps["classes"]) => SnackbarItemProps["classes"];
57
+ export declare const REASONS: {
58
+ [key: string]: CloseReason;
59
+ };
60
+ /** Tranforms classes name */
61
+ export declare const transformer: {
62
+ toContainerAnchorOrigin: (origin: string) => ContainerClassKey;
63
+ toAnchorOrigin: ({ vertical, horizontal }: SnackbarOrigin) => SnackbarClassKey;
64
+ toVariant: (variant: VariantType) => VariantClassKey;
65
+ };
66
+ export declare const isDefined: (value: string | null | undefined | number) => boolean;
67
+ export declare const merge: (options: any, props: any, defaults: any) => (name: keyof Snack) => any;
68
+ export declare function objectMerge(options?: {}, props?: {}, defaults?: {}): {};
@@ -0,0 +1,99 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ /**
3
+ * @license
4
+ * Copyright 2022 Aglyn LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */ import { Slide } from "@mui/material";
18
+ export const allClasses = {
19
+ mui: {
20
+ root: {},
21
+ anchorOriginTopCenter: {},
22
+ anchorOriginBottomCenter: {},
23
+ anchorOriginTopRight: {},
24
+ anchorOriginBottomRight: {},
25
+ anchorOriginTopLeft: {},
26
+ anchorOriginBottomLeft: {}
27
+ },
28
+ container: {
29
+ containerRoot: {},
30
+ containerAnchorOriginTopCenter: {},
31
+ containerAnchorOriginBottomCenter: {},
32
+ containerAnchorOriginTopRight: {},
33
+ containerAnchorOriginBottomRight: {},
34
+ containerAnchorOriginTopLeft: {},
35
+ containerAnchorOriginBottomLeft: {}
36
+ }
37
+ };
38
+ export const MESSAGES = {
39
+ NO_PERSIST_ALL: 'WARNING - notistack: Reached maxSnack while all enqueued snackbars have \'persist\' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented.'
40
+ };
41
+ export const SNACKBAR_INDENTS = {
42
+ view: {
43
+ default: 20,
44
+ dense: 4
45
+ },
46
+ snackbar: {
47
+ default: 6,
48
+ dense: 2
49
+ }
50
+ };
51
+ export const DEFAULTS = {
52
+ maxSnack: 5,
53
+ dense: false,
54
+ hideIconVariant: false,
55
+ variant: 'default',
56
+ autoHideDuration: 15000,
57
+ anchorOrigin: {
58
+ vertical: 'bottom',
59
+ horizontal: 'left'
60
+ },
61
+ TransitionComponent: Slide,
62
+ transitionDuration: {
63
+ enter: 225,
64
+ exit: 195
65
+ }
66
+ };
67
+ export const capitalise = (text)=>text.charAt(0).toUpperCase() + text.slice(1);
68
+ export const originKeyExtractor = (anchor)=>`${capitalise(anchor.vertical)}${capitalise(anchor.horizontal)}`;
69
+ /**
70
+ * Omit SnackbarContainer class keys that are not needed for SnackbarItem
71
+ */ export const omitContainerKeys = (classes)=>Object.keys(classes != null ? classes : {}).filter((key)=>!allClasses.container[key]).reduce((obj, key)=>_extends({}, obj, {
72
+ [key]: classes[key]
73
+ }), {});
74
+ export const REASONS = {
75
+ TIMEOUT: 'timeout',
76
+ CLICKAWAY: 'clickaway',
77
+ MAXSNACK: 'maxsnack',
78
+ INSTRUCTED: 'instructed'
79
+ };
80
+ /** Tranforms classes name */ export const transformer = {
81
+ toContainerAnchorOrigin: (origin)=>`containerAnchorOrigin${origin}`,
82
+ toAnchorOrigin: ({ vertical, horizontal })=>`anchorOrigin${capitalise(vertical)}${capitalise(horizontal)}`,
83
+ toVariant: (variant)=>`variant${capitalise(variant)}`
84
+ };
85
+ export const isDefined = (value)=>!!value || value === 0;
86
+ const numberOrNull = (numberish)=>typeof numberish === 'number' || numberish === null;
87
+ export const merge = (options, props, defaults)=>(name)=>{
88
+ if (name === 'autoHideDuration') {
89
+ if (numberOrNull(options.autoHideDuration)) return options.autoHideDuration;
90
+ if (numberOrNull(props.autoHideDuration)) return props.autoHideDuration;
91
+ return DEFAULTS.autoHideDuration;
92
+ }
93
+ return options[name] || props[name] || defaults[name];
94
+ };
95
+ export function objectMerge(options = {}, props = {}, defaults = {}) {
96
+ return _extends({}, defaults, props, options);
97
+ }
98
+
99
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/snackstack/src/lib/utils/constants.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Slide, type SnackbarClassKey} from '@mui/material'\nimport {type SnackbarItemProps} from '../SnackbarItem'\nimport {type Snack} from '../SnackbarProvider'\nimport {\n type CloseReason,\n type ContainerClassKey,\n type SnackbarOrigin,\n type SnackbarProviderProps,\n type VariantClassKey,\n type VariantType,\n} from '../types'\n\n\nexport const allClasses: {\n mui: Record<SnackbarClassKey, object>;\n container: Record<ContainerClassKey, object>;\n} = {\n mui: {\n root: {},\n anchorOriginTopCenter: {},\n anchorOriginBottomCenter: {},\n anchorOriginTopRight: {},\n anchorOriginBottomRight: {},\n anchorOriginTopLeft: {},\n anchorOriginBottomLeft: {},\n },\n container: {\n containerRoot: {},\n containerAnchorOriginTopCenter: {},\n containerAnchorOriginBottomCenter: {},\n containerAnchorOriginTopRight: {},\n containerAnchorOriginBottomRight: {},\n containerAnchorOriginTopLeft: {},\n containerAnchorOriginBottomLeft: {},\n },\n}\n\nexport const MESSAGES = {\n NO_PERSIST_ALL: 'WARNING - notistack: Reached maxSnack while all enqueued snackbars have \\'persist\\' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented.',\n}\n\nexport const SNACKBAR_INDENTS = {\n view: {default: 20, dense: 4},\n snackbar: {default: 6, dense: 2},\n}\n\nexport const DEFAULTS = {\n maxSnack: 5,\n dense: false,\n hideIconVariant: false,\n variant: 'default' as VariantType,\n autoHideDuration: 15000,\n anchorOrigin: {vertical: 'bottom', horizontal: 'left'} as SnackbarOrigin,\n TransitionComponent: Slide,\n transitionDuration: {\n enter: 225,\n exit: 195,\n },\n}\n\nexport const capitalise = (text: string): string => text.charAt(0).toUpperCase() + text.slice(1)\n\nexport const originKeyExtractor = (anchor: Snack['anchorOrigin']): string => (\n `${capitalise(anchor.vertical)}${capitalise(anchor.horizontal)}`\n)\n\n/**\n * Omit SnackbarContainer class keys that are not needed for SnackbarItem\n */\nexport const omitContainerKeys = (classes: SnackbarProviderProps['classes']): SnackbarItemProps['classes'] => (\n (Object.keys(classes ?? {}).filter(key => !allClasses.container[key]).reduce((\n obj: SnackbarItemProps['classes'],\n key,\n ) => ({...obj, [key]: (classes as Record<string, unknown>)[key]}), {} as SnackbarItemProps['classes']))\n)\n\nexport const REASONS: {[key: string]: CloseReason} = {\n TIMEOUT: 'timeout',\n CLICKAWAY: 'clickaway',\n MAXSNACK: 'maxsnack',\n INSTRUCTED: 'instructed',\n}\n\n/** Tranforms classes name */\nexport const transformer = {\n toContainerAnchorOrigin: (origin: string) => `containerAnchorOrigin${origin}` as ContainerClassKey,\n toAnchorOrigin: ({vertical, horizontal}: SnackbarOrigin) => (\n `anchorOrigin${capitalise(vertical)}${capitalise(horizontal)}` as SnackbarClassKey\n ),\n toVariant: (variant: VariantType) => `variant${capitalise(variant)}` as VariantClassKey,\n}\n\nexport const isDefined = (value: string | null | undefined | number): boolean => (!!value || value === 0)\n\nconst numberOrNull = (numberish?: number | null) => (\n typeof numberish === 'number' || numberish === null\n)\n\nexport const merge = (options, props, defaults) => (name: keyof Snack): any => {\n if (name === 'autoHideDuration') {\n if (numberOrNull(options.autoHideDuration)) return options.autoHideDuration\n if (numberOrNull(props.autoHideDuration)) return props.autoHideDuration\n return DEFAULTS.autoHideDuration\n }\n\n return options[name] || props[name] || defaults[name]\n}\n\nexport function objectMerge(options = {}, props = {}, defaults = {}) {\n return {\n ...defaults,\n ...props,\n ...options,\n }\n}\n"],"names":["Slide","allClasses","mui","root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","container","containerRoot","containerAnchorOriginTopCenter","containerAnchorOriginBottomCenter","containerAnchorOriginTopRight","containerAnchorOriginBottomRight","containerAnchorOriginTopLeft","containerAnchorOriginBottomLeft","MESSAGES","NO_PERSIST_ALL","SNACKBAR_INDENTS","view","default","dense","snackbar","DEFAULTS","maxSnack","hideIconVariant","variant","autoHideDuration","anchorOrigin","vertical","horizontal","TransitionComponent","transitionDuration","enter","exit","capitalise","text","charAt","toUpperCase","slice","originKeyExtractor","anchor","omitContainerKeys","classes","Object","keys","filter","key","reduce","obj","REASONS","TIMEOUT","CLICKAWAY","MAXSNACK","INSTRUCTED","transformer","toContainerAnchorOrigin","origin","toAnchorOrigin","toVariant","isDefined","value","numberOrNull","numberish","merge","options","props","defaults","name","objectMerge"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAAQA,KAAK,QAA8B,gBAAe;AAa1D,OAAO,MAAMC,aAGT;IACFC,KAAK;QACHC,MAAM,CAAC;QACPC,uBAAuB,CAAC;QACxBC,0BAA0B,CAAC;QAC3BC,sBAAsB,CAAC;QACvBC,yBAAyB,CAAC;QAC1BC,qBAAqB,CAAC;QACtBC,wBAAwB,CAAC;IAC3B;IACAC,WAAW;QACTC,eAAe,CAAC;QAChBC,gCAAgC,CAAC;QACjCC,mCAAmC,CAAC;QACpCC,+BAA+B,CAAC;QAChCC,kCAAkC,CAAC;QACnCC,8BAA8B,CAAC;QAC/BC,iCAAiC,CAAC;IACpC;AACF,EAAC;AAED,OAAO,MAAMC,WAAW;IACtBC,gBAAgB;AAClB,EAAC;AAED,OAAO,MAAMC,mBAAmB;IAC9BC,MAAM;QAACC,SAAS;QAAIC,OAAO;IAAC;IAC5BC,UAAU;QAACF,SAAS;QAAGC,OAAO;IAAC;AACjC,EAAC;AAED,OAAO,MAAME,WAAW;IACtBC,UAAU;IACVH,OAAO;IACPI,iBAAiB;IACjBC,SAAS;IACTC,kBAAkB;IAClBC,cAAc;QAACC,UAAU;QAAUC,YAAY;IAAM;IACrDC,qBAAqBjC;IACrBkC,oBAAoB;QAClBC,OAAO;QACPC,MAAM;IACR;AACF,EAAC;AAED,OAAO,MAAMC,aAAa,CAACC,OAAyBA,KAAKC,MAAM,CAAC,GAAGC,WAAW,KAAKF,KAAKG,KAAK,CAAC,GAAE;AAEhG,OAAO,MAAMC,qBAAqB,CAACC,SACjC,GAAGN,WAAWM,OAAOZ,QAAQ,IAAIM,WAAWM,OAAOX,UAAU,GAAG,CACjE;AAED;;CAEC,GACD,OAAO,MAAMY,oBAAoB,CAACC,UAC/BC,OAAOC,IAAI,CAACF,kBAAAA,UAAW,CAAC,GAAGG,MAAM,CAACC,CAAAA,MAAO,CAAChD,WAAWS,SAAS,CAACuC,IAAI,EAAEC,MAAM,CAAC,CAC3EC,KACAF,MACI,aAAIE;YAAK,CAACF,IAAI,EAAE,AAACJ,OAAmC,CAACI,IAAI;YAAI,CAAC,GACrE;AAED,OAAO,MAAMG,UAAwC;IACnDC,SAAS;IACTC,WAAW;IACXC,UAAU;IACVC,YAAY;AACd,EAAC;AAED,2BAA2B,GAC3B,OAAO,MAAMC,cAAc;IACzBC,yBAAyB,CAACC,SAAmB,CAAC,qBAAqB,EAAEA,QAAQ;IAC7EC,gBAAgB,CAAC,EAAC7B,QAAQ,EAAEC,UAAU,EAAiB,GACrD,CAAC,YAAY,EAAEK,WAAWN,YAAYM,WAAWL,aAAa;IAEhE6B,WAAW,CAACjC,UAAyB,CAAC,OAAO,EAAES,WAAWT,UAAU;AACtE,EAAC;AAED,OAAO,MAAMkC,YAAY,CAACC,QAAwD,CAAC,CAACA,SAASA,UAAU,EAAE;AAEzG,MAAMC,eAAe,CAACC,YACpB,OAAOA,cAAc,YAAYA,cAAc;AAGjD,OAAO,MAAMC,QAAQ,CAACC,SAASC,OAAOC,WAAa,CAACC;QAClD,IAAIA,SAAS,oBAAoB;YAC/B,IAAIN,aAAaG,QAAQtC,gBAAgB,GAAG,OAAOsC,QAAQtC,gBAAgB;YAC3E,IAAImC,aAAaI,MAAMvC,gBAAgB,GAAG,OAAOuC,MAAMvC,gBAAgB;YACvE,OAAOJ,SAASI,gBAAgB;QAClC;QAEA,OAAOsC,OAAO,CAACG,KAAK,IAAIF,KAAK,CAACE,KAAK,IAAID,QAAQ,CAACC,KAAK;IACvD,EAAC;AAED,OAAO,SAASC,YAAYJ,UAAU,CAAC,CAAC,EAAEC,QAAQ,CAAC,CAAC,EAAEC,WAAW,CAAC,CAAC;IACjE,OAAO,aACFA,UACAD,OACAD;AAEP"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import type { IconVariant } from '../types';
18
+ declare const defaultIconVariants: IconVariant;
19
+ export default defaultIconVariants;
@@ -0,0 +1,60 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ /**
4
+ * @license
5
+ * Copyright 2022 Aglyn LLC
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */ import { SvgIcon } from "@mui/material";
19
+ const CheckIcon = (props)=>/*#__PURE__*/ _jsx(SvgIcon, _extends({}, props, {
20
+ children: /*#__PURE__*/ _jsx("path", {
21
+ d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"
22
+ })
23
+ }));
24
+ const WarningIcon = (props)=>/*#__PURE__*/ _jsx(SvgIcon, _extends({}, props, {
25
+ children: /*#__PURE__*/ _jsx("path", {
26
+ d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
27
+ })
28
+ }));
29
+ const ErrorIcon = (props)=>/*#__PURE__*/ _jsx(SvgIcon, _extends({}, props, {
30
+ children: /*#__PURE__*/ _jsx("path", {
31
+ d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
32
+ })
33
+ }));
34
+ const InfoIcon = (props)=>/*#__PURE__*/ _jsx(SvgIcon, _extends({}, props, {
35
+ children: /*#__PURE__*/ _jsx("path", {
36
+ d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"
37
+ })
38
+ }));
39
+ const iconStyles = {
40
+ fontSize: 20,
41
+ marginInlineEnd: 8
42
+ };
43
+ const defaultIconVariants = {
44
+ default: undefined,
45
+ success: /*#__PURE__*/ _jsx(CheckIcon, {
46
+ style: iconStyles
47
+ }),
48
+ warning: /*#__PURE__*/ _jsx(WarningIcon, {
49
+ style: iconStyles
50
+ }),
51
+ error: /*#__PURE__*/ _jsx(ErrorIcon, {
52
+ style: iconStyles
53
+ }),
54
+ info: /*#__PURE__*/ _jsx(InfoIcon, {
55
+ style: iconStyles
56
+ })
57
+ };
58
+ export default defaultIconVariants;
59
+
60
+ //# sourceMappingURL=defaultIconVariants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/snackstack/src/lib/utils/defaultIconVariants.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {SvgIcon, type SvgIconProps} from '@mui/material'\nimport type {IconVariant} from '../types'\n\n\ntype Icon = (props: SvgIconProps) => JSX.Element;\n\nconst CheckIcon: Icon = props => (\n <SvgIcon {...props}>\n <path\n d=\"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z\"\n />\n </SvgIcon>\n)\n\nconst WarningIcon: Icon = props => (\n <SvgIcon {...props}>\n <path d=\"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z\" />\n </SvgIcon>\n)\n\nconst ErrorIcon: Icon = props => (\n <SvgIcon {...props}>\n <path\n d=\"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z\"\n />\n </SvgIcon>\n)\n\nconst InfoIcon: Icon = props => (\n <SvgIcon {...props}>\n <path\n d=\"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z\"\n />\n </SvgIcon>\n)\n\nconst iconStyles = {\n fontSize: 20,\n marginInlineEnd: 8,\n}\n\nconst defaultIconVariants: IconVariant = {\n default: undefined,\n success: <CheckIcon style={iconStyles} />,\n warning: <WarningIcon style={iconStyles} />,\n error: <ErrorIcon style={iconStyles} />,\n info: <InfoIcon style={iconStyles} />,\n}\n\nexport default defaultIconVariants\n"],"names":["SvgIcon","CheckIcon","props","path","d","WarningIcon","ErrorIcon","InfoIcon","iconStyles","fontSize","marginInlineEnd","defaultIconVariants","default","undefined","success","style","warning","error","info"],"mappings":";;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAAQA,OAAO,QAA0B,gBAAe;AAMxD,MAAMC,YAAkBC,CAAAA,sBACtB,KAACF,sBAAYE;kBACX,cAAA,KAACC;YACCC,GAAE;;;AAMR,MAAMC,cAAoBH,CAAAA,sBACxB,KAACF,sBAAYE;kBACX,cAAA,KAACC;YAAKC,GAAE;;;AAIZ,MAAME,YAAkBJ,CAAAA,sBACtB,KAACF,sBAAYE;kBACX,cAAA,KAACC;YACCC,GAAE;;;AAOR,MAAMG,WAAiBL,CAAAA,sBACrB,KAACF,sBAAYE;kBACX,cAAA,KAACC;YACCC,GAAE;;;AAMR,MAAMI,aAAa;IACjBC,UAAU;IACVC,iBAAiB;AACnB;AAEA,MAAMC,sBAAmC;IACvCC,SAASC;IACTC,uBAAS,KAACb;QAAUc,OAAOP;;IAC3BQ,uBAAS,KAACX;QAAYU,OAAOP;;IAC7BS,qBAAO,KAACX;QAAUS,OAAOP;;IACzBU,oBAAM,KAACX;QAASQ,OAAOP;;AACzB;AAEA,eAAeG,oBAAmB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export default function useEventCallback(fn: (...args: any[]) => any): (...args: any[]) => any;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { useCallback, useEffect, useLayoutEffect, useRef } from "react";
17
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
18
+ export default function useEventCallback(fn) {
19
+ const ref = useRef(fn);
20
+ useIsomorphicLayoutEffect(()=>{
21
+ ref.current = fn;
22
+ });
23
+ return useCallback((...args)=>(0, ref.current)(...args), []);
24
+ }
25
+
26
+ //# sourceMappingURL=useEventCallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/snackstack/src/lib/utils/useEventCallback.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {useCallback, useEffect, useLayoutEffect, useRef} from 'react'\n\n\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect\n\nexport default function useEventCallback(fn: (...args: any[]) => any) {\n const ref = useRef(fn)\n useIsomorphicLayoutEffect(() => {\n ref.current = fn\n })\n return useCallback(\n (...args: any[]) => (0, ref.current)(...args),\n [],\n )\n}\n"],"names":["useCallback","useEffect","useLayoutEffect","useRef","useIsomorphicLayoutEffect","window","useEventCallback","fn","ref","current","args"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAAQA,WAAW,EAAEC,SAAS,EAAEC,eAAe,EAAEC,MAAM,QAAO,QAAO;AAGrE,MAAMC,4BAA4B,OAAOC,WAAW,cAAcH,kBAAkBD;AAEpF,eAAe,SAASK,iBAAiBC,EAA2B;IAClE,MAAMC,MAAML,OAAOI;IACnBH,0BAA0B;QACxBI,IAAIC,OAAO,GAAGF;IAChB;IACA,OAAOP,YACL,CAAC,GAAGU,OAAgB,AAAC,CAAA,GAAGF,IAAIC,OAAO,AAAD,KAAMC,OACxC,EAAE;AAEN"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare const warning: (message: string) => void;
18
+ export default warning;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ /* eslint-disable */ const __DEV__ = process.env.NODE_ENV !== 'production';
17
+ export const warning = (message)=>{
18
+ if (!__DEV__) return;
19
+ if (typeof console !== 'undefined') {
20
+ console.error(message);
21
+ }
22
+ try {
23
+ throw new Error(message);
24
+ } catch (x) {}
25
+ };
26
+ export default warning;
27
+
28
+ //# sourceMappingURL=warning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/shared/ui/snackstack/src/lib/utils/warning.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable */\nconst __DEV__ = process.env.NODE_ENV !== 'production'\n\nexport const warning = (message: string) => {\n if (!__DEV__) return\n\n if (typeof console !== 'undefined') {\n console.error(message)\n }\n try {\n throw new Error(message)\n }\n catch (x) { }\n\n}\n\nexport default warning\n"],"names":["__DEV__","process","env","NODE_ENV","warning","message","console","error","Error","x"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,kBAAkB,GAClB,MAAMA,UAAUC,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAEzC,OAAO,MAAMC,UAAU,CAACC;IACtB,IAAI,CAACL,SAAS;IAEd,IAAI,OAAOM,YAAY,aAAa;QAClCA,QAAQC,KAAK,CAACF;IAChB;IACA,IAAI;QACF,MAAM,IAAIG,MAAMH;IAClB,EACA,OAAOI,GAAG,CAAE;AAEd,EAAC;AAED,eAAeL,QAAO"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { type ComponentType } from 'react';
18
+ export declare const withSnackbar: (Component: ComponentType<any>) => import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
19
+ export default withSnackbar;
@@ -0,0 +1,37 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ /**
4
+ * @license
5
+ * Copyright 2022 Aglyn LLC
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */ import { getDisplayName } from "@aglyn/shared-util-tools";
19
+ import { hoistNonReactStatics } from "@aglyn/shared-util-vendor";
20
+ import { forwardRef } from "react";
21
+ import SnackbarContext from "./SnackbarContext.js";
22
+ export const withSnackbar = (Component)=>{
23
+ const displayName = getDisplayName(Component);
24
+ const WrappedComponent = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ _jsx(SnackbarContext.Consumer, {
25
+ children: (context)=>/*#__PURE__*/ _jsx(Component, _extends({}, props, {
26
+ ref: ref,
27
+ enqueueSnackbar: context.enqueueSnackbar,
28
+ closeSnackbar: context.closeSnackbar
29
+ }))
30
+ }));
31
+ WrappedComponent.displayName = `WithSnackbar(${displayName})`;
32
+ hoistNonReactStatics(WrappedComponent, Component);
33
+ return WrappedComponent;
34
+ };
35
+ export default withSnackbar;
36
+
37
+ //# sourceMappingURL=withSnackbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/shared/ui/snackstack/src/lib/withSnackbar.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {getDisplayName} from '@aglyn/shared-util-tools'\nimport {hoistNonReactStatics} from '@aglyn/shared-util-vendor'\nimport { type ComponentType, forwardRef } from 'react'\nimport SnackbarContext from './SnackbarContext'\n\n\nexport const withSnackbar = (Component: ComponentType<any>) => {\n const displayName = getDisplayName(Component)\n const WrappedComponent = forwardRef((props, ref) => (\n <SnackbarContext.Consumer>\n {context => (\n <Component\n {...props}\n ref={ref}\n enqueueSnackbar={context.enqueueSnackbar}\n closeSnackbar={context.closeSnackbar}\n />\n )}\n </SnackbarContext.Consumer>\n ))\n\n WrappedComponent.displayName = `WithSnackbar(${displayName})`\n hoistNonReactStatics(WrappedComponent, Component)\n\n return WrappedComponent\n}\n\nexport default withSnackbar\n"],"names":["getDisplayName","hoistNonReactStatics","forwardRef","SnackbarContext","withSnackbar","Component","displayName","WrappedComponent","props","ref","Consumer","context","enqueueSnackbar","closeSnackbar"],"mappings":";;AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAAQA,cAAc,QAAO,2BAA0B;AACvD,SAAQC,oBAAoB,QAAO,4BAA2B;AAC9D,SAA6BC,UAAU,QAAQ,QAAO;AACtD,OAAOC,qBAAqB,uBAAmB;AAG/C,OAAO,MAAMC,eAAe,CAACC;IAC3B,MAAMC,cAAcN,eAAeK;IACnC,MAAME,iCAAmBL,WAAW,CAACM,OAAOC,oBAC1C,KAACN,gBAAgBO,QAAQ;sBACtBC,CAAAA,wBACC,KAACN,wBACKG;oBACJC,KAAKA;oBACLG,iBAAiBD,QAAQC,eAAe;oBACxCC,eAAeF,QAAQE,aAAa;;;IAM5CN,iBAAiBD,WAAW,GAAG,CAAC,aAAa,EAAEA,YAAY,CAAC,CAAC;IAC7DL,qBAAqBM,kBAAkBF;IAEvC,OAAOE;AACT,EAAC;AAED,eAAeH,aAAY"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export * from './lib/types';
18
+ export * from './lib/SnackbarProvider';
19
+ export * from './lib/SnackbarContent';
20
+ export * from './lib/withSnackbar';
21
+ export * from './lib/useSnackbar';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ export * from "./lib/types.js";
17
+ export * from "./lib/SnackbarProvider.js";
18
+ export * from "./lib/SnackbarContent.js";
19
+ export * from "./lib/withSnackbar.js";
20
+ export * from "./lib/useSnackbar.js";
21
+
22
+ //# sourceMappingURL=snackstack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../libs/shared/ui/snackstack/src/snackstack.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/types'\nexport * from './lib/SnackbarProvider'\nexport * from './lib/SnackbarContent'\nexport * from './lib/withSnackbar'\nexport * from './lib/useSnackbar'\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,cAAc,iBAAa;AAC3B,cAAc,4BAAwB;AACtC,cAAc,2BAAuB;AACrC,cAAc,wBAAoB;AAClC,cAAc,uBAAmB"}