gasp-components 1.0.10 → 1.0.11

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 (86) hide show
  1. package/dist/UploadOutlined-9WKjHsqa.js +878 -0
  2. package/dist/components/ag-grid-table/index.js +57877 -38314
  3. package/dist/components/button/index.js +18 -18
  4. package/dist/components/checklist/checklist-item.js +3 -3
  5. package/dist/components/checklist/index.js +5 -5
  6. package/dist/components/date-picker/index.js +9 -5022
  7. package/dist/components/dragger/index.js +28 -28
  8. package/dist/components/dropdown/index.js +10 -11
  9. package/dist/components/form/index.js +8 -9
  10. package/dist/components/form-item/index.js +10 -10
  11. package/dist/components/input/index.js +8 -8
  12. package/dist/components/modal/index.js +18 -20
  13. package/dist/components/password-input/index.js +2 -2
  14. package/dist/components/progress/index.js +16 -18
  15. package/dist/components/progress-circle/index.js +3 -3
  16. package/dist/components/radio-button/index.js +8 -8
  17. package/dist/components/result-popup/index.js +13 -14
  18. package/dist/components/select/index.js +1 -1
  19. package/dist/components/side-menu/index.js +2 -2
  20. package/dist/components/side-menu/menu-item.js +4 -6
  21. package/dist/components/steps/index.js +9 -9
  22. package/dist/components/table/index.js +16 -9298
  23. package/dist/components/tabs/index.js +10 -10
  24. package/dist/components/tabs/tab.js +7 -8
  25. package/dist/components/tag/index.js +9 -258
  26. package/dist/components/timeline-horizontal/index.js +7 -7
  27. package/dist/components/upload/index.js +62 -77
  28. package/dist/index-WlPrqxgY.js +87 -0
  29. package/dist/main.js +69 -457
  30. package/package.json +1 -1
  31. package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
  32. package/dist/CheckOutlined-EgxCAgj_.js +0 -16
  33. package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
  34. package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
  35. package/dist/Compact-fdEKV_mF.js +0 -180
  36. package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
  37. package/dist/KeyCode-qFRXB1-n.js +0 -517
  38. package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
  39. package/dist/Overflow-JFdXKgCr.js +0 -231
  40. package/dist/PurePanel-hLGnXbul.js +0 -60
  41. package/dist/SearchOutlined-rJTFGXUi.js +0 -16
  42. package/dist/TextArea-n3dknzTq.js +0 -716
  43. package/dist/UploadOutlined-D8jfLEgv.js +0 -27
  44. package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
  45. package/dist/button-LN5ZDad8.js +0 -819
  46. package/dist/collapse-ilv4Tji1.js +0 -20
  47. package/dist/colors-opGg9oSz.js +0 -25
  48. package/dist/compact-item-jjuVmDBH.js +0 -61
  49. package/dist/context-h3WSVDPz.js +0 -2087
  50. package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
  51. package/dist/index--6VfGMUo.js +0 -402
  52. package/dist/index-0mpuHoS5.js +0 -996
  53. package/dist/index-1KQbTQJ2.js +0 -4405
  54. package/dist/index-5Uo03BMk.js +0 -681
  55. package/dist/index-BFgxz47K.js +0 -89
  56. package/dist/index-D3LMPWyJ.js +0 -1437
  57. package/dist/index-DVS_nWxv.js +0 -3026
  58. package/dist/index-ELHBhuK9.js +0 -100
  59. package/dist/index-Fn8q8B3V.js +0 -107
  60. package/dist/index-GgkQrebz.js +0 -950
  61. package/dist/index-L-MzVDcK.js +0 -616
  62. package/dist/index-M3WnMjiA.js +0 -230
  63. package/dist/index-NQd_zMf0.js +0 -69
  64. package/dist/index-ZT64Ec6u.js +0 -267
  65. package/dist/index-aawDqn9q.js +0 -3337
  66. package/dist/index-k04G4nlS.js +0 -1416
  67. package/dist/index-s3u4YBl4.js +0 -8
  68. package/dist/index-vtDVJV8q.js +0 -19571
  69. package/dist/isVisible-Qi9l15Ty.js +0 -232
  70. package/dist/motion-0ToOu81j.js +0 -226
  71. package/dist/motion-NQme0FJ_.js +0 -32
  72. package/dist/omit-ylWA0ZLZ.js +0 -10
  73. package/dist/pickAttrs-zaQzRTqh.js +0 -42
  74. package/dist/progress-a1_pwKVT.js +0 -722
  75. package/dist/reactNode-R20zZQk1.js +0 -18
  76. package/dist/responsiveObserver-V1_1G14X.js +0 -71
  77. package/dist/roundedArrow-p1Pmd9av.js +0 -64
  78. package/dist/row-sPFiFm0C.js +0 -230
  79. package/dist/slide-mFXPRHku.js +0 -265
  80. package/dist/styleChecker-pZ3k2IiY.js +0 -37
  81. package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
  82. package/dist/useClosable-4G12n4Bp.js +0 -15
  83. package/dist/useLocale-eThlLZJw.js +0 -16
  84. package/dist/useMergedState-qUafLuUa.js +0 -23
  85. package/dist/useVariants-s0IcneBD.js +0 -25
  86. package/dist/zoom-Ps8y0jNW.js +0 -174
