@assistant-ui/react 0.7.90 → 0.8.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/cloud/auiV0.js.map +1 -1
- package/dist/cloud/auiV0.mjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +0 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +0 -3
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +0 -2
- package/dist/internal.mjs.map +1 -1
- package/dist/model-context/ModelContextTypes.d.ts +11 -0
- package/dist/model-context/ModelContextTypes.d.ts.map +1 -1
- package/dist/model-context/ModelContextTypes.js.map +1 -1
- package/dist/model-context/ModelContextTypes.mjs.map +1 -1
- package/dist/model-context/makeAssistantVisible.d.ts.map +1 -1
- package/dist/model-context/makeAssistantVisible.js +7 -3
- package/dist/model-context/makeAssistantVisible.js.map +1 -1
- package/dist/model-context/makeAssistantVisible.mjs +7 -3
- package/dist/model-context/makeAssistantVisible.mjs.map +1 -1
- package/dist/primitives/contentPart/index.d.ts +0 -1
- package/dist/primitives/contentPart/index.d.ts.map +1 -1
- package/dist/primitives/contentPart/index.js +0 -3
- package/dist/primitives/contentPart/index.js.map +1 -1
- package/dist/primitives/contentPart/index.mjs +0 -2
- package/dist/primitives/contentPart/index.mjs.map +1 -1
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +0 -3
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/index.mjs +0 -2
- package/dist/primitives/index.mjs.map +1 -1
- package/dist/primitives/message/MessageContent.d.ts +1 -2
- package/dist/primitives/message/MessageContent.d.ts.map +1 -1
- package/dist/primitives/message/MessageContent.js +2 -7
- package/dist/primitives/message/MessageContent.js.map +1 -1
- package/dist/primitives/message/MessageContent.mjs +2 -7
- package/dist/primitives/message/MessageContent.mjs.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js +1 -3
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs +1 -3
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.d.ts.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.js +1 -6
- package/dist/runtimes/edge/converters/toCoreMessages.js.map +1 -1
- package/dist/runtimes/edge/converters/toCoreMessages.mjs +1 -6
- package/dist/runtimes/edge/converters/toCoreMessages.mjs.map +1 -1
- package/dist/runtimes/edge/converters/toLanguageModelMessages.js.map +1 -1
- package/dist/runtimes/edge/converters/toLanguageModelMessages.mjs.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.d.ts +2 -2
- package/dist/runtimes/external-store/ThreadMessageLike.d.ts.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.js +0 -3
- package/dist/runtimes/external-store/ThreadMessageLike.js.map +1 -1
- package/dist/runtimes/external-store/ThreadMessageLike.mjs +0 -3
- package/dist/runtimes/external-store/ThreadMessageLike.mjs.map +1 -1
- package/dist/types/AssistantTypes.d.ts +3 -7
- package/dist/types/AssistantTypes.d.ts.map +1 -1
- package/dist/types/AssistantTypes.js.map +1 -1
- package/dist/types/ContentPartComponentTypes.d.ts +1 -3
- package/dist/types/ContentPartComponentTypes.d.ts.map +1 -1
- package/dist/types/ContentPartComponentTypes.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -21
- package/src/cloud/auiV0.ts +1 -1
- package/src/index.ts +0 -1
- package/src/internal.ts +0 -1
- package/src/model-context/ModelContextTypes.ts +19 -0
- package/src/model-context/makeAssistantVisible.tsx +9 -3
- package/src/primitives/contentPart/index.ts +0 -1
- package/src/primitives/index.ts +0 -1
- package/src/primitives/message/MessageContent.tsx +0 -9
- package/src/runtimes/composer/DefaultEditComposerRuntimeCore.tsx +1 -3
- package/src/runtimes/edge/converters/toCoreMessages.ts +11 -14
- package/src/runtimes/edge/converters/toLanguageModelMessages.ts +2 -2
- package/src/runtimes/external-store/ThreadMessageLike.tsx +0 -6
- package/src/types/AssistantTypes.ts +4 -9
- package/src/types/ContentPartComponentTypes.tsx +0 -4
- package/src/types/index.ts +0 -2
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts +0 -9
- package/dist/primitives/contentPart/ContentPartDisplay.d.ts.map +0 -1
- package/dist/primitives/contentPart/ContentPartDisplay.js +0 -37
- package/dist/primitives/contentPart/ContentPartDisplay.js.map +0 -1
- package/dist/primitives/contentPart/ContentPartDisplay.mjs +0 -13
- package/dist/primitives/contentPart/ContentPartDisplay.mjs.map +0 -1
- package/dist/primitives/contentPart/useContentPartDisplay.d.ts +0 -8
- package/dist/primitives/contentPart/useContentPartDisplay.d.ts.map +0 -1
- package/dist/primitives/contentPart/useContentPartDisplay.js +0 -42
- package/dist/primitives/contentPart/useContentPartDisplay.js.map +0 -1
- package/dist/primitives/contentPart/useContentPartDisplay.mjs +0 -18
- package/dist/primitives/contentPart/useContentPartDisplay.mjs.map +0 -1
- package/dist/styles/index.css +0 -1261
- package/dist/styles/index.css.map +0 -1
- package/dist/styles/modal.css +0 -143
- package/dist/styles/modal.css.map +0 -1
- package/dist/styles/tailwindcss/base-components.css +0 -69
- package/dist/styles/tailwindcss/base-components.css.json +0 -48
- package/dist/styles/tailwindcss/modal.css +0 -29
- package/dist/styles/tailwindcss/modal.css.json +0 -26
- package/dist/styles/tailwindcss/thread.css +0 -262
- package/dist/styles/tailwindcss/thread.css.json +0 -183
- package/dist/styles/themes/default.css +0 -64
- package/dist/styles/themes/default.css.json +0 -46
- package/dist/styles/themes/shadcn-extras.css +0 -4
- package/dist/styles/themes/shadcn-extras.css.json +0 -5
- package/dist/tailwindcss/index.d.ts +0 -49
- package/dist/tailwindcss/index.d.ts.map +0 -1
- package/dist/tailwindcss/index.js +0 -189
- package/dist/tailwindcss/index.js.map +0 -1
- package/dist/tailwindcss/index.mjs +0 -181
- package/dist/tailwindcss/index.mjs.map +0 -1
- package/dist/ui/assistant-action-bar.d.ts +0 -24
- package/dist/ui/assistant-action-bar.d.ts.map +0 -1
- package/dist/ui/assistant-action-bar.js +0 -193
- package/dist/ui/assistant-action-bar.js.map +0 -1
- package/dist/ui/assistant-action-bar.mjs +0 -181
- package/dist/ui/assistant-action-bar.mjs.map +0 -1
- package/dist/ui/assistant-message.d.ts +0 -13
- package/dist/ui/assistant-message.d.ts.map +0 -1
- package/dist/ui/assistant-message.js +0 -107
- package/dist/ui/assistant-message.js.map +0 -1
- package/dist/ui/assistant-message.mjs +0 -77
- package/dist/ui/assistant-message.mjs.map +0 -1
- package/dist/ui/assistant-modal.d.ts +0 -23
- package/dist/ui/assistant-modal.d.ts.map +0 -1
- package/dist/ui/assistant-modal.js +0 -126
- package/dist/ui/assistant-modal.js.map +0 -1
- package/dist/ui/assistant-modal.mjs +0 -99
- package/dist/ui/assistant-modal.mjs.map +0 -1
- package/dist/ui/attachment-ui.d.ts +0 -12
- package/dist/ui/attachment-ui.d.ts.map +0 -1
- package/dist/ui/attachment-ui.js +0 -170
- package/dist/ui/attachment-ui.js.map +0 -1
- package/dist/ui/attachment-ui.mjs +0 -160
- package/dist/ui/attachment-ui.mjs.map +0 -1
- package/dist/ui/base/CircleStopIcon.d.ts +0 -3
- package/dist/ui/base/CircleStopIcon.d.ts.map +0 -1
- package/dist/ui/base/CircleStopIcon.js +0 -45
- package/dist/ui/base/CircleStopIcon.js.map +0 -1
- package/dist/ui/base/CircleStopIcon.mjs +0 -20
- package/dist/ui/base/CircleStopIcon.mjs.map +0 -1
- package/dist/ui/base/avatar.d.ts +0 -12
- package/dist/ui/base/avatar.d.ts.map +0 -1
- package/dist/ui/base/avatar.js +0 -69
- package/dist/ui/base/avatar.js.map +0 -1
- package/dist/ui/base/avatar.mjs +0 -31
- package/dist/ui/base/avatar.mjs.map +0 -1
- package/dist/ui/base/button.d.ts +0 -16
- package/dist/ui/base/button.d.ts.map +0 -1
- package/dist/ui/base/button.js +0 -66
- package/dist/ui/base/button.js.map +0 -1
- package/dist/ui/base/button.mjs +0 -40
- package/dist/ui/base/button.mjs.map +0 -1
- package/dist/ui/base/dialog.d.ts +0 -9
- package/dist/ui/base/dialog.d.ts.map +0 -1
- package/dist/ui/base/dialog.js +0 -80
- package/dist/ui/base/dialog.js.map +0 -1
- package/dist/ui/base/dialog.mjs +0 -40
- package/dist/ui/base/dialog.mjs.map +0 -1
- package/dist/ui/base/index.d.ts +0 -6
- package/dist/ui/base/index.d.ts.map +0 -1
- package/dist/ui/base/index.js +0 -55
- package/dist/ui/base/index.js.map +0 -1
- package/dist/ui/base/index.mjs +0 -25
- package/dist/ui/base/index.mjs.map +0 -1
- package/dist/ui/base/tooltip-icon-button.d.ts +0 -17
- package/dist/ui/base/tooltip-icon-button.d.ts.map +0 -1
- package/dist/ui/base/tooltip-icon-button.js +0 -44
- package/dist/ui/base/tooltip-icon-button.js.map +0 -1
- package/dist/ui/base/tooltip-icon-button.mjs +0 -19
- package/dist/ui/base/tooltip-icon-button.mjs.map +0 -1
- package/dist/ui/base/tooltip.d.ts +0 -6
- package/dist/ui/base/tooltip.d.ts.map +0 -1
- package/dist/ui/base/tooltip.js +0 -57
- package/dist/ui/base/tooltip.js.map +0 -1
- package/dist/ui/base/tooltip.mjs +0 -20
- package/dist/ui/base/tooltip.mjs.map +0 -1
- package/dist/ui/branch-picker.d.ts +0 -15
- package/dist/ui/branch-picker.d.ts.map +0 -1
- package/dist/ui/branch-picker.js +0 -89
- package/dist/ui/branch-picker.js.map +0 -1
- package/dist/ui/branch-picker.mjs +0 -69
- package/dist/ui/branch-picker.mjs.map +0 -1
- package/dist/ui/composer.d.ts +0 -25
- package/dist/ui/composer.d.ts.map +0 -1
- package/dist/ui/composer.js +0 -168
- package/dist/ui/composer.js.map +0 -1
- package/dist/ui/composer.mjs +0 -138
- package/dist/ui/composer.mjs.map +0 -1
- package/dist/ui/content-part.d.ts +0 -7
- package/dist/ui/content-part.d.ts.map +0 -1
- package/dist/ui/content-part.js +0 -61
- package/dist/ui/content-part.js.map +0 -1
- package/dist/ui/content-part.mjs +0 -27
- package/dist/ui/content-part.mjs.map +0 -1
- package/dist/ui/edit-composer.d.ts +0 -22
- package/dist/ui/edit-composer.d.ts.map +0 -1
- package/dist/ui/edit-composer.js +0 -77
- package/dist/ui/edit-composer.js.map +0 -1
- package/dist/ui/edit-composer.mjs +0 -57
- package/dist/ui/edit-composer.mjs.map +0 -1
- package/dist/ui/index.d.ts +0 -75
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -86
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/index.mjs +0 -38
- package/dist/ui/index.mjs.map +0 -1
- package/dist/ui/thread-config.d.ts +0 -162
- package/dist/ui/thread-config.d.ts.map +0 -1
- package/dist/ui/thread-config.js +0 -63
- package/dist/ui/thread-config.js.map +0 -1
- package/dist/ui/thread-config.mjs +0 -41
- package/dist/ui/thread-config.mjs.map +0 -1
- package/dist/ui/thread-list-item.d.ts +0 -13
- package/dist/ui/thread-list-item.d.ts.map +0 -1
- package/dist/ui/thread-list-item.js +0 -94
- package/dist/ui/thread-list-item.js.map +0 -1
- package/dist/ui/thread-list-item.mjs +0 -64
- package/dist/ui/thread-list-item.mjs.map +0 -1
- package/dist/ui/thread-list.d.ts +0 -27
- package/dist/ui/thread-list.d.ts.map +0 -1
- package/dist/ui/thread-list.js +0 -91
- package/dist/ui/thread-list.js.map +0 -1
- package/dist/ui/thread-list.mjs +0 -61
- package/dist/ui/thread-list.mjs.map +0 -1
- package/dist/ui/thread-welcome.d.ts +0 -21
- package/dist/ui/thread-welcome.d.ts.map +0 -1
- package/dist/ui/thread-welcome.js +0 -101
- package/dist/ui/thread-welcome.js.map +0 -1
- package/dist/ui/thread-welcome.mjs +0 -81
- package/dist/ui/thread-welcome.mjs.map +0 -1
- package/dist/ui/thread.d.ts +0 -30
- package/dist/ui/thread.d.ts.map +0 -1
- package/dist/ui/thread.js +0 -152
- package/dist/ui/thread.js.map +0 -1
- package/dist/ui/thread.mjs +0 -125
- package/dist/ui/thread.mjs.map +0 -1
- package/dist/ui/user-action-bar.d.ts +0 -16
- package/dist/ui/user-action-bar.d.ts.map +0 -1
- package/dist/ui/user-action-bar.js +0 -63
- package/dist/ui/user-action-bar.js.map +0 -1
- package/dist/ui/user-action-bar.mjs +0 -43
- package/dist/ui/user-action-bar.mjs.map +0 -1
- package/dist/ui/user-message.d.ts +0 -13
- package/dist/ui/user-message.d.ts.map +0 -1
- package/dist/ui/user-message.js +0 -96
- package/dist/ui/user-message.js.map +0 -1
- package/dist/ui/user-message.mjs +0 -65
- package/dist/ui/user-message.mjs.map +0 -1
- package/dist/ui/utils/withDefaults.d.ts +0 -7
- package/dist/ui/utils/withDefaults.d.ts.map +0 -1
- package/dist/ui/utils/withDefaults.js +0 -66
- package/dist/ui/utils/withDefaults.js.map +0 -1
- package/dist/ui/utils/withDefaults.mjs +0 -30
- package/dist/ui/utils/withDefaults.mjs.map +0 -1
- package/src/primitives/contentPart/ContentPartDisplay.tsx +0 -20
- package/src/primitives/contentPart/useContentPartDisplay.tsx +0 -21
- package/src/styles/base.css +0 -37
- package/src/styles/index.css +0 -4
- package/src/styles/modal.css +0 -1
- package/src/styles/tailwindcss/base-components.css +0 -69
- package/src/styles/tailwindcss/modal.css +0 -29
- package/src/styles/tailwindcss/thread.css +0 -262
- package/src/styles/themes/default.css +0 -64
- package/src/styles/themes/shadcn-extras.css +0 -4
- package/src/tailwindcss/index.ts +0 -149
- package/src/ui/assistant-action-bar.tsx +0 -301
- package/src/ui/assistant-message.tsx +0 -96
- package/src/ui/assistant-modal.tsx +0 -146
- package/src/ui/attachment-ui.tsx +0 -211
- package/src/ui/base/CircleStopIcon.tsx +0 -17
- package/src/ui/base/avatar.tsx +0 -41
- package/src/ui/base/button.tsx +0 -42
- package/src/ui/base/dialog.tsx +0 -113
- package/src/ui/base/index.ts +0 -15
- package/src/ui/base/tooltip-icon-button.tsx +0 -29
- package/src/ui/base/tooltip.tsx +0 -22
- package/src/ui/branch-picker.tsx +0 -117
- package/src/ui/composer.tsx +0 -210
- package/src/ui/content-part.tsx +0 -23
- package/src/ui/edit-composer.tsx +0 -98
- package/src/ui/index.ts +0 -98
- package/src/ui/thread-config.tsx +0 -246
- package/src/ui/thread-list-item.tsx +0 -91
- package/src/ui/thread-list.tsx +0 -78
- package/src/ui/thread-welcome.tsx +0 -140
- package/src/ui/thread.tsx +0 -176
- package/src/ui/user-action-bar.tsx +0 -66
- package/src/ui/user-message.tsx +0 -92
- package/src/ui/utils/withDefaults.tsx +0 -35
- package/tailwindcss/README.md +0 -1
- package/tailwindcss/package-lock.json +0 -6
- package/tailwindcss/package.json +0 -5
package/dist/ui/base/avatar.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/ui/base/avatar.tsx
|
|
31
|
-
var avatar_exports = {};
|
|
32
|
-
__export(avatar_exports, {
|
|
33
|
-
Avatar: () => Avatar,
|
|
34
|
-
AvatarFallback: () => AvatarFallback,
|
|
35
|
-
AvatarImage: () => AvatarImage,
|
|
36
|
-
AvatarRoot: () => AvatarRoot
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(avatar_exports);
|
|
39
|
-
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
40
|
-
var import_withDefaults = require("../utils/withDefaults.js");
|
|
41
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
-
var Avatar = ({ src, alt, fallback }) => {
|
|
43
|
-
if (src == null && fallback == null) return null;
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AvatarRoot, { children: [
|
|
45
|
-
src != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarImage, { src, alt }),
|
|
46
|
-
fallback != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarFallback, { children: fallback })
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
49
|
-
Avatar.displayName = "Avatar";
|
|
50
|
-
var AvatarRoot = (0, import_withDefaults.withDefaults)(AvatarPrimitive.Root, {
|
|
51
|
-
className: "aui-avatar-root"
|
|
52
|
-
});
|
|
53
|
-
AvatarRoot.displayName = "AvatarRoot";
|
|
54
|
-
var AvatarImage = (0, import_withDefaults.withDefaults)(AvatarPrimitive.Image, {
|
|
55
|
-
className: "aui-avatar-image"
|
|
56
|
-
});
|
|
57
|
-
AvatarImage.displayName = "AvatarImage";
|
|
58
|
-
var AvatarFallback = (0, import_withDefaults.withDefaults)(AvatarPrimitive.Fallback, {
|
|
59
|
-
className: "aui-avatar-fallback"
|
|
60
|
-
});
|
|
61
|
-
AvatarFallback.displayName = "AvatarFallback";
|
|
62
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
-
0 && (module.exports = {
|
|
64
|
-
Avatar,
|
|
65
|
-
AvatarFallback,
|
|
66
|
-
AvatarImage,
|
|
67
|
-
AvatarRoot
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/avatar.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { withDefaults } from \"../utils/withDefaults\";\n\nexport type AvatarProps = {\n src?: string | undefined;\n alt?: string | undefined;\n fallback?: string | undefined;\n};\n\nexport const Avatar: FC<AvatarProps> = ({ src, alt, fallback }) => {\n if (src == null && fallback == null) return null;\n\n return (\n <AvatarRoot>\n {src != null && <AvatarImage src={src} alt={alt} />}\n {fallback != null && <AvatarFallback>{fallback}</AvatarFallback>}\n </AvatarRoot>\n );\n};\n\nAvatar.displayName = \"Avatar\";\n\nexport const AvatarRoot = withDefaults(AvatarPrimitive.Root, {\n className: \"aui-avatar-root\",\n});\n\nAvatarRoot.displayName = \"AvatarRoot\";\n\nexport const AvatarImage = withDefaults(AvatarPrimitive.Image, {\n className: \"aui-avatar-image\",\n});\n\nAvatarImage.displayName = \"AvatarImage\";\n\nexport const AvatarFallback = withDefaults(AvatarPrimitive.Fallback, {\n className: \"aui-avatar-fallback\",\n});\n\nAvatarFallback.displayName = \"AvatarFallback\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAiC;AAEjC,0BAA6B;AAYzB;AAJG,IAAM,SAA0B,CAAC,EAAE,KAAK,KAAK,SAAS,MAAM;AACjE,MAAI,OAAO,QAAQ,YAAY,KAAM,QAAO;AAE5C,SACE,6CAAC,cACE;AAAA,WAAO,QAAQ,4CAAC,eAAY,KAAU,KAAU;AAAA,IAChD,YAAY,QAAQ,4CAAC,kBAAgB,oBAAS;AAAA,KACjD;AAEJ;AAEA,OAAO,cAAc;AAEd,IAAM,iBAAa,kCAA6B,sBAAM;AAAA,EAC3D,WAAW;AACb,CAAC;AAED,WAAW,cAAc;AAElB,IAAM,kBAAc,kCAA6B,uBAAO;AAAA,EAC7D,WAAW;AACb,CAAC;AAED,YAAY,cAAc;AAEnB,IAAM,qBAAiB,kCAA6B,0BAAU;AAAA,EACnE,WAAW;AACb,CAAC;AAED,eAAe,cAAc;","names":[]}
|
package/dist/ui/base/avatar.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// src/ui/base/avatar.tsx
|
|
2
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
import { withDefaults } from "../utils/withDefaults.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
var Avatar = ({ src, alt, fallback }) => {
|
|
6
|
-
if (src == null && fallback == null) return null;
|
|
7
|
-
return /* @__PURE__ */ jsxs(AvatarRoot, { children: [
|
|
8
|
-
src != null && /* @__PURE__ */ jsx(AvatarImage, { src, alt }),
|
|
9
|
-
fallback != null && /* @__PURE__ */ jsx(AvatarFallback, { children: fallback })
|
|
10
|
-
] });
|
|
11
|
-
};
|
|
12
|
-
Avatar.displayName = "Avatar";
|
|
13
|
-
var AvatarRoot = withDefaults(AvatarPrimitive.Root, {
|
|
14
|
-
className: "aui-avatar-root"
|
|
15
|
-
});
|
|
16
|
-
AvatarRoot.displayName = "AvatarRoot";
|
|
17
|
-
var AvatarImage = withDefaults(AvatarPrimitive.Image, {
|
|
18
|
-
className: "aui-avatar-image"
|
|
19
|
-
});
|
|
20
|
-
AvatarImage.displayName = "AvatarImage";
|
|
21
|
-
var AvatarFallback = withDefaults(AvatarPrimitive.Fallback, {
|
|
22
|
-
className: "aui-avatar-fallback"
|
|
23
|
-
});
|
|
24
|
-
AvatarFallback.displayName = "AvatarFallback";
|
|
25
|
-
export {
|
|
26
|
-
Avatar,
|
|
27
|
-
AvatarFallback,
|
|
28
|
-
AvatarImage,
|
|
29
|
-
AvatarRoot
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=avatar.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/avatar.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { withDefaults } from \"../utils/withDefaults\";\n\nexport type AvatarProps = {\n src?: string | undefined;\n alt?: string | undefined;\n fallback?: string | undefined;\n};\n\nexport const Avatar: FC<AvatarProps> = ({ src, alt, fallback }) => {\n if (src == null && fallback == null) return null;\n\n return (\n <AvatarRoot>\n {src != null && <AvatarImage src={src} alt={alt} />}\n {fallback != null && <AvatarFallback>{fallback}</AvatarFallback>}\n </AvatarRoot>\n );\n};\n\nAvatar.displayName = \"Avatar\";\n\nexport const AvatarRoot = withDefaults(AvatarPrimitive.Root, {\n className: \"aui-avatar-root\",\n});\n\nAvatarRoot.displayName = \"AvatarRoot\";\n\nexport const AvatarImage = withDefaults(AvatarPrimitive.Image, {\n className: \"aui-avatar-image\",\n});\n\nAvatarImage.displayName = \"AvatarImage\";\n\nexport const AvatarFallback = withDefaults(AvatarPrimitive.Fallback, {\n className: \"aui-avatar-fallback\",\n});\n\nAvatarFallback.displayName = \"AvatarFallback\";\n"],"mappings":";AACA,YAAY,qBAAqB;AAEjC,SAAS,oBAAoB;AAYzB,SACkB,KADlB;AAJG,IAAM,SAA0B,CAAC,EAAE,KAAK,KAAK,SAAS,MAAM;AACjE,MAAI,OAAO,QAAQ,YAAY,KAAM,QAAO;AAE5C,SACE,qBAAC,cACE;AAAA,WAAO,QAAQ,oBAAC,eAAY,KAAU,KAAU;AAAA,IAChD,YAAY,QAAQ,oBAAC,kBAAgB,oBAAS;AAAA,KACjD;AAEJ;AAEA,OAAO,cAAc;AAEd,IAAM,aAAa,aAA6B,sBAAM;AAAA,EAC3D,WAAW;AACb,CAAC;AAED,WAAW,cAAc;AAElB,IAAM,cAAc,aAA6B,uBAAO;AAAA,EAC7D,WAAW;AACb,CAAC;AAED,YAAY,cAAc;AAEnB,IAAM,iBAAiB,aAA6B,0BAAU;AAAA,EACnE,WAAW;AACb,CAAC;AAED,eAAe,cAAc;","names":[]}
|
package/dist/ui/base/button.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import { Primitive } from "@radix-ui/react-primitive";
|
|
3
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
4
|
-
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
6
|
-
size?: "default" | "icon" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
export type ButtonProps = ComponentPropsWithoutRef<typeof Primitive.button> & VariantProps<typeof buttonVariants>;
|
|
9
|
-
declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
10
|
-
asChild?: boolean;
|
|
11
|
-
}, "ref"> & VariantProps<(props?: ({
|
|
12
|
-
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
13
|
-
size?: "default" | "icon" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
-
export { Button, buttonVariants };
|
|
16
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/ui/base/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAA4B,MAAM,OAAO,CAAC;AAE3E,QAAA,MAAM,cAAc;;;8EAgBlB,CAAC;AAIH,MAAM,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,GACzE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtC,QAAA,MAAM,MAAM;;;;;mIAUX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/ui/base/button.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/ui/base/button.tsx
|
|
21
|
-
var button_exports = {};
|
|
22
|
-
__export(button_exports, {
|
|
23
|
-
Button: () => Button,
|
|
24
|
-
buttonVariants: () => buttonVariants
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(button_exports);
|
|
27
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
28
|
-
var import_react_primitive = require("@radix-ui/react-primitive");
|
|
29
|
-
var import_react = require("react");
|
|
30
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var buttonVariants = (0, import_class_variance_authority.cva)("aui-button", {
|
|
32
|
-
variants: {
|
|
33
|
-
variant: {
|
|
34
|
-
default: "aui-button-primary",
|
|
35
|
-
outline: "aui-button-outline",
|
|
36
|
-
ghost: "aui-button-ghost"
|
|
37
|
-
},
|
|
38
|
-
size: {
|
|
39
|
-
default: "aui-button-medium",
|
|
40
|
-
icon: "aui-button-icon"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
defaultVariants: {
|
|
44
|
-
variant: "default",
|
|
45
|
-
size: "default"
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
var Button = (0, import_react.forwardRef)(
|
|
49
|
-
({ className, variant, size, ...props }, ref) => {
|
|
50
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
-
import_react_primitive.Primitive.button,
|
|
52
|
-
{
|
|
53
|
-
className: buttonVariants({ variant, size, className }),
|
|
54
|
-
...props,
|
|
55
|
-
ref
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
Button.displayName = "Button";
|
|
61
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
-
0 && (module.exports = {
|
|
63
|
-
Button,
|
|
64
|
-
buttonVariants
|
|
65
|
-
});
|
|
66
|
-
//# sourceMappingURL=button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/button.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { ComponentPropsWithoutRef, ComponentRef, forwardRef } from \"react\";\n\nconst buttonVariants = cva(\"aui-button\", {\n variants: {\n variant: {\n default: \"aui-button-primary\",\n outline: \"aui-button-outline\",\n ghost: \"aui-button-ghost\",\n },\n size: {\n default: \"aui-button-medium\",\n icon: \"aui-button-icon\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n});\n\ntype ButtonElement = ComponentRef<typeof Primitive.button>;\n\nexport type ButtonProps = ComponentPropsWithoutRef<typeof Primitive.button> &\n VariantProps<typeof buttonVariants>;\n\nconst Button = forwardRef<ButtonElement, ButtonProps>(\n ({ className, variant, size, ...props }, ref) => {\n return (\n <Primitive.button\n className={buttonVariants({ variant, size, className })}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAAuC;AACvC,6BAA0B;AAC1B,mBAAmE;AA4B7D;AA1BN,IAAM,qBAAiB,qCAAI,cAAc;AAAA,EACvC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,IACT;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACF,CAAC;AAOD,IAAM,aAAS;AAAA,EACb,CAAC,EAAE,WAAW,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC/C,WACE;AAAA,MAAC,iCAAU;AAAA,MAAV;AAAA,QACC,WAAW,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC;AAAA,QACrD,GAAG;AAAA,QACJ;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
|
package/dist/ui/base/button.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// src/ui/base/button.tsx
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
|
-
import { Primitive } from "@radix-ui/react-primitive";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var buttonVariants = cva("aui-button", {
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "aui-button-primary",
|
|
10
|
-
outline: "aui-button-outline",
|
|
11
|
-
ghost: "aui-button-ghost"
|
|
12
|
-
},
|
|
13
|
-
size: {
|
|
14
|
-
default: "aui-button-medium",
|
|
15
|
-
icon: "aui-button-icon"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
variant: "default",
|
|
20
|
-
size: "default"
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
var Button = forwardRef(
|
|
24
|
-
({ className, variant, size, ...props }, ref) => {
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
Primitive.button,
|
|
27
|
-
{
|
|
28
|
-
className: buttonVariants({ variant, size, className }),
|
|
29
|
-
...props,
|
|
30
|
-
ref
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
Button.displayName = "Button";
|
|
36
|
-
export {
|
|
37
|
-
Button,
|
|
38
|
-
buttonVariants
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=button.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/button.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { ComponentPropsWithoutRef, ComponentRef, forwardRef } from \"react\";\n\nconst buttonVariants = cva(\"aui-button\", {\n variants: {\n variant: {\n default: \"aui-button-primary\",\n outline: \"aui-button-outline\",\n ghost: \"aui-button-ghost\",\n },\n size: {\n default: \"aui-button-medium\",\n icon: \"aui-button-icon\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n});\n\ntype ButtonElement = ComponentRef<typeof Primitive.button>;\n\nexport type ButtonProps = ComponentPropsWithoutRef<typeof Primitive.button> &\n VariantProps<typeof buttonVariants>;\n\nconst Button = forwardRef<ButtonElement, ButtonProps>(\n ({ className, variant, size, ...props }, ref) => {\n return (\n <Primitive.button\n className={buttonVariants({ variant, size, className })}\n {...props}\n ref={ref}\n />\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n"],"mappings":";AAAA,SAAS,WAA8B;AACvC,SAAS,iBAAiB;AAC1B,SAAiD,kBAAkB;AA4B7D;AA1BN,IAAM,iBAAiB,IAAI,cAAc;AAAA,EACvC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,IACT;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AACF,CAAC;AAOD,IAAM,SAAS;AAAA,EACb,CAAC,EAAE,WAAW,SAAS,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC/C,WACE;AAAA,MAAC,UAAU;AAAA,MAAV;AAAA,QACC,WAAW,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC;AAAA,QACrD,GAAG;AAAA,QACJ;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
|
package/dist/ui/base/dialog.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
-
declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
|
|
3
|
-
declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
declare const DialogPortal: import("react").FC<DialogPrimitive.DialogPortalProps>;
|
|
5
|
-
declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const DialogOverlay: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const DialogContent: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, };
|
|
9
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/ui/base/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,MAAM,iDAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,kIAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,uDAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,gIAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,4LASjB,CAAC;AAGH,QAAA,MAAM,aAAa,4LAkBjB,CAAC;AA0DH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,GAKd,CAAC"}
|
package/dist/ui/base/dialog.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/ui/base/dialog.tsx
|
|
31
|
-
var dialog_exports = {};
|
|
32
|
-
__export(dialog_exports, {
|
|
33
|
-
Dialog: () => Dialog,
|
|
34
|
-
DialogClose: () => DialogClose,
|
|
35
|
-
DialogContent: () => DialogContent,
|
|
36
|
-
DialogOverlay: () => DialogOverlay,
|
|
37
|
-
DialogPortal: () => DialogPortal,
|
|
38
|
-
DialogTrigger: () => DialogTrigger
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(dialog_exports);
|
|
41
|
-
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
42
|
-
var import_classnames = __toESM(require("classnames"));
|
|
43
|
-
var import_react = require("react");
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var Dialog = DialogPrimitive.Root;
|
|
46
|
-
var DialogTrigger = DialogPrimitive.Trigger;
|
|
47
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
48
|
-
var DialogClose = DialogPrimitive.Close;
|
|
49
|
-
var DialogOverlay = (0, import_react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
-
DialogPrimitive.Overlay,
|
|
51
|
-
{
|
|
52
|
-
ref,
|
|
53
|
-
className: (0, import_classnames.default)("aui-dialog-overlay", className),
|
|
54
|
-
...props
|
|
55
|
-
}
|
|
56
|
-
));
|
|
57
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
58
|
-
var DialogContent = (0, import_react.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { children: [
|
|
59
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
|
|
60
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
-
DialogPrimitive.Content,
|
|
62
|
-
{
|
|
63
|
-
ref,
|
|
64
|
-
className: (0, import_classnames.default)("aui-dialog-content", className),
|
|
65
|
-
...props,
|
|
66
|
-
children
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] }));
|
|
70
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
71
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
-
0 && (module.exports = {
|
|
73
|
-
Dialog,
|
|
74
|
-
DialogClose,
|
|
75
|
-
DialogContent,
|
|
76
|
-
DialogOverlay,
|
|
77
|
-
DialogPortal,
|
|
78
|
-
DialogTrigger
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\n\nimport classNames from \"classnames\";\nimport { ComponentPropsWithoutRef, ComponentRef, forwardRef } from \"react\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = forwardRef<\n ComponentRef<typeof DialogPrimitive.Overlay>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={classNames(\"aui-dialog-overlay\", className)}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = forwardRef<\n ComponentRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={classNames(\"aui-dialog-content\", className)}\n {...props}\n >\n {children}\n {/* <DialogPrimitive.Close className=\"ring-offset-aui-background focus:ring-aui-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none\">\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close> */}\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n// const DialogHeader = ({\n// className,\n// ...props\n// }: HTMLAttributes<HTMLDivElement>) => (\n// <div\n// className={classNames(\n// \"flex flex-col space-y-1.5 text-center sm:text-left\",\n// className,\n// )}\n// {...props}\n// />\n// );\n// DialogHeader.displayName = \"DialogHeader\";\n\n// const DialogFooter = ({\n// className,\n// ...props\n// }: HTMLAttributes<HTMLDivElement>) => (\n// <div\n// className={classNames(\n// \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n// className,\n// )}\n// {...props}\n// />\n// );\n// DialogFooter.displayName = \"DialogFooter\";\n\n// const DialogTitle = forwardRef<\n// ComponentRef<typeof DialogPrimitive.Title>,\n// ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n// >(({ className, ...props }, ref) => (\n// <DialogPrimitive.Title\n// ref={ref}\n// className={classNames(\n// \"text-lg font-semibold leading-none tracking-tight\",\n// className,\n// )}\n// {...props}\n// />\n// ));\n// DialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n// const DialogDescription = forwardRef<\n// ComponentRef<typeof DialogPrimitive.Description>,\n// ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n// >(({ className, ...props }, ref) => (\n// <DialogPrimitive.Description\n// ref={ref}\n// className={classNames(\"text-muted-foreground text-sm\", className)}\n// {...props}\n// />\n// ));\n// DialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n // DialogHeader,\n // DialogFooter,\n // DialogTitle,\n // DialogDescription,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAiC;AAEjC,wBAAuB;AACvB,mBAAmE;AAcjE;AAZF,IAAM,SAAyB;AAE/B,IAAM,gBAAgC;AAEtC,IAAM,eAA+B;AAErC,IAAM,cAA8B;AAEpC,IAAM,oBAAgB,yBAGpB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAiB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,eAAW,kBAAAA,SAAW,sBAAsB,SAAS;AAAA,IACpD,GAAG;AAAA;AACN,CACD;AACD,cAAc,cAA8B,wBAAQ;AAEpD,IAAM,oBAAgB,yBAGpB,CAAC,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,QACpC,6CAAC,gBACC;AAAA,8CAAC,iBAAc;AAAA,EACf;AAAA,IAAiB;AAAA,IAAhB;AAAA,MACC;AAAA,MACA,eAAW,kBAAAA,SAAW,sBAAsB,SAAS;AAAA,MACpD,GAAG;AAAA,MAEH;AAAA;AAAA,EAKH;AAAA,GACF,CACD;AACD,cAAc,cAA8B,wBAAQ;","names":["classNames"]}
|
package/dist/ui/base/dialog.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// src/ui/base/dialog.tsx
|
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
var Dialog = DialogPrimitive.Root;
|
|
7
|
-
var DialogTrigger = DialogPrimitive.Trigger;
|
|
8
|
-
var DialogPortal = DialogPrimitive.Portal;
|
|
9
|
-
var DialogClose = DialogPrimitive.Close;
|
|
10
|
-
var DialogOverlay = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
-
DialogPrimitive.Overlay,
|
|
12
|
-
{
|
|
13
|
-
ref,
|
|
14
|
-
className: classNames("aui-dialog-overlay", className),
|
|
15
|
-
...props
|
|
16
|
-
}
|
|
17
|
-
));
|
|
18
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
19
|
-
var DialogContent = forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
20
|
-
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
22
|
-
DialogPrimitive.Content,
|
|
23
|
-
{
|
|
24
|
-
ref,
|
|
25
|
-
className: classNames("aui-dialog-content", className),
|
|
26
|
-
...props,
|
|
27
|
-
children
|
|
28
|
-
}
|
|
29
|
-
)
|
|
30
|
-
] }));
|
|
31
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
32
|
-
export {
|
|
33
|
-
Dialog,
|
|
34
|
-
DialogClose,
|
|
35
|
-
DialogContent,
|
|
36
|
-
DialogOverlay,
|
|
37
|
-
DialogPortal,
|
|
38
|
-
DialogTrigger
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\n\nimport classNames from \"classnames\";\nimport { ComponentPropsWithoutRef, ComponentRef, forwardRef } from \"react\";\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = forwardRef<\n ComponentRef<typeof DialogPrimitive.Overlay>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={classNames(\"aui-dialog-overlay\", className)}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = forwardRef<\n ComponentRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={classNames(\"aui-dialog-content\", className)}\n {...props}\n >\n {children}\n {/* <DialogPrimitive.Close className=\"ring-offset-aui-background focus:ring-aui-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none\">\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close> */}\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\n// const DialogHeader = ({\n// className,\n// ...props\n// }: HTMLAttributes<HTMLDivElement>) => (\n// <div\n// className={classNames(\n// \"flex flex-col space-y-1.5 text-center sm:text-left\",\n// className,\n// )}\n// {...props}\n// />\n// );\n// DialogHeader.displayName = \"DialogHeader\";\n\n// const DialogFooter = ({\n// className,\n// ...props\n// }: HTMLAttributes<HTMLDivElement>) => (\n// <div\n// className={classNames(\n// \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n// className,\n// )}\n// {...props}\n// />\n// );\n// DialogFooter.displayName = \"DialogFooter\";\n\n// const DialogTitle = forwardRef<\n// ComponentRef<typeof DialogPrimitive.Title>,\n// ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n// >(({ className, ...props }, ref) => (\n// <DialogPrimitive.Title\n// ref={ref}\n// className={classNames(\n// \"text-lg font-semibold leading-none tracking-tight\",\n// className,\n// )}\n// {...props}\n// />\n// ));\n// DialogTitle.displayName = DialogPrimitive.Title.displayName;\n\n// const DialogDescription = forwardRef<\n// ComponentRef<typeof DialogPrimitive.Description>,\n// ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n// >(({ className, ...props }, ref) => (\n// <DialogPrimitive.Description\n// ref={ref}\n// className={classNames(\"text-muted-foreground text-sm\", className)}\n// {...props}\n// />\n// ));\n// DialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n // DialogHeader,\n // DialogFooter,\n // DialogTitle,\n // DialogDescription,\n};\n"],"mappings":";AAAA,YAAY,qBAAqB;AAEjC,OAAO,gBAAgB;AACvB,SAAiD,kBAAkB;AAcjE,cAYA,YAZA;AAZF,IAAM,SAAyB;AAE/B,IAAM,gBAAgC;AAEtC,IAAM,eAA+B;AAErC,IAAM,cAA8B;AAEpC,IAAM,gBAAgB,WAGpB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAiB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAW,WAAW,sBAAsB,SAAS;AAAA,IACpD,GAAG;AAAA;AACN,CACD;AACD,cAAc,cAA8B,wBAAQ;AAEpD,IAAM,gBAAgB,WAGpB,CAAC,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,QACpC,qBAAC,gBACC;AAAA,sBAAC,iBAAc;AAAA,EACf;AAAA,IAAiB;AAAA,IAAhB;AAAA,MACC;AAAA,MACA,WAAW,WAAW,sBAAsB,SAAS;AAAA,MACpD,GAAG;AAAA,MAEH;AAAA;AAAA,EAKH;AAAA,GACF,CACD;AACD,cAAc,cAA8B,wBAAQ;","names":[]}
|
package/dist/ui/base/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { Avatar, AvatarRoot, AvatarImage, AvatarFallback, type AvatarProps, } from "./avatar";
|
|
2
|
-
export { Button, buttonVariants, type ButtonProps } from "./button";
|
|
3
|
-
export { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
|
|
4
|
-
export { TooltipIconButton } from "./tooltip-icon-button";
|
|
5
|
-
export { CircleStopIcon } from "./CircleStopIcon";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,WAAW,EACX,cAAc,EACd,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/ui/base/index.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/ui/base/index.ts
|
|
21
|
-
var base_exports = {};
|
|
22
|
-
__export(base_exports, {
|
|
23
|
-
Avatar: () => import_avatar.Avatar,
|
|
24
|
-
AvatarFallback: () => import_avatar.AvatarFallback,
|
|
25
|
-
AvatarImage: () => import_avatar.AvatarImage,
|
|
26
|
-
AvatarRoot: () => import_avatar.AvatarRoot,
|
|
27
|
-
Button: () => import_button.Button,
|
|
28
|
-
CircleStopIcon: () => import_CircleStopIcon.CircleStopIcon,
|
|
29
|
-
Tooltip: () => import_tooltip.Tooltip,
|
|
30
|
-
TooltipContent: () => import_tooltip.TooltipContent,
|
|
31
|
-
TooltipIconButton: () => import_tooltip_icon_button.TooltipIconButton,
|
|
32
|
-
TooltipTrigger: () => import_tooltip.TooltipTrigger,
|
|
33
|
-
buttonVariants: () => import_button.buttonVariants
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(base_exports);
|
|
36
|
-
var import_avatar = require("./avatar.js");
|
|
37
|
-
var import_button = require("./button.js");
|
|
38
|
-
var import_tooltip = require("./tooltip.js");
|
|
39
|
-
var import_tooltip_icon_button = require("./tooltip-icon-button.js");
|
|
40
|
-
var import_CircleStopIcon = require("./CircleStopIcon.js");
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
Avatar,
|
|
44
|
-
AvatarFallback,
|
|
45
|
-
AvatarImage,
|
|
46
|
-
AvatarRoot,
|
|
47
|
-
Button,
|
|
48
|
-
CircleStopIcon,
|
|
49
|
-
Tooltip,
|
|
50
|
-
TooltipContent,
|
|
51
|
-
TooltipIconButton,
|
|
52
|
-
TooltipTrigger,
|
|
53
|
-
buttonVariants
|
|
54
|
-
});
|
|
55
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/index.ts"],"sourcesContent":["export {\n Avatar,\n AvatarRoot,\n AvatarImage,\n AvatarFallback,\n type AvatarProps,\n} from \"./avatar\";\n\nexport { Button, buttonVariants, type ButtonProps } from \"./button\";\n\nexport { Tooltip, TooltipContent, TooltipTrigger } from \"./tooltip\";\n\nexport { TooltipIconButton } from \"./tooltip-icon-button\";\n\nexport { CircleStopIcon } from \"./CircleStopIcon\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAMO;AAEP,oBAAyD;AAEzD,qBAAwD;AAExD,iCAAkC;AAElC,4BAA+B;","names":[]}
|
package/dist/ui/base/index.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/ui/base/index.ts
|
|
2
|
-
import {
|
|
3
|
-
Avatar,
|
|
4
|
-
AvatarRoot,
|
|
5
|
-
AvatarImage,
|
|
6
|
-
AvatarFallback
|
|
7
|
-
} from "./avatar.mjs";
|
|
8
|
-
import { Button, buttonVariants } from "./button.mjs";
|
|
9
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
|
|
10
|
-
import { TooltipIconButton } from "./tooltip-icon-button.mjs";
|
|
11
|
-
import { CircleStopIcon } from "./CircleStopIcon.mjs";
|
|
12
|
-
export {
|
|
13
|
-
Avatar,
|
|
14
|
-
AvatarFallback,
|
|
15
|
-
AvatarImage,
|
|
16
|
-
AvatarRoot,
|
|
17
|
-
Button,
|
|
18
|
-
CircleStopIcon,
|
|
19
|
-
Tooltip,
|
|
20
|
-
TooltipContent,
|
|
21
|
-
TooltipIconButton,
|
|
22
|
-
TooltipTrigger,
|
|
23
|
-
buttonVariants
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/index.ts"],"sourcesContent":["export {\n Avatar,\n AvatarRoot,\n AvatarImage,\n AvatarFallback,\n type AvatarProps,\n} from \"./avatar\";\n\nexport { Button, buttonVariants, type ButtonProps } from \"./button\";\n\nexport { Tooltip, TooltipContent, TooltipTrigger } from \"./tooltip\";\n\nexport { TooltipIconButton } from \"./tooltip-icon-button\";\n\nexport { CircleStopIcon } from \"./CircleStopIcon\";\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,QAAQ,sBAAwC;AAEzD,SAAS,SAAS,gBAAgB,sBAAsB;AAExD,SAAS,yBAAyB;AAElC,SAAS,sBAAsB;","names":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from "./button";
|
|
2
|
-
export declare namespace TooltipIconButton {
|
|
3
|
-
type Props = ButtonProps & {
|
|
4
|
-
tooltip: string;
|
|
5
|
-
side?: "top" | "bottom" | "left" | "right";
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export declare const TooltipIconButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
|
-
asChild?: boolean;
|
|
10
|
-
}, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
|
|
11
|
-
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
12
|
-
size?: "default" | "icon" | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
14
|
-
tooltip: string;
|
|
15
|
-
side?: "top" | "bottom" | "left" | "right";
|
|
16
|
-
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
//# sourceMappingURL=tooltip-icon-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-icon-button.d.ts","sourceRoot":"","sources":["../../../src/ui/base/tooltip-icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/C,yBAAiB,iBAAiB,CAAC;IACjC,KAAY,KAAK,GAAG,WAAW,GAAG;QAChC,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;KAC5C,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB;;;;;;aALjB,MAAM;WACR,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO;qDAmB5C,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/ui/base/tooltip-icon-button.tsx
|
|
21
|
-
var tooltip_icon_button_exports = {};
|
|
22
|
-
__export(tooltip_icon_button_exports, {
|
|
23
|
-
TooltipIconButton: () => TooltipIconButton
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(tooltip_icon_button_exports);
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
var import_tooltip = require("./tooltip.js");
|
|
28
|
-
var import_button = require("./button.js");
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
var TooltipIconButton = (0, import_react.forwardRef)(({ children, tooltip, side = "bottom", ...rest }, ref) => {
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tooltip.Tooltip, { children: [
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_button.Button, { variant: "ghost", size: "icon", ...rest, ref, children: [
|
|
33
|
-
children,
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "aui-sr-only", children: tooltip })
|
|
35
|
-
] }) }),
|
|
36
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.TooltipContent, { side, children: tooltip })
|
|
37
|
-
] });
|
|
38
|
-
});
|
|
39
|
-
TooltipIconButton.displayName = "TooltipIconButton";
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
TooltipIconButton
|
|
43
|
-
});
|
|
44
|
-
//# sourceMappingURL=tooltip-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/tooltip-icon-button.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"./tooltip\";\nimport { Button, ButtonProps } from \"./button\";\n\nexport namespace TooltipIconButton {\n export type Props = ButtonProps & {\n tooltip: string;\n side?: \"top\" | \"bottom\" | \"left\" | \"right\";\n };\n}\n\nexport const TooltipIconButton = forwardRef<\n HTMLButtonElement,\n TooltipIconButton.Props\n>(({ children, tooltip, side = \"bottom\", ...rest }, ref) => {\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"ghost\" size=\"icon\" {...rest} ref={ref}>\n {children}\n <span className=\"aui-sr-only\">{tooltip}</span>\n </Button>\n </TooltipTrigger>\n <TooltipContent side={side}>{tooltip}</TooltipContent>\n </Tooltip>\n );\n});\n\nTooltipIconButton.displayName = \"TooltipIconButton\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAC3B,qBAAwD;AACxD,oBAAoC;AAgB5B;AAPD,IAAM,wBAAoB,yBAG/B,CAAC,EAAE,UAAU,SAAS,OAAO,UAAU,GAAG,KAAK,GAAG,QAAQ;AAC1D,SACE,6CAAC,0BACC;AAAA,gDAAC,iCAAe,SAAO,MACrB,uDAAC,wBAAO,SAAQ,SAAQ,MAAK,QAAQ,GAAG,MAAM,KAC3C;AAAA;AAAA,MACD,4CAAC,UAAK,WAAU,eAAe,mBAAQ;AAAA,OACzC,GACF;AAAA,IACA,4CAAC,iCAAe,MAAa,mBAAQ;AAAA,KACvC;AAEJ,CAAC;AAED,kBAAkB,cAAc;","names":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/ui/base/tooltip-icon-button.tsx
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
|
|
4
|
-
import { Button } from "./button.mjs";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
var TooltipIconButton = forwardRef(({ children, tooltip, side = "bottom", ...rest }, ref) => {
|
|
7
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
8
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "ghost", size: "icon", ...rest, ref, children: [
|
|
9
|
-
children,
|
|
10
|
-
/* @__PURE__ */ jsx("span", { className: "aui-sr-only", children: tooltip })
|
|
11
|
-
] }) }),
|
|
12
|
-
/* @__PURE__ */ jsx(TooltipContent, { side, children: tooltip })
|
|
13
|
-
] });
|
|
14
|
-
});
|
|
15
|
-
TooltipIconButton.displayName = "TooltipIconButton";
|
|
16
|
-
export {
|
|
17
|
-
TooltipIconButton
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=tooltip-icon-button.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ui/base/tooltip-icon-button.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"./tooltip\";\nimport { Button, ButtonProps } from \"./button\";\n\nexport namespace TooltipIconButton {\n export type Props = ButtonProps & {\n tooltip: string;\n side?: \"top\" | \"bottom\" | \"left\" | \"right\";\n };\n}\n\nexport const TooltipIconButton = forwardRef<\n HTMLButtonElement,\n TooltipIconButton.Props\n>(({ children, tooltip, side = \"bottom\", ...rest }, ref) => {\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"ghost\" size=\"icon\" {...rest} ref={ref}>\n {children}\n <span className=\"aui-sr-only\">{tooltip}</span>\n </Button>\n </TooltipTrigger>\n <TooltipContent side={side}>{tooltip}</TooltipContent>\n </Tooltip>\n );\n});\n\nTooltipIconButton.displayName = \"TooltipIconButton\";\n"],"mappings":";AAAA,SAAS,kBAAkB;AAC3B,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAS,cAA2B;AAgB5B,SAEE,KAFF;AAPD,IAAM,oBAAoB,WAG/B,CAAC,EAAE,UAAU,SAAS,OAAO,UAAU,GAAG,KAAK,GAAG,QAAQ;AAC1D,SACE,qBAAC,WACC;AAAA,wBAAC,kBAAe,SAAO,MACrB,+BAAC,UAAO,SAAQ,SAAQ,MAAK,QAAQ,GAAG,MAAM,KAC3C;AAAA;AAAA,MACD,oBAAC,UAAK,WAAU,eAAe,mBAAQ;AAAA,OACzC,GACF;AAAA,IACA,oBAAC,kBAAe,MAAa,mBAAQ;AAAA,KACvC;AAEJ,CAAC;AAED,kBAAkB,cAAc;","names":[]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
|
-
import { FC } from "react";
|
|
3
|
-
export declare const Tooltip: FC<TooltipPrimitive.TooltipProps>;
|
|
4
|
-
export declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
export declare const TooltipContent: import("react").ForwardRefExoticComponent<Partial<Omit<TooltipPrimitive.TooltipContentProps & import("react").RefAttributes<HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/ui/base/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAMrD,CAAC;AAIF,eAAO,MAAM,cAAc,oIAA2B,CAAC;AAEvD,eAAO,MAAM,cAAc,uMAGzB,CAAC"}
|