@seresweb/website-component 2.2.2 → 2.3.0

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 (101) hide show
  1. package/README.md +5 -4
  2. package/dist/_icons-DtBTpiO2.cjs +11 -0
  3. package/dist/_icons-FW35XHO0.js +14 -0
  4. package/dist/_utils-B7LThWoT.js +26 -0
  5. package/dist/_utils-CtkVBTg-.cjs +1 -0
  6. package/dist/cjs/checkbox.cjs +1 -0
  7. package/dist/cjs/col.cjs +1 -0
  8. package/dist/cjs/config-provider.cjs +1 -0
  9. package/dist/cjs/date-picker.cjs +1 -0
  10. package/dist/cjs/date-select.cjs +1 -0
  11. package/dist/cjs/horizontal-viewer.cjs +1 -1
  12. package/dist/cjs/image-indicator.cjs +1 -1
  13. package/dist/cjs/index.cjs +1 -1
  14. package/dist/cjs/input.cjs +1 -1
  15. package/dist/cjs/layz-image.cjs +1 -1
  16. package/dist/cjs/locales.cjs +1 -0
  17. package/dist/cjs/parameter-box.cjs +1 -1
  18. package/dist/cjs/radio.cjs +1 -1
  19. package/dist/cjs/row.cjs +1 -0
  20. package/dist/cjs/select.cjs +1 -0
  21. package/dist/cjs/swiper-normal.cjs +1 -1
  22. package/dist/cjs/swiper-showcase.cjs +1 -1
  23. package/dist/cjs/tab-indicator.cjs +1 -1
  24. package/dist/css/checkbox.css +1 -0
  25. package/dist/css/col.css +1 -0
  26. package/dist/css/date-picker.css +1 -0
  27. package/dist/css/date-select.css +1 -0
  28. package/dist/css/input.css +1 -1
  29. package/dist/css/radio.css +1 -1
  30. package/dist/css/row.css +1 -0
  31. package/dist/css/select.css +1 -0
  32. package/dist/en-US-BBTWftdk.js +35 -0
  33. package/dist/en-US-UkqgG0fb.cjs +1 -0
  34. package/dist/es/checkbox.mjs +82 -0
  35. package/dist/es/col.mjs +48 -0
  36. package/dist/es/config-provider.mjs +17 -0
  37. package/dist/es/date-picker.mjs +6 -0
  38. package/dist/es/date-select.mjs +113 -0
  39. package/dist/es/horizontal-viewer.mjs +1 -1
  40. package/dist/es/image-indicator.mjs +1 -1
  41. package/dist/es/index.mjs +61 -41
  42. package/dist/es/input.mjs +17 -16
  43. package/dist/es/layz-image.mjs +18 -17
  44. package/dist/es/locales.mjs +41 -0
  45. package/dist/es/parameter-box.mjs +123 -85
  46. package/dist/es/radio.mjs +27 -23
  47. package/dist/es/row.mjs +63 -0
  48. package/dist/es/select.mjs +210 -0
  49. package/dist/es/swiper-normal.mjs +1 -1
  50. package/dist/es/swiper-showcase.mjs +37 -37
  51. package/dist/es/tab-indicator.mjs +65 -79
  52. package/dist/global.d.ts +8 -0
  53. package/dist/index-B-sVxtkA.cjs +1 -0
  54. package/dist/{index-tkvNmWjy.js → index-BPX4w5Vn.js} +113 -106
  55. package/dist/index-Bc4wAl0z.js +644 -0
  56. package/dist/index-CEjz1ubF.cjs +1 -0
  57. package/dist/index.css +1 -1
  58. package/dist/scss/checkbox.scss +155 -0
  59. package/dist/scss/col.scss +16 -0
  60. package/dist/scss/date-picker.scss +226 -0
  61. package/dist/scss/date-select.scss +41 -0
  62. package/dist/scss/index.scss +6 -0
  63. package/dist/scss/input.scss +44 -4
  64. package/dist/scss/radio.scss +6 -6
  65. package/dist/scss/row.scss +10 -0
  66. package/dist/scss/select.scss +210 -0
  67. package/dist/types/components/_icons.d.ts +4 -0
  68. package/dist/types/components/_utils.d.ts +4 -0
  69. package/dist/types/components/checkbox/checkbox.vue.d.ts +24 -0
  70. package/dist/types/components/checkbox/index.d.ts +6 -0
  71. package/dist/types/components/checkbox/type.d.ts +30 -0
  72. package/dist/types/components/col/col.vue.d.ts +21 -0
  73. package/dist/types/components/col/index.d.ts +6 -0
  74. package/dist/types/components/col/type.d.ts +24 -0
  75. package/dist/types/components/config-provider/config-provider.vue.d.ts +20 -0
  76. package/dist/types/components/config-provider/index.d.ts +27 -0
  77. package/dist/types/components/config-provider/type.d.ts +4 -0
  78. package/dist/types/components/date-picker/date-picker.vue.d.ts +16 -0
  79. package/dist/types/components/date-picker/index.d.ts +53 -0
  80. package/dist/types/components/date-picker/type.d.ts +12 -0
  81. package/dist/types/components/date-select/date-select.vue.d.ts +16 -0
  82. package/dist/types/components/date-select/index.d.ts +7 -0
  83. package/dist/types/components/date-select/type.d.ts +16 -0
  84. package/dist/types/components/index.d.ts +8 -0
  85. package/dist/types/components/input/input.vue.d.ts +1 -0
  86. package/dist/types/components/input/type.d.ts +1 -0
  87. package/dist/types/components/locales/ar-SA.d.ts +20 -0
  88. package/dist/types/components/locales/en-US.d.ts +20 -0
  89. package/dist/types/components/locales/index.d.ts +44 -0
  90. package/dist/types/components/radio/radio.vue.d.ts +2 -2
  91. package/dist/types/components/row/index.d.ts +6 -0
  92. package/dist/types/components/row/row.vue.d.ts +23 -0
  93. package/dist/types/components/row/type.d.ts +7 -0
  94. package/dist/types/components/select/index.d.ts +7 -0
  95. package/dist/types/components/select/select.vue.d.ts +48 -0
  96. package/dist/types/components/select/type.d.ts +20 -0
  97. package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +2 -2
  98. package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +2 -2
  99. package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +2 -2
  100. package/package.json +2 -1
  101. package/dist/index-BIPlvoY9.cjs +0 -1
