@nypl/design-system-react-components 4.4.0-rc → 4.4.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.
@@ -52,6 +52,7 @@ declare const _default: {
52
52
  editorMode: any;
53
53
  errorFilled: any;
54
54
  errorOutline: any;
55
+ fileDownloadAlt: any;
55
56
  fileTypeAudio: any;
56
57
  fileTypeDoc: any;
57
58
  fileTypeGenericDoc: any;
@@ -1,6 +1,6 @@
1
1
  export declare const iconAlignArray: readonly ["left", "right", "none"];
2
2
  export declare const iconColorsArray: readonly ["currentColor", "transparent", "ui.black", "ui.white", "ui.disabled.primary", "ui.disabled.secondary", "ui.error.primary", "ui.error.secondary", "ui.focus", "ui.link.primary", "ui.link.primary-05", "ui.link.primary-10", "ui.link.secondary", "ui.link.tertiary", "ui.status.primary", "ui.status.secondary", "ui.success.primary", "ui.success.secondary", "ui.test", "ui.warning.primary", "ui.warning.secondary", "ui.warning.tertiary", "ui.bg.default", "ui.bg.hover", "ui.bg.active", "ui.border.default", "ui.border.hover", "ui.typography.heading", "ui.typography.body", "ui.typography.inverse.heading", "ui.typography.inverse.body", "ui.gray.xxxx-dark", "ui.gray.xxx-dark", "ui.gray.xx-dark", "ui.gray.x-dark", "ui.gray.dark", "ui.gray.semi-dark", "ui.gray.medium", "ui.gray.semi-medium", "ui.gray.light-cool", "ui.gray.x-light-cool", "ui.gray.xx-light-cool", "ui.gray.light-warm", "ui.gray.x-light-warm", "brand.primary", "brand.secondary", "section.blogs.primary", "section.blogs.secondary", "section.books-and-more.primary", "section.books-and-more.secondary", "section.connect.primary", "section.connect.secondary", "section.education.primary", "section.education.secondary", "section.locations.primary", "section.locations.secondary", "section.research.primary", "section.research.secondary", "section.research-library.lpa", "section.research-library.schomburg", "section.research-library.schwarzman", "section.whats-on.primary", "section.whats-on.secondary", "dark.brand.primary", "dark.brand.secondary", "dark.section.blogs.primary", "dark.section.blogs.secondary", "dark.section.books-and-more.primary", "dark.section.books-and-more.secondary", "dark.section.connect.primary", "dark.section.connect.secondary", "dark.section.education.primary", "dark.section.education.secondary", "dark.section.locations.primary", "dark.section.locations.secondary", "dark.section.research.primary", "dark.section.research.secondary", "dark.section.research-library.primary", "dark.section.research-library.secondary", "dark.section.whats-on.primary", "dark.section.whats-on.secondary", "dark.ui.disabled.primary", "dark.ui.disabled.secondary", "dark.ui.error.primary", "dark.ui.error.secondary", "dark.ui.focus", "dark.ui.link.primary", "dark.ui.link.primary-05", "dark.ui.link.primary-10", "dark.ui.link.secondary", "dark.ui.link.tertiary", "dark.ui.status.primary", "dark.ui.status.secondary", "dark.ui.success.primary", "dark.ui.success.secondary", "dark.ui.test", "dark.ui.warning.secondary", "dark.ui.warning.primary", "dark.ui.bg.page", "dark.ui.bg.default", "dark.ui.bg.hover", "dark.ui.bg.active", "dark.ui.border.default", "dark.ui.border.hover", "dark.ui.typography.heading", "dark.ui.typography.body", "dark.ui.typography.inverse.heading", "dark.ui.typography.inverse.body"];
3
- export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionInfo", "actionLaunch", "actionLightbulb", "actionList", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "actionTaskAlt", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationDynamicFeed", "communicationEmail", "contentBookmark", "contentBookmarkOutline", "contentCopy", "contentFilterList", "contentTypeAudio", "contentTypeBook", "contentTypeEBook", "contentTypeEvent", "contentTypeImage", "contentTypeMisc", "contentTypeVideo", "decorativeBookBroken", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "hardwareLaptop", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsLayers", "mapsPlace", "minus", "moonCrescent", "navigationApps", "navigationArrowDown", "navigationMoreVert", "navigationSubdirectoryArrowLeft", "navigationSubdirectoryArrowRight", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialX", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityCheck", "utilityGridView", "utilityHamburger", "utilityListView", "utilitySearch"];
3
+ export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionInfo", "actionLaunch", "actionLightbulb", "actionList", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "actionTaskAlt", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationDynamicFeed", "communicationEmail", "contentBookmark", "contentBookmarkOutline", "contentCopy", "contentFilterList", "contentTypeAudio", "contentTypeBook", "contentTypeEBook", "contentTypeEvent", "contentTypeImage", "contentTypeMisc", "contentTypeVideo", "decorativeBookBroken", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileDownloadAlt", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "hardwareLaptop", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsLayers", "mapsPlace", "minus", "moonCrescent", "navigationApps", "navigationArrowDown", "navigationMoreVert", "navigationSubdirectoryArrowLeft", "navigationSubdirectoryArrowRight", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialX", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityCheck", "utilityGridView", "utilityHamburger", "utilityListView", "utilitySearch"];
4
4
  export declare const iconRotationsArray: readonly ["rotate0", "rotate90", "rotate180", "rotate270"];
