@moderneinc/neo-styled-components 4.0.0-next.75a01f → 4.0.0-next.75bf90
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +15 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ComponentPropsWithoutRef, ElementType } from 'react';
|
|
|
3
3
|
declare module '@mui/material/Chip' {
|
|
4
4
|
interface ChipPropsColorOverrides {
|
|
5
5
|
violet: true;
|
|
6
|
+
beta: true;
|
|
6
7
|
}
|
|
7
8
|
interface ChipPropsSizeOverrides {
|
|
8
9
|
large: true;
|
|
@@ -30,7 +31,7 @@ type NeoTagOwnProps = {
|
|
|
30
31
|
* @figma Intent (Neutral|Error|Warning|Success|Info|Violet)
|
|
31
32
|
* @default "default"
|
|
32
33
|
*/
|
|
33
|
-
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet';
|
|
34
|
+
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
|
|
34
35
|
};
|
|
35
36
|
export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component' | 'color'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
36
37
|
component?: C;
|
|
@@ -43,7 +44,7 @@ export type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps &
|
|
|
43
44
|
* Figma Props Mapping:
|
|
44
45
|
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
45
46
|
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
46
|
-
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
47
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet|Beta) → intent (default|error|warning|success|info|violet|beta)
|
|
47
48
|
* - TEXT Label → label prop
|
|
48
49
|
*/
|
|
49
50
|
export declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, intent, ...props }: NeoTagProps<C>): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -2202,6 +2202,7 @@ declare const NeoTab: {
|
|
|
2202
2202
|
declare module '@mui/material/Chip' {
|
|
2203
2203
|
interface ChipPropsColorOverrides {
|
|
2204
2204
|
violet: true;
|
|
2205
|
+
beta: true;
|
|
2205
2206
|
}
|
|
2206
2207
|
interface ChipPropsSizeOverrides {
|
|
2207
2208
|
large: true;
|
|
@@ -2229,7 +2230,7 @@ type NeoTagOwnProps = {
|
|
|
2229
2230
|
* @figma Intent (Neutral|Error|Warning|Success|Info|Violet)
|
|
2230
2231
|
* @default "default"
|
|
2231
2232
|
*/
|
|
2232
|
-
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet';
|
|
2233
|
+
intent?: 'default' | 'error' | 'warning' | 'success' | 'info' | 'violet' | 'beta';
|
|
2233
2234
|
};
|
|
2234
2235
|
type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<ChipProps, keyof NeoTagOwnProps | 'component' | 'color'> & Omit<ComponentPropsWithoutRef<C>, keyof NeoTagOwnProps | keyof ChipProps> & {
|
|
2235
2236
|
component?: C;
|
|
@@ -2242,7 +2243,7 @@ type NeoTagProps<C extends ElementType = typeof Chip> = NeoTagOwnProps & Omit<Ch
|
|
|
2242
2243
|
* Figma Props Mapping:
|
|
2243
2244
|
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
2244
2245
|
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
2245
|
-
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
2246
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet|Beta) → intent (default|error|warning|success|info|violet|beta)
|
|
2246
2247
|
* - TEXT Label → label prop
|
|
2247
2248
|
*/
|
|
2248
2249
|
declare function NeoTag<C extends ElementType = typeof Chip>({ size, variant, intent, ...props }: NeoTagProps<C>): react_jsx_runtime.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -2887,32 +2887,37 @@ const outlinedColorStyles = {
|
|
|
2887
2887
|
default: {
|
|
2888
2888
|
backgroundColor: semanticColors.status.neutral.light,
|
|
2889
2889
|
color: semanticColors.status.neutral.dark,
|
|
2890
|
-
borderColor:
|
|
2890
|
+
borderColor: semanticColors.status.neutral.transparent,
|
|
2891
2891
|
},
|
|
2892
2892
|
error: {
|
|
2893
2893
|
backgroundColor: semanticColors.status.error.light,
|
|
2894
2894
|
color: semanticColors.status.error.dark,
|
|
2895
|
-
borderColor:
|
|
2895
|
+
borderColor: semanticColors.status.error.transparent,
|
|
2896
2896
|
},
|
|
2897
2897
|
warning: {
|
|
2898
2898
|
backgroundColor: semanticColors.status.warning.light,
|
|
2899
2899
|
color: semanticColors.status.warning.dark,
|
|
2900
|
-
borderColor:
|
|
2900
|
+
borderColor: semanticColors.status.warning.transparent,
|
|
2901
2901
|
},
|
|
2902
2902
|
success: {
|
|
2903
2903
|
backgroundColor: semanticColors.status.success.light,
|
|
2904
2904
|
color: semanticColors.status.success.dark,
|
|
2905
|
-
borderColor:
|
|
2905
|
+
borderColor: semanticColors.status.success.transparent,
|
|
2906
2906
|
},
|
|
2907
2907
|
info: {
|
|
2908
2908
|
backgroundColor: semanticColors.status.info.light,
|
|
2909
2909
|
color: semanticColors.status.info.dark,
|
|
2910
|
-
borderColor:
|
|
2910
|
+
borderColor: semanticColors.status.info.transparent,
|
|
2911
2911
|
},
|
|
2912
2912
|
violet: {
|
|
2913
|
-
backgroundColor:
|
|
2913
|
+
backgroundColor: 'rgba(235, 213, 241, 0.4)',
|
|
2914
2914
|
color: colors.violet[600],
|
|
2915
|
-
borderColor: colors.violet[
|
|
2915
|
+
borderColor: colors.violet[200],
|
|
2916
|
+
},
|
|
2917
|
+
beta: {
|
|
2918
|
+
backgroundColor: colors.digitalBlue[50],
|
|
2919
|
+
color: colors.digitalBlue[400],
|
|
2920
|
+
borderColor: colors.digitalBlue[200],
|
|
2916
2921
|
},
|
|
2917
2922
|
};
|
|
2918
2923
|
const filledColorStyles = {
|
|
@@ -2922,6 +2927,7 @@ const filledColorStyles = {
|
|
|
2922
2927
|
success: semanticColors.status.success.default,
|
|
2923
2928
|
info: semanticColors.status.info.default,
|
|
2924
2929
|
violet: colors.violet[500],
|
|
2930
|
+
beta: colors.digitalBlue[300],
|
|
2925
2931
|
};
|
|
2926
2932
|
const StyledChip$1 = styled(Chip)(({ theme, size, variant, color }) => ({
|
|
2927
2933
|
padding: 0,
|
|
@@ -2951,10 +2957,10 @@ const StyledChip$1 = styled(Chip)(({ theme, size, variant, color }) => ({
|
|
|
2951
2957
|
* Figma Props Mapping:
|
|
2952
2958
|
* - Size (Small|Medium|Large) → size (small|medium|large)
|
|
2953
2959
|
* - Variant (Subtle|Filled) → variant (outlined|filled)
|
|
2954
|
-
* - Intent (Neutral|Error|Warning|Success|Info|Violet) → intent (default|error|warning|success|info|violet)
|
|
2960
|
+
* - Intent (Neutral|Error|Warning|Success|Info|Violet|Beta) → intent (default|error|warning|success|info|violet|beta)
|
|
2955
2961
|
* - TEXT Label → label prop
|
|
2956
2962
|
*/
|
|
2957
|
-
function NeoTag({ size = 'small', variant = 'outlined', intent, ...props }) {
|
|
2963
|
+
function NeoTag({ size = 'small', variant = 'outlined', intent = 'default', ...props }) {
|
|
2958
2964
|
return jsx(StyledChip$1, { size: size, variant: variant, color: intent, ...props });
|
|
2959
2965
|
}
|
|
2960
2966
|
NeoTag.displayName = 'NeoTag';
|