@mario_hahn/jumpy-ui 0.14.2 → 0.14.3
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/{chunk-2XOYK2JS.js → chunk-73UN7NZJ.js} +4 -0
- package/dist/{chunk-SXBPGNRO.js → chunk-KSMTJ2AH.js} +11 -2
- package/dist/{chunk-NPUCW4NM.js → chunk-YSO235OL.js} +2 -2
- package/dist/components.js +2 -2
- package/dist/editor.js +3 -3
- package/dist/index.js +3 -3
- package/dist/theme.js +1 -1
- package/package.json +1 -1
|
@@ -14496,6 +14496,10 @@ var providerStyles = `
|
|
|
14496
14496
|
color: var(--jumpy-cmp-base-input-value-color);
|
|
14497
14497
|
}
|
|
14498
14498
|
|
|
14499
|
+
[data-jumpy-theme='true'] [data-jumpy-component='input'][type='number']::-webkit-inner-spin-button {
|
|
14500
|
+
transform: translateY(var(--jumpy-input-spin-shift, 0px));
|
|
14501
|
+
}
|
|
14502
|
+
|
|
14499
14503
|
[data-jumpy-theme='true'] [data-jumpy-component='input'][type='search']::-webkit-search-cancel-button {
|
|
14500
14504
|
-webkit-appearance: none;
|
|
14501
14505
|
appearance: none;
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
textStyleValue,
|
|
19
19
|
themeToCSSVariables,
|
|
20
20
|
useJumpyTheme
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-73UN7NZJ.js";
|
|
22
22
|
import {
|
|
23
23
|
cn
|
|
24
24
|
} from "./chunk-3DBKYKP2.js";
|
|
@@ -3803,11 +3803,18 @@ function JumpLinkButton({ href, variant = "borderless", status = "regular", clas
|
|
|
3803
3803
|
}
|
|
3804
3804
|
);
|
|
3805
3805
|
}
|
|
3806
|
+
function nativeColorScheme(theme) {
|
|
3807
|
+
const match = /^#([0-9a-f]{6})/i.exec(String(theme.color?.surfaceField || ""));
|
|
3808
|
+
if (!match) return void 0;
|
|
3809
|
+
const [r, g, b] = [0, 2, 4].map((index) => parseInt(match[1].slice(index, index + 2), 16) / 255);
|
|
3810
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b < 0.4 ? "dark" : "light";
|
|
3811
|
+
}
|
|
3806
3812
|
var JumpInput = forwardRef(function JumpInput2({ className = "", ...props }, ref) {
|
|
3807
3813
|
const theme = useJumpyTheme();
|
|
3808
3814
|
const fieldContext = useContext(JumpyFieldContext);
|
|
3809
3815
|
const inputOffset = fieldContext?.hasLabel ? spacingValue(theme, JumpySpacing.large) : spacingValue(theme, JumpySpacing.zero);
|
|
3810
3816
|
const inputMinHeight = fieldContext ? void 0 : sizeValue(theme, JumpySize.largeXL) - spacingValue(theme, JumpySpacing.small3XS) * 2;
|
|
3817
|
+
const spinShift = props.type === "number" && inputOffset ? Math.max(0, (inputOffset - spacingValue(theme, JumpySpacing.small3XS) / 2) / 2) : 0;
|
|
3811
3818
|
const inputElement = /* @__PURE__ */ jsx(
|
|
3812
3819
|
"input",
|
|
3813
3820
|
{
|
|
@@ -3818,7 +3825,9 @@ var JumpInput = forwardRef(function JumpInput2({ className = "", ...props }, ref
|
|
|
3818
3825
|
style: {
|
|
3819
3826
|
...getFieldInputStyles(theme, props.disabled),
|
|
3820
3827
|
minHeight: inputMinHeight,
|
|
3821
|
-
marginTop: inputOffset,
|
|
3828
|
+
marginTop: inputOffset - spinShift,
|
|
3829
|
+
...spinShift ? { paddingTop: spinShift, "--jumpy-input-spin-shift": `${-spinShift}px` } : {},
|
|
3830
|
+
colorScheme: props.type === "number" ? nativeColorScheme(theme) : void 0,
|
|
3822
3831
|
...props.style || {}
|
|
3823
3832
|
}
|
|
3824
3833
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JumpField,
|
|
3
3
|
JumpyFieldContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KSMTJ2AH.js";
|
|
5
5
|
import {
|
|
6
6
|
JumpySpacing,
|
|
7
7
|
spacingValue,
|
|
8
8
|
useJumpyTheme
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-73UN7NZJ.js";
|
|
10
10
|
|
|
11
11
|
// editor.js
|
|
12
12
|
import { useContext, useRef as useRef2, useState as useState2 } from "react";
|
package/dist/components.js
CHANGED
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
getSortOrder,
|
|
75
75
|
isRowFullySelected,
|
|
76
76
|
useJumpSnackbar
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-KSMTJ2AH.js";
|
|
78
78
|
import {
|
|
79
79
|
JumpyAnimation,
|
|
80
80
|
JumpyAnimationDelay,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
textStyleValue,
|
|
106
106
|
themeToCSSVariables,
|
|
107
107
|
useJumpyTheme
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-73UN7NZJ.js";
|
|
109
109
|
import "./chunk-3DBKYKP2.js";
|
|
110
110
|
import {
|
|
111
111
|
jumpyThemeInventory
|
package/dist/editor.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
JumpTokenInput
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YSO235OL.js";
|
|
5
|
+
import "./chunk-KSMTJ2AH.js";
|
|
6
|
+
import "./chunk-73UN7NZJ.js";
|
|
7
7
|
import "./chunk-3DBKYKP2.js";
|
|
8
8
|
import "./chunk-XDTVYUWG.js";
|
|
9
9
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
JumpTokenInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YSO235OL.js";
|
|
5
5
|
import {
|
|
6
6
|
BrandMark,
|
|
7
7
|
JumpAppShell,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
getSortOrder,
|
|
78
78
|
isRowFullySelected,
|
|
79
79
|
useJumpSnackbar
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-KSMTJ2AH.js";
|
|
81
81
|
import {
|
|
82
82
|
JumpyAnimation,
|
|
83
83
|
JumpyAnimationDelay,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
textStyleValue,
|
|
109
109
|
themeToCSSVariables,
|
|
110
110
|
useJumpyTheme
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-73UN7NZJ.js";
|
|
112
112
|
import "./chunk-3DBKYKP2.js";
|
|
113
113
|
import {
|
|
114
114
|
jumpyThemeInventory
|
package/dist/theme.js
CHANGED