@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
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
--_color-primary: var(--u-color-primary, rgb(103, 80, 164));
|
|
5
|
-
-webkit-tap-highlight-color: transparent;
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
vertical-align: baseline;
|
|
10
|
-
position: relative;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
font-family: var(--u-font-family-base, system-ui);
|
|
13
|
-
transition: color 150ms ease-in-out, background-color 150ms ease-in-out;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([disabled]) {
|
|
17
|
-
--u-elevation-level: 0 !important;
|
|
18
|
-
background-color: var(--u-button-disabled-background-color, rgba(var(--u-color-on-surface, 29, 27, 32), 0.12)) !important;
|
|
19
|
-
color: var(--u-button-disabled-text-color, rgba(var(--u-color-on-surface, 29, 27, 32), 0.38)) !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([disabled]) .button {
|
|
23
|
-
cursor: default;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
* {
|
|
27
|
-
color: inherit;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
u-elevation {
|
|
31
|
-
z-index: -1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.button {
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset: 0;
|
|
38
|
-
font-family: inherit;
|
|
39
|
-
border-radius: inherit;
|
|
40
|
-
color: inherit;
|
|
41
|
-
border: none;
|
|
42
|
-
margin: 0;
|
|
43
|
-
padding: 0;
|
|
44
|
-
text-align: center;
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
background: transparent;
|
|
47
|
-
user-select: none;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
outline: 0;
|
|
50
|
-
z-index: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.button:focus-visible {
|
|
54
|
-
animation: offset-pulse 400ms ease;
|
|
55
|
-
animation-fill-mode: forwards;
|
|
56
|
-
outline-offset: 2px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
::slotted([slot=icon]) {
|
|
60
|
-
display: inline-block;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@keyframes offset-pulse {
|
|
64
|
-
0% {
|
|
65
|
-
outline: 4px solid var(--_color-primary);
|
|
66
|
-
}
|
|
67
|
-
50% {
|
|
68
|
-
outline: 8px solid var(--_color-primary);
|
|
69
|
-
}
|
|
70
|
-
100% {
|
|
71
|
-
outline: 4px solid var(--_color-primary);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
`;
|
|
75
|
-
//# sourceMappingURL=button-base.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-base.styles.js","sourceRoot":"","sources":["../../src/button/button-base.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n --_color-primary: var(--u-color-primary, rgb(103, 80, 164));\n -webkit-tap-highlight-color: transparent;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: baseline;\n position: relative;\n white-space: nowrap;\n font-family: var(--u-font-family-base, system-ui);\n transition: color 150ms ease-in-out, background-color 150ms ease-in-out;\n }\n\n :host([disabled]) {\n --u-elevation-level: 0 !important;\n background-color: var(--u-button-disabled-background-color, rgba(var(--u-color-on-surface, 29, 27, 32), 0.12)) !important;\n color: var(--u-button-disabled-text-color, rgba(var(--u-color-on-surface, 29, 27, 32), 0.38)) !important;\n }\n\n :host([disabled]) .button {\n cursor: default;\n }\n\n * {\n color: inherit;\n }\n\n u-elevation {\n z-index: -1;\n }\n\n .button {\n cursor: pointer;\n position: absolute;\n inset: 0;\n font-family: inherit;\n border-radius: inherit;\n color: inherit;\n border: none;\n margin: 0;\n padding: 0;\n text-align: center;\n white-space: nowrap;\n background: transparent;\n user-select: none;\n text-decoration: none;\n outline: 0;\n z-index: 0;\n }\n\n .button:focus-visible {\n animation: offset-pulse 400ms ease;\n animation-fill-mode: forwards;\n outline-offset: 2px;\n }\n\n ::slotted([slot=icon]) {\n display: inline-block;\n }\n\n @keyframes offset-pulse {\n 0% {\n outline: 4px solid var(--_color-primary);\n }\n 50% {\n outline: 8px solid var(--_color-primary);\n }\n 100% {\n outline: 4px solid var(--_color-primary);\n }\n }\n`;\n"]}
|
package/button/button-set.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HTMLTemplateResult, LitElement } from 'lit';
|
|
2
|
-
export type UmButtonSetAlignment = 'start' | 'center' | 'end';
|
|
3
|
-
export declare class UmButtonSet extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult;
|
|
5
|
-
/**
|
|
6
|
-
* Set the alignment of the buttons at the `start`, `center` or at the `end`.
|
|
7
|
-
*/
|
|
8
|
-
align: UmButtonSetAlignment;
|
|
9
|
-
/**
|
|
10
|
-
* Whether to render the buttons stacked or not
|
|
11
|
-
*/
|
|
12
|
-
stack: boolean;
|
|
13
|
-
render(): HTMLTemplateResult;
|
|
14
|
-
}
|
|
15
|
-
declare global {
|
|
16
|
-
interface HTMLElementTagNameMap {
|
|
17
|
-
'u-button-set': UmButtonSet;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=button-set.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-set.d.ts","sourceRoot":"","sources":["../../src/button/button-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,kBAAkB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAK3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE9D,qBACa,WAAY,SAAQ,UAAU;IAEzC,OAAgB,MAAM,0BAAU;IAEhC;;OAEG;IACwB,KAAK,EAAE,oBAAoB,CAAS;IAE/D;;OAEG;IACuC,KAAK,UAAS;IAE/C,MAAM,IAAI,kBAAkB;CAItC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
package/button/button-set.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { html, LitElement } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import { styles } from './button-set.styles';
|
|
10
|
-
let UmButtonSet = class UmButtonSet extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
/**
|
|
14
|
-
* Set the alignment of the buttons at the `start`, `center` or at the `end`.
|
|
15
|
-
*/
|
|
16
|
-
this.align = 'end';
|
|
17
|
-
/**
|
|
18
|
-
* Whether to render the buttons stacked or not
|
|
19
|
-
*/
|
|
20
|
-
this.stack = false;
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return html `
|
|
24
|
-
<slot></slot>`;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
UmButtonSet.styles = styles;
|
|
28
|
-
__decorate([
|
|
29
|
-
property({ reflect: true })
|
|
30
|
-
], UmButtonSet.prototype, "align", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
property({ type: Boolean, reflect: true })
|
|
33
|
-
], UmButtonSet.prototype, "stack", void 0);
|
|
34
|
-
UmButtonSet = __decorate([
|
|
35
|
-
customElement('u-button-set')
|
|
36
|
-
], UmButtonSet);
|
|
37
|
-
export { UmButtonSet };
|
|
38
|
-
//# sourceMappingURL=button-set.js.map
|
package/button/button-set.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-set.js","sourceRoot":"","sources":["../../src/button/button-set.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAsB,UAAU,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAKtC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAIL;;WAEG;QACwB,UAAK,GAAyB,KAAK,CAAC;QAE/D;;WAEG;QACuC,UAAK,GAAG,KAAK,CAAC;IAM1D,CAAC;IAJU,MAAM;QACb,OAAO,IAAI,CAAA;oBACK,CAAC;IACnB,CAAC;;AAfe,kBAAM,GAAG,MAAM,AAAT,CAAU;AAKL;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;0CAAqC;AAKrB;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;0CAAe;AAZ7C,WAAW;IADvB,aAAa,CAAC,cAAc,CAAC;GACjB,WAAW,CAkBvB","sourcesContent":["import { html, HTMLTemplateResult, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { styles } from './button-set.styles';\n\nexport type UmButtonSetAlignment = 'start' | 'center' | 'end';\n\n@customElement('u-button-set')\nexport class UmButtonSet extends LitElement {\n\n static override styles = styles;\n\n /**\n * Set the alignment of the buttons at the `start`, `center` or at the `end`.\n */\n @property({reflect: true}) align: UmButtonSetAlignment = 'end';\n\n /**\n * Whether to render the buttons stacked or not\n */\n @property({type: Boolean, reflect: true}) stack = false;\n\n override render(): HTMLTemplateResult {\n return html`\n <slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-button-set': UmButtonSet;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-set.styles.d.ts","sourceRoot":"","sources":["../../src/button/button-set.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAoClB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
align-items: center;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host([align=start]) {
|
|
11
|
-
justify-content: flex-start;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([align=center]) {
|
|
15
|
-
justify-content: center;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([align=end]) {
|
|
19
|
-
justify-content: flex-end;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([stack][align=start]) {
|
|
23
|
-
align-items: flex-start;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([stack][align=center]) {
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([stack][align=end]) {
|
|
31
|
-
align-items: flex-end;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([stack]) {
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
justify-content: flex-start;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
//# sourceMappingURL=button-set.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-set.styles.js","sourceRoot":"","sources":["../../src/button/button-set.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n display: flex;\n gap: 8px;\n align-items: center;\n flex-wrap: wrap;\n }\n\n :host([align=start]) {\n justify-content: flex-start;\n }\n\n :host([align=center]) {\n justify-content: center;\n }\n\n :host([align=end]) {\n justify-content: flex-end;\n }\n\n :host([stack][align=start]) {\n align-items: flex-start;\n }\n\n :host([stack][align=center]) {\n align-items: center;\n }\n\n :host([stack][align=end]) {\n align-items: flex-end;\n }\n\n :host([stack]) {\n flex-direction: column;\n justify-content: flex-start;\n }\n`;\n"]}
|
package/button/button.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CSSResult, HTMLTemplateResult } from 'lit';
|
|
2
|
-
import { UmButtonBase } from './button-base';
|
|
3
|
-
import '../ripple/ripple.js';
|
|
4
|
-
export type UmButtonVariant = 'filled' | 'tonal' | 'elevated' | 'outlined' | 'text';
|
|
5
|
-
export type UmButtonColor = 'primary' | 'secondary' | 'tertiary' | 'error' | undefined;
|
|
6
|
-
export declare class UmButton extends UmButtonBase {
|
|
7
|
-
static styles: CSSResult | CSSResult[];
|
|
8
|
-
/**
|
|
9
|
-
* The Button variant to render
|
|
10
|
-
*/
|
|
11
|
-
variant: UmButtonVariant;
|
|
12
|
-
/**
|
|
13
|
-
* The Button color
|
|
14
|
-
*
|
|
15
|
-
* _Note:_ Filled buttons only
|
|
16
|
-
*/
|
|
17
|
-
color: UmButtonColor;
|
|
18
|
-
trailingIcon: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the button has icon or not
|
|
21
|
-
*
|
|
22
|
-
* _Note:_ Readonly
|
|
23
|
-
*/
|
|
24
|
-
hasIcon: boolean;
|
|
25
|
-
private readonly assignedIcons;
|
|
26
|
-
protected renderContent(): HTMLTemplateResult;
|
|
27
|
-
private handleSlotChange;
|
|
28
|
-
}
|
|
29
|
-
declare global {
|
|
30
|
-
interface HTMLElementTagNameMap {
|
|
31
|
-
'u-button': UmButton;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=button.d.ts.map
|
package/button/button.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/button/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,kBAAkB,EAAW,MAAM,KAAK,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,qBAAqB,CAAC;AAE7B,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AACpF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvF,qBACa,QAAS,SAAQ,YAAY;IAExC,OAAgB,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,CAA8B;IAE7E;;OAEG;IACwB,OAAO,EAAE,eAAe,CAAY;IAE/D;;;;OAIG;IACwB,KAAK,EAAE,aAAa,CAAC;IAEsB,YAAY,UAAS;IAE3F;;;;OAIG;IAC8D,OAAO,UAAS;IAGjF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;cAE5B,aAAa,IAAI,kBAAkB;IActD,OAAO,CAAC,gBAAgB;CAGzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,QAAQ,CAAC;KACtB;CACF"}
|
package/button/button.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { html, nothing } from 'lit';
|
|
8
|
-
import { customElement, property, queryAssignedElements } from 'lit/decorators.js';
|
|
9
|
-
import { UmButtonBase } from './button-base';
|
|
10
|
-
import { styles as buttonBaseStyles } from './button-base.styles';
|
|
11
|
-
import { styles } from './button.styles';
|
|
12
|
-
import '../ripple/ripple.js';
|
|
13
|
-
let UmButton = class UmButton extends UmButtonBase {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
/**
|
|
17
|
-
* The Button variant to render
|
|
18
|
-
*/
|
|
19
|
-
this.variant = 'filled';
|
|
20
|
-
this.trailingIcon = false;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the button has icon or not
|
|
23
|
-
*
|
|
24
|
-
* _Note:_ Readonly
|
|
25
|
-
*/
|
|
26
|
-
this.hasIcon = false;
|
|
27
|
-
}
|
|
28
|
-
renderContent() {
|
|
29
|
-
const icon = html `
|
|
30
|
-
<slot
|
|
31
|
-
name="icon"
|
|
32
|
-
aria-hidden="true"
|
|
33
|
-
@slotchange="${this.handleSlotChange}"></slot>`;
|
|
34
|
-
return html `
|
|
35
|
-
${this.trailingIcon ? nothing : icon}
|
|
36
|
-
<span><slot></slot></span>
|
|
37
|
-
${this.trailingIcon ? icon : nothing}
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
handleSlotChange() {
|
|
41
|
-
this.hasIcon = this.assignedIcons.length > 0;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
UmButton.styles = [buttonBaseStyles, styles];
|
|
45
|
-
__decorate([
|
|
46
|
-
property({ reflect: true })
|
|
47
|
-
], UmButton.prototype, "variant", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
property({ reflect: true })
|
|
50
|
-
], UmButton.prototype, "color", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: Boolean, attribute: 'trailing-icon', reflect: true })
|
|
53
|
-
], UmButton.prototype, "trailingIcon", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
property({ type: Boolean, attribute: 'has-icon', reflect: true })
|
|
56
|
-
], UmButton.prototype, "hasIcon", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
queryAssignedElements({ slot: 'icon', flatten: true })
|
|
59
|
-
], UmButton.prototype, "assignedIcons", void 0);
|
|
60
|
-
UmButton = __decorate([
|
|
61
|
-
customElement('u-button')
|
|
62
|
-
], UmButton);
|
|
63
|
-
export { UmButton };
|
|
64
|
-
//# sourceMappingURL=button.js.map
|
package/button/button.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/button/button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAa,IAAI,EAAsB,OAAO,EAAE,MAAM,KAAK,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,qBAAqB,CAAC;AAMtB,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,YAAY;IAAnC;;QAIL;;WAEG;QACwB,YAAO,GAAoB,QAAQ,CAAC;QASO,iBAAY,GAAG,KAAK,CAAC;QAE3F;;;;WAIG;QAC8D,YAAO,GAAG,KAAK,CAAC;IAsBnF,CAAC;IAjBoB,aAAa;QAC9B,MAAM,IAAI,GAAG,IAAI,CAAA;;;;uBAIE,IAAI,CAAC,gBAAgB,WAAW,CAAC;QAEpD,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;;QAElC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;KACrC,CAAC;IACJ,CAAC;IAEO,gBAAgB;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IAC/C,CAAC;;AA1Ce,eAAM,GAA4B,CAAC,gBAAgB,EAAE,MAAM,CAAC,AAAtD,CAAuD;AAKlD;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;yCAAqC;AAOpC;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;uCAAsB;AAEsB;IAArE,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;8CAAsB;AAO1B;IAAhE,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;yCAAiB;AAGhE;IADhB,qBAAqB,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;+CACN;AA1BpC,QAAQ;IADpB,aAAa,CAAC,UAAU,CAAC;GACb,QAAQ,CA6CpB","sourcesContent":["import { CSSResult, html, HTMLTemplateResult, nothing } from 'lit';\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js';\n\nimport { UmButtonBase } from './button-base';\nimport { styles as buttonBaseStyles } from './button-base.styles';\nimport { styles } from './button.styles';\nimport '../ripple/ripple.js';\n\nexport type UmButtonVariant = 'filled' | 'tonal' | 'elevated' | 'outlined' | 'text';\nexport type UmButtonColor = 'primary' | 'secondary' | 'tertiary' | 'error' | undefined;\n\n@customElement('u-button')\nexport class UmButton extends UmButtonBase {\n\n static override styles: CSSResult | CSSResult[] = [buttonBaseStyles, styles];\n\n /**\n * The Button variant to render\n */\n @property({reflect: true}) variant: UmButtonVariant = 'filled';\n\n /**\n * The Button color\n *\n * _Note:_ Filled buttons only\n */\n @property({reflect: true}) color: UmButtonColor;\n\n @property({type: Boolean, attribute: 'trailing-icon', reflect: true}) trailingIcon = false;\n\n /**\n * Whether the button has icon or not\n *\n * _Note:_ Readonly\n */\n @property({type: Boolean, attribute: 'has-icon', reflect: true}) hasIcon = false;\n\n @queryAssignedElements({slot: 'icon', flatten: true})\n private readonly assignedIcons!: HTMLElement[];\n\n protected override renderContent(): HTMLTemplateResult {\n const icon = html`\n <slot\n name=\"icon\"\n aria-hidden=\"true\"\n @slotchange=\"${this.handleSlotChange}\"></slot>`;\n\n return html`\n ${this.trailingIcon ? nothing : icon}\n <span><slot></slot></span>\n ${this.trailingIcon ? icon : nothing}\n `;\n }\n\n private handleSlotChange() {\n this.hasIcon = this.assignedIcons.length > 0;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-button': UmButton;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../src/button/button.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA6FlB,CAAC"}
|
package/button/button.styles.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
--u-common-button-line-height: var(--u-label-large-line-height, 1.25rem);
|
|
5
|
-
--u-common-button-font-size: var(--u-label-large-font-size, 0.875rem);
|
|
6
|
-
--u-common-button-font-weight: var(--u-font-weight-medium, 500);
|
|
7
|
-
--_common-button-height: var(--u-common-button-height, 2.5rem);
|
|
8
|
-
--_common-button-padding: var(--u-common-button-padding, 24px);
|
|
9
|
-
--_common-button-icon-padding: var(--u-common-button-icon-padding, 16px);
|
|
10
|
-
border-radius: var(--u-common-button-shape-corner, var(--u-shape-corner-full, 9999px));
|
|
11
|
-
font-family: var(--u-font-family-base, system-ui);
|
|
12
|
-
height: var(--u-common-button-height, 40px);
|
|
13
|
-
font-size: var(--u-common-button-font-size);
|
|
14
|
-
font-weight: var(--u-common-button-font-weight);
|
|
15
|
-
padding-inline: var(--_common-button-padding);
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host([variant=filled]),
|
|
20
|
-
:host([variant=filled][color=primary]) {
|
|
21
|
-
background-color: var(--u-filled-button-primary-container-color, var(--_color-primary));
|
|
22
|
-
color: var(--u-filled-button-primary-text-color, var(--u-color-on-primary, rgb(255, 255, 255)));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([variant=filled][color=secondary]) {
|
|
26
|
-
background-color: var(--u-filled-button-secondary-container-color, var(--u-color-secondary, rgb(98, 91, 113)));
|
|
27
|
-
color: var(--u-filled-button-secondary-text-color, var(--u-color-on-secondary, rgb(255, 255, 255)));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([variant=filled][color=tertiary]) {
|
|
31
|
-
background-color: var(--u-filled-button-tertiary-container-color, var(--u-color-tertiary, rgb(125, 82, 96)));
|
|
32
|
-
color: var(--u-filled-button-tertiary-text-color, var(--u-color-on-tertiary, rgb(255, 255, 255)));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([variant=filled][color=error]) {
|
|
36
|
-
background-color: var(--u-filled-button-error-container-color, var(--u-color-error, rgb(179, 38, 30)));
|
|
37
|
-
color: var(--u-filled-button-error-text-color, var(--u-color-on-error, rgb(255, 255, 255)));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([variant=tonal]) {
|
|
41
|
-
background-color: var(--u-tonal-button-background-color, var(--u-color-secondary-container, rgb(232, 222, 248)));
|
|
42
|
-
color: var(--u-tonal-button-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([variant=elevated]) {
|
|
46
|
-
background-color: var(--u-elevated-button-background-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));
|
|
47
|
-
color: var(--u-tonal-button-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media (hover: hover) {
|
|
51
|
-
:host([variant=filled]:hover:not(:focus-within):not(:active)),
|
|
52
|
-
:host([variant=tonal]:hover:not(:focus-within):not(:active)) {
|
|
53
|
-
--u-elevation-level: var(--u-filled-button-hover-elevation-level, 1);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
:host([variant=outlined]),
|
|
57
|
-
:host([variant=text]),
|
|
58
|
-
:host([variant=elevated]) {
|
|
59
|
-
color: var(--_color-primary);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
:host([variant=outlined]) {
|
|
63
|
-
border: 1px solid var(--u-color-outline-color, );
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:host([variant=elevated]) {
|
|
67
|
-
--u-elevation-level: var(--u-elevated-button-elevation-level, 1);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (hover: hover) {
|
|
71
|
-
:host([variant=elevated]:hover) {
|
|
72
|
-
--u-elevation-level: var(--u-elevated-button-hover-elevation-level, 2);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
:host([has-icon]) {
|
|
76
|
-
padding-inline: var(--_common-button-icon-padding) var(--_common-button-padding);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host([has-icon][trailing-icon]) {
|
|
80
|
-
padding-inline: var(--_common-button-padding) var(--_common-button-icon-padding);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
::slotted([slot=icon]) {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
width: var(--u-common-button-icon-size, 1.125rem);
|
|
86
|
-
height: var(--u-common-button-icon-size, 1.125rem);
|
|
87
|
-
margin-inline-end: 8px;
|
|
88
|
-
font-size: var(--u-common-button-icon-size, 1.125rem);
|
|
89
|
-
line-height: var(--u-common-button-icon-size, 1.125rem);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:host([trailing-icon]) ::slotted([slot=icon]) {
|
|
93
|
-
margin-inline: 8px 0;
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
96
|
-
//# sourceMappingURL=button.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../src/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n --u-common-button-line-height: var(--u-label-large-line-height, 1.25rem);\n --u-common-button-font-size: var(--u-label-large-font-size, 0.875rem);\n --u-common-button-font-weight: var(--u-font-weight-medium, 500);\n --_common-button-height: var(--u-common-button-height, 2.5rem);\n --_common-button-padding: var(--u-common-button-padding, 24px);\n --_common-button-icon-padding: var(--u-common-button-icon-padding, 16px);\n border-radius: var(--u-common-button-shape-corner, var(--u-shape-corner-full, 9999px));\n font-family: var(--u-font-family-base, system-ui);\n height: var(--u-common-button-height, 40px);\n font-size: var(--u-common-button-font-size);\n font-weight: var(--u-common-button-font-weight);\n padding-inline: var(--_common-button-padding);\n box-sizing: border-box;\n }\n\n :host([variant=filled]),\n :host([variant=filled][color=primary]) {\n background-color: var(--u-filled-button-primary-container-color, var(--_color-primary));\n color: var(--u-filled-button-primary-text-color, var(--u-color-on-primary, rgb(255, 255, 255)));\n }\n\n :host([variant=filled][color=secondary]) {\n background-color: var(--u-filled-button-secondary-container-color, var(--u-color-secondary, rgb(98, 91, 113)));\n color: var(--u-filled-button-secondary-text-color, var(--u-color-on-secondary, rgb(255, 255, 255)));\n }\n\n :host([variant=filled][color=tertiary]) {\n background-color: var(--u-filled-button-tertiary-container-color, var(--u-color-tertiary, rgb(125, 82, 96)));\n color: var(--u-filled-button-tertiary-text-color, var(--u-color-on-tertiary, rgb(255, 255, 255)));\n }\n\n :host([variant=filled][color=error]) {\n background-color: var(--u-filled-button-error-container-color, var(--u-color-error, rgb(179, 38, 30)));\n color: var(--u-filled-button-error-text-color, var(--u-color-on-error, rgb(255, 255, 255)));\n }\n\n :host([variant=tonal]) {\n background-color: var(--u-tonal-button-background-color, var(--u-color-secondary-container, rgb(232, 222, 248)));\n color: var(--u-tonal-button-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));\n }\n\n :host([variant=elevated]) {\n background-color: var(--u-elevated-button-background-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n color: var(--u-tonal-button-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));\n }\n\n @media (hover: hover) {\n :host([variant=filled]:hover:not(:focus-within):not(:active)),\n :host([variant=tonal]:hover:not(:focus-within):not(:active)) {\n --u-elevation-level: var(--u-filled-button-hover-elevation-level, 1);\n }\n }\n :host([variant=outlined]),\n :host([variant=text]),\n :host([variant=elevated]) {\n color: var(--_color-primary);\n }\n\n :host([variant=outlined]) {\n border: 1px solid var(--u-color-outline-color, );\n }\n\n :host([variant=elevated]) {\n --u-elevation-level: var(--u-elevated-button-elevation-level, 1);\n }\n\n @media (hover: hover) {\n :host([variant=elevated]:hover) {\n --u-elevation-level: var(--u-elevated-button-hover-elevation-level, 2);\n }\n }\n :host([has-icon]) {\n padding-inline: var(--_common-button-icon-padding) var(--_common-button-padding);\n }\n\n :host([has-icon][trailing-icon]) {\n padding-inline: var(--_common-button-padding) var(--_common-button-icon-padding);\n }\n\n ::slotted([slot=icon]) {\n display: inline-block;\n width: var(--u-common-button-icon-size, 1.125rem);\n height: var(--u-common-button-icon-size, 1.125rem);\n margin-inline-end: 8px;\n font-size: var(--u-common-button-icon-size, 1.125rem);\n line-height: var(--u-common-button-icon-size, 1.125rem);\n }\n\n :host([trailing-icon]) ::slotted([slot=icon]) {\n margin-inline: 8px 0;\n }\n`;\n"]}
|
package/button/fab.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CSSResult, HTMLTemplateResult } from 'lit';
|
|
2
|
-
import { UmButtonBase } from './button-base';
|
|
3
|
-
export type UmFabColor = 'primary' | 'secondary' | 'tertiary' | 'surface' | 'branded';
|
|
4
|
-
export type UmFabSize = 'small' | 'medium' | 'large';
|
|
5
|
-
export declare class UmFab extends UmButtonBase {
|
|
6
|
-
static styles: CSSResult | CSSResult[];
|
|
7
|
-
/**
|
|
8
|
-
* The FAB color variant to render.
|
|
9
|
-
*/
|
|
10
|
-
color: UmFabColor;
|
|
11
|
-
/**
|
|
12
|
-
* The size of the FAB.
|
|
13
|
-
*/
|
|
14
|
-
size: UmFabSize;
|
|
15
|
-
/**
|
|
16
|
-
* The text to display the FAB.
|
|
17
|
-
*/
|
|
18
|
-
label: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Lowers the FAB's elevation.
|
|
21
|
-
*/
|
|
22
|
-
lowered: boolean;
|
|
23
|
-
get extended(): boolean;
|
|
24
|
-
protected renderContent(): HTMLTemplateResult;
|
|
25
|
-
}
|
|
26
|
-
declare global {
|
|
27
|
-
interface HTMLElementTagNameMap {
|
|
28
|
-
'u-fab': UmFab;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=fab.d.ts.map
|
package/button/fab.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fab.d.ts","sourceRoot":"","sources":["../../src/button/fab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,kBAAkB,EAAW,MAAM,KAAK,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AACtF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,qBACa,KAAM,SAAQ,YAAY;IAErC,OAAgB,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,CAA8B;IAE7E;;OAEG;IACwB,KAAK,EAAE,UAAU,CAAa;IAEzD;;OAEG;IACwB,IAAI,EAAE,SAAS,CAAY;IAEtD;;OAEG;IACwB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEvD;;OAEG;IACuC,OAAO,UAAS;IAE1D,IACI,QAAQ,IAAI,OAAO,CAEtB;cAEkB,aAAa,IAAI,kBAAkB;CAQvD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,OAAO,EAAE,KAAK,CAAC;KAChB;CACF"}
|
package/button/fab.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { html, nothing } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import { UmButtonBase } from './button-base';
|
|
10
|
-
import { styles as buttonBaseStyles } from './button-base.styles';
|
|
11
|
-
import { styles } from './fab.styles';
|
|
12
|
-
let UmFab = class UmFab extends UmButtonBase {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
/**
|
|
16
|
-
* The FAB color variant to render.
|
|
17
|
-
*/
|
|
18
|
-
this.color = 'primary';
|
|
19
|
-
/**
|
|
20
|
-
* The size of the FAB.
|
|
21
|
-
*/
|
|
22
|
-
this.size = 'medium';
|
|
23
|
-
/**
|
|
24
|
-
* The text to display the FAB.
|
|
25
|
-
*/
|
|
26
|
-
this.label = null;
|
|
27
|
-
/**
|
|
28
|
-
* Lowers the FAB's elevation.
|
|
29
|
-
*/
|
|
30
|
-
this.lowered = false;
|
|
31
|
-
}
|
|
32
|
-
get extended() {
|
|
33
|
-
return !!this.label;
|
|
34
|
-
}
|
|
35
|
-
renderContent() {
|
|
36
|
-
const labelTag = html `<span>${this.label}</span>`;
|
|
37
|
-
return html `
|
|
38
|
-
<span class="icon" aria-hidden="true"><slot></slot></span>
|
|
39
|
-
${this.label ? labelTag : nothing}
|
|
40
|
-
`;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
UmFab.styles = [buttonBaseStyles, styles];
|
|
44
|
-
__decorate([
|
|
45
|
-
property({ reflect: true })
|
|
46
|
-
], UmFab.prototype, "color", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
property({ reflect: true })
|
|
49
|
-
], UmFab.prototype, "size", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
property({ reflect: true })
|
|
52
|
-
], UmFab.prototype, "label", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
property({ type: Boolean, reflect: true })
|
|
55
|
-
], UmFab.prototype, "lowered", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
property({ type: Boolean, reflect: true })
|
|
58
|
-
], UmFab.prototype, "extended", null);
|
|
59
|
-
UmFab = __decorate([
|
|
60
|
-
customElement('u-fab')
|
|
61
|
-
], UmFab);
|
|
62
|
-
export { UmFab };
|
|
63
|
-
//# sourceMappingURL=fab.js.map
|
package/button/fab.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fab.js","sourceRoot":"","sources":["../../src/button/fab.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAa,IAAI,EAAsB,OAAO,EAAE,MAAM,KAAK,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAM/B,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,YAAY;IAAhC;;QAIL;;WAEG;QACwB,UAAK,GAAe,SAAS,CAAC;QAEzD;;WAEG;QACwB,SAAI,GAAc,QAAQ,CAAC;QAEtD;;WAEG;QACwB,UAAK,GAAkB,IAAI,CAAC;QAEvD;;WAEG;QACuC,YAAO,GAAG,KAAK,CAAC;IAe5D,CAAC;IAZC,IAAI,QAAQ;QACV,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEkB,aAAa;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAA,SAAS,IAAI,CAAC,KAAK,SAAS,CAAC;QAElD,OAAO,IAAI,CAAA;;QAEP,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;KAClC,CAAC;IACJ,CAAC;;AAlCe,YAAM,GAA4B,CAAC,gBAAgB,EAAE,MAAM,CAAC,AAAtD,CAAuD;AAKlD;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;oCAA+B;AAK9B;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;mCAA4B;AAK3B;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;oCAA6B;AAKb;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;sCAAiB;AAG1D;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;qCAGxC;AA3BU,KAAK;IADjB,aAAa,CAAC,OAAO,CAAC;GACV,KAAK,CAqCjB","sourcesContent":["import { CSSResult, html, HTMLTemplateResult, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nimport { UmButtonBase } from './button-base';\nimport { styles as buttonBaseStyles } from './button-base.styles';\nimport { styles } from './fab.styles';\n\nexport type UmFabColor = 'primary' | 'secondary' | 'tertiary' | 'surface' | 'branded';\nexport type UmFabSize = 'small' | 'medium' | 'large';\n\n@customElement('u-fab')\nexport class UmFab extends UmButtonBase {\n\n static override styles: CSSResult | CSSResult[] = [buttonBaseStyles, styles];\n \n /**\n * The FAB color variant to render.\n */\n @property({reflect: true}) color: UmFabColor = 'primary';\n\n /**\n * The size of the FAB.\n */\n @property({reflect: true}) size: UmFabSize = 'medium';\n\n /**\n * The text to display the FAB.\n */\n @property({reflect: true}) label: string | null = null;\n\n /**\n * Lowers the FAB's elevation.\n */\n @property({type: Boolean, reflect: true}) lowered = false;\n\n @property({type: Boolean, reflect: true})\n get extended(): boolean {\n return !!this.label;\n }\n\n protected override renderContent(): HTMLTemplateResult {\n const labelTag = html`<span>${this.label}</span>`;\n\n return html`\n <span class=\"icon\" aria-hidden=\"true\"><slot></slot></span>\n ${this.label ? labelTag : nothing}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'u-fab': UmFab;\n }\n}\n"]}
|
package/button/fab.styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fab.styles.d.ts","sourceRoot":"","sources":["../../src/button/fab.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAsFlB,CAAC"}
|
package/button/fab.styles.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
aspect-ratio: 1;
|
|
5
|
-
--u-elevation-level: var(--u-fab-button-elevation-level, 3);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host([lowered]) {
|
|
9
|
-
--u-elevation-level: var(--u-fab-button-elevation-level, 1);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media (hover: hover) {
|
|
13
|
-
:host(:hover:not(:focus-within):not(:active)) {
|
|
14
|
-
--u-elevation-level: var(--u-fab-button-hover-elevation-level, 4);
|
|
15
|
-
}
|
|
16
|
-
:host(:hover:not(:focus-within):not(:active)[lowered]) {
|
|
17
|
-
--u-elevation-level: var(--u-fab-button-elevation-level, 2);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
@media (hover: hover) {
|
|
21
|
-
:host(:hover:not(:focus-within):not(:active)) {
|
|
22
|
-
--u-elevation-level: var(--u-fab-button-hover-elevation-level, 4);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
:host([size=small]) {
|
|
26
|
-
width: var(--u-fab-button-small-size, 40px);
|
|
27
|
-
border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-medium, 12px));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([size=large]) {
|
|
31
|
-
width: var(--u-fab-button-medium-size, 96px);
|
|
32
|
-
border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-extra-large, 28px));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host([extended]),
|
|
36
|
-
:host([size=medium]) {
|
|
37
|
-
width: var(--u-fab-button-medium-size, 56px);
|
|
38
|
-
border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-large, 16px));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([size=large]) .icon {
|
|
42
|
-
font-size: var(--u-fab-button-icon-size, 2rem);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([extended]) .icon,
|
|
46
|
-
:host([size=small]) .icon,
|
|
47
|
-
:host([size=medium]) .icon {
|
|
48
|
-
font-size: var(--u-fab-button-icon-size, 1.5rem);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host([extended]) {
|
|
52
|
-
width: auto;
|
|
53
|
-
height: var(--u-extended-fab-button-height, 56px);
|
|
54
|
-
aspect-ratio: auto;
|
|
55
|
-
min-width: var(--u-extended-fab-button-min-width, 80px);
|
|
56
|
-
padding-inline: var(--u-extended-fab-button-padding, 16px 24px);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host([extended]) .icon {
|
|
60
|
-
margin-inline-end: var(--u-extended-fab-button-icon-margin, 12px);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host([color=primary]) {
|
|
64
|
-
background-color: var(--u-fab-button-primary-background-color, var(--u-color-primary-container, rgb(234, 221, 255)));
|
|
65
|
-
color: var(--u-fab-button-primary-text-color, var(--u-color-on-primary-container, rgb(33, 0, 93)));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host([color=secondary]) {
|
|
69
|
-
background-color: var(--u-fab-button-secondary-background-color, var(--u-color-secondary-container, rgb(232, 222, 248)));
|
|
70
|
-
color: var(--u-fab-button-secondary-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:host([color=tertiary]) {
|
|
74
|
-
background-color: var(--u-fab-button-tertiary-background-color, var(--u-color-tertiary-container, rgb(255, 216, 228)));
|
|
75
|
-
color: var(--u-fab-button-tertiary-text-color, var(--u-color-on-tertiary-container, rgb(49, 17, 29)));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:host([color=branded]),
|
|
79
|
-
:host([color=surface]) {
|
|
80
|
-
background-color: var(--u-fab-button-surface-background-color, var(--u-color-surface-container-high, rgb(236, 230, 240)));
|
|
81
|
-
color: var(--u-fab-button-surface-text-color, var(--_color-primary));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:host([color=branded][lowered]),
|
|
85
|
-
:host([color=surface][lowered]) {
|
|
86
|
-
background-color: var(--u-fab-button-surface-background-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
89
|
-
//# sourceMappingURL=fab.styles.js.map
|
package/button/fab.styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fab.styles.js","sourceRoot":"","sources":["../../src/button/fab.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n aspect-ratio: 1;\n --u-elevation-level: var(--u-fab-button-elevation-level, 3);\n }\n\n :host([lowered]) {\n --u-elevation-level: var(--u-fab-button-elevation-level, 1);\n }\n\n @media (hover: hover) {\n :host(:hover:not(:focus-within):not(:active)) {\n --u-elevation-level: var(--u-fab-button-hover-elevation-level, 4);\n }\n :host(:hover:not(:focus-within):not(:active)[lowered]) {\n --u-elevation-level: var(--u-fab-button-elevation-level, 2);\n }\n }\n @media (hover: hover) {\n :host(:hover:not(:focus-within):not(:active)) {\n --u-elevation-level: var(--u-fab-button-hover-elevation-level, 4);\n }\n }\n :host([size=small]) {\n width: var(--u-fab-button-small-size, 40px);\n border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([size=large]) {\n width: var(--u-fab-button-medium-size, 96px);\n border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-extra-large, 28px));\n }\n\n :host([extended]),\n :host([size=medium]) {\n width: var(--u-fab-button-medium-size, 56px);\n border-radius: var(--u-fab-button-medium-shape-corner, var(--u-shape-corner-large, 16px));\n }\n\n :host([size=large]) .icon {\n font-size: var(--u-fab-button-icon-size, 2rem);\n }\n\n :host([extended]) .icon,\n :host([size=small]) .icon,\n :host([size=medium]) .icon {\n font-size: var(--u-fab-button-icon-size, 1.5rem);\n }\n\n :host([extended]) {\n width: auto;\n height: var(--u-extended-fab-button-height, 56px);\n aspect-ratio: auto;\n min-width: var(--u-extended-fab-button-min-width, 80px);\n padding-inline: var(--u-extended-fab-button-padding, 16px 24px);\n }\n\n :host([extended]) .icon {\n margin-inline-end: var(--u-extended-fab-button-icon-margin, 12px);\n }\n\n :host([color=primary]) {\n background-color: var(--u-fab-button-primary-background-color, var(--u-color-primary-container, rgb(234, 221, 255)));\n color: var(--u-fab-button-primary-text-color, var(--u-color-on-primary-container, rgb(33, 0, 93)));\n }\n\n :host([color=secondary]) {\n background-color: var(--u-fab-button-secondary-background-color, var(--u-color-secondary-container, rgb(232, 222, 248)));\n color: var(--u-fab-button-secondary-text-color, var(--u-color-on-secondary-container, rgb(29, 25, 43)));\n }\n\n :host([color=tertiary]) {\n background-color: var(--u-fab-button-tertiary-background-color, var(--u-color-tertiary-container, rgb(255, 216, 228)));\n color: var(--u-fab-button-tertiary-text-color, var(--u-color-on-tertiary-container, rgb(49, 17, 29)));\n }\n\n :host([color=branded]),\n :host([color=surface]) {\n background-color: var(--u-fab-button-surface-background-color, var(--u-color-surface-container-high, rgb(236, 230, 240)));\n color: var(--u-fab-button-surface-text-color, var(--_color-primary));\n }\n\n :host([color=branded][lowered]),\n :host([color=surface][lowered]) {\n background-color: var(--u-fab-button-surface-background-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n }\n`;\n"]}
|