@jamsrui/autocomplete 0.0.7 → 0.0.9
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.
|
@@ -9,11 +9,11 @@ import 'react';
|
|
|
9
9
|
import './autocomplete-content.mjs';
|
|
10
10
|
import './autocomplete-popover.mjs';
|
|
11
11
|
import './styles.mjs';
|
|
12
|
-
import 'tailwind-variants';
|
|
13
12
|
|
|
14
13
|
declare const useAutocompleteConfig: () => AutocompleteConfig.Props;
|
|
15
|
-
declare const AutocompleteConfig: (props: AutocompleteConfig.Props & {
|
|
14
|
+
declare const AutocompleteConfig: (props: Omit<Partial<AutocompleteConfig.Props>, "children"> & {
|
|
16
15
|
merge?: boolean;
|
|
16
|
+
children: React.ReactNode;
|
|
17
17
|
}) => react_jsx_runtime.JSX.Element;
|
|
18
18
|
declare namespace AutocompleteConfig {
|
|
19
19
|
interface Props extends Autocomplete.Props, GlobalConfigProps<Autocomplete.Props> {
|
|
@@ -8,7 +8,6 @@ import './autocomplete-content.mjs';
|
|
|
8
8
|
import './autocomplete-item.mjs';
|
|
9
9
|
import './autocomplete-popover.mjs';
|
|
10
10
|
import './styles.mjs';
|
|
11
|
-
import 'tailwind-variants';
|
|
12
11
|
|
|
13
12
|
declare const useAutocompleteContext: () => AutocompleteContext.Props;
|
|
14
13
|
declare const AutocompleteContext: react.Context<AutocompleteContext.Props | null>;
|
package/dist/autocomplete.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const autocompleteVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const autocompleteVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
radius: {
|
|
7
6
|
sm: {};
|
|
8
7
|
md: {};
|
|
@@ -36,7 +35,7 @@ declare const autocompleteVariants: tailwind_variants.TVReturnType<{
|
|
|
36
35
|
content: string;
|
|
37
36
|
emptyContent: string;
|
|
38
37
|
item: string[];
|
|
39
|
-
},
|
|
38
|
+
}, _jamsrui_utils.TVReturnType<{
|
|
40
39
|
radius: {
|
|
41
40
|
sm: {};
|
|
42
41
|
md: {};
|
|
@@ -57,4 +56,4 @@ declare const autocompleteVariants: tailwind_variants.TVReturnType<{
|
|
|
57
56
|
type AutocompleteSlots = keyof ReturnType<typeof autocompleteVariants>;
|
|
58
57
|
type AutocompleteVariantProps = VariantProps<typeof autocompleteVariants>;
|
|
59
58
|
|
|
60
|
-
export { type AutocompleteSlots, type AutocompleteVariantProps, autocompleteVariants
|
|
59
|
+
export { type AutocompleteSlots, type AutocompleteVariantProps, autocompleteVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{radiusVariant as e,tv as o}from"@jamsrui/utils";const r=
|
|
1
|
+
import{radiusVariant as e,tv as o}from"@jamsrui/utils";const r=o({slots:{root:["group relative flex w-full flex-col text-sm"],popover:"z-popover flex flex-col overflow-hidden rounded-2xl bg-surface shadow-md backdrop-blur-3xl focus:outline-none",content:"flex flex-col gap-px overflow-y-auto p-2",emptyContent:"text-foreground-500",item:["relative flex w-full cursor-pointer select-none items-center gap-2 rounded-xl p-2 text-sm","ui-hover:bg-surface-secondary","ui-active:bg-surface-secondary","ui-selected:bg-surface-secondary/50","ui-disabled:cursor-not-allowed ui-disabled:opacity-60"]},variants:{radius:e(["popover","item"])},defaultVariants:{radius:"md"}});export{r as autocompleteVariants};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/autocomplete",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/react": ">=0.27",
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
13
|
-
"@jamsrui/utils": "^0.0.
|
|
10
|
+
"@jamsrui/input": "^0.0.9",
|
|
11
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
12
|
+
"@jamsrui/core": "^0.0.8",
|
|
13
|
+
"@jamsrui/utils": "^0.0.9"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|