@quaffui/quaff 0.1.0-prealpha → 0.1.0-prealpha10
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/dist/components/avatar/QAvatar.svelte +8 -7
- package/dist/components/avatar/QAvatar.svelte.d.ts +4 -4
- package/dist/components/avatar/docs.d.ts +1 -1
- package/dist/components/avatar/index.scss +4 -1
- package/dist/components/avatar/props.d.ts +2 -2
- package/dist/components/avatar/props.js +1 -1
- package/dist/components/breadcrumbs/QBreadcrumbs.svelte.d.ts +4 -4
- package/dist/components/breadcrumbs/QBreadcrumbsEl.svelte.d.ts +4 -4
- package/dist/components/breadcrumbs/docs.d.ts +1 -1
- package/dist/components/button/QBtn.svelte +23 -9
- package/dist/components/button/QBtn.svelte.d.ts +6 -5
- package/dist/components/button/docs.d.ts +1 -1
- package/dist/components/button/docs.props.js +8 -0
- package/dist/components/button/index.scss +23 -3
- package/dist/components/button/props.d.ts +7 -2
- package/dist/components/card/QCard.svelte +1 -1
- package/dist/components/card/QCard.svelte.d.ts +4 -4
- package/dist/components/card/QCardActions.svelte +1 -1
- package/dist/components/card/QCardActions.svelte.d.ts +4 -4
- package/dist/components/card/QCardSection.svelte +1 -1
- package/dist/components/card/QCardSection.svelte.d.ts +4 -4
- package/dist/components/card/docs.props.js +1 -1
- package/dist/components/card/index.scss +4 -1
- package/dist/components/checkbox/QCheckbox.svelte.d.ts +4 -4
- package/dist/components/checkbox/index.scss +4 -0
- package/dist/components/chip/QChip.svelte +8 -2
- package/dist/components/chip/QChip.svelte.d.ts +4 -4
- package/dist/components/chip/docs.d.ts +1 -1
- package/dist/components/chip/docs.props.js +3 -3
- package/dist/components/chip/index.scss +4 -1
- package/dist/components/chip/props.d.ts +2 -2
- package/dist/components/codeBlock/QCodeBlock.svelte +8 -9
- package/dist/components/codeBlock/QCodeBlock.svelte.d.ts +5 -7
- package/dist/components/dialog/QDialog.svelte +34 -20
- package/dist/components/dialog/QDialog.svelte.d.ts +4 -5
- package/dist/components/dialog/docs.d.ts +1 -1
- package/dist/components/dialog/docs.props.js +10 -2
- package/dist/components/dialog/index.scss +150 -3
- package/dist/components/drawer/QDrawer.svelte +50 -38
- package/dist/components/drawer/QDrawer.svelte.d.ts +5 -4
- package/dist/components/drawer/docs.d.ts +1 -1
- package/dist/components/drawer/index.scss +14 -9
- package/dist/components/drawer/props.d.ts +2 -2
- package/dist/components/footer/QFooter.svelte +18 -4
- package/dist/components/footer/QFooter.svelte.d.ts +6 -6
- package/dist/components/footer/docs.d.ts +1 -1
- package/dist/components/footer/index.scss +23 -0
- package/dist/components/footer/props.d.ts +4 -4
- package/dist/components/header/QHeader.svelte +28 -0
- package/dist/components/header/QHeader.svelte.d.ts +24 -0
- package/dist/components/header/props.d.ts +15 -0
- package/dist/components/header/props.js +1 -0
- package/dist/components/icon/QIcon.svelte +11 -13
- package/dist/components/icon/QIcon.svelte.d.ts +5 -5
- package/dist/components/icon/docs.d.ts +1 -1
- package/dist/components/icon/docs.props.js +1 -1
- package/dist/components/icon/index.scss +63 -6
- package/dist/components/icon/props.d.ts +3 -3
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +3 -1
- package/dist/components/input/QInput.svelte.d.ts +4 -4
- package/dist/components/input/docs.d.ts +1 -1
- package/dist/components/input/props.d.ts +1 -1
- package/dist/components/layout/QLayout.svelte.d.ts +4 -4
- package/dist/components/layout/docs.d.ts +1 -1
- package/dist/components/layout/index.scss +93 -76
- package/dist/components/list/QItem.svelte +1 -1
- package/dist/components/list/QItem.svelte.d.ts +4 -4
- package/dist/components/list/QItemSection.svelte.d.ts +4 -4
- package/dist/components/list/QList.svelte.d.ts +4 -4
- package/dist/components/list/docs.d.ts +2 -0
- package/dist/components/list/docs.js +11 -0
- package/dist/components/list/docs.props.js +1 -1
- package/dist/components/list/index.scss +7 -0
- package/dist/components/private/ContextReseter.svelte.d.ts +2 -2
- package/dist/components/private/QApi.svelte +25 -22
- package/dist/components/private/QApi.svelte.d.ts +2 -2
- package/dist/components/private/QDocs.svelte +38 -10
- package/dist/components/private/QDocs.svelte.d.ts +3 -3
- package/dist/components/private/QDocsSection.svelte +2 -2
- package/dist/components/private/QDocsSection.svelte.d.ts +2 -2
- package/dist/components/progress/QCircularProgress.svelte +4 -3
- package/dist/components/progress/QCircularProgress.svelte.d.ts +5 -5
- package/dist/components/progress/QLinearProgress.svelte +8 -2
- package/dist/components/progress/QLinearProgress.svelte.d.ts +4 -4
- package/dist/components/progress/docs.d.ts +2 -0
- package/dist/components/progress/docs.js +11 -0
- package/dist/components/progress/docs.props.d.ts +8 -0
- package/dist/components/progress/docs.props.js +42 -0
- package/dist/components/progress/index.scss +15 -0
- package/dist/components/progress/props.d.ts +26 -9
- package/dist/components/progress/props.js +1 -7
- package/dist/components/radio/QRadio.svelte.d.ts +4 -4
- package/dist/components/radio/docs.d.ts +1 -1
- package/dist/components/railbar/QRailbar.svelte +48 -29
- package/dist/components/railbar/QRailbar.svelte.d.ts +5 -5
- package/dist/components/railbar/docs.d.ts +2 -0
- package/dist/components/railbar/docs.js +11 -0
- package/dist/components/railbar/index.scss +39 -0
- package/dist/components/railbar/props.d.ts +11 -3
- package/dist/components/railbar/props.js +1 -7
- package/dist/components/select/QSelect.svelte +6 -4
- package/dist/components/select/QSelect.svelte.d.ts +4 -4
- package/dist/components/select/docs.d.ts +1 -1
- package/dist/components/select/docs.props.js +2 -2
- package/dist/components/select/index.scss +8 -2
- package/dist/components/select/props.d.ts +1 -1
- package/dist/components/separator/QSeparator.svelte +1 -1
- package/dist/components/separator/QSeparator.svelte.d.ts +4 -4
- package/dist/components/separator/docs.d.ts +2 -0
- package/dist/components/separator/docs.js +11 -0
- package/dist/components/separator/props.d.ts +1 -1
- package/dist/components/table/QTable.svelte.d.ts +4 -4
- package/dist/components/table/docs.d.ts +1 -1
- package/dist/components/tabs/QTab.svelte +45 -17
- package/dist/components/tabs/QTab.svelte.d.ts +5 -7
- package/dist/components/tabs/QTabs.svelte +3 -7
- package/dist/components/tabs/QTabs.svelte.d.ts +4 -4
- package/dist/components/tabs/docs.d.ts +2 -0
- package/dist/components/tabs/docs.js +11 -0
- package/dist/components/tabs/docs.props.js +3 -11
- package/dist/components/tabs/index.scss +40 -9
- package/dist/components/toggle/QToggle.svelte.d.ts +4 -4
- package/dist/components/toggle/docs.d.ts +1 -1
- package/dist/components/toggle/props.d.ts +1 -1
- package/dist/components/toggle/props.js +1 -1
- package/dist/components/toolbar/QToolbar.svelte +6 -22
- package/dist/components/toolbar/QToolbar.svelte.d.ts +7 -5
- package/dist/components/toolbar/QToolbarTitle.svelte +10 -0
- package/dist/components/toolbar/QToolbarTitle.svelte.d.ts +22 -0
- package/dist/components/toolbar/docs.d.ts +2 -0
- package/dist/components/toolbar/docs.js +11 -0
- package/dist/components/toolbar/docs.props.d.ts +8 -0
- package/dist/components/toolbar/docs.props.js +10 -0
- package/dist/components/toolbar/index.scss +35 -0
- package/dist/components/toolbar/props.d.ts +22 -3
- package/dist/components/toolbar/props.js +1 -6
- package/dist/components/tooltip/QTooltip.svelte +3 -5
- package/dist/components/tooltip/QTooltip.svelte.d.ts +4 -4
- package/dist/components/tooltip/docs.d.ts +2 -0
- package/dist/components/tooltip/docs.js +11 -0
- package/dist/components/tooltip/index.scss +77 -2
- package/dist/composables/use-align.js +17 -6
- package/dist/composables/use-router-link.js +0 -1
- package/dist/composables/use-size.d.ts +8 -10
- package/dist/composables/use-size.js +24 -12
- package/dist/css/flex.scss +41 -0
- package/dist/css/fonts.scss +4 -0
- package/dist/css/grid.scss +1 -16
- package/dist/css/index.css +1 -0
- package/dist/css/index.scss +5 -23
- package/dist/css/mixins/field.scss +3 -1
- package/dist/css/mixins/menu.scss +3 -1
- package/dist/css/mixins.scss +5 -4
- package/dist/css/ripple.scss +42 -0
- package/dist/css/states.scss +9 -4
- package/dist/css/theme/bridge.scss +15 -0
- package/dist/css/theme/elevate.scss +57 -0
- package/dist/css/theme/page.scss +16 -0
- package/dist/css/theme/palette.scss +633 -0
- package/dist/css/theme/reset.scss +40 -0
- package/dist/css/theme/theme.dark.scss +1 -0
- package/dist/css/theme/theme.light.scss +1 -0
- package/dist/css/theme/theme.scss +6 -0
- package/dist/css/theme/typography.scss +111 -0
- package/dist/css/variables-sass.scss +16 -0
- package/dist/global.d.ts +0 -1
- package/dist/helpers/ripple.d.ts +10 -0
- package/dist/helpers/ripple.js +79 -0
- package/dist/helpers/version.d.ts +2 -0
- package/dist/helpers/version.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/stores/QTheme.d.ts +2 -1
- package/dist/stores/Quaff.d.ts +6 -5
- package/dist/stores/Quaff.js +2 -1
- package/dist/utils/dom.d.ts +8 -0
- package/dist/utils/dom.js +71 -0
- package/dist/utils/events.d.ts +13 -0
- package/dist/utils/events.js +13 -0
- package/dist/utils/props.d.ts +1 -1
- package/dist/utils/props.js +1 -1
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.json +1 -1
- package/dist/utils/watchable.d.ts +1 -0
- package/package.json +34 -28
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { QHeaderProps } from "./props";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
inset?: QHeaderProps["inset"];
|
|
7
|
+
elevate?: QHeaderProps["elevate"];
|
|
8
|
+
border?: QHeaderProps["border"];
|
|
9
|
+
class?: string | undefined;
|
|
10
|
+
style?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {
|
|
16
|
+
default: {};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type QHeaderProps_ = typeof __propDef.props;
|
|
20
|
+
export { QHeaderProps_ as QHeaderProps };
|
|
21
|
+
export type QHeaderEvents = typeof __propDef.events;
|
|
22
|
+
export type QHeaderSlots = typeof __propDef.slots;
|
|
23
|
+
export default class QHeader extends SvelteComponent<QHeaderProps, QHeaderEvents, QHeaderSlots> {
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NativeProps } from "../../utils/types";
|
|
2
|
+
export interface QHeaderProps extends NativeProps {
|
|
3
|
+
/**
|
|
4
|
+
* @default false
|
|
5
|
+
*/
|
|
6
|
+
inset?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
elevate?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
border?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import { createClasses, createStyles } from "../../utils/props";
|
|
1
|
+
<script>import { createClasses, createStyles } from "../../utils/props";
|
|
3
2
|
import { isNumber } from "../../utils/types";
|
|
4
|
-
|
|
3
|
+
import { sizes } from "../../composables/use-size";
|
|
4
|
+
import { useSize } from "../../composables/use-size";
|
|
5
|
+
export let size = "md", name = void 0, type = "outlined", filled = false, svg = void 0, img = void 0, imgAttributes = {}, color = void 0, userClasses = void 0, userStyles = void 0;
|
|
5
6
|
export { userClasses as class, userStyles as style };
|
|
6
7
|
$:
|
|
7
|
-
|
|
8
|
+
sizeObj = useSize(size);
|
|
8
9
|
$:
|
|
9
|
-
classes = createClasses([
|
|
10
|
-
"q-icon",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
color && `${color}-text`,
|
|
15
|
-
userClasses
|
|
16
|
-
]);
|
|
10
|
+
classes = createClasses([type, filled && "filled", sizeObj.class], {
|
|
11
|
+
component: "q-icon",
|
|
12
|
+
userClasses,
|
|
13
|
+
quaffClasses: [color && `text-${color}`]
|
|
14
|
+
});
|
|
17
15
|
$:
|
|
18
16
|
style = createStyles(
|
|
19
17
|
{
|
|
20
|
-
"
|
|
18
|
+
"--size": sizeObj.style
|
|
21
19
|
},
|
|
22
20
|
userStyles
|
|
23
21
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { QIconProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
size?: import("./props").QIconSizeOptions | undefined;
|
|
6
6
|
name?: QIconProps["name"];
|
|
7
7
|
type?: import("./props").QIconTypeOptions | undefined;
|
|
8
|
-
|
|
8
|
+
filled?: boolean | undefined;
|
|
9
9
|
svg?: QIconProps["svg"];
|
|
10
10
|
img?: QIconProps["img"];
|
|
11
11
|
imgAttributes?: Record<string, any> | undefined;
|
|
@@ -20,9 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
default: {};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type QIconProps_ = typeof __propDef.props;
|
|
24
|
+
export { QIconProps_ as QIconProps };
|
|
24
25
|
export type QIconEvents = typeof __propDef.events;
|
|
25
26
|
export type QIconSlots = typeof __propDef.slots;
|
|
26
|
-
export default class QIcon extends
|
|
27
|
+
export default class QIcon extends SvelteComponent<QIconProps, QIconEvents, QIconSlots> {
|
|
27
28
|
}
|
|
28
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { QComponentDocs } from "
|
|
1
|
+
import type { QComponentDocs } from "../../utils/types";
|
|
2
2
|
export declare let QIconDocs: QComponentDocs;
|
|
@@ -1,18 +1,75 @@
|
|
|
1
|
-
$icon-font: "Material Symbols Outlined";
|
|
2
|
-
|
|
3
1
|
.q-icon {
|
|
2
|
+
--font: "Material Symbols Outlined";
|
|
3
|
+
--size: 1.5rem;
|
|
4
4
|
overflow: visible;
|
|
5
|
-
font-family:
|
|
5
|
+
font-family: var(--font);
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-size: var(--size);
|
|
9
|
+
letter-spacing: normal;
|
|
10
|
+
text-transform: none;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
word-wrap: normal;
|
|
16
|
+
direction: ltr;
|
|
17
|
+
font-feature-settings: "liga";
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
text-align: center;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
width: var(--size);
|
|
23
|
+
min-width: var(--size);
|
|
24
|
+
height: var(--size);
|
|
25
|
+
min-height: var(--size);
|
|
26
|
+
box-sizing: content-box;
|
|
27
|
+
line-height: normal;
|
|
6
28
|
|
|
7
29
|
&--outlined {
|
|
8
|
-
|
|
30
|
+
--font: "Material Symbols Outlined";
|
|
9
31
|
}
|
|
10
32
|
|
|
11
33
|
&--rounded {
|
|
12
|
-
|
|
34
|
+
--font: "Material Symbols Rounded";
|
|
13
35
|
}
|
|
14
36
|
|
|
15
37
|
&--sharp {
|
|
16
|
-
|
|
38
|
+
--font: "Material Symbols Sharp";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--xs {
|
|
42
|
+
--size: 1rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--sm {
|
|
46
|
+
--size: 1.25rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--lg {
|
|
50
|
+
--size: 1.75rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--xl {
|
|
54
|
+
--size: 2rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> :is(img, svg) {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
background-size: 100%;
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
padding: inherit;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.filled
|
|
69
|
+
// we might need these selectors later:
|
|
70
|
+
// a.row:is(:hover, :focus) > i,
|
|
71
|
+
// .transparent:is(:hover, :focus) > i
|
|
72
|
+
{
|
|
73
|
+
font-variation-settings: "FILL" 1;
|
|
17
74
|
}
|
|
18
75
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NativeProps } from "../../utils/types";
|
|
2
|
-
export type QIconSizeOptions =
|
|
1
|
+
import type { CssValue, NativeProps, QuaffSizes } from "../../utils/types";
|
|
2
|
+
export type QIconSizeOptions = QuaffSizes | CssValue | number;
|
|
3
3
|
export type QIconTypeOptions = "outlined" | "sharp" | "rounded";
|
|
4
4
|
export interface QIconProps extends NativeProps {
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ export interface QIconProps extends NativeProps {
|
|
|
21
21
|
* Determines whether the icon should be filled.
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
filled: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* The SVG content for the icon.
|
|
27
27
|
* @default undefined
|
|
@@ -9,6 +9,7 @@ import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
|
9
9
|
import QDialog from "./dialog/QDialog.svelte";
|
|
10
10
|
import QDrawer from "./drawer/QDrawer.svelte";
|
|
11
11
|
import QFooter from "./footer/QFooter.svelte";
|
|
12
|
+
import QHeader from "./header/QHeader.svelte";
|
|
12
13
|
import QIcon from "./icon/QIcon.svelte";
|
|
13
14
|
import QInput from "./input/QInput.svelte";
|
|
14
15
|
import QSelect from "./select/QSelect.svelte";
|
|
@@ -25,5 +26,6 @@ import QTab from "./tabs/QTab.svelte";
|
|
|
25
26
|
import QTable from "./table/QTable.svelte";
|
|
26
27
|
import QToggle from "./toggle/QToggle.svelte";
|
|
27
28
|
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
29
|
+
import QToolbarTitle from "./toolbar/QToolbarTitle.svelte";
|
|
28
30
|
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, };
|
|
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, QToggle, QToolbar, QToolbarTitle, QTooltip, };
|
package/dist/components/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import QCodeBlock from "./codeBlock/QCodeBlock.svelte";
|
|
|
9
9
|
import QDialog from "./dialog/QDialog.svelte";
|
|
10
10
|
import QDrawer from "./drawer/QDrawer.svelte";
|
|
11
11
|
import QFooter from "./footer/QFooter.svelte";
|
|
12
|
+
import QHeader from "./header/QHeader.svelte";
|
|
12
13
|
import QIcon from "./icon/QIcon.svelte";
|
|
13
14
|
import QInput from "./input/QInput.svelte";
|
|
14
15
|
import QSelect from "./select/QSelect.svelte";
|
|
@@ -25,5 +26,6 @@ import QTab from "./tabs/QTab.svelte";
|
|
|
25
26
|
import QTable from "./table/QTable.svelte";
|
|
26
27
|
import QToggle from "./toggle/QToggle.svelte";
|
|
27
28
|
import QToolbar from "./toolbar/QToolbar.svelte";
|
|
29
|
+
import QToolbarTitle from "./toolbar/QToolbarTitle.svelte";
|
|
28
30
|
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, };
|
|
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, QToggle, QToolbar, QToolbarTitle, QTooltip, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
import type { QInputProps } from "./props";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
@@ -24,9 +24,9 @@ declare const __propDef: {
|
|
|
24
24
|
append: {};
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
type QInputProps_ = typeof __propDef.props;
|
|
28
|
+
export { QInputProps_ as QInputProps };
|
|
28
29
|
export type QInputEvents = typeof __propDef.events;
|
|
29
30
|
export type QInputSlots = typeof __propDef.slots;
|
|
30
|
-
export default class QInput extends
|
|
31
|
+
export default class QInput extends SvelteComponent<QInputProps, QInputEvents, QInputSlots> {
|
|
31
32
|
}
|
|
32
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { QComponentDocs } from "
|
|
1
|
+
import type { QComponentDocs } from "../../utils/types";
|
|
2
2
|
export declare let QInputDocs: QComponentDocs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
2
|
export interface DrawerContext {
|
|
3
3
|
offset: {
|
|
4
4
|
top: boolean;
|
|
@@ -49,9 +49,9 @@ declare const __propDef: {
|
|
|
49
49
|
content: {};
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
type QLayoutProps_ = typeof __propDef.props;
|
|
53
|
+
export { QLayoutProps_ as QLayoutProps };
|
|
53
54
|
export type QLayoutEvents = typeof __propDef.events;
|
|
54
55
|
export type QLayoutSlots = typeof __propDef.slots;
|
|
55
|
-
export default class QLayout extends
|
|
56
|
+
export default class QLayout extends SvelteComponent<QLayoutProps, QLayoutEvents, QLayoutSlots> {
|
|
56
57
|
}
|
|
57
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { QComponentDocs } from "
|
|
1
|
+
import type { QComponentDocs } from "../../utils/types";
|
|
2
2
|
export declare let QLayoutDocs: QComponentDocs;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
--right-drawer-width: 300px;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
$contentSlot: ":not(.q-header, .q-footer, .q-railbar, .q-drawer)";
|
|
13
|
+
|
|
12
14
|
.q-layout {
|
|
13
15
|
position: relative;
|
|
14
16
|
width: 100%;
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
min-height: 100%;
|
|
18
20
|
overflow: hidden;
|
|
19
21
|
|
|
20
|
-
& >
|
|
22
|
+
& > #{$contentSlot} {
|
|
21
23
|
height: 100%;
|
|
22
24
|
overflow: auto;
|
|
23
25
|
transition: padding var(--speed3);
|
|
@@ -35,18 +37,18 @@
|
|
|
35
37
|
min-height: unset;
|
|
36
38
|
border-radius: 0;
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
height: 100%;
|
|
40
|
-
min-height: unset;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&.fixed {
|
|
40
|
+
&--fixed {
|
|
44
41
|
position: fixed;
|
|
45
42
|
|
|
46
43
|
&::before {
|
|
47
44
|
margin: 0;
|
|
48
45
|
}
|
|
49
46
|
}
|
|
47
|
+
|
|
48
|
+
& > nav {
|
|
49
|
+
height: 100%;
|
|
50
|
+
min-height: unset;
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.q-layout > .q-footer {
|
|
@@ -60,12 +62,7 @@
|
|
|
60
62
|
min-height: unset;
|
|
61
63
|
border-radius: 0;
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
height: 100%;
|
|
65
|
-
min-height: unset;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.fixed {
|
|
65
|
+
&--fixed {
|
|
69
66
|
position: fixed;
|
|
70
67
|
|
|
71
68
|
&::before {
|
|
@@ -73,7 +70,12 @@
|
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
&
|
|
73
|
+
& > nav {
|
|
74
|
+
height: 100%;
|
|
75
|
+
min-height: unset;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& ~ #{$contentSlot} {
|
|
77
79
|
padding-bottom: var(--footer-height);
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -89,28 +91,28 @@
|
|
|
89
91
|
overflow: auto;
|
|
90
92
|
transition: all var(--speed3);
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
&--above {
|
|
93
95
|
z-index: 105;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
|
|
98
|
+
&--fixed {
|
|
97
99
|
position: fixed;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
|
-
|
|
102
|
+
&--left {
|
|
101
103
|
left: 0px;
|
|
102
104
|
width: var(--left-railbar-width);
|
|
103
105
|
|
|
104
|
-
&.bordered {
|
|
106
|
+
&.q-railbar--bordered {
|
|
105
107
|
border-right: 0.0625rem solid var(--outline);
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
&--right {
|
|
110
112
|
right: 0px;
|
|
111
113
|
width: var(--right-railbar-width);
|
|
112
114
|
|
|
113
|
-
&.bordered {
|
|
115
|
+
&.q-railbar--bordered {
|
|
114
116
|
border-left: 0.0625rem solid var(--outline);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -140,35 +142,29 @@
|
|
|
140
142
|
background-color: var(--secondary-container);
|
|
141
143
|
color: var(--on-secondary-container);
|
|
142
144
|
padding: 0 1rem;
|
|
143
|
-
font-variation-settings:
|
|
145
|
+
font-variation-settings:
|
|
146
|
+
"FILL" 1,
|
|
147
|
+
"wght" 400,
|
|
148
|
+
"opsz" 24;
|
|
144
149
|
}
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
.q-layout > .q-drawer {
|
|
149
|
-
//TODO Problems with z-index between multiple layouts
|
|
150
154
|
z-index: 101;
|
|
151
155
|
border-radius: 0;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
&--above {
|
|
154
158
|
z-index: 104;
|
|
155
159
|
}
|
|
156
160
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
border-
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
&__right {
|
|
167
|
-
&--top {
|
|
168
|
-
border-top-right-radius: 16px;
|
|
169
|
-
}
|
|
170
|
-
&--bottom {
|
|
171
|
-
border-bottom-right-radius: 16px;
|
|
161
|
+
$horizontal: "left", "right";
|
|
162
|
+
$vertical: "top", "bottom";
|
|
163
|
+
|
|
164
|
+
@each $vPos in $vertical {
|
|
165
|
+
@each $hPos in $horizontal {
|
|
166
|
+
&--#{$vPos}-#{$hPos}-radius {
|
|
167
|
+
border-#{$vPos}-#{$hPos}-radius: 16px;
|
|
172
168
|
}
|
|
173
169
|
}
|
|
174
170
|
}
|
|
@@ -242,33 +238,35 @@ $elements: (
|
|
|
242
238
|
|
|
243
239
|
// Offset for content
|
|
244
240
|
.q-layout {
|
|
245
|
-
& > .q-header ~
|
|
241
|
+
& > .q-header ~ #{$contentSlot} {
|
|
246
242
|
padding-top: var(--header-height);
|
|
247
243
|
}
|
|
248
|
-
& > .q-footer ~
|
|
244
|
+
& > .q-footer ~ #{$contentSlot} {
|
|
249
245
|
padding-bottom: var(--footer-height);
|
|
250
246
|
}
|
|
251
|
-
|
|
247
|
+
|
|
248
|
+
& > .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
252
249
|
padding-left: $L_Drawer;
|
|
253
250
|
}
|
|
254
|
-
& > .q-drawer.active.right:not(.overlay) ~
|
|
251
|
+
& > .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
255
252
|
padding-right: $R_Drawer;
|
|
256
253
|
}
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
|
|
255
|
+
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
256
|
+
& ~ #{$contentSlot} {
|
|
259
257
|
padding-left: $L_Railbar;
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
& ~ .q-drawer.active.left:not(.overlay) ~
|
|
260
|
+
& ~ .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
263
261
|
padding-left: $L_Full;
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
|
-
& > .q-railbar.right:not([style="display: none"]) {
|
|
267
|
-
& ~
|
|
264
|
+
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
265
|
+
& ~ #{$contentSlot} {
|
|
268
266
|
padding-right: $R_Railbar;
|
|
269
267
|
}
|
|
270
268
|
|
|
271
|
-
& ~ .q-drawer.active.right:not(.overlay) ~
|
|
269
|
+
& ~ .q-drawer.q-drawer--active.q-drawer--right:not(.q-drawer--overlay) ~ #{$contentSlot} {
|
|
272
270
|
padding-right: $R_Full;
|
|
273
271
|
}
|
|
274
272
|
}
|
|
@@ -277,31 +275,48 @@ $elements: (
|
|
|
277
275
|
// Inline offset for header, footer and drawers
|
|
278
276
|
.q-layout {
|
|
279
277
|
@each $pos, $el in $elements {
|
|
280
|
-
& > .q-railbar.left:not([style="display: none"]) {
|
|
281
|
-
&:not(.offset-#{$pos}) ~ .q-#{$el},
|
|
282
|
-
& ~ .q-drawer.left {
|
|
278
|
+
& > .q-railbar.q-railbar--left:not([style="display: none"]) {
|
|
279
|
+
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
280
|
+
& ~ .q-drawer.q-drawer--left {
|
|
283
281
|
left: $L_Railbar;
|
|
284
282
|
}
|
|
285
283
|
|
|
286
|
-
&
|
|
284
|
+
&
|
|
285
|
+
~ .q-drawer.q-drawer--active.q-drawer--left:not(
|
|
286
|
+
.q-drawer--offset-#{$pos},
|
|
287
|
+
.q-drawer--overlay
|
|
288
|
+
)
|
|
289
|
+
~ .q-#{$el} {
|
|
287
290
|
left: $L_Full;
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
|
-
& > .q-railbar.right:not([style="display: none"]) {
|
|
291
|
-
&:not(.offset-#{$pos}) ~ .q-#{$el},
|
|
292
|
-
& ~ .q-drawer.right {
|
|
293
|
+
& > .q-railbar.q-railbar--right:not([style="display: none"]) {
|
|
294
|
+
&:not(.q-railbar--offset-#{$pos}) ~ .q-#{$el},
|
|
295
|
+
& ~ .q-drawer.q-drawer--right {
|
|
293
296
|
right: $R_Railbar;
|
|
294
297
|
}
|
|
295
298
|
|
|
296
|
-
&
|
|
299
|
+
&
|
|
300
|
+
~ .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
301
|
+
.q-drawer--offset-#{$pos},
|
|
302
|
+
.q-drawer--overlay
|
|
303
|
+
)
|
|
304
|
+
~ .q-#{$el} {
|
|
297
305
|
right: $R_Full;
|
|
298
306
|
}
|
|
299
307
|
}
|
|
300
308
|
|
|
301
|
-
&
|
|
309
|
+
&
|
|
310
|
+
> .q-drawer.q-drawer--active.q-drawer--left:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay)
|
|
311
|
+
~ .q-#{$el} {
|
|
302
312
|
left: $L_Drawer;
|
|
303
313
|
}
|
|
304
|
-
&
|
|
314
|
+
&
|
|
315
|
+
> .q-drawer.q-drawer--active.q-drawer--right:not(
|
|
316
|
+
.q-drawer--offset-#{$pos},
|
|
317
|
+
.q-drawer--overlay
|
|
318
|
+
)
|
|
319
|
+
~ .q-#{$el} {
|
|
305
320
|
right: $R_Drawer;
|
|
306
321
|
}
|
|
307
322
|
}
|
|
@@ -310,40 +325,40 @@ $elements: (
|
|
|
310
325
|
// Width for header and footer
|
|
311
326
|
.q-layout {
|
|
312
327
|
@each $pos, $el in $elements {
|
|
313
|
-
& > .q-railbar.left:not(.offset-#{$pos}, [style="display: none"]) {
|
|
328
|
+
& > .q-railbar.q-railbar--left:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
314
329
|
// Left railbar
|
|
315
330
|
& ~ .q-#{$el} {
|
|
316
331
|
width: without($L_Railbar);
|
|
317
332
|
}
|
|
318
333
|
|
|
319
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
334
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
320
335
|
@include include-drawers(without($L_Railbar), $pos, $el);
|
|
321
336
|
}
|
|
322
337
|
|
|
323
|
-
& ~ .q-railbar.right:not(.offset-#{$pos}, [style="display: none"]) {
|
|
338
|
+
& ~ .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
324
339
|
// Left railbar + Right railbar
|
|
325
340
|
& ~ .q-#{$el} {
|
|
326
341
|
width: without($LR_Railbar);
|
|
327
342
|
}
|
|
328
343
|
|
|
329
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
344
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
330
345
|
@include include-drawers(without($LR_Railbar), $pos, $el);
|
|
331
346
|
}
|
|
332
347
|
}
|
|
333
348
|
}
|
|
334
349
|
|
|
335
|
-
& > .q-railbar.right:not(.offset-#{$pos}, [style="display: none"]) {
|
|
350
|
+
& > .q-railbar.q-railbar--right:not(.q-railbar--offset-#{$pos}, [style="display: none"]) {
|
|
336
351
|
// Right railbar
|
|
337
352
|
& ~ .q-#{$el} {
|
|
338
353
|
width: without($R_Railbar);
|
|
339
354
|
}
|
|
340
355
|
|
|
341
|
-
& ~ .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
356
|
+
& ~ .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
342
357
|
@include include-drawers(without($R_Railbar), $pos, $el);
|
|
343
358
|
}
|
|
344
359
|
}
|
|
345
360
|
|
|
346
|
-
& > .q-drawer.active:not(.offset-#{$pos}, .overlay) {
|
|
361
|
+
& > .q-drawer.q-drawer--active:not(.q-drawer--offset-#{$pos}, .q-drawer--overlay) {
|
|
347
362
|
@include include-drawers(100%, $pos, $el);
|
|
348
363
|
}
|
|
349
364
|
}
|
|
@@ -351,19 +366,21 @@ $elements: (
|
|
|
351
366
|
|
|
352
367
|
// Height for railbars and drawers
|
|
353
368
|
.q-layout {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
369
|
+
$drawerTypes: ".q-railbar", ".q-drawer";
|
|
370
|
+
|
|
371
|
+
@each $drawerType in $drawerTypes {
|
|
372
|
+
& > #{$drawerType} {
|
|
373
|
+
&#{$drawerType}--offset-top#{$drawerType}--offset-bottom {
|
|
374
|
+
height: calc(100% - var(--header-height) - var(--footer-height));
|
|
375
|
+
}
|
|
358
376
|
}
|
|
359
|
-
}
|
|
360
377
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
378
|
+
@each $pos, $el in $elements {
|
|
379
|
+
& > #{$drawerType} {
|
|
380
|
+
&#{$drawerType}--offset-#{$pos} {
|
|
381
|
+
#{$pos}: var(--#{$el}-height);
|
|
382
|
+
height: calc(100% - var(--#{$el}-height));
|
|
383
|
+
}
|
|
367
384
|
}
|
|
368
385
|
}
|
|
369
386
|
}
|