@@ -1,16 +0,0 @@
1
- import * as s from "react";
2
- import { L as i, l as n } from "./index-1KQbTQJ2.js";
3
- const d = (l, c) => {
4
- const o = s.useContext(i), a = s.useMemo(() => {
5
- var e;
6
- const t = c || n[l], r = (e = o == null ? void 0 : o[l]) !== null && e !== void 0 ? e : {};
7
- return Object.assign(Object.assign({}, typeof t == "function" ? t() : t), r || {});
8
- }, [l, c, o]), u = s.useMemo(() => {
9
- const e = o == null ? void 0 : o.locale;
10
- return o != null && o.exist && !e ? n.locale : e;
11
- }, [o]);
12
- return [a, u];
13
- }, L = d;
14
- export {
15
- L as u
16
- };
@@ -1,23 +0,0 @@
1
- import { a as d, b as g, c as S } from "./index-1KQbTQJ2.js";
2
- import { u as V } from "./isVisible-Qi9l15Ty.js";
3
- function o(t) {
4
- return t !== void 0;
5
- }
6
- function F(t, _) {
7
- var a = _ || {}, n = a.defaultValue, e = a.value, h = a.onChange, s = a.postState, m = d(function() {
8
- return o(e) ? e : o(n) ? typeof n == "function" ? n() : n : typeof t == "function" ? t() : t;
9
- }), i = g(m, 2), f = i[0], v = i[1], u = e !== void 0 ? e : f, C = s ? s(u) : u, y = V(h), E = d([u]), l = g(E, 2), c = l[0], M = l[1];
10
- S(function() {
11
- var r = c[0];
12
- f !== r && y(f, r);
13
- }, [c]), S(function() {
14
- o(e) || v(e);
15
- }, [e]);
16
- var b = V(function(r, p) {
17
- v(r, p), M([u], p);
18
- });
19
- return [C, b];
20
- }
21
- export {
22
- F as u
23
- };
@@ -1,25 +0,0 @@
1
- import { c as r } from "./index-NQd_zMf0.js";
2
- import { useContext as o } from "react";
3
- import { V as i } from "./context-h3WSVDPz.js";
4
- function g(e, t, n) {
5
- return r({
6
- [`${e}-status-success`]: t === "success",
7
- [`${e}-status-warning`]: t === "warning",
8
- [`${e}-status-error`]: t === "error",
9
- [`${e}-status-validating`]: t === "validating",
10
- [`${e}-has-feedback`]: n
11
- });
12
- }
13
- const m = (e, t) => t || e, u = ["outlined", "borderless", "filled"], f = function(e) {
14
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
15
- const n = o(i);
16
- let s;
17
- typeof e < "u" ? s = e : t === !1 ? s = "borderless" : s = n ?? "outlined";
18
- const a = u.includes(s);
19
- return [s, a];
20
- };
21
- export {
22
- m as a,
23
- g,
24
- f as u
25
- };
@@ -1,174 +0,0 @@
1
- import "./index-1KQbTQJ2.js";
2
- import "react";
3
- import { K as o, i as f } from "./motion-0ToOu81j.js";
4
- const c = new o("antZoomIn", {
5
- "0%": {
6
- transform: "scale(0.2)",
7
- opacity: 0
8
- },
9
- "100%": {
10
- transform: "scale(1)",
11
- opacity: 1
12
- }
13
- }), y = new o("antZoomOut", {
14
- "0%": {
15
- transform: "scale(1)"
16
- },
17
- "100%": {
18
- transform: "scale(0.2)",
19
- opacity: 0
20
- }
21
- }), a = new o("antZoomBigIn", {
22
- "0%": {
23
- transform: "scale(0.8)",
24
- opacity: 0
25
- },
26
- "100%": {
27
- transform: "scale(1)",
28
- opacity: 1
29
- }
30
- }), s = new o("antZoomBigOut", {
31
- "0%": {
32
- transform: "scale(1)"
33
- },
34
- "100%": {
35
- transform: "scale(0.8)",
36
- opacity: 0
37
- }
38
- }), g = new o("antZoomUpIn", {
39
- "0%": {
40
- transform: "scale(0.8)",
41
- transformOrigin: "50% 0%",
42
- opacity: 0
43
- },
44
- "100%": {
45
- transform: "scale(1)",
46
- transformOrigin: "50% 0%"
47
- }
48
- }), O = new o("antZoomUpOut", {
49
- "0%": {
50
- transform: "scale(1)",
51
- transformOrigin: "50% 0%"
52
- },
53
- "100%": {
54
- transform: "scale(0.8)",
55
- transformOrigin: "50% 0%",
56
- opacity: 0
57
- }
58
- }), l = new o("antZoomLeftIn", {
59
- "0%": {
60
- transform: "scale(0.8)",
61
- transformOrigin: "0% 50%",
62
- opacity: 0
63
- },
64
- "100%": {
65
- transform: "scale(1)",
66
- transformOrigin: "0% 50%"
67
- }
68
- }), p = new o("antZoomLeftOut", {
69
- "0%": {
70
- transform: "scale(1)",
71
- transformOrigin: "0% 50%"
72
- },
73
- "100%": {
74
- transform: "scale(0.8)",
75
- transformOrigin: "0% 50%",
76
- opacity: 0
77
- }
78
- }), u = new o("antZoomRightIn", {
79
- "0%": {
80
- transform: "scale(0.8)",
81
- transformOrigin: "100% 50%",
82
- opacity: 0
83
- },
84
- "100%": {
85
- transform: "scale(1)",
86
- transformOrigin: "100% 50%"
87
- }
88
- }), z = new o("antZoomRightOut", {
89
- "0%": {
90
- transform: "scale(1)",
91
- transformOrigin: "100% 50%"
92
- },
93
- "100%": {
94
- transform: "scale(0.8)",
95
- transformOrigin: "100% 50%",
96
- opacity: 0
97
- }
98
- }), K = new o("antZoomDownIn", {
99
- "0%": {
100
- transform: "scale(0.8)",
101
- transformOrigin: "50% 100%",
102
- opacity: 0
103
- },
104
- "100%": {
105
- transform: "scale(1)",
106
- transformOrigin: "50% 100%"
107
- }
108
- }), w = new o("antZoomDownOut", {
109
- "0%": {
110
- transform: "scale(1)",
111
- transformOrigin: "50% 100%"
112
- },
113
- "100%": {
114
- transform: "scale(0.8)",
115
- transformOrigin: "50% 100%",
116
- opacity: 0
117
- }
118
- }), I = {
119
- zoom: {
120
- inKeyframes: c,
121
- outKeyframes: y
122
- },
123
- "zoom-big": {
124
- inKeyframes: a,
125
- outKeyframes: s
126
- },
127
- "zoom-big-fast": {
128
- inKeyframes: a,
129
- outKeyframes: s
130
- },
131
- "zoom-left": {
132
- inKeyframes: l,
133
- outKeyframes: p
134
- },
135
- "zoom-right": {
136
- inKeyframes: u,
137
- outKeyframes: z
138
- },
139
- "zoom-up": {
140
- inKeyframes: g,
141
- outKeyframes: O
142
- },
143
- "zoom-down": {
144
- inKeyframes: K,
145
- outKeyframes: w
146
- }
147
- }, $ = (n, r) => {
148
- const {
149
- antCls: m
150
- } = n, t = `${m}-${r}`, {
151
- inKeyframes: i,
152
- outKeyframes: e
153
- } = I[r];
154
- return [f(t, i, e, r === "zoom-big-fast" ? n.motionDurationFast : n.motionDurationMid), {
155
- [`
156
- ${t}-enter,
157
- ${t}-appear
158
- `]: {
159
- transform: "scale(0)",
160
- opacity: 0,
161
- animationTimingFunction: n.motionEaseOutCirc,
162
- "&-prepare": {
163
- transform: "none"
164
- }
165
- },
166
- [`${t}-leave`]: {
167
- animationTimingFunction: n.motionEaseInOutCirc
168
- }
169
- }];
170
- };
171
- export {
172
- $ as i,
173
- c as z
174
- };