@launchpad-ui/drawer 0.5.12 → 0.5.13

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/index.es.js CHANGED
@@ -11,25 +11,25 @@ import { cx } from "classix";
11
11
  import { LazyMotion, m } from "framer-motion";
12
12
  import { useRef, useState, useEffect, Suspense } from "react";
13
13
  const DRAWER_LABELLED_BY = "drawer-title";
14
- const drawer = "_drawer_1960y_12";
15
- const overlay$1 = "_overlay_1960y_31";
16
- const content = "_content_1960y_37";
17
- const small = "_small_1960y_51";
18
- const medium = "_medium_1960y_55";
19
- const large = "_large_1960y_59";
20
- const xLarge = "_xLarge_1960y_63";
21
- const full = "_full_1960y_67";
22
- const closeButton = "_closeButton_1960y_81";
14
+ const closeButton = "sj_sSW_closeButton_";
15
+ const content = "sj_sSW_content_";
16
+ const drawer = "sj_sSW_drawer_";
17
+ const full = "sj_sSW_full_";
18
+ const large = "sj_sSW_large_";
19
+ const medium = "sj_sSW_medium_";
20
+ const overlay$1 = "sj_sSW_overlay_";
21
+ const small = "sj_sSW_small_";
22
+ const xLarge = "sj_sSW_xLarge_";
23
23
  const styles = {
24
+ closeButton,
25
+ content,
24
26
  drawer,
27
+ full,
28
+ large,
29
+ medium,
25
30
  overlay: overlay$1,
26
- content,
27
31
  small,
28
- medium,
29
- large,
30
- xLarge,
31
- full,
32
- closeButton
32
+ xLarge
33
33
  };
