@solfacil/girassol 0.1.5 → 0.1.6
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/.vscode/extensions.json +2 -1
- package/cli/package.json +2 -12
- package/cli/yarn.lock +31 -2860
- package/dist/girassol.es.js +421 -299
- package/dist/girassol.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/index.d.ts +1 -0
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/types/components/forms/input/Input.vue.d.ts +3 -1
- package/dist/types/components/forms/select/Select.vue.d.ts +53 -0
- package/dist/types/components/forms/select/index.d.ts +2 -0
- package/dist/types/components/forms/select/select.spec.d.ts +1 -0
- package/dist/types/composables/use-toast/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/windi.config.d.ts +1 -1
- package/package.json +12 -12
- package/theme/solfacil/index.ts +2 -1
- package/theme/solfacil/utilities.ts +17 -0
- package/vite.config.ts +1 -1
- package/windi.config.ts +2 -1
- package/cli/__tests__/cli-integration.test.ts +0 -29
|
@@ -80,4 +80,21 @@ export const debug = plugin(({ addUtilities }) => {
|
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
82
|
})
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
export const placeholder = plugin(({ addUtilities, theme }) => {
|
|
86
|
+
const placeholderSettings = {
|
|
87
|
+
color: `${theme('colors.neutral.low.light')} !important`,
|
|
88
|
+
fontSize: `${theme('fonts.3xs')} !important`,
|
|
89
|
+
fontFamily: `${theme('fonts.base')} !important`,
|
|
90
|
+
lineHeight: `${theme('fonts.leading-xs')} !important`,
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
addUtilities({
|
|
94
|
+
'.placeholder': {
|
|
95
|
+
'&::placeholder': placeholderSettings,
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
'.placeholder-inline': placeholderSettings,
|
|
99
|
+
})
|
|
83
100
|
})
|
package/vite.config.ts
CHANGED
package/windi.config.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { defineConfig } from 'windicss/helpers'
|
|
|
2
2
|
|
|
3
3
|
import typography from 'windicss/plugin/typography'
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { borders, colors, effects, misc, spacing, typography as typos, utilities } from './theme/solfacil/'
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
darkMode: 'class',
|
|
@@ -16,6 +16,7 @@ export default defineConfig({
|
|
|
16
16
|
utilities.outlinesForFocus,
|
|
17
17
|
utilities.maxLines,
|
|
18
18
|
utilities.debug,
|
|
19
|
+
utilities.placeholder,
|
|
19
20
|
],
|
|
20
21
|
|
|
21
22
|
theme: {
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { system, filesystem } from 'gluegun'
|
|
2
|
-
|
|
3
|
-
const src = filesystem.path(__dirname, '..')
|
|
4
|
-
|
|
5
|
-
const cli = async (cmd) =>
|
|
6
|
-
system.run('node ' + filesystem.path(src, 'bin', 'girassol') + ` ${cmd}`)
|
|
7
|
-
|
|
8
|
-
test('outputs version', async () => {
|
|
9
|
-
const output = await cli('--version')
|
|
10
|
-
expect(output).toContain('0.0.1')
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
test('outputs help', async () => {
|
|
14
|
-
const output = await cli('--help')
|
|
15
|
-
expect(output).toContain('0.0.1')
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
test('generates file', async () => {
|
|
19
|
-
const output = await cli('generate foo')
|
|
20
|
-
|
|
21
|
-
expect(output).toContain('Generated file at models/foo-model.ts')
|
|
22
|
-
const foomodel = filesystem.read('models/foo-model.ts')
|
|
23
|
-
|
|
24
|
-
expect(foomodel).toContain(`module.exports = {`)
|
|
25
|
-
expect(foomodel).toContain(`name: 'foo'`)
|
|
26
|
-
|
|
27
|
-
// cleanup artifact
|
|
28
|
-
filesystem.remove('models')
|
|
29
|
-
})
|