imbric-theme 1.0.2 → 1.0.4
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/atoms/Input/Input.js
    CHANGED
    
    | @@ -164,24 +164,24 @@ export const Input = ({ | |
| 164 164 | 
             
                      : isOpenModal
         | 
| 165 165 |  | 
| 166 166 | 
             
                        ?
         | 
| 167 | 
            -
                        <div  | 
| 168 | 
            -
                          <div  | 
| 169 | 
            -
                            <div style={{ zIndex: 1 }}  | 
| 170 | 
            -
                              <div onClick={(op) => onClickModal(op, id)} style={{ height: '36px' }}  | 
| 171 | 
            -
                                <div  | 
| 167 | 
            +
                        <div className={getStyles('DynamicSelect_dynamic-select__oduOS')}>
         | 
| 168 | 
            +
                          <div className={getStyles('css-1mfv3n-container')}>
         | 
| 169 | 
            +
                            <div style={{ zIndex: 1 }} className={getStyles('css-mlo5or-control')}>
         | 
| 170 | 
            +
                              <div onClick={(op) => onClickModal(op, id)} style={{ height: '36px' }} className={getStyles('css-1huup54-ValueContainer')}>
         | 
| 171 | 
            +
                                <div className={getStyles('css-qc6sy-singleValue')}>{value}</div>
         | 
| 172 172 | 
             
                              </div>
         | 
| 173 | 
            -
                              <div  | 
| 173 | 
            +
                              <div className={getStyles('css-1hb7zxy-IndicatorsContainer')}>
         | 
| 174 174 |  | 
| 175 175 |  | 
| 176 | 
            -
                                {value !== '' ? <div onClick={(op) => onClickDeleteInput(op, id)}  | 
| 177 | 
            -
                                  <svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false"  | 
| 176 | 
            +
                                {value !== '' ? <div onClick={(op) => onClickDeleteInput(op, id)} className={getStyles('css-tlfecz-indicatorContainer')} aria-hidden="true">
         | 
| 177 | 
            +
                                  <svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" className={getStyles('css-tj5bde-Svg')} >
         | 
| 178 178 | 
             
                                    <path d="M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"></path>
         | 
| 179 179 | 
             
                                  </svg>
         | 
| 180 180 | 
             
                                </div> : null}
         | 
| 181 | 
            -
                                <span  | 
| 181 | 
            +
                                <span className={getStyles('css-1okebmr-indicatorSeparator')}>
         | 
| 182 182 | 
             
                                </span>
         | 
| 183 | 
            -
                                <div onClick={(op) => onClickModal(op, id)}  | 
| 184 | 
            -
                                  <svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false"  | 
| 183 | 
            +
                                <div onClick={(op) => onClickModal(op, id)} className={getStyles('css-tlfecz-indicatorContainer')} aria-hidden="true">
         | 
| 184 | 
            +
                                  <svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" className={getStyles('css-tj5bde-Svg')}>
         | 
| 185 185 | 
             
                                    <path
         | 
| 186 186 | 
             
                                      fillRule="evenodd"
         | 
| 187 187 | 
             
                                      clipRule="evenodd"
         | 
| @@ -22,6 +22,7 @@ export const DynamicTable = ({ | |
| 22 22 | 
             
              opColumns,
         | 
| 23 23 | 
             
              opAddColumns,
         | 
| 24 24 | 
             
              opFilterTable,
         | 
| 25 | 
            +
              opFilterSecondaryTable,
         | 
| 25 26 | 
             
              isLayoutDate,
         | 
| 26 27 | 
             
              isViewRange,
         | 
| 27 28 | 
             
              isViewRangeSecundary,
         | 
| @@ -29,6 +30,7 @@ export const DynamicTable = ({ | |
| 29 30 | 
             
              isViewTitleTableSecundary,
         | 
| 30 31 | 
             
              isViewAddColumn,
         | 
| 31 32 | 
             
              isViewFilterTable,
         | 
| 33 | 
            +
              isViewFilterSecondaryTable,
         | 
| 32 34 | 
             
              isViewBtn,
         | 
| 33 35 | 
             
              isViewLeftBtn,
         | 
| 34 36 | 
             
              isViewLeftBtnSecondary,
         | 
| @@ -45,17 +47,22 @@ export const DynamicTable = ({ | |
| 45 47 | 
             
              handleBtnTertiary,
         | 
| 46 48 | 
             
              handleAddColumn,
         | 
| 47 49 | 
             
              handleFilterTable,
         | 
| 50 | 
            +
              handleFilterSecondaryTable,
         | 
| 48 51 | 
             
              handleSelectRange,
         | 
| 49 52 | 
             
              handleSelectRangeSecundary,
         | 
| 50 53 | 
             
              handleDownloadExcel,
         | 
| 51 54 | 
             
              handleDefaultValue,
         | 
| 52 55 | 
             
              handleDefaultValueFilter,
         | 
| 56 | 
            +
              handleDefaultValueFilterSecondary,
         | 
| 53 57 | 
             
              labelDinamicSelect,
         | 
| 54 58 | 
             
              placeholderDinamicSelect,
         | 
| 55 59 | 
             
              isLoadingDinamicSelect,
         | 
| 56 60 | 
             
              labelDinamicSelectFilter,
         | 
| 57 61 | 
             
              placeholderDinamicSelectFilter,
         | 
| 58 62 | 
             
              isLoadingDinamicSelectFilter,
         | 
| 63 | 
            +
              labelDinamicSelectFilterSecondary,
         | 
| 64 | 
            +
              placeholderDinamicSelectFilterSecondary,
         | 
| 65 | 
            +
              isLoadingDinamicSelectFilterSecondary,
         | 
| 59 66 | 
             
              labelSinceDateRange,
         | 
| 60 67 | 
             
              labelTillDateRange,
         | 
| 61 68 | 
             
              labelSinceDateRangeSecundary,
         | 
| @@ -66,10 +73,11 @@ export const DynamicTable = ({ | |
| 66 73 | 
             
              handleChangeCheckboxDate,
         | 
| 67 74 | 
             
            }) => {
         | 
| 68 75 |  | 
| 69 | 
            -
              const [tableData, setTableData] = useState(optionsData) | 
| 70 | 
            -
              const [columnsData, setColumnsData] = useState(opColumns) | 
| 71 | 
            -
              const [addColumsData, setAddColumsData] = useState(opAddColumns) | 
| 72 | 
            -
              const [filterTableData, setFilterTableData] = useState(opFilterTable) | 
| 76 | 
            +
              const [tableData, setTableData] = useState(optionsData)
         | 
| 77 | 
            +
              const [columnsData, setColumnsData] = useState(opColumns)
         | 
| 78 | 
            +
              const [addColumsData, setAddColumsData] = useState(opAddColumns)
         | 
| 79 | 
            +
              const [filterTableData, setFilterTableData] = useState(opFilterTable)
         | 
| 80 | 
            +
              const [filterSecondaryTableData, setFilterSecondaryTableData] = useState(opFilterSecondaryTable)
         | 
| 73 81 |  | 
| 74 82 |  | 
| 75 83 | 
             
              // STATE TOOLTIP
         | 
| @@ -143,11 +151,16 @@ export const DynamicTable = ({ | |
| 143 151 | 
             
                    ) : null}
         | 
| 144 152 |  | 
| 145 153 | 
             
                    {isViewTitleTableSecundary ? (
         | 
| 146 | 
            -
                      <div className={getStyles('opFunctionBox1')}>
         | 
| 147 154 |  | 
| 148 | 
            -
             | 
| 155 | 
            +
                      <>
         | 
| 156 | 
            +
                        <div className={getStyles('opFunctionBox1')}>
         | 
| 149 157 |  | 
| 150 | 
            -
             | 
| 158 | 
            +
                          <Paragraph weight="semibold" size="md">{titleHeadingTableSecundary}</Paragraph>
         | 
| 159 | 
            +
             | 
| 160 | 
            +
                        </div>
         | 
| 161 | 
            +
             | 
| 162 | 
            +
                        <Horizontal size="sm" />
         | 
| 163 | 
            +
                      </>
         | 
| 151 164 | 
             
                    ) : null}
         | 
| 152 165 |  | 
| 153 166 |  | 
| @@ -288,6 +301,36 @@ export const DynamicTable = ({ | |
| 288 301 | 
             
                      </>
         | 
| 289 302 | 
             
                    ) : null}
         | 
| 290 303 |  | 
| 304 | 
            +
             | 
| 305 | 
            +
                    {isViewFilterSecondaryTable ? (
         | 
| 306 | 
            +
             | 
| 307 | 
            +
                      <>
         | 
| 308 | 
            +
                        <div className={getStyles('opFunctionBox3')}>
         | 
| 309 | 
            +
                          <Label>{labelDinamicSelectFilterSecondary}</Label>
         | 
| 310 | 
            +
             | 
| 311 | 
            +
                          {isLoadingDinamicSelectFilterSecondary ?
         | 
| 312 | 
            +
                            <DynamicSelect
         | 
| 313 | 
            +
                              isInline
         | 
| 314 | 
            +
                              onChange={handleFilterSecondaryTable}
         | 
| 315 | 
            +
                              optionsSelect={filterSecondaryTableData}
         | 
| 316 | 
            +
                              placeholder={placeholderDinamicSelectFilterSecondary}
         | 
| 317 | 
            +
                              defaultValue={handleDefaultValueFilterSecondary}
         | 
| 318 | 
            +
                              closeMenuOnSelect={false}
         | 
| 319 | 
            +
                              isClearable={false}
         | 
| 320 | 
            +
                              instanceId={'idFilterSecondaryTableAll'}
         | 
| 321 | 
            +
                            // defaultValue= { [{value: 'id', label: 'ID'}, {value: 'idService', label: 'ID Reserva'}] }
         | 
| 322 | 
            +
                            /> : null
         | 
| 323 | 
            +
                          }
         | 
| 324 | 
            +
             | 
| 325 | 
            +
                        </div>
         | 
| 326 | 
            +
             | 
| 327 | 
            +
                        <Horizontal size="xs" />
         | 
| 328 | 
            +
             | 
| 329 | 
            +
                      </>
         | 
| 330 | 
            +
                    ) : null}
         | 
| 331 | 
            +
             | 
| 332 | 
            +
             | 
| 333 | 
            +
             | 
| 291 334 | 
             
                    {isViewAddColumn ? (
         | 
| 292 335 |  | 
| 293 336 | 
             
                      <>
         | 
| @@ -393,12 +436,14 @@ DynamicTable.propTypes = { | |
| 393 436 | 
             
              isViewTitleTableSecundary: PropTypes.bool,
         | 
| 394 437 | 
             
              isViewAddColumn: PropTypes.bool,
         | 
| 395 438 | 
             
              isViewFilterTable: PropTypes.bool,
         | 
| 439 | 
            +
              isViewFilterSecondaryTable: PropTypes.bool,
         | 
| 396 440 | 
             
              isViewDownloadDoc: PropTypes.bool,
         | 
| 397 441 | 
             
              isViewBtn: PropTypes.bool,
         | 
| 398 442 | 
             
              isViewLeftBtn: PropTypes.bool,
         | 
| 399 443 | 
             
              onChangeInput: PropTypes.func,
         | 
| 400 444 | 
             
              handleAddColumn: PropTypes.func,
         | 
| 401 445 | 
             
              handleFilterTable: PropTypes.func,
         | 
| 446 | 
            +
              handleFilterSecondaryTable: PropTypes.func,
         | 
| 402 447 | 
             
              isError: PropTypes.string,
         | 
| 403 448 | 
             
              isLayoutDate: PropTypes.string,
         | 
| 404 449 | 
             
              handleSelectRange: PropTypes.func,
         | 
| @@ -407,7 +452,9 @@ DynamicTable.propTypes = { | |
| 407 452 | 
             
              labelDinamicSelect: PropTypes.string,
         | 
| 408 453 | 
             
              placeholderDinamicSelect: PropTypes.string,
         | 
| 409 454 | 
             
              labelDinamicSelectFilter: PropTypes.string,
         | 
| 455 | 
            +
              labelDinamicSelectFilterSecondary: PropTypes.string,
         | 
| 410 456 | 
             
              placeholderDinamicSelectFilter: PropTypes.string,
         | 
| 457 | 
            +
              placeholderDinamicSelectFilterSecondary: PropTypes.string,
         | 
| 411 458 | 
             
              labelSinceDateRange: PropTypes.string,
         | 
| 412 459 | 
             
              labelTillDateRange: PropTypes.string,
         | 
| 413 460 | 
             
              labelSinceDateRangeSecundary: PropTypes.string,
         | 
| @@ -432,12 +479,14 @@ DynamicTable.defaultProps = { | |
| 432 479 | 
             
              getStyles: () => { },
         | 
| 433 480 | 
             
              handleAddColumn: () => { },
         | 
| 434 481 | 
             
              handleFilterTable: () => { },
         | 
| 482 | 
            +
              handleFilterSecondaryTable: () => { },
         | 
| 435 483 | 
             
              isViewRange: true,
         | 
| 436 484 | 
             
              isViewRangeSecundary: false,
         | 
| 437 485 | 
             
              isViewTitleTable: false,
         | 
| 438 486 | 
             
              isViewTitleTableSecundary: false,
         | 
| 439 487 | 
             
              isViewAddColumn: true,
         | 
| 440 488 | 
             
              isViewFilterTable: false,
         | 
| 489 | 
            +
              isViewFilterSecondaryTable: false,
         | 
| 441 490 | 
             
              isViewDownloadDoc: true,
         | 
| 442 491 | 
             
              isViewBtn: false,
         | 
| 443 492 | 
             
              isViewLeftBtn: false,
         | 
| @@ -449,6 +498,8 @@ DynamicTable.defaultProps = { | |
| 449 498 | 
             
              placeholderDinamicSelect: 'Seleccionar columnas',
         | 
| 450 499 | 
             
              labelDinamicSelectFilter: '',
         | 
| 451 500 | 
             
              placeholderDinamicSelectFilter: '',
         | 
| 501 | 
            +
              labelDinamicSelectFilterSecondary: '',
         | 
| 502 | 
            +
              placeholderDinamicSelectFilterSecondary: '',
         | 
| 452 503 | 
             
              labelSinceDateRange: 'Desde',
         | 
| 453 504 | 
             
              labelTillDateRange: 'Hasta',
         | 
| 454 505 | 
             
              labelSinceDateRangeSecundary: 'Desde',
         | 
| @@ -10,7 +10,7 @@ import styles from './Sidebar.module.css' | |
| 10 10 | 
             
            import Picture from '../../atoms/Picture'
         | 
| 11 11 | 
             
            import ItemMenu from '../../molecules/ItemMenu/ItemMenu'
         | 
| 12 12 |  | 
| 13 | 
            -
            export const Sidebar = ({ getStyles, menuCollapseView, options, isHrefLogo, isSrcLogoS, isSrcLogo }) => {
         | 
| 13 | 
            +
            export const Sidebar = ({ getStyles, menuCollapseView, options, isHrefLogo, isSrcLogoS, isSrcLogo, spaceLogo }) => {
         | 
| 14 14 |  | 
| 15 15 | 
             
              const router = useRouter()
         | 
| 16 16 |  | 
| @@ -28,7 +28,7 @@ export const Sidebar = ({ getStyles, menuCollapseView, options, isHrefLogo, isSr | |
| 28 28 |  | 
| 29 29 | 
             
                          <div className={getStyles('pro-sidebar-header')}>
         | 
| 30 30 |  | 
| 31 | 
            -
                            <div className={getStyles('logotext')}>
         | 
| 31 | 
            +
                            <div style={{ padding: spaceLogo }} className={getStyles('logotext')}>
         | 
| 32 32 | 
             
                              {/* small and big change using menuCollapseView state */}
         | 
| 33 33 | 
             
                              {menuCollapseView ? <Picture isHref={isHrefLogo} src={router.basePath + isSrcLogoS} width={19}></Picture> : <Picture isHref={isHrefLogo} src={router.basePath + isSrcLogo} width={'max-content'}></Picture>}
         | 
| 34 34 | 
             
                            </div>
         |