@simpli-route/apollo-ds 0.1.42 → 0.1.43

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 (329) hide show
  1. package/dist/components/FilterButton/FilterButton.d.ts +3 -0
  2. package/dist/components/FilterButton/index.d.ts +1 -0
  3. package/dist/components/FilterButton/types.d.ts +60 -0
  4. package/dist/components/FilterButton/variants.d.ts +12 -0
  5. package/dist/components/SelectInput/PopoverContent.d.ts +12 -0
  6. package/dist/components/SelectInput/SelectContent.d.ts +16 -0
  7. package/dist/components/SelectInput/SelectInput.d.ts +6 -0
  8. package/dist/components/SelectInput/index.d.ts +2 -0
  9. package/dist/components/SelectInput/types.d.ts +112 -0
  10. package/dist/components/{Select → SelectInput}/variants.d.ts +6 -7
  11. package/dist/components/index.d.ts +2 -1
  12. package/dist/index.cjs.js +1 -1
  13. package/dist/index.cjs10.js +1 -1
  14. package/dist/index.cjs100.js +1 -1
  15. package/dist/index.cjs101.js +1 -1
  16. package/dist/index.cjs102.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.cjs150.js +1 -1
  61. package/dist/index.cjs151.js +1 -1
  62. package/dist/index.cjs152.js +1 -1
  63. package/dist/index.cjs153.js +1 -1
  64. package/dist/index.cjs155.js +1 -1
  65. package/dist/index.cjs156.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.cjs164.js +1 -1
  72. package/dist/index.cjs165.js +1 -0
  73. package/dist/index.cjs166.js +1 -0
  74. package/dist/index.cjs167.js +1 -0
  75. package/dist/index.cjs17.js +1 -1
  76. package/dist/index.cjs18.js +1 -1
  77. package/dist/index.cjs19.js +1 -1
  78. package/dist/index.cjs2.js +1 -1
  79. package/dist/index.cjs20.js +1 -1
  80. package/dist/index.cjs21.js +1 -1
  81. package/dist/index.cjs22.js +1 -1
  82. package/dist/index.cjs23.js +1 -1
  83. package/dist/index.cjs24.js +1 -1
  84. package/dist/index.cjs25.js +1 -1
  85. package/dist/index.cjs26.js +1 -1
  86. package/dist/index.cjs27.js +1 -1
  87. package/dist/index.cjs28.js +1 -1
  88. package/dist/index.cjs3.js +1 -1
  89. package/dist/index.cjs31.js +1 -1
  90. package/dist/index.cjs32.js +1 -1
  91. package/dist/index.cjs33.js +1 -1
  92. package/dist/index.cjs34.js +1 -1
  93. package/dist/index.cjs35.js +1 -1
  94. package/dist/index.cjs36.js +1 -1
  95. package/dist/index.cjs37.js +1 -1
  96. package/dist/index.cjs38.js +1 -1
  97. package/dist/index.cjs39.js +1 -1
  98. package/dist/index.cjs4.js +1 -1
  99. package/dist/index.cjs40.js +1 -1
  100. package/dist/index.cjs42.js +1 -1
  101. package/dist/index.cjs43.js +1 -1
  102. package/dist/index.cjs44.js +1 -1
  103. package/dist/index.cjs45.js +1 -1
  104. package/dist/index.cjs46.js +1 -1
  105. package/dist/index.cjs47.js +1 -1
  106. package/dist/index.cjs48.js +1 -1
  107. package/dist/index.cjs49.js +1 -1
  108. package/dist/index.cjs5.js +1 -1
  109. package/dist/index.cjs50.js +1 -1
  110. package/dist/index.cjs51.js +1 -1
  111. package/dist/index.cjs52.js +1 -1
  112. package/dist/index.cjs53.js +1 -1
  113. package/dist/index.cjs54.js +1 -1
  114. package/dist/index.cjs55.js +1 -1
  115. package/dist/index.cjs56.js +1 -1
  116. package/dist/index.cjs57.js +1 -1
  117. package/dist/index.cjs58.js +1 -1
  118. package/dist/index.cjs59.js +1 -1
  119. package/dist/index.cjs6.js +1 -1
  120. package/dist/index.cjs60.js +1 -1
  121. package/dist/index.cjs61.js +1 -1
  122. package/dist/index.cjs62.js +1 -1
  123. package/dist/index.cjs63.js +1 -1
  124. package/dist/index.cjs64.js +1 -1
  125. package/dist/index.cjs65.js +1 -1
  126. package/dist/index.cjs66.js +1 -1
  127. package/dist/index.cjs67.js +1 -1
  128. package/dist/index.cjs68.js +1 -1
  129. package/dist/index.cjs69.js +1 -1
  130. package/dist/index.cjs7.js +1 -1
  131. package/dist/index.cjs70.js +1 -1
  132. package/dist/index.cjs72.js +1 -1
  133. package/dist/index.cjs73.js +1 -1
  134. package/dist/index.cjs75.js +1 -1
  135. package/dist/index.cjs76.js +1 -1
  136. package/dist/index.cjs77.js +1 -1
  137. package/dist/index.cjs78.js +1 -1
  138. package/dist/index.cjs79.js +1 -1
  139. package/dist/index.cjs8.js +1 -1
  140. package/dist/index.cjs80.js +1 -1
  141. package/dist/index.cjs81.js +1 -9
  142. package/dist/index.cjs82.js +3 -13
  143. package/dist/index.cjs83.js +19 -1
  144. package/dist/index.cjs84.js +1 -1
  145. package/dist/index.cjs85.js +1 -1
  146. package/dist/index.cjs86.js +1 -1
  147. package/dist/index.cjs87.js +1 -1
  148. package/dist/index.cjs88.js +1 -1
  149. package/dist/index.cjs89.js +1 -1
  150. package/dist/index.cjs9.js +1 -1
  151. package/dist/index.cjs90.js +1 -1
  152. package/dist/index.cjs91.js +1 -1
  153. package/dist/index.cjs92.js +1 -1
  154. package/dist/index.cjs93.js +1 -1
  155. package/dist/index.cjs94.js +1 -1
  156. package/dist/index.cjs95.js +1 -1
  157. package/dist/index.cjs96.js +1 -1
  158. package/dist/index.cjs97.js +1 -1
  159. package/dist/index.cjs98.js +1 -1
  160. package/dist/index.cjs99.js +1 -1
  161. package/dist/index.es.js +50 -50
  162. package/dist/index.es10.js +45 -33
  163. package/dist/index.es100.js +2 -4
  164. package/dist/index.es101.js +30 -26
  165. package/dist/index.es102.js +57 -2
  166. package/dist/index.es103.js +4 -8
  167. package/dist/index.es104.js +27 -341
  168. package/dist/index.es105.js +2 -166
  169. package/dist/index.es106.js +10 -190
  170. package/dist/index.es107.js +339 -48
  171. package/dist/index.es108.js +166 -2
  172. package/dist/index.es109.js +190 -4
  173. package/dist/index.es11.js +38 -76
  174. package/dist/index.es110.js +42 -12
  175. package/dist/index.es112.js +2 -43
  176. package/dist/index.es113.js +21 -7
  177. package/dist/index.es114.js +2 -5
  178. package/dist/index.es115.js +44 -26
  179. package/dist/index.es116.js +7 -192
  180. package/dist/index.es117.js +7 -16
  181. package/dist/index.es118.js +21 -347
  182. package/dist/index.es119.js +187 -19
  183. package/dist/index.es12.js +77 -32
  184. package/dist/index.es120.js +8 -11
  185. package/dist/index.es121.js +345 -146
  186. package/dist/index.es122.js +18 -11
  187. package/dist/index.es123.js +11 -9
  188. package/dist/index.es124.js +144 -201
  189. package/dist/index.es125.js +13 -64
  190. package/dist/index.es126.js +9 -6
  191. package/dist/index.es127.js +211 -4
  192. package/dist/index.es128.js +68 -4
  193. package/dist/index.es129.js +14 -4
  194. package/dist/index.es13.js +32 -113
  195. package/dist/index.es130.js +2 -2
  196. package/dist/index.es131.js +2 -2
  197. package/dist/index.es132.js +2 -2
  198. package/dist/index.es133.js +2 -2
  199. package/dist/index.es134.js +2 -2
  200. package/dist/index.es135.js +2 -2
  201. package/dist/index.es137.js +2 -2
  202. package/dist/index.es138.js +2 -2
  203. package/dist/index.es139.js +2 -1063
  204. package/dist/index.es14.js +88 -94
  205. package/dist/index.es140.js +4 -77
  206. package/dist/index.es141.js +2 -2
  207. package/dist/index.es142.js +1064 -19
  208. package/dist/index.es143.js +77 -4
  209. package/dist/index.es144.js +2 -57
  210. package/dist/index.es145.js +59 -61
  211. package/dist/index.es146.js +20 -4
  212. package/dist/index.es147.js +4 -14
  213. package/dist/index.es148.js +53 -303
  214. package/dist/index.es149.js +4 -26
  215. package/dist/index.es15.js +111 -35
  216. package/dist/index.es150.js +14 -4
  217. package/dist/index.es151.js +311 -4
  218. package/dist/index.es152.js +26 -4
  219. package/dist/index.es153.js +4 -94
  220. package/dist/index.es154.js +2 -2
  221. package/dist/index.es155.js +2 -8
  222. package/dist/index.es156.js +86 -20
  223. package/dist/index.es157.js +2 -2
  224. package/dist/index.es158.js +10 -51
  225. package/dist/index.es159.js +21 -12
  226. package/dist/index.es16.js +41 -138
  227. package/dist/index.es160.js +2 -2
  228. package/dist/index.es161.js +51 -4
  229. package/dist/index.es162.js +14 -748
  230. package/dist/index.es163.js +2 -2
  231. package/dist/index.es164.js +2 -2
  232. package/dist/index.es165.js +753 -0
  233. package/dist/index.es166.js +4 -0
  234. package/dist/index.es167.js +4 -0
  235. package/dist/index.es17.js +136 -154
  236. package/dist/index.es18.js +149 -30
  237. package/dist/index.es19.js +38 -49
  238. package/dist/index.es2.js +1 -1
  239. package/dist/index.es20.js +48 -36
  240. package/dist/index.es21.js +37 -104
  241. package/dist/index.es22.js +102 -89
  242. package/dist/index.es23.js +82 -101
  243. package/dist/index.es24.js +107 -72
  244. package/dist/index.es25.js +74 -142
  245. package/dist/index.es26.js +93 -39
  246. package/dist/index.es27.js +1 -1
  247. package/dist/index.es28.js +3 -3
  248. package/dist/index.es3.js +2 -2
  249. package/dist/index.es31.js +2 -2
  250. package/dist/index.es32.js +4 -4
  251. package/dist/index.es33.js +4 -4
  252. package/dist/index.es34.js +3 -3
  253. package/dist/index.es35.js +2 -2
  254. package/dist/index.es36.js +2 -2
  255. package/dist/index.es37.js +2 -2
  256. package/dist/index.es38.js +3 -3
  257. package/dist/index.es39.js +6 -27
  258. package/dist/index.es4.js +2 -2
  259. package/dist/index.es40.js +31 -6
  260. package/dist/index.es42.js +171 -10
  261. package/dist/index.es43.js +40 -31
  262. package/dist/index.es44.js +33 -17
  263. package/dist/index.es45.js +122 -16
  264. package/dist/index.es46.js +83 -15
  265. package/dist/index.es47.js +128 -154
  266. package/dist/index.es48.js +116 -23
  267. package/dist/index.es49.js +90 -59
  268. package/dist/index.es5.js +21 -21
  269. package/dist/index.es50.js +84 -115
  270. package/dist/index.es51.js +24 -126
  271. package/dist/index.es52.js +74 -72
  272. package/dist/index.es53.js +24 -98
  273. package/dist/index.es54.js +3 -34
  274. package/dist/index.es55.js +137 -94
  275. package/dist/index.es56.js +75 -23
  276. package/dist/index.es57.js +16 -49
  277. package/dist/index.es58.js +30 -40
  278. package/dist/index.es59.js +18 -3
  279. package/dist/index.es6.js +3 -3
  280. package/dist/index.es60.js +16 -159
  281. package/dist/index.es61.js +14 -90
  282. package/dist/index.es62.js +161 -20
  283. package/dist/index.es63.js +10 -30
  284. package/dist/index.es64.js +1 -1
  285. package/dist/index.es65.js +2 -2
  286. package/dist/index.es66.js +13 -137
  287. package/dist/index.es67.js +64 -19
  288. package/dist/index.es68.js +88 -13
  289. package/dist/index.es69.js +66 -149
  290. package/dist/index.es7.js +2 -2
  291. package/dist/index.es70.js +2 -2
  292. package/dist/index.es72.js +3 -3
  293. package/dist/index.es73.js +3 -3
  294. package/dist/index.es75.js +10 -19
  295. package/dist/index.es76.js +10 -20
  296. package/dist/index.es77.js +45 -10
  297. package/dist/index.es78.js +19 -10
  298. package/dist/index.es79.js +17 -42
  299. package/dist/index.es8.js +4 -4
  300. package/dist/index.es80.js +40 -2
  301. package/dist/index.es81.js +2 -30
  302. package/dist/index.es82.js +21 -590
  303. package/dist/index.es83.js +599 -21
  304. package/dist/index.es84.js +17 -17
  305. package/dist/index.es85.js +14 -18
  306. package/dist/index.es86.js +19 -15
  307. package/dist/index.es87.js +14 -10
  308. package/dist/index.es88.js +12 -10
  309. package/dist/index.es89.js +8 -8
  310. package/dist/index.es9.js +74 -40
  311. package/dist/index.es90.js +6 -6
  312. package/dist/index.es91.js +11 -13
  313. package/dist/index.es92.js +8 -10
  314. package/dist/index.es93.js +12 -10
  315. package/dist/index.es94.js +13 -13
  316. package/dist/index.es95.js +11 -9
  317. package/dist/index.es96.js +19 -30
  318. package/dist/index.es97.js +19 -2
  319. package/dist/index.es98.js +19 -2
  320. package/dist/index.es99.js +2 -57
  321. package/dist/stories/SelectInput.stories.d.ts +50 -0
  322. package/dist/style.css +63 -63
  323. package/package.json +1 -1
  324. package/dist/components/Select/Select.d.ts +0 -12
  325. package/dist/components/Select/SelectContent.d.ts +0 -24
  326. package/dist/components/Select/SelectItem.d.ts +0 -13
  327. package/dist/components/Select/TooltipSelect.d.ts +0 -3
  328. package/dist/components/Select/index.d.ts +0 -3
  329. package/dist/components/Select/types.d.ts +0 -76
