Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit cda20be

Browse files
authored
Merge pull request #110 from plotly/proptypes
proptypes - don't let valid values break validation
2 parents daf7870 + 528a747 commit cda20be

File tree

266 files changed

+3150
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+3150
-695
lines changed

Diff for: dash_html_components/A.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class A(Component):
3636
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3737
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3838
- draggable (string; optional): Defines whether the element can be dragged.
39-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
39+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
4040
- lang (string; optional): Defines the language used in the element.
4141
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
4242
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Abbr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Abbr(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Acronym.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Acronym(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Address.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Address(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Area.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Area(Component):
3838
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3939
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
4040
- draggable (string; optional): Defines whether the element can be dragged.
41-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
41+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
4242
- lang (string; optional): Defines the language used in the element.
4343
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
4444
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Article.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Article(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Aside.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Aside(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Audio.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class Audio(Component):
2323
- role (string; optional): The ARIA role attribute
2424
- data-* (string; optional): A wildcard data attribute
2525
- aria-* (string; optional): A wildcard aria attribute
26-
- autoPlay (string; optional): The audio or video should play as soon as possible.
27-
- controls (string; optional): Indicates whether the browser should show playback controls to the user.
26+
- autoPlay (boolean; optional): The audio or video should play as soon as possible.
27+
- controls (boolean; optional): Indicates whether the browser should show playback controls to the user.
2828
- crossOrigin (string; optional): How the element handles cross-origin requests
29-
- loop (string; optional): Indicates whether the media should start playing from the start when it's finished.
30-
- muted (string; optional): Indicates whether the audio will be initially silenced on page load.
29+
- loop (boolean; optional): Indicates whether the media should start playing from the start when it's finished.
30+
- muted (boolean; optional): Indicates whether the audio will be initially silenced on page load.
3131
- preload (string; optional): Indicates whether the whole resource, parts of it or nothing should be preloaded.
3232
- src (string; optional): The URL of the embeddable content.
3333
- accessKey (string; optional): Defines a keyboard shortcut to activate or add focus to the element.
@@ -36,7 +36,7 @@ class Audio(Component):
3636
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3737
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3838
- draggable (string; optional): Defines whether the element can be dragged.
39-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
39+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
4040
- lang (string; optional): Defines the language used in the element.
4141
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
4242
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/B.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class B(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Base(Component):
3131
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3232
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3333
- draggable (string; optional): Defines whether the element can be dragged.
34-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
34+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3535
- lang (string; optional): Defines the language used in the element.
3636
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3737
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Basefont.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Basefont(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Bdi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Bdi(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Bdo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Bdo(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Big.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Big(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Blink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Blink(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Blockquote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Blockquote(Component):
3030
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3131
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3232
- draggable (string; optional): Defines whether the element can be dragged.
33-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
33+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3434
- lang (string; optional): Defines the language used in the element.
3535
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3636
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Br.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Br(Component):
2929
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3030
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3131
- draggable (string; optional): Defines whether the element can be dragged.
32-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
32+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3333
- lang (string; optional): Defines the language used in the element.
3434
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3535
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Button.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class Button(Component):
2323
- role (string; optional): The ARIA role attribute
2424
- data-* (string; optional): A wildcard data attribute
2525
- aria-* (string; optional): A wildcard aria attribute
26-
- autoFocus (string; optional): The element should be automatically focused after the page loaded.
27-
- disabled (string; optional): Indicates whether the user can interact with the element.
26+
- autoFocus (boolean; optional): The element should be automatically focused after the page loaded.
27+
- disabled (boolean; optional): Indicates whether the user can interact with the element.
2828
- form (string; optional): Indicates the form that is the owner of the element.
2929
- formAction (string; optional): Indicates the action of the element, overriding the action defined in the <form>.
3030
- name (string; optional): Name of the element. For example used by the server to identify the fields in form submits.
@@ -36,7 +36,7 @@ class Button(Component):
3636
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3737
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3838
- draggable (string; optional): Defines whether the element can be dragged.
39-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
39+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
4040
- lang (string; optional): Defines the language used in the element.
4141
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
4242
- style (dict; optional): Defines CSS styles which will override styles previously set.

Diff for: dash_html_components/Canvas.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class Canvas(Component):
2323
- role (string; optional): The ARIA role attribute
2424
- data-* (string; optional): A wildcard data attribute
2525
- aria-* (string; optional): A wildcard aria attribute
26-
- height (string; optional): Specifies the height of elements listed here. For all other elements, use the CSS height property. Note: In some instances, such as <div>, this is a legacy attribute, in which case the CSS height property should be used instead.
27-
- width (string; optional): For the elements listed here, this establishes the element's width. Note: For all other instances, such as <div>, this is a legacy attribute, in which case the CSS width property should be used instead.
26+
- height (string | number; optional): Specifies the height of elements listed here. For all other elements, use the CSS height property. Note: In some instances, such as <div>, this is a legacy attribute, in which case the CSS height property should be used instead.
27+
- width (string | number; optional): For the elements listed here, this establishes the element's width. Note: For all other instances, such as <div>, this is a legacy attribute, in which case the CSS width property should be used instead.
2828
- accessKey (string; optional): Defines a keyboard shortcut to activate or add focus to the element.
2929
- className (string; optional): Often used with CSS to style elements with common properties.
3030
- contentEditable (string; optional): Indicates whether the element's content is editable.
3131
- contextMenu (string; optional): Defines the ID of a <menu> element which will serve as the element's context menu.
3232
- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
3333
- draggable (string; optional): Defines whether the element can be dragged.
34-
- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
34+
- hidden (boolean; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
3535
- lang (string; optional): Defines the language used in the element.
3636
- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
3737
- style (dict; optional): Defines CSS styles which will override styles previously set.

0 commit comments

Comments
 (0)