@quaffui/quaff 0.1.0-prealpha8 → 1.0.0-alpha1
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 +15 -0
- package/dist/classes/Quaff.svelte.js +45 -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 +157 -43
- package/dist/components/button/QBtn.svelte.d.ts +4 -24
- 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 +25 -0
- package/dist/components/card/QCard.svelte +34 -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 +90 -44
- 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 +90 -68
- package/dist/components/dialog/QDialog.svelte.d.ts +9 -25
- 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 +39 -0
- package/dist/components/drawer/QDrawer.svelte +142 -83
- 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 +94 -39
- package/dist/components/drawer/props.d.ts +4 -3
- package/dist/components/footer/QFooter.scss +42 -0
- package/dist/components/footer/QFooter.svelte +100 -21
- 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 +14 -8
- package/dist/components/header/QHeader.scss +53 -0
- package/dist/components/header/QHeader.svelte +95 -0
- package/dist/components/header/QHeader.svelte.d.ts +14 -0
- 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 +23 -0
- package/dist/components/header/props.js +1 -0
- 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 +6 -2
- package/dist/components/index.js +6 -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 +174 -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 +59 -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 -111
- package/dist/components/private/QApi.svelte.d.ts +3 -6
- package/dist/components/private/QDocs.svelte +119 -68
- 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 +72 -48
- 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 +107 -66
- package/dist/components/tabs/QTab.svelte.d.ts +4 -18
- package/dist/components/tabs/QTabs.scss +53 -0
- package/dist/components/tabs/QTabs.svelte +164 -51
- 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 +71 -28
- package/dist/components/tabs/props.d.ts +38 -9
- package/dist/components/tabs/props.js +1 -13
- package/dist/components/toolbar/QToolbar.scss +36 -0
- package/dist/components/toolbar/QToolbar.svelte +26 -38
- package/dist/components/toolbar/QToolbar.svelte.d.ts +4 -13
- 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 +25 -7
- 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 +49 -0
- 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 +16 -91
- 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 +10 -0
- package/dist/css/mixins/_layout.scss +20 -0
- package/dist/css/mixins/{menu.scss → _menu.scss} +4 -2
- 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 +348 -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 +11 -0
- package/dist/helpers/ripple.js +90 -0
- 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 +11 -0
- package/dist/utils/dom.js +81 -0
- package/dist/utils/events.d.ts +37 -0
- package/dist/utils/events.js +37 -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 +9 -7
- 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 -81
- package/dist/components/card/index.scss +0 -56
- package/dist/components/chip/index.scss +0 -86
- package/dist/components/drawer/index.scss +0 -56
- package/dist/components/footer/index.scss +0 -5
- package/dist/components/layout/index.scss +0 -373
- package/dist/components/list/index.scss +0 -120
- package/dist/components/progress/index.scss +0 -65
- 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/toolbar/index.scss +0 -34
- 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 -138
- package/dist/css/states.scss +0 -71
- 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
package/dist/utils/string.js
CHANGED
|
@@ -31,6 +31,7 @@ function convertToKebabSnakeCase(str, caseType) {
|
|
|
31
31
|
.join("");
|
|
32
32
|
}
|
|
33
33
|
export function convertCase(str, fromCase, toCase) {
|
|
34
|
+
const uncap = uncapitalize(str);
|
|
34
35
|
switch (fromCase) {
|
|
35
36
|
case "camel":
|
|
36
37
|
if (toCase === "pascal") {
|
|
@@ -41,7 +42,6 @@ export function convertCase(str, fromCase, toCase) {
|
|
|
41
42
|
}
|
|
42
43
|
break;
|
|
43
44
|
case "pascal":
|
|
44
|
-
let uncap = uncapitalize(str);
|
|
45
45
|
if (toCase === "camel") {
|
|
46
46
|
return uncap;
|
|
47
47
|
}
|
|
@@ -76,3 +76,14 @@ export function convertCase(str, fromCase, toCase) {
|
|
|
76
76
|
}
|
|
77
77
|
return str;
|
|
78
78
|
}
|
|
79
|
+
export function extractImgSrc(prop) {
|
|
80
|
+
return prop?.startsWith("img:") ? prop.slice(4) : undefined;
|
|
81
|
+
}
|
|
82
|
+
export function escape(str) {
|
|
83
|
+
return str
|
|
84
|
+
.replace("&", "&")
|
|
85
|
+
.replace('"', """)
|
|
86
|
+
.replace("'", "'")
|
|
87
|
+
.replace("<", "<")
|
|
88
|
+
.replace(">", ">");
|
|
89
|
+
}
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,33 +1,22 @@
|
|
|
1
|
+
import { ParsedProp, ParsedSnippet } from "../../../docgen/props/parseInterface";
|
|
1
2
|
export interface NativeProps {
|
|
2
|
-
userClasses?: string;
|
|
3
|
-
userStyles?: string;
|
|
3
|
+
userClasses?: string | null;
|
|
4
|
+
userStyles?: string | null;
|
|
4
5
|
}
|
|
5
6
|
export declare const NativePropsDefaults: NativeProps;
|
|
6
|
-
export type QuaffSizes = "xs" | "sm" | "md" | "lg" | "xl";
|
|
7
|
+
export type QuaffSizes = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
7
8
|
export type CssUnit = "px" | "%" | "em" | "ex" | "ch" | "rem" | "vw" | "vh" | "vmin" | "vmax";
|
|
8
9
|
export type CssValue = `${number}${CssUnit}`;
|
|
9
10
|
export interface QComponentDocs {
|
|
10
11
|
name: string;
|
|
11
12
|
description: string;
|
|
12
13
|
docs: {
|
|
13
|
-
props:
|
|
14
|
-
|
|
14
|
+
props: ParsedProp[];
|
|
15
|
+
snippets: ParsedSnippet[];
|
|
15
16
|
methods: QComponentMethod[];
|
|
16
17
|
events: QComponentEvent[];
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
export interface QComponentProp {
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
default?: any;
|
|
23
|
-
description: string;
|
|
24
|
-
clickableType?: boolean;
|
|
25
|
-
optional?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface QComponentSlot {
|
|
28
|
-
name: string;
|
|
29
|
-
description: string;
|
|
30
|
-
}
|
|
31
20
|
export interface QComponentType {
|
|
32
21
|
name: string;
|
|
33
22
|
description: string;
|
|
@@ -42,4 +31,9 @@ export interface QComponentMethod {
|
|
|
42
31
|
type: string;
|
|
43
32
|
description: string;
|
|
44
33
|
}
|
|
45
|
-
export
|
|
34
|
+
export type Entries<T> = {
|
|
35
|
+
[K in keyof T]: [K, T[K]];
|
|
36
|
+
}[keyof T][];
|
|
37
|
+
export type QEvent<T, E> = T & {
|
|
38
|
+
currentTarget: EventTarget & E;
|
|
39
|
+
};
|
package/dist/utils/types.js
CHANGED
package/dist/utils/types.json
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"QAvatarShapeOptions": "type QAvatarShapeOptions =\n | \"circle\"\n | \"square\"\n | \"top-round\"\n | \"left-round\"\n | \"right-round\"\n | \"bottom-round\"\n | \"top-left-round\"\n | \"top-right-round\"\n | \"bottom-left-round\"\n | \"bottom-right-round\"",
|
|
3
|
+
"QAvatarSizeOptions": "type QAvatarSizeOptions = Q.Size | Q.CssValue | number",
|
|
4
|
+
"QAvatarVideoSrcOptions": "type QAvatarVideoSrcOptions = {\n /**\n * Sets the URL of the media resource.\n */\n src: string\n /**\n * Sets the MIME type of a media resource.\n */\n type: VideoTypes;\n};",
|
|
5
|
+
"QBreadcrumbsGutterOptions": "type QBreadcrumbsGutterOptions = Exclude<Q.Size, \"xs\" | \"xl\">",
|
|
6
|
+
"QBtnSizeOptions": "type QBtnSizeOptions = Exclude<Q.Size, \"xs\">",
|
|
7
|
+
"QBtnVariantOptions": "type QBtnVariantOptions = \"elevated\" | \"filled\" | \"tonal\" | \"outlined\" | \"flat\"",
|
|
8
|
+
"QCardFillColors": "type QCardFillColors = \"primary\" | \"secondary\" | \"tertiary\"",
|
|
9
|
+
"QChipFillOptions": "type QChipFillOptions =\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"neutral\"\n | \"neutral-variant\"\n | \"error\"",
|
|
10
|
+
"QChipKindOptions": "type QChipKindOptions = \"assist\" | \"filter\" | \"input\" | \"suggestion\"",
|
|
11
|
+
"QChipSizeOptions": "type QChipSizeOptions = Exclude<Q.Size, \"xs\" | \"xl\" | \"none\">",
|
|
12
|
+
"QDialogPositionOptions": "type QDialogPositionOptions = \"default\" | \"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
13
|
+
"QDrawerBehaviorOptions": "type QDrawerBehaviorOptions = \"default\" | \"desktop\" | \"mobile\"",
|
|
14
|
+
"QDrawerSideOptions": "type QDrawerSideOptions = \"left\" | \"right\"",
|
|
15
|
+
"QIconSizeOptions": "type QIconSizeOptions = Q.Size | Q.CssValue | number",
|
|
16
|
+
"QIconTypeOptions": "type QIconTypeOptions = \"outlined\" | \"sharp\" | \"rounded\"",
|
|
17
|
+
"QItemSectionTypes": "type QItemSectionTypes =\n | \"thumbnail\"\n | \"video\"\n | \"avatar\"\n | \"toggle\"\n | \"icon\"\n | \"trailingIcon\"\n | \"trailingText\"\n | \"content\"",
|
|
18
|
+
"QLayoutEvents": "type QLayoutEvents = \"resize\" | \"scroll\" | \"scrollHeight\"",
|
|
19
|
+
"QLayoutViewOptions": "type QLayoutViewOptions = `${\"l\"|\"h\"}${\"h\"|\"H\"}${\"r\"|\"h\"} ${\"l\"|\"L\"}${\"p\"}${\"r\"|\"R\"} ${\"l\"|\"f\"}${\"f\"|\"F\"}${\"r\"|\"f\"}`",
|
|
20
|
+
"QSelectMultipleValue": "type QSelectMultipleValue = QSelectSingleValue[]",
|
|
21
|
+
"QSelectOption": "type QSelectOption = string | { label: string, value: string }",
|
|
22
|
+
"QSelectSingleValue": "type QSelectSingleValue = string | number",
|
|
23
|
+
"QSelectValue": "type QSelectValue = QSelectSingleValue | QSelectMultipleValue",
|
|
24
|
+
"QTableColumn": "type QTableColumn = {\n name: string\n required?: boolean;\n label: string;\n align?: \"left\" | \"center\" | \"right\";\n field: string | ((row: QTableRow) => string);\n format?: (val: string) => string;\n sortable?: boolean;\n sort?: (a: string, b: string) => number;\n};",
|
|
25
|
+
"QTableRow": "type QTableRow = {\n [key: string]: string | number\n};",
|
|
26
|
+
"QTableSort": "type QTableSort = {\n columnField: string | ((row: QTableRow) => string)\n type: \"asc\" | \"desc\";\n} | null;",
|
|
27
|
+
"QTabsVariants": "type QTabsVariants = \"primary\" | \"secondary\" | \"vertical\"",
|
|
28
|
+
"QTooltipOffset": "type QTooltipOffset = { x?: number, y?: number }",
|
|
29
|
+
"QTooltipPosition": "type QTooltipPosition =\n | \"top-left\"\n | \"top\"\n | \"top-right\"\n | \"right\"\n | \"bottom-right\"\n | \"bottom\"\n | \"bottom-left\"\n | \"left\"",
|
|
30
|
+
"VideoTypes": "type VideoTypes =\n | \"video/mp4\"\n | \"video/webm\"\n | \"video/ogg\"\n | \"video/quicktime\"\n | \"video/mpeg\"\n | \"video/3gpp\"\n | \"video/3gpp2\"\n | \"video/3gp2\""
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quaffui/quaff",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0-alpha1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"open": "vite dev --open",
|
|
7
|
-
"build": "vite build &&
|
|
7
|
+
"build": "vite build && bun run package && bun run build:css",
|
|
8
8
|
"build:css": "vite build --config vite.config.scss.ts",
|
|
9
|
+
"build:docs": "bun run build:css && svelte-kit sync && vite build",
|
|
9
10
|
"preview": "vite preview",
|
|
10
11
|
"package": "svelte-kit sync && svelte-package && publint",
|
|
11
|
-
"prepublishOnly": "
|
|
12
|
+
"prepublishOnly": "bun run build",
|
|
12
13
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
13
14
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
14
15
|
"test:unit": "vitest",
|
|
15
|
-
"lint": "prettier --plugin-
|
|
16
|
-
"format": "prettier --plugin-
|
|
17
|
-
"docgen": "
|
|
18
|
-
"
|
|
16
|
+
"lint": "prettier --plugin prettier-plugin-svelte . --check . && eslint .",
|
|
17
|
+
"format": "prettier --plugin prettier-plugin-svelte . --write . && eslint . --fix",
|
|
18
|
+
"docgen-props": "bun scripts/docgenProps.ts",
|
|
19
|
+
"colorgen": "bun scripts/colorgen.ts",
|
|
20
|
+
"docgen-snippets": "bun scripts/docgenSnippets.ts",
|
|
21
|
+
"write-version": "bun scripts/writeVersion.ts"
|
|
19
22
|
},
|
|
20
23
|
"exports": {
|
|
21
24
|
".": {
|
|
@@ -30,43 +33,45 @@
|
|
|
30
33
|
"!dist/**/*.spec.*"
|
|
31
34
|
],
|
|
32
35
|
"peerDependencies": {
|
|
33
|
-
"
|
|
36
|
+
"shiki": "^1.23.0"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@fontsource/
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@sveltejs/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint": "^
|
|
49
|
-
"eslint-
|
|
50
|
-
"eslint-plugin-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"svelte
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
39
|
+
"@fontsource/roboto": "^5.2.5",
|
|
40
|
+
"@sveltejs/adapter-static": "^3.0.8",
|
|
41
|
+
"@sveltejs/kit": "^2.21.1",
|
|
42
|
+
"@sveltejs/package": "^2.3.11",
|
|
43
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
44
|
+
"@types/prettier": "^3.0.0",
|
|
45
|
+
"@types/prismjs": "^1.26.5",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
47
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
48
|
+
"bun-types": "^1.2.13",
|
|
49
|
+
"eslint": "^9.27.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.5",
|
|
51
|
+
"eslint-plugin-import-x": "^4.12.2",
|
|
52
|
+
"eslint-plugin-svelte": "^3.8.1",
|
|
53
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
54
|
+
"estree-walker": "^3.0.3",
|
|
55
|
+
"globals": "^16.1.0",
|
|
56
|
+
"magic-string": "^0.30.17",
|
|
57
|
+
"material-symbols": "^0.31.3",
|
|
58
|
+
"prettier": "^3.5.3",
|
|
59
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
60
|
+
"publint": "^0.3.12",
|
|
61
|
+
"sass": "^1.89.0",
|
|
62
|
+
"svelte": "^5.30.2",
|
|
63
|
+
"svelte-check": "^4.2.1",
|
|
64
|
+
"svelte-eslint-parser": "^1.2.0",
|
|
65
|
+
"tslib": "^2.8.1",
|
|
66
|
+
"typescript": "^5.8.3",
|
|
67
|
+
"vite": "^6.3.5",
|
|
68
|
+
"vitest": "^3.1.3"
|
|
62
69
|
},
|
|
63
70
|
"svelte": "./dist/index.js",
|
|
64
71
|
"types": "./dist/index.d.ts",
|
|
65
72
|
"type": "module",
|
|
66
73
|
"dependencies": {
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"svelte-highlight": "^7.3.0"
|
|
71
|
-
}
|
|
74
|
+
"@material/material-color-utilities": "^0.3.0"
|
|
75
|
+
},
|
|
76
|
+
"license": "MIT"
|
|
72
77
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// QBreadcrumbs
|
|
2
|
-
.q-breadcrumbs {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
|
|
7
|
-
&__separator:first-child {
|
|
8
|
-
display: none;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// QBreadcrumbsEl
|
|
13
|
-
.q-breadcrumbs.q-breadcrumbs__el {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
|
|
17
|
-
& > .q-icon {
|
|
18
|
-
@include margin("r");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
.q-btn {
|
|
2
|
-
position: relative;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
text-decoration: none;
|
|
5
|
-
border: none;
|
|
6
|
-
font-family: inherit;
|
|
7
|
-
outline: inherit;
|
|
8
|
-
box-sizing: content-box;
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
height: 2.5rem;
|
|
13
|
-
min-width: 2.5rem;
|
|
14
|
-
font-size: 0.875rem;
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
color: var(--on-primary);
|
|
17
|
-
padding: 0 1.5rem;
|
|
18
|
-
background-color: var(--primary);
|
|
19
|
-
margin: 0 0.5rem;
|
|
20
|
-
border-radius: 1.25rem;
|
|
21
|
-
transition:
|
|
22
|
-
var(--speed3) transform,
|
|
23
|
-
var(--speed3) border-radius,
|
|
24
|
-
var(--speed3) padding;
|
|
25
|
-
user-select: none;
|
|
26
|
-
gap: 1rem;
|
|
27
|
-
line-height: normal;
|
|
28
|
-
@extend .elevate-sm-bottom;
|
|
29
|
-
@extend .ripple;
|
|
30
|
-
|
|
31
|
-
$sizeMap: (
|
|
32
|
-
"sm": -1,
|
|
33
|
-
"lg": 1,
|
|
34
|
-
"xl": 2,
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
@each $size, $val in $sizeMap {
|
|
38
|
-
&.q-btn--#{$size} {
|
|
39
|
-
height: 2.5rem + 0.5 * $val;
|
|
40
|
-
min-width: 2.5rem + 0.5 * $val;
|
|
41
|
-
border-radius: 1.25rem + 0.25 * $val;
|
|
42
|
-
font-size: 1rem + 0.125 * $val;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.q-btn[aria-disabled] {
|
|
47
|
-
@extend .disabled;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.q-btn--outlined {
|
|
51
|
-
@include transparent($ripple: true);
|
|
52
|
-
@include border(var(--primary));
|
|
53
|
-
color: var(--primary);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.q-btn--unelevated {
|
|
57
|
-
@extend .elevate-none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.q-btn--flat {
|
|
61
|
-
@include transparent($ripple: true);
|
|
62
|
-
@extend .elevate-none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.q-btn--rectangle {
|
|
66
|
-
border-radius: 0.5rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.q-btn--round {
|
|
70
|
-
width: 2.5rem;
|
|
71
|
-
height: 2.5rem;
|
|
72
|
-
border-radius: 50%;
|
|
73
|
-
padding: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
& > :is(.q-icon, .q-circular-progress) {
|
|
77
|
-
margin: 0 -0.5rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@include btn-image;
|
|
81
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// QCard
|
|
2
|
-
.q-card {
|
|
3
|
-
display: block;
|
|
4
|
-
border-radius: 0.75rem;
|
|
5
|
-
transition:
|
|
6
|
-
var(--speed-3) transform,
|
|
7
|
-
var(--speed-3) padding,
|
|
8
|
-
var(--speed-3) border-radius;
|
|
9
|
-
@include padding("a", "md");
|
|
10
|
-
@extend .elevate-sm-bottom;
|
|
11
|
-
|
|
12
|
-
&.q-card--bordered {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
@include border();
|
|
15
|
-
@extend .elevate-none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.q-card--flat {
|
|
19
|
-
@extend .elevate-none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.q-card--rounded {
|
|
23
|
-
border-radius: 2rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
& > .q-card__title {
|
|
27
|
-
@include margin("b");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// QCardSection
|
|
32
|
-
.q-card > .q-card__section {
|
|
33
|
-
@include padding;
|
|
34
|
-
|
|
35
|
-
&.q-card__section--horizontal {
|
|
36
|
-
@extend .row;
|
|
37
|
-
border-radius: 0;
|
|
38
|
-
|
|
39
|
-
&:not(.q-card__title + .q-card__section) {
|
|
40
|
-
@include margin("t");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// QCardActions
|
|
46
|
-
.q-card > .q-card__actions {
|
|
47
|
-
display: flex;
|
|
48
|
-
|
|
49
|
-
&.q-card__actions--vertical {
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:not(.q-card__title + .q-card__actions) {
|
|
54
|
-
@include margin("t");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// QChip
|
|
2
|
-
.q-chip {
|
|
3
|
-
box-sizing: content-box;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
height: 2.5rem;
|
|
8
|
-
min-width: 2.5rem;
|
|
9
|
-
font-size: 0.875rem;
|
|
10
|
-
font-weight: 500;
|
|
11
|
-
background-color: var(--secondary);
|
|
12
|
-
color: var(--on-secondary);
|
|
13
|
-
text-transform: none;
|
|
14
|
-
border-radius: 0.5em;
|
|
15
|
-
transition:
|
|
16
|
-
var(--speed3) transform,
|
|
17
|
-
var(--speed3) border-radius,
|
|
18
|
-
var(--speed3) padding;
|
|
19
|
-
line-height: normal;
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
border: none;
|
|
23
|
-
|
|
24
|
-
@extend .ripple;
|
|
25
|
-
@extend .no-select;
|
|
26
|
-
@include padding("x", "md");
|
|
27
|
-
@include margin("x");
|
|
28
|
-
@include gap("md");
|
|
29
|
-
@include btn-image("chip");
|
|
30
|
-
|
|
31
|
-
&.q-chip--sm {
|
|
32
|
-
height: 2rem;
|
|
33
|
-
min-width: 2rem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.q-chip--lg {
|
|
37
|
-
height: 3rem;
|
|
38
|
-
min-width: 3rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.q-chip--bordered {
|
|
42
|
-
@include transparent($ripple: true);
|
|
43
|
-
@include border(var(--secondary));
|
|
44
|
-
color: var(--secondary);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.q-chip--rounded {
|
|
48
|
-
border-radius: 1.25rem;
|
|
49
|
-
|
|
50
|
-
&.q-chip--sm {
|
|
51
|
-
border-radius: 1rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.q-chip--lg {
|
|
55
|
-
border-radius: 1.5rem;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.q-chip--filled {
|
|
60
|
-
background-color: var(--secondary-container);
|
|
61
|
-
color: var(--on-secondary-container);
|
|
62
|
-
border: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.q-chip--vertical {
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
height: auto;
|
|
68
|
-
max-height: none;
|
|
69
|
-
|
|
70
|
-
@include padding("y");
|
|
71
|
-
@include gap("xs");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.q-chip[aria-disabled="true"] {
|
|
75
|
-
@extend .disabled;
|
|
76
|
-
&.q-chip--bordered {
|
|
77
|
-
border-color: var(--on-surface);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// QChip icons
|
|
83
|
-
.q-chip > .q-icon {
|
|
84
|
-
--size: 1.25rem;
|
|
85
|
-
margin-inline: -0.5rem;
|
|
86
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
.q-drawer {
|
|
2
|
-
z-index: 2;
|
|
3
|
-
position: absolute;
|
|
4
|
-
top: 0;
|
|
5
|
-
right: auto;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
left: auto;
|
|
8
|
-
height: 100%;
|
|
9
|
-
transition:
|
|
10
|
-
all var(--speed3),
|
|
11
|
-
background-color 0s;
|
|
12
|
-
overflow: auto;
|
|
13
|
-
padding: 8px;
|
|
14
|
-
|
|
15
|
-
&.fixed {
|
|
16
|
-
position: fixed;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.left {
|
|
20
|
-
left: 0px;
|
|
21
|
-
transform: translate(-100%);
|
|
22
|
-
width: var(--left-drawer-width);
|
|
23
|
-
&.bordered {
|
|
24
|
-
border-right: 0.0625rem solid var(--outline);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.right {
|
|
29
|
-
right: 0px;
|
|
30
|
-
transform: translate(100%);
|
|
31
|
-
width: var(--right-drawer-width);
|
|
32
|
-
|
|
33
|
-
&.bordered {
|
|
34
|
-
border-left: 0.0625rem solid var(--outline);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.active {
|
|
39
|
-
transform: translate(0);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.offset {
|
|
43
|
-
&-top {
|
|
44
|
-
top: var(--header-height);
|
|
45
|
-
height: calc(100% - var(--header-height));
|
|
46
|
-
|
|
47
|
-
&.offset-bottom {
|
|
48
|
-
height: calc(100% - var(--header-height) - var(--footer-height));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
&-bottom {
|
|
52
|
-
bottom: var(--footer-height);
|
|
53
|
-
height: calc(100% - var(--footer-height));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|