Skip to content

Commit 33a9046

Browse files
committed
update sass usage
1 parent 8f56ca5 commit 33a9046

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@
5252
"pack": "yarn pack"
5353
},
5454
"dependencies": {
55-
"clsx": "^2.1.0",
55+
"clsx": "^2.1.1",
5656
"memoize-one": "^6.0.0"
5757
},
5858
"devDependencies": {
59-
"@reactunity/renderer": "^0.18.0",
60-
"@reactunity/scripts": "^0.18.3",
61-
"concurrently": "^8.2.2",
59+
"@reactunity/renderer": "^0.19.1",
60+
"@reactunity/scripts": "^0.19.2",
61+
"concurrently": "^9.1.0",
6262
"copyfiles": "^2.4.1",
6363
"onchange": "^7.1.0",
64-
"rimraf": "^5.0.5",
65-
"typescript": "^5.4.4"
64+
"rimraf": "^6.0.1",
65+
"typescript": "^5.6.3"
6666
},
6767
"peerDependencies": {
6868
"@reactunity/renderer": "*",

src/alert/index.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@import "../styles/variables";
2-
@import "../styles/common/dialog";
1+
@use "../styles/variables";
2+
@use "../styles/common/dialog";

src/confirm/index.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@import "../styles/variables";
2-
@import "../styles/common/dialog";
1+
@use "../styles/variables";
2+
@use "../styles/common/dialog";

src/input/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../styles";
1+
@use "../styles";
22

33
$textColor: black;
44
$focusedColor: black;

src/modal/index.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../styles";
1+
@use "../styles" as helpers;
22

33
.host {
44
z-index: 1000;
@@ -11,7 +11,7 @@
1111
overflow: auto;
1212
overscroll-behavior: contain;
1313

14-
@include fullCover();
14+
@include helpers.fullCover();
1515

1616
&.opened {
1717
animation: appearAnim 400ms both;
@@ -54,7 +54,7 @@
5454
}
5555

5656
.content {
57-
@include elevation(5);
57+
@include helpers.elevation(5);
5858

5959
font-size: 1rem;
6060
box-sizing: border-box;
@@ -70,7 +70,7 @@
7070
border-radius: 50%;
7171
background-color: #bfbcbc;
7272
color: black;
73-
@include elevation(2);
73+
@include helpers.elevation(2);
7474

7575
position: absolute;
7676
transform: translate(50%, -50%) scale(0.8);

src/prompt/index.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import "../styles/variables";
2-
@import "../styles/common/dialog";
1+
@use "../styles/variables";
2+
@use "../styles/common/dialog";
33

44
.input {
55
font-size: 1em;

src/styles/common/dialog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "..";
1+
@use "../index.scss" as index;
22

33
.host :global(.mat-modal-content) {
44
padding: 18px;
@@ -24,7 +24,7 @@
2424
.error {
2525
font-size: 1em;
2626
margin-top: 8px;
27-
color: $error;
27+
color: index.$error;
2828
}
2929

3030
.buttons {

src/styles/globals.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@import "./elevation";
1+
@use "./elevation" as el;
22

33
.mat-elevation-0 {
44
box-shadow: none;
55
}
66

77
@for $var from 1 to 24 {
88
.mat-elevation-#{$var} {
9-
@include elevation($var);
9+
@include el.elevation($var);
1010
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1111
}
1212
}

src/styles/index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@import "./helpers";
2-
@import "./elevation";
3-
@import "./variables";
1+
@forward "./helpers";
2+
@forward "./elevation";
3+
@forward "./variables";

src/text/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../styles";
1+
@use "../styles";
22

33
.host {
44
.input {

0 commit comments

Comments
 (0)