@orion-ds/react 4.2.8 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.module.css +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.module.css +1 -1
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +2 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.module.css +1 -1
- package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
- package/dist/components/NavTree/NavTree.types.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.module.css +1 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
- package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/examples/LandingPage.example.d.ts.map +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.mjs +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.mjs +62 -33
- package/dist/index101.cjs +1 -1
- package/dist/index101.mjs +16 -24
- package/dist/index102.cjs +1 -1
- package/dist/index102.mjs +28 -26
- package/dist/index103.cjs +1 -1
- package/dist/index103.mjs +30 -40
- package/dist/index104.cjs +1 -1
- package/dist/index104.mjs +40 -53
- package/dist/index105.cjs +1 -1
- package/dist/index105.mjs +36 -62
- package/dist/index106.cjs +1 -1
- package/dist/index106.mjs +53 -29
- package/dist/index107.cjs +1 -1
- package/dist/index107.mjs +46 -20
- package/dist/index108.cjs +1 -1
- package/dist/index108.mjs +14 -18
- package/dist/index109.cjs +1 -1
- package/dist/index109.mjs +28 -30
- package/dist/index11.cjs +1 -1
- package/dist/index11.mjs +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.mjs +65 -30
- package/dist/index111.cjs +1 -1
- package/dist/index111.mjs +24 -46
- package/dist/index112.cjs +1 -1
- package/dist/index112.mjs +35 -52
- package/dist/index113.cjs +1 -1
- package/dist/index113.mjs +30 -28
- package/dist/index114.cjs +1 -1
- package/dist/index114.mjs +32 -44
- package/dist/index115.cjs +1 -1
- package/dist/index115.mjs +57 -12
- package/dist/index116.cjs +1 -1
- package/dist/index116.mjs +18 -30
- package/dist/index117.cjs +1 -1
- package/dist/index117.mjs +12 -32
- package/dist/index118.cjs +1 -1
- package/dist/index118.mjs +64 -33
- package/dist/index119.cjs +1 -1
- package/dist/index119.mjs +28 -30
- package/dist/index12.cjs +1 -1
- package/dist/index12.mjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.mjs +32 -35
- package/dist/index121.cjs +1 -1
- package/dist/index121.mjs +76 -36
- package/dist/index122.cjs +1 -1
- package/dist/index122.mjs +33 -20
- package/dist/index123.cjs +1 -1
- package/dist/index123.mjs +40 -14
- package/dist/index124.cjs +1 -1
- package/dist/index124.mjs +53 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.mjs +42 -18
- package/dist/index126.cjs +1 -1
- package/dist/index126.mjs +19 -37
- package/dist/index127.cjs +1 -1
- package/dist/index127.mjs +37 -29
- package/dist/index128.cjs +1 -1
- package/dist/index128.mjs +28 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.mjs +36 -28
- package/dist/index13.cjs +1 -1
- package/dist/index13.mjs +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.mjs +18 -28
- package/dist/index131.cjs +1 -1
- package/dist/index131.mjs +18 -28
- package/dist/index132.cjs +1 -1
- package/dist/index132.mjs +234 -42
- package/dist/index133.cjs +1 -1
- package/dist/index133.mjs +34 -53
- package/dist/index134.cjs +1 -1
- package/dist/index134.mjs +44 -37
- package/dist/index135.cjs +1 -1
- package/dist/index135.mjs +170 -50
- package/dist/index136.cjs +1 -1
- package/dist/index136.mjs +186 -19
- package/dist/index137.cjs +1 -1
- package/dist/index137.mjs +27 -153
- package/dist/index138.cjs +1 -1
- package/dist/index138.mjs +88 -216
- package/dist/index139.cjs +1 -1
- package/dist/index139.mjs +53 -29
- package/dist/index14.cjs +1 -1
- package/dist/index14.mjs +1 -1
- package/dist/index140.cjs +1 -1
- package/dist/index140.mjs +66 -42
- package/dist/index141.cjs +1 -1
- package/dist/index141.mjs +124 -44
- package/dist/index142.cjs +1 -1
- package/dist/index142.mjs +108 -16
- package/dist/index143.cjs +1 -1
- package/dist/index143.mjs +111 -46
- package/dist/index144.cjs +1 -1
- package/dist/index144.mjs +122 -64
- package/dist/index145.cjs +1 -1
- package/dist/index145.mjs +214 -30
- package/dist/index146.cjs +1 -1
- package/dist/index146.mjs +41 -39
- package/dist/index147.cjs +1 -1
- package/dist/index147.mjs +27 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.mjs +46 -62
- package/dist/index15.cjs +1 -1
- package/dist/index15.mjs +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.mjs +24 -42
- package/dist/index151.cjs +1 -1
- package/dist/index151.mjs +24 -24
- package/dist/index152.cjs +1 -1
- package/dist/index152.mjs +20 -40
- package/dist/index153.cjs +1 -1
- package/dist/index153.mjs +24 -18
- package/dist/index154.cjs +1 -1
- package/dist/index154.mjs +28 -76
- package/dist/index155.cjs +1 -1
- package/dist/index155.mjs +39 -66
- package/dist/index156.cjs +1 -1
- package/dist/index156.mjs +22 -65
- package/dist/index157.cjs +1 -1
- package/dist/index157.mjs +63 -39
- package/dist/index158.cjs +1 -1
- package/dist/index158.mjs +12 -234
- package/dist/index159.cjs +1 -1
- package/dist/index159.mjs +34 -34
- package/dist/index16.cjs +1 -1
- package/dist/index16.mjs +73 -69
- package/dist/index160.cjs +1 -1
- package/dist/index160.mjs +21 -44
- package/dist/index161.cjs +1 -1
- package/dist/index161.mjs +42 -170
- package/dist/index162.cjs +1 -1
- package/dist/index162.mjs +21 -186
- package/dist/index163.cjs +1 -1
- package/dist/index163.mjs +29 -29
- package/dist/index164.cjs +1 -1
- package/dist/index164.mjs +44 -90
- package/dist/index165.cjs +1 -1
- package/dist/index165.mjs +63 -53
- package/dist/index166.cjs +1 -1
- package/dist/index166.mjs +28 -66
- package/dist/index167.cjs +1 -1
- package/dist/index167.mjs +20 -124
- package/dist/index168.cjs +1 -1
- package/dist/index168.mjs +67 -108
- package/dist/index169.cjs +1 -1
- package/dist/index169.mjs +30 -111
- package/dist/index17.cjs +1 -1
- package/dist/index17.mjs +1 -1
- package/dist/index170.cjs +1 -1
- package/dist/index170.mjs +24 -122
- package/dist/index171.cjs +1 -1
- package/dist/index171.mjs +44 -214
- package/dist/index172.cjs +1 -1
- package/dist/index172.mjs +46 -106
- package/dist/index173.cjs +1 -1
- package/dist/index173.mjs +28 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.mjs +106 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.mjs +52 -64
- package/dist/index176.cjs +1 -1
- package/dist/index176.mjs +45 -18
- package/dist/index177.cjs +1 -1
- package/dist/index177.mjs +36 -55
- package/dist/index178.cjs +1 -1
- package/dist/index178.mjs +55 -12
- package/dist/index179.cjs +1 -1
- package/dist/index179.mjs +50 -38
- package/dist/index18.cjs +1 -1
- package/dist/index18.mjs +1 -1
- package/dist/index180.cjs +1 -1
- package/dist/index180.mjs +29 -25
- package/dist/index181.cjs +1 -1
- package/dist/index181.mjs +52 -45
- package/dist/index185.cjs +1 -1
- package/dist/index185.mjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.mjs +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.mjs +14 -14
- package/dist/index21.cjs +1 -1
- package/dist/index21.mjs +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.mjs +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.mjs +56 -36
- package/dist/index24.cjs +1 -1
- package/dist/index24.mjs +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.mjs +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.mjs +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.mjs +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.mjs +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.mjs +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.mjs +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.mjs +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.mjs +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +95 -31
- package/dist/index49.cjs +1 -1
- package/dist/index49.mjs +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.mjs +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.cjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.mjs +82 -78
- package/dist/index54.cjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.mjs +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.mjs +42 -39
- package/dist/index64.cjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.mjs +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.mjs +17 -15
- package/dist/index73.cjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.mjs +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.mjs +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.mjs +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.mjs +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.mjs +21 -3
- package/dist/index82.cjs +1 -1
- package/dist/index82.mjs +2 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.mjs +1 -1
- package/dist/index94.mjs +3 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.mjs +154 -24
- package/dist/index98.cjs +1 -1
- package/dist/index98.mjs +218 -46
- package/dist/index99.cjs +1 -1
- package/dist/index99.mjs +30 -55
- package/dist/styles.css +6 -5
- package/dist/theme.css +1 -0
- package/dist/tokens/brands.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index179.mjs
CHANGED
|
@@ -1,41 +1,53 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
const o = "_navbar_8ho3g_8", _ = "_solid_8ho3g_23", s = "_transparent_8ho3g_27", n = "_glass_8ho3g_31", t = "_schemeLight_8ho3g_40", e = "_schemeDark_8ho3g_46", g = "_brand_8ho3g_56", c = "_link_8ho3g_60", l = "_active_8ho3g_69", a = "_toggleLine_8ho3g_74", h = "_bordered_8ho3g_101", i = "_sticky_8ho3g_109", r = "_sm_8ho3g_118", d = "_md_8ho3g_122", p = "_lg_8ho3g_126", m = "_nav_8ho3g_8", b = "_actions_8ho3g_207", k = "_toggle_8ho3g_74", v = "_toggleIcon_8ho3g_241", D = "_toggleOpen_8ho3g_260", L = "_collapse_8ho3g_277", O = "_collapseOpen_8ho3g_281", y = "_slideDown_8ho3g_1", w = "_collapseActions_8ho3g_317", A = {
|
|
2
|
+
navbar: o,
|
|
3
|
+
solid: _,
|
|
4
|
+
transparent: s,
|
|
5
|
+
glass: n,
|
|
6
|
+
schemeLight: t,
|
|
7
|
+
schemeDark: e,
|
|
8
|
+
brand: g,
|
|
9
|
+
link: c,
|
|
10
|
+
active: l,
|
|
11
|
+
toggleLine: a,
|
|
12
|
+
bordered: h,
|
|
13
|
+
sticky: i,
|
|
14
|
+
sm: r,
|
|
15
|
+
md: d,
|
|
16
|
+
lg: p,
|
|
17
|
+
nav: m,
|
|
18
|
+
actions: b,
|
|
19
|
+
toggle: k,
|
|
20
|
+
toggleIcon: v,
|
|
21
|
+
toggleOpen: D,
|
|
22
|
+
collapse: L,
|
|
23
|
+
collapseOpen: O,
|
|
24
|
+
slideDown: y,
|
|
25
|
+
collapseActions: w
|
|
20
26
|
};
|
|
21
27
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
b as actions,
|
|
29
|
+
l as active,
|
|
30
|
+
h as bordered,
|
|
31
|
+
g as brand,
|
|
32
|
+
L as collapse,
|
|
33
|
+
w as collapseActions,
|
|
34
|
+
O as collapseOpen,
|
|
35
|
+
A as default,
|
|
36
|
+
n as glass,
|
|
37
|
+
p as lg,
|
|
38
|
+
c as link,
|
|
39
|
+
d as md,
|
|
40
|
+
m as nav,
|
|
41
|
+
o as navbar,
|
|
42
|
+
e as schemeDark,
|
|
43
|
+
t as schemeLight,
|
|
44
|
+
y as slideDown,
|
|
45
|
+
r as sm,
|
|
46
|
+
_ as solid,
|
|
47
|
+
i as sticky,
|
|
48
|
+
k as toggle,
|
|
49
|
+
v as toggleIcon,
|
|
50
|
+
a as toggleLine,
|
|
51
|
+
D as toggleOpen,
|
|
52
|
+
s as transparent
|
|
41
53
|
};
|
package/dist/index18.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index115.cjs"),d=({item:i,aspectRatio:c="16/9",variant:n="editorial",className:o,style:u,...m})=>{const{image:f,eyebrow:l,title:j,description:s,action:r,overlay:t="gradient"}=i,p=[e.default.card,e.default[`variant-${n}`],e.default[`aspect-${c.replace("/","-")}`],o].filter(Boolean).join(" ");return a.jsxs("article",{className:p,style:u,...m,children:[a.jsx("div",{className:e.default.imageWrapper,children:f}),t!=="none"&&a.jsx("div",{className:`${e.default.overlay} ${e.default[`overlay-${t}`]}`}),a.jsxs("div",{className:e.default.content,children:[l&&a.jsx("span",{className:e.default.eyebrow,children:l}),a.jsx("h3",{className:e.default.cardTitle,children:j}),s&&a.jsx("p",{className:e.default.cardDescription,children:s}),r&&a.jsx("div",{className:e.default.action,children:r})]})]})};d.displayName="CarouselCard";exports.CarouselCard=d;
|
package/dist/index18.mjs
CHANGED
package/dist/index180.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l="_container_eaku9_16",a="_sm_eaku9_24",e="_track_eaku9_24",t="_input_eaku9_28",_="_md_eaku9_38",s="_lg_eaku9_52",i="_fill_eaku9_76",c="_valueDisplay_eaku9_165",n="_ticks_eaku9_190",u="_tick_eaku9_190",k="_labels_eaku9_205",o="_labelMin_eaku9_213",b="_labelMax_eaku9_214",d="_disabled_eaku9_219",r={container:l,sm:a,track:e,input:t,md:_,lg:s,fill:i,valueDisplay:c,ticks:n,tick:u,labels:k,labelMin:o,labelMax:b,disabled:d};exports.container=l;exports.default=r;exports.disabled=d;exports.fill=i;exports.input=t;exports.labelMax=b;exports.labelMin=o;exports.labels=k;exports.lg=s;exports.md=_;exports.sm=a;exports.tick=u;exports.ticks=n;exports.track=e;exports.valueDisplay=c;
|
package/dist/index180.mjs
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const a = "_container_eaku9_16", _ = "_sm_eaku9_24", l = "_track_eaku9_24", e = "_input_eaku9_28", s = "_md_eaku9_38", t = "_lg_eaku9_52", c = "_fill_eaku9_76", n = "_valueDisplay_eaku9_165", i = "_ticks_eaku9_190", k = "_tick_eaku9_190", u = "_labels_eaku9_205", o = "_labelMin_eaku9_213", b = "_labelMax_eaku9_214", d = "_disabled_eaku9_219", p = {
|
|
2
|
+
container: a,
|
|
3
|
+
sm: _,
|
|
4
|
+
track: l,
|
|
5
|
+
input: e,
|
|
6
|
+
md: s,
|
|
7
|
+
lg: t,
|
|
8
|
+
fill: c,
|
|
9
|
+
valueDisplay: n,
|
|
10
|
+
ticks: i,
|
|
11
|
+
tick: k,
|
|
12
|
+
labels: u,
|
|
13
|
+
labelMin: o,
|
|
14
|
+
labelMax: b,
|
|
15
|
+
disabled: d
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
a as
|
|
17
|
-
|
|
18
|
+
a as container,
|
|
19
|
+
p as default,
|
|
18
20
|
d as disabled,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
o as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
c as fill,
|
|
22
|
+
e as input,
|
|
23
|
+
b as labelMax,
|
|
24
|
+
o as labelMin,
|
|
25
|
+
u as labels,
|
|
26
|
+
t as lg,
|
|
27
|
+
s as md,
|
|
28
|
+
_ as sm,
|
|
29
|
+
k as tick,
|
|
30
|
+
i as ticks,
|
|
31
|
+
l as track,
|
|
32
|
+
n as valueDisplay
|
|
29
33
|
};
|
package/dist/index181.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_stepper_ayf09_10",e="_list_ayf09_14",o="_horizontal_ayf09_26",_="_item_ayf09_33",c="_step_ayf09_10",n="_indicator_ayf09_70",r="_sm_ayf09_84",l="_md_ayf09_90",s="_lg_ayf09_96",a="_upcoming_ayf09_107",i="_current_ayf09_114",p="_complete_ayf09_122",f="_error_ayf09_129",y="_number_ayf09_139",m="_content_ayf09_147",b="_title_ayf09_158",d="_optional_ayf09_189",u="_description_ayf09_200",g="_errorMessage_ayf09_219",h="_connector_ayf09_228",v="_vertical_ayf09_266",M="_clickable_ayf09_317",k="_disabled_ayf09_343",z="_scrollable_ayf09_428",S={stepper:t,list:e,horizontal:o,item:_,step:c,"label-right":"_label-right_ayf09_61",indicator:n,sm:r,md:l,lg:s,upcoming:a,current:i,complete:p,error:f,number:y,content:m,title:b,optional:d,description:u,errorMessage:g,connector:h,"label-bottom":"_label-bottom_ayf09_256",vertical:v,clickable:M,disabled:k,scrollable:z};exports.clickable=M;exports.complete=p;exports.connector=h;exports.content=m;exports.current=i;exports.default=S;exports.description=u;exports.disabled=k;exports.error=f;exports.errorMessage=g;exports.horizontal=o;exports.indicator=n;exports.item=_;exports.lg=s;exports.list=e;exports.md=l;exports.number=y;exports.optional=d;exports.scrollable=z;exports.sm=r;exports.step=c;exports.stepper=t;exports.title=b;exports.upcoming=a;exports.vertical=v;
|
package/dist/index181.mjs
CHANGED
|
@@ -1,48 +1,55 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
1
|
+
const t = "_stepper_ayf09_10", _ = "_list_ayf09_14", o = "_horizontal_ayf09_26", e = "_item_ayf09_33", c = "_step_ayf09_10", n = "_indicator_ayf09_70", a = "_sm_ayf09_84", s = "_md_ayf09_90", r = "_lg_ayf09_96", l = "_upcoming_ayf09_107", i = "_current_ayf09_114", f = "_complete_ayf09_122", y = "_error_ayf09_129", p = "_number_ayf09_139", m = "_content_ayf09_147", b = "_title_ayf09_158", d = "_optional_ayf09_189", g = "_description_ayf09_200", u = "_errorMessage_ayf09_219", h = "_connector_ayf09_228", k = "_vertical_ayf09_266", v = "_clickable_ayf09_317", z = "_disabled_ayf09_343", M = "_scrollable_ayf09_428", x = {
|
|
2
|
+
stepper: t,
|
|
3
|
+
list: _,
|
|
4
|
+
horizontal: o,
|
|
5
|
+
item: e,
|
|
6
|
+
step: c,
|
|
7
|
+
"label-right": "_label-right_ayf09_61",
|
|
8
|
+
indicator: n,
|
|
9
|
+
sm: a,
|
|
10
|
+
md: s,
|
|
11
|
+
lg: r,
|
|
12
|
+
upcoming: l,
|
|
13
|
+
current: i,
|
|
14
|
+
complete: f,
|
|
15
|
+
error: y,
|
|
16
|
+
number: p,
|
|
17
|
+
content: m,
|
|
18
|
+
title: b,
|
|
19
|
+
optional: d,
|
|
20
|
+
description: g,
|
|
21
|
+
errorMessage: u,
|
|
22
|
+
connector: h,
|
|
23
|
+
"label-bottom": "_label-bottom_ayf09_256",
|
|
24
|
+
vertical: k,
|
|
25
|
+
clickable: v,
|
|
26
|
+
disabled: z,
|
|
27
|
+
scrollable: M
|
|
24
28
|
};
|
|
25
29
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
r as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
v as clickable,
|
|
31
|
+
f as complete,
|
|
32
|
+
h as connector,
|
|
33
|
+
m as content,
|
|
34
|
+
i as current,
|
|
35
|
+
x as default,
|
|
36
|
+
g as description,
|
|
37
|
+
z as disabled,
|
|
38
|
+
y as error,
|
|
39
|
+
u as errorMessage,
|
|
40
|
+
o as horizontal,
|
|
41
|
+
n as indicator,
|
|
42
|
+
e as item,
|
|
43
|
+
r as lg,
|
|
44
|
+
_ as list,
|
|
45
|
+
s as md,
|
|
46
|
+
p as number,
|
|
47
|
+
d as optional,
|
|
48
|
+
M as scrollable,
|
|
49
|
+
a as sm,
|
|
50
|
+
c as step,
|
|
51
|
+
t as stepper,
|
|
52
|
+
b as title,
|
|
53
|
+
l as upcoming,
|
|
54
|
+
k as vertical
|
|
48
55
|
};
|
package/dist/index185.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./index132.cjs"),l=({src:s,alt:d="Image",isOpen:a,onClose:t,className:f,...m})=>{const u=n.useRef(null),r=n.useRef(null),c=n.useCallback(e=>{if(e.key==="Escape"){t();return}e.key==="Tab"&&(e.preventDefault(),u.current?.focus())},[t]),g=e=>{e.target===e.currentTarget&&t()};return n.useEffect(()=>(a&&(r.current=document.activeElement,document.addEventListener("keydown",c),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.current?.focus()})),()=>{document.removeEventListener("keydown",c),document.body.style.overflow="",r.current&&typeof r.current.focus=="function"&&r.current.focus()}),[a,c]),a?o.jsxs("div",{className:[i.default.lightbox,f].filter(Boolean).join(" "),onClick:g,role:"dialog","aria-modal":"true","aria-label":"Image viewer",...m,children:[o.jsx("button",{ref:u,className:i.default.lightboxClose,onClick:t,"aria-label":"Close image viewer",children:o.jsx(b.X,{size:24})}),o.jsx("img",{src:s,alt:d,className:i.default.lightboxImage})]}):null};l.displayName="ChatLightbox";exports.ChatLightbox=l;
|
package/dist/index185.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as c, useCallback as b, useEffect as h } from "react";
|
|
3
3
|
import { X as y } from "lucide-react";
|
|
4
|
-
import l from "./
|
|
4
|
+
import l from "./index132.mjs";
|
|
5
5
|
const v = ({
|
|
6
6
|
src: u,
|
|
7
7
|
alt: s = "Image",
|
package/dist/index19.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./index127.cjs"),t=require("./index128.cjs"),f=h.createContext({}),j=({config:s,children:o,className:a,style:n,...l})=>{const{resolvedConfig:r,resolvedColorVars:i}=R.useResolvedChartColors(s),d=[t.default.container,a].filter(Boolean).join(" ");return e.jsx(f.Provider,{value:r,children:e.jsx("div",{role:"figure",className:d,style:{...i,...n},...l,children:e.jsx(p.ResponsiveContainer,{width:"100%",height:"100%",children:o})})})};j.displayName="ChartContainer";const v=({active:s,payload:o,label:a,indicator:n="dot",hideLabel:l=!1,hideIndicator:r=!1,labelFormatter:i,formatter:d,className:u})=>{const L=h.useContext(f);if(!s||!o?.length)return null;const b=[t.default.tooltip,u].filter(Boolean).join(" "),g=i?i(String(a)):a,T={dot:t.default.tooltipDot,line:t.default.tooltipLine,dashed:t.default.tooltipDashed}[n];return e.jsxs("div",{className:b,children:[!l&&g&&e.jsx("div",{className:t.default.tooltipLabel,children:g}),e.jsx("div",{className:t.default.tooltipItems,children:o.map(c=>{const C=String(c.dataKey||c.name),m=L[C],q=m?.label||C,I=d?d(c.value,C):String(c.value),x=c.color||m?.color;return e.jsxs("div",{className:t.default.tooltipItem,children:[!r&&e.jsx("span",{className:T,style:{backgroundColor:x,borderColor:x}}),e.jsx("span",{className:t.default.tooltipName,children:q}),e.jsx("span",{className:t.default.tooltipValue,children:I})]},C)})})]})};v.displayName="ChartTooltipContent";const N=({payload:s,className:o})=>{const a=h.useContext(f);if(!s?.length)return null;const n=[t.default.legend,o].filter(Boolean).join(" ");return e.jsx("div",{className:n,children:s.map(l=>{const r=l.dataKey||l.value,i=a[r],d=i?.label||r,u=l.color||i?.color;return e.jsxs("div",{className:t.default.legendItem,children:[e.jsx("span",{className:t.default.legendDot,style:{backgroundColor:u}}),e.jsx("span",{children:d})]},r)})})};N.displayName="ChartLegendContent";const y=({id:s,color:o,startOpacity:a=.4,endOpacity:n=.05})=>e.jsxs("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:o,stopOpacity:a}),e.jsx("stop",{offset:"95%",stopColor:o,stopOpacity:n})]});y.displayName="ChartGradient";const S=p.Tooltip,G=p.Legend;exports.ChartContainer=j;exports.ChartGradient=y;exports.ChartLegend=G;exports.ChartLegendContent=N;exports.ChartTooltip=S;exports.ChartTooltipContent=v;
|
package/dist/index19.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as v, createContext as j } from "react";
|
|
3
3
|
import { Legend as I, Tooltip as K, ResponsiveContainer as T } from "recharts";
|
|
4
|
-
import { useResolvedChartColors as B } from "./
|
|
5
|
-
import o from "./
|
|
4
|
+
import { useResolvedChartColors as B } from "./index127.mjs";
|
|
5
|
+
import o from "./index128.mjs";
|
|
6
6
|
const h = j({}), D = ({
|
|
7
7
|
config: n,
|
|
8
8
|
children: e,
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./index132.cjs"),d=require("./index133.cjs"),h=require("./index134.cjs"),n=require("./index135.cjs"),C=require("./index136.cjs"),c=require("./index137.cjs"),l=require("./index138.cjs"),u=require("./index139.cjs"),p=require("./index140.cjs"),m=require("./index141.cjs"),y=require("./index142.cjs"),g=require("./index143.cjs"),M=require("./index144.cjs"),q=require("./index145.cjs"),a=({children:t,className:r,...i})=>o.jsx("div",{className:[s.default.chat,r].filter(Boolean).join(" "),role:"region","aria-label":"Chat interface",...i,children:t});a.displayName="Chat";const e=a;e.Header=d.ChatHeader;e.Messages=h.ChatMessages;e.Message=n.ChatMessage;e.Input=C.ChatInput;e.TypingIndicator=c.ChatTypingIndicator;e.CodeBlock=l.ChatCodeBlock;e.Markdown=u.ChatMarkdown;e.ImagePreview=p.ChatImagePreview;e.AudioPlayer=m.ChatAudioPlayer;e.VoiceRecorder=y.ChatVoiceRecorder;e.FileUpload=g.ChatFileUpload;e.Attachment=M.ChatAttachment;e.Sidebar=q.ChatSidebar;e.Header.displayName="Chat.Header";e.Messages.displayName="Chat.Messages";e.Message.displayName="Chat.Message";e.Input.displayName="Chat.Input";e.TypingIndicator.displayName="Chat.TypingIndicator";e.CodeBlock.displayName="Chat.CodeBlock";e.Markdown.displayName="Chat.Markdown";e.ImagePreview.displayName="Chat.ImagePreview";e.AudioPlayer.displayName="Chat.AudioPlayer";e.VoiceRecorder.displayName="Chat.VoiceRecorder";e.FileUpload.displayName="Chat.FileUpload";e.Attachment.displayName="Chat.Attachment";e.Sidebar.displayName="Chat.Sidebar";exports.Chat=e;
|
package/dist/index20.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import m from "./
|
|
3
|
-
import { ChatHeader as d } from "./
|
|
4
|
-
import { ChatMessages as p } from "./
|
|
5
|
-
import { ChatMessage as s } from "./
|
|
6
|
-
import { ChatInput as l } from "./
|
|
7
|
-
import { ChatTypingIndicator as h } from "./
|
|
8
|
-
import { ChatCodeBlock as C } from "./
|
|
9
|
-
import { ChatMarkdown as n } from "./
|
|
10
|
-
import { ChatImagePreview as c } from "./
|
|
11
|
-
import { ChatAudioPlayer as y } from "./
|
|
12
|
-
import { ChatVoiceRecorder as f } from "./
|
|
13
|
-
import { ChatFileUpload as g } from "./
|
|
14
|
-
import { ChatAttachment as N } from "./
|
|
15
|
-
import { ChatSidebar as I } from "./
|
|
2
|
+
import m from "./index132.mjs";
|
|
3
|
+
import { ChatHeader as d } from "./index133.mjs";
|
|
4
|
+
import { ChatMessages as p } from "./index134.mjs";
|
|
5
|
+
import { ChatMessage as s } from "./index135.mjs";
|
|
6
|
+
import { ChatInput as l } from "./index136.mjs";
|
|
7
|
+
import { ChatTypingIndicator as h } from "./index137.mjs";
|
|
8
|
+
import { ChatCodeBlock as C } from "./index138.mjs";
|
|
9
|
+
import { ChatMarkdown as n } from "./index139.mjs";
|
|
10
|
+
import { ChatImagePreview as c } from "./index140.mjs";
|
|
11
|
+
import { ChatAudioPlayer as y } from "./index141.mjs";
|
|
12
|
+
import { ChatVoiceRecorder as f } from "./index142.mjs";
|
|
13
|
+
import { ChatFileUpload as g } from "./index143.mjs";
|
|
14
|
+
import { ChatAttachment as N } from "./index144.mjs";
|
|
15
|
+
import { ChatSidebar as I } from "./index145.mjs";
|
|
16
16
|
const e = ({ children: t, className: o, ...r }) => /* @__PURE__ */ i(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
package/dist/index21.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./index103.cjs"),m=t.forwardRef(({label:i,helperText:n,error:a,size:j="md",indeterminate:r=!1,className:k,id:N,disabled:h,required:o,checked:v,"aria-label":f,"aria-describedby":p,...C},y)=>{const R=t.useId(),l=N||`checkbox-${R}`,x=`${l}-error`,b=`${l}-helper`,g=t.useRef(null),d=y||g;t.useEffect(()=>{d.current&&(d.current.indeterminate=r)},[r,d]);const c=[];a&&c.push(x),n&&!a&&c.push(b),p&&c.push(p);const I=c.length>0?c.join(" "):void 0;!(i||f)&&process.env.NODE_ENV==="development"&&console.warn("Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const q=r?"mixed":void 0,M=[s.default.container,s.default[j],a&&s.default.error,h&&s.default.disabled,k].filter(Boolean).join(" ");return e.jsxs("div",{className:M,children:[e.jsx("input",{ref:d,type:"checkbox",id:l,className:s.default.input,disabled:h,required:o,checked:v,"aria-required":o||void 0,"aria-invalid":a?"true":"false","aria-checked":q,"aria-describedby":I,"aria-label":i?void 0:f,...C}),e.jsxs("label",{htmlFor:l,className:s.default.labelWrapper,children:[e.jsx("span",{className:s.default.checkbox,"aria-hidden":"true",children:e.jsx("span",{className:s.default.checkmark,children:r?e.jsx(u.Minus,{strokeWidth:3}):e.jsx(u.Check,{strokeWidth:3})})}),i&&e.jsxs("span",{className:s.default.label,children:[i,o&&e.jsx("span",{className:s.default.required,"aria-hidden":"true",children:"*"})]})]}),n&&!a&&e.jsx("p",{id:b,className:s.default.helperText,children:n}),a&&e.jsxs("p",{id:x,className:s.default.errorMessage,role:"alert","aria-live":"assertive",children:[e.jsx(u.AlertCircle,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:a})]})]})});m.displayName="Checkbox";exports.Checkbox=m;
|
package/dist/index21.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as A, useId as B, useRef as E, useEffect as M } from "react";
|
|
3
3
|
import { Minus as W, Check as $, AlertCircle as w } from "lucide-react";
|
|
4
|
-
import e from "./
|
|
4
|
+
import e from "./index103.mjs";
|
|
5
5
|
const z = A(
|
|
6
6
|
({
|
|
7
7
|
label: i,
|
package/dist/index22.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),e=require("./index112.cjs"),u=w.forwardRef(({variant:c="default",size:d="md",icon:i,clickable:f=!1,onClick:s,onRemove:l,disabled:a=!1,selected:o=!1,children:h,className:p,...v},m)=>{const r=f||!!s,j=[e.default.chip,e.default[c],e.default[d],r&&e.default.clickable,o&&e.default.selected,a&&e.default.disabled,p].filter(Boolean).join(" "),k=()=>{!a&&s&&s()},x=t=>{t.stopPropagation(),!a&&l&&l()},y=t=>{a||((t.key==="Enter"||t.key===" ")&&(t.preventDefault(),s?.()),(t.key==="Backspace"||t.key==="Delete")&&(t.preventDefault(),l?.()))};return n.jsxs("div",{ref:m,className:j,role:r?"button":void 0,tabIndex:r&&!a?0:void 0,"aria-disabled":a,"aria-pressed":o,onClick:r?k:void 0,onKeyDown:r?y:void 0,...v,children:[i&&n.jsx("span",{className:e.default.icon,"aria-hidden":"true",children:i}),n.jsx("span",{className:e.default.label,children:h}),l&&n.jsx("button",{type:"button",className:e.default.removeButton,onClick:x,disabled:a,"aria-label":"Remove",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});u.displayName="Chip";exports.Chip=u;
|
package/dist/index22.mjs
CHANGED
package/dist/index23.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),_=require("react-syntax-highlighter"),$=require("react-syntax-highlighter/dist/esm/styles/prism"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),_=require("react-syntax-highlighter"),$=require("react-syntax-highlighter/dist/esm/styles/prism"),l=require("./index160.cjs"),z=require("./index75.cjs");try{const r=require("refractor/all");r.default&&r.default.registered&&r.default.registered("markdown")&&!r.default.languages.markdown?.["quoted-string"]&&r.default.languages.insertBefore("markdown","bold",{"quoted-string":{pattern:/"(?:\\.|[^"\\])*"/,greedy:!0,alias:"string"}})}catch{}const A=i.forwardRef(({value:r="",onChange:g,language:j,readOnly:T=!1,showLineNumbers:k=!0,placeholder:C,minRows:m=10,className:B,"aria-label":S,...R},D)=>{const p=i.useRef(null),x=i.useRef(null),v=i.useRef(null),E=i.useRef(null),K=i.useRef(null),u=i.useRef(null),h=D||K,[y,F]=i.useState(0),[d,O]=i.useState([]);let q="dark";try{q=z.useThemeContext().theme}catch{}const P=q==="light"?$.oneLight:$.oneDark,L=Math.max(r.split(`
|
|
2
2
|
`).length,m);i.useEffect(()=>{if(u.current&&h.current){const{start:e,end:t}=u.current;h.current.setSelectionRange(e,t),u.current=null}}),i.useEffect(()=>{const e=v.current,t=E.current;if(!e||!t)return;const n=()=>{const o=t.clientWidth;if(o<=0)return;e.style.width=`${o}px`;const a=r.split(`
|
|
3
3
|
`),f=Math.max(a.length,m),b=[];for(let N=0;N<f;N++){const V=a[N]??"";e.textContent=V||" ",b.push(e.scrollHeight)}O(b)};n();const c=new ResizeObserver(n);return c.observe(t),()=>c.disconnect()},[r,m]),i.useEffect(()=>{const e=n=>{const c=n.target;p.current&&(p.current.scrollTop=c.scrollTop),x.current&&(x.current.scrollTop=c.scrollTop,x.current.scrollLeft=c.scrollLeft)},t=h?.current;if(t)return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}},[h]);const w=e=>{const t=e.value.substring(0,e.selectionStart);F(t.split(`
|
|
4
4
|
`).length-1)},H=e=>{if(e.key==="Tab"){e.preventDefault();const t=e.currentTarget,n=t.selectionStart,c=t.selectionEnd,o=" ";if(n===c){const a=r.substring(0,n)+o+r.substring(c);u.current={start:n+o.length,end:n+o.length},g?.(a)}else if(e.shiftKey){const a=r.lastIndexOf(`
|
package/dist/index23.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as k, jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as U, useRef as g, useState as K, useEffect as T } from "react";
|
|
3
3
|
import { Prism as W } from "react-syntax-highlighter";
|
|
4
4
|
import { oneLight as _, oneDark as I } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
5
|
-
import i from "./
|
|
5
|
+
import i from "./index160.mjs";
|
|
6
6
|
import { useThemeContext as G } from "./index75.mjs";
|
|
7
7
|
try {
|
|
8
8
|
const r = require("refractor/all");
|
|
@@ -34,11 +34,8 @@ const J = U(
|
|
|
34
34
|
E = G().theme;
|
|
35
35
|
} catch {
|
|
36
36
|
}
|
|
37
|
-
const O = E === "light" ? _ : I, R = Math.max(
|
|
38
|
-
|
|
39
|
-
`).length,
|
|
40
|
-
m
|
|
41
|
-
);
|
|
37
|
+
const O = E === "light" ? _ : I, R = Math.max(r.split(`
|
|
38
|
+
`).length, m);
|
|
42
39
|
T(() => {
|
|
43
40
|
if (d.current && h.current) {
|
|
44
41
|
const { start: e, end: t } = d.current;
|
|
@@ -82,7 +79,10 @@ const J = U(
|
|
|
82
79
|
const t = e.currentTarget, n = t.selectionStart, a = t.selectionEnd, o = " ";
|
|
83
80
|
if (n === a) {
|
|
84
81
|
const s = r.substring(0, n) + o + r.substring(a);
|
|
85
|
-
d.current = {
|
|
82
|
+
d.current = {
|
|
83
|
+
start: n + o.length,
|
|
84
|
+
end: n + o.length
|
|
85
|
+
}, f?.(s);
|
|
86
86
|
} else if (e.shiftKey) {
|
|
87
87
|
const s = r.lastIndexOf(`
|
|
88
88
|
`, n - 1) + 1, u = r.substring(s).match(/^ {1,2}/)?.[0] ?? "";
|
|
@@ -95,7 +95,10 @@ const J = U(
|
|
|
95
95
|
}
|
|
96
96
|
} else {
|
|
97
97
|
const s = r.substring(0, n) + o + r.substring(a);
|
|
98
|
-
d.current = {
|
|
98
|
+
d.current = {
|
|
99
|
+
start: n + o.length,
|
|
100
|
+
end: n + o.length
|
|
101
|
+
}, f?.(s);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
}, D = [i.wrapper, j].filter(Boolean).join(" ");
|
|
@@ -103,9 +106,18 @@ const J = U(
|
|
|
103
106
|
"div",
|
|
104
107
|
{
|
|
105
108
|
className: D,
|
|
106
|
-
style: {
|
|
109
|
+
style: {
|
|
110
|
+
minHeight: `calc(${m} * 1.6em + 2 * var(--spacing-4))`
|
|
111
|
+
},
|
|
107
112
|
children: [
|
|
108
|
-
/* @__PURE__ */ l(
|
|
113
|
+
/* @__PURE__ */ l(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
ref: v,
|
|
117
|
+
className: i.lineMirror,
|
|
118
|
+
"aria-hidden": "true"
|
|
119
|
+
}
|
|
120
|
+
),
|
|
109
121
|
L && /* @__PURE__ */ l(
|
|
110
122
|
"div",
|
|
111
123
|
{
|
|
@@ -135,35 +147,43 @@ const J = U(
|
|
|
135
147
|
"aria-hidden": "true"
|
|
136
148
|
}
|
|
137
149
|
),
|
|
138
|
-
/* @__PURE__ */ l(
|
|
139
|
-
|
|
150
|
+
/* @__PURE__ */ l(
|
|
151
|
+
"div",
|
|
140
152
|
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
ref: x,
|
|
154
|
+
className: i.highlightLayer,
|
|
155
|
+
"aria-hidden": "true",
|
|
156
|
+
children: /* @__PURE__ */ l(
|
|
157
|
+
W,
|
|
158
|
+
{
|
|
159
|
+
language: C,
|
|
160
|
+
style: O,
|
|
161
|
+
customStyle: {
|
|
162
|
+
margin: 0,
|
|
163
|
+
padding: 0,
|
|
164
|
+
background: "transparent",
|
|
165
|
+
fontSize: "inherit",
|
|
166
|
+
lineHeight: "inherit",
|
|
167
|
+
fontFamily: "inherit",
|
|
168
|
+
whiteSpace: "pre-wrap",
|
|
169
|
+
wordBreak: "break-word",
|
|
170
|
+
overflow: "visible"
|
|
171
|
+
},
|
|
172
|
+
codeTagProps: {
|
|
173
|
+
style: {
|
|
174
|
+
fontFamily: "inherit",
|
|
175
|
+
background: "transparent",
|
|
176
|
+
color: "var(--text-primary)",
|
|
177
|
+
whiteSpace: "pre-wrap",
|
|
178
|
+
wordBreak: "break-word"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
children: r + `
|
|
164
182
|
`
|
|
183
|
+
}
|
|
184
|
+
)
|
|
165
185
|
}
|
|
166
|
-
)
|
|
186
|
+
),
|
|
167
187
|
/* @__PURE__ */ l(
|
|
168
188
|
"textarea",
|
|
169
189
|
{
|
package/dist/index24.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),e=require("react"),p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),e=require("react"),p=require("./index117.cjs"),x=e.createContext(null);function j(){const t=e.useContext(x);if(!t)throw new Error("Collapsible.Trigger/Content must be used within a Collapsible");return t}const I=e.forwardRef(({asChild:t,className:d,children:l,onClick:n,...u},s)=>{const{open:a,disabled:r,toggle:i,contentId:b,triggerId:c}=j(),o=e.useCallback(g=>{i(),n?.(g)},[i,n]);if(t&&e.isValidElement(l))return e.cloneElement(l,{id:c,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o});const f=[p.default.trigger,d].filter(Boolean).join(" ");return C.jsx("button",{ref:s,id:c,type:"button",className:f,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o,...u,children:l})});I.displayName="Collapsible.Trigger";const N=e.forwardRef(({forceMount:t,className:d,children:l,...n},u)=>{const{open:s,triggerId:a,contentId:r}=j();if(!t&&!s)return null;const i=[p.default.content,s&&p.default.contentOpen,d].filter(Boolean).join(" ");return C.jsx("div",{ref:u,id:r,role:"region","aria-labelledby":a,className:i,...n,children:C.jsx("div",{className:p.default.contentInner,children:l})})});N.displayName="Collapsible.Content";const v=e.forwardRef(({open:t,defaultOpen:d=!1,onOpenChange:l,disabled:n=!1,className:u,children:s,...a},r)=>{const[i,b]=e.useState(d),c=t!==void 0,o=c?t:i,f=e.useId(),g=e.useId(),y=e.useCallback(()=>{if(n)return;const m=!o;c||b(m),l?.(m)},[o,c,n,l]),w=[p.default.collapsible,u].filter(Boolean).join(" "),R={open:o,disabled:n,toggle:y,contentId:f,triggerId:g};return C.jsx(x.Provider,{value:R,children:C.jsx("div",{ref:r,className:w,"data-state":o?"open":"closed",...a,children:s})})});v.displayName="Collapsible";const O=Object.assign(v,{Trigger:I,Content:N});exports.Collapsible=O;
|
package/dist/index24.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useState as B, useId as x, useCallback as I, isValidElement as E, cloneElement as h, createContext as R, useContext as P } from "react";
|
|
3
|
-
import p from "./
|
|
3
|
+
import p from "./index117.mjs";
|
|
4
4
|
const N = R(null);
|
|
5
5
|
function v() {
|
|
6
6
|
const e = P(N);
|