forstok-ui-lib 6.6.7 → 6.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "6.6.7",
3
+ "version": "6.7.1",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -2978,6 +2978,17 @@ const listTableStyles = {
2978
2978
  }
2979
2979
  }
2980
2980
  `,
2981
+ 'listing-nocheck': css`
2982
+ ${ItemTable} {
2983
+ grid-template-columns: var(--item) minmax(auto, max-content) minmax(88px, auto);
2984
+ &[role=rowheader] > div[role=group],
2985
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2986
+ ._refCollapse > div:not(._refCollapseContainer),
2987
+ ._refCollapseContainer > div {
2988
+ grid-template-columns: var(--variant) var(--sku) var(--sku) minmax(95px, 115px) var(--price) var(--status-small);
2989
+ }
2990
+ }
2991
+ `,
2981
2992
  quantity: css`
2982
2993
  overflow: hidden;
2983
2994
  > div {
@@ -138,7 +138,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
138
138
  }
139
139
  } else {
140
140
  const newValue = value as OnChangeValue<TOption, false>;
141
- mode === 'paymentReceiveStore' ? setValue(newValue ? { value: newValue.value, label : newValue.label, channel: newValue.channel } : newValue) : setValue(newValue ? { value: newValue.value, label : newValue.label } : newValue);
141
+ mode === 'paymentReceiveStore' ? setValue(newValue ? { value: newValue.value, label : newValue.label, channel: newValue.channel } : newValue) : (customLabel ? setValue(newValue ? { value: newValue.value, label : newValue.label, name : newValue.name } : newValue) : setValue(newValue ? { value: newValue.value, label : newValue.label } : newValue) );
142
142
  evChange && evChange(newValue, { action, removedValue, option });
143
143
  }
144
144
  (!isMulti && isField && evChangeCustom && name) && evChangeCustom(name, value);
@@ -268,8 +268,9 @@ export type TStateCallback<TData> = DispatchWithCallback<React.SetStateAction<TD
268
268
  export type ModeListTableColumn =
269
269
  | 'item'
270
270
  | 'item-nocheck'
271
- | 'listing'
272
271
  | 'quantity'
272
+ | 'listing'
273
+ | 'listing-nocheck'
273
274
  | 'picklist'
274
275
  | 'package'
275
276
  | 'shipment'