@kaizen/components 1.4.22-canary.5 → 1.4.22-canary.7
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 +16 -0
- package/dist/esm/index.js +0 -3
- package/dist/iife/index.js +10 -161
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -4
- package/package.json +3 -46
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +0 -72
- package/dist/iife/SkipLink.module-KAZA7PAL-KAZA7PAL.scss +0 -109
- package/dist/iife/VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss +0 -9
- package/dist/iife/skip.icon-4OAFSA2T.svg +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.24](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/components@1.4.23...@kaizen/components@1.4.24) (2023-03-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @kaizen/components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.4.23](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/components@1.4.22...@kaizen/components@1.4.23) (2023-03-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @kaizen/components
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.4.22](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/components@1.4.21...@kaizen/components@1.4.22) (2023-03-02)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @kaizen/components
|
package/dist/esm/index.js
CHANGED
package/dist/iife/index.js
CHANGED
|
@@ -6,14 +6,7 @@
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var
|
|
10
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
|
-
}) : x)(function(x) {
|
|
12
|
-
if (typeof require !== "undefined")
|
|
13
|
-
return require.apply(this, arguments);
|
|
14
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
15
|
-
});
|
|
16
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
17
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
11
|
};
|
|
19
12
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -429,7 +422,7 @@
|
|
|
429
422
|
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
430
423
|
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
431
424
|
}
|
|
432
|
-
function
|
|
425
|
+
function warn(format) {
|
|
433
426
|
{
|
|
434
427
|
{
|
|
435
428
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -567,7 +560,7 @@
|
|
|
567
560
|
var defineDeprecationWarning = function(methodName, info) {
|
|
568
561
|
Object.defineProperty(Component.prototype, methodName, {
|
|
569
562
|
get: function() {
|
|
570
|
-
|
|
563
|
+
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
571
564
|
return void 0;
|
|
572
565
|
}
|
|
573
566
|
});
|
|
@@ -815,7 +808,7 @@
|
|
|
815
808
|
}
|
|
816
809
|
return element;
|
|
817
810
|
};
|
|
818
|
-
function
|
|
811
|
+
function createElement(type, config, children) {
|
|
819
812
|
var propName;
|
|
820
813
|
var props = {};
|
|
821
814
|
var key = null;
|
|
@@ -1035,7 +1028,7 @@
|
|
|
1035
1028
|
{
|
|
1036
1029
|
if (iteratorFn === iterableChildren.entries) {
|
|
1037
1030
|
if (!didWarnAboutMaps) {
|
|
1038
|
-
|
|
1031
|
+
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1039
1032
|
}
|
|
1040
1033
|
didWarnAboutMaps = true;
|
|
1041
1034
|
}
|
|
@@ -1173,7 +1166,7 @@
|
|
|
1173
1166
|
},
|
|
1174
1167
|
set: function(displayName) {
|
|
1175
1168
|
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1176
|
-
|
|
1169
|
+
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1177
1170
|
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1178
1171
|
}
|
|
1179
1172
|
}
|
|
@@ -1914,7 +1907,7 @@
|
|
|
1914
1907
|
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1915
1908
|
}
|
|
1916
1909
|
}
|
|
1917
|
-
var element =
|
|
1910
|
+
var element = createElement.apply(this, arguments);
|
|
1918
1911
|
if (element == null) {
|
|
1919
1912
|
return element;
|
|
1920
1913
|
}
|
|
@@ -1937,12 +1930,12 @@
|
|
|
1937
1930
|
{
|
|
1938
1931
|
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1939
1932
|
didWarnAboutDeprecatedCreateFactory = true;
|
|
1940
|
-
|
|
1933
|
+
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1941
1934
|
}
|
|
1942
1935
|
Object.defineProperty(validatedFactory, "type", {
|
|
1943
1936
|
enumerable: false,
|
|
1944
1937
|
get: function() {
|
|
1945
|
-
|
|
1938
|
+
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1946
1939
|
Object.defineProperty(this, "type", {
|
|
1947
1940
|
value: type
|
|
1948
1941
|
});
|
|
@@ -1975,7 +1968,7 @@
|
|
|
1975
1968
|
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1976
1969
|
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1977
1970
|
if (updatedFibersCount > 10) {
|
|
1978
|
-
|
|
1971
|
+
warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
1979
1972
|
}
|
|
1980
1973
|
currentTransition._updatedFibers.clear();
|
|
1981
1974
|
}
|
|
@@ -2919,57 +2912,6 @@
|
|
|
2919
2912
|
}
|
|
2920
2913
|
});
|
|
2921
2914
|
|
|
2922
|
-
// ../../node_modules/classnames/index.js
|
|
2923
|
-
var require_classnames = __commonJS({
|
|
2924
|
-
"../../node_modules/classnames/index.js"(exports, module) {
|
|
2925
|
-
(function() {
|
|
2926
|
-
"use strict";
|
|
2927
|
-
var hasOwn = {}.hasOwnProperty;
|
|
2928
|
-
var nativeCodeString = "[native code]";
|
|
2929
|
-
function classNames() {
|
|
2930
|
-
var classes = [];
|
|
2931
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2932
|
-
var arg = arguments[i];
|
|
2933
|
-
if (!arg)
|
|
2934
|
-
continue;
|
|
2935
|
-
var argType = typeof arg;
|
|
2936
|
-
if (argType === "string" || argType === "number") {
|
|
2937
|
-
classes.push(arg);
|
|
2938
|
-
} else if (Array.isArray(arg)) {
|
|
2939
|
-
if (arg.length) {
|
|
2940
|
-
var inner = classNames.apply(null, arg);
|
|
2941
|
-
if (inner) {
|
|
2942
|
-
classes.push(inner);
|
|
2943
|
-
}
|
|
2944
|
-
}
|
|
2945
|
-
} else if (argType === "object") {
|
|
2946
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
2947
|
-
classes.push(arg.toString());
|
|
2948
|
-
continue;
|
|
2949
|
-
}
|
|
2950
|
-
for (var key in arg) {
|
|
2951
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
2952
|
-
classes.push(key);
|
|
2953
|
-
}
|
|
2954
|
-
}
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
return classes.join(" ");
|
|
2958
|
-
}
|
|
2959
|
-
if (typeof module !== "undefined" && module.exports) {
|
|
2960
|
-
classNames.default = classNames;
|
|
2961
|
-
module.exports = classNames;
|
|
2962
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
2963
|
-
define("classnames", [], function() {
|
|
2964
|
-
return classNames;
|
|
2965
|
-
});
|
|
2966
|
-
} else {
|
|
2967
|
-
window.classNames = classNames;
|
|
2968
|
-
}
|
|
2969
|
-
})();
|
|
2970
|
-
}
|
|
2971
|
-
});
|
|
2972
|
-
|
|
2973
2915
|
// src/KaizenProvider/KaizenProvider.tsx
|
|
2974
2916
|
var import_react2 = __toESM(require_react());
|
|
2975
2917
|
|
|
@@ -3490,92 +3432,6 @@
|
|
|
3490
3432
|
themeManager
|
|
3491
3433
|
}) => /* @__PURE__ */ import_react2.default.createElement(ThemeProvider, { themeManager }, children);
|
|
3492
3434
|
KaizenProvider.displayName = "KaizenProvider";
|
|
3493
|
-
|
|
3494
|
-
// ../a11y/dist/esm/index.js
|
|
3495
|
-
var import_react4 = __toESM(require_react());
|
|
3496
|
-
|
|
3497
|
-
// ../component-library/dist/esm/chunk-HRENJKZ7.js
|
|
3498
|
-
var import_react3 = __toESM(require_react());
|
|
3499
|
-
var import_classnames = __toESM(require_classnames());
|
|
3500
|
-
var import_Icon_module_VD7NKLAR = __toESM(__require("./Icon.module-VD7NKLAR-VD7NKLAR.scss"));
|
|
3501
|
-
var yellow = "\x1B[33m ";
|
|
3502
|
-
var reset = "\x1B[0m ";
|
|
3503
|
-
var warn = (message) => {
|
|
3504
|
-
console.warn(
|
|
3505
|
-
`${yellow}
|
|
3506
|
-
CULTUREAMP UI WARNING:
|
|
3507
|
-
${singleLine(message)}${reset}
|
|
3508
|
-
`
|
|
3509
|
-
);
|
|
3510
|
-
};
|
|
3511
|
-
var singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
3512
|
-
var Icon = ({
|
|
3513
|
-
icon,
|
|
3514
|
-
inheritSize = false,
|
|
3515
|
-
role = "img",
|
|
3516
|
-
title = "",
|
|
3517
|
-
desc = "",
|
|
3518
|
-
classNameOverride,
|
|
3519
|
-
...props
|
|
3520
|
-
}) => {
|
|
3521
|
-
const isMeaningfulImg = role === "img";
|
|
3522
|
-
if (isMeaningfulImg && !title) {
|
|
3523
|
-
warn(`
|
|
3524
|
-
Icon with role "img" missing a title attribute.
|
|
3525
|
-
|
|
3526
|
-
Assistive technologies that enable vision-impaired users to read web pages
|
|
3527
|
-
can treat images (including icons) as either decorative or meaningful. Only
|
|
3528
|
-
images with a role of "img" (meaningful) will be read aloud to the user.
|
|
3529
|
-
These images must therefore have a title attribute to provide the text that
|
|
3530
|
-
will be read aloud.
|
|
3531
|
-
|
|
3532
|
-
Either add the missing title prop, or set this icon's role to
|
|
3533
|
-
"presentation" to indicate it is not meaningful.
|
|
3534
|
-
`);
|
|
3535
|
-
}
|
|
3536
|
-
const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react3.default.createElement("title", null, title);
|
|
3537
|
-
const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react3.default.createElement("desc", null, desc);
|
|
3538
|
-
const accessibilityProps = {
|
|
3539
|
-
role,
|
|
3540
|
-
["aria-hidden"]: isMeaningfulImg ? void 0 : true
|
|
3541
|
-
};
|
|
3542
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
|
3543
|
-
"svg",
|
|
3544
|
-
{
|
|
3545
|
-
className: (0, import_classnames.default)(import_Icon_module_VD7NKLAR.default.icon, classNameOverride, {
|
|
3546
|
-
[import_Icon_module_VD7NKLAR.default.inheritSize]: inheritSize
|
|
3547
|
-
}),
|
|
3548
|
-
viewBox: icon.viewBox,
|
|
3549
|
-
focusable: "false",
|
|
3550
|
-
...accessibilityProps,
|
|
3551
|
-
...props
|
|
3552
|
-
},
|
|
3553
|
-
renderTitle(),
|
|
3554
|
-
renderDesc(),
|
|
3555
|
-
/* @__PURE__ */ import_react3.default.createElement("use", { xlinkHref: `#${icon.id}` })
|
|
3556
|
-
);
|
|
3557
|
-
};
|
|
3558
|
-
Icon.displayName = "Icon";
|
|
3559
|
-
|
|
3560
|
-
// ../component-library/icons/skip.icon.svg
|
|
3561
|
-
var skip_icon_default = "./skip.icon-4OAFSA2T.svg";
|
|
3562
|
-
|
|
3563
|
-
// ../a11y/dist/esm/index.js
|
|
3564
|
-
var import_SkipLink_module_KAZA7PAL = __toESM(__require("./SkipLink.module-KAZA7PAL-KAZA7PAL.scss"));
|
|
3565
|
-
var import_react5 = __toESM(require_react());
|
|
3566
|
-
var import_VisuallyHidden_module_E5JUNEF5 = __toESM(__require("./VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss"));
|
|
3567
|
-
var SkipLink = ({ label, skipTo }) => /* @__PURE__ */ import_react4.default.createElement("a", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContainer, href: `#${skipTo}` }, /* @__PURE__ */ import_react4.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkContent }, /* @__PURE__ */ import_react4.default.createElement("span", { className: import_SkipLink_module_KAZA7PAL.default.skipLinkIcon }, /* @__PURE__ */ import_react4.default.createElement(Icon, { icon: skip_icon_default, role: "presentation" })), /* @__PURE__ */ import_react4.default.createElement("span", null, label)));
|
|
3568
|
-
SkipLink.displayName = "SkipLink";
|
|
3569
|
-
var VisuallyHidden = ({
|
|
3570
|
-
children,
|
|
3571
|
-
classNameOverride,
|
|
3572
|
-
tag = "span",
|
|
3573
|
-
...otherProps
|
|
3574
|
-
}) => {
|
|
3575
|
-
const className = `${import_VisuallyHidden_module_E5JUNEF5.default.srOnly} ${classNameOverride}`;
|
|
3576
|
-
return (0, import_react5.createElement)(tag, { ...otherProps, className }, children);
|
|
3577
|
-
};
|
|
3578
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
3579
3435
|
})();
|
|
3580
3436
|
/*! Bundled license information:
|
|
3581
3437
|
|
|
@@ -3600,11 +3456,4 @@ react/cjs/react.development.js:
|
|
|
3600
3456
|
* This source code is licensed under the MIT license found in the
|
|
3601
3457
|
* LICENSE file in the root directory of this source tree.
|
|
3602
3458
|
*)
|
|
3603
|
-
|
|
3604
|
-
classnames/index.js:
|
|
3605
|
-
(*!
|
|
3606
|
-
Copyright (c) 2018 Jed Watson.
|
|
3607
|
-
Licensed under the MIT License (MIT), see
|
|
3608
|
-
http://jedwatson.github.io/classnames
|
|
3609
|
-
*)
|
|
3610
3459
|
*/
|
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.7+70ca6b93e",
|
|
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/a11y": "^1.7.1-canary.5+94347e6d9",
|
|
32
|
-
"@kaizen/brand": "^1.5.4",
|
|
33
|
-
"@kaizen/brand-moment": "^1.12.66-canary.5+94347e6d9",
|
|
34
|
-
"@kaizen/button": "^2.0.22-canary.5+94347e6d9",
|
|
35
|
-
"@kaizen/component-base": "^1.1.3",
|
|
36
|
-
"@kaizen/component-library": "^16.4.1-canary.5+94347e6d9",
|
|
37
|
-
"@kaizen/date-picker": "^5.19.3-canary.5+94347e6d9",
|
|
38
31
|
"@kaizen/design-tokens": "^10.3.1",
|
|
39
|
-
"@kaizen/draft-avatar": "^2.8.28-canary.5+94347e6d9",
|
|
40
|
-
"@kaizen/draft-badge": "^1.13.6",
|
|
41
|
-
"@kaizen/draft-card": "^3.2.6",
|
|
42
|
-
"@kaizen/draft-collapsible": "^3.5.21-canary.5+94347e6d9",
|
|
43
|
-
"@kaizen/draft-divider": "^2.2.6",
|
|
44
|
-
"@kaizen/draft-empty-state": "^5.3.28-canary.5+94347e6d9",
|
|
45
|
-
"@kaizen/draft-filter-menu-button": "^2.6.34-canary.5+94347e6d9",
|
|
46
|
-
"@kaizen/draft-form": "^10.3.2-canary.5+94347e6d9",
|
|
47
|
-
"@kaizen/draft-guidance-block": "^6.1.17-canary.5+94347e6d9",
|
|
48
|
-
"@kaizen/draft-hero-card": "^2.2.15",
|
|
49
|
-
"@kaizen/draft-illustration": "^6.0.19-canary.5+94347e6d9",
|
|
50
|
-
"@kaizen/draft-likert-scale-legacy": "^1.10.42-canary.5+94347e6d9",
|
|
51
|
-
"@kaizen/draft-menu": "^4.8.33-canary.5+94347e6d9",
|
|
52
|
-
"@kaizen/draft-modal": "^10.6.3-canary.5+94347e6d9",
|
|
53
|
-
"@kaizen/draft-page-layout": "^2.3.7",
|
|
54
|
-
"@kaizen/draft-popover": "^5.3.2-canary.5+94347e6d9",
|
|
55
|
-
"@kaizen/draft-select": "^2.10.23-canary.5+94347e6d9",
|
|
56
|
-
"@kaizen/draft-table": "^5.6.18-canary.5+94347e6d9",
|
|
57
|
-
"@kaizen/draft-tabs": "^5.2.28-canary.5+94347e6d9",
|
|
58
|
-
"@kaizen/draft-tag": "^3.4.2-canary.5+94347e6d9",
|
|
59
|
-
"@kaizen/draft-tile": "^5.9.28-canary.5+94347e6d9",
|
|
60
|
-
"@kaizen/draft-title-block-zen": "^7.9.8-canary.5+94347e6d9",
|
|
61
|
-
"@kaizen/draft-tooltip": "^5.4.30-canary.5+94347e6d9",
|
|
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-canary.5+94347e6d9",
|
|
67
|
-
"@kaizen/pagination": "^1.6.28-canary.5+94347e6d9",
|
|
68
|
-
"@kaizen/progress-bar": "^2.3.21-canary.5+94347e6d9",
|
|
69
|
-
"@kaizen/responsive": "^1.8.5",
|
|
70
|
-
"@kaizen/rich-text-editor": "^1.19.32-canary.5+94347e6d9",
|
|
71
|
-
"@kaizen/select": "^6.13.9-canary.5+94347e6d9",
|
|
72
|
-
"@kaizen/split-button": "^1.3.35-canary.5+94347e6d9",
|
|
73
|
-
"@kaizen/tabs": "^1.5.32-canary.5+94347e6d9",
|
|
74
|
-
"@kaizen/tailwind": "^0.5.1",
|
|
75
|
-
"@kaizen/typography": "^2.3.6",
|
|
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": "70ca6b93ebe6e79be113b373b2ba1ec8054704f9"
|
|
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>
|