@kaizen/components 3.0.4 → 3.0.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/cjs/src/Filter/Filter/Filter.cjs +1 -0
- package/dist/cjs/src/Focusable/Focusable.cjs +1 -1
- package/dist/cjs/src/Focusable/Focusable.module.css.cjs +6 -0
- package/dist/cjs/src/Menu/MenuPopover.cjs +7 -2
- package/dist/cjs/src/Menu/MenuPopover.module.css.cjs +6 -0
- package/dist/cjs/src/SearchField/SearchField.cjs +1 -1
- package/dist/cjs/src/SearchField/{SearchField.module.scss.cjs → SearchField.module.css.cjs} +1 -1
- package/dist/esm/src/Filter/Filter/Filter.mjs +1 -0
- package/dist/esm/src/Focusable/Focusable.mjs +1 -1
- package/dist/esm/src/Focusable/Focusable.module.css.mjs +4 -0
- package/dist/esm/src/Menu/MenuPopover.mjs +8 -3
- package/dist/esm/src/Menu/MenuPopover.module.css.mjs +4 -0
- package/dist/esm/src/SearchField/SearchField.mjs +1 -1
- package/dist/esm/src/SearchField/{SearchField.module.scss.mjs → SearchField.module.css.mjs} +1 -1
- package/dist/styles.css +17 -7
- package/package.json +4 -4
- package/src/Filter/Filter/Filter.tsx +1 -0
- package/src/Focusable/Focusable.tsx +1 -1
- package/src/Menu/Menu.module.css +2 -3
- package/src/Menu/MenuPopover.module.css +9 -0
- package/src/Menu/MenuPopover.tsx +5 -1
- package/src/SearchField/SearchField.module.css +6 -0
- package/src/SearchField/SearchField.tsx +1 -1
- package/dist/cjs/src/Focusable/Focusable.module.scss.cjs +0 -6
- package/dist/esm/src/Focusable/Focusable.module.scss.mjs +0 -4
- package/src/SearchField/SearchField.module.scss +0 -8
- /package/src/Focusable/{Focusable.module.scss → Focusable.module.css} +0 -0
|
@@ -50,6 +50,7 @@ var Filter = function (_a) {
|
|
|
50
50
|
}, restProps), React__default.default.cloneElement(trigger, {
|
|
51
51
|
ref: filterButtonRef
|
|
52
52
|
}), isRefLoaded && isOpen && React__default.default.createElement(reactFocusOn.FocusOn, {
|
|
53
|
+
preventScrollOnFocus: true,
|
|
53
54
|
scrollLock: false,
|
|
54
55
|
onClickOutside: function () {
|
|
55
56
|
return setIsOpen(false);
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactAria = require('react-aria');
|
|
7
|
-
var Focusable_module = require('./Focusable.module.
|
|
7
|
+
var Focusable_module = require('./Focusable.module.css.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
10
10
|
default: e
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactAriaComponents = require('react-aria-components');
|
|
6
|
+
var mergeClassNames = require('../utils/mergeClassNames.cjs');
|
|
7
|
+
var MenuPopover_module = require('./MenuPopover.module.css.cjs');
|
|
6
8
|
function _interopDefault(e) {
|
|
7
9
|
return e && e.__esModule ? e : {
|
|
8
10
|
default: e
|
|
@@ -13,9 +15,12 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
13
15
|
/**
|
|
14
16
|
* Overlay element for holding a <Menu>
|
|
15
17
|
*/
|
|
16
|
-
var MenuPopover = React.forwardRef(function (
|
|
18
|
+
var MenuPopover = React.forwardRef(function (_a, ref) {
|
|
19
|
+
var className = _a.className,
|
|
20
|
+
props = tslib.__rest(_a, ["className"]);
|
|
17
21
|
return React__default.default.createElement(reactAriaComponents.Popover, tslib.__assign({
|
|
18
|
-
ref: ref
|
|
22
|
+
ref: ref,
|
|
23
|
+
className: mergeClassNames.mergeClassNames(MenuPopover_module.menuPopover, className)
|
|
19
24
|
}, props));
|
|
20
25
|
});
|
|
21
26
|
MenuPopover.displayName = 'MenuPopover';
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var InputSearch = require('../Input/InputSearch/InputSearch.cjs');
|
|
6
6
|
var Label = require('../Label/Label.cjs');
|
|
7
|
-
var SearchField_module = require('./SearchField.module.
|
|
7
|
+
var SearchField_module = require('./SearchField.module.css.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
10
10
|
default: e
|
|
@@ -42,6 +42,7 @@ const Filter = /*#__PURE__*/function () {
|
|
|
42
42
|
}, restProps), /*#__PURE__*/React.cloneElement(trigger, {
|
|
43
43
|
ref: filterButtonRef
|
|
44
44
|
}), isRefLoaded && isOpen && (/*#__PURE__*/React.createElement(FocusOn, {
|
|
45
|
+
preventScrollOnFocus: true,
|
|
45
46
|
scrollLock: false,
|
|
46
47
|
onClickOutside: function () {
|
|
47
48
|
return setIsOpen(false);
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useRef } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useFocusable } from 'react-aria';
|
|
5
|
-
import styles from './Focusable.module.
|
|
5
|
+
import styles from './Focusable.module.css.mjs';
|
|
6
6
|
var Focusable = function (_a) {
|
|
7
7
|
var children = _a.children,
|
|
8
8
|
className = _a.className,
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { __assign } from 'tslib';
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Popover } from 'react-aria-components';
|
|
4
|
+
import { mergeClassNames } from '../utils/mergeClassNames.mjs';
|
|
5
|
+
import styles from './MenuPopover.module.css.mjs';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Overlay element for holding a <Menu>
|
|
7
9
|
*/
|
|
8
10
|
const MenuPopover = /*#__PURE__*/function () {
|
|
9
|
-
const MenuPopover = /*#__PURE__*/forwardRef(function (
|
|
11
|
+
const MenuPopover = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
12
|
+
var className = _a.className,
|
|
13
|
+
props = __rest(_a, ["className"]);
|
|
10
14
|
return /*#__PURE__*/React.createElement(Popover, __assign({
|
|
11
|
-
ref: ref
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: mergeClassNames(styles.menuPopover, className)
|
|
12
17
|
}, props));
|
|
13
18
|
});
|
|
14
19
|
MenuPopover.displayName = 'MenuPopover';
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useId } from 'react';
|
|
3
3
|
import { InputSearch } from '../Input/InputSearch/InputSearch.mjs';
|
|
4
4
|
import { Label } from '../Label/Label.mjs';
|
|
5
|
-
import styles from './SearchField.module.
|
|
5
|
+
import styles from './SearchField.module.css.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896613/Search+Field Guidance} |
|
package/dist/styles.css
CHANGED
|
@@ -4684,10 +4684,11 @@
|
|
|
4684
4684
|
}
|
|
4685
4685
|
|
|
4686
4686
|
@layer kz-components {
|
|
4687
|
-
.Focusable-
|
|
4687
|
+
.Focusable-module_focusableWrapper__uU2wP {
|
|
4688
4688
|
display: inline-flex;
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
|
+
|
|
4691
4692
|
@layer kz-components {
|
|
4692
4693
|
.GuidanceBlock-module_banner__7FT39.GuidanceBlock-module_noMaxWidth__UCCUk {
|
|
4693
4694
|
max-width: inherit;
|
|
@@ -5763,15 +5764,14 @@
|
|
|
5763
5764
|
|
|
5764
5765
|
@layer kz-components {
|
|
5765
5766
|
.Menu-module_menu__-Dayv {
|
|
5766
|
-
background-color: var(--color-white);
|
|
5767
5767
|
color: var(--color-purple-800);
|
|
5768
5768
|
width: 248px;
|
|
5769
|
+
flex: 1 1 auto;
|
|
5770
|
+
min-height: 0;
|
|
5769
5771
|
max-height: 22rem;
|
|
5770
5772
|
overflow: auto;
|
|
5771
5773
|
padding-block: var(--spacing-6);
|
|
5772
5774
|
outline: none;
|
|
5773
|
-
border-radius: var(--border-solid-border-radius);
|
|
5774
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
5775
5775
|
}
|
|
5776
5776
|
|
|
5777
5777
|
.Menu-module_menu__-Dayv .react-aria-Header {
|
|
@@ -5845,6 +5845,16 @@
|
|
|
5845
5845
|
}
|
|
5846
5846
|
}
|
|
5847
5847
|
|
|
5848
|
+
@layer kz-components {
|
|
5849
|
+
.MenuPopover-module_menuPopover__lPRKM {
|
|
5850
|
+
display: flex;
|
|
5851
|
+
overflow: hidden;
|
|
5852
|
+
border-radius: var(--border-solid-border-radius);
|
|
5853
|
+
box-shadow: var(--shadow-large-box-shadow);
|
|
5854
|
+
background-color: var(--color-white);
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
|
|
5848
5858
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
5849
5859
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
5850
5860
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -8469,13 +8479,13 @@
|
|
|
8469
8479
|
min-height: calc((var(--typography-paragraph-body-line-height, 1.5rem) + var(--spacing-16, 1rem)) * 20 - var(--spacing-16, 1rem));
|
|
8470
8480
|
}
|
|
8471
8481
|
}
|
|
8472
|
-
/** THIS IS AN AUTOGENERATED FILE **/
|
|
8473
8482
|
@layer kz-components {
|
|
8474
|
-
.SearchField-
|
|
8483
|
+
.SearchField-module_label__QRNGF {
|
|
8475
8484
|
display: block;
|
|
8476
|
-
margin-bottom: var(--spacing-xs
|
|
8485
|
+
margin-bottom: var(--spacing-xs);
|
|
8477
8486
|
}
|
|
8478
8487
|
}
|
|
8488
|
+
|
|
8479
8489
|
@layer kz-components {
|
|
8480
8490
|
.SVG-module_icon__EKRwX {
|
|
8481
8491
|
width: 20px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
"prosemirror-state": "^1.4.4",
|
|
113
113
|
"prosemirror-transform": "^1.11.0",
|
|
114
114
|
"prosemirror-utils": "^1.2.2",
|
|
115
|
-
"prosemirror-view": "^1.41.
|
|
115
|
+
"prosemirror-view": "^1.41.7",
|
|
116
116
|
"react-animate-height": "^3.2.3",
|
|
117
117
|
"react-aria": "^3.41.1",
|
|
118
118
|
"react-aria-components": "^1.10.1",
|
|
119
119
|
"react-day-picker": "9.6.7",
|
|
120
120
|
"react-focus-lock": "^2.13.7",
|
|
121
|
-
"react-focus-on": "^3.10.
|
|
121
|
+
"react-focus-on": "^3.10.2",
|
|
122
122
|
"react-popper": "^2.3.0",
|
|
123
123
|
"react-select": "^5.10.2",
|
|
124
124
|
"react-textfit": "^1.1.1",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@cultureamp/frontend-apis": "13.3.0",
|
|
133
|
-
"@cultureamp/i18n-react-intl": "^4.0
|
|
133
|
+
"@cultureamp/i18n-react-intl": "^4.1.0",
|
|
134
134
|
"@cultureamp/package-bundler": "^2.4.4",
|
|
135
135
|
"@testing-library/dom": "^10.4.1",
|
|
136
136
|
"@types/jest-axe": "^3.5.9",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, type HTMLAttributes, type ReactNode } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { useFocusable, type FocusableOptions } from 'react-aria'
|
|
4
|
-
import styles from './Focusable.module.
|
|
4
|
+
import styles from './Focusable.module.css'
|
|
5
5
|
|
|
6
6
|
export type FocusableProps = {
|
|
7
7
|
children: ReactNode
|
package/src/Menu/Menu.module.css
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
@layer kz-components {
|
|
2
2
|
.menu {
|
|
3
|
-
background-color: var(--color-white);
|
|
4
3
|
color: var(--color-purple-800);
|
|
5
4
|
width: 248px;
|
|
5
|
+
flex: 1 1 auto;
|
|
6
|
+
min-height: 0;
|
|
6
7
|
max-height: 22rem;
|
|
7
8
|
overflow: auto;
|
|
8
9
|
padding-block: var(--spacing-6);
|
|
9
10
|
outline: none;
|
|
10
|
-
border-radius: var(--border-solid-border-radius);
|
|
11
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.menu :global(.react-aria-Header) {
|
package/src/Menu/MenuPopover.tsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react'
|
|
2
2
|
import { Popover, type PopoverProps } from 'react-aria-components'
|
|
3
|
+
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
4
|
+
import styles from './MenuPopover.module.css'
|
|
3
5
|
|
|
4
6
|
export type MenuPopoverProps = PopoverProps
|
|
5
7
|
|
|
@@ -7,6 +9,8 @@ export type MenuPopoverProps = PopoverProps
|
|
|
7
9
|
* Overlay element for holding a <Menu>
|
|
8
10
|
*/
|
|
9
11
|
export const MenuPopover = forwardRef<HTMLDivElement, MenuPopoverProps>(
|
|
10
|
-
(props, ref): JSX.Element =>
|
|
12
|
+
({ className, ...props }, ref): JSX.Element => (
|
|
13
|
+
<Popover ref={ref} className={mergeClassNames(styles.menuPopover, className)} {...props} />
|
|
14
|
+
),
|
|
11
15
|
)
|
|
12
16
|
MenuPopover.displayName = 'MenuPopover'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useId } from 'react'
|
|
2
2
|
import { InputSearch, type InputSearchProps } from '~components/Input/InputSearch'
|
|
3
3
|
import { Label } from '~components/Label'
|
|
4
|
-
import styles from './SearchField.module.
|
|
4
|
+
import styles from './SearchField.module.css'
|
|
5
5
|
|
|
6
6
|
export type SearchFieldProps = Omit<InputSearchProps, 'id'> & {
|
|
7
7
|
id?: string
|
|
File without changes
|