Skip to content

Commit

Permalink
refactor(react): update number input tests (#11804)
Browse files Browse the repository at this point in the history
* refactor(react): update number input tests

* docs(react): update import to skeleton from stories

* fix(form): update import in story for named numberinput

Co-authored-by: Abbey Hart <[email protected]>
Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
7 people authored Aug 1, 2022
1 parent f797002 commit f22522b
Show file tree
Hide file tree
Showing 15 changed files with 877 additions and 2,072 deletions.
103 changes: 103 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4874,6 +4874,109 @@ Map {
},
"NumberInput" => Object {
"$$typeof": Symbol(react.forward_ref),
"propTypes": Object {
"allowEmpty": Object {
"type": "bool",
},
"className": Object {
"type": "string",
},
"defaultValue": Object {
"args": Array [
Array [
Object {
"type": "number",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"disabled": Object {
"type": "bool",
},
"helperText": Object {
"type": "node",
},
"hideLabel": Object {
"type": "bool",
},
"hideSteppers": Object {
"type": "bool",
},
"iconDescription": Object {
"type": "string",
},
"id": Object {
"isRequired": true,
"type": "string",
},
"invalid": Object {
"type": "bool",
},
"invalidText": Object {
"type": "node",
},
"label": Object {
"type": "node",
},
"light": [Function],
"max": Object {
"type": "number",
},
"min": Object {
"type": "number",
},
"onChange": Object {
"type": "func",
},
"onClick": Object {
"type": "func",
},
"onKeyUp": Object {
"type": "func",
},
"readOnly": Object {
"type": "bool",
},
"size": Object {
"args": Array [
Array [
"sm",
"md",
"lg",
],
],
"type": "oneOf",
},
"step": Object {
"type": "number",
},
"translateWithId": Object {
"type": "func",
},
"value": Object {
"args": Array [
Array [
Object {
"type": "number",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"warn": Object {
"type": "bool",
},
"warnText": Object {
"type": "node",
},
},
"render": [Function],
},
"NumberInputSkeleton" => Object {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Form/Form-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Checkbox from '../Checkbox';
import Form from '../Form';
import FormGroup from '../FormGroup';
import FileUploader from '../FileUploader';
import NumberInput from '../NumberInput';
import { NumberInput } from '../NumberInput';
import RadioButton from '../RadioButton';
import RadioButtonGroup from '../RadioButtonGroup';
import Button from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Form/next/Form.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Checkbox from '../../Checkbox';
import Form from '../';
import FormGroup from '../../FormGroup';
import FileUploader from '../../FileUploader';
import NumberInput from '../../NumberInput';
import { NumberInput } from '../../NumberInput';
import RadioButton from '../../RadioButton';
import RadioButtonGroup from '../../RadioButtonGroup';
import Button from '../../Button';
Expand Down
111 changes: 0 additions & 111 deletions packages/react/src/components/NumberInput/NumberInput-story.js

This file was deleted.

Loading

0 comments on commit f22522b

Please sign in to comment.