quirk-ui 0.1.78 → 0.1.79
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/core/components/DatePicker/index.cjs +2 -2
- package/dist/core/components/DatePicker/index.mjs +25 -25
- package/dist/core/components/Fieldset/index.cjs +1 -1
- package/dist/core/components/Fieldset/index.mjs +17 -17
- package/dist/core/components/Radio/index.cjs +1 -1
- package/dist/core/components/Radio/index.mjs +49 -49
- package/dist/core/components/Select/index.cjs +1 -1
- package/dist/core/components/Select/index.mjs +61 -61
- package/dist/core/components/Textarea/index.cjs +1 -1
- package/dist/core/components/Textarea/index.mjs +62 -62
- package/dist/index25.css +1 -1
- package/dist/index39.css +1 -1
- package/dist/index40.css +1 -1
- package/dist/index41.css +1 -1
- package/dist/index60.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index60.css');const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index60.css');const r=require("react/jsx-runtime"),i=require("react"),E=require("../../../index-rFLvzU5A.cjs"),O=require("../Label/index.cjs"),B=require("../../../x-Dft9NVe_.cjs"),P=require("../../../createLucideIcon-DpotSgUx.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const W=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],z=P.createLucideIcon("calendar",W),R="
|
|
6
|
+
*/const W=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],z=P.createLucideIcon("calendar",W),R="_wrapper_15mos_1",F="_inputWrapper_15mos_28",X="_input_15mos_28",A="_inputDisabled_15mos_61",G="_inputError_15mos_68",H="_icons_15mos_77",J="_calendarIcon_15mos_86",K="_iconDisabled_15mos_91",Q="_clearButton_15mos_100",U="_helperText_15mos_128",Y="_helperTextError_15mos_133",Z="_popover_15mos_138",e={wrapper:R,inputWrapper:F,input:X,inputDisabled:A,inputError:G,icons:H,calendarIcon:J,iconDisabled:K,clearButton:Q,helperText:U,helperTextError:Y,popover:Z};function V({id:k,name:D,label:y,value:a,defaultValue:$,placeholder:b="Select date",required:v=!1,disabled:s=!1,error:l=!1,helperText:_,minDate:h,maxDate:j,disabledDates:w,formatStr:I="yyyy-MM-dd",className:N,onChange:c,onValueChange:n,...S}){const[p,m]=i.useState($||a||null),[o,d]=i.useState(!1),f=i.useRef(null),u=k||`datepicker-${Math.random().toString(36).substr(2,9)}`;i.useEffect(()=>{a!==void 0&&m(a)},[a]),i.useEffect(()=>{const t=x=>{f.current&&!f.current.contains(x.target)&&d(!1)};return o&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[o]),i.useEffect(()=>{const t=x=>{x.key==="Escape"&&o&&d(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[o]);const L=t=>{m(t),d(!1),c==null||c(t),n==null||n(t)},T=t=>{t.stopPropagation(),m(null),c==null||c(null),n==null||n(null)},M=()=>{s||d(!o)},q=p?E.format(p,I):"";return r.jsxs("div",{ref:f,className:`${e.wrapper} ${N??""}`.trim(),children:[y&&r.jsx(O.Label,{htmlFor:u,intent:l?"error":s?"disabled":"default",required:v,disabled:s,size:"md",children:y}),r.jsxs("div",{className:e.inputWrapper,children:[r.jsx("input",{id:u,name:D,type:"text",readOnly:!0,value:q,onClick:M,placeholder:b,required:v,disabled:s,className:`${e.input} ${l?e.inputError:""} ${s?e.inputDisabled:""}`.trim(),"aria-invalid":l,"aria-describedby":_?`${u}-helper`:void 0,...S}),r.jsxs("div",{className:e.icons,children:[p&&!s&&r.jsx("button",{type:"button",onClick:T,className:e.clearButton,"aria-label":"Clear date",tabIndex:-1,children:r.jsx(B.X,{size:14})}),r.jsx(z,{size:18,className:`${e.calendarIcon} ${s?e.iconDisabled:""}`.trim()})]})]}),_&&r.jsx("div",{id:`${u}-helper`,className:`${e.helperText} ${l?e.helperTextError:""}`.trim(),children:_}),o&&r.jsx("div",{className:e.popover,children:r.jsx(E.Calendar,{selectedDate:p,onSelectDate:L,minDate:h,maxDate:j,disabledDates:w})})]})}exports.DatePicker=V;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x, useRef as z, useEffect as v } from "react";
|
|
3
3
|
import { f as j, C as P } from "../../../index-DTDGFsW8.js";
|
|
4
4
|
import { Label as R } from "../Label/index.mjs";
|
|
@@ -15,7 +15,7 @@ const A = [
|
|
|
15
15
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
16
16
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
17
17
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
18
|
-
], G = X("calendar", A), H = "
|
|
18
|
+
], G = X("calendar", A), H = "_wrapper_15mos_1", J = "_inputWrapper_15mos_28", K = "_input_15mos_28", Q = "_inputDisabled_15mos_61", U = "_inputError_15mos_68", Y = "_icons_15mos_77", Z = "_calendarIcon_15mos_86", q = "_iconDisabled_15mos_91", V = "_clearButton_15mos_100", C = "_helperText_15mos_128", g = "_helperTextError_15mos_133", ee = "_popover_15mos_138", e = {
|
|
19
19
|
wrapper: H,
|
|
20
20
|
inputWrapper: J,
|
|
21
21
|
input: K,
|
|
@@ -29,11 +29,11 @@ const A = [
|
|
|
29
29
|
helperTextError: g,
|
|
30
30
|
popover: ee
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function ie({
|
|
33
33
|
id: D,
|
|
34
34
|
name: $,
|
|
35
35
|
label: E,
|
|
36
|
-
value:
|
|
36
|
+
value: i,
|
|
37
37
|
defaultValue: h,
|
|
38
38
|
placeholder: b = "Select date",
|
|
39
39
|
required: k = !1,
|
|
@@ -45,36 +45,36 @@ function oe({
|
|
|
45
45
|
disabledDates: I,
|
|
46
46
|
formatStr: T = "yyyy-MM-dd",
|
|
47
47
|
className: L,
|
|
48
|
-
onChange:
|
|
49
|
-
onValueChange:
|
|
48
|
+
onChange: o,
|
|
49
|
+
onValueChange: c,
|
|
50
50
|
...M
|
|
51
51
|
}) {
|
|
52
52
|
const [a, _] = x(
|
|
53
|
-
h ||
|
|
54
|
-
), [
|
|
53
|
+
h || i || null
|
|
54
|
+
), [n, l] = x(!1), u = z(null), d = D || `datepicker-${Math.random().toString(36).substr(2, 9)}`;
|
|
55
55
|
v(() => {
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
const t = (
|
|
59
|
-
u.current && !u.current.contains(
|
|
56
|
+
i !== void 0 && _(i);
|
|
57
|
+
}, [i]), v(() => {
|
|
58
|
+
const t = (f) => {
|
|
59
|
+
u.current && !u.current.contains(f.target) && l(!1);
|
|
60
60
|
};
|
|
61
|
-
return
|
|
61
|
+
return n && document.addEventListener("mousedown", t), () => {
|
|
62
62
|
document.removeEventListener("mousedown", t);
|
|
63
63
|
};
|
|
64
|
-
}, [
|
|
65
|
-
const t = (
|
|
66
|
-
|
|
64
|
+
}, [n]), v(() => {
|
|
65
|
+
const t = (f) => {
|
|
66
|
+
f.key === "Escape" && n && l(!1);
|
|
67
67
|
};
|
|
68
68
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
69
|
-
}, [
|
|
69
|
+
}, [n]);
|
|
70
70
|
const S = (t) => {
|
|
71
|
-
_(t), l(!1),
|
|
71
|
+
_(t), l(!1), o == null || o(t), c == null || c(t);
|
|
72
72
|
}, B = (t) => {
|
|
73
|
-
t.stopPropagation(), _(null),
|
|
73
|
+
t.stopPropagation(), _(null), o == null || o(null), c == null || c(null);
|
|
74
74
|
}, O = () => {
|
|
75
|
-
s || l(!
|
|
75
|
+
s || l(!n);
|
|
76
76
|
}, W = a ? j(a, T) : "";
|
|
77
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ y(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
ref: u,
|
|
@@ -91,7 +91,7 @@ function oe({
|
|
|
91
91
|
children: E
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ y("div", { className: e.inputWrapper, children: [
|
|
95
95
|
/* @__PURE__ */ r(
|
|
96
96
|
"input",
|
|
97
97
|
{
|
|
@@ -110,7 +110,7 @@ function oe({
|
|
|
110
110
|
...M
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ y("div", { className: e.icons, children: [
|
|
114
114
|
a && !s && /* @__PURE__ */ r(
|
|
115
115
|
"button",
|
|
116
116
|
{
|
|
@@ -139,7 +139,7 @@ function oe({
|
|
|
139
139
|
children: m
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
|
-
|
|
142
|
+
n && /* @__PURE__ */ r("div", { className: e.popover, children: /* @__PURE__ */ r(
|
|
143
143
|
P,
|
|
144
144
|
{
|
|
145
145
|
selectedDate: a,
|
|
@@ -154,5 +154,5 @@ function oe({
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
ie as DatePicker
|
|
158
158
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index41.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index41.css');const l=require("react/jsx-runtime"),a=require("../Text/index.cjs"),f="_fieldset_l9gdh_1",u="_legend_l9gdh_12",g="_content_l9gdh_19",h="_helperText_l9gdh_25",x="_outlined_l9gdh_37",m="_filled_l9gdh_44",$="_disabled_l9gdh_50",T="_error_l9gdh_59",e={fieldset:f,legend:u,content:g,helperText:h,default:"_default_l9gdh_32",outlined:x,filled:m,disabled:$,error:T};function b({legend:t,variant:n="default",disabled:d=!1,error:i=!1,helperText:s,className:r,children:o,..._}){const c={default:e.default,outlined:e.outlined,filled:e.filled}[n];return l.jsxs("fieldset",{className:`${r??""} ${e.fieldset} ${c} ${d?e.disabled:""} ${i?e.error:""}`.trim(),disabled:d,..._,children:[t&&l.jsx("legend",{className:e.legend,children:t}),l.jsx("div",{className:e.content,children:o}),s&&l.jsx(a.Text,{variant:"small",className:e.helperText,children:s})]})}exports.Fieldset=b;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Text as f } from "../Text/index.mjs";
|
|
3
|
-
import '../../../index41.css';const
|
|
4
|
-
fieldset:
|
|
5
|
-
legend:
|
|
6
|
-
content:
|
|
3
|
+
import '../../../index41.css';const h = "_fieldset_l9gdh_1", g = "_legend_l9gdh_12", u = "_content_l9gdh_19", m = "_helperText_l9gdh_25", x = "_outlined_l9gdh_37", p = "_filled_l9gdh_44", $ = "_disabled_l9gdh_50", N = "_error_l9gdh_59", e = {
|
|
4
|
+
fieldset: h,
|
|
5
|
+
legend: g,
|
|
6
|
+
content: u,
|
|
7
7
|
helperText: m,
|
|
8
|
-
default: "
|
|
9
|
-
outlined:
|
|
10
|
-
filled:
|
|
11
|
-
disabled:
|
|
12
|
-
error:
|
|
8
|
+
default: "_default_l9gdh_32",
|
|
9
|
+
outlined: x,
|
|
10
|
+
filled: p,
|
|
11
|
+
disabled: $,
|
|
12
|
+
error: N
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function v({
|
|
15
15
|
legend: t,
|
|
16
|
-
variant:
|
|
17
|
-
disabled:
|
|
18
|
-
error:
|
|
16
|
+
variant: n = "default",
|
|
17
|
+
disabled: d = !1,
|
|
18
|
+
error: i = !1,
|
|
19
19
|
helperText: s,
|
|
20
20
|
className: o,
|
|
21
21
|
children: r,
|
|
@@ -25,12 +25,12 @@ function N({
|
|
|
25
25
|
default: e.default,
|
|
26
26
|
outlined: e.outlined,
|
|
27
27
|
filled: e.filled
|
|
28
|
-
}[
|
|
28
|
+
}[n];
|
|
29
29
|
return /* @__PURE__ */ c(
|
|
30
30
|
"fieldset",
|
|
31
31
|
{
|
|
32
|
-
className: `${o ?? ""} ${e.fieldset} ${a} ${
|
|
33
|
-
disabled:
|
|
32
|
+
className: `${o ?? ""} ${e.fieldset} ${a} ${d ? e.disabled : ""} ${i ? e.error : ""}`.trim(),
|
|
33
|
+
disabled: d,
|
|
34
34
|
..._,
|
|
35
35
|
children: [
|
|
36
36
|
t && /* @__PURE__ */ l("legend", { className: e.legend, children: t }),
|
|
@@ -41,5 +41,5 @@ function N({
|
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
v as Fieldset
|
|
45
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index40.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index40.css');const a=require("react/jsx-runtime"),u=require("../Label/index.cjs"),j="_wrapper_1a3ho_1",w="_wrapperDisabled_1a3ho_9",x="_radioContainer_1a3ho_14",v="_radio_1a3ho_14",N="_radioCircle_1a3ho_33",f="_error_1a3ho_84",y="_sm_1a3ho_101",D="_md_1a3ho_111",E="_lg_1a3ho_121",q="_labelContainer_1a3ho_132",L="_label_1a3ho_132",R="_description_1a3ho_146",S="_descriptionError_1a3ho_153",r={wrapper:j,wrapperDisabled:w,radioContainer:x,radio:v,radioCircle:N,error:f,sm:y,md:D,lg:E,labelContainer:q,label:L,description:R,descriptionError:S};function z({id:_,name:n,value:t,label:p,checked:m,defaultChecked:h,disabled:e=!1,required:d=!1,error:o=!1,size:l="md",description:s,className:$,style:b,onChange:C,...g}){const i=_??`radio-${n}-${t}`.replace(/[^a-zA-Z0-9-]/g,"-"),c={sm:r.sm,md:r.md,lg:r.lg}[l];return a.jsxs("div",{className:`${$??""} ${r.wrapper} ${e?r.wrapperDisabled:""}`.trim(),style:b,children:[a.jsxs("div",{className:r.radioContainer,children:[a.jsx("input",{type:"radio",id:i,name:n,value:t,checked:m,defaultChecked:h,disabled:e,required:d,onChange:e?void 0:C,className:`${r.radio} ${c} ${o?r.error:""}`.trim(),"aria-invalid":o,"aria-describedby":s?`${i}-description`:void 0,...g}),a.jsx("span",{className:`${r.radioCircle} ${c}`.trim(),"aria-hidden":"true"})]}),a.jsxs("div",{className:r.labelContainer,children:[a.jsx(u.Label,{htmlFor:i,size:l,intent:o?"error":e?"disabled":"default",required:d,disabled:e,className:r.label,children:p}),s&&a.jsx("div",{id:`${i}-description`,className:`${r.description} ${o?r.descriptionError:""}`.trim(),children:s})]})]})}exports.Radio=z;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Label as
|
|
3
|
-
import '../../../index40.css';const
|
|
4
|
-
wrapper:
|
|
5
|
-
wrapperDisabled:
|
|
6
|
-
radioContainer:
|
|
7
|
-
radio:
|
|
8
|
-
radioCircle:
|
|
9
|
-
error:
|
|
10
|
-
sm:
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Label as f } from "../Label/index.mjs";
|
|
3
|
+
import '../../../index40.css';const N = "_wrapper_1a3ho_1", v = "_wrapperDisabled_1a3ho_9", D = "_radioContainer_1a3ho_14", E = "_radio_1a3ho_14", u = "_radioCircle_1a3ho_33", x = "_error_1a3ho_84", y = "_sm_1a3ho_101", j = "_md_1a3ho_111", z = "_lg_1a3ho_121", A = "_labelContainer_1a3ho_132", F = "_label_1a3ho_132", I = "_description_1a3ho_146", L = "_descriptionError_1a3ho_153", r = {
|
|
4
|
+
wrapper: N,
|
|
5
|
+
wrapperDisabled: v,
|
|
6
|
+
radioContainer: D,
|
|
7
|
+
radio: E,
|
|
8
|
+
radioCircle: u,
|
|
9
|
+
error: x,
|
|
10
|
+
sm: y,
|
|
11
11
|
md: j,
|
|
12
12
|
lg: z,
|
|
13
13
|
labelContainer: A,
|
|
@@ -17,52 +17,52 @@ import '../../../index40.css';const w = "_wrapper_1utyy_1", f = "_wrapperDisable
|
|
|
17
17
|
};
|
|
18
18
|
function k({
|
|
19
19
|
id: p,
|
|
20
|
-
name:
|
|
20
|
+
name: t,
|
|
21
21
|
value: d,
|
|
22
|
-
label:
|
|
23
|
-
checked:
|
|
24
|
-
defaultChecked:
|
|
25
|
-
disabled:
|
|
22
|
+
label: m,
|
|
23
|
+
checked: h,
|
|
24
|
+
defaultChecked: C,
|
|
25
|
+
disabled: a = !1,
|
|
26
26
|
required: l = !1,
|
|
27
|
-
error:
|
|
27
|
+
error: o = !1,
|
|
28
28
|
size: c = "md",
|
|
29
|
-
description:
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
32
|
-
onChange:
|
|
33
|
-
...
|
|
29
|
+
description: n,
|
|
30
|
+
className: $,
|
|
31
|
+
style: b,
|
|
32
|
+
onChange: g,
|
|
33
|
+
...w
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const i = p ?? `radio-${t}-${d}`.replace(/[^a-zA-Z0-9-]/g, "-"), _ = {
|
|
36
36
|
sm: r.sm,
|
|
37
37
|
md: r.md,
|
|
38
38
|
lg: r.lg
|
|
39
39
|
}[c];
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ s(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
|
-
className: `${
|
|
44
|
-
style:
|
|
43
|
+
className: `${$ ?? ""} ${r.wrapper} ${a ? r.wrapperDisabled : ""}`.trim(),
|
|
44
|
+
style: b,
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ s("div", { className: r.radioContainer, children: [
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
48
|
"input",
|
|
49
49
|
{
|
|
50
50
|
type: "radio",
|
|
51
|
-
id:
|
|
52
|
-
name:
|
|
51
|
+
id: i,
|
|
52
|
+
name: t,
|
|
53
53
|
value: d,
|
|
54
|
-
checked:
|
|
55
|
-
defaultChecked:
|
|
56
|
-
disabled:
|
|
54
|
+
checked: h,
|
|
55
|
+
defaultChecked: C,
|
|
56
|
+
disabled: a,
|
|
57
57
|
required: l,
|
|
58
|
-
onChange:
|
|
59
|
-
className: `${r.radio} ${_} ${
|
|
60
|
-
"aria-invalid":
|
|
61
|
-
"aria-describedby":
|
|
62
|
-
...
|
|
58
|
+
onChange: a ? void 0 : g,
|
|
59
|
+
className: `${r.radio} ${_} ${o ? r.error : ""}`.trim(),
|
|
60
|
+
"aria-invalid": o,
|
|
61
|
+
"aria-describedby": n ? `${i}-description` : void 0,
|
|
62
|
+
...w
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ e(
|
|
66
66
|
"span",
|
|
67
67
|
{
|
|
68
68
|
className: `${r.radioCircle} ${_}`.trim(),
|
|
@@ -70,25 +70,25 @@ function k({
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] }),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
73
|
+
/* @__PURE__ */ s("div", { className: r.labelContainer, children: [
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
f,
|
|
76
76
|
{
|
|
77
|
-
htmlFor:
|
|
77
|
+
htmlFor: i,
|
|
78
78
|
size: c,
|
|
79
|
-
intent:
|
|
79
|
+
intent: o ? "error" : a ? "disabled" : "default",
|
|
80
80
|
required: l,
|
|
81
|
-
disabled:
|
|
81
|
+
disabled: a,
|
|
82
82
|
className: r.label,
|
|
83
|
-
children:
|
|
83
|
+
children: m
|
|
84
84
|
}
|
|
85
85
|
),
|
|
86
|
-
|
|
86
|
+
n && /* @__PURE__ */ e(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
|
-
id: `${
|
|
90
|
-
className: `${r.description} ${
|
|
91
|
-
children:
|
|
89
|
+
id: `${i}-description`,
|
|
90
|
+
className: `${r.description} ${o ? r.descriptionError : ""}`.trim(),
|
|
91
|
+
children: n
|
|
92
92
|
}
|
|
93
93
|
)
|
|
94
94
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index25.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index25.css');const r=require("react/jsx-runtime"),z=require("../Label/index.cjs"),H="_wrapper_1v7jd_1",L="_fullWidth_1v7jd_8",P="_selectContainer_1v7jd_13",E="_select_1v7jd_13",F="_sm_1v7jd_62",G="_md_1v7jd_69",I="_lg_1v7jd_76",V="_arrow_1v7jd_103",k="_error_1v7jd_123",D="_helperText_1v7jd_133",J="_errorText_1v7jd_139",K="_selectedCount_1v7jd_178",e={wrapper:H,fullWidth:L,selectContainer:P,select:E,sm:F,md:G,lg:I,arrow:V,error:k,helperText:D,errorText:J,selectedCount:K};function Q(i){return"options"in i}function R(i){const{id:T,name:m,label:j,placeholder:v="Select an option",options:w,required:f=!1,disabled:c=!1,error:u=!1,helperText:_,size:x="md",fullWidth:S=!1,showSelectedCount:N=!1,minHeight:b,maxHeight:g,className:W,style:$,multiple:l,value:n,defaultValue:y,onChange:o,...q}=i,d=T??m??`select-${Math.random().toString(36).slice(2)}`,a=!!u,p=typeof u=="string"?u:void 0,O={sm:e.sm,md:e.md,lg:e.lg}[x],A={...b&&{minHeight:b},...g&&{maxHeight:g}},B=t=>{if(l){const s=Array.from(t.target.selectedOptions).map(M=>M.value);o==null||o(s)}else o==null||o(t)},C=t=>t.map(s=>r.jsx("option",{value:s.value,disabled:s.disabled,children:s.label},s.value)),h=l&&Array.isArray(n)?n.length:0;return r.jsxs("div",{className:[W??"",e.wrapper,S?e.fullWidth:""].filter(Boolean).join(" "),style:$,children:[j&&r.jsx(z.Label,{htmlFor:d,size:x,intent:a?"error":c?"disabled":"default",required:f,disabled:c,children:j}),r.jsxs("div",{className:e.selectContainer,children:[r.jsxs("select",{id:d,name:m,value:n,defaultValue:y,required:f,disabled:c,multiple:l,onChange:B,className:[e.select,O,a?e.error:""].filter(Boolean).join(" "),style:A,"aria-invalid":a,"aria-describedby":p||_?`${d}-description`:void 0,...q,children:[!l&&v&&!n&&!y&&r.jsx("option",{value:"",disabled:!0,hidden:!0,children:v}),w.map((t,s)=>Q(t)?r.jsx("optgroup",{label:t.label,children:C(t.options)},s):C([t])[0])]}),!l&&r.jsx("span",{className:e.arrow,"aria-hidden":"true",children:"▼"})]}),(p||_)&&r.jsx("div",{id:`${d}-description`,className:[e.helperText,a?e.errorText:""].filter(Boolean).join(" "),children:p||_}),l&&N&&h>0&&r.jsxs("div",{className:e.selectedCount,children:[h," ",h===1?"item":"items"," selected"]})]})}exports.Select=R;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Label as q } from "../Label/index.mjs";
|
|
3
|
-
import '../../../index25.css';const E = "
|
|
3
|
+
import '../../../index25.css';const E = "_wrapper_1v7jd_1", F = "_fullWidth_1v7jd_8", G = "_selectContainer_1v7jd_13", I = "_select_1v7jd_13", L = "_sm_1v7jd_62", P = "_md_1v7jd_69", V = "_lg_1v7jd_76", k = "_arrow_1v7jd_103", D = "_error_1v7jd_123", J = "_helperText_1v7jd_133", K = "_errorText_1v7jd_139", Q = "_selectedCount_1v7jd_178", e = {
|
|
4
4
|
wrapper: E,
|
|
5
5
|
fullWidth: F,
|
|
6
6
|
selectContainer: G,
|
|
@@ -14,51 +14,51 @@ import '../../../index25.css';const E = "_wrapper_1tffa_1", F = "_fullWidth_1tff
|
|
|
14
14
|
errorText: K,
|
|
15
15
|
selectedCount: Q
|
|
16
16
|
};
|
|
17
|
-
function R(
|
|
18
|
-
return "options" in
|
|
17
|
+
function R(c) {
|
|
18
|
+
return "options" in c;
|
|
19
19
|
}
|
|
20
|
-
function Y(
|
|
20
|
+
function Y(c) {
|
|
21
21
|
const {
|
|
22
|
-
id:
|
|
23
|
-
name:
|
|
24
|
-
label:
|
|
25
|
-
placeholder:
|
|
26
|
-
options:
|
|
27
|
-
required:
|
|
28
|
-
disabled:
|
|
29
|
-
error:
|
|
30
|
-
helperText:
|
|
31
|
-
size:
|
|
22
|
+
id: T,
|
|
23
|
+
name: v,
|
|
24
|
+
label: f,
|
|
25
|
+
placeholder: j = "Select an option",
|
|
26
|
+
options: N,
|
|
27
|
+
required: g = !1,
|
|
28
|
+
disabled: _ = !1,
|
|
29
|
+
error: p = !1,
|
|
30
|
+
helperText: u,
|
|
31
|
+
size: x = "md",
|
|
32
32
|
fullWidth: S = !1,
|
|
33
33
|
showSelectedCount: W = !1,
|
|
34
|
-
minHeight:
|
|
35
|
-
maxHeight:
|
|
34
|
+
minHeight: b,
|
|
35
|
+
maxHeight: C,
|
|
36
36
|
className: A,
|
|
37
37
|
style: B,
|
|
38
38
|
multiple: l,
|
|
39
|
-
value:
|
|
40
|
-
defaultValue:
|
|
39
|
+
value: n,
|
|
40
|
+
defaultValue: w,
|
|
41
41
|
onChange: s,
|
|
42
42
|
...O
|
|
43
|
-
} =
|
|
44
|
-
...
|
|
45
|
-
...
|
|
46
|
-
}, H = (
|
|
43
|
+
} = c, d = T ?? v ?? `select-${Math.random().toString(36).slice(2)}`, a = !!p, m = typeof p == "string" ? p : void 0, $ = { sm: e.sm, md: e.md, lg: e.lg }[x], z = {
|
|
44
|
+
...b && { minHeight: b },
|
|
45
|
+
...C && { maxHeight: C }
|
|
46
|
+
}, H = (r) => {
|
|
47
47
|
if (l) {
|
|
48
|
-
const
|
|
49
|
-
s == null || s(r);
|
|
50
|
-
} else
|
|
48
|
+
const t = Array.from(r.target.selectedOptions).map((M) => M.value);
|
|
51
49
|
s == null || s(t);
|
|
52
|
-
|
|
50
|
+
} else
|
|
51
|
+
s == null || s(r);
|
|
52
|
+
}, y = (r) => r.map((t) => /* @__PURE__ */ o(
|
|
53
53
|
"option",
|
|
54
54
|
{
|
|
55
|
-
value:
|
|
56
|
-
disabled:
|
|
57
|
-
children:
|
|
55
|
+
value: t.value,
|
|
56
|
+
disabled: t.disabled,
|
|
57
|
+
children: t.label
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
)),
|
|
61
|
-
return /* @__PURE__ */
|
|
59
|
+
t.value
|
|
60
|
+
)), h = l && Array.isArray(n) ? n.length : 0;
|
|
61
|
+
return /* @__PURE__ */ i(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
className: [
|
|
@@ -68,54 +68,54 @@ function Y(d) {
|
|
|
68
68
|
].filter(Boolean).join(" "),
|
|
69
69
|
style: B,
|
|
70
70
|
children: [
|
|
71
|
-
|
|
71
|
+
f && /* @__PURE__ */ o(
|
|
72
72
|
q,
|
|
73
73
|
{
|
|
74
|
-
htmlFor:
|
|
75
|
-
size:
|
|
76
|
-
intent:
|
|
77
|
-
required:
|
|
78
|
-
disabled:
|
|
79
|
-
children:
|
|
74
|
+
htmlFor: d,
|
|
75
|
+
size: x,
|
|
76
|
+
intent: a ? "error" : _ ? "disabled" : "default",
|
|
77
|
+
required: g,
|
|
78
|
+
disabled: _,
|
|
79
|
+
children: f
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ i("div", { className: e.selectContainer, children: [
|
|
83
|
+
/* @__PURE__ */ i(
|
|
84
84
|
"select",
|
|
85
85
|
{
|
|
86
|
-
id:
|
|
87
|
-
name:
|
|
88
|
-
value:
|
|
89
|
-
defaultValue:
|
|
90
|
-
required:
|
|
91
|
-
disabled:
|
|
86
|
+
id: d,
|
|
87
|
+
name: v,
|
|
88
|
+
value: n,
|
|
89
|
+
defaultValue: w,
|
|
90
|
+
required: g,
|
|
91
|
+
disabled: _,
|
|
92
92
|
multiple: l,
|
|
93
93
|
onChange: H,
|
|
94
|
-
className: [e.select, $,
|
|
94
|
+
className: [e.select, $, a ? e.error : ""].filter(Boolean).join(" "),
|
|
95
95
|
style: z,
|
|
96
|
-
"aria-invalid":
|
|
97
|
-
"aria-describedby":
|
|
96
|
+
"aria-invalid": a,
|
|
97
|
+
"aria-describedby": m || u ? `${d}-description` : void 0,
|
|
98
98
|
...O,
|
|
99
99
|
children: [
|
|
100
|
-
!l &&
|
|
101
|
-
|
|
100
|
+
!l && j && !n && !w && /* @__PURE__ */ o("option", { value: "", disabled: !0, hidden: !0, children: j }),
|
|
101
|
+
N.map((r, t) => R(r) ? /* @__PURE__ */ o("optgroup", { label: r.label, children: y(r.options) }, t) : y([r])[0])
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
!l && /* @__PURE__ */
|
|
105
|
+
!l && /* @__PURE__ */ o("span", { className: e.arrow, "aria-hidden": "true", children: "▼" })
|
|
106
106
|
] }),
|
|
107
|
-
(
|
|
107
|
+
(m || u) && /* @__PURE__ */ o(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
id: `${
|
|
111
|
-
className: [e.helperText,
|
|
112
|
-
children:
|
|
110
|
+
id: `${d}-description`,
|
|
111
|
+
className: [e.helperText, a ? e.errorText : ""].filter(Boolean).join(" "),
|
|
112
|
+
children: m || u
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
|
-
l && W &&
|
|
116
|
-
|
|
115
|
+
l && W && h > 0 && /* @__PURE__ */ i("div", { className: e.selectedCount, children: [
|
|
116
|
+
h,
|
|
117
117
|
" ",
|
|
118
|
-
|
|
118
|
+
h === 1 ? "item" : "items",
|
|
119
119
|
" selected"
|
|
120
120
|
] })
|
|
121
121
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index39.css');const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index39.css');const t=require("react/jsx-runtime"),w=require("../Label/index.cjs"),M="_wrapper_78rxp_1",q="_fullWidth_78rxp_8",F="_textarea_78rxp_13",I="_sm_78rxp_53",O="_md_78rxp_59",P="_lg_78rxp_65",k="_resizeNone_78rxp_72",A="_resizeVertical_78rxp_76",D="_resizeHorizontal_78rxp_80",G="_resizeBoth_78rxp_84",J="_error_78rxp_89",K="_footer_78rxp_99",Q="_helperText_78rxp_108",U="_errorText_78rxp_115",X="_charCount_78rxp_120",Y="_charCountError_78rxp_127",r={wrapper:M,fullWidth:q,textarea:F,sm:I,md:O,lg:P,resizeNone:k,resizeVertical:A,resizeHorizontal:D,resizeBoth:G,error:J,footer:K,helperText:Q,errorText:U,charCount:X,charCountError:Y};function Z({id:g,name:x,label:p,value:o,defaultValue:s,placeholder:C,disabled:c=!1,readOnly:N=!1,required:h=!1,error:a=!1,helperText:_,size:d="md",rows:T=4,minRows:z,maxRows:m,minLength:j,maxLength:e,showCharCount:u=!1,resize:y="vertical",fullWidth:H=!1,className:b,style:v,...E}){const i=g??x??`textarea-${Math.random().toString(36).slice(2)}`,n=!!a,l=typeof a=="string"?a:void 0,B={sm:r.sm,md:r.md,lg:r.lg}[d],S={none:r.resizeNone,vertical:r.resizeVertical,horizontal:r.resizeHorizontal,both:r.resizeBoth}[y],$=(o==null?void 0:o.length)??(s==null?void 0:s.length)??0,f=u&&e,W={...z&&{minHeight:`${z*1.5}em`},...m&&{maxHeight:`${m*1.5}em`},...v};return t.jsxs("div",{className:`${b??""} ${r.wrapper} ${H?r.fullWidth:""}`.trim(),children:[p&&t.jsx(w.Label,{htmlFor:i,size:d,intent:n?"error":c?"disabled":"default",required:h,disabled:c,children:p}),t.jsx("textarea",{id:i,name:x,value:o,defaultValue:s,placeholder:C,disabled:c,readOnly:N,required:h,rows:T,minLength:j,maxLength:e,className:`${r.textarea} ${B} ${S} ${n?r.error:""}`.trim(),style:W,"aria-invalid":n,"aria-describedby":l||_||f?`${i}-description`:void 0,...E}),t.jsxs("div",{className:r.footer,children:[(l||_)&&t.jsx("div",{id:`${i}-description`,className:`${r.helperText} ${n?r.errorText:""}`.trim(),children:l||_}),f&&t.jsxs("div",{className:`${r.charCount} ${e&&$>e?r.charCountError:""}`.trim(),children:[$,e&&` / ${e}`]})]})]})}exports.Textarea=Z;
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Label as
|
|
3
|
-
import '../../../index39.css';const
|
|
4
|
-
wrapper:
|
|
5
|
-
fullWidth:
|
|
6
|
-
textarea:
|
|
7
|
-
sm:
|
|
8
|
-
md:
|
|
9
|
-
lg:
|
|
10
|
-
resizeNone:
|
|
11
|
-
resizeVertical:
|
|
12
|
-
resizeHorizontal:
|
|
13
|
-
resizeBoth:
|
|
14
|
-
error:
|
|
15
|
-
footer:
|
|
16
|
-
helperText:
|
|
17
|
-
errorText:
|
|
18
|
-
charCount:
|
|
19
|
-
charCountError:
|
|
1
|
+
import { jsxs as l, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { Label as u } from "../Label/index.mjs";
|
|
3
|
+
import '../../../index39.css';const F = "_wrapper_78rxp_1", I = "_fullWidth_78rxp_8", k = "_textarea_78rxp_13", A = "_sm_78rxp_53", D = "_md_78rxp_59", G = "_lg_78rxp_65", J = "_resizeNone_78rxp_72", K = "_resizeVertical_78rxp_76", O = "_resizeHorizontal_78rxp_80", P = "_resizeBoth_78rxp_84", Q = "_error_78rxp_89", U = "_footer_78rxp_99", X = "_helperText_78rxp_108", Y = "_errorText_78rxp_115", Z = "_charCount_78rxp_120", q = "_charCountError_78rxp_127", r = {
|
|
4
|
+
wrapper: F,
|
|
5
|
+
fullWidth: I,
|
|
6
|
+
textarea: k,
|
|
7
|
+
sm: A,
|
|
8
|
+
md: D,
|
|
9
|
+
lg: G,
|
|
10
|
+
resizeNone: J,
|
|
11
|
+
resizeVertical: K,
|
|
12
|
+
resizeHorizontal: O,
|
|
13
|
+
resizeBoth: P,
|
|
14
|
+
error: Q,
|
|
15
|
+
footer: U,
|
|
16
|
+
helperText: X,
|
|
17
|
+
errorText: Y,
|
|
18
|
+
charCount: Z,
|
|
19
|
+
charCountError: q
|
|
20
20
|
};
|
|
21
21
|
function L({
|
|
22
|
-
id:
|
|
22
|
+
id: g,
|
|
23
23
|
name: h,
|
|
24
24
|
label: x,
|
|
25
25
|
value: t,
|
|
26
26
|
defaultValue: o,
|
|
27
|
-
placeholder:
|
|
28
|
-
disabled:
|
|
29
|
-
readOnly:
|
|
27
|
+
placeholder: N,
|
|
28
|
+
disabled: n = !1,
|
|
29
|
+
readOnly: T = !1,
|
|
30
30
|
required: d = !1,
|
|
31
31
|
error: c = !1,
|
|
32
32
|
helperText: _,
|
|
33
|
-
size:
|
|
34
|
-
rows:
|
|
35
|
-
minRows:
|
|
33
|
+
size: m = "md",
|
|
34
|
+
rows: H = 4,
|
|
35
|
+
minRows: z,
|
|
36
36
|
maxRows: $,
|
|
37
|
-
minLength:
|
|
37
|
+
minLength: y,
|
|
38
38
|
maxLength: e,
|
|
39
|
-
showCharCount:
|
|
40
|
-
resize:
|
|
41
|
-
fullWidth:
|
|
42
|
-
className:
|
|
43
|
-
style:
|
|
44
|
-
...
|
|
39
|
+
showCharCount: E = !1,
|
|
40
|
+
resize: v = "vertical",
|
|
41
|
+
fullWidth: B = !1,
|
|
42
|
+
className: W,
|
|
43
|
+
style: w,
|
|
44
|
+
...b
|
|
45
45
|
}) {
|
|
46
|
-
const s =
|
|
46
|
+
const s = g ?? h ?? `textarea-${Math.random().toString(36).slice(2)}`, i = !!c, a = typeof c == "string" ? c : void 0, j = {
|
|
47
47
|
sm: r.sm,
|
|
48
48
|
md: r.md,
|
|
49
49
|
lg: r.lg
|
|
50
|
-
}[
|
|
50
|
+
}[m], M = {
|
|
51
51
|
none: r.resizeNone,
|
|
52
52
|
vertical: r.resizeVertical,
|
|
53
53
|
horizontal: r.resizeHorizontal,
|
|
54
54
|
both: r.resizeBoth
|
|
55
|
-
}[
|
|
56
|
-
...
|
|
55
|
+
}[v], f = (t == null ? void 0 : t.length) ?? (o == null ? void 0 : o.length) ?? 0, C = E && e, S = {
|
|
56
|
+
...z && { minHeight: `${z * 1.5}em` },
|
|
57
57
|
...$ && { maxHeight: `${$ * 1.5}em` },
|
|
58
|
-
...
|
|
58
|
+
...w
|
|
59
59
|
};
|
|
60
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ l(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
|
-
className: `${
|
|
63
|
+
className: `${W ?? ""} ${r.wrapper} ${B ? r.fullWidth : ""}`.trim(),
|
|
64
64
|
children: [
|
|
65
|
-
x && /* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
x && /* @__PURE__ */ p(
|
|
66
|
+
u,
|
|
67
67
|
{
|
|
68
68
|
htmlFor: s,
|
|
69
|
-
size:
|
|
70
|
-
intent:
|
|
69
|
+
size: m,
|
|
70
|
+
intent: i ? "error" : n ? "disabled" : "default",
|
|
71
71
|
required: d,
|
|
72
|
-
disabled:
|
|
72
|
+
disabled: n,
|
|
73
73
|
children: x
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ p(
|
|
77
77
|
"textarea",
|
|
78
78
|
{
|
|
79
79
|
id: s,
|
|
80
80
|
name: h,
|
|
81
81
|
value: t,
|
|
82
82
|
defaultValue: o,
|
|
83
|
-
placeholder:
|
|
84
|
-
disabled:
|
|
85
|
-
readOnly:
|
|
83
|
+
placeholder: N,
|
|
84
|
+
disabled: n,
|
|
85
|
+
readOnly: T,
|
|
86
86
|
required: d,
|
|
87
|
-
rows:
|
|
88
|
-
minLength:
|
|
87
|
+
rows: H,
|
|
88
|
+
minLength: y,
|
|
89
89
|
maxLength: e,
|
|
90
|
-
className: `${r.textarea} ${
|
|
91
|
-
style:
|
|
92
|
-
"aria-invalid":
|
|
93
|
-
"aria-describedby": a || _ ||
|
|
94
|
-
...
|
|
90
|
+
className: `${r.textarea} ${j} ${M} ${i ? r.error : ""}`.trim(),
|
|
91
|
+
style: S,
|
|
92
|
+
"aria-invalid": i,
|
|
93
|
+
"aria-describedby": a || _ || C ? `${s}-description` : void 0,
|
|
94
|
+
...b
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
(a || _) && /* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ l("div", { className: r.footer, children: [
|
|
98
|
+
(a || _) && /* @__PURE__ */ p(
|
|
99
99
|
"div",
|
|
100
100
|
{
|
|
101
101
|
id: `${s}-description`,
|
|
102
|
-
className: `${r.helperText} ${
|
|
102
|
+
className: `${r.helperText} ${i ? r.errorText : ""}`.trim(),
|
|
103
103
|
children: a || _
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
|
-
|
|
106
|
+
C && /* @__PURE__ */ l(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
|
-
className: `${r.charCount} ${e &&
|
|
109
|
+
className: `${r.charCount} ${e && f > e ? r.charCountError : ""}`.trim(),
|
|
110
110
|
children: [
|
|
111
|
-
|
|
111
|
+
f,
|
|
112
112
|
e && ` / ${e}`
|
|
113
113
|
]
|
|
114
114
|
}
|
package/dist/index25.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_1v7jd_1{display:flex;flex-direction:column;gap:var(--spacing-xs);width:100%}._fullWidth_1v7jd_8{width:100%}._selectContainer_1v7jd_13{position:relative;display:inline-block;width:100%}._select_1v7jd_13{width:100%;padding:var(--spacing-sm) var(--spacing-md);padding-right:2.5rem;font-size:var(--font-size-md);font-family:inherit;border:2px solid var(--color-border);border-radius:var(--radius-md);background-color:var(--color-background);color:var(--color-text-primary);cursor:pointer;outline:none;transition:border-color .2s ease,box-shadow .2s ease;appearance:none;-webkit-appearance:none;-moz-appearance:none}._select_1v7jd_13:focus{border-color:var(--color-primary-100)}._select_1v7jd_13:disabled{background-color:var(--color-secondary-10);color:var(--color-text-secondary);cursor:not-allowed;opacity:.6}._select_1v7jd_13:hover:not(:disabled){border-color:var(--color-primary-50)}._select_1v7jd_13[multiple]{padding-right:var(--spacing-md);min-height:120px}._sm_1v7jd_62{padding:var(--spacing-xs) var(--spacing-sm);padding-right:2rem;font-size:var(--font-size-sm);height:32px}._md_1v7jd_69{padding:var(--spacing-sm) var(--spacing-md);padding-right:2.5rem;font-size:var(--font-size-md);height:40px}._lg_1v7jd_76{padding:var(--spacing-md) var(--spacing-lg);padding-right:3rem;font-size:var(--font-size-lg);height:48px}._sm_1v7jd_62[multiple]{height:auto;min-height:80px;padding-right:var(--spacing-sm)}._md_1v7jd_69[multiple]{height:auto;min-height:120px;padding-right:var(--spacing-md)}._lg_1v7jd_76[multiple]{height:auto;min-height:160px;padding-right:var(--spacing-lg)}._arrow_1v7jd_103{position:absolute;right:var(--spacing-md);top:50%;transform:translateY(-50%);pointer-events:none;color:var(--color-text-secondary);font-size:.75rem;transition:transform .2s ease}._select_1v7jd_13:disabled~._arrow_1v7jd_103{opacity:.6}._select_1v7jd_13:focus~._arrow_1v7jd_103{transform:translateY(-50%) rotate(180deg)}._error_1v7jd_123{border-color:var(--color-states-error-bg)}._error_1v7jd_123:focus{border-color:var(--color-states-error-bg);box-shadow:0 0 0 3px var(--color-states-error-bg-subtle, #fee)}._helperText_1v7jd_133{font-size:var(--font-size-sm);color:var(--color-text-secondary);margin:0}._errorText_1v7jd_139{color:var(--color-states-error-text)}._select_1v7jd_13 optgroup{font-weight:var(--font-weight-bold);font-style:normal}._select_1v7jd_13 option{padding:var(--spacing-xs)}._select_1v7jd_13 option:disabled{color:var(--color-text-tertiary);font-style:italic}@media (max-width: 768px){._sm_1v7jd_62{height:36px}._md_1v7jd_69{height:44px}._lg_1v7jd_76{height:52px}._arrow_1v7jd_103{right:var(--spacing-sm)}}._selectedCount_1v7jd_178{font-size:var(--font-size-sm);color:var(--color-text-secondary);margin-top:var(--spacing-xs)}
|
package/dist/index39.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_78rxp_1{display:flex;flex-direction:column;gap:var(--spacing-xs);width:100%}._fullWidth_78rxp_8{width:100%}._textarea_78rxp_13{width:100%;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-family:inherit;line-height:1.5;border:2px solid var(--color-border);border-radius:var(--radius-md);background-color:var(--color-background);color:var(--color-text-primary);outline:none;transition:border-color .2s ease,box-shadow .2s ease;scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}._textarea_78rxp_13::placeholder{color:var(--color-text-tertiary)}._textarea_78rxp_13:focus{border-color:var(--color-primary-100)}._textarea_78rxp_13:disabled{background-color:var(--color-secondary-10);color:var(--color-text-secondary);cursor:not-allowed;opacity:.6}._textarea_78rxp_13:read-only{background-color:var(--color-secondary-10);cursor:default}._sm_78rxp_53{padding:var(--spacing-xs) var(--spacing-sm);font-size:var(--font-size-sm);min-height:80px}._md_78rxp_59{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);min-height:120px}._lg_78rxp_65{padding:var(--spacing-md) var(--spacing-lg);font-size:var(--font-size-lg);min-height:160px}._resizeNone_78rxp_72{resize:none}._resizeVertical_78rxp_76{resize:vertical}._resizeHorizontal_78rxp_80{resize:horizontal}._resizeBoth_78rxp_84{resize:both}._error_78rxp_89{border-color:var(--color-states-error-bg)}._error_78rxp_89:focus{border-color:var(--color-states-error-bg);box-shadow:0 0 0 3px var(--color-states-error-bg-subtle, #fee)}._footer_78rxp_99{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--spacing-sm);margin-top:var(--spacing-xs)}._helperText_78rxp_108{flex:1;font-size:var(--font-size-sm);color:var(--color-text-secondary);margin:0}._errorText_78rxp_115{color:var(--color-states-error-text)}._charCount_78rxp_120{font-size:var(--font-size-sm);color:var(--color-text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}._charCountError_78rxp_127{color:var(--color-states-error-text);font-weight:var(--font-weight-medium)}._textarea_78rxp_13:hover:not(:disabled):not(:focus){border-color:var(--color-primary-50)}@media (max-width: 768px){._sm_78rxp_53{min-height:100px}._md_78rxp_59{min-height:140px}._lg_78rxp_65{min-height:180px}._footer_78rxp_99{flex-direction:column;align-items:flex-start}}
|
package/dist/index40.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_1a3ho_1{display:flex;align-items:flex-start;gap:var(--spacing-sm);cursor:pointer;padding:var(--spacing-xs) 0}._wrapperDisabled_1a3ho_9{cursor:not-allowed}._radioContainer_1a3ho_14{position:relative;display:flex;align-items:center;flex-shrink:0}._radio_1a3ho_14{position:absolute;opacity:0;width:0;height:0;margin:0;padding:0;pointer-events:none}._radioCircle_1a3ho_33{display:block;border:2px solid var(--color-border);border-radius:50%;background-color:var(--color-background);position:relative;cursor:pointer;transition:all .2s ease;flex-shrink:0}._radio_1a3ho_14:checked+._radioCircle_1a3ho_33:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--color-primary-100);transition:all .2s ease}._radio_1a3ho_14:focus+._radioCircle_1a3ho_33{outline:none}._wrapper_1a3ho_1:hover ._radio_1a3ho_14:not(:disabled)+._radioCircle_1a3ho_33{border-color:var(--color-primary-100)}._radio_1a3ho_14:checked+._radioCircle_1a3ho_33{border-color:var(--color-primary-100)}._radio_1a3ho_14:disabled+._radioCircle_1a3ho_33{background-color:var(--color-secondary-10);border-color:var(--color-border);opacity:.6;cursor:not-allowed}._radio_1a3ho_14:disabled:checked+._radioCircle_1a3ho_33:after{background-color:var(--color-text-secondary)}._error_1a3ho_84+._radioCircle_1a3ho_33{border-color:var(--color-states-error-bg)}._error_1a3ho_84:focus+._radioCircle_1a3ho_33{box-shadow:0 0 0 3px var(--color-states-error-bg-subtle, #fee)}._error_1a3ho_84:checked+._radioCircle_1a3ho_33{border-color:var(--color-states-error-bg)}._error_1a3ho_84:checked+._radioCircle_1a3ho_33:after{background-color:var(--color-states-error-bg)}._sm_1a3ho_101._radioCircle_1a3ho_33{width:16px;height:16px}._sm_1a3ho_101._radioCircle_1a3ho_33:after{width:8px;height:8px}._md_1a3ho_111._radioCircle_1a3ho_33{width:20px;height:20px}._md_1a3ho_111._radioCircle_1a3ho_33:after{width:10px;height:10px}._lg_1a3ho_121._radioCircle_1a3ho_33{width:24px;height:24px}._lg_1a3ho_121._radioCircle_1a3ho_33:after{width:12px;height:12px}._labelContainer_1a3ho_132{display:flex;flex-direction:column;gap:var(--spacing-xs);flex:1}._label_1a3ho_132{cursor:pointer;-webkit-user-select:none;user-select:none;margin:0}._description_1a3ho_146{font-size:var(--font-size-sm);color:var(--color-text-secondary);line-height:1.4;margin:0}._descriptionError_1a3ho_153{color:var(--color-states-error-text)}@media (max-width: 768px){._sm_1a3ho_101._radioCircle_1a3ho_33{width:18px;height:18px}._md_1a3ho_111._radioCircle_1a3ho_33{width:22px;height:22px}._lg_1a3ho_121._radioCircle_1a3ho_33{width:26px;height:26px}._wrapper_1a3ho_1{padding:var(--spacing-sm) 0}}
|
package/dist/index41.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fieldset_l9gdh_1{border:1px solid var(--color-border);padding:var(--spacing-md);border-radius:var(--radius-md);margin:0;transition:border-color .2s ease,background-color .2s ease,opacity .2s ease}._legend_l9gdh_12{font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);color:var(--color-text-primary);padding:0 var(--spacing-xs)}._content_l9gdh_19{display:flex;flex-direction:column;gap:var(--spacing-md)}._helperText_l9gdh_25{font-size:var(--font-size-sm);color:var(--color-text-primary);margin-top:var(--spacing-sm)}._default_l9gdh_32{background-color:transparent;border-color:var(--color-border)}._outlined_l9gdh_37{padding:var(--spacing-md);background-color:transparent;border-width:2px;border-color:var(--color-primary-100)}._filled_l9gdh_44{background-color:var(--color-secondary-10);border-color:transparent}._disabled_l9gdh_50{opacity:.6;cursor:not-allowed}._disabled_l9gdh_50 *{pointer-events:none}._error_l9gdh_59{border-color:var(--color-states-error-bg)}._error_l9gdh_59 ._legend_l9gdh_12{color:var(--color-text-primary)}._errorText_l9gdh_67{color:var(--color-states-error-text)}._fieldset_l9gdh_1:focus-within:not(._disabled_l9gdh_50):not(._error_l9gdh_59){border-color:var(--color-primary-100)}._outlined_l9gdh_37:focus-within:not(._disabled_l9gdh_50):not(._error_l9gdh_59){border-color:var(--color-primary-200)}@media (max-width: 768px){._fieldset_l9gdh_1{padding:var(--spacing-md)}._legend_l9gdh_12{font-size:var(--font-size-sm)}}
|
package/dist/index60.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_15mos_1{display:flex;flex-direction:column;gap:var(--spacing-xs);position:relative}._label_15mos_9{color:var(--color-text-primary);font-size:var(--font-size-md);font-family:var(--font-family-primary);font-weight:500;margin:0}._labelDisabled_15mos_17{color:var(--color-secondary-50);cursor:not-allowed}._required_15mos_22{color:var(--color-states-error-text);margin-left:var(--spacing-xs)}._inputWrapper_15mos_28{position:relative;display:flex;align-items:center}._input_15mos_28{width:100%;padding:var(--spacing-sm) 3rem var(--spacing-sm) var(--spacing-sm);border:2px solid var(--color-border);border-radius:var(--radius-md);font-size:var(--font-size-md);font-family:var(--font-family-primary);color:var(--color-text-primary);background-color:var(--color-foreground);cursor:pointer;transition:all .2s ease;outline:none}._input_15mos_28::placeholder{color:var(--color-secondary-50)}._input_15mos_28:hover:not(:disabled){border-color:var(--color-primary-100)}._input_15mos_28:focus{border-color:var(--color-primary-100)}._inputDisabled_15mos_61{background-color:var(--color-secondary-10);border-color:var(--color-secondary-25);cursor:not-allowed;color:var(--color-secondary-50)}._inputError_15mos_68{border-color:var(--color-error)}._inputError_15mos_68:focus{box-shadow:0 0 0 3px #ef44441a}._icons_15mos_77{position:absolute;right:var(--spacing-sm);display:flex;align-items:center;gap:var(--spacing-xs);pointer-events:none}._calendarIcon_15mos_86{color:var(--color-secondary-50);transition:color .2s ease}._iconDisabled_15mos_91{opacity:.5}._input_15mos_28:hover:not(:disabled)~._icons_15mos_77 ._calendarIcon_15mos_86{color:var(--color-primary-100)}._clearButton_15mos_100{all:unset;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background-color:var(--color-secondary-25);color:var(--color-text-primary);font-weight:700;line-height:1;cursor:pointer;pointer-events:auto;transition:all .2s ease}._clearButton_15mos_100:hover{background-color:var(--color-secondary-50);color:var(--color-primary-foreground)}._clearButton_15mos_100:focus-visible{outline:2px solid var(--color-primary-100);outline-offset:2px}._helperText_15mos_128{font-size:var(--font-size-sm);color:var(--color-secondary-50)}._helperTextError_15mos_133{color:var(--color-states-error-text)}._popover_15mos_138{position:absolute;top:calc(100% + var(--spacing-xs));left:0;z-index:1000;border-radius:var(--radius-lg);background-color:var(--color-foreground);border:1px solid var(--color-border);box-shadow:var(--shadow-lg);animation:_slideDown_15mos_1 .2s ease}@keyframes _slideDown_15mos_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._popover_15mos_138{left:50%;transform:translate(-50%)}}@media (max-width: 480px){._input_15mos_28{font-size:var(--font-size-sm);padding:var(--spacing-xs) 2.5rem var(--spacing-xs) var(--spacing-xs)}._calendarIcon_15mos_86{width:16px;height:16px}._clearButton_15mos_100{width:18px;height:18px;font-size:16px}}
|