@sellmate/design-system-vue 1.0.21 → 1.0.23
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/README.md +5 -4
- package/dist/components.d.ts +2 -0
- package/dist/components.js +22 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/lib/components.ts +26 -0
- package/lib/css.d.ts +1 -0
- package/lib/index.ts +7 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,18 +19,19 @@ yarn add @sellmate/design-system-vue
|
|
|
19
19
|
### Vue 3
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
+
import '@sellmate/design-system/styles.css';
|
|
22
23
|
import { createApp } from 'vue';
|
|
23
|
-
import {
|
|
24
|
+
import { StencilVuePlugin } from '@sellmate/design-system-vue';
|
|
24
25
|
import App from './App.vue';
|
|
25
26
|
|
|
26
27
|
const app = createApp(App);
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
defineCustomElementsDesignSystem();
|
|
30
|
-
|
|
29
|
+
app.use(StencilVuePlugin);
|
|
31
30
|
app.mount('#app');
|
|
32
31
|
```
|
|
33
32
|
|
|
33
|
+
Import `@sellmate/design-system/styles.css` once at app entry so global token CSS variables are available for components like `sd-button`.
|
|
34
|
+
|
|
34
35
|
### Vite Configuration
|
|
35
36
|
|
|
36
37
|
If you are using Vite, you need to configure `vite-plugin-static-copy` to serve the design system assets (icons, lazy-loaded components) correctly.
|
package/dist/components.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { type StencilVueComponent } from '@stencil/vue-output-target/runtime';
|
|
|
2
2
|
import type { JSX } from '@sellmate/design-system';
|
|
3
3
|
export declare const SdBadge: StencilVueComponent<JSX.SdBadge>;
|
|
4
4
|
export declare const SdButton: StencilVueComponent<JSX.SdButton>;
|
|
5
|
+
export declare const SdButtonV2: StencilVueComponent<JSX.SdButtonV2>;
|
|
5
6
|
export declare const SdCard: StencilVueComponent<JSX.SdCard>;
|
|
6
7
|
export declare const SdCheckbox: StencilVueComponent<JSX.SdCheckbox, JSX.SdCheckbox["value"]>;
|
|
7
8
|
export declare const SdDateBox: StencilVueComponent<JSX.SdDateBox>;
|
|
8
9
|
export declare const SdDatePicker: StencilVueComponent<JSX.SdDatePicker, JSX.SdDatePicker["value"]>;
|
|
9
10
|
export declare const SdDateRangePicker: StencilVueComponent<JSX.SdDateRangePicker, JSX.SdDateRangePicker["value"]>;
|
|
11
|
+
export declare const SdDropdownButton: StencilVueComponent<JSX.SdDropdownButton>;
|
|
10
12
|
export declare const SdField: StencilVueComponent<JSX.SdField>;
|
|
11
13
|
export declare const SdFilePicker: StencilVueComponent<JSX.SdFilePicker, JSX.SdFilePicker["value"]>;
|
|
12
14
|
export declare const SdFloatingPortal: StencilVueComponent<JSX.SdFloatingPortal>;
|
package/dist/components.js
CHANGED
|
@@ -24,6 +24,17 @@ export const SdButton = /*@__PURE__*/ defineContainer('sd-button', undefined, [
|
|
|
24
24
|
], [
|
|
25
25
|
'sdClick'
|
|
26
26
|
]);
|
|
27
|
+
export const SdButtonV2 = /*@__PURE__*/ defineContainer('sd-button-v2', undefined, [
|
|
28
|
+
'name',
|
|
29
|
+
'label',
|
|
30
|
+
'icon',
|
|
31
|
+
'ariaLabel',
|
|
32
|
+
'disabled',
|
|
33
|
+
'type',
|
|
34
|
+
'sdClick'
|
|
35
|
+
], [
|
|
36
|
+
'sdClick'
|
|
37
|
+
]);
|
|
27
38
|
export const SdCard = /*@__PURE__*/ defineContainer('sd-card', undefined, [
|
|
28
39
|
'bordered',
|
|
29
40
|
'sdClass'
|
|
@@ -73,6 +84,17 @@ export const SdDateRangePicker = /*@__PURE__*/ defineContainer('sd-date-range-pi
|
|
|
73
84
|
], [
|
|
74
85
|
'sdUpdate'
|
|
75
86
|
], 'value', 'sdUpdate', undefined);
|
|
87
|
+
export const SdDropdownButton = /*@__PURE__*/ defineContainer('sd-dropdown-button', undefined, [
|
|
88
|
+
'name',
|
|
89
|
+
'label',
|
|
90
|
+
'items',
|
|
91
|
+
'disabled',
|
|
92
|
+
'sdClick',
|
|
93
|
+
'sdDropDownShow'
|
|
94
|
+
], [
|
|
95
|
+
'sdClick',
|
|
96
|
+
'sdDropDownShow'
|
|
97
|
+
]);
|
|
76
98
|
export const SdField = /*@__PURE__*/ defineContainer('sd-field', undefined, [
|
|
77
99
|
'name',
|
|
78
100
|
'rules',
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import '@sellmate/design-system/styles.css';
|
|
1
2
|
export * from './components';
|
|
2
3
|
export * from './plugin';
|
|
3
4
|
export { default as SdTable } from './SdTable';
|
|
4
|
-
export type { SdTableSortDir, SdTableColumn, Row as SdTableRow, SelectOption, SelectOptionGroup, SelectEvents, SelectMultipleEvents, SelectStyleProps, RadioValue, RadioOption, ButtonVariant, ButtonSize, Rule, ValidatableField, SdModalCardButtonProps, SdTooltipProps, TagColor, TagSize, ToastType, CheckedType, Type as DateBoxType, TabOption, } from '@sellmate/design-system';
|
|
5
|
+
export type { SdTableSortDir, SdTableColumn, Row as SdTableRow, SelectOption, SelectOptionGroup, SelectEvents, SelectMultipleEvents, SelectStyleProps, RadioValue, RadioOption, ButtonVariant, ButtonSize, ButtonV2Name, DropdownButtonItem, DropdownButtonName, DropdownButtonSize, DropdownButtonValue, Rule, ValidatableField, SdModalCardButtonProps, SdTooltipProps, TagColor, TagSize, ToastType, CheckedType, Type as DateBoxType, TabOption, } from '@sellmate/design-system';
|
package/dist/index.js
CHANGED
package/lib/components.ts
CHANGED
|
@@ -34,6 +34,19 @@ export const SdButton: StencilVueComponent<JSX.SdButton> = /*@__PURE__*/ defineC
|
|
|
34
34
|
]);
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
export const SdButtonV2: StencilVueComponent<JSX.SdButtonV2> = /*@__PURE__*/ defineContainer<JSX.SdButtonV2>('sd-button-v2', undefined, [
|
|
38
|
+
'name',
|
|
39
|
+
'label',
|
|
40
|
+
'icon',
|
|
41
|
+
'ariaLabel',
|
|
42
|
+
'disabled',
|
|
43
|
+
'type',
|
|
44
|
+
'sdClick'
|
|
45
|
+
], [
|
|
46
|
+
'sdClick'
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
|
|
37
50
|
export const SdCard: StencilVueComponent<JSX.SdCard> = /*@__PURE__*/ defineContainer<JSX.SdCard>('sd-card', undefined, [
|
|
38
51
|
'bordered',
|
|
39
52
|
'sdClass'
|
|
@@ -96,6 +109,19 @@ export const SdDateRangePicker: StencilVueComponent<JSX.SdDateRangePicker, JSX.S
|
|
|
96
109
|
'value', 'sdUpdate', undefined);
|
|
97
110
|
|
|
98
111
|
|
|
112
|
+
export const SdDropdownButton: StencilVueComponent<JSX.SdDropdownButton> = /*@__PURE__*/ defineContainer<JSX.SdDropdownButton>('sd-dropdown-button', undefined, [
|
|
113
|
+
'name',
|
|
114
|
+
'label',
|
|
115
|
+
'items',
|
|
116
|
+
'disabled',
|
|
117
|
+
'sdClick',
|
|
118
|
+
'sdDropDownShow'
|
|
119
|
+
], [
|
|
120
|
+
'sdClick',
|
|
121
|
+
'sdDropDownShow'
|
|
122
|
+
]);
|
|
123
|
+
|
|
124
|
+
|
|
99
125
|
export const SdField: StencilVueComponent<JSX.SdField> = /*@__PURE__*/ defineContainer<JSX.SdField>('sd-field', undefined, [
|
|
100
126
|
'name',
|
|
101
127
|
'rules',
|
package/lib/css.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '@sellmate/design-system/styles.css';
|
package/lib/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@sellmate/design-system/styles.css';
|
|
2
|
+
|
|
1
3
|
export * from './components';
|
|
2
4
|
export * from './plugin';
|
|
3
5
|
export { default as SdTable } from './SdTable';
|
|
@@ -20,6 +22,11 @@ export type {
|
|
|
20
22
|
// Button types
|
|
21
23
|
ButtonVariant,
|
|
22
24
|
ButtonSize,
|
|
25
|
+
ButtonV2Name,
|
|
26
|
+
DropdownButtonItem,
|
|
27
|
+
DropdownButtonName,
|
|
28
|
+
DropdownButtonSize,
|
|
29
|
+
DropdownButtonValue,
|
|
23
30
|
// Form types
|
|
24
31
|
Rule,
|
|
25
32
|
ValidatableField,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "Design System - Vue Component Wrappers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"vue": "^3.4.38"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@sellmate/design-system": "^1.0.
|
|
48
|
+
"@sellmate/design-system": "^1.0.22",
|
|
49
49
|
"@stencil/vue-output-target": "^0.11.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|