@vygruppen/spor-react 12.6.1 → 12.6.3
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +22 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/input/Combobox.tsx +2 -0
- package/src/input/NumericStepper.tsx +4 -5
- package/src/theme/slot-recipes/dialog.ts +7 -1
- package/src/theme/slot-recipes/tabs.ts +5 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.6.
|
2
|
+
> @vygruppen/spor-react@12.6.3 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
|
@@ -10,18 +10,18 @@ CLI Target: node16
|
|
10
10
|
CJS Build start
|
11
11
|
ESM Build start
|
12
12
|
DTS Build start
|
13
|
-
ESM dist/index.mjs 290.58 KB
|
14
13
|
ESM dist/icons/index.mjs 110.00 B
|
15
|
-
ESM dist/index.mjs.map 623.05 KB
|
16
14
|
ESM dist/icons/index.mjs.map 157.00 B
|
17
|
-
ESM
|
18
|
-
|
15
|
+
ESM dist/index.mjs 290.87 KB
|
16
|
+
ESM dist/index.mjs.map 623.48 KB
|
17
|
+
ESM ⚡️ Build success in 2688ms
|
19
18
|
CJS dist/icons/index.js 380.00 B
|
20
|
-
CJS dist/index.js.map 623.05 KB
|
21
19
|
CJS dist/icons/index.js.map 157.00 B
|
22
|
-
CJS
|
23
|
-
|
20
|
+
CJS dist/index.js 311.51 KB
|
21
|
+
CJS dist/index.js.map 623.48 KB
|
22
|
+
CJS ⚡️ Build success in 2689ms
|
23
|
+
DTS ⚡️ Build success in 28559ms
|
24
24
|
DTS dist/icons/index.d.ts 44.00 B
|
25
|
-
DTS dist/index.d.ts 153.
|
25
|
+
DTS dist/index.d.ts 153.41 KB
|
26
26
|
DTS dist/icons/index.d.mts 44.00 B
|
27
|
-
DTS dist/index.d.mts 153.
|
27
|
+
DTS dist/index.d.mts 153.41 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.6.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 552118e: Combobox: Fix forwarding of props so styles, like background, can be applied
|
8
|
+
Dialog: Fix resonspive sizes, and shrink margin of fullscreen, "cover", modal
|
9
|
+
Tabs: Fix hover style for active tab
|
10
|
+
- Updated dependencies [3414328]
|
11
|
+
- @vygruppen/spor-icon-react@4.2.1
|
12
|
+
|
13
|
+
## 12.6.2
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- cad7ba5: Fix NumericStepper props: onChange correct type and children not mandatory.
|
18
|
+
|
3
19
|
## 12.6.1
|
4
20
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -1362,8 +1362,8 @@ declare const NativeSelect: React$1.ForwardRefExoticComponent<{
|
|
1362
1362
|
declare const numericStepperRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "container" | "input" | "text" | "button", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "container" | "input" | "text" | "button">>;
|
1363
1363
|
|
1364
1364
|
type NumericStepperVariants = RecipeVariantProps<typeof numericStepperRecipe>;
|
1365
|
-
type NumericStepperProps =
|
1366
|
-
children
|
1365
|
+
type NumericStepperProps = FieldBaseProps & NumericStepperVariants & {
|
1366
|
+
children?: React__default.ReactNode;
|
1367
1367
|
/** The name of the input field */
|
1368
1368
|
name?: string;
|
1369
1369
|
/** The current value */
|
@@ -1413,10 +1413,8 @@ type NumericStepperProps = BoxProps & FieldBaseProps & PropsWithChildren<Numeric
|
|
1413
1413
|
* ```
|
1414
1414
|
* @see https://spor.vy.no/components/numeric-stepper
|
1415
1415
|
*/
|
1416
|
-
declare const NumericStepper: React__default.ForwardRefExoticComponent<
|
1417
|
-
children?: React__default.ReactNode
|
1418
|
-
} & {
|
1419
|
-
children: React__default.ReactNode;
|
1416
|
+
declare const NumericStepper: React__default.ForwardRefExoticComponent<FieldBaseProps & {
|
1417
|
+
children?: React__default.ReactNode;
|
1420
1418
|
/** The name of the input field */
|
1421
1419
|
name?: string;
|
1422
1420
|
/** The current value */
|
@@ -3086,6 +3084,9 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3086
3084
|
_selected: {
|
3087
3085
|
backgroundColor: "brand.surface";
|
3088
3086
|
color: "brand.text";
|
3087
|
+
_hover: {
|
3088
|
+
outline: "none";
|
3089
|
+
};
|
3089
3090
|
};
|
3090
3091
|
_disabled: {
|
3091
3092
|
backgroundColor: "surface.disabled";
|
@@ -3117,6 +3118,7 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3117
3118
|
_hover: {
|
3118
3119
|
backgroundColor: "brand.surface.hover";
|
3119
3120
|
color: "brand.text";
|
3121
|
+
outline: "none";
|
3120
3122
|
};
|
3121
3123
|
};
|
3122
3124
|
};
|
package/dist/index.d.ts
CHANGED
@@ -1362,8 +1362,8 @@ declare const NativeSelect: React$1.ForwardRefExoticComponent<{
|
|
1362
1362
|
declare const numericStepperRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "container" | "input" | "text" | "button", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "container" | "input" | "text" | "button">>;
|
1363
1363
|
|
1364
1364
|
type NumericStepperVariants = RecipeVariantProps<typeof numericStepperRecipe>;
|
1365
|
-
type NumericStepperProps =
|
1366
|
-
children
|
1365
|
+
type NumericStepperProps = FieldBaseProps & NumericStepperVariants & {
|
1366
|
+
children?: React__default.ReactNode;
|
1367
1367
|
/** The name of the input field */
|
1368
1368
|
name?: string;
|
1369
1369
|
/** The current value */
|
@@ -1413,10 +1413,8 @@ type NumericStepperProps = BoxProps & FieldBaseProps & PropsWithChildren<Numeric
|
|
1413
1413
|
* ```
|
1414
1414
|
* @see https://spor.vy.no/components/numeric-stepper
|
1415
1415
|
*/
|
1416
|
-
declare const NumericStepper: React__default.ForwardRefExoticComponent<
|
1417
|
-
children?: React__default.ReactNode
|
1418
|
-
} & {
|
1419
|
-
children: React__default.ReactNode;
|
1416
|
+
declare const NumericStepper: React__default.ForwardRefExoticComponent<FieldBaseProps & {
|
1417
|
+
children?: React__default.ReactNode;
|
1420
1418
|
/** The name of the input field */
|
1421
1419
|
name?: string;
|
1422
1420
|
/** The current value */
|
@@ -3086,6 +3084,9 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3086
3084
|
_selected: {
|
3087
3085
|
backgroundColor: "brand.surface";
|
3088
3086
|
color: "brand.text";
|
3087
|
+
_hover: {
|
3088
|
+
outline: "none";
|
3089
|
+
};
|
3089
3090
|
};
|
3090
3091
|
_disabled: {
|
3091
3092
|
backgroundColor: "surface.disabled";
|
@@ -3117,6 +3118,7 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3117
3118
|
_hover: {
|
3118
3119
|
backgroundColor: "brand.surface.hover";
|
3119
3120
|
color: "brand.text";
|
3121
|
+
outline: "none";
|
3120
3122
|
};
|
3121
3123
|
};
|
3122
3124
|
};
|
package/dist/index.js
CHANGED
@@ -2681,7 +2681,8 @@ var Combobox = (props) => {
|
|
2681
2681
|
emptyContent,
|
2682
2682
|
inputRef: externalInputRef,
|
2683
2683
|
children,
|
2684
|
-
variant
|
2684
|
+
variant,
|
2685
|
+
...restProps
|
2685
2686
|
} = props;
|
2686
2687
|
const { contains } = reactAria.useFilter({ sensitivity: "base" });
|
2687
2688
|
const fallbackInputRef = React28.useRef(null);
|
@@ -2729,6 +2730,7 @@ var Combobox = (props) => {
|
|
2729
2730
|
/* @__PURE__ */ jsxRuntime.jsx(
|
2730
2731
|
Input,
|
2731
2732
|
{
|
2733
|
+
...restProps,
|
2732
2734
|
...styleProps(comboBoxProps),
|
2733
2735
|
"aria-haspopup": "listbox",
|
2734
2736
|
ref: inputRef,
|
@@ -7294,37 +7296,43 @@ var dialogSlotRecipe = react.defineSlotRecipe({
|
|
7294
7296
|
size: {
|
7295
7297
|
xs: {
|
7296
7298
|
content: {
|
7297
|
-
maxWidth: "sm"
|
7299
|
+
maxWidth: "sm",
|
7300
|
+
height: "auto"
|
7298
7301
|
}
|
7299
7302
|
},
|
7300
7303
|
sm: {
|
7301
7304
|
content: {
|
7302
|
-
maxWidth: "md"
|
7305
|
+
maxWidth: "md",
|
7306
|
+
height: "auto"
|
7303
7307
|
}
|
7304
7308
|
},
|
7305
7309
|
md: {
|
7306
7310
|
content: {
|
7307
|
-
maxWidth: "lg"
|
7311
|
+
maxWidth: "lg",
|
7312
|
+
height: "auto"
|
7308
7313
|
}
|
7309
7314
|
},
|
7310
7315
|
lg: {
|
7311
7316
|
content: {
|
7312
|
-
maxWidth: "2xl"
|
7317
|
+
maxWidth: "2xl",
|
7318
|
+
height: "auto"
|
7313
7319
|
}
|
7314
7320
|
},
|
7315
7321
|
xl: {
|
7316
7322
|
content: {
|
7317
|
-
maxWidth: "4xl"
|
7323
|
+
maxWidth: "4xl",
|
7324
|
+
height: "auto"
|
7318
7325
|
}
|
7319
7326
|
},
|
7320
7327
|
cover: {
|
7321
7328
|
positioner: {
|
7322
|
-
padding: "
|
7329
|
+
padding: "4"
|
7323
7330
|
},
|
7324
7331
|
content: {
|
7325
7332
|
width: "100%",
|
7326
7333
|
height: "100%",
|
7327
|
-
"--dialog-margin": "0"
|
7334
|
+
"--dialog-margin": "0",
|
7335
|
+
margin: "0"
|
7328
7336
|
}
|
7329
7337
|
}
|
7330
7338
|
},
|
@@ -9561,7 +9569,10 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9561
9569
|
},
|
9562
9570
|
_selected: {
|
9563
9571
|
backgroundColor: "brand.surface",
|
9564
|
-
color: "brand.text"
|
9572
|
+
color: "brand.text",
|
9573
|
+
_hover: {
|
9574
|
+
outline: "none"
|
9575
|
+
}
|
9565
9576
|
},
|
9566
9577
|
_disabled: {
|
9567
9578
|
backgroundColor: "surface.disabled",
|
@@ -9592,7 +9603,8 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9592
9603
|
color: "brand.text",
|
9593
9604
|
_hover: {
|
9594
9605
|
backgroundColor: "brand.surface.hover",
|
9595
|
-
color: "brand.text"
|
9606
|
+
color: "brand.text",
|
9607
|
+
outline: "none"
|
9596
9608
|
}
|
9597
9609
|
}
|
9598
9610
|
}
|