@metamask/design-system-react 0.27.1 → 0.29.0
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/CHANGELOG.md +24 -1
- package/dist/components/BannerAlert/BannerAlert.cjs +1 -4
- package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.cjs +4 -7
- package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.d.cts +1 -2
- package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.d.mts +1 -2
- package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.mjs +4 -7
- package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.mjs +2 -5
- package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.cjs +5 -5
- package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
- package/dist/components/BannerBase/BannerBase.mjs +6 -6
- package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +2 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +2 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +2 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +2 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.map +1 -1
- package/dist/components/Tag/Tag.constants.cjs +2 -2
- package/dist/components/Tag/Tag.constants.cjs.map +1 -1
- package/dist/components/Tag/Tag.constants.mjs +2 -2
- package/dist/components/Tag/Tag.constants.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.cjs +28 -7
- package/dist/components/TextButton/TextButton.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.constants.cjs +12 -0
- package/dist/components/TextButton/TextButton.constants.cjs.map +1 -0
- package/dist/components/TextButton/TextButton.constants.d.cts +4 -0
- package/dist/components/TextButton/TextButton.constants.d.cts.map +1 -0
- package/dist/components/TextButton/TextButton.constants.d.mts +4 -0
- package/dist/components/TextButton/TextButton.constants.d.mts.map +1 -0
- package/dist/components/TextButton/TextButton.constants.mjs +9 -0
- package/dist/components/TextButton/TextButton.constants.mjs.map +1 -0
- package/dist/components/TextButton/TextButton.d.cts.map +1 -1
- package/dist/components/TextButton/TextButton.d.mts.map +1 -1
- package/dist/components/TextButton/TextButton.mjs +28 -7
- package/dist/components/TextButton/TextButton.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.cts +25 -9
- package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.mts +25 -9
- package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
- package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
- package/dist/components/TextButton/index.cjs +3 -1
- package/dist/components/TextButton/index.cjs.map +1 -1
- package/dist/components/TextButton/index.d.cts +1 -0
- package/dist/components/TextButton/index.d.cts.map +1 -1
- package/dist/components/TextButton/index.d.mts +1 -0
- package/dist/components/TextButton/index.d.mts.map +1 -1
- package/dist/components/TextButton/index.mjs +1 -0
- package/dist/components/TextButton/index.mjs.map +1 -1
- package/dist/components/index.cjs +3 -2
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/types/index.cjs +11 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +9 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +9 -0
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +10 -0
- package/dist/types/index.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,kCAAwB;AAGzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,+BAAqB;AAG3E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EACnB,gCAAsB;AAGvB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,+BAAqB;AAG9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,kCAAwB;AAGnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gCAAsB;AAG7D,OAAO,EAAE,UAAU,EAAE,+BAAqB;AAE1C,OAAO,EAAE,cAAc,EAAE,+BAAqB;AAE9C,OAAO,EAAE,SAAS,EAAE,8BAAoB;AAGxC,OAAO,EAAE,YAAY,EAAE,iCAAuB;AAG9C,OAAO,EAAE,WAAW,EAAE,gCAAsB;AAE5C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,gCAAsB;AAEnE,OAAO,EAAE,YAAY,EAAE,iCAAuB;AAE9C,OAAO,EACL,oBAAoB,EACpB,+BAA+B,EAChC,iCAAuB;AAGxB,OAAO,E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AAE,eAAe,EAAE,WAAW,EAAE,4BAAkB;AAGlE,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACb,yBAAe;AAGhB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,6BAAmB;AAGtD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,8BAAoB;AAGtE,OAAO,EAAE,aAAa,EAAE,kCAAwB;AAGhD,OAAO,EAAE,eAAe,EAAE,oCAA0B;AAGpD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,gCAAsB;AAGjE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,wBAAc;AAGzC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,+BAAqB;AAG1D,OAAO,EAAE,YAAY,EAAE,iCAAuB;AAG9C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,0BAAgB","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountSize,\n AvatarAccountVariant,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon';\n\nexport {\n AvatarGroup,\n AvatarGroupSize,\n AvatarGroupVariant,\n} from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork';\n\nexport { AvatarToken, AvatarTokenSize } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken';\n\nexport { BadgeCount } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount';\nexport { BadgeCountSize } from './BadgeCount';\n\nexport { BadgeIcon } from './BadgeIcon';\nexport type { BadgeIconProps } from './BadgeIcon';\n\nexport { BadgeNetwork } from './BadgeNetwork';\nexport type { BadgeNetworkProps } from './BadgeNetwork';\n\nexport { BadgeStatus } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus';\nexport { BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';\n\nexport { BadgeWrapper } from './BadgeWrapper';\nexport type { BadgeWrapperProps } from './BadgeWrapper';\nexport {\n BadgeWrapperPosition,\n BadgeWrapperPositionAnchorShape,\n} from './BadgeWrapper';\nexport type { BadgeWrapperCustomPosition } from './BadgeWrapper';\n\nexport { BannerBase } from './BannerBase';\nexport type { BannerBaseProps } from './BannerBase';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n Box,\n} from './Box';\nexport type { BoxSpacing, BoxProps, BoxBorderWidth } from './Box';\n\nexport { Button, ButtonSize, ButtonVariant } from './Button';\nexport type { ButtonProps } from './Button';\n\nexport { ButtonBase } from './ButtonBase';\nexport type { ButtonBaseProps } from './ButtonBase';\nexport { ButtonBaseSize } from './ButtonBase';\n\nexport { ButtonIcon, ButtonIconSize, ButtonIconVariant } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon';\n\nexport { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox';\n\nexport { HeaderBase } from './HeaderBase';\nexport type { HeaderBaseProps } from './HeaderBase';\n\nexport { HelpText, HelpTextSeverity } from './HelpText';\nexport type { HelpTextProps } from './HelpText';\n\nexport { Icon } from './Icon';\nexport { IconName, IconSize, IconColor } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Input } from './Input';\nexport type { InputProps } from './Input';\n\nexport { Jazzicon } from './temp-components/Jazzicon';\nexport type { JazziconProps } from './temp-components/Jazzicon';\n\nexport { Label } from './Label';\nexport type { LabelProps } from './Label';\n\nexport { Maskicon } from './temp-components/Maskicon';\nexport type { MaskiconProps } from './temp-components/Maskicon';\n\nexport { ModalOverlay } from './ModalOverlay';\nexport type { ModalOverlayProps } from './ModalOverlay';\nexport { ModalBody } from './ModalBody';\nexport type { ModalBodyProps } from './ModalBody';\nexport { ModalFocus } from './ModalFocus';\nexport type { FocusableElement, ModalFocusProps } from './ModalFocus';\nexport { ButtonsAlignment, ModalFooter } from './ModalFooter';\nexport type { ModalFooterButtonProps, ModalFooterProps } from './ModalFooter';\nexport { ModalHeader } from './ModalHeader';\nexport type { ModalHeaderProps } from './ModalHeader';\nexport { Modal, useModalContext } from './Modal';\nexport type { ModalContextType, ModalProps } from './Modal';\nexport {\n ModalContent,\n ModalContentSize,\n MODAL_CONTENT_IGNORE_OUTSIDE_CLICK_ATTR,\n} from './ModalContent';\nexport type { ModalContentProps } from './ModalContent';\n\nexport { Skeleton } from './Skeleton';\nexport type { SkeletonProps } from './Skeleton';\n\nexport { SensitiveText, SensitiveTextLength } from './SensitiveText';\nexport type { SensitiveTextProps } from './SensitiveText';\n\nexport { PopoverHeader } from './PopoverHeader';\nexport type { PopoverHeaderProps } from './PopoverHeader';\n\nexport { Popover, PopoverPosition, PopoverRole } from './Popover';\nexport type { PopoverProps } from './Popover';\n\nexport { Text } from './Text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontFamily,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './Text';\nexport type { TextProps } from './Text';\n\nexport { TextArea, TextAreaResize } from './TextArea';\nexport type { TextAreaProps } from './TextArea';\n\nexport { TextButton, TextButtonSize } from './TextButton';\nexport type { TextButtonProps } from './TextButton';\n\nexport { TextField, TextFieldSize, TextFieldType } from './TextField';\nexport type { TextFieldProps } from './TextField';\n\nexport { FormTextField } from './FormTextField';\nexport type { FormTextFieldProps } from './FormTextField';\n\nexport { TextFieldSearch } from './TextFieldSearch';\nexport type { TextFieldSearchProps } from './TextFieldSearch';\n\nexport { BannerAlert, BannerAlertSeverity } from './BannerAlert';\nexport type { BannerAlertProps } from './BannerAlert';\n\nexport { Tag, TagSeverity } from './Tag';\nexport type { TagProps } from './Tag';\n\nexport { ButtonHero, ButtonHeroSize } from './ButtonHero';\nexport type { ButtonHeroProps } from './ButtonHero';\n\nexport { ButtonFilter } from './ButtonFilter';\nexport type { ButtonFilterProps } from './ButtonFilter';\n\nexport { Toast, Toaster, toast, ToastSeverity } from './Toast';\nexport type { ToastOptions, ToastProps, ToasterProps } from './Toast';\n"]}
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextTransform = exports.OverflowWrap = exports.TextAlign = void 0;
|
|
3
|
+
exports.TextButtonSize = exports.TextTransform = exports.OverflowWrap = exports.TextAlign = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* TODO: Align react native and react types and move to shared types package
|
|
6
6
|
*/
|
|
@@ -30,4 +30,14 @@ exports.TextTransform = {
|
|
|
30
30
|
Capitalize: 'capitalize',
|
|
31
31
|
Normal: 'normal-case',
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* TextButton - size
|
|
35
|
+
*/
|
|
36
|
+
var TextButtonSize;
|
|
37
|
+
(function (TextButtonSize) {
|
|
38
|
+
TextButtonSize["BodyLg"] = "body-lg";
|
|
39
|
+
TextButtonSize["BodyMd"] = "body-md";
|
|
40
|
+
TextButtonSize["BodySm"] = "body-sm";
|
|
41
|
+
TextButtonSize["BodyXs"] = "body-xs";
|
|
42
|
+
})(TextButtonSize || (exports.TextButtonSize = TextButtonSize = {}));
|
|
33
43
|
//# sourceMappingURL=index.cjs.map
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;CACf,CAAC;AAGX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,cAAc;CACd,CAAC;AAGX;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,aAAa;CACb,CAAC","sourcesContent":["/**\n * TODO: Align react native and react types and move to shared types package\n */\n/**\n * Text - textAlign\n */\nexport const TextAlign = {\n Left: 'text-left',\n Center: 'text-center',\n Right: 'text-right',\n Justify: 'text-justify',\n} as const;\nexport type TextAlign = (typeof TextAlign)[keyof typeof TextAlign];\n\n/**\n * Text - overflowWrap\n */\nexport const OverflowWrap = {\n BreakWord: 'break-words',\n Anywhere: 'break-all',\n Normal: 'break-normal',\n} as const;\nexport type OverflowWrap = (typeof OverflowWrap)[keyof typeof OverflowWrap];\n\n/**\n * Text - textTransform\n */\nexport const TextTransform = {\n Uppercase: 'uppercase',\n Lowercase: 'lowercase',\n Capitalize: 'capitalize',\n Normal: 'normal-case',\n} as const;\nexport type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];\n"]}
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;CACf,CAAC;AAGX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,cAAc;CACd,CAAC;AAGX;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,aAAa;CACb,CAAC;AAGX;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;AACpB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB","sourcesContent":["/**\n * TODO: Align react native and react types and move to shared types package\n */\n/**\n * Text - textAlign\n */\nexport const TextAlign = {\n Left: 'text-left',\n Center: 'text-center',\n Right: 'text-right',\n Justify: 'text-justify',\n} as const;\nexport type TextAlign = (typeof TextAlign)[keyof typeof TextAlign];\n\n/**\n * Text - overflowWrap\n */\nexport const OverflowWrap = {\n BreakWord: 'break-words',\n Anywhere: 'break-all',\n Normal: 'break-normal',\n} as const;\nexport type OverflowWrap = (typeof OverflowWrap)[keyof typeof OverflowWrap];\n\n/**\n * Text - textTransform\n */\nexport const TextTransform = {\n Uppercase: 'uppercase',\n Lowercase: 'lowercase',\n Capitalize: 'capitalize',\n Normal: 'normal-case',\n} as const;\nexport type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];\n\n/**\n * TextButton - size\n */\nexport enum TextButtonSize {\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n"]}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -30,4 +30,13 @@ export declare const TextTransform: {
|
|
|
30
30
|
readonly Normal: "normal-case";
|
|
31
31
|
};
|
|
32
32
|
export type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];
|
|
33
|
+
/**
|
|
34
|
+
* TextButton - size
|
|
35
|
+
*/
|
|
36
|
+
export declare enum TextButtonSize {
|
|
37
|
+
BodyLg = "body-lg",
|
|
38
|
+
BodyMd = "body-md",
|
|
39
|
+
BodySm = "body-sm",
|
|
40
|
+
BodyXs = "body-xs"
|
|
41
|
+
}
|
|
33
42
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E;;GAEG;AACH,oBAAY,cAAc;IACxB,MAAM,YAAY;IAClB,MAAM,YAAY;IAClB,MAAM,YAAY;IAClB,MAAM,YAAY;CACnB"}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -30,4 +30,13 @@ export declare const TextTransform: {
|
|
|
30
30
|
readonly Normal: "normal-case";
|
|
31
31
|
};
|
|
32
32
|
export type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];
|
|
33
|
+
/**
|
|
34
|
+
* TextButton - size
|
|
35
|
+
*/
|
|
36
|
+
export declare enum TextButtonSize {
|
|
37
|
+
BodyLg = "body-lg",
|
|
38
|
+
BodyMd = "body-md",
|
|
39
|
+
BodySm = "body-sm",
|
|
40
|
+
BodyXs = "body-xs"
|
|
41
|
+
}
|
|
33
42
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E;;GAEG;AACH,oBAAY,cAAc;IACxB,MAAM,YAAY;IAClB,MAAM,YAAY;IAClB,MAAM,YAAY;IAClB,MAAM,YAAY;CACnB"}
|
package/dist/types/index.mjs
CHANGED
|
@@ -27,4 +27,14 @@ export const TextTransform = {
|
|
|
27
27
|
Capitalize: 'capitalize',
|
|
28
28
|
Normal: 'normal-case',
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* TextButton - size
|
|
32
|
+
*/
|
|
33
|
+
export var TextButtonSize;
|
|
34
|
+
(function (TextButtonSize) {
|
|
35
|
+
TextButtonSize["BodyLg"] = "body-lg";
|
|
36
|
+
TextButtonSize["BodyMd"] = "body-md";
|
|
37
|
+
TextButtonSize["BodySm"] = "body-sm";
|
|
38
|
+
TextButtonSize["BodyXs"] = "body-xs";
|
|
39
|
+
})(TextButtonSize || (TextButtonSize = {}));
|
|
30
40
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;CACf,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,cAAc;CACd,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,aAAa;CACb,CAAC","sourcesContent":["/**\n * TODO: Align react native and react types and move to shared types package\n */\n/**\n * Text - textAlign\n */\nexport const TextAlign = {\n Left: 'text-left',\n Center: 'text-center',\n Right: 'text-right',\n Justify: 'text-justify',\n} as const;\nexport type TextAlign = (typeof TextAlign)[keyof typeof TextAlign];\n\n/**\n * Text - overflowWrap\n */\nexport const OverflowWrap = {\n BreakWord: 'break-words',\n Anywhere: 'break-all',\n Normal: 'break-normal',\n} as const;\nexport type OverflowWrap = (typeof OverflowWrap)[keyof typeof OverflowWrap];\n\n/**\n * Text - textTransform\n */\nexport const TextTransform = {\n Uppercase: 'uppercase',\n Lowercase: 'lowercase',\n Capitalize: 'capitalize',\n Normal: 'normal-case',\n} as const;\nexport type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];\n"]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;CACf,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,cAAc;CACd,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,aAAa;CACb,CAAC;AAGX;;GAEG;AACH,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;AACpB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB","sourcesContent":["/**\n * TODO: Align react native and react types and move to shared types package\n */\n/**\n * Text - textAlign\n */\nexport const TextAlign = {\n Left: 'text-left',\n Center: 'text-center',\n Right: 'text-right',\n Justify: 'text-justify',\n} as const;\nexport type TextAlign = (typeof TextAlign)[keyof typeof TextAlign];\n\n/**\n * Text - overflowWrap\n */\nexport const OverflowWrap = {\n BreakWord: 'break-words',\n Anywhere: 'break-all',\n Normal: 'break-normal',\n} as const;\nexport type OverflowWrap = (typeof OverflowWrap)[keyof typeof OverflowWrap];\n\n/**\n * Text - textTransform\n */\nexport const TextTransform = {\n Uppercase: 'uppercase',\n Lowercase: 'lowercase',\n Capitalize: 'capitalize',\n Normal: 'normal-case',\n} as const;\nexport type TextTransform = (typeof TextTransform)[keyof typeof TextTransform];\n\n/**\n * TextButton - size\n */\nexport enum TextButtonSize {\n BodyLg = 'body-lg',\n BodyMd = 'body-md',\n BodySm = 'body-sm',\n BodyXs = 'body-xs',\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/design-system-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Design system react ui components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@floating-ui/react-dom": "^2.1.2",
|
|
51
|
-
"@metamask/design-system-shared": "^0.
|
|
51
|
+
"@metamask/design-system-shared": "^0.25.0",
|
|
52
52
|
"@metamask/jazzicon": "^2.0.0",
|
|
53
53
|
"@radix-ui/react-slot": "^1.1.0",
|
|
54
54
|
"blo": "^2.0.0",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"tailwind-merge": "^2.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@figma/code-connect": "^1.
|
|
59
|
+
"@figma/code-connect": "^1.4.8",
|
|
60
60
|
"@jest/globals": "^29.7.0",
|
|
61
61
|
"@metamask/auto-changelog": "^6.1.1",
|
|
62
|
-
"@metamask/design-system-tailwind-preset": "^0.
|
|
62
|
+
"@metamask/design-system-tailwind-preset": "^0.10.0",
|
|
63
63
|
"@metamask/utils": "^11.11.0",
|
|
64
64
|
"@svgr/cli": "^8.1.0",
|
|
65
65
|
"@testing-library/dom": "^10.0.0",
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
"typescript": "~5.2.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@metamask/design-system-tailwind-preset": "^0.
|
|
86
|
+
"@metamask/design-system-tailwind-preset": "^0.10.0",
|
|
87
87
|
"@metamask/design-tokens": "^8.1.0",
|
|
88
88
|
"@metamask/utils": "^11.11.0",
|
|
89
89
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
90
90
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
|
-
"node": ">=
|
|
93
|
+
"node": ">=24"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"access": "public",
|