@simpli-route/apollo-ds 0.1.53 → 0.1.54

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 (82) hide show
  1. package/dist/components/InvisibleDatepicker/types.d.ts +4 -0
  2. package/dist/index.cjs106.js +1 -1
  3. package/dist/index.cjs107.js +1 -1
  4. package/dist/index.cjs108.js +1 -1
  5. package/dist/index.cjs109.js +1 -1
  6. package/dist/index.cjs110.js +1 -1
  7. package/dist/index.cjs111.js +1 -1
  8. package/dist/index.cjs112.js +1 -1
  9. package/dist/index.cjs12.js +1 -1
  10. package/dist/index.cjs22.js +1 -1
  11. package/dist/index.cjs24.js +1 -1
  12. package/dist/index.cjs27.js +1 -1
  13. package/dist/index.cjs29.js +1 -1
  14. package/dist/index.cjs33.js +1 -1
  15. package/dist/index.cjs34.js +1 -1
  16. package/dist/index.cjs35.js +1 -1
  17. package/dist/index.cjs36.js +1 -1
  18. package/dist/index.cjs52.js +1 -1
  19. package/dist/index.cjs6.js +1 -1
  20. package/dist/index.cjs63.js +1 -1
  21. package/dist/index.cjs64.js +1 -1
  22. package/dist/index.cjs65.js +1 -1
  23. package/dist/index.cjs66.js +1 -1
  24. package/dist/index.cjs68.js +1 -1
  25. package/dist/index.cjs69.js +1 -1
  26. package/dist/index.cjs70.js +1 -1
  27. package/dist/index.cjs71.js +1 -1
  28. package/dist/index.cjs72.js +1 -1
  29. package/dist/index.cjs74.js +1 -1
  30. package/dist/index.cjs75.js +1 -1
  31. package/dist/index.cjs76.js +1 -1
  32. package/dist/index.cjs77.js +1 -1
  33. package/dist/index.cjs78.js +1 -1
  34. package/dist/index.cjs79.js +1 -1
  35. package/dist/index.cjs8.js +1 -1
  36. package/dist/index.cjs80.js +1 -1
  37. package/dist/index.cjs81.js +1 -1
  38. package/dist/index.cjs82.js +1 -1
  39. package/dist/index.cjs83.js +1 -1
  40. package/dist/index.cjs84.js +1 -1
  41. package/dist/index.es106.js +57 -4
  42. package/dist/index.es107.js +6 -28
  43. package/dist/index.es108.js +28 -4
  44. package/dist/index.es109.js +2 -8
  45. package/dist/index.es110.js +8 -340
  46. package/dist/index.es111.js +336 -162
  47. package/dist/index.es112.js +161 -52
  48. package/dist/index.es12.js +1 -1
  49. package/dist/index.es22.js +1 -1
  50. package/dist/index.es24.js +2 -2
  51. package/dist/index.es27.js +1 -1
  52. package/dist/index.es29.js +2 -2
  53. package/dist/index.es33.js +3 -3
  54. package/dist/index.es34.js +2 -2
  55. package/dist/index.es35.js +3 -3
  56. package/dist/index.es36.js +1 -1
  57. package/dist/index.es52.js +12 -7
  58. package/dist/index.es6.js +1 -1
  59. package/dist/index.es63.js +28 -16
  60. package/dist/index.es64.js +15 -14
  61. package/dist/index.es65.js +14 -13
  62. package/dist/index.es66.js +14 -28
  63. package/dist/index.es68.js +163 -10
  64. package/dist/index.es69.js +10 -10
  65. package/dist/index.es70.js +13 -12
  66. package/dist/index.es71.js +10 -13
  67. package/dist/index.es72.js +12 -163
  68. package/dist/index.es74.js +97 -36
  69. package/dist/index.es75.js +13 -7
  70. package/dist/index.es76.js +7 -18
  71. package/dist/index.es77.js +15 -146
  72. package/dist/index.es78.js +144 -96
  73. package/dist/index.es79.js +19 -13
  74. package/dist/index.es8.js +3 -3
  75. package/dist/index.es80.js +20 -19
  76. package/dist/index.es81.js +10 -20
  77. package/dist/index.es82.js +9 -9
  78. package/dist/index.es83.js +45 -10
  79. package/dist/index.es84.js +25 -30
  80. package/dist/stories/Datepicker.stories.d.ts +1 -0
  81. package/dist/style.css +9 -0
  82. package/package.json +1 -1
