@kiva/kv-components 1.4.3 → 2.0.0

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 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
+ # [2.0.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.6...@kiva/kv-components@2.0.0) (2022-02-03)
7
+
8
+
9
+ * feat!: upgrade Tailwind to v3 ([18c1653](https://github.com/kiva/kv-ui-elements/commit/18c1653565eb42b8abfaaba6b3712173ff341850))
10
+
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * Tailwind dependency is now v3
15
+
16
+
17
+
18
+
19
+
20
+ ## [1.4.6](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@1.4.5...@kiva/kv-components@1.4.6) (2022-02-03)
21
+
22
+ **Note:** Version bump only for package @kiva/kv-components
23
+
24
+
25
+
26
+
27
+
28
+ ## [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)
29
+
30
+ **Note:** Version bump only for package @kiva/kv-components
31
+
32
+
33
+
34
+
35
+
36
+ ## [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)
37
+
38
+ **Note:** Version bump only for package @kiva/kv-components
39
+
40
+
41
+
42
+
43
+
6
44
  ## [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)
7
45
 
8
46
 
package/README.md CHANGED
@@ -7,7 +7,7 @@ A library of accessible UI components that adhere to Kiva's Design System. Curre
7
7
  1. [Install tailwind](https://tailwindcss.com/docs/installation) into your project
8
8
  2. Install components and design definitions:
9
9
  `npm install @kiva/kv-components && npm install @kiva/kv-tokens --save-dev`
10
- 3. Add our tailwind config as a [preset](https://tailwindcss.com/docs/configuration#presets) in your tailwind.config.js
10
+ 3. Add our Tailwind config as a [preset](https://tailwindcss.com/docs/configuration#presets) in your tailwind.config.js
11
11
 
12
12
  ```js
13
13
  // tailwind.config.js
@@ -17,7 +17,7 @@ module.exports = {
17
17
  theme: {
18
18
  //...
19
19
  },
20
- purge: [
20
+ content: [
21
21
  //...
22
22
  ],
23
23
  // ...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "1.4.3",
3
+ "version": "2.0.0",
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.3.2",
13
- "@storybook/addon-actions": "^6.3.2",
14
- "@storybook/addon-essentials": "^6.3.2",
15
- "@storybook/addon-links": "^6.3.2",
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.3.2",
18
- "@storybook/addons": "^6.3.2",
19
- "@storybook/vue": "^6.3.2",
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": "^9.8.6",
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.3.0",
35
+ "postcss": "^8.4.5",
35
36
  "storybook-dark-mode": "^1.0.8",
36
- "tailwindcss": "2.2.15",
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.3.0",
50
+ "@kiva/kv-tokens": "^2.0.0",
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": "30ab6650be8c6a4a8c9936bf7b09676b67abf759"
58
+ "gitHead": "b5b3dc488e1a437d2af4e26a07b5d0798981651d"
58
59
  }
@@ -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 JIT purge won't see those class names.
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
- purge: {
58
- content: [
59
- './vue/**/*.vue',
60
- './vue/stories/**/*.stories.js',
61
- './utils/**/*.js',
62
- ],
63
- safelist,
64
- },
56
+ content: [
57
+ './vue/**/*.vue',
58
+ './vue/stories/**/*.stories.js',
59
+ './utils/**/*.js',
60
+ ],
61
+ safelist,
65
62
  };
@@ -9,28 +9,17 @@ module.exports = {
9
9
  addons: [
10
10
  '@storybook/addon-links',
11
11
  '@storybook/addon-essentials',
12
- '@storybook/addon-a11y',
13
- '@storybook/addon-storysource',
14
- '@storybook/addon-postcss',
15
- 'storybook-dark-mode',
16
- ],
17
- webpackFinal: async (config) => {
18
- config.module.rules.push({
19
- test: /\,css&/,
20
- use: [
21
- {
22
- loader: 'postcss-loader',
23
- options: {
24
- ident: 'postcss',
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
  }
@@ -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-white"
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
  >