brd-ui-kit 0.1.10 → 0.1.11
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/components/basic-checkbox/basic-checkbox.d.ts +4 -4
- package/dist/components/basic-checkbox/basic-checkbox.stories.d.ts +1 -11
- package/dist/components/basic-checkbox/index.d.ts +1 -0
- package/dist/components/input-field/index.d.ts +1 -1
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/select-field/index.d.ts +2 -1
- package/dist/components/select-field/select-field.d.ts +1 -1
- package/dist/components/textarea-field/index.d.ts +1 -0
- package/dist/components/textarea-field/textarea-field.d.ts +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +117 -123
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,10 +31,14 @@ export { usePopupControls } from './hooks/usePopupControls';
|
|
|
31
31
|
export { AppPagination } from './components/app-pagination';
|
|
32
32
|
export { AppSidebar } from './components/app-sidebar';
|
|
33
33
|
export { BasicCheckbox } from './components/basic-checkbox';
|
|
34
|
+
export type { CheckboxProps } from './components/basic-checkbox';
|
|
34
35
|
export { BasicModal } from './components/basic-modal';
|
|
35
36
|
export { BasicTable } from './components/basic-table';
|
|
36
37
|
export { BasicTooltip } from './components/basic-tooltip';
|
|
37
38
|
export { InputField } from './components/input-field';
|
|
39
|
+
export type { InputProps } from './components/input-field';
|
|
38
40
|
export { RadioButton } from './components/radio-button';
|
|
39
41
|
export { SelectField } from './components/select-field';
|
|
42
|
+
export type { SelectProps } from './components/select-field';
|
|
40
43
|
export { TextareaField } from './components/textarea-field';
|
|
44
|
+
export type { TextareaProps } from './components/textarea-field';
|
package/dist/index.js
CHANGED
|
@@ -17805,141 +17805,135 @@ const TE = ({
|
|
|
17805
17805
|
}, v = n ? l : d, w = e.filter(
|
|
17806
17806
|
(C) => C.value.toLowerCase().includes(g.trim().toLowerCase())
|
|
17807
17807
|
);
|
|
17808
|
-
return /* @__PURE__ */ x(ha, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
{
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
showRemove: !r,
|
|
17833
|
-
className: `${Zi({ variant: S.variant, kind: S.kind })} ${r && "opacity-50"} pl-2.5`,
|
|
17834
|
-
children: /* @__PURE__ */ x(
|
|
17835
|
-
yi,
|
|
17836
|
-
{
|
|
17837
|
-
variant: S.variant,
|
|
17838
|
-
classNames: { className: "px-2 py-0" },
|
|
17839
|
-
children: S.value
|
|
17840
|
-
}
|
|
17841
|
-
)
|
|
17842
|
-
},
|
|
17843
|
-
S.id
|
|
17844
|
-
)),
|
|
17845
|
-
/* @__PURE__ */ x(
|
|
17846
|
-
jl,
|
|
17847
|
-
{
|
|
17848
|
-
...a,
|
|
17849
|
-
...h,
|
|
17850
|
-
placeholder: C.length > 0 ? "" : a.placeholder,
|
|
17851
|
-
value: g,
|
|
17852
|
-
onChange: b
|
|
17853
|
-
}
|
|
17854
|
-
)
|
|
17855
|
-
] }) }),
|
|
17856
|
-
/* @__PURE__ */ x(
|
|
17857
|
-
ms,
|
|
17858
|
-
{
|
|
17859
|
-
className: "-ml-4.5",
|
|
17860
|
-
disabled: r
|
|
17861
|
-
}
|
|
17862
|
-
)
|
|
17863
|
-
]
|
|
17864
|
-
}
|
|
17865
|
-
) : /* @__PURE__ */ ce(
|
|
17866
|
-
Hl,
|
|
17867
|
-
{
|
|
17868
|
-
disabled: r,
|
|
17869
|
-
className: "pr-8",
|
|
17870
|
-
children: [
|
|
17871
|
-
/* @__PURE__ */ x(Gl, { children: (C) => /* @__PURE__ */ ce(En, { children: [
|
|
17872
|
-
C && /* @__PURE__ */ x(
|
|
17873
|
-
Bl,
|
|
17874
|
-
{
|
|
17875
|
-
showRemove: !1,
|
|
17876
|
-
onClick: y,
|
|
17877
|
-
className: `${Zi({ variant: C.variant, kind: C.kind })} ${r && "opacity-50"} ml-1`,
|
|
17878
|
-
children: /* @__PURE__ */ x(
|
|
17879
|
-
yi,
|
|
17880
|
-
{
|
|
17881
|
-
variant: C.variant,
|
|
17882
|
-
classNames: { className: "px-2 py-0" },
|
|
17883
|
-
children: C.value
|
|
17884
|
-
}
|
|
17885
|
-
)
|
|
17886
|
-
},
|
|
17887
|
-
C.value
|
|
17888
|
-
),
|
|
17889
|
-
/* @__PURE__ */ x(
|
|
17890
|
-
jl,
|
|
17808
|
+
return /* @__PURE__ */ x(ha, { children: /* @__PURE__ */ x(Bo, { children: /* @__PURE__ */ ce(sw, { label: t, children: [
|
|
17809
|
+
/* @__PURE__ */ ce(
|
|
17810
|
+
iw,
|
|
17811
|
+
{
|
|
17812
|
+
items: e,
|
|
17813
|
+
multiple: n,
|
|
17814
|
+
autoHighlight: n,
|
|
17815
|
+
value: v,
|
|
17816
|
+
onValueChange: r ? void 0 : m,
|
|
17817
|
+
children: [
|
|
17818
|
+
n ? /* @__PURE__ */ ce(
|
|
17819
|
+
Hl,
|
|
17820
|
+
{
|
|
17821
|
+
disabled: r,
|
|
17822
|
+
className: "pr-8",
|
|
17823
|
+
children: [
|
|
17824
|
+
/* @__PURE__ */ x(Gl, { children: (C) => /* @__PURE__ */ ce(En, { children: [
|
|
17825
|
+
C.map((S) => /* @__PURE__ */ x(
|
|
17826
|
+
Bl,
|
|
17827
|
+
{
|
|
17828
|
+
showRemove: !r,
|
|
17829
|
+
className: `${Zi({ variant: S.variant, kind: S.kind })} ${r && "opacity-50"} pl-2.5`,
|
|
17830
|
+
children: /* @__PURE__ */ x(
|
|
17831
|
+
yi,
|
|
17891
17832
|
{
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
17895
|
-
value: g,
|
|
17896
|
-
onChange: b,
|
|
17897
|
-
className: "flex-1 pl-1"
|
|
17833
|
+
variant: S.variant,
|
|
17834
|
+
classNames: { className: "px-2 py-0" },
|
|
17835
|
+
children: S.value
|
|
17898
17836
|
}
|
|
17899
17837
|
)
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
disabled: r
|
|
17906
|
-
}
|
|
17907
|
-
)
|
|
17908
|
-
]
|
|
17909
|
-
}
|
|
17910
|
-
),
|
|
17911
|
-
/* @__PURE__ */ ce(lw, { children: [
|
|
17912
|
-
/* @__PURE__ */ x(dw, { children: "No items found." }),
|
|
17913
|
-
/* @__PURE__ */ x(cw, { children: w.map((C) => {
|
|
17914
|
-
const S = n ? l.includes(C) : d === C;
|
|
17915
|
-
return /* @__PURE__ */ x(
|
|
17916
|
-
uw,
|
|
17838
|
+
},
|
|
17839
|
+
S.id
|
|
17840
|
+
)),
|
|
17841
|
+
/* @__PURE__ */ x(
|
|
17842
|
+
jl,
|
|
17917
17843
|
{
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17844
|
+
...a,
|
|
17845
|
+
...h,
|
|
17846
|
+
placeholder: C.length > 0 ? "" : a.placeholder,
|
|
17847
|
+
value: g,
|
|
17848
|
+
onChange: b
|
|
17849
|
+
}
|
|
17850
|
+
)
|
|
17851
|
+
] }) }),
|
|
17852
|
+
/* @__PURE__ */ x(
|
|
17853
|
+
ms,
|
|
17854
|
+
{
|
|
17855
|
+
className: "-ml-4.5",
|
|
17856
|
+
disabled: r
|
|
17857
|
+
}
|
|
17858
|
+
)
|
|
17859
|
+
]
|
|
17860
|
+
}
|
|
17861
|
+
) : /* @__PURE__ */ ce(
|
|
17862
|
+
Hl,
|
|
17863
|
+
{
|
|
17864
|
+
disabled: r,
|
|
17865
|
+
className: "pr-8",
|
|
17866
|
+
children: [
|
|
17867
|
+
/* @__PURE__ */ x(Gl, { children: (C) => /* @__PURE__ */ ce(En, { children: [
|
|
17868
|
+
C && /* @__PURE__ */ x(
|
|
17869
|
+
Bl,
|
|
17870
|
+
{
|
|
17871
|
+
showRemove: !1,
|
|
17872
|
+
onClick: y,
|
|
17873
|
+
className: `${Zi({ variant: C.variant, kind: C.kind })} ${r && "opacity-50"} ml-1`,
|
|
17921
17874
|
children: /* @__PURE__ */ x(
|
|
17922
17875
|
yi,
|
|
17923
17876
|
{
|
|
17924
|
-
dotPosition: "left",
|
|
17925
17877
|
variant: C.variant,
|
|
17926
|
-
|
|
17927
|
-
classNames: { className: "px-4 py-1.5" },
|
|
17878
|
+
classNames: { className: "px-2 py-0" },
|
|
17928
17879
|
children: C.value
|
|
17929
17880
|
}
|
|
17930
17881
|
)
|
|
17931
17882
|
},
|
|
17932
|
-
C.
|
|
17933
|
-
)
|
|
17934
|
-
|
|
17935
|
-
|
|
17936
|
-
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
|
|
17940
|
-
|
|
17941
|
-
|
|
17942
|
-
|
|
17883
|
+
C.value
|
|
17884
|
+
),
|
|
17885
|
+
/* @__PURE__ */ x(
|
|
17886
|
+
jl,
|
|
17887
|
+
{
|
|
17888
|
+
...a,
|
|
17889
|
+
placeholder: C ? "" : a.placeholder,
|
|
17890
|
+
...h,
|
|
17891
|
+
value: g,
|
|
17892
|
+
onChange: b,
|
|
17893
|
+
className: "flex-1 pl-1"
|
|
17894
|
+
}
|
|
17895
|
+
)
|
|
17896
|
+
] }) }),
|
|
17897
|
+
/* @__PURE__ */ x(
|
|
17898
|
+
ms,
|
|
17899
|
+
{
|
|
17900
|
+
className: "-ml-4.5",
|
|
17901
|
+
disabled: r
|
|
17902
|
+
}
|
|
17903
|
+
)
|
|
17904
|
+
]
|
|
17905
|
+
}
|
|
17906
|
+
),
|
|
17907
|
+
/* @__PURE__ */ ce(lw, { children: [
|
|
17908
|
+
/* @__PURE__ */ x(dw, { children: "No items found." }),
|
|
17909
|
+
/* @__PURE__ */ x(cw, { children: w.map((C) => {
|
|
17910
|
+
const S = n ? l.includes(C) : d === C;
|
|
17911
|
+
return /* @__PURE__ */ x(
|
|
17912
|
+
uw,
|
|
17913
|
+
{
|
|
17914
|
+
disabled: r,
|
|
17915
|
+
value: C,
|
|
17916
|
+
className: S ? "bg-tertiary-bg" : "",
|
|
17917
|
+
children: /* @__PURE__ */ x(
|
|
17918
|
+
yi,
|
|
17919
|
+
{
|
|
17920
|
+
dotPosition: "left",
|
|
17921
|
+
variant: C.variant,
|
|
17922
|
+
kind: C.kind,
|
|
17923
|
+
classNames: { className: "px-4 py-1.5" },
|
|
17924
|
+
children: C.value
|
|
17925
|
+
}
|
|
17926
|
+
)
|
|
17927
|
+
},
|
|
17928
|
+
C.id
|
|
17929
|
+
);
|
|
17930
|
+
}) })
|
|
17931
|
+
] })
|
|
17932
|
+
]
|
|
17933
|
+
}
|
|
17934
|
+
),
|
|
17935
|
+
/* @__PURE__ */ x(Uo, { ...h, children: i })
|
|
17936
|
+
] }) }) });
|
|
17943
17937
|
};
|
|
17944
17938
|
TE.displayName = "SelectSearch";
|
|
17945
17939
|
const dI = ({
|