@simpli-route/apollo-ds 0.1.42 → 0.1.44

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 (315) hide show
  1. package/dist/components/FilterButton/FilterButton.d.ts +3 -0
  2. package/dist/components/FilterButton/FilterButton.test.d.ts +1 -0
  3. package/dist/components/FilterButton/index.d.ts +2 -0
  4. package/dist/components/FilterButton/types.d.ts +95 -0
  5. package/dist/components/FilterButton/variants.d.ts +12 -0
  6. package/dist/components/SelectInput/PopoverContent.d.ts +12 -0
  7. package/dist/components/SelectInput/SelectContent.d.ts +16 -0
  8. package/dist/components/SelectInput/SelectInput.d.ts +6 -0
  9. package/dist/components/SelectInput/index.d.ts +2 -0
  10. package/dist/components/SelectInput/types.d.ts +112 -0
  11. package/dist/components/{Select → SelectInput}/variants.d.ts +6 -7
  12. package/dist/components/index.d.ts +2 -1
  13. package/dist/index.cjs.js +1 -1
  14. package/dist/index.cjs10.js +1 -1
  15. package/dist/index.cjs100.js +1 -1
  16. package/dist/index.cjs101.js +1 -1
  17. package/dist/index.cjs103.js +1 -1
  18. package/dist/index.cjs104.js +1 -1
  19. package/dist/index.cjs105.js +1 -1
  20. package/dist/index.cjs106.js +1 -1
  21. package/dist/index.cjs107.js +1 -1
  22. package/dist/index.cjs108.js +1 -1
  23. package/dist/index.cjs109.js +1 -1
  24. package/dist/index.cjs11.js +1 -1
  25. package/dist/index.cjs110.js +1 -1
  26. package/dist/index.cjs112.js +1 -1
  27. package/dist/index.cjs113.js +1 -1
  28. package/dist/index.cjs114.js +1 -1
  29. package/dist/index.cjs115.js +1 -1
  30. package/dist/index.cjs116.js +1 -1
  31. package/dist/index.cjs117.js +1 -1
  32. package/dist/index.cjs118.js +1 -1
  33. package/dist/index.cjs119.js +1 -1
  34. package/dist/index.cjs12.js +1 -1
  35. package/dist/index.cjs120.js +1 -1
  36. package/dist/index.cjs121.js +1 -1
  37. package/dist/index.cjs122.js +1 -1
  38. package/dist/index.cjs123.js +1 -1
  39. package/dist/index.cjs124.js +1 -1
  40. package/dist/index.cjs125.js +1 -1
  41. package/dist/index.cjs126.js +1 -1
  42. package/dist/index.cjs127.js +1 -1
  43. package/dist/index.cjs128.js +1 -1
  44. package/dist/index.cjs129.js +1 -1
  45. package/dist/index.cjs13.js +1 -1
  46. package/dist/index.cjs138.js +1 -1
  47. package/dist/index.cjs139.js +1 -1
  48. package/dist/index.cjs14.js +1 -1
  49. package/dist/index.cjs140.js +1 -1
  50. package/dist/index.cjs141.js +1 -1
  51. package/dist/index.cjs142.js +1 -1
  52. package/dist/index.cjs143.js +1 -1
  53. package/dist/index.cjs144.js +1 -1
  54. package/dist/index.cjs145.js +1 -1
  55. package/dist/index.cjs146.js +1 -1
  56. package/dist/index.cjs147.js +1 -1
  57. package/dist/index.cjs148.js +1 -1
  58. package/dist/index.cjs149.js +1 -1
  59. package/dist/index.cjs15.js +1 -1
  60. package/dist/index.cjs151.js +1 -1
  61. package/dist/index.cjs152.js +1 -1
  62. package/dist/index.cjs153.js +1 -1
  63. package/dist/index.cjs155.js +1 -1
  64. package/dist/index.cjs156.js +1 -1
  65. package/dist/index.cjs157.js +1 -1
  66. package/dist/index.cjs158.js +1 -1
  67. package/dist/index.cjs159.js +1 -1
  68. package/dist/index.cjs16.js +1 -1
  69. package/dist/index.cjs161.js +1 -1
  70. package/dist/index.cjs162.js +1 -1
  71. package/dist/index.cjs163.js +1 -1
  72. package/dist/index.cjs164.js +1 -1
  73. package/dist/index.cjs165.js +1 -0
  74. package/dist/index.cjs166.js +1 -0
  75. package/dist/index.cjs167.js +1 -0
  76. package/dist/index.cjs17.js +1 -1
  77. package/dist/index.cjs18.js +1 -1
  78. package/dist/index.cjs19.js +1 -1
  79. package/dist/index.cjs2.js +1 -1
  80. package/dist/index.cjs20.js +1 -1
  81. package/dist/index.cjs21.js +1 -1
  82. package/dist/index.cjs22.js +1 -1
  83. package/dist/index.cjs23.js +1 -1
  84. package/dist/index.cjs24.js +1 -1
  85. package/dist/index.cjs25.js +1 -1
  86. package/dist/index.cjs26.js +1 -1
  87. package/dist/index.cjs27.js +1 -1
  88. package/dist/index.cjs28.js +1 -1
  89. package/dist/index.cjs3.js +1 -1
  90. package/dist/index.cjs31.js +1 -1
  91. package/dist/index.cjs32.js +1 -1
  92. package/dist/index.cjs33.js +1 -1
  93. package/dist/index.cjs34.js +1 -1
  94. package/dist/index.cjs35.js +1 -1
  95. package/dist/index.cjs36.js +1 -1
  96. package/dist/index.cjs37.js +1 -1
  97. package/dist/index.cjs38.js +1 -1
  98. package/dist/index.cjs39.js +1 -1
  99. package/dist/index.cjs4.js +1 -1
  100. package/dist/index.cjs40.js +1 -1
  101. package/dist/index.cjs42.js +1 -1
  102. package/dist/index.cjs43.js +1 -1
  103. package/dist/index.cjs47.js +1 -1
  104. package/dist/index.cjs48.js +1 -1
  105. package/dist/index.cjs49.js +1 -1
  106. package/dist/index.cjs5.js +1 -1
  107. package/dist/index.cjs50.js +1 -1
  108. package/dist/index.cjs51.js +1 -1
  109. package/dist/index.cjs52.js +1 -1
  110. package/dist/index.cjs53.js +1 -1
  111. package/dist/index.cjs54.js +1 -1
  112. package/dist/index.cjs55.js +1 -1
  113. package/dist/index.cjs56.js +1 -1
  114. package/dist/index.cjs57.js +1 -1
  115. package/dist/index.cjs58.js +1 -1
  116. package/dist/index.cjs6.js +1 -1
  117. package/dist/index.cjs63.js +1 -1
  118. package/dist/index.cjs64.js +1 -1
  119. package/dist/index.cjs65.js +1 -1
  120. package/dist/index.cjs66.js +1 -1
  121. package/dist/index.cjs67.js +1 -1
  122. package/dist/index.cjs68.js +1 -1
  123. package/dist/index.cjs69.js +1 -1
  124. package/dist/index.cjs7.js +1 -1
  125. package/dist/index.cjs70.js +1 -1
  126. package/dist/index.cjs71.js +1 -1
  127. package/dist/index.cjs72.js +1 -1
  128. package/dist/index.cjs73.js +1 -1
  129. package/dist/index.cjs75.js +1 -1
  130. package/dist/index.cjs76.js +1 -1
  131. package/dist/index.cjs77.js +1 -1
  132. package/dist/index.cjs78.js +1 -1
  133. package/dist/index.cjs8.js +1 -1
  134. package/dist/index.cjs80.js +1 -1
  135. package/dist/index.cjs81.js +1 -9
  136. package/dist/index.cjs82.js +3 -13
  137. package/dist/index.cjs83.js +19 -1
  138. package/dist/index.cjs84.js +1 -1
  139. package/dist/index.cjs85.js +1 -1
  140. package/dist/index.cjs86.js +1 -1
  141. package/dist/index.cjs87.js +1 -1
  142. package/dist/index.cjs88.js +1 -1
  143. package/dist/index.cjs89.js +1 -1
  144. package/dist/index.cjs9.js +1 -1
  145. package/dist/index.cjs90.js +1 -1
  146. package/dist/index.cjs91.js +1 -1
  147. package/dist/index.cjs92.js +1 -1
  148. package/dist/index.cjs93.js +1 -1
  149. package/dist/index.cjs94.js +1 -1
  150. package/dist/index.cjs95.js +1 -1
  151. package/dist/index.cjs96.js +1 -1
  152. package/dist/index.cjs97.js +1 -1
  153. package/dist/index.cjs98.js +1 -1
  154. package/dist/index.cjs99.js +1 -1
  155. package/dist/index.es.js +50 -50
  156. package/dist/index.es10.js +45 -33
  157. package/dist/index.es100.js +30 -4
  158. package/dist/index.es101.js +4 -28
  159. package/dist/index.es103.js +4 -8
  160. package/dist/index.es104.js +27 -341
  161. package/dist/index.es105.js +2 -166
  162. package/dist/index.es106.js +10 -190
  163. package/dist/index.es107.js +339 -48
  164. package/dist/index.es108.js +166 -2
  165. package/dist/index.es109.js +190 -4
  166. package/dist/index.es11.js +38 -76
  167. package/dist/index.es110.js +42 -12
  168. package/dist/index.es112.js +2 -43
  169. package/dist/index.es113.js +21 -7
  170. package/dist/index.es114.js +2 -5
  171. package/dist/index.es115.js +44 -26
  172. package/dist/index.es116.js +7 -192
  173. package/dist/index.es117.js +7 -16
  174. package/dist/index.es118.js +21 -347
  175. package/dist/index.es119.js +187 -19
  176. package/dist/index.es12.js +77 -32
  177. package/dist/index.es120.js +8 -11
  178. package/dist/index.es121.js +345 -146
  179. package/dist/index.es122.js +18 -11
  180. package/dist/index.es123.js +11 -9
  181. package/dist/index.es124.js +144 -201
  182. package/dist/index.es125.js +13 -64
  183. package/dist/index.es126.js +9 -6
  184. package/dist/index.es127.js +211 -4
  185. package/dist/index.es128.js +68 -4
  186. package/dist/index.es129.js +14 -4
  187. package/dist/index.es13.js +32 -113
  188. package/dist/index.es130.js +2 -2
  189. package/dist/index.es131.js +2 -2
  190. package/dist/index.es132.js +2 -2
  191. package/dist/index.es133.js +2 -2
  192. package/dist/index.es134.js +2 -2
  193. package/dist/index.es135.js +2 -2
  194. package/dist/index.es137.js +2 -2
  195. package/dist/index.es138.js +2 -2
  196. package/dist/index.es139.js +2 -1063
  197. package/dist/index.es14.js +88 -94
  198. package/dist/index.es140.js +4 -77
  199. package/dist/index.es141.js +2 -2
  200. package/dist/index.es142.js +1064 -19
  201. package/dist/index.es143.js +77 -4
  202. package/dist/index.es144.js +2 -57
  203. package/dist/index.es145.js +59 -61
  204. package/dist/index.es146.js +20 -4
  205. package/dist/index.es147.js +4 -14
  206. package/dist/index.es148.js +10 -311
  207. package/dist/index.es149.js +56 -21
  208. package/dist/index.es15.js +111 -35
  209. package/dist/index.es150.js +2 -2
  210. package/dist/index.es151.js +14 -4
  211. package/dist/index.es152.js +311 -4
  212. package/dist/index.es153.js +22 -90
  213. package/dist/index.es154.js +2 -2
  214. package/dist/index.es155.js +2 -8
  215. package/dist/index.es156.js +4 -28
  216. package/dist/index.es157.js +94 -4
  217. package/dist/index.es158.js +4 -51
  218. package/dist/index.es159.js +21 -12
  219. package/dist/index.es16.js +41 -138
  220. package/dist/index.es160.js +2 -2
  221. package/dist/index.es161.js +2 -2
  222. package/dist/index.es162.js +48 -750
  223. package/dist/index.es163.js +19 -4
  224. package/dist/index.es164.js +2 -2
  225. package/dist/index.es165.js +4 -0
  226. package/dist/index.es166.js +753 -0
  227. package/dist/index.es167.js +4 -0
  228. package/dist/index.es17.js +136 -154
  229. package/dist/index.es18.js +149 -30
  230. package/dist/index.es19.js +38 -49
  231. package/dist/index.es2.js +1 -1
  232. package/dist/index.es20.js +48 -36
  233. package/dist/index.es21.js +37 -104
  234. package/dist/index.es22.js +102 -89
  235. package/dist/index.es23.js +82 -101
  236. package/dist/index.es24.js +108 -72
  237. package/dist/index.es25.js +74 -142
  238. package/dist/index.es26.js +93 -39
  239. package/dist/index.es27.js +3 -3
  240. package/dist/index.es28.js +2 -2
  241. package/dist/index.es3.js +2 -2
  242. package/dist/index.es31.js +2 -2
  243. package/dist/index.es32.js +1 -1
  244. package/dist/index.es33.js +1 -1
  245. package/dist/index.es34.js +2 -2
  246. package/dist/index.es35.js +1 -1
  247. package/dist/index.es36.js +1 -1
  248. package/dist/index.es37.js +1 -1
  249. package/dist/index.es38.js +3 -3
  250. package/dist/index.es39.js +6 -27
  251. package/dist/index.es4.js +2 -2
  252. package/dist/index.es40.js +31 -6
  253. package/dist/index.es42.js +30 -10
  254. package/dist/index.es43.js +40 -31
  255. package/dist/index.es47.js +30 -167
  256. package/dist/index.es48.js +148 -20
  257. package/dist/index.es49.js +44 -48
  258. package/dist/index.es5.js +16 -15
  259. package/dist/index.es50.js +95 -117
  260. package/dist/index.es51.js +48 -100
  261. package/dist/index.es52.js +82 -52
  262. package/dist/index.es53.js +106 -84
  263. package/dist/index.es54.js +105 -24
  264. package/dist/index.es55.js +45 -48
  265. package/dist/index.es56.js +33 -39
  266. package/dist/index.es57.js +96 -34
  267. package/dist/index.es58.js +25 -25
  268. package/dist/index.es6.js +3 -3
  269. package/dist/index.es63.js +97 -26
  270. package/dist/index.es64.js +13 -10
  271. package/dist/index.es65.js +163 -12
  272. package/dist/index.es66.js +63 -135
  273. package/dist/index.es67.js +10 -20
  274. package/dist/index.es68.js +10 -13
  275. package/dist/index.es69.js +12 -163
  276. package/dist/index.es7.js +2 -2
  277. package/dist/index.es70.js +13 -101
  278. package/dist/index.es71.js +87 -12
  279. package/dist/index.es72.js +3 -3
  280. package/dist/index.es73.js +3 -3
  281. package/dist/index.es75.js +1 -1
  282. package/dist/index.es76.js +1 -1
  283. package/dist/index.es77.js +1 -1
  284. package/dist/index.es78.js +1 -1
  285. package/dist/index.es8.js +1 -1
  286. package/dist/index.es80.js +40 -2
  287. package/dist/index.es81.js +2 -30
  288. package/dist/index.es82.js +21 -590
  289. package/dist/index.es83.js +599 -21
  290. package/dist/index.es84.js +17 -17
  291. package/dist/index.es85.js +14 -18
  292. package/dist/index.es86.js +19 -15
  293. package/dist/index.es87.js +14 -10
  294. package/dist/index.es88.js +12 -10
  295. package/dist/index.es89.js +8 -8
  296. package/dist/index.es9.js +124 -40
  297. package/dist/index.es90.js +6 -6
  298. package/dist/index.es91.js +11 -13
  299. package/dist/index.es92.js +8 -10
  300. package/dist/index.es93.js +12 -10
  301. package/dist/index.es94.js +13 -13
  302. package/dist/index.es95.js +11 -9
  303. package/dist/index.es96.js +19 -30
  304. package/dist/index.es97.js +19 -2
  305. package/dist/index.es98.js +19 -2
  306. package/dist/index.es99.js +1 -1
  307. package/dist/stories/SelectInput.stories.d.ts +50 -0
  308. package/dist/style.css +72 -63
  309. package/package.json +1 -1
  310. package/dist/components/Select/Select.d.ts +0 -12
  311. package/dist/components/Select/SelectContent.d.ts +0 -24
  312. package/dist/components/Select/SelectItem.d.ts +0 -13
  313. package/dist/components/Select/TooltipSelect.d.ts +0 -3
  314. package/dist/components/Select/index.d.ts +0 -3
  315. package/dist/components/Select/types.d.ts +0 -76
