@nubisco/ui 2.4.0 → 2.6.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/dist/components/Modal.d.ts +17 -2
- package/dist/components/Modal.vue.d.ts +1 -2
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/Shell.vue.d.ts +4 -4
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/SurfaceLayerScope.vue.d.ts +18 -0
- package/dist/components/SurfaceLayerScope.vue.d.ts.map +1 -0
- package/dist/composables/iconRegistry.d.ts +4 -4
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +281 -267
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { ESizeShort } from '../types/Size.d'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Dialog size.
|
|
5
|
+
*
|
|
6
|
+
* `sm` | `md` | `lg` are the shared short scale. The two larger steps are
|
|
7
|
+
* modal-only, so they are declared here rather than widened into `ESizeShort`,
|
|
8
|
+
* which NbButton, NbDataTable, NbPagination and NbSlider also read.
|
|
9
|
+
*
|
|
10
|
+
* `xl` is a bigger fixed box: content-heavy dialogs that are still dialogs.
|
|
11
|
+
* `immersive` approaches the viewport, for side-by-side comparison content
|
|
12
|
+
* that a fixed width forces into cramped wrapping. It is not full-screen: it
|
|
13
|
+
* keeps a margin all round, so the page behind stays visible and the dialog
|
|
14
|
+
* still reads as something you are inside of, not somewhere you navigated to.
|
|
15
|
+
*/
|
|
16
|
+
type TModalSize = `${ESizeShort}` | 'xl' | 'immersive'
|
|
17
|
+
|
|
3
18
|
interface IModalProps {
|
|
4
19
|
open?: boolean
|
|
5
20
|
title?: string
|
|
6
|
-
size?:
|
|
21
|
+
size?: TModalSize
|
|
7
22
|
closeOnOverlay?: boolean
|
|
8
23
|
}
|
|
9
24
|
|
|
10
|
-
export { IModalProps }
|
|
25
|
+
export { IModalProps, TModalSize }
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ESizeShort } from '../types/Size.d';
|
|
2
1
|
import type { IModalProps } from './Modal.d';
|
|
3
2
|
declare var __VLS_13: {}, __VLS_20: {}, __VLS_28: {};
|
|
4
3
|
type __VLS_Slots = {} & {
|
|
@@ -13,7 +12,7 @@ declare const __VLS_base: import("vue").DefineComponent<IModalProps, {}, {}, {},
|
|
|
13
12
|
}, string, import("vue").PublicProps, Readonly<IModalProps> & Readonly<{
|
|
14
13
|
onClose?: (() => any) | undefined;
|
|
15
14
|
}>, {
|
|
16
|
-
size:
|
|
15
|
+
size: import("./Modal.d").TModalSize;
|
|
17
16
|
title: string;
|
|
18
17
|
open: boolean;
|
|
19
18
|
closeOnOverlay: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAuM5C,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IShellProps } from './Shell.d';
|
|
2
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {},
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_27: {}, __VLS_29: {}, __VLS_31: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
'outer-menu'?: (props: typeof __VLS_1) => any;
|
|
5
5
|
} & {
|
|
@@ -21,11 +21,11 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
} & {
|
|
22
22
|
fixedbar?: (props: typeof __VLS_19) => any;
|
|
23
23
|
} & {
|
|
24
|
-
default?: (props: typeof
|
|
24
|
+
default?: (props: typeof __VLS_27) => any;
|
|
25
25
|
} & {
|
|
26
|
-
bottom?: (props: typeof
|
|
26
|
+
bottom?: (props: typeof __VLS_29) => any;
|
|
27
27
|
} & {
|
|
28
|
-
inspector?: (props: typeof
|
|
28
|
+
inspector?: (props: typeof __VLS_31) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: import("vue").DefineComponent<IShellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
31
|
"update:inspectorWidth": (width: number | null) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shell.vue.d.ts","source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A;CAAE,GACpD;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAOlD,QAAA,MAAM,UAAU;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type TLayerLevel } from '../composables/useSurfaceLayer.composable';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
level: TLayerLevel;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=SurfaceLayerScope.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceLayerScope.vue.d.ts","sourceRoot":"","sources":["../../src/components/SurfaceLayerScope.vue"],"names":[],"mappings":"AAiCA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,0CAA0C,CAAA;AAYjD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,CAAC;AAwB1C,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAC/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -27,12 +27,12 @@ export type TCustomIcon = Component | ICustomIconWeights;
|
|
|
27
27
|
*
|
|
28
28
|
* ```ts
|
|
29
29
|
* import { registerIcons } from '@nubisco/ui'
|
|
30
|
-
* import
|
|
31
|
-
* import
|
|
30
|
+
* import BrandGlyph from './icons/BrandGlyph.vue'
|
|
31
|
+
* import WorkflowNode from './icons/WorkflowNode.vue'
|
|
32
32
|
*
|
|
33
33
|
* registerIcons({
|
|
34
|
-
* '
|
|
35
|
-
* '
|
|
34
|
+
* 'brand-glyph': BrandGlyph,
|
|
35
|
+
* 'workflow-node': WorkflowNode,
|
|
36
36
|
* })
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
package/dist/global.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ import SidebarVariantScope from './components/SidebarVariantScope.vue'
|
|
|
62
62
|
import Slider from './components/Slider.vue'
|
|
63
63
|
import Sparkline from './components/Charts/Sparkline.vue'
|
|
64
64
|
import Submenu from './components/Submenu.vue'
|
|
65
|
+
import SurfaceLayerScope from './components/SurfaceLayerScope.vue'
|
|
65
66
|
import Switch from './components/Switch.vue'
|
|
66
67
|
import Tabs from './components/Tabs.vue'
|
|
67
68
|
import TextInput from './components/TextInput.vue'
|
|
@@ -135,6 +136,7 @@ declare module 'vue' {
|
|
|
135
136
|
NbSlider: typeof Slider
|
|
136
137
|
NbSparkline: typeof Sparkline
|
|
137
138
|
NbSubmenu: typeof Submenu
|
|
139
|
+
NbSurfaceLayerScope: typeof SurfaceLayerScope
|
|
138
140
|
NbSwitch: typeof Switch
|
|
139
141
|
NbTabs: typeof Tabs
|
|
140
142
|
NbTextInput: typeof TextInput
|