@pismo/marola 0.0.1-alpha.16 → 0.0.1-alpha.17

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 (50) hide show
  1. package/dist/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
  2. package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
  3. package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
  4. package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
  5. package/dist/assets/Chip.css +1 -1
  6. package/dist/assets/Input.css +1 -1
  7. package/dist/assets/PageHeader.css +1 -1
  8. package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
  9. package/dist/components/Button/Button.js +1 -1
  10. package/dist/components/Chip/Chip.js +1 -1
  11. package/dist/components/Dialog/CloseIconButton.js +1 -1
  12. package/dist/components/Dialog/Dialog.js +4 -4
  13. package/dist/components/IconButton/IconButton.js +1 -1
  14. package/dist/components/Input/Input.js +51 -51
  15. package/dist/components/PageHeader/PageHeader.js +23 -23
  16. package/dist/components/Select/Select.js +5 -5
  17. package/dist/components/Snackbar/Snackbar.js +4 -4
  18. package/dist/components/Tabs/Tab.js +3 -3
  19. package/dist/components/Tabs/TabPanel.js +1 -1
  20. package/dist/components/Tabs/Tabs.js +3 -3
  21. package/dist/components/Toggle/Toggle.js +1 -1
  22. package/dist/components/Tooltip/Tooltip.js +3 -3
  23. package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
  24. package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
  25. package/dist/main.d.ts +4 -1
  26. package/dist/main.js +8 -8
  27. package/dist/marola.css +1 -0
  28. package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
  29. package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
  30. package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
  31. package/package.json +2 -2
  32. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  33. package/dist/components/Advice/Advice.stories.js +0 -48
  34. package/dist/components/Button/Button.stories.js +0 -40
  35. package/dist/components/Chip/Chip.stories.js +0 -59
  36. package/dist/components/Chip/chip.test.js +0 -17303
  37. package/dist/components/Dialog/Dialog.stories.js +0 -59
  38. package/dist/components/Input/Input.stories.js +0 -106
  39. package/dist/components/InputSearch/InputSearch.stories.js +0 -73
  40. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
  41. package/dist/components/PageHeader/PageHeader.stories.js +0 -49
  42. package/dist/components/Select/Select.stories.js +0 -89
  43. package/dist/components/Snackbar/Snackbar.stories.js +0 -62
  44. package/dist/components/Toggle/Toggle.stories.js +0 -33
  45. package/dist/components/Typography/Typography.stories.js +0 -30
  46. package/dist/components/Typography/typography.test.js +0 -234
  47. package/dist/magic-string.es-O_8lTkE3.js +0 -738
  48. package/dist/react.esm-DGd9_oKA.js +0 -11126
  49. package/dist/utils/styleStrings.test.js +0 -41
  50. package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
@@ -1,5 +1,5 @@
1
1
  import { a as Ak } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
2
- import { g as Hk } from "./_commonjsHelpers-CT_km90n.js";
2
+ import { f as Hk } from "./index-CtPvew6C.js";
3
3
  import QE from "react";
4
4
  const Fk = "exact-prop: ​";
