@moderneinc/neo-styled-components 4.0.0-next.91534 → 4.0.0-next.a906fb
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/dist/Tag/Tag.d.ts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.esm.js +6 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
|
3
3
|
declare module '@mui/material/Chip' {
|
|
4
4
|
interface ChipPropsColorOverrides {
|
|
5
5
|
violet: true;
|
|
6
|
-
beta: true;
|
|
7
6
|
}
|
|
8
7
|
interface ChipPropsSizeOverrides {
|
|
9
8
|
large: true;
|
|
@@ -16,24 +15,24 @@ declare module '@mui/material/Chip' {
|
|
|
16
15
|
type NeoTagOwnProps = {
|
|
17
16
|
/**
|
|
18
17
|
* The size of the tag
|
|
19
|
-
* @figma
|
|
18
|
+
* @figma Size (Small|Medium|Large)
|
|
20
19
|
* @default "small"
|
|
21
20
|
*/
|
|
22
21
|
size?: 'small' | 'medium' | 'large';
|
|
23
22
|
/**
|
|
24
23
|
* The variant style of the tag
|
|
25
|
-
* @figma
|
|
24
|
+
* @figma Variant (Subtle|Filled)
|
|
26
25
|
* @default "outlined"
|
|
27
26
|
*/
|
|
28
27
|
variant?: 'outlined' | 'filled';
|
|
29
28
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @figma
|
|
29
|
+
* The intent/purpose of the tag
|
|
30
|
+
* @figma Intent (Neutral|Error|Warning|Success|Info|Violet)
|
|
32
31
|
* @default "default"
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet';
|
|
35
34
|
};
|
|
36
|
-
export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
35
|
+
export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component' | 'color'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
37
36
|
component?: C;
|
|
38
37
|
};
|
|
39
38
|
/**
|
|
@@ -42,12 +41,12 @@ export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps &
|
|
|
42
41
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4120-34533
|
|
43
42
|
*
|
|
44
43
|
* Figma Props Mapping:
|
|
45
|
-
* -
|
|
46
|
-
* -
|
|
47
|
-
* -
|
|
48
|
-
* - Label
|
|
44
|
+
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
45
|
+
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
46
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
47
|
+
* - TEXT Label → label prop
|
|
49
48
|
*/
|
|
50
|
-
export declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, ...props }: NeoTagProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, intent, ...props }: NeoTagProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
51
50
|
export declare namespace NeoTag {
|
|
52
51
|
var displayName: string;
|
|
53
52
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2202,7 +2202,6 @@ declare const NeoTab: {
|
|
|
2202
2202
|
declare module '@mui/material/Chip' {
|
|
2203
2203
|
interface ChipPropsColorOverrides {
|
|
2204
2204
|
violet: true;
|
|
2205
|
-
beta: true;
|
|
2206
2205
|
}
|
|
2207
2206
|
interface ChipPropsSizeOverrides {
|
|
2208
2207
|
large: true;
|
|
@@ -2215,24 +2214,24 @@ declare module '@mui/material/Chip' {
|
|
|
2215
2214
|
type NeoTagOwnProps = {
|
|
2216
2215
|
/**
|
|
2217
2216
|
* The size of the tag
|
|
2218
|
-
* @figma
|
|
2217
|
+
* @figma Size (Small|Medium|Large)
|
|
2219
2218
|
* @default "small"
|
|
2220
2219
|
*/
|
|
2221
2220
|
size?: 'small' | 'medium' | 'large';
|
|
2222
2221
|
/**
|
|
2223
2222
|
* The variant style of the tag
|
|
2224
|
-
* @figma
|
|
2223
|
+
* @figma Variant (Subtle|Filled)
|
|
2225
2224
|
* @default "outlined"
|
|
2226
2225
|
*/
|
|
2227
2226
|
variant?: 'outlined' | 'filled';
|
|
2228
2227
|
/**
|
|
2229
|
-
* The
|
|
2230
|
-
* @figma
|
|
2228
|
+
* The intent/purpose of the tag
|
|
2229
|
+
* @figma Intent (Neutral|Error|Warning|Success|Info|Violet)
|
|
2231
2230
|
* @default "default"
|
|
2232
2231
|
*/
|
|
2233
|
-
|
|
2232
|
+
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet';
|
|
2234
2233
|
};
|
|
2235
|
-
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
2234
|
+
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component' | 'color'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
2236
2235
|
component?: C;
|
|
2237
2236
|
};
|
|
2238
2237
|
/**
|
|
@@ -2241,12 +2240,12 @@ type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<Ch
|
|
|
2241
2240
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4120-34533
|
|
2242
2241
|
*
|
|
2243
2242
|
* Figma Props Mapping:
|
|
2244
|
-
* -
|
|
2245
|
-
* -
|
|
2246
|
-
* -
|
|
2247
|
-
* - Label
|
|
2243
|
+
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
2244
|
+
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
2245
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
2246
|
+
* - TEXT Label → label prop
|
|
2248
2247
|
*/
|
|
2249
|
-
declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, ...props }: NeoTagProps<C>): react_jsx_runtime.JSX.Element;
|
|
2248
|
+
declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, intent, ...props }: NeoTagProps<C>): react_jsx_runtime.JSX.Element;
|
|
2250
2249
|
declare namespace NeoTag {
|
|
2251
2250
|
var displayName: string;
|
|
2252
2251
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -2914,11 +2914,6 @@ const outlinedColorStyles = {
|
|
|
2914
2914
|
color: colors.violet[600],
|
|
2915
2915
|
borderColor: colors.violet[100],
|
|
2916
2916
|
},
|
|
2917
|
-
beta: {
|
|
2918
|
-
backgroundColor: colors.digitalBlue[100],
|
|
2919
|
-
color: colors.digitalBlue[400],
|
|
2920
|
-
borderColor: colors.digitalBlue[100],
|
|
2921
|
-
},
|
|
2922
2917
|
};
|
|
2923
2918
|
const filledColorStyles = {
|
|
2924
2919
|
default: semanticColors.status.neutral.default,
|
|
@@ -2927,7 +2922,6 @@ const filledColorStyles = {
|
|
|
2927
2922
|
success: semanticColors.status.success.default,
|
|
2928
2923
|
info: semanticColors.status.info.default,
|
|
2929
2924
|
violet: colors.violet[500],
|
|
2930
|
-
beta: colors.digitalBlue[300],
|
|
2931
2925
|
};
|
|
2932
2926
|
const StyledChip$1 = styled(Chip)(({ theme, size, variant, color }) => ({
|
|
2933
2927
|
padding: 0,
|
|
@@ -2955,13 +2949,13 @@ const StyledChip$1 = styled(Chip)(({ theme, size, variant, color }) => ({
|
|
|
2955
2949
|
* @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4120-34533
|
|
2956
2950
|
*
|
|
2957
2951
|
* Figma Props Mapping:
|
|
2958
|
-
* -
|
|
2959
|
-
* -
|
|
2960
|
-
* -
|
|
2961
|
-
* - Label
|
|
2952
|
+
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
2953
|
+
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
2954
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
2955
|
+
* - TEXT Label → label prop
|
|
2962
2956
|
*/
|
|
2963
|
-
function NeoTag({ size = 'small', variant = 'outlined', ...props }) {
|
|
2964
|
-
return jsx(StyledChip$1, { size: size, variant: variant, ...props });
|
|
2957
|
+
function NeoTag({ size = 'small', variant = 'outlined', intent, ...props }) {
|
|
2958
|
+
return jsx(StyledChip$1, { size: size, variant: variant, color: intent, ...props });
|
|
2965
2959
|
}
|
|
2966
2960
|
NeoTag.displayName = 'NeoTag';
|
|
2967
2961
|
|