@vygruppen/spor-react 5.2.0 → 5.3.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({
@@ -3457,6 +3461,7 @@ function InfoSelect({
3457
3461
  value,
3458
3462
  isLabelSrOnly,
3459
3463
  defaultValue,
3464
+ variant = "base",
3460
3465
  ...props
3461
3466
  }) {
3462
3467
  const renamedProps = {
@@ -3473,9 +3478,12 @@ function InfoSelect({
3473
3478
  state2,
3474
3479
  triggerRef
3475
3480
  );
3481
+ const stateStyle = "completed";
3476
3482
  const styles3 = react.useMultiStyleConfig("InfoSelect", {
3477
3483
  isOpen: state2.isOpen,
3478
- isLabelSrOnly
3484
+ isLabelSrOnly,
3485
+ variant,
3486
+ stateStyle
3479
3487
  });
3480
3488
  const { buttonProps } = reactAria.useButton(triggerProps, triggerRef);
3481
3489
  const { t: t2 } = useTranslation();
@@ -4992,6 +5000,68 @@ var init_popover = __esm({
4992
5000
  init_WizardPopover();
4993
5001
  }
4994
5002
  });
5003
+ var ProgressDot;
5004
+ var init_ProgressDot = __esm({
5005
+ "src/progress-indicator/ProgressDot.tsx"() {
5006
+ init_src();
5007
+ ProgressDot = ({ isActive }) => {
5008
+ const style = react.useMultiStyleConfig("ProgressIndicator");
5009
+ return /* @__PURE__ */ React69__namespace.default.createElement(
5010
+ react.Box,
5011
+ {
5012
+ as: "svg",
5013
+ display: "block",
5014
+ __css: style.progressDot,
5015
+ xmlns: "http://www.w3.org/2000/svg",
5016
+ viewBox: "0 0 100 100",
5017
+ "aria-current": isActive ? "step" : void 0
5018
+ },
5019
+ /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "circle", cx: "50", cy: "50", r: "50" })
5020
+ );
5021
+ };
5022
+ }
5023
+ });
5024
+ exports.ProgressIndicator = void 0; var texts22;
5025
+ var init_ProgressIndicator = __esm({
5026
+ "src/progress-indicator/ProgressIndicator.tsx"() {
5027
+ init_src();
5028
+ init_ProgressDot();
5029
+ exports.ProgressIndicator = ({
5030
+ numberOfSteps,
5031
+ activeStep
5032
+ }) => {
5033
+ const { t: t2 } = useTranslation();
5034
+ const style = react.useMultiStyleConfig("ProgressIndicator");
5035
+ return /* @__PURE__ */ React69__namespace.default.createElement(
5036
+ react.Box,
5037
+ {
5038
+ __css: style.root,
5039
+ role: "progressbar",
5040
+ "aria-valuemin": 1,
5041
+ "aria-valuemax": numberOfSteps,
5042
+ "aria-valuenow": activeStep,
5043
+ "aria-valuetext": t2(texts22.stepsOf(activeStep, numberOfSteps))
5044
+ },
5045
+ /* @__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 })))
5046
+ );
5047
+ };
5048
+ texts22 = createTexts({
5049
+ stepsOf: (activeStep, numberOfSteps) => ({
5050
+ nb: `Steg ${activeStep} av ${numberOfSteps}`,
5051
+ nn: `Steg ${activeStep} av ${numberOfSteps}`,
5052
+ sv: `Steg ${activeStep} av ${numberOfSteps}`,
5053
+ en: `Step ${activeStep} of ${numberOfSteps}`
5054
+ })
5055
+ });
5056
+ }
5057
+ });
5058
+
5059
+ // src/progress-indicator/index.tsx
5060
+ var init_progress_indicator = __esm({
5061
+ "src/progress-indicator/index.tsx"() {
5062
+ init_ProgressIndicator();
5063
+ }
5064
+ });
4995
5065
  exports.SporProvider = void 0;
4996
5066
  var init_SporProvider = __esm({
4997
5067
  "src/provider/SporProvider.tsx"() {
@@ -5000,10 +5070,13 @@ var init_SporProvider = __esm({
5000
5070
  exports.SporProvider = ({
5001
5071
  theme: theme3 = exports.theme,
5002
5072
  language = "nb" /* NorwegianBokmal */,
5073
+ brand = "VyDigital" /* VyDigital */,
5003
5074
  children,
5004
5075
  ...props
5005
5076
  }) => {
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));
5077
+ const brandCustomizations = exports.brandTheme[brand] ?? {};
5078
+ const extendedTheme = deepmerge__default.default(theme3, brandCustomizations);
5079
+ 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
5080
  };
5008
5081
  }
5009
5082
  });
