@solfacil/girassol 0.3.3 → 0.3.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solfacil/girassol",
3
3
  "description": "Girassol design system",
4
- "version": "0.3.3",
4
+ "version": "0.3.5",
5
5
  "authors": [
6
6
  {
7
7
  "name": "Kevin Martin",
@@ -10,7 +10,7 @@
10
10
  }
11
11
  ],
12
12
  "engines": {
13
- "node": "^16.10"
13
+ "node": "^16.17"
14
14
  },
15
15
  "files": [
16
16
  ".vscode",
@@ -61,7 +61,7 @@
61
61
  "gluegun": "latest",
62
62
  "maska": "^1.5.0",
63
63
  "vee-validate": "^4.6.6",
64
- "vue": "^3.2.37"
64
+ "vue": "^3.2.39"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@antfu/eslint-config": "^0.26.1",
@@ -114,7 +114,7 @@
114
114
  "vite": "^3.0.9",
115
115
  "vite-plugin-inspect": "^0.6.0",
116
116
  "vite-plugin-windicss": "^1.8.7",
117
- "vitest": "^0.22.1",
117
+ "vitest": "^0.23.2",
118
118
  "vue-loader": "^17.0.0",
119
119
  "vue-tsc": "^0.40.1",
120
120
  "windicss": "^3.5.6"
@@ -6,7 +6,7 @@ import effects from './effects'
6
6
  import misc from './miscs'
7
7
 
8
8
  import { screens } from './screens'
9
- import { componentTypos, debug, maxLines, outlinesForFocus, placeholder } from './utilities'
9
+ import { componentTypos, debug, maxLines, outlinesForFocus, placeholder, scrollbarBase } from './utilities'
10
10
 
11
11
 
12
12
  export {
@@ -25,4 +25,5 @@ export const utilities = {
25
25
  maxLines,
26
26
  debug,
27
27
  placeholder,
28
+ scrollbarBase,
28
29
  }
@@ -1,5 +1,6 @@
1
1
  export const screens = {
2
2
  'sm': { max: '767px' },
3
3
  'md': { min: '768px' },
4
- 'lg': { min: '1366px' },
4
+ 'lg': { min: '1180px' },
5
+ 'xl': { min: '1440px' },
5
6
  }
@@ -302,4 +302,31 @@ export const placeholder = plugin(({ addUtilities, theme }) => {
302
302
 
303
303
  '.placeholder-inline': placeholderSettings,
304
304
  })
305
+ })
306
+
307
+ export const scrollbarBase = plugin(({ addBase }) => {
308
+ addBase({
309
+ '::-webkit-scrollbar': {
310
+ width: '12px',
311
+ },
312
+
313
+ '::-webkit-scrollbar-track ': {
314
+ 'box-shadow': 'inset 0 0 14px 14px rgb(240 240 240 / 64%)',
315
+ 'border-color': 'rgba(240, 240, 240, 0.64)',
316
+ 'border-style': 'solid',
317
+ 'border-width': '4px',
318
+ },
319
+
320
+ '::-webkit-scrollbar-thumb': {
321
+ 'box-shadow': 'inset 0 0 14px 14px #222222',
322
+ 'border-color': 'transparent',
323
+ 'border-radius': '0.5rem',
324
+ 'border-style': 'solid',
325
+ 'border-width': '4px',
326
+ },
327
+
328
+ '::-webkit-scrollbar-button': {
329
+ 'display': 'none',
330
+ },
331
+ })
305
332
  })
