solid-element-ui 0.2.1 → 0.2.3

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 (53) hide show
  1. package/README.md +28 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +16787 -9983
  4. package/dist/src/accordion/accordion.d.ts +76 -0
  5. package/dist/src/alert/alert.d.ts +86 -0
  6. package/dist/src/alert-dialog/alert-dialog.d.ts +11 -0
  7. package/dist/src/badge/badge.d.ts +33 -0
  8. package/dist/src/breadcrumbs/breadcrumbs.d.ts +14 -0
  9. package/dist/src/button/button.d.ts +165 -0
  10. package/dist/src/checkbox/checkbox.d.ts +6 -0
  11. package/dist/src/collapsible/collapsible.d.ts +8 -0
  12. package/dist/src/color-area/color-area.d.ts +5 -0
  13. package/dist/src/color-channel-field/color-channel-field.d.ts +6 -0
  14. package/dist/src/color-field/color-field.d.ts +8 -0
  15. package/dist/src/color-slider/color-slider.d.ts +7 -0
  16. package/dist/src/color-swatch/color-swatch.d.ts +5 -0
  17. package/dist/src/color-wheel/color-wheel.d.ts +6 -0
  18. package/dist/src/combobox/combobox.d.ts +11 -0
  19. package/dist/src/context-menu/context-menu.d.ts +15 -0
  20. package/dist/src/dialog/dialog.d.ts +13 -0
  21. package/dist/src/dropdown-menu/dropdown-menu.d.ts +16 -0
  22. package/dist/src/file-field/file-field.d.ts +71 -0
  23. package/dist/src/hover-card/hover-card.d.ts +56 -0
  24. package/dist/src/image/image.d.ts +78 -0
  25. package/dist/src/index.d.ts +43 -0
  26. package/dist/src/link/link.d.ts +46 -0
  27. package/dist/src/menubar/menubar.d.ts +10 -0
  28. package/dist/src/meter/meter.d.ts +72 -0
  29. package/dist/src/navigation-menu/navigation-menu.d.ts +12 -0
  30. package/dist/src/number-field/number-field.d.ts +72 -0
  31. package/dist/src/pagination/pagination.d.ts +5 -0
  32. package/dist/src/popover/popover.d.ts +7 -0
  33. package/dist/src/progress/progress.d.ts +128 -0
  34. package/dist/src/radio-group/radio-group.d.ts +69 -0
  35. package/dist/src/rating-group/rating-group.d.ts +1 -0
  36. package/dist/src/search/search.d.ts +109 -0
  37. package/dist/src/segmented-control/segmented-control.d.ts +83 -0
  38. package/dist/src/select/select.d.ts +94 -0
  39. package/dist/src/separator/separator.d.ts +55 -0
  40. package/dist/src/skeleton/skeleton.d.ts +45 -0
  41. package/dist/src/slider/slider.d.ts +123 -0
  42. package/dist/src/switch/switch.d.ts +108 -0
  43. package/dist/src/tabs/tabs.d.ts +17 -0
  44. package/dist/src/text-field/text-field.d.ts +69 -0
  45. package/dist/src/time-field/time-field.d.ts +1 -0
  46. package/dist/src/toast/toast.d.ts +91 -0
  47. package/dist/src/toggle-button/toggle-button.d.ts +47 -0
  48. package/dist/src/toggle-group/toggle-group.d.ts +91 -0
  49. package/dist/src/tooltip/tooltip.d.ts +53 -0
  50. package/package.json +35 -45
  51. package/dist/index.d.ts +0 -74
  52. package/index.tsx +0 -98
  53. package/readme.md +0 -9
