react-restyle-components 0.1.77 → 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.
Files changed (37) hide show
  1. package/lib/src/core-components/atoms/buttons/buttons.component.d.ts +1 -0
  2. package/lib/src/core-components/atoms/buttons/buttons.component.js +1 -0
  3. package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +1 -0
  4. package/lib/src/core-components/atoms/check-box/checkBox.component.js +1 -0
  5. package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +1 -0
  6. package/lib/src/core-components/atoms/date-picker/date-picker.component.js +1 -0
  7. package/lib/src/core-components/atoms/form/form.component.d.ts +2 -0
  8. package/lib/src/core-components/atoms/form/form.component.js +2 -0
  9. package/lib/src/core-components/atoms/icons/icons.component.d.ts +1 -0
  10. package/lib/src/core-components/atoms/icons/icons.component.js +1 -0
  11. package/lib/src/core-components/atoms/input/input-otp.component.d.ts +1 -0
  12. package/lib/src/core-components/atoms/input/input-otp.component.js +1 -0
  13. package/lib/src/core-components/atoms/input/input-pin.component.d.ts +1 -0
  14. package/lib/src/core-components/atoms/input/input-pin.component.js +1 -0
  15. package/lib/src/core-components/atoms/input/input.component.d.ts +1 -0
  16. package/lib/src/core-components/atoms/input/input.component.js +1 -0
  17. package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +1 -0
  18. package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +1 -0
  19. package/lib/src/core-components/atoms/loader/loader.component.d.ts +1 -0
  20. package/lib/src/core-components/atoms/loader/loader.component.js +1 -0
  21. package/lib/src/core-components/atoms/radio/radio.component.d.ts +1 -0
  22. package/lib/src/core-components/atoms/radio/radio.component.js +1 -0
  23. package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +1 -0
  24. package/lib/src/core-components/atoms/stepper/stepper.component.js +1 -0
  25. package/lib/src/core-components/atoms/tabs/tabs.component.d.ts +1 -0
  26. package/lib/src/core-components/atoms/tabs/tabs.component.js +1 -0
  27. package/lib/src/core-components/atoms/timer/timer.component.d.ts +1 -0
  28. package/lib/src/core-components/atoms/timer/timer.component.js +1 -0
  29. package/lib/src/core-components/atoms/tooltip/tooltip.component.d.ts +1 -0
  30. package/lib/src/core-components/atoms/tooltip/tooltip.component.js +1 -0
  31. 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
  32. 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
  33. 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
  34. 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
  35. package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +1 -0
  36. package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +1 -0
  37. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface ButtonProps {
3
4
  type?: 'solid' | 'outline';
4
5
  className?: any;
@@ -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 from 'react';
2
+ import '../../../../tc.css';
2
3
  interface CheckBoxProps {
3
4
  title: string;
4
5
  data: Array<any>;
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  import 'react-datepicker/dist/react-datepicker.css';
3
4
  interface DatePickerProps {
4
5
  title: string;
@@ -1,4 +1,5 @@
1
1
  import React, { useState, forwardRef } from 'react';
2
+ import '../../../../tc.css';
2
3
  import DatePicker from 'react-datepicker';
3
4
  import 'react-datepicker/dist/react-datepicker.css';
4
5
  import { DatePickerSvg } from '../../../library/assets/svg';
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
3
+ import '../../../../tc.css';
2
4
  interface LabelProps {
3
5
  htmlFor: string;
4
6
  hasError?: boolean;
@@ -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 },
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconBaseProps } from 'react-icons/lib';
3
+ import '../../../../tc.css';
3
4
  interface IconProps {
4
5
  nameIcon: string;
5
6
  propsIcon?: IconBaseProps;
@@ -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,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input-otp.styles.css';
3
+ import '../../../../tc.css';
3
4
  interface PinInputGridProps {
4
5
  title?: string;
5
6
  hasError?: boolean;
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  import React, { useEffect, useRef } from 'react';
3
3
  import './input-otp.styles.css';
4
+ import '../../../../tc.css';
4
5
  export const InputOtp = ({ className, pin, onPinChanged, }) => {
5
6
  const pinLength = 6;
6
7
  const Pin_Min_Value = 0;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input.styles.css';
3
+ import '../../../../tc.css';
3
4
  interface PinInputGridProps {
4
5
  title: string;
5
6
  hasError?: any;
@@ -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,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input.styles.css';
3
+ import '../../../../tc.css';
3
4
  interface InputProps {
4
5
  title: string;
5
6
  defaultValue: string;
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface InputDropdownProps {
3
4
  title: string;
4
5
  items: Array<string>;
@@ -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,3 +1,4 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  export declare const Loader: () => React.JSX.Element;
3
4
  export declare const ModalLoader: () => React.JSX.Element;
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface RadioProps {
3
4
  title: string;
4
5
  data: Array<any>;
@@ -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
  interface StepperProps {
3
4
  className?: string;
4
5
  steps: Array<string>;
@@ -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';
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface TabsProps {
3
4
  options: Array<{
4
5
  title: string;
@@ -1,5 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Icon } from '../..';
3
+ import '../../../../tc.css';
3
4
  export const Tabs = ({ options, onSelect }) => {
4
5
  const [selected, setSelected] = useState(options[0].title);
5
6
  return (React.createElement("div", { className: "flex justify-center" },
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface TimerProps {
3
4
  onClear: () => void;
4
5
  }
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface TooltipProps {
3
4
  tooltipText?: any;
4
5
  position?: 'bottom' | 'left' | 'top';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import * as Material from '@mui/material';
3
+ import '../../../../tc.css';
3
4
  export const Tooltip = ({ tooltipText, position = 'bottom-start', children, }) => {
4
5
  const positionRef = React.useRef({
5
6
  x: 0,
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface AutoCompleteFilterMultipleSelectMultipleFieldsDisplayProps {
3
4
  uniqueField?: string;
4
5
  loader?: boolean;
@@ -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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface AutoCompleteFilterSingleSelectMultiFieldsDisplayProps {
3
4
  loader?: boolean;
4
5
  disable?: boolean;
@@ -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);
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../../tc.css';
2
3
  interface CSSMultilineProps {
3
4
  label?: string;
4
5
  defaultValue?: string;
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "private": false,
5
5
  "description": "Easy use restyle components",
6
6
  "main": "./lib/index.js",