@quaffui/quaff 0.1.0-prealpha9 → 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 +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 +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 +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 +39 -0
- package/dist/components/drawer/QDrawer.svelte +138 -90
- 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 +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 +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 -113
- 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 +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 +16 -92
- 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 +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,52 +1,86 @@
|
|
|
1
|
+
// AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
|
|
2
|
+
// @quaffHash 9035e6438a832f2c4d5738500c90c221
|
|
1
3
|
export const QTabsDocsProps = [
|
|
2
4
|
{
|
|
3
|
-
|
|
4
|
-
type: "string",
|
|
5
|
+
isArray: false,
|
|
5
6
|
optional: true,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
isSnippet: false,
|
|
8
|
+
name: "value",
|
|
9
|
+
type: {
|
|
10
|
+
name: "string",
|
|
11
|
+
isClickable: false,
|
|
12
|
+
},
|
|
13
|
+
description: "Current active tab name. This property is bindable.",
|
|
14
|
+
default: "undefined",
|
|
9
15
|
},
|
|
10
16
|
{
|
|
17
|
+
isArray: false,
|
|
18
|
+
optional: true,
|
|
19
|
+
isSnippet: false,
|
|
11
20
|
name: "variant",
|
|
12
|
-
type:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
type: {
|
|
22
|
+
name: "QTabsVariants",
|
|
23
|
+
isClickable: true,
|
|
24
|
+
},
|
|
25
|
+
description: "Visual style variant of the tabs.",
|
|
26
|
+
default: '"primary"',
|
|
17
27
|
},
|
|
18
28
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
isArray: false,
|
|
30
|
+
optional: true,
|
|
31
|
+
isSnippet: false,
|
|
32
|
+
name: "noSeparator",
|
|
33
|
+
type: {
|
|
34
|
+
name: "boolean",
|
|
35
|
+
isClickable: false,
|
|
36
|
+
},
|
|
37
|
+
description: "Removes the separator line under the tabs (or to the right for vertical tabs).",
|
|
38
|
+
default: "false",
|
|
25
39
|
},
|
|
26
40
|
];
|
|
41
|
+
export const QTabsDocsSnippets = [];
|
|
27
42
|
export const QTabDocsProps = [
|
|
28
43
|
{
|
|
44
|
+
isArray: false,
|
|
45
|
+
optional: false,
|
|
46
|
+
isSnippet: false,
|
|
29
47
|
name: "name",
|
|
30
|
-
type:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
type: {
|
|
49
|
+
name: "string",
|
|
50
|
+
isClickable: false,
|
|
51
|
+
},
|
|
52
|
+
description: "Unique identifier for the tab. Used to match with QTabs' value prop.",
|
|
34
53
|
default: "",
|
|
35
54
|
},
|
|
36
55
|
{
|
|
37
|
-
|
|
38
|
-
type: "string",
|
|
56
|
+
isArray: false,
|
|
39
57
|
optional: true,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
58
|
+
isSnippet: false,
|
|
59
|
+
name: "to",
|
|
60
|
+
type: {
|
|
61
|
+
name: "string",
|
|
62
|
+
isClickable: false,
|
|
63
|
+
},
|
|
64
|
+
description: "Navigation target URL when the tab is used as a router link.\nWhen provided, the tab will render as an anchor tag.",
|
|
65
|
+
default: "undefined",
|
|
43
66
|
},
|
|
44
67
|
{
|
|
45
|
-
|
|
46
|
-
type: "string",
|
|
68
|
+
isArray: false,
|
|
47
69
|
optional: true,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
70
|
+
isSnippet: false,
|
|
71
|
+
name: "icon",
|
|
72
|
+
type: [
|
|
73
|
+
{
|
|
74
|
+
name: "MaterialSymbol",
|
|
75
|
+
isClickable: false,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "Snippet",
|
|
79
|
+
isClickable: false,
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
description: "Icon to display in the tab. Can be a Material Symbol name or a custom snippet.",
|
|
83
|
+
default: "undefined",
|
|
51
84
|
},
|
|
52
85
|
];
|
|
86
|
+
export const QTabDocsSnippets = [];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "$css/mixins";
|
|
2
|
+
|
|
1
3
|
.q-tabs {
|
|
2
4
|
position: relative;
|
|
3
5
|
display: flex;
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
overflow: auto;
|
|
8
10
|
scroll-behavior: smooth;
|
|
9
11
|
border-radius: 0;
|
|
10
|
-
border-bottom: solid 0.0625rem var(--outline);
|
|
12
|
+
border-bottom: solid 0.0625rem var(--outline-4);
|
|
11
13
|
&::-webkit-scrollbar {
|
|
12
14
|
display: none;
|
|
13
15
|
}
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
& > .q-tab {
|
|
16
18
|
position: relative;
|
|
17
19
|
box-sizing: border-box;
|
|
18
|
-
height:
|
|
20
|
+
min-height: 3rem;
|
|
19
21
|
min-width: max-content;
|
|
20
22
|
display: flex;
|
|
21
23
|
align-items: center;
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
border-radius: 0;
|
|
27
29
|
gap: 0;
|
|
28
30
|
overflow: hidden;
|
|
31
|
+
@include mixins.padding("x-md");
|
|
29
32
|
|
|
30
33
|
& .q-tab__icon {
|
|
31
34
|
margin-right: 0.25rem;
|
|
@@ -58,49 +61,58 @@
|
|
|
58
61
|
|
|
59
62
|
&.q-tabs--vertical {
|
|
60
63
|
flex-direction: column;
|
|
61
|
-
min-height: calc(var(--tab-count) * 3rem);
|
|
62
64
|
width: fit-content;
|
|
63
65
|
align-items: stretch;
|
|
64
66
|
border-bottom: unset;
|
|
65
|
-
border-right: solid 0.0625rem var(--outline);
|
|
67
|
+
border-right: solid 0.0625rem var(--outline-4);
|
|
66
68
|
|
|
67
69
|
& > .q-tab {
|
|
68
|
-
@include padding("x
|
|
70
|
+
@include mixins.padding("x-md");
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
&::after {
|
|
72
|
-
top: var(--indicator-position);
|
|
73
|
-
right: 0;
|
|
74
|
-
bottom: auto;
|
|
75
74
|
left: auto;
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
right: 0;
|
|
76
|
+
top: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
|
|
79
|
+
width: 0.125rem;
|
|
80
|
+
height: 100%;
|
|
81
|
+
|
|
82
|
+
transform-origin: top;
|
|
83
|
+
|
|
84
|
+
scale: 1 var(--indicator-size, 0);
|
|
85
|
+
translate: 0 var(--indicator-position, 0);
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
&::after {
|
|
82
90
|
content: "";
|
|
83
91
|
position: absolute;
|
|
84
|
-
|
|
85
|
-
right:
|
|
92
|
+
left: 0;
|
|
93
|
+
right: 0;
|
|
86
94
|
bottom: 0;
|
|
87
|
-
|
|
88
|
-
width:
|
|
89
|
-
height:
|
|
95
|
+
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 0.125rem;
|
|
98
|
+
|
|
90
99
|
border-radius: 0;
|
|
91
100
|
background: var(--primary);
|
|
92
|
-
transition: all 0.3s cubic-bezier(0.77, 0, 0.18, 1);
|
|
93
|
-
opacity: 0;
|
|
94
|
-
}
|
|
95
101
|
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
transform-origin: left;
|
|
103
|
+
transition:
|
|
104
|
+
scale 0.2s cubic-bezier(0.25, 0.92, 0.33, 1),
|
|
105
|
+
translate 0.2s cubic-bezier(0.25, 0.92, 0.33, 1);
|
|
106
|
+
|
|
107
|
+
scale: var(--indicator-size, 0) 1;
|
|
108
|
+
translate: var(--indicator-position, 0) 0;
|
|
98
109
|
}
|
|
99
110
|
|
|
100
111
|
&.q-tabs--primary::after {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
112
|
+
translate: var(--indicator-position, 0) 0;
|
|
113
|
+
scale: var(--indicator-size, 0) 1;
|
|
114
|
+
|
|
115
|
+
height: 0.1875rem;
|
|
116
|
+
border-radius: 0.25rem 0.25rem 0px 0px;
|
|
105
117
|
}
|
|
106
118
|
}
|
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MaterialSymbol } from "material-symbols";
|
|
2
|
+
import type { Snippet } from "svelte";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
4
|
export type QTabsVariants = "primary" | "secondary" | "vertical";
|
|
3
|
-
export interface QTabsProps extends
|
|
5
|
+
export interface QTabsProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Current active tab name. This property is bindable.
|
|
8
|
+
*
|
|
9
|
+
* @default undefined
|
|
10
|
+
*/
|
|
4
11
|
value?: string;
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Visual style variant of the tabs.
|
|
14
|
+
*
|
|
15
|
+
* @default "primary"
|
|
16
|
+
*/
|
|
17
|
+
variant?: QTabsVariants;
|
|
18
|
+
/**
|
|
19
|
+
* Removes the separator line under the tabs (or to the right for vertical tabs).
|
|
20
|
+
*
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
noSeparator?: boolean;
|
|
7
24
|
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
25
|
+
export interface QTabProps extends HTMLAttributes<HTMLElement> {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the tab. Used to match with QTabs' value prop.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Navigation target URL when the tab is used as a router link.
|
|
32
|
+
* When provided, the tab will render as an anchor tag.
|
|
33
|
+
*
|
|
34
|
+
* @default undefined
|
|
35
|
+
*/
|
|
11
36
|
to?: string;
|
|
12
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Icon to display in the tab. Can be a Material Symbol name or a custom snippet.
|
|
39
|
+
*
|
|
40
|
+
* @default undefined
|
|
41
|
+
*/
|
|
42
|
+
icon?: MaterialSymbol | Snippet;
|
|
13
43
|
}
|
|
14
|
-
export declare const QTabPropsDefaults: QTabProps;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const QTabsPropsDefaults = {
|
|
3
|
-
value: undefined,
|
|
4
|
-
variant: "primary",
|
|
5
|
-
round: false,
|
|
6
|
-
...NativePropsDefaults,
|
|
7
|
-
};
|
|
8
|
-
export const QTabPropsDefaults = {
|
|
9
|
-
name: undefined,
|
|
10
|
-
to: undefined,
|
|
11
|
-
icon: undefined,
|
|
12
|
-
...NativePropsDefaults,
|
|
13
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
+
@use "$css/mixins";
|
|
2
|
+
@use "$css/variables";
|
|
3
|
+
|
|
1
4
|
.q-toolbar {
|
|
5
|
+
@include mixins.toolbarDisplay;
|
|
6
|
+
|
|
2
7
|
width: 100%;
|
|
8
|
+
height: var(--toolbar-height);
|
|
3
9
|
padding: 0 1rem;
|
|
4
|
-
transition: all
|
|
10
|
+
transition: all variables.$speed3;
|
|
5
11
|
background-color: var(--surface);
|
|
6
12
|
|
|
7
|
-
nav {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: flex-start;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
gap: 1rem;
|
|
13
|
-
|
|
14
|
-
> * {
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
13
|
&--inset {
|
|
20
|
-
padding-left:
|
|
14
|
+
padding-left: 3.625rem;
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
&--elevated {
|
|
24
|
-
@include elevate(1, "bottom");
|
|
18
|
+
@include mixins.elevate(1, "bottom");
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
&--bordered {
|
|
28
|
-
border
|
|
22
|
+
@include mixins.border($position: "bottom");
|
|
29
23
|
}
|
|
30
24
|
}
|
|
31
25
|
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
height: !userClasses?.includes("q-header") && useSize(height).style
|
|
14
|
-
},
|
|
15
|
-
userStyles
|
|
16
|
-
);
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { QToolbarProps } from "./props";
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
inset = false,
|
|
6
|
+
border = false,
|
|
7
|
+
elevate = false,
|
|
8
|
+
height = 64,
|
|
9
|
+
children,
|
|
10
|
+
...props
|
|
11
|
+
}: QToolbarProps = $props();
|
|
17
12
|
</script>
|
|
18
13
|
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
<nav
|
|
15
|
+
{...props}
|
|
16
|
+
class={[
|
|
17
|
+
"q-toolbar",
|
|
18
|
+
props.class,
|
|
19
|
+
inset && "q-toolbar--inset",
|
|
20
|
+
elevate && "q-toolbar--elevated",
|
|
21
|
+
border && "q-toolbar--bordered",
|
|
22
|
+
]}
|
|
23
|
+
role="toolbar"
|
|
24
|
+
style:--toolbar-height="{height}px"
|
|
25
|
+
data-quaff
|
|
26
|
+
>
|
|
27
|
+
{@render children?.()}
|
|
28
|
+
</nav>
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { QToolbarProps } from "./props";
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
inset?: boolean | undefined;
|
|
7
|
-
border?: boolean | undefined;
|
|
8
|
-
elevate?: boolean | undefined;
|
|
9
|
-
height?: number | `${number}px` | `${number}%` | `${number}em` | `${number}ex` | `${number}ch` | `${number}rem` | `${number}vw` | `${number}vh` | `${number}vmin` | `${number}vmax` | undefined;
|
|
10
|
-
class?: string | undefined;
|
|
11
|
-
style?: string | undefined;
|
|
12
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
13
4
|
events: {
|
|
14
5
|
[evt: string]: CustomEvent<any>;
|
|
15
6
|
};
|
|
16
|
-
slots: {
|
|
17
|
-
default: {};
|
|
18
|
-
};
|
|
7
|
+
slots: {};
|
|
19
8
|
};
|
|
20
9
|
type QToolbarProps_ = typeof __propDef.props;
|
|
21
10
|
export { QToolbarProps_ as QToolbarProps };
|
|
22
11
|
export type QToolbarEvents = typeof __propDef.events;
|
|
23
12
|
export type QToolbarSlots = typeof __propDef.slots;
|
|
24
|
-
export default class QToolbar extends
|
|
13
|
+
export default class QToolbar extends SvelteComponentTyped<QToolbarProps_, QToolbarEvents, QToolbarSlots> {
|
|
25
14
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
classes = createClasses([shrink && "shrink", userClasses], { component: "q-toolbar-title" });
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { QToolbarTitleProps } from "./props";
|
|
3
|
+
|
|
4
|
+
let { shrink = false, children, ...props }: QToolbarTitleProps = $props();
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
|
-
<div
|
|
9
|
-
|
|
7
|
+
<div
|
|
8
|
+
{...props}
|
|
9
|
+
class={["q-toolbar-title", props.class, shrink && "q-toolbar-title--shrink"]}
|
|
10
|
+
data-quaff
|
|
11
|
+
>
|
|
12
|
+
{@render children?.()}
|
|
10
13
|
</div>
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { QToolbarTitleProps } from "./props";
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
shrink?: boolean | undefined;
|
|
7
|
-
class?: string | undefined;
|
|
8
|
-
style?: string | undefined;
|
|
9
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
10
4
|
events: {
|
|
11
5
|
[evt: string]: CustomEvent<any>;
|
|
12
6
|
};
|
|
13
|
-
slots: {
|
|
14
|
-
default: {};
|
|
15
|
-
};
|
|
7
|
+
slots: {};
|
|
16
8
|
};
|
|
17
9
|
type QToolbarTitleProps_ = typeof __propDef.props;
|
|
18
10
|
export { QToolbarTitleProps_ as QToolbarTitleProps };
|
|
19
11
|
export type QToolbarTitleEvents = typeof __propDef.events;
|
|
20
12
|
export type QToolbarTitleSlots = typeof __propDef.slots;
|
|
21
|
-
export default class QToolbarTitle extends
|
|
13
|
+
export default class QToolbarTitle extends SvelteComponentTyped<QToolbarTitleProps_, QToolbarTitleEvents, QToolbarTitleSlots> {
|
|
22
14
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { QComponentDocs } from "../../utils
|
|
2
|
-
export declare
|
|
1
|
+
import type { QComponentDocs } from "../../utils";
|
|
2
|
+
export declare const QToolbarDocs: QComponentDocs;
|
|
3
|
+
export declare const QToolbarTitleDocs: QComponentDocs;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { QToolbarDocsProps } from "./docs.props";
|
|
2
|
-
export
|
|
1
|
+
import { QToolbarDocsProps, QToolbarDocsSnippets, QToolbarTitleDocsProps, QToolbarTitleDocsSnippets, } from "./docs.props";
|
|
2
|
+
export const QToolbarDocs = {
|
|
3
3
|
name: "QToolbar",
|
|
4
4
|
description: "The Toolbar component is used to hold common actions and controls, often located at the top of an application or view.",
|
|
5
5
|
docs: {
|
|
6
6
|
props: QToolbarDocsProps,
|
|
7
|
-
|
|
7
|
+
snippets: QToolbarDocsSnippets,
|
|
8
|
+
methods: [],
|
|
9
|
+
events: [],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
export const QToolbarTitleDocs = {
|
|
13
|
+
name: "QToolbar",
|
|
14
|
+
description: "The Toolbar component is used to hold common actions and controls, often located at the top of an application or view.",
|
|
15
|
+
docs: {
|
|
16
|
+
props: QToolbarTitleDocsProps,
|
|
17
|
+
snippets: QToolbarTitleDocsSnippets,
|
|
8
18
|
methods: [],
|
|
9
19
|
events: [],
|
|
10
20
|
},
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
description: string;
|
|
7
|
-
default: string;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const QToolbarTitleDocsProps: {
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
optional: boolean;
|
|
13
|
-
clickableType: boolean;
|
|
14
|
-
description: string;
|
|
15
|
-
default: string;
|
|
16
|
-
}[];
|
|
1
|
+
import { ParsedProp, ParsedSnippet } from "../../../../docgen/props/parseInterface";
|
|
2
|
+
export declare const QToolbarDocsProps: ParsedProp[];
|
|
3
|
+
export declare const QToolbarDocsSnippets: ParsedSnippet[];
|
|
4
|
+
export declare const QToolbarTitleDocsProps: ParsedProp[];
|
|
5
|
+
export declare const QToolbarTitleDocsSnippets: ParsedSnippet[];
|
|
@@ -1,28 +1,68 @@
|
|
|
1
|
+
// AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
|
|
2
|
+
// @quaffHash 67c0dae9e280c40d9a44ca7c9d52fc6f
|
|
1
3
|
export const QToolbarDocsProps = [
|
|
2
4
|
{
|
|
5
|
+
isArray: false,
|
|
6
|
+
optional: true,
|
|
7
|
+
isSnippet: false,
|
|
3
8
|
name: "inset",
|
|
4
|
-
type:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
type: {
|
|
10
|
+
name: "boolean",
|
|
11
|
+
isClickable: false,
|
|
12
|
+
},
|
|
13
|
+
description: "Adds horizontal padding to the toolbar content.",
|
|
14
|
+
default: "false",
|
|
9
15
|
},
|
|
10
16
|
{
|
|
17
|
+
isArray: false,
|
|
18
|
+
optional: true,
|
|
19
|
+
isSnippet: false,
|
|
20
|
+
name: "border",
|
|
21
|
+
type: {
|
|
22
|
+
name: "boolean",
|
|
23
|
+
isClickable: false,
|
|
24
|
+
},
|
|
25
|
+
description: "Adds a border to the toolbar to separate it from the main content.",
|
|
26
|
+
default: "false",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
isArray: false,
|
|
30
|
+
optional: true,
|
|
31
|
+
isSnippet: false,
|
|
32
|
+
name: "elevate",
|
|
33
|
+
type: {
|
|
34
|
+
name: "boolean",
|
|
35
|
+
isClickable: false,
|
|
36
|
+
},
|
|
37
|
+
description: "Adds a shadow to the toolbar to make it appear elevated.",
|
|
38
|
+
default: "false",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
isArray: false,
|
|
42
|
+
optional: true,
|
|
43
|
+
isSnippet: false,
|
|
11
44
|
name: "height",
|
|
12
|
-
type:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
45
|
+
type: {
|
|
46
|
+
name: "number",
|
|
47
|
+
isClickable: false,
|
|
48
|
+
},
|
|
49
|
+
description: "Height of the toolbar in pixels.",
|
|
50
|
+
default: "64",
|
|
17
51
|
},
|
|
18
52
|
];
|
|
53
|
+
export const QToolbarDocsSnippets = [];
|
|
19
54
|
export const QToolbarTitleDocsProps = [
|
|
20
55
|
{
|
|
56
|
+
isArray: false,
|
|
57
|
+
optional: true,
|
|
58
|
+
isSnippet: false,
|
|
21
59
|
name: "shrink",
|
|
22
|
-
type:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
60
|
+
type: {
|
|
61
|
+
name: "boolean",
|
|
62
|
+
isClickable: false,
|
|
63
|
+
},
|
|
64
|
+
description: "Allows the title to shrink when there isn't enough space in the toolbar.",
|
|
65
|
+
default: "false",
|
|
27
66
|
},
|
|
28
67
|
];
|
|
68
|
+
export const QToolbarTitleDocsSnippets = [];
|
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface QToolbarProps extends
|
|
1
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
export interface QToolbarProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
/**
|
|
4
|
+
* Adds horizontal padding to the toolbar content.
|
|
5
|
+
*
|
|
4
6
|
* @default false
|
|
5
7
|
*/
|
|
6
|
-
inset
|
|
8
|
+
inset?: boolean;
|
|
7
9
|
/**
|
|
10
|
+
* Adds a border to the toolbar to separate it from the main content.
|
|
11
|
+
*
|
|
8
12
|
* @default false
|
|
9
13
|
*/
|
|
10
|
-
border
|
|
14
|
+
border?: boolean;
|
|
11
15
|
/**
|
|
16
|
+
* Adds a shadow to the toolbar to make it appear elevated.
|
|
17
|
+
*
|
|
12
18
|
* @default false
|
|
13
19
|
*/
|
|
14
|
-
elevate
|
|
20
|
+
elevate?: boolean;
|
|
15
21
|
/**
|
|
16
|
-
*
|
|
22
|
+
* Height of the toolbar in pixels.
|
|
23
|
+
*
|
|
24
|
+
* @default 64
|
|
17
25
|
*/
|
|
18
|
-
height
|
|
26
|
+
height?: number;
|
|
19
27
|
}
|
|
20
|
-
export interface QToolbarTitleProps extends
|
|
28
|
+
export interface QToolbarTitleProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
29
|
/**
|
|
30
|
+
* Allows the title to shrink when there isn't enough space in the toolbar.
|
|
31
|
+
*
|
|
22
32
|
* @default false
|
|
23
33
|
*/
|
|
24
|
-
shrink
|
|
34
|
+
shrink?: boolean;
|
|
25
35
|
}
|