@vygruppen/spor-react 5.2.0 → 5.4.0

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/dist/index.js CHANGED
@@ -13,8 +13,11 @@ var tokens10 = require('@vygruppen/spor-design-tokens');
13
13
  var awesomePhonenumber = require('awesome-phonenumber');
14
14
  var reactSwipeable = require('react-swipeable');
15
15
  var react$1 = require('@emotion/react');
16
+ var deepmerge = require('deepmerge');
16
17
  var themeTools = require('@chakra-ui/theme-tools');
17
18
 
19
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
20
+
18
21
  function _interopNamespace(e) {
19
22
  if (e && e.__esModule) return e;
20
23
  var n = Object.create(null);
@@ -35,6 +38,7 @@ function _interopNamespace(e) {
35
38
 
36
39
  var React69__namespace = /*#__PURE__*/_interopNamespace(React69);
37
40
  var tokens10__namespace = /*#__PURE__*/_interopNamespace(tokens10);
41
+ var deepmerge__default = /*#__PURE__*/_interopDefault(deepmerge);
38
42
 
39
43
  var __create = Object.create;
40
44
  var __defProp = Object.defineProperty;
@@ -233,8 +237,8 @@ function useTranslation() {
233
237
  };
234
238
  return { t: t2, language };
235
239
  }
236
- function createTexts(texts25) {
237
- return texts25;
240
+ function createTexts(texts26) {
241
+ return texts26;
238
242
  }
239
243
  exports.Language = void 0; var LanguageContext;
240
244
  var init_i18n = __esm({
@@ -2265,7 +2269,10 @@ var init_CardSelect = __esm({
2265
2269
  triggerRef
2266
2270
  );
2267
2271
  const { buttonProps } = reactAria.useButton(triggerProps, triggerRef);
2268
- const styles3 = react.useMultiStyleConfig("CardSelect", { variant, size: size2 });
2272
+ const styles3 = react.useMultiStyleConfig("CardSelect", {
2273
+ variant,
2274
+ size: size2
2275
+ });
2269
2276
  useForceRerender(state2.isOpen);
2270
2277
  const ChevronIcon = size2 === "sm" ? sporIconReact.DropdownDownFill18Icon : sporIconReact.DropdownDownFill24Icon;
2271
2278
  return /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { ...props }, /* @__PURE__ */ React69__namespace.default.createElement(
@@ -3457,6 +3464,7 @@ function InfoSelect({
3457
3464
  value,
3458
3465
  isLabelSrOnly,
3459
3466
  defaultValue,
3467
+ variant = "base",
3460
3468
  ...props
3461
3469
  }) {
3462
3470
  const renamedProps = {
@@ -3473,9 +3481,12 @@ function InfoSelect({
3473
3481
  state2,
3474
3482
  triggerRef
3475
3483
  );
3484
+ const stateStyle = "completed";
3476
3485
  const styles3 = react.useMultiStyleConfig("InfoSelect", {
3477
3486
  isOpen: state2.isOpen,
3478
- isLabelSrOnly
3487
+ isLabelSrOnly,
3488
+ variant,
3489
+ stateStyle
3479
3490
  });
3480
3491
  const { buttonProps } = reactAria.useButton(triggerProps, triggerRef);
3481
3492
  const { t: t2 } = useTranslation();
@@ -4992,6 +5003,68 @@ var init_popover = __esm({
4992
5003
  init_WizardPopover();
4993
5004
  }
4994
5005
  });
5006
+ var ProgressDot;
5007
+ var init_ProgressDot = __esm({
5008
+ "src/progress-indicator/ProgressDot.tsx"() {
5009
+ init_src();
5010
+ ProgressDot = ({ isActive }) => {
5011
+ const style = react.useMultiStyleConfig("ProgressIndicator");
5012
+ return /* @__PURE__ */ React69__namespace.default.createElement(
5013
+ react.Box,
5014
+ {
5015
+ as: "svg",
5016
+ display: "block",
5017
+ __css: style.progressDot,
5018
+ xmlns: "http://www.w3.org/2000/svg",
5019
+ viewBox: "0 0 100 100",
5020
+ "aria-current": isActive ? "step" : void 0
5021
+ },
5022
+ /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "circle", cx: "50", cy: "50", r: "50" })
5023
+ );
5024
+ };
5025
+ }
5026
+ });
5027
+ exports.ProgressIndicator = void 0; var texts22;
5028
+ var init_ProgressIndicator = __esm({
5029
+ "src/progress-indicator/ProgressIndicator.tsx"() {
5030
+ init_src();
5031
+ init_ProgressDot();
5032
+ exports.ProgressIndicator = ({
5033
+ numberOfSteps,
5034
+ activeStep
5035
+ }) => {
5036
+ const { t: t2 } = useTranslation();
5037
+ const style = react.useMultiStyleConfig("ProgressIndicator");
5038
+ return /* @__PURE__ */ React69__namespace.default.createElement(
5039
+ react.Box,
5040
+ {
5041
+ __css: style.root,
5042
+ role: "progressbar",
5043
+ "aria-valuemin": 1,
5044
+ "aria-valuemax": numberOfSteps,
5045
+ "aria-valuenow": activeStep,
5046
+ "aria-valuetext": t2(texts22.stepsOf(activeStep, numberOfSteps))
5047
+ },
5048
+ /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React69__namespace.default.createElement(ProgressDot, { "aria-value": i + 1, isActive: activeStep === i + 1 })))
5049
+ );
5050
+ };
5051
+ texts22 = createTexts({
5052
+ stepsOf: (activeStep, numberOfSteps) => ({
5053
+ nb: `Steg ${activeStep} av ${numberOfSteps}`,
5054
+ nn: `Steg ${activeStep} av ${numberOfSteps}`,
5055
+ sv: `Steg ${activeStep} av ${numberOfSteps}`,
5056
+ en: `Step ${activeStep} of ${numberOfSteps}`
5057
+ })
5058
+ });
5059
+ }
5060
+ });
5061
+
5062
+ // src/progress-indicator/index.tsx
5063
+ var init_progress_indicator = __esm({
5064
+ "src/progress-indicator/index.tsx"() {
5065
+ init_ProgressIndicator();
5066
+ }
5067
+ });
4995
5068
  exports.SporProvider = void 0;
4996
5069
  var init_SporProvider = __esm({
4997
5070
  "src/provider/SporProvider.tsx"() {
@@ -5000,10 +5073,13 @@ var init_SporProvider = __esm({
5000
5073
  exports.SporProvider = ({
5001
5074
  theme: theme3 = exports.theme,
5002
5075
  language = "nb" /* NorwegianBokmal */,
5076
+ brand = "VyDigital" /* VyDigital */,
5003
5077
  children,
5004
5078
  ...props
5005
5079
  }) => {
5006
- return /* @__PURE__ */ React69__namespace.default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React69__namespace.default.createElement(react.ChakraProvider, { theme: theme3, ...props }, /* @__PURE__ */ React69__namespace.default.createElement(react$1.Global, { styles: exports.fontFaces }), children));
5080
+ const brandCustomizations = exports.brandTheme[brand] ?? {};
5081
+ const extendedTheme = deepmerge__default.default(theme3, brandCustomizations);
5082
+ return /* @__PURE__ */ React69__namespace.default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React69__namespace.default.createElement(react.ChakraProvider, { theme: extendedTheme, ...props }, /* @__PURE__ */ React69__namespace.default.createElement(react$1.Global, { styles: exports.fontFaces }), children));
5007
5083
  };
5008
5084
  }
5009
5085
  });
@@ -5044,7 +5120,7 @@ var init_StepperContext = __esm({
5044
5120
  };
5045
5121
  }
5046
5122
  });
5047
- exports.Stepper = void 0; var texts22;
5123
+ exports.Stepper = void 0; var texts23;
5048
5124
  var init_Stepper = __esm({
5049
5125
  "src/stepper/Stepper.tsx"() {
5050
5126
  init_stepper();
@@ -5073,7 +5149,7 @@ var init_Stepper = __esm({
5073
5149
  /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { __css: style.container }, /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { __css: style.innerContainer }, /* @__PURE__ */ React69__namespace.default.createElement(react.HStack, null, activeStep > 1 && /* @__PURE__ */ React69__namespace.default.createElement(
5074
5150
  exports.IconButton,
5075
5151
  {
5076
- "aria-label": t2(texts22.back),
5152
+ "aria-label": t2(texts23.back),
5077
5153
  icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.DropdownLeftFill24Icon, null),
5078
5154
  variant: "ghost",
5079
5155
  size: "sm",
@@ -5083,7 +5159,7 @@ var init_Stepper = __esm({
5083
5159
  ), /* @__PURE__ */ React69__namespace.default.createElement(
5084
5160
  exports.SimplePopover,
5085
5161
  {
5086
- triggerElement: /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "button", __css: style.stepCounter }, t2(texts22.stepsOf(activeStep, numberOfSteps))),
5162
+ triggerElement: /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "button", __css: style.stepCounter }, t2(texts23.stepsOf(activeStep, numberOfSteps))),
5087
5163
  borderRadius: "xs"
5088
5164
  },
5089
5165
  steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(
@@ -5098,7 +5174,7 @@ var init_Stepper = __esm({
5098
5174
  )), title && /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React69__namespace.default.createElement(react.Flex, { justifyContent: "center", display: ["none", "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(exports.StepperStep, { key: index, stepNumber: index + 1, variant }, step))))
5099
5175
  ));
5100
5176
  };
5101
- texts22 = createTexts({
5177
+ texts23 = createTexts({
5102
5178
  stepsOf: (activeStep, numberOfSteps) => ({
5103
5179
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
5104
5180
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -5958,16 +6034,16 @@ function defineCssVars(scope, keys2) {
5958
6034
  function defineStyle(styles3) {
5959
6035
  return styles3;
5960
6036
  }
5961
- function defineStyleConfig(config37) {
5962
- return config37;
6037
+ function defineStyleConfig(config38) {
6038
+ return config38;
5963
6039
  }
5964
- function createMultiStyleConfigHelpers(parts14) {
6040
+ function createMultiStyleConfigHelpers(parts15) {
5965
6041
  return {
5966
- definePartsStyle(config37) {
5967
- return config37;
6042
+ definePartsStyle(config38) {
6043
+ return config38;
5968
6044
  },
5969
- defineMultiStyleConfig(config37) {
5970
- return { parts: parts14, ...config37 };
6045
+ defineMultiStyleConfig(config38) {
6046
+ return { parts: parts15, ...config38 };
5971
6047
  }
5972
6048
  };
5973
6049
  }
@@ -7290,7 +7366,7 @@ function anatomy(name, map = {}) {
7290
7366
  "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
7291
7367
  );
7292
7368
  }
7293
- function parts14(...values) {
7369
+ function parts15(...values) {
7294
7370
  assert();
7295
7371
  for (const part of values) {
7296
7372
  map[part] = toPart(part);
@@ -7330,7 +7406,7 @@ function anatomy(name, map = {}) {
7330
7406
  }
7331
7407
  const __type = {};
7332
7408
  return {
7333
- parts: parts14,
7409
+ parts: parts15,
7334
7410
  toPart,
7335
7411
  extend,
7336
7412
  selectors,
@@ -11852,6 +11928,95 @@ var init_card2 = __esm({
11852
11928
  };
11853
11929
  }
11854
11930
  });
11931
+ function baseBackground(state2, props) {
11932
+ switch (state2) {
11933
+ case "active":
11934
+ return {
11935
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props)
11936
+ };
11937
+ case "selected":
11938
+ return {
11939
+ backgroundColor: themeTools.mode("pine", "coralGreen")(props)
11940
+ };
11941
+ case "disabled":
11942
+ return {
11943
+ backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
11944
+ };
11945
+ default:
11946
+ return {
11947
+ backgroundColor: "transparent"
11948
+ };
11949
+ }
11950
+ }
11951
+ function ghostBackground(state2, props) {
11952
+ switch (state2) {
11953
+ case "hover": {
11954
+ return {
11955
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props)
11956
+ };
11957
+ }
11958
+ case "active":
11959
+ return {
11960
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props)
11961
+ };
11962
+ case "focus":
11963
+ return {
11964
+ backgroundColor: "transparent"
11965
+ };
11966
+ case "selected": {
11967
+ return {
11968
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
11969
+ };
11970
+ }
11971
+ case "default":
11972
+ default:
11973
+ return {
11974
+ backgroundColor: "transparent"
11975
+ };
11976
+ }
11977
+ }
11978
+ function floatingBackground(state2, props) {
11979
+ switch (state2) {
11980
+ case "selected":
11981
+ return {
11982
+ backgroundColor: themeTools.mode("mint", "pine")(props)
11983
+ };
11984
+ case "active":
11985
+ return {
11986
+ backgroundColor: themeTools.mode(
11987
+ "mint",
11988
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 30%)`
11989
+ )(props)
11990
+ };
11991
+ case "hover":
11992
+ return {
11993
+ backgroundColor: themeTools.mode(
11994
+ "white",
11995
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 20%)`
11996
+ )(props)
11997
+ };
11998
+ case "focus":
11999
+ return {
12000
+ backgroundColor: themeTools.mode(
12001
+ "white",
12002
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 40%)`
12003
+ )(props)
12004
+ };
12005
+ case "default":
12006
+ default:
12007
+ return {
12008
+ backgroundColor: themeTools.mode(
12009
+ "white",
12010
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
12011
+ )(props)
12012
+ };
12013
+ }
12014
+ }
12015
+ var init_background_utils = __esm({
12016
+ "src/theme/utils/background-utils.ts"() {
12017
+ init_foundations();
12018
+ }
12019
+ });
11855
12020
  var parts2, helpers3, config8, card_select_default;
11856
12021
  var init_card_select = __esm({
11857
12022
  "src/theme/components/card-select.ts"() {
@@ -11859,6 +12024,7 @@ var init_card_select = __esm({
11859
12024
  init_dist3();
11860
12025
  init_box_shadow_utils();
11861
12026
  init_focus_utils();
12027
+ init_background_utils();
11862
12028
  parts2 = anatomy("card-select").parts("trigger", "card");
11863
12029
  helpers3 = createMultiStyleConfigHelpers(parts2.keys);
11864
12030
  config8 = helpers3.defineMultiStyleConfig({
@@ -11867,9 +12033,6 @@ var init_card_select = __esm({
11867
12033
  appearance: "none",
11868
12034
  display: "flex",
11869
12035
  alignItems: "center",
11870
- _expanded: {
11871
- backgroundColor: themeTools.mode("mint", "night")(props)
11872
- },
11873
12036
  ...focusVisible({
11874
12037
  notFocus: {},
11875
12038
  focus: {
@@ -11884,21 +12047,12 @@ var init_card_select = __esm({
11884
12047
  card: {
11885
12048
  borderRadius: "sm",
11886
12049
  boxShadow: "md",
11887
- padding: 3
12050
+ padding: 3,
12051
+ color: themeTools.mode("darkGrey", "white")(props)
11888
12052
  }
11889
12053
  }),
11890
12054
  variants: {
11891
- ghost: (props) => ({
11892
- trigger: {
11893
- _hover: {
11894
- backgroundColor: themeTools.mode("seaMist", "pine")(props)
11895
- },
11896
- _active: {
11897
- backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
11898
- }
11899
- }
11900
- }),
11901
- outline: (props) => ({
12055
+ base: (props) => ({
11902
12056
  trigger: {
11903
12057
  boxShadow: getBoxShadowString({
11904
12058
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
@@ -11920,19 +12074,20 @@ var init_card_select = __esm({
11920
12074
  })
11921
12075
  },
11922
12076
  _active: {
11923
- backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props),
12077
+ ...baseBackground("active", props),
11924
12078
  boxShadow: getBoxShadowString({
11925
12079
  borderColor: themeTools.mode("darkGrey", "whiteAlpha.400")(props),
11926
12080
  borderWidth: 1
11927
12081
  })
11928
12082
  },
11929
12083
  _expanded: {
12084
+ ...baseBackground("active", props),
11930
12085
  _hover: {
11931
- backgroundColor: themeTools.mode("seaMist", "todo")(props),
12086
+ ...baseBackground("active", props),
11932
12087
  boxShadow: "none"
11933
12088
  },
11934
12089
  _active: {
11935
- backgroundColor: themeTools.mode("mint", "todo")(props),
12090
+ ...baseBackground("active", props),
11936
12091
  boxShadow: getBoxShadowString({
11937
12092
  borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props),
11938
12093
  borderWidth: 1
@@ -11941,13 +12096,26 @@ var init_card_select = __esm({
11941
12096
  }
11942
12097
  }
11943
12098
  }),
11944
- card: (props) => ({
12099
+ ghost: (props) => ({
11945
12100
  trigger: {
11946
- backgroundColor: themeTools.mode("transparent", "whiteAlpha.100")(props),
12101
+ _hover: {
12102
+ ...ghostBackground("hover", props)
12103
+ },
12104
+ _active: {
12105
+ ...ghostBackground("active", props)
12106
+ },
12107
+ _expanded: {
12108
+ ...ghostBackground("selected", props)
12109
+ }
12110
+ }
12111
+ }),
12112
+ floating: (props) => ({
12113
+ trigger: {
12114
+ ...floatingBackground("default", props),
11947
12115
  boxShadow: "sm",
11948
12116
  transition: "all .1s ease-out",
11949
12117
  _hover: {
11950
- backgroundColor: themeTools.mode("seaMist", "pine")(props),
12118
+ ...floatingBackground("hover", props),
11951
12119
  boxShadow: getBoxShadowString({
11952
12120
  borderColor: themeTools.mode("silver", "whiteAlpha.400")(props),
11953
12121
  borderWidth: 1,
@@ -11955,7 +12123,7 @@ var init_card_select = __esm({
11955
12123
  })
11956
12124
  },
11957
12125
  _active: {
11958
- backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props),
12126
+ ...floatingBackground("active", props),
11959
12127
  boxShadow: getBoxShadowString({
11960
12128
  borderColor: themeTools.mode("silver", "whiteAlpha.400")(props),
11961
12129
  borderWidth: themeTools.mode(0, 1)(props),
@@ -11963,6 +12131,7 @@ var init_card_select = __esm({
11963
12131
  })
11964
12132
  },
11965
12133
  _expanded: {
12134
+ ...floatingBackground("active", props),
11966
12135
  _hover: {
11967
12136
  boxShadow: getBoxShadowString({
11968
12137
  borderColor: "darkGrey",
@@ -11970,7 +12139,7 @@ var init_card_select = __esm({
11970
12139
  })
11971
12140
  },
11972
12141
  _active: {
11973
- backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props),
12142
+ ...floatingBackground("active", props),
11974
12143
  boxShadow: "none"
11975
12144
  }
11976
12145
  }
@@ -13049,31 +13218,35 @@ function baseBorder(state2, props) {
13049
13218
  };
13050
13219
  }
13051
13220
  }
13052
- var init_border_utils = __esm({
13053
- "src/theme/utils/border-utils.ts"() {
13054
- init_box_shadow_utils();
13055
- }
13056
- });
13057
- function baseBackground(state2, props) {
13221
+ function floatingBorder(state2, props) {
13058
13222
  switch (state2) {
13059
- case "active":
13223
+ case "hover":
13060
13224
  return {
13061
- backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props)
13225
+ boxShadow: getBoxShadowString({
13226
+ borderColor: themeTools.mode("grey.300", "white")(props)
13227
+ })
13062
13228
  };
13063
13229
  case "selected":
13230
+ case "focus":
13064
13231
  return {
13065
- backgroundColor: "pine"
13232
+ boxShadow: getBoxShadowString({
13233
+ borderColor: themeTools.mode("greenHaze", "azure")(props),
13234
+ borderWidth: 2
13235
+ })
13066
13236
  };
13067
- case "disabled":
13237
+ case "active":
13238
+ case "default":
13239
+ default:
13068
13240
  return {
13069
- backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
13241
+ boxShadow: getBoxShadowString({
13242
+ borderColor: themeTools.mode("grey.200", "whiteAlpha.400")(props)
13243
+ })
13070
13244
  };
13071
- default:
13072
- return {};
13073
13245
  }
13074
13246
  }
13075
- var init_background_utils = __esm({
13076
- "src/theme/utils/background-utils.ts"() {
13247
+ var init_border_utils = __esm({
13248
+ "src/theme/utils/border-utils.ts"() {
13249
+ init_box_shadow_utils();
13077
13250
  }
13078
13251
  });
13079
13252
  var parts6, helpers10, config18, info_select_default;
@@ -13132,7 +13305,6 @@ var init_info_select = __esm({
13132
13305
  ...baseBorder("focus", props)
13133
13306
  },
13134
13307
  _expanded: {
13135
- ...baseBackground("active", props),
13136
13308
  ...baseBorder("focus", props)
13137
13309
  },
13138
13310
  _invalid: {
@@ -13151,7 +13323,36 @@ var init_info_select = __esm({
13151
13323
  }
13152
13324
  },
13153
13325
  arrowIcon: {}
13154
- })
13326
+ }),
13327
+ variants: {
13328
+ base: (props) => ({}),
13329
+ floating: (props) => ({
13330
+ button: {
13331
+ ...floatingBackground("default", props),
13332
+ ...floatingBorder("default", props),
13333
+ _hover: {
13334
+ ...floatingBorder("hover", props),
13335
+ ...floatingBackground("hover", props)
13336
+ },
13337
+ ...focusVisible({
13338
+ focus: {
13339
+ ...floatingBorder("focus", props),
13340
+ outline: "none"
13341
+ },
13342
+ notFocus: {
13343
+ ...floatingBorder("default", props)
13344
+ }
13345
+ }),
13346
+ _active: {
13347
+ ...floatingBorder("active", props),
13348
+ ...floatingBackground("active", props)
13349
+ }
13350
+ }
13351
+ })
13352
+ },
13353
+ defaultProps: {
13354
+ variant: "base"
13355
+ }
13155
13356
  });
13156
13357
  info_select_default = config18;
13157
13358
  }
@@ -13851,7 +14052,7 @@ var init_listbox = __esm({
13851
14052
  // avoiding extra div by blending a transparent color into darkGrey for dark mode
13852
14053
  backgroundColor: themeTools.mode(
13853
14054
  "white",
13854
- `color-mix(in srgb, ${colors.darkGrey}, ${colors.white} 10%)`
14055
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
13855
14056
  )(props),
13856
14057
  boxShadow: "sm",
13857
14058
  overflowY: "auto",
@@ -13868,21 +14069,18 @@ var init_listbox = __esm({
13868
14069
  borderRadius: "sm",
13869
14070
  color: themeTools.mode("darkGrey", "white")(props),
13870
14071
  cursor: "pointer",
13871
- _hover: {
13872
- backgroundColor: themeTools.mode("seaMist", "pine")(props),
13873
- outline: "none"
13874
- },
14072
+ outline: "none",
13875
14073
  _active: {
13876
- backgroundColor: themeTools.mode("mint", "pine")(props),
13877
- outline: "none"
14074
+ ...ghostBackground("active", props)
13878
14075
  },
13879
14076
  _focus: {
13880
- outline: "none",
13881
- backgroundColor: themeTools.mode("seaMist", "pine")(props)
14077
+ ...ghostBackground("focus", props)
14078
+ },
14079
+ _hover: {
14080
+ ...ghostBackground("hover", props)
13882
14081
  },
13883
14082
  _selected: {
13884
- ...baseBackground("selected", props),
13885
- color: "white"
14083
+ ...ghostBackground("selected", props)
13886
14084
  }
13887
14085
  },
13888
14086
  label: {},
@@ -14194,12 +14392,55 @@ var init_popover2 = __esm({
14194
14392
  popover_default = config27;
14195
14393
  }
14196
14394
  });
14197
- var helpers19, config28, radio_default;
14395
+ var parts12, helpers19, config28, progress_indicator_default;
14396
+ var init_progress_indicator2 = __esm({
14397
+ "src/theme/components/progress-indicator.ts"() {
14398
+ parts12 = themeTools.anatomy("progress-indicator").parts(
14399
+ "root",
14400
+ "container",
14401
+ "progressDot"
14402
+ );
14403
+ helpers19 = react.createMultiStyleConfigHelpers(parts12.keys);
14404
+ config28 = helpers19.defineMultiStyleConfig({
14405
+ baseStyle: (props) => ({
14406
+ root: {
14407
+ width: "100%"
14408
+ },
14409
+ container: {
14410
+ display: "flex",
14411
+ alignItems: "center",
14412
+ gap: 1,
14413
+ justifyContent: ["space-between", "center"]
14414
+ },
14415
+ progressDot: {
14416
+ height: 1,
14417
+ width: 1,
14418
+ "&[aria-current='step']": {
14419
+ circle: {
14420
+ fill: themeTools.mode("pine", "coralGreen")(props)
14421
+ }
14422
+ },
14423
+ circle: {
14424
+ fill: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14425
+ }
14426
+ }
14427
+ }),
14428
+ variants: {
14429
+ base: (props) => ({})
14430
+ },
14431
+ defaultProps: {
14432
+ variant: "base"
14433
+ }
14434
+ });
14435
+ progress_indicator_default = config28;
14436
+ }
14437
+ });
14438
+ var helpers20, config29, radio_default;
14198
14439
  var init_radio = __esm({
14199
14440
  "src/theme/components/radio.ts"() {
14200
14441
  init_dist4();
14201
- helpers19 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
14202
- config28 = helpers19.defineMultiStyleConfig({
14442
+ helpers20 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
14443
+ config29 = helpers20.defineMultiStyleConfig({
14203
14444
  baseStyle: {
14204
14445
  container: {
14205
14446
  _hover: {
@@ -14255,17 +14496,17 @@ var init_radio = __esm({
14255
14496
  }
14256
14497
  }
14257
14498
  });
14258
- radio_default = config28;
14499
+ radio_default = config29;
14259
14500
  }
14260
14501
  });
14261
- var parts12, helpers20, config29, select_default;
14502
+ var parts13, helpers21, config30, select_default;
14262
14503
  var init_select = __esm({
14263
14504
  "src/theme/components/select.ts"() {
14264
14505
  init_dist4();
14265
14506
  init_input2();
14266
- parts12 = selectAnatomy.extend("root");
14267
- helpers20 = react.createMultiStyleConfigHelpers(parts12.keys);
14268
- config29 = helpers20.defineMultiStyleConfig({
14507
+ parts13 = selectAnatomy.extend("root");
14508
+ helpers21 = react.createMultiStyleConfigHelpers(parts13.keys);
14509
+ config30 = helpers21.defineMultiStyleConfig({
14269
14510
  baseStyle: (props) => ({
14270
14511
  root: {
14271
14512
  width: "100%",
@@ -14307,7 +14548,7 @@ var init_select = __esm({
14307
14548
  }
14308
14549
  })
14309
14550
  });
14310
- select_default = config29;
14551
+ select_default = config30;
14311
14552
  }
14312
14553
  });
14313
14554
 
@@ -14323,7 +14564,7 @@ var init_dist7 = __esm({
14323
14564
  init_dist3();
14324
14565
  }
14325
14566
  });
14326
- var fade, $startColor2, $endColor2, config30, skeleton_default;
14567
+ var fade, $startColor2, $endColor2, config31, skeleton_default;
14327
14568
  var init_skeleton = __esm({
14328
14569
  "src/theme/components/skeleton.ts"() {
14329
14570
  init_dist7();
@@ -14333,7 +14574,7 @@ var init_skeleton = __esm({
14333
14574
  });
14334
14575
  $startColor2 = themeTools.cssVar("skeleton-start-color");
14335
14576
  $endColor2 = themeTools.cssVar("skeleton-end-color");
14336
- config30 = react.defineStyleConfig({
14577
+ config31 = react.defineStyleConfig({
14337
14578
  baseStyle: (props) => {
14338
14579
  const defaultStartColor = themeTools.mode("blackAlpha.300", "whiteAlpha.300")(props);
14339
14580
  const defaultEndColor = themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props);
@@ -14356,13 +14597,13 @@ var init_skeleton = __esm({
14356
14597
  };
14357
14598
  }
14358
14599
  });
14359
- skeleton_default = config30;
14600
+ skeleton_default = config31;
14360
14601
  }
14361
14602
  });
14362
- var parts13, helpers21, config31, stepper_default;
14603
+ var parts14, helpers22, config32, stepper_default;
14363
14604
  var init_stepper2 = __esm({
14364
14605
  "src/theme/components/stepper.ts"() {
14365
- parts13 = themeTools.anatomy("stepper").parts(
14606
+ parts14 = themeTools.anatomy("stepper").parts(
14366
14607
  "root",
14367
14608
  "container",
14368
14609
  "innerContainer",
@@ -14375,8 +14616,8 @@ var init_stepper2 = __esm({
14375
14616
  "stepTitle",
14376
14617
  "closeButton"
14377
14618
  );
14378
- helpers21 = react.createMultiStyleConfigHelpers(parts13.keys);
14379
- config31 = helpers21.defineMultiStyleConfig({
14619
+ helpers22 = react.createMultiStyleConfigHelpers(parts14.keys);
14620
+ config32 = helpers22.defineMultiStyleConfig({
14380
14621
  baseStyle: (props) => ({
14381
14622
  root: {
14382
14623
  display: "flex",
@@ -14438,10 +14679,10 @@ var init_stepper2 = __esm({
14438
14679
  variant: "base"
14439
14680
  }
14440
14681
  });
14441
- stepper_default = config31;
14682
+ stepper_default = config32;
14442
14683
  }
14443
14684
  });
14444
- var $width2, $height3, $diff2, diffValue2, $translateX2, helpers22, config32, switch_default;
14685
+ var $width2, $height3, $diff2, diffValue2, $translateX2, helpers23, config33, switch_default;
14445
14686
  var init_switch = __esm({
14446
14687
  "src/theme/components/switch.ts"() {
14447
14688
  init_dist4();
@@ -14453,8 +14694,8 @@ var init_switch = __esm({
14453
14694
  $diff2 = themeTools.cssVar("switch-track-diff");
14454
14695
  diffValue2 = themeTools.calc.subtract($width2, $height3);
14455
14696
  $translateX2 = themeTools.cssVar("switch-thumb-x");
14456
- helpers22 = react.createMultiStyleConfigHelpers(switchAnatomy.keys);
14457
- config32 = helpers22.defineMultiStyleConfig({
14697
+ helpers23 = react.createMultiStyleConfigHelpers(switchAnatomy.keys);
14698
+ config33 = helpers23.defineMultiStyleConfig({
14458
14699
  baseStyle: {
14459
14700
  container: {
14460
14701
  [$diff2.variable]: diffValue2,
@@ -14660,21 +14901,21 @@ var init_switch = __esm({
14660
14901
  size: "md"
14661
14902
  }
14662
14903
  });
14663
- switch_default = config32;
14904
+ switch_default = config33;
14664
14905
  }
14665
14906
  });
14666
- var helpers23, numericStyles2, config33, table_default;
14907
+ var helpers24, numericStyles2, config34, table_default;
14667
14908
  var init_table2 = __esm({
14668
14909
  "src/theme/components/table.ts"() {
14669
14910
  init_dist4();
14670
14911
  init_box_shadow_utils();
14671
- helpers23 = react.createMultiStyleConfigHelpers(tableAnatomy.keys);
14912
+ helpers24 = react.createMultiStyleConfigHelpers(tableAnatomy.keys);
14672
14913
  numericStyles2 = {
14673
14914
  "&[data-is-numeric=true]": {
14674
14915
  textAlign: "end"
14675
14916
  }
14676
14917
  };
14677
- config33 = helpers23.defineMultiStyleConfig({
14918
+ config34 = helpers24.defineMultiStyleConfig({
14678
14919
  baseStyle: {
14679
14920
  table: {
14680
14921
  borderCollapse: "collapse",
@@ -14822,15 +15063,15 @@ var init_table2 = __esm({
14822
15063
  colorScheme: "grey"
14823
15064
  }
14824
15065
  });
14825
- table_default = config33;
15066
+ table_default = config34;
14826
15067
  }
14827
15068
  });
14828
- var helpers24, config34, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeFocusProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
15069
+ var helpers25, config35, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeFocusProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
14829
15070
  var init_tabs = __esm({
14830
15071
  "src/theme/components/tabs.ts"() {
14831
15072
  init_dist4();
14832
- helpers24 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
14833
- config34 = helpers24.defineMultiStyleConfig({
15073
+ helpers25 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
15074
+ config35 = helpers25.defineMultiStyleConfig({
14834
15075
  baseStyle: (props) => ({
14835
15076
  root: {
14836
15077
  display: "flex",
@@ -14933,7 +15174,7 @@ var init_tabs = __esm({
14933
15174
  variant: "round"
14934
15175
  }
14935
15176
  });
14936
- tabs_default = config34;
15177
+ tabs_default = config35;
14937
15178
  getTabColorSchemeProps = (props) => {
14938
15179
  switch (props.colorScheme) {
14939
15180
  case "dark":
@@ -15187,11 +15428,11 @@ var init_tabs = __esm({
15187
15428
  };
15188
15429
  }
15189
15430
  });
15190
- var config35, textarea_default;
15431
+ var config36, textarea_default;
15191
15432
  var init_textarea = __esm({
15192
15433
  "src/theme/components/textarea.ts"() {
15193
15434
  init_input2();
15194
- config35 = react.defineStyleConfig({
15435
+ config36 = react.defineStyleConfig({
15195
15436
  baseStyle: (props) => ({
15196
15437
  ...input_default.baseStyle(props).field,
15197
15438
  minHeight: "5rem",
@@ -15208,13 +15449,13 @@ var init_textarea = __esm({
15208
15449
  }
15209
15450
  })
15210
15451
  });
15211
- textarea_default = config35;
15452
+ textarea_default = config36;
15212
15453
  }
15213
15454
  });
15214
- var config36, toast_default;
15455
+ var config37, toast_default;
15215
15456
  var init_toast = __esm({
15216
15457
  "src/theme/components/toast.ts"() {
15217
- config36 = react.defineStyleConfig({
15458
+ config37 = react.defineStyleConfig({
15218
15459
  baseStyle: {
15219
15460
  display: "flex",
15220
15461
  alignItems: "center",
@@ -15238,7 +15479,7 @@ var init_toast = __esm({
15238
15479
  }
15239
15480
  }
15240
15481
  });
15241
- toast_default = config36;
15482
+ toast_default = config37;
15242
15483
  }
15243
15484
  });
15244
15485
 
@@ -15272,6 +15513,7 @@ __export(components_exports, {
15272
15513
  MediaControllerButton: () => media_controller_button_default,
15273
15514
  Modal: () => modal_default,
15274
15515
  Popover: () => popover_default,
15516
+ ProgressIndicator: () => progress_indicator_default,
15275
15517
  Radio: () => radio_default,
15276
15518
  Select: () => select_default,
15277
15519
  Skeleton: () => skeleton_default,
@@ -15312,6 +15554,7 @@ var init_components = __esm({
15312
15554
  init_media_controller_button();
15313
15555
  init_modal2();
15314
15556
  init_popover2();
15557
+ init_progress_indicator2();
15315
15558
  init_radio();
15316
15559
  init_select();
15317
15560
  init_skeleton();
@@ -15394,13 +15637,18 @@ var init_font_faces = __esm({
15394
15637
  });
15395
15638
 
15396
15639
  // src/theme/index.ts
15397
- exports.theme = void 0;
15640
+ exports.Brand = void 0; exports.theme = void 0; exports.brandTheme = void 0;
15398
15641
  var init_theme = __esm({
15399
15642
  "src/theme/index.ts"() {
15400
15643
  init_dist5();
15401
15644
  init_components();
15402
15645
  init_foundations();
15403
15646
  init_font_faces();
15647
+ exports.Brand = /* @__PURE__ */ ((Brand2) => {
15648
+ Brand2["VyDigital"] = "VyDigital";
15649
+ Brand2["VyUtvikling"] = "VyUtvikling";
15650
+ return Brand2;
15651
+ })(exports.Brand || {});
15404
15652
  exports.theme = {
15405
15653
  ...theme2,
15406
15654
  ...foundations_exports,
@@ -15409,9 +15657,21 @@ var init_theme = __esm({
15409
15657
  ...components_exports
15410
15658
  }
15411
15659
  };
15660
+ exports.brandTheme = {
15661
+ ["VyDigital" /* VyDigital */]: {
15662
+ colors: {
15663
+ accent: colors.night
15664
+ }
15665
+ },
15666
+ ["VyUtvikling" /* VyUtvikling */]: {
15667
+ colors: {
15668
+ accent: colors.darkGrey
15669
+ }
15670
+ }
15671
+ };
15412
15672
  }
15413
15673
  });
15414
- var BaseToast, ToastIcon, getIcon3, texts23;
15674
+ var BaseToast, ToastIcon, getIcon3, texts24;
15415
15675
  var init_BaseToast = __esm({
15416
15676
  "src/toast/BaseToast.tsx"() {
15417
15677
  init_src();
@@ -15426,7 +15686,7 @@ var init_BaseToast = __esm({
15426
15686
  Icon,
15427
15687
  {
15428
15688
  flexShrink: 0,
15429
- "aria-label": t2(texts23[variant]),
15689
+ "aria-label": t2(texts24[variant]),
15430
15690
  marginRight: 1,
15431
15691
  marginY: 1.5,
15432
15692
  color: "darkGrey"
@@ -15443,7 +15703,7 @@ var init_BaseToast = __esm({
15443
15703
  return sporIconReact.ErrorOutline24Icon;
15444
15704
  }
15445
15705
  };
15446
- texts23 = createTexts({
15706
+ texts24 = createTexts({
15447
15707
  info: {
15448
15708
  nb: "Informasjon",
15449
15709
  nn: "Informasjon",
@@ -15481,7 +15741,7 @@ var init_ActionToast = __esm({
15481
15741
  };
15482
15742
  }
15483
15743
  });
15484
- var ClosableToast, texts24;
15744
+ var ClosableToast, texts25;
15485
15745
  var init_ClosableToast = __esm({
15486
15746
  "src/toast/ClosableToast.tsx"() {
15487
15747
  init_src();
@@ -15499,13 +15759,13 @@ var init_ClosableToast = __esm({
15499
15759
  {
15500
15760
  sx: styles3.dismissButton,
15501
15761
  variant: "ghost",
15502
- "aria-label": t2(texts24.dismiss),
15762
+ "aria-label": t2(texts25.dismiss),
15503
15763
  icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.CloseFill18Icon, null),
15504
15764
  onClick: onClose
15505
15765
  }
15506
15766
  ));
15507
15767
  };
15508
- texts24 = createTexts({
15768
+ texts25 = createTexts({
15509
15769
  dismiss: {
15510
15770
  nb: "Lukk",
15511
15771
  nn: "Lukk",
@@ -15717,6 +15977,7 @@ var init_src = __esm({
15717
15977
  init_media_controller();
15718
15978
  init_modal();
15719
15979
  init_popover();
15980
+ init_progress_indicator();
15720
15981
  init_provider();
15721
15982
  init_stepper();
15722
15983
  init_tab();