@vygruppen/spor-react 12.8.5 → 12.8.7
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs +33 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +33 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/datepicker/CalendarTriggerButton.tsx +3 -3
- package/src/datepicker/DateField.tsx +4 -6
- package/src/datepicker/DatePicker.tsx +0 -4
- package/src/datepicker/StyledField.tsx +1 -4
- package/src/datepicker/TimeField.tsx +5 -1
- package/src/link/TextLink.tsx +2 -2
- package/src/theme/recipes/link.ts +14 -23
- package/src/theme/slot-recipes/checkbox.ts +3 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.8.
|
2
|
+
> @vygruppen/spor-react@12.8.7 build /home/runner/work/spor/spor/packages/spor-react
|
3
3
|
> tsup
|
4
4
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
@@ -11,17 +11,17 @@ CLI Cleaning output folder
|
|
11
11
|
ESM Build start
|
12
12
|
CJS Build start
|
13
13
|
DTS Build start
|
14
|
-
|
15
|
-
ESM dist/icons/index.mjs 110.00 B
|
16
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
17
|
-
ESM dist/index.mjs.map 628.34 KB
|
18
|
-
ESM ⚡️ Build success in 3041ms
|
19
|
-
CJS dist/index.cjs 314.21 KB
|
14
|
+
CJS dist/index.cjs 313.77 KB
|
20
15
|
CJS dist/icons/index.cjs 381.00 B
|
16
|
+
CJS dist/index.cjs.map 627.68 KB
|
21
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
22
|
-
CJS
|
23
|
-
|
24
|
-
|
18
|
+
CJS ⚡️ Build success in 2979ms
|
19
|
+
ESM dist/index.mjs 292.93 KB
|
20
|
+
ESM dist/icons/index.mjs 110.00 B
|
21
|
+
ESM dist/index.mjs.map 627.68 KB
|
22
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
23
|
+
ESM ⚡️ Build success in 2979ms
|
24
|
+
DTS ⚡️ Build success in 29664ms
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
26
26
|
DTS dist/index.d.ts 156.34 KB
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.8.7
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- f697959: - Checkbox: Prevent input control box from shrinking.
|
8
|
+
- TextLink: Simplify styling and ensure underline appears correctly on multiline links.
|
9
|
+
|
10
|
+
## 12.8.6
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- fb78407: Fix accessibility issues in DatePicker and TimePicker.
|
15
|
+
|
3
16
|
## 12.8.5
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
@@ -1725,7 +1725,7 @@ var texts8 = createTexts({
|
|
1725
1725
|
en: "Calendar"
|
1726
1726
|
}
|
1727
1727
|
});
|
1728
|
-
var CalendarTriggerButton = React27.forwardRef(({ variant, disabled,
|
1728
|
+
var CalendarTriggerButton = React27.forwardRef(({ variant, disabled, onPress: _, ...buttonProps }, ref) => {
|
1729
1729
|
const { t } = useTranslation();
|
1730
1730
|
const recipe = react.useSlotRecipe({
|
1731
1731
|
key: "datePicker"
|
@@ -1738,8 +1738,7 @@ var CalendarTriggerButton = React27.forwardRef(({ variant, disabled, ariaLabelle
|
|
1738
1738
|
"aria-label": t(texts9.openCalendar),
|
1739
1739
|
css: styles.calendarTriggerButton,
|
1740
1740
|
variant: "ghost",
|
1741
|
-
disabled
|
1742
|
-
"aria-labelledby": ariaLabelledby
|
1741
|
+
disabled
|
1743
1742
|
}
|
1744
1743
|
) });
|
1745
1744
|
});
|
@@ -1802,7 +1801,7 @@ function createCalendar2(identifier) {
|
|
1802
1801
|
}
|
1803
1802
|
}
|
1804
1803
|
var DateField = React27.forwardRef(
|
1805
|
-
(
|
1804
|
+
(props, externalRef) => {
|
1806
1805
|
var _a5;
|
1807
1806
|
const locale = useCurrentLocale();
|
1808
1807
|
const recipe = react.useSlotRecipe({
|
@@ -1826,12 +1825,11 @@ var DateField = React27.forwardRef(
|
|
1826
1825
|
props.label && /* @__PURE__ */ jsxRuntime.jsx(
|
1827
1826
|
react.Box,
|
1828
1827
|
{
|
1829
|
-
|
1828
|
+
asChild: true,
|
1830
1829
|
css: styles.inputLabel,
|
1831
1830
|
position: "absolute",
|
1832
1831
|
paddingTop: "2px",
|
1833
|
-
|
1834
|
-
children: props.label
|
1832
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("label", { ...props.labelProps, children: props.label })
|
1835
1833
|
}
|
1836
1834
|
),
|
1837
1835
|
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -1839,7 +1837,6 @@ var DateField = React27.forwardRef(
|
|
1839
1837
|
{
|
1840
1838
|
segment,
|
1841
1839
|
ariaDescription: t(getAriaLabel(segment.type)),
|
1842
|
-
ariaLabel: labelId,
|
1843
1840
|
state
|
1844
1841
|
},
|
1845
1842
|
i
|
@@ -1849,7 +1846,8 @@ var DateField = React27.forwardRef(
|
|
1849
1846
|
{
|
1850
1847
|
type: "hidden",
|
1851
1848
|
value: ((_a5 = state.value) == null ? void 0 : _a5.toString()) ?? "",
|
1852
|
-
name: props.name
|
1849
|
+
name: props.name,
|
1850
|
+
id: props.id
|
1853
1851
|
}
|
1854
1852
|
)
|
1855
1853
|
] });
|
@@ -1894,7 +1892,7 @@ var getAriaLabel = (segmentType) => {
|
|
1894
1892
|
};
|
1895
1893
|
var StyledField = React27.forwardRef(
|
1896
1894
|
function StyledField2(props, ref) {
|
1897
|
-
const { children, variant, isDisabled,
|
1895
|
+
const { children, variant, isDisabled, ...otherProps } = props;
|
1898
1896
|
const { invalid } = react.useFieldContext() ?? {
|
1899
1897
|
};
|
1900
1898
|
const recipe = react.useSlotRecipe({
|
@@ -1909,7 +1907,6 @@ var StyledField = React27.forwardRef(
|
|
1909
1907
|
ref,
|
1910
1908
|
"aria-invalid": invalid,
|
1911
1909
|
"aria-disabled": isDisabled,
|
1912
|
-
"aria-labelledby": ariaLabelledby,
|
1913
1910
|
children
|
1914
1911
|
}
|
1915
1912
|
);
|
@@ -1943,7 +1940,6 @@ var DatePicker = React27.forwardRef(
|
|
1943
1940
|
state,
|
1944
1941
|
ref
|
1945
1942
|
);
|
1946
|
-
const labelId = `label-${React27.useId()}`;
|
1947
1943
|
const inputGroupId = `input-group-${React27.useId()}`;
|
1948
1944
|
const recipe = react.useSlotRecipe({
|
1949
1945
|
key: "datePicker"
|
@@ -1974,7 +1970,6 @@ var DatePicker = React27.forwardRef(
|
|
1974
1970
|
{
|
1975
1971
|
display: "inline-flex",
|
1976
1972
|
id: inputGroupId,
|
1977
|
-
"aria-labelledby": labelId,
|
1978
1973
|
errorText,
|
1979
1974
|
invalid,
|
1980
1975
|
helperText,
|
@@ -1986,7 +1981,6 @@ var DatePicker = React27.forwardRef(
|
|
1986
1981
|
paddingX: 3,
|
1987
1982
|
minHeight,
|
1988
1983
|
isDisabled: props.isDisabled,
|
1989
|
-
ariaLabelledby: labelId,
|
1990
1984
|
children: [
|
1991
1985
|
/* @__PURE__ */ jsxRuntime.jsx(react.Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
1992
1986
|
CalendarTriggerButton,
|
@@ -2003,7 +1997,6 @@ var DatePicker = React27.forwardRef(
|
|
2003
1997
|
{
|
2004
1998
|
label: props.label,
|
2005
1999
|
labelProps,
|
2006
|
-
labelId,
|
2007
2000
|
name: props.name,
|
2008
2001
|
...fieldProps
|
2009
2002
|
}
|
@@ -2177,7 +2170,14 @@ var TimeField = ({ state, ...props }) => {
|
|
2177
2170
|
children: props.label
|
2178
2171
|
}
|
2179
2172
|
),
|
2180
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
|
2173
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
|
2174
|
+
DateTimeSegment,
|
2175
|
+
{
|
2176
|
+
segment,
|
2177
|
+
state
|
2178
|
+
},
|
2179
|
+
JSON.stringify(segment)
|
2180
|
+
)) }),
|
2181
2181
|
/* @__PURE__ */ jsxRuntime.jsx(
|
2182
2182
|
"input",
|
2183
2183
|
{
|
@@ -3949,7 +3949,7 @@ var ExternalIcon = ({
|
|
3949
3949
|
label,
|
3950
3950
|
size
|
3951
3951
|
}) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
3952
|
-
size === "lg" || size === "md" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline24Icon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline18Icon, { "aria-hidden": true }),
|
3952
|
+
size === "lg" || size === "md" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline18Icon, { "aria-hidden": true, display: "inline" }),
|
3953
3953
|
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: label })
|
3954
3954
|
] });
|
3955
3955
|
var TextLink = React27.forwardRef(
|
@@ -5614,32 +5614,22 @@ var inputRecipe = react.defineRecipe({
|
|
5614
5614
|
});
|
5615
5615
|
var linkRecipe = react.defineRecipe({
|
5616
5616
|
base: {
|
5617
|
-
|
5618
|
-
transitionDuration: "fast",
|
5619
|
-
transitionTimingFunction: "ease-out",
|
5620
|
-
cursor: "pointer",
|
5621
|
-
backgroundImage: "linear-gradient(currentColor, currentColor)",
|
5622
|
-
backgroundSize: "100% 1px",
|
5623
|
-
backgroundPosition: "0 100%",
|
5624
|
-
backgroundRepeat: "no-repeat",
|
5625
|
-
borderRadius: "none",
|
5626
|
-
paddingX: "2px",
|
5627
|
-
paddingY: "0",
|
5617
|
+
display: "inline",
|
5628
5618
|
color: "inherit",
|
5629
|
-
|
5630
|
-
|
5631
|
-
|
5632
|
-
|
5633
|
-
|
5634
|
-
|
5635
|
-
"
|
5636
|
-
|
5637
|
-
|
5638
|
-
|
5639
|
-
|
5619
|
+
cursor: "pointer",
|
5620
|
+
textDecorationLine: "underline",
|
5621
|
+
textDecorationSkipInk: "none",
|
5622
|
+
textUnderlineOffset: "auto",
|
5623
|
+
textUnderlinePosition: "from-font",
|
5624
|
+
gap: "0.5",
|
5625
|
+
borderRadius: "xs",
|
5626
|
+
paddingX: "0.5",
|
5627
|
+
whiteSpace: "normal",
|
5628
|
+
wordBreak: "break-word",
|
5629
|
+
_hover: {
|
5630
|
+
textDecoration: "none"
|
5640
5631
|
},
|
5641
5632
|
"& svg": {
|
5642
|
-
display: "inline-block",
|
5643
5633
|
width: "1.125em",
|
5644
5634
|
height: "1.125em",
|
5645
5635
|
position: "relative",
|
@@ -6748,6 +6738,8 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
6748
6738
|
slots: checkboxAnatomy.keys(),
|
6749
6739
|
base: {
|
6750
6740
|
root: {
|
6741
|
+
whiteSpace: "normal",
|
6742
|
+
wordBreak: "break-word",
|
6751
6743
|
display: "flex",
|
6752
6744
|
gap: 1.5,
|
6753
6745
|
_hover: {
|
@@ -6774,6 +6766,7 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
6774
6766
|
control: {
|
6775
6767
|
width: 4,
|
6776
6768
|
height: 4,
|
6769
|
+
flexShrink: 0,
|
6777
6770
|
transitionProperty: "background, border-color",
|
6778
6771
|
transitionDuration: "moderate",
|
6779
6772
|
border: "2px solid",
|
@@ -6813,7 +6806,6 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
|
|
6813
6806
|
}
|
6814
6807
|
},
|
6815
6808
|
label: {
|
6816
|
-
userSelect: "none",
|
6817
6809
|
_disabled: { opacity: 0.4 }
|
6818
6810
|
}
|
6819
6811
|
}
|