amotify 0.1.32 → 0.1.34
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/@declaration/_.js +1 -1
- package/dist/@declaration/property.d.ts +2 -2
- package/dist/@styles/componentClasses/_.css +66 -65
- package/dist/@styles/componentClasses/_.js +39 -39
- package/dist/@styles/index.css +66 -65
- package/dist/@styles/index.js +39 -39
- package/dist/@styles/init.css +1 -1
- package/dist/@styles/style.css +96 -65
- package/dist/@styles/style.js +39 -39
- package/dist/@styles/var.css +1 -1
- package/dist/@utils/GenerateClassName.js +1 -470
- package/dist/@utils/LaunchReactApp.d.ts +1 -1
- package/dist/@utils/LaunchReactApp.js +1 -78
- package/dist/@utils/_.js +1 -12
- package/dist/@utils/collectForm.js +1 -96
- package/dist/@utils/color.js +1 -103
- package/dist/@utils/config.js +1 -101
- package/dist/@utils/fin.js +1 -39
- package/dist/@utils/getElement.js +1 -13
- package/dist/@utils/jsminEx.js +1 -172
- package/dist/@utils/pageTransit.js +1 -33
- package/dist/@utils/useRecycle.js +1 -44
- package/dist/@utils/useStore.js +1 -54
- package/dist/atoms/Box.js +1 -20
- package/dist/atoms/FAI.js +1 -148
- package/dist/atoms/Flex.js +1 -34
- package/dist/atoms/Grid.js +1 -17
- package/dist/atoms/Img.js +1 -65
- package/dist/atoms/Logo.js +51 -359
- package/dist/atoms/P.js +1 -20
- package/dist/atoms/Placeholder.js +1 -44
- package/dist/atoms/Span.js +1 -20
- package/dist/atoms/_.js +1 -9
- package/dist/fn/Button.js +1 -316
- package/dist/fn/Cropper.js +1 -1009
- package/dist/fn/Effect/Fade.js +1 -88
- package/dist/fn/Effect/Pudding.js +1 -22
- package/dist/fn/Effect/Ripple.js +3 -117
- package/dist/fn/Effect/_.js +1 -14
- package/dist/fn/Input/AutoHeightText.js +1 -112
- package/dist/fn/Input/Checker.js +1 -36
- package/dist/fn/Input/Chips/Selector.js +1 -472
- package/dist/fn/Input/Chips/_.js +1 -349
- package/dist/fn/Input/Contenteditable.js +1 -160
- package/dist/fn/Input/DigitCharacters.js +1 -275
- package/dist/fn/Input/Filer.js +1 -619
- package/dist/fn/Input/Hidden.js +1 -48
- package/dist/fn/Input/List.js +1 -450
- package/dist/fn/Input/Parts.js +1 -121
- package/dist/fn/Input/Plain.js +1 -12
- package/dist/fn/Input/RichSelect.js +1 -279
- package/dist/fn/Input/Search.js +1 -53
- package/dist/fn/Input/Segmented.js +1 -245
- package/dist/fn/Input/Select.js +1 -278
- package/dist/fn/Input/Slider.js +1 -538
- package/dist/fn/Input/Switch.js +1 -221
- package/dist/fn/Input/Text.js +1 -626
- package/dist/fn/Input/TextArea.js +1 -151
- package/dist/fn/Input/Time/Picker.js +1 -1457
- package/dist/fn/Input/Time/_.js +1 -867
- package/dist/fn/Input/_.js +1 -48
- package/dist/fn/Input/core.js +1 -626
- package/dist/fn/Layout/PageNotFound.js +1 -90
- package/dist/fn/Layout/PageRouter.js +1 -87
- package/dist/fn/Layout/PageViewController.js +1 -29
- package/dist/fn/Layout/Plate.js +1 -37
- package/dist/fn/Layout/RootViewController.js +1 -315
- package/dist/fn/Layout/SwipeView.js +1 -348
- package/dist/fn/Layout/TabBar.js +1 -72
- package/dist/fn/Layout/_.js +1 -22
- package/dist/fn/Loader/_.js +1 -104
- package/dist/fn/Loader/corner.js +1 -85
- package/dist/fn/Loader/mini.js +1 -125
- package/dist/fn/Loader/top.js +1 -73
- package/dist/fn/Sheet.d.ts +1 -0
- package/dist/fn/Sheet.js +1 -1101
- package/dist/fn/Snackbar.js +1 -216
- package/dist/fn/Table/Data.js +1 -974
- package/dist/fn/Table/Drag.js +1 -435
- package/dist/fn/Table/Normal.js +1 -136
- package/dist/fn/Table/Parts.js +1 -41
- package/dist/fn/Table/Wrapper.js +1 -60
- package/dist/fn/Table/_.js +1 -16
- package/dist/fn/Table/cellStyling.js +1 -51
- package/dist/fn/Tooltips.js +1 -58
- package/dist/fn/_.js +1 -10
- package/dist/index.js +1 -20
- package/dist/mols/Accordion.js +1 -152
- package/dist/mols/Column.js +1 -16
- package/dist/mols/LinkifyText.js +1 -42
- package/dist/mols/List.js +1 -42
- package/dist/mols/Row.js +1 -47
- package/dist/mols/Text.js +1 -67
- package/dist/mols/_.js +1 -6
- package/dist/temps/_.js +1 -1
- package/dist/temps/designBook.js +20 -3639
- package/package.json +1 -1
- package/dist/chunk-JJ3PEWPN.js +0 -60
package/dist/fn/Table/_.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _TableParts from "./Parts";
|
|
3
|
-
import _Normal from "./Normal";
|
|
4
|
-
import _Drag from "./Drag";
|
|
5
|
-
import _Data from "./Data";
|
|
6
|
-
var Table;
|
|
7
|
-
((Table2) => {
|
|
8
|
-
Table2.Normal = _Normal;
|
|
9
|
-
Table2.Data = _Data;
|
|
10
|
-
Table2.Drag = _Drag;
|
|
11
|
-
Table2.Parts = _TableParts;
|
|
12
|
-
})(Table || (Table = {}));
|
|
13
|
-
export {
|
|
14
|
-
Table,
|
|
15
|
-
Table as default
|
|
16
|
-
};
|
|
1
|
+
import"../../chunk-VY3566IV.js";import r from"./Parts";import o from"./Normal";import a from"./Drag";import p from"./Data";var t;(e=>(e.Normal=o,e.Data=p,e.Drag=a,e.Parts=r))(t||(t={}));export{t as Table,t as default};
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "../../chunk-JJ3PEWPN.js";
|
|
4
|
-
const DefaultCellStyles = (type, tone) => {
|
|
5
|
-
if (tone == "plain")
|
|
6
|
-
return {};
|
|
7
|
-
let Styles = {};
|
|
8
|
-
if (type == "drag") {
|
|
9
|
-
Styles.padding = 1;
|
|
10
|
-
}
|
|
11
|
-
if (["border", "rowBorder", "cellBorder"].includes(tone)) {
|
|
12
|
-
Styles.borderBottom = "2.normal";
|
|
13
|
-
}
|
|
14
|
-
if (["border", "cellBorder"].includes(tone)) {
|
|
15
|
-
Styles.borderRight = "2.normal";
|
|
16
|
-
}
|
|
17
|
-
return __spreadValues({
|
|
18
|
-
padding: "3/4",
|
|
19
|
-
backgroundColor: "1.layer.base",
|
|
20
|
-
transition: "short",
|
|
21
|
-
textAlign: "center"
|
|
22
|
-
}, Styles);
|
|
23
|
-
};
|
|
24
|
-
const DefaultCellSystemStyles = (args) => {
|
|
25
|
-
let Styles = {};
|
|
26
|
-
if (args.right) {
|
|
27
|
-
Styles.borderRight = "unset";
|
|
28
|
-
}
|
|
29
|
-
if (args.top) {
|
|
30
|
-
if (args.left) {
|
|
31
|
-
Styles.borderTopLeftRadius = "inherit";
|
|
32
|
-
}
|
|
33
|
-
if (args.right) {
|
|
34
|
-
Styles.borderTopRightRadius = "inherit";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (args.bottom) {
|
|
38
|
-
Styles.borderBottom = "unset";
|
|
39
|
-
if (args.left) {
|
|
40
|
-
Styles.borderBottomLeftRadius = "inherit";
|
|
41
|
-
}
|
|
42
|
-
if (args.right) {
|
|
43
|
-
Styles.borderBottomRightRadius = "inherit";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return Styles;
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
DefaultCellStyles,
|
|
50
|
-
DefaultCellSystemStyles
|
|
51
|
-
};
|
|
1
|
+
import{b as o}from"../../chunk-VY3566IV.js";const d=(r,e)=>{if(e=="plain")return{};let t={};return r=="drag"&&(t.padding=1),["border","rowBorder","cellBorder"].includes(e)&&(t.borderBottom="2.normal"),["border","cellBorder"].includes(e)&&(t.borderRight="2.normal"),o({padding:"3/4",backgroundColor:"1.layer.base",transition:"short",textAlign:"center"},t)},b=r=>{let e={};return r.right&&(e.borderRight="unset"),r.top&&(r.left&&(e.borderTopLeftRadius="inherit"),r.right&&(e.borderTopRightRadius="inherit")),r.bottom&&(e.borderBottom="unset",r.left&&(e.borderBottomLeftRadius="inherit"),r.right&&(e.borderBottomRightRadius="inherit")),e};export{d as DefaultCellStyles,b as DefaultCellSystemStyles};
|
package/dist/fn/Tooltips.js
CHANGED
|
@@ -1,58 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
$$
|
|
8
|
-
} from "../@utils/_";
|
|
9
|
-
import Box from "../atoms/Box";
|
|
10
|
-
import Sheet from "./Sheet";
|
|
11
|
-
const Tooltips = {
|
|
12
|
-
__memoryID: $$.uuid.gen(),
|
|
13
|
-
open: (params) => {
|
|
14
|
-
let _a = params, {
|
|
15
|
-
tipsID = $$.uuid.gen(),
|
|
16
|
-
tipsGroups = []
|
|
17
|
-
} = _a, sheetParams = __objRest(_a, [
|
|
18
|
-
"tipsID",
|
|
19
|
-
"tipsGroups"
|
|
20
|
-
]);
|
|
21
|
-
Sheet.open(__spreadValues({
|
|
22
|
-
sheetID: tipsID,
|
|
23
|
-
sheetGroups: [
|
|
24
|
-
"tooltips",
|
|
25
|
-
...tipsGroups
|
|
26
|
-
],
|
|
27
|
-
close_option: __spreadValues({
|
|
28
|
-
aroundClick: true,
|
|
29
|
-
parentBlur: true,
|
|
30
|
-
escapeKeyDown: true,
|
|
31
|
-
pageTransit: true
|
|
32
|
-
}, params.close_option),
|
|
33
|
-
type: "custom"
|
|
34
|
-
}, sheetParams));
|
|
35
|
-
},
|
|
36
|
-
close: (tipsID) => {
|
|
37
|
-
tipsID && Sheet.close(tipsID);
|
|
38
|
-
},
|
|
39
|
-
closeALL: () => {
|
|
40
|
-
Sheet.closeGroup("tooltips");
|
|
41
|
-
},
|
|
42
|
-
Comps: {
|
|
43
|
-
Body: (params) => /* @__PURE__ */ jsx(
|
|
44
|
-
Box,
|
|
45
|
-
__spreadValues({
|
|
46
|
-
padding: "1/2",
|
|
47
|
-
backgroundColor: "dark",
|
|
48
|
-
borderRadius: "2.tone.secondary",
|
|
49
|
-
fontColor: "white",
|
|
50
|
-
boxShadow: "0.normal"
|
|
51
|
-
}, params)
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
Tooltips,
|
|
57
|
-
Tooltips as default
|
|
58
|
-
};
|
|
1
|
+
import{b as e,d as s}from"../chunk-VY3566IV.js";import{jsx as d}from"react/jsx-runtime";import{$$ as p}from"../@utils/_";import m from"../atoms/Box";import t from"./Sheet";const n={__memoryID:p.uuid.gen(),open:o=>{let r=o,{tipsID:i=p.uuid.gen(),tipsGroups:a=[]}=r,l=s(r,["tipsID","tipsGroups"]);t.open(e({sheetID:i,sheetGroups:["tooltips",...a],close_option:e({aroundClick:!0,parentBlur:!0,escapeKeyDown:!0,pageTransit:!0},o.close_option),type:"custom"},l))},close:o=>{o&&t.close(o)},closeALL:()=>{t.closeGroup("tooltips")},Comps:{Body:o=>d(m,e({padding:"1/2",backgroundColor:"dark",borderRadius:"2.tone.secondary",fontColor:"white",boxShadow:"0.normal"},o))}};export{n as Tooltips,n as default};
|
package/dist/fn/_.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./Button";
|
|
3
|
-
export * from "./Input/_";
|
|
4
|
-
export * from "./Layout/_";
|
|
5
|
-
export * from "./Table/_";
|
|
6
|
-
export * from "./Sheet";
|
|
7
|
-
export * from "./Snackbar";
|
|
8
|
-
export * from "./Loader/_";
|
|
9
|
-
export * from "./Tooltips";
|
|
10
|
-
export * from "./Cropper";
|
|
1
|
+
export*from"./Effect/_";export*from"./Button";export*from"./Input/_";export*from"./Layout/_";export*from"./Table/_";export*from"./Sheet";export*from"./Snackbar";export*from"./Loader/_";export*from"./Tooltips";export*from"./Cropper";
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "./chunk-JJ3PEWPN.js";
|
|
4
|
-
import * as utils from "./@utils/_";
|
|
5
|
-
export * from "./@utils/_";
|
|
6
|
-
import * as atoms from "./atoms/_";
|
|
7
|
-
export * from "./atoms/_";
|
|
8
|
-
import * as mols from "./mols/_";
|
|
9
|
-
export * from "./mols/_";
|
|
10
|
-
import * as orgs from "./orgs/_";
|
|
11
|
-
export * from "./orgs/_";
|
|
12
|
-
import * as temps from "./temps/_";
|
|
13
|
-
export * from "./temps/_";
|
|
14
|
-
import * as fn from "./fn/_";
|
|
15
|
-
export * from "./fn/_";
|
|
16
|
-
const amotify = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, utils), atoms), mols), orgs), temps), fn);
|
|
17
|
-
export {
|
|
18
|
-
amotify,
|
|
19
|
-
amotify as default
|
|
20
|
-
};
|
|
1
|
+
import{b as o}from"./chunk-VY3566IV.js";import*as m from"./@utils/_";export*from"./@utils/_";import*as t from"./atoms/_";export*from"./atoms/_";import*as f from"./mols/_";export*from"./mols/_";import*as p from"./orgs/_";export*from"./orgs/_";import*as s from"./temps/_";export*from"./temps/_";import*as a from"./fn/_";export*from"./fn/_";const r=o(o(o(o(o(o({},m),t),f),p),s),a);export{r as amotify,r as default};
|
package/dist/mols/Accordion.js
CHANGED
|
@@ -1,152 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
useState,
|
|
8
|
-
useEffect,
|
|
9
|
-
useRef
|
|
10
|
-
} from "react";
|
|
11
|
-
import {
|
|
12
|
-
$$,
|
|
13
|
-
$$fromRoot,
|
|
14
|
-
useStore
|
|
15
|
-
} from "../@utils/_";
|
|
16
|
-
import { Box } from "../atoms/Box";
|
|
17
|
-
import { AccordionClasses } from "../@styles/componentClasses/_";
|
|
18
|
-
const Component = (params) => {
|
|
19
|
-
params = __spreadValues({}, params);
|
|
20
|
-
let _a = params, {
|
|
21
|
-
accordionID = "",
|
|
22
|
-
slideAnimation = "fast",
|
|
23
|
-
defaultOpen = false,
|
|
24
|
-
override = false
|
|
25
|
-
} = _a, others = __objRest(_a, [
|
|
26
|
-
"accordionID",
|
|
27
|
-
"slideAnimation",
|
|
28
|
-
"defaultOpen",
|
|
29
|
-
"override"
|
|
30
|
-
]);
|
|
31
|
-
let [val_wrapID] = useState($$.uuid.gen());
|
|
32
|
-
let [val_contentID] = useState($$.uuid.gen());
|
|
33
|
-
let [val_open, set_open] = useState(defaultOpen);
|
|
34
|
-
if (val_open != defaultOpen) {
|
|
35
|
-
if (override)
|
|
36
|
-
set_open(defaultOpen);
|
|
37
|
-
}
|
|
38
|
-
const mounted = useRef(false);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
let Content = $$fromRoot('[data-accordion-content-id="' + val_contentID + '"]')[0];
|
|
41
|
-
if (Content) {
|
|
42
|
-
let contentHeight = Content.offsetHeight;
|
|
43
|
-
let transitionTime = 0;
|
|
44
|
-
if (slideAnimation == "fast") {
|
|
45
|
-
transitionTime = contentHeight / 1e3;
|
|
46
|
-
transitionTime = Math.max(transitionTime, 0.2);
|
|
47
|
-
} else if (slideAnimation == "slow") {
|
|
48
|
-
transitionTime = contentHeight / 300;
|
|
49
|
-
}
|
|
50
|
-
$$fromRoot("#" + val_wrapID).css({
|
|
51
|
-
transition: transitionTime + "s"
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}, []);
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
let Wrap = $$fromRoot("#" + val_wrapID);
|
|
57
|
-
let Content = $$fromRoot('[data-accordion-content-id="' + val_contentID + '"]')[0];
|
|
58
|
-
if (mounted.current) {
|
|
59
|
-
if (Content) {
|
|
60
|
-
let contentHeight = Content.offsetHeight;
|
|
61
|
-
if ($$.is.exist(contentHeight)) {
|
|
62
|
-
if (val_open) {
|
|
63
|
-
Wrap.css({
|
|
64
|
-
maxHeight: contentHeight + 1 + "px"
|
|
65
|
-
}).await(200).css({
|
|
66
|
-
maxHeight: "unset",
|
|
67
|
-
overflow: params.overflow || "unset"
|
|
68
|
-
});
|
|
69
|
-
} else {
|
|
70
|
-
Wrap.css({
|
|
71
|
-
maxHeight: contentHeight + 1 + "px"
|
|
72
|
-
}).await(100).css({
|
|
73
|
-
maxHeight: "0px",
|
|
74
|
-
overflow: "hidden"
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
mounted.current = true;
|
|
81
|
-
if (Content) {
|
|
82
|
-
let contentHeight = Content.offsetHeight;
|
|
83
|
-
if ($$.is.exist(contentHeight)) {
|
|
84
|
-
if (val_open) {
|
|
85
|
-
Wrap.css({
|
|
86
|
-
maxHeight: contentHeight + 1 + "px"
|
|
87
|
-
}).await(200).css({
|
|
88
|
-
maxHeight: "unset",
|
|
89
|
-
overflow: params.overflow || "unset"
|
|
90
|
-
});
|
|
91
|
-
} else {
|
|
92
|
-
Wrap.css({
|
|
93
|
-
maxHeight: "0px",
|
|
94
|
-
overflow: "hidden"
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}, [val_open]);
|
|
101
|
-
if (accordionID) {
|
|
102
|
-
useStore.set({
|
|
103
|
-
key: "Accordion-" + accordionID,
|
|
104
|
-
value: {
|
|
105
|
-
open: () => {
|
|
106
|
-
set_open(true);
|
|
107
|
-
},
|
|
108
|
-
close: () => {
|
|
109
|
-
set_open(false);
|
|
110
|
-
},
|
|
111
|
-
toggle: () => {
|
|
112
|
-
set_open(!val_open);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return /* @__PURE__ */ jsx(
|
|
118
|
-
Box,
|
|
119
|
-
{
|
|
120
|
-
className: [
|
|
121
|
-
AccordionClasses("Wrap"),
|
|
122
|
-
AccordionClasses("Open_" + val_open)
|
|
123
|
-
].join(" "),
|
|
124
|
-
id: val_wrapID,
|
|
125
|
-
children: /* @__PURE__ */ jsx(
|
|
126
|
-
Box,
|
|
127
|
-
__spreadValues({
|
|
128
|
-
"data-accordion-content-id": val_contentID
|
|
129
|
-
}, others)
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
};
|
|
134
|
-
const Accordion = Component;
|
|
135
|
-
Accordion.fn = {
|
|
136
|
-
open: (id) => {
|
|
137
|
-
let component = useStore.get("Accordion-" + id);
|
|
138
|
-
!component || component.open();
|
|
139
|
-
},
|
|
140
|
-
close: (id) => {
|
|
141
|
-
let component = useStore.get("Accordion-" + id);
|
|
142
|
-
!component || component.close();
|
|
143
|
-
},
|
|
144
|
-
toggle: (id) => {
|
|
145
|
-
let component = useStore.get("Accordion-" + id);
|
|
146
|
-
!component || component.toggle();
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
export {
|
|
150
|
-
Accordion,
|
|
151
|
-
Accordion as default
|
|
152
|
-
};
|
|
1
|
+
import{b as g,d as H}from"../chunk-VY3566IV.js";import{jsx as y}from"react/jsx-runtime";import{useState as m,useEffect as w,useRef as R}from"react";import{$$ as a,$$fromRoot as l,useStore as r}from"../@utils/_";import{Box as A}from"../atoms/Box";import{AccordionClasses as I}from"../@styles/componentClasses/_";const _=o=>{o=g({},o);let v=o,{accordionID:t="",slideAnimation:x="fast",defaultOpen:f=!1,override:D=!1}=v,C=H(v,["accordionID","slideAnimation","defaultOpen","override"]),[d]=m(a.uuid.gen()),[p]=m(a.uuid.gen()),[s,c]=m(f);s!=f&&D&&c(f);const h=R(!1);return w(()=>{let n=l('[data-accordion-content-id="'+p+'"]')[0];if(n){let i=n.offsetHeight,e=0;x=="fast"?(e=i/1e3,e=Math.max(e,.2)):x=="slow"&&(e=i/300),l("#"+d).css({transition:e+"s"})}},[]),w(()=>{let n=l("#"+d),i=l('[data-accordion-content-id="'+p+'"]')[0];if(h.current){if(i){let e=i.offsetHeight;a.is.exist(e)&&(s?n.css({maxHeight:e+1+"px"}).await(200).css({maxHeight:"unset",overflow:o.overflow||"unset"}):n.css({maxHeight:e+1+"px"}).await(100).css({maxHeight:"0px",overflow:"hidden"}))}}else if(h.current=!0,i){let e=i.offsetHeight;a.is.exist(e)&&(s?n.css({maxHeight:e+1+"px"}).await(200).css({maxHeight:"unset",overflow:o.overflow||"unset"}):n.css({maxHeight:"0px",overflow:"hidden"}))}},[s]),t&&r.set({key:"Accordion-"+t,value:{open:()=>{c(!0)},close:()=>{c(!1)},toggle:()=>{c(!s)}}}),y(A,{className:[I("Wrap"),I("Open_"+s)].join(" "),id:d,children:y(A,g({"data-accordion-content-id":p},C))})},u=_;u.fn={open:o=>{let t=r.get("Accordion-"+o);!t||t.open()},close:o=>{let t=r.get("Accordion-"+o);!t||t.close()},toggle:o=>{let t=r.get("Accordion-"+o);!t||t.toggle()}};export{u as Accordion,u as default};
|
package/dist/mols/Column.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Flex } from "../atoms/Flex";
|
|
6
|
-
const Column = (params) => /* @__PURE__ */ jsx(
|
|
7
|
-
Flex,
|
|
8
|
-
__spreadValues({
|
|
9
|
-
flexType: "col",
|
|
10
|
-
gap: 1
|
|
11
|
-
}, params)
|
|
12
|
-
);
|
|
13
|
-
export {
|
|
14
|
-
Column,
|
|
15
|
-
Column as default
|
|
16
|
-
};
|
|
1
|
+
import{b as p}from"../chunk-VY3566IV.js";import{jsx as t}from"react/jsx-runtime";import{Flex as l}from"../atoms/Flex";const e=o=>t(l,p({flexType:"col",gap:1},o));export{e as Column,e as default};
|
package/dist/mols/LinkifyText.js
CHANGED
|
@@ -1,42 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import Button from "../fn/Button";
|
|
4
|
-
const LinkifyText = (params) => {
|
|
5
|
-
let {
|
|
6
|
-
text,
|
|
7
|
-
placeholder
|
|
8
|
-
} = params;
|
|
9
|
-
let Description = [];
|
|
10
|
-
if (text) {
|
|
11
|
-
let urls = [];
|
|
12
|
-
text = text.replace(/https?:\/\/[^\s|\n|\r]*/ig, (...args) => {
|
|
13
|
-
let url = args[0];
|
|
14
|
-
urls.push(url);
|
|
15
|
-
return "[$_url]";
|
|
16
|
-
});
|
|
17
|
-
let parts = text.split("[$_url]");
|
|
18
|
-
for (let index = 0; index <= parts.length - 1; index++) {
|
|
19
|
-
let part = parts[index];
|
|
20
|
-
let url = urls[index];
|
|
21
|
-
Description.push(part);
|
|
22
|
-
if (index < parts.length - 1) {
|
|
23
|
-
Description.push(/* @__PURE__ */ jsx(
|
|
24
|
-
Button.Anchor.Link,
|
|
25
|
-
{
|
|
26
|
-
href: url,
|
|
27
|
-
newTab: true,
|
|
28
|
-
children: url
|
|
29
|
-
},
|
|
30
|
-
"Link-" + index
|
|
31
|
-
));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
} else if (placeholder) {
|
|
35
|
-
Description = [placeholder];
|
|
36
|
-
}
|
|
37
|
-
return /* @__PURE__ */ jsx(Fragment, { children: Description });
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
LinkifyText,
|
|
41
|
-
LinkifyText as default
|
|
42
|
-
};
|
|
1
|
+
import"../chunk-VY3566IV.js";import{Fragment as f,jsx as s}from"react/jsx-runtime";import c from"../fn/Button";const a=u=>{let{text:e,placeholder:i}=u,r=[];if(e){let p=[];e=e.replace(/https?:\/\/[^\s|\n|\r]*/ig,(...t)=>{let l=t[0];return p.push(l),"[$_url]"});let n=e.split("[$_url]");for(let t=0;t<=n.length-1;t++){let l=n[t],o=p[t];r.push(l),t<n.length-1&&r.push(s(c.Anchor.Link,{href:o,newTab:!0,children:o},"Link-"+t))}}else i&&(r=[i]);return s(f,{children:r})};export{a as LinkifyText,a as default};
|
package/dist/mols/List.js
CHANGED
|
@@ -1,42 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
8
|
-
Flex
|
|
9
|
-
} from "../atoms/Flex";
|
|
10
|
-
const List = (params) => {
|
|
11
|
-
let _a = params, {
|
|
12
|
-
rows,
|
|
13
|
-
rowStyles: DefaultRowStyles
|
|
14
|
-
} = _a, others = __objRest(_a, [
|
|
15
|
-
"rows",
|
|
16
|
-
"rowStyles"
|
|
17
|
-
]);
|
|
18
|
-
let rowArray = rows.map((row) => {
|
|
19
|
-
let _a2 = row, {
|
|
20
|
-
children
|
|
21
|
-
} = _a2, others2 = __objRest(_a2, [
|
|
22
|
-
"children"
|
|
23
|
-
]);
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
-
Flex,
|
|
26
|
-
__spreadProps(__spreadValues(__spreadValues({}, DefaultRowStyles), others2), {
|
|
27
|
-
children
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
32
|
-
Flex,
|
|
33
|
-
__spreadProps(__spreadValues({}, others), {
|
|
34
|
-
flexType: "col",
|
|
35
|
-
children: rowArray
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
List,
|
|
41
|
-
List as default
|
|
42
|
-
};
|
|
1
|
+
import{b as e,c as t,d as r}from"../chunk-VY3566IV.js";import{jsx as a}from"react/jsx-runtime";import{Flex as p}from"../atoms/Flex";const s=n=>{let o=n,{rows:i,rowStyles:c}=o,m=r(o,["rows","rowStyles"]),y=i.map(f=>{let l=f,{children:u}=l,w=r(l,["children"]);return a(p,t(e(e({},c),w),{children:u}))});return a(p,t(e({},m),{flexType:"col",children:y}))};export{s as List,s as default};
|
package/dist/mols/Row.js
CHANGED
|
@@ -1,47 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Flex } from "../atoms/Flex";
|
|
6
|
-
const Row = {
|
|
7
|
-
Center: (params) => /* @__PURE__ */ jsx(
|
|
8
|
-
Flex,
|
|
9
|
-
__spreadValues({
|
|
10
|
-
horizontalAlign: "center",
|
|
11
|
-
verticalAlign: "center",
|
|
12
|
-
flexWrap: false,
|
|
13
|
-
gap: 1
|
|
14
|
-
}, params)
|
|
15
|
-
),
|
|
16
|
-
Left: (params) => /* @__PURE__ */ jsx(
|
|
17
|
-
Flex,
|
|
18
|
-
__spreadValues({
|
|
19
|
-
horizontalAlign: "left",
|
|
20
|
-
verticalAlign: "center",
|
|
21
|
-
flexWrap: false,
|
|
22
|
-
gap: 1
|
|
23
|
-
}, params)
|
|
24
|
-
),
|
|
25
|
-
Right: (params) => /* @__PURE__ */ jsx(
|
|
26
|
-
Flex,
|
|
27
|
-
__spreadValues({
|
|
28
|
-
horizontalAlign: "right",
|
|
29
|
-
verticalAlign: "center",
|
|
30
|
-
flexWrap: false,
|
|
31
|
-
gap: 1
|
|
32
|
-
}, params)
|
|
33
|
-
),
|
|
34
|
-
Separate: (params) => /* @__PURE__ */ jsx(
|
|
35
|
-
Flex,
|
|
36
|
-
__spreadValues({
|
|
37
|
-
horizontalAlign: "between",
|
|
38
|
-
verticalAlign: "center",
|
|
39
|
-
flexWrap: false,
|
|
40
|
-
gap: 1
|
|
41
|
-
}, params)
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
Row,
|
|
46
|
-
Row as default
|
|
47
|
-
};
|
|
1
|
+
import{b as t}from"../chunk-VY3566IV.js";import{jsx as a}from"react/jsx-runtime";import{Flex as l}from"../atoms/Flex";const n={Center:e=>a(l,t({horizontalAlign:"center",verticalAlign:"center",flexWrap:!1,gap:1},e)),Left:e=>a(l,t({horizontalAlign:"left",verticalAlign:"center",flexWrap:!1,gap:1},e)),Right:e=>a(l,t({horizontalAlign:"right",verticalAlign:"center",flexWrap:!1,gap:1},e)),Separate:e=>a(l,t({horizontalAlign:"between",verticalAlign:"center",flexWrap:!1,gap:1},e))};export{n as Row,n as default};
|
package/dist/mols/Text.js
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadProps,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "../chunk-JJ3PEWPN.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { Box } from "../atoms/Box";
|
|
7
|
-
import { Span } from "../atoms/Span";
|
|
8
|
-
const Text = {
|
|
9
|
-
Title: (params) => /* @__PURE__ */ jsx(
|
|
10
|
-
Box,
|
|
11
|
-
__spreadValues({
|
|
12
|
-
fontSize: "6.title",
|
|
13
|
-
fontWeight: "3.semiBold"
|
|
14
|
-
}, params)
|
|
15
|
-
),
|
|
16
|
-
SubTitle: (params) => /* @__PURE__ */ jsx(
|
|
17
|
-
Box,
|
|
18
|
-
__spreadValues({
|
|
19
|
-
fontSize: "5.subTitle",
|
|
20
|
-
fontWeight: "3.semiBold"
|
|
21
|
-
}, params)
|
|
22
|
-
),
|
|
23
|
-
ThirdTitle: (params) => /* @__PURE__ */ jsx(
|
|
24
|
-
Box,
|
|
25
|
-
__spreadValues({
|
|
26
|
-
fontSize: "4.thirdTitle",
|
|
27
|
-
fontWeight: "3.semiBold"
|
|
28
|
-
}, params)
|
|
29
|
-
),
|
|
30
|
-
Paragraph: (params) => /* @__PURE__ */ jsx(
|
|
31
|
-
Box,
|
|
32
|
-
__spreadValues({
|
|
33
|
-
fontSize: "3.paragraph",
|
|
34
|
-
fontWeight: "3.semiBold"
|
|
35
|
-
}, params)
|
|
36
|
-
),
|
|
37
|
-
Normal: (params) => /* @__PURE__ */ jsx(
|
|
38
|
-
Box,
|
|
39
|
-
__spreadValues({}, params)
|
|
40
|
-
),
|
|
41
|
-
Description: (params) => /* @__PURE__ */ jsx(
|
|
42
|
-
Box,
|
|
43
|
-
__spreadProps(__spreadValues({}, params), {
|
|
44
|
-
freeCSS: __spreadValues({
|
|
45
|
-
whiteSpace: "pre-wrap"
|
|
46
|
-
}, params.freeCSS)
|
|
47
|
-
})
|
|
48
|
-
),
|
|
49
|
-
Supplement: (params) => /* @__PURE__ */ jsx(
|
|
50
|
-
Box,
|
|
51
|
-
__spreadValues({
|
|
52
|
-
fontSize: "1.mini"
|
|
53
|
-
}, params)
|
|
54
|
-
),
|
|
55
|
-
NowrapSpan: (params) => /* @__PURE__ */ jsx(
|
|
56
|
-
Span,
|
|
57
|
-
__spreadProps(__spreadValues({}, params), {
|
|
58
|
-
freeCSS: __spreadValues({
|
|
59
|
-
whiteSpace: "nowrap"
|
|
60
|
-
}, params.freeCSS)
|
|
61
|
-
})
|
|
62
|
-
)
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
Text,
|
|
66
|
-
Text as default
|
|
67
|
-
};
|
|
1
|
+
import{b as e,c as n}from"../chunk-VY3566IV.js";import{jsx as o}from"react/jsx-runtime";import{Box as p}from"../atoms/Box";import{Span as a}from"../atoms/Span";const i={Title:t=>o(p,e({fontSize:"6.title",fontWeight:"3.semiBold"},t)),SubTitle:t=>o(p,e({fontSize:"5.subTitle",fontWeight:"3.semiBold"},t)),ThirdTitle:t=>o(p,e({fontSize:"4.thirdTitle",fontWeight:"3.semiBold"},t)),Paragraph:t=>o(p,e({fontSize:"3.paragraph",fontWeight:"3.semiBold"},t)),Normal:t=>o(p,e({},t)),Description:t=>o(p,n(e({},t),{freeCSS:e({whiteSpace:"pre-wrap"},t.freeCSS)})),Supplement:t=>o(p,e({fontSize:"1.mini"},t)),NowrapSpan:t=>o(a,n(e({},t),{freeCSS:e({whiteSpace:"nowrap"},t.freeCSS)}))};export{i as Text,i as default};
|
package/dist/mols/_.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./Column";
|
|
3
|
-
export * from "./LinkifyText";
|
|
4
|
-
export * from "./List";
|
|
5
|
-
export * from "./Row";
|
|
6
|
-
export * from "./Text";
|
|
1
|
+
export*from"./Accordion";export*from"./Column";export*from"./LinkifyText";export*from"./List";export*from"./Row";export*from"./Text";
|
package/dist/temps/_.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./designBook";
|