ninemoon-ui 0.0.1

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 (84) hide show
  1. package/README.md +10 -0
  2. package/dist/badge.css +27 -0
  3. package/dist/carousel.css +13 -0
  4. package/dist/checkgroup.css +41 -0
  5. package/dist/components/alert/alert.d.ts +11 -0
  6. package/dist/components/alert/alertcomponent.vue.d.ts +12 -0
  7. package/dist/components/badge/badge.vue.d.ts +38 -0
  8. package/dist/components/carousel/carousel.vue.d.ts +10 -0
  9. package/dist/components/carousel/carouselitem.vue.d.ts +9 -0
  10. package/dist/components/check/checkbox.vue.d.ts +25 -0
  11. package/dist/components/check/checkgroup.vue.d.ts +25 -0
  12. package/dist/components/date/datepicker.vue.d.ts +21 -0
  13. package/dist/components/date/datepickerRange.vue.d.ts +14 -0
  14. package/dist/components/date/getcalendar.d.ts +11 -0
  15. package/dist/components/dialog/dialog.vue.d.ts +79 -0
  16. package/dist/components/form/form.vue.d.ts +54 -0
  17. package/dist/components/form/formlabel.vue.d.ts +44 -0
  18. package/dist/components/image/image.vue.d.ts +38 -0
  19. package/dist/components/input/input.vue.d.ts +65 -0
  20. package/dist/components/loadding/loadcomponent.vue.d.ts +5 -0
  21. package/dist/components/loadding/loadding.d.ts +22 -0
  22. package/dist/components/menu/menu.vue.d.ts +14 -0
  23. package/dist/components/message/message.d.ts +18 -0
  24. package/dist/components/message/messagecomponent.vue.d.ts +17 -0
  25. package/dist/components/numberInput/numberinput.vue.d.ts +64 -0
  26. package/dist/components/pagination/pagination.vue.d.ts +31 -0
  27. package/dist/components/popover/popover.vue.d.ts +59 -0
  28. package/dist/components/radio/radiobox.vue.d.ts +25 -0
  29. package/dist/components/radio/radiogroup.vue.d.ts +25 -0
  30. package/dist/components/scrollBar/movebar.vue.d.ts +38 -0
  31. package/dist/components/scrollBar/scrollBar.vue.d.ts +48 -0
  32. package/dist/components/scrollloading/scrolllead.d.ts +20 -0
  33. package/dist/components/select/select.vue.d.ts +43 -0
  34. package/dist/components/select/selectoption.vue.d.ts +25 -0
  35. package/dist/components/switch/switch.vue.d.ts +49 -0
  36. package/dist/components/table/table.vue.d.ts +61 -0
  37. package/dist/components/table/tableItem.vue.d.ts +66 -0
  38. package/dist/components/tabs/tabs.vue.d.ts +30 -0
  39. package/dist/components/tabs/tabsPane.vue.d.ts +19 -0
  40. package/dist/components/tree/tree.vue.d.ts +47 -0
  41. package/dist/components/upload/upload.vue.d.ts +65 -0
  42. package/dist/components/utils/tool.d.ts +44 -0
  43. package/dist/datepickerRange.css +79 -0
  44. package/dist/image.css +8 -0
  45. package/dist/index.css +816 -0
  46. package/dist/index.d.ts +2787 -0
  47. package/dist/index.es.js +37 -0
  48. package/dist/index.umd.js +5930 -0
  49. package/dist/js/badge/badge.js +46 -0
  50. package/dist/js/carousel/carousel.js +196 -0
  51. package/dist/js/carousel/carouselitem.js +16 -0
  52. package/dist/js/check/checkbox.js +16 -0
  53. package/dist/js/check/checkgroup.js +91 -0
  54. package/dist/js/date/datepicker.js +373 -0
  55. package/dist/js/date/datepickerRange.js +579 -0
  56. package/dist/js/dialog/dialog.js +140 -0
  57. package/dist/js/form/form.js +85 -0
  58. package/dist/js/form/formlabel.js +167 -0
  59. package/dist/js/getcalendar/getcalendar.js +48 -0
  60. package/dist/js/image/image.js +259 -0
  61. package/dist/js/index/index.js +801 -0
  62. package/dist/js/input/input.js +91 -0
  63. package/dist/js/menu/menu.js +58 -0
  64. package/dist/js/numberInput/numberinput.js +145 -0
  65. package/dist/js/pagination/pagination.js +259 -0
  66. package/dist/js/popover/popover.js +193 -0
  67. package/dist/js/radio/radiobox.js +16 -0
  68. package/dist/js/radio/radiogroup.js +99 -0
  69. package/dist/js/scrollBar/scrollBar.js +208 -0
  70. package/dist/js/select/select.js +133 -0
  71. package/dist/js/select/selectoption.js +16 -0
  72. package/dist/js/switch/switch.js +49 -0
  73. package/dist/js/table/table.js +203 -0
  74. package/dist/js/table/tableItem.js +25 -0
  75. package/dist/js/tabs/tabs.js +164 -0
  76. package/dist/js/tabs/tabsPane.js +17 -0
  77. package/dist/js/tree/tree.js +72 -0
  78. package/dist/js/tree/treeleaf.js +118 -0
  79. package/dist/js/upload/upload.js +108 -0
  80. package/dist/radiogroup.css +44 -0
  81. package/dist/scrollBar.css +37 -0
  82. package/dist/select.css +20 -0
  83. package/dist/tabs.css +77 -0
  84. package/package.json +37 -0
