@galaxy-io/dls 1.5.0 → 1.5.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/dist/assets/components/GalaxyFilamentWordmarkDark.d.ts +3 -0
- package/dist/assets/components/GalaxyFilamentWordmarkDark.js +14 -0
- package/dist/assets/components/GalaxyFilamentWordmarkLight.d.ts +3 -0
- package/dist/assets/components/GalaxyFilamentWordmarkLight.js +14 -0
- package/dist/icons/GalaxyFilamentWordmark.d.ts +11 -0
- package/dist/icons/GalaxyFilamentWordmark.js +25 -0
- package/dist/inputs/MultiSelectInput.js +2 -0
- package/dist/inputs/SwitcherInput.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
//#region src/assets/components/GalaxyFilamentWordmarkDark.tsx
|
|
3
|
+
var SvgGalaxyFilamentWordmarkDark = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 4513 1200",
|
|
7
|
+
...props,
|
|
8
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
9
|
+
fill: "#000",
|
|
10
|
+
d: "M181.814 1141.98 159.701 1200 0 985.717l292.377-774.718 70.759-59.34h338.665l-41.276 102.197H517.432l-49.379 131.852h149.481l-37.837 101.538H429.725zm538.618-805.707 46.19-123.955h238.818l-46.498 123.955zM505.694 910.552l196.064-526.148h239.307L745.001 910.552zm320.218 0 283.538-758.893 21.61-58.681 159.71 214.284-225.06 603.29zm626.528-190.548-32.93 88.352h91.4l33.41-88.352zm129.72-102.196 48.65-130.549h-91.4l-29 76.484h-239.3l45.21-120.658 43.24-58.681h505.15l21.62 58.681-174.93 467.467h-525.79l-21.62-58.68 86.97-234.064zm434.51 292.744h-228.62l195.57-525.489h758.71l21.62 58.022L2590 910.552h-228.62l158.23-423.293h-62.17l-158.23 423.293h-216.93l157.73-423.293h-66.1zm981.66-245.931-54.53 143.735h90.9l40.3-104.834h239.3l-56.01 149.009-43.25 58.021H2709.9l-21.63-58.021 152.33-409.446 43.24-58.022h505.15l21.63 58.022-80.59 222.196h-239.8v-.66zm129.74-101.538 27.02-75.824h-91.89l-27.52 75.824zm425.05 347.469h-239.8l195.58-525.489h524.3l21.63 58.022-174.45 467.467h-239.79l158.22-423.293h-88.45zm567.26-429.226 37.84-101.538 85.5-230.107L4265.34 91l159.7 213.625-27.51 75.163H4513l-42.26 101.538h-111.05l-121.86 327.03h105.37l-44.03 102.196h-295.25l-23.1-56.042z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { SvgGalaxyFilamentWordmarkDark as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
//#region src/assets/components/GalaxyFilamentWordmarkLight.tsx
|
|
3
|
+
var SvgGalaxyFilamentWordmarkLight = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 4513 1200",
|
|
7
|
+
...props,
|
|
8
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
9
|
+
fill: "#fff",
|
|
10
|
+
d: "M181.814 1141.98 159.701 1200 0 985.717l292.377-774.718 70.759-59.34h338.665l-41.276 102.197H517.432l-49.379 131.852h149.481l-37.837 101.538H429.725zm538.618-805.707 46.19-123.955h238.818l-46.498 123.955zM505.694 910.552l196.064-526.148h239.307L745.001 910.552zm320.218 0 283.538-758.893 21.61-58.681 159.71 214.284-225.06 603.29zm626.528-190.548-32.93 88.352h91.4l33.41-88.352zm129.72-102.196 48.65-130.549h-91.4l-29 76.484h-239.3l45.21-120.658 43.24-58.681h505.15l21.62 58.681-174.93 467.467h-525.79l-21.62-58.68 86.97-234.064zm434.51 292.744h-228.62l195.57-525.489h758.71l21.62 58.022L2590 910.552h-228.62l158.23-423.293h-62.17l-158.23 423.293h-216.93l157.73-423.293h-66.1zm981.66-245.931-54.53 143.735h90.9l40.3-104.834h239.3l-56.01 149.009-43.25 58.021H2709.9l-21.63-58.021 152.33-409.446 43.24-58.022h505.15l21.63 58.022-80.59 222.196h-239.8v-.66zm129.74-101.538 27.02-75.824h-91.89l-27.52 75.824zm425.05 347.469h-239.8l195.58-525.489h524.3l21.63 58.022-174.45 467.467h-239.79l158.22-423.293h-88.45zm567.26-429.226 37.84-101.538 85.5-230.107L4265.34 91l159.7 213.625-27.51 75.163H4513l-42.26 101.538h-111.05l-121.86 327.03h105.37l-44.03 102.196h-295.25l-23.1-56.042z"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { SvgGalaxyFilamentWordmarkLight as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Galaxy wordmark, in the variant that reads against the active theme.
|
|
3
|
+
* Use `GalaxyLogomark` when you need just the mark without the word.
|
|
4
|
+
*/
|
|
5
|
+
declare const GalaxyFilamentWordmark: ({ height, isDark, }: {
|
|
6
|
+
/** Rendered height in px. Width follows the aspect ratio. */
|
|
7
|
+
height: number;
|
|
8
|
+
/** Force the light artwork instead of following the theme. */
|
|
9
|
+
isDark?: boolean;
|
|
10
|
+
}) => import("react").JSX.Element;
|
|
11
|
+
export default GalaxyFilamentWordmark;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GalaxyTheme } from "../theme/types.js";
|
|
2
|
+
import { useGalaxyTheme } from "../theme/GalaxyTheme.js";
|
|
3
|
+
import SvgGalaxyFilamentWordmarkDark from "../assets/components/GalaxyFilamentWordmarkDark.js";
|
|
4
|
+
import SvgGalaxyFilamentWordmarkLight from "../assets/components/GalaxyFilamentWordmarkLight.js";
|
|
5
|
+
import { match } from "ts-pattern";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region src/icons/GalaxyFilamentWordmark.tsx
|
|
9
|
+
/**
|
|
10
|
+
* The Galaxy wordmark, in the variant that reads against the active theme.
|
|
11
|
+
* Use `GalaxyLogomark` when you need just the mark without the word.
|
|
12
|
+
*/
|
|
13
|
+
var GalaxyFilamentWordmark = ({ height, isDark }) => {
|
|
14
|
+
const { activeTheme } = useGalaxyTheme();
|
|
15
|
+
return useMemo(() => {
|
|
16
|
+
if (isDark) return /* @__PURE__ */ jsx(SvgGalaxyFilamentWordmarkLight, { height });
|
|
17
|
+
return match(activeTheme).with(GalaxyTheme.DARK, () => /* @__PURE__ */ jsx(SvgGalaxyFilamentWordmarkLight, { height })).with(GalaxyTheme.LIGHT, () => /* @__PURE__ */ jsx(SvgGalaxyFilamentWordmarkDark, { height })).exhaustive();
|
|
18
|
+
}, [
|
|
19
|
+
height,
|
|
20
|
+
isDark,
|
|
21
|
+
activeTheme
|
|
22
|
+
]);
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { GalaxyFilamentWordmark as default };
|
|
@@ -325,6 +325,7 @@ var MultiSelectInput = ({ label, icon, variant = InputVariant.PRIMARY, size = In
|
|
|
325
325
|
optionsRefs.current[index] = el;
|
|
326
326
|
},
|
|
327
327
|
$isFocused: isPinnedOptionFocused(index),
|
|
328
|
+
$size: size,
|
|
328
329
|
onClick: (e) => {
|
|
329
330
|
e.preventDefault();
|
|
330
331
|
handlePinnedOptionToggle(pinnedOption);
|
|
@@ -413,6 +414,7 @@ var MultiSelectInput = ({ label, icon, variant = InputVariant.PRIMARY, size = In
|
|
|
413
414
|
}), /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
414
415
|
onClick: handleReset,
|
|
415
416
|
$isFocused: false,
|
|
417
|
+
$size: size,
|
|
416
418
|
children: /* @__PURE__ */ jsxs(FlexWrapper, {
|
|
417
419
|
alignItems: AlignItems.CENTER,
|
|
418
420
|
gap: 8,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withTheme } from "../theme/GalaxyTheme.js";
|
|
2
|
-
import Text, { TextWeight } from "../text/Text.js";
|
|
2
|
+
import Text, { TextVariant, TextWeight } from "../text/Text.js";
|
|
3
3
|
import { InputSize, InputVariant, getInputBorderColor, getInputHeight, getInputSurfaceColor, getInputTextSize } from "./Input.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { styled } from "@linaria/react";
|
|
@@ -26,7 +26,7 @@ var StyledSwitcherInput = withTheme(/*#__PURE__*/ styled("div")({
|
|
|
26
26
|
var _exp5 = () => ({ $size }) => {
|
|
27
27
|
return match($size).with(InputSize.SMALL, () => "2px 8px").with(InputSize.MEDIUM, () => "3px 10px").with(InputSize.LARGE, () => "5px 12px").exhaustive();
|
|
28
28
|
};
|
|
29
|
-
var _exp6 = () => ({ theme, $isSelected }) => $isSelected ? theme.color.background.
|
|
29
|
+
var _exp6 = () => ({ theme, $isSelected }) => $isSelected ? theme.color.background.primaryAlt : "transparent";
|
|
30
30
|
var _exp7 = () => ({ theme, $isSelected }) => $isSelected ? theme.color.border.primary : "transparent";
|
|
31
31
|
var StyledSwitcherInputItem = withTheme(/*#__PURE__*/ styled("div")({
|
|
32
32
|
name: "StyledSwitcherInputItem",
|
|
@@ -52,6 +52,7 @@ var SwitcherInput = ({ variant = InputVariant.PRIMARY, size = InputSize.MEDIUM,
|
|
|
52
52
|
$size: size,
|
|
53
53
|
children: /* @__PURE__ */ jsx(Text, {
|
|
54
54
|
size: getInputTextSize(size),
|
|
55
|
+
variant: item.id === selectedId ? TextVariant.PRIMARY_ALT : TextVariant.SECONDARY,
|
|
55
56
|
weight: item.id === selectedId ? TextWeight.MEDIUM : TextWeight.REGULAR,
|
|
56
57
|
cursor: "pointer",
|
|
57
58
|
children: item.label
|