react-restyle-components 0.1.76 → 0.1.78
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/lib/src/core-components/atoms/buttons/buttons.component.d.ts +1 -0
- package/lib/src/core-components/atoms/buttons/buttons.component.js +1 -0
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +1 -0
- package/lib/src/core-components/atoms/check-box/checkBox.component.js +1 -0
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +1 -0
- package/lib/src/core-components/atoms/date-picker/date-picker.component.js +1 -0
- package/lib/src/core-components/atoms/form/form.component.d.ts +2 -0
- package/lib/src/core-components/atoms/form/form.component.js +2 -0
- package/lib/src/core-components/atoms/icons/icons.component.d.ts +1 -0
- package/lib/src/core-components/atoms/icons/icons.component.js +1 -0
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts +1 -0
- package/lib/src/core-components/atoms/input/input-otp.component.js +1 -0
- package/lib/src/core-components/atoms/input/input-pin.component.d.ts +1 -0
- package/lib/src/core-components/atoms/input/input-pin.component.js +1 -0
- package/lib/src/core-components/atoms/input/input.component.d.ts +1 -0
- package/lib/src/core-components/atoms/input/input.component.js +1 -0
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +1 -0
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +1 -0
- package/lib/src/core-components/atoms/loader/loader.component.d.ts +1 -0
- package/lib/src/core-components/atoms/loader/loader.component.js +1 -0
- package/lib/src/core-components/atoms/radio/radio.component.d.ts +1 -0
- package/lib/src/core-components/atoms/radio/radio.component.js +1 -0
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +1 -0
- package/lib/src/core-components/atoms/stepper/stepper.component.js +1 -0
- package/lib/src/core-components/atoms/timer/timer.component.d.ts +1 -0
- package/lib/src/core-components/atoms/timer/timer.component.js +1 -0
- package/lib/src/core-components/atoms/tooltip/tooltip.component.d.ts +1 -0
- package/lib/src/core-components/atoms/tooltip/tooltip.component.js +1 -0
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +1 -0
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +1 -0
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +1 -0
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +1 -0
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +1 -0
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import '../../../../tc.css';
|
|
2
3
|
export const Button = ({ type = 'solid', className = 'w-40', disable = false, onClick, children, }) => {
|
|
3
4
|
const buttonColorClass = type === 'solid'
|
|
4
5
|
? 'text-white bg-[#007BFF] hover:bg-[#007BFF] hover:shadow-lg text-white'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
import '../../../../tc.css';
|
|
2
3
|
import { UnCheckbox, CheckedBox } from '../../../library/assets/svg';
|
|
3
4
|
import { InputWrapper } from '../form/form.component';
|
|
4
5
|
export const CheckBox = ({ title = 'Banks', data = [{ title: 'SBI Bank', checked: false }], className, onChange, }) => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import '../../../../tc.css';
|
|
2
3
|
import classNames from 'classnames';
|
|
4
|
+
import '../../../../tc.css';
|
|
3
5
|
export const Label = (props) => (React.createElement(React.Fragment, null,
|
|
4
6
|
React.createElement("label", { htmlFor: props.htmlFor, className: `${props.hasError ? 'text-red-400' : 'text-current'} block text-3xs font-medium mb-1`, style: { ...props.style } }, props.children)));
|
|
5
7
|
export const InputWrapper = (props) => (React.createElement("div", { className: props.className, ref: props.ref },
|
|
@@ -2,6 +2,7 @@ import React, { Suspense } from 'react';
|
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import { Tooltip } from '../..';
|
|
4
4
|
import loadable from '@loadable/component';
|
|
5
|
+
import '../../../../tc.css';
|
|
5
6
|
let lib = 'md';
|
|
6
7
|
export const Icon = ({ nameIcon, propsIcon, tooltip = '', isDisable = false, onClick, }) => {
|
|
7
8
|
try {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import React, { useRef, useState } from 'react';
|
|
3
3
|
import './input.styles.css';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
export const InputPin = ({ title, className, defaultPin, errorMsg, defaultMsg, hasError, onPinChanged, }) => {
|
|
5
6
|
const pin = useRef([]);
|
|
6
7
|
const [reload, setReload] = useState(false);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import './input.styles.css';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
export const Input = ({ title, defaultValue, className, disable, hasError, errorMsg, defaultMsg, inputStyle, autoComplete, maxlength = 40, onChange, onBlur, }) => {
|
|
5
6
|
const [value, setValue] = useState(defaultValue);
|
|
6
7
|
const onKeyUpValue = (event) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { UpArrow, DownArrow } from '../../../library/assets/svg';
|
|
3
|
+
import '../../../../tc.css';
|
|
3
4
|
export const InputDropdown = ({ items, className, hasError, title, onChange, }) => {
|
|
4
5
|
const [isOpen, setIsOpen] = useState(false);
|
|
5
6
|
const [value, setValue] = useState('');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Container, Row, Spinner } from 'reactstrap';
|
|
3
|
+
import '../../../../tc.css';
|
|
3
4
|
export const Loader = () => (React.createElement(Container, { fluid: true, className: "vh-50 d-flex" },
|
|
4
5
|
React.createElement(Row, { className: "justify-content-center align-self-center w-100 text-center" },
|
|
5
6
|
React.createElement(Spinner, { color: "primary" }))));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { CheckedRadio, UncheckRadio } from '../../../library/assets/svg';
|
|
3
3
|
import { InputWrapper } from '../form/form.component';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
export const Radio = ({ title = 'Source', data = [], className, onChange, }) => {
|
|
5
6
|
const [list, setList] = useState(data);
|
|
6
7
|
const width = 20;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import '../../../../tc.css';
|
|
2
3
|
export const Stepper = ({ className = '', steps, currentStep = 1, onStepClick, }) => {
|
|
3
4
|
const finalClass = `${className} w-full px-4 sm:px-8`;
|
|
4
5
|
const progressClass = 'absolute my-4 top-1/2 left-0 h-0.5 transform -translate-y-1/2 bg-orange transition-width ease-in-out duration-500';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
3
3
|
import React, { useEffect, useState, useImperativeHandle } from 'react';
|
|
4
4
|
import { TimerSVG } from '../../../library/assets/svg';
|
|
5
|
+
import '../../../../tc.css';
|
|
5
6
|
// eslint-disable-next-line react/display-name
|
|
6
7
|
export const Timer = React.forwardRef(({ onClear }, ref) => {
|
|
7
8
|
const width = 15;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import { Icon } from '../..';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
export const AutoCompleteFilterMultipleSelectMultipleFieldsDisplay = ({ uniqueField = '_id', loader = false, placeholder = 'Search...', data, hasError = false, disable = false, isUpperCase = false, name, onFilter, onUpdate, onSelect, onBlur, }) => {
|
|
5
6
|
const [value, setValue] = useState('');
|
|
6
7
|
const [options, setOptions] = useState();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import { Icon } from '../..';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = false, loader = false, displayValue = '', placeholder = 'Search...', data, hasError = false, className, posstion = 'absolute', onFilter, onSelect, onBlur, }) => {
|
|
5
6
|
const [value, setValue] = useState(displayValue);
|
|
6
7
|
const [options, setOptions] = useState(data.list);
|
package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
2
|
import { Form } from '../..';
|
|
3
3
|
import { properties as propertiesObj } from './css-properties';
|
|
4
|
+
import '../../../../tc.css';
|
|
4
5
|
const mapToArray = (arr) => {
|
|
5
6
|
const res = [];
|
|
6
7
|
arr.forEach(function (obj, index) {
|