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.
Files changed (98) hide show
  1. package/dist/@declaration/_.js +1 -1
  2. package/dist/@declaration/property.d.ts +2 -2
  3. package/dist/@styles/componentClasses/_.css +66 -65
  4. package/dist/@styles/componentClasses/_.js +39 -39
  5. package/dist/@styles/index.css +66 -65
  6. package/dist/@styles/index.js +39 -39
  7. package/dist/@styles/init.css +1 -1
  8. package/dist/@styles/style.css +96 -65
  9. package/dist/@styles/style.js +39 -39
  10. package/dist/@styles/var.css +1 -1
  11. package/dist/@utils/GenerateClassName.js +1 -470
  12. package/dist/@utils/LaunchReactApp.d.ts +1 -1
  13. package/dist/@utils/LaunchReactApp.js +1 -78
  14. package/dist/@utils/_.js +1 -12
  15. package/dist/@utils/collectForm.js +1 -96
  16. package/dist/@utils/color.js +1 -103
  17. package/dist/@utils/config.js +1 -101
  18. package/dist/@utils/fin.js +1 -39
  19. package/dist/@utils/getElement.js +1 -13
  20. package/dist/@utils/jsminEx.js +1 -172
  21. package/dist/@utils/pageTransit.js +1 -33
  22. package/dist/@utils/useRecycle.js +1 -44
  23. package/dist/@utils/useStore.js +1 -54
  24. package/dist/atoms/Box.js +1 -20
  25. package/dist/atoms/FAI.js +1 -148
  26. package/dist/atoms/Flex.js +1 -34
  27. package/dist/atoms/Grid.js +1 -17
  28. package/dist/atoms/Img.js +1 -65
  29. package/dist/atoms/Logo.js +51 -359
  30. package/dist/atoms/P.js +1 -20
  31. package/dist/atoms/Placeholder.js +1 -44
  32. package/dist/atoms/Span.js +1 -20
  33. package/dist/atoms/_.js +1 -9
  34. package/dist/fn/Button.js +1 -316
  35. package/dist/fn/Cropper.js +1 -1009
  36. package/dist/fn/Effect/Fade.js +1 -88
  37. package/dist/fn/Effect/Pudding.js +1 -22
  38. package/dist/fn/Effect/Ripple.js +3 -117
  39. package/dist/fn/Effect/_.js +1 -14
  40. package/dist/fn/Input/AutoHeightText.js +1 -112
  41. package/dist/fn/Input/Checker.js +1 -36
  42. package/dist/fn/Input/Chips/Selector.js +1 -472
  43. package/dist/fn/Input/Chips/_.js +1 -349
  44. package/dist/fn/Input/Contenteditable.js +1 -160
  45. package/dist/fn/Input/DigitCharacters.js +1 -275
  46. package/dist/fn/Input/Filer.js +1 -619
  47. package/dist/fn/Input/Hidden.js +1 -48
  48. package/dist/fn/Input/List.js +1 -450
  49. package/dist/fn/Input/Parts.js +1 -121
  50. package/dist/fn/Input/Plain.js +1 -12
  51. package/dist/fn/Input/RichSelect.js +1 -279
  52. package/dist/fn/Input/Search.js +1 -53
  53. package/dist/fn/Input/Segmented.js +1 -245
  54. package/dist/fn/Input/Select.js +1 -278
  55. package/dist/fn/Input/Slider.js +1 -538
  56. package/dist/fn/Input/Switch.js +1 -221
  57. package/dist/fn/Input/Text.js +1 -626
  58. package/dist/fn/Input/TextArea.js +1 -151
  59. package/dist/fn/Input/Time/Picker.js +1 -1457
  60. package/dist/fn/Input/Time/_.js +1 -867
  61. package/dist/fn/Input/_.js +1 -48
  62. package/dist/fn/Input/core.js +1 -626
  63. package/dist/fn/Layout/PageNotFound.js +1 -90
  64. package/dist/fn/Layout/PageRouter.js +1 -87
  65. package/dist/fn/Layout/PageViewController.js +1 -29
  66. package/dist/fn/Layout/Plate.js +1 -37
  67. package/dist/fn/Layout/RootViewController.js +1 -315
  68. package/dist/fn/Layout/SwipeView.js +1 -348
  69. package/dist/fn/Layout/TabBar.js +1 -72
  70. package/dist/fn/Layout/_.js +1 -22
  71. package/dist/fn/Loader/_.js +1 -104
  72. package/dist/fn/Loader/corner.js +1 -85
  73. package/dist/fn/Loader/mini.js +1 -125
  74. package/dist/fn/Loader/top.js +1 -73
  75. package/dist/fn/Sheet.d.ts +1 -0
  76. package/dist/fn/Sheet.js +1 -1101
  77. package/dist/fn/Snackbar.js +1 -216
  78. package/dist/fn/Table/Data.js +1 -974
  79. package/dist/fn/Table/Drag.js +1 -435
  80. package/dist/fn/Table/Normal.js +1 -136
  81. package/dist/fn/Table/Parts.js +1 -41
  82. package/dist/fn/Table/Wrapper.js +1 -60
  83. package/dist/fn/Table/_.js +1 -16
  84. package/dist/fn/Table/cellStyling.js +1 -51
  85. package/dist/fn/Tooltips.js +1 -58
  86. package/dist/fn/_.js +1 -10
  87. package/dist/index.js +1 -20
  88. package/dist/mols/Accordion.js +1 -152
  89. package/dist/mols/Column.js +1 -16
  90. package/dist/mols/LinkifyText.js +1 -42
  91. package/dist/mols/List.js +1 -42
  92. package/dist/mols/Row.js +1 -47
  93. package/dist/mols/Text.js +1 -67
  94. package/dist/mols/_.js +1 -6
  95. package/dist/temps/_.js +1 -1
  96. package/dist/temps/designBook.js +20 -3639
  97. package/package.json +1 -1
  98. package/dist/chunk-JJ3PEWPN.js +0 -60
@@ -1,88 +1 @@
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
+ 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,22 +1 @@
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
+ 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,117 +1,3 @@
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
+ 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,14 +1 @@
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
+ 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,112 +1 @@
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
+ 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,36 +1 @@
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
- };
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};