@simpli-route/apollo-ds 0.1.80 → 0.1.81

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 (151) hide show
  1. package/dist/components/SelectInput/types.d.ts +5 -0
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs105.js +1 -1
  4. package/dist/index.cjs106.js +1 -1
  5. package/dist/index.cjs11.js +1 -1
  6. package/dist/index.cjs12.js +1 -1
  7. package/dist/index.cjs123.js +1 -1
  8. package/dist/index.cjs124.js +1 -1
  9. package/dist/index.cjs125.js +1 -1
  10. package/dist/index.cjs126.js +1 -1
  11. package/dist/index.cjs127.js +1 -1
  12. package/dist/index.cjs128.js +1 -1
  13. package/dist/index.cjs129.js +1 -1
  14. package/dist/index.cjs13.js +1 -1
  15. package/dist/index.cjs130.js +1 -1
  16. package/dist/index.cjs131.js +1 -1
  17. package/dist/index.cjs138.js +1 -1
  18. package/dist/index.cjs139.js +1 -1
  19. package/dist/index.cjs142.js +1 -1
  20. package/dist/index.cjs144.js +1 -1
  21. package/dist/index.cjs145.js +1 -1
  22. package/dist/index.cjs146.js +1 -1
  23. package/dist/index.cjs147.js +1 -1
  24. package/dist/index.cjs148.js +1 -1
  25. package/dist/index.cjs149.js +1 -1
  26. package/dist/index.cjs15.js +1 -1
  27. package/dist/index.cjs150.js +1 -1
  28. package/dist/index.cjs151.js +1 -1
  29. package/dist/index.cjs152.js +1 -1
  30. package/dist/index.cjs153.js +1 -1
  31. package/dist/index.cjs154.js +1 -1
  32. package/dist/index.cjs155.js +1 -1
  33. package/dist/index.cjs156.js +1 -1
  34. package/dist/index.cjs157.js +1 -1
  35. package/dist/index.cjs158.js +1 -1
  36. package/dist/index.cjs159.js +1 -1
  37. package/dist/index.cjs16.js +1 -1
  38. package/dist/index.cjs160.js +1 -1
  39. package/dist/index.cjs170.js +1 -1
  40. package/dist/index.cjs171.js +1 -1
  41. package/dist/index.cjs174.js +1 -1
  42. package/dist/index.cjs175.js +1 -1
  43. package/dist/index.cjs176.js +1 -1
  44. package/dist/index.cjs20.js +1 -1
  45. package/dist/index.cjs26.js +1 -1
  46. package/dist/index.cjs28.js +1 -1
  47. package/dist/index.cjs29.js +1 -1
  48. package/dist/index.cjs32.js +1 -1
  49. package/dist/index.cjs4.js +1 -1
  50. package/dist/index.cjs5.js +1 -1
  51. package/dist/index.cjs52.js +1 -1
  52. package/dist/index.cjs53.js +1 -1
  53. package/dist/index.cjs54.js +1 -1
  54. package/dist/index.cjs56.js +1 -1
  55. package/dist/index.cjs57.js +1 -1
  56. package/dist/index.cjs58.js +1 -1
  57. package/dist/index.cjs77.js +1 -1
  58. package/dist/index.cjs78.js +1 -1
  59. package/dist/index.cjs79.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.cjs84.js +1 -1
  65. package/dist/index.cjs85.js +1 -1
  66. package/dist/index.cjs88.js +1 -1
  67. package/dist/index.cjs9.js +1 -1
  68. package/dist/index.cjs90.js +1 -1
  69. package/dist/index.cjs93.js +1 -1
  70. package/dist/index.es10.js +2 -2
  71. package/dist/index.es105.js +1 -1
  72. package/dist/index.es106.js +1 -1
  73. package/dist/index.es11.js +1 -1
  74. package/dist/index.es12.js +3 -3
  75. package/dist/index.es123.js +2 -43
  76. package/dist/index.es124.js +2 -30
  77. package/dist/index.es125.js +43 -5
  78. package/dist/index.es126.js +30 -4
  79. package/dist/index.es127.js +5 -3
  80. package/dist/index.es128.js +3 -18
  81. package/dist/index.es129.js +3 -57
  82. package/dist/index.es13.js +1 -1
  83. package/dist/index.es130.js +19 -2
  84. package/dist/index.es131.js +57 -2
  85. package/dist/index.es138.js +15 -15
  86. package/dist/index.es139.js +1 -1
  87. package/dist/index.es142.js +3 -3
  88. package/dist/index.es144.js +1 -1
  89. package/dist/index.es145.js +2 -2
  90. package/dist/index.es146.js +2 -2
  91. package/dist/index.es147.js +7 -17
  92. package/dist/index.es148.js +1064 -191
  93. package/dist/index.es149.js +4 -16
  94. package/dist/index.es15.js +51 -41
  95. package/dist/index.es150.js +21 -347
  96. package/dist/index.es151.js +187 -19
  97. package/dist/index.es152.js +8 -11
  98. package/dist/index.es153.js +344 -145
  99. package/dist/index.es154.js +18 -11
  100. package/dist/index.es155.js +11 -9
  101. package/dist/index.es156.js +144 -201
  102. package/dist/index.es157.js +13 -64
  103. package/dist/index.es158.js +207 -10
  104. package/dist/index.es159.js +68 -4
  105. package/dist/index.es16.js +1 -1
  106. package/dist/index.es160.js +14 -4
  107. package/dist/index.es161.js +2 -2
  108. package/dist/index.es162.js +2 -2
  109. package/dist/index.es163.js +2 -2
  110. package/dist/index.es164.js +2 -2
  111. package/dist/index.es165.js +2 -2
  112. package/dist/index.es166.js +2 -2
  113. package/dist/index.es167.js +2 -2
  114. package/dist/index.es168.js +2 -2
  115. package/dist/index.es169.js +2 -2
  116. package/dist/index.es170.js +2 -2
  117. package/dist/index.es171.js +2 -1063
  118. package/dist/index.es174.js +59 -20
  119. package/dist/index.es175.js +20 -4
  120. package/dist/index.es176.js +2 -57
  121. package/dist/index.es20.js +1 -1
  122. package/dist/index.es26.js +1 -1
  123. package/dist/index.es28.js +2 -2
  124. package/dist/index.es29.js +4 -4
  125. package/dist/index.es32.js +47 -46
  126. package/dist/index.es4.js +3 -3
  127. package/dist/index.es5.js +2 -2
  128. package/dist/index.es52.js +34 -4
  129. package/dist/index.es53.js +24 -35
  130. package/dist/index.es54.js +23 -92
  131. package/dist/index.es56.js +4 -171
  132. package/dist/index.es57.js +92 -23
  133. package/dist/index.es58.js +167 -30
  134. package/dist/index.es77.js +163 -30
  135. package/dist/index.es78.js +38 -15
  136. package/dist/index.es79.js +37 -14
  137. package/dist/index.es80.js +10 -16
  138. package/dist/index.es81.js +11 -39
  139. package/dist/index.es82.js +10 -163
  140. package/dist/index.es83.js +18 -10
  141. package/dist/index.es84.js +16 -11
  142. package/dist/index.es85.js +16 -10
  143. package/dist/index.es88.js +2 -2
  144. package/dist/index.es9.js +5 -5
  145. package/dist/index.es90.js +2 -2
  146. package/dist/index.es93.js +1 -1
  147. package/dist/stories/SelectInput.stories.d.ts +3 -0
  148. package/package.json +1 -1
  149. package/dist/components/SearchField/utils.d.ts +0 -21
  150. package/dist/stories/FilterButton.stories.d.ts +0 -16
  151. package/dist/stories/RangeCalendar.stories.d.ts +0 -13
