@albi_scando/as-const-lib 1.0.0 → 1.1.0

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.
@@ -1,4 +1,4 @@
1
- const l = "&", i = 1e-6, t = "px", r = "", s = "deliberately-not-set", e = {
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
- }, d = {
84
+ }, E = {
85
85
  KEY_DOWN: "keydown",
86
86
  KEY_UP: "keyup"
87
- }, E = {
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
- }, p = {
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
- }, m = {
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
- }, v = {
137
+ }, x = {
122
138
  TOUCH_START: "touchstart",
123
139
  TOUCH_END: "touchend",
124
140
  TOUCH_MOVE: "touchmove",
125
141
  TOUCH_CANCEL: "touchcancel"
126
- }, x = {
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
- i as FLOAT_TOLERANCE,
159
+ t as FLOAT_TOLERANCE,
144
160
  c as INSERT_ADJACENT_HTML,
145
- d as KEYBOARD_EVENTS,
146
- E as MEDIA_STREAM_EVENTS,
147
- p as MOUSE_EVENTS,
148
- m as PICTURE_IN_PICTURE_EVENTS,
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
- t as PX,
166
+ i as PX,
167
+ g as STORYBOOK_CONTROL_TYPES,
151
168
  r as STRING_EMPTY,
152
169
  e as SVG,
153
- g as THEMES,
154
- v as TOUCH_EVENTS,
170
+ v as THEMES,
171
+ x as TOUCH_EVENTS,
155
172
  s as TRANSLATION_DELIBERATELY_UNSET,
156
- x as TYPEOF,
157
- _ as WHEEL_EVENTS
173
+ _ as TYPEOF,
174
+ R as WHEEL_EVENTS
158
175
  };