@@ -1,59 +1,168 @@
1
- import { j as r } from "./index.es40.js";
2
- import { SliderThumb as m } from "react-aria-components";
3
- import { cn as i } from "./index.es41.js";
4
- import { Tooltip as c } from "./index.es36.js";
5
- import { TooltipTrigger as d } from "./index.es37.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",
1
+ import { getDefaultExportFromCjs as r } from "./index.es107.js";
2
+ import { p as o } from "./index.es120.js";
3
+ const l = o;
4
+ function e(a) {
5
+ return Object.fromEntries(
6
+ Object.entries(a).filter(([i]) => i !== "DEFAULT")
7
+ );
8
+ }
9
+ var s = l(
10
+ ({ addUtilities: a, matchUtilities: i, theme: n }) => {
11
+ a({
12
+ "@keyframes enter": n("keyframes.enter"),
13
+ "@keyframes exit": n("keyframes.exit"),
14
+ ".animate-in": {
15
+ animationName: "enter",
16
+ animationDuration: n("animationDuration.DEFAULT"),
17
+ "--tw-enter-opacity": "initial",
18
+ "--tw-enter-scale": "initial",
19
+ "--tw-enter-rotate": "initial",
20
+ "--tw-enter-translate-x": "initial",
21
+ "--tw-enter-translate-y": "initial"
22
+ },
23
+ ".animate-out": {
24
+ animationName: "exit",
25
+ animationDuration: n("animationDuration.DEFAULT"),
26
+ "--tw-exit-opacity": "initial",
27
+ "--tw-exit-scale": "initial",
28
+ "--tw-exit-rotate": "initial",
29
+ "--tw-exit-translate-x": "initial",
30
+ "--tw-exit-translate-y": "initial"
31
+ }
32
+ }), i(
33
+ {
34
+ "fade-in": (t) => ({ "--tw-enter-opacity": t }),
35
+ "fade-out": (t) => ({ "--tw-exit-opacity": t })
36
+ },
37
+ { values: n("animationOpacity") }
38
+ ), i(
39
+ {
40
+ "zoom-in": (t) => ({ "--tw-enter-scale": t }),
41
+ "zoom-out": (t) => ({ "--tw-exit-scale": t })
42
+ },
43
+ { values: n("animationScale") }
44
+ ), i(
45
+ {
46
+ "spin-in": (t) => ({ "--tw-enter-rotate": t }),
47
+ "spin-out": (t) => ({ "--tw-exit-rotate": t })
48
+ },
49
+ { values: n("animationRotate") }
50
+ ), i(
51
+ {
52
+ "slide-in-from-top": (t) => ({
53
+ "--tw-enter-translate-y": `-${t}`
54
+ }),
55
+ "slide-in-from-bottom": (t) => ({
56
+ "--tw-enter-translate-y": t
57
+ }),
58
+ "slide-in-from-left": (t) => ({
59
+ "--tw-enter-translate-x": `-${t}`
60
+ }),
61
+ "slide-in-from-right": (t) => ({
62
+ "--tw-enter-translate-x": t
63
+ }),
64
+ "slide-out-to-top": (t) => ({
65
+ "--tw-exit-translate-y": `-${t}`
66
+ }),
67
+ "slide-out-to-bottom": (t) => ({
68
+ "--tw-exit-translate-y": t
69
+ }),
70
+ "slide-out-to-left": (t) => ({
71
+ "--tw-exit-translate-x": `-${t}`
72
+ }),
73
+ "slide-out-to-right": (t) => ({
74
+ "--tw-exit-translate-x": t
75
+ })
76
+ },
77
+ { values: n("animationTranslate") }
78
+ ), i(
79
+ { duration: (t) => ({ animationDuration: t }) },
80
+ { values: e(n("animationDuration")) }
81
+ ), i(
82
+ { delay: (t) => ({ animationDelay: t }) },
83
+ { values: n("animationDelay") }
84
+ ), i(
85
+ { ease: (t) => ({ animationTimingFunction: t }) },
86
+ { values: e(n("animationTimingFunction")) }
87
+ ), a({
88
+ ".running": { animationPlayState: "running" },
89
+ ".paused": { animationPlayState: "paused" }
90
+ }), i(
91
+ { "fill-mode": (t) => ({ animationFillMode: t }) },
92
+ { values: n("animationFillMode") }
93
+ ), i(
94
+ { direction: (t) => ({ animationDirection: t }) },
95
+ { values: n("animationDirection") }
96
+ ), i(
97
+ { repeat: (t) => ({ animationIterationCount: t }) },
98
+ { values: n("animationRepeat") }
99
+ );
100
+ },
18
101
  {
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
- ]
102
+ theme: {
103
+ extend: {
104
+ animationDelay: ({ theme: a }) => ({
105
+ ...a("transitionDelay")
106
+ }),
107
+ animationDuration: ({ theme: a }) => ({
108
+ 0: "0ms",
109
+ ...a("transitionDuration")
110
+ }),
111
+ animationTimingFunction: ({ theme: a }) => ({
112
+ ...a("transitionTimingFunction")
113
+ }),
114
+ animationFillMode: {
115
+ none: "none",
116
+ forwards: "forwards",
117
+ backwards: "backwards",
118
+ both: "both"
119
+ },
120
+ animationDirection: {
121
+ normal: "normal",
122
+ reverse: "reverse",
123
+ alternate: "alternate",
124
+ "alternate-reverse": "alternate-reverse"
125
+ },
126
+ animationOpacity: ({ theme: a }) => ({
127
+ DEFAULT: 0,
128
+ ...a("opacity")
129
+ }),
130
+ animationTranslate: ({ theme: a }) => ({
131
+ DEFAULT: "100%",
132
+ ...a("translate")
133
+ }),
134
+ animationScale: ({ theme: a }) => ({
135
+ DEFAULT: 0,
136
+ ...a("scale")
137
+ }),
138
+ animationRotate: ({ theme: a }) => ({
139
+ DEFAULT: "30deg",
140
+ ...a("rotate")
141
+ }),
142
+ animationRepeat: {
143
+ 0: "0",
144
+ 1: "1",
145
+ infinite: "infinite"
146
+ },
147
+ keyframes: {
148
+ enter: {
149
+ from: {
150
+ opacity: "var(--tw-enter-opacity, 1)",
151
+ transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
152
+ }
153
+ },
154
+ exit: {
155
+ to: {
156
+ opacity: "var(--tw-exit-opacity, 1)",
157
+ transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
158
+ }
159
+ }
43
160
  }
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
161
  }
54
- )
162
+ }
55
163
  }