5
5
  export declare const iconSizesArray: readonly ["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge", "xxxxlarge", "xxxxxlarge", "2xlarge", "3xlarge", "4xlarge", "5xlarge"];
6
6
  export declare const iconVariantsArray: readonly ["default", "breadcrumbs"];
@@ -1,4 +1,3 @@
1
- import { defineStyleConfig } from "@chakra-ui/react";
2
1
  export declare const neutral: {
3
2
  borderColor: string;
4
3
  _dark: {
@@ -45,5 +44,82 @@ export declare const recommendation: {
45
44
  borderColor: string;
46
45
  };
47
46
  };
48
- declare const StatusBadge: ReturnType<typeof defineStyleConfig>;
47
+ declare const StatusBadge: {
48
+ baseStyle?: ({ labelFontSize }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
49
+ alignItems: string;
50
+ bgColor: string;
51
+ borderLeft: string;
52
+ borderColor: string;
53
+ borderRadius: string;
54
+ color: string;
55
+ display: string;
56
+ fontSize: any;
57
+ fontWeight: string;
58
+ py: string;
59
+ paddingInlineEnd: string;
60
+ paddingInlineStart: string;
61
+ width: string;
62
+ _dark: {
63
+ backgroundColor: string;
64
+ borderColor: string;
65
+ color: string;
66
+ };
67
+ };
68
+ sizes?: {
69
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
70
+ };
71
+ variants?: {
72
+ neutral: {
73
+ borderColor: string;
74
+ _dark: {
75
+ borderColor: string;
76
+ };
77
+ };
78
+ informative: {
79
+ bgColor: string;
80
+ borderColor: string;
81
+ _dark: {
82
+ bgColor: string;
83
+ borderColor: string;
84
+ };
85
+ };
86
+ positive: {
87
+ bgColor: string;
88
+ borderColor: string;
89
+ _dark: {
90
+ bgColor: string;
91
+ borderColor: string;
92
+ };
93
+ };
94
+ negative: {
95
+ bgColor: string;
96
+ borderColor: string;
97
+ _dark: {
98
+ bgColor: string;
99
+ borderColor: string;
100
+ };
101
+ };
102
+ warning: {
103
+ bgColor: string;
104
+ borderColor: string;
105
+ _dark: {
106
+ bgColor: string;
107
+ borderColor: string;
108
+ };
109
+ };
110
+ recommendation: {
111
+ bgColor: string;
112
+ borderColor: string;
113
+ _dark: {
114
+ bgColor: string;
115
+ borderColor: string;
116
+ };
117
+ };
118
+ };
119
+ defaultProps?: {
120
+ size?: string | number;
121
+ variant?: "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation";
122
+ colorScheme?: string;
123
+ };
124
+ };
49
125
  export default StatusBadge;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.4.0-rc",
3
+ "version": "4.4.0",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",