amotify 0.1.31 → 0.1.32

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.
Files changed (95) hide show
  1. package/dist/@declaration/_.js +1 -1
  2. package/dist/@styles/componentClasses/_.css +68 -65
  3. package/dist/@styles/componentClasses/_.js +39 -39
  4. package/dist/@styles/index.css +68 -65
  5. package/dist/@styles/index.js +39 -39
  6. package/dist/@styles/init.css +1 -1
  7. package/dist/@styles/style.css +68 -65
  8. package/dist/@styles/style.js +39 -39
  9. package/dist/@styles/var.css +1 -1
  10. package/dist/@utils/GenerateClassName.js +470 -1
  11. package/dist/@utils/LaunchReactApp.js +78 -1
  12. package/dist/@utils/_.js +12 -1
  13. package/dist/@utils/collectForm.js +96 -1
  14. package/dist/@utils/color.js +103 -1
  15. package/dist/@utils/config.js +101 -1
  16. package/dist/@utils/fin.js +39 -1
  17. package/dist/@utils/getElement.js +13 -1
  18. package/dist/@utils/jsminEx.js +172 -1
  19. package/dist/@utils/pageTransit.js +33 -1
  20. package/dist/@utils/useRecycle.js +44 -1
  21. package/dist/@utils/useStore.js +54 -1
  22. package/dist/atoms/Box.js +20 -1
  23. package/dist/atoms/FAI.js +148 -1
  24. package/dist/atoms/Flex.js +34 -1
  25. package/dist/atoms/Grid.js +17 -1
  26. package/dist/atoms/Img.js +65 -1
  27. package/dist/atoms/Logo.js +359 -51
  28. package/dist/atoms/P.js +20 -1
  29. package/dist/atoms/Placeholder.js +44 -1
  30. package/dist/atoms/Span.js +20 -1
  31. package/dist/atoms/_.js +9 -1
  32. package/dist/chunk-JJ3PEWPN.js +60 -0
  33. package/dist/fn/Button.js +316 -1
  34. package/dist/fn/Cropper.js +1009 -1
  35. package/dist/fn/Effect/Fade.js +88 -1
  36. package/dist/fn/Effect/Pudding.js +22 -1
  37. package/dist/fn/Effect/Ripple.js +117 -3
  38. package/dist/fn/Effect/_.js +14 -1
  39. package/dist/fn/Input/AutoHeightText.js +112 -1
  40. package/dist/fn/Input/Checker.js +36 -1
  41. package/dist/fn/Input/Chips/Selector.js +472 -1
  42. package/dist/fn/Input/Chips/_.js +349 -1
  43. package/dist/fn/Input/Contenteditable.js +160 -1
  44. package/dist/fn/Input/DigitCharacters.js +275 -1
  45. package/dist/fn/Input/Filer.js +619 -1
  46. package/dist/fn/Input/Hidden.js +48 -1
  47. package/dist/fn/Input/List.js +450 -1
  48. package/dist/fn/Input/Parts.js +121 -1
  49. package/dist/fn/Input/Plain.js +12 -1
  50. package/dist/fn/Input/RichSelect.js +279 -1
  51. package/dist/fn/Input/Search.js +53 -1
  52. package/dist/fn/Input/Segmented.js +245 -1
  53. package/dist/fn/Input/Select.js +278 -1
  54. package/dist/fn/Input/Slider.js +538 -1
  55. package/dist/fn/Input/Switch.js +221 -1
  56. package/dist/fn/Input/Text.js +626 -1
  57. package/dist/fn/Input/TextArea.js +151 -1
  58. package/dist/fn/Input/Time/Picker.js +1457 -1
  59. package/dist/fn/Input/Time/_.js +867 -1
  60. package/dist/fn/Input/_.js +48 -1
  61. package/dist/fn/Input/core.js +626 -1
  62. package/dist/fn/Layout/PageNotFound.js +90 -1
  63. package/dist/fn/Layout/PageRouter.js +87 -1
  64. package/dist/fn/Layout/PageViewController.js +29 -1
  65. package/dist/fn/Layout/Plate.js +37 -1
  66. package/dist/fn/Layout/RootViewController.js +315 -1
  67. package/dist/fn/Layout/SwipeView.js +348 -1
  68. package/dist/fn/Layout/TabBar.js +72 -1
  69. package/dist/fn/Layout/_.js +22 -1
  70. package/dist/fn/Loader/_.js +104 -1
  71. package/dist/fn/Loader/corner.js +85 -1
  72. package/dist/fn/Loader/mini.js +125 -1
  73. package/dist/fn/Loader/top.js +73 -1
  74. package/dist/fn/Sheet.js +1101 -1
  75. package/dist/fn/Snackbar.js +216 -1
  76. package/dist/fn/Table/Data.js +974 -1
  77. package/dist/fn/Table/Drag.js +435 -1
  78. package/dist/fn/Table/Normal.js +136 -1
  79. package/dist/fn/Table/Parts.js +41 -1
  80. package/dist/fn/Table/Wrapper.js +60 -1
  81. package/dist/fn/Table/_.js +16 -1
  82. package/dist/fn/Table/cellStyling.js +51 -1
  83. package/dist/fn/Tooltips.js +58 -1
  84. package/dist/fn/_.js +10 -1
  85. package/dist/index.js +20 -1
  86. package/dist/mols/Accordion.js +152 -1
  87. package/dist/mols/Column.js +16 -1
  88. package/dist/mols/LinkifyText.js +42 -1
  89. package/dist/mols/List.js +42 -1
  90. package/dist/mols/Row.js +47 -1
  91. package/dist/mols/Text.js +67 -1
  92. package/dist/mols/_.js +6 -1
  93. package/dist/temps/_.js +1 -1
  94. package/dist/temps/designBook.js +3639 -20
  95. package/package.json +1 -1
