@dilicorp/ui 0.2.13 → 0.2.15

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FormikProps } from 'formik';
3
- declare type Props = React.HTMLAttributes<HTMLButtonElement> & {
3
+ declare type Props = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
4
4
  type?: 'submit' | 'reset' | 'button';
5
5
  actions: FormikProps<any>;
6
6
  color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
@@ -12,9 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React from 'react';
13
13
  import { Button } from '../../../atoms/button';
14
14
  export default function Input(props) {
15
+ var _a;
15
16
  const { type = 'button', actions, color = 'primary', label, labelLoading = label, className, id } = props, elements = __rest(props, ["type", "actions", "color", "label", "labelLoading", "className", "id"]);
16
17
  return (React.createElement("div", null,
17
- React.createElement(Button, Object.assign({}, elements, { className: className, type: type, color: color }, (id && { 'data-testid': id })), actions.isSubmitting
18
+ React.createElement(Button, Object.assign({}, elements, { className: className, type: type, color: color, disabled: actions.isSubmitting ? true : (_a = elements.disabled) !== null && _a !== void 0 ? _a : false }, (id && { 'data-testid': id })), actions.isSubmitting
18
19
  ? labelLoading
19
20
  : label)));
20
21
  }
@@ -1,4 +1,4 @@
1
- :root{--di-black: #221C46;--di-primary-light: #FCC1BE;--di-primary-lighter: #FCECEA;--di-primary-contrast: #221C46;--di-primary-contrast-light: #DEF3FB4D;--di-secondary-dark: #FF9895}/*!
1
+ :root{--di-black: #221C46;--di-primary-light: #FCC1BE;--di-primary-lighter: #FCECEA;--di-primary-contrast: #221C46;--di-primary-contrast-light: #DEF3FB4D;--di-secondary-dark: #FF9895;--di-success-light: #C3FCE1;--di-success-dark: #042E20;--di-warning-light: #FBF2EC;--di-warning-dark: #874810;--di-danger-light: #FCF1EE;--di-danger-dark: #B30000;--di-info-light: #F3F3FC;--di-info-dark: #123BA7}/*!
2
2
  * Bootstrap Grid v5.1.3 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2021 The Bootstrap Authors
4
4
  * Copyright 2011-2021 Twitter, Inc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dilicorp/ui",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "A simple UI design for Dilicorp",
5
5
  "repository": {
6
6
  "type": "git",