react-science 12.1.0 → 13.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.
- package/README.md +11 -3
- package/lib/components/accordion/accordion.d.ts +2 -2
- package/lib/components/accordion/accordion.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +26 -42
- package/lib/components/accordion/accordion.js.map +1 -1
- package/lib/components/accordion/accordion_context.d.ts +1 -1
- package/lib/components/accordion/accordion_context.js +1 -1
- package/lib/components/accordion/accordion_context.provider.d.ts +9 -2
- package/lib/components/accordion/accordion_context.provider.d.ts.map +1 -1
- package/lib/components/accordion/accordion_context.provider.js +49 -32
- package/lib/components/accordion/accordion_context.provider.js.map +1 -1
- package/lib/components/accordion/accordion_context.utils.d.ts +23 -0
- package/lib/components/accordion/accordion_context.utils.d.ts.map +1 -0
- package/lib/components/accordion/accordion_context.utils.js +40 -0
- package/lib/components/accordion/accordion_context.utils.js.map +1 -0
- package/lib/components/accordion/index.d.ts +1 -1
- package/lib/components/accordion/index.js +1 -1
- package/lib/components/activity_bar/activity_bar.d.ts.map +1 -1
- package/lib/components/activity_bar/activity_bar.js +6 -4
- package/lib/components/activity_bar/activity_bar.js.map +1 -1
- package/lib/components/button/Button.d.ts +2 -3
- package/lib/components/button/Button.d.ts.map +1 -1
- package/lib/components/button/Button.js +31 -27
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/color-picker/gradient_select/gradient_select.d.ts +1 -1
- package/lib/components/color-picker/gradient_select/gradient_select.d.ts.map +1 -1
- package/lib/components/color-picker/gradient_select/gradient_select.js +8 -9
- package/lib/components/color-picker/gradient_select/gradient_select.js.map +1 -1
- package/lib/components/color-picker/react-color/ColorPicker.d.ts.map +1 -1
- package/lib/components/color-picker/react-color/ColorPicker.js +5 -5
- package/lib/components/color-picker/react-color/ColorPicker.js.map +1 -1
- package/lib/components/color-picker/react-color/common/Saturation.js +5 -5
- package/lib/components/color-picker/react-color/common/Saturation.js.map +1 -1
- package/lib/components/color-picker/react-color/helpers/color.d.ts.map +1 -1
- package/lib/components/color-picker/react-color/helpers/color.js +2 -3
- package/lib/components/color-picker/react-color/helpers/color.js.map +1 -1
- package/lib/components/dialog/ConfirmDialog.d.ts +1 -2
- package/lib/components/dialog/ConfirmDialog.d.ts.map +1 -1
- package/lib/components/dialog/ConfirmDialog.js +12 -9
- package/lib/components/dialog/ConfirmDialog.js.map +1 -1
- package/lib/components/drop-zone/DropZone.d.ts.map +1 -1
- package/lib/components/drop-zone/DropZone.js +3 -7
- package/lib/components/drop-zone/DropZone.js.map +1 -1
- package/lib/components/forms/radio-button-group/RadioButton.d.ts +1 -2
- package/lib/components/forms/radio-button-group/RadioButton.d.ts.map +1 -1
- package/lib/components/forms/radio-button-group/RadioButton.js +5 -4
- package/lib/components/forms/radio-button-group/RadioButton.js.map +1 -1
- package/lib/components/forms/radio-button-group/RadioButtonGroup.d.ts +1 -2
- package/lib/components/forms/radio-button-group/RadioButtonGroup.d.ts.map +1 -1
- package/lib/components/forms/radio-button-group/RadioButtonGroup.js +3 -1
- package/lib/components/forms/radio-button-group/RadioButtonGroup.js.map +1 -1
- package/lib/components/header/Header.d.ts +1 -1
- package/lib/components/header/Header.d.ts.map +1 -1
- package/lib/components/header/Header.js +11 -14
- package/lib/components/header/Header.js.map +1 -1
- package/lib/components/header/PanelHeader.d.ts +1 -1
- package/lib/components/header/PanelHeader.d.ts.map +1 -1
- package/lib/components/header/PanelHeader.js +22 -23
- package/lib/components/header/PanelHeader.js.map +1 -1
- package/lib/components/info-panel/InfoPanel.d.ts +1 -1
- package/lib/components/info-panel/InfoPanel.d.ts.map +1 -1
- package/lib/components/info-panel/InfoPanel.js +35 -30
- package/lib/components/info-panel/InfoPanel.js.map +1 -1
- package/lib/components/inline_editable_renderer/index.d.ts +2 -0
- package/lib/components/inline_editable_renderer/index.d.ts.map +1 -0
- package/lib/components/inline_editable_renderer/index.js +2 -0
- package/lib/components/inline_editable_renderer/index.js.map +1 -0
- package/lib/components/inline_editable_renderer/inline_editable_renderer.d.ts +24 -0
- package/lib/components/inline_editable_renderer/inline_editable_renderer.d.ts.map +1 -0
- package/lib/components/inline_editable_renderer/inline_editable_renderer.js +52 -0
- package/lib/components/inline_editable_renderer/inline_editable_renderer.js.map +1 -0
- package/lib/components/logger/FifoLoggerDialog.d.ts +1 -2
- package/lib/components/logger/FifoLoggerDialog.d.ts.map +1 -1
- package/lib/components/logger/FifoLoggerDialog.js +8 -9
- package/lib/components/logger/FifoLoggerDialog.js.map +1 -1
- package/lib/components/root-layout/css-reset/customPreflight.d.ts.map +1 -1
- package/lib/components/root-layout/css-reset/customPreflight.js +1 -2
- package/lib/components/root-layout/css-reset/customPreflight.js.map +1 -1
- package/lib/components/split-pane/SplitPane.d.ts +36 -19
- package/lib/components/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/components/split-pane/SplitPane.js +69 -79
- package/lib/components/split-pane/SplitPane.js.map +1 -1
- package/lib/components/table/table_body.js +1 -0
- package/lib/components/table/table_body.js.map +1 -1
- package/lib/components/table/table_root.d.ts +11 -4
- package/lib/components/table/table_root.d.ts.map +1 -1
- package/lib/components/table/table_root.js +9 -7
- package/lib/components/table/table_root.js.map +1 -1
- package/lib/components/table/table_utils.d.ts +8 -0
- package/lib/components/table/table_utils.d.ts.map +1 -1
- package/lib/components/table/table_utils.js.map +1 -1
- package/lib/components/table/use_table_scroll.d.ts +5 -0
- package/lib/components/table/use_table_scroll.d.ts.map +1 -0
- package/lib/components/table/use_table_scroll.js +36 -0
- package/lib/components/table/use_table_scroll.js.map +1 -0
- package/lib/components/toolbar/PanelPreferencesToolbar.d.ts +1 -1
- package/lib/components/toolbar/PanelPreferencesToolbar.d.ts.map +1 -1
- package/lib/components/toolbar/PanelPreferencesToolbar.js +24 -27
- package/lib/components/toolbar/PanelPreferencesToolbar.js.map +1 -1
- package/lib/components/toolbar/Toolbar.d.ts +4 -5
- package/lib/components/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/components/toolbar/Toolbar.js +27 -32
- package/lib/components/toolbar/Toolbar.js.map +1 -1
- package/lib/components/toolbar/TooltipHelpContent.d.ts.map +1 -1
- package/lib/components/toolbar/TooltipHelpContent.js +0 -4
- package/lib/components/toolbar/TooltipHelpContent.js.map +1 -1
- package/lib/components/utils/debounce.d.ts +2 -0
- package/lib/components/utils/debounce.d.ts.map +1 -0
- package/lib/components/utils/debounce.js +12 -0
- package/lib/components/utils/debounce.js.map +1 -0
- package/lib/components/utils/index.d.ts +2 -0
- package/lib/components/utils/index.d.ts.map +1 -1
- package/lib/components/utils/index.js +2 -0
- package/lib/components/utils/index.js.map +1 -1
- package/lib/components/utils/throttle.d.ts +2 -0
- package/lib/components/utils/throttle.d.ts.map +1 -0
- package/lib/components/utils/throttle.js +14 -0
- package/lib/components/utils/throttle.js.map +1 -0
- package/lib/components/value-renderers/Color.d.ts +1 -1
- package/lib/components/value-renderers/Color.d.ts.map +1 -1
- package/lib/components/value-renderers/Color.js +7 -13
- package/lib/components/value-renderers/Color.js.map +1 -1
- package/lib/components/value-renderers/Text.d.ts +1 -1
- package/lib/components/value-renderers/Text.d.ts.map +1 -1
- package/lib/components/value-renderers/Text.js +6 -9
- package/lib/components/value-renderers/Text.js.map +1 -1
- package/lib/components/value-renderers/Title.d.ts +1 -1
- package/lib/components/value-renderers/Title.d.ts.map +1 -1
- package/lib/components/value-renderers/Title.js +6 -9
- package/lib/components/value-renderers/Title.js.map +1 -1
- package/package.json +42 -37
- package/src/components/accordion/accordion.tsx +28 -48
- package/src/components/accordion/accordion_context.provider.tsx +74 -36
- package/src/components/accordion/accordion_context.ts +2 -2
- package/src/components/accordion/accordion_context.utils.ts +66 -0
- package/src/components/accordion/index.ts +1 -1
- package/src/components/activity_bar/activity_bar.tsx +6 -4
- package/src/components/button/Button.tsx +47 -35
- package/src/components/color-picker/gradient_select/gradient_select.tsx +9 -11
- package/src/components/color-picker/react-color/ColorPicker.tsx +6 -6
- package/src/components/color-picker/react-color/common/Saturation.tsx +6 -6
- package/src/components/color-picker/react-color/helpers/color.ts +4 -3
- package/src/components/dialog/ConfirmDialog.tsx +14 -11
- package/src/components/drop-zone/DropZone.tsx +3 -7
- package/src/components/forms/radio-button-group/RadioButton.tsx +4 -4
- package/src/components/forms/radio-button-group/RadioButtonGroup.tsx +2 -1
- package/src/components/header/Header.tsx +11 -16
- package/src/components/header/PanelHeader.tsx +26 -30
- package/src/components/info-panel/InfoPanel.tsx +43 -39
- package/src/components/inline_editable_renderer/index.ts +1 -0
- package/src/components/inline_editable_renderer/inline_editable_renderer.tsx +86 -0
- package/src/components/logger/FifoLoggerDialog.tsx +9 -11
- package/src/components/root-layout/css-reset/customPreflight.ts +1 -2
- package/src/components/split-pane/SplitPane.tsx +144 -117
- package/src/components/table/table_body.tsx +1 -0
- package/src/components/table/table_root.tsx +25 -6
- package/src/components/table/table_utils.ts +11 -0
- package/src/components/table/use_table_scroll.ts +55 -0
- package/src/components/toolbar/PanelPreferencesToolbar.tsx +30 -30
- package/src/components/toolbar/Toolbar.tsx +33 -37
- package/src/components/toolbar/TooltipHelpContent.tsx +0 -4
- package/src/components/utils/debounce.ts +16 -0
- package/src/components/utils/index.ts +2 -0
- package/src/components/utils/throttle.ts +19 -0
- package/src/components/value-renderers/Color.tsx +8 -13
- package/src/components/value-renderers/Text.tsx +6 -12
- package/src/components/value-renderers/Title.tsx +6 -12
- package/lib/components/accordion/accordion_context.state.d.ts +0 -26
- package/lib/components/accordion/accordion_context.state.d.ts.map +0 -1
- package/lib/components/accordion/accordion_context.state.js +0 -47
- package/lib/components/accordion/accordion_context.state.js.map +0 -1
- package/src/components/accordion/accordion_context.state.ts +0 -84
package/README.md
CHANGED
|
@@ -21,11 +21,19 @@ React components to build scientific applications UI.
|
|
|
21
21
|
|
|
22
22
|
### Global css
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Import the preflight css stylesheet, unless you use tailwindcss and you already added `@tailwind base;` to your tailwind stylesheet:
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
```js
|
|
27
|
+
import 'react-science/styles/preflight.css';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then import the blueprint stylesheets:
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
```js
|
|
33
|
+
import '@blueprintjs/core/lib/css/blueprint.css';
|
|
34
|
+
import '@blueprintjs/select/lib/css/blueprint-select.css';
|
|
35
|
+
import '@blueprintjs/icons/lib/css/blueprint-icons.css';
|
|
36
|
+
```
|
|
29
37
|
|
|
30
38
|
## Introduction
|
|
31
39
|
|
|
@@ -13,8 +13,8 @@ export interface AccordionItemProps {
|
|
|
13
13
|
unmountChildren?: boolean;
|
|
14
14
|
toolbar?: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export declare function Accordion(props: AccordionProps): import("
|
|
16
|
+
export declare function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare namespace Accordion {
|
|
18
|
-
var Item: (props: AccordionItemProps) => import("
|
|
18
|
+
var Item: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EACL,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,GACvC,YAAY,CAAC,kBAAkB,CAAC,GAChC,OAAO,GACP,IAAI,CAAC;CACV;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AA0BD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAE9C;yBAFe,SAAS;sBAIsB,kBAAkB"}
|
|
@@ -1,40 +1,31 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
|
|
3
|
-
import { css } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
4
3
|
import { useCallback } from 'react';
|
|
5
4
|
import { useAccordionContext } from './accordion_context.js';
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
borderStyle: 'solid none none',
|
|
29
|
-
color: 'rgb(45, 45, 45)',
|
|
30
|
-
fontWeight: 'bold',
|
|
31
|
-
textDecoration: 'none',
|
|
32
|
-
textShadow: 'rgb(255, 255, 255) 0px 1px 0px',
|
|
33
|
-
background: 'rgb(255, 255, 255) linear-gradient(rgb(240, 240, 240) 5%, rgb(225, 225, 225) 100%) repeat scroll 0% 0%',
|
|
34
|
-
}),
|
|
35
|
-
};
|
|
5
|
+
const AccordionItemHeader = styled.div `
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-color: #d5d5d5 currentcolor currentcolor;
|
|
10
|
+
border-style: solid none none;
|
|
11
|
+
color: #2d2d2d;
|
|
12
|
+
font-weight: bold;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
text-shadow: white 0 1px 0;
|
|
15
|
+
background: white linear-gradient(#f0f0f0 5%, #e1e1e1 100%) repeat scroll 0 0;
|
|
16
|
+
width: 100%;
|
|
17
|
+
user-select: none;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
padding: 0 12px;
|
|
20
|
+
`;
|
|
21
|
+
const AccordionContainer = styled.div `
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
height: 100%;
|
|
25
|
+
width: 100%;
|
|
26
|
+
`;
|
|
36
27
|
export function Accordion(props) {
|
|
37
|
-
return _jsx(
|
|
28
|
+
return _jsx(AccordionContainer, { children: props.children });
|
|
38
29
|
}
|
|
39
30
|
Accordion.Item = function AccordionItem(props) {
|
|
40
31
|
const { title, children, defaultOpened, toolbar } = props;
|
|
@@ -55,14 +46,7 @@ Accordion.Item = function AccordionItem(props) {
|
|
|
55
46
|
display: 'flex',
|
|
56
47
|
flexDirection: 'column',
|
|
57
48
|
isolation: 'isolate',
|
|
58
|
-
}, children: [_jsxs(
|
|
59
|
-
display: 'flex',
|
|
60
|
-
alignItems: 'center',
|
|
61
|
-
width: '100%',
|
|
62
|
-
userSelect: 'none',
|
|
63
|
-
justifyContent: 'space-between',
|
|
64
|
-
padding: '0px 12px',
|
|
65
|
-
}, css: styles.header, children: [_jsx("div", { style: {
|
|
49
|
+
}, children: [_jsxs(AccordionItemHeader, { onClick: onClickHandle, role: "button", children: [_jsx("div", { style: {
|
|
66
50
|
padding: '5px 0px',
|
|
67
51
|
}, children: title }), toolbar] }), !item?.isOpen && shouldUnmountChildren ? null : (_jsx("div", { style: {
|
|
68
52
|
display: item?.isOpen ? 'flex' : 'none',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/accordion/acc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S,EAAE,SAAS;SACrB,aAED,MAAC,mBAAmB,IAAC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAC,QAAQ,aACxD,cACE,KAAK,EAAE;4BACL,OAAO,EAAE,SAAS;yBACnB,YAEA,KAAK,GACF,EACL,OAAO,IACY,EACrB,CAAC,IAAI,EAAE,MAAM,IAAI,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC/C,cACE,KAAK,EAAE;oBACL,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;oBACvC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;oBACvC,eAAe,EAAE,OAAO;oBACxB,SAAS,EAAE,MAAM;oBACjB,QAAQ,EAAE,QAAQ;iBACnB,YAED,cACE,KAAK,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,KAAK,EAAE,MAAM;wBACb,QAAQ,EAAE,MAAM;wBAChB,OAAO,EAAE,MAAM;wBACf,aAAa,EAAE,QAAQ;qBACxB,YAEA,QAAQ,GACL,GACF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useMemo } from 'react';
|
|
2
|
-
import { getItem } from './accordion_context.
|
|
2
|
+
import { getItem } from './accordion_context.utils.js';
|
|
3
3
|
export const accordionContext = createContext(null);
|
|
4
4
|
export function useToggleAccordion() {
|
|
5
5
|
const context = useContext(accordionContext);
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import type { AccordionItemState, ActionType } from './accordion_context.utils.js';
|
|
3
|
+
interface AccordionProviderProps {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
unmountChildren?: boolean;
|
|
5
|
-
}
|
|
6
|
+
}
|
|
7
|
+
export type AccordionActions = ActionType<'CHANGE', {
|
|
8
|
+
title: string;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
}> | ActionType<'CLEAR', string> | ActionType<'TOGGLE', string> | ActionType<'REMOVE', string> | ActionType<'CREATE', AccordionItemState>;
|
|
11
|
+
export declare function AccordionProvider(props: AccordionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
6
13
|
//# sourceMappingURL=accordion_context.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion_context.provider.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion_context.provider.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACX,MAAM,8BAA8B,CAAC;AAQtC,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,MAAM,gBAAgB,GACxB,UAAU,CAAC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,GACxD,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,GAC3B,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,GAC5B,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,GAC5B,UAAU,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;AAyB7C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAsC9D"}
|
|
@@ -1,38 +1,55 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useReducer } from 'react';
|
|
3
|
+
import { match } from 'ts-pattern';
|
|
3
4
|
import { accordionContext } from './accordion_context.js';
|
|
4
|
-
import {
|
|
5
|
+
import { changeItem, clearItem, removeItem, toggleItem, } from './accordion_context.utils.js';
|
|
6
|
+
function reducer(previous, action) {
|
|
7
|
+
return match(action)
|
|
8
|
+
.with({ type: 'CHANGE' }, ({ payload }) => {
|
|
9
|
+
return changeItem(previous, payload);
|
|
10
|
+
})
|
|
11
|
+
.with({ type: 'CLEAR' }, ({ payload }) => {
|
|
12
|
+
return clearItem(previous, payload);
|
|
13
|
+
})
|
|
14
|
+
.with({ type: 'TOGGLE' }, ({ payload }) => {
|
|
15
|
+
return toggleItem(previous, payload);
|
|
16
|
+
})
|
|
17
|
+
.with({ type: 'REMOVE' }, ({ payload }) => {
|
|
18
|
+
return removeItem(previous, payload);
|
|
19
|
+
})
|
|
20
|
+
.with({ type: 'CREATE' }, ({ payload }) => {
|
|
21
|
+
return [...previous, payload];
|
|
22
|
+
})
|
|
23
|
+
.exhaustive();
|
|
24
|
+
}
|
|
5
25
|
export function AccordionProvider(props) {
|
|
6
|
-
const { unmountChildren = false } = props;
|
|
7
|
-
const [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return [{ items: state.items, unmountChildren }, utils];
|
|
35
|
-
}, [state.items, utils, unmountChildren]);
|
|
36
|
-
return (_jsx(accordionContext.Provider, { value: value, children: props.children }));
|
|
26
|
+
const { unmountChildren = false, children } = props;
|
|
27
|
+
const [items, dispatch] = useReducer(reducer, []);
|
|
28
|
+
const utils = useMemo(() => {
|
|
29
|
+
return {
|
|
30
|
+
change: (title, isOpen) => dispatch({ type: 'CHANGE', payload: { title, isOpen } }),
|
|
31
|
+
clear: (except) => dispatch({ type: 'CLEAR', payload: except }),
|
|
32
|
+
toggle: (title) => dispatch({ type: 'TOGGLE', payload: title }),
|
|
33
|
+
remove: (title) => dispatch({ type: 'REMOVE', payload: title }),
|
|
34
|
+
create: (title, defaultOpened) => {
|
|
35
|
+
const item = {
|
|
36
|
+
title,
|
|
37
|
+
isOpen: defaultOpened || false,
|
|
38
|
+
};
|
|
39
|
+
dispatch({ type: 'CREATE', payload: item });
|
|
40
|
+
return item;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
44
|
+
const contextValue = useMemo(() => {
|
|
45
|
+
return [
|
|
46
|
+
{
|
|
47
|
+
items,
|
|
48
|
+
unmountChildren,
|
|
49
|
+
},
|
|
50
|
+
utils,
|
|
51
|
+
];
|
|
52
|
+
}, [items, unmountChildren, utils]);
|
|
53
|
+
return (_jsx(accordionContext.Provider, { value: contextValue, children: children }));
|
|
37
54
|
}
|
|
38
55
|
//# sourceMappingURL=accordion_context.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion_context.provider.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion_context.provider.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,OAAO,EACL,UAAU,EACV,SAAS,EACT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
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface AccordionState {
|
|
6
|
+
items: AccordionItemState[];
|
|
7
|
+
unmountChildren: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function getItem(title: string, items: AccordionItemState[]): AccordionItemState | undefined;
|
|
10
|
+
export type ActionType<Action, Payload = void> = Payload extends void ? {
|
|
11
|
+
type: Action;
|
|
12
|
+
} : {
|
|
13
|
+
type: Action;
|
|
14
|
+
payload: Payload;
|
|
15
|
+
};
|
|
16
|
+
export declare function removeItem(array: AccordionItemState[], title: string): AccordionItemState[];
|
|
17
|
+
export declare function changeItem(array: AccordionItemState[], payload: {
|
|
18
|
+
title: string;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
}): AccordionItemState[];
|
|
21
|
+
export declare function clearItem(array: AccordionItemState[], except: string): AccordionItemState[];
|
|
22
|
+
export declare function toggleItem(array: AccordionItemState[], title: string): AccordionItemState[];
|
|
23
|
+
//# sourceMappingURL=accordion_context.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion_context.utils.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.utils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,EAAE,kCAEjE;AAED,MAAM,MAAM,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,IAAI,OAAO,SAAS,IAAI,GACjE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvC,wBAAgB,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,MAAM,wBAEpE;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,kBAAkB,EAAE,EAC3B,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,wBAU5C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,MAAM,wBAapE;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,MAAM,wBAcpE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function getItem(title, items) {
|
|
2
|
+
return items.find((element) => element.title === title);
|
|
3
|
+
}
|
|
4
|
+
export function removeItem(array, title) {
|
|
5
|
+
return array.filter((element) => element.title !== title);
|
|
6
|
+
}
|
|
7
|
+
export function changeItem(array, payload) {
|
|
8
|
+
const { title, isOpen } = payload;
|
|
9
|
+
const item = getItem(title, array);
|
|
10
|
+
if (item) {
|
|
11
|
+
return [...removeItem(array, title), { ...item, isOpen }];
|
|
12
|
+
}
|
|
13
|
+
return array;
|
|
14
|
+
}
|
|
15
|
+
export function clearItem(array, except) {
|
|
16
|
+
const item = getItem(except, array);
|
|
17
|
+
if (!item) {
|
|
18
|
+
return [...array, { isOpen: true, title: except }];
|
|
19
|
+
}
|
|
20
|
+
return array.map((element) => {
|
|
21
|
+
return {
|
|
22
|
+
...element,
|
|
23
|
+
isOpen: element.title === item.title,
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function toggleItem(array, title) {
|
|
28
|
+
const item = getItem(title, array);
|
|
29
|
+
if (!item) {
|
|
30
|
+
return [...array, { title, isOpen: true }];
|
|
31
|
+
}
|
|
32
|
+
return [
|
|
33
|
+
...removeItem(array, title),
|
|
34
|
+
{
|
|
35
|
+
...item,
|
|
36
|
+
isOpen: !item.isOpen,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=accordion_context.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion_context.utils.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion_context.utils.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,OAAO,CAAC,KAAa,EAAE,KAA2B;IAChE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC1D,CAAC;AAMD,MAAM,UAAU,UAAU,CAAC,KAA2B,EAAE,KAAa;IACnE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,KAA2B,EAC3B,OAA2C;IAE3C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAEnC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAA2B,EAAE,MAAc;IACnE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEpC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO;YACL,GAAG,OAAO;YACV,MAAM,EAAE,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;SACrC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAA2B,EAAE,KAAa;IACnE,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAEnC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO;QACL,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC;QAC3B;YACE,GAAG,IAAI;YACP,MAAM,EAAE,CAAC,IAAI,CAAC,MAAM;SACrB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './accordion.js';
|
|
2
|
-
export { type AccordionState } from './accordion_context.
|
|
2
|
+
export { type AccordionState } from './accordion_context.utils.js';
|
|
3
3
|
export { useToggleAccordion, useAccordionContext, } from './accordion_context.js';
|
|
4
4
|
export { AccordionProvider } from './accordion_context.provider.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './accordion.js';
|
|
2
|
-
export {} from './accordion_context.
|
|
2
|
+
export {} from './accordion_context.utils.js';
|
|
3
3
|
export { useToggleAccordion, useAccordionContext, } from './accordion_context.js';
|
|
4
4
|
export { AccordionProvider } from './accordion_context.provider.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity_bar.d.ts","sourceRoot":"","sources":["../../../src/components/activity_bar/activity_bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD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AAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAWD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAQlD;yBARe,WAAW;;;AAwC3B,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CA2C1D"}
|
|
@@ -21,12 +21,14 @@ const ActivityButton = styled(Button) `
|
|
|
21
21
|
.${Classes.ICON} {
|
|
22
22
|
color: ${Colors.DARK_GRAY3};
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
.${Classes.ICON} {
|
|
25
26
|
width: 20px;
|
|
26
27
|
height: 20px;
|
|
27
28
|
font-size: 14px;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
.${Classes.TAG} {
|
|
30
32
|
font-size: 12px;
|
|
31
33
|
line-height: 14px;
|
|
32
34
|
min-width: 18px;
|
|
@@ -47,8 +49,8 @@ export function ActivityBarItem(props) {
|
|
|
47
49
|
? icon
|
|
48
50
|
: cloneElement(icon, {
|
|
49
51
|
className: icon.props.className
|
|
50
|
-
? `${icon.props.className}
|
|
51
|
-
:
|
|
52
|
+
? `${icon.props.className} ${Classes.ICON}`
|
|
53
|
+
: Classes.ICON,
|
|
52
54
|
});
|
|
53
55
|
return (_jsx(ActivityButton, { type: "button", active: active, icon: _jsx(ActivityButtonIconContainer, { children: _jsx(Icon, { icon: resizedIcon, size: 20 }) }), onClick: onClick, tooltipProps: !tooltip
|
|
54
56
|
? undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity_bar.js","sourceRoot":"","sources":["../../../src/components/activity_bar/activity_bar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAA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,CAAC,IAAI;;;;;;KAMZ,OAAO,CAAC,GAAG;;;;;;CAMf,CAAC;AAEF,MAAM,2BAA2B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAO7C,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,MAAM,EACJ,MAAM,GAAG,KAAK,EACd,IAAI,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,GAAG,UAAU,EACd,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GACf,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAC/B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE;YACjB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;gBAC7B,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,EAAE;gBAC3C,CAAC,CAAC,OAAO,CAAC,IAAI;SACjB,CAAC,CAAC;IAET,OAAO,CACL,KAAC,cAAc,IACb,IAAI,EAAC,QAAQ,EACb,MAAM,EAAE,MAAM,EACd,IAAI,EACF,KAAC,2BAA2B,cAC1B,KAAC,IAAI,IAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,GAAI,GACT,EAEhC,OAAO,EAAE,OAAO,EAChB,YAAY,EACV,CAAC,OAAO;YACN,CAAC,CAAC,SAAS;YACX,CAAC,CAAC;gBACE,OAAO,EAAE,OAAO;gBAChB,SAAS,EAAE,MAAM;gBACjB,OAAO,EAAE,KAAK;gBACd,eAAe,EAAE,OAAO;gBACxB,GAAG,YAAY;aAChB,KAEH,UAAU,GACd,CACH,CAAC;AACJ,CAAC;AAED,WAAW,CAAC,IAAI,GAAG,eAAe,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/** @jsxImportSource @emotion/react */
|
|
2
1
|
import type { AnchorButtonProps as BlueprintAnchorButtonProps, ButtonProps as BlueprintButtonProps, TagProps, TooltipProps } from '@blueprintjs/core';
|
|
3
2
|
import type { ReactNode } from 'react';
|
|
4
3
|
type BlueprintProps = {
|
|
5
4
|
[key in keyof BlueprintButtonProps & keyof BlueprintAnchorButtonProps]?: BlueprintButtonProps[key] & BlueprintAnchorButtonProps[key];
|
|
6
5
|
};
|
|
7
6
|
export type ButtonProps = BlueprintProps & {
|
|
8
|
-
tooltipProps?: Partial<Omit<TooltipProps, 'children'>>;
|
|
7
|
+
tooltipProps?: Partial<Omit<TooltipProps, 'children' | 'targetProps'>>;
|
|
9
8
|
tag?: ReactNode;
|
|
10
9
|
tagProps?: Omit<TagProps, 'children'>;
|
|
11
10
|
};
|
|
12
|
-
export declare function Button(props: ButtonProps): import("
|
|
11
|
+
export declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export {};
|
|
14
13
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,IAAI,0BAA0B,EAC/C,WAAW,IAAI,oBAAoB,EACnC,QAAQ,EACR,YAAY,EACb,MAAM,mBAAmB,CAAC;AAW3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,cAAc,GAAG;KACnB,GAAG,IAAI,MAAM,oBAAoB,GAChC,MAAM,0BAA0B,CAAC,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAC7D,0BAA0B,CAAC,GAAG,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,YAAY,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IACvE,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;CACvC,CAAC;AAqCF,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAuCxC"}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
import { AnchorButton
|
|
3
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AnchorButton, Button as BlueprintButton, Classes, Icon, Tag, Tooltip, } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
+
const ButtonTag = styled(Tag) `
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
cursor: default;
|
|
10
|
+
font-size: 0.875em;
|
|
11
|
+
padding: 2px !important;
|
|
12
|
+
min-height: 15px;
|
|
13
|
+
min-width: 15px;
|
|
14
|
+
line-height: 1em;
|
|
15
|
+
text-align: center;
|
|
16
|
+
z-index: 20;
|
|
17
|
+
`;
|
|
18
|
+
// Setting the line-height makes sure regular sized buttons have a
|
|
19
|
+
// height consistent with the input fields and across variants.
|
|
20
|
+
// Using the same line height as in the blueprint docs.
|
|
21
|
+
function getStyledCss(buttonProps) {
|
|
22
|
+
return {
|
|
23
|
+
lineHeight: 1.15,
|
|
24
|
+
position: 'relative',
|
|
25
|
+
[`.${Classes.ICON}`]: !buttonProps.children && { marginRight: 0 },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const TooltipAnchorButton = styled(AnchorButton)(getStyledCss);
|
|
29
|
+
const TooltipButton = styled(BlueprintButton)(getStyledCss);
|
|
5
30
|
export function Button(props) {
|
|
6
31
|
const { tooltipProps = {}, children, tag, tagProps, ...buttonProps } = props;
|
|
7
32
|
const { fill, content = '', disabled = !tooltipProps.content, ...otherToolTipProps } = tooltipProps;
|
|
8
33
|
const InnerButton = buttonProps.disabled
|
|
9
|
-
?
|
|
10
|
-
:
|
|
11
|
-
return (_jsx(Tooltip, { fill: fill || buttonProps.fill, disabled: disabled, content: content, ...otherToolTipProps, renderTarget: ({ isOpen, ...targetProps }) => (_jsx(InnerButton, {
|
|
12
|
-
// Setting the line-height makes sure regular sized buttons have a
|
|
13
|
-
// height consistent with the input fields and across variants.
|
|
14
|
-
// Using the same line height as in the blueprint docs.
|
|
15
|
-
lineHeight: 1.15,
|
|
16
|
-
position: 'relative',
|
|
17
|
-
'.bp5-icon': !children && {
|
|
18
|
-
marginRight: '0',
|
|
19
|
-
},
|
|
20
|
-
}), ...targetProps, ...buttonProps, icon: _jsxs(Fragment, { children: [_jsx(Icon, { icon: buttonProps.icon }), tag && (_jsx(Tag, { css: css `
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
cursor: default;
|
|
25
|
-
font-size: 0.875em;
|
|
26
|
-
padding: 2px !important;
|
|
27
|
-
min-height: 15px;
|
|
28
|
-
min-width: 15px;
|
|
29
|
-
line-height: 1em;
|
|
30
|
-
text-align: center;
|
|
31
|
-
z-index: 20;
|
|
32
|
-
`, round: true, intent: "success", ...tagProps, children: tag }))] }), children: children })) }));
|
|
34
|
+
? TooltipAnchorButton
|
|
35
|
+
: TooltipButton;
|
|
36
|
+
return (_jsx(Tooltip, { fill: fill || buttonProps.fill, disabled: disabled, content: content, ...otherToolTipProps, renderTarget: ({ isOpen, ...targetProps }) => (_jsx(InnerButton, { ...targetProps, ...buttonProps, icon: _jsxs(Fragment, { children: [_jsx(Icon, { icon: buttonProps.icon }), tag && (_jsx(ButtonTag, { round: true, intent: "success", ...tagProps, children: tag }))] }), children: children })) }));
|
|
33
37
|
}
|
|
34
38
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,YAAY,EACZ,MAAM,IAAI,eAAe,EACzB,OAAO,EACP,IAAI,EACJ,GAAG,EACH,OAAO,GACR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAcjC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;;;;;;;;;;;;CAY5B,CAAC;AAEF,kEAAkE;AAClE,+DAA+D;AAC/D,uDAAuD;AACvD,SAAS,YAAY,CACnB,WAA8D;IAE9D,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,UAAU;QACpB,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE;KAClE,CAAC;AACJ,CAAC;AAED,MAAM,mBAAmB,GAAG,MAAM,CAAC,YAAY,CAAC,CAE7C,YAAY,CAAC,CAAC;AAEjB,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAC3C,YAAY,CACb,CAAC;AAEF,MAAM,UAAU,MAAM,CAAC,KAAkB;IACvC,MAAM,EAAE,YAAY,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAC7E,MAAM,EACJ,IAAI,EACJ,OAAO,GAAG,EAAE,EACZ,QAAQ,GAAG,CAAC,YAAY,CAAC,OAAO,EAChC,GAAG,iBAAiB,EACrB,GAAG,YAAY,CAAC;IAEjB,MAAM,WAAW,GAAG,WAAW,CAAC,QAAQ;QACtC,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,aAAa,CAAC;IAElB,OAAO,CACL,KAAC,OAAO,IACN,IAAI,EAAE,IAAI,IAAI,WAAW,CAAC,IAAI,EAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,KACZ,iBAAiB,EACrB,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,EAAE,CAAC,CAC5C,KAAC,WAAW,OACN,WAAW,KACX,WAAW,EACf,IAAI,EACF,MAAC,QAAQ,eACP,KAAC,IAAI,IAAC,IAAI,EAAE,WAAW,CAAC,IAAI,GAAI,EAC/B,GAAG,IAAI,CACN,KAAC,SAAS,IAAC,KAAK,QAAC,MAAM,EAAC,SAAS,KAAK,QAAQ,YAC3C,GAAG,GACM,CACb,IACQ,YAGZ,QAAQ,GACG,CACf,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -3,5 +3,5 @@ export interface GradientSelectProps {
|
|
|
3
3
|
value: GradientScaleName;
|
|
4
4
|
onChange: (value: GradientScaleName) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare function GradientSelect(props: GradientSelectProps): import("
|
|
6
|
+
export declare function GradientSelect(props: GradientSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=gradient_select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradient_select.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/gradient_select/gradient_select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gradient_select.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/gradient_select/gradient_select.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkCpE,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C;AA8BD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAoBxD"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
/** @jsxImportSource @emotion/react */
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { Button, MenuItem } from '@blueprintjs/core';
|
|
4
3
|
import { Select } from '@blueprintjs/select';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
4
|
import styled from '@emotion/styled';
|
|
7
5
|
import { FaChevronDown } from 'react-icons/fa';
|
|
8
6
|
import FixedGradientPreview from '../preview/FixedGradientPreview.js';
|
|
@@ -27,6 +25,12 @@ const GradientSelectOption = styled.li `
|
|
|
27
25
|
padding-top: 5px;
|
|
28
26
|
cursor: pointer;
|
|
29
27
|
`;
|
|
28
|
+
const GradientSelectButton = styled(Button) `
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 30px;
|
|
31
|
+
padding: 4px;
|
|
32
|
+
display: block;
|
|
33
|
+
`;
|
|
30
34
|
const renderItem = (option, { handleClick, handleFocus, modifiers }) => {
|
|
31
35
|
if (!modifiers.matchesPredicate) {
|
|
32
36
|
return null;
|
|
@@ -35,11 +39,6 @@ const renderItem = (option, { handleClick, handleFocus, modifiers }) => {
|
|
|
35
39
|
};
|
|
36
40
|
export function GradientSelect(props) {
|
|
37
41
|
const { value, onChange } = props;
|
|
38
|
-
return (_jsx(GradientSelectListbox, { children: _jsx(Select, { popoverProps: { matchTargetWidth: true }, activeItem: value, onItemSelect: onChange, items: scaleOptions, itemRenderer: renderItem, filterable: false, fill: true, children: _jsxs(
|
|
39
|
-
width: 100%;
|
|
40
|
-
height: 30px;
|
|
41
|
-
padding: 4px;
|
|
42
|
-
display: block;
|
|
43
|
-
`, children: [_jsx(FixedGradientPreview, { gradient: value }), _jsx(GradientSelectChevron, {})] }) }) }));
|
|
42
|
+
return (_jsx(GradientSelectListbox, { children: _jsx(Select, { popoverProps: { matchTargetWidth: true }, activeItem: value, onItemSelect: onChange, items: scaleOptions, itemRenderer: renderItem, filterable: false, fill: true, children: _jsxs(GradientSelectButton, { children: [_jsx(FixedGradientPreview, { gradient: value }), _jsx(GradientSelectChevron, {})] }) }) }));
|
|
44
43
|
}
|
|
45
44
|
//# sourceMappingURL=gradient_select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradient_select.js","sourceRoot":"","sources":["../../../../src/components/color-picker/gradient_select/gradient_select.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"gradient_select.js","sourceRoot":"","sources":["../../../../src/components/color-picker/gradient_select/gradient_select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,oBAAoB,MAAM,oCAAoC,CAAC;AAGtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAwB,CAAC;AAE7E,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMvC,CAAC;AAEF,MAAM,qBAAqB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;;;;;CAKlD,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;CAKrC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;CAK1C,CAAC;AAOF,MAAM,UAAU,GAAoC,CAClD,MAAM,EACN,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,EACvC,EAAE;IACF,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,KAAC,QAAQ,IACP,MAAM,EAAE,SAAS,CAAC,MAAM,EAExB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,aAAa,EAAC,YAAY,EAC1B,IAAI,EACF,0BACG,MAAM,EACP,KAAC,oBAAoB,cACnB,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YACxB,KAAC,oBAAoB,IAAC,QAAQ,EAAE,MAAM,GAAI,GACtC,GACe,IACnB,IAZH,MAAM,CAcX,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,KAA0B;IACvD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,CACL,KAAC,qBAAqB,cACpB,KAAC,MAAM,IACL,YAAY,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,EACxC,UAAU,EAAE,KAAK,EACjB,YAAY,EAAE,QAAQ,EACtB,KAAK,EAAE,YAAY,EACnB,YAAY,EAAE,UAAU,EACxB,UAAU,EAAE,KAAK,EACjB,IAAI,kBAEJ,MAAC,oBAAoB,eACnB,KAAC,oBAAoB,IAAC,QAAQ,EAAE,KAAK,GAAI,EACzC,KAAC,qBAAqB,KAAG,IACJ,GAChB,GACa,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/react-color/ColorPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/color-picker/react-color/ColorPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAW3C,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CA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