@stackframe/stack 2.3.5 → 2.3.8
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/components/card-frame.d.mts +9 -0
- package/dist/components/card-frame.d.ts +8 -5
- package/dist/components/card-frame.js +58 -23
- package/dist/components/credential-sign-in.d.mts +5 -0
- package/dist/components/credential-sign-in.d.ts +5 -1
- package/dist/components/credential-sign-in.js +109 -41
- package/dist/components/credential-sign-up.d.mts +5 -0
- package/dist/components/credential-sign-up.d.ts +5 -1
- package/dist/components/credential-sign-up.js +140 -62
- package/dist/components/forgot-password.d.mts +7 -0
- package/dist/components/forgot-password.d.ts +6 -2
- package/dist/components/forgot-password.js +83 -26
- package/dist/components/form-warning.d.mts +7 -0
- package/dist/components/form-warning.d.ts +6 -2
- package/dist/components/form-warning.js +34 -8
- package/dist/components/magic-link-sign-in.d.mts +5 -0
- package/dist/components/magic-link-sign-in.d.ts +5 -1
- package/dist/components/magic-link-sign-in.js +89 -31
- package/dist/components/message-card.d.mts +10 -0
- package/dist/components/message-card.d.ts +8 -4
- package/dist/components/message-card.js +45 -6
- package/dist/components/oauth-button.d.mts +8 -0
- package/dist/components/oauth-button.d.ts +6 -2
- package/dist/components/oauth-button.js +142 -63
- package/dist/components/oauth-group.d.mts +7 -0
- package/dist/components/oauth-group.d.ts +6 -2
- package/dist/components/oauth-group.js +46 -8
- package/dist/components/password-field.d.mts +5 -0
- package/dist/components/password-field.d.ts +5 -3
- package/dist/components/password-field.js +111 -41
- package/dist/components/password-reset-inner.d.mts +8 -0
- package/dist/components/password-reset-inner.d.ts +6 -2
- package/dist/components/password-reset-inner.js +120 -58
- package/dist/components/redirect-message-card.d.mts +8 -0
- package/dist/components/redirect-message-card.d.ts +6 -2
- package/dist/components/redirect-message-card.js +110 -58
- package/dist/components/separator-with-text.d.mts +7 -0
- package/dist/components/separator-with-text.d.ts +6 -2
- package/dist/components/separator-with-text.js +35 -5
- package/dist/components/user-avatar.d.mts +13 -0
- package/dist/components/user-avatar.d.ts +11 -3
- package/dist/components/user-avatar.js +34 -6
- package/dist/components/user-button.d.mts +15 -0
- package/dist/components/user-button.d.ts +12 -3
- package/dist/components/user-button.js +156 -26
- package/dist/components-core/avatar.d.mts +8 -0
- package/dist/components-core/avatar.d.ts +7 -5
- package/dist/components-core/avatar.js +73 -18
- package/dist/components-core/button.d.mts +12 -0
- package/dist/components-core/button.d.ts +8 -6
- package/dist/components-core/button.js +177 -113
- package/dist/components-core/card.d.mts +8 -0
- package/dist/components-core/card.d.ts +4 -2
- package/dist/components-core/card.js +73 -22
- package/dist/components-core/collapsible.d.mts +8 -0
- package/dist/components-core/collapsible.d.ts +8 -6
- package/dist/components-core/collapsible.js +48 -5
- package/dist/components-core/container.d.mts +8 -0
- package/dist/components-core/container.d.ts +5 -3
- package/dist/components-core/container.js +61 -11
- package/dist/components-core/dropdown.d.mts +15 -0
- package/dist/components-core/dropdown.d.ts +10 -8
- package/dist/components-core/dropdown.js +108 -36
- package/dist/components-core/index.d.mts +59 -0
- package/dist/components-core/index.d.ts +51 -40
- package/dist/components-core/index.js +144 -46
- package/dist/components-core/input.d.mts +6 -0
- package/dist/components-core/input.d.ts +5 -3
- package/dist/components-core/input.js +97 -28
- package/dist/components-core/label.d.mts +6 -0
- package/dist/components-core/label.d.ts +5 -3
- package/dist/components-core/label.js +65 -15
- package/dist/components-core/link.d.mts +10 -0
- package/dist/components-core/link.d.ts +7 -6
- package/dist/components-core/link.js +72 -18
- package/dist/components-core/loading-indicator.d.mts +13 -0
- package/dist/components-core/loading-indicator.d.ts +11 -4
- package/dist/components-core/loading-indicator.js +46 -6
- package/dist/components-core/popover.d.mts +8 -0
- package/dist/components-core/popover.d.ts +8 -6
- package/dist/components-core/popover.js +72 -16
- package/dist/components-core/separator.d.mts +6 -0
- package/dist/components-core/separator.d.ts +5 -3
- package/dist/components-core/separator.js +66 -16
- package/dist/components-core/skeleton.d.mts +7 -0
- package/dist/components-core/skeleton.d.ts +5 -3
- package/dist/components-core/skeleton.js +75 -21
- package/dist/components-core/tabs.d.mts +9 -0
- package/dist/components-core/tabs.d.ts +8 -6
- package/dist/components-core/tabs.js +87 -20
- package/dist/components-core/text.d.mts +10 -0
- package/dist/components-core/text.d.ts +5 -3
- package/dist/components-core/text.js +95 -40
- package/dist/components-core-joy/button.d.mts +6 -0
- package/dist/components-core-joy/button.d.ts +6 -2
- package/dist/components-core-joy/button.js +86 -28
- package/dist/components-core-joy/input.d.mts +5 -0
- package/dist/components-core-joy/input.d.ts +5 -2
- package/dist/components-core-joy/input.js +51 -6
- package/dist/components-core-joy/separator.d.mts +6 -0
- package/dist/components-core-joy/separator.d.ts +6 -2
- package/dist/components-core-joy/separator.js +50 -6
- package/dist/components-core-joy/tabs.d.mts +9 -0
- package/dist/components-core-joy/tabs.d.ts +9 -5
- package/dist/components-core-joy/tabs.js +62 -16
- package/dist/components-core-joy/text.d.mts +9 -0
- package/dist/components-core-joy/text.d.ts +6 -3
- package/dist/components-core-joy/text.js +68 -28
- package/dist/components-page/account-settings.d.mts +7 -0
- package/dist/components-page/account-settings.d.ts +6 -2
- package/dist/components-page/account-settings.js +213 -81
- package/dist/components-page/auth-page.d.mts +8 -0
- package/dist/components-page/auth-page.d.ts +6 -2
- package/dist/components-page/auth-page.js +79 -19
- package/dist/components-page/email-verification.d.mts +8 -0
- package/dist/components-page/email-verification.d.ts +6 -2
- package/dist/components-page/email-verification.js +65 -28
- package/dist/components-page/forgot-password.d.mts +7 -0
- package/dist/components-page/forgot-password.d.ts +6 -2
- package/dist/components-page/forgot-password.js +64 -20
- package/dist/components-page/magic-link-callback.d.mts +8 -0
- package/dist/components-page/magic-link-callback.d.ts +6 -2
- package/dist/components-page/magic-link-callback.js +72 -34
- package/dist/components-page/oauth-callback.d.mts +5 -0
- package/dist/components-page/oauth-callback.d.ts +5 -1
- package/dist/components-page/oauth-callback.js +52 -16
- package/dist/components-page/password-reset.d.mts +8 -0
- package/dist/components-page/password-reset.d.ts +6 -2
- package/dist/components-page/password-reset.js +70 -34
- package/dist/components-page/sign-in.d.mts +7 -0
- package/dist/components-page/sign-in.d.ts +6 -2
- package/dist/components-page/sign-in.js +41 -5
- package/dist/components-page/sign-out.d.mts +5 -0
- package/dist/components-page/sign-out.d.ts +5 -1
- package/dist/components-page/sign-out.js +47 -11
- package/dist/components-page/sign-up.d.mts +7 -0
- package/dist/components-page/sign-up.d.ts +6 -2
- package/dist/components-page/sign-up.js +41 -5
- package/dist/components-page/stack-handler.d.mts +16 -0
- package/dist/components-page/stack-handler.d.ts +11 -3
- package/dist/components-page/stack-handler.js +102 -64
- package/dist/esm/components/card-frame.js +39 -0
- package/dist/esm/components/credential-sign-in.js +82 -0
- package/dist/esm/components/credential-sign-up.js +114 -0
- package/dist/esm/components/forgot-password.js +55 -0
- package/dist/esm/components/form-warning.js +15 -0
- package/dist/esm/components/magic-link-sign-in.js +61 -0
- package/dist/esm/components/message-card.js +16 -0
- package/dist/esm/components/oauth-button.js +124 -0
- package/dist/esm/components/oauth-group.js +17 -0
- package/dist/esm/components/password-field.js +82 -0
- package/dist/esm/components/password-reset-inner.js +93 -0
- package/dist/esm/components/redirect-message-card.js +83 -0
- package/dist/esm/components/separator-with-text.js +16 -0
- package/dist/esm/components/user-avatar.js +14 -0
- package/dist/esm/components/user-button.js +133 -0
- package/dist/esm/components-core/avatar.js +56 -0
- package/dist/esm/components-core/button.js +165 -0
- package/dist/esm/components-core/card.js +51 -0
- package/dist/esm/components-core/collapsible.js +13 -0
- package/dist/esm/components-core/container.js +35 -0
- package/dist/esm/components-core/dropdown.js +106 -0
- package/dist/esm/components-core/index.js +93 -0
- package/dist/esm/components-core/input.js +80 -0
- package/dist/esm/components-core/label.js +38 -0
- package/dist/esm/components-core/link.js +38 -0
- package/dist/esm/components-core/loading-indicator.js +27 -0
- package/dist/esm/components-core/popover.js +43 -0
- package/dist/esm/components-core/separator.js +36 -0
- package/dist/esm/components-core/skeleton.js +52 -0
- package/dist/esm/components-core/tabs.js +79 -0
- package/dist/esm/components-core/text.js +63 -0
- package/dist/esm/components-core-joy/button.js +53 -0
- package/dist/esm/components-core-joy/input.js +18 -0
- package/dist/esm/components-core-joy/separator.js +17 -0
- package/dist/esm/components-core-joy/tabs.js +29 -0
- package/dist/esm/components-core-joy/text.js +35 -0
- package/dist/esm/components-page/account-settings.js +197 -0
- package/dist/esm/components-page/auth-page.js +50 -0
- package/dist/esm/components-page/email-verification.js +36 -0
- package/dist/esm/components-page/forgot-password.js +35 -0
- package/dist/esm/components-page/magic-link-callback.js +43 -0
- package/dist/esm/components-page/oauth-callback.js +23 -0
- package/dist/esm/components-page/password-reset.js +42 -0
- package/dist/esm/components-page/sign-in.js +12 -0
- package/dist/esm/components-page/sign-out.js +18 -0
- package/dist/esm/components-page/sign-up.js +12 -0
- package/dist/esm/components-page/stack-handler.js +75 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/joy.js +5 -0
- package/dist/esm/lib/auth.js +62 -0
- package/dist/esm/lib/cookie.js +185 -0
- package/dist/esm/lib/hooks.js +29 -0
- package/dist/esm/lib/stack-app.js +940 -0
- package/dist/esm/providers/component-provider.js +76 -0
- package/dist/esm/providers/design-provider.js +36 -0
- package/dist/esm/providers/joy-provider.js +35 -0
- package/dist/esm/providers/stack-provider-client.js +31 -0
- package/dist/esm/providers/stack-provider.js +21 -0
- package/dist/esm/providers/styled-components-registry.js +24 -0
- package/dist/esm/providers/theme-provider.js +22 -0
- package/dist/esm/utils/browser-script.js +25 -0
- package/dist/esm/utils/constants.js +34 -0
- package/dist/esm/utils/email.js +10 -0
- package/dist/esm/utils/next.js +7 -0
- package/dist/esm/utils/url.js +21 -0
- package/dist/index.d.mts +37 -0
- package/dist/index.d.ts +37 -22
- package/dist/index.js +106 -21
- package/dist/joy.d.mts +16 -0
- package/dist/joy.d.ts +16 -1
- package/dist/joy.js +30 -1
- package/dist/lib/auth.d.mts +11 -0
- package/dist/lib/auth.d.ts +8 -4
- package/dist/lib/auth.js +83 -57
- package/dist/lib/cookie.d.mts +14 -0
- package/dist/lib/cookie.d.ts +8 -6
- package/dist/lib/cookie.js +217 -45
- package/dist/lib/hooks.d.mts +35 -0
- package/dist/lib/hooks.d.ts +14 -8
- package/dist/lib/hooks.js +53 -28
- package/dist/lib/stack-app.d.mts +227 -0
- package/dist/lib/stack-app.d.ts +43 -41
- package/dist/lib/stack-app.js +937 -849
- package/dist/providers/component-provider.d.mts +113 -0
- package/dist/providers/component-provider.d.ts +95 -77
- package/dist/providers/component-provider.js +92 -58
- package/dist/providers/design-provider.d.mts +34 -0
- package/dist/providers/design-provider.d.ts +16 -21
- package/dist/providers/design-provider.js +57 -58
- package/dist/providers/joy-provider.d.mts +36 -0
- package/dist/providers/joy-provider.d.ts +30 -14
- package/dist/providers/joy-provider.js +58 -30
- package/dist/providers/stack-provider-client.d.mts +20 -0
- package/dist/providers/stack-provider-client.d.ts +15 -8
- package/dist/providers/stack-provider-client.js +64 -20
- package/dist/providers/stack-provider.d.mts +14 -0
- package/dist/providers/stack-provider.d.ts +13 -5
- package/dist/providers/stack-provider.js +39 -8
- package/dist/providers/styled-components-registry.d.mts +8 -0
- package/dist/providers/styled-components-registry.d.ts +8 -4
- package/dist/providers/styled-components-registry.js +43 -17
- package/dist/providers/theme-provider.d.mts +22 -0
- package/dist/providers/theme-provider.d.ts +21 -9
- package/dist/providers/theme-provider.js +55 -19
- package/dist/utils/browser-script.d.mts +5 -0
- package/dist/utils/browser-script.d.ts +5 -0
- package/dist/utils/browser-script.js +50 -0
- package/dist/utils/constants.d.mts +48 -0
- package/dist/utils/constants.d.ts +11 -9
- package/dist/utils/constants.js +66 -21
- package/dist/utils/email.d.mts +3 -0
- package/dist/utils/email.d.ts +3 -1
- package/dist/utils/email.js +44 -6
- package/dist/utils/next.d.mts +3 -0
- package/dist/utils/next.d.ts +3 -1
- package/dist/utils/next.js +31 -3
- package/dist/utils/url.d.mts +4 -0
- package/dist/utils/url.d.ts +4 -2
- package/dist/utils/url.js +44 -13
- package/package.json +20 -10
|
@@ -1,135 +1,199 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/components-core/button.tsx
|
|
33
|
+
var button_exports = {};
|
|
34
|
+
__export(button_exports, {
|
|
35
|
+
Button: () => Button
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(button_exports);
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_design_provider = require("../providers/design-provider");
|
|
40
|
+
var import_color = __toESM(require("color"));
|
|
41
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
42
|
+
var import_constants = require("../utils/constants");
|
|
43
|
+
var import_loading_indicator = __toESM(require("./loading-indicator"));
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
function getColors({
|
|
46
|
+
propsColor,
|
|
47
|
+
colors,
|
|
48
|
+
variant
|
|
49
|
+
}) {
|
|
50
|
+
let bgColor;
|
|
51
|
+
switch (variant) {
|
|
52
|
+
case "primary": {
|
|
53
|
+
bgColor = colors.primaryColor;
|
|
54
|
+
break;
|
|
28
55
|
}
|
|
29
|
-
|
|
30
|
-
|
|
56
|
+
case "secondary": {
|
|
57
|
+
bgColor = colors.secondaryColor;
|
|
58
|
+
break;
|
|
31
59
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
60
|
+
case "warning": {
|
|
61
|
+
bgColor = "#ff4500";
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (propsColor) {
|
|
66
|
+
bgColor = propsColor;
|
|
67
|
+
}
|
|
68
|
+
const c = (0, import_color.default)(bgColor);
|
|
69
|
+
const pc = (0, import_color.default)(colors.primaryColor);
|
|
70
|
+
const changeColor = (value) => {
|
|
71
|
+
return c.hsl(c.hue(), c.saturationl(), c.lightness() + value).toString();
|
|
72
|
+
};
|
|
73
|
+
const getAlpha = (alpha) => {
|
|
74
|
+
return (0, import_color.default)(
|
|
75
|
+
pc.isDark() ? "white" : "black"
|
|
76
|
+
).alpha(alpha).toString();
|
|
77
|
+
};
|
|
78
|
+
if (c.alpha() === 0) {
|
|
79
|
+
return {
|
|
80
|
+
bgColor: "transparent",
|
|
81
|
+
hoverBgColor: getAlpha(0.1),
|
|
82
|
+
activeBgColor: getAlpha(0.2),
|
|
83
|
+
textColor: colors.primaryColor
|
|
84
|
+
};
|
|
85
|
+
} else if (c.isLight()) {
|
|
86
|
+
return {
|
|
87
|
+
bgColor,
|
|
88
|
+
hoverBgColor: changeColor(-10),
|
|
89
|
+
activeBgColor: changeColor(-20),
|
|
90
|
+
textColor: "black"
|
|
36
91
|
};
|
|
37
|
-
|
|
38
|
-
|
|
92
|
+
} else {
|
|
93
|
+
return {
|
|
94
|
+
bgColor,
|
|
95
|
+
hoverBgColor: changeColor(10),
|
|
96
|
+
activeBgColor: changeColor(20),
|
|
97
|
+
textColor: "white"
|
|
39
98
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
var StyledButton = import_styled_components.default.button`
|
|
102
|
+
border: 0;
|
|
103
|
+
border-radius: ${import_constants.BORDER_RADIUS};
|
|
104
|
+
padding: ${(props) => {
|
|
105
|
+
switch (props.$size) {
|
|
106
|
+
case "sm": {
|
|
107
|
+
return "0rem 0.75rem";
|
|
47
108
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
bgColor: 'transparent',
|
|
51
|
-
hoverBgColor: getAlpha(0.1),
|
|
52
|
-
activeBgColor: getAlpha(0.2),
|
|
53
|
-
textColor: colors.primaryColor,
|
|
54
|
-
};
|
|
109
|
+
case "md": {
|
|
110
|
+
return "0rem 1rem";
|
|
55
111
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
bgColor,
|
|
59
|
-
hoverBgColor: changeColor(-10),
|
|
60
|
-
activeBgColor: changeColor(-20),
|
|
61
|
-
textColor: 'black',
|
|
62
|
-
};
|
|
112
|
+
case "lg": {
|
|
113
|
+
return "0rem 2rem";
|
|
63
114
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
115
|
+
}
|
|
116
|
+
}};
|
|
117
|
+
height: ${(props) => {
|
|
118
|
+
switch (props.$size) {
|
|
119
|
+
case "sm": {
|
|
120
|
+
return "2rem";
|
|
71
121
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
border: 0;
|
|
75
|
-
border-radius: ${BORDER_RADIUS};
|
|
76
|
-
padding: ${props => {
|
|
77
|
-
switch (props.$size) {
|
|
78
|
-
case 'sm': {
|
|
79
|
-
return '0rem 0.75rem';
|
|
80
|
-
}
|
|
81
|
-
case 'md': {
|
|
82
|
-
return '0rem 1rem';
|
|
83
|
-
}
|
|
84
|
-
case 'lg': {
|
|
85
|
-
return '0rem 2rem';
|
|
86
|
-
}
|
|
122
|
+
case "md": {
|
|
123
|
+
return "2.5rem";
|
|
87
124
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
switch (props.$size) {
|
|
91
|
-
case 'sm': {
|
|
92
|
-
return '2rem';
|
|
93
|
-
}
|
|
94
|
-
case 'md': {
|
|
95
|
-
return '2.5rem';
|
|
96
|
-
}
|
|
97
|
-
case 'lg': {
|
|
98
|
-
return '3rem';
|
|
99
|
-
}
|
|
125
|
+
case "lg": {
|
|
126
|
+
return "3rem";
|
|
100
127
|
}
|
|
128
|
+
}
|
|
101
129
|
}};
|
|
102
|
-
font-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
opacity: ${props => props.disabled ? 0.5 : 1};
|
|
130
|
+
font-family: ${import_constants.FONT_FAMILY};
|
|
131
|
+
font-size: ${import_constants.FONT_SIZES.md};
|
|
132
|
+
opacity: ${(props) => props.disabled ? 0.5 : 1};
|
|
106
133
|
transition: background-color 0.2s;
|
|
107
134
|
cursor: pointer;
|
|
135
|
+
position: relative;
|
|
136
|
+
&:disabled {
|
|
137
|
+
cursor: auto;
|
|
138
|
+
opacity: 0.5;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
background-color: ${(props) => props.$colors.light.bgColor};
|
|
142
|
+
color: ${(props) => props.$colors.light.textColor};
|
|
108
143
|
&:not([disabled]) {
|
|
109
144
|
&:active,&:hover:active {
|
|
110
|
-
background-color: ${props => props.$activeBgColor};
|
|
145
|
+
background-color: ${(props) => props.$colors.light.activeBgColor};
|
|
111
146
|
}
|
|
112
147
|
&:hover {
|
|
113
|
-
background-color: ${props => props.$hoverBgColor};
|
|
148
|
+
background-color: ${(props) => props.$colors.light.hoverBgColor};
|
|
114
149
|
}
|
|
115
150
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
151
|
+
|
|
152
|
+
html[data-theme='dark'] & {
|
|
153
|
+
background-color: ${(props) => props.$colors.dark.bgColor};
|
|
154
|
+
color: ${(props) => props.$colors.dark.textColor};
|
|
155
|
+
&:not([disabled]) {
|
|
156
|
+
&:active,&:hover:active {
|
|
157
|
+
background-color: ${(props) => props.$colors.dark.activeBgColor};
|
|
158
|
+
}
|
|
159
|
+
&:hover {
|
|
160
|
+
background-color: ${(props) => props.$colors.dark.hoverBgColor};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
119
163
|
}
|
|
120
|
-
font-family: ${FONT_FAMILY};
|
|
121
|
-
text-decoration: ${props => props.$underline ? 'underline' : 'none'};
|
|
122
|
-
position: relative;
|
|
123
164
|
`;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
});
|
|
132
|
-
|
|
165
|
+
var Button = import_react.default.forwardRef(
|
|
166
|
+
({
|
|
167
|
+
variant = "primary",
|
|
168
|
+
size = "md",
|
|
169
|
+
loading = false,
|
|
170
|
+
...props
|
|
171
|
+
}, ref) => {
|
|
172
|
+
const { colors } = (0, import_design_provider.useDesign)();
|
|
173
|
+
const { dark, light } = (0, import_react.useMemo)(() => {
|
|
174
|
+
return {
|
|
175
|
+
dark: getColors({ propsColor: props.color, colors: colors.dark, variant }),
|
|
176
|
+
light: getColors({ propsColor: props.color, colors: colors.light, variant })
|
|
177
|
+
};
|
|
178
|
+
}, [props.color, colors, variant]);
|
|
179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
180
|
+
StyledButton,
|
|
181
|
+
{
|
|
182
|
+
ref,
|
|
183
|
+
$size: size,
|
|
184
|
+
$loading: loading,
|
|
185
|
+
$colors: { dark, light },
|
|
186
|
+
...props,
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", visibility: loading ? "visible" : "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_loading_indicator.default, { color: { light: light.textColor, dark: dark.textColor } }) }),
|
|
189
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { visibility: loading ? "hidden" : "visible" }, children: props.children })
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
Button.displayName = "Button";
|
|
196
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
197
|
+
0 && (module.exports = {
|
|
198
|
+
Button
|
|
133
199
|
});
|
|
134
|
-
Button.displayName = 'Button';
|
|
135
|
-
export { Button, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { Card, CardContent, CardFooter, CardHeader };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
2
3
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
4
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
6
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
export { Card, CardContent, CardFooter, CardHeader };
|
|
@@ -1,37 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/components-core/card.tsx
|
|
33
|
+
var card_exports = {};
|
|
34
|
+
__export(card_exports, {
|
|
35
|
+
Card: () => Card,
|
|
36
|
+
CardContent: () => CardContent,
|
|
37
|
+
CardFooter: () => CardFooter,
|
|
38
|
+
CardHeader: () => CardHeader
|
|
9
39
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
CardFooter.displayName = "CardFooter";
|
|
17
|
-
const StyledCard = styled.div `
|
|
40
|
+
module.exports = __toCommonJS(card_exports);
|
|
41
|
+
var React = __toESM(require("react"));
|
|
42
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
43
|
+
var import__ = require("..");
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var StyledCard = import_styled_components.default.div`
|
|
18
46
|
border-radius: 0.5rem;
|
|
19
|
-
border: 1px solid ${props => props.borderColor};
|
|
20
|
-
background-color: ${props => props.backgroundColor};
|
|
21
47
|
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
|
|
22
48
|
padding: 1.5rem;
|
|
49
|
+
|
|
50
|
+
border: 1px solid ${(props) => props.$colors.light.neutralColor};
|
|
51
|
+
background-color: ${(props) => props.$colors.light.backgroundColor};
|
|
52
|
+
|
|
53
|
+
html[data-theme='dark'] & {
|
|
54
|
+
border-color: ${(props) => props.$colors.dark.neutralColor};
|
|
55
|
+
background-color: ${(props) => props.$colors.dark.backgroundColor};
|
|
56
|
+
}
|
|
23
57
|
`;
|
|
24
|
-
|
|
58
|
+
var StyledCardHeader = import_styled_components.default.div`
|
|
25
59
|
display: flex;
|
|
26
60
|
flex-direction: column;
|
|
27
61
|
gap: 0.375rem;
|
|
28
62
|
margin-bottom: 1.5rem;
|
|
29
63
|
`;
|
|
30
|
-
|
|
64
|
+
var StyledCardContent = import_styled_components.default.div`
|
|
31
65
|
`;
|
|
32
|
-
|
|
66
|
+
var StyledCardFooter = import_styled_components.default.div`
|
|
33
67
|
display: flex;
|
|
34
68
|
align-items: center;
|
|
35
69
|
margin-top: 1.5rem;
|
|
36
70
|
`;
|
|
37
|
-
|
|
71
|
+
var Card = React.forwardRef((props, ref) => {
|
|
72
|
+
const { colors } = (0, import__.useDesign)();
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCard, { ref, ...props, $colors: colors });
|
|
74
|
+
});
|
|
75
|
+
Card.displayName = "Card";
|
|
76
|
+
var CardHeader = React.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCardHeader, { ref, ...props }));
|
|
77
|
+
CardHeader.displayName = "CardHeader";
|
|
78
|
+
var CardContent = React.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCardContent, { ref, ...props }));
|
|
79
|
+
CardContent.displayName = "CardContent";
|
|
80
|
+
var CardFooter = React.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCardFooter, { ref, ...props }));
|
|
81
|
+
CardFooter.displayName = "CardFooter";
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
Card,
|
|
85
|
+
CardContent,
|
|
86
|
+
CardFooter,
|
|
87
|
+
CardHeader
|
|
88
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as _radix_ui_react_collapsible from '@radix-ui/react-collapsible';
|
|
3
|
+
|
|
4
|
+
declare const Collapsible: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as _radix_ui_react_collapsible from '@radix-ui/react-collapsible';
|
|
3
|
+
|
|
4
|
+
declare const Collapsible: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/components-core/collapsible.tsx
|
|
33
|
+
var collapsible_exports = {};
|
|
34
|
+
__export(collapsible_exports, {
|
|
35
|
+
Collapsible: () => Collapsible,
|
|
36
|
+
CollapsibleContent: () => CollapsibleContent2,
|
|
37
|
+
CollapsibleTrigger: () => CollapsibleTrigger2
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(collapsible_exports);
|
|
40
|
+
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
41
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
42
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
43
|
+
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
Collapsible,
|
|
47
|
+
CollapsibleContent,
|
|
48
|
+
CollapsibleTrigger
|
|
49
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
type ContainerProps = {
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
5
|
+
} & Omit<React.HTMLProps<HTMLDivElement>, 'size'>;
|
|
6
|
+
declare function Container({ size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Container };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
2
3
|
type ContainerProps = {
|
|
3
4
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
4
5
|
} & Omit<React.HTMLProps<HTMLDivElement>, 'size'>;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
declare function Container({ size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Container };
|
|
@@ -1,19 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
"use client";
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// src/components-core/container.tsx
|
|
33
|
+
var container_exports = {};
|
|
34
|
+
__export(container_exports, {
|
|
35
|
+
Container: () => Container
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(container_exports);
|
|
38
|
+
var import_design_provider = require("../providers/design-provider");
|
|
39
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
|
+
var OuterContainer = import_styled_components.default.div`
|
|
6
42
|
display: flex;
|
|
7
43
|
justify-content: center;
|
|
8
44
|
width: 100%;
|
|
9
45
|
`;
|
|
10
|
-
|
|
46
|
+
var InnerContainer = import_styled_components.default.div`
|
|
11
47
|
width: 100%;
|
|
12
|
-
@media (min-width: ${props => props.$breakpoint}px) {
|
|
13
|
-
width: ${props => props.$breakpoint}px;
|
|
48
|
+
@media (min-width: ${(props) => props.$breakpoint}px) {
|
|
49
|
+
width: ${(props) => props.$breakpoint}px;
|
|
14
50
|
}
|
|
15
51
|
`;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
52
|
+
function Container({
|
|
53
|
+
size = "md",
|
|
54
|
+
...props
|
|
55
|
+
}) {
|
|
56
|
+
const { breakpoints } = (0, import_design_provider.useDesign)();
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OuterContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
|
+
InnerContainer,
|
|
59
|
+
{
|
|
60
|
+
$breakpoint: typeof size === "number" ? size : breakpoints[size],
|
|
61
|
+
...props,
|
|
62
|
+
children: props.children
|
|
63
|
+
}
|
|
64
|
+
) });
|
|
19
65
|
}
|
|
66
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
+
0 && (module.exports = {
|
|
68
|
+
Container
|
|
69
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as _radix_ui_react_dropdown_menu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
|
|
4
|
+
declare const DropdownMenu: React.FC<_radix_ui_react_dropdown_menu.DropdownMenuProps>;
|
|
5
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<_radix_ui_react_dropdown_menu.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<_radix_ui_react_dropdown_menu.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<_radix_ui_react_dropdown_menu.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
inset?: boolean | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<_radix_ui_react_dropdown_menu.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
inset?: boolean | undefined;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<_radix_ui_react_dropdown_menu.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
|
|
15
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger };
|