@albi_scando/as-const-lib 1.0.1 → 1.1.1
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/as-const-lib.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const l = "&",
|
|
1
|
+
const l = "&", t = 1e-6, i = "px", r = "", s = "deliberately-not-set", e = {
|
|
2
2
|
ADD: '<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_227-add" serif:id="227-add" d="M3.887,10.53l6.543,0l0,-6.543l3,0l0,6.543l6.543,0l0,3l-6.543,0l0,6.543l-3,0l0,-6.543l-6.543,0l0,-3Z"/></svg>',
|
|
3
3
|
ARROW_LEFT: '<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_038-arrow-left" serif:id="038-arrow-left" d="M15.53,6.53l-5.469,5.47l5.469,5.47l-1.06,1.06l-6.531,-6.53l6.531,-6.53c0.353,0.353 0.707,0.707 1.06,1.06Z" style="fill-rule:nonzero;"/></svg>',
|
|
4
4
|
ARROW_RIGHT: '<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_039-arrow-right" serif:id="039-arrow-right" d="M8.205,6.53l5.469,5.47l-5.469,5.47l1.06,1.06l6.53,-6.53l-6.53,-6.53c-0.353,0.353 -0.707,0.707 -1.06,1.06Z" style="fill-rule:nonzero;"/></svg>',
|
|
@@ -81,16 +81,16 @@ const l = "&", i = 1e-6, t = "px", r = "", s = "deliberately-not-set", e = {
|
|
|
81
81
|
AFTER_BEGIN: "afterbegin",
|
|
82
82
|
BEFORE_END: "beforeend",
|
|
83
83
|
AFTER_END: "afterend"
|
|
84
|
-
},
|
|
84
|
+
}, E = {
|
|
85
85
|
KEY_DOWN: "keydown",
|
|
86
86
|
KEY_UP: "keyup"
|
|
87
|
-
},
|
|
87
|
+
}, d = {
|
|
88
88
|
ADD_TRACK: "addtrack",
|
|
89
89
|
ENDED: "ended",
|
|
90
90
|
MUTE: "mute",
|
|
91
91
|
REMOVE_TRACK: "removetrack",
|
|
92
92
|
UNMUTE: "unmute"
|
|
93
|
-
},
|
|
93
|
+
}, m = {
|
|
94
94
|
MOUSE_DOWN: "mousedown",
|
|
95
95
|
MOUSE_UP: "mouseup",
|
|
96
96
|
MOUSE_OVER: "mouseover",
|
|
@@ -99,7 +99,7 @@ const l = "&", i = 1e-6, t = "px", r = "", s = "deliberately-not-set", e = {
|
|
|
99
99
|
CLICK: "click",
|
|
100
100
|
DOUBLE_CLICK: "dblclick",
|
|
101
101
|
CONTEXT_MENU: "contextmenu"
|
|
102
|
-
},
|
|
102
|
+
}, p = {
|
|
103
103
|
ENTER_PICTURE_IN_PICTURE: "enterpictureinpicture",
|
|
104
104
|
LEAVE_PICTURE_IN_PICTURE: "leavepictureinpicture",
|
|
105
105
|
RESIZE: "resize"
|
|
@@ -116,14 +116,30 @@ const l = "&", i = 1e-6, t = "px", r = "", s = "deliberately-not-set", e = {
|
|
|
116
116
|
POINTER_CAPTURE: "gotpointercapture",
|
|
117
117
|
LOST_POINTER_CAPTURE: "lostpointercapture"
|
|
118
118
|
}, g = {
|
|
119
|
+
ARRAY: "object",
|
|
120
|
+
BOOLEAN: "boolean",
|
|
121
|
+
CHECK: "check",
|
|
122
|
+
INLINE_CHECK: "inline-check",
|
|
123
|
+
RADIO: "radio",
|
|
124
|
+
INLINE_RADIO: "inline-radio",
|
|
125
|
+
SELECT: "select",
|
|
126
|
+
MULTI_SELECT: "multi-select",
|
|
127
|
+
NUMBER: "number",
|
|
128
|
+
RANGE: "range",
|
|
129
|
+
FILE: "file",
|
|
130
|
+
OBJECT: "object",
|
|
131
|
+
COLOR: "color",
|
|
132
|
+
DATE: "date",
|
|
133
|
+
TEXT: "text"
|
|
134
|
+
}, v = {
|
|
119
135
|
DARK: "dark",
|
|
120
136
|
LIGHT: "light"
|
|
121
|
-
},
|
|
137
|
+
}, x = {
|
|
122
138
|
TOUCH_START: "touchstart",
|
|
123
139
|
TOUCH_END: "touchend",
|
|
124
140
|
TOUCH_MOVE: "touchmove",
|
|
125
141
|
TOUCH_CANCEL: "touchcancel"
|
|
126
|
-
},
|
|
142
|
+
}, _ = {
|
|
127
143
|
BIGINT: "bigint",
|
|
128
144
|
BOOLEAN: "boolean",
|
|
129
145
|
FUNCTION: "function",
|
|
@@ -132,7 +148,7 @@ const l = "&", i = 1e-6, t = "px", r = "", s = "deliberately-not-set", e = {
|
|
|
132
148
|
STRING: "string",
|
|
133
149
|
SYMBOL: "symbol",
|
|
134
150
|
UNDEFINED: "undefined"
|
|
135
|
-
},
|
|
151
|
+
}, R = {
|
|
136
152
|
WHEEL: "wheel"
|
|
137
153
|
};
|
|
138
154
|
export {
|
|
@@ -140,19 +156,20 @@ export {
|
|
|
140
156
|
o as CURSOR,
|
|
141
157
|
n as CUSTOM_EVENTS,
|
|
142
158
|
w as DRAG_EVENTS,
|
|
143
|
-
|
|
159
|
+
t as FLOAT_TOLERANCE,
|
|
144
160
|
c as INSERT_ADJACENT_HTML,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
E as KEYBOARD_EVENTS,
|
|
162
|
+
d as MEDIA_STREAM_EVENTS,
|
|
163
|
+
m as MOUSE_EVENTS,
|
|
164
|
+
p as PICTURE_IN_PICTURE_EVENTS,
|
|
149
165
|
h as POINTER_EVENTS,
|
|
150
|
-
|
|
166
|
+
i as PX,
|
|
167
|
+
g as STORYBOOK_CONTROL_TYPES,
|
|
151
168
|
r as STRING_EMPTY,
|
|
152
169
|
e as SVG,
|
|
153
|
-
|
|
154
|
-
|
|
170
|
+
v as THEMES,
|
|
171
|
+
x as TOUCH_EVENTS,
|
|
155
172
|
s as TRANSLATION_DELIBERATELY_UNSET,
|
|
156
|
-
|
|
157
|
-
|
|
173
|
+
_ as TYPEOF,
|
|
174
|
+
R as WHEEL_EVENTS
|
|
158
175
|
};
|
package/dist/as-const-lib.umd.js
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
<path d="M6,20C5.45,20 4.979,19.804 4.588,19.413C4.196,19.021 4,18.55 4,18L4,15L6,15L6,18L18,18L18,15L20,15L20,18C20,18.55 19.804,19.021 19.413,19.413C19.021,19.804 18.55,20 18,20L6,20ZM12,16L7,11L8.4,9.55L11,12.15L11,4L13,4L13,12.15L15.6,9.55L17,11L12,16Z" style="fill-rule:nonzero;"/>
|
|
13
13
|
</g>
|
|
14
14
|
</g>
|
|
15
|
-
</svg>`,INFO:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_223-info" serif:id="223-info" d="M13.684,3.24c0.512,-0 0.943,0.177 1.294,0.532c0.351,0.355 0.526,0.785 0.526,1.288c0,0.504 -0.177,0.933 -0.532,1.288c-0.355,0.355 -0.785,0.532 -1.288,0.532c-0.495,0 -0.92,-0.177 -1.275,-0.532c-0.355,-0.355 -0.533,-0.784 -0.533,-1.288c0,-0.503 0.176,-0.933 0.526,-1.288c0.351,-0.355 0.778,-0.532 1.282,-0.532Zm0.768,5.696l-2.539,8.803c-0.14,0.503 -0.21,0.834 -0.21,0.99c-0,0.091 0.037,0.176 0.111,0.254c0.075,0.079 0.153,0.118 0.236,0.118c0.14,-0 0.28,-0.062 0.421,-0.186c0.371,-0.305 0.817,-0.858 1.337,-1.659l0.421,0.248c-1.247,2.171 -2.572,3.256 -3.975,3.256c-0.536,0 -0.964,-0.151 -1.281,-0.452c-0.318,-0.301 -0.477,-0.683 -0.477,-1.145c-0,-0.306 0.07,-0.694 0.21,-1.164l1.722,-5.919c0.165,-0.569 0.247,-0.998 0.247,-1.287c0,-0.182 -0.078,-0.343 -0.235,-0.483c-0.157,-0.14 -0.372,-0.211 -0.644,-0.211c-0.124,0 -0.272,0.005 -0.446,0.013l0.161,-0.495l4.198,-0.681l0.743,-0Z" style="fill-rule:nonzero;"/></svg>',SAVE:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_010-save" serif:id="010-save" d="M14.942,9.325l-9.792,-0l0,-3.908l9.792,-0l0,3.908Zm-2.942,9.792c-0.827,-0 -1.517,-0.276 -2.069,-0.828c-0.551,-0.552 -0.827,-1.249 -0.827,-2.092c-0,-0.843 0.276,-1.54 0.827,-2.091c0.552,-0.552 1.242,-0.828 2.069,-0.828c0.827,0 1.517,0.276 2.069,0.828c0.551,0.551 0.827,1.248 0.827,2.091c0,0.843 -0.276,1.54 -0.827,2.092c-0.552,0.552 -1.242,0.828 -2.069,0.828Zm4.919,-15.677l-11.769,0c-0.582,0 -1.057,0.192 -1.425,0.575c-0.368,0.383 -0.552,0.85 -0.552,1.402l0,13.7c0,0.551 0.192,1.019 0.575,1.402c0.383,0.383 0.851,0.574 1.402,0.574l13.7,0c0.551,0 1.019,-0.191 1.402,-0.574c0.383,-0.383 0.575,-0.851 0.575,-1.402l-0,-11.769l-3.908,-3.908Z" style="fill-rule:nonzero;"/></svg>',SETTINGS:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_063-settings" serif:id="063-settings" d="M11.977,15.153c-0.868,-0.028 -1.587,-0.326 -2.157,-0.896c-0.569,-0.569 -0.854,-1.288 -0.854,-2.156c-0,-0.868 0.285,-1.587 0.854,-2.157c0.57,-0.569 1.289,-0.854 2.157,-0.854c0.868,0 1.587,0.285 2.156,0.854c0.57,0.57 0.855,1.289 0.855,2.157c-0,0.868 -0.285,1.587 -0.855,2.156c-0.569,0.57 -1.288,0.868 -2.156,0.896Zm6.469,-2.198c0.027,-0.271 0.041,-0.556 0.041,-0.854c-0,-0.298 -0.014,-0.583 -0.041,-0.855l1.831,-1.424c0.163,-0.162 0.19,-0.352 0.082,-0.569l-1.75,-3.011c-0.108,-0.19 -0.285,-0.244 -0.529,-0.163l-2.156,0.855c-0.434,-0.353 -0.923,-0.638 -1.465,-0.855l-0.326,-2.278c-0.054,-0.245 -0.19,-0.367 -0.407,-0.367l-3.499,0c-0.217,0 -0.352,0.122 -0.407,0.367l-0.325,2.278c-0.543,0.217 -1.031,0.502 -1.465,0.855l-2.156,-0.855c-0.244,-0.081 -0.421,-0.027 -0.529,0.163l-1.75,3.011c-0.108,0.217 -0.081,0.407 0.082,0.569l1.83,1.424c-0.027,0.272 -0.04,0.557 -0.04,0.855c-0,0.298 0.013,0.583 0.04,0.854l-1.83,1.424c-0.163,0.163 -0.19,0.353 -0.082,0.57l1.75,3.011c0.108,0.19 0.285,0.244 0.529,0.163l2.156,-0.855c0.434,0.353 0.922,0.638 1.465,0.855l0.325,2.278c0.055,0.244 0.19,0.367 0.407,0.367l3.499,-0c0.217,-0 0.353,-0.123 0.407,-0.367l0.326,-2.278c0.542,-0.217 1.031,-0.502 1.465,-0.855l2.156,0.855c0.244,0.081 0.421,0.027 0.529,-0.163l1.75,-3.011c0.108,-0.217 0.081,-0.407 -0.082,-0.57l-1.831,-1.424Z" style="fill-rule:nonzero;"/></svg>'},r={ALIAS:"alias",ALL_SCROLL:"all-scroll",AUTO:"auto",CELL:"cell",COL_RESIZE:"col-resize",CONTEXT_MENU:"context-menu",COPY:"copy",CROSSHAIR:"crosshair",DEFAULT:"default",E_RESIZE:"e-resize",EW_RESIZE:"ew-resize",GRAB:"grab",GRABBING:"grabbing",HELP:"help",MOVE:"move",N_RESIZE:"n-resize",NE_RESIZE:"ne-resize",NESW_RESIZE:"nesw-resize",NS_RESIZE:"ns-resize",NW_RESIZE:"nw-resize",NWSE_RESIZE:"nwse-resize",NO_DROP:"no-drop",NONE:"none",NOT_ALLOWED:"not-allowed",POINTER:"pointer",PROGRESS:"progress",ROW_RESIZE:"row-resize",S_RESIZE:"s-resize",SE_RESIZE:"se-resize",SW_RESIZE:"sw-resize",TEXT:"text",URL:"url(myBall.cur),auto",W_RESIZE:"w-resize",WAIT:"wait",ZOOM_IN:"zoom-in",ZOOM_OUT:"zoom-out",CUSTOM_CROSSHAIR:`url("data:image/svg+xml;base64,${btoa(i.CUSTOM_CROSSHAIR)}") 16 16, auto`},
|
|
15
|
+
</svg>`,INFO:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_223-info" serif:id="223-info" d="M13.684,3.24c0.512,-0 0.943,0.177 1.294,0.532c0.351,0.355 0.526,0.785 0.526,1.288c0,0.504 -0.177,0.933 -0.532,1.288c-0.355,0.355 -0.785,0.532 -1.288,0.532c-0.495,0 -0.92,-0.177 -1.275,-0.532c-0.355,-0.355 -0.533,-0.784 -0.533,-1.288c0,-0.503 0.176,-0.933 0.526,-1.288c0.351,-0.355 0.778,-0.532 1.282,-0.532Zm0.768,5.696l-2.539,8.803c-0.14,0.503 -0.21,0.834 -0.21,0.99c-0,0.091 0.037,0.176 0.111,0.254c0.075,0.079 0.153,0.118 0.236,0.118c0.14,-0 0.28,-0.062 0.421,-0.186c0.371,-0.305 0.817,-0.858 1.337,-1.659l0.421,0.248c-1.247,2.171 -2.572,3.256 -3.975,3.256c-0.536,0 -0.964,-0.151 -1.281,-0.452c-0.318,-0.301 -0.477,-0.683 -0.477,-1.145c-0,-0.306 0.07,-0.694 0.21,-1.164l1.722,-5.919c0.165,-0.569 0.247,-0.998 0.247,-1.287c0,-0.182 -0.078,-0.343 -0.235,-0.483c-0.157,-0.14 -0.372,-0.211 -0.644,-0.211c-0.124,0 -0.272,0.005 -0.446,0.013l0.161,-0.495l4.198,-0.681l0.743,-0Z" style="fill-rule:nonzero;"/></svg>',SAVE:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_010-save" serif:id="010-save" d="M14.942,9.325l-9.792,-0l0,-3.908l9.792,-0l0,3.908Zm-2.942,9.792c-0.827,-0 -1.517,-0.276 -2.069,-0.828c-0.551,-0.552 -0.827,-1.249 -0.827,-2.092c-0,-0.843 0.276,-1.54 0.827,-2.091c0.552,-0.552 1.242,-0.828 2.069,-0.828c0.827,0 1.517,0.276 2.069,0.828c0.551,0.551 0.827,1.248 0.827,2.091c0,0.843 -0.276,1.54 -0.827,2.092c-0.552,0.552 -1.242,0.828 -2.069,0.828Zm4.919,-15.677l-11.769,0c-0.582,0 -1.057,0.192 -1.425,0.575c-0.368,0.383 -0.552,0.85 -0.552,1.402l0,13.7c0,0.551 0.192,1.019 0.575,1.402c0.383,0.383 0.851,0.574 1.402,0.574l13.7,0c0.551,0 1.019,-0.191 1.402,-0.574c0.383,-0.383 0.575,-0.851 0.575,-1.402l-0,-11.769l-3.908,-3.908Z" style="fill-rule:nonzero;"/></svg>',SETTINGS:'<svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path id="_063-settings" serif:id="063-settings" d="M11.977,15.153c-0.868,-0.028 -1.587,-0.326 -2.157,-0.896c-0.569,-0.569 -0.854,-1.288 -0.854,-2.156c-0,-0.868 0.285,-1.587 0.854,-2.157c0.57,-0.569 1.289,-0.854 2.157,-0.854c0.868,0 1.587,0.285 2.156,0.854c0.57,0.57 0.855,1.289 0.855,2.157c-0,0.868 -0.285,1.587 -0.855,2.156c-0.569,0.57 -1.288,0.868 -2.156,0.896Zm6.469,-2.198c0.027,-0.271 0.041,-0.556 0.041,-0.854c-0,-0.298 -0.014,-0.583 -0.041,-0.855l1.831,-1.424c0.163,-0.162 0.19,-0.352 0.082,-0.569l-1.75,-3.011c-0.108,-0.19 -0.285,-0.244 -0.529,-0.163l-2.156,0.855c-0.434,-0.353 -0.923,-0.638 -1.465,-0.855l-0.326,-2.278c-0.054,-0.245 -0.19,-0.367 -0.407,-0.367l-3.499,0c-0.217,0 -0.352,0.122 -0.407,0.367l-0.325,2.278c-0.543,0.217 -1.031,0.502 -1.465,0.855l-2.156,-0.855c-0.244,-0.081 -0.421,-0.027 -0.529,0.163l-1.75,3.011c-0.108,0.217 -0.081,0.407 0.082,0.569l1.83,1.424c-0.027,0.272 -0.04,0.557 -0.04,0.855c-0,0.298 0.013,0.583 0.04,0.854l-1.83,1.424c-0.163,0.163 -0.19,0.353 -0.082,0.57l1.75,3.011c0.108,0.19 0.285,0.244 0.529,0.163l2.156,-0.855c0.434,0.353 0.922,0.638 1.465,0.855l0.325,2.278c0.055,0.244 0.19,0.367 0.407,0.367l3.499,-0c0.217,-0 0.353,-0.123 0.407,-0.367l0.326,-2.278c0.542,-0.217 1.031,-0.502 1.465,-0.855l2.156,0.855c0.244,0.081 0.421,0.027 0.529,-0.163l1.75,-3.011c0.108,-0.217 0.081,-0.407 -0.082,-0.57l-1.831,-1.424Z" style="fill-rule:nonzero;"/></svg>'},r={ALIAS:"alias",ALL_SCROLL:"all-scroll",AUTO:"auto",CELL:"cell",COL_RESIZE:"col-resize",CONTEXT_MENU:"context-menu",COPY:"copy",CROSSHAIR:"crosshair",DEFAULT:"default",E_RESIZE:"e-resize",EW_RESIZE:"ew-resize",GRAB:"grab",GRABBING:"grabbing",HELP:"help",MOVE:"move",N_RESIZE:"n-resize",NE_RESIZE:"ne-resize",NESW_RESIZE:"nesw-resize",NS_RESIZE:"ns-resize",NW_RESIZE:"nw-resize",NWSE_RESIZE:"nwse-resize",NO_DROP:"no-drop",NONE:"none",NOT_ALLOWED:"not-allowed",POINTER:"pointer",PROGRESS:"progress",ROW_RESIZE:"row-resize",S_RESIZE:"s-resize",SE_RESIZE:"se-resize",SW_RESIZE:"sw-resize",TEXT:"text",URL:"url(myBall.cur),auto",W_RESIZE:"w-resize",WAIT:"wait",ZOOM_IN:"zoom-in",ZOOM_OUT:"zoom-out",CUSTOM_CROSSHAIR:`url("data:image/svg+xml;base64,${btoa(i.CUSTOM_CROSSHAIR)}") 16 16, auto`},o={CHANGE_LANGUAGE:"changeLanguage"},s={DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DRAG_START:"dragstart",DROP:"drop"},n={BEFORE_BEGIN:"beforebegin",AFTER_BEGIN:"afterbegin",BEFORE_END:"beforeend",AFTER_END:"afterend"},E={KEY_DOWN:"keydown",KEY_UP:"keyup"},w={ADD_TRACK:"addtrack",ENDED:"ended",MUTE:"mute",REMOVE_TRACK:"removetrack",UNMUTE:"unmute"},c={MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout",MOUSE_MOVE:"mousemove",CLICK:"click",DOUBLE_CLICK:"dblclick",CONTEXT_MENU:"contextmenu"},d={ENTER_PICTURE_IN_PICTURE:"enterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictureinpicture",RESIZE:"resize"},T={POINTER_OVER:"pointerover",POINTER_ENTER:"pointerenter",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_RAW_UPDATE:"pointerrawupdate",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",POINTER_OUT:"pointerout",POINTER_LEAVE:"pointerleave",POINTER_CAPTURE:"gotpointercapture",LOST_POINTER_CAPTURE:"lostpointercapture"},m={ARRAY:"object",BOOLEAN:"boolean",CHECK:"check",INLINE_CHECK:"inline-check",RADIO:"radio",INLINE_RADIO:"inline-radio",SELECT:"select",MULTI_SELECT:"multi-select",NUMBER:"number",RANGE:"range",FILE:"file",OBJECT:"object",COLOR:"color",DATE:"date",TEXT:"text"},h={DARK:"dark",LIGHT:"light"},_={TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",TOUCH_CANCEL:"touchcancel"},R={BIGINT:"bigint",BOOLEAN:"boolean",FUNCTION:"function",NULL:"null",NUMBER:"number",STRING:"string",SYMBOL:"symbol",UNDEFINED:"undefined"},g={WHEEL:"wheel"};e.AMPERSAND="&",e.CURSOR=r,e.CUSTOM_EVENTS=o,e.DRAG_EVENTS=s,e.FLOAT_TOLERANCE=1e-6,e.INSERT_ADJACENT_HTML=n,e.KEYBOARD_EVENTS=E,e.MEDIA_STREAM_EVENTS=w,e.MOUSE_EVENTS=c,e.PICTURE_IN_PICTURE_EVENTS=d,e.POINTER_EVENTS=T,e.PX="px",e.STORYBOOK_CONTROL_TYPES=m,e.STRING_EMPTY="",e.SVG=i,e.THEMES=h,e.TOUCH_EVENTS=_,e.TRANSLATION_DELIBERATELY_UNSET=t,e.TYPEOF=R,e.WHEEL_EVENTS=g,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* {@link https://storybook.js.org/docs/api/arg-types | Storybook ArgTypes}
|
|
3
|
+
*/
|
|
4
|
+
export declare const STORYBOOK_CONTROL_TYPES: {
|
|
5
|
+
readonly ARRAY: "object";
|
|
6
|
+
readonly BOOLEAN: "boolean";
|
|
7
|
+
readonly CHECK: "check";
|
|
8
|
+
readonly INLINE_CHECK: "inline-check";
|
|
9
|
+
readonly RADIO: "radio";
|
|
10
|
+
readonly INLINE_RADIO: "inline-radio";
|
|
11
|
+
readonly SELECT: "select";
|
|
12
|
+
readonly MULTI_SELECT: "multi-select";
|
|
13
|
+
readonly NUMBER: "number";
|
|
14
|
+
readonly RANGE: "range";
|
|
15
|
+
readonly FILE: "file";
|
|
16
|
+
readonly OBJECT: "object";
|
|
17
|
+
readonly COLOR: "color";
|
|
18
|
+
readonly DATE: "date";
|
|
19
|
+
readonly TEXT: "text";
|
|
20
|
+
};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export { POINTER_EVENTS } from './constants/events/pointer-events.constant.ts';
|
|
|
19
19
|
export type { PointerEvents } from './types/events/pointer-events.type.ts';
|
|
20
20
|
export { SVG } from './constants/svg.constant.ts';
|
|
21
21
|
export type { Svg } from './types/svg.type.ts';
|
|
22
|
+
export { STORYBOOK_CONTROL_TYPES } from './constants/storybook-arg-types.constant.ts';
|
|
23
|
+
export type { StorybookControlTypes } from './types/storybook-arg-types.type.ts';
|
|
22
24
|
export { THEMES } from './constants/themes.contant.ts';
|
|
23
25
|
export type { Themes } from './types/themes.type.ts';
|
|
24
26
|
export { TOUCH_EVENTS } from './constants/events/touch-events.constant.ts';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { STORYBOOK_CONTROL_TYPES } from '../constants/storybook-arg-types.constant';
|
|
2
|
+
/**
|
|
3
|
+
* Union type of all values in the {@link STORYBOOK_CONTROL_TYPES} constant.
|
|
4
|
+
*/
|
|
5
|
+
export type StorybookControlTypes = (typeof STORYBOOK_CONTROL_TYPES)[keyof typeof STORYBOOK_CONTROL_TYPES];
|
package/package.json
CHANGED