highsoft-ui 1.0.180 → 1.0.182
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/CLAUDE.md +14 -0
- package/dist/InputGrouped-B3WGuESX.js +238 -0
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/Accessibility.js +7 -7
- package/dist/components/ProductIcon/icons/grayscale/Advantageplus.js +4 -4
- package/dist/components/ProductIcon/icons/grayscale/Api.js +2 -2
- package/dist/components/ProductIcon/icons/grayscale/CaseStudies.js +2 -2
- package/dist/components/ProductIcon/icons/grayscale/Changelog.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/ChartChooser.js +9 -9
- package/dist/components/ProductIcon/icons/grayscale/CustomProjects.js +2 -2
- package/dist/components/ProductIcon/icons/grayscale/Dashboards.js +4 -4
- package/dist/components/ProductIcon/icons/grayscale/Demos.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/Docs.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/Editor.js +7 -7
- package/dist/components/ProductIcon/icons/grayscale/EduLicense.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/Gantt.js +18 -18
- package/dist/components/ProductIcon/icons/grayscale/Gpt.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/Grid.js +2 -2
- package/dist/components/ProductIcon/icons/grayscale/Hca.js +6 -6
- package/dist/components/ProductIcon/icons/grayscale/Lab.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/License.js +4 -4
- package/dist/components/ProductIcon/icons/grayscale/Maps.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Orbit.js +2 -2
- package/dist/components/ProductIcon/icons/grayscale/Python.js +7 -7
- package/dist/components/ProductIcon/icons/grayscale/Roadmap.js +6 -6
- package/dist/components/ProductIcon/icons/line/Accessibility.js +4 -4
- package/dist/components/ProductIcon/icons/line/Advantageplus.js +2 -2
- package/dist/components/ProductIcon/icons/line/Api.js +1 -1
- package/dist/components/ProductIcon/icons/line/CaseStudies.js +1 -1
- package/dist/components/ProductIcon/icons/line/Changelog.js +5 -5
- package/dist/components/ProductIcon/icons/line/ChartChooser.js +9 -9
- package/dist/components/ProductIcon/icons/line/Core.js +4 -4
- package/dist/components/ProductIcon/icons/line/CustomProjects.js +2 -2
- package/dist/components/ProductIcon/icons/line/Dashboards.js +4 -4
- package/dist/components/ProductIcon/icons/line/Demos.js +1 -1
- package/dist/components/ProductIcon/icons/line/Docs.js +4 -4
- package/dist/components/ProductIcon/icons/line/Editor.js +1 -1
- package/dist/components/ProductIcon/icons/line/EduLicense.js +4 -4
- package/dist/components/ProductIcon/icons/line/Gantt.js +1 -1
- package/dist/components/ProductIcon/icons/line/Gpt.js +1 -1
- package/dist/components/ProductIcon/icons/line/Grid.js +1 -1
- package/dist/components/ProductIcon/icons/line/Hca.js +4 -4
- package/dist/components/ProductIcon/icons/line/Lab.js +4 -4
- package/dist/components/ProductIcon/icons/line/License.js +3 -3
- package/dist/components/ProductIcon/icons/line/Maps.js +1 -1
- package/dist/components/ProductIcon/icons/line/Orbit.js +2 -2
- package/dist/components/ProductIcon/icons/line/Python.js +4 -4
- package/dist/components/ProductIcon/icons/line/Roadmap.js +4 -4
- package/dist/components/ProductIcon/icons/line/Stock.js +4 -4
- package/dist/components/ProductIcon/icons/line/Support.js +1 -1
- package/dist/components/ProductIcon/icons/monochrome/Accessibility.js +7 -7
- package/dist/components/ProductIcon/icons/monochrome/Advantageplus.js +4 -6
- package/dist/components/ProductIcon/icons/monochrome/Api.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/CaseStudies.js +2 -2
- package/dist/components/ProductIcon/icons/monochrome/CustomProjects.js +5 -5
- package/dist/components/ProductIcon/icons/monochrome/Dashboards.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/Demos.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/Docs.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/Editor.js +7 -7
- package/dist/components/ProductIcon/icons/monochrome/EduLicense.js +7 -7
- package/dist/components/ProductIcon/icons/monochrome/Gantt.js +11 -11
- package/dist/components/ProductIcon/icons/monochrome/Gpt.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/Grid.js +5 -5
- package/dist/components/ProductIcon/icons/monochrome/Lab.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/License.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/Maps.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Orbit.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/Roadmap.js +6 -6
- package/dist/components/ProductIcon/icons/monochrome/Support.js +8 -8
- package/dist/components/ProductIcon/icons/multi/Accessibility.js +7 -7
- package/dist/components/ProductIcon/icons/multi/Advantageplus.js +4 -4
- package/dist/components/ProductIcon/icons/multi/Api.js +2 -2
- package/dist/components/ProductIcon/icons/multi/CaseStudies.js +2 -2
- package/dist/components/ProductIcon/icons/multi/ChartChooser.js +10 -10
- package/dist/components/ProductIcon/icons/multi/CustomProjects.js +2 -2
- package/dist/components/ProductIcon/icons/multi/Dashboards.js +4 -4
- package/dist/components/ProductIcon/icons/multi/Demos.js +5 -5
- package/dist/components/ProductIcon/icons/multi/Docs.js +8 -8
- package/dist/components/ProductIcon/icons/multi/Editor.js +7 -7
- package/dist/components/ProductIcon/icons/multi/EduLicense.js +7 -7
- package/dist/components/ProductIcon/icons/multi/Gantt.js +18 -18
- package/dist/components/ProductIcon/icons/multi/Gpt.js +4 -4
- package/dist/components/ProductIcon/icons/multi/Grid.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Hca.js +6 -6
- package/dist/components/ProductIcon/icons/multi/Lab.js +10 -10
- package/dist/components/ProductIcon/icons/multi/License.js +4 -4
- package/dist/components/ProductIcon/icons/multi/Maps.js +6 -6
- package/dist/components/ProductIcon/icons/multi/Orbit.js +2 -2
- package/dist/components/ProductIcon/icons/multi/Roadmap.js +6 -6
- package/dist/components/ProductIcon/icons/multi/Support.js +8 -8
- package/dist/highsoft-ui.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/dist/InputGrouped-y1UNKVd4.js +0 -226
package/dist/main.js
CHANGED
|
@@ -17,7 +17,7 @@ import { t as w } from "./ProductIcon-Cr6E2K9a.js";
|
|
|
17
17
|
import { t as T } from "./ButtonGroup-6tLQmpEH.js";
|
|
18
18
|
import { t as E } from "./InputSolo-CbnsJlJu.js";
|
|
19
19
|
import { t as D } from "./SearchDropdown-cml8LqKq.js";
|
|
20
|
-
import { i as O, n as k, r as A, t as j } from "./InputGrouped-
|
|
20
|
+
import { i as O, n as k, r as A, t as j } from "./InputGrouped-B3WGuESX.js";
|
|
21
21
|
import { t as M } from "./Container-BDssaLig.js";
|
|
22
22
|
import { t as N } from "./DiscordInvite-DfPVlJ5G.js";
|
|
23
23
|
import { t as P } from "./Heading-DNDHqYWO.js";
|
package/package.json
CHANGED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
3
|
-
import { K as t, nt as n, q as r } from "./esm-CqcQTziN.js";
|
|
4
|
-
import { t as i } from "./Button-DtCIaVhq.js";
|
|
5
|
-
import { forwardRef as a, useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
6
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
var f = {
|
|
8
|
-
autofilled: "rqAgta_autofilled",
|
|
9
|
-
chevron: "rqAgta_chevron",
|
|
10
|
-
content: "rqAgta_content",
|
|
11
|
-
dirty: "rqAgta_dirty",
|
|
12
|
-
disabled: "rqAgta_disabled",
|
|
13
|
-
focus: "rqAgta_focus",
|
|
14
|
-
formGroup: "rqAgta_formGroup",
|
|
15
|
-
formRow: "rqAgta_formRow",
|
|
16
|
-
hasError: "rqAgta_hasError",
|
|
17
|
-
helpText: "rqAgta_helpText",
|
|
18
|
-
iconRight: "rqAgta_iconRight",
|
|
19
|
-
inputElement: "rqAgta_inputElement",
|
|
20
|
-
inputGrouped: "rqAgta_inputGrouped",
|
|
21
|
-
label: "rqAgta_label",
|
|
22
|
-
labelIcon: "rqAgta_labelIcon",
|
|
23
|
-
labelRow: "rqAgta_labelRow",
|
|
24
|
-
leftContent: "rqAgta_leftContent",
|
|
25
|
-
onAutoFillStart: "rqAgta_onAutoFillStart",
|
|
26
|
-
open: "rqAgta_open",
|
|
27
|
-
required: "rqAgta_required",
|
|
28
|
-
rightContent: "rqAgta_rightContent",
|
|
29
|
-
selectElement: "rqAgta_selectElement",
|
|
30
|
-
selectGrouped: "rqAgta_selectGrouped",
|
|
31
|
-
success: "rqAgta_success"
|
|
32
|
-
}, p = a(({ children: t, className: n, ...r }, i) => /* @__PURE__ */ u("form", {
|
|
33
|
-
ref: i,
|
|
34
|
-
className: e("hsui-form-group", f.formGroup, n),
|
|
35
|
-
...r,
|
|
36
|
-
children: t
|
|
37
|
-
}));
|
|
38
|
-
p.displayName = "FormGroup";
|
|
39
|
-
function m({ children: t, className: n }) {
|
|
40
|
-
return /* @__PURE__ */ u("div", {
|
|
41
|
-
className: e("hsui-form-row", f.formRow, n),
|
|
42
|
-
children: t
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
var h = a(({ label: n, required: a = !1, helpText: p, showHelpText: m = !1, labelIcon: h, iconRight: g, button: _, hasError: v = !1, success: y = !1, disabled: b = !1, className: x, wrapperClassName: S, type: C, onFocus: w, onBlur: T, onChange: E, value: D, defaultValue: O, ...k }, A) => {
|
|
46
|
-
let j = c(null), M = A || j, [N, P] = l(!1), [F, I] = l(!1), [L, R] = l(!1), z = C === "password", [B, V] = l(O === void 0 ? "" : String(O)), H = D !== void 0, U = H ? String(D).length > 0 : B.length > 0, W = o((e) => {
|
|
47
|
-
P(!0), w?.(e);
|
|
48
|
-
}, [w]), G = o((e) => {
|
|
49
|
-
P(!1), T?.(e);
|
|
50
|
-
}, [T]), K = o((e) => {
|
|
51
|
-
H || V(e.target.value), E?.(e);
|
|
52
|
-
}, [H, E]), q = o((e) => {
|
|
53
|
-
e.animationName.includes("onAutoFillStart") && I(!0);
|
|
54
|
-
}, []);
|
|
55
|
-
s(() => {
|
|
56
|
-
let e = M.current;
|
|
57
|
-
if (!e) return;
|
|
58
|
-
let t = () => {
|
|
59
|
-
try {
|
|
60
|
-
e.matches(":-webkit-autofill") && I(!0);
|
|
61
|
-
} catch {}
|
|
62
|
-
}, n = setTimeout(t, 100), r = setTimeout(t, 500);
|
|
63
|
-
return () => {
|
|
64
|
-
clearTimeout(n), clearTimeout(r);
|
|
65
|
-
};
|
|
66
|
-
}, [M]);
|
|
67
|
-
let J = o(() => {
|
|
68
|
-
!b && M.current && M.current.focus();
|
|
69
|
-
}, [b, M]), Y = z && L ? "text" : C;
|
|
70
|
-
return /* @__PURE__ */ u("div", {
|
|
71
|
-
onClick: J,
|
|
72
|
-
className: e("hsui-input-grouped", f.inputGrouped, {
|
|
73
|
-
[f.focus]: N,
|
|
74
|
-
[f.hasError]: v,
|
|
75
|
-
[f.success]: y,
|
|
76
|
-
[f.disabled]: b,
|
|
77
|
-
[f.dirty]: U || F,
|
|
78
|
-
[f.autofilled]: F
|
|
79
|
-
}, S),
|
|
80
|
-
children: /* @__PURE__ */ d("div", {
|
|
81
|
-
className: f.content,
|
|
82
|
-
children: [/* @__PURE__ */ d("div", {
|
|
83
|
-
className: f.leftContent,
|
|
84
|
-
children: [
|
|
85
|
-
n && /* @__PURE__ */ d("div", {
|
|
86
|
-
className: f.labelRow,
|
|
87
|
-
children: [h && /* @__PURE__ */ u("span", {
|
|
88
|
-
className: f.labelIcon,
|
|
89
|
-
children: h
|
|
90
|
-
}), /* @__PURE__ */ d("span", {
|
|
91
|
-
className: f.label,
|
|
92
|
-
children: [n, a && /* @__PURE__ */ u("span", {
|
|
93
|
-
className: f.required,
|
|
94
|
-
children: " *"
|
|
95
|
-
})]
|
|
96
|
-
})]
|
|
97
|
-
}),
|
|
98
|
-
/* @__PURE__ */ u("input", {
|
|
99
|
-
ref: M,
|
|
100
|
-
type: Y,
|
|
101
|
-
className: e(f.inputElement, x),
|
|
102
|
-
disabled: b,
|
|
103
|
-
"aria-label": n,
|
|
104
|
-
"aria-required": a,
|
|
105
|
-
"aria-invalid": v,
|
|
106
|
-
value: D,
|
|
107
|
-
defaultValue: O,
|
|
108
|
-
onFocus: W,
|
|
109
|
-
onBlur: G,
|
|
110
|
-
onChange: K,
|
|
111
|
-
onAnimationStart: q,
|
|
112
|
-
...k
|
|
113
|
-
}),
|
|
114
|
-
m && p && /* @__PURE__ */ u("span", {
|
|
115
|
-
className: f.helpText,
|
|
116
|
-
children: p
|
|
117
|
-
})
|
|
118
|
-
]
|
|
119
|
-
}), (g || _ || z) && /* @__PURE__ */ d("div", {
|
|
120
|
-
className: f.rightContent,
|
|
121
|
-
children: [
|
|
122
|
-
g && /* @__PURE__ */ u("span", {
|
|
123
|
-
className: f.iconRight,
|
|
124
|
-
children: g
|
|
125
|
-
}),
|
|
126
|
-
z && /* @__PURE__ */ u(i, {
|
|
127
|
-
type: "button",
|
|
128
|
-
variant: "plain",
|
|
129
|
-
size: 300,
|
|
130
|
-
onClick: (e) => {
|
|
131
|
-
e.stopPropagation(), R((e) => !e);
|
|
132
|
-
},
|
|
133
|
-
"aria-label": L ? "Hide password" : "Show password",
|
|
134
|
-
children: u(L ? t : r, {})
|
|
135
|
-
}),
|
|
136
|
-
_
|
|
137
|
-
]
|
|
138
|
-
})]
|
|
139
|
-
})
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
h.displayName = "InputGrouped";
|
|
143
|
-
var g = a(({ label: t, required: r = !1, helpText: i, showHelpText: a = !1, labelIcon: s, hasError: p = !1, success: m = !1, disabled: h = !1, className: g, wrapperClassName: _, placeholder: v, children: y, onFocus: b, onBlur: x, onChange: S, value: C, defaultValue: w, ...T }, E) => {
|
|
144
|
-
let D = c(null), O = E || D, [k, A] = l(!1), [j, M] = l(!1), [N, P] = l(w === void 0 ? "" : String(w)), F = C !== void 0, I = F ? String(C).length > 0 : N.length > 0, L = o((e) => {
|
|
145
|
-
A(!0), b?.(e);
|
|
146
|
-
}, [b]), R = o((e) => {
|
|
147
|
-
A(!1), M(!1), x?.(e);
|
|
148
|
-
}, [x]), z = o((e) => {
|
|
149
|
-
M(!1), F || P(e.target.value), S?.(e);
|
|
150
|
-
}, [F, S]);
|
|
151
|
-
return /* @__PURE__ */ u("div", {
|
|
152
|
-
onClick: o((e) => {
|
|
153
|
-
if (!(h || !O.current) && (M((e) => !e), e.target !== O.current)) try {
|
|
154
|
-
O.current.showPicker();
|
|
155
|
-
} catch {
|
|
156
|
-
let e = new MouseEvent("mousedown", {
|
|
157
|
-
bubbles: !0,
|
|
158
|
-
cancelable: !0
|
|
159
|
-
});
|
|
160
|
-
O.current.dispatchEvent(e);
|
|
161
|
-
}
|
|
162
|
-
}, [h, O]),
|
|
163
|
-
className: e("hsui-select-grouped", f.inputGrouped, f.selectGrouped, {
|
|
164
|
-
[f.focus]: k,
|
|
165
|
-
[f.open]: j,
|
|
166
|
-
[f.hasError]: p,
|
|
167
|
-
[f.success]: m,
|
|
168
|
-
[f.disabled]: h,
|
|
169
|
-
[f.dirty]: I
|
|
170
|
-
}, _),
|
|
171
|
-
children: /* @__PURE__ */ d("div", {
|
|
172
|
-
className: f.content,
|
|
173
|
-
children: [/* @__PURE__ */ d("div", {
|
|
174
|
-
className: f.leftContent,
|
|
175
|
-
children: [
|
|
176
|
-
t && /* @__PURE__ */ d("div", {
|
|
177
|
-
className: f.labelRow,
|
|
178
|
-
children: [s && /* @__PURE__ */ u("span", {
|
|
179
|
-
className: f.labelIcon,
|
|
180
|
-
children: s
|
|
181
|
-
}), /* @__PURE__ */ d("span", {
|
|
182
|
-
className: f.label,
|
|
183
|
-
children: [t, r && /* @__PURE__ */ u("span", {
|
|
184
|
-
className: f.required,
|
|
185
|
-
children: " *"
|
|
186
|
-
})]
|
|
187
|
-
})]
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ d("select", {
|
|
190
|
-
ref: O,
|
|
191
|
-
className: e(f.inputElement, f.selectElement, g),
|
|
192
|
-
disabled: h,
|
|
193
|
-
"aria-label": t,
|
|
194
|
-
"aria-required": r,
|
|
195
|
-
"aria-invalid": p,
|
|
196
|
-
value: C,
|
|
197
|
-
defaultValue: w,
|
|
198
|
-
onFocus: L,
|
|
199
|
-
onBlur: R,
|
|
200
|
-
onChange: z,
|
|
201
|
-
...T,
|
|
202
|
-
children: [v && /* @__PURE__ */ u("option", {
|
|
203
|
-
value: "",
|
|
204
|
-
disabled: !0,
|
|
205
|
-
hidden: !1,
|
|
206
|
-
children: v
|
|
207
|
-
}), y]
|
|
208
|
-
}),
|
|
209
|
-
a && i && /* @__PURE__ */ u("span", {
|
|
210
|
-
className: f.helpText,
|
|
211
|
-
children: i
|
|
212
|
-
})
|
|
213
|
-
]
|
|
214
|
-
}), /* @__PURE__ */ u("div", {
|
|
215
|
-
className: f.rightContent,
|
|
216
|
-
children: /* @__PURE__ */ u("span", {
|
|
217
|
-
className: e(f.iconRight, f.chevron),
|
|
218
|
-
children: /* @__PURE__ */ u(n, {})
|
|
219
|
-
})
|
|
220
|
-
})]
|
|
221
|
-
})
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
g.displayName = "SelectGrouped";
|
|
225
|
-
//#endregion
|
|
226
|
-
export { g as i, m as n, h as r, p as t };
|