@bitrix24/b24ui-nuxt 2.0.9 → 2.1.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.
Files changed (145) hide show
  1. package/dist/meta.d.mts +77776 -42923
  2. package/dist/meta.mjs +77776 -42923
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +3 -3
  5. package/dist/runtime/components/Advice.d.vue.ts +1 -1
  6. package/dist/runtime/components/Advice.vue +1 -3
  7. package/dist/runtime/components/Advice.vue.d.ts +1 -1
  8. package/dist/runtime/components/App.d.vue.ts +1 -1
  9. package/dist/runtime/components/App.vue +2 -1
  10. package/dist/runtime/components/App.vue.d.ts +1 -1
  11. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  12. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  13. package/dist/runtime/components/Button.vue +1 -0
  14. package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -2
  15. package/dist/runtime/components/ChatPrompt.vue +5 -5
  16. package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -2
  17. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +5 -5
  18. package/dist/runtime/components/ChatPromptSubmit.vue +53 -4
  19. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +5 -5
  20. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  21. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  22. package/dist/runtime/components/CommandPalette.vue +5 -4
  23. package/dist/runtime/components/DashboardSearch.d.vue.ts +3 -6
  24. package/dist/runtime/components/DashboardSearch.vue +2 -3
  25. package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -6
  26. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -3
  27. package/dist/runtime/components/DashboardSearchButton.vue +44 -6
  28. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -3
  29. package/dist/runtime/components/Error.d.vue.ts +1 -1
  30. package/dist/runtime/components/Error.vue.d.ts +1 -1
  31. package/dist/runtime/components/FileUpload.d.vue.ts +3 -2
  32. package/dist/runtime/components/FileUpload.vue +9 -9
  33. package/dist/runtime/components/FileUpload.vue.d.ts +3 -2
  34. package/dist/runtime/components/Form.d.vue.ts +2 -1
  35. package/dist/runtime/components/Form.vue.d.ts +2 -1
  36. package/dist/runtime/components/Input.d.vue.ts +7 -7
  37. package/dist/runtime/components/Input.vue +2 -2
  38. package/dist/runtime/components/Input.vue.d.ts +7 -7
  39. package/dist/runtime/components/InputDate.d.vue.ts +115 -0
  40. package/dist/runtime/components/InputDate.vue +198 -0
  41. package/dist/runtime/components/InputDate.vue.d.ts +115 -0
  42. package/dist/runtime/components/InputMenu.d.vue.ts +7 -128
  43. package/dist/runtime/components/InputMenu.vue +3 -3
  44. package/dist/runtime/components/InputMenu.vue.d.ts +7 -128
  45. package/dist/runtime/components/InputNumber.d.vue.ts +25 -124
  46. package/dist/runtime/components/InputNumber.vue +3 -3
  47. package/dist/runtime/components/InputNumber.vue.d.ts +25 -124
  48. package/dist/runtime/components/InputTags.d.vue.ts +6 -109
  49. package/dist/runtime/components/InputTags.vue +8 -8
  50. package/dist/runtime/components/InputTags.vue.d.ts +6 -109
  51. package/dist/runtime/components/InputTime.d.vue.ts +99 -0
  52. package/dist/runtime/components/InputTime.vue +170 -0
  53. package/dist/runtime/components/InputTime.vue.d.ts +99 -0
  54. package/dist/runtime/components/Link.d.vue.ts +4 -49
  55. package/dist/runtime/components/Link.vue +1 -0
  56. package/dist/runtime/components/Link.vue.d.ts +4 -49
  57. package/dist/runtime/components/Modal.d.vue.ts +1 -1
  58. package/dist/runtime/components/Modal.vue.d.ts +1 -1
  59. package/dist/runtime/components/Pagination.d.vue.ts +2 -2
  60. package/dist/runtime/components/Pagination.vue.d.ts +2 -2
  61. package/dist/runtime/components/PinInput.d.vue.ts +3 -3
  62. package/dist/runtime/components/PinInput.vue.d.ts +3 -3
  63. package/dist/runtime/components/Progress.d.vue.ts +1 -1
  64. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  65. package/dist/runtime/components/Select.d.vue.ts +6 -107
  66. package/dist/runtime/components/Select.vue +3 -3
  67. package/dist/runtime/components/Select.vue.d.ts +6 -107
  68. package/dist/runtime/components/SelectMenu.d.vue.ts +7 -106
  69. package/dist/runtime/components/SelectMenu.vue +3 -3
  70. package/dist/runtime/components/SelectMenu.vue.d.ts +7 -106
  71. package/dist/runtime/components/Slideover.d.vue.ts +1 -1
  72. package/dist/runtime/components/Slideover.vue.d.ts +1 -1
  73. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  74. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  75. package/dist/runtime/components/Table.d.vue.ts +5 -4
  76. package/dist/runtime/components/Table.vue +4 -3
  77. package/dist/runtime/components/Table.vue.d.ts +5 -4
  78. package/dist/runtime/components/Textarea.d.vue.ts +7 -6
  79. package/dist/runtime/components/Textarea.vue +2 -2
  80. package/dist/runtime/components/Textarea.vue.d.ts +7 -6
  81. package/dist/runtime/components/Toast.vue +5 -5
  82. package/dist/runtime/components/Toaster.d.vue.ts +1 -1
  83. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  84. package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +3 -3
  85. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -4
  86. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +3 -3
  87. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -3
  88. package/dist/runtime/components/color-mode/ColorModeButton.vue +54 -6
  89. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
  90. package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +4 -3
  91. package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -0
  92. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +4 -3
  93. package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  94. package/dist/runtime/components/color-mode/ColorModeSelect.vue +47 -5
  95. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  96. package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +2 -2
  97. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +29 -5
  98. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +2 -2
  99. package/dist/runtime/components/content/ContentSearch.d.vue.ts +3 -6
  100. package/dist/runtime/components/content/ContentSearch.vue +2 -3
  101. package/dist/runtime/components/content/ContentSearch.vue.d.ts +3 -6
  102. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -3
  103. package/dist/runtime/components/content/ContentSearchButton.vue +43 -5
  104. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -3
  105. package/dist/runtime/components/content/ContentSurround.vue +7 -1
  106. package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +11 -7
  107. package/dist/runtime/components/locale/LocaleSelect.vue +50 -6
  108. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +11 -7
  109. package/dist/runtime/components/prose/Callout.vue +4 -0
  110. package/dist/runtime/composables/index.d.ts +8 -0
  111. package/dist/runtime/composables/index.js +8 -0
  112. package/dist/runtime/composables/useFileUpload.d.ts +2 -1
  113. package/dist/runtime/composables/useFileUpload.js +13 -4
  114. package/dist/runtime/inertia/components/Link.d.vue.ts +17 -10
  115. package/dist/runtime/inertia/components/Link.vue +8 -6
  116. package/dist/runtime/inertia/components/Link.vue.d.ts +17 -10
  117. package/dist/runtime/inertia/stubs.d.ts +1 -1
  118. package/dist/runtime/types/html.d.ts +8 -0
  119. package/dist/runtime/types/html.js +0 -0
  120. package/dist/runtime/types/index.d.ts +2 -0
  121. package/dist/runtime/types/index.js +2 -0
  122. package/dist/runtime/types/input.d.ts +5 -5
  123. package/dist/runtime/types/utils.d.ts +2 -0
  124. package/dist/runtime/utils/content.d.ts +2 -2
  125. package/dist/runtime/utils/dashboard.d.ts +1 -1
  126. package/dist/runtime/utils/link.d.ts +1 -0
  127. package/dist/runtime/utils/link.js +40 -24
  128. package/dist/runtime/vue/components/Link.d.vue.ts +8 -37
  129. package/dist/runtime/vue/components/Link.vue +6 -11
  130. package/dist/runtime/vue/components/Link.vue.d.ts +8 -37
  131. package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +2 -2
  132. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +55 -5
  133. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +2 -2
  134. package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  135. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +46 -3
  136. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  137. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
  138. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +24 -3
  139. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  140. package/dist/runtime/vue/stubs.d.ts +2 -2
  141. package/dist/runtime/vue/stubs.js +1 -1
  142. package/dist/shared/{b24ui-nuxt.4XNR9Ysu.mjs → b24ui-nuxt.CXLCGBie.mjs} +135 -1
  143. package/dist/unplugin.mjs +1 -1
  144. package/dist/vite.mjs +1 -1
  145. package/package.json +24 -14
