@korsolutions/ui 0.0.36 → 0.0.38
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/module/components/alert-dialog/alert-dialog.js +41 -0
- package/dist/module/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/module/components/alert-dialog/async-alert-dialog.js +117 -0
- package/dist/module/components/alert-dialog/async-alert-dialog.js.map +1 -0
- package/dist/module/components/alert-dialog/index.js +6 -0
- package/dist/module/components/alert-dialog/index.js.map +1 -0
- package/dist/module/components/alert-dialog/variants/default.js +93 -0
- package/dist/module/components/alert-dialog/variants/default.js.map +1 -0
- package/dist/module/components/alert-dialog/variants/index.js +7 -0
- package/dist/module/components/alert-dialog/variants/index.js.map +1 -0
- package/dist/module/components/checkbox/checkbox.js +4 -4
- package/dist/module/components/checkbox/checkbox.js.map +1 -1
- package/dist/module/components/index.js +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/index.js +2 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/primitives/alert-dialog/alert-dialog-action.js +34 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-action.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-cancel.js +34 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-cancel.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-content.js +23 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-content.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-description.js +23 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-description.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-footer.js +23 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-footer.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-overlay.js +26 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-overlay.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-portal.js +20 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-portal.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-root.js +22 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-root.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-title.js +23 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-title.js.map +1 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-trigger.js +28 -0
- package/dist/module/primitives/alert-dialog/alert-dialog-trigger.js.map +1 -0
- package/dist/module/primitives/alert-dialog/context.js +12 -0
- package/dist/module/primitives/alert-dialog/context.js.map +1 -0
- package/dist/module/primitives/alert-dialog/index.js +26 -0
- package/dist/module/primitives/alert-dialog/index.js.map +1 -0
- package/dist/module/primitives/alert-dialog/types.js +4 -0
- package/dist/module/primitives/alert-dialog/types.js.map +1 -0
- package/dist/module/primitives/checkbox/checkbox-indicator.js +3 -3
- package/dist/module/primitives/checkbox/checkbox-indicator.js.map +1 -1
- package/dist/module/primitives/checkbox/checkbox-root.js +12 -12
- package/dist/module/primitives/checkbox/checkbox-root.js.map +1 -1
- package/dist/module/primitives/index.js +1 -0
- package/dist/module/primitives/index.js.map +1 -1
- package/dist/module/primitives/popover/popover-portal.js +1 -1
- package/dist/module/primitives/popover/popover-portal.js.map +1 -1
- package/dist/typescript/src/components/alert-dialog/alert-dialog.d.ts +15 -0
- package/dist/typescript/src/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/typescript/src/components/alert-dialog/async-alert-dialog.d.ts +19 -0
- package/dist/typescript/src/components/alert-dialog/async-alert-dialog.d.ts.map +1 -0
- package/dist/typescript/src/components/alert-dialog/index.d.ts +4 -0
- package/dist/typescript/src/components/alert-dialog/index.d.ts.map +1 -0
- package/dist/typescript/src/components/alert-dialog/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/alert-dialog/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/alert-dialog/variants/index.d.ts +4 -0
- package/dist/typescript/src/components/alert-dialog/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/checkbox/checkbox.d.ts +3 -3
- package/dist/typescript/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/typescript/src/components/index.d.ts +1 -0
- package/dist/typescript/src/components/index.d.ts.map +1 -1
- package/dist/typescript/src/index.d.ts.map +1 -1
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-action.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-action.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-cancel.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-cancel.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-content.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-content.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-description.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-description.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-footer.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-footer.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-overlay.d.ts +7 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-overlay.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-portal.d.ts +7 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-portal.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-root.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-title.d.ts +8 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-title.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-trigger.d.ts +154 -0
- package/dist/typescript/src/primitives/alert-dialog/alert-dialog-trigger.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/context.d.ts +10 -0
- package/dist/typescript/src/primitives/alert-dialog/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/index.d.ts +33 -0
- package/dist/typescript/src/primitives/alert-dialog/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/alert-dialog/types.d.ts +13 -0
- package/dist/typescript/src/primitives/alert-dialog/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/checkbox/checkbox-context.d.ts +3 -3
- package/dist/typescript/src/primitives/checkbox/checkbox-context.d.ts.map +1 -1
- package/dist/typescript/src/primitives/checkbox/checkbox-root.d.ts +3 -3
- package/dist/typescript/src/primitives/checkbox/checkbox-root.d.ts.map +1 -1
- package/dist/typescript/src/primitives/index.d.ts +1 -0
- package/dist/typescript/src/primitives/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/alert-dialog/alert-dialog.tsx +38 -0
- package/src/components/alert-dialog/async-alert-dialog.tsx +121 -0
- package/src/components/alert-dialog/index.ts +3 -0
- package/src/components/alert-dialog/variants/default.tsx +82 -0
- package/src/components/alert-dialog/variants/index.ts +5 -0
- package/src/components/checkbox/checkbox.tsx +5 -5
- package/src/components/index.ts +1 -0
- package/src/index.tsx +2 -0
- package/src/primitives/alert-dialog/alert-dialog-action.tsx +27 -0
- package/src/primitives/alert-dialog/alert-dialog-cancel.tsx +27 -0
- package/src/primitives/alert-dialog/alert-dialog-content.tsx +21 -0
- package/src/primitives/alert-dialog/alert-dialog-description.tsx +21 -0
- package/src/primitives/alert-dialog/alert-dialog-footer.tsx +21 -0
- package/src/primitives/alert-dialog/alert-dialog-overlay.tsx +25 -0
- package/src/primitives/alert-dialog/alert-dialog-portal.tsx +20 -0
- package/src/primitives/alert-dialog/alert-dialog-root.tsx +25 -0
- package/src/primitives/alert-dialog/alert-dialog-title.tsx +21 -0
- package/src/primitives/alert-dialog/alert-dialog-trigger.tsx +27 -0
- package/src/primitives/alert-dialog/context.ts +18 -0
- package/src/primitives/alert-dialog/index.ts +34 -0
- package/src/primitives/alert-dialog/types.ts +13 -0
- package/src/primitives/checkbox/checkbox-context.tsx +3 -3
- package/src/primitives/checkbox/checkbox-indicator.tsx +3 -3
- package/src/primitives/checkbox/checkbox-root.tsx +14 -15
- package/src/primitives/index.ts +1 -0
- package/src/primitives/popover/popover-portal.tsx +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","useAlertDialog","jsx","_jsx","AlertDialogTitle","props","children","style","textProps","styles","calculatedStyle","title"],"sourceRoot":"../../../../src","sources":["primitives/alert-dialog/alert-dialog-title.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAwD,cAAc;AACnF,SAASC,cAAc;AAAoB,SAAAC,GAAA,IAAAC,IAAA;AAO3C,OAAO,SAASC,gBAAgBA,CAACC,KAAqC,EAAE;EACtE,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAE,GAAGC;EAAU,CAAC,GAAGH,KAAK;EAC/C,MAAM;IAAEI;EAAO,CAAC,GAAGR,cAAc,CAAC,CAAC;EAEnC,MAAMS,eAAe,GAAG,CAACD,MAAM,EAAEE,KAAK,EAAEJ,KAAK,CAAC;EAE9C,oBACEJ,IAAA,CAACH,IAAI;IAAA,GAAKQ,SAAS;IAAED,KAAK,EAAEG,eAAgB;IAAAJ,QAAA,EACzCA;EAAQ,CACL,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useAlertDialog } from "./context.js";
|
|
5
|
+
export function AlertDialogTrigger(props) {
|
|
6
|
+
const {
|
|
7
|
+
onPress
|
|
8
|
+
} = props;
|
|
9
|
+
const {
|
|
10
|
+
isOpen,
|
|
11
|
+
setIsOpen
|
|
12
|
+
} = useAlertDialog();
|
|
13
|
+
const handlePress = event => {
|
|
14
|
+
onPress?.(event);
|
|
15
|
+
setIsOpen(true);
|
|
16
|
+
};
|
|
17
|
+
return /*#__PURE__*/React.cloneElement(props.children, {
|
|
18
|
+
onPress: handlePress,
|
|
19
|
+
role: "button",
|
|
20
|
+
accessible: true,
|
|
21
|
+
accessibilityRole: "button",
|
|
22
|
+
accessibilityState: {
|
|
23
|
+
expanded: isOpen
|
|
24
|
+
},
|
|
25
|
+
...props.children.props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=alert-dialog-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useAlertDialog","AlertDialogTrigger","props","onPress","isOpen","setIsOpen","handlePress","event","cloneElement","children","role","accessible","accessibilityRole","accessibilityState","expanded"],"sourceRoot":"../../../../src","sources":["primitives/alert-dialog/alert-dialog-trigger.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc;AAMvB,OAAO,SAASC,kBAAkBA,CAACC,KAAuC,EAAE;EAC1E,MAAM;IAAEC;EAAQ,CAAC,GAAGD,KAAK;EACzB,MAAM;IAAEE,MAAM;IAAEC;EAAU,CAAC,GAAGL,cAAc,CAAC,CAAC;EAE9C,MAAMM,WAAsC,GAAIC,KAAK,IAAK;IACxDJ,OAAO,GAAGI,KAAK,CAAC;IAChBF,SAAS,CAAC,IAAI,CAAC;EACjB,CAAC;EAED,oBAAON,KAAK,CAACS,YAAY,CAACN,KAAK,CAACO,QAAQ,EAAE;IACxCN,OAAO,EAAEG,WAAW;IACpBI,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAE,IAAI;IAChBC,iBAAiB,EAAE,QAAQ;IAC3BC,kBAAkB,EAAE;MAAEC,QAAQ,EAAEV;IAAO,CAAC;IACxC,GAAGF,KAAK,CAACO,QAAQ,CAACP;EACpB,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
export const AlertDialogPrimitiveContext = /*#__PURE__*/createContext(null);
|
|
5
|
+
export const useAlertDialog = () => {
|
|
6
|
+
const context = useContext(AlertDialogPrimitiveContext);
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error("AlertDialog compound components must be used within AlertDialogPrimitive.Root");
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","useContext","AlertDialogPrimitiveContext","useAlertDialog","context","Error"],"sourceRoot":"../../../../src","sources":["primitives/alert-dialog/context.ts"],"mappings":";;AAAA,SAAgBA,aAAa,EAAEC,UAAU,QAAuB,OAAO;AASvE,OAAO,MAAMC,2BAA2B,gBAAGF,aAAa,CAA0C,IAAI,CAAC;AAEvG,OAAO,MAAMG,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,OAAO,GAAGH,UAAU,CAACC,2BAA2B,CAAC;EACvD,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,+EAA+E,CAAC;EAClG;EACA,OAAOD,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { AlertDialogAction } from "./alert-dialog-action.js";
|
|
4
|
+
import { AlertDialogCancel } from "./alert-dialog-cancel.js";
|
|
5
|
+
import { AlertDialogContent } from "./alert-dialog-content.js";
|
|
6
|
+
import { AlertDialogDescription } from "./alert-dialog-description.js";
|
|
7
|
+
import { AlertDialogFooter } from "./alert-dialog-footer.js";
|
|
8
|
+
import { AlertDialogOverlay } from "./alert-dialog-overlay.js";
|
|
9
|
+
import { AlertDialogPortal } from "./alert-dialog-portal.js";
|
|
10
|
+
import { AlertDialogRoot } from "./alert-dialog-root.js";
|
|
11
|
+
import { AlertDialogTitle } from "./alert-dialog-title.js";
|
|
12
|
+
import { AlertDialogTrigger } from "./alert-dialog-trigger.js";
|
|
13
|
+
export const AlertDialogPrimitive = {
|
|
14
|
+
Root: AlertDialogRoot,
|
|
15
|
+
Trigger: AlertDialogTrigger,
|
|
16
|
+
Portal: AlertDialogPortal,
|
|
17
|
+
Overlay: AlertDialogOverlay,
|
|
18
|
+
Content: AlertDialogContent,
|
|
19
|
+
Title: AlertDialogTitle,
|
|
20
|
+
Description: AlertDialogDescription,
|
|
21
|
+
Footer: AlertDialogFooter,
|
|
22
|
+
Action: AlertDialogAction,
|
|
23
|
+
Cancel: AlertDialogCancel
|
|
24
|
+
};
|
|
25
|
+
export * from "./types.js";
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AlertDialogAction","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogOverlay","AlertDialogPortal","AlertDialogRoot","AlertDialogTitle","AlertDialogTrigger","AlertDialogPrimitive","Root","Trigger","Portal","Overlay","Content","Title","Description","Footer","Action","Cancel"],"sourceRoot":"../../../../src","sources":["primitives/alert-dialog/index.ts"],"mappings":";;AAAA,SAASA,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAC/B,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,eAAe;AACxB,SAASC,gBAAgB;AACzB,SAASC,kBAAkB;AAE3B,OAAO,MAAMC,oBAAoB,GAAG;EAClCC,IAAI,EAAEJ,eAAe;EACrBK,OAAO,EAAEH,kBAAkB;EAC3BI,MAAM,EAAEP,iBAAiB;EACzBQ,OAAO,EAAET,kBAAkB;EAC3BU,OAAO,EAAEb,kBAAkB;EAC3Bc,KAAK,EAAER,gBAAgB;EACvBS,WAAW,EAAEd,sBAAsB;EACnCe,MAAM,EAAEd,iBAAiB;EACzBe,MAAM,EAAEnB,iBAAiB;EACzBoB,MAAM,EAAEnB;AACV,CAAC;AAWD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["primitives/alert-dialog/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -19,17 +19,17 @@ export function CheckboxIndicator(props) {
|
|
|
19
19
|
...viewProps
|
|
20
20
|
} = props;
|
|
21
21
|
const {
|
|
22
|
-
|
|
22
|
+
value,
|
|
23
23
|
state,
|
|
24
24
|
styles
|
|
25
25
|
} = useCheckboxContext();
|
|
26
|
-
const indicatorState = calculateState(state,
|
|
26
|
+
const indicatorState = calculateState(state, value);
|
|
27
27
|
const calculatedStyle = [styles?.indicator?.default, styles?.indicator?.[indicatorState], style];
|
|
28
28
|
const checkmarkStyle = [styles?.checkmark?.default, styles?.checkmark?.[indicatorState]];
|
|
29
29
|
return /*#__PURE__*/_jsx(View, {
|
|
30
30
|
...viewProps,
|
|
31
31
|
style: calculatedStyle,
|
|
32
|
-
children:
|
|
32
|
+
children: value && /*#__PURE__*/_jsx(Text, {
|
|
33
33
|
style: checkmarkStyle,
|
|
34
34
|
children: "\u2713"
|
|
35
35
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","View","useCheckboxContext","jsx","_jsx","calculateState","rootState","checked","CheckboxIndicator","props","style","viewProps","state","styles","indicatorState","calculatedStyle","indicator","default","checkmarkStyle","checkmark","children"],"sourceRoot":"../../../../src","sources":["primitives/checkbox/checkbox-indicator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAwD,cAAc;AACzF,SAASC,kBAAkB;AAA6B,SAAAC,GAAA,IAAAC,IAAA;AAOxD,MAAMC,cAAc,GAAGA,CAACC,SAAwB,EAAEC,OAAgB,KAAoB;EACpF,IAAID,SAAS,KAAK,UAAU,EAAE;IAC5B,OAAO,UAAU;EACnB;EACA,IAAIC,OAAO,EAAE;IACX,OAAO,SAAS;EAClB;EACA,OAAOD,SAAS;AAClB,CAAC;AAED,OAAO,SAASE,iBAAiBA,CAACC,KAAsC,EAAE;EACxE,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAU,CAAC,GAAGF,KAAK;EACrC,MAAM;
|
|
1
|
+
{"version":3,"names":["React","Text","View","useCheckboxContext","jsx","_jsx","calculateState","rootState","checked","CheckboxIndicator","props","style","viewProps","value","state","styles","indicatorState","calculatedStyle","indicator","default","checkmarkStyle","checkmark","children"],"sourceRoot":"../../../../src","sources":["primitives/checkbox/checkbox-indicator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAwD,cAAc;AACzF,SAASC,kBAAkB;AAA6B,SAAAC,GAAA,IAAAC,IAAA;AAOxD,MAAMC,cAAc,GAAGA,CAACC,SAAwB,EAAEC,OAAgB,KAAoB;EACpF,IAAID,SAAS,KAAK,UAAU,EAAE;IAC5B,OAAO,UAAU;EACnB;EACA,IAAIC,OAAO,EAAE;IACX,OAAO,SAAS;EAClB;EACA,OAAOD,SAAS;AAClB,CAAC;AAED,OAAO,SAASE,iBAAiBA,CAACC,KAAsC,EAAE;EACxE,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAU,CAAC,GAAGF,KAAK;EACrC,MAAM;IAAEG,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGZ,kBAAkB,CAAC,CAAC;EAErD,MAAMa,cAAc,GAAGV,cAAc,CAACQ,KAAK,EAAED,KAAK,CAAC;EAEnD,MAAMI,eAAe,GAAG,CAACF,MAAM,EAAEG,SAAS,EAAEC,OAAO,EAAEJ,MAAM,EAAEG,SAAS,GAAGF,cAAc,CAAC,EAAEL,KAAK,CAAC;EAChG,MAAMS,cAAc,GAAG,CAACL,MAAM,EAAEM,SAAS,EAAEF,OAAO,EAAEJ,MAAM,EAAEM,SAAS,GAAGL,cAAc,CAAC,CAAC;EAExF,oBACEX,IAAA,CAACH,IAAI;IAAA,GAAKU,SAAS;IAAED,KAAK,EAAEM,eAAgB;IAAAK,QAAA,EACzCT,KAAK,iBAAIR,IAAA,CAACJ,IAAI;MAACU,KAAK,EAAES,cAAe;MAAAE,QAAA,EAAC;IAAC,CAAM;EAAC,CAC3C,CAAC;AAEX","ignoreList":[]}
|
|
@@ -4,14 +4,14 @@ import React, { useState } from "react";
|
|
|
4
4
|
import { Pressable } from "react-native";
|
|
5
5
|
import { CheckboxPrimitiveContext } from "./checkbox-context.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const calculateState = (
|
|
8
|
-
if (
|
|
7
|
+
const calculateState = (value, isDisabled, isHovered) => {
|
|
8
|
+
if (isDisabled) {
|
|
9
9
|
return "disabled";
|
|
10
10
|
}
|
|
11
11
|
if (isHovered) {
|
|
12
12
|
return "hovered";
|
|
13
13
|
}
|
|
14
|
-
if (
|
|
14
|
+
if (value) {
|
|
15
15
|
return "checked";
|
|
16
16
|
}
|
|
17
17
|
return "default";
|
|
@@ -19,32 +19,32 @@ const calculateState = (checked, disabled, isHovered) => {
|
|
|
19
19
|
export function CheckboxRoot(props) {
|
|
20
20
|
const {
|
|
21
21
|
children,
|
|
22
|
-
|
|
22
|
+
value,
|
|
23
23
|
onChange,
|
|
24
|
-
|
|
24
|
+
isDisabled,
|
|
25
25
|
style,
|
|
26
26
|
styles,
|
|
27
27
|
...pressableProps
|
|
28
28
|
} = props;
|
|
29
29
|
const [isHovered, setIsHovered] = useState(false);
|
|
30
|
-
const state = calculateState(
|
|
30
|
+
const state = calculateState(value, isDisabled, isHovered);
|
|
31
31
|
const handlePress = () => {
|
|
32
|
-
if (!
|
|
33
|
-
onChange(!
|
|
32
|
+
if (!isDisabled) {
|
|
33
|
+
onChange(!value);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
const calculatedStyle = [styles?.root?.default, styles?.root?.[state], style];
|
|
37
37
|
const contextValue = React.useMemo(() => ({
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
value,
|
|
39
|
+
isDisabled,
|
|
40
40
|
state,
|
|
41
41
|
styles
|
|
42
|
-
}), [
|
|
42
|
+
}), [value, isDisabled, state, styles]);
|
|
43
43
|
return /*#__PURE__*/_jsx(CheckboxPrimitiveContext.Provider, {
|
|
44
44
|
value: contextValue,
|
|
45
45
|
children: /*#__PURE__*/_jsx(Pressable, {
|
|
46
46
|
...pressableProps,
|
|
47
|
-
disabled:
|
|
47
|
+
disabled: isDisabled,
|
|
48
48
|
onPress: handlePress,
|
|
49
49
|
onHoverIn: () => setIsHovered(true),
|
|
50
50
|
onHoverOut: () => setIsHovered(false),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Pressable","CheckboxPrimitiveContext","jsx","_jsx","calculateState","
|
|
1
|
+
{"version":3,"names":["React","useState","Pressable","CheckboxPrimitiveContext","jsx","_jsx","calculateState","value","isDisabled","isHovered","CheckboxRoot","props","children","onChange","style","styles","pressableProps","setIsHovered","state","handlePress","calculatedStyle","root","default","contextValue","useMemo","Provider","disabled","onPress","onHoverIn","onHoverOut"],"sourceRoot":"../../../../src","sources":["primitives/checkbox/checkbox-root.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,QAA6D,cAAc;AAC7F,SAASC,wBAAwB;AAA6B,SAAAC,GAAA,IAAAC,IAAA;AAY9D,MAAMC,cAAc,GAAGA,CAACC,KAAc,EAAEC,UAA+B,EAAEC,SAAkB,KAAoB;EAC7G,IAAID,UAAU,EAAE;IACd,OAAO,UAAU;EACnB;EACA,IAAIC,SAAS,EAAE;IACb,OAAO,SAAS;EAClB;EACA,IAAIF,KAAK,EAAE;IACT,OAAO,SAAS;EAClB;EACA,OAAO,SAAS;AAClB,CAAC;AAED,OAAO,SAASG,YAAYA,CAACC,KAAiC,EAAE;EAC9D,MAAM;IAAEC,QAAQ;IAAEL,KAAK;IAAEM,QAAQ;IAAEL,UAAU;IAAEM,KAAK;IAAEC,MAAM;IAAE,GAAGC;EAAe,CAAC,GAAGL,KAAK;EACzF,MAAM,CAACF,SAAS,EAAEQ,YAAY,CAAC,GAAGhB,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMiB,KAAK,GAAGZ,cAAc,CAACC,KAAK,EAAEC,UAAU,EAAEC,SAAS,CAAC;EAC1D,MAAMU,WAAW,GAAGA,CAAA,KAAM;IACxB,IAAI,CAACX,UAAU,EAAE;MACfK,QAAQ,CAAC,CAACN,KAAK,CAAC;IAClB;EACF,CAAC;EAED,MAAMa,eAAe,GAAG,CAACL,MAAM,EAAEM,IAAI,EAAEC,OAAO,EAAEP,MAAM,EAAEM,IAAI,GAAGH,KAAK,CAAC,EAAEJ,KAAK,CAAC;EAE7E,MAAMS,YAAY,GAAGvB,KAAK,CAACwB,OAAO,CAChC,OAAO;IACLjB,KAAK;IACLC,UAAU;IACVU,KAAK;IACLH;EACF,CAAC,CAAC,EACF,CAACR,KAAK,EAAEC,UAAU,EAAEU,KAAK,EAAEH,MAAM,CACnC,CAAC;EAED,oBACEV,IAAA,CAACF,wBAAwB,CAACsB,QAAQ;IAAClB,KAAK,EAAEgB,YAAa;IAAAX,QAAA,eACrDP,IAAA,CAACH,SAAS;MAAA,GACJc,cAAc;MAClBU,QAAQ,EAAElB,UAAW;MACrBmB,OAAO,EAAER,WAAY;MACrBS,SAAS,EAAEA,CAAA,KAAMX,YAAY,CAAC,IAAI,CAAE;MACpCY,UAAU,EAAEA,CAAA,KAAMZ,YAAY,CAAC,KAAK,CAAE;MACtCH,KAAK,EAAEM,eAAgB;MAAAR,QAAA,EAEtBA;IAAQ,CACA;EAAC,CACqB,CAAC;AAExC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["primitives/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["primitives/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Portal } from "../portal/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PopoverContext, usePopover } from "./context.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export function PopoverPortal(props) {
|
|
8
8
|
const popover = usePopover();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Portal","
|
|
1
|
+
{"version":3,"names":["React","Portal","PopoverContext","usePopover","jsx","_jsx","PopoverPortal","props","popover","isOpen","name","children","Provider","value"],"sourceRoot":"../../../../src","sources":["primitives/popover/popover-portal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM;AACf,SAASC,cAAc,EAAEC,UAAU;AAAoB,SAAAC,GAAA,IAAAC,IAAA;AAMvD,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAE;EACvD,MAAMC,OAAO,GAAGL,UAAU,CAAC,CAAC;EAE5B,IAAI,CAACK,OAAO,CAACC,MAAM,EAAE;IACnB,OAAO,IAAI;EACb;EAEA,oBACEJ,IAAA,CAACJ,MAAM;IAACS,IAAI,EAAC,gBAAgB;IAAAC,QAAA,eAC3BN,IAAA,CAACH,cAAc,CAACU,QAAQ;MAACC,KAAK,EAAEL,OAAQ;MAAAG,QAAA,EAAEJ,KAAK,CAACI;IAAQ,CAA0B;EAAC,CAC7E,CAAC;AAEb","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PressableProps } from "react-native";
|
|
2
|
+
import { AlertDialogVariants } from "./variants";
|
|
3
|
+
interface AlertDialogProps {
|
|
4
|
+
trigger: React.ReactElement<PressableProps>;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
actionLabel?: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
onAction?: () => void;
|
|
10
|
+
onCancel?: () => void;
|
|
11
|
+
variant?: keyof typeof AlertDialogVariants;
|
|
12
|
+
}
|
|
13
|
+
export declare function AlertDialog(props: AlertDialogProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,UAAU,gBAAgB;IACxB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAsBlD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AlertDialogVariants } from "./variants";
|
|
3
|
+
interface AsyncAlertDialogProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
actionLabel?: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
variant?: keyof typeof AlertDialogVariants;
|
|
9
|
+
}
|
|
10
|
+
interface AsyncAlertDialogResult {
|
|
11
|
+
confirmed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function AsyncAlertDialogManager(): React.JSX.Element | null;
|
|
14
|
+
declare function show(props: AsyncAlertDialogProps): Promise<AsyncAlertDialogResult>;
|
|
15
|
+
export declare const AsyncAlertDialog: {
|
|
16
|
+
show: typeof show;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=async-alert-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-alert-dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert-dialog/async-alert-dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;CAC5C;AAED,UAAU,sBAAsB;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;AA2ED,wBAAgB,uBAAuB,6BAatC;AAED,iBAAS,IAAI,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAW3E;AAED,eAAO,MAAM,gBAAgB;;CAE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,eAAO,MAAM,4BAA4B,QAAO,iBA8E/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;CAE/B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CheckboxVariants } from "./variants";
|
|
3
3
|
interface CheckboxProps {
|
|
4
|
-
|
|
5
|
-
onChange: (
|
|
4
|
+
value: boolean;
|
|
5
|
+
onChange: (value: boolean) => void;
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
|
|
8
|
+
isDisabled?: boolean;
|
|
9
9
|
variant?: keyof typeof CheckboxVariants;
|
|
10
10
|
}
|
|
11
11
|
export declare function Checkbox(props: CheckboxProps): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,UAAU,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,UAAU,aAAa;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAiB5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,eAAe,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,mBAAmB,GAAI,+BAA+B,aAAa,gCAS/E,CAAC;AAEF,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveActionProps extends PressableProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogAction(props: AlertDialogPrimitiveActionProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-action.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpG,MAAM,WAAW,+BAAgC,SAAQ,cAAc;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,+BAA+B,qBAiBvE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveCancelProps extends PressableProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogCancel(props: AlertDialogPrimitiveCancelProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-cancel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-cancel.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-cancel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpG,MAAM,WAAW,+BAAgC,SAAQ,cAAc;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,+BAA+B,qBAiBvE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveContentProps extends ViewProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogContent(props: AlertDialogPrimitiveContentProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-content.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpF,MAAM,WAAW,gCAAiC,SAAQ,SAAS;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gCAAgC,qBAWzE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type TextProps, type TextStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveDescriptionProps extends TextProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<TextStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogDescription(props: AlertDialogPrimitiveDescriptionProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-description.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpF,MAAM,WAAW,oCAAqC,SAAQ,SAAS;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,oCAAoC,qBAWjF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveFooterProps extends ViewProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogFooter(props: AlertDialogPrimitiveFooterProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-footer.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpF,MAAM,WAAW,+BAAgC,SAAQ,SAAS;IAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,+BAA+B,qBAWvE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveOverlayProps extends PressableProps {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}
|
|
6
|
+
export declare function AlertDialogOverlay(props: AlertDialogPrimitiveOverlayProps): React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=alert-dialog-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-overlay.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9F,MAAM,WAAW,gCAAiC,SAAQ,cAAc;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gCAAgC,qBAgBzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-portal.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-portal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,4BAW9D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AlertDialogStyles } from "./types";
|
|
3
|
+
export interface AlertDialogPrimitiveRootProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
styles?: AlertDialogStyles;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogRoot(props: AlertDialogPrimitiveRootProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-root.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,6BAA6B,qBAcnE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type TextProps, type TextStyle } from "react-native";
|
|
3
|
+
export interface AlertDialogPrimitiveTitleProps extends TextProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
style?: StyleProp<TextStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare function AlertDialogTitle(props: AlertDialogPrimitiveTitleProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=alert-dialog-title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog-title.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/alert-dialog/alert-dialog-title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpF,MAAM,WAAW,8BAA+B,SAAQ,SAAS;IAC/D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,8BAA8B,qBAWrE"}
|