package/windi.config.ts CHANGED
@@ -32,6 +32,7 @@ export default defineConfig({
32
32
  utilities.debug,
33
33
  utilities.placeholder,
34
34
  utilities.componentTypos,
35
+ utilities.scrollbarBase,
35
36
  ],
36
37
 
37
38
  theme: {
@@ -1,238 +0,0 @@
1
- declare const _default: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{
6
- loading: boolean;
7
- searchable: boolean;
8
- closeOnSelect: boolean;
9
- fetchOnSearch: boolean;
10
- options: (string | {
11
- name: string;
12
- value: string;
13
- })[];
14
- }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
- id: string;
16
- label?: string | undefined;
17
- ariaLabel?: string | undefined;
18
- smallerWidth?: boolean | undefined;
19
- disabled?: boolean | undefined;
20
- loading?: boolean | undefined;
21
- searchable?: boolean | undefined;
22
- closeOnSelect?: boolean | undefined;
23
- fetchOnSearch?: boolean | undefined;
24
- isMultipleSelect?: boolean | undefined;
25
- searchPlaceholder?: string | undefined;
26
- selected?: string | string[] | undefined;
27
- options: (string | {
28
- name: string;
29
- value: string;
30
- })[];
31
- }>, {
32
- loading: boolean;
33
- closeOnSelect: boolean;
34
- fetchOnSearch: boolean;
35
- searchable: boolean;
36
- options: () => never[];
37
- }>>> & {
38
- onSearch?: ((value: string) => any) | undefined;
39
- onCloseDropdown?: (() => any) | undefined;
40
- "onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
41
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "searchable" | "closeOnSelect" | "fetchOnSearch" | "options">;
42
- $attrs: {
43
- [x: string]: unknown;
44
- };
45
- $refs: {
46
- [x: string]: unknown;
47
- };
48
- $slots: Readonly<{
49
- [name: string]: import("vue").Slot | undefined;
50
- }>;
51
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
52
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
53
- $emit: ((event: "search", value: string) => void) & ((event: "closeDropdown") => void) & ((event: "update:selected", value: string | string[]) => void);
54
- $el: any;
55
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
56
- id: string;
57
- label?: string | undefined;
58
- ariaLabel?: string | undefined;
59
- smallerWidth?: boolean | undefined;
60
- disabled?: boolean | undefined;
61
- loading?: boolean | undefined;
62
- searchable?: boolean | undefined;
63
- closeOnSelect?: boolean | undefined;
64
- fetchOnSearch?: boolean | undefined;
65
- isMultipleSelect?: boolean | undefined;
66
- searchPlaceholder?: string | undefined;
67
- selected?: string | string[] | undefined;
68
- options: (string | {
69
- name: string;
70
- value: string;
71
- })[];
72
- }>, {
73
- loading: boolean;
74
- closeOnSelect: boolean;
75
- fetchOnSearch: boolean;
76
- searchable: boolean;
77
- options: () => never[];
78
- }>>> & {
79
- onSearch?: ((value: string) => any) | undefined;
80
- onCloseDropdown?: (() => any) | undefined;
81
- "onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
82
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
- closeDropdown: () => void;
84
- } & {
85
- search: (value: string) => void;
86
- } & {
87
- "update:selected": (value: string | string[]) => void;
88
- }, string, {
89
- loading: boolean;
90
- searchable: boolean;
91
- closeOnSelect: boolean;
92
- fetchOnSearch: boolean;
93
- options: (string | {
94
- name: string;
95
- value: string;
96
- })[];
97
- }> & {
98
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
99
- created?: ((() => void) | (() => void)[]) | undefined;
100
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
101
- mounted?: ((() => void) | (() => void)[]) | undefined;
102
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
103
- updated?: ((() => void) | (() => void)[]) | undefined;
104
- activated?: ((() => void) | (() => void)[]) | undefined;
105
- deactivated?: ((() => void) | (() => void)[]) | undefined;
106
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
107
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
108
- destroyed?: ((() => void) | (() => void)[]) | undefined;
109
- unmounted?: ((() => void) | (() => void)[]) | undefined;
110
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
111
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
112
- 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;
113
- };
114
- $forceUpdate: () => void;
115
- $nextTick: typeof import("vue").nextTick;
116
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
117
- } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
118
- id: string;
119
- label?: string | undefined;
120
- ariaLabel?: string | undefined;
121
- smallerWidth?: boolean | undefined;
122
- disabled?: boolean | undefined;
123
- loading?: boolean | undefined;
124
- searchable?: boolean | undefined;
125
- closeOnSelect?: boolean | undefined;
126
- fetchOnSearch?: boolean | undefined;
127
- isMultipleSelect?: boolean | undefined;
128
- searchPlaceholder?: string | undefined;
129
- selected?: string | string[] | undefined;
130
- options: (string | {
131
- name: string;
132
- value: string;
133
- })[];
134
- }>, {
135
- loading: boolean;
136
- closeOnSelect: boolean;
137
- fetchOnSearch: boolean;
138
- searchable: boolean;
139
- options: () => never[];
140
- }>>> & {
141
- onSearch?: ((value: string) => any) | undefined;
142
- onCloseDropdown?: (() => any) | undefined;
143
- "onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
144
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
145
- __isFragment?: undefined;
146
- __isTeleport?: undefined;
147
- __isSuspense?: undefined;
148
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
149
- id: string;
150
- label?: string | undefined;
151
- ariaLabel?: string | undefined;
152
- smallerWidth?: boolean | undefined;
153
- disabled?: boolean | undefined;
154
- loading?: boolean | undefined;
155
- searchable?: boolean | undefined;
156
- closeOnSelect?: boolean | undefined;
157
- fetchOnSearch?: boolean | undefined;
158
- isMultipleSelect?: boolean | undefined;
159
- searchPlaceholder?: string | undefined;
160
- selected?: string | string[] | undefined;
161
- options: (string | {
162
- name: string;
163
- value: string;
164
- })[];
165
- }>, {
166
- loading: boolean;
167
- closeOnSelect: boolean;
168
- fetchOnSearch: boolean;
169
- searchable: boolean;
170
- options: () => never[];
171
- }>>> & {
172
- onSearch?: ((value: string) => any) | undefined;
173
- onCloseDropdown?: (() => any) | undefined;
174
- "onUpdate:selected"?: ((value: string | string[]) => any) | undefined;
175
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
176
- closeDropdown: () => void;
177
- } & {
178
- search: (value: string) => void;
179
- } & {
180
- "update:selected": (value: string | string[]) => void;
181
- }, string, {
182
- loading: boolean;
183
- searchable: boolean;
184
- closeOnSelect: boolean;
185
- fetchOnSearch: boolean;
186
- options: (string | {
187
- name: string;
188
- value: string;
189
- })[];
190
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
191
- $slots: {
192
- label: (_: {}) => any;
193
- 'toggle-dropdown': (_: {
194
- toggle: {
195
- open: () => void;
196
- close: () => void;
197
- toggleDropdown: () => void;
198
- };
199
- isOpen: boolean;
200
- select: (selected: string | {
201
- name: string;
202
- value: string;
203
- }) => void;
204
- selectedSanitized: string | undefined;
205
- selected: string | string[] | undefined;
206
- }) => any;
207
- search: (_: {
208
- filter: string;
209
- }) => any;
210
- default: (_: {
211
- text: string;
212
- option: string | {
213
- name: string;
214
- value: string;
215
- };
216
- isSelect: (option: string | {
217
- name: string;
218
- value: string;
219
- }) => boolean;
220
- }) => any;
221
- 'no-data': (_: {}) => any;
222
- };
223
- });
224
- export default _default;
225
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
226
- declare type __VLS_TypePropsToRuntimeProps<T> = {
227
- [K in keyof T]-?: {} extends Pick<T, K> ? {
228
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
229
- } : {
230
- type: import('vue').PropType<T[K]>;
231
- required: true;
232
- };
233
- };
234
- declare type __VLS_WithDefaults<P, D> = {
235
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
236
- default: D[K];
237
- } : P[K];
238
- };
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';