@vygruppen/spor-react 12.4.13 → 12.4.15
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.d.mts +1 -30
- package/dist/index.d.ts +1 -30
- package/dist/index.js +27 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/Field.tsx +1 -1
- package/src/link/TextLink.tsx +28 -23
- package/src/theme/recipes/link.ts +19 -0
- package/src/theme/slot-recipes/numeric-stepper.ts +0 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.4.
|
2
|
+
> @vygruppen/spor-react@12.4.15 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
|
@@ -10,18 +10,18 @@ CLI Target: node16
|
|
10
10
|
CJS Build start
|
11
11
|
ESM Build start
|
12
12
|
DTS Build start
|
13
|
+
ESM dist/index.mjs 290.46 KB
|
13
14
|
ESM dist/icons/index.mjs 110.00 B
|
14
|
-
ESM dist/index.mjs
|
15
|
+
ESM dist/index.mjs.map 622.79 KB
|
15
16
|
ESM dist/icons/index.mjs.map 157.00 B
|
16
|
-
ESM
|
17
|
-
|
18
|
-
CJS dist/index.js 310.49 KB
|
17
|
+
ESM ⚡️ Build success in 2823ms
|
18
|
+
CJS dist/index.js 311.00 KB
|
19
19
|
CJS dist/icons/index.js 380.00 B
|
20
|
-
CJS dist/index.js.map 621.93 KB
|
21
20
|
CJS dist/icons/index.js.map 157.00 B
|
22
|
-
CJS
|
23
|
-
|
21
|
+
CJS dist/index.js.map 622.79 KB
|
22
|
+
CJS ⚡️ Build success in 2825ms
|
23
|
+
DTS ⚡️ Build success in 28288ms
|
24
24
|
DTS dist/icons/index.d.ts 44.00 B
|
25
|
-
DTS dist/index.d.ts
|
25
|
+
DTS dist/index.d.ts 153.73 KB
|
26
26
|
DTS dist/icons/index.d.mts 44.00 B
|
27
|
-
DTS dist/index.d.mts
|
27
|
+
DTS dist/index.d.mts 153.73 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.4.15
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 27b895d: NumericStepper: Remove white outline
|
8
|
+
|
9
|
+
## 12.4.14
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 1d54a59: - Remove 100% width from field as this caused visual errors.
|
14
|
+
- Fix sizes for textlinks.
|
15
|
+
|
3
16
|
## 12.4.13
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -2333,42 +2333,13 @@ type TravelTagProps = TagProps & BoxProps & PropsWithChildren<TravelTagVariantPr
|
|
2333
2333
|
*/
|
2334
2334
|
declare const TravelTag: React$1.ForwardRefExoticComponent<TravelTagProps & React$1.RefAttributes<HTMLDivElement>>;
|
2335
2335
|
|
2336
|
-
|
2337
|
-
variant: {
|
2338
|
-
primary: {
|
2339
|
-
color: "core.text";
|
2340
|
-
_hover: {
|
2341
|
-
color: "text.default";
|
2342
|
-
_active: {
|
2343
|
-
color: "text.disabled";
|
2344
|
-
};
|
2345
|
-
};
|
2346
|
-
};
|
2347
|
-
secondary: {
|
2348
|
-
color: "text.hightlight";
|
2349
|
-
padding: "2px";
|
2350
|
-
_hover: {
|
2351
|
-
color: "text.hightlight";
|
2352
|
-
_active: {
|
2353
|
-
color: "text.disabled";
|
2354
|
-
};
|
2355
|
-
};
|
2356
|
-
};
|
2357
|
-
};
|
2358
|
-
}>;
|
2359
|
-
|
2360
|
-
type linkVariantProps = RecipeVariantProps<typeof linkRecipe>;
|
2361
|
-
type LinkProps = Exclude<LinkProps$1, "variant"> & PropsWithChildren<linkVariantProps> & {
|
2336
|
+
type LinkProps = LinkProps$1 & {
|
2362
2337
|
/** Defaults to primary */
|
2363
2338
|
variant?: "primary" | "secondary";
|
2364
2339
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
2365
2340
|
external?: boolean;
|
2366
2341
|
};
|
2367
2342
|
declare const TextLink: React__default.ForwardRefExoticComponent<LinkProps$1 & {
|
2368
|
-
variant?: _chakra_ui_react.ConditionalValue<"primary" | "secondary" | undefined>;
|
2369
|
-
} & {
|
2370
|
-
children?: React__default.ReactNode | undefined;
|
2371
|
-
} & {
|
2372
2343
|
/** Defaults to primary */
|
2373
2344
|
variant?: "primary" | "secondary";
|
2374
2345
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
package/dist/index.d.ts
CHANGED
@@ -2333,42 +2333,13 @@ type TravelTagProps = TagProps & BoxProps & PropsWithChildren<TravelTagVariantPr
|
|
2333
2333
|
*/
|
2334
2334
|
declare const TravelTag: React$1.ForwardRefExoticComponent<TravelTagProps & React$1.RefAttributes<HTMLDivElement>>;
|
2335
2335
|
|
2336
|
-
|
2337
|
-
variant: {
|
2338
|
-
primary: {
|
2339
|
-
color: "core.text";
|
2340
|
-
_hover: {
|
2341
|
-
color: "text.default";
|
2342
|
-
_active: {
|
2343
|
-
color: "text.disabled";
|
2344
|
-
};
|
2345
|
-
};
|
2346
|
-
};
|
2347
|
-
secondary: {
|
2348
|
-
color: "text.hightlight";
|
2349
|
-
padding: "2px";
|
2350
|
-
_hover: {
|
2351
|
-
color: "text.hightlight";
|
2352
|
-
_active: {
|
2353
|
-
color: "text.disabled";
|
2354
|
-
};
|
2355
|
-
};
|
2356
|
-
};
|
2357
|
-
};
|
2358
|
-
}>;
|
2359
|
-
|
2360
|
-
type linkVariantProps = RecipeVariantProps<typeof linkRecipe>;
|
2361
|
-
type LinkProps = Exclude<LinkProps$1, "variant"> & PropsWithChildren<linkVariantProps> & {
|
2336
|
+
type LinkProps = LinkProps$1 & {
|
2362
2337
|
/** Defaults to primary */
|
2363
2338
|
variant?: "primary" | "secondary";
|
2364
2339
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
2365
2340
|
external?: boolean;
|
2366
2341
|
};
|
2367
2342
|
declare const TextLink: React__default.ForwardRefExoticComponent<LinkProps$1 & {
|
2368
|
-
variant?: _chakra_ui_react.ConditionalValue<"primary" | "secondary" | undefined>;
|
2369
|
-
} & {
|
2370
|
-
children?: React__default.ReactNode | undefined;
|
2371
|
-
} & {
|
2372
2343
|
/** Defaults to primary */
|
2373
2344
|
variant?: "primary" | "secondary";
|
2374
2345
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
package/dist/index.js
CHANGED
@@ -1456,7 +1456,7 @@ var Field3 = React28__namespace.forwardRef(
|
|
1456
1456
|
} = props;
|
1457
1457
|
const recipe = react.useSlotRecipe({ key: "field" });
|
1458
1458
|
const styles = recipe();
|
1459
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { gap: "2", ref, ...rest,
|
1459
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { gap: "2", ref, ...rest, children: [
|
1460
1460
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
1461
1461
|
react.Field.Root,
|
1462
1462
|
{
|
@@ -3721,8 +3721,6 @@ var numericStepperRecipe = react.defineSlotRecipe({
|
|
3721
3721
|
color: "core.text"
|
3722
3722
|
},
|
3723
3723
|
button: {
|
3724
|
-
border: "0.3rem solid",
|
3725
|
-
borderColor: "surface",
|
3726
3724
|
outlineOffset: "-2px",
|
3727
3725
|
width: "auto",
|
3728
3726
|
_icon: {
|
@@ -4875,8 +4873,11 @@ var getDeviationLevelIcon = ({
|
|
4875
4873
|
}
|
4876
4874
|
}
|
4877
4875
|
};
|
4878
|
-
var ExternalIcon = ({
|
4879
|
-
|
4876
|
+
var ExternalIcon = ({
|
4877
|
+
label,
|
4878
|
+
size
|
4879
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
4880
|
+
size === "lg" || size === "md" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline24Icon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline18Icon, { "aria-hidden": true }),
|
4880
4881
|
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: label })
|
4881
4882
|
] });
|
4882
4883
|
var TextLink = React28.forwardRef(
|
@@ -4889,13 +4890,13 @@ var TextLink = React28.forwardRef(
|
|
4889
4890
|
...children.props,
|
4890
4891
|
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
4891
4892
|
children.props.children,
|
4892
|
-
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
|
4893
|
+
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
|
4893
4894
|
] })
|
4894
4895
|
}) });
|
4895
4896
|
}
|
4896
4897
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Link, { href, ...props, ref, children: [
|
4897
4898
|
children,
|
4898
|
-
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
|
4899
|
+
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
|
4899
4900
|
] });
|
4900
4901
|
}
|
4901
4902
|
);
|
@@ -6607,6 +6608,7 @@ var linkRecipe = react.defineRecipe({
|
|
6607
6608
|
paddingY: "0",
|
6608
6609
|
color: "inherit",
|
6609
6610
|
display: "inline-flex",
|
6611
|
+
alignItems: "center",
|
6610
6612
|
gap: "0",
|
6611
6613
|
position: "relative",
|
6612
6614
|
boxDecorationBreak: "clone",
|
@@ -6648,7 +6650,25 @@ var linkRecipe = react.defineRecipe({
|
|
6648
6650
|
}
|
6649
6651
|
}
|
6650
6652
|
}
|
6653
|
+
},
|
6654
|
+
size: {
|
6655
|
+
xs: {
|
6656
|
+
fontSize: { base: "mobile.xs", sm: "desktop.xs" }
|
6657
|
+
},
|
6658
|
+
sm: {
|
6659
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" }
|
6660
|
+
},
|
6661
|
+
md: {
|
6662
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" }
|
6663
|
+
},
|
6664
|
+
lg: {
|
6665
|
+
fontSize: { base: "mobile.lg", sm: "desktop.lg" }
|
6666
|
+
}
|
6651
6667
|
}
|
6668
|
+
},
|
6669
|
+
defaultVariants: {
|
6670
|
+
variant: "primary",
|
6671
|
+
size: "sm"
|
6652
6672
|
}
|
6653
6673
|
});
|
6654
6674
|
var _a3, _b2;
|