@sproutsocial/seeds-react-peek-in 0.3.10 → 0.4.2
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/esm/index.js +230 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +230 -5
- package/dist/index.js.map +1 -1
- package/dist/peek-in.css +54 -0
- package/package.json +20 -11
package/dist/peek-in.css
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seeds PeekIn component classes
|
|
3
|
+
* Use these instead of writing out individual Tailwind utility classes.
|
|
4
|
+
*
|
|
5
|
+
* Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
|
|
6
|
+
* CSS variable definitions and dark mode support.
|
|
7
|
+
*
|
|
8
|
+
* These classes back only the root layout wrappers PeekIn authors directly
|
|
9
|
+
* (the mobile bottom-sheet header row and the desktop main column). The rest
|
|
10
|
+
* of PeekIn's appearance comes from the composed Seeds primitives (Modal,
|
|
11
|
+
* Drawer, Panel, Text, Button), which own their own styling.
|
|
12
|
+
*
|
|
13
|
+
* Rules are wrapped in @layer components so consumer Tailwind utilities (which
|
|
14
|
+
* live in @layer utilities) win the cascade. Without this layer the unlayered
|
|
15
|
+
* component CSS would beat utilities like px-450 / gap-300 and they could not
|
|
16
|
+
* override component styling. Keep every rule inside this single block.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
@layer components {
|
|
20
|
+
/* Mobile bottom-sheet header row (Drawer.Header render wrapper) */
|
|
21
|
+
.seeds-peek-in-drawer-header {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
padding-top: var(--space-400);
|
|
26
|
+
padding-right: var(--space-450);
|
|
27
|
+
padding-left: var(--space-450);
|
|
28
|
+
flex: 0 0 auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Header left group: optional back button + title */
|
|
32
|
+
.seeds-peek-in-titlegroup {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--space-300);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Header right group: consumer actions + inline pills/close */
|
|
39
|
+
.seeds-peek-in-header-actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--space-200);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Desktop main column: header + content, alongside the optional panel */
|
|
46
|
+
.seeds-peek-in-main {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1 1 auto;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
background: var(--color-container-bg-base);
|
|
52
|
+
border-radius: var(--radius-800);
|
|
53
|
+
}
|
|
54
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-peek-in",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Seeds React PeekIn — full-screen immersive overlay component",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/esm/index.js",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./dist/peek-in.css": "./dist/peek-in.css"
|
|
20
|
+
},
|
|
13
21
|
"scripts": {
|
|
14
|
-
"build": "tsup --dts",
|
|
15
|
-
"build:debug": "tsup --dts --metafile",
|
|
22
|
+
"build": "tsup --dts && cp src/peek-in.css dist/peek-in.css",
|
|
23
|
+
"build:debug": "tsup --dts --metafile && cp src/peek-in.css dist/peek-in.css",
|
|
16
24
|
"dev": "tsup --watch --dts",
|
|
17
25
|
"clean": "rm -rf .turbo dist",
|
|
18
26
|
"clean:modules": "rm -rf node_modules",
|
|
@@ -21,16 +29,17 @@
|
|
|
21
29
|
"test:watch": "jest --watch --coverage=false"
|
|
22
30
|
},
|
|
23
31
|
"dependencies": {
|
|
24
|
-
"@sproutsocial/seeds-react-
|
|
25
|
-
"@sproutsocial/seeds-react-
|
|
32
|
+
"@sproutsocial/seeds-react-theme": "^4.4.0",
|
|
33
|
+
"@sproutsocial/seeds-react-box": "^1.1.30",
|
|
34
|
+
"@sproutsocial/seeds-react-button": "^2.3.6",
|
|
26
35
|
"@sproutsocial/seeds-react-drawer": "*",
|
|
27
36
|
"@sproutsocial/seeds-react-hooks": "*",
|
|
28
|
-
"@sproutsocial/seeds-react-modal": "^2.5.
|
|
29
|
-
"@sproutsocial/seeds-react-icon": "^2.
|
|
30
|
-
"@sproutsocial/seeds-react-panel": "^1.
|
|
31
|
-
"@sproutsocial/seeds-react-system-props": "^3.
|
|
32
|
-
"@sproutsocial/seeds-react-mixins": "^4.3.
|
|
33
|
-
"@sproutsocial/seeds-react-text": "^1.5.
|
|
37
|
+
"@sproutsocial/seeds-react-modal": "^2.5.34",
|
|
38
|
+
"@sproutsocial/seeds-react-icon": "^2.5.0",
|
|
39
|
+
"@sproutsocial/seeds-react-panel": "^1.1.2",
|
|
40
|
+
"@sproutsocial/seeds-react-system-props": "^3.2.0",
|
|
41
|
+
"@sproutsocial/seeds-react-mixins": "^4.3.14",
|
|
42
|
+
"@sproutsocial/seeds-react-text": "^1.5.4",
|
|
34
43
|
"motion": "^12.6.3"
|
|
35
44
|
},
|
|
36
45
|
"devDependencies": {
|