@bitrix24/b24ui-nuxt 0.4.1 → 0.4.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/.nuxt/b24ui/button.ts +8 -0
- package/.nuxt/b24ui/modal.ts +22 -4
- package/.nuxt/b24ui/prose/a.ts +5 -0
- package/.nuxt/b24ui/prose/blockquote.ts +5 -0
- package/.nuxt/b24ui/prose/code.ts +31 -0
- package/.nuxt/b24ui/prose/em.ts +5 -0
- package/.nuxt/b24ui/prose/h1.ts +6 -0
- package/.nuxt/b24ui/prose/{prose-h2.ts → h2.ts} +1 -1
- package/.nuxt/b24ui/prose/{prose-h3.ts → h3.ts} +1 -1
- package/.nuxt/b24ui/prose/h4.ts +16 -0
- package/.nuxt/b24ui/prose/h5.ts +16 -0
- package/.nuxt/b24ui/prose/h6.ts +16 -0
- package/.nuxt/b24ui/prose/hr.ts +5 -0
- package/.nuxt/b24ui/prose/ol.ts +5 -0
- package/.nuxt/b24ui/prose/pre.ts +6 -0
- package/.nuxt/b24ui/prose/strong.ts +5 -0
- package/.nuxt/b24ui/prose/ul.ts +5 -0
- package/.nuxt/b24ui/slideover.ts +25 -7
- package/dist/meta.cjs +1543 -220
- package/dist/meta.d.cts +1543 -220
- package/dist/meta.d.mts +1543 -220
- package/dist/meta.d.ts +1543 -220
- package/dist/meta.mjs +1543 -220
- package/dist/module.cjs +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Avatar.vue +2 -1
- package/dist/runtime/components/Button.vue +83 -45
- package/dist/runtime/components/Modal.vue +13 -2
- package/dist/runtime/components/RadioGroup.vue +3 -1
- package/dist/runtime/components/Slideover.vue +10 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/prose/A.vue +32 -0
- package/dist/runtime/prose/Blockquote.vue +34 -0
- package/dist/runtime/prose/Code.vue +42 -0
- package/dist/runtime/prose/Em.vue +32 -0
- package/dist/runtime/prose/{ProseH1.vue → H1.vue} +1 -3
- package/dist/runtime/prose/{ProseH2.vue → H2.vue} +1 -3
- package/dist/runtime/prose/{ProseH3.vue → H3.vue} +1 -3
- package/dist/runtime/prose/H4.vue +34 -0
- package/dist/runtime/prose/H5.vue +34 -0
- package/dist/runtime/prose/H6.vue +34 -0
- package/dist/runtime/prose/Hr.vue +28 -0
- package/dist/runtime/prose/{ProseLi.vue → Li.vue} +1 -3
- package/dist/runtime/prose/{ProseOl.vue → Ol.vue} +1 -3
- package/dist/runtime/prose/{ProseP.vue → P.vue} +1 -3
- package/dist/runtime/prose/Pre.vue +44 -0
- package/dist/runtime/prose/Strong.vue +34 -0
- package/dist/runtime/prose/{ProseUl.vue → Ul.vue} +1 -3
- package/dist/runtime/types/index.d.ts +17 -7
- package/dist/runtime/types/index.js +17 -7
- package/dist/runtime/vue/components/Link.vue +2 -2
- package/dist/shared/{b24ui-nuxt.BGGwh89R.mjs → b24ui-nuxt.BRwBcdAH.mjs} +276 -40
- package/dist/shared/{b24ui-nuxt.CnMGpwQb.cjs → b24ui-nuxt.C1tIhR9w.cjs} +276 -40
- package/dist/unplugin.cjs +3 -3
- package/dist/unplugin.mjs +3 -3
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +7 -7
- package/.nuxt/b24ui/prose/prose-h1.ts +0 -6
- package/.nuxt/b24ui/prose/prose-ol.ts +0 -5
- package/.nuxt/b24ui/prose/prose-ul.ts +0 -5
- /package/.nuxt/b24ui/prose/{prose-li.ts → li.ts} +0 -0
- /package/.nuxt/b24ui/prose/{prose-p.ts → p.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema'
|
|
3
3
|
import _appConfig from '#build/app.config'
|
|
4
|
-
import theme from '#build/b24ui/prose/
|
|
4
|
+
import theme from '#build/b24ui/prose/li'
|
|
5
5
|
import { tv } from '../utils/tv'
|
|
6
6
|
|
|
7
7
|
const appConfigProseLi = _appConfig as AppConfig & { b24ui: { prose: { li: Partial<typeof theme> } } }
|
|
@@ -19,8 +19,6 @@ export interface proseLiSlots {
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
defineOptions({ inheritAttrs: false })
|
|
23
|
-
|
|
24
22
|
const props = defineProps<proseLiProps>()
|
|
25
23
|
|
|
26
24
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema'
|
|
3
3
|
import _appConfig from '#build/app.config'
|
|
4
|
-
import theme from '#build/b24ui/prose/
|
|
4
|
+
import theme from '#build/b24ui/prose/ol'
|
|
5
5
|
import { tv } from '../utils/tv'
|
|
6
6
|
|
|
7
7
|
const appConfigProseOl = _appConfig as AppConfig & { b24ui: { prose: { ol: Partial<typeof theme> } } }
|
|
@@ -19,8 +19,6 @@ export interface proseOlSlots {
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
defineOptions({ inheritAttrs: false })
|
|
23
|
-
|
|
24
22
|
const props = defineProps<proseOlProps>()
|
|
25
23
|
|
|
26
24
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema'
|
|
3
3
|
import _appConfig from '#build/app.config'
|
|
4
|
-
import theme from '#build/b24ui/prose/
|
|
4
|
+
import theme from '#build/b24ui/prose/p'
|
|
5
5
|
import { tv } from '../utils/tv'
|
|
6
6
|
|
|
7
7
|
const appConfigProseP = _appConfig as AppConfig & { b24ui: { prose: { p: Partial<typeof theme> } } }
|
|
@@ -19,8 +19,6 @@ export interface prosePSlots {
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
defineOptions({ inheritAttrs: false })
|
|
23
|
-
|
|
24
22
|
const props = defineProps<prosePProps>()
|
|
25
23
|
|
|
26
24
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
+
import _appConfig from '#build/app.config'
|
|
4
|
+
import theme from '#build/b24ui/prose/pre'
|
|
5
|
+
import { tv } from '../utils/tv'
|
|
6
|
+
|
|
7
|
+
const appConfigProsePre = _appConfig as AppConfig & { b24ui: { prose: { pre: Partial<typeof theme> } } }
|
|
8
|
+
|
|
9
|
+
const prosePre = tv({ extend: tv(theme), ...(appConfigProsePre.b24ui?.prose?.pre || {}) })
|
|
10
|
+
|
|
11
|
+
export interface prosePreProps {
|
|
12
|
+
/**
|
|
13
|
+
* The element or component this component should render as.
|
|
14
|
+
* @defaultValue 'div'
|
|
15
|
+
*/
|
|
16
|
+
as?: any
|
|
17
|
+
class?: any
|
|
18
|
+
style?: any
|
|
19
|
+
b24ui?: Partial<typeof prosePre.slots>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface prosePreSlots {
|
|
23
|
+
default(props?: {}): any
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { Primitive } from 'reka-ui'
|
|
29
|
+
|
|
30
|
+
defineOptions({ inheritAttrs: false })
|
|
31
|
+
|
|
32
|
+
const props = withDefaults(defineProps<prosePreProps>(), { as: 'div' })
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line vue/no-dupe-keys
|
|
35
|
+
const b24ui = prosePre({})
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<Primitive :as="as" :class="b24ui.root({ class: [props.class, props.b24ui?.root] })" :style="props.style">
|
|
40
|
+
<pre
|
|
41
|
+
:class="b24ui.base({ class: props.b24ui?.base })"
|
|
42
|
+
><slot /></pre>
|
|
43
|
+
</Primitive>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
+
import _appConfig from '#build/app.config'
|
|
4
|
+
import theme from '#build/b24ui/prose/strong'
|
|
5
|
+
import { tv } from '../utils/tv'
|
|
6
|
+
|
|
7
|
+
const appConfigProseStrong = _appConfig as AppConfig & { b24ui: { prose: { strong: Partial<typeof theme> } } }
|
|
8
|
+
|
|
9
|
+
const proseStrong = tv({ extend: tv(theme), ...(appConfigProseStrong.b24ui?.prose?.strong || {}) })
|
|
10
|
+
|
|
11
|
+
export interface proseStrongProps {
|
|
12
|
+
class?: any
|
|
13
|
+
b24ui?: Partial<typeof proseStrong.slots>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface proseStrongSlots {
|
|
17
|
+
default(props?: {}): any
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
const props = defineProps<proseStrongProps>()
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line vue/no-dupe-keys
|
|
25
|
+
const b24ui = proseStrong({})
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<strong
|
|
30
|
+
:class="b24ui.base({ class: [props.class, props.b24ui?.base] })"
|
|
31
|
+
>
|
|
32
|
+
<slot />
|
|
33
|
+
</strong>
|
|
34
|
+
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema'
|
|
3
3
|
import _appConfig from '#build/app.config'
|
|
4
|
-
import theme from '#build/b24ui/prose/
|
|
4
|
+
import theme from '#build/b24ui/prose/ul'
|
|
5
5
|
import { tv } from '../utils/tv'
|
|
6
6
|
|
|
7
7
|
const appConfigProseUl = _appConfig as AppConfig & { b24ui: { prose: { ul: Partial<typeof theme> } } }
|
|
@@ -19,8 +19,6 @@ export interface proseUlSlots {
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
|
-
defineOptions({ inheritAttrs: false })
|
|
23
|
-
|
|
24
22
|
const props = defineProps<proseUlProps>()
|
|
25
23
|
|
|
26
24
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
@@ -36,13 +36,23 @@ export * from '../components/Toast.vue';
|
|
|
36
36
|
export * from '../components/Toaster.vue';
|
|
37
37
|
export * from '../components/Tooltip.vue';
|
|
38
38
|
export * from '../components/content/TableWrapper.vue';
|
|
39
|
-
export * from '../prose/
|
|
40
|
-
export * from '../prose/
|
|
41
|
-
export * from '../prose/
|
|
42
|
-
export * from '../prose/
|
|
43
|
-
export * from '../prose/
|
|
44
|
-
export * from '../prose/
|
|
45
|
-
export * from '../prose/
|
|
39
|
+
export * from '../prose/H1.vue';
|
|
40
|
+
export * from '../prose/H2.vue';
|
|
41
|
+
export * from '../prose/H3.vue';
|
|
42
|
+
export * from '../prose/H3.vue';
|
|
43
|
+
export * from '../prose/H4.vue';
|
|
44
|
+
export * from '../prose/H5.vue';
|
|
45
|
+
export * from '../prose/H6.vue';
|
|
46
|
+
export * from '../prose/P.vue';
|
|
47
|
+
export * from '../prose/A.vue';
|
|
48
|
+
export * from '../prose/Blockquote.vue';
|
|
49
|
+
export * from '../prose/Strong.vue';
|
|
50
|
+
export * from '../prose/Ol.vue';
|
|
51
|
+
export * from '../prose/Ul.vue';
|
|
52
|
+
export * from '../prose/Li.vue';
|
|
53
|
+
export * from '../prose/Hr.vue';
|
|
54
|
+
export * from '../prose/Code.vue';
|
|
55
|
+
export * from '../prose/Pre.vue';
|
|
46
56
|
export * from './form';
|
|
47
57
|
export * from './icons';
|
|
48
58
|
export * from './locale';
|
|
@@ -36,13 +36,23 @@ export * from "../components/Toast.vue";
|
|
|
36
36
|
export * from "../components/Toaster.vue";
|
|
37
37
|
export * from "../components/Tooltip.vue";
|
|
38
38
|
export * from "../components/content/TableWrapper.vue";
|
|
39
|
-
export * from "../prose/
|
|
40
|
-
export * from "../prose/
|
|
41
|
-
export * from "../prose/
|
|
42
|
-
export * from "../prose/
|
|
43
|
-
export * from "../prose/
|
|
44
|
-
export * from "../prose/
|
|
45
|
-
export * from "../prose/
|
|
39
|
+
export * from "../prose/H1.vue";
|
|
40
|
+
export * from "../prose/H2.vue";
|
|
41
|
+
export * from "../prose/H3.vue";
|
|
42
|
+
export * from "../prose/H3.vue";
|
|
43
|
+
export * from "../prose/H4.vue";
|
|
44
|
+
export * from "../prose/H5.vue";
|
|
45
|
+
export * from "../prose/H6.vue";
|
|
46
|
+
export * from "../prose/P.vue";
|
|
47
|
+
export * from "../prose/A.vue";
|
|
48
|
+
export * from "../prose/Blockquote.vue";
|
|
49
|
+
export * from "../prose/Strong.vue";
|
|
50
|
+
export * from "../prose/Ol.vue";
|
|
51
|
+
export * from "../prose/Ul.vue";
|
|
52
|
+
export * from "../prose/Li.vue";
|
|
53
|
+
export * from "../prose/Hr.vue";
|
|
54
|
+
export * from "../prose/Code.vue";
|
|
55
|
+
export * from "../prose/Pre.vue";
|
|
46
56
|
export * from "./form.js";
|
|
47
57
|
export * from "./icons.js";
|
|
48
58
|
export * from "./locale.js";
|
|
@@ -250,7 +250,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any = {}) {
|
|
|
250
250
|
disabled,
|
|
251
251
|
href: to,
|
|
252
252
|
target: isExternal ? '_blank' : undefined,
|
|
253
|
-
active: false
|
|
253
|
+
active: props?.active || false
|
|
254
254
|
}"
|
|
255
255
|
/>
|
|
256
256
|
</template>
|
|
@@ -267,7 +267,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any = {}) {
|
|
|
267
267
|
:is-external="isExternal"
|
|
268
268
|
:class="resolveLinkClass()"
|
|
269
269
|
>
|
|
270
|
-
<slot :active="false" />
|
|
270
|
+
<slot :active="props?.active || false" />
|
|
271
271
|
</B24LinkBase>
|
|
272
272
|
</template>
|
|
273
273
|
</template>
|