@quaffui/quaff 0.1.0-prealpha
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 +9 -0
- package/README.md +43 -0
- package/dist/components/avatar/QAvatar.svelte +43 -0
- package/dist/components/avatar/QAvatar.svelte.d.ts +27 -0
- package/dist/components/avatar/docs.d.ts +2 -0
- package/dist/components/avatar/docs.js +22 -0
- package/dist/components/avatar/docs.props.d.ts +8 -0
- package/dist/components/avatar/docs.props.js +34 -0
- package/dist/components/avatar/index.scss +88 -0
- package/dist/components/avatar/props.d.ts +25 -0
- package/dist/components/avatar/props.js +1 -0
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte +18 -0
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +23 -0
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte +59 -0
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +26 -0
- package/dist/components/breadcrumbs/docs.d.ts +2 -0
- package/dist/components/breadcrumbs/docs.js +16 -0
- package/dist/components/breadcrumbs/docs.props.d.ts +16 -0
- package/dist/components/breadcrumbs/docs.props.js +84 -0
- package/dist/components/breadcrumbs/index.scss +20 -0
- package/dist/components/breadcrumbs/props.d.ts +56 -0
- package/dist/components/breadcrumbs/props.js +1 -0
- package/dist/components/button/QBtn.svelte +59 -0
- package/dist/components/button/QBtn.svelte.d.ts +32 -0
- package/dist/components/button/docs.d.ts +2 -0
- package/dist/components/button/docs.js +22 -0
- package/dist/components/button/docs.props.d.ts +8 -0
- package/dist/components/button/docs.props.js +82 -0
- package/dist/components/button/index.scss +78 -0
- package/dist/components/button/props.d.ts +54 -0
- package/dist/components/button/props.js +1 -0
- package/dist/components/card/QCard.svelte +23 -0
- package/dist/components/card/QCard.svelte.d.ts +26 -0
- package/dist/components/card/QCardActions.svelte +18 -0
- package/dist/components/card/QCardActions.svelte.d.ts +22 -0
- package/dist/components/card/QCardSection.svelte +14 -0
- package/dist/components/card/QCardSection.svelte.d.ts +23 -0
- package/dist/components/card/docs.d.ts +4 -0
- package/dist/components/card/docs.js +46 -0
- package/dist/components/card/docs.props.d.ts +24 -0
- package/dist/components/card/docs.props.js +62 -0
- package/dist/components/card/index.scss +53 -0
- package/dist/components/card/props.d.ts +44 -0
- package/dist/components/card/props.js +1 -0
- package/dist/components/checkbox/QCheckbox.svelte +14 -0
- package/dist/components/checkbox/QCheckbox.svelte.d.ts +21 -0
- package/dist/components/checkbox/docs.d.ts +2 -0
- package/dist/components/checkbox/docs.js +17 -0
- package/dist/components/checkbox/docs.props.d.ts +8 -0
- package/dist/components/checkbox/docs.props.js +26 -0
- package/dist/components/checkbox/index.scss +3 -0
- package/dist/components/checkbox/props.d.ts +17 -0
- package/dist/components/checkbox/props.js +1 -0
- package/dist/components/chip/QChip.svelte +62 -0
- package/dist/components/chip/QChip.svelte.d.ts +35 -0
- package/dist/components/chip/docs.d.ts +2 -0
- package/dist/components/chip/docs.js +30 -0
- package/dist/components/chip/docs.props.d.ts +8 -0
- package/dist/components/chip/docs.props.js +90 -0
- package/dist/components/chip/index.scss +83 -0
- package/dist/components/chip/props.d.ts +59 -0
- package/dist/components/chip/props.js +1 -0
- package/dist/components/codeBlock/QCodeBlock.svelte +71 -0
- package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +23 -0
- package/dist/components/codeBlock/docs.props.d.ts +8 -0
- package/dist/components/codeBlock/docs.props.js +34 -0
- package/dist/components/codeBlock/props.d.ts +20 -0
- package/dist/components/codeBlock/props.js +1 -0
- package/dist/components/dialog/QDialog.svelte +80 -0
- package/dist/components/dialog/QDialog.svelte.d.ts +37 -0
- package/dist/components/dialog/docs.d.ts +2 -0
- package/dist/components/dialog/docs.js +11 -0
- package/dist/components/dialog/docs.props.d.ts +16 -0
- package/dist/components/dialog/docs.props.js +148 -0
- package/dist/components/dialog/index.scss +27 -0
- package/dist/components/dialog/props.d.ts +45 -0
- package/dist/components/dialog/props.js +1 -0
- package/dist/components/drawer/QDrawer.svelte +87 -0
- package/dist/components/drawer/QDrawer.svelte.d.ts +39 -0
- package/dist/components/drawer/docs.d.ts +2 -0
- package/dist/components/drawer/docs.js +11 -0
- package/dist/components/drawer/docs.props.d.ts +8 -0
- package/dist/components/drawer/docs.props.js +106 -0
- package/dist/components/drawer/index.scss +54 -0
- package/dist/components/drawer/props.d.ts +70 -0
- package/dist/components/drawer/props.js +1 -0
- package/dist/components/footer/QFooter.svelte +14 -0
- package/dist/components/footer/QFooter.svelte.d.ts +24 -0
- package/dist/components/footer/docs.d.ts +2 -0
- package/dist/components/footer/docs.js +11 -0
- package/dist/components/footer/docs.props.d.ts +8 -0
- package/dist/components/footer/docs.props.js +34 -0
- package/dist/components/footer/index.scss +5 -0
- package/dist/components/footer/props.d.ts +23 -0
- package/dist/components/footer/props.js +1 -0
- package/dist/components/icon/QIcon.svelte +40 -0
- package/dist/components/icon/QIcon.svelte.d.ts +28 -0
- package/dist/components/icon/docs.d.ts +2 -0
- package/dist/components/icon/docs.js +11 -0
- package/dist/components/icon/docs.props.d.ts +8 -0
- package/dist/components/icon/docs.props.js +66 -0
- package/dist/components/icon/index.scss +18 -0
- package/dist/components/icon/props.d.ts +45 -0
- package/dist/components/icon/props.js +1 -0
- package/dist/components/index.d.ts +29 -0
- package/dist/components/index.js +29 -0
- package/dist/components/input/QInput.svelte +81 -0
- package/dist/components/input/QInput.svelte.d.ts +32 -0
- package/dist/components/input/docs.d.ts +2 -0
- package/dist/components/input/docs.js +83 -0
- package/dist/components/input/docs.props.d.ts +8 -0
- package/dist/components/input/docs.props.js +90 -0
- package/dist/components/input/index.scss +3 -0
- package/dist/components/input/props.d.ts +27 -0
- package/dist/components/input/props.js +13 -0
- package/dist/components/layout/QLayout.svelte +88 -0
- package/dist/components/layout/QLayout.svelte.d.ts +57 -0
- package/dist/components/layout/docs.d.ts +2 -0
- package/dist/components/layout/docs.js +11 -0
- package/dist/components/layout/docs.props.d.ts +8 -0
- package/dist/components/layout/docs.props.js +58 -0
- package/dist/components/layout/index.scss +370 -0
- package/dist/components/layout/props.d.ts +41 -0
- package/dist/components/layout/props.js +1 -0
- package/dist/components/list/QItem.svelte +60 -0
- package/dist/components/list/QItem.svelte.d.ts +34 -0
- package/dist/components/list/QItemSection.svelte +47 -0
- package/dist/components/list/QItemSection.svelte.d.ts +25 -0
- package/dist/components/list/QList.svelte +23 -0
- package/dist/components/list/QList.svelte.d.ts +36 -0
- package/dist/components/list/docs.props.d.ts +40 -0
- package/dist/components/list/docs.props.js +226 -0
- package/dist/components/list/index.scss +114 -0
- package/dist/components/list/props.d.ts +33 -0
- package/dist/components/list/props.js +25 -0
- package/dist/components/private/ContextReseter.svelte +13 -0
- package/dist/components/private/ContextReseter.svelte.d.ts +18 -0
- package/dist/components/private/QApi.svelte +142 -0
- package/dist/components/private/QApi.svelte.d.ts +17 -0
- package/dist/components/private/QDocs.svelte +66 -0
- package/dist/components/private/QDocs.svelte.d.ts +21 -0
- package/dist/components/private/QDocsSection.svelte +32 -0
- package/dist/components/private/QDocsSection.svelte.d.ts +29 -0
- package/dist/components/progress/QCircularProgress.svelte +26 -0
- package/dist/components/progress/QCircularProgress.svelte.d.ts +22 -0
- package/dist/components/progress/QLinearProgress.svelte +20 -0
- package/dist/components/progress/QLinearProgress.svelte.d.ts +22 -0
- package/dist/components/progress/docs.props.d.ts +8 -0
- package/dist/components/progress/docs.props.js +26 -0
- package/dist/components/progress/index.scss +50 -0
- package/dist/components/progress/props.d.ts +20 -0
- package/dist/components/progress/props.js +7 -0
- package/dist/components/radio/QRadio.svelte +14 -0
- package/dist/components/radio/QRadio.svelte.d.ts +22 -0
- package/dist/components/radio/docs.d.ts +2 -0
- package/dist/components/radio/docs.js +39 -0
- package/dist/components/radio/docs.props.d.ts +8 -0
- package/dist/components/radio/docs.props.js +34 -0
- package/dist/components/radio/index.scss +3 -0
- package/dist/components/radio/props.d.ts +8 -0
- package/dist/components/radio/props.js +8 -0
- package/dist/components/railbar/QRailbar.svelte +52 -0
- package/dist/components/railbar/QRailbar.svelte.d.ts +23 -0
- package/dist/components/railbar/docs.props.d.ts +8 -0
- package/dist/components/railbar/docs.props.js +26 -0
- package/dist/components/railbar/props.d.ts +7 -0
- package/dist/components/railbar/props.js +7 -0
- package/dist/components/select/QSelect.svelte +159 -0
- package/dist/components/select/QSelect.svelte.d.ts +34 -0
- package/dist/components/select/docs.d.ts +2 -0
- package/dist/components/select/docs.js +95 -0
- package/dist/components/select/docs.props.d.ts +8 -0
- package/dist/components/select/docs.props.js +106 -0
- package/dist/components/select/index.scss +34 -0
- package/dist/components/select/props.d.ts +33 -0
- package/dist/components/select/props.js +14 -0
- package/dist/components/separator/QSeparator.svelte +63 -0
- package/dist/components/separator/QSeparator.svelte.d.ts +25 -0
- package/dist/components/separator/docs.props.d.ts +16 -0
- package/dist/components/separator/docs.props.js +116 -0
- package/dist/components/separator/props.d.ts +22 -0
- package/dist/components/separator/props.js +9 -0
- package/dist/components/table/QTable.svelte +154 -0
- package/dist/components/table/QTable.svelte.d.ts +29 -0
- package/dist/components/table/docs.d.ts +2 -0
- package/dist/components/table/docs.js +11 -0
- package/dist/components/table/docs.props.d.ts +8 -0
- package/dist/components/table/docs.props.js +42 -0
- package/dist/components/table/index.scss +77 -0
- package/dist/components/table/props.d.ts +45 -0
- package/dist/components/table/props.js +1 -0
- package/dist/components/tabs/QTab.svelte +78 -0
- package/dist/components/tabs/QTab.svelte.d.ts +28 -0
- package/dist/components/tabs/QTabs.svelte +55 -0
- package/dist/components/tabs/QTabs.svelte.d.ts +23 -0
- package/dist/components/tabs/docs.props.d.ts +16 -0
- package/dist/components/tabs/docs.props.js +60 -0
- package/dist/components/tabs/index.scss +75 -0
- package/dist/components/tabs/props.d.ts +14 -0
- package/dist/components/tabs/props.js +13 -0
- package/dist/components/toggle/QToggle.svelte +35 -0
- package/dist/components/toggle/QToggle.svelte.d.ts +23 -0
- package/dist/components/toggle/docs.d.ts +2 -0
- package/dist/components/toggle/docs.js +47 -0
- package/dist/components/toggle/docs.props.d.ts +8 -0
- package/dist/components/toggle/docs.props.js +42 -0
- package/dist/components/toggle/index.scss +31 -0
- package/dist/components/toggle/props.d.ts +9 -0
- package/dist/components/toggle/props.js +9 -0
- package/dist/components/toolbar/QToolbar.svelte +39 -0
- package/dist/components/toolbar/QToolbar.svelte.d.ts +23 -0
- package/dist/components/toolbar/docs.props.d.ts +8 -0
- package/dist/components/toolbar/docs.props.js +18 -0
- package/dist/components/toolbar/index.scss +7 -0
- package/dist/components/toolbar/props.d.ts +6 -0
- package/dist/components/toolbar/props.js +6 -0
- package/dist/components/tooltip/QTooltip.svelte +15 -0
- package/dist/components/tooltip/QTooltip.svelte.d.ts +22 -0
- package/dist/components/tooltip/docs.props.d.ts +8 -0
- package/dist/components/tooltip/docs.props.js +18 -0
- package/dist/components/tooltip/index.scss +7 -0
- package/dist/components/tooltip/props.d.ts +6 -0
- package/dist/components/tooltip/props.js +6 -0
- package/dist/composables/index.d.ts +0 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-align.d.ts +8 -0
- package/dist/composables/use-align.js +12 -0
- package/dist/composables/use-index.d.ts +2 -0
- package/dist/composables/use-index.js +17 -0
- package/dist/composables/use-router-link.d.ts +18 -0
- package/dist/composables/use-router-link.js +27 -0
- package/dist/composables/use-size.d.ts +11 -0
- package/dist/composables/use-size.js +13 -0
- package/dist/css/grid.scss +65 -0
- package/dist/css/index.scss +119 -0
- package/dist/css/mixins/field.scss +430 -0
- package/dist/css/mixins/menu.scss +70 -0
- package/dist/css/mixins/selection.scss +184 -0
- package/dist/css/mixins/table.scss +36 -0
- package/dist/css/mixins.scss +135 -0
- package/dist/css/states.scss +70 -0
- package/dist/css/theme/colors.module.scss +180 -0
- package/dist/css/theme/theme.dark.scss +36 -0
- package/dist/css/theme/theme.light.scss +36 -0
- package/dist/css/theme/theme.scss +5 -0
- package/dist/css/theme/tokens.scss +266 -0
- package/dist/css/theme/typography.module.scss +150 -0
- package/dist/global.d.ts +10 -0
- package/dist/helpers/activationHandler.d.ts +9 -0
- package/dist/helpers/activationHandler.js +23 -0
- package/dist/helpers/clickOutside.d.ts +6 -0
- package/dist/helpers/clickOutside.js +34 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/stores/QTheme.d.ts +41 -0
- package/dist/stores/QTheme.js +53 -0
- package/dist/stores/Quaff.d.ts +31 -0
- package/dist/stores/Quaff.js +52 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/clipboard.js +11 -0
- package/dist/utils/colors.d.ts +10 -0
- package/dist/utils/colors.js +102 -0
- package/dist/utils/fields.d.ts +1 -0
- package/dist/utils/fields.js +14 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/props.d.ts +9 -0
- package/dist/utils/props.js +31 -0
- package/dist/utils/string.d.ts +10 -0
- package/dist/utils/string.js +78 -0
- package/dist/utils/types.d.ts +42 -0
- package/dist/utils/types.js +7 -0
- package/dist/utils/types.json +1 -0
- package/dist/utils/watchable.d.ts +2 -0
- package/dist/utils/watchable.js +22 -0
- package/package.json +66 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const QDrawerDocsProps = [
|
|
2
|
+
{
|
|
3
|
+
name: "value",
|
|
4
|
+
type: "boolean",
|
|
5
|
+
optional: true,
|
|
6
|
+
clickableType: false,
|
|
7
|
+
description: "The value indicating whether the drawer is visible or hidden.",
|
|
8
|
+
default: "true",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "side",
|
|
12
|
+
type: "QDrawerSideOptions",
|
|
13
|
+
optional: true,
|
|
14
|
+
clickableType: true,
|
|
15
|
+
description: "The side of the layout where the drawer is positioned.",
|
|
16
|
+
default: '"left"',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "width",
|
|
20
|
+
type: "number | string",
|
|
21
|
+
optional: true,
|
|
22
|
+
clickableType: true,
|
|
23
|
+
description: 'The width of the drawer. Can be specified with a CSS unit. If no unit is specified, "px" will be used.',
|
|
24
|
+
default: "300",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "breakpoint",
|
|
28
|
+
type: "number",
|
|
29
|
+
optional: true,
|
|
30
|
+
clickableType: false,
|
|
31
|
+
description: "The breakpoint at which the drawer behavior changes. (not supported yet)",
|
|
32
|
+
default: "1023",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "showIfAbove",
|
|
36
|
+
type: "boolean",
|
|
37
|
+
optional: true,
|
|
38
|
+
clickableType: false,
|
|
39
|
+
description: "Determines whether the drawer should be shown if the viewport width is above the specified breakpoint. (not supported yet)",
|
|
40
|
+
default: "false",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "behavior",
|
|
44
|
+
type: "QDrawerBehaviorOptions",
|
|
45
|
+
optional: true,
|
|
46
|
+
clickableType: true,
|
|
47
|
+
description: "The behavior of the drawer based on the viewport width. (not supported yet)",
|
|
48
|
+
default: '"default"',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "bordered",
|
|
52
|
+
type: "boolean",
|
|
53
|
+
optional: true,
|
|
54
|
+
clickableType: false,
|
|
55
|
+
description: "Determines whether the drawer has a border around it.",
|
|
56
|
+
default: "false",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "elevated",
|
|
60
|
+
type: "boolean",
|
|
61
|
+
optional: true,
|
|
62
|
+
clickableType: false,
|
|
63
|
+
description: "Determines whether the drawer has an elevated effect. (not supported yet)",
|
|
64
|
+
default: "false",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "overlay",
|
|
68
|
+
type: "boolean",
|
|
69
|
+
optional: true,
|
|
70
|
+
clickableType: false,
|
|
71
|
+
description: "Determines whether the wrawer should behave like an overlay (opening above the content) or not (pushing the content while opening).",
|
|
72
|
+
default: "false",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "persistent",
|
|
76
|
+
type: "boolean",
|
|
77
|
+
optional: true,
|
|
78
|
+
clickableType: false,
|
|
79
|
+
description: "Determines whether the drawer remains persistent, not closing on click outside.",
|
|
80
|
+
default: "false",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "noSwipeOpen",
|
|
84
|
+
type: "boolean",
|
|
85
|
+
optional: true,
|
|
86
|
+
clickableType: false,
|
|
87
|
+
description: "Determines whether swipe gestures can open the drawer. (not supported yet)",
|
|
88
|
+
default: "false",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "noSwipeClose",
|
|
92
|
+
type: "boolean",
|
|
93
|
+
optional: true,
|
|
94
|
+
clickableType: false,
|
|
95
|
+
description: "Determines whether swipe gestures can close the drawer. (not supported yet)",
|
|
96
|
+
default: "false",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "noSwipeBackdrop",
|
|
100
|
+
type: "boolean",
|
|
101
|
+
optional: true,
|
|
102
|
+
clickableType: false,
|
|
103
|
+
description: "Determines whether swipe gestures on the backdrop can close the drawer. (not supported yet)",
|
|
104
|
+
default: "false",
|
|
105
|
+
},
|
|
106
|
+
];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.q-drawer {
|
|
2
|
+
z-index: 2;
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 0;
|
|
5
|
+
right: auto;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: auto;
|
|
8
|
+
height: 100%;
|
|
9
|
+
transition: all var(--speed3), background-color 0s;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
padding: 8px;
|
|
12
|
+
|
|
13
|
+
&.fixed {
|
|
14
|
+
position: fixed;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.left {
|
|
18
|
+
left: 0px;
|
|
19
|
+
transform: translate(-100%);
|
|
20
|
+
width: var(--left-drawer-width);
|
|
21
|
+
&.bordered {
|
|
22
|
+
border-right: 0.0625rem solid var(--outline);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.right {
|
|
27
|
+
right: 0px;
|
|
28
|
+
transform: translate(100%);
|
|
29
|
+
width: var(--right-drawer-width);
|
|
30
|
+
|
|
31
|
+
&.bordered {
|
|
32
|
+
border-left: 0.0625rem solid var(--outline);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.active {
|
|
37
|
+
transform: translate(0);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.offset {
|
|
41
|
+
&-top {
|
|
42
|
+
top: var(--header-height);
|
|
43
|
+
height: calc(100% - var(--header-height));
|
|
44
|
+
|
|
45
|
+
&.offset-bottom {
|
|
46
|
+
height: calc(100% - var(--header-height) - var(--footer-height));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&-bottom {
|
|
50
|
+
bottom: var(--footer-height);
|
|
51
|
+
height: calc(100% - var(--footer-height));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
export type QDrawerSideOptions = "left" | "right";
|
|
3
|
+
export type QDrawerBehaviorOptions = "default" | "desktop" | "mobile";
|
|
4
|
+
export interface QDrawerProps extends NativeProps {
|
|
5
|
+
/**
|
|
6
|
+
* The value indicating whether the drawer is visible or hidden.
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
value?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The side of the layout where the drawer is positioned.
|
|
12
|
+
* @default "left"
|
|
13
|
+
*/
|
|
14
|
+
side?: QDrawerSideOptions;
|
|
15
|
+
/**
|
|
16
|
+
* The width of the drawer. Can be specified with a CSS unit. If no unit is specified, "px" will be used.
|
|
17
|
+
* @default 300
|
|
18
|
+
*/
|
|
19
|
+
width?: number | string;
|
|
20
|
+
/**
|
|
21
|
+
* The breakpoint at which the drawer behavior changes. (not supported yet)
|
|
22
|
+
* @default 1023
|
|
23
|
+
*/
|
|
24
|
+
breakpoint?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Determines whether the drawer should be shown if the viewport width is above the specified breakpoint. (not supported yet)
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
showIfAbove?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The behavior of the drawer based on the viewport width. (not supported yet)
|
|
32
|
+
* @default "default"
|
|
33
|
+
*/
|
|
34
|
+
behavior?: QDrawerBehaviorOptions;
|
|
35
|
+
/**
|
|
36
|
+
* Determines whether the drawer has a border around it.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
bordered?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Determines whether the drawer has an elevated effect. (not supported yet)
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
elevated?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Determines whether the wrawer should behave like an overlay (opening above the content) or not (pushing the content while opening).
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
overlay?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Determines whether the drawer remains persistent, not closing on click outside.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
persistent?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Determines whether swipe gestures can open the drawer. (not supported yet)
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
noSwipeOpen?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Determines whether swipe gestures can close the drawer. (not supported yet)
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
noSwipeClose?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Determines whether swipe gestures on the backdrop can close the drawer. (not supported yet)
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
noSwipeBackdrop?: boolean;
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>import { getContext } from "svelte";
|
|
2
|
+
import { createClasses } from "../../utils/props";
|
|
3
|
+
export let value = true, bordered = false, elevated = false, height = void 0, userClasses = void 0, userStyles = void 0;
|
|
4
|
+
export { userClasses as class, userStyles as style };
|
|
5
|
+
let ctx = getContext("layout");
|
|
6
|
+
$:
|
|
7
|
+
classes = createClasses(["q-footer", $ctx && $ctx.footer.fixed && "fixed", userClasses]);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<footer class={classes} style={userStyles}>
|
|
11
|
+
<nav>
|
|
12
|
+
<slot />
|
|
13
|
+
</nav>
|
|
14
|
+
</footer>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { QFooterProps } from "./props";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
value?: QFooterProps["value"];
|
|
6
|
+
bordered?: QFooterProps["bordered"];
|
|
7
|
+
elevated?: QFooterProps["elevated"];
|
|
8
|
+
height?: QFooterProps["height"];
|
|
9
|
+
class?: string | undefined;
|
|
10
|
+
style?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {
|
|
16
|
+
default: {};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type QFooterProps = typeof __propDef.props;
|
|
20
|
+
export type QFooterEvents = typeof __propDef.events;
|
|
21
|
+
export type QFooterSlots = typeof __propDef.slots;
|
|
22
|
+
export default class QFooter extends SvelteComponentTyped<QFooterProps, QFooterEvents, QFooterSlots> {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QFooterDocsProps } from "./docs.props";
|
|
2
|
+
export let QFooterDocs = {
|
|
3
|
+
name: "QFooter",
|
|
4
|
+
description: "Footers can be used to display navigation and key actions at the bottom of the screen.",
|
|
5
|
+
docs: {
|
|
6
|
+
props: QFooterDocsProps,
|
|
7
|
+
slots: [],
|
|
8
|
+
methods: [],
|
|
9
|
+
events: [],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const QFooterDocsProps = [
|
|
2
|
+
{
|
|
3
|
+
name: "value",
|
|
4
|
+
type: "boolean",
|
|
5
|
+
optional: true,
|
|
6
|
+
clickableType: false,
|
|
7
|
+
description: "The value indicating whether the footer is visible or hidden. (not supported yet)",
|
|
8
|
+
default: "true",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "bordered",
|
|
12
|
+
type: "boolean",
|
|
13
|
+
optional: true,
|
|
14
|
+
clickableType: false,
|
|
15
|
+
description: "Determines whether the footer has a border around it. (not supported yet)",
|
|
16
|
+
default: "false",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "elevated",
|
|
20
|
+
type: "boolean",
|
|
21
|
+
optional: true,
|
|
22
|
+
clickableType: false,
|
|
23
|
+
description: "Determines whether the footer has an elevated effect. (not supported yet)",
|
|
24
|
+
default: "false",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "height",
|
|
28
|
+
type: "string | number",
|
|
29
|
+
optional: true,
|
|
30
|
+
clickableType: false,
|
|
31
|
+
description: 'The height of the footer. Can be specified with a CSS unit. If not specified, "px" will be used. (not supported yet)',
|
|
32
|
+
default: "undefined",
|
|
33
|
+
},
|
|
34
|
+
];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
export interface QFooterProps extends NativeProps {
|
|
3
|
+
/**
|
|
4
|
+
* The value indicating whether the footer is visible or hidden. (not supported yet)
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
value?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether the footer has a border around it. (not supported yet)
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the footer has an elevated effect. (not supported yet)
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
elevated?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The height of the footer. Can be specified with a CSS unit. If not specified, "px" will be used. (not supported yet)
|
|
20
|
+
* @default undefined
|
|
21
|
+
*/
|
|
22
|
+
height?: string | number;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script>import useSize from "../../composables/use-size";
|
|
2
|
+
import { createClasses, createStyles } from "../../utils/props";
|
|
3
|
+
import { isNumber } from "../../utils/types";
|
|
4
|
+
export let size = "md", name = void 0, type = "outlined", fill = false, svg = void 0, img = void 0, imgAttributes = {}, color = void 0, userClasses = void 0, userStyles = void 0;
|
|
5
|
+
export { userClasses as class, userStyles as style };
|
|
6
|
+
$:
|
|
7
|
+
sizeStyle = useSize(size) === null ? isNumber(size) ? `${size}px` : size : void 0;
|
|
8
|
+
$:
|
|
9
|
+
classes = createClasses([
|
|
10
|
+
"q-icon",
|
|
11
|
+
`q-icon__${type}`,
|
|
12
|
+
fill && "fill",
|
|
13
|
+
useSize(size),
|
|
14
|
+
color && `${color}-text`,
|
|
15
|
+
userClasses
|
|
16
|
+
]);
|
|
17
|
+
$:
|
|
18
|
+
style = createStyles(
|
|
19
|
+
{
|
|
20
|
+
"---size": sizeStyle
|
|
21
|
+
},
|
|
22
|
+
userStyles
|
|
23
|
+
);
|
|
24
|
+
$:
|
|
25
|
+
imgAttrs = {
|
|
26
|
+
alt: "Quaff Image Icon",
|
|
27
|
+
...imgAttributes
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<i class={classes} {style}>
|
|
32
|
+
{#if name !== undefined}
|
|
33
|
+
{name}
|
|
34
|
+
{:else if img !== undefined}
|
|
35
|
+
<!-- svelte-ignore a11y-missing-attribute -->
|
|
36
|
+
<img src={img} {...imgAttrs} />
|
|
37
|
+
{:else if svg !== undefined}
|
|
38
|
+
<slot />
|
|
39
|
+
{/if}
|
|
40
|
+
</i>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { QIconProps } from "./props";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
size?: import("./props").QIconSizeOptions | undefined;
|
|
6
|
+
name?: QIconProps["name"];
|
|
7
|
+
type?: import("./props").QIconTypeOptions | undefined;
|
|
8
|
+
fill?: boolean | undefined;
|
|
9
|
+
svg?: QIconProps["svg"];
|
|
10
|
+
img?: QIconProps["img"];
|
|
11
|
+
imgAttributes?: Record<string, any> | undefined;
|
|
12
|
+
color?: QIconProps["color"];
|
|
13
|
+
class?: string | undefined;
|
|
14
|
+
style?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
events: {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
};
|
|
19
|
+
slots: {
|
|
20
|
+
default: {};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type QIconProps = typeof __propDef.props;
|
|
24
|
+
export type QIconEvents = typeof __propDef.events;
|
|
25
|
+
export type QIconSlots = typeof __propDef.slots;
|
|
26
|
+
export default class QIcon extends SvelteComponentTyped<QIconProps, QIconEvents, QIconSlots> {
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QIconDocsProps } from "./docs.props";
|
|
2
|
+
export let QIconDocs = {
|
|
3
|
+
name: "QIcon",
|
|
4
|
+
description: "This component allows you to insert icons within elements of the page. Supported cions are Material Symbols icons.",
|
|
5
|
+
docs: {
|
|
6
|
+
props: QIconDocsProps,
|
|
7
|
+
slots: [],
|
|
8
|
+
methods: [],
|
|
9
|
+
events: [],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export const QIconDocsProps = [
|
|
2
|
+
{
|
|
3
|
+
name: "size",
|
|
4
|
+
type: "QIconSizeOptions",
|
|
5
|
+
optional: false,
|
|
6
|
+
clickableType: true,
|
|
7
|
+
description: 'The size of the icon. Can be specified with CSS units. If no unit is specified, "px" will be used.',
|
|
8
|
+
default: "md",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "type",
|
|
12
|
+
type: "QIconTypeOptions",
|
|
13
|
+
optional: false,
|
|
14
|
+
clickableType: true,
|
|
15
|
+
description: "The type of the icon.",
|
|
16
|
+
default: "outlined",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "name",
|
|
20
|
+
type: "string",
|
|
21
|
+
optional: true,
|
|
22
|
+
clickableType: false,
|
|
23
|
+
description: "The name of the Material Symbols icon.",
|
|
24
|
+
default: "undefined",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "fill",
|
|
28
|
+
type: "boolean",
|
|
29
|
+
optional: false,
|
|
30
|
+
clickableType: false,
|
|
31
|
+
description: "Determines whether the icon should be filled.",
|
|
32
|
+
default: "false",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "svg",
|
|
36
|
+
type: "string",
|
|
37
|
+
optional: true,
|
|
38
|
+
clickableType: false,
|
|
39
|
+
description: "The SVG content for the icon.",
|
|
40
|
+
default: "undefined",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "img",
|
|
44
|
+
type: "string",
|
|
45
|
+
optional: true,
|
|
46
|
+
clickableType: false,
|
|
47
|
+
description: "The image source for the icon.",
|
|
48
|
+
default: "undefined",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "imgAttributes",
|
|
52
|
+
type: "Record<string, any>",
|
|
53
|
+
optional: false,
|
|
54
|
+
clickableType: true,
|
|
55
|
+
description: 'Additional attributes for the image element when using the `img` prop, as for example the "alt" attribute.',
|
|
56
|
+
default: "{}",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "color",
|
|
60
|
+
type: "string",
|
|
61
|
+
optional: true,
|
|
62
|
+
clickableType: false,
|
|
63
|
+
description: "The color of the icon.",
|
|
64
|
+
default: "undefined",
|
|
65
|
+
},
|
|
66
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$icon-font: "Material Symbols Outlined";
|
|
2
|
+
|
|
3
|
+
.q-icon {
|
|
4
|
+
overflow: visible;
|
|
5
|
+
font-family: $icon-font;
|
|
6
|
+
|
|
7
|
+
&--outlined {
|
|
8
|
+
$icon-font: "Material Symbols Outlined";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&--rounded {
|
|
12
|
+
$icon-font: "Material Symbols Rounded";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--sharp {
|
|
16
|
+
$icon-font: "Material Symbols Sharp";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
export type QIconSizeOptions = "xs" | "sm" | "md" | "lg" | "xl" | string | number;
|
|
3
|
+
export type QIconTypeOptions = "outlined" | "sharp" | "rounded";
|
|
4
|
+
export interface QIconProps extends NativeProps {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the icon. Can be specified with CSS units. If no unit is specified, "px" will be used.
|
|
7
|
+
* @default md
|
|
8
|
+
*/
|
|
9
|
+
size: QIconSizeOptions;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the icon.
|
|
12
|
+
* @default outlined
|
|
13
|
+
*/
|
|
14
|
+
type: QIconTypeOptions;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the Material Symbols icon.
|
|
17
|
+
* @default undefined
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Determines whether the icon should be filled.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
fill: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The SVG content for the icon.
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
svg?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The image source for the icon.
|
|
32
|
+
* @default undefined
|
|
33
|
+
*/
|
|
34
|
+
img?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Additional attributes for the image element when using the `img` prop, as for example the "alt" attribute.
|
|
37
|
+
* @default {}
|
|
38
|
+
*/
|
|
39
|
+
imgAttributes: Record<string, any>;
|
|
40
|
+
/**
|
|
41
|
+
* The color of the icon.
|
|
42
|
+
* @default undefined
|
|
43
|
+
*/
|
|
44
|
+
color?: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import QAvatar from "./avatar/QAvatar.svelte";
|
|
2
|
+
import QBtn from "./button/QBtn.svelte";
|
|
3
|
+
import QCard from "./card/QCard.svelte";
|
|
4
|
+
import QCardSection from "./card/QCardSection.svelte";
|
|
5
|
+
import QCardActions from "./card/QCardActions.svelte";
|
|
6
|
+
import QCheckbox from "./checkbox/QCheckbox.svelte";
|
|
7
|
+
import QChip from "./chip/QChip.svelte";
|
|
8
|
+
import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
9
|
+
import QDialog from "./dialog/QDialog.svelte";
|
|
10
|
+
import QDrawer from "./drawer/QDrawer.svelte";
|
|
11
|
+
import QFooter from "./footer/QFooter.svelte";
|
|
12
|
+
import QIcon from "./icon/QIcon.svelte";
|
|
13
|
+
import QInput from "./input/QInput.svelte";
|
|
14
|
+
import QSelect from "./select/QSelect.svelte";
|
|
15
|
+
import QLayout from "./layout/QLayout.svelte";
|
|
16
|
+
import QList from "./list/QList.svelte";
|
|
17
|
+
import QItem from "./list/QItem.svelte";
|
|
18
|
+
import QItemSection from "./list/QItemSection.svelte";
|
|
19
|
+
import QLinearProgress from "./progress/QLinearProgress.svelte";
|
|
20
|
+
import QRadio from "./radio/QRadio.svelte";
|
|
21
|
+
import QRailbar from "./railbar/QRailbar.svelte";
|
|
22
|
+
import QSeparator from "./separator/QSeparator.svelte";
|
|
23
|
+
import QTabs from "./tabs/QTabs.svelte";
|
|
24
|
+
import QTab from "./tabs/QTab.svelte";
|
|
25
|
+
import QTable from "./table/QTable.svelte";
|
|
26
|
+
import QToggle from "./toggle/QToggle.svelte";
|
|
27
|
+
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
28
|
+
import QTooltip from "./tooltip/QTooltip.svelte";
|
|
29
|
+
export { QAvatar, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCodeBlock, QDialog, QDrawer, QFooter, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable, QToggle, QToolbar, QTooltip, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import QAvatar from "./avatar/QAvatar.svelte";
|
|
2
|
+
import QBtn from "./button/QBtn.svelte";
|
|
3
|
+
import QCard from "./card/QCard.svelte";
|
|
4
|
+
import QCardSection from "./card/QCardSection.svelte";
|
|
5
|
+
import QCardActions from "./card/QCardActions.svelte";
|
|
6
|
+
import QCheckbox from "./checkbox/QCheckbox.svelte";
|
|
7
|
+
import QChip from "./chip/QChip.svelte";
|
|
8
|
+
import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
9
|
+
import QDialog from "./dialog/QDialog.svelte";
|
|
10
|
+
import QDrawer from "./drawer/QDrawer.svelte";
|
|
11
|
+
import QFooter from "./footer/QFooter.svelte";
|
|
12
|
+
import QIcon from "./icon/QIcon.svelte";
|
|
13
|
+
import QInput from "./input/QInput.svelte";
|
|
14
|
+
import QSelect from "./select/QSelect.svelte";
|
|
15
|
+
import QLayout from "./layout/QLayout.svelte";
|
|
16
|
+
import QList from "./list/QList.svelte";
|
|
17
|
+
import QItem from "./list/QItem.svelte";
|
|
18
|
+
import QItemSection from "./list/QItemSection.svelte";
|
|
19
|
+
import QLinearProgress from "./progress/QLinearProgress.svelte";
|
|
20
|
+
import QRadio from "./radio/QRadio.svelte";
|
|
21
|
+
import QRailbar from "./railbar/QRailbar.svelte";
|
|
22
|
+
import QSeparator from "./separator/QSeparator.svelte";
|
|
23
|
+
import QTabs from "./tabs/QTabs.svelte";
|
|
24
|
+
import QTab from "./tabs/QTab.svelte";
|
|
25
|
+
import QTable from "./table/QTable.svelte";
|
|
26
|
+
import QToggle from "./toggle/QToggle.svelte";
|
|
27
|
+
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
28
|
+
import QTooltip from "./tooltip/QTooltip.svelte";
|
|
29
|
+
export { QAvatar, QBtn, QCard, QCardSection, QCardActions, QCheckbox, QChip, QCodeBlock, QDialog, QDrawer, QFooter, QIcon, QInput, QSelect, QLayout, QList, QItem, QItemSection, QLinearProgress, QRadio, QRailbar, QSeparator, QTabs, QTab, QTable, QToggle, QToolbar, QTooltip, };
|