cyrus
17f4ae2cff
[Addon-knob] Fix uncontrolled to controlled warning for booleans
...
Same as #12322 to fix knob addon
2020-10-09 16:57:21 +03:30
Gaëtan Maisse
5b59ae62f4
fix(knobs): update visibility of methods to avoid too broad .d.ts
files
...
All theses functions shouldn't be used outside the class, making them private simplify the types generated in type definition files (`.d.ts`).
This enable us to move some deps to devDeps if they are not used (imported) in generated definition files.
2020-07-25 20:13:15 +02:00
Mehmet Sarıoğlu
14b427f7bc
Update select to support array of undefined, null and boolean as options
2020-06-16 19:09:37 +03:00
Igor
ceb6583450
Show number of controls in controls tabs
2020-06-08 00:01:38 +03:00
Igor
2e28fa7865
Expose addon title as a function in the interface + add number of knobs
2020-06-07 21:28:00 +03:00
Norbert de Langen
5e3be6f267
FIX linting
2020-04-30 18:00:35 +02:00
Michael Shilman
c5bd44f1e8
Merge pull request #10101 from davidcsally/allow-undefined-knobs
...
Addon-knobs: Allow `text` and `number` to take undefined values
2020-04-01 09:07:30 +08:00
Norbert de Langen
f9abc6a986
Merge branch 'next' into tech/remove-deprecations-6
...
# Conflicts:
# addons/events/src/deprecated.js
# addons/options/src/register.ts
# examples/official-storybook/stories/core/decorators.stories.js
# examples/official-storybook/stories/deprecated/addon-events.stories.js
# lib/addons/src/make-decorator.test.ts
# lib/api/src/modules/layout.ts
# lib/cli/src/generate.js
# lib/core/package.json
2020-03-31 09:40:58 +02:00
Norbert de Langen
341fc2d90d
FIX linting
2020-03-27 20:04:50 +01:00
Norbert de Langen
7d15834ee5
REMOVE deprecated APIs addons/knobs
2020-03-26 10:49:49 +01:00
Norbert de Langen
f38d366b90
REMOVE USAGE of allowDeprecatedUsage in lib/addons
2020-03-26 10:41:01 +01:00
David Sally
3899d26bf1
Allow text() and number() knobs to take undefined values
...
This allows developers to pass optional props to text and number knobs
in storybook. A common pattern for this is when a React component has
an optional string or number prop.
2020-03-10 14:29:05 -07:00
Michael Shilman
461837d6bf
Merge pull request #9447 from novli/patch-3
...
Addon-knobs: Add `disableForceUpdate` option
2020-02-21 22:40:29 +08:00
Gaëtan Maisse
f4fd55ff1b
Add missing dependencies or devDeps in some addon packages
2020-02-20 17:10:59 +01:00
Tom Coleman
2717fb02cb
Switch presets to exporting decorators
2020-02-18 12:37:56 +11:00
Michael Shilman
a234c2ccc7
Addon-knobs: Fix typescript types for disableForceUpdate
2020-02-01 19:27:40 +08:00
Michael Shilman
5c9e1898c3
Merge branch 'next' into pr/9447
2020-02-01 17:58:20 +08:00
Norbert de Langen
4daacfe10c
Fix broken link to repo in empty knobs panel ( #9530 )
...
Fix broken link to repo in empty knobs panel
2020-01-21 16:57:47 +01:00
Norbert de Langen
045db27eea
FIX lockfile & FIX linting
2020-01-21 15:44:42 +01:00
Vladimir Novikov
f5a14a5ee5
update typings for disableDebounce and disableForceUpdate knob options
2020-01-19 01:30:27 +03:00
Vladimir Novikov
9fea73ab4b
allow disabling force-update and debounce by knob options
2020-01-19 01:27:34 +03:00
whitebackdoor7
20eee2fa5e
Fix broken link to repo in empty knobs panel
...
The link to repo in empty knobs panel couldn't be triggered. The problem was with missing `cancel={false}` prop, because `Link` component has a `cancel={true}` by default.
2020-01-18 19:04:47 +01:00
Vladimir Novikov
967a3e9a27
addon-knobs disableForceUpdate option
2020-01-14 19:07:46 +03:00
Michael Shilman
42fa30ba0a
Addon-knobs: Fix null knob values in select ( #9416 )
...
Addon-knobs: Fix null knob values in select
2020-01-14 04:47:16 +08:00
Michael Shilman
423665b094
Make presets loadable in main.js addons array
2019-12-25 21:26:53 +08:00
Norbert de Langen
600f7f397e
Ndelangen/remove css usage ( #9003 )
...
Ndelangen/remove css usage
2019-12-10 11:23:39 +01:00
Michael Shilman
e242612078
Essentials first draft
2019-12-01 15:02:33 +08:00
Norbert de Langen
03d4074313
CHANGE css values that are numbers to actual numbers
2019-11-29 02:11:46 +01:00
Michael Shilman
2221b308c8
Merge branch 'next' into addon-knobs-array-of-objects
2019-11-13 08:30:56 +08:00
Norbert de Langen
c801f75076
These packages have types now
2019-10-27 16:50:31 +01:00
Michaël De Boey
99b69566b1
Fix React typings
2019-10-15 00:53:33 +02:00
Hypnosphi
938e0672cf
Fix TS error
2019-10-03 19:29:58 +02:00
Hypnosphi
6ad46e748f
Fix button knob usage with React.useState
2019-10-03 19:22:23 +02:00
Norbert de Langen
59fa1589e4
FIX removed spaced
2019-10-03 15:29:08 +02:00
Norbert de Langen
28fed37f0d
ESlint upgrade
2019-10-03 11:08:40 +02:00
Norbert de Langen
48ab15ea9f
FIX linting
2019-10-02 00:26:57 +02:00
Norbert de Langen
5e41764fd2
Merge branch 'next' into feat/refactor
2019-09-27 16:45:15 +02:00
Norbert de Langen
932f38c9fe
Use the extracted linting configs ( #8213 )
...
Use the extracted linting configs
2019-09-27 14:45:05 +02:00
Norbert de Langen
4d7ab59555
REVERSE unrelated changes
2019-09-27 11:05:17 +02:00
Michael Shilman
38e018d28b
Merge pull request #8006 from christophe-g/8005-liElement-array-property-breaks-storybook-knobs-when-when-value-is-undefined
...
Addon-knobs: Handle undefined array value
2019-09-26 11:47:17 -07:00
Norbert de Langen
1e66545050
FIX a few minor ESlint issues
2019-09-26 19:15:31 +02:00
Matthew
9c29266eeb
addon-knobs now support options as an array OF objects. fixes issue #810
2019-09-17 20:56:24 -05:00
Emilio Martinez
9198f905d1
Addon-knobs: mark options knob display as required
...
Otherwise the knob will render a null control, whish is probably not what users want.
2019-09-07 12:43:23 -07:00
Emilio Martinez
903770e5a3
Addon-knobs: allow array values in options knob
2019-09-07 12:00:19 -07:00
Emilio Martinez
a0bcb34b69
Addon-knobs: allow array values in select
2019-09-07 12:00:17 -07:00
christophe-g
ccb66512a3
make sure element does not fail when knob.value is undefined
2019-09-05 16:23:56 +02:00
jamesgeorge007
2d69748c88
refactor
2019-09-04 22:46:33 +05:30
Kai Röder
8ff1ef315c
add test for array-values
2019-07-26 18:23:45 +02:00
Elliot Larson
cb7098349c
Fix select knob default selection with array
...
When using a select knob with arrays as option values, the selected key for the default value was not getting set properly. The code was comparing two arrays with ===, which is always false. This stringifies the arrays and then does the comparison.
2019-07-25 18:29:46 -07:00
Emilio Martinez
2d6b81e088
Addon-knobs: reflect use of null in radios use cases
2019-07-21 03:21:07 -07:00