@universal-material/web 3.0.8 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +8 -0
- package/.eleventy.cjs +21 -0
- package/.eslintignore +6 -0
- package/.eslintrc.json +98 -0
- package/.prettierrc.json +7 -0
- package/.vscode/extensions.json +9 -0
- package/CHANGELOG.md +98 -0
- package/LICENSE +28 -0
- package/docs/.nojekyll +0 -0
- package/docs/api/index.html +149 -0
- package/docs/docs.css +185 -0
- package/docs/examples/index.html +75 -0
- package/docs/examples/name-property/index.html +65 -0
- package/docs/index.html +75 -0
- package/docs/install/index.html +53 -0
- package/docs/prism-okaidia.css +123 -0
- package/docs/src/_api-section.pug +27 -0
- package/docs/src/_layout.pug +182 -0
- package/docs/src/components/button-set/alignment.html +29 -0
- package/docs/src/components/button-set/stack.html +5 -0
- package/docs/src/components/button-set/usage.html +35 -0
- package/docs/src/components/button-set.pug +16 -0
- package/docs/src/components/cards/card-media.html +39 -0
- package/docs/src/components/cards/card-with-actions.html +38 -0
- package/docs/src/components/cards/simple-card.html +3 -0
- package/docs/src/components/cards.pug +15 -0
- package/docs/src/components/checkbox/usage.html +33 -0
- package/docs/src/components/checkbox.pug +7 -0
- package/docs/src/components/chips/chip-input.html +73 -0
- package/docs/src/components/chips/default-chips.html +25 -0
- package/docs/src/components/chips/elevated-chips.html +25 -0
- package/docs/src/components/chips/selected-chips.html +50 -0
- package/docs/src/components/chips.pug +16 -0
- package/docs/src/components/common-buttons/anchor-buttons.html +6 -0
- package/docs/src/components/common-buttons/buttons-icons.html +24 -0
- package/docs/src/components/common-buttons/buttons-trailing-icons.html +25 -0
- package/docs/src/components/common-buttons/buttons-variants.html +6 -0
- package/docs/src/components/common-buttons/filled-colors.html +4 -0
- package/docs/src/components/common-buttons.pug +22 -0
- package/docs/src/components/data-tables/simple-table.html +47 -0
- package/docs/src/components/data-tables/table-footer.html +59 -0
- package/docs/src/components/data-tables/table-header.html +43 -0
- package/docs/src/components/data-tables.pug +15 -0
- package/docs/src/components/datepicker.pug +133 -0
- package/docs/src/components/dialogs/example.html +44 -0
- package/docs/src/components/dialogs.pug +19 -0
- package/docs/src/components/dividers/no-margin.html +7 -0
- package/docs/src/components/dividers/usage.html +7 -0
- package/docs/src/components/dividers.pug +13 -0
- package/docs/src/components/dropdown-menus/down-end.html +10 -0
- package/docs/src/components/dropdown-menus/down-left.html +10 -0
- package/docs/src/components/dropdown-menus/down-right.html +10 -0
- package/docs/src/components/dropdown-menus/down-start.html +10 -0
- package/docs/src/components/dropdown-menus/down.html +10 -0
- package/docs/src/components/dropdown-menus/up-end.html +10 -0
- package/docs/src/components/dropdown-menus/up-left.html +10 -0
- package/docs/src/components/dropdown-menus/up-right.html +10 -0
- package/docs/src/components/dropdown-menus/up-start.html +10 -0
- package/docs/src/components/dropdown-menus/up.html +10 -0
- package/docs/src/components/expansion-panel.pug +33 -0
- package/docs/src/components/fab/button-colors.html +18 -0
- package/docs/src/components/fab/button-sizes.html +11 -0
- package/docs/src/components/fab/extended-buttons.html +18 -0
- package/docs/src/components/fab/floating-action-area.html +5 -0
- package/docs/src/components/fab/floating-menu.html +10 -0
- package/docs/src/components/fab/lowered-buttons.html +6 -0
- package/docs/src/components/fab.pug +25 -0
- package/docs/src/components/icon-buttons/anchor-buttons.html +15 -0
- package/docs/src/components/icon-buttons/buttons-variants.html +15 -0
- package/docs/src/components/icon-buttons/toggle-buttons-manual.html +44 -0
- package/docs/src/components/icon-buttons/toggle-buttons.html +48 -0
- package/docs/src/components/icon-buttons.pug +18 -0
- package/docs/src/components/lists/list-avatars.html +14 -0
- package/docs/src/components/lists/list-custom-dividers.html +23 -0
- package/docs/src/components/lists/list-dividers.html +17 -0
- package/docs/src/components/lists/list-dynamic.html +26 -0
- package/docs/src/components/lists/list-hover.html +17 -0
- package/docs/src/components/lists/list-icons.html +17 -0
- package/docs/src/components/lists/list-indexed.html +123 -0
- package/docs/src/components/lists/list-sections.html +16 -0
- package/docs/src/components/lists/list-three-lines.html +20 -0
- package/docs/src/components/lists/list-two-lines.html +20 -0
- package/docs/src/components/lists/list-with-action.html +26 -0
- package/docs/src/components/lists/list-with-activated-item.html +17 -0
- package/docs/src/components/lists/simple-list.html +17 -0
- package/docs/src/components/lists.pug +94 -0
- package/docs/src/components/menus.pug +55 -0
- package/docs/src/components/progress/circular-progress.html +13 -0
- package/docs/src/components/progress/determinate-progress.html +3 -0
- package/docs/src/components/progress/indeterminate-progress.html +3 -0
- package/docs/src/components/progress/progress-color.html +3 -0
- package/docs/src/components/progress.pug +18 -0
- package/docs/src/components/ripple/usage.html +9 -0
- package/docs/src/components/ripple.pug +10 -0
- package/docs/src/components/selection-controls/checkbox.html +22 -0
- package/docs/src/components/selection-controls/radio-button.html +36 -0
- package/docs/src/components/selection-controls/switch.html +12 -0
- package/docs/src/components/selection-controls.pug +13 -0
- package/docs/src/components/sliders/example.html +42 -0
- package/docs/src/components/sliders.pug +7 -0
- package/docs/src/components/snackbar/example.html +35 -0
- package/docs/src/components/snackbars.pug +21 -0
- package/docs/src/components/steppers.pug +57 -0
- package/docs/src/components/tabs/example.html +45 -0
- package/docs/src/components/tabs.pug +8 -0
- package/docs/src/components/text-fields.pug +88 -0
- package/docs/src/components/toolbars/simple-toolbar.html +33 -0
- package/docs/src/components/toolbars.pug +7 -0
- package/docs/src/content/typography/example.html +15 -0
- package/docs/src/content/typography.pug +8 -0
- package/docs/src/css/docs.scss +189 -0
- package/docs/src/index.pug +10 -0
- package/docs/src/js/docs.js +161 -0
- package/docs/src/js/universal-material.js +757 -0
- package/docs/src/js/universal-material.js.map +1 -0
- package/docs/src/js/universal-material.min.js +17 -0
- package/docs/src/js/universal-material.min.js.map +1 -0
- package/docs/src/layout/grid.pug +15 -0
- package/docs/src/utilities/background-colors/common-colors.html +7 -0
- package/docs/src/utilities/background-colors/theme-colors.html +16 -0
- package/docs/src/utilities/background-colors.pug +10 -0
- package/docs/src/utilities/text-and-background-colors/common-colors.html +80 -0
- package/docs/src/utilities/text-and-background-colors/theme-colors.html +208 -0
- package/docs/src/utilities/text-and-background-colors.pug +10 -0
- package/docs/src/utilities/text-colors/common-colors.html +12 -0
- package/docs/src/utilities/text-colors/emphasis-colors.html +26 -0
- package/docs/src/utilities/text-colors/theme-colors.html +37 -0
- package/docs/src/utilities/text-colors.pug +13 -0
- package/gulpfile.js +225 -0
- package/index.html +11 -0
- package/package.json +1 -1
- package/rollup.config.js +42 -0
- package/src/_utils.scss +20 -0
- package/src/_variables.scss +68 -0
- package/src/button/button-base.styles.scss +75 -0
- package/src/button/button-base.ts +147 -0
- package/src/button/button-set.styles.scss +35 -0
- package/src/button/button-set.ts +33 -0
- package/src/button/button.styles.scss +97 -0
- package/src/button/button.ts +64 -0
- package/src/button/fab.styles.scss +90 -0
- package/src/button/fab.ts +55 -0
- package/src/button/icon-button.styles.scss +74 -0
- package/src/button/icon-button.ts +72 -0
- package/src/card/card-content.styles.scss +11 -0
- package/src/card/card-content.ts +45 -0
- package/src/card/card-media.styles.scss +9 -0
- package/src/card/card-media.ts +24 -0
- package/src/card/card.styles.scss +27 -0
- package/src/card/card.ts +37 -0
- package/src/checkbox/checkbox.ts +77 -0
- package/src/container/container.styles.scss +39 -0
- package/src/container/container.ts +24 -0
- package/src/divider/divider.styles.scss +13 -0
- package/src/divider/divider.ts +21 -0
- package/src/elevation/elevation.styles.scss +31 -0
- package/src/elevation/elevation.ts +17 -0
- package/{index.js → src/index.ts} +1 -1
- package/src/ripple/ripple.styles.scss +80 -0
- package/src/ripple/ripple.ts +150 -0
- package/src/shared/base.styles.scss +5 -0
- package/src/table/table-body.styles.scss +9 -0
- package/src/table/table-body.ts +21 -0
- package/src/table/table-cell.styles.scss +9 -0
- package/src/table/table-cell.ts +21 -0
- package/src/table/table-head.styles.scss +9 -0
- package/src/table/table-head.ts +21 -0
- package/src/table/table-header-cell.styles.scss +10 -0
- package/src/table/table-header-cell.ts +21 -0
- package/src/table/table-row.styles.scss +3 -0
- package/src/table/table-row.ts +21 -0
- package/src/table/table.styles.scss +12 -0
- package/{table/table.js → src/table/table.ts} +15 -6
- package/src/theme/color.ts +6 -0
- package/src/theme/css-var-builder.ts +36 -0
- package/{theme/index.js → src/theme/index.ts} +0 -1
- package/src/theme/neutral-colors.ts +21 -0
- package/src/theme/rgb-color.ts +19 -0
- package/src/theme/theme-builder.ts +201 -0
- package/{theme/theme-color.d.ts → src/theme/theme-color.ts} +3 -2
- package/tsconfig.json +36 -0
- package/web-dev-server.config.js +25 -0
- package/web-test-runner.config.js +120 -0
- package/button/button-base.d.ts +0 -43
- package/button/button-base.d.ts.map +0 -1
- package/button/button-base.js +0 -152
- package/button/button-base.js.map +0 -1
- package/button/button-base.styles.d.ts +0 -2
- package/button/button-base.styles.d.ts.map +0 -1
- package/button/button-base.styles.js +0 -75
- package/button/button-base.styles.js.map +0 -1
- package/button/button-set.d.ts +0 -20
- package/button/button-set.d.ts.map +0 -1
- package/button/button-set.js +0 -38
- package/button/button-set.js.map +0 -1
- package/button/button-set.styles.d.ts +0 -2
- package/button/button-set.styles.d.ts.map +0 -1
- package/button/button-set.styles.js +0 -39
- package/button/button-set.styles.js.map +0 -1
- package/button/button.d.ts +0 -34
- package/button/button.d.ts.map +0 -1
- package/button/button.js +0 -64
- package/button/button.js.map +0 -1
- package/button/button.styles.d.ts +0 -2
- package/button/button.styles.d.ts.map +0 -1
- package/button/button.styles.js +0 -96
- package/button/button.styles.js.map +0 -1
- package/button/fab.d.ts +0 -31
- package/button/fab.d.ts.map +0 -1
- package/button/fab.js +0 -63
- package/button/fab.js.map +0 -1
- package/button/fab.styles.d.ts +0 -2
- package/button/fab.styles.d.ts.map +0 -1
- package/button/fab.styles.js +0 -89
- package/button/fab.styles.js.map +0 -1
- package/button/icon-button.d.ts +0 -35
- package/button/icon-button.d.ts.map +0 -1
- package/button/icon-button.js +0 -79
- package/button/icon-button.js.map +0 -1
- package/button/icon-button.styles.d.ts +0 -2
- package/button/icon-button.styles.d.ts.map +0 -1
- package/button/icon-button.styles.js +0 -70
- package/button/icon-button.styles.js.map +0 -1
- package/card/card-content.d.ts +0 -13
- package/card/card-content.d.ts.map +0 -1
- package/card/card-content.js +0 -44
- package/card/card-content.js.map +0 -1
- package/card/card-content.styles.d.ts +0 -2
- package/card/card-content.styles.d.ts.map +0 -1
- package/card/card-content.styles.js +0 -15
- package/card/card-content.styles.js.map +0 -1
- package/card/card-media.d.ts +0 -12
- package/card/card-media.d.ts.map +0 -1
- package/card/card-media.js +0 -29
- package/card/card-media.js.map +0 -1
- package/card/card-media.styles.d.ts +0 -2
- package/card/card-media.styles.d.ts.map +0 -1
- package/card/card-media.styles.js +0 -13
- package/card/card-media.styles.js.map +0 -1
- package/card/card.d.ts +0 -19
- package/card/card.d.ts.map +0 -1
- package/card/card.js +0 -40
- package/card/card.js.map +0 -1
- package/card/card.styles.d.ts +0 -2
- package/card/card.styles.d.ts.map +0 -1
- package/card/card.styles.js +0 -28
- package/card/card.styles.js.map +0 -1
- package/checkbox/checkbox.d.ts +0 -16
- package/checkbox/checkbox.d.ts.map +0 -1
- package/checkbox/checkbox.js +0 -75
- package/checkbox/checkbox.js.map +0 -1
- package/container/container.d.ts +0 -13
- package/container/container.d.ts.map +0 -1
- package/container/container.js +0 -23
- package/container/container.js.map +0 -1
- package/container/container.styles.d.ts +0 -2
- package/container/container.styles.d.ts.map +0 -1
- package/container/container.styles.js +0 -43
- package/container/container.styles.js.map +0 -1
- package/custom-elements.json +0 -3706
- package/divider/divider.d.ts +0 -14
- package/divider/divider.d.ts.map +0 -1
- package/divider/divider.js +0 -27
- package/divider/divider.js.map +0 -1
- package/divider/divider.styles.d.ts +0 -2
- package/divider/divider.styles.d.ts.map +0 -1
- package/divider/divider.styles.js +0 -15
- package/divider/divider.styles.js.map +0 -1
- package/elevation/elevation.d.ts +0 -11
- package/elevation/elevation.d.ts.map +0 -1
- package/elevation/elevation.js +0 -21
- package/elevation/elevation.js.map +0 -1
- package/elevation/elevation.styles.d.ts +0 -2
- package/elevation/elevation.styles.d.ts.map +0 -1
- package/elevation/elevation.styles.js +0 -28
- package/elevation/elevation.styles.js.map +0 -1
- package/index.d.ts +0 -27
- package/index.d.ts.map +0 -1
- package/index.js.map +0 -1
- package/ripple/ripple.d.ts +0 -25
- package/ripple/ripple.d.ts.map +0 -1
- package/ripple/ripple.js +0 -119
- package/ripple/ripple.js.map +0 -1
- package/ripple/ripple.styles.d.ts +0 -2
- package/ripple/ripple.styles.d.ts.map +0 -1
- package/ripple/ripple.styles.js +0 -74
- package/ripple/ripple.styles.js.map +0 -1
- package/shared/base.styles.d.ts +0 -2
- package/shared/base.styles.d.ts.map +0 -1
- package/shared/base.styles.js +0 -9
- package/shared/base.styles.js.map +0 -1
- package/table/table-body.d.ts +0 -11
- package/table/table-body.d.ts.map +0 -1
- package/table/table-body.js +0 -21
- package/table/table-body.js.map +0 -1
- package/table/table-body.styles.d.ts +0 -2
- package/table/table-body.styles.d.ts.map +0 -1
- package/table/table-body.styles.js +0 -11
- package/table/table-body.styles.js.map +0 -1
- package/table/table-cell.d.ts +0 -11
- package/table/table-cell.d.ts.map +0 -1
- package/table/table-cell.js +0 -21
- package/table/table-cell.js.map +0 -1
- package/table/table-cell.styles.d.ts +0 -2
- package/table/table-cell.styles.d.ts.map +0 -1
- package/table/table-cell.styles.js +0 -11
- package/table/table-cell.styles.js.map +0 -1
- package/table/table-head.d.ts +0 -11
- package/table/table-head.d.ts.map +0 -1
- package/table/table-head.js +0 -21
- package/table/table-head.js.map +0 -1
- package/table/table-head.styles.d.ts +0 -2
- package/table/table-head.styles.d.ts.map +0 -1
- package/table/table-head.styles.js +0 -11
- package/table/table-head.styles.js.map +0 -1
- package/table/table-header-cell.d.ts +0 -11
- package/table/table-header-cell.d.ts.map +0 -1
- package/table/table-header-cell.js +0 -21
- package/table/table-header-cell.js.map +0 -1
- package/table/table-header-cell.styles.d.ts +0 -2
- package/table/table-header-cell.styles.d.ts.map +0 -1
- package/table/table-header-cell.styles.js +0 -12
- package/table/table-header-cell.styles.js.map +0 -1
- package/table/table-row.d.ts +0 -11
- package/table/table-row.d.ts.map +0 -1
- package/table/table-row.js +0 -21
- package/table/table-row.js.map +0 -1
- package/table/table-row.styles.d.ts +0 -2
- package/table/table-row.styles.d.ts.map +0 -1
- package/table/table-row.styles.js +0 -7
- package/table/table-row.styles.js.map +0 -1
- package/table/table.d.ts +0 -16
- package/table/table.d.ts.map +0 -1
- package/table/table.js.map +0 -1
- package/table/table.styles.d.ts +0 -2
- package/table/table.styles.d.ts.map +0 -1
- package/table/table.styles.js +0 -16
- package/table/table.styles.js.map +0 -1
- package/theme/color.d.ts +0 -7
- package/theme/color.d.ts.map +0 -1
- package/theme/color.js +0 -2
- package/theme/color.js.map +0 -1
- package/theme/css-var-builder.d.ts +0 -9
- package/theme/css-var-builder.d.ts.map +0 -1
- package/theme/css-var-builder.js +0 -25
- package/theme/css-var-builder.js.map +0 -1
- package/theme/index.d.ts +0 -2
- package/theme/index.d.ts.map +0 -1
- package/theme/index.js.map +0 -1
- package/theme/neutral-colors.d.ts +0 -4
- package/theme/neutral-colors.d.ts.map +0 -1
- package/theme/neutral-colors.js +0 -19
- package/theme/neutral-colors.js.map +0 -1
- package/theme/rgb-color.d.ts +0 -9
- package/theme/rgb-color.d.ts.map +0 -1
- package/theme/rgb-color.js +0 -13
- package/theme/rgb-color.js.map +0 -1
- package/theme/theme-builder.d.ts +0 -27
- package/theme/theme-builder.d.ts.map +0 -1
- package/theme/theme-builder.js +0 -146
- package/theme/theme-builder.js.map +0 -1
- package/theme/theme-color.d.ts.map +0 -1
- package/theme/theme-color.js +0 -2
- package/theme/theme-color.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<label class="u-radio">
|
|
2
|
+
<input type="radio" name="radio" />
|
|
3
|
+
<span class="u-selection-control">
|
|
4
|
+
<span class="u-check-indicator"></span>
|
|
5
|
+
</span>
|
|
6
|
+
<span class="u-selection-control-label">Radio A</span>
|
|
7
|
+
</label>
|
|
8
|
+
<label class="u-radio">
|
|
9
|
+
<input type="radio" name="radio" />
|
|
10
|
+
<span class="u-selection-control">
|
|
11
|
+
<span class="u-check-indicator"></span>
|
|
12
|
+
</span>
|
|
13
|
+
<span class="u-selection-control-label">Radio B</span>
|
|
14
|
+
</label>
|
|
15
|
+
<label class="u-radio">
|
|
16
|
+
<input type="radio" name="radio" />
|
|
17
|
+
<span class="u-selection-control">
|
|
18
|
+
<span class="u-check-indicator"></span>
|
|
19
|
+
</span>
|
|
20
|
+
<span class="u-selection-control-label">Radio C</span>
|
|
21
|
+
</label>
|
|
22
|
+
<label class="u-radio">
|
|
23
|
+
<input type="radio" name="radio" disabled />
|
|
24
|
+
<span class="u-selection-control">
|
|
25
|
+
<span class="u-check-indicator"></span>
|
|
26
|
+
</span>
|
|
27
|
+
<span class="u-selection-control-label">Radio C</span>
|
|
28
|
+
</label>
|
|
29
|
+
|
|
30
|
+
<label class="u-radio">
|
|
31
|
+
<input type="radio" name="other" disabled checked />
|
|
32
|
+
<span class="u-selection-control">
|
|
33
|
+
<span class="u-check-indicator"></span>
|
|
34
|
+
</span>
|
|
35
|
+
<span class="u-selection-control-label">Radio C</span>
|
|
36
|
+
</label>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<label class="u-switch">
|
|
2
|
+
<input type="checkbox" />
|
|
3
|
+
<span class="u-selection-control">
|
|
4
|
+
<span class="u-check-indicator"></span></span>
|
|
5
|
+
<span class="u-selection-control-label">Switch</span>
|
|
6
|
+
</label>
|
|
7
|
+
<label class="u-switch">
|
|
8
|
+
<input type="checkbox" disabled />
|
|
9
|
+
<span class="u-selection-control">
|
|
10
|
+
<span class="u-check-indicator"></span></span>
|
|
11
|
+
<span class="u-selection-control-label">Switch</span>
|
|
12
|
+
</label>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
extends ../_layout
|
|
2
|
+
|
|
3
|
+
block content
|
|
4
|
+
+renderTitle('Selection controls')
|
|
5
|
+
|
|
6
|
+
+renderSection('Checkbox')
|
|
7
|
+
include:exampleCode selection-controls/checkbox.html
|
|
8
|
+
|
|
9
|
+
+renderSection('Radio')
|
|
10
|
+
include:exampleCode selection-controls/radio-button.html
|
|
11
|
+
|
|
12
|
+
+renderSection('Switch')
|
|
13
|
+
include:exampleCode selection-controls/switch.html
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<div class="u-slider" aria-label="Select value">
|
|
2
|
+
<input type="range" min="100" max="300" step="0.25"/>
|
|
3
|
+
<div class="u-slider-track-container">
|
|
4
|
+
<div class="u-slider-track"></div>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="u-slider-thumb-container">
|
|
7
|
+
<div class="u-slider-thumb"></div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="u-slider" aria-label="Select value">
|
|
11
|
+
<input type="range" min="10" max="20" step="2"/>
|
|
12
|
+
<div class="u-slider-track-container">
|
|
13
|
+
<div class="u-slider-track-marker-container">
|
|
14
|
+
<div class="u-slider-track-marker"></div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="u-slider-track"></div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="u-slider-thumb-container">
|
|
19
|
+
<div class="u-slider-thumb"></div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="u-slider" aria-label="Select value">
|
|
23
|
+
<input type="range" min="100" max="300" step="0.25" disabled />
|
|
24
|
+
<div class="u-slider-track-container">
|
|
25
|
+
<div class="u-slider-track"></div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="u-slider-thumb-container">
|
|
28
|
+
<div class="u-slider-thumb"></div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="u-slider" aria-label="Select value">
|
|
32
|
+
<input type="range" min="10" max="20" step="2" disabled />
|
|
33
|
+
<div class="u-slider-track-container">
|
|
34
|
+
<div class="u-slider-track-marker-container">
|
|
35
|
+
<div class="u-slider-track-marker"></div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="u-slider-track"></div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="u-slider-thumb-container">
|
|
40
|
+
<div class="u-slider-thumb"></div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<div class="u-form-field">
|
|
2
|
+
<div class="u-text-field-container">
|
|
3
|
+
<div class="u-text-field u-text-field-box">
|
|
4
|
+
<input class="u-text-input" id="snackbarText" />
|
|
5
|
+
<label>Snackbar text</label>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="u-form-field">
|
|
11
|
+
<div class="u-text-field-container">
|
|
12
|
+
<div class="u-text-field u-text-field-box">
|
|
13
|
+
<input class="u-text-input" id="snackbarButtonText" />
|
|
14
|
+
<label>Snackbar button text</label>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="u-text-end">
|
|
20
|
+
<button class="u-filled-btn" onclick="showSnackbar()">Show snackbar</button>
|
|
21
|
+
</div>
|
|
22
|
+
<script>
|
|
23
|
+
function showSnackbar() {
|
|
24
|
+
|
|
25
|
+
const text = document.getElementById('snackbarText').value;
|
|
26
|
+
const buttonText = document.getElementById('snackbarButtonText').value;
|
|
27
|
+
|
|
28
|
+
umd.Snackbar.show(text, 30000, buttonText ? {
|
|
29
|
+
text: buttonText,
|
|
30
|
+
action: function () {
|
|
31
|
+
alert('Snackbar action!')
|
|
32
|
+
}
|
|
33
|
+
} : null);
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
extends ../_layout
|
|
2
|
+
|
|
3
|
+
block content
|
|
4
|
+
+renderTitle('Snackbars')
|
|
5
|
+
|
|
6
|
+
+renderSection('Example')
|
|
7
|
+
include:exampleCode snackbar/example.html
|
|
8
|
+
block scripts
|
|
9
|
+
script.
|
|
10
|
+
function showSnackbar() {
|
|
11
|
+
|
|
12
|
+
const text = document.getElementById('snackbarText').value;
|
|
13
|
+
const buttonText = document.getElementById('snackbarButtonText').value;
|
|
14
|
+
|
|
15
|
+
umd.Snackbar.show(text, umd.SnackbarDuration.long, buttonText ? {
|
|
16
|
+
text: buttonText,
|
|
17
|
+
action: function () {
|
|
18
|
+
alert('Snackbar action!')
|
|
19
|
+
}
|
|
20
|
+
} : null);
|
|
21
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
extends ../_layout
|
|
2
|
+
|
|
3
|
+
block content
|
|
4
|
+
+renderTitle('Steppers')
|
|
5
|
+
|
|
6
|
+
h5.u-headline5.article-title Horizontal stepper
|
|
7
|
+
.u-card-elevated
|
|
8
|
+
.u-stepper.u-horizontal-stepper
|
|
9
|
+
.u-step.completed
|
|
10
|
+
.u-step-indicator
|
|
11
|
+
.u-step-circle 1
|
|
12
|
+
.u-step-label Step 1
|
|
13
|
+
.u-step-line
|
|
14
|
+
.u-step.active
|
|
15
|
+
.u-step-indicator
|
|
16
|
+
.u-step-circle 1
|
|
17
|
+
.u-step-label Step 1
|
|
18
|
+
.u-step-line
|
|
19
|
+
.u-step
|
|
20
|
+
.u-step-indicator
|
|
21
|
+
.u-step-circle 2
|
|
22
|
+
.u-step-label Step 2
|
|
23
|
+
.u-step-line
|
|
24
|
+
.u-step
|
|
25
|
+
.u-step-indicator
|
|
26
|
+
.u-step-circle 3
|
|
27
|
+
.u-step-label Step 3
|
|
28
|
+
.u-step-line
|
|
29
|
+
.u-step
|
|
30
|
+
.u-step-indicator
|
|
31
|
+
.u-step-circle 4
|
|
32
|
+
.u-step-label Step 4
|
|
33
|
+
|
|
34
|
+
h5.u-headline5.article-title Vertical stepper
|
|
35
|
+
.u-card-elevated
|
|
36
|
+
.u-stepper.u-vertical-stepper
|
|
37
|
+
.u-step.completed
|
|
38
|
+
.u-step-indicator
|
|
39
|
+
.u-step-circle 1
|
|
40
|
+
.u-step-line
|
|
41
|
+
.u-step-content
|
|
42
|
+
.u-step-label Step 1
|
|
43
|
+
.u-step.active
|
|
44
|
+
.u-step-indicator
|
|
45
|
+
.u-step-circle 2
|
|
46
|
+
.u-step-line
|
|
47
|
+
.u-step-content
|
|
48
|
+
.u-step-label Step 2
|
|
49
|
+
.example-step-content
|
|
50
|
+
.u-step-actions
|
|
51
|
+
button.u-step-action.u-filled-btn Continue
|
|
52
|
+
button.u-step-action.u-text-btn Cancel
|
|
53
|
+
.u-step
|
|
54
|
+
.u-step-indicator
|
|
55
|
+
.u-step-circle 3
|
|
56
|
+
.u-step-content
|
|
57
|
+
.u-step-label Step 3
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<div class="u-toolbar">
|
|
2
|
+
<div class="u-toolbar-row">
|
|
3
|
+
<div class="u-toolbar-start">
|
|
4
|
+
<div class="u-toolbar-actions">
|
|
5
|
+
<div class="u-icon-btn u-btn-default">
|
|
6
|
+
<i class="u-btn-icon mdi mdi-menu"></i>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="u-toolbar-center">
|
|
11
|
+
<div class="u-toolbar-title">Page title</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="u-toolbar-end">
|
|
14
|
+
<div class="u-toolbar-actions">
|
|
15
|
+
<div class="u-icon-btn u-btn-default"><i class="u-btn-icon mdi mdi-magnify"></i></div>
|
|
16
|
+
<div class="u-icon-btn u-btn-default"><i class="u-btn-icon mdi mdi-phone"></i></div>
|
|
17
|
+
<div class="u-icon-btn u-btn-default"><i class="u-btn-icon mdi mdi-dots-vertical"></i></div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="u-tab-bar u-tab-bar-primary u-toolbar-icon-padding" role="tablist" aria-label="Example tab">
|
|
22
|
+
<button type="button" role="tab" class="u-tab active">
|
|
23
|
+
<div class="u-tab-content">
|
|
24
|
+
<div class="u-tab-text">Item one</div>
|
|
25
|
+
</div>
|
|
26
|
+
</button>
|
|
27
|
+
<button type="button" role="tab" class="u-tab">
|
|
28
|
+
<div class="u-tab-content">
|
|
29
|
+
<div class="u-tab-text">Item two</div>
|
|
30
|
+
</div>
|
|
31
|
+
</button>
|
|
32
|
+
<button type="button" role="tab" class="u-tab">
|
|
33
|
+
<div class="u-tab-content">
|
|
34
|
+
<div class="u-tab-text">Item three</div>
|
|
35
|
+
</div>
|
|
36
|
+
</button>
|
|
37
|
+
<button type="button" role="tab" class="u-tab">
|
|
38
|
+
<div class="u-tab-content">
|
|
39
|
+
<div class="u-tab-text">Item four Item four Item four</div>
|
|
40
|
+
</div>
|
|
41
|
+
</button>
|
|
42
|
+
<div class="u-tab-indicator"></div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
extends ../_layout
|
|
2
|
+
|
|
3
|
+
block content
|
|
4
|
+
+renderTitle('Text fields')
|
|
5
|
+
u-card.example-card(variant="outlined")
|
|
6
|
+
u-card-content
|
|
7
|
+
.u-form-field
|
|
8
|
+
.u-text-field.u-text-field-box
|
|
9
|
+
.u-text-field-leading-icon
|
|
10
|
+
i.mdi.mdi-magnify
|
|
11
|
+
.u-text-field-trailing-icon
|
|
12
|
+
i.mdi.mdi-close-circle-outline
|
|
13
|
+
label.u-text-field-label(for="text-field-box") Text field box
|
|
14
|
+
.u-text-input
|
|
15
|
+
input(type="text" placeholder="Placeholder" id="text-field-box" aria-describedby="textFieldBox")
|
|
16
|
+
|
|
17
|
+
.u-text-field-supporting-text
|
|
18
|
+
.u-text-field-supporting-text-item Supporting text
|
|
19
|
+
.u-text-field-supporting-text-item.ml-auto 0 / 10
|
|
20
|
+
u-card-content.example-card-code
|
|
21
|
+
pre
|
|
22
|
+
code.language-html
|
|
23
|
+
|
|
24
|
+
.u-form-field
|
|
25
|
+
.u-text-field.u-text-field-box.disabled
|
|
26
|
+
.u-text-field-leading-icon
|
|
27
|
+
i.mdi.mdi-magnify
|
|
28
|
+
.u-text-field-trailing-icon
|
|
29
|
+
i.mdi.mdi-close-circle-outline
|
|
30
|
+
|
|
31
|
+
label.u-text-field-label Text field box
|
|
32
|
+
input.u-text-input(type="text" placeholder="Placeholder" disabled aria-describedby="textFieldBox")
|
|
33
|
+
|
|
34
|
+
.u-form-field
|
|
35
|
+
.u-text-field.u-text-field-outlined
|
|
36
|
+
.u-text-field-leading-icon
|
|
37
|
+
i.mdi.mdi-magnify
|
|
38
|
+
.u-text-field-trailing-icon
|
|
39
|
+
i.mdi.mdi-close-circle-outline
|
|
40
|
+
label.u-text-field-label(for="text-field-outline") Text field outline
|
|
41
|
+
input.u-text-input(type="text" placeholder="Placeholder" id="text-field-outline" aria-describedby="textFieldOutline")
|
|
42
|
+
small#textFieldOutline.u-text-field-supporting-text Text field outline
|
|
43
|
+
|
|
44
|
+
.u-form-field
|
|
45
|
+
.u-text-field.u-text-field-outlined.disabled
|
|
46
|
+
.u-text-field-leading-icon
|
|
47
|
+
i.mdi.mdi-magnify
|
|
48
|
+
.u-text-field-trailing-icon
|
|
49
|
+
i.mdi.mdi-close-circle-outline
|
|
50
|
+
label.u-text-field-label(for="text-field-outline") Text field outline
|
|
51
|
+
input.u-text-input(type="text" placeholder="Placeholder" disabled)
|
|
52
|
+
|
|
53
|
+
.u-form-field
|
|
54
|
+
.u-text-field.u-search-field
|
|
55
|
+
.u-text-field-leading-icon
|
|
56
|
+
i.mdi.mdi-magnify
|
|
57
|
+
.u-text-field-trailing-icon
|
|
58
|
+
button.u-icon-btn
|
|
59
|
+
i.u-btn-icon.mdi.mdi-calendar
|
|
60
|
+
|
|
61
|
+
label.u-text-field-label(for="search-field") Label text
|
|
62
|
+
input.u-text-input(type="text" placeholder="Search" id="search-field" aria-describedby="searchField")
|
|
63
|
+
small#searchField.u-text-field-supporting-text Supporting text
|
|
64
|
+
|
|
65
|
+
.u-form-field
|
|
66
|
+
.u-text-field.u-text-field-box
|
|
67
|
+
label.u-text-field-label(for="text-area-box") Text area box
|
|
68
|
+
textarea.u-text-input(type="text" placeholder="Placeholder" id="text-area-box" aria-describedby="textAreaBox")
|
|
69
|
+
small#textAreaBox.u-text-field-supporting-text Text area box
|
|
70
|
+
|
|
71
|
+
.u-form-field
|
|
72
|
+
.u-text-field.u-text-field-outlined
|
|
73
|
+
label.u-text-field-label(for="text-area-outline") Text area outline
|
|
74
|
+
textarea.u-text-input(type="text" placeholder="Placeholder" id="text-area-outline" aria-describedby="textAreaOutline")
|
|
75
|
+
small#textAreaOutline.u-text-field-supporting-text Text area outline
|
|
76
|
+
|
|
77
|
+
.u-form-field
|
|
78
|
+
.u-text-field.u-text-field-box.u-dropdown
|
|
79
|
+
.u-text-field-trailing-icon
|
|
80
|
+
.u-dropdown-toggle-icon
|
|
81
|
+
label.u-text-field-label Dropdown
|
|
82
|
+
button.u-text-input.u-dropdown-toggle(type="button" disabled)
|
|
83
|
+
.u-text-input-placeholder No value
|
|
84
|
+
.u-dropdown-menu.up.w-100
|
|
85
|
+
.u-dropdown-content
|
|
86
|
+
button.u-dropdown-item(type="button") Option A
|
|
87
|
+
button.u-dropdown-item(type="button") Option B
|
|
88
|
+
button.u-dropdown-item(type="button") Option C
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div class="u-toolbar">
|
|
2
|
+
<div class="u-toolbar-row">
|
|
3
|
+
<div class="u-toolbar-start">
|
|
4
|
+
<div class="u-toolbar-actions">
|
|
5
|
+
<button class="u-icon-btn u-btn-default" type="button">
|
|
6
|
+
<i class="u-btn-icon mdi mdi-menu"></i>
|
|
7
|
+
</button>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="u-toolbar-center">
|
|
11
|
+
<div class="u-toolbar-title">Title here</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="u-toolbar-end">
|
|
14
|
+
<div class="u-toolbar-actions">
|
|
15
|
+
<button class="u-toolbar-action u-icon-btn u-btn-default" type="button">
|
|
16
|
+
<i class="u-btn-icon mdi mdi-phone"></i>
|
|
17
|
+
</button>
|
|
18
|
+
<div class="u-toolbar-action u-dropdown">
|
|
19
|
+
<button class="u-icon-btn u-btn-default u-dropdown-toggle" type="button">
|
|
20
|
+
<i class="u-btn-icon mdi mdi-dots-vertical"></i>
|
|
21
|
+
</button>
|
|
22
|
+
<div class="u-dropdown-menu down-left">
|
|
23
|
+
<div class="u-dropdown-content">
|
|
24
|
+
<a class="u-dropdown-item text-nowrap" href="#">Item A</a>
|
|
25
|
+
<a class="u-dropdown-item text-nowrap" href="#">Item B</a>
|
|
26
|
+
<a class="u-dropdown-item text-nowrap" href="#">Item C</a>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<h1 class="u-display-l">Display</h1>
|
|
2
|
+
<h2 class="u-display-m">Display</h2>
|
|
3
|
+
<h3 class="u-display-s">Display</h3>
|
|
4
|
+
<h4 class="u-headline-l">Headline</h4>
|
|
5
|
+
<h5 class="u-headline-m">Headline</h5>
|
|
6
|
+
<h6 class="u-headline-s">Headline</h6>
|
|
7
|
+
<h6 class="u-title-l">Title</h6>
|
|
8
|
+
<h6 class="u-title-m">Title</h6>
|
|
9
|
+
<h6 class="u-title-s">Title</h6>
|
|
10
|
+
<div class="u-label-l">Label</div>
|
|
11
|
+
<div class="u-label-m">Label</div>
|
|
12
|
+
<div class="u-label-s">Label</div>
|
|
13
|
+
<div class="u-body-l">Body</div>
|
|
14
|
+
<div class="u-body-m">Body</div>
|
|
15
|
+
<div class="u-body-s">Body</div>
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@use "../../../scss/universal-material";
|
|
2
|
+
//
|
|
3
|
+
.deep-purple-amber {
|
|
4
|
+
@include universal-material.theme((
|
|
5
|
+
primary: #673ab7,
|
|
6
|
+
secondary: #ffd740
|
|
7
|
+
));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pink-blue-grey {
|
|
11
|
+
|
|
12
|
+
@include universal-material.theme((
|
|
13
|
+
primary: #e91e63,
|
|
14
|
+
secondary: #607d8b
|
|
15
|
+
));
|
|
16
|
+
}
|
|
17
|
+
//
|
|
18
|
+
//.purple-green {
|
|
19
|
+
// $u-theme-colors: (
|
|
20
|
+
// primary: #9c27b0,
|
|
21
|
+
// secondary: #69f0ae
|
|
22
|
+
// ) !global;
|
|
23
|
+
//
|
|
24
|
+
// @include u-create-theme;
|
|
25
|
+
//}
|
|
26
|
+
//
|
|
27
|
+
|
|
28
|
+
#main-content {
|
|
29
|
+
padding-top: 56px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.example-box {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
padding: .5rem;
|
|
36
|
+
overflow: auto;
|
|
37
|
+
background: #e0e0e0;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.example-box-header {
|
|
43
|
+
padding: 1rem;
|
|
44
|
+
margin-bottom: .5rem;
|
|
45
|
+
background: var(--u-surface-color);
|
|
46
|
+
|
|
47
|
+
.u-toolbar {
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.u-dropdown {
|
|
52
|
+
display: inline-block;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.limited-height {
|
|
57
|
+
max-height: 300px;
|
|
58
|
+
overflow: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.example-step-content {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 300px;
|
|
64
|
+
background: #ccc;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.list-example-box-header {
|
|
68
|
+
@include universal-material.u-elevation-tint(1);
|
|
69
|
+
|
|
70
|
+
.u-list {
|
|
71
|
+
width: 300px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.menu-example {
|
|
76
|
+
.example-box-header {
|
|
77
|
+
height: 14rem;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.u-card-filled,
|
|
82
|
+
.u-card-outlined,
|
|
83
|
+
.u-card-elevated {
|
|
84
|
+
margin-bottom: 8px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.u-card-media,
|
|
88
|
+
.u-card-media-wide {
|
|
89
|
+
background: url("/img/venice.jpg") center;
|
|
90
|
+
background-size: cover;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.u-list-item-avatar {
|
|
94
|
+
background: var(--u-low-emphasis-color);
|
|
95
|
+
background-size: cover;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.chapter,
|
|
99
|
+
.article-title {
|
|
100
|
+
margin-top: 80px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.chapter-title,
|
|
104
|
+
.article-title {
|
|
105
|
+
margin-bottom: 48px;
|
|
106
|
+
font-size: 2rem;
|
|
107
|
+
font-weight: 400;
|
|
108
|
+
color: var(--u-primary-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.article-title {
|
|
112
|
+
margin-bottom: 1rem;
|
|
113
|
+
font-size: 1.5rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
pre {
|
|
117
|
+
margin: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
code {
|
|
121
|
+
padding: 1rem !important;
|
|
122
|
+
unicode-bidi: plaintext;
|
|
123
|
+
background: transparent !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nested-menu-items {
|
|
127
|
+
max-height: 0;
|
|
128
|
+
padding-inline-start: 12px;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
|
|
131
|
+
&.expanded {
|
|
132
|
+
max-height: 500px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.example-card {
|
|
137
|
+
|
|
138
|
+
> .u-card-content:first-child {
|
|
139
|
+
padding: 36px;
|
|
140
|
+
|
|
141
|
+
div ~ div {
|
|
142
|
+
margin-top: 8px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.u-floating-action-area {
|
|
147
|
+
position: static;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.u-floating-menu {
|
|
151
|
+
position: relative;
|
|
152
|
+
margin-top: 200px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.u-chip-avatar {
|
|
156
|
+
background: rgba(0, 0, 0, .54);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.example-card-code {
|
|
161
|
+
background-color: var(--u-surface-variant-color);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
::-webkit-scrollbar {
|
|
165
|
+
width: 6px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
::-webkit-scrollbar-track {
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
::-webkit-scrollbar-thumb {
|
|
173
|
+
border: 2px solid transparent;
|
|
174
|
+
background-color: rgba(0,0,0,.47);
|
|
175
|
+
background-clip: content-box;
|
|
176
|
+
border-radius: 3px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.u-dark-mode {
|
|
180
|
+
&::-webkit-scrollbar-thumb,
|
|
181
|
+
::-webkit-scrollbar-thumb {
|
|
182
|
+
background-color: rgba(255,255,255,.47);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
body {
|
|
187
|
+
overflow-y: auto;
|
|
188
|
+
overflow-y: overlay;
|
|
189
|
+
}
|