norma-library 0.6.85 → 0.6.86

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 (35) hide show
  1. package/dist/esm/components/Icons.js +6 -7
  2. package/dist/esm/components/Icons.js.map +1 -1
  3. package/dist/esm/components/ProductCard/ProductCard.js +13 -11
  4. package/dist/esm/components/ProductCard/ProductCard.js.map +1 -1
  5. package/dist/esm/components/ProductCard/ProductCard.style.js +2 -2
  6. package/dist/esm/components/ProductCard/ProductCard.style.js.map +1 -1
  7. package/dist/esm/components/ServiceCard/ServiceCard.js +6 -6
  8. package/dist/esm/components/ServiceCard/ServiceCard.js.map +1 -1
  9. package/dist/esm/components/ServiceCard/ServiceCard.style.js +1 -1
  10. package/dist/esm/components/ServiceCard/ServiceCard.style.js.map +1 -1
  11. package/dist/esm/components/Svgs.d.ts +12 -0
  12. package/dist/esm/components/Svgs.js +36 -0
  13. package/dist/esm/components/Svgs.js.map +1 -1
  14. package/dist/esm/interfaces/Icons.d.ts +4 -3
  15. package/dist/esm/interfaces/ProductCard.d.ts +15 -5
  16. package/dist/esm/interfaces/ServiceCard.d.ts +12 -4
  17. package/dist/esm/types/index.d.ts +3 -3
  18. package/dist/esm/types/index.js.map +1 -1
  19. package/package.json +2 -4
  20. package/src/components/Icons.tsx +12 -8
  21. package/src/components/ProductCard/ProductCard.style.ts +5 -2
  22. package/src/components/ProductCard/ProductCard.tsx +27 -27
  23. package/src/components/ServiceCard/ServiceCard.style.ts +0 -1
  24. package/src/components/ServiceCard/ServiceCard.tsx +6 -6
  25. package/src/components/Svgs.tsx +224 -2
  26. package/src/index.ts +0 -2
  27. package/src/interfaces/Icons.ts +4 -3
  28. package/src/interfaces/ProductCard.ts +29 -20
  29. package/src/interfaces/ServiceCard.ts +19 -10
  30. package/src/stories/NormaChatMessageBalloon.stories.tsx +6 -6
  31. package/src/stories/ProductCard.stories.tsx +48 -3
  32. package/src/stories/ServiceCard.stories.tsx +30 -11
  33. package/src/types/index.ts +4 -3
  34. package/src/components/IconifyIcon.tsx +0 -25
  35. package/src/stories/IconifyIcon.stories.tsx +0 -31
@@ -120,7 +120,7 @@ export type MuiBadgeBaseProps = Omit<
120
120
  'sx' | 'color' | 'children' | 'invisible' | 'variant' | 'className' | 'badgeContent'
121
121
  >;
122
122
 
123
- export type IconScale = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge' | '3xlarge';
123
+ export type IconScale = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge' | '3xlarge' | 'custom';
124
124
 
125
125
  export type IconColors =
126
126
  | 'inherit'
@@ -131,9 +131,10 @@ export type IconColors =
131
131
  | 'success'
132
132
  | 'warning'
133
133
  | 'white'
134
- | 'black';
134
+ | 'black'
135
+ | string;
135
136
 
136
- export const scaleSize: Record<IconScale, number> = {
137
+ export const scaleSize: Partial<Record<IconScale, number>> = {
137
138
  xsmall: 14,
138
139
  small: 20,
139
140
  medium: 24,
@@ -1,25 +0,0 @@
1
- 'use client';
2
-
3
- import { Icon } from '@iconify/react';
4
- import React from 'react';
5
-
6
- interface IconProps {
7
- iconName: string;
8
- size?: string;
9
- color?: string;
10
- }
11
-
12
- export const IconifyIcon: React.FC<IconProps> = ({
13
- iconName,
14
- color,
15
- size
16
- }) => {
17
- return (
18
- <Icon
19
- icon={iconName}
20
- color={color}
21
- width={size}
22
- strokeWidth={2.5}
23
- />
24
- )
25
- }
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { IconifyIcon } from '../components/IconifyIcon';
3
- import { Meta, StoryObj } from '@storybook/react';
4
-
5
- const meta: Meta<typeof IconifyIcon> = {
6
- title: "Display/IconifyIcons",
7
- component: IconifyIcon,
8
- tags: ['autodocs'],
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
-
13
-
14
- export const OpenSourceIcons: Story = {
15
- parameters: {
16
- docs: {
17
- description: {
18
- story: 'Este é um exemplo de uso do componente IconifyIcon, que permite a utilização de ícones de diversas bibliotecas, como Lucide, Material UI, e mais.',
19
- },
20
- },
21
- },
22
- render: () => (
23
- <>
24
- <IconifyIcon iconName="mdi:home" size="24px" color="red" />
25
- <IconifyIcon iconName="mdi:account" size="24px" color="blue" />
26
- <IconifyIcon iconName="mdi:account-check" size="24px" color="green" />
27
- <IconifyIcon iconName="mdi:account-edit" size="24px" color="purple" />
28
- </>
29
-
30
- ),
31
- }