@bitrix24/b24ui-nuxt 0.5.2 → 0.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.
@@ -3568,7 +3568,6 @@ const navigationMenu = {
3568
3568
  "w-full",
3569
3569
  "bg-white dark:bg-base-dark",
3570
3570
  "shadow-[0_15px_21px_rgba(83,92,105,.15)]",
3571
- //
3572
3571
  "h-(--reka-navigation-menu-viewport-height)",
3573
3572
  "transition-[width,height] duration-200 origin-[top_center]"
3574
3573
  // left
@@ -3655,8 +3654,8 @@ const navigationMenu = {
3655
3654
  orientation: {
3656
3655
  horizontal: {
3657
3656
  root: "items-center justify-between",
3658
- list: "flex items-center",
3659
- item: "py-2",
3657
+ list: "flex items-center gap-x-1",
3658
+ item: "py-2 empty:hidden",
3660
3659
  link: "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
3661
3660
  childList: "grid p-2"
3662
3661
  },
@@ -3679,7 +3678,10 @@ const navigationMenu = {
3679
3678
  ].join(" ")
3680
3679
  },
3681
3680
  vertical: {
3682
- viewport: "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
3681
+ viewport: [
3682
+ "w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
3683
+ "[&:has(>[data-viewport=rtl])]:left-auto [&:has(>[data-viewport=rtl])]:-right-[calc(100%-var(--reka-navigation-menu-viewport-width))]"
3684
+ ].join(" "),
3683
3685
  content: "",
3684
3686
  childLinkLabel: [
3685
3687
  "text-md",
@@ -3766,6 +3768,16 @@ const navigationMenu = {
3766
3768
  },
3767
3769
  // endregion ////
3768
3770
  // region pill ////
3771
+ {
3772
+ disabled: true,
3773
+ orientation: "horizontal",
3774
+ variant: "pill",
3775
+ class: {
3776
+ link: [
3777
+ "hover:before:rounded-md"
3778
+ ].join(" ")
3779
+ }
3780
+ },
3769
3781
  {
3770
3782
  disabled: false,
3771
3783
  active: false,
@@ -3828,6 +3840,26 @@ const navigationMenu = {
3828
3840
  ].join(" ")
3829
3841
  }
3830
3842
  },
3843
+ {
3844
+ color: "default",
3845
+ orientation: "horizontal",
3846
+ variant: "pill",
3847
+ active: true,
3848
+ class: {
3849
+ link: [
3850
+ "min-h-9",
3851
+ "before:rounded-md",
3852
+ "before:bg-base-800 dark:before:bg-white/35",
3853
+ "hover:before:bg-base-800 hover:dark:before:bg-white/35",
3854
+ "data-[state=open]:before:bg-base-800 dark:data-[state=open]:before:bg-white/35"
3855
+ ].join(" "),
3856
+ linkLabelWrapper: [
3857
+ "min-h-9",
3858
+ "bg-inherit dark:bg-inherit",
3859
+ "rounded-none"
3860
+ ].join(" ")
3861
+ }
3862
+ },
3831
3863
  {
3832
3864
  color: "danger",
3833
3865
  variant: "pill",
@@ -3847,6 +3879,26 @@ const navigationMenu = {
3847
3879
  ].join(" ")
3848
3880
  }
3849
3881
  },
3882
+ {
3883
+ color: "danger",
3884
+ orientation: "horizontal",
3885
+ variant: "pill",
3886
+ active: true,
3887
+ class: {
3888
+ link: [
3889
+ "min-h-9",
3890
+ "before:rounded-md",
3891
+ "before:bg-red-800 dark:before:bg-red-800",
3892
+ "hover:before:bg-red-800 hover:dark:before:bg-red-800",
3893
+ "data-[state=open]:before:bg-red-800 dark:data-[state=open]:before:bg-red-800"
3894
+ ].join(" "),
3895
+ linkLabelWrapper: [
3896
+ "min-h-9",
3897
+ "bg-inherit dark:bg-inherit",
3898
+ "rounded-none"
3899
+ ].join(" ")
3900
+ }
3901
+ },
3850
3902
  {
3851
3903
  color: "success",
3852
3904
  variant: "pill",
@@ -3866,6 +3918,26 @@ const navigationMenu = {
3866
3918
  ].join(" ")
3867
3919
  }
3868
3920
  },
3921
+ {
3922
+ color: "success",
3923
+ orientation: "horizontal",
3924
+ variant: "pill",
3925
+ active: true,
3926
+ class: {
3927
+ link: [
3928
+ "min-h-9",
3929
+ "before:rounded-md",
3930
+ "before:bg-green-800 dark:before:bg-green-800",
3931
+ "hover:before:bg-green-800 hover:dark:before:bg-green-800",
3932
+ "data-[state=open]:before:bg-green-800 dark:data-[state=open]:before:bg-green-800"
3933
+ ].join(" "),
3934
+ linkLabelWrapper: [
3935
+ "min-h-9",
3936
+ "bg-inherit dark:bg-inherit",
3937
+ "rounded-none"
3938
+ ].join(" ")
3939
+ }
3940
+ },
3869
3941
  {
3870
3942
  color: "warning",
3871
3943
  variant: "pill",
@@ -3885,6 +3957,26 @@ const navigationMenu = {
3885
3957
  ].join(" ")
3886
3958
  }
3887
3959
  },
