@reshape-biotech/design-system 0.0.42 → 0.0.44
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.
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
let { class: className = '', children }: Props = $props();
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<button class={`${className}`}>{@render children()}</
|
|
12
|
+
<div role="button" tabindex="0" class={`${className}`}>{@render children()}</div>
|
|
13
13
|
|
|
14
14
|
<style>
|
|
15
|
-
|
|
15
|
+
div {
|
|
16
16
|
|
|
17
17
|
display: flex;
|
|
18
18
|
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
div:not(:focus-within):hover {
|
|
51
51
|
|
|
52
52
|
border-color: #5750ee40
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
div:focus-within {
|
|
56
56
|
|
|
57
57
|
--tw-border-opacity: 1;
|
|
58
58
|
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
{#if Trigger}
|
|
42
42
|
{@render Trigger({ openModal, closeModal })}
|
|
43
43
|
{/if}
|
|
44
|
-
<dialog {id} class="modal
|
|
45
|
-
<div class="modal-box
|
|
44
|
+
<dialog {id} class="modal w-full max-w-full" class:modal-open={modalOpen}>
|
|
45
|
+
<div class="modal-box {modalClass}">
|
|
46
46
|
{#if withClose}
|
|
47
|
-
<div class="
|
|
47
|
+
<div class="close-button">
|
|
48
48
|
<IconButton onclick={closeModal} size="md" color="secondary">
|
|
49
49
|
<X />
|
|
50
50
|
</IconButton>
|
|
@@ -58,3 +58,19 @@
|
|
|
58
58
|
</form>
|
|
59
59
|
{/if}
|
|
60
60
|
</dialog>
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
.modal-box {
|
|
64
|
+
position: relative;
|
|
65
|
+
max-width: 100%;
|
|
66
|
+
border-radius: 0.75rem;
|
|
67
|
+
--tw-bg-opacity: 1;
|
|
68
|
+
background-color: rgb(243 250 252 / var(--tw-bg-opacity, 1))
|
|
69
|
+
}
|
|
70
|
+
.close-button {
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: 0px;
|
|
73
|
+
top: 0px;
|
|
74
|
+
padding: 1.5rem
|
|
75
|
+
}
|
|
76
|
+
</style>
|