@sproutsocial/seeds-react-modal 2.5.6 → 2.5.8
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/CHANGELOG.md +14 -0
- package/package.json +4 -4
- package/src/__tests__/v2/Modal.test.tsx +3 -1
- package/src/v2/ModalV2.stories.tsx +36 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -9,25 +9,25 @@ $ tsup --dts
|
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m41.42 KB[39m
|
|
12
|
-
[32mCJS[39m [1mdist/v2/index.js [22m[32m32.96 KB[39m
|
|
13
12
|
[32mCJS[39m [1mdist/v1/index.js [22m[32m10.31 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/v2/index.js [22m[32m32.96 KB[39m
|
|
14
14
|
[32mCJS[39m [1mdist/index.js.map [22m[32m82.23 KB[39m
|
|
15
|
-
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m67.35 KB[39m
|
|
16
15
|
[32mCJS[39m [1mdist/v1/index.js.map [22m[32m14.56 KB[39m
|
|
17
|
-
[32mCJS[39m
|
|
16
|
+
[32mCJS[39m [1mdist/v2/index.js.map [22m[32m67.35 KB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 29ms
|
|
18
|
+
[32mESM[39m [1mdist/esm/v1/index.js [22m[32m165.00 B[39m
|
|
18
19
|
[32mESM[39m [1mdist/esm/index.js [22m[32m733.00 B[39m
|
|
19
|
-
[32mESM[39m [1mdist/esm/chunk-XQ2A6HDC.js [22m[32m27.90 KB[39m
|
|
20
20
|
[32mESM[39m [1mdist/esm/chunk-72GBDCA2.js [22m[32m7.57 KB[39m
|
|
21
|
-
[32mESM[39m [1mdist/esm/
|
|
21
|
+
[32mESM[39m [1mdist/esm/chunk-XQ2A6HDC.js [22m[32m27.90 KB[39m
|
|
22
22
|
[32mESM[39m [1mdist/esm/v2/index.js [22m[32m746.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/esm/v1/index.js.map [22m[32m71.00 B[39m
|
|
23
24
|
[32mESM[39m [1mdist/esm/index.js.map [22m[32m1.16 KB[39m
|
|
24
|
-
[32mESM[39m [1mdist/esm/chunk-XQ2A6HDC.js.map [22m[32m66.27 KB[39m
|
|
25
25
|
[32mESM[39m [1mdist/esm/chunk-72GBDCA2.js.map [22m[32m14.38 KB[39m
|
|
26
|
-
[32mESM[39m [1mdist/esm/
|
|
26
|
+
[32mESM[39m [1mdist/esm/chunk-XQ2A6HDC.js.map [22m[32m66.27 KB[39m
|
|
27
27
|
[32mESM[39m [1mdist/esm/v2/index.js.map [22m[32m71.00 B[39m
|
|
28
|
-
[32mESM[39m ⚡️ Build success in
|
|
28
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
|
29
29
|
[34mDTS[39m Build start
|
|
30
|
-
[32mDTS[39m ⚡️ Build success in
|
|
30
|
+
[32mDTS[39m ⚡️ Build success in 3984ms
|
|
31
31
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.07 KB[39m
|
|
32
32
|
[32mDTS[39m [1mdist/v1/index.d.ts [22m[32m413.00 B[39m
|
|
33
33
|
[32mDTS[39m [1mdist/v2/index.d.ts [22m[32m1.16 KB[39m
|
|
@@ -38,4 +38,4 @@ $ tsup --dts
|
|
|
38
38
|
[32mDTS[39m [1mdist/v2/index.d.mts [22m[32m1.16 KB[39m
|
|
39
39
|
[32mDTS[39m [1mdist/Modal-DTeKLfEI.d.mts [22m[32m2.52 KB[39m
|
|
40
40
|
[32mDTS[39m [1mdist/ModalExternalTrigger-BnbJk9zY.d.mts [22m[32m23.41 KB[39m
|
|
41
|
-
Done in
|
|
41
|
+
Done in 4.71s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-modal
|
|
2
2
|
|
|
3
|
+
## 2.5.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @sproutsocial/seeds-react-icon@2.3.5
|
|
8
|
+
- @sproutsocial/seeds-react-button@2.0.3
|
|
9
|
+
|
|
10
|
+
## 2.5.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @sproutsocial/seeds-react-icon@2.3.4
|
|
15
|
+
- @sproutsocial/seeds-react-button@2.0.2
|
|
16
|
+
|
|
3
17
|
## 2.5.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-modal",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.8",
|
|
4
4
|
"description": "Seeds React Modal",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
39
39
|
"@sproutsocial/seeds-react-box": "^1.1.16",
|
|
40
|
-
"@sproutsocial/seeds-react-button": "^2.0.
|
|
41
|
-
"@sproutsocial/seeds-react-icon": "^2.3.
|
|
40
|
+
"@sproutsocial/seeds-react-button": "^2.0.3",
|
|
41
|
+
"@sproutsocial/seeds-react-icon": "^2.3.5",
|
|
42
42
|
"@sproutsocial/seeds-react-portal": "^1.2.0",
|
|
43
43
|
"@sproutsocial/seeds-react-system-props": "^3.0.1",
|
|
44
44
|
"@sproutsocial/seeds-react-text": "^1.4.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@sproutsocial/eslint-config-seeds": "*",
|
|
54
54
|
"@sproutsocial/seeds-react-form-field": "^1.1.10",
|
|
55
|
-
"@sproutsocial/seeds-react-input": "^1.5.
|
|
55
|
+
"@sproutsocial/seeds-react-input": "^1.5.14",
|
|
56
56
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
57
57
|
"@sproutsocial/seeds-testing": "*",
|
|
58
58
|
"@sproutsocial/seeds-tsconfig": "*",
|
|
@@ -1074,7 +1074,9 @@ describe("ModalExternalTrigger component", () => {
|
|
|
1074
1074
|
|
|
1075
1075
|
const button = screen.getByTestId("test-button");
|
|
1076
1076
|
expect(button).toBeInTheDocument();
|
|
1077
|
-
|
|
1077
|
+
// Seeds Button uses aria-disabled rather than the HTML disabled attribute
|
|
1078
|
+
// so the disabled button stays in the tab order — see Button.tsx.
|
|
1079
|
+
expect(button).toHaveAttribute("aria-disabled", "true");
|
|
1078
1080
|
});
|
|
1079
1081
|
});
|
|
1080
1082
|
|
|
@@ -1414,6 +1414,42 @@ export const WithPopout: Story = {
|
|
|
1414
1414
|
<Button>Open Popout</Button>
|
|
1415
1415
|
</Popout>
|
|
1416
1416
|
</Box>
|
|
1417
|
+
<Box>
|
|
1418
|
+
<Text fontSize={200} fontWeight="semibold" mb={200}>
|
|
1419
|
+
Popout V1 (focus fight repro)
|
|
1420
|
+
</Text>
|
|
1421
|
+
<Text as="p" fontSize={100} mb={200}>
|
|
1422
|
+
Open this popout. With the bug, focus flickers/bounces because
|
|
1423
|
+
Radix Dialog's FocusScope and the Popout's
|
|
1424
|
+
react-focus-lock each try to trap focus. Try tabbing between the
|
|
1425
|
+
two inputs — focus should stay inside the popout.
|
|
1426
|
+
</Text>
|
|
1427
|
+
<Popout
|
|
1428
|
+
placement="bottom-start"
|
|
1429
|
+
content={
|
|
1430
|
+
<Popout.Content>
|
|
1431
|
+
<Box display="flex" flexDirection="column" gap={200}>
|
|
1432
|
+
<label>
|
|
1433
|
+
First input{" "}
|
|
1434
|
+
<input
|
|
1435
|
+
data-testid="popout-input-1"
|
|
1436
|
+
placeholder="focus should land here"
|
|
1437
|
+
/>
|
|
1438
|
+
</label>
|
|
1439
|
+
<label>
|
|
1440
|
+
Second input{" "}
|
|
1441
|
+
<input
|
|
1442
|
+
data-testid="popout-input-2"
|
|
1443
|
+
placeholder="tab should reach here"
|
|
1444
|
+
/>
|
|
1445
|
+
</label>
|
|
1446
|
+
</Box>
|
|
1447
|
+
</Popout.Content>
|
|
1448
|
+
}
|
|
1449
|
+
>
|
|
1450
|
+
<Button>Open Popout with focusable content</Button>
|
|
1451
|
+
</Popout>
|
|
1452
|
+
</Box>
|
|
1417
1453
|
<Box>
|
|
1418
1454
|
<Text fontSize={200} fontWeight="semibold" mb={200}>
|
|
1419
1455
|
Popout V2
|