@galaxy-io/dls 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.js +2 -2
- package/dist/avatar/AvatarShimmer.d.ts +1 -1
- package/dist/buttons/Button.js +2 -2
- package/dist/charts/ChartPrimitives.d.ts +2 -2
- package/dist/dividers/HorizontalDivider.d.ts +4 -1
- package/dist/dividers/HorizontalDivider.js +28 -7
- package/dist/inputs/CopyInput.js +4 -1
- package/dist/inputs/Input.d.ts +1 -1
- package/dist/inputs/MultiSelectInput.js +3 -3
- package/dist/inputs/SelectInput.js +3 -3
- package/dist/inputs/SwitcherInput.d.ts +11 -0
- package/dist/{switcher/Switcher.js → inputs/SwitcherInput.js} +15 -15
- package/dist/shapes/Square.d.ts +6 -0
- package/dist/shapes/Square.js +25 -0
- package/dist/styles.css +10 -10
- package/dist/table/SpreadsheetPrimitives.d.ts +6 -6
- package/dist/table/TablePrimitives.d.ts +6 -6
- package/dist/text/HotKeys.d.ts +20 -0
- package/dist/text/HotKeys.js +68 -0
- package/dist/toast/ToastProvider.js +1 -1
- package/dist/{animations → transform}/Fade.js +1 -1
- package/dist/transform/Flash.d.ts +3 -0
- package/dist/transform/Flash.js +14 -0
- package/dist/transform/Rotate.d.ts +8 -0
- package/dist/transform/Rotate.js +28 -0
- package/dist/{animations → transform}/ScaleFade.js +1 -1
- package/dist/transform/Spin.d.ts +7 -0
- package/dist/transform/Spin.js +20 -0
- package/package.json +4 -12
- package/dist/animations/Flashing.d.ts +0 -3
- package/dist/animations/Flashing.js +0 -14
- package/dist/animations/RotateWithTransition.d.ts +0 -8
- package/dist/animations/RotateWithTransition.js +0 -28
- package/dist/animations/SpinAnimation.d.ts +0 -7
- package/dist/animations/SpinAnimation.js +0 -20
- package/dist/animations/SpinVerticalAnimation.d.ts +0 -6
- package/dist/animations/SpinVerticalAnimation.js +0 -19
- package/dist/hotkeys/HotKeyBindings.d.ts +0 -7
- package/dist/hotkeys/HotKeyBindings.js +0 -23
- package/dist/hotkeys/HotKeySymbol.d.ts +0 -13
- package/dist/hotkeys/HotKeySymbol.js +0 -49
- package/dist/switcher/Switcher.d.ts +0 -11
- /package/dist/{animations → transform}/Fade.d.ts +0 -0
- /package/dist/{animations → transform}/ScaleFade.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
2
|
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
import Rotate from "../transform/Rotate.js";
|
|
3
4
|
import Text, { TextSize, TextVariant, TextWeight } from "../text/Text.js";
|
|
4
5
|
import FlexItem from "../containers/FlexItem.js";
|
|
5
6
|
import Icon, { IconVariant } from "../icons/Icon.js";
|
|
6
7
|
import FlexWrapper, { AlignItems, FlexDirection } from "../containers/FlexWrapper.js";
|
|
7
|
-
import RotateWithTransition from "../animations/RotateWithTransition.js";
|
|
8
8
|
import HorizontalDivider from "../dividers/HorizontalDivider.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { styled } from "@linaria/react";
|
|
@@ -107,7 +107,7 @@ var Accordion = ({ children, variant = "PRIMARY", size = "MEDIUM", icon, header,
|
|
|
107
107
|
}), /* @__PURE__ */ jsxs(FlexWrapper, {
|
|
108
108
|
alignItems: AlignItems.CENTER,
|
|
109
109
|
gap: 8,
|
|
110
|
-
children: [metric && metric, /* @__PURE__ */ jsx(
|
|
110
|
+
children: [metric && metric, /* @__PURE__ */ jsx(Rotate, {
|
|
111
111
|
isRotated: isOpen,
|
|
112
112
|
deg: -180,
|
|
113
113
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -7,7 +7,7 @@ export declare const StyledAvatarShimmer: import("react").ComponentType<Pick<imp
|
|
|
7
7
|
theme: import("../theme").Theme;
|
|
8
8
|
} & {
|
|
9
9
|
as?: React.ElementType;
|
|
10
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
10
|
+
}, "$size" | "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
11
11
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
12
12
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
13
13
|
$size?: number;
|
package/dist/buttons/Button.js
CHANGED
|
@@ -83,10 +83,10 @@ var LabelWrapper = /*#__PURE__*/ styled("span")({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
function getTextVariant(variant, activeTheme) {
|
|
86
|
-
return match(variant).with("PRIMARY", () => activeTheme === GalaxyTheme.DARK ? TextVariant.PRIMARY : TextVariant.PRIMARY_ALT).with("PRIMARY_ALT", () => TextVariant.PRIMARY_ALT).with("SECONDARY", () => TextVariant.PRIMARY).with("TERTIARY", () => TextVariant.PRIMARY).with("SUCCESS", () => TextVariant.PRIMARY).with("ERROR", () => TextVariant.PRIMARY).exhaustive();
|
|
86
|
+
return match(variant).with("PRIMARY", () => activeTheme === GalaxyTheme.DARK ? TextVariant.PRIMARY : TextVariant.PRIMARY_ALT).with("PRIMARY_ALT", () => TextVariant.PRIMARY_ALT).with("SECONDARY", () => TextVariant.PRIMARY).with("TERTIARY", () => TextVariant.PRIMARY).with("SUCCESS", () => activeTheme === GalaxyTheme.DARK ? TextVariant.PRIMARY : TextVariant.PRIMARY_ALT).with("ERROR", () => activeTheme === GalaxyTheme.DARK ? TextVariant.PRIMARY : TextVariant.PRIMARY_ALT).exhaustive();
|
|
87
87
|
}
|
|
88
88
|
function getIconVariant(variant, activeTheme) {
|
|
89
|
-
return match(variant).with("PRIMARY", () => activeTheme === GalaxyTheme.DARK ? IconVariant.PRIMARY : IconVariant.PRIMARY_ALT).with("PRIMARY_ALT", () => IconVariant.PRIMARY_ALT).with("SECONDARY", () => IconVariant.PRIMARY).with("TERTIARY", () => IconVariant.PRIMARY).with("SUCCESS", () => IconVariant.PRIMARY).with("ERROR", () => IconVariant.PRIMARY).exhaustive();
|
|
89
|
+
return match(variant).with("PRIMARY", () => activeTheme === GalaxyTheme.DARK ? IconVariant.PRIMARY : IconVariant.PRIMARY_ALT).with("PRIMARY_ALT", () => IconVariant.PRIMARY_ALT).with("SECONDARY", () => IconVariant.PRIMARY).with("TERTIARY", () => IconVariant.PRIMARY).with("SUCCESS", () => activeTheme === GalaxyTheme.DARK ? IconVariant.PRIMARY : IconVariant.PRIMARY_ALT).with("ERROR", () => activeTheme === GalaxyTheme.DARK ? IconVariant.PRIMARY : IconVariant.PRIMARY_ALT).exhaustive();
|
|
90
90
|
}
|
|
91
91
|
var BUTTON_SIZE_TO_TEXT_SIZE_MAP = {
|
|
92
92
|
["SMALL"]: TextSize.BODY_SM,
|
|
@@ -132,7 +132,7 @@ export declare const ChartTooltipPositioner: import("react").ComponentType<Pick<
|
|
|
132
132
|
theme: import("../theme").Theme;
|
|
133
133
|
} & {
|
|
134
134
|
as?: React.ElementType;
|
|
135
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "
|
|
135
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "$x" | "$y" | "$isVisible"> & {
|
|
136
136
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
137
137
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
138
138
|
$x: number;
|
|
@@ -174,7 +174,7 @@ export declare const ChartEmptyOverlay: import("react").ComponentType<Pick<impor
|
|
|
174
174
|
theme: import("../theme").Theme;
|
|
175
175
|
} & {
|
|
176
176
|
as?: React.ElementType;
|
|
177
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
177
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
178
178
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
179
179
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
180
180
|
theme: import("../theme").Theme;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export interface HorizontalDividerProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const HorizontalDivider: ({ label }: HorizontalDividerProps) => import("react").JSX.Element;
|
|
2
5
|
export default HorizontalDivider;
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import Text, { TextSize, TextVariant } from "../text/Text.js";
|
|
2
3
|
/* empty css */
|
|
3
4
|
import { styled } from "@linaria/react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
//#region src/dividers/HorizontalDivider.tsx
|
|
6
|
-
var _exp = () => ({
|
|
7
|
-
var
|
|
8
|
-
|
|
7
|
+
var _exp = () => ({ $flex }) => $flex ? "auto" : "100%";
|
|
8
|
+
var _exp2 = () => ({ $flex }) => $flex ? "1 1 0%" : "0 0 auto";
|
|
9
|
+
var _exp3 = () => ({ theme }) => theme.color.border.primary;
|
|
10
|
+
var HorizontalDividerLine = withTheme(/*#__PURE__*/ styled("div")({
|
|
11
|
+
name: "HorizontalDividerLine",
|
|
9
12
|
class: "h1sww5hz",
|
|
10
13
|
propsAsIs: false,
|
|
11
|
-
vars: {
|
|
14
|
+
vars: {
|
|
15
|
+
"h1sww5hz-0": [_exp()],
|
|
16
|
+
"h1sww5hz-1": [_exp2()],
|
|
17
|
+
"h1sww5hz-2": [_exp3()]
|
|
18
|
+
}
|
|
12
19
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
20
|
+
var LabeledDividerWrapper = /*#__PURE__*/ styled("div")({
|
|
21
|
+
name: "LabeledDividerWrapper",
|
|
22
|
+
class: "l44ah51",
|
|
23
|
+
propsAsIs: false
|
|
24
|
+
});
|
|
25
|
+
var HorizontalDivider = ({ label }) => {
|
|
26
|
+
if (!label) return /* @__PURE__ */ jsx(HorizontalDividerLine, {});
|
|
27
|
+
return /* @__PURE__ */ jsxs(LabeledDividerWrapper, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(HorizontalDividerLine, { $flex: true }),
|
|
29
|
+
/* @__PURE__ */ jsx(Text, {
|
|
30
|
+
size: TextSize.CAPTION,
|
|
31
|
+
variant: TextVariant.TERTIARY,
|
|
32
|
+
children: label
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsx(HorizontalDividerLine, { $flex: true })
|
|
35
|
+
] });
|
|
15
36
|
};
|
|
16
37
|
//#endregion
|
|
17
38
|
export { HorizontalDivider as default };
|
package/dist/inputs/CopyInput.js
CHANGED
|
@@ -2,7 +2,7 @@ import Button, { ButtonSize, ButtonVariant } from "../buttons/Button.js";
|
|
|
2
2
|
import FlexWrapper, { AlignItems } from "../containers/FlexWrapper.js";
|
|
3
3
|
import { InputSize } from "./Input.js";
|
|
4
4
|
import TextInput from "./TextInput.js";
|
|
5
|
-
import { useCallback, useState } from "react";
|
|
5
|
+
import { useCallback, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
|
|
8
8
|
//#region src/inputs/CopyInput.tsx
|
|
@@ -13,7 +13,9 @@ var INPUT_SIZE_TO_BUTTON_SIZE = {
|
|
|
13
13
|
};
|
|
14
14
|
var CopyInput = ({ value, label, labelTooltip, size = InputSize.MEDIUM, width, fillWidth, isMonospace = false }) => {
|
|
15
15
|
const [copied, setCopied] = useState(false);
|
|
16
|
+
const inputRef = useRef(null);
|
|
16
17
|
const handleCopy = useCallback(() => {
|
|
18
|
+
inputRef.current?.select();
|
|
17
19
|
navigator.clipboard.writeText(value).then(() => {
|
|
18
20
|
setCopied(true);
|
|
19
21
|
setTimeout(() => setCopied(false), 2e3);
|
|
@@ -24,6 +26,7 @@ var CopyInput = ({ value, label, labelTooltip, size = InputSize.MEDIUM, width, f
|
|
|
24
26
|
gap: 8,
|
|
25
27
|
fillWidth,
|
|
26
28
|
children: [/* @__PURE__ */ jsx(TextInput, {
|
|
29
|
+
ref: inputRef,
|
|
27
30
|
label,
|
|
28
31
|
labelTooltip,
|
|
29
32
|
value,
|
package/dist/inputs/Input.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const StyledInput: import("react").ComponentType<Pick<import("rea
|
|
|
24
24
|
theme: import("../theme").Theme;
|
|
25
25
|
} & {
|
|
26
26
|
as?: React.ElementType;
|
|
27
|
-
}, "$width" | "$fillWidth" | "
|
|
27
|
+
}, "$width" | "$fillWidth" | "$size" | "$isMonospace" | "as" | "$isError" | "$hasLeadingIcon" | "$hasTrailingAction" | "$isDisabled" | keyof import("react").ClassAttributes<HTMLInputElement> | keyof import("react").InputHTMLAttributes<HTMLInputElement>> & {
|
|
28
28
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
29
29
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
30
30
|
$size: InputSize;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
2
|
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
import Rotate from "../transform/Rotate.js";
|
|
3
4
|
import Text, { TextSize, TextVariant } from "../text/Text.js";
|
|
4
5
|
import FlexItem from "../containers/FlexItem.js";
|
|
5
6
|
import Icon, { IconVariant } from "../icons/Icon.js";
|
|
@@ -7,7 +8,6 @@ import FlexWrapper, { AlignItems, FlexDirection } from "../containers/FlexWrappe
|
|
|
7
8
|
import CheckboxInput, { CheckboxInputVariant } from "./CheckboxInput.js";
|
|
8
9
|
import Dropdown, { DropdownPosition, DropdownVariant } from "../dropdown/Dropdown.js";
|
|
9
10
|
import { InputLabel, InputSize } from "./Input.js";
|
|
10
|
-
import RotateWithTransition from "../animations/RotateWithTransition.js";
|
|
11
11
|
import HorizontalDivider from "../dividers/HorizontalDivider.js";
|
|
12
12
|
import { useElementWidth } from "../hooks/useElementWidth.js";
|
|
13
13
|
import { useControlledOpenState, useDebouncedValue } from "./hooks.js";
|
|
@@ -503,7 +503,7 @@ var MultiSelectInput = ({ label, icon, variant = SelectInputVariant.PRIMARY, siz
|
|
|
503
503
|
disabled: effectiveIsDisabled,
|
|
504
504
|
onClick: (e) => e.stopPropagation()
|
|
505
505
|
}),
|
|
506
|
-
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(
|
|
506
|
+
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(Rotate, {
|
|
507
507
|
isRotated: visible,
|
|
508
508
|
deg: -180,
|
|
509
509
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -541,7 +541,7 @@ var MultiSelectInput = ({ label, icon, variant = SelectInputVariant.PRIMARY, siz
|
|
|
541
541
|
isEllipsis: true,
|
|
542
542
|
children: displayValue
|
|
543
543
|
}),
|
|
544
|
-
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(
|
|
544
|
+
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(Rotate, {
|
|
545
545
|
isRotated: visible,
|
|
546
546
|
deg: -180,
|
|
547
547
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
2
|
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
import Rotate from "../transform/Rotate.js";
|
|
3
4
|
import Text, { TextSize, TextVariant } from "../text/Text.js";
|
|
4
5
|
import FlexItem from "../containers/FlexItem.js";
|
|
5
6
|
import Icon, { IconVariant, IconWeight } from "../icons/Icon.js";
|
|
@@ -7,7 +8,6 @@ import FlexWrapper, { AlignItems, FlexDirection } from "../containers/FlexWrappe
|
|
|
7
8
|
import Dropdown, { DropdownVariant } from "../dropdown/Dropdown.js";
|
|
8
9
|
import Spacing from "../containers/Spacing.js";
|
|
9
10
|
import { InputLabel, InputSize } from "./Input.js";
|
|
10
|
-
import RotateWithTransition from "../animations/RotateWithTransition.js";
|
|
11
11
|
import HorizontalDivider from "../dividers/HorizontalDivider.js";
|
|
12
12
|
import { useElementWidth } from "../hooks/useElementWidth.js";
|
|
13
13
|
import { useControlledOpenState, useDebouncedValue } from "./hooks.js";
|
|
@@ -451,7 +451,7 @@ var SelectInput = ({ label, variant = "PRIMARY", size = InputSize.MEDIUM, option
|
|
|
451
451
|
onClick: (e) => e.stopPropagation()
|
|
452
452
|
}),
|
|
453
453
|
/* @__PURE__ */ jsx(Spacing, { left: 8 }),
|
|
454
|
-
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(
|
|
454
|
+
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(Rotate, {
|
|
455
455
|
isRotated: visible,
|
|
456
456
|
deg: -180,
|
|
457
457
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -498,7 +498,7 @@ var SelectInput = ({ label, variant = "PRIMARY", size = InputSize.MEDIUM, option
|
|
|
498
498
|
})]
|
|
499
499
|
}),
|
|
500
500
|
/* @__PURE__ */ jsx(Spacing, { left: 8 }),
|
|
501
|
-
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(
|
|
501
|
+
/* @__PURE__ */ jsx(FlexWrapper, { children: /* @__PURE__ */ jsx(Rotate, {
|
|
502
502
|
isRotated: visible,
|
|
503
503
|
deg: -180,
|
|
504
504
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface SwitcherInputItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
interface SwitcherInputProps {
|
|
7
|
+
items: SwitcherInputItem[];
|
|
8
|
+
selectedId: string;
|
|
9
|
+
}
|
|
10
|
+
declare const SwitcherInput: ({ items, selectedId }: SwitcherInputProps) => import("react").JSX.Element;
|
|
11
|
+
export default SwitcherInput;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
2
|
import Text, { TextWeight } from "../text/Text.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
import { styled } from "@linaria/react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/
|
|
6
|
+
//#region src/inputs/SwitcherInput.tsx
|
|
7
7
|
var _exp = () => ({ theme }) => theme.color.background.primary;
|
|
8
8
|
var _exp2 = () => ({ theme }) => theme.color.border.primary;
|
|
9
|
-
var
|
|
10
|
-
name: "
|
|
11
|
-
class: "
|
|
9
|
+
var StyledSwitcherInput = withTheme(/*#__PURE__*/ styled("div")({
|
|
10
|
+
name: "StyledSwitcherInput",
|
|
11
|
+
class: "sx2momv",
|
|
12
12
|
propsAsIs: false,
|
|
13
13
|
vars: {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"sx2momv-0": [_exp()],
|
|
15
|
+
"sx2momv-1": [_exp2()]
|
|
16
16
|
}
|
|
17
17
|
}));
|
|
18
18
|
var _exp3 = () => ({ theme, $isSelected }) => $isSelected ? theme.color.background.secondary : "transparent";
|
|
19
19
|
var _exp4 = () => ({ theme, $isSelected }) => $isSelected ? theme.color.border.primary : "transparent";
|
|
20
|
-
var
|
|
21
|
-
name: "
|
|
22
|
-
class: "
|
|
20
|
+
var StyledSwitcherInputItem = withTheme(/*#__PURE__*/ styled("div")({
|
|
21
|
+
name: "StyledSwitcherInputItem",
|
|
22
|
+
class: "s1pe4aqp",
|
|
23
23
|
propsAsIs: false,
|
|
24
24
|
vars: {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"s1pe4aqp-0": [_exp3()],
|
|
26
|
+
"s1pe4aqp-1": [_exp4()]
|
|
27
27
|
}
|
|
28
28
|
}));
|
|
29
|
-
var
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
+
var SwitcherInput = ({ items, selectedId }) => {
|
|
30
|
+
return /* @__PURE__ */ jsx(StyledSwitcherInput, { children: items.map((item) => /* @__PURE__ */ jsx(StyledSwitcherInputItem, {
|
|
31
31
|
onClick: item.onClick,
|
|
32
32
|
$isSelected: item.id === selectedId,
|
|
33
33
|
children: /* @__PURE__ */ jsx(Text, {
|
|
@@ -38,4 +38,4 @@ var Switcher = ({ items, selectedId }) => {
|
|
|
38
38
|
}, item.label)) });
|
|
39
39
|
};
|
|
40
40
|
//#endregion
|
|
41
|
-
export {
|
|
41
|
+
export { SwitcherInput as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
import { getCssSizeValue } from "../utils/linaria.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { styled } from "@linaria/react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/shapes/Square.tsx
|
|
7
|
+
var _exp2 = () => ({ $size }) => getCssSizeValue($size);
|
|
8
|
+
var _exp3 = () => ({ theme, $hex }) => $hex ?? theme.color.text.tertiary;
|
|
9
|
+
var SquareWrapper = withTheme(/*#__PURE__*/ styled("div")({
|
|
10
|
+
name: "SquareWrapper",
|
|
11
|
+
class: "s1ibzzfh",
|
|
12
|
+
propsAsIs: false,
|
|
13
|
+
vars: {
|
|
14
|
+
"s1ibzzfh-0": [_exp2()],
|
|
15
|
+
"s1ibzzfh-1": [_exp3()]
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
var Square = ({ size, hex }) => {
|
|
19
|
+
return /* @__PURE__ */ jsx(SquareWrapper, {
|
|
20
|
+
$size: size,
|
|
21
|
+
$hex: hex
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Square as default };
|
package/dist/styles.css
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
.a1gttren{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:space-between;-webkit-justify-content:space-between;justify-content:space-between;width:100%;padding:var(--a1gttren-0);background-color:transparent;cursor:pointer;-webkit-transition:background-color 0.075s ease-in-out;transition:background-color 0.075s ease-in-out;}
|
|
3
3
|
.ai1xw52{display:-ms-grid;display:grid;-ms-grid-rows:var(--ai1xw52-0);grid-template-rows:var(--ai1xw52-0);-webkit-transition:grid-template-rows 0.15s ease-in-out;transition:grid-template-rows 0.15s ease-in-out;}
|
|
4
4
|
.a1f5gwwu{overflow:hidden;overscroll-behavior:auto;}
|
|
5
|
-
.r94gjni{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-transition:rotate var(--r94gjni-0) ease-in-out;transition:rotate var(--r94gjni-0) ease-in-out;rotate:var(--r94gjni-1);}
|
|
6
5
|
.s1he36jx{position:var(--s1he36jx-0);display:var(--s1he36jx-1);-webkit-align-items:var(--s1he36jx-2);-webkit-box-align:var(--s1he36jx-2);-ms-flex-align:var(--s1he36jx-2);align-items:var(--s1he36jx-2);-webkit-box-pack:var(--s1he36jx-3);-ms-flex-pack:var(--s1he36jx-3);-webkit-justify-content:var(--s1he36jx-3);justify-content:var(--s1he36jx-3);-webkit-box-flex:var(--s1he36jx-4);-webkit-flex-grow:var(--s1he36jx-4);-ms-flex-positive:var(--s1he36jx-4);flex-grow:var(--s1he36jx-4);-webkit-flex-shrink:var(--s1he36jx-5);-ms-flex-negative:var(--s1he36jx-5);flex-shrink:var(--s1he36jx-5);-webkit-flex-basis:var(--s1he36jx-6);-ms-flex-preferred-size:var(--s1he36jx-6);flex-basis:var(--s1he36jx-6);width:var(--s1he36jx-7);height:var(--s1he36jx-8);min-width:var(--s1he36jx-9);max-width:var(--s1he36jx-10);min-height:var(--s1he36jx-11);max-height:var(--s1he36jx-12);overflow:var(--s1he36jx-13);white-space:var(--s1he36jx-14);text-overflow:var(--s1he36jx-15);padding:var(--s1he36jx-16);overscroll-behavior:auto;cursor:var(--s1he36jx-17);}
|
|
7
6
|
.s12krdms{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;-webkit-flex-direction:var(--s12krdms-0);-ms-flex-direction:var(--s12krdms-0);flex-direction:var(--s12krdms-0);-webkit-align-items:var(--s12krdms-1);-webkit-box-align:var(--s12krdms-1);-ms-flex-align:var(--s12krdms-1);align-items:var(--s12krdms-1);-webkit-box-pack:var(--s12krdms-2);-ms-flex-pack:var(--s12krdms-2);-webkit-justify-content:var(--s12krdms-2);justify-content:var(--s12krdms-2);gap:var(--s12krdms-3);-webkit-box-flex-wrap:var(--s12krdms-4);-webkit-flex-wrap:var(--s12krdms-4);-ms-flex-wrap:var(--s12krdms-4);flex-wrap:var(--s12krdms-4);-webkit-box-flex:var(--s12krdms-5);-webkit-flex-grow:var(--s12krdms-5);-ms-flex-positive:var(--s12krdms-5);flex-grow:var(--s12krdms-5);-webkit-flex-shrink:var(--s12krdms-6);-ms-flex-negative:var(--s12krdms-6);flex-shrink:var(--s12krdms-6);-webkit-flex-basis:var(--s12krdms-7);-ms-flex-preferred-size:var(--s12krdms-7);flex-basis:var(--s12krdms-7);width:var(--s12krdms-8);height:var(--s12krdms-9);min-width:var(--s12krdms-10);max-width:var(--s12krdms-11);min-height:var(--s12krdms-12);max-height:var(--s12krdms-13);overflow:var(--s12krdms-14);padding:var(--s12krdms-15);margin:var(--s12krdms-16);overscroll-behavior:auto;cursor:var(--s12krdms-17);}
|
|
8
|
-
.h1sww5hz{width:
|
|
7
|
+
.h1sww5hz{width:var(--h1sww5hz-0);height:0.5px;min-height:0.5px;-webkit-flex:var(--h1sww5hz-1);-ms-flex:var(--h1sww5hz-1);flex:var(--h1sww5hz-1);background-color:var(--h1sww5hz-2);}
|
|
8
|
+
.l44ah51{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;width:100%;}
|
|
9
9
|
.shbcgkd{color:var(--shbcgkd-0);font-family:var(--shbcgkd-1);font-size:var(--shbcgkd-2);font-weight:var(--shbcgkd-3);line-height:var(--shbcgkd-4);letter-spacing:var(--shbcgkd-5);text-align:var(--shbcgkd-6);-webkit-text-decoration:var(--shbcgkd-7);text-decoration:var(--shbcgkd-7);cursor:var(--shbcgkd-8);-webkit-user-select:var(--shbcgkd-9);-moz-user-select:var(--shbcgkd-9);-ms-user-select:var(--shbcgkd-9);user-select:var(--shbcgkd-9);-webkit-user-select:var(--shbcgkd-9);-moz-user-select:var(--shbcgkd-9);-ms-user-select:var(--shbcgkd-9);overflow:var(--shbcgkd-10);text-overflow:var(--shbcgkd-11);white-space:var(--shbcgkd-12);width:var(--shbcgkd-13);overscroll-behavior:auto;-webkit-transition:color 0.075s ease-in-out;transition:color 0.075s ease-in-out;}
|
|
10
|
-
.
|
|
11
|
-
.s1eqyn2i{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-animation:spin-s1eqyn2i var(--s1eqyn2i-0) linear infinite;animation:spin-s1eqyn2i var(--s1eqyn2i-0) linear infinite;transform-origin:50% 50%;}@-webkit-keyframes spin-s1eqyn2i{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes spin-s1eqyn2i{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
|
|
12
|
-
.s1eibpeh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}.s1eibpeh >*{-webkit-animation:spinVertical-s1eibpeh var(--s1eibpeh-0) linear infinite;animation:spinVertical-s1eibpeh var(--s1eibpeh-0) linear infinite;}@-webkit-keyframes spinVertical-s1eibpeh{from{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);transform:rotateY(0deg);}to{-webkit-transform:rotateY(360deg);-moz-transform:rotateY(360deg);-ms-transform:rotateY(360deg);transform:rotateY(360deg);}}@keyframes spinVertical-s1eibpeh{from{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);transform:rotateY(0deg);}to{-webkit-transform:rotateY(360deg);-moz-transform:rotateY(360deg);-ms-transform:rotateY(360deg);transform:rotateY(360deg);}}
|
|
10
|
+
.r530s5l{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-transition:rotate var(--r530s5l-0) ease-in-out;transition:rotate var(--r530s5l-0) ease-in-out;rotate:var(--r530s5l-1);}
|
|
13
11
|
.ave5wdp{box-sizing:border-box;position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:var(--ave5wdp-0);height:var(--ave5wdp-0);border-radius:50%;border:0.5px solid var(--ave5wdp-1);background:var(--ave5wdp-2);overflow:hidden;}
|
|
14
12
|
.a3r0r1h{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
|
|
15
13
|
.d1n32hoy{position:absolute;width:var(--d1n32hoy-0);height:var(--d1n32hoy-0);border-radius:50%;background:var(--d1n32hoy-1);left:var(--d1n32hoy-2);top:var(--d1n32hoy-3);}
|
|
@@ -67,9 +65,6 @@
|
|
|
67
65
|
.d1bgy4cf{display:inline-block;position:relative;width:var(--d1bgy4cf-0);min-width:var(--d1bgy4cf-1);max-width:var(--d1bgy4cf-2);overflow:var(--d1bgy4cf-3);padding:var(--d1bgy4cf-4);background-color:var(--d1bgy4cf-5);border:var(--d1bgy4cf-6);border-radius:5px;}
|
|
68
66
|
.dfdzgmt{position:relative;z-index:var(--dfdzgmt-0);display:var(--dfdzgmt-1);width:var(--dfdzgmt-2);}
|
|
69
67
|
.cwfaerb{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;min-width:0;width:100%;max-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:var(--cwfaerb-0);border-radius:var(--cwfaerb-1);}.cwfaerb>div{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.cwfaerb .cm-editor{width:100%!important;max-width:100%!important;height:100%!important;}.cwfaerb .cm-scroller{overflow:auto!important;width:100%!important;max-width:100%!important;}.cwfaerb .cm-content{max-width:100%!important;}.cwfaerb .cm-content,.cwfaerb .cm-gutter{line-height:1.8;}
|
|
70
|
-
.h179mi29{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:2px;}
|
|
71
|
-
.h1gstj4e{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}
|
|
72
|
-
.s12p8yma{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;padding:0 2px;min-width:16px;height:16px;background-color:var(--s12p8yma-0);border:0.5px solid var(--s12p8yma-1);border-radius:4px;color:var(--s12p8yma-2);font-size:var(--s12p8yma-3);line-height:var(--s12p8yma-4);font-weight:var(--s12p8yma-5);font-family:var(--s12p8yma-6);}
|
|
73
68
|
.c17zkoob{width:var(--c17zkoob-0);height:var(--c17zkoob-0);}
|
|
74
69
|
.gm80o9u{width:var(--gm80o9u-0);height:var(--gm80o9u-0);}.gm80o9u >div{width:100%;height:100%;}.gm80o9u svg{display:block;}.gm80o9u svg>g path{fill:var(--gm80o9u-1);}
|
|
75
70
|
.cythikj{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;cursor:var(--cythikj-0);opacity:var(--cythikj-1);}.cythikj:focus-visible{outline:2px solid var(--cythikj-2);outline-offset:2px;border-radius:4px;}
|
|
@@ -116,6 +111,8 @@
|
|
|
116
111
|
.s1b59sw7{position:absolute;left:0;top:0;height:100%;background:var(--s1b59sw7-0);border-radius:200px;z-index:1;}
|
|
117
112
|
.salrebx{position:absolute;left:var(--salrebx-0);top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:8px;height:8px;background:var(--salrebx-1);border-radius:50%;cursor:var(--salrebx-2);-webkit-transition:var(--salrebx-3);transition:var(--salrebx-3);z-index:3;pointer-events:var(--salrebx-4);}.salrebx:active{cursor:var(--salrebx-5);-webkit-transform:translate(-50%, -50%) scale(1.1);-moz-transform:translate(-50%, -50%) scale(1.1);-ms-transform:translate(-50%, -50%) scale(1.1);transform:translate(-50%, -50%) scale(1.1);}.salrebx:hover{-webkit-transform:var(--salrebx-6);-moz-transform:var(--salrebx-6);-ms-transform:var(--salrebx-6);transform:var(--salrebx-6);}
|
|
118
113
|
.h1trli0w{position:absolute;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer;z-index:2;}
|
|
114
|
+
.sx2momv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--sx2momv-0);border:0.5px solid var(--sx2momv-1);border-radius:5px;padding:0 3px;height:28px;}
|
|
115
|
+
.s1pe4aqp{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding:3px 8px;background:var(--s1pe4aqp-0);cursor:pointer;border:0.5px solid var(--s1pe4aqp-1);border-radius:4px;}
|
|
119
116
|
.s1jhbbpd{outline:none;resize:none;min-height:var(--s1jhbbpd-0);width:var(--s1jhbbpd-1);height:var(--s1jhbbpd-2);-webkit-flex:var(--s1jhbbpd-3);-ms-flex:var(--s1jhbbpd-3);flex:var(--s1jhbbpd-3);background-color:var(--s1jhbbpd-4);border:0.5px solid var(--s1jhbbpd-5);border-radius:4px;color:var(--s1jhbbpd-6);font-size:var(--s1jhbbpd-7);line-height:var(--s1jhbbpd-8);font-weight:var(--s1jhbbpd-9);font-family:var(--s1jhbbpd-10);padding:var(--s1jhbbpd-11);-webkit-transition:border-color 0.075s ease-in-out;transition:border-color 0.075s ease-in-out;}.s1jhbbpd:hover:not(:disabled, :focus){border-color:var(--s1jhbbpd-12);}.s1jhbbpd:focus{border-color:var(--s1jhbbpd-13);}.s1jhbbpd:disabled{cursor:not-allowed;opacity:0.6;}.s1jhbbpd::-webkit-input-placeholder{color:var(--s1jhbbpd-14);}.s1jhbbpd::-moz-placeholder{color:var(--s1jhbbpd-14);}.s1jhbbpd:-ms-input-placeholder{color:var(--s1jhbbpd-14);}.s1jhbbpd::placeholder{color:var(--s1jhbbpd-14);}
|
|
120
117
|
.tu0hnok{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:var(--tu0hnok-0);height:var(--tu0hnok-1);}
|
|
121
118
|
.l48iv0n{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:4px;min-height:var(--l48iv0n-0);width:var(--l48iv0n-1);height:var(--l48iv0n-2);-webkit-flex:var(--l48iv0n-3);-ms-flex:var(--l48iv0n-3);flex:var(--l48iv0n-3);background-color:var(--l48iv0n-4);border:0.5px solid var(--l48iv0n-5);border-radius:4px;padding:var(--l48iv0n-6);}
|
|
@@ -131,8 +128,7 @@
|
|
|
131
128
|
.m1jgo9vf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;pointer-events:auto;}
|
|
132
129
|
.hvnpu6g{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:120px;height:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;cursor:ns-resize;z-index:10;border-radius:4px;background-color:var(--hvnpu6g-0);border:0.5px solid var(--hvnpu6g-1);cursor:ns-resize;}.hvnpu6g:hover{border-color:var(--hvnpu6g-2);background-color:var(--hvnpu6g-3);color:var(--hvnpu6g-4);}
|
|
133
130
|
.v1ha5e5c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:8px;height:100px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;cursor:ew-resize;z-index:30;border-radius:4px;background-color:var(--v1ha5e5c-0);border:0.5px solid var(--v1ha5e5c-1);cursor:ew-resize;}.v1ha5e5c:hover{border-color:var(--v1ha5e5c-2);background-color:var(--v1ha5e5c-3);color:var(--v1ha5e5c-4);}
|
|
134
|
-
.
|
|
135
|
-
.s1law64s{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding:3px 8px;background:var(--s1law64s-0);cursor:pointer;border:0.5px solid var(--s1law64s-1);border-radius:4px;}
|
|
131
|
+
.s1ibzzfh{width:var(--s1ibzzfh-0);height:var(--s1ibzzfh-0);background-color:var(--s1ibzzfh-1);}
|
|
136
132
|
.m16ywplt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding:4px;width:100%;height:100%;border:0.5px solid transparent;border-radius:4px;cursor:pointer;background-color:transparent;}.m16ywplt:hover{background-color:var(--m16ywplt-0);}.m16ywplt:focus-visible{outline:none;border-color:var(--m16ywplt-1);}
|
|
137
133
|
.a1wb3h41{position:-webkit-sticky;position:sticky;right:0;top:0;z-index:25;-webkit-flex:0 0 48px;-ms-flex:0 0 48px;flex:0 0 48px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;background-color:var(--a1wb3h41-0);border-left:0.5px solid var(--a1wb3h41-1);border-bottom:0.5px solid var(--a1wb3h41-1);}
|
|
138
134
|
.an0h7xt{position:-webkit-sticky;position:sticky;right:var(--an0h7xt-0);z-index:5;-webkit-flex:0 0 48px;-ms-flex:0 0 48px;flex:0 0 48px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;background-color:var(--an0h7xt-1);border-left:0.5px solid var(--an0h7xt-2);}
|
|
@@ -169,6 +165,8 @@
|
|
|
169
165
|
.et5f6jm{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}
|
|
170
166
|
.ekaqvqt{width:100%;height:var(--ekaqvqt-0);border:none;outline:none;background:transparent;padding:0;margin:0;color:var(--ekaqvqt-1);font-family:var(--ekaqvqt-2);font-size:var(--ekaqvqt-3);font-weight:var(--ekaqvqt-4);line-height:var(--ekaqvqt-0);letter-spacing:var(--ekaqvqt-5);text-align:var(--ekaqvqt-6);}
|
|
171
167
|
.e1j2x5d3{cursor:text;border-bottom:1px solid transparent;}.e1j2x5d3:hover{border-bottom:1px solid var(--e1j2x5d3-0);}
|
|
168
|
+
.hokyumm{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:2px;}
|
|
169
|
+
.sl247mt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;padding:0 2px;min-width:var(--sl247mt-0);height:var(--sl247mt-0);background-color:var(--sl247mt-1);border:0.5px solid var(--sl247mt-2);border-radius:4px;color:var(--sl247mt-3);font-family:var(--sl247mt-4);font-size:var(--sl247mt-5);line-height:var(--sl247mt-6);font-weight:var(--sl247mt-7);}
|
|
172
170
|
.sgj79p2{margin:0 0 6px 0;font-family:var(--sgj79p2-0);font-size:var(--sgj79p2-1);line-height:var(--sgj79p2-2);color:var(--sgj79p2-3);-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}.sgj79p2:last-child{margin-bottom:0;}
|
|
173
171
|
.s17hp2a6{margin:0 0 12px 0;padding:12px;overflow-x:auto;width:100%;max-width:100%;box-sizing:border-box;background-color:var(--s17hp2a6-0);border-radius:4px;border:0.5px solid var(--s17hp2a6-1);font-family:var(--s17hp2a6-2);font-size:var(--s17hp2a6-3);line-height:var(--s17hp2a6-4);color:var(--s17hp2a6-5);white-space:pre;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}.s17hp2a6:last-child{margin-bottom:0;}.s17hp2a6 code{padding:0;margin:0;background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;}
|
|
174
172
|
.s1l8k0vu{padding:0.2em 0.3em;margin:0 0.1em;background-color:var(--s1l8k0vu-0);border-radius:3px;border:0.5px solid var(--s1l8k0vu-1);font-family:var(--s1l8k0vu-2);font-size:var(--s1l8k0vu-3);line-height:var(--s1l8k0vu-4);color:var(--s1l8k0vu-5);-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}
|
|
@@ -188,5 +186,7 @@
|
|
|
188
186
|
.sfziwh{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;}
|
|
189
187
|
.sgmrm4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:var(--sgmrm4-0);min-width:360px;max-width:420px;background-color:var(--sgmrm4-1);border:0.5px solid var(--sgmrm4-2);border-radius:5px;}
|
|
190
188
|
.stlie57{position:fixed;z-index:11000;top:var(--stlie57-0);right:var(--stlie57-1);bottom:var(--stlie57-2);left:var(--stlie57-3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;gap:8px;pointer-events:none;}.stlie57 >*{pointer-events:auto;}
|
|
189
|
+
.s18o9ih0{-webkit-animation:flash-s18o9ih0 1s ease-in-out infinite;animation:flash-s18o9ih0 1s ease-in-out infinite;}@-webkit-keyframes flash-s18o9ih0{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes flash-s18o9ih0{0%,100%{opacity:1;}50%{opacity:0.4;}}
|
|
190
|
+
.sonzivr{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-animation:spin-sonzivr var(--sonzivr-0) linear infinite;animation:spin-sonzivr var(--sonzivr-0) linear infinite;transform-origin:50% 50%;}@-webkit-keyframes spin-sonzivr{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes spin-sonzivr{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
|
|
191
191
|
.sx1o0cd{background:var(--sx1o0cd-0);border:0.5px solid var(--sx1o0cd-1);border-radius:5px;padding:var(--sx1o0cd-2);width:var(--sx1o0cd-3);height:var(--sx1o0cd-4);min-width:var(--sx1o0cd-5);max-width:var(--sx1o0cd-6);min-height:var(--sx1o0cd-7);max-height:var(--sx1o0cd-8);opacity:var(--sx1o0cd-9);cursor:var(--sx1o0cd-10);}.sx1o0cd:hover{border-color:var(--sx1o0cd-11);}
|
|
192
192
|
/*$vite$:1*/
|
|
@@ -13,7 +13,7 @@ export declare const ActionColumnHeaderCell: import("react").ComponentType<Pick<
|
|
|
13
13
|
theme: import("../theme").Theme;
|
|
14
14
|
} & {
|
|
15
15
|
as?: React.ElementType;
|
|
16
|
-
}, "
|
|
16
|
+
}, "$variant" | "as" | keyof import("react").ClassAttributes<HTMLTableHeaderCellElement> | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
|
|
17
17
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
18
18
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
|
|
19
19
|
$variant?: TableVariant;
|
|
@@ -38,7 +38,7 @@ export declare const ActionColumnCell: import("react").ComponentType<Pick<import
|
|
|
38
38
|
theme: import("../theme").Theme;
|
|
39
39
|
} & {
|
|
40
40
|
as?: React.ElementType;
|
|
41
|
-
}, "
|
|
41
|
+
}, "$variant" | "as" | "$pinnedOffset" | keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>> & {
|
|
42
42
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
43
43
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & {
|
|
44
44
|
$variant?: TableVariant;
|
|
@@ -64,7 +64,7 @@ export declare const ActionColumnSpacerCell: import("react").ComponentType<Pick<
|
|
|
64
64
|
theme: import("../theme").Theme;
|
|
65
65
|
} & {
|
|
66
66
|
as?: React.ElementType;
|
|
67
|
-
}, "
|
|
67
|
+
}, "$variant" | "as" | keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>> & {
|
|
68
68
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
69
69
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & {
|
|
70
70
|
$variant?: TableVariant;
|
|
@@ -111,7 +111,7 @@ export declare const CellStatusDot: import("react").ComponentType<Pick<import("r
|
|
|
111
111
|
theme: import("../theme").Theme;
|
|
112
112
|
} & {
|
|
113
113
|
as?: React.ElementType;
|
|
114
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "
|
|
114
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "$status"> & {
|
|
115
115
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
116
116
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
117
117
|
$status: CellEnrichmentStatus;
|
|
@@ -139,7 +139,7 @@ export declare const CellEditorWrapper: import("react").ComponentType<Pick<impor
|
|
|
139
139
|
theme: import("../theme").Theme;
|
|
140
140
|
} & {
|
|
141
141
|
as?: React.ElementType;
|
|
142
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
142
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
143
143
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
144
144
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
145
145
|
theme: import("../theme").Theme;
|
|
@@ -157,7 +157,7 @@ export declare const CellLoadingSkeleton: import("react").ComponentType<Pick<imp
|
|
|
157
157
|
theme: import("../theme").Theme;
|
|
158
158
|
} & {
|
|
159
159
|
as?: React.ElementType;
|
|
160
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
160
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
161
161
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
162
162
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
163
163
|
theme: import("../theme").Theme;
|
|
@@ -18,7 +18,7 @@ export declare const TableOuterContainer: import("react").ComponentType<Pick<imp
|
|
|
18
18
|
theme: import("../theme").Theme;
|
|
19
19
|
} & {
|
|
20
20
|
as?: React.ElementType;
|
|
21
|
-
}, "$width" | "$height" | "$fillWidth" | "$fillHeight" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
21
|
+
}, "$width" | "$height" | "$fillWidth" | "$fillHeight" | "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
22
22
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
23
23
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
24
24
|
$width?: number | string;
|
|
@@ -74,7 +74,7 @@ export declare const TableRow: import("react").ComponentType<Pick<import("react"
|
|
|
74
74
|
theme: import("../theme").Theme;
|
|
75
75
|
} & {
|
|
76
76
|
as?: React.ElementType;
|
|
77
|
-
}, "
|
|
77
|
+
}, "$variant" | "as" | "$isSelected" | "$isClickable" | "$density" | "$isLastRow" | "$isExpanded" | "$translateY" | "$rowHeight" | keyof import("react").ClassAttributes<HTMLTableRowElement> | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
|
|
78
78
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
79
79
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & {
|
|
80
80
|
$isClickable?: boolean;
|
|
@@ -112,7 +112,7 @@ export declare const TableLoadingRow: import("react").ComponentType<Pick<import(
|
|
|
112
112
|
theme: import("../theme").Theme;
|
|
113
113
|
} & {
|
|
114
114
|
as?: React.ElementType;
|
|
115
|
-
}, "
|
|
115
|
+
}, "$variant" | "as" | "$density" | keyof import("react").ClassAttributes<HTMLTableRowElement> | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
|
|
116
116
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
117
117
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & {
|
|
118
118
|
$density?: TableDensity;
|
|
@@ -146,7 +146,7 @@ export declare const TableHeaderCell: import("react").ComponentType<Pick<import(
|
|
|
146
146
|
theme: import("../theme").Theme;
|
|
147
147
|
} & {
|
|
148
148
|
as?: React.ElementType;
|
|
149
|
-
}, "$width" | "$minWidth" | "$maxWidth" | "
|
|
149
|
+
}, "$width" | "$minWidth" | "$maxWidth" | "$variant" | "$align" | "as" | keyof import("react").ClassAttributes<HTMLTableHeaderCellElement> | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> | "$pinnedOffset" | "$density" | "$pin" | "$isSortable" | "$isCompact"> & {
|
|
150
150
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
151
151
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & {
|
|
152
152
|
$width?: number;
|
|
@@ -208,7 +208,7 @@ export declare const TableDataCell: import("react").ComponentType<Pick<import("r
|
|
|
208
208
|
theme: import("../theme").Theme;
|
|
209
209
|
} & {
|
|
210
210
|
as?: React.ElementType;
|
|
211
|
-
}, "$width" | "$minWidth" | "$maxWidth" | "
|
|
211
|
+
}, "$width" | "$minWidth" | "$maxWidth" | "$variant" | "$align" | "as" | "$pinnedOffset" | keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement> | "$density" | "$pin" | "$isCompact" | "$isPositioned" | "$isEditable"> & {
|
|
212
212
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
213
213
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & {
|
|
214
214
|
$width?: number;
|
|
@@ -286,7 +286,7 @@ export declare const ColumnResizeHandle: import("react").ComponentType<Pick<impo
|
|
|
286
286
|
theme: import("../theme").Theme;
|
|
287
287
|
} & {
|
|
288
288
|
as?: React.ElementType;
|
|
289
|
-
}, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "
|
|
289
|
+
}, "as" | keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement> | "$isResizing"> & {
|
|
290
290
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<import("../theme").Theme> | undefined;
|
|
291
291
|
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
292
292
|
$isResizing?: boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum HotKeysVariant {
|
|
2
|
+
BASE = "BASE",
|
|
3
|
+
PRIMARY = "PRIMARY",
|
|
4
|
+
SECONDARY = "SECONDARY",
|
|
5
|
+
TERTIARY = "TERTIARY",
|
|
6
|
+
DISABLED = "DISABLED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum HotKeysSize {
|
|
9
|
+
SMALL = "SMALL",
|
|
10
|
+
MEDIUM = "MEDIUM",
|
|
11
|
+
LARGE = "LARGE"
|
|
12
|
+
}
|
|
13
|
+
export interface HotKeysProps {
|
|
14
|
+
hotKeys: string[];
|
|
15
|
+
variant?: HotKeysVariant;
|
|
16
|
+
size?: HotKeysSize;
|
|
17
|
+
isMonospace?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const HotKeys: ({ hotKeys, variant, size, isMonospace, }: HotKeysProps) => import("react").JSX.Element;
|
|
20
|
+
export default HotKeys;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { styled } from "@linaria/react";
|
|
4
|
+
import { match } from "ts-pattern";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/text/HotKeys.tsx
|
|
7
|
+
var HotKeysVariant = /* @__PURE__ */ function(HotKeysVariant) {
|
|
8
|
+
HotKeysVariant["BASE"] = "BASE";
|
|
9
|
+
HotKeysVariant["PRIMARY"] = "PRIMARY";
|
|
10
|
+
HotKeysVariant["SECONDARY"] = "SECONDARY";
|
|
11
|
+
HotKeysVariant["TERTIARY"] = "TERTIARY";
|
|
12
|
+
HotKeysVariant["DISABLED"] = "DISABLED";
|
|
13
|
+
return HotKeysVariant;
|
|
14
|
+
}({});
|
|
15
|
+
var HotKeysSize = /* @__PURE__ */ function(HotKeysSize) {
|
|
16
|
+
HotKeysSize["SMALL"] = "SMALL";
|
|
17
|
+
HotKeysSize["MEDIUM"] = "MEDIUM";
|
|
18
|
+
HotKeysSize["LARGE"] = "LARGE";
|
|
19
|
+
return HotKeysSize;
|
|
20
|
+
}({});
|
|
21
|
+
var HotKeysWrapper = /*#__PURE__*/ styled("div")({
|
|
22
|
+
name: "HotKeysWrapper",
|
|
23
|
+
class: "hokyumm",
|
|
24
|
+
propsAsIs: false
|
|
25
|
+
});
|
|
26
|
+
var _exp2 = () => ({ $size }) => {
|
|
27
|
+
return match($size).with("SMALL", () => "14px").with("MEDIUM", () => "16px").with("LARGE", () => "20px").exhaustive();
|
|
28
|
+
};
|
|
29
|
+
var _exp3 = () => ({ $variant, theme }) => {
|
|
30
|
+
return match($variant).with("BASE", () => theme.color.background.base).with("PRIMARY", () => theme.color.background.primary).with("SECONDARY", () => theme.color.background.secondary).with("TERTIARY", () => theme.color.background.tertiary).with("DISABLED", () => theme.color.background.secondary).with(void 0, () => theme.color.background.tertiary).exhaustive();
|
|
31
|
+
};
|
|
32
|
+
var _exp4 = () => ({ theme }) => theme.color.border.primary;
|
|
33
|
+
var _exp5 = () => ({ $variant, theme }) => {
|
|
34
|
+
return match($variant).with("DISABLED", () => theme.color.text.disabled).otherwise(() => theme.color.text.secondary);
|
|
35
|
+
};
|
|
36
|
+
var _exp6 = () => ({ theme, $isMonospace }) => $isMonospace ? theme.font.mono.family : theme.font.sans.family;
|
|
37
|
+
var _exp7 = () => ({ theme, $size }) => {
|
|
38
|
+
return match($size).with("SMALL", () => theme.font.sans.size.caption).with("MEDIUM", () => theme.font.sans.size.body_sm).with("LARGE", () => theme.font.sans.size.body_md).exhaustive();
|
|
39
|
+
};
|
|
40
|
+
var _exp8 = () => ({ theme, $size }) => {
|
|
41
|
+
return match($size).with("SMALL", () => theme.font.sans.height.caption).with("MEDIUM", () => theme.font.sans.height.body_sm).with("LARGE", () => theme.font.sans.height.body_md).exhaustive();
|
|
42
|
+
};
|
|
43
|
+
var _exp9 = () => ({ theme }) => theme.font.sans.weight.regular;
|
|
44
|
+
var StyledHotKey = withTheme(/*#__PURE__*/ styled("div")({
|
|
45
|
+
name: "StyledHotKey",
|
|
46
|
+
class: "sl247mt",
|
|
47
|
+
propsAsIs: false,
|
|
48
|
+
vars: {
|
|
49
|
+
"sl247mt-0": [_exp2()],
|
|
50
|
+
"sl247mt-1": [_exp3()],
|
|
51
|
+
"sl247mt-2": [_exp4()],
|
|
52
|
+
"sl247mt-3": [_exp5()],
|
|
53
|
+
"sl247mt-4": [_exp6()],
|
|
54
|
+
"sl247mt-5": [_exp7()],
|
|
55
|
+
"sl247mt-6": [_exp8()],
|
|
56
|
+
"sl247mt-7": [_exp9()]
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
var HotKeys = ({ hotKeys, variant, size = "MEDIUM", isMonospace = false }) => {
|
|
60
|
+
return /* @__PURE__ */ jsx(HotKeysWrapper, { children: hotKeys.map((hotKey) => /* @__PURE__ */ jsx(StyledHotKey, {
|
|
61
|
+
$variant: variant,
|
|
62
|
+
$size: size,
|
|
63
|
+
$isMonospace: isMonospace,
|
|
64
|
+
children: hotKey
|
|
65
|
+
}, hotKey)) });
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { HotKeysSize, HotKeysVariant, HotKeys as default };
|
|
@@ -3,8 +3,8 @@ import ToastContainer from "./ToastContainer.js";
|
|
|
3
3
|
import ToastWrapper from "./ToastWrapper.js";
|
|
4
4
|
import { createContext, useCallback, useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { createPortal } from "react-dom";
|
|
7
6
|
import { AnimatePresence } from "framer-motion";
|
|
7
|
+
import { createPortal } from "react-dom";
|
|
8
8
|
//#region src/toast/ToastProvider.tsx
|
|
9
9
|
var ToastContext = createContext(void 0);
|
|
10
10
|
var DEFAULT_TIMEOUT = 3e3;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { styled } from "@linaria/react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/transform/Flash.tsx
|
|
5
|
+
var StyledFlash = /*#__PURE__*/ styled("span")({
|
|
6
|
+
name: "StyledFlash",
|
|
7
|
+
class: "s18o9ih0",
|
|
8
|
+
propsAsIs: false
|
|
9
|
+
});
|
|
10
|
+
var Flash = ({ children }) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(StyledFlash, { children });
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Flash as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
export interface RotateProps {
|
|
3
|
+
isRotated: boolean;
|
|
4
|
+
deg?: number;
|
|
5
|
+
speed?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Rotate: ({ children, isRotated, deg, speed }: PropsWithChildren<RotateProps>) => import("react").JSX.Element;
|
|
8
|
+
export default Rotate;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { styled } from "@linaria/react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/transform/Rotate.tsx
|
|
5
|
+
var _exp = () => ({ $speed }) => $speed ?? .075;
|
|
6
|
+
var _exp2 = () => ({ $isRotated, $deg }) => {
|
|
7
|
+
if ($isRotated) return `${$deg}deg`;
|
|
8
|
+
return "0deg";
|
|
9
|
+
};
|
|
10
|
+
var RotateWrapper = /*#__PURE__*/ styled("div")({
|
|
11
|
+
name: "RotateWrapper",
|
|
12
|
+
class: "r530s5l",
|
|
13
|
+
propsAsIs: false,
|
|
14
|
+
vars: {
|
|
15
|
+
"r530s5l-0": [_exp(), "s"],
|
|
16
|
+
"r530s5l-1": [_exp2()]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var Rotate = ({ children, isRotated, deg = 180, speed }) => {
|
|
20
|
+
return /* @__PURE__ */ jsx(RotateWrapper, {
|
|
21
|
+
$isRotated: isRotated,
|
|
22
|
+
$deg: deg,
|
|
23
|
+
$speed: speed,
|
|
24
|
+
children
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Rotate as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { motion } from "framer-motion";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/transform/ScaleFade.tsx
|
|
4
4
|
var ScaleFade = ({ children, delay = 0 }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(motion.div, {
|
|
6
6
|
initial: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { styled } from "@linaria/react";
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/transform/Spin.tsx
|
|
5
|
+
var _exp = () => ({ $speed }) => 1 / $speed;
|
|
6
|
+
var StyledSpin = /*#__PURE__*/ styled("div")({
|
|
7
|
+
name: "StyledSpin",
|
|
8
|
+
class: "sonzivr",
|
|
9
|
+
propsAsIs: false,
|
|
10
|
+
vars: { "sonzivr-0": [_exp(), "s"] }
|
|
11
|
+
});
|
|
12
|
+
var Spin = ({ children, speed = 1, isSpinning = true }) => {
|
|
13
|
+
if (isSpinning) return /* @__PURE__ */ jsx(StyledSpin, {
|
|
14
|
+
$speed: speed,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Spin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galaxy-io/dls",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Galaxy Design Language System",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
"./styles.css": "./dist/styles.css",
|
|
18
|
-
"./
|
|
19
|
-
"types": "./dist/
|
|
20
|
-
"import": "./dist/
|
|
18
|
+
"./transform/*": {
|
|
19
|
+
"types": "./dist/transform/*.d.ts",
|
|
20
|
+
"import": "./dist/transform/*.js"
|
|
21
21
|
},
|
|
22
22
|
"./assets/*": {
|
|
23
23
|
"types": "./dist/assets/*.d.ts",
|
|
@@ -79,10 +79,6 @@
|
|
|
79
79
|
"types": "./dist/hooks/*.d.ts",
|
|
80
80
|
"import": "./dist/hooks/*.js"
|
|
81
81
|
},
|
|
82
|
-
"./hotkeys/*": {
|
|
83
|
-
"types": "./dist/hotkeys/*.d.ts",
|
|
84
|
-
"import": "./dist/hotkeys/*.js"
|
|
85
|
-
},
|
|
86
82
|
"./icons/*": {
|
|
87
83
|
"types": "./dist/icons/*.d.ts",
|
|
88
84
|
"import": "./dist/icons/*.js"
|
|
@@ -115,10 +111,6 @@
|
|
|
115
111
|
"types": "./dist/shapes/*.d.ts",
|
|
116
112
|
"import": "./dist/shapes/*.js"
|
|
117
113
|
},
|
|
118
|
-
"./switcher/*": {
|
|
119
|
-
"types": "./dist/switcher/*.d.ts",
|
|
120
|
-
"import": "./dist/switcher/*.js"
|
|
121
|
-
},
|
|
122
114
|
"./table/*": {
|
|
123
115
|
"types": "./dist/table/*.d.ts",
|
|
124
116
|
"import": "./dist/table/*.js"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { styled } from "@linaria/react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/animations/Flashing.tsx
|
|
5
|
-
var StyledFlashing = /*#__PURE__*/ styled("span")({
|
|
6
|
-
name: "StyledFlashing",
|
|
7
|
-
class: "s1v6noph",
|
|
8
|
-
propsAsIs: false
|
|
9
|
-
});
|
|
10
|
-
var Flashing = ({ children }) => {
|
|
11
|
-
return /* @__PURE__ */ jsx(StyledFlashing, { children });
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Flashing as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from "react";
|
|
2
|
-
export interface RotateWithTransitionProps {
|
|
3
|
-
isRotated: boolean;
|
|
4
|
-
deg?: number;
|
|
5
|
-
speed?: number;
|
|
6
|
-
}
|
|
7
|
-
declare const RotateWithTransition: ({ children, isRotated, deg, speed, }: PropsWithChildren<RotateWithTransitionProps>) => import("react").JSX.Element;
|
|
8
|
-
export default RotateWithTransition;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { styled } from "@linaria/react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/animations/RotateWithTransition.tsx
|
|
5
|
-
var _exp = () => ({ $speed }) => $speed ?? .075;
|
|
6
|
-
var _exp2 = () => ({ $isRotated, $deg }) => {
|
|
7
|
-
if ($isRotated) return `${$deg}deg`;
|
|
8
|
-
return "0deg";
|
|
9
|
-
};
|
|
10
|
-
var RotateWithTransitionWrapper = /*#__PURE__*/ styled("div")({
|
|
11
|
-
name: "RotateWithTransitionWrapper",
|
|
12
|
-
class: "r94gjni",
|
|
13
|
-
propsAsIs: false,
|
|
14
|
-
vars: {
|
|
15
|
-
"r94gjni-0": [_exp(), "s"],
|
|
16
|
-
"r94gjni-1": [_exp2()]
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var RotateWithTransition = ({ children, isRotated, deg = 180, speed }) => {
|
|
20
|
-
return /* @__PURE__ */ jsx(RotateWithTransitionWrapper, {
|
|
21
|
-
$isRotated: isRotated,
|
|
22
|
-
$deg: deg,
|
|
23
|
-
$speed: speed,
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { RotateWithTransition as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from "react";
|
|
2
|
-
export interface SpinAnimationProps {
|
|
3
|
-
speed?: number;
|
|
4
|
-
isEnabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare const SpinAnimation: ({ children, speed, isEnabled, }: PropsWithChildren<SpinAnimationProps>) => import("react").JSX.Element;
|
|
7
|
-
export default SpinAnimation;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { styled } from "@linaria/react";
|
|
3
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/animations/SpinAnimation.tsx
|
|
5
|
-
var _exp = () => ({ $speed }) => 1 / $speed;
|
|
6
|
-
var StyledSpinAnimation = /*#__PURE__*/ styled("div")({
|
|
7
|
-
name: "StyledSpinAnimation",
|
|
8
|
-
class: "s1eqyn2i",
|
|
9
|
-
propsAsIs: false,
|
|
10
|
-
vars: { "s1eqyn2i-0": [_exp(), "s"] }
|
|
11
|
-
});
|
|
12
|
-
var SpinAnimation = ({ children, speed = 1, isEnabled = true }) => {
|
|
13
|
-
if (isEnabled) return /* @__PURE__ */ jsx(StyledSpinAnimation, {
|
|
14
|
-
$speed: speed,
|
|
15
|
-
children
|
|
16
|
-
});
|
|
17
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SpinAnimation as default };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from "react";
|
|
2
|
-
export interface SpinVerticalAnimationProps {
|
|
3
|
-
speed?: number;
|
|
4
|
-
}
|
|
5
|
-
declare const SpinVerticalAnimation: ({ children, speed, }: PropsWithChildren<SpinVerticalAnimationProps>) => import("react").JSX.Element;
|
|
6
|
-
export default SpinVerticalAnimation;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { styled } from "@linaria/react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/animations/SpinVerticalAnimation.tsx
|
|
5
|
-
var _exp = () => ({ $speed }) => 1 / $speed;
|
|
6
|
-
var StyledSpinVerticalAnimation = /*#__PURE__*/ styled("div")({
|
|
7
|
-
name: "StyledSpinVerticalAnimation",
|
|
8
|
-
class: "s1eibpeh",
|
|
9
|
-
propsAsIs: false,
|
|
10
|
-
vars: { "s1eibpeh-0": [_exp(), "s"] }
|
|
11
|
-
});
|
|
12
|
-
var SpinVerticalAnimation = ({ children, speed = 1 }) => {
|
|
13
|
-
return /* @__PURE__ */ jsx(StyledSpinVerticalAnimation, {
|
|
14
|
-
$speed: speed,
|
|
15
|
-
children
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { SpinVerticalAnimation as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type HotKeyVariant } from "./HotKeySymbol";
|
|
2
|
-
interface HotKeyBindingsProps {
|
|
3
|
-
variant?: HotKeyVariant;
|
|
4
|
-
hotKeys: string[];
|
|
5
|
-
}
|
|
6
|
-
declare const HotKeyBindings: ({ variant, hotKeys }: HotKeyBindingsProps) => import("react").JSX.Element;
|
|
7
|
-
export default HotKeyBindings;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import HotKeySymbol from "./HotKeySymbol.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { styled } from "@linaria/react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region src/hotkeys/HotKeyBindings.tsx
|
|
6
|
-
var HotKeyBindingWrapper = /*#__PURE__*/ styled("div")({
|
|
7
|
-
name: "HotKeyBindingWrapper",
|
|
8
|
-
class: "h179mi29",
|
|
9
|
-
propsAsIs: false
|
|
10
|
-
});
|
|
11
|
-
var HotKeyBindingSymbolWrapper = /*#__PURE__*/ styled("div")({
|
|
12
|
-
name: "HotKeyBindingSymbolWrapper",
|
|
13
|
-
class: "h1gstj4e",
|
|
14
|
-
propsAsIs: false
|
|
15
|
-
});
|
|
16
|
-
var HotKeyBindings = ({ variant, hotKeys }) => {
|
|
17
|
-
return /* @__PURE__ */ jsx(HotKeyBindingWrapper, { children: hotKeys.map((hotKey) => /* @__PURE__ */ jsx(HotKeyBindingSymbolWrapper, { children: /* @__PURE__ */ jsx(HotKeySymbol, {
|
|
18
|
-
variant,
|
|
19
|
-
hotKey
|
|
20
|
-
}) }, hotKey)) });
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { HotKeyBindings as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum HotKeyVariant {
|
|
2
|
-
BASE = "BASE",
|
|
3
|
-
PRIMARY = "PRIMARY",
|
|
4
|
-
SECONDARY = "SECONDARY",
|
|
5
|
-
TERTIARY = "TERTIARY",
|
|
6
|
-
DISABLED = "DISABLED"
|
|
7
|
-
}
|
|
8
|
-
export interface HotKeyProps {
|
|
9
|
-
variant?: HotKeyVariant;
|
|
10
|
-
hotKey: string;
|
|
11
|
-
}
|
|
12
|
-
declare const HotKeySymbol: ({ variant, hotKey }: HotKeyProps) => import("react").JSX.Element;
|
|
13
|
-
export default HotKeySymbol;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { styled } from "@linaria/react";
|
|
4
|
-
import { match } from "ts-pattern";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/hotkeys/HotKeySymbol.tsx
|
|
7
|
-
var HotKeyVariant = /* @__PURE__ */ function(HotKeyVariant) {
|
|
8
|
-
HotKeyVariant["BASE"] = "BASE";
|
|
9
|
-
HotKeyVariant["PRIMARY"] = "PRIMARY";
|
|
10
|
-
HotKeyVariant["SECONDARY"] = "SECONDARY";
|
|
11
|
-
HotKeyVariant["TERTIARY"] = "TERTIARY";
|
|
12
|
-
HotKeyVariant["DISABLED"] = "DISABLED";
|
|
13
|
-
return HotKeyVariant;
|
|
14
|
-
}({});
|
|
15
|
-
var _exp = () => ({ $variant, theme }) => {
|
|
16
|
-
return match($variant).with("BASE", () => theme.color.background.base).with("PRIMARY", () => theme.color.background.primary).with("SECONDARY", () => theme.color.background.secondary).with("TERTIARY", () => theme.color.background.tertiary).with("DISABLED", () => theme.color.background.secondary).with(void 0, () => theme.color.background.tertiary).exhaustive();
|
|
17
|
-
};
|
|
18
|
-
var _exp2 = () => ({ $variant, theme }) => {
|
|
19
|
-
return match($variant).with("BASE", () => theme.color.border.primary).with("PRIMARY", () => theme.color.border.primary).with("SECONDARY", () => theme.color.border.primary).with("TERTIARY", () => theme.color.border.primary).with("DISABLED", () => theme.color.border.primary).with(void 0, () => theme.color.border.primary).exhaustive();
|
|
20
|
-
};
|
|
21
|
-
var _exp3 = () => ({ $variant, theme }) => {
|
|
22
|
-
return match($variant).with("DISABLED", () => theme.color.text.disabled).otherwise(() => theme.color.text.secondary);
|
|
23
|
-
};
|
|
24
|
-
var _exp4 = () => ({ theme }) => theme.font.sans.size.body_sm;
|
|
25
|
-
var _exp5 = () => ({ theme }) => theme.font.sans.height.body_sm;
|
|
26
|
-
var _exp6 = () => ({ theme }) => theme.font.sans.weight.regular;
|
|
27
|
-
var _exp7 = () => ({ theme }) => theme.font.sans.family;
|
|
28
|
-
var StyledHotKeySymbol = withTheme(/*#__PURE__*/ styled("div")({
|
|
29
|
-
name: "StyledHotKeySymbol",
|
|
30
|
-
class: "s12p8yma",
|
|
31
|
-
propsAsIs: false,
|
|
32
|
-
vars: {
|
|
33
|
-
"s12p8yma-0": [_exp()],
|
|
34
|
-
"s12p8yma-1": [_exp2()],
|
|
35
|
-
"s12p8yma-2": [_exp3()],
|
|
36
|
-
"s12p8yma-3": [_exp4()],
|
|
37
|
-
"s12p8yma-4": [_exp5()],
|
|
38
|
-
"s12p8yma-5": [_exp6()],
|
|
39
|
-
"s12p8yma-6": [_exp7()]
|
|
40
|
-
}
|
|
41
|
-
}));
|
|
42
|
-
var HotKeySymbol = ({ variant, hotKey }) => {
|
|
43
|
-
return /* @__PURE__ */ jsx(StyledHotKeySymbol, {
|
|
44
|
-
$variant: variant,
|
|
45
|
-
children: hotKey
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { HotKeyVariant, HotKeySymbol as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface SwitcherItem {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
}
|
|
6
|
-
interface SwitcherProps {
|
|
7
|
-
items: SwitcherItem[];
|
|
8
|
-
selectedId: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Switcher: ({ items, selectedId }: SwitcherProps) => import("react").JSX.Element;
|
|
11
|
-
export default Switcher;
|
|
File without changes
|
|
File without changes
|