@@ -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.0.9";
11
+ const version = "2.1.0";
12
12
 
13
13
  function getDefaultConfig(theme) {
14
14
  return {
@@ -3768,6 +3768,72 @@ const input = {
3768
3768
  }
3769
3769
  };
3770
3770
 
3771
+ const inputDate = () => {
3772
+ return defuFn({
3773
+ slots: {
3774
+ root: () => void 0,
3775
+ base: () => [
3776
+ "group",
3777
+ "relative",
3778
+ "inline-flex items-center",
3779
+ "select-none",
3780
+ "transition-colors",
3781
+ "style-blurred-bg-input"
3782
+ ].join(" "),
3783
+ segment: [
3784
+ "rounded",
3785
+ "text-center",
3786
+ "outline-hidden",
3787
+ "text-(--ui-color-base-1)",
3788
+ "data-placeholder:text-(--ui-color-design-plain-na-content-secondary)",
3789
+ "hover:text-(--ui-color-base-1)",
3790
+ "focus:text-(--ui-color-base-1)",
3791
+ "active:text-(--ui-color-base-1)",
3792
+ "font-[family-name:var(--ui-font-family-primary)] font-(--ui-font-weight-regular)",
3793
+ "align-middle",
3794
+ "data-[segment=literal]:text-(--ui-color-base-6)",
3795
+ "data-invalid:text-(--ui-color-accent-main-alert)",
3796
+ "data-disabled:cursor-not-allowed",
3797
+ "data-disabled:pointer-events-none",
3798
+ "data-disabled:select-none",
3799
+ "data-disabled:opacity-30",
3800
+ "transition-colors",
3801
+ "focus:bg-(--ui-color-bg-content-secondary)"
3802
+ ].join(" "),
3803
+ separatorIcon: "shrink-0 size-4 text-(--ui-color-base-6)"
3804
+ },
3805
+ variants: {
3806
+ size: {
3807
+ xss: {
3808
+ base: (prev) => [prev, "gap-0.20", "px-1"].join(" "),
3809
+ segment: "data-[segment=day]:w-6 data-[segment=month]:w-6 data-[segment=year]:w-9"
3810
+ },
3811
+ xs: {
3812
+ base: (prev) => [prev, "gap-0.25", "px-2"].join(" "),
3813
+ segment: "data-[segment=day]:w-6 data-[segment=month]:w-6 data-[segment=year]:w-9"
3814
+ },
3815
+ sm: {
3816
+ base: (prev) => [prev, "gap-0.5", "px-2"].join(" "),
3817
+ segment: "data-[segment=day]:w-6 data-[segment=month]:w-6 data-[segment=year]:w-9"
3818
+ },
3819
+ md: {
3820
+ base: (prev) => [prev, "gap-0.5", "px-3"].join(" "),
3821
+ segment: "data-[segment=day]:w-7 data-[segment=month]:w-7 data-[segment=year]:w-11"
3822
+ },
3823
+ lg: {
3824
+ base: (prev) => [prev, "gap-0.75", "px-3"].join(" "),
3825
+ segment: "data-[segment=day]:w-7 data-[segment=month]:w-7 data-[segment=year]:w-11"
3826
+ },
3827
+ xl: {
3828
+ base: (prev) => [prev, "gap-0.75", "px-3"].join(" "),
3829
+ segment: "data-[segment=day]:w-8 data-[segment=month]:w-8 data-[segment=year]:w-13"
3830
+ }
3831
+ }
3832
+ },
3833
+ compoundVariants: []
3834
+ }, input);
3835
+ };
3836
+
3771
3837
  const inputMenu = () => {
3772
3838
  return defuFn({
3773
3839
  slots: {
@@ -4756,6 +4822,72 @@ function replaceFocus$2(str) {
4756
4822
  return str.replace(/focus:/g, "has-focus:").replace(/focus-visible:/g, "has-focus-visible:");
4757
4823
  }
4758
4824
 
4825
+ const inputTime = () => {
4826
+ return defuFn({
4827
+ slots: {
4828
+ root: () => void 0,
4829
+ base: () => [
4830
+ "group",
4831
+ "relative",
4832
+ "inline-flex items-center",
4833
+ "select-none",
4834
+ "transition-colors",
4835
+ "style-blurred-bg-input"
4836
+ ].join(" "),
4837
+ segment: [
4838
+ "rounded",
4839
+ "text-center",
4840
+ "outline-hidden",
4841
+ "text-(--ui-color-base-1)",
4842
+ "data-placeholder:text-(--ui-color-design-plain-na-content-secondary)",
4843
+ "hover:text-(--ui-color-base-1)",
4844
+ "focus:text-(--ui-color-base-1)",
4845
+ "active:text-(--ui-color-base-1)",
4846
+ "font-[family-name:var(--ui-font-family-primary)] font-(--ui-font-weight-regular)",
4847
+ "align-middle",
4848
+ "data-[segment=literal]:text-(--ui-color-base-6)",
4849
+ "data-invalid:text-(--ui-color-accent-main-alert)",
4850
+ "data-disabled:cursor-not-allowed",
4851
+ "data-disabled:pointer-events-none",
4852
+ "data-disabled:select-none",
4853
+ "data-disabled:opacity-30",
4854
+ "data-disabled:resize-none",
4855
+ "transition-colors",
4856
+ "focus:bg-(--ui-color-bg-content-secondary)"
4857
+ ].join(" ")
4858
+ },
4859
+ variants: {
4860
+ size: {
4861
+ xss: {
4862
+ base: (prev) => [prev, "gap-0.20", "px-1"].join(" "),
4863
+ segment: "not-data-[segment=literal]:w-6"
4864
+ },
4865
+ xs: {
4866
+ base: (prev) => [prev, "gap-0.25", "px-2"].join(" "),
4867
+ segment: "not-data-[segment=literal]:w-6"
4868
+ },
4869
+ sm: {
4870
+ base: (prev) => [prev, "gap-0.5", "px-2"].join(" "),
4871
+ segment: "not-data-[segment=literal]:w-6"
4872
+ },
4873
+ md: {
4874
+ base: (prev) => [prev, "gap-0.5", "px-3"].join(" "),
4875
+ segment: "not-data-[segment=literal]:w-7"
4876
+ },
4877
+ lg: {
4878
+ base: (prev) => [prev, "gap-0.75", "px-3"].join(" "),
4879
+ segment: "not-data-[segment=literal]:w-7"
4880
+ },
4881
+ xl: {
4882
+ base: (prev) => [prev, "gap-0.75", "px-3"].join(" "),
4883
+ segment: "not-data-[segment=literal]:w-8"
4884
+ }
4885
+ }
4886
+ },
4887
+ compoundVariants: []
4888
+ }, input);
4889
+ };
4890
+
4759
4891
  const kbd$1 = {
4760
4892
  slots: {
4761
4893
  base: [
@@ -9021,9 +9153,11 @@ const theme = {
9021
9153
  form: form,
9022
9154
  formField: formField,
9023
9155
  input: input,
9156
+ inputDate: inputDate,
9024
9157
  inputMenu: inputMenu,
9025
9158
  inputNumber: inputNumber,
9026
9159
  inputTags: inputTags,
9160
+ inputTime: inputTime,
9027
9161
  kbd: kbd$1,
9028
9162
  link: link,
9029
9163
  modal: modal,
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.4XNR9Ysu.mjs';
6
+ import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.CXLCGBie.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
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/b24ui-nuxt.4XNR9Ysu.mjs';
7
+ import './shared/b24ui-nuxt.CXLCGBie.mjs';
8
8
  import 'scule';
9
9
  import 'knitwork';
10
10
  import '@nuxt/kit';
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": "2.0.9",
4
+ "version": "2.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bitrix24/b24ui.git"
@@ -32,7 +32,14 @@
32
32
  },
33
33
  "./runtime/*": "./dist/runtime/*",
34
34
  "./components/*": "./dist/runtime/components/*",
35
- "./composables/*": "./dist/runtime/composables/*",
35
+ "./composables": {
36
+ "types": "./dist/runtime/composables/index.d.ts",
37
+ "import": "./dist/runtime/composables/index.js"
38
+ },
39
+ "./composables/*": {
40
+ "types": "./dist/runtime/composables/*.d.ts",
41
+ "import": "./dist/runtime/composables/*.js"
42
+ },
36
43
  "./utils": {
37
44
  "types": "./dist/runtime/utils/index.d.ts",
38
45
  "import": "./dist/runtime/utils/index.js"
@@ -66,8 +73,11 @@
66
73
  "components/*": [
67
74
  "./dist/runtime/components/*"
68
75
  ],
76
+ "composables": [
77
+ "./dist/runtime/composables/index.d.ts"
78
+ ],
69
79
  "composables/*": [
70
- "./dist/runtime/composables/*"
80
+ "./dist/runtime/composables/*.d.ts"
71
81
  ],
72
82
  "utils": [
73
83
  "./dist/runtime/utils/index.d.ts"
@@ -97,11 +107,11 @@
97
107
  "@bitrix24/b24icons-vue": "^2.0.5",
98
108
  "@internationalized/date": "^3.10.0",
99
109
  "@internationalized/number": "^3.6.5",
100
- "@nuxt/kit": "^4.2.0",
101
- "@nuxt/schema": "^4.2.0",
110
+ "@nuxt/kit": "^4.2.1",
111
+ "@nuxt/schema": "^4.2.1",
102
112
  "@standard-schema/spec": "^1.0.0",
103
- "@tailwindcss/postcss": "^4.1.16",
104
- "@tailwindcss/vite": "^4.1.16",
113
+ "@tailwindcss/postcss": "^4.1.17",
114
+ "@tailwindcss/vite": "^4.1.17",
105
115
  "@tanstack/vue-table": "^8.21.3",
106
116
  "@tanstack/vue-virtual": "^3.13.12",
107
117
  "@unhead/vue": "^2.0.19",
@@ -128,9 +138,9 @@
128
138
  "pathe": "^2.0.3",
129
139
  "reka-ui": "2.6.0",
130
140
  "scule": "^1.3.0",
131
- "tailwind-merge": "^3.3.1",
141
+ "tailwind-merge": "^3.4.0",
132
142
  "tailwind-variants": "^3.1.1",
133
- "tailwindcss": "^4.1.16",
143
+ "tailwindcss": "^4.1.17",
134
144
  "tinyglobby": "^0.2.15",
135
145
  "unplugin": "^2.3.10",
136
146
  "unplugin-auto-import": "^20.2.0",
@@ -139,7 +149,7 @@
139
149
  "vue-component-type-helpers": "^3.1.3"
140
150
  },
141
151
  "devDependencies": {
142
- "@nuxt/content": "^3.7.1",
152
+ "@nuxt/content": "^3.8.0",
143
153
  "@nuxt/eslint-config": "^1.10.0",
144
154
  "@nuxt/module-builder": "^1.0.2",
145
155
  "@nuxt/test-utils": "^3.20.1",
@@ -149,11 +159,11 @@
149
159
  "nuxt-component-meta": "^0.14.1",
150
160
  "sharp": "^0.34.3",
151
161
  "@vue/test-utils": "^2.4.6",
152
- "ai": "^5.0.81",
162
+ "ai": "^5.0.90",
153
163
  "embla-carousel": "^8.6.0",
154
- "eslint": "^9.38.0",
164
+ "eslint": "^9.39.1",
155
165
  "happy-dom": "^20.0.10",
156
- "nuxt": "^4.2.0",
166
+ "nuxt": "^4.2.1",
157
167
  "vitest": "^3.2.4",
158
168
  "vitest-axe": "^0.1.0",
159
169
  "vitest-environment-nuxt": "^1.0.1",
@@ -193,7 +203,7 @@
193
203
  }
194
204
  },
195
205
  "resolutions": {
196
- "@nuxt/kit": "^4.2.0",
206
+ "@nuxt/kit": "^4.2.1",
197
207
  "@bitrix24/b24ui-nuxt": "workspace:*",
198
208
  "debug": "4.3.7",
199
209
  "typescript": "5.8.3",