@@ -1,6 +1,13 @@
1
1
  @use './_vars' as vars;
2
2
 
3
3
  .#{vars.$prefix}-input {
4
+ // 默认亮色模式变量
5
+ --#{vars.$prefix}-input-border-color: rgba(0, 0, 0, 0.1);
6
+ --#{vars.$prefix}-input-border-hover-color: #000;
7
+ --#{vars.$prefix}-input-text-color: #000;
8
+ --#{vars.$prefix}-input-bg-color: transparent;
9
+ --#{vars.$prefix}-input-placeholder-color: #000;
10
+
4
11
  font-size: 16px;
5
12
  display: flex;
6
13
  align-items: center;
@@ -8,11 +15,23 @@
8
15
  margin-top: 4px;
9
16
  height: 54px;
10
17
  border-radius: 2px;
11
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
18
+ border-bottom: 1px solid var(--#{vars.$prefix}-input-border-color);
19
+ background-color: var(--#{vars.$prefix}-input-bg-color);
12
20
  transition: border-color 0.3s ease-in-out;
13
21
 
14
- &:hover {
15
- border-color: #000;
22
+ &::after {
23
+ content: '';
24
+ position: absolute;
25
+ bottom: -1px;
26
+ left: 0;
27
+ width: 0;
28
+ height: 1px;
29
+ background-color: var(--#{vars.$prefix}-input-border-hover-color);
30
+ transition: width 0.3s ease-in-out;
31
+ }
32
+
33
+ &:hover::after {
34
+ width: 100%;
16
35
  }
17
36
 
18
37
  input {
@@ -20,12 +39,14 @@
20
39
  outline: none;
21
40
  flex: 1; // 自动占满剩余空间
22
41
  height: 54px;
42
+ background-color: inherit;
43
+ color: var(--#{vars.$prefix}-input-text-color);
23
44
  }
24
45
 
25
46
  input::placeholder {
26
47
  height: 25px;
27
48
  font-weight: 500;
28
- color: #000;
49
+ color: var(--#{vars.$prefix}-input-placeholder-color);
29
50
  line-height: 21px;
30
51
  opacity: 0.3;
31
52
  }
@@ -38,6 +59,25 @@
38
59
  padding: 0 8px;
39
60
  position: relative;
40
61
  z-index: 1;
62
+ color: var(--#{vars.$prefix}-input-text-color);
63
+ }
64
+
65
+ // 支持全局暗夜模式:html.dark .sc-input
66
+ html.dark & {
67
+ --#{vars.$prefix}-input-border-color: rgba(255, 255, 255, 0.2);
68
+ --#{vars.$prefix}-input-border-hover-color: #fff;
69
+ --#{vars.$prefix}-input-text-color: #fff;
70
+ --#{vars.$prefix}-input-bg-color: #1d1d1d;
71
+ --#{vars.$prefix}-input-placeholder-color: #fff;
72
+ }
73
+
74
+ // 支持组件级别暗夜模式:.sc-input--dark
75
+ &--dark {
76
+ --#{vars.$prefix}-input-border-color: rgba(255, 255, 255, 0.2);
77
+ --#{vars.$prefix}-input-border-hover-color: #fff;
78
+ --#{vars.$prefix}-input-text-color: #fff;
79
+ --#{vars.$prefix}-input-bg-color: #1d1d1d;
80
+ --#{vars.$prefix}-input-placeholder-color: #fff;
41
81
  }
42
82
 
43
83
  @media (max-width: 768px) {
@@ -7,19 +7,19 @@
7
7
  color: #000;
8
8
  cursor: pointer;
9
9
 
10
- &.disabled {
10
+ &-disabled {
11
11
  opacity: 0.5;
12
12
  pointer-events: none;
13
13
  }
14
14
 
15
- .radio-input {
15
+ &-input {
16
16
  position: absolute;
17
17
  opacity: 0;
18
18
  width: 0;
19
19
  height: 0;
20
20
  }
21
21
 
22
- .radio-box {
22
+ &-box {
23
23
  display: inline-block;
24
24
  width: 18px;
25
25
  height: 18px;
@@ -45,7 +45,7 @@
45
45
  }
46
46
  }
47
47
 
48
- .radio-label {
48
+ &-label {
49
49
  margin-left: 8px;
50
50
  font-family: HarmonyOS_Sans_Regular;
51
51
  font-weight: 400;
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  /* 当 radio 被选中时显示勾 */
57
- .radio-input:checked ~ .radio-box {
57
+ &-input:checked ~ &-box {
58
58
  background-color: #000;
59
59
  // border-color: #2563eb;
60
60
 
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  /* 鼠标悬停效果 */
67
- &:not(.disabled):hover .radio-box {
67
+ &:not(&-disabled):hover &-box {
68
68
  border-color: #000;
69
69
  }
70
70
  }
@@ -0,0 +1,10 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-row {
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+
7
+ &--wrap {
8
+ flex-wrap: wrap;
9
+ }
10
+ }
@@ -0,0 +1,210 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-select {
4
+ // 默认亮色模式变量
5
+ --#{vars.$prefix}-select-border-color: rgba(0, 0, 0, 0.1);
6
+ --#{vars.$prefix}-select-border-hover-color: #000;
7
+ --#{vars.$prefix}-select-text-color: #000;
8
+ --#{vars.$prefix}-select-bg-color: transparent;
9
+ --#{vars.$prefix}-select-placeholder-color: #000;
10
+ --#{vars.$prefix}-select-option-hover-bg: #f5f5f5;
11
+ --#{vars.$prefix}-select-option-selected-bg: #e6f2ff;
12
+ --#{vars.$prefix}-select-option-selected-text-color: #1054f2;
13
+ --#{vars.$prefix}-select-dropdown-bg: #fff;
14
+
15
+ position: relative;
16
+ display: inline-block;
17
+ width: 100%;
18
+ // max-width: 300px;
19
+ font-size: 16px;
20
+ margin-top: 4px;
21
+
22
+ &__trigger {
23
+ display: flex;
24
+ align-items: center;
25
+ height: 54px;
26
+ border-radius: 2px;
27
+ border-bottom: 1px solid var(--#{vars.$prefix}-select-border-color);
28
+ background-color: var(--#{vars.$prefix}-select-bg-color);
29
+ // padding: 0 8px;
30
+ cursor: pointer;
31
+ transition: border-color 0.3s ease-in-out;
32
+ position: relative;
33
+
34
+ &::after {
35
+ content: '';
36
+ position: absolute;
37
+ bottom: -1px;
38
+ left: 0;
39
+ width: 0;
40
+ height: 1px;
41
+ background-color: var(--#{vars.$prefix}-select-border-hover-color);
42
+ transition: width 0.3s ease-in-out;
43
+ }
44
+
45
+ &:hover::after {
46
+ width: 100%;
47
+ }
48
+ }
49
+
50
+ &__value {
51
+ flex: 1;
52
+ color: var(--#{vars.$prefix}-select-text-color);
53
+ overflow: hidden;
54
+ text-overflow: ellipsis;
55
+ white-space: nowrap;
56
+ }
57
+
58
+ &__placeholder {
59
+ flex: 1;
60
+ color: var(--#{vars.$prefix}-select-placeholder-color);
61
+ opacity: 0.3;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ &__clear {
68
+ width: 20px;
69
+ height: 20px;
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ margin-right: 4px;
74
+ cursor: pointer;
75
+ color: var(--#{vars.$prefix}-select-text-color);
76
+ font-size: 20px;
77
+ font-weight: 300;
78
+ opacity: 0.6;
79
+ transition: opacity 0.2s;
80
+
81
+ &:hover {
82
+ opacity: 1;
83
+ }
84
+ }
85
+
86
+ &__icon {
87
+ width: 20px;
88
+ height: 20px;
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ color: var(--#{vars.$prefix}-select-text-color);
93
+ transition: transform 0.3s ease-in-out;
94
+ flex-shrink: 0;
95
+
96
+ svg {
97
+ width: 100%;
98
+ height: 100%;
99
+ fill: currentColor;
100
+ }
101
+
102
+ &--open {
103
+ transform: rotate(-180deg);
104
+ }
105
+ }
106
+
107
+ &__dropdown {
108
+ position: absolute;
109
+ top: 100%;
110
+ left: 0;
111
+ right: 0;
112
+ margin-top: 4px;
113
+ background-color: var(--#{vars.$prefix}-select-dropdown-bg);
114
+ border: 1px solid var(--#{vars.$prefix}-select-border-color);
115
+ border-radius: 4px;
116
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
117
+ z-index: 1000;
118
+ max-height: 300px;
119
+ overflow-y: auto;
120
+ }
121
+
122
+ &__options {
123
+ padding: 8px 0;
124
+ }
125
+
126
+ &__option {
127
+ padding: 10px 12px;
128
+ cursor: pointer;
129
+ color: var(--#{vars.$prefix}-select-text-color);
130
+ transition: background-color 0.2s;
131
+
132
+ &:hover:not(&--disabled) {
133
+ background-color: var(--#{vars.$prefix}-select-option-hover-bg);
134
+ }
135
+
136
+ &--selected {
137
+ background-color: var(--#{vars.$prefix}-select-option-selected-bg);
138
+ font-weight: 600;
139
+ color: var(--#{vars.$prefix}-select-option-selected-text-color);
140
+ }
141
+
142
+ &--disabled {
143
+ opacity: 0.5;
144
+ cursor: not-allowed;
145
+ }
146
+ }
147
+
148
+ &__custom-content {
149
+ padding: 12px;
150
+ }
151
+
152
+ // 禁用状态
153
+ &--disabled {
154
+ opacity: 0.6;
155
+
156
+ .sc-select__trigger {
157
+ cursor: not-allowed;
158
+ }
159
+ }
160
+
161
+ // 全局暗夜模式:html.dark .sc-select
162
+ html.dark & {
163
+ --#{vars.$prefix}-select-border-color: rgba(255, 255, 255, 0.2);
164
+ --#{vars.$prefix}-select-border-hover-color: #fff;
165
+ --#{vars.$prefix}-select-text-color: #fff;
166
+ --#{vars.$prefix}-select-bg-color: #1d1d1d;
167
+ --#{vars.$prefix}-select-placeholder-color: #fff;
168
+ --#{vars.$prefix}-select-option-hover-bg: #333;
169
+ --#{vars.$prefix}-select-option-selected-bg: #1054f2;
170
+ --#{vars.$prefix}-select-option-selected-text-color: #fff;
171
+ --#{vars.$prefix}-select-dropdown-bg: #262626;
172
+ }
173
+
174
+ // 组件级别暗夜模式:.sc-select--dark
175
+ &--dark {
176
+ --#{vars.$prefix}-select-border-color: rgba(255, 255, 255, 0.2);
177
+ --#{vars.$prefix}-select-border-hover-color: #fff;
178
+ --#{vars.$prefix}-select-text-color: #fff;
179
+ --#{vars.$prefix}-select-bg-color: #1d1d1d;
180
+ --#{vars.$prefix}-select-placeholder-color: #fff;
181
+ --#{vars.$prefix}-select-option-hover-bg: #333;
182
+ --#{vars.$prefix}-select-option-selected-bg: #1054f2;
183
+ --#{vars.$prefix}-select-option-selected-text-color: #fff;
184
+ --#{vars.$prefix}-select-dropdown-bg: #262626;
185
+ }
186
+
187
+ @media (max-width: 768px) {
188
+ font-size: 14px;
189
+
190
+ &__trigger {
191
+ height: 48px;
192
+ }
193
+
194
+ &__dropdown {
195
+ max-height: 250px;
196
+ }
197
+ }
198
+ }
199
+
200
+ // 下拉框动画
201
+ .sc-select-slide-enter-active,
202
+ .sc-select-slide-leave-active {
203
+ transition: all 0.3s ease-in-out;
204
+ }
205
+
206
+ .sc-select-slide-enter-from,
207
+ .sc-select-slide-leave-to {
208
+ opacity: 0;
209
+ transform: translateY(-2px);
210
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 公共图标组件
3
+ */
4
+ export declare const ChevronDownIcon = "<svg\n viewBox=\"0 0 1024 1024\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"200\"\n height=\"200\"\n>\n <path\n d=\"M512 622.336L200.874667 311.125333l-60.416 60.416L512 742.997333l371.541333-371.456-60.416-60.416L512 622.336z\"\n ></path>\n</svg>";
@@ -1 +1,5 @@
1
+ import { App, Component } from 'vue';
1
2
  export declare const smoothScrollLeftTo: (element: HTMLElement, targetX: number, duration?: number) => void;
3
+ export declare const withInstall: <T extends Component>(component: T) => T & {
4
+ install(app: App): void;
5
+ };
@@ -0,0 +1,24 @@
1
+ import { CheckboxProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLLabelElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ change: (...args: any[]) => void;
13
+ "update:modelValue": (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
15
+ onChange?: ((...args: any[]) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './checkbox.vue';
3
+ export * from './type';
4
+ export declare const ScCheckbox: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,30 @@
1
+ export interface CheckboxProps {
2
+ /**
3
+ * 唯一标识符
4
+ */
5
+ id?: string;
6
+ /**
7
+ * 表单名称
8
+ */
9
+ name?: string;
10
+ /**
11
+ * checkbox 的值
12
+ */
13
+ value?: any;
14
+ /**
15
+ * 绑定值(支持布尔值或数组)
16
+ */
17
+ modelValue?: boolean | any[];
18
+ /**
19
+ * label 文本(当不使用插槽时显示)
20
+ */
21
+ label?: string;
22
+ /**
23
+ * 是否禁用
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * 是否深色模式
28
+ */
29
+ dark?: boolean;
30
+ }
@@ -0,0 +1,21 @@
1
+ import { ColProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ColProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColProps> & Readonly<{}>, {
12
+ span: number;
13
+ offset: number;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './col.vue';
3
+ export * from './type';
4
+ export declare const ScCol: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
@@ -0,0 +1,24 @@
1
+ export interface ColProps {
2
+ span?: number;
3
+ offset?: number;
4
+ xs?: number | {
5
+ span?: number;
6
+ offset?: number;
7
+ };
8
+ sm?: number | {
9
+ span?: number;
10
+ offset?: number;
11
+ };
12
+ md?: number | {
13
+ span?: number;
14
+ offset?: number;
15
+ };
16
+ lg?: number | {
17
+ span?: number;
18
+ offset?: number;
19
+ };
20
+ xl?: number | {
21
+ span?: number;
22
+ offset?: number;
23
+ };
24
+ }
@@ -0,0 +1,20 @@
1
+ import { ConfigProviderProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
12
+ locale: import('..').Locale;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,27 @@
1
+ export declare const ScConfigProvider: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ locale: import('..').Locale;
4
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
12
+ locale: import('..').Locale;
13
+ }>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
18
+ locale: import('..').Locale;
19
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
+ $slots: {
21
+ default?(_: {}): any;
22
+ };
23
+ }) & {
24
+ install(app: import('vue').App): void;
25
+ };
26
+ export default ScConfigProvider;
27
+ export * from './type';
@@ -0,0 +1,4 @@
1
+ import { Locale } from '../locales';
2
+ export interface ConfigProviderProps {
3
+ locale?: Locale;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { DatePickerProps } from './type';
2
+ declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ change: (value: string | Date | null) => any;
4
+ "update:modelValue": (value: string | Date | null) => any;
5
+ }, string, import('vue').PublicProps, Readonly<DatePickerProps> & Readonly<{
6
+ onChange?: ((value: string | Date | null) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
8
+ }>, {
9
+ format: string;
10
+ modelValue: Date | string | null;
11
+ disabled: boolean;
12
+ dark: boolean;
13
+ minDate: Date | string;
14
+ maxDate: Date | string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,53 @@
1
+ export declare const ScDatePicker: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DatePickerProps> & Readonly<{
3
+ onChange?: ((value: string | Date | null) => any) | undefined;
4
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ change: (value: string | Date | null) => any;
7
+ "update:modelValue": (value: string | Date | null) => any;
8
+ }, import('vue').PublicProps, {
9
+ format: string;
10
+ modelValue: Date | string | null;
11
+ disabled: boolean;
12
+ dark: boolean;
13
+ minDate: Date | string;
14
+ maxDate: Date | string;
15
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<import('./type').DatePickerProps> & Readonly<{
23
+ onChange?: ((value: string | Date | null) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
25
+ }>, {}, {}, {}, {}, {
26
+ format: string;
27
+ modelValue: Date | string | null;
28
+ disabled: boolean;
29
+ dark: boolean;
30
+ minDate: Date | string;
31
+ maxDate: Date | string;
32
+ }>;
33
+ __isFragment?: never;
34
+ __isTeleport?: never;
35
+ __isSuspense?: never;
36
+ } & import('vue').ComponentOptionsBase<Readonly<import('./type').DatePickerProps> & Readonly<{
37
+ onChange?: ((value: string | Date | null) => any) | undefined;
38
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
39
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
40
+ change: (value: string | Date | null) => any;
41
+ "update:modelValue": (value: string | Date | null) => any;
42
+ }, string, {
43
+ format: string;
44
+ modelValue: Date | string | null;
45
+ disabled: boolean;
46
+ dark: boolean;
47
+ minDate: Date | string;
48
+ maxDate: Date | string;
49
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
50
+ install(app: import('vue').App): void;
51
+ };
52
+ export default ScDatePicker;
53
+ export * from './type';
@@ -0,0 +1,12 @@
1
+ export interface DatePickerProps {
2
+ modelValue?: Date | string | null;
3
+ format?: string;
4
+ disabled?: boolean;
5
+ dark?: boolean;
6
+ minDate?: Date | string;
7
+ maxDate?: Date | string;
8
+ }
9
+ export interface DatePickerEmits {
10
+ (e: 'update:modelValue', value: Date | string | null): void;
11
+ (e: 'change', value: Date | string | null): void;
12
+ }
@@ -0,0 +1,16 @@
1
+ import { DateSelectProps } from './type';
2
+ declare const _default: import('vue').DefineComponent<DateSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ change: (value: string | Date | null) => any;
4
+ "update:modelValue": (value: string | Date | null) => any;
5
+ }, string, import('vue').PublicProps, Readonly<DateSelectProps> & Readonly<{
6
+ onChange?: ((value: string | Date | null) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value: string | Date | null) => any) | undefined;
8
+ }>, {
9
+ placeholder: string;
10
+ format: string;
11
+ modelValue: Date | string | null;
12
+ disabled: boolean;
13
+ dark: boolean;
14
+ clearable: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ import { default as Component } from './date-select.vue';
3
+ import { DateSelectProps, DateSelectEmits } from './type';
4
+ export declare const ScDateSelect: typeof Component & {
5
+ install: (app: App) => App;
6
+ };
7
+ export type { DateSelectProps, DateSelectEmits };
@@ -0,0 +1,16 @@
1
+ import { DatePickerProps } from '../date-picker/type';
2
+ export interface DateSelectProps {
3
+ modelValue?: Date | string | null;
4
+ format?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ dark?: boolean;
8
+ clearable?: boolean;
9
+ minDate?: Date | string;
10
+ maxDate?: Date | string;
11
+ }
12
+ export interface DateSelectEmits {
13
+ (e: 'update:modelValue', value: Date | string | null): void;
14
+ (e: 'change', value: Date | string | null): void;
15
+ }
16
+ export type DateSelectPickerProps = Pick<DatePickerProps, 'minDate' | 'maxDate' | 'format' | 'disabled'>;