@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,106 +1,198 @@
|
|
|
1
|
+
// AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
|
|
2
|
+
// @quaffHash 7191f3245917f98270c47f910a23c9ce
|
|
1
3
|
export const QSelectDocsProps = [
|
|
2
4
|
{
|
|
3
|
-
|
|
4
|
-
type: "string | string[] | number | number[]",
|
|
5
|
+
isArray: false,
|
|
5
6
|
optional: false,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
isSnippet: false,
|
|
8
|
+
name: "value",
|
|
9
|
+
type: {
|
|
10
|
+
name: "QSelectValue",
|
|
11
|
+
isClickable: true,
|
|
12
|
+
},
|
|
13
|
+
description: "Current value of the select. Can be a single value or an array of values when multiple is true.\nThis property is bindable.",
|
|
8
14
|
default: "",
|
|
9
15
|
},
|
|
10
16
|
{
|
|
11
|
-
|
|
12
|
-
type: "boolean",
|
|
17
|
+
isArray: false,
|
|
13
18
|
optional: true,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
isSnippet: false,
|
|
20
|
+
name: "multiple",
|
|
21
|
+
type: {
|
|
22
|
+
name: "boolean",
|
|
23
|
+
isClickable: false,
|
|
24
|
+
},
|
|
25
|
+
description: "Enables multiple selection mode.",
|
|
26
|
+
default: "false",
|
|
17
27
|
},
|
|
18
28
|
{
|
|
19
|
-
|
|
20
|
-
type: "QSelectOption[]",
|
|
29
|
+
isArray: true,
|
|
21
30
|
optional: false,
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
isSnippet: false,
|
|
32
|
+
name: "options",
|
|
33
|
+
type: {
|
|
34
|
+
name: "QSelectOption",
|
|
35
|
+
isClickable: true,
|
|
36
|
+
},
|
|
37
|
+
description: "Array of options to display in the select menu. Can be an array of strings\nor objects with label and value properties. If an object is used, the label\nwill be displayed in the dropdown and the value will be used as the selected value.",
|
|
24
38
|
default: "",
|
|
25
39
|
},
|
|
26
40
|
{
|
|
27
|
-
|
|
28
|
-
type: "boolean",
|
|
41
|
+
isArray: false,
|
|
29
42
|
optional: true,
|
|
30
|
-
|
|
31
|
-
description: "",
|
|
32
|
-
default: "",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
43
|
+
isSnippet: false,
|
|
35
44
|
name: "dense",
|
|
36
|
-
type:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
type: {
|
|
46
|
+
name: "boolean",
|
|
47
|
+
isClickable: false,
|
|
48
|
+
},
|
|
49
|
+
description: "Makes the select component more compact.",
|
|
50
|
+
default: "false",
|
|
41
51
|
},
|
|
42
52
|
{
|
|
53
|
+
isArray: false,
|
|
54
|
+
optional: true,
|
|
55
|
+
isSnippet: false,
|
|
43
56
|
name: "disable",
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
type: {
|
|
58
|
+
name: "boolean",
|
|
59
|
+
isClickable: false,
|
|
60
|
+
},
|
|
61
|
+
description: "Disables the select, preventing user interaction.",
|
|
62
|
+
default: "false",
|
|
49
63
|
},
|
|
50
64
|
{
|
|
65
|
+
isArray: false,
|
|
66
|
+
optional: true,
|
|
67
|
+
isSnippet: false,
|
|
51
68
|
name: "error",
|
|
52
|
-
type:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
type: {
|
|
70
|
+
name: "boolean",
|
|
71
|
+
isClickable: false,
|
|
72
|
+
},
|
|
73
|
+
description: "Indicates an error state for the select.",
|
|
74
|
+
default: "false",
|
|
57
75
|
},
|
|
58
76
|
{
|
|
59
|
-
|
|
60
|
-
type: "string",
|
|
77
|
+
isArray: false,
|
|
61
78
|
optional: true,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
79
|
+
isSnippet: false,
|
|
80
|
+
name: "errorMessage",
|
|
81
|
+
type: {
|
|
82
|
+
name: "string",
|
|
83
|
+
isClickable: false,
|
|
84
|
+
},
|
|
85
|
+
description: "Message to display when the select is in an error state.",
|
|
86
|
+
default: "undefined",
|
|
65
87
|
},
|
|
66
88
|
{
|
|
89
|
+
isArray: false,
|
|
90
|
+
optional: true,
|
|
91
|
+
isSnippet: false,
|
|
67
92
|
name: "filled",
|
|
68
|
-
type:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
93
|
+
type: {
|
|
94
|
+
name: "boolean",
|
|
95
|
+
isClickable: false,
|
|
96
|
+
},
|
|
97
|
+
description: "Applies a filled background style to the select.",
|
|
98
|
+
default: "false",
|
|
73
99
|
},
|
|
74
100
|
{
|
|
75
|
-
|
|
76
|
-
type: "string",
|
|
101
|
+
isArray: false,
|
|
77
102
|
optional: true,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
103
|
+
isSnippet: false,
|
|
104
|
+
name: "hint",
|
|
105
|
+
type: {
|
|
106
|
+
name: "string",
|
|
107
|
+
isClickable: false,
|
|
108
|
+
},
|
|
109
|
+
description: "Helper text displayed below the select.",
|
|
110
|
+
default: "undefined",
|
|
81
111
|
},
|
|
82
112
|
{
|
|
83
|
-
|
|
84
|
-
type: "string",
|
|
113
|
+
isArray: false,
|
|
85
114
|
optional: true,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
115
|
+
isSnippet: false,
|
|
116
|
+
name: "label",
|
|
117
|
+
type: {
|
|
118
|
+
name: "string",
|
|
119
|
+
isClickable: false,
|
|
120
|
+
},
|
|
121
|
+
description: "Label text for the select field.",
|
|
122
|
+
default: "undefined",
|
|
89
123
|
},
|
|
90
124
|
{
|
|
91
|
-
|
|
92
|
-
type: "boolean",
|
|
125
|
+
isArray: false,
|
|
93
126
|
optional: true,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
127
|
+
isSnippet: false,
|
|
128
|
+
name: "outlined",
|
|
129
|
+
type: {
|
|
130
|
+
name: "boolean",
|
|
131
|
+
isClickable: false,
|
|
132
|
+
},
|
|
133
|
+
description: "Applies an outlined style to the select.",
|
|
134
|
+
default: "false",
|
|
97
135
|
},
|
|
98
136
|
{
|
|
137
|
+
isArray: false,
|
|
138
|
+
optional: true,
|
|
139
|
+
isSnippet: false,
|
|
99
140
|
name: "rounded",
|
|
100
|
-
type:
|
|
141
|
+
type: {
|
|
142
|
+
name: "boolean",
|
|
143
|
+
isClickable: false,
|
|
144
|
+
},
|
|
145
|
+
description: "Makes the sides of the select round.",
|
|
146
|
+
default: "false",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
isArray: false,
|
|
101
150
|
optional: true,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
151
|
+
isSnippet: false,
|
|
152
|
+
name: "displayValue",
|
|
153
|
+
type: {
|
|
154
|
+
name: "string",
|
|
155
|
+
isClickable: false,
|
|
156
|
+
},
|
|
157
|
+
description: "Custom text to display in the select instead of the selected value.",
|
|
158
|
+
default: "undefined",
|
|
159
|
+
},
|
|
160
|
+
];
|
|
161
|
+
export const QSelectDocsSnippets = [
|
|
162
|
+
{
|
|
163
|
+
isArray: false,
|
|
164
|
+
optional: true,
|
|
165
|
+
isSnippet: true,
|
|
166
|
+
name: "before",
|
|
167
|
+
type: [],
|
|
168
|
+
description: "Content to be placed before the select wrapper element, usually an icon.",
|
|
169
|
+
default: "undefined",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
isArray: false,
|
|
173
|
+
optional: true,
|
|
174
|
+
isSnippet: true,
|
|
175
|
+
name: "prepend",
|
|
176
|
+
type: [],
|
|
177
|
+
description: "Content to be placed at the start of the select field, usually an icon.",
|
|
178
|
+
default: "undefined",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
isArray: false,
|
|
182
|
+
optional: true,
|
|
183
|
+
isSnippet: true,
|
|
184
|
+
name: "append",
|
|
185
|
+
type: [],
|
|
186
|
+
description: "Content to be placed at the end of the select field, before the dropdown arrow, usually an icon.",
|
|
187
|
+
default: "undefined",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
isArray: false,
|
|
191
|
+
optional: true,
|
|
192
|
+
isSnippet: true,
|
|
193
|
+
name: "after",
|
|
194
|
+
type: [],
|
|
195
|
+
description: "Content to be placed after the select wrapper element, usually an icon.",
|
|
196
|
+
default: "undefined",
|
|
105
197
|
},
|
|
106
198
|
];
|
|
@@ -1,40 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use "$css/mixins";
|
|
2
|
+
@use "$css/variables";
|
|
3
|
+
@use "$css/shared/q-field.scss";
|
|
3
4
|
|
|
5
|
+
.q-select {
|
|
4
6
|
&__option--selected {
|
|
5
7
|
color: var(--primary);
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
.q-field__wrapper,
|
|
11
|
+
.q-field__input {
|
|
9
12
|
cursor: pointer;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
&__menu {
|
|
13
|
-
@include menu;
|
|
16
|
+
@include mixins.menu;
|
|
14
17
|
opacity: 0;
|
|
15
18
|
visibility: hidden;
|
|
16
19
|
transform: scale(0.8) translateY(120%);
|
|
17
20
|
transition:
|
|
18
|
-
opacity
|
|
19
|
-
transform
|
|
20
|
-
visibility 0s
|
|
21
|
+
opacity variables.$speed2,
|
|
22
|
+
transform variables.$speed2,
|
|
23
|
+
visibility 0s variables.$speed2;
|
|
21
24
|
|
|
22
25
|
&--active {
|
|
23
26
|
opacity: 1;
|
|
24
27
|
visibility: visible;
|
|
25
28
|
transform: scale(1) translateY(100%);
|
|
26
29
|
transition:
|
|
27
|
-
opacity
|
|
28
|
-
transform
|
|
30
|
+
opacity variables.$speed2,
|
|
31
|
+
transform variables.$speed2,
|
|
29
32
|
visibility 0s 0s;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
|
|
36
|
+
&.q-field--bottom-space &__menu {
|
|
37
|
+
bottom: 1.0625rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
& &__arrow-toggle {
|
|
34
41
|
cursor: pointer;
|
|
35
42
|
|
|
36
43
|
&--has-append {
|
|
37
|
-
|
|
44
|
+
margin-left: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.q-field--disable {
|
|
49
|
+
opacity: 0.5;
|
|
50
|
+
&,
|
|
51
|
+
* {
|
|
52
|
+
cursor: not-allowed;
|
|
38
53
|
}
|
|
39
54
|
}
|
|
40
55
|
}
|
|
@@ -1,33 +1,113 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { NativeProps } from "../../utils";
|
|
2
|
+
import type { Snippet } from "svelte";
|
|
3
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
2
4
|
export type QSelectOption = string | {
|
|
3
5
|
label: string;
|
|
4
6
|
value: string;
|
|
5
7
|
};
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
+
export type QSelectValue = QSelectSingleValue | QSelectMultipleValue;
|
|
9
|
+
export type QSelectSingleValue = string | number;
|
|
10
|
+
export type QSelectMultipleValue = QSelectSingleValue[];
|
|
11
|
+
export interface QSelectProps extends NativeProps, HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
/**
|
|
13
|
+
* Current value of the select. Can be a single value or an array of values when multiple is true.
|
|
14
|
+
* This property is bindable.
|
|
15
|
+
*/
|
|
16
|
+
value: QSelectValue;
|
|
17
|
+
/**
|
|
18
|
+
* Enables multiple selection mode.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
8
22
|
multiple?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Array of options to display in the select menu. Can be an array of strings
|
|
25
|
+
* or objects with label and value properties. If an object is used, the label
|
|
26
|
+
* will be displayed in the dropdown and the value will be used as the selected value.
|
|
27
|
+
*/
|
|
9
28
|
options: QSelectOption[];
|
|
10
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Makes the select component more compact.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
11
34
|
dense?: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Disables the select, preventing user interaction.
|
|
37
|
+
*
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
disable?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates an error state for the select.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
error?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Message to display when the select is in an error state.
|
|
49
|
+
*
|
|
50
|
+
* @default undefined
|
|
51
|
+
*/
|
|
14
52
|
errorMessage?: string;
|
|
15
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Applies a filled background style to the select.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
filled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Helper text displayed below the select.
|
|
61
|
+
*
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
16
64
|
hint?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Label text for the select field.
|
|
67
|
+
*
|
|
68
|
+
* @default undefined
|
|
69
|
+
*/
|
|
17
70
|
label?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Applies an outlined style to the select.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
18
76
|
outlined?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Makes the sides of the select round.
|
|
79
|
+
*
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
19
82
|
rounded?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Custom text to display in the select instead of the selected value.
|
|
85
|
+
*
|
|
86
|
+
* @default undefined
|
|
87
|
+
*/
|
|
88
|
+
displayValue?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Content to be placed before the select wrapper element, usually an icon.
|
|
91
|
+
*
|
|
92
|
+
* @default undefined
|
|
93
|
+
*/
|
|
94
|
+
before?: Snippet;
|
|
95
|
+
/**
|
|
96
|
+
* Content to be placed at the start of the select field, usually an icon.
|
|
97
|
+
*
|
|
98
|
+
* @default undefined
|
|
99
|
+
*/
|
|
100
|
+
prepend?: Snippet;
|
|
101
|
+
/**
|
|
102
|
+
* Content to be placed at the end of the select field, before the dropdown arrow, usually an icon.
|
|
103
|
+
*
|
|
104
|
+
* @default undefined
|
|
105
|
+
*/
|
|
106
|
+
append?: Snippet;
|
|
107
|
+
/**
|
|
108
|
+
* Content to be placed after the select wrapper element, usually an icon.
|
|
109
|
+
*
|
|
110
|
+
* @default undefined
|
|
111
|
+
*/
|
|
112
|
+
after?: Snippet;
|
|
20
113
|
}
|
|
21
|
-
export declare const QSelectPropsDefaults: {
|
|
22
|
-
bordered: boolean;
|
|
23
|
-
dense: boolean;
|
|
24
|
-
disable: boolean;
|
|
25
|
-
error: boolean;
|
|
26
|
-
errorMessage: undefined;
|
|
27
|
-
filled: boolean;
|
|
28
|
-
hint: undefined;
|
|
29
|
-
label: undefined;
|
|
30
|
-
outlined: boolean;
|
|
31
|
-
rounded: boolean;
|
|
32
|
-
value: string;
|
|
33
|
-
};
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const QSelectPropsDefaults = {
|
|
3
|
-
bordered: false,
|
|
4
|
-
dense: false,
|
|
5
|
-
disable: false,
|
|
6
|
-
error: false,
|
|
7
|
-
errorMessage: undefined,
|
|
8
|
-
filled: false,
|
|
9
|
-
hint: undefined,
|
|
10
|
-
label: undefined,
|
|
11
|
-
outlined: false,
|
|
12
|
-
rounded: false,
|
|
13
|
-
value: "",
|
|
14
|
-
};
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use "$css/variables";
|
|
2
|
+
|
|
3
|
+
.q-separator__wrapper {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
opacity: 0.75;
|
|
8
|
+
|
|
9
|
+
&--inset {
|
|
10
|
+
padding: 0 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--vertical {
|
|
14
|
+
height: 100%;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
|
|
17
|
+
&.q-separator__wrapper--inset {
|
|
18
|
+
padding: 1rem 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:not(&--vertical) {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.q-separator {
|
|
28
|
+
border: none;
|
|
29
|
+
flex: 1 1 auto;
|
|
30
|
+
|
|
31
|
+
&--vertical {
|
|
32
|
+
width: var(--q-separator--size, 0.0625rem);
|
|
33
|
+
|
|
34
|
+
@each $space, $val in variables.$spaces {
|
|
35
|
+
@if $space != "none" and $space != "auto" {
|
|
36
|
+
&.q-separator__spacing--#{$space} {
|
|
37
|
+
margin-inline: $val;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:not(&--vertical) {
|
|
44
|
+
height: var(--q-separator--size, 0.0625rem);
|
|
45
|
+
|
|
46
|
+
@each $space, $val in variables.$spaces {
|
|
47
|
+
@if $space != "auto" {
|
|
48
|
+
&.q-separator__spacing--#{$space} {
|
|
49
|
+
margin-block: $val;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,63 +1,56 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$:
|
|
19
|
-
containerStyle = createStyles({
|
|
20
|
-
...insetStyle,
|
|
21
|
-
display: "flex",
|
|
22
|
-
alignItems: "center",
|
|
23
|
-
flexDirection: vertical === true ? "column" : void 0,
|
|
24
|
-
[vertical === true ? "height" : "width"]: "100%"
|
|
25
|
-
});
|
|
26
|
-
$:
|
|
27
|
-
classes = createClasses([
|
|
28
|
-
"q-separator",
|
|
29
|
-
"q-separator--" + orientationClass,
|
|
30
|
-
spacingClass,
|
|
31
|
-
color,
|
|
32
|
-
userClasses
|
|
33
|
-
]);
|
|
34
|
-
$:
|
|
35
|
-
style = createStyles(
|
|
36
|
-
{
|
|
37
|
-
...orientationStyle
|
|
38
|
-
},
|
|
39
|
-
userStyles
|
|
40
|
-
);
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useSize } from "../../composables";
|
|
3
|
+
import type { QSeparatorProps } from "./props";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
spacing = "none",
|
|
7
|
+
inset = false,
|
|
8
|
+
vertical = false,
|
|
9
|
+
color = "outline",
|
|
10
|
+
size,
|
|
11
|
+
text,
|
|
12
|
+
textAlign = vertical ? "middle" : "center",
|
|
13
|
+
...props
|
|
14
|
+
}: QSeparatorProps = $props();
|
|
15
|
+
|
|
16
|
+
const orientation = $derived(vertical ? "vertical" : "horizontal");
|
|
17
|
+
const qSize = $derived(useSize(spacing, "q-separator__spacing"));
|
|
41
18
|
</script>
|
|
42
19
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
<div
|
|
21
|
+
{...props}
|
|
22
|
+
class={[
|
|
23
|
+
"q-separator__wrapper",
|
|
24
|
+
props.class,
|
|
25
|
+
vertical && "q-separator__wrapper--vertical",
|
|
26
|
+
inset && "q-separator__wrapper--inset",
|
|
27
|
+
]}
|
|
28
|
+
data-quaff
|
|
29
|
+
>
|
|
30
|
+
{#if text}
|
|
31
|
+
{#if (vertical && textAlign !== "top") || (!vertical && textAlign !== "left")}
|
|
32
|
+
{@render hr()}
|
|
47
33
|
{/if}
|
|
34
|
+
|
|
48
35
|
<div class={vertical ? "q-py-sm" : "q-px-sm"}>{text}</div>
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
|
|
37
|
+
{#if (vertical && textAlign !== "bottom") || (!vertical && textAlign !== "right")}
|
|
38
|
+
{@render hr()}
|
|
51
39
|
{/if}
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
{/if}
|
|
40
|
+
{:else}
|
|
41
|
+
{@render hr()}
|
|
42
|
+
{/if}
|
|
43
|
+
</div>
|
|
58
44
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
45
|
+
{#snippet hr()}
|
|
46
|
+
<hr
|
|
47
|
+
class={[
|
|
48
|
+
"q-separator",
|
|
49
|
+
`bg-${color}`,
|
|
50
|
+
qSize.class,
|
|
51
|
+
vertical && "q-separator--vertical",
|
|
52
|
+
]}
|
|
53
|
+
style:--q-separator-size={size}
|
|
54
|
+
aria-orientation={orientation}
|
|
55
|
+
/>
|
|
56
|
+
{/snippet}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { QSeparatorProps } from "./props";
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
spacing?: "sm" | "md" | "lg" | "none" | undefined;
|
|
6
|
-
inset?: boolean | undefined;
|
|
7
|
-
vertical?: boolean | undefined;
|
|
8
|
-
color?: QSeparatorProps["color"];
|
|
9
|
-
size?: string | undefined;
|
|
10
|
-
text?: QSeparatorProps["text"];
|
|
11
|
-
textAlign?: "top" | "bottom" | "left" | "right" | "center" | "middle" | undefined;
|
|
12
|
-
class?: string | undefined;
|
|
13
|
-
style?: string | undefined;
|
|
14
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
15
4
|
events: {
|
|
16
5
|
[evt: string]: CustomEvent<any>;
|
|
17
6
|
};
|
|
@@ -21,5 +10,5 @@ type QSeparatorProps_ = typeof __propDef.props;
|
|
|
21
10
|
export { QSeparatorProps_ as QSeparatorProps };
|
|
22
11
|
export type QSeparatorEvents = typeof __propDef.events;
|
|
23
12
|
export type QSeparatorSlots = typeof __propDef.slots;
|
|
24
|
-
export default class QSeparator extends
|
|
13
|
+
export default class QSeparator extends SvelteComponentTyped<QSeparatorProps_, QSeparatorEvents, QSeparatorSlots> {
|
|
25
14
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { QComponentDocs } from "../../utils
|
|
2
|
-
export declare
|
|
1
|
+
import type { QComponentDocs } from "../../utils";
|
|
2
|
+
export declare const QSeparatorVerticalDocs: QComponentDocs;
|
|
3
|
+
export declare const QSeparatorHorizontalDocs: QComponentDocs;
|