norma-library 0.6.88 → 0.6.89

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norma-library",
3
- "version": "0.6.88",
3
+ "version": "0.6.89",
4
4
  "private": false,
5
5
  "description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
6
6
  "scripts": {
@@ -1,9 +0,0 @@
1
- import { ButtonBaseProps } from './types';
2
- export declare const Button: {
3
- ({ label, ...rest }: ButtonBaseProps): import("react").JSX.Element;
4
- defaultProps: {
5
- variant: string;
6
- size: string;
7
- color: string;
8
- };
9
- };
@@ -1,16 +0,0 @@
1
- 'use client';
2
- import { __assign, __rest } from "tslib";
3
- import { Button as MuiButton } from '@mui/material';
4
- import { useTranslation } from 'react-i18next';
5
- export var Button = function (_a) {
6
- var label = _a.label, rest = __rest(_a, ["label"]);
7
- var t = useTranslation().t;
8
- var newLabel = label ? label : t('buttonText');
9
- return (React.createElement(MuiButton, __assign({}, rest, { sx: { color: rest.variant === 'contained' ? '#FFFF' : rest.color } }), newLabel));
10
- };
11
- Button.defaultProps = {
12
- variant: 'contained',
13
- size: 'medium',
14
- color: 'primary',
15
- };
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,EAAmC;IAAjC,IAAA,KAAK,WAAA,EAAK,IAAI,cAAhB,SAAkB,CAAF;IAC7B,IAAA,CAAC,GAAK,cAAc,EAAE,EAArB,CAAqB;IAC9B,IAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChD,OAAO,CACL,oBAAC,SAAS,eAAK,IAAI,IAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,KACpF,QAAQ,CACC,CACb,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,YAAY,GAAG;IACpB,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;CACjB,CAAA"}
@@ -1,18 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { Theme } from '@emotion/react';
3
- import { Button } from './index';
4
- import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, ButtonProps as MuiButtonProps, SxProps } from '@mui/material';
5
- import { OverridableStringUnion } from '@mui/types';
6
- type MuiButtonBaseProps = Pick<MuiButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
7
- export interface ButtonBaseProps extends MuiButtonBaseProps {
8
- label: string;
9
- sx?: SxProps<Theme>;
10
- children?: ReactNode;
11
- onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
12
- color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning', ButtonPropsColorOverrides>;
13
- size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>;
14
- variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>;
15
- style?: React.CSSProperties;
16
- }
17
- export type ButtonType = keyof typeof Button;
18
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Button/types.tsx"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IconProps {
3
- iconName: string;
4
- size?: string;
5
- color?: string;
6
- }
7
- export declare const IconifyIcon: React.FC<IconProps>;
8
- export {};
@@ -1,7 +0,0 @@
1
- import { Icon } from '@iconify/react';
2
- import React from 'react';
3
- export var IconifyIcon = function (_a) {
4
- var iconName = _a.iconName, color = _a.color, size = _a.size;
5
- return (React.createElement(Icon, { icon: iconName, color: color, width: size, strokeWidth: 2.5 }));
6
- };
7
- //# sourceMappingURL=IconifyIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconifyIcon.js","sourceRoot":"","sources":["../../../src/components/IconifyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,IAAM,WAAW,GAAwB,UAAC,EAIhD;QAHG,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,IAAI,UAAA;IAEJ,OAAO,CACH,oBAAC,IAAI,IACD,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,IAAI,EACX,WAAW,EAAE,GAAG,GAClB,CACL,CAAA;AACL,CAAC,CAAA"}