@@ -1,20 +1,59 @@
1
- import { __exports as i } from "./index.es175.js";
2
- import "./index.es188.js";
3
- import { __exports as o } from "./index.es189.js";
4
- (function(t) {
5
- Object.defineProperty(t, "__esModule", {
6
- value: !0
7
- }), Object.defineProperty(t, "default", {
8
- enumerable: !0,
9
- get: function() {
10
- return n;
11
- }
12
- });
13
- const r = /* @__PURE__ */ u(o);
14
- function u(e) {
15
- return e && e.__esModule ? e : {
16
- default: e
17
- };
18
- }
19
- const n = r.default;
20
- })(i);
1
+ var f = {
2
+ aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
3
+ azure: /#f0ffff(ff)?(?!\w)/gi,
4
+ beige: /#f5f5dc(ff)?(?!\w)/gi,
5
+ bisque: /#ffe4c4(ff)?(?!\w)/gi,
6
+ black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
7
+ blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
8
+ brown: /#a52a2a(ff)?(?!\w)/gi,
9
+ coral: /#ff7f50(ff)?(?!\w)/gi,
10
+ cornsilk: /#fff8dc(ff)?(?!\w)/gi,
11
+ crimson: /#dc143c(ff)?(?!\w)/gi,
12
+ cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
13
+ darkblue: /#00008b(ff)?(?!\w)/gi,
14
+ darkcyan: /#008b8b(ff)?(?!\w)/gi,
15
+ darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
16
+ darkred: /#8b0000(ff)?(?!\w)/gi,
17
+ deeppink: /#ff1493(ff)?(?!\w)/gi,
18
+ dimgrey: /#696969(ff)?(?!\w)/gi,
19
+ gold: /#ffd700(ff)?(?!\w)/gi,
20
+ green: /#008000(ff)?(?!\w)/gi,
21
+ grey: /#808080(ff)?(?!\w)/gi,
22
+ honeydew: /#f0fff0(ff)?(?!\w)/gi,
23
+ hotpink: /#ff69b4(ff)?(?!\w)/gi,
24
+ indigo: /#4b0082(ff)?(?!\w)/gi,
25
+ ivory: /#fffff0(ff)?(?!\w)/gi,
26
+ khaki: /#f0e68c(ff)?(?!\w)/gi,
27
+ lavender: /#e6e6fa(ff)?(?!\w)/gi,
28
+ lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
29
+ linen: /#faf0e6(ff)?(?!\w)/gi,
30
+ maroon: /#800000(ff)?(?!\w)/gi,
31
+ moccasin: /#ffe4b5(ff)?(?!\w)/gi,
32
+ navy: /#000080(ff)?(?!\w)/gi,
33
+ oldlace: /#fdf5e6(ff)?(?!\w)/gi,
34
+ olive: /#808000(ff)?(?!\w)/gi,
35
+ orange: /#ffa500(ff)?(?!\w)/gi,
36
+ orchid: /#da70d6(ff)?(?!\w)/gi,
37
+ peru: /#cd853f(ff)?(?!\w)/gi,
38
+ pink: /#ffc0cb(ff)?(?!\w)/gi,
39
+ plum: /#dda0dd(ff)?(?!\w)/gi,
40
+ purple: /#800080(ff)?(?!\w)/gi,
41
+ red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
42
+ salmon: /#fa8072(ff)?(?!\w)/gi,
43
+ seagreen: /#2e8b57(ff)?(?!\w)/gi,
44
+ seashell: /#fff5ee(ff)?(?!\w)/gi,
45
+ sienna: /#a0522d(ff)?(?!\w)/gi,
46
+ silver: /#c0c0c0(ff)?(?!\w)/gi,
47
+ skyblue: /#87ceeb(ff)?(?!\w)/gi,
48
+ snow: /#fffafa(ff)?(?!\w)/gi,
49
+ tan: /#d2b48c(ff)?(?!\w)/gi,
50
+ teal: /#008080(ff)?(?!\w)/gi,
51
+ thistle: /#d8bfd8(ff)?(?!\w)/gi,
52
+ tomato: /#ff6347(ff)?(?!\w)/gi,
53
+ violet: /#ee82ee(ff)?(?!\w)/gi,
54
+ wheat: /#f5deb3(ff)?(?!\w)/gi,
55
+ white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi
56
+ };
57
+ export {
58
+ f as s
59
+ };
@@ -1,4 +1,20 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
1
+ import { __exports as i } from "./index.es176.js";
2
+ import "./index.es188.js";
3
+ import { __exports as o } from "./index.es189.js";
4
+ (function(t) {
5
+ Object.defineProperty(t, "__esModule", {
6
+ value: !0
7
+ }), Object.defineProperty(t, "default", {
8
+ enumerable: !0,
9
+ get: function() {
10
+ return n;
11
+ }
12
+ });
13
+ const r = /* @__PURE__ */ u(o);
14
+ function u(e) {
15
+ return e && e.__esModule ? e : {
16
+ default: e
17
+ };
18
+ }
19
+ const n = r.default;
20
+ })(i);
@@ -1,59 +1,4 @@
1
- var f = {
2
- aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
3
- azure: /#f0ffff(ff)?(?!\w)/gi,
4
- beige: /#f5f5dc(ff)?(?!\w)/gi,
5
- bisque: /#ffe4c4(ff)?(?!\w)/gi,
6
- black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
7
- blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
8
- brown: /#a52a2a(ff)?(?!\w)/gi,
9
- coral: /#ff7f50(ff)?(?!\w)/gi,
10
- cornsilk: /#fff8dc(ff)?(?!\w)/gi,
11
- crimson: /#dc143c(ff)?(?!\w)/gi,
12
- cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
13
- darkblue: /#00008b(ff)?(?!\w)/gi,
14
- darkcyan: /#008b8b(ff)?(?!\w)/gi,
15
- darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
16
- darkred: /#8b0000(ff)?(?!\w)/gi,
17
- deeppink: /#ff1493(ff)?(?!\w)/gi,
18
- dimgrey: /#696969(ff)?(?!\w)/gi,
19
- gold: /#ffd700(ff)?(?!\w)/gi,
20
- green: /#008000(ff)?(?!\w)/gi,
21
- grey: /#808080(ff)?(?!\w)/gi,
22
- honeydew: /#f0fff0(ff)?(?!\w)/gi,
23
- hotpink: /#ff69b4(ff)?(?!\w)/gi,
24
- indigo: /#4b0082(ff)?(?!\w)/gi,
25
- ivory: /#fffff0(ff)?(?!\w)/gi,
26
- khaki: /#f0e68c(ff)?(?!\w)/gi,
27
- lavender: /#e6e6fa(ff)?(?!\w)/gi,
28
- lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
29
- linen: /#faf0e6(ff)?(?!\w)/gi,
30
- maroon: /#800000(ff)?(?!\w)/gi,
31
- moccasin: /#ffe4b5(ff)?(?!\w)/gi,
32
- navy: /#000080(ff)?(?!\w)/gi,
33
- oldlace: /#fdf5e6(ff)?(?!\w)/gi,
34
- olive: /#808000(ff)?(?!\w)/gi,
35
- orange: /#ffa500(ff)?(?!\w)/gi,
36
- orchid: /#da70d6(ff)?(?!\w)/gi,
37
- peru: /#cd853f(ff)?(?!\w)/gi,
38
- pink: /#ffc0cb(ff)?(?!\w)/gi,
39
- plum: /#dda0dd(ff)?(?!\w)/gi,
40
- purple: /#800080(ff)?(?!\w)/gi,
41
- red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
42
- salmon: /#fa8072(ff)?(?!\w)/gi,
43
- seagreen: /#2e8b57(ff)?(?!\w)/gi,
44
- seashell: /#fff5ee(ff)?(?!\w)/gi,
45
- sienna: /#a0522d(ff)?(?!\w)/gi,
46
- silver: /#c0c0c0(ff)?(?!\w)/gi,
47
- skyblue: /#87ceeb(ff)?(?!\w)/gi,
48
- snow: /#fffafa(ff)?(?!\w)/gi,
49
- tan: /#d2b48c(ff)?(?!\w)/gi,
50
- teal: /#008080(ff)?(?!\w)/gi,
51
- thistle: /#d8bfd8(ff)?(?!\w)/gi,
52
- tomato: /#ff6347(ff)?(?!\w)/gi,
53
- violet: /#ee82ee(ff)?(?!\w)/gi,
54
- wheat: /#f5deb3(ff)?(?!\w)/gi,
55
- white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi
56
- };
1
+ var e = {};
57
2
  export {
58
- f as s
3
+ e as __exports
59
4
  };
