@kiva/kv-components 3.87.1 → 3.87.3
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 +19 -0
- package/package.json +24 -18
- package/vue/.storybook/main.js +42 -8
- package/vue/.storybook/preview.js +22 -15
- package/vue/KvCartModal.vue +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [3.87.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.87.2...@kiva/kv-components@3.87.3) (2024-07-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* set full width for cart modal in tablet ([e04445a](https://github.com/kiva/kv-ui-elements/commit/e04445a14cace3c6b3988a95dd2114b44bf7828b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.87.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.87.1...@kiva/kv-components@3.87.2) (2024-07-16)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @kiva/kv-components
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [3.87.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.87.0...@kiva/kv-components@3.87.1) (2024-07-12)
|
|
7
26
|
|
|
8
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "3.87.
|
|
3
|
+
"version": "3.87.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,15 +9,18 @@
|
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@babel/core": "^7.14.8",
|
|
11
11
|
"@babel/eslint-parser": "^7.13.14",
|
|
12
|
-
"@babel/preset-env": "^7.
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@storybook/addon-
|
|
16
|
-
"@storybook/addon-
|
|
17
|
-
"@storybook/addon-
|
|
18
|
-
"@storybook/addon-
|
|
19
|
-
"@storybook/
|
|
20
|
-
"@storybook/
|
|
12
|
+
"@babel/preset-env": "^7.24.8",
|
|
13
|
+
"@babel/preset-react": "^7.24.7",
|
|
14
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
15
|
+
"@storybook/addon-a11y": "7.6.20",
|
|
16
|
+
"@storybook/addon-actions": "7.6.20",
|
|
17
|
+
"@storybook/addon-essentials": "7.6.20",
|
|
18
|
+
"@storybook/addon-links": "7.6.20",
|
|
19
|
+
"@storybook/addon-storysource": "7.6.20",
|
|
20
|
+
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
21
|
+
"@storybook/addons": "7.6.20",
|
|
22
|
+
"@storybook/vue": "7.6.20",
|
|
23
|
+
"@storybook/vue-webpack5": "7.6.20",
|
|
21
24
|
"@testing-library/dom": "^8.1.0",
|
|
22
25
|
"@testing-library/jest-dom": "^5.16.2",
|
|
23
26
|
"@testing-library/user-event": "^13.2.1",
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
"babel-jest": "^27.0.6",
|
|
29
32
|
"babel-loader": "^8.2.2",
|
|
30
33
|
"chromatic": "^5.9.2",
|
|
31
|
-
"css-loader": "^
|
|
34
|
+
"css-loader": "^6.0.0",
|
|
32
35
|
"eslint": "^7.26.0",
|
|
33
36
|
"eslint-config-airbnb-base": "^14.1.0",
|
|
34
37
|
"eslint-plugin-import": "^2.20.2",
|
|
@@ -37,17 +40,20 @@
|
|
|
37
40
|
"jest": "^27.4.3",
|
|
38
41
|
"jest-axe": "^5.0.1",
|
|
39
42
|
"postcss": "^8.4.5",
|
|
40
|
-
"postcss-loader": "^
|
|
41
|
-
"
|
|
43
|
+
"postcss-loader": "^7.0.0",
|
|
44
|
+
"react": "^16.8.0",
|
|
45
|
+
"react-dom": "^16.8.0",
|
|
46
|
+
"storybook": "7.6.20",
|
|
47
|
+
"style-loader": "^3.3.4",
|
|
42
48
|
"tailwindcss": "^3.4.3",
|
|
43
|
-
"vue": "
|
|
49
|
+
"vue": "2.6.14",
|
|
44
50
|
"vue-loader": "^15.9.6",
|
|
45
51
|
"vue-router": "^3.5.2",
|
|
46
|
-
"vue-template-compiler": "
|
|
52
|
+
"vue-template-compiler": "2.6.14"
|
|
47
53
|
},
|
|
48
54
|
"scripts": {
|
|
49
|
-
"storybook": "vue-demi-switch 2 &&
|
|
50
|
-
"build-storybook": "vue-demi-switch 2 &&
|
|
55
|
+
"storybook": "vue-demi-switch 2 && storybook dev -p 6006 -c vue/.storybook",
|
|
56
|
+
"build-storybook": "vue-demi-switch 2 && storybook build -c vue/.storybook",
|
|
51
57
|
"lint": "eslint --ext .js,.vue ./",
|
|
52
58
|
"test": "npm run lint",
|
|
53
59
|
"build": "echo No build needed for @kiva/kv-components."
|
|
@@ -75,5 +81,5 @@
|
|
|
75
81
|
"optional": true
|
|
76
82
|
}
|
|
77
83
|
},
|
|
78
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "99b5af537255fc539c78039e42970be595be6ea6"
|
|
79
85
|
}
|
package/vue/.storybook/main.js
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
1
|
+
const config = {
|
|
4
2
|
stories: [
|
|
5
3
|
'../stories/Styleguide.stories.js', // show the base styleguide first
|
|
6
4
|
'../stories/**/*.stories.mdx',
|
|
7
5
|
'../stories/**/*.stories.@(js|jsx|ts|tsx)'
|
|
8
6
|
],
|
|
7
|
+
|
|
9
8
|
addons: [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
"@storybook/addon-links",
|
|
10
|
+
"@storybook/addon-essentials",
|
|
11
|
+
"@storybook/addon-a11y",
|
|
12
|
+
"@storybook/addon-storysource",
|
|
13
|
+
{
|
|
14
|
+
name: '@storybook/addon-styling-webpack',
|
|
15
|
+
options: {
|
|
16
|
+
rules: [
|
|
17
|
+
// Replaces existing CSS rules to support PostCSS
|
|
18
|
+
{
|
|
19
|
+
test: /\.css$/,
|
|
20
|
+
use: [
|
|
21
|
+
'style-loader',
|
|
22
|
+
{
|
|
23
|
+
loader: 'css-loader',
|
|
24
|
+
options: { importLoaders: 1 }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
// Gets options from `postcss.config.js` in your project root
|
|
28
|
+
loader: 'postcss-loader',
|
|
29
|
+
options: { implementation: require.resolve('postcss') }
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
15
36
|
],
|
|
37
|
+
|
|
16
38
|
webpackFinal: async (config) => {
|
|
17
39
|
config.module.rules.push({
|
|
18
40
|
test: /\.mjs$/,
|
|
@@ -42,4 +64,16 @@ module.exports = {
|
|
|
42
64
|
});
|
|
43
65
|
return config;
|
|
44
66
|
},
|
|
67
|
+
|
|
68
|
+
framework: {
|
|
69
|
+
name: "@storybook/vue-webpack5",
|
|
70
|
+
options: {}
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
docs: {
|
|
74
|
+
autodocs: true,
|
|
75
|
+
defaultName: 'Kv Components',
|
|
76
|
+
}
|
|
45
77
|
}
|
|
78
|
+
|
|
79
|
+
export default config;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './tailwind.css';
|
|
2
|
-
import addons from '@storybook/
|
|
2
|
+
import { addons } from '@storybook/preview-api';
|
|
3
3
|
import KvThemeProvider from '../KvThemeProvider.vue';
|
|
4
4
|
import { defaultTheme, darkTheme } from '@kiva/kv-tokens/configs/kivaColors.cjs';
|
|
5
5
|
import Vue from 'vue';
|
|
@@ -11,19 +11,19 @@ Vue.use(VueCompositionApi);
|
|
|
11
11
|
|
|
12
12
|
Vue.use(VueRouter);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
const parameters = {
|
|
15
|
+
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
16
|
+
controls: {
|
|
17
|
+
matchers: {
|
|
18
|
+
color: /(background|color)$/i,
|
|
19
|
+
date: /Date$/,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
options: {
|
|
23
|
+
storySort: {
|
|
24
|
+
order: ['Base Styling', '*'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// Listen for events from the dark mode plugin
|
|
@@ -31,7 +31,7 @@ export const parameters = {
|
|
|
31
31
|
const channel = addons.getChannel();
|
|
32
32
|
|
|
33
33
|
// Wrap all stories with the kv-theme-provider component
|
|
34
|
-
|
|
34
|
+
const decorators = [(story) => ({
|
|
35
35
|
components: { story, KvThemeProvider },
|
|
36
36
|
template: '<kv-theme-provider :theme="theme"><story /></kv-theme-provider>',
|
|
37
37
|
data() {
|
|
@@ -52,3 +52,10 @@ export const decorators = [(story) => ({
|
|
|
52
52
|
},
|
|
53
53
|
router: new VueRouter(),
|
|
54
54
|
})];
|
|
55
|
+
|
|
56
|
+
const preview = {
|
|
57
|
+
parameters,
|
|
58
|
+
decorators,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export default preview;
|