@solfacil/girassol 0.18.0 → 0.19.1
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/dist/girassol.es.js +4330 -4256
- package/dist/girassol.umd.js +6 -6
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -0
- package/dist/types/components/accordion/Accordion.vue.d.ts +19 -76
- package/dist/types/components/alert/Alert.vue.d.ts +51 -0
- package/dist/types/components/{informations/alert → alert}/index.d.ts +0 -0
- package/dist/types/components/buttons/button/Button.vue.d.ts +53 -0
- package/dist/types/components/buttons/button-destructive/ButtonDestructive.vue.d.ts +39 -0
- package/dist/types/components/{forms/button → buttons}/index.d.ts +0 -0
- package/dist/types/components/chips/removable-chip/RemovableChip.vue.d.ts +49 -0
- package/dist/types/components/{filters/chip → chips}/removable-chip/index.d.ts +0 -0
- package/dist/types/components/{filters/chip → chips}/removable-chip/types.d.ts +0 -0
- package/dist/types/components/chips/selectable-chip/SelectableChip.vue.d.ts +51 -0
- package/dist/types/components/{filters/chip → chips}/selectable-chip/index.d.ts +0 -0
- package/dist/types/components/{filters/chip → chips}/selectable-chip/types.d.ts +0 -0
- package/dist/types/components/{filters/chip → chips}/types.d.ts +0 -0
- package/dist/types/components/collapsible/Collapsible.vue.d.ts +25 -90
- package/dist/types/components/empty-state/EmptyState.vue.d.ts +17 -74
- package/dist/types/components/file-upload/FileUpload.vue.d.ts +2 -2
- package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +37 -131
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +36 -135
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +3 -3
- package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +37 -131
- package/dist/types/components/forms/select/ListOption.vue.d.ts +18 -81
- package/dist/types/components/forms/select/Select.vue.d.ts +67 -218
- package/dist/types/components/forms/switch/Switch.vue.d.ts +2 -2
- package/dist/types/components/list/List.vue.d.ts +63 -174
- package/dist/types/components/list/ListItem.vue.d.ts +61 -132
- package/dist/types/components/list/ListItemTextValue.vue.d.ts +21 -82
- package/dist/types/components/menus/menu/Menu.vue.d.ts +35 -94
- package/dist/types/components/menus/menu-item/menu-item/MenuItem.vue.d.ts +13 -64
- package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +24 -85
- package/dist/types/components/menus/menu-navigation-links/MenuNavigationLinks.vue.d.ts +22 -69
- package/dist/types/components/modals/modal/Modal.vue.d.ts +44 -164
- package/dist/types/components/modals/onboarding/Onboarding.vue.d.ts +1 -1
- package/dist/types/components/search/Search.vue.d.ts +2 -2
- package/dist/types/components/tabs/TabItem.vue.d.ts +19 -70
- package/dist/types/components/tag/Tag.vue.d.ts +50 -0
- package/dist/types/components/{informations/tag → tag}/index.d.ts +0 -0
- package/dist/types/components/text-value/TextValue.vue.d.ts +45 -0
- package/dist/types/components/{informations/text-value → text-value}/index.d.ts +0 -0
- package/dist/types/components/{informations/text-value → text-value}/types.d.ts +0 -0
- package/dist/types/composables/use-toast/Toast.vue.d.ts +36 -133
- package/dist/types/index.d.ts +406 -406
- package/package.json +24 -23
- package/theme/safelist.ts +157 -21
- package/vite.config.ts +3 -1
- package/windi.config.ts +1 -1
- package/dist/cli/src/cli.d.ts +0 -1
- package/dist/cli/src/commands/create:component.d.ts +0 -1
- package/dist/cli/src/commands/generate:plugin.d.ts +0 -1
- package/dist/cli/src/commands/generate:types.d.ts +0 -7
- package/dist/cli/src/commands/girassol-cli.d.ts +0 -1
- package/dist/cli/src/extensions/cli-extension.d.ts +0 -1
- package/dist/cli/src/types.d.ts +0 -0
- package/dist/theme/solfacil/borders.d.ts +0 -18
- package/dist/theme/solfacil/colors.d.ts +0 -63
- package/dist/theme/solfacil/effects.d.ts +0 -17
- package/dist/theme/solfacil/index.d.ts +0 -18
- package/dist/theme/solfacil/miscs.d.ts +0 -144
- package/dist/theme/solfacil/screens.d.ts +0 -29
- package/dist/theme/solfacil/spacing.d.ts +0 -64
- package/dist/theme/solfacil/typography.d.ts +0 -41
- package/dist/theme/solfacil/utilities.d.ts +0 -8
- package/dist/types/components/accordion/accordion.spec.d.ts +0 -1
- package/dist/types/components/breadcrumb/breadcrumb.spec.d.ts +0 -1
- package/dist/types/components/collapsible/collapsible.spec.d.ts +0 -1
- package/dist/types/components/date-picker/datepicker.spec.d.ts +0 -1
- package/dist/types/components/empty-state/empty-state.spec.d.ts +0 -1
- package/dist/types/components/file-upload/file-upload.spec.d.ts +0 -1
- package/dist/types/components/filters/chip/removable-chip/RemovableChip.vue.d.ts +0 -120
- package/dist/types/components/filters/chip/removable-chip/removable-chip.spec.d.ts +0 -1
- package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +0 -125
- package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +0 -1
- package/dist/types/components/forms/button/button/Button.vue.d.ts +0 -122
- package/dist/types/components/forms/button/button/button.spec.d.ts +0 -1
- package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +0 -96
- package/dist/types/components/forms/checkbox/checkbox/checkbox.spec.d.ts +0 -1
- package/dist/types/components/forms/checkbox/checkbox-group/checkbox-group.spec.d.ts +0 -1
- package/dist/types/components/forms/inputs/input-core/input.spec.d.ts +0 -1
- package/dist/types/components/forms/inputs/input-password/input-password.spec.d.ts +0 -1
- package/dist/types/components/forms/inputs/input-text/input-text.spec.d.ts +0 -1
- package/dist/types/components/forms/inputs/input-textarea/textarea.spec.d.ts +0 -1
- package/dist/types/components/forms/radio/radio/radio.spec.d.ts +0 -1
- package/dist/types/components/forms/radio/radio-group/radio-group.spec.d.ts +0 -1
- package/dist/types/components/forms/select/select.spec.d.ts +0 -1
- package/dist/types/components/forms/switch/switch.spec.d.ts +0 -1
- package/dist/types/components/informations/alert/Alert.vue.d.ts +0 -126
- package/dist/types/components/informations/alert/alert.spec.d.ts +0 -1
- package/dist/types/components/informations/tag/Tag.vue.d.ts +0 -121
- package/dist/types/components/informations/tag/tag.spec.d.ts +0 -1
- package/dist/types/components/informations/text-value/TextValue.vue.d.ts +0 -104
- package/dist/types/components/informations/text-value/text-value.spec.d.ts +0 -1
- package/dist/types/components/list/list.spec.d.ts +0 -1
- package/dist/types/components/menus/menu/menu.spec.d.ts +0 -1
- package/dist/types/components/modals/modal/modal.spec.d.ts +0 -1
- package/dist/types/components/modals/onboarding/onboading.spec.d.ts +0 -1
- package/dist/types/components/pagination/pagination.spec.d.ts +0 -1
- package/dist/types/components/search/search.spec.d.ts +0 -1
- package/dist/types/components/steps/steps.spec.d.ts +0 -1
- package/dist/types/components/tabs/tabs.spec.d.ts +0 -1
- package/dist/types/composables/use-filters/use-filters.spec.d.ts +0 -1
- package/dist/types/composables/use-toast/use-toast.spec.d.ts +0 -1
- package/dist/vite-modules/generate-component-types.d.ts +0 -3
- package/dist/vite.config.d.ts +0 -2
- package/dist/windi.config.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solfacil/girassol",
|
|
3
3
|
"description": "Girassol design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"authors": [
|
|
7
7
|
{
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"types": "./dist/types/index.d.ts",
|
|
39
39
|
"scripts": {
|
|
40
|
-
"typecheck": "vue-tsc --noEmit",
|
|
40
|
+
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit",
|
|
41
41
|
"dev": "vite --port 3333 --host",
|
|
42
42
|
"build:lib": "vue-tsc --noEmit && vite build",
|
|
43
|
-
"build:lib:ts": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
|
|
43
|
+
"build:lib:ts": "vite build && vue-tsc -p tsconfig.app.json --emitDeclarationOnly && mv dist/src dist/types",
|
|
44
44
|
"preview": "vite preview",
|
|
45
45
|
"lint": "eslint src/ --resolve-plugins-relative-to .",
|
|
46
46
|
"lint:fix": "eslint src/ --fix --resolve-plugins-relative-to .",
|
|
@@ -60,49 +60,50 @@
|
|
|
60
60
|
"semantic-release": "semantic-release"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@vuepic/vue-datepicker": "^3.6.
|
|
63
|
+
"@vuepic/vue-datepicker": "^3.6.3",
|
|
64
64
|
"@vueuse/core": "^9.6.0",
|
|
65
65
|
"gluegun": "latest",
|
|
66
|
-
"maska": "^1.5.
|
|
66
|
+
"maska": "^1.5.2",
|
|
67
67
|
"vee-validate": "^4.7.3",
|
|
68
68
|
"vue": "^3.2.45"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@antfu/eslint-config": "^0.
|
|
71
|
+
"@antfu/eslint-config": "^0.34.0",
|
|
72
72
|
"@babel/core": "^7.20.5",
|
|
73
73
|
"@babel/preset-env": "^7.20.2",
|
|
74
74
|
"@commitlint/cli": "^17.3.0",
|
|
75
75
|
"@commitlint/config-conventional": "^17.3.0",
|
|
76
|
-
"@iconify/json": "^2.1.
|
|
76
|
+
"@iconify/json": "^2.1.151",
|
|
77
77
|
"@semantic-release/changelog": "^6.0.2",
|
|
78
78
|
"@semantic-release/git": "^10.0.1",
|
|
79
79
|
"@semantic-release/npm": "^9.0.1",
|
|
80
80
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
81
|
-
"@storybook/addon-a11y": "^6.5.
|
|
82
|
-
"@storybook/addon-actions": "^6.5.
|
|
83
|
-
"@storybook/addon-essentials": "^6.5.
|
|
84
|
-
"@storybook/addon-links": "^6.5.
|
|
81
|
+
"@storybook/addon-a11y": "^6.5.14",
|
|
82
|
+
"@storybook/addon-actions": "^6.5.14",
|
|
83
|
+
"@storybook/addon-essentials": "^6.5.14",
|
|
84
|
+
"@storybook/addon-links": "^6.5.14",
|
|
85
85
|
"@storybook/builder-vite": "^0.2.5",
|
|
86
|
-
"@storybook/theming": "^6.5.
|
|
87
|
-
"@storybook/vue3": "^6.5.
|
|
86
|
+
"@storybook/theming": "^6.5.14",
|
|
87
|
+
"@storybook/vue3": "^6.5.14",
|
|
88
88
|
"@testing-library/jest-dom": "^5.16.5",
|
|
89
89
|
"@testing-library/user-event": "^14.4.3",
|
|
90
90
|
"@testing-library/vue": "^6.6.1",
|
|
91
91
|
"@types/jest-axe": "^3.5.5",
|
|
92
92
|
"@types/node": "18.11.9",
|
|
93
|
-
"@
|
|
94
|
-
"@typescript-eslint/
|
|
93
|
+
"@types/react": "^16.0.0",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
95
|
+
"@typescript-eslint/parser": "^5.46.1",
|
|
95
96
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
96
97
|
"@vitest/coverage-c8": "^0.25.3",
|
|
97
98
|
"@vitest/ui": "^0.25.3",
|
|
98
99
|
"babel-loader": "^9.1.0",
|
|
99
100
|
"c8": "^7.12.0",
|
|
100
101
|
"cli-spinner": "^0.2.10",
|
|
101
|
-
"commitizen": "^4.2.
|
|
102
|
+
"commitizen": "^4.2.6",
|
|
102
103
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
103
104
|
"copyfiles": "^2.4.1",
|
|
104
105
|
"critters": "^0.0.16",
|
|
105
|
-
"eslint": "^8.
|
|
106
|
+
"eslint": "^8.29.0",
|
|
106
107
|
"eslint-config-prettier": "^8.5.0",
|
|
107
108
|
"eslint-plugin-html": "^7.1.0",
|
|
108
109
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -114,19 +115,19 @@
|
|
|
114
115
|
"sass": "^1.56.1",
|
|
115
116
|
"semantic-release": "^19.0.5",
|
|
116
117
|
"storybook-addon-designs": "^6.3.1",
|
|
117
|
-
"stylelint": "^14.
|
|
118
|
+
"stylelint": "^14.16.0",
|
|
118
119
|
"stylelint-config-prettier": "^9.0.4",
|
|
119
120
|
"stylelint-config-property-sort-order-smacss": "^9.0.0",
|
|
120
121
|
"stylelint-order": "^5.0.0",
|
|
121
122
|
"ts-node": "^10.9.1",
|
|
122
|
-
"typescript": "^4.9.
|
|
123
|
-
"unplugin-icons": "^0.14.
|
|
123
|
+
"typescript": "^4.9.4",
|
|
124
|
+
"unplugin-icons": "^0.14.15",
|
|
124
125
|
"vite": "^3.2.4",
|
|
125
|
-
"vite-plugin-inspect": "^0.7.
|
|
126
|
-
"vite-plugin-windicss": "^1.8.
|
|
126
|
+
"vite-plugin-inspect": "^0.7.10",
|
|
127
|
+
"vite-plugin-windicss": "^1.8.10",
|
|
127
128
|
"vitest": "^0.25.3",
|
|
128
129
|
"vue-loader": "^17.0.1",
|
|
129
|
-
"vue-tsc": "^1.0.
|
|
130
|
+
"vue-tsc": "^1.0.13",
|
|
130
131
|
"windicss": "^3.5.6"
|
|
131
132
|
},
|
|
132
133
|
"resolutions": {
|
package/theme/safelist.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
type Data = {
|
|
2
2
|
colors: Record<string, any>
|
|
3
3
|
spacing: Record<string, any>
|
|
4
|
+
effects: Record<string, any>
|
|
5
|
+
borders: Record<string, any>
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
type Args = {
|
|
@@ -10,18 +12,26 @@ type Args = {
|
|
|
10
12
|
|
|
11
13
|
export function safelist({ activeSafeList = true, data }: Args): string[] {
|
|
12
14
|
if (activeSafeList) {
|
|
13
|
-
const colors = data.colors
|
|
15
|
+
const colors = data.colors
|
|
16
|
+
? safelistElementColors(safelistColors(data.colors))
|
|
17
|
+
: []
|
|
14
18
|
const spacing = data.spacing ? safelistSpacing(data.spacing) : []
|
|
15
19
|
|
|
16
|
-
const
|
|
17
|
-
const gridRows = range(14).map(i => `grid-rows-${i}`)
|
|
18
|
-
const gridCols = range(14).map(i => `grid-cols-${i}`)
|
|
19
|
-
const rowsStart = range(14).map(i => `row-start-${i}`)
|
|
20
|
-
const colsStart = range(14).map(i => `col-start-${i}`)
|
|
21
|
-
const rowsSpan = range(14).map(i => `row-span-${i}`)
|
|
22
|
-
const colsSpan = range(14).map(i => `col-span-${i}`)
|
|
20
|
+
const effects = safelistEffects(data.effects)
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
const gaps = range(20).map((i) => `gap-${i}`)
|
|
23
|
+
const gridRows = range(14).map((i) => `grid-rows-${i}`)
|
|
24
|
+
const gridCols = range(14).map((i) => `grid-cols-${i}`)
|
|
25
|
+
const rowsStart = range(14).map((i) => `row-start-${i}`)
|
|
26
|
+
const colsStart = range(14).map((i) => `col-start-${i}`)
|
|
27
|
+
const rowsSpan = range(14).map((i) => `row-span-${i}`)
|
|
28
|
+
const colsSpan = range(14).map((i) => `col-span-${i}`)
|
|
29
|
+
|
|
30
|
+
const maxLines = range(10).map((i) => `max-lines-${i}`)
|
|
31
|
+
|
|
32
|
+
const borders = safelistBorders(data.borders.borderRadius, data.borders.borderWidth)
|
|
33
|
+
|
|
34
|
+
return [
|
|
25
35
|
'debug',
|
|
26
36
|
'debug-all',
|
|
27
37
|
...colors,
|
|
@@ -33,10 +43,14 @@ export function safelist({ activeSafeList = true, data }: Args): string[] {
|
|
|
33
43
|
...colsStart,
|
|
34
44
|
...rowsSpan,
|
|
35
45
|
...colsSpan,
|
|
46
|
+
...effects,
|
|
47
|
+
...maxLines,
|
|
48
|
+
...borders,
|
|
49
|
+
...safelistTypography(),
|
|
50
|
+
...safelistIconSizes(),
|
|
36
51
|
]
|
|
37
52
|
}
|
|
38
53
|
|
|
39
|
-
|
|
40
54
|
return []
|
|
41
55
|
}
|
|
42
56
|
|
|
@@ -63,9 +77,22 @@ export function safelistColors(colors: Data['colors']) {
|
|
|
63
77
|
}
|
|
64
78
|
|
|
65
79
|
export function safelistElementColors(colorsNames: string[]) {
|
|
66
|
-
const elements = [
|
|
80
|
+
const elements = [
|
|
81
|
+
'text',
|
|
82
|
+
'bg',
|
|
83
|
+
'outline',
|
|
84
|
+
'fill',
|
|
85
|
+
'stroke',
|
|
86
|
+
'border',
|
|
87
|
+
'shadow',
|
|
88
|
+
'text-decoration-color',
|
|
89
|
+
'text-stroke-color',
|
|
90
|
+
]
|
|
91
|
+
|
|
67
92
|
const elementColors: string[] = []
|
|
68
93
|
|
|
94
|
+
elements.forEach((element) => elementColors.push(`${element}-transparent`))
|
|
95
|
+
|
|
69
96
|
elements.forEach((element: string) => {
|
|
70
97
|
colorsNames.forEach((color: string) => {
|
|
71
98
|
elementColors.push(`${element}-${color}`)
|
|
@@ -75,19 +102,80 @@ export function safelistElementColors(colorsNames: string[]) {
|
|
|
75
102
|
return elementColors
|
|
76
103
|
}
|
|
77
104
|
|
|
105
|
+
export function safelistBorders(borderRadius: Data['spacing'], borderWidth: Data['spacing']): string[] {
|
|
106
|
+
const borderAxis = [
|
|
107
|
+
'border',
|
|
108
|
+
'border-a',
|
|
109
|
+
'border-x',
|
|
110
|
+
'border-y',
|
|
111
|
+
'border-l',
|
|
112
|
+
'border-r',
|
|
113
|
+
'border-t',
|
|
114
|
+
'border-b',
|
|
115
|
+
]
|
|
116
|
+
const borderWidthAxis = [
|
|
117
|
+
'rounded',
|
|
118
|
+
'rounded-x',
|
|
119
|
+
'rounded-y',
|
|
120
|
+
'rounded-l',
|
|
121
|
+
'rounded-r',
|
|
122
|
+
'rounded-t',
|
|
123
|
+
'rounded-b',
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
const elementsBorder: string[] = []
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
Object.keys(borderWidth).forEach((element: string) => {
|
|
130
|
+
borderAxis.forEach((axis) => {
|
|
131
|
+
elementsBorder.push(`${axis}-${element}`)
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
Object.keys(borderRadius).forEach((element: string) => {
|
|
136
|
+
borderWidthAxis.forEach((axis) => {
|
|
137
|
+
elementsBorder.push(`${axis}-${element}`)
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
return elementsBorder
|
|
142
|
+
}
|
|
78
143
|
|
|
79
144
|
export function safelistSpacing(spacing: Data['spacing']): string[] {
|
|
80
145
|
const spacingTokenNames = Object.keys(spacing)
|
|
81
146
|
const paddings = ['p', 'px', 'py', 'pl', 'pr', 'pt', 'pb']
|
|
82
147
|
const margins = ['m', 'mx', 'my', 'ml', 'mr', 'mt', 'mb']
|
|
83
148
|
|
|
84
|
-
const typos = [
|
|
149
|
+
const typos = [
|
|
150
|
+
'text',
|
|
151
|
+
'tracking',
|
|
152
|
+
'decoration',
|
|
153
|
+
'underline-offset',
|
|
154
|
+
'indent',
|
|
155
|
+
'text-stroke',
|
|
156
|
+
]
|
|
85
157
|
const svg = ['stroke']
|
|
86
|
-
const border = [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
158
|
+
const border = [
|
|
159
|
+
'border-a',
|
|
160
|
+
'border-x',
|
|
161
|
+
'border-y',
|
|
162
|
+
'border-l',
|
|
163
|
+
'border-r',
|
|
164
|
+
'border-t',
|
|
165
|
+
'border-b',
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
const staticTokens = ['w-full', 'h-full', 'w-fit-content']
|
|
169
|
+
|
|
170
|
+
const elements = [
|
|
171
|
+
...paddings,
|
|
172
|
+
...margins,
|
|
173
|
+
...typos,
|
|
174
|
+
...svg,
|
|
175
|
+
...border,
|
|
176
|
+
]
|
|
177
|
+
|
|
178
|
+
const elementSpacing: string[] = staticTokens
|
|
91
179
|
|
|
92
180
|
elements.forEach((element: string) => {
|
|
93
181
|
spacingTokenNames.forEach((space: string) => {
|
|
@@ -95,12 +183,60 @@ export function safelistSpacing(spacing: Data['spacing']): string[] {
|
|
|
95
183
|
})
|
|
96
184
|
})
|
|
97
185
|
|
|
98
|
-
margins.forEach(margin =>
|
|
99
|
-
paddings.forEach(padding =>
|
|
186
|
+
margins.forEach((margin) => elementSpacing.push(`${margin}-auto`))
|
|
187
|
+
paddings.forEach((padding) => elementSpacing.push(`${padding}-auto`))
|
|
100
188
|
|
|
101
189
|
return elementSpacing
|
|
102
190
|
}
|
|
103
191
|
|
|
104
192
|
export function range(size: number, startAt = 1) {
|
|
105
|
-
return Array.from(Array(size).keys()).map(i => i + startAt)
|
|
106
|
-
}
|
|
193
|
+
return Array.from(Array(size).keys()).map((i) => i + startAt)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function safelistEffects(effects: Data['effects']) {
|
|
197
|
+
const opacitiesPrefix = ['text', 'bg', 'shadow']
|
|
198
|
+
|
|
199
|
+
const opacities = Object.keys(effects.opacity).flatMap((opacity) =>
|
|
200
|
+
opacitiesPrefix.map((prefix) => `${prefix}-${opacity}`),
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
const shadows = Object.keys(effects.boxShadow).flatMap(
|
|
204
|
+
(shadow) => `shadow-${shadow}`,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
return [...opacities, ...shadows]
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function safelistIconSizes() {
|
|
211
|
+
return [
|
|
212
|
+
'icon-size-small',
|
|
213
|
+
'icon-size-medium',
|
|
214
|
+
'icon-size-large',
|
|
215
|
+
'icon-size-x-large',
|
|
216
|
+
'icon-size-giga',
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function safelistTypography() {
|
|
221
|
+
return [
|
|
222
|
+
'fonts-display-large',
|
|
223
|
+
'fonts-display-medium',
|
|
224
|
+
'fonts-display-small',
|
|
225
|
+
'fonts-heading-h1',
|
|
226
|
+
'fonts-heading-h2',
|
|
227
|
+
'fonts-heading-h3',
|
|
228
|
+
'fonts-heading-h4',
|
|
229
|
+
'fonts-body-x-large-regular',
|
|
230
|
+
'fonts-body-x-large-bold',
|
|
231
|
+
'fonts-body-large-regular',
|
|
232
|
+
'fonts-body-large-bold',
|
|
233
|
+
'fonts-body-medium-regular',
|
|
234
|
+
'fonts-body-medium-bold',
|
|
235
|
+
'fonts-body-small-regular',
|
|
236
|
+
'fonts-body-small-bold',
|
|
237
|
+
'fonts-link-inline-large',
|
|
238
|
+
'fonts-link-inline-medium',
|
|
239
|
+
'fonts-link-inline-small',
|
|
240
|
+
'fonts-overline-small',
|
|
241
|
+
]
|
|
242
|
+
}
|
package/vite.config.ts
CHANGED
package/windi.config.ts
CHANGED
package/dist/cli/src/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/cli/src/types.d.ts
DELETED
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
borderRadius: {
|
|
3
|
-
none: number;
|
|
4
|
-
sm: string;
|
|
5
|
-
md: string;
|
|
6
|
-
lg: string;
|
|
7
|
-
full: string;
|
|
8
|
-
half: string;
|
|
9
|
-
};
|
|
10
|
-
borderWidth: {
|
|
11
|
-
none: number;
|
|
12
|
-
xs: string;
|
|
13
|
-
sm: string;
|
|
14
|
-
md: string;
|
|
15
|
-
lg: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
brand: {
|
|
3
|
-
primary: {
|
|
4
|
-
pure: string;
|
|
5
|
-
light: string;
|
|
6
|
-
medium: string;
|
|
7
|
-
dark: string;
|
|
8
|
-
};
|
|
9
|
-
secondary: {
|
|
10
|
-
medium: string;
|
|
11
|
-
light: string;
|
|
12
|
-
pure: string;
|
|
13
|
-
dark: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
highlight: {
|
|
17
|
-
pure: string;
|
|
18
|
-
light: string;
|
|
19
|
-
medium: string;
|
|
20
|
-
dark: string;
|
|
21
|
-
};
|
|
22
|
-
neutral: {
|
|
23
|
-
low: {
|
|
24
|
-
pure: string;
|
|
25
|
-
light: string;
|
|
26
|
-
medium: string;
|
|
27
|
-
dark: string;
|
|
28
|
-
};
|
|
29
|
-
high: {
|
|
30
|
-
pure: string;
|
|
31
|
-
light: string;
|
|
32
|
-
medium: string;
|
|
33
|
-
dark: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
feedback: {
|
|
37
|
-
positive: {
|
|
38
|
-
pure: string;
|
|
39
|
-
light: string;
|
|
40
|
-
medium: string;
|
|
41
|
-
dark: string;
|
|
42
|
-
};
|
|
43
|
-
warning: {
|
|
44
|
-
pure: string;
|
|
45
|
-
light: string;
|
|
46
|
-
medium: string;
|
|
47
|
-
dark: string;
|
|
48
|
-
};
|
|
49
|
-
informative: {
|
|
50
|
-
pure: string;
|
|
51
|
-
light: string;
|
|
52
|
-
medium: string;
|
|
53
|
-
dark: string;
|
|
54
|
-
};
|
|
55
|
-
negative: {
|
|
56
|
-
pure: string;
|
|
57
|
-
light: string;
|
|
58
|
-
medium: string;
|
|
59
|
-
dark: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
opacity: {
|
|
3
|
-
DEFAULT: number;
|
|
4
|
-
semiopaque: number;
|
|
5
|
-
intense: number;
|
|
6
|
-
medium: number;
|
|
7
|
-
light: number;
|
|
8
|
-
none: number;
|
|
9
|
-
};
|
|
10
|
-
boxShadow: {
|
|
11
|
-
weak: string;
|
|
12
|
-
moderate: string;
|
|
13
|
-
intense: string;
|
|
14
|
-
strong: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import colors from './colors';
|
|
2
|
-
import typography from './typography';
|
|
3
|
-
import borders from './borders';
|
|
4
|
-
import spacing from './spacing';
|
|
5
|
-
import effects from './effects';
|
|
6
|
-
import misc from './miscs';
|
|
7
|
-
import { screens } from './screens';
|
|
8
|
-
export { colors, typography, spacing, borders, effects, misc, screens, };
|
|
9
|
-
export declare const utilities: {
|
|
10
|
-
componentTypos: import("windicss/types/interfaces").PluginOutput;
|
|
11
|
-
outlinesForFocus: import("windicss/types/interfaces").PluginOutput;
|
|
12
|
-
maxLines: import("windicss/types/interfaces").PluginOutput;
|
|
13
|
-
debug: import("windicss/types/interfaces").PluginOutput;
|
|
14
|
-
placeholder: import("windicss/types/interfaces").PluginOutput;
|
|
15
|
-
scrollbarBase: import("windicss/types/interfaces").PluginOutput;
|
|
16
|
-
iconSizes: import("windicss/types/interfaces").PluginOutput;
|
|
17
|
-
resetFillFields: import("windicss/types/interfaces").PluginOutput;
|
|
18
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
width: {
|
|
3
|
-
quark: string;
|
|
4
|
-
nano: string;
|
|
5
|
-
micro: string;
|
|
6
|
-
'4xs': string;
|
|
7
|
-
'3xs': string;
|
|
8
|
-
'2xs': string;
|
|
9
|
-
xs: string;
|
|
10
|
-
sm: string;
|
|
11
|
-
md: string;
|
|
12
|
-
lg: string;
|
|
13
|
-
xl: string;
|
|
14
|
-
'2xl': string;
|
|
15
|
-
'3xl': string;
|
|
16
|
-
mega: string;
|
|
17
|
-
'2mega': string;
|
|
18
|
-
'3mega': string;
|
|
19
|
-
giga: string;
|
|
20
|
-
'fit-content': string;
|
|
21
|
-
};
|
|
22
|
-
height: {
|
|
23
|
-
quark: string;
|
|
24
|
-
nano: string;
|
|
25
|
-
micro: string;
|
|
26
|
-
'4xs': string;
|
|
27
|
-
'3xs': string;
|
|
28
|
-
'2xs': string;
|
|
29
|
-
xs: string;
|
|
30
|
-
sm: string;
|
|
31
|
-
md: string;
|
|
32
|
-
lg: string;
|
|
33
|
-
xl: string;
|
|
34
|
-
'2xl': string;
|
|
35
|
-
'3xl': string;
|
|
36
|
-
mega: string;
|
|
37
|
-
'2mega': string;
|
|
38
|
-
'3mega': string;
|
|
39
|
-
giga: string;
|
|
40
|
-
};
|
|
41
|
-
minHeight: {
|
|
42
|
-
quark: string;
|
|
43
|
-
nano: string;
|
|
44
|
-
micro: string;
|
|
45
|
-
'4xs': string;
|
|
46
|
-
'3xs': string;
|
|
47
|
-
'2xs': string;
|
|
48
|
-
xs: string;
|
|
49
|
-
sm: string;
|
|
50
|
-
md: string;
|
|
51
|
-
lg: string;
|
|
52
|
-
xl: string;
|
|
53
|
-
'2xl': string;
|
|
54
|
-
'3xl': string;
|
|
55
|
-
mega: string;
|
|
56
|
-
'2mega': string;
|
|
57
|
-
'3mega': string;
|
|
58
|
-
giga: string;
|
|
59
|
-
};
|
|
60
|
-
maxHeight: {
|
|
61
|
-
quark: string;
|
|
62
|
-
nano: string;
|
|
63
|
-
micro: string;
|
|
64
|
-
'4xs': string;
|
|
65
|
-
'3xs': string;
|
|
66
|
-
'2xs': string;
|
|
67
|
-
xs: string;
|
|
68
|
-
sm: string;
|
|
69
|
-
md: string;
|
|
70
|
-
lg: string;
|
|
71
|
-
xl: string;
|
|
72
|
-
'2xl': string;
|
|
73
|
-
'3xl': string;
|
|
74
|
-
mega: string;
|
|
75
|
-
'2mega': string;
|
|
76
|
-
'3mega': string;
|
|
77
|
-
giga: string;
|
|
78
|
-
};
|
|
79
|
-
minWidth: {
|
|
80
|
-
quark: string;
|
|
81
|
-
nano: string;
|
|
82
|
-
micro: string;
|
|
83
|
-
'4xs': string;
|
|
84
|
-
'3xs': string;
|
|
85
|
-
'2xs': string;
|
|
86
|
-
xs: string;
|
|
87
|
-
sm: string;
|
|
88
|
-
md: string;
|
|
89
|
-
lg: string;
|
|
90
|
-
xl: string;
|
|
91
|
-
'2xl': string;
|
|
92
|
-
'3xl': string;
|
|
93
|
-
mega: string;
|
|
94
|
-
'2mega': string;
|
|
95
|
-
'3mega': string;
|
|
96
|
-
giga: string;
|
|
97
|
-
};
|
|
98
|
-
maxWidth: {
|
|
99
|
-
quark: string;
|
|
100
|
-
nano: string;
|
|
101
|
-
micro: string;
|
|
102
|
-
'4xs': string;
|
|
103
|
-
'3xs': string;
|
|
104
|
-
'2xs': string;
|
|
105
|
-
xs: string;
|
|
106
|
-
sm: string;
|
|
107
|
-
md: string;
|
|
108
|
-
lg: string;
|
|
109
|
-
xl: string;
|
|
110
|
-
'2xl': string;
|
|
111
|
-
'3xl': string;
|
|
112
|
-
mega: string;
|
|
113
|
-
'2mega': string;
|
|
114
|
-
'3mega': string;
|
|
115
|
-
giga: string;
|
|
116
|
-
};
|
|
117
|
-
spacing: {
|
|
118
|
-
quark: string;
|
|
119
|
-
nano: string;
|
|
120
|
-
micro: string;
|
|
121
|
-
'4xs': string;
|
|
122
|
-
'3xs': string;
|
|
123
|
-
'2xs': string;
|
|
124
|
-
xs: string;
|
|
125
|
-
sm: string;
|
|
126
|
-
md: string;
|
|
127
|
-
lg: string;
|
|
128
|
-
xl: string;
|
|
129
|
-
'2xl': string;
|
|
130
|
-
'3xl': string;
|
|
131
|
-
mega: string;
|
|
132
|
-
'2mega': string;
|
|
133
|
-
'3mega': string;
|
|
134
|
-
giga: string;
|
|
135
|
-
};
|
|
136
|
-
colors: {
|
|
137
|
-
transparent: string;
|
|
138
|
-
};
|
|
139
|
-
outline: {
|
|
140
|
-
focused: string;
|
|
141
|
-
'focused-invert': string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const screens: {
|
|
2
|
-
'xsm:site': {
|
|
3
|
-
max: string;
|
|
4
|
-
};
|
|
5
|
-
'sm:site': {
|
|
6
|
-
min: string;
|
|
7
|
-
};
|
|
8
|
-
'md:site': {
|
|
9
|
-
min: string;
|
|
10
|
-
};
|
|
11
|
-
'lg:site': {
|
|
12
|
-
min: string;
|
|
13
|
-
};
|
|
14
|
-
'xlg:site': {
|
|
15
|
-
min: string;
|
|
16
|
-
};
|
|
17
|
-
'xsm:system': {
|
|
18
|
-
max: string;
|
|
19
|
-
};
|
|
20
|
-
'sm:system': {
|
|
21
|
-
min: string;
|
|
22
|
-
};
|
|
23
|
-
'md:system': {
|
|
24
|
-
min: string;
|
|
25
|
-
};
|
|
26
|
-
'lg:system': {
|
|
27
|
-
min: string;
|
|
28
|
-
};
|
|
29
|
-
};
|