@kaizen/components 1.4.22-canary.4 → 1.4.22-canary.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/dist/esm/index.js +0 -3
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +9 -2518
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +13 -2212
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +25 -328
- package/dist/iife/KaizenProvider/index.js +27 -330
- package/dist/iife/index.js +37 -497
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -4
- package/package.json +4 -47
- package/dist/iife/Icon.module-VD7NKLAR.scss +0 -72
- package/dist/iife/SkipLink.module-KAZA7PAL.scss +0 -109
- package/dist/iife/VisuallyHidden.module-E5JUNEF5.scss +0 -9
- package/dist/iife/skip.icon-4OAFSA2T.svg +0 -12
- package/dist/styles.css +0 -98
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { a as KaizenProvider, K as KaizenProviderProps } from './KaizenProvider-
|
|
|
2
2
|
export { T as ThemeContext, a as ThemeProvider, u as useTheme } from './ThemeProvider-7786826c.js';
|
|
3
3
|
export { ThemeManager } from './KaizenProvider/ThemeProvider/ThemeManager.js';
|
|
4
4
|
export { defaultTheme } from './KaizenProvider/ThemeProvider/themes/index.js';
|
|
5
|
-
export * from '@kaizen/a11y';
|
|
6
5
|
export { default as heartTheme } from './KaizenProvider/ThemeProvider/themes/heart.js';
|
|
7
6
|
export { CSSVariableTheme, DeepMapObjectLeafs, Theme, ThemeKey, TypographyFont } from './KaizenProvider/ThemeProvider/themes/types.js';
|
|
8
7
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunk7ZAJ7755js = require('./chunk-7ZAJ7755.js');
|
|
4
4
|
|
|
@@ -17,9 +17,6 @@ var _chunkJ42JQYBYjs = require('./chunk-J42JQYBY.js');
|
|
|
17
17
|
|
|
18
18
|
var _chunk7T4E5A7Mjs = require('./chunk-7T4E5A7M.js');
|
|
19
19
|
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var _a11y = require('@kaizen/a11y'); _createStarExport(_a11y);
|
|
22
|
-
|
|
23
20
|
|
|
24
21
|
|
|
25
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.4.22-canary.
|
|
3
|
+
"version": "1.4.22-canary.6+daa1f711e",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -28,55 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/cultureamp/kaizen-design-system#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@kaizen/
|
|
32
|
-
"@kaizen/brand": "^1.5.4",
|
|
33
|
-
"@kaizen/brand-moment": "^1.12.66",
|
|
34
|
-
"@kaizen/button": "^2.0.22",
|
|
35
|
-
"@kaizen/component-base": "^1.1.3",
|
|
36
|
-
"@kaizen/component-library": "^16.4.1",
|
|
37
|
-
"@kaizen/date-picker": "^5.19.3",
|
|
38
|
-
"@kaizen/design-tokens": "^10.3.2-canary.40+ddaa33e53",
|
|
39
|
-
"@kaizen/draft-avatar": "^2.8.28",
|
|
40
|
-
"@kaizen/draft-badge": "^1.13.6",
|
|
41
|
-
"@kaizen/draft-card": "^3.2.6",
|
|
42
|
-
"@kaizen/draft-collapsible": "^3.5.21",
|
|
43
|
-
"@kaizen/draft-divider": "^2.2.6",
|
|
44
|
-
"@kaizen/draft-empty-state": "^5.3.28",
|
|
45
|
-
"@kaizen/draft-filter-menu-button": "^2.6.34",
|
|
46
|
-
"@kaizen/draft-form": "^10.3.2",
|
|
47
|
-
"@kaizen/draft-guidance-block": "^6.1.17",
|
|
48
|
-
"@kaizen/draft-hero-card": "^2.2.15",
|
|
49
|
-
"@kaizen/draft-illustration": "^6.0.19",
|
|
50
|
-
"@kaizen/draft-likert-scale-legacy": "^1.10.42",
|
|
51
|
-
"@kaizen/draft-menu": "^4.8.33",
|
|
52
|
-
"@kaizen/draft-modal": "^10.6.3",
|
|
53
|
-
"@kaizen/draft-page-layout": "^2.3.7",
|
|
54
|
-
"@kaizen/draft-popover": "^5.3.2",
|
|
55
|
-
"@kaizen/draft-select": "^2.10.23",
|
|
56
|
-
"@kaizen/draft-table": "^5.6.18",
|
|
57
|
-
"@kaizen/draft-tabs": "^5.2.28",
|
|
58
|
-
"@kaizen/draft-tag": "^3.4.2",
|
|
59
|
-
"@kaizen/draft-tile": "^5.9.28",
|
|
60
|
-
"@kaizen/draft-title-block-zen": "^7.9.8",
|
|
61
|
-
"@kaizen/draft-tooltip": "^5.4.30",
|
|
62
|
-
"@kaizen/draft-well": "^4.3.3",
|
|
63
|
-
"@kaizen/hosted-assets": "^2.0.1",
|
|
64
|
-
"@kaizen/loading-skeleton": "^2.0.2",
|
|
65
|
-
"@kaizen/loading-spinner": "^2.3.6",
|
|
66
|
-
"@kaizen/notification": "^1.4.2",
|
|
67
|
-
"@kaizen/pagination": "^1.6.28",
|
|
68
|
-
"@kaizen/progress-bar": "^2.3.21",
|
|
69
|
-
"@kaizen/responsive": "^1.8.5",
|
|
70
|
-
"@kaizen/rich-text-editor": "^1.19.32",
|
|
71
|
-
"@kaizen/select": "^6.13.9",
|
|
72
|
-
"@kaizen/split-button": "^1.3.35",
|
|
73
|
-
"@kaizen/tabs": "^1.5.32",
|
|
74
|
-
"@kaizen/tailwind": "^0.5.2-canary.40+ddaa33e53",
|
|
75
|
-
"@kaizen/typography": "^2.3.6",
|
|
31
|
+
"@kaizen/design-tokens": "^10.3.1",
|
|
76
32
|
"classnames": "^2.3.2"
|
|
77
33
|
},
|
|
78
34
|
"devDependencies": {
|
|
79
35
|
"@deanc/esbuild-plugin-postcss": "^1.0.2",
|
|
36
|
+
"@kaizen/tailwind": "^0.5.1",
|
|
80
37
|
"autoprefixer": "^10.4.13",
|
|
81
38
|
"tailwindcss": "^3.2.7",
|
|
82
39
|
"tiny-glob": "^0.2.9",
|
|
@@ -85,5 +42,5 @@
|
|
|
85
42
|
"peerDependencies": {
|
|
86
43
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0"
|
|
87
44
|
},
|
|
88
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "daa1f711ea6b1a7cca89aa43fd93e7c53720c2ed"
|
|
89
46
|
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/animation";
|
|
2
|
-
@import "./styles";
|
|
3
|
-
|
|
4
|
-
.icon {
|
|
5
|
-
@extend %caIcon;
|
|
6
|
-
|
|
7
|
-
// Set sensible defaults for icon colours when
|
|
8
|
-
// windows high-contrast mode is enabled. These
|
|
9
|
-
// should be overridden by the consumer when the
|
|
10
|
-
// icon colour conveys information, such as mood.
|
|
11
|
-
@media screen and (-ms-high-contrast: active) {
|
|
12
|
-
color: black;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media screen and (-ms-high-contrast: white-on-black) {
|
|
16
|
-
color: white;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
|
20
|
-
color: black;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.inheritSize {
|
|
25
|
-
@extend %caIconInheritSize;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.interactiveIconWrapper {
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
.icon {
|
|
31
|
-
opacity: 0.7;
|
|
32
|
-
transition: $animation-duration-fast opacity;
|
|
33
|
-
}
|
|
34
|
-
&:disabled,
|
|
35
|
-
&.disabled {
|
|
36
|
-
.icon {
|
|
37
|
-
opacity: 0.3;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
&:not(:disabled):not(.disabled) {
|
|
41
|
-
&:hover,
|
|
42
|
-
&:focus,
|
|
43
|
-
&.hover {
|
|
44
|
-
.icon {
|
|
45
|
-
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
&:active,
|
|
49
|
-
&.active {
|
|
50
|
-
.icon {
|
|
51
|
-
opacity: 1;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// On dark backgrounds, icons are fully opaque by default and half opacity when active.
|
|
58
|
-
// Hover and disabled states are the same.
|
|
59
|
-
.reversedInteractiveIconWrapper {
|
|
60
|
-
composes: interactiveIconWrapper;
|
|
61
|
-
.icon {
|
|
62
|
-
opacity: 1;
|
|
63
|
-
}
|
|
64
|
-
&:not(:disabled, .disabled) {
|
|
65
|
-
&:active,
|
|
66
|
-
&.active {
|
|
67
|
-
.icon {
|
|
68
|
-
opacity: 0.5;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
4
|
-
@import "~@kaizen/design-tokens/sass/typography";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* _Most_ of these styles have been copied over from the generic button
|
|
8
|
-
* in @kaizen/button. Although the appearance closely resembles reversed primary
|
|
9
|
-
* button, some necessary modifications to make this component visuallyHidden and
|
|
10
|
-
* other slight visual tweaks did not make this appropriate for reuse.
|
|
11
|
-
*/
|
|
12
|
-
$caButton-height: $spacing-xl;
|
|
13
|
-
$caButton-verticalPadding: calc(#{$spacing-sm} - #{$border-solid-border-width});
|
|
14
|
-
$caButtonIcon-height: 20px;
|
|
15
|
-
|
|
16
|
-
// reset user agent styles for button element type
|
|
17
|
-
@mixin button-reset {
|
|
18
|
-
appearance: none;
|
|
19
|
-
background: transparent;
|
|
20
|
-
border: none;
|
|
21
|
-
font: inherit;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
transition: none; // override Murmur global styles :(
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin button {
|
|
28
|
-
@include button-reset;
|
|
29
|
-
|
|
30
|
-
-webkit-font-smoothing: antialiased;
|
|
31
|
-
-moz-osx-font-smoothing: grayscale;
|
|
32
|
-
|
|
33
|
-
font-family: $typography-button-primary-font-family;
|
|
34
|
-
font-weight: $typography-button-primary-font-weight;
|
|
35
|
-
font-size: $typography-button-primary-font-size;
|
|
36
|
-
line-height: $typography-button-primary-line-height;
|
|
37
|
-
letter-spacing: $typography-button-primary-letter-spacing;
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
// ^inline-flex is used over (block) flex here to fix an edge case where the parent element is display:grid
|
|
40
|
-
// and this element is an <a>, causing the element to be full width.
|
|
41
|
-
align-items: center;
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
min-height: $caButton-height;
|
|
44
|
-
border: $border-solid-border-width $border-solid-border-style;
|
|
45
|
-
border-radius: $border-solid-border-radius;
|
|
46
|
-
position: relative;
|
|
47
|
-
text-align: center;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
text-align: center;
|
|
50
|
-
overflow: visible; // Required for the focus ring on IE11
|
|
51
|
-
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
|
|
54
|
-
padding: $caButton-verticalPadding
|
|
55
|
-
calc(#{$spacing-md} - #{$border-solid-border-width});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@mixin primary {
|
|
59
|
-
background: $color-white;
|
|
60
|
-
border-color: $border-borderless-border-color;
|
|
61
|
-
color: $color-purple-800;
|
|
62
|
-
// show custom focus ring when :focus-visible
|
|
63
|
-
&:global(.focus-visible)::after {
|
|
64
|
-
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
65
|
-
content: "";
|
|
66
|
-
position: absolute;
|
|
67
|
-
background: transparent;
|
|
68
|
-
border-radius: $border-focus-ring-border-radius;
|
|
69
|
-
border-width: $border-focus-ring-border-width;
|
|
70
|
-
border-style: $border-focus-ring-border-style;
|
|
71
|
-
border-color: $color-blue-500;
|
|
72
|
-
top: calc(-1 * #{$focus-ring-offset});
|
|
73
|
-
left: calc(-1 * #{$focus-ring-offset});
|
|
74
|
-
right: calc(-1 * #{$focus-ring-offset});
|
|
75
|
-
bottom: calc(-1 * #{$focus-ring-offset});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.skipLinkContainer {
|
|
80
|
-
@include button();
|
|
81
|
-
@include primary();
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: 0.5rem;
|
|
84
|
-
left: 0.5rem;
|
|
85
|
-
z-index: 1040; // Navigation z-index + 10
|
|
86
|
-
opacity: 0;
|
|
87
|
-
clip: rect(0, 0, 0, 0);
|
|
88
|
-
clip-path: inset(50%);
|
|
89
|
-
|
|
90
|
-
&:focus {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
clip: auto;
|
|
93
|
-
clip-path: none;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.skipLinkContent {
|
|
98
|
-
height: 100%;
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.skipLinkIcon {
|
|
104
|
-
height: $caButtonIcon-height;
|
|
105
|
-
align-self: auto;
|
|
106
|
-
display: flex;
|
|
107
|
-
padding-right: 4px;
|
|
108
|
-
color: $color-purple-800;
|
|
109
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
-
<title>skip</title>
|
|
5
|
-
<desc>Created with Sketch.</desc>
|
|
6
|
-
<defs></defs>
|
|
7
|
-
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<g id="skip" fill="#000000">
|
|
9
|
-
<path d="M10,2 C14.42,2 18,5.58 18,10 C18,14.42 14.42,18 10,18 C5.58,18 2,14.42 2,10 C2,5.58 5.58,2 10,2 Z M6.8,12.9347656 L11.071582,9.86738281 L6.8,6.8 L6.8,12.9347656 Z M11.6,6.8 L11.6,12.9347656 L12.6050781,12.9347656 L12.6050781,6.8 L11.6,6.8 Z" id="Combined-Shape"></path>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|
package/dist/styles.css
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
*, ::before, ::after {
|
|
2
|
-
--tw-border-spacing-x: 0;
|
|
3
|
-
--tw-border-spacing-y: 0;
|
|
4
|
-
--tw-translate-x: 0;
|
|
5
|
-
--tw-translate-y: 0;
|
|
6
|
-
--tw-rotate: 0;
|
|
7
|
-
--tw-skew-x: 0;
|
|
8
|
-
--tw-skew-y: 0;
|
|
9
|
-
--tw-scale-x: 1;
|
|
10
|
-
--tw-scale-y: 1;
|
|
11
|
-
--tw-pan-x: ;
|
|
12
|
-
--tw-pan-y: ;
|
|
13
|
-
--tw-pinch-zoom: ;
|
|
14
|
-
--tw-scroll-snap-strictness: proximity;
|
|
15
|
-
--tw-ordinal: ;
|
|
16
|
-
--tw-slashed-zero: ;
|
|
17
|
-
--tw-numeric-figure: ;
|
|
18
|
-
--tw-numeric-spacing: ;
|
|
19
|
-
--tw-numeric-fraction: ;
|
|
20
|
-
--tw-ring-inset: ;
|
|
21
|
-
--tw-ring-offset-width: 0px;
|
|
22
|
-
--tw-ring-offset-color: #fff;
|
|
23
|
-
--tw-ring-color: rgb(1 104 179 / 0.5);
|
|
24
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
25
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
26
|
-
--tw-shadow: 0 0 #0000;
|
|
27
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
28
|
-
--tw-blur: ;
|
|
29
|
-
--tw-brightness: ;
|
|
30
|
-
--tw-contrast: ;
|
|
31
|
-
--tw-grayscale: ;
|
|
32
|
-
--tw-hue-rotate: ;
|
|
33
|
-
--tw-invert: ;
|
|
34
|
-
--tw-saturate: ;
|
|
35
|
-
--tw-sepia: ;
|
|
36
|
-
--tw-drop-shadow: ;
|
|
37
|
-
--tw-backdrop-blur: ;
|
|
38
|
-
--tw-backdrop-brightness: ;
|
|
39
|
-
--tw-backdrop-contrast: ;
|
|
40
|
-
--tw-backdrop-grayscale: ;
|
|
41
|
-
--tw-backdrop-hue-rotate: ;
|
|
42
|
-
--tw-backdrop-invert: ;
|
|
43
|
-
--tw-backdrop-opacity: ;
|
|
44
|
-
--tw-backdrop-saturate: ;
|
|
45
|
-
--tw-backdrop-sepia:
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
::backdrop {
|
|
49
|
-
--tw-border-spacing-x: 0;
|
|
50
|
-
--tw-border-spacing-y: 0;
|
|
51
|
-
--tw-translate-x: 0;
|
|
52
|
-
--tw-translate-y: 0;
|
|
53
|
-
--tw-rotate: 0;
|
|
54
|
-
--tw-skew-x: 0;
|
|
55
|
-
--tw-skew-y: 0;
|
|
56
|
-
--tw-scale-x: 1;
|
|
57
|
-
--tw-scale-y: 1;
|
|
58
|
-
--tw-pan-x: ;
|
|
59
|
-
--tw-pan-y: ;
|
|
60
|
-
--tw-pinch-zoom: ;
|
|
61
|
-
--tw-scroll-snap-strictness: proximity;
|
|
62
|
-
--tw-ordinal: ;
|
|
63
|
-
--tw-slashed-zero: ;
|
|
64
|
-
--tw-numeric-figure: ;
|
|
65
|
-
--tw-numeric-spacing: ;
|
|
66
|
-
--tw-numeric-fraction: ;
|
|
67
|
-
--tw-ring-inset: ;
|
|
68
|
-
--tw-ring-offset-width: 0px;
|
|
69
|
-
--tw-ring-offset-color: #fff;
|
|
70
|
-
--tw-ring-color: rgb(1 104 179 / 0.5);
|
|
71
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
72
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
73
|
-
--tw-shadow: 0 0 #0000;
|
|
74
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
75
|
-
--tw-blur: ;
|
|
76
|
-
--tw-brightness: ;
|
|
77
|
-
--tw-contrast: ;
|
|
78
|
-
--tw-grayscale: ;
|
|
79
|
-
--tw-hue-rotate: ;
|
|
80
|
-
--tw-invert: ;
|
|
81
|
-
--tw-saturate: ;
|
|
82
|
-
--tw-sepia: ;
|
|
83
|
-
--tw-drop-shadow: ;
|
|
84
|
-
--tw-backdrop-blur: ;
|
|
85
|
-
--tw-backdrop-brightness: ;
|
|
86
|
-
--tw-backdrop-contrast: ;
|
|
87
|
-
--tw-backdrop-grayscale: ;
|
|
88
|
-
--tw-backdrop-hue-rotate: ;
|
|
89
|
-
--tw-backdrop-invert: ;
|
|
90
|
-
--tw-backdrop-opacity: ;
|
|
91
|
-
--tw-backdrop-saturate: ;
|
|
92
|
-
--tw-backdrop-sepia:
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.bg-green-300 {
|
|
96
|
-
--tw-bg-opacity: 1;
|
|
97
|
-
background-color: rgb(143 219 199 / var(--tw-bg-opacity))
|
|
98
|
-
}
|