@vygruppen/spor-react 12.13.3 → 12.13.5
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 +2 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +37 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.mjs +37 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/datepicker/DatePicker.tsx +6 -3
- package/src/datepicker/StyledField.tsx +4 -6
- package/src/theme/slot-recipes/datepicker.ts +27 -0
- package/src/theme/slot-recipes/dialog.ts +2 -5
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.13.
|
2
|
+
> @vygruppen/spor-react@12.13.5 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
|
@@ -11,18 +11,18 @@ CLI Cleaning output folder
|
|
11
11
|
ESM Build start
|
12
12
|
CJS Build start
|
13
13
|
DTS Build start
|
14
|
-
ESM dist/index.mjs
|
14
|
+
ESM dist/index.mjs 297.20 KB
|
15
15
|
ESM dist/icons/index.mjs 110.00 B
|
16
|
-
ESM dist/index.mjs.map
|
16
|
+
ESM dist/index.mjs.map 634.99 KB
|
17
17
|
ESM dist/icons/index.mjs.map 157.00 B
|
18
|
-
ESM ⚡️ Build success in
|
19
|
-
CJS dist/index.cjs 318.
|
18
|
+
ESM ⚡️ Build success in 2645ms
|
19
|
+
CJS dist/index.cjs 318.68 KB
|
20
20
|
CJS dist/icons/index.cjs 381.00 B
|
21
|
-
CJS dist/index.cjs.map
|
21
|
+
CJS dist/index.cjs.map 634.99 KB
|
22
22
|
CJS dist/icons/index.cjs.map 157.00 B
|
23
|
-
CJS ⚡️ Build success in
|
24
|
-
DTS ⚡️ Build success in
|
23
|
+
CJS ⚡️ Build success in 2645ms
|
24
|
+
DTS ⚡️ Build success in 18409ms
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
26
|
-
DTS dist/index.d.ts
|
26
|
+
DTS dist/index.d.ts 157.02 KB
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
28
|
-
DTS dist/index.d.cts
|
28
|
+
DTS dist/index.d.cts 157.02 KB
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.13.
|
2
|
+
> @vygruppen/spor-react@12.13.5 postinstall /home/runner/work/spor/spor/packages/spor-react
|
3
3
|
> chakra typegen src/theme/index.ts
|
4
4
|
|
5
|
+
[dotenv@17.2.2] injecting env (0) from .env -- tip: 🔐 prevent building .env in docker: https://dotenvx.com/prebuild
|
5
6
|
[90m┌[39m Chakra CLI ⚡️
|
6
7
|
[?25l[90m│[39m
|
7
8
|
[35m◒[39m Generating conditions types...
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.13.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- ae25c85: Fix cover modal not handling overflow with scroll
|
8
|
+
|
9
|
+
## 12.13.4
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 3200ed0: datepicker - exposed onClick & changed hover style to be focus color when isActive=true
|
14
|
+
|
3
15
|
## 12.13.3
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
@@ -1906,9 +1906,11 @@ var StyledField = React27.forwardRef(
|
|
1906
1906
|
react.Box,
|
1907
1907
|
{
|
1908
1908
|
...otherProps,
|
1909
|
-
css:
|
1909
|
+
css: {
|
1910
|
+
...styles.wrapper,
|
1911
|
+
outlineColor: overrideBorderColor || void 0
|
1912
|
+
},
|
1910
1913
|
"data-active": isActive ? "" : void 0,
|
1911
|
-
style: overrideBorderColor ? { outlineColor: overrideBorderColor } : void 0,
|
1912
1914
|
ref,
|
1913
1915
|
"aria-invalid": invalid,
|
1914
1916
|
"aria-disabled": isDisabled,
|
@@ -1953,9 +1955,11 @@ var DatePicker = React27.forwardRef(
|
|
1953
1955
|
const locale = useCurrentLocale();
|
1954
1956
|
const shouldShowCalendar = state.isOpen && !props.isDisabled && !props.noCalendar;
|
1955
1957
|
const onFieldClick = () => {
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1958
|
+
var _a5;
|
1959
|
+
if (!props.noCalendar) {
|
1960
|
+
state.setOpen(true);
|
1961
|
+
}
|
1962
|
+
(_a5 = props.onClick) == null ? void 0 : _a5.call(props);
|
1959
1963
|
};
|
1960
1964
|
const popoverContent = /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { minWidth: "20rem", children: /* @__PURE__ */ jsxRuntime.jsx(
|
1961
1965
|
Calendar,
|
@@ -1986,7 +1990,7 @@ var DatePicker = React27.forwardRef(
|
|
1986
1990
|
StyledField,
|
1987
1991
|
{
|
1988
1992
|
variant,
|
1989
|
-
onClick:
|
1993
|
+
onClick: onFieldClick,
|
1990
1994
|
paddingX: 3,
|
1991
1995
|
minHeight,
|
1992
1996
|
isDisabled: props.isDisabled,
|
@@ -7175,7 +7179,10 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7175
7179
|
},
|
7176
7180
|
"&[data-active]": {
|
7177
7181
|
outline: "2px solid",
|
7178
|
-
outlineColor: "outline.focus"
|
7182
|
+
outlineColor: "outline.focus",
|
7183
|
+
"&:hover": {
|
7184
|
+
outlineColor: "outline.focus"
|
7185
|
+
}
|
7179
7186
|
}
|
7180
7187
|
},
|
7181
7188
|
inputLabel: {
|
@@ -7302,6 +7309,13 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7302
7309
|
backgroundColor: "ghost.surface.active",
|
7303
7310
|
outline: "1px solid",
|
7304
7311
|
outlineColor: "core.outline"
|
7312
|
+
},
|
7313
|
+
"&[data-active]": {
|
7314
|
+
outline: "2px solid",
|
7315
|
+
outlineColor: "outline.focus",
|
7316
|
+
_hover: {
|
7317
|
+
outlineColor: "outline.focus"
|
7318
|
+
}
|
7305
7319
|
}
|
7306
7320
|
},
|
7307
7321
|
_invalid: {
|
@@ -7326,6 +7340,13 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7326
7340
|
backgroundColor: "ghost.surface.active",
|
7327
7341
|
outline: "1px solid",
|
7328
7342
|
outlineColor: "core.outline"
|
7343
|
+
},
|
7344
|
+
"&[data-active]": {
|
7345
|
+
outline: "2px solid",
|
7346
|
+
outlineColor: "outline.focus",
|
7347
|
+
_hover: {
|
7348
|
+
outlineColor: "outline.focus"
|
7349
|
+
}
|
7329
7350
|
}
|
7330
7351
|
},
|
7331
7352
|
_invalid: {
|
@@ -7343,6 +7364,13 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
7343
7364
|
backgroundColor: "ghost.surface.active",
|
7344
7365
|
outline: "1px solid",
|
7345
7366
|
outlineColor: "core.outline"
|
7367
|
+
},
|
7368
|
+
"&[data-active]": {
|
7369
|
+
outline: "2px solid",
|
7370
|
+
outlineColor: "outline.focus",
|
7371
|
+
_hover: {
|
7372
|
+
outlineColor: "outline.focus"
|
7373
|
+
}
|
7346
7374
|
}
|
7347
7375
|
},
|
7348
7376
|
_invalid: {
|
@@ -7451,11 +7479,8 @@ var dialogSlotRecipe = react.defineSlotRecipe({
|
|
7451
7479
|
variants: {
|
7452
7480
|
placement: {
|
7453
7481
|
center: {
|
7454
|
-
positioner: {
|
7455
|
-
alignItems: "center"
|
7456
|
-
},
|
7457
7482
|
content: {
|
7458
|
-
|
7483
|
+
margin: "auto"
|
7459
7484
|
}
|
7460
7485
|
},
|
7461
7486
|
top: {
|
@@ -7531,7 +7556,7 @@ var dialogSlotRecipe = react.defineSlotRecipe({
|
|
7531
7556
|
},
|
7532
7557
|
content: {
|
7533
7558
|
width: "100%",
|
7534
|
-
|
7559
|
+
minHeight: "100%",
|
7535
7560
|
"--dialog-margin": "0",
|
7536
7561
|
margin: "0"
|
7537
7562
|
}
|