orio-ui 1.11.10 → 1.12.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/module.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type BannerVariant = "danger" | "alert" | "success" | "info";
|
|
2
|
+
interface Props {
|
|
3
|
+
variant?: BannerVariant;
|
|
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<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
variant: BannerVariant;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
variant: { type: String, required: false, default: "info" }
|
|
4
|
+
});
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="banner" :class="[variant]">
|
|
9
|
+
<slot />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<style scoped>
|
|
14
|
+
.banner {
|
|
15
|
+
padding: 0.75rem 1rem;
|
|
16
|
+
border-radius: var(--border-radius-sm);
|
|
17
|
+
border: 1px solid transparent;
|
|
18
|
+
color: var(--color-text);
|
|
19
|
+
}
|
|
20
|
+
.banner.danger {
|
|
21
|
+
background-color: var(--color-danger-soft);
|
|
22
|
+
border-color: var(--color-danger-border);
|
|
23
|
+
}
|
|
24
|
+
.banner.alert {
|
|
25
|
+
background-color: var(--color-alert-soft);
|
|
26
|
+
border-color: var(--color-alert-border);
|
|
27
|
+
}
|
|
28
|
+
.banner.success {
|
|
29
|
+
background-color: var(--color-success-soft);
|
|
30
|
+
border-color: var(--color-success-border);
|
|
31
|
+
}
|
|
32
|
+
.banner.info {
|
|
33
|
+
background-color: var(--color-info-soft);
|
|
34
|
+
border-color: var(--color-info-border);
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type BannerVariant = "danger" | "alert" | "success" | "info";
|
|
2
|
+
interface Props {
|
|
3
|
+
variant?: BannerVariant;
|
|
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<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
variant: BannerVariant;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as DateRangePicker } from "./components/DateRangePicker.vue.js"
|
|
|
13
13
|
export { default as Selector } from "./components/Selector.vue.js";
|
|
14
14
|
export { default as Tag } from "./components/Tag.vue.js";
|
|
15
15
|
export { default as Badge } from "./components/Badge.vue.js";
|
|
16
|
+
export { default as Banner } from "./components/Banner.vue.js";
|
|
16
17
|
export { default as Icon } from "./components/Icon.vue.js";
|
|
17
18
|
export { default as LoadingSpinner } from "./components/LoadingSpinner.vue.js";
|
|
18
19
|
export { default as Modal } from "./components/Modal.vue.js";
|
package/dist/runtime/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { default as DateRangePicker } from "./components/DateRangePicker.vue";
|
|
|
13
13
|
export { default as Selector } from "./components/Selector.vue";
|
|
14
14
|
export { default as Tag } from "./components/Tag.vue";
|
|
15
15
|
export { default as Badge } from "./components/Badge.vue";
|
|
16
|
+
export { default as Banner } from "./components/Banner.vue";
|
|
16
17
|
export { default as Icon } from "./components/Icon.vue";
|
|
17
18
|
export { default as LoadingSpinner } from "./components/LoadingSpinner.vue";
|
|
18
19
|
export { default as Modal } from "./components/Modal.vue";
|