@teach-in/react 1.3.0 → 1.4.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 (114) hide show
  1. package/dist/chunk-2UHA3DYG.mjs +62 -0
  2. package/dist/{chunk-LJIVY6GU.mjs → chunk-46SKVFMZ.mjs} +1 -1
  3. package/dist/{chunk-JDFRAN4S.mjs → chunk-5FFWQB7D.mjs} +12 -2
  4. package/dist/{chunk-544SDU73.mjs → chunk-BBUPZCY6.mjs} +1 -1
  5. package/dist/chunk-C2VWADF5.mjs +34 -0
  6. package/dist/{chunk-NLHQDWUK.mjs → chunk-CKJ5U5Q4.mjs} +1 -1
  7. package/dist/chunk-CUEG2BFV.mjs +34 -0
  8. package/dist/{chunk-CETCW7DS.mjs → chunk-IU2JYI7W.mjs} +1 -1
  9. package/dist/{chunk-KTUGFQWJ.mjs → chunk-KTWHCUYV.mjs} +1 -1
  10. package/dist/chunk-MCQGBAUS.mjs +73 -0
  11. package/dist/chunk-NSU66J5E.mjs +59 -0
  12. package/dist/{chunk-R7LDL5CU.mjs → chunk-R46SWVWL.mjs} +1 -1
  13. package/dist/{chunk-WFNNN6WU.mjs → chunk-RPIOTLYT.mjs} +1 -1
  14. package/dist/chunk-SEJXJZSK.mjs +64 -0
  15. package/dist/chunk-TUIN5YJW.mjs +33 -0
  16. package/dist/chunk-UQAG7TKJ.mjs +1 -0
  17. package/dist/chunk-VXYV37IM.mjs +74 -0
  18. package/dist/{chunk-AFVGHUW2.mjs → chunk-YZB4VBX7.mjs} +24 -2
  19. package/dist/index.js +599 -232
  20. package/dist/index.mjs +116 -100
  21. package/dist/ui/data/index.mjs +4 -4
  22. package/dist/ui/feedback/index.mjs +14 -14
  23. package/dist/ui/form/index.js +447 -106
  24. package/dist/ui/form/index.mjs +28 -18
  25. package/dist/ui/form/rhf/fields/autocomplete-field.mjs +17 -11
  26. package/dist/ui/form/rhf/fields/checkbox-field.mjs +17 -11
  27. package/dist/ui/form/rhf/fields/date-picker-field.mjs +17 -11
  28. package/dist/ui/form/rhf/fields/email-field.js +147 -10
  29. package/dist/ui/form/rhf/fields/email-field.mjs +18 -12
  30. package/dist/ui/form/rhf/fields/index.d.ts +1 -0
  31. package/dist/ui/form/rhf/fields/index.js +443 -102
  32. package/dist/ui/form/rhf/fields/index.mjs +28 -18
  33. package/dist/ui/form/rhf/fields/input-field.js +153 -6
  34. package/dist/ui/form/rhf/fields/input-field.mjs +18 -12
  35. package/dist/ui/form/rhf/fields/radio-field.mjs +17 -11
  36. package/dist/ui/form/rhf/fields/search-field.d.ts +10 -0
  37. package/dist/ui/form/rhf/fields/search-field.js +296 -0
  38. package/dist/ui/form/rhf/fields/search-field.mjs +37 -0
  39. package/dist/ui/form/rhf/fields/select-field.js +136 -26
  40. package/dist/ui/form/rhf/fields/select-field.mjs +18 -12
  41. package/dist/ui/form/rhf/fields/switch-field.mjs +17 -11
  42. package/dist/ui/form/rhf/fields/text-field.js +147 -10
  43. package/dist/ui/form/rhf/fields/text-field.mjs +18 -12
  44. package/dist/ui/form/rhf/fields/textarea-field.mjs +17 -11
  45. package/dist/ui/form/rhf/index.js +443 -102
  46. package/dist/ui/form/rhf/index.mjs +28 -18
  47. package/dist/ui/index.js +599 -232
  48. package/dist/ui/index.mjs +116 -100
  49. package/dist/ui/inputs/clear-button.d.ts +5 -0
  50. package/dist/ui/inputs/clear-button.js +67 -0
  51. package/dist/ui/inputs/clear-button.mjs +8 -0
  52. package/dist/ui/inputs/email/email.js +144 -7
  53. package/dist/ui/inputs/email/email.mjs +4 -2
  54. package/dist/ui/inputs/email/index.js +144 -7
  55. package/dist/ui/inputs/email/index.mjs +4 -2
  56. package/dist/ui/inputs/index.d.ts +2 -0
  57. package/dist/ui/inputs/index.js +363 -56
  58. package/dist/ui/inputs/index.mjs +31 -19
  59. package/dist/ui/inputs/input/index.js +140 -3
  60. package/dist/ui/inputs/input/index.mjs +3 -1
  61. package/dist/ui/inputs/input/input.d.ts +1 -0
  62. package/dist/ui/inputs/input/input.js +140 -3
  63. package/dist/ui/inputs/input/input.mjs +3 -1
  64. package/dist/ui/inputs/input/use-input.d.ts +19 -0
  65. package/dist/ui/inputs/input/use-input.js +82 -0
  66. package/dist/ui/inputs/input/use-input.mjs +7 -0
  67. package/dist/ui/inputs/search/index.d.ts +1 -0
  68. package/dist/ui/inputs/search/index.js +270 -0
  69. package/dist/ui/inputs/search/index.mjs +13 -0
  70. package/dist/ui/inputs/search/search.d.ts +7 -0
  71. package/dist/ui/inputs/search/search.js +268 -0
  72. package/dist/ui/inputs/search/search.mjs +12 -0
  73. package/dist/ui/inputs/search/use-search.d.ts +12 -0
  74. package/dist/ui/inputs/search/use-search.js +57 -0
  75. package/dist/ui/inputs/search/use-search.mjs +7 -0
  76. package/dist/ui/inputs/select/index.js +132 -22
  77. package/dist/ui/inputs/select/index.mjs +3 -1
  78. package/dist/ui/inputs/select/select.d.ts +4 -0
  79. package/dist/ui/inputs/select/select.js +132 -22
  80. package/dist/ui/inputs/select/select.mjs +3 -1
  81. package/dist/ui/inputs/select/use-select.d.ts +17 -0
  82. package/dist/ui/inputs/select/use-select.js +85 -0
  83. package/dist/ui/inputs/select/use-select.mjs +7 -0
  84. package/dist/ui/inputs/text/index.js +144 -7
  85. package/dist/ui/inputs/text/index.mjs +4 -2
  86. package/dist/ui/inputs/text/text.js +144 -7
  87. package/dist/ui/inputs/text/text.mjs +4 -2
  88. package/dist/ui/layout/container/container.mjs +64 -57
  89. package/dist/ui/layout/container/index.mjs +64 -57
  90. package/dist/ui/layout/index.mjs +69 -62
  91. package/dist/ui/layout/page/index.mjs +7 -7
  92. package/dist/ui/layout/page/page-loading.mjs +7 -7
  93. package/dist/ui/layout/page/section-loading.mjs +7 -7
  94. package/dist/ui/navigation/index.mjs +7 -7
  95. package/dist/ui/overlays/index.mjs +8 -8
  96. package/dist/ui/provider/index.mjs +7 -7
  97. package/dist/ui/provider/ui-provider.mjs +7 -7
  98. package/dist/ui/surface/index.mjs +4 -4
  99. package/dist/ui/theme/colors/index.js +24 -2
  100. package/dist/ui/theme/colors/index.mjs +2 -2
  101. package/dist/ui/theme/colors/semantic.js +24 -2
  102. package/dist/ui/theme/colors/semantic.mjs +1 -1
  103. package/dist/ui/theme/colors/types.d.ts +2 -0
  104. package/dist/ui/theme/colors.js +24 -2
  105. package/dist/ui/theme/colors.mjs +2 -2
  106. package/dist/ui/theme/index.js +24 -2
  107. package/dist/ui/theme/index.mjs +3 -3
  108. package/dist/ui/theme/theme.js +24 -2
  109. package/dist/ui/theme/theme.mjs +3 -3
  110. package/package.json +1 -1
  111. package/dist/chunk-3YOW5DEZ.mjs +0 -45
  112. package/dist/chunk-V2G5QHZZ.mjs +0 -14
  113. /package/dist/{chunk-CZEO3U25.mjs → chunk-5RNCFTW5.mjs} +0 -0
  114. /package/dist/{chunk-Q6JSJOU4.mjs → chunk-PTCNYQVY.mjs} +0 -0
@@ -275,7 +275,7 @@ var themeColorsLight = {
275
275
  ...commonColors.shipgray,
276
276
  foreground: commonColors.black,
277
277
  flat: commonColors.shipgray[300],
278
- DEFAULT: commonColors.shipgray[100]
278
+ DEFAULT: commonColors.shipgray[200]
279
279
  },
280
280
  primary: {
281
281
  ...commonColors.blue,
@@ -306,15 +306,31 @@ var themeColorsLight = {
306
306
  foreground: commonColors.white,
307
307
  flat: commonColors.red[500],
308
308
  DEFAULT: commonColors.red[400]
309
+ },
310
+ link: {
311
+ DEFAULT: commonColors.blue[500]
312
+ },
313
+ brand: {
314
+ DEFAULT: commonColors.blue[800]
309
315
  }
310
316
  };
311
317
  var themeColorsDark = {
312
318
  ...base.dark,
313
319
  default: {
314
320
  ...swapColorValues(commonColors.shipgray),
321
+ 50: commonColors.shipgray[800],
322
+ 100: commonColors.shipgray[700],
323
+ 200: commonColors.shipgray[600],
324
+ 300: commonColors.shipgray[500],
325
+ 400: commonColors.shipgray[400],
326
+ 500: commonColors.shipgray[300],
327
+ 600: commonColors.shipgray[200],
328
+ 700: commonColors.shipgray[100],
329
+ 800: commonColors.shipgray[50],
330
+ 900: commonColors.white,
315
331
  foreground: commonColors.white,
316
332
  flat: commonColors.shipgray[600],
317
- DEFAULT: commonColors.shipgray[700]
333
+ DEFAULT: commonColors.shipgray[600]
318
334
  },
319
335
  primary: {
320
336
  ...swapColorValues(commonColors.blue),
@@ -345,6 +361,12 @@ var themeColorsDark = {
345
361
  foreground: commonColors.white,
346
362
  flat: commonColors.red[500],
347
363
  DEFAULT: commonColors.red[500]
364
+ },
365
+ link: {
366
+ DEFAULT: commonColors.blue[300]
367
+ },
368
+ brand: {
369
+ DEFAULT: commonColors.white
348
370
  }
349
371
  };
350
372
  var semanticColors = {
@@ -6,11 +6,11 @@ import {
6
6
  } from "../../chunk-NBFOX367.mjs";
7
7
  import {
8
8
  theme
9
- } from "../../chunk-WFNNN6WU.mjs";
9
+ } from "../../chunk-RPIOTLYT.mjs";
10
10
  import "../../chunk-JWMPI5AZ.mjs";
11
- import "../../chunk-544SDU73.mjs";
11
+ import "../../chunk-BBUPZCY6.mjs";
12
12
  import "../../chunk-EJQH6CYW.mjs";
13
- import "../../chunk-AFVGHUW2.mjs";
13
+ import "../../chunk-YZB4VBX7.mjs";
14
14
  import "../../chunk-5WDV3PDI.mjs";
15
15
  import "../../chunk-HOVAPYGJ.mjs";
16
16
  import "../../chunk-3LOCA2SP.mjs";
@@ -262,7 +262,7 @@ var themeColorsLight = {
262
262
  ...commonColors.shipgray,
263
263
  foreground: commonColors.black,
264
264
  flat: commonColors.shipgray[300],
265
- DEFAULT: commonColors.shipgray[100]
265
+ DEFAULT: commonColors.shipgray[200]
266
266
  },
267
267
  primary: {
268
268
  ...commonColors.blue,
@@ -293,15 +293,31 @@ var themeColorsLight = {
293
293
  foreground: commonColors.white,
294
294
  flat: commonColors.red[500],
295
295
  DEFAULT: commonColors.red[400]
296
+ },
297
+ link: {
298
+ DEFAULT: commonColors.blue[500]
299
+ },
300
+ brand: {
301
+ DEFAULT: commonColors.blue[800]
296
302
  }
297
303
  };
298
304
  var themeColorsDark = {
299
305
  ...base.dark,
300
306
  default: {
301
307
  ...swapColorValues(commonColors.shipgray),
308
+ 50: commonColors.shipgray[800],
309
+ 100: commonColors.shipgray[700],
310
+ 200: commonColors.shipgray[600],
311
+ 300: commonColors.shipgray[500],
312
+ 400: commonColors.shipgray[400],
313
+ 500: commonColors.shipgray[300],
314
+ 600: commonColors.shipgray[200],
315
+ 700: commonColors.shipgray[100],
316
+ 800: commonColors.shipgray[50],
317
+ 900: commonColors.white,
302
318
  foreground: commonColors.white,
303
319
  flat: commonColors.shipgray[600],
304
- DEFAULT: commonColors.shipgray[700]
320
+ DEFAULT: commonColors.shipgray[600]
305
321
  },
306
322
  primary: {
307
323
  ...swapColorValues(commonColors.blue),
@@ -332,6 +348,12 @@ var themeColorsDark = {
332
348
  foreground: commonColors.white,
333
349
  flat: commonColors.red[500],
334
350
  DEFAULT: commonColors.red[500]
351
+ },
352
+ link: {
353
+ DEFAULT: commonColors.blue[300]
354
+ },
355
+ brand: {
356
+ DEFAULT: commonColors.white
335
357
  }
336
358
  };
337
359
  var semanticColors = {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  theme
4
- } from "../../chunk-WFNNN6WU.mjs";
4
+ } from "../../chunk-RPIOTLYT.mjs";
5
5
  import "../../chunk-JWMPI5AZ.mjs";
6
- import "../../chunk-544SDU73.mjs";
6
+ import "../../chunk-BBUPZCY6.mjs";
7
7
  import "../../chunk-EJQH6CYW.mjs";
8
- import "../../chunk-AFVGHUW2.mjs";
8
+ import "../../chunk-YZB4VBX7.mjs";
9
9
  import "../../chunk-5WDV3PDI.mjs";
10
10
  import "../../chunk-HOVAPYGJ.mjs";
11
11
  import "../../chunk-3LOCA2SP.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teach-in/react",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Библиотека компонентов для создания современного пользовательского интерфейса для react",
5
5
  "keywords": [
6
6
  "ui"
@@ -1,45 +0,0 @@
1
- "use client";
2
-
3
- // src/ui/inputs/select/select.tsx
4
- import React from "react";
5
- import { Select as HeroUISelect, SelectItem as HeroUISelectItem } from "@heroui/select";
6
- import { jsx } from "react/jsx-runtime";
7
- var Select = React.forwardRef(
8
- ({ value, items, onChange, selectionMode, ...props }, ref) => {
9
- const isMultiple = selectionMode === "multiple";
10
- const selectedKeys = React.useMemo(() => {
11
- if (value == null) return /* @__PURE__ */ new Set();
12
- return new Set(Array.isArray(value) ? value : [value]);
13
- }, [value]);
14
- const handleSelectionChange = React.useCallback(
15
- (keys) => {
16
- var _a;
17
- if (keys === "all") return;
18
- const selected = Array.from(keys).filter((key) => typeof key === "string");
19
- if (isMultiple) {
20
- onChange == null ? void 0 : onChange(selected);
21
- } else {
22
- onChange == null ? void 0 : onChange((_a = selected[0]) != null ? _a : null);
23
- }
24
- },
25
- [onChange, isMultiple]
26
- );
27
- return /* @__PURE__ */ jsx(
28
- HeroUISelect,
29
- {
30
- ref,
31
- items,
32
- selectedKeys,
33
- selectionMode,
34
- onSelectionChange: handleSelectionChange,
35
- ...props,
36
- children: (item) => /* @__PURE__ */ jsx(HeroUISelectItem, { children: item.label }, item.key)
37
- }
38
- );
39
- }
40
- );
41
- Select.displayName = "TeachInUI.Select";
42
-
43
- export {
44
- Select
45
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
-
3
- // src/ui/inputs/input/input.tsx
4
- import React from "react";
5
- import { Input as HeroUIInput } from "@heroui/input";
6
- import { jsx } from "react/jsx-runtime";
7
- var Input = React.forwardRef(({ ...props }, ref) => {
8
- return /* @__PURE__ */ jsx(HeroUIInput, { ref, ...props });
9
- });
10
- Input.displayName = "TeachInUI.Input";
11
-
12
- export {
13
- Input
14
- };
File without changes
File without changes