@vc-shell/framework 1.0.181 → 1.0.183
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/CHANGELOG.md +13 -0
- package/dist/framework.js +5196 -5182
- package/dist/index.css +1 -1
- package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
- package/dist/shared/components/popup-handler/composables/usePopup/index.d.ts.map +1 -1
- package/dist/tailwind.config.d.ts +1 -2
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +1 -79
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts +389 -6
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +2295 -5
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +1119 -5
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts +1778 -5
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-col/vc-col.stories.d.ts +51 -5
- package/dist/ui/components/atoms/vc-col/vc-col.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts +37 -5
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +62 -5
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts +103 -5
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts +101 -5
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts +103 -5
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading.stories.d.ts +18 -5
- package/dist/ui/components/atoms/vc-loading/vc-loading.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts +85 -5
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-row/vc-row.stories.d.ts +25 -5
- package/dist/ui/components/atoms/vc-row/vc-row.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +116 -5
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +53 -5
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts +59 -0
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts +42 -5
- package/dist/ui/components/atoms/vc-widget/vc-widget.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +40 -5
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +179 -5
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts +12 -0
- package/dist/ui/components/molecules/vc-field/vc-field.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +19 -0
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts +182 -5
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +4 -0
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts +29 -5
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +347 -5
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +354 -5
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +889 -0
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +74 -5
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts +498 -5
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +2567 -5
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts +156 -5
- package/dist/ui/components/molecules/vc-slider/vc-slider.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +1297 -5
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +276 -5
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +82 -3
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +1 -179
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +209 -5
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +6 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts +155 -6
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +0 -4
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +13 -8
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +1272 -5
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +6 -5
- package/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue +1 -0
- package/shared/components/popup-handler/composables/usePopup/index.ts +8 -7
- package/tailwind.config.ts +2 -46
- package/ui/components/atoms/vc-badge/index.ts +1 -13
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +48 -20
- package/ui/components/atoms/vc-button/vc-button.stories.ts +111 -19
- package/ui/components/atoms/vc-card/vc-card.stories.ts +96 -18
- package/ui/components/atoms/vc-checkbox/vc-checkbox.stories.ts +75 -16
- package/ui/components/atoms/vc-col/vc-col.stories.ts +16 -17
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +18 -16
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +57 -16
- package/ui/components/atoms/vc-image/vc-image.stories.ts +72 -24
- package/ui/components/atoms/vc-label/vc-label.stories.ts +26 -16
- package/ui/components/atoms/vc-link/vc-link.stories.ts +29 -16
- package/ui/components/atoms/vc-loading/vc-loading.stories.ts +11 -16
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +22 -16
- package/ui/components/atoms/vc-row/vc-row.stories.ts +14 -17
- package/ui/components/atoms/vc-status/vc-status.stories.ts +78 -16
- package/ui/components/atoms/vc-switch/vc-switch.stories.ts +18 -16
- package/ui/components/atoms/vc-video/vc-video.stories.ts +33 -0
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +13 -17
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +22 -19
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +24 -16
- package/ui/components/molecules/vc-field/vc-field.stories.ts +114 -0
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +34 -16
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +3 -1
- package/ui/components/molecules/vc-form/vc-form.stories.ts +20 -16
- package/ui/components/molecules/vc-input/vc-input.stories.ts +144 -14
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +61 -18
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +120 -0
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +17 -14
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +51 -15
- package/ui/components/molecules/vc-select/vc-select.stories.ts +605 -29
- package/ui/components/molecules/vc-select/vc-select.vue +0 -4
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +34 -21
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +46 -14
- package/ui/components/organisms/vc-app/vc-app.stories.ts +204 -51
- package/ui/components/organisms/vc-app/vc-app.vue +31 -24
- package/ui/components/organisms/vc-blade/index.ts +1 -11
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +60 -16
- package/ui/components/organisms/vc-blade/vc-blade.vue +7 -2
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +68 -24
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +7 -6
- package/ui/components/organisms/vc-popup/vc-popup.vue +7 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +1 -0
- package/ui/components/organisms/vc-table/vc-table.stories.ts +144 -30
- package/ui/components/organisms/vc-table/vc-table.vue +13 -7
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts +0 -7
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts +0 -7
- package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts.map +0 -1
- package/ui/components/organisms/vc-login-form/vc-login-form.stories.ts +0 -52
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.stories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vc-table.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK7B,wBAkEiC;AAEjC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,OAAO,CAe1C,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAKxD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAK1D,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,OAAO,OAAO,CAmEtD,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,OAAO,OAAO,CAuBjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,GAAG,EAIH,QAAQ,EAET,MAAM,KAAK,CAAC;AAOb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK/E,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"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,MAAM,IAAI,CAAA;aAAE,KAAK,GAAG;;;kBACZ,GAAG;8BAGvB,GAAG,KAAK,GAAG;2BACd,GAAG,KAAK,GAAG;4BACV,GAAG,KAAK,GAAG;;;uBA0DQ,MAAM;uBAAa,MAAM;;;;;AAxE9D,wBAi/D2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.183",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"./*": "./*"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsx scripts/build.mts",
|
|
27
|
+
"build": "shx rm -rf ./dist && tsx scripts/build.mts",
|
|
28
28
|
"build:lib": "vite build",
|
|
29
29
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
30
30
|
"type-check": "vue-tsc --noEmit"
|
|
@@ -55,11 +55,12 @@
|
|
|
55
55
|
"whatwg-fetch": "^3.6.19"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
59
|
-
"@vc-shell/config-generator": "^1.0.
|
|
60
|
-
"@vc-shell/ts-config": "^1.0.
|
|
58
|
+
"@vc-shell/api-client-generator": "^1.0.183",
|
|
59
|
+
"@vc-shell/config-generator": "^1.0.183",
|
|
60
|
+
"@vc-shell/ts-config": "^1.0.183",
|
|
61
61
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
62
62
|
"sass": "^1.69.6",
|
|
63
|
+
"shx": "^0.3.4",
|
|
63
64
|
"tsx": "^4.7.1",
|
|
64
65
|
"typescript": "^5.3.3",
|
|
65
66
|
"vite": "^5.0.11",
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
MaybeRef,
|
|
13
13
|
unref,
|
|
14
14
|
DefineComponent,
|
|
15
|
-
h,
|
|
16
15
|
} from "vue";
|
|
17
16
|
import { PopupPlugin, UsePopupInternal, UsePopupProps } from "./../../types";
|
|
18
17
|
import { popupPluginInstance } from "./../../plugin";
|
|
@@ -59,9 +58,11 @@ export function usePopup<T extends ComponentPublicInstanceConstructor<any> = typ
|
|
|
59
58
|
|
|
60
59
|
function destroy(confirmation: UsePopupProps<DefineComponent>): void {
|
|
61
60
|
const popupInstanceInternal = usePopupInternal();
|
|
62
|
-
const index = popupInstanceInternal
|
|
61
|
+
const index = popupInstanceInternal?.popups?.findIndex((x) =>
|
|
62
|
+
_.isEqualWith(x, confirmation, (val) => val.component),
|
|
63
|
+
);
|
|
63
64
|
|
|
64
|
-
if (index !== -1) popupInstanceInternal
|
|
65
|
+
if (index !== -1) popupInstanceInternal?.popups?.splice(index, 1);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
async function open(customInstance?: UsePopupProps<DefineComponent>) {
|
|
@@ -73,7 +74,7 @@ export function usePopup<T extends ComponentPublicInstanceConstructor<any> = typ
|
|
|
73
74
|
|
|
74
75
|
destroy(rawPopup || customInstance);
|
|
75
76
|
|
|
76
|
-
activeInstance?.popups
|
|
77
|
+
activeInstance?.popups?.push(rawPopup || customInstance);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
function close(customInstance?: UsePopupProps<DefineComponent>) {
|
|
@@ -82,7 +83,7 @@ export function usePopup<T extends ComponentPublicInstanceConstructor<any> = typ
|
|
|
82
83
|
activeInstance = popupInstance;
|
|
83
84
|
}
|
|
84
85
|
const index = activeInstance?.popups.indexOf(rawPopup || customInstance);
|
|
85
|
-
if (index !== undefined && index !== -1) activeInstance?.popups
|
|
86
|
+
if (index !== undefined && index !== -1) activeInstance?.popups?.splice(index, 1);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
async function showConfirmation(message: string | Ref<string>): Promise<boolean> {
|
|
@@ -103,7 +104,7 @@ export function usePopup<T extends ComponentPublicInstanceConstructor<any> = typ
|
|
|
103
104
|
},
|
|
104
105
|
},
|
|
105
106
|
slots: {
|
|
106
|
-
|
|
107
|
+
default: message,
|
|
107
108
|
},
|
|
108
109
|
});
|
|
109
110
|
|
|
@@ -128,7 +129,7 @@ export function usePopup<T extends ComponentPublicInstanceConstructor<any> = typ
|
|
|
128
129
|
},
|
|
129
130
|
},
|
|
130
131
|
slots: {
|
|
131
|
-
|
|
132
|
+
default: message,
|
|
132
133
|
},
|
|
133
134
|
});
|
|
134
135
|
|
package/tailwind.config.ts
CHANGED
|
@@ -1,50 +1,6 @@
|
|
|
1
1
|
/** @type { import('tailwindcss').Config } */
|
|
2
|
+
import config from "@vc-shell/tailwind-config";
|
|
2
3
|
export default {
|
|
3
|
-
|
|
4
|
+
...config,
|
|
4
5
|
content: ["./ui/components/**/*.{vue,js,ts,jsx,tsx}", "./shared/**/*.{vue,js,ts,jsx,tsx}"],
|
|
5
|
-
theme: {
|
|
6
|
-
fontFamily: {
|
|
7
|
-
roboto: ["Roboto", "sans-serif"],
|
|
8
|
-
},
|
|
9
|
-
fontSize: {
|
|
10
|
-
xs: ["11px", "14px"],
|
|
11
|
-
sm: ["12px", "16px"],
|
|
12
|
-
base: ["13px", "18px"],
|
|
13
|
-
lg: ["14px", "19px"],
|
|
14
|
-
xl: ["16px", "22px"],
|
|
15
|
-
"2xl": ["23px", "28px"],
|
|
16
|
-
},
|
|
17
|
-
lineHeight: {
|
|
18
|
-
xs: "14px",
|
|
19
|
-
sm: "16px",
|
|
20
|
-
base: "18px",
|
|
21
|
-
lg: "19px",
|
|
22
|
-
xl: "22px",
|
|
23
|
-
"2xl": "28px",
|
|
24
|
-
header: "28px",
|
|
25
|
-
},
|
|
26
|
-
extend: {
|
|
27
|
-
keyframes: {
|
|
28
|
-
loadingMarker: {
|
|
29
|
-
"50%": { transform: "translateX(96px)" },
|
|
30
|
-
},
|
|
31
|
-
loadingMarkers: {
|
|
32
|
-
"50%": { transform: "translateX(-31px)" },
|
|
33
|
-
},
|
|
34
|
-
loadingProgress: {
|
|
35
|
-
from: {
|
|
36
|
-
"background-position": "0 0, left",
|
|
37
|
-
},
|
|
38
|
-
to: {
|
|
39
|
-
"background-position": "30px 0, left",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
animation: {
|
|
44
|
-
loadingMarker: "loadingMarker 3s infinite",
|
|
45
|
-
loadingMarkers: "loadingMarkers 3s infinite",
|
|
46
|
-
loadingProgress: "loadingProgress 1s linear infinite",
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
6
|
};
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import _Badge from "./vc-badge.vue";
|
|
3
|
-
|
|
4
|
-
export const VcBadge = _Badge as typeof _Badge & {
|
|
5
|
-
new (): {
|
|
6
|
-
$slots: {
|
|
7
|
-
/**
|
|
8
|
-
* Slot for component content
|
|
9
|
-
* */
|
|
10
|
-
default: () => VNode[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
export { default as VcBadge } from "./vc-badge.vue";
|
|
@@ -1,25 +1,53 @@
|
|
|
1
|
-
import type { Meta,
|
|
2
|
-
import
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
|
+
import VcBadge from "./vc-badge.vue";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
export default {
|
|
5
5
|
title: "atoms/VcBadge",
|
|
6
6
|
component: VcBadge,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof VcBadge>;
|
|
11
|
-
|
|
12
|
-
export const Primary: Story = {
|
|
13
|
-
render: (args) => ({
|
|
14
|
-
components: { VcBadge },
|
|
15
|
-
setup() {
|
|
16
|
-
return { args };
|
|
17
|
-
},
|
|
18
|
-
template: '<vc-badge v-bind="args">42</vc-badge>',
|
|
19
|
-
}),
|
|
20
7
|
args: {
|
|
21
|
-
|
|
22
|
-
disabled: false,
|
|
23
|
-
clickable: true,
|
|
8
|
+
default: "42",
|
|
24
9
|
},
|
|
25
|
-
|
|
10
|
+
argTypes: {
|
|
11
|
+
default: {
|
|
12
|
+
control: "text",
|
|
13
|
+
},
|
|
14
|
+
active: {
|
|
15
|
+
control: "boolean",
|
|
16
|
+
type: {
|
|
17
|
+
name: "boolean",
|
|
18
|
+
required: false,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
control: "boolean",
|
|
23
|
+
type: {
|
|
24
|
+
name: "boolean",
|
|
25
|
+
required: false,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
clickable: {
|
|
29
|
+
control: "boolean",
|
|
30
|
+
type: {
|
|
31
|
+
name: "boolean",
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
} satisfies Meta<typeof VcBadge>;
|
|
37
|
+
|
|
38
|
+
const Template: StoryFn<typeof VcBadge> = (args) => ({
|
|
39
|
+
components: { VcBadge },
|
|
40
|
+
setup: () => ({ args }),
|
|
41
|
+
template: `<VcBadge v-bind="args">{{args.default}}</VcBadge>`,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export const Basic = Template.bind({});
|
|
45
|
+
|
|
46
|
+
export const Active = Template.bind({});
|
|
47
|
+
Active.args = { active: true };
|
|
48
|
+
|
|
49
|
+
export const Disabled = Template.bind({});
|
|
50
|
+
Disabled.args = { disabled: true };
|
|
51
|
+
|
|
52
|
+
export const Clickable = Template.bind({});
|
|
53
|
+
Clickable.args = { clickable: true };
|
|
@@ -1,26 +1,118 @@
|
|
|
1
|
-
import type { Meta,
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
2
|
import { VcButton } from "./";
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
title: "atoms/VcButton",
|
|
6
|
-
component: VcButton,
|
|
7
|
-
};
|
|
4
|
+
const COLORS = ["primary", "warning", "danger"];
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
type Story = StoryObj<typeof VcButton>;
|
|
6
|
+
const PROPERTY = ["disabled", "small", "outline", "selected", "text", "raised"];
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
template: '<vc-button v-bind="args">I am a button</vc-button>',
|
|
19
|
-
}),
|
|
8
|
+
const ICON_SIZE = ["xs", "s", "m", "l", "xl", "xxl", "xxxl"];
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: "atoms/VcButton",
|
|
12
|
+
component: VcButton,
|
|
20
13
|
args: {
|
|
21
|
-
|
|
14
|
+
default: "I am a button",
|
|
22
15
|
variant: "primary",
|
|
23
|
-
|
|
24
|
-
small: false,
|
|
16
|
+
iconSize: "s",
|
|
25
17
|
},
|
|
26
|
-
|
|
18
|
+
argTypes: {
|
|
19
|
+
default: {
|
|
20
|
+
control: "text",
|
|
21
|
+
},
|
|
22
|
+
icon: { control: "text" },
|
|
23
|
+
iconClass: { control: "text" },
|
|
24
|
+
iconSize: {
|
|
25
|
+
control: "radio",
|
|
26
|
+
table: {
|
|
27
|
+
type: {
|
|
28
|
+
summary: ICON_SIZE.join(" | "),
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: ICON_SIZE,
|
|
32
|
+
},
|
|
33
|
+
variant: {
|
|
34
|
+
control: "radio",
|
|
35
|
+
options: ["primary", "warning", "danger"],
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: COLORS.join(" | "),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
disabled: { control: "boolean" },
|
|
43
|
+
small: { control: "boolean" },
|
|
44
|
+
outline: { control: "boolean" },
|
|
45
|
+
selected: { control: "boolean" },
|
|
46
|
+
text: { control: "boolean" },
|
|
47
|
+
raised: { control: "boolean" },
|
|
48
|
+
},
|
|
49
|
+
} satisfies Meta<typeof VcButton>;
|
|
50
|
+
|
|
51
|
+
export const Template: StoryFn<typeof VcButton> = (args) => ({
|
|
52
|
+
components: { VcButton },
|
|
53
|
+
setup() {
|
|
54
|
+
return { args };
|
|
55
|
+
},
|
|
56
|
+
template: '<VcButton v-bind="args">{{args.default}}</VcButton>',
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const Basic = Template.bind({});
|
|
60
|
+
|
|
61
|
+
export const Disabled = Template.bind({});
|
|
62
|
+
Disabled.args = { disabled: true };
|
|
63
|
+
|
|
64
|
+
export const Small = Template.bind({});
|
|
65
|
+
Small.args = { small: true };
|
|
66
|
+
|
|
67
|
+
export const Outline = Template.bind({});
|
|
68
|
+
Outline.args = { outline: true };
|
|
69
|
+
|
|
70
|
+
export const Selected = Template.bind({});
|
|
71
|
+
Selected.args = { selected: true };
|
|
72
|
+
|
|
73
|
+
export const Text = Template.bind({});
|
|
74
|
+
Text.args = { text: true };
|
|
75
|
+
|
|
76
|
+
export const Raised = Template.bind({});
|
|
77
|
+
Raised.args = { raised: true };
|
|
78
|
+
|
|
79
|
+
export const Icon = Template.bind({});
|
|
80
|
+
Icon.args = { icon: "fas fa-plus" };
|
|
81
|
+
|
|
82
|
+
export const IconClass = Template.bind({});
|
|
83
|
+
IconClass.args = { icon: "fas fa-plus", iconClass: "tw-text-red" };
|
|
84
|
+
|
|
85
|
+
export const IconSize = Template.bind({});
|
|
86
|
+
IconSize.args = { icon: "fas fa-plus", iconSize: "l" };
|
|
87
|
+
|
|
88
|
+
export const Warning = Template.bind({});
|
|
89
|
+
Warning.args = { variant: "warning" };
|
|
90
|
+
|
|
91
|
+
export const Danger = Template.bind({});
|
|
92
|
+
Danger.args = { variant: "danger" };
|
|
93
|
+
|
|
94
|
+
export const AllStates: StoryFn<typeof VcButton> = () => ({
|
|
95
|
+
components: { VcButton },
|
|
96
|
+
setup: () => ({ colors: COLORS, properties: PROPERTY }),
|
|
97
|
+
template: `
|
|
98
|
+
<div class="tw-space-y-8">
|
|
99
|
+
<div v-for="property in properties" class="tw-space-y-8">
|
|
100
|
+
|
|
101
|
+
<h2 class="tw-font-bold tw-text-2xl">Property: {{property}}</h2>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<div v-for="color in colors" class="tw-space-y-2">
|
|
105
|
+
<p class="tw-font-bold">Color: {{color}}</p>
|
|
106
|
+
<div class="tw-flex tw-flex-row tw-space-x-4">
|
|
107
|
+
<div v-for="prop in properties.filter(x => x !== property)" class="tw-space-y-4">
|
|
108
|
+
<p class="tw-font-bold tw-text-sm">Property: {{prop}}</p>
|
|
109
|
+
<VcButton :[property]="true" :[prop]="true" :variant="color">I am a button</VcButton>
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
`,
|
|
118
|
+
});
|
|
@@ -1,25 +1,103 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from "@storybook/vue3";
|
|
2
2
|
import { VcCard } from ".";
|
|
3
|
-
import { VcInput, VcCol } from "./../../";
|
|
3
|
+
import { VcInput, VcCol, VcButton } from "./../../";
|
|
4
|
+
import { h } from "vue";
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const VARIANT = ["default", "success", "danger"];
|
|
7
|
+
|
|
8
|
+
export default {
|
|
6
9
|
title: "atoms/VcCard",
|
|
7
10
|
component: VcCard,
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof VcCard>;
|
|
12
|
-
|
|
13
|
-
export const Primary: Story = {
|
|
14
|
-
render: (args) => ({
|
|
15
|
-
components: { VcCard, VcInput, VcCol },
|
|
16
|
-
setup() {
|
|
17
|
-
return { args };
|
|
18
|
-
},
|
|
19
|
-
template: `<vc-card v-bind="args">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!</vc-card>`,
|
|
20
|
-
}),
|
|
21
11
|
args: {
|
|
12
|
+
header: "Card Title",
|
|
22
13
|
variant: "default",
|
|
23
|
-
|
|
14
|
+
default: "Text",
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
default: {
|
|
18
|
+
control: "radio",
|
|
19
|
+
options: ["Text", "Component"],
|
|
20
|
+
mapping: {
|
|
21
|
+
Text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!",
|
|
22
|
+
Component: VcInput,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
header: { control: "text" },
|
|
26
|
+
icon: { control: "text" },
|
|
27
|
+
isCollapsable: { control: "boolean" },
|
|
28
|
+
isCollapsed: { control: "boolean" },
|
|
29
|
+
variant: {
|
|
30
|
+
control: "radio",
|
|
31
|
+
options: VARIANT,
|
|
32
|
+
table: {
|
|
33
|
+
type: {
|
|
34
|
+
summary: VARIANT.join(" | "),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
fill: { control: "boolean" },
|
|
39
|
+
},
|
|
40
|
+
} satisfies Meta<typeof VcCard>;
|
|
41
|
+
|
|
42
|
+
export const Template: StoryFn<typeof VcCard> = (args) => ({
|
|
43
|
+
components: { VcCard, VcInput, VcCol },
|
|
44
|
+
setup() {
|
|
45
|
+
return { args };
|
|
46
|
+
},
|
|
47
|
+
template: `
|
|
48
|
+
<vc-card v-bind="args">
|
|
49
|
+
<template v-if="typeof args.default === 'string'">
|
|
50
|
+
<p class="tw-p-4">{{args.default}}</p>
|
|
51
|
+
</template>
|
|
52
|
+
<template v-else>
|
|
53
|
+
<component class="tw-p-4" :is="args.default" label="Input Field" placeholder="Input some text" />
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
</vc-card>`,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const Header = Template.bind({});
|
|
60
|
+
Header.args = { header: "Card Title" };
|
|
61
|
+
|
|
62
|
+
export const Icon = Template.bind({});
|
|
63
|
+
Icon.args = { icon: "fas fa-warehouse" };
|
|
64
|
+
|
|
65
|
+
export const Collapsable = Template.bind({});
|
|
66
|
+
Collapsable.args = { isCollapsable: true };
|
|
67
|
+
|
|
68
|
+
export const Collapsed = Template.bind({});
|
|
69
|
+
Collapsed.args = { isCollapsable: true, isCollapsed: true };
|
|
70
|
+
|
|
71
|
+
export const Fill = Template.bind({});
|
|
72
|
+
Fill.args = { fill: true, header: "Card Title" };
|
|
73
|
+
|
|
74
|
+
export const Actions: StoryFn<typeof VcCard> = (args) => ({
|
|
75
|
+
components: {
|
|
76
|
+
VcCard,
|
|
77
|
+
VcButton,
|
|
78
|
+
},
|
|
79
|
+
setup: () => ({ args }),
|
|
80
|
+
template: `
|
|
81
|
+
<vc-card :variant="variant" header="Card Title">
|
|
82
|
+
<p class="tw-p-4">{{args.default}}</p>
|
|
83
|
+
|
|
84
|
+
<template #actions>
|
|
85
|
+
<VcButton variant="danger">Action button</VcButton>
|
|
86
|
+
</template>
|
|
87
|
+
</vc-card>
|
|
88
|
+
`,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export const Variants: StoryFn<typeof VcCard> = (args) => ({
|
|
92
|
+
components: {
|
|
93
|
+
VcCard,
|
|
24
94
|
},
|
|
25
|
-
}
|
|
95
|
+
setup: () => ({ variants: VARIANT, args }),
|
|
96
|
+
template: `
|
|
97
|
+
<div class="tw-space-x-8 tw-flex tw-flex-row">
|
|
98
|
+
<vc-card v-for="variant in variants" :variant="variant" header="Card Title">
|
|
99
|
+
<p class="tw-p-4">{{args.default}}</p>
|
|
100
|
+
</vc-card>
|
|
101
|
+
</div>
|
|
102
|
+
`,
|
|
103
|
+
});
|
|
@@ -1,25 +1,84 @@
|
|
|
1
|
-
import type { Meta,
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
2
|
import { VcCheckbox } from "./";
|
|
3
3
|
import { VcLabel } from "../vc-label";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
export default {
|
|
6
6
|
title: "atoms/VcCheckbox",
|
|
7
7
|
component: VcCheckbox,
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof VcCheckbox>;
|
|
12
|
-
|
|
13
|
-
export const Primary: Story = {
|
|
14
|
-
render: (args) => ({
|
|
15
|
-
components: { VcCheckbox, VcLabel },
|
|
16
|
-
setup() {
|
|
17
|
-
return { args };
|
|
18
|
-
},
|
|
19
|
-
template: '<vc-checkbox v-bind="args">Checkbox text content</vc-checkbox>',
|
|
20
|
-
}),
|
|
21
8
|
args: {
|
|
22
9
|
modelValue: true,
|
|
23
10
|
label: "Checkbox label",
|
|
11
|
+
default: "Checkbox text content",
|
|
24
12
|
},
|
|
25
|
-
|
|
13
|
+
argTypes: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
control: "boolean",
|
|
16
|
+
table: {
|
|
17
|
+
type: {
|
|
18
|
+
summary: "boolean",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
control: "boolean",
|
|
24
|
+
},
|
|
25
|
+
required: {
|
|
26
|
+
control: "boolean",
|
|
27
|
+
},
|
|
28
|
+
name: {
|
|
29
|
+
control: "text",
|
|
30
|
+
},
|
|
31
|
+
errorMessage: {
|
|
32
|
+
control: "text",
|
|
33
|
+
},
|
|
34
|
+
trueValue: {
|
|
35
|
+
control: "boolean",
|
|
36
|
+
},
|
|
37
|
+
falseValue: {
|
|
38
|
+
control: "boolean",
|
|
39
|
+
},
|
|
40
|
+
label: {
|
|
41
|
+
control: "text",
|
|
42
|
+
},
|
|
43
|
+
tooltip: {
|
|
44
|
+
control: "text",
|
|
45
|
+
},
|
|
46
|
+
default: {
|
|
47
|
+
control: "text",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
} satisfies Meta<typeof VcCheckbox>;
|
|
51
|
+
|
|
52
|
+
export const Template: StoryFn<typeof VcCheckbox> = (args) => ({
|
|
53
|
+
components: { VcCheckbox, VcLabel },
|
|
54
|
+
setup() {
|
|
55
|
+
return { args };
|
|
56
|
+
},
|
|
57
|
+
template: '<vc-checkbox v-bind="args">{{args.default}}</vc-checkbox>',
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const Basic = Template.bind({});
|
|
61
|
+
|
|
62
|
+
export const Disabled = Template.bind({});
|
|
63
|
+
Disabled.args = { disabled: true };
|
|
64
|
+
|
|
65
|
+
export const Required = Template.bind({});
|
|
66
|
+
Required.args = { required: true };
|
|
67
|
+
|
|
68
|
+
export const Error = Template.bind({});
|
|
69
|
+
Error.args = { errorMessage: "This is an error message" };
|
|
70
|
+
|
|
71
|
+
export const Tooltip = Template.bind({});
|
|
72
|
+
Tooltip.args = { tooltip: "This is a tooltip" };
|
|
73
|
+
|
|
74
|
+
export const Label = Template.bind({});
|
|
75
|
+
Label.args = { label: "Checkbox label" };
|
|
76
|
+
|
|
77
|
+
export const Name = Template.bind({});
|
|
78
|
+
Name.args = { name: "checkbox-name" };
|
|
79
|
+
|
|
80
|
+
export const TrueValue = Template.bind({});
|
|
81
|
+
TrueValue.args = { trueValue: false };
|
|
82
|
+
|
|
83
|
+
export const FalseValue = Template.bind({});
|
|
84
|
+
FalseValue.args = { falseValue: true };
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import type { Meta,
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
2
|
import { VcCol } from "./";
|
|
3
|
+
import { VcRow } from "./../vc-row";
|
|
3
4
|
import { VcImage } from "./../../";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
export default {
|
|
6
7
|
title: "atoms/VcCol",
|
|
7
8
|
component: VcCol,
|
|
8
|
-
}
|
|
9
|
+
} satisfies Meta<typeof VcCol>;
|
|
9
10
|
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
args: {},
|
|
23
|
-
};
|
|
11
|
+
export const Primary: StoryFn<typeof VcCol> = (args) => ({
|
|
12
|
+
components: { VcCol, VcImage, VcRow },
|
|
13
|
+
setup() {
|
|
14
|
+
return { args };
|
|
15
|
+
},
|
|
16
|
+
template: `
|
|
17
|
+
<vc-col v-bind="args">
|
|
18
|
+
<vc-image src="https://picsum.photos/200" size="xl"/>
|
|
19
|
+
<vc-image src="https://picsum.photos/200" size="xl"/>
|
|
20
|
+
<vc-image src="https://picsum.photos/200" size="xl"/>
|
|
21
|
+
</vc-col>`,
|
|
22
|
+
});
|