3960
+ {
3961
+ color: "warning",
3962
+ orientation: "horizontal",
3963
+ variant: "pill",
3964
+ active: true,
3965
+ class: {
3966
+ link: [
3967
+ "min-h-9",
3968
+ "before:rounded-md",
3969
+ "before:bg-orange-800 dark:before:bg-orange-800",
3970
+ "hover:before:bg-orange-800 hover:dark:before:bg-orange-800",
3971
+ "data-[state=open]:before:bg-orange-800 dark:data-[state=open]:before:bg-orange-800"
3972
+ ].join(" "),
3973
+ linkLabelWrapper: [
3974
+ "min-h-9",
3975
+ "bg-inherit dark:bg-inherit",
3976
+ "rounded-none"
3977
+ ].join(" ")
3978
+ }
3979
+ },
3888
3980
  {
3889
3981
  color: "primary",
3890
3982
  variant: "pill",
@@ -3904,6 +3996,26 @@ const navigationMenu = {
3904
3996
  ].join(" ")
3905
3997
  }
3906
3998
  },
3999
+ {
4000
+ color: "primary",
4001
+ orientation: "horizontal",
4002
+ variant: "pill",
4003
+ active: true,
4004
+ class: {
4005
+ link: [
4006
+ "min-h-9",
4007
+ "before:rounded-md",
4008
+ "before:bg-blue-800 dark:before:bg-blue-800",
4009
+ "hover:before:bg-blue-800 hover:dark:before:bg-blue-800",
4010
+ "data-[state=open]:before:bg-blue-800 dark:data-[state=open]:before:bg-blue-800"
4011
+ ].join(" "),
4012
+ linkLabelWrapper: [
4013
+ "min-h-9",
4014
+ "bg-inherit dark:bg-inherit",
4015
+ "rounded-none"
4016
+ ].join(" ")
4017
+ }
4018
+ },
3907
4019
  {
3908
4020
  color: "secondary",
3909
4021
  variant: "pill",
@@ -3923,6 +4035,26 @@ const navigationMenu = {
3923
4035
  ].join(" ")
3924
4036
  }
3925
4037
  },
4038
+ {
4039
+ color: "secondary",
4040
+ orientation: "horizontal",
4041
+ variant: "pill",
4042
+ active: true,
4043
+ class: {
4044
+ link: [
4045
+ "min-h-9",
4046
+ "before:rounded-md",
4047
+ "before:bg-cyan-800 dark:before:bg-cyan-800",
4048
+ "hover:before:bg-cyan-800 hover:dark:before:bg-cyan-800",
4049
+ "data-[state=open]:before:bg-cyan-800 dark:data-[state=open]:before:bg-cyan-800"
4050
+ ].join(" "),
4051
+ linkLabelWrapper: [
4052
+ "min-h-9",
4053
+ "bg-inherit dark:bg-inherit",
4054
+ "rounded-none"
4055
+ ].join(" ")
4056
+ }
4057
+ },
3926
4058
  {
3927
4059
  color: "collab",
3928
4060
  variant: "pill",
@@ -3942,6 +4074,26 @@ const navigationMenu = {
3942
4074
  ].join(" ")
3943
4075
  }
3944
4076
  },
