Copy disabled (too large)
Download .txt
Showing preview only (11,051K chars total). Download the full file to get everything.
Repository: StratoDem/sd-material-ui
Branch: master
Commit: 453ae8de5201
Files: 115
Total size: 10.5 MB
Directory structure:
gitextract_ckrq4u4q/
├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .flowconfig
├── .github/
│ ├── ISSUE_TEMPLATE.md
│ ├── PULL_REQUEST_TEMPLATE.md
│ ├── dependabot.yml
│ └── workflows/
│ └── publish-pypi.yml
├── .gitignore
├── .npmignore
├── .prettierrc
├── .pylintrc
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE.txt
├── MANIFEST.in
├── README.md
├── _validate_init.py
├── config/
│ ├── webpack.config.dev.js
│ └── webpack.config.dist.js
├── infra/
│ └── ci/
│ └── Tollgate.groovy
├── package.json
├── pytest.ini
├── requirements.txt
├── review_checklist.md
├── scripts/
│ └── publish-pypi.sh
├── sd_material_ui/
│ ├── Accordion.py
│ ├── AppBar.py
│ ├── AutoComplete.py
│ ├── BottomNavigation.py
│ ├── Button.py
│ ├── Card.py
│ ├── Checkbox.py
│ ├── CircularProgress.py
│ ├── CollapseTransition.py
│ ├── Dialog.py
│ ├── Divider.py
│ ├── Drawer.py
│ ├── DropDownMenu.py
│ ├── FadeTransition.py
│ ├── FlatButton.py
│ ├── FontIcon.py
│ ├── GrowTransition.py
│ ├── IconButton.py
│ ├── LinearBuffer.py
│ ├── LinearDeterminate.py
│ ├── LinearIndeterminate.py
│ ├── Pagination.py
│ ├── Paper.py
│ ├── Picker.py
│ ├── Popover.py
│ ├── Questions.py
│ ├── QuestionsTabs.py
│ ├── RadioButtonGroup.py
│ ├── RaisedButton.py
│ ├── SlideTransition.py
│ ├── Snackbar.py
│ ├── Stepper.py
│ ├── Subheader.py
│ ├── Tabs.py
│ ├── Toggle.py
│ ├── Toolbar.py
│ ├── Tooltip.py
│ ├── ZoomTransition.py
│ ├── __init__.py
│ ├── _imports_.py
│ ├── metadata.json
│ ├── package.json
│ ├── sd_material_ui.dev.js
│ └── sdmaterialui.py
├── setup.py
├── src/
│ └── lib/
│ ├── components/
│ │ ├── Accordion.react.js
│ │ ├── AppBar.react.js
│ │ ├── AutoComplete.react.js
│ │ ├── BottomNavigation.react.js
│ │ ├── Button.react.js
│ │ ├── Card.react.js
│ │ ├── Checkbox.react.js
│ │ ├── CircularProgress.react.js
│ │ ├── CollapseTransition.react.js
│ │ ├── Dialog.react.js
│ │ ├── Divider.react.js
│ │ ├── Drawer.react.js
│ │ ├── DropDownMenu.react.js
│ │ ├── FadeTransition.react.js
│ │ ├── FontIcon.react.js
│ │ ├── GrowTransition.react.js
│ │ ├── LinearBuffer.react.js
│ │ ├── LinearDeterminate.react.js
│ │ ├── LinearIndeterminate.react.js
│ │ ├── Pagination.react.js
│ │ ├── Paper.react.js
│ │ ├── Picker.react.js
│ │ ├── Popover.react.js
│ │ ├── RadioButtonGroup.react.js
│ │ ├── SlideTransition.react.js
│ │ ├── Snackbar.react.js
│ │ ├── Stepper.react.js
│ │ ├── Subheader.react.js
│ │ ├── Tabs.react.js
│ │ ├── Toggle.react.js
│ │ ├── Toolbar.react.js
│ │ ├── Tooltip.react.js
│ │ └── ZoomTransition.react.js
│ └── index.js
├── test/
│ ├── IntegrationTests.py
│ ├── TESTING.md
│ ├── __init__.py
│ ├── _test-env.js
│ ├── test_integration.py
│ └── utils.py
├── usage.py
├── webpack.config.js
└── webpack.serve.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
],
"@babel/plugin-proposal-class-properties"
]
}
================================================
FILE: .editorconfig
================================================
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
[*.py]
max_line_length = 100
[*.js]
indent_size = 2
[*.css]
indent_size = 2
================================================
FILE: .eslintignore
================================================
*.css
registerServiceWorker.js
================================================
FILE: .eslintrc
================================================
{
"extends": ["eslint:recommended", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"templateStrings": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"jest": true,
"node": true
},
"globals": {
"jest": true
},
"plugins": [
"react",
"import"
],
"rules": {
"accessor-pairs": ["error"],
"block-scoped-var": ["error"],
"consistent-return": ["error"],
"curly": "off",
"default-case": ["error"],
"dot-location": ["off"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"guard-for-in": ["off"],
"import/named": ["off"],
"import/no-duplicates": ["error"],
"import/no-named-as-default": ["error"],
"new-cap": "off",
"no-alert": [1],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-console": ["off"],
"no-div-regex": ["error"],
"no-dupe-keys": ["error"],
"no-else-return": ["error"],
"no-empty-pattern": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-boolean-cast": ["error"],
"no-inline-comments": "off",
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"no-inner-declarations": ["off"],
"no-invalid-this": ["error"],
"no-iterator": ["error"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-multi-str": ["error"],
"no-native-reassign": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-param-reassign": ["error"],
"no-process-env": ["warn"],
"no-proto": ["error"],
"no-redeclare": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-throw-literal": ["error"],
"no-undefined": ["error"],
"no-unused-expressions": ["error"],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-with": ["error"],
"prefer-const": ["error"],
"radix": ["error"],
"react/jsx-no-duplicate-props": ["error"],
"react/jsx-no-undef": ["error"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"react/no-did-update-set-state": ["error"],
"react/no-direct-mutation-state": ["error"],
"react/no-is-mounted": ["error"],
"react/no-unknown-property": ["error"],
"react/prefer-es6-class": ["error", "always"],
"react/prop-types": "error",
"valid-jsdoc": ["off"],
"yoda": ["error"],
"spaced-comment": ["error", "always", {
"block": {
"exceptions": ["*"]
}
}],
"no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^e$"
}],
"no-magic-numbers": "off",
"no-underscore-dangle": ["off"]
}
}
================================================
FILE: .flowconfig
================================================
[options]
unsafe.enable_getters_and_setters=true
module.file_ext=.js
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
esproposal.decorators=ignore
# webpack loaders
module.name_mapper='.*\.css$' -> '<PROJECT_ROOT>/flow/stub/css-modules.js'
module.name_mapper='.*\.scss$' -> '<PROJECT_ROOT>/flow/stub/css-modules.js'
module.system.node.resolve_dirname=src
module.system.node.resolve_dirname=node_modules
[libs]
node_modules/immutable/dist/immutable.js.flow
[ignore]
.*/.json
.*/__tests__/.*
.*/node_modules/fbjs/.*
================================================
FILE: .github/ISSUE_TEMPLATE.md
================================================
<!--- Provide a general summary of your changes in the Title above -->
<!--- MANDATORY -->
<!--- Always fill out a description, even if you are reporting a simple issue. If it is something truly trivial or simple, it is okay to keep it short and sweet. -->
## Description
<!--- A clear and concise description of what the issue is about. Include things like expected/desired behavior, actual behavior, motivation or rational for a new feature, what files it concerns, etc. -->
<!--- WHETHER OR NOT YOU FILL OUT THE REST OF THIS TEMPLATE IS UP TO YOUR DISCRETION -->
<!--- Fill out the following sections when you have a large enhancement to build or an involved and multifaceted bug to fix. -->
## Supporting Media
<!--- Include screenshots, links to diagrams, etc. if it helps communicate the issue. If it doesn't, feel free to delete this section. -->
## To Reproduce
<!--- If this issue is describing a bug, include some steps to reproduce the behavior. If not, feel free to delete this section. -->
## Tasks
<!--- Include specific tasks in the order they need to be done in. -->
- [ ] Task 1
- [ ] Task 2
- [ ] Task 3
================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
<!--- Provide a general summary of your changes in the Title above -->
<!--- MANDATORY -->
<!--- Always fill out a description and motivation. If it is something truly trivial or simple, it is okay to keep it short and sweet. -->
## Description
<!--- Describe your changes in detail and link to the issue that is driving this pull request (if any). -->
## Motivation and Context
<!--- Why is this change required? What problem does it solve, or what new feature does it add? -->
## How Has This Been Tested?
<!--- Did you run unit tests on your components? -->
# Update version and CHANGELOG
## Screenshots (if appropriate):
================================================
FILE: .github/dependabot.yml
================================================
version: 2
registries:
npm-registry-registry-npmjs-org:
type: npm-registry
url: https://registry.npmjs.org
token: "${{secrets.NPM_REGISTRY_REGISTRY_NPMJS_ORG_TOKEN}}"
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 20
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 20
ignore:
- dependency-name: npm
versions:
- 6.14.11
- 7.10.0
- 7.11.0
- 7.5.2
- 7.5.3
- 7.5.4
- 7.5.6
- 7.6.0
- 7.6.1
- 7.6.2
- 7.6.3
- 7.7.0
- 7.7.4
- 7.7.5
- 7.7.6
- 7.8.0
- 7.9.0
- dependency-name: css-loader
versions:
- 5.0.1
- 5.0.2
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.2.0
- 5.2.1
- 5.2.2
- dependency-name: eslint
versions:
- 7.18.0
- 7.19.0
- 7.20.0
- 7.21.0
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: "@babel/core"
versions:
- 7.12.13
- 7.12.16
- 7.12.17
- 7.13.1
- 7.13.10
- 7.13.13
- 7.13.14
- 7.13.15
- 7.13.8
- dependency-name: y18n
versions:
- 4.0.1
- 4.0.2
- dependency-name: flow-bin
versions:
- 0.143.1
- 0.144.0
- 0.145.0
- 0.146.0
- 0.147.0
- 0.148.0
- dependency-name: eslint-plugin-react
versions:
- 7.22.0
- 7.23.0
- 7.23.1
- dependency-name: eslint-config-prettier
versions:
- 7.2.0
- 8.0.0
- 8.1.0
- 8.2.0
- dependency-name: "@material-ui/core"
versions:
- 4.11.3
- dependency-name: "@babel/preset-flow"
versions:
- 7.12.1
- 7.12.13
- dependency-name: "@babel/plugin-proposal-class-properties"
versions:
- 7.12.1
- 7.12.13
- dependency-name: webpack-cli
versions:
- 4.4.0
- 4.5.0
- dependency-name: "@date-io/date-fns"
versions:
- 2.10.6
registries:
- npm-registry-registry-npmjs-org
================================================
FILE: .github/workflows/publish-pypi.yml
================================================
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt install -y libsnappy-dev
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
================================================
FILE: .gitignore
================================================
# Created by .ignore support plugin (hsz.mobi)
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
### SublimeText template
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# Workspace files are user-specific
*.sublime-workspace
# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project
# SFTP configuration file
sftp-config.json
# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache
# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
================================================
FILE: .npmignore
================================================
# dependencies
/node_modules
# testing
/coverage
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Development folders and files
public
src
scripts
config
.travis.yml
CHANGELOG.md
README.md
================================================
FILE: .prettierrc
================================================
{
"tabWidth": 4,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
}
================================================
FILE: .pylintrc
================================================
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Use multiple processes to speed up Pylint.
jobs=1
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
# Pickle collected data for later comparisons.
persistent=yes
# Specify a configuration file.
#rcfile=
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages
suggestion-mode=yes
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
raw-checker-failed,
bad-inline-option,
locally-disabled,
locally-enabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
no-member,
missing-docstring,
invalid-name,
redefined-builtin,
wrong-import-order,
too-many-arguments,
too-many-locals,
consider-using-enumerate,
len-as-condition,
too-many-branches,
too-many-statements,
blacklisted-name,
line-too-long,
bare-except,
duplicate-code,
too-many-function-args,
attribute-defined-outside-init,
broad-except
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=c-extension-no-member
[REPORTS]
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
#msg-template=
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio).You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text
# Tells whether to display a full report or only the messages
reports=no
# Activate the evaluation score.
score=yes
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
# Complete name of functions that never returns. When checking for
# inconsistent-return-statements if a never returning function is called then
# it will be considered as an explicit return statement and no message will be
# printed.
never-returning-functions=optparse.Values,sys.exit
[BASIC]
# Naming style matching correct argument names
argument-naming-style=snake_case
# Regular expression matching correct argument names. Overrides argument-
# naming-style
#argument-rgx=
# Naming style matching correct attribute names
attr-naming-style=snake_case
# Regular expression matching correct attribute names. Overrides attr-naming-
# style
#attr-rgx=
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,
bar,
baz,
toto,
tutu,
tata
# Naming style matching correct class attribute names
class-attribute-naming-style=any
# Regular expression matching correct class attribute names. Overrides class-
# attribute-naming-style
#class-attribute-rgx=
# Naming style matching correct class names
class-naming-style=PascalCase
# Regular expression matching correct class names. Overrides class-naming-style
#class-rgx=
# Naming style matching correct constant names
const-naming-style=UPPER_CASE
# Regular expression matching correct constant names. Overrides const-naming-
# style
#const-rgx=
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1
# Naming style matching correct function names
function-naming-style=snake_case
# Regular expression matching correct function names. Overrides function-
# naming-style
#function-rgx=
# Good variable names which should always be accepted, separated by a comma
good-names=i,
j,
k,
ex,
Run,
_
# Include a hint for the correct naming format with invalid-name
include-naming-hint=no
# Naming style matching correct inline iteration names
inlinevar-naming-style=any
# Regular expression matching correct inline iteration names. Overrides
# inlinevar-naming-style
#inlinevar-rgx=
# Naming style matching correct method names
method-naming-style=snake_case
# Regular expression matching correct method names. Overrides method-naming-
# style
#method-rgx=
# Naming style matching correct module names
module-naming-style=snake_case
# Regular expression matching correct module names. Overrides module-naming-
# style
#module-rgx=
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# List of decorators that produce properties, such as abc.abstractproperty. Add
# to this list to register other decorators that produce valid properties.
property-classes=abc.abstractproperty
# Naming style matching correct variable names
variable-naming-style=snake_case
# Regular expression matching correct variable names. Overrides variable-
# naming-style
#variable-rgx=
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=4
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=100
# Maximum number of lines in a module
max-module-lines=1000
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator
# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
[LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
XXX,
[SIMILARITIES]
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no
# Minimum lines number of a similarity.
min-similarity-lines=4
[SPELLING]
# Limits count of emitted suggestions for spelling mistakes
max-spelling-suggestions=4
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
spelling-dict=
# List of comma separated words that should not be checked.
spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words=no
[TYPECHECK]
# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers.
contextmanager-decorators=contextlib.contextmanager
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# This flag controls whether pylint should warn about no-member and similar
# checks whenever an opaque object is returned when inferring. The inference
# can return multiple potential results while evaluating a Python object, but
# some branches might not be evaluated, which results in partial inference. In
# that case, it might be useful to still emit no-member and other checks for
# the rest of the inferred objects.
ignore-on-opaque-inference=yes
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes=optparse.Values,thread._local,_thread._local
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
missing-member-hint=yes
# The minimum edit distance a name should have in order to be considered a
# similar match for a missing member name.
missing-member-hint-distance=1
# The total number of similar names that should be taken in consideration when
# showing a hint for a missing member.
missing-member-max-choices=1
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
# Tells whether unused global variables should be treated as a violation.
allow-global-unused-variables=yes
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,
_cb
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
ignored-argument-names=_.*|^ignored_|^unused_
# Tells whether we should check for unused import in __init__ files.
init-import=no
# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,past.builtins,future.builtins
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,
__new__,
setUp
# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,
_fields,
_replace,
_source,
_make
# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
[DESIGN]
# Maximum number of arguments for function / method
max-args=5
# Maximum number of attributes for a class (see R0902).
max-attributes=7
# Maximum number of boolean expressions in a if statement
max-bool-expr=5
# Maximum number of branch for function / method body
max-branches=12
# Maximum number of locals for function / method body
max-locals=15
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of statements in function / method body
max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=2
[IMPORTS]
# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no
# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
analyse-fallback-blocks=no
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=optparse,tkinter.tix
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
ext-import-graph=
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
import-graph=
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
int-import-graph=
# Force import order to recognize a module as part of the standard
# compatibility libraries.
known-standard-library=
# Force import order to recognize a module as part of a third party library.
known-third-party=enchant
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
================================================
FILE: CHANGELOG.md
================================================
# Change Log for sd-material-ui
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 4.6.0 2021-10-08
### Adds
- Adds three new loading components:
- LinearBuffer
- LinearDeterminate (with or without label)
- LinearIndeterminate
### Related issues:
- [#786](https://github.com/StratoDem/sd-material-ui/issues/786)
## 4.5.1 2021-07-14
### Fixes
- Fixes picker so it no longer converts timezones automatically, which was causing it to output a date other than what was expected sometimes
- Fixes picker so it no longer displays the date of the beginning of the epoch when the user clears the date, it will now show 2021/01/01
### Related issues:
- [#729](https://github.com/StratoDem/sd-material-ui/issues/729)
## 4.5.0 2021-05-17
### Adds
- Adds AppBar and Toolbar components
### Related issues:
- [#39](https://github.com/StratoDem/sd-material-ui/issues/39)
## 4.4.1 2021-03-16
### Fixes
- Fixes Stepper to allow activeStep to be changed by callbacks
## 4.4.0 2021-02-02
### Adds
- Adds tooltip component
### Related issues:
- [#585](https://github.com/StratoDem/sd-material-ui/issues/585)
## 4.3.2 2020-12-28
### Fixes
- Fixes file that was missing from git
## 4.3.1 2020-12-22
### Fixes
- Fixes version for deployment on pypi
## 4.3.0 2020-12-22
### Adds
- Adds date and time picker components to sd-material-ui
### Related issues:
- [#560](https://github.com/StratoDem/sd-material-ui/issues/560)
## 4.2.0 2020-10-30
### Adds
- Adds `Pagination` component (https://material-ui.com/components/pagination/)
### Related Issues
- [#528](https://github.com/StratoDem/sd-material-ui/issues/528)
## 4.1.0 2020-10-13
### Adds
- Adds support for variant to Drawer
## 4.0.3 2020-10-13
### Adds
- Adds support for children to Snackbar
## 4.0.2 2020-10-09
### Fixes
- `RadioButtonGroup` now correctly updates `valueSelected` internally in state, as well as from
externally changed props
## 4.0.1 2020-09-01
### Fixes
- Fixes how the following components handle receiving props:
- DropDownMenu
- RadioButtonGroup
- Toggle
- Passes the defaultExpanded prop to the Accordion base component
### Related issues:
- [470](https://github.com/StratoDem/sd-material-ui/issues/470)
## 4.0.0 2020-08-11
### Changes
- Updates many dependencies to resolve various vulnerabilities
- Changes the following components to use the latest `material-ui`
- Accordion
- Autocomplete
- BottomNavigation
- Button
- Card
- Checkbox
- CircularProgress
- CollapseTransition
- Dialog
- Divider
- Drawer
- DropDownMenu
- FontIcon
- Paper
- Popover
- RadioButtonGroup
- Snackbar
- Stepper
- Subheader
- Tabs
- Toggle
### Related issues:
- [397](https://github.com/StratoDem/sd-material-ui/issues/397)
- [398](https://github.com/StratoDem/sd-material-ui/issues/398)
- [399](https://github.com/StratoDem/sd-material-ui/issues/399)
- [400](https://github.com/StratoDem/sd-material-ui/issues/400)
- [401](https://github.com/StratoDem/sd-material-ui/issues/401)
- [402](https://github.com/StratoDem/sd-material-ui/issues/402)
- [403](https://github.com/StratoDem/sd-material-ui/issues/403)
- [404](https://github.com/StratoDem/sd-material-ui/issues/404)
- [405](https://github.com/StratoDem/sd-material-ui/issues/405)
- [406](https://github.com/StratoDem/sd-material-ui/issues/406)
- [407](https://github.com/StratoDem/sd-material-ui/issues/407)
- [408](https://github.com/StratoDem/sd-material-ui/issues/408)
- [409](https://github.com/StratoDem/sd-material-ui/issues/409)
- [410](https://github.com/StratoDem/sd-material-ui/issues/410)
- [411](https://github.com/StratoDem/sd-material-ui/issues/411)
- [412](https://github.com/StratoDem/sd-material-ui/issues/412)
- [414](https://github.com/StratoDem/sd-material-ui/issues/414)
- [415](https://github.com/StratoDem/sd-material-ui/issues/415)
- [416](https://github.com/StratoDem/sd-material-ui/issues/416)
- [417](https://github.com/StratoDem/sd-material-ui/issues/417)
- [418](https://github.com/StratoDem/sd-material-ui/issues/418)
- [444](https://github.com/StratoDem/sd-material-ui/issues/444)
- [446](https://github.com/StratoDem/sd-material-ui/issues/446)
## 3.2.0 2019-11-04
### Adds
- Adds `value` prop to `Tabs` component. Add a `value` to the component initialization and a `value` key and value pair for each tab to the `tabPropsArray` to make the component expose the `value` for use in callbacks. Existing behavior should not change.
### Related issues:
- [235](https://github.com/StratoDem/sd-material-ui/issues/235)
## 3.1.2 2019-07-10
### Adds
- Adds `*ClassName` props to `Dialog` component for more styling control
## 3.1.1 2019-07-09
### Changes
- Internal updates:
- `@babel/preset-env` to `v7.5.2` [#134](https://github.com/StratoDem/sd-material-ui/pull/134)
- `webpack` to `v4.35.3` [#133](https://github.com/StratoDem/sd-material-ui/pull/133)
- `babel` to `v7.5.0` [#132](https://github.com/StratoDem/sd-material-ui/pull/132)
- `webpack-serve` to `v3` [#131](https://github.com/StratoDem/sd-material-ui/pull/131)
- `react-docgen` to `v4` [#130](https://github.com/StratoDem/sd-material-ui/pull/130)
- `eslint` to `v6` [#128](https://github.com/StratoDem/sd-material-ui/pull/128)
## 3.1.0 2019-07-03
### Changes
- Internal: Upgrades package structure to newest [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate)
## 3.0.2 2018-03-15
### Fixes
- Fixes a problem where the `open` prop was not always correctly set for the `Drawer` component
## 3.0.1 2018-11-14
### Adds
- Adds additional documentation to the Dialog component regarding potentially confusing behavior
## 3.0.0 2018-11-05
### Changes
- Changes the `Stepper` component to uncontrolled, so callbacks are not needed for each `Step`. This changes BREAKS existing uses of the `Stepper` component
## 2.17.0 2018-10-31
### Adds
- Adds a `Step` component
- Adds a `Stepper` component to control progress through `Step`s
## 2.16.4 2018-10-24
### Fixes
- Handles `Snackbar` opening more than once with no callback listening to the `Snackbar` (https://github.com/StratoDem/sd-material-ui/issues/85)
## 2.16.3 - 2018-09-07
### Fixes
- v2.16.2 did not have correct bundle published on npm
## 2.16.2 - 2018-09-07
### Changes
- Changes the `Popover` to allow an `icon` button option
- Changes the `Popover` to allow styles for the button to be passed in using `buttonStyle`
- Removes some unnecessary characters that were appearing after the button
### Fixes
- Fixes items similar to https://github.com/StratoDem/sd-material-ui/issues/79 in the following components:
- `Dialog`
- `Drawer`
- `DropDownMenu`
- `RadioButtonGroup`
- `Snackbar`
- `Toggle`
## 2.16.1 - 2018-09-05
### Fixes
- Fixes https://github.com/StratoDem/sd-material-ui/issues/79 where `Checkbox` callback was firing twice to the server on a click event
## 2.16.0 - 2018-08-30
### Added
- Adds `Popover` as an uncontrolled component which can render other components as children
## 2.15.0 - 2018-06-13
### Added
- Adds `searchEndpointAPI` prop to `AutoComplete` to allow for external searching https://github.com/StratoDem/sd-material-ui/issues/76
## 2.14.1 - 2018-06-10
### Added
- Adds `QuestionTabs` component for tabs version of `Questions` (internal)
## 2.14.0 - 2018-05-31
### Added
- `Tabs`, which takes mainly `children` and `tabPropsArray`. `children` and `tabPropsArray` must be `Array`s of the same length, which are rendered as `Tab` components.
This structure is necessary since Dash currently only passes along React components through the `children` prop, and using `Tab` directly was not rendering correctly.
Any of the standard props from `Tab` can be passed along through `tabPropsArray`.
```python
# Renders two tabs with the children lined up with the tabs props
import sd_material_ui
sd_material_ui.Tabs(
children=[
html.Div('Tab 1'),
html.Div('Tab 2'),
],
tabPropsArray=[
{'label': 'Tab 1 label'},
{'label': 'Tab 2 label'},
]
)
```
## 2.13.3 - 2018-05-22
### Added
- Adds `Questions` component for special use case
##2.13.2 - 2018-05-18
### Fixes
- Updates prop names internally in `Card` from `initialyExpanded` to `initiallyExpanded` to fix syntax (spelling) error
## 2.13.1 - 2018-05-18
### Fixes
- Updates prop names internally in `CardText` for `style` and `color` to allow `textColor` and `textStyle` props to actually change `CardText` subcomponent
### Added
- Adds `id` and `headerIconStyle` props to `CardComponent`:
- `id` as a `string` to allow for callbacks assigned to the card
- `headerIconStyle` to allow for styling the icon in the `CardHeader` subcomponent
## 2.13.0 - 2018-05-17
### Added
- Adds uncontrolled Card component
## 2.12.0 - 2018-04-19
### Changed
- Adds functionality to `AutoComplete` component to allow for sending back `value` instead of `searchText`
Example
```python
# SDAutoComplete with exactMatch
# This ships back 1 when the user types in 'magenta' exactly
# This ships back {'testKey': 'testVal'} when the user types in 'aqua' exactly
sd_material_ui.AutoComplete(
id='input-autocomplete-exactmatch',
anchorOrigin={'vertical': 'center', 'horizontal': 'middle'},
animated=True,
exactMatch=True,
dashCallbackDelay=3000,
dataSource=[
dict(label='pink', value=0),
dict(label='magenta', value=1),
dict(label='aqua', value={'testKey': 'testVal'}),
dict(label='aquamarine', value=3),
],
fullWidth=True,
floatingLabelText="Type here",
filter='caseSensitiveFilter')
```
## 2.11.1 - 2018-04-19
### Fixes
- Updates `metadata.json` for new props in `v2.11.0`
## 2.11.0 - 2018-04-19
### Added
- Adds `containerClosedClassName` prop to `Drawer` which applies additional
classes to the drawer when it is closed to allow for custom styling (like offsets or transitions)
### Changed
- :mega: **BREAKING** Changes `containerclassName` prop to `containerClassName` in `Drawer` to match `material-ui` prop naming format.
Example
```python
# This has 'my-test-class my-closed-class' as the class name when closed
# and 'my-test-class' as the class name when open
sd_material_ui.Drawer(
open=False,
containerClassName='my-test-class',
containerClosedClassName='my-closed-class')
```
### Fixes
- Adds `id` prop to `FontIcon`
## 2.10.1 - 2018-04-09
### Fixes
- Fixes `package.json` and `version.py` mismatch
## 2.10.0 - 2018-04-09
### Added
- Add Subheader Component
## 2.9.0 - 2018-04-09
### Added
- Add Paper Component
## 2.8.0 - 2018-04-09
### Added
- Add RadioButtonGroup Component
## 2.7.1 - 2018-03-26
### Fixes
- Fixes `package.json` and `version.py` mismatch
## 2.7.0 - 2018-03-26
### Added
- Add AutoComplete Component
## 2.6.1 - 2018-03-19
### Fixes
- Fixes versioning in package.json
## 2.6.0 - 2018-03-19
### Added
- Add FontIcon Component
### Changed
- change `IconButton.react.js` documentation to notify user that FontIcon cannot be passed as param
## 2.5.0 - 2018-03-15
### Added
- Add IconButton Component
### Changed
- Change `usage.py` test-buttons-together tests to include IconButton
## 2.4.0 - 2018-03-14
### Added
- Add CircularProgress Component
### Changed
- Change `usage.py` button test to avoid NoneType Error
## 2.3.1 - 2018-03-13
### Fixes
- Fixes versioning issue with `version.py`
## 2.3.0 - 2018-03-12
### Added
- Add Divider component
## 2.2.0 - 2018-02-27
### Added
- Add `n_clicks_previous` prop to Flat and Raised buttons
- Add new tests in `usage.py` to demonstrate behavior of new prop
## 2.1.2 - 2018-02-22
### Changed
- Add `id` as a prop to `DropDownMenu`
## 2.1.1 - 2018-02-22
### Changed
- Updated README and added example
## 2.1.0 - 2018-02-22
### Changed
- Replaced all references to `PropTypes` in favor of Flow type hinting.
## 2.0.0 - 2018-01-26
### Changed
- Renamed components
- Moved all components into their own directories in preparation for adding individual READMEs
## 1.7.5 - 2018-01-23
### Changed
- Removed `null` default for SDDropDownMenu's `iconButton`, allowing the arrow to appear by default
## 1.7.4 - 2018-01-19
### Added
- `customData` prop now available to menu items in SDDropDownMenu
## 1.7.3 - 2018-01-18
### Changed
- Allow a menu item's value to be any type of data, not just `number`
## 1.7.2 - 2018-01-17
### Added
- SDDropDownMenu
### Changed
- Versioning fix for 1.7.2 in deployment
## 1.6.1 - 2018-01-16
### Changed
Make label a default prop on both flat and raised buttons
## 1.6.0 - 2018-01-12
### Added
- SDSnackbar
## 1.5.1 - 2018-01-11
### Changed
- Allow className on SDDialog component
## 1.5.0 - 2018-01-10
### Added
- SDToggle
### Changed
- SDCheckbox now sets state even without setProps or fireEvent defined
## 1.4.0 - 2018-01-09
### Added
- SDCheckbox
## 1.3.0 - 2018-01-02
### Added
- SDDrawer
### Fixed
- Dialog, now a pure component that can be controlled in Dash
## 1.2.1 - 2018-01-02
### Added
- SDRaisedButton
## 1.2.0 - 2017-12-29
### Added
- SDDialog
- SDFlatButton
### Fixed
- Webpack config, no longer creating issues with 2 instances of React
## 1.0.0 - 2017-12-02
### Added
- BottomNavigation
## 0.0.1 - 2017-12-02
- Initial release
[Unreleased]: https://github.com/StratoDem/sd-material-ui/v0.0.1...HEAD
================================================
FILE: CONTRIBUTING.md
================================================
# CONTRIBUTING
This project was generated by the [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate) it contains the minimal set of code required to create your own custom Dash component.
================================================
FILE: LICENSE.txt
================================================
The MIT License (MIT)
Copyright (c) 2017 StratoDem
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: MANIFEST.in
================================================
include sd_material_ui/sd_material_ui.min.js
include sd_material_ui/sd_material_ui.dev.js
include sd_material_ui/metadata.json
include sd_material_ui/package.json
include README.md
================================================
FILE: README.md
================================================
# sd-material-ui
StratoDem Analytics Dash implementation of material-ui components.
Dash wrappers around the excellent [`material-ui`](https://github.com/mui-org/material-ui) package
## Installation and usage
```bash
$ pip install sd-material-ui
```
```python
import dash
import dash_html_components as html
import sd_material_ui
my_app = dash.Dash()
# A Button on Paper
my_app.layout = sd_material_ui.Paper([
html.Div(children=[
html.P(id='output', children=['n_clicks value: . n_clicks_previous value: '])
]),
sd_material_ui.Button(id='input', children='Click me'),
])
# Callback for Button
@my_app.callback(
dash.dependencies.Output('output', 'children'),
[dash.dependencies.Input('input', 'n_clicks')],
[dash.dependencies.State('input', 'n_clicks_previous')])
def display_clicks_flat(n_clicks_flat: int, n_clicks_flat_prev: int):
if n_clicks_flat:
return [f'n_clicks value: {n_clicks_flat}. n_clicks_prev value: {n_clicks_flat_prev}']
else:
return ['n_clicks value: ']
if __name__ == '__main__':
my_app.run_server()
```
## Material-UI components ported to Dash
- [x] [`AutoComplete`](http://www.material-ui.com/components/autocomplete)
- [x] [`BottomNavigation`](http://www.material-ui.com/components/bottom-navigation)
- [x] [`Checkbox`](http://www.material-ui.com/components/checkboxes)
- [x] [`CircularProgress`](http://www.material-ui.com/components/progress)
- [x] [`Dialog`](http://www.material-ui.com/components/dialogs)
- [x] [`Divider`](http://www.material-ui.com/components/dividers)
- [x] [`Drawer`](http://www.material-ui.com/components/drawers)
- [x] [`DropDownMenu`](http://www.material-ui.com/components/menus)
- [x] [`FlatButton`](http://www.material-ui.com/components/buttons)
- [x] [`FontIcon`](https://material-ui.com/components/icons/#icon-font-icons)
- [x] [`IconButton`](http://www.material-ui.com/components/buttons)
- [x] [`Paper`](http://www.material-ui.com/components/paper)
- [x] [`RaisedButton`](http://material-ui.com/components/buttons/#contained-buttons)
- [x] [`Snackbar`](http://www.material-ui.com/components/snackbars)
- [x] [`Subheader`](http://material-ui.com/components/lists/#pinned-subheader-list)
- [x] [`Toggle`](https://material-ui.com/components/switches/)
## Examples - Outdated, need to update with v4.0.0 examples

## Dash
Go to this link to learn about [Dash][].
## Dash help
See the [dash-components-archetype][] repo for more information.
## Contributing
To set up the development environment:
```shell
$ npm install
# Run webpack to create the Dash React bundle
$ npm run build-dist
# Set up a virtualenv
$ virtualenv venv -p python3
$ source venv/bin/activate
# Install the local Python Dash package
$ npm run install-local
```
### Running a local server
Run `usage.py` in the virtual environment
```
$ source venv/bin/activate
$ python usage.py
```
### Contributors
[@mjclawar](https://github.com/mjclawar)
[@coralvanda](https://github.com/coralvanda)
[@SreejaKeesara](https://github.com/SreejaKeesara)
[@dwkaminsky](https://github.com/dwkaminsky)
[Dash]: https://github.com/plotly/dash
[dash-components-archetype]: https://github.com/plotly/dash-components-archetype
================================================
FILE: _validate_init.py
================================================
"""
DO NOT MODIFY
This file is used to validate your publish settings.
"""
from __future__ import print_function
import os
import sys
import importlib
components_package = 'sd_material_ui'
components_lib = importlib.import_module(components_package)
missing_dist_msg = 'Warning {} was not found in `{}.__init__.{}`!!!'
missing_manifest_msg = '''
Warning {} was not found in `MANIFEST.in`!
It will not be included in the build!
'''
with open('MANIFEST.in', 'r') as f:
manifest = f.read()
def check_dist(dist, filename):
# Support the dev bundle.
if filename.endswith('dev.js'):
return True
return any(
filename in x
for d in dist
for x in (
[d.get('relative_package_path')]
if not isinstance(d.get('relative_package_path'), list)
else d.get('relative_package_path')
)
)
def check_manifest(filename):
return filename in manifest
def check_file(dist, filename):
if not check_dist(dist, filename):
print(
missing_dist_msg.format(filename, components_package, '_js_dist'),
file=sys.stderr
)
if not check_manifest(filename):
print(missing_manifest_msg.format(filename),
file=sys.stderr)
for cur, _, files in os.walk(components_package):
for f in files:
if f.endswith('js'):
# noinspection PyProtectedMember
check_file(components_lib._js_dist, f)
elif f.endswith('css'):
# noinspection PyProtectedMember
check_file(components_lib._css_dist, f)
elif not f.endswith('py'):
check_manifest(f)
================================================
FILE: config/webpack.config.dev.js
================================================
const path = require('path');
const webpack = require('webpack');
const sourcePath = path.join(__dirname, '../src');
const bundlesPath = path.resolve('./sd_material_ui');
const nodeModulesPath = path.join(__dirname, '../node_modules/');
module.exports = {
context: sourcePath,
entry: {
// relative to sourcePath
bundle: './index',
},
output: {
library: 'sd_material_ui',
libraryTarget: 'this',
path: bundlesPath,
filename: '[name].js',
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('debug'),
},
}),
],
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /node_modules/,
use: ['ify-loader'],
},
{
test: /\.js$/,
exclude: /node_modules/,
use: ['babel-loader'],
},
{
test: /\.(gif|svg|png)$/i,
use: ['url-loader'],
},
{
test: /.(png|woff(2)?|eot|ttf|svg)$/,
loader: 'url-loader?limit=100000',
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
nodeModulesPath,
sourcePath,
],
},
externals: {
// Use external version of React
react: "React",
'react-dom': 'ReactDOM',
},
watchOptions: {
poll: 500,
ignored: /node_modules/,
},
};
================================================
FILE: config/webpack.config.dist.js
================================================
const config = require('./webpack.config.dev');
const webpack = require('webpack');
const CompressionPlugin = require('compression-webpack-plugin');
module.exports = {
...config,
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
new webpack.optimize.UglifyJsPlugin({
include: /\.js/i,
mangle: false,
comments: false, // remove comments
compress: {
unused: true,
dead_code: true, // big one--strip code that will never execute
warnings: false,
drop_console: false, // strips console statements
},
}),
new CompressionPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: /\.js$|\.html$/,
threshold: 10240,
minRatio: 0.8,
}),
],
};
================================================
FILE: infra/ci/Tollgate.groovy
================================================
@Library('pipeline-library-jenkins') _
tollgate_AGS()
================================================
FILE: package.json
================================================
{
"name": "sd-material-ui",
"version": "4.6.0",
"description": "material-ui components for Dash",
"main": "build/index.js",
"author": "Michael Clawar, Eric Linden, Sreeja Keesara, Danny Kaminsky tech@stratodem.com",
"scripts": {
"start": "webpack-serve ./webpack.serve.config.js --open",
"validate-init": "python _validate_init.py",
"prepublish": "npm run validate-init",
"build:js-dev": "webpack --mode development",
"build:js": "webpack --mode production",
"build:py": "dash-generate-components ./src/lib/components sd_material_ui",
"build:py-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py)",
"build:all": "npm run build:js && npm run build:js-dev && npm run build:py",
"build:all-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:all)"
},
"repository": {
"type": "git",
"url": "git+https://github.com/StratoDem/sd-material-ui.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/StratoDem/sd-material-ui/issues"
},
"homepage": "https://github.com/StratoDem/sd-material-ui",
"dependencies": {
"@date-io/date-fns": "^1.3.13",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
"@mui/material": "^5.0.3",
"date-fns": "^2.16.1",
"dot-prop": "^5.3.0",
"lodash": "^4.17.21",
"lodash.merge": "^4.6.2",
"material-ui": "^0.20.2",
"react-transition-group": "^4.4.1",
"ssri": "^6.0.2",
"y18n": "^4.0.3"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "^7.14.5",
"@material-ui/pickers": "^3.2.10",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"copyfiles": "2.1.1",
"css-loader": "^4.3.0",
"eslint": "^7.16.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-react": "^7.21.5",
"flow-bin": "0.131.0",
"node-sass": "^4.14.1",
"npm": "^6.14.10",
"react": "^16.14.0",
"react-docgen": "^5.3.1",
"react-dom": "^16.14.0",
"sass-loader": "^7.3.1",
"style-loader": "^1.3.0",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-serve": "^3.2.0"
},
"jest": {
"modulePaths": [
"<rootDir>/src/js"
],
"moduleFileExtensions": [
"js"
],
"moduleDirectories": [
"node_modules"
],
"moduleNameMapper": {
"\\.(css|less)$": "identity-obj-proxy",
"\\.(gif|ttf|eot|svg)$": "<rootDir>/__mocks__/fileMock.js"
},
"testRegex": "\\.test\\.js$",
"setupFiles": [
"raf/polyfill",
"<rootDir>test/_test-env.js"
],
"collectCoverage": true,
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
"engines": {
"node": ">=8.11.0",
"npm": ">=6.1.0"
},
"directories": {
"test": "test"
}
}
================================================
FILE: pytest.ini
================================================
[pytest]
testpaths = tests/
webdriver = Chrome
================================================
FILE: requirements.txt
================================================
# dash is required to call `build:py`
dash
pyyaml
================================================
FILE: review_checklist.md
================================================
# Code Review Checklist
## Code quality & design
- Is your code clear? If you had to go back to it in a month, would you be happy to? If someone else had to contribute to it, would they be able to?
A few suggestions:
- Make your variable names descriptive and use the same naming conventions throughout the code.
- For more complex pieces of logic, consider putting a comment, and maybe an example.
- In the comments, focus on describing _why_ the code does what it does, rather than describing _what_ it does. The reader can most likely read the code, but not necessarily understand why it was necessary.
- Don't overdo it in the comments. The code should be clear enough to speak for itself. Stale comments that no longer reflect the intent of the code can hurt code comprehension.
* Don't repeat yourself. Any time you see that the same piece of logic can be applied in multiple places, factor it out into a function, or variable, and reuse that code.
* Scan your code for expensive operations (large computations, DOM queries, React re-renders). Have you done your possible to limit their impact? If not, it is going to slow your app down.
* Can you think of cases where your current code will break? How are you handling errors? Should the user see them as notifications? Should your app try to auto-correct them for them?
## Component API
- Have you tested your component on the Python side by creating an app in `usage.py` ?
Do all of your component's props work when set from the back-end?
Should all of them be settable from the back-end or are some only relevant to user interactions in the front-end?
- Have you provided some basic documentation about your component? The Dash community uses [react docstrings](https://github.com/plotly/dash-docs/blob/master/tutorial/plugins.py#L45) to provide basic information about dash components. Take a look at this [Checklist component example](https://github.com/plotly/dash-core-components/blob/master/src/components/Checklist.react.js) and others from the dash-core-components repository.
At a minimum, you should describe what your component does, and describe its props and the features they enable.
Be careful to use the correct formatting for your docstrings for them to be properly recognized.
## Tests
- The Dash team uses integration tests extensively, and we highly encourage you to write tests for the main functionality of your component. In the `tests` folder of the boilerplate, you can see a sample integration test. By launching it, you will run a sample Dash app in a browser. You can run the test with:
```
python -m tests.test_render
```
[Browse the Dash component code on GitHub for more examples of testing.](https://github.com/plotly/dash-core-components)
## Ready to publish? Final scan
- Take a last look at the external resources that your component is using. Are all the external resources used [referenced in `MANIFEST.in`](https://github.com/plotly/dash-docs/blob/0b2fd8f892db720a7f3dc1c404b4cff464b5f8d4/tutorial/plugins.py#L55)?
- [You're ready to publish!](https://github.com/plotly/dash-component-boilerplate/blob/master/%7B%7Bcookiecutter.project_shortname%7D%7D/README.md#create-a-production-build-and-publish)
================================================
FILE: scripts/publish-pypi.sh
================================================
#!/usr/bin/env bash
. venv/bin/activate
python setup.py bdist_wheel --universal
python setup.py bdist_wheel
python setup.py sdist
twine upload dist/*
================================================
FILE: sd_material_ui/Accordion.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Accordion(Component):
"""An Accordion component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Elements to render inside the accordion.
- id (string; required):
The ID of the root element.
- className (string; optional):
The className of the root element.
- classes (dict; optional):
The classes to be applied to this component. The keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root rounded expanded disabled.
`classes` is a dict with keys:
- root (string; optional)
- rounded (string; optional)
- expanded (string; optional)
- disabled (string; optional)
- defaultExpanded (boolean; default False):
If True, expands the accordion by defaulgt.
- detailClasses (dict; optional):
The classes to be applied to the details component (the element
containing the accordion's children). The keys in this object
must be valid CSS rule names, and the values must be strings for
the classnames to be assigned to each rule name Valid rule names
are: root.
`detailClasses` is a dict with keys:
- root (string; optional)
- disabled (boolean; default False):
If True, the accordion will be displayed in a disabled state.
- expanded (boolean; default False):
If True, expands the accordion, otherwise collapse it. Setting
this prop enables control over the accordion.
- label (string; default ''):
The text displayed at the top of the accordion, regardless of
expanded state.
- square (boolean; default False):
If True, rounded corners are disabled.
- summaryClasses (dict; optional):
The classes to be applied to the summary component (the element
containing the accordion's label). The keys in this object must
be valid CSS rule names, and the values must be strings for the
classnames to be assigned to each rule name Valid rule names are:
root expanded focused disabled content expandIcon.
`summaryClasses` is a dict with keys:
- root (string; optional)
- expanded (string; optional)
- focused (string; optional)
- disabled (string; optional)
- content (string; optional)
- expandIcon (string; optional)"""
@_explicitize_args
def __init__(self, children=None, classes=Component.UNDEFINED, className=Component.UNDEFINED, defaultExpanded=Component.UNDEFINED, detailClasses=Component.UNDEFINED, disabled=Component.UNDEFINED, expanded=Component.UNDEFINED, fireEvent=Component.UNDEFINED, id=Component.REQUIRED, label=Component.UNDEFINED, square=Component.UNDEFINED, summaryClasses=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'defaultExpanded', 'detailClasses', 'disabled', 'expanded', 'label', 'square', 'summaryClasses']
self._type = 'Accordion'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'defaultExpanded', 'detailClasses', 'disabled', 'expanded', 'label', 'square', 'summaryClasses']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Accordion, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/AppBar.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class AppBar(Component):
"""An AppBar component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Children to render inside of the Appbar.
- id (string; required):
Appbar ID.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root docked paper paperAnchorLeft
paperAnchorRight paperAnchorTop paperAnchorBottom
paperAnchorDockedLeft paperAnchorDockedTop
paperAnchorDockedRight paperAnchorDockedBottom modal.
`classes` is a dict with keys:
- root (string; optional)
- positionFixed (string; optional)
- positionAbsolute (string; optional)
- positionSticky (string; optional)
- positionStatic (string; optional)
- positionRelative (string; optional)
- colorDefault (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- colorInherit (string; optional)
- colorTransparent (string; optional)
- color (default 'primary'):
The color of the component. It supports those theme colors that
make sense for this component.
- position (default 'fixed'):
The positioning type. Defaults to `fixed`."""
@_explicitize_args
def __init__(self, children=None, id=Component.REQUIRED, classes=Component.UNDEFINED, className=Component.UNDEFINED, color=Component.UNDEFINED, position=Component.UNDEFINED, classNameRoot=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'color', 'position']
self._type = 'AppBar'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'color', 'position']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(AppBar, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/AutoComplete.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class AutoComplete(Component):
"""An AutoComplete component.
Material UI AutoComplete component
Keyword arguments:
- id (string; required):
Autocomplete ID.
- className (string; optional):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root fullWidth focus tag
tagSizeSmall hasPopupIcon hasClearIcon inputRoot input
inputFocused endAdornment clearIndicator
clearIndicatorDirty popupIndicator popupIndicatorOpen
popper popperDisablePortal paper listbox loading
noOptions option groupLabel groupUl.
`classes` is a dict with keys:
- root (string; optional)
- fullWidth (string; optional)
- focus (string; optional)
- tag (string; optional)
- tagSizeSmall (string; optional)
- hasPopupIcon (string; optional)
- hasClearIcon (string; optional)
- inputRoot (string; optional)
- input (string; optional)
- inputFocused (string; optional)
- endAdornment (string; optional)
- clearIndicator (string; optional)
- clearIndicatorDirty (string; optional)
- popupIndicator (string; optional)
- popupIndicatorOpen (string; optional)
- popper (string; optional)
- popperDisablePortal (string; optional)
- paper (string; optional)
- listbox (string; optional)
- loading (string; optional)
- noOptions (string; optional)
- option (string; optional)
- groupLabel (string; optional)
- groupUl (string; optional)
- dashCallbackDelay (number; default 500):
Dash callback delay in ms - default is 500 ms.
- dataSource (list of boolean | number | string | dict | lists; optional):
Array of strings or nodes used to populate the list
Alternatively, an Array of Objects with a structure like {label:
'My label to render', value: 'My value to ship on match'}.
- filter (default "defaultFilter"):
String name for filter to be applied to user input. will later be
mapped to function.
- hintText (a list of or a singular dash component, string or number; default "Search Here"):
The hint content to display.
- maxSearchResults (number; default 5):
The max number of search results to be shown. By default it shows
all the items which matches filter.
- open (boolean; optional):
Auto complete menu is open if True.
- openOnFocus (boolean; default False):
If True, the list item is showed when a focus event triggers.
- searchEndpointAPI (string; optional):
If defined, the AutoComplete component hits this URL to search
instead of string matching.
- searchJSONStructure (dict; optional):
General JSON structure to send to the server.
- searchText (string; default ""):
Text being input to auto complete.
- selectedValue (bool | number | str | dict | list; optional):
The selected value of the input.
- style (dict; optional):
Override the inline-styles of the root element."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, className=Component.UNDEFINED, dashCallbackDelay=Component.UNDEFINED, dataSource=Component.UNDEFINED, filter=Component.UNDEFINED, fireEvent=Component.UNDEFINED, hintText=Component.UNDEFINED, id=Component.REQUIRED, maxSearchResults=Component.UNDEFINED, open=Component.UNDEFINED, openOnFocus=Component.UNDEFINED, searchText=Component.UNDEFINED, style=Component.UNDEFINED, searchEndpointAPI=Component.UNDEFINED, searchJSONStructure=Component.UNDEFINED, selectedValue=Component.UNDEFINED, menuCloseDelay=Component.UNDEFINED, searchValue=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'className', 'classes', 'dashCallbackDelay', 'dataSource', 'filter', 'hintText', 'maxSearchResults', 'open', 'openOnFocus', 'searchEndpointAPI', 'searchJSONStructure', 'searchText', 'selectedValue', 'style']
self._type = 'AutoComplete'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'classes', 'dashCallbackDelay', 'dataSource', 'filter', 'hintText', 'maxSearchResults', 'open', 'openOnFocus', 'searchEndpointAPI', 'searchJSONStructure', 'searchText', 'selectedValue', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(AutoComplete, self).__init__(**args)
================================================
FILE: sd_material_ui/BottomNavigation.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class BottomNavigation(Component):
"""A BottomNavigation component.
BottomNavigationItem is an item in a BottomNavigation component
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- className (string; optional):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root.
`classes` is a dict with keys:
- root (string; optional)
- displayLabels (boolean; optional):
If True, show the labels of unselected Items.
- navItems (list; required):
Array of navigation item props to pass to BottomNavigationItem.
- selectedValue (number; optional):
Initial selected value for the BottomNavigation."""
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, displayLabels=Component.UNDEFINED, navItems=Component.REQUIRED, selectedValue=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'className', 'classes', 'displayLabels', 'navItems', 'selectedValue']
self._type = 'BottomNavigation'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'classes', 'displayLabels', 'navItems', 'selectedValue']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['navItems']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(BottomNavigation, self).__init__(**args)
================================================
FILE: sd_material_ui/Button.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Button(Component):
"""A Button component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
This is what will be displayed inside the button. If a label is
specified, the text within the label prop will be displayed.
Otherwise, the component will expect children which will then be
displayed. (In our example, we are nesting an `<input
type=\"file\" />` and a `span` that acts as our label to be
displayed.) This only applies to flat and disableShadow buttons.
- id (string; optional):
Element ID.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root label text textPrimary
textSecondary outline outlinedPrimary outlinedSecondary
contained containedPrimary containedSecondary
disableElevation focusVisible disabled colorInherit
textSizeSmall textSizeLarge outlinedSizeSmall
outlinedSizeLarge containedSizeSmall containedSizeLarge
sizeSmall sizeLarge fullWidth startIcon endIcon
iconSizeSmall iconSizeMedium iconSizeLarge OR root
edgeStart edgeEnd colorInherit colorPrimary
colorSecondary disabled sizeSmall label See
https://material-ui.com/api/button/#css and
https://material-ui.com/api/icon-button/#css.
`classes` is a dict with keys:
- root (string; optional)
- label (string; optional)
- text (string; optional)
- textPrimary (string; optional)
- textSecondary (string; optional)
- outline (string; optional)
- outlinedPrimary (string; optional)
- outlinedSecondary (string; optional)
- contained (string; optional)
- containedPrimary (string; optional)
- containedSecondary (string; optional)
- disableElevation (string; optional)
- focusVisible (string; optional)
- disabled (string; optional)
- colorInherit (string; optional)
- textSizeSmall (string; optional)
- textSizeLarge (string; optional)
- outlinedSizeSmall (string; optional)
- outlinedSizeLarge (string; optional)
- containedSizeSmall (string; optional)
- containedSizeLarge (string; optional)
- sizeSmall (string; optional)
- sizeLarge (string; optional)
- fullWidth (string; optional)
- startIcon (string; optional)
- endIcon (string; optional)
- iconSizeSmall (string; optional)
- iconSizeMedium (string; optional)
- iconSizeLarge (string; optional)
- disableShadow (string; optional):
Hide the shadow behind the button.
- disableTouchRipple (boolean; default False):
If True, the element's ripple effect will be disabled.
- disabled (boolean; default False):
Disable the button?.
- fullWidth (boolean; default False):
If True, the button will take up the full width of its container.
- href (string; default ''):
The URL to link to when the button is clicked.
- iconClass (a list of or a singular dash component, string or number; optional):
Sets the class of a span element inside the button.
- n_clicks (number; default 0):
An integer that represents the number fo times that this element
has been clicked.
- n_clicks_previous (number; default 0):
An integer that represents the previous number of times this
element has been clicked.
- style (dict; optional):
Override the inline styles of the root element.
- useIcon (boolean; optional):
If True, this object is rendered as an IconButton.
- variant (string; default 'text'):
'contained' | 'outlined' | 'text', Button type if not an
IconButton."""
@_explicitize_args
def __init__(self, children=None, classes=Component.UNDEFINED, className=Component.UNDEFINED, disableTouchRipple=Component.UNDEFINED, disabled=Component.UNDEFINED, fireEvent=Component.UNDEFINED, fullWidth=Component.UNDEFINED, href=Component.UNDEFINED, iconClass=Component.UNDEFINED, id=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, disableShadow=Component.UNDEFINED, style=Component.UNDEFINED, useIcon=Component.UNDEFINED, variant=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'disableShadow', 'disableTouchRipple', 'disabled', 'fullWidth', 'href', 'iconClass', 'n_clicks', 'n_clicks_previous', 'style', 'useIcon', 'variant']
self._type = 'Button'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'disableShadow', 'disableTouchRipple', 'disabled', 'fullWidth', 'href', 'iconClass', 'n_clicks', 'n_clicks_previous', 'style', 'useIcon', 'variant']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Button, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Card.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Card(Component):
"""A Card component.
Material UI Card component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Can be used to render elements inside the Card.
- className (string; default ''):
The CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root.
`classes` is a dict with keys:
- root (string; optional)
- contentClassName (string; default ''):
The CSS class name of the content element.
- contentClasses (dict; optional):
The classes to be applied to the content component. This keys in
this object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name.
`contentClasses` is a dict with keys:
- root (string; optional)
- raised (boolean; default True):
If True, the Card component will appear raised.
- style (dict; optional):
Styles to be implemented as inline css."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, classes=Component.UNDEFINED, contentClassName=Component.UNDEFINED, contentClasses=Component.UNDEFINED, style=Component.UNDEFINED, raised=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'className', 'classes', 'contentClassName', 'contentClasses', 'raised', 'style']
self._type = 'Card'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'className', 'classes', 'contentClassName', 'contentClasses', 'raised', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Card, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Checkbox.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Checkbox(Component):
"""A Checkbox component.
Material UI Checkbox component
Keyword arguments:
- id (string; required):
The element's ID.
- checked (boolean; default False):
Checkbox is checked if True.
- className (string; optional):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root checked disabled indeterminate
colorPrimary colorSecondary.
`classes` is a dict with keys:
- root (string; optional)
- checked (string; optional)
- disabled (string; optional)
- indeterminate (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- sizeSmall (string; optional)
- disableRipple (boolean; default False):
Ripple is disabled if True.
- disabled (boolean; default False):
Checkbox is disabled if True.
- label (string; optional):
The label for the checkbox.
- name (string; default ''):
The name prop of the checkbox.
- style (dict; optional):
Override the inline styles of the root element."""
@_explicitize_args
def __init__(self, checked=Component.UNDEFINED, className=Component.UNDEFINED, classes=Component.UNDEFINED, disabled=Component.UNDEFINED, disableRipple=Component.UNDEFINED, fireEvent=Component.UNDEFINED, id=Component.REQUIRED, label=Component.UNDEFINED, name=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'checked', 'className', 'classes', 'disableRipple', 'disabled', 'label', 'name', 'style']
self._type = 'Checkbox'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'checked', 'className', 'classes', 'disableRipple', 'disabled', 'label', 'name', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Checkbox, self).__init__(**args)
================================================
FILE: sd_material_ui/CircularProgress.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class CircularProgress(Component):
"""A CircularProgress component.
Material UI CircularProgress component
Keyword arguments:
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root static indeterminate colorPrimary
colorSecondary circle circleStatic circleIndeterminate
circleDisableShrink.
`classes` is a dict with keys:
- root (string; optional)
- static (string; optional)
- indeterminate (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- circle (string; optional)
- circleStatic (string; optional)
- circleIndeterminate (string; optional)
- circleDisableShrink (string; optional)
- color (string; default 'inherit'):
Override the progress's color.
- mode (default 'indeterminate'):
The mode of show your progress, for now, will always be
indeterminate.
- size (number; default 40):
The diameter of the progress in pixels.
- style (dict; optional):
Override the inline-style of the root element.
- thickness (number; default 3.5):
Stroke width in pixels."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, color=Component.UNDEFINED, mode=Component.UNDEFINED, size=Component.UNDEFINED, style=Component.UNDEFINED, thickness=Component.UNDEFINED, innerStyle=Component.UNDEFINED, **kwargs):
self._prop_names = ['classes', 'color', 'mode', 'size', 'style', 'thickness']
self._type = 'CircularProgress'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['classes', 'color', 'mode', 'size', 'style', 'thickness']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(CircularProgress, self).__init__(**args)
================================================
FILE: sd_material_ui/CollapseTransition.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class CollapseTransition(Component):
"""A CollapseTransition component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The contents of the transition element.
- id (string; required):
Dash ID of the transition element.
- className (string; optional):
CSS class name of the root element.
- collapsedHeight (number; default 0):
The pixel height of the child element when collapsed.
- visible (boolean; default True):
If True, the transition element is displayed, else it will be
hidden."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, collapsedHeight=Component.UNDEFINED, id=Component.REQUIRED, visible=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'collapsedHeight', 'visible']
self._type = 'CollapseTransition'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'collapsedHeight', 'visible']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(CollapseTransition, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Dialog.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Dialog(Component):
"""A Dialog component.
Material UI Dialog component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Children to render inside of the Dialog.
- id (string; required):
Dialog ID.
- ariaLabelledBy (string; default ''):
List of space separated id's of elements to use as aria labels.
- autoScrollBodyContent (boolean; default False):
If set to True, the body content of the Dialog will be scrollable.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root container paper scrollPaper
scrollBody paperScrollPaper paperScrollBody
paperWidthFalse paperWidthXs paperWidthSm paperWidthMd
paperWidthLg paperWidthXl paperFullWidth paperFullScreen.
`classes` is a dict with keys:
- root (string; optional)
- container (string; optional)
- paper (string; optional)
- scrollPaper (string; optional)
- scrollBody (string; optional)
- paperScrollPaper (string; optional)
- paperScrollBody (string; optional)
- paperWidthFalse (string; optional)
- paperWidthXs (string; optional)
- paperWidthSm (string; optional)
- paperWidthMd (string; optional)
- paperWidthLg (string; optional)
- paperWidthXl (string; optional)
- paperFullWidth (string; optional)
- paperFullScreen (string; optional)
- componentContainerClassName (string; optional):
The className to add to the component container.
- fullWidth (boolean; default True):
The className to add to the content container.
- open (boolean; default False):
Is the dialog open? IMPORTANT: When using this component in
Dash, a listener must be set up (either as state or an input) for
this component's props.open value in order to achieve the desired
behavior. If such a listener is not in place, the non-modal
version of this dialog will contaminate other callbacks in the
browser.
- scroll (dict; default 'body'):
\"paper\" or \"body\", Determines scroll container.
- style (dict; optional):
Styles to be implemented as inline css.
- useBrowserSideClose (boolean; default False):
If set to True, the Close Icon will show in the upper right corner
of the dialog, closing the Dialog browser side."""
@_explicitize_args
def __init__(self, children=None, id=Component.REQUIRED, ariaLabelledBy=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, open=Component.UNDEFINED, autoScrollBodyContent=Component.UNDEFINED, componentContainerClassName=Component.UNDEFINED, fullWidth=Component.UNDEFINED, useBrowserSideClose=Component.UNDEFINED, scroll=Component.UNDEFINED, style=Component.UNDEFINED, actions=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'ariaLabelledBy', 'autoScrollBodyContent', 'className', 'classes', 'componentContainerClassName', 'fullWidth', 'open', 'scroll', 'style', 'useBrowserSideClose']
self._type = 'Dialog'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'ariaLabelledBy', 'autoScrollBodyContent', 'className', 'classes', 'componentContainerClassName', 'fullWidth', 'open', 'scroll', 'style', 'useBrowserSideClose']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Dialog, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Divider.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Divider(Component):
"""A Divider component.
Material UI Divider component
Keyword arguments:
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root absolute vertical light middle
inset flexItem.
`classes` is a dict with keys:
- root (string; optional)
- absolute (string; optional)
- vertical (string; optional)
- light (string; optional)
- middle (string; optional)
- inset (string; optional)
- flexItem (string; optional)
- style (dict; optional):
Override the inline-styles of the root element."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['classes', 'style']
self._type = 'Divider'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['classes', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Divider, self).__init__(**args)
================================================
FILE: sd_material_ui/Drawer.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Drawer(Component):
"""A Drawer component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Children to render inside of the Dialog.
- id (string; required):
Dialog ID.
- anchor (string; default "left"):
Controls where the drawer appears. Must be one of \"top\",
\"bottom\", \"left\", or \"right\" Defaults to \"left\".
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root docked paper paperAnchorLeft
paperAnchorRight paperAnchorTop paperAnchorBottom
paperAnchorDockedLeft paperAnchorDockedTop
paperAnchorDockedRight paperAnchorDockedBottom modal.
`classes` is a dict with keys:
- root (string; optional)
- docked (string; optional)
- paper (string; optional)
- paperAnchorLeft (string; optional)
- paperAnchorRight (string; optional)
- paperAnchorTop (string; optional)
- paperAnchorBottom (string; optional)
- paperAnchorDockedLeft (string; optional)
- paperAnchorDockedTop (string; optional)
- paperAnchorDockedRight (string; optional)
- paperAnchorDockedBottom (string; optional)
- modal (string; optional)
- open (boolean; default False):
Is the drawer open? IMPORTANT: When using this component in
Dash, a listener must be set up (either as state or an input) for
this component's props.open value in order to achieve the desired
behavior.
- variant (string; default "persistent"):
Type of drawer to be used, default is persistent."""
@_explicitize_args
def __init__(self, children=None, anchor=Component.UNDEFINED, id=Component.REQUIRED, classes=Component.UNDEFINED, className=Component.UNDEFINED, open=Component.UNDEFINED, variant=Component.UNDEFINED, classNameRoot=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'anchor', 'className', 'classes', 'open', 'variant']
self._type = 'Drawer'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'anchor', 'className', 'classes', 'open', 'variant']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Drawer, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/DropDownMenu.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class DropDownMenu(Component):
"""A DropDownMenu component.
Keyword arguments:
- id (string; required):
The ID used for this dropdown menu.
- autoWidth (boolean; default False):
If True, the width of the popover will automatically be set
according to the items inside the menu, otherwise it will be at
least the width of the select input.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root select filled outlined
selectMenu disabled.
`classes` is a dict with keys:
- root (string; optional)
- select (string; optional)
- filled (string; optional)
- outlined (string; optional)
- selectMenu (string; optional)
- disabled (string; optional)
- disabled (boolean; default False):
If True, this dropdown will not be interactive.
- helperText (string; default ''):
Text to display under the menu.
- labelId (string; default ''):
The ID associated with the label.
- labelText (string; default ''):
The text that will be displayed when no items are selected, and
which will move to above the menu when there is at least one
selection.
- multiple (boolean; default False):
Allows multiple selections from the dropdown if True, else only
one selection.
- options (list; optional):
An array of objects, with each object representing an option in
the menu. Each object must must contain either a value and
primaryText keys or, if useGrouping is set to True, then an
object may contain a grouping key. The order of the array is
important when grouping, as each item will be associated with the
grouping most recently seen while iterating through the array
Example: [ {\"grouping\": \"group A\"},
{\"primaryText\": \"option 1\", \"value\": 1},
{\"primaryText\": \"option 2\", \"value\": 2}, {\"grouping\":
\"group B\"}, {\"primaryText\": \"option 3\", \"value\": 3},
] This will group options 1 and 2 with group A, and option 3
with group B.
- useGrouping (boolean; default False):
If True, the expanded dropdown menu will include labels for the
various groups of options. Those labels and groupings are set in
the options prop.
- value (bool | number | str | dict | list; optional):
The active selection for the menu.
- variant (string; default "standard"):
Allows selection of one of three variant types of menus: filled,
outlined, or standard. Set to standard by default."""
@_explicitize_args
def __init__(self, autoWidth=Component.UNDEFINED, classes=Component.UNDEFINED, disabled=Component.UNDEFINED, helperText=Component.UNDEFINED, id=Component.REQUIRED, labelText=Component.UNDEFINED, labelId=Component.UNDEFINED, multiple=Component.UNDEFINED, options=Component.UNDEFINED, useGrouping=Component.UNDEFINED, value=Component.UNDEFINED, variant=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'autoWidth', 'classes', 'disabled', 'helperText', 'labelId', 'labelText', 'multiple', 'options', 'useGrouping', 'value', 'variant']
self._type = 'DropDownMenu'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'autoWidth', 'classes', 'disabled', 'helperText', 'labelId', 'labelText', 'multiple', 'options', 'useGrouping', 'value', 'variant']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(DropDownMenu, self).__init__(**args)
================================================
FILE: sd_material_ui/FadeTransition.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class FadeTransition(Component):
"""A FadeTransition component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The contents of the transition element.
- id (string; required):
Dash ID of the transition element.
- className (string; optional):
CSS class name of the root element.
- style (dict; optional):
The styles passed to the transition element An style object (even
if empty) must be given to the transition element or it will fail
silently. See:
https://github.com/mui-org/material-ui/issues/15472.
- visible (boolean; default True):
If True, the transition element is displayed, else it will be
hidden."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, id=Component.REQUIRED, style=Component.UNDEFINED, visible=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'style', 'visible']
self._type = 'FadeTransition'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'style', 'visible']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(FadeTransition, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/FlatButton.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class FlatButton(Component):
"""A FlatButton component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): This is what will be displayed inside the button.
If a label is specified, the text within the label prop will
be displayed. Otherwise, the component will expect children
which will then be displayed. (In our example,
we are nesting an `<input type="file" />` and a `span`
that acts as our label to be displayed.) This only
applies to flat and raised buttons.
- backgroundColor (string; default ''): Button color when *no* hover event is triggered
- className (string; default ''): CSS class name of the root element
- disableTouchRipple (boolean; default False): If true, the element's ripple effect will be disabled
- disabled (boolean; default False): Disable the button?
- fullWidth (boolean; default False): If true, the button will take up the full width of its container
- hoverColor (string; default ''): Color of button when mouse hovers over
- href (string; default ''): The URL to link to when the button is clicked
- icon (a list of or a singular dash component, string or number; optional): Use this property to display an icon
- id (string; optional): Element ID
- label (string; default ''): Label for the button
- labelPosition (default 'after'): Place label before or after the passed children
- labelStyle (dict; optional): Override the inline styles of the button's label element
- n_clicks (number; default 0): An integer that represents the number fo times that this element has been clicked
- n_clicks_previous (number; default 0): An integer that represents the previous number of times this element has been clicked
- primary (boolean; default False): If true, colors button according to primaryTextColor from the MuiTheme
- raised (string; default False): Color for the ripple when the button is clicked
- rippleColor (string; default ''): Color for the ripple when the button is clicked
- secondary (boolean; default False): If true, colors button according to secondaryTextColor from the theme.
The primary prop has precendent if set to true.
- style (dict; optional): Override the inline styles of the root element
- useIcon (boolean; default False): If true, this object is rendered as an IconButton"""
@_explicitize_args
def __init__(self, children=None, backgroundColor=Component.UNDEFINED, className=Component.UNDEFINED, disableTouchRipple=Component.UNDEFINED, disabled=Component.UNDEFINED, fireEvent=Component.UNDEFINED, fullWidth=Component.UNDEFINED, hoverColor=Component.UNDEFINED, href=Component.UNDEFINED, icon=Component.UNDEFINED, id=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, labelStyle=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, primary=Component.UNDEFINED, raised=Component.UNDEFINED, rippleColor=Component.UNDEFINED, secondary=Component.UNDEFINED, style=Component.UNDEFINED, useIcon=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'backgroundColor', 'className', 'disableTouchRipple', 'disabled', 'fullWidth', 'hoverColor', 'href', 'icon', 'id', 'label', 'labelPosition', 'labelStyle', 'n_clicks', 'n_clicks_previous', 'primary', 'raised', 'rippleColor', 'secondary', 'style', 'useIcon']
self._type = 'FlatButton'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'backgroundColor', 'className', 'disableTouchRipple', 'disabled', 'fullWidth', 'hoverColor', 'href', 'icon', 'id', 'label', 'labelPosition', 'labelStyle', 'n_clicks', 'n_clicks_previous', 'primary', 'raised', 'rippleColor', 'secondary', 'style', 'useIcon']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(FlatButton, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/FontIcon.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class FontIcon(Component):
"""A FontIcon component.
Material UI FontIcon component
Keyword arguments:
- id (string; default ''):
id for the component.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root colorPrimary colorSecondary
colorAction colorError colorDisabled fontSizeSmall
fontSizeLarge fontSizeInherit.
`classes` is a dict with keys:
- root (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- colorAction (string; optional)
- colorError (string; optional)
- colorDisabled (string; optional)
- fontSizeSmall (string; optional)
- fontSizeLarge (string; optional)
- fontSizeInherit (string; optional)
- iconName (string; default ''):
defines specific icon when using public icon font.
- style (dict; optional):
override inline-styles of root element."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, className=Component.UNDEFINED, id=Component.UNDEFINED, iconName=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'className', 'classes', 'iconName', 'style']
self._type = 'FontIcon'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'classes', 'iconName', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(FontIcon, self).__init__(**args)
================================================
FILE: sd_material_ui/GrowTransition.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class GrowTransition(Component):
"""A GrowTransition component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The contents of the transition element.
- id (string; required):
Dash ID of the transition element.
- className (string; optional):
CSS class name of the root element.
- style (dict; optional):
The styles passed to the transition element An style object (even
if empty) must be given to the transition element or it will fail
silently. See:
https://github.com/mui-org/material-ui/issues/15472.
- visible (boolean; default True):
If True, the transition element is displayed, else it will be
hidden."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, id=Component.REQUIRED, style=Component.UNDEFINED, visible=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'style', 'visible']
self._type = 'GrowTransition'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'style', 'visible']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(GrowTransition, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/IconButton.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class IconButton(Component):
"""An IconButton component.
Material UI IconButton component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): Used to pass a FontIcon element as the icon for the button
See method 3 at http://www.material-ui.com/#/components/icon-button
Note: currently unable to pass in FontIcon component as child, you will need
to use method 3 at the above link
- className (string; default ''): The CSS class name of the root element
- disableTouchRipple (boolean; default False): If true, the element's ripple effect will be disabled
- disabled (boolean; default False): Disable the button?
- hoveredStyle (dict; optional): Override the inline-styles of the root element when the component is hovered
- href (string; default ''): The URL to link to when the button is clicked
- iconClassName (string; default 'material-icons'): The CSS class name of the icon. Used for setting the icon with a stylesheet
- iconStyle (dict; optional): Override the inline-styles of the icon element.
Note: you can specify iconHoverColor as a String inside this object.
- id (string; optional): Element ID
- n_clicks (number; default 0): An integer that represents the number fo times that this element has been clicked
- n_clicks_previous (number; default 0): An integer that represents the previous number of times this element has been clicked
- style (dict; optional): Override the inline-styles of the root element.
- tooltip (a list of or a singular dash component, string or number; default ''): The text to supply to the element's tooltip
- tooltipPosition (default 'bottom-center'): The vertical and horizontal positions, respectively, of the element's tooltip.
Possible values are: "bottom-center", "top-center", "bottom-right", "top-right",
"bottom-left", and "top-left".
- tooltipStyles (dict; optional): Override the inline-styles of the tooltip element
- touch (boolean; default False): If true, increase the tooltip element's size.
Useful for increasing tooltip readability on mobile devices."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, disableTouchRipple=Component.UNDEFINED, disabled=Component.UNDEFINED, fireEvent=Component.UNDEFINED, hoveredStyle=Component.UNDEFINED, href=Component.UNDEFINED, iconClassName=Component.UNDEFINED, iconStyle=Component.UNDEFINED, id=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, style=Component.UNDEFINED, tooltip=Component.UNDEFINED, tooltipPosition=Component.UNDEFINED, tooltipStyles=Component.UNDEFINED, touch=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'className', 'disableTouchRipple', 'disabled', 'hoveredStyle', 'href', 'iconClassName', 'iconStyle', 'id', 'n_clicks', 'n_clicks_previous', 'style', 'tooltip', 'tooltipPosition', 'tooltipStyles', 'touch']
self._type = 'IconButton'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'className', 'disableTouchRipple', 'disabled', 'hoveredStyle', 'href', 'iconClassName', 'iconStyle', 'id', 'n_clicks', 'n_clicks_previous', 'style', 'tooltip', 'tooltipPosition', 'tooltipStyles', 'touch']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(IconButton, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/LinearBuffer.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class LinearBuffer(Component):
"""A LinearBuffer component.
Keyword arguments:
- id (string; required):
LinearDeterminate component ID.
- buffer (number; required):
The value of the progress buffer. Value between 0 and 100.
- color (string; default 'inherit'):
Override the progress's color.
- value (number; required):
The value of the progress indicator. Value between 0 and 100."""
@_explicitize_args
def __init__(self, color=Component.UNDEFINED, id=Component.REQUIRED, buffer=Component.REQUIRED, value=Component.REQUIRED, **kwargs):
self._prop_names = ['id', 'buffer', 'color', 'value']
self._type = 'LinearBuffer'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'buffer', 'color', 'value']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'buffer', 'value']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(LinearBuffer, self).__init__(**args)
================================================
FILE: sd_material_ui/LinearDeterminate.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class LinearDeterminate(Component):
"""A LinearDeterminate component.
Keyword arguments:
- id (string; required):
LinearDeterminate component ID.
- color (string; default 'inherit'):
Override the progress's color.
- value (number; required):
The value of the progress indicator for the determinate and buffer
variants. Value between 0 and 100.
- variant (default 'no-label'):
The variant to use. Options are \"label\" or \"no-label\"."""
@_explicitize_args
def __init__(self, color=Component.UNDEFINED, id=Component.REQUIRED, value=Component.REQUIRED, variant=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'color', 'value', 'variant']
self._type = 'LinearDeterminate'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'color', 'value', 'variant']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'value']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(LinearDeterminate, self).__init__(**args)
================================================
FILE: sd_material_ui/LinearIndeterminate.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class LinearIndeterminate(Component):
"""A LinearIndeterminate component.
Keyword arguments:
- color (string; default 'inherit'):
Override the progress's color."""
@_explicitize_args
def __init__(self, color=Component.UNDEFINED, **kwargs):
self._prop_names = ['color']
self._type = 'LinearIndeterminate'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['color']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(LinearIndeterminate, self).__init__(**args)
================================================
FILE: sd_material_ui/Pagination.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Pagination(Component):
"""A Pagination component.
Material UI Pagination component
Keyword arguments:
- id (string; required):
Component ID.
- count (number; required):
Number of pages.
- page (number; default 1):
Page number."""
@_explicitize_args
def __init__(self, id=Component.REQUIRED, page=Component.UNDEFINED, count=Component.REQUIRED, fireEvent=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'count', 'page']
self._type = 'Pagination'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'count', 'page']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'count']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Pagination, self).__init__(**args)
================================================
FILE: sd_material_ui/Paper.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Paper(Component):
"""A Paper component.
A Dash material-ui Paper component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Can be used to render elements inside the Paper.
- id (string; optional):
ID for Paper.
- className (string; optional):
The CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root rounded outlined elevation0
elevation1 ... elevation23 elevation24.
`classes` is a dict with keys:
- root (string; optional)
- rounded (string; optional)
- outlined (string; optional)
- elevation0 (string; optional)
- elevation1 (string; optional)
- elevation2 (string; optional)
- elevation3 (string; optional)
- elevation4 (string; optional)
- elevation5 (string; optional)
- elevation6 (string; optional)
- elevation7 (string; optional)
- elevation8 (string; optional)
- elevation9 (string; optional)
- elevation10 (string; optional)
- elevation11 (string; optional)
- elevation12 (string; optional)
- elevation13 (string; optional)
- elevation14 (string; optional)
- elevation15 (string; optional)
- elevation16 (string; optional)
- elevation17 (string; optional)
- elevation18 (string; optional)
- elevation19 (string; optional)
- elevation20 (string; optional)
- elevation21 (string; optional)
- elevation22 (string; optional)
- elevation23 (string; optional)
- elevation24 (string; optional)
- rounded (boolean; default True):
By default, the paper container will have a border radius. Set
this to False to generate a container with sharp corners.
- style (dict; optional):
Override the inline-styles of the root element.
- zDepth (number; default 1):
This number represents the zDepth of the paper shadow."""
@_explicitize_args
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, classes=Component.UNDEFINED, rounded=Component.UNDEFINED, style=Component.UNDEFINED, zDepth=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'rounded', 'style', 'zDepth']
self._type = 'Paper'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'rounded', 'style', 'zDepth']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Paper, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Picker.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Picker(Component):
"""A Picker component.
Keyword arguments:
- id (string; required):
Picker ID.
- format (string; default ""):
Format to be used in displaying date. The slashes between values
are important, because they tell JavaScript not to update
timezones automatically. Some possibilities: yyyy/MM/dd
MM/dd/yyyy MM/dd.
- label (string; default ""):
Label for the date or time picker.
- type (string; default "date"):
Type of date or time picker, \"time\", \"date\", or
\"date-dialog\".
- value (string; default "2021/01/01"):
Representation of datetime, like 2020/12/25. The slashes between
values are important, because they tell JavaScript not to update
timezones automatically."""
@_explicitize_args
def __init__(self, format=Component.UNDEFINED, id=Component.REQUIRED, label=Component.UNDEFINED, type=Component.UNDEFINED, value=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'format', 'label', 'type', 'value']
self._type = 'Picker'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'format', 'label', 'type', 'value']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Picker, self).__init__(**args)
================================================
FILE: sd_material_ui/Popover.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Popover(Component):
"""A Popover component.
Material UI Popover component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The content of the popover.
- anchorOrigin (dict; default {vertical: 'bottom', horizontal: 'left'}):
This is the point on the anchor where the popover's targetOrigin
will attach to. Options: vertical: [top, center, bottom]
horizontal: [left, middle, right].
`anchorOrigin` is a dict with keys:
- vertical (optional)
- horizontal (optional)
- animated (boolean; optional):
If True, the popover will apply transitions when it is added to
the DOM.
- autoCloseWhenOffScreen (boolean; optional):
If True, the popover will hide when the anchor is scrolled off the
screen.
- buttonIcon (string; default ''):
For Dash use - specify what icon to use when using an icon button.
- buttonLabel (string; default ''):
For Dash use - user can assign label to button.
- buttonStyle (dict; optional):
For Dash use - specify the styles for the button.
- buttonType (default 'raised'):
For Dash use - user can anchor the popover to flat, icon, or
raised button.
- className (string; default ''):
The CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root paper.
`classes` is a dict with keys:
- root (string; optional)
- paper (string; optional)
- disableScrollLock (boolean; optional):
Disable the scroll lock behavior.
- open (boolean; default False):
If True, the popover is visible.
- style (dict; optional):
Override the inline-styles of the root element.
- zDepth (number; default 1):
The zDepth of the popover."""
@_explicitize_args
def __init__(self, children=None, anchorOrigin=Component.UNDEFINED, animated=Component.UNDEFINED, autoCloseWhenOffScreen=Component.UNDEFINED, buttonLabel=Component.UNDEFINED, buttonType=Component.UNDEFINED, buttonIcon=Component.UNDEFINED, buttonStyle=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, disableScrollLock=Component.UNDEFINED, open=Component.UNDEFINED, style=Component.UNDEFINED, zDepth=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'anchorOrigin', 'animated', 'autoCloseWhenOffScreen', 'buttonIcon', 'buttonLabel', 'buttonStyle', 'buttonType', 'className', 'classes', 'disableScrollLock', 'open', 'style', 'zDepth']
self._type = 'Popover'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'anchorOrigin', 'animated', 'autoCloseWhenOffScreen', 'buttonIcon', 'buttonLabel', 'buttonStyle', 'buttonType', 'className', 'classes', 'disableScrollLock', 'open', 'style', 'zDepth']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Popover, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Questions.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Questions(Component):
"""A Questions component.
Questions wrapper copmonent
Keyword arguments:
- id (string; required): Component ID
- questionSectionProps (list; required): Array of props for each QuestionSection
- n_clicks (number; default 0): Number of clicks by the user on the Questions component
- n_clicks_previous (number; default 0): The previous number of clicks from the Questions component
- value (bool | number | str | dict | list; required): The value currently selected by clicking on a question answer prompt"""
@_explicitize_args
def __init__(self, id=Component.REQUIRED, questionSectionProps=Component.REQUIRED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, value=Component.REQUIRED, fireEvent=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'questionSectionProps', 'n_clicks', 'n_clicks_previous', 'value']
self._type = 'Questions'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'questionSectionProps', 'n_clicks', 'n_clicks_previous', 'value']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'questionSectionProps', 'value']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Questions, self).__init__(**args)
================================================
FILE: sd_material_ui/QuestionsTabs.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class QuestionsTabs(Component):
"""A QuestionsTabs component.
Keyword arguments:
- id (string; required): Component ID
- questionSectionProps (list; required): Array of props for each QuestionSection
- n_clicks (number; default 0): Number of clicks by the user on the Questions component
- n_clicks_previous (number; default 0): The previous number of clicks from the Questions component
- value (bool | number | str | dict | list; required): The value currently selected by clicking on a question answer prompt
- tabsProps (dict; optional): Tabs props"""
@_explicitize_args
def __init__(self, id=Component.REQUIRED, questionSectionProps=Component.REQUIRED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, value=Component.REQUIRED, tabsProps=Component.UNDEFINED, fireEvent=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'questionSectionProps', 'n_clicks', 'n_clicks_previous', 'value', 'tabsProps']
self._type = 'QuestionsTabs'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'questionSectionProps', 'n_clicks', 'n_clicks_previous', 'value', 'tabsProps']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'questionSectionProps', 'value']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(QuestionsTabs, self).__init__(**args)
================================================
FILE: sd_material_ui/RadioButtonGroup.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class RadioButtonGroup(Component):
"""A RadioButtonGroup component.
Keyword arguments:
- id (string; required):
the element's ID.
- className (string; default ''):
the css class name of the root element.
- classes (dict; optional):
The classes to be applied to each radio button. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root checked disabled colorPrimary
colorSecondary.
`classes` is a dict with keys:
- root (string; optional)
- checked (string; optional)
- disabled (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- name (string; required):
the name that will be applied to the group of radio buttons.
- options (list; optional):
used to create the RadioButtons to populate the RadioButtonGroup
with. A Dash user passes in a list of dict items, each one having
at least a `value` and `label`. If that value is selected,
valueSelected will be updated.
- row (boolean; default False):
If True, Radio Buttons appear as a row\".
- valueSelected (string; required):
Initial value selected."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, className=Component.UNDEFINED, fireEvent=Component.UNDEFINED, id=Component.REQUIRED, name=Component.REQUIRED, options=Component.UNDEFINED, row=Component.UNDEFINED, valueSelected=Component.REQUIRED, **kwargs):
self._prop_names = ['id', 'className', 'classes', 'name', 'options', 'row', 'valueSelected']
self._type = 'RadioButtonGroup'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'classes', 'name', 'options', 'row', 'valueSelected']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'name', 'valueSelected']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(RadioButtonGroup, self).__init__(**args)
================================================
FILE: sd_material_ui/RaisedButton.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class RaisedButton(Component):
"""A RaisedButton component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The content of the button. If a label is provided via the label prop, the text within the
label will be displayed in addition to the content provided here.
- backgroundColor (string; default ''): Override the default background color for the button, but not the default disabled
background color (use disabledBackgroundColor for this).
- buttonStyle (dict; optional): Override the inline styles of the button element.
- className (string; default ''): CSS class name of the root element
- disableTouchRipple (boolean; default False): If true, the element's ripple effect will be disabled
- disabled (boolean; default False): Button is disabled?
- disabledBackgroundColor (string; default ''): Override the default background for the disabled button
- disabledLabelColor (string; default ''): Override the default label color for the disabled button
- fullWidth (boolean; default False): If true, the button will take up the full width of its container
- href (string; default ''): The URL to link to when the button is clicked
- icon (a list of or a singular dash component, string or number; optional): Use this property to display an icon
- id (string; optional): Element ID
- label (string; required): The label to be displayed within the button. If content is provided via the children prop,
that content will be displayed in addition to the label provided here.
- labelColor (string; default ''): Color of the button's label
- labelPosition (default 'after'): The position of the button's label relative to its children
- labelStyle (dict; optional): Override the inline styles of the label element
- n_clicks (number; default 0): An integer that represents the number of times this element has been clicked
- n_clicks_previous (number; default 0): An integer that represents the previous number of times this element has been clicked
- overlayStyle (dict; optional): Override the inline style of the button overlay
- primary (boolean; default False): If true, the button will use the theme's primary color
- rippleColor (string; optional): Color of the ripple on click
- rippleStyle (dict; optional): Override the inline style of the ripple element
- secondary (boolean; default False): If true, the button will use the theme's secondary color. If both secondary and primary are
true, the button will use the theme's primary color.
- style (dict; optional): Override the inline styles of the root element"""
@_explicitize_args
def __init__(self, children=None, backgroundColor=Component.UNDEFINED, buttonStyle=Component.UNDEFINED, className=Component.UNDEFINED, disableTouchRipple=Component.UNDEFINED, disabled=Component.UNDEFINED, disabledBackgroundColor=Component.UNDEFINED, disabledLabelColor=Component.UNDEFINED, fireEvent=Component.UNDEFINED, fullWidth=Component.UNDEFINED, href=Component.UNDEFINED, icon=Component.UNDEFINED, id=Component.UNDEFINED, label=Component.REQUIRED, labelColor=Component.UNDEFINED, labelPosition=Component.UNDEFINED, labelStyle=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_previous=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, primary=Component.UNDEFINED, rippleColor=Component.UNDEFINED, rippleStyle=Component.UNDEFINED, secondary=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'backgroundColor', 'buttonStyle', 'className', 'disableTouchRipple', 'disabled', 'disabledBackgroundColor', 'disabledLabelColor', 'fullWidth', 'href', 'icon', 'id', 'label', 'labelColor', 'labelPosition', 'labelStyle', 'n_clicks', 'n_clicks_previous', 'overlayStyle', 'primary', 'rippleColor', 'rippleStyle', 'secondary', 'style']
self._type = 'RaisedButton'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'backgroundColor', 'buttonStyle', 'className', 'disableTouchRipple', 'disabled', 'disabledBackgroundColor', 'disabledLabelColor', 'fullWidth', 'href', 'icon', 'id', 'label', 'labelColor', 'labelPosition', 'labelStyle', 'n_clicks', 'n_clicks_previous', 'overlayStyle', 'primary', 'rippleColor', 'rippleStyle', 'secondary', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['label']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(RaisedButton, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/SlideTransition.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class SlideTransition(Component):
"""A SlideTransition component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The contents of the transition element.
- id (string; required):
Dash ID of the transition element.
- className (string; optional):
CSS class name of the root element.
- slideDirection (default "up"):
The direction the child component will move when sliding into
view.
- style (dict; optional):
The styles passed to the transition element An style object (even
if empty) must be given to the transition element or it will fail
silently. See:
https://github.com/mui-org/material-ui/issues/15472.
- visible (boolean; default True):
If True, the transition element is displayed, else it will be
hidden."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, id=Component.REQUIRED, slideDirection=Component.UNDEFINED, style=Component.UNDEFINED, visible=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'slideDirection', 'style', 'visible']
self._type = 'SlideTransition'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'slideDirection', 'style', 'visible']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(SlideTransition, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Snackbar.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Snackbar(Component):
"""A Snackbar component.
Material UI Snackbar component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Elements to render inside the snackbar. Note that this will
override message and actions.
- id (string; required):
The element's ID.
- action (string; default ''):
The text of the action button inside the snackbar. If empty, no
action button will be added Note that this does not work with
children.
- actionStyles (dict; optional):
Styles to be applied to the action button.
- autoHideDuration (number; default 3000):
The number of milliseconds to wait before automatically
dismissing. If no value is specified the snackbar will dismiss
normally. If a value is provided the snackbar can still be
dismissed normally. If a snackbar is dismissed before the timer
expires, the timer will be cleared.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root anchorOriginTopCenter
anchorOriginBottomCenter anchorOriginTopRight
anchorOriginBottomRight anchorOriginTopLeft
anchorOriginBottomLeft.
`classes` is a dict with keys:
- root (string; optional)
- anchorOriginTopCenter (string; optional)
- anchorOriginBottomCenter (string; optional)
- anchorOriginTopRight (string; optional)
- anchorOriginBottomRight (string; optional)
- anchorOriginTopLeft (string; optional)
- anchorOriginBottomLeft (string; optional)
- message (a list of or a singular dash component, string or number; default ''):
The message to be displayed. (Note: If the message is an element
or array, and the Snackbar may re-render while it is still open,
ensure that the same object remains as the message property if you
want to avoid the Snackbar hiding and showing again). Note that
this does not work with children.
- n_clicks (number; default 0):
An integer that represents the number of times that action button
has been clicked.
- open (boolean; default False):
Controls whether the Snackbar is opened or not.
- style (dict; optional):
Override the inline styles of the root element."""
@_explicitize_args
def __init__(self, children=None, action=Component.UNDEFINED, actionStyles=Component.UNDEFINED, autoHideDuration=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, fireEvent=Component.UNDEFINED, id=Component.REQUIRED, message=Component.UNDEFINED, n_clicks=Component.UNDEFINED, open=Component.UNDEFINED, style=Component.UNDEFINED, bodyStyle=Component.UNDEFINED, contentStyle=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'action', 'actionStyles', 'autoHideDuration', 'className', 'classes', 'message', 'n_clicks', 'open', 'style']
self._type = 'Snackbar'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'action', 'actionStyles', 'autoHideDuration', 'className', 'classes', 'message', 'n_clicks', 'open', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Snackbar, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Stepper.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Stepper(Component):
"""A Stepper component.
Material UI Stepper component
Keyword arguments:
- id (string; required):
Dash ID.
- activeStep (number; default 0):
Set the active step (zero based index). This will enable Step
control helpers.
- alternativeLabel (boolean; default True):
If True, the labels will appear under the steps.
- backButtonStyle (dict; default {marginRight: 12}):
The style for the back button.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root horizontal vertical
alternativeLabel.
`classes` is a dict with keys:
- root (string; optional)
- horizontal (string; optional)
- vertical (string; optional)
- alternativeLabel (string; optional)
- finishedButtonStyle (dict; optional):
The style for the button displayed after all steps have been
finished.
- finishedText (string; default 'Click here to view again'):
The text to display on the final button when all steps have been
completed.
- linear (boolean; default True):
If set to True, the Stepper will assist in controlling steps for
linear flow.
- nextButtonStyle (dict; optional):
The style for the next button.
- orientation (default 'horizontal'):
The stepper orientation (layout flow direction).
- stepCount (number; default 3):
The number of steps that this component will contain.
- stepLabels (list of strings; default ['Step 1', 'Step 2', 'Step 3']):
The text labels that will be shown next to each step number. The
length of this array must match the total number of steps.
- style (dict; optional):
Override the inline-style of the root element."""
@_explicitize_args
def __init__(self, activeStep=Component.UNDEFINED, alternativeLabel=Component.UNDEFINED, backButtonStyle=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, finishedButtonStyle=Component.UNDEFINED, finishedText=Component.UNDEFINED, fireEvent=Component.UNDEFINED, id=Component.REQUIRED, linear=Component.UNDEFINED, nextButtonStyle=Component.UNDEFINED, orientation=Component.UNDEFINED, stepCount=Component.UNDEFINED, stepLabels=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'activeStep', 'alternativeLabel', 'backButtonStyle', 'className', 'classes', 'finishedButtonStyle', 'finishedText', 'linear', 'nextButtonStyle', 'orientation', 'stepCount', 'stepLabels', 'style']
self._type = 'Stepper'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'activeStep', 'alternativeLabel', 'backButtonStyle', 'className', 'classes', 'finishedButtonStyle', 'finishedText', 'linear', 'nextButtonStyle', 'orientation', 'stepCount', 'stepLabels', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Stepper, self).__init__(**args)
================================================
FILE: sd_material_ui/Subheader.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Subheader(Component):
"""A Subheader component.
Material UI Subheader component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Node that will be placed inside the Subheader.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root colorPrimary colorInherit gutters
inset sticky.
`classes` is a dict with keys:
- root (string; optional)
- colorPrimary (string; optional)
- colorInherit (string; optional)
- gutters (string; optional)
- inset (string; optional)
- sticky (string; optional)
- inset (boolean; default False):
If True, the Subheader will be indented.
- style (dict; optional):
Override the inline-styles of the root element."""
@_explicitize_args
def __init__(self, children=None, classes=Component.UNDEFINED, inset=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'classes', 'inset', 'style']
self._type = 'Subheader'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'classes', 'inset', 'style']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Subheader, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Tabs.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Tabs(Component):
"""A Tabs component.
Material UI Tabs component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Pass Tab components as children.
- id (string; default ''):
Element ID.
- className (string; optional):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root textColorPrimary textColorSecondary
textColorInherit selected disabled fullWidth wrapped
wrapper.
`classes` is a dict with keys:
- root (string; optional)
- textColorPrimary (string; optional)
- textColorSecondary (string; optional)
- textColorInherit (string; optional)
- selected (string; optional)
- disabled (string; optional)
- fullWidth (string; optional)
- wrapped (string; optional)
- wrapper (string; optional)
- style (dict; optional):
Override the inline-styles of the root element.
- tabPropsArray (list; optional):
Array of tab properties. Available props: classes disabled
disableRipple disableFocusRipple icon label value wrapped.
- value (bool | number | str | dict | list; default False):
Makes Tabs controllable and selects the tab whose value prop
matches this prop."""
@_explicitize_args
def __init__(self, children=None, id=Component.UNDEFINED, classes=Component.UNDEFINED, className=Component.UNDEFINED, fireEvent=Component.UNDEFINED, style=Component.UNDEFINED, tabPropsArray=Component.UNDEFINED, value=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'style', 'tabPropsArray', 'value']
self._type = 'Tabs'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'style', 'tabPropsArray', 'value']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Tabs, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Toggle.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Toggle(Component):
"""A Toggle component.
Keyword arguments:
- id (string; required):
Toggle ID.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root edgeStart edgeEnd switchBase
colorPrimary colorSecondary sizeSmall checked disabled
input thumb tract.
`classes` is a dict with keys:
- root (string; optional)
- edgeStart (string; optional)
- edgeEnd (string; optional)
- switchBase (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- sizeSmall (string; optional)
- checked (string; optional)
- disabled (string; optional)
- input (string; optional)
- thumb (string; optional)
- tract (string; optional)
- disabled (boolean; default False):
Whether the toggle is disabled (True) or not (False).
- label (string; default ''):
The label for the toggle.
- labelPlacement (string; default "end"):
If using a single label, its position can be: \"top\", \"start\",
\"bottom\", or \"end\".
- labelSpacing (default 1):
The space between the label(s) and toggle.
- secondaryLabel (string; default ''):
A second label for the toggle. If this is used, the labelPlacement
value is ignored, and the secondaryLabel will be positioned to
the right of the toggle, and the first label to the left.
- toggled (boolean; required):
Whether toggle is on (True) or off (False)."""
@_explicitize_args
def __init__(self, classes=Component.UNDEFINED, className=Component.UNDEFINED, disabled=Component.UNDEFINED, id=Component.REQUIRED, label=Component.UNDEFINED, labelPlacement=Component.UNDEFINED, labelSpacing=Component.UNDEFINED, secondaryLabel=Component.UNDEFINED, toggled=Component.REQUIRED, **kwargs):
self._prop_names = ['id', 'className', 'classes', 'disabled', 'label', 'labelPlacement', 'labelSpacing', 'secondaryLabel', 'toggled']
self._type = 'Toggle'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'classes', 'disabled', 'label', 'labelPlacement', 'labelSpacing', 'secondaryLabel', 'toggled']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id', 'toggled']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Toggle, self).__init__(**args)
================================================
FILE: sd_material_ui/Toolbar.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Toolbar(Component):
"""A Toolbar component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Children to render inside of the Appbar.
- id (string; required):
Appbar ID.
- className (string; default ''):
CSS class name of the root element.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: root docked paper paperAnchorLeft
paperAnchorRight paperAnchorTop paperAnchorBottom
paperAnchorDockedLeft paperAnchorDockedTop
paperAnchorDockedRight paperAnchorDockedBottom modal.
`classes` is a dict with keys:
- root (string; optional)
- positionFixed (string; optional)
- positionAbsolute (string; optional)
- positionSticky (string; optional)
- positionStatic (string; optional)
- positionRelative (string; optional)
- colorDefault (string; optional)
- colorPrimary (string; optional)
- colorSecondary (string; optional)
- colorInherit (string; optional)
- colorTransparent (string; optional)
- component (string; default 'div'):
The component used for the root node. Defaults to `div`.
- disableGutters (boolean; default False):
If True, disables gutter padding.. Defaults to `False`.
- variant (default 'regular'):
The variant to use. Defaults to `regular`."""
@_explicitize_args
def __init__(self, children=None, id=Component.REQUIRED, classes=Component.UNDEFINED, className=Component.UNDEFINED, component=Component.UNDEFINED, disableGutters=Component.UNDEFINED, variant=Component.UNDEFINED, classNameRoot=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'classes', 'component', 'disableGutters', 'variant']
self._type = 'Toolbar'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'classes', 'component', 'disableGutters', 'variant']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Toolbar, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/Tooltip.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Tooltip(Component):
"""A Tooltip component.
Material UI Tooltip component
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
Tooltip reference element.
- arrow (boolean; default False):
If True, adds an arrow to the tooltip.
- classes (dict; optional):
The classes to be applied to this component. This keys in this
object must be valid CSS rule names, and the values must be
strings for the classnames to be assigned to each rule name Valid
rule names are: tooltip tooltipArrow arrow
tooltipPlacementLeft tooltipPlacementRight
tooltipPlacementTop tooltipPlacementBottom.
`classes` is a dict with keys:
- tooltip (string; optional)
- tooltipArrow (string; optional)
- arrow (string; optional)
- tooltipPlacementLeft (string; optional)
- tooltipPlacementRight (string; optional)
- tooltipPlacementTop (string; optional)
- tooltipPlacementBottom (string; optional)
- enterDelay (number; default 100):
The number of milliseconds to wait before showing the tooltip.
- leaveDelay (number; default 0):
The number of milliseconds to wait before hiding the tooltip.
- placement (default 'bottom'):
Tooltip placement.
- title (a list of or a singular dash component, string or number; required):
Tooltip title. Zero-length titles string are never displayed."""
@_explicitize_args
def __init__(self, children=None, arrow=Component.UNDEFINED, classes=Component.UNDEFINED, enterDelay=Component.UNDEFINED, leaveDelay=Component.UNDEFINED, placement=Component.UNDEFINED, title=Component.REQUIRED, **kwargs):
self._prop_names = ['children', 'arrow', 'classes', 'enterDelay', 'leaveDelay', 'placement', 'title']
self._type = 'Tooltip'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'arrow', 'classes', 'enterDelay', 'leaveDelay', 'placement', 'title']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['title']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(Tooltip, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/ZoomTransition.py
================================================
# AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class ZoomTransition(Component):
"""A ZoomTransition component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional):
The contents of the transition element.
- id (string; required):
Dash ID of the transition element.
- className (string; optional):
CSS class name of the root element.
- style (dict; optional):
The styles passed to the transition element An style object (even
if empty) must be given to the transition element or it will fail
silently. See:
https://github.com/mui-org/material-ui/issues/15472.
- visible (boolean; default True):
If True, the transition element is displayed, else it will be
hidden."""
@_explicitize_args
def __init__(self, children=None, className=Component.UNDEFINED, id=Component.REQUIRED, style=Component.UNDEFINED, visible=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'className', 'style', 'visible']
self._type = 'ZoomTransition'
self._namespace = 'sd_material_ui'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'className', 'style', 'visible']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in ['id']:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
super(ZoomTransition, self).__init__(children=children, **args)
================================================
FILE: sd_material_ui/__init__.py
================================================
from __future__ import print_function as _
import os as _os
import sys as _sys
import json
import dash as _dash
# noinspection PyUnresolvedReferences
from ._imports_ import *
from ._imports_ import __all__
if not hasattr(_dash, 'development'):
print('Dash was not successfully imported. '
'Make sure you don\'t have a file '
'named \n"dash.py" in your current directory.', file=_sys.stderr)
_sys.exit(1)
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)
package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']
_current_path = _os.path.dirname(_os.path.abspath(__file__))
_this_module = _sys.modules[__name__]
_js_dist = [
{
'relative_package_path': 'sd_material_ui.min.js',
'dev_package_path': 'sd_material_ui.dev.js',
'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
package_name, __name__, __version__),
'namespace': package_name
}
]
_css_dist = []
for _component in __all__:
setattr(locals()[_component], '_js_dist', _js_dist)
setattr(locals()[_component], '_css_dist', _css_dist)
================================================
FILE: sd_material_ui/_imports_.py
================================================
from .Accordion import Accordion
from .AppBar import AppBar
from .AutoComplete import AutoComplete
from .BottomNavigation import BottomNavigation
from .Button import Button
from .Card import Card
from .Checkbox import Checkbox
from .CircularProgress import CircularProgress
from .CollapseTransition import CollapseTransition
from .Dialog import Dialog
from .Divider import Divider
from .Drawer import Drawer
from .DropDownMenu import DropDownMenu
from .FadeTransition import FadeTransition
from .FontIcon import FontIcon
from .GrowTransition import GrowTransition
from .LinearBuffer import LinearBuffer
from .LinearDeterminate import LinearDeterminate
from .LinearIndeterminate import LinearIndeterminate
from .Pagination import Pagination
from .Paper import Paper
from .Picker import Picker
from .Popover import Popover
from .RadioButtonGroup import RadioButtonGroup
from .SlideTransition import SlideTransition
from .Snackbar import Snackbar
from .Stepper import Stepper
from .Subheader import Subheader
from .Tabs import Tabs
from .Toggle import Toggle
from .Toolbar import Toolbar
from .Tooltip import Tooltip
from .ZoomTransition import ZoomTransition
__all__ = [
"Accordion",
"AppBar",
"AutoComplete",
"BottomNavigation",
"Button",
"Card",
"Checkbox",
"CircularProgress",
"CollapseTransition",
"Dialog",
"Divider",
"Drawer",
"DropDownMenu",
"FadeTransition",
"FontIcon",
"GrowTransition",
"LinearBuffer",
"LinearDeterminate",
"LinearIndeterminate",
"Pagination",
"Paper",
"Picker",
"Popover",
"RadioButtonGroup",
"SlideTransition",
"Snackbar",
"Stepper",
"Subheader",
"Tabs",
"Toggle",
"Toolbar",
"Tooltip",
"ZoomTransition"
]
================================================
FILE: sd_material_ui/metadata.json
================================================
{
"src/lib/components/Accordion.react.js": {
"description": "",
"displayName": "Accordion",
"methods": [
{
"name": "handleChange",
"docblock": null,
"modifiers": [],
"params": [
{
"name": "event",
"type": null
},
{
"name": "isExpanded",
"type": null
}
],
"returns": null
},
{
"name": "UNSAFE_componentWillReceiveProps",
"docblock": null,
"modifiers": [],
"params": [
{
"name": "nextProps",
"type": {
"name": "signature",
"type": "object",
"raw": "{\r\n /** Elements to render inside the accordion */\r\n children?: Node,\r\n /** The classes to be applied to this component. The keys in this object must be valid CSS rule\r\n * names, and the values must be strings for the classnames to be assigned to each rule name\r\n * Valid rule names are:\r\n * root\r\n * rounded\r\n * expanded\r\n * disabled\r\n */\r\n classes?: {\r\n root?: string,\r\n rounded?: string,\r\n expanded?: string,\r\n disabled?: string\r\n },\r\n /** The className of the root element */\r\n className?: string,\r\n /** If true, expands the accordion by defaulgt */\r\n defaultExpanded?: boolean,\r\n /** The classes to be applied to the details component (the element containing the accordion's\r\n * children). The keys in this object must be valid CSS rule names, and the values must be strings\r\n * for the classnames to be assigned to each rule name\r\n * Valid rule names are:\r\n * root\r\n */\r\n detailClasses?: {\r\n root?: string,\r\n },\r\n /** If true, the accordion will be displayed in a disabled state */\r\n disabled?: boolean,\r\n /** If true, expands the accordion, otherwise collapse it. Setting this prop enables control\r\n * over the accordion */\r\n expanded?: boolean,\r\n /** Dash callback to trigger an event handler */\r\n fireEvent?: () => void,\r\n /** The ID of the root element */\r\n id: string,\r\n /** The text displayed at the top of the accordion, regardless of expanded state*/\r\n label?: string,\r\n /** If true, rounded corners are disabled */\r\n square?: boolean,\r\n /** The classes to be applied to the summary component (the element containing the accordion's\r\n * label). The keys in this object must be valid CSS rule names, and the values must be strings\r\n * for the classnames to be assigned to each rule name\r\n * Valid rule names are:\r\n * root\r\n * expanded\r\n * focused\r\n * disabled\r\n * content\r\n * expandIcon\r\n */\r\n summaryClasses?: {\r\n root?: string,\r\n expanded?: string,\r\n focused?: string,\r\n disabled?: string,\r\n content?: string,\r\n expandIcon?: string,\r\n },\r\n}",
"signature": {
"properties": [
{
"key": "children",
"value": {
"name": "Node",
"required": false
}
},
{
"key": "classes",
"value": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n rounded?: string,\r\n expanded?: string,\r\n disabled?: string\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
},
{
"key": "rounded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expanded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "disabled",
"value": {
"name": "string",
"required": false
}
}
]
},
"required": false
}
},
{
"key": "className",
"value": {
"name": "string",
"required": false
}
},
{
"key": "defaultExpanded",
"value": {
"name": "boolean",
"required": false
}
},
{
"key": "detailClasses",
"value": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
}
]
},
"required": false
}
},
{
"key": "disabled",
"value": {
"name": "boolean",
"required": false
}
},
{
"key": "expanded",
"value": {
"name": "boolean",
"required": false
}
},
{
"key": "fireEvent",
"value": {
"name": "signature",
"type": "function",
"raw": "() => void",
"signature": {
"arguments": [],
"return": {
"name": "void"
}
},
"required": false
}
},
{
"key": "id",
"value": {
"name": "string",
"required": true
}
},
{
"key": "label",
"value": {
"name": "string",
"required": false
}
},
{
"key": "square",
"value": {
"name": "boolean",
"required": false
}
},
{
"key": "summaryClasses",
"value": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n expanded?: string,\r\n focused?: string,\r\n disabled?: string,\r\n content?: string,\r\n expandIcon?: string,\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expanded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "focused",
"value": {
"name": "string",
"required": false
}
},
{
"key": "disabled",
"value": {
"name": "string",
"required": false
}
},
{
"key": "content",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expandIcon",
"value": {
"name": "string",
"required": false
}
}
]
},
"required": false
}
}
]
},
"alias": "Props"
}
},
{
"name": "nextContent",
"type": {
"name": "unknown"
}
}
],
"returns": {
"type": {
"name": "void"
}
}
}
],
"props": {
"children": {
"required": false,
"flowType": {
"name": "Node"
},
"description": "Elements to render inside the accordion",
"defaultValue": {
"value": "null",
"computed": false
}
},
"classes": {
"required": false,
"flowType": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n rounded?: string,\r\n expanded?: string,\r\n disabled?: string\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
},
{
"key": "rounded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expanded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "disabled",
"value": {
"name": "string",
"required": false
}
}
]
}
},
"description": "The classes to be applied to this component. The keys in this object must be valid CSS rule\r\nnames, and the values must be strings for the classnames to be assigned to each rule name\r\nValid rule names are:\r\n root\r\n rounded\r\n expanded\r\n disabled",
"defaultValue": {
"value": "{}",
"computed": false
}
},
"className": {
"required": false,
"flowType": {
"name": "string"
},
"description": "The className of the root element"
},
"defaultExpanded": {
"required": false,
"flowType": {
"name": "boolean"
},
"description": "If true, expands the accordion by defaulgt",
"defaultValue": {
"value": "false",
"computed": false
}
},
"detailClasses": {
"required": false,
"flowType": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
}
]
}
},
"description": "The classes to be applied to the details component (the element containing the accordion's\r\nchildren). The keys in this object must be valid CSS rule names, and the values must be strings\r\nfor the classnames to be assigned to each rule name\r\nValid rule names are:\r\n root"
},
"disabled": {
"required": false,
"flowType": {
"name": "boolean"
},
"description": "If true, the accordion will be displayed in a disabled state",
"defaultValue": {
"value": "false",
"computed": false
}
},
"expanded": {
"required": false,
"flowType": {
"name": "boolean"
},
"description": "If true, expands the accordion, otherwise collapse it. Setting this prop enables control\r\nover the accordion",
"defaultValue": {
"value": "false",
"computed": false
}
},
"fireEvent": {
"required": false,
"flowType": {
"name": "signature",
"type": "function",
"raw": "() => void",
"signature": {
"arguments": [],
"return": {
"name": "void"
}
}
},
"description": "Dash callback to trigger an event handler",
"defaultValue": {
"value": "() => {}",
"computed": false
}
},
"id": {
"required": true,
"flowType": {
"name": "string"
},
"description": "The ID of the root element"
},
"label": {
"required": false,
"flowType": {
"name": "string"
},
"description": "The text displayed at the top of the accordion, regardless of expanded state",
"defaultValue": {
"value": "''",
"computed": false
}
},
"square": {
"required": false,
"flowType": {
"name": "boolean"
},
"description": "If true, rounded corners are disabled",
"defaultValue": {
"value": "false",
"computed": false
}
},
"summaryClasses": {
"required": false,
"flowType": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n expanded?: string,\r\n focused?: string,\r\n disabled?: string,\r\n content?: string,\r\n expandIcon?: string,\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expanded",
"value": {
"name": "string",
"required": false
}
},
{
"key": "focused",
"value": {
"name": "string",
"required": false
}
},
{
"key": "disabled",
"value": {
"name": "string",
"required": false
}
},
{
"key": "content",
"value": {
"name": "string",
"required": false
}
},
{
"key": "expandIcon",
"value": {
"name": "string",
"required": false
}
}
]
}
},
"description": "The classes to be applied to the summary component (the element containing the accordion's\r\nlabel). The keys in this object must be valid CSS rule names, and the values must be strings\r\nfor the classnames to be assigned to each rule name\r\nValid rule names are:\r\n root\r\n expanded\r\n focused\r\n disabled\r\n content\r\n expandIcon"
},
"setProps": {
"defaultValue": {
"value": "() => {}",
"computed": false
},
"required": false
}
}
},
"src/lib/components/AppBar.react.js": {
"description": "",
"displayName": "AppBar",
"methods": [],
"props": {
"id": {
"required": true,
"flowType": {
"name": "string"
},
"description": "Appbar ID"
},
"children": {
"required": false,
"flowType": {
"name": "Node"
},
"description": "Children to render inside of the Appbar",
"defaultValue": {
"value": "null",
"computed": false
}
},
"classes": {
"required": false,
"flowType": {
"name": "signature",
"type": "object",
"raw": "{\r\n root?: string,\r\n positionFixed?: string,\r\n positionAbsolute?: string,\r\n positionSticky?: string,\r\n positionStatic?: string,\r\n positionRelative?: string,\r\n colorDefault?: string,\r\n colorPrimary?: string,\r\n colorSecondary?: string,\r\n colorInherit?: string,\r\n colorTransparent?: string,\r\n}",
"signature": {
"properties": [
{
"key": "root",
"value": {
"name": "string",
"required": false
}
},
{
"key": "positionFixed",
"value": {
"name": "string",
"required": false
}
},
{
"key": "positionAbsolute",
"value": {
"name": "string",
"required": false
}
},
{
"key": "positionSticky",
"value": {
"name": "string",
"required": false
}
},
{
"key": "positionStatic",
"value": {
"name": "string",
"required": false
}
},
{
"key": "positionRelative",
"value": {
"name": "string",
"required": false
}
},
{
"key": "colorDefault",
"value": {
"name": "string",
"required": false
}
},
{
"key": "colorPrimary",
"value": {
"name": "string",
"required": false
}
},
{
"key": "colorSecondary",
"value": {
"name": "string",
"required": false
}
},
{
"key": "colorInherit",
"value": {
"name": "string",
"required": false
}
},
{
"key": "colorTransparent",
"value": {
"name": "string",
"required": false
}
}
]
}
},
"description": "The classes to be applied to this component. This keys in this object must be valid CSS rule\r\nnames, and the values must be strings for the classnames to be assigned to each rule name\r\nValid rule names are:\r\n root\r\n docked\r\n paper\r\n paperAnchorLeft\r\n paperAnchorRight\r\n paperAnchorTop\r\n paperAnchorBottom\r\n paperAnchorDockedLeft\r\n paperAnchorDockedTop\r\n paperAnchorDockedRight\r\n paperAnchorDockedBottom\r\n modal",
"defaultValue": {
"value": "{}",
"computed": false
}
},
"className": {
"required": false,
"flowType": {
"name": "string"
},
"description": "CSS class name of the root element",
"defaultValue": {
"value": "''",
"computed": false
}
},
"color": {
"required": false,
"flowType": {
"name": "union",
"raw": "'default' | 'inherit' | 'primary' | 'secondary' | 'transparent'",
"elements": [
{
"name": "literal",
"value": "'default'"
},
{
"name": "literal",
"value": "'inherit'"
},
{
"name": "literal",
"value": "'primary'"
},
{
"name": "literal",
"value": "'secondary'"
},
{
"name": "literal",
"value": "'transparent'"
}
]
},
"description": "The color of the component. It supports those theme colors that make sense for this component.",
"defaultValue": {
"value": "'primary'",
"computed": false
}
},
"position": {
"required": false,
"flowType": {
"name": "union",
"raw": "'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'",
"elements": [
{
"name": "literal",
"value": "'absolute'"
},
{
"name": "literal",
"value": "'fixed'"
},
{
"name": "literal",
"value": "'relative'"
},
{
"name": "literal",
"value": "'static'"
},
{
"name": "literal",
"value": "'sticky'"
}
]
},
"description": "The positioning type. Defaults to `fixed`",
"defaultValue": {
"value": "'fixed'",
"computed": false
}
},
"classNameRoot": {
"defaultValue": {
"value": "''",
"computed": false
},
"required": false
},
"setProps": {
"defaultValue": {
"value": "() => {}",
"computed": false
},
"required": false
}
}
},
"src/lib/components/AutoComplete.react.js": {
"description": "Material UI AutoComplete component",
"displayName": "AutoComplete",
gitextract_ckrq4u4q/ ├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .github/ │ ├── ISSUE_TEMPLATE.md │ ├── PULL_REQUEST_TEMPLATE.md │ ├── dependabot.yml │ └── workflows/ │ └── publish-pypi.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── .pylintrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── MANIFEST.in ├── README.md ├── _validate_init.py ├── config/ │ ├── webpack.config.dev.js │ └── webpack.config.dist.js ├── infra/ │ └── ci/ │ └── Tollgate.groovy ├── package.json ├── pytest.ini ├── requirements.txt ├── review_checklist.md ├── scripts/ │ └── publish-pypi.sh ├── sd_material_ui/ │ ├── Accordion.py │ ├── AppBar.py │ ├── AutoComplete.py │ ├── BottomNavigation.py │ ├── Button.py │ ├── Card.py │ ├── Checkbox.py │ ├── CircularProgress.py │ ├── CollapseTransition.py │ ├── Dialog.py │ ├── Divider.py │ ├── Drawer.py │ ├── DropDownMenu.py │ ├── FadeTransition.py │ ├── FlatButton.py │ ├── FontIcon.py │ ├── GrowTransition.py │ ├── IconButton.py │ ├── LinearBuffer.py │ ├── LinearDeterminate.py │ ├── LinearIndeterminate.py │ ├── Pagination.py │ ├── Paper.py │ ├── Picker.py │ ├── Popover.py │ ├── Questions.py │ ├── QuestionsTabs.py │ ├── RadioButtonGroup.py │ ├── RaisedButton.py │ ├── SlideTransition.py │ ├── Snackbar.py │ ├── Stepper.py │ ├── Subheader.py │ ├── Tabs.py │ ├── Toggle.py │ ├── Toolbar.py │ ├── Tooltip.py │ ├── ZoomTransition.py │ ├── __init__.py │ ├── _imports_.py │ ├── metadata.json │ ├── package.json │ ├── sd_material_ui.dev.js │ └── sdmaterialui.py ├── setup.py ├── src/ │ └── lib/ │ ├── components/ │ │ ├── Accordion.react.js │ │ ├── AppBar.react.js │ │ ├── AutoComplete.react.js │ │ ├── BottomNavigation.react.js │ │ ├── Button.react.js │ │ ├── Card.react.js │ │ ├── Checkbox.react.js │ │ ├── CircularProgress.react.js │ │ ├── CollapseTransition.react.js │ │ ├── Dialog.react.js │ │ ├── Divider.react.js │ │ ├── Drawer.react.js │ │ ├── DropDownMenu.react.js │ │ ├── FadeTransition.react.js │ │ ├── FontIcon.react.js │ │ ├── GrowTransition.react.js │ │ ├── LinearBuffer.react.js │ │ ├── LinearDeterminate.react.js │ │ ├── LinearIndeterminate.react.js │ │ ├── Pagination.react.js │ │ ├── Paper.react.js │ │ ├── Picker.react.js │ │ ├── Popover.react.js │ │ ├── RadioButtonGroup.react.js │ │ ├── SlideTransition.react.js │ │ ├── Snackbar.react.js │ │ ├── Stepper.react.js │ │ ├── Subheader.react.js │ │ ├── Tabs.react.js │ │ ├── Toggle.react.js │ │ ├── Toolbar.react.js │ │ ├── Tooltip.react.js │ │ └── ZoomTransition.react.js │ └── index.js ├── test/ │ ├── IntegrationTests.py │ ├── TESTING.md │ ├── __init__.py │ ├── _test-env.js │ ├── test_integration.py │ └── utils.py ├── usage.py ├── webpack.config.js └── webpack.serve.config.js
SYMBOL INDEX (161 symbols across 71 files)
FILE: _validate_init.py
function check_dist (line 26) | def check_dist(dist, filename):
function check_manifest (line 42) | def check_manifest(filename):
function check_file (line 46) | def check_file(dist, filename):
FILE: sd_material_ui/Accordion.py
class Accordion (line 6) | class Accordion(Component):
method __init__ (line 86) | def __init__(self, children=None, classes=Component.UNDEFINED, classNa...
FILE: sd_material_ui/AppBar.py
class AppBar (line 6) | class AppBar(Component):
method __init__ (line 61) | def __init__(self, children=None, id=Component.REQUIRED, classes=Compo...
FILE: sd_material_ui/AutoComplete.py
class AutoComplete (line 6) | class AutoComplete(Component):
method __init__ (line 120) | def __init__(self, classes=Component.UNDEFINED, className=Component.UN...
FILE: sd_material_ui/BottomNavigation.py
class BottomNavigation (line 6) | class BottomNavigation(Component):
method __init__ (line 37) | def __init__(self, id=Component.UNDEFINED, classes=Component.UNDEFINED...
FILE: sd_material_ui/Button.py
class Button (line 6) | class Button(Component):
method __init__ (line 139) | def __init__(self, children=None, classes=Component.UNDEFINED, classNa...
FILE: sd_material_ui/Card.py
class Card (line 6) | class Card(Component):
method __init__ (line 46) | def __init__(self, children=None, className=Component.UNDEFINED, class...
FILE: sd_material_ui/Checkbox.py
class Checkbox (line 6) | class Checkbox(Component):
method __init__ (line 59) | def __init__(self, checked=Component.UNDEFINED, className=Component.UN...
FILE: sd_material_ui/CircularProgress.py
class CircularProgress (line 6) | class CircularProgress(Component):
method __init__ (line 56) | def __init__(self, classes=Component.UNDEFINED, color=Component.UNDEFI...
FILE: sd_material_ui/CollapseTransition.py
class CollapseTransition (line 6) | class CollapseTransition(Component):
method __init__ (line 28) | def __init__(self, children=None, className=Component.UNDEFINED, colla...
FILE: sd_material_ui/Dialog.py
class Dialog (line 6) | class Dialog(Component):
method __init__ (line 92) | def __init__(self, children=None, id=Component.REQUIRED, ariaLabelledB...
FILE: sd_material_ui/Divider.py
class Divider (line 6) | class Divider(Component):
method __init__ (line 38) | def __init__(self, classes=Component.UNDEFINED, style=Component.UNDEFI...
FILE: sd_material_ui/Drawer.py
class Drawer (line 6) | class Drawer(Component):
method __init__ (line 69) | def __init__(self, children=None, anchor=Component.UNDEFINED, id=Compo...
FILE: sd_material_ui/DropDownMenu.py
class DropDownMenu (line 6) | class DropDownMenu(Component):
method __init__ (line 85) | def __init__(self, autoWidth=Component.UNDEFINED, classes=Component.UN...
FILE: sd_material_ui/FadeTransition.py
class FadeTransition (line 6) | class FadeTransition(Component):
method __init__ (line 31) | def __init__(self, children=None, className=Component.UNDEFINED, id=Co...
FILE: sd_material_ui/FlatButton.py
class FlatButton (line 6) | class FlatButton(Component):
method __init__ (line 40) | def __init__(self, children=None, backgroundColor=Component.UNDEFINED,...
FILE: sd_material_ui/FontIcon.py
class FontIcon (line 6) | class FontIcon(Component):
method __init__ (line 52) | def __init__(self, classes=Component.UNDEFINED, className=Component.UN...
FILE: sd_material_ui/GrowTransition.py
class GrowTransition (line 6) | class GrowTransition(Component):
method __init__ (line 31) | def __init__(self, children=None, className=Component.UNDEFINED, id=Co...
FILE: sd_material_ui/IconButton.py
class IconButton (line 6) | class IconButton(Component):
method __init__ (line 35) | def __init__(self, children=None, className=Component.UNDEFINED, disab...
FILE: sd_material_ui/LinearBuffer.py
class LinearBuffer (line 6) | class LinearBuffer(Component):
method __init__ (line 24) | def __init__(self, color=Component.UNDEFINED, id=Component.REQUIRED, b...
FILE: sd_material_ui/LinearDeterminate.py
class LinearDeterminate (line 6) | class LinearDeterminate(Component):
method __init__ (line 25) | def __init__(self, color=Component.UNDEFINED, id=Component.REQUIRED, v...
FILE: sd_material_ui/LinearIndeterminate.py
class LinearIndeterminate (line 6) | class LinearIndeterminate(Component):
method __init__ (line 15) | def __init__(self, color=Component.UNDEFINED, **kwargs):
FILE: sd_material_ui/Pagination.py
class Pagination (line 6) | class Pagination(Component):
method __init__ (line 21) | def __init__(self, id=Component.REQUIRED, page=Component.UNDEFINED, co...
FILE: sd_material_ui/Paper.py
class Paper (line 6) | class Paper(Component):
method __init__ (line 96) | def __init__(self, children=None, id=Component.UNDEFINED, className=Co...
FILE: sd_material_ui/Picker.py
class Picker (line 6) | class Picker(Component):
method __init__ (line 33) | def __init__(self, format=Component.UNDEFINED, id=Component.REQUIRED, ...
FILE: sd_material_ui/Popover.py
class Popover (line 6) | class Popover(Component):
method __init__ (line 74) | def __init__(self, children=None, anchorOrigin=Component.UNDEFINED, an...
FILE: sd_material_ui/Questions.py
class Questions (line 6) | class Questions(Component):
method __init__ (line 17) | def __init__(self, id=Component.REQUIRED, questionSectionProps=Compone...
FILE: sd_material_ui/QuestionsTabs.py
class QuestionsTabs (line 6) | class QuestionsTabs(Component):
method __init__ (line 18) | def __init__(self, id=Component.REQUIRED, questionSectionProps=Compone...
FILE: sd_material_ui/RadioButtonGroup.py
class RadioButtonGroup (line 6) | class RadioButtonGroup(Component):
method __init__ (line 52) | def __init__(self, classes=Component.UNDEFINED, className=Component.UN...
FILE: sd_material_ui/RaisedButton.py
class RaisedButton (line 6) | class RaisedButton(Component):
method __init__ (line 40) | def __init__(self, children=None, backgroundColor=Component.UNDEFINED,...
FILE: sd_material_ui/SlideTransition.py
class SlideTransition (line 6) | class SlideTransition(Component):
method __init__ (line 35) | def __init__(self, children=None, className=Component.UNDEFINED, id=Co...
FILE: sd_material_ui/Snackbar.py
class Snackbar (line 6) | class Snackbar(Component):
method __init__ (line 79) | def __init__(self, children=None, action=Component.UNDEFINED, actionSt...
FILE: sd_material_ui/Stepper.py
class Stepper (line 6) | class Stepper(Component):
method __init__ (line 73) | def __init__(self, activeStep=Component.UNDEFINED, alternativeLabel=Co...
FILE: sd_material_ui/Subheader.py
class Subheader (line 6) | class Subheader(Component):
method __init__ (line 42) | def __init__(self, children=None, classes=Component.UNDEFINED, inset=C...
FILE: sd_material_ui/Tabs.py
class Tabs (line 6) | class Tabs(Component):
method __init__ (line 60) | def __init__(self, children=None, id=Component.UNDEFINED, classes=Comp...
FILE: sd_material_ui/Toggle.py
class Toggle (line 6) | class Toggle(Component):
method __init__ (line 73) | def __init__(self, classes=Component.UNDEFINED, className=Component.UN...
FILE: sd_material_ui/Toolbar.py
class Toolbar (line 6) | class Toolbar(Component):
method __init__ (line 63) | def __init__(self, children=None, id=Component.REQUIRED, classes=Compo...
FILE: sd_material_ui/Tooltip.py
class Tooltip (line 6) | class Tooltip(Component):
method __init__ (line 54) | def __init__(self, children=None, arrow=Component.UNDEFINED, classes=C...
FILE: sd_material_ui/ZoomTransition.py
class ZoomTransition (line 6) | class ZoomTransition(Component):
method __init__ (line 31) | def __init__(self, children=None, className=Component.UNDEFINED, id=Co...
FILE: sd_material_ui/sd_material_ui.dev.js
function __webpack_require__ (line 7) | function __webpack_require__(moduleId) {
FILE: sd_material_ui/sdmaterialui.py
class sdmaterialui (line 6) | class sdmaterialui(Component):
method __init__ (line 19) | def __init__(self, id=Component.UNDEFINED, label=Component.REQUIRED, v...
FILE: src/lib/components/Accordion.react.js
method constructor (line 92) | constructor(props) {
FILE: src/lib/components/AppBar.react.js
method constructor (line 60) | constructor(props: Props) {
method render (line 64) | render() {
FILE: src/lib/components/AutoComplete.react.js
class AutoComplete (line 193) | class AutoComplete extends Component<Props, State> {
method constructor (line 194) | constructor(props: Props) {
method if (line 211) | if (nextProps.searchText !== null && nextProps.searchText !== this.pro...
FILE: src/lib/components/BottomNavigation.react.js
class BottomNavigation (line 61) | class BottomNavigation extends Component<Props, State> {
method if (line 75) | if (nextProps.selectedValue !== newValue) {
FILE: src/lib/components/Button.react.js
method constructor (line 152) | constructor(props: Props) {
FILE: src/lib/components/Card.react.js
method render (line 58) | render() {
FILE: src/lib/components/Checkbox.react.js
class Checkbox (line 70) | class Checkbox extends Component<Props, State> {
method constructor (line 71) | constructor(props: Props) {
method if (line 77) | if (nextProps.checked !== null && nextProps.checked !== this.props.che...
FILE: src/lib/components/CollapseTransition.react.js
method constructor (line 33) | constructor(props) {
FILE: src/lib/components/Dialog.react.js
method constructor (line 104) | constructor(props: Props) {
FILE: src/lib/components/Drawer.react.js
method constructor (line 74) | constructor(props: Props) {
FILE: src/lib/components/DropDownMenu.react.js
class DropDownMenu (line 93) | class DropDownMenu extends Component<Props, State> {
method constructor (line 94) | constructor(props: Props) {
FILE: src/lib/components/FadeTransition.react.js
method constructor (line 36) | constructor(props) {
FILE: src/lib/components/GrowTransition.react.js
method constructor (line 36) | constructor(props) {
FILE: src/lib/components/LinearBuffer.react.js
method constructor (line 26) | constructor(props: Props) {
FILE: src/lib/components/LinearDeterminate.react.js
method constructor (line 28) | constructor(props: Props) {
FILE: src/lib/components/Picker.react.js
method constructor (line 44) | constructor(props: Props) {
FILE: src/lib/components/Popover.react.js
method constructor (line 77) | constructor(props) {
FILE: src/lib/components/RadioButtonGroup.react.js
class RadioButtonGroup (line 74) | class RadioButtonGroup extends Component<Props, State> {
method constructor (line 75) | constructor(props: Props) {
FILE: src/lib/components/SlideTransition.react.js
method constructor (line 39) | constructor(props) {
FILE: src/lib/components/Snackbar.react.js
method constructor (line 89) | constructor(props: Props) {
FILE: src/lib/components/Stepper.react.js
method constructor (line 87) | constructor(props: Props) {
FILE: src/lib/components/Tabs.react.js
class Tabs (line 88) | class Tabs extends Component<Props, State> {
method constructor (line 89) | constructor(props: Props) {
FILE: src/lib/components/Toggle.react.js
method constructor (line 81) | constructor(props: Props) {
FILE: src/lib/components/Toolbar.react.js
method constructor (line 63) | constructor(props: Props) {
method render (line 67) | render() {
FILE: src/lib/components/Tooltip.react.js
method constructor (line 57) | constructor(props) {
method render (line 61) | render() {
FILE: src/lib/components/ZoomTransition.react.js
method constructor (line 36) | constructor(props) {
FILE: test/IntegrationTests.py
class IntegrationTests (line 18) | class IntegrationTests(unittest.TestCase):
method setUpClass (line 21) | def setUpClass(cls):
method tearDownClass (line 27) | def tearDownClass(cls):
method setUp (line 31) | def setUp(self):
method tearDown (line 34) | def tearDown(self):
method startServer (line 41) | def startServer(self, app):
FILE: test/test_integration.py
class Tests (line 24) | class Tests(IntegrationTests):
method setUp (line 25) | def setUp(self):
method test_flat_button (line 42) | def test_flat_button(self):
method test_raised_button (line 71) | def test_raised_button(self):
FILE: test/utils.py
function invincible (line 7) | def invincible(func):
class WaitForTimeout (line 16) | class WaitForTimeout(Exception):
function wait_for (line 21) | def wait_for(condition_function, get_message=lambda: '', *args, **kwargs):
function waiter (line 70) | def waiter(waiter_func, waitfor_string='waitfor'):
function assert_clean_console (line 91) | def assert_clean_console(TestClass):
FILE: usage.py
function callback_update_progress (line 484) | def callback_update_progress(n_intervals):
function callback_stepper (line 499) | def callback_stepper(n_clicks: int,
function callback_time_picker (line 506) | def callback_time_picker(_datetime: str):
function callback_time_picker (line 522) | def callback_time_picker(_datetime: str):
function callback_reset_tab (line 529) | def callback_reset_tab(n: int):
function callback_tab (line 538) | def callback_tab(val: int):
function callback_snackbar (line 548) | def callback_snackbar(n: int, _open: bool):
function callback_snackbar_text (line 557) | def callback_snackbar_text(n: int):
function callback_func_transition_collapse (line 566) | def callback_func_transition_collapse(toggled: bool):
function callback_func_transition_fade (line 575) | def callback_func_transition_fade(toggled: bool):
function callback_func_transition_grow (line 584) | def callback_func_transition_grow(toggled: bool):
function callback_func_transition_slide (line 593) | def callback_func_transition_slide(toggled: bool):
function callback_func_transition_zoom (line 602) | def callback_func_transition_zoom(toggled: bool):
function callback_bottom_nav (line 611) | def callback_bottom_nav(value, state_value):
function show_modal_dialog (line 623) | def show_modal_dialog(modal_click: int, close_button: int, open_state: b...
function callback_checkboxes (line 642) | def callback_checkboxes(check_1: bool, check_2: bool, check_3: bool,
function callback_checkboxes (line 659) | def callback_checkboxes(n: int):
function callback_accordions (line 670) | def callback_accordions(clicks):
function callback_accordion_disable (line 679) | def callback_accordion_disable(toggle_status):
function operate_drawer (line 691) | def operate_drawer(button_click, menu_item_click, drawer_state):
function use_toggle (line 703) | def use_toggle(switch):
function dropdown_callback (line 714) | def dropdown_callback(value):
function autocomplete_callback (line 722) | def autocomplete_callback(searchText: str):
function autocomplete_callback (line 730) | def autocomplete_callback(searchValue: int):
function radiobuttongroup_callback (line 738) | def radiobuttongroup_callback(value):
function pagination_component_page_number_callback (line 744) | def pagination_component_page_number_callback(page_num: int) -> str:
function tooltip_button_callback (line 751) | def tooltip_button_callback(clicks: int) -> str:
Copy disabled (too large)
Download .json
Condensed preview — 115 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (11,267K chars).
[
{
"path": ".babelrc",
"chars": 264,
"preview": "{\n \"presets\": [\n \"@babel/preset-env\",\n \"@babel/preset-react\",\n \"@babel/preset-flow\"\n ],\n \"plugins\": [\n [\n"
},
{
"path": ".editorconfig",
"chars": 226,
"preview": "root = true\n\n[*]\nindent_style = space\nindent_size = 4\ninsert_final_newline = true\ntrim_trailing_whitespace = true\nend_of"
},
{
"path": ".eslintignore",
"chars": 30,
"preview": "*.css\nregisterServiceWorker.js"
},
{
"path": ".eslintrc",
"chars": 3309,
"preview": "{\n \"extends\": [\"eslint:recommended\", \"prettier\"],\n \"parser\": \"babel-eslint\",\n \"parserOptions\": {\n \"ecmaVersion\": 6"
},
{
"path": ".flowconfig",
"chars": 511,
"preview": "[options]\nunsafe.enable_getters_and_setters=true\nmodule.file_ext=.js\nsuppress_comment= \\\\(.\\\\|\\n\\\\)*\\\\$FlowFixMe\nespropo"
},
{
"path": ".github/ISSUE_TEMPLATE.md",
"chars": 1125,
"preview": "<!--- Provide a general summary of your changes in the Title above -->\n<!--- MANDATORY -->\n<!--- Always fill out a descr"
},
{
"path": ".github/PULL_REQUEST_TEMPLATE.md",
"chars": 630,
"preview": "<!--- Provide a general summary of your changes in the Title above -->\n\n<!--- MANDATORY -->\n<!--- Always fill out a desc"
},
{
"path": ".github/dependabot.yml",
"chars": 1990,
"preview": "version: 2\nregistries:\n npm-registry-registry-npmjs-org:\n type: npm-registry\n url: https://registry.npmjs.org\n "
},
{
"path": ".github/workflows/publish-pypi.yml",
"chars": 662,
"preview": "\nname: Upload Python Package\n\non:\n release:\n types: [created]\n\njobs:\n deploy:\n runs-on: ubuntu-latest\n steps:"
},
{
"path": ".gitignore",
"chars": 4623,
"preview": "# Created by .ignore support plugin (hsz.mobi)\n### VisualStudioCode template\n.vscode/*\n!.vscode/settings.json\n!.vscode/t"
},
{
"path": ".npmignore",
"chars": 282,
"preview": "# dependencies\n/node_modules\n\n# testing\n/coverage\n\n# misc\n.DS_Store\n.env.local\n.env.development.local\n.env.test.local\n.e"
},
{
"path": ".prettierrc",
"chars": 104,
"preview": "{\n \"tabWidth\": 4,\n \"singleQuote\": true,\n \"bracketSpacing\": false,\n \"trailingComma\": \"es5\"\n}\n"
},
{
"path": ".pylintrc",
"chars": 16799,
"preview": "[MASTER]\n\n# A comma-separated list of package or module names from where C extensions may\n# be loaded. Extensions are lo"
},
{
"path": "CHANGELOG.md",
"chars": 13365,
"preview": "# Change Log for sd-material-ui\nAll notable changes to this project will be documented in this file.\nThis project adhere"
},
{
"path": "CONTRIBUTING.md",
"chars": 221,
"preview": "# CONTRIBUTING\n\nThis project was generated by the [dash-component-boilerplate](https://github.com/plotly/dash-component-"
},
{
"path": "LICENSE.txt",
"chars": 1076,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2017 StratoDem\n\nPermission is hereby granted, free of charge, to any person obtaini"
},
{
"path": "MANIFEST.in",
"chars": 181,
"preview": "include sd_material_ui/sd_material_ui.min.js\ninclude sd_material_ui/sd_material_ui.dev.js\ninclude sd_material_ui/metadat"
},
{
"path": "README.md",
"chars": 3353,
"preview": "# sd-material-ui\n\nStratoDem Analytics Dash implementation of material-ui components.\n\nDash wrappers around the excellent"
},
{
"path": "_validate_init.py",
"chars": 1656,
"preview": "\"\"\"\nDO NOT MODIFY\nThis file is used to validate your publish settings.\n\"\"\"\nfrom __future__ import print_function\n\nimport"
},
{
"path": "config/webpack.config.dev.js",
"chars": 1388,
"preview": "const path = require('path');\nconst webpack = require('webpack');\n\nconst sourcePath = path.join(__dirname, '../src');\nco"
},
{
"path": "config/webpack.config.dist.js",
"chars": 832,
"preview": "const config = require('./webpack.config.dev');\n\nconst webpack = require('webpack');\nconst CompressionPlugin = require('"
},
{
"path": "infra/ci/Tollgate.groovy",
"chars": 54,
"preview": "@Library('pipeline-library-jenkins') _\ntollgate_AGS()\n"
},
{
"path": "package.json",
"chars": 3142,
"preview": "{\n \"name\": \"sd-material-ui\",\n \"version\": \"4.6.0\",\n \"description\": \"material-ui components for Dash\",\n \"main\": \"build"
},
{
"path": "pytest.ini",
"chars": 47,
"preview": "[pytest]\ntestpaths = tests/\nwebdriver = Chrome\n"
},
{
"path": "requirements.txt",
"chars": 50,
"preview": "# dash is required to call `build:py`\ndash\npyyaml\n"
},
{
"path": "review_checklist.md",
"chars": 3296,
"preview": "# Code Review Checklist\n\n## Code quality & design\n\n- Is your code clear? If you had to go back to it in a month, would"
},
{
"path": "scripts/publish-pypi.sh",
"chars": 153,
"preview": "#!/usr/bin/env bash\n\n. venv/bin/activate\n\npython setup.py bdist_wheel --universal\npython setup.py bdist_wheel\npython set"
},
{
"path": "sd_material_ui/Accordion.py",
"chars": 3878,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ac"
},
{
"path": "sd_material_ui/AppBar.py",
"chars": 2649,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ap"
},
{
"path": "sd_material_ui/AutoComplete.py",
"chars": 5044,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Au"
},
{
"path": "sd_material_ui/BottomNavigation.py",
"chars": 2120,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Bo"
},
{
"path": "sd_material_ui/Button.py",
"chars": 5619,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Bu"
},
{
"path": "sd_material_ui/Card.py",
"chars": 2437,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ca"
},
{
"path": "sd_material_ui/Checkbox.py",
"chars": 2600,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ch"
},
{
"path": "sd_material_ui/CircularProgress.py",
"chars": 2482,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ci"
},
{
"path": "sd_material_ui/CollapseTransition.py",
"chars": 1711,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Co"
},
{
"path": "sd_material_ui/Dialog.py",
"chars": 4216,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Di"
},
{
"path": "sd_material_ui/Divider.py",
"chars": 1710,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Di"
},
{
"path": "sd_material_ui/Drawer.py",
"chars": 3045,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Dr"
},
{
"path": "sd_material_ui/DropDownMenu.py",
"chars": 4159,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Dr"
},
{
"path": "sd_material_ui/FadeTransition.py",
"chars": 1811,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Fa"
},
{
"path": "sd_material_ui/FlatButton.py",
"chars": 4355,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Fl"
},
{
"path": "sd_material_ui/FontIcon.py",
"chars": 2257,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Fo"
},
{
"path": "sd_material_ui/GrowTransition.py",
"chars": 1811,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Gr"
},
{
"path": "sd_material_ui/IconButton.py",
"chars": 3880,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ic"
},
{
"path": "sd_material_ui/LinearBuffer.py",
"chars": 1448,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Li"
},
{
"path": "sd_material_ui/LinearDeterminate.py",
"chars": 1509,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Li"
},
{
"path": "sd_material_ui/LinearIndeterminate.py",
"chars": 1077,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Li"
},
{
"path": "sd_material_ui/Pagination.py",
"chars": 1260,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Pa"
},
{
"path": "sd_material_ui/Paper.py",
"chars": 3300,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Pa"
},
{
"path": "sd_material_ui/Picker.py",
"chars": 1805,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Pi"
},
{
"path": "sd_material_ui/Popover.py",
"chars": 3624,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Po"
},
{
"path": "sd_material_ui/Questions.py",
"chars": 1750,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Qu"
},
{
"path": "sd_material_ui/QuestionsTabs.py",
"chars": 1837,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Qu"
},
{
"path": "sd_material_ui/RadioButtonGroup.py",
"chars": 2518,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ra"
},
{
"path": "sd_material_ui/RaisedButton.py",
"chars": 4927,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ra"
},
{
"path": "sd_material_ui/SlideTransition.py",
"chars": 1997,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Sl"
},
{
"path": "sd_material_ui/Snackbar.py",
"chars": 4005,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Sn"
},
{
"path": "sd_material_ui/Stepper.py",
"chars": 3672,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass St"
},
{
"path": "sd_material_ui/Subheader.py",
"chars": 2009,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Su"
},
{
"path": "sd_material_ui/Tabs.py",
"chars": 2705,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Ta"
},
{
"path": "sd_material_ui/Toggle.py",
"chars": 3088,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass To"
},
{
"path": "sd_material_ui/Toolbar.py",
"chars": 2804,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass To"
},
{
"path": "sd_material_ui/Tooltip.py",
"chars": 2639,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass To"
},
{
"path": "sd_material_ui/ZoomTransition.py",
"chars": 1811,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass Zo"
},
{
"path": "sd_material_ui/__init__.py",
"chars": 1261,
"preview": "from __future__ import print_function as _\n\nimport os as _os\nimport sys as _sys\nimport json\n\nimport dash as _dash\n\n# noi"
},
{
"path": "sd_material_ui/_imports_.py",
"chars": 1765,
"preview": "from .Accordion import Accordion\nfrom .AppBar import AppBar\nfrom .AutoComplete import AutoComplete\nfrom .BottomNavigatio"
},
{
"path": "sd_material_ui/metadata.json",
"chars": 266302,
"preview": "{\n \"src/lib/components/Accordion.react.js\": {\n \"description\": \"\",\n \"displayName\": \"Accordion\",\n \"methods\": [\n "
},
{
"path": "sd_material_ui/package.json",
"chars": 3142,
"preview": "{\n \"name\": \"sd-material-ui\",\n \"version\": \"4.6.0\",\n \"description\": \"material-ui components for Dash\",\n \"main\": \"build"
},
{
"path": "sd_material_ui/sd_material_ui.dev.js",
"chars": 10447147,
"preview": "window[\"sd_material_ui\"] =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar"
},
{
"path": "sd_material_ui/sdmaterialui.py",
"chars": 1463,
"preview": "# AUTO GENERATED FILE - DO NOT EDIT\n\nfrom dash.development.base_component import Component, _explicitize_args\n\n\nclass sd"
},
{
"path": "setup.py",
"chars": 509,
"preview": "import json\nimport os\nfrom setuptools import setup\n\n\nwith open(os.path.join('sd_material_ui', 'package.json')) as f:\n "
},
{
"path": "src/lib/components/Accordion.react.js",
"chars": 4205,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport { default as MuiAccordion } from '@material-ui/core/Accordion"
},
{
"path": "src/lib/components/AppBar.react.js",
"chars": 2065,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport { default as MuiAppBar } from '@material-ui/core/AppBar';\n\nty"
},
{
"path": "src/lib/components/AutoComplete.react.js",
"chars": 10163,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiAutoComplete from '@material-ui/lab/Autocomplete'\nimport "
},
{
"path": "src/lib/components/BottomNavigation.react.js",
"chars": 3345,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiBottomNavigation from '@material-ui/core/BottomNavigation"
},
{
"path": "src/lib/components/Button.react.js",
"chars": 6311,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport MUIButton from '@material-ui/core/Button';\nimport MUIIconButt"
},
{
"path": "src/lib/components/Card.react.js",
"chars": 2348,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiCard from '@material-ui/core/Card'\nimport CardHeader from"
},
{
"path": "src/lib/components/Checkbox.react.js",
"chars": 3764,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport MuiCheckbox from '@material-ui/core/Checkbox';\nimport FormCon"
},
{
"path": "src/lib/components/CircularProgress.react.js",
"chars": 2118,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MUICircularProgress from '@material-ui/core/CircularProgress"
},
{
"path": "src/lib/components/CollapseTransition.react.js",
"chars": 1405,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Collapse from '@material-ui/core/Collapse';\n\ntype Props = {\n "
},
{
"path": "src/lib/components/Dialog.react.js",
"chars": 5158,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiDialog from '@material-ui/core/Dialog';\nimport lightBaseT"
},
{
"path": "src/lib/components/Divider.react.js",
"chars": 1386,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MUIDivider from '@material-ui/core/Divider';\nimport lightBas"
},
{
"path": "src/lib/components/Drawer.react.js",
"chars": 2645,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport { default as MuiDrawer } from '@material-ui/core/Drawer';\n\nty"
},
{
"path": "src/lib/components/DropDownMenu.react.js",
"chars": 4959,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport ListSu"
},
{
"path": "src/lib/components/FadeTransition.react.js",
"chars": 1527,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Fade from '@material-ui/core/Fade';\n\ntype Props = {\n /** The"
},
{
"path": "src/lib/components/FontIcon.react.js",
"chars": 1867,
"preview": "// @flow\n\nimport React from 'react';\n\nimport MuiIcon from '@material-ui/core/Icon'\nimport lightBaseTheme from 'material-"
},
{
"path": "src/lib/components/GrowTransition.react.js",
"chars": 1527,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Grow from '@material-ui/core/Grow';\n\ntype Props = {\n /** The"
},
{
"path": "src/lib/components/LinearBuffer.react.js",
"chars": 1467,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Box from '@mui/material/Box';\nimport LinearProgress from '@mu"
},
{
"path": "src/lib/components/LinearDeterminate.react.js",
"chars": 1937,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Box from '@mui/material/Box';\nimport LinearProgress from '@mu"
},
{
"path": "src/lib/components/LinearIndeterminate.react.js",
"chars": 613,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Box from '@mui/material/Box';\nimport LinearProgress from '@mu"
},
{
"path": "src/lib/components/Pagination.react.js",
"chars": 1577,
"preview": "// @flow\n\nimport React, {useEffect, useState} from 'react';\n\nimport { default as MUIPagination } from '@material-ui/lab/"
},
{
"path": "src/lib/components/Paper.react.js",
"chars": 2658,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiPaper from '@material-ui/core/Paper';\nimport lightBaseThe"
},
{
"path": "src/lib/components/Picker.react.js",
"chars": 3199,
"preview": "// @flow\n\nimport React, {Component} from 'react';\nimport DateFnsUtils from '@date-io/date-fns';\nimport {\n MuiPickersUti"
},
{
"path": "src/lib/components/Popover.react.js",
"chars": 5734,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport MuiPopover from '@material-ui/core/Popover';\n\nimport Button f"
},
{
"path": "src/lib/components/RadioButtonGroup.react.js",
"chars": 4153,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from "
},
{
"path": "src/lib/components/SlideTransition.react.js",
"chars": 1815,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Slide from '@material-ui/core/Slide';\n\ntype Props = {\n /** T"
},
{
"path": "src/lib/components/Snackbar.react.js",
"chars": 4875,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiSnackbar from '@material-ui/core/Snackbar';\nimport Button"
},
{
"path": "src/lib/components/Stepper.react.js",
"chars": 6144,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiStepper from '@material-ui/core/Stepper';\nimport Step fro"
},
{
"path": "src/lib/components/Subheader.react.js",
"chars": 1650,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MUISubheader from '@material-ui/core/ListSubheader';\nimport "
},
{
"path": "src/lib/components/Tabs.react.js",
"chars": 3569,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MuiTab from '@material-ui/core/Tab'\nimport MuiTabs from '@ma"
},
{
"path": "src/lib/components/Toggle.react.js",
"chars": 3967,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport FormCo"
},
{
"path": "src/lib/components/Toolbar.react.js",
"chars": 2127,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport { default as MuiToolbar } from '@material-ui/core/Toolbar';\n\n"
},
{
"path": "src/lib/components/Tooltip.react.js",
"chars": 2410,
"preview": "// @flow\n\nimport React, { Component } from 'react';\n\nimport MUITooltip from '@material-ui/core/Tooltip';\nimport lightBas"
},
{
"path": "src/lib/components/ZoomTransition.react.js",
"chars": 1527,
"preview": "// @flow\n\nimport React, { Component } from 'react';\nimport Zoom from '@material-ui/core/Zoom';\n\ntype Props = {\n /** The"
},
{
"path": "src/lib/index.js",
"chars": 2351,
"preview": "export { default as Accordion } from './components/Accordion.react';\nexport { default as AppBar } from './components/App"
},
{
"path": "test/IntegrationTests.py",
"chars": 2165,
"preview": "\"\"\"\nStratoDem Analytics : IntegrationTests\nPrincipal Author(s) : Michael Clawar\nSecondary Author(s) : \nDescription :\n\nNo"
},
{
"path": "test/TESTING.md",
"chars": 830,
"preview": "### Writing an integration test with selenium\n\nAdd an integration test to `test_integration.py` by adding a test functio"
},
{
"path": "test/__init__.py",
"chars": 141,
"preview": "\"\"\"\nStratoDem Analytics : __init__\nPrincipal Author(s) : Michael Clawar\nSecondary Author(s) : \nDescription :\n\nNotes : \n\n"
},
{
"path": "test/_test-env.js",
"chars": 320,
"preview": "/** @flow\n * StratoDem Analytics : test-env\n * Principal Author(s) : Michael Clawar\n * Secondary Author(s) :\n * Descript"
},
{
"path": "test/test_integration.py",
"chars": 3352,
"preview": "\"\"\"\nStratoDem Analytics : test_integration\nPrincipal Author(s) : Michael Clawar\nSecondary Author(s) :\nDescription :\n\nNot"
},
{
"path": "test/utils.py",
"chars": 2961,
"preview": "import time\n\n\nTIMEOUT = 20 # Seconds\n\n\ndef invincible(func):\n def wrap():\n try:\n return func()\n "
},
{
"path": "usage.py",
"chars": 25841,
"preview": "import dash\nimport dash_core_components\nimport dash_html_components as html\nimport sd_material_ui\n\napp = dash.Dash(\n "
},
{
"path": "webpack.config.js",
"chars": 2034,
"preview": "const path = require('path');\nconst packagejson = require('./package.json');\n\nconst dashLibraryName = packagejson.name.r"
},
{
"path": "webpack.serve.config.js",
"chars": 280,
"preview": "const config = require('./webpack.config.js');\n\nconfig.entry = {main: './src/demo/index.js'};\nconfig.output = {filename:"
}
]
About this extraction
This page contains the full source code of the StratoDem/sd-material-ui GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 115 files (10.5 MB), approximately 2.8M tokens, and a symbol index with 161 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.