@hyphen/hyphen-components 7.3.4 → 7.3.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.
- package/dist/css/index.css +3975 -0
- package/dist/hyphen-components.cjs.development.js +322 -463
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +2 -2
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +322 -485
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/styles/component-modules.js +4 -0
|
@@ -1,281 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
|
|
28
|
-
// ignore-scss:./Box.module.scss
|
|
29
|
-
var require_Box_module = __commonJS({
|
|
30
|
-
"ignore-scss:./Box.module.scss"() {
|
|
31
|
-
"use strict";
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// ignore-scss:./Alert.module.scss
|
|
36
|
-
var require_Alert_module = __commonJS({
|
|
37
|
-
"ignore-scss:./Alert.module.scss"() {
|
|
38
|
-
"use strict";
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// ignore-scss:./Badge.module.scss
|
|
43
|
-
var require_Badge_module = __commonJS({
|
|
44
|
-
"ignore-scss:./Badge.module.scss"() {
|
|
45
|
-
"use strict";
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
// ignore-scss:./Spinner.module.scss
|
|
50
|
-
var require_Spinner_module = __commonJS({
|
|
51
|
-
"ignore-scss:./Spinner.module.scss"() {
|
|
52
|
-
"use strict";
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// ignore-scss:./Button.module.scss
|
|
57
|
-
var require_Button_module = __commonJS({
|
|
58
|
-
"ignore-scss:./Button.module.scss"() {
|
|
59
|
-
"use strict";
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// ignore-scss:./Heading.module.scss
|
|
64
|
-
var require_Heading_module = __commonJS({
|
|
65
|
-
"ignore-scss:./Heading.module.scss"() {
|
|
66
|
-
"use strict";
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
// ignore-scss:../../Card.module.scss
|
|
71
|
-
var require_Card_module = __commonJS({
|
|
72
|
-
"ignore-scss:../../Card.module.scss"() {
|
|
73
|
-
"use strict";
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// ignore-scss:./Checkbox.module.scss
|
|
78
|
-
var require_Checkbox_module = __commonJS({
|
|
79
|
-
"ignore-scss:./Checkbox.module.scss"() {
|
|
80
|
-
"use strict";
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
// ignore-scss:./InputValidationMessage.module.scss
|
|
85
|
-
var require_InputValidationMessage_module = __commonJS({
|
|
86
|
-
"ignore-scss:./InputValidationMessage.module.scss"() {
|
|
87
|
-
"use strict";
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
// ignore-scss:./FormLabel.module.scss
|
|
92
|
-
var require_FormLabel_module = __commonJS({
|
|
93
|
-
"ignore-scss:./FormLabel.module.scss"() {
|
|
94
|
-
"use strict";
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// ignore-scss:./HelpText.module.scss
|
|
99
|
-
var require_HelpText_module = __commonJS({
|
|
100
|
-
"ignore-scss:./HelpText.module.scss"() {
|
|
101
|
-
"use strict";
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// ignore-scss:./Details.module.scss
|
|
106
|
-
var require_Details_module = __commonJS({
|
|
107
|
-
"ignore-scss:./Details.module.scss"() {
|
|
108
|
-
"use strict";
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// ignore-scss:./Drawer.module.scss
|
|
113
|
-
var require_Drawer_module = __commonJS({
|
|
114
|
-
"ignore-scss:./Drawer.module.scss"() {
|
|
115
|
-
"use strict";
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// ignore-scss:./RadioInput.module.scss
|
|
120
|
-
var require_RadioInput_module = __commonJS({
|
|
121
|
-
"ignore-scss:./RadioInput.module.scss"() {
|
|
122
|
-
"use strict";
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// ignore-scss:./RadioGroup.module.scss
|
|
127
|
-
var require_RadioGroup_module = __commonJS({
|
|
128
|
-
"ignore-scss:./RadioGroup.module.scss"() {
|
|
129
|
-
"use strict";
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
// ignore-scss:./SelectInput.module.scss
|
|
134
|
-
var require_SelectInput_module = __commonJS({
|
|
135
|
-
"ignore-scss:./SelectInput.module.scss"() {
|
|
136
|
-
"use strict";
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
// ignore-scss:./SelectInputInset.module.scss
|
|
141
|
-
var require_SelectInputInset_module = __commonJS({
|
|
142
|
-
"ignore-scss:./SelectInputInset.module.scss"() {
|
|
143
|
-
"use strict";
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
// ignore-scss:./TextareaInputInset.module.scss
|
|
148
|
-
var require_TextareaInputInset_module = __commonJS({
|
|
149
|
-
"ignore-scss:./TextareaInputInset.module.scss"() {
|
|
150
|
-
"use strict";
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
// ignore-scss:./TextInputInset.module.scss
|
|
155
|
-
var require_TextInputInset_module = __commonJS({
|
|
156
|
-
"ignore-scss:./TextInputInset.module.scss"() {
|
|
157
|
-
"use strict";
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
// ignore-scss:./SelectInputNative.module.scss
|
|
162
|
-
var require_SelectInputNative_module = __commonJS({
|
|
163
|
-
"ignore-scss:./SelectInputNative.module.scss"() {
|
|
164
|
-
"use strict";
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
// ignore-scss:./TextInput.module.scss
|
|
169
|
-
var require_TextInput_module = __commonJS({
|
|
170
|
-
"ignore-scss:./TextInput.module.scss"() {
|
|
171
|
-
"use strict";
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
// ignore-scss:./TextareaInput.module.scss
|
|
176
|
-
var require_TextareaInput_module = __commonJS({
|
|
177
|
-
"ignore-scss:./TextareaInput.module.scss"() {
|
|
178
|
-
"use strict";
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
// ignore-scss:./Switch.module.scss
|
|
183
|
-
var require_Switch_module = __commonJS({
|
|
184
|
-
"ignore-scss:./Switch.module.scss"() {
|
|
185
|
-
"use strict";
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
// ignore-scss:./ToggleGroup.module.scss
|
|
190
|
-
var require_ToggleGroup_module = __commonJS({
|
|
191
|
-
"ignore-scss:./ToggleGroup.module.scss"() {
|
|
192
|
-
"use strict";
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
// ignore-scss:./Modal.module.scss
|
|
197
|
-
var require_Modal_module = __commonJS({
|
|
198
|
-
"ignore-scss:./Modal.module.scss"() {
|
|
199
|
-
"use strict";
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
// ignore-scss:./Popover.module.scss
|
|
204
|
-
var require_Popover_module = __commonJS({
|
|
205
|
-
"ignore-scss:./Popover.module.scss"() {
|
|
206
|
-
"use strict";
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
// ignore-scss:./RangeInput.module.scss
|
|
211
|
-
var require_RangeInput_module = __commonJS({
|
|
212
|
-
"ignore-scss:./RangeInput.module.scss"() {
|
|
213
|
-
"use strict";
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
// ignore-scss:./Sidebar.module.scss
|
|
218
|
-
var require_Sidebar_module = __commonJS({
|
|
219
|
-
"ignore-scss:./Sidebar.module.scss"() {
|
|
220
|
-
"use strict";
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
// ignore-scss:./Tooltip.module.scss
|
|
225
|
-
var require_Tooltip_module = __commonJS({
|
|
226
|
-
"ignore-scss:./Tooltip.module.scss"() {
|
|
227
|
-
"use strict";
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
// ignore-scss:./Table.module.scss
|
|
232
|
-
var require_Table_module = __commonJS({
|
|
233
|
-
"ignore-scss:./Table.module.scss"() {
|
|
234
|
-
"use strict";
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
// ignore-scss:./TableBody.module.scss
|
|
239
|
-
var require_TableBody_module = __commonJS({
|
|
240
|
-
"ignore-scss:./TableBody.module.scss"() {
|
|
241
|
-
"use strict";
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
// ignore-scss:./TableRow.module.scss
|
|
246
|
-
var require_TableRow_module = __commonJS({
|
|
247
|
-
"ignore-scss:./TableRow.module.scss"() {
|
|
248
|
-
"use strict";
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
// ignore-scss:./TableBodyCell.module.scss
|
|
253
|
-
var require_TableBodyCell_module = __commonJS({
|
|
254
|
-
"ignore-scss:./TableBodyCell.module.scss"() {
|
|
255
|
-
"use strict";
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
// ignore-scss:./TableHeaderCell.module.scss
|
|
260
|
-
var require_TableHeaderCell_module = __commonJS({
|
|
261
|
-
"ignore-scss:./TableHeaderCell.module.scss"() {
|
|
262
|
-
"use strict";
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
// ignore-scss:./ToastNotification.module.scss
|
|
267
|
-
var require_ToastNotification_module = __commonJS({
|
|
268
|
-
"ignore-scss:./ToastNotification.module.scss"() {
|
|
269
|
-
"use strict";
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
// ignore-scss:./Toggle.module.scss
|
|
274
|
-
var require_Toggle_module = __commonJS({
|
|
275
|
-
"ignore-scss:./Toggle.module.scss"() {
|
|
276
|
-
"use strict";
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
2
|
|
|
280
3
|
// src/components/Alert/Alert.tsx
|
|
281
4
|
import React2, {
|
|
@@ -424,29 +147,29 @@ function doesStringIncludeCssUnit(value) {
|
|
|
424
147
|
// src/lib/getDimensionCss.ts
|
|
425
148
|
function getDimensionStyles(dimension, value) {
|
|
426
149
|
if (value === void 0) return value;
|
|
427
|
-
let
|
|
150
|
+
let styles;
|
|
428
151
|
if (typeof value === "string" && doesStringIncludeCssUnit(value)) {
|
|
429
152
|
switch (dimension) {
|
|
430
153
|
case "h":
|
|
431
|
-
|
|
154
|
+
styles = { height: value };
|
|
432
155
|
break;
|
|
433
156
|
case "mw":
|
|
434
|
-
|
|
157
|
+
styles = { maxWidth: value };
|
|
435
158
|
break;
|
|
436
159
|
case "mh":
|
|
437
|
-
|
|
160
|
+
styles = { maxHeight: value };
|
|
438
161
|
break;
|
|
439
162
|
case "minw":
|
|
440
|
-
|
|
163
|
+
styles = { minWidth: value };
|
|
441
164
|
break;
|
|
442
165
|
case "minh":
|
|
443
|
-
|
|
166
|
+
styles = { minHeight: value };
|
|
444
167
|
break;
|
|
445
168
|
default:
|
|
446
|
-
|
|
169
|
+
styles = { width: value };
|
|
447
170
|
}
|
|
448
171
|
}
|
|
449
|
-
return
|
|
172
|
+
return styles;
|
|
450
173
|
}
|
|
451
174
|
function getDimensionClasses(dimension, value) {
|
|
452
175
|
if (value === void 0) return value;
|
|
@@ -475,8 +198,10 @@ function getElementType(Component, props, getDefault) {
|
|
|
475
198
|
return defaultProps.as || "div";
|
|
476
199
|
}
|
|
477
200
|
|
|
201
|
+
// src/components/Box/Box.module.scss
|
|
202
|
+
var Box_module_default = { "box-transition": "box-transition__sKpxg" };
|
|
203
|
+
|
|
478
204
|
// src/components/Box/Box.tsx
|
|
479
|
-
var import_Box_module = __toESM(require_Box_module());
|
|
480
205
|
var AUTO_FONT_COLOR_BACKGROUNDS = [
|
|
481
206
|
"success",
|
|
482
207
|
"warning",
|
|
@@ -615,7 +340,7 @@ var Box = forwardRef(
|
|
|
615
340
|
[`font-color-${finalColor}`]: finalColor,
|
|
616
341
|
[`border-color-${borderColor}`]: borderColor,
|
|
617
342
|
[`cursor-${cursor}`]: cursor,
|
|
618
|
-
[
|
|
343
|
+
[Box_module_default["box-transition"]]: hover || focus
|
|
619
344
|
}
|
|
620
345
|
);
|
|
621
346
|
const boxStyles = {
|
|
@@ -818,8 +543,8 @@ var Icon = forwardRef2(
|
|
|
818
543
|
);
|
|
819
544
|
Icon.displayName = "Icon";
|
|
820
545
|
|
|
821
|
-
// src/components/Alert/Alert.
|
|
822
|
-
var
|
|
546
|
+
// src/components/Alert/Alert.module.scss
|
|
547
|
+
var Alert_module_default = { "alert": "alert__9XZ4A", "close-icon": "close-icon__NDL4K", "alert-heading": "alert-heading__XCRu3", "alert__default": "alert__default__3qStp", "alert__info": "alert__info__BOSxI", "alert__success": "alert__success__NPujz", "alert__warning": "alert__warning__sS3f7", "alert__danger": "alert__danger__6ZwUi", "alert__icon__default": "alert__icon__default__kvFlP", "alert__icon__info": "alert__icon__info__YcT5d", "alert__icon__success": "alert__icon__success__hzZYf", "alert__icon__warning": "alert__icon__warning__ACoYh", "alert__icon__danger": "alert__icon__danger__Piw3b" };
|
|
823
548
|
|
|
824
549
|
// src/components/Alert/Alert.constants.ts
|
|
825
550
|
var ALERT_ICONS_MAP = {
|
|
@@ -857,12 +582,12 @@ var AlertComponent = ({
|
|
|
857
582
|
[handleClose]
|
|
858
583
|
);
|
|
859
584
|
const alertContainerClasses = useMemo(
|
|
860
|
-
() => classNames3(
|
|
585
|
+
() => classNames3(Alert_module_default[`alert__${variant}`], Alert_module_default.alert, className),
|
|
861
586
|
[variant, className]
|
|
862
587
|
);
|
|
863
588
|
const alertIcon = useMemo(() => {
|
|
864
589
|
if (!hasIcon) return null;
|
|
865
|
-
return /* @__PURE__ */ React2.createElement(Box, { fontSize: "md", className:
|
|
590
|
+
return /* @__PURE__ */ React2.createElement(Box, { fontSize: "md", className: Alert_module_default[`alert__icon__${variant}`] }, /* @__PURE__ */ React2.createElement(
|
|
866
591
|
Icon,
|
|
867
592
|
{
|
|
868
593
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
@@ -877,7 +602,7 @@ var AlertComponent = ({
|
|
|
877
602
|
{
|
|
878
603
|
margin: "0 0 0 auto",
|
|
879
604
|
color: "secondary",
|
|
880
|
-
className:
|
|
605
|
+
className: Alert_module_default["close-icon"]
|
|
881
606
|
},
|
|
882
607
|
/* @__PURE__ */ React2.createElement(
|
|
883
608
|
"button",
|
|
@@ -901,7 +626,7 @@ var AlertComponent = ({
|
|
|
901
626
|
as: "h4",
|
|
902
627
|
fontSize: "sm",
|
|
903
628
|
fontWeight: "semibold",
|
|
904
|
-
className:
|
|
629
|
+
className: Alert_module_default["alert-heading"]
|
|
905
630
|
},
|
|
906
631
|
title
|
|
907
632
|
), children ?? (message && (typeof message === "string" ? /* @__PURE__ */ React2.createElement("p", null, message) : message)));
|
|
@@ -933,7 +658,11 @@ var AspectRatio = AspectRatioPrimitive.Root;
|
|
|
933
658
|
// src/components/Badge/Badge.tsx
|
|
934
659
|
import React3, { forwardRef as forwardRef3 } from "react";
|
|
935
660
|
import classNames4 from "classnames";
|
|
936
|
-
|
|
661
|
+
|
|
662
|
+
// src/components/Badge/Badge.module.scss
|
|
663
|
+
var Badge_module_default = { "badge": "badge__wbyII", "size-sm": "size-sm__v5iQ5", "size-md": "size-md__t0Qz1", "size-lg": "size-lg__HQPfE", "inverse": "inverse__gQfNV", "purple": "purple__81ewe", "green": "green__ZMiGE", "red": "red__XGDtA", "blue": "blue__2kZV5", "yellow": "yellow__BQ41f", "light-grey": "light-grey__sXLPP", "dark-grey": "dark-grey__OKyFH", "orange": "orange__6Hwzb", "hyphen": "hyphen__nvWRN", "size-sm-tablet": "size-sm-tablet__IkjZY", "size-md-tablet": "size-md-tablet__kMUva", "size-lg-tablet": "size-lg-tablet__ldE4r", "size-sm-desktop": "size-sm-desktop__alYyy", "size-md-desktop": "size-md-desktop__AvaSK", "size-lg-desktop": "size-lg-desktop__5graA", "size-sm-hd": "size-sm-hd__74Pms", "size-md-hd": "size-md-hd__cEiUq", "size-lg-hd": "size-lg-hd__Qi3ic" };
|
|
664
|
+
|
|
665
|
+
// src/components/Badge/Badge.tsx
|
|
937
666
|
var Badge = forwardRef3(
|
|
938
667
|
({
|
|
939
668
|
className = "",
|
|
@@ -944,14 +673,14 @@ var Badge = forwardRef3(
|
|
|
944
673
|
...restProps
|
|
945
674
|
}, ref) => {
|
|
946
675
|
const responsiveClasses = generateResponsiveClasses("size", size).map(
|
|
947
|
-
(c) =>
|
|
676
|
+
(c) => Badge_module_default[c]
|
|
948
677
|
);
|
|
949
678
|
const badgeClasses = classNames4(
|
|
950
|
-
|
|
679
|
+
Badge_module_default.badge,
|
|
951
680
|
className,
|
|
952
681
|
responsiveClasses,
|
|
953
682
|
{
|
|
954
|
-
[
|
|
683
|
+
[Badge_module_default[variant]]: variant
|
|
955
684
|
}
|
|
956
685
|
);
|
|
957
686
|
return /* @__PURE__ */ React3.createElement(
|
|
@@ -975,11 +704,15 @@ import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
|
975
704
|
import React5, { forwardRef as forwardRef4 } from "react";
|
|
976
705
|
|
|
977
706
|
// src/components/Spinner/Spinner.tsx
|
|
978
|
-
var import_Spinner_module = __toESM(require_Spinner_module());
|
|
979
707
|
import React4 from "react";
|
|
980
708
|
import classNames5 from "classnames";
|
|
709
|
+
|
|
710
|
+
// src/components/Spinner/Spinner.module.scss
|
|
711
|
+
var Spinner_module_default = { "spinner": "spinner__P6Czr", "spin": "spin__RcaZx" };
|
|
712
|
+
|
|
713
|
+
// src/components/Spinner/Spinner.tsx
|
|
981
714
|
var Spinner = ({ className, size = "md" }) => {
|
|
982
|
-
const classes = classNames5(className,
|
|
715
|
+
const classes = classNames5(className, Spinner_module_default.spinner);
|
|
983
716
|
const sizeInPixels = () => {
|
|
984
717
|
let pixels;
|
|
985
718
|
if (size === "sm") pixels = "12";
|
|
@@ -1092,7 +825,11 @@ var Spinner = ({ className, size = "md" }) => {
|
|
|
1092
825
|
|
|
1093
826
|
// src/components/Button/Button.tsx
|
|
1094
827
|
import classNames6 from "classnames";
|
|
1095
|
-
|
|
828
|
+
|
|
829
|
+
// src/components/Button/Button.module.scss
|
|
830
|
+
var Button_module_default = { "button": "button__IlzP0", "size-sm": "size-sm__h7ftc", "size-md": "size-md__avby3", "size-lg": "size-lg__5TYnZ", "primary": "primary__TcKe0", "secondary": "secondary__NWjA6", "tertiary": "tertiary__TvVwZ", "danger": "danger__Zsppp", "link": "link__m4Od9", "size-sm-tablet": "size-sm-tablet__TaC88", "size-md-tablet": "size-md-tablet__d81CE", "size-lg-tablet": "size-lg-tablet__9ed09", "size-sm-desktop": "size-sm-desktop__YVs4Q", "size-md-desktop": "size-md-desktop__g0hPr", "size-lg-desktop": "size-lg-desktop__f9alo", "size-sm-hd": "size-sm-hd__KgnEC", "size-md-hd": "size-md-hd__4gvyq", "size-lg-hd": "size-lg-hd__EJmWo", "loading": "loading__xqQBF", "label": "label__q462a", "full-width": "full-width__uXYq8", "spinner-wrapper": "spinner-wrapper__iXJhk" };
|
|
831
|
+
|
|
832
|
+
// src/components/Button/Button.tsx
|
|
1096
833
|
var Button = forwardRef4(
|
|
1097
834
|
({
|
|
1098
835
|
asChild,
|
|
@@ -1113,17 +850,17 @@ var Button = forwardRef4(
|
|
|
1113
850
|
...restProps
|
|
1114
851
|
}, ref) => {
|
|
1115
852
|
const disabled = isLoading || isDisabled;
|
|
1116
|
-
const responsiveClasses = variant !== "link" ? generateResponsiveClasses("size", size).map((c) =>
|
|
853
|
+
const responsiveClasses = variant !== "link" ? generateResponsiveClasses("size", size).map((c) => Button_module_default[c]).filter(Boolean) : [];
|
|
1117
854
|
const buttonClasses = classNames6(
|
|
1118
855
|
"hyphen-components__variables__form-control",
|
|
1119
|
-
|
|
856
|
+
Button_module_default.button,
|
|
1120
857
|
className,
|
|
1121
858
|
responsiveClasses,
|
|
1122
859
|
generateResponsiveClasses("shadow", shadow),
|
|
1123
860
|
{
|
|
1124
|
-
[
|
|
1125
|
-
[
|
|
1126
|
-
[
|
|
861
|
+
[Button_module_default.loading]: isLoading,
|
|
862
|
+
[Button_module_default[variant]]: variant,
|
|
863
|
+
[Button_module_default["full-width"]]: fullWidth
|
|
1127
864
|
}
|
|
1128
865
|
);
|
|
1129
866
|
const handleClick = !disabled ? onClick : void 0;
|
|
@@ -1145,11 +882,11 @@ var Button = forwardRef4(
|
|
|
1145
882
|
},
|
|
1146
883
|
...restProps
|
|
1147
884
|
},
|
|
1148
|
-
isLoading && /* @__PURE__ */ React5.createElement(Spinner, { className:
|
|
885
|
+
isLoading && /* @__PURE__ */ React5.createElement(Spinner, { className: Button_module_default["spinner-wrapper"] }),
|
|
1149
886
|
iconPrefix && /* @__PURE__ */ React5.createElement(
|
|
1150
887
|
Icon,
|
|
1151
888
|
{
|
|
1152
|
-
className:
|
|
889
|
+
className: Button_module_default.label,
|
|
1153
890
|
name: iconPrefix,
|
|
1154
891
|
"aria-hidden": "true",
|
|
1155
892
|
focusable: "false",
|
|
@@ -1157,11 +894,11 @@ var Button = forwardRef4(
|
|
|
1157
894
|
size: size === "md" ? "sm" : size
|
|
1158
895
|
}
|
|
1159
896
|
),
|
|
1160
|
-
children && /* @__PURE__ */ React5.createElement(Slottable, null, asChild ? children : /* @__PURE__ */ React5.createElement("span", { className:
|
|
897
|
+
children && /* @__PURE__ */ React5.createElement(Slottable, null, asChild ? children : /* @__PURE__ */ React5.createElement("span", { className: Button_module_default.label }, children)),
|
|
1161
898
|
iconSuffix && /* @__PURE__ */ React5.createElement(
|
|
1162
899
|
Icon,
|
|
1163
900
|
{
|
|
1164
|
-
className:
|
|
901
|
+
className: Button_module_default.label,
|
|
1165
902
|
name: iconSuffix,
|
|
1166
903
|
"aria-hidden": "true",
|
|
1167
904
|
focusable: "false",
|
|
@@ -1332,7 +1069,11 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
1332
1069
|
|
|
1333
1070
|
// src/components/Heading/Heading.tsx
|
|
1334
1071
|
import classNames8 from "classnames";
|
|
1335
|
-
|
|
1072
|
+
|
|
1073
|
+
// src/components/Heading/Heading.module.scss
|
|
1074
|
+
var Heading_module_default = { "heading": "heading__Jti1g" };
|
|
1075
|
+
|
|
1076
|
+
// src/components/Heading/Heading.tsx
|
|
1336
1077
|
var Heading = ({
|
|
1337
1078
|
as = "h4",
|
|
1338
1079
|
children,
|
|
@@ -1344,7 +1085,7 @@ var Heading = ({
|
|
|
1344
1085
|
const element = getElementType(Heading, { as });
|
|
1345
1086
|
const headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
1346
1087
|
const classes = classNames8(
|
|
1347
|
-
|
|
1088
|
+
Heading_module_default.heading,
|
|
1348
1089
|
className,
|
|
1349
1090
|
generateResponsiveClasses("heading", headingSize),
|
|
1350
1091
|
{
|
|
@@ -1377,9 +1118,13 @@ var CardHeader = ({
|
|
|
1377
1118
|
};
|
|
1378
1119
|
|
|
1379
1120
|
// src/components/Card/components/CardSection/CardSection.tsx
|
|
1380
|
-
var import_Card_module = __toESM(require_Card_module());
|
|
1381
1121
|
import React9 from "react";
|
|
1382
1122
|
import classNames9 from "classnames";
|
|
1123
|
+
|
|
1124
|
+
// src/components/Card/Card.module.scss
|
|
1125
|
+
var Card_module_default = { "card-section-border": "card-section-border__G7yCm" };
|
|
1126
|
+
|
|
1127
|
+
// src/components/Card/components/CardSection/CardSection.tsx
|
|
1383
1128
|
var CardSection = ({
|
|
1384
1129
|
background = void 0,
|
|
1385
1130
|
borderColor = void 0,
|
|
@@ -1397,8 +1142,8 @@ var CardSection = ({
|
|
|
1397
1142
|
const renderTitle = typeof title === "string" ? /* @__PURE__ */ React9.createElement(Box, { className: "m-bottom-md" }, /* @__PURE__ */ React9.createElement(Box, { as: "h4", fontWeight: "semibold", fontSize: "sm", color: "base" }, title)) : title;
|
|
1398
1143
|
const sectionClasses = classNames9(
|
|
1399
1144
|
{
|
|
1400
|
-
[
|
|
1401
|
-
[
|
|
1145
|
+
[Card_module_default["card-section-border"]]: borderColor === void 0 && borderWidth === void 0,
|
|
1146
|
+
[Card_module_default["card-subdued"]]: subdued
|
|
1402
1147
|
},
|
|
1403
1148
|
className
|
|
1404
1149
|
);
|
|
@@ -1496,8 +1241,10 @@ var CheckboxIcon = ({
|
|
|
1496
1241
|
);
|
|
1497
1242
|
};
|
|
1498
1243
|
|
|
1244
|
+
// src/components/CheckboxInput/components/Checkbox.module.scss
|
|
1245
|
+
var Checkbox_module_default = { "checkbox": "checkbox__Urjhv", "size-sm": "size-sm__ksih6", "size-md": "size-md__YhHgH", "size-lg": "size-lg__wQblN", "hidden": "hidden__0sfGR", "size-sm-tablet": "size-sm-tablet__Yv6Tt", "size-md-tablet": "size-md-tablet__55J2D", "size-lg-tablet": "size-lg-tablet__NLDLl", "size-sm-desktop": "size-sm-desktop__p9xYA", "size-md-desktop": "size-md-desktop__fPQbZ", "size-lg-desktop": "size-lg-desktop__ODumu", "size-sm-hd": "size-sm-hd__PSHjx", "size-md-hd": "size-md-hd__wK4I3", "size-lg-hd": "size-lg-hd__Cn8XE" };
|
|
1246
|
+
|
|
1499
1247
|
// src/components/CheckboxInput/components/Checkbox.tsx
|
|
1500
|
-
var import_Checkbox_module = __toESM(require_Checkbox_module());
|
|
1501
1248
|
var Checkbox = React12.forwardRef(
|
|
1502
1249
|
({
|
|
1503
1250
|
className = "",
|
|
@@ -1551,12 +1298,12 @@ var Checkbox = React12.forwardRef(
|
|
|
1551
1298
|
};
|
|
1552
1299
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
1553
1300
|
const containerClasses = classNames10(
|
|
1554
|
-
|
|
1301
|
+
Checkbox_module_default.checkbox,
|
|
1555
1302
|
className,
|
|
1556
|
-
...responsiveClasses.map((c) =>
|
|
1557
|
-
{ [
|
|
1303
|
+
...responsiveClasses.map((c) => Checkbox_module_default[c]),
|
|
1304
|
+
{ [Checkbox_module_default.hidden]: isHidden }
|
|
1558
1305
|
);
|
|
1559
|
-
const iconClasses = classNames10(...responsiveClasses.map((c) =>
|
|
1306
|
+
const iconClasses = classNames10(...responsiveClasses.map((c) => Checkbox_module_default[c]));
|
|
1560
1307
|
return /* @__PURE__ */ React12.createElement(
|
|
1561
1308
|
Box,
|
|
1562
1309
|
{
|
|
@@ -1596,16 +1343,20 @@ import React16 from "react";
|
|
|
1596
1343
|
import classNames14 from "classnames";
|
|
1597
1344
|
|
|
1598
1345
|
// src/components/InputValidationMessage/InputValidationMessage.tsx
|
|
1599
|
-
var import_InputValidationMessage_module = __toESM(require_InputValidationMessage_module());
|
|
1600
1346
|
import React13 from "react";
|
|
1601
1347
|
import classNames11 from "classnames";
|
|
1348
|
+
|
|
1349
|
+
// src/components/InputValidationMessage/InputValidationMessage.module.scss
|
|
1350
|
+
var InputValidationMessage_module_default = { "input-validation-message": "input-validation-message__kOPCi" };
|
|
1351
|
+
|
|
1352
|
+
// src/components/InputValidationMessage/InputValidationMessage.tsx
|
|
1602
1353
|
var InputValidationMessage = ({
|
|
1603
1354
|
children,
|
|
1604
1355
|
size = "sm"
|
|
1605
1356
|
}) => {
|
|
1606
1357
|
const classes = classNames11(
|
|
1607
1358
|
"hyphen-components__variables__form-control",
|
|
1608
|
-
|
|
1359
|
+
InputValidationMessage_module_default["input-validation-message"],
|
|
1609
1360
|
"font-color-danger",
|
|
1610
1361
|
`font-size-${size}`,
|
|
1611
1362
|
"m-top-sm"
|
|
@@ -1616,12 +1367,18 @@ var InputValidationMessage = ({
|
|
|
1616
1367
|
// src/components/FormLabel/FormLabel.tsx
|
|
1617
1368
|
import React15 from "react";
|
|
1618
1369
|
import classNames13 from "classnames";
|
|
1619
|
-
|
|
1370
|
+
|
|
1371
|
+
// src/components/FormLabel/FormLabel.module.scss
|
|
1372
|
+
var FormLabel_module_default = { "label": "label__LzijR", "radio-input-label": "radio-input-label__BDhYH", "disabled": "disabled__TmorR", "sm": "sm__N5PXz" };
|
|
1620
1373
|
|
|
1621
1374
|
// src/components/HelpText/HelpText.tsx
|
|
1622
1375
|
import React14, { forwardRef as forwardRef5 } from "react";
|
|
1623
1376
|
import classNames12 from "classnames";
|
|
1624
|
-
|
|
1377
|
+
|
|
1378
|
+
// src/components/HelpText/HelpText.module.scss
|
|
1379
|
+
var HelpText_module_default = { "help-text": "help-text__CqlFB" };
|
|
1380
|
+
|
|
1381
|
+
// src/components/HelpText/HelpText.tsx
|
|
1625
1382
|
var HelpText = forwardRef5(
|
|
1626
1383
|
({ children, className }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1627
1384
|
Box,
|
|
@@ -1629,7 +1386,7 @@ var HelpText = forwardRef5(
|
|
|
1629
1386
|
ref,
|
|
1630
1387
|
className: classNames12(
|
|
1631
1388
|
"hyphen-components__variables__form-control",
|
|
1632
|
-
|
|
1389
|
+
HelpText_module_default["help-text"],
|
|
1633
1390
|
className
|
|
1634
1391
|
),
|
|
1635
1392
|
display: "block",
|
|
@@ -1659,12 +1416,12 @@ var FormLabel = ({
|
|
|
1659
1416
|
}) => {
|
|
1660
1417
|
const labelClasses = classNames13(
|
|
1661
1418
|
"hyphen-components__variables__form-control",
|
|
1662
|
-
|
|
1419
|
+
FormLabel_module_default.label,
|
|
1663
1420
|
className,
|
|
1664
1421
|
{
|
|
1665
|
-
[
|
|
1666
|
-
[
|
|
1667
|
-
[
|
|
1422
|
+
[FormLabel_module_default.sm]: size === "sm",
|
|
1423
|
+
[FormLabel_module_default.disabled]: isDisabled,
|
|
1424
|
+
[FormLabel_module_default["radio-input-label"]]: isRadioInputLabel
|
|
1668
1425
|
}
|
|
1669
1426
|
);
|
|
1670
1427
|
return /* @__PURE__ */ React15.createElement(
|
|
@@ -1823,13 +1580,15 @@ var DetailsSummary = ({
|
|
|
1823
1580
|
);
|
|
1824
1581
|
};
|
|
1825
1582
|
|
|
1583
|
+
// src/components/Details/Details.module.scss
|
|
1584
|
+
var Details_module_default = { "details-reset": "details-reset__4zsOL" };
|
|
1585
|
+
|
|
1826
1586
|
// src/components/Details/Details.tsx
|
|
1827
|
-
var import_Details_module = __toESM(require_Details_module());
|
|
1828
1587
|
var DetailsBaseComponent = React18.forwardRef(({ children, className, display = "block", isOpen, ...restProps }, ref) => {
|
|
1829
1588
|
const detailsClasses = classNames15(
|
|
1830
1589
|
className,
|
|
1831
|
-
|
|
1832
|
-
|
|
1590
|
+
Details_module_default["details-reset"],
|
|
1591
|
+
Details_module_default.details
|
|
1833
1592
|
);
|
|
1834
1593
|
return /* @__PURE__ */ React18.createElement(
|
|
1835
1594
|
Box,
|
|
@@ -1865,7 +1624,11 @@ import ReactModal from "react-modal";
|
|
|
1865
1624
|
import FocusLock from "react-focus-lock";
|
|
1866
1625
|
import { RemoveScroll } from "react-remove-scroll";
|
|
1867
1626
|
import classNames16 from "classnames";
|
|
1868
|
-
|
|
1627
|
+
|
|
1628
|
+
// src/components/Drawer/Drawer.module.scss
|
|
1629
|
+
var Drawer_module_default = { "drawer": "drawer__hYeUE", "hide-overlay-right": "hide-overlay-right__qOhB1", "hide-overlay-left": "hide-overlay-left__KJuTD", "hide-overlay-bottom": "hide-overlay-bottom__hYpHa", "hide-overlay-top": "hide-overlay-top__n5LXH", "drawer-content": "drawer-content__YAvPE", "left": "left__WiOd4", "right": "right__boaGT", "bottom": "bottom__83KU5", "top": "top__cTFBS" };
|
|
1630
|
+
|
|
1631
|
+
// src/components/Drawer/Drawer.tsx
|
|
1869
1632
|
var DrawerContext = createContext(null);
|
|
1870
1633
|
function useDrawer() {
|
|
1871
1634
|
const context = useContext(DrawerContext);
|
|
@@ -1989,17 +1752,17 @@ var Drawer = forwardRef6(
|
|
|
1989
1752
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1990
1753
|
["--drawer-width"]: dynamicWidth
|
|
1991
1754
|
};
|
|
1992
|
-
const overlayClassnames = classNames16(
|
|
1993
|
-
[
|
|
1994
|
-
[
|
|
1755
|
+
const overlayClassnames = classNames16(Drawer_module_default.overlay, Drawer_module_default.drawer, {
|
|
1756
|
+
[Drawer_module_default["hide-overlay"]]: hideOverlay,
|
|
1757
|
+
[Drawer_module_default[`hide-overlay-${placement}`]]: hideOverlay,
|
|
1995
1758
|
"position-fixed": containerRef === void 0,
|
|
1996
1759
|
"position-absolute": containerRef !== void 0
|
|
1997
1760
|
});
|
|
1998
1761
|
const contentClassnames = classNames16(
|
|
1999
|
-
|
|
2000
|
-
|
|
1762
|
+
Drawer_module_default["drawer-content"],
|
|
1763
|
+
Drawer_module_default[placement],
|
|
2001
1764
|
{
|
|
2002
|
-
[
|
|
1765
|
+
[Drawer_module_default["hide-overlay"]]: hideOverlay
|
|
2003
1766
|
}
|
|
2004
1767
|
);
|
|
2005
1768
|
const parentElement = containerRef?.current ? containerRef.current : document.body;
|
|
@@ -2341,8 +2104,10 @@ var RadioInputIcon = ({
|
|
|
2341
2104
|
return /* @__PURE__ */ React23.createElement(Box, { className, ...restProps }, /* @__PURE__ */ React23.createElement(Icon, { color, name }));
|
|
2342
2105
|
};
|
|
2343
2106
|
|
|
2107
|
+
// src/components/RadioGroup/RadioInput/RadioInput.module.scss
|
|
2108
|
+
var RadioInput_module_default = { "size-sm": "size-sm__DMEnZ", "size-md": "size-md__pjeaS", "size-lg": "size-lg__9cNXK", "radio-container": "radio-container__rhF9D", "hidden": "hidden__kkA7N", "size-sm-tablet": "size-sm-tablet__23btQ", "size-md-tablet": "size-md-tablet__tvOqC", "size-lg-tablet": "size-lg-tablet__O6crv", "size-sm-desktop": "size-sm-desktop__bwNO7", "size-md-desktop": "size-md-desktop__S4KIK", "size-lg-desktop": "size-lg-desktop__lNx4E", "size-sm-hd": "size-sm-hd__UrH34", "size-md-hd": "size-md-hd__lNA0Q", "size-lg-hd": "size-lg-hd__zrdPV" };
|
|
2109
|
+
|
|
2344
2110
|
// src/components/RadioGroup/RadioInput/RadioInput.tsx
|
|
2345
|
-
var import_RadioInput_module = __toESM(require_RadioInput_module());
|
|
2346
2111
|
var RadioInput = React24.forwardRef(
|
|
2347
2112
|
({
|
|
2348
2113
|
name,
|
|
@@ -2358,7 +2123,7 @@ var RadioInput = React24.forwardRef(
|
|
|
2358
2123
|
size = "md"
|
|
2359
2124
|
}, ref) => {
|
|
2360
2125
|
const responsiveClasses = classNames18(
|
|
2361
|
-
...generateResponsiveClasses("size", size).map((c) =>
|
|
2126
|
+
...generateResponsiveClasses("size", size).map((c) => RadioInput_module_default[c])
|
|
2362
2127
|
);
|
|
2363
2128
|
const labelProps = {
|
|
2364
2129
|
inputId: option.id,
|
|
@@ -2370,9 +2135,9 @@ var RadioInput = React24.forwardRef(
|
|
|
2370
2135
|
const containerClasses = classNames18(
|
|
2371
2136
|
"hyphen-components__variables__form-control",
|
|
2372
2137
|
className,
|
|
2373
|
-
|
|
2138
|
+
RadioInput_module_default["radio-container"],
|
|
2374
2139
|
responsiveClasses,
|
|
2375
|
-
{ [
|
|
2140
|
+
{ [RadioInput_module_default.hidden]: isHidden }
|
|
2376
2141
|
);
|
|
2377
2142
|
return /* @__PURE__ */ React24.createElement(React24.Fragment, null, option && /* @__PURE__ */ React24.createElement(
|
|
2378
2143
|
Box,
|
|
@@ -2421,8 +2186,10 @@ var RadioInput = React24.forwardRef(
|
|
|
2421
2186
|
);
|
|
2422
2187
|
RadioInput.displayName = "RadioInput";
|
|
2423
2188
|
|
|
2189
|
+
// src/components/RadioGroup/RadioGroup.module.scss
|
|
2190
|
+
var RadioGroup_module_default = { "radio-group": "radio-group__8HYHf", "fieldset": "fieldset__DocEZ", "legend": "legend__fig4k", "description": "description__yrW3o" };
|
|
2191
|
+
|
|
2424
2192
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
2425
|
-
var import_RadioGroup_module = __toESM(require_RadioGroup_module());
|
|
2426
2193
|
var RadioGroup2 = ({
|
|
2427
2194
|
name,
|
|
2428
2195
|
onChange,
|
|
@@ -2445,16 +2212,16 @@ var RadioGroup2 = ({
|
|
|
2445
2212
|
"hyphen-components__variables__form-control",
|
|
2446
2213
|
className,
|
|
2447
2214
|
{
|
|
2448
|
-
[
|
|
2215
|
+
[RadioGroup_module_default.loading]: error
|
|
2449
2216
|
}
|
|
2450
2217
|
);
|
|
2451
2218
|
return /* @__PURE__ */ React25.createElement(
|
|
2452
2219
|
"div",
|
|
2453
2220
|
{
|
|
2454
|
-
className: classNames19(
|
|
2221
|
+
className: classNames19(RadioGroup_module_default["radio-group"], groupClasses),
|
|
2455
2222
|
...restProps
|
|
2456
2223
|
},
|
|
2457
|
-
/* @__PURE__ */ React25.createElement("fieldset", { className:
|
|
2224
|
+
/* @__PURE__ */ React25.createElement("fieldset", { className: RadioGroup_module_default.fieldset }, (title || description) && /* @__PURE__ */ React25.createElement("legend", { className: RadioGroup_module_default.legend }, title, isRequired && /* @__PURE__ */ React25.createElement("span", null, requiredIndicator), description && /* @__PURE__ */ React25.createElement("div", { className: RadioGroup_module_default.description }, description)), /* @__PURE__ */ React25.createElement(Box, { direction, gap: "sm", className: RadioGroup_module_default.options }, options && options.map((option) => /* @__PURE__ */ React25.createElement(
|
|
2458
2225
|
RadioInput,
|
|
2459
2226
|
{
|
|
2460
2227
|
key: option.id,
|
|
@@ -2545,26 +2312,26 @@ function parsePropertyValue(value) {
|
|
|
2545
2312
|
}
|
|
2546
2313
|
function getFlexStyles(value) {
|
|
2547
2314
|
if (value === void 0) return value;
|
|
2548
|
-
const
|
|
2315
|
+
const styles = {};
|
|
2549
2316
|
if (!value.includes(" ") && !flexValues.includes(value)) {
|
|
2550
|
-
|
|
2551
|
-
return
|
|
2317
|
+
styles.flex = value;
|
|
2318
|
+
return styles;
|
|
2552
2319
|
}
|
|
2553
2320
|
if (value.includes(" ")) {
|
|
2554
2321
|
const flexProps = value.split(" ");
|
|
2555
|
-
|
|
2322
|
+
styles.flexGrow = parsePropertyValue(flexProps[0]);
|
|
2556
2323
|
if (flexProps.length === 2) {
|
|
2557
2324
|
if (doesStringIncludeCssUnit(flexProps[1])) {
|
|
2558
|
-
|
|
2325
|
+
styles.flexBasis = parsePropertyValue(flexProps[1]);
|
|
2559
2326
|
} else {
|
|
2560
|
-
|
|
2327
|
+
styles.flexShrink = parsePropertyValue(flexProps[1]);
|
|
2561
2328
|
}
|
|
2562
2329
|
} else if (flexProps.length === 3) {
|
|
2563
|
-
|
|
2564
|
-
|
|
2330
|
+
styles.flexShrink = parsePropertyValue(flexProps[1]);
|
|
2331
|
+
styles.flexBasis = parsePropertyValue(flexProps[2]);
|
|
2565
2332
|
}
|
|
2566
2333
|
}
|
|
2567
|
-
return
|
|
2334
|
+
return styles;
|
|
2568
2335
|
}
|
|
2569
2336
|
function getFlexClasses(value) {
|
|
2570
2337
|
if (value === void 0 || value.split(" ").length > 1) return [];
|
|
@@ -2706,8 +2473,10 @@ var BOX_SHADOW_OPTIONS = Object.keys(
|
|
|
2706
2473
|
designTokens.size["box-shadow"]
|
|
2707
2474
|
);
|
|
2708
2475
|
|
|
2476
|
+
// src/components/SelectInput/SelectInput.module.scss
|
|
2477
|
+
var SelectInput_module_default = { "react-select-icon": "react-select-icon__zfydL", "size-sm": "size-sm__8ubkS", "size-md": "size-md__ziQag", "size-lg": "size-lg__bp0YJ", "error": "error__cmtqG", "size-sm-tablet": "size-sm-tablet__KWSx5", "size-md-tablet": "size-md-tablet__8FYyt", "size-lg-tablet": "size-lg-tablet__YJaOy", "size-sm-desktop": "size-sm-desktop__FJTMh", "size-md-desktop": "size-md-desktop__IxoZA", "size-lg-desktop": "size-lg-desktop__lowmQ", "size-sm-hd": "size-sm-hd__dQVFV", "size-md-hd": "size-md-hd__0LKLl", "size-lg-hd": "size-lg-hd__6p4hB", "disabled": "disabled__1iXWU", "select-input-label": "select-input-label__MD96T" };
|
|
2478
|
+
|
|
2709
2479
|
// src/components/SelectInput/SelectInput.tsx
|
|
2710
|
-
var import_SelectInput_module = __toESM(require_SelectInput_module());
|
|
2711
2480
|
function SelectInput(props) {
|
|
2712
2481
|
const {
|
|
2713
2482
|
id,
|
|
@@ -2755,16 +2524,16 @@ function SelectInput(props) {
|
|
|
2755
2524
|
"hyphen-components__variables__form-control",
|
|
2756
2525
|
"select-input-wrapper",
|
|
2757
2526
|
className,
|
|
2758
|
-
...responsiveClasses.map((c) =>
|
|
2527
|
+
...responsiveClasses.map((c) => SelectInput_module_default[c]),
|
|
2759
2528
|
{
|
|
2760
|
-
[
|
|
2529
|
+
[SelectInput_module_default.disabled]: isDisabled
|
|
2761
2530
|
}
|
|
2762
2531
|
);
|
|
2763
|
-
const inputClasses = classNames20("react-select", { [
|
|
2532
|
+
const inputClasses = classNames20("react-select", { [SelectInput_module_default.error]: error });
|
|
2764
2533
|
const labelProps = {
|
|
2765
2534
|
inputId: id,
|
|
2766
2535
|
helpText,
|
|
2767
|
-
className:
|
|
2536
|
+
className: SelectInput_module_default["select-input-label"],
|
|
2768
2537
|
isDisabled,
|
|
2769
2538
|
isFieldRequired: isRequired,
|
|
2770
2539
|
requiredIndicator
|
|
@@ -2849,7 +2618,11 @@ import React29, {
|
|
|
2849
2618
|
forwardRef as forwardRef7
|
|
2850
2619
|
} from "react";
|
|
2851
2620
|
import classNames21 from "classnames";
|
|
2852
|
-
|
|
2621
|
+
|
|
2622
|
+
// src/components/SelectInputInset/SelectInputInset.module.scss
|
|
2623
|
+
var SelectInputInset_module_default = { "text-input-wrapper": "text-input-wrapper__PllRX", "size-md": "size-md__kzSWb", "select-input-label": "select-input-label__DDszO", "clear-button": "clear-button__DkAdl", "size-lg": "size-lg__CuGV1", "disabled": "disabled__UeBIT", "size-md-tablet": "size-md-tablet__ur12V", "size-lg-tablet": "size-lg-tablet__xX4dn", "size-md-desktop": "size-md-desktop__NwTq3", "size-lg-desktop": "size-lg-desktop__x5p13", "size-md-hd": "size-md-hd__P7sVU", "size-lg-hd": "size-lg-hd__BYtY9", "error": "error__wbmPK" };
|
|
2624
|
+
|
|
2625
|
+
// src/components/SelectInputInset/SelectInputInset.tsx
|
|
2853
2626
|
var SelectInputInset = forwardRef7(
|
|
2854
2627
|
({
|
|
2855
2628
|
id,
|
|
@@ -2877,15 +2650,15 @@ var SelectInputInset = forwardRef7(
|
|
|
2877
2650
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
2878
2651
|
const inputWrapperClasses = classNames21(
|
|
2879
2652
|
"hyphen-components__variables__form-control",
|
|
2880
|
-
|
|
2881
|
-
...responsiveClasses.map((c) =>
|
|
2653
|
+
SelectInputInset_module_default["text-input-wrapper"],
|
|
2654
|
+
...responsiveClasses.map((c) => SelectInputInset_module_default[c]),
|
|
2882
2655
|
{
|
|
2883
|
-
[
|
|
2884
|
-
[
|
|
2885
|
-
[
|
|
2656
|
+
[SelectInputInset_module_default.error]: error,
|
|
2657
|
+
[SelectInputInset_module_default.disabled]: isDisabled,
|
|
2658
|
+
[SelectInputInset_module_default["is-clearable"]]: onClear
|
|
2886
2659
|
}
|
|
2887
2660
|
);
|
|
2888
|
-
const clearBtnClasses = classNames21(
|
|
2661
|
+
const clearBtnClasses = classNames21(SelectInputInset_module_default["clear-button"], SelectInputInset_module_default.md);
|
|
2889
2662
|
const renderClearIcon = () => {
|
|
2890
2663
|
const handleKeyPress = (event) => {
|
|
2891
2664
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2947,7 +2720,7 @@ var SelectInputInset = forwardRef7(
|
|
|
2947
2720
|
"label",
|
|
2948
2721
|
{
|
|
2949
2722
|
htmlFor: id,
|
|
2950
|
-
className:
|
|
2723
|
+
className: SelectInputInset_module_default["select-input-label"],
|
|
2951
2724
|
id: `${id}Label`
|
|
2952
2725
|
},
|
|
2953
2726
|
label,
|
|
@@ -2993,7 +2766,11 @@ import React31, {
|
|
|
2993
2766
|
forwardRef as forwardRef8
|
|
2994
2767
|
} from "react";
|
|
2995
2768
|
import classNames22 from "classnames";
|
|
2996
|
-
|
|
2769
|
+
|
|
2770
|
+
// src/components/TextareaInputInset/TextareaInputInset.module.scss
|
|
2771
|
+
var TextareaInputInset_module_default = { "text-input-wrapper": "text-input-wrapper__bX0r7", "size-md": "size-md__1Eltp", "text-input-label": "text-input-label__RGDGc", "size-lg": "size-lg__gK4a7", "disabled": "disabled__oDWFr", "size-md-tablet": "size-md-tablet__6Bmaj", "size-lg-tablet": "size-lg-tablet__hWGPC", "size-md-desktop": "size-md-desktop__lOo2D", "size-lg-desktop": "size-lg-desktop__CihRR", "size-md-hd": "size-md-hd__iCJEf", "size-lg-hd": "size-lg-hd__I5jfv", "error": "error__URyC8", "textarea-resize-both": "textarea-resize-both__v8rAd", "textarea-resize-horizontal": "textarea-resize-horizontal__juQZz", "textarea-resize-vertical": "textarea-resize-vertical__FYVFJ", "textarea-resize-none": "textarea-resize-none__5fjZJ" };
|
|
2772
|
+
|
|
2773
|
+
// src/components/TextareaInputInset/TextareaInputInset.tsx
|
|
2997
2774
|
var TextareaInputInset = forwardRef8(
|
|
2998
2775
|
({
|
|
2999
2776
|
id,
|
|
@@ -3022,10 +2799,10 @@ var TextareaInputInset = forwardRef8(
|
|
|
3022
2799
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
3023
2800
|
const inputWrapperClasses = classNames22(
|
|
3024
2801
|
"hyphen-components__variables__form-control",
|
|
3025
|
-
|
|
3026
|
-
...responsiveClasses.map((c) =>
|
|
2802
|
+
TextareaInputInset_module_default["text-input-wrapper"],
|
|
2803
|
+
...responsiveClasses.map((c) => TextareaInputInset_module_default[c]),
|
|
3027
2804
|
{
|
|
3028
|
-
[
|
|
2805
|
+
[TextareaInputInset_module_default.disabled]: isDisabled
|
|
3029
2806
|
}
|
|
3030
2807
|
);
|
|
3031
2808
|
const computedInputProps = {
|
|
@@ -3037,8 +2814,8 @@ var TextareaInputInset = forwardRef8(
|
|
|
3037
2814
|
"aria-labelledby": label ? `${id}Label` : void 0,
|
|
3038
2815
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
3039
2816
|
autoFocus,
|
|
3040
|
-
className: classNames22(
|
|
3041
|
-
[
|
|
2817
|
+
className: classNames22(TextareaInputInset_module_default[`textarea-resize-${resize}`], {
|
|
2818
|
+
[TextareaInputInset_module_default.error]: error
|
|
3042
2819
|
}),
|
|
3043
2820
|
disabled: isDisabled,
|
|
3044
2821
|
id,
|
|
@@ -3065,7 +2842,7 @@ var TextareaInputInset = forwardRef8(
|
|
|
3065
2842
|
"label",
|
|
3066
2843
|
{
|
|
3067
2844
|
htmlFor: id,
|
|
3068
|
-
className:
|
|
2845
|
+
className: TextareaInputInset_module_default["text-input-label"],
|
|
3069
2846
|
id: `${id}Label`
|
|
3070
2847
|
},
|
|
3071
2848
|
label,
|
|
@@ -3109,7 +2886,11 @@ import React33, {
|
|
|
3109
2886
|
forwardRef as forwardRef9
|
|
3110
2887
|
} from "react";
|
|
3111
2888
|
import classNames23 from "classnames";
|
|
3112
|
-
|
|
2889
|
+
|
|
2890
|
+
// src/components/TextInputInset/TextInputInset.module.scss
|
|
2891
|
+
var TextInputInset_module_default = { "text-input-wrapper": "text-input-wrapper__WTVPf", "size-md": "size-md__lwrYR", "label-input-wrapper": "label-input-wrapper__h2T6c", "text-input-label": "text-input-label__G9jI6", "prefix": "prefix__xzdVW", "suffix": "suffix__ZuASQ", "clear-button": "clear-button__PuuA9", "size-lg": "size-lg__ocFpJ", "disabled": "disabled__vuvK9", "size-md-tablet": "size-md-tablet__dBe4R", "size-lg-tablet": "size-lg-tablet__b0rWB", "size-md-desktop": "size-md-desktop__N4oN4", "size-lg-desktop": "size-lg-desktop__aAyGW", "size-md-hd": "size-md-hd__i6Y6g", "size-lg-hd": "size-lg-hd__G02mi", "error": "error__R4tQF" };
|
|
2892
|
+
|
|
2893
|
+
// src/components/TextInputInset/TextInputInset.tsx
|
|
3113
2894
|
var TextInputInset = forwardRef9(
|
|
3114
2895
|
({
|
|
3115
2896
|
id,
|
|
@@ -3138,15 +2919,15 @@ var TextInputInset = forwardRef9(
|
|
|
3138
2919
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
3139
2920
|
const inputWrapperClasses = classNames23(
|
|
3140
2921
|
"hyphen-components__variables__form-control",
|
|
3141
|
-
|
|
3142
|
-
...responsiveClasses.map((c) =>
|
|
2922
|
+
TextInputInset_module_default["text-input-wrapper"],
|
|
2923
|
+
...responsiveClasses.map((c) => TextInputInset_module_default[c]),
|
|
3143
2924
|
{
|
|
3144
|
-
[
|
|
3145
|
-
[
|
|
3146
|
-
[
|
|
2925
|
+
[TextInputInset_module_default.error]: error,
|
|
2926
|
+
[TextInputInset_module_default.disabled]: isDisabled,
|
|
2927
|
+
[TextInputInset_module_default["is-clearable"]]: onClear
|
|
3147
2928
|
}
|
|
3148
2929
|
);
|
|
3149
|
-
const clearBtnClasses = classNames23(
|
|
2930
|
+
const clearBtnClasses = classNames23(TextInputInset_module_default["clear-button"], TextInputInset_module_default.md);
|
|
3150
2931
|
const renderClearIcon = () => {
|
|
3151
2932
|
const handleKeyPress = (event) => {
|
|
3152
2933
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -3193,7 +2974,7 @@ var TextInputInset = forwardRef9(
|
|
|
3193
2974
|
alignItems: "center",
|
|
3194
2975
|
justifyContent: "center",
|
|
3195
2976
|
background: "secondary",
|
|
3196
|
-
className: classNames23(
|
|
2977
|
+
className: classNames23(TextInputInset_module_default.prefix, "ws-nowrap")
|
|
3197
2978
|
},
|
|
3198
2979
|
prefix
|
|
3199
2980
|
), /* @__PURE__ */ React33.createElement(
|
|
@@ -3210,7 +2991,7 @@ var TextInputInset = forwardRef9(
|
|
|
3210
2991
|
"label",
|
|
3211
2992
|
{
|
|
3212
2993
|
htmlFor: id,
|
|
3213
|
-
className:
|
|
2994
|
+
className: TextInputInset_module_default["text-input-label"],
|
|
3214
2995
|
id: `${id}Label`
|
|
3215
2996
|
},
|
|
3216
2997
|
label,
|
|
@@ -3221,7 +3002,7 @@ var TextInputInset = forwardRef9(
|
|
|
3221
3002
|
{
|
|
3222
3003
|
color: "base",
|
|
3223
3004
|
background: "secondary",
|
|
3224
|
-
className: classNames23(
|
|
3005
|
+
className: classNames23(TextInputInset_module_default.suffix, "ws-nowrap")
|
|
3225
3006
|
},
|
|
3226
3007
|
suffix
|
|
3227
3008
|
)), helpText && /* @__PURE__ */ React33.createElement(HelpText, null, helpText), error && error !== true && /* @__PURE__ */ React33.createElement(InputValidationMessage, null, error));
|
|
@@ -3260,7 +3041,11 @@ import {
|
|
|
3260
3041
|
// src/components/SelectInputNative/SelectInputNative.tsx
|
|
3261
3042
|
import React35 from "react";
|
|
3262
3043
|
import classNames24 from "classnames";
|
|
3263
|
-
|
|
3044
|
+
|
|
3045
|
+
// src/components/SelectInputNative/SelectInputNative.module.scss
|
|
3046
|
+
var SelectInputNative_module_default = { "select-input-native-wrapper": "select-input-native-wrapper__4tcjw", "disabled": "disabled__kJSUg", "size-sm": "size-sm__5YVYU", "size-md": "size-md__u28ua", "size-lg": "size-lg__VSjry", "size-sm-tablet": "size-sm-tablet__j5X6B", "size-md-tablet": "size-md-tablet__2wxo8", "size-lg-tablet": "size-lg-tablet__YBmi4", "size-sm-desktop": "size-sm-desktop__pHHXa", "size-md-desktop": "size-md-desktop__lhYR0", "size-lg-desktop": "size-lg-desktop__DHMFf", "size-sm-hd": "size-sm-hd__Dm98R", "size-md-hd": "size-md-hd__Wusd5", "size-lg-hd": "size-lg-hd__rIdTF", "error": "error__P7zPq", "text-input-label": "text-input-label__YXKVF" };
|
|
3047
|
+
|
|
3048
|
+
// src/components/SelectInputNative/SelectInputNative.tsx
|
|
3264
3049
|
var SelectInputNative = ({
|
|
3265
3050
|
autoFocus = false,
|
|
3266
3051
|
label,
|
|
@@ -3291,11 +3076,11 @@ var SelectInputNative = ({
|
|
|
3291
3076
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
3292
3077
|
const selectWrapperClasses = classNames24(
|
|
3293
3078
|
"hyphen-components__variables__form-control",
|
|
3294
|
-
|
|
3295
|
-
...responsiveClasses.map((className) =>
|
|
3079
|
+
SelectInputNative_module_default["select-input-native-wrapper"],
|
|
3080
|
+
...responsiveClasses.map((className) => SelectInputNative_module_default[className]),
|
|
3296
3081
|
{
|
|
3297
|
-
[
|
|
3298
|
-
[
|
|
3082
|
+
[SelectInputNative_module_default.disabled]: isDisabled,
|
|
3083
|
+
[SelectInputNative_module_default.error]: error
|
|
3299
3084
|
}
|
|
3300
3085
|
);
|
|
3301
3086
|
return /* @__PURE__ */ React35.createElement(
|
|
@@ -3378,7 +3163,11 @@ import React37, {
|
|
|
3378
3163
|
forwardRef as forwardRef10
|
|
3379
3164
|
} from "react";
|
|
3380
3165
|
import classNames25 from "classnames";
|
|
3381
|
-
|
|
3166
|
+
|
|
3167
|
+
// src/components/TextInput/TextInput.module.scss
|
|
3168
|
+
var TextInput_module_default = { "text-input-wrapper": "text-input-wrapper__LbN1D", "size-sm": "size-sm__end5H", "prefix": "prefix__wcCEb", "suffix": "suffix__dmciz", "clear-button": "clear-button__u7FdQ", "is-clearable": "is-clearable__qyvNU", "size-md": "size-md__mAADi", "size-lg": "size-lg__QE0al", "disabled": "disabled__ZzCr2", "size-sm-tablet": "size-sm-tablet__ipbDS", "size-md-tablet": "size-md-tablet__uLf0q", "size-lg-tablet": "size-lg-tablet__JmAQm", "size-sm-desktop": "size-sm-desktop__OeVZ2", "size-md-desktop": "size-md-desktop__JPY4p", "size-lg-desktop": "size-lg-desktop__aLmhN", "size-sm-hd": "size-sm-hd__tRsUr", "size-md-hd": "size-md-hd__vekZY", "size-lg-hd": "size-lg-hd__56vqe", "error": "error__HE31l", "text-input-label": "text-input-label__gz2wV" };
|
|
3169
|
+
|
|
3170
|
+
// src/components/TextInput/TextInput.tsx
|
|
3382
3171
|
var TextInput = forwardRef10(
|
|
3383
3172
|
({
|
|
3384
3173
|
id,
|
|
@@ -3409,15 +3198,15 @@ var TextInput = forwardRef10(
|
|
|
3409
3198
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
3410
3199
|
const inputWrapperClasses = classNames25(
|
|
3411
3200
|
"hyphen-components__variables__form-control",
|
|
3412
|
-
|
|
3413
|
-
...responsiveClasses.map((c) =>
|
|
3201
|
+
TextInput_module_default["text-input-wrapper"],
|
|
3202
|
+
...responsiveClasses.map((c) => TextInput_module_default[c]),
|
|
3414
3203
|
{
|
|
3415
|
-
[
|
|
3416
|
-
[
|
|
3417
|
-
[
|
|
3204
|
+
[TextInput_module_default.error]: error,
|
|
3205
|
+
[TextInput_module_default.disabled]: isDisabled,
|
|
3206
|
+
[TextInput_module_default["is-clearable"]]: onClear
|
|
3418
3207
|
}
|
|
3419
3208
|
);
|
|
3420
|
-
const clearBtnClasses = classNames25(
|
|
3209
|
+
const clearBtnClasses = classNames25(TextInput_module_default["clear-button"], TextInput_module_default.md);
|
|
3421
3210
|
const renderClearIcon = () => {
|
|
3422
3211
|
const handleKeyPress = (event) => {
|
|
3423
3212
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -3480,7 +3269,7 @@ var TextInput = forwardRef10(
|
|
|
3480
3269
|
{
|
|
3481
3270
|
color: "secondary",
|
|
3482
3271
|
background: "secondary",
|
|
3483
|
-
className: classNames25(
|
|
3272
|
+
className: classNames25(TextInput_module_default.prefix, "ws-nowrap")
|
|
3484
3273
|
},
|
|
3485
3274
|
prefix
|
|
3486
3275
|
), /* @__PURE__ */ React37.createElement(Box, { as: "input", ...computedInputProps }), !!onClear && !!value && renderClearIcon(), suffix && /* @__PURE__ */ React37.createElement(
|
|
@@ -3488,7 +3277,7 @@ var TextInput = forwardRef10(
|
|
|
3488
3277
|
{
|
|
3489
3278
|
color: "secondary",
|
|
3490
3279
|
background: "secondary",
|
|
3491
|
-
className: classNames25(
|
|
3280
|
+
className: classNames25(TextInput_module_default.suffix, "ws-nowrap")
|
|
3492
3281
|
},
|
|
3493
3282
|
suffix
|
|
3494
3283
|
))
|
|
@@ -3528,7 +3317,11 @@ import {
|
|
|
3528
3317
|
// src/components/TextareaInput/TextareaInput.tsx
|
|
3529
3318
|
import React39 from "react";
|
|
3530
3319
|
import classNames26 from "classnames";
|
|
3531
|
-
|
|
3320
|
+
|
|
3321
|
+
// src/components/TextareaInput/TextareaInput.module.scss
|
|
3322
|
+
var TextareaInput_module_default = { "textarea-input-wrapper": "textarea-input-wrapper__z2TXf", "size-sm": "size-sm__p3sxw", "size-md": "size-md__xQDas", "size-lg": "size-lg__pfUGC", "size-sm-tablet": "size-sm-tablet__3ivTw", "size-md-tablet": "size-md-tablet__XnT08", "size-lg-tablet": "size-lg-tablet__Eo5Ny", "size-sm-desktop": "size-sm-desktop__kegCe", "size-md-desktop": "size-md-desktop__5amVN", "size-lg-desktop": "size-lg-desktop__fByQA", "size-sm-hd": "size-sm-hd__McmcJ", "size-md-hd": "size-md-hd__MWR1F", "size-lg-hd": "size-lg-hd__XGNwU", "error": "error__4rKSz", "textarea-input-label": "textarea-input-label__HO1YB", "textarea-resize-both": "textarea-resize-both__8Ma5f", "textarea-resize-horizontal": "textarea-resize-horizontal__7LjPt", "textarea-resize-vertical": "textarea-resize-vertical__rQzzS", "textarea-resize-none": "textarea-resize-none__BVNR0" };
|
|
3323
|
+
|
|
3324
|
+
// src/components/TextareaInput/TextareaInput.tsx
|
|
3532
3325
|
var TextareaInput = ({
|
|
3533
3326
|
id,
|
|
3534
3327
|
label,
|
|
@@ -3556,11 +3349,11 @@ var TextareaInput = ({
|
|
|
3556
3349
|
const responsiveClasses = generateResponsiveClasses("size", size);
|
|
3557
3350
|
const inputWrapperClasses = classNames26(
|
|
3558
3351
|
"hyphen-components__variables__form-control",
|
|
3559
|
-
|
|
3560
|
-
...responsiveClasses.map((c) =>
|
|
3352
|
+
TextareaInput_module_default["textarea-input-wrapper"],
|
|
3353
|
+
...responsiveClasses.map((c) => TextareaInput_module_default[c]),
|
|
3561
3354
|
{
|
|
3562
|
-
[
|
|
3563
|
-
[
|
|
3355
|
+
[TextareaInput_module_default.error]: error,
|
|
3356
|
+
[TextareaInput_module_default.disabled]: isDisabled
|
|
3564
3357
|
}
|
|
3565
3358
|
);
|
|
3566
3359
|
const inputProps = {
|
|
@@ -3570,7 +3363,7 @@ var TextareaInput = ({
|
|
|
3570
3363
|
"aria-labelledby": label && !hideLabel ? `${id}Label` : void 0,
|
|
3571
3364
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
3572
3365
|
autoFocus,
|
|
3573
|
-
className: classNames26(
|
|
3366
|
+
className: classNames26(TextareaInput_module_default[`textarea-resize-${resize}`]),
|
|
3574
3367
|
disabled: isDisabled,
|
|
3575
3368
|
id,
|
|
3576
3369
|
maxLength,
|
|
@@ -3586,7 +3379,7 @@ var TextareaInput = ({
|
|
|
3586
3379
|
const labelProps = {
|
|
3587
3380
|
inputId: id,
|
|
3588
3381
|
helpText,
|
|
3589
|
-
className:
|
|
3382
|
+
className: TextareaInput_module_default["textarea-input-label"],
|
|
3590
3383
|
isDisabled,
|
|
3591
3384
|
isFieldRequired: isRequired,
|
|
3592
3385
|
requiredIndicator
|
|
@@ -3780,7 +3573,11 @@ import {
|
|
|
3780
3573
|
// src/components/Switch/Switch.tsx
|
|
3781
3574
|
import React45 from "react";
|
|
3782
3575
|
import classNames27 from "classnames";
|
|
3783
|
-
|
|
3576
|
+
|
|
3577
|
+
// src/components/Switch/Switch.module.scss
|
|
3578
|
+
var Switch_module_default = { "thumb-size-sm": "thumb-size-sm__92EnW", "thumb-size-md": "thumb-size-md__USJGW", "thumb-size-lg": "thumb-size-lg__u9j4R", "track-size-sm": "track-size-sm__mupGk", "track-size-md": "track-size-md__UUAvc", "track-size-lg": "track-size-lg__kEGBr", "thumb-size-sm-tablet": "thumb-size-sm-tablet__WQjt6", "thumb-size-md-tablet": "thumb-size-md-tablet__jSxOp", "thumb-size-lg-tablet": "thumb-size-lg-tablet__4pyAW", "track-size-sm-tablet": "track-size-sm-tablet__kZJiA", "track-size-md-tablet": "track-size-md-tablet__kYVvr", "track-size-lg-tablet": "track-size-lg-tablet__h2Cpd", "thumb-size-sm-desktop": "thumb-size-sm-desktop__tJud8", "thumb-size-md-desktop": "thumb-size-md-desktop__wuS7C", "thumb-size-lg-desktop": "thumb-size-lg-desktop__XCwcP", "track-size-sm-desktop": "track-size-sm-desktop__CVhba", "track-size-md-desktop": "track-size-md-desktop__ffAvo", "track-size-lg-desktop": "track-size-lg-desktop__wUIMC", "thumb-size-sm-hd": "thumb-size-sm-hd__sgH79", "thumb-size-md-hd": "thumb-size-md-hd__3batZ", "thumb-size-lg-hd": "thumb-size-lg-hd__pEjDu", "track-size-sm-hd": "track-size-sm-hd__X78pd", "track-size-md-hd": "track-size-md-hd__BtSKE", "track-size-lg-hd": "track-size-lg-hd__PpOzz", "disabled": "disabled__MYbHs", "switch-thumb": "switch-thumb__dZ2an", "switch-track": "switch-track__Bh2hc", "error": "error__Bdfce", "switch-input": "switch-input__EVUrQ" };
|
|
3579
|
+
|
|
3580
|
+
// src/components/Switch/Switch.tsx
|
|
3784
3581
|
var Switch = ({
|
|
3785
3582
|
id,
|
|
3786
3583
|
isChecked,
|
|
@@ -3808,18 +3605,18 @@ var Switch = ({
|
|
|
3808
3605
|
};
|
|
3809
3606
|
const wrapperClasses = classNames27(
|
|
3810
3607
|
"hyphen-components__variables__form-control",
|
|
3811
|
-
{ [
|
|
3608
|
+
{ [Switch_module_default.disabled]: isDisabled }
|
|
3812
3609
|
);
|
|
3813
3610
|
const trackClasses = classNames27(
|
|
3814
|
-
|
|
3815
|
-
...generateResponsiveClasses("track-size", size).map((c) =>
|
|
3611
|
+
Switch_module_default["switch-track"],
|
|
3612
|
+
...generateResponsiveClasses("track-size", size).map((c) => Switch_module_default[c]),
|
|
3816
3613
|
{
|
|
3817
|
-
[
|
|
3614
|
+
[Switch_module_default.error]: error
|
|
3818
3615
|
}
|
|
3819
3616
|
);
|
|
3820
3617
|
const thumbClasses = classNames27(
|
|
3821
|
-
|
|
3822
|
-
...generateResponsiveClasses("thumb-size", size).map((c) =>
|
|
3618
|
+
Switch_module_default["switch-thumb"],
|
|
3619
|
+
...generateResponsiveClasses("thumb-size", size).map((c) => Switch_module_default[c])
|
|
3823
3620
|
);
|
|
3824
3621
|
const inputProps = {
|
|
3825
3622
|
"aria-required": isRequired,
|
|
@@ -3834,7 +3631,7 @@ var Switch = ({
|
|
|
3834
3631
|
onFocus: handleFocus,
|
|
3835
3632
|
required: isRequired,
|
|
3836
3633
|
type: "checkbox",
|
|
3837
|
-
className:
|
|
3634
|
+
className: Switch_module_default["switch-input"]
|
|
3838
3635
|
};
|
|
3839
3636
|
const labelProps = {
|
|
3840
3637
|
inputId: id,
|
|
@@ -3906,9 +3703,13 @@ import {
|
|
|
3906
3703
|
} from "formik";
|
|
3907
3704
|
|
|
3908
3705
|
// src/components/ToggleGroup/ToggleGroup.tsx
|
|
3909
|
-
var import_ToggleGroup_module = __toESM(require_ToggleGroup_module());
|
|
3910
3706
|
import React47, { createContext as createContext2, useContext as useContext2, forwardRef as forwardRef11 } from "react";
|
|
3911
3707
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3708
|
+
|
|
3709
|
+
// src/components/ToggleGroup/ToggleGroup.module.scss
|
|
3710
|
+
var ToggleGroup_module_default = { "item": "item__R2aaI", "outline": "outline__FoHyS" };
|
|
3711
|
+
|
|
3712
|
+
// src/components/ToggleGroup/ToggleGroup.tsx
|
|
3912
3713
|
import classNames28 from "classnames";
|
|
3913
3714
|
var ToggleGroupContext = createContext2({
|
|
3914
3715
|
variant: "default"
|
|
@@ -3938,8 +3739,8 @@ var ToggleGroupItem = forwardRef11(({ className, children, value, variant, ...pr
|
|
|
3938
3739
|
ref,
|
|
3939
3740
|
className: classNames28(
|
|
3940
3741
|
"br-sm display-flex g-sm p-sm",
|
|
3941
|
-
|
|
3942
|
-
appliedVariant === "outline" &&
|
|
3742
|
+
ToggleGroup_module_default.item,
|
|
3743
|
+
appliedVariant === "outline" && ToggleGroup_module_default.outline,
|
|
3943
3744
|
className
|
|
3944
3745
|
),
|
|
3945
3746
|
value,
|
|
@@ -4122,8 +3923,10 @@ var ModalBody = ({
|
|
|
4122
3923
|
children
|
|
4123
3924
|
);
|
|
4124
3925
|
|
|
3926
|
+
// src/components/Modal/Modal.module.scss
|
|
3927
|
+
var Modal_module_default = { "modal-close": "modal-close__ZbvmC", "modal": "modal__hmSZ2", "modal-content": "modal-content__c1lVi" };
|
|
3928
|
+
|
|
4125
3929
|
// src/components/Modal/Modal.tsx
|
|
4126
|
-
var import_Modal_module = __toESM(require_Modal_module());
|
|
4127
3930
|
var ModalBaseComponent = forwardRef12(
|
|
4128
3931
|
({
|
|
4129
3932
|
ariaLabel,
|
|
@@ -4150,11 +3953,11 @@ var ModalBaseComponent = forwardRef12(
|
|
|
4150
3953
|
}, 100);
|
|
4151
3954
|
}, [initialFocusRef]);
|
|
4152
3955
|
const maxWidthCss = getDimensionCss("mw", maxWidth);
|
|
4153
|
-
const overlayClassnames = classNames29(
|
|
3956
|
+
const overlayClassnames = classNames29(Modal_module_default.overlay, Modal_module_default.modal, {
|
|
4154
3957
|
fullscreen: fullScreenMobile
|
|
4155
3958
|
});
|
|
4156
3959
|
const contentClassnames = classNames29(
|
|
4157
|
-
|
|
3960
|
+
Modal_module_default["modal-content"],
|
|
4158
3961
|
className,
|
|
4159
3962
|
maxWidthCss.classes,
|
|
4160
3963
|
{
|
|
@@ -4369,10 +4172,14 @@ var Pagination = ({
|
|
|
4369
4172
|
};
|
|
4370
4173
|
|
|
4371
4174
|
// src/components/Popover/Popover.tsx
|
|
4372
|
-
var import_Popover_module = __toESM(require_Popover_module());
|
|
4373
4175
|
import React55, { forwardRef as forwardRef13 } from "react";
|
|
4374
4176
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4375
4177
|
import classNames31 from "classnames";
|
|
4178
|
+
|
|
4179
|
+
// src/components/Popover/Popover.module.scss
|
|
4180
|
+
var Popover_module_default = { "PopoverContent": "PopoverContent__W7mrN", "slideUp": "slideUp__A8tpn", "slideDown": "slideDown__OUSjG", "slideLeft": "slideLeft__xnzMu", "slideRight": "slideRight__0GCJm" };
|
|
4181
|
+
|
|
4182
|
+
// src/components/Popover/Popover.tsx
|
|
4376
4183
|
var Popover = PopoverPrimitive.Root;
|
|
4377
4184
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
4378
4185
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
@@ -4384,7 +4191,7 @@ var PopoverContent = forwardRef13(({ className, align = "center", sideOffset = 4
|
|
|
4384
4191
|
ref,
|
|
4385
4192
|
align,
|
|
4386
4193
|
sideOffset,
|
|
4387
|
-
className: classNames31(
|
|
4194
|
+
className: classNames31(Popover_module_default.PopoverContent, className),
|
|
4388
4195
|
...props
|
|
4389
4196
|
}
|
|
4390
4197
|
);
|
|
@@ -4392,9 +4199,13 @@ var PopoverContent = forwardRef13(({ className, align = "center", sideOffset = 4
|
|
|
4392
4199
|
PopoverContent.displayName = "PopoverContent";
|
|
4393
4200
|
|
|
4394
4201
|
// src/components/RangeInput/RangeInput.tsx
|
|
4395
|
-
var import_RangeInput_module = __toESM(require_RangeInput_module());
|
|
4396
4202
|
import React56 from "react";
|
|
4397
4203
|
import classNames32 from "classnames";
|
|
4204
|
+
|
|
4205
|
+
// src/components/RangeInput/RangeInput.module.scss
|
|
4206
|
+
var RangeInput_module_default = { "slider": "slider__hbeoX", "disabled": "disabled__pSJU6" };
|
|
4207
|
+
|
|
4208
|
+
// src/components/RangeInput/RangeInput.tsx
|
|
4398
4209
|
var RangeInput = ({
|
|
4399
4210
|
value = 0,
|
|
4400
4211
|
max = 0,
|
|
@@ -4417,8 +4228,8 @@ var RangeInput = ({
|
|
|
4417
4228
|
"aria-valuemax": max,
|
|
4418
4229
|
"aria-valuenow": value,
|
|
4419
4230
|
"aria-label": "range input",
|
|
4420
|
-
className: classNames32(
|
|
4421
|
-
[
|
|
4231
|
+
className: classNames32(RangeInput_module_default.slider, className, {
|
|
4232
|
+
[RangeInput_module_default.disabled]: isDisabled
|
|
4422
4233
|
}),
|
|
4423
4234
|
onChange,
|
|
4424
4235
|
disabled: isDisabled,
|
|
@@ -4515,13 +4326,17 @@ function useIsMobile() {
|
|
|
4515
4326
|
return !!isMobile;
|
|
4516
4327
|
}
|
|
4517
4328
|
|
|
4518
|
-
// src/components/Sidebar/Sidebar.
|
|
4519
|
-
var
|
|
4329
|
+
// src/components/Sidebar/Sidebar.module.scss
|
|
4330
|
+
var Sidebar_module_default = { "rail": "rail__OwBtB", "group-data-": "group-data-__af4bi" };
|
|
4520
4331
|
|
|
4521
4332
|
// src/components/Tooltip/Tooltip.tsx
|
|
4522
|
-
var import_Tooltip_module = __toESM(require_Tooltip_module());
|
|
4523
4333
|
import * as React59 from "react";
|
|
4524
4334
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4335
|
+
|
|
4336
|
+
// src/components/Tooltip/Tooltip.module.scss
|
|
4337
|
+
var Tooltip_module_default = { "TooltipContent": "TooltipContent__BNXfC", "tooltip-slideUpAndFade": "tooltip-slideUpAndFade__DEBC0", "tooltip-slideRightAndFade": "tooltip-slideRightAndFade__s77wr", "tooltip-slideDownAndFade": "tooltip-slideDownAndFade__ZqZAw", "tooltip-slideLeftAndFade": "tooltip-slideLeftAndFade__TX0Em" };
|
|
4338
|
+
|
|
4339
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
4525
4340
|
import classNames33 from "classnames";
|
|
4526
4341
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
4527
4342
|
var Tooltip = TooltipPrimitive.Root;
|
|
@@ -4533,7 +4348,7 @@ var TooltipContent = React59.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
4533
4348
|
ref,
|
|
4534
4349
|
sideOffset,
|
|
4535
4350
|
className: classNames33(
|
|
4536
|
-
|
|
4351
|
+
Tooltip_module_default.TooltipContent,
|
|
4537
4352
|
"background-color-tooltip font-color-tooltip font-size-xs z-index-popover overflow-hidden br-sm p-h-sm p-v-xs shadow-sm",
|
|
4538
4353
|
className
|
|
4539
4354
|
),
|
|
@@ -5121,7 +4936,7 @@ var SidebarRail = React60.forwardRef(({ className, ...props }, ref) => {
|
|
|
5121
4936
|
onClick: toggleSidebar,
|
|
5122
4937
|
title: `Toggle Sidebar ${shortcutLabel}`,
|
|
5123
4938
|
className: classNames34(
|
|
5124
|
-
|
|
4939
|
+
Sidebar_module_default.rail,
|
|
5125
4940
|
"hover-show-child background-color-transparent display-flex p-top-5xl p-left-xl p-right-0 justify-content-center position-absolute",
|
|
5126
4941
|
{
|
|
5127
4942
|
"cursor-w-resize": open && side === "left" || !open && side === "right",
|
|
@@ -5188,22 +5003,32 @@ SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
|
5188
5003
|
// src/components/Table/Table.tsx
|
|
5189
5004
|
import React66 from "react";
|
|
5190
5005
|
import classNames40 from "classnames";
|
|
5191
|
-
|
|
5006
|
+
|
|
5007
|
+
// src/components/Table/Table.module.scss
|
|
5008
|
+
var Table_module_default = { "container": "container__zReWp", "loading-mask": "loading-mask__gwG6j", "scroll-container": "scroll-container__79zJk", "table": "table__ojslm", "auto": "auto__bXEGP", "fixed": "fixed__zPdl3", "borderless": "borderless__AlDGM", "scrollable": "scrollable__HSxT1", "scrollable-x": "scrollable-x__aKmx8", "scrollable-y": "scrollable-y__8nNit", "table-bordered": "table-bordered__oTd6P", "full-height": "full-height__YPJfE" };
|
|
5192
5009
|
|
|
5193
5010
|
// src/components/Table/TableBody/TableBody.tsx
|
|
5194
|
-
var import_TableBody_module = __toESM(require_TableBody_module());
|
|
5195
5011
|
import React64 from "react";
|
|
5196
5012
|
import classNames38 from "classnames";
|
|
5197
5013
|
|
|
5014
|
+
// src/components/Table/TableBody/TableBody.module.scss
|
|
5015
|
+
var TableBody_module_default = { "table-body": "table-body__cX0OQ", "striped": "striped__1Epqn", "hover": "hover__I3QF4" };
|
|
5016
|
+
|
|
5198
5017
|
// src/components/Table/common/TableRow/TableRow.tsx
|
|
5199
|
-
var import_TableRow_module = __toESM(require_TableRow_module());
|
|
5200
5018
|
import React63 from "react";
|
|
5201
5019
|
import classNames37 from "classnames";
|
|
5202
5020
|
|
|
5021
|
+
// src/components/Table/common/TableRow/TableRow.module.scss
|
|
5022
|
+
var TableRow_module_default = { "table-row": "table-row__BdHbx", "hoverable": "hoverable__Bdemq" };
|
|
5023
|
+
|
|
5203
5024
|
// src/components/Table/TableBody/TableBodyCell/TableBodyCell.tsx
|
|
5204
5025
|
import React61 from "react";
|
|
5205
5026
|
import classNames35 from "classnames";
|
|
5206
|
-
|
|
5027
|
+
|
|
5028
|
+
// src/components/Table/TableBody/TableBodyCell/TableBodyCell.module.scss
|
|
5029
|
+
var TableBodyCell_module_default = { "table-cell": "table-cell__VZyU4", "borderless": "borderless__HSbu2", "compact": "compact__6dBfF", "truncated": "truncated__0aWw6", "sticky-column-left": "sticky-column-left__2ZCRe", "sticky-column-right": "sticky-column-right__uDaB9", "sticky-column": "sticky-column__GYwI5", "align-right": "align-right__VIgMe", "align-center": "align-center__dulqF" };
|
|
5030
|
+
|
|
5031
|
+
// src/components/Table/TableBody/TableBodyCell/TableBodyCell.tsx
|
|
5207
5032
|
var TableBodyCell = ({
|
|
5208
5033
|
align = "left",
|
|
5209
5034
|
children = null,
|
|
@@ -5217,16 +5042,16 @@ var TableBodyCell = ({
|
|
|
5217
5042
|
}) => {
|
|
5218
5043
|
const columnIsSticky = sticky === "left" || sticky === "right";
|
|
5219
5044
|
const tableCellClasses = classNames35(
|
|
5220
|
-
|
|
5045
|
+
TableBodyCell_module_default["table-cell"],
|
|
5221
5046
|
{
|
|
5222
|
-
[
|
|
5223
|
-
[
|
|
5224
|
-
[
|
|
5225
|
-
[
|
|
5226
|
-
[
|
|
5227
|
-
[
|
|
5228
|
-
[
|
|
5229
|
-
[
|
|
5047
|
+
[TableBodyCell_module_default.truncated]: truncateOverflow,
|
|
5048
|
+
[TableBodyCell_module_default.compact]: isCompact,
|
|
5049
|
+
[TableBodyCell_module_default.borderless]: isBorderless,
|
|
5050
|
+
[TableBodyCell_module_default["sticky-column"]]: columnIsSticky,
|
|
5051
|
+
[TableBodyCell_module_default["sticky-column-left"]]: sticky === "left",
|
|
5052
|
+
[TableBodyCell_module_default["sticky-column-right"]]: sticky === "right",
|
|
5053
|
+
[TableBodyCell_module_default["align-right"]]: align === "right",
|
|
5054
|
+
[TableBodyCell_module_default["align-center"]]: align === "center"
|
|
5230
5055
|
},
|
|
5231
5056
|
className
|
|
5232
5057
|
);
|
|
@@ -5250,7 +5075,11 @@ var TableBodyCell_default = TableBodyCell;
|
|
|
5250
5075
|
// src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.tsx
|
|
5251
5076
|
import React62 from "react";
|
|
5252
5077
|
import classNames36 from "classnames";
|
|
5253
|
-
|
|
5078
|
+
|
|
5079
|
+
// src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.module.scss
|
|
5080
|
+
var TableHeaderCell_module_default = { "table-header-cell": "table-header-cell__XIKQm", "sortable": "sortable__8Dxk4", "borderless": "borderless__m7Mfq", "truncated": "truncated__kbgp9", "compact": "compact__vQbZi", "sticky-header": "sticky-header__H97F5", "sticky-column-left": "sticky-column-left__PHLNg", "sticky-column-right": "sticky-column-right__W6Ufk", "sticky-column": "sticky-column__1dWau", "align-right": "align-right__P18Hv", "align-center": "align-center__0NjDP", "heading": "heading__XXdag", "sort-icon": "sort-icon__Snloc" };
|
|
5081
|
+
|
|
5082
|
+
// src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.tsx
|
|
5254
5083
|
var TableHeaderCell = ({
|
|
5255
5084
|
column,
|
|
5256
5085
|
align = "left",
|
|
@@ -5299,7 +5128,7 @@ var TableHeaderCell = ({
|
|
|
5299
5128
|
}
|
|
5300
5129
|
);
|
|
5301
5130
|
};
|
|
5302
|
-
return /* @__PURE__ */ React62.createElement("span", { className:
|
|
5131
|
+
return /* @__PURE__ */ React62.createElement("span", { className: TableHeaderCell_module_default["sort-icon"] }, renderArrows());
|
|
5303
5132
|
};
|
|
5304
5133
|
const handleKeyPress = (event) => {
|
|
5305
5134
|
if (!onSort || !isSortable) return;
|
|
@@ -5316,18 +5145,18 @@ var TableHeaderCell = ({
|
|
|
5316
5145
|
onSort(eventWithKey);
|
|
5317
5146
|
};
|
|
5318
5147
|
const tableHeaderClasses = classNames36(
|
|
5319
|
-
|
|
5148
|
+
TableHeaderCell_module_default["table-header-cell"],
|
|
5320
5149
|
{
|
|
5321
|
-
[
|
|
5322
|
-
[
|
|
5323
|
-
[
|
|
5324
|
-
[
|
|
5325
|
-
[
|
|
5326
|
-
[
|
|
5327
|
-
[
|
|
5328
|
-
[
|
|
5329
|
-
[
|
|
5330
|
-
[
|
|
5150
|
+
[TableHeaderCell_module_default.sortable]: isSortable,
|
|
5151
|
+
[TableHeaderCell_module_default.compact]: isCompact,
|
|
5152
|
+
[TableHeaderCell_module_default.truncated]: truncateOverflow,
|
|
5153
|
+
[TableHeaderCell_module_default.borderless]: isBorderless,
|
|
5154
|
+
[TableHeaderCell_module_default["sticky-header"]]: hasStickyHeader,
|
|
5155
|
+
[TableHeaderCell_module_default["sticky-column"]]: sticky === "left" || sticky === "right",
|
|
5156
|
+
[TableHeaderCell_module_default["sticky-column-left"]]: sticky === "left",
|
|
5157
|
+
[TableHeaderCell_module_default["sticky-column-right"]]: sticky === "right",
|
|
5158
|
+
[TableHeaderCell_module_default["align-right"]]: align === "right",
|
|
5159
|
+
[TableHeaderCell_module_default["align-center"]]: align === "center"
|
|
5331
5160
|
},
|
|
5332
5161
|
className
|
|
5333
5162
|
);
|
|
@@ -5344,7 +5173,7 @@ var TableHeaderCell = ({
|
|
|
5344
5173
|
onKeyDown: handleKeyPress,
|
|
5345
5174
|
scope: "col"
|
|
5346
5175
|
},
|
|
5347
|
-
/* @__PURE__ */ React62.createElement("div", { className:
|
|
5176
|
+
/* @__PURE__ */ React62.createElement("div", { className: TableHeaderCell_module_default.heading }, column.heading, isSortable && renderIcon())
|
|
5348
5177
|
);
|
|
5349
5178
|
};
|
|
5350
5179
|
|
|
@@ -5366,8 +5195,8 @@ var TableRow = ({
|
|
|
5366
5195
|
truncateOverflow = false
|
|
5367
5196
|
}) => {
|
|
5368
5197
|
const tableRowClasses = classNames37(
|
|
5369
|
-
|
|
5370
|
-
{ [
|
|
5198
|
+
TableRow_module_default["table-row"],
|
|
5199
|
+
{ [TableRow_module_default.hoverable]: isHoverable },
|
|
5371
5200
|
className
|
|
5372
5201
|
);
|
|
5373
5202
|
const renderCellContent = (column) => {
|
|
@@ -5437,10 +5266,10 @@ var TableBody = ({
|
|
|
5437
5266
|
truncateOverflow = false
|
|
5438
5267
|
}) => {
|
|
5439
5268
|
const tableBodyClasses = classNames38(
|
|
5440
|
-
|
|
5269
|
+
TableBody_module_default["table-body"],
|
|
5441
5270
|
{
|
|
5442
|
-
[
|
|
5443
|
-
[
|
|
5271
|
+
[TableBody_module_default.striped]: isStriped,
|
|
5272
|
+
[TableBody_module_default.hover]: hoverableRows
|
|
5444
5273
|
},
|
|
5445
5274
|
className
|
|
5446
5275
|
);
|
|
@@ -5511,25 +5340,25 @@ var Table = ({
|
|
|
5511
5340
|
useFixedTableLayout = false,
|
|
5512
5341
|
truncateOverflow = false
|
|
5513
5342
|
}) => {
|
|
5514
|
-
const containerClasses = classNames40(
|
|
5515
|
-
[
|
|
5343
|
+
const containerClasses = classNames40(Table_module_default.container, {
|
|
5344
|
+
[Table_module_default["full-height"]]: !!isScrollable?.y
|
|
5516
5345
|
});
|
|
5517
5346
|
const scrollContainerClasses = classNames40(
|
|
5518
|
-
|
|
5347
|
+
Table_module_default["scroll-container"],
|
|
5519
5348
|
{
|
|
5520
|
-
[
|
|
5521
|
-
[
|
|
5522
|
-
[
|
|
5349
|
+
[Table_module_default.scrollable]: !!isScrollable?.x || !!isScrollable?.y,
|
|
5350
|
+
[Table_module_default["scrollable-x"]]: !!isScrollable?.x,
|
|
5351
|
+
[Table_module_default["scrollable-y"]]: !!isScrollable?.y
|
|
5523
5352
|
},
|
|
5524
5353
|
className
|
|
5525
5354
|
);
|
|
5526
|
-
const tableClasses = classNames40(
|
|
5527
|
-
[
|
|
5528
|
-
[
|
|
5529
|
-
[
|
|
5530
|
-
[
|
|
5355
|
+
const tableClasses = classNames40(Table_module_default.table, {
|
|
5356
|
+
[Table_module_default.fixed]: useFixedTableLayout,
|
|
5357
|
+
[Table_module_default.striped]: isStriped,
|
|
5358
|
+
[Table_module_default.borderless]: isBorderless,
|
|
5359
|
+
[Table_module_default.compact]: isCompact
|
|
5531
5360
|
});
|
|
5532
|
-
return /* @__PURE__ */ React66.createElement("div", { className: containerClasses }, isLoading && /* @__PURE__ */ React66.createElement("div", { className:
|
|
5361
|
+
return /* @__PURE__ */ React66.createElement("div", { className: containerClasses }, isLoading && /* @__PURE__ */ React66.createElement("div", { className: Table_module_default["loading-mask"] }, /* @__PURE__ */ React66.createElement(Spinner, { size: "xl" })), /* @__PURE__ */ React66.createElement(
|
|
5533
5362
|
"div",
|
|
5534
5363
|
{
|
|
5535
5364
|
className: scrollContainerClasses,
|
|
@@ -5609,17 +5438,21 @@ import React69 from "react";
|
|
|
5609
5438
|
// src/components/Toast/ToastNotification.tsx
|
|
5610
5439
|
import React68 from "react";
|
|
5611
5440
|
import classNames41 from "classnames";
|
|
5612
|
-
|
|
5441
|
+
|
|
5442
|
+
// src/components/Toast/ToastNotification.module.scss
|
|
5443
|
+
var ToastNotification_module_default = { "toast-notification": "toast-notification__AMRi4", "toast-error": "toast-error__d1Kyq", "toast-dismiss": "toast-dismiss__PCkcd", "toast-notification-enter-top": "toast-notification-enter-top__6FinZ", "toast-notification-exit-top": "toast-notification-exit-top__dZ9ri", "toast-notification-enter-bottom": "toast-notification-enter-bottom__Qbyxh", "toast-notification-exit-bottom": "toast-notification-exit-bottom__NBk6s", "toast-notification-exit-left": "toast-notification-exit-left__EIYDD", "toast-notification-exit-right": "toast-notification-exit-right__JCvka", "toast-notification-fade-in": "toast-notification-fade-in__iFS7J", "toast-notification-fade-out": "toast-notification-fade-out__VglH7" };
|
|
5444
|
+
|
|
5445
|
+
// src/components/Toast/ToastNotification.tsx
|
|
5613
5446
|
var getAnimationClass = (position, visible) => {
|
|
5614
5447
|
const verticalPosition = position.includes("top") ? "top" : "bottom";
|
|
5615
5448
|
const horizontalPosition = position.includes("left") ? "left" : "right";
|
|
5616
5449
|
const isCentered = position.includes("center");
|
|
5617
5450
|
const [enter, exit] = prefersReducedMotion() ? [
|
|
5618
|
-
|
|
5619
|
-
|
|
5451
|
+
ToastNotification_module_default["toast-notification-fade-in"],
|
|
5452
|
+
ToastNotification_module_default["toast-notification-fade-out"]
|
|
5620
5453
|
] : [
|
|
5621
|
-
|
|
5622
|
-
|
|
5454
|
+
ToastNotification_module_default[`toast-notification-enter-${verticalPosition}`],
|
|
5455
|
+
ToastNotification_module_default[`toast-notification-exit-${isCentered ? verticalPosition : horizontalPosition}`]
|
|
5623
5456
|
];
|
|
5624
5457
|
return visible ? enter : exit;
|
|
5625
5458
|
};
|
|
@@ -5646,7 +5479,7 @@ var renderDismissIcon = (toast2, onDismiss) => {
|
|
|
5646
5479
|
{
|
|
5647
5480
|
as: "button",
|
|
5648
5481
|
borderWidth: "0",
|
|
5649
|
-
className:
|
|
5482
|
+
className: ToastNotification_module_default["toast-dismiss"],
|
|
5650
5483
|
padding: "0 0 0 sm",
|
|
5651
5484
|
alignItems: "center",
|
|
5652
5485
|
justifyContent: "center",
|
|
@@ -5676,11 +5509,11 @@ var ToastNotification = React68.memo(
|
|
|
5676
5509
|
const animationClass = toast2?.height ? getAnimationClass(toast2.position || position, toast2.visible) : void 0;
|
|
5677
5510
|
const classes = classNames41(
|
|
5678
5511
|
toast2.className,
|
|
5679
|
-
|
|
5512
|
+
ToastNotification_module_default["toast-notification"],
|
|
5680
5513
|
animationClass,
|
|
5681
5514
|
{
|
|
5682
5515
|
"toast-notification--not-visible": !toast2.visible,
|
|
5683
|
-
[
|
|
5516
|
+
[ToastNotification_module_default["toast-error"]]: toast2.type === "error"
|
|
5684
5517
|
}
|
|
5685
5518
|
);
|
|
5686
5519
|
return /* @__PURE__ */ React68.createElement(
|
|
@@ -6105,9 +5938,13 @@ var ToastContainer = ({
|
|
|
6105
5938
|
};
|
|
6106
5939
|
|
|
6107
5940
|
// src/components/Toggle/Toggle.tsx
|
|
6108
|
-
var import_Toggle_module = __toESM(require_Toggle_module());
|
|
6109
5941
|
import React70, { forwardRef as forwardRef16 } from "react";
|
|
6110
5942
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
5943
|
+
|
|
5944
|
+
// src/components/Toggle/Toggle.module.scss
|
|
5945
|
+
var Toggle_module_default = { "item": "item__PrPsJ", "outline": "outline__Lkabh" };
|
|
5946
|
+
|
|
5947
|
+
// src/components/Toggle/Toggle.tsx
|
|
6111
5948
|
import classNames42 from "classnames";
|
|
6112
5949
|
var Toggle = forwardRef16(({ className, variant = "default", children, ...props }, ref) => /* @__PURE__ */ React70.createElement(
|
|
6113
5950
|
TogglePrimitive.Root,
|
|
@@ -6115,8 +5952,8 @@ var Toggle = forwardRef16(({ className, variant = "default", children, ...props
|
|
|
6115
5952
|
ref,
|
|
6116
5953
|
className: classNames42(
|
|
6117
5954
|
"br-sm display-flex g-sm p-sm",
|
|
6118
|
-
|
|
6119
|
-
variant === "outline" &&
|
|
5955
|
+
Toggle_module_default.item,
|
|
5956
|
+
variant === "outline" && Toggle_module_default.outline,
|
|
6120
5957
|
className
|
|
6121
5958
|
),
|
|
6122
5959
|
...props
|