@cagatayfdn/flora-components 0.0.136 → 0.0.138

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 (185) hide show
  1. package/package.json +1 -1
  2. package/dist/Accordion.css +0 -1
  3. package/dist/ActionButton.css +0 -1
  4. package/dist/AlertCard.css +0 -1
  5. package/dist/Autocomplete.css +0 -1
  6. package/dist/Button.css +0 -1
  7. package/dist/Card.css +0 -1
  8. package/dist/Checkbox.css +0 -1
  9. package/dist/Config.css +0 -1
  10. package/dist/Confirm.css +0 -1
  11. package/dist/ContentHeader.css +0 -1
  12. package/dist/Datepicker.css +0 -1
  13. package/dist/Divider.css +0 -1
  14. package/dist/DropdownList.css +0 -1
  15. package/dist/ErrorLogModal.css +0 -1
  16. package/dist/FileUpload.css +0 -1
  17. package/dist/FileUpload.module-BxCEtOHx.js +0 -32
  18. package/dist/Heading.css +0 -1
  19. package/dist/IconBox.css +0 -1
  20. package/dist/InfoBoxList.css +0 -1
  21. package/dist/InfoBoxList.module-BHkAHgos.js +0 -8
  22. package/dist/InfoDate.css +0 -1
  23. package/dist/InfoText.css +0 -1
  24. package/dist/Input.css +0 -1
  25. package/dist/Label.css +0 -1
  26. package/dist/Legends.css +0 -1
  27. package/dist/Loading.css +0 -1
  28. package/dist/MenuItem-Df6Zsa7E.js +0 -53
  29. package/dist/MenuItem.css +0 -1
  30. package/dist/Modal.css +0 -1
  31. package/dist/NoResult.css +0 -1
  32. package/dist/PageWrap.css +0 -1
  33. package/dist/Pager.css +0 -1
  34. package/dist/Panel.css +0 -1
  35. package/dist/Radio.css +0 -1
  36. package/dist/ResultError.css +0 -1
  37. package/dist/ScrollContainer.css +0 -1
  38. package/dist/Select-BE_y91ZN.js +0 -1831
  39. package/dist/Select.css +0 -1
  40. package/dist/Select.module-ByPQ6qr4.js +0 -21
  41. package/dist/StatusTag.css +0 -1
  42. package/dist/StatusTypography.css +0 -1
  43. package/dist/Stepper.css +0 -1
  44. package/dist/Switch.css +0 -1
  45. package/dist/Tab.css +0 -1
  46. package/dist/Table.css +0 -1
  47. package/dist/Table.module-DUqpZOLt.js +0 -29
  48. package/dist/Textarea.css +0 -1
  49. package/dist/Tooltip.css +0 -1
  50. package/dist/Trans-B4ILpbwK.js +0 -343
  51. package/dist/TypographyText.css +0 -1
  52. package/dist/ValidationError.css +0 -1
  53. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  54. package/dist/_isArray-CBUZFxFA.js +0 -6
  55. package/dist/_isString-BUpNGP_8.js +0 -6
  56. package/dist/_reduce-DsUCMz4O.js +0 -148
  57. package/dist/assets/icons/icons.js +0 -70
  58. package/dist/assets/images/500_error_2x.gif +0 -0
  59. package/dist/assets/images/oms.png +0 -0
  60. package/dist/components/Accordion/Accordion.js +0 -60
  61. package/dist/components/ActionButton/ActionButton.js +0 -54
  62. package/dist/components/AlertCard/AlertCard.js +0 -29
  63. package/dist/components/AuthUserCan/Permission.js +0 -18
  64. package/dist/components/AuthUserCan/index.js +0 -23
  65. package/dist/components/Autocomplete/Autocomplete.js +0 -87
  66. package/dist/components/Button/Button.js +0 -87
  67. package/dist/components/Card/Card.js +0 -21
  68. package/dist/components/Charts/Bar.js +0 -18
  69. package/dist/components/Charts/Legends.js +0 -21
  70. package/dist/components/Charts/Line.js +0 -18
  71. package/dist/components/Charts/Pie.js +0 -43
  72. package/dist/components/Charts/index.js +0 -31
  73. package/dist/components/Charts/types.js +0 -1
  74. package/dist/components/Charts/utils.js +0 -12
  75. package/dist/components/Checkbox/Checkbox.js +0 -68
  76. package/dist/components/Config/Config.js +0 -32
  77. package/dist/components/Confirm/Confirm.js +0 -60
  78. package/dist/components/ContentHeader/ContentHeader.js +0 -75
  79. package/dist/components/ContentLoader/ContentLoader.js +0 -16
  80. package/dist/components/Countdown/Countdown.js +0 -20
  81. package/dist/components/Datepicker/Datepicker.js +0 -1478
  82. package/dist/components/Divider/Divider.js +0 -27
  83. package/dist/components/Drawer/Provider.js +0 -24
  84. package/dist/components/Drawer/index.js +0 -55
  85. package/dist/components/Dropdown/DropdownList.js +0 -90
  86. package/dist/components/ErrorLogModal/ErrorLogModal.js +0 -69
  87. package/dist/components/FileUpload/FileUpload.js +0 -237
  88. package/dist/components/FileUpload/ImagePreview.js +0 -19
  89. package/dist/components/FileUpload/LengthCard.js +0 -6
  90. package/dist/components/FileUpload/PreviewModal.js +0 -53
  91. package/dist/components/Grid/Column.js +0 -29
  92. package/dist/components/Grid/Row.js +0 -6
  93. package/dist/components/Heading/Heading.js +0 -22
  94. package/dist/components/Icon/index.js +0 -24
  95. package/dist/components/IconBox/IconBox.js +0 -13
  96. package/dist/components/InfiniteScroll/InfiniteScroll.js +0 -41
  97. package/dist/components/InfoBoxList/InfoBoxList.js +0 -30
  98. package/dist/components/InfoBoxList/helper.js +0 -83
  99. package/dist/components/InfoDate/InfoDate.js +0 -19
  100. package/dist/components/InfoText/InfoText.js +0 -13
  101. package/dist/components/Input/Input.js +0 -140
  102. package/dist/components/Label/Label.js +0 -22
  103. package/dist/components/Loading/Loading.js +0 -62
  104. package/dist/components/Modal/Modal.js +0 -74
  105. package/dist/components/NavigatorCard/index.js +0 -59
  106. package/dist/components/NoResult/NoResult.js +0 -12
  107. package/dist/components/Notification/Notification.js +0 -26
  108. package/dist/components/PageWrapper/PageWrap.js +0 -46
  109. package/dist/components/Pager/Pager.js +0 -103
  110. package/dist/components/Panel/Panel.js +0 -71
  111. package/dist/components/PermaLink/PermaLink.js +0 -387
  112. package/dist/components/Radio/Radio.js +0 -96
  113. package/dist/components/ResultError/ResultError.js +0 -20
  114. package/dist/components/ScrollContainer/ScrollContainer.js +0 -23
  115. package/dist/components/Select/NoData.js +0 -10
  116. package/dist/components/Select/OptionItem.js +0 -19
  117. package/dist/components/Select/Select.js +0 -13
  118. package/dist/components/Sidebar/MenuItem.js +0 -9
  119. package/dist/components/Sidebar/index.js +0 -137
  120. package/dist/components/StatusTag/StatusTag.js +0 -24
  121. package/dist/components/StatusTypography/StatusTypography.js +0 -51
  122. package/dist/components/Stepper/Stepper.js +0 -75
  123. package/dist/components/Switch/Switch.js +0 -84
  124. package/dist/components/Tab/Tab.js +0 -28
  125. package/dist/components/Table/Table.js +0 -271
  126. package/dist/components/Table/TableHeader.js +0 -137
  127. package/dist/components/Table/TableSort.js +0 -25
  128. package/dist/components/Textarea/Textarea.js +0 -95
  129. package/dist/components/Tooltip/Tooltip.js +0 -1548
  130. package/dist/components/TypographyText/TypographyText.js +0 -91
  131. package/dist/components/ValidationError/ValidationError.js +0 -7
  132. package/dist/components/index.js +0 -133
  133. package/dist/defineProperty-DeKy1XT0.js +0 -37
  134. package/dist/enums/appearance.js +0 -14
  135. package/dist/enums/applicationTypeSlug.js +0 -4
  136. package/dist/enums/index.js +0 -29
  137. package/dist/enums/isActiveColor.js +0 -4
  138. package/dist/enums/size.js +0 -4
  139. package/dist/enums/status.js +0 -11
  140. package/dist/equals-PL9KqVQf.js +0 -119
  141. package/dist/flatpickr-CRz1AV0e.js +0 -59
  142. package/dist/hooks/index.js +0 -15
  143. package/dist/hooks/useAauth.js +0 -40
  144. package/dist/hooks/useDisclosure.js +0 -14
  145. package/dist/hooks/useDrawer.js +0 -9
  146. package/dist/hooks/useMediaQuery.js +0 -21
  147. package/dist/hooks/useNiceModal.js +0 -13
  148. package/dist/i18nInstance-CiCZbaCK.js +0 -55
  149. package/dist/includes-8YTFrx85.js +0 -46
  150. package/dist/index-9ZLCCecr.js +0 -364
  151. package/dist/index-BHf7G3IG.js +0 -35
  152. package/dist/index-BJU1K2Aw.js +0 -8003
  153. package/dist/index-CB61CB0b.js +0 -669
  154. package/dist/index-H7XbDVmH.js +0 -320
  155. package/dist/index-JNaMEwgt.js +0 -1413
  156. package/dist/index.css +0 -1
  157. package/dist/index.d.mts +0 -1463
  158. package/dist/index.d.ts +0 -1463
  159. package/dist/index.js +0 -200
  160. package/dist/index2.css +0 -1
  161. package/dist/jsx-runtime-BcAkpsdy.js +0 -631
  162. package/dist/keys-B0bo5Q7o.js +0 -67
  163. package/dist/locales/en/index.js +0 -613
  164. package/dist/locales/i18n.js +0 -1417
  165. package/dist/locales/index.js +0 -5
  166. package/dist/locales/tr/index.js +0 -613
  167. package/dist/main.css +0 -1
  168. package/dist/main.js +0 -56
  169. package/dist/prodivers.css +0 -6
  170. package/dist/prodivers.js +0 -13
  171. package/dist/react-content-loader.es-CswLCxkm.js +0 -90
  172. package/dist/react-toastify.esm-BUWNP7Nm.js +0 -808
  173. package/dist/types/common/date.js +0 -1
  174. package/dist/types/common/events.js +0 -1
  175. package/dist/types/common/forms.js +0 -1
  176. package/dist/types/common/option.js +0 -1
  177. package/dist/types/index.js +0 -1
  178. package/dist/useTranslation-CnCPcxVj.js +0 -142
  179. package/dist/utils/date.js +0 -413
  180. package/dist/utils/flatpickr.js +0 -4
  181. package/dist/utils/helper.js +0 -55
  182. package/dist/utils/index.js +0 -24
  183. package/dist/utils/language.js +0 -46
  184. package/dist/utils/validation.js +0 -27
  185. package/dist/utils/yup.js +0 -2921
