@atlaskit/atlassian-navigation 5.7.0 → 5.7.2
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/cjs/common/action-section-desktop-css.js +12 -0
- package/dist/cjs/common/action-section-mobile-css.js +12 -0
- package/dist/cjs/common/styles.js +13 -9
- package/dist/cjs/nav4-skeleton-notification-button.js +24 -0
- package/dist/cjs/nav4-skeleton-settings-button.js +23 -0
- package/dist/cjs/nav4-skeleton-switcher-button.js +24 -0
- package/dist/cjs/skeleton-notification-button.js +8 -16
- package/dist/cjs/skeleton-settings-button.js +8 -15
- package/dist/cjs/skeleton-switcher-button.js +8 -17
- package/dist/cjs/theme/atlassian-theme.js +13 -0
- package/dist/cjs/theme/get-box-shadow.js +9 -0
- package/dist/cjs/theme/theme-context.js +10 -0
- package/dist/cjs/theme/theme-generator.js +7 -6
- package/dist/cjs/theme/theme-helpers.js +10 -5
- package/dist/cjs/theme/theme-provider.js +9 -8
- package/dist/cjs/theme/themes.js +8 -8
- package/dist/cjs/theme/use-theme.js +2 -2
- package/dist/es2019/common/action-section-desktop-css.js +6 -0
- package/dist/es2019/common/action-section-mobile-css.js +6 -0
- package/dist/es2019/common/styles.js +2 -11
- package/dist/es2019/nav4-skeleton-notification-button.js +15 -0
- package/dist/es2019/nav4-skeleton-settings-button.js +14 -0
- package/dist/es2019/nav4-skeleton-switcher-button.js +15 -0
- package/dist/es2019/skeleton-notification-button.js +1 -13
- package/dist/es2019/skeleton-settings-button.js +1 -12
- package/dist/es2019/skeleton-switcher-button.js +1 -14
- package/dist/es2019/theme/atlassian-theme.js +7 -0
- package/dist/es2019/theme/get-box-shadow.js +1 -0
- package/dist/es2019/theme/theme-context.js +4 -0
- package/dist/es2019/theme/theme-generator.js +2 -1
- package/dist/es2019/theme/theme-helpers.js +3 -5
- package/dist/es2019/theme/theme-provider.js +3 -7
- package/dist/es2019/theme/themes.js +3 -8
- package/dist/es2019/theme/use-theme.js +1 -1
- package/dist/esm/common/action-section-desktop-css.js +5 -0
- package/dist/esm/common/action-section-mobile-css.js +5 -0
- package/dist/esm/common/styles.js +2 -8
- package/dist/esm/nav4-skeleton-notification-button.js +17 -0
- package/dist/esm/nav4-skeleton-settings-button.js +16 -0
- package/dist/esm/nav4-skeleton-switcher-button.js +17 -0
- package/dist/esm/skeleton-notification-button.js +1 -15
- package/dist/esm/skeleton-settings-button.js +1 -14
- package/dist/esm/skeleton-switcher-button.js +1 -16
- package/dist/esm/theme/atlassian-theme.js +7 -0
- package/dist/esm/theme/get-box-shadow.js +3 -0
- package/dist/esm/theme/theme-context.js +4 -0
- package/dist/esm/theme/theme-generator.js +2 -1
- package/dist/esm/theme/theme-helpers.js +3 -5
- package/dist/esm/theme/theme-provider.js +3 -7
- package/dist/esm/theme/themes.js +3 -8
- package/dist/esm/theme/use-theme.js +1 -1
- package/dist/types/common/action-section-desktop-css.d.ts +5 -0
- package/dist/types/common/action-section-mobile-css.d.ts +5 -0
- package/dist/types/common/styles.d.ts +2 -10
- package/dist/types/nav4-skeleton-notification-button.d.ts +9 -0
- package/dist/types/nav4-skeleton-settings-button.d.ts +8 -0
- package/dist/types/nav4-skeleton-switcher-button.d.ts +8 -0
- package/dist/types/skeleton-notification-button.d.ts +1 -7
- package/dist/types/skeleton-settings-button.d.ts +1 -6
- package/dist/types/skeleton-switcher-button.d.ts +1 -6
- package/dist/types/theme/atlassian-theme.d.ts +2 -0
- package/dist/types/theme/get-box-shadow.d.ts +1 -0
- package/dist/types/theme/theme-context.d.ts +3 -0
- package/dist/types/theme/theme-helpers.d.ts +1 -1
- package/dist/types/theme/theme-provider.d.ts +2 -2
- package/dist/types/theme/themes.d.ts +1 -1
- package/dist/types-ts4.5/common/action-section-desktop-css.d.ts +5 -0
- package/dist/types-ts4.5/common/action-section-mobile-css.d.ts +5 -0
- package/dist/types-ts4.5/common/styles.d.ts +2 -10
- package/dist/types-ts4.5/nav4-skeleton-notification-button.d.ts +9 -0
- package/dist/types-ts4.5/nav4-skeleton-settings-button.d.ts +8 -0
- package/dist/types-ts4.5/nav4-skeleton-switcher-button.d.ts +8 -0
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -7
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -6
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -6
- package/dist/types-ts4.5/theme/atlassian-theme.d.ts +2 -0
- package/dist/types-ts4.5/theme/get-box-shadow.d.ts +1 -0
- package/dist/types-ts4.5/theme/theme-context.d.ts +3 -0
- package/dist/types-ts4.5/theme/theme-helpers.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-provider.d.ts +2 -2
- package/dist/types-ts4.5/theme/themes.d.ts +1 -1
- package/package.json +12 -12
|
@@ -2,13 +2,10 @@ import chromatism from 'chromatism';
|
|
|
2
2
|
export const hexToRGBA = (hex, opacity = 1) => {
|
|
3
3
|
const rgba = {
|
|
4
4
|
...chromatism.convert(hex).rgb,
|
|
5
|
-
|
|
6
|
-
a: opacity
|
|
7
|
-
}
|
|
5
|
+
a: opacity
|
|
8
6
|
};
|
|
9
7
|
return `rgba(${Object.values(rgba).join(', ')})`;
|
|
10
8
|
};
|
|
11
|
-
export const getBoxShadow = color => `0 0 0 2px ${color}`;
|
|
12
9
|
const hex = '[a-z0-9]';
|
|
13
10
|
const shortHandHexColorPattern = new RegExp(`#(${hex})(${hex})(${hex})`, 'i');
|
|
14
11
|
const repeat = (str, times) => [...Array(times)].map(() => str).join('');
|
|
@@ -40,4 +37,5 @@ export const generateTextColor = color => {
|
|
|
40
37
|
const converted = convertHexShorthand(color);
|
|
41
38
|
return chromatism.contrastRatio(converted).hex;
|
|
42
39
|
};
|
|
43
|
-
export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
|
|
40
|
+
export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
|
|
41
|
+
export { getBoxShadow } from './get-box-shadow';
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultTheme } from './themes';
|
|
3
|
-
// Internal only
|
|
4
|
-
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
5
|
-
export const ThemeContext = /*#__PURE__*/createContext(defaultTheme);
|
|
6
|
-
|
|
1
|
+
import { ThemeContext } from './theme-context';
|
|
7
2
|
/**
|
|
8
3
|
* __Theme provider__
|
|
9
4
|
*
|
|
10
5
|
* A provider for the theme context used by all navigation components.
|
|
11
6
|
*/
|
|
12
|
-
export const ThemeProvider = ThemeContext.Provider;
|
|
7
|
+
export const ThemeProvider = ThemeContext.Provider;
|
|
8
|
+
export { ThemeContext } from './theme-context';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
name: DEFAULT_THEME_NAME,
|
|
5
|
-
backgroundColor: '#FFFFFF',
|
|
6
|
-
highlightColor: '#0052CC'
|
|
7
|
-
});
|
|
8
|
-
export const defaultTheme = atlassianTheme;
|
|
1
|
+
import { atlassianTheme } from './atlassian-theme';
|
|
2
|
+
export const defaultTheme = atlassianTheme;
|
|
3
|
+
export { atlassianTheme } from './atlassian-theme';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { CREATE_BREAKPOINT } from './constants';
|
|
3
|
+
export var actionSectionDesktopCSS = _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
4
|
+
display: 'none !important'
|
|
5
|
+
});
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export var actionSectionDesktopCSS = _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
4
|
-
display: 'none !important'
|
|
5
|
-
});
|
|
6
|
-
export var actionSectionMobileCSS = _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
7
|
-
display: 'none !important'
|
|
8
|
-
});
|
|
1
|
+
export { actionSectionDesktopCSS } from './action-section-desktop-css';
|
|
2
|
+
export { actionSectionMobileCSS } from './action-section-mobile-css';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
3
|
+
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
|
+
/**
|
|
5
|
+
* __Nav 4 skeleton notification button__
|
|
6
|
+
*
|
|
7
|
+
* A nav 4 skeleton notification button.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export var Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref) {
|
|
11
|
+
var _ref$label = _ref.label,
|
|
12
|
+
label = _ref$label === void 0 ? '' : _ref$label;
|
|
13
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
14
|
+
label: label,
|
|
15
|
+
color: "var(--ds-icon, #292A2E)"
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
3
|
+
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
|
+
/**
|
|
5
|
+
* __Nav 4 skeleton settings button__
|
|
6
|
+
*
|
|
7
|
+
* A nav 4 skeleton settings button
|
|
8
|
+
*/
|
|
9
|
+
export var Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref) {
|
|
10
|
+
var _ref$label = _ref.label,
|
|
11
|
+
label = _ref$label === void 0 ? '' : _ref$label;
|
|
12
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
13
|
+
label: label,
|
|
14
|
+
color: "var(--ds-icon, #292A2E)"
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
3
|
+
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
|
+
/**
|
|
5
|
+
* __Nav 4 skeleton switcher button__
|
|
6
|
+
*
|
|
7
|
+
* A nav 4 skeleton switcher button
|
|
8
|
+
*/
|
|
9
|
+
export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref) {
|
|
10
|
+
var _ref$label = _ref.label,
|
|
11
|
+
label = _ref$label === void 0 ? '' : _ref$label;
|
|
12
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
13
|
+
label: label,
|
|
14
|
+
spacing: "spacious",
|
|
15
|
+
color: "var(--ds-icon, #292A2E)"
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
@@ -28,18 +28,4 @@ export var SkeletonNotificationButton = function SkeletonNotificationButton(_ref
|
|
|
28
28
|
label: label
|
|
29
29
|
})));
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* __Nav 4 skeleton notification button__
|
|
34
|
-
*
|
|
35
|
-
* A nav 4 skeleton notification button.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
export var Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
39
|
-
var _ref2$label = _ref2.label,
|
|
40
|
-
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
41
|
-
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
42
|
-
label: label,
|
|
43
|
-
color: "var(--ds-icon, #292A2E)"
|
|
44
|
-
}));
|
|
45
|
-
};
|
|
31
|
+
export { Nav4SkeletonNotificationButton } from './nav4-skeleton-notification-button';
|
|
@@ -28,17 +28,4 @@ export var SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
|
28
28
|
label: label
|
|
29
29
|
})));
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* __Nav 4 skeleton settings button__
|
|
34
|
-
*
|
|
35
|
-
* A nav 4 skeleton settings button
|
|
36
|
-
*/
|
|
37
|
-
export var Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
38
|
-
var _ref2$label = _ref2.label,
|
|
39
|
-
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
40
|
-
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
41
|
-
label: label,
|
|
42
|
-
color: "var(--ds-icon, #292A2E)"
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
31
|
+
export { Nav4SkeletonSettingsButton } from './nav4-skeleton-settings-button';
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
10
|
-
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
11
10
|
import { useTheme } from './theme';
|
|
12
11
|
var skeletonSwitcherButtonStyles = css({
|
|
13
12
|
margin: 0,
|
|
@@ -69,18 +68,4 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
|
|
|
69
68
|
label: label
|
|
70
69
|
}));
|
|
71
70
|
};
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* __Nav 4 skeleton switcher button__
|
|
75
|
-
*
|
|
76
|
-
* A nav 4 skeleton switcher button
|
|
77
|
-
*/
|
|
78
|
-
export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
|
|
79
|
-
var _ref2$label = _ref2.label,
|
|
80
|
-
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
81
|
-
return jsx(SkeletonIconButton, null, jsx(AppSwitcherIcon, {
|
|
82
|
-
label: label,
|
|
83
|
-
spacing: "spacious",
|
|
84
|
-
color: "var(--ds-icon, #292A2E)"
|
|
85
|
-
}));
|
|
86
|
-
};
|
|
71
|
+
export { Nav4SkeletonSwitcherButton } from './nav4-skeleton-switcher-button';
|
|
@@ -2,7 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
|
|
5
|
-
import {
|
|
5
|
+
import { getBoxShadow } from './get-box-shadow';
|
|
6
|
+
import { generateTextColor, getContrastColor, hexToRGBA } from './theme-helpers';
|
|
6
7
|
var generateOpacityValue = function generateOpacityValue(color) {
|
|
7
8
|
return color === '#000000' ? 0.3 : 0.6;
|
|
8
9
|
};
|
|
@@ -5,14 +5,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import chromatism from 'chromatism';
|
|
6
6
|
export var hexToRGBA = function hexToRGBA(hex) {
|
|
7
7
|
var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
8
|
-
var rgba = _objectSpread(_objectSpread({}, chromatism.convert(hex).rgb), {
|
|
8
|
+
var rgba = _objectSpread(_objectSpread({}, chromatism.convert(hex).rgb), {}, {
|
|
9
9
|
a: opacity
|
|
10
10
|
});
|
|
11
11
|
return "rgba(".concat(Object.values(rgba).join(', '), ")");
|
|
12
12
|
};
|
|
13
|
-
export var getBoxShadow = function getBoxShadow(color) {
|
|
14
|
-
return "0 0 0 2px ".concat(color);
|
|
15
|
-
};
|
|
16
13
|
var hex = '[a-z0-9]';
|
|
17
14
|
var shortHandHexColorPattern = new RegExp("#(".concat(hex, ")(").concat(hex, ")(").concat(hex, ")"), 'i');
|
|
18
15
|
var repeat = function repeat(str, times) {
|
|
@@ -58,4 +55,5 @@ export var generateTextColor = function generateTextColor(color) {
|
|
|
58
55
|
};
|
|
59
56
|
export var getContrastColor = function getContrastColor(contrastValue, opacityValue, color) {
|
|
60
57
|
return hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
|
|
61
|
-
};
|
|
58
|
+
};
|
|
59
|
+
export { getBoxShadow } from './get-box-shadow';
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultTheme } from './themes';
|
|
3
|
-
// Internal only
|
|
4
|
-
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
5
|
-
export var ThemeContext = /*#__PURE__*/createContext(defaultTheme);
|
|
6
|
-
|
|
1
|
+
import { ThemeContext } from './theme-context';
|
|
7
2
|
/**
|
|
8
3
|
* __Theme provider__
|
|
9
4
|
*
|
|
10
5
|
* A provider for the theme context used by all navigation components.
|
|
11
6
|
*/
|
|
12
|
-
export var ThemeProvider = ThemeContext.Provider;
|
|
7
|
+
export var ThemeProvider = ThemeContext.Provider;
|
|
8
|
+
export { ThemeContext } from './theme-context';
|
package/dist/esm/theme/themes.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
name: DEFAULT_THEME_NAME,
|
|
5
|
-
backgroundColor: '#FFFFFF',
|
|
6
|
-
highlightColor: '#0052CC'
|
|
7
|
-
});
|
|
8
|
-
export var defaultTheme = atlassianTheme;
|
|
1
|
+
import { atlassianTheme } from './atlassian-theme';
|
|
2
|
+
export var defaultTheme = atlassianTheme;
|
|
3
|
+
export { atlassianTheme } from './atlassian-theme';
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
display: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export declare const actionSectionMobileCSS: {
|
|
7
|
-
'@media (min-width: 1130px)': {
|
|
8
|
-
display: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
export { actionSectionDesktopCSS } from './action-section-desktop-css';
|
|
2
|
+
export { actionSectionMobileCSS } from './action-section-mobile-css';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonNotificationButtonProps } from './skeleton-notification-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton notification button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton notification button.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const Nav4SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonSettingsButtonProps } from './skeleton-settings-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton settings button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton settings button
|
|
7
|
+
*/
|
|
8
|
+
export declare const Nav4SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonSwitcherButtonProps } from './skeleton-switcher-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton switcher button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton switcher button
|
|
7
|
+
*/
|
|
8
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
@@ -17,10 +17,4 @@ export type SkeletonNotificationButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
* __Nav 4 skeleton notification button__
|
|
22
|
-
*
|
|
23
|
-
* A nav 4 skeleton notification button.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare const Nav4SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
20
|
+
export { Nav4SkeletonNotificationButton } from './nav4-skeleton-notification-button';
|
|
@@ -17,9 +17,4 @@ export type SkeletonSettingsButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
* __Nav 4 skeleton settings button__
|
|
22
|
-
*
|
|
23
|
-
* A nav 4 skeleton settings button
|
|
24
|
-
*/
|
|
25
|
-
export declare const Nav4SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
20
|
+
export { Nav4SkeletonSettingsButton } from './nav4-skeleton-settings-button';
|
|
@@ -27,9 +27,4 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
29
|
export declare const SkeletonSwitcherButton: ({ label, testId, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
|
-
|
|
31
|
-
* __Nav 4 skeleton switcher button__
|
|
32
|
-
*
|
|
33
|
-
* A nav 4 skeleton switcher button
|
|
34
|
-
*/
|
|
35
|
-
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
|
+
export { Nav4SkeletonSwitcherButton } from './nav4-skeleton-switcher-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getBoxShadow: (color: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const hexToRGBA: (hex: string, opacity?: number) => string;
|
|
2
|
-
export declare const getBoxShadow: (color: string) => string;
|
|
3
2
|
export declare const convertHexShorthand: (color: string) => string;
|
|
4
3
|
export declare const generateTextColor: (color: string) => string;
|
|
5
4
|
export declare const getContrastColor: (contrastValue: number, opacityValue: number, color: string) => string;
|
|
5
|
+
export { getBoxShadow } from './get-box-shadow';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Provider } from 'react';
|
|
2
2
|
import type { NavigationTheme } from './types';
|
|
3
|
-
export declare const ThemeContext: Context<NavigationTheme>;
|
|
4
3
|
/**
|
|
5
4
|
* __Theme provider__
|
|
6
5
|
*
|
|
7
6
|
* A provider for the theme context used by all navigation components.
|
|
8
7
|
*/
|
|
9
8
|
export declare const ThemeProvider: Provider<NavigationTheme>;
|
|
9
|
+
export { ThemeContext } from './theme-context';
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
display: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export declare const actionSectionMobileCSS: {
|
|
7
|
-
'@media (min-width: 1130px)': {
|
|
8
|
-
display: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
export { actionSectionDesktopCSS } from './action-section-desktop-css';
|
|
2
|
+
export { actionSectionMobileCSS } from './action-section-mobile-css';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonNotificationButtonProps } from './skeleton-notification-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton notification button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton notification button.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare const Nav4SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonSettingsButtonProps } from './skeleton-settings-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton settings button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton settings button
|
|
7
|
+
*/
|
|
8
|
+
export declare const Nav4SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkeletonSwitcherButtonProps } from './skeleton-switcher-button';
|
|
3
|
+
/**
|
|
4
|
+
* __Nav 4 skeleton switcher button__
|
|
5
|
+
*
|
|
6
|
+
* A nav 4 skeleton switcher button
|
|
7
|
+
*/
|
|
8
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
@@ -17,10 +17,4 @@ export type SkeletonNotificationButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
* __Nav 4 skeleton notification button__
|
|
22
|
-
*
|
|
23
|
-
* A nav 4 skeleton notification button.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare const Nav4SkeletonNotificationButton: ({ label, }: SkeletonNotificationButtonProps) => React.JSX.Element;
|
|
20
|
+
export { Nav4SkeletonNotificationButton } from './nav4-skeleton-notification-button';
|
|
@@ -17,9 +17,4 @@ export type SkeletonSettingsButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
20
|
-
|
|
21
|
-
* __Nav 4 skeleton settings button__
|
|
22
|
-
*
|
|
23
|
-
* A nav 4 skeleton settings button
|
|
24
|
-
*/
|
|
25
|
-
export declare const Nav4SkeletonSettingsButton: ({ label, }: SkeletonSettingsButtonProps) => React.JSX.Element;
|
|
20
|
+
export { Nav4SkeletonSettingsButton } from './nav4-skeleton-settings-button';
|
|
@@ -27,9 +27,4 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
29
|
export declare const SkeletonSwitcherButton: ({ label, testId, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
|
-
|
|
31
|
-
* __Nav 4 skeleton switcher button__
|
|
32
|
-
*
|
|
33
|
-
* A nav 4 skeleton switcher button
|
|
34
|
-
*/
|
|
35
|
-
export declare const Nav4SkeletonSwitcherButton: ({ label, }: SkeletonSwitcherButtonProps) => React.JSX.Element;
|
|
30
|
+
export { Nav4SkeletonSwitcherButton } from './nav4-skeleton-switcher-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getBoxShadow: (color: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const hexToRGBA: (hex: string, opacity?: number) => string;
|
|
2
|
-
export declare const getBoxShadow: (color: string) => string;
|
|
3
2
|
export declare const convertHexShorthand: (color: string) => string;
|
|
4
3
|
export declare const generateTextColor: (color: string) => string;
|
|
5
4
|
export declare const getContrastColor: (contrastValue: number, opacityValue: number, color: string) => string;
|
|
5
|
+
export { getBoxShadow } from './get-box-shadow';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Provider } from 'react';
|
|
2
2
|
import type { NavigationTheme } from './types';
|
|
3
|
-
export declare const ThemeContext: Context<NavigationTheme>;
|
|
4
3
|
/**
|
|
5
4
|
* __Theme provider__
|
|
6
5
|
*
|
|
7
6
|
* A provider for the theme context used by all navigation components.
|
|
8
7
|
*/
|
|
9
8
|
export declare const ThemeProvider: Provider<NavigationTheme>;
|
|
9
|
+
export { ThemeContext } from './theme-context';
|