bonkers-ui 1.0.3 → 1.0.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/.storybook/preview.js +1 -2
- package/package.json +3 -3
- package/src/{_colors.json → _styles/classTypes/_colors.json} +2 -2
- package/src/{_font-sizes.json → _styles/classTypes/_font-sizes.json} +1 -1
- package/src/{_shadow.json → _styles/classTypes/_shadow.json} +1 -1
- package/src/{_spacing.json → _styles/classTypes/_spacing.json} +1 -0
- package/src/_styles/{colors.css → variables/colors.css} +0 -0
- package/src/_styles/{font-sizes.css → variables/font-sizes.css} +1 -1
- package/src/_styles/variables/shadow.css +8 -0
- package/src/_styles/{spacing.css → variables/spacing.css} +1 -0
- package/src/components/ui-badge/_typings.ts +11 -0
- package/src/components/ui-badge/index.ts +2 -0
- package/src/components/ui-badge/ui-badge.stories.ts +45 -0
- package/src/components/ui-badge/ui-badge.vue +59 -0
- package/src/components/ui-ber-rank/index.ts +1 -0
- package/src/components/ui-ber-rank/ui-ber-rank.stories.ts +34 -0
- package/src/components/ui-ber-rank/ui-ber-rank.vue +142 -0
- package/src/components/ui-button/ui-button.stories.ts +26 -5
- package/src/components/ui-button/ui-button.vue +34 -6
- package/src/components/ui-card-cta/ui-card-cta.stories.ts +3 -8
- package/src/components/ui-card-cta/ui-card-cta.vue +6 -10
- package/src/components/ui-card-result/index.ts +1 -0
- package/src/components/ui-card-result/ui-card-result.stories.ts +107 -0
- package/src/components/ui-card-result/ui-card-result.vue +70 -0
- package/src/components/ui-card-simple/ui-card-simple.stories.ts +1 -1
- package/src/components/ui-card-simple/ui-card-simple.vue +1 -1
- package/src/components/ui-checkbox/ui-checkbox.stories.ts +1 -1
- package/src/components/ui-checkbox/ui-checkbox.vue +1 -1
- package/src/components/ui-icon/ui-icon.stories.ts +2 -2
- package/src/components/ui-icon/ui-icon.vue +1 -1
- package/src/components/ui-input/_typings.ts +0 -2
- package/src/components/ui-input/ui-input.stories.ts +9 -3
- package/src/components/ui-input/ui-input.vue +49 -20
- package/src/components/ui-input-range/index.ts +1 -0
- package/src/components/ui-input-range/ui-input-range.stories.ts +48 -0
- package/src/components/ui-input-range/ui-input-range.vue +62 -0
- package/src/components/ui-list-item/index.ts +1 -0
- package/src/components/ui-list-item/ui-list-item.stories.ts +40 -0
- package/src/components/ui-list-item/ui-list-item.vue +29 -0
- package/src/components/ui-radio/ui-radio.stories.ts +8 -3
- package/src/components/ui-radio/ui-radio.vue +36 -3
- package/src/components/ui-radio-list-fancy/ui-radio-item/ui-radio-item.vue +4 -4
- package/src/components/ui-radio-list-fancy/ui-radio-list-fancy.stories.ts +1 -1
- package/src/components/ui-ripple/ui-ripple.stories.ts +1 -1
- package/src/components/ui-ripple/ui-ripple.vue +2 -2
- package/src/components/ui-select/index.ts +1 -0
- package/src/components/ui-select/ui-select.stories.ts +45 -0
- package/src/components/ui-select/ui-select.vue +68 -0
- package/src/components/ui-tabs/index.ts +1 -0
- package/src/components/ui-tabs/ui-tabs.stories.ts +32 -0
- package/src/components/ui-tabs/ui-tabs.vue +58 -0
- package/src/components/ui-toggle/index.ts +1 -0
- package/src/components/ui-toggle/ui-toggle.stories.ts +43 -0
- package/src/components/ui-toggle/ui-toggle.vue +129 -0
- package/src/components/ui-typography/_typings.ts +5 -31
- package/src/components/ui-typography/index.ts +1 -1
- package/src/components/ui-typography/ui-typography.stories.ts +7 -2
- package/src/components/ui-typography/ui-typography.vue +4 -3
- package/src/components/ui-verification-input/ui-verification-input.stories.ts +1 -2
- package/src/components/ui-verification-input/ui-verification-input.vue +2 -2
- package/src/main.css +6 -5
- package/src/stories/colors/ui-colors.vue +1 -1
- package/src/stories/font-sizes/font-sizes.stories.ts +13 -0
- package/src/stories/font-sizes/ui-font-sizes.vue +28 -0
- package/src/stories/spacings/ui-spacings.vue +2 -2
- package/tailwind.config.js +4 -4
- package/tsconfig.json +4 -1
- package/vite.config.ts +5 -3
- package/src/_styles/shadow.css +0 -7
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ui-font-sizes flex flex-row flex-wrap gap-md">
|
|
3
|
+
<p
|
|
4
|
+
v-for="(value, key) in fontSizes"
|
|
5
|
+
:key="key"
|
|
6
|
+
class="p-md"
|
|
7
|
+
:style="{fontSize: value}"
|
|
8
|
+
>
|
|
9
|
+
{{ getCssVariableValue(value) }}
|
|
10
|
+
<br>
|
|
11
|
+
<br>
|
|
12
|
+
{{ key }}
|
|
13
|
+
<br>
|
|
14
|
+
{{ value }}
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import fontSizes from "../../_styles/classTypes/_font-sizes.json";
|
|
21
|
+
import { getCssVariableValue } from "../helper";
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
.ui-font-sizes p {
|
|
26
|
+
border: 1px solid #ccc;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
|
-
import spacings from "../../_spacing.json";
|
|
38
|
+
import spacings from "../../_styles/classTypes/_spacing.json";
|
|
39
39
|
import { getCssVariableValue } from "../helper";
|
|
40
40
|
|
|
41
|
-
const spacingKeys = Object.keys(spacings)
|
|
41
|
+
const spacingKeys = Object.keys(spacings) as Array<keyof typeof spacings>;
|
|
42
42
|
|
|
43
43
|
</script>
|
|
44
44
|
|
package/tailwind.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const colors = require("./src/_colors.json");
|
|
2
|
-
const fontSize = require("./src/_font-sizes.json");
|
|
3
|
-
const spacing = require("./src/_spacing.json");
|
|
4
|
-
const boxShadow = require("./src/_shadow.json");
|
|
1
|
+
const colors = require("./src/_styles/classTypes/_colors.json");
|
|
2
|
+
const fontSize = require("./src/_styles/classTypes/_font-sizes.json");
|
|
3
|
+
const spacing = require("./src/_styles/classTypes/_spacing.json");
|
|
4
|
+
const boxShadow = require("./src/_styles/classTypes/_shadow.json");
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
darkMode: "class",
|
package/tsconfig.json
CHANGED
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
"resolveJsonModule": true,
|
|
11
11
|
"useDefineForClassFields": true,
|
|
12
12
|
"jsx": "preserve",
|
|
13
|
+
"noImplicitThis": true,
|
|
13
14
|
"isolatedModules": true,
|
|
15
|
+
"preserveValueImports": true,
|
|
16
|
+
"importsNotUsedAsValues": "error",
|
|
14
17
|
"importHelpers": true,
|
|
15
18
|
"moduleResolution": "node",
|
|
16
19
|
"skipLibCheck": true,
|
|
17
20
|
"esModuleInterop": true,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
22
|
"allowSyntheticDefaultImports": true,
|
|
19
23
|
"sourceMap": true,
|
|
20
24
|
"baseUrl": ".",
|
|
@@ -22,7 +26,6 @@
|
|
|
22
26
|
"esnext",
|
|
23
27
|
"dom",
|
|
24
28
|
"dom.iterable",
|
|
25
|
-
"scripthost"
|
|
26
29
|
]
|
|
27
30
|
},
|
|
28
31
|
"include": [
|
package/vite.config.ts
CHANGED