4077
+ {
4078
+ color: "collab",
4079
+ orientation: "horizontal",
4080
+ variant: "pill",
4081
+ active: true,
4082
+ class: {
4083
+ link: [
4084
+ "min-h-9",
4085
+ "before:rounded-md",
4086
+ "before:bg-collab-800 dark:before:bg-collab-800",
4087
+ "hover:before:bg-collab-800 hover:dark:before:bg-collab-800",
4088
+ "data-[state=open]:before:bg-collab-800 dark:data-[state=open]:before:bg-collab-800"
4089
+ ].join(" "),
4090
+ linkLabelWrapper: [
4091
+ "min-h-9",
4092
+ "bg-inherit dark:bg-inherit",
4093
+ "rounded-none"
4094
+ ].join(" ")
4095
+ }
4096
+ },
3945
4097
  {
3946
4098
  color: "ai",
3947
4099
  variant: "pill",
@@ -3961,6 +4113,26 @@ const navigationMenu = {
3961
4113
  ].join(" ")
3962
4114
  }
3963
4115
  },
4116
+ {
4117
+ color: "ai",
4118
+ orientation: "horizontal",
4119
+ variant: "pill",
4120
+ active: true,
4121
+ class: {
4122
+ link: [
4123
+ "min-h-9",
4124
+ "before:rounded-md",
4125
+ "before:bg-ai-800 dark:before:bg-ai-800",
4126
+ "hover:before:bg-ai-800 hover:dark:before:bg-ai-800",
4127
+ "data-[state=open]:before:bg-ai-800 dark:data-[state=open]:before:bg-ai-800"
4128
+ ].join(" "),
4129
+ linkLabelWrapper: [
4130
+ "min-h-9",
4131
+ "bg-inherit dark:bg-inherit",
4132
+ "rounded-none"
4133
+ ].join(" ")
4134
+ }
4135
+ },
3964
4136
  {
3965
4137
  variant: "pill",
3966
4138
  active: true,
@@ -3982,6 +4154,17 @@ const navigationMenu = {
3982
4154
  ].join(" ")
3983
4155
  }
3984
4156
  },
4157
+ {
4158
+ variant: "pill",
4159
+ orientation: "horizontal",
4160
+ active: true,
4161
+ highlight: false,
4162
+ class: {
4163
+ linkLabelWrapper: [
4164
+ "bg-inherit dark:bg-inherit"
4165
+ ].join(" ")
4166
+ }
4167
+ },
3985
4168
  {
3986
4169
  variant: "pill",
3987
4170
  active: true,
@@ -3990,7 +4173,111 @@ const navigationMenu = {
3990
4173
  link: [
3991
4174
  "hover:before:bg-base-250/80 dark:hover:before:bg-white/10",
3992
4175
  "before:transition-colors"
3993
- ]
4176
+ ].join(" ")
4177
+ }
4178
+ },
4179
+ {
4180
+ color: "default",
4181
+ orientation: "horizontal",
4182
+ variant: "pill",
4183
+ active: true,
4184
+ highlight: true,
4185
+ class: {
4186
+ link: [
4187
+ "hover:before:bg-base-800 hover:dark:before:bg-white/35",
4188
+ "before:transition-colors"
4189
+ ].join(" ")
4190
+ }
4191
+ },
4192
+ {
4193
+ color: "danger",
4194
+ orientation: "horizontal",
4195
+ variant: "pill",
4196
+ active: true,
4197
+ highlight: true,
4198
+ class: {
4199
+ link: [
4200
+ "hover:before:bg-red-800 hover:dark:before:bg-red-800",
4201
+ "before:transition-colors"
4202
+ ].join(" ")
4203
+ }
4204
+ },
4205
+ {
4206
+ color: "success",
4207
+ orientation: "horizontal",
4208
+ variant: "pill",
4209
+ active: true,
4210
+ highlight: true,
4211
+ class: {
4212
+ link: [
4213
+ "hover:before:bg-green-800 hover:dark:before:bg-green-800",
4214
+ "before:transition-colors"
4215
+ ].join(" ")
4216
+ }
4217
+ },
4218
+ {
4219
+ color: "warning",
4220
+ orientation: "horizontal",
4221
+ variant: "pill",
4222
+ active: true,
4223
+ highlight: true,
4224
+ class: {
4225
+ link: [
4226
+ "hover:before:bg-orange-800 hover:dark:before:bg-orange-800",
4227
+ "before:transition-colors"
4228
+ ].join(" ")
4229
+ }
4230
+ },
4231
+ {
4232
+ color: "primary",
4233
+ orientation: "horizontal",
4234
+ variant: "pill",
4235
+ active: true,
4236
+ highlight: true,
4237
+ class: {
4238
+ link: [
4239
+ "hover:before:bg-blue-800 hover:dark:before:bg-blue-800",
4240
+ "before:transition-colors"
4241
+ ].join(" ")
4242
+ }
4243
+ },
4244
+ {
4245
+ color: "secondary",
4246
+ orientation: "horizontal",
4247
+ variant: "pill",
4248
+ active: true,
4249
+ highlight: true,
4250
+ class: {
4251
+ link: [
4252
+ "hover:before:bg-cyan-800 hover:dark:before:bg-cyan-800",
4253
+ "before:transition-colors"
4254
+ ].join(" ")
4255
+ }
4256
+ },
4257
+ {
4258
+ color: "collab",
4259
+ orientation: "horizontal",
4260
+ variant: "pill",
4261
+ active: true,
4262
+ highlight: true,
4263
+ class: {
4264
+ link: [
4265
+ "hover:before:bg-collab-800 hover:dark:before:bg-collab-800",
4266
+ "before:transition-colors"
4267
+ ].join(" ")
4268
+ }
4269
+ },
4270
+ {
4271
+ color: "ai",
4272
+ orientation: "horizontal",
4273
+ variant: "pill",
4274
+ active: true,
4275
+ highlight: true,
4276
+ class: {
4277
+ link: [
4278
+ "hover:before:bg-ai-800 hover:dark:before:bg-ai-800",
4279
+ "before:transition-colors"
4280
+ ].join(" ")
3994
4281
  }
3995
4282
  },