34
34
  const overlay = {
35
35
  visible: { opacity: 1, transition: { duration: 0.15 } },
package/dist/index.js CHANGED
@@ -35,25 +35,25 @@ const classix = require("classix");
35
35
  const framerMotion = require("framer-motion");
36
36
  const react = require("react");
37
37
  const DRAWER_LABELLED_BY = "drawer-title";
38
- const drawer = "_drawer_1960y_12";
39
- const overlay$1 = "_overlay_1960y_31";
40
- const content = "_content_1960y_37";
41
- const small = "_small_1960y_51";
42
- const medium = "_medium_1960y_55";
43
- const large = "_large_1960y_59";
44
- const xLarge = "_xLarge_1960y_63";
45
- const full = "_full_1960y_67";
46
- const closeButton = "_closeButton_1960y_81";
38
+ const closeButton = "sj_sSW_closeButton_";
39
+ const content = "sj_sSW_content_";
40
+ const drawer = "sj_sSW_drawer_";
41
+ const full = "sj_sSW_full_";
42
+ const large = "sj_sSW_large_";
43
+ const medium = "sj_sSW_medium_";
44
+ const overlay$1 = "sj_sSW_overlay_";
45
+ const small = "sj_sSW_small_";
46
+ const xLarge = "sj_sSW_xLarge_";
47
47
  const styles = {
48
+ closeButton,
49
+ content,
48
50
  drawer,
51
+ full,
52
+ large,
53
+ medium,
49
54
  overlay: overlay$1,
50
- content,
51
55
  small,
52
- medium,
53
- large,
54
- xLarge,
55
- full,
56
- closeButton
56
+ xLarge
57
57
  };
58
58
  const overlay = {
59
59
  visible: { opacity: 1, transition: { duration: 0.15 } },
package/dist/style.css CHANGED
@@ -1,81 +1 @@
1
- :root,
2
- [data-theme='default'] {
3
- --lp-component-drawer-color-bg-overlay: rgba(40, 40, 40, 0.5);
4
- }
5
- [data-theme='dark'] {
6
- --lp-component-drawer-color-bg-overlay: rgba(25, 25, 25, 0.75);
7
- }
8
- ._drawer_1960y_12 {
9
- --page-gutter-width: 0.625rem;
10
-
11
- z-index: var(--lp-z-index-400);
12
- position: fixed;
13
- top: 0;
14
- right: 0;
15
- bottom: 0;
16
- left: 0;
17
- transform: translateZ(0);
18
- }
19
- @media screen and (min-width: 740px) {
20
- ._drawer_1960y_12 {
21
- --page-gutter-width: 2.5rem;
22
- }
23
- }
24
- .has-overlay {
25
- overflow: hidden;
26
- }
27
- ._overlay_1960y_31 {
28
- position: fixed;
29
- top: 0;
30
- right: 0;
31
- bottom: 0;
32
- left: 0;
33
- background-color: rgba(40, 40, 40, 0.5);
34
- background-color: var(--lp-component-drawer-color-bg-overlay);
35
- }
36
- ._content_1960y_37 {
37
- background-color: var(--lp-color-bg-ui-primary);
38
- position: absolute;
39
- top: 0;
40
- bottom: 0;
41
- right: 0;
42
- overflow: auto;
43
- width: 100vw;
44
- max-width: 100vw;
45
- color: var(--lp-color-text-ui-secondary);
46
- box-shadow: -1px 0 4px var(--lp-color-shadow-ui-primary);
47
- }
48
- @media screen and (min-width: 740px) {
49
- ._small_1960y_51 ._content_1960y_37 {
50
- width: 28.125rem;
51
- }
52
-
53
- ._medium_1960y_55 ._content_1960y_37 {
54
- width: 40.625rem;
55
- }
56
-
57
- ._large_1960y_59 ._content_1960y_37 {
58
- width: 50rem;
59
- }
60
-
61
- ._xLarge_1960y_63 ._content_1960y_37 {
62
- width: 75rem;
63
- }
64
-
65
- ._full_1960y_67 ._content_1960y_37 {
66
- width: 100%;
67
- max-width: none;
68
- max-width: initial;
69
- }
70
- }
71
- ._content_1960y_37 section {
72
- padding: 2rem var(--page-gutter-width);
73
- }
74
- ._content_1960y_37 section + section {
75
- border-top: 1px dotted var(--lp-color-gray-100);
76
- }
77
- ._closeButton_1960y_81 {
78
- position: absolute;
79
- right: 0.625rem;
80
- top: 0.625rem;
81
- }
1
+ :root,[data-theme=default]{--lp-component-drawer-color-bg-overlay:#28282880}[data-theme=dark]{--lp-component-drawer-color-bg-overlay:#191919bf}.sj_sSW_drawer_{--page-gutter-width:.625rem;z-index:var(--lp-z-index-400);position:fixed;top:0;bottom:0;left:0;right:0;transform:translateZ(0)}@media screen and (min-width:740px){.sj_sSW_drawer_{--page-gutter-width:2.5rem}}.has-overlay{overflow:hidden}.sj_sSW_overlay_{background-color:var(--lp-component-drawer-color-bg-overlay);position:fixed;top:0;bottom:0;left:0;right:0}.sj_sSW_content_{background-color:var(--lp-color-bg-ui-primary);color:var(--lp-color-text-ui-secondary);box-shadow:-1px 0 4px var(--lp-color-shadow-ui-primary);width:100vw;max-width:100vw;position:absolute;top:0;bottom:0;right:0;overflow:auto}@media screen and (min-width:740px){.sj_sSW_small_ .sj_sSW_content_{width:28.125rem}.sj_sSW_medium_ .sj_sSW_content_{width:40.625rem}.sj_sSW_large_ .sj_sSW_content_{width:50rem}.sj_sSW_xLarge_ .sj_sSW_content_{width:75rem}.sj_sSW_full_ .sj_sSW_content_{max-width:unset;width:100%}}.sj_sSW_content_ section{padding:2rem var(--page-gutter-width)}.sj_sSW_content_ section+section{border-top:1px dotted var(--lp-color-gray-100)}.sj_sSW_closeButton_{position:absolute;top:.625rem;right:.625rem}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchpad-ui/drawer",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "status": "alpha",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -29,10 +29,10 @@
29
29
  "@react-aria/interactions": "3.20.1",
30
30
  "@react-aria/overlays": "3.20.0",
31
31
  "classix": "2.1.17",
32
- "framer-motion": "10.17.0",
33
- "@launchpad-ui/button": "~0.11.10",
32
+ "framer-motion": "10.18.0",
33
+ "@launchpad-ui/button": "~0.11.11",
34
34
  "@launchpad-ui/focus-trap": "~0.1.15",
35
- "@launchpad-ui/icons": "~0.14.10",
35
+ "@launchpad-ui/icons": "~0.15.0",
36
36
  "@launchpad-ui/portal": "~0.1.4",
37
37
  "@launchpad-ui/progress": "~0.5.37",
38
38
  "@launchpad-ui/tokens": "~0.9.3"