@new-ui/effects 0.1.6 → 0.1.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/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +5 -5
- package/src/_variables.scss +39 -22
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--dialog-strong:0px 16px 48px
|
|
1
|
+
:root{--dialog-strong:0px 16px 48px #00000029;--dialog:0px 0px 0px .5px #0000000f,0px 12px 24px #00000014,0px 2px 3px #0000000a;--content:0px 2px 3px #0000000f;--canvas:0px 0px 0px #0000;--keyboard-key:0 2px 0px var(--grey4);--focus-default:0px 0px 0px 2px var(--blue5);--focus-accent:0px 0px 0px 2px var(--blue8);--focus-inverse:0px 0px 0px 2px var(--white);--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--blur-xs:.25rem;--blur-sm:.5rem;--blur-md:.75rem;--blur-lg:1rem;--blur-xl:1.5rem;--blur-2xl:2.5rem;--blur-3xl:4rem;--perspective-dramatic:6.25rem;--perspective-near:18.75rem;--perspective-normal:31.25rem;--perspective-midrange:50rem;--perspective-distant:75rem;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}.sh-dialog--strong{box-shadow:var(--dialog-strong)}.sh-dialog{box-shadow:var(--dialog)}.sh-content{box-shadow:var(--content)}.sh-canvas{box-shadow:var(--canvas)}.sh-default{box-shadow:var(--focus-default)}.sh-accent{box-shadow:var(--focus-accent)}.sh-inverse{box-shadow:var(--focus-inverse)}
|
|
2
2
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"ACAA,
|
|
1
|
+
{"mappings":"ACAA,y3BCAA,mDAIA,oCAIA,sCAIA,oCAIA,4CAIA,0CAIA","sources":["index.css","src/_variables.scss","src/_utilities.scss"],"sourcesContent":[":root {\n --dialog-strong: 0px 16px 48px #00000029;\n --dialog: 0px 0px 0px .5px #0000000f, 0px 12px 24px #00000014, 0px 2px 3px #0000000a;\n --content: 0px 2px 3px #0000000f;\n --canvas: 0px 0px 0px #0000;\n --keyboard-key: 0 2px 0px var(--grey4);\n --focus-default: 0px 0px 0px 2px var(--blue5);\n --focus-accent: 0px 0px 0px 2px var(--blue8);\n --focus-inverse: 0px 0px 0px 2px var(--white);\n --radius-xs: .125rem;\n --radius-sm: .25rem;\n --radius-md: .375rem;\n --radius-lg: .5rem;\n --radius-xl: .75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n --blur-xs: .25rem;\n --blur-sm: .5rem;\n --blur-md: .75rem;\n --blur-lg: 1rem;\n --blur-xl: 1.5rem;\n --blur-2xl: 2.5rem;\n --blur-3xl: 4rem;\n --perspective-dramatic: 6.25rem;\n --perspective-near: 18.75rem;\n --perspective-normal: 31.25rem;\n --perspective-midrange: 50rem;\n --perspective-distant: 75rem;\n --aspect-video: 16 / 9;\n --default-transition-duration: .15s;\n --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n}\n\n.sh-dialog--strong {\n box-shadow: var(--dialog-strong);\n}\n\n.sh-dialog {\n box-shadow: var(--dialog);\n}\n\n.sh-content {\n box-shadow: var(--content);\n}\n\n.sh-canvas {\n box-shadow: var(--canvas);\n}\n\n.sh-default {\n box-shadow: var(--focus-default);\n}\n\n.sh-accent {\n box-shadow: var(--focus-accent);\n}\n\n.sh-inverse {\n box-shadow: var(--focus-inverse);\n}\n/*# sourceMappingURL=index.css.map */\n",":root {\n // Shadows\n --dialog-strong: 0px 16px 48px rgba(0, 0, 0, 0.16);\n --dialog: 0px 0px 0px 0.5px rgba(0, 0, 0, 0.06),\n 0px 12px 24px rgba(0, 0, 0, 0.08), \n 0px 2px 3px rgba(0, 0, 0, 0.04);\n --content: 0px 2px 3px rgba(0, 0, 0, 0.06);\n --canvas: 0px 0px 0px rgba(0, 0, 0, 0);\n --keyboard-key: 0 2px 0px var(--grey4);\n\n // Focus\n --focus-default: 0px 0px 0px 2px var(--blue5);\n --focus-accent: 0px 0px 0px 2px var(--blue8);\n --focus-inverse: 0px 0px 0px 2px var(--white);\n\n // Radius\n --radius-xs: 0.125rem;\n --radius-sm: 0.25rem;\n --radius-md: 0.375rem;\n --radius-lg: 0.5rem;\n --radius-xl: 0.75rem;\n --radius-2xl: 1rem;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n\n // Blur\n --blur-xs: 0.25rem;\n --blur-sm: 0.5rem;\n --blur-md: 0.75rem;\n --blur-lg: 1.0rem;\n --blur-xl: 1.5rem;\n --blur-2xl: 2.5rem;\n --blur-3xl: 4.0rem;\n\n // Perspective\n --perspective-dramatic: 6.25rem;\n --perspective-near: 18.75rem;\n --perspective-normal: 31.25rem;\n --perspective-midrange: 50.0rem;\n --perspective-distant: 75.0rem;\n\n // Aspect Video\n --aspect-video: 16 / 9;\n\n // Transition Duration\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n",".sh-dialog--strong {\n box-shadow: var(--dialog-strong);\n}\n\n.sh-dialog {\n box-shadow: var(--dialog);\n}\n\n.sh-content {\n box-shadow: var(--content);\n}\n\n.sh-canvas {\n box-shadow: var(--canvas);\n}\n\n.sh-default {\n box-shadow: var(--focus-default);\n}\n\n.sh-accent {\n box-shadow: var(--focus-accent);\n}\n\n.sh-inverse {\n box-shadow: var(--focus-inverse);\n}\n"],"names":[],"version":3,"file":"index.css.map"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-ui/effects",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Layering, elevations, and effects styles
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Layering, elevations, and effects styles",
|
|
5
5
|
"source": "src/index.scss",
|
|
6
6
|
"main": "dist/index.css",
|
|
7
7
|
"targets": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/NewDesignFile/foundations#readme",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@parcel/transformer-sass": "^2.
|
|
32
|
-
"autoprefixer": "^10.4.
|
|
33
|
-
"parcel": "^2.
|
|
31
|
+
"@parcel/transformer-sass": "^2.16.1",
|
|
32
|
+
"autoprefixer": "^10.4.22",
|
|
33
|
+
"parcel": "^2.16.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/_variables.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
// Shadows
|
|
3
|
-
--dialog-strong: 0px 16px 48px
|
|
4
|
-
--dialog: 0px 0px 0px
|
|
5
|
-
0px 12px
|
|
6
|
-
0px 2px 3px
|
|
7
|
-
--content: 0px 2px 3px
|
|
3
|
+
--dialog-strong: 0px 16px 48px rgba(0, 0, 0, 0.16);
|
|
4
|
+
--dialog: 0px 0px 0px 0.5px rgba(0, 0, 0, 0.06),
|
|
5
|
+
0px 12px 24px rgba(0, 0, 0, 0.08),
|
|
6
|
+
0px 2px 3px rgba(0, 0, 0, 0.04);
|
|
7
|
+
--content: 0px 2px 3px rgba(0, 0, 0, 0.06);
|
|
8
8
|
--canvas: 0px 0px 0px rgba(0, 0, 0, 0);
|
|
9
9
|
--keyboard-key: 0 2px 0px var(--grey4);
|
|
10
10
|
|
|
@@ -13,20 +13,37 @@
|
|
|
13
13
|
--focus-accent: 0px 0px 0px 2px var(--blue8);
|
|
14
14
|
--focus-inverse: 0px 0px 0px 2px var(--white);
|
|
15
15
|
|
|
16
|
-
//
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
|
|
16
|
+
// Radius
|
|
17
|
+
--radius-xs: 0.125rem;
|
|
18
|
+
--radius-sm: 0.25rem;
|
|
19
|
+
--radius-md: 0.375rem;
|
|
20
|
+
--radius-lg: 0.5rem;
|
|
21
|
+
--radius-xl: 0.75rem;
|
|
22
|
+
--radius-2xl: 1rem;
|
|
23
|
+
--radius-3xl: 1.5rem;
|
|
24
|
+
--radius-4xl: 2rem;
|
|
25
|
+
|
|
26
|
+
// Blur
|
|
27
|
+
--blur-xs: 0.25rem;
|
|
28
|
+
--blur-sm: 0.5rem;
|
|
29
|
+
--blur-md: 0.75rem;
|
|
30
|
+
--blur-lg: 1.0rem;
|
|
31
|
+
--blur-xl: 1.5rem;
|
|
32
|
+
--blur-2xl: 2.5rem;
|
|
33
|
+
--blur-3xl: 4.0rem;
|
|
34
|
+
|
|
35
|
+
// Perspective
|
|
36
|
+
--perspective-dramatic: 6.25rem;
|
|
37
|
+
--perspective-near: 18.75rem;
|
|
38
|
+
--perspective-normal: 31.25rem;
|
|
39
|
+
--perspective-midrange: 50.0rem;
|
|
40
|
+
--perspective-distant: 75.0rem;
|
|
41
|
+
|
|
42
|
+
// Aspect Video
|
|
43
|
+
--aspect-video: 16 / 9;
|
|
44
|
+
|
|
45
|
+
// Transition Duration
|
|
46
|
+
--default-transition-duration: 150ms;
|
|
47
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
|
+
}
|
|
49
|
+
|