@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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../LabelText-BUslE9cx.cjs");exports.LabelText=e.LabelText;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
export declare const LabelText: ({ labelName, offsetX, y, x, hover, }: {
|
|
4
|
+
labelName?: string | undefined;
|
|
5
|
+
offsetX?: number | undefined;
|
|
6
|
+
y?: number | undefined;
|
|
7
|
+
x?: number | undefined;
|
|
8
|
+
hover?: boolean | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../component-B1mkowwk.cjs");exports.Layout=e.Layout;
|
|
@@ -0,0 +1,163 @@
|
|
|
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 AlignSelfs {
|
|
8
|
+
Start = 1,
|
|
9
|
+
End = 2,
|
|
10
|
+
Center = 3,
|
|
11
|
+
Left = 4,
|
|
12
|
+
Right = 5,
|
|
13
|
+
SelfStart = 6,
|
|
14
|
+
SelfEnd = 7,
|
|
15
|
+
Stretch = 8,
|
|
16
|
+
Normal = 9,
|
|
17
|
+
Auto = 10
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare enum Displays {
|
|
21
|
+
None = 1,
|
|
22
|
+
Block = 2,
|
|
23
|
+
InlineBlock = 3,
|
|
24
|
+
Flex = 4,
|
|
25
|
+
InlineFlex = 5,
|
|
26
|
+
Grid = 6
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare enum FlexAlignContents {
|
|
30
|
+
FlexStart = 1,
|
|
31
|
+
FlexEnd = 2,
|
|
32
|
+
Center = 3,
|
|
33
|
+
SpaceBetween = 4,
|
|
34
|
+
SpaceAround = 5,
|
|
35
|
+
Stretch = 6
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum FlexAlignItems {
|
|
39
|
+
FlexStart = 1,
|
|
40
|
+
FlexEnd = 2,
|
|
41
|
+
Center = 3,
|
|
42
|
+
Baseline = 4,
|
|
43
|
+
Stretch = 5
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare enum FlexDirections {
|
|
47
|
+
Row = 1,
|
|
48
|
+
Column = 2,
|
|
49
|
+
RowReverse = 3,
|
|
50
|
+
ColumnReverse = 4
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare enum FlexJustifyContents {
|
|
54
|
+
FlexStart = 1,
|
|
55
|
+
FlexEnd = 2,
|
|
56
|
+
Center = 3,
|
|
57
|
+
SpaceBetween = 4,
|
|
58
|
+
SpaceAround = 5
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare enum FlexWraps {
|
|
62
|
+
NoWrap = 1,
|
|
63
|
+
Wrap = 2,
|
|
64
|
+
WrapReverse = 3
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare enum GridAlignContents {
|
|
68
|
+
Start = 1,
|
|
69
|
+
End = 2,
|
|
70
|
+
Center = 3,
|
|
71
|
+
Left = 4,
|
|
72
|
+
Right = 5,
|
|
73
|
+
SpaceAround = 6,
|
|
74
|
+
SpaceBetween = 7,
|
|
75
|
+
Stretch = 8,
|
|
76
|
+
SpaceEvenly = 9
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare enum GridColumnGaps {
|
|
80
|
+
Size1 = 1,
|
|
81
|
+
Size2 = 2,
|
|
82
|
+
Size3 = 3,
|
|
83
|
+
Size4 = 4,
|
|
84
|
+
Size5 = 5,
|
|
85
|
+
Size6 = 6,
|
|
86
|
+
Size7 = 7,
|
|
87
|
+
Size8 = 8,
|
|
88
|
+
Size9 = 9
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare enum GridGaps {
|
|
92
|
+
Size1 = 1,
|
|
93
|
+
Size2 = 2,
|
|
94
|
+
Size3 = 3,
|
|
95
|
+
Size4 = 4,
|
|
96
|
+
Size5 = 5,
|
|
97
|
+
Size6 = 6,
|
|
98
|
+
Size7 = 7,
|
|
99
|
+
Size8 = 8,
|
|
100
|
+
Size9 = 9
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare enum GridJustifyContents {
|
|
104
|
+
Start = 1,
|
|
105
|
+
End = 2,
|
|
106
|
+
Center = 3,
|
|
107
|
+
Left = 4,
|
|
108
|
+
Right = 5,
|
|
109
|
+
SpaceAround = 6,
|
|
110
|
+
SpaceBetween = 7,
|
|
111
|
+
Stretch = 8,
|
|
112
|
+
SpaceEvenly = 9
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare enum GridRowGaps {
|
|
116
|
+
Size1 = 1,
|
|
117
|
+
Size2 = 2,
|
|
118
|
+
Size3 = 3,
|
|
119
|
+
Size4 = 4,
|
|
120
|
+
Size5 = 5,
|
|
121
|
+
Size6 = 6,
|
|
122
|
+
Size7 = 7,
|
|
123
|
+
Size8 = 8,
|
|
124
|
+
Size9 = 9
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare enum JustifySelfs {
|
|
128
|
+
Start = 1,
|
|
129
|
+
End = 2,
|
|
130
|
+
Center = 3,
|
|
131
|
+
Left = 4,
|
|
132
|
+
Right = 5,
|
|
133
|
+
SelfStart = 6,
|
|
134
|
+
SelfEnd = 7,
|
|
135
|
+
Stretch = 8,
|
|
136
|
+
Normal = 9,
|
|
137
|
+
Auto = 10
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare const Layout: FC<LayoutDivProps>;
|
|
141
|
+
|
|
142
|
+
declare interface LayoutDivProps extends AnimatedProps<HTMLAttributes<HTMLDivElement>>, LayoutProps {
|
|
143
|
+
children?: ReactNode;
|
|
144
|
+
ref?: Ref<HTMLDivElement | null>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare interface LayoutProps {
|
|
148
|
+
display?: Displays;
|
|
149
|
+
flexDirection?: FlexDirections;
|
|
150
|
+
flexWrap?: FlexWraps;
|
|
151
|
+
flexJustifyContent?: FlexJustifyContents;
|
|
152
|
+
flexAlignItem?: FlexAlignItems;
|
|
153
|
+
flexAlignContent?: FlexAlignContents;
|
|
154
|
+
gridGap?: GridGaps;
|
|
155
|
+
gridRowGap?: GridRowGaps;
|
|
156
|
+
gridColumnGap?: GridColumnGaps;
|
|
157
|
+
gridJustifyContent?: GridJustifyContents;
|
|
158
|
+
gridAlignContent?: GridAlignContents;
|
|
159
|
+
justifySelf?: JustifySelfs;
|
|
160
|
+
alignSelf?: AlignSelfs;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("../react-spring_web.modern-W3Nkoq_6.cjs"),e=require("../generics-nyvJhwQE.cjs"),t={[e.Sizings.Size1]:{containerSize:8,size:4},[e.Sizings.Size2]:{containerSize:12,size:8},[e.Sizings.Size3]:{containerSize:16,size:12},[e.Sizings.Size4]:{containerSize:20,size:16},[e.Sizings.Size5]:{containerSize:24,size:20},[e.Sizings.Size6]:{containerSize:28,size:24},[e.Sizings.Size7]:{containerSize:32,size:28},[e.Sizings.Size8]:{containerSize:36,size:32},[e.Sizings.Size9]:{containerSize:44,size:40},[e.Sizings.Size10]:{containerSize:52,size:48},[e.Sizings.Size11]:{containerSize:60,size:54},[e.Sizings.Size12]:{containerSize:68,size:64},[e.Sizings.Size13]:{containerSize:76,size:72},[e.Sizings.Size14]:{containerSize:84,size:80},[e.Sizings.Size15]:{containerSize:92,size:88}};function a({size:n=e.Sizings.Size3}){return i.jsx("div",{className:"image-container",style:{width:`${t[n].containerSize}px`,height:`${t[n].containerSize}px`},children:i.jsx("svg",{className:"text-zinc-300",viewBox:"0 0 2400 2400",width:t[n].size,height:t[n].size,children:i.jsxs("g",{strokeWidth:200,strokeLinecap:"round",stroke:"currentColor",fill:"none",children:[i.jsx("path",{d:"M1200 600L1200 100"}),i.jsx("path",{opacity:.5,d:"M1200 2300L1200 1800"}),i.jsx("path",{opacity:.917,d:"M900 680.4L650 247.4"}),i.jsx("path",{opacity:.417,d:"M1750 2152.6L1500 1719.6"}),i.jsx("path",{opacity:.833,d:"M680.4 900L247.4 650"}),i.jsx("path",{opacity:.333,d:"M2152.6 1750L1719.6 1500"}),i.jsx("path",{opacity:.75,d:"M600 1200L100 1200"}),i.jsx("path",{opacity:.25,d:"M2300 1200L1800 1200"}),i.jsx("path",{opacity:.667,d:"M680.4 1500L247.4 1750"}),i.jsx("path",{opacity:.167,d:"M2152.6 650L1719.6 900"}),i.jsx("path",{opacity:.583,d:"M900 1719.6L650 2152.6"}),i.jsx("path",{opacity:.083,d:"M1750 247.4L1500 680.4"}),i.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",keyTimes:"0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667",values:"0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199",dur:"0.83333s",begin:"0s",repeatCount:"indefinite",calcMode:"discrete"})]})})})}const c=({isLoading:n,size:r=e.Sizings.Size3})=>s.useTransition(n,{from:{opacity:0,scale:.6,height:0},enter:{opacity:1,scale:1,height:30},leave:{opacity:0,scale:.6,height:0}})((z,o)=>o&&i.jsx(s.animated.div,{style:{display:"flex",justifyContent:"center",alignItems:"center",...z},children:i.jsx(a,{size:r})}));exports.LoadingSpinner=c;exports.Spinner=a;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare const LoadingSpinner: ({ isLoading, size }: Props) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare type Props = {
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
size?: Sizings;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare enum Sizings {
|
|
12
|
+
Size1 = 8,
|
|
13
|
+
Size2 = 12,
|
|
14
|
+
Size3 = 16,
|
|
15
|
+
Size4 = 20,
|
|
16
|
+
Size5 = 24,
|
|
17
|
+
Size6 = 28,
|
|
18
|
+
Size7 = 32,
|
|
19
|
+
Size8 = 36,
|
|
20
|
+
Size9 = 44,
|
|
21
|
+
Size10 = 52,
|
|
22
|
+
Size11 = 60,
|
|
23
|
+
Size12 = 68,
|
|
24
|
+
Size13 = 76,
|
|
25
|
+
Size14 = 84,
|
|
26
|
+
Size15 = 92
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare function Spinner({ size }: {
|
|
30
|
+
size?: Sizings | undefined;
|
|
31
|
+
}): JSX_2.Element;
|
|
32
|
+
|
|
33
|
+
export { }
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { d as s, a as z } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
+
import { S as i } from "../generics-BrMr2-Gs.js";
|
|
5
|
+
const n = {
|
|
6
|
+
[i.Size1]: { containerSize: 8, size: 4 },
|
|
7
|
+
[i.Size2]: { containerSize: 12, size: 8 },
|
|
8
|
+
[i.Size3]: { containerSize: 16, size: 12 },
|
|
9
|
+
[i.Size4]: { containerSize: 20, size: 16 },
|
|
10
|
+
[i.Size5]: { containerSize: 24, size: 20 },
|
|
11
|
+
[i.Size6]: { containerSize: 28, size: 24 },
|
|
12
|
+
[i.Size7]: { containerSize: 32, size: 28 },
|
|
13
|
+
[i.Size8]: { containerSize: 36, size: 32 },
|
|
14
|
+
[i.Size9]: { containerSize: 44, size: 40 },
|
|
15
|
+
[i.Size10]: { containerSize: 52, size: 48 },
|
|
16
|
+
[i.Size11]: { containerSize: 60, size: 54 },
|
|
17
|
+
[i.Size12]: { containerSize: 68, size: 64 },
|
|
18
|
+
[i.Size13]: { containerSize: 76, size: 72 },
|
|
19
|
+
[i.Size14]: { containerSize: 84, size: 80 },
|
|
20
|
+
[i.Size15]: { containerSize: 92, size: 88 }
|
|
21
|
+
};
|
|
22
|
+
function S({ size: t = i.Size3 }) {
|
|
23
|
+
return /* @__PURE__ */ e(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: "image-container",
|
|
27
|
+
style: {
|
|
28
|
+
width: `${n[t].containerSize}px`,
|
|
29
|
+
height: `${n[t].containerSize}px`
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ e(
|
|
32
|
+
"svg",
|
|
33
|
+
{
|
|
34
|
+
className: "text-zinc-300",
|
|
35
|
+
viewBox: "0 0 2400 2400",
|
|
36
|
+
width: n[t].size,
|
|
37
|
+
height: n[t].size,
|
|
38
|
+
children: /* @__PURE__ */ c(
|
|
39
|
+
"g",
|
|
40
|
+
{
|
|
41
|
+
strokeWidth: 200,
|
|
42
|
+
strokeLinecap: "round",
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
fill: "none",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ e("path", { d: "M1200 600L1200 100" }),
|
|
47
|
+
/* @__PURE__ */ e("path", { opacity: 0.5, d: "M1200 2300L1200 1800" }),
|
|
48
|
+
/* @__PURE__ */ e("path", { opacity: 0.917, d: "M900 680.4L650 247.4" }),
|
|
49
|
+
/* @__PURE__ */ e("path", { opacity: 0.417, d: "M1750 2152.6L1500 1719.6" }),
|
|
50
|
+
/* @__PURE__ */ e("path", { opacity: 0.833, d: "M680.4 900L247.4 650" }),
|
|
51
|
+
/* @__PURE__ */ e("path", { opacity: 0.333, d: "M2152.6 1750L1719.6 1500" }),
|
|
52
|
+
/* @__PURE__ */ e("path", { opacity: 0.75, d: "M600 1200L100 1200" }),
|
|
53
|
+
/* @__PURE__ */ e("path", { opacity: 0.25, d: "M2300 1200L1800 1200" }),
|
|
54
|
+
/* @__PURE__ */ e("path", { opacity: 0.667, d: "M680.4 1500L247.4 1750" }),
|
|
55
|
+
/* @__PURE__ */ e("path", { opacity: 0.167, d: "M2152.6 650L1719.6 900" }),
|
|
56
|
+
/* @__PURE__ */ e("path", { opacity: 0.583, d: "M900 1719.6L650 2152.6" }),
|
|
57
|
+
/* @__PURE__ */ e("path", { opacity: 0.083, d: "M1750 247.4L1500 680.4" }),
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
"animateTransform",
|
|
60
|
+
{
|
|
61
|
+
attributeName: "transform",
|
|
62
|
+
attributeType: "XML",
|
|
63
|
+
type: "rotate",
|
|
64
|
+
keyTimes: "0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667",
|
|
65
|
+
values: "0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199",
|
|
66
|
+
dur: "0.83333s",
|
|
67
|
+
begin: "0s",
|
|
68
|
+
repeatCount: "indefinite",
|
|
69
|
+
calcMode: "discrete"
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
const y = ({ isLoading: t, size: a = i.Size3 }) => s(t, {
|
|
81
|
+
from: { opacity: 0, scale: 0.6, height: 0 },
|
|
82
|
+
enter: { opacity: 1, scale: 1, height: 30 },
|
|
83
|
+
leave: { opacity: 0, scale: 0.6, height: 0 }
|
|
84
|
+
})(
|
|
85
|
+
(o, r) => r && /* @__PURE__ */ e(
|
|
86
|
+
z.div,
|
|
87
|
+
{
|
|
88
|
+
style: {
|
|
89
|
+
display: "flex",
|
|
90
|
+
justifyContent: "center",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
...o
|
|
93
|
+
},
|
|
94
|
+
children: /* @__PURE__ */ e(S, { size: a })
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
export {
|
|
99
|
+
y as LoadingSpinner,
|
|
100
|
+
S as Spinner
|
|
101
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Modal-BRIYhcOg.cjs");exports.Modal=e.Modal;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare enum ColorPalettes {
|
|
5
|
+
Transparent = 1,// (0, 1)
|
|
6
|
+
Grey1 = 2,
|
|
7
|
+
Grey2 = 3,
|
|
8
|
+
Grey3 = 4,
|
|
9
|
+
Grey4 = 5,
|
|
10
|
+
Grey5 = 6,
|
|
11
|
+
Grey6 = 7,
|
|
12
|
+
Grey7 = 8,
|
|
13
|
+
Grey8 = 9,
|
|
14
|
+
Grey9 = 10,
|
|
15
|
+
Grey10 = 11,// (2, 11)
|
|
16
|
+
Primary1 = 12,
|
|
17
|
+
Primary2 = 13,
|
|
18
|
+
Primary3 = 14,
|
|
19
|
+
Primary4 = 15,
|
|
20
|
+
Primary5 = 16,
|
|
21
|
+
Primary6 = 17,
|
|
22
|
+
Primary7 = 18,
|
|
23
|
+
Primary8 = 19,
|
|
24
|
+
Primary9 = 20,// (12, 20)
|
|
25
|
+
Secondary1 = 21,
|
|
26
|
+
Secondary2 = 22,
|
|
27
|
+
Secondary3 = 23,
|
|
28
|
+
Secondary4 = 24,
|
|
29
|
+
Secondary5 = 25,
|
|
30
|
+
Secondary6 = 26,
|
|
31
|
+
Secondary7 = 27,
|
|
32
|
+
Secondary8 = 28,
|
|
33
|
+
Secondary9 = 29,// (21, 29)
|
|
34
|
+
Red1 = 30,
|
|
35
|
+
Red2 = 31,
|
|
36
|
+
Red3 = 32,
|
|
37
|
+
Red4 = 33,
|
|
38
|
+
Red5 = 34,
|
|
39
|
+
Red6 = 35,
|
|
40
|
+
Red7 = 36,
|
|
41
|
+
Red8 = 37,
|
|
42
|
+
Red9 = 38,// (30, 38)
|
|
43
|
+
Green1 = 39,
|
|
44
|
+
Green2 = 40,
|
|
45
|
+
Green3 = 41,
|
|
46
|
+
Green4 = 42,
|
|
47
|
+
Green5 = 43,
|
|
48
|
+
Green6 = 44,
|
|
49
|
+
Green7 = 45,
|
|
50
|
+
Green8 = 46,
|
|
51
|
+
Green9 = 47,// (39, 47)
|
|
52
|
+
Blue1 = 48,
|
|
53
|
+
Blue2 = 49,
|
|
54
|
+
Blue3 = 50,
|
|
55
|
+
Blue4 = 51,
|
|
56
|
+
Blue5 = 52,
|
|
57
|
+
Blue6 = 53,
|
|
58
|
+
Blue7 = 54,
|
|
59
|
+
Blue8 = 55,
|
|
60
|
+
Blue9 = 56,// (48, 56)
|
|
61
|
+
Yellow1 = 57,
|
|
62
|
+
Yellow2 = 58,
|
|
63
|
+
Yellow3 = 59,
|
|
64
|
+
Yellow4 = 60,
|
|
65
|
+
Yellow5 = 61,
|
|
66
|
+
Yellow6 = 62,
|
|
67
|
+
Yellow7 = 63,
|
|
68
|
+
Yellow8 = 64,
|
|
69
|
+
Yellow9 = 65,// (57, 65)
|
|
70
|
+
Accent1_1 = 66,
|
|
71
|
+
Accent1_2 = 67,
|
|
72
|
+
Accent1_3 = 68,
|
|
73
|
+
Accent1_4 = 69,
|
|
74
|
+
Accent1_5 = 70,
|
|
75
|
+
Accent1_6 = 71,
|
|
76
|
+
Accent1_7 = 72,
|
|
77
|
+
Accent1_8 = 73,
|
|
78
|
+
Accent1_9 = 74,// (57, 65)
|
|
79
|
+
Accent2_1 = 75,
|
|
80
|
+
Accent2_2 = 76,
|
|
81
|
+
Accent2_3 = 77,
|
|
82
|
+
Accent2_4 = 78,
|
|
83
|
+
Accent2_5 = 79,
|
|
84
|
+
Accent2_6 = 80,
|
|
85
|
+
Accent2_7 = 81,
|
|
86
|
+
Accent2_8 = 82,
|
|
87
|
+
Accent2_9 = 83
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export declare const Modal: FC<P>;
|
|
91
|
+
|
|
92
|
+
declare enum ModalStyles {
|
|
93
|
+
Default = 1,
|
|
94
|
+
Nocard = 2
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare interface P {
|
|
98
|
+
showModal: boolean;
|
|
99
|
+
closeModal: (v?: any) => void;
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
modalStyles?: ModalStyles;
|
|
102
|
+
modalBackground?: ColorPalettes;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),z=require("../react-spring_web.modern-W3Nkoq_6.cjs"),a=require("../component-D-EEi7NI.cjs"),C=require("../GlobalEventContext-D9ug9s1O.cjs"),q=require("../GlobalEventPortal-BIdCGd-m.cjs"),p=require("../UIcon-B5rpDmHC.cjs"),j=require("../component-B1mkowwk.cjs"),_=require("../component-JigdcRMd.cjs"),I=require("../generics-DE1oV0MV.cjs"),o=require("../generics-9F1CmKPb.cjs"),m=require("../classes-HsjFV5aN.cjs"),y=require("../generics-nyvJhwQE.cjs"),x=require("react"),v="_message_1i7cn_1",M="_life_1i7cn_12",S={message:v,life:M},w=()=>{const{globalEventRef:c}=C.useGlobalEventContext();return e.jsx(q.GlobalEventPortal,{children:e.jsx(E,{children:l=>{c.current=l}})})};let k=0;function E({config:c={tension:125,friction:20,precision:.1},timeout:l=3e3,children:g}){const i=x.useMemo(()=>new WeakMap,[]),u=x.useMemo(()=>new WeakMap,[]),[f,r]=x.useState([]),h=z.useTransition(f,{from:{opacity:0,height:0,life:"100%",y:0},keys:s=>s.key,enter:s=>async(t,n)=>{u.set(s,n),await t({opacity:1,height:i.get(s).offsetHeight+10,y:30}),await t({life:"0%"})},leave:[{opacity:0,y:50},{height:0}],onRest:(s,t,n)=>{r(d=>d.filter(b=>b.key!==n.key))},config:(s,t,n)=>d=>n==="enter"&&d==="life"?{duration:s.type.isTimeout?l:1e3*60*60*24}:c});return x.useEffect(()=>{g((s,t,n)=>{r(d=>[...d,{key:k++,msg:s,type:t,customAction:n}])})},[g]),e.jsx(j.Layout,{display:m.Displays.Flex,flexDirection:m.FlexDirections.Column,flexAlignItem:m.FlexAlignItems.FlexEnd,style:{position:"fixed",zIndex:1e3,bottom:"30px",right:"30px"},children:h(({life:s,...t},n)=>e.jsx(F,{style:t,refMap:i,cancelMap:u,type:n.type,msg:n.msg,life:s,item:n,customAction:n.customAction}))})}const F=({style:c,refMap:l,cancelMap:g,type:i,msg:u,life:f,item:r,customAction:h})=>{const[s,t]=x.useState(!1);return e.jsx(a.Container,{style:c,className:s?`${S.message} disabled`:S.message,children:e.jsx("div",{ref:n=>n&&l.set(r,n),children:e.jsx(a.Container,{bgColor:I.ColorPalettes.Secondary2,borderRadius:o.Radiuses.Size4,padding:o.Spacings.Size3,boxShadow:o.BoxShadows.Size5,style:{borderBottom:"none"},children:e.jsxs(j.Layout,{display:m.Displays.Flex,flexAlignItem:m.FlexAlignItems.Center,style:{position:"relative",minWidth:"200px"},children:[e.jsx(a.Container,{marginRight:o.Spacings.Size2,children:e.jsx(p.UIcon,{name:i.icon,size:y.Sizings.Size6,colorLight:i.color,colorDark:i.color,withMargin:!1})}),e.jsx(_.Text_P,{fontSize:o.FontSizes.Size4,children:u||i.default}),e.jsxs(a.Container,{marginLeft:o.Spacings.Auto,paddingLeft:o.Spacings.Size3,children:[h&&e.jsx(a.Container,{marginRight:o.Spacings.Size3,children:h}),e.jsx(p.UIcon,{name:"x-circle",size:y.Sizings.Size4,iconAction:()=>{s||(g.has(r)&&f.get()!=="0%"&&g.get(r)(),t(!0))},withMargin:!1})]}),(i==null?void 0:i.isTimeout)&&e.jsx(a.Container,{className:`${S.life} ${i.classname}`,style:{right:f,transform:"translateY(8px)"}})]})})})})},A=()=>e.jsx(e.Fragment,{children:e.jsx(w,{})});exports.NotificationSystem=A;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i, jsxs as p, Fragment as w } from "react/jsx-runtime";
|
|
3
|
+
import { d as I } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
+
import { C as r } from "../component-C1Gs4nVu.js";
|
|
5
|
+
import { u as M } from "../GlobalEventContext-DUmT3Vay.js";
|
|
6
|
+
import { G as v } from "../GlobalEventPortal-GjfUDr2B.js";
|
|
7
|
+
import { U as x } from "../UIcon-BHzbeYWw.js";
|
|
8
|
+
import { L as z } from "../component-DRXQXr2G.js";
|
|
9
|
+
import { T as F } from "../component-D0wwK4KY.js";
|
|
10
|
+
import { C as R } from "../generics-D33J7ILI.js";
|
|
11
|
+
import { b as A, S as d, R as E, d as T } from "../generics-C-WSPclF.js";
|
|
12
|
+
import { h as b, i as L, b as C } from "../classes-CVxy1f4M.js";
|
|
13
|
+
import { S } from "../generics-BrMr2-Gs.js";
|
|
14
|
+
import { useMemo as y, useState as _, useEffect as D } from "react";
|
|
15
|
+
const G = "_message_1i7cn_1", N = "_life_1i7cn_12", u = {
|
|
16
|
+
message: G,
|
|
17
|
+
life: N
|
|
18
|
+
}, P = () => {
|
|
19
|
+
const { globalEventRef: a } = M();
|
|
20
|
+
return /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
|
|
21
|
+
$,
|
|
22
|
+
{
|
|
23
|
+
children: (l) => {
|
|
24
|
+
a.current = l;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
) });
|
|
28
|
+
};
|
|
29
|
+
let W = 0;
|
|
30
|
+
function $({
|
|
31
|
+
config: a = { tension: 125, friction: 20, precision: 0.1 },
|
|
32
|
+
timeout: l = 3e3,
|
|
33
|
+
children: c
|
|
34
|
+
}) {
|
|
35
|
+
const s = y(() => /* @__PURE__ */ new WeakMap(), []), m = y(() => /* @__PURE__ */ new WeakMap(), []), [g, n] = _([]), h = I(g, {
|
|
36
|
+
from: { opacity: 0, height: 0, life: "100%", y: 0 },
|
|
37
|
+
keys: (t) => t.key,
|
|
38
|
+
enter: (t) => async (o, e) => {
|
|
39
|
+
m.set(t, e), await o({
|
|
40
|
+
opacity: 1,
|
|
41
|
+
height: s.get(t).offsetHeight + 10,
|
|
42
|
+
y: 30
|
|
43
|
+
}), await o({ life: "0%" });
|
|
44
|
+
},
|
|
45
|
+
leave: [{ opacity: 0, y: 50 }, { height: 0 }],
|
|
46
|
+
onRest: (t, o, e) => {
|
|
47
|
+
n(
|
|
48
|
+
(f) => f.filter((k) => k.key !== e.key)
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
config: (t, o, e) => (f) => e === "enter" && f === "life" ? { duration: t.type.isTimeout ? l : 1e3 * 60 * 60 * 24 } : a
|
|
52
|
+
});
|
|
53
|
+
return D(() => {
|
|
54
|
+
c(
|
|
55
|
+
(t, o, e) => {
|
|
56
|
+
n((f) => [
|
|
57
|
+
...f,
|
|
58
|
+
{ key: W++, msg: t, type: o, customAction: e }
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}, [c]), /* @__PURE__ */ i(
|
|
63
|
+
z,
|
|
64
|
+
{
|
|
65
|
+
display: C.Flex,
|
|
66
|
+
flexDirection: L.Column,
|
|
67
|
+
flexAlignItem: b.FlexEnd,
|
|
68
|
+
style: { position: "fixed", zIndex: 1e3, bottom: "30px", right: "30px" },
|
|
69
|
+
children: h(({ life: t, ...o }, e) => /* @__PURE__ */ i(
|
|
70
|
+
j,
|
|
71
|
+
{
|
|
72
|
+
style: o,
|
|
73
|
+
refMap: s,
|
|
74
|
+
cancelMap: m,
|
|
75
|
+
type: e.type,
|
|
76
|
+
msg: e.msg,
|
|
77
|
+
life: t,
|
|
78
|
+
item: e,
|
|
79
|
+
customAction: e.customAction
|
|
80
|
+
}
|
|
81
|
+
))
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
const j = ({
|
|
86
|
+
style: a,
|
|
87
|
+
refMap: l,
|
|
88
|
+
cancelMap: c,
|
|
89
|
+
type: s,
|
|
90
|
+
msg: m,
|
|
91
|
+
life: g,
|
|
92
|
+
item: n,
|
|
93
|
+
customAction: h
|
|
94
|
+
}) => {
|
|
95
|
+
const [t, o] = _(!1);
|
|
96
|
+
return /* @__PURE__ */ i(
|
|
97
|
+
r,
|
|
98
|
+
{
|
|
99
|
+
style: a,
|
|
100
|
+
className: t ? `${u.message} disabled` : u.message,
|
|
101
|
+
children: /* @__PURE__ */ i("div", { ref: (e) => e && l.set(n, e), children: /* @__PURE__ */ i(
|
|
102
|
+
r,
|
|
103
|
+
{
|
|
104
|
+
bgColor: R.Secondary2,
|
|
105
|
+
borderRadius: E.Size4,
|
|
106
|
+
padding: d.Size3,
|
|
107
|
+
boxShadow: A.Size5,
|
|
108
|
+
style: { borderBottom: "none" },
|
|
109
|
+
children: /* @__PURE__ */ p(
|
|
110
|
+
z,
|
|
111
|
+
{
|
|
112
|
+
display: C.Flex,
|
|
113
|
+
flexAlignItem: b.Center,
|
|
114
|
+
style: { position: "relative", minWidth: "200px" },
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ i(r, { marginRight: d.Size2, children: /* @__PURE__ */ i(
|
|
117
|
+
x,
|
|
118
|
+
{
|
|
119
|
+
name: s.icon,
|
|
120
|
+
size: S.Size6,
|
|
121
|
+
colorLight: s.color,
|
|
122
|
+
colorDark: s.color,
|
|
123
|
+
withMargin: !1
|
|
124
|
+
}
|
|
125
|
+
) }),
|
|
126
|
+
/* @__PURE__ */ i(F, { fontSize: T.Size4, children: m || s.default }),
|
|
127
|
+
/* @__PURE__ */ p(r, { marginLeft: d.Auto, paddingLeft: d.Size3, children: [
|
|
128
|
+
h && /* @__PURE__ */ i(r, { marginRight: d.Size3, children: h }),
|
|
129
|
+
/* @__PURE__ */ i(
|
|
130
|
+
x,
|
|
131
|
+
{
|
|
132
|
+
name: "x-circle",
|
|
133
|
+
size: S.Size4,
|
|
134
|
+
iconAction: () => {
|
|
135
|
+
t || (c.has(n) && g.get() !== "0%" && c.get(n)(), o(!0));
|
|
136
|
+
},
|
|
137
|
+
withMargin: !1
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] }),
|
|
141
|
+
(s == null ? void 0 : s.isTimeout) && /* @__PURE__ */ i(
|
|
142
|
+
r,
|
|
143
|
+
{
|
|
144
|
+
className: `${u.life} ${s.classname}`,
|
|
145
|
+
style: { right: g, transform: "translateY(8px)" }
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
) })
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}, ie = () => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ i(P, {}) });
|
|
156
|
+
export {
|
|
157
|
+
ie as NotificationSystem
|
|
158
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../types-BhBb436R.cjs");exports.FunctionalUiPortals=e.PORTAL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),f=require("../react-spring_web.modern-W3Nkoq_6.cjs"),c=require("../component-D-EEi7NI.cjs"),j=require("../component-B1mkowwk.cjs"),y=require("../generics-DE1oV0MV.cjs"),p=require("../values-C40_Fyfk.cjs"),q=require("../generics-9F1CmKPb.cjs"),C=require("../classes-HsjFV5aN.cjs"),L=require("../generics-nyvJhwQE.cjs"),i=require("react"),k=({id:r,checked:e,size:a=L.Sizings.Size3,handleChange:s=()=>{},vertigo:l,ref:u,children:S,...x})=>{const[t,d]=i.useState(e),[g,m]=i.useState(!1),b=o=>{d(o),s(r,o)};return i.useEffect(()=>{const o=h=>{!g||t||h.key===" "&&b(!0)};return document&&document.addEventListener("keydown",o,!1),()=>{document&&document.removeEventListener("keydown",o,!1)}},[g,t]),i.useEffect(()=>{d(e)},[e]),n.jsx(c.Container,{onClick:()=>{l&&t||(d(!t),s(r,t))},style:{cursor:"pointer"},tabIndex:0,role:"button",onFocus:()=>m(!0),onBlur:()=>m(!1),children:n.jsxs(j.Layout,{display:C.Displays.Flex,flexAlignItem:C.FlexAlignItems.Center,children:[n.jsx(R,{checked:t,size:a}),n.jsx(c.Container,{marginLeft:q.Spacings.Size1,style:{transform:"translateY(-1px)",userSelect:"none"},children:S}),n.jsx("input",{ref:u,id:r,checked:t,onChange:()=>{},type:"radio",style:{appearance:"none",backgroundColor:"transparent",margin:0,display:"none"},...x})]})})},R=({checked:r,size:e})=>{const a=f.useTransition(r,{from:{opacity:0,scale:.6},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.6},config:{...f.config.stiff}}),s=f.useSpring({borderColor:r?p.COLOR_VALUES[y.ColorPalettes.Primary5]:p.COLOR_VALUES[y.ColorPalettes.Grey5]});return n.jsx(c.Container,{style:{...s,width:e,height:e,borderRadius:"50%",borderWidth:2,borderStyle:"solid",display:"flex",justifyContent:"center",alignItems:"center"},children:a((l,u)=>u&&n.jsx(c.Container,{style:{...l,width:e-10,height:e-10,borderRadius:"50%",backgroundColor:p.COLOR_VALUES[y.ColorPalettes.Primary5]}}))})};exports.Radio=k;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Ref } from 'react';
|
|
5
|
+
|
|
6
|
+
declare interface P extends HTMLAttributes<HTMLInputElement> {
|
|
7
|
+
checked: boolean;
|
|
8
|
+
id: string;
|
|
9
|
+
handleChange: (id: string, checked: boolean) => void;
|
|
10
|
+
size?: Sizings;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
vertigo?: boolean;
|
|
13
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const Radio: FC<P>;
|
|
17
|
+
|
|
18
|
+
declare enum Sizings {
|
|
19
|
+
Size1 = 8,
|
|
20
|
+
Size2 = 12,
|
|
21
|
+
Size3 = 16,
|
|
22
|
+
Size4 = 20,
|
|
23
|
+
Size5 = 24,
|
|
24
|
+
Size6 = 28,
|
|
25
|
+
Size7 = 32,
|
|
26
|
+
Size8 = 36,
|
|
27
|
+
Size9 = 44,
|
|
28
|
+
Size10 = 52,
|
|
29
|
+
Size11 = 60,
|
|
30
|
+
Size12 = 68,
|
|
31
|
+
Size13 = 76,
|
|
32
|
+
Size14 = 84,
|
|
33
|
+
Size15 = 92
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { }
|