@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,27 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { HTMLAttributes, HTMLImgAttributes } from "svelte/elements";
|
|
2
|
+
import type { MaterialSymbol } from "material-symbols";
|
|
3
|
+
export type QIconSizeOptions = Q.Size | Q.CssValue | number;
|
|
3
4
|
export type QIconTypeOptions = "outlined" | "sharp" | "rounded";
|
|
4
|
-
export interface QIconProps extends
|
|
5
|
+
export interface QIconProps extends HTMLAttributes<HTMLElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The size of the icon. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
7
8
|
* @default md
|
|
8
9
|
*/
|
|
9
|
-
size
|
|
10
|
+
size?: QIconSizeOptions;
|
|
10
11
|
/**
|
|
11
12
|
* The type of the icon.
|
|
12
13
|
* @default outlined
|
|
13
14
|
*/
|
|
14
|
-
type
|
|
15
|
+
type?: QIconTypeOptions;
|
|
15
16
|
/**
|
|
16
17
|
* The name of the Material Symbols icon.
|
|
17
18
|
* @default undefined
|
|
18
19
|
*/
|
|
19
|
-
name?: string
|
|
20
|
+
name?: MaterialSymbol | `img:${string}`;
|
|
20
21
|
/**
|
|
21
22
|
* Determines whether the icon should be filled.
|
|
22
23
|
* @default false
|
|
23
24
|
*/
|
|
24
|
-
filled
|
|
25
|
+
filled?: boolean;
|
|
25
26
|
/**
|
|
26
27
|
* The SVG content for the icon.
|
|
27
28
|
* @default undefined
|
|
@@ -36,7 +37,7 @@ export interface QIconProps extends NativeProps {
|
|
|
36
37
|
* Additional attributes for the image element when using the `img` prop, as for example the "alt" attribute.
|
|
37
38
|
* @default {}
|
|
38
39
|
*/
|
|
39
|
-
imgAttributes
|
|
40
|
+
imgAttributes?: HTMLImgAttributes;
|
|
40
41
|
/**
|
|
41
42
|
* The color of the icon.
|
|
42
43
|
* @default undefined
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import QAvatar from "./avatar/QAvatar.svelte";
|
|
2
|
+
import QBreadcrumbs from "./breadcrumbs/QBreadcrumbs.svelte";
|
|
3
|
+
import QBreadcrumbsEl from "./breadcrumbs/QBreadcrumbsEl.svelte";
|
|
2
4
|
import QBtn from "./button/QBtn.svelte";
|
|
3
5
|
import QCard from "./card/QCard.svelte";
|
|
4
6
|
import QCardSection from "./card/QCardSection.svelte";
|
|
5
7
|
import QCardActions from "./card/QCardActions.svelte";
|
|
6
8
|
import QCheckbox from "./checkbox/QCheckbox.svelte";
|
|
7
9
|
import QChip from "./chip/QChip.svelte";
|
|
10
|
+
import QCircularProgress from "./progress/QCircularProgress.svelte";
|
|
8
11
|
import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
9
12
|
import QDialog from "./dialog/QDialog.svelte";
|
|
10
13
|
import QDrawer from "./drawer/QDrawer.svelte";
|
|
@@ -24,8 +27,8 @@ import QSeparator from "./separator/QSeparator.svelte";
|
|
|
24
27
|
import QTabs from "./tabs/QTabs.svelte";
|
|
25
28
|
import QTab from "./tabs/QTab.svelte";
|
|
26
29
|
import QTable from "./table/QTable.svelte";
|
|
27
|
-
import
|
|
30
|
+
import QSwitch from "./switch/QSwitch.svelte";
|
|
28
31
|
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
29
32
|
import QToolbarTitle from "./toolbar/QToolbarTitle.svelte";
|
|
30
33
|
import QTooltip from "./tooltip/QTooltip.svelte";
|
|
31
|
-
export { QAvatar, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCodeBlock, QDialog, QDrawer, QFooter, QHeader, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable,
|
|
34
|
+
export { QAvatar, QBreadcrumbs, QBreadcrumbsEl, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCircularProgress, QCodeBlock, QDialog, QDrawer, QFooter, QHeader, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable, QSwitch, QToolbar, QToolbarTitle, QTooltip, };
|
package/dist/components/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import QAvatar from "./avatar/QAvatar.svelte";
|
|
2
|
+
import QBreadcrumbs from "./breadcrumbs/QBreadcrumbs.svelte";
|
|
3
|
+
import QBreadcrumbsEl from "./breadcrumbs/QBreadcrumbsEl.svelte";
|
|
2
4
|
import QBtn from "./button/QBtn.svelte";
|
|
3
5
|
import QCard from "./card/QCard.svelte";
|
|
4
6
|
import QCardSection from "./card/QCardSection.svelte";
|
|
5
7
|
import QCardActions from "./card/QCardActions.svelte";
|
|
6
8
|
import QCheckbox from "./checkbox/QCheckbox.svelte";
|
|
7
9
|
import QChip from "./chip/QChip.svelte";
|
|
10
|
+
import QCircularProgress from "./progress/QCircularProgress.svelte";
|
|
8
11
|
import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
9
12
|
import QDialog from "./dialog/QDialog.svelte";
|
|
10
13
|
import QDrawer from "./drawer/QDrawer.svelte";
|
|
@@ -24,8 +27,8 @@ import QSeparator from "./separator/QSeparator.svelte";
|
|
|
24
27
|
import QTabs from "./tabs/QTabs.svelte";
|
|
25
28
|
import QTab from "./tabs/QTab.svelte";
|
|
26
29
|
import QTable from "./table/QTable.svelte";
|
|
27
|
-
import
|
|
30
|
+
import QSwitch from "./switch/QSwitch.svelte";
|
|
28
31
|
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
29
32
|
import QToolbarTitle from "./toolbar/QToolbarTitle.svelte";
|
|
30
33
|
import QTooltip from "./tooltip/QTooltip.svelte";
|
|
31
|
-
export { QAvatar, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCodeBlock, QDialog, QDrawer, QFooter, QHeader, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable,
|
|
34
|
+
export { QAvatar, QBreadcrumbs, QBreadcrumbsEl, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCircularProgress, QCodeBlock, QDialog, QDrawer, QFooter, QHeader, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable, QSwitch, QToolbar, QToolbarTitle, QTooltip, };
|
|
@@ -1,81 +1,115 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
throw new Error("unexpected to not have element");
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { QEvent } from "../../utils";
|
|
3
|
+
|
|
4
|
+
type QInputFocusEvent = QEvent<FocusEvent, HTMLDivElement>;
|
|
5
|
+
|
|
6
|
+
let focus = $state(false);
|
|
7
|
+
|
|
8
|
+
let snippetPrependWidth = $state(0);
|
|
9
|
+
|
|
10
|
+
import type { QInputProps } from "../input/props";
|
|
11
|
+
|
|
12
|
+
let {
|
|
13
|
+
dense = false,
|
|
14
|
+
disable = false,
|
|
15
|
+
error = false,
|
|
16
|
+
errorMessage = undefined,
|
|
17
|
+
filled = false,
|
|
18
|
+
hint = undefined,
|
|
19
|
+
label = undefined,
|
|
20
|
+
outlined = false,
|
|
21
|
+
rounded = false,
|
|
22
|
+
before = undefined,
|
|
23
|
+
prepend = undefined,
|
|
24
|
+
append = undefined,
|
|
25
|
+
after = undefined,
|
|
26
|
+
value = $bindable(),
|
|
27
|
+
...props
|
|
28
|
+
}: QInputProps = $props();
|
|
29
|
+
|
|
30
|
+
const active = $derived(value || focus);
|
|
31
|
+
|
|
32
|
+
function onFocus(e: QInputFocusEvent) {
|
|
33
|
+
focus = true;
|
|
34
|
+
props.onfocus?.(e);
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (isBorder && label2) {
|
|
42
|
-
const labelWidth = textWidth(label2, "0.75rem Arial");
|
|
43
|
-
let width = active ? labelWidth : Math.round(labelWidth / 1.33);
|
|
44
|
-
width = width / 16;
|
|
45
|
-
const start = rounded ? 1.25 : 0.75;
|
|
46
|
-
const end = width + start + 0.5;
|
|
47
|
-
input.style.clipPath = `polygon(0% 0%, ${start}rem 0%, ${start}rem 0.5rem, ${end}rem 0.5rem, ${end}rem 0%, 100% 0%, 100% 100%, 0% 100%)`;
|
|
48
|
-
} else
|
|
49
|
-
input.style.clipPath = "";
|
|
50
|
-
active = true;
|
|
51
|
-
} else {
|
|
52
|
-
active = false;
|
|
53
|
-
input.style.clipPath = "";
|
|
36
|
+
|
|
37
|
+
function onBlur(e: QInputFocusEvent) {
|
|
38
|
+
focus = false;
|
|
39
|
+
props.onblur?.(e);
|
|
54
40
|
}
|
|
55
|
-
|
|
41
|
+
|
|
42
|
+
// q-field here, q-input in classes
|
|
56
43
|
</script>
|
|
57
44
|
|
|
58
|
-
<div
|
|
59
|
-
|
|
45
|
+
<div
|
|
46
|
+
{...props}
|
|
47
|
+
class={[
|
|
48
|
+
"q-field",
|
|
49
|
+
props.class,
|
|
50
|
+
"q-input",
|
|
51
|
+
!outlined && !rounded && !filled && "q-field--default",
|
|
52
|
+
outlined && "q-field--outlined",
|
|
53
|
+
rounded && "q-field--rounded",
|
|
54
|
+
filled && "q-field--filled",
|
|
55
|
+
(outlined || rounded) && "q-field--has-border",
|
|
56
|
+
dense && "q-field--dense",
|
|
57
|
+
active && "q-field--active",
|
|
58
|
+
focus && "q-field--focus",
|
|
59
|
+
label && "q-field--label",
|
|
60
|
+
!!append && "q-field--snippet-append",
|
|
61
|
+
!!prepend && "q-field--snippet-prepend",
|
|
62
|
+
disable && "q-field--disable",
|
|
63
|
+
error && "q-field--error",
|
|
64
|
+
]}
|
|
65
|
+
style:--snippet-prepend-width="{snippetPrependWidth}px"
|
|
66
|
+
aria-disabled={disable || undefined}
|
|
67
|
+
data-quaff
|
|
68
|
+
>
|
|
69
|
+
{#if before}
|
|
70
|
+
<div class="q-field__snippet-before">
|
|
71
|
+
{@render before()}
|
|
72
|
+
</div>
|
|
73
|
+
{/if}
|
|
60
74
|
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
<div class="q-field__inner">
|
|
76
|
+
<label class="q-field__wrapper">
|
|
77
|
+
{#if prepend}
|
|
78
|
+
<div
|
|
79
|
+
class="q-field__snippet-prepend"
|
|
80
|
+
bind:clientWidth={snippetPrependWidth}
|
|
81
|
+
>
|
|
82
|
+
{@render prepend()}
|
|
83
|
+
</div>
|
|
84
|
+
{/if}
|
|
85
|
+
<input
|
|
86
|
+
class="q-field__input"
|
|
87
|
+
bind:value
|
|
88
|
+
placeholder=""
|
|
89
|
+
onfocus={onFocus}
|
|
90
|
+
onblur={onBlur}
|
|
91
|
+
disabled={disable}
|
|
92
|
+
tabindex={disable === true ? -1 : 0}
|
|
93
|
+
/>
|
|
94
|
+
<span class="q-field__label">{label}</span>
|
|
69
95
|
|
|
70
|
-
|
|
96
|
+
{#if append}
|
|
97
|
+
<div class="q-field__snippet-append">
|
|
98
|
+
{@render append()}
|
|
99
|
+
</div>
|
|
100
|
+
{/if}
|
|
101
|
+
</label>
|
|
71
102
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
103
|
+
{#if error && errorMessage}
|
|
104
|
+
<div class="q-field__error">{errorMessage}</div>
|
|
105
|
+
{:else if hint}
|
|
106
|
+
<div class="q-field__hint">{hint}</div>
|
|
107
|
+
{/if}
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
{#if after}
|
|
111
|
+
<div class="q-field__snippet-after">
|
|
112
|
+
{@render after()}
|
|
113
|
+
</div>
|
|
80
114
|
{/if}
|
|
81
115
|
</div>
|
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { QInputProps } from "./props";
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
bordered?: boolean | undefined;
|
|
7
|
-
dense?: QInputProps["dense"];
|
|
8
|
-
disable?: boolean | undefined;
|
|
9
|
-
error?: boolean | undefined;
|
|
10
|
-
errorMessage?: QInputProps["errorMessage"];
|
|
11
|
-
filled?: boolean | undefined;
|
|
12
|
-
hint?: QInputProps["hint"];
|
|
13
|
-
label?: QInputProps["label"];
|
|
14
|
-
outlined?: boolean | undefined;
|
|
15
|
-
rounded?: boolean | undefined;
|
|
16
|
-
value: QInputProps["value"];
|
|
17
|
-
class?: string | undefined;
|
|
18
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
19
4
|
events: {
|
|
20
5
|
[evt: string]: CustomEvent<any>;
|
|
21
6
|
};
|
|
22
|
-
slots: {
|
|
23
|
-
prepend: {};
|
|
24
|
-
append: {};
|
|
25
|
-
};
|
|
7
|
+
slots: {};
|
|
26
8
|
};
|
|
27
9
|
type QInputProps_ = typeof __propDef.props;
|
|
28
10
|
export { QInputProps_ as QInputProps };
|
|
29
11
|
export type QInputEvents = typeof __propDef.events;
|
|
30
12
|
export type QInputSlots = typeof __propDef.slots;
|
|
31
|
-
export default class QInput extends
|
|
13
|
+
export default class QInput extends SvelteComponentTyped<QInputProps_, QInputEvents, QInputSlots> {
|
|
32
14
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { QComponentDocs } from "../../utils
|
|
2
|
-
export declare
|
|
1
|
+
import type { QComponentDocs } from "../../utils";
|
|
2
|
+
export declare const QInputDocs: QComponentDocs;
|
|
@@ -1,76 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { QInputDocsProps, QInputDocsSnippets } from "./docs.props";
|
|
2
|
+
export const QInputDocs = {
|
|
2
3
|
name: "QInput",
|
|
3
|
-
description: "QInput is a form component that allows users to input text. It supports different visual styles such as
|
|
4
|
+
description: "QInput is a form component that allows users to input text. It supports different visual styles such as filled, outlined, and rounded, and it can also display hint text and custom error messages.",
|
|
4
5
|
docs: {
|
|
5
|
-
props:
|
|
6
|
-
|
|
7
|
-
name: "bordered",
|
|
8
|
-
type: "boolean",
|
|
9
|
-
default: false,
|
|
10
|
-
description: "Whether the input component has a border.",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: "disable",
|
|
14
|
-
type: "boolean",
|
|
15
|
-
default: false,
|
|
16
|
-
description: "Whether the input component is disabled.",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: "error",
|
|
20
|
-
type: "boolean",
|
|
21
|
-
default: false,
|
|
22
|
-
description: "Whether the input component is in an error state.",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: "errorMessage",
|
|
26
|
-
type: "string",
|
|
27
|
-
optional: true,
|
|
28
|
-
description: "Custom error message to show when the input component is in an error state.",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "filled",
|
|
32
|
-
type: "boolean",
|
|
33
|
-
default: false,
|
|
34
|
-
description: "Whether the input component has a filled style.",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: "hint",
|
|
38
|
-
type: "string",
|
|
39
|
-
optional: true,
|
|
40
|
-
description: "Hint text to show under the input component.",
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "label",
|
|
44
|
-
type: "string",
|
|
45
|
-
optional: true,
|
|
46
|
-
description: "Label for the input component.",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: "outlined",
|
|
50
|
-
type: "boolean",
|
|
51
|
-
default: false,
|
|
52
|
-
description: "Whether the input component has an outlined style.",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "rounded",
|
|
56
|
-
type: "boolean",
|
|
57
|
-
default: false,
|
|
58
|
-
description: "Whether the input component has rounded corners.",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: "dense",
|
|
62
|
-
type: "boolean",
|
|
63
|
-
optional: true,
|
|
64
|
-
description: "Whether the input component has a smaller (dense) size.",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "value",
|
|
68
|
-
type: "string",
|
|
69
|
-
default: "",
|
|
70
|
-
description: "Current value of the input component.",
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
slots: [],
|
|
6
|
+
props: QInputDocsProps,
|
|
7
|
+
snippets: QInputDocsSnippets,
|
|
74
8
|
methods: [],
|
|
75
9
|
events: [
|
|
76
10
|
{
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
optional: boolean;
|
|
5
|
-
clickableType: boolean;
|
|
6
|
-
description: string;
|
|
7
|
-
default: string;
|
|
8
|
-
}[];
|
|
1
|
+
import { ParsedProp, ParsedSnippet } from "../../../../docgen/props/parseInterface";
|
|
2
|
+
export declare const QInputDocsProps: ParsedProp[];
|
|
3
|
+
export declare const QInputDocsSnippets: ParsedSnippet[];
|
|
@@ -1,90 +1,162 @@
|
|
|
1
|
+
// AUTO GENERATED FILE - DO NOT MODIFY OR DELETE
|
|
2
|
+
// @quaffHash 5222eb8b860240bbbd730ff3eef425fd
|
|
1
3
|
export const QInputDocsProps = [
|
|
2
4
|
{
|
|
3
|
-
|
|
4
|
-
type: "boolean",
|
|
5
|
-
optional: false,
|
|
6
|
-
clickableType: false,
|
|
7
|
-
description: "",
|
|
8
|
-
default: "",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
name: "dense",
|
|
12
|
-
type: "boolean",
|
|
5
|
+
isArray: false,
|
|
13
6
|
optional: true,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
isSnippet: false,
|
|
8
|
+
name: "dense",
|
|
9
|
+
type: {
|
|
10
|
+
name: "boolean",
|
|
11
|
+
isClickable: false,
|
|
12
|
+
},
|
|
13
|
+
description: "Makes the input component more compact.",
|
|
14
|
+
default: "false",
|
|
17
15
|
},
|
|
18
16
|
{
|
|
17
|
+
isArray: false,
|
|
18
|
+
optional: true,
|
|
19
|
+
isSnippet: false,
|
|
19
20
|
name: "disable",
|
|
20
|
-
type:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
type: {
|
|
22
|
+
name: "boolean",
|
|
23
|
+
isClickable: false,
|
|
24
|
+
},
|
|
25
|
+
description: "Disables the input, preventing user interaction.",
|
|
26
|
+
default: "false",
|
|
25
27
|
},
|
|
26
28
|
{
|
|
29
|
+
isArray: false,
|
|
30
|
+
optional: true,
|
|
31
|
+
isSnippet: false,
|
|
27
32
|
name: "error",
|
|
28
|
-
type:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
type: {
|
|
34
|
+
name: "boolean",
|
|
35
|
+
isClickable: false,
|
|
36
|
+
},
|
|
37
|
+
description: "Indicates an error state for the input.",
|
|
38
|
+
default: "false",
|
|
33
39
|
},
|
|
34
40
|
{
|
|
35
|
-
|
|
36
|
-
type: "string",
|
|
41
|
+
isArray: false,
|
|
37
42
|
optional: true,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
isSnippet: false,
|
|
44
|
+
name: "errorMessage",
|
|
45
|
+
type: {
|
|
46
|
+
name: "string",
|
|
47
|
+
isClickable: false,
|
|
48
|
+
},
|
|
49
|
+
description: "Message to display when the input is in an error state. Overrides the hint prop when the input is in an error state.",
|
|
50
|
+
default: "undefined",
|
|
41
51
|
},
|
|
42
52
|
{
|
|
53
|
+
isArray: false,
|
|
54
|
+
optional: true,
|
|
55
|
+
isSnippet: false,
|
|
43
56
|
name: "filled",
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
type: {
|
|
58
|
+
name: "boolean",
|
|
59
|
+
isClickable: false,
|
|
60
|
+
},
|
|
61
|
+
description: "Applies a filled background style to the input.",
|
|
62
|
+
default: "false",
|
|
49
63
|
},
|
|
50
64
|
{
|
|
51
|
-
|
|
52
|
-
type: "string",
|
|
65
|
+
isArray: false,
|
|
53
66
|
optional: true,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
isSnippet: false,
|
|
68
|
+
name: "hint",
|
|
69
|
+
type: {
|
|
70
|
+
name: "string",
|
|
71
|
+
isClickable: false,
|
|
72
|
+
},
|
|
73
|
+
description: "Helper text displayed below the input. When the input is in an error state, the helper text will be overwritten by the error message.",
|
|
74
|
+
default: "undefined",
|
|
57
75
|
},
|
|
58
76
|
{
|
|
59
|
-
|
|
60
|
-
type: "string",
|
|
77
|
+
isArray: false,
|
|
61
78
|
optional: true,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
79
|
+
isSnippet: false,
|
|
80
|
+
name: "label",
|
|
81
|
+
type: {
|
|
82
|
+
name: "string",
|
|
83
|
+
isClickable: false,
|
|
84
|
+
},
|
|
85
|
+
description: "Label text for the input field.",
|
|
86
|
+
default: "undefined",
|
|
65
87
|
},
|
|
66
88
|
{
|
|
89
|
+
isArray: false,
|
|
90
|
+
optional: true,
|
|
91
|
+
isSnippet: false,
|
|
67
92
|
name: "outlined",
|
|
68
|
-
type:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
93
|
+
type: {
|
|
94
|
+
name: "boolean",
|
|
95
|
+
isClickable: false,
|
|
96
|
+
},
|
|
97
|
+
description: "Applies an outlined style to the input.",
|
|
98
|
+
default: "false",
|
|
73
99
|
},
|
|
74
100
|
{
|
|
101
|
+
isArray: false,
|
|
102
|
+
optional: true,
|
|
103
|
+
isSnippet: false,
|
|
75
104
|
name: "rounded",
|
|
76
|
-
type:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
105
|
+
type: {
|
|
106
|
+
name: "boolean",
|
|
107
|
+
isClickable: false,
|
|
108
|
+
},
|
|
109
|
+
description: "Makes the sides of the input round.",
|
|
110
|
+
default: "false",
|
|
81
111
|
},
|
|
82
112
|
{
|
|
83
|
-
|
|
84
|
-
type: "string",
|
|
113
|
+
isArray: false,
|
|
85
114
|
optional: false,
|
|
86
|
-
|
|
87
|
-
|
|
115
|
+
isSnippet: false,
|
|
116
|
+
name: "value",
|
|
117
|
+
type: {
|
|
118
|
+
name: "string",
|
|
119
|
+
isClickable: false,
|
|
120
|
+
},
|
|
121
|
+
description: "Current value of the input field. This property is bindable.",
|
|
88
122
|
default: "",
|
|
89
123
|
},
|
|
90
124
|
];
|
|
125
|
+
export const QInputDocsSnippets = [
|
|
126
|
+
{
|
|
127
|
+
isArray: false,
|
|
128
|
+
optional: true,
|
|
129
|
+
isSnippet: true,
|
|
130
|
+
name: "before",
|
|
131
|
+
type: [],
|
|
132
|
+
description: "Content to be placed before the input wrapper element, usually an icon.",
|
|
133
|
+
default: "undefined",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
isArray: false,
|
|
137
|
+
optional: true,
|
|
138
|
+
isSnippet: true,
|
|
139
|
+
name: "prepend",
|
|
140
|
+
type: [],
|
|
141
|
+
description: "Content to be placed at the start of the input field, usually an icon.",
|
|
142
|
+
default: "undefined",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
isArray: false,
|
|
146
|
+
optional: true,
|
|
147
|
+
isSnippet: true,
|
|
148
|
+
name: "append",
|
|
149
|
+
type: [],
|
|
150
|
+
description: "Content to be placed at the end of the input field, usually an icon.",
|
|
151
|
+
default: "undefined",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
isArray: false,
|
|
155
|
+
optional: true,
|
|
156
|
+
isSnippet: true,
|
|
157
|
+
name: "after",
|
|
158
|
+
type: [],
|
|
159
|
+
description: "Content to be placed after the input wrapper element, usually an icon.",
|
|
160
|
+
default: "undefined",
|
|
161
|
+
},
|
|
162
|
+
];
|