@@ -1 +1,88 @@
1
- import{b as a,c as i,d as s}from"../../chunk-VY3566IV.js";import{jsx as y}from"react/jsx-runtime";import{$$ as u,$$fromRoot as d}from"../../@utils/_";import{useState as I,useEffect as l}from"react";import f from"../../atoms/Box";const D=m=>{let n=m,{animationDelay:p=100,animationTime:r=300,componentID:c=u.uuid.gen()}=n,e=s(n,["animationDelay","animationTime","componentID"]),[t]=I(c);return l(()=>{setTimeout(()=>{let o=d('[data-component-id="'+t+'"]');o[0]&&o.css({transition:r+"ms"}).await(1).css({opacity:1})},p)},[]),y(f,i(a({},e),{freeCSS:i(a({},e.freeCSS),{opacity:0}),componentID:t}))},S=m=>{let n=m,{animationDelay:p=100,animationTime:r=300,componentID:c=u.uuid.gen()}=n,e=s(n,["animationDelay","animationTime","componentID"]),[t]=I(c);return l(()=>{setTimeout(()=>{let o=d('[data-component-id="'+t+'"]');o[0]&&o.css({transition:r+"ms"}).await(1).css({opacity:1,paddingTop:0})},p)},[]),y(f,i(a({paddingTop:2},e),{freeCSS:i(a({},e.freeCSS),{opacity:0}),componentID:t}))};export{D as FadeIn,S as FadeUp};
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "../../chunk-JJ3PEWPN.js";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import {
8
+ $$,
9
+ $$fromRoot
10
+ } from "../../@utils/_";
11
+ import {
12
+ useState,
13
+ useEffect
14
+ } from "react";
15
+ import Box from "../../atoms/Box";
16
+ const FadeIn = (params) => {
17
+ let _a = params, {
18
+ animationDelay = 100,
19
+ animationTime = 300,
20
+ componentID = $$.uuid.gen()
21
+ } = _a, others = __objRest(_a, [
22
+ "animationDelay",
23
+ "animationTime",
24
+ "componentID"
25
+ ]);
26
+ let [val_componentID] = useState(componentID);
27
+ useEffect(() => {
28
+ setTimeout(() => {
29
+ let Element = $$fromRoot('[data-component-id="' + val_componentID + '"]');
30
+ if (!Element[0])
31
+ return;
32
+ Element.css({
33
+ transition: animationTime + "ms"
34
+ }).await(1).css({
35
+ opacity: 1
36
+ });
37
+ }, animationDelay);
38
+ }, []);
39
+ return /* @__PURE__ */ jsx(
40
+ Box,
41
+ __spreadProps(__spreadValues({}, others), {
42
+ freeCSS: __spreadProps(__spreadValues({}, others.freeCSS), {
43
+ opacity: 0
44
+ }),
45
+ componentID: val_componentID
46
+ })
47
+ );
48
+ };
49
+ const FadeUp = (params) => {
50
+ let _a = params, {
51
+ animationDelay = 100,
52
+ animationTime = 300,
53
+ componentID = $$.uuid.gen()
54
+ } = _a, others = __objRest(_a, [
55
+ "animationDelay",
56
+ "animationTime",
57
+ "componentID"
58
+ ]);
59
+ let [val_componentID] = useState(componentID);
60
+ useEffect(() => {
61
+ setTimeout(() => {
62
+ let Element = $$fromRoot('[data-component-id="' + val_componentID + '"]');
63
+ if (!Element[0])
64
+ return;
65
+ Element.css({
66
+ transition: animationTime + "ms"
67
+ }).await(1).css({
68
+ opacity: 1,
69
+ paddingTop: 0
70
+ });
71
+ }, animationDelay);
72
+ }, []);
73
+ return /* @__PURE__ */ jsx(
74
+ Box,
75
+ __spreadProps(__spreadValues({
76
+ paddingTop: 2
77
+ }, others), {
78
+ freeCSS: __spreadProps(__spreadValues({}, others.freeCSS), {
79
+ opacity: 0
80
+ }),
81
+ componentID: val_componentID
82
+ })
83
+ );
84
+ };
85
+ export {
86
+ FadeIn,
87
+ FadeUp
88
+ };
@@ -1 +1,22 @@
1
- import"../../chunk-VY3566IV.js";import{$$ as t,Config as n}from"../../@utils/_";import{EffectClasses as e}from"../../@styles/componentClasses/_";const a={Wrapper:()=>(t(n.get().appRoot).addEvent({eventType:"click",target:".eff_pudding",callback:function(d){t(d.target).removeClass(e("PuddingEffect")).await(1).addClass(e("PuddingEffect")).await(510).removeClass(e("PuddingEffect"))}}),null)};export{a as Pudding,a as default};
1
+ import "../../chunk-JJ3PEWPN.js";
2
+ import {
3
+ $$,
4
+ Config
5
+ } from "../../@utils/_";
6
+ import { EffectClasses } from "../../@styles/componentClasses/_";
7
+ const Pudding = {
8
+ Wrapper: () => {
9
+ $$(Config.get().appRoot).addEvent({
10
+ eventType: "click",
11
+ target: ".eff_pudding",
12
+ callback: function(event) {
13
+ $$(event.target).removeClass(EffectClasses("PuddingEffect")).await(1).addClass(EffectClasses("PuddingEffect")).await(510).removeClass(EffectClasses("PuddingEffect"));
14
+ }
15
+ });
16
+ return null;
17
+ }
18
+ };
19
+ export {
20
+ Pudding,
21
+ Pudding as default
22
+ };
@@ -1,3 +1,117 @@
1
- import"../../chunk-VY3566IV.js";import{$$ as e,Config as u}from"../../@utils/_";import{EffectClasses as a}from"../../@styles/componentClasses/_";let f="eff_ripple";const n={Start:t=>{let l=e.Time().ms,s=t.target,p=e(s);if(!p[0])return;let o=p.findClass(/^eff_ripple-/)[0];if(!o)return;let r=o.split("-")[1],i="RippleWrap-"+e.uuid.gen(),{left:d,top:E,height:b,width:h}=p.position(),{pageXOffset:R,pageYOffset:g}=e.getScreenSize(),{x:T,y}=e.getCursor(t),c=Math.min(h*1.5,300),M=Math.max(T-(d+R),0),C=Math.max(y-(E+g),0),m={RippleElement:p,startedAt:l,size:c};e(document).addEvent({eventID:"RippleMouseUp",eventType:"mouseup",callback:()=>{n.End(m)}}).addEvent({eventID:"RippleTouchEnd",eventType:"touchend",callback:()=>{setTimeout(()=>{n.End(m)},20)}}),e(p).addClass([a("RippleElement"),a("Color_"+r)]).append(`<div class="${a("RippleWrap")}" id="${i}">
2
- <div class="${a("Wave")}" />
3
- </div>`).addEvent({eventID:"RippleMouseOut",eventType:"mouseout",callback:I=>{n.End(m)}}).find("#"+i).find("."+a("Wave")).css({left:M,top:C}).await(10).css({height:c,width:c,opacity:".3",transition:".25s"})},End:t=>{let{RippleElement:l,startedAt:s,size:p}=t,r=e.Time().ms-s<=400?".75s":".55s",i=p*2.5;e(document).removeEvent(["RippleMouseUp","RippleTouchMove","RippleTouchEnd","RippleMouseOut"]),l.removeEvent(["RippleMouseOut"]).find("."+a("Wave")).css({height:i,width:i,opacity:"0",transition:r}).await(750).parent().callback(d=>{d.remove()})}},v={Wrapper:()=>(e(u.get().appRoot).addEvent({eventType:"touchstart",target:"."+f,callback:t=>{n.Start(t)}}).addEvent({eventType:"mousedown",target:"."+f,callback:t=>{u.get().isTouchDevice||n.Start(t)}}),null)};export{v as Ripple,v as default};
1
+ import "../../chunk-JJ3PEWPN.js";
2
+ import {
3
+ $$,
4
+ Config
5
+ } from "../../@utils/_";
6
+ import { EffectClasses } from "../../@styles/componentClasses/_";
7
+ let RippleElementClassName = "eff_ripple";
8
+ const Effects = {
9
+ Start: (event) => {
10
+ let startedAt = $$.Time().ms;
11
+ let target = event.target;
12
+ let RippleElement = $$(target);
13
+ if (!RippleElement[0])
14
+ return;
15
+ let Classname = RippleElement.findClass(/^eff_ripple-/)[0];
16
+ if (!Classname)
17
+ return;
18
+ let Color = Classname.split("-")[1];
19
+ let ID = "RippleWrap-" + $$.uuid.gen(), {
20
+ left,
21
+ top,
22
+ height,
23
+ width
24
+ } = RippleElement.position(), {
25
+ pageXOffset,
26
+ pageYOffset
27
+ } = $$.getScreenSize(), {
28
+ x: cursorX,
29
+ y: cursorY
30
+ } = $$.getCursor(event), size = Math.min(width * 1.5, 300), x = Math.max(cursorX - (left + pageXOffset), 0), y = Math.max(cursorY - (top + pageYOffset), 0);
31
+ let effectInfo = {
32
+ RippleElement,
33
+ startedAt,
34
+ size
35
+ };
36
+ $$(document).addEvent({
37
+ eventID: "RippleMouseUp",
38
+ eventType: "mouseup",
39
+ callback: () => {
40
+ Effects.End(effectInfo);
41
+ }
42
+ }).addEvent({
43
+ eventID: "RippleTouchEnd",
44
+ eventType: "touchend",
45
+ callback: () => {
46
+ setTimeout(() => {
47
+ Effects.End(effectInfo);
48
+ }, 20);
49
+ }
50
+ });
51
+ $$(RippleElement).addClass([
52
+ EffectClasses("RippleElement"),
53
+ EffectClasses("Color_" + Color)
54
+ ]).append(`<div class="${EffectClasses("RippleWrap")}" id="${ID}">
55
+ <div class="${EffectClasses("Wave")}" />
56
+ </div>`).addEvent({
57
+ eventID: "RippleMouseOut",
58
+ eventType: "mouseout",
59
+ callback: (event2) => {
60
+ Effects.End(effectInfo);
61
+ }
62
+ }).find("#" + ID).find("." + EffectClasses("Wave")).css({ left: x, top: y }).await(10).css({
63
+ height: size,
64
+ width: size,
65
+ opacity: ".3",
66
+ transition: ".25s"
67
+ });
68
+ },
69
+ End: (effectInfo) => {
70
+ let {
71
+ RippleElement,
72
+ startedAt,
73
+ size
74
+ } = effectInfo;
75
+ let processTime = $$.Time().ms - startedAt;
76
+ let transition = processTime <= 400 ? ".75s" : ".55s";
77
+ let diameter = size * 2.5;
78
+ $$(document).removeEvent([
79
+ "RippleMouseUp",
80
+ "RippleTouchMove",
81
+ "RippleTouchEnd",
82
+ "RippleMouseOut"
83
+ ]);
84
+ RippleElement.removeEvent(["RippleMouseOut"]).find("." + EffectClasses("Wave")).css({
85
+ height: diameter,
86
+ width: diameter,
87
+ opacity: "0",
88
+ transition
89
+ }).await(750).parent().callback((Parent) => {
90
+ Parent.remove();
91
+ });
92
+ }
93
+ };
94
+ const Ripple = {
95
+ Wrapper: () => {
96
+ $$(Config.get().appRoot).addEvent({
97
+ eventType: "touchstart",
98
+ target: "." + RippleElementClassName,
99
+ callback: (event) => {
100
+ Effects.Start(event);
101
+ }
102
+ }).addEvent({
103
+ eventType: "mousedown",
104
+ target: "." + RippleElementClassName,
105
+ callback: (event) => {
106
+ if (Config.get().isTouchDevice)
107
+ return;
108
+ Effects.Start(event);
109
+ }
110
+ });
111
+ return null;
112
+ }
113
+ };
114
+ export {
115
+ Ripple,
116
+ Ripple as default
117
+ };
@@ -1 +1,14 @@
1
- import"../../chunk-VY3566IV.js";import{FadeIn as p,FadeUp as r}from"./Fade";import t from"./Ripple";import e from"./Pudding";const o={Ripple:t,Pudding:e,FadeIn:p,FadeUp:r};export{o as Effect,o as default};
1
+ import "../../chunk-JJ3PEWPN.js";
2
+ import { FadeIn, FadeUp } from "./Fade";
3
+ import Ripple from "./Ripple";
4
+ import Pudding from "./Pudding";
5
+ const Effect = {
6
+ Ripple,
7
+ Pudding,
8
+ FadeIn,
9
+ FadeUp
10
+ };
11
+ export {
12
+ Effect,
13
+ Effect as default
14
+ };
@@ -1 +1,112 @@
1
- import{b as n,c as o,e as u}from"../../chunk-VY3566IV.js";import{jsx as g,jsxs as w}from"react/jsx-runtime";import{useEffect as m,useState as h}from"react";import{$$ as r}from"../../@utils/_";import T from"./TextArea";import v from"../../mols/Text";import H from"../../atoms/Box";import{InputAutoHeightClasses as s}from"../../@styles/componentClasses/_";const f=e=>{let[t]=h(r.uuid.gen()),[l,c]=h(String(e.value||""));m(()=>{r.scope(()=>u(void 0,null,function*(){let i=r('[data-id="origin_'+t+'"]')[0],a=r('[data-id="shallow_'+t+'"]')[0];if(!i||!a)return;let d=a.getClientRects()[0];if(!d)return;let{width:A,height:S}=d;i.style.height=S+"px"}))},[l]);let x=!!l.match(/\n$/),p=l||e.placeholder;return x&&(p+="d"),w(H,{position:"relative",className:s("Wrapper"),children:[g(v.Description,o(n({padding:1,fontSize:"inherit"},e),{className:[e.className,s("Shallow")].join(" "),id:"shallow_"+t,position:"absolute",left:0,right:0,top:0,opacity:"trans",border:"0.trans",freeCSS:o(n({minHeight:16*1,resize:"none"},e.freeCSS),{color:"transparent",zIndex:3,pointerEvents:"none",lineHeight:"1.25",letterSpacing:"1px"}),"data-id":"shallow_"+t,children:p})),g(T,o(n({padding:1,fontSize:"inherit",overflow:"hidden"},e),{className:[e.className,s("Origin")].join(" "),freeCSS:o(n({minHeight:16*1,resize:"none"},e.freeCSS),{lineHeight:"1.25",letterSpacing:"1px"}),value:l,"data-id":"origin_"+t,onUpdateValue:i=>{let a=i.value;c(a),e.onUpdateValue&&e.onUpdateValue(i)}}))]})};export{f as AutoHeightText,f as default};
1
+ import {
2
+ __async,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "../../chunk-JJ3PEWPN.js";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import {
8
+ useEffect,
9
+ useState
10
+ } from "react";
11
+ import { $$ } from "../../@utils/_";
12
+ import TextArea from "./TextArea";
13
+ import Text from "../../mols/Text";
14
+ import Box from "../../atoms/Box";
15
+ import { InputAutoHeightClasses } from "../../@styles/componentClasses/_";
16
+ const AutoHeightText = (params) => {
17
+ let [val_componentID] = useState($$.uuid.gen());
18
+ let [val_value, set_value] = useState(String(params.value || ""));
19
+ useEffect(() => {
20
+ $$.scope(() => __async(void 0, null, function* () {
21
+ let Original = $$('[data-id="origin_' + val_componentID + '"]')[0];
22
+ let Shallow = $$('[data-id="shallow_' + val_componentID + '"]')[0];
23
+ if (!Original)
24
+ return;
25
+ if (!Shallow)
26
+ return;
27
+ let Rect = Shallow.getClientRects()[0];
28
+ if (!Rect)
29
+ return;
30
+ let {
31
+ width,
32
+ height
33
+ } = Rect;
34
+ Original.style.height = height + "px";
35
+ }));
36
+ }, [val_value]);
37
+ let isLastPrefix = !!val_value.match(/\n$/);
38
+ let shallowText = val_value || params.placeholder;
39
+ if (isLastPrefix)
40
+ shallowText += "d";
41
+ return /* @__PURE__ */ jsxs(
42
+ Box,
43
+ {
44
+ position: "relative",
45
+ className: InputAutoHeightClasses("Wrapper"),
46
+ children: [
47
+ /* @__PURE__ */ jsx(
48
+ Text.Description,
49
+ __spreadProps(__spreadValues({
50
+ padding: 1,
51
+ fontSize: "inherit"
52
+ }, params), {
53
+ className: [
54
+ params.className,
55
+ InputAutoHeightClasses("Shallow")
56
+ ].join(" "),
57
+ id: "shallow_" + val_componentID,
58
+ position: "absolute",
59
+ left: 0,
60
+ right: 0,
61
+ top: 0,
62
+ opacity: "trans",
63
+ border: "0.trans",
64
+ freeCSS: __spreadProps(__spreadValues({
65
+ minHeight: 16 * 1,
66
+ resize: "none"
67
+ }, params.freeCSS), {
68
+ color: "transparent",
69
+ zIndex: 3,
70
+ pointerEvents: "none",
71
+ lineHeight: "1.25",
72
+ letterSpacing: "1px"
73
+ }),
74
+ "data-id": "shallow_" + val_componentID,
75
+ children: shallowText
76
+ })
77
+ ),
78
+ /* @__PURE__ */ jsx(
79
+ TextArea,
80
+ __spreadProps(__spreadValues({
81
+ padding: 1,
82
+ fontSize: "inherit",
83
+ overflow: "hidden"
84
+ }, params), {
85
+ className: [
86
+ params.className,
87
+ InputAutoHeightClasses("Origin")
88
+ ].join(" "),
89
+ freeCSS: __spreadProps(__spreadValues({
90
+ minHeight: 16 * 1,
91
+ resize: "none"
92
+ }, params.freeCSS), {
93
+ lineHeight: "1.25",
94
+ letterSpacing: "1px"
95
+ }),
96
+ value: val_value,
97
+ "data-id": "origin_" + val_componentID,
98
+ onUpdateValue: (event) => {
99
+ let Value = event.value;
100
+ set_value(Value);
101
+ params.onUpdateValue && params.onUpdateValue(event);
102
+ }
103
+ })
104
+ )
105
+ ]
106
+ }
107
+ );
108
+ };
109
+ export {
110
+ AutoHeightText,
111
+ AutoHeightText as default
112
+ };
@@ -1 +1,36 @@
1
- import{b as l,c as t}from"../../chunk-VY3566IV.js";import{jsx as u}from"react/jsx-runtime";import c from"./List";const n=e=>(e=l({},e),u(c.Plain,t(l({},e),{tone:"plain",icon:!0,type:"checker",iconType:"checkbox",value:e.value?!0:null,cellStyles:l({padding:0},e.cellStyles),options:[{value:!0,label:e.label}],onUpdateValidValue:a=>{let o=!!a.value[0];e.onUpdateValidValue&&e.onUpdateValidValue(t(l({},a),{value:o}))}})));export{n as Checker,n as default};
1
+ import {
2
+ __spreadProps,
3
+ __spreadValues
4
+ } from "../../chunk-JJ3PEWPN.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import List from "./List";
7
+ const Checker = (params) => {
8
+ params = __spreadValues({}, params);
9
+ return /* @__PURE__ */ jsx(
10
+ List.Plain,
11
+ __spreadProps(__spreadValues({}, params), {
12
+ tone: "plain",
13
+ icon: true,
14
+ type: "checker",
15
+ iconType: "checkbox",
16
+ value: params.value ? true : null,
17
+ cellStyles: __spreadValues({
18
+ padding: 0
19
+ }, params.cellStyles),
20
+ options: [
21
+ { value: true, label: params.label }
22
+ ],
23
+ onUpdateValidValue: (args) => {
24
+ let Value = !!args.value[0];
25
+ if (params.onUpdateValidValue)
26
+ params.onUpdateValidValue(__spreadProps(__spreadValues({}, args), {
27
+ value: Value
28
+ }));
29
+ }
30
+ })
31
+ );
32
+ };
33
+ export {
34
+ Checker,
35
+ Checker as default
36
+ };