@@ -1,4 +1,4 @@
1
- (function(e,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(e=typeof globalThis<"u"?globalThis:e||self,l(e["as-design-system-lib"]={}))})(this,(function(e){"use strict";const t="deliberately-not-set",i={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>',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>',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>',ARROW_DOWN:'<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="_068-arrow-down" serif:id="068-arrow-down" d="M11.988,12.815l4.822,-4.822l1.547,1.547l-4.822,4.822l-0,-0l-1.547,1.547l-0,-0l-0,-0l-1.547,-1.547l-0,-0l-4.822,-4.822l1.547,-1.547l4.822,4.822Z"/></svg>',ARROW_UP:'<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="_069-arrow-up" serif:id="069-arrow-up" d="M11.93,10.994l4.822,4.822l1.547,-1.547l-4.822,-4.822l0,-0l-1.547,-1.547l0,-0l0,-0l-1.547,1.547l0,-0l-4.822,4.822l1.547,1.547l4.822,-4.822Z"/></svg>',BIN:'<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="_102-bin" serif:id="102-bin" d="M18.612,4.44l-3.284,-0l-0.976,-0.932l-4.704,0l-0.976,0.932l-3.284,-0l0,1.908l13.224,-0l-0,-1.908Zm-12.292,14.199c0,0.533 0.185,0.984 0.555,1.354c0.37,0.369 0.821,0.554 1.353,0.554l7.544,0c0.532,0 0.983,-0.185 1.353,-0.554c0.37,-0.37 0.555,-0.821 0.555,-1.354l-0,-11.359l-11.36,-0l0,11.359Z" style="fill-rule:nonzero;"/></svg>',CHECKED:'<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="_246-checked" serif:id="246-checked" d="M9.937,18.439l-5.92,-6.421l2.508,-2.508l3.412,3.709l7.512,-7.595l2.621,2.682l-10.133,10.133Z" style="fill-rule:nonzero;"/></svg>',CLOSE:'<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="_206-close" serif:id="206-close" d="M21.164,4.583l-1.846,-1.846l-7.324,7.323l-7.324,-7.323l-1.846,1.846l7.324,7.324l-7.324,7.324l1.846,1.846l7.324,-7.324l7.324,7.324l1.846,-1.846l-7.324,-7.324l7.324,-7.324Z" style="fill-rule:nonzero;"/></svg>',CLOSE_OUTLINED:'<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="_222-close-outlined" serif:id="222-close-outlined" d="M11.773,3.406c3.929,0.038 7.543,3.136 8.293,7.045c1.026,5.353 -3.898,11.104 -9.919,9.982c-3.668,-0.683 -6.408,-3.671 -6.923,-7.189c-0.697,-4.754 3.171,-9.722 8.328,-9.836c0.074,-0.001 0.147,-0.002 0.221,-0.002Zm-0.101,1.497c-3.252,0.031 -6.299,2.528 -6.916,5.747c-0.854,4.449 3.333,9.296 8.39,8.286c2.403,-0.479 5.149,-3.126 5.52,-6.041c0.502,-3.95 -2.709,-8.006 -6.994,-7.992Zm0.041,6.102l3.078,-3.078l1.127,1.128l-3.078,3.078l3.078,3.077l-1.127,1.128l-3.078,-3.078l-3.078,3.078l-1.127,-1.128l3.078,-3.077l-3.078,-3.078l1.127,-1.128l3.078,3.078Z" style="fill-rule:nonzero;"/></svg>',CUSTOM_CROSSHAIR:`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
1
+ (function(e,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(e=typeof globalThis<"u"?globalThis:e||self,l(e["as-const-lib"]={}))})(this,(function(e){"use strict";const t="deliberately-not-set",i={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>',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>',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>',ARROW_DOWN:'<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="_068-arrow-down" serif:id="068-arrow-down" d="M11.988,12.815l4.822,-4.822l1.547,1.547l-4.822,4.822l-0,-0l-1.547,1.547l-0,-0l-0,-0l-1.547,-1.547l-0,-0l-4.822,-4.822l1.547,-1.547l4.822,4.822Z"/></svg>',ARROW_UP:'<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="_069-arrow-up" serif:id="069-arrow-up" d="M11.93,10.994l4.822,4.822l1.547,-1.547l-4.822,-4.822l0,-0l-1.547,-1.547l0,-0l0,-0l-1.547,1.547l0,-0l-4.822,4.822l1.547,1.547l4.822,-4.822Z"/></svg>',BIN:'<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="_102-bin" serif:id="102-bin" d="M18.612,4.44l-3.284,-0l-0.976,-0.932l-4.704,0l-0.976,0.932l-3.284,-0l0,1.908l13.224,-0l-0,-1.908Zm-12.292,14.199c0,0.533 0.185,0.984 0.555,1.354c0.37,0.369 0.821,0.554 1.353,0.554l7.544,0c0.532,0 0.983,-0.185 1.353,-0.554c0.37,-0.37 0.555,-0.821 0.555,-1.354l-0,-11.359l-11.36,-0l0,11.359Z" style="fill-rule:nonzero;"/></svg>',CHECKED:'<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="_246-checked" serif:id="246-checked" d="M9.937,18.439l-5.92,-6.421l2.508,-2.508l3.412,3.709l7.512,-7.595l2.621,2.682l-10.133,10.133Z" style="fill-rule:nonzero;"/></svg>',CLOSE:'<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="_206-close" serif:id="206-close" d="M21.164,4.583l-1.846,-1.846l-7.324,7.323l-7.324,-7.323l-1.846,1.846l7.324,7.324l-7.324,7.324l1.846,1.846l7.324,-7.324l7.324,7.324l1.846,-1.846l-7.324,-7.324l7.324,-7.324Z" style="fill-rule:nonzero;"/></svg>',CLOSE_OUTLINED:'<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="_222-close-outlined" serif:id="222-close-outlined" d="M11.773,3.406c3.929,0.038 7.543,3.136 8.293,7.045c1.026,5.353 -3.898,11.104 -9.919,9.982c-3.668,-0.683 -6.408,-3.671 -6.923,-7.189c-0.697,-4.754 3.171,-9.722 8.328,-9.836c0.074,-0.001 0.147,-0.002 0.221,-0.002Zm-0.101,1.497c-3.252,0.031 -6.299,2.528 -6.916,5.747c-0.854,4.449 3.333,9.296 8.39,8.286c2.403,-0.479 5.149,-3.126 5.52,-6.041c0.502,-3.95 -2.709,-8.006 -6.994,-7.992Zm0.041,6.102l3.078,-3.078l1.127,1.128l-3.078,3.078l3.078,3.077l-1.127,1.128l-3.078,-3.078l-3.078,3.078l-1.127,-1.128l3.078,-3.077l-3.078,-3.078l1.127,-1.128l3.078,3.078Z" style="fill-rule:nonzero;"/></svg>',CUSTOM_CROSSHAIR:`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
2
2
  <!-- White border (underneath) -->
3
3
  <line x1="16" y1="2" x2="16" y2="30" stroke="white" stroke-width="5"/>
4
4
  <line x1="2" y1="16" x2="30" y2="16" stroke="white" stroke-width="5"/>
@@ -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`},s={CHANGE_LANGUAGE:"changeLanguage"},n={DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DRAG_START:"dragstart",DROP:"drop"},o={BEFORE_BEGIN:"beforebegin",AFTER_BEGIN:"afterbegin",BEFORE_END:"beforeend",AFTER_END:"afterend"},w={KEY_DOWN:"keydown",KEY_UP:"keyup"},E={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"},m={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"},T={DARK:"dark",LIGHT:"light"},h={TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",TOUCH_CANCEL:"touchcancel"},g={BIGINT:"bigint",BOOLEAN:"boolean",FUNCTION:"function",NULL:"null",NUMBER:"number",STRING:"string",SYMBOL:"symbol",UNDEFINED:"undefined"},_={WHEEL:"wheel"};e.AMPERSAND="&",e.CURSOR=r,e.CUSTOM_EVENTS=s,e.DRAG_EVENTS=n,e.FLOAT_TOLERANCE=1e-6,e.INSERT_ADJACENT_HTML=o,e.KEYBOARD_EVENTS=w,e.MEDIA_STREAM_EVENTS=E,e.MOUSE_EVENTS=c,e.PICTURE_IN_PICTURE_EVENTS=d,e.POINTER_EVENTS=m,e.PX="px",e.STRING_EMPTY="",e.SVG=i,e.THEMES=T,e.TOUCH_EVENTS=h,e.TRANSLATION_DELIBERATELY_UNSET=t,e.TYPEOF=g,e.WHEEL_EVENTS=_,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
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
+ };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@albi_scando/as-const-lib",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A TypeScript library providing strongly typed constants and utility types for safer, more predictable code.",
5
5
  "type": "module",
6
6
  "files": [