@atlaskit/drawer 6.0.8 → 7.0.1

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cjs/components/focus-lock.js +7 -3
  3. package/dist/cjs/components/index.js +9 -45
  4. package/dist/cjs/components/primitives/content.js +1 -0
  5. package/dist/cjs/components/primitives/icon-button.js +53 -0
  6. package/dist/cjs/components/primitives/index.js +32 -48
  7. package/dist/cjs/components/primitives/sidebar.js +1 -0
  8. package/dist/cjs/components/transitions.js +8 -4
  9. package/dist/cjs/components/types.js +5 -1
  10. package/dist/cjs/components/utils.js +1 -10
  11. package/dist/cjs/constants.js +3 -13
  12. package/dist/cjs/index.js +2 -32
  13. package/dist/cjs/version.json +1 -1
  14. package/dist/es2019/components/index.js +3 -9
  15. package/dist/es2019/components/primitives/content.js +1 -0
  16. package/dist/es2019/components/primitives/icon-button.js +41 -0
  17. package/dist/es2019/components/primitives/index.js +24 -45
  18. package/dist/es2019/components/primitives/sidebar.js +1 -0
  19. package/dist/es2019/components/types.js +1 -0
  20. package/dist/es2019/components/utils.js +0 -4
  21. package/dist/es2019/constants.js +1 -6
  22. package/dist/es2019/index.js +1 -1
  23. package/dist/es2019/version.json +1 -1
  24. package/dist/esm/components/focus-lock.js +1 -1
  25. package/dist/esm/components/index.js +4 -12
  26. package/dist/esm/components/primitives/content.js +1 -0
  27. package/dist/esm/components/primitives/icon-button.js +42 -0
  28. package/dist/esm/components/primitives/index.js +32 -50
  29. package/dist/esm/components/primitives/sidebar.js +1 -0
  30. package/dist/esm/components/transitions.js +2 -2
  31. package/dist/esm/components/types.js +1 -0
  32. package/dist/esm/components/utils.js +0 -6
  33. package/dist/esm/constants.js +1 -6
  34. package/dist/esm/index.js +1 -1
  35. package/dist/esm/version.json +1 -1
  36. package/dist/types/components/index.d.ts +3 -9
  37. package/dist/types/components/primitives/icon-button.d.ts +8 -0
  38. package/dist/types/components/primitives/sidebar.d.ts +2 -1
  39. package/dist/types/components/types.d.ts +6 -57
  40. package/dist/types/components/utils.d.ts +0 -1
  41. package/dist/types/constants.d.ts +2 -4
  42. package/dist/types/index.d.ts +2 -2
  43. package/package.json +22 -16
  44. package/dist/cjs/components/item-group.js +0 -63
  45. package/dist/cjs/components/item.js +0 -55
  46. package/dist/cjs/components/skeletons.js +0 -105
  47. package/dist/cjs/theme/drawer-item-theme.js +0 -179
  48. package/dist/cjs/theme/types.js +0 -1
  49. package/dist/es2019/components/item-group.js +0 -45
  50. package/dist/es2019/components/item.js +0 -43
  51. package/dist/es2019/components/skeletons.js +0 -84
  52. package/dist/es2019/theme/drawer-item-theme.js +0 -161
  53. package/dist/es2019/theme/types.js +0 -0
  54. package/dist/esm/components/item-group.js +0 -53
  55. package/dist/esm/components/item.js +0 -41
  56. package/dist/esm/components/skeletons.js +0 -88
  57. package/dist/esm/theme/drawer-item-theme.js +0 -159
  58. package/dist/esm/theme/types.js +0 -0
  59. package/dist/types/components/item-group.d.ts +0 -13
  60. package/dist/types/components/item.d.ts +0 -2
  61. package/dist/types/components/skeletons.d.ts +0 -13
  62. package/dist/types/theme/drawer-item-theme.d.ts +0 -54
  63. package/dist/types/theme/types.d.ts +0 -49
