@solfacil/girassol 0.2.4 → 0.2.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.
@@ -10,6 +10,8 @@ import { SolDropdown } from './components/dropdown/';
10
10
  import { SolSelect } from './components/forms/select';
11
11
  import { SolChip } from './components/informations/chip';
12
12
  import { SolAccordion } from './components/accordion/';
13
+ import { SolMenu } from './components/menu/';
14
+ import { SolMenuItemLink } from './components/menu-item';
13
15
  import 'virtual:windi-base.css';
14
16
  import 'virtual:windi-components.css';
15
17
  import 'virtual:windi-utilities.css';
@@ -2854,6 +2856,256 @@ export declare const components: {
2854
2856
  default: (_: {}) => any;
2855
2857
  };
2856
2858
  });
2859
+ SolMenu: {
2860
+ new (...args: any[]): {
2861
+ $: import("vue").ComponentInternalInstance;
2862
+ $data: {};
2863
+ $props: Partial<{
2864
+ label: string;
2865
+ position: ("top" | "bottom") | ("right" | "left");
2866
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
2867
+ label: {
2868
+ type: import("vue").PropType<string>;
2869
+ } & {
2870
+ default: string;
2871
+ };
2872
+ id: {
2873
+ type: import("vue").PropType<string>;
2874
+ required: true;
2875
+ };
2876
+ position: {
2877
+ type: import("vue").PropType<("top" | "bottom") | ("right" | "left")>;
2878
+ } & {
2879
+ default: string;
2880
+ };
2881
+ }>> & {
2882
+ onChange?: ((value: string) => any) | undefined;
2883
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "position">;
2884
+ $attrs: {
2885
+ [x: string]: unknown;
2886
+ };
2887
+ $refs: {
2888
+ [x: string]: unknown;
2889
+ };
2890
+ $slots: Readonly<{
2891
+ [name: string]: import("vue").Slot | undefined;
2892
+ }>;
2893
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
2894
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
2895
+ $emit: (event: "change", value: string) => void;
2896
+ $el: any;
2897
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
2898
+ label: {
2899
+ type: import("vue").PropType<string>;
2900
+ } & {
2901
+ default: string;
2902
+ };
2903
+ id: {
2904
+ type: import("vue").PropType<string>;
2905
+ required: true;
2906
+ };
2907
+ position: {
2908
+ type: import("vue").PropType<("top" | "bottom") | ("right" | "left")>;
2909
+ } & {
2910
+ default: string;
2911
+ };
2912
+ }>> & {
2913
+ onChange?: ((value: string) => any) | undefined;
2914
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2915
+ change: (value: string) => void;
2916
+ }, string, {
2917
+ label: string;
2918
+ position: ("top" | "bottom") | ("right" | "left");
2919
+ }> & {
2920
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
2921
+ created?: ((() => void) | (() => void)[]) | undefined;
2922
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
2923
+ mounted?: ((() => void) | (() => void)[]) | undefined;
2924
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
2925
+ updated?: ((() => void) | (() => void)[]) | undefined;
2926
+ activated?: ((() => void) | (() => void)[]) | undefined;
2927
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
2928
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
2929
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
2930
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
2931
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
2932
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
2933
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
2934
+ 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;
2935
+ };
2936
+ $forceUpdate: () => void;
2937
+ $nextTick: typeof import("vue").nextTick;
2938
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
2939
+ } & Readonly<import("vue").ExtractPropTypes<{
2940
+ label: {
2941
+ type: import("vue").PropType<string>;
2942
+ } & {
2943
+ default: string;
2944
+ };
2945
+ id: {
2946
+ type: import("vue").PropType<string>;
2947
+ required: true;
2948
+ };
2949
+ position: {
2950
+ type: import("vue").PropType<("top" | "bottom") | ("right" | "left")>;
2951
+ } & {
2952
+ default: string;
2953
+ };
2954
+ }>> & {
2955
+ onChange?: ((value: string) => any) | undefined;
2956
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
2957
+ __isFragment?: undefined;
2958
+ __isTeleport?: undefined;
2959
+ __isSuspense?: undefined;
2960
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
2961
+ label: {
2962
+ type: import("vue").PropType<string>;
2963
+ } & {
2964
+ default: string;
2965
+ };
2966
+ id: {
2967
+ type: import("vue").PropType<string>;
2968
+ required: true;
2969
+ };
2970
+ position: {
2971
+ type: import("vue").PropType<("top" | "bottom") | ("right" | "left")>;
2972
+ } & {
2973
+ default: string;
2974
+ };
2975
+ }>> & {
2976
+ onChange?: ((value: string) => any) | undefined;
2977
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2978
+ change: (value: string) => void;
2979
+ }, string, {
2980
+ label: string;
2981
+ position: ("top" | "bottom") | ("right" | "left");
2982
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
2983
+ $slots: {
2984
+ label: (_: {}) => any;
2985
+ default: (_: {}) => any;
2986
+ };
2987
+ });
2988
+ SolMenuItemLink: {
2989
+ new (...args: any[]): {
2990
+ $: import("vue").ComponentInternalInstance;
2991
+ $data: {};
2992
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
2993
+ id: {
2994
+ type: import("vue").PropType<string>;
2995
+ required: true;
2996
+ };
2997
+ text: {
2998
+ type: import("vue").PropType<string>;
2999
+ };
3000
+ link: {
3001
+ type: import("vue").PropType<string>;
3002
+ };
3003
+ active: {
3004
+ type: import("vue").PropType<boolean>;
3005
+ };
3006
+ external: {
3007
+ type: import("vue").PropType<boolean>;
3008
+ };
3009
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
3010
+ $attrs: {
3011
+ [x: string]: unknown;
3012
+ };
3013
+ $refs: {
3014
+ [x: string]: unknown;
3015
+ };
3016
+ $slots: Readonly<{
3017
+ [name: string]: import("vue").Slot | undefined;
3018
+ }>;
3019
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
3020
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
3021
+ $emit: (event: string, ...args: any[]) => void;
3022
+ $el: any;
3023
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
3024
+ id: {
3025
+ type: import("vue").PropType<string>;
3026
+ required: true;
3027
+ };
3028
+ text: {
3029
+ type: import("vue").PropType<string>;
3030
+ };
3031
+ link: {
3032
+ type: import("vue").PropType<string>;
3033
+ };
3034
+ active: {
3035
+ type: import("vue").PropType<boolean>;
3036
+ };
3037
+ external: {
3038
+ type: import("vue").PropType<boolean>;
3039
+ };
3040
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
3041
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
3042
+ created?: ((() => void) | (() => void)[]) | undefined;
3043
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
3044
+ mounted?: ((() => void) | (() => void)[]) | undefined;
3045
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
3046
+ updated?: ((() => void) | (() => void)[]) | undefined;
3047
+ activated?: ((() => void) | (() => void)[]) | undefined;
3048
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
3049
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
3050
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
3051
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
3052
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
3053
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
3054
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
3055
+ 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;
3056
+ };
3057
+ $forceUpdate: () => void;
3058
+ $nextTick: typeof import("vue").nextTick;
3059
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
3060
+ } & Readonly<import("vue").ExtractPropTypes<{
3061
+ id: {
3062
+ type: import("vue").PropType<string>;
3063
+ required: true;
3064
+ };
3065
+ text: {
3066
+ type: import("vue").PropType<string>;
3067
+ };
3068
+ link: {
3069
+ type: import("vue").PropType<string>;
3070
+ };
3071
+ active: {
3072
+ type: import("vue").PropType<boolean>;
3073
+ };
3074
+ external: {
3075
+ type: import("vue").PropType<boolean>;
3076
+ };
3077
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
3078
+ __isFragment?: undefined;
3079
+ __isTeleport?: undefined;
3080
+ __isSuspense?: undefined;
3081
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
3082
+ id: {
3083
+ type: import("vue").PropType<string>;
3084
+ required: true;
3085
+ };
3086
+ text: {
3087
+ type: import("vue").PropType<string>;
3088
+ };
3089
+ link: {
3090
+ type: import("vue").PropType<string>;
3091
+ };
3092
+ active: {
3093
+ type: import("vue").PropType<boolean>;
3094
+ };
3095
+ external: {
3096
+ type: import("vue").PropType<boolean>;
3097
+ };
3098
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
3099
+ $slots: {
3100
+ default: (_: {
3101
+ id: string;
3102
+ active: boolean | undefined;
3103
+ link: string | undefined;
3104
+ text: string | undefined;
3105
+ external: boolean | undefined;
3106
+ }) => any;
3107
+ };
3108
+ });
2857
3109
  };
