@kaizen/components 0.0.0-canary-typescript-transform-paths-3.5.2-20241113035843 → 0.0.0-canary-package-bundler-v2-20241113071536
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/cjs/Filter/FilterBar/FilterBar.cjs +1 -3
- package/dist/cjs/Filter/FilterBar/FilterBar.module.css.cjs +0 -1
- package/dist/cjs/Pagination/Pagination.cjs +1 -1
- package/dist/esm/Filter/FilterBar/FilterBar.mjs +1 -3
- package/dist/esm/Filter/FilterBar/FilterBar.module.css.mjs +0 -1
- package/dist/esm/Pagination/Pagination.mjs +1 -1
- package/dist/styles.css +5 -9
- package/package.json +3 -3
- package/src/Filter/FilterBar/FilterBar.module.css +0 -4
- package/src/Filter/FilterBar/FilterBar.tsx +12 -14
- package/src/Pagination/Pagination.tsx +1 -1
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +1 -1
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +1 -1
- package/dist/types/Heading-Bq3fifM0.js +0 -114
- package/dist/types/IconButton-AN3AP9ja.js +0 -855
- package/dist/types/RemovableTag-CIqQvZuu.js +0 -674
- package/dist/types/ReversedColors-D9BxpiSS.js +0 -14
- package/dist/types/Tooltip-DNGasNM8.js +0 -286
- package/dist/types/actionsV1.js +0 -11
- package/dist/types/actionsV2.js +0 -10
- package/dist/types/actionsV3.js +0 -74
- package/dist/types/future.js +0 -211
- package/dist/types/index-hKXin_Zl.js +0 -10
- package/dist/types/index-offJCDcb.js +0 -6
- package/dist/types/index.js +0 -1016
- package/dist/types/mergeClassNames-BuzaWRqN.js +0 -25
- package/dist/types/overlaysV1.js +0 -8
- package/dist/types/overlaysV2.js +0 -7
- package/dist/types/overlaysV3.js +0 -104
- package/dist/types/reactAriaComponentsV3.js +0 -1
- package/dist/types/reactAriaV3.js +0 -1
- package/dist/types/styles.css +0 -11923
- package/dist/types/utilitiesV3.js +0 -2
|
@@ -26,8 +26,6 @@ var FilterBar = function (_a) {
|
|
|
26
26
|
filters: filters
|
|
27
27
|
}, providerProps), function (activeFilters) {
|
|
28
28
|
return React__default.default.createElement("div", {
|
|
29
|
-
className: FilterBar_module.wrapper
|
|
30
|
-
}, React__default.default.createElement("div", {
|
|
31
29
|
className: classnames__default.default(FilterBar_module.filterBar, classNameOverride)
|
|
32
30
|
}, React__default.default.createElement("div", {
|
|
33
31
|
className: FilterBar_module.filtersContainer
|
|
@@ -42,7 +40,7 @@ var FilterBar = function (_a) {
|
|
|
42
40
|
id: id
|
|
43
41
|
}))
|
|
44
42
|
);
|
|
45
|
-
}), React__default.default.createElement(AddFiltersMenu.AddFiltersMenu, null)), React__default.default.createElement("div", null, React__default.default.createElement(ClearAllButton.ClearAllButton, null)))
|
|
43
|
+
}), React__default.default.createElement(AddFiltersMenu.AddFiltersMenu, null)), React__default.default.createElement("div", null, React__default.default.createElement(ClearAllButton.ClearAllButton, null)));
|
|
46
44
|
});
|
|
47
45
|
};
|
|
48
46
|
FilterBar.displayName = "FilterBar";
|
|
@@ -110,7 +110,7 @@ var Pagination = function (_a) {
|
|
|
110
110
|
}
|
|
111
111
|
}), React__default.default.createElement("div", {
|
|
112
112
|
className: Pagination_module.pagesIndicatorWrapper
|
|
113
|
-
}, pagination(1, queries.isSmall ? 0 : 1)), React__default.default.createElement(DirectionalLink.DirectionalLink, {
|
|
113
|
+
}, pagination(queries.isMediumOrSmaller ? 0 : 1, queries.isSmall ? 0 : 1)), React__default.default.createElement(DirectionalLink.DirectionalLink, {
|
|
114
114
|
label: ariaLabelNextPage,
|
|
115
115
|
direction: "next",
|
|
116
116
|
disabled: nextPageDisabled,
|
|
@@ -18,8 +18,6 @@ const FilterBar = /*#__PURE__*/function () {
|
|
|
18
18
|
filters: filters
|
|
19
19
|
}, providerProps), function (activeFilters) {
|
|
20
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: styles.wrapper
|
|
22
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
23
21
|
className: classnames(styles.filterBar, classNameOverride)
|
|
24
22
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25
23
|
className: styles.filtersContainer
|
|
@@ -35,7 +33,7 @@ const FilterBar = /*#__PURE__*/function () {
|
|
|
35
33
|
id: id
|
|
36
34
|
}))
|
|
37
35
|
);
|
|
38
|
-
}), /*#__PURE__*/React.createElement(AddFiltersMenu, null)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ClearAllButton, null)))
|
|
36
|
+
}), /*#__PURE__*/React.createElement(AddFiltersMenu, null)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ClearAllButton, null)));
|
|
39
37
|
});
|
|
40
38
|
};
|
|
41
39
|
FilterBar.displayName = "FilterBar";
|
|
@@ -101,7 +101,7 @@ var Pagination = function (_a) {
|
|
|
101
101
|
}
|
|
102
102
|
}), /*#__PURE__*/React.createElement("div", {
|
|
103
103
|
className: styles.pagesIndicatorWrapper
|
|
104
|
-
}, pagination(1, queries.isSmall ? 0 : 1)), /*#__PURE__*/React.createElement(DirectionalLink, {
|
|
104
|
+
}, pagination(queries.isMediumOrSmaller ? 0 : 1, queries.isSmall ? 0 : 1)), /*#__PURE__*/React.createElement(DirectionalLink, {
|
|
105
105
|
label: ariaLabelNextPage,
|
|
106
106
|
direction: "next",
|
|
107
107
|
disabled: nextPageDisabled,
|
package/dist/styles.css
CHANGED
|
@@ -160,6 +160,9 @@
|
|
|
160
160
|
--button-icon-size: var(--spacing-16);
|
|
161
161
|
gap: var(--spacing-8);
|
|
162
162
|
}
|
|
163
|
+
.Focusable-module_focusableWrapper__NfuIi {
|
|
164
|
+
display: inline-flex;
|
|
165
|
+
}
|
|
163
166
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
164
167
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
165
168
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -216,9 +219,6 @@
|
|
|
216
219
|
opacity: 1;
|
|
217
220
|
}
|
|
218
221
|
}
|
|
219
|
-
.Focusable-module_focusableWrapper__NfuIi {
|
|
220
|
-
display: inline-flex;
|
|
221
|
-
}
|
|
222
222
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
223
223
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
224
224
|
.OverlayArrow-module_overlayArrow__hoDyK {
|
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
width: 40px;
|
|
1443
1443
|
height: 40px;
|
|
1444
1444
|
min-height: auto;
|
|
1445
|
-
margin: 0 var(--spacing-
|
|
1445
|
+
margin: 0 var(--spacing-4);
|
|
1446
1446
|
border-radius: 50%;
|
|
1447
1447
|
}
|
|
1448
1448
|
.GenericButton-module_circleButton__Ovqs1:not(:disabled):focus-visible::after {
|
|
@@ -4678,10 +4678,6 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
4678
4678
|
.ClearAllButton-module_clearAllButton__XNkm2 {
|
|
4679
4679
|
white-space: nowrap;
|
|
4680
4680
|
}
|
|
4681
|
-
.FilterBar-module_wrapper__D8GXq {
|
|
4682
|
-
container: filter-bar-wrapper / inline-size;
|
|
4683
|
-
}
|
|
4684
|
-
|
|
4685
4681
|
.FilterBar-module_filterBar__JEVKL {
|
|
4686
4682
|
display: flex;
|
|
4687
4683
|
padding: var(--spacing-8);
|
|
@@ -7582,7 +7578,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
7582
7578
|
width: 36px;
|
|
7583
7579
|
background-color: transparent;
|
|
7584
7580
|
color: rgba(var(color-purple-800-rgb), 0.7);
|
|
7585
|
-
margin: 0 var(--spacing-
|
|
7581
|
+
margin: 0 var(--spacing-4);
|
|
7586
7582
|
}
|
|
7587
7583
|
|
|
7588
7584
|
/** THIS IS AN AUTOGENERATED FILE **/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-package-bundler-v2-20241113071536",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"svgo": "^3.3.2",
|
|
119
119
|
"tslib": "^2.8.0",
|
|
120
120
|
"tsx": "^4.19.2",
|
|
121
|
-
"@kaizen/design-tokens": "0.0.0-canary-
|
|
122
|
-
"@kaizen/package-bundler": "0.0.0-canary-
|
|
121
|
+
"@kaizen/design-tokens": "0.0.0-canary-package-bundler-v2-20241113071536",
|
|
122
|
+
"@kaizen/package-bundler": "0.0.0-canary-package-bundler-v2-20241113071536"
|
|
123
123
|
},
|
|
124
124
|
"devDependenciesComments": {
|
|
125
125
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -27,21 +27,19 @@ export const FilterBar = <ValuesMap extends FiltersValues>({
|
|
|
27
27
|
}: FilterBarProps<ValuesMap>): JSX.Element => (
|
|
28
28
|
<FilterBarProvider<ValuesMap> filters={filters} {...providerProps}>
|
|
29
29
|
{(activeFilters): JSX.Element => (
|
|
30
|
-
<div className={styles.
|
|
31
|
-
<div className={
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</div>
|
|
30
|
+
<div className={classnames(styles.filterBar, classNameOverride)}>
|
|
31
|
+
<div className={styles.filtersContainer}>
|
|
32
|
+
{Object.values(activeFilters).map(({ id, Component }) => (
|
|
33
|
+
// `id` will always be `string`, but keyof ValuesMap transformed it
|
|
34
|
+
<React.Fragment key={id as string}>
|
|
35
|
+
{React.cloneElement(Component, { id })}
|
|
36
|
+
</React.Fragment>
|
|
37
|
+
))}
|
|
38
|
+
<AddFiltersMenu />
|
|
39
|
+
</div>
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</div>
|
|
41
|
+
<div>
|
|
42
|
+
<ClearAllButton />
|
|
45
43
|
</div>
|
|
46
44
|
</div>
|
|
47
45
|
)}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { __rest, __assign } from 'tslib';
|
|
2
|
-
import React, { useState, useLayoutEffect, createElement } from 'react';
|
|
3
|
-
import classnames from 'classnames';
|
|
4
|
-
var styles$1 = {
|
|
5
|
-
"badge": "Badge-module_badge__CRtsW",
|
|
6
|
-
"large": "Badge-module_large__0QOpY",
|
|
7
|
-
"default": "Badge-module_default__k4Kcf",
|
|
8
|
-
"active": "Badge-module_active__-e-i2",
|
|
9
|
-
"reversed": "Badge-module_reversed__OgQLB",
|
|
10
|
-
"dark": "Badge-module_dark__RH34a",
|
|
11
|
-
"dot": "Badge-module_dot__BOKL1",
|
|
12
|
-
"animation": "Badge-module_animation__NTy6C",
|
|
13
|
-
"animationOn": "Badge-module_animationOn__nWK38"
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3064857333/Badge Guidance} |
|
|
18
|
-
* {@link https://cultureamp.design/?path=/docs/components-badge--docs Storybook}
|
|
19
|
-
*/
|
|
20
|
-
const Badge = /*#__PURE__*/function () {
|
|
21
|
-
const Badge = function (_a) {
|
|
22
|
-
var children = _a.children,
|
|
23
|
-
_b = _a.variant,
|
|
24
|
-
variant = _b === void 0 ? "default" : _b,
|
|
25
|
-
_c = _a.reversed,
|
|
26
|
-
reversed = _c === void 0 ? false : _c,
|
|
27
|
-
_d = _a.size,
|
|
28
|
-
size = _d === void 0 ? "small" : _d,
|
|
29
|
-
classNameOverride = _a.classNameOverride,
|
|
30
|
-
restProps = __rest(_a, ["children", "variant", "reversed", "size", "classNameOverride"]);
|
|
31
|
-
return /*#__PURE__*/React.createElement("span", __assign({
|
|
32
|
-
className: classnames(styles$1.badge, styles$1[variant], classNameOverride, reversed && styles$1.reversed, size === "large" && styles$1.large)
|
|
33
|
-
}, restProps), variant !== "dot" && children);
|
|
34
|
-
};
|
|
35
|
-
Badge.displayName = "Badge";
|
|
36
|
-
return Badge;
|
|
37
|
-
}();
|
|
38
|
-
var BadgeAnimated = function (props) {
|
|
39
|
-
var _a = useState(false),
|
|
40
|
-
isFocused = _a[0],
|
|
41
|
-
setIsFocused = _a[1];
|
|
42
|
-
useLayoutEffect(function () {
|
|
43
|
-
setIsFocused(true);
|
|
44
|
-
setTimeout(function () {
|
|
45
|
-
setIsFocused(false);
|
|
46
|
-
}, 150);
|
|
47
|
-
}, [props.children]);
|
|
48
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
49
|
-
className: classnames(styles$1.animation, isFocused && styles$1.animationOn)
|
|
50
|
-
}, /*#__PURE__*/React.createElement(Badge, __assign({}, props)));
|
|
51
|
-
};
|
|
52
|
-
var styles = {
|
|
53
|
-
"heading": "Heading-module_heading__Gq6I8",
|
|
54
|
-
"display-0": "Heading-module_display-0__yZ7rx",
|
|
55
|
-
"composable-header-title": "Heading-module_composable-header-title__mqQVh",
|
|
56
|
-
"heading-1": "Heading-module_heading-1__PbAcw",
|
|
57
|
-
"heading-2": "Heading-module_heading-2__Ovpfe",
|
|
58
|
-
"heading-3": "Heading-module_heading-3__S4Pb1",
|
|
59
|
-
"heading-4": "Heading-module_heading-4__IIiwi",
|
|
60
|
-
"heading-5": "Heading-module_heading-5__QFtpN",
|
|
61
|
-
"heading-6": "Heading-module_heading-6__kts--",
|
|
62
|
-
"dark": "Heading-module_dark__IqcnT",
|
|
63
|
-
"dark-reduced-opacity": "Heading-module_dark-reduced-opacity__i-JqI",
|
|
64
|
-
"white": "Heading-module_white__mUqRT",
|
|
65
|
-
"white-reduced-opacity": "Heading-module_white-reduced-opacity__y1wq8",
|
|
66
|
-
"positive": "Heading-module_positive__mBS79",
|
|
67
|
-
"small": "Heading-module_small__qupiD",
|
|
68
|
-
"large": "Heading-module_large__cB-V3",
|
|
69
|
-
"negative": "Heading-module_negative__Q4byH"
|
|
70
|
-
};
|
|
71
|
-
var VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"];
|
|
72
|
-
/**
|
|
73
|
-
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3074885298/Typography#Headings Guidance}
|
|
74
|
-
* {@link https://cultureamp.design/?path=/docs/components-typography-heading--display-0 Storybook}
|
|
75
|
-
*/
|
|
76
|
-
var Heading = function (_a) {
|
|
77
|
-
var children = _a.children,
|
|
78
|
-
tag = _a.tag,
|
|
79
|
-
variant = _a.variant,
|
|
80
|
-
_b = _a.color,
|
|
81
|
-
color = _b === void 0 ? "dark" : _b,
|
|
82
|
-
classNameOverride = _a.classNameOverride,
|
|
83
|
-
restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
84
|
-
var inferredTag = tag === undefined ? translateHeadingLevelToTag(variant) : tag;
|
|
85
|
-
var className = classnames(styles.heading, styles[variant], classNameOverride, styles[color], VARIANTS_24PX_OR_GREATER.includes(variant) ? styles.large : styles.small);
|
|
86
|
-
return /*#__PURE__*/createElement(inferredTag, __assign(__assign({}, restProps), {
|
|
87
|
-
className: className
|
|
88
|
-
}), children);
|
|
89
|
-
};
|
|
90
|
-
Heading.displayName = "Heading";
|
|
91
|
-
/**
|
|
92
|
-
* A helper to infer the tag when not explicitly passed as a prop
|
|
93
|
-
* @param headingLevel Level of the heading
|
|
94
|
-
*/
|
|
95
|
-
var translateHeadingLevelToTag = function (headingLevel) {
|
|
96
|
-
switch (headingLevel) {
|
|
97
|
-
case "display-0":
|
|
98
|
-
case "composable-header-title":
|
|
99
|
-
case "heading-1":
|
|
100
|
-
return "h1";
|
|
101
|
-
case "heading-2":
|
|
102
|
-
return "h2";
|
|
103
|
-
case "heading-3":
|
|
104
|
-
return "h3";
|
|
105
|
-
case "heading-4":
|
|
106
|
-
return "h4";
|
|
107
|
-
case "heading-5":
|
|
108
|
-
return "h5";
|
|
109
|
-
case "heading-6":
|
|
110
|
-
default:
|
|
111
|
-
return "h6";
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
export { Badge as B, Heading as H, BadgeAnimated as a };
|