@@ -0,0 +1,108 @@
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, renderList, toDisplayString, createCommentVNode } from "vue";
2
+ const _hoisted_1 = ["accept", "multiple"];
3
+ const _hoisted_2 = {
4
+ key: 0,
5
+ class: "tdd-mt-1 tdd-list-none tdd-space-y-1"
6
+ };
7
+ const _hoisted_3 = ["onClick"];
8
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("svg", {
9
+ class: "h-5 w-5 fill-gray-600",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ width: "24",
12
+ height: "24",
13
+ viewBox: "0 0 24 24",
14
+ fill: "none"
15
+ }, [
16
+ /* @__PURE__ */ createElementVNode("g", null, [
17
+ /* @__PURE__ */ createElementVNode("path", {
18
+ "fill-rule": "evenodd",
19
+ "clip-rule": "evenodd",
20
+ d: "M16.7782 7.22943C16.4824 6.93364 16.0046 6.93364 15.7088 7.22943L12 10.9306L8.29124 7.22184C7.99545 6.92605 7.51763 6.92605 7.22184 7.22184C6.92605 7.51763 6.92605 7.99545 7.22184 8.29124L10.9306 12L7.22184 15.7088C6.92605 16.0046 6.92605 16.4824 7.22184 16.7782C7.51763 17.0739 7.99545 17.0739 8.29124 16.7782L12 13.0694L15.7088 16.7782C16.0046 17.0739 16.4824 17.0739 16.7782 16.7782C17.0739 16.4824 17.0739 16.0046 16.7782 15.7088L13.0694 12L16.7782 8.29124C17.0664 8.00303 17.0664 7.51763 16.7782 7.22943Z",
21
+ fill: "inherit"
22
+ })
23
+ ])
24
+ ], -1);
25
+ const _hoisted_5 = [
26
+ _hoisted_4
27
+ ];
28
+ const _sfc_main = /* @__PURE__ */ defineComponent({
29
+ __name: "upload",
30
+ props: {
31
+ type: { default: "picture" },
32
+ limit: {},
33
+ accept: { default: "" },
34
+ fileList: {},
35
+ showFileList: { type: Boolean, default: true },
36
+ multiple: { type: Boolean, default: false }
37
+ },
38
+ emits: ["getNewFile", "delOldFile"],
39
+ setup(__props, { expose: __expose, emit }) {
40
+ const props = __props;
41
+ const FILEINPUT = ref();
42
+ const fileList = ref(props.fileList || []);
43
+ const fileGet = () => {
44
+ FILEINPUT.value.click();
45
+ };
46
+ const FileHandle = () => {
47
+ var _a, _b, _c;
48
+ if ((_a = FILEINPUT.value) == null ? void 0 : _a.files) {
49
+ for (const i of (_b = FILEINPUT.value) == null ? void 0 : _b.files) {
50
+ fileList.value.push(i);
51
+ }
52
+ }
53
+ emit("getNewFile", (_c = FILEINPUT.value) == null ? void 0 : _c.files, fileList.value);
54
+ };
55
+ const DeleteFileHandle = (i) => {
56
+ let aim = fileList.value[i];
57
+ fileList.value.splice(i, 1);
58
+ emit("delOldFile", aim, fileList.value);
59
+ };
60
+ const clearFiles = () => {
61
+ fileList.value.map((_img, i) => {
62
+ DeleteFileHandle(i);
63
+ });
64
+ };
65
+ __expose({
66
+ clearFiles
67
+ });
68
+ return (_ctx, _cache) => {
69
+ return openBlock(), createElementBlock(Fragment, null, [
70
+ createElementVNode("span", null, [
71
+ createElementVNode("input", {
72
+ ref_key: "FILEINPUT",
73
+ ref: FILEINPUT,
74
+ onChange: _cache[0] || (_cache[0] = ($event) => FileHandle()),
75
+ accept: _ctx.accept,
76
+ multiple: _ctx.multiple,
77
+ type: "file",
78
+ class: "hidden"
79
+ }, null, 40, _hoisted_1),
80
+ createElementVNode("button", {
81
+ onClick: fileGet,
82
+ type: "button",
83
+ class: "tdd-appearance-none"
84
+ }, [
85
+ renderSlot(_ctx.$slots, "default")
86
+ ])
87
+ ]),
88
+ _ctx.showFileList ? (openBlock(), createElementBlock("ul", _hoisted_2, [
89
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (i, d) => {
90
+ return openBlock(), createElementBlock("li", {
91
+ key: d,
92
+ class: "tdd-flex tdd-w-full tdd-justify-between tdd-p-1 hover:tdd-bg-gray-100"
93
+ }, [
94
+ createElementVNode("span", null, toDisplayString(i.name), 1),
95
+ createElementVNode("button", {
96
+ type: "button",
97
+ onClick: ($event) => DeleteFileHandle(d)
98
+ }, _hoisted_5, 8, _hoisted_3)
99
+ ]);
100
+ }), 128))
101
+ ])) : createCommentVNode("", true)
102
+ ], 64);
103
+ };
104
+ }
105
+ });
106
+ export {
107
+ _sfc_main as default
108
+ };
@@ -0,0 +1,44 @@
1
+
2
+ .radioGroup {
3
+ display: inline-flex;
4
+ cursor: pointer;
5
+ align-items: center;
6
+ border-top-width: 1px;
7
+ border-bottom-width: 1px;
8
+ border-right-width: 1px;
9
+ padding-left: 0.5rem;
10
+ padding-right: 0.5rem;
11
+ padding-top: 0.25rem;
12
+ padding-bottom: 0.25rem
13
+ }
14
+ .radioGroup:first-child {
15
+ border-top-left-radius: 0.25rem;
16
+ border-bottom-left-radius: 0.25rem;
17
+ border-left-width: 1px
18
+ }
19
+ .radioGroup:last-child {
20
+ border-top-right-radius: 0.25rem;
21
+ border-bottom-right-radius: 0.25rem
22
+ }
23
+ .radioGroup .hiddeninput {
24
+ height: 1rem;
25
+ width: 1rem;
26
+ -webkit-appearance: none;
27
+ -moz-appearance: none;
28
+ appearance: none;
29
+ border-radius: 9999px;
30
+ border-width: 1px;
31
+ --tw-border-opacity: 1;
32
+ border-color: rgb(209 213 219 / var(--tw-border-opacity));
33
+ --tw-text-opacity: 1;
34
+ color: rgb(220 38 38 / var(--tw-text-opacity))
35
+ }
36
+ .radioGroup .hiddeninput:checked {
37
+ border-color: transparent;
38
+ --tw-bg-opacity: 1;
39
+ background-color: rgb(37 99 235 / var(--tw-bg-opacity))
40
+ }
41
+ .radioGroup .hiddeninput:focus {
42
+ outline: 2px solid transparent;
43
+ outline-offset: 2px
44
+ }
@@ -0,0 +1,37 @@
1
+
2
+ .pageScroll .tddScroll {
3
+ overflow-x: clip;
4
+ }
5
+ .pageScroll .thumb {
6
+ height: 0;
7
+ width: 0;
8
+ }
9
+ .pageScroll .ishor {
10
+ height: 6px;
11
+ left: 2px;
12
+ }
13
+ .pageScroll .ishor .thumb {
14
+ border-radius: inherit;
15
+ height: 100%;
16
+ background-color: rgba(144, 146, 152, 0.3);
17
+ cursor: pointer;
18
+ }
19
+ .pageScroll .isver {
20
+ width: 6px;
21
+ top: 2px;
22
+ }
23
+ .pageScroll .isver .thumb {
24
+ border-radius: inherit;
25
+ width: 100%;
26
+ background-color: rgba(144, 146, 152, 0.3);
27
+ cursor: pointer;
28
+ }
29
+ @media screen and (max-width: 767px) {
30
+ .pageScroll .tddScroll {
31
+ overflow-x: auto;
32
+ }
33
+ .pageScroll .thumb {
34
+ height: 0;
35
+ width: 0;
36
+ }
37
+ }
@@ -0,0 +1,20 @@
1
+
2
+ .selectOption {
3
+ height: 100%;
4
+ padding-top: 0.5rem;
5
+ padding-bottom: 1.5rem
6
+ }
7
+ .selectOption .label {
8
+ cursor: pointer;
9
+ padding: 0.25rem
10
+ }
11
+ .selectOption .label:hover {
12
+ --tw-bg-opacity: 1;
13
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity))
14
+ }
15
+ .selectOption .labelselect {
16
+ --tw-bg-opacity: 1;
17
+ background-color: rgb(219 234 254 / var(--tw-bg-opacity));
18
+ --tw-text-opacity: 1;
19
+ color: rgb(22 119 255 / var(--tw-text-opacity))
20
+ }
package/dist/tabs.css ADDED
@@ -0,0 +1,77 @@
1
+
2
+ .ETab {
3
+ display: flex;
4
+ width: 100%;
5
+ flex-wrap: wrap;
6
+ --tw-text-opacity: 1;
7
+ color: rgb(102 102 102 / var(--tw-text-opacity))
8
+ }
9
+ .ETab .ETab_Line_Btn {
10
+ -webkit-appearance: none;
11
+ -moz-appearance: none;
12
+ appearance: none;
13
+ outline: 2px solid transparent;
14
+ outline-offset: 2px
15
+ }
16
+ .ETab .ETab_Line_Btn .ETabline {
17
+ padding-left: 0.5rem;
18
+ padding-right: 0.5rem;
19
+ font-size: 0.875rem;
20
+ line-height: 1.25rem;
21
+ --tw-text-opacity: 1;
22
+ color: rgb(1 64 153 / var(--tw-text-opacity))
23
+ }
24
+ .ETab .ETab_Line_Btn .ETab_Line_Act {
25
+ --tw-text-opacity: 1;
26
+ color: rgb(1 64 153 / var(--tw-text-opacity))
27
+ }
28
+ .ETab_Card {
29
+ --tw-bg-opacity: 1;
30
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity))
31
+ }
32
+ .ETab_Card .ETab_Card_Btn {
33
+ height: 2.75rem;
34
+ border-top-left-radius: 0.5rem;
35
+ border-top-right-radius: 0.5rem;
36
+ font-size: 0.875rem;
37
+ line-height: 1.25rem;
38
+ font-weight: 500;
39
+ --tw-text-opacity: 1;
40
+ color: rgb(1 64 153 / var(--tw-text-opacity));
41
+ outline: 2px solid transparent;
42
+ outline-offset: 2px
43
+ }
44
+ .ETab_Card .ETab_Card_Btn:focus {
45
+ --tw-text-opacity: 1;
46
+ color: rgb(1 64 153 / var(--tw-text-opacity))
47
+ }
48
+ .ETab_Card .ETab_Card_Btn .ETabline {
49
+ white-space: nowrap;
50
+ padding-left: 1rem;
51
+ padding-right: 1rem
52
+ }
53
+ .ETab_Card .ETab_Card_Btn .ETablineActBtw {
54
+ display: flex;
55
+ height: 100%;
56
+ width: 100%;
57
+ align-items: center;
58
+ justify-content: center;
59
+ --tw-bg-opacity: 1;
60
+ background-color: rgb(245 245 245 / var(--tw-bg-opacity))
61
+ }
62
+ .ETab_Card .ETab_Card_Btn .ETablineActPr {
63
+ border-bottom-right-radius: 0.5rem
64
+ }
65
+ .ETab_Card .ETab_Card_Btn .ETablineActNe {
66
+ border-bottom-left-radius: 0.5rem
67
+ }
68
+ .ETab_Card .ETab_Card_Btn_Act {
69
+ --tw-bg-opacity: 1;
70
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
71
+ --tw-text-opacity: 1;
72
+ color: rgb(1 64 153 / var(--tw-text-opacity))
73
+ }
74
+ .ETab_Card .ETab_Line_Btn_Btw {
75
+ --tw-bg-opacity: 1;
76
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity))
77
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "ninemoon-ui",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "author": "zhuboy",
6
+ "keywords": [
7
+ "vue3",
8
+ "UI"
9
+ ],
10
+ "scripts": {
11
+ "dev": "vite --host",
12
+ "build": "vite build",
13
+ "preview": "vite preview"
14
+ },
15
+ "dependencies": {
16
+ "vue": "^3.3.4"
17
+ },
18
+ "main": "dist/index.es.js",
19
+ "module": "dist/index.umd.js",
20
+ "devDependencies": {
21
+ "@vitejs/plugin-vue": "^4.2.3",
22
+ "autoprefixer": "^10.4.14",
23
+ "postcss": "^8.4.27",
24
+ "sass": "^1.64.1",
25
+ "tailwindcss": "^3.3.3",
26
+ "typescript": "^5.0.2",
27
+ "unplugin-vue-define-options": "^1.3.12",
28
+ "vite": "^4.4.5",
29
+ "vite-plugin-dts": "^3.3.1",
30
+ "vue-tsc": "^1.8.5"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "type": "module",
36
+ "types": "dist/index.d.ts"
37
+ }