@bitrix24/b24ui-nuxt 2.5.2 → 2.5.3
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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/prose/Callout.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.d.vue.ts +2 -1
- package/dist/runtime/components/prose/Card.vue +30 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +2 -1
- package/dist/runtime/index.css +1 -1
- package/dist/shared/{b24ui-nuxt.D2-pCbE6.mjs → b24ui-nuxt.LkR3tG7f.mjs} +2 -3
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, v as version, n as name, a as getDefaultConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, v as version, n as name, a as getDefaultConfig, b as addTemplates } from './shared/b24ui-nuxt.LkR3tG7f.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
import 'knitwork';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
-
import theme from '#build/b24ui/prose/callout';
|
|
4
3
|
import type { IconComponent, LinkProps } from '../../types';
|
|
5
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
|
+
import theme from '#build/b24ui/prose/callout';
|
|
6
6
|
type ProseCallout = ComponentConfig<typeof theme, AppConfig, 'callout', 'b24ui.prose'>;
|
|
7
7
|
export interface ProseCalloutProps {
|
|
8
8
|
to?: LinkProps['to'];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
-
import theme from '#build/b24ui/prose/callout';
|
|
4
3
|
import type { IconComponent, LinkProps } from '../../types';
|
|
5
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
|
+
import theme from '#build/b24ui/prose/callout';
|
|
6
6
|
type ProseCallout = ComponentConfig<typeof theme, AppConfig, 'callout', 'b24ui.prose'>;
|
|
7
7
|
export interface ProseCalloutProps {
|
|
8
8
|
to?: LinkProps['to'];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
-
import theme from '#build/b24ui/prose/card';
|
|
4
3
|
import type { IconComponent, LinkProps } from '../../types';
|
|
5
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
|
+
import theme from '#build/b24ui/prose/card';
|
|
6
6
|
type ProseCard = ComponentConfig<typeof theme, AppConfig, 'card', 'b24ui.prose'>;
|
|
7
7
|
export interface ProseCardProps {
|
|
8
8
|
to?: LinkProps['to'];
|
|
9
9
|
target?: LinkProps['target'];
|
|
10
10
|
icon?: IconComponent;
|
|
11
|
+
iconName?: string;
|
|
11
12
|
title?: string;
|
|
12
13
|
description?: string;
|
|
13
14
|
/**
|
|
@@ -9,11 +9,17 @@ import { useComponentUI } from "../../composables/useComponentUI";
|
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
10
|
import icons from "../../dictionary/icons";
|
|
11
11
|
import B24Link from "../Link.vue";
|
|
12
|
+
import GitHubIcon from "@bitrix24/b24icons-vue/social/GitHubIcon";
|
|
13
|
+
import InfoCircleIcon from "@bitrix24/b24icons-vue/outline/InfoCircleIcon";
|
|
14
|
+
import MdnwebdocsIcon from "@bitrix24/b24icons-vue/social/MdnwebdocsIcon";
|
|
15
|
+
import Bitrix24Icon from "@bitrix24/b24icons-vue/common-service/Bitrix24Icon";
|
|
16
|
+
import DemonstrationOnIcon from "@bitrix24/b24icons-vue/outline/DemonstrationOnIcon";
|
|
12
17
|
defineOptions({ inheritAttrs: false });
|
|
13
18
|
const props = defineProps({
|
|
14
19
|
to: { type: null, required: false },
|
|
15
20
|
target: { type: [String, Object, null], required: false },
|
|
16
21
|
icon: { type: [Function, Object], required: false },
|
|
22
|
+
iconName: { type: String, required: false },
|
|
17
23
|
title: { type: String, required: false },
|
|
18
24
|
description: { type: String, required: false },
|
|
19
25
|
color: { type: null, required: false },
|
|
@@ -30,6 +36,24 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
30
36
|
}));
|
|
31
37
|
const target = computed(() => props.target || (!!props.to && typeof props.to === "string" && props.to.startsWith("http") ? "_blank" : void 0));
|
|
32
38
|
const ariaLabel = computed(() => (props.title || "Card link").trim());
|
|
39
|
+
const iconFromIconName = computed(() => {
|
|
40
|
+
if (!props.iconName) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
switch (props.iconName) {
|
|
44
|
+
case "InfoCircleIcon":
|
|
45
|
+
return InfoCircleIcon;
|
|
46
|
+
case "GitHubIcon":
|
|
47
|
+
return GitHubIcon;
|
|
48
|
+
case "MdnWebDocIcon":
|
|
49
|
+
return MdnwebdocsIcon;
|
|
50
|
+
case "Bitrix24Icon":
|
|
51
|
+
return Bitrix24Icon;
|
|
52
|
+
case "DemonstrationOnIcon":
|
|
53
|
+
return DemonstrationOnIcon;
|
|
54
|
+
}
|
|
55
|
+
return void 0;
|
|
56
|
+
});
|
|
33
57
|
</script>
|
|
34
58
|
|
|
35
59
|
<template>
|
|
@@ -50,6 +74,12 @@ const ariaLabel = computed(() => (props.title || "Card link").trim());
|
|
|
50
74
|
data-slot="icon"
|
|
51
75
|
:class="b24ui.icon({ class: uiProp?.icon })"
|
|
52
76
|
/>
|
|
77
|
+
<Component
|
|
78
|
+
:is="iconFromIconName"
|
|
79
|
+
v-else-if="props.iconName"
|
|
80
|
+
data-slot="icon"
|
|
81
|
+
:class="b24ui.icon({ class: uiProp?.icon })"
|
|
82
|
+
/>
|
|
53
83
|
<Component
|
|
54
84
|
:is="icons.external"
|
|
55
85
|
v-if="!!to && target === '_blank'"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
-
import theme from '#build/b24ui/prose/card';
|
|
4
3
|
import type { IconComponent, LinkProps } from '../../types';
|
|
5
4
|
import type { ComponentConfig } from '../../types/tv';
|
|
5
|
+
import theme from '#build/b24ui/prose/card';
|
|
6
6
|
type ProseCard = ComponentConfig<typeof theme, AppConfig, 'card', 'b24ui.prose'>;
|
|
7
7
|
export interface ProseCardProps {
|
|
8
8
|
to?: LinkProps['to'];
|
|
9
9
|
target?: LinkProps['target'];
|
|
10
10
|
icon?: IconComponent;
|
|
11
|
+
iconName?: string;
|
|
11
12
|
title?: string;
|
|
12
13
|
description?: string;
|
|
13
14
|
/**
|
package/dist/runtime/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "#build/b24ui.css";@import "./keyframes.css";@import "./air-design-tokens/tw-style/index.css";@import "./air-design-tokens/index.css";@variant light (&:where(.light, .light *));@variant edge-dark (&:where(.edge-dark, .edge-dark *));@variant edge-light (&:where(.edge-light, .edge-light *));@variant dark (&:where(.dark, .dark *));@variant bitrix-mobile (&:where(html[data-platform="bitrix-mobile"] *));@variant bitrix-desktop (&:where(html[data-platform="bitrix-desktop"] *));@variant web (&:where(html[data-platform="web"] *));@layer base{.air-custom-bg,.sidebar-layout.--inner,body{--air-theme-background:var(--air-theme-bg-image,none) var(--air-theme-bg-position,0 0) /var(--air-theme-bg-size,auto) var(--air-theme-bg-repeat,repeat) var(--air-theme-bg-attachment,scroll) var(--air-theme-bg-color,transparent);--air-theme-background-blurred:var(--air-theme-bg-image-blurred,none) var(--air-theme-bg-position,0 0) /var(--air-theme-bg-size,auto) var(--air-theme-bg-repeat,repeat) var(--air-theme-bg-attachment,scroll)}}@layer theme{:host,:root{--b24ui-header-height:--spacing(14.5)}}@theme default inline{--text-color-dimmed:var(--ui-color-base-6);--text-color-muted:var(--ui-color-design-plain-na-content-secondary);--text-color-description:var(--b24ui-typography-description-color);--text-color-legend:var(--b24ui-typography-legend-color);--text-color-label:var(--b24ui-typography-label-color)}
|
|
1
|
+
@import "#build/b24ui.css";@import "./keyframes.css";@import "./air-design-tokens/tw-style/index.css";@import "./air-design-tokens/index.css";@source "./components";@variant light (&:where(.light, .light *));@variant edge-dark (&:where(.edge-dark, .edge-dark *));@variant edge-light (&:where(.edge-light, .edge-light *));@variant dark (&:where(.dark, .dark *));@variant bitrix-mobile (&:where(html[data-platform="bitrix-mobile"] *));@variant bitrix-desktop (&:where(html[data-platform="bitrix-desktop"] *));@variant web (&:where(html[data-platform="web"] *));@layer base{.air-custom-bg,.sidebar-layout.--inner,body{--air-theme-background:var(--air-theme-bg-image,none) var(--air-theme-bg-position,0 0) /var(--air-theme-bg-size,auto) var(--air-theme-bg-repeat,repeat) var(--air-theme-bg-attachment,scroll) var(--air-theme-bg-color,transparent);--air-theme-background-blurred:var(--air-theme-bg-image-blurred,none) var(--air-theme-bg-position,0 0) /var(--air-theme-bg-size,auto) var(--air-theme-bg-repeat,repeat) var(--air-theme-bg-attachment,scroll)}}@layer theme{:host,:root{--b24ui-header-height:--spacing(14.5);--b24ui-container-width:90rem}}@theme default inline{--text-color-dimmed:var(--ui-color-base-6);--text-color-muted:var(--ui-color-design-plain-na-content-secondary);--text-color-description:var(--b24ui-typography-description-color);--text-color-legend:var(--b24ui-typography-legend-color);--text-color-label:var(--b24ui-typography-label-color);--background-color-default:var(--ui-color-bg-content-primary);--background-color-muted:var(--ui-color-design-tinted-na-bg);--background-color-elevated:var(--ui-color-bg-content-secondary);--background-color-accented:var(--ui-color-accent-soft-element-blue);--background-color-border:var(--ui-color-divider-default);--border-color-default:var(--ui-color-divider-default);--border-color-muted:var(--ui-color-design-tinted-na-stroke);--border-color-accented:var(--ui-color-accent-soft-element-blue);--border-color-bg:var(--ui-color-bg-content-primary)}
|
|
@@ -8,7 +8,7 @@ import { globSync } from 'tinyglobby';
|
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.5.
|
|
11
|
+
const version = "2.5.3";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -2620,8 +2620,7 @@ const commandPalette = {
|
|
|
2620
2620
|
};
|
|
2621
2621
|
|
|
2622
2622
|
const container = {
|
|
2623
|
-
base: "w-full max-w-
|
|
2624
|
-
// max-w-7xl w-full
|
|
2623
|
+
base: "w-full max-w-(--b24ui-container-width) mx-auto px-4 sm:px-6 lg:px-8"
|
|
2625
2624
|
};
|
|
2626
2625
|
|
|
2627
2626
|
const contextMenu = {
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.LkR3tG7f.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED