@cimpress-ui/react 1.2.0 → 1.3.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.
- package/dist/commonjs/components/file-trigger.d.ts +6 -0
- package/dist/commonjs/components/file-trigger.d.ts.map +1 -0
- package/dist/commonjs/components/file-trigger.js +18 -0
- package/dist/commonjs/components/file-trigger.js.map +1 -0
- package/dist/commonjs/components/toast/toast-queue.d.ts +39 -0
- package/dist/commonjs/components/toast/toast-queue.d.ts.map +1 -0
- package/dist/commonjs/components/toast/toast-queue.js +53 -0
- package/dist/commonjs/components/toast/toast-queue.js.map +1 -0
- package/dist/commonjs/components/toast/toast-region.d.ts +5 -3
- package/dist/commonjs/components/toast/toast-region.d.ts.map +1 -1
- package/dist/commonjs/components/toast/toast-region.js +7 -15
- package/dist/commonjs/components/toast/toast-region.js.map +1 -1
- package/dist/commonjs/components/toast/toast.js +1 -1
- package/dist/commonjs/components/toast/toast.js.map +1 -1
- package/dist/commonjs/components/toast/types.d.ts +10 -2
- package/dist/commonjs/components/toast/types.d.ts.map +1 -1
- package/dist/commonjs/components/toast/types.js.map +1 -1
- package/dist/commonjs/index.d.ts +3 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/components/file-trigger.d.ts +6 -0
- package/dist/esm/components/file-trigger.d.ts.map +1 -0
- package/dist/esm/components/file-trigger.js +15 -0
- package/dist/esm/components/file-trigger.js.map +1 -0
- package/dist/esm/components/toast/toast-queue.d.ts +39 -0
- package/dist/esm/components/toast/toast-queue.d.ts.map +1 -0
- package/dist/esm/components/toast/toast-queue.js +50 -0
- package/dist/esm/components/toast/toast-queue.js.map +1 -0
- package/dist/esm/components/toast/toast-region.d.ts +5 -3
- package/dist/esm/components/toast/toast-region.d.ts.map +1 -1
- package/dist/esm/components/toast/toast-region.js +8 -15
- package/dist/esm/components/toast/toast-region.js.map +1 -1
- package/dist/esm/components/toast/toast.js +1 -1
- package/dist/esm/components/toast/toast.js.map +1 -1
- package/dist/esm/components/toast/types.d.ts +10 -2
- package/dist/esm/components/toast/types.d.ts.map +1 -1
- package/dist/esm/components/toast/types.js.map +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FileTriggerProps as RACFileTriggerProps } from 'react-aria-components';
|
|
2
|
+
export interface FileTriggerProps extends Pick<RACFileTriggerProps, 'acceptedFileTypes' | 'allowsMultiple' | 'defaultCamera' | 'onSelect' | 'children' | 'acceptDirectory'> {
|
|
3
|
+
}
|
|
4
|
+
declare const _FileTrigger: (props: FileTriggerProps & import("react").RefAttributes<HTMLInputElement>) => import("react").JSX.Element | null;
|
|
5
|
+
export { _FileTrigger as FileTrigger };
|
|
6
|
+
//# sourceMappingURL=file-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-trigger.d.ts","sourceRoot":"","sources":["../../../src/components/file-trigger.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAiC,KAAK,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGpH,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,mBAAmB,EACnB,mBAAmB,GAAG,gBAAgB,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,CACvG;CAAG;AAWN,QAAA,MAAM,YAAY,mHAAyC,CAAC;AAE5D,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FileTrigger = void 0;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_aria_components_1 = require("react-aria-components");
|
|
7
|
+
const forward_ref_js_1 = require("../forward-ref.js");
|
|
8
|
+
/**
|
|
9
|
+
* Allows a user to access the file system with any pressable Cimpress UI component.
|
|
10
|
+
*
|
|
11
|
+
* See [file trigger API documentation](https://ui.cimpress.io/components/file-trigger/api).
|
|
12
|
+
*/
|
|
13
|
+
function FileTrigger(props, ref) {
|
|
14
|
+
return (0, jsx_runtime_1.jsx)(react_aria_components_1.FileTrigger, { ...props, ref: ref });
|
|
15
|
+
}
|
|
16
|
+
const _FileTrigger = (0, forward_ref_js_1.forwardRef)(FileTrigger, 'FileTrigger');
|
|
17
|
+
exports.FileTrigger = _FileTrigger;
|
|
18
|
+
//# sourceMappingURL=file-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-trigger.js","sourceRoot":"","sources":["../../../src/components/file-trigger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAGb,iEAAoH;AACpH,sDAA+C;AAQ/C;;;;GAIG;AACH,SAAS,WAAW,CAAC,KAAuB,EAAE,GAAmC;IAC/E,OAAO,uBAAC,mCAAc,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACjD,CAAC;AAED,MAAM,YAAY,GAAG,IAAA,2BAAU,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;AAEnC,mCAAW","sourcesContent":["'use client';\n\nimport type { ForwardedRef } from 'react';\nimport { FileTrigger as RACFileTrigger, type FileTriggerProps as RACFileTriggerProps } from 'react-aria-components';\nimport { forwardRef } from '../forward-ref.js';\n\nexport interface FileTriggerProps\n extends Pick<\n RACFileTriggerProps,\n 'acceptedFileTypes' | 'allowsMultiple' | 'defaultCamera' | 'onSelect' | 'children' | 'acceptDirectory'\n > {}\n\n/**\n * Allows a user to access the file system with any pressable Cimpress UI component.\n *\n * See [file trigger API documentation](https://ui.cimpress.io/components/file-trigger/api).\n */\nfunction FileTrigger(props: FileTriggerProps, ref: ForwardedRef<HTMLInputElement>) {\n return <RACFileTrigger {...props} ref={ref} />;\n}\n\nconst _FileTrigger = forwardRef(FileTrigger, 'FileTrigger');\n\nexport { _FileTrigger as FileTrigger };\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UNSTABLE_ToastQueue as RACToastQueue } from 'react-aria-components';
|
|
2
|
+
import type { InternalToastContent, UNSTABLE_ToastOptions } from './types.js';
|
|
3
|
+
export declare const internalToastQueue: RACToastQueue<InternalToastContent>;
|
|
4
|
+
/**
|
|
5
|
+
* Manages the queue of toasts.
|
|
6
|
+
*/
|
|
7
|
+
export interface UNSTABLE_ToastQueue {
|
|
8
|
+
/**
|
|
9
|
+
* Add an info toast to the queue.
|
|
10
|
+
* @returns The ID of the toast
|
|
11
|
+
*/
|
|
12
|
+
info(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
13
|
+
/**
|
|
14
|
+
* Add a success toast to the queue.
|
|
15
|
+
* @returns The ID of the toast
|
|
16
|
+
*/
|
|
17
|
+
success(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
18
|
+
/**
|
|
19
|
+
* Add a warning toast to the queue.
|
|
20
|
+
* @returns The ID of the toast
|
|
21
|
+
*/
|
|
22
|
+
warning(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
23
|
+
/**
|
|
24
|
+
* Add a critical toast to the queue.
|
|
25
|
+
* @returns The ID of the toast
|
|
26
|
+
*/
|
|
27
|
+
critical(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
28
|
+
/**
|
|
29
|
+
* Close a toast.
|
|
30
|
+
* @param id The ID of the toast to close
|
|
31
|
+
*/
|
|
32
|
+
close(id: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Clear the queue.
|
|
35
|
+
*/
|
|
36
|
+
clear(): void;
|
|
37
|
+
}
|
|
38
|
+
export declare const UNSTABLE_toastQueue: UNSTABLE_ToastQueue;
|
|
39
|
+
//# sourceMappingURL=toast-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-queue.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAwC,MAAM,uBAAuB,CAAC;AAEnH,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAM9E,eAAO,MAAM,kBAAkB,qCAU7B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAClE;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAClE;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IACnE;;;OAGG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNSTABLE_toastQueue = exports.internalToastQueue = void 0;
|
|
4
|
+
const react_aria_components_1 = require("react-aria-components");
|
|
5
|
+
const react_dom_1 = require("react-dom");
|
|
6
|
+
const DEFAULT_TOAST_OPTIONS = {
|
|
7
|
+
timeout: 5000,
|
|
8
|
+
};
|
|
9
|
+
exports.internalToastQueue = new react_aria_components_1.UNSTABLE_ToastQueue({
|
|
10
|
+
wrapUpdate(fn) {
|
|
11
|
+
if ('startViewTransition' in document) {
|
|
12
|
+
document.startViewTransition(() => {
|
|
13
|
+
(0, react_dom_1.flushSync)(fn);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
fn();
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
exports.UNSTABLE_toastQueue = {
|
|
22
|
+
info(message, options) {
|
|
23
|
+
return exports.internalToastQueue.add({
|
|
24
|
+
message: message,
|
|
25
|
+
tone: 'info',
|
|
26
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
27
|
+
},
|
|
28
|
+
success(message, options) {
|
|
29
|
+
return exports.internalToastQueue.add({
|
|
30
|
+
message: message,
|
|
31
|
+
tone: 'success',
|
|
32
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
33
|
+
},
|
|
34
|
+
warning(message, options) {
|
|
35
|
+
return exports.internalToastQueue.add({
|
|
36
|
+
message: message,
|
|
37
|
+
tone: 'warning',
|
|
38
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
39
|
+
},
|
|
40
|
+
critical(message, options) {
|
|
41
|
+
return exports.internalToastQueue.add({
|
|
42
|
+
message: message,
|
|
43
|
+
tone: 'critical',
|
|
44
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
45
|
+
},
|
|
46
|
+
close(id) {
|
|
47
|
+
exports.internalToastQueue.close(id);
|
|
48
|
+
},
|
|
49
|
+
clear() {
|
|
50
|
+
exports.internalToastQueue.clear();
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=toast-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-queue.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-queue.ts"],"names":[],"mappings":";;;AAAA,iEAAmH;AACnH,yCAAsC;AAGtC,MAAM,qBAAqB,GAAoB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KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK;QACH,0BAAkB,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;CACF,CAAC","sourcesContent":["import { UNSTABLE_ToastQueue as RACToastQueue, type ToastOptions as RACToastOptions } from 'react-aria-components';\nimport { flushSync } from 'react-dom';\nimport type { InternalToastContent, UNSTABLE_ToastOptions } from './types.js';\n\nconst DEFAULT_TOAST_OPTIONS: RACToastOptions = {\n timeout: 5000,\n};\n\nexport const internalToastQueue = new RACToastQueue<InternalToastContent>({\n wrapUpdate(fn) {\n if ('startViewTransition' in document) {\n document.startViewTransition(() => {\n flushSync(fn);\n });\n } else {\n fn();\n }\n },\n});\n\n/**\n * Manages the queue of toasts.\n */\nexport interface UNSTABLE_ToastQueue {\n /**\n * Add an info toast to the queue.\n * @returns The ID of the toast\n */\n info(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a success toast to the queue.\n * @returns The ID of the toast\n */\n success(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a warning toast to the queue.\n * @returns The ID of the toast\n */\n warning(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a critical toast to the queue.\n * @returns The ID of the toast\n */\n critical(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Close a toast.\n * @param id The ID of the toast to close\n */\n close(id: string): void;\n /**\n * Clear the queue.\n */\n clear(): void;\n}\n\nexport const UNSTABLE_toastQueue: UNSTABLE_ToastQueue = {\n info(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'info',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n success(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'success',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n warning(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'warning',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n critical(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'critical',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n close(id: string) {\n internalToastQueue.close(id);\n },\n clear() {\n internalToastQueue.clear();\n },\n};\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.
|
|
3
|
+
*
|
|
4
|
+
* See [toast usage guidelines](https://ui.cimpress.io/components/toast/).
|
|
5
|
+
*/
|
|
4
6
|
export declare function UNSTABLE_ToastRegion(): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=toast-region.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-region.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast-region.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,oBAAoB,4CAMnC"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UNSTABLE_toastQueue = void 0;
|
|
4
3
|
exports.UNSTABLE_ToastRegion = UNSTABLE_ToastRegion;
|
|
5
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
5
|
const react_aria_components_1 = require("react-aria-components");
|
|
7
|
-
const
|
|
6
|
+
const toast_queue_js_1 = require("./toast-queue.js");
|
|
8
7
|
const toast_js_1 = require("./toast.js");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
fn();
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
});
|
|
8
|
+
/**
|
|
9
|
+
* Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.
|
|
10
|
+
*
|
|
11
|
+
* See [toast usage guidelines](https://ui.cimpress.io/components/toast/).
|
|
12
|
+
*/
|
|
21
13
|
function UNSTABLE_ToastRegion() {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(react_aria_components_1.UNSTABLE_ToastRegion, { queue:
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(react_aria_components_1.UNSTABLE_ToastRegion, { queue: toast_queue_js_1.internalToastQueue, className: "cim-toast-region", "data-cim-style-root": true, children: ({ toast }) => (0, jsx_runtime_1.jsx)(toast_js_1.UNSTABLE_Toast, { toast: toast }) }));
|
|
23
15
|
}
|
|
24
16
|
//# sourceMappingURL=toast-region.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-region.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast-region.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":";;AASA,oDAMC;;AAfD,iEAA+E;AAC/E,qDAAsD;AACtD,yCAA4C;AAE5C;;;;GAIG;AACH,SAAgB,oBAAoB;IAClC,OAAO,CACL,uBAAC,4CAAc,IAAC,KAAK,EAAE,mCAAkB,EAAE,SAAS,EAAC,kBAAkB,yCACpE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,uBAAC,yBAAc,IAAC,KAAK,EAAE,KAAK,GAAI,GACjC,CAClB,CAAC;AACJ,CAAC","sourcesContent":["import { UNSTABLE_ToastRegion as RACToastRegion } from 'react-aria-components';\nimport { internalToastQueue } from './toast-queue.js';\nimport { UNSTABLE_Toast } from './toast.js';\n\n/**\n * Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.\n *\n * See [toast usage guidelines](https://ui.cimpress.io/components/toast/).\n */\nexport function UNSTABLE_ToastRegion() {\n return (\n <RACToastRegion queue={internalToastQueue} className=\"cim-toast-region\" data-cim-style-root>\n {({ toast }) => <UNSTABLE_Toast toast={toast} />}\n </RACToastRegion>\n );\n}\n"]}
|
|
@@ -19,6 +19,6 @@ const iconMap = {
|
|
|
19
19
|
function UNSTABLE_Toast({ toast }) {
|
|
20
20
|
const Icon = iconMap[toast.content.tone];
|
|
21
21
|
const messages = (0, index_js_1.useLocalizedMessages)('common');
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(react_aria_components_1.UNSTABLE_Toast, { toast: toast, className: "cim-toast", style: { viewTransitionName: toast.key }, "data-cim-style-root": true, children: [(0, jsx_runtime_1.jsx)("div", { className: "cim-toast-icon", children: (0, jsx_runtime_1.jsx)(Icon, { size: 24, tone: toast.content.tone, "aria-hidden": true }) }), (0, jsx_runtime_1.jsx)(react_aria_components_1.UNSTABLE_ToastContent, { className: "cim-toast-content", children: (0, jsx_runtime_1.jsx)(react_aria_components_1.Text, { className: (0, utils_js_1.textStyle)({ variant: 'medium' }), children: toast.content.
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(react_aria_components_1.UNSTABLE_Toast, { toast: toast, className: "cim-toast", style: { viewTransitionName: toast.key }, "data-cim-style-root": true, children: [(0, jsx_runtime_1.jsx)("div", { className: "cim-toast-icon", children: (0, jsx_runtime_1.jsx)(Icon, { size: 24, tone: toast.content.tone, "aria-hidden": true }) }), (0, jsx_runtime_1.jsx)(react_aria_components_1.UNSTABLE_ToastContent, { className: "cim-toast-content", children: (0, jsx_runtime_1.jsx)(react_aria_components_1.Text, { className: (0, utils_js_1.textStyle)({ variant: 'medium' }), children: toast.content.message }) }), (0, jsx_runtime_1.jsx)(x_button_js_1.XButton, { slot: "close", UNSAFE_className: "cim-toast-close", "aria-label": messages.format('dismiss') })] }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../src/components/toast/toast.tsx"],"names":[],"mappings":";;AA6BA,wCAeC;;AA5CD,iEAK+B;AAC/B,kDAA2D;AAC3D,mDAA2G;AAC3G,kEAA2D;AAC3D,qDAAmD;AAGnD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,yBAAc;IACpB,OAAO,EAAE,0BAAe;IACxB,OAAO,EAAE,sBAAW;IACpB,QAAQ,EAAE,gCAAqB;CAChC,CAAC;AASF;;GAEG;AACH,SAAgB,cAAc,CAAC,EAAE,KAAK,EAAuB;IAC3D,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,IAAA,+BAAoB,EAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,CACL,wBAAC,sCAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,GAAG,EAAE,0CACpF,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,IAAI,IAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,wBAAgB,GACpD,EACN,uBAAC,6CAAe,IAAC,SAAS,EAAC,mBAAmB,YAC5C,uBAAC,4BAAO,IAAC,SAAS,EAAE,IAAA,oBAAS,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,YAAG,KAAK,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../src/components/toast/toast.tsx"],"names":[],"mappings":";;AA6BA,wCAeC;;AA5CD,iEAK+B;AAC/B,kDAA2D;AAC3D,mDAA2G;AAC3G,kEAA2D;AAC3D,qDAAmD;AAGnD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,yBAAc;IACpB,OAAO,EAAE,0BAAe;IACxB,OAAO,EAAE,sBAAW;IACpB,QAAQ,EAAE,gCAAqB;CAChC,CAAC;AASF;;GAEG;AACH,SAAgB,cAAc,CAAC,EAAE,KAAK,EAAuB;IAC3D,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,IAAA,+BAAoB,EAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,CACL,wBAAC,sCAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,GAAG,EAAE,0CACpF,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,IAAI,IAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,wBAAgB,GACpD,EACN,uBAAC,6CAAe,IAAC,SAAS,EAAC,mBAAmB,YAC5C,uBAAC,4BAAO,IAAC,SAAS,EAAE,IAAA,oBAAS,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,YAAG,KAAK,CAAC,OAAO,CAAC,OAAO,GAAW,GACvE,EAClB,uBAAC,qBAAO,IAAC,IAAI,EAAC,OAAO,EAAC,gBAAgB,EAAC,iBAAiB,gBAAa,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,GAAI,IAC1F,CACZ,CAAC;AACJ,CAAC","sourcesContent":["import {\n type QueuedToast as RACQueuedToast,\n Text as RACText,\n UNSTABLE_Toast as RACToast,\n UNSTABLE_ToastContent as RACToastContent,\n} from 'react-aria-components';\nimport { useLocalizedMessages } from '../../i18n/index.js';\nimport { IconCheckCircle, IconInfoCircle, IconWarning, IconWarningCircleFill } from '../../icons/index.js';\nimport { XButton } from '../internal/x-button/x-button.js';\nimport { textStyle } from '../typography/utils.js';\nimport type { InternalToastContent } from './types.js';\n\nconst iconMap = {\n info: IconInfoCircle,\n success: IconCheckCircle,\n warning: IconWarning,\n critical: IconWarningCircleFill,\n};\n\n/**\n * @internal\n */\ninterface UNSTABLE_ToastProps {\n toast: RACQueuedToast<InternalToastContent>;\n}\n\n/**\n * @internal\n */\nexport function UNSTABLE_Toast({ toast }: UNSTABLE_ToastProps) {\n const Icon = iconMap[toast.content.tone];\n const messages = useLocalizedMessages('common');\n\n return (\n <RACToast toast={toast} className=\"cim-toast\" style={{ viewTransitionName: toast.key }} data-cim-style-root>\n <div className=\"cim-toast-icon\">\n <Icon size={24} tone={toast.content.tone} aria-hidden />\n </div>\n <RACToastContent className=\"cim-toast-content\">\n <RACText className={textStyle({ variant: 'medium' })}>{toast.content.message}</RACText>\n </RACToastContent>\n <XButton slot=\"close\" UNSAFE_className=\"cim-toast-close\" aria-label={messages.format('dismiss')} />\n </RACToast>\n );\n}\n"]}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
1
|
+
export interface InternalToastContent {
|
|
2
|
+
message: string;
|
|
3
3
|
tone: 'info' | 'success' | 'warning' | 'critical';
|
|
4
4
|
}
|
|
5
|
+
export interface UNSTABLE_ToastOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The timeout to automatically close the toast after, in milliseconds.
|
|
8
|
+
* Setting this to `0` will prevent the toast from automatically closing.
|
|
9
|
+
* @default 5000
|
|
10
|
+
*/
|
|
11
|
+
timeout?: number;
|
|
12
|
+
}
|
|
5
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;CACnD;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface InternalToastContent {\n message: string;\n tone: 'info' | 'success' | 'warning' | 'critical';\n}\n\nexport interface UNSTABLE_ToastOptions {\n /**\n * The timeout to automatically close the toast after, in milliseconds.\n * Setting this to `0` will prevent the toast from automatically closing.\n * @default 5000\n */\n timeout?: number;\n}\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './components/tag-field/tag-field.js';
|
|
|
52
52
|
export * from './components/toggle-button/toggle-button.js';
|
|
53
53
|
export * from './components/toggle-button/toggle-icon-button.js';
|
|
54
54
|
export * from './components/toggle-button/toggle-button-group.js';
|
|
55
|
+
export * from './components/file-trigger.js';
|
|
55
56
|
export * from './components/spacing/box/box.js';
|
|
56
57
|
export * from './components/spacing/stack/stack.js';
|
|
57
58
|
export * from './components/typography/text.js';
|
|
@@ -68,7 +69,8 @@ export * from './components/container/container.js';
|
|
|
68
69
|
export * from './components/toggle/toggle.js';
|
|
69
70
|
export * from './components/internal/x-button/x-button.js';
|
|
70
71
|
export * from './components/toast/toast-region.js';
|
|
71
|
-
export type
|
|
72
|
+
export { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';
|
|
73
|
+
export type { UNSTABLE_ToastOptions } from './components/toast/types.js';
|
|
72
74
|
export * from './components/alert-dialog/alert-dialog.js';
|
|
73
75
|
export * from './components/drawer/drawer.js';
|
|
74
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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AAE,MAAM,+BAA+B,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAClG,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.UNSTABLE_toastQueue = void 0;
|
|
17
18
|
__exportStar(require("./components/alert/alert.js"), exports);
|
|
18
19
|
__exportStar(require("./components/app-header/app-header.js"), exports);
|
|
19
20
|
__exportStar(require("./components/app-header/simple-auth-tool.js"), exports);
|
|
@@ -65,6 +66,7 @@ __exportStar(require("./components/tag-field/tag-field.js"), exports);
|
|
|
65
66
|
__exportStar(require("./components/toggle-button/toggle-button.js"), exports);
|
|
66
67
|
__exportStar(require("./components/toggle-button/toggle-icon-button.js"), exports);
|
|
67
68
|
__exportStar(require("./components/toggle-button/toggle-button-group.js"), exports);
|
|
69
|
+
__exportStar(require("./components/file-trigger.js"), exports);
|
|
68
70
|
__exportStar(require("./components/spacing/box/box.js"), exports);
|
|
69
71
|
__exportStar(require("./components/spacing/stack/stack.js"), exports);
|
|
70
72
|
__exportStar(require("./components/typography/text.js"), exports);
|
|
@@ -78,6 +80,8 @@ __exportStar(require("./components/container/container.js"), exports);
|
|
|
78
80
|
__exportStar(require("./components/toggle/toggle.js"), exports);
|
|
79
81
|
__exportStar(require("./components/internal/x-button/x-button.js"), exports);
|
|
80
82
|
__exportStar(require("./components/toast/toast-region.js"), exports);
|
|
83
|
+
var toast_queue_js_1 = require("./components/toast/toast-queue.js");
|
|
84
|
+
Object.defineProperty(exports, "UNSTABLE_toastQueue", { enumerable: true, get: function () { return toast_queue_js_1.UNSTABLE_toastQueue; } });
|
|
81
85
|
__exportStar(require("./components/alert-dialog/alert-dialog.js"), exports);
|
|
82
86
|
__exportStar(require("./components/drawer/drawer.js"), exports);
|
|
83
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wEAAsD;AACtD,8EAA4D;AAC5D,8DAA4C;AAC5C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AACnD,0EAAwD;AACxD,kEAAgD;AAChD,4DAA0C;AAC1C,oEAAkD;AAClD,0EAAwD;AACxD,sEAAoD;AACpD,0EAAwD;AACxD,0EAAwD;AACxD,wEAAsD;AACtD,8EAA4D;AAE5D,kEAAgD;AAChD,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,4EAA0D;AAC1D,4EAA0D;AAC1D,wEAAsD;AACtD,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,kEAAgD;AAChD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,kEAAgD;AAChD,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,0EAAwD;AACxD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,2EAAyD;AACzD,gFAA8D;AAC9D,0EAAwD;AAGxD,4DAA0C;AAC1C,0DAAwC;AACxC,gEAA8C;AAC9C,sEAAoD;AACpD,8EAA4D;AAC5D,mFAAiE;AACjE,oFAAkE;AAClE,+DAA6C;AAE7C,kEAAgD;AAChD,sEAAoD;AAEpD,kEAAgD;AAChD,kEAAgD;AAoBhD,kEAAgD;AAChD,wEAAsD;AAEtD,2BAA2B;AAC3B,kFAAgE;AAChE,0EAAwD;AACxD,sEAAoD;AACpD,gEAA8C;AAC9C,6EAA2D;AAC3D,qEAAmD;AACnD,oEAAkG;AAAzF,qHAAA,mBAAmB,OAAA;AAE5B,4EAA0D;AAC1D,gEAA8C","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/internal/x-button/x-button.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/drawer/drawer.js';\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FileTriggerProps as RACFileTriggerProps } from 'react-aria-components';
|
|
2
|
+
export interface FileTriggerProps extends Pick<RACFileTriggerProps, 'acceptedFileTypes' | 'allowsMultiple' | 'defaultCamera' | 'onSelect' | 'children' | 'acceptDirectory'> {
|
|
3
|
+
}
|
|
4
|
+
declare const _FileTrigger: (props: FileTriggerProps & import("react").RefAttributes<HTMLInputElement>) => import("react").JSX.Element | null;
|
|
5
|
+
export { _FileTrigger as FileTrigger };
|
|
6
|
+
//# sourceMappingURL=file-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-trigger.d.ts","sourceRoot":"","sources":["../../../src/components/file-trigger.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAiC,KAAK,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGpH,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,mBAAmB,EACnB,mBAAmB,GAAG,gBAAgB,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,CACvG;CAAG;AAWN,QAAA,MAAM,YAAY,mHAAyC,CAAC;AAE5D,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { FileTrigger as RACFileTrigger } from 'react-aria-components';
|
|
4
|
+
import { forwardRef } from '../forward-ref.js';
|
|
5
|
+
/**
|
|
6
|
+
* Allows a user to access the file system with any pressable Cimpress UI component.
|
|
7
|
+
*
|
|
8
|
+
* See [file trigger API documentation](https://ui.cimpress.io/components/file-trigger/api).
|
|
9
|
+
*/
|
|
10
|
+
function FileTrigger(props, ref) {
|
|
11
|
+
return _jsx(RACFileTrigger, { ...props, ref: ref });
|
|
12
|
+
}
|
|
13
|
+
const _FileTrigger = forwardRef(FileTrigger, 'FileTrigger');
|
|
14
|
+
export { _FileTrigger as FileTrigger };
|
|
15
|
+
//# sourceMappingURL=file-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-trigger.js","sourceRoot":"","sources":["../../../src/components/file-trigger.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,WAAW,IAAI,cAAc,EAAgD,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C;;;;GAIG;AACH,SAAS,WAAW,CAAC,KAAuB,EAAE,GAAmC;IAC/E,OAAO,KAAC,cAAc,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACjD,CAAC;AAED,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;AAE5D,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC","sourcesContent":["'use client';\n\nimport type { ForwardedRef } from 'react';\nimport { FileTrigger as RACFileTrigger, type FileTriggerProps as RACFileTriggerProps } from 'react-aria-components';\nimport { forwardRef } from '../forward-ref.js';\n\nexport interface FileTriggerProps\n extends Pick<\n RACFileTriggerProps,\n 'acceptedFileTypes' | 'allowsMultiple' | 'defaultCamera' | 'onSelect' | 'children' | 'acceptDirectory'\n > {}\n\n/**\n * Allows a user to access the file system with any pressable Cimpress UI component.\n *\n * See [file trigger API documentation](https://ui.cimpress.io/components/file-trigger/api).\n */\nfunction FileTrigger(props: FileTriggerProps, ref: ForwardedRef<HTMLInputElement>) {\n return <RACFileTrigger {...props} ref={ref} />;\n}\n\nconst _FileTrigger = forwardRef(FileTrigger, 'FileTrigger');\n\nexport { _FileTrigger as FileTrigger };\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UNSTABLE_ToastQueue as RACToastQueue } from 'react-aria-components';
|
|
2
|
+
import type { InternalToastContent, UNSTABLE_ToastOptions } from './types.js';
|
|
3
|
+
export declare const internalToastQueue: RACToastQueue<InternalToastContent>;
|
|
4
|
+
/**
|
|
5
|
+
* Manages the queue of toasts.
|
|
6
|
+
*/
|
|
7
|
+
export interface UNSTABLE_ToastQueue {
|
|
8
|
+
/**
|
|
9
|
+
* Add an info toast to the queue.
|
|
10
|
+
* @returns The ID of the toast
|
|
11
|
+
*/
|
|
12
|
+
info(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
13
|
+
/**
|
|
14
|
+
* Add a success toast to the queue.
|
|
15
|
+
* @returns The ID of the toast
|
|
16
|
+
*/
|
|
17
|
+
success(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
18
|
+
/**
|
|
19
|
+
* Add a warning toast to the queue.
|
|
20
|
+
* @returns The ID of the toast
|
|
21
|
+
*/
|
|
22
|
+
warning(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
23
|
+
/**
|
|
24
|
+
* Add a critical toast to the queue.
|
|
25
|
+
* @returns The ID of the toast
|
|
26
|
+
*/
|
|
27
|
+
critical(message: string, options?: UNSTABLE_ToastOptions): string;
|
|
28
|
+
/**
|
|
29
|
+
* Close a toast.
|
|
30
|
+
* @param id The ID of the toast to close
|
|
31
|
+
*/
|
|
32
|
+
close(id: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Clear the queue.
|
|
35
|
+
*/
|
|
36
|
+
clear(): void;
|
|
37
|
+
}
|
|
38
|
+
export declare const UNSTABLE_toastQueue: UNSTABLE_ToastQueue;
|
|
39
|
+
//# sourceMappingURL=toast-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-queue.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAwC,MAAM,uBAAuB,CAAC;AAEnH,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAM9E,eAAO,MAAM,kBAAkB,qCAU7B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAClE;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IAClE;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,MAAM,CAAC;IACnE;;;OAGG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBA2CjC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UNSTABLE_ToastQueue as RACToastQueue } from 'react-aria-components';
|
|
2
|
+
import { flushSync } from 'react-dom';
|
|
3
|
+
const DEFAULT_TOAST_OPTIONS = {
|
|
4
|
+
timeout: 5000,
|
|
5
|
+
};
|
|
6
|
+
export const internalToastQueue = new RACToastQueue({
|
|
7
|
+
wrapUpdate(fn) {
|
|
8
|
+
if ('startViewTransition' in document) {
|
|
9
|
+
document.startViewTransition(() => {
|
|
10
|
+
flushSync(fn);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
fn();
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
export const UNSTABLE_toastQueue = {
|
|
19
|
+
info(message, options) {
|
|
20
|
+
return internalToastQueue.add({
|
|
21
|
+
message: message,
|
|
22
|
+
tone: 'info',
|
|
23
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
24
|
+
},
|
|
25
|
+
success(message, options) {
|
|
26
|
+
return internalToastQueue.add({
|
|
27
|
+
message: message,
|
|
28
|
+
tone: 'success',
|
|
29
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
30
|
+
},
|
|
31
|
+
warning(message, options) {
|
|
32
|
+
return internalToastQueue.add({
|
|
33
|
+
message: message,
|
|
34
|
+
tone: 'warning',
|
|
35
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
36
|
+
},
|
|
37
|
+
critical(message, options) {
|
|
38
|
+
return internalToastQueue.add({
|
|
39
|
+
message: message,
|
|
40
|
+
tone: 'critical',
|
|
41
|
+
}, { ...DEFAULT_TOAST_OPTIONS, ...options });
|
|
42
|
+
},
|
|
43
|
+
close(id) {
|
|
44
|
+
internalToastQueue.close(id);
|
|
45
|
+
},
|
|
46
|
+
clear() {
|
|
47
|
+
internalToastQueue.clear();
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=toast-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-queue.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAwC,MAAM,uBAAuB,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC,MAAM,qBAAqB,GAAoB;IAC7C,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,aAAa,CAAuB;IACxE,UAAU,CAAC,EAAE;QACX,IAAI,qBAAqB,IAAI,QAAQ,EAAE,CAAC;YACtC,QAAQ,CAAC,mBAAmB,CAAC,GAAG,EAAE;gBAChC,SAAS,CAAC,EAAE,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,EAAE,EAAE,CAAC;QACP,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAqCH,MAAM,CAAC,MAAM,mBAAmB,GAAwB;IACtD,IAAI,CAAC,OAAe,EAAE,OAA+B;QACnD,OAAO,kBAAkB,CAAC,GAAG,CAC3B;YACE,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,MAAM;SACb,EACD,EAAE,GAAG,qBAAqB,EAAE,GAAG,OAAO,EAAE,CACzC,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,OAAe,EAAE,OAA+B;QACtD,OAAO,kBAAkB,CAAC,GAAG,CAC3B;YACE,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,SAAS;SAChB,EACD,EAAE,GAAG,qBAAqB,EAAE,GAAG,OAAO,EAAE,CACzC,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,OAAe,EAAE,OAA+B;QACtD,OAAO,kBAAkB,CAAC,GAAG,CAC3B;YACE,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,SAAS;SAChB,EACD,EAAE,GAAG,qBAAqB,EAAE,GAAG,OAAO,EAAE,CACzC,CAAC;IACJ,CAAC;IACD,QAAQ,CAAC,OAAe,EAAE,OAA+B;QACvD,OAAO,kBAAkB,CAAC,GAAG,CAC3B;YACE,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,UAAU;SACjB,EACD,EAAE,GAAG,qBAAqB,EAAE,GAAG,OAAO,EAAE,CACzC,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,EAAU;QACd,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK;QACH,kBAAkB,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;CACF,CAAC","sourcesContent":["import { UNSTABLE_ToastQueue as RACToastQueue, type ToastOptions as RACToastOptions } from 'react-aria-components';\nimport { flushSync } from 'react-dom';\nimport type { InternalToastContent, UNSTABLE_ToastOptions } from './types.js';\n\nconst DEFAULT_TOAST_OPTIONS: RACToastOptions = {\n timeout: 5000,\n};\n\nexport const internalToastQueue = new RACToastQueue<InternalToastContent>({\n wrapUpdate(fn) {\n if ('startViewTransition' in document) {\n document.startViewTransition(() => {\n flushSync(fn);\n });\n } else {\n fn();\n }\n },\n});\n\n/**\n * Manages the queue of toasts.\n */\nexport interface UNSTABLE_ToastQueue {\n /**\n * Add an info toast to the queue.\n * @returns The ID of the toast\n */\n info(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a success toast to the queue.\n * @returns The ID of the toast\n */\n success(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a warning toast to the queue.\n * @returns The ID of the toast\n */\n warning(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Add a critical toast to the queue.\n * @returns The ID of the toast\n */\n critical(message: string, options?: UNSTABLE_ToastOptions): string;\n /**\n * Close a toast.\n * @param id The ID of the toast to close\n */\n close(id: string): void;\n /**\n * Clear the queue.\n */\n clear(): void;\n}\n\nexport const UNSTABLE_toastQueue: UNSTABLE_ToastQueue = {\n info(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'info',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n success(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'success',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n warning(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'warning',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n critical(message: string, options?: UNSTABLE_ToastOptions) {\n return internalToastQueue.add(\n {\n message: message,\n tone: 'critical',\n },\n { ...DEFAULT_TOAST_OPTIONS, ...options },\n );\n },\n close(id: string) {\n internalToastQueue.close(id);\n },\n clear() {\n internalToastQueue.clear();\n },\n};\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.
|
|
3
|
+
*
|
|
4
|
+
* See [toast usage guidelines](https://ui.cimpress.io/components/toast/).
|
|
5
|
+
*/
|
|
4
6
|
export declare function UNSTABLE_ToastRegion(): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=toast-region.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-region.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast-region.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,oBAAoB,4CAMnC"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { UNSTABLE_ToastRegion as RACToastRegion } from 'react-aria-components';
|
|
3
|
+
import { internalToastQueue } from './toast-queue.js';
|
|
4
4
|
import { UNSTABLE_Toast } from './toast.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
fn();
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
});
|
|
5
|
+
/**
|
|
6
|
+
* Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.
|
|
7
|
+
*
|
|
8
|
+
* See [toast usage guidelines](https://ui.cimpress.io/components/toast/).
|
|
9
|
+
*/
|
|
17
10
|
export function UNSTABLE_ToastRegion() {
|
|
18
|
-
return (_jsx(RACToastRegion, { queue:
|
|
11
|
+
return (_jsx(RACToastRegion, { queue: internalToastQueue, className: "cim-toast-region", "data-cim-style-root": true, children: ({ toast }) => _jsx(UNSTABLE_Toast, { toast: toast }) }));
|
|
19
12
|
}
|
|
20
13
|
//# sourceMappingURL=toast-region.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-region.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"toast-region.js","sourceRoot":"","sources":["../../../../src/components/toast/toast-region.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,CACL,KAAC,cAAc,IAAC,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAC,kBAAkB,yCACpE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,GACjC,CAClB,CAAC;AACJ,CAAC","sourcesContent":["import { UNSTABLE_ToastRegion as RACToastRegion } from 'react-aria-components';\nimport { internalToastQueue } from './toast-queue.js';\nimport { UNSTABLE_Toast } from './toast.js';\n\n/**\n * Displays toast notifications. Toast notifications are non-intrusive messages that appear briefly at the top of the page, overlaying content.\n *\n * See [toast usage guidelines](https://ui.cimpress.io/components/toast/).\n */\nexport function UNSTABLE_ToastRegion() {\n return (\n <RACToastRegion queue={internalToastQueue} className=\"cim-toast-region\" data-cim-style-root>\n {({ toast }) => <UNSTABLE_Toast toast={toast} />}\n </RACToastRegion>\n );\n}\n"]}
|
|
@@ -16,6 +16,6 @@ const iconMap = {
|
|
|
16
16
|
export function UNSTABLE_Toast({ toast }) {
|
|
17
17
|
const Icon = iconMap[toast.content.tone];
|
|
18
18
|
const messages = useLocalizedMessages('common');
|
|
19
|
-
return (_jsxs(RACToast, { toast: toast, className: "cim-toast", style: { viewTransitionName: toast.key }, "data-cim-style-root": true, children: [_jsx("div", { className: "cim-toast-icon", children: _jsx(Icon, { size: 24, tone: toast.content.tone, "aria-hidden": true }) }), _jsx(RACToastContent, { className: "cim-toast-content", children: _jsx(RACText, { className: textStyle({ variant: 'medium' }), children: toast.content.
|
|
19
|
+
return (_jsxs(RACToast, { toast: toast, className: "cim-toast", style: { viewTransitionName: toast.key }, "data-cim-style-root": true, children: [_jsx("div", { className: "cim-toast-icon", children: _jsx(Icon, { size: 24, tone: toast.content.tone, "aria-hidden": true }) }), _jsx(RACToastContent, { className: "cim-toast-content", children: _jsx(RACText, { className: textStyle({ variant: 'medium' }), children: toast.content.message }) }), _jsx(XButton, { slot: "close", UNSAFE_className: "cim-toast-close", "aria-label": messages.format('dismiss') })] }));
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../src/components/toast/toast.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,IAAI,IAAI,OAAO,EACf,cAAc,IAAI,QAAQ,EAC1B,qBAAqB,IAAI,eAAe,GACzC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,qBAAqB;CAChC,CAAC;AASF;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,KAAK,EAAuB;IAC3D,MAAM,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,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,CACL,MAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,kBAAkB,EAAE,KAAK,CAAC,GAAG,EAAE,0CACpF,cAAK,SAAS,EAAC,gBAAgB,YAC7B,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,wBAAgB,GACpD,EACN,KAAC,eAAe,IAAC,SAAS,EAAC,mBAAmB,YAC5C,KAAC,OAAO,IAAC,SAAS,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,YAAG,KAAK,CAAC,OAAO,CAAC,OAAO,GAAW,GACvE,EAClB,KAAC,OAAO,IAAC,IAAI,EAAC,OAAO,EAAC,gBAAgB,EAAC,iBAAiB,gBAAa,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,GAAI,IAC1F,CACZ,CAAC;AACJ,CAAC","sourcesContent":["import {\n type QueuedToast as RACQueuedToast,\n Text as RACText,\n UNSTABLE_Toast as RACToast,\n UNSTABLE_ToastContent as RACToastContent,\n} from 'react-aria-components';\nimport { useLocalizedMessages } from '../../i18n/index.js';\nimport { IconCheckCircle, IconInfoCircle, IconWarning, IconWarningCircleFill } from '../../icons/index.js';\nimport { XButton } from '../internal/x-button/x-button.js';\nimport { textStyle } from '../typography/utils.js';\nimport type { InternalToastContent } from './types.js';\n\nconst iconMap = {\n info: IconInfoCircle,\n success: IconCheckCircle,\n warning: IconWarning,\n critical: IconWarningCircleFill,\n};\n\n/**\n * @internal\n */\ninterface UNSTABLE_ToastProps {\n toast: RACQueuedToast<InternalToastContent>;\n}\n\n/**\n * @internal\n */\nexport function UNSTABLE_Toast({ toast }: UNSTABLE_ToastProps) {\n const Icon = iconMap[toast.content.tone];\n const messages = useLocalizedMessages('common');\n\n return (\n <RACToast toast={toast} className=\"cim-toast\" style={{ viewTransitionName: toast.key }} data-cim-style-root>\n <div className=\"cim-toast-icon\">\n <Icon size={24} tone={toast.content.tone} aria-hidden />\n </div>\n <RACToastContent className=\"cim-toast-content\">\n <RACText className={textStyle({ variant: 'medium' })}>{toast.content.message}</RACText>\n </RACToastContent>\n <XButton slot=\"close\" UNSAFE_className=\"cim-toast-close\" aria-label={messages.format('dismiss')} />\n </RACToast>\n );\n}\n"]}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
1
|
+
export interface InternalToastContent {
|
|
2
|
+
message: string;
|
|
3
3
|
tone: 'info' | 'success' | 'warning' | 'critical';
|
|
4
4
|
}
|
|
5
|
+
export interface UNSTABLE_ToastOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The timeout to automatically close the toast after, in milliseconds.
|
|
8
|
+
* Setting this to `0` will prevent the toast from automatically closing.
|
|
9
|
+
* @default 5000
|
|
10
|
+
*/
|
|
11
|
+
timeout?: number;
|
|
12
|
+
}
|
|
5
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;CACnD;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/toast/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface InternalToastContent {\n message: string;\n tone: 'info' | 'success' | 'warning' | 'critical';\n}\n\nexport interface UNSTABLE_ToastOptions {\n /**\n * The timeout to automatically close the toast after, in milliseconds.\n * Setting this to `0` will prevent the toast from automatically closing.\n * @default 5000\n */\n timeout?: number;\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './components/tag-field/tag-field.js';
|
|
|
52
52
|
export * from './components/toggle-button/toggle-button.js';
|
|
53
53
|
export * from './components/toggle-button/toggle-icon-button.js';
|
|
54
54
|
export * from './components/toggle-button/toggle-button-group.js';
|
|
55
|
+
export * from './components/file-trigger.js';
|
|
55
56
|
export * from './components/spacing/box/box.js';
|
|
56
57
|
export * from './components/spacing/stack/stack.js';
|
|
57
58
|
export * from './components/typography/text.js';
|
|
@@ -68,7 +69,8 @@ export * from './components/container/container.js';
|
|
|
68
69
|
export * from './components/toggle/toggle.js';
|
|
69
70
|
export * from './components/internal/x-button/x-button.js';
|
|
70
71
|
export * from './components/toast/toast-region.js';
|
|
71
|
-
export type
|
|
72
|
+
export { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';
|
|
73
|
+
export type { UNSTABLE_ToastOptions } from './components/toast/types.js';
|
|
72
74
|
export * from './components/alert-dialog/alert-dialog.js';
|
|
73
75
|
export * from './components/drawer/drawer.js';
|
|
74
76
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6B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;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAClG,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export * from './components/tag-field/tag-field.js';
|
|
|
49
49
|
export * from './components/toggle-button/toggle-button.js';
|
|
50
50
|
export * from './components/toggle-button/toggle-icon-button.js';
|
|
51
51
|
export * from './components/toggle-button/toggle-button-group.js';
|
|
52
|
+
export * from './components/file-trigger.js';
|
|
52
53
|
export * from './components/spacing/box/box.js';
|
|
53
54
|
export * from './components/spacing/stack/stack.js';
|
|
54
55
|
export * from './components/typography/text.js';
|
|
@@ -62,6 +63,7 @@ export * from './components/container/container.js';
|
|
|
62
63
|
export * from './components/toggle/toggle.js';
|
|
63
64
|
export * from './components/internal/x-button/x-button.js';
|
|
64
65
|
export * from './components/toast/toast-region.js';
|
|
66
|
+
export { UNSTABLE_toastQueue } from './components/toast/toast-queue.js';
|
|
65
67
|
export * from './components/alert-dialog/alert-dialog.js';
|
|
66
68
|
export * from './components/drawer/drawer.js';
|
|
67
69
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,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AAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8BAA8B,CAAC;AAE7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAoBhD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAEtD,2BAA2B;AAC3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAA4B,MAAM,mCAAmC,CAAC;AAElG,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/internal/x-button/x-button.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/drawer/drawer.js';\n"]}
|