webcoreui 0.6.1 → 0.8.0
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/README.md +46 -7
- package/astro.d.ts +21 -0
- package/astro.js +14 -0
- package/components/Accordion/Accordion.astro +32 -20
- package/components/Accordion/Accordion.svelte +22 -4
- package/components/Accordion/Accordion.tsx +29 -7
- package/components/Accordion/accordion.module.scss +12 -0
- package/components/Accordion/accordion.ts +4 -0
- package/components/AspectRatio/AspectRatio.astro +21 -0
- package/components/AspectRatio/AspectRatio.svelte +19 -0
- package/components/AspectRatio/AspectRatio.tsx +28 -0
- package/components/AspectRatio/aspect-ratio.module.scss +10 -0
- package/components/AspectRatio/aspectratio.ts +8 -0
- package/components/Banner/Banner.astro +56 -0
- package/components/Banner/Banner.svelte +47 -0
- package/components/Banner/Banner.tsx +54 -0
- package/components/Banner/banner.module.scss +57 -0
- package/components/Banner/banner.ts +12 -0
- package/components/Breadcrumb/breadcrumb.module.scss +26 -26
- package/components/Button/button.module.scss +4 -0
- package/components/Carousel/carousel.module.scss +1 -1
- package/components/Collapsible/collapsible.module.scss +29 -29
- package/components/ConditionalWrapper/conditionalwrapper.ts +1 -0
- package/components/DataTable/datatable.module.scss +102 -102
- package/components/Footer/footer.module.scss +61 -61
- package/components/Group/group.module.scss +43 -43
- package/components/Icon/map.ts +2 -0
- package/components/Kbd/Kbd.astro +20 -0
- package/components/Kbd/Kbd.svelte +18 -0
- package/components/Kbd/Kbd.tsx +27 -0
- package/components/Kbd/kbd.module.scss +8 -0
- package/components/Kbd/kbd.ts +26 -0
- package/components/Kbd/keyMap.ts +21 -0
- package/components/List/list.module.scss +91 -91
- package/components/Masonry/masonry.module.scss +1 -1
- package/components/Modal/modal.module.scss +110 -110
- package/components/Pagination/pagination.module.scss +1 -1
- package/components/Popover/popover.module.scss +52 -52
- package/components/Ribbon/Ribbon.astro +28 -0
- package/components/Ribbon/Ribbon.svelte +26 -0
- package/components/Ribbon/Ribbon.tsx +33 -0
- package/components/Ribbon/ribbon.module.scss +84 -0
- package/components/Ribbon/ribbon.ts +16 -0
- package/components/Select/select.module.scss +25 -25
- package/components/Sheet/sheet.module.scss +68 -68
- package/components/Sidebar/sidebar.module.scss +43 -43
- package/components/Skeleton/Skeleton.astro +35 -0
- package/components/Skeleton/Skeleton.svelte +31 -0
- package/components/Skeleton/Skeleton.tsx +34 -0
- package/components/Skeleton/skeleton.module.scss +68 -0
- package/components/Skeleton/skeleton.ts +9 -0
- package/components/Slider/slider.module.scss +68 -68
- package/components/Spoiler/Spoiler.astro +50 -0
- package/components/Spoiler/Spoiler.svelte +45 -0
- package/components/Spoiler/Spoiler.tsx +50 -0
- package/components/Spoiler/spoiler.module.scss +40 -0
- package/components/Spoiler/spoiler.ts +11 -0
- package/components/Stepper/Stepper.astro +61 -0
- package/components/Stepper/Stepper.svelte +59 -0
- package/components/Stepper/Stepper.tsx +60 -0
- package/components/Stepper/stepper.module.scss +102 -0
- package/components/Stepper/stepper.ts +17 -0
- package/components/Table/Table.tsx +1 -1
- package/components/Textarea/textarea.module.scss +36 -36
- package/icons/close.svg +1 -1
- package/icons/plus.svg +3 -0
- package/icons.d.ts +1 -0
- package/icons.js +1 -0
- package/package.json +5 -5
- package/react.d.ts +21 -0
- package/react.js +14 -0
- package/scss/config/color-palette.scss +2 -0
- package/scss/config/css-values.scss +2 -0
- package/scss/config/layout.scss +2 -0
- package/scss/config/mixins.scss +7 -0
- package/scss/config/typography.scss +2 -0
- package/scss/config/variables.scss +2 -0
- package/scss/config.scss +7 -7
- package/scss/global/utility.scss +4 -0
- package/scss/global.scss +4 -4
- package/scss/index.scss +3 -3
- package/scss/resets.scss +10 -5
- package/scss/setup.scss +7 -1
- package/svelte.d.ts +21 -0
- package/svelte.js +14 -0
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
.group {
|
|
4
|
-
@include layout(flex, none);
|
|
5
|
-
@include visibility(auto);
|
|
6
|
-
|
|
7
|
-
button,
|
|
8
|
-
span {
|
|
9
|
-
@include border-radius(none);
|
|
10
|
-
|
|
11
|
-
&:first-child {
|
|
12
|
-
@include border-radius(left, md);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&:last-child {
|
|
16
|
-
@include border-radius(right, md);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.separator button:not(:last-child),
|
|
21
|
-
&.separator span:not(:last-child) {
|
|
22
|
-
@include border(1px, right, primary-70);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.outline button
|
|
26
|
-
&.outline span {
|
|
27
|
-
@include border(1px, primary-20);
|
|
28
|
-
box-shadow: none;
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
@include border(1px, primary);
|
|
32
|
-
box-shadow: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:first-child {
|
|
36
|
-
@include border(right, 0);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:last-child {
|
|
40
|
-
@include border(left, 0);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
@use '../../scss/config.scss' as *;
|
|
2
|
+
|
|
3
|
+
.group {
|
|
4
|
+
@include layout(flex, none);
|
|
5
|
+
@include visibility(auto);
|
|
6
|
+
|
|
7
|
+
button,
|
|
8
|
+
span {
|
|
9
|
+
@include border-radius(none);
|
|
10
|
+
|
|
11
|
+
&:first-child {
|
|
12
|
+
@include border-radius(left, md);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
@include border-radius(right, md);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.separator button:not(:last-child),
|
|
21
|
+
&.separator span:not(:last-child) {
|
|
22
|
+
@include border(1px, right, primary-70);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.outline button
|
|
26
|
+
&.outline span {
|
|
27
|
+
@include border(1px, primary-20);
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
@include border(1px, primary);
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:first-child {
|
|
36
|
+
@include border(right, 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:last-child {
|
|
40
|
+
@include border(left, 0);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
package/components/Icon/map.ts
CHANGED
|
@@ -13,6 +13,7 @@ import Home from '../../icons/home.svg?raw'
|
|
|
13
13
|
import Info from '../../icons/info.svg?raw'
|
|
14
14
|
import Moon from '../../icons/moon.svg?raw'
|
|
15
15
|
import Order from '../../icons/order.svg?raw'
|
|
16
|
+
import Plus from '../../icons/plus.svg?raw'
|
|
16
17
|
import Search from '../../icons/search.svg?raw'
|
|
17
18
|
import Sun from '../../icons/sun.svg?raw'
|
|
18
19
|
import Warning from '../../icons/warning.svg?raw'
|
|
@@ -33,6 +34,7 @@ const iconMap = {
|
|
|
33
34
|
'info': Info,
|
|
34
35
|
'moon': Moon,
|
|
35
36
|
'order': Order,
|
|
37
|
+
'plus': Plus,
|
|
36
38
|
'search': Search,
|
|
37
39
|
'sun': Sun,
|
|
38
40
|
'warning': Warning
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { KbdProps } from './kbd'
|
|
3
|
+
import { keyMap } from './keyMap'
|
|
4
|
+
|
|
5
|
+
import styles from './kbd.module.scss'
|
|
6
|
+
|
|
7
|
+
interface Props extends KbdProps {}
|
|
8
|
+
|
|
9
|
+
const {
|
|
10
|
+
keys,
|
|
11
|
+
className
|
|
12
|
+
} = Astro.props
|
|
13
|
+
|
|
14
|
+
const classes = [
|
|
15
|
+
styles.kbd,
|
|
16
|
+
className
|
|
17
|
+
]
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<kbd class:list={classes}>{keys?.map(key => keyMap[key])}<slot /></kbd>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { KbdProps } from './kbd'
|
|
3
|
+
import { keyMap } from './keyMap'
|
|
4
|
+
|
|
5
|
+
import { classNames } from '../../utils/classNames'
|
|
6
|
+
|
|
7
|
+
import styles from './kbd.module.scss'
|
|
8
|
+
|
|
9
|
+
export let keys: KbdProps['keys'] = []
|
|
10
|
+
export let className: KbdProps['className'] = ''
|
|
11
|
+
|
|
12
|
+
const classes = classNames([
|
|
13
|
+
styles.kbd,
|
|
14
|
+
className
|
|
15
|
+
])
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<kbd class={classes}>{keys?.map(key => keyMap[key]).join('')}<slot /></kbd>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import type { ReactKbdProps } from './kbd'
|
|
3
|
+
import { keyMap } from './keyMap'
|
|
4
|
+
|
|
5
|
+
import { classNames } from '../../utils/classNames'
|
|
6
|
+
|
|
7
|
+
import styles from './kbd.module.scss'
|
|
8
|
+
|
|
9
|
+
const Kbd = ({
|
|
10
|
+
keys,
|
|
11
|
+
className,
|
|
12
|
+
children
|
|
13
|
+
}: ReactKbdProps) => {
|
|
14
|
+
const classes = classNames([
|
|
15
|
+
styles.kbd,
|
|
16
|
+
className
|
|
17
|
+
])
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<kbd className={classes}>
|
|
21
|
+
{keys?.map(key => keyMap[key]).join('')}
|
|
22
|
+
{children}
|
|
23
|
+
</kbd>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default Kbd
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type KbdProps = {
|
|
2
|
+
keys?: ('cmd'
|
|
3
|
+
| 'shift'
|
|
4
|
+
| 'ctrl'
|
|
5
|
+
| 'option'
|
|
6
|
+
| 'enter'
|
|
7
|
+
| 'del'
|
|
8
|
+
| 'esc'
|
|
9
|
+
| 'tab'
|
|
10
|
+
| 'capslock'
|
|
11
|
+
| 'up'
|
|
12
|
+
| 'down'
|
|
13
|
+
| 'left'
|
|
14
|
+
| 'right'
|
|
15
|
+
| 'pageup'
|
|
16
|
+
| 'pagedown'
|
|
17
|
+
| 'home'
|
|
18
|
+
| 'end'
|
|
19
|
+
| 'help'
|
|
20
|
+
| 'space')[]
|
|
21
|
+
className?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ReactKbdProps = {
|
|
25
|
+
children?: React.ReactNode
|
|
26
|
+
} & KbdProps
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const keyMap = {
|
|
2
|
+
cmd: '⌘',
|
|
3
|
+
shift: '⇧',
|
|
4
|
+
ctrl: '⌃',
|
|
5
|
+
option: '⌥',
|
|
6
|
+
enter: '↵',
|
|
7
|
+
del: '⌫',
|
|
8
|
+
esc: '⎋',
|
|
9
|
+
tab: '⇥',
|
|
10
|
+
capslock: '⇪',
|
|
11
|
+
up: '↑',
|
|
12
|
+
down: '↓',
|
|
13
|
+
left: '←',
|
|
14
|
+
right: '→',
|
|
15
|
+
pageup: '⇞',
|
|
16
|
+
pagedown: '⇟',
|
|
17
|
+
home: '↖',
|
|
18
|
+
end: '↘',
|
|
19
|
+
help: '?',
|
|
20
|
+
space: '␣'
|
|
21
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
.list {
|
|
4
|
-
@include spacing(0);
|
|
5
|
-
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
list-style-type: none;
|
|
8
|
-
|
|
9
|
-
&:hover li[data-selected] {
|
|
10
|
-
@include background(transparent);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
li {
|
|
14
|
-
@include transition(background);
|
|
15
|
-
@include spacing(px-sm, py-xs, m-xs);
|
|
16
|
-
@include layout(flex, sm, v-center);
|
|
17
|
-
@include border-radius(md);
|
|
18
|
-
|
|
19
|
-
&:not(.title, [data-disabled]) {
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:not(.title, [data-disabled]):hover,
|
|
24
|
-
&[data-selected] {
|
|
25
|
-
@include background(primary-40);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&[data-disabled],
|
|
29
|
-
&[data-disabled] span {
|
|
30
|
-
@include typography(primary-30);
|
|
31
|
-
|
|
32
|
-
cursor: default;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&[data-hidden] {
|
|
36
|
-
@include visibility(none);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&[data-id="w-no-results"] {
|
|
40
|
-
@include layout(h-center);
|
|
41
|
-
cursor: default;
|
|
42
|
-
|
|
43
|
-
&:hover {
|
|
44
|
-
@include background(transparent);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.title {
|
|
49
|
-
@include typography(md, primary-20);
|
|
50
|
-
@include spacing(m0);
|
|
51
|
-
|
|
52
|
-
padding-bottom: 0;
|
|
53
|
-
|
|
54
|
-
&:not(:first-child) {
|
|
55
|
-
@include border(top, primary-50);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
svg {
|
|
60
|
-
@include size(18px);
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
a,
|
|
65
|
-
div {
|
|
66
|
-
@include layout(flex, sm, v-center);
|
|
67
|
-
@include typography(none);
|
|
68
|
-
flex: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
div {
|
|
72
|
-
pointer-events: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
span {
|
|
76
|
-
@include typography(md, primary-20);
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.container {
|
|
83
|
-
@include border-radius(md);
|
|
84
|
-
@include border(primary-50);
|
|
85
|
-
|
|
86
|
-
input {
|
|
87
|
-
@include border(top, 0);
|
|
88
|
-
@include border(left, 0);
|
|
89
|
-
@include border(right, 0);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
@use '../../scss/config.scss' as *;
|
|
2
|
+
|
|
3
|
+
.list {
|
|
4
|
+
@include spacing(0);
|
|
5
|
+
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
list-style-type: none;
|
|
8
|
+
|
|
9
|
+
&:hover li[data-selected] {
|
|
10
|
+
@include background(transparent);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
li {
|
|
14
|
+
@include transition(background);
|
|
15
|
+
@include spacing(px-sm, py-xs, m-xs);
|
|
16
|
+
@include layout(flex, sm, v-center);
|
|
17
|
+
@include border-radius(md);
|
|
18
|
+
|
|
19
|
+
&:not(.title, [data-disabled]) {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:not(.title, [data-disabled]):hover,
|
|
24
|
+
&[data-selected] {
|
|
25
|
+
@include background(primary-40);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-disabled],
|
|
29
|
+
&[data-disabled] span {
|
|
30
|
+
@include typography(primary-30);
|
|
31
|
+
|
|
32
|
+
cursor: default;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-hidden] {
|
|
36
|
+
@include visibility(none);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-id="w-no-results"] {
|
|
40
|
+
@include layout(h-center);
|
|
41
|
+
cursor: default;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
@include background(transparent);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.title {
|
|
49
|
+
@include typography(md, primary-20);
|
|
50
|
+
@include spacing(m0);
|
|
51
|
+
|
|
52
|
+
padding-bottom: 0;
|
|
53
|
+
|
|
54
|
+
&:not(:first-child) {
|
|
55
|
+
@include border(top, primary-50);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
svg {
|
|
60
|
+
@include size(18px);
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
a,
|
|
65
|
+
div {
|
|
66
|
+
@include layout(flex, sm, v-center);
|
|
67
|
+
@include typography(none);
|
|
68
|
+
flex: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
div {
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
span {
|
|
76
|
+
@include typography(md, primary-20);
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.container {
|
|
83
|
+
@include border-radius(md);
|
|
84
|
+
@include border(primary-50);
|
|
85
|
+
|
|
86
|
+
input {
|
|
87
|
+
@include border(top, 0);
|
|
88
|
+
@include border(left, 0);
|
|
89
|
+
@include border(right, 0);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
.modal {
|
|
4
|
-
@include transition();
|
|
5
|
-
@include position(fixed, 't50%', 'l50%');
|
|
6
|
-
@include spacing(m0, p-default);
|
|
7
|
-
@include layer(modal);
|
|
8
|
-
@include visibility(block, 0);
|
|
9
|
-
@include border(primary-50);
|
|
10
|
-
@include background(primary-70);
|
|
11
|
-
@include typography(primary);
|
|
12
|
-
@include border-radius(md);
|
|
13
|
-
@include size('w90%');
|
|
14
|
-
|
|
15
|
-
transform: translate(-50%, calc(-50% + 15px));
|
|
16
|
-
max-width: 500px;
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
|
|
19
|
-
&[data-show="true"] {
|
|
20
|
-
@include visibility(1);
|
|
21
|
-
|
|
22
|
-
transform: translate(-50%, -50%);
|
|
23
|
-
pointer-events: all;
|
|
24
|
-
|
|
25
|
-
+ .overlay {
|
|
26
|
-
@include visibility(1);
|
|
27
|
-
pointer-events: all;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.transparent {
|
|
32
|
-
@include border(0);
|
|
33
|
-
@include spacing(p0);
|
|
34
|
-
@include size('wfit-content');
|
|
35
|
-
@include background(transparent);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.info {
|
|
39
|
-
@include border(info);
|
|
40
|
-
|
|
41
|
-
.title {
|
|
42
|
-
@include typography(info);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.success {
|
|
47
|
-
@include border(success);
|
|
48
|
-
|
|
49
|
-
.title {
|
|
50
|
-
@include typography(success);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.warning {
|
|
55
|
-
@include border(warning);
|
|
56
|
-
|
|
57
|
-
.title {
|
|
58
|
-
@include typography(warning);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.alert {
|
|
63
|
-
@include border(alert);
|
|
64
|
-
|
|
65
|
-
.title {
|
|
66
|
-
@include typography(alert);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.close {
|
|
71
|
-
@include position(absolute, t10px, r10px);
|
|
72
|
-
@include spacing(p-xs);
|
|
73
|
-
|
|
74
|
-
svg {
|
|
75
|
-
@include size(10px);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.title {
|
|
80
|
-
@include typography(lg);
|
|
81
|
-
@include spacing(mb-xs);
|
|
82
|
-
@include layout(flex, v-center, xs);
|
|
83
|
-
|
|
84
|
-
svg {
|
|
85
|
-
@include size(20px);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.subTitle {
|
|
90
|
-
@include typography(primary-20);
|
|
91
|
-
@include spacing(mb-xs);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.overlay {
|
|
96
|
-
@include transition(opacity);
|
|
97
|
-
@include position(fixed);
|
|
98
|
-
@include background(overlay);
|
|
99
|
-
@include layer(header);
|
|
100
|
-
@include visibility(0);
|
|
101
|
-
|
|
102
|
-
inset: 0;
|
|
103
|
-
pointer-events: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@include media(xs) {
|
|
107
|
-
.modal {
|
|
108
|
-
@include size('wauto');
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
@use '../../scss/config.scss' as *;
|
|
2
|
+
|
|
3
|
+
.modal {
|
|
4
|
+
@include transition();
|
|
5
|
+
@include position(fixed, 't50%', 'l50%');
|
|
6
|
+
@include spacing(m0, p-default);
|
|
7
|
+
@include layer(modal);
|
|
8
|
+
@include visibility(block, 0);
|
|
9
|
+
@include border(primary-50);
|
|
10
|
+
@include background(primary-70);
|
|
11
|
+
@include typography(primary);
|
|
12
|
+
@include border-radius(md);
|
|
13
|
+
@include size('w90%');
|
|
14
|
+
|
|
15
|
+
transform: translate(-50%, calc(-50% + 15px));
|
|
16
|
+
max-width: 500px;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
|
|
19
|
+
&[data-show="true"] {
|
|
20
|
+
@include visibility(1);
|
|
21
|
+
|
|
22
|
+
transform: translate(-50%, -50%);
|
|
23
|
+
pointer-events: all;
|
|
24
|
+
|
|
25
|
+
+ .overlay {
|
|
26
|
+
@include visibility(1);
|
|
27
|
+
pointer-events: all;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.transparent {
|
|
32
|
+
@include border(0);
|
|
33
|
+
@include spacing(p0);
|
|
34
|
+
@include size('wfit-content');
|
|
35
|
+
@include background(transparent);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.info {
|
|
39
|
+
@include border(info);
|
|
40
|
+
|
|
41
|
+
.title {
|
|
42
|
+
@include typography(info);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.success {
|
|
47
|
+
@include border(success);
|
|
48
|
+
|
|
49
|
+
.title {
|
|
50
|
+
@include typography(success);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.warning {
|
|
55
|
+
@include border(warning);
|
|
56
|
+
|
|
57
|
+
.title {
|
|
58
|
+
@include typography(warning);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.alert {
|
|
63
|
+
@include border(alert);
|
|
64
|
+
|
|
65
|
+
.title {
|
|
66
|
+
@include typography(alert);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.close {
|
|
71
|
+
@include position(absolute, t10px, r10px);
|
|
72
|
+
@include spacing(p-xs);
|
|
73
|
+
|
|
74
|
+
svg {
|
|
75
|
+
@include size(10px);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.title {
|
|
80
|
+
@include typography(lg);
|
|
81
|
+
@include spacing(mb-xs);
|
|
82
|
+
@include layout(flex, v-center, xs);
|
|
83
|
+
|
|
84
|
+
svg {
|
|
85
|
+
@include size(20px);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.subTitle {
|
|
90
|
+
@include typography(primary-20);
|
|
91
|
+
@include spacing(mb-xs);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.overlay {
|
|
96
|
+
@include transition(opacity);
|
|
97
|
+
@include position(fixed);
|
|
98
|
+
@include background(overlay);
|
|
99
|
+
@include layer(header);
|
|
100
|
+
@include visibility(0);
|
|
101
|
+
|
|
102
|
+
inset: 0;
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@include media(xs) {
|
|
107
|
+
.modal {
|
|
108
|
+
@include size('wauto');
|
|
109
|
+
}
|
|
110
|
+
}
|