@octans/ui 1.0.0
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 +21 -0
- package/README.md +226 -0
- package/bin/octans-icons.mjs +208 -0
- package/dist/components/ActionList/ActionList.vue.d.ts +77 -0
- package/dist/components/ActionList/ActionListButton.vue.d.ts +85 -0
- package/dist/components/ActionList/ActionListMenu.vue.d.ts +18 -0
- package/dist/components/ActionList/index.d.ts +1 -0
- package/dist/components/AppFrame/AppFrame.vue.d.ts +26 -0
- package/dist/components/AppFrame/context.d.ts +40 -0
- package/dist/components/AppFrame/index.d.ts +3 -0
- package/dist/components/AppFrame/types.d.ts +52 -0
- package/dist/components/Badge/Badge.vue.d.ts +125 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Banner/Banner.vue.d.ts +239 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Button/Button.vue.d.ts +284 -0
- package/dist/components/Button/ButtonGroup.vue.d.ts +44 -0
- package/dist/components/Button/ButtonGroupItem.vue.d.ts +5 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Calendar/Calendar.vue.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Calendar/types.d.ts +39 -0
- package/dist/components/CalendarHeatmap/CalendarHeatmap.vue.d.ts +21 -0
- package/dist/components/CalendarHeatmap/index.d.ts +2 -0
- package/dist/components/CalendarHeatmap/types.d.ts +168 -0
- package/dist/components/Caption/Caption.vue.d.ts +5 -0
- package/dist/components/Caption/index.d.ts +1 -0
- package/dist/components/Card/Card.vue.d.ts +82 -0
- package/dist/components/Card/CardSection.vue.d.ts +89 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/utils.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +171 -0
- package/dist/components/Checkbox/CheckboxControl.vue.d.ts +59 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Choice/Choice.vue.d.ts +102 -0
- package/dist/components/Choice/index.d.ts +1 -0
- package/dist/components/ChoiceList/ChoiceList.vue.d.ts +199 -0
- package/dist/components/ChoiceList/index.d.ts +2 -0
- package/dist/components/ChoiceList/types.d.ts +31 -0
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts +18 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/types.d.ts +62 -0
- package/dist/components/ColorSelector/ColorSelector.vue.d.ts +34 -0
- package/dist/components/ColorSelector/index.d.ts +2 -0
- package/dist/components/ColorSelector/types.d.ts +143 -0
- package/dist/components/DataTable/BulkActions.vue.d.ts +282 -0
- package/dist/components/DataTable/DataTable.vue.d.ts +40 -0
- package/dist/components/DataTable/DataTableFooter.vue.d.ts +22 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/types.d.ts +249 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +17 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +57 -0
- package/dist/components/Divider/Divider.vue.d.ts +20 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/types.d.ts +76 -0
- package/dist/components/EventDelegator/EventDelegator.vue.d.ts +18 -0
- package/dist/components/EventDelegator/index.d.ts +1 -0
- package/dist/components/EventDelegator/utils.d.ts +25 -0
- package/dist/components/FileInput/DropZone.vue.d.ts +67 -0
- package/dist/components/FileInput/FileInput.vue.d.ts +422 -0
- package/dist/components/FileInput/ItemList.vue.d.ts +109 -0
- package/dist/components/FileInput/index.d.ts +1 -0
- package/dist/components/FileInput/utils.d.ts +15 -0
- package/dist/components/Filters/FilterActions.vue.d.ts +236 -0
- package/dist/components/Filters/FilterItem.vue.d.ts +813 -0
- package/dist/components/Filters/Filters.vue.d.ts +1627 -0
- package/dist/components/Filters/index.d.ts +1 -0
- package/dist/components/Filters/utils.d.ts +1 -0
- package/dist/components/FooterHelp/FooterHelp.vue.d.ts +16 -0
- package/dist/components/FooterHelp/index.d.ts +1 -0
- package/dist/components/FormLayout/FormLayout.vue.d.ts +5 -0
- package/dist/components/FormLayout/FormLayoutGroup.vue.d.ts +17 -0
- package/dist/components/FormLayout/index.d.ts +2 -0
- package/dist/components/Formatter/Formatter.vue.d.ts +42 -0
- package/dist/components/Formatter/index.d.ts +1 -0
- package/dist/components/GlobalNav/GlobalNav.vue.d.ts +33 -0
- package/dist/components/GlobalNav/index.d.ts +2 -0
- package/dist/components/GlobalNav/types.d.ts +64 -0
- package/dist/components/GradientPicker/GradientPicker.vue.d.ts +20 -0
- package/dist/components/GradientPicker/index.d.ts +2 -0
- package/dist/components/GradientPicker/types.d.ts +74 -0
- package/dist/components/Heading/Heading.vue.d.ts +18 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Icon/Icon.vue.d.ts +112 -0
- package/dist/components/Icon/iconBundle.d.ts +1 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/InlineError/InlineError.vue.d.ts +6 -0
- package/dist/components/InlineError/index.d.ts +1 -0
- package/dist/components/Labelled/Labelled.vue.d.ts +110 -0
- package/dist/components/Labelled/index.d.ts +1 -0
- package/dist/components/Layout/Layout.vue.d.ts +13 -0
- package/dist/components/Layout/LayoutSection.vue.d.ts +16 -0
- package/dist/components/Layout/LayoutSectionAnnotated.vue.d.ts +34 -0
- package/dist/components/Layout/index.d.ts +3 -0
- package/dist/components/LineClamper/LineClamper.vue.d.ts +16 -0
- package/dist/components/LineClamper/index.d.ts +2 -0
- package/dist/components/LineClamper/types.d.ts +7 -0
- package/dist/components/Link/Link.vue.d.ts +19 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/List/List.vue.d.ts +15 -0
- package/dist/components/List/ListItem.vue.d.ts +16 -0
- package/dist/components/List/index.d.ts +3 -0
- package/dist/components/List/types.d.ts +51 -0
- package/dist/components/LoaderOverlay/LoaderOverlay.vue.d.ts +18 -0
- package/dist/components/LoaderOverlay/host.d.ts +6 -0
- package/dist/components/LoaderOverlay/index.d.ts +26 -0
- package/dist/components/LoaderOverlay/store.d.ts +7 -0
- package/dist/components/LoaderOverlay/types.d.ts +24 -0
- package/dist/components/LoadingBar/LoadingBar.vue.d.ts +7 -0
- package/dist/components/LoadingBar/host.d.ts +6 -0
- package/dist/components/LoadingBar/index.d.ts +28 -0
- package/dist/components/LoadingBar/store.d.ts +6 -0
- package/dist/components/LoadingBar/types.d.ts +16 -0
- package/dist/components/MaybeMountingPortal/MaybeMountingPortal.vue.d.ts +53 -0
- package/dist/components/MaybeMountingPortal/index.d.ts +1 -0
- package/dist/components/MaybeRouterLink/MaybeRouterLink.vue.d.ts +34 -0
- package/dist/components/MaybeRouterLink/index.d.ts +2 -0
- package/dist/components/MaybeRouterLink/types.d.ts +49 -0
- package/dist/components/Modal/Modal.vue.d.ts +28 -0
- package/dist/components/Modal/ModalBackdrop.vue.d.ts +12 -0
- package/dist/components/Modal/ModalHost.vue.d.ts +3 -0
- package/dist/components/Modal/ModalStackItem.vue.d.ts +14 -0
- package/dist/components/Modal/api/AlertModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/Base.d.ts +12 -0
- package/dist/components/Modal/api/ConfirmModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/GenericModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/PromptModal.vue.d.ts +10 -0
- package/dist/components/Modal/api/types.d.ts +110 -0
- package/dist/components/Modal/host.d.ts +2 -0
- package/dist/components/Modal/index.d.ts +10 -0
- package/dist/components/Modal/manager.d.ts +80 -0
- package/dist/components/Modal/types.d.ts +49 -0
- package/dist/components/NavField/NavField.vue.d.ts +223 -0
- package/dist/components/NavField/index.d.ts +1 -0
- package/dist/components/Navigation/Navigation.vue.d.ts +47 -0
- package/dist/components/Navigation/components/Item.vue.d.ts +10 -0
- package/dist/components/Navigation/components/Section.vue.d.ts +13 -0
- package/dist/components/Navigation/index.d.ts +2 -0
- package/dist/components/Navigation/types.d.ts +117 -0
- package/dist/components/OtpInput/OtpInput.vue.d.ts +21 -0
- package/dist/components/OtpInput/index.d.ts +2 -0
- package/dist/components/OtpInput/types.d.ts +87 -0
- package/dist/components/Page/Page.vue.d.ts +34 -0
- package/dist/components/Page/index.d.ts +2 -0
- package/dist/components/Page/types.d.ts +75 -0
- package/dist/components/PageActions/PageActions.vue.d.ts +6 -0
- package/dist/components/PageActions/index.d.ts +2 -0
- package/dist/components/PageActions/types.d.ts +17 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +22 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Popper/Popper.vue.d.ts +45 -0
- package/dist/components/Popper/index.d.ts +2 -0
- package/dist/components/Popper/types.d.ts +29 -0
- package/dist/components/PreventAutoComplete/PreventAutoComplete.vue.d.ts +24 -0
- package/dist/components/PreventAutoComplete/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +48 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/RadioButton/RadioButton.vue.d.ts +143 -0
- package/dist/components/RadioButton/RadioButtonControl.vue.d.ts +50 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RangeSlider/RangeSlider.vue.d.ts +303 -0
- package/dist/components/RangeSlider/index.d.ts +1 -0
- package/dist/components/Rating/Rating.vue.d.ts +20 -0
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/types.d.ts +78 -0
- package/dist/components/ResourceList/ResourceItem.vue.d.ts +17 -0
- package/dist/components/ResourceList/ResourceList.vue.d.ts +19 -0
- package/dist/components/ResourceList/index.d.ts +3 -0
- package/dist/components/ResourceList/types.d.ts +19 -0
- package/dist/components/SaveBar/SaveBar.vue.d.ts +15 -0
- package/dist/components/SaveBar/index.d.ts +4 -0
- package/dist/components/SaveBar/store.d.ts +56 -0
- package/dist/components/SaveBar/types.d.ts +42 -0
- package/dist/components/SaveBarController/SaveBarController.vue.d.ts +40 -0
- package/dist/components/SaveBarController/index.d.ts +1 -0
- package/dist/components/ScrollPane/ScrollPane.vue.d.ts +24 -0
- package/dist/components/ScrollPane/index.d.ts +2 -0
- package/dist/components/ScrollPane/types.d.ts +64 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +39 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/types.d.ts +119 -0
- package/dist/components/Select/Select.vue.d.ts +901 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Sheet/Sheet.vue.d.ts +41 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/manager.d.ts +34 -0
- package/dist/components/Sheet/types.d.ts +92 -0
- package/dist/components/SkeletonBodyText/SkeletonBodyText.vue.d.ts +17 -0
- package/dist/components/SkeletonBodyText/index.d.ts +1 -0
- package/dist/components/SkeletonCard/SkeletonCard.vue.d.ts +34 -0
- package/dist/components/SkeletonCard/index.d.ts +1 -0
- package/dist/components/SkeletonDisplayText/SkeletonDisplayText.vue.d.ts +17 -0
- package/dist/components/SkeletonDisplayText/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.vue.d.ts +52 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Splitter/Splitter.vue.d.ts +60 -0
- package/dist/components/Splitter/index.d.ts +2 -0
- package/dist/components/Splitter/types.d.ts +177 -0
- package/dist/components/Stack/Stack.vue.d.ts +130 -0
- package/dist/components/Stack/StackItem.vue.d.ts +23 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/StatGroup/Stat.vue.d.ts +16 -0
- package/dist/components/StatGroup/StatGroup.vue.d.ts +17 -0
- package/dist/components/StatGroup/index.d.ts +3 -0
- package/dist/components/StatGroup/types.d.ts +42 -0
- package/dist/components/Sticky/Sticky.vue.d.ts +27 -0
- package/dist/components/Sticky/index.d.ts +2 -0
- package/dist/components/Sticky/types.d.ts +24 -0
- package/dist/components/SyntaxHighlighter/SyntaxHighlighter.vue.d.ts +12 -0
- package/dist/components/SyntaxHighlighter/index.d.ts +2 -0
- package/dist/components/SyntaxHighlighter/types.d.ts +10 -0
- package/dist/components/Tabs/Tabs.vue.d.ts +23 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts +19 -0
- package/dist/components/Tag/Tag.vue.d.ts +29 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/TextContainer/TextContainer.vue.d.ts +13 -0
- package/dist/components/TextContainer/index.d.ts +1 -0
- package/dist/components/TextField/TextField.vue.d.ts +38 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextField/types.d.ts +130 -0
- package/dist/components/TextStyle/TextStyle.vue.d.ts +15 -0
- package/dist/components/TextStyle/index.d.ts +1 -0
- package/dist/components/Thumbnail/Thumbnail.vue.d.ts +17 -0
- package/dist/components/Thumbnail/index.d.ts +2 -0
- package/dist/components/Thumbnail/types.d.ts +32 -0
- package/dist/components/TimePicker/TimePicker.vue.d.ts +25 -0
- package/dist/components/TimePicker/index.d.ts +2 -0
- package/dist/components/TimePicker/types.d.ts +90 -0
- package/dist/components/TimezonePicker/TimezonePicker.vue.d.ts +15 -0
- package/dist/components/TimezonePicker/index.d.ts +2 -0
- package/dist/components/TimezonePicker/types.d.ts +50 -0
- package/dist/components/TimezonePicker/zoneCountries.d.ts +2 -0
- package/dist/components/ToastManager/ProgressBar.vue.d.ts +8 -0
- package/dist/components/ToastManager/Toast.vue.d.ts +14 -0
- package/dist/components/ToastManager/ToastManager.vue.d.ts +19 -0
- package/dist/components/ToastManager/host.d.ts +14 -0
- package/dist/components/ToastManager/index.d.ts +24 -0
- package/dist/components/ToastManager/manager.d.ts +45 -0
- package/dist/components/ToastManager/types.d.ts +44 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.vue.d.ts +35 -0
- package/dist/components/ToggleSwitch/index.d.ts +2 -0
- package/dist/components/ToggleSwitch/types.d.ts +84 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +20 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/UiProvider/UiProvider.vue.d.ts +16 -0
- package/dist/components/UiProvider/index.d.ts +2 -0
- package/dist/components/UiProvider/types.d.ts +2 -0
- package/dist/components/UiProvider/utils.d.ts +5 -0
- package/dist/components/UnstyledLink/UnstyledLink.vue.d.ts +5 -0
- package/dist/components/UnstyledLink/index.d.ts +1 -0
- package/dist/components/all.d.ts +92 -0
- package/dist/components/types.d.ts +74 -0
- package/dist/globalExtensions.d.ts +7 -0
- package/dist/i18n/en.json.d.ts +60 -0
- package/dist/lib.d.ts +67 -0
- package/dist/lib.umd.d.ts +1 -0
- package/dist/style.css +2 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/ui.js +20051 -0
- package/dist/ui.umd.js +10 -0
- package/dist/utils/autoHost.d.ts +27 -0
- package/dist/utils/color.d.ts +112 -0
- package/dist/utils/colorRamp.d.ts +51 -0
- package/dist/utils/createTheme.d.ts +52 -0
- package/dist/utils/customTheme.d.ts +73 -0
- package/dist/utils/date.d.ts +4 -0
- package/dist/utils/debounce.d.ts +3 -0
- package/dist/utils/deferredPromise.d.ts +6 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/fuzzy.d.ts +33 -0
- package/dist/utils/gradient.d.ts +83 -0
- package/dist/utils/index.d.ts +31 -0
- package/dist/utils/loader.d.ts +1 -0
- package/dist/utils/positionPanel.d.ts +32 -0
- package/dist/utils/radix.d.ts +6 -0
- package/dist/utils/theme.d.ts +42 -0
- package/dist/utils/timezone.d.ts +66 -0
- package/dist/utils/tokens.d.ts +62 -0
- package/dist/utils/translate.d.ts +27 -0
- package/dist/zoneCountries-CWZGMHyp.js +353 -0
- package/package.json +120 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { AppFrameLayoutType, AppFrameSidebarCollapseType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* What `AppFrame` tells the chrome mounted inside it. `GlobalNav` reads the
|
|
5
|
+
* layout so it no longer needs its own copy of the prop, and `Navigation`
|
|
6
|
+
* drives the sidebar collapse through it — one prop on one component instead
|
|
7
|
+
* of the same value wired to three.
|
|
8
|
+
*/
|
|
9
|
+
export interface AppFrameLayoutContextType {
|
|
10
|
+
/** The resolved layout preset. */
|
|
11
|
+
readonly layout: AppFrameLayoutType;
|
|
12
|
+
/** Whether the sidebar is collapsed (to its icon rail, or hidden entirely —
|
|
13
|
+
* see `sidebarCollapse`). */
|
|
14
|
+
readonly sidebarMin: boolean;
|
|
15
|
+
/** Collapse or expand the sidebar. `Navigation`'s minimize chevron calls
|
|
16
|
+
* this, so the frame's column animates with it. */
|
|
17
|
+
setSidebarMin(value: boolean): void;
|
|
18
|
+
/** What collapsing means: `rail` narrows to icons, `hide` removes the
|
|
19
|
+
* sidebar and moves the toggle into the `GlobalNav`. */
|
|
20
|
+
readonly sidebarCollapse: AppFrameSidebarCollapseType;
|
|
21
|
+
/** While the sidebar is hidden, hovering the GlobalNav toggle "peeks" it as
|
|
22
|
+
* an overlay. Read by the frame; set by the toggle's hover. */
|
|
23
|
+
readonly peek: boolean;
|
|
24
|
+
setPeek(value: boolean): void;
|
|
25
|
+
/** True below the responsive breakpoint, where the sidebar is a drawer. */
|
|
26
|
+
readonly narrow: boolean;
|
|
27
|
+
/** Whether the drawer is open. Only meaningful while `narrow`. */
|
|
28
|
+
readonly drawerOpen: boolean;
|
|
29
|
+
/** Open/close the sidebar drawer; no argument toggles. `GlobalNav`'s
|
|
30
|
+
* hamburger calls this. */
|
|
31
|
+
toggleDrawer(open?: boolean): void;
|
|
32
|
+
/** Whether the frame has sidebar content at all. */
|
|
33
|
+
readonly hasSidebar: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const appFrameLayoutKey: InjectionKey<AppFrameLayoutContextType>;
|
|
36
|
+
/**
|
|
37
|
+
* The `AppFrame` layout context, or `null` outside one. Chrome components use
|
|
38
|
+
* this to coordinate with the frame while still working standalone.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useAppFrameLayout(): AppFrameLayoutContextType | null;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GlobalNavLayoutModeType } from '../GlobalNav/types';
|
|
2
|
+
/**
|
|
3
|
+
* How the frame arranges its chrome.
|
|
4
|
+
*
|
|
5
|
+
* - `topbar` — the bar runs the full width; the sidebar sits under it on the
|
|
6
|
+
* left. The default.
|
|
7
|
+
* - `sidebar` — the sidebar owns the full height of the window; the bar
|
|
8
|
+
* starts to its right.
|
|
9
|
+
* - `sidebarOnly` — `sidebar`, minus the bar. The save bar and loading bar
|
|
10
|
+
* move to the top of the content area, since there is no bar to host them.
|
|
11
|
+
*/
|
|
12
|
+
export type AppFrameLayoutType = 'topbar' | 'sidebar' | 'sidebarOnly';
|
|
13
|
+
/**
|
|
14
|
+
* What collapsing the sidebar means.
|
|
15
|
+
*
|
|
16
|
+
* - `rail` — it narrows to an icon rail; `Navigation`'s own chevron drives it.
|
|
17
|
+
* - `hide` — it disappears entirely and the toggle moves into the
|
|
18
|
+
* `GlobalNav`. Hovering that toggle while hidden peeks the sidebar as an
|
|
19
|
+
* overlay.
|
|
20
|
+
*/
|
|
21
|
+
export type AppFrameSidebarCollapseType = 'rail' | 'hide';
|
|
22
|
+
export interface AppFrameProps {
|
|
23
|
+
/**
|
|
24
|
+
* Shows a loader over the content area.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The layout preset — see `AppFrameLayoutType`. Components inside the frame
|
|
29
|
+
* (`GlobalNav`, `Navigation`) read it from context, so it is set here and
|
|
30
|
+
* nowhere else.
|
|
31
|
+
*
|
|
32
|
+
* @default 'topbar'
|
|
33
|
+
*/
|
|
34
|
+
layout?: AppFrameLayoutType;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use `layout` — `'default'` is `'topbar'`, `'alternate'` is
|
|
37
|
+
* `'sidebar'`. Ignored when `layout` is set.
|
|
38
|
+
*/
|
|
39
|
+
layoutMode?: GlobalNavLayoutModeType;
|
|
40
|
+
/**
|
|
41
|
+
* Collapses the sidebar. Also driven from inside by `Navigation`'s
|
|
42
|
+
* minimize chevron (`allowMinimize`), or — with `sidebarCollapse: 'hide'` —
|
|
43
|
+
* by the toggle in the `GlobalNav`.
|
|
44
|
+
*/
|
|
45
|
+
sidebarMin?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* What collapsing means — see `AppFrameSidebarCollapseType`.
|
|
48
|
+
*
|
|
49
|
+
* @default 'rail'
|
|
50
|
+
*/
|
|
51
|
+
sidebarCollapse?: AppFrameSidebarCollapseType;
|
|
52
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { PopperPlacementType } from '../Popper';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { BadgeProgressType, BadgeSizeType, BadgeStatusType } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Badges are used to inform users of the status of an object or an action
|
|
6
|
+
* that's been taken.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
/**
|
|
12
|
+
* - `info`
|
|
13
|
+
* - `success`
|
|
14
|
+
* - `warning` — amber; something needs a look
|
|
15
|
+
* - `error` — red; something is wrong
|
|
16
|
+
* - `new`
|
|
17
|
+
*
|
|
18
|
+
* `attention` is accepted as an alias of `warning` for compatibility.
|
|
19
|
+
*/
|
|
20
|
+
status: {
|
|
21
|
+
type: PropType<BadgeStatusType>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* - `incomplete`
|
|
25
|
+
* - `partiallyComplete`
|
|
26
|
+
* - `complete`
|
|
27
|
+
*/
|
|
28
|
+
progress: {
|
|
29
|
+
type: PropType<BadgeProgressType>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* - `small`
|
|
33
|
+
* - `medium`
|
|
34
|
+
*/
|
|
35
|
+
size: {
|
|
36
|
+
type: PropType<BadgeSizeType>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* An optional leading icon — an Iconify name (`mdi:plus`).
|
|
41
|
+
* @see [Icon](/#/Components/Icon) for more details.
|
|
42
|
+
*/
|
|
43
|
+
icon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* An optional tooltip to display when the user hovers over the badge.
|
|
48
|
+
*/
|
|
49
|
+
tooltip: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Placement of the tooltip if rendered
|
|
54
|
+
*/
|
|
55
|
+
tooltipPosition: {
|
|
56
|
+
type: PropType<PopperPlacementType>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* An optional radius value for the badge edges
|
|
60
|
+
*/
|
|
61
|
+
radius: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
68
|
+
/**
|
|
69
|
+
* - `info`
|
|
70
|
+
* - `success`
|
|
71
|
+
* - `warning` — amber; something needs a look
|
|
72
|
+
* - `error` — red; something is wrong
|
|
73
|
+
* - `new`
|
|
74
|
+
*
|
|
75
|
+
* `attention` is accepted as an alias of `warning` for compatibility.
|
|
76
|
+
*/
|
|
77
|
+
status: {
|
|
78
|
+
type: PropType<BadgeStatusType>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* - `incomplete`
|
|
82
|
+
* - `partiallyComplete`
|
|
83
|
+
* - `complete`
|
|
84
|
+
*/
|
|
85
|
+
progress: {
|
|
86
|
+
type: PropType<BadgeProgressType>;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* - `small`
|
|
90
|
+
* - `medium`
|
|
91
|
+
*/
|
|
92
|
+
size: {
|
|
93
|
+
type: PropType<BadgeSizeType>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* An optional leading icon — an Iconify name (`mdi:plus`).
|
|
98
|
+
* @see [Icon](/#/Components/Icon) for more details.
|
|
99
|
+
*/
|
|
100
|
+
icon: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* An optional tooltip to display when the user hovers over the badge.
|
|
105
|
+
*/
|
|
106
|
+
tooltip: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Placement of the tooltip if rendered
|
|
111
|
+
*/
|
|
112
|
+
tooltipPosition: {
|
|
113
|
+
type: PropType<PopperPlacementType>;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* An optional radius value for the badge edges
|
|
117
|
+
*/
|
|
118
|
+
radius: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, {
|
|
123
|
+
size: BadgeSizeType;
|
|
124
|
+
radius: string;
|
|
125
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Badge } from './Badge.vue';
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Informs users about important changes or persistent conditions. Use this
|
|
3
|
+
* component if you need to communicate to users in a prominent way. Banners are
|
|
4
|
+
* placed at the top of the page or section they apply to, and below the page or
|
|
5
|
+
* section header.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
/**
|
|
11
|
+
* Title of the banner.
|
|
12
|
+
*/
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Status which determines the color scheme:
|
|
18
|
+
*
|
|
19
|
+
* - `default`
|
|
20
|
+
* - `info`
|
|
21
|
+
* - `success`
|
|
22
|
+
* - `warning` — amber; something needs a look
|
|
23
|
+
* - `error` — red; something is wrong
|
|
24
|
+
* - `new`
|
|
25
|
+
*
|
|
26
|
+
* `attention` is accepted as an alias of `warning` for compatibility.
|
|
27
|
+
*/
|
|
28
|
+
status: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Icon name. Set to `false` to omit the icon entirely.
|
|
34
|
+
* @see [Icon](/#/Components/Icon) for more details.
|
|
35
|
+
*/
|
|
36
|
+
icon: {
|
|
37
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}>, {}, {}, {}, {
|
|
41
|
+
close(): void;
|
|
42
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
43
|
+
/**
|
|
44
|
+
* Title of the banner.
|
|
45
|
+
*/
|
|
46
|
+
title: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Status which determines the color scheme:
|
|
51
|
+
*
|
|
52
|
+
* - `default`
|
|
53
|
+
* - `info`
|
|
54
|
+
* - `success`
|
|
55
|
+
* - `warning` — amber; something needs a look
|
|
56
|
+
* - `error` — red; something is wrong
|
|
57
|
+
* - `new`
|
|
58
|
+
*
|
|
59
|
+
* `attention` is accepted as an alias of `warning` for compatibility.
|
|
60
|
+
*/
|
|
61
|
+
status: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Icon name. Set to `false` to omit the icon entirely.
|
|
67
|
+
* @see [Icon](/#/Components/Icon) for more details.
|
|
68
|
+
*/
|
|
69
|
+
icon: {
|
|
70
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
}>> & Readonly<{}>, {
|
|
74
|
+
icon: string | boolean;
|
|
75
|
+
status: string;
|
|
76
|
+
}, {}, {
|
|
77
|
+
Icon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
78
|
+
icon: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
};
|
|
81
|
+
size: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
contained: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
87
|
+
badge: {
|
|
88
|
+
type: import('vue').PropType<import('../types').IconBadgeStatusType>;
|
|
89
|
+
};
|
|
90
|
+
badgeIcon: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
badgeColor: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
};
|
|
96
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
99
|
+
icon: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
};
|
|
102
|
+
size: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
};
|
|
105
|
+
contained: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
};
|
|
108
|
+
badge: {
|
|
109
|
+
type: import('vue').PropType<import('../types').IconBadgeStatusType>;
|
|
110
|
+
};
|
|
111
|
+
badgeIcon: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
};
|
|
114
|
+
badgeColor: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{}>, {
|
|
118
|
+
contained: boolean;
|
|
119
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
Button: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
121
|
+
type: {
|
|
122
|
+
type: import('vue').PropType<import('../types').ActionTypeType>;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
icon: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
badge: {
|
|
129
|
+
type: import('vue').PropType<string | number | import('../types').IconBadgeType>;
|
|
130
|
+
};
|
|
131
|
+
badgeStatus: {
|
|
132
|
+
type: import('vue').PropType<import('../types').IconBadgeStatusType>;
|
|
133
|
+
};
|
|
134
|
+
disabled: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
};
|
|
137
|
+
tooltip: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
};
|
|
140
|
+
tooltipPosition: {
|
|
141
|
+
type: import('vue').PropType<import('../types').ActionTooltipPositionType>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
dropdown: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
fullWidth: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
size: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
url: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
};
|
|
159
|
+
external: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
};
|
|
162
|
+
invert: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
color: {
|
|
167
|
+
type: import('vue').PropType<import('../types').ActionColorType>;
|
|
168
|
+
};
|
|
169
|
+
destructive: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
176
|
+
type: {
|
|
177
|
+
type: import('vue').PropType<import('../types').ActionTypeType>;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
icon: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
};
|
|
183
|
+
badge: {
|
|
184
|
+
type: import('vue').PropType<string | number | import('../types').IconBadgeType>;
|
|
185
|
+
};
|
|
186
|
+
badgeStatus: {
|
|
187
|
+
type: import('vue').PropType<import('../types').IconBadgeStatusType>;
|
|
188
|
+
};
|
|
189
|
+
disabled: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
};
|
|
192
|
+
tooltip: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
};
|
|
195
|
+
tooltipPosition: {
|
|
196
|
+
type: import('vue').PropType<import('../types').ActionTooltipPositionType>;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
dropdown: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
fullWidth: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
size: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
url: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
};
|
|
214
|
+
external: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
};
|
|
217
|
+
invert: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
color: {
|
|
222
|
+
type: import('vue').PropType<import('../types').ActionColorType>;
|
|
223
|
+
};
|
|
224
|
+
destructive: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
}>> & Readonly<{}>, {
|
|
229
|
+
disabled: boolean;
|
|
230
|
+
size: string;
|
|
231
|
+
type: import('../types').ActionTypeType;
|
|
232
|
+
destructive: boolean;
|
|
233
|
+
tooltipPosition: import('../types').ActionTooltipPositionType;
|
|
234
|
+
external: boolean;
|
|
235
|
+
dropdown: boolean;
|
|
236
|
+
fullWidth: boolean;
|
|
237
|
+
invert: boolean;
|
|
238
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
239
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Banner } from './Banner.vue';
|