@mijn-ui/react-select 0.0.16 → 0.0.17
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/README.md +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/index.js +3 -2
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
4
|
+
import * as _mijn_ui_react_theme from '@mijn-ui/react-theme';
|
|
5
|
+
import { UnstyledProps, UnstyledComponentWithSlots, SelectSlots } from '@mijn-ui/react-theme';
|
|
2
6
|
import * as React from 'react';
|
|
3
|
-
import { UnstyledComponentWithSlots, SelectSlots, UnstyledProps } from '@mijn-ui/react-theme';
|
|
4
7
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
5
8
|
|
|
6
9
|
type SelectBaseProps = UnstyledComponentWithSlots<SelectSlots>;
|
|
10
|
+
declare const useSelectStyles: (unstyledOverride?: boolean) => {
|
|
11
|
+
classNames: _mijn_ui_react_theme.SlotsToClasses<"base" | "trigger" | "scrollUpBtn" | "scrollDownBtn" | "content" | "viewport" | "label" | "item" | "itemIndicator" | "separator"> | undefined;
|
|
12
|
+
isUnstyled: boolean | undefined;
|
|
13
|
+
base: (slotProps?: ({
|
|
14
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
15
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
16
|
+
trigger: (slotProps?: ({
|
|
17
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
18
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
19
|
+
scrollUpBtn: (slotProps?: ({
|
|
20
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
21
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
22
|
+
scrollDownBtn: (slotProps?: ({
|
|
23
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
24
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
25
|
+
content: (slotProps?: ({
|
|
26
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
27
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
28
|
+
viewport: (slotProps?: ({
|
|
29
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
30
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
31
|
+
label: (slotProps?: ({
|
|
32
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
33
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
34
|
+
item: (slotProps?: ({
|
|
35
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
36
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
37
|
+
itemIndicator: (slotProps?: ({
|
|
38
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
39
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
40
|
+
separator: (slotProps?: ({
|
|
41
|
+
position?: "item-aligned" | "popper" | undefined;
|
|
42
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
43
|
+
};
|
|
7
44
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
45
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
9
46
|
type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root> & SelectBaseProps;
|
|
@@ -23,4 +60,4 @@ declare const SelectItem: ({ unstyled, className, children, ...props }: SelectIt
|
|
|
23
60
|
type SelectSeparatorProps = React.ComponentPropsWithRef<typeof SelectPrimitive.Separator> & UnstyledProps;
|
|
24
61
|
declare const SelectSeparator: ({ unstyled, className, ...props }: SelectSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
25
62
|
|
|
26
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
63
|
+
export { Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, useSelectStyles };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client";
|
|
2
2
|
|
|
3
3
|
// src/select.tsx
|
|
4
4
|
import { useTVUnstyled } from "@mijn-ui/react-hooks";
|
|
@@ -186,5 +186,6 @@ export {
|
|
|
186
186
|
SelectScrollUpButton,
|
|
187
187
|
SelectSeparator,
|
|
188
188
|
SelectTrigger,
|
|
189
|
-
SelectValue
|
|
189
|
+
SelectValue,
|
|
190
|
+
useSelectStyles
|
|
190
191
|
};
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/select.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/select.tsx":{"bytes":8344,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":25,"imports":[{"path":"src/select.tsx","kind":"import-statement","original":"./select"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-select","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Select","SelectContent","SelectGroup","SelectItem","SelectLabel","SelectScrollDownButton","SelectScrollUpButton","SelectSeparator","SelectTrigger","SelectValue","useSelectStyles"],"entryPoint":"src/index.ts","inputs":{"src/select.tsx":{"bytesInOutput":4636},"src/index.ts":{"bytesInOutput":0}},"bytes":4871}}}
|