@@ -5044,7 +5117,7 @@ var init_StepperContext = __esm({
5044
5117
  };
5045
5118
  }
5046
5119
  });
5047
- exports.Stepper = void 0; var texts22;
5120
+ exports.Stepper = void 0; var texts23;
5048
5121
  var init_Stepper = __esm({
5049
5122
  "src/stepper/Stepper.tsx"() {
5050
5123
  init_stepper();
@@ -5073,7 +5146,7 @@ var init_Stepper = __esm({
5073
5146
  /* @__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
5147
  exports.IconButton,
5075
5148
  {
5076
- "aria-label": t2(texts22.back),
5149
+ "aria-label": t2(texts23.back),
5077
5150
  icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.DropdownLeftFill24Icon, null),
5078
5151
  variant: "ghost",
5079
5152
  size: "sm",
@@ -5083,7 +5156,7 @@ var init_Stepper = __esm({
5083
5156
  ), /* @__PURE__ */ React69__namespace.default.createElement(
5084
5157
  exports.SimplePopover,
5085
5158
  {
5086
- triggerElement: /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "button", __css: style.stepCounter }, t2(texts22.stepsOf(activeStep, numberOfSteps))),
5159
+ triggerElement: /* @__PURE__ */ React69__namespace.default.createElement(react.Box, { as: "button", __css: style.stepCounter }, t2(texts23.stepsOf(activeStep, numberOfSteps))),
5087
5160
  borderRadius: "xs"
5088
5161
  },
5089
5162
  steps.map((step, index) => /* @__PURE__ */ React69__namespace.default.createElement(
@@ -5098,7 +5171,7 @@ var init_Stepper = __esm({
5098
5171
  )), 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
5172
  ));
5100
5173
  };
5101
- texts22 = createTexts({
5174
+ texts23 = createTexts({
5102
5175
  stepsOf: (activeStep, numberOfSteps) => ({
5103
5176
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
5104
5177
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -5958,16 +6031,16 @@ function defineCssVars(scope, keys2) {
5958
6031
  function defineStyle(styles3) {
5959
6032
  return styles3;
5960
6033
  }
5961
- function defineStyleConfig(config37) {
5962
- return config37;
6034
+ function defineStyleConfig(config38) {
6035
+ return config38;
5963
6036
  }
5964
- function createMultiStyleConfigHelpers(parts14) {
6037
+ function createMultiStyleConfigHelpers(parts15) {
5965
6038
  return {
5966
- definePartsStyle(config37) {
5967
- return config37;
6039
+ definePartsStyle(config38) {
6040
+ return config38;
5968
6041
  },
5969
- defineMultiStyleConfig(config37) {
5970
- return { parts: parts14, ...config37 };
6042
+ defineMultiStyleConfig(config38) {
6043
+ return { parts: parts15, ...config38 };
5971
6044
  }
5972
6045
  };
5973
6046
  }
@@ -7290,7 +7363,7 @@ function anatomy(name, map = {}) {
7290
7363
  "[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
7291
7364
  );
7292
7365
  }
7293
- function parts14(...values) {
7366
+ function parts15(...values) {
7294
7367
  assert();
7295
7368
  for (const part of values) {
7296
7369
  map[part] = toPart(part);
@@ -7330,7 +7403,7 @@ function anatomy(name, map = {}) {
7330
7403
  }
7331
7404
  const __type = {};
7332
7405
  return {
7333
- parts: parts14,
7406
+ parts: parts15,
7334
7407
  toPart,
7335
7408
  extend,
7336
7409
  selectors,
@@ -13049,6 +13122,32 @@ function baseBorder(state2, props) {
13049
13122
  };
13050
13123
  }
13051
13124
  }
13125
+ function floatingBorder(state2, props) {
13126
+ switch (state2) {
13127
+ case "hover":
13128
+ return {
13129
+ boxShadow: getBoxShadowString({
13130
+ borderColor: themeTools.mode("grey.300", "white")(props)
13131
+ })
13132
+ };
13133
+ case "selected":
13134
+ case "focus":
13135
+ return {
13136
+ boxShadow: getBoxShadowString({
13137
+ borderColor: themeTools.mode("greenHaze", "azure")(props),
13138
+ borderWidth: 2
13139
+ })
13140
+ };
13141
+ case "active":
13142
+ case "default":
13143
+ default:
13144
+ return {
13145
+ boxShadow: getBoxShadowString({
13146
+ borderColor: themeTools.mode("grey.200", "whiteAlpha.400")(props)
13147
+ })
13148
+ };
13149
+ }
13150
+ }
13052
13151
  var init_border_utils = __esm({
13053
13152
  "src/theme/utils/border-utils.ts"() {
13054
13153
  init_box_shadow_utils();
@@ -13069,11 +13168,78 @@ function baseBackground(state2, props) {
13069
13168
  backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
13070
13169
  };
13071
13170
  default:
13072
- return {};
13171
+ return {
13172
+ backgroundColor: "transparent"
13173
+ };
13174
+ }
13175
+ }
13176
+ function ghostBackground(state2, props) {
13177
+ switch (state2) {
13178
+ case "hover": {
13179
+ return {
13180
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.100")(props)
13181
+ };
13182
+ }
13183
+ case "active":
13184
+ return {
13185
+ backgroundColor: themeTools.mode("seaMist", "whiteAlpha.200")(props)
13186
+ };
13187
+ case "focus":
13188
+ return {
13189
+ backgroundColor: "transparent"
13190
+ };
13191
+ case "selected": {
13192
+ return {
13193
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.200")(props)
13194
+ };
13195
+ }
13196
+ case "default":
13197
+ default:
13198
+ return {
13199
+ backgroundColor: "transparent"
13200
+ };
13201
+ }
13202
+ }
13203
+ function floatingBackground(state2, props) {
13204
+ switch (state2) {
13205
+ case "selected":
13206
+ return {
13207
+ backgroundColor: themeTools.mode("mint", "pine")(props)
13208
+ };
13209
+ case "active":
13210
+ return {
13211
+ backgroundColor: themeTools.mode(
13212
+ "mint",
13213
+ `color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 30%)`
13214
+ )(props)
13215
+ };
13216
+ case "hover":
13217
+ return {
13218
+ backgroundColor: themeTools.mode(
13219
+ "white",
13220
+ `color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 20%)`
13221
+ )(props)
13222
+ };
13223
+ case "focus":
13224
+ return {
13225
+ backgroundColor: themeTools.mode(
13226
+ "white",
13227
+ `color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 40%)`
13228
+ )(props)
13229
+ };
13230
+ case "default":
13231
+ default:
13232
+ return {
13233
+ backgroundColor: themeTools.mode(
13234
+ "white",
13235
+ `color-mix(in srgb, ${props.theme.darkBackgroundColor ?? colors.darkGrey}, ${colors.white} 10%)`
13236
+ )(props)
13237
+ };
13073
13238
  }
13074
13239
  }
13075
13240
  var init_background_utils = __esm({
13076
13241
  "src/theme/utils/background-utils.ts"() {
13242
+ init_foundations();
13077
13243
  }
13078
13244
  });
13079
13245
  var parts6, helpers10, config18, info_select_default;
@@ -13132,7 +13298,6 @@ var init_info_select = __esm({
13132
13298
  ...baseBorder("focus", props)
13133
13299
  },
13134
13300
  _expanded: {
13135
- ...baseBackground("active", props),
13136
13301
  ...baseBorder("focus", props)
13137
13302
  },
13138
13303
  _invalid: {
@@ -13151,7 +13316,36 @@ var init_info_select = __esm({
13151
13316
  }
13152
13317
  },
13153
13318
  arrowIcon: {}
13154
- })
13319
+ }),
13320
+ variants: {
13321
+ base: (props) => ({}),
13322
+ floating: (props) => ({
13323
+ button: {
13324
+ ...floatingBackground("default", props),
13325
+ ...floatingBorder("default", props),
13326
+ _hover: {
13327
+ ...floatingBorder("hover", props),
13328
+ ...floatingBackground("hover", props)
13329
+ },
13330
+ ...focusVisible({
13331
+ focus: {
13332
+ ...floatingBorder("focus", props),
13333
+ outline: "none"
13334
+ },
13335
+ notFocus: {
13336
+ ...floatingBorder("default", props)
13337
+ }
13338
+ }),
13339
+ _active: {
13340
+ ...floatingBorder("active", props),
13341
+ ...floatingBackground("active", props)
13342
+ }
13343
+ }
13344
+ })
13345
+ },
13346
+ defaultProps: {
13347
+ variant: "base"
13348
+ }
13155
13349
  });
13156
13350
  info_select_default = config18;
13157
13351
  }
@@ -13851,7 +14045,7 @@ var init_listbox = __esm({
13851
14045
  // avoiding extra div by blending a transparent color into darkGrey for dark mode
13852
14046
  backgroundColor: themeTools.mode(
13853
14047
  "white",
13854
- `color-mix(in srgb, ${colors.darkGrey}, ${colors.white} 10%)`
14048
+ `color-mix(in srgb, ${props.theme.colors.accent}, ${colors.white} 10%)`
13855
14049
  )(props),
13856
14050
  boxShadow: "sm",
13857
14051
  overflowY: "auto",
@@ -13868,21 +14062,18 @@ var init_listbox = __esm({
13868
14062
  borderRadius: "sm",
13869
14063
  color: themeTools.mode("darkGrey", "white")(props),
13870
14064
  cursor: "pointer",
13871
- _hover: {
13872
- backgroundColor: themeTools.mode("seaMist", "pine")(props),
13873
- outline: "none"
13874
- },
14065
+ outline: "none",
13875
14066
  _active: {
13876
- backgroundColor: themeTools.mode("mint", "pine")(props),
13877
- outline: "none"
14067
+ ...ghostBackground("active", props)
13878
14068
  },
13879
14069
  _focus: {
13880
- outline: "none",
13881
- backgroundColor: themeTools.mode("seaMist", "pine")(props)
14070
+ ...ghostBackground("focus", props)
14071
+ },
14072
+ _hover: {
14073
+ ...ghostBackground("hover", props)
13882
14074
  },
13883
14075
  _selected: {
13884
- ...baseBackground("selected", props),
13885
- color: "white"
14076
+ ...ghostBackground("selected", props)
13886
14077
  }
13887
14078
  },
13888
14079
  label: {},
@@ -14194,12 +14385,55 @@ var init_popover2 = __esm({
14194
14385
  popover_default = config27;
14195
14386
  }
14196
14387
  });
14197
- var helpers19, config28, radio_default;
14388
+ var parts12, helpers19, config28, progress_indicator_default;
14389
+ var init_progress_indicator2 = __esm({
14390
+ "src/theme/components/progress-indicator.ts"() {
14391
+ parts12 = themeTools.anatomy("progress-indicator").parts(
14392
+ "root",
14393
+ "container",
14394
+ "progressDot"
14395
+ );
14396
+ helpers19 = react.createMultiStyleConfigHelpers(parts12.keys);
14397
+ config28 = helpers19.defineMultiStyleConfig({
14398
+ baseStyle: (props) => ({
14399
+ root: {
14400
+ width: "100%"
14401
+ },
14402
+ container: {
14403
+ display: "flex",
14404
+ alignItems: "center",
14405
+ gap: 1,
14406
+ justifyContent: ["space-between", "center"]
14407
+ },
14408
+ progressDot: {
14409
+ height: 1,
14410
+ width: 1,
14411
+ "&[aria-current='step']": {
14412
+ circle: {
14413
+ fill: themeTools.mode("pine", "coralGreen")(props)
14414
+ }
14415
+ },
14416
+ circle: {
14417
+ fill: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14418
+ }
14419
+ }
14420
+ }),
14421
+ variants: {
14422
+ base: (props) => ({})
14423
+ },
14424
+ defaultProps: {
14425
+ variant: "base"
14426
+ }
14427
+ });
14428
+ progress_indicator_default = config28;
14429
+ }
14430
+ });
14431
+ var helpers20, config29, radio_default;
14198
14432
  var init_radio = __esm({
14199
14433
  "src/theme/components/radio.ts"() {
14200
14434
  init_dist4();
14201
- helpers19 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
14202
- config28 = helpers19.defineMultiStyleConfig({
14435
+ helpers20 = react.createMultiStyleConfigHelpers(radioAnatomy.keys);
14436
+ config29 = helpers20.defineMultiStyleConfig({
14203
14437
  baseStyle: {
14204
14438
  container: {
14205
14439
  _hover: {
@@ -14255,17 +14489,17 @@ var init_radio = __esm({
14255
14489
  }
14256
14490
  }
14257
14491
  });
14258
- radio_default = config28;
14492
+ radio_default = config29;
14259
14493
  }
14260
14494
  });
14261
- var parts12, helpers20, config29, select_default;
14495
+ var parts13, helpers21, config30, select_default;
14262
14496
  var init_select = __esm({
14263
14497
  "src/theme/components/select.ts"() {
14264
14498
  init_dist4();
14265
14499
  init_input2();
14266
- parts12 = selectAnatomy.extend("root");
14267
- helpers20 = react.createMultiStyleConfigHelpers(parts12.keys);
14268
- config29 = helpers20.defineMultiStyleConfig({
14500
+ parts13 = selectAnatomy.extend("root");
14501
+ helpers21 = react.createMultiStyleConfigHelpers(parts13.keys);
14502
+ config30 = helpers21.defineMultiStyleConfig({
14269
14503
  baseStyle: (props) => ({
14270
14504
  root: {
14271
14505
  width: "100%",
@@ -14307,7 +14541,7 @@ var init_select = __esm({
14307
14541
  }
14308
14542
  })
14309
14543
  });
14310
- select_default = config29;
14544
+ select_default = config30;
14311
14545
  }
14312
14546
  });
14313
14547
 
@@ -14323,7 +14557,7 @@ var init_dist7 = __esm({
14323
14557
  init_dist3();
14324
14558
  }
14325
14559
  });
14326
- var fade, $startColor2, $endColor2, config30, skeleton_default;
14560
+ var fade, $startColor2, $endColor2, config31, skeleton_default;
14327
14561
  var init_skeleton = __esm({
14328
14562
  "src/theme/components/skeleton.ts"() {
14329
14563
  init_dist7();
@@ -14333,7 +14567,7 @@ var init_skeleton = __esm({
14333
14567
  });
14334
14568
  $startColor2 = themeTools.cssVar("skeleton-start-color");
14335
14569
  $endColor2 = themeTools.cssVar("skeleton-end-color");
14336
- config30 = react.defineStyleConfig({
14570
+ config31 = react.defineStyleConfig({
14337
14571
  baseStyle: (props) => {
14338
14572
  const defaultStartColor = themeTools.mode("blackAlpha.300", "whiteAlpha.300")(props);
14339
14573
  const defaultEndColor = themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props);
@@ -14356,13 +14590,13 @@ var init_skeleton = __esm({
14356
14590
  };
14357
14591
  }
14358
14592
  });
14359
- skeleton_default = config30;
14593
+ skeleton_default = config31;
14360
14594
  }
14361
14595
  });
14362
- var parts13, helpers21, config31, stepper_default;
14596
+ var parts14, helpers22, config32, stepper_default;
14363
14597
  var init_stepper2 = __esm({
14364
14598
  "src/theme/components/stepper.ts"() {
14365
- parts13 = themeTools.anatomy("stepper").parts(
14599
+ parts14 = themeTools.anatomy("stepper").parts(
14366
14600
  "root",
14367
14601
  "container",
14368
14602
  "innerContainer",
@@ -14375,8 +14609,8 @@ var init_stepper2 = __esm({
14375
14609
  "stepTitle",
14376
14610
  "closeButton"
14377
14611
  );
14378
- helpers21 = react.createMultiStyleConfigHelpers(parts13.keys);
14379
- config31 = helpers21.defineMultiStyleConfig({
14612
+ helpers22 = react.createMultiStyleConfigHelpers(parts14.keys);
14613
+ config32 = helpers22.defineMultiStyleConfig({
14380
14614
  baseStyle: (props) => ({
14381
14615
  root: {
14382
14616
  display: "flex",
@@ -14438,10 +14672,10 @@ var init_stepper2 = __esm({
14438
14672
  variant: "base"
14439
14673
  }
14440
14674
  });
14441
- stepper_default = config31;
14675
+ stepper_default = config32;
14442
14676
  }
14443
14677
  });
14444
- var $width2, $height3, $diff2, diffValue2, $translateX2, helpers22, config32, switch_default;
14678
+ var $width2, $height3, $diff2, diffValue2, $translateX2, helpers23, config33, switch_default;
14445
14679
  var init_switch = __esm({
14446
14680
  "src/theme/components/switch.ts"() {
14447
14681
  init_dist4();
@@ -14453,8 +14687,8 @@ var init_switch = __esm({
14453
14687
  $diff2 = themeTools.cssVar("switch-track-diff");
14454
14688
  diffValue2 = themeTools.calc.subtract($width2, $height3);
14455
14689
  $translateX2 = themeTools.cssVar("switch-thumb-x");
14456
- helpers22 = react.createMultiStyleConfigHelpers(switchAnatomy.keys);
14457
- config32 = helpers22.defineMultiStyleConfig({
14690
+ helpers23 = react.createMultiStyleConfigHelpers(switchAnatomy.keys);
14691
+ config33 = helpers23.defineMultiStyleConfig({
14458
14692
  baseStyle: {
14459
14693
  container: {
14460
14694
  [$diff2.variable]: diffValue2,
@@ -14660,21 +14894,21 @@ var init_switch = __esm({
14660
14894
  size: "md"
14661
14895
  }
14662
14896
  });
14663
- switch_default = config32;
14897
+ switch_default = config33;
14664
14898
  }
14665
14899
  });
14666
- var helpers23, numericStyles2, config33, table_default;
14900
+ var helpers24, numericStyles2, config34, table_default;
14667
14901
  var init_table2 = __esm({
14668
14902
  "src/theme/components/table.ts"() {
14669
14903
  init_dist4();
14670
14904
  init_box_shadow_utils();
14671
- helpers23 = react.createMultiStyleConfigHelpers(tableAnatomy.keys);
14905
+ helpers24 = react.createMultiStyleConfigHelpers(tableAnatomy.keys);
14672
14906
  numericStyles2 = {
14673
14907
  "&[data-is-numeric=true]": {
14674
14908
  textAlign: "end"
14675
14909
  }
14676
14910
  };
14677
- config33 = helpers23.defineMultiStyleConfig({
14911
+ config34 = helpers24.defineMultiStyleConfig({
14678
14912
  baseStyle: {
14679
14913
  table: {
14680
14914
  borderCollapse: "collapse",
@@ -14822,15 +15056,15 @@ var init_table2 = __esm({
14822
15056
  colorScheme: "grey"
14823
15057
  }
14824
15058
  });
14825
- table_default = config33;
15059
+ table_default = config34;
14826
15060
  }
14827
15061
  });
14828
- var helpers24, config34, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeFocusProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
15062
+ var helpers25, config35, tabs_default, getTabColorSchemeProps, getTabColorSchemeSelectedProps, getTabColorSchemeFocusProps, getTabColorSchemeHoverProps, getTabColorSchemeActiveProps, getTabColorSchemeDisabledProps, getTablistColorSchemeProps;
14829
15063
  var init_tabs = __esm({
14830
15064
  "src/theme/components/tabs.ts"() {
14831
15065
  init_dist4();
14832
- helpers24 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
14833
- config34 = helpers24.defineMultiStyleConfig({
15066
+ helpers25 = react.createMultiStyleConfigHelpers(tabsAnatomy.keys);
15067
+ config35 = helpers25.defineMultiStyleConfig({
14834
15068
  baseStyle: (props) => ({
14835
15069
  root: {
14836
15070
  display: "flex",
@@ -14933,7 +15167,7 @@ var init_tabs = __esm({
14933
15167
  variant: "round"
14934
15168
  }
14935
15169
  });
14936
- tabs_default = config34;
15170
+ tabs_default = config35;
14937
15171
  getTabColorSchemeProps = (props) => {
14938
15172
  switch (props.colorScheme) {
14939
15173
  case "dark":
@@ -15187,11 +15421,11 @@ var init_tabs = __esm({
15187
15421
  };
15188
15422
  }
15189
15423
  });
15190
- var config35, textarea_default;
15424
+ var config36, textarea_default;
15191
15425
  var init_textarea = __esm({
15192
15426
  "src/theme/components/textarea.ts"() {
15193
15427
  init_input2();
15194
- config35 = react.defineStyleConfig({
15428
+ config36 = react.defineStyleConfig({
15195
15429
  baseStyle: (props) => ({
15196
15430
  ...input_default.baseStyle(props).field,
15197
15431
  minHeight: "5rem",
@@ -15208,13 +15442,13 @@ var init_textarea = __esm({
15208
15442
  }
15209
15443
  })
15210
15444
  });
15211
- textarea_default = config35;
15445
+ textarea_default = config36;
15212
15446
  }
15213
15447
  });
15214
- var config36, toast_default;
15448
+ var config37, toast_default;
15215
15449
  var init_toast = __esm({
15216
15450
  "src/theme/components/toast.ts"() {
15217
- config36 = react.defineStyleConfig({
15451
+ config37 = react.defineStyleConfig({
15218
15452
  baseStyle: {
15219
15453
  display: "flex",
15220
15454
  alignItems: "center",
@@ -15238,7 +15472,7 @@ var init_toast = __esm({
15238
15472
  }
15239
15473
  }
15240
15474
  });
15241
- toast_default = config36;
15475
+ toast_default = config37;
15242
15476
  }
15243
15477
  });
15244
15478
 
@@ -15272,6 +15506,7 @@ __export(components_exports, {
15272
15506
  MediaControllerButton: () => media_controller_button_default,
15273
15507
  Modal: () => modal_default,
15274
15508
  Popover: () => popover_default,
15509
+ ProgressIndicator: () => progress_indicator_default,
15275
15510
  Radio: () => radio_default,
15276
15511
  Select: () => select_default,
15277
15512
  Skeleton: () => skeleton_default,
@@ -15312,6 +15547,7 @@ var init_components = __esm({
15312
15547
  init_media_controller_button();
15313
15548
  init_modal2();
15314
15549
  init_popover2();
15550
+ init_progress_indicator2();
15315
15551
  init_radio();
15316
15552
  init_select();
15317
15553
  init_skeleton();
@@ -15394,13 +15630,18 @@ var init_font_faces = __esm({
15394
15630
  });
15395
15631
 
15396
15632
  // src/theme/index.ts
15397
- exports.theme = void 0;
15633
+ exports.Brand = void 0; exports.theme = void 0; exports.brandTheme = void 0;
15398
15634
  var init_theme = __esm({
15399
15635
  "src/theme/index.ts"() {
15400
15636
  init_dist5();
15401
15637
  init_components();
15402
15638
  init_foundations();
15403
15639
  init_font_faces();
15640
+ exports.Brand = /* @__PURE__ */ ((Brand2) => {
15641
+ Brand2["VyDigital"] = "VyDigital";
15642
+ Brand2["VyUtvikling"] = "VyUtvikling";
15643
+ return Brand2;
15644
+ })(exports.Brand || {});
15404
15645
  exports.theme = {
15405
15646
  ...theme2,
15406
15647
  ...foundations_exports,
@@ -15409,9 +15650,21 @@ var init_theme = __esm({
15409
15650
  ...components_exports
15410
15651
  }
15411
15652
  };
15653
+ exports.brandTheme = {
15654
+ ["VyDigital" /* VyDigital */]: {
15655
+ colors: {
15656
+ accent: colors.night
15657
+ }
15658
+ },
15659
+ ["VyUtvikling" /* VyUtvikling */]: {
15660
+ colors: {
15661
+ accent: colors.darkGrey
15662
+ }
15663
+ }
15664
+ };
15412
15665
  }
15413
15666
  });
15414
- var BaseToast, ToastIcon, getIcon3, texts23;
15667
+ var BaseToast, ToastIcon, getIcon3, texts24;
15415
15668
  var init_BaseToast = __esm({
15416
15669
  "src/toast/BaseToast.tsx"() {
15417
15670
  init_src();
@@ -15426,7 +15679,7 @@ var init_BaseToast = __esm({
15426
15679
  Icon,
15427
15680
  {
15428
15681
  flexShrink: 0,
15429
- "aria-label": t2(texts23[variant]),
15682
+ "aria-label": t2(texts24[variant]),
15430
15683
  marginRight: 1,
15431
15684
  marginY: 1.5,
15432
15685
  color: "darkGrey"
@@ -15443,7 +15696,7 @@ var init_BaseToast = __esm({
15443
15696
  return sporIconReact.ErrorOutline24Icon;
15444
15697
  }
15445
15698
  };
15446
- texts23 = createTexts({
15699
+ texts24 = createTexts({
15447
15700
  info: {
15448
15701
  nb: "Informasjon",
15449
15702
  nn: "Informasjon",
@@ -15481,7 +15734,7 @@ var init_ActionToast = __esm({
15481
15734
  };
15482
15735
  }
15483
15736
  });
15484
- var ClosableToast, texts24;
15737
+ var ClosableToast, texts25;
15485
15738
  var init_ClosableToast = __esm({
15486
15739
  "src/toast/ClosableToast.tsx"() {
15487
15740
  init_src();
@@ -15499,13 +15752,13 @@ var init_ClosableToast = __esm({
15499
15752
  {
15500
15753
  sx: styles3.dismissButton,
15501
15754
  variant: "ghost",
15502
- "aria-label": t2(texts24.dismiss),
15755
+ "aria-label": t2(texts25.dismiss),
15503
15756
  icon: /* @__PURE__ */ React69__namespace.default.createElement(sporIconReact.CloseFill18Icon, null),
15504
15757
  onClick: onClose
15505
15758
  }
15506
15759
  ));
15507
15760
  };
15508
- texts24 = createTexts({
15761
+ texts25 = createTexts({
15509
15762
  dismiss: {
15510
15763
  nb: "Lukk",
15511
15764
  nn: "Lukk",
@@ -15717,6 +15970,7 @@ var init_src = __esm({
15717
15970
  init_media_controller();
15718
15971
  init_modal();
15719
15972
  init_popover();
15973
+ init_progress_indicator();
15720
15974
  init_provider();
15721
15975
  init_stepper();
15722
15976
  init_tab();