@@ -1,320 +0,0 @@
1
- import u, { useContext as I, useEffect as k, useCallback as m, useMemo as j, useReducer as T } from "react";
2
- var d = function() {
3
- return d = Object.assign || function(e) {
4
- for (var r, i = 1, n = arguments.length; i < n; i++) {
5
- r = arguments[i];
6
- for (var t in r)
7
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
8
- }
9
- return e;
10
- }, d.apply(this, arguments);
11
- }, V = function(e, r) {
12
- var i = {};
13
- for (var n in e)
14
- Object.prototype.hasOwnProperty.call(e, n) && r.indexOf(n) < 0 && (i[n] = e[n]);
15
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
16
- for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
17
- r.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (i[n[t]] = e[n[t]]);
18
- return i;
19
- }, P = Symbol("NiceModalId"), x = {}, g = u.createContext(x), S = u.createContext(null), f = {}, C = {}, Y = 0, y = function() {
20
- throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?");
21
- }, A = function() {
22
- return "_nice_modal_" + Y++;
23
- }, F = function(e, r) {
24
- var i, n, t;
25
- switch (e === void 0 && (e = x), r.type) {
26
- case "nice-modal/show": {
27
- var l = r.payload, o = l.modalId, a = l.args;
28
- return d(d({}, e), (i = {}, i[o] = d(d({}, e[o]), {
29
- id: o,
30
- args: a,
31
- // If modal is not mounted, mount it first then make it visible.
32
- // There is logic inside HOC wrapper to make it visible after its first mount.
33
- // This mechanism ensures the entering transition.
34
- visible: !!C[o],
35
- delayVisible: !C[o]
36
- }), i));
37
- }
38
- case "nice-modal/hide": {
39
- var o = r.payload.modalId;
40
- return e[o] ? d(d({}, e), (n = {}, n[o] = d(d({}, e[o]), { visible: !1 }), n)) : e;
41
- }
42
- case "nice-modal/remove": {
43
- var o = r.payload.modalId, v = d({}, e);
44
- return delete v[o], v;
45
- }
46
- case "nice-modal/set-flags": {
47
- var s = r.payload, o = s.modalId, h = s.flags;
48
- return d(d({}, e), (t = {}, t[o] = d(d({}, e[o]), h), t));
49
- }
50
- default:
51
- return e;
52
- }
53
- };
54
- function G(e) {
55
- var r;
56
- return (r = f[e]) === null || r === void 0 ? void 0 : r.comp;
57
- }
58
- function J(e, r) {
59
- return {
60
- type: "nice-modal/show",
61
- payload: {
62
- modalId: e,
63
- args: r
64
- }
65
- };
66
- }
67
- function X(e, r) {
68
- return {
69
- type: "nice-modal/set-flags",
70
- payload: {
71
- modalId: e,
72
- flags: r
73
- }
74
- };
75
- }
76
- function q(e) {
77
- return {
78
- type: "nice-modal/hide",
79
- payload: {
80
- modalId: e
81
- }
82
- };
83
- }
84
- function z(e) {
85
- return {
86
- type: "nice-modal/remove",
87
- payload: {
88
- modalId: e
89
- }
90
- };
91
- }
92
- var p = {}, b = {}, N = function(e) {
93
- return typeof e == "string" ? e : (e[P] || (e[P] = A()), e[P]);
94
- };
95
- function D(e, r) {
96
- var i = N(e);
97
- if (typeof e != "string" && !f[i] && O(i, e), y(J(i, r)), !p[i]) {
98
- var n, t, l = new Promise(function(o, a) {
99
- n = o, t = a;
100
- });
101
- p[i] = {
102
- resolve: n,
103
- reject: t,
104
- promise: l
105
- };
106
- }
107
- return p[i].promise;
108
- }
109
- function _(e) {
110
- var r = N(e);
111
- if (y(q(r)), delete p[r], !b[r]) {
112
- var i, n, t = new Promise(function(l, o) {
113
- i = l, n = o;
114
- });
115
- b[r] = {
116
- resolve: i,
117
- reject: n,
118
- promise: t
119
- };
120
- }
121
- return b[r].promise;
122
- }
123
- var U = function(e) {
124
- var r = N(e);
125
- y(z(r)), delete p[r], delete b[r];
126
- }, B = function(e, r) {
127
- y(X(e, r));
128
- };
129
- function L(e, r) {
130
- var i = I(g), n = I(S), t = null, l = e && typeof e != "string";
131
- if (e ? t = N(e) : t = n, !t)
132
- throw new Error("No modal id found in NiceModal.useModal.");
133
- var o = t;
134
- k(function() {
135
- l && !f[o] && O(o, e, r);
136
- }, [l, o, e, r]);
137
- var a = i[o], v = m(function(M) {
138
- return D(o, M);
139
- }, [o]), s = m(function() {
140
- return _(o);
141
- }, [o]), h = m(function() {
142
- return U(o);
143
- }, [o]), E = m(function(M) {
144
- var c;
145
- (c = p[o]) === null || c === void 0 || c.resolve(M), delete p[o];
146
- }, [o]), w = m(function(M) {
147
- var c;
148
- (c = p[o]) === null || c === void 0 || c.reject(M), delete p[o];
149
- }, [o]), H = m(function(M) {
150
- var c;
151
- (c = b[o]) === null || c === void 0 || c.resolve(M), delete b[o];
152
- }, [o]);
153
- return j(function() {
154
- return {
155
- id: o,
156
- args: a == null ? void 0 : a.args,
157
- visible: !!(a != null && a.visible),
158
- keepMounted: !!(a != null && a.keepMounted),
159
- show: v,
160
- hide: s,
161
- remove: h,
162
- resolve: E,
163
- reject: w,
164
- resolveHide: H
165
- };
166
- }, [
167
- o,
168
- a == null ? void 0 : a.args,
169
- a == null ? void 0 : a.visible,
170
- a == null ? void 0 : a.keepMounted,
171
- v,
172
- s,
173
- h,
174
- E,
175
- w,
176
- H
177
- ]);
178
- }
179
- var K = function(e) {
180
- return function(r) {
181
- var i, n = r.defaultVisible, t = r.keepMounted, l = r.id, o = V(r, ["defaultVisible", "keepMounted", "id"]), a = L(l), v = a.args, s = a.show, h = I(g), E = !!h[l];
182
- k(function() {
183
- return n && s(), C[l] = !0, function() {
184
- delete C[l];
185
- };
186
- }, [l, s, n]), k(function() {
187
- t && B(l, { keepMounted: !0 });
188
- }, [l, t]);
189
- var w = (i = h[l]) === null || i === void 0 ? void 0 : i.delayVisible;
190
- return k(function() {
191
- w && s(v);
192
- }, [w, v, s]), E ? u.createElement(
193
- S.Provider,
194
- { value: l },
195
- u.createElement(e, d({}, o, v))
196
- ) : null;
197
- };
198
- }, O = function(e, r, i) {
199
- f[e] ? f[e].props = i : f[e] = { comp: r, props: i };
200
- }, Q = function(e) {
201
- delete f[e];
202
- }, R = function() {
203
- var e = I(g), r = Object.keys(e).filter(function(n) {
204
- return !!e[n];
205
- });
206
- r.forEach(function(n) {
207
- if (!f[n] && !C[n]) {
208
- console.warn("No modal found for id: " + n + ". Please check the id or if it is registered or declared via JSX.");
209
- return;
210
- }
211
- });
212
- var i = r.filter(function(n) {
213
- return f[n];
214
- }).map(function(n) {
215
- return d({ id: n }, f[n]);
216
- });
217
- return u.createElement(u.Fragment, null, i.map(function(n) {
218
- return u.createElement(n.comp, d({ key: n.id, id: n.id }, n.props));
219
- }));
220
- }, W = function(e) {
221
- var r = e.children, i = T(F, x), n = i[0];
222
- return y = i[1], u.createElement(
223
- g.Provider,
224
- { value: n },
225
- r,
226
- u.createElement(R, null)
227
- );
228
- }, Z = function(e) {
229
- var r = e.children, i = e.dispatch, n = e.modals;
230
- return !i || !n ? u.createElement(W, null, r) : (y = i, u.createElement(
231
- g.Provider,
232
- { value: n },
233
- r,
234
- u.createElement(R, null)
235
- ));
236
- }, $ = function(e) {
237
- var r = e.id, i = e.component;
238
- return k(function() {
239
- return O(r, i), function() {
240
- Q(r);
241
- };
242
- }, [r, i]), null;
243
- }, ee = function(e) {
244
- var r, i = e.modal, n = e.handler, t = n === void 0 ? {} : n, l = V(e, ["modal", "handler"]), o = j(function() {
245
- return A();
246
- }, []), a = typeof i == "string" ? (r = f[i]) === null || r === void 0 ? void 0 : r.comp : i;
247
- if (!t)
248
- throw new Error("No handler found in NiceModal.ModalHolder.");
249
- if (!a)
250
- throw new Error("No modal found for id: " + i + " in NiceModal.ModalHolder.");
251
- return t.show = m(function(v) {
252
- return D(o, v);
253
- }, [o]), t.hide = m(function() {
254
- return _(o);
255
- }, [o]), u.createElement(a, d({ id: o }, l));
256
- }, re = function(e) {
257
- return {
258
- visible: e.visible,
259
- onOk: function() {
260
- return e.hide();
261
- },
262
- onCancel: function() {
263
- return e.hide();
264
- },
265
- afterClose: function() {
266
- e.resolveHide(), e.keepMounted || e.remove();
267
- }
268
- };
269
- }, ne = function(e) {
270
- return {
271
- visible: e.visible,
272
- onClose: function() {
273
- return e.hide();
274
- },
275
- afterVisibleChange: function(r) {
276
- r || e.resolveHide(), !r && !e.keepMounted && e.remove();
277
- }
278
- };
279
- }, oe = function(e) {
280
- return {
281
- open: e.visible,
282
- onClose: function() {
283
- return e.hide();
284
- },
285
- onExited: function() {
286
- e.resolveHide(), !e.keepMounted && e.remove();
287
- }
288
- };
289
- }, ie = function(e) {
290
- return {
291
- show: e.visible,
292
- onHide: function() {
293
- return e.hide();
294
- },
295
- onExited: function() {
296
- e.resolveHide(), !e.keepMounted && e.remove();
297
- }
298
- };
299
- }, ae = {
300
- Provider: Z,
301
- ModalDef: $,
302
- ModalHolder: ee,
303
- NiceModalContext: g,
304
- create: K,
305
- register: O,
306
- getModal: G,
307
- show: D,
308
- hide: _,
309
- remove: U,
310
- useModal: L,
311
- reducer: F,
312
- antdModal: re,
313
- antdDrawer: ne,
314
- muiDialog: oe,
315
- bootstrapDialog: ie
316
- };
317
- export {
318
- ae as N,
319
- L as u
320
- };