@driveflux/beam 2.0.5 → 2.0.6

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.
@@ -1,8 +1,9 @@
1
1
  @import "./root.css";
2
2
  @import "./datepicker/calendar.css";
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
3
+
4
+ @plugin 'tailwindcss-animate';
5
+
6
+ @custom-variant dark (&:is(.dark *));
6
7
 
7
8
  @font-face {
8
9
  font-family: "Gotham-Black";
@@ -59,115 +60,282 @@
59
60
  font-display: swap;
60
61
  }
61
62
 
62
- html {
63
- line-height: 1.15;
64
- -webkit-text-size-adjust: 100%;
65
- height: 100%;
66
- box-sizing: border-box;
67
- line-height: 1.65;
68
- }
63
+ @theme {
64
+ --height-button: 48px;
69
65
 
70
- *,
71
- *:before,
72
- *:after {
73
- box-sizing: inherit;
74
- }
66
+ --font-bold: Gotham-Bold;
67
+ --font-normal: Gotham-Book;
68
+ --font-medium: Gotham-Medium;
69
+ --font-black: Gotham-Black;
70
+ --font-light: Gotham-Light;
75
71
 
76
- body {
77
- position: relative;
78
- min-height: 100%;
79
- margin: 0;
80
-
81
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu",
82
- "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
83
- font-weight: 400;
84
- min-width: 320px;
85
- direction: ltr;
86
- font-feature-settings: "kern";
87
- text-rendering: optimizeLegibility;
88
- -webkit-font-smoothing: antialiased;
89
- -moz-osx-font-smoothing: grayscale;
90
- scroll-behavior: smooth;
91
- font-family: var(--primaryNormal);
92
- }
72
+ --text-xs: 10px;
73
+ --text-sm: 12px;
74
+ --text-base: 14px;
75
+ --text-xl: 16px;
76
+ --text-2xl: 18px;
77
+ --text-3xl: 20px;
78
+ --text-4xl: 22px;
79
+ --text-5xl: 24px;
80
+ --text-6xl: 26px;
81
+ --text-7xl: 28px;
82
+ --text-8xl: 30px;
93
83
 
94
- html,
95
- body {
96
- background-color: var(--white);
97
- }
84
+ --tracking-normal: 0;
85
+ --tracking-wide: 1px;
86
+ --tracking-wider: 2px;
87
+ --tracking-widest: 3px;
98
88
 
99
- ::selection {
100
- background-color: var(--primary);
101
- color: var(--white);
102
- }
89
+ --color-primary1: #efeff0;
90
+ --color-primary2: #cacaca;
91
+ --color-primary3: #585858;
92
+ --color-primary4: #191919;
93
+ --color-accent4: #e55867;
94
+ --color-links1: #eefafd;
95
+ --color-links2: #ade0ee;
96
+ --color-links: #50c8e8;
97
+ --color-lite: #d6f0f7;
98
+ --color-alert4: #e24657;
99
+ --color-danger: #e24657;
100
+ --color-warning4: #f4b25c;
101
+ --color-success4: #4fd9c2;
102
+ --color-green: #4fd9c2;
103
+ --color-black: #000000;
104
+ --color-white: #ffffff;
105
+ --color-white-hover: #e6e6e6;
106
+ --color-placeholder: #f4f4f4;
107
+ --color-highlight: #f9f7d7;
103
108
 
104
- [role="grid"]:focus {
105
- outline: none;
106
- }
109
+ --color-primary-25: #fafafa;
110
+ --color-primary-50: #d6f5f0;
111
+ --color-primary-100: #98e6d6;
112
+ --color-primary-200: #191919;
113
+ --color-primary-300: #191919;
114
+ --color-primary-400: #3bd5bb;
115
+ --color-primary-500: #000000;
116
+ --color-primary-600: #000000;
117
+ --color-primary-700: #000000;
118
+ --color-primary-800: #000000;
119
+ --color-primary-900: #000000;
107
120
 
108
- svg {
109
- text-rendering: optimizeLegibility;
110
- }
121
+ --color-success-50: #d8f7f2;
122
+ --color-success-100: #98e6d6;
123
+ --color-success-200: #3bd5bc;
124
+ --color-success-300: #4fd9c2;
125
+ --color-success-400: #3bd5bb;
126
+ --color-success-500: #3bd5bb;
127
+ --color-success-600: #2ea692;
128
+ --color-success-700: #00825c;
129
+ --color-success-800: #00724d;
130
+ --color-success-900: #005530;
111
131
 
112
- h1,
113
- h2,
114
- h3 {
115
- margin: 0;
116
- }
132
+ --color-accent-50: #fceaee;
133
+ --color-accent-100: #f8cad3;
134
+ --color-accent-200: #e55867;
135
+ --color-accent-300: #e55867;
136
+ --color-accent-400: #e24657;
137
+ --color-accent-500: #e24657;
138
+ --color-accent-600: #d8253f;
139
+ --color-accent-700: #c61a38;
140
+ --color-accent-800: #b91231;
141
+ --color-accent-900: #aa0026;
117
142
 
118
- a {
119
- color: var(--links);
120
- text-decoration: none;
121
- transition: color 0.2s ease;
122
- }
143
+ --color-warning-50: #fdf0de;
144
+ --color-warning-100: #f4b25c;
145
+ --color-warning-200: #f4b25c;
146
+ --color-warning-300: #f4b25c;
147
+ --color-warning-400: #f4b25c;
148
+ --color-warning-500: #f4b25c;
149
+ --color-warning-600: #bf7f2c;
150
+ --color-warning-700: #f4b25c;
151
+ --color-warning-800: #f4b25c;
152
+ --color-warning-900: #f4b25c;
123
153
 
124
- a:hover {
125
- text-decoration: none;
126
- }
154
+ --color-info-25: #eefafc;
155
+ --color-info-50: #cdf1fa;
156
+ --color-info-100: #50c8e8;
157
+ --color-info-200: #50c8e8;
158
+ --color-info-300: #50c8e8;
159
+ --color-info-400: #50c8e8;
160
+ --color-info-500: #50c8e8;
161
+ --color-info-600: #3ea5c0;
162
+ --color-info-700: #50c8e8;
163
+ --color-info-800: #50c8e8;
164
+ --color-info-900: #183c46;
127
165
 
128
- * {
129
- overflow: visible;
130
- box-sizing: border-box;
131
- text-align: left;
132
- }
166
+ --color-alert-50: #e24657;
167
+ --color-alert-100: #e24657;
168
+ --color-alert-200: #e24657;
169
+ --color-alert-300: #e24657;
170
+ --color-alert-400: #e24657;
171
+ --color-alert-500: #e24657;
172
+ --color-alert-600: #e24657;
173
+ --color-alert-700: #e24657;
174
+ --color-alert-800: #e24657;
175
+ --color-alert-900: #e24657;
133
176
 
134
- strong {
135
- font-family: var(--primaryBold);
136
- }
177
+ --animate-accordion-down: accordion-down 0.2s ease-out;
178
+ --animate-accordion-up: accordion-up 0.2s ease-out;
179
+ --animate-spin: rotate 0.6s linear infinite;
137
180
 
138
- .svg-icon {
139
- width: 100%;
140
- height: 100%;
141
- }
181
+ --leading-14: 14px;
142
182
 
143
- input:-webkit-autofill,
144
- input:-webkit-autofill:hover,
145
- input:-webkit-autofill:focus,
146
- textarea:-webkit-autofill,
147
- textarea:-webkit-autofill:hover,
148
- textarea:-webkit-autofill:focus,
149
- select:-webkit-autofill,
150
- select:-webkit-autofill:hover,
151
- select:-webkit-autofill:focus {
152
- background-color: var(--white) !important;
153
- -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
154
- color: #000 !important;
155
- font-size: 14px !important;
156
- }
183
+ @keyframes accordion-down {
184
+ from {
185
+ height: 0;
186
+ }
157
187
 
158
- li::marker {
159
- font-size: 15px;
160
- margin-left: 10px;
161
- }
188
+ to {
189
+ height: var(--radix-accordion-content-height);
190
+ }
191
+ }
162
192
 
163
- .full-width {
164
- width: 100%;
165
- }
193
+ @keyframes accordion-up {
194
+ from {
195
+ height: var(--radix-accordion-content-height);
196
+ }
197
+
198
+ to {
199
+ height: 0;
200
+ }
201
+ }
202
+
203
+ @keyframes rotate {
204
+ 0% {
205
+ transform: rotate(0deg);
206
+ }
166
207
 
167
- .h-safe-bottom-edge {
168
- height: env(safe-area-inset-bottom);
208
+ 100% {
209
+ transform: rotate(360deg);
210
+ }
211
+ }
169
212
  }
170
213
 
171
- ::-ms-reveal {
172
- display: none;
214
+ @layer base {
215
+ *,
216
+ ::after,
217
+ ::before,
218
+ ::backdrop,
219
+ ::file-selector-button {
220
+ border-color: var(--color-gray-200, currentcolor);
221
+ }
222
+
223
+ a {
224
+ color: var(--links);
225
+ text-decoration: none;
226
+ transition: color 0.2s ease;
227
+ }
228
+
229
+ a:hover {
230
+ text-decoration: none;
231
+ }
232
+
233
+ html {
234
+ line-height: 1.15;
235
+ -webkit-text-size-adjust: 100%;
236
+ height: 100%;
237
+ box-sizing: border-box;
238
+ line-height: 1.65;
239
+ }
240
+
241
+ *,
242
+ *:before,
243
+ *:after {
244
+ box-sizing: inherit;
245
+ }
246
+
247
+ body {
248
+ position: relative;
249
+ min-height: 100%;
250
+ margin: 0;
251
+
252
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen",
253
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
254
+ sans-serif;
255
+ font-weight: 400;
256
+ min-width: 320px;
257
+ direction: ltr;
258
+ font-feature-settings: "kern";
259
+ text-rendering: optimizeLegibility;
260
+ -webkit-font-smoothing: antialiased;
261
+ -moz-osx-font-smoothing: grayscale;
262
+ scroll-behavior: smooth;
263
+ font-family: var(--primaryNormal);
264
+ }
265
+
266
+ html,
267
+ body {
268
+ background-color: var(--white);
269
+ }
270
+
271
+ ::selection {
272
+ background-color: var(--primary);
273
+ color: var(--white);
274
+ }
275
+
276
+ [role="grid"]:focus {
277
+ outline: none;
278
+ }
279
+
280
+ svg {
281
+ text-rendering: optimizeLegibility;
282
+ }
283
+
284
+ h1,
285
+ h2,
286
+ h3 {
287
+ margin: 0;
288
+ }
289
+
290
+ * {
291
+ overflow: visible;
292
+ box-sizing: border-box;
293
+ text-align: left;
294
+ }
295
+
296
+ button:not(:disabled),
297
+ [role="button"]:not(:disabled) {
298
+ cursor: pointer;
299
+ }
300
+
301
+ strong {
302
+ font-family: var(--primaryBold);
303
+ }
304
+
305
+ .svg-icon {
306
+ width: 100%;
307
+ height: 100%;
308
+ }
309
+
310
+ input:-webkit-autofill,
311
+ input:-webkit-autofill:hover,
312
+ input:-webkit-autofill:focus,
313
+ textarea:-webkit-autofill,
314
+ textarea:-webkit-autofill:hover,
315
+ textarea:-webkit-autofill:focus,
316
+ select:-webkit-autofill,
317
+ select:-webkit-autofill:hover,
318
+ select:-webkit-autofill:focus {
319
+ background-color: var(--white) !important;
320
+ -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
321
+ color: #000 !important;
322
+ font-size: 14px !important;
323
+ }
324
+
325
+ li::marker {
326
+ font-size: 15px;
327
+ margin-left: 10px;
328
+ }
329
+
330
+ .full-width {
331
+ width: 100%;
332
+ }
333
+
334
+ .h-safe-bottom-edge {
335
+ height: env(safe-area-inset-bottom);
336
+ }
337
+
338
+ ::-ms-reveal {
339
+ display: none;
340
+ }
173
341
  }
@@ -0,0 +1,145 @@
1
+ @import "./root-calendar.css";
2
+
3
+ .react-calendar {
4
+ font-family: "Gotham-Light", sans-serif;
5
+ color: var(--primary4);
6
+ text-transform: uppercase;
7
+
8
+ display: flex;
9
+ flex-direction: column;
10
+ row-gap: 8px;
11
+
12
+ width: 100%;
13
+
14
+ border: none;
15
+ }
16
+
17
+ /* ======================= top navigation start ======================= */
18
+ .react-calendar__navigation {
19
+ margin-bottom: 16px;
20
+ padding-bottom: 16px;
21
+ border-bottom: 1px solid var(--primary1) !important;
22
+ }
23
+
24
+ .react-calendar__navigation button {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ }
29
+
30
+ .react-calendar__navigation button:enabled:hover {
31
+ background-color: var(--primary1);
32
+ }
33
+
34
+ .react-calendar__navigation button:disabled {
35
+ background-color: transparent;
36
+ }
37
+
38
+ .react-calendar__navigation button:disabled path {
39
+ fill: var(--primary2);
40
+ }
41
+
42
+ .react-calendar__navigation__label {
43
+ font-family: "Gotham", sans-serif;
44
+ font-size: 14px;
45
+ font-weight: 700;
46
+ letter-spacing: 0.5px;
47
+ text-transform: uppercase;
48
+ }
49
+
50
+ /* ======================= top navigation end ======================= */
51
+
52
+ /* ========================= calendar start ========================= */
53
+ .react-calendar__month-view__days,
54
+ .react-calendar__year-view__months,
55
+ .react-calendar__decade-view__years,
56
+ .react-calendar__century-view__decades {
57
+ border-top: 1px solid var(--primary1);
58
+ border-left: 1px solid var(--primary1);
59
+ }
60
+
61
+ .react-calendar__month-view__weekdays {
62
+ margin-bottom: 4px;
63
+ }
64
+
65
+ .react-calendar__month-view__weekdays__weekday {
66
+ display: flex;
67
+ justify-content: center;
68
+ font-weight: 700;
69
+ font-family: "Gotham", sans-serif;
70
+ color: var(--primary3);
71
+ }
72
+
73
+ .react-calendar__month-view__weekdays__weekday abbr {
74
+ text-decoration: none;
75
+ }
76
+
77
+ .react-calendar__tile {
78
+ letter-spacing: 1px;
79
+ font-size: 12px;
80
+ text-transform: uppercase;
81
+ border-right: 1px solid var(--primary1) !important;
82
+ border-bottom: 1px solid var(--primary1) !important;
83
+ }
84
+
85
+ .react-calendar__tile:enabled:hover {
86
+ background: var(--primary1);
87
+ }
88
+
89
+ /* today's date - default state */
90
+ .react-calendar__tile--now {
91
+ background: transparent;
92
+ color: var(--primary4);
93
+ }
94
+
95
+ /* today's date - hover */
96
+ .react-calendar__tile--now:enabled:hover,
97
+ .react-calendar__tile--now:enabled:focus {
98
+ background: var(--primary1);
99
+ color: var(--primary4);
100
+ }
101
+
102
+ .react-calendar__month-view__days__day--neighboringMonth {
103
+ color: var(--primary2);
104
+ }
105
+
106
+ /* weekends */
107
+ .react-calendar__month-view__days__day--weekend {
108
+ color: var(--accent);
109
+ }
110
+
111
+ /* range tiles before selected */
112
+ .react-calendar--selectRange .react-calendar__tile--hover {
113
+ background-color: var(--primary2);
114
+ color: var(--primary4);
115
+ }
116
+
117
+ /* range tiles after selected */
118
+ .react-calendar__tile--active,
119
+ .react-calendar__tile--active:enabled:focus,
120
+ .react-calendar__tile--active:enabled:hover {
121
+ background: var(--primary1);
122
+ color: black;
123
+ }
124
+
125
+ /** applicable to single date or range **/
126
+ /* first and last range tiles selected */
127
+ .react-calendar__tile--rangeStart,
128
+ .react-calendar__tile--rangeStart:enabled:focus,
129
+ .react-calendar__tile--rangeStart:enabled:hover,
130
+ .react-calendar__tile--rangeEnd,
131
+ .react-calendar__tile--rangeEnd:enabled:focus,
132
+ .react-calendar__tile--rangeEnd:enabled:hover {
133
+ background: var(--primary4);
134
+ color: white;
135
+ }
136
+
137
+ /* month and year tiles where active */
138
+ .react-calendar__tile--hasActive,
139
+ .react-calendar__tile--hasActive:enabled:focus,
140
+ .react-calendar__tile--hasActive:enabled:hover {
141
+ background: var(--primary4);
142
+ color: white;
143
+ }
144
+
145
+ /* ========================= calendar end ========================= */
@@ -0,0 +1,155 @@
1
+ .react-calendar {
2
+ width: 350px;
3
+ max-width: 100%;
4
+ background: white;
5
+ border: 1px solid #a0a096;
6
+ font-family: "Arial", "Helvetica", sans-serif;
7
+ line-height: 1.125em;
8
+ }
9
+
10
+ .react-calendar--doubleView {
11
+ width: 700px;
12
+ }
13
+
14
+ .react-calendar--doubleView .react-calendar__viewContainer {
15
+ display: flex;
16
+ margin: -0.5em;
17
+ }
18
+
19
+ .react-calendar--doubleView .react-calendar__viewContainer > * {
20
+ width: 50%;
21
+ margin: 0.5em;
22
+ }
23
+
24
+ .react-calendar,
25
+ .react-calendar *,
26
+ .react-calendar *:before,
27
+ .react-calendar *:after {
28
+ -moz-box-sizing: border-box;
29
+ -webkit-box-sizing: border-box;
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ .react-calendar button {
34
+ margin: 0;
35
+ border: 0;
36
+ outline: none;
37
+ }
38
+
39
+ .react-calendar button:enabled:hover {
40
+ cursor: pointer;
41
+ }
42
+
43
+ .react-calendar__navigation {
44
+ display: flex;
45
+ height: 44px;
46
+ margin-bottom: 1em;
47
+ }
48
+
49
+ .react-calendar__navigation button {
50
+ min-width: 44px;
51
+ background: none;
52
+ }
53
+
54
+ .react-calendar__navigation button:disabled {
55
+ background-color: #f0f0f0;
56
+ }
57
+
58
+ .react-calendar__navigation button:enabled:hover,
59
+ .react-calendar__navigation button:enabled:focus {
60
+ background-color: #e6e6e6;
61
+ }
62
+
63
+ .react-calendar__month-view__weekdays {
64
+ text-align: center;
65
+ text-transform: uppercase;
66
+ font: inherit;
67
+ font-size: 0.75em;
68
+ font-weight: bold;
69
+ }
70
+
71
+ .react-calendar__month-view__weekdays__weekday {
72
+ padding: 0.5em;
73
+ }
74
+
75
+ .react-calendar__month-view__weekNumbers .react-calendar__tile {
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ font: inherit;
80
+ font-size: 0.75em;
81
+ font-weight: bold;
82
+ }
83
+
84
+ .react-calendar__month-view__days__day--weekend {
85
+ color: #d10000;
86
+ }
87
+
88
+ .react-calendar__month-view__days__day--neighboringMonth,
89
+ .react-calendar__decade-view__years__year--neighboringDecade,
90
+ .react-calendar__century-view__decades__decade--neighboringCentury {
91
+ color: #757575;
92
+ }
93
+
94
+ .react-calendar__year-view .react-calendar__tile,
95
+ .react-calendar__decade-view .react-calendar__tile,
96
+ .react-calendar__century-view .react-calendar__tile {
97
+ padding: 2em 0.5em;
98
+ }
99
+
100
+ .react-calendar__tile {
101
+ max-width: 100%;
102
+ padding: 10px 6.6667px;
103
+ background: none;
104
+ text-align: center;
105
+ font: inherit;
106
+ font-size: 0.833em;
107
+ }
108
+
109
+ .react-calendar__tile:disabled {
110
+ background-color: #f0f0f0;
111
+ color: #ababab;
112
+ }
113
+
114
+ .react-calendar__month-view__days__day--neighboringMonth:disabled,
115
+ .react-calendar__decade-view__years__year--neighboringDecade:disabled,
116
+ .react-calendar__century-view__decades__decade--neighboringCentury:disabled {
117
+ color: #cdcdcd;
118
+ }
119
+
120
+ .react-calendar__tile:enabled:hover,
121
+ .react-calendar__tile:enabled:focus {
122
+ background-color: #e6e6e6;
123
+ }
124
+
125
+ .react-calendar__tile--now {
126
+ background: #ffff76;
127
+ }
128
+
129
+ .react-calendar__tile--now:enabled:hover,
130
+ .react-calendar__tile--now:enabled:focus {
131
+ background: #ffffa9;
132
+ }
133
+
134
+ .react-calendar__tile--hasActive {
135
+ background: #76baff;
136
+ }
137
+
138
+ .react-calendar__tile--hasActive:enabled:hover,
139
+ .react-calendar__tile--hasActive:enabled:focus {
140
+ background: #a9d4ff;
141
+ }
142
+
143
+ .react-calendar__tile--active {
144
+ background: #006edc;
145
+ color: white;
146
+ }
147
+
148
+ .react-calendar__tile--active:enabled:hover,
149
+ .react-calendar__tile--active:enabled:focus {
150
+ background: #1087ff;
151
+ }
152
+
153
+ .react-calendar--selectRange .react-calendar__tile--hover {
154
+ background-color: #e6e6e6;
155
+ }
package/dist/root.css ADDED
@@ -0,0 +1,24 @@
1
+ /* copy of dump/assets/global.css */
2
+ :root {
3
+ --primary1: #efeff0;
4
+ --primary2: #cacaca;
5
+ --primary3: #585858;
6
+ --primary4: #191919;
7
+ --primary: #000000;
8
+ --accent4: #e55867;
9
+ --accent: #e24657;
10
+ --links: #50c8e8;
11
+ --alert: #e24657;
12
+ --warning: #f4b25c;
13
+ --success4: #4fd9c2;
14
+ --success: #3bd5bc;
15
+ --black: #000000;
16
+ --white: #fff;
17
+ --whiteHover: #e6e6e6;
18
+ --placeholder: #f4f4f4;
19
+
20
+ --primaryBold: "Gotham-Bold";
21
+ --primaryNormal: "Gotham-Book";
22
+ --primaryMedium: "Gotham-Medium";
23
+ --primaryBlack: "Gotham-Black";
24
+ }