@clickhouse/click-ui 0.0.206 → 0.0.208
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/click-ui.bundled.es.js +100 -54
- package/dist/click-ui.bundled.umd.js +100 -54
- package/dist/click-ui.es.js +100 -54
- package/dist/click-ui.umd.js +100 -54
- package/dist/components/Icon/IconCommon.d.ts +5 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Input/InputWrapper.d.ts +11 -6
- package/dist/components/Input/SearchField.d.ts +2 -9
- package/dist/components/Input/TextField.d.ts +9 -1
- package/dist/components/icons/Bold.d.ts +4 -0
- package/dist/components/icons/Italic.d.ts +4 -0
- package/dist/components/icons/ListBulleted.d.ts +4 -0
- package/dist/components/icons/ListNumbered.d.ts +4 -0
- package/dist/components/icons/Underline.d.ts +4 -0
- package/dist/utils/test-utils.d.ts +56 -1
- package/package.json +1 -1
package/dist/click-ui.umd.js
CHANGED
|
@@ -90,6 +90,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
90
90
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M21 7v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z", clipRule: "evenodd" }),
|
|
91
91
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13.75 10.25-6 6" })
|
|
92
92
|
] });
|
|
93
|
+
const Bold = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.75 12H13.75C15.683 12 17.25 13.567 17.25 15.5V15.5C17.25 17.433 15.683 19 13.75 19H6.75V5H12.583C14.516 5 16.083 6.567 16.083 8.5V8.5C16.083 10.433 14.516 12 12.583 12", stroke: "#161517", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
93
94
|
const Book = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
94
95
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 16.37a6.368 6.368 0 0 0-7.495-1.12c-.684.364-1.509-.085-1.509-.86V5.295c0-.637.294-1.249.812-1.618A6.367 6.367 0 0 1 12 4.364a6.367 6.367 0 0 1 8.191-.687c.518.37.813.981.813 1.618v9.095c0 .775-.826 1.225-1.509.86A6.368 6.368 0 0 0 12 16.37Z", clipRule: "evenodd" }),
|
|
95
96
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4.505 19.387A6.368 6.368 0 0 1 12 20.507a6.368 6.368 0 0 1 7.495-1.12M12 16.37V4.363" })
|
|
@@ -457,6 +458,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
457
458
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M10 9.056C9.094 7.818 7.652 7 6 7v0a5 5 0 0 0-5 5v0a5 5 0 0 0 5 5v0a5.299 5.299 0 0 0 4.543-2.572L12 12l1.457-2.428A5.299 5.299 0 0 1 18 7v0a5 5 0 0 1 5 5v0a5 5 0 0 1-5 5v0c-1.652 0-3.094-.818-4-2.056" }),
|
|
458
459
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m9.93 6.028.521 2.954-2.954.52" })
|
|
459
460
|
] });
|
|
461
|
+
const Italic = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
460
462
|
const Key = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
461
463
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15.0312 9.34226C15.0312 9.13526 14.8633 8.96826 14.6562 8.96826C14.4492 8.96926 14.2812 9.13726 14.2812 9.34426C14.2812 9.55126 14.4492 9.71926 14.6562 9.71826C14.8633 9.71826 15.0312 9.55026 15.0312 9.34326", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
462
464
|
/* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.499 14.7852L11.469 15.8172H9.637V17.2862H8.172V19.1222L6.798 20.5002H3.5V17.1952L9.223 11.4592C8.417 9.36524 8.849 6.90324 10.534 5.21424C12.814 2.92924 16.511 2.92924 18.791 5.21424C21.071 7.49924 21.071 11.2042 18.791 13.4902C17.089 15.1942 14.601 15.6242 12.499 14.7852Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
@@ -501,6 +503,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
501
503
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 16L16 8", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
502
504
|
] });
|
|
503
505
|
};
|
|
506
|
+
const ListBulleted = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
507
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 6.43673H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
508
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20.0036 12.0002H8.99902", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
509
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8.99902 17.5632H20.0036", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
510
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.49728 5.93652C4.22102 5.93652 3.99707 6.16047 3.99707 6.43673C3.99707 6.71299 4.22102 6.93694 4.49728 6.93694C4.77354 6.93694 4.99749 6.71299 4.99749 6.43673C4.99749 6.16047 4.77354 5.93652 4.49728 5.93652", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
511
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.49728 11.5C4.22102 11.5 3.99707 11.724 3.99707 12.0002C3.99707 12.2765 4.22102 12.5004 4.49728 12.5004C4.77354 12.5004 4.99749 12.2765 4.99749 12.0002C4.99749 11.724 4.77354 11.5 4.49728 11.5", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
512
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.49728 17.063C4.22102 17.063 3.99707 17.2869 3.99707 17.5632C3.99707 17.8395 4.22102 18.0634 4.49728 18.0634C4.77354 18.0634 4.99749 17.8395 4.99749 17.5632C4.99749 17.2869 4.77354 17.063 4.49728 17.063", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
513
|
+
] });
|
|
514
|
+
const ListNumbered = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
515
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 4H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
516
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 9H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
517
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.5 9H4H5.25V4L4 5.25", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
518
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 15H20", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
519
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.1504 20H20.0004", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
520
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 15H6.5V17L4 18.5V20H6.75", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
521
|
+
] });
|
|
504
522
|
const Loading = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
|
|
505
523
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.25, d: "M7.625 8.875H4.5V5.75" }),
|
|
506
524
|
/* @__PURE__ */ jsxRuntime.jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.5 12A7.495 7.495 0 0 0 5.188 8.875" }),
|
|
@@ -719,6 +737,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
719
737
|
] }),
|
|
720
738
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_7969_2214", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
721
739
|
] });
|
|
740
|
+
const Underline = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
741
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 20H18", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
742
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4", stroke: "#161517", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
743
|
+
] });
|
|
722
744
|
const Upgrade = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
723
745
|
/* @__PURE__ */ jsxRuntime.jsx("mask", { id: "path-1-inside-1_10418_503", fill: "white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.1664 17.8179H7.83984V18.8864H16.1664V17.8179Z" }) }),
|
|
724
746
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7.83984 17.8179V16.5322H6.55413V17.8179H7.83984ZM16.1664 17.8179H17.4521V16.5322H16.1664V17.8179ZM16.1664 18.8864V20.1721H17.4521V18.8864H16.1664ZM7.83984 18.8864H6.55413V20.1721H7.83984V18.8864ZM7.83984 19.1036H16.1664V16.5322H7.83984V19.1036ZM14.8807 17.8179V18.8864H17.4521V17.8179H14.8807ZM16.1664 17.6007H7.83984V20.1721H16.1664V17.6007ZM9.12556 18.8864V17.8179H6.55413V18.8864H9.12556Z", fill: "white", mask: "url(#path-1-inside-1_10418_503)" }),
|
|
@@ -758,6 +780,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
758
780
|
bell: Bell,
|
|
759
781
|
beta: Beta,
|
|
760
782
|
blog: Blog,
|
|
783
|
+
bold: Bold,
|
|
761
784
|
book: Book,
|
|
762
785
|
brackets: Brackets,
|
|
763
786
|
briefcase: Briefcase,
|
|
@@ -832,6 +855,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
832
855
|
information: InformationIcon,
|
|
833
856
|
"insert-row": InsertRowIcon,
|
|
834
857
|
integrations: Integrations,
|
|
858
|
+
italic: Italic,
|
|
835
859
|
key: Key,
|
|
836
860
|
keys: Keys,
|
|
837
861
|
lifebuoy: Lifebuoy,
|
|
@@ -839,6 +863,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
839
863
|
"light-bulb-on": LightBulbOn,
|
|
840
864
|
lightening: Lightening,
|
|
841
865
|
"line-in-circle": LineInCircle,
|
|
866
|
+
"list-bulleted": ListBulleted,
|
|
867
|
+
"list-numbered": ListNumbered,
|
|
842
868
|
loading: LoadingFlipped,
|
|
843
869
|
"loading-animated": LoadingAnimated,
|
|
844
870
|
lock: Lock,
|
|
@@ -886,6 +912,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
886
912
|
taxi: Taxi,
|
|
887
913
|
trash: Trash,
|
|
888
914
|
"tree-structure": TreeStructure,
|
|
915
|
+
underline: Underline,
|
|
889
916
|
upgrade: Upgrade,
|
|
890
917
|
upload: Upload,
|
|
891
918
|
url: Url,
|
|
@@ -15847,7 +15874,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15847
15874
|
resize: ${$resize};
|
|
15848
15875
|
overflow: auto;
|
|
15849
15876
|
`}
|
|
15850
|
-
padding: 0 ${theme2.click.field.space.x};
|
|
15851
15877
|
${$error ? `
|
|
15852
15878
|
font: ${theme2.click.field.typography.fieldText.error};
|
|
15853
15879
|
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
@@ -15931,9 +15957,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15931
15957
|
const InputElement = styled.styled.input.withConfig({
|
|
15932
15958
|
componentId: "sc-1pvd2nj-2"
|
|
15933
15959
|
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;", ""], ({
|
|
15934
|
-
theme: theme2
|
|
15960
|
+
theme: theme2,
|
|
15961
|
+
$hasStartContent,
|
|
15962
|
+
$hasEndContent
|
|
15935
15963
|
}) => `
|
|
15936
15964
|
padding: ${theme2.click.field.space.y} 0;
|
|
15965
|
+
padding-left: ${$hasStartContent ? "0" : theme2.click.field.space.x};
|
|
15966
|
+
padding-right: ${$hasEndContent ? "0" : theme2.click.field.space.x};
|
|
15937
15967
|
&::placeholder {
|
|
15938
15968
|
color: ${theme2.click.field.color.placeholder.default};
|
|
15939
15969
|
}
|
|
@@ -15963,26 +15993,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15963
15993
|
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
|
|
15964
15994
|
theme: theme2
|
|
15965
15995
|
}) => `
|
|
15966
|
-
padding: ${theme2.click.field.space.y}
|
|
15996
|
+
padding: ${theme2.click.field.space.y} ${theme2.click.field.space.x};
|
|
15967
15997
|
align-self: stretch;
|
|
15968
15998
|
&::placeholder {
|
|
15969
15999
|
color: ${theme2.click.field.color.placeholder.default};
|
|
15970
16000
|
}
|
|
15971
16001
|
`);
|
|
15972
|
-
styled.styled(InputWrapper).withConfig({
|
|
15973
|
-
componentId: "sc-1pvd2nj-5"
|
|
15974
|
-
})(["resize:vertical;overflow:auto;color:red;"]);
|
|
15975
16002
|
const IconButton = styled.styled.button.withConfig({
|
|
15976
|
-
componentId: "sc-1pvd2nj-
|
|
16003
|
+
componentId: "sc-1pvd2nj-5"
|
|
15977
16004
|
})(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
|
|
15978
|
-
theme: theme2
|
|
15979
|
-
$show
|
|
16005
|
+
theme: theme2
|
|
15980
16006
|
}) => `
|
|
15981
16007
|
padding: ${theme2.click.field.space.y} 0;
|
|
15982
|
-
visibility: ${$show ? "visible" : "hidden"};
|
|
15983
16008
|
`);
|
|
15984
16009
|
styled.styled.svg.withConfig({
|
|
15985
|
-
componentId: "sc-1pvd2nj-
|
|
16010
|
+
componentId: "sc-1pvd2nj-6"
|
|
15986
16011
|
})(["", ""], ({
|
|
15987
16012
|
theme: theme2
|
|
15988
16013
|
}) => `
|
|
@@ -15993,6 +16018,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15993
16018
|
padding-right: ${theme2.click.field.space.x};
|
|
15994
16019
|
}
|
|
15995
16020
|
`);
|
|
16021
|
+
const InputStartContent = styled.styled.div.withConfig({
|
|
16022
|
+
componentId: "sc-1pvd2nj-7"
|
|
16023
|
+
})(["", ""], ({
|
|
16024
|
+
theme: theme2
|
|
16025
|
+
}) => `
|
|
16026
|
+
padding-left: ${theme2.click.field.space.x};
|
|
16027
|
+
cursor: text;
|
|
16028
|
+
gap: ${theme2.click.field.space.gap};
|
|
16029
|
+
display: flex;
|
|
16030
|
+
align-self: stretch;
|
|
16031
|
+
align-items: center;
|
|
16032
|
+
`);
|
|
16033
|
+
const InputEndContent = styled.styled.div.withConfig({
|
|
16034
|
+
componentId: "sc-1pvd2nj-8"
|
|
16035
|
+
})(["", ""], ({
|
|
16036
|
+
theme: theme2
|
|
16037
|
+
}) => `
|
|
16038
|
+
padding-right: ${theme2.click.field.space.x};
|
|
16039
|
+
gap: ${theme2.click.field.space.gap};
|
|
16040
|
+
display: flex;
|
|
16041
|
+
align-self: stretch;
|
|
16042
|
+
align-items: center;
|
|
16043
|
+
`);
|
|
15996
16044
|
const locale = "en-US";
|
|
15997
16045
|
const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
|
|
15998
16046
|
day: "2-digit",
|
|
@@ -16018,8 +16066,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
16018
16066
|
const defaultId = React.useId();
|
|
16019
16067
|
const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
|
|
16020
16068
|
return /* @__PURE__ */ jsxRuntime.jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
|
|
16021
|
-
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }),
|
|
16022
|
-
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
|
|
16069
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputStartContent, { children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }) }),
|
|
16070
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { $hasStartContent: true, "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
|
|
16023
16071
|
] });
|
|
16024
16072
|
};
|
|
16025
16073
|
const weekdayFormatter = new Intl.DateTimeFormat(locale, {
|
|
@@ -33939,9 +33987,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
33939
33987
|
const onChange = (e) => {
|
|
33940
33988
|
onChangeProp(e.target.value, e);
|
|
33941
33989
|
};
|
|
33990
|
+
const hasEndContent = value.length > 0;
|
|
33942
33991
|
return /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper, { disabled, id: id ?? defaultId, label, error: error2, orientation, dir, children: [
|
|
33943
|
-
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { ref, type: viewPassword ? "text" : "password", id: id ?? defaultId, disabled, value, onChange, ...props }),
|
|
33944
|
-
/* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: togglePasswordViewer,
|
|
33992
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { $hasStartContent: false, $hasEndContent: hasEndContent, ref, type: viewPassword ? "text" : "password", id: id ?? defaultId, disabled, value, onChange, ...props }),
|
|
33993
|
+
hasEndContent && /* @__PURE__ */ jsxRuntime.jsx(InputEndContent, { children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: togglePasswordViewer, children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: viewPassword ? "eye-closed" : "eye", size: "md" }) }) })
|
|
33945
33994
|
] });
|
|
33946
33995
|
});
|
|
33947
33996
|
const CustomSelect = styled.styled.div.withConfig({
|
|
@@ -34100,7 +34149,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34100
34149
|
$progress,
|
|
34101
34150
|
$type
|
|
34102
34151
|
}) => `
|
|
34103
|
-
background: ${$completed ? theme2.click.field.color.background.default : `linear-gradient(to right, ${theme2.global.color.accent.default} 0%, ${theme2.global.color.accent.default} ${$progress}%, ${theme2.click.field.color.background.default} ${$progress}%, ${theme2.click.field.color.background.default} 100%)`};
|
|
34152
|
+
background: ${$completed && $type === "default" ? theme2.click.field.color.background.default : `linear-gradient(to right, ${theme2.global.color.accent.default} 0%, ${theme2.global.color.accent.default} ${$progress}%, ${theme2.click.field.color.background.default} ${$progress}%, ${theme2.click.field.color.background.default} 100%)`};
|
|
34104
34153
|
background-size: calc(100% + 2px);
|
|
34105
34154
|
background-position: center;
|
|
34106
34155
|
gap: ${theme2.click.field.space.gap};
|
|
@@ -34457,38 +34506,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
34457
34506
|
}
|
|
34458
34507
|
`);
|
|
34459
34508
|
const SearchField = React.forwardRef(({
|
|
34460
|
-
disabled,
|
|
34461
|
-
label,
|
|
34462
|
-
error: error2,
|
|
34463
|
-
id,
|
|
34464
|
-
loading,
|
|
34465
|
-
clear = true,
|
|
34466
|
-
value = "",
|
|
34467
|
-
onChange: onChangeProp,
|
|
34468
|
-
orientation,
|
|
34469
|
-
dir,
|
|
34470
34509
|
isFilter = false,
|
|
34510
|
+
clear = true,
|
|
34471
34511
|
...props
|
|
34472
34512
|
}, ref) => {
|
|
34473
|
-
|
|
34474
|
-
const defaultId = React.useId();
|
|
34475
|
-
const onChange = (e) => {
|
|
34476
|
-
onChangeProp(e.target.value, e);
|
|
34477
|
-
};
|
|
34478
|
-
const clearInput = () => {
|
|
34479
|
-
onChangeProp("");
|
|
34480
|
-
};
|
|
34481
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper, { disabled, id: id ?? defaultId, label, error: error2, orientation, dir, children: [
|
|
34482
|
-
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: isFilter ? "filter" : "search", size: "sm" }),
|
|
34483
|
-
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { ref: mergeRefs([inputRef, ref]), type: "text", id: id ?? defaultId, disabled, value, onChange, ...props }),
|
|
34484
|
-
clear && /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: clearInput, $show: value.length > 0, "aria-label": "clear input", "data-testid": "search-close", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross", size: "sm" }) }),
|
|
34485
|
-
loading && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "loading-animated", size: "sm" })
|
|
34486
|
-
] });
|
|
34513
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TextField, { startContent: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: isFilter ? "filter" : "search", size: "sm" }), clear, ref, ...props });
|
|
34487
34514
|
});
|
|
34488
34515
|
const useUpdateEffect = (effect, deps) => {
|
|
34489
34516
|
const isFirstMount = React.useRef(true);
|
|
34490
34517
|
React.useEffect(() => {
|
|
34491
|
-
if (isFirstMount) {
|
|
34518
|
+
if (isFirstMount.current) {
|
|
34492
34519
|
isFirstMount.current = false;
|
|
34493
34520
|
return;
|
|
34494
34521
|
}
|
|
@@ -38314,15 +38341,24 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38314
38341
|
selectedValues,
|
|
38315
38342
|
onSelect
|
|
38316
38343
|
} = useOption();
|
|
38317
|
-
const
|
|
38344
|
+
const handleSelect = (evt) => {
|
|
38318
38345
|
if (!disabled) {
|
|
38319
38346
|
onSelect(value, void 0, evt);
|
|
38320
|
-
if (typeof onSelectProp
|
|
38347
|
+
if (typeof onSelectProp === "function") {
|
|
38321
38348
|
onSelectProp(value, void 0, evt);
|
|
38322
38349
|
}
|
|
38323
38350
|
}
|
|
38324
38351
|
};
|
|
38325
|
-
const
|
|
38352
|
+
const handleMenuItemClick = (evt) => {
|
|
38353
|
+
if (evt.target !== evt.currentTarget) {
|
|
38354
|
+
return;
|
|
38355
|
+
}
|
|
38356
|
+
handleSelect(evt);
|
|
38357
|
+
};
|
|
38358
|
+
const handleCheckboxClick = (evt) => {
|
|
38359
|
+
handleSelect(evt);
|
|
38360
|
+
};
|
|
38361
|
+
const handleMenuItemMouseOver = (e) => {
|
|
38326
38362
|
if (onMouseOverProp) {
|
|
38327
38363
|
onMouseOverProp(e);
|
|
38328
38364
|
}
|
|
@@ -38334,11 +38370,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38334
38370
|
return null;
|
|
38335
38371
|
}
|
|
38336
38372
|
const isChecked = selectedValues.includes(value);
|
|
38337
|
-
const onChange = () => {
|
|
38338
|
-
onSelect(value);
|
|
38339
|
-
};
|
|
38340
38373
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38341
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick:
|
|
38374
|
+
/* @__PURE__ */ jsxRuntime.jsxs(GenericMenuItem, { ...props, "data-value": value, onClick: handleMenuItemClick, onMouseOver: handleMenuItemMouseOver, ref: forwardedRef, "data-disabled": disabled ? true : void 0, "data-highlighted": highlighted == value ? "true" : void 0, "data-testid": `multi-select-checkbox-${value}`, "cui-select-item": "", children: [
|
|
38342
38375
|
icon && iconDir === "start" && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
38343
38376
|
display: "flex",
|
|
38344
38377
|
justifyContent: "center"
|
|
@@ -38351,9 +38384,9 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
38351
38384
|
}, children: [
|
|
38352
38385
|
/* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: icon, size: "sm" }),
|
|
38353
38386
|
children
|
|
38354
|
-
] }), onClick:
|
|
38355
|
-
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
38356
|
-
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick:
|
|
38387
|
+
] }), onClick: handleCheckboxClick, variant: variant ?? "default" }),
|
|
38388
|
+
icon && iconDir === "end" && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" }) }),
|
|
38389
|
+
!icon && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: handleCheckboxClick, variant: variant ?? "default" })
|
|
38357
38390
|
] }),
|
|
38358
38391
|
separator && /* @__PURE__ */ jsxRuntime.jsx(Separator, { size: "sm" })
|
|
38359
38392
|
] });
|
|
@@ -39914,6 +39947,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
39914
39947
|
onChange: onChangeProp,
|
|
39915
39948
|
orientation,
|
|
39916
39949
|
dir,
|
|
39950
|
+
startContent,
|
|
39951
|
+
endContent,
|
|
39917
39952
|
...props
|
|
39918
39953
|
}, ref) => {
|
|
39919
39954
|
const inputRef = React.useRef(null);
|
|
@@ -39924,10 +39959,21 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
39924
39959
|
const clearInput = () => {
|
|
39925
39960
|
onChangeProp("");
|
|
39926
39961
|
};
|
|
39962
|
+
const handleStartContentClick = () => {
|
|
39963
|
+
var _a;
|
|
39964
|
+
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
39965
|
+
};
|
|
39966
|
+
const hasStartContent = Boolean(startContent);
|
|
39967
|
+
const hasClear = clear && value.length > 0;
|
|
39968
|
+
const hasEndContent = Boolean(hasClear || loading || endContent);
|
|
39927
39969
|
return /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper, { disabled, id: id ?? defaultId, label, labelColor, error: error2, orientation, dir, children: [
|
|
39928
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39929
|
-
|
|
39930
|
-
|
|
39970
|
+
startContent && /* @__PURE__ */ jsxRuntime.jsx(InputStartContent, { onClick: handleStartContentClick, children: startContent }),
|
|
39971
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputElement, { $hasStartContent: hasStartContent, $hasEndContent: hasEndContent, ref: mergeRefs([inputRef, ref]), type, id: id ?? defaultId, disabled, value, onChange, ...props }),
|
|
39972
|
+
hasEndContent && /* @__PURE__ */ jsxRuntime.jsxs(InputEndContent, { children: [
|
|
39973
|
+
endContent ? endContent : null,
|
|
39974
|
+
hasClear && /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick: clearInput, "aria-label": "clear input", "data-testid": "textfield-clear", children: /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "cross", size: "sm" }) }),
|
|
39975
|
+
loading && /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "loading-animated", size: "sm" })
|
|
39976
|
+
] })
|
|
39931
39977
|
] });
|
|
39932
39978
|
});
|
|
39933
39979
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
@@ -14,6 +14,7 @@ export declare const ICONS_MAP: {
|
|
|
14
14
|
bell: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
beta: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
blog: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
bold: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
book: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
brackets: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
briefcase: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -88,6 +89,7 @@ export declare const ICONS_MAP: {
|
|
|
88
89
|
information: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
89
90
|
"insert-row": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
90
91
|
integrations: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
italic: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
91
93
|
key: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
92
94
|
keys: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
93
95
|
lifebuoy: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -95,6 +97,8 @@ export declare const ICONS_MAP: {
|
|
|
95
97
|
"light-bulb-on": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
96
98
|
lightening: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
97
99
|
"line-in-circle": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
"list-bulleted": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
"list-numbered": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
98
102
|
loading: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGAttributes<SVGElement>, never>> & string & Omit<(props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|
|
99
103
|
"loading-animated": import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').SVGAttributes<SVGElement>, never>, never>> & string;
|
|
100
104
|
lock: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -142,6 +146,7 @@ export declare const ICONS_MAP: {
|
|
|
142
146
|
taxi: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
143
147
|
trash: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
144
148
|
"tree-structure": (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
underline: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
145
150
|
upgrade: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
146
151
|
upload: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
147
152
|
url: (props: import('react').SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { PaymentName, PaymentProps } from '../icons/Payments';
|
|
|
6
6
|
|
|
7
7
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
8
8
|
export type IconState = "default" | "success" | "warning" | "danger" | "info";
|
|
9
|
-
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "warning", "waves"];
|
|
9
|
+
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "bold", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "chart-area", "chart-bar-horizontal", "chart-donut", "chart-heatmap", "chart-scatter", "chart-stacked-horizontal", "chart-stacked-vertical", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "globe", "hexagon", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "italic", "key", "keys", "lifebuoy", "light-bulb", "light-bulb-on", "lightening", "line-in-circle", "list-bulleted", "list-numbered", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "mcp", "moon", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "square", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upgrade", "upload", "url", "user", "users", "underline", "warning", "waves"];
|
|
10
10
|
export type IconName = (typeof ICON_NAMES)[number];
|
|
11
11
|
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
12
12
|
name: IconName;
|
|
@@ -13,15 +13,20 @@ export interface WrapperProps {
|
|
|
13
13
|
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
14
14
|
}
|
|
15
15
|
export declare const InputWrapper: ({ className, id, label, labelColor, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare const InputElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
17
|
-
|
|
16
|
+
export declare const InputElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
17
|
+
$hasStartContent?: boolean;
|
|
18
|
+
$hasEndContent?: boolean;
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const NumberInputElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$hasStartContent" | "$hasEndContent"> & {
|
|
21
|
+
$hasStartContent?: boolean;
|
|
22
|
+
$hasEndContent?: boolean;
|
|
23
|
+
}, "ref"> & {
|
|
18
24
|
ref?: ((instance: HTMLInputElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLInputElement> | null | undefined;
|
|
19
25
|
}, {
|
|
20
26
|
$hideControls?: boolean;
|
|
21
27
|
}>> & string;
|
|
22
28
|
export declare const TextAreaElement: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const IconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
25
|
-
$show?: boolean;
|
|
26
|
-
}>> & string;
|
|
29
|
+
export declare const IconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
27
30
|
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGSVGElement>, never>> & string;
|
|
31
|
+
export declare const InputStartContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
32
|
+
export declare const InputEndContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WrapperProps } from './InputWrapper';
|
|
1
|
+
import { TextFieldProps } from './TextField';
|
|
3
2
|
|
|
4
|
-
export interface SearchFieldProps extends Omit<
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
value?: string;
|
|
7
|
-
clear?: boolean;
|
|
8
|
-
onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
-
orientation?: "vertical" | "horizontal";
|
|
10
|
-
dir?: "start" | "end";
|
|
3
|
+
export interface SearchFieldProps extends Omit<TextFieldProps, "type" | "startContent" | "endContent"> {
|
|
11
4
|
isFilter?: boolean;
|
|
12
5
|
}
|
|
13
6
|
export declare const SearchField: import('react').ForwardRefExoticComponent<SearchFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { WrapperProps } from './InputWrapper';
|
|
3
3
|
|
|
4
4
|
export interface TextFieldProps extends Omit<WrapperProps, "id" | "children">, Omit<InputHTMLAttributes<HTMLInputElement>, "children" | "type" | "value" | "onChange" | "dir"> {
|
|
@@ -10,5 +10,13 @@ export interface TextFieldProps extends Omit<WrapperProps, "id" | "children">, O
|
|
|
10
10
|
onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
|
|
11
11
|
orientation?: "vertical" | "horizontal";
|
|
12
12
|
dir?: "start" | "end";
|
|
13
|
+
/**
|
|
14
|
+
* Additional content to the left of the control
|
|
15
|
+
*/
|
|
16
|
+
startContent?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Additional content to the right of the control
|
|
19
|
+
*/
|
|
20
|
+
endContent?: ReactNode;
|
|
13
21
|
}
|
|
14
22
|
export declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,59 @@
|
|
|
1
1
|
import { ThemeName } from '../theme';
|
|
2
2
|
|
|
3
|
-
declare const renderCUI: (children: React.ReactNode, theme?: ThemeName) =>
|
|
3
|
+
declare const renderCUI: (children: React.ReactNode, theme?: ThemeName) => {
|
|
4
|
+
rerender: (rerenderChildren: React.ReactNode) => void;
|
|
5
|
+
container: HTMLElement;
|
|
6
|
+
baseElement: HTMLElement;
|
|
7
|
+
debug: (baseElement?: import('react-dom/client').Container | (Element | Document) | Array<import('react-dom/client').Container | (Element | Document)>, maxLength?: number, options?: import('pretty-format').OptionsReceived) => void;
|
|
8
|
+
unmount: () => void;
|
|
9
|
+
asFragment: () => DocumentFragment;
|
|
10
|
+
getByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement;
|
|
11
|
+
getAllByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
12
|
+
queryByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
13
|
+
queryAllByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
14
|
+
findByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
15
|
+
findAllByLabelText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
16
|
+
getByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement;
|
|
17
|
+
getAllByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
18
|
+
queryByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement | null;
|
|
19
|
+
queryAllByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
20
|
+
findByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
21
|
+
findAllByPlaceholderText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
22
|
+
getByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement;
|
|
23
|
+
getAllByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
24
|
+
queryByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
25
|
+
queryAllByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
26
|
+
findByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
27
|
+
findAllByText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
28
|
+
getByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement;
|
|
29
|
+
getAllByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
30
|
+
queryByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement | null;
|
|
31
|
+
queryAllByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
32
|
+
findByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
33
|
+
findAllByAltText: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
34
|
+
getByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement;
|
|
35
|
+
getAllByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
36
|
+
queryByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement | null;
|
|
37
|
+
queryAllByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
38
|
+
findByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
39
|
+
findAllByTitle: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
40
|
+
getByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement;
|
|
41
|
+
getAllByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
42
|
+
queryByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement | null;
|
|
43
|
+
queryAllByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
44
|
+
findByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
45
|
+
findAllByDisplayValue: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
46
|
+
getByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined) => HTMLElement;
|
|
47
|
+
getAllByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined) => HTMLElement[];
|
|
48
|
+
queryByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined) => HTMLElement | null;
|
|
49
|
+
queryAllByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined) => HTMLElement[];
|
|
50
|
+
findByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
51
|
+
findAllByRole: (role: import('@testing-library/react').ByRoleMatcher, options?: import('@testing-library/react').ByRoleOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
52
|
+
getByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement;
|
|
53
|
+
getAllByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
54
|
+
queryByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement | null;
|
|
55
|
+
queryAllByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined) => HTMLElement[];
|
|
56
|
+
findByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
57
|
+
findAllByTestId: (id: import('@testing-library/react').Matcher, options?: import('@testing-library/react').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/react').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
58
|
+
};
|
|
4
59
|
export { renderCUI };
|