@kaizen/components 0.0.0-canary-introduce-next-entrypoint-20250225022746 → 0.0.0-canary-introduce-next-entrypoint-20250225045407
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/Focusable/Focusable.module.scss.cjs +6 -0
- package/dist/cjs/LinkButton/LinkButton.cjs +1 -1
- package/dist/cjs/Pagination/Pagination.cjs +1 -0
- package/dist/cjs/__next__/Button/Button.cjs +1 -1
- package/dist/cjs/__next__/Select/subcomponents/ListBox/ListBox.cjs +1 -1
- package/dist/cjs/__next__/Tabs/subcomponents/TabList/TabList.cjs +1 -1
- package/dist/cjs/__next__/Tooltip/OverlayArrow.cjs +1 -1
- package/dist/cjs/__next__/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/future.cjs +1 -1
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/next.cjs +1 -1
- package/dist/cjs/overlaysV3.cjs +0 -2
- package/dist/cjs/utilitiesV3.cjs +3 -0
- package/dist/cjs/{__utilities__ → utils}/ReversedColors/ReversedColors.cjs +9 -0
- package/dist/esm/Focusable/Focusable.module.scss.mjs +4 -0
- package/dist/esm/LinkButton/LinkButton.mjs +1 -1
- package/dist/esm/Pagination/Pagination.mjs +1 -0
- package/dist/esm/__next__/Button/Button.mjs +1 -1
- package/dist/esm/__next__/Select/subcomponents/ListBox/ListBox.mjs +1 -1
- package/dist/esm/__next__/Tabs/subcomponents/TabList/TabList.mjs +1 -1
- package/dist/esm/__next__/Tooltip/OverlayArrow.mjs +1 -1
- package/dist/esm/__next__/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/future.mjs +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/next.mjs +1 -1
- package/dist/esm/overlaysV3.mjs +0 -1
- package/dist/esm/utilitiesV3.mjs +1 -0
- package/dist/esm/utils/ReversedColors/ReversedColors.mjs +14 -0
- package/dist/styles.css +1 -1
- package/dist/types/__next__/Tooltip/index.d.ts +0 -1
- package/dist/types/__next__/index.d.ts +1 -0
- package/dist/types/__utilities__/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/_docs/ApiSpecification.mdx +3 -3
- package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/_docs/Focusable.stories.tsx +1 -1
- package/src/LinkButton/LinkButton.tsx +1 -1
- package/src/__next__/Button/Button.tsx +1 -1
- package/src/__next__/Button/_docs/Button.docs.stories.tsx +1 -1
- package/src/__next__/Select/subcomponents/ListBox/ListBox.tsx +1 -1
- package/src/__next__/Tabs/subcomponents/TabList/TabList.tsx +1 -1
- package/src/__next__/Tooltip/OverlayArrow.tsx +1 -1
- package/src/__next__/Tooltip/Tooltip.tsx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +2 -1
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +2 -1
- package/src/__next__/Tooltip/_docs/Tooltip.stickersheet.stories.tsx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -1
- package/src/__next__/Tooltip/index.ts +0 -1
- package/src/__next__/index.ts +4 -0
- package/src/__utilities__/index.ts +2 -1
- package/src/utils/index.ts +1 -0
- package/dist/cjs/__next__/Tooltip/subcomponents/Focusable/Focusable.module.scss.cjs +0 -6
- package/dist/esm/__next__/Tooltip/subcomponents/Focusable/Focusable.module.scss.mjs +0 -4
- package/dist/esm/__utilities__/ReversedColors/ReversedColors.mjs +0 -6
- /package/dist/cjs/{__next__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.cjs +0 -0
- /package/dist/cjs/{__utilities__ → utils}/isRTL/isRTL.cjs +0 -0
- /package/dist/cjs/{__utilities__ → utils}/useIsClientReady/useIsClientReady.cjs +0 -0
- /package/dist/esm/{__next__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.mjs +0 -0
- /package/dist/esm/{__utilities__ → utils}/isRTL/isRTL.mjs +0 -0
- /package/dist/esm/{__utilities__ → utils}/useIsClientReady/useIsClientReady.mjs +0 -0
- /package/dist/types/{__next__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.d.ts +0 -0
- /package/dist/types/{__next__/Tooltip/subcomponents/Focusable → Focusable}/index.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/ReversedColors/ReversedColors.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/ReversedColors/index.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/isRTL/index.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/isRTL/isRTL.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/useIsClientReady/index.d.ts +0 -0
- /package/dist/types/{__utilities__ → utils}/useIsClientReady/useIsClientReady.d.ts +0 -0
- /package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.module.scss +0 -0
- /package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.tsx +0 -0
- /package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/index.ts +0 -0
- /package/src/{__utilities__ → utils}/ReversedColors/ReversedColors.tsx +0 -0
- /package/src/{__utilities__ → utils}/ReversedColors/index.ts +0 -0
- /package/src/{__utilities__ → utils}/isRTL/index.ts +0 -0
- /package/src/{__utilities__ → utils}/isRTL/isRTL.spec.tsx +0 -0
- /package/src/{__utilities__ → utils}/isRTL/isRTL.ts +0 -0
- /package/src/{__utilities__ → utils}/useIsClientReady/index.ts +0 -0
- /package/src/{__utilities__ → utils}/useIsClientReady/useIsClientReady.tsx +0 -0
|
@@ -11,7 +11,7 @@ require('../Loading/LoadingParagraph/LoadingParagraph.cjs');
|
|
|
11
11
|
require('../Loading/LoadingSpinner/LoadingSpinner.cjs');
|
|
12
12
|
require('../VisuallyHidden/VisuallyHidden.cjs');
|
|
13
13
|
var ButtonContent = require('../__next__/Button/subcomponents/ButtonContent/ButtonContent.cjs');
|
|
14
|
-
var ReversedColors = require('../
|
|
14
|
+
var ReversedColors = require('../utils/ReversedColors/ReversedColors.cjs');
|
|
15
15
|
var mergeClassNames = require('../utils/mergeClassNames.cjs');
|
|
16
16
|
var Button_module = require('../__next__/Button/Button.module.css.cjs');
|
|
17
17
|
var LinkButton_module = require('./LinkButton.module.css.cjs');
|
|
@@ -4,6 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var useMediaQueries = require('../utils/useMediaQueries.cjs');
|
|
7
|
+
require('../utils/ReversedColors/ReversedColors.cjs');
|
|
7
8
|
var DirectionalLink = require('./subcomponents/DirectionalLink/DirectionalLink.cjs');
|
|
8
9
|
var PaginationLink = require('./subcomponents/PaginationLink/PaginationLink.cjs');
|
|
9
10
|
var TruncateIndicator = require('./subcomponents/TruncateIndicator/TruncateIndicator.cjs');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactAriaComponents = require('react-aria-components');
|
|
6
|
-
var ReversedColors = require('../../
|
|
6
|
+
var ReversedColors = require('../../utils/ReversedColors/ReversedColors.cjs');
|
|
7
7
|
var mergeClassNames = require('../../utils/mergeClassNames.cjs');
|
|
8
8
|
var PendingContent = require('./subcomponents/PendingContent/PendingContent.cjs');
|
|
9
9
|
var ButtonContent = require('./subcomponents/ButtonContent/ButtonContent.cjs');
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var listbox = require('@react-aria/listbox');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var useIsClientReady = require('../../../../
|
|
7
|
+
var useIsClientReady = require('../../../../utils/useIsClientReady/useIsClientReady.cjs');
|
|
8
8
|
var SelectContext = require('../../context/SelectContext.cjs');
|
|
9
9
|
var ListBox_module = require('./ListBox.module.scss.cjs');
|
|
10
10
|
function _interopDefault(e) {
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactAriaComponents = require('react-aria-components');
|
|
7
7
|
var Icon = require('../../../Icon/Icon.cjs');
|
|
8
|
-
var isRTL = require('../../../../
|
|
8
|
+
var isRTL = require('../../../../utils/isRTL/isRTL.cjs');
|
|
9
9
|
var constants = require('../../constants.cjs');
|
|
10
10
|
var TabList_module = require('./TabList.module.css.cjs');
|
|
11
11
|
function _interopDefault(e) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactAriaComponents = require('react-aria-components');
|
|
6
|
-
var ReversedColors = require('../../
|
|
6
|
+
var ReversedColors = require('../../utils/ReversedColors/ReversedColors.cjs');
|
|
7
7
|
var mergeClassNames = require('../../utils/mergeClassNames.cjs');
|
|
8
8
|
var OverlayArrow_module = require('./OverlayArrow.module.scss.cjs');
|
|
9
9
|
function _interopDefault(e) {
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactAriaComponents = require('react-aria-components');
|
|
6
6
|
var VisuallyHidden = require('../../VisuallyHidden/VisuallyHidden.cjs');
|
|
7
|
-
var ReversedColors = require('../../
|
|
7
|
+
var ReversedColors = require('../../utils/ReversedColors/ReversedColors.cjs');
|
|
8
8
|
var mergeClassNames = require('../../utils/mergeClassNames.cjs');
|
|
9
9
|
var OverlayArrow = require('./OverlayArrow.cjs');
|
|
10
10
|
var Tooltip_module = require('./Tooltip.module.scss.cjs');
|
package/dist/cjs/future.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var TabList = require('./__next__/Tabs/subcomponents/TabList/TabList.cjs');
|
|
|
17
17
|
var TabPanel = require('./__next__/Tabs/subcomponents/TabPanel/TabPanel.cjs');
|
|
18
18
|
var Tooltip = require('./__next__/Tooltip/Tooltip.cjs');
|
|
19
19
|
var TooltipTrigger = require('./__next__/Tooltip/TooltipTrigger.cjs');
|
|
20
|
-
var Focusable = require('./
|
|
20
|
+
var Focusable = require('./Focusable/Focusable.cjs');
|
|
21
21
|
var reactAriaComponents = require('react-aria-components');
|
|
22
22
|
exports.Button = Button.Button;
|
|
23
23
|
exports.Icon = Icon.Icon;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -410,6 +410,7 @@ var ToggleSwitchField = require('./ToggleSwitch/ToggleSwitchField/ToggleSwitchFi
|
|
|
410
410
|
var Tooltip = require('./Tooltip/Tooltip.cjs');
|
|
411
411
|
var useMediaQueries = require('./utils/useMediaQueries.cjs');
|
|
412
412
|
var hostedAssets = require('./utils/hostedAssets.cjs');
|
|
413
|
+
var ReversedColors = require('./utils/ReversedColors/ReversedColors.cjs');
|
|
413
414
|
var VisuallyHidden = require('./VisuallyHidden/VisuallyHidden.cjs');
|
|
414
415
|
var Well = require('./Well/Well.cjs');
|
|
415
416
|
var Workflow = require('./Workflow/Workflow.cjs');
|
|
@@ -1047,6 +1048,8 @@ exports.Tooltip = Tooltip.Tooltip;
|
|
|
1047
1048
|
exports.subtractOnePixel = useMediaQueries.subtractOnePixel;
|
|
1048
1049
|
exports.useMediaQueries = useMediaQueries.useMediaQueries;
|
|
1049
1050
|
exports.assetUrl = hostedAssets.assetUrl;
|
|
1051
|
+
exports.ReversedColors = ReversedColors.ReversedColors;
|
|
1052
|
+
exports.useReversedColors = ReversedColors.useReversedColors;
|
|
1050
1053
|
exports.VisuallyHidden = VisuallyHidden.VisuallyHidden;
|
|
1051
1054
|
exports.Well = Well.Well;
|
|
1052
1055
|
exports.Workflow = Workflow.Workflow;
|
package/dist/cjs/next.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var TabList = require('./__next__/Tabs/subcomponents/TabList/TabList.cjs');
|
|
|
17
17
|
var TabPanel = require('./__next__/Tabs/subcomponents/TabPanel/TabPanel.cjs');
|
|
18
18
|
var Tooltip = require('./__next__/Tooltip/Tooltip.cjs');
|
|
19
19
|
var TooltipTrigger = require('./__next__/Tooltip/TooltipTrigger.cjs');
|
|
20
|
-
var Focusable = require('./
|
|
20
|
+
var Focusable = require('./Focusable/Focusable.cjs');
|
|
21
21
|
var reactAriaComponents = require('react-aria-components');
|
|
22
22
|
exports.Button = Button.Button;
|
|
23
23
|
exports.Icon = Icon.Icon;
|
package/dist/cjs/overlaysV3.cjs
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var Tooltip = require('./__next__/Tooltip/Tooltip.cjs');
|
|
4
4
|
var TooltipTrigger = require('./__next__/Tooltip/TooltipTrigger.cjs');
|
|
5
|
-
var Focusable = require('./__next__/Tooltip/subcomponents/Focusable/Focusable.cjs');
|
|
6
5
|
var reactAriaComponents = require('react-aria-components');
|
|
7
6
|
exports.Tooltip = Tooltip.Tooltip;
|
|
8
7
|
exports.TooltipTrigger = TooltipTrigger.TooltipTrigger;
|
|
9
|
-
exports.Focusable = Focusable.Focusable;
|
|
10
8
|
Object.defineProperty(exports, "TooltipContext", {
|
|
11
9
|
enumerable: true,
|
|
12
10
|
get: function () {
|
package/dist/cjs/utilitiesV3.cjs
CHANGED
|
@@ -410,6 +410,7 @@ var ToggleSwitchField = require('./ToggleSwitch/ToggleSwitchField/ToggleSwitchFi
|
|
|
410
410
|
var Tooltip = require('./Tooltip/Tooltip.cjs');
|
|
411
411
|
var useMediaQueries = require('./utils/useMediaQueries.cjs');
|
|
412
412
|
var hostedAssets = require('./utils/hostedAssets.cjs');
|
|
413
|
+
var ReversedColors = require('./utils/ReversedColors/ReversedColors.cjs');
|
|
413
414
|
var VisuallyHidden = require('./VisuallyHidden/VisuallyHidden.cjs');
|
|
414
415
|
var Well = require('./Well/Well.cjs');
|
|
415
416
|
var Workflow = require('./Workflow/Workflow.cjs');
|
|
@@ -1047,6 +1048,8 @@ exports.Tooltip = Tooltip.Tooltip;
|
|
|
1047
1048
|
exports.subtractOnePixel = useMediaQueries.subtractOnePixel;
|
|
1048
1049
|
exports.useMediaQueries = useMediaQueries.useMediaQueries;
|
|
1049
1050
|
exports.assetUrl = hostedAssets.assetUrl;
|
|
1051
|
+
exports.ReversedColors = ReversedColors.ReversedColors;
|
|
1052
|
+
exports.useReversedColors = ReversedColors.useReversedColors;
|
|
1050
1053
|
exports.VisuallyHidden = VisuallyHidden.VisuallyHidden;
|
|
1051
1054
|
exports.Well = Well.Well;
|
|
1052
1055
|
exports.Workflow = Workflow.Workflow;
|
|
@@ -11,4 +11,13 @@ var ReversedColorsContext = React__default.default.createContext(false);
|
|
|
11
11
|
var useReversedColors = function () {
|
|
12
12
|
return React__default.default.useContext(ReversedColorsContext);
|
|
13
13
|
};
|
|
14
|
+
var ReversedColors = function (_a) {
|
|
15
|
+
var children = _a.children,
|
|
16
|
+
_b = _a.isReversed,
|
|
17
|
+
isReversed = _b === undefined ? true : _b;
|
|
18
|
+
return React__default.default.createElement(ReversedColorsContext.Provider, {
|
|
19
|
+
value: isReversed
|
|
20
|
+
}, children);
|
|
21
|
+
};
|
|
22
|
+
exports.ReversedColors = ReversedColors;
|
|
14
23
|
exports.useReversedColors = useReversedColors;
|
|
@@ -9,7 +9,7 @@ import '../Loading/LoadingParagraph/LoadingParagraph.mjs';
|
|
|
9
9
|
import '../Loading/LoadingSpinner/LoadingSpinner.mjs';
|
|
10
10
|
import '../VisuallyHidden/VisuallyHidden.mjs';
|
|
11
11
|
import { ButtonContent } from '../__next__/Button/subcomponents/ButtonContent/ButtonContent.mjs';
|
|
12
|
-
import { useReversedColors } from '../
|
|
12
|
+
import { useReversedColors } from '../utils/ReversedColors/ReversedColors.mjs';
|
|
13
13
|
import { mergeClassNames } from '../utils/mergeClassNames.mjs';
|
|
14
14
|
import buttonStyles from '../__next__/Button/Button.module.css.mjs';
|
|
15
15
|
import styles from './LinkButton.module.css.mjs';
|
|
@@ -2,6 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useMediaQueries } from '../utils/useMediaQueries.mjs';
|
|
5
|
+
import '../utils/ReversedColors/ReversedColors.mjs';
|
|
5
6
|
import { DirectionalLink } from './subcomponents/DirectionalLink/DirectionalLink.mjs';
|
|
6
7
|
import { PaginationLink } from './subcomponents/PaginationLink/PaginationLink.mjs';
|
|
7
8
|
import { TruncateIndicator } from './subcomponents/TruncateIndicator/TruncateIndicator.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Button as Button$1 } from 'react-aria-components';
|
|
4
|
-
import { useReversedColors } from '../../
|
|
4
|
+
import { useReversedColors } from '../../utils/ReversedColors/ReversedColors.mjs';
|
|
5
5
|
import { mergeClassNames } from '../../utils/mergeClassNames.mjs';
|
|
6
6
|
import { PendingContent } from './subcomponents/PendingContent/PendingContent.mjs';
|
|
7
7
|
import { ButtonContent } from './subcomponents/ButtonContent/ButtonContent.mjs';
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import { useListBox } from '@react-aria/listbox';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { useIsClientReady } from '../../../../
|
|
5
|
+
import { useIsClientReady } from '../../../../utils/useIsClientReady/useIsClientReady.mjs';
|
|
6
6
|
import { useSelectContext } from '../../context/SelectContext.mjs';
|
|
7
7
|
import styles from './ListBox.module.scss.mjs';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import React, { useState, useRef, useId, useContext, useEffect } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { TabListStateContext, TabList as TabList$1 } from 'react-aria-components';
|
|
5
5
|
import { Icon } from '../../../Icon/Icon.mjs';
|
|
6
|
-
import { isRTL } from '../../../../
|
|
6
|
+
import { isRTL } from '../../../../utils/isRTL/isRTL.mjs';
|
|
7
7
|
import { SCROLL_AMOUNT } from '../../constants.mjs';
|
|
8
8
|
import styles from './TabList.module.css.mjs';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OverlayArrow as OverlayArrow$1 } from 'react-aria-components';
|
|
4
|
-
import { useReversedColors } from '../../
|
|
4
|
+
import { useReversedColors } from '../../utils/ReversedColors/ReversedColors.mjs';
|
|
5
5
|
import { mergeClassNames } from '../../utils/mergeClassNames.mjs';
|
|
6
6
|
import styles from './OverlayArrow.module.scss.mjs';
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import React, { forwardRef, useContext, useState, useLayoutEffect } from 'react'
|
|
|
3
3
|
import { useContextProps, TooltipContext, TooltipTriggerStateContext, Tooltip as Tooltip$1 } from 'react-aria-components';
|
|
4
4
|
export { TooltipContext } from 'react-aria-components';
|
|
5
5
|
import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden.mjs';
|
|
6
|
-
import { useReversedColors } from '../../
|
|
6
|
+
import { useReversedColors } from '../../utils/ReversedColors/ReversedColors.mjs';
|
|
7
7
|
import { mergeClassNames } from '../../utils/mergeClassNames.mjs';
|
|
8
8
|
import { OverlayArrow } from './OverlayArrow.mjs';
|
|
9
9
|
import styles from './Tooltip.module.scss.mjs';
|
package/dist/esm/future.mjs
CHANGED
|
@@ -15,5 +15,5 @@ export { TabList } from './__next__/Tabs/subcomponents/TabList/TabList.mjs';
|
|
|
15
15
|
export { TabPanel } from './__next__/Tabs/subcomponents/TabPanel/TabPanel.mjs';
|
|
16
16
|
export { Tooltip } from './__next__/Tooltip/Tooltip.mjs';
|
|
17
17
|
export { TooltipTrigger } from './__next__/Tooltip/TooltipTrigger.mjs';
|
|
18
|
-
export { Focusable } from './
|
|
18
|
+
export { Focusable } from './Focusable/Focusable.mjs';
|
|
19
19
|
export { TooltipContext } from 'react-aria-components';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -415,6 +415,7 @@ export { ToggleSwitchField } from './ToggleSwitch/ToggleSwitchField/ToggleSwitch
|
|
|
415
415
|
export { Tooltip } from './Tooltip/Tooltip.mjs';
|
|
416
416
|
export { subtractOnePixel, useMediaQueries } from './utils/useMediaQueries.mjs';
|
|
417
417
|
export { assetUrl } from './utils/hostedAssets.mjs';
|
|
418
|
+
export { ReversedColors, useReversedColors } from './utils/ReversedColors/ReversedColors.mjs';
|
|
418
419
|
export { VisuallyHidden } from './VisuallyHidden/VisuallyHidden.mjs';
|
|
419
420
|
export { Well } from './Well/Well.mjs';
|
|
420
421
|
export { Workflow } from './Workflow/Workflow.mjs';
|
package/dist/esm/next.mjs
CHANGED
|
@@ -15,5 +15,5 @@ export { TabList } from './__next__/Tabs/subcomponents/TabList/TabList.mjs';
|
|
|
15
15
|
export { TabPanel } from './__next__/Tabs/subcomponents/TabPanel/TabPanel.mjs';
|
|
16
16
|
export { Tooltip } from './__next__/Tooltip/Tooltip.mjs';
|
|
17
17
|
export { TooltipTrigger } from './__next__/Tooltip/TooltipTrigger.mjs';
|
|
18
|
-
export { Focusable } from './
|
|
18
|
+
export { Focusable } from './Focusable/Focusable.mjs';
|
|
19
19
|
export { TooltipContext } from 'react-aria-components';
|
package/dist/esm/overlaysV3.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { Tooltip } from './__next__/Tooltip/Tooltip.mjs';
|
|
2
2
|
export { TooltipTrigger } from './__next__/Tooltip/TooltipTrigger.mjs';
|
|
3
|
-
export { Focusable } from './__next__/Tooltip/subcomponents/Focusable/Focusable.mjs';
|
|
4
3
|
export { TooltipContext } from 'react-aria-components';
|
package/dist/esm/utilitiesV3.mjs
CHANGED
|
@@ -415,6 +415,7 @@ export { ToggleSwitchField } from './ToggleSwitch/ToggleSwitchField/ToggleSwitch
|
|
|
415
415
|
export { Tooltip } from './Tooltip/Tooltip.mjs';
|
|
416
416
|
export { subtractOnePixel, useMediaQueries } from './utils/useMediaQueries.mjs';
|
|
417
417
|
export { assetUrl } from './utils/hostedAssets.mjs';
|
|
418
|
+
export { ReversedColors, useReversedColors } from './utils/ReversedColors/ReversedColors.mjs';
|
|
418
419
|
export { VisuallyHidden } from './VisuallyHidden/VisuallyHidden.mjs';
|
|
419
420
|
export { Well } from './Well/Well.mjs';
|
|
420
421
|
export { Workflow } from './Workflow/Workflow.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
var ReversedColorsContext = /*#__PURE__*/React.createContext(false);
|
|
3
|
+
var useReversedColors = function () {
|
|
4
|
+
return React.useContext(ReversedColorsContext);
|
|
5
|
+
};
|
|
6
|
+
var ReversedColors = function (_a) {
|
|
7
|
+
var children = _a.children,
|
|
8
|
+
_b = _a.isReversed,
|
|
9
|
+
isReversed = _b === undefined ? true : _b;
|
|
10
|
+
return /*#__PURE__*/React.createElement(ReversedColorsContext.Provider, {
|
|
11
|
+
value: isReversed
|
|
12
|
+
}, children);
|
|
13
|
+
};
|
|
14
|
+
export { ReversedColors, useReversedColors };
|
package/dist/styles.css
CHANGED
|
@@ -5809,7 +5809,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs::-ms-thumb:not(:disa
|
|
|
5809
5809
|
opacity: 1;
|
|
5810
5810
|
}
|
|
5811
5811
|
}
|
|
5812
|
-
.Focusable-
|
|
5812
|
+
.Focusable-module_focusableWrapper__zd-5E {
|
|
5813
5813
|
display: inline-flex;
|
|
5814
5814
|
}
|
|
5815
5815
|
.NotificationIcon-module_notificationIcon__4xH0m {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../utils/ReversedColors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-introduce-next-entrypoint-
|
|
3
|
+
"version": "0.0.0-canary-introduce-next-entrypoint-20250225045407",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"./v3/utilities": {
|
|
91
91
|
"import": "./dist/esm/utilitiesV3.mjs",
|
|
92
92
|
"require": "./dist/cjs/utilitiesV3.cjs",
|
|
93
|
-
"types": "./dist/types/__utilities__/
|
|
93
|
+
"types": "./dist/types/__utilities__/index.d.ts"
|
|
94
94
|
},
|
|
95
95
|
"./dist/styles.css": {
|
|
96
96
|
"import": "./dist/styles.css",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"svgo": "^3.3.2",
|
|
186
186
|
"tslib": "^2.8.1",
|
|
187
187
|
"tsx": "^4.19.2",
|
|
188
|
-
"@kaizen/
|
|
189
|
-
"@kaizen/
|
|
188
|
+
"@kaizen/package-bundler": "2.0.4",
|
|
189
|
+
"@kaizen/design-tokens": "10.8.7"
|
|
190
190
|
},
|
|
191
191
|
"devDependenciesComments": {
|
|
192
192
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
package/src/{__next__/Tooltip/subcomponents/Focusable → Focusable}/_docs/ApiSpecification.mdx
RENAMED
|
@@ -2,18 +2,18 @@ import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
|
2
2
|
import { KAIOInstallation, ResourceLinks } from '~storybook/components'
|
|
3
3
|
import * as exampleStories from './Focusable.stories'
|
|
4
4
|
|
|
5
|
-
<Meta title="Components/
|
|
5
|
+
<Meta title="Components/Focusable/API Specification" />
|
|
6
6
|
|
|
7
7
|
# Focusable API Specification
|
|
8
8
|
|
|
9
9
|
Updated June 25, 2024
|
|
10
10
|
|
|
11
11
|
<ResourceLinks
|
|
12
|
-
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/
|
|
12
|
+
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Focusable"
|
|
13
13
|
className="mt-16 !mb-8"
|
|
14
14
|
/>
|
|
15
15
|
|
|
16
|
-
<KAIOInstallation exportNames={['Focusable']}
|
|
16
|
+
<KAIOInstallation exportNames={['Focusable']} />
|
|
17
17
|
|
|
18
18
|
## Overview
|
|
19
19
|
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react'
|
|
|
2
2
|
import { Link as RACLink, type LinkProps as RACLinkProps } from 'react-aria-components'
|
|
3
3
|
import { type ButtonUIProps } from '~components/__next__/Button'
|
|
4
4
|
import { ButtonContent } from '~components/__next__/Button/subcomponents'
|
|
5
|
-
import { useReversedColors } from '~components/
|
|
5
|
+
import { useReversedColors } from '~components/utils'
|
|
6
6
|
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
7
7
|
import buttonStyles from '../__next__/Button/Button.module.css'
|
|
8
8
|
import styles from './LinkButton.module.css'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react'
|
|
2
2
|
import { Button as RACButton, type ButtonProps as RACButtonProps } from 'react-aria-components'
|
|
3
|
-
import { useReversedColors } from '~components/
|
|
3
|
+
import { useReversedColors } from '~components/utils'
|
|
4
4
|
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
5
5
|
import { ButtonContent, PendingContent } from './subcomponents'
|
|
6
6
|
import { type ButtonSizes, type ButtonVariants, type PendingButtonProps } from './types'
|
|
@@ -2,8 +2,8 @@ import React, { useEffect, useRef, type HTMLAttributes, type Key, type ReactNode
|
|
|
2
2
|
import { useListBox, type AriaListBoxOptions } from '@react-aria/listbox'
|
|
3
3
|
import { type SelectState } from '@react-stately/select'
|
|
4
4
|
import classnames from 'classnames'
|
|
5
|
-
import { useIsClientReady } from '~components/__utilities__/useIsClientReady'
|
|
6
5
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
6
|
+
import { useIsClientReady } from '~components/utils/useIsClientReady'
|
|
7
7
|
import { useSelectContext } from '../../context'
|
|
8
8
|
import { type SelectItem, type SelectOption } from '../../types'
|
|
9
9
|
import styles from './ListBox.module.scss'
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type TabListProps as RACTabListProps,
|
|
7
7
|
} from 'react-aria-components'
|
|
8
8
|
import { Icon } from '~components/__next__/Icon'
|
|
9
|
-
import { isRTL as isRTLCheck } from '~components/
|
|
9
|
+
import { isRTL as isRTLCheck } from '~components/utils/isRTL'
|
|
10
10
|
import { SCROLL_AMOUNT } from '../../constants'
|
|
11
11
|
import styles from './TabList.module.css'
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { OverlayArrow as RACOverlayArrow, type OverlayArrowProps } from 'react-aria-components'
|
|
3
|
-
import { useReversedColors } from '~components/
|
|
3
|
+
import { useReversedColors } from '~components/utils'
|
|
4
4
|
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
5
5
|
|
|
6
6
|
import styles from './OverlayArrow.module.scss'
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
type TooltipProps as RACTooltipProps,
|
|
8
8
|
} from 'react-aria-components'
|
|
9
9
|
import { VisuallyHidden } from '~components/VisuallyHidden'
|
|
10
|
-
import { useReversedColors } from '~components/
|
|
10
|
+
import { useReversedColors } from '~components/utils'
|
|
11
11
|
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
12
12
|
import { OverlayArrow } from './OverlayArrow'
|
|
13
13
|
import styles from './Tooltip.module.scss'
|
|
@@ -3,11 +3,12 @@ import { type Meta, type StoryObj } from '@storybook/react'
|
|
|
3
3
|
import isChromatic from 'chromatic'
|
|
4
4
|
import { Button, IconButton } from '~components/Button'
|
|
5
5
|
import { FieldMessage } from '~components/FieldMessage'
|
|
6
|
+
import { Focusable } from '~components/Focusable'
|
|
6
7
|
import { Input } from '~components/Input'
|
|
7
8
|
import { Label } from '~components/Label'
|
|
8
9
|
import { Text } from '~components/Text'
|
|
9
10
|
import { Icon } from '~components/__next__/Icon'
|
|
10
|
-
import {
|
|
11
|
+
import { Tooltip, TooltipTrigger } from '../index'
|
|
11
12
|
import * as TestStories from './Tooltip.spec.stories'
|
|
12
13
|
|
|
13
14
|
const meta = {
|
|
@@ -3,11 +3,12 @@ import { type Meta, type StoryObj } from '@storybook/react'
|
|
|
3
3
|
import { expect, userEvent, waitFor, within } from '@storybook/test'
|
|
4
4
|
import isChromatic from 'chromatic'
|
|
5
5
|
import { Button, IconButton } from '~components/Button'
|
|
6
|
+
import { Focusable } from '~components/Focusable'
|
|
6
7
|
import { Tab, TabList, TabPanel, TabPanels, Tabs } from '~components/Tabs'
|
|
7
8
|
import { Text } from '~components/Text'
|
|
8
9
|
import { Icon } from '~components/__next__/Icon'
|
|
9
10
|
import { Tag } from '~components/__next__/Tag'
|
|
10
|
-
import {
|
|
11
|
+
import { Tooltip, TooltipTrigger } from '../index'
|
|
11
12
|
|
|
12
13
|
const meta = {
|
|
13
14
|
title: 'Components/Tooltip/Tooltip (next)/Tests',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { composeStories, type Meta, type StoryObj } from '@storybook/react'
|
|
3
|
-
import { ReversedColors } from '~components/
|
|
3
|
+
import { ReversedColors } from '~components/utils'
|
|
4
4
|
import { mergeClassNames } from '~components/utils/mergeClassNames'
|
|
5
5
|
import * as testStories from './Tooltip.spec.stories'
|
|
6
6
|
|
|
@@ -2,8 +2,9 @@ import React, { type FunctionComponent } from 'react'
|
|
|
2
2
|
import { type Meta, type StoryObj } from '@storybook/react'
|
|
3
3
|
import isChromatic from 'chromatic'
|
|
4
4
|
import { Button } from '~components/Button'
|
|
5
|
+
import { Focusable } from '~components/Focusable'
|
|
5
6
|
import { Tag } from '~components/__next__'
|
|
6
|
-
import {
|
|
7
|
+
import { Tooltip, TooltipTrigger } from '../index'
|
|
7
8
|
import * as testStories from './Tooltip.spec.stories'
|
|
8
9
|
|
|
9
10
|
const meta = {
|
package/src/__next__/index.ts
CHANGED
|
@@ -5,3 +5,7 @@ export * from './Select'
|
|
|
5
5
|
export * from './Tag'
|
|
6
6
|
export * from './Tabs'
|
|
7
7
|
export * from './Tooltip'
|
|
8
|
+
|
|
9
|
+
// This Focusable component was originally exported from here, but since moved to the main entry point because there's no name clash.
|
|
10
|
+
// This is just here to keep backwards compatibility until the 2.0 release
|
|
11
|
+
export * from '../Focusable'
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// Remove this folder in 2.0 release when v3/utilities entry point is removed
|
|
2
|
+
export * from '../utils/ReversedColors'
|
package/src/utils/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|