@kiva/kv-components 1.4.1 → 1.4.5
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/CHANGELOG.md +38 -0
- package/README.md +1 -1
- package/package.json +14 -13
- package/tailwind.config.js +7 -10
- package/vue/.storybook/main.js +13 -24
- package/vue/KvButton.vue +1 -1
- package/vue/KvSelect.vue +1 -1
- package/vue/KvSwitch.vue +2 -2
- package/vue/KvTextInput.vue +4 -2
- package/vue/stories/StyleguidePrimitives.stories.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.4.5](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.4...@kiva/kv-components@1.4.5) (2022-02-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @kiva/kv-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.4.4](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.3...@kiva/kv-components@1.4.4) (2022-01-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @kiva/kv-components
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.4.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.2...@kiva/kv-components@1.4.3) (2022-01-05)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **KvButton:** fix loading spinner positioning in Safari ([3bfb687](https://github.com/kiva/kv-ui-elements/commit/3bfb68754b0cf9a119e5666a7dd08bc851ae2411))
|
|
28
|
+
* **KvSelect:** fix icon sizing in Safari ([58026af](https://github.com/kiva/kv-ui-elements/commit/58026af41e958024606edcfe458b4ec29264828c))
|
|
29
|
+
* **KvSwitch:** fix positioning in Safari ([d3cce11](https://github.com/kiva/kv-ui-elements/commit/d3cce113fe7801c798e3303dd52580c44afeff64))
|
|
30
|
+
* **KvTextInput:** fix icon sizing in Safari ([7f52581](https://github.com/kiva/kv-ui-elements/commit/7f52581b671ebecd094f455102fda0b685d26bda))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [1.4.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.1...@kiva/kv-components@1.4.2) (2021-12-23)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @kiva/kv-components
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [1.4.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.0...@kiva/kv-components@1.4.1) (2021-12-22)
|
|
7
45
|
|
|
8
46
|
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
"@babel/core": "^7.14.8",
|
|
10
10
|
"@babel/eslint-parser": "^7.13.14",
|
|
11
11
|
"@babel/preset-env": "^7.14.8",
|
|
12
|
-
"@storybook/addon-a11y": "^6.
|
|
13
|
-
"@storybook/addon-actions": "^6.
|
|
14
|
-
"@storybook/addon-essentials": "^6.
|
|
15
|
-
"@storybook/addon-links": "^6.
|
|
12
|
+
"@storybook/addon-a11y": "^6.4.17",
|
|
13
|
+
"@storybook/addon-actions": "^6.4.17",
|
|
14
|
+
"@storybook/addon-essentials": "^6.4.17",
|
|
15
|
+
"@storybook/addon-links": "^6.4.17",
|
|
16
16
|
"@storybook/addon-postcss": "^2.0.0",
|
|
17
|
-
"@storybook/addon-storysource": "^6.
|
|
18
|
-
"@storybook/addons": "^6.
|
|
19
|
-
"@storybook/vue": "^6.
|
|
17
|
+
"@storybook/addon-storysource": "^6.4.17",
|
|
18
|
+
"@storybook/addons": "^6.4.17",
|
|
19
|
+
"@storybook/vue": "^6.4.17",
|
|
20
20
|
"@testing-library/dom": "^8.1.0",
|
|
21
21
|
"@testing-library/user-event": "^13.2.1",
|
|
22
22
|
"@testing-library/vue": "^5.8.1",
|
|
23
|
-
"autoprefixer": "^
|
|
23
|
+
"autoprefixer": "^10.4.2",
|
|
24
24
|
"babel-core": "^7.0.0-bridge.0",
|
|
25
25
|
"babel-jest": "^27.0.6",
|
|
26
26
|
"babel-loader": "^8.2.2",
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"eslint": "^7.26.0",
|
|
29
29
|
"eslint-config-airbnb-base": "^14.1.0",
|
|
30
30
|
"eslint-plugin-import": "^2.20.2",
|
|
31
|
+
"eslint-plugin-storybook": "^0.5.6",
|
|
31
32
|
"eslint-plugin-vue": "^7.9.0",
|
|
32
33
|
"jest": "^27.0.6",
|
|
33
34
|
"jest-axe": "^5.0.1",
|
|
34
|
-
"postcss": "^8.
|
|
35
|
+
"postcss": "^8.4.5",
|
|
35
36
|
"storybook-dark-mode": "^1.0.8",
|
|
36
|
-
"tailwindcss": "
|
|
37
|
+
"tailwindcss": "^3.0.18",
|
|
37
38
|
"vue-jest": "^3.0.7",
|
|
38
39
|
"vue-loader": "^15.9.6",
|
|
39
40
|
"vue-router": "^3.5.2",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"test": "jest"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@kiva/kv-tokens": "^1.2
|
|
50
|
+
"@kiva/kv-tokens": "^1.3.2",
|
|
50
51
|
"@mdi/js": "^5.9.55",
|
|
51
52
|
"aria-hidden": "^1.1.3",
|
|
52
53
|
"embla-carousel": "^4.5.3",
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"vue": "^2.6.12",
|
|
55
56
|
"vue-focus-lock": "^1.4.1"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "12bb59eb8dbffd590a8624347a8a3f98bf5ffba3"
|
|
58
59
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -26,7 +26,7 @@ function buildValuesFromThemeObj(initialObj) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Safelist classes used on our Styleguide Primitives story since it gets
|
|
29
|
-
// generated dynamically and
|
|
29
|
+
// generated dynamically and Tailwind won't see those class names in any files otherwise.
|
|
30
30
|
const backgroundColor = buildValuesFromThemeObj(theme.backgroundColor);
|
|
31
31
|
const borderColor = buildValuesFromThemeObj(theme.borderColor);
|
|
32
32
|
const ringColor = buildValuesFromThemeObj(theme.ringColor);
|
|
@@ -52,14 +52,11 @@ const safelist = [
|
|
|
52
52
|
];
|
|
53
53
|
|
|
54
54
|
module.exports = {
|
|
55
|
-
mode: 'jit',
|
|
56
55
|
presets: [sharedConfig],
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
safelist,
|
|
64
|
-
},
|
|
56
|
+
content: [
|
|
57
|
+
'./vue/**/*.vue',
|
|
58
|
+
'./vue/stories/**/*.stories.js',
|
|
59
|
+
'./utils/**/*.js',
|
|
60
|
+
],
|
|
61
|
+
safelist,
|
|
65
62
|
};
|
package/vue/.storybook/main.js
CHANGED
|
@@ -9,28 +9,17 @@ module.exports = {
|
|
|
9
9
|
addons: [
|
|
10
10
|
'@storybook/addon-links',
|
|
11
11
|
'@storybook/addon-essentials',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
plugins: [
|
|
26
|
-
require('tailwindcss'),
|
|
27
|
-
require('autoprefixer')
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
include: path.resolve(__dirname, '../'),
|
|
33
|
-
})
|
|
34
|
-
return config
|
|
35
|
-
}
|
|
12
|
+
'@storybook/addon-a11y',
|
|
13
|
+
'@storybook/addon-storysource',
|
|
14
|
+
'storybook-dark-mode',
|
|
15
|
+
{
|
|
16
|
+
name: '@storybook/addon-postcss',
|
|
17
|
+
options: {
|
|
18
|
+
postcssLoaderOptions: {
|
|
19
|
+
implementation: require('postcss'),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
"framework": "@storybook/vue"
|
|
36
25
|
}
|
package/vue/KvButton.vue
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<!-- eslint-enable max-len -->
|
|
23
23
|
<template v-if="state === 'loading'">
|
|
24
24
|
<kv-loading-spinner
|
|
25
|
-
class="tw-absolute tw-w-full tw-text-center tw
|
|
25
|
+
class="tw-absolute tw-w-full tw-text-center tw-z-0"
|
|
26
26
|
:color="loadingColor"
|
|
27
27
|
/>
|
|
28
28
|
</template>
|
package/vue/KvSelect.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</select>
|
|
16
16
|
<kv-material-icon
|
|
17
17
|
:icon="mdiChevronDown"
|
|
18
|
-
class="tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none"
|
|
18
|
+
class="tw-w-4 tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none"
|
|
19
19
|
:class="{ 'tw-opacity-low': disabled }"
|
|
20
20
|
/>
|
|
21
21
|
</div>
|
package/vue/KvSwitch.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<label
|
|
4
|
-
class="tw-inline-flex tw-gap-2 tw-items-center"
|
|
4
|
+
class="tw-inline-flex tw-gap-2 tw-items-center tw-relative"
|
|
5
5
|
:class="{ 'tw-opacity-low': disabled }"
|
|
6
6
|
:for="uuid"
|
|
7
7
|
>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div
|
|
31
31
|
class="
|
|
32
32
|
tw-flex-shrink-0 tw-w-3 tw-h-3
|
|
33
|
-
tw-absolute tw-m-0.5
|
|
33
|
+
tw-absolute tw-m-0.5 tw-top-0
|
|
34
34
|
tw-rounded-full
|
|
35
35
|
tw-bg-white
|
|
36
36
|
tw-transform tw-transition-all tw-ease-in-out
|
package/vue/KvTextInput.vue
CHANGED
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
<kv-material-icon
|
|
39
39
|
v-if="icon"
|
|
40
40
|
:icon="icon"
|
|
41
|
-
class="tw-absolute tw-top-1.5 tw-left-1.5 tw-pointer-events-none"
|
|
41
|
+
class="tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-left-1.5 tw-pointer-events-none"
|
|
42
42
|
/>
|
|
43
43
|
<kv-material-icon
|
|
44
44
|
v-if="!valid"
|
|
45
45
|
:icon="mdiAlertCircleOutline"
|
|
46
|
-
class="tw-absolute tw-top-1.5 tw-right-1.5
|
|
46
|
+
class="tw-w-3 tw-h-3 tw-absolute tw-top-1.5 tw-right-1.5
|
|
47
|
+
tw-pointer-events-none tw-text-danger"
|
|
47
48
|
/>
|
|
48
49
|
<button
|
|
49
50
|
v-if="canClear && valid && !!valueInput"
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
>
|
|
54
55
|
<span class="tw-sr-only">clear input</span>
|
|
55
56
|
<kv-material-icon
|
|
57
|
+
class="tw-w-3 tw-h-3"
|
|
56
58
|
:icon="mdiClose"
|
|
57
59
|
/>
|
|
58
60
|
</button>
|
|
@@ -381,7 +381,7 @@ export const Primitives = (args, { argTypes }) => ({
|
|
|
381
381
|
:style="{left: 'calc(' + index/zIndices.length * 100 + '% - ' + (index/zIndices.length * 250) + 'px)', top: index * 50 + 'px'}"
|
|
382
382
|
>
|
|
383
383
|
<button
|
|
384
|
-
class="tw-flex tw-text-left tw-content-start tw-align-top tw-p-2 tw-font-book hover:tw-text-action-highlight tw-h-12 tw-bg-tertiary tw-outline-
|
|
384
|
+
class="tw-flex tw-text-left tw-content-start tw-align-top tw-p-2 tw-font-book hover:tw-text-action-highlight tw-h-12 tw-bg-tertiary tw-outline-2 tw-outline-dotted tw-outline-offset-2"
|
|
385
385
|
style="width: 250px;"
|
|
386
386
|
@click="copy(buildClassName('tw-z', zIndex[0]))"
|
|
387
387
|
>
|