@vygruppen/spor-react 12.9.0 → 12.10.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.d.cts CHANGED
@@ -2995,8 +2995,18 @@ declare const ProgressIndicator: React__default.ForwardRefExoticComponent<BoxPro
2995
2995
  } & React__default.RefAttributes<HTMLDivElement>>;
2996
2996
 
2997
2997
  type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
2998
+ /**
2999
+ * The current language of your application. Used for built-in microcopy and labels. Default is Norwegian (bokmål).
3000
+ */
2998
3001
  language?: Language;
3002
+ /**
3003
+ * The theme to use for colors and design tokens. If not provided, the default Spor theme is used.
3004
+ */
2999
3005
  theme?: SystemContext;
3006
+ /**
3007
+ * If true, enables system color mode. If false, the default theme is light.
3008
+ */
3009
+ enableSystemColorMode?: boolean;
3000
3010
  };
3001
3011
  /**
3002
3012
  * This component is used to provide the specified theme of colors and other
@@ -3035,7 +3045,7 @@ import { theme } from '../../../../apps/docs/app/features/portable-text/code-blo
3035
3045
  * );
3036
3046
  * ```
3037
3047
  */
3038
- declare const SporProvider: ({ language, theme, children, }: SporProviderProps) => react_jsx_runtime.JSX.Element;
3048
+ declare const SporProvider: ({ language, theme, enableSystemColorMode, children, }: SporProviderProps) => react_jsx_runtime.JSX.Element;
3039
3049
 
3040
3050
  declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "title" | "closeButton" | "container" | "innerContainer" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle" | "backButton", {
3041
3051
  variant: {
package/dist/index.d.ts CHANGED
@@ -2995,8 +2995,18 @@ declare const ProgressIndicator: React__default.ForwardRefExoticComponent<BoxPro
2995
2995
  } & React__default.RefAttributes<HTMLDivElement>>;
2996
2996
 
2997
2997
  type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
2998
+ /**
2999
+ * The current language of your application. Used for built-in microcopy and labels. Default is Norwegian (bokmål).
3000
+ */
2998
3001
  language?: Language;
3002
+ /**
3003
+ * The theme to use for colors and design tokens. If not provided, the default Spor theme is used.
3004
+ */
2999
3005
  theme?: SystemContext;
3006
+ /**
3007
+ * If true, enables system color mode. If false, the default theme is light.
3008
+ */
3009
+ enableSystemColorMode?: boolean;
3000
3010
  };
3001
3011
  /**
3002
3012
  * This component is used to provide the specified theme of colors and other
@@ -3035,7 +3045,7 @@ import { theme } from '../../../../apps/docs/app/features/portable-text/code-blo
3035
3045
  * );
3036
3046
  * ```
3037
3047
  */
3038
- declare const SporProvider: ({ language, theme, children, }: SporProviderProps) => react_jsx_runtime.JSX.Element;
3048
+ declare const SporProvider: ({ language, theme, enableSystemColorMode, children, }: SporProviderProps) => react_jsx_runtime.JSX.Element;
3039
3049
 
3040
3050
  declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "title" | "closeButton" | "container" | "innerContainer" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle" | "backButton", {
3041
3051
  variant: {
package/dist/index.mjs CHANGED
@@ -5114,9 +5114,10 @@ var texts25 = createTexts({
5114
5114
  var SporProvider = ({
5115
5115
  language = "nb" /* NorwegianBokmal */,
5116
5116
  theme = system,
5117
+ enableSystemColorMode = true,
5117
5118
  children
5118
5119
  }) => {
5119
- return /* @__PURE__ */ jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsx(ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxs(ColorModeProvider, { children: [
5120
+ return /* @__PURE__ */ jsx(LanguageProvider, { language, children: /* @__PURE__ */ jsx(ChakraProvider, { value: theme, children: /* @__PURE__ */ jsxs(ColorModeProvider, { enableSystem: enableSystemColorMode, children: [
5120
5121
  /* @__PURE__ */ jsx(Toaster, {}),
5121
5122
  /* @__PURE__ */ jsx(Global, { styles: fontFaces }),
5122
5123
  children
@@ -6885,6 +6886,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
6885
6886
  label: {
6886
6887
  display: "flex",
6887
6888
  alignItems: "center",
6889
+ gap: "1",
6888
6890
  fontSize: "xs"
6889
6891
  }
6890
6892
  },