lapikit 0.5.0 → 0.5.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/bin/{helper.js → helpers.js} +41 -0
- package/bin/hooks.js +68 -0
- package/bin/index.js +30 -6
- package/dist/components/accordion/accordion.svelte +6 -19
- package/dist/components/accordion/accordion.types.d.ts +0 -4
- package/dist/components/accordion/modules/accordion-item.svelte +8 -24
- package/dist/components/alert/alert.svelte +3 -10
- package/dist/components/app/app.svelte +4 -51
- package/dist/components/appbar/appbar.svelte +12 -27
- package/dist/components/appbar/appbar.types.d.ts +1 -3
- package/dist/components/avatar/avatar.svelte +22 -12
- package/dist/components/btn/btn.svelte +71 -89
- package/dist/components/card/card.svelte +31 -44
- package/dist/components/chip/chip.svelte +57 -66
- package/dist/components/dropdown/dropdown.svelte +8 -23
- package/dist/components/dropdown/dropdown.types.d.ts +0 -2
- package/dist/components/list/list.svelte +44 -24
- package/dist/components/list/modules/list-item.svelte +10 -10
- package/dist/components/popover/popover.svelte +8 -23
- package/dist/components/popover/popover.types.d.ts +0 -2
- package/dist/components/separator/separator.svelte +0 -12
- package/dist/components/separator/separator.types.d.ts +0 -2
- package/dist/components/textfield/textfield.svelte +10 -25
- package/dist/components/textfield/textfield.types.d.ts +0 -2
- package/dist/components/toolbar/toolbar.svelte +12 -27
- package/dist/components/toolbar/toolbar.types.d.ts +0 -2
- package/dist/components/tooltip/tooltip.svelte +12 -27
- package/dist/components/tooltip/tooltip.types.d.ts +0 -2
- package/package.json +2 -5
- package/bin/configuration.js +0 -303
- package/bin/presets.js +0 -26
- package/bin/prompts.js +0 -67
package/bin/prompts.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import prompts from 'prompts';
|
|
3
|
-
import { terminal } from './helper.js';
|
|
4
|
-
|
|
5
|
-
export async function initPrompts() {
|
|
6
|
-
const { confirm } = await prompts({
|
|
7
|
-
type: 'toggle',
|
|
8
|
-
name: 'confirm',
|
|
9
|
-
message: 'Launch install Lapikit on your project?',
|
|
10
|
-
initial: true,
|
|
11
|
-
active: 'Yes',
|
|
12
|
-
inactive: 'No'
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
if (!confirm) {
|
|
16
|
-
terminal('warn', `installation canceled.`);
|
|
17
|
-
process.exit(0);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Preview install
|
|
21
|
-
const settings = await prompts([
|
|
22
|
-
{
|
|
23
|
-
type: 'text',
|
|
24
|
-
name: 'pathConfig',
|
|
25
|
-
message: 'Where would you like to install the lapikit configuration files?',
|
|
26
|
-
initial: 'src/plugins',
|
|
27
|
-
validate: (value) =>
|
|
28
|
-
value.startsWith('src/') ? true : 'Please provide a valid path starting with src/'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: 'toggle',
|
|
32
|
-
name: 'typescript',
|
|
33
|
-
message: 'Use TypeScript?',
|
|
34
|
-
initial: true,
|
|
35
|
-
active: 'Yes',
|
|
36
|
-
inactive: 'No'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'select',
|
|
40
|
-
name: 'formatCSS',
|
|
41
|
-
message: 'What is your CSS format used on your app?',
|
|
42
|
-
choices: [
|
|
43
|
-
{ title: 'Basic (classic import)', value: 'css' },
|
|
44
|
-
{
|
|
45
|
-
title: 'TailwindCSS (v4)',
|
|
46
|
-
value: 'tailwind-v4'
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: 'UnoCSS',
|
|
50
|
-
value: 'unocss'
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: (prev) => (prev !== 'css' ? 'text' : null),
|
|
56
|
-
name: 'pathCSS',
|
|
57
|
-
message: 'Where would you like to import the lapikit CSS files?',
|
|
58
|
-
initial: 'src/app.css',
|
|
59
|
-
validate: (value) =>
|
|
60
|
-
value.startsWith('src/') ? true : 'Please provide a valid path starting with src/'
|
|
61
|
-
}
|
|
62
|
-
]);
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
...settings
|
|
66
|
-
};
|
|
67
|
-
}
|