@vygruppen/spor-react 13.4.3 → 13.4.5

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@13.4.3 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.4.5 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
- CJS dist/index.cjs 376.07 KB
15
- CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 747.62 KB
17
- CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2665ms
19
- ESM dist/index.mjs 351.48 KB
14
+ ESM dist/index.mjs 351.14 KB
20
15
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 747.62 KB
16
+ ESM dist/index.mjs.map 747.03 KB
22
17
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2666ms
24
- DTS ⚡️ Build success in 22585ms
18
+ ESM ⚡️ Build success in 2348ms
19
+ CJS dist/index.cjs 375.72 KB
20
+ CJS dist/icons/index.cjs 381.00 B
21
+ CJS dist/index.cjs.map 747.03 KB
22
+ CJS dist/icons/index.cjs.map 157.00 B
23
+ CJS ⚡️ Build success in 2348ms
24
+ DTS ⚡️ Build success in 19728ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
26
  DTS dist/index.d.ts 154.14 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
@@ -1,12 +1,11 @@
1
1
 
2
- > @vygruppen/spor-react@13.4.3 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.4.5 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
- ◇ injected env (0) from .env // tip: ⌘ multiple files { path: ['.env.local', '.env'] }
5
+ ◇ injected env (0) from .env // tip: ⌘ override existing { override: true }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
- ◒ Generating conditions types...
9
- ◇ ✅ Generated conditions typings
8
+ ◇ Generated conditions typings
10
9
  [?25h[?25l│
11
10
  ◒ Generating recipe types...
12
11
  ◇ ✅ Generated recipe typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 13.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b62e2e: Time/Date-picker: Make the fontsize of the label smaller
8
+
9
+ ## 13.4.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 5535288: New colors for the info, success, and error icons.
14
+ - Updated dependencies [5535288]
15
+ - Updated dependencies [4d64409]
16
+ - @vygruppen/spor-icon-react@5.0.1
17
+
3
18
  ## 13.4.3
4
19
 
5
20
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1094,41 +1094,33 @@ var AlertIcon = ({
1094
1094
  var BaseAlertIcon = ({
1095
1095
  variant
1096
1096
  }) => {
1097
- const css = {
1098
- "& path:first-of-type": {
1099
- fill: `icon.${variant}`
1100
- },
1101
- "& path:not(:first-of-type)": {
1102
- fill: `surface.${variant}`
1103
- }
1104
- };
1105
1097
  switch (variant) {
1106
1098
  case "info": {
1107
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, { css });
1099
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, {});
1108
1100
  }
1109
1101
  case "success": {
1110
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.SuccessFill24Icon, { css });
1102
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.SuccessFill24Icon, {});
1111
1103
  }
1112
1104
  case "important": {
1113
1105
  return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.WarningFill24Icon, {});
1114
1106
  }
1115
1107
  case "alt": {
1116
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.AltTransportFill24Icon, { css });
1108
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.AltTransportFill24Icon, {});
1117
1109
  }
1118
1110
  case "error": {
1119
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, { css });
1111
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, {});
1120
1112
  }
1121
1113
  case "error-secondary": {
1122
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorOutline24Icon, { css });
1114
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorOutline24Icon, {});
1123
1115
  }
1124
1116
  case "neutral": {
1125
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.QuestionFill24Icon, { css });
1117
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.QuestionFill24Icon, {});
1126
1118
  }
1127
1119
  case "service": {
1128
1120
  return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, {});
1129
1121
  }
1130
1122
  default: {
1131
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, { css });
1123
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, {});
1132
1124
  }
1133
1125
  }
1134
1126
  };
@@ -2556,11 +2548,20 @@ var DateField = ({
2556
2548
  ref
2557
2549
  );
2558
2550
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { minWidth: "6rem", width: "100%", children: [
2559
- props.label && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: styles.inputLabel, position: "absolute", paddingTop: "2px", children: /* @__PURE__ */ jsxRuntime.jsxs(Label, { padding: "0", ...props.labelProps, children: [
2560
- props.label,
2561
- " ",
2562
- /* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
2563
- ] }) }),
2551
+ props.label && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: styles.inputLabel, position: "absolute", paddingTop: "2px", children: /* @__PURE__ */ jsxRuntime.jsxs(
2552
+ Label,
2553
+ {
2554
+ padding: "0",
2555
+ fontSize: ["mobile.2xs", "desktop.2xs"],
2556
+ color: "text.subtle",
2557
+ ...props.labelProps,
2558
+ children: [
2559
+ props.label,
2560
+ " ",
2561
+ /* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
2562
+ ]
2563
+ }
2564
+ ) }),
2564
2565
  /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
2565
2566
  DateTimeSegment,
2566
2567
  {
@@ -2909,7 +2910,8 @@ var TimeField = ({ state, ...props }) => {
2909
2910
  ...labelProps,
2910
2911
  htmlFor: fieldProps.id,
2911
2912
  marginBottom: 0,
2912
- fontSize: ["mobile.xs", "desktop.xs"],
2913
+ fontSize: ["mobile.2xs", "desktop.2xs"],
2914
+ color: "text.subtle",
2913
2915
  top: 0,
2914
2916
  cursor: "text",
2915
2917
  left: "50%",
@@ -3385,20 +3387,7 @@ var ErrorSummary = ({
3385
3387
  tabIndex: -1,
3386
3388
  children: [
3387
3389
  heading && /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { css: styles.heading, children: [
3388
- /* @__PURE__ */ jsxRuntime.jsx(
3389
- spor_icon_react_star.ErrorFill24Icon,
3390
- {
3391
- css: {
3392
- flexShrink: 0,
3393
- "& path:first-of-type": {
3394
- fill: `icon.critical`
3395
- },
3396
- "& path:not(:first-of-type)": {
3397
- fill: `surface.critical`
3398
- }
3399
- }
3400
- }
3401
- ),
3390
+ /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, {}),
3402
3391
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { as: headingLevel, variant: "md", autoId: true, ref: headingRef, children: heading })
3403
3392
  ] }),
3404
3393
  /* @__PURE__ */ jsxRuntime.jsx(List, { css: styles.list, gap: 2, children })