@vygruppen/spor-react 12.4.12 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.12 build /home/runner/work/spor/spor/packages/spor-react
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
- ESM dist/icons/index.mjs 110.00 B
14
- ESM dist/index.mjs 289.92 KB
15
- ESM dist/icons/index.mjs.map 157.00 B
16
- ESM dist/index.mjs.map 621.88 KB
17
- ESM ⚡️ Build success in 2632ms
18
- CJS dist/index.js 310.46 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 621.88 KB
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 2641ms
23
- DTS ⚡️ Build success in 28243ms
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 154.57 KB
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 154.57 KB
27
+ DTS dist/index.d.mts 153.73 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.12 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.14 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.4.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 1d54a59: - Remove 100% width from field as this caused visual errors.
8
+ - Fix sizes for textlinks.
9
+
10
+ ## 12.4.13
11
+
12
+ ### Patch Changes
13
+
14
+ - 321972c: Changed lefticon to leftIcon and added it to Input
15
+
3
16
  ## 12.4.12
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1144,8 +1144,8 @@ type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size">
1144
1144
  inputRef?: React__default.RefObject<HTMLInputElement>;
1145
1145
  /** If you want to allow an empty collection */
1146
1146
  allowsEmptyCollection?: boolean;
1147
- lefticon?: ReactNode;
1148
- righticon?: ReactNode;
1147
+ leftIcon?: ReactNode;
1148
+ rightIcon?: ReactNode;
1149
1149
  variant?: "core" | "floating";
1150
1150
  children?: React__default.ReactNode;
1151
1151
  };
@@ -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
- declare const linkRecipe: _chakra_ui_react.RecipeDefinition<{
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
@@ -1144,8 +1144,8 @@ type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size">
1144
1144
  inputRef?: React__default.RefObject<HTMLInputElement>;
1145
1145
  /** If you want to allow an empty collection */
1146
1146
  allowsEmptyCollection?: boolean;
1147
- lefticon?: ReactNode;
1148
- righticon?: ReactNode;
1147
+ leftIcon?: ReactNode;
1148
+ rightIcon?: ReactNode;
1149
1149
  variant?: "core" | "floating";
1150
1150
  children?: React__default.ReactNode;
1151
1151
  };
@@ -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
- declare const linkRecipe: _chakra_ui_react.RecipeDefinition<{
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, width: "100%", children: [
1459
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { gap: "2", ref, ...rest, children: [
1460
1460
  /* @__PURE__ */ jsxRuntime.jsxs(
1461
1461
  react.Field.Root,
1462
1462
  {
@@ -3164,8 +3164,8 @@ var Combobox = (props) => {
3164
3164
  const {
3165
3165
  label,
3166
3166
  loading,
3167
- lefticon,
3168
- righticon,
3167
+ leftIcon,
3168
+ rightIcon,
3169
3169
  borderBottomLeftRadius = "sm",
3170
3170
  borderBottomRightRadius = "sm",
3171
3171
  borderTopLeftRadius = "sm",
@@ -3214,7 +3214,7 @@ var Combobox = (props) => {
3214
3214
  paddingLeft,
3215
3215
  paddingX,
3216
3216
  paddingY,
3217
- lefticon
3217
+ leftIcon
3218
3218
  };
3219
3219
  const {
3220
3220
  inputProps: { ...inputProps },
@@ -3251,6 +3251,7 @@ var Combobox = (props) => {
3251
3251
  borderBottomRightRadius: state.isOpen && !loading ? 0 : borderBottomRightRadius,
3252
3252
  _active: { backgroundColor: "core.surface.active" },
3253
3253
  ...inputProps,
3254
+ startElement: leftIcon,
3254
3255
  endElement: loading ? /* @__PURE__ */ jsxRuntime.jsx(
3255
3256
  ColorSpinner,
3256
3257
  {
@@ -3264,7 +3265,7 @@ var Combobox = (props) => {
3264
3265
  }
3265
3266
  }
3266
3267
  }
3267
- ) : righticon,
3268
+ ) : rightIcon,
3268
3269
  placeholder: ""
3269
3270
  }
3270
3271
  ),
@@ -4874,8 +4875,11 @@ var getDeviationLevelIcon = ({
4874
4875
  }
4875
4876
  }
4876
4877
  };
4877
- var ExternalIcon = ({ label }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4878
- /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.LinkOutOutline24Icon, { "aria-hidden": true }),
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 }),
4879
4883
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: label })
4880
4884
  ] });
4881
4885
  var TextLink = React28.forwardRef(
@@ -4888,13 +4892,13 @@ var TextLink = React28.forwardRef(
4888
4892
  ...children.props,
4889
4893
  children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4890
4894
  children.props.children,
4891
- isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
4895
+ isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
4892
4896
  ] })
4893
4897
  }) });
4894
4898
  }
4895
4899
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Link, { href, ...props, ref, children: [
4896
4900
  children,
4897
- isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel })
4901
+ isExternal && /* @__PURE__ */ jsxRuntime.jsx(ExternalIcon, { label: externalLabel, size: props.size })
4898
4902
  ] });
4899
4903
  }
4900
4904
  );
@@ -6606,6 +6610,7 @@ var linkRecipe = react.defineRecipe({
6606
6610
  paddingY: "0",
6607
6611
  color: "inherit",
6608
6612
  display: "inline-flex",
6613
+ alignItems: "center",
6609
6614
  gap: "0",
6610
6615
  position: "relative",
6611
6616
  boxDecorationBreak: "clone",
@@ -6647,7 +6652,25 @@ var linkRecipe = react.defineRecipe({
6647
6652
  }
6648
6653
  }
6649
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
+ }
6650
6669
  }
6670
+ },
6671
+ defaultVariants: {
6672
+ variant: "primary",
6673
+ size: "sm"
6651
6674
  }
6652
6675
  });
6653
6676
  var _a3, _b2;