@@ -1,4 +1,21 @@
1
- var e = {};
1
+ import l from "react";
2
+ const e = l, n = ({
3
+ title: r,
4
+ titleId: a,
5
+ ...o
6
+ }, t) => /* @__PURE__ */ e.createElement("svg", Object.assign({
7
+ fill: "currentColor",
8
+ "aria-hidden": "true",
9
+ viewBox: "0 0 24 24",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ref: t,
12
+ "aria-labelledby": a
13
+ }, o), r ? /* @__PURE__ */ e.createElement("title", {
14
+ id: a
15
+ }, r) : null, /* @__PURE__ */ e.createElement("path", {
16
+ d: "M2 15.892a.83.83 0 0 1 .242-.591l6.807-6.807a4.166 4.166 0 0 1 5.899 0l6.807 6.806a.835.835 0 0 1-.912 1.365.8.8 0 0 1-.271-.181l-6.807-6.807a2.5 2.5 0 0 0-3.533 0l-6.807 6.806A.833.833 0 0 1 2 15.893Z"
17
+ })), c = e.forwardRef(n);
18
+ var i = c;
2
19
  export {
3
- e as __exports
20
+ i as U
4
21
  };
@@ -1,6 +1,6 @@
1
1
  import { j as r } from "./index.es38.js";
