@uniformdev/mesh-sdk-react 19.119.0 → 19.121.1-alpha.3
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/LICENSE.txt +1 -1
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.esm.js +24 -12
- package/dist/index.js +24 -12
- package/dist/index.mjs +24 -12
- package/package.json +5 -5
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
©
|
|
1
|
+
© 2024 Uniform Systems, Inc. All Rights Reserved.
|
|
2
2
|
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
package/dist/index.d.mts
CHANGED
|
@@ -1359,11 +1359,11 @@ type ObjectSearchListItemProps = SelectedItemProps & {
|
|
|
1359
1359
|
isMulti?: boolean;
|
|
1360
1360
|
/** sets disabled state to the interactive element */
|
|
1361
1361
|
disabled?: boolean;
|
|
1362
|
-
}
|
|
1362
|
+
} & React$1.HTMLAttributes<HTMLDivElement>;
|
|
1363
1363
|
/**
|
|
1364
1364
|
* @description entry search list item is an opinionated UI component best used for initial retrieved results
|
|
1365
1365
|
* @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem> */
|
|
1366
|
-
declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, }: ObjectSearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1366
|
+
declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, ...props }: ObjectSearchListItemProps & React$1.HTMLAttributes<HTMLDivElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1367
1367
|
/**
|
|
1368
1368
|
* An opinionated loading skeleton component best used with ObjectSearchListItem
|
|
1369
1369
|
* @example <ObjectSearchListItemLoadingSkeleton />
|
|
@@ -1415,6 +1415,8 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1415
1415
|
* @default 'Selected'
|
|
1416
1416
|
*/
|
|
1417
1417
|
resultLabelText?: string;
|
|
1418
|
+
/** sets and override react node replacing the whole HTML block for the result label and counter */
|
|
1419
|
+
resultLabelOverride?: ReactNode;
|
|
1418
1420
|
/** sets the on remove button click action */
|
|
1419
1421
|
onRemoveAllSelected?: () => void;
|
|
1420
1422
|
/** sets the remove button text
|
|
@@ -1426,9 +1428,9 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1426
1428
|
*/
|
|
1427
1429
|
hideRemoveButton?: boolean;
|
|
1428
1430
|
/** allows additional buttons to be added to the result title group */
|
|
1429
|
-
additionalButtons?:
|
|
1431
|
+
additionalButtons?: React__default.ReactNode;
|
|
1430
1432
|
/** allows placing child components within the result list area */
|
|
1431
|
-
renderResultComponent?: (value: TRenderComponent) =>
|
|
1433
|
+
renderResultComponent?: (value: TRenderComponent) => React__default.ReactNode;
|
|
1432
1434
|
/** disable or enable drag and drop functionality
|
|
1433
1435
|
* @default false
|
|
1434
1436
|
*/
|
|
@@ -1436,7 +1438,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1436
1438
|
/** sets the draggable id value */
|
|
1437
1439
|
multiSelectId?: string;
|
|
1438
1440
|
/** Rendered when nothing is selected */
|
|
1439
|
-
whenNothingSelected?:
|
|
1441
|
+
whenNothingSelected?: React__default.ReactNode;
|
|
1440
1442
|
/**
|
|
1441
1443
|
* Special case for re-parenting the drag and drop container in case of issues with "position: fixed" and "transform:
|
|
1442
1444
|
* You can read more about this here https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/reparenting.md
|
|
@@ -1450,7 +1452,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1450
1452
|
* maintain drag and drop functionality
|
|
1451
1453
|
* @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
|
|
1452
1454
|
*/
|
|
1453
|
-
declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1455
|
+
declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, resultLabelOverride, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1454
1456
|
|
|
1455
1457
|
type QueryFilterSearchProps = {
|
|
1456
1458
|
/** sets the count value */
|
package/dist/index.d.ts
CHANGED
|
@@ -1359,11 +1359,11 @@ type ObjectSearchListItemProps = SelectedItemProps & {
|
|
|
1359
1359
|
isMulti?: boolean;
|
|
1360
1360
|
/** sets disabled state to the interactive element */
|
|
1361
1361
|
disabled?: boolean;
|
|
1362
|
-
}
|
|
1362
|
+
} & React$1.HTMLAttributes<HTMLDivElement>;
|
|
1363
1363
|
/**
|
|
1364
1364
|
* @description entry search list item is an opinionated UI component best used for initial retrieved results
|
|
1365
1365
|
* @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem> */
|
|
1366
|
-
declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, }: ObjectSearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1366
|
+
declare const ObjectSearchListItem: ({ id, title, contentType, image, imageUrl, popoverData, onSelect, isMulti, disabled, children, ...props }: ObjectSearchListItemProps & React$1.HTMLAttributes<HTMLDivElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1367
1367
|
/**
|
|
1368
1368
|
* An opinionated loading skeleton component best used with ObjectSearchListItem
|
|
1369
1369
|
* @example <ObjectSearchListItemLoadingSkeleton />
|
|
@@ -1415,6 +1415,8 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1415
1415
|
* @default 'Selected'
|
|
1416
1416
|
*/
|
|
1417
1417
|
resultLabelText?: string;
|
|
1418
|
+
/** sets and override react node replacing the whole HTML block for the result label and counter */
|
|
1419
|
+
resultLabelOverride?: ReactNode;
|
|
1418
1420
|
/** sets the on remove button click action */
|
|
1419
1421
|
onRemoveAllSelected?: () => void;
|
|
1420
1422
|
/** sets the remove button text
|
|
@@ -1426,9 +1428,9 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1426
1428
|
*/
|
|
1427
1429
|
hideRemoveButton?: boolean;
|
|
1428
1430
|
/** allows additional buttons to be added to the result title group */
|
|
1429
|
-
additionalButtons?:
|
|
1431
|
+
additionalButtons?: React__default.ReactNode;
|
|
1430
1432
|
/** allows placing child components within the result list area */
|
|
1431
|
-
renderResultComponent?: (value: TRenderComponent) =>
|
|
1433
|
+
renderResultComponent?: (value: TRenderComponent) => React__default.ReactNode;
|
|
1432
1434
|
/** disable or enable drag and drop functionality
|
|
1433
1435
|
* @default false
|
|
1434
1436
|
*/
|
|
@@ -1436,7 +1438,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1436
1438
|
/** sets the draggable id value */
|
|
1437
1439
|
multiSelectId?: string;
|
|
1438
1440
|
/** Rendered when nothing is selected */
|
|
1439
|
-
whenNothingSelected?:
|
|
1441
|
+
whenNothingSelected?: React__default.ReactNode;
|
|
1440
1442
|
/**
|
|
1441
1443
|
* Special case for re-parenting the drag and drop container in case of issues with "position: fixed" and "transform:
|
|
1442
1444
|
* You can read more about this here https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/reparenting.md
|
|
@@ -1450,7 +1452,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
|
|
|
1450
1452
|
* maintain drag and drop functionality
|
|
1451
1453
|
* @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
|
|
1452
1454
|
*/
|
|
1453
|
-
declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1455
|
+
declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, resultLabelOverride, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1454
1456
|
|
|
1455
1457
|
type QueryFilterSearchProps = {
|
|
1456
1458
|
/** sets the count value */
|
package/dist/index.esm.js
CHANGED
|
@@ -4076,32 +4076,41 @@ var menuBtn2 = css21`
|
|
|
4076
4076
|
transform: translateY(-50%);
|
|
4077
4077
|
`;
|
|
4078
4078
|
var input = css21`
|
|
4079
|
+
--input-padding: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4079
4080
|
appearance: none;
|
|
4080
4081
|
background-color: var(--white);
|
|
4081
|
-
border: 1px solid var(--gray-
|
|
4082
|
+
border: 1px solid var(--gray-300);
|
|
4082
4083
|
border-radius: var(--rounded-sm);
|
|
4083
4084
|
color: var(--gray-700);
|
|
4084
|
-
padding
|
|
4085
|
-
|
|
4086
|
-
padding-right: var(--spacing-lg);
|
|
4087
|
-
line-height: 1.75;
|
|
4085
|
+
padding: var(--input-padding);
|
|
4086
|
+
min-height: 50px;
|
|
4088
4087
|
width: 100%;
|
|
4089
4088
|
position: relative;
|
|
4090
4089
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
4091
4090
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
4092
|
-
color var(--duration-fast) var(--timing-ease-out);
|
|
4091
|
+
color var(--duration-fast) var(--timing-ease-out), box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
4092
|
+
|
|
4093
|
+
&::placeholder {
|
|
4094
|
+
color: var(--gray-400);
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
&:hover {
|
|
4098
|
+
border-color: var(--accent-dark-hover);
|
|
4099
|
+
}
|
|
4093
4100
|
|
|
4101
|
+
&[data-focus='true'],
|
|
4094
4102
|
&:focus,
|
|
4095
4103
|
&:focus-within {
|
|
4096
|
-
border-color: var(--
|
|
4097
|
-
box-shadow:
|
|
4104
|
+
border-color: var(--accent-dark-active);
|
|
4105
|
+
box-shadow: var(--elevation-100);
|
|
4098
4106
|
outline: none;
|
|
4099
4107
|
}
|
|
4100
4108
|
|
|
4109
|
+
&[data-disabled='true'],
|
|
4101
4110
|
&:disabled,
|
|
4102
4111
|
&:disabled::placeholder {
|
|
4103
4112
|
cursor: not-allowed;
|
|
4104
|
-
color: var(--gray-
|
|
4113
|
+
color: var(--gray-300);
|
|
4105
4114
|
border-color: var(--gray-300);
|
|
4106
4115
|
}
|
|
4107
4116
|
|
|
@@ -6386,7 +6395,8 @@ var ObjectSearchListItem = ({
|
|
|
6386
6395
|
onSelect,
|
|
6387
6396
|
isMulti,
|
|
6388
6397
|
disabled,
|
|
6389
|
-
children
|
|
6398
|
+
children,
|
|
6399
|
+
...props
|
|
6390
6400
|
}) => {
|
|
6391
6401
|
const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
|
|
6392
6402
|
const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
|
|
@@ -6406,6 +6416,7 @@ var ObjectSearchListItem = ({
|
|
|
6406
6416
|
role: "listitem",
|
|
6407
6417
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6408
6418
|
"data-testid": "list-item",
|
|
6419
|
+
...props,
|
|
6409
6420
|
children: [
|
|
6410
6421
|
/* @__PURE__ */ jsxs34(
|
|
6411
6422
|
"div",
|
|
@@ -6840,6 +6851,7 @@ function ObjectSearchResultList({
|
|
|
6840
6851
|
removeButtonText = "Remove all",
|
|
6841
6852
|
onRemoveAllSelected,
|
|
6842
6853
|
hideRemoveButton = false,
|
|
6854
|
+
resultLabelOverride,
|
|
6843
6855
|
additionalButtons,
|
|
6844
6856
|
renderResultComponent = (value) => /* @__PURE__ */ jsx66(ObjectSearchResultItem, { ...value }),
|
|
6845
6857
|
multiSelectId,
|
|
@@ -6885,11 +6897,11 @@ function ObjectSearchResultList({
|
|
|
6885
6897
|
};
|
|
6886
6898
|
return /* @__PURE__ */ jsxs40(Fragment13, { children: [
|
|
6887
6899
|
/* @__PURE__ */ jsxs40("div", { role: "group", css: ObjectSearchResultListContainer, children: [
|
|
6888
|
-
/* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
6900
|
+
!resultLabelOverride ? /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
6889
6901
|
/* @__PURE__ */ jsx66("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
|
|
6890
6902
|
" ",
|
|
6891
6903
|
!selectedListItems.length ? null : /* @__PURE__ */ jsx66(Counter, { count: selectedListItems.length })
|
|
6892
|
-
] }),
|
|
6904
|
+
] }) : resultLabelOverride,
|
|
6893
6905
|
/* @__PURE__ */ jsxs40("div", { css: ObjectSearchResultListCounterContainer, children: [
|
|
6894
6906
|
additionalButtons,
|
|
6895
6907
|
hideRemoveButton ? null : /* @__PURE__ */ jsx66(
|
package/dist/index.js
CHANGED
|
@@ -4255,32 +4255,41 @@ var menuBtn2 = import_react42.css`
|
|
|
4255
4255
|
transform: translateY(-50%);
|
|
4256
4256
|
`;
|
|
4257
4257
|
var input = import_react42.css`
|
|
4258
|
+
--input-padding: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4258
4259
|
appearance: none;
|
|
4259
4260
|
background-color: var(--white);
|
|
4260
|
-
border: 1px solid var(--gray-
|
|
4261
|
+
border: 1px solid var(--gray-300);
|
|
4261
4262
|
border-radius: var(--rounded-sm);
|
|
4262
4263
|
color: var(--gray-700);
|
|
4263
|
-
padding
|
|
4264
|
-
|
|
4265
|
-
padding-right: var(--spacing-lg);
|
|
4266
|
-
line-height: 1.75;
|
|
4264
|
+
padding: var(--input-padding);
|
|
4265
|
+
min-height: 50px;
|
|
4267
4266
|
width: 100%;
|
|
4268
4267
|
position: relative;
|
|
4269
4268
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
4270
4269
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
4271
|
-
color var(--duration-fast) var(--timing-ease-out);
|
|
4270
|
+
color var(--duration-fast) var(--timing-ease-out), box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
4271
|
+
|
|
4272
|
+
&::placeholder {
|
|
4273
|
+
color: var(--gray-400);
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
&:hover {
|
|
4277
|
+
border-color: var(--accent-dark-hover);
|
|
4278
|
+
}
|
|
4272
4279
|
|
|
4280
|
+
&[data-focus='true'],
|
|
4273
4281
|
&:focus,
|
|
4274
4282
|
&:focus-within {
|
|
4275
|
-
border-color: var(--
|
|
4276
|
-
box-shadow:
|
|
4283
|
+
border-color: var(--accent-dark-active);
|
|
4284
|
+
box-shadow: var(--elevation-100);
|
|
4277
4285
|
outline: none;
|
|
4278
4286
|
}
|
|
4279
4287
|
|
|
4288
|
+
&[data-disabled='true'],
|
|
4280
4289
|
&:disabled,
|
|
4281
4290
|
&:disabled::placeholder {
|
|
4282
4291
|
cursor: not-allowed;
|
|
4283
|
-
color: var(--gray-
|
|
4292
|
+
color: var(--gray-300);
|
|
4284
4293
|
border-color: var(--gray-300);
|
|
4285
4294
|
}
|
|
4286
4295
|
|
|
@@ -6518,7 +6527,8 @@ var ObjectSearchListItem = ({
|
|
|
6518
6527
|
onSelect,
|
|
6519
6528
|
isMulti,
|
|
6520
6529
|
disabled,
|
|
6521
|
-
children
|
|
6530
|
+
children,
|
|
6531
|
+
...props
|
|
6522
6532
|
}) => {
|
|
6523
6533
|
const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
|
|
6524
6534
|
const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
|
|
@@ -6538,6 +6548,7 @@ var ObjectSearchListItem = ({
|
|
|
6538
6548
|
role: "listitem",
|
|
6539
6549
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6540
6550
|
"data-testid": "list-item",
|
|
6551
|
+
...props,
|
|
6541
6552
|
children: [
|
|
6542
6553
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
6543
6554
|
"div",
|
|
@@ -6972,6 +6983,7 @@ function ObjectSearchResultList({
|
|
|
6972
6983
|
removeButtonText = "Remove all",
|
|
6973
6984
|
onRemoveAllSelected,
|
|
6974
6985
|
hideRemoveButton = false,
|
|
6986
|
+
resultLabelOverride,
|
|
6975
6987
|
additionalButtons,
|
|
6976
6988
|
renderResultComponent = (value) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ObjectSearchResultItem, { ...value }),
|
|
6977
6989
|
multiSelectId,
|
|
@@ -7017,11 +7029,11 @@ function ObjectSearchResultList({
|
|
|
7017
7029
|
};
|
|
7018
7030
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
7019
7031
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "group", css: ObjectSearchResultListContainer, children: [
|
|
7020
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
7032
|
+
!resultLabelOverride ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
7021
7033
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
|
|
7022
7034
|
" ",
|
|
7023
7035
|
!selectedListItems.length ? null : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_design_system39.Counter, { count: selectedListItems.length })
|
|
7024
|
-
] }),
|
|
7036
|
+
] }) : resultLabelOverride,
|
|
7025
7037
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { css: ObjectSearchResultListCounterContainer, children: [
|
|
7026
7038
|
additionalButtons,
|
|
7027
7039
|
hideRemoveButton ? null : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -4076,32 +4076,41 @@ var menuBtn2 = css21`
|
|
|
4076
4076
|
transform: translateY(-50%);
|
|
4077
4077
|
`;
|
|
4078
4078
|
var input = css21`
|
|
4079
|
+
--input-padding: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
4079
4080
|
appearance: none;
|
|
4080
4081
|
background-color: var(--white);
|
|
4081
|
-
border: 1px solid var(--gray-
|
|
4082
|
+
border: 1px solid var(--gray-300);
|
|
4082
4083
|
border-radius: var(--rounded-sm);
|
|
4083
4084
|
color: var(--gray-700);
|
|
4084
|
-
padding
|
|
4085
|
-
|
|
4086
|
-
padding-right: var(--spacing-lg);
|
|
4087
|
-
line-height: 1.75;
|
|
4085
|
+
padding: var(--input-padding);
|
|
4086
|
+
min-height: 50px;
|
|
4088
4087
|
width: 100%;
|
|
4089
4088
|
position: relative;
|
|
4090
4089
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
4091
4090
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
4092
|
-
color var(--duration-fast) var(--timing-ease-out);
|
|
4091
|
+
color var(--duration-fast) var(--timing-ease-out), box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
4092
|
+
|
|
4093
|
+
&::placeholder {
|
|
4094
|
+
color: var(--gray-400);
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
&:hover {
|
|
4098
|
+
border-color: var(--accent-dark-hover);
|
|
4099
|
+
}
|
|
4093
4100
|
|
|
4101
|
+
&[data-focus='true'],
|
|
4094
4102
|
&:focus,
|
|
4095
4103
|
&:focus-within {
|
|
4096
|
-
border-color: var(--
|
|
4097
|
-
box-shadow:
|
|
4104
|
+
border-color: var(--accent-dark-active);
|
|
4105
|
+
box-shadow: var(--elevation-100);
|
|
4098
4106
|
outline: none;
|
|
4099
4107
|
}
|
|
4100
4108
|
|
|
4109
|
+
&[data-disabled='true'],
|
|
4101
4110
|
&:disabled,
|
|
4102
4111
|
&:disabled::placeholder {
|
|
4103
4112
|
cursor: not-allowed;
|
|
4104
|
-
color: var(--gray-
|
|
4113
|
+
color: var(--gray-300);
|
|
4105
4114
|
border-color: var(--gray-300);
|
|
4106
4115
|
}
|
|
4107
4116
|
|
|
@@ -6386,7 +6395,8 @@ var ObjectSearchListItem = ({
|
|
|
6386
6395
|
onSelect,
|
|
6387
6396
|
isMulti,
|
|
6388
6397
|
disabled,
|
|
6389
|
-
children
|
|
6398
|
+
children,
|
|
6399
|
+
...props
|
|
6390
6400
|
}) => {
|
|
6391
6401
|
const { onSelectItem, selectedListItems, isMulti: globalIsMulti } = useObjectSearchContext();
|
|
6392
6402
|
const formatedContentType = Array.isArray(contentType) ? contentType.join(", ") : contentType;
|
|
@@ -6406,6 +6416,7 @@ var ObjectSearchListItem = ({
|
|
|
6406
6416
|
role: "listitem",
|
|
6407
6417
|
css: [ObjectListItemContainer, disabled ? ObjectListItemContainerDisabled : void 0],
|
|
6408
6418
|
"data-testid": "list-item",
|
|
6419
|
+
...props,
|
|
6409
6420
|
children: [
|
|
6410
6421
|
/* @__PURE__ */ jsxs34(
|
|
6411
6422
|
"div",
|
|
@@ -6840,6 +6851,7 @@ function ObjectSearchResultList({
|
|
|
6840
6851
|
removeButtonText = "Remove all",
|
|
6841
6852
|
onRemoveAllSelected,
|
|
6842
6853
|
hideRemoveButton = false,
|
|
6854
|
+
resultLabelOverride,
|
|
6843
6855
|
additionalButtons,
|
|
6844
6856
|
renderResultComponent = (value) => /* @__PURE__ */ jsx66(ObjectSearchResultItem, { ...value }),
|
|
6845
6857
|
multiSelectId,
|
|
@@ -6885,11 +6897,11 @@ function ObjectSearchResultList({
|
|
|
6885
6897
|
};
|
|
6886
6898
|
return /* @__PURE__ */ jsxs40(Fragment13, { children: [
|
|
6887
6899
|
/* @__PURE__ */ jsxs40("div", { role: "group", css: ObjectSearchResultListContainer, children: [
|
|
6888
|
-
/* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
6900
|
+
!resultLabelOverride ? /* @__PURE__ */ jsxs40("div", { role: "note", css: ObjectSearchResultListCounterContainer, children: [
|
|
6889
6901
|
/* @__PURE__ */ jsx66("span", { css: ObjectSearchResultListTitle, children: resultLabelText }),
|
|
6890
6902
|
" ",
|
|
6891
6903
|
!selectedListItems.length ? null : /* @__PURE__ */ jsx66(Counter, { count: selectedListItems.length })
|
|
6892
|
-
] }),
|
|
6904
|
+
] }) : resultLabelOverride,
|
|
6893
6905
|
/* @__PURE__ */ jsxs40("div", { css: ObjectSearchResultListCounterContainer, children: [
|
|
6894
6906
|
additionalButtons,
|
|
6895
6907
|
hideRemoveButton ? null : /* @__PURE__ */ jsx66(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.121.1-alpha.3+7d8c709610",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@lexical/selection": "^0.12.0",
|
|
51
51
|
"@lexical/utils": "^0.12.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
53
|
-
"@uniformdev/canvas": "19.
|
|
54
|
-
"@uniformdev/design-system": "19.
|
|
55
|
-
"@uniformdev/mesh-sdk": "19.
|
|
53
|
+
"@uniformdev/canvas": "19.121.1-alpha.3+7d8c709610",
|
|
54
|
+
"@uniformdev/design-system": "19.121.1-alpha.3+7d8c709610",
|
|
55
|
+
"@uniformdev/mesh-sdk": "19.121.1-alpha.3+7d8c709610",
|
|
56
56
|
"dequal": "^2.0.3",
|
|
57
57
|
"lexical": "^0.12.0",
|
|
58
58
|
"mitt": "^3.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "7d8c70961033e6ec47b7f8874b5e49b224367cf5"
|
|
90
90
|
}
|