@next-degree/pickle-shared-js 0.12.6 → 0.12.7
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.
- package/dist/components/ui/Select.cjs +19 -6
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.cts +10 -2
- package/dist/components/ui/Select.d.ts +10 -2
- package/dist/components/ui/Select.js +19 -6
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/index.cjs +19 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/dist/styles/globals.css +24 -0
- package/dist/styles/globals.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -43,6 +43,7 @@ import 'cva';
|
|
|
43
43
|
import 'react';
|
|
44
44
|
import 'lucide-react';
|
|
45
45
|
import '@googlemaps/google-maps-services-js';
|
|
46
|
+
import '@radix-ui/react-select';
|
|
46
47
|
import '@radix-ui/react-checkbox';
|
|
47
48
|
import '@radix-ui/react-switch';
|
|
48
49
|
import './components/primitives/radio-group.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import 'cva';
|
|
|
43
43
|
import 'react';
|
|
44
44
|
import 'lucide-react';
|
|
45
45
|
import '@googlemaps/google-maps-services-js';
|
|
46
|
+
import '@radix-ui/react-select';
|
|
46
47
|
import '@radix-ui/react-checkbox';
|
|
47
48
|
import '@radix-ui/react-switch';
|
|
48
49
|
import './components/primitives/radio-group.js';
|
package/dist/index.js
CHANGED
|
@@ -718,6 +718,7 @@ var Select = forwardRef7(
|
|
|
718
718
|
multiselect,
|
|
719
719
|
description,
|
|
720
720
|
classNames,
|
|
721
|
+
dropdownAlign = "start",
|
|
721
722
|
error,
|
|
722
723
|
id,
|
|
723
724
|
children: footer,
|
|
@@ -805,8 +806,13 @@ var Select = forwardRef7(
|
|
|
805
806
|
SelectPrimitive.Content,
|
|
806
807
|
{
|
|
807
808
|
hideWhenDetached: true,
|
|
808
|
-
className:
|
|
809
|
+
className: cn(
|
|
810
|
+
"z-10 max-h-[var(--radix-select-content-available-height)] overflow-hidden rounded-md bg-white py-2 shadow-lg",
|
|
811
|
+
"w-[var(--radix-select-trigger-width)] min-w-[var(--radix-select-trigger-width)]",
|
|
812
|
+
classNames?.content
|
|
813
|
+
),
|
|
809
814
|
position: "popper",
|
|
815
|
+
align: dropdownAlign,
|
|
810
816
|
sideOffset: 4,
|
|
811
817
|
onPointerDownOutside: toggleOpen,
|
|
812
818
|
onKeyDown: closeOnEscape,
|
|
@@ -835,23 +841,30 @@ var Select = forwardRef7(
|
|
|
835
841
|
),
|
|
836
842
|
/* @__PURE__ */ jsx13(Separator, {})
|
|
837
843
|
] }),
|
|
838
|
-
options?.map(({ id: id2, title, value: value2 }) => /* @__PURE__ */ jsxs8(
|
|
844
|
+
options?.map(({ id: id2, title, value: value2, description: description2 }) => /* @__PURE__ */ jsxs8(
|
|
839
845
|
SelectPrimitive.Item,
|
|
840
846
|
{
|
|
841
847
|
value: value2,
|
|
842
|
-
className:
|
|
848
|
+
className: cn(
|
|
849
|
+
"group relative cursor-pointer px-4 py-2 text-left text-sm hover:bg-purple-50 focus:bg-purple-50 focus:outline-none data-[state=checked]:bg-purple-50 data-[state=checked]:pr-10 data-[state=checked]:text-purple-100",
|
|
850
|
+
classNames?.item
|
|
851
|
+
),
|
|
843
852
|
"data-state": selected.includes(value2) ? "checked" : "unchecked",
|
|
844
853
|
onKeyDown: (e) => setValueOnEnter(e, value2),
|
|
845
854
|
onClick: () => handleChange(value2),
|
|
846
855
|
children: [
|
|
847
|
-
/* @__PURE__ */ jsx13(SelectPrimitive.ItemText, { children: title }),
|
|
848
856
|
/* @__PURE__ */ jsx13(
|
|
849
857
|
CheckIcon2,
|
|
850
858
|
{
|
|
851
|
-
className:
|
|
859
|
+
className: cn(
|
|
860
|
+
"absolute inset-y-0 right-3 my-auto hidden w-6 text-purple-100 group-data-[state=checked]:block",
|
|
861
|
+
classNames?.checkmark
|
|
862
|
+
),
|
|
852
863
|
size: 16
|
|
853
864
|
}
|
|
854
|
-
)
|
|
865
|
+
),
|
|
866
|
+
/* @__PURE__ */ jsx13(SelectPrimitive.ItemText, { children: title }),
|
|
867
|
+
description2 && /* @__PURE__ */ jsx13("span", { className: "block text-sm text-grey-70", children: description2 })
|
|
855
868
|
]
|
|
856
869
|
},
|
|
857
870
|
id2
|