@infinilabs/filter 0.0.0 → 0.0.2

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/index.d.ts CHANGED
@@ -1,63 +1,63 @@
1
- import { ColorPickerProps as ColorPickerProps_2 } from 'antd';
1
+ import { ColorPickerProps } from 'antd';
2
2
  import { ComponentProps } from 'react';
3
3
  import { FC } from 'react';
4
- import { InputProps as InputProps_2 } from 'antd';
4
+ import { InputProps } from 'antd';
5
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
6
  import { MouseEvent as MouseEvent_2 } from 'react';
7
7
  import { PropsWithChildren } from 'react';
8
- import { SelectProps as SelectProps_2 } from 'antd';
8
+ import { SelectProps } from 'antd';
9
9
  import { Slider } from 'antd';
10
10
 
11
- declare interface CheckboxGroupOption {
11
+ export declare const FilterCheckboxGroup: FC<FilterCheckboxGroupProps>;
12
+
13
+ declare interface FilterCheckboxGroupOption {
12
14
  label: string;
13
15
  value: string | number;
14
16
  icon: string;
15
17
  count: number;
16
18
  }
17
19
 
18
- declare interface CheckboxGroupProps extends CollapseProps {
20
+ declare interface FilterCheckboxGroupProps extends FilterCollapseProps {
19
21
  value: Array<string | number>;
20
- options: CheckboxGroupOption[];
22
+ options: FilterCheckboxGroupOption[];
21
23
  onChange?: (value: Array<string | number>) => void;
22
24
  }
23
25
 
24
- declare interface CollapseProps extends PropsWithChildren {
26
+ export declare const FilterCollapse: FC<FilterCollapseProps>;
27
+
28
+ declare interface FilterCollapseProps extends PropsWithChildren {
25
29
  defaultExpand?: boolean;
26
30
  title: string;
27
31
  onClear?: (event: MouseEvent_2) => void;
28
32
  }
29
33
 
30
- declare type ColorPickerProps = CollapseProps & ColorPickerProps_2;
31
-
32
- export declare const FilterCheckboxGroup: FC<CheckboxGroupProps>;
34
+ export declare const FilterColorPicker: FC<FilterColorPickerProps>;
33
35
 
34
- export declare const FilterCollapse: FC<CollapseProps>;
36
+ declare type FilterColorPickerProps = FilterCollapseProps & ColorPickerProps;
35
37
 
36
- export declare const FilterColorPicker: FC<ColorPickerProps>;
38
+ export declare const FilterInput: (props: FilterInputProps) => JSX_2.Element;
37
39
 
38
- export declare const FilterInput: (props: InputProps) => JSX_2.Element;
40
+ declare type FilterInputProps = FilterCollapseProps & InputProps;
39
41
 
40
- export declare const FilterSelect: FC<SelectProps>;
42
+ export declare const FilterSelect: FC<FilterSelectProps>;
41
43
 
42
- export declare const FilterSlider: FC<SliderProps>;
44
+ declare type FilterSelectProps = FilterCollapseProps & SelectProps;
43
45
 
44
- export declare const FilterTags: FC<TagsProps>;
46
+ export declare const FilterSlider: FC<FilterSliderProps>;
45
47
 
46
- declare type InputProps = CollapseProps & InputProps_2;
48
+ declare type FilterSliderProps = FilterCollapseProps & ComponentProps<typeof Slider>;
47
49
 
48
- declare type SelectProps = CollapseProps & SelectProps_2;
49
-
50
- declare type SliderProps = CollapseProps & ComponentProps<typeof Slider>;
51
-
52
- declare interface TagOption {
50
+ declare interface FilterTagOption {
53
51
  label: string;
54
52
  value: string | number;
55
53
  icon?: string;
56
54
  }
57
55
 
58
- declare interface TagsProps extends CollapseProps {
56
+ export declare const FilterTags: FC<FilterTagsProps>;
57
+
58
+ declare interface FilterTagsProps extends FilterCollapseProps {
59
59
  value: Array<string | number>;
60
- options: TagOption[];
60
+ options: FilterTagOption[];
61
61
  onChange?: (value: Array<string | number>) => void;
62
62
  }
63
63
 
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "@infinilabs/filter",
3
- "publishConfig": {
4
- "access": "public"
5
- },
6
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
+ "private": false,
7
5
  "type": "module",
8
6
  "main": "dist/filter.cjs",
9
7
  "module": "dist/filter.js",
@@ -15,6 +13,9 @@
15
13
  "require": "./dist/filter.cjs"
16
14
  }
17
15
  },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
18
19
  "scripts": {
19
20
  "dev": "vite",
20
21
  "build": "tsc -b && vite build",
@@ -27,8 +28,6 @@
27
28
  "clsx": "^2.1.1",
28
29
  "lucide-react": "^0.562.0",
29
30
  "motion": "^12.23.26",
30
- "react": "^19.2.0",
31
- "react-dom": "^19.2.0",
32
31
  "tailwind-merge": "^3.4.0"
33
32
  },
34
33
  "devDependencies": {
@@ -40,11 +39,21 @@
40
39
  "typescript": "~5.9.3",
41
40
  "unocss": "^66.5.10",
42
41
  "vite": "npm:rolldown-vite@7.2.5",
43
- "vite-plugin-dts": "^4.5.4"
42
+ "vite-plugin-dts": "^4.5.4",
43
+ "vite-plugin-css-injected-by-js": "^3.4.1"
44
+ },
45
+ "peerDependencies": {
46
+ "antd": ">=5",
47
+ "react": ">=17",
48
+ "react-dom": ">=17"
44
49
  },
45
50
  "pnpm": {
46
51
  "overrides": {
47
52
  "vite": "npm:rolldown-vite@7.2.5"
48
53
  }
54
+ },
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/infinilabs/ci"
49
58
  }
50
59
  }