@nypl/design-system-react-components 1.2.0-rc-3 → 1.2.1
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 +1677 -0
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +3 -0
- package/dist/design-system-react-components.cjs.development.js +1606 -2745
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +1606 -2745
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/theme/components/button.d.ts +42 -0
- package/dist/theme/components/checkbox.d.ts +16 -0
- package/dist/theme/components/global.d.ts +19 -1
- package/dist/theme/components/hero.d.ts +4 -0
- package/dist/theme/components/link.d.ts +6 -0
- package/dist/theme/components/radio.d.ts +22 -2
- package/package.json +9 -9
|
@@ -12,6 +12,9 @@ interface LabelProps {
|
|
|
12
12
|
/** Controls whether the "(Required)" text should be displayed alongside the
|
|
13
13
|
* label's text. False by default. */
|
|
14
14
|
isRequired?: boolean;
|
|
15
|
+
/** Allows the '(Required)' text to be changed for language purposes
|
|
16
|
+
* Note: Parenthesis will be added automatically by the component */
|
|
17
|
+
requiredLabelText?: string;
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* A label for form inputs. It should never be used alone.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare type LinkTypes = "action" | "backwards" | "button" | "default" | "external" | "forwards";
|
|
2
|
+
export declare type LinkTypes = "action" | "backwards" | "button" | "buttonPrimary" | "buttonSecondary" | "buttonPill" | "buttonCallout" | "buttonNoBrand" | "buttonDisabled" | "default" | "external" | "forwards";
|
|
3
3
|
export interface LinkProps {
|
|
4
4
|
/** Any child node passed to the component. */
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -56,6 +56,9 @@ export interface InputProps {
|
|
|
56
56
|
/** Whether or not to display the "(Required)" text in the label text.
|
|
57
57
|
* True by default. */
|
|
58
58
|
showRequiredLabel?: boolean;
|
|
59
|
+
/** Allows the '(Required)' text to be changed for language purposes
|
|
60
|
+
* Note: Parenthesis will be added automatically by the component */
|
|
61
|
+
requiredLabelText?: string;
|
|
59
62
|
/** The amount to increase or decrease when using the number type. */
|
|
60
63
|
step?: number;
|
|
61
64
|
/** FOR INTERNAL DS USE ONLY: the input variant to display. */
|