@vygruppen/spor-react 3.1.0 → 3.1.1

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.ts CHANGED
@@ -45,7 +45,7 @@ type AccordionProps = Omit<AccordionProps$1, "variant" | "size"> & {
45
45
  declare const Accordion: _chakra_ui_system_dist_system_types.ComponentWithAs<"div", AccordionProps>;
46
46
 
47
47
  type HeadingLevel = "h2" | "h3" | "h4" | "h5" | "h6";
48
- type ExpandableProps = AccordionProps & {
48
+ type ExpandableProps = Omit<AccordionProps, "title"> & {
49
49
  /** The hidden content */
50
50
  children: React__default.ReactNode;
51
51
  /** The title that's shown inside the toggle button */
@@ -75,7 +75,7 @@ type ExpandableProps = AccordionProps & {
75
75
  * ```
76
76
  */
77
77
  declare const Expandable: ({ children, headingLevel, title, leftIcon, size, ...rest }: ExpandableProps) => React__default.JSX.Element;
78
- type ExpandableItemProps = AccordionItemProps & {
78
+ type ExpandableItemProps = Omit<AccordionItemProps, "title"> & {
79
79
  /** The hidden content */
80
80
  children: React__default.ReactNode;
81
81
  /** The title that's shown inside the toggle button */
@@ -166,7 +166,7 @@ type ExpandableAlertProps = BaseAlertProps & {
166
166
  * </ExpandableAlert>
167
167
  * ```
168
168
  */
169
- declare const ExpandableAlert: ({ variant, children, title, headingLevel, defaultOpen, onToggle, }: ExpandableAlertProps) => React__default.JSX.Element;
169
+ declare const ExpandableAlert: ({ variant, children, title, headingLevel, defaultOpen, onToggle, ...boxProps }: ExpandableAlertProps) => React__default.JSX.Element;
170
170
 
171
171
  type StaticAlertProps = BaseAlertProps;
172
172
  /**
@@ -5172,7 +5172,7 @@ declare const theme: {
5172
5172
  sizes?: {
5173
5173
  "2xs": {
5174
5174
  container: {
5175
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | {
5175
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | {
5176
5176
  sm: string;
5177
5177
  md: string;
5178
5178
  lg: string;
@@ -5180,7 +5180,7 @@ declare const theme: {
5180
5180
  } | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96;
5181
5181
  };
5182
5182
  excessLabel: {
5183
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5183
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5184
5184
  sm: string;
5185
5185
  md: string;
5186
5186
  lg: string;
@@ -5190,7 +5190,7 @@ declare const theme: {
5190
5190
  };
5191
5191
  xs: {
5192
5192
  container: {
5193
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5193
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5194
5194
  sm: string;
5195
5195
  md: string;
5196
5196
  lg: string;
@@ -5198,7 +5198,7 @@ declare const theme: {
5198
5198
  };
5199
5199
  };
5200
5200
  excessLabel: {
5201
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5201
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5202
5202
  sm: string;
5203
5203
  md: string;
5204
5204
  lg: string;
@@ -5208,7 +5208,7 @@ declare const theme: {
5208
5208
  };
5209
5209
  sm: {
5210
5210
  container: {
5211
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5211
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5212
5212
  sm: string;
5213
5213
  md: string;
5214
5214
  lg: string;
@@ -5216,7 +5216,7 @@ declare const theme: {
5216
5216
  };
5217
5217
  };
5218
5218
  excessLabel: {
5219
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5219
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5220
5220
  sm: string;
5221
5221
  md: string;
5222
5222
  lg: string;
@@ -5226,7 +5226,7 @@ declare const theme: {
5226
5226
  };
5227
5227
  md: {
5228
5228
  container: {
5229
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5229
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5230
5230
  sm: string;
5231
5231
  md: string;
5232
5232
  lg: string;
@@ -5234,7 +5234,7 @@ declare const theme: {
5234
5234
  };
5235
5235
  };
5236
5236
  excessLabel: {
5237
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5237
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5238
5238
  sm: string;
5239
5239
  md: string;
5240
5240
  lg: string;
@@ -5244,7 +5244,7 @@ declare const theme: {
5244
5244
  };
5245
5245
  lg: {
5246
5246
  container: {
5247
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5247
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5248
5248
  sm: string;
5249
5249
  md: string;
5250
5250
  lg: string;
@@ -5252,7 +5252,7 @@ declare const theme: {
5252
5252
  };
5253
5253
  };
5254
5254
  excessLabel: {
5255
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5255
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5256
5256
  sm: string;
5257
5257
  md: string;
5258
5258
  lg: string;
@@ -5262,7 +5262,7 @@ declare const theme: {
5262
5262
  };
5263
5263
  xl: {
5264
5264
  container: {
5265
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5265
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5266
5266
  sm: string;
5267
5267
  md: string;
5268
5268
  lg: string;
@@ -5270,7 +5270,7 @@ declare const theme: {
5270
5270
  };
5271
5271
  };
5272
5272
  excessLabel: {
5273
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5273
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5274
5274
  sm: string;
5275
5275
  md: string;
5276
5276
  lg: string;
@@ -5280,7 +5280,7 @@ declare const theme: {
5280
5280
  };
5281
5281
  "2xl": {
5282
5282
  container: {
5283
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5283
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5284
5284
  sm: string;
5285
5285
  md: string;
5286
5286
  lg: string;
@@ -5288,7 +5288,7 @@ declare const theme: {
5288
5288
  };
5289
5289
  };
5290
5290
  excessLabel: {
5291
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5291
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5292
5292
  sm: string;
5293
5293
  md: string;
5294
5294
  lg: string;
@@ -5298,7 +5298,7 @@ declare const theme: {
5298
5298
  };
5299
5299
  full: {
5300
5300
  container: {
5301
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5301
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5302
5302
  sm: string;
5303
5303
  md: string;
5304
5304
  lg: string;
@@ -5306,7 +5306,7 @@ declare const theme: {
5306
5306
  };
5307
5307
  };
5308
5308
  excessLabel: {
5309
- [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 24 | 0.5 | 1.5 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5309
+ [x: string]: string | 1 | 2 | 3 | 6 | 4 | 5 | 7 | 8 | 9 | 10 | 12 | 14 | 16 | 20 | 0.5 | 1.5 | 24 | 60 | 2.5 | 3.5 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 64 | 72 | 80 | 96 | {
5310
5310
  sm: string;
5311
5311
  md: string;
5312
5312
  lg: string;