@bynder/compact-view 5.2.2 → 5.2.4

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 (241) hide show
  1. package/AccessToken2.js +1 -1
  2. package/ActiveFilters.js +49 -50
  3. package/AddMedia.js +19 -18
  4. package/Advanced.js +13 -13
  5. package/App.js +60 -59
  6. package/Arrow.js +1 -1
  7. package/AssetFilter.js +38 -38
  8. package/AssetItem.js +10 -17
  9. package/AssetList.js +5 -5
  10. package/AssetTypeItem.js +21 -21
  11. package/AssetsView.js +13 -13
  12. package/Axios2.js +82 -76
  13. package/AxiosError.js +36 -35
  14. package/ButtonAction.js +1 -1
  15. package/CanceledError.js +15 -8
  16. package/Card.js +1 -1
  17. package/Chip.js +1 -1
  18. package/CollectionCard.js +22 -22
  19. package/CollectionItem.js +9 -9
  20. package/CollectionList.js +5 -5
  21. package/CollectionView.js +11 -11
  22. package/ColorPicker.js +1 -1
  23. package/ColorPickerSolid.js +3 -3
  24. package/ColorPickerWithOpacity.js +3 -3
  25. package/Component.js +158 -0
  26. package/Component2.js +4 -0
  27. package/ConfigContext.js +7 -8
  28. package/Container.js +1 -1
  29. package/ContextAction.js +1 -1
  30. package/ControlGroup.js +6 -6
  31. package/Dat.js +33 -32
  32. package/DatDropdownItem.js +1 -1
  33. package/DesignSystemProvider.js +7 -7
  34. package/DirectionSelect.js +11 -10
  35. package/DomainInput.js +19 -11
  36. package/Draggable.js +337 -0
  37. package/Draggable2.js +4 -0
  38. package/DraggableCore.js +312 -0
  39. package/DraggableCore2.js +4 -0
  40. package/Dropdown.js +37 -37
  41. package/Dropdown2.js +1 -1
  42. package/DropdownListItem.js +1 -1
  43. package/FieldSelect.js +19 -17
  44. package/FileSelector.js +38 -37
  45. package/FontPicker.js +1 -1
  46. package/Form.js +1 -1
  47. package/Header.js +5 -4
  48. package/HttpStatusCode.js +7 -1
  49. package/InfiniteScroll.js +1 -1
  50. package/InlineBanner.js +1 -1
  51. package/Input.js +1 -1
  52. package/InterceptorManager.js +2 -1
  53. package/Item.js +8 -8
  54. package/Item4.js +2 -2
  55. package/LeftArrow.js +1 -1
  56. package/ListItem2.js +1 -1
  57. package/ModalBase.js +15 -15
  58. package/NoResults.js +1 -1
  59. package/Option_new.js +36 -29
  60. package/ReactPropTypesSecret.js +10 -0
  61. package/RightArrow.js +1 -1
  62. package/SearchInput.js +1 -1
  63. package/SearchInput2.js +1 -1
  64. package/SelectionFooter.js +41 -31
  65. package/Shield.js +2 -2
  66. package/Smartfilters_new.js +107 -98
  67. package/StatefulAssetList.js +50 -50
  68. package/StoreInitializer.js +32 -16
  69. package/SwitchNLS.js +1 -1
  70. package/TagItem.js +15 -15
  71. package/Tags.js +1 -1
  72. package/Toolbar.js +23 -20
  73. package/Tooltip2.js +1 -1
  74. package/ViewSwitch.js +17 -15
  75. package/_commonjsHelpers.js +28 -3
  76. package/adapters.js +54 -42
  77. package/api/filterAssets.d.ts +1 -1
  78. package/api/getAssets.d.ts +1 -1
  79. package/api/getFilters.d.ts +1 -1
  80. package/api/rest/index.d.ts +1 -1
  81. package/api/rest/types.d.ts +1 -1
  82. package/api2.js +1 -1
  83. package/asset.type.js +1 -1
  84. package/axios.js +1 -1
  85. package/bodyScrollLock.esm.js +68 -0
  86. package/buildURL.js +13 -15
  87. package/checkGlobals.js +1 -1
  88. package/cjs.js +7 -0
  89. package/cjs2.js +15 -0
  90. package/cjs3.js +4 -0
  91. package/clsx.m.js +6 -0
  92. package/clsx.m2.js +15 -0
  93. package/combineMetaproperties.js +3 -1
  94. package/composeSignals.js +1 -1
  95. package/cookieStore.js +1 -1
  96. package/cookies.js +13 -11
  97. package/currentScopes.js +1 -1
  98. package/data.js +1 -1
  99. package/devUtils.js +1 -1
  100. package/dispatchRequest.js +5 -5
  101. package/domFns.js +151 -0
  102. package/domFns2.js +4 -0
  103. package/factoryWithThrowingShims.js +52 -0
  104. package/fetch2.js +156 -128
  105. package/filter/AssetFilterContext.d.ts +3 -3
  106. package/getPrefix.js +35 -0
  107. package/getPrefix2.js +4 -0
  108. package/goober.modern.js +75 -0
  109. package/handlers.js +1 -1
  110. package/iconBase.js +56 -0
  111. package/iconContext.js +12 -0
  112. package/iconsManifest.js +222 -0
  113. package/index-esm.js +1 -4
  114. package/index.browser.js +1 -1
  115. package/index.m.js +9 -0
  116. package/index.m2.js +17 -0
  117. package/index10.js +1 -1
  118. package/index11.js +181 -15
  119. package/index112.js +1 -1
  120. package/index12.js +313 -36
  121. package/index13.js +5 -2430
  122. package/index14.js +3 -557
  123. package/index15.js +15 -55
  124. package/index16.js +3 -2
  125. package/index17.js +3 -87
  126. package/index18.js +36 -7
  127. package/index19.js +3 -60
  128. package/index20.js +2429 -12
  129. package/index21.js +557 -10
  130. package/index22.js +1 -1
  131. package/index23.js +119 -6
  132. package/index24.js +39 -7
  133. package/index25.js +2 -5
  134. package/index26.js +86 -9
  135. package/index27.js +55 -8
  136. package/index28.js +6 -636
  137. package/index29.js +8692 -74
  138. package/index3.js +1684 -5
  139. package/index30.js +2 -5
  140. package/index31.js +4 -20
  141. package/index310.js +2 -0
  142. package/index32.js +11 -2
  143. package/index33.js +5083 -4
  144. package/index34.js +2 -18
  145. package/index35.js +59 -5
  146. package/index36.js +2 -2
  147. package/index37.js +13 -11
  148. package/index38.js +46 -10
  149. package/index39.js +6 -12
  150. package/index4.js +5 -1684
  151. package/index40.js +8 -11
  152. package/index41.js +26 -18
  153. package/index42.js +2 -64
  154. package/index43.js +63 -5
  155. package/index44.js +9 -55
  156. package/index45.js +7 -67
  157. package/index46.js +8 -31
  158. package/index47.js +5 -11
  159. package/index48.js +10 -121
  160. package/index49.js +9 -86
  161. package/index5.js +215 -23
  162. package/index50.js +636 -7
  163. package/index51.js +74 -11
  164. package/index52.js +4 -13
  165. package/index53.js +19 -13
  166. package/index54.js +4 -6
  167. package/index55.js +18 -7
  168. package/index56.js +5 -14
  169. package/index57.js +10 -28
  170. package/index58.js +10 -15
  171. package/index59.js +15 -0
  172. package/index6.js +250 -299
  173. package/index60.js +13 -0
  174. package/index61.js +21 -0
  175. package/index62.js +8 -0
  176. package/index63.js +57 -0
  177. package/index64.js +4 -0
  178. package/index65.js +69 -0
  179. package/index66.js +33 -0
  180. package/index67.js +13 -0
  181. package/index68.js +123 -0
  182. package/index69.js +88 -0
  183. package/index7.js +25 -2
  184. package/index70.js +10 -0
  185. package/index71.js +13 -0
  186. package/index72.js +13 -225
  187. package/index73.js +16 -0
  188. package/index74.js +9 -0
  189. package/index75.js +228 -0
  190. package/index76.js +9 -0
  191. package/index77.js +17 -0
  192. package/index78.js +31 -0
  193. package/index79.js +18 -0
  194. package/index8.js +1537 -1536
  195. package/index9.js +1 -1
  196. package/isAbsoluteURL.js +1 -1
  197. package/isURLSameOrigin.js +1 -1
  198. package/localization.js +15 -15
  199. package/log.js +14 -0
  200. package/log2.js +4 -0
  201. package/matchRequestUrl.js +1 -1
  202. package/mergeConfig.js +37 -32
  203. package/notify.js +2 -2
  204. package/package.json +1 -1
  205. package/positionFns.js +101 -0
  206. package/positionFns2.js +4 -0
  207. package/react-laag.esm.js +957 -0
  208. package/react.js +8 -8
  209. package/react2.js +9 -9
  210. package/resolveConfig.js +23 -23
  211. package/select/add-media/AddMedia.d.ts +3 -1
  212. package/select/current-selection/SelectedItems.d.ts +1 -1
  213. package/shims.js +29 -0
  214. package/shims2.js +4 -0
  215. package/store/StoreInitializer.d.ts +5 -1
  216. package/store/useAssetFilterStore.d.ts +55 -0
  217. package/store/useSelectionStore.d.ts +47 -0
  218. package/styled-components.browser.esm.js +2 -2
  219. package/throttle.js +1 -1
  220. package/toURLEncodedForm.js +11 -10
  221. package/tokenExpirationHelper.js +1 -1
  222. package/transformData.js +1 -1
  223. package/transitional.js +4 -3
  224. package/useAssetFilterStore.js +152 -0
  225. package/useDatStore.js +1 -1
  226. package/useEffectEvent.js +7 -7
  227. package/useFonts.js +1 -1
  228. package/useOrderingStore.js +1 -1
  229. package/useRouterStore.js +1 -1
  230. package/useSearchStore.js +1 -1
  231. package/useSelectionStore.js +131 -0
  232. package/useSimilaritySearchStore.js +1 -1
  233. package/useTranslate.js +1 -1
  234. package/utils/combineMetaproperties.d.ts +2 -0
  235. package/utils6.js +160 -118
  236. package/xhr.js +47 -46
  237. package/AssetFilterContext.js +0 -161
  238. package/Middleware.js +0 -49
  239. package/SelectionContext.js +0 -143
  240. package/middleware2.js +0 -177
  241. package/select/SelectionContext.d.ts +0 -30