5
5
  function qk(ne) {
@@ -1,27 +1,26 @@
1
1
  import * as ue from "react";
2
2
  import "react/jsx-runtime";
3
- import { g as _e } from "./_commonjsHelpers-CT_km90n.js";
4
- import { a as D, _ as Re } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
3
+ import { a as D, _ as _e } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
5
4
  import { c as le } from "./clsx-DB4S2d7J.js";
6
- function xe(e) {
5
+ function Re(e) {
7
6
  return typeof e == "string";
8
7
  }
9
- function we(e, s, o) {
10
- return e === void 0 || xe(e) ? s : D({}, s, {
8
+ function xe(e, s, o) {
9
+ return e === void 0 || Re(e) ? s : D({}, s, {
11
10
  ownerState: D({}, s.ownerState, o)
12
11
  });
13
12
  }
14
- const Ae = {
13
+ const we = {
15
14
  disableDefaultClasses: !1
16
- }, Se = /* @__PURE__ */ ue.createContext(Ae);
15
+ }, Se = /* @__PURE__ */ ue.createContext(we);
17
16
  process.env.NODE_ENV !== "production" && (Se.displayName = "ClassNameConfiguratorContext");
18
- function er(e) {
17
+ function Qe(e) {
19
18
  const {
20
19
  disableDefaultClasses: s
21
20
  } = ue.useContext(Se);
22
21
  return (o) => s ? "" : e(o);
23
22
  }
24
- function $e(e, s = []) {
23
+ function Ae(e, s = []) {
25
24
  if (e === void 0)
26
25
  return {};
27
26
  const o = {};
@@ -32,6 +31,9 @@ function $e(e, s = []) {
32
31
  function je(e, s, o) {
33
32
  return typeof e == "function" ? e(s, o) : e;
34
33
  }
34
+ function $e(e) {
35
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
36
+ }
35
37
  var se = { exports: {} }, V = { exports: {} }, P = {};
36
38
  /** @license React v16.13.1
37
39
  * react-is.production.min.js
@@ -46,8 +48,8 @@ function Ie() {
46
48
  if (de)
47
49
  return P;
48
50
  de = 1;
49
- var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
50
- function $(n) {
51
+ var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
52
+ function j(n) {
51
53
  if (typeof n == "object" && n !== null) {
52
54
  var W = n.$$typeof;
53
55
  switch (W) {
@@ -64,7 +66,7 @@ function Ie() {
64
66
  switch (n = n && n.$$typeof, n) {
65
67
  case f:
66
68
  case m:
67
- case j:
69
+ case $:
68
70
  case w:
69
71
  case h:
70
72
  return n;
@@ -78,37 +80,37 @@ function Ie() {
78
80
  }
79
81
  }
80
82
  function A(n) {
81
- return $(n) === v;
83
+ return j(n) === v;
82
84
  }
83
- return P.AsyncMode = _, P.ConcurrentMode = v, P.ContextConsumer = f, P.ContextProvider = h, P.Element = s, P.ForwardRef = m, P.Fragment = a, P.Lazy = j, P.Memo = w, P.Portal = o, P.Profiler = u, P.StrictMode = c, P.Suspense = S, P.isAsyncMode = function(n) {
84
- return A(n) || $(n) === _;
85
+ return P.AsyncMode = _, P.ConcurrentMode = v, P.ContextConsumer = f, P.ContextProvider = h, P.Element = s, P.ForwardRef = m, P.Fragment = a, P.Lazy = $, P.Memo = w, P.Portal = o, P.Profiler = u, P.StrictMode = c, P.Suspense = S, P.isAsyncMode = function(n) {
86
+ return A(n) || j(n) === _;
85
87
  }, P.isConcurrentMode = A, P.isContextConsumer = function(n) {
86
- return $(n) === f;
88
+ return j(n) === f;
87
89
  }, P.isContextProvider = function(n) {
88
- return $(n) === h;
90
+ return j(n) === h;
89
91
  }, P.isElement = function(n) {
90
92
  return typeof n == "object" && n !== null && n.$$typeof === s;
91
93
  }, P.isForwardRef = function(n) {
92
- return $(n) === m;
94
+ return j(n) === m;
93
95
  }, P.isFragment = function(n) {
94
- return $(n) === a;
96
+ return j(n) === a;
95
97
  }, P.isLazy = function(n) {
96
- return $(n) === j;
98
+ return j(n) === $;
97
99
  }, P.isMemo = function(n) {
98
- return $(n) === w;
100
+ return j(n) === w;
99
101
  }, P.isPortal = function(n) {
100
- return $(n) === o;
102
+ return j(n) === o;
101
103
  }, P.isProfiler = function(n) {
102
- return $(n) === u;
104
+ return j(n) === u;
103
105
  }, P.isStrictMode = function(n) {
104
- return $(n) === c;
106
+ return j(n) === c;
105
107
  }, P.isSuspense = function(n) {
106
- return $(n) === S;
108
+ return j(n) === S;
107
109
  }, P.isValidElementType = function(n) {
108
- return typeof n == "string" || typeof n == "function" || n === a || n === v || n === u || n === c || n === S || n === x || typeof n == "object" && n !== null && (n.$$typeof === j || n.$$typeof === w || n.$$typeof === h || n.$$typeof === f || n.$$typeof === m || n.$$typeof === I || n.$$typeof === k || n.$$typeof === F || n.$$typeof === R);
109
- }, P.typeOf = $, P;
110
+ return typeof n == "string" || typeof n == "function" || n === a || n === v || n === u || n === c || n === S || n === x || typeof n == "object" && n !== null && (n.$$typeof === $ || n.$$typeof === w || n.$$typeof === h || n.$$typeof === f || n.$$typeof === m || n.$$typeof === I || n.$$typeof === k || n.$$typeof === F || n.$$typeof === R);
111
+ }, P.typeOf = j, P;
110
112
  }
111
- var C = {};
113
+ var O = {};
112
114
  /** @license React v16.13.1
113
115
  * react-is.development.js
114
116
  *
@@ -120,10 +122,10 @@ var C = {};
120
122
  var pe;
121
123
  function Me() {
122
124
  return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
123
- var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
124
- function $(t) {
125
+ var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
126
+ function j(t) {
125
127
  return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
126
- t === a || t === v || t === u || t === c || t === S || t === x || typeof t == "object" && t !== null && (t.$$typeof === j || t.$$typeof === w || t.$$typeof === h || t.$$typeof === f || t.$$typeof === m || t.$$typeof === I || t.$$typeof === k || t.$$typeof === F || t.$$typeof === R);
128
+ t === a || t === v || t === u || t === c || t === S || t === x || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === w || t.$$typeof === h || t.$$typeof === f || t.$$typeof === m || t.$$typeof === I || t.$$typeof === k || t.$$typeof === F || t.$$typeof === R);
127
129
  }
128
130
  function A(t) {
129
131
  if (typeof t == "object" && t !== null) {
@@ -144,7 +146,7 @@ function Me() {
144
146
  switch (fe) {
145
147
  case f:
146
148
  case m:
147
- case j:
149
+ case $:
148
150
  case w:
149
151
  case h:
150
152
  return fe;
@@ -157,7 +159,7 @@ function Me() {
157
159
  }
158
160
  }
159
161
  }
160
- var n = _, W = v, B = f, J = h, X = s, Z = m, U = a, G = j, K = w, N = o, Q = u, q = c, L = S, z = !1;
162
+ var n = _, W = v, B = f, J = h, X = s, Z = m, U = a, G = $, K = w, N = o, Q = u, q = c, L = S, z = !1;
161
163
  function ee(t) {
162
164
  return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), r(t) || A(t) === _;
163
165
  }
@@ -180,7 +182,7 @@ function Me() {
180
182
  return A(t) === a;
181
183
  }
182
184
  function d(t) {
183
- return A(t) === j;
185
+ return A(t) === $;
184
186
  }
185
187
  function y(t) {
186
188
  return A(t) === w;
@@ -188,7 +190,7 @@ function Me() {
188
190
  function T(t) {
189
191
  return A(t) === o;
190
192
  }
191
- function O(t) {
193
+ function C(t) {
192
194
  return A(t) === u;
193
195
  }
194
196
  function g(t) {
@@ -197,8 +199,8 @@ function Me() {
197
199
  function M(t) {
198
200
  return A(t) === S;
199
201
  }
200
- C.AsyncMode = n, C.ConcurrentMode = W, C.ContextConsumer = B, C.ContextProvider = J, C.Element = X, C.ForwardRef = Z, C.Fragment = U, C.Lazy = G, C.Memo = K, C.Portal = N, C.Profiler = Q, C.StrictMode = q, C.Suspense = L, C.isAsyncMode = ee, C.isConcurrentMode = r, C.isContextConsumer = i, C.isContextProvider = b, C.isElement = p, C.isForwardRef = l, C.isFragment = E, C.isLazy = d, C.isMemo = y, C.isPortal = T, C.isProfiler = O, C.isStrictMode = g, C.isSuspense = M, C.isValidElementType = $, C.typeOf = A;
201
- }()), C;
202
+ O.AsyncMode = n, O.ConcurrentMode = W, O.ContextConsumer = B, O.ContextProvider = J, O.Element = X, O.ForwardRef = Z, O.Fragment = U, O.Lazy = G, O.Memo = K, O.Portal = N, O.Profiler = Q, O.StrictMode = q, O.Suspense = L, O.isAsyncMode = ee, O.isConcurrentMode = r, O.isContextConsumer = i, O.isContextProvider = b, O.isElement = p, O.isForwardRef = l, O.isFragment = E, O.isLazy = d, O.isMemo = y, O.isPortal = T, O.isProfiler = C, O.isStrictMode = g, O.isSuspense = M, O.isValidElementType = j, O.typeOf = A;
203
+ }()), O;
202
204
  }
203
205
  var ye;
204
206
  function Pe() {
@@ -265,7 +267,7 @@ function ce() {
265
267
  return te = e, te;
266
268
  }
267
269
  var ne, be;
268
- function Ce() {
270
+ function Oe() {
269
271
  return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
270
272
  }
271
273
  var oe, he;
@@ -276,7 +278,7 @@ function qe() {
276
278
  var e = function() {
277
279
  };
278
280
  if (process.env.NODE_ENV !== "production") {
279
- var s = ce(), o = {}, a = Ce();
281
+ var s = ce(), o = {}, a = Oe();
280
282
  e = function(u) {
281
283
  var h = "Warning: " + u;
282
284
  typeof console < "u" && console.error(h);
@@ -299,8 +301,8 @@ function qe() {
299
301
  throw x.name = "Invariant Violation", x;
300
302
  }
301
303
  S = u[m](h, m, _, f, null, s);
302
- } catch (j) {
303
- S = j;
304
+ } catch ($) {
305
+ S = $;
304
306
  }
305
307
  if (S && !(S instanceof Error) && e(
306
308
  (_ || "React class") + ": type specification of " + f + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof S + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -323,7 +325,7 @@ function Ye() {
323
325
  if (Ee)
324
326
  return ie;
325
327
  Ee = 1;
326
- var e = Pe(), s = ke(), o = ce(), a = Ce(), c = qe(), u = function() {
328
+ var e = Pe(), s = ke(), o = ce(), a = Oe(), c = qe(), u = function() {
327
329
  };
328
330
  process.env.NODE_ENV !== "production" && (u = function(f) {
329
331
  var _ = "Warning: " + f;
@@ -353,7 +355,7 @@ function Ye() {
353
355
  string: k("string"),
354
356
  symbol: k("symbol"),
355
357
  any: F(),
356
- arrayOf: $,
358
+ arrayOf: j,
357
359
  element: A(),
358
360
  elementType: n(),
359
361
  instanceOf: W,
@@ -364,7 +366,7 @@ function Ye() {
364
366
  shape: G,
365
367
  exact: K
366
368
  };
367
- function j(r, i) {
369
+ function $(r, i) {
368
370
  return r === i ? r !== 0 || 1 / r === 1 / i : r !== r && i !== i;
369
371
  }
370
372
  function R(r, i) {
@@ -374,7 +376,7 @@ function Ye() {
374
376
  function I(r) {
375
377
  if (process.env.NODE_ENV !== "production")
376
378
  var i = {}, b = 0;
377
- function p(E, d, y, T, O, g, M) {
379
+ function p(E, d, y, T, C, g, M) {
378
380
  if (T = T || x, g = g || y, M !== o) {
379
381
  if (_) {
380
382
  var t = new Error(
@@ -389,15 +391,15 @@ function Ye() {
389
391
  ), i[Y] = !0, b++);
390
392
  }
391
393
  }
392
- return d[y] == null ? E ? d[y] === null ? new R("The " + O + " `" + g + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new R("The " + O + " `" + g + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : r(d, y, T, O, g);
394
+ return d[y] == null ? E ? d[y] === null ? new R("The " + C + " `" + g + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new R("The " + C + " `" + g + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : r(d, y, T, C, g);
393
395
  }
394
396
  var l = p.bind(null, !1);
395
397
  return l.isRequired = p.bind(null, !0), l;
396
398
  }
397
399
  function k(r) {
398
400
  function i(b, p, l, E, d, y) {
399
- var T = b[p], O = q(T);
400
- if (O !== r) {
401
+ var T = b[p], C = q(T);
402
+ if (C !== r) {
401
403
  var g = L(T);
402
404
  return new R(
403
405
  "Invalid " + E + " `" + d + "` of type " + ("`" + g + "` supplied to `" + l + "`, expected ") + ("`" + r + "`."),
@@ -411,7 +413,7 @@ function Ye() {
411
413
  function F() {
412
414
  return I(h);
413
415
  }
414
- function $(r) {
416
+ function j(r) {
415
417
  function i(b, p, l, E, d) {
416
418
  if (typeof r != "function")
417
419
  return new R("Property `" + d + "` of component `" + l + "` has invalid PropType notation inside arrayOf.");
@@ -420,8 +422,8 @@ function Ye() {
420
422
  var T = q(y);
421
423
  return new R("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + l + "`, expected an array."));
422
424
  }
423
- for (var O = 0; O < y.length; O++) {
424
- var g = r(y, O, l, E, d + "[" + O + "]", o);
425
+ for (var C = 0; C < y.length; C++) {
426
+ var g = r(y, C, l, E, d + "[" + C + "]", o);
425
427
  if (g instanceof Error)
426
428
  return g;
427
429
  }
@@ -468,13 +470,13 @@ function Ye() {
468
470
  ) : u("Invalid argument supplied to oneOf, expected an array.")), h;
469
471
  function i(b, p, l, E, d) {
470
472
  for (var y = b[p], T = 0; T < r.length; T++)
471
- if (j(y, r[T]))
473
+ if ($(y, r[T]))
472
474
  return null;
473
- var O = JSON.stringify(r, function(M, t) {
475
+ var C = JSON.stringify(r, function(M, t) {
474
476
  var Y = L(t);
475
477
  return Y === "symbol" ? String(t) : t;
476
478
  });
477
- return new R("Invalid " + E + " `" + d + "` of value `" + String(y) + "` " + ("supplied to `" + l + "`, expected one of " + O + "."));
479
+ return new R("Invalid " + E + " `" + d + "` of value `" + String(y) + "` " + ("supplied to `" + l + "`, expected one of " + C + "."));
478
480
  }
479
481
  return I(i);
480
482
  }
@@ -485,9 +487,9 @@ function Ye() {
485
487
  var y = b[p], T = q(y);
486
488
  if (T !== "object")
487
489
  return new R("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + l + "`, expected an object."));
488
- for (var O in y)
489
- if (a(y, O)) {
490
- var g = r(y, O, l, E, d + "." + O, o);
490
+ for (var C in y)
491
+ if (a(y, C)) {
492
+ var g = r(y, C, l, E, d + "." + C, o);
491
493
  if (g instanceof Error)
492
494
  return g;
493
495
  }
@@ -506,13 +508,13 @@ function Ye() {
506
508
  ), h;
507
509
  }
508
510
  function p(l, E, d, y, T) {
509
- for (var O = [], g = 0; g < r.length; g++) {
511
+ for (var C = [], g = 0; g < r.length; g++) {
510
512
  var M = r[g], t = M(l, E, d, y, T, o);
511
513
  if (t == null)
512
514
  return null;
513
- t.data && a(t.data, "expectedType") && O.push(t.data.expectedType);
515
+ t.data && a(t.data, "expectedType") && C.push(t.data.expectedType);
514
516
  }
515
- var Y = O.length > 0 ? ", expected one of type [" + O.join(", ") + "]" : "";
517
+ var Y = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
516
518
  return new R("Invalid " + y + " `" + T + "` supplied to " + ("`" + d + "`" + Y + "."));
517
519
  }
518
520
  return I(p);
@@ -533,11 +535,11 @@ function Ye() {
533
535
  var y = b[p], T = q(y);
534
536
  if (T !== "object")
535
537
  return new R("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + l + "`, expected `object`."));
536
- for (var O in r) {
537
- var g = r[O];
538
+ for (var C in r) {
539
+ var g = r[C];
538
540
  if (typeof g != "function")
539
- return U(l, E, d, O, L(g));
540
- var M = g(y, O, l, E, d + "." + O, o);
541
+ return U(l, E, d, C, L(g));
542
+ var M = g(y, C, l, E, d + "." + C, o);
541
543
  if (M)
542
544
  return M;
543
545
  }
@@ -550,8 +552,8 @@ function Ye() {
550
552
  var y = b[p], T = q(y);
551
553
  if (T !== "object")
552
554
  return new R("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + l + "`, expected `object`."));
553
- var O = s({}, b[p], r);
554
- for (var g in O) {
555
+ var C = s({}, b[p], r);
556
+ for (var g in C) {
555
557
  var M = r[g];
556
558
  if (a(r, g) && typeof M != "function")
557
559
  return U(l, E, d, g, L(M));
@@ -695,7 +697,7 @@ if (process.env.NODE_ENV !== "production") {
695
697
  } else
696
698
  se.exports = De()();
697
699
  var Ne = se.exports;
698
- const rr = /* @__PURE__ */ _e(Ne);
700
+ const er = /* @__PURE__ */ $e(Ne);
699
701
  function Fe(e, s) {
700
702
  typeof e == "function" ? e(s) : e && (e.current = s);
701
703
  }
@@ -706,7 +708,7 @@ function Ue(...e) {
706
708
  });
707
709
  }, e);
708
710
  }
709
- function tr(e, s, o = void 0) {
711
+ function rr(e, s, o = void 0) {
710
712
  const a = {};
711
713
  return Object.keys(e).forEach(
712
714
  // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
@@ -753,62 +755,63 @@ function He(e) {
753
755
  className: u
754
756
  } = e;
755
757
  if (!s) {
756
- const w = le(o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), j = D({}, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), R = D({}, o, c, a);
757
- return w.length > 0 && (R.className = w), Object.keys(j).length > 0 && (R.style = j), {
758
+ const w = le(o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), $ = D({}, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), R = D({}, o, c, a);
759
+ return w.length > 0 && (R.className = w), Object.keys($).length > 0 && (R.style = $), {
758
760
  props: R,
759
761
  internalRef: void 0
760
762
  };
761
763
  }
762
- const h = $e(D({}, c, a)), f = ge(a), _ = ge(c), v = s(h), m = le(v == null ? void 0 : v.className, o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), S = D({}, v == null ? void 0 : v.style, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), x = D({}, v, o, _, f);
764
+ const h = Ae(D({}, c, a)), f = ge(a), _ = ge(c), v = s(h), m = le(v == null ? void 0 : v.className, o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), S = D({}, v == null ? void 0 : v.style, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), x = D({}, v, o, _, f);
763
765
  return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
764
766
  props: x,
765
767
  internalRef: v.ref
766
768
  };
767
769
  }
768
770
  const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
769
- function nr(e) {
771
+ function tr(e) {
770
772
  var s;
771
773
  const {
772
774
  elementType: o,
773
775
  externalSlotProps: a,
774
776
  ownerState: c,
775
777
  skipResolvingSlotProps: u = !1
776
- } = e, h = Re(e, Ve), f = u ? {} : je(a, c), {
778
+ } = e, h = _e(e, Ve), f = u ? {} : je(a, c), {
777
779
  props: _,
778
780
  internalRef: v
779
781
  } = He(D({}, h, {
780
782
  externalSlotProps: f
781
783
  })), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
782
- return we(o, D({}, _, {
784
+ return xe(o, D({}, _, {
783
785
  ref: m
784
786
  }), c);
785
787
  }
786
- const Oe = "base";
788
+ const Ce = "base";
787
789
  function Be(e) {
788
- return `${Oe}--${e}`;
790
+ return `${Ce}--${e}`;
789
791
  }
790
792
  function Je(e, s) {
791
- return `${Oe}-${e}-${s}`;
793
+ return `${Ce}-${e}-${s}`;
792
794
  }
793
795
  function Xe(e, s) {
794
796
  const o = ze[s];
795
797
  return o ? Be(o) : Je(e, s);
796
798
  }
797
- function or(e, s) {
799
+ function nr(e, s) {
798
800
  const o = {};
799
801
  return s.forEach((a) => {
800
802
  o[a] = Xe(e, a);
801
803
  }), o;
802
804
  }
803
805
  export {
804
- rr as P,
805
- or as a,
806
- nr as b,
807
- tr as c,
808
- er as d,
809
- $e as e,
806
+ er as P,
807
+ nr as a,
808
+ tr as b,
809
+ rr as c,
810
+ Qe as d,
811
+ Ae as e,
812
+ $e as f,
810
813
  Xe as g,
811
- xe as i,
814
+ Re as i,
812
815
  Fe as s,
813
816
  Ue as u
814
817
  };
package/dist/main.d.ts CHANGED
@@ -1,4 +1,7 @@
1
-
1
+ /**
2
+ * This file is automatically generated. Any changes will be lost.
3
+ * run "yarn export-files" or "yarn build" to regenerate it.
4
+ */
2
5
  export * from './components/Advice/Advice';
3
6
  export * from './components/Button/Button';
4
7
  export * from './components/Checkbox/Checkbox';
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
- import { Chip as e } from "./components/Chip/Chip.js";
2
- import { Advice as p } from "./components/Advice/Advice.js";
3
- import { Button as f } from "./components/Button/Button.js";
4
- import { Checkbox as n } from "./components/Checkbox/Checkbox.js";
1
+ import { Advice as e } from "./components/Advice/Advice.js";
2
+ import { Button as p } from "./components/Button/Button.js";
3
+ import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
4
+ import { Chip as n } from "./components/Chip/Chip.js";
5
5
  import { Dialog as l } from "./components/Dialog/Dialog.js";
6
6
  import { FamilyAndIcons as T, Icon as c } from "./components/Icon/Icon.js";
7
7
  import { IconButton as S } from "./components/IconButton/IconButton.js";
@@ -27,10 +27,10 @@ import { Tab as po } from "./components/Tabs/Tab.js";
27
27
  import { TabPanel as fo } from "./components/Tabs/TabPanel.js";
28
28
  export {
29
29
  eo as Actions,
30
- p as Advice,
31
- f as Button,
32
- n as Checkbox,
33
- e as Chip,
30
+ e as Advice,
31
+ p as Button,
32
+ f as Checkbox,
33
+ n as Chip,
34
34
  oo as Content,
35
35
  l as Dialog,
36
36
  _ as DialogTitle,
@@ -0,0 +1 @@
1
+ :root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
@@ -1,6 +1,6 @@
1
1
  import { a as D } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
2
2
  import * as i from "react";
3
- import { u as S, e as k } from "./index-CqjC7P5Y.js";
3
+ import { u as S, e as k } from "./index-CtPvew6C.js";
4
4
  import { u as _ } from "./useIsFocusVisible-BH4IAdcw.js";
5
5
  function v(p) {
6
6
  const {
@@ -1,4 +1,4 @@
1
- import { P as a } from "./index-CqjC7P5Y.js";
1
+ import { P as a } from "./index-CtPvew6C.js";
2
2
  import * as c from "react";
3
3
  import { u as m } from "./useEnhancedEffect-CJGo-L3B.js";
4
4
  function s(e, n) {
@@ -1,7 +1,7 @@
1
1
  import { a as p } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
2
2
  import * as f from "react";
3
- import { L as x } from "./combineHooksSlotProps-BHqhiBfc.js";
4
- import { u as re, e as ie } from "./index-CqjC7P5Y.js";
3
+ import { L as x } from "./combineHooksSlotProps-D8j4htsd.js";
4
+ import { u as re, e as ie } from "./index-CtPvew6C.js";
5
5
  function W(t, e, r = (n, l) => n === l) {
6
6
  return t.length === e.length && t.every((n, l) => r(n, e[l]));
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "0.0.1-alpha.16",
4
+ "version": "0.0.1-alpha.17",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -31,7 +31,7 @@
31
31
  "coverage": "vitest run --coverage",
32
32
  "export-files": "node scripts/export-files.cjs",
33
33
  "prebuild": "yarn export-files",
34
- "build": "tsc --p ./tsconfig-build.json && vite build",
34
+ "build": "tsc --p ./tsconfig-build.json && vite build && mv ./dist/assets/marola.css ./dist",
35
35
  "postbuild": "storybook build --disable-telemetry --output-dir build",
36
36
  "storybook": "storybook dev -p 6006"
37
37
  },
@@ -1,30 +0,0 @@
1
- var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function f(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- function l(e) {
6
- if (e.__esModule)
7
- return e;
8
- var r = e.default;
9
- if (typeof r == "function") {
10
- var t = function o() {
11
- return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
- };
13
- t.prototype = r.prototype;
14
- } else
15
- t = {};
16
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
17
- var n = Object.getOwnPropertyDescriptor(e, o);
18
- Object.defineProperty(t, o, n.get ? n : {
19
- enumerable: !0,
20
- get: function() {
21
- return e[o];
22
- }
23
- });
24
- }), t;
25
- }
26
- export {
27
- l as a,
28
- u as c,
29
- f as g
30
- };
@@ -1,48 +0,0 @@
1
- import { Advice as o } from "./Advice.js";
2
- import * as e from "react";
3
- const n = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", "data-waves-icon": "fa/duotone/helmet-battle", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
4
- fill: "currentcolor",
5
- color: "currentcolor",
6
- width: "1em",
7
- height: "1em"
8
- }, ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, `
9
- .fa-secondary {
10
- opacity: .4
11
- }
12
- `)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M31.99 256c17.63 0 32.01-12.5 32.01-28V0L.9928 221.1C-4.132 238.9 11.24 256 31.99 256zM575 221.1L512 0v228c0 15.5 14.38 28 32 28C564.8 256 580.1 238.9 575 221.1zM159.1 192L159.1 224l96 32v256l64-.0022L320 256l96-32l.0008-31.1H159.1z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M480 210.9C480 90.38 288 0 288 0S95.1 90.38 95.1 210.9c0 82.75-22.88 145.9-31.13 180.6c-3.375 14.5 3.625 29.38 16.38 35.25L255.1 512V256L159.1 224L159.1 192h256L416 224l-96 32l-.0009 255.1l174.9-85.25c12.63-5.875 19.75-20.75 16.25-35.25C502.9 356.8 480 293.6 480 210.9z" })), c = {
13
- title: "Components/Advice",
14
- component: o,
15
- tags: ["autodocs"],
16
- parameters: {
17
- layout: "padded"
18
- }
19
- }, a = {
20
- args: {
21
- type: "without-results",
22
- content: "No Results"
23
- }
24
- }, l = {
25
- args: {
26
- type: "no-permission",
27
- content: "No Permission"
28
- }
29
- }, r = {
30
- name: "Custom Icons (Waves Icons)",
31
- args: {
32
- icon: { icon: "logo", iconFamily: "pi", color: "var(--secondary-orange)", size: "5rem" },
33
- content: "Pismo"
34
- }
35
- }, m = {
36
- name: "Custom Icons (SVG)",
37
- args: {
38
- IconSvg: n,
39
- content: "Ready for battle?"
40
- }
41
- };
42
- export {
43
- r as CustomIcon,
44
- m as CustomIconSVG,
45
- l as NoPermission,
46
- a as WithoutResults,
47
- c as default
48
- };