@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,120 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const AvatarGroup: FC<P>;
|
|
5
|
+
|
|
6
|
+
declare enum AvatarSizes {
|
|
7
|
+
Size1 = 1,
|
|
8
|
+
Size2 = 2,
|
|
9
|
+
Size3 = 3,
|
|
10
|
+
Size4 = 4,
|
|
11
|
+
Size5 = 5,
|
|
12
|
+
Size6 = 6,
|
|
13
|
+
Size7 = 7,
|
|
14
|
+
Size8 = 8,
|
|
15
|
+
Size9 = 9
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare enum ColorPalettes {
|
|
19
|
+
Transparent = 1,// (0, 1)
|
|
20
|
+
Grey1 = 2,
|
|
21
|
+
Grey2 = 3,
|
|
22
|
+
Grey3 = 4,
|
|
23
|
+
Grey4 = 5,
|
|
24
|
+
Grey5 = 6,
|
|
25
|
+
Grey6 = 7,
|
|
26
|
+
Grey7 = 8,
|
|
27
|
+
Grey8 = 9,
|
|
28
|
+
Grey9 = 10,
|
|
29
|
+
Grey10 = 11,// (2, 11)
|
|
30
|
+
Primary1 = 12,
|
|
31
|
+
Primary2 = 13,
|
|
32
|
+
Primary3 = 14,
|
|
33
|
+
Primary4 = 15,
|
|
34
|
+
Primary5 = 16,
|
|
35
|
+
Primary6 = 17,
|
|
36
|
+
Primary7 = 18,
|
|
37
|
+
Primary8 = 19,
|
|
38
|
+
Primary9 = 20,// (12, 20)
|
|
39
|
+
Secondary1 = 21,
|
|
40
|
+
Secondary2 = 22,
|
|
41
|
+
Secondary3 = 23,
|
|
42
|
+
Secondary4 = 24,
|
|
43
|
+
Secondary5 = 25,
|
|
44
|
+
Secondary6 = 26,
|
|
45
|
+
Secondary7 = 27,
|
|
46
|
+
Secondary8 = 28,
|
|
47
|
+
Secondary9 = 29,// (21, 29)
|
|
48
|
+
Red1 = 30,
|
|
49
|
+
Red2 = 31,
|
|
50
|
+
Red3 = 32,
|
|
51
|
+
Red4 = 33,
|
|
52
|
+
Red5 = 34,
|
|
53
|
+
Red6 = 35,
|
|
54
|
+
Red7 = 36,
|
|
55
|
+
Red8 = 37,
|
|
56
|
+
Red9 = 38,// (30, 38)
|
|
57
|
+
Green1 = 39,
|
|
58
|
+
Green2 = 40,
|
|
59
|
+
Green3 = 41,
|
|
60
|
+
Green4 = 42,
|
|
61
|
+
Green5 = 43,
|
|
62
|
+
Green6 = 44,
|
|
63
|
+
Green7 = 45,
|
|
64
|
+
Green8 = 46,
|
|
65
|
+
Green9 = 47,// (39, 47)
|
|
66
|
+
Blue1 = 48,
|
|
67
|
+
Blue2 = 49,
|
|
68
|
+
Blue3 = 50,
|
|
69
|
+
Blue4 = 51,
|
|
70
|
+
Blue5 = 52,
|
|
71
|
+
Blue6 = 53,
|
|
72
|
+
Blue7 = 54,
|
|
73
|
+
Blue8 = 55,
|
|
74
|
+
Blue9 = 56,// (48, 56)
|
|
75
|
+
Yellow1 = 57,
|
|
76
|
+
Yellow2 = 58,
|
|
77
|
+
Yellow3 = 59,
|
|
78
|
+
Yellow4 = 60,
|
|
79
|
+
Yellow5 = 61,
|
|
80
|
+
Yellow6 = 62,
|
|
81
|
+
Yellow7 = 63,
|
|
82
|
+
Yellow8 = 64,
|
|
83
|
+
Yellow9 = 65,// (57, 65)
|
|
84
|
+
Accent1_1 = 66,
|
|
85
|
+
Accent1_2 = 67,
|
|
86
|
+
Accent1_3 = 68,
|
|
87
|
+
Accent1_4 = 69,
|
|
88
|
+
Accent1_5 = 70,
|
|
89
|
+
Accent1_6 = 71,
|
|
90
|
+
Accent1_7 = 72,
|
|
91
|
+
Accent1_8 = 73,
|
|
92
|
+
Accent1_9 = 74,// (57, 65)
|
|
93
|
+
Accent2_1 = 75,
|
|
94
|
+
Accent2_2 = 76,
|
|
95
|
+
Accent2_3 = 77,
|
|
96
|
+
Accent2_4 = 78,
|
|
97
|
+
Accent2_5 = 79,
|
|
98
|
+
Accent2_6 = 80,
|
|
99
|
+
Accent2_7 = 81,
|
|
100
|
+
Accent2_8 = 82,
|
|
101
|
+
Accent2_9 = 83
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare interface FUI__Avatar {
|
|
105
|
+
children: ReactNode;
|
|
106
|
+
name?: string;
|
|
107
|
+
isLoading?: boolean;
|
|
108
|
+
onClick?: (v?: any) => void;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare interface P {
|
|
112
|
+
avatars: FUI__Avatar[];
|
|
113
|
+
isLoading?: boolean;
|
|
114
|
+
size?: AvatarSizes;
|
|
115
|
+
withHover?: boolean;
|
|
116
|
+
border?: boolean;
|
|
117
|
+
borderColor?: ColorPalettes;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { }
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { b as d, a as c } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
3
|
+
import { A as u } from "../Avatar-CQA0mEVW.js";
|
|
4
|
+
import { L as f } from "../component-DRXQXr2G.js";
|
|
5
|
+
import { b as y } from "../classes-CVxy1f4M.js";
|
|
6
|
+
const b = ({
|
|
7
|
+
avatars: o,
|
|
8
|
+
border: i,
|
|
9
|
+
borderColor: a,
|
|
10
|
+
withHover: m,
|
|
11
|
+
size: p
|
|
12
|
+
}) => {
|
|
13
|
+
const [l, s] = d(
|
|
14
|
+
o.length,
|
|
15
|
+
(e) => ({
|
|
16
|
+
y: 0,
|
|
17
|
+
x: e === 0 ? 0 : e * -10
|
|
18
|
+
}),
|
|
19
|
+
[]
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ t(f, { display: y.Flex, children: l.map((e, r) => /* @__PURE__ */ t(
|
|
22
|
+
c.div,
|
|
23
|
+
{
|
|
24
|
+
style: e,
|
|
25
|
+
onMouseEnter: () => s.start((n) => {
|
|
26
|
+
if (n === r)
|
|
27
|
+
return { y: -5 };
|
|
28
|
+
}),
|
|
29
|
+
onMouseLeave: () => s.start((n) => {
|
|
30
|
+
if (n === r)
|
|
31
|
+
return { y: 0 };
|
|
32
|
+
}),
|
|
33
|
+
children: /* @__PURE__ */ t(
|
|
34
|
+
u,
|
|
35
|
+
{
|
|
36
|
+
avatarName: o[r].name,
|
|
37
|
+
border: i,
|
|
38
|
+
borderColor: a,
|
|
39
|
+
onClick: o[r].onClick,
|
|
40
|
+
isLoading: o[r].isLoading,
|
|
41
|
+
withHover: m,
|
|
42
|
+
size: p,
|
|
43
|
+
children: o[r].children
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
},
|
|
47
|
+
r
|
|
48
|
+
)) });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
b as AvatarGroup
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Button-rg5gSHcQ.cjs");exports.Button=t.Button;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { AnimatedProps } from '@react-spring/web';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { Ref } from 'react';
|
|
6
|
+
|
|
7
|
+
declare enum BorderStyles {
|
|
8
|
+
None = 1,
|
|
9
|
+
Hidden = 2,
|
|
10
|
+
Dotted = 3,
|
|
11
|
+
Dashed = 4,
|
|
12
|
+
Solid = 5,
|
|
13
|
+
Double = 6,
|
|
14
|
+
Groove = 7,
|
|
15
|
+
Ridge = 8,
|
|
16
|
+
Inset = 9,
|
|
17
|
+
Outset = 10
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare enum BorderWidths {
|
|
21
|
+
Size0 = 1,
|
|
22
|
+
Size1 = 2,
|
|
23
|
+
Size2 = 3,
|
|
24
|
+
Size3 = 4,
|
|
25
|
+
Size4 = 5,
|
|
26
|
+
Size5 = 6,
|
|
27
|
+
Size6 = 7,
|
|
28
|
+
Size7 = 8
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare enum BoxShadows {
|
|
32
|
+
Size0 = 1,
|
|
33
|
+
Size1 = 2,
|
|
34
|
+
Size2 = 3,
|
|
35
|
+
Size3 = 4,
|
|
36
|
+
Size4 = 5,
|
|
37
|
+
Size5 = 6,
|
|
38
|
+
Size6 = 7
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare enum BoxSizings {
|
|
42
|
+
ContentBox = 1,
|
|
43
|
+
BorderBox = 2
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare interface ButtonProps extends AnimatedProps<HTMLAttributes<HTMLButtonElement>>, StyleProps, ButtonStyleProps {
|
|
47
|
+
children?: ReactNode;
|
|
48
|
+
ref?: Ref<HTMLButtonElement | null>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare interface ButtonStyleProps {
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
type?: ButtonTypes;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare enum ButtonTypes {
|
|
57
|
+
Button = "button",
|
|
58
|
+
Submit = "submit",
|
|
59
|
+
Reset = "reset"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare enum ColorPalettes {
|
|
63
|
+
Transparent = 1,// (0, 1)
|
|
64
|
+
Grey1 = 2,
|
|
65
|
+
Grey2 = 3,
|
|
66
|
+
Grey3 = 4,
|
|
67
|
+
Grey4 = 5,
|
|
68
|
+
Grey5 = 6,
|
|
69
|
+
Grey6 = 7,
|
|
70
|
+
Grey7 = 8,
|
|
71
|
+
Grey8 = 9,
|
|
72
|
+
Grey9 = 10,
|
|
73
|
+
Grey10 = 11,// (2, 11)
|
|
74
|
+
Primary1 = 12,
|
|
75
|
+
Primary2 = 13,
|
|
76
|
+
Primary3 = 14,
|
|
77
|
+
Primary4 = 15,
|
|
78
|
+
Primary5 = 16,
|
|
79
|
+
Primary6 = 17,
|
|
80
|
+
Primary7 = 18,
|
|
81
|
+
Primary8 = 19,
|
|
82
|
+
Primary9 = 20,// (12, 20)
|
|
83
|
+
Secondary1 = 21,
|
|
84
|
+
Secondary2 = 22,
|
|
85
|
+
Secondary3 = 23,
|
|
86
|
+
Secondary4 = 24,
|
|
87
|
+
Secondary5 = 25,
|
|
88
|
+
Secondary6 = 26,
|
|
89
|
+
Secondary7 = 27,
|
|
90
|
+
Secondary8 = 28,
|
|
91
|
+
Secondary9 = 29,// (21, 29)
|
|
92
|
+
Red1 = 30,
|
|
93
|
+
Red2 = 31,
|
|
94
|
+
Red3 = 32,
|
|
95
|
+
Red4 = 33,
|
|
96
|
+
Red5 = 34,
|
|
97
|
+
Red6 = 35,
|
|
98
|
+
Red7 = 36,
|
|
99
|
+
Red8 = 37,
|
|
100
|
+
Red9 = 38,// (30, 38)
|
|
101
|
+
Green1 = 39,
|
|
102
|
+
Green2 = 40,
|
|
103
|
+
Green3 = 41,
|
|
104
|
+
Green4 = 42,
|
|
105
|
+
Green5 = 43,
|
|
106
|
+
Green6 = 44,
|
|
107
|
+
Green7 = 45,
|
|
108
|
+
Green8 = 46,
|
|
109
|
+
Green9 = 47,// (39, 47)
|
|
110
|
+
Blue1 = 48,
|
|
111
|
+
Blue2 = 49,
|
|
112
|
+
Blue3 = 50,
|
|
113
|
+
Blue4 = 51,
|
|
114
|
+
Blue5 = 52,
|
|
115
|
+
Blue6 = 53,
|
|
116
|
+
Blue7 = 54,
|
|
117
|
+
Blue8 = 55,
|
|
118
|
+
Blue9 = 56,// (48, 56)
|
|
119
|
+
Yellow1 = 57,
|
|
120
|
+
Yellow2 = 58,
|
|
121
|
+
Yellow3 = 59,
|
|
122
|
+
Yellow4 = 60,
|
|
123
|
+
Yellow5 = 61,
|
|
124
|
+
Yellow6 = 62,
|
|
125
|
+
Yellow7 = 63,
|
|
126
|
+
Yellow8 = 64,
|
|
127
|
+
Yellow9 = 65,// (57, 65)
|
|
128
|
+
Accent1_1 = 66,
|
|
129
|
+
Accent1_2 = 67,
|
|
130
|
+
Accent1_3 = 68,
|
|
131
|
+
Accent1_4 = 69,
|
|
132
|
+
Accent1_5 = 70,
|
|
133
|
+
Accent1_6 = 71,
|
|
134
|
+
Accent1_7 = 72,
|
|
135
|
+
Accent1_8 = 73,
|
|
136
|
+
Accent1_9 = 74,// (57, 65)
|
|
137
|
+
Accent2_1 = 75,
|
|
138
|
+
Accent2_2 = 76,
|
|
139
|
+
Accent2_3 = 77,
|
|
140
|
+
Accent2_4 = 78,
|
|
141
|
+
Accent2_5 = 79,
|
|
142
|
+
Accent2_6 = 80,
|
|
143
|
+
Accent2_7 = 81,
|
|
144
|
+
Accent2_8 = 82,
|
|
145
|
+
Accent2_9 = 83
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare enum Cursors {
|
|
149
|
+
Auto = 1,
|
|
150
|
+
Default = 2,
|
|
151
|
+
Pointer = 3,
|
|
152
|
+
ContextMenu = 4,
|
|
153
|
+
Help = 5,
|
|
154
|
+
Progress = 6,
|
|
155
|
+
Wait = 7,
|
|
156
|
+
Cell = 8,
|
|
157
|
+
Crosshair = 9,
|
|
158
|
+
Text = 10,
|
|
159
|
+
VerticalText = 11,
|
|
160
|
+
Alias = 12,
|
|
161
|
+
Copy = 13,
|
|
162
|
+
Move = 14,
|
|
163
|
+
NoDrop = 15,
|
|
164
|
+
NotAllowed = 16,
|
|
165
|
+
Grab = 17,
|
|
166
|
+
Grabbing = 18,
|
|
167
|
+
ZoomIn = 19,
|
|
168
|
+
ZoomOut = 20
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare const F__Button: FC<ButtonProps>;
|
|
172
|
+
|
|
173
|
+
declare enum Positions {
|
|
174
|
+
Size0 = 1,
|
|
175
|
+
Size1 = 2,
|
|
176
|
+
Size2 = 3,
|
|
177
|
+
Size3 = 4,
|
|
178
|
+
Size4 = 5,
|
|
179
|
+
Size5 = 6,
|
|
180
|
+
Size6 = 7,
|
|
181
|
+
Size7 = 8,
|
|
182
|
+
Size8 = 9,
|
|
183
|
+
Size9 = 10,
|
|
184
|
+
Auto = 11
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare enum Radiuses {
|
|
188
|
+
Size0 = 1,
|
|
189
|
+
Size1 = 2,
|
|
190
|
+
Size2 = 3,
|
|
191
|
+
Size3 = 4,
|
|
192
|
+
Size4 = 5,
|
|
193
|
+
Size5 = 6,
|
|
194
|
+
Size6 = 7,
|
|
195
|
+
Size7 = 8,
|
|
196
|
+
Size8 = 9,
|
|
197
|
+
Size9 = 10
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare enum Spacings {
|
|
201
|
+
Size0 = 1,
|
|
202
|
+
Size1 = 2,
|
|
203
|
+
Size2 = 3,
|
|
204
|
+
Size3 = 4,
|
|
205
|
+
Size4 = 5,
|
|
206
|
+
Size5 = 6,
|
|
207
|
+
Size6 = 7,
|
|
208
|
+
Size7 = 8,
|
|
209
|
+
Size8 = 9,
|
|
210
|
+
Size9 = 10,
|
|
211
|
+
Auto = 11
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare interface StyleProps {
|
|
215
|
+
margin?: Spacings;
|
|
216
|
+
marginTop?: Spacings;
|
|
217
|
+
marginBottom?: Spacings;
|
|
218
|
+
marginLeft?: Spacings;
|
|
219
|
+
marginRight?: Spacings;
|
|
220
|
+
padding?: Spacings;
|
|
221
|
+
paddingTop?: Spacings;
|
|
222
|
+
paddingBottom?: Spacings;
|
|
223
|
+
paddingLeft?: Spacings;
|
|
224
|
+
paddingRight?: Spacings;
|
|
225
|
+
boxShadow?: BoxShadows;
|
|
226
|
+
borderRadius?: Radiuses;
|
|
227
|
+
borderBottomLeftRadius?: Radiuses;
|
|
228
|
+
borderBottomRightRadius?: Radiuses;
|
|
229
|
+
borderTopLeftRadius?: Radiuses;
|
|
230
|
+
borderTopRightRadius?: Radiuses;
|
|
231
|
+
borderStyle?: BorderStyles;
|
|
232
|
+
borderLeftStyle?: BorderStyles;
|
|
233
|
+
borderRightStyle?: BorderStyles;
|
|
234
|
+
borderTopStyle?: BorderStyles;
|
|
235
|
+
borderBottomStyle?: BorderStyles;
|
|
236
|
+
borderWidth?: BorderWidths;
|
|
237
|
+
bgColor?: ColorPalettes;
|
|
238
|
+
paletteColor?: ColorPalettes;
|
|
239
|
+
borderColor?: ColorPalettes;
|
|
240
|
+
outlineColor?: ColorPalettes;
|
|
241
|
+
boxSizing?: BoxSizings;
|
|
242
|
+
top?: Positions;
|
|
243
|
+
bottom?: Positions;
|
|
244
|
+
left?: Positions;
|
|
245
|
+
right?: Positions;
|
|
246
|
+
cursor?: Cursors;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox-BHpT6PHl.cjs");exports.Checkbox=e.Checkbox;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare const Checkbox: ({ isChecked, size, checkboxColor, onClick, }: Props) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare enum CheckboxColors {
|
|
7
|
+
Primary5 = 1,
|
|
8
|
+
Secondary5 = 2,
|
|
9
|
+
Grey5 = 3,
|
|
10
|
+
Red5 = 4,
|
|
11
|
+
Green5 = 5,
|
|
12
|
+
Blue5 = 6,
|
|
13
|
+
Yellow5 = 7
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare enum CheckboxSizes {
|
|
17
|
+
Size1 = 1,
|
|
18
|
+
Size2 = 2,
|
|
19
|
+
Size3 = 3,
|
|
20
|
+
Size4 = 4,
|
|
21
|
+
Size5 = 5
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare type Props = {
|
|
25
|
+
isChecked: boolean;
|
|
26
|
+
children?: default_2.ReactNode;
|
|
27
|
+
size?: CheckboxSizes;
|
|
28
|
+
checkboxColor?: CheckboxColors;
|
|
29
|
+
onClick?: (v?: any) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("../component-D-EEi7NI.cjs"),C=require("../component-B1mkowwk.cjs"),f=require("../component-Bh3EPTN0.cjs"),h=require("../generics-9F1CmKPb.cjs"),l=require("../classes-HsjFV5aN.cjs"),y=require("../types-Cj8dOa0j.cjs"),b=require("react"),j=require("../Checkbox-BHpT6PHl.cjs"),q=({options:n,multiselect:t=!1,checkboxColor:c=y.CheckboxColors.Primary5,size:x,handleClick:r})=>{const i=b.useCallback(e=>{if(t)r(e);else{let o=n.findIndex(u=>u.isChecked===!0),d=n.findIndex(u=>u.id===e);o!==-1&&(d===o||r(n[o].id)),r(e)}},[r,t,n]);return s.jsx(C.Layout,{children:n.map((e,o)=>s.jsx(k,{checkboxColor:c,id:e.id,name:e.name,isChecked:e.isChecked,size:x,value:e==null?void 0:e.value,handleClickBox:i},o))})},k=({id:n,name:t,value:c,isChecked:x,checkboxColor:r,size:i,handleClickBox:e})=>s.jsx(a.Container,{onClick:()=>e(n,c),style:{cursor:"pointer"},children:s.jsxs(C.Layout,{display:l.Displays.Flex,flexJustifyContent:l.FlexJustifyContents.Center,flexAlignItem:l.FlexAlignItems.Center,children:[s.jsx(j.Checkbox,{isChecked:x,checkboxColor:r,size:i}),s.jsx(a.Container,{marginLeft:h.Spacings.Size2,children:s.jsx(f.Text_Span,{children:t})})]})});exports.Checkboxes=q;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare enum CheckboxColors {
|
|
4
|
+
Primary5 = 1,
|
|
5
|
+
Secondary5 = 2,
|
|
6
|
+
Grey5 = 3,
|
|
7
|
+
Red5 = 4,
|
|
8
|
+
Green5 = 5,
|
|
9
|
+
Blue5 = 6,
|
|
10
|
+
Yellow5 = 7
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare const Checkboxes: ({ options, multiselect, checkboxColor, size, handleClick, }: CheckboxesProps) => JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare type CheckboxesProps = {
|
|
16
|
+
options: CheckboxOption[];
|
|
17
|
+
multiselect: boolean;
|
|
18
|
+
checkboxColor: CheckboxColors;
|
|
19
|
+
size?: CheckboxSizes;
|
|
20
|
+
handleClick: (v: any) => void;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
declare type CheckboxOption = {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
value?: any;
|
|
27
|
+
isChecked: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
declare enum CheckboxSizes {
|
|
31
|
+
Size1 = 1,
|
|
32
|
+
Size2 = 2,
|
|
33
|
+
Size3 = 3,
|
|
34
|
+
Size4 = 4,
|
|
35
|
+
Size5 = 5
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { C as m } from "../component-C1Gs4nVu.js";
|
|
3
|
+
import { L as l } from "../component-DRXQXr2G.js";
|
|
4
|
+
import { T as d } from "../component-BvHdlcdE.js";
|
|
5
|
+
import { S as p } from "../generics-C-WSPclF.js";
|
|
6
|
+
import { h, j as u, b } from "../classes-CVxy1f4M.js";
|
|
7
|
+
import { b as y } from "../types-BWsKfOhf.js";
|
|
8
|
+
import { useCallback as I } from "react";
|
|
9
|
+
import { C as k } from "../Checkbox-C29jP71p.js";
|
|
10
|
+
const z = ({
|
|
11
|
+
options: o,
|
|
12
|
+
multiselect: t = !1,
|
|
13
|
+
checkboxColor: a = y.Primary5,
|
|
14
|
+
size: f,
|
|
15
|
+
//= CheckboxSizes.Size1,
|
|
16
|
+
handleClick: r
|
|
17
|
+
}) => {
|
|
18
|
+
const x = I(
|
|
19
|
+
(e) => {
|
|
20
|
+
if (t)
|
|
21
|
+
r(e);
|
|
22
|
+
else {
|
|
23
|
+
let n = o.findIndex(
|
|
24
|
+
(i) => i.isChecked === !0
|
|
25
|
+
), c = o.findIndex((i) => i.id === e);
|
|
26
|
+
n !== -1 && (c === n || r(o[n].id)), r(e);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
[r, t, o]
|
|
30
|
+
);
|
|
31
|
+
return /* @__PURE__ */ s(l, { children: o.map((e, n) => /* @__PURE__ */ s(
|
|
32
|
+
g,
|
|
33
|
+
{
|
|
34
|
+
checkboxColor: a,
|
|
35
|
+
id: e.id,
|
|
36
|
+
name: e.name,
|
|
37
|
+
isChecked: e.isChecked,
|
|
38
|
+
size: f,
|
|
39
|
+
value: e == null ? void 0 : e.value,
|
|
40
|
+
handleClickBox: x
|
|
41
|
+
},
|
|
42
|
+
n
|
|
43
|
+
)) });
|
|
44
|
+
}, g = ({
|
|
45
|
+
id: o,
|
|
46
|
+
name: t,
|
|
47
|
+
value: a,
|
|
48
|
+
isChecked: f,
|
|
49
|
+
checkboxColor: r,
|
|
50
|
+
size: x,
|
|
51
|
+
handleClickBox: e
|
|
52
|
+
}) => /* @__PURE__ */ s(
|
|
53
|
+
m,
|
|
54
|
+
{
|
|
55
|
+
onClick: () => e(o, a),
|
|
56
|
+
style: { cursor: "pointer" },
|
|
57
|
+
children: /* @__PURE__ */ C(
|
|
58
|
+
l,
|
|
59
|
+
{
|
|
60
|
+
display: b.Flex,
|
|
61
|
+
flexJustifyContent: u.Center,
|
|
62
|
+
flexAlignItem: h.Center,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ s(
|
|
65
|
+
k,
|
|
66
|
+
{
|
|
67
|
+
isChecked: f,
|
|
68
|
+
checkboxColor: r,
|
|
69
|
+
size: x
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ s(m, { marginLeft: p.Size2, children: /* @__PURE__ */ s(d, { children: t }) })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
export {
|
|
79
|
+
z as Checkboxes
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),q=require("../component-D-EEi7NI.cjs"),x=require("../component-B1mkowwk.cjs"),O=require("../component-Bh3EPTN0.cjs"),a=require("../generics-DE1oV0MV.cjs"),t=require("../values-C40_Fyfk.cjs"),o=require("../generics-9F1CmKPb.cjs"),h=require("../classes-HsjFV5aN.cjs");var z=(i=>(i[i.Tiny=1]="Tiny",i[i.Small=2]="Small",i[i.Medium=3]="Medium",i[i.Big=4]="Big",i))(z||{});const d={1:{fontSize:o.FontSizes.Size1,paddingTop:o.Spacings.Size0,paddingBottom:o.Spacings.Size0,paddingLeft:o.Spacings.Size1,paddingRight:o.Spacings.Size1,borderRadius:o.Radiuses.Size7},2:{fontSize:o.FontSizes.Size2,paddingTop:o.Spacings.Size1,paddingBottom:o.Spacings.Size1,paddingLeft:o.Spacings.Size2,paddingRight:o.Spacings.Size2,borderRadius:o.Radiuses.Size7},3:{fontSize:o.FontSizes.Size3,paddingTop:o.Spacings.Size2,paddingBottom:o.Spacings.Size2,paddingLeft:o.Spacings.Size3,paddingRight:o.Spacings.Size3,borderRadius:o.Radiuses.Size7},4:{fontSize:o.FontSizes.Size4,paddingTop:o.Spacings.Size3,paddingBottom:o.Spacings.Size3,paddingLeft:o.Spacings.Size4,paddingRight:o.Spacings.Size4,borderRadius:o.Radiuses.Size7}};var L=(i=>(i[i.Filled=1]="Filled",i[i.Outlined=2]="Outlined",i))(L||{});const r={1:{bgColor:a.ColorPalettes.Primary5,font:{fontColor:a.ColorPalettes.Grey9}},2:{border:{borderColor:a.ColorPalettes.Primary5,borderStyle:o.BorderStyles.Solid,borderWidth:o.BorderWidths.Size2},font:{}}},W=({children:i,chipColor:e=a.ColorSets.Primarys,paddings:T="all",margin:B,marginTop:C,marginBottom:y,marginLeft:P,marginRight:F,fontSize:p,chipStyle:n=L.Filled,size:g=z.Medium})=>{var S,l,c,u,b,f,R,m;return s.jsx(x.Layout,{display:h.Displays.Flex,children:s.jsx(q.Container,{...j(T,g),margin:B,marginTop:C,marginBottom:y,marginLeft:P,marginRight:F,borderRadius:d[g].borderRadius,borderColor:(S=r[n].border)==null?void 0:S.borderColor,borderStyle:(l=r[n].border)==null?void 0:l.borderStyle,borderWidth:(c=r[n].border)==null?void 0:c.borderWidth,style:{backgroundColor:(u=r[n])!=null&&u.bgColor?t.COLOR_VALUES[t.ColorRanges[e][0]+2]:void 0,color:(f=(b=r[n])==null?void 0:b.font)!=null&&f.fontColor?(m=(R=r[n])==null?void 0:R.font)==null?void 0:m.fontColor:t.COLOR_VALUES[t.ColorRanges[e][0]+4]},children:s.jsx(O.Text_Span,{style:{display:"inline-block",transform:"translateY(-1px)",color:"inherit"},fontSize:p||d[g].fontSize,fontWeight:o.FontWeights.Size3,children:i})})})},j=(i,e)=>{switch(i){case"all":return{paddingTop:d[e].paddingTop,paddingBottom:d[e].paddingBottom,paddingLeft:d[e].paddingLeft,paddingRight:d[e].paddingRight};case"left right":return{paddingLeft:d[e].paddingLeft,paddingRight:d[e].paddingRight};default:return{paddingTop:d[e].paddingTop,paddingBottom:d[e].paddingBottom}}};exports.Chip=W;
|