mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
fixed deprecated api when migrating to sass 3 (#549)
This commit is contained in:
9
package-lock.json
generated
9
package-lock.json
generated
@@ -10,7 +10,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jambonz/ui-kit": "^0.0.21",
|
"@jambonz/ui-kit": "^0.0.22",
|
||||||
"@stripe/react-stripe-js": "^2.6.2",
|
"@stripe/react-stripe-js": "^2.6.2",
|
||||||
"@stripe/stripe-js": "^3.2.0",
|
"@stripe/stripe-js": "^3.2.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
@@ -1033,9 +1033,10 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/ui-kit": {
|
"node_modules/@jambonz/ui-kit": {
|
||||||
"version": "0.0.21",
|
"version": "0.0.22",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/ui-kit/-/ui-kit-0.0.21.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/ui-kit/-/ui-kit-0.0.22.tgz",
|
||||||
"integrity": "sha512-tv0sPhzxS/ctJbgUxLVNY+7IjJb3OAhqrdYpmeW3lmEHi7+sHxpO2oMjaVTPFCN4vYh+QzyzT4eLQjpEUDd6sA==",
|
"integrity": "sha512-kaO094hexaBojrfN94Tm4NvuVi2I04hFnjcCYqQNl+y2h/Q64Gg/bHuqFetG+nVf4/fDQHSny6rLggs84fM2nQ==",
|
||||||
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14"
|
"node": ">= 14"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
"deploy": "npm i && npm run build && npm run pm2"
|
"deploy": "npm i && npm run build && npm run pm2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jambonz/ui-kit": "^0.0.21",
|
"@jambonz/ui-kit": "^0.0.22",
|
||||||
"@stripe/react-stripe-js": "^2.6.2",
|
"@stripe/react-stripe-js": "^2.6.2",
|
||||||
"@stripe/stripe-js": "^3.2.0",
|
"@stripe/stripe-js": "^3.2.0",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@include ui-mixins.m();
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
padding: ui-vars.$px01 ui-vars.$px02;
|
padding: ui-vars.$px01 ui-vars.$px02;
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
@@ -33,6 +32,7 @@
|
|||||||
background-color: ui-vars.$white;
|
background-color: ui-vars.$white;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: vars.$widthinput;
|
max-width: vars.$widthinput;
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: ui-vars.$dark;
|
border-color: ui-vars.$dark;
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin typeahead-input {
|
@mixin typeahead-input {
|
||||||
@include ui-mixins.m();
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
padding: ui-vars.$px01 ui-vars.$px02;
|
padding: ui-vars.$px01 ui-vars.$px02;
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
@@ -37,6 +36,7 @@
|
|||||||
max-width: vars.$widthtypeaheadinput;
|
max-width: vars.$widthtypeaheadinput;
|
||||||
transition: border-color 0.2s ease;
|
transition: border-color 0.2s ease;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: ui-vars.$dark;
|
border-color: ui-vars.$dark;
|
||||||
@@ -84,7 +84,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin typeahead-dropdown {
|
@mixin typeahead-dropdown {
|
||||||
@include ui-mixins.m();
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -93,6 +92,7 @@
|
|||||||
border: 1px solid ui-vars.$dark;
|
border: 1px solid ui-vars.$dark;
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
@include ui-mixins.m();
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin typeahead-option {
|
@mixin typeahead-option {
|
||||||
@@ -126,8 +126,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@include typeahead-input();
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@include typeahead-input();
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
@@ -135,8 +135,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-dropdown {
|
.typeahead-dropdown {
|
||||||
@include typeahead-dropdown();
|
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
@include typeahead-dropdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-option {
|
.typeahead-option {
|
||||||
@@ -149,10 +149,10 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@include typeahead-input();
|
|
||||||
height: 34px;
|
height: 34px;
|
||||||
min-width: 370px;
|
min-width: 370px;
|
||||||
font-size: var(--mxs-size);
|
font-size: var(--mxs-size);
|
||||||
|
@include typeahead-input();
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
@@ -160,13 +160,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-dropdown {
|
.typeahead-dropdown {
|
||||||
@include typeahead-dropdown();
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@include typeahead-dropdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-option {
|
.typeahead-option {
|
||||||
@include typeahead-option();
|
|
||||||
font-size: var(--mxs-size);
|
font-size: var(--mxs-size);
|
||||||
|
@include typeahead-option();
|
||||||
}
|
}
|
||||||
|
|
||||||
.pointerevents {
|
.pointerevents {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
.barGroup {
|
.barGroup {
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
@include mixins.code();
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: ui-vars.$px03;
|
padding: ui-vars.$px03;
|
||||||
color: ui-vars.$pink;
|
color: ui-vars.$pink;
|
||||||
@@ -13,6 +12,7 @@
|
|||||||
margin-top: ui-vars.$px02;
|
margin-top: ui-vars.$px02;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
@include mixins.code();
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@@ -72,7 +72,6 @@
|
|||||||
|
|
||||||
.spanDetailsWrapper {
|
.spanDetailsWrapper {
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
@include mixins.code();
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: ui-vars.$px01;
|
padding: ui-vars.$px01;
|
||||||
background-color: ui-vars.$white;
|
background-color: ui-vars.$white;
|
||||||
@@ -82,6 +81,7 @@
|
|||||||
max-width: ui-vars.$width-tablet-2;
|
max-width: ui-vars.$width-tablet-2;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
@include mixins.code();
|
||||||
|
|
||||||
&__detailsWrapper {
|
&__detailsWrapper {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ input[type="text"],
|
|||||||
input[type="email"],
|
input[type="email"],
|
||||||
input[type="number"],
|
input[type="number"],
|
||||||
input[type="password"] {
|
input[type="password"] {
|
||||||
@include ui-mixins.m();
|
|
||||||
padding: ui-vars.$px01 ui-vars.$px02;
|
padding: ui-vars.$px01 ui-vars.$px02;
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
border: 2px solid ui-vars.$grey;
|
border: 2px solid ui-vars.$grey;
|
||||||
background-color: ui-vars.$white;
|
background-color: ui-vars.$white;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: ui-vars.$dark;
|
border-color: ui-vars.$dark;
|
||||||
@@ -110,11 +110,11 @@ fieldset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@include ui-mixins.m();
|
|
||||||
@include ui-mixins.font-medium();
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@include ui-mixins.font-medium();
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: ui-vars.$jambonz;
|
color: ui-vars.$jambonz;
|
||||||
|
|||||||
@@ -21,10 +21,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__row {
|
&__row {
|
||||||
@include ui-mixins.m();
|
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: ui-vars.$px03;
|
padding: ui-vars.$px03;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
@include mixins.small() {
|
@include mixins.small() {
|
||||||
padding: ui-vars.$px02;
|
padding: ui-vars.$px02;
|
||||||
|
|||||||
@@ -30,11 +30,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
@include ui-mixins.p();
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-gap: ui-vars.$px02;
|
grid-gap: ui-vars.$px02;
|
||||||
color: ui-vars.$jambonz;
|
color: ui-vars.$jambonz;
|
||||||
|
@include ui-mixins.p();
|
||||||
|
|
||||||
+ .item__meta {
|
+ .item__meta {
|
||||||
@include mixins.small() {
|
@include mixins.small() {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@use "sass:color";
|
||||||
@use "./forms";
|
@use "./forms";
|
||||||
// @use "./cards";
|
// @use "./cards";
|
||||||
@use "./lists";
|
@use "./lists";
|
||||||
@@ -68,7 +69,7 @@ details {
|
|||||||
&.ok {
|
&.ok {
|
||||||
color: ui-vars.$teal;
|
color: ui-vars.$teal;
|
||||||
border: 2px solid ui-vars.$teal;
|
border: 2px solid ui-vars.$teal;
|
||||||
background-color: mix(ui-vars.$white, ui-vars.$teal, 95%);
|
background-color: color.mix(ui-vars.$white, ui-vars.$teal, 95%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.not-tested {
|
&.not-tested {
|
||||||
@@ -77,8 +78,8 @@ details {
|
|||||||
}
|
}
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
@include ui-mixins.m();
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@include ui-mixins.m();
|
||||||
|
|
||||||
+ * {
|
+ * {
|
||||||
margin-top: ui-vars.$px02;
|
margin-top: ui-vars.$px02;
|
||||||
@@ -160,7 +161,6 @@ details {
|
|||||||
|
|
||||||
/** Used for recent-calls */
|
/** Used for recent-calls */
|
||||||
.pre-grid {
|
.pre-grid {
|
||||||
@include mixins.code();
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
grid-row-gap: ui-vars.$px01;
|
grid-row-gap: ui-vars.$px01;
|
||||||
@@ -171,6 +171,7 @@ details {
|
|||||||
background-color: ui-vars.$dark;
|
background-color: ui-vars.$dark;
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
margin-top: ui-vars.$px02;
|
margin-top: ui-vars.$px02;
|
||||||
|
@include mixins.code();
|
||||||
}
|
}
|
||||||
|
|
||||||
.pre-grid-white {
|
.pre-grid-white {
|
||||||
|
|||||||
@@ -15,6 +15,15 @@ export default defineConfig(() => {
|
|||||||
src: path.resolve(__dirname, "src"),
|
src: path.resolve(__dirname, "src"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Configure Sass to use the modern API
|
||||||
|
css: {
|
||||||
|
preprocessorOptions: {
|
||||||
|
scss: {
|
||||||
|
api: "modern-compiler",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in New Issue
Block a user