@simpli-route/apollo-ds 0.1.28 → 0.1.29

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 (129) hide show
  1. package/dist/index.cjs11.js +1 -1
  2. package/dist/index.cjs12.js +1 -1
  3. package/dist/index.cjs13.js +1 -1
  4. package/dist/index.cjs14.js +1 -1
  5. package/dist/index.cjs15.js +1 -1
  6. package/dist/index.cjs17.js +1 -1
  7. package/dist/index.cjs20.js +1 -1
  8. package/dist/index.cjs21.js +1 -1
  9. package/dist/index.cjs22.js +1 -1
  10. package/dist/index.cjs23.js +1 -1
  11. package/dist/index.cjs24.js +1 -1
  12. package/dist/index.cjs25.js +1 -1
  13. package/dist/index.cjs26.js +1 -1
  14. package/dist/index.cjs29.js +1 -1
  15. package/dist/index.cjs3.js +1 -1
  16. package/dist/index.cjs30.js +1 -1
  17. package/dist/index.cjs31.js +1 -1
  18. package/dist/index.cjs32.js +1 -1
  19. package/dist/index.cjs33.js +1 -1
  20. package/dist/index.cjs34.js +1 -1
  21. package/dist/index.cjs35.js +1 -1
  22. package/dist/index.cjs36.js +1 -1
  23. package/dist/index.cjs37.js +1 -1
  24. package/dist/index.cjs38.js +1 -1
  25. package/dist/index.cjs39.js +1 -1
  26. package/dist/index.cjs4.js +1 -1
  27. package/dist/index.cjs40.js +1 -1
  28. package/dist/index.cjs41.js +1 -1
  29. package/dist/index.cjs42.js +1 -1
  30. package/dist/index.cjs43.js +1 -1
  31. package/dist/index.cjs44.js +1 -1
  32. package/dist/index.cjs45.js +1 -1
  33. package/dist/index.cjs46.js +1 -1
  34. package/dist/index.cjs47.js +1 -1
  35. package/dist/index.cjs48.js +1 -1
  36. package/dist/index.cjs49.js +1 -1
  37. package/dist/index.cjs5.js +1 -1
  38. package/dist/index.cjs50.js +1 -1
  39. package/dist/index.cjs51.js +1 -1
  40. package/dist/index.cjs52.js +1 -1
  41. package/dist/index.cjs53.js +1 -1
  42. package/dist/index.cjs54.js +1 -1
  43. package/dist/index.cjs55.js +1 -1
  44. package/dist/index.cjs56.js +1 -1
  45. package/dist/index.cjs57.js +1 -1
  46. package/dist/index.cjs58.js +1 -1
  47. package/dist/index.cjs59.js +1 -1
  48. package/dist/index.cjs6.js +1 -1
  49. package/dist/index.cjs60.js +1 -1
  50. package/dist/index.cjs62.js +1 -1
  51. package/dist/index.cjs64.js +1 -1
  52. package/dist/index.cjs65.js +1 -1
  53. package/dist/index.cjs7.js +1 -1
  54. package/dist/index.cjs75.js +1 -1
  55. package/dist/index.cjs76.js +1 -1
  56. package/dist/index.cjs77.js +1 -1
  57. package/dist/index.cjs78.js +1 -1
  58. package/dist/index.cjs79.js +1 -1
  59. package/dist/index.cjs8.js +1 -1
  60. package/dist/index.cjs80.js +1 -1
  61. package/dist/index.cjs81.js +1 -1
  62. package/dist/index.cjs82.js +1 -1
  63. package/dist/index.cjs83.js +1 -1
  64. package/dist/index.cjs9.js +1 -1
  65. package/dist/index.es11.js +1 -1
  66. package/dist/index.es12.js +3 -3
  67. package/dist/index.es13.js +10 -10
  68. package/dist/index.es14.js +4 -4
  69. package/dist/index.es15.js +2 -2
  70. package/dist/index.es17.js +2 -2
  71. package/dist/index.es20.js +4 -4
  72. package/dist/index.es21.js +1 -1
  73. package/dist/index.es22.js +3 -3
  74. package/dist/index.es23.js +2 -2
  75. package/dist/index.es24.js +1 -1
  76. package/dist/index.es25.js +1 -1
  77. package/dist/index.es26.js +1 -1
  78. package/dist/index.es29.js +17 -171
  79. package/dist/index.es3.js +1 -1
  80. package/dist/index.es30.js +18 -43
  81. package/dist/index.es31.js +16 -33
  82. package/dist/index.es32.js +16 -59
  83. package/dist/index.es33.js +169 -32
  84. package/dist/index.es34.js +20 -28
  85. package/dist/index.es35.js +32 -38
  86. package/dist/index.es36.js +51 -47
  87. package/dist/index.es37.js +33 -39
  88. package/dist/index.es38.js +51 -3
  89. package/dist/index.es39.js +23 -75
  90. package/dist/index.es4.js +11 -11
  91. package/dist/index.es40.js +49 -16
  92. package/dist/index.es41.js +40 -17
  93. package/dist/index.es42.js +3 -101
  94. package/dist/index.es43.js +90 -11
  95. package/dist/index.es44.js +22 -10
  96. package/dist/index.es45.js +163 -10
  97. package/dist/index.es46.js +28 -10
  98. package/dist/index.es47.js +10 -13
  99. package/dist/index.es48.js +9 -136
  100. package/dist/index.es49.js +10 -18
  101. package/dist/index.es5.js +2 -2
  102. package/dist/index.es50.js +13 -163
  103. package/dist/index.es51.js +9 -29
  104. package/dist/index.es52.js +10 -18
  105. package/dist/index.es53.js +44 -16
  106. package/dist/index.es54.js +7 -16
  107. package/dist/index.es55.js +17 -9
  108. package/dist/index.es56.js +149 -10
  109. package/dist/index.es57.js +132 -40
  110. package/dist/index.es58.js +20 -7
  111. package/dist/index.es59.js +99 -16
  112. package/dist/index.es6.js +1 -1
  113. package/dist/index.es60.js +11 -147
  114. package/dist/index.es62.js +1 -1
  115. package/dist/index.es64.js +1 -1
  116. package/dist/index.es65.js +1 -1
  117. package/dist/index.es7.js +13 -13
  118. package/dist/index.es75.js +2 -57
  119. package/dist/index.es76.js +2 -4
  120. package/dist/index.es77.js +58 -27
  121. package/dist/index.es78.js +4 -2
  122. package/dist/index.es79.js +28 -10
  123. package/dist/index.es8.js +1 -1
  124. package/dist/index.es80.js +2 -340
  125. package/dist/index.es81.js +8 -166
  126. package/dist/index.es82.js +340 -2
  127. package/dist/index.es83.js +166 -2
  128. package/dist/index.es9.js +1 -1
  129. package/package.json +1 -1
