@functionalui/functionalui 0.2.1 → 0.2.3
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/Avatar-BK9MFMsZ.cjs +1 -0
- package/dist/Avatar-CQA0mEVW.js +118 -0
- package/dist/Button-CpTXDsI7.js +215 -0
- package/dist/Button-rg5gSHcQ.cjs +1 -0
- package/dist/Checkbox-BHpT6PHl.cjs +1 -0
- package/dist/Checkbox-C29jP71p.js +96 -0
- package/dist/GlobalEventContext-D9ug9s1O.cjs +1 -0
- package/dist/GlobalEventContext-DUmT3Vay.js +49 -0
- package/dist/GlobalEventPortal-BIdCGd-m.cjs +1 -0
- package/dist/GlobalEventPortal-GjfUDr2B.js +17 -0
- package/dist/LabelText-BUslE9cx.cjs +1 -0
- package/dist/LabelText-D7QIWtWj.js +35 -0
- package/dist/Modal-BRIYhcOg.cjs +3 -0
- package/dist/Modal-DXLyt-j4.js +1290 -0
- package/dist/SpringEnterOffsetBy-BVN6rm57.cjs +1 -0
- package/dist/SpringEnterOffsetBy-DMSIQgV3.js +56 -0
- package/dist/TableHeader-BAdYoCbb.cjs +1 -0
- package/dist/TableHeader-Da0XxILB.js +103 -0
- package/dist/TableRow-BlJSvake.js +90 -0
- package/dist/TableRow-Bq58CTbU.cjs +1 -0
- package/dist/TagColor-BYKxfOU6.js +957 -0
- package/dist/TagColor-QGINp77p.cjs +1 -0
- package/dist/UIcon-B5rpDmHC.cjs +1 -0
- package/dist/UIcon-BHzbeYWw.js +245 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/admonition/index.cjs +1 -0
- package/dist/admonition/index.d.ts +27 -0
- package/dist/admonition/index.mjs +88 -0
- package/dist/avatar/index.cjs +1 -0
- package/dist/avatar/index.d.ts +115 -0
- package/dist/avatar/index.mjs +4 -0
- package/dist/avatar-group/index.cjs +1 -0
- package/dist/avatar-group/index.d.ts +120 -0
- package/dist/avatar-group/index.mjs +52 -0
- package/dist/button/index.cjs +1 -0
- package/dist/button/index.d.ts +249 -0
- package/dist/button/index.mjs +4 -0
- package/dist/checkbox/index.cjs +1 -0
- package/dist/checkbox/index.d.ts +32 -0
- package/dist/checkbox/index.mjs +4 -0
- package/dist/checkboxes/index.cjs +1 -0
- package/dist/checkboxes/index.d.ts +38 -0
- package/dist/checkboxes/index.mjs +80 -0
- package/dist/chip/index.cjs +1 -0
- package/dist/chip/index.d.ts +159 -0
- package/dist/chip/index.mjs +132 -0
- package/dist/classes-CBD1K4L1.js +779 -0
- package/dist/classes-CVxy1f4M.js +137 -0
- package/dist/classes-CtwIjJdw.cjs +1 -0
- package/dist/classes-HsjFV5aN.cjs +1 -0
- package/dist/color-picker/index.cjs +1 -0
- package/dist/color-picker/index.d.ts +14 -0
- package/dist/color-picker/index.mjs +234 -0
- package/dist/component-B1mkowwk.cjs +1 -0
- package/dist/component-B6F6g6i4.cjs +1 -0
- package/dist/component-BbvCmqLI.cjs +1 -0
- package/dist/component-Bh3EPTN0.cjs +1 -0
- package/dist/component-BvHdlcdE.js +9 -0
- package/dist/component-C1Gs4nVu.js +55 -0
- package/dist/component-CBIQe7z5.js +29 -0
- package/dist/component-CW2JPBAq.js +59 -0
- package/dist/component-D-EEi7NI.cjs +1 -0
- package/dist/component-D0wwK4KY.js +9 -0
- package/dist/component-D5nxKQnT.js +55 -0
- package/dist/component-D92LT0Mq.cjs +1 -0
- package/dist/component-DCHO9d6d.js +55 -0
- package/dist/component-DRXQXr2G.js +36 -0
- package/dist/component-D_igOAz3.cjs +1 -0
- package/dist/component-DdQu0mLI.js +31 -0
- package/dist/component-FS_2VwVz.cjs +1 -0
- package/dist/component-JigdcRMd.cjs +1 -0
- package/dist/container/index.cjs +1 -0
- package/dist/container/index.d.ts +238 -0
- package/dist/container/index.mjs +4 -0
- package/dist/contexts/notifications/index.cjs +1 -0
- package/dist/contexts/notifications/index.d.ts +2 -0
- package/dist/contexts/notifications/index.mjs +6 -0
- package/dist/contexts/ui/index.cjs +1 -0
- package/dist/contexts/ui/index.d.ts +2 -0
- package/dist/contexts/ui/index.mjs +35 -0
- package/dist/createTextElement-Cgrvdwvh.js +32 -0
- package/dist/createTextElement-DITFvK9p.cjs +1 -0
- package/dist/css/index.cjs +1 -0
- package/dist/css/index.css +1 -0
- package/dist/css/index.d.ts +1 -0
- package/dist/css/index.mjs +1 -0
- package/dist/div-measure/index.cjs +1 -0
- package/dist/div-measure/index.d.ts +13 -0
- package/dist/div-measure/index.mjs +26 -0
- package/dist/feather-sprite.svg +1 -0
- package/dist/gallery-modal/index.cjs +1 -0
- package/dist/gallery-modal/index.d.ts +11 -0
- package/dist/gallery-modal/index.mjs +464 -0
- package/dist/generics-9F1CmKPb.cjs +1 -0
- package/dist/generics-BrMr2-Gs.js +5 -0
- package/dist/generics-C-WSPclF.js +19 -0
- package/dist/generics-D33J7ILI.js +5 -0
- package/dist/generics-DE1oV0MV.cjs +1 -0
- package/dist/generics-nyvJhwQE.cjs +1 -0
- package/dist/global-event-portal/index.cjs +1 -0
- package/dist/global-event-portal/index.d.ts +8 -0
- package/dist/global-event-portal/index.mjs +4 -0
- package/dist/icons/index.cjs +1 -0
- package/dist/icons/index.d.ts +457 -0
- package/dist/icons/index.mjs +5 -0
- package/dist/icons-B8R1UT86.js +147 -0
- package/dist/icons-DSpaHhtT.cjs +1 -0
- package/dist/input-image/index.cjs +1 -0
- package/dist/input-image/index.d.ts +18 -0
- package/dist/input-image/index.mjs +106 -0
- package/dist/input-text/index.cjs +1 -0
- package/dist/input-text/index.d.ts +199 -0
- package/dist/input-text/index.mjs +246 -0
- package/dist/inset-group/index.cjs +1 -0
- package/dist/inset-group/index.d.ts +33 -0
- package/dist/inset-group/index.mjs +105 -0
- package/dist/label-text/index.cjs +1 -0
- package/dist/label-text/index.d.ts +11 -0
- package/dist/label-text/index.mjs +4 -0
- package/dist/layout/index.cjs +1 -0
- package/dist/layout/index.d.ts +163 -0
- package/dist/layout/index.mjs +4 -0
- package/dist/loading-spinner/index.cjs +1 -0
- package/dist/loading-spinner/index.d.ts +33 -0
- package/dist/loading-spinner/index.mjs +101 -0
- package/dist/modal/index.cjs +1 -0
- package/dist/modal/index.d.ts +105 -0
- package/dist/modal/index.mjs +4 -0
- package/dist/notification-system/index.cjs +1 -0
- package/dist/notification-system/index.d.ts +5 -0
- package/dist/notification-system/index.mjs +158 -0
- package/dist/portals/index.cjs +1 -0
- package/dist/portals/index.d.ts +10 -0
- package/dist/portals/index.mjs +4 -0
- package/dist/radio/index.cjs +1 -0
- package/dist/radio/index.d.ts +36 -0
- package/dist/radio/index.mjs +121 -0
- package/dist/react-spring_web.modern-DgQDaJ06.js +2304 -0
- package/dist/react-spring_web.modern-W3Nkoq_6.cjs +1 -0
- package/dist/select-spring/index.cjs +1 -0
- package/dist/select-spring/index.d.ts +70 -0
- package/dist/select-spring/index.mjs +471 -0
- package/dist/spring-enter/index.cjs +1 -0
- package/dist/spring-enter/index.d.ts +16 -0
- package/dist/spring-enter/index.mjs +45 -0
- package/dist/spring-enter-offset-by/index.cjs +1 -0
- package/dist/spring-enter-offset-by/index.d.ts +17 -0
- package/dist/spring-enter-offset-by/index.mjs +5 -0
- package/dist/spring-menu-transition/index.cjs +1 -0
- package/dist/spring-menu-transition/index.d.ts +15 -0
- package/dist/spring-menu-transition/index.mjs +43 -0
- package/dist/spring-open-close-height/index.cjs +1 -0
- package/dist/spring-open-close-height/index.d.ts +9 -0
- package/dist/spring-open-close-height/index.mjs +19 -0
- package/dist/styled/button/index.cjs +1 -0
- package/dist/styled/button/index.d.ts +2 -0
- package/dist/styled/button/index.mjs +4 -0
- package/dist/styled/inputs/text/index.cjs +1 -0
- package/dist/styled/inputs/text/index.d.ts +2 -0
- package/dist/styled/inputs/text/index.mjs +4 -0
- package/dist/styled/inputs/text-area/index.cjs +1 -0
- package/dist/styled/inputs/text-area/index.d.ts +2 -0
- package/dist/styled/inputs/text-area/index.mjs +4 -0
- package/dist/styled/li/index.cjs +1 -0
- package/dist/styled/li/index.d.ts +2 -0
- package/dist/styled/li/index.mjs +4 -0
- package/dist/styled/ul/index.cjs +1 -0
- package/dist/styled/ul/index.d.ts +2 -0
- package/dist/styled/ul/index.mjs +4 -0
- package/dist/table-grid/index.cjs +1 -0
- package/dist/table-grid/index.d.ts +70 -0
- package/dist/table-grid/index.mjs +49 -0
- package/dist/table-header/index.cjs +1 -0
- package/dist/table-header/index.d.ts +53 -0
- package/dist/table-header/index.mjs +4 -0
- package/dist/table-row/index.cjs +1 -0
- package/dist/table-row/index.d.ts +54 -0
- package/dist/table-row/index.mjs +4 -0
- package/dist/tabs/index.cjs +1 -0
- package/dist/tabs/index.d.ts +21 -0
- package/dist/tabs/index.mjs +134 -0
- package/dist/tag-color/index.cjs +1 -0
- package/dist/tag-color/index.d.ts +104 -0
- package/dist/tag-color/index.mjs +4 -0
- package/dist/text-area/index.cjs +1 -0
- package/dist/text-area/index.d.ts +212 -0
- package/dist/text-area/index.mjs +160 -0
- package/dist/texts/header/index.cjs +1 -0
- package/dist/texts/header/index.d.ts +2 -0
- package/dist/texts/header/index.mjs +28 -0
- package/dist/texts/p/index.cjs +1 -0
- package/dist/texts/p/index.d.ts +2 -0
- package/dist/texts/p/index.mjs +4 -0
- package/dist/texts/span/index.cjs +1 -0
- package/dist/texts/span/index.d.ts +2 -0
- package/dist/texts/span/index.mjs +4 -0
- package/dist/toggle-switch/index.cjs +1 -0
- package/dist/toggle-switch/index.d.ts +35 -0
- package/dist/toggle-switch/index.mjs +100 -0
- package/dist/types-34thzuQ5.js +134 -0
- package/dist/types-B3Ew5Ber.cjs +1 -0
- package/dist/types-B6XaG3V2.js +65 -0
- package/dist/types-BL1gBa8J.cjs +1 -0
- package/dist/types-BNUi2DUD.js +234 -0
- package/dist/types-BWsKfOhf.js +76 -0
- package/dist/types-BXyuQRbv.js +52 -0
- package/dist/types-BciByhvn.cjs +1 -0
- package/dist/types-BhBb436R.cjs +1 -0
- package/dist/types-Bh_j-nXM.js +168 -0
- package/dist/types-BnEsY_pc.cjs +1 -0
- package/dist/types-BuixDDod.js +12 -0
- package/dist/types-BzOxElrp.cjs +1 -0
- package/dist/types-CQP0_A_u.cjs +1 -0
- package/dist/types-Cev70RJC.cjs +1 -0
- package/dist/types-Cj8dOa0j.cjs +1 -0
- package/dist/types-CyVpnRmY.cjs +1 -0
- package/dist/types-DDcRx4Wz.cjs +1 -0
- package/dist/types-DNLw5jE2.js +151 -0
- package/dist/types-DZ_qlO_d.cjs +1 -0
- package/dist/types-DamZRbFt.js +4 -0
- package/dist/types-DevrYOgX.cjs +1 -0
- package/dist/types-DgSz2H9f.js +14 -0
- package/dist/types-DmnAtXuW.js +17 -0
- package/dist/types-Dyu7oUOO.js +4 -0
- package/dist/types-OOX58qQg.js +17 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +2062 -0
- package/dist/types.mjs +177 -0
- package/dist/useClickOutsideDOM-CBmttEFU.js +16 -0
- package/dist/useClickOutsideDOM-Dd6ewH8B.cjs +1 -0
- package/dist/useCombinedRef-COuiqHjO.js +14 -0
- package/dist/useCombinedRef-DZxHQ7PL.cjs +1 -0
- package/dist/values-B5r2bYNJ.js +75 -0
- package/dist/values-C40_Fyfk.cjs +1 -0
- package/dist/values-CSE3dLnv.js +200 -0
- package/dist/values-D-Y_dNaF.cjs +1 -0
- package/dist/web-B_p0FWHf.js +132 -0
- package/dist/web-yC_cLoAC.cjs +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare type directions = "horizontal" | "vertical" | "verticalInverted";
|
|
5
|
+
|
|
6
|
+
declare const directions: any;
|
|
7
|
+
|
|
8
|
+
declare interface P {
|
|
9
|
+
direction: directions;
|
|
10
|
+
isShown: boolean;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare const SpringEnter: FC<P>;
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, Fragment as s } from "react/jsx-runtime";
|
|
3
|
+
import { d as m } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
+
import { C as y } from "../component-C1Gs4nVu.js";
|
|
5
|
+
const r = {
|
|
6
|
+
horizontal: {
|
|
7
|
+
from: { x: 10 },
|
|
8
|
+
enter: { x: 0 },
|
|
9
|
+
leave: { x: -10 }
|
|
10
|
+
},
|
|
11
|
+
vertical: {
|
|
12
|
+
from: { y: 10 },
|
|
13
|
+
enter: { y: 0 },
|
|
14
|
+
leave: { y: -10 }
|
|
15
|
+
},
|
|
16
|
+
verticalInverted: {
|
|
17
|
+
from: { y: -10 },
|
|
18
|
+
enter: { y: 0 },
|
|
19
|
+
leave: { y: 10 }
|
|
20
|
+
}
|
|
21
|
+
}, v = ({ direction: e, isShown: n = !0, children: o }) => {
|
|
22
|
+
const i = m(n, {
|
|
23
|
+
from: { ...r[e].from, opacity: 0, display: "none" },
|
|
24
|
+
enter: { ...r[e].enter, opacity: 1, display: "block" },
|
|
25
|
+
leave: { ...r[e].leave, opacity: 0, display: "none" }
|
|
26
|
+
// delay: 150,
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ t(s, { children: i(
|
|
29
|
+
(a, l) => l && /* @__PURE__ */ t(
|
|
30
|
+
y,
|
|
31
|
+
{
|
|
32
|
+
style: {
|
|
33
|
+
...a,
|
|
34
|
+
height: "inherit",
|
|
35
|
+
width: "inherit",
|
|
36
|
+
overflow: "hidden"
|
|
37
|
+
},
|
|
38
|
+
children: o
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
) });
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
v as SpringEnter
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SpringEnterOffsetBy-BVN6rm57.cjs");exports.SpringEnterOffsetBy=e.SpringEnterOffsetBy;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare type directions = "horizontal" | "vertical";
|
|
5
|
+
|
|
6
|
+
declare const directions: any;
|
|
7
|
+
|
|
8
|
+
declare interface P {
|
|
9
|
+
direction: directions;
|
|
10
|
+
isShown?: boolean;
|
|
11
|
+
enterOffsetBy?: number;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare const SpringEnterOffsetBy: FC<P>;
|
|
16
|
+
|
|
17
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("../react-spring_web.modern-W3Nkoq_6.cjs"),u=require("../component-D-EEi7NI.cjs"),a=require("../generics-9F1CmKPb.cjs"),d=require("../web-yC_cLoAC.cjs"),g=({isOpen:e,children:n})=>{const[o,t]=d.useMeasure(),[r,s]=c.useSpring(()=>({opacity:0,height:0,width:0}));return s.start({opacity:e?1:0,height:e?t.height:0,width:e?t.width:0}),i.jsx(u.Container,{style:{position:"absolute",overflow:"hidden",...r},boxSizing:a.BoxSizings.BorderBox,children:i.jsx("div",{ref:o,style:{width:"max-content",height:"max-content",boxSizing:"border-box"},children:n})})};exports.SpringMenuTransition=g;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* top left, top right
|
|
6
|
+
* bottom left, bottom right
|
|
7
|
+
*/
|
|
8
|
+
declare type Props = {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export declare const SpringMenuTransition: FC<Props>;
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { u as a } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
+
import { C as h } from "../component-C1Gs4nVu.js";
|
|
5
|
+
import { c as m } from "../generics-C-WSPclF.js";
|
|
6
|
+
import { u as d } from "../web-B_p0FWHf.js";
|
|
7
|
+
const f = ({ isOpen: t, children: r }) => {
|
|
8
|
+
const [e, o] = d(), [n, s] = a(() => ({
|
|
9
|
+
opacity: 0,
|
|
10
|
+
height: 0,
|
|
11
|
+
width: 0
|
|
12
|
+
}));
|
|
13
|
+
return s.start({
|
|
14
|
+
opacity: t ? 1 : 0,
|
|
15
|
+
height: t ? o.height : 0,
|
|
16
|
+
width: t ? o.width : 0
|
|
17
|
+
}), /* @__PURE__ */ i(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
style: {
|
|
21
|
+
position: "absolute",
|
|
22
|
+
overflow: "hidden",
|
|
23
|
+
...n
|
|
24
|
+
},
|
|
25
|
+
boxSizing: m.BorderBox,
|
|
26
|
+
children: /* @__PURE__ */ i(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
ref: e,
|
|
30
|
+
style: {
|
|
31
|
+
width: "max-content",
|
|
32
|
+
height: "max-content",
|
|
33
|
+
boxSizing: "border-box"
|
|
34
|
+
},
|
|
35
|
+
children: r
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
f as SpringMenuTransition
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../component-D-EEi7NI.cjs"),c=require("../web-yC_cLoAC.cjs"),u=({isOpen:e,children:o})=>{const[i,r]=c.useMeasure(),s={height:e?r.height:0,width:"auto",overflow:"hidden",opacity:e?1:0};return t.jsx(n.Container,{style:s,children:t.jsx("div",{ref:i,children:t.jsx(n.Container,{style:{height:"max-content"},children:o})})})};exports.SpringOpenCloseHeight=u;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { C as o } from "../component-C1Gs4nVu.js";
|
|
4
|
+
import { u as s } from "../web-B_p0FWHf.js";
|
|
5
|
+
const m = ({
|
|
6
|
+
isOpen: t,
|
|
7
|
+
children: i
|
|
8
|
+
}) => {
|
|
9
|
+
const [n, r] = s(), h = {
|
|
10
|
+
height: t ? r.height : 0,
|
|
11
|
+
width: "auto",
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
opacity: t ? 1 : 0
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ e(o, { style: h, children: /* @__PURE__ */ e("div", { ref: n, children: /* @__PURE__ */ e(o, { style: { height: "max-content" }, children: i }) }) });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
m as SpringOpenCloseHeight
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../component-FS_2VwVz.cjs");exports.F__Button=t.F__Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../component-B6F6g6i4.cjs");exports.F__TextInput=e.F__TextInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../component-D92LT0Mq.cjs");exports.F__TextArea=e.F__TextArea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../component-BbvCmqLI.cjs");exports.F__Li=e.F__Li;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../component-D_igOAz3.cjs");exports.F__Ul=e.F__Ul;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),x=require("../component-D-EEi7NI.cjs"),w=require("../component-B1mkowwk.cjs"),o=require("../classes-HsjFV5aN.cjs"),b=require("../TableHeader-BAdYoCbb.cjs"),j=require("../TableRow-Bq58CTbU.cjs"),y=({headers:l=[],rows:i=[],templateColumns:t,emptyPlaceholder:r,hover:c=!0})=>{const[n,a]=d.useState(i);return e.jsxs(x.Container,{style:{flex:1,width:"100%",maxWidth:"100%"},children:[e.jsx(b.TableHeader,{headers:l,templateColumns:t,setTableRows:a}),n.length!==0?e.jsx(e.Fragment,{children:n.map((s,u)=>e.jsx(j.TableRow,{rowId:s.rowId,templateColumns:t,cells:s.cells,hover:c,onClickRow:s.onClickRow},s.rowId||u))}):r?e.jsx(w.Layout,{display:o.Displays.Flex,flexJustifyContent:o.FlexJustifyContents.Center,style:{width:"100%"},children:r}):e.jsx(e.Fragment,{})]})};exports.TableGrid=y;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare enum AlignSelfs {
|
|
5
|
+
Start = 1,
|
|
6
|
+
End = 2,
|
|
7
|
+
Center = 3,
|
|
8
|
+
Left = 4,
|
|
9
|
+
Right = 5,
|
|
10
|
+
SelfStart = 6,
|
|
11
|
+
SelfEnd = 7,
|
|
12
|
+
Stretch = 8,
|
|
13
|
+
Normal = 9,
|
|
14
|
+
Auto = 10
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare interface CellStyles {
|
|
18
|
+
position: {
|
|
19
|
+
justifySelf: JustifySelfs;
|
|
20
|
+
alignSelf: AlignSelfs;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare enum JustifySelfs {
|
|
25
|
+
Start = 1,
|
|
26
|
+
End = 2,
|
|
27
|
+
Center = 3,
|
|
28
|
+
Left = 4,
|
|
29
|
+
Right = 5,
|
|
30
|
+
SelfStart = 6,
|
|
31
|
+
SelfEnd = 7,
|
|
32
|
+
Stretch = 8,
|
|
33
|
+
Normal = 9,
|
|
34
|
+
Auto = 10
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare interface P {
|
|
38
|
+
headers: TableHeaderElement[];
|
|
39
|
+
rows: TableRowElement[];
|
|
40
|
+
templateColumns: string[];
|
|
41
|
+
hover?: boolean;
|
|
42
|
+
emptyPlaceholder?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export declare const TableGrid: FC<P>;
|
|
46
|
+
|
|
47
|
+
declare interface TableHeaderElement {
|
|
48
|
+
headerId: string | number;
|
|
49
|
+
element: ReactNode;
|
|
50
|
+
styles: CellStyles;
|
|
51
|
+
onClickHeaderCell?: (v?: string | number, e?: any) => void;
|
|
52
|
+
sortable?: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare type TableRowCellElement = {
|
|
56
|
+
cellId?: string | number;
|
|
57
|
+
element: ReactNode;
|
|
58
|
+
styles: CellStyles;
|
|
59
|
+
onClickCell?: (v?: string | number, e?: any) => void;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare type TableRowElement = {
|
|
63
|
+
rowId: string | number;
|
|
64
|
+
templateColumns: string[];
|
|
65
|
+
cells: TableRowCellElement[];
|
|
66
|
+
hover: boolean;
|
|
67
|
+
onClickRow?: (v?: string | number, e?: any) => void;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export { }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as m, jsx as o, Fragment as l } from "react/jsx-runtime";
|
|
3
|
+
import { useState as w } from "react";
|
|
4
|
+
import { C as c } from "../component-C1Gs4nVu.js";
|
|
5
|
+
import { L as p } from "../component-DRXQXr2G.js";
|
|
6
|
+
import { j as x, b } from "../classes-CVxy1f4M.js";
|
|
7
|
+
import { T as h } from "../TableHeader-Da0XxILB.js";
|
|
8
|
+
import { T as u } from "../TableRow-BlJSvake.js";
|
|
9
|
+
const g = ({
|
|
10
|
+
headers: i = [],
|
|
11
|
+
rows: a = [],
|
|
12
|
+
templateColumns: t,
|
|
13
|
+
emptyPlaceholder: e,
|
|
14
|
+
hover: n = !0
|
|
15
|
+
}) => {
|
|
16
|
+
const [s, d] = w(a);
|
|
17
|
+
return /* @__PURE__ */ m(c, { style: { flex: 1, width: "100%", maxWidth: "100%" }, children: [
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
|
+
h,
|
|
20
|
+
{
|
|
21
|
+
headers: i,
|
|
22
|
+
templateColumns: t,
|
|
23
|
+
setTableRows: d
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
s.length !== 0 ? /* @__PURE__ */ o(l, { children: s.map((r, f) => /* @__PURE__ */ o(
|
|
27
|
+
u,
|
|
28
|
+
{
|
|
29
|
+
rowId: r.rowId,
|
|
30
|
+
templateColumns: t,
|
|
31
|
+
cells: r.cells,
|
|
32
|
+
hover: n,
|
|
33
|
+
onClickRow: r.onClickRow
|
|
34
|
+
},
|
|
35
|
+
r.rowId || f
|
|
36
|
+
)) }) : e ? /* @__PURE__ */ o(
|
|
37
|
+
p,
|
|
38
|
+
{
|
|
39
|
+
display: b.Flex,
|
|
40
|
+
flexJustifyContent: x.Center,
|
|
41
|
+
style: { width: "100%" },
|
|
42
|
+
children: e
|
|
43
|
+
}
|
|
44
|
+
) : /* @__PURE__ */ o(l, {})
|
|
45
|
+
] });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
g as TableGrid
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TableHeader-BAdYoCbb.cjs");exports.TableHeader=e.TableHeader;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare enum AlignSelfs {
|
|
5
|
+
Start = 1,
|
|
6
|
+
End = 2,
|
|
7
|
+
Center = 3,
|
|
8
|
+
Left = 4,
|
|
9
|
+
Right = 5,
|
|
10
|
+
SelfStart = 6,
|
|
11
|
+
SelfEnd = 7,
|
|
12
|
+
Stretch = 8,
|
|
13
|
+
Normal = 9,
|
|
14
|
+
Auto = 10
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare interface CellStyles {
|
|
18
|
+
position: {
|
|
19
|
+
justifySelf: JustifySelfs;
|
|
20
|
+
alignSelf: AlignSelfs;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare enum JustifySelfs {
|
|
25
|
+
Start = 1,
|
|
26
|
+
End = 2,
|
|
27
|
+
Center = 3,
|
|
28
|
+
Left = 4,
|
|
29
|
+
Right = 5,
|
|
30
|
+
SelfStart = 6,
|
|
31
|
+
SelfEnd = 7,
|
|
32
|
+
Stretch = 8,
|
|
33
|
+
Normal = 9,
|
|
34
|
+
Auto = 10
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare interface P {
|
|
38
|
+
headers: TableHeaderElement[];
|
|
39
|
+
templateColumns: string[];
|
|
40
|
+
setTableRows?: (v?: any) => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const TableHeader: FC<P>;
|
|
44
|
+
|
|
45
|
+
declare interface TableHeaderElement {
|
|
46
|
+
headerId: string | number;
|
|
47
|
+
element: ReactNode;
|
|
48
|
+
styles: CellStyles;
|
|
49
|
+
onClickHeaderCell?: (v?: string | number, e?: any) => void;
|
|
50
|
+
sortable?: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TableRow-Bq58CTbU.cjs");exports.TableRow=e.TableRow;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare enum AlignSelfs {
|
|
5
|
+
Start = 1,
|
|
6
|
+
End = 2,
|
|
7
|
+
Center = 3,
|
|
8
|
+
Left = 4,
|
|
9
|
+
Right = 5,
|
|
10
|
+
SelfStart = 6,
|
|
11
|
+
SelfEnd = 7,
|
|
12
|
+
Stretch = 8,
|
|
13
|
+
Normal = 9,
|
|
14
|
+
Auto = 10
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare interface CellStyles {
|
|
18
|
+
position: {
|
|
19
|
+
justifySelf: JustifySelfs;
|
|
20
|
+
alignSelf: AlignSelfs;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare enum JustifySelfs {
|
|
25
|
+
Start = 1,
|
|
26
|
+
End = 2,
|
|
27
|
+
Center = 3,
|
|
28
|
+
Left = 4,
|
|
29
|
+
Right = 5,
|
|
30
|
+
SelfStart = 6,
|
|
31
|
+
SelfEnd = 7,
|
|
32
|
+
Stretch = 8,
|
|
33
|
+
Normal = 9,
|
|
34
|
+
Auto = 10
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare const TableRow: ({ rowId, templateColumns, cells, hover, onClickRow, }: TableRowElement) => JSX.Element;
|
|
38
|
+
|
|
39
|
+
declare type TableRowCellElement = {
|
|
40
|
+
cellId?: string | number;
|
|
41
|
+
element: ReactNode;
|
|
42
|
+
styles: CellStyles;
|
|
43
|
+
onClickCell?: (v?: string | number, e?: any) => void;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare type TableRowElement = {
|
|
47
|
+
rowId: string | number;
|
|
48
|
+
templateColumns: string[];
|
|
49
|
+
cells: TableRowCellElement[];
|
|
50
|
+
hover: boolean;
|
|
51
|
+
onClickRow?: (v?: string | number, e?: any) => void;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../component-D-EEi7NI.cjs"),p=require("../component-B1mkowwk.cjs"),h=require("../generics-DE1oV0MV.cjs"),i=require("../generics-9F1CmKPb.cjs"),r=require("../classes-HsjFV5aN.cjs"),g=require("react"),m=require("../web-yC_cLoAC.cjs"),f=require("../component-Bh3EPTN0.cjs"),C=require("../react-spring_web.modern-W3Nkoq_6.cjs"),b=({menu:t,setActiveItem:n,idx:s,menuWrapper:o,route:l})=>{const d=()=>{n(s)};return e.jsx(j,{Wrapper:o,route:l,children:e.jsx(c.Container,{onClick:()=>d(),paddingLeft:i.Spacings.Size3,paddingRight:i.Spacings.Size3,paddingTop:i.Spacings.Size2,paddingBottom:i.Spacings.Size2,style:{zIndex:11,cursor:"pointer",userSelect:"none"},children:e.jsx(p.Layout,{display:r.Displays.Flex,flexJustifyContent:r.FlexJustifyContents.Center,flexAlignItem:r.FlexAlignItems.Center,children:e.jsx(f.Text_Span,{style:{zIndex:12},children:t.name})})})})};function j({Wrapper:t,route:n,children:s}){if(typeof t<"u")return e.jsx(t,{href:n,children:s})}const z=({height:t,tabRoomWidth:n,activeItem:s})=>{const[o,l]=C.useSpring(()=>({from:{x:0}}));return l.start({x:n*s}),e.jsx(c.Container,{borderRadius:i.Radiuses.Size5,boxShadow:i.BoxShadows.Size1,padding:i.Spacings.Size1,boxSizing:i.BoxSizings.BorderBox,style:{position:"absolute",height:t,width:n,zIndex:10,...o},children:e.jsx(c.Container,{borderRadius:i.Radiuses.Size4,bgColor:h.ColorPalettes.Grey2,style:{width:"100%",height:"100%"},children:e.jsx(e.Fragment,{})})})},I=({tabMenu:t,tab:n,setTab:s})=>{const[o,l]=g.useState(n||0);g.useEffect(()=>{l(n)},[n]);const d=a=>{s&&s(a),l(a)},[S,u]=m.useMeasure(),y=u.width/t.length;return e.jsx(p.Layout,{display:r.Displays.Flex,flexJustifyContent:r.FlexJustifyContents.Center,flexAlignItem:r.FlexAlignItems.Center,children:e.jsx("div",{ref:S,style:{boxSizing:"border-box"},children:e.jsx(c.Container,{borderRadius:i.Radiuses.Size5,bgColor:h.ColorPalettes.Grey1,style:{width:"max-content",height:"max-content",position:"relative",zIndex:9},children:e.jsxs(p.Layout,{display:r.Displays.Grid,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`,position:"relative"},children:[e.jsx(z,{height:u.height,width:u.width,activeItem:o,tabRoomWidth:y}),t.map((a,x)=>e.jsx(b,{idx:x,menu:a,active:o===x,setActiveItem:d,menuWrapper:a.menuWrapper,route:a.route},x))]})})})})};exports.Tabs=I;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
declare type P = {
|
|
6
|
+
tab: number;
|
|
7
|
+
tabMenu: TabMenu[];
|
|
8
|
+
setTab?: (a: number) => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare interface TabMenu {
|
|
12
|
+
name: string;
|
|
13
|
+
menuWrapper?: ComponentType<any>;
|
|
14
|
+
route?: string;
|
|
15
|
+
path?: string;
|
|
16
|
+
element?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare const Tabs: ({ tabMenu, tab, setTab }: P) => JSX.Element;
|
|
20
|
+
|
|
21
|
+
export { }
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { jsx as e, Fragment as z, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { C as d } from "../component-C1Gs4nVu.js";
|
|
3
|
+
import { L as c } from "../component-DRXQXr2G.js";
|
|
4
|
+
import { C as u } from "../generics-D33J7ILI.js";
|
|
5
|
+
import { S as a, c as b, b as I, R as h } from "../generics-C-WSPclF.js";
|
|
6
|
+
import { h as x, j as g, b as f } from "../classes-CVxy1f4M.js";
|
|
7
|
+
import { useState as w, useEffect as R } from "react";
|
|
8
|
+
import { u as T } from "../web-B_p0FWHf.js";
|
|
9
|
+
import { T as v } from "../component-BvHdlcdE.js";
|
|
10
|
+
import { u as A } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
11
|
+
const B = ({ menu: t, setActiveItem: i, idx: r, menuWrapper: o, route: n }) => {
|
|
12
|
+
const l = () => {
|
|
13
|
+
i(r);
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ e(F, { Wrapper: o, route: n, children: /* @__PURE__ */ e(
|
|
16
|
+
d,
|
|
17
|
+
{
|
|
18
|
+
onClick: () => l(),
|
|
19
|
+
paddingLeft: a.Size3,
|
|
20
|
+
paddingRight: a.Size3,
|
|
21
|
+
paddingTop: a.Size2,
|
|
22
|
+
paddingBottom: a.Size2,
|
|
23
|
+
style: { zIndex: 11, cursor: "pointer", userSelect: "none" },
|
|
24
|
+
children: /* @__PURE__ */ e(
|
|
25
|
+
c,
|
|
26
|
+
{
|
|
27
|
+
display: f.Flex,
|
|
28
|
+
flexJustifyContent: g.Center,
|
|
29
|
+
flexAlignItem: x.Center,
|
|
30
|
+
children: /* @__PURE__ */ e(v, { style: { zIndex: 12 }, children: t.name })
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
};
|
|
36
|
+
function F({ Wrapper: t, route: i, children: r }) {
|
|
37
|
+
if (typeof t < "u")
|
|
38
|
+
return /* @__PURE__ */ e(t, { href: i, children: r });
|
|
39
|
+
}
|
|
40
|
+
const j = ({ height: t, tabRoomWidth: i, activeItem: r }) => {
|
|
41
|
+
const [o, n] = A(() => ({
|
|
42
|
+
from: { x: 0 }
|
|
43
|
+
}));
|
|
44
|
+
return n.start({ x: i * r }), /* @__PURE__ */ e(
|
|
45
|
+
d,
|
|
46
|
+
{
|
|
47
|
+
borderRadius: h.Size5,
|
|
48
|
+
boxShadow: I.Size1,
|
|
49
|
+
padding: a.Size1,
|
|
50
|
+
boxSizing: b.BorderBox,
|
|
51
|
+
style: {
|
|
52
|
+
position: "absolute",
|
|
53
|
+
height: t,
|
|
54
|
+
width: i,
|
|
55
|
+
zIndex: 10,
|
|
56
|
+
...o
|
|
57
|
+
},
|
|
58
|
+
children: /* @__PURE__ */ e(
|
|
59
|
+
d,
|
|
60
|
+
{
|
|
61
|
+
borderRadius: h.Size4,
|
|
62
|
+
bgColor: u.Grey2,
|
|
63
|
+
style: { width: "100%", height: "100%" },
|
|
64
|
+
children: /* @__PURE__ */ e(z, {})
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}, $ = ({ tabMenu: t, tab: i, setTab: r }) => {
|
|
70
|
+
const [o, n] = w(i || 0);
|
|
71
|
+
R(() => {
|
|
72
|
+
n(i);
|
|
73
|
+
}, [i]);
|
|
74
|
+
const l = (s) => {
|
|
75
|
+
r && r(s), n(s);
|
|
76
|
+
}, [S, p] = T(), y = p.width / t.length;
|
|
77
|
+
return /* @__PURE__ */ e(
|
|
78
|
+
c,
|
|
79
|
+
{
|
|
80
|
+
display: f.Flex,
|
|
81
|
+
flexJustifyContent: g.Center,
|
|
82
|
+
flexAlignItem: x.Center,
|
|
83
|
+
children: /* @__PURE__ */ e("div", { ref: S, style: { boxSizing: "border-box" }, children: /* @__PURE__ */ e(
|
|
84
|
+
d,
|
|
85
|
+
{
|
|
86
|
+
borderRadius: h.Size5,
|
|
87
|
+
bgColor: u.Grey1,
|
|
88
|
+
style: {
|
|
89
|
+
width: "max-content",
|
|
90
|
+
height: "max-content",
|
|
91
|
+
position: "relative",
|
|
92
|
+
zIndex: 9
|
|
93
|
+
},
|
|
94
|
+
children: /* @__PURE__ */ C(
|
|
95
|
+
c,
|
|
96
|
+
{
|
|
97
|
+
display: f.Grid,
|
|
98
|
+
style: {
|
|
99
|
+
gridTemplateColumns: `repeat(${t.length}, 1fr)`,
|
|
100
|
+
position: "relative"
|
|
101
|
+
},
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ e(
|
|
104
|
+
j,
|
|
105
|
+
{
|
|
106
|
+
height: p.height,
|
|
107
|
+
width: p.width,
|
|
108
|
+
activeItem: o,
|
|
109
|
+
tabRoomWidth: y
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
t.map((s, m) => /* @__PURE__ */ e(
|
|
113
|
+
B,
|
|
114
|
+
{
|
|
115
|
+
idx: m,
|
|
116
|
+
menu: s,
|
|
117
|
+
active: o === m,
|
|
118
|
+
setActiveItem: l,
|
|
119
|
+
menuWrapper: s.menuWrapper,
|
|
120
|
+
route: s.route
|
|
121
|
+
},
|
|
122
|
+
m
|
|
123
|
+
))
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
) })
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
export {
|
|
133
|
+
$ as Tabs
|
|
134
|
+
};
|