3996
4283
  // endregion ////
@@ -4003,11 +4290,12 @@ const navigationMenu = {
4003
4290
  "top-[calc(100%+0.4rem)]"
4004
4291
  ].join(" "),
4005
4292
  viewport: [
4006
- "rounded-b-md rounded-tr-md",
4293
+ "rounded-b-md",
4294
+ "[&:has(>[data-viewport=ltr])]:rounded-tr-md [&:has(>[data-viewport=rtl])]:rounded-tl-md",
4007
4295
  "clip-path-viewport-wrapper"
4008
4296
  ].join(" "),
4009
4297
  link: [
4010
- "before:-inset-x-px before:-inset-y-[6px] before:h-[70px]",
4298
+ "before:inset-x-[0px] before:-inset-y-[6px] before:h-[70px]",
4011
4299
  "before:rounded-t-md"
4012
4300
  ].join(" ")
4013
4301
  }
package/dist/types.d.mts CHANGED
@@ -1 +1,7 @@
1
- export { type ModuleOptions, default } from './module.js'
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module.js'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1 +1,7 @@
1
- export { type ModuleOptions, default } from './module'
1
+ import type { NuxtModule } from '@nuxt/schema'
2
+
3
+ import type { default as Module } from './module'
4
+
5
+ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
+
7
+ export { default } from './module'
package/dist/unplugin.cjs CHANGED
@@ -5,7 +5,7 @@ const pathe = require('pathe');
5
5
  const unplugin = require('unplugin');
6
6
  const defu = require('defu');
7
7
  const tailwind = require('@tailwindcss/vite');
8
- const templates = require('./shared/b24ui-nuxt.CKEqlXJP.cjs');
8
+ const templates = require('./shared/b24ui-nuxt.Bh_5o1_9.cjs');
9
9
  const tinyglobby = require('tinyglobby');
10
10
  const knitwork = require('knitwork');
11
11
  const MagicString = require('magic-string');
@@ -29,4 +29,5 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
29
29
  declare const runtimeDir: string;
30
30
  declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
31
31
 
32
- export { type Bitrix24UIOptions, Bitrix24UIPlugin, runtimeDir };
32
+ export { Bitrix24UIPlugin, runtimeDir };
33
+ export type { Bitrix24UIOptions };
@@ -29,4 +29,5 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
29
29
  declare const runtimeDir: string;
30
30
  declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
31
31
 
32
- export { type Bitrix24UIOptions, Bitrix24UIPlugin, runtimeDir };
32
+ export { Bitrix24UIPlugin, runtimeDir };
33
+ export type { Bitrix24UIOptions };
@@ -29,4 +29,5 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
29
29
  declare const runtimeDir: string;
