@vygruppen/spor-react 12.4.13 → 12.4.14
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 +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts +1 -30
- package/dist/index.d.ts +1 -30
- package/dist/index.js +27 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/input/Field.tsx +1 -1
- package/src/link/TextLink.tsx +28 -23
- package/src/theme/recipes/link.ts +19 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.4.
|
2
|
+
> @vygruppen/spor-react@12.4.14 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
|
-
|
14
|
-
ESM dist/index.mjs 289.96 KB
|
15
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
16
|
-
ESM dist/index.mjs.map 621.93 KB
|
17
|
-
ESM ⚡️ Build success in 2713ms
|
18
|
-
CJS dist/index.js 310.49 KB
|
13
|
+
CJS dist/index.js 311.06 KB
|
19
14
|
CJS dist/icons/index.js 380.00 B
|
20
|
-
CJS dist/index.js.map
|
15
|
+
CJS dist/index.js.map 622.88 KB
|
21
16
|
CJS dist/icons/index.js.map 157.00 B
|
22
|
-
CJS ⚡️ Build success in
|
23
|
-
|
17
|
+
CJS ⚡️ Build success in 2700ms
|
18
|
+
ESM dist/icons/index.mjs 110.00 B
|
19
|
+
ESM dist/index.mjs 290.52 KB
|
20
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
21
|
+
ESM dist/index.mjs.map 622.88 KB
|
22
|
+
ESM ⚡️ Build success in 2701ms
|
23
|
+
DTS ⚡️ Build success in 26476ms
|
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
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
|
{
|
@@ -4875,8 +4875,11 @@ var getDeviationLevelIcon = ({
|
|
4875
4875
|
}
|
4876
4876
|
}
|
4877
4877
|
};
|
4878
|
-
var ExternalIcon = ({
|
4879
|
-
|
4878
|
+
var ExternalIcon = ({
|
4879
|
+
label,
|
4880
|
+
size
|
4881
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
4882
|
+
size === "lg" || size === "md" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline24Icon, { "aria-hidden": true }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline18Icon, { "aria-hidden": true }),
|
4880
4883
|
/* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: label })
|
4881
4884
|
] });
|
4882
4885
|
var TextLink = React28.forwardRef(
|
@@ -4889,13 +4892,13 @@ var TextLink = React28.forwardRef(
|
|
4889
4892
|
...children.props,
|
4890
4893
|
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
4891
4894
|
children.props.children,
|
4892
|
-
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
|
4895
|
+
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
|
4893
4896
|
] })
|
4894
4897
|
}) });
|
4895
4898
|
}
|
4896
4899
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Link, { href, ...props, ref, children: [
|
4897
4900
|
children,
|
4898
|
-
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
|
4901
|
+
isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
|
4899
4902
|
] });
|
4900
4903
|
}
|
4901
4904
|
);
|
@@ -6607,6 +6610,7 @@ var linkRecipe = react.defineRecipe({
|
|
6607
6610
|
paddingY: "0",
|
6608
6611
|
color: "inherit",
|
6609
6612
|
display: "inline-flex",
|
6613
|
+
alignItems: "center",
|
6610
6614
|
gap: "0",
|
6611
6615
|
position: "relative",
|
6612
6616
|
boxDecorationBreak: "clone",
|
@@ -6648,7 +6652,25 @@ var linkRecipe = react.defineRecipe({
|
|
6648
6652
|
}
|
6649
6653
|
}
|
6650
6654
|
}
|
6655
|
+
},
|
6656
|
+
size: {
|
6657
|
+
xs: {
|
6658
|
+
fontSize: { base: "mobile.xs", sm: "desktop.xs" }
|
6659
|
+
},
|
6660
|
+
sm: {
|
6661
|
+
fontSize: { base: "mobile.sm", sm: "desktop.sm" }
|
6662
|
+
},
|
6663
|
+
md: {
|
6664
|
+
fontSize: { base: "mobile.md", sm: "desktop.md" }
|
6665
|
+
},
|
6666
|
+
lg: {
|
6667
|
+
fontSize: { base: "mobile.lg", sm: "desktop.lg" }
|
6668
|
+
}
|
6651
6669
|
}
|
6670
|
+
},
|
6671
|
+
defaultVariants: {
|
6672
|
+
variant: "primary",
|
6673
|
+
size: "sm"
|
6652
6674
|
}
|
6653
6675
|
});
|
6654
6676
|
var _a3, _b2;
|