@vygruppen/spor-react 12.6.2 → 12.6.4
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 +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/index.d.mts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +38 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/datepicker/DateRangePicker.tsx +1 -1
- package/src/input/Combobox.tsx +2 -0
- package/src/theme/recipes/button.ts +8 -7
- package/src/theme/slot-recipes/dialog.ts +7 -1
- package/src/theme/slot-recipes/field.ts +6 -8
- 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.4 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
|
-
|
14
|
-
CJS dist/icons/index.js 380.00 B
|
15
|
-
CJS dist/index.js.map 623.00 KB
|
16
|
-
CJS dist/icons/index.js.map 157.00 B
|
17
|
-
CJS ⚡️ Build success in 2615ms
|
18
|
-
ESM dist/index.mjs 290.58 KB
|
13
|
+
ESM dist/index.mjs 290.84 KB
|
19
14
|
ESM dist/icons/index.mjs 110.00 B
|
15
|
+
ESM dist/index.mjs.map 623.43 KB
|
20
16
|
ESM dist/icons/index.mjs.map 157.00 B
|
21
|
-
ESM
|
22
|
-
|
23
|
-
|
17
|
+
ESM ⚡️ Build success in 2736ms
|
18
|
+
CJS dist/index.js 311.49 KB
|
19
|
+
CJS dist/icons/index.js 380.00 B
|
20
|
+
CJS dist/index.js.map 623.43 KB
|
21
|
+
CJS dist/icons/index.js.map 157.00 B
|
22
|
+
CJS ⚡️ Build success in 2737ms
|
23
|
+
DTS ⚡️ Build success in 29941ms
|
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.52 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.52 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.6.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- f88c33b: Field: Fix styling for multi line errorText, where arrow collided with the error box.
|
8
|
+
DateRangePicker: Use same value type as DatePicker.
|
9
|
+
Button: Update style from figma, different padding and font sizes.
|
10
|
+
|
11
|
+
## 12.6.3
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- 552118e: Combobox: Fix forwarding of props so styles, like background, can be applied
|
16
|
+
Dialog: Fix resonspive sizes, and shrink margin of fullscreen, "cover", modal
|
17
|
+
Tabs: Fix hover style for active tab
|
18
|
+
- Updated dependencies [3414328]
|
19
|
+
- @vygruppen/spor-icon-react@4.2.1
|
20
|
+
|
3
21
|
## 12.6.2
|
4
22
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -286,27 +286,30 @@ declare const buttonRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
286
286
|
xs: {
|
287
287
|
minHeight: number;
|
288
288
|
minWidth: number;
|
289
|
-
|
290
|
-
fontSize: "xs";
|
289
|
+
paddingX: number;
|
290
|
+
fontSize: "mobile.xs";
|
291
291
|
fontWeight: "normal";
|
292
292
|
};
|
293
293
|
sm: {
|
294
294
|
minHeight: number;
|
295
295
|
minWidth: number;
|
296
|
-
|
296
|
+
paddingX: number;
|
297
|
+
fontSize: "mobile.sm";
|
297
298
|
fontWeight: "normal";
|
298
299
|
};
|
299
300
|
md: {
|
300
301
|
minHeight: number;
|
301
302
|
minWidth: number;
|
302
|
-
fontSize: "
|
303
|
+
fontSize: "mobile.md";
|
303
304
|
fontWeight: "bold";
|
305
|
+
paddingX: number;
|
304
306
|
};
|
305
307
|
lg: {
|
306
308
|
minHeight: number;
|
307
309
|
minWidth: number;
|
308
|
-
fontSize: "
|
310
|
+
fontSize: "mobile.md";
|
309
311
|
fontWeight: "bold";
|
312
|
+
paddingX: number;
|
310
313
|
};
|
311
314
|
};
|
312
315
|
}>;
|
@@ -623,15 +626,15 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
|
|
623
626
|
positioning?: PopoverRootProps["positioning"];
|
624
627
|
} & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
|
625
628
|
|
626
|
-
type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue
|
629
|
+
type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
|
627
630
|
startLabel?: string;
|
628
631
|
startName?: string;
|
629
632
|
endLabel?: string;
|
630
633
|
endName?: string;
|
631
634
|
withPortal?: boolean;
|
632
635
|
onChange?: (dates: {
|
633
|
-
start: DateValue
|
634
|
-
end: DateValue
|
636
|
+
start: DateValue | null;
|
637
|
+
end: DateValue | null;
|
635
638
|
} | null) => void;
|
636
639
|
positioning?: PopoverRootProps["positioning"];
|
637
640
|
} & FieldBaseProps;
|
@@ -3084,6 +3087,9 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3084
3087
|
_selected: {
|
3085
3088
|
backgroundColor: "brand.surface";
|
3086
3089
|
color: "brand.text";
|
3090
|
+
_hover: {
|
3091
|
+
outline: "none";
|
3092
|
+
};
|
3087
3093
|
};
|
3088
3094
|
_disabled: {
|
3089
3095
|
backgroundColor: "surface.disabled";
|
@@ -3115,6 +3121,7 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3115
3121
|
_hover: {
|
3116
3122
|
backgroundColor: "brand.surface.hover";
|
3117
3123
|
color: "brand.text";
|
3124
|
+
outline: "none";
|
3118
3125
|
};
|
3119
3126
|
};
|
3120
3127
|
};
|
package/dist/index.d.ts
CHANGED
@@ -286,27 +286,30 @@ declare const buttonRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
286
286
|
xs: {
|
287
287
|
minHeight: number;
|
288
288
|
minWidth: number;
|
289
|
-
|
290
|
-
fontSize: "xs";
|
289
|
+
paddingX: number;
|
290
|
+
fontSize: "mobile.xs";
|
291
291
|
fontWeight: "normal";
|
292
292
|
};
|
293
293
|
sm: {
|
294
294
|
minHeight: number;
|
295
295
|
minWidth: number;
|
296
|
-
|
296
|
+
paddingX: number;
|
297
|
+
fontSize: "mobile.sm";
|
297
298
|
fontWeight: "normal";
|
298
299
|
};
|
299
300
|
md: {
|
300
301
|
minHeight: number;
|
301
302
|
minWidth: number;
|
302
|
-
fontSize: "
|
303
|
+
fontSize: "mobile.md";
|
303
304
|
fontWeight: "bold";
|
305
|
+
paddingX: number;
|
304
306
|
};
|
305
307
|
lg: {
|
306
308
|
minHeight: number;
|
307
309
|
minWidth: number;
|
308
|
-
fontSize: "
|
310
|
+
fontSize: "mobile.md";
|
309
311
|
fontWeight: "bold";
|
312
|
+
paddingX: number;
|
310
313
|
};
|
311
314
|
};
|
312
315
|
}>;
|
@@ -623,15 +626,15 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
|
|
623
626
|
positioning?: PopoverRootProps["positioning"];
|
624
627
|
} & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
|
625
628
|
|
626
|
-
type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue
|
629
|
+
type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
|
627
630
|
startLabel?: string;
|
628
631
|
startName?: string;
|
629
632
|
endLabel?: string;
|
630
633
|
endName?: string;
|
631
634
|
withPortal?: boolean;
|
632
635
|
onChange?: (dates: {
|
633
|
-
start: DateValue
|
634
|
-
end: DateValue
|
636
|
+
start: DateValue | null;
|
637
|
+
end: DateValue | null;
|
635
638
|
} | null) => void;
|
636
639
|
positioning?: PopoverRootProps["positioning"];
|
637
640
|
} & FieldBaseProps;
|
@@ -3084,6 +3087,9 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3084
3087
|
_selected: {
|
3085
3088
|
backgroundColor: "brand.surface";
|
3086
3089
|
color: "brand.text";
|
3090
|
+
_hover: {
|
3091
|
+
outline: "none";
|
3092
|
+
};
|
3087
3093
|
};
|
3088
3094
|
_disabled: {
|
3089
3095
|
backgroundColor: "surface.disabled";
|
@@ -3115,6 +3121,7 @@ declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "in
|
|
3115
3121
|
_hover: {
|
3116
3122
|
backgroundColor: "brand.surface.hover";
|
3117
3123
|
color: "brand.text";
|
3124
|
+
outline: "none";
|
3118
3125
|
};
|
3119
3126
|
};
|
3120
3127
|
};
|
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,
|
@@ -5556,8 +5558,6 @@ var buttonRecipe = react.defineRecipe({
|
|
5556
5558
|
cursor: "pointer",
|
5557
5559
|
textWrap: "wrap",
|
5558
5560
|
width: "fit-content",
|
5559
|
-
paddingX: 3,
|
5560
|
-
paddingY: 1,
|
5561
5561
|
_disabled: {
|
5562
5562
|
cursor: "not-allowed",
|
5563
5563
|
pointerEvents: "none",
|
@@ -5637,27 +5637,30 @@ var buttonRecipe = react.defineRecipe({
|
|
5637
5637
|
xs: {
|
5638
5638
|
minHeight: 5,
|
5639
5639
|
minWidth: 5,
|
5640
|
-
|
5641
|
-
fontSize: "xs",
|
5640
|
+
paddingX: 1.5,
|
5641
|
+
fontSize: "mobile.xs",
|
5642
5642
|
fontWeight: "normal"
|
5643
5643
|
},
|
5644
5644
|
sm: {
|
5645
5645
|
minHeight: 6,
|
5646
5646
|
minWidth: 6,
|
5647
|
-
|
5647
|
+
paddingX: 2,
|
5648
|
+
fontSize: "mobile.sm",
|
5648
5649
|
fontWeight: "normal"
|
5649
5650
|
},
|
5650
5651
|
md: {
|
5651
5652
|
minHeight: 7,
|
5652
5653
|
minWidth: 7,
|
5653
|
-
fontSize: "
|
5654
|
-
fontWeight: "bold"
|
5654
|
+
fontSize: "mobile.md",
|
5655
|
+
fontWeight: "bold",
|
5656
|
+
paddingX: 3
|
5655
5657
|
},
|
5656
5658
|
lg: {
|
5657
5659
|
minHeight: 8,
|
5658
5660
|
minWidth: 8,
|
5659
|
-
fontSize: "
|
5660
|
-
fontWeight: "bold"
|
5661
|
+
fontSize: "mobile.md",
|
5662
|
+
fontWeight: "bold",
|
5663
|
+
paddingX: 3
|
5661
5664
|
}
|
5662
5665
|
}
|
5663
5666
|
},
|
@@ -7294,37 +7297,43 @@ var dialogSlotRecipe = react.defineSlotRecipe({
|
|
7294
7297
|
size: {
|
7295
7298
|
xs: {
|
7296
7299
|
content: {
|
7297
|
-
maxWidth: "sm"
|
7300
|
+
maxWidth: "sm",
|
7301
|
+
height: "auto"
|
7298
7302
|
}
|
7299
7303
|
},
|
7300
7304
|
sm: {
|
7301
7305
|
content: {
|
7302
|
-
maxWidth: "md"
|
7306
|
+
maxWidth: "md",
|
7307
|
+
height: "auto"
|
7303
7308
|
}
|
7304
7309
|
},
|
7305
7310
|
md: {
|
7306
7311
|
content: {
|
7307
|
-
maxWidth: "lg"
|
7312
|
+
maxWidth: "lg",
|
7313
|
+
height: "auto"
|
7308
7314
|
}
|
7309
7315
|
},
|
7310
7316
|
lg: {
|
7311
7317
|
content: {
|
7312
|
-
maxWidth: "2xl"
|
7318
|
+
maxWidth: "2xl",
|
7319
|
+
height: "auto"
|
7313
7320
|
}
|
7314
7321
|
},
|
7315
7322
|
xl: {
|
7316
7323
|
content: {
|
7317
|
-
maxWidth: "4xl"
|
7324
|
+
maxWidth: "4xl",
|
7325
|
+
height: "auto"
|
7318
7326
|
}
|
7319
7327
|
},
|
7320
7328
|
cover: {
|
7321
7329
|
positioner: {
|
7322
|
-
padding: "
|
7330
|
+
padding: "4"
|
7323
7331
|
},
|
7324
7332
|
content: {
|
7325
7333
|
width: "100%",
|
7326
7334
|
height: "100%",
|
7327
|
-
"--dialog-margin": "0"
|
7335
|
+
"--dialog-margin": "0",
|
7336
|
+
margin: "0"
|
7328
7337
|
}
|
7329
7338
|
}
|
7330
7339
|
},
|
@@ -7603,15 +7612,13 @@ var fieldSlotRecipe = react.defineSlotRecipe({
|
|
7603
7612
|
_after: {
|
7604
7613
|
content: "''",
|
7605
7614
|
position: "absolute",
|
7606
|
-
|
7615
|
+
top: 0,
|
7607
7616
|
left: "1em",
|
7608
|
-
width: 0,
|
7609
|
-
height: 0,
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
borderBottom: "0.5em solid",
|
7614
|
-
borderColor: "lightRed"
|
7617
|
+
width: "0.5rem",
|
7618
|
+
height: "0.5rem",
|
7619
|
+
backgroundColor: "lightRed",
|
7620
|
+
transform: "translateY(-50%) rotate(45deg)",
|
7621
|
+
pointerEvents: "none"
|
7615
7622
|
}
|
7616
7623
|
}
|
7617
7624
|
}
|
@@ -9561,7 +9568,10 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9561
9568
|
},
|
9562
9569
|
_selected: {
|
9563
9570
|
backgroundColor: "brand.surface",
|
9564
|
-
color: "brand.text"
|
9571
|
+
color: "brand.text",
|
9572
|
+
_hover: {
|
9573
|
+
outline: "none"
|
9574
|
+
}
|
9565
9575
|
},
|
9566
9576
|
_disabled: {
|
9567
9577
|
backgroundColor: "surface.disabled",
|
@@ -9592,7 +9602,8 @@ var tabsSlotRecipe = react.defineSlotRecipe({
|
|
9592
9602
|
color: "brand.text",
|
9593
9603
|
_hover: {
|
9594
9604
|
backgroundColor: "brand.surface.hover",
|
9595
|
-
color: "brand.text"
|
9605
|
+
color: "brand.text",
|
9606
|
+
outline: "none"
|
9596
9607
|
}
|
9597
9608
|
}
|
9598
9609
|
}
|