@sarunyu/system-one 4.7.4 → 4.7.5
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/index.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/src/components/toast.d.ts +17 -0
- package/dist/src/components/toast.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -22,4 +22,21 @@ export interface ToastStackProps {
|
|
|
22
22
|
}) => ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export declare function ToastStack({ items, className, renderItem }: ToastStackProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface ToasterProps {
|
|
26
|
+
items: Array<ToastProps & {
|
|
27
|
+
id: string;
|
|
28
|
+
}>;
|
|
29
|
+
renderItem?: (item: ToastProps & {
|
|
30
|
+
id: string;
|
|
31
|
+
}) => ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Fixed-position toast container.
|
|
36
|
+
* - Desktop (≥ md): top-right
|
|
37
|
+
* - Tablet & mobile (< md): top-center, full width with horizontal padding
|
|
38
|
+
*
|
|
39
|
+
* Place once at the root of your app (e.g. inside App.tsx or layout).
|
|
40
|
+
*/
|
|
41
|
+
export declare function Toaster({ items, renderItem, className }: ToasterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
42
|
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/toast.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGnD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,aAAa,GA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C;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqFD,eAAO,MAAM,KAAK,uGAmEhB,CAAC;AAIH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;CAC/D;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,eAAe,2CAY3E;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,YAAY,kDAgBrE"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { DropdownMultiple } from './components/dropdown-multiple';
|
|
|
12
12
|
export { Input } from './components/input';
|
|
13
13
|
export { Modal } from './components/modal';
|
|
14
14
|
export { Notification } from './components/notification';
|
|
15
|
-
export { Toast, ToastStack } from './components/toast';
|
|
15
|
+
export { Toast, ToastStack, Toaster } from './components/toast';
|
|
16
16
|
export { BottomSheet } from './components/bottom-sheet';
|
|
17
17
|
export { OptionList } from './components/option-list';
|
|
18
18
|
export { SearchInput } from './components/search-input';
|
|
@@ -39,7 +39,7 @@ export type { InputState, InputProps, } from './components/input';
|
|
|
39
39
|
export type { BottomSheetHeaderType, BottomSheetRightSide, BottomSheetProps, } from './components/bottom-sheet';
|
|
40
40
|
export type { ModalVariant, ModalActionLayout, ModalResponsive, ModalAlertStatus, ModalProps, } from './components/modal';
|
|
41
41
|
export type { NotificationItemType, NotificationItemStatus, NotificationItem, NotificationGroup, NotificationProps, } from './components/notification';
|
|
42
|
-
export type { ToastVariant, ToastStatus, ToastProps, ToastStackProps, } from './components/toast';
|
|
42
|
+
export type { ToastVariant, ToastStatus, ToastProps, ToastStackProps, ToasterProps, } from './components/toast';
|
|
43
43
|
export type { OptionItem, OptionListProps, } from './components/option-list';
|
|
44
44
|
export type { SearchInputSize, SearchInputProps, } from './components/search-input';
|
|
45
45
|
export type { TabSize, TabItem, TabProps, TabGroupProps, } from './components/tab';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM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