@sikka/hawa 0.31.0-next → 0.31.1-next
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/sonner/index.d.mts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import
|
2
|
-
import { D as DirectionType } from '../commonTypes-2k6FnHw5.mjs';
|
1
|
+
import React__default from 'react';
|
3
2
|
import { toast, Toaster } from 'sonner';
|
3
|
+
import { D as DirectionType } from '../commonTypes-2k6FnHw5.mjs';
|
4
4
|
|
5
|
-
type SonnerProps =
|
5
|
+
type SonnerProps = React__default.ComponentProps<typeof Toaster> & {
|
6
6
|
direction?: DirectionType;
|
7
7
|
};
|
8
|
-
declare const Sonner: ({ ...props }: SonnerProps) =>
|
8
|
+
declare const Sonner: ({ ...props }: SonnerProps) => React__default.JSX.Element;
|
9
9
|
declare const createSonner: typeof toast;
|
10
10
|
|
11
11
|
export { Sonner, createSonner };
|
package/dist/sonner/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import
|
2
|
-
import { D as DirectionType } from '../commonTypes-2k6FnHw5.js';
|
1
|
+
import React__default from 'react';
|
3
2
|
import { toast, Toaster } from 'sonner';
|
3
|
+
import { D as DirectionType } from '../commonTypes-2k6FnHw5.js';
|
4
4
|
|
5
|
-
type SonnerProps =
|
5
|
+
type SonnerProps = React__default.ComponentProps<typeof Toaster> & {
|
6
6
|
direction?: DirectionType;
|
7
7
|
};
|
8
|
-
declare const Sonner: ({ ...props }: SonnerProps) =>
|
8
|
+
declare const Sonner: ({ ...props }: SonnerProps) => React__default.JSX.Element;
|
9
9
|
declare const createSonner: typeof toast;
|
10
10
|
|
11
11
|
export { Sonner, createSonner };
|
package/dist/sonner/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
"use client";
|
2
2
|
"use strict";
|
3
|
+
var __create = Object.create;
|
3
4
|
var __defProp = Object.defineProperty;
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
9
|
var __export = (target, all) => {
|
8
10
|
for (var name in all)
|
@@ -16,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
18
|
}
|
17
19
|
return to;
|
18
20
|
};
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
27
|
+
mod
|
28
|
+
));
|
19
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
30
|
|
21
31
|
// elements/sonner/index.ts
|
@@ -27,9 +37,10 @@ __export(sonner_exports, {
|
|
27
37
|
module.exports = __toCommonJS(sonner_exports);
|
28
38
|
|
29
39
|
// elements/sonner/Sonner.tsx
|
40
|
+
var import_react = __toESM(require("react"));
|
30
41
|
var import_sonner = require("sonner");
|
31
42
|
var Sonner = ({ ...props }) => {
|
32
|
-
return /* @__PURE__ */
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
33
44
|
import_sonner.Toaster,
|
34
45
|
{
|
35
46
|
dir: props.direction,
|
package/dist/sonner/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../elements/sonner/index.ts","../../elements/sonner/Sonner.tsx"],"sourcesContent":["export * from \"./Sonner\";\n","import
|
1
|
+
{"version":3,"sources":["../../elements/sonner/index.ts","../../elements/sonner/Sonner.tsx"],"sourcesContent":["export * from \"./Sonner\";\n","import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n // theme={theme as SonnerProps[\"theme\"]}\n\n dir={props.direction}\n position={props.direction === \"rtl\" ? \"bottom-left\" : \"bottom-right\"}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground\",\n },\n }}\n {...props}\n />\n );\n};\n\nconst createSonner: typeof toast = toast;\n\nexport { Sonner, createSonner };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAElB,oBAAgD;AAQhD,IAAM,SAAS,CAAC,EAAE,GAAG,MAAM,MAAmB;AAC5C,SACE,6BAAAA,QAAA;AAAA,IAAC,cAAAC;AAAA,IAAA;AAAA,MAGC,KAAK,MAAM;AAAA,MACX,UAAU,MAAM,cAAc,QAAQ,gBAAgB;AAAA,MACtD,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,QACJ;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAM,eAA6B;","names":["React","SonnerToaster"]}
|
package/dist/sonner/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../elements/sonner/Sonner.tsx"],"sourcesContent":["import
|
1
|
+
{"version":3,"sources":["../../elements/sonner/Sonner.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n // theme={theme as SonnerProps[\"theme\"]}\n\n dir={props.direction}\n position={props.direction === \"rtl\" ? \"bottom-left\" : \"bottom-right\"}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground\",\n },\n }}\n {...props}\n />\n );\n};\n\nconst createSonner: typeof toast = toast;\n\nexport { Sonner, createSonner };\n"],"mappings":";;;AAAA,OAAO,WAAW;AAElB,SAAS,WAAW,eAAe,aAAa;AAQhD,IAAM,SAAS,CAAC,EAAE,GAAG,MAAM,MAAmB;AAC5C,SACE;AAAA,IAAC;AAAA;AAAA,MAGC,KAAK,MAAM;AAAA,MACX,UAAU,MAAM,cAAc,QAAQ,gBAAgB;AAAA,MACtD,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,QACJ;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAM,eAA6B;","names":[]}
|