imbric-theme 1.0.6 → 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.
@@ -38,6 +38,8 @@ export const Modal = ({
38
38
  titleModal,
39
39
  isFullWidth,
40
40
  isFullWidthSoft,
41
+ onClickTitle,
42
+ isClickTitle,
41
43
  }) => {
42
44
  const isDesktop = useMedia(['(min-width: 992px)'], [true])
43
45
  const [onFadeOut, setOnFadeOut] = useState(false)
@@ -77,9 +79,25 @@ export const Modal = ({
77
79
  })}
78
80
  />
79
81
  )}
80
- <Heading color='black' size='lg' weight='light'>
81
- {titleModal}
82
- </Heading>
82
+
83
+ {isClickTitle ?
84
+
85
+ <span style={{ cursor: 'pointer', textDecoration: 'underline', color: 'var(--color-primary)' }} onClick={onClickTitle}>
86
+ <Heading color='primary' size='lg' weight='light'>
87
+ {titleModal}
88
+ </Heading>
89
+ </span>
90
+
91
+ :
92
+
93
+ <Heading color='black' size='lg' weight='light'>
94
+ {titleModal}
95
+ </Heading>
96
+
97
+ }
98
+
99
+
100
+
83
101
  </div>
84
102
 
85
103
  {isFullWidth ?
@@ -108,6 +126,7 @@ Modal.propTypes = {
108
126
  isFullWidth: PropTypes.bool,
109
127
  isFullWidthSoft: PropTypes.bool,
110
128
  titleModal: PropTypes.string,
129
+ isClickTitle: PropTypes.bool,
111
130
  }
112
131
 
113
132
  Modal.defaultProps = {
@@ -115,7 +134,8 @@ Modal.defaultProps = {
115
134
  type: 'primary',
116
135
  titleModal: 'Ejemplo titulo',
117
136
  isFullWidth: false,
118
- isFullWidthSoft: false
137
+ isFullWidthSoft: false,
138
+ isClickTitle: false
119
139
  }
120
140
 
121
141
  export default withStyles(styles)(Modal)
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/DynamicSelect'
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
- <DynamicSelect
104
- isInline
105
- // onChange={item => useStateDate([item.selection])}
106
- onChange={item => { onChangeSelect(item, props.idInput) }}
107
- optionsSelect={opSelect || props.optionsSelect}
108
- placeholder={props.placeholder}
109
- maxMenuHeight={110}
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
@@ -61,7 +61,11 @@ export const DynamicSelect = ({
61
61
  onSortEnd,
62
62
  formatGroupLabel,
63
63
  hideSelectedOptions,
64
- menuPlacement
64
+ menuPlacement,
65
+ getOptionValue,
66
+ getOptionLabel,
67
+ isMaxContent,
68
+ id,
65
69
  }) => {
66
70
 
67
71
 
@@ -85,7 +89,8 @@ export const DynamicSelect = ({
85
89
  control: (base, state) => ({
86
90
  ...base,
87
91
  cursor: 'pointer',
88
- width: '100%',
92
+ width: isMaxContent ? 'max-content' : '100%',
93
+ flexWrap: 'nowrap',
89
94
  borderRadius: 0,
90
95
  border: 'var(--border-width-thin) solid var(--color-brand-white-lilac)',
91
96
  // border: state.isFocused ? "var(--border-width-thin) solid var(--color-brand-white-lilac)" : "var(--border-width-thin) solid var(--color-brand-white-lilac)",
@@ -168,6 +173,7 @@ export const DynamicSelect = ({
168
173
 
169
174
  {sortableMultiSelect ?
170
175
  <SortableSelect
176
+ id={id}
171
177
  useDragHandle
172
178
  // react-sortable-hoc props:
173
179
  axis="xy"
@@ -197,9 +203,12 @@ export const DynamicSelect = ({
197
203
  menuPosition='fixed'
198
204
  formatGroupLabel={formatGroupLabel}
199
205
  hideSelectedOptions={hideSelectedOptions}
206
+ getOptionValue={getOptionValue}
207
+ getOptionLabel={getOptionLabel}
200
208
  />
201
209
  :
202
210
  <Select
211
+ id={id}
203
212
  name="basic"
204
213
  // className="basic-single"
205
214
  // classNamePrefix="select"
@@ -225,6 +234,8 @@ export const DynamicSelect = ({
225
234
  menuPosition='fixed'
226
235
  formatGroupLabel={formatGroupLabel}
227
236
  hideSelectedOptions={hideSelectedOptions}
237
+ getOptionValue={getOptionValue}
238
+ getOptionLabel={getOptionLabel}
228
239
  />}
229
240
 
230
241
 
@@ -254,6 +265,8 @@ DynamicSelect.propTypes = {
254
265
  sortableMultiSelect: PropTypes.bool,
255
266
  hideSelectedOptions: PropTypes.bool,
256
267
  menuPlacement: PropTypes.string,
268
+ getOptionValue: PropTypes.func,
269
+ getOptionLabel: PropTypes.func,
257
270
  }
258
271
 
259
272
  DynamicSelect.defaultProps = {
@@ -274,7 +287,10 @@ DynamicSelect.defaultProps = {
274
287
  instanceId: '',
275
288
  sortableMultiSelect: false,
276
289
  hideSelectedOptions: true,
277
- menuPlacement: 'auto'
290
+ menuPlacement: 'auto',
291
+ isMaxContent: false,
292
+ // getOptionValue: () => { option => option.value },
293
+ // getOptionLabel: () => { option => option.label },
278
294
  }
279
295
 
280
296
  export default withStyles(styles)(DynamicSelect)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",
package/styles/tagos.css CHANGED
@@ -267,7 +267,7 @@
267
267
  --spacing-md: 20;
268
268
  --spacing-lg: 40;
269
269
 
270
- --font-family-sans: 'Lato', Arial, sans-serif;
270
+ --font-family-sans: 'Exo', 'Open Sans', sans-serif;
271
271
  --font-family-mono: 'Roboto Mono', 'Courier New', monospace;
272
272
 
273
273
  --font-size-mini: 12px;