@solfacil/girassol 0.1.11 → 0.2.0

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.
Files changed (33) hide show
  1. package/dist/README.md.d.ts +2 -0
  2. package/dist/cli/readme.md.d.ts +2 -0
  3. package/dist/girassol.es.js +521 -240
  4. package/dist/girassol.umd.js +5 -22
  5. package/dist/style.css +1 -1
  6. package/dist/theme/solfacil/colors.d.ts +23 -5
  7. package/dist/theme/solfacil/effects.d.ts +5 -3
  8. package/dist/theme/solfacil/typography.d.ts +1 -2
  9. package/dist/types/components/accordion/Accordion.vue.d.ts +75 -10
  10. package/dist/types/components/dropdown/Dropdown.vue.d.ts +188 -31
  11. package/dist/types/components/forms/button/Button.vue.d.ts +86 -12
  12. package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +77 -11
  13. package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +114 -19
  14. package/dist/types/components/forms/input/Input.vue.d.ts +76 -10
  15. package/dist/types/components/forms/radio/Radio.vue.d.ts +77 -11
  16. package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +114 -19
  17. package/dist/types/components/forms/select/ListOption.vue.d.ts +149 -0
  18. package/dist/types/components/forms/select/Select.vue.d.ts +298 -27
  19. package/dist/types/components/forms/switch/Switch.vue.d.ts +83 -13
  20. package/dist/types/components/forms/textarea/Textarea.vue.d.ts +107 -18
  21. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +100 -16
  22. package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +71 -9
  23. package/dist/types/components/informations/chip/Chip.vue.d.ts +94 -15
  24. package/dist/types/composables/use-toast/Toast.vue.d.ts +130 -24
  25. package/dist/types/composables/use-toast/index.d.ts +1 -1
  26. package/dist/types/index.d.ts +2303 -456
  27. package/dist/windi.config.d.ts +1 -1
  28. package/package.json +30 -30
  29. package/theme/solfacil/borders.ts +2 -1
  30. package/theme/solfacil/colors.ts +36 -23
  31. package/theme/solfacil/effects.ts +6 -4
  32. package/theme/solfacil/typography.ts +2 -4
  33. package/windi.config.ts +31 -1
@@ -1,2 +1,2 @@
1
- declare const _default: import("windicss/types/interfaces").FullConfig;
1
+ declare const _default: import("vite-plugin-windicss").WindiCssOptions;
2
2
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solfacil/girassol",
3
3
  "description": "Girassol design system",
