Skip to content

Commit 538b3bd

Browse files
proxihenningmu
andauthored
Fix label proptype to allow number. (#191)
* Fix label proptype to allow number. * Bumped version and updated changelog * Updates static build artefacts Co-authored-by: Henning Muszynski <henningmu@users.noreply.github.com>
1 parent 369480b commit 538b3bd

19 files changed

+24
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.
44

5+
## 3.1.1
6+
7+
- [Tweak] Better typing for the checkbox label
8+
59
## 3.1.0
610

711
- [Feature] Adds typings for all components and utilities

dist/components/Checkbox.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ export type Props = {
33
checked?: boolean;
44
disabled?: boolean;
55
onChange?: (checked: boolean) => void;
6-
label?: string;
6+
label?: React.ReactText;
77
};
88
/**
99
* @typedef {Object} Props
1010
* @property {boolean | undefined} [checked]
1111
* @property {boolean | undefined} [disabled]
1212
* @property {(checked: boolean) => void} [onChange]
13-
* @property {string} [label]
13+
* @property {string | number | undefined} [label]
1414
*/
1515
/** @type {React.FC<Props>} */
1616
declare const Checkbox: React.FC<Props>;

dist/reactist.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reactist.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
}</script><style>#root[hidden],
7171
#docs-root[hidden] {
7272
display: none !important;
73-
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.196f6b49576619e934da.bundle.js"></script><script src="vendors~main.196f6b49576619e934da.bundle.js"></script><script src="main.196f6b49576619e934da.bundle.js"></script></body></html>
73+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.9fb5dacf2ef9facad480.bundle.js"></script><script src="vendors~main.9fb5dacf2ef9facad480.bundle.js"></script><script src="main.9fb5dacf2ef9facad480.bundle.js"></script></body></html>

docs/main.196f6b49576619e934da.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/main.196f6b49576619e934da.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.9fb5dacf2ef9facad480.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.9fb5dacf2ef9facad480.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/runtime~main.196f6b49576619e934da.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)