30
30
  declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
31
31
 
32
- export { type Bitrix24UIOptions, Bitrix24UIPlugin, runtimeDir };
32
+ export { Bitrix24UIPlugin, runtimeDir };
33
+ export type { Bitrix24UIOptions };
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 getDefaultUiConfig } from './shared/b24ui-nuxt.DQ3Ix7rC.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BIuy4yic.mjs';
7
7
  import { globSync } from 'tinyglobby';
8
8
  import { genSafeVariableName } from 'knitwork';
9
9
  import MagicString from 'magic-string';
package/dist/vite.cjs CHANGED
@@ -6,7 +6,7 @@ require('pathe');
6
6
  require('unplugin');
7
7
  require('defu');
8
8
  require('@tailwindcss/vite');
9
- require('./shared/b24ui-nuxt.CKEqlXJP.cjs');
9
+ require('./shared/b24ui-nuxt.Bh_5o1_9.cjs');
10
10
  require('scule');
11
11
  require('@nuxt/kit');
12
12
  require('tinyglobby');
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.DQ3Ix7rC.mjs';
7
+ import './shared/b24ui-nuxt.BIuy4yic.mjs';
8
8
  import 'scule';
9
9
  import '@nuxt/kit';
10
10
  import 'tinyglobby';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrix24/b24ui-nuxt",
3
3
  "description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -75,10 +75,11 @@
75
75
  "@nuxt/kit": "^3.16.1",
76
76
  "@nuxt/schema": "^3.16.1",
77
77
  "@nuxtjs/color-mode": "^3.5.2",
78
+ "@standard-schema/spec": "^1.0.0",
78
79
  "@tailwindcss/postcss": "^4.0.15",
79
80
  "@tailwindcss/vite": "^4.0.15",
80
81
  "@tanstack/vue-table": "^8.21.2",
81
- "@unhead/vue": "^2.0.0-rc.13",
82
+ "@unhead/vue": "^2.0.0",
82
83
  "@vueuse/core": "^13.0.0",
83
84
  "@vueuse/integrations": "^13.0.0",
84
85
  "canvas-confetti": "^1.9.3",
@@ -98,12 +99,12 @@
98
99
  "mlly": "^1.7.4",
99
100
  "ohash": "^2.0.11",
100
101
  "pathe": "^2.0.3",
101
- "reka-ui": "^2.1.0",
102
+ "reka-ui": "^2.1.1",
102
103
  "scule": "^1.3.0",
103
104
  "tailwind-variants": "^1.0.0",
104
105
  "tailwindcss": "^4.0.15",
105
106
  "tinyglobby": "^0.2.12",
106
- "unplugin": "^2.2.1",
107
+ "unplugin": "^2.2.2",
107
108
  "unplugin-auto-import": "^19.1.1",
108
109
  "unplugin-vue-components": "^28.4.1",
109
110
  "vaul-vue": "^0.4.1",
@@ -111,14 +112,14 @@
111
112
  "vue-router": "^4.5.0"
112
113
  },
113
114
  "devDependencies": {
114
- "@types/canvas-confetti": "^1.9.0",
115
+ "@standard-schema/spec": "^1.0.0",
115
116
  "@nuxt/eslint-config": "^1.2.0",
116
117
  "@nuxt/module-builder": "^0.8.4",
117
118
  "@nuxt/test-utils": "^3.17.2",
118
- "@standard-schema/spec": "^1.0.0",
119
+ "@types/canvas-confetti": "^1.9.0",
119
120
  "@vue/test-utils": "^2.4.6",
120
121
  "embla-carousel": "^8.5.2",
121
- "eslint": "^9.22.0",
122
+ "eslint": "^9.23.0",
122
123
  "happy-dom": "^17.4.4",
123
124
  "joi": "^17.13.3",
124
125
  "nuxt": "^3.16.1",
@@ -141,7 +142,7 @@
141
142
  "debug": "4.3.7",
142
143
  "rollup": "4.34.9",
143
144
  "typescript": "5.6.3",
144
- "unplugin": "^2.2.1",
145
+ "unplugin": "^2.2.2",
145
146
  "vue": "3.5.13",
146
147
  "vue-tsc": "2.2.0"
147
148
  },