package/fetch2.js CHANGED
@@ -1,141 +1,169 @@
1
- import D from "./index18.js";
2
- import r from "./utils6.js";
3
- import l from "./AxiosError.js";
4
- import H from "./composeSignals.js";
5
- import { trackStream as P } from "./trackStream.js";
6
- import K from "./AxiosHeaders.js";
7
- import { progressEventDecorator as A, progressEventReducer as O, asyncDecorator as _ } from "./progressEventReducer.js";
8
- import z from "./resolveConfig.js";
9
- import j from "./settle.js";
10
- const w = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", F = w && typeof ReadableStream == "function", I = w && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), N = (e, ...t) => {
1
+ import K from "./index28.js";
2
+ import t from "./utils6.js";
3
+ import b from "./AxiosError.js";
4
+ import ee from "./composeSignals.js";
5
+ import { trackStream as z } from "./trackStream.js";
6
+ import te from "./AxiosHeaders.js";
7
+ import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./progressEventReducer.js";
8
+ import se from "./resolveConfig.js";
9
+ import re from "./settle.js";
10
+ const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o }) => ({
11
+ Request: n,
12
+ Response: o
13
+ }))(t.global), {
14
+ ReadableStream: V,
15
+ TextEncoder: W
16
+ } = t.global, Z = (n, ...o) => {
11
17
  try {
12
- return !!e(...t);
18
+ return !!n(...o);
13
19
  } catch {
14
20
  return !1;
15
21
  }
16
- }, J = F && N(() => {
17
- let e = !1;
18
- const t = new Request(D.origin, {
19
- body: new ReadableStream(),
20
- method: "POST",
21
- get duplex() {
22
- return e = !0, "half";
23
- }
24
- }).headers.has("Content-Type");
25
- return e && !t;
26
- }), B = 64 * 1024, T = F && N(() => r.isReadableStream(new Response("").body)), g = {
27
- stream: T && ((e) => e.body)
28
- };
29
- w && ((e) => {
30
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
31
- !g[t] && (g[t] = r.isFunction(e[t]) ? (s) => s[t]() : (s, u) => {
32
- throw new l(`Response type '${t}' is not supported`, l.ERR_NOT_SUPPORT, u);
33
- });
34
- });
35
- })(new Response());
36
- const V = async (e) => {
37
- if (e == null)
38
- return 0;
39
- if (r.isBlob(e))
40
- return e.size;
41
- if (r.isSpecCompliantForm(e))
42
- return (await new Request(D.origin, {
22
+ }, oe = (n) => {
23
+ n = t.merge.call({
24
+ skipUndefined: !0
25
+ }, ne, n);
26
+ const { fetch: o, Request: a, Response: y } = n, g = o ? P(o) : typeof fetch == "function", f = P(a), F = P(y);
27
+ if (!g)
28
+ return !1;
29
+ const w = g && P(V), R = g && (typeof W == "function" ? /* @__PURE__ */ ((e) => (s) => e.encode(s))(new W()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), d = f && w && Z(() => {
30
+ let e = !1;
31
+ const s = new a(K.origin, {
32
+ body: new V(),
43
33
  method: "POST",
44
- body: e
45
- }).arrayBuffer()).byteLength;
46
- if (r.isArrayBufferView(e) || r.isArrayBuffer(e))
47
- return e.byteLength;
48
- if (r.isURLSearchParams(e) && (e = e + ""), r.isString(e))
49
- return (await I(e)).byteLength;
50
- }, W = async (e, t) => {
51
- const s = r.toFiniteNumber(e.getContentLength());
52
- return s ?? V(t);
53
- }, re = w && (async (e) => {
54
- let {
55
- url: t,
56
- method: s,
57
- data: u,
58
- signal: U,
59
- cancelToken: x,
60
- timeout: v,
61
- onDownloadProgress: R,
62
- onUploadProgress: b,
63
- responseType: n,
64
- headers: y,
65
- withCredentials: m = "same-origin",
66
- fetchOptions: E
67
- } = z(e);
68
- n = n ? (n + "").toLowerCase() : "text";
69
- let d = H([U, x && x.toAbortSignal()], v), f;
70
- const c = d && d.unsubscribe && (() => {
71
- d.unsubscribe();
34
+ get duplex() {
35
+ return e = !0, "half";
36
+ }
37
+ }).headers.has("Content-Type");
38
+ return e && !s;
39
+ }), h = F && w && Z(() => t.isReadableStream(new y("").body)), x = {
40
+ stream: h && ((e) => e.body)
41
+ };
42
+ g && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
43
+ !x[e] && (x[e] = (s, i) => {
44
+ let c = s && s[e];
45
+ if (c)
46
+ return c.call(s);
47
+ throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, i);
48
+ });
72
49
  });
73
- let C;
74
- try {
75
- if (b && J && s !== "get" && s !== "head" && (C = await W(y, u)) !== 0) {
76
- let i = new Request(t, {
50
+ const $ = async (e) => {
51
+ if (e == null)
52
+ return 0;
53
+ if (t.isBlob(e))
54
+ return e.size;
55
+ if (t.isSpecCompliantForm(e))
56
+ return (await new a(K.origin, {
77
57
  method: "POST",
78
- body: u,
79
- duplex: "half"
80
- }), p;
81
- if (r.isFormData(u) && (p = i.headers.get("content-type")) && y.setContentType(p), i.body) {
82
- const [S, h] = A(
83
- C,
84
- O(_(b))
58
+ body: e
59
+ }).arrayBuffer()).byteLength;
60
+ if (t.isArrayBufferView(e) || t.isArrayBuffer(e))
61
+ return e.byteLength;
62
+ if (t.isURLSearchParams(e) && (e = e + ""), t.isString(e))
63
+ return (await R(e)).byteLength;
64
+ }, G = async (e, s) => {
65
+ const i = t.toFiniteNumber(e.getContentLength());
66
+ return i ?? $(s);
67
+ };
68
+ return async (e) => {
69
+ let {
70
+ url: s,
71
+ method: i,
72
+ data: c,
73
+ signal: Q,
74
+ cancelToken: _,
75
+ timeout: X,
76
+ onDownloadProgress: O,
77
+ onUploadProgress: B,
78
+ responseType: l,
79
+ headers: q,
80
+ withCredentials: C = "same-origin",
81
+ fetchOptions: U
82
+ } = se(e), v = o || fetch;
83
+ l = l ? (l + "").toLowerCase() : "text";
84
+ let E = ee([Q, _ && _.toAbortSignal()], X), T = null;
85
+ const m = E && E.unsubscribe && (() => {
86
+ E.unsubscribe();
87
+ });
88
+ let D;
89
+ try {
90
+ if (B && d && i !== "get" && i !== "head" && (D = await G(q, c)) !== 0) {
91
+ let p = new a(s, {
92
+ method: "POST",
93
+ body: c,
94
+ duplex: "half"
95
+ }), S;
96
+ if (t.isFormData(c) && (S = p.headers.get("content-type")) && q.setContentType(S), p.body) {
97
+ const [A, L] = I(
98
+ D,
99
+ M(j(B))
100
+ );
101
+ c = z(p.body, J, A, L);
102
+ }
103
+ }
104
+ t.isString(C) || (C = C ? "include" : "omit");
105
+ const r = f && "credentials" in a.prototype, N = {
106
+ ...U,
107
+ signal: E,
108
+ method: i.toUpperCase(),
109
+ headers: q.normalize().toJSON(),
110
+ body: c,
111
+ duplex: "half",
112
+ credentials: r ? C : void 0
113
+ };
114
+ T = f && new a(s, N);
115
+ let u = await (f ? v(T, U) : v(s, N));
116
+ const k = h && (l === "stream" || l === "response");
117
+ if (h && (O || k && m)) {
118
+ const p = {};
119
+ ["status", "statusText", "headers"].forEach((H) => {
120
+ p[H] = u[H];
121
+ });
122
+ const S = t.toFiniteNumber(u.headers.get("content-length")), [A, L] = O && I(
123
+ S,
124
+ M(j(O), !0)
125
+ ) || [];
126
+ u = new y(
127
+ z(u.body, J, A, () => {
128
+ L && L(), m && m();
129
+ }),
130
+ p
85
131
  );
86
- u = P(i.body, B, S, h);
87
132
  }
88
- }
89
- r.isString(m) || (m = m ? "include" : "omit");
90
- const o = "credentials" in Request.prototype;
91
- f = new Request(t, {
92
- ...E,
93
- signal: d,
94
- method: s.toUpperCase(),
95
- headers: y.normalize().toJSON(),
96
- body: u,
97
- duplex: "half",
98
- credentials: o ? m : void 0
99
- });
100
- let a = await fetch(f, E);
101
- const q = T && (n === "stream" || n === "response");
102
- if (T && (R || q && c)) {
103
- const i = {};
104
- ["status", "statusText", "headers"].forEach((L) => {
105
- i[L] = a[L];
133
+ l = l || "text";
134
+ let Y = await x[t.findKey(x, l) || "text"](u, e);
135
+ return !k && m && m(), await new Promise((p, S) => {
136
+ re(p, S, {
137
+ data: Y,
138
+ headers: te.from(u.headers),
139
+ status: u.status,
140
+ statusText: u.statusText,
141
+ config: e,
142
+ request: T
143
+ });
106
144
  });
107
- const p = r.toFiniteNumber(a.headers.get("content-length")), [S, h] = R && A(
108
- p,
109
- O(_(R), !0)
110
- ) || [];
111
- a = new Response(
112
- P(a.body, B, S, () => {
113
- h && h(), c && c();
114
- }),
115
- i
116
- );
145
+ } catch (r) {
146
+ throw m && m(), r && r.name === "TypeError" && /Load failed|fetch/i.test(r.message) ? Object.assign(
147
+ new b("Network Error", b.ERR_NETWORK, e, T, r && r.response),
148
+ {
149
+ cause: r.cause || r
150
+ }
151
+ ) : b.from(r, r && r.code, e, T, r && r.response);
117
152
  }
118
- n = n || "text";
119
- let k = await g[r.findKey(g, n) || "text"](a, e);
120
- return !q && c && c(), await new Promise((i, p) => {
121
- j(i, p, {
122
- data: k,
123
- headers: K.from(a.headers),
124
- status: a.status,
125
- statusText: a.statusText,
126
- config: e,
127
- request: f
128
- });
129
- });
130
- } catch (o) {
131
- throw c && c(), o && o.name === "TypeError" && /Load failed|fetch/i.test(o.message) ? Object.assign(
132
- new l("Network Error", l.ERR_NETWORK, e, f),
133
- {
134
- cause: o.cause || o
135
- }
136
- ) : l.from(o, o && o.code, e, f);
137
- }
138
- });
153
+ };
154
+ }, ae = /* @__PURE__ */ new Map(), ie = (n) => {
155
+ let o = n && n.env || {};
156
+ const { fetch: a, Request: y, Response: g } = o, f = [
157
+ y,
158
+ g,
159
+ a
160
+ ];
161
+ let F = f.length, w = F, R, d, h = ae;
162
+ for (; w--; )
163
+ R = f[w], d = h.get(R), d === void 0 && h.set(R, d = w ? /* @__PURE__ */ new Map() : oe(o)), h = d;
164
+ return d;
165
+ };
166
+ ie();
139
167
  export {
140
- re as default
168
+ ie as getFetch
141
169
  };
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { AssetType } from '../views/asset/asset.type';
3
3
  import { MetapropertyOptionType as MetapropertyOption } from './filters/metaproperty/MetapropertyOption';
4
4
  import { AssetFilterJson } from './assetFilter.type';
5
- import { AutcompleteResponseOption, SmartfilterOption, selectedSmartfilterOptionsType, AssetCountType } from '../api/rest/types';
5
+ import { AutocompleteResponseOption, SmartfilterOption, selectedSmartfilterOptionsType, AssetCountType } from '../api/rest/types';
6
6
  export interface Filter {
7
7
  assetTypes: AssetType[];
8
8
  metaproperties: MetapropertyOption[];
@@ -13,7 +13,7 @@ export interface Filter {
13
13
  selectedSmartfilterOptions?: selectedSmartfilterOptionsType;
14
14
  existingFilters?: Record<string, Record<string, number>> | null;
15
15
  }
16
- interface Actions {
16
+ export interface Actions {
17
17
  addAssetType: (assetType: AssetType) => void;
18
18
  removeAssetType: (assetType: AssetType) => void;
19
19
  addMetaproperty: (metaproperty: MetapropertyOption) => void;
@@ -23,7 +23,7 @@ interface Actions {
23
23
  removeTag: (tag: string) => void;
24
24
  clear: () => void;
25
25
  setDropdownState: (active: boolean) => void;
26
- selectSmartfilterOption: (metapropertyName: string, option: SmartfilterOption | AutcompleteResponseOption, isMultifilter?: boolean) => void;
26
+ selectSmartfilterOption: (metapropertyName: string, option: SmartfilterOption | AutocompleteResponseOption, isMultifilter?: boolean) => void;
27
27
  removeSmartfilterOption: (metapropertyName: string, optionId: string) => void;
28
28
  setActiveFiltersState: (count: AssetCountType) => void;
29
29
  }
package/getPrefix.js ADDED
@@ -0,0 +1,35 @@
1
+ import { __exports as n } from "./getPrefix2.js";
2
+ var l;
3
+ function c() {
4
+ if (l) return n;
5
+ l = 1, Object.defineProperty(n, "__esModule", {
6
+ value: !0
7
+ }), n.browserPrefixToKey = f, n.browserPrefixToStyle = a, n.default = void 0, n.getPrefix = u;
8
+ const i = ["Moz", "Webkit", "O", "ms"];
9
+ function u() {
10
+ var e;
11
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
12
+ if (typeof window > "u") return "";
13
+ const o = (e = window.document) === null || e === void 0 || (e = e.documentElement) === null || e === void 0 ? void 0 : e.style;
14
+ if (!o || t in o) return "";
15
+ for (let r = 0; r < i.length; r++)
16
+ if (f(t, i[r]) in o) return i[r];
17
+ return "";
18
+ }
19
+ function f(e, t) {
20
+ return t ? "".concat(t).concat(s(e)) : e;
21
+ }
22
+ function a(e, t) {
23
+ return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
24
+ }
25
+ function s(e) {
26
+ let t = "", o = !0;
27
+ for (let r = 0; r < e.length; r++)
28
+ o ? (t += e[r].toUpperCase(), o = !1) : e[r] === "-" ? o = !0 : t += e[r];
29
+ return t;
30
+ }
31
+ return n.default = u(), n;
32
+ }
33
+ export {
34
+ c as __require
35
+ };
package/getPrefix2.js ADDED
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,75 @@
1
+ let _ = { data: "" }, k = (e) => {
2
+ if (typeof window == "object") {
3
+ let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
4
+ return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
5
+ }
6
+ return e || _;
7
+ }, N = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, O = /\/\*[^]*?\*\/| +/g, w = /\n+/g, d = (e, t) => {
8
+ let n = "", i = "", o = "";
9
+ for (let r in e) {
10
+ let l = e[r];
11
+ r[0] == "@" ? r[1] == "i" ? n = r + " " + l + ";" : i += r[1] == "f" ? d(l, r) : r + "{" + d(l, r[1] == "k" ? "" : t) + "}" : typeof l == "object" ? i += d(l, t ? t.replace(/([^,])+/g, (a) => r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (s) => /&/.test(s) ? s.replace(/&/g, a) : a ? a + " " + s : s)) : r) : l != null && (r = /^--/.test(r) ? r : r.replace(/[A-Z]/g, "-$&").toLowerCase(), o += d.p ? d.p(r, l) : r + ":" + l + ";");
12
+ }
13
+ return n + (t && o ? t + "{" + o + "}" : o) + i;
14
+ }, p = {}, y = (e) => {
15
+ if (typeof e == "object") {
16
+ let t = "";
17
+ for (let n in e) t += n + y(e[n]);
18
+ return t;
19
+ }
20
+ return e;
21
+ }, C = (e, t, n, i, o) => {
22
+ let r = y(e), l = p[r] || (p[r] = ((s) => {
23
+ let c = 0, u = 11;
24
+ for (; c < s.length; ) u = 101 * u + s.charCodeAt(c++) >>> 0;
25
+ return "go" + u;
26
+ })(r));
27
+ if (!p[l]) {
28
+ let s = r !== e ? e : ((c) => {
29
+ let u, f, g = [{}];
30
+ for (; u = N.exec(c.replace(O, "")); ) u[4] ? g.shift() : u[3] ? (f = u[3].replace(w, " ").trim(), g.unshift(g[0][f] = g[0][f] || {})) : g[0][u[1]] = u[2].replace(w, " ").trim();
31
+ return g[0];
32
+ })(e);
33
+ p[l] = d(o ? { ["@keyframes " + l]: s } : s, n ? "" : "." + l);
34
+ }
35
+ let a = n && p.g ? p.g : null;
36
+ return n && (p.g = p[l]), ((s, c, u, f) => {
37
+ f ? c.data = c.data.replace(f, s) : c.data.indexOf(s) === -1 && (c.data = u ? s + c.data : c.data + s);
38
+ })(p[l], t, i, a), l;
39
+ }, F = (e, t, n) => e.reduce((i, o, r) => {
40
+ let l = t[r];
41
+ if (l && l.call) {
42
+ let a = l(n), s = a && a.props && a.props.className || /^go/.test(a) && a;
43
+ l = s ? "." + s : a && typeof a == "object" ? a.props ? "" : d(a, "") : a === !1 ? "" : a;
44
+ }
45
+ return i + o + (l ?? "");
46
+ }, "");
47
+ function h(e) {
48
+ let t = this || {}, n = e.call ? e(t.p) : e;
49
+ return C(n.unshift ? n.raw ? F(n, [].slice.call(arguments, 1), t.p) : n.reduce((i, o) => Object.assign(i, o && o.call ? o(t.p) : o), {}) : n, k(t.target), t.g, t.o, t.k);
50
+ }
51
+ let j, m, b;
52
+ h.bind({ g: 1 });
53
+ let x = h.bind({ k: 1 });
54
+ function A(e, t, n, i) {
55
+ d.p = t, j = e, m = n, b = i;
56
+ }
57
+ function L(e, t) {
58
+ let n = this || {};
59
+ return function() {
60
+ let i = arguments;
61
+ function o(r, l) {
62
+ let a = Object.assign({}, r), s = a.className || o.className;
63
+ n.p = Object.assign({ theme: m && m() }, a), n.o = / *go\d+/.test(s), a.className = h.apply(n, i) + (s ? " " + s : "");
64
+ let c = e;
65
+ return e[0] && (c = a.as || e, delete a.as), b && c[0] && b(a), j(c, a);
66
+ }
67
+ return o;
68
+ };
69
+ }
70
+ export {
71
+ h as css,
72
+ x as keyframes,
73
+ A as setup,
74
+ L as styled
75
+ };
package/handlers.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./index32.js";
1
+ import "./index310.js";
2
2
  import { http as t } from "./http.js";
3
3
  import { HttpResponse as a } from "./HttpResponse.js";
4
4
  const e = [
package/iconBase.js ADDED
@@ -0,0 +1,56 @@
1
+ import o from "react";
2
+ import { IconContext as f, DefaultContext as d } from "./iconContext.js";
3
+ var l = function() {
4
+ return l = Object.assign || function(e) {
5
+ for (var r, t = 1, n = arguments.length; t < n; t++) {
6
+ r = arguments[t];
7
+ for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
8
+ }
9
+ return e;
10
+ }, l.apply(this, arguments);
11
+ }, g = function(e, r) {
12
+ var t = {};
13
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && r.indexOf(n) < 0 && (t[n] = e[n]);
14
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
15
+ r.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (t[n[a]] = e[n[a]]);
16
+ return t;
17
+ };
18
+ function m(e) {
19
+ return e && e.map(function(r, t) {
20
+ return o.createElement(r.tag, l({
21
+ key: t
22
+ }, r.attr), m(r.child));
23
+ });
24
+ }
25
+ function O(e) {
26
+ return function(r) {
27
+ return o.createElement(y, l({
28
+ attr: l({}, e.attr)
29
+ }, r), m(e.child));
30
+ };
31
+ }
32
+ function y(e) {
33
+ var r = function(t) {
34
+ var n = e.attr, a = e.size, u = e.title, s = g(e, ["attr", "size", "title"]), c = a || t.size || "1em", i;
35
+ return t.className && (i = t.className), e.className && (i = (i ? i + " " : "") + e.className), o.createElement("svg", l({
36
+ stroke: "currentColor",
37
+ fill: "currentColor",
38
+ strokeWidth: "0"
39
+ }, t.attr, n, s, {
40
+ className: i,
41
+ style: l(l({
42
+ color: e.color || t.color
43
+ }, t.style), e.style),
44
+ height: c,
45
+ width: c,
46
+ xmlns: "http://www.w3.org/2000/svg"
47
+ }), u && o.createElement("title", null, u), e.children);
48
+ };
49
+ return f !== void 0 ? o.createElement(f.Consumer, null, function(t) {
50
+ return r(t);
51
+ }) : r(d);
52
+ }
53
+ export {
54
+ O as GenIcon,
55
+ y as IconBase
56
+ };
package/iconContext.js ADDED
@@ -0,0 +1,12 @@
1
+ import e from "react";
2
+ var t = {
3
+ color: void 0,
4
+ size: void 0,
5
+ className: void 0,
6
+ style: void 0,
7
+ attr: void 0
8
+ }, d = e.createContext && e.createContext(t);
9
+ export {
10
+ t as DefaultContext,
11
+ d as IconContext
12
+ };