4
- "version": "0.1.11",
4
+ "version": "0.2.0",
5
5
  "authors": [
6
6
  {
7
7
  "name": "Kevin Martin",
@@ -57,31 +57,31 @@
57
57
  "pre-commit": "./.husky/run-staged-tests.js"
58
58
  },
59
59
  "dependencies": {
60
- "@vueuse/core": "^8.6.0",
60
+ "@vueuse/core": "^8.7.5",
61
61
  "gluegun": "latest",
62
62
  "vue": "^3.2.37"
63
63
  },
64
64
  "devDependencies": {
65
- "@antfu/eslint-config": "^0.25.1",
66
- "@babel/core": "^7.18.2",
67
- "@babel/preset-env": "^7.18.2",
68
- "@commitlint/cli": "^17.0.2",
69
- "@commitlint/config-conventional": "^17.0.2",
70
- "@iconify/json": "^2.1.58",
71
- "@storybook/addon-a11y": "^6.5.8",
72
- "@storybook/addon-actions": "^6.5.8",
73
- "@storybook/addon-essentials": "^6.5.8",
74
- "@storybook/addon-links": "^6.5.8",
75
- "@storybook/builder-vite": "^0.1.36",
76
- "@storybook/theming": "^6.5.8",
77
- "@storybook/vue3": "^6.5.8",
65
+ "@antfu/eslint-config": "^0.25.2",
66
+ "@babel/core": "^7.18.6",
67
+ "@babel/preset-env": "^7.18.6",
68
+ "@commitlint/cli": "^17.0.3",
69
+ "@commitlint/config-conventional": "^17.0.3",
70
+ "@iconify/json": "^2.1.70",
71
+ "@storybook/addon-a11y": "^6.5.9",
72
+ "@storybook/addon-actions": "^6.5.9",
73
+ "@storybook/addon-essentials": "^6.5.9",
74
+ "@storybook/addon-links": "^6.5.9",
75
+ "@storybook/builder-vite": "^0.1.38",
76
+ "@storybook/theming": "^6.5.9",
77
+ "@storybook/vue3": "^6.5.9",
78
78
  "@testing-library/jest-dom": "^5.16.4",
79
- "@testing-library/user-event": "^14.2.0",
79
+ "@testing-library/user-event": "^14.2.1",
80
80
  "@testing-library/vue": "^6.6.0",
81
- "@types/jest-axe": "^3.5.3",
81
+ "@types/jest-axe": "^3.5.4",
82
82
  "@types/node": "^17.0.41",
83
- "@typescript-eslint/eslint-plugin": "^5.27.1",
84
- "@typescript-eslint/parser": "^5.27.1",
83
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
84
+ "@typescript-eslint/parser": "^5.30.0",
85
85
  "@vitejs/plugin-vue": "^2.3.3",
86
86
  "babel-loader": "^8.2.5",
87
87
  "c8": "^7.11.3",
@@ -89,31 +89,31 @@
89
89
  "commitizen": "^4.2.4",
90
90
  "copyfiles": "^2.4.1",
91
91
  "critters": "^0.0.16",
92
- "eslint": "^8.17.0",
92
+ "eslint": "^8.18.0",
93
93
  "eslint-config-prettier": "^8.5.0",
94
94
  "eslint-plugin-html": "^6.2.0",
95
- "eslint-plugin-prettier": "^4.0.0",
95
+ "eslint-plugin-prettier": "^4.2.1",
96
96
  "eslint-plugin-vue": "^8.7.1",
97
97
  "eslint-plugin-vuejs-accessibility": "^1.2.0",
98
98
  "husky": "^8.0.1",
99
99
  "jest-axe": "^5.0.1",
100
- "jsdom": "^19.0.0",
100
+ "jsdom": "^20.0.0",
101
101
  "sass": "^1.50.0",
102
- "storybook-addon-designs": "^6.2.1",
103
- "stylelint": "^14.9.0",
102
+ "storybook-addon-designs": "^6.3.1",
103
+ "stylelint": "^14.9.1",
104
104
  "stylelint-config-prettier": "^9.0.3",
105
105
  "stylelint-config-property-sort-order-smacss": "^9.0.0",
106
106
  "stylelint-order": "^5.0.0",
107
107
  "ts-node": "^10.8.1",
108
- "typescript": "^4.6.3",
109
- "unplugin-icons": "^0.14.3",
108
+ "typescript": "^4.7.4",
109
+ "unplugin-icons": "^0.14.7",
110
110
  "vite": "^2.9.13",
111
- "vite-plugin-inspect": "^0.5.0",
112
- "vite-plugin-windicss": "^1.8.4",
111
+ "vite-plugin-inspect": "^0.5.1",
112
+ "vite-plugin-windicss": "^1.8.6",
113
113
  "vitest": "^0.16.0",
114
114
  "vue-loader": "^17.0.0",
115
- "vue-tsc": "^0.34.15",
116
- "windicss": "^3.5.4"
115
+ "vue-tsc": "^0.38.2",
116
+ "windicss": "^3.5.6"
117
117
  },
118
118
  "repository": {
119
119
  "type": "git",
@@ -4,7 +4,8 @@ export default {
4
4
  sm: '0.25rem',
5
5
  md: '0.5rem',
6
6
  lg: '1rem',
7
- full: '40rem',
7
+ full: '80rem',
8
+
8
9
  half: '50%',
9
10
  fully: '100%',
10
11
  },
@@ -1,43 +1,56 @@
1
1
  export default {
2
2
  brand: {
3
3
  primary: {
4
- light: '#FFF8EB',
5
- medium: '#FFCD70',
6
- pure: '#FFB01F',
4
+ medium: '#BFFF00',
5
+ light: '#EFFFC1',
6
+ pure: '#00B569',
7
+ dark: '#008859',
7
8
  },
8
9
  },
9
-
10
+ highlight: {
11
+ pure: '#8250DF',
12
+ light: '#E6DCF9',
13
+ medium: '#C0A7EF',
14
+ dark: '#342059',
15
+ },
10
16
  neutral: {
11
17
  low: {
12
- light: '#8f8f8f',
13
- medium: '#525252',
14
- pure: '#292929',
18
+ pure: '#000000',
19
+ light: '#888888',
20
+ medium: '#555555',
21
+ dark: '#222222',
15
22
  },
16
-
17
23
  high: {
18
- light: '#FFFFFF',
19
- medium: '#F5F5F5',
20
- pure: '#E0E0E0',
24
+ pure: '#ffffff',
25
+ light: '#F5f5f5',
26
+ medium: '#e0e0e0',
27
+ dark: '#cccccc',
21
28
  },
22
29
  },
23
-
24
30
  feedback: {
25
31
  positive: {
26
- light: '#eefbf6',
27
- medium: '#8ae5bf',
28
- pure: '#47d79a',
32
+ pure: '#1CA36F',
33
+ light: '#D2EDE2',
34
+ medium: '#8DD1B7',
35
+ dark: '#0B412C',
36
+ },
37
+ warning: {
38
+ pure: '#FFB300',
39
+ light: '#FFF0CC',
40
+ medium: '#FFD97F',
41
+ dark: '#664800',
29
42
  },
30
-
31
43
  informative: {
32
- light: '#ebf8ff',
33
- medium: '#70cbff',
34
- pure: '#1faeff',
44
+ pure: '#1976D2',
45
+ light: '#D1E4F6',
46
+ medium: '#8CBAE8',
47
+ dark: '#0A2F54',
35
48
  },
36
-
37
49
  negative: {
38
- light: '#ffebeb',
39
- medium: '#ff7470',
40
- pure: '#ff251f',
50
+ pure: '#D0382D',
51
+ light: '#F6D7D5',
52
+ medium: '#E79B96',
53
+ dark: '#531612',
41
54
  },
42
55
  },
43
56
  }
@@ -1,15 +1,17 @@
1
1
  export default {
2
- opacity: {
2
+ opacity: {
3
3
  'DEFAULT': 1,
4
4
 
5
5
  strong: 0.8,
6
+ intense: 0.6,
6
7
  moderate: 0.32,
7
8
  weak: 0.16,
8
9
  },
9
10
 
10
11
  boxShadow: {
11
- soft: '0px 8px 16px rgba(41, 41, 41, 0.08)',
12
- medium: '0px 12px 24px rgba(41, 41, 41, 0.16)',
13
- large: '0px 16px 64px rgba(41, 41, 41, 0.24)',
12
+ weak: '0px 4px 8px rgba(41, 41, 41, 0.08)',
13
+ moderate: '0px 8px 24px rgba(41, 41, 41, 0.16)',
14
+ intense: '0px 16px 32px rgba(41, 41, 41, 0.24)',
15
+ strong: '0px 16px 48px rgba(41, 41, 41, 0.24)',
14
16
  },
15
17
  }
@@ -1,10 +1,8 @@
1
1
  export default {
2
2
  fontFamily: {
3
3
  sans: ['"Lato"', 'sans-serif'],
4
-
5
4
  base: ['"Lato"', 'sans-serif'],
6
- highlight: ['"Rubik"'],
7
- code: ['"Roboto Slab", "serif"'],
5
+ title: ['"Rubik"'],
8
6
  },
9
7
 
10
8
  fontSize: {
@@ -21,7 +19,7 @@ export default {
21
19
  '2xl': '3.5rem',
22
20
  '3xl': '4rem',
23
21
  'mega': '4.5rem',
24
- 'giga': '5.5rem',
22
+ 'giga': '5rem',
25
23
  },
26
24
 
27
25
  lineHeight: {
package/windi.config.ts CHANGED
@@ -4,13 +4,43 @@ 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
+ function range(size: number, startAt = 1) {
8
+ return Array.from(Array(size).keys()).map(i => i + startAt)
9
+ }
10
+
7
11
  export default defineConfig({
8
12
  darkMode: 'class',
9
13
  attributify: false,
10
14
  extract: {
11
- include: ['index.html', 'src/**/*'],
15
+ include: ['index.html', 'src/**/*', '*.mdx', '*.vue'],
12
16
  },
13
17
 
18
+ safelist: [
19
+ 'p-nano',
20
+ 'p-micro',
21
+ 'p-3xs',
22
+ 'p-2xs',
23
+ 'p-xs',
24
+ 'p-sm',
25
+ 'p-md',
26
+ 'p-lg',
27
+ 'm-nano',
28
+ 'm-micro',
29
+ 'm-3xs',
30
+ 'm-2xs',
31
+ 'm-xs',
32
+ 'm-sm',
33
+ 'm-md',
34
+ 'm-lg',
35
+ range(30).map(i => `grid-rows-${i}`),
36
+ range(30).map(i => `grid-cols-${i}`),
37
+ range(10).map(i => `gap-${i}`),
38
+ range(30).map(i => `row-start-${i}`),
39
+ range(30).map(i => `col-start-${i}`),
40
+ range(30).map(i => `row-span-${i}`),
41
+ range(30).map(i => `col-span-${i}`),
42
+ ],
43
+
14
44
  plugins: [
15
45
  typography(),
16
46
  utilities.outlinesForFocus,