@flamingo-stack/openframe-frontend-core 0.0.296-snapshot.20260621021605 → 0.0.296
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/README.md +0 -9
- package/dist/chunk-26PKDALD.js +2379 -0
- package/dist/chunk-26PKDALD.js.map +1 -0
- package/dist/chunk-3MCHAFHB.js +89 -0
- package/dist/chunk-3MCHAFHB.js.map +1 -0
- package/dist/{chunk-PI4WSYQV.js → chunk-3ZXUQQL4.js} +2 -2
- package/dist/{chunk-WMSTJAZT.cjs → chunk-5E2HOSSH.cjs} +51 -913
- package/dist/chunk-5E2HOSSH.cjs.map +1 -0
- package/dist/{chunk-IL47XWV5.js → chunk-5P3B2LZW.js} +14 -8
- package/dist/{chunk-IL47XWV5.js.map → chunk-5P3B2LZW.js.map} +1 -1
- package/dist/chunk-66AANIOC.cjs +619 -0
- package/dist/chunk-66AANIOC.cjs.map +1 -0
- package/dist/{chunk-AD6C23QY.js → chunk-6GCI7JOE.js} +7 -8
- package/dist/{chunk-AD6C23QY.js.map → chunk-6GCI7JOE.js.map} +1 -1
- package/dist/chunk-6JINAOI7.cjs +311 -0
- package/dist/chunk-6JINAOI7.cjs.map +1 -0
- package/dist/{chunk-2QG57XOJ.js → chunk-7RIYT7ZH.js} +205 -1067
- package/dist/chunk-7RIYT7ZH.js.map +1 -0
- package/dist/{chunk-L6PSSIUQ.cjs → chunk-AQOWFSMB.cjs} +1 -1
- package/dist/chunk-AQOWFSMB.cjs.map +1 -0
- package/dist/chunk-BOCFIKYS.cjs +3009 -0
- package/dist/chunk-BOCFIKYS.cjs.map +1 -0
- package/dist/{chunk-54KNMC2R.cjs → chunk-D3LEFMOA.cjs} +3 -3
- package/dist/{chunk-54KNMC2R.cjs.map → chunk-D3LEFMOA.cjs.map} +1 -1
- package/dist/chunk-D652TJBQ.js +3009 -0
- package/dist/chunk-D652TJBQ.js.map +1 -0
- package/dist/{chunk-PWQUAVA3.js → chunk-E4XABBSU.js} +98 -338
- package/dist/chunk-E4XABBSU.js.map +1 -0
- package/dist/{chunk-JALO4TAZ.js → chunk-EL6QLAWX.js} +55 -357
- package/dist/chunk-EL6QLAWX.js.map +1 -0
- package/dist/{chunk-6C526VNN.cjs → chunk-EYEW6PTA.cjs} +118 -358
- package/dist/chunk-EYEW6PTA.cjs.map +1 -0
- package/dist/chunk-FQJK446R.js +1606 -0
- package/dist/chunk-FQJK446R.js.map +1 -0
- package/dist/{chunk-4PSQS3SW.cjs → chunk-GLLDTKZK.cjs} +9 -7
- package/dist/chunk-GLLDTKZK.cjs.map +1 -0
- package/dist/{chunk-FQOTC3UU.cjs → chunk-IE6OU3WQ.cjs} +16 -318
- package/dist/chunk-IE6OU3WQ.cjs.map +1 -0
- package/dist/chunk-J54Z3OCR.cjs +1606 -0
- package/dist/chunk-J54Z3OCR.cjs.map +1 -0
- package/dist/{chunk-PC746XCO.js → chunk-K2PFPBMF.js} +5563 -15048
- package/dist/chunk-K2PFPBMF.js.map +1 -0
- package/dist/chunk-KXCRGTRN.cjs +2379 -0
- package/dist/chunk-KXCRGTRN.cjs.map +1 -0
- package/dist/{chunk-IZ7JSBFP.js → chunk-LCNMR277.js} +1 -1
- package/dist/chunk-LCNMR277.js.map +1 -0
- package/dist/chunk-LFGGF7OT.cjs +449 -0
- package/dist/chunk-LFGGF7OT.cjs.map +1 -0
- package/dist/chunk-M2OCXTNT.js +311 -0
- package/dist/chunk-M2OCXTNT.js.map +1 -0
- package/dist/{chunk-L7ULJKG7.js → chunk-MBFWU2EM.js} +10 -6
- package/dist/{chunk-L7ULJKG7.js.map → chunk-MBFWU2EM.js.map} +1 -1
- package/dist/chunk-ME4EVDFP.js +619 -0
- package/dist/chunk-ME4EVDFP.js.map +1 -0
- package/dist/chunk-OQ6X7ZOC.js +449 -0
- package/dist/chunk-OQ6X7ZOC.js.map +1 -0
- package/dist/{chunk-4TLE6VLU.js → chunk-OY7OF7E7.js} +24 -30
- package/dist/chunk-OY7OF7E7.js.map +1 -0
- package/dist/chunk-POKKCWKF.js +354 -0
- package/dist/chunk-POKKCWKF.js.map +1 -0
- package/dist/{chunk-GUTS7HGA.cjs → chunk-QHIXS3W2.cjs} +2514 -11999
- package/dist/chunk-QHIXS3W2.cjs.map +1 -0
- package/dist/chunk-TFSYSWPS.cjs +89 -0
- package/dist/chunk-TFSYSWPS.cjs.map +1 -0
- package/dist/{chunk-53FUMSZ5.cjs → chunk-W6M2FLLT.cjs} +46 -40
- package/dist/chunk-W6M2FLLT.cjs.map +1 -0
- package/dist/{chunk-3JIQVE7T.js → chunk-WHMATDVP.js} +15 -9
- package/dist/{chunk-3JIQVE7T.js.map → chunk-WHMATDVP.js.map} +1 -1
- package/dist/{chunk-YBYI62OE.cjs → chunk-X647HY3F.cjs} +37 -33
- package/dist/chunk-X647HY3F.cjs.map +1 -0
- package/dist/{chunk-UNVE2SDJ.cjs → chunk-X6BV7MB7.cjs} +31 -37
- package/dist/chunk-X6BV7MB7.cjs.map +1 -0
- package/dist/{chunk-7OVGB2DQ.cjs → chunk-XREEV72C.cjs} +25 -19
- package/dist/chunk-XREEV72C.cjs.map +1 -0
- package/dist/chunk-YETA25JW.cjs +354 -0
- package/dist/chunk-YETA25JW.cjs.map +1 -0
- package/dist/{chunk-FCDQNTDG.cjs → chunk-YIGPRLQY.cjs} +20 -21
- package/dist/chunk-YIGPRLQY.cjs.map +1 -0
- package/dist/{chunk-X4DOXQRT.js → chunk-ZP4AVIZP.js} +6 -4
- package/dist/{chunk-X4DOXQRT.js.map → chunk-ZP4AVIZP.js.map} +1 -1
- package/dist/components/chat/index.cjs +18 -8
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +85 -75
- package/dist/components/contact/index.cjs +15 -8
- package/dist/components/contact/index.cjs.map +1 -1
- package/dist/components/contact/index.js +14 -7
- package/dist/components/docs/doc-viewer.d.ts +2 -39
- package/dist/components/docs/doc-viewer.d.ts.map +1 -1
- package/dist/components/docs/index.cjs +9 -17
- package/dist/components/docs/index.cjs.map +1 -1
- package/dist/components/docs/index.d.ts +0 -4
- package/dist/components/docs/index.d.ts.map +1 -1
- package/dist/components/docs/index.js +8 -16
- package/dist/components/docs/use-document-tree.d.ts.map +1 -1
- package/dist/components/embeds/embed-iframe.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +15 -38
- package/dist/components/embeds/index.cjs.map +1 -1
- package/dist/components/embeds/index.d.ts +0 -8
- package/dist/components/embeds/index.d.ts.map +1 -1
- package/dist/components/embeds/index.js +17 -40
- package/dist/components/faq/index.cjs +16 -9
- package/dist/components/faq/index.cjs.map +1 -1
- package/dist/components/faq/index.js +15 -8
- package/dist/components/features/index.cjs +16 -8
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.js +32 -24
- package/dist/components/index.cjs +452 -257
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +976 -781
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/page-layout.d.ts +1 -10
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +1 -17
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +15 -7
- package/dist/components/navigation/index.cjs.map +1 -1
- package/dist/components/navigation/index.js +17 -9
- package/dist/components/onboarding-guides/index.cjs +36 -35
- package/dist/components/onboarding-guides/index.cjs.map +1 -1
- package/dist/components/onboarding-guides/index.js +14 -13
- package/dist/components/onboarding-guides/index.js.map +1 -1
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts +1 -1
- package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +16 -9
- package/dist/components/related-content/index.cjs.map +1 -1
- package/dist/components/related-content/index.js +15 -8
- package/dist/components/shared/dev-section/dev-section-page.d.ts +0 -9
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-view.d.ts.map +1 -1
- package/dist/components/shared/dev-section/index.d.ts +1 -1
- package/dist/components/shared/dev-section/index.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +112 -100
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +32 -20
- package/dist/components/tickets/index.js.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +52 -50
- package/dist/components/ui/file-manager/index.cjs.map +1 -1
- package/dist/components/ui/file-manager/index.js +6 -4
- package/dist/components/ui/file-manager/index.js.map +1 -1
- package/dist/components/ui/index.cjs +19 -13
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +0 -2
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +139 -133
- package/dist/components/ui/release-changelog-section.d.ts +2 -6
- package/dist/components/ui/release-changelog-section.d.ts.map +1 -1
- package/dist/components/ui/simple-markdown-renderer.d.ts +8 -2
- package/dist/components/ui/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/contexts/chat-runtime-context.d.ts +0 -14
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/contexts/index.cjs +3 -3
- package/dist/contexts/index.js +5 -5
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/index.cjs.map +1 -1
- package/dist/embed-shims/index.js +4 -4
- package/dist/hooks/index.cjs +9 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +11 -6
- package/dist/index.cjs +20 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +364 -358
- package/dist/types/doc-source.d.ts +1 -31
- package/dist/types/doc-source.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -4
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -7
- package/src/components/chat/embeddable-chat.tsx +1 -1
- package/src/components/docs/doc-viewer.tsx +19 -111
- package/src/components/docs/index.ts +0 -17
- package/src/components/docs/use-document-tree.ts +0 -21
- package/src/components/embeds/embed-iframe.tsx +9 -7
- package/src/components/embeds/index.ts +0 -30
- package/src/components/embeds/og-link-preview.tsx +13 -13
- package/src/components/layout/page-layout.tsx +1 -14
- package/src/components/layout/title-block.tsx +62 -40
- package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +3 -3
- package/src/components/shared/dev-section/dev-section-page.tsx +1 -9
- package/src/components/shared/dev-section/dev-section-view.tsx +9 -14
- package/src/components/shared/dev-section/index.ts +1 -1
- package/src/components/shared/doc-search/use-doc-search.ts +3 -7
- package/src/components/shared/legal-document/legal-document-page.tsx +2 -2
- package/src/components/shared/product-release/release-detail-page.tsx +4 -6
- package/src/components/ui/index.ts +0 -2
- package/src/components/ui/release-changelog-section.tsx +2 -7
- package/src/components/ui/simple-markdown-renderer.tsx +11 -7
- package/src/contexts/chat-runtime-context.tsx +0 -14
- package/src/types/doc-source.ts +1 -33
- package/src/utils/index.ts +0 -1
- package/dist/chunk-2QG57XOJ.js.map +0 -1
- package/dist/chunk-4PSQS3SW.cjs.map +0 -1
- package/dist/chunk-4TLE6VLU.js.map +0 -1
- package/dist/chunk-53FUMSZ5.cjs.map +0 -1
- package/dist/chunk-6C526VNN.cjs.map +0 -1
- package/dist/chunk-7OVGB2DQ.cjs.map +0 -1
- package/dist/chunk-F5OB2YAL.cjs +0 -144
- package/dist/chunk-F5OB2YAL.cjs.map +0 -1
- package/dist/chunk-FBWXMMRB.cjs +0 -2
- package/dist/chunk-FBWXMMRB.cjs.map +0 -1
- package/dist/chunk-FCDQNTDG.cjs.map +0 -1
- package/dist/chunk-FQOTC3UU.cjs.map +0 -1
- package/dist/chunk-GUTS7HGA.cjs.map +0 -1
- package/dist/chunk-GZ4C3XW6.js +0 -2
- package/dist/chunk-GZ4C3XW6.js.map +0 -1
- package/dist/chunk-IZ7JSBFP.js.map +0 -1
- package/dist/chunk-JALO4TAZ.js.map +0 -1
- package/dist/chunk-L6PSSIUQ.cjs.map +0 -1
- package/dist/chunk-PC746XCO.js.map +0 -1
- package/dist/chunk-PWQUAVA3.js.map +0 -1
- package/dist/chunk-SA2WPJVO.js +0 -144
- package/dist/chunk-SA2WPJVO.js.map +0 -1
- package/dist/chunk-UNVE2SDJ.cjs.map +0 -1
- package/dist/chunk-WMSTJAZT.cjs.map +0 -1
- package/dist/chunk-YBYI62OE.cjs.map +0 -1
- package/dist/components/case-studies/index.cjs +0 -126
- package/dist/components/case-studies/index.cjs.map +0 -1
- package/dist/components/case-studies/index.d.ts +0 -2
- package/dist/components/case-studies/index.d.ts.map +0 -1
- package/dist/components/case-studies/index.js +0 -126
- package/dist/components/case-studies/index.js.map +0 -1
- package/dist/components/case-studies/share-experience-section.d.ts +0 -48
- package/dist/components/case-studies/share-experience-section.d.ts.map +0 -1
- package/dist/components/docs/docs-hub-page.d.ts +0 -46
- package/dist/components/docs/docs-hub-page.d.ts.map +0 -1
- package/dist/components/docs/skeletons.d.ts +0 -32
- package/dist/components/docs/skeletons.d.ts.map +0 -1
- package/dist/components/docs/use-docs-resolve-link.d.ts +0 -20
- package/dist/components/docs/use-docs-resolve-link.d.ts.map +0 -1
- package/dist/components/embeds/embed-container.d.ts +0 -37
- package/dist/components/embeds/embed-container.d.ts.map +0 -1
- package/dist/components/embeds/file-download-card.d.ts +0 -18
- package/dist/components/embeds/file-download-card.d.ts.map +0 -1
- package/dist/components/embeds/linkedin-embed-client.d.ts +0 -8
- package/dist/components/embeds/linkedin-embed-client.d.ts.map +0 -1
- package/dist/components/embeds/markdown-image.d.ts +0 -5
- package/dist/components/embeds/markdown-image.d.ts.map +0 -1
- package/dist/components/embeds/reddit-embed-client.d.ts +0 -7
- package/dist/components/embeds/reddit-embed-client.d.ts.map +0 -1
- package/dist/components/embeds/rich-markdown-runtime.d.ts +0 -46
- package/dist/components/embeds/rich-markdown-runtime.d.ts.map +0 -1
- package/dist/components/embeds/twitter-embed-client.d.ts +0 -8
- package/dist/components/embeds/twitter-embed-client.d.ts.map +0 -1
- package/dist/components/layout/page-header.d.ts +0 -78
- package/dist/components/layout/page-header.d.ts.map +0 -1
- package/dist/components/layout/page-with-header.d.ts +0 -67
- package/dist/components/layout/page-with-header.d.ts.map +0 -1
- package/dist/components/ui/rich-markdown-renderer.d.ts +0 -34
- package/dist/components/ui/rich-markdown-renderer.d.ts.map +0 -1
- package/dist/utils/page-header-constants.d.ts +0 -15
- package/dist/utils/page-header-constants.d.ts.map +0 -1
- package/dist/utils/social-embed-cache.d.ts +0 -29
- package/dist/utils/social-embed-cache.d.ts.map +0 -1
- package/src/components/case-studies/index.ts +0 -4
- package/src/components/case-studies/share-experience-section.tsx +0 -185
- package/src/components/docs/docs-hub-page.tsx +0 -149
- package/src/components/docs/skeletons.tsx +0 -138
- package/src/components/docs/use-docs-resolve-link.ts +0 -52
- package/src/components/embeds/embed-container.tsx +0 -80
- package/src/components/embeds/file-download-card.tsx +0 -54
- package/src/components/embeds/linkedin-embed-client.tsx +0 -100
- package/src/components/embeds/markdown-image.tsx +0 -88
- package/src/components/embeds/reddit-embed-client.tsx +0 -550
- package/src/components/embeds/rich-markdown-runtime.tsx +0 -79
- package/src/components/embeds/twitter-embed-client.tsx +0 -308
- package/src/components/layout/page-header.tsx +0 -182
- package/src/components/layout/page-with-header.tsx +0 -110
- package/src/components/ui/rich-markdown-renderer.tsx +0 -1203
- package/src/utils/page-header-constants.ts +0 -15
- package/src/utils/social-embed-cache.ts +0 -391
- /package/dist/{chunk-PI4WSYQV.js.map → chunk-3ZXUQQL4.js.map} +0 -0
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
cn,
|
|
8
8
|
init_cn
|
|
9
9
|
} from "./chunk-XTCBRQN2.js";
|
|
10
|
-
import {
|
|
11
|
-
CheckboxCheckmarkIcon
|
|
12
|
-
} from "./chunk-6U3IUD57.js";
|
|
13
10
|
import {
|
|
14
11
|
__esm
|
|
15
12
|
} from "./chunk-GGWZFCYS.js";
|
|
@@ -38,8 +35,8 @@ var init_button_styles = __esm({
|
|
|
38
35
|
// src/components/ui/button/button.tsx
|
|
39
36
|
import { Slot } from "@radix-ui/react-slot";
|
|
40
37
|
import { cva } from "class-variance-authority";
|
|
41
|
-
import
|
|
42
|
-
import { Fragment, jsx
|
|
38
|
+
import React from "react";
|
|
39
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
43
40
|
var buttonVariants, splitShellVariants, splitSlotVariants, Spinner, Button;
|
|
44
41
|
var init_button = __esm({
|
|
45
42
|
"src/components/ui/button/button.tsx"() {
|
|
@@ -152,9 +149,9 @@ var init_button = __esm({
|
|
|
152
149
|
defaultVariants: { slot: "main", size: "default", variant: "accent" }
|
|
153
150
|
}
|
|
154
151
|
);
|
|
155
|
-
Spinner = () => /* @__PURE__ */
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
152
|
+
Spinner = () => /* @__PURE__ */ jsxs("svg", { className: "animate-spin", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
153
|
+
/* @__PURE__ */ jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
158
155
|
"path",
|
|
159
156
|
{
|
|
160
157
|
className: "opacity-75",
|
|
@@ -163,7 +160,7 @@ var init_button = __esm({
|
|
|
163
160
|
}
|
|
164
161
|
)
|
|
165
162
|
] });
|
|
166
|
-
Button =
|
|
163
|
+
Button = React.forwardRef(function Button2({
|
|
167
164
|
className,
|
|
168
165
|
variant,
|
|
169
166
|
size,
|
|
@@ -194,16 +191,16 @@ var init_button = __esm({
|
|
|
194
191
|
);
|
|
195
192
|
const mainSlotClass = splitSlotVariants({ slot: "main", size: safeSize, variant: safeVariant });
|
|
196
193
|
const iconSlotClass = splitSlotVariants({ slot: "icon", size: safeSize, variant: safeVariant });
|
|
197
|
-
const splitContent = /* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
leftIcon && /* @__PURE__ */
|
|
194
|
+
const splitContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
195
|
+
/* @__PURE__ */ jsxs("span", { className: cn("contents", loading && "invisible"), children: [
|
|
196
|
+
/* @__PURE__ */ jsxs("span", { className: mainSlotClass, children: [
|
|
197
|
+
leftIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center", children: leftIcon }),
|
|
201
198
|
children,
|
|
202
|
-
rightIcon && /* @__PURE__ */
|
|
199
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center", children: rightIcon })
|
|
203
200
|
] }),
|
|
204
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: iconSlotClass, children: splitIcon })
|
|
205
202
|
] }),
|
|
206
|
-
loading && /* @__PURE__ */
|
|
203
|
+
loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 inline-flex items-center justify-center text-ods-text-primary", children: /* @__PURE__ */ jsx(Spinner, {}) })
|
|
207
204
|
] });
|
|
208
205
|
const splitAnchor = linkProps ?? (href ? {
|
|
209
206
|
href,
|
|
@@ -212,7 +209,7 @@ var init_button = __esm({
|
|
|
212
209
|
onClick
|
|
213
210
|
} : null);
|
|
214
211
|
if (splitAnchor) {
|
|
215
|
-
return /* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ jsx(
|
|
216
213
|
next_link_default,
|
|
217
214
|
{
|
|
218
215
|
href: splitAnchor.href,
|
|
@@ -228,7 +225,7 @@ var init_button = __esm({
|
|
|
228
225
|
}
|
|
229
226
|
);
|
|
230
227
|
}
|
|
231
|
-
return /* @__PURE__ */
|
|
228
|
+
return /* @__PURE__ */ jsx(
|
|
232
229
|
"button",
|
|
233
230
|
{
|
|
234
231
|
ref,
|
|
@@ -242,15 +239,15 @@ var init_button = __esm({
|
|
|
242
239
|
}
|
|
243
240
|
const classes = cn(buttonVariants({ variant, size, fullWidth, noPaddingX }), className);
|
|
244
241
|
if (asChild) {
|
|
245
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ jsx(Slot, { ref, className: classes, ...props, children });
|
|
246
243
|
}
|
|
247
|
-
const content = /* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
leftIcon && /* @__PURE__ */
|
|
244
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
245
|
+
/* @__PURE__ */ jsxs("span", { className: cn("contents", loading && "invisible"), children: [
|
|
246
|
+
leftIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center", children: leftIcon }),
|
|
250
247
|
children,
|
|
251
|
-
rightIcon && /* @__PURE__ */
|
|
248
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: "inline-flex items-center", children: rightIcon })
|
|
252
249
|
] }),
|
|
253
|
-
loading && /* @__PURE__ */
|
|
250
|
+
loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 inline-flex items-center justify-center text-ods-text-primary", children: /* @__PURE__ */ jsx(Spinner, {}) })
|
|
254
251
|
] });
|
|
255
252
|
const anchor = linkProps ?? (href ? {
|
|
256
253
|
href,
|
|
@@ -259,7 +256,7 @@ var init_button = __esm({
|
|
|
259
256
|
onClick
|
|
260
257
|
} : null);
|
|
261
258
|
if (anchor) {
|
|
262
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ jsx(
|
|
263
260
|
next_link_default,
|
|
264
261
|
{
|
|
265
262
|
href: anchor.href,
|
|
@@ -275,7 +272,7 @@ var init_button = __esm({
|
|
|
275
272
|
}
|
|
276
273
|
);
|
|
277
274
|
}
|
|
278
|
-
return /* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ jsx(
|
|
279
276
|
"button",
|
|
280
277
|
{
|
|
281
278
|
ref,
|
|
@@ -292,12 +289,12 @@ var init_button = __esm({
|
|
|
292
289
|
|
|
293
290
|
// src/components/ui/button/split-button.tsx
|
|
294
291
|
import { cva as cva2 } from "class-variance-authority";
|
|
295
|
-
import
|
|
296
|
-
import { jsx as
|
|
292
|
+
import React2 from "react";
|
|
293
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
297
294
|
function Half({ variant, size, side, href, openInNewTab, prefetch, onClick, disabled, grow, type = "button", ariaLabel, children }) {
|
|
298
295
|
const classes = cn(splitHalfVariants({ variant, size, side }), grow && "flex-1");
|
|
299
296
|
if (href) {
|
|
300
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ jsx2(
|
|
301
298
|
next_link_default,
|
|
302
299
|
{
|
|
303
300
|
href,
|
|
@@ -313,7 +310,7 @@ function Half({ variant, size, side, href, openInNewTab, prefetch, onClick, disa
|
|
|
313
310
|
}
|
|
314
311
|
);
|
|
315
312
|
}
|
|
316
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsx2(
|
|
317
314
|
"button",
|
|
318
315
|
{
|
|
319
316
|
type,
|
|
@@ -379,7 +376,7 @@ var init_split_button = __esm({
|
|
|
379
376
|
],
|
|
380
377
|
defaultVariants: { variant: "accent", size: "default", side: "main" }
|
|
381
378
|
});
|
|
382
|
-
SplitButton =
|
|
379
|
+
SplitButton = React2.forwardRef(function SplitButton2({
|
|
383
380
|
variant = "accent",
|
|
384
381
|
size = "default",
|
|
385
382
|
fullWidth = false,
|
|
@@ -398,7 +395,7 @@ var init_split_button = __esm({
|
|
|
398
395
|
"aria-label": ariaLabel,
|
|
399
396
|
groupAriaLabel
|
|
400
397
|
}, ref) {
|
|
401
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ jsxs2(
|
|
402
399
|
"div",
|
|
403
400
|
{
|
|
404
401
|
ref,
|
|
@@ -406,7 +403,7 @@ var init_split_button = __esm({
|
|
|
406
403
|
"aria-label": groupAriaLabel,
|
|
407
404
|
className: cn("inline-flex items-stretch", fullWidth && "w-full", className),
|
|
408
405
|
children: [
|
|
409
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ jsxs2(
|
|
410
407
|
Half,
|
|
411
408
|
{
|
|
412
409
|
variant,
|
|
@@ -421,13 +418,13 @@ var init_split_button = __esm({
|
|
|
421
418
|
type,
|
|
422
419
|
ariaLabel,
|
|
423
420
|
children: [
|
|
424
|
-
leftIcon && /* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
rightIcon && /* @__PURE__ */
|
|
421
|
+
leftIcon && /* @__PURE__ */ jsx2("span", { className: "inline-flex items-center", children: leftIcon }),
|
|
422
|
+
/* @__PURE__ */ jsx2("span", { children }),
|
|
423
|
+
rightIcon && /* @__PURE__ */ jsx2("span", { className: "inline-flex items-center", children: rightIcon })
|
|
427
424
|
]
|
|
428
425
|
}
|
|
429
426
|
),
|
|
430
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ jsx2(
|
|
431
428
|
Half,
|
|
432
429
|
{
|
|
433
430
|
variant,
|
|
@@ -439,7 +436,7 @@ var init_split_button = __esm({
|
|
|
439
436
|
onClick: iconAction.onClick,
|
|
440
437
|
disabled: disabled || iconAction.disabled,
|
|
441
438
|
ariaLabel: iconAction["aria-label"],
|
|
442
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ jsx2("span", { className: "inline-flex items-center", children: iconAction.icon })
|
|
443
440
|
}
|
|
444
441
|
)
|
|
445
442
|
]
|
|
@@ -458,173 +455,30 @@ var init_button2 = __esm({
|
|
|
458
455
|
}
|
|
459
456
|
});
|
|
460
457
|
|
|
461
|
-
// src/components/ui/field-wrapper.tsx
|
|
462
|
-
init_cn();
|
|
463
|
-
import * as React from "react";
|
|
464
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
465
|
-
var errorVariantClasses = {
|
|
466
|
-
error: "text-ods-error",
|
|
467
|
-
warning: "text-[var(--ods-attention-yellow-warning)]"
|
|
468
|
-
};
|
|
469
|
-
var FieldWrapper = React.forwardRef(
|
|
470
|
-
({ label, error, errorVariant = "error", className, children }, ref) => {
|
|
471
|
-
const hasChrome = label != null || error != null;
|
|
472
|
-
return /* @__PURE__ */ jsxs("div", { ref, className: cn(hasChrome ? "relative flex w-full flex-col" : "contents", className), children: [
|
|
473
|
-
label && /* @__PURE__ */ jsx("label", { className: "text-h4 text-ods-text-primary mb-1", children: label }),
|
|
474
|
-
children,
|
|
475
|
-
error && /* @__PURE__ */ jsx("p", { className: cn("absolute bottom-0 left-0 right-0 translate-y-full text-h6 truncate", errorVariantClasses[errorVariant]), title: error, children: error })
|
|
476
|
-
] });
|
|
477
|
-
}
|
|
478
|
-
);
|
|
479
|
-
FieldWrapper.displayName = "FieldWrapper";
|
|
480
|
-
|
|
481
|
-
// src/components/ui/input.tsx
|
|
482
|
-
init_cn();
|
|
483
|
-
import * as React2 from "react";
|
|
484
|
-
import { Loader2 } from "lucide-react";
|
|
485
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
486
|
-
var invalidBorderClasses = {
|
|
487
|
-
error: "border-ods-error hover:border-ods-error has-[:focus]:border-ods-error",
|
|
488
|
-
warning: "!border-[var(--ods-attention-yellow-warning)] hover:!border-[var(--ods-attention-yellow-warning)] has-[:focus]:!border-[var(--ods-attention-yellow-warning)]"
|
|
489
|
-
};
|
|
490
|
-
var Input = React2.forwardRef(
|
|
491
|
-
({ className, type, invalid = false, startAdornment, endAdornment, label, error, errorVariant = "error", loading = false, ...props }, ref) => {
|
|
492
|
-
const isInvalid = invalid || !!error;
|
|
493
|
-
if (type === "range") {
|
|
494
|
-
const rangeInput = /* @__PURE__ */ jsx2(
|
|
495
|
-
"input",
|
|
496
|
-
{
|
|
497
|
-
type: "range",
|
|
498
|
-
className: cn(
|
|
499
|
-
"w-full cursor-pointer appearance-none rounded-full bg-white/30 h-1",
|
|
500
|
-
// Webkit (Chrome/Safari) thumb
|
|
501
|
-
"[&::-webkit-slider-thumb]:appearance-none",
|
|
502
|
-
"[&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3",
|
|
503
|
-
"[&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white",
|
|
504
|
-
"[&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:shadow-sm",
|
|
505
|
-
// Firefox thumb
|
|
506
|
-
"[&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:h-3",
|
|
507
|
-
"[&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-white",
|
|
508
|
-
"[&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer",
|
|
509
|
-
// Firefox track
|
|
510
|
-
"[&::-moz-range-track]:bg-transparent",
|
|
511
|
-
// Disabled
|
|
512
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
513
|
-
className
|
|
514
|
-
),
|
|
515
|
-
ref,
|
|
516
|
-
...props
|
|
517
|
-
}
|
|
518
|
-
);
|
|
519
|
-
return label ? /* @__PURE__ */ jsx2(FieldWrapper, { label, error, errorVariant, children: rangeInput }) : rangeInput;
|
|
520
|
-
}
|
|
521
|
-
const content = /* @__PURE__ */ jsxs2(
|
|
522
|
-
"label",
|
|
523
|
-
{
|
|
524
|
-
"data-invalid": isInvalid || void 0,
|
|
525
|
-
className: cn(
|
|
526
|
-
// Layout & spacing
|
|
527
|
-
"flex w-full items-center gap-2 rounded-[6px] border px-3 h-11 md:h-12 cursor-text",
|
|
528
|
-
// Focus-within states
|
|
529
|
-
"has-[:focus-visible]:outline-none",
|
|
530
|
-
"group",
|
|
531
|
-
// Animations & touch UX
|
|
532
|
-
"transition-colors duration-200",
|
|
533
|
-
// Theme palette
|
|
534
|
-
"bg-ods-card border-ods-border has-[:focus]:border-ods-accent",
|
|
535
|
-
// Hover & active (not disabled)
|
|
536
|
-
!props.disabled && "hover:bg-ods-bg-hover hover:border-ods-border-hover active:bg-ods-bg-active active:border-ods-border-active",
|
|
537
|
-
// Disabled
|
|
538
|
-
props.disabled && "!cursor-not-allowed bg-ods-bg",
|
|
539
|
-
// Invalid
|
|
540
|
-
isInvalid && invalidBorderClasses[errorVariant],
|
|
541
|
-
className
|
|
542
|
-
),
|
|
543
|
-
children: [
|
|
544
|
-
startAdornment && /* @__PURE__ */ jsx2("span", { className: "text-h6 flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6", children: startAdornment }),
|
|
545
|
-
/* @__PURE__ */ jsx2(
|
|
546
|
-
"input",
|
|
547
|
-
{
|
|
548
|
-
type,
|
|
549
|
-
className: cn(
|
|
550
|
-
// Layout
|
|
551
|
-
"flex-1 min-w-0 bg-transparent border-none outline-none",
|
|
552
|
-
// Typography
|
|
553
|
-
"text-h4",
|
|
554
|
-
// Colors
|
|
555
|
-
"text-ods-text-primary placeholder:text-ods-text-secondary",
|
|
556
|
-
// File input adjustments
|
|
557
|
-
"file:border-0 file:bg-transparent",
|
|
558
|
-
// Disabled
|
|
559
|
-
"disabled:cursor-not-allowed disabled:text-ods-text-disabled disabled:placeholder:text-ods-border",
|
|
560
|
-
// Touch
|
|
561
|
-
"touch-manipulation",
|
|
562
|
-
// Autofill override
|
|
563
|
-
"[&:-webkit-autofill]:[-webkit-box-shadow:0_0_0_9999px_transparent_inset] [&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-text-primary)] [&:-webkit-autofill]:[caret-color:var(--color-text-primary)] [&:-webkit-autofill]:[transition:background-color_9999s_ease-in-out_0s]"
|
|
564
|
-
),
|
|
565
|
-
ref,
|
|
566
|
-
...props
|
|
567
|
-
}
|
|
568
|
-
),
|
|
569
|
-
loading && /* @__PURE__ */ jsx2(Loader2, { className: "animate-spin flex-shrink-0 text-ods-text-secondary size-4 md:size-6" }),
|
|
570
|
-
!loading && endAdornment && /* @__PURE__ */ jsx2("span", { className: "text-h6 flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6", children: endAdornment })
|
|
571
|
-
]
|
|
572
|
-
}
|
|
573
|
-
);
|
|
574
|
-
return /* @__PURE__ */ jsx2(FieldWrapper, { label, error, errorVariant, children: content });
|
|
575
|
-
}
|
|
576
|
-
);
|
|
577
|
-
Input.displayName = "Input";
|
|
578
|
-
|
|
579
|
-
// src/components/ui/checkbox.tsx
|
|
580
|
-
init_cn();
|
|
581
|
-
import * as React5 from "react";
|
|
582
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
583
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
584
|
-
var Checkbox = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
585
|
-
CheckboxPrimitive.Root,
|
|
586
|
-
{
|
|
587
|
-
ref,
|
|
588
|
-
className: cn(
|
|
589
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-ods-border bg-ods-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-ods-accent data-[state=checked]:border-ods-accent",
|
|
590
|
-
className
|
|
591
|
-
),
|
|
592
|
-
...props,
|
|
593
|
-
children: /* @__PURE__ */ jsx5(
|
|
594
|
-
CheckboxPrimitive.Indicator,
|
|
595
|
-
{
|
|
596
|
-
className: cn("flex items-center justify-center text-ods-text-on-accent"),
|
|
597
|
-
children: /* @__PURE__ */ jsx5(CheckboxCheckmarkIcon, { size: 10 })
|
|
598
|
-
}
|
|
599
|
-
)
|
|
600
|
-
}
|
|
601
|
-
));
|
|
602
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
603
|
-
|
|
604
458
|
// src/components/ui/dropdown-menu.tsx
|
|
605
459
|
init_cn();
|
|
606
|
-
import * as
|
|
460
|
+
import * as React4 from "react";
|
|
607
461
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
608
462
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
609
463
|
|
|
610
464
|
// src/components/ui/portal-container.tsx
|
|
611
|
-
import * as
|
|
612
|
-
var PortalContainerContext =
|
|
465
|
+
import * as React3 from "react";
|
|
466
|
+
var PortalContainerContext = React3.createContext(
|
|
613
467
|
null
|
|
614
468
|
);
|
|
615
469
|
function usePortalContainer() {
|
|
616
|
-
return
|
|
470
|
+
return React3.useContext(PortalContainerContext);
|
|
617
471
|
}
|
|
618
472
|
|
|
619
473
|
// src/components/ui/dropdown-menu.tsx
|
|
620
|
-
import { jsx as
|
|
474
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
621
475
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
622
476
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
623
477
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
624
478
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
625
479
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
626
480
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
627
|
-
var DropdownMenuSubTrigger =
|
|
481
|
+
var DropdownMenuSubTrigger = React4.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
628
482
|
DropdownMenuPrimitive.SubTrigger,
|
|
629
483
|
{
|
|
630
484
|
ref,
|
|
@@ -636,12 +490,12 @@ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ..
|
|
|
636
490
|
...props,
|
|
637
491
|
children: [
|
|
638
492
|
children,
|
|
639
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ jsx3(ChevronRight, { className: "ml-auto" })
|
|
640
494
|
]
|
|
641
495
|
}
|
|
642
496
|
));
|
|
643
497
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
644
|
-
var DropdownMenuSubContent =
|
|
498
|
+
var DropdownMenuSubContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
645
499
|
DropdownMenuPrimitive.SubContent,
|
|
646
500
|
{
|
|
647
501
|
ref,
|
|
@@ -653,9 +507,9 @@ var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) =>
|
|
|
653
507
|
}
|
|
654
508
|
));
|
|
655
509
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
656
|
-
var DropdownMenuContent =
|
|
510
|
+
var DropdownMenuContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
|
|
657
511
|
const container = usePortalContainer();
|
|
658
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ jsx3(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx3(
|
|
659
513
|
DropdownMenuPrimitive.Content,
|
|
660
514
|
{
|
|
661
515
|
ref,
|
|
@@ -669,7 +523,7 @@ var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
669
523
|
) });
|
|
670
524
|
});
|
|
671
525
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
672
|
-
var DropdownMenuItem =
|
|
526
|
+
var DropdownMenuItem = React4.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
673
527
|
DropdownMenuPrimitive.Item,
|
|
674
528
|
{
|
|
675
529
|
ref,
|
|
@@ -682,7 +536,7 @@ var DropdownMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
682
536
|
}
|
|
683
537
|
));
|
|
684
538
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
685
|
-
var DropdownMenuCheckboxItem =
|
|
539
|
+
var DropdownMenuCheckboxItem = React4.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
686
540
|
DropdownMenuPrimitive.CheckboxItem,
|
|
687
541
|
{
|
|
688
542
|
ref,
|
|
@@ -693,13 +547,13 @@ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked
|
|
|
693
547
|
checked,
|
|
694
548
|
...props,
|
|
695
549
|
children: [
|
|
696
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ jsx3("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Check, { className: "h-4 w-4" }) }) }),
|
|
697
551
|
children
|
|
698
552
|
]
|
|
699
553
|
}
|
|
700
554
|
));
|
|
701
555
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
702
|
-
var DropdownMenuRadioItem =
|
|
556
|
+
var DropdownMenuRadioItem = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
703
557
|
DropdownMenuPrimitive.RadioItem,
|
|
704
558
|
{
|
|
705
559
|
ref,
|
|
@@ -709,13 +563,13 @@ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }
|
|
|
709
563
|
),
|
|
710
564
|
...props,
|
|
711
565
|
children: [
|
|
712
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ jsx3("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Circle, { className: "h-2 w-2 fill-ods-accent" }) }) }),
|
|
713
567
|
children
|
|
714
568
|
]
|
|
715
569
|
}
|
|
716
570
|
));
|
|
717
571
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
718
|
-
var DropdownMenuLabel =
|
|
572
|
+
var DropdownMenuLabel = React4.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
719
573
|
DropdownMenuPrimitive.Label,
|
|
720
574
|
{
|
|
721
575
|
ref,
|
|
@@ -728,7 +582,7 @@ var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref)
|
|
|
728
582
|
}
|
|
729
583
|
));
|
|
730
584
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
731
|
-
var DropdownMenuSeparator =
|
|
585
|
+
var DropdownMenuSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
732
586
|
DropdownMenuPrimitive.Separator,
|
|
733
587
|
{
|
|
734
588
|
ref,
|
|
@@ -741,7 +595,7 @@ var DropdownMenuShortcut = ({
|
|
|
741
595
|
className,
|
|
742
596
|
...props
|
|
743
597
|
}) => {
|
|
744
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ jsx3(
|
|
745
599
|
"span",
|
|
746
600
|
{
|
|
747
601
|
className: cn("ml-auto text-xs tracking-widest text-ods-text-secondary opacity-60", className),
|
|
@@ -751,161 +605,13 @@ var DropdownMenuShortcut = ({
|
|
|
751
605
|
};
|
|
752
606
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
753
607
|
|
|
754
|
-
// src/components/ui/skeleton.tsx
|
|
755
|
-
init_cn();
|
|
756
|
-
import * as React8 from "react";
|
|
757
|
-
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
758
|
-
var Skeleton = React8.forwardRef(
|
|
759
|
-
({ className, ...props }, ref) => {
|
|
760
|
-
return /* @__PURE__ */ jsx7(
|
|
761
|
-
"div",
|
|
762
|
-
{
|
|
763
|
-
ref,
|
|
764
|
-
className: cn(
|
|
765
|
-
"animate-pulse rounded-md bg-ods-border",
|
|
766
|
-
className
|
|
767
|
-
),
|
|
768
|
-
...props
|
|
769
|
-
}
|
|
770
|
-
);
|
|
771
|
-
}
|
|
772
|
-
);
|
|
773
|
-
Skeleton.displayName = "Skeleton";
|
|
774
|
-
var SkeletonText = React8.forwardRef(
|
|
775
|
-
({ lines = 1, className, ...props }, ref) => {
|
|
776
|
-
return /* @__PURE__ */ jsx7("div", { ref, className: cn("space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx7(
|
|
777
|
-
Skeleton,
|
|
778
|
-
{
|
|
779
|
-
className: cn(
|
|
780
|
-
"h-4",
|
|
781
|
-
i === lines - 1 && lines > 1 && "w-3/4"
|
|
782
|
-
// Last line shorter for multi-line
|
|
783
|
-
)
|
|
784
|
-
},
|
|
785
|
-
i
|
|
786
|
-
)) });
|
|
787
|
-
}
|
|
788
|
-
);
|
|
789
|
-
SkeletonText.displayName = "SkeletonText";
|
|
790
|
-
var SkeletonCard = React8.forwardRef(
|
|
791
|
-
({ showImage = false, className, ...props }, ref) => {
|
|
792
|
-
return /* @__PURE__ */ jsxs6(
|
|
793
|
-
"div",
|
|
794
|
-
{
|
|
795
|
-
ref,
|
|
796
|
-
className: cn(
|
|
797
|
-
"rounded-lg border border-ods-border overflow-hidden",
|
|
798
|
-
className
|
|
799
|
-
),
|
|
800
|
-
...props,
|
|
801
|
-
children: [
|
|
802
|
-
showImage && /* @__PURE__ */ jsx7(Skeleton, { className: "h-48 w-full" }),
|
|
803
|
-
/* @__PURE__ */ jsxs6("div", { className: "p-6", children: [
|
|
804
|
-
/* @__PURE__ */ jsx7(Skeleton, { className: "h-6 w-3/4 mb-4" }),
|
|
805
|
-
/* @__PURE__ */ jsx7(SkeletonText, { lines: 3 })
|
|
806
|
-
] })
|
|
807
|
-
]
|
|
808
|
-
}
|
|
809
|
-
);
|
|
810
|
-
}
|
|
811
|
-
);
|
|
812
|
-
SkeletonCard.displayName = "SkeletonCard";
|
|
813
|
-
var SkeletonGrid = React8.forwardRef(
|
|
814
|
-
({ columns = 3, items = 6, showImages = false, className, ...props }, ref) => {
|
|
815
|
-
return /* @__PURE__ */ jsx7(
|
|
816
|
-
"div",
|
|
817
|
-
{
|
|
818
|
-
ref,
|
|
819
|
-
className: cn(
|
|
820
|
-
`grid grid-cols-1 gap-6`,
|
|
821
|
-
columns === 2 && "md:grid-cols-2",
|
|
822
|
-
columns === 3 && "md:grid-cols-3",
|
|
823
|
-
columns === 4 && "md:grid-cols-4",
|
|
824
|
-
className
|
|
825
|
-
),
|
|
826
|
-
...props,
|
|
827
|
-
children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsx7(SkeletonCard, { showImage: showImages }, i))
|
|
828
|
-
}
|
|
829
|
-
);
|
|
830
|
-
}
|
|
831
|
-
);
|
|
832
|
-
SkeletonGrid.displayName = "SkeletonGrid";
|
|
833
|
-
var SkeletonButton = React8.forwardRef(
|
|
834
|
-
({ size = "default", className, ...props }, ref) => {
|
|
835
|
-
const sizeClasses = {
|
|
836
|
-
sm: "h-8 w-20",
|
|
837
|
-
default: "h-10 w-32",
|
|
838
|
-
lg: "h-12 w-40"
|
|
839
|
-
};
|
|
840
|
-
return /* @__PURE__ */ jsx7(
|
|
841
|
-
Skeleton,
|
|
842
|
-
{
|
|
843
|
-
ref,
|
|
844
|
-
className: cn(
|
|
845
|
-
"rounded-lg",
|
|
846
|
-
sizeClasses[size],
|
|
847
|
-
className
|
|
848
|
-
),
|
|
849
|
-
...props
|
|
850
|
-
}
|
|
851
|
-
);
|
|
852
|
-
}
|
|
853
|
-
);
|
|
854
|
-
SkeletonButton.displayName = "SkeletonButton";
|
|
855
|
-
var SkeletonHeading = React8.forwardRef(
|
|
856
|
-
({ level = 1, className, ...props }, ref) => {
|
|
857
|
-
const heightClasses = {
|
|
858
|
-
1: "h-12",
|
|
859
|
-
2: "h-10",
|
|
860
|
-
3: "h-8",
|
|
861
|
-
4: "h-7",
|
|
862
|
-
5: "h-6",
|
|
863
|
-
6: "h-5"
|
|
864
|
-
};
|
|
865
|
-
return /* @__PURE__ */ jsx7(
|
|
866
|
-
Skeleton,
|
|
867
|
-
{
|
|
868
|
-
ref,
|
|
869
|
-
className: cn(
|
|
870
|
-
heightClasses[level],
|
|
871
|
-
"w-3/4",
|
|
872
|
-
className
|
|
873
|
-
),
|
|
874
|
-
...props
|
|
875
|
-
}
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
);
|
|
879
|
-
SkeletonHeading.displayName = "SkeletonHeading";
|
|
880
|
-
var SkeletonList = React8.forwardRef(
|
|
881
|
-
({ items = 5, className, ...props }, ref) => {
|
|
882
|
-
return /* @__PURE__ */ jsx7("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
|
|
883
|
-
/* @__PURE__ */ jsx7(Skeleton, { className: "h-10 w-10 rounded-full flex-shrink-0" }),
|
|
884
|
-
/* @__PURE__ */ jsxs6("div", { className: "flex-1", children: [
|
|
885
|
-
/* @__PURE__ */ jsx7(Skeleton, { className: "h-4 w-1/3 mb-1" }),
|
|
886
|
-
/* @__PURE__ */ jsx7(Skeleton, { className: "h-3 w-1/2" })
|
|
887
|
-
] })
|
|
888
|
-
] }, i)) });
|
|
889
|
-
}
|
|
890
|
-
);
|
|
891
|
-
SkeletonList.displayName = "SkeletonList";
|
|
892
|
-
var SkeletonNavigation = React8.forwardRef(
|
|
893
|
-
({ items = 6, className, ...props }, ref) => {
|
|
894
|
-
return /* @__PURE__ */ jsx7("div", { ref, className: cn("flex items-center gap-6", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsx7(Skeleton, { className: "h-5 w-20" }, i)) });
|
|
895
|
-
}
|
|
896
|
-
);
|
|
897
|
-
SkeletonNavigation.displayName = "SkeletonNavigation";
|
|
898
|
-
|
|
899
608
|
export {
|
|
900
|
-
FieldWrapper,
|
|
901
|
-
Input,
|
|
902
609
|
buttonVariants,
|
|
903
610
|
Button,
|
|
904
611
|
init_button,
|
|
905
612
|
SplitButton,
|
|
906
613
|
init_split_button,
|
|
907
614
|
init_button2,
|
|
908
|
-
Checkbox,
|
|
909
615
|
PortalContainerContext,
|
|
910
616
|
usePortalContainer,
|
|
911
617
|
DropdownMenu,
|
|
@@ -922,14 +628,6 @@ export {
|
|
|
922
628
|
DropdownMenuRadioItem,
|
|
923
629
|
DropdownMenuLabel,
|
|
924
630
|
DropdownMenuSeparator,
|
|
925
|
-
DropdownMenuShortcut
|
|
926
|
-
Skeleton,
|
|
927
|
-
SkeletonText,
|
|
928
|
-
SkeletonCard,
|
|
929
|
-
SkeletonGrid,
|
|
930
|
-
SkeletonButton,
|
|
931
|
-
SkeletonHeading,
|
|
932
|
-
SkeletonList,
|
|
933
|
-
SkeletonNavigation
|
|
631
|
+
DropdownMenuShortcut
|
|
934
632
|
};
|
|
935
|
-
//# sourceMappingURL=chunk-
|
|
633
|
+
//# sourceMappingURL=chunk-EL6QLAWX.js.map
|