imbric-theme 1.0.7 → 1.0.8
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/index.js
CHANGED
@@ -56,7 +56,7 @@ export { default as ColumnTable } from './molecules/ColumnTable'
|
|
56
56
|
export { default as RowTable } from './molecules/RowTable'
|
57
57
|
export { default as FooterTable } from './molecules/FooterTable'
|
58
58
|
export { default as DynamicSelect } from './molecules/DynamicSelect'
|
59
|
-
export { default as DatePicker } from './molecules/
|
59
|
+
export { default as DatePicker } from './molecules/DatePicker'
|
60
60
|
export { default as CardDefault } from './molecules/CardDefault'
|
61
61
|
export { default as Tabs } from './molecules/Tabs'
|
62
62
|
export { default as DatePickerTime } from './molecules/DatePickerTime'
|
@@ -100,14 +100,30 @@ export const ColumnTable = ({ getStyles, handleSorting, columnUppercase, onChang
|
|
100
100
|
{props.viewIsFilter ? (
|
101
101
|
|
102
102
|
props.typeFilter === 'select' ?
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
103
|
+
|
104
|
+
|
105
|
+
props.opSelectSecundary ?
|
106
|
+
|
107
|
+
<DynamicSelect
|
108
|
+
isInline
|
109
|
+
// onChange={item => useStateDate([item.selection])}
|
110
|
+
onChange={item => { onChangeSelect(item, props.idInput) }}
|
111
|
+
optionsSelect={props.optionsSelect}
|
112
|
+
placeholder={props.placeholder}
|
113
|
+
maxMenuHeight={110}
|
114
|
+
/>
|
115
|
+
|
116
|
+
:
|
117
|
+
|
118
|
+
<DynamicSelect
|
119
|
+
isInline
|
120
|
+
// onChange={item => useStateDate([item.selection])}
|
121
|
+
onChange={item => { onChangeSelect(item, props.idInput) }}
|
122
|
+
optionsSelect={opSelect || props.optionsSelect}
|
123
|
+
placeholder={props.placeholder}
|
124
|
+
maxMenuHeight={110}
|
125
|
+
/>
|
126
|
+
|
111
127
|
:
|
112
128
|
<Input
|
113
129
|
isInputFilter
|
@@ -63,7 +63,9 @@ export const DynamicSelect = ({
|
|
63
63
|
hideSelectedOptions,
|
64
64
|
menuPlacement,
|
65
65
|
getOptionValue,
|
66
|
-
getOptionLabel
|
66
|
+
getOptionLabel,
|
67
|
+
isMaxContent,
|
68
|
+
id,
|
67
69
|
}) => {
|
68
70
|
|
69
71
|
|
@@ -87,7 +89,8 @@ export const DynamicSelect = ({
|
|
87
89
|
control: (base, state) => ({
|
88
90
|
...base,
|
89
91
|
cursor: 'pointer',
|
90
|
-
width: '100%',
|
92
|
+
width: isMaxContent ? 'max-content' : '100%',
|
93
|
+
flexWrap: 'nowrap',
|
91
94
|
borderRadius: 0,
|
92
95
|
border: 'var(--border-width-thin) solid var(--color-brand-white-lilac)',
|
93
96
|
// border: state.isFocused ? "var(--border-width-thin) solid var(--color-brand-white-lilac)" : "var(--border-width-thin) solid var(--color-brand-white-lilac)",
|
@@ -170,6 +173,7 @@ export const DynamicSelect = ({
|
|
170
173
|
|
171
174
|
{sortableMultiSelect ?
|
172
175
|
<SortableSelect
|
176
|
+
id={id}
|
173
177
|
useDragHandle
|
174
178
|
// react-sortable-hoc props:
|
175
179
|
axis="xy"
|
@@ -204,6 +208,7 @@ export const DynamicSelect = ({
|
|
204
208
|
/>
|
205
209
|
:
|
206
210
|
<Select
|
211
|
+
id={id}
|
207
212
|
name="basic"
|
208
213
|
// className="basic-single"
|
209
214
|
// classNamePrefix="select"
|
@@ -283,6 +288,7 @@ DynamicSelect.defaultProps = {
|
|
283
288
|
sortableMultiSelect: false,
|
284
289
|
hideSelectedOptions: true,
|
285
290
|
menuPlacement: 'auto',
|
291
|
+
isMaxContent: false,
|
286
292
|
// getOptionValue: () => { option => option.value },
|
287
293
|
// getOptionLabel: () => { option => option.label },
|
288
294
|
}
|