@solfacil/girassol 0.2.12 → 0.3.2
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/dist/components.d.ts +2 -3
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +3010 -985
- package/dist/girassol.umd.js +10 -6
- package/dist/style.css +1 -1
- package/dist/types/components/forms/button/{Button.vue.d.ts → button/Button.vue.d.ts} +0 -0
- package/dist/types/components/forms/button/{button.spec.d.ts → button/button.spec.d.ts} +0 -0
- package/dist/types/components/forms/button/{ButtonDestructive.vue.d.ts → button-destructive/ButtonDestructive.vue.d.ts} +0 -0
- package/dist/types/components/forms/button/index.d.ts +2 -2
- package/dist/types/components/forms/checkbox/{Checkbox.vue.d.ts → checkbox/Checkbox.vue.d.ts} +12 -8
- package/dist/types/components/forms/checkbox/{checkbox.spec.d.ts → checkbox/checkbox.spec.d.ts} +0 -0
- package/dist/types/components/forms/checkbox/{CheckboxGroup.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +12 -12
- package/dist/types/components/forms/checkbox/{checkbox-group.spec.d.ts → checkbox-group/checkbox-group.spec.d.ts} +0 -0
- package/dist/types/components/forms/checkbox/index.d.ts +2 -2
- package/dist/types/components/forms/checkbox/{checkbox-type.d.ts → type.d.ts} +1 -0
- package/dist/types/components/forms/inputs/index.d.ts +3 -0
- package/dist/types/components/forms/{input → inputs/input-core}/Input.vue.d.ts +47 -23
- package/dist/types/components/forms/{input → inputs/input-core}/input.spec.d.ts +0 -0
- package/dist/types/components/forms/{textfield/TextfieldPassword.vue.d.ts → inputs/input-password/InputPassword.vue.d.ts} +76 -23
- package/dist/types/components/forms/{textfield/textfield-password.spec.d.ts → inputs/input-password/input-password.spec.d.ts} +0 -0
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +181 -0
- package/dist/types/components/forms/{textfield/textfield.spec.d.ts → inputs/input-text/input-text.spec.d.ts} +0 -0
- package/dist/types/components/forms/inputs/types.d.ts +24 -0
- package/dist/types/components/forms/switch/Switch.vue.d.ts +52 -22
- package/dist/types/components/loader/CircleLoader.vue.d.ts +19 -8
- package/dist/types/components/menus/menu/Menu.vue.d.ts +7 -7
- package/dist/types/composables/use-validate-field/index.d.ts +5 -0
- package/dist/types/composables/use-validate-field/types.d.ts +9 -0
- package/dist/types/index.d.ts +544 -302
- package/package.json +22 -19
- package/theme/solfacil/colors.ts +1 -1
- package/windi.config.ts +11 -11
- package/dist/theme/safelist.d.ts +0 -14
- package/dist/types/components/forms/input/index.d.ts +0 -2
- package/dist/types/components/forms/textfield/Textfield.vue.d.ts +0 -129
- package/dist/types/components/forms/textfield/index.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.2
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"authors": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Kevin Martin",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@vueuse/core": "^9.1.0",
|
|
61
61
|
"gluegun": "latest",
|
|
62
|
+
"vee-validate": "^4.6.6",
|
|
62
63
|
"vue": "^3.2.37"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
@@ -67,22 +68,24 @@
|
|
|
67
68
|
"@babel/preset-env": "^7.18.10",
|
|
68
69
|
"@commitlint/cli": "^17.0.3",
|
|
69
70
|
"@commitlint/config-conventional": "^17.0.3",
|
|
70
|
-
"@iconify/json": "^2.1.
|
|
71
|
-
"@storybook/addon-a11y": "^6.5.
|
|
72
|
-
"@storybook/addon-actions": "^6.5.
|
|
73
|
-
"@storybook/addon-essentials": "^6.5.
|
|
74
|
-
"@storybook/addon-links": "^6.5.
|
|
71
|
+
"@iconify/json": "^2.1.101",
|
|
72
|
+
"@storybook/addon-a11y": "^6.5.10",
|
|
73
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
74
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
75
|
+
"@storybook/addon-links": "^6.5.10",
|
|
75
76
|
"@storybook/builder-vite": "^0.2.2",
|
|
76
|
-
"@storybook/theming": "^6.5.
|
|
77
|
-
"@storybook/vue3": "^6.5.
|
|
78
|
-
"@testing-library/jest-dom": "^5.16.
|
|
79
|
-
"@testing-library/user-event": "^14.
|
|
77
|
+
"@storybook/theming": "^6.5.10",
|
|
78
|
+
"@storybook/vue3": "^6.5.10",
|
|
79
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
80
|
+
"@testing-library/user-event": "^14.4.3",
|
|
80
81
|
"@testing-library/vue": "^6.6.1",
|
|
81
82
|
"@types/jest-axe": "^3.5.4",
|
|
82
83
|
"@types/node": "^17.0.41",
|
|
83
84
|
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
84
85
|
"@typescript-eslint/parser": "^5.30.0",
|
|
85
|
-
"@vitejs/plugin-vue": "^3.0.
|
|
86
|
+
"@vitejs/plugin-vue": "^3.0.3",
|
|
87
|
+
"@vitest/coverage-c8": "^0.22.1",
|
|
88
|
+
"@vitest/ui": "^0.22.1",
|
|
86
89
|
"babel-loader": "^8.2.5",
|
|
87
90
|
"c8": "^7.12.0",
|
|
88
91
|
"cli-spinner": "^0.2.10",
|
|
@@ -100,19 +103,19 @@
|
|
|
100
103
|
"jsdom": "^20.0.0",
|
|
101
104
|
"sass": "^1.50.0",
|
|
102
105
|
"storybook-addon-designs": "^6.3.1",
|
|
103
|
-
"stylelint": "^14.
|
|
106
|
+
"stylelint": "^14.10.0",
|
|
104
107
|
"stylelint-config-prettier": "^9.0.3",
|
|
105
108
|
"stylelint-config-property-sort-order-smacss": "^9.0.0",
|
|
106
109
|
"stylelint-order": "^5.0.0",
|
|
107
|
-
"ts-node": "^10.
|
|
110
|
+
"ts-node": "^10.9.1",
|
|
108
111
|
"typescript": "^4.7.4",
|
|
109
|
-
"unplugin-icons": "^0.14.
|
|
110
|
-
"vite": "^3.0.
|
|
111
|
-
"vite-plugin-inspect": "^0.
|
|
112
|
+
"unplugin-icons": "^0.14.8",
|
|
113
|
+
"vite": "^3.0.9",
|
|
114
|
+
"vite-plugin-inspect": "^0.6.0",
|
|
112
115
|
"vite-plugin-windicss": "^1.8.7",
|
|
113
|
-
"vitest": "^0.
|
|
116
|
+
"vitest": "^0.22.1",
|
|
114
117
|
"vue-loader": "^17.0.0",
|
|
115
|
-
"vue-tsc": "^0.40.
|
|
118
|
+
"vue-tsc": "^0.40.1",
|
|
116
119
|
"windicss": "^3.5.6"
|
|
117
120
|
},
|
|
118
121
|
"repository": {
|
|
@@ -136,4 +139,4 @@
|
|
|
136
139
|
"path": "./node_modules/cz-conventional-changelog"
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
|
-
}
|
|
142
|
+
}
|
package/theme/solfacil/colors.ts
CHANGED
package/windi.config.ts
CHANGED
|
@@ -4,9 +4,9 @@ import typography from 'windicss/plugin/typography'
|
|
|
4
4
|
|
|
5
5
|
import { borders, colors, effects, misc, screens, spacing, typography as typos, utilities } from './theme/solfacil/'
|
|
6
6
|
|
|
7
|
-
import { sizings } from './theme/solfacil/spacing'
|
|
7
|
+
// import { sizings } from './theme/solfacil/spacing'
|
|
8
8
|
|
|
9
|
-
import { safelist } from './theme/safelist'
|
|
9
|
+
// import { safelist } from './theme/safelist'
|
|
10
10
|
|
|
11
11
|
export default defineConfig({
|
|
12
12
|
darkMode: 'class',
|
|
@@ -15,15 +15,15 @@ export default defineConfig({
|
|
|
15
15
|
include: ['index.html', 'src/**/*', '*.mdx', '*.vue'],
|
|
16
16
|
},
|
|
17
17
|
|
|
18
|
-
safelist: [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
],
|
|
18
|
+
// safelist: [
|
|
19
|
+
// ...safelist({
|
|
20
|
+
// activeSafeList: true,
|
|
21
|
+
// data: {
|
|
22
|
+
// colors,
|
|
23
|
+
// spacing: sizings,
|
|
24
|
+
// },
|
|
25
|
+
// }),
|
|
26
|
+
// ],
|
|
27
27
|
|
|
28
28
|
plugins: [
|
|
29
29
|
typography(),
|
package/dist/theme/safelist.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare type Data = {
|
|
2
|
-
colors: Record<string, any>;
|
|
3
|
-
spacing: Record<string, any>;
|
|
4
|
-
};
|
|
5
|
-
declare type Args = {
|
|
6
|
-
activeSafeList: boolean;
|
|
7
|
-
data: Data;
|
|
8
|
-
};
|
|
9
|
-
export declare function safelist({ activeSafeList, data }: Args): string[];
|
|
10
|
-
export declare function safelistColors(colors: Data['colors']): string[];
|
|
11
|
-
export declare function safelistElementColors(colorsNames: string[]): string[];
|
|
12
|
-
export declare function safelistSpacing(spacing: Data['spacing']): string[];
|
|
13
|
-
export declare function range(size: number, startAt?: number): number[];
|
|
14
|
-
export {};
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
6
|
-
label: string;
|
|
7
|
-
modelValue: string | number;
|
|
8
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
id: string;
|
|
10
|
-
class?: string | undefined;
|
|
11
|
-
modelValue?: string | number | undefined;
|
|
12
|
-
label?: string | undefined;
|
|
13
|
-
hint?: string | undefined;
|
|
14
|
-
invert?: boolean | undefined;
|
|
15
|
-
error?: string | undefined;
|
|
16
|
-
}>, {
|
|
17
|
-
modelValue: string;
|
|
18
|
-
label: string;
|
|
19
|
-
}>>> & {
|
|
20
|
-
"onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
|
|
21
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "modelValue">;
|
|
22
|
-
$attrs: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
$refs: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
$slots: Readonly<{
|
|
29
|
-
[name: string]: import("vue").Slot | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
32
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
33
|
-
$emit: (event: "update:modelValue", event: string | number) => void;
|
|
34
|
-
$el: any;
|
|
35
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
36
|
-
id: string;
|
|
37
|
-
class?: string | undefined;
|
|
38
|
-
modelValue?: string | number | undefined;
|
|
39
|
-
label?: string | undefined;
|
|
40
|
-
hint?: string | undefined;
|
|
41
|
-
invert?: boolean | undefined;
|
|
42
|
-
error?: string | undefined;
|
|
43
|
-
}>, {
|
|
44
|
-
modelValue: string;
|
|
45
|
-
label: string;
|
|
46
|
-
}>>> & {
|
|
47
|
-
"onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
|
|
48
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
-
"update:modelValue": (event: string | number) => void;
|
|
50
|
-
}, string, {
|
|
51
|
-
label: string;
|
|
52
|
-
modelValue: string | number;
|
|
53
|
-
}> & {
|
|
54
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
67
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
68
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
69
|
-
};
|
|
70
|
-
$forceUpdate: () => void;
|
|
71
|
-
$nextTick: typeof import("vue").nextTick;
|
|
72
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
73
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
74
|
-
id: string;
|
|
75
|
-
class?: string | undefined;
|
|
76
|
-
modelValue?: string | number | undefined;
|
|
77
|
-
label?: string | undefined;
|
|
78
|
-
hint?: string | undefined;
|
|
79
|
-
invert?: boolean | undefined;
|
|
80
|
-
error?: string | undefined;
|
|
81
|
-
}>, {
|
|
82
|
-
modelValue: string;
|
|
83
|
-
label: string;
|
|
84
|
-
}>>> & {
|
|
85
|
-
"onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
|
|
86
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
87
|
-
__isFragment?: undefined;
|
|
88
|
-
__isTeleport?: undefined;
|
|
89
|
-
__isSuspense?: undefined;
|
|
90
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
91
|
-
id: string;
|
|
92
|
-
class?: string | undefined;
|
|
93
|
-
modelValue?: string | number | undefined;
|
|
94
|
-
label?: string | undefined;
|
|
95
|
-
hint?: string | undefined;
|
|
96
|
-
invert?: boolean | undefined;
|
|
97
|
-
error?: string | undefined;
|
|
98
|
-
}>, {
|
|
99
|
-
modelValue: string;
|
|
100
|
-
label: string;
|
|
101
|
-
}>>> & {
|
|
102
|
-
"onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
|
|
103
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
104
|
-
"update:modelValue": (event: string | number) => void;
|
|
105
|
-
}, string, {
|
|
106
|
-
label: string;
|
|
107
|
-
modelValue: string | number;
|
|
108
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
109
|
-
$slots: {
|
|
110
|
-
label: (_: {}) => any;
|
|
111
|
-
default: (_: {}) => any;
|
|
112
|
-
icon: (_: {}) => any;
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
export default _default;
|
|
116
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
117
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
118
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
119
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
120
|
-
} : {
|
|
121
|
-
type: import('vue').PropType<T[K]>;
|
|
122
|
-
required: true;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
126
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
127
|
-
default: D[K];
|
|
128
|
-
} : P[K];
|
|
129
|
-
};
|