2
2
  import { SliderThumb as m } from "react-aria-components";
3
- import { cn as i } from "./index.es40.js";
3
+ import { cn as i } from "./index.es39.js";
4
4
  import { Tooltip as c } from "./index.es34.js";
5
5
  import { TooltipTrigger as d } from "./index.es35.js";
6
6
  const y = ({
@@ -0,0 +1,50 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: <T extends import('../components/SelectInput').SelectInputItem = import('../components/SelectInput').SelectInputItem>(props: import('../components/SelectInput').SelectInputProps<T> & {
6
+ ref?: import('react').Ref<HTMLButtonElement> | undefined;
7
+ }) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ tags: string[];
12
+ args: {
13
+ selectionMode: "single";
14
+ size: "xs";
15
+ };
16
+ argTypes: {
17
+ label: {
18
+ control: "text";
19
+ };
20
+ placeholder: {
21
+ control: "text";
22
+ };
23
+ selectionMode: {
24
+ control: "select";
25
+ options: string[];
26
+ };
27
+ size: {
28
+ control: "select";
29
+ options: string[];
30
+ };
31
+ isDisabled: {
32
+ control: "boolean";
33
+ };
34
+ isRequired: {
35
+ control: "boolean";
36
+ };
37
+ };
38
+ };
39
+ export default meta;
40
+ type Story = StoryObj<typeof meta>;
41
+ export declare const SingleSelection: Story;
42
+ export declare const MultipleSelection: Story;
43
+ export declare const MultipleSelectionWithSearch: Story;
44
+ export declare const SizeXS: Story;
45
+ export declare const SizeSM: Story;
46
+ export declare const SizeMD: Story;
47
+ export declare const SizeLG: Story;
48
+ export declare const Disabled: Story;
49
+ export declare const WithTooltip: Story;
50
+ export declare const EmptyState: Story;
package/dist/style.css CHANGED
@@ -702,58 +702,35 @@ select {
702
702
  --tw-contain-paint: ;
703
703
  --tw-contain-style: ;
704
704
  }
705
- .\!container {
706
- width: 100% !important;
707
- }
708
705
  .container {
709
706
  width: 100%;
710
707
  }
711
708
  @media (min-width: 640px) {
712
709
 
713
- .\!container {
714
- max-width: 640px !important;
715
- }
716
-
717
710
  .container {
718
711
  max-width: 640px;
719
712
  }
720
713
  }
721
714
  @media (min-width: 768px) {
722
715
 
723
- .\!container {
724
- max-width: 768px !important;
725
- }
726
-
727
716
  .container {
728
717
  max-width: 768px;
729
718
  }
730
719
  }
731
720
  @media (min-width: 1024px) {
732
721
 
733
- .\!container {
734
- max-width: 1024px !important;
735
- }
736
-
737
722
  .container {
738
723
  max-width: 1024px;
739
724
  }
740
725
  }
741
726
  @media (min-width: 1280px) {
742
727
 
743
- .\!container {
744
- max-width: 1280px !important;
745
- }
746
-
747
728
  .container {
748
729
  max-width: 1280px;
749
730
  }
750
731
  }
751
732
  @media (min-width: 1536px) {
752
733
 
753
- .\!container {
754
- max-width: 1536px !important;
755
- }
756
-
757
734
  .container {
758
735
  max-width: 1536px;
759
736
  }
@@ -851,6 +828,15 @@ select {
851
828
  .z-\[1000px\] {
852
829
  z-index: 1000px;
853
830
  }
831
+ .m-1 {
832
+ margin: 0.25rem;
833
+ }
834
+ .m-2 {
835
+ margin: 0.5rem;
836
+ }
837
+ .m-4 {
838
+ margin: 1rem;
839
+ }
854
840
  .mx-0 {
855
841
  margin-left: 0px;
856
842
  margin-right: 0px;
@@ -895,9 +881,6 @@ select {
895
881
  .-mb-0\.5 {
896
882
  margin-bottom: -0.125rem;
897
883
  }
898
- .-mb-2 {
899
- margin-bottom: -0.5rem;
900
- }
901
884
  .mb-0 {
902
885
  margin-bottom: 0px;
903
886
  }
@@ -940,15 +923,9 @@ select {
940
923
  .mr-2 {
941
924
  margin-right: 0.5rem;
942
925
  }
943
- .mr-20 {
944
- margin-right: 5rem;
945
- }
946
926
  .mr-3 {
947
927
  margin-right: 0.75rem;
948
928
  }
949
- .mr-\[5px\] {
950
- margin-right: 5px;
951
- }
952
929
  .mt-0 {
953
930
  margin-top: 0px;
954
931
  }
@@ -1040,6 +1017,9 @@ select {
1040
1017
  .h-1 {
1041
1018
  height: 0.25rem;
1042
1019
  }
1020
+ .h-10 {
1021
+ height: 2.5rem;
1022
+ }
1043
1023
  .h-12 {
1044
1024
  height: 3rem;
1045
1025
  }
@@ -1085,21 +1065,9 @@ select {
1085
1065
  .h-\[32px\] {
1086
1066
  height: 32px;
1087
1067
  }
1088
- .h-\[40px\] {
1089
- height: 40px;
1090
- }
1091
- .h-\[48px\] {
1092
- height: 48px;
1093
- }
1094
- .h-\[56px\] {
1095
- height: 56px;
1096
- }
1097
1068
  .h-full {
1098
1069
  height: 100%;
1099
1070
  }
1100
- .\!max-h-\[185px\] {
1101
- max-height: 185px !important;
1102
- }
1103
1071
  .\!max-h-\[300px\] {
1104
1072
  max-height: 300px !important;
1105
1073
  }
@@ -1109,6 +1077,21 @@ select {
1109
1077
  .max-h-60 {
1110
1078
  max-height: 15rem;
1111
1079
  }
1080
+ .max-h-\[260px\] {
1081
+ max-height: 260px;
1082
+ }
1083
+ .min-h-10 {
1084
+ min-height: 2.5rem;
1085
+ }
1086
+ .min-h-12 {
1087
+ min-height: 3rem;
1088
+ }
1089
+ .min-h-14 {
1090
+ min-height: 3.5rem;
1091
+ }
1092
+ .min-h-8 {
1093
+ min-height: 2rem;
1094
+ }
1112
1095
  .min-h-\[28px\] {
1113
1096
  min-height: 28px;
1114
1097
  }
@@ -1192,9 +1175,6 @@ select {
1192
1175
  width: -moz-max-content;
1193
1176
  width: max-content;
1194
1177
  }
1195
- .\!min-w-\[150px\] {
1196
- min-width: 150px !important;
1197
- }
1198
1178
  .min-w-0 {
1199
1179
  min-width: 0px;
1200
1180
  }
@@ -1207,6 +1187,9 @@ select {
1207
1187
  .min-w-\[120px\] {
1208
1188
  min-width: 120px;
1209
1189
  }
1190
+ .min-w-\[200px\] {
1191
+ min-width: 200px;
1192
+ }
1210
1193
  .min-w-full {
1211
1194
  min-width: 100%;
1212
1195
  }
@@ -1404,6 +1387,11 @@ select {
1404
1387
  .overflow-y-auto {
1405
1388
  overflow-y: auto;
1406
1389
  }
1390
+ .truncate {
1391
+ overflow: hidden;
1392
+ text-overflow: ellipsis;
1393
+ white-space: nowrap;
1394
+ }
1407
1395
  .whitespace-normal {
1408
1396
  white-space: normal;
1409
1397
  }
@@ -1431,6 +1419,9 @@ select {
1431
1419
  .border {
1432
1420
  border-width: 1px;
1433
1421
  }
1422
+ .border-0 {
1423
+ border-width: 0px;
1424
+ }
1434
1425
  .border-2 {
1435
1426
  border-width: 2px;
1436
1427
  }
@@ -1838,6 +1829,9 @@ select {
1838
1829
  .p-0 {
1839
1830
  padding: 0px;
1840
1831
  }
1832
+ .p-0\.5 {
1833
+ padding: 0.125rem;
1834
+ }
1841
1835
  .p-1 {
1842
1836
  padding: 0.25rem;
1843
1837
  }
@@ -1876,6 +1870,10 @@ select {
1876
1870
  padding-left: 0.5rem;
1877
1871
  padding-right: 0.5rem;
1878
1872
  }
1873
+ .px-2\.5 {
1874
+ padding-left: 0.625rem;
1875
+ padding-right: 0.625rem;
1876
+ }
1879
1877
  .px-3 {
1880
1878
  padding-left: 0.75rem;
1881
1879
  padding-right: 0.75rem;
@@ -1924,9 +1922,6 @@ select {
1924
1922
  padding-top: 2px;
1925
1923
  padding-bottom: 2px;
1926
1924
  }
1927
- .\!pr-2 {
1928
- padding-right: 0.5rem !important;
1929
- }
1930
1925
  .pb-2 {
1931
1926
  padding-bottom: 0.5rem;
1932
1927
  }
@@ -1936,9 +1931,6 @@ select {
1936
1931
  .pl-1 {
1937
1932
  padding-left: 0.25rem;
1938
1933
  }
1939
- .pl-1\.5 {
1940
- padding-left: 0.375rem;
1941
- }
1942
1934
  .pl-2 {
1943
1935
  padding-left: 0.5rem;
1944
1936
  }
@@ -2290,6 +2282,9 @@ select {
2290
2282
  .outline {
2291
2283
  outline-style: solid;
2292
2284
  }
2285
+ .outline-0 {
2286
+ outline-width: 0px;
2287
+ }
2293
2288
  .ring-0 {
2294
2289
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2295
2290
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2442,16 +2437,6 @@ select {
2442
2437
  .ease-in-out {
2443
2438
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2444
2439
  }
2445
- .no-scrollbar {
2446
- scrollbar-width: none;
2447
- * {
2448
- -webkit-overflow-scrolling: touch !important;
2449
- scrollbar-width: none !important;
2450
- }
2451
- *::-webkit-scrollbar {
2452
- display: none !important;
2453
- }
2454
- }
2455
2440
  .custom-scrollbar {
2456
2441
  scrollbar-width: thin !important; /* Firefox */
2457
2442
 
@@ -2666,6 +2651,9 @@ select {
2666
2651
  --tw-border-opacity: 1;
2667
2652
  border-color: rgb(29 13 165 / var(--tw-border-opacity));
2668
2653
  }
2654
+ .hover\:bg-black\/\[5\%\]:hover {
2655
+ background-color: rgb(0 0 0 / 5%);
2656
+ }
2669
2657
  .hover\:bg-neutral-100:hover {
2670
2658
  --tw-bg-opacity: 1;
2671
2659
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
@@ -2808,10 +2796,18 @@ select {
2808
2796
  .focus-visible\:ring-offset-1:focus-visible {
2809
2797
  --tw-ring-offset-width: 1px;
2810
2798
  }
2799
+ .group:hover .group-hover\:bg-primary-500 {
2800
+ --tw-bg-opacity: 1;
2801
+ background-color: rgb(76 59 239 / var(--tw-bg-opacity));
2802
+ }
2811
2803
  .group:hover .group-hover\:text-blue-500 {
2812
2804
  --tw-text-opacity: 1;
2813
2805
  color: rgb(38 68 217 / var(--tw-text-opacity));
2814
2806
  }
2807
+ .group:hover .group-hover\:text-primary-100 {
2808
+ --tw-text-opacity: 1;
2809
+ color: rgb(230 227 255 / var(--tw-text-opacity));
2810
+ }
2815
2811
  .group:focus .group-focus\:text-white {
2816
2812
  --tw-text-opacity: 1;
2817
2813
  color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -2828,6 +2824,9 @@ select {
2828
2824
  width: 1.5rem;
2829
2825
  height: 1.5rem;
2830
2826
  }
2827
+ .group[data-empty] .group-data-\[empty\]\:invisible {
2828
+ visibility: hidden;
2829
+ }
2831
2830
  @media (min-width: 640px) {
2832
2831
 
2833
2832
  .sm\:block {
@@ -2840,6 +2839,16 @@ select {
2840
2839
  width: 400px;
2841
2840
  }
2842
2841
  }
2842
+ @media (min-width: 1024px) {
2843
+
2844
+ .lg\:custom-scrollbar {
2845
+ scrollbar-width: thin !important; /* Firefox */
2846
+ margin-right: 1px;
2847
+ }
2848
+ }
2849
+ .\[\&\:\:-webkit-search-cancel-button\]\:hidden::-webkit-search-cancel-button {
2850
+ display: none;
2851
+ }
2843
2852
  .\[\&_svg\]\:h-3 svg {
2844
2853
  height: 0.75rem;
2845
2854
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpli-route/apollo-ds",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,12 +0,0 @@
1
- import { SelectProps } from './types';
2
-
3
- /**
4
- * Select component **version 0.1** https://www.figma.com/design/h6tZeqNdVEUvrgwOwK4vcY/Design-System---The-Bible?node-id=5862-7802&p=f&t=64UuGkWucIkh7vwn-0
5
- *
6
- * ### Usage
7
- *
8
- * ```typescript
9
- * import { Select, SelectItem } from "@simpli-route/apollo-ds";
10
- * ```
11
- */
12
- export declare const Select: ({ mode, keyLabelName, keyIdName, className, selectButtonClassName, placeholder, isDisabled, size, items, renderItem, value, onSelectChange, classNameLabel, isRequired, label, tooltipText, tooltipSupportText, tooltipProps, hiddenDiscardButton, tooltipMode, textAllOption, }: SelectProps<object>) => import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { RefObject } from 'react';
2
-
3
- interface SelectContentProps {
4
- isDisabled: boolean;
5
- size: "xs" | "sm" | "md" | "lg";
6
- selectButtonClassName?: string;
7
- setIsOpen: (isOpen: boolean) => void;
8
- isOpen: boolean;
9
- value: string[];
10
- placeholder: string;
11
- items?: any[];
12
- keyIdName: string;
13
- keyLabelName: string;
14
- visibleItems: number;
15
- handleDeleteOptionSelected: (option: string) => void;
16
- maxLengthTextOption: number;
17
- hiddenDiscardButton: boolean;
18
- containerRef: RefObject<HTMLDivElement>;
19
- setTooltipMessage: (message: string) => void;
20
- hasOverflow: boolean;
21
- isCalculatingChips: boolean;
22
- }
23
- export declare const SelectContent: ({ isDisabled, size, selectButtonClassName, setIsOpen, isOpen, value, placeholder, items, keyIdName, keyLabelName, visibleItems, handleDeleteOptionSelected, maxLengthTextOption, hiddenDiscardButton, containerRef, setTooltipMessage, hasOverflow, isCalculatingChips, }: SelectContentProps) => import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,13 +0,0 @@
1
- import { ListBoxItemProps } from 'react-aria-components';
2
-
3
- interface SelectItemProps extends Omit<ListBoxItemProps, "id"> {
4
- children: React.ReactNode;
5
- isSelected?: boolean;
6
- /**
7
- * The unique id of the item.
8
- * is necessary for the select component to work and match the selected value
9
- */
10
- id: string | number;
11
- }
12
- export declare const SelectItem: (props: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,3 +0,0 @@
1
- import { TooltipProps } from '../Tooltip';
2
-
3
- export declare const TooltipSelect: ({ children, supportText, mode, className, placement }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export { Select } from './Select';
2
- export { SelectItem } from './SelectItem';
3
- export type { SelectProps } from './types';
@@ -1,76 +0,0 @@
1
- import { TooltipProps } from '../Tooltip';
2
- import { SelectProps as AriaSelectProps } from 'react-aria-components';
3
-
4
- export type BaseOption = {
5
- id: string;
6
- name: string;
7
- };
8
- export interface SelectProps<T extends object> extends Omit<AriaSelectProps<T>, "children" | "onSelectionChange" | "value"> {
9
- label?: string;
10
- onSelectChange: (value: string[]) => void;
11
- classNameLabel?: string;
12
- /**
13
- * Key name of the id field. Example: { id: "123", name: "Option 1" } => keyIdName = "id"
14
- *
15
- */
16
- keyIdName: string;
17
- /**
18
- * Key name of the label field. Example: { id: "123", name: "Option 1" } => keyLabelName = "name"
19
- *
20
- */
21
- keyLabelName: string;
22
- /**
23
- * Array of options to show in the select
24
- */
25
- items: T[];
26
- /**
27
- * Render item function to show options in the select
28
- */
29
- renderItem: <T extends BaseOption>(item: T) => React.ReactNode | null;
30
- /**
31
- * Mode of the select
32
- * @default "single"
33
- */
34
- mode?: "single" | "multiple";
35
- placeholder?: string;
36
- selectButtonClassName?: string;
37
- isDisabled?: boolean;
38
- /**
39
- * Size of the select button
40
- * @default "md"
41
- */
42
- size?: "xs" | "sm" | "md" | "lg";
43
- isRequired?: boolean;
44
- /**
45
- * Optional text to show on a tooltip besides the label
46
- */
47
- tooltipText?: string;
48
- /**
49
- * Define additional support text
50
- */
51
- tooltipSupportText?: string;
52
- /** Optional props to pass to the tooltip
53
- * @default undefined
54
- */
55
- tooltipProps?: Omit<TooltipProps, "children">;
56
- /**
57
- * Current value selected keys of the select
58
- * @default []
59
- */
60
- value?: string[];
61
- /**
62
- * Hide discard button option
63
- * @default false
64
- */
65
- hiddenDiscardButton?: boolean;
66
- /**
67
- * Mode of the tooltip
68
- * @default "dark"
69
- */
70
- tooltipMode?: "dark" | "light";
71
- /**
72
- * Text of the all option
73
- * @default "All"
74
- */
75
- textAllOption?: string;
76
- }