@@ -4,7 +4,7 @@ import { useFilter as X, Select as Y, FieldError as Z, Popover as $ } from "reac
4
4
  import { cn as r } from "./index.es50.js";
5
5
  import "./index.es17.js";
6
6
  import { Label as ee } from "./index.es18.js";
7
- import { PopoverContent as ae } from "./index.es81.js";
7
+ import { PopoverContent as ae } from "./index.es79.js";
8
8
  import { InvisibleSelectContent as le } from "./index.es21.js";
9
9
  import { invisibleSelectContainerVariants as ie, invisibleSelectLabelVariants as se, invisibleSelectCaptionVariants as re, invisibleSelectPopoverVariants as te } from "./index.es65.js";
10
10
  const ne = (C, N) => {
@@ -2,7 +2,7 @@ import { j as e } from "./index.es49.js";
2
2
  import { forwardRef as x } from "react";
3
3
  import { cn as y } from "./index.es50.js";
4
4
  import { Loader as f } from "./index.es25.js";
5
- import { Overlay as u } from "./index.es85.js";
5
+ import { Overlay as u } from "./index.es82.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.es50.js";
4
4
  import "./index.es17.js";
5
5
  import { Label as G } from "./index.es18.js";
6
- import { CaptionNumberField as S } from "./index.es83.js";
7
- import { StepperButton as V } from "./index.es84.js";
6
+ import { CaptionNumberField as S } from "./index.es80.js";
7
+ import { StepperButton as V } from "./index.es81.js";
8
8
  import { inputNumberVariant as _ } from "./index.es67.js";
9
9
  const K = ({
10
10
  size: o = "sm",
@@ -5,16 +5,16 @@ import "react";
5
5
  import { cn as s } from "./index.es50.js";
6
6
  import "./index.es17.js";
7
7
  import { Label as M } from "./index.es18.js";
8
- import "./index.es52.js";
8
+ import "./index.es56.js";
9
9
  import "./index.es16.js";
10
10
  import "react-aria";
11
- import "./index.es54.js";
11
+ import "./index.es57.js";
12
12
  import "./index.es5.js";
13
13
  import "./index.es7.js";
14
14
  import "./index.es55.js";
15
- import "./index.es56.js";
16
- import "./index.es57.js";
17
15
  import "./index.es58.js";
16
+ import "./index.es54.js";
17
+ import "./index.es52.js";
18
18
  import "@react-stately/color";
19
19
  import "./index.es59.js";
20
20
  import "./index.es60.js";
@@ -1,25 +1,25 @@
1
1
  import { j as e } from "./index.es49.js";
2
2
  import { forwardRef as U, useState as W } from "react";
3
3
  import { useFilter as X, Popover as Y, FieldError as Z, Select as C } from "react-aria-components";
4
- import { cn as n } from "./index.es50.js";
4
+ import { cn as o } from "./index.es50.js";
5
5
  import "./index.es17.js";
6
6
  import { Label as $ } from "./index.es18.js";
7
- import { PopoverContent as ee } from "./index.es81.js";
7
+ import { PopoverContent as ee } from "./index.es79.js";
8
8
  import { SelectContent as le } from "./index.es92.js";
9
9
  import { selectInputPopoverVariants as te } from "./index.es59.js";
10
10
  const se = (I, P) => {
11
11
  const {
12
- label: p,
12
+ label: m,
13
13
  items: V,
14
- selectionMode: r = "single",
15
- value: u,
16
- defaultValue: d,
14
+ selectionMode: a = "single",
15
+ value: p,
16
+ defaultValue: u,
17
17
  placeholder: F = "Select",
18
- isDisabled: s = !1,
18
+ isDisabled: t = !1,
19
19
  isRequired: L = !1,
20
20
  size: y = "xs",
21
21
  className: M,
22
- classNameLabel: f,
22
+ classNameLabel: d,
23
23
  classNameButton: O,
24
24
  classNamePopover: R,
25
25
  tooltipText: T,
@@ -32,33 +32,32 @@ const se = (I, P) => {
32
32
  classNameSearchField: q,
33
33
  classNameSearchFieldInput: B,
34
34
  virtualizedList: _ = !1,
35
- validationState: x,
36
- errorMessage: o,
35
+ validationState: f,
36
+ errorMessage: n,
37
37
  errorClassName: k,
38
- onOpenChange: i,
39
- ...h
40
- } = I, { contains: G } = X({ sensitivity: "base" }), [H, v] = W(() => d !== void 0 ? d : r === "multiple" ? [] : null), c = u !== void 0, a = c ? u : H, S = (t) => {
41
- i == null || i(t);
42
- }, m = x === "invalid" && !s, J = n("text-sm leading-6 text-error-500", k), K = (t) => {
43
- if (r === "multiple" && a && Array.isArray(a)) {
44
- const b = a.filter((Q) => Q !== t);
45
- c || v(b), l == null || l(b);
38
+ defaultOpen: x = !1,
39
+ onOpenChange: h,
40
+ ...v
41
+ } = I, { contains: G } = X({ sensitivity: "base" }), [H, S] = W(() => u !== void 0 ? u : a === "multiple" ? [] : null), i = p !== void 0, s = i ? p : H, c = f === "invalid" && !t, J = o("text-sm leading-6 text-error-500", k), K = (r) => {
42
+ if (a === "multiple" && s && Array.isArray(s)) {
43
+ const g = s.filter((Q) => Q !== r);
44
+ i || S(g), l == null || l(g);
46
45
  }
47
- }, N = (t) => {
48
- c || v(t), l == null || l(t);
49
- }, g = n("flex w-full flex-col gap-1", M), j = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
50
- p ? /* @__PURE__ */ e.jsx(
46
+ }, N = (r) => {
47
+ i || S(r), l == null || l(r);
48
+ }, j = o("flex w-full flex-col gap-1", M), b = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
49
+ m ? /* @__PURE__ */ e.jsx(
51
50
  $,
52
51
  {
53
- labelClassName: n("mb-[1px] text-left leading-[19.07px]", {
54
- "text-neutral-700": s,
55
- [f || ""]: !!f
52
+ labelClassName: o("mb-[1px] text-left leading-[19.07px]", {
53
+ "text-neutral-700": t,
54
+ [d || ""]: !!d
56
55
  }),
57
56
  isRequired: L,
58
57
  tooltipText: T,
59
58
  tooltipSupportText: w,
60
59
  tooltipProps: z,
61
- children: p
60
+ children: m
62
61
  }
63
62
  ) : null,
64
63
  /* @__PURE__ */ e.jsx(
@@ -66,16 +65,16 @@ const se = (I, P) => {
66
65
  {
67
66
  ref: P,
68
67
  size: y,
69
- isDisabled: s,
68
+ isDisabled: t,
70
69
  classNameButton: O,
71
- selectionMode: r,
70
+ selectionMode: a,
72
71
  maxLengthTextOption: A,
73
72
  handleDeleteOptionSelected: K,
74
73
  placeholder: F,
75
- validationState: x
74
+ validationState: f
76
75
  }
77
76
  ),
78
- /* @__PURE__ */ e.jsx(Y, { className: n(te(), R), children: /* @__PURE__ */ e.jsx(
77
+ /* @__PURE__ */ e.jsx(Y, { className: o(te(), R), children: /* @__PURE__ */ e.jsx(
79
78
  ee,
80
79
  {
81
80
  enableSearch: E,
@@ -87,33 +86,35 @@ const se = (I, P) => {
87
86
  virtualizedList: _
88
87
  }
89
88
  ) }),
90
- m && o ? /* @__PURE__ */ e.jsx(Z, { className: J, children: typeof o != "function" ? o : null }) : null
89
+ c && n ? /* @__PURE__ */ e.jsx(Z, { className: J, children: typeof n != "function" ? n : null }) : null
91
90
  ] });
92
- return r === "multiple" ? /* @__PURE__ */ e.jsx(
91
+ return a === "multiple" ? /* @__PURE__ */ e.jsx(
93
92
  C,
94
93
  {
95
- ...h,
96
- className: g,
94
+ ...v,
95
+ className: j,
97
96
  selectionMode: "multiple",
98
- isDisabled: s,
99
- isInvalid: m,
100
- value: a,
101
- onOpenChange: S,
97
+ defaultOpen: x,
98
+ isDisabled: t,
99
+ isInvalid: c,
100
+ value: s,
101
+ onOpenChange: h,
102
102
  onChange: N,
103
- children: j
103
+ children: b
104
104
  }
105
105
  ) : /* @__PURE__ */ e.jsx(
106
106
  C,
107
107
  {
108
- ...h,
109
- className: g,
108
+ ...v,
109
+ className: j,
110
110
  selectionMode: "single",
111
- isDisabled: s,
112
- isInvalid: m,
113
- value: a,
114
- onOpenChange: S,
111
+ defaultOpen: x,
112
+ isDisabled: t,
113
+ isInvalid: c,
114
+ value: s,
115
+ onOpenChange: h,
115
116
  onChange: N,
116
- children: j
117
+ children: b
117
118
  }
118
119
  );
119
120
  }, de = U(se);
package/dist/index.es4.js CHANGED
@@ -5,9 +5,9 @@ import { ComboBox as ie, Group as re, Input as ce, Text as C, Popover as me, Lis
5
5
  import { cn as p } from "./index.es50.js";
6
6
  import "./index.es17.js";
7
7
  import { Label as de } from "./index.es18.js";
8
- import { AutocompleteContext as pe } from "./index.es52.js";
9
- import { AutocompleteToggle as xe } from "./index.es53.js";
10
- import { comboBoxVariants as fe, autocompleteGroupVariants as Ie, autocompleteInputVariants as je, autocompletePopoverVariants as Ve } from "./index.es54.js";
8
+ import { AutocompleteContext as pe } from "./index.es56.js";
9
+ import { AutocompleteToggle as xe } from "./index.es78.js";
10
+ import { comboBoxVariants as fe, autocompleteGroupVariants as Ie, autocompleteInputVariants as je, autocompletePopoverVariants as Ve } from "./index.es57.js";
11
11
  function Ce(L) {
12
12
  const {
13
13
  size: x = "sm",
package/dist/index.es5.js CHANGED
@@ -3,8 +3,8 @@ import { CheckIcon as m } from "./index.es51.js";
3
3
  import { memo as x } from "react";
4
4
  import { ListBoxItem as d } from "react-aria-components";
5
5
  import { cn as f } from "./index.es50.js";
6
- import { useAutocompleteFilter as h } from "./index.es52.js";
7
- import { autocompleteOptionVariants as u } from "./index.es54.js";
6
+ import { useAutocompleteFilter as h } from "./index.es56.js";
7
+ import { autocompleteOptionVariants as u } from "./index.es57.js";
8
8
  const p = ({ text: r, searchText: t }) => {
9
9
  if (!t)
10
10
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: r });
@@ -1,6 +1,36 @@
1
- import { createContext as t, useContext as e } from "react";
2
- const o = t(""), n = () => e(o);
1
+ import { cva as r } from "class-variance-authority";
2
+ const t = r("bg-primary-50 inline-flex items-center select-none border border-transparent", {
3
+ variants: {
4
+ style: {
5
+ square: "rounded-md",
6
+ rounded: "rounded-full"
7
+ },
8
+ size: {
9
+ xs: [
10
+ "gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-[10px]",
11
+ "[&_svg]:w-[10px] [&_svg]:h-[10px]"
12
+ ],
13
+ sm: ["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs", "[&_svg]:w-3 [&_svg]:h-3"],
14
+ md: ["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"],
15
+ lg: ["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm", "[&_svg]:w-4 [&_svg]:h-4"]
16
+ },
17
+ pressable: {
18
+ true: "cursor-pointer"
19
+ },
20
+ isFocused: {
21
+ true: "border-primary-500"
22
+ },
23
+ isHovered: {
24
+ true: "border-primary-300"
25
+ },
26
+ isPressed: {
27
+ true: "bg-primary-200"
28
+ },
29
+ isDisabled: {
30
+ true: "bg-neutral-50 text-neutral-600 [&_svg]:text-neutral-600 cursor-not-allowed"
31
+ }
32
+ }
33
+ });
3
34
  export {
4
- o as AutocompleteContext,
5
- n as useAutocompleteFilter
35
+ t as assistChipVariants
6
36
  };
@@ -1,43 +1,32 @@
1
1
  import { j as e } from "./index.es49.js";
2
- import { CrossIcon as x, DownChevronIcon as f } from "./index.es51.js";
3
- import { cn as n } from "./index.es50.js";
4
- import { IconButton as p } from "./index.es16.js";
5
- import { Loader as d } from "./index.es25.js";
6
- function v({
7
- hasSelection: o,
8
- isOpen: s,
9
- isDisabled: i,
10
- isReadOnly: a,
11
- isLoading: m = !1,
12
- iconClassName: r,
13
- icon: l = f,
14
- onClear: c,
15
- onIconPress: u
16
- }) {
17
- return m ? /* @__PURE__ */ e.jsx("div", { className: "mr-2 flex items-center justify-center", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(d, { size: "xs", className: "mr-0 text-neutral-700" }) }) : o && !i && !a ? /* @__PURE__ */ e.jsx(
18
- "button",
2
+ import { cn as l } from "./index.es50.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",
19
7
  {
20
- type: "button",
21
- "aria-label": "Clear selection",
22
- className: "mr-2 flex items-center justify-center rounded-lg p-1 text-neutral-700 hover:text-primary-500 focus:text-primary-500 focus:outline-none",
23
- onPointerDown: (t) => t.preventDefault(),
24
- onClick: (t) => {
25
- t.stopPropagation(), c();
26
- },
27
- children: /* @__PURE__ */ e.jsx(x, { className: n("size-3", r) })
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" }
28
17
  }
29
- ) : /* @__PURE__ */ e.jsx(p, { intent: "minimal", size: "xxs", className: "mr-2", onPress: u, children: ({ isFocusVisible: t }) => /* @__PURE__ */ e.jsx(
30
- l,
18
+ ) : /* @__PURE__ */ e.jsx(
19
+ "polyline",
31
20
  {
32
- className: n(
33
- "size-4 transition-transform duration-200",
34
- s && "rotate-180",
35
- t ? "text-primary-500" : "text-neutral-700",
36
- r
37
- )
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" }
38
27
  }
39
28
  ) });
40
- }
29
+ };
41
30
  export {
42
- v as AutocompleteToggle
31
+ m as MarkIcon
43
32
  };
@@ -1,114 +1,45 @@
1
- import { cva as e } from "class-variance-authority";
2
- const t = e("group flex w-full flex-col gap-2", {
3
- variants: {
4
- size: {
5
- xs: "min-h-[28px]",
6
- sm: "min-h-[42px]",
7
- md: "min-h-[50px]",
8
- lg: "min-h-[58px]"
9
- }
10
- }
11
- }), s = e(
12
- "relative flex w-full cursor-default items-center justify-between rounded-lg border border-neutral-500 bg-white/90 px-0 text-base leading-6 ring-1 ring-primary-500/10 transition focus-within:bg-white/100 focus-visible:border-primary-500 focus-visible:ring-2 focus-visible:ring-primary-500",
1
+ import { cva as r } from "class-variance-authority";
2
+ const i = r(
3
+ "flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",
13
4
  {
14
5
  variants: {
15
- size: {
16
- xs: "h-[34px]",
17
- sm: "min-h-[42px]",
18
- md: "min-h-[50px]",
19
- lg: "min-h-[58px]"
20
- },
21
- intent: {
22
- primary: "bg-primary-500 text-primary-50",
23
- secondary: "border border-primary-500 bg-primary-50 text-primary-500",
24
- tertiary: "text-primary-500",
25
- outline: "border border-primary-500 text-primary-500",
26
- success: "border border-success-800 text-success-800",
27
- error: "border border-error-800 text-error-800",
28
- orangeWarning: "border border-orange-warning-800 text-orange-warning-800",
29
- yellowWarning: "border border-yellow-warning-800 text-yellow-warning-800",
30
- info: "border border-primary-800 text-primary-800"
31
- },
32
6
  isHovered: {
33
7
  true: ""
34
8
  },
35
- isDisabled: {
36
- true: "cursor-not-allowed bg-neutral-200 text-neutral-600 border-neutral-500"
37
- },
38
- isReadOnly: {
39
- true: "cursor-not-allowed"
40
- },
41
- validationState: {
42
- invalid: "border-error-500 text-red-800 placeholder:text-red-800 focus:border-error-500 focus:ring-error-500",
43
- valid: "border-success-500 text-success-800 placeholder:text-success-800 focus:border-success-500 focus:ring-success-500"
44
- }
45
- },
46
- compoundVariants: [
47
- { intent: "primary", isHovered: !0, class: "bg-primary-700" },
48
- { intent: "secondary", isHovered: !0, class: "bg-primary-200" },
49
- { intent: "outline", isHovered: !0, class: "bg-primary-500 text-primary-50" },
50
- { intent: "success", isHovered: !0, class: "bg-success-600 text-neutral-50" },
51
- { intent: "error", isHovered: !0, class: "bg-error-600 text-neutral-50" },
52
- { intent: "orangeWarning", isHovered: !0, class: "bg-orange-warning-600 text-neutral-50" },
53
- { intent: "yellowWarning", isHovered: !0, class: "bg-yellow-warning-600 text-neutral-50" },
54
- { intent: "info", isHovered: !0, class: "bg-primary-600 text-neutral-50" }
55
- ]
56
- }
57
- ), o = e(
58
- "w-full flex-1 border-none bg-transparent px-3 text-base leading-5 text-gray-900 outline-none focus:ring-0",
59
- {
60
- variants: {
61
- size: {
62
- xs: "py-1",
63
- sm: "py-2",
64
- md: "py-3",
65
- lg: "py-4"
66
- },
67
- isInvalid: {
68
- true: "text-red-800 placeholder:text-red-800"
69
- }
70
- }
71
- }
72
- ), i = e(
73
- "max-h-80 w-[--trigger-width] overflow-auto rounded-md bg-white text-base shadow-lg",
74
- {
75
- variants: {}
76
- }
77
- ), a = e(
78
- "group flex cursor-pointer items-center justify-between rounded-sm p-2 text-sm outline-none",
79
- {
80
- variants: {
81
- isFocused: {
82
- true: ""
83
- },
84
9
  isSelected: {
85
- true: "bg-primary-100 text-primary-500 hover:bg-primary-200 hover:text-primary-500",
86
- false: "hover:bg-primary-50 hover:text-primary-500"
10
+ true: "border-primary-500 bg-primary-500",
11
+ false: "bg-white"
12
+ },
13
+ isFocusVisible: {
14
+ true: "border-primary-500 group-active:border-primary-500"
87
15
  },
88
16
  isDisabled: {
89
- true: "bg-blue-50 text-neutral-500 cursor-not-allowed hover:bg-blue-50 hover:text-neutral-500 pointer-events-none",
90
- false: ""
17
+ true: "border-neutral-500 cursor-not-allowed"
18
+ },
19
+ label: {
20
+ true: "mr-2"
91
21
  }
92
22
  },
93
23
  compoundVariants: [
94
24
  {
95
- isDisabled: !0,
96
- isFocused: !1,
97
- isSelected: !1,
98
- class: "text-neutral-600 bg-blue-50 hover:bg-blue-50 hover:text-neutral-600 cursor-not-allowed pointer-events-none"
25
+ isHovered: !0,
26
+ isSelected: !0,
27
+ class: "border-none bg-primary-600 group-active:bg-primary-600"
99
28
  },
100
29
  {
30
+ isHovered: !0,
101
31
  isSelected: !1,
102
32
  isDisabled: !1,
103
- class: "text-primary-900"
33
+ class: "border-primary-700 group-active:bg-primary-600"
34
+ },
35
+ {
36
+ isDisabled: !0,
37
+ isSelected: !0,
38
+ class: "bg-neutral-500"
104
39
  }
105
40
  ]
106
41
  }
107
42
  );
108
43
  export {
109
- s as autocompleteGroupVariants,
110
- o as autocompleteInputVariants,
111
- a as autocompleteOptionVariants,
112
- i as autocompletePopoverVariants,
113
- t as comboBoxVariants
44
+ i as checkboxVariants
114
45
  };