2858
3110
  export declare function install(App: App): void;
2859
- export { SolButton, SolButtonDestructive, SolInput, SolTextarea, SolTextfield, SolTextfieldPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolDropdown, SolSelect, SolChip, SolAccordion, };
3111
+ export { SolButton, SolButtonDestructive, SolInput, SolTextarea, SolTextfield, SolTextfieldPassword, SolRadio, SolRadioGroup, SolCheckbox, SolCheckboxGroup, SolSwitch, SolDropdown, SolSelect, SolChip, SolAccordion, SolMenu, SolMenuItemLink, };
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",
4
+ "version": "0.2.5",
5
5
  "authors": [
6
6
  {
7
7
  "name": "Kevin Martin",
package/theme/safelist.ts CHANGED
@@ -22,6 +22,8 @@ export function safelist({ activeSafeList = true, data }: Args): string[] {
22
22
  const colsSpan = range(14).map(i => `col-span-${i}`)
23
23
 
24
24
  return [
25
+ 'debug',
26
+ 'debug-all',
25
27
  ...colors,
26
28
  ...spacing,
27
29
  ...gaps,
@@ -1,8 +1,19 @@
1
+ import { sizings } from './spacing'
2
+
1
3
  export default {
2
4
  width: {
3
5
  'fit-content': 'fit-content',
6
+ ...sizings,
4
7
  },
5
-
8
+
9
+ height: sizings,
10
+ minHeight: sizings,
11
+ maxHeight: sizings,
12
+ minWidth: sizings,
13
+ maxWidth: sizings,
14
+
15
+ spacing: sizings,
16
+
6
17
  colors: {
7
18
  transparent: 'transparent',
8
19
  },
@@ -1,59 +1,36 @@
1
- export default {
2
- space: {
3
- 'nano': '0.25rem',
4
- 'micro': '0.5rem',
5
- '3xs': '0.75rem',
6
- '2xs': '1rem',
7
- 'xs': '1.5rem',
1
+ export const sizings = {
2
+ 'quark': '0.25rem',
3
+ 'nano': '0.5rem',
4
+ 'micro': '0.75rem',
5
+ '3xs': '1rem',
6
+ '2xs': '1.5rem',
7
+ 'xs': '2rem',
8
+
9
+ 'sm': '2.5rem',
10
+ 'md': '3rem',
11
+ 'lg': '3.5rem',
12
+
13
+ 'xl': '4rem',
14
+ '2xl': '4.5rem',
15
+ '3xl': '5rem',
16
+ 'mega': '6rem',
17
+ '2mega': '7.5rem',
18
+ '3mega': '10rem',
19
+ 'giga': '12.5rem',
20
+ }
8
21
 
9
- 'sm': '2rem',
10
- 'md': '2.5rem',
11
- 'lg': '3rem',
12
-
13
- 'xl': '4rem',
14
- '2xl': '5rem',
15
- '3xl': '6rem',
16
- 'mega': '7.5rem',
17
- 'huge': '10rem',
18
- 'giga': '12.5rem',
19
- },
20
22
 
23
+ export default {
21
24
  padding: {
22
- 'nano': '0.25rem',
23
- 'micro': '0.5rem',
24
- '3xs': '0.75rem',
25
- '2xs': '1rem',
26
- 'xs': '1.5rem',
27
-
28
- 'sm': '2rem',
29
- 'md': '2.5rem',
30
- 'lg': '3rem',
31
-
32
- 'xl': '4rem',
33
- '2xl': '5rem',
34
- '3xl': '6rem',
35
- 'mega': '7.5rem',
36
- 'huge': '10rem',
37
- 'giga': '12.5rem',
25
+ auto: 'auto',
26
+ '0': '0',
27
+ sizings,
38
28
  },
39
29
 
40
30
  margin: {
41
- 'nano': '0.25rem',
42
- 'micro': '0.5rem',
43
- '3xs': '0.75rem',
44
- '2xs': '1rem',
45
- 'xs': '1.5rem',
46
-
47
- 'sm': '2rem',
48
- 'md': '2.5rem',
49
- 'lg': '3rem',
50
-
51
- 'xl': '4rem',
52
- '2xl': '5rem',
53
- '3xl': '6rem',
54
- 'mega': '7.5rem',
55
- 'huge': '10rem',
56
- 'giga': '12.5rem',
31
+ auto: 'auto',
32
+ '0': '0',
33
+ sizings,
57
34
  },
58
35
  }
59
36
 
package/windi.config.ts CHANGED
@@ -4,6 +4,8 @@ import typography from 'windicss/plugin/typography'
4
4
 
5
5
  import { borders, colors, effects, misc, spacing, typography as typos, utilities } from './theme/solfacil/'
6
6
 
7
+ import { sizings } from './theme/solfacil/spacing'
8
+
7
9
  import { safelist } from './theme/safelist'
8
10
 
9
11
  export default defineConfig({
@@ -18,7 +20,7 @@ export default defineConfig({
18
20
  activeSafeList: true,
19
21
  data: {
20
22
  colors,
21
- spacing: spacing.space,
23
+ spacing: sizings,
22
24
  },
23
25
  }),
24
26
  ],