@@ -46,7 +47,8 @@ function App() {
-
+
+
diff --git a/examples/create-react-app-typescript/src/components/Examples/DateFieldExample.tsx b/examples/create-react-app-typescript/src/components/Examples/MultiInputDateFieldExample.tsx
similarity index 56%
rename from examples/create-react-app-typescript/src/components/Examples/DateFieldExample.tsx
rename to examples/create-react-app-typescript/src/components/Examples/MultiInputDateFieldExample.tsx
index 9570af74a0..328f9685e5 100644
--- a/examples/create-react-app-typescript/src/components/Examples/DateFieldExample.tsx
+++ b/examples/create-react-app-typescript/src/components/Examples/MultiInputDateFieldExample.tsx
@@ -1,11 +1,11 @@
-import { DateField } from '@cmsgov/design-system';
+import { MultiInputDateField } from '@cmsgov/design-system';
import React from 'react';
-function DateFieldExample() {
+function MultiInputDateFieldExample() {
return (
-
DateField Example
- MultiInputDateField Example
+
+ SingleInputDateField Example
+
+
+ );
+}
+
+export default SingleInputDateFieldExample;
diff --git a/packages/design-system-tokens/src/themes/cmsgov.ts b/packages/design-system-tokens/src/themes/cmsgov.ts
index e26d47fbfe..1206dd2633 100644
--- a/packages/design-system-tokens/src/themes/cmsgov.ts
+++ b/packages/design-system-tokens/src/themes/cmsgov.ts
@@ -97,7 +97,7 @@ export const themeColors: ColorTokens = {
'warn-darker': color['dandelion-700'],
'warn-darkest': color['dandelion-800'],
//
- 'visited': color['windsor-500'],
+ 'visited': color['orchid-800'],
};
const font: FontTokens = {
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index 2d740ce736..82724e2ace 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -59,7 +59,6 @@
"@types/react-dom": "^17.0.10",
"@types/react-transition-group": "^4.4.5",
"classnames": "^2.2.5",
- "core-js": "^3.6.5",
"date-fns": "^2.28.0",
"ev-emitter": "^1.1.1",
"focus-trap-react": "^10.0.0",
diff --git a/packages/design-system/src/components/Autocomplete/Autocomplete.stories.tsx b/packages/design-system/src/components/Autocomplete/Autocomplete.stories.tsx
index a7db761322..f8ed1f0a7f 100644
--- a/packages/design-system/src/components/Autocomplete/Autocomplete.stories.tsx
+++ b/packages/design-system/src/components/Autocomplete/Autocomplete.stories.tsx
@@ -56,7 +56,7 @@ function makeItem(name: string, children?: React.ReactNode) {
export const Default: Story = {
render: Template,
args: {
- textFieldLabel: 'Enter and select a drug to see its cost under each plan',
+ textFieldLabel: 'Enter and select a drug to see its cost under each plan.',
textFieldHint:
'Type a letter to see results, then use ARROW keys to change options, ENTER key to make a selection, ESC to dismiss.',
items: [
@@ -98,7 +98,7 @@ export const Default: Story = {
export const LabeledList: Story = {
render: Template,
args: {
- textFieldLabel: 'Search for and select your county',
+ textFieldLabel: 'Search for and select your county.',
textFieldHint:
'Type "C" then use ARROW keys to change options, ENTER key to make a selection, ESC to dismiss.',
label: 'Select from the options below:',
@@ -118,7 +118,7 @@ export const LabeledList: Story = {
export const CustomMarkup: Story = {
render: Template,
args: {
- textFieldLabel: 'Select a snack that starts with "C"',
+ textFieldLabel: 'Select a snack that starts with "C".',
textFieldHint:
'Type "C" to start seeing a list of snacks. Clicking the last item should not change the input value to "Search all snacks"',
label: 'Select from the options below:',
@@ -168,7 +168,7 @@ export const LoadingMessage: Story = {
clearSearchButton: false,
loading: true,
items: [],
- textFieldLabel: 'This will only show a loading message',
+ textFieldLabel: 'This will only show a loading message.',
textFieldHint: 'List should return string Loading to simulate async data call.',
} as any,
};
@@ -178,7 +178,7 @@ export const NoResults: Story = {
args: {
items: [],
clearSearchButton: false,
- textFieldLabel: 'This will show a "no results" message',
+ textFieldLabel: 'This will show a "no results" message.',
textFieldHint: "Start typing, but you'll only get a loading message.",
} as any,
};
diff --git a/packages/design-system/src/components/ChoiceList/ChoiceList.stories.tsx b/packages/design-system/src/components/ChoiceList/ChoiceList.stories.tsx
index 9c093412eb..9ee5a9be93 100644
--- a/packages/design-system/src/components/ChoiceList/ChoiceList.stories.tsx
+++ b/packages/design-system/src/components/ChoiceList/ChoiceList.stories.tsx
@@ -31,24 +31,24 @@ type Story = StoryObj
;
export const DefaultCheckbox: Story = {
args: {
- label: 'Checkbox example',
- hint: 'Helpful hint text',
- name: 'checkbox_choices',
+ label: 'Check some boxes.',
+ hint: 'This is some helpful hint text.',
+ name: 'checkbox-choices',
type: 'checkbox',
},
};
export const DefaultRadio: Story = {
args: {
- label: 'Radio example',
- name: 'radio_choices',
+ label: 'Choose an option.',
+ name: 'radio-choices',
type: 'radio',
},
};
export const SmallOption: Story = {
args: {
- label: 'Small size example',
+ label: 'Choose a small option.',
name: 'size-variants',
type: 'radio',
size: 'small',
@@ -57,19 +57,18 @@ export const SmallOption: Story = {
export const WithError: Story = {
args: {
- errorMessage: 'Example error message',
- label: 'Small size example',
- name: 'size-variants',
+ errorMessage: 'This is an example error message.',
+ label: 'Choose an option.',
+ name: 'radio-choices',
type: 'radio',
- size: 'small',
},
};
export const InverseOption: Story = {
args: {
- label: 'Inverse example',
- hint: 'Helpful hint text',
- name: 'inverse_choices_field',
+ label: 'Choose an option.',
+ hint: 'This component is on an inversed background.',
+ name: 'inverse-choices',
type: 'checkbox',
inversed: true,
},
@@ -82,8 +81,9 @@ export const InverseOption: Story = {
export const DisabledCheckbox: Story = {
args: {
- label: 'Disabled checkbox example',
- name: 'checkbox_choices',
+ label: 'Check some boxes.',
+ hint: 'These checkboxes are disabled.',
+ name: 'disabled-checkbox-choices',
type: 'checkbox',
choices: [
{ label: 'Disabled choice A', value: 'A', disabled: true },
@@ -94,8 +94,9 @@ export const DisabledCheckbox: Story = {
export const DisabledRadio: Story = {
args: {
- label: 'Disabled radio example',
- name: 'radio_choices',
+ label: 'Choose an option.',
+ hint: 'These radio buttons are disabled.',
+ name: 'disabled-radio-choices',
type: 'radio',
choices: [
{ label: 'Disabled choice A', value: 'A', disabled: true },
@@ -108,7 +109,12 @@ export const ChoiceChildren: Story = {
args: {
name: 'radio_choices',
type: 'radio',
- label: 'Example choices with checked children',
+ label: 'Choose an option.',
+ hint: (
+ <>
+ This example shows choices with checked children.
+ >
+ ),
choices: [
{
label: 'Choice 1',
diff --git a/packages/design-system/src/components/ChoiceList/__snapshots__/Choice.test.tsx.snap b/packages/design-system/src/components/ChoiceList/__snapshots__/Choice.test.tsx.snap
index 0e73f5a345..e6cfac1e03 100644
--- a/packages/design-system/src/components/ChoiceList/__snapshots__/Choice.test.tsx.snap
+++ b/packages/design-system/src/components/ChoiceList/__snapshots__/Choice.test.tsx.snap
@@ -49,7 +49,7 @@ exports[`Choice applies errorMessage to label 1`] = `
>
George Washington
-
Hey! You can't do that!
-
+