lapikit 0.0.0-insiders.d715369 → 0.0.0-insiders.d7e54b8
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/bin/configuration.js +304 -0
- package/bin/helper.js +23 -0
- package/bin/index.js +41 -0
- package/bin/lapikit.js +37 -5
- package/bin/legacy.js +34 -0
- package/bin/modules/adapter.js +3 -3
- package/bin/modules/plugin.js +223 -0
- package/bin/presets.js +25 -0
- package/bin/prompts.js +100 -0
- package/dist/colors.css +0 -0
- package/dist/components/accordion/accordion.css +6 -6
- package/dist/components/alert/alert.css +19 -9
- package/dist/components/app/app.css +1 -1
- package/dist/components/app/app.svelte +8 -3
- package/dist/components/appbar/appbar.css +2 -2
- package/dist/components/appbar/appbar.svelte +0 -1
- package/dist/components/aspect-ratio/aspect-ratio.svelte +0 -1
- package/dist/components/avatar/avatar.css +5 -5
- package/dist/components/button/button.css +3 -2
- package/dist/components/button/button.svelte +1 -0
- package/dist/components/card/card.css +64 -58
- package/dist/components/card/card.svelte +14 -1
- package/dist/components/card/types.d.ts +1 -1
- package/dist/components/chip/chip.css +8 -6
- package/dist/components/chip/chip.svelte +12 -9
- package/dist/components/chip/types.d.ts +1 -0
- package/dist/components/dialog/dialog.css +5 -3
- package/dist/components/dropdown/dropdown.css +4 -4
- package/dist/components/icon/icon.css +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/list/list.css +1 -0
- package/dist/components/list/modules/list-item.svelte +2 -1
- package/dist/components/modal/modal.css +17 -12
- package/dist/components/modal/modal.svelte +1 -0
- package/dist/components/popover/popover.css +4 -4
- package/dist/components/separator/separator.css +1 -1
- package/dist/components/textfield/textfield.css +305 -0
- package/dist/components/textfield/textfield.svelte +193 -0
- package/dist/components/textfield/textfield.svelte.d.ts +4 -0
- package/dist/components/textfield/types.d.ts +37 -0
- package/dist/components/textfield/types.js +1 -0
- package/dist/components/toolbar/toolbar.css +6 -6
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/index.d.ts +27 -1
- package/dist/index.js +27 -3
- package/dist/internal/assets.svelte.js +2 -0
- package/dist/internal/deepMerge.d.ts +44 -0
- package/dist/internal/deepMerge.js +80 -0
- package/dist/internal/ripple.d.ts +1 -0
- package/dist/internal/ripple.js +3 -0
- package/dist/plugin/css.d.ts +1 -0
- package/dist/plugin/css.js +31 -0
- package/dist/plugin/preset-v2.d.ts +80 -0
- package/dist/plugin/preset-v2.js +80 -0
- package/dist/plugin/vitejs.d.ts +5 -1
- package/dist/plugin/vitejs.js +32 -3
- package/dist/stores/breakpoints.d.ts +6 -0
- package/dist/stores/breakpoints.js +14 -0
- package/dist/stores/components.d.ts +8 -0
- package/dist/stores/components.js +26 -0
- package/dist/stores/devices.d.ts +6 -0
- package/dist/stores/devices.js +9 -0
- package/dist/stores/index.d.ts +4 -10
- package/dist/stores/index.js +4 -47
- package/dist/stores/themes.d.ts +8 -0
- package/dist/stores/themes.js +34 -0
- package/dist/style/animation.css +2 -0
- package/dist/style/normalize.css +2 -0
- package/dist/style/parser/color.js +2 -2
- package/dist/utils/convert.d.ts +1 -0
- package/dist/utils/convert.js +17 -0
- package/package.json +9 -4
|
@@ -1,100 +1,106 @@
|
|
|
1
|
+
/* root */
|
|
1
2
|
.kit-card {
|
|
2
|
-
--card-color: var(--on, var(--kit-on-
|
|
3
|
-
--card-background: var(--base, var(--kit-
|
|
3
|
+
--card-color: var(--on, var(--kit-on-surface));
|
|
4
|
+
--card-background: var(--base, var(--kit-surface));
|
|
4
5
|
--card-radius: var(--shape, var(--kit-radius-md));
|
|
6
|
+
}
|
|
5
7
|
|
|
8
|
+
.kit-card {
|
|
6
9
|
position: relative;
|
|
7
10
|
display: flex;
|
|
8
11
|
flex-direction: column;
|
|
9
12
|
text-align: start;
|
|
10
13
|
overflow: hidden;
|
|
11
|
-
transition:
|
|
14
|
+
/* transition:
|
|
12
15
|
color 0.5s,
|
|
13
|
-
background-color 0.5s;
|
|
14
|
-
|
|
16
|
+
background-color 0.5s; */
|
|
15
17
|
padding-top: var(--card-spacing-x);
|
|
16
18
|
padding-bottom: var(--card-spacing-x);
|
|
17
19
|
padding-right: var(--card-spacing-y);
|
|
18
20
|
padding-left: var(--card-spacing-y);
|
|
19
|
-
|
|
20
|
-
border-width: 1px;
|
|
21
|
-
border-style: solid;
|
|
22
21
|
border-radius: var(--card-radius);
|
|
23
|
-
|
|
24
|
-
/* theme */
|
|
22
|
+
font-weight: 500;
|
|
25
23
|
color: var(--card-color);
|
|
26
|
-
|
|
27
|
-
border-color: var(--card-background);
|
|
24
|
+
text-decoration: none;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
--card-spacing-x: 0.25rem;
|
|
33
|
-
--card-spacing-y: 0.25rem;
|
|
27
|
+
.kit-card.kit-card--clickable {
|
|
28
|
+
cursor: pointer;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
.kit-card
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
.kit-card.kit-card--clickable::after {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 0;
|
|
35
|
+
background-color: currentColor;
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transition: opacity 150ms ease;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
border-radius: inherit;
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
--card-spacing-x: 0.5rem;
|
|
43
|
-
--card-spacing-y: 0.5rem;
|
|
41
|
+
.kit-card.kit-card--clickable:hover::after {
|
|
42
|
+
opacity: 0.08;
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
text-decoration: none;
|
|
44
|
+
.kit-card.kit-card--clickable:active::after {
|
|
45
|
+
opacity: 0.12;
|
|
48
46
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
background-color: color-mix(in oklab, var(--card-background) 90%, black);
|
|
47
|
+
.kit-card.kit-card--clickable:focus-visible::after {
|
|
48
|
+
opacity: 0.12;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
/* density */
|
|
52
|
+
.kit-card[breakpoint]kit-card--density-default {
|
|
53
|
+
--card-spacing-x: calc(var(--kit-spacing) * 2);
|
|
54
|
+
--card-spacing-y: calc(var(--kit-spacing) * 2);
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
background-color: color-mix(in oklab, var(--card-background) 95%, black);
|
|
56
|
+
.kit-card[breakpoint]kit-card--density-compact {
|
|
57
|
+
--card-spacing-x: 0;
|
|
58
|
+
--card-spacing-y: 0;
|
|
61
59
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
.kit-card[breakpoint]kit-card--density-comfortable {
|
|
61
|
+
--card-spacing-x: calc(var(--kit-spacing) * 4);
|
|
62
|
+
--card-spacing-y: calc(var(--kit-spacing) * 4);
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
/* variant */
|
|
66
|
+
.kit-card[breakpoint]kit-card--variant-filled {
|
|
67
|
+
background-color: var(--card-background);
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
.kit-card
|
|
72
|
-
|
|
70
|
+
.kit-card[breakpoint]kit-card--variant-outline {
|
|
71
|
+
--card-color: var(--base, var(--kit-on-surface));
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
.kit-card[breakpoint]kit-card--variant-outline::before {
|
|
75
|
+
content: '';
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
border: 1px solid currentColor;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
border-radius: inherit;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
|
-
.kit-card
|
|
76
|
-
|
|
77
|
-
--card-color: var(--base, var(--kit-neutral));
|
|
83
|
+
.kit-card[breakpoint]kit-card--variant-text {
|
|
84
|
+
--card-color: var(--base, var(--kit-on-surface));
|
|
78
85
|
background-color: transparent;
|
|
86
|
+
border: none;
|
|
79
87
|
}
|
|
80
88
|
|
|
81
|
-
|
|
82
|
-
.kit-card.kit-card--
|
|
83
|
-
|
|
89
|
+
/* events */
|
|
90
|
+
.kit-card[class*='card--variant-filled'].kit-card--clickable:active,
|
|
91
|
+
.kit-card.kit-card--active[class*='card--variant-filled'].kit-card--clickable {
|
|
92
|
+
background-color: color-mix(in oklab, var(--card-background) 90%, var(--kit-scrim));
|
|
84
93
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
.kit-card
|
|
94
|
+
.kit-card.kit-card--active[class*='card--variant-']:not(
|
|
95
|
+
[class*='variant-filled']
|
|
96
|
+
).kit-card--clickable:active,
|
|
97
|
+
.kit-card.kit-card--active[class*='card--variant-']:not(
|
|
98
|
+
[class*='variant-filled']
|
|
99
|
+
).kit-card--clickable {
|
|
88
100
|
background-color: color-mix(in oklab, currentColor 15%, transparent);
|
|
89
101
|
}
|
|
90
102
|
|
|
91
|
-
|
|
92
|
-
.kit-card.kit-card--variant-text:active:not(div),
|
|
93
|
-
.kit-card.kit-card--variant-outline.kit-card--active,
|
|
94
|
-
.kit-card.kit-card--variant-text.kit-card--active {
|
|
95
|
-
background-color: color-mix(in oklab, currentColor 10%, transparent);
|
|
96
|
-
}
|
|
97
|
-
|
|
103
|
+
/* disabled */
|
|
98
104
|
.kit-card.kit-card--disabled,
|
|
99
105
|
.kit-card[disabled],
|
|
100
106
|
.kit-card:disabled {
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { getAssets } from '../../internal/index.js';
|
|
3
3
|
import type { CardProps } from './types.js';
|
|
4
4
|
|
|
5
|
+
// external
|
|
6
|
+
import { ripple } from '../../internal/ripple.js';
|
|
7
|
+
|
|
5
8
|
let {
|
|
6
9
|
children,
|
|
7
10
|
ref = $bindable(),
|
|
@@ -11,18 +14,23 @@
|
|
|
11
14
|
light,
|
|
12
15
|
active,
|
|
13
16
|
density = 'default',
|
|
14
|
-
variant,
|
|
17
|
+
variant = 'filled',
|
|
15
18
|
disabled,
|
|
16
19
|
rounded,
|
|
17
20
|
color,
|
|
18
21
|
background,
|
|
22
|
+
noRipple,
|
|
19
23
|
...rest
|
|
20
24
|
}: CardProps = $props();
|
|
21
25
|
|
|
22
26
|
const assets = getAssets();
|
|
27
|
+
let isClickable: boolean = $state(false);
|
|
23
28
|
|
|
24
29
|
$effect(() => {
|
|
30
|
+
const refProps = { ...rest };
|
|
25
31
|
if (href) is = 'a';
|
|
32
|
+
if (refProps?.onclick || href || is === 'a') isClickable = true;
|
|
33
|
+
else isClickable = false;
|
|
26
34
|
});
|
|
27
35
|
</script>
|
|
28
36
|
|
|
@@ -37,11 +45,16 @@
|
|
|
37
45
|
dark && 'dark',
|
|
38
46
|
variant && assets.className('card', 'variant', variant),
|
|
39
47
|
density && assets.className('card', 'density', density),
|
|
48
|
+
isClickable && 'kit-card--clickable',
|
|
40
49
|
active && 'kit-card--active',
|
|
41
50
|
disabled && 'kit-card--disabled',
|
|
42
51
|
rest.class
|
|
43
52
|
]}
|
|
44
53
|
disabled={href ? undefined : disabled}
|
|
54
|
+
use:ripple={{
|
|
55
|
+
component: 'card',
|
|
56
|
+
disabled: noRipple || disabled || !isClickable
|
|
57
|
+
}}
|
|
45
58
|
style:--base={assets.color(background)}
|
|
46
59
|
style:--on={assets.color(color)}
|
|
47
60
|
style:--shape={assets.shape(rounded)}
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
border-radius: var(--chip-radius);
|
|
18
18
|
color: var(--chip-color);
|
|
19
19
|
font-weight: 500;
|
|
20
|
+
text-decoration: none;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
.kit-chip:not(div):not(span) {
|
|
23
|
+
.kit-chip:not(div):not(span):not(.kit-chip--readonly) {
|
|
23
24
|
cursor: pointer;
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
white-space: nowrap;
|
|
36
37
|
gap: calc(var(--kit-spacing) * var(--chip-multiplier-gap));
|
|
37
38
|
font-size: calc(var(--kit-spacing) * var(--chip-multiplier-font-size));
|
|
39
|
+
line-height: 0;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.kit-chip:not(div):not(span)::after {
|
|
@@ -47,13 +49,13 @@
|
|
|
47
49
|
pointer-events: none;
|
|
48
50
|
border-radius: inherit;
|
|
49
51
|
}
|
|
50
|
-
.kit-chip:not(div):not(span):hover::after {
|
|
52
|
+
.kit-chip:not(div):not(span):not(.kit-chip--readonly):hover::after {
|
|
51
53
|
opacity: 0.08;
|
|
52
54
|
}
|
|
53
|
-
.kit-chip:not(div):not(span):active::after {
|
|
55
|
+
.kit-chip:not(div):not(span):not(.kit-chip--readonly):active::after {
|
|
54
56
|
opacity: 0.12;
|
|
55
57
|
}
|
|
56
|
-
.kit-chip:not(div):not(span):focus-visible::after {
|
|
58
|
+
.kit-chip:not(div):not(span):not(.kit-chip--readonly):focus-visible::after {
|
|
57
59
|
opacity: 0.12;
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -114,8 +116,8 @@
|
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
.kit-chip[breakpoint]kit-chip--variant-outline {
|
|
117
|
-
--chip-color: var(--
|
|
118
|
-
background-color:
|
|
119
|
+
--chip-color: var(--on, var(--kit-on-container));
|
|
120
|
+
background-color: var(--chip-background);
|
|
119
121
|
}
|
|
120
122
|
.kit-chip[breakpoint]kit-chip--variant-outline::before {
|
|
121
123
|
content: '';
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
rounded,
|
|
38
38
|
closable,
|
|
39
39
|
noRipple,
|
|
40
|
+
readonly = false,
|
|
40
41
|
...rest
|
|
41
42
|
}: ChipProps = $props();
|
|
42
43
|
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
|
|
45
46
|
$effect(() => {
|
|
46
47
|
const refProps = { ...rest };
|
|
47
|
-
if (refProps?.onclick) is = 'button';
|
|
48
|
+
if (refProps?.onclick && !readonly) is = 'button';
|
|
48
49
|
});
|
|
49
50
|
</script>
|
|
50
51
|
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
disabled && 'kit-chip--disabled',
|
|
69
70
|
active && 'kit-chip--active',
|
|
70
71
|
loading && 'kit-chip--loading',
|
|
72
|
+
readonly && 'kit-chip--readonly',
|
|
71
73
|
rest.class
|
|
72
74
|
]}
|
|
73
75
|
tabindex={href && disabled ? -1 : 0}
|
|
@@ -76,7 +78,8 @@
|
|
|
76
78
|
disabled={href ? undefined : disabled}
|
|
77
79
|
type={href ? undefined : type}
|
|
78
80
|
use:ripple={{
|
|
79
|
-
|
|
81
|
+
component: 'chip',
|
|
82
|
+
disabled: noRipple || readonly || disabled || is === 'div' || is === 'span'
|
|
80
83
|
}}
|
|
81
84
|
style:--base={assets.color(background)}
|
|
82
85
|
style:--on={assets.color(color)}
|
|
@@ -95,20 +98,20 @@
|
|
|
95
98
|
{/if}
|
|
96
99
|
|
|
97
100
|
{#if prepend}
|
|
98
|
-
<
|
|
101
|
+
<div class="kit-chip-prepend">
|
|
99
102
|
{@render prepend?.()}
|
|
100
|
-
</
|
|
103
|
+
</div>
|
|
101
104
|
{/if}
|
|
102
|
-
<
|
|
105
|
+
<div class="kit-chip-content">
|
|
103
106
|
{@render children?.()}
|
|
104
|
-
</
|
|
107
|
+
</div>
|
|
105
108
|
{#if append}
|
|
106
|
-
<
|
|
109
|
+
<div class="kit-chip-append">
|
|
107
110
|
{@render append?.()}
|
|
108
|
-
</
|
|
111
|
+
</div>
|
|
109
112
|
{/if}
|
|
110
113
|
|
|
111
|
-
{#if closable}
|
|
114
|
+
{#if closable && !readonly}
|
|
112
115
|
<button
|
|
113
116
|
class="kit-chip--close"
|
|
114
117
|
type="button"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.kit-dialog .kit-dialog-container {
|
|
26
|
-
--dialog-color: var(--on, var(--kit-on-
|
|
27
|
-
--dialog-background: var(--base, var(--kit-
|
|
26
|
+
--dialog-color: var(--on, var(--kit-on-surface));
|
|
27
|
+
--dialog-background: var(--base, var(--kit-surface));
|
|
28
28
|
--dialog-radius: var(--shape, var(--kit-radius-md));
|
|
29
29
|
|
|
30
30
|
border-radius: var(--dialog-radius);
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.kit-dialog[breakpoint]kit-dialog--position-center {
|
|
63
|
-
margin: auto;
|
|
63
|
+
/* margin: auto; */
|
|
64
|
+
margin-top: auto;
|
|
65
|
+
margin-bottom: auto;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
.kit-dialog[breakpoint]kit-dialog--size-xs {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.kit-dropdown-content {
|
|
2
|
-
--dropdown-color: var(--on, var(--kit-on-
|
|
3
|
-
--dropdown-background: var(--base, var(--kit-
|
|
2
|
+
--dropdown-color: var(--on, var(--kit-on-surface));
|
|
3
|
+
--dropdown-background: var(--base, var(--kit-surface));
|
|
4
4
|
--dropdown-radius: var(--shape, var(--kit-radius-md));
|
|
5
5
|
|
|
6
6
|
inset: 0px auto auto 0px;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
width: auto;
|
|
12
12
|
opacity: 1;
|
|
13
13
|
transition-property: opacity, transform;
|
|
14
|
-
transition:
|
|
14
|
+
/* transition:
|
|
15
15
|
color 0.5s,
|
|
16
|
-
background-color 0.5s;
|
|
16
|
+
background-color 0.5s; */
|
|
17
17
|
|
|
18
18
|
/* theme */
|
|
19
19
|
background-color: var(--dropdown-background);
|
|
@@ -19,3 +19,4 @@ export { default as Card } from './card/card.svelte';
|
|
|
19
19
|
export { default as Toolbar } from './toolbar/toolbar.svelte';
|
|
20
20
|
export { default as Appbar } from './appbar/appbar.svelte';
|
|
21
21
|
export { default as Spacer } from './spacer/spacer.svelte';
|
|
22
|
+
export { default as Textfield } from './textfield/textfield.svelte';
|
package/dist/components/index.js
CHANGED
|
@@ -20,3 +20,4 @@ export { default as Card } from './card/card.svelte';
|
|
|
20
20
|
export { default as Toolbar } from './toolbar/toolbar.svelte';
|
|
21
21
|
export { default as Appbar } from './appbar/appbar.svelte';
|
|
22
22
|
export { default as Spacer } from './spacer/spacer.svelte';
|
|
23
|
+
export { default as Textfield } from './textfield/textfield.svelte';
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
rest.class
|
|
48
48
|
]}
|
|
49
49
|
use:ripple={{
|
|
50
|
+
component: 'list-item',
|
|
50
51
|
disabled: noRipple || disabled || is === 'div'
|
|
51
52
|
}}
|
|
52
53
|
role={is === 'button' ? 'listitem' : undefined}
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
</div>
|
|
64
65
|
{/if}
|
|
65
66
|
|
|
66
|
-
<div class="kit-list-item-content">
|
|
67
|
+
<div class="kit-list-item-content--content">
|
|
67
68
|
{@render children?.()}
|
|
68
69
|
</div>
|
|
69
70
|
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
/* root */
|
|
2
|
+
.kit-modal {
|
|
3
|
+
--modal-color: var(--on, var(--kit-on-surface));
|
|
4
|
+
--modal-background: var(--base, var(--kit-surface));
|
|
5
|
+
--modal-radius: var(--shape, var(--kit-radius-md));
|
|
6
|
+
--modal-translate-x: -50%;
|
|
7
|
+
--modal-translate-y: -50%;
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.kit-modal {
|
|
2
11
|
width: 100%;
|
|
3
12
|
height: 100%;
|
|
13
|
+
position: absolute;
|
|
4
14
|
}
|
|
5
15
|
|
|
6
16
|
.kit-modal-container {
|
|
7
|
-
--modal-color: var(--on, var(--kit-on-neutral));
|
|
8
|
-
--modal-background: var(--base, var(--kit-neutral));
|
|
9
|
-
--modal-radius: var(--shape, var(--kit-radius-md));
|
|
10
|
-
--modal-translate-x: -50%;
|
|
11
|
-
--modal-translate-y: -50%;
|
|
12
|
-
|
|
13
17
|
position: fixed;
|
|
14
18
|
overflow-y: auto;
|
|
15
19
|
z-index: 9100;
|
|
@@ -45,7 +49,6 @@
|
|
|
45
49
|
max-height: calc(100% - 3rem);
|
|
46
50
|
height: fit-content;
|
|
47
51
|
margin: 0 auto;
|
|
48
|
-
top: 50%;
|
|
49
52
|
left: 50%;
|
|
50
53
|
bottom: initial;
|
|
51
54
|
translate: var(--modal-translate-x) var(--modal-translate-y);
|
|
@@ -56,7 +59,6 @@
|
|
|
56
59
|
max-height: calc(100% - 3rem);
|
|
57
60
|
height: fit-content;
|
|
58
61
|
margin: 0 auto;
|
|
59
|
-
top: 50%;
|
|
60
62
|
left: 50%;
|
|
61
63
|
bottom: initial;
|
|
62
64
|
translate: var(--modal-translate-x) var(--modal-translate-y);
|
|
@@ -67,7 +69,6 @@
|
|
|
67
69
|
max-height: calc(100% - 3rem);
|
|
68
70
|
height: fit-content;
|
|
69
71
|
margin: 0 auto;
|
|
70
|
-
top: 50%;
|
|
71
72
|
left: 50%;
|
|
72
73
|
bottom: initial;
|
|
73
74
|
translate: var(--modal-translate-x) var(--modal-translate-y);
|
|
@@ -78,7 +79,6 @@
|
|
|
78
79
|
max-height: calc(100% - 3rem);
|
|
79
80
|
height: fit-content;
|
|
80
81
|
margin: 0 auto;
|
|
81
|
-
top: 50%;
|
|
82
82
|
left: 50%;
|
|
83
83
|
bottom: initial;
|
|
84
84
|
translate: var(--modal-translate-x) var(--modal-translate-y);
|
|
@@ -89,7 +89,6 @@
|
|
|
89
89
|
max-height: calc(100% - 3rem);
|
|
90
90
|
height: fit-content;
|
|
91
91
|
margin: 0 auto;
|
|
92
|
-
top: 50%;
|
|
93
92
|
left: 50%;
|
|
94
93
|
bottom: initial;
|
|
95
94
|
translate: var(--modal-translate-x) var(--modal-translate-y);
|
|
@@ -126,15 +125,21 @@
|
|
|
126
125
|
/* position */
|
|
127
126
|
.kit-modal [breakpoint]kit-modal-container--position-bottom {
|
|
128
127
|
--modal-translate-y: 0;
|
|
129
|
-
|
|
128
|
+
margin: auto;
|
|
130
129
|
top: initial;
|
|
130
|
+
bottom: 0;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.kit-modal [breakpoint]kit-modal-container--position-top {
|
|
134
134
|
--modal-translate-y: 0;
|
|
135
|
+
margin: auto;
|
|
135
136
|
top: 0;
|
|
137
|
+
bottom: initial;
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
.kit-modal [breakpoint]kit-modal-container--position-center {
|
|
141
|
+
--modal-translate-y: -50%;
|
|
139
142
|
margin: auto;
|
|
143
|
+
top: 50%;
|
|
144
|
+
bottom: initial;
|
|
140
145
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.kit-popover-content {
|
|
2
|
-
--popover-color: var(--on, var(--kit-on-
|
|
3
|
-
--popover-background: var(--base, var(--kit-
|
|
2
|
+
--popover-color: var(--on, var(--kit-on-container));
|
|
3
|
+
--popover-background: var(--base, var(--kit-container));
|
|
4
4
|
--popover-radius: var(--shape, var(--kit-radius-md));
|
|
5
5
|
|
|
6
6
|
inset: 0px auto auto 0px;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
width: auto;
|
|
12
12
|
opacity: 1;
|
|
13
13
|
transition-property: opacity, transform;
|
|
14
|
-
transition:
|
|
14
|
+
/* transition:
|
|
15
15
|
color 0.5s,
|
|
16
|
-
background-color 0.5s;
|
|
16
|
+
background-color 0.5s; */
|
|
17
17
|
|
|
18
18
|
/* theme */
|
|
19
19
|
background-color: var(--popover-background);
|