56
164
  );
165
+ const u = /* @__PURE__ */ r(s);
57
166
  export {
58
- y as SliderThumb
167
+ u as default
59
168
  };
@@ -2,7 +2,7 @@ import { j as o } from "./index.es40.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.es41.js";
5
- import { buttonVariants as C } from "./index.es72.js";
5
+ import { buttonVariants as C } from "./index.es68.js";
6
6
  function I(r, i) {
7
7
  const [a, c] = B(r, i, j), {
8
8
  intent: m = "secondary",
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
2
2
  import { forwardRef as x } from "react";
3
3
  import { cn as y } from "./index.es41.js";
4
4
  import { Loader as f } from "./index.es21.js";
5
- import { Overlay as u } from "./index.es68.js";
5
+ import { Overlay as u } from "./index.es69.js";
6
6
  const v = (s, a) => {
7
7
  const {
8
8
  className: l,
@@ -3,8 +3,8 @@ import { NumberField as w, Group as B, Input as E } from "react-aria-components"
3
3
  import { cn as t } from "./index.es41.js";
4
4
  import "./index.es13.js";
5
5
  import { Label as G } from "./index.es14.js";
6
- import { CaptionNumberField as S } from "./index.es69.js";
7
- import { StepperButton as V } from "./index.es70.js";
6
+ import { CaptionNumberField as S } from "./index.es71.js";
7
+ import { StepperButton as V } from "./index.es72.js";
8
8
  import { inputNumberVariant as _ } from "./index.es55.js";
9
9
  const K = ({
10
10
  size: o = "sm",
@@ -3,7 +3,7 @@ import { SearchIcon as P, CrossIcon as y } from "./index.es42.js";
3
3
  import { useMemo as z } from "react";
4
4
  import { ComboBox as D, Input as H, Text as R, FieldError as E, Popover as O, ListBox as F, ListBoxItem as M } from "react-aria-components";
5
5
  import { cn as S } from "./index.es41.js";
6
- import { useDebouncedValue as _ } from "./index.es71.js";
6
+ import { useDebouncedValue as _ } from "./index.es70.js";
7
7
  import { IconButton as T } from "./index.es12.js";
8
8
  import "./index.es13.js";
9
9
  import { Label as $ } from "./index.es14.js";
@@ -2,8 +2,8 @@ import { j as m } from "./index.es40.js";
2
2
  import { useState as q, useEffect as x } from "react";
3
3
  import { Slider as z, SliderTrack as B } from "react-aria-components";
4
4
  import { cn as F } from "./index.es41.js";
5
- import { SliderContainerTrack as G } from "./index.es78.js";
6
- import { validateMinDistance as H } from "./index.es79.js";
5
+ import { SliderContainerTrack as G } from "./index.es74.js";
6
+ import { validateMinDistance as H } from "./index.es75.js";
7
7
  const U = ({
8
8
  type: r = "single",
9
9
  showTypeValue: A = "default",
@@ -3,10 +3,10 @@ import { CheckIcon as I } from "./index.es42.js";
3
3
  import { motion as f } from "framer-motion";
4
4
  import { useRef as k } from "react";
5
5
  import { useButton as D, useHover as V } from "react-aria";
6
- import z from "./index.es75.js";
7
- import B from "./index.es76.js";
6
+ import z from "./index.es76.js";
7
+ import B from "./index.es77.js";
8
8
  import { cn as H } from "./index.es41.js";
9
- import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es77.js";
9
+ import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es78.js";
10
10
  const c = z(B), x = (s, e) => typeof s == "function" ? /* @__PURE__ */ n.jsx(s, { step: e || 0 }) : s, C = (s) => {
11
11
  var t, r, o, a, i;
12
12
  const e = (t = c == null ? void 0 : c.theme) == null ? void 0 : t.colors;
@@ -1,8 +1,8 @@
1
1
  import { j as o } from "./index.es40.js";
2
2
  import { Switch as u } from "react-aria-components";
3
3
  import { cn as c } from "./index.es41.js";
4
- import { ContentSwitch as L } from "./index.es80.js";
5
- import { SwitchIndicator as v } from "./index.es81.js";
4
+ import { ContentSwitch as L } from "./index.es79.js";
5
+ import { SwitchIndicator as v } from "./index.es80.js";
6
6
  import { switchVariants as b } from "./index.es61.js";
7
7
  const E = ({
8
8
  children: f,
@@ -3,9 +3,9 @@ import { useRef as b } from "react";
3
3
  import { useTabList as d } from "react-aria";
4
4
  import { useTabListState as u, Item as N } from "react-stately";
5
5
  import { cn as e } from "./index.es41.js";
6
- import { Tab as j } from "./index.es82.js";
7
- import { TabPanel as h } from "./index.es83.js";
8
- import { tabsVariants as T } from "./index.es84.js";
6
+ import { Tab as j } from "./index.es81.js";
7
+ import { TabPanel as h } from "./index.es82.js";
8
+ import { tabsVariants as T } from "./index.es83.js";
9
9
  const v = (a) => {
10
10
  var l;
11
11
  const {
@@ -3,7 +3,7 @@ import { forwardRef as f, useContext as u } from "react";
3
3
  import { useTooltip as T, mergeProps as h } from "react-aria";
4
4
  import { cn as e } from "./index.es41.js";
5
5
  import { TooltipContext as j } from "./index.es50.js";
6
- import { tooltipVariants as N } from "./index.es74.js";
6
+ import { tooltipVariants as N } from "./index.es84.js";
7
7
  const P = f((p, i) => {
8
8
  const { placement: l = "bottom", className: m, mode: o = "dark", supportText: t, children: a, ...r } = p, { state: n, ...c } = u(j), { tooltipProps: x } = T(r, n), d = e(N({ placement: l, mode: o, hasSupportText: !!t }), m);
9
9
  return /* @__PURE__ */ s.jsxs("span", { className: d, ...h(r, x, c), ref: i, children: [
@@ -1,5 +1,5 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = e("font-normal text-neutral-800", {
2
+ const a = e("font-normal text-neutral-800", {
3
3
  variants: {
4
4
  size: {
5
5
  bodySm: "text-xs",
@@ -9,7 +9,7 @@ const r = e("font-normal text-neutral-800", {
9
9
  defaultVariants: {
10
10
  size: "bodyDefault"
11
11
  }
12
- }), a = e(
12
+ }), r = e(
13
13
  "flex w-fit items-center gap-2 rounded-sm border border-transparent bg-transparent transition-colors duration-200",
14
14
  {
15
15
  variants: {
@@ -22,7 +22,7 @@ const r = e("font-normal text-neutral-800", {
22
22
  hover: "border-blue-100 bg-transparent",
23
23
  active: "!border-primary-500 !bg-neutral-50 focus-within:!border-primary-500 focus-within:!bg-neutral-50",
24
24
  error: "!border-error-500 !bg-neutral-50 focus-within:!border-error-500 focus-within:!bg-neutral-50",
25
- disabled: "border-transparent bg-transparent cursor-not-allowed opacity-60"
25
+ disabled: "border-transparent bg-transparent cursor-not-allowed opacity-50"
26
26
  }
27
27
  },
28
28
  defaultVariants: {
@@ -51,7 +51,7 @@ const r = e("font-normal text-neutral-800", {
51
51
  size: "bodyDefault"
52
52
  }
53
53
  }), i = e(
54
- "flex items-center justify-center rounded bg-transparent text-primary-500 transition-colors hover:bg-neutral-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1",
54
+ "flex items-center justify-center rounded bg-transparent text-primary-500 transition-colors hover:bg-neutral-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent",
55
55
  {
56
56
  variants: {
57
57
  size: {
@@ -92,7 +92,7 @@ const r = e("font-normal text-neutral-800", {
92
92
  false: ""
93
93
  },
94
94
  isDisabled: {
95
- true: "cursor-not-allowed text-neutral-300",
95
+ true: "!cursor-not-allowed text-neutral-300 opacity-30",
96
96
  false: ""
97
97
  },
98
98
  isOutsideMonth: {
@@ -118,6 +118,11 @@ const r = e("font-normal text-neutral-800", {
118
118
  isSelected: !1,
119
119
  isDisabled: !1,
120
120
  class: "rounded-full bg-neutral-100"
121
+ },
122
+ {
123
+ isDisabled: !0,
124
+ isSelected: !0,
125
+ class: "bg-neutral-300 text-neutral-500 opacity-50 cursor-not-allowed"
121
126
  }
122
127
  ],
123
128
  defaultVariants: {
@@ -139,9 +144,9 @@ export {
139
144
  l as calendarVariants,
140
145
  i as datepickerButtonVariants,
141
146
  s as datepickerCaptionVariants,
142
- a as datepickerGroupVariants,
147
+ r as datepickerGroupVariants,
143
148
  n as datepickerInputVariants,
144
- r as datepickerLabelVariants,
149
+ a as datepickerLabelVariants,
145
150
  o as datepickerSegmentVariants,
146
151
  p as popoverVariants
147
152
  };
package/dist/index.es6.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./index.es40.js";
2
2
  import { Checkbox as h } from "react-aria-components";
3
3
  import { cn as m } from "./index.es41.js";
4
- import { MarkIcon as i } from "./index.es66.js";
4
+ import { MarkIcon as i } from "./index.es63.js";
5
5
  import { checkboxVariants as j } from "./index.es45.js";
6
6
  const g = ({
7
7
  isIndeterminate: x = !1,
@@ -1,20 +1,32 @@
1
- import { j as r } from "./index.es40.js";
2
- import { ColorArea as s, ColorThumb as l } from "react-aria-components";
3
- function t({ color: o, onChange: e, ...a }) {
4
- return /* @__PURE__ */ r.jsx(
5
- s,
1
+ import { j as e } from "./index.es40.js";
2
+ import { cn as l } from "./index.es41.js";
3
+ const m = (r) => {
4
+ const { isIndeterminate: t, isSelected: s, className: n, isHovered: a } = r, o = a && !s && !t ? "text-neutral-500" : "", i = !!(o || s);
5
+ return /* @__PURE__ */ e.jsx("svg", { className: l("stroke-current", o, n), viewBox: "-1 1 17 17", children: t ? /* @__PURE__ */ e.jsx(
6
+ "line",
6
7
  {
7
- colorSpace: "hsb",
8
- xChannel: "saturation",
9
- yChannel: "brightness",
10
- value: o,
11
- className: "mb-2 h-32 w-48 rounded border",
12
- onChange: e,
13
- ...a,
14
- children: /* @__PURE__ */ r.jsx(l, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" })
8
+ x1: 1,
9
+ y1: 10,
10
+ x2: 14,
11
+ y2: 10,
12
+ fill: "none",
13
+ strokeWidth: 2,
14
+ strokeDasharray: 14,
15
+ strokeDashoffset: s ? 28 : 42,
16
+ style: { transition: "all 400ms" }
15
17
  }
16
- );
17
- }
18
+ ) : /* @__PURE__ */ e.jsx(
19
+ "polyline",
20
+ {
21
+ points: "1 9 7 14 15 4",
22
+ fill: "none",
23
+ strokeWidth: 2,
24
+ strokeDasharray: 22,
25
+ strokeDashoffset: i ? 44 : 66,
26
+ style: { transition: "all 400ms" }
27
+ }
28
+ ) });
29
+ };
18
30
  export {
19
- t as ColorArea
31
+ m as MarkIcon
20
32
  };
@@ -1,19 +1,20 @@
1
- import { j as e } from "./index.es40.js";
2
- import { ColorField as n, Input as t } from "react-aria-components";
3
- function p(o) {
4
- const { isDisabled: l, inputProps: r = {}, ...s } = o;
5
- return /* @__PURE__ */ e.jsx(n, { className: "relative flex h-8 w-32 items-center", isDisabled: l, ...s, children: /* @__PURE__ */ e.jsx(
6
- t,
1
+ import { j as r } from "./index.es40.js";
2
+ import { ColorArea as s, ColorThumb as l } from "react-aria-components";
3
+ function t({ color: o, onChange: e, ...a }) {
4
+ return /* @__PURE__ */ r.jsx(
5
+ s,
7
6
  {
8
- className: "size-full border-none bg-transparent p-0 outline-none focus:outline-none focus:ring-0",
9
- maxLength: 7,
10
- "aria-label": "Color hex",
11
- spellCheck: !1,
12
- autoComplete: "off",
13
- ...r
7
+ colorSpace: "hsb",
8
+ xChannel: "saturation",
9
+ yChannel: "brightness",
10
+ value: o,
11
+ className: "mb-2 h-32 w-48 rounded border",
12
+ onChange: e,
13
+ ...a,
14
+ children: /* @__PURE__ */ r.jsx(l, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" })
14
15
  }
15
- ) });
16
+ );
16
17
  }
17
18
  export {
18
- p as ColorField
19
+ t as ColorArea
19
20
  };
@@ -1,18 +1,19 @@
1
- import { j as r } from "./index.es40.js";
2
- import { ColorSlider as f, SliderTrack as l, ColorThumb as i } from "react-aria-components";
3
- function d(e) {
4
- const { color: o } = e;
5
- return /* @__PURE__ */ r.jsx(
6
- f,
1
+ import { j as e } from "./index.es40.js";
2
+ import { ColorField as n, Input as t } from "react-aria-components";
3
+ function p(o) {
4
+ const { isDisabled: l, inputProps: r = {}, ...s } = o;
5
+ return /* @__PURE__ */ e.jsx(n, { className: "relative flex h-8 w-32 items-center", isDisabled: l, ...s, children: /* @__PURE__ */ e.jsx(
6
+ t,
7
7
  {
8
- channel: "hue",
9
- value: o,
10
- className: "mb-2 h-4 w-48 rounded border bg-[linear-gradient(to_right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000)]",
11
- ...e,
12
- children: /* @__PURE__ */ r.jsx(l, { className: "size-full", children: /* @__PURE__ */ r.jsx(i, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" }) })
8
+ className: "size-full border-none bg-transparent p-0 outline-none focus:outline-none focus:ring-0",
9
+ maxLength: 7,
10
+ "aria-label": "Color hex",
11
+ spellCheck: !1,
12
+ autoComplete: "off",
13
+ ...r
13
14
  }
14
- );
15
+ ) });
15
16
  }
16
17
  export {
17
- d as ColorSlider
18
+ p as ColorField
18
19
  };
@@ -1,32 +1,18 @@
1
- import { j as e } from "./index.es40.js";
2
- import { cn as l } from "./index.es41.js";
3
- const m = (r) => {
4
- const { isIndeterminate: t, isSelected: s, className: n, isHovered: a } = r, o = a && !s && !t ? "text-neutral-500" : "", i = !!(o || s);
5
- return /* @__PURE__ */ e.jsx("svg", { className: l("stroke-current", o, n), viewBox: "-1 1 17 17", children: t ? /* @__PURE__ */ e.jsx(
6
- "line",
1
+ import { j as r } from "./index.es40.js";
2
+ import { ColorSlider as f, SliderTrack as l, ColorThumb as i } from "react-aria-components";
3
+ function d(e) {
4
+ const { color: o } = e;
5
+ return /* @__PURE__ */ r.jsx(
6
+ f,
7
7
  {
8
- x1: 1,
9
- y1: 10,
10
- x2: 14,
11
- y2: 10,
12
- fill: "none",
13
- strokeWidth: 2,
14
- strokeDasharray: 14,
15
- strokeDashoffset: s ? 28 : 42,
16
- style: { transition: "all 400ms" }
8
+ channel: "hue",
9
+ value: o,
10
+ className: "mb-2 h-4 w-48 rounded border bg-[linear-gradient(to_right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000)]",
11
+ ...e,
12
+ children: /* @__PURE__ */ r.jsx(l, { className: "size-full", children: /* @__PURE__ */ r.jsx(i, { className: "box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6" }) })
17
13
  }
18
- ) : /* @__PURE__ */ e.jsx(
19
- "polyline",
20
- {
21
- points: "1 9 7 14 15 4",
22
- fill: "none",
23
- strokeWidth: 2,
24
- strokeDasharray: 22,
25
- strokeDashoffset: i ? 44 : 66,
26
- style: { transition: "all 400ms" }
27
- }
28
- ) });
29
- };
14
+ );
15
+ }
30
16
  export {
31
- m as MarkIcon
17
+ d as ColorSlider
32
18
  };