@@ -1,151 +1,15 @@
1
- import { cva as s } from "class-variance-authority";
2
- const e = [
3
- {
4
- state: "pending",
5
- isHovered: !0,
6
- isDisabled: !1,
7
- isPressed: !1,
8
- class: "bg-neutral-600"
9
- },
10
- {
11
- state: "inProgress",
12
- isHovered: !0,
13
- isDisabled: !1,
14
- isPressed: !1,
15
- class: "bg-blue-600"
16
- },
17
- {
18
- state: "completed",
19
- isHovered: !0,
20
- isDisabled: !1,
21
- isPressed: !1,
22
- class: "bg-success-600"
23
- },
24
- {
25
- state: "error",
26
- isHovered: !0,
27
- isDisabled: !1,
28
- isPressed: !1,
29
- class: "bg-error-600"
30
- }
31
- ], t = [
32
- {
33
- isDisabled: !0,
34
- isPressed: !1,
35
- class: "bg-neutral-600"
36
- },
37
- {
38
- isDisabled: !1,
39
- isPressed: !1,
40
- state: "pending",
41
- class: "bg-neutral-500"
42
- },
43
- {
44
- isDisabled: !1,
45
- isPressed: !1,
46
- state: "inProgress",
47
- class: "bg-blue-500"
48
- },
49
- {
50
- isDisabled: !1,
51
- isPressed: !1,
52
- state: "completed",
53
- class: "bg-success-500"
54
- },
55
- {
56
- isDisabled: !1,
57
- isPressed: !1,
58
- state: "error",
59
- class: "bg-error-500"
60
- }
61
- ], r = [
62
- {
63
- isPressed: !0,
64
- isDisabled: !1,
65
- state: "pending",
66
- class: "bg-neutral-900"
67
- },
68
- {
69
- isPressed: !0,
70
- isDisabled: !1,
71
- state: "inProgress",
72
- class: "bg-blue-800"
73
- },
74
- {
75
- isPressed: !0,
76
- isDisabled: !1,
77
- state: "completed",
78
- class: "bg-success-800"
79
- },
80
- {
81
- isPressed: !0,
82
- isDisabled: !1,
83
- state: "error",
84
- class: "bg-error-800"
85
- }
86
- ], i = s(
87
- "flex shrink-0 items-center justify-center rounded-full focus-visible:outline-0 focus:outline-0",
88
- {
89
- variants: {
90
- size: {
91
- xs: "size-8",
92
- md: "size-[50px]"
93
- },
94
- state: {
95
- pending: "",
96
- inProgress: "",
97
- completed: "",
98
- error: ""
99
- },
100
- isDisabled: {
101
- true: "",
102
- false: ""
103
- },
104
- isHovered: {
105
- true: "",
106
- false: ""
107
- },
108
- isPressed: {
109
- true: "",
110
- false: ""
111
- }
112
- },
113
- compoundVariants: [...e, ...t, ...r]
114
- }
115
- ), l = s("leading-5 tracking-wide font-normal text-black", {
116
- variants: {
117
- size: {
118
- xs: "text-sm",
119
- md: "text-md"
1
+ const o = (e, g, r = 1) => {
2
+ if (g === "range" && Array.isArray(e) && e.length === 2) {
3
+ const [t, f] = e;
4
+ if (f - t < r) {
5
+ if (t > f - r)
6
+ return [f - r, f];
7
+ if (f < t + r)
8
+ return [t, t + r];
120
9
  }
121
10
  }
122
- }), d = s("flex items-center justify-center", {
123
- variants: {
124
- size: {
125
- xs: "text-base size-4",
126
- md: "text-lg size-[18px]"
127
- },
128
- state: {
129
- pending: "text-neutral-50",
130
- inProgress: "text-neutral-50",
131
- completed: "text-neutral-50",
132
- error: "text-neutral-50"
133
- },
134
- isHovered: {
135
- true: "",
136
- false: ""
137
- }
138
- },
139
- compoundVariants: [
140
- {
141
- state: "error",
142
- isHovered: !0,
143
- class: "text-error-600"
144
- }
145
- ]
146
- });
11
+ return e;
12
+ };
147
13
  export {
148
- d as iconVariants,
149
- l as labelVariants,
150
- i as stepVariants
14
+ o as validateMinDistance
151
15
  };
@@ -1,6 +1,6 @@
1
1
  import { j as i } from "./index.es27.js";
2
2
  import { cn as m } from "./index.es28.js";
3
- import { indicatorVariants as n } from "./index.es39.js";
3
+ import { indicatorVariants as n } from "./index.es43.js";
4
4
  const c = ({ isSelected: r, isDisabled: o, isHovered: f, size: a, dimensions: t }) => /* @__PURE__ */ i.jsx(
5
5
  "div",
6
6
  {
@@ -1,4 +1,4 @@
1
- import { __exports as t } from "./index.es82.js";
1
+ import { __exports as t } from "./index.es75.js";
2
2
  import R from "react";
3
3
  /**
4
4
  * @license React
@@ -1,4 +1,4 @@
1
- import { __exports as R } from "./index.es83.js";
1
+ import { __exports as R } from "./index.es76.js";
2
2
  import tr from "react";
3
3
  /**
4
4
  * @license React
package/dist/index.es7.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { j as r } from "./index.es27.js";
2
2
  import { parseColor as h } from "@react-stately/color";
3
- import { useState as i, useEffect as w } from "react";
3
+ import { useState as a, useEffect as w } from "react";
4
4
  import { ColorPicker as L, Label as R, DialogTrigger as T, Button as W, ColorSwatch as $, Popover as q, Dialog as G } from "react-aria-components";
5
5
  import { cn as J } from "./index.es28.js";
6
- import { ColorArea as K } from "./index.es52.js";
7
- import { ColorField as M } from "./index.es53.js";
8
- import { ColorSlider as Q } from "./index.es54.js";
6
+ import { ColorArea as K } from "./index.es30.js";
7
+ import { ColorField as M } from "./index.es31.js";
8
+ import { ColorSlider as Q } from "./index.es32.js";
9
9
  const ne = (v) => {
10
10
  const {
11
- value: s,
11
+ value: l,
12
12
  onChange: t,
13
13
  className: F,
14
14
  label: O,
@@ -19,10 +19,10 @@ const ne = (v) => {
19
19
  defaultOpen: V,
20
20
  onOpenChange: p,
21
21
  ...I
22
- } = v, x = s ? h(s).toFormat("hsb") : h("hsl(0, 100%, 50%)").toFormat("hsb"), [n, a] = i(x), [y, g] = i(x.getChannelValue("hue")), [N, l] = i("#" + n.toString("hex").slice(1)), [b, C] = i(!1), [P, A] = i(V ?? !1), j = f !== void 0, S = j ? f : P;
22
+ } = v, x = l ? h(l).toFormat("hsb") : h("hsl(0, 100%, 50%)").toFormat("hsb"), [n, i] = a(x), [y, g] = a(x.getChannelValue("hue")), [N, s] = a("#" + n.toString("hex").slice(1)), [b, C] = a(!1), [P, A] = a(V ?? !1), j = f !== void 0, S = j ? f : P;
23
23
  w(() => {
24
- s && !b && l("#" + h(s).toString("hex").slice(1));
25
- }, [s, b]), w(() => {
24
+ l && !b && s("#" + h(l).toString("hex").slice(1));
25
+ }, [l, b]), w(() => {
26
26
  g(n.getChannelValue("hue"));
27
27
  }, [n]);
28
28
  const k = (e) => {
@@ -31,21 +31,21 @@ const ne = (v) => {
31
31
  let o = e.target.value;
32
32
  o.startsWith("#") || (o = "#" + o);
33
33
  const c = o.slice(1).replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
34
- if (l("#" + c), c.length === 6)
34
+ if (s("#" + c), c.length === 6)
35
35
  try {
36
36
  const H = h("#" + c).toFormat("hsb");
37
- a(H), t == null || t("#" + c);
37
+ i(H), t == null || t("#" + c);
38
38
  } catch {
39
39
  }
40
40
  }, E = (e) => {
41
- a(e.toFormat("hsb")), l("#" + e.toString("hex").slice(1)), t == null || t(e.toString("hex"));
41
+ i(e.toFormat("hsb")), s("#" + e.toString("hex").slice(1)), t == null || t("#" + e.toString("hex").replace(/^#*/, ""));
42
42
  }, z = (e) => {
43
43
  g(e.getChannelValue("hue"));
44
44
  const o = n.withChannelValue("hue", e.getChannelValue("hue"));
45
- a(o), l("#" + o.toString("hex").slice(1)), t == null || t("#" + o.toString("hex"));
45
+ i(o), s("#" + o.toString("hex").slice(1)), t == null || t("#" + o.toString("hex").replace(/^#*/, ""));
46
46
  }, B = (e) => {
47
47
  const o = e.withChannelValue("hue", y);
48
- a(o), l("#" + o.toString("hex").slice(1)), t == null || t("#" + o.toString("hex"));
48
+ i(o), s("#" + o.toString("hex").slice(1)), t == null || t("#" + o.toString("hex").replace(/^#*/, ""));
49
49
  };
50
50
  return /* @__PURE__ */ r.jsxs(L, { value: n, onChange: E, ...I, children: [
51
51
  /* @__PURE__ */ r.jsx(R, { children: O }),
@@ -1,59 +1,4 @@
1
- import { j as r } from "./index.es27.js";
2
- import { SliderThumb as m } from "react-aria-components";
3
- import { cn as i } from "./index.es28.js";
4
- import { Tooltip as c } from "./index.es23.js";
5
- import { TooltipTrigger as d } from "./index.es24.js";
6
- const y = ({
7
- index: o,
8
- valuePercent: n,
9
- value: a,
10
- suffix: p,
11
- modeTooltip: g,
12
- positionTooltip: t,
13
- showTypeValue: s,
14
- classNameThumb: e,
15
- isHiddenValue: l
16
- }) => /* @__PURE__ */ r.jsx(
17
- "div",
18
- {
19
- className: i("absolute", s === "tooltip" && !l ? "top-[-6px]" : "top-1/2"),
20
- style: { left: `${n * 100}%`, transform: "translate(-50%, -50%)" },
21
- children: s === "tooltip" && !l ? /* @__PURE__ */ r.jsxs(d, { closeDelay: 100, delay: 100, children: [
22
- /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
23
- m,
24
- {
25
- index: o,
26
- className: i(
27
- "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
28
- e
29
- )
30
- }
31
- ) }),
32
- /* @__PURE__ */ r.jsxs(
33
- c,
34
- {
35
- mode: g,
36
- placement: t,
37
- size: "sm",
38
- className: i("!text-sm", t === "top" ? "!mb-6" : "!mt-6"),
39
- children: [
40
- a,
41
- p
42
- ]
43
- }
44
- )
45
- ] }) : /* @__PURE__ */ r.jsx(
46
- m,
47
- {
48
- index: o,
49
- className: i(
50
- "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
51
- e
52
- )
53
- }
54
- )
55
- }
56
- );
1
+ var r = {};
57
2
  export {
58
- y as SliderThumb
3
+ r as __exports
59
4
  };
@@ -1,6 +1,4 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
1
+ var e = {};
4
2
  export {
5
- e as getDefaultExportFromCjs
3
+ e as __exports
6
4
  };
@@ -1,28 +1,59 @@
1
- import { __exports as i } from "./index.es78.js";
2
- import "./index.es84.js";
3
- import "./index.es85.js";
4
- import { __exports as l } from "./index.es86.js";
5
- import { __exports as s } from "./index.es87.js";
6
- (function(t) {
7
- Object.defineProperty(t, "__esModule", {
8
- value: !0
9
- }), Object.defineProperty(t, "default", {
10
- enumerable: !0,
11
- get: function() {
12
- return f;
13
- }
14
- });
15
- const o = /* @__PURE__ */ r(l), n = /* @__PURE__ */ r(s);
16
- function r(e) {
17
- return e && e.__esModule ? e : {
18
- default: e
19
- };
1
+ import { j as r } from "./index.es27.js";
2
+ import { SliderThumb as m } from "react-aria-components";
3
+ import { cn as i } from "./index.es28.js";
4
+ import { Tooltip as c } from "./index.es23.js";
5
+ import { TooltipTrigger as d } from "./index.es24.js";
6
+ const y = ({
7
+ index: o,
8
+ valuePercent: n,
9
+ value: a,
10
+ suffix: p,
11
+ modeTooltip: g,
12
+ positionTooltip: t,
13
+ showTypeValue: s,
14
+ classNameThumb: e,
15
+ isHiddenValue: l
16
+ }) => /* @__PURE__ */ r.jsx(
17
+ "div",
18
+ {
19
+ className: i("absolute", s === "tooltip" && !l ? "top-[-6px]" : "top-1/2"),
20
+ style: { left: `${n * 100}%`, transform: "translate(-50%, -50%)" },
21
+ children: s === "tooltip" && !l ? /* @__PURE__ */ r.jsxs(d, { closeDelay: 100, delay: 100, children: [
22
+ /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
23
+ m,
24
+ {
25
+ index: o,
26
+ className: i(
27
+ "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
28
+ e
29
+ )
30
+ }
31
+ ) }),
32
+ /* @__PURE__ */ r.jsxs(
33
+ c,
34
+ {
35
+ mode: g,
36
+ placement: t,
37
+ size: "sm",
38
+ className: i("!text-sm", t === "top" ? "!mb-6" : "!mt-6"),
39
+ children: [
40
+ a,
41
+ p
42
+ ]
43
+ }
44
+ )
45
+ ] }) : /* @__PURE__ */ r.jsx(
46
+ m,
47
+ {
48
+ index: o,
49
+ className: i(
50
+ "dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
51
+ e
52
+ )
53
+ }
54
+ )
20
55
  }
21
- function f(...e) {
22
- let [, ...u] = (0, n.default)(e[0]);
23
- return (0, o.default)([
24
- ...e,
25
- ...u
26
- ]);
27
- }
28
- })(i);
56
+ );
57
+ export {
58
+ y as SliderThumb
59
+ };
@@ -1,4 +1,6 @@
1
- var e = {};
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
2
4
  export {
3
- e as __exports
5
+ e as getDefaultExportFromCjs
4
6
  };
@@ -1,10 +1,28 @@
1
- import { getDefaultExportFromCjs as t } from "./index.es76.js";
2
- import "./index.es88.js";
3
- import { __exports as a } from "./index.es89.js";
4
- let e = a;
5
- var o = (e.__esModule ? e : { default: e }).default;
6
- const r = /* @__PURE__ */ t(o);
7
- export {
8
- o as d,
9
- r as default
10
- };
1
+ import { __exports as i } from "./index.es80.js";
2
+ import "./index.es84.js";
3
+ import "./index.es85.js";
4
+ import { __exports as l } from "./index.es86.js";
5
+ import { __exports as s } from "./index.es87.js";
6
+ (function(t) {
7
+ Object.defineProperty(t, "__esModule", {
8
+ value: !0
9
+ }), Object.defineProperty(t, "default", {
10
+ enumerable: !0,
11
+ get: function() {
12
+ return f;
13
+ }
14
+ });
15
+ const o = /* @__PURE__ */ r(l), n = /* @__PURE__ */ r(s);
16
+ function r(e) {
17
+ return e && e.__esModule ? e : {
18
+ default: e
19
+ };
20
+ }
21
+ function f(...e) {
22
+ let [, ...u] = (0, n.default)(e[0]);
23
+ return (0, o.default)([
24
+ ...e,
25
+ ...u
26
+ ]);
27
+ }
28
+ })(i);
package/dist/index.es8.js CHANGED
@@ -2,7 +2,7 @@ import { j as o } from "./index.es27.js";
2
2
  import { forwardRef as h } from "react";
3
3
  import { useContextProps as B, ButtonContext as j, Button as N } from "react-aria-components";
4
4
  import { cn as w } from "./index.es28.js";
5
- import { buttonVariants as C } from "./index.es50.js";
5
+ import { buttonVariants as C } from "./index.es45.js";
6
6
  function I(r, i) {
7
7
  const [a, c] = B(r, i, j), {
8
8
  intent: m = "secondary",