@@ -1,59 +1,4 @@
1
- import { j as r } from "./index.es38.js";
2
- import { SliderThumb as m } from "react-aria-components";
3
- import { cn as i } from "./index.es40.js";
4
- import { Tooltip as c } from "./index.es34.js";
5
- import { TooltipTrigger as d } from "./index.es35.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
  };
@@ -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,12 @@ select {
851
828
  .z-\[1000px\] {
852
829
  z-index: 1000px;
853
830
  }
831
+ .m-1 {
832
+ margin: 0.25rem;
833
+ }
834
+ .m-4 {
835
+ margin: 1rem;
836
+ }
854
837
  .mx-0 {
855
838
  margin-left: 0px;
856
839
  margin-right: 0px;
@@ -895,9 +878,6 @@ select {
895
878
  .-mb-0\.5 {
896
879
  margin-bottom: -0.125rem;
897
880
  }
898
- .-mb-2 {
899
- margin-bottom: -0.5rem;
900
- }
901
881
  .mb-0 {
902
882
  margin-bottom: 0px;
903
883
  }
@@ -940,15 +920,9 @@ select {
940
920
  .mr-2 {
941
921
  margin-right: 0.5rem;
942
922
  }
943
- .mr-20 {
944
- margin-right: 5rem;
945
- }
946
923
  .mr-3 {
947
924
  margin-right: 0.75rem;
948
925
  }
949
- .mr-\[5px\] {
950
- margin-right: 5px;
951
- }
952
926
  .mt-0 {
953
927
  margin-top: 0px;
954
928
  }
@@ -1040,6 +1014,9 @@ select {
1040
1014
  .h-1 {
1041
1015
  height: 0.25rem;
1042
1016
  }
1017
+ .h-10 {
1018
+ height: 2.5rem;
1019
+ }
1043
1020
  .h-12 {
1044
1021
  height: 3rem;
1045
1022
  }
@@ -1085,21 +1062,9 @@ select {
1085
1062
  .h-\[32px\] {
1086
1063
  height: 32px;
1087
1064
  }
1088
- .h-\[40px\] {
1089
- height: 40px;
1090
- }
1091
- .h-\[48px\] {
1092
- height: 48px;
1093
- }
1094
- .h-\[56px\] {
1095
- height: 56px;
1096
- }
1097
1065
  .h-full {
1098
1066
  height: 100%;
1099
1067
  }
1100
- .\!max-h-\[185px\] {
1101
- max-height: 185px !important;
1102
- }
1103
1068
  .\!max-h-\[300px\] {
1104
1069
  max-height: 300px !important;
1105
1070
  }
@@ -1109,6 +1074,21 @@ select {
1109
1074
  .max-h-60 {
1110
1075
  max-height: 15rem;
1111
1076
  }
1077
+ .max-h-\[260px\] {
1078
+ max-height: 260px;
1079
+ }
1080
+ .min-h-10 {
1081
+ min-height: 2.5rem;
1082
+ }
1083
+ .min-h-12 {
1084
+ min-height: 3rem;
1085
+ }
1086
+ .min-h-14 {
1087
+ min-height: 3.5rem;
1088
+ }
1089
+ .min-h-8 {
1090
+ min-height: 2rem;
1091
+ }
1112
1092
  .min-h-\[28px\] {
1113
1093
  min-height: 28px;
1114
1094
  }
@@ -1192,9 +1172,6 @@ select {
1192
1172
  width: -moz-max-content;
1193
1173
  width: max-content;
1194
1174
  }
1195
- .\!min-w-\[150px\] {
1196
- min-width: 150px !important;
1197
- }
1198
1175
  .min-w-0 {
1199
1176
  min-width: 0px;
1200
1177
  }
@@ -1404,6 +1381,11 @@ select {
1404
1381
  .overflow-y-auto {
1405
1382
  overflow-y: auto;
1406
1383
  }
1384
+ .truncate {
1385
+ overflow: hidden;
1386
+ text-overflow: ellipsis;
1387
+ white-space: nowrap;
1388
+ }
1407
1389
  .whitespace-normal {
1408
1390
  white-space: normal;
1409
1391
  }
@@ -1431,6 +1413,9 @@ select {
1431
1413
  .border {
1432
1414
  border-width: 1px;
1433
1415
  }
1416
+ .border-0 {
1417
+ border-width: 0px;
1418
+ }
1434
1419
  .border-2 {
1435
1420
  border-width: 2px;
1436
1421
  }
@@ -1876,6 +1861,10 @@ select {
1876
1861
  padding-left: 0.5rem;
1877
1862
  padding-right: 0.5rem;
1878
1863
  }
1864
+ .px-2\.5 {
1865
+ padding-left: 0.625rem;
1866
+ padding-right: 0.625rem;
1867
+ }
1879
1868
  .px-3 {
1880
1869
  padding-left: 0.75rem;
1881
1870
  padding-right: 0.75rem;
@@ -1924,9 +1913,6 @@ select {
1924
1913
  padding-top: 2px;
1925
1914
  padding-bottom: 2px;
1926
1915
  }
1927
- .\!pr-2 {
1928
- padding-right: 0.5rem !important;
1929
- }
1930
1916
  .pb-2 {
1931
1917
  padding-bottom: 0.5rem;
1932
1918
  }
@@ -1936,9 +1922,6 @@ select {
1936
1922
  .pl-1 {
1937
1923
  padding-left: 0.25rem;
1938
1924
  }
1939
- .pl-1\.5 {
1940
- padding-left: 0.375rem;
1941
- }
1942
1925
  .pl-2 {
1943
1926
  padding-left: 0.5rem;
1944
1927
  }
@@ -2290,6 +2273,9 @@ select {
2290
2273
  .outline {
2291
2274
  outline-style: solid;
2292
2275
  }
2276
+ .outline-0 {
2277
+ outline-width: 0px;
2278
+ }
2293
2279
  .ring-0 {
2294
2280
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2295
2281
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2442,16 +2428,6 @@ select {
2442
2428
  .ease-in-out {
2443
2429
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2444
2430
  }
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
2431
  .custom-scrollbar {
2456
2432
  scrollbar-width: thin !important; /* Firefox */
2457
2433
 
@@ -2666,6 +2642,9 @@ select {
2666
2642
  --tw-border-opacity: 1;
2667
2643
  border-color: rgb(29 13 165 / var(--tw-border-opacity));
2668
2644
  }
2645
+ .hover\:bg-black\/\[5\%\]:hover {
2646
+ background-color: rgb(0 0 0 / 5%);
2647
+ }
2669
2648
  .hover\:bg-neutral-100:hover {
2670
2649
  --tw-bg-opacity: 1;
2671
2650
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
@@ -2808,10 +2787,18 @@ select {
2808
2787
  .focus-visible\:ring-offset-1:focus-visible {
2809
2788
  --tw-ring-offset-width: 1px;
2810
2789
  }
2790
+ .group:hover .group-hover\:bg-primary-500 {
2791
+ --tw-bg-opacity: 1;
2792
+ background-color: rgb(76 59 239 / var(--tw-bg-opacity));
2793
+ }
2811
2794
  .group:hover .group-hover\:text-blue-500 {
2812
2795
  --tw-text-opacity: 1;
2813
2796
  color: rgb(38 68 217 / var(--tw-text-opacity));
2814
2797
  }
2798
+ .group:hover .group-hover\:text-primary-100 {
2799
+ --tw-text-opacity: 1;
2800
+ color: rgb(230 227 255 / var(--tw-text-opacity));
2801
+ }
2815
2802
  .group:focus .group-focus\:text-white {
2816
2803
  --tw-text-opacity: 1;
2817
2804
  color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -2828,6 +2815,9 @@ select {
2828
2815
  width: 1.5rem;
2829
2816
  height: 1.5rem;
2830
2817
  }
2818
+ .group[data-empty] .group-data-\[empty\]\:invisible {
2819
+ visibility: hidden;
2820
+ }
2831
2821
  @media (min-width: 640px) {
2832
2822
 
2833
2823
  .sm\:block {
@@ -2840,6 +2830,16 @@ select {
2840
2830
  width: 400px;
2841
2831
  }
2842
2832
  }
2833
+ @media (min-width: 1024px) {
2834
+
2835
+ .lg\:custom-scrollbar {
2836
+ scrollbar-width: thin !important; /* Firefox */
2837
+ margin-right: 1px;
2838
+ }
2839
+ }
2840
+ .\[\&\:\:-webkit-search-cancel-button\]\:hidden::-webkit-search-cancel-button {
2841
+ display: none;
2842
+ }
2843
2843
  .\[\&_svg\]\:h-3 svg {
2844
2844
  height: 0.75rem;
2845
2845
  }
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.43",
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
- }