triafly-ui-kit 1.0.1 → 1.0.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.
@@ -1,15 +1,15 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { createContext as s, useContext as m, useMemo as a } from "react";
2
+ import { createContext as s, useMemo as m, useContext as a } from "react";
3
3
  import { useBreakpointValueTriafly as u } from "./hooks/useBreakpointValue/useBreakpointValue.js";
4
4
  import { useThemeLogic as f } from "./hooks/useTheme/useTheme.js";
5
5
  import { useModalState as l } from "./hooks/useModal/useModal.js";
6
6
  const t = s(void 0), y = () => {
7
- const e = m(t);
7
+ const e = a(t);
8
8
  if (!e)
9
9
  throw new Error("useTriafly must be used within a TriaflyProvider");
10
10
  return e;
11
11
  }, h = ({ children: e }) => {
12
- const { theme: o, toggleTheme: r } = f(), i = a(
12
+ const { theme: o, toggleTheme: r } = f(), i = m(
13
13
  () => ({
14
14
  theme: o,
15
15
  toggleTheme: r,
@@ -23,4 +23,4 @@ export { Tooltip } from './components/Ui/Tooltip';
23
23
  export { Tree } from './components/Ui/Tree';
24
24
  export * from './components/Ui/Icons';
25
25
  export { ToastProvider } from './context/ToastContext';
26
- export { TriaflyContext } from './context/TriaflyContext';
26
+ export { TriaflyContext, TriaflyProvider } from './context/TriaflyContext';
@@ -1,19 +1,19 @@
1
1
  import { Accordeon as c } from "./components/Ui/Accordeon/Accordeon.js";
2
2
  import { Alert as t } from "./components/Ui/Alert/Alert.js";
3
- import { Avatar as p } from "./components/Ui/Avatar/Avatar.js";
3
+ import { Avatar as a } from "./components/Ui/Avatar/Avatar.js";
4
4
  import { Badge as l } from "./components/Ui/Badge/Badge.js";
5
5
  import { Button as x } from "./components/Ui/Button/Button.js";
6
6
  import { Checkbox as s } from "./components/Ui/Checkbox/Checkbox.js";
7
7
  import { CliTextareaInput as u } from "./components/Ui/CliTextareaInput/CliTextareaInput.js";
8
8
  import "react";
9
- import { CustomLink as d } from "./components/Ui/CustomLink/CustomLink.js";
9
+ import { CustomLink as w } from "./components/Ui/CustomLink/CustomLink.js";
10
10
  import { DropdownInput as S } from "./components/Ui/DropdownInput/DropdownInput.js";
11
11
  import { DropdownMenu as A } from "./components/Ui/DropdownMenu/DropdownMenu.js";
12
12
  import { FileUpload as L } from "./components/Ui/FileUpload/FileUpload.js";
13
- import { Form as T } from "./components/Ui/Form/FormRoot/FormRoot.js";
13
+ import { Form as k } from "./components/Ui/Form/FormRoot/FormRoot.js";
14
14
  import { useForm as U } from "./components/Ui/Form/useForm/useForm.js";
15
- import { Loader as B } from "./components/Ui/Loader/Loader.js";
16
- import { Pagination as R } from "./components/Ui/Pagination/Pagination.js";
15
+ import { Loader as y } from "./components/Ui/Loader/Loader.js";
16
+ import { Pagination as v } from "./components/Ui/Pagination/Pagination.js";
17
17
  import { Radio as M } from "./components/Ui/Radio/Radio.js";
18
18
  import { SearchInput as b } from "./components/Ui/SearchInput/SearchInput.js";
19
19
  import { Skeleton as N } from "./components/Ui/Skeleton/Skeleton.js";
@@ -23,23 +23,23 @@ import { TextInput as z } from "./components/Ui/TextInput/TextInput.js";
23
23
  import { TextareaInput as V } from "./components/Ui/TextareaInput/TextareaInput.js";
24
24
  import { Tooltip as j } from "./components/Ui/Tooltip/Tooltip.js";
25
25
  import { Tree as K } from "./components/Ui/Tree/TreeEl/Tree.js";
26
- import { IconArrowBendUpRight as _, IconArrowClockwise as $, IconArrowDown as oo, IconArrowLeft as no, IconArrowLineDown as ro, IconArrowLineLeft as eo, IconArrowLineRight as co, IconArrowLineUp as Io, IconArrowRight as to, IconArrowUp as io, IconArrowsOut as po, IconArticle as ao, IconAt as lo, IconBellSimple as mo, IconBookOpenText as xo, IconCalendarBlank as fo, IconCaretDown as so, IconCaretLeft as Co, IconCaretRight as uo, IconCaretUp as wo, IconCaretUpDown as ho, IconChartPieSlice as So, IconChatText as go, IconCheck as Ao, IconCheckCircle as Do, IconChecks as Lo, IconCircleNotch as ko, IconCopy as To, IconCornersOut as Po, IconCsv as Uo, IconCube as Fo, IconDatabase as Bo, IconDotsNine as yo, IconDotsThreeVertical as Ro, IconExport as vo, IconEye as Mo, IconEyeSlash as Xo, IconFile as bo, IconFiles as Ho, IconFloppyDisk as No, IconFolderSimple as Oo, IconFolderSimpleX as Qo, IconFunnel as Eo, IconGauge as Go, IconGear as Wo, IconGoogleDrive as zo, IconHand as Jo, IconHeadCircuit as Vo, IconHouse as Yo, IconIcon as jo, IconInfo as qo, IconJoin as Ko, IconLanguage as Zo, IconLink as _o, IconList as $o, IconLock as on, IconLockOpen as nn, IconMariaDB as rn, IconMinus as en, IconMongoDB as cn, IconMoon as In, IconMySQL as tn, IconNavigationArrow as pn, IconNotePencil as an, IconPassword as ln, IconPen as mn, IconPlay as xn, IconPlugsX as fn, IconPlus as sn, IconPorsgteSQL as Cn, IconPresentationChart as un, IconQuestion as wn, IconQuestionFullfilled as dn, IconRedo as hn, IconRoleX as Sn, IconSearch as gn, IconSearchX as An, IconSelection as Dn, IconServer as Ln, IconSlidersHorizontal as kn, IconSticker as Tn, IconSun as Pn, IconThreeDot as Un, IconTrash as Fn, IconTriangleDown as Bn, IconTriangleUp as yn, IconUndo as Rn, IconUploadSimple as vn, IconUser as Mn, IconUserX as Xn, IconWarningCircle as bn, IconWrench as Hn, IconX as Nn, IconYandexDisk as On } from "./components/Ui/Icons/Icons.js";
26
+ import { IconArrowBendUpRight as _, IconArrowClockwise as $, IconArrowDown as oo, IconArrowLeft as no, IconArrowLineDown as ro, IconArrowLineLeft as eo, IconArrowLineRight as co, IconArrowLineUp as Io, IconArrowRight as to, IconArrowUp as io, IconArrowsOut as ao, IconArticle as po, IconAt as lo, IconBellSimple as mo, IconBookOpenText as xo, IconCalendarBlank as fo, IconCaretDown as so, IconCaretLeft as Co, IconCaretRight as uo, IconCaretUp as wo, IconCaretUpDown as ho, IconChartPieSlice as So, IconChatText as go, IconCheck as Ao, IconCheckCircle as Do, IconChecks as Lo, IconCircleNotch as To, IconCopy as ko, IconCornersOut as Po, IconCsv as Uo, IconCube as Fo, IconDatabase as yo, IconDotsNine as Bo, IconDotsThreeVertical as vo, IconExport as Ro, IconEye as Mo, IconEyeSlash as Xo, IconFile as bo, IconFiles as Ho, IconFloppyDisk as No, IconFolderSimple as Oo, IconFolderSimpleX as Qo, IconFunnel as Eo, IconGauge as Go, IconGear as Wo, IconGoogleDrive as zo, IconHand as Jo, IconHeadCircuit as Vo, IconHouse as Yo, IconIcon as jo, IconInfo as qo, IconJoin as Ko, IconLanguage as Zo, IconLink as _o, IconList as $o, IconLock as on, IconLockOpen as nn, IconMariaDB as rn, IconMinus as en, IconMongoDB as cn, IconMoon as In, IconMySQL as tn, IconNavigationArrow as an, IconNotePencil as pn, IconPassword as ln, IconPen as mn, IconPlay as xn, IconPlugsX as fn, IconPlus as sn, IconPorsgteSQL as Cn, IconPresentationChart as un, IconQuestion as dn, IconQuestionFullfilled as wn, IconRedo as hn, IconRoleX as Sn, IconSearch as gn, IconSearchX as An, IconSelection as Dn, IconServer as Ln, IconSlidersHorizontal as Tn, IconSticker as kn, IconSun as Pn, IconThreeDot as Un, IconTrash as Fn, IconTriangleDown as yn, IconTriangleUp as Bn, IconUndo as vn, IconUploadSimple as Rn, IconUser as Mn, IconUserX as Xn, IconWarningCircle as bn, IconWrench as Hn, IconX as Nn, IconYandexDisk as On } from "./components/Ui/Icons/Icons.js";
27
27
  import { ToastProvider as En } from "./context/ToastContext/ToastContext.js";
28
- import { TriaflyContext as Wn } from "./context/TriaflyContext/TriaflyProvider.js";
28
+ import { TriaflyContext as Wn, TriaflyProvider as zn } from "./context/TriaflyContext/TriaflyProvider.js";
29
29
  import "./context/TriaflyContext/hooks/useTheme/useTheme.js";
30
30
  export {
31
31
  c as Accordeon,
32
32
  t as Alert,
33
- p as Avatar,
33
+ a as Avatar,
34
34
  l as Badge,
35
35
  x as Button,
36
36
  s as Checkbox,
37
37
  u as CliTextareaInput,
38
- d as CustomLink,
38
+ w as CustomLink,
39
39
  S as DropdownInput,
40
40
  A as DropdownMenu,
41
41
  L as FileUpload,
42
- T as Form,
42
+ k as Form,
43
43
  _ as IconArrowBendUpRight,
44
44
  $ as IconArrowClockwise,
45
45
  oo as IconArrowDown,
@@ -50,8 +50,8 @@ export {
50
50
  Io as IconArrowLineUp,
51
51
  to as IconArrowRight,
52
52
  io as IconArrowUp,
53
- po as IconArrowsOut,
54
- ao as IconArticle,
53
+ ao as IconArrowsOut,
54
+ po as IconArticle,
55
55
  lo as IconAt,
56
56
  mo as IconBellSimple,
57
57
  xo as IconBookOpenText,
@@ -66,15 +66,15 @@ export {
66
66
  Ao as IconCheck,
67
67
  Do as IconCheckCircle,
68
68
  Lo as IconChecks,
69
- ko as IconCircleNotch,
70
- To as IconCopy,
69
+ To as IconCircleNotch,
70
+ ko as IconCopy,
71
71
  Po as IconCornersOut,
72
72
  Uo as IconCsv,
73
73
  Fo as IconCube,
74
- Bo as IconDatabase,
75
- yo as IconDotsNine,
76
- Ro as IconDotsThreeVertical,
77
- vo as IconExport,
74
+ yo as IconDatabase,
75
+ Bo as IconDotsNine,
76
+ vo as IconDotsThreeVertical,
77
+ Ro as IconExport,
78
78
  Mo as IconEye,
79
79
  Xo as IconEyeSlash,
80
80
  bo as IconFile,
@@ -102,8 +102,8 @@ export {
102
102
  cn as IconMongoDB,
103
103
  In as IconMoon,
104
104
  tn as IconMySQL,
105
- pn as IconNavigationArrow,
106
- an as IconNotePencil,
105
+ an as IconNavigationArrow,
106
+ pn as IconNotePencil,
107
107
  ln as IconPassword,
108
108
  mn as IconPen,
109
109
  xn as IconPlay,
@@ -111,31 +111,31 @@ export {
111
111
  sn as IconPlus,
112
112
  Cn as IconPorsgteSQL,
113
113
  un as IconPresentationChart,
114
- wn as IconQuestion,
115
- dn as IconQuestionFullfilled,
114
+ dn as IconQuestion,
115
+ wn as IconQuestionFullfilled,
116
116
  hn as IconRedo,
117
117
  Sn as IconRoleX,
118
118
  gn as IconSearch,
119
119
  An as IconSearchX,
120
120
  Dn as IconSelection,
121
121
  Ln as IconServer,
122
- kn as IconSlidersHorizontal,
123
- Tn as IconSticker,
122
+ Tn as IconSlidersHorizontal,
123
+ kn as IconSticker,
124
124
  Pn as IconSun,
125
125
  Un as IconThreeDot,
126
126
  Fn as IconTrash,
127
- Bn as IconTriangleDown,
128
- yn as IconTriangleUp,
129
- Rn as IconUndo,
130
- vn as IconUploadSimple,
127
+ yn as IconTriangleDown,
128
+ Bn as IconTriangleUp,
129
+ vn as IconUndo,
130
+ Rn as IconUploadSimple,
131
131
  Mn as IconUser,
132
132
  Xn as IconUserX,
133
133
  bn as IconWarningCircle,
134
134
  Hn as IconWrench,
135
135
  Nn as IconX,
136
136
  On as IconYandexDisk,
137
- B as Loader,
138
- R as Pagination,
137
+ y as Loader,
138
+ v as Pagination,
139
139
  M as Radio,
140
140
  b as SearchInput,
141
141
  N as Skeleton,
@@ -147,5 +147,6 @@ export {
147
147
  j as Tooltip,
148
148
  K as Tree,
149
149
  Wn as TriaflyContext,
150
+ zn as TriaflyProvider,
150
151
  U as useForm
151
152
  };
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "triafly-ui-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "UI Kit from Triafly",
5
- "main": "./dist/triafly-ui-kit.js",
6
- "module": "./dist/triafly-ui-kit.js",
7
- "types": "./dist/index.d.ts",
5
+ "main": "./dist/main.js",
6
+ "module": "./dist/main.js",
7
+ "types": "./dist/main.d.ts",
8
8
  "type": "module",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/triafly-ui-kit.js",
12
- "types": "./dist/index.d.ts"
11
+ "import": "./dist/main.js",
12
+ "types": "./dist/main.d.ts"
13
+ },
14
+ "./dist/*": {
15
+ "types": "./dist/*.d.ts"
13
16
  }
14
17
  },
15
18
  "files": [
package/dist/common.d.js DELETED
@@ -1 +0,0 @@
1
-