@uniformdev/design-system 20.20.3 → 20.23.0
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/esm/index.js +10 -3
- package/dist/index.js +10 -3
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -5109,6 +5109,7 @@ var InputKeywordSearch = forwardRef9(
|
|
|
5109
5109
|
onClear,
|
|
5110
5110
|
compact = false,
|
|
5111
5111
|
rounded = false,
|
|
5112
|
+
onKeyPress,
|
|
5112
5113
|
...props
|
|
5113
5114
|
}, ref) => {
|
|
5114
5115
|
const handleSearchTextChanged = (e) => {
|
|
@@ -5126,6 +5127,12 @@ var InputKeywordSearch = forwardRef9(
|
|
|
5126
5127
|
onSearchTextChanged("");
|
|
5127
5128
|
}
|
|
5128
5129
|
};
|
|
5130
|
+
const handleKeyPress = (e) => {
|
|
5131
|
+
if (onKeyPress) {
|
|
5132
|
+
onKeyPress(e);
|
|
5133
|
+
}
|
|
5134
|
+
preventSubmitOnField(e);
|
|
5135
|
+
};
|
|
5129
5136
|
return /* @__PURE__ */ jsx40(
|
|
5130
5137
|
Input,
|
|
5131
5138
|
{
|
|
@@ -5146,7 +5153,7 @@ var InputKeywordSearch = forwardRef9(
|
|
|
5146
5153
|
}
|
|
5147
5154
|
) : /* @__PURE__ */ jsx40(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
5148
5155
|
onChange: handleSearchTextChanged,
|
|
5149
|
-
onKeyPress:
|
|
5156
|
+
onKeyPress: handleKeyPress,
|
|
5150
5157
|
disabled: disabled2,
|
|
5151
5158
|
"aria-label": placeholder,
|
|
5152
5159
|
css: [
|
|
@@ -6500,7 +6507,7 @@ var ChipContainer = css45`
|
|
|
6500
6507
|
`;
|
|
6501
6508
|
var ChipText = css45`
|
|
6502
6509
|
align-self: center;
|
|
6503
|
-
line-height: 1.
|
|
6510
|
+
line-height: 1.2;
|
|
6504
6511
|
text-wrap: nowrap;
|
|
6505
6512
|
`;
|
|
6506
6513
|
var ChipIcon = css45`
|
|
@@ -11041,7 +11048,7 @@ var ObjectItemLoadingSkeleton = ({
|
|
|
11041
11048
|
showCover ? /* @__PURE__ */ jsx105("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ jsx105("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
|
|
11042
11049
|
/* @__PURE__ */ jsx105(VerticalRhythm, { css: ObjectListItemLoadingInner, justify: "space-between", gap: "sm", children: /* @__PURE__ */ jsxs70(VerticalRhythm, { gap: "xs", children: [
|
|
11043
11050
|
/* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ jsx105("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
|
|
11044
|
-
/* @__PURE__ */ jsx105("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
11051
|
+
renderAs === "single" ? null : /* @__PURE__ */ jsx105("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
11045
11052
|
] }) })
|
|
11046
11053
|
]
|
|
11047
11054
|
}
|
package/dist/index.js
CHANGED
|
@@ -6859,6 +6859,7 @@ var InputKeywordSearch = (0, import_react49.forwardRef)(
|
|
|
6859
6859
|
onClear,
|
|
6860
6860
|
compact = false,
|
|
6861
6861
|
rounded = false,
|
|
6862
|
+
onKeyPress,
|
|
6862
6863
|
...props
|
|
6863
6864
|
}, ref) => {
|
|
6864
6865
|
const handleSearchTextChanged = (e) => {
|
|
@@ -6876,6 +6877,12 @@ var InputKeywordSearch = (0, import_react49.forwardRef)(
|
|
|
6876
6877
|
onSearchTextChanged("");
|
|
6877
6878
|
}
|
|
6878
6879
|
};
|
|
6880
|
+
const handleKeyPress = (e) => {
|
|
6881
|
+
if (onKeyPress) {
|
|
6882
|
+
onKeyPress(e);
|
|
6883
|
+
}
|
|
6884
|
+
preventSubmitOnField(e);
|
|
6885
|
+
};
|
|
6879
6886
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6880
6887
|
Input,
|
|
6881
6888
|
{
|
|
@@ -6896,7 +6903,7 @@ var InputKeywordSearch = (0, import_react49.forwardRef)(
|
|
|
6896
6903
|
}
|
|
6897
6904
|
) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: import_CgSearch2.CgSearch, iconColor: "gray", size: "1rem" }),
|
|
6898
6905
|
onChange: handleSearchTextChanged,
|
|
6899
|
-
onKeyPress:
|
|
6906
|
+
onKeyPress: handleKeyPress,
|
|
6900
6907
|
disabled: disabled2,
|
|
6901
6908
|
"aria-label": placeholder,
|
|
6902
6909
|
css: [
|
|
@@ -8274,7 +8281,7 @@ var ChipContainer = import_react67.css`
|
|
|
8274
8281
|
`;
|
|
8275
8282
|
var ChipText = import_react67.css`
|
|
8276
8283
|
align-self: center;
|
|
8277
|
-
line-height: 1.
|
|
8284
|
+
line-height: 1.2;
|
|
8278
8285
|
text-wrap: nowrap;
|
|
8279
8286
|
`;
|
|
8280
8287
|
var ChipIcon = import_react67.css`
|
|
@@ -12917,7 +12924,7 @@ var ObjectItemLoadingSkeleton = ({
|
|
|
12917
12924
|
showCover ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { "data-testid": "object-list-item-cover-skeleton", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { role: "presentation", css: ObjectListItemLoadingImage }) }) : null,
|
|
12918
12925
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(VerticalRhythm, { css: ObjectListItemLoadingInner, justify: "space-between", gap: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(VerticalRhythm, { gap: "xs", children: [
|
|
12919
12926
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(HorizontalRhythm, { gap: "xs", align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { role: "presentation", css: ObjectListItemLoadingText("30ch") }) }),
|
|
12920
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
12927
|
+
renderAs === "single" ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { role: "presentation", css: ObjectListItemLoadingText("20ch") })
|
|
12921
12928
|
] }) })
|
|
12922
12929
|
]
|
|
12923
12930
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.23.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@storybook/theming": "^8.3.3",
|
|
39
39
|
"@types/react": "18.3.11",
|
|
40
40
|
"@types/react-dom": "18.3.1",
|
|
41
|
-
"@uniformdev/canvas": "^20.
|
|
42
|
-
"@uniformdev/richtext": "^20.
|
|
41
|
+
"@uniformdev/canvas": "^20.23.0",
|
|
42
|
+
"@uniformdev/richtext": "^20.23.0",
|
|
43
43
|
"@vitest/coverage-v8": "^3.1.2",
|
|
44
44
|
"autoprefixer": "10.4.21",
|
|
45
45
|
"hygen": "6.2.11",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "cc8a0ba91f036c7dea8d3a2dffad3373dec9cf2b"
|
|
95
95
|
}
|