@levo-so/studio 0.3.20 → 0.3.22
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/BillingStep-ioR7mSo5.js +249 -0
- package/BookingCard-DEkBXh7O.js +646 -0
- package/DateTimeWidget-B-dajfHj.js +253 -0
- package/{EntryCard-9yv0KJTB.js → EntryCard-CZfljZAY.js} +4 -4
- package/{KBChatWidget-D39Z3HIl.js → KBChatWidget-BXRRgelS.js} +1 -1
- package/{LoginCard-D9vEC_g0.js → LoginCard-BVjeN1J0.js} +3 -3
- package/{LoginForm-kI_b_7Tc.js → LoginForm-DQVwLQCx.js} +19 -19
- package/{LoginModal-C-9BhmoO.js → LoginModal-C6TdAh-0.js} +5 -6
- package/{MessageCard-Nsxr98n6.js → MessageCard-B5MbVDJ8.js} +2 -2
- package/{MessageFooter-K4Zd_eFO.js → MessageFooter-DrlKXE9a.js} +1 -2
- package/{PendingApprovalCard-CzoBgYNy.js → PendingApprovalCard-5iFAeE1s.js} +3 -3
- package/{PhoneWidget-BtMMfGLu.js → PhoneWidget-B4KHlFjT.js} +6 -7
- package/{Popover-Iis-qOn1.js → Popover-y8XkbYNh.js} +7 -7
- package/{PopupBody-BI-MJqmd-B3ltSYMP.js → PopupBody-DWM55Zh5-DuOPsCAn.js} +53 -55
- package/PopupDialog-DwAAJ8JS-9xm5jrXW.js +261 -0
- package/PopupRenderer-BVtV4b9I-BdPryfLY.js +208 -0
- package/{ProfileCard-Chg20HBa.js → ProfileCard-WgFT-T4U.js} +5 -5
- package/{RichTextWidget-C3Y-0pNy.js → RichTextWidget-DKYm1cSW.js} +120 -123
- package/{Spinner-D5spB_Mv.js → Spinner-LdYfm4S7.js} +1 -1
- package/{VerifyButton-BwTbzSwS.js → VerifyButton-CNq78zG4.js} +5 -7
- package/collection.d.ts +9 -1
- package/collection.js +1 -1
- package/dialog-CU5nHKc5.js +119 -0
- package/dist-IMRD6dob.js +3858 -0
- package/index.js +3280 -2848
- package/{inlineRteTheme-BOAno9MG.js → inlineRteTheme-DFg69bqP.js} +50 -37
- package/{kbChat-zXbn56Zb.js → kbChat-eFsau7hG.js} +2 -2
- package/package.json +42 -43
- package/{pillChrome-QDjBETmP.js → pillChrome-Dy3ApFI5.js} +5 -5
- package/price-BUDkN5Me.js +823 -0
- package/script.esm-uVCZU25S.js +62 -0
- package/studio.css +1 -1
- package/themeMapping-DH_NoXK8-H-EHXbBt.js +156 -0
- package/useCheckout-gscmzFLD.js +179 -0
- package/useLogin-BYVekOp9.js +237 -0
- package/AuthProvider-B5NfFwbG.js +0 -118
- package/BillingStep-BTDOMFHV.js +0 -181
- package/Button-DXLWW3dp.js +0 -504
- package/CollectionField-BZmxRB5D.js +0 -270
- package/CollectionInput-DyNbxIZ8.js +0 -147
- package/DateTimeWidget-Bt1UcCnx.js +0 -255
- package/Dialog-CPE8yUqK.js +0 -130
- package/ModalManager-CzH36UIk.js +0 -32
- package/PopupRenderer-D66Gx63H-ChI4WBer.js +0 -389
- package/RteThemeProvider-owl5oajj.js +0 -20
- package/ThemeProvider-CqPHzkW9.js +0 -116
- package/Tooltip-DHU1QD-n.js +0 -67
- package/authentication-BXQbxiPP.js +0 -36
- package/bookingCard-g0n3ksiC.js +0 -605
- package/createThemeExtension-C0PSYy0J.js +0 -15
- package/dialog-8LH_ihs4.js +0 -92
- package/dist-Dijjo-5m.js +0 -3794
- package/generateRadiusScale-RROt8ppa.js +0 -71
- package/inlineCollectionTheme-uhBXoF1F.js +0 -19
- package/popupState-JmpeKzgM-UECLsSbL.js +0 -100
- package/rteTheme.cssm-W4gTOijw.js +0 -4
- package/theme.cssm-Czj9sF4X.js +0 -4
- package/themeMapping-Bi9Rcr5G-C7UXWE6o.js +0 -61
- package/useCheckout-DFalmfEQ.js +0 -161
- package/useLogin-CfnGrLdO.js +0 -127
- package/usePopupRedirect-CAAdcpaW-DdME0F7f.js +0 -82
- /package/{Beams-WJN38XSv.js → Beams-KsU_ixpY.js} +0 -0
- /package/{Dots-DggLz5I7.js → Dots-C_ja_PPu.js} +0 -0
- /package/{Gradient-BSWJAu0a.js → Gradient-CDGFLaA-.js} +0 -0
- /package/{Grid-BFKl0MUt.js → Grid-C22rTkrs.js} +0 -0
- /package/{Waves-BPEgTYoO.js → Waves-Cl5rKcFJ.js} +0 -0
- /package/{card-5ooLmYSr.js → card-BIebVDA0.js} +0 -0
- /package/{cn-B6c1DjO_.js → cn-CzJDhklM.js} +0 -0
- /package/{fontSize-B-ba6pvx.js → fontSize-DowUyWe-.js} +0 -0
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { M as e, P as t, w as n } from "./price-BUDkN5Me.js";
|
|
2
|
+
import { c as r } from "react/compiler-runtime";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import a from "clsx";
|
|
5
|
+
import { Extension as o, findParentNodeClosestToPos as s } from "@tiptap/core";
|
|
6
|
+
import { NodeSelection as c } from "@tiptap/pm/state";
|
|
7
|
+
import { CellSelection as l, cellAround as u } from "@tiptap/pm/tables";
|
|
5
8
|
//#region ../../libraries/editor-core/dist/utils/getSelectedNodeOfType.js
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
if (e instanceof
|
|
9
|
-
|
|
9
|
+
function d(e, t) {
|
|
10
|
+
let n = [], r = new Set(t);
|
|
11
|
+
if (e instanceof l) return e.forEachCell((e, t) => {
|
|
12
|
+
r.has(e.type.name) && n.push({
|
|
10
13
|
node: e,
|
|
11
14
|
pos: t
|
|
12
15
|
});
|
|
13
|
-
}),
|
|
14
|
-
if (e instanceof
|
|
15
|
-
let { node: t, from:
|
|
16
|
-
return t &&
|
|
16
|
+
}), n;
|
|
17
|
+
if (e instanceof c) {
|
|
18
|
+
let { node: t, from: i } = e;
|
|
19
|
+
return t && r.has(t.type.name) && n.push({
|
|
17
20
|
node: t,
|
|
18
|
-
pos:
|
|
19
|
-
}),
|
|
21
|
+
pos: i
|
|
22
|
+
}), n;
|
|
20
23
|
}
|
|
21
|
-
let { $anchor:
|
|
22
|
-
if (
|
|
23
|
-
let t = e.$anchor.doc.nodeAt(
|
|
24
|
-
if (t &&
|
|
24
|
+
let { $anchor: i } = e, a = u(i);
|
|
25
|
+
if (a) {
|
|
26
|
+
let t = e.$anchor.doc.nodeAt(a.pos);
|
|
27
|
+
if (t && r.has(t.type.name)) return n.push({
|
|
25
28
|
node: t,
|
|
26
|
-
pos:
|
|
27
|
-
}),
|
|
29
|
+
pos: a.pos
|
|
30
|
+
}), n;
|
|
28
31
|
}
|
|
29
|
-
let
|
|
30
|
-
return
|
|
31
|
-
node:
|
|
32
|
-
pos:
|
|
33
|
-
}),
|
|
32
|
+
let o = s(i, (e) => r.has(e.type.name));
|
|
33
|
+
return o && n.push({
|
|
34
|
+
node: o.node,
|
|
35
|
+
pos: o.pos
|
|
36
|
+
}), n;
|
|
34
37
|
}
|
|
35
38
|
//#endregion
|
|
36
39
|
//#region ../../libraries/editor-core/dist/utils/updateNodesAttr.js
|
|
37
|
-
function
|
|
40
|
+
function f(e, t, n, r) {
|
|
38
41
|
if (!t.length) return !1;
|
|
39
42
|
let i = !1;
|
|
40
43
|
for (let { pos: a } of t) {
|
|
@@ -49,12 +52,12 @@ function s(e, t, n, r) {
|
|
|
49
52
|
}
|
|
50
53
|
//#endregion
|
|
51
54
|
//#region ../../libraries/editor-core/dist/extensions/nodeStyling/nodeAlignment.js
|
|
52
|
-
function
|
|
55
|
+
function p(e, t, n) {
|
|
53
56
|
if (e.length === 0) return null;
|
|
54
57
|
for (let r of e) if ((r.node.attrs?.[t] ?? null) !== n) return n;
|
|
55
58
|
return null;
|
|
56
59
|
}
|
|
57
|
-
var
|
|
60
|
+
var m = o.create({
|
|
58
61
|
name: "textAlign",
|
|
59
62
|
addOptions() {
|
|
60
63
|
return {
|
|
@@ -115,18 +118,18 @@ var l = t.create({
|
|
|
115
118
|
},
|
|
116
119
|
addCommands() {
|
|
117
120
|
let e = (e, t) => (n) => ({ state: r, tr: i }) => {
|
|
118
|
-
let a =
|
|
119
|
-
return a.length === 0 ? !1 :
|
|
121
|
+
let a = d(r.selection, this.options.types);
|
|
122
|
+
return a.length === 0 ? !1 : f(i, a, e, t(a, n));
|
|
120
123
|
};
|
|
121
124
|
return {
|
|
122
125
|
setNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : t),
|
|
123
126
|
unsetNodeTextAlign: e("textAlign", () => null),
|
|
124
|
-
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null :
|
|
127
|
+
toggleNodeTextAlign: e("textAlign", (e, t) => !t || !this.options.textAlignValues.includes(t) ? null : p(e, "textAlign", t)),
|
|
125
128
|
setNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : t),
|
|
126
129
|
unsetNodeVAlign: e("nodeVerticalAlign", () => null),
|
|
127
|
-
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null :
|
|
130
|
+
toggleNodeVAlign: e("nodeVerticalAlign", (e, t) => !t || !this.options.verticalAlignValues.includes(t) ? null : p(e, "nodeVerticalAlign", t)),
|
|
128
131
|
setNodeAlignment: (e, t) => ({ state: n, tr: r }) => {
|
|
129
|
-
let i =
|
|
132
|
+
let i = d(n.selection, this.options.types);
|
|
130
133
|
if (i.length === 0) return !1;
|
|
131
134
|
let a = !1;
|
|
132
135
|
for (let { node: n, pos: o } of i) {
|
|
@@ -136,7 +139,7 @@ var l = t.create({
|
|
|
136
139
|
return a;
|
|
137
140
|
},
|
|
138
141
|
unsetNodeAlignment: () => ({ state: e, tr: t }) => {
|
|
139
|
-
let n =
|
|
142
|
+
let n = d(e.selection, this.options.types);
|
|
140
143
|
if (n.length === 0) return !1;
|
|
141
144
|
let r = !1;
|
|
142
145
|
for (let { node: e, pos: i } of n) {
|
|
@@ -154,10 +157,20 @@ var l = t.create({
|
|
|
154
157
|
}
|
|
155
158
|
};
|
|
156
159
|
}
|
|
157
|
-
}),
|
|
160
|
+
}), h = "_12oclrg0", g = "u2k86a0", _ = {
|
|
158
161
|
baseSpacing: "var(--_1q6hy0o0)",
|
|
159
162
|
highlight: "var(--_1q6hy0o1)",
|
|
160
163
|
highlightForeground: "var(--_1q6hy0o2)"
|
|
161
|
-
})
|
|
164
|
+
}, v = (t) => {
|
|
165
|
+
let o = r(7), { children: s, theme: c } = t, l = c?.className, u;
|
|
166
|
+
o[0] === l ? u = o[1] : (u = a(e, g, l), o[0] = l, o[1] = u);
|
|
167
|
+
let d = c?.style, f = c?.portalToThemeRoot, p;
|
|
168
|
+
return o[2] !== s || o[3] !== u || o[4] !== d || o[5] !== f ? (p = /* @__PURE__ */ i(n, {
|
|
169
|
+
className: u,
|
|
170
|
+
style: d,
|
|
171
|
+
portalToThemeRoot: f,
|
|
172
|
+
children: s
|
|
173
|
+
}), o[2] = s, o[3] = u, o[4] = d, o[5] = f, o[6] = p) : p = o[6], p;
|
|
174
|
+
}, y = t(_);
|
|
162
175
|
//#endregion
|
|
163
|
-
export {
|
|
176
|
+
export { m as a, h as i, v as n, f as o, g as r, d as s, y as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as e, a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./pillChrome-
|
|
2
|
+
import { C as e, a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p } from "./pillChrome-Dy3ApFI5.js";
|
|
3
3
|
import { useEffect as m, useRef as h, useState as g } from "react";
|
|
4
4
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowUp as y, Sparkles as b } from "lucide-react";
|
|
@@ -64,7 +64,7 @@ var x = (t) => e("active_agent", t), S = (e) => {
|
|
|
64
64
|
e,
|
|
65
65
|
r
|
|
66
66
|
]), i;
|
|
67
|
-
}, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-
|
|
67
|
+
}, T = (...e) => e.filter(Boolean).join(" "), E = () => import("./KBChatWidget-BXRRgelS.js"), D = (e) => {
|
|
68
68
|
let [t, n] = g(null), [r, i] = g(!1), [a, o] = g("");
|
|
69
69
|
return t ? /* @__PURE__ */ _(t, {
|
|
70
70
|
initialOpen: !0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/studio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo Studio components and utilities for building block-based pages",
|
|
6
6
|
"type": "module",
|
|
@@ -35,50 +35,50 @@
|
|
|
35
35
|
"@vanilla-extract/dynamic": "2.1.5",
|
|
36
36
|
"@vanilla-extract/recipes": "0.5.7",
|
|
37
37
|
"@theinternetfolks/snowflake": "1.3.0",
|
|
38
|
-
"@tiptap/core": "3.30.
|
|
39
|
-
"@tiptap/extension-subscript": "3.30.
|
|
40
|
-
"@tiptap/extension-superscript": "3.30.
|
|
41
|
-
"@tiptap/extension-typography": "3.30.
|
|
42
|
-
"@tiptap/extension-unique-id": "3.30.
|
|
43
|
-
"@tiptap/extensions": "3.30.
|
|
44
|
-
"@tiptap/pm": "3.30.
|
|
45
|
-
"@tiptap/react": "3.30.
|
|
46
|
-
"@tiptap/starter-kit": "3.30.
|
|
38
|
+
"@tiptap/core": "3.30.6",
|
|
39
|
+
"@tiptap/extension-subscript": "3.30.6",
|
|
40
|
+
"@tiptap/extension-superscript": "3.30.6",
|
|
41
|
+
"@tiptap/extension-typography": "3.30.6",
|
|
42
|
+
"@tiptap/extension-unique-id": "3.30.6",
|
|
43
|
+
"@tiptap/extensions": "3.30.6",
|
|
44
|
+
"@tiptap/pm": "3.30.6",
|
|
45
|
+
"@tiptap/react": "3.30.6",
|
|
46
|
+
"@tiptap/starter-kit": "3.30.6",
|
|
47
47
|
"altcha": "2.0.2",
|
|
48
48
|
"react-dropzone": "14.3.8",
|
|
49
49
|
"react-hook-form": "7.69.0",
|
|
50
50
|
"react-number-format": "5.4.4",
|
|
51
51
|
"react-phone-number-input": "3.4.14",
|
|
52
52
|
"react-select-async-paginate": "0.7.5",
|
|
53
|
-
"@tiptap/extension-blockquote": "3.30.
|
|
54
|
-
"@tiptap/extension-code-block": "3.30.
|
|
55
|
-
"@tiptap/extension-details": "3.30.
|
|
56
|
-
"@tiptap/extension-document": "3.30.
|
|
57
|
-
"@tiptap/extension-horizontal-rule": "3.30.
|
|
58
|
-
"@tiptap/extension-image": "3.30.
|
|
59
|
-
"@tiptap/extension-link": "3.30.
|
|
60
|
-
"@tiptap/extension-list": "3.30.
|
|
61
|
-
"@tiptap/extension-mention": "3.30.
|
|
62
|
-
"@tiptap/extension-table": "3.30.
|
|
63
|
-
"@tiptap/extension-text-style": "3.30.
|
|
53
|
+
"@tiptap/extension-blockquote": "3.30.6",
|
|
54
|
+
"@tiptap/extension-code-block": "3.30.6",
|
|
55
|
+
"@tiptap/extension-details": "3.30.6",
|
|
56
|
+
"@tiptap/extension-document": "3.30.6",
|
|
57
|
+
"@tiptap/extension-horizontal-rule": "3.30.6",
|
|
58
|
+
"@tiptap/extension-image": "3.30.6",
|
|
59
|
+
"@tiptap/extension-link": "3.30.6",
|
|
60
|
+
"@tiptap/extension-list": "3.30.6",
|
|
61
|
+
"@tiptap/extension-mention": "3.30.6",
|
|
62
|
+
"@tiptap/extension-table": "3.30.6",
|
|
63
|
+
"@tiptap/extension-text-style": "3.30.6",
|
|
64
64
|
"lowlight": "3.1.0",
|
|
65
|
-
"@tiptap/extension-bold": "3.30.
|
|
66
|
-
"@tiptap/extension-bullet-list": "3.30.
|
|
67
|
-
"@tiptap/extension-code": "3.30.
|
|
68
|
-
"@tiptap/extension-color": "3.30.
|
|
69
|
-
"@tiptap/extension-hard-break": "3.30.
|
|
70
|
-
"@tiptap/extension-heading": "3.30.
|
|
71
|
-
"@tiptap/extension-highlight": "3.30.
|
|
72
|
-
"@tiptap/extension-italic": "3.30.
|
|
73
|
-
"@tiptap/extension-list-item": "3.30.
|
|
74
|
-
"@tiptap/extension-ordered-list": "3.30.
|
|
75
|
-
"@tiptap/extension-paragraph": "3.30.
|
|
76
|
-
"@tiptap/extension-strike": "3.30.
|
|
77
|
-
"@tiptap/extension-text": "3.30.
|
|
78
|
-
"@tiptap/extension-underline": "3.30.
|
|
79
|
-
"@tiptap/extension-youtube": "3.30.
|
|
80
|
-
"@tiptap/html": "3.30.
|
|
81
|
-
"@tiptap/static-renderer": "3.30.
|
|
65
|
+
"@tiptap/extension-bold": "3.30.6",
|
|
66
|
+
"@tiptap/extension-bullet-list": "3.30.6",
|
|
67
|
+
"@tiptap/extension-code": "3.30.6",
|
|
68
|
+
"@tiptap/extension-color": "3.30.6",
|
|
69
|
+
"@tiptap/extension-hard-break": "3.30.6",
|
|
70
|
+
"@tiptap/extension-heading": "3.30.6",
|
|
71
|
+
"@tiptap/extension-highlight": "3.30.6",
|
|
72
|
+
"@tiptap/extension-italic": "3.30.6",
|
|
73
|
+
"@tiptap/extension-list-item": "3.30.6",
|
|
74
|
+
"@tiptap/extension-ordered-list": "3.30.6",
|
|
75
|
+
"@tiptap/extension-paragraph": "3.30.6",
|
|
76
|
+
"@tiptap/extension-strike": "3.30.6",
|
|
77
|
+
"@tiptap/extension-text": "3.30.6",
|
|
78
|
+
"@tiptap/extension-underline": "3.30.6",
|
|
79
|
+
"@tiptap/extension-youtube": "3.30.6",
|
|
80
|
+
"@tiptap/html": "3.30.6",
|
|
81
|
+
"@tiptap/static-renderer": "3.30.6",
|
|
82
82
|
"@nanostores/persistent": "1.3.3",
|
|
83
83
|
"@nanostores/react": "0.8.4",
|
|
84
84
|
"nanostores": "0.11.4",
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
"@assistant-ui/store": "0.3.13",
|
|
90
90
|
"@assistant-ui/tap": "0.9.17",
|
|
91
91
|
"remark-gfm": "4.0.1",
|
|
92
|
-
"@cashfreepayments/cashfree-js": "1.0.7",
|
|
93
92
|
"@emotion/is-prop-valid": "1.3.1",
|
|
94
93
|
"@stripe/react-stripe-js": "3.1.1",
|
|
95
94
|
"@stripe/stripe-js": "5.5.0",
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
"clsx": "2.1.1",
|
|
98
97
|
"culori": "4.0.1",
|
|
99
98
|
"dayjs": "1.11.13",
|
|
100
|
-
"deepmerge-ts": "
|
|
99
|
+
"deepmerge-ts": "8.0.2",
|
|
101
100
|
"embla-carousel-auto-scroll": "8.6.0",
|
|
102
101
|
"embla-carousel-autoplay": "8.6.0",
|
|
103
102
|
"embla-carousel-react": "8.6.0",
|
|
@@ -121,9 +120,9 @@
|
|
|
121
120
|
"yup": "1.7.1"
|
|
122
121
|
},
|
|
123
122
|
"peerDependencies": {
|
|
124
|
-
"@levo-so/insights": "0.3.
|
|
125
|
-
"@levo-so/core": "0.3.
|
|
126
|
-
"@levo-so/react": "0.3.
|
|
123
|
+
"@levo-so/insights": "0.3.22",
|
|
124
|
+
"@levo-so/core": "0.3.22",
|
|
125
|
+
"@levo-so/react": "0.3.22",
|
|
127
126
|
"react": ">=19",
|
|
128
127
|
"next": ">=14",
|
|
129
128
|
"react-dom": ">=19"
|
|
@@ -38,13 +38,13 @@ var e = "disabled:cursor-not-allowed disabled:opacity-40", t = (e) => {
|
|
|
38
38
|
let t = e.value.length;
|
|
39
39
|
e.setSelectionRange(t, t);
|
|
40
40
|
});
|
|
41
|
-
}, l = (e) => typeof e == "function" ? e() : e ?? {}, u = "w-72", d = "ai-chat-pill-gradient relative rounded-[30px] p-[2px] transition-shadow duration-300", f = "shadow-lg shadow-zinc-950/10", p = "shadow-md", m = "ai-chat-pill-surface min-h-14 w-full rounded-[28px] bg-white p-1.5", h = "ai-chat-pill-surface--stacked", g = "ai-chat-pill-input relative min-w-0", _ = "ai-chat-pill-actions flex items-center gap-1.5", v = "ai-chat-pill-spark flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full text-blue-500 transition-[background-color,transform] duration-150 hover:bg-zinc-50 active:scale-95", y = "flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-[transform,box-shadow] duration-150 hover:scale-105 hover:shadow-md active:scale-95", b = "block h-6 max-h-[120px] w-full resize-none overflow-y-auto bg-transparent text-base text-zinc-900 leading-6 placeholder:text-zinc-400 focus:outline-none", x =
|
|
41
|
+
}, l = (e) => typeof e == "function" ? e() : e ?? {}, u = "w-72", d = "ai-chat-pill-gradient relative rounded-[30px] p-[2px] transition-shadow duration-300", f = "shadow-lg shadow-zinc-950/10", p = "shadow-md", m = "ai-chat-pill-surface min-h-14 w-full rounded-[28px] bg-white p-1.5", h = "ai-chat-pill-surface--stacked", g = "ai-chat-pill-input relative min-w-0", _ = "ai-chat-pill-actions flex items-center gap-1.5", v = "ai-chat-pill-spark flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full text-blue-500 transition-[background-color,transform] duration-150 hover:bg-zinc-50 active:scale-95", y = "flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-[transform,box-shadow] duration-150 hover:scale-105 hover:shadow-md active:scale-95", b = "block h-6 max-h-[120px] w-full resize-none overflow-y-auto bg-transparent text-base text-zinc-900 leading-6 placeholder:text-zinc-400 focus:outline-none", x = (e, t) => {
|
|
42
42
|
e.classList.remove(h), t.style.height = "auto";
|
|
43
|
-
let n = t.scrollHeight >
|
|
43
|
+
let n = t.scrollHeight > 28;
|
|
44
44
|
return e.classList.toggle(h, n), s(t, 120), n;
|
|
45
|
-
},
|
|
45
|
+
}, S = "ai-chat-pill-label pointer-events-none absolute inset-y-0 left-0 flex max-w-full items-center truncate bg-clip-text font-semibold text-[15px] text-transparent", C = {
|
|
46
46
|
backgroundColor: "var(--color-brand, #0a0a0a)",
|
|
47
47
|
color: "var(--color-brand-foreground, #fff)"
|
|
48
|
-
},
|
|
48
|
+
}, w = (e) => e ? `Ask ${e}` : "Ask AI";
|
|
49
49
|
//#endregion
|
|
50
|
-
export { o as C, a as S, e as _, y as a, i as b, f as c, h as d, b as f, l as g,
|
|
50
|
+
export { o as C, a as S, e as _, y as a, i as b, f as c, h as d, b as f, l as g, w as h, S as i, v as l, x as m, d as n, C as o, u as p, g as r, p as s, _ as t, m as u, s as v, r as x, c as y };
|