@quaffui/quaff 0.1.0-prealpha9 → 1.0.0-alpha2
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/LICENSE +1 -1
- package/README.md +47 -14
- package/dist/classes/QContext.svelte.d.ts +42 -0
- package/dist/classes/QContext.svelte.js +63 -0
- package/dist/classes/QScrollObserver.svelte.d.ts +48 -0
- package/dist/classes/QScrollObserver.svelte.js +107 -0
- package/dist/classes/QTheme.svelte.d.ts +13 -0
- package/dist/classes/QTheme.svelte.js +62 -0
- package/dist/classes/Quaff.svelte.d.ts +27 -0
- package/dist/classes/Quaff.svelte.js +91 -0
- package/dist/components/avatar/QAvatar.scss +101 -0
- package/dist/components/avatar/QAvatar.svelte +42 -42
- package/dist/components/avatar/QAvatar.svelte.d.ts +4 -17
- package/dist/components/avatar/docs.d.ts +2 -2
- package/dist/components/avatar/docs.js +3 -8
- package/dist/components/avatar/docs.props.d.ts +3 -8
- package/dist/components/avatar/docs.props.js +68 -15
- package/dist/components/avatar/index.scss +5 -3
- package/dist/components/avatar/props.d.ts +51 -8
- package/dist/components/breadcrumbs/QBreadcrumbs.scss +10 -0
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte +32 -14
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +4 -13
- package/dist/components/breadcrumbs/QBreadcrumbsEl.scss +10 -0
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte +65 -48
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +4 -16
- package/dist/components/breadcrumbs/docs.d.ts +2 -2
- package/dist/components/breadcrumbs/docs.js +3 -8
- package/dist/components/breadcrumbs/docs.props.d.ts +5 -16
- package/dist/components/breadcrumbs/docs.props.js +105 -45
- package/dist/components/breadcrumbs/props.d.ts +26 -24
- package/dist/components/button/QBtn.scss +136 -0
- package/dist/components/button/QBtn.svelte +156 -52
- package/dist/components/button/QBtn.svelte.d.ts +4 -23
- package/dist/components/button/docs.d.ts +2 -2
- package/dist/components/button/docs.js +3 -8
- package/dist/components/button/docs.props.d.ts +3 -8
- package/dist/components/button/docs.props.js +174 -37
- package/dist/components/button/props.d.ts +48 -11
- package/dist/components/card/QCard.scss +47 -0
- package/dist/components/card/QCard.svelte +42 -19
- package/dist/components/card/QCard.svelte.d.ts +4 -16
- package/dist/components/card/QCardActions.scss +10 -0
- package/dist/components/card/QCardActions.svelte +23 -15
- package/dist/components/card/QCardActions.svelte.d.ts +4 -12
- package/dist/components/card/QCardSection.scss +10 -0
- package/dist/components/card/QCardSection.svelte +15 -11
- package/dist/components/card/QCardSection.svelte.d.ts +4 -13
- package/dist/components/card/docs.d.ts +4 -4
- package/dist/components/card/docs.js +7 -22
- package/dist/components/card/docs.props.d.ts +7 -24
- package/dist/components/card/docs.props.js +57 -30
- package/dist/components/card/props.d.ts +11 -16
- package/dist/components/checkbox/QCheckbox.svelte +15 -9
- package/dist/components/checkbox/QCheckbox.svelte.d.ts +3 -10
- package/dist/components/checkbox/docs.d.ts +2 -2
- package/dist/components/checkbox/docs.js +3 -3
- package/dist/components/checkbox/docs.props.d.ts +3 -8
- package/dist/components/checkbox/docs.props.js +24 -9
- package/dist/components/checkbox/index.scss +3 -1
- package/dist/components/checkbox/props.d.ts +2 -2
- package/dist/components/chip/QChip.scss +179 -0
- package/dist/components/chip/QChip.svelte +130 -60
- package/dist/components/chip/QChip.svelte.d.ts +4 -25
- package/dist/components/chip/docs.d.ts +2 -2
- package/dist/components/chip/docs.js +3 -16
- package/dist/components/chip/docs.props.d.ts +3 -8
- package/dist/components/chip/docs.props.js +96 -49
- package/dist/components/chip/props.d.ts +27 -29
- package/dist/components/codeBlock/QCodeBlock.svelte +101 -42
- package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +3 -10
- package/dist/components/codeBlock/docs.props.d.ts +3 -8
- package/dist/components/codeBlock/docs.props.js +61 -12
- package/dist/components/codeBlock/props.d.ts +12 -2
- package/dist/components/dialog/{index.scss → QDialog.scss} +12 -14
- package/dist/components/dialog/QDialog.svelte +85 -78
- package/dist/components/dialog/QDialog.svelte.d.ts +9 -24
- package/dist/components/dialog/docs.d.ts +2 -2
- package/dist/components/dialog/docs.js +3 -3
- package/dist/components/dialog/docs.props.d.ts +3 -16
- package/dist/components/dialog/docs.props.js +37 -128
- package/dist/components/dialog/props.d.ts +4 -19
- package/dist/components/drawer/QDrawer.scss +55 -0
- package/dist/components/drawer/QDrawer.svelte +334 -88
- package/dist/components/drawer/QDrawer.svelte.d.ts +9 -28
- package/dist/components/drawer/docs.d.ts +2 -2
- package/dist/components/drawer/docs.js +3 -3
- package/dist/components/drawer/docs.props.d.ts +3 -8
- package/dist/components/drawer/docs.props.js +90 -47
- package/dist/components/drawer/props.d.ts +10 -13
- package/dist/components/footer/QFooter.scss +42 -0
- package/dist/components/footer/QFooter.svelte +99 -24
- package/dist/components/footer/QFooter.svelte.d.ts +4 -14
- package/dist/components/footer/docs.d.ts +2 -2
- package/dist/components/footer/docs.js +3 -3
- package/dist/components/footer/docs.props.d.ts +3 -8
- package/dist/components/footer/docs.props.js +47 -16
- package/dist/components/footer/props.d.ts +15 -9
- package/dist/components/header/QHeader.scss +53 -0
- package/dist/components/header/QHeader.svelte +90 -23
- package/dist/components/header/QHeader.svelte.d.ts +4 -14
- package/dist/components/header/docs.d.ts +2 -0
- package/dist/components/header/docs.js +11 -0
- package/dist/components/header/docs.props.d.ts +7 -0
- package/dist/components/header/docs.props.js +131 -0
- package/dist/components/header/props.d.ts +13 -5
- package/dist/components/icon/{index.scss → QIcon.scss} +2 -4
- package/dist/components/icon/QIcon.svelte +44 -28
- package/dist/components/icon/QIcon.svelte.d.ts +4 -18
- package/dist/components/icon/docs.d.ts +2 -2
- package/dist/components/icon/docs.js +3 -3
- package/dist/components/icon/docs.props.d.ts +3 -8
- package/dist/components/icon/docs.props.js +65 -24
- package/dist/components/icon/props.d.ts +9 -8
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.js +5 -2
- package/dist/components/input/QInput.svelte +106 -72
- package/dist/components/input/QInput.svelte.d.ts +4 -22
- package/dist/components/input/docs.d.ts +2 -2
- package/dist/components/input/docs.js +5 -71
- package/dist/components/input/docs.props.d.ts +3 -8
- package/dist/components/input/docs.props.js +129 -57
- package/dist/components/input/index.scss +1 -3
- package/dist/components/input/props.d.ts +81 -21
- package/dist/components/input/props.js +1 -13
- package/dist/components/layout/QLayout.scss +184 -0
- package/dist/components/layout/QLayout.svelte +178 -79
- package/dist/components/layout/QLayout.svelte.d.ts +12 -45
- package/dist/components/layout/docs.d.ts +2 -2
- package/dist/components/layout/docs.js +3 -3
- package/dist/components/layout/docs.props.d.ts +3 -8
- package/dist/components/layout/docs.props.js +62 -39
- package/dist/components/layout/props.d.ts +29 -21
- package/dist/components/list/QItem.scss +69 -0
- package/dist/components/list/QItem.svelte +99 -51
- package/dist/components/list/QItem.svelte.d.ts +4 -24
- package/dist/components/list/QItemSection.scss +60 -0
- package/dist/components/list/QItemSection.svelte +63 -37
- package/dist/components/list/QItemSection.svelte.d.ts +4 -15
- package/dist/components/list/QList.scss +30 -0
- package/dist/components/list/QList.svelte +43 -20
- package/dist/components/list/QList.svelte.d.ts +4 -26
- package/dist/components/list/docs.d.ts +4 -2
- package/dist/components/list/docs.js +23 -3
- package/dist/components/list/docs.props.d.ts +11 -40
- package/dist/components/list/docs.props.js +344 -136
- package/dist/components/list/props.d.ts +126 -28
- package/dist/components/list/props.js +1 -25
- package/dist/components/private/ContextReseter.svelte +15 -11
- package/dist/components/private/ContextReseter.svelte.d.ts +4 -8
- package/dist/components/private/QApi.svelte +264 -113
- package/dist/components/private/QApi.svelte.d.ts +3 -6
- package/dist/components/private/QDocs.svelte +131 -70
- package/dist/components/private/QDocs.svelte.d.ts +4 -11
- package/dist/components/private/QDocsSection.svelte +48 -18
- package/dist/components/private/QDocsSection.svelte.d.ts +9 -24
- package/dist/components/private/QIconSnippet.svelte +22 -0
- package/dist/components/private/QIconSnippet.svelte.d.ts +14 -0
- package/dist/components/private/index.d.ts +6 -0
- package/dist/components/private/index.js +6 -0
- package/dist/components/progress/QCircularProgress.scss +63 -0
- package/dist/components/progress/QCircularProgress.svelte +134 -21
- package/dist/components/progress/QCircularProgress.svelte.d.ts +3 -11
- package/dist/components/progress/QLinearProgress.scss +75 -0
- package/dist/components/progress/QLinearProgress.svelte +80 -23
- package/dist/components/progress/QLinearProgress.svelte.d.ts +3 -11
- package/dist/components/progress/docs.d.ts +3 -2
- package/dist/components/progress/docs.js +15 -5
- package/dist/components/progress/docs.props.d.ts +5 -16
- package/dist/components/progress/docs.props.js +287 -41
- package/dist/components/progress/props.d.ts +126 -14
- package/dist/components/radio/QRadio.svelte +16 -9
- package/dist/components/radio/QRadio.svelte.d.ts +3 -11
- package/dist/components/radio/docs.d.ts +2 -2
- package/dist/components/radio/docs.js +4 -26
- package/dist/components/radio/docs.props.d.ts +3 -8
- package/dist/components/radio/docs.props.js +39 -20
- package/dist/components/radio/index.scss +3 -1
- package/dist/components/radio/props.d.ts +26 -6
- package/dist/components/radio/props.js +1 -8
- package/dist/components/railbar/QRailbar.scss +54 -0
- package/dist/components/railbar/QRailbar.svelte +71 -65
- package/dist/components/railbar/QRailbar.svelte.d.ts +4 -13
- package/dist/components/railbar/docs.d.ts +2 -2
- package/dist/components/railbar/docs.js +3 -3
- package/dist/components/railbar/docs.props.d.ts +3 -8
- package/dist/components/railbar/docs.props.js +36 -15
- package/dist/components/railbar/props.d.ts +13 -6
- package/dist/components/select/QSelect.svelte +222 -146
- package/dist/components/select/QSelect.svelte.d.ts +4 -24
- package/dist/components/select/docs.d.ts +2 -2
- package/dist/components/select/docs.js +5 -83
- package/dist/components/select/docs.props.d.ts +3 -8
- package/dist/components/select/docs.props.js +156 -64
- package/dist/components/select/index.scss +25 -10
- package/dist/components/select/props.d.ts +100 -20
- package/dist/components/select/props.js +1 -14
- package/dist/components/separator/QSeparator.scss +54 -0
- package/dist/components/separator/QSeparator.svelte +50 -57
- package/dist/components/separator/QSeparator.svelte.d.ts +3 -14
- package/dist/components/separator/docs.d.ts +3 -2
- package/dist/components/separator/docs.js +14 -4
- package/dist/components/separator/docs.props.d.ts +5 -16
- package/dist/components/separator/docs.props.js +152 -72
- package/dist/components/separator/props.d.ts +84 -16
- package/dist/components/separator/props.js +1 -9
- package/dist/components/switch/QSwitch.scss +305 -0
- package/dist/components/switch/QSwitch.svelte +115 -0
- package/dist/components/switch/QSwitch.svelte.d.ts +14 -0
- package/dist/components/switch/docs.d.ts +2 -0
- package/dist/components/switch/docs.js +17 -0
- package/dist/components/switch/docs.props.d.ts +3 -0
- package/dist/components/switch/docs.props.js +119 -0
- package/dist/components/switch/props.d.ts +53 -0
- package/dist/components/switch/props.js +1 -0
- package/dist/components/table/QTable.svelte +133 -97
- package/dist/components/table/QTable.svelte.d.ts +4 -19
- package/dist/components/table/docs.d.ts +2 -2
- package/dist/components/table/docs.js +3 -3
- package/dist/components/table/docs.props.d.ts +3 -8
- package/dist/components/table/docs.props.js +67 -15
- package/dist/components/table/index.scss +3 -1
- package/dist/components/table/props.d.ts +14 -3
- package/dist/components/tabs/QTab.scss +71 -0
- package/dist/components/tabs/QTab.svelte +101 -88
- package/dist/components/tabs/QTab.svelte.d.ts +4 -16
- package/dist/components/tabs/QTabs.scss +53 -0
- package/dist/components/tabs/QTabs.svelte +163 -46
- package/dist/components/tabs/QTabs.svelte.d.ts +9 -13
- package/dist/components/tabs/docs.d.ts +3 -2
- package/dist/components/tabs/docs.js +13 -3
- package/dist/components/tabs/docs.props.d.ts +5 -16
- package/dist/components/tabs/docs.props.js +64 -30
- package/dist/components/tabs/index.scss +36 -24
- package/dist/components/tabs/props.d.ts +38 -9
- package/dist/components/tabs/props.js +1 -13
- package/dist/components/toolbar/{index.scss → QToolbar.scss} +10 -16
- package/dist/components/toolbar/QToolbar.svelte +26 -21
- package/dist/components/toolbar/QToolbar.svelte.d.ts +4 -15
- package/dist/components/toolbar/QToolbarTitle.svelte +10 -7
- package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +4 -12
- package/dist/components/toolbar/docs.d.ts +3 -2
- package/dist/components/toolbar/docs.js +13 -3
- package/dist/components/toolbar/docs.props.d.ts +5 -16
- package/dist/components/toolbar/docs.props.js +55 -15
- package/dist/components/toolbar/props.d.ts +19 -9
- package/dist/components/tooltip/QTooltip.scss +40 -0
- package/dist/components/tooltip/QTooltip.svelte +200 -10
- package/dist/components/tooltip/QTooltip.svelte.d.ts +17 -18
- package/dist/components/tooltip/QTooltipBase.svelte +86 -0
- package/dist/components/tooltip/QTooltipBase.svelte.d.ts +14 -0
- package/dist/components/tooltip/docs.d.ts +2 -2
- package/dist/components/tooltip/docs.js +3 -2
- package/dist/components/tooltip/docs.props.d.ts +3 -8
- package/dist/components/tooltip/docs.props.js +69 -10
- package/dist/components/tooltip/props.d.ts +36 -4
- package/dist/components/tooltip/props.js +1 -6
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/index.js +3 -1
- package/dist/composables/{use-align.d.ts → useAlign.d.ts} +1 -1
- package/dist/composables/{use-align.js → useAlign.js} +1 -1
- package/dist/composables/{use-router-link.d.ts → useRouterLink.d.ts} +3 -3
- package/dist/composables/{use-router-link.js → useRouterLink.js} +4 -4
- package/dist/composables/useSize.d.ts +10 -0
- package/dist/composables/useSize.js +37 -0
- package/dist/css/_components.scss +31 -0
- package/dist/css/_disabled.scss +18 -0
- package/dist/css/{ripple.scss → _ripple.scss} +10 -3
- package/dist/css/_variables.scss +73 -0
- package/dist/css/classes/_design.scss +57 -0
- package/dist/css/{flex.scss → classes/_flex.scss} +23 -2
- package/dist/css/classes/_grid.scss +35 -0
- package/dist/css/classes/_index.scss +7 -0
- package/dist/css/classes/_overflow.scss +7 -0
- package/dist/css/classes/_position.scss +7 -0
- package/dist/css/classes/_select.scss +6 -0
- package/dist/css/classes/_spaces.scss +23 -0
- package/dist/css/fonts.scss +18 -4
- package/dist/css/index.css +1 -1
- package/dist/css/index.scss +13 -93
- package/dist/css/mixins/_design.scss +64 -0
- package/dist/css/mixins/_field.scss +64 -0
- package/dist/css/mixins/_image.scss +64 -0
- package/dist/css/mixins/_index.scss +11 -0
- package/dist/css/mixins/_layout.scss +20 -0
- package/dist/css/mixins/{menu.scss → _menu.scss} +4 -2
- package/dist/css/mixins/_responsive.scss +56 -0
- package/dist/css/mixins/{selection.scss → _selection.scss} +10 -70
- package/dist/css/mixins/_spaces.scss +36 -0
- package/dist/css/mixins/_toolbar.scss +7 -0
- package/dist/css/mixins/_typography.scss +7 -0
- package/dist/css/shared/q-field.scss +351 -0
- package/dist/css/theme/_color-classes.scss +332 -0
- package/dist/css/theme/_colors.scss +205 -0
- package/dist/css/theme/_css-variables.scss +5 -0
- package/dist/css/theme/_index.scss +12 -0
- package/dist/css/theme/_page.scss +17 -0
- package/dist/css/theme/{palette.scss → _palette.scss} +27 -5
- package/dist/css/theme/{reset.scss → _reset.scss} +11 -2
- package/dist/css/theme/_typography-variables.scss +107 -0
- package/dist/global.d.ts +1 -1
- package/dist/helpers/clickOutside.d.ts +2 -2
- package/dist/helpers/clickOutside.js +5 -4
- package/dist/helpers/index.d.ts +2 -1
- package/dist/helpers/index.js +2 -1
- package/dist/helpers/pageTitle.d.ts +1 -0
- package/dist/helpers/pageTitle.js +3 -0
- package/dist/helpers/ripple.d.ts +1 -0
- package/dist/helpers/ripple.js +31 -16
- package/dist/helpers/version.d.ts +1 -1
- package/dist/helpers/version.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/stores/index.d.ts +0 -0
- package/dist/stores/index.js +1 -0
- package/dist/utils/clipboard.d.ts +1 -1
- package/dist/utils/clipboard.js +3 -4
- package/dist/utils/colors.d.ts +69 -0
- package/dist/utils/colors.js +141 -15
- package/dist/utils/context.d.ts +33 -0
- package/dist/utils/context.js +33 -0
- package/dist/utils/dom.d.ts +3 -0
- package/dist/utils/dom.js +14 -4
- package/dist/utils/events.d.ts +24 -0
- package/dist/utils/events.js +24 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.js +11 -1
- package/dist/utils/number.d.ts +2 -0
- package/dist/utils/number.js +9 -0
- package/dist/utils/props.d.ts +4 -4
- package/dist/utils/props.js +8 -6
- package/dist/utils/router.d.ts +16 -0
- package/dist/utils/router.js +20 -0
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +12 -1
- package/dist/utils/types.d.ts +12 -18
- package/dist/utils/types.js +0 -3
- package/dist/utils/types.json +31 -1
- package/package.json +44 -39
- package/dist/components/breadcrumbs/index.scss +0 -20
- package/dist/components/button/index.scss +0 -98
- package/dist/components/card/index.scss +0 -56
- package/dist/components/chip/index.scss +0 -86
- package/dist/components/drawer/index.scss +0 -59
- package/dist/components/footer/index.scss +0 -28
- package/dist/components/layout/index.scss +0 -387
- package/dist/components/list/index.scss +0 -121
- package/dist/components/progress/index.scss +0 -65
- package/dist/components/railbar/index.scss +0 -39
- package/dist/components/toggle/QToggle.svelte +0 -35
- package/dist/components/toggle/QToggle.svelte.d.ts +0 -23
- package/dist/components/toggle/docs.d.ts +0 -2
- package/dist/components/toggle/docs.js +0 -47
- package/dist/components/toggle/docs.props.d.ts +0 -8
- package/dist/components/toggle/docs.props.js +0 -42
- package/dist/components/toggle/index.scss +0 -31
- package/dist/components/toggle/props.d.ts +0 -9
- package/dist/components/toggle/props.js +0 -9
- package/dist/components/tooltip/index.scss +0 -82
- package/dist/composables/use-index.d.ts +0 -2
- package/dist/composables/use-index.js +0 -17
- package/dist/composables/use-size.d.ts +0 -9
- package/dist/composables/use-size.js +0 -25
- package/dist/css/grid.scss +0 -50
- package/dist/css/mixins/field.scss +0 -432
- package/dist/css/mixins.scss +0 -136
- package/dist/css/states.scss +0 -75
- package/dist/css/theme/bridge.scss +0 -15
- package/dist/css/theme/colors.module.scss +0 -180
- package/dist/css/theme/page.scss +0 -16
- package/dist/css/theme/theme.dark.scss +0 -37
- package/dist/css/theme/theme.light.scss +0 -37
- package/dist/css/theme/theme.scss +0 -11
- package/dist/css/theme/tokens.scss +0 -266
- package/dist/css/variables-sass.scss +0 -16
- package/dist/helpers/activationHandler.d.ts +0 -9
- package/dist/helpers/activationHandler.js +0 -23
- package/dist/stores/QTheme.d.ts +0 -42
- package/dist/stores/QTheme.js +0 -53
- package/dist/stores/Quaff.d.ts +0 -32
- package/dist/stores/Quaff.js +0 -53
- package/dist/utils/fields.d.ts +0 -1
- package/dist/utils/fields.js +0 -14
- package/dist/utils/watchable.d.ts +0 -3
- package/dist/utils/watchable.js +0 -22
- /package/dist/css/mixins/{table.scss → _table.scss} +0 -0
- /package/dist/css/theme/{elevate.scss → _elevate.scss} +0 -0
- /package/dist/css/theme/{typography.module.scss → _typography-classes.scss} +0 -0
- /package/dist/css/theme/{typography.scss → _typography.scss} +0 -0
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--header-height: 64px;
|
|
3
|
-
--footer-height: 80px;
|
|
4
|
-
|
|
5
|
-
--left-railbar-width: 88px;
|
|
6
|
-
--right-railbar-width: 88px;
|
|
7
|
-
|
|
8
|
-
--left-drawer-width: 300px;
|
|
9
|
-
--right-drawer-width: 300px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
$contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
13
|
-
|
|
14
|
-
.q-layout {
|
|
15
|
-
position: relative;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
min-width: 100%;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
|
|
22
|
-
& > #{$contentSlot} {
|
|
23
|
-
height: 100%;
|
|
24
|
-
overflow: auto;
|
|
25
|
-
transition: padding var(--speed3);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.q-layout > .q-header {
|
|
30
|
-
z-index: 103;
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: 0px;
|
|
33
|
-
right: 0px;
|
|
34
|
-
bottom: auto;
|
|
35
|
-
left: 0px;
|
|
36
|
-
height: var(--header-height);
|
|
37
|
-
min-height: unset;
|
|
38
|
-
border-radius: 0;
|
|
39
|
-
|
|
40
|
-
&--fixed {
|
|
41
|
-
position: fixed;
|
|
42
|
-
|
|
43
|
-
&::before {
|
|
44
|
-
margin: 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
& > nav {
|
|
49
|
-
height: 100%;
|
|
50
|
-
min-height: unset;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.q-layout > .q-footer {
|
|
55
|
-
z-index: 103;
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: auto;
|
|
58
|
-
right: 0px;
|
|
59
|
-
bottom: 0px;
|
|
60
|
-
left: 0px;
|
|
61
|
-
height: var(--footer-height);
|
|
62
|
-
min-height: unset;
|
|
63
|
-
border-radius: 0;
|
|
64
|
-
|
|
65
|
-
&--fixed {
|
|
66
|
-
position: fixed;
|
|
67
|
-
|
|
68
|
-
&::before {
|
|
69
|
-
margin: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
& > nav {
|
|
74
|
-
height: 100%;
|
|
75
|
-
min-height: unset;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
& ~ #{$contentSlot} {
|
|
79
|
-
padding-bottom: var(--footer-height);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.q-layout > .q-railbar {
|
|
84
|
-
z-index: 102;
|
|
85
|
-
position: absolute;
|
|
86
|
-
top: 0px;
|
|
87
|
-
right: auto;
|
|
88
|
-
bottom: 0px;
|
|
89
|
-
left: auto;
|
|
90
|
-
height: 100%;
|
|
91
|
-
overflow: auto;
|
|
92
|
-
transition: all var(--speed3);
|
|
93
|
-
|
|
94
|
-
&--above {
|
|
95
|
-
z-index: 105;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&--fixed {
|
|
99
|
-
position: fixed;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&--left {
|
|
103
|
-
left: 0px;
|
|
104
|
-
width: var(--left-railbar-width);
|
|
105
|
-
|
|
106
|
-
&.q-railbar--bordered {
|
|
107
|
-
border-right: 0.0625rem solid var(--outline);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&--right {
|
|
112
|
-
right: 0px;
|
|
113
|
-
width: var(--right-railbar-width);
|
|
114
|
-
|
|
115
|
-
&.q-railbar--bordered {
|
|
116
|
-
border-left: 0.0625rem solid var(--outline);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
& > .q-list > .q-item {
|
|
121
|
-
flex-direction: column;
|
|
122
|
-
border-radius: 2rem;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
padding: 0 8px;
|
|
126
|
-
gap: 0.25em;
|
|
127
|
-
|
|
128
|
-
&.wave::after {
|
|
129
|
-
all: unset;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
& > .q-item__section {
|
|
133
|
-
justify-content: start;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
& > i {
|
|
137
|
-
transition: var(--speed1) padding linear;
|
|
138
|
-
padding-inline: 0.25em;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&:is(:hover, :focus, .active) > i {
|
|
142
|
-
background-color: var(--secondary-container);
|
|
143
|
-
color: var(--on-secondary-container);
|
|
144
|
-
padding: 0 1rem;
|
|
145
|
-
font-variation-settings:
|
|
146
|
-
"FILL" 1,
|
|
147
|
-
"wght" 400,
|
|
148
|
-
"opsz" 24;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.q-layout > .q-drawer {
|
|
154
|
-
z-index: 101;
|
|
155
|
-
border-radius: 0;
|
|
156
|
-
|
|
157
|
-
&--above {
|
|
158
|
-
z-index: 104;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
$horizontal: "left", "right";
|
|
162
|
-
$vertical: "top", "bottom";
|
|
163
|
-
|
|
164
|
-
@each $vPos in $vertical {
|
|
165
|
-
@each $hPos in $horizontal {
|
|
166
|
-
&--#{$vPos}-#{$hPos}-radius {
|
|
167
|
-
border-#{$vPos}-#{$hPos}-radius: 16px;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
& .q-list > .q-item.q-link {
|
|
173
|
-
border-radius: 2rem;
|
|
174
|
-
|
|
175
|
-
&::before {
|
|
176
|
-
content: "";
|
|
177
|
-
position: absolute;
|
|
178
|
-
bottom: 0;
|
|
179
|
-
left: 0;
|
|
180
|
-
width: 100%;
|
|
181
|
-
height: 100%;
|
|
182
|
-
opacity: 0;
|
|
183
|
-
border-radius: inherit;
|
|
184
|
-
background: var(--secondary-container);
|
|
185
|
-
z-index: -1;
|
|
186
|
-
transform: scaleX(0.32);
|
|
187
|
-
transition-duration: 0.2s;
|
|
188
|
-
transition-property: transform, opacity;
|
|
189
|
-
transition-timing-function: linear;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&.active {
|
|
193
|
-
color: var(--on-secondary-container);
|
|
194
|
-
|
|
195
|
-
&::before {
|
|
196
|
-
opacity: 1;
|
|
197
|
-
transform: scaleX(1);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&:hover {
|
|
202
|
-
background-color: var(--on-surface-variant-2);
|
|
203
|
-
font-variation-settings: "GRAD" 50;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// Offsets
|
|
209
|
-
$L_Railbar: var(--left-railbar-width);
|
|
210
|
-
$R_Railbar: var(--right-railbar-width);
|
|
211
|
-
$LR_Railbar: calc(#{$L_Railbar} + #{$R_Railbar});
|
|
212
|
-
|
|
213
|
-
$L_Drawer: var(--left-drawer-width);
|
|
214
|
-
$R_Drawer: var(--right-drawer-width);
|
|
215
|
-
$LR_Drawer: calc(#{$L_Drawer} + #{$R_Drawer});
|
|
216
|
-
|
|
217
|
-
$L_Full: calc(#{$L_Railbar} + #{$L_Drawer});
|
|
218
|
-
$R_Full: calc(#{$R_Railbar} + #{$R_Drawer});
|
|
219
|
-
|
|
220
|
-
$L_Railbar-R_Drawer: calc(#{$L_Railbar} + #{$R_Drawer});
|
|
221
|
-
$R_Railbar-L_Drawer: calc(#{$R_Railbar} + #{$L_Drawer});
|
|
222
|
-
|
|
223
|
-
$L_Full-R_Railbar: calc(#{$L_Full} + #{$R_Railbar});
|
|
224
|
-
$L_Full-R_Drawer: calc(#{$L_Full} + #{$R_Drawer});
|
|
225
|
-
$R_Full-L_Railbar: calc(#{$R_Full} + #{$L_Railbar});
|
|
226
|
-
$R_Full-L_Drawer: calc(#{$R_Full} + #{$L_Drawer});
|
|
227
|
-
|
|
228
|
-
$Full: calc(#{$L_Full} + #{$R_Full});
|
|
229
|
-
|
|
230
|
-
$elements: (
|
|
231
|
-
top: "header",
|
|
232
|
-
bottom: "footer",
|
|
233
|
-
);
|
|
234
|
-
|
|
235
|
-
@function without($toSub) {
|
|
236
|
-
@return calc(100% - #{$toSub});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// Offset for content
|
|
240
|
-
.q-layout {
|
|
241
|
-
& > .q-header ~ #{$contentSlot} {
|
|
242
|
-
padding-top: var(--header-height);
|
|
243
|
-
}
|
|
244
|
-
& > .q-footer ~ #{$contentSlot} {
|
|
245
|
-
padding-bottom: var(--footer-height);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
& > .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
249
|
-
padding-left: $L_Drawer;
|
|
250
|
-
}
|
|
251
|
-
& > .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
252
|
-
padding-right: $R_Drawer;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
256
|
-
& ~ #{$contentSlot} {
|
|
257
|
-
padding-left: $L_Railbar;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
& ~ .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
261
|
-
padding-left: $L_Full;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
265
|
-
& ~ #{$contentSlot} {
|
|
266
|
-
padding-right: $R_Railbar;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
& ~ .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
270
|
-
padding-right: $R_Full;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// Inline offset for header, footer and drawers
|
|
276
|
-
.q-layout {
|
|
277
|
-
@each $pos, $el in $elements {
|
|
278
|
-
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
279
|
-
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
280
|
-
& ~ .q-drawer.q-drawer--left {
|
|
281
|
-
left: $L_Railbar;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
&
|
|
285
|
-
~ .q-drawer.q-drawer--active.q-drawer--left:not(
|
|
286
|
-
.q-drawer--offset-#{$pos},
|
|
287
|
-
.q-drawer--overlay
|
|
288
|
-
)
|
|
289
|
-
~ .q-#{$el} {
|
|
290
|
-
left: $L_Full;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
294
|
-
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
295
|
-
& ~ .q-drawer.q-drawer--right {
|
|
296
|
-
right: $R_Railbar;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
&
|
|
300
|
-
~ .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
301
|
-
.q-drawer--offset-#{$pos},
|
|
302
|
-
.q-drawer--overlay
|
|
303
|
-
)
|
|
304
|
-
~ .q-#{$el} {
|
|
305
|
-
right: $R_Full;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
&
|
|
310
|
-
> .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay)
|
|
311
|
-
~ .q-#{$el} {
|
|
312
|
-
left: $L_Drawer;
|
|
313
|
-
}
|
|
314
|
-
&
|
|
315
|
-
> .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
316
|
-
.q-drawer--offset-#{$pos},
|
|
317
|
-
.q-drawer--overlay
|
|
318
|
-
)
|
|
319
|
-
~ .q-#{$el} {
|
|
320
|
-
right: $R_Drawer;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// Width for header and footer
|
|
326
|
-
.q-layout {
|
|
327
|
-
@each $pos, $el in $elements {
|
|
328
|
-
& > .q-railbar.q-railbar--left:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
329
|
-
// Left railbar
|
|
330
|
-
& ~ .q-#{$el} {
|
|
331
|
-
width: without($L_Railbar);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
335
|
-
@include include-drawers(without($L_Railbar), $pos, $el);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
& ~ .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
339
|
-
// Left railbar + Right railbar
|
|
340
|
-
& ~ .q-#{$el} {
|
|
341
|
-
width: without($LR_Railbar);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
345
|
-
@include include-drawers(without($LR_Railbar), $pos, $el);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
& > .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
351
|
-
// Right railbar
|
|
352
|
-
& ~ .q-#{$el} {
|
|
353
|
-
width: without($R_Railbar);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
357
|
-
@include include-drawers(without($R_Railbar), $pos, $el);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
& > .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
362
|
-
@include include-drawers(100%, $pos, $el);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// Height for railbars and drawers
|
|
368
|
-
.q-layout {
|
|
369
|
-
$drawerTypes: ".q-railbar", ".q-drawer";
|
|
370
|
-
|
|
371
|
-
@each $drawerType in $drawerTypes {
|
|
372
|
-
& > #{$drawerType} {
|
|
373
|
-
&#{$drawerType}--offset-top#{$drawerType}--offset-bottom {
|
|
374
|
-
height: calc(100% - var(--header-height) - var(--footer-height));
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
@each $pos, $el in $elements {
|
|
379
|
-
& > #{$drawerType} {
|
|
380
|
-
&#{$drawerType}--offset-#{$pos} {
|
|
381
|
-
#{$pos}: var(--#{$el}-height);
|
|
382
|
-
height: calc(100% - var(--#{$el}-height));
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
.q-list {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
width: 100%;
|
|
7
|
-
|
|
8
|
-
&.rounded-borders {
|
|
9
|
-
border-radius: 0.25rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.dense {
|
|
13
|
-
min-height: 32px;
|
|
14
|
-
padding-block: 0;
|
|
15
|
-
|
|
16
|
-
& > .q-item {
|
|
17
|
-
min-height: 32px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& > .q-separator__wrapper:first-child {
|
|
22
|
-
display: none !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.q-item {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: flex-start;
|
|
30
|
-
white-space: nowrap;
|
|
31
|
-
gap: 1rem;
|
|
32
|
-
|
|
33
|
-
min-width: 100%;
|
|
34
|
-
max-width: 100%;
|
|
35
|
-
min-height: 56px;
|
|
36
|
-
margin-top: 0 !important;
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: 8px 24px 8px 16px;
|
|
39
|
-
gap: 16px;
|
|
40
|
-
|
|
41
|
-
& .q-avatar {
|
|
42
|
-
height: 40px;
|
|
43
|
-
width: 40px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.wave {
|
|
47
|
-
padding: 8px 24px 8px 16px;
|
|
48
|
-
|
|
49
|
-
&.multiline {
|
|
50
|
-
padding-block: 12px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&::after {
|
|
54
|
-
background-image: radial-gradient(circle, rgb(150 150 150 / 0.2) 1%, transparent 1%);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.multiline {
|
|
59
|
-
padding-block: 12px;
|
|
60
|
-
|
|
61
|
-
&
|
|
62
|
-
> :is(
|
|
63
|
-
.q-item__section--avatar,
|
|
64
|
-
.q-item__section--icon,
|
|
65
|
-
.q-item__section--thumbnail,
|
|
66
|
-
.q-item__section--trailingIcon,
|
|
67
|
-
.q-item__section--trailingText
|
|
68
|
-
) {
|
|
69
|
-
align-self: start;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
& > .q-item__section--video {
|
|
73
|
-
margin-left: -16px !important;
|
|
74
|
-
padding-block: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.q-item__section {
|
|
80
|
-
display: flex;
|
|
81
|
-
|
|
82
|
-
&--video {
|
|
83
|
-
margin-left: -8px;
|
|
84
|
-
padding-block: 4px;
|
|
85
|
-
|
|
86
|
-
& video {
|
|
87
|
-
width: 114px;
|
|
88
|
-
height: 64px;
|
|
89
|
-
object-fit: cover;
|
|
90
|
-
object-position: center;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&--avatar {
|
|
95
|
-
height: 40px;
|
|
96
|
-
width: 40px;
|
|
97
|
-
}
|
|
98
|
-
&--icon {
|
|
99
|
-
height: 24px;
|
|
100
|
-
width: 24px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&--thumbnail img {
|
|
104
|
-
width: 56px;
|
|
105
|
-
height: 56px;
|
|
106
|
-
object-fit: cover;
|
|
107
|
-
object-position: center;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&--content {
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
flex: 10000 1 0;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
align-items: start;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&--toggle {
|
|
118
|
-
height: 24px;
|
|
119
|
-
width: 52px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// Linear progress
|
|
2
|
-
.q-linear-progress {
|
|
3
|
-
height: 1rem;
|
|
4
|
-
@include border;
|
|
5
|
-
|
|
6
|
-
&__progress {
|
|
7
|
-
position: absolute;
|
|
8
|
-
background-color: var(--active);
|
|
9
|
-
top: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
transition: var(--speed4) clip-path;
|
|
14
|
-
clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Circular progress
|
|
19
|
-
.q-circular-progress {
|
|
20
|
-
vertical-align: middle;
|
|
21
|
-
|
|
22
|
-
&--indeterminate {
|
|
23
|
-
animation: q-spin 2s linear infinite;
|
|
24
|
-
transform-origin: center center;
|
|
25
|
-
|
|
26
|
-
& .path {
|
|
27
|
-
stroke-dasharray: 1, 200;
|
|
28
|
-
stroke-dashoffset: 0;
|
|
29
|
-
animation: q-load 1.5s ease-in-out infinite;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@keyframes q-spin {
|
|
35
|
-
0% {
|
|
36
|
-
transform: rotate3d(0, 0, 1, 0deg);
|
|
37
|
-
}
|
|
38
|
-
25% {
|
|
39
|
-
transform: rotate3d(0, 0, 1, 90deg);
|
|
40
|
-
}
|
|
41
|
-
50% {
|
|
42
|
-
transform: rotate3d(0, 0, 1, 180deg);
|
|
43
|
-
}
|
|
44
|
-
75% {
|
|
45
|
-
transform: rotate3d(0, 0, 1, 270deg);
|
|
46
|
-
}
|
|
47
|
-
100% {
|
|
48
|
-
transform: rotate3d(0, 0, 1, 359deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes q-load {
|
|
53
|
-
0% {
|
|
54
|
-
stroke-dasharray: 1, 200;
|
|
55
|
-
stroke-dashoffset: 0;
|
|
56
|
-
}
|
|
57
|
-
50% {
|
|
58
|
-
stroke-dasharray: 89, 200;
|
|
59
|
-
stroke-dashoffset: -35px;
|
|
60
|
-
}
|
|
61
|
-
100% {
|
|
62
|
-
stroke-dasharray: 89, 200;
|
|
63
|
-
stroke-dashoffset: -124px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.q-railbar {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
text-align: center;
|
|
7
|
-
vertical-align: middle;
|
|
8
|
-
|
|
9
|
-
border: 0;
|
|
10
|
-
border-radius: 0;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0.5rem;
|
|
13
|
-
|
|
14
|
-
position: fixed;
|
|
15
|
-
top: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
height: auto;
|
|
18
|
-
width: auto;
|
|
19
|
-
gap: 1rem;
|
|
20
|
-
|
|
21
|
-
color: var(--on-surface);
|
|
22
|
-
background-color: var(--surface);
|
|
23
|
-
|
|
24
|
-
z-index: 100;
|
|
25
|
-
transform: none;
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
|
|
29
|
-
&::-webkit-scrollbar {
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__left {
|
|
34
|
-
left: 0;
|
|
35
|
-
}
|
|
36
|
-
&__right {
|
|
37
|
-
right: 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script>import { createClasses } from "../../utils/props";
|
|
2
|
-
import { onMount } from "svelte";
|
|
3
|
-
export let value, icon = void 0, label = void 0, leftLabel = void 0, disable = void 0, userClasses = void 0;
|
|
4
|
-
export { userClasses as class };
|
|
5
|
-
$:
|
|
6
|
-
classes = createClasses([leftLabel && "reversed", disable && "disabled", userClasses], {
|
|
7
|
-
component: "q-toggle",
|
|
8
|
-
userClasses
|
|
9
|
-
});
|
|
10
|
-
$:
|
|
11
|
-
classesInner = createClasses([icon && "icon"], {
|
|
12
|
-
component: "q-toggle__inner"
|
|
13
|
-
});
|
|
14
|
-
function toggle() {
|
|
15
|
-
if (disable !== true) {
|
|
16
|
-
value = !value;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<div on:click={toggle} class={classes} aria-disabled={disable} {...$$restProps}>
|
|
22
|
-
<label class={classesInner}>
|
|
23
|
-
<input bind:checked={value} type="checkbox" disabled={disable} />
|
|
24
|
-
<span>
|
|
25
|
-
{#if icon}
|
|
26
|
-
<i>{icon}</i>
|
|
27
|
-
{/if}
|
|
28
|
-
</span>
|
|
29
|
-
</label>
|
|
30
|
-
{#if label}
|
|
31
|
-
<span class="q-toggle__label">
|
|
32
|
-
{label}
|
|
33
|
-
</span>
|
|
34
|
-
{/if}
|
|
35
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { QToggleProps } from "./props";
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
value: QToggleProps["value"];
|
|
7
|
-
icon?: QToggleProps["icon"];
|
|
8
|
-
label?: QToggleProps["label"];
|
|
9
|
-
leftLabel?: QToggleProps["leftLabel"];
|
|
10
|
-
disable?: QToggleProps["disable"];
|
|
11
|
-
class?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
events: {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
};
|
|
18
|
-
type QToggleProps_ = typeof __propDef.props;
|
|
19
|
-
export { QToggleProps_ as QToggleProps };
|
|
20
|
-
export type QToggleEvents = typeof __propDef.events;
|
|
21
|
-
export type QToggleSlots = typeof __propDef.slots;
|
|
22
|
-
export default class QToggle extends SvelteComponent<QToggleProps, QToggleEvents, QToggleSlots> {
|
|
23
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export let QToggleDocs = {
|
|
2
|
-
name: "QToggle",
|
|
3
|
-
description: "QToggle is a switch-like checkbox which offers binary choices. It supports labels, icons and different positioning of the labels.",
|
|
4
|
-
docs: {
|
|
5
|
-
props: [
|
|
6
|
-
{
|
|
7
|
-
name: "value",
|
|
8
|
-
type: "boolean",
|
|
9
|
-
default: false,
|
|
10
|
-
description: "The current value of the toggle, true or false.",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: "label",
|
|
14
|
-
type: "string",
|
|
15
|
-
optional: true,
|
|
16
|
-
description: "Label to be shown alongside the toggle.",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: "leftLabel",
|
|
20
|
-
type: "boolean",
|
|
21
|
-
default: false,
|
|
22
|
-
description: "Whether the label should be displayed to the left of the toggle.",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: "icon",
|
|
26
|
-
type: "string",
|
|
27
|
-
optional: true,
|
|
28
|
-
description: "Name of the icon to display on the toggle.",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "disable",
|
|
32
|
-
type: "boolean",
|
|
33
|
-
default: false,
|
|
34
|
-
description: "Whether the toggle should be disabled.",
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
slots: [],
|
|
38
|
-
methods: [],
|
|
39
|
-
events: [
|
|
40
|
-
{
|
|
41
|
-
name: "input",
|
|
42
|
-
type: "(value: boolean) => void",
|
|
43
|
-
description: "Emitted when the user changes the value of the toggle.",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
};
|