@@ -1,161 +0,0 @@
1
- import chromatism from 'chromatism';
2
- import { itemThemeNamespace } from '@atlaskit/item';
3
- import * as colors from '@atlaskit/theme/colors';
4
- import { themed } from '@atlaskit/theme/components';
5
- import { darkDrawerItemActiveBackground, darkDrawerItemHoverBackground, gridSize } from '../constants';
6
- // These themes are copied over from @atlaskit/global-navigation to preserve the theming
7
- // of search and starred drawers.
8
- const focus = {
9
- outline: themed({
10
- light: colors.B100,
11
- dark: colors.B75
12
- })
13
- };
14
-
15
- function lightenColor(color, alpha) {
16
- const {
17
- r: red,
18
- g: green,
19
- b: blue
20
- } = chromatism.convert(color).rgb;
21
- return `rgba(${red}, ${green}, ${blue}, 0.${alpha})`;
22
- }
23
-
24
- const navigationTheme = (() => {
25
- const primaryBackground = colors.codeBlock;
26
- const item = {
27
- default: {
28
- background: 'transparent'
29
- },
30
- hover: {
31
- background: themed({
32
- light: colors.N20A,
33
- dark: darkDrawerItemHoverBackground
34
- })
35
- },
36
- active: {
37
- background: themed({
38
- light: colors.B50,
39
- dark: darkDrawerItemActiveBackground
40
- })
41
- },
42
- selected: {
43
- background: colors.N20A,
44
- text: colors.B400
45
- },
46
- focus,
47
- dragging: {
48
- // similar to hover - but without opacity
49
- background: themed({
50
- light: colors.N30,
51
- dark: colors.DN30
52
- })
53
- }
54
- };
55
- const scrollBar = {
56
- default: {
57
- background: themed({
58
- light: lightenColor(colors.N500, 36),
59
- dark: lightenColor(colors.DN600, 36)
60
- })
61
- },
62
- hover: {
63
- background: themed({
64
- light: lightenColor(colors.N500, 56),
65
- dark: lightenColor(colors.DN600, 56)
66
- })
67
- }
68
- };
69
- const dropdown = {
70
- default: {
71
- background: item.hover.background
72
- },
73
- hover: {
74
- background: themed({
75
- light: colors.N30A,
76
- dark: colors.DN30A
77
- })
78
- },
79
- active: item.active,
80
- selected: item.selected,
81
- focus: item.focus,
82
- dragging: item.dragging
83
- };
84
- const theme = {
85
- background: {
86
- primary: primaryBackground,
87
- secondary: primaryBackground,
88
- tertiary: themed({
89
- light: colors.N0,
90
- dark: colors.DN30
91
- })
92
- },
93
- text: themed({
94
- light: colors.N500,
95
- dark: colors.DN600
96
- }),
97
- subText: colors.subtleText,
98
- keyline: themed({
99
- light: colors.N30A,
100
- dark: colors.DN30A
101
- }),
102
- item,
103
- dropdown,
104
- scrollBar
105
- };
106
- return theme;
107
- })();
108
-
109
- export default {
110
- [itemThemeNamespace]: {
111
- padding: {
112
- compact: {
113
- bottom: gridSize,
114
- left: gridSize,
115
- right: gridSize,
116
- top: gridSize
117
- },
118
- default: {
119
- bottom: gridSize,
120
- left: gridSize * 1.5,
121
- right: gridSize * 1.5,
122
- top: gridSize
123
- }
124
- },
125
- borderRadius: 3,
126
- height: {
127
- compact: gridSize * 4.5,
128
- default: gridSize * 5
129
- },
130
- beforeItemSpacing: {
131
- compact: gridSize,
132
- default: gridSize * 2
133
- },
134
- default: {
135
- background: navigationTheme.item.default.background,
136
- text: navigationTheme.text,
137
- secondaryText: navigationTheme.subText
138
- },
139
- hover: {
140
- background: navigationTheme.item.hover.background,
141
- text: navigationTheme.text,
142
- secondaryText: navigationTheme.subText
143
- },
144
- active: {
145
- background: navigationTheme.item.active.background,
146
- text: navigationTheme.item.active.text || navigationTheme.text,
147
- secondaryText: navigationTheme.subText
148
- },
149
- selected: {
150
- background: navigationTheme.item.selected.background,
151
- text: navigationTheme.item.selected.text || '',
152
- secondaryText: navigationTheme.subText
153
- },
154
- focus: {
155
- outline: navigationTheme.item.focus.outline
156
- },
157
- dragging: {
158
- background: navigationTheme.item.dragging.background
159
- }
160
- }
161
- };
File without changes
@@ -1,53 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
-
3
- /** @jsx jsx */
4
- import { jsx } from '@emotion/core';
5
- import { ItemGroup } from '@atlaskit/item';
6
- import { // @ts-ignore - it's exported the type is just missing
7
- fontSizeSmall, gridSize as gridSizeFn } from '@atlaskit/theme/constants';
8
- var groupTitleFontSize = fontSizeSmall();
9
- var gridSize = gridSizeFn();
10
-
11
- var SkeletonGroupTitle = function SkeletonGroupTitle(_ref) {
12
- var props = _extends({}, _ref);
13
-
14
- return jsx("div", _extends({
15
- css: {
16
- fontSize: "".concat(groupTitleFontSize, "px"),
17
- lineHeight: "".concat(gridSize * 2 / groupTitleFontSize),
18
- fontWeight: 600,
19
- marginTop: "".concat(gridSize * 1.5, "px")
20
- }
21
- }, props));
22
- };
23
-
24
- var ItemChildrenWrapper = function ItemChildrenWrapper(_ref2) {
25
- var props = _extends({}, _ref2);
26
-
27
- return jsx("div", _extends({
28
- css: {
29
- marginLeft: "".concat(gridSize, "px")
30
- }
31
- }, props));
32
- };
33
-
34
- var ItemGroupWrapper = function ItemGroupWrapper(_ref3) {
35
- var props = _extends({}, _ref3);
36
-
37
- return jsx("div", _extends({
38
- css: {
39
- paddingRight: "".concat(gridSize * 4, "px")
40
- }
41
- }, props));
42
- };
43
-
44
- export var DrawerItemGroup = function DrawerItemGroup(_ref4) {
45
- var title = _ref4.title,
46
- isCompact = _ref4.isCompact,
47
- children = _ref4.children;
48
- var wrappedTitle = title ? jsx(SkeletonGroupTitle, null, title) : null;
49
- return jsx(ItemGroupWrapper, null, jsx(ItemGroup, {
50
- title: wrappedTitle,
51
- isCompact: isCompact
52
- }, jsx(ItemChildrenWrapper, null, children)));
53
- };
@@ -1,41 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import Item from '@atlaskit/item';
4
- export var DrawerItem = function DrawerItem(props) {
5
- var autoFocus = props.autoFocus,
6
- children = props.children,
7
- description = props.description,
8
- dnd = props.dnd,
9
- elemAfter = props.elemAfter,
10
- elemBefore = props.elemBefore,
11
- href = props.href,
12
- isCompact = props.isCompact,
13
- isDisabled = props.isDisabled,
14
- isDragging = props.isDragging,
15
- isHidden = props.isHidden,
16
- isSelected = props.isSelected,
17
- onClick = props.onClick,
18
- onKeyDown = props.onKeyDown,
19
- onMouseEnter = props.onMouseEnter,
20
- onMouseLeave = props.onMouseLeave,
21
- target = props.target,
22
- title = props.title;
23
- return /*#__PURE__*/React.createElement(Item, _extends({
24
- autoFocus: autoFocus,
25
- description: description,
26
- elemAfter: elemAfter,
27
- elemBefore: elemBefore,
28
- href: href,
29
- isCompact: isCompact,
30
- isDisabled: isDisabled,
31
- isDragging: isDragging,
32
- isHidden: isHidden,
33
- isSelected: isSelected,
34
- onClick: onClick,
35
- onKeyDown: onKeyDown,
36
- onMouseEnter: onMouseEnter,
37
- onMouseLeave: onMouseLeave,
38
- target: target,
39
- title: title
40
- }, dnd), children);
41
- };
@@ -1,88 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
-
5
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6
-
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8
-
9
- /** @jsx jsx */
10
- import { jsx } from '@emotion/core';
11
- import { Skeleton as SkeletonAvatar } from '@atlaskit/avatar';
12
- import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
13
- var gridSize = gridSizeFn();
14
- /* Primitives */
15
-
16
- var Wrapper = function Wrapper(_ref) {
17
- var isAvatarHidden = _ref.isAvatarHidden,
18
- isHeader = _ref.isHeader,
19
- props = _objectWithoutProperties(_ref, ["isAvatarHidden", "isHeader"]);
20
-
21
- return jsx("div", _extends({
22
- css: _objectSpread({
23
- display: 'flex',
24
- alignItems: 'center',
25
- margin: isAvatarHidden ? "".concat(gridSize * 2, "px") : "".concat(gridSize / 2, "px ").concat(gridSize, "px ").concat(gridSize, "px ").concat(gridSize * 2, "px")
26
- }, isHeader && !isAvatarHidden ? {
27
- marginLeft: "".concat(gridSize, "px")
28
- } : {})
29
- }, props));
30
- };
31
-
32
- var headerStylesOverride = function headerStylesOverride(isAvatarHidden) {
33
- return _objectSpread(_objectSpread({}, !isAvatarHidden ? {
34
- marginLeft: "".concat(gridSize * 2, "px")
35
- } : null), {}, {
36
- width: "".concat(gridSize * 18, "px"),
37
- opacity: 0.3
38
- });
39
- };
40
-
41
- var SkeletonText = function SkeletonText(_ref2) {
42
- var isAvatarHidden = _ref2.isAvatarHidden,
43
- isHeader = _ref2.isHeader,
44
- itemTextWidth = _ref2.itemTextWidth;
45
- return jsx("div", {
46
- css: _objectSpread(_objectSpread({
47
- height: "".concat(gridSize * 2.5, "px"),
48
- backgroundColor: 'currentColor',
49
- borderRadius: gridSize / 2,
50
- opacity: 0.15,
51
- width: itemTextWidth || "".concat(gridSize * 17, "px")
52
- }, !isAvatarHidden ? {
53
- marginLeft: "".concat(gridSize * 3, "px")
54
- } : null), isHeader ? headerStylesOverride(isAvatarHidden) : null)
55
- });
56
- };
57
- /* Exported Components */
58
-
59
-
60
- export var DrawerSkeletonHeader = function DrawerSkeletonHeader(props) {
61
- var isAvatarHidden = props.isAvatarHidden,
62
- isCollapsed = props.isCollapsed;
63
- return jsx(Wrapper, {
64
- isAvatarHidden: isAvatarHidden,
65
- isHeader: true
66
- }, !isAvatarHidden && jsx(SkeletonAvatar, {
67
- appearance: "square",
68
- size: "large",
69
- weight: "strong"
70
- }), !isCollapsed && jsx(SkeletonText, {
71
- isHeader: true,
72
- isAvatarHidden: isAvatarHidden
73
- }));
74
- };
75
- export var DrawerSkeletonItem = function DrawerSkeletonItem(props) {
76
- var isAvatarHidden = props.isAvatarHidden,
77
- isCollapsed = props.isCollapsed,
78
- itemTextWidth = props.itemTextWidth;
79
- return jsx(Wrapper, {
80
- isAvatarHidden: isAvatarHidden
81
- }, !isAvatarHidden && jsx(SkeletonAvatar, {
82
- size: "small",
83
- weight: "normal"
84
- }), !isCollapsed && jsx(SkeletonText, {
85
- itemTextWidth: itemTextWidth,
86
- isAvatarHidden: isAvatarHidden
87
- }));
88
- };
@@ -1,159 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import chromatism from 'chromatism';
3
- import { itemThemeNamespace } from '@atlaskit/item';
4
- import * as colors from '@atlaskit/theme/colors';
5
- import { themed } from '@atlaskit/theme/components';
6
- import { darkDrawerItemActiveBackground, darkDrawerItemHoverBackground, gridSize } from '../constants';
7
- // These themes are copied over from @atlaskit/global-navigation to preserve the theming
8
- // of search and starred drawers.
9
- var focus = {
10
- outline: themed({
11
- light: colors.B100,
12
- dark: colors.B75
13
- })
14
- };
15
-
16
- function lightenColor(color, alpha) {
17
- var _chromatism$convert$r = chromatism.convert(color).rgb,
18
- red = _chromatism$convert$r.r,
19
- green = _chromatism$convert$r.g,
20
- blue = _chromatism$convert$r.b;
21
- return "rgba(".concat(red, ", ").concat(green, ", ").concat(blue, ", 0.").concat(alpha, ")");
22
- }
23
-
24
- var navigationTheme = function () {
25
- var primaryBackground = colors.codeBlock;
26
- var item = {
27
- default: {
28
- background: 'transparent'
29
- },
30
- hover: {
31
- background: themed({
32
- light: colors.N20A,
33
- dark: darkDrawerItemHoverBackground
34
- })
35
- },
36
- active: {
37
- background: themed({
38
- light: colors.B50,
39
- dark: darkDrawerItemActiveBackground
40
- })
41
- },
42
- selected: {
43
- background: colors.N20A,
44
- text: colors.B400
45
- },
46
- focus: focus,
47
- dragging: {
48
- // similar to hover - but without opacity
49
- background: themed({
50
- light: colors.N30,
51
- dark: colors.DN30
52
- })
53
- }
54
- };
55
- var scrollBar = {
56
- default: {
57
- background: themed({
58
- light: lightenColor(colors.N500, 36),
59
- dark: lightenColor(colors.DN600, 36)
60
- })
61
- },
62
- hover: {
63
- background: themed({
64
- light: lightenColor(colors.N500, 56),
65
- dark: lightenColor(colors.DN600, 56)
66
- })
67
- }
68
- };
69
- var dropdown = {
70
- default: {
71
- background: item.hover.background
72
- },
73
- hover: {
74
- background: themed({
75
- light: colors.N30A,
76
- dark: colors.DN30A
77
- })
78
- },
79
- active: item.active,
80
- selected: item.selected,
81
- focus: item.focus,
82
- dragging: item.dragging
83
- };
84
- var theme = {
85
- background: {
86
- primary: primaryBackground,
87
- secondary: primaryBackground,
88
- tertiary: themed({
89
- light: colors.N0,
90
- dark: colors.DN30
91
- })
92
- },
93
- text: themed({
94
- light: colors.N500,
95
- dark: colors.DN600
96
- }),
97
- subText: colors.subtleText,
98
- keyline: themed({
99
- light: colors.N30A,
100
- dark: colors.DN30A
101
- }),
102
- item: item,
103
- dropdown: dropdown,
104
- scrollBar: scrollBar
105
- };
106
- return theme;
107
- }();
108
-
109
- export default _defineProperty({}, itemThemeNamespace, {
110
- padding: {
111
- compact: {
112
- bottom: gridSize,
113
- left: gridSize,
114
- right: gridSize,
115
- top: gridSize
116
- },
117
- default: {
118
- bottom: gridSize,
119
- left: gridSize * 1.5,
120
- right: gridSize * 1.5,
121
- top: gridSize
122
- }
123
- },
124
- borderRadius: 3,
125
- height: {
126
- compact: gridSize * 4.5,
127
- default: gridSize * 5
128
- },
129
- beforeItemSpacing: {
130
- compact: gridSize,
131
- default: gridSize * 2
132
- },
133
- default: {
134
- background: navigationTheme.item.default.background,
135
- text: navigationTheme.text,
136
- secondaryText: navigationTheme.subText
137
- },
138
- hover: {
139
- background: navigationTheme.item.hover.background,
140
- text: navigationTheme.text,
141
- secondaryText: navigationTheme.subText
142
- },
143
- active: {
144
- background: navigationTheme.item.active.background,
145
- text: navigationTheme.item.active.text || navigationTheme.text,
146
- secondaryText: navigationTheme.subText
147
- },
148
- selected: {
149
- background: navigationTheme.item.selected.background,
150
- text: navigationTheme.item.selected.text || '',
151
- secondaryText: navigationTheme.subText
152
- },
153
- focus: {
154
- outline: navigationTheme.item.focus.outline
155
- },
156
- dragging: {
157
- background: navigationTheme.item.dragging.background
158
- }
159
- });
File without changes
@@ -1,13 +0,0 @@
1
- /** @jsx jsx */
2
- import { ReactNode } from 'react';
3
- interface Props {
4
- /** React Elements to be displayed within the group. This should generally be
5
- a collection of NavigationItems. */
6
- children?: ReactNode;
7
- /** Set whether the text should be compacted. */
8
- isCompact?: boolean;
9
- /** Text to appear as heading above group. Will be auto-capitalised. */
10
- title?: string;
11
- }
12
- export declare const DrawerItemGroup: ({ title, isCompact, children }: Props) => JSX.Element;
13
- export {};
@@ -1,2 +0,0 @@
1
- import { ItemProps } from './types';
2
- export declare const DrawerItem: (props: ItemProps) => JSX.Element;
@@ -1,13 +0,0 @@
1
- /** @jsx jsx */
2
- interface DrawerSkeletonItemProps {
3
- isCollapsed?: boolean;
4
- itemTextWidth?: string;
5
- isAvatarHidden?: boolean;
6
- }
7
- interface DrawerSkeletonHeaderProps {
8
- isCollapsed?: boolean;
9
- isAvatarHidden?: boolean;
10
- }
11
- export declare const DrawerSkeletonHeader: (props: DrawerSkeletonHeaderProps) => JSX.Element;
12
- export declare const DrawerSkeletonItem: (props: DrawerSkeletonItemProps) => JSX.Element;
13
- export {};
@@ -1,54 +0,0 @@
1
- declare const _default: {
2
- [x: number]: {
3
- padding: {
4
- compact: {
5
- bottom: number;
6
- left: number;
7
- right: number;
8
- top: number;
9
- };
10
- default: {
11
- bottom: number;
12
- left: number;
13
- right: number;
14
- top: number;
15
- };
16
- };
17
- borderRadius: number;
18
- height: {
19
- compact: number;
20
- default: number;
21
- };
22
- beforeItemSpacing: {
23
- compact: number;
24
- default: number;
25
- };
26
- default: {
27
- background: import("./types").Color;
28
- text: import("./types").Color;
29
- secondaryText: import("./types").Color;
30
- };
31
- hover: {
32
- background: import("./types").Color;
33
- text: import("./types").Color;
34
- secondaryText: import("./types").Color;
35
- };
36
- active: {
37
- background: import("./types").Color;
38
- text: import("./types").Color;
39
- secondaryText: import("./types").Color;
40
- };
41
- selected: {
42
- background: import("./types").Color;
43
- text: import("./types").Color;
44
- secondaryText: import("./types").Color;
45
- };
46
- focus: {
47
- outline: string | Function | undefined;
48
- };
49
- dragging: {
50
- background: import("./types").Color;
51
- };
52
- };
53
- };
54
- export default _default;
@@ -1,49 +0,0 @@
1
- export declare type Color = string | Function;
2
- export declare type Background = Color;
3
- export declare type Text = Color;
4
- export declare type Line = Color;
5
- export interface ItemTheme {
6
- default: {
7
- background: Background;
8
- };
9
- hover: {
10
- background: Background;
11
- };
12
- active: {
13
- background: Background;
14
- text?: Text;
15
- };
16
- focus: {
17
- background?: Background;
18
- outline?: Color;
19
- };
20
- selected: {
21
- background: Background;
22
- text?: Text;
23
- };
24
- dragging: {
25
- background: Background;
26
- };
27
- }
28
- export interface ScrollBarTheme {
29
- default: {
30
- background: Background;
31
- };
32
- hover: {
33
- background: Background;
34
- };
35
- }
36
- export interface DrawerTheme {
37
- background: {
38
- primary: Background;
39
- secondary: Background;
40
- tertiary: Background;
41
- };
42
- text: Text;
43
- subText: Text;
44
- keyline: Line;
45
- item: ItemTheme;
46
- dropdown: ItemTheme;
47
- hasDarkmode?: boolean;
48
- scrollBar: ScrollBarTheme;
49
- }