@rehagro/ui 1.0.19 → 1.0.21
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +80 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +80 -4
- package/dist/index.mjs.map +1 -1
- package/dist/native.js.map +1 -1
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -160,6 +160,48 @@ var WarningIcon = (props) => /* @__PURE__ */ jsx(
|
|
|
160
160
|
)
|
|
161
161
|
}
|
|
162
162
|
);
|
|
163
|
+
var WarningCircleIcon = (props) => /* @__PURE__ */ jsxs(
|
|
164
|
+
"svg",
|
|
165
|
+
{
|
|
166
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
167
|
+
width: "1.1em",
|
|
168
|
+
height: "1.1em",
|
|
169
|
+
viewBox: "0 0 256 256",
|
|
170
|
+
fill: "currentColor",
|
|
171
|
+
"aria-hidden": "true",
|
|
172
|
+
...props,
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ jsx("rect", { width: "256", height: "256", fill: "none" }),
|
|
175
|
+
/* @__PURE__ */ jsx(
|
|
176
|
+
"circle",
|
|
177
|
+
{
|
|
178
|
+
cx: "128",
|
|
179
|
+
cy: "128",
|
|
180
|
+
r: "96",
|
|
181
|
+
fill: "none",
|
|
182
|
+
stroke: "currentColor",
|
|
183
|
+
"stroke-miterlimit": "10",
|
|
184
|
+
"stroke-width": "16"
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ jsx(
|
|
188
|
+
"line",
|
|
189
|
+
{
|
|
190
|
+
x1: "128",
|
|
191
|
+
y1: "136",
|
|
192
|
+
x2: "128",
|
|
193
|
+
y2: "80",
|
|
194
|
+
fill: "none",
|
|
195
|
+
stroke: "currentColor",
|
|
196
|
+
"stroke-linecap": "round",
|
|
197
|
+
"stroke-linejoin": "round",
|
|
198
|
+
"stroke-width": "16"
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ jsx("circle", { cx: "128", cy: "172", r: "12" })
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
);
|
|
163
205
|
var SuccessIcon = (props) => /* @__PURE__ */ jsx(
|
|
164
206
|
"svg",
|
|
165
207
|
{
|
|
@@ -1063,7 +1105,7 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
1063
1105
|
]
|
|
1064
1106
|
}
|
|
1065
1107
|
),
|
|
1066
|
-
helperText && /* @__PURE__ */
|
|
1108
|
+
helperText && /* @__PURE__ */ jsxs(
|
|
1067
1109
|
"span",
|
|
1068
1110
|
{
|
|
1069
1111
|
id: `${inputId}-helper`,
|
|
@@ -1071,7 +1113,10 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
1071
1113
|
"rh-flex rh-items-center rh-gap-1 rh-text-xs",
|
|
1072
1114
|
helperStatusClasses[status]
|
|
1073
1115
|
].join(" "),
|
|
1074
|
-
children:
|
|
1116
|
+
children: [
|
|
1117
|
+
/* @__PURE__ */ jsx(WarningCircleIcon, {}),
|
|
1118
|
+
helperText
|
|
1119
|
+
]
|
|
1075
1120
|
}
|
|
1076
1121
|
)
|
|
1077
1122
|
]
|
|
@@ -2728,20 +2773,51 @@ var defaultElements = {
|
|
|
2728
2773
|
h2: "h2",
|
|
2729
2774
|
h3: "h3",
|
|
2730
2775
|
h4: "h4",
|
|
2776
|
+
h5: "h5",
|
|
2777
|
+
h6: "h6",
|
|
2731
2778
|
bodyLg: "p",
|
|
2732
2779
|
body: "p",
|
|
2733
2780
|
label: "span",
|
|
2734
|
-
|
|
2781
|
+
labelSm: "span",
|
|
2782
|
+
caption: "span",
|
|
2783
|
+
captionSm: "span",
|
|
2784
|
+
menu: "span",
|
|
2785
|
+
overline: "span"
|
|
2735
2786
|
};
|
|
2736
2787
|
var variantClasses4 = {
|
|
2788
|
+
// Headings - Sora font
|
|
2737
2789
|
h1: "rh-text-4xl rh-font-bold rh-leading-tight rh-font-display",
|
|
2790
|
+
// 32px
|
|
2738
2791
|
h2: "rh-text-2xl rh-font-bold rh-leading-snug rh-font-display",
|
|
2792
|
+
// 24px
|
|
2739
2793
|
h3: "rh-text-xl rh-font-semibold rh-leading-snug rh-font-display",
|
|
2794
|
+
// 20px
|
|
2740
2795
|
h4: "rh-text-lg rh-font-semibold rh-leading-snug rh-font-display",
|
|
2796
|
+
// 18px
|
|
2797
|
+
h5: "rh-text-base rh-font-bold rh-leading-normal rh-font-display",
|
|
2798
|
+
// 16px Sora Bold
|
|
2799
|
+
h6: "rh-text-sm rh-font-bold rh-leading-normal rh-font-display",
|
|
2800
|
+
// 14px Sora Bold
|
|
2801
|
+
// Body - Inter font
|
|
2741
2802
|
bodyLg: "rh-text-base rh-font-normal rh-leading-normal rh-font-body",
|
|
2803
|
+
// 16px
|
|
2742
2804
|
body: "rh-text-sm rh-font-normal rh-leading-normal rh-font-body",
|
|
2805
|
+
// 14px
|
|
2806
|
+
// Labels - Inter font
|
|
2743
2807
|
label: "rh-text-sm rh-font-medium rh-leading-normal rh-font-body",
|
|
2744
|
-
|
|
2808
|
+
// 14px Medium
|
|
2809
|
+
labelSm: "rh-text-sm rh-font-semibold rh-leading-normal rh-font-body",
|
|
2810
|
+
// 14px SemiBold
|
|
2811
|
+
// Captions - Inter font
|
|
2812
|
+
caption: "rh-text-xs rh-font-normal rh-leading-normal rh-font-body",
|
|
2813
|
+
// 12px
|
|
2814
|
+
captionSm: "rh-text-2xs rh-font-normal rh-leading-tight rh-font-body",
|
|
2815
|
+
// 10px
|
|
2816
|
+
// Special - Sora/Inter font
|
|
2817
|
+
menu: "rh-text-xs rh-font-bold rh-leading-normal rh-font-display",
|
|
2818
|
+
// 12px Sora Bold
|
|
2819
|
+
overline: "rh-text-2xs rh-font-semibold rh-leading-tight rh-font-body rh-tracking-wide"
|
|
2820
|
+
// 10px Inter SemiBold
|
|
2745
2821
|
};
|
|
2746
2822
|
var colorClasses2 = {
|
|
2747
2823
|
default: "rh-text-text",
|