@truedat/core 8.12.12 → 8.13.1

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.
@@ -0,0 +1,43 @@
1
+ .ui.modal.active {
2
+ animation: modal-appear 240ms cubic-bezier(0.16, 1, 0.3, 1);
3
+ }
4
+
5
+ @keyframes modal-appear {
6
+ from {
7
+ opacity: 0;
8
+ }
9
+ to {
10
+ opacity: 1;
11
+ }
12
+ }
13
+
14
+ @media (prefers-reduced-motion: reduce) {
15
+ .ui.modal.active {
16
+ animation-duration: 80ms;
17
+ }
18
+ }
19
+
20
+ .ui.modals.dimmer {
21
+ background-color: rgba(0, 0, 0, 0.55);
22
+ -webkit-backdrop-filter: blur(3px);
23
+ backdrop-filter: blur(3px);
24
+ }
25
+
26
+ .ui.modals.dimmer.active {
27
+ animation: modal-backdrop-appear 240ms ease-out;
28
+ }
29
+
30
+ @keyframes modal-backdrop-appear {
31
+ from {
32
+ background-color: rgba(0, 0, 0, 0);
33
+ }
34
+ to {
35
+ background-color: rgba(0, 0, 0, 0.55);
36
+ }
37
+ }
38
+
39
+ @media (prefers-reduced-motion: reduce) {
40
+ .ui.modals.dimmer.active {
41
+ animation-duration: 80ms;
42
+ }
43
+ }
@@ -0,0 +1,138 @@
1
+ @import "./ModalEffects.less";
2
+
3
+ .ui.modal.true-modal {
4
+ display: flex !important;
5
+ flex-direction: column;
6
+ max-width: calc(100vw - 2rem);
7
+ max-height: calc(100vh - 2rem);
8
+ max-height: calc(100dvh - 2rem);
9
+ padding: 0;
10
+ border: 0;
11
+ border-radius: 1rem;
12
+ box-shadow:
13
+ 0 20px 25px -5px rgba(0, 0, 0, 0.2),
14
+ 0 8px 10px -6px rgba(0, 0, 0, 0.15);
15
+
16
+ > .header {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: 0.75rem;
20
+ flex-shrink: 0;
21
+ padding: 1.5rem 3.5rem 1rem 1.5rem;
22
+ border-radius: 1rem 1rem 0 0;
23
+ border-bottom: 0;
24
+ background: @primaryColor;
25
+ color: #f8fafc;
26
+
27
+ > .icon {
28
+ margin: 0;
29
+ flex-shrink: 0;
30
+ }
31
+ }
32
+
33
+ .true-modal-heading {
34
+ min-width: 0;
35
+ overflow-wrap: anywhere;
36
+ }
37
+
38
+ .true-modal-subtitle {
39
+ font-size: 0.75rem;
40
+ font-weight: 400;
41
+ color: inherit;
42
+ margin: 0.15rem 0 0;
43
+ }
44
+
45
+ > .true-modal-close {
46
+ position: absolute;
47
+ top: 1.25rem;
48
+ right: 1rem;
49
+ padding: 6px;
50
+ border: none;
51
+ border-radius: 0.5rem;
52
+ background: none;
53
+ color: #f8fafc;
54
+ cursor: pointer;
55
+ font-size: 1.25rem;
56
+ line-height: 1;
57
+ opacity: 0.8;
58
+
59
+ &:hover {
60
+ opacity: 1;
61
+ }
62
+
63
+ &:focus-visible {
64
+ outline: 2px solid currentColor;
65
+ outline-offset: 2px;
66
+ }
67
+ }
68
+
69
+ > .content {
70
+ flex: 1 1 auto;
71
+ min-height: 0;
72
+ overflow-y: auto;
73
+ padding: 1.625rem 1.5rem 2rem;
74
+ }
75
+
76
+ > .actions {
77
+ display: flex;
78
+ flex-wrap: wrap;
79
+ flex-shrink: 0;
80
+ justify-content: flex-end;
81
+ align-items: center;
82
+ gap: 0.75rem;
83
+ padding: 1rem 1.5rem;
84
+ padding-bottom: 1rem !important;
85
+ border-radius: 0 0 1rem 1rem;
86
+ border-top: 1px solid #e2e8f0;
87
+ background: #f8fafc;
88
+
89
+ .button {
90
+ margin: 0;
91
+ }
92
+ }
93
+
94
+ .true-modal-banner {
95
+ display: flex;
96
+ align-items: center;
97
+ flex-shrink: 0;
98
+ gap: 0.625rem;
99
+ margin: 0 1.5rem 1rem;
100
+ padding: 0.75rem;
101
+ border-radius: 0.375rem;
102
+ border: 1px solid;
103
+ overflow-wrap: anywhere;
104
+
105
+ > .icon {
106
+ margin: 0;
107
+ flex-shrink: 0;
108
+ }
109
+
110
+ > div {
111
+ min-width: 0;
112
+ }
113
+
114
+ &.warning {
115
+ background: #fffbeb;
116
+ border-color: #fde68a;
117
+ color: #78350f;
118
+ }
119
+
120
+ &.danger {
121
+ background: #fef2f2;
122
+ border-color: #fecaca;
123
+ color: #991b1b;
124
+ }
125
+
126
+ &.success {
127
+ background: #f0fdf4;
128
+ border-color: #bbf7d0;
129
+ color: #166534;
130
+ }
131
+
132
+ &.info {
133
+ background: #eff6ff;
134
+ border-color: #bfdbfe;
135
+ color: #1e40af;
136
+ }
137
+ }
138
+ }