@@ -0,0 +1,47 @@
1
+ import { ToggleButton as KToggle } from '@kobalte/core/toggle-button';
2
+ import { JSX, ComponentProps } from 'solid-js';
3
+ import { VariantProps } from 'tailwind-variants';
4
+ declare const toggleStyles: import('tailwind-variants').TVReturnType<{
5
+ variant: {
6
+ solid: string;
7
+ outline: string;
8
+ ghost: string;
9
+ };
10
+ size: {
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ icon: string;
15
+ };
16
+ }, undefined, string[], {
17
+ variant: {
18
+ solid: string;
19
+ outline: string;
20
+ ghost: string;
21
+ };
22
+ size: {
23
+ sm: string;
24
+ md: string;
25
+ lg: string;
26
+ icon: string;
27
+ };
28
+ }, undefined, import('tailwind-variants').TVReturnType<{
29
+ variant: {
30
+ solid: string;
31
+ outline: string;
32
+ ghost: string;
33
+ };
34
+ size: {
35
+ sm: string;
36
+ md: string;
37
+ lg: string;
38
+ icon: string;
39
+ };
40
+ }, undefined, string[], unknown, unknown, undefined>>;
41
+ type ToggleVariants = VariantProps<typeof toggleStyles>;
42
+ export interface ToggleButtonProps extends Omit<ComponentProps<typeof KToggle>, "class">, ToggleVariants {
43
+ class?: string;
44
+ children?: JSX.Element;
45
+ }
46
+ export declare const ToggleButton: (props: ToggleButtonProps) => JSX.Element;
47
+ export {};
@@ -0,0 +1,91 @@
1
+ import { ToggleGroup as KToggleGroup } from '@kobalte/core/toggle-group';
2
+ import { ComponentProps, JSX } from 'solid-js';
3
+ import { VariantProps } from 'tailwind-variants';
4
+ declare const toggleGroupStyles: import('tailwind-variants').TVReturnType<{
5
+ variant: {
6
+ default: {
7
+ root: string;
8
+ item: string;
9
+ };
10
+ outline: {
11
+ root: string;
12
+ item: string;
13
+ };
14
+ };
15
+ size: {
16
+ sm: {
17
+ item: string;
18
+ };
19
+ md: {
20
+ item: string;
21
+ };
22
+ lg: {
23
+ item: string;
24
+ };
25
+ };
26
+ }, {
27
+ root: string;
28
+ item: string[];
29
+ }, undefined, {
30
+ variant: {
31
+ default: {
32
+ root: string;
33
+ item: string;
34
+ };
35
+ outline: {
36
+ root: string;
37
+ item: string;
38
+ };
39
+ };
40
+ size: {
41
+ sm: {
42
+ item: string;
43
+ };
44
+ md: {
45
+ item: string;
46
+ };
47
+ lg: {
48
+ item: string;
49
+ };
50
+ };
51
+ }, {
52
+ root: string;
53
+ item: string[];
54
+ }, import('tailwind-variants').TVReturnType<{
55
+ variant: {
56
+ default: {
57
+ root: string;
58
+ item: string;
59
+ };
60
+ outline: {
61
+ root: string;
62
+ item: string;
63
+ };
64
+ };
65
+ size: {
66
+ sm: {
67
+ item: string;
68
+ };
69
+ md: {
70
+ item: string;
71
+ };
72
+ lg: {
73
+ item: string;
74
+ };
75
+ };
76
+ }, {
77
+ root: string;
78
+ item: string[];
79
+ }, undefined, unknown, unknown, undefined>>;
80
+ type ToggleGroupVariants = VariantProps<typeof toggleGroupStyles>;
81
+ interface Option {
82
+ label: string | JSX.Element;
83
+ value: string;
84
+ disabled?: boolean;
85
+ }
86
+ export interface ToggleGroupProps extends Omit<ComponentProps<typeof KToggleGroup>, "class">, ToggleGroupVariants {
87
+ options: Option[];
88
+ class?: string;
89
+ }
90
+ export declare const ToggleGroup: (props: ToggleGroupProps) => JSX.Element;
91
+ export {};
@@ -0,0 +1,53 @@
1
+ import { Tooltip as KTooltip } from '@kobalte/core/tooltip';
2
+ import { JSX, ComponentProps } from 'solid-js';
3
+ import { VariantProps } from 'tailwind-variants';
4
+ declare const tooltipStyles: import('tailwind-variants').TVReturnType<{
5
+ variant: {
6
+ default: {
7
+ content: string;
8
+ arrow: string;
9
+ };
10
+ danger: {
11
+ content: string;
12
+ arrow: string;
13
+ };
14
+ };
15
+ }, {
16
+ content: string[];
17
+ arrow: string;
18
+ }, undefined, {
19
+ variant: {
20
+ default: {
21
+ content: string;
22
+ arrow: string;
23
+ };
24
+ danger: {
25
+ content: string;
26
+ arrow: string;
27
+ };
28
+ };
29
+ }, {
30
+ content: string[];
31
+ arrow: string;
32
+ }, import('tailwind-variants').TVReturnType<{
33
+ variant: {
34
+ default: {
35
+ content: string;
36
+ arrow: string;
37
+ };
38
+ danger: {
39
+ content: string;
40
+ arrow: string;
41
+ };
42
+ };
43
+ }, {
44
+ content: string[];
45
+ arrow: string;
46
+ }, undefined, unknown, unknown, undefined>>;
47
+ type TooltipVariants = VariantProps<typeof tooltipStyles>;
48
+ export interface TooltipProps extends Omit<ComponentProps<typeof KTooltip>, "class">, TooltipVariants {
49
+ content: JSX.Element;
50
+ children: JSX.Element;
51
+ }
52
+ export declare const Tooltip: (props: TooltipProps) => JSX.Element;
53
+ export {};
package/package.json CHANGED
@@ -1,43 +1,7 @@
1
1
  {
2
2
  "name": "solid-element-ui",
3
- "version": "0.2.1",
4
- "description": "A Component Library for solidjs",
3
+ "version": "0.2.3",
5
4
  "type": "module",
6
- "files": [
7
- "dist",
8
- "README.md",
9
- "index.tsx",
10
- "src"
11
- ],
12
- "main": "./dist/index.js",
13
- "module": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "exports": {
16
- ".": {
17
- "development": "./index.tsx",
18
- "solid": "./index.tsx",
19
- "types": "./dist/index.d.ts",
20
- "browser": "./dist/index.js",
21
- "default": "./index.tsx",
22
- "import": "./dist/index.js"
23
- }
24
- },
25
- "scripts": {
26
- "dev": "vite",
27
- "build": "tsc -b && vite build"
28
- },
29
- "peerDependencies": {
30
- "solid-js": "^1.9.10"
31
- },
32
- "dependencies": {
33
- "@floating-ui/dom": "^1.7.4",
34
- "class-variance-authority": "^0.7.1",
35
- "tailwind-variants": "^3.2.2"
36
- },
37
- "devDependencies": {
38
- "@solid-element-ui/utils": "workspace:*",
39
- "@tailwindcss/vite": "*"
40
- },
41
5
  "license": "MIT",
42
6
  "author": "sanguogege",
43
7
  "keywords": [
@@ -59,11 +23,37 @@
59
23
  "bugs": {
60
24
  "url": "https://github.com/sanguogege/solid-element-ui/issues"
61
25
  },
62
- "sideEffects": false,
63
- "include": [
64
- "components/**/*",
65
- "index.tsx",
66
- "**/*.ts",
67
- "**/*"
68
- ]
69
- }
26
+ "files": [
27
+ "dist",
28
+ "README.md"
29
+ ],
30
+ "main": "./dist/index.js",
31
+ "module": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "solid": "./src/index.tsx",
37
+ "import": "./dist/index.js",
38
+ "default": "./src/index.tsx"
39
+ },
40
+ "./styles": "./src/index.css",
41
+ "./dist/index.css": "./dist/index.css"
42
+ },
43
+ "source": "./src/index.tsx",
44
+ "scripts": {
45
+ "build": "tsc -b && vite build"
46
+ },
47
+ "peerDependencies": {
48
+ "solid-js": "^1.9.10"
49
+ },
50
+ "dependencies": {
51
+ "@kobalte/core": "^0.13.11",
52
+ "lucide-solid": "^0.562.0",
53
+ "tailwind-merge": "^3.4.0",
54
+ "tailwind-variants": "^3.2.2"
55
+ },
56
+ "devDependencies": {
57
+ "@tailwindcss/vite": "*"
58
+ }
59
+ }
package/dist/index.d.ts DELETED
@@ -1,74 +0,0 @@
1
- export { Button } from './components/button/button.tsx';
2
- export { ButtonGroup } from './components/button/button-group.tsx';
3
- export { Affix } from './components/affix/affix.tsx';
4
- export { Breadcrumb } from './components/breadcrumb/breadcrumb.tsx';
5
- export { BreadcrumbItem } from './components/breadcrumb/breadcrumb-item.tsx';
6
- export { Anchor } from './components/anchor/anchor.tsx';
7
- export { AnchorLink } from './components/anchor/anchor-link.tsx';
8
- export { Divider } from './components/divider/divider.tsx';
9
- export { Autocomplete } from './components/autocomplete/autocomplete.tsx';
10
- export { Cascader } from './components/cascader/cascader.tsx';
11
- export { Checkbox } from './components/checkbox/checkbox.tsx';
12
- export { ColorPicker } from './components/color-picker/color-picker.tsx';
13
- export { DatePicker } from './components/date-picker/date-picker.tsx';
14
- export { Form } from './components/form/form.tsx';
15
- export { FormItem } from './components/form/form-item.tsx';
16
- export { Input } from './components/input/input.tsx';
17
- export { InputNumber } from './components/input-number/input-number.tsx';
18
- export { InputTag } from './components/input-tag/input-tag.tsx';
19
- export { Mentions } from './components/mentions/mentions.tsx';
20
- export { Radio } from './components/radio/radio.tsx';
21
- export { RadioGroup } from './components/radio/radio-group.tsx';
22
- export { Rate } from './components/rate/rate.tsx';
23
- export { Select } from './components/select/select.tsx';
24
- export { Slider } from './components/slider/slider.tsx';
25
- export { Switch } from './components/switch/switch.tsx';
26
- export { TimePicker } from './components/time-picker/time-picker.tsx';
27
- export { Transfer } from './components/transfer/transfer.tsx';
28
- export { TreeSelect } from './components/tree-select/tree-select.tsx';
29
- export { Upload } from './components/upload/upload.tsx';
30
- export { type UploadFile } from './components/upload/setting.ts';
31
- export { Avatar } from './components/avatar/avatar.tsx';
32
- export { Badge } from './components/badge/badge.tsx';
33
- export { Calendar } from './components/calendar/calendar.tsx';
34
- export { Card } from './components/card/card.tsx';
35
- export { Carousel } from './components/carousel/carousel.tsx';
36
- export { Collapse } from './components/collapse/collapse.tsx';
37
- export { CollapsePanel } from './components/collapse/collapse-panel.tsx';
38
- export { Description } from './components/description/description.tsx';
39
- export { DescriptionItem } from './components/description/description-item.tsx';
40
- export { Empty } from './components/empty/empty.tsx';
41
- export { Image } from './components/image/image.tsx';
42
- export { Popover } from './components/popover/popover.tsx';
43
- export { Segmented } from './components/segmented/segmented.tsx';
44
- export { Statistic } from './components/statistic/statistic.tsx';
45
- export { Table } from './components/table/table.tsx';
46
- export { type ColumnType } from './components/table/setting.ts';
47
- export { Tag } from './components/tag/tag.tsx';
48
- export { Timeline } from './components/timeline/timeline.tsx';
49
- export { TimelineItem } from './components/timeline/timeline-item.tsx';
50
- export { Tooltip } from './components/tooltip/tooltip.tsx';
51
- export { Tour } from './components/tour/tour.tsx';
52
- export { Tree } from './components/tree/tree.tsx';
53
- export { type TreeData } from './components/tree/setting.ts';
54
- export { Alert } from './components/alert/alert.tsx';
55
- export { Drawer } from './components/drawer/drawer.tsx';
56
- export { Message } from './components/message/message.tsx';
57
- export { Modal } from './components/modal/modal.tsx';
58
- export { Notification } from './components/notification/notification.tsx';
59
- export { Popconfirm } from './components/popconfirm/popconfirm.tsx';
60
- export { Progress } from './components/progress/progress.tsx';
61
- export { Result } from './components/result/result.tsx';
62
- export { Skeleton } from './components/skeleton/skeleton.tsx';
63
- export { SkeletonElement } from './components/skeleton/skeleton.tsx';
64
- export { Spin } from './components/spin/spin.tsx';
65
- export { Watermark } from './components/watermark/watermark.tsx';
66
- export { Dropdown } from './components/dropdown/dropdown.tsx';
67
- export { Menu } from './components/menu/menu.tsx';
68
- export { type MenuItemType } from './components/menu/setting.ts';
69
- export { Pagination } from './components/pagination/pagination.tsx';
70
- export { Steps } from './components/steps/steps.tsx';
71
- export { Tabs } from './components/tabs/tabs.tsx';
72
- export { Masonry } from './components/masonry/masonry.tsx';
73
- declare const justForTest: () => void;
74
- export default justForTest;
package/index.tsx DELETED
@@ -1,98 +0,0 @@
1
- // TODO ICONS 的选择
2
- // TODO 国际化的选择
3
- // TODO 主题定制
4
- // TODO 文档站点搭建
5
- // TODO 单元测试
6
- // TODO CI/CD 流水线搭建
7
- // TODO 专属css
8
- // TODO 格栅布局,flex布局,space看情况再说添加不添加
9
-
10
- // TODO 使用cva+cn 重新编写组件
11
-
12
- import "./css/index.css";
13
- export { Button } from "./components/button/button.tsx";
14
- export { ButtonGroup } from "./components/button/button-group.tsx";
15
- export { Affix } from "./components/affix/affix.tsx";
16
- export { Breadcrumb } from "./components/breadcrumb/breadcrumb.tsx";
17
- export { BreadcrumbItem } from "./components/breadcrumb/breadcrumb-item.tsx";
18
- export { Anchor } from "./components/anchor/anchor.tsx";
19
- export { AnchorLink } from "./components/anchor/anchor-link.tsx";
20
-
21
- export { Divider } from "./components/divider/divider.tsx";
22
-
23
- export { Autocomplete } from "./components/autocomplete/autocomplete.tsx";
24
-
25
- export { Cascader } from "./components/cascader/cascader.tsx";
26
- export { Checkbox } from "./components/checkbox/checkbox.tsx";
27
-
28
- export { ColorPicker } from "./components/color-picker/color-picker.tsx";
29
-
30
- export { DatePicker } from "./components/date-picker/date-picker.tsx";
31
-
32
- export { Form } from "./components/form/form.tsx";
33
- export { FormItem } from "./components/form/form-item.tsx";
34
- export { Input } from "./components/input/input.tsx";
35
- export { InputNumber } from "./components/input-number/input-number.tsx";
36
- export { InputTag } from "./components/input-tag/input-tag.tsx";
37
- export { Mentions } from "./components/mentions/mentions.tsx";
38
-
39
- export { Radio } from "./components/radio/radio.tsx";
40
- export { RadioGroup } from "./components/radio/radio-group.tsx";
41
- export { Rate } from "./components/rate/rate.tsx";
42
- export { Select } from "./components/select/select.tsx";
43
- export { Slider } from "./components/slider/slider.tsx";
44
- export { Switch } from "./components/switch/switch.tsx";
45
- export { TimePicker } from "./components/time-picker/time-picker.tsx";
46
- export { Transfer } from "./components/transfer/transfer.tsx";
47
- export { TreeSelect } from "./components/tree-select/tree-select.tsx";
48
- export { Upload } from "./components/upload/upload.tsx";
49
- export { type UploadFile } from "./components/upload/setting.ts";
50
- export { Avatar } from "./components/avatar/avatar.tsx";
51
- export { Badge } from "./components/badge/badge.tsx";
52
- export { Calendar } from "./components/calendar/calendar.tsx";
53
- export { Card } from "./components/card/card.tsx";
54
- export { Carousel } from "./components/carousel/carousel.tsx";
55
- export { Collapse } from "./components/collapse/collapse.tsx";
56
- export { CollapsePanel } from "./components/collapse/collapse-panel.tsx";
57
- export { Description } from "./components/description/description.tsx";
58
- export { DescriptionItem } from "./components/description/description-item.tsx";
59
- export { Empty } from "./components/empty/empty.tsx";
60
- export { Image } from "./components/image/image.tsx";
61
- export { Popover } from "./components/popover/popover.tsx";
62
- export { Segmented } from "./components/segmented/segmented.tsx";
63
- export { Statistic } from "./components/statistic/statistic.tsx";
64
- export { Table } from "./components/table/table.tsx";
65
- export { type ColumnType } from "./components/table/setting.ts";
66
- export { Tag } from "./components/tag/tag.tsx";
67
- export { Timeline } from "./components/timeline/timeline.tsx";
68
- export { TimelineItem } from "./components/timeline/timeline-item.tsx";
69
- export { Tooltip } from "./components/tooltip/tooltip.tsx";
70
- export { Tour } from "./components/tour/tour.tsx";
71
- export { Tree } from "./components/tree/tree.tsx";
72
- export { type TreeData } from "./components/tree/setting.ts";
73
- export { Alert } from "./components/alert/alert.tsx";
74
- export { Drawer } from "./components/drawer/drawer.tsx";
75
- export { Message } from "./components/message/message.tsx";
76
- export { Modal } from "./components/modal/modal.tsx";
77
- export { Notification } from "./components/notification/notification.tsx";
78
- export { Popconfirm } from "./components/popconfirm/popconfirm.tsx";
79
- export { Progress } from "./components/progress/progress.tsx";
80
- export { Result } from "./components/result/result.tsx";
81
- export { Skeleton } from "./components/skeleton/skeleton.tsx";
82
- export { SkeletonElement } from "./components/skeleton/skeleton.tsx";
83
- export { Spin } from "./components/spin/spin.tsx";
84
- export { Watermark } from "./components/watermark/watermark.tsx";
85
- export { Dropdown } from "./components/dropdown/dropdown.tsx";
86
- export { Menu } from "./components/menu/menu.tsx";
87
- export { type MenuItemType } from "./components/menu/setting.ts";
88
- export { Pagination } from "./components/pagination/pagination.tsx";
89
- export { Steps } from "./components/steps/steps.tsx";
90
- export { Tabs } from "./components/tabs/tabs.tsx";
91
- export { Masonry } from "./components/masonry/masonry.tsx";
92
-
93
- const justForTest = () => {
94
- console.log("just for test");
95
- console.log("make it work 1.0.2");
96
- };
97
-
98
- export default justForTest;
package/readme.md DELETED
@@ -1,9 +0,0 @@
1
- ## Usage
2
-
3
- ```bash
4
- $ npm install # or pnpm install or yarn install
5
- ```
6
-
7
- ### In infrastructure construction
8
-
9
-