ekm-ui 0.0.26 → 0.0.27
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.
- package/.turbo/turbo-build.log +35 -30
- package/CHANGELOG.md +2 -1
- package/dist/card-payment-block.mjs +5 -4
- package/dist/chunk-B2KVPYRJ.mjs +10 -0
- package/dist/chunk-B2KVPYRJ.mjs.map +1 -0
- package/dist/{chunk-MOQM5IK4.mjs → chunk-HW7A22PY.mjs} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +5 -4
- package/dist/layout/layout.mjs +5 -4
- package/dist/loading-button.d.ts +6 -0
- package/dist/loading-button.mjs +4 -0
- package/dist/loading-button.mjs.map +1 -0
- package/dist/stacked-list-item.mjs +5 -4
- package/package.json +1 -1
- package/src/index.tsx +1 -0
- package/src/loading-button.tsx +61 -0
- /package/dist/{chunk-MOQM5IK4.mjs.map → chunk-HW7A22PY.mjs.map} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsup
|
|
2
|
-
[34mCLI[39m Building entry: src/alert.tsx, src/avatar.tsx, src/button-group-item.tsx, src/button.tsx, src/card-payment-block.tsx, src/color-picker.tsx, src/dashboard-notification.tsx, src/draggable-stacked-list-item.tsx, src/drawer.tsx, src/ekm-logo.tsx, src/fixed-alert.tsx, src/footer-heart-icon.tsx, src/form-row.tsx, src/image-thumbnail.tsx, src/index.tsx, src/input-addon.tsx, src/input-copy.tsx, src/love-footer.tsx, src/mini-feature-block.tsx, src/no-results-block.tsx, src/page-header.tsx, src/stacked-list-item.tsx, src/text-row.tsx, src/video-dashboard-notification.tsx, src/video-modal.tsx, src/layout/layout.tsx, src/navbar/navbar.tsx, src/pagination/pagination.tsx, src/rich-text-editor/index.tsx, src/search/search.tsx, src/sidebar/sidebar.tsx, src/sort/sort.tsx, src/table-header/table-header.tsx, src/toast/index.tsx
|
|
2
|
+
[34mCLI[39m Building entry: src/alert.tsx, src/avatar.tsx, src/button-group-item.tsx, src/button.tsx, src/card-payment-block.tsx, src/color-picker.tsx, src/dashboard-notification.tsx, src/draggable-stacked-list-item.tsx, src/drawer.tsx, src/ekm-logo.tsx, src/fixed-alert.tsx, src/footer-heart-icon.tsx, src/form-row.tsx, src/image-thumbnail.tsx, src/index.tsx, src/input-addon.tsx, src/input-copy.tsx, src/loading-button.tsx, src/love-footer.tsx, src/mini-feature-block.tsx, src/no-results-block.tsx, src/page-header.tsx, src/stacked-list-item.tsx, src/text-row.tsx, src/video-dashboard-notification.tsx, src/video-modal.tsx, src/layout/layout.tsx, src/navbar/navbar.tsx, src/pagination/pagination.tsx, src/rich-text-editor/index.tsx, src/search/search.tsx, src/sidebar/sidebar.tsx, src/sort/sort.tsx, src/table-header/table-header.tsx, src/toast/index.tsx
|
|
3
3
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
4
4
|
[34mCLI[39m tsup v6.7.0
|
|
5
5
|
[34mCLI[39m Using tsup config: /home/runner/work/dev/dev/frontend/packages/ekm-ui/tsup.config.ts
|
|
@@ -10,8 +10,8 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
10
10
|
npx update-browserslist-db@latest
|
|
11
11
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 39518ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.77 KB[39m
|
|
15
15
|
[32mDTS[39m [1mdist/ekm-logo.d.ts [22m[32m104.00 B[39m
|
|
16
16
|
[32mDTS[39m [1mdist/footer-heart-icon.d.ts [22m[32m70.00 B[39m
|
|
17
17
|
[32mDTS[39m [1mdist/alert.d.ts [22m[32m245.00 B[39m
|
|
@@ -28,6 +28,7 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
28
28
|
[32mDTS[39m [1mdist/image-thumbnail.d.ts [22m[32m276.00 B[39m
|
|
29
29
|
[32mDTS[39m [1mdist/input-addon.d.ts [22m[32m195.00 B[39m
|
|
30
30
|
[32mDTS[39m [1mdist/input-copy.d.ts [22m[32m240.00 B[39m
|
|
31
|
+
[32mDTS[39m [1mdist/loading-button.d.ts [22m[32m142.00 B[39m
|
|
31
32
|
[32mDTS[39m [1mdist/love-footer.d.ts [22m[32m68.00 B[39m
|
|
32
33
|
[32mDTS[39m [1mdist/mini-feature-block.d.ts [22m[32m254.00 B[39m
|
|
33
34
|
[32mDTS[39m [1mdist/no-results-block.d.ts [22m[32m256.00 B[39m
|
|
@@ -41,8 +42,8 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
41
42
|
[32mDTS[39m [1mdist/pagination/pagination.d.ts [22m[32m319.00 B[39m
|
|
42
43
|
[32mDTS[39m [1mdist/search/search.d.ts [22m[32m1.96 KB[39m
|
|
43
44
|
[32mDTS[39m [1mdist/sidebar/sidebar.d.ts [22m[32m166.00 B[39m
|
|
44
|
-
[32mDTS[39m [1mdist/sort/sort.d.ts [22m[32m689.00 B[39m
|
|
45
45
|
[32mDTS[39m [1mdist/toast/index.d.ts [22m[32m420.00 B[39m
|
|
46
|
+
[32mDTS[39m [1mdist/sort/sort.d.ts [22m[32m689.00 B[39m
|
|
46
47
|
[32mDTS[39m [1mdist/table-header/table-header.d.ts [22m[32m2.48 KB[39m
|
|
47
48
|
[32mDTS[39m [1mdist/rich-text-editor/index.d.ts [22m[32m613.00 B[39m
|
|
48
49
|
"HiArchive", "HiCurrencyDollar", "HiInbox", "HiLogout", "HiOutlineTicket", "HiShoppingBag", "HiUserCircle", "HiUsers" and "HiViewGrid" are imported from external module "react-icons/hi" but never used in "dist/chunk-256SAVHD.mjs".
|
|
@@ -50,66 +51,68 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
50
51
|
[32mESM[39m [1mdist/stacked-list-item.css [22m[32m112.07 KB[39m
|
|
51
52
|
[32mESM[39m [1mdist/index.css [22m[32m112.06 KB[39m
|
|
52
53
|
[32mESM[39m [1mdist/card-payment-block.css [22m[32m112.07 KB[39m
|
|
54
|
+
[32mESM[39m [1mdist/layout/layout.css.map [22m[32m159.14 KB[39m
|
|
53
55
|
[32mESM[39m [1mdist/stacked-list-item.css.map [22m[32m159.14 KB[39m
|
|
54
56
|
[32mESM[39m [1mdist/index.css.map [22m[32m159.14 KB[39m
|
|
55
|
-
[32mESM[39m [1mdist/layout/layout.css.map [22m[32m159.14 KB[39m
|
|
56
|
-
[32mESM[39m [1mdist/card-payment-block.css.map [22m[32m159.14 KB[39m
|
|
57
57
|
[32mESM[39m [1mdist/chunk-RUPJ2ZHA.mjs [22m[32m1.13 KB[39m
|
|
58
|
+
[32mESM[39m [1mdist/sort/sort.mjs [22m[32m180.00 B[39m
|
|
58
59
|
[32mESM[39m [1mdist/table-header/table-header.mjs [22m[32m195.00 B[39m
|
|
60
|
+
[32mESM[39m [1mdist/card-payment-block.css.map [22m[32m159.14 KB[39m
|
|
61
|
+
[32mESM[39m [1mdist/video-dashboard-notification.mjs [22m[32m192.00 B[39m
|
|
59
62
|
[32mESM[39m [1mdist/toast/index.mjs [22m[32m192.00 B[39m
|
|
60
63
|
[32mESM[39m [1mdist/video-modal.mjs [22m[32m159.00 B[39m
|
|
64
|
+
[32mESM[39m [1mdist/layout/layout.mjs [22m[32m1.15 KB[39m
|
|
61
65
|
[32mESM[39m [1mdist/navbar/navbar.mjs [22m[32m184.00 B[39m
|
|
62
|
-
[32mESM[39m [1mdist/layout/layout.mjs [22m[32m1.12 KB[39m
|
|
63
66
|
[32mESM[39m [1mdist/pagination/pagination.mjs [22m[32m160.00 B[39m
|
|
64
67
|
[32mESM[39m [1mdist/rich-text-editor/index.mjs [22m[32m159.00 B[39m
|
|
65
68
|
[32mESM[39m [1mdist/search/search.mjs [22m[32m184.00 B[39m
|
|
66
69
|
[32mESM[39m [1mdist/sidebar/sidebar.mjs [22m[32m154.00 B[39m
|
|
67
|
-
[32mESM[39m [1mdist/sort/sort.mjs [22m[32m180.00 B[39m
|
|
68
70
|
[32mESM[39m [1mdist/input-copy.mjs [22m[32m157.00 B[39m
|
|
71
|
+
[32mESM[39m [1mdist/loading-button.mjs [22m[32m165.00 B[39m
|
|
69
72
|
[32mESM[39m [1mdist/love-footer.mjs [22m[32m190.00 B[39m
|
|
70
73
|
[32mESM[39m [1mdist/mini-feature-block.mjs [22m[32m172.00 B[39m
|
|
71
74
|
[32mESM[39m [1mdist/no-results-block.mjs [22m[32m168.00 B[39m
|
|
72
75
|
[32mESM[39m [1mdist/page-header.mjs [22m[32m159.00 B[39m
|
|
73
|
-
[32mESM[39m [1mdist/stacked-list-item.mjs [22m[32m1.
|
|
76
|
+
[32mESM[39m [1mdist/stacked-list-item.mjs [22m[32m1.13 KB[39m
|
|
74
77
|
[32mESM[39m [1mdist/text-row.mjs [22m[32m153.00 B[39m
|
|
75
|
-
[32mESM[39m [1mdist/video-dashboard-notification.mjs [22m[32m192.00 B[39m
|
|
76
78
|
[32mESM[39m [1mdist/drawer.mjs [22m[32m150.00 B[39m
|
|
77
79
|
[32mESM[39m [1mdist/ekm-logo.mjs [22m[32m153.00 B[39m
|
|
78
80
|
[32mESM[39m [1mdist/fixed-alert.mjs [22m[32m159.00 B[39m
|
|
79
81
|
[32mESM[39m [1mdist/footer-heart-icon.mjs [22m[32m166.00 B[39m
|
|
80
82
|
[32mESM[39m [1mdist/form-row.mjs [22m[32m153.00 B[39m
|
|
81
83
|
[32mESM[39m [1mdist/image-thumbnail.mjs [22m[32m167.00 B[39m
|
|
82
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m1.
|
|
84
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m1.91 KB[39m
|
|
85
|
+
[32mESM[39m [1mdist/input-addon.mjs [22m[32m159.00 B[39m
|
|
83
86
|
[32mESM[39m [1mdist/alert.mjs [22m[32m148.00 B[39m
|
|
84
87
|
[32mESM[39m [1mdist/avatar.mjs [22m[32m150.00 B[39m
|
|
85
|
-
[32mESM[39m [1mdist/input-addon.mjs [22m[32m159.00 B[39m
|
|
86
88
|
[32mESM[39m [1mdist/button-group-item.mjs [22m[32m170.00 B[39m
|
|
87
89
|
[32mESM[39m [1mdist/button.mjs [22m[32m150.00 B[39m
|
|
88
|
-
[32mESM[39m [1mdist/card-payment-block.mjs [22m[32m1.
|
|
89
|
-
[32mESM[39m [1mdist/chunk-
|
|
90
|
+
[32mESM[39m [1mdist/card-payment-block.mjs [22m[32m1.14 KB[39m
|
|
91
|
+
[32mESM[39m [1mdist/chunk-HW7A22PY.mjs [22m[32m6.00 KB[39m
|
|
92
|
+
[32mESM[39m [1mdist/chunk-X6GXSTW7.mjs [22m[32m1.94 KB[39m
|
|
90
93
|
[32mESM[39m [1mdist/chunk-ZHHTK7UM.mjs [22m[32m75.38 KB[39m
|
|
91
94
|
[32mESM[39m [1mdist/chunk-QWPN2UNV.mjs [22m[32m2.29 KB[39m
|
|
95
|
+
[32mESM[39m [1mdist/chunk-25FJ277C.mjs [22m[32m1.21 KB[39m
|
|
92
96
|
[32mESM[39m [1mdist/chunk-FAFXVD4P.mjs [22m[32m1.75 KB[39m
|
|
93
97
|
[32mESM[39m [1mdist/chunk-256SAVHD.mjs [22m[32m10.39 KB[39m
|
|
94
98
|
[32mESM[39m [1mdist/chunk-VPLCWU7T.mjs [22m[32m6.54 KB[39m
|
|
95
99
|
[32mESM[39m [1mdist/chunk-3ZCDEN7B.mjs [22m[32m5.48 KB[39m
|
|
96
100
|
[32mESM[39m [1mdist/chunk-HDNA6QBW.mjs [22m[32m3.28 KB[39m
|
|
97
|
-
[32mESM[39m [1mdist/chunk-HAQTLD4G.mjs [22m[32m1.81 KB[39m
|
|
98
|
-
[32mESM[39m [1mdist/chunk-X6GXSTW7.mjs [22m[32m1.94 KB[39m
|
|
99
101
|
[32mESM[39m [1mdist/chunk-QTAUYFKM.mjs [22m[32m15.70 KB[39m
|
|
102
|
+
[32mESM[39m [1mdist/chunk-HAQTLD4G.mjs [22m[32m1.81 KB[39m
|
|
100
103
|
[32mESM[39m [1mdist/chunk-BIU2AAPZ.mjs [22m[32m886.00 B[39m
|
|
104
|
+
[32mESM[39m [1mdist/chunk-B2KVPYRJ.mjs [22m[32m2.77 KB[39m
|
|
101
105
|
[32mESM[39m [1mdist/chunk-OT256LE6.mjs [22m[32m496.00 B[39m
|
|
102
106
|
[32mESM[39m [1mdist/chunk-FJQEJBBY.mjs [22m[32m753.00 B[39m
|
|
103
107
|
[32mESM[39m [1mdist/chunk-EWNPNF2B.mjs [22m[32m525.00 B[39m
|
|
104
108
|
[32mESM[39m [1mdist/chunk-YQAMEBON.mjs [22m[32m1.03 KB[39m
|
|
105
109
|
[32mESM[39m [1mdist/chunk-RMX72FR3.mjs [22m[32m576.00 B[39m
|
|
106
|
-
[32mESM[39m [1mdist/chunk-25FJ277C.mjs [22m[32m1.21 KB[39m
|
|
107
110
|
[32mESM[39m [1mdist/chunk-QRNTMHBL.mjs [22m[32m1.60 KB[39m
|
|
108
111
|
[32mESM[39m [1mdist/chunk-ZT7KDTGF.mjs [22m[32m1.69 KB[39m
|
|
109
|
-
[32mESM[39m [1mdist/chunk-FRIXS4BL.mjs [22m[32m56.39 KB[39m
|
|
110
112
|
[32mESM[39m [1mdist/chunk-WU66HPYP.mjs [22m[32m793.00 B[39m
|
|
111
|
-
[32mESM[39m [1mdist/chunk-
|
|
113
|
+
[32mESM[39m [1mdist/chunk-FRIXS4BL.mjs [22m[32m56.39 KB[39m
|
|
112
114
|
[32mESM[39m [1mdist/chunk-LWDFKEBO.mjs [22m[32m617.00 B[39m
|
|
115
|
+
[32mESM[39m [1mdist/chunk-PJMH47GY.mjs [22m[32m1004.00 B[39m
|
|
113
116
|
[32mESM[39m [1mdist/chunk-KAQJAKQH.mjs [22m[32m589.00 B[39m
|
|
114
117
|
[32mESM[39m [1mdist/chunk-O3QYDTAF.mjs [22m[32m880.00 B[39m
|
|
115
118
|
[32mESM[39m [1mdist/chunk-664HOPW7.mjs [22m[32m916.00 B[39m
|
|
@@ -122,24 +125,25 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
122
125
|
[32mESM[39m [1mdist/draggable-stacked-list-item.mjs [22m[32m189.00 B[39m
|
|
123
126
|
[32mESM[39m [1mdist/chunk-ZPLTGYYM.mjs [22m[32m1.33 KB[39m
|
|
124
127
|
[32mESM[39m [1mdist/chunk-RUPJ2ZHA.mjs.map [22m[32m71.00 B[39m
|
|
128
|
+
[32mESM[39m [1mdist/sort/sort.mjs.map [22m[32m51.00 B[39m
|
|
125
129
|
[32mESM[39m [1mdist/table-header/table-header.mjs.map [22m[32m51.00 B[39m
|
|
130
|
+
[32mESM[39m [1mdist/video-dashboard-notification.mjs.map [22m[32m51.00 B[39m
|
|
126
131
|
[32mESM[39m [1mdist/toast/index.mjs.map [22m[32m51.00 B[39m
|
|
127
132
|
[32mESM[39m [1mdist/video-modal.mjs.map [22m[32m51.00 B[39m
|
|
128
|
-
[32mESM[39m [1mdist/navbar/navbar.mjs.map [22m[32m51.00 B[39m
|
|
129
133
|
[32mESM[39m [1mdist/layout/layout.mjs.map [22m[32m51.00 B[39m
|
|
134
|
+
[32mESM[39m [1mdist/navbar/navbar.mjs.map [22m[32m51.00 B[39m
|
|
130
135
|
[32mESM[39m [1mdist/pagination/pagination.mjs.map [22m[32m51.00 B[39m
|
|
131
136
|
[32mESM[39m [1mdist/rich-text-editor/index.mjs.map [22m[32m51.00 B[39m
|
|
132
137
|
[32mESM[39m [1mdist/search/search.mjs.map [22m[32m51.00 B[39m
|
|
133
138
|
[32mESM[39m [1mdist/sidebar/sidebar.mjs.map [22m[32m51.00 B[39m
|
|
134
|
-
[32mESM[39m [1mdist/sort/sort.mjs.map [22m[32m51.00 B[39m
|
|
135
139
|
[32mESM[39m [1mdist/input-copy.mjs.map [22m[32m51.00 B[39m
|
|
140
|
+
[32mESM[39m [1mdist/loading-button.mjs.map [22m[32m51.00 B[39m
|
|
136
141
|
[32mESM[39m [1mdist/love-footer.mjs.map [22m[32m51.00 B[39m
|
|
137
142
|
[32mESM[39m [1mdist/mini-feature-block.mjs.map [22m[32m51.00 B[39m
|
|
138
143
|
[32mESM[39m [1mdist/no-results-block.mjs.map [22m[32m51.00 B[39m
|
|
139
144
|
[32mESM[39m [1mdist/page-header.mjs.map [22m[32m51.00 B[39m
|
|
140
145
|
[32mESM[39m [1mdist/stacked-list-item.mjs.map [22m[32m51.00 B[39m
|
|
141
146
|
[32mESM[39m [1mdist/text-row.mjs.map [22m[32m51.00 B[39m
|
|
142
|
-
[32mESM[39m [1mdist/video-dashboard-notification.mjs.map [22m[32m51.00 B[39m
|
|
143
147
|
[32mESM[39m [1mdist/drawer.mjs.map [22m[32m51.00 B[39m
|
|
144
148
|
[32mESM[39m [1mdist/ekm-logo.mjs.map [22m[32m51.00 B[39m
|
|
145
149
|
[32mESM[39m [1mdist/fixed-alert.mjs.map [22m[32m51.00 B[39m
|
|
@@ -147,35 +151,36 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
147
151
|
[32mESM[39m [1mdist/form-row.mjs.map [22m[32m51.00 B[39m
|
|
148
152
|
[32mESM[39m [1mdist/image-thumbnail.mjs.map [22m[32m51.00 B[39m
|
|
149
153
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m51.00 B[39m
|
|
154
|
+
[32mESM[39m [1mdist/input-addon.mjs.map [22m[32m51.00 B[39m
|
|
150
155
|
[32mESM[39m [1mdist/alert.mjs.map [22m[32m51.00 B[39m
|
|
151
156
|
[32mESM[39m [1mdist/avatar.mjs.map [22m[32m51.00 B[39m
|
|
152
|
-
[32mESM[39m [1mdist/input-addon.mjs.map [22m[32m51.00 B[39m
|
|
153
157
|
[32mESM[39m [1mdist/button-group-item.mjs.map [22m[32m51.00 B[39m
|
|
154
158
|
[32mESM[39m [1mdist/button.mjs.map [22m[32m51.00 B[39m
|
|
155
159
|
[32mESM[39m [1mdist/card-payment-block.mjs.map [22m[32m51.00 B[39m
|
|
156
|
-
[32mESM[39m [1mdist/chunk-
|
|
160
|
+
[32mESM[39m [1mdist/chunk-HW7A22PY.mjs.map [22m[32m16.15 KB[39m
|
|
161
|
+
[32mESM[39m [1mdist/chunk-X6GXSTW7.mjs.map [22m[32m4.28 KB[39m
|
|
157
162
|
[32mESM[39m [1mdist/chunk-QWPN2UNV.mjs.map [22m[32m5.45 KB[39m
|
|
163
|
+
[32mESM[39m [1mdist/chunk-25FJ277C.mjs.map [22m[32m2.23 KB[39m
|
|
158
164
|
[32mESM[39m [1mdist/chunk-FAFXVD4P.mjs.map [22m[32m3.37 KB[39m
|
|
159
165
|
[32mESM[39m [1mdist/chunk-256SAVHD.mjs.map [22m[32m24.60 KB[39m
|
|
160
166
|
[32mESM[39m [1mdist/chunk-VPLCWU7T.mjs.map [22m[32m13.60 KB[39m
|
|
161
167
|
[32mESM[39m [1mdist/chunk-3ZCDEN7B.mjs.map [22m[32m14.21 KB[39m
|
|
162
168
|
[32mESM[39m [1mdist/chunk-HDNA6QBW.mjs.map [22m[32m8.82 KB[39m
|
|
163
|
-
[32mESM[39m [1mdist/chunk-HAQTLD4G.mjs.map [22m[32m5.17 KB[39m
|
|
164
|
-
[32mESM[39m [1mdist/chunk-X6GXSTW7.mjs.map [22m[32m4.28 KB[39m
|
|
165
169
|
[32mESM[39m [1mdist/chunk-QTAUYFKM.mjs.map [22m[32m62.53 KB[39m
|
|
170
|
+
[32mESM[39m [1mdist/chunk-HAQTLD4G.mjs.map [22m[32m5.17 KB[39m
|
|
166
171
|
[32mESM[39m [1mdist/chunk-BIU2AAPZ.mjs.map [22m[32m2.19 KB[39m
|
|
172
|
+
[32mESM[39m [1mdist/chunk-B2KVPYRJ.mjs.map [22m[32m4.08 KB[39m
|
|
167
173
|
[32mESM[39m [1mdist/chunk-OT256LE6.mjs.map [22m[32m728.00 B[39m
|
|
168
174
|
[32mESM[39m [1mdist/chunk-FJQEJBBY.mjs.map [22m[32m1.57 KB[39m
|
|
169
175
|
[32mESM[39m [1mdist/chunk-EWNPNF2B.mjs.map [22m[32m1.07 KB[39m
|
|
170
176
|
[32mESM[39m [1mdist/chunk-YQAMEBON.mjs.map [22m[32m2.09 KB[39m
|
|
171
177
|
[32mESM[39m [1mdist/chunk-RMX72FR3.mjs.map [22m[32m1.12 KB[39m
|
|
172
|
-
[32mESM[39m [1mdist/chunk-25FJ277C.mjs.map [22m[32m2.23 KB[39m
|
|
173
178
|
[32mESM[39m [1mdist/chunk-QRNTMHBL.mjs.map [22m[32m3.58 KB[39m
|
|
174
179
|
[32mESM[39m [1mdist/chunk-ZT7KDTGF.mjs.map [22m[32m2.43 KB[39m
|
|
175
|
-
[32mESM[39m [1mdist/chunk-FRIXS4BL.mjs.map [22m[32m56.85 KB[39m
|
|
176
180
|
[32mESM[39m [1mdist/chunk-WU66HPYP.mjs.map [22m[32m1.61 KB[39m
|
|
177
|
-
[32mESM[39m [1mdist/chunk-
|
|
181
|
+
[32mESM[39m [1mdist/chunk-FRIXS4BL.mjs.map [22m[32m56.85 KB[39m
|
|
178
182
|
[32mESM[39m [1mdist/chunk-LWDFKEBO.mjs.map [22m[32m1.46 KB[39m
|
|
183
|
+
[32mESM[39m [1mdist/chunk-PJMH47GY.mjs.map [22m[32m1.90 KB[39m
|
|
179
184
|
[32mESM[39m [1mdist/chunk-KAQJAKQH.mjs.map [22m[32m1.17 KB[39m
|
|
180
185
|
[32mESM[39m [1mdist/chunk-O3QYDTAF.mjs.map [22m[32m1.94 KB[39m
|
|
181
186
|
[32mESM[39m [1mdist/chunk-664HOPW7.mjs.map [22m[32m2.02 KB[39m
|
|
@@ -188,4 +193,4 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
188
193
|
[32mESM[39m [1mdist/draggable-stacked-list-item.mjs.map [22m[32m51.00 B[39m
|
|
189
194
|
[32mESM[39m [1mdist/chunk-ZPLTGYYM.mjs.map [22m[32m2.81 KB[39m
|
|
190
195
|
[32mESM[39m [1mdist/chunk-ZHHTK7UM.mjs.map [22m[32m710.92 KB[39m
|
|
191
|
-
[32mESM[39m ⚡️ Build success in
|
|
196
|
+
[32mESM[39m ⚡️ Build success in 53621ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ekm-ui
|
|
2
2
|
|
|
3
|
-
## 0.0.
|
|
3
|
+
## 0.0.27
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
- 1768bed: Sort and Search changes
|
|
13
13
|
- 5152cc7: Version change again!!!
|
|
14
14
|
- f839671: Changeset didn't run
|
|
15
|
+
- adb73a8: New loading button
|
|
15
16
|
- 73d8964: react-icon fix for flowbite-react issue
|
|
16
17
|
- 15bcb00: Search Add and change to version
|
|
17
18
|
- 74b556d: Fixes to pagination
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export { c as CardPaymentBlock } from './chunk-
|
|
1
|
+
export { c as CardPaymentBlock } from './chunk-HW7A22PY.mjs';
|
|
2
|
+
import './chunk-X6GXSTW7.mjs';
|
|
2
3
|
import './chunk-ZHHTK7UM.mjs';
|
|
3
4
|
import './chunk-QWPN2UNV.mjs';
|
|
5
|
+
import './chunk-25FJ277C.mjs';
|
|
4
6
|
import './chunk-FAFXVD4P.mjs';
|
|
5
7
|
import './chunk-256SAVHD.mjs';
|
|
6
8
|
import './chunk-VPLCWU7T.mjs';
|
|
7
9
|
import './chunk-3ZCDEN7B.mjs';
|
|
8
10
|
import './chunk-HDNA6QBW.mjs';
|
|
9
|
-
import './chunk-HAQTLD4G.mjs';
|
|
10
|
-
import './chunk-X6GXSTW7.mjs';
|
|
11
11
|
import './chunk-QTAUYFKM.mjs';
|
|
12
|
+
import './chunk-HAQTLD4G.mjs';
|
|
12
13
|
import './chunk-BIU2AAPZ.mjs';
|
|
14
|
+
import './chunk-B2KVPYRJ.mjs';
|
|
13
15
|
import './chunk-OT256LE6.mjs';
|
|
14
16
|
import './chunk-FJQEJBBY.mjs';
|
|
15
17
|
import './chunk-EWNPNF2B.mjs';
|
|
16
18
|
import './chunk-YQAMEBON.mjs';
|
|
17
19
|
import './chunk-RMX72FR3.mjs';
|
|
18
|
-
import './chunk-25FJ277C.mjs';
|
|
19
20
|
import './chunk-QRNTMHBL.mjs';
|
|
20
21
|
import './chunk-ZT7KDTGF.mjs';
|
|
21
22
|
import './chunk-WU66HPYP.mjs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { c, b as b$1, a as a$1 } from './chunk-RUPJ2ZHA.mjs';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var a=Object.freeze({success:" text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2",danger:" text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2"}),g=Object.freeze({success:" cursor-not-allowed opacity-50 text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2",danger:" cursor-not-allowed opacity-50 text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2"});function b(l){var n=l,{children:i}=n,e=c(n,["children"]);let c$1=()=>jsxs("svg",{"aria-hidden":"true",role:"status",className:"mr-3 inline h-4 w-4 animate-spin text-white",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]});return jsx("div",{children:jsx("button",b$1(a$1({className:`group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-none
|
|
5
|
+
${e.color?e.isLoading?g[e.color]:a[e.color]:e.isLoading?g.success:a.success}
|
|
6
|
+
`},e),{disabled:e.isLoading,children:jsxs("span",{className:"flex items-center transition-all duration-200 rounded-md text-sm px-4 py-2",children:[e.isLoading&&c$1(),i]})}))})}
|
|
7
|
+
|
|
8
|
+
export { b as a };
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
10
|
+
//# sourceMappingURL=chunk-B2KVPYRJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/loading-button.tsx"],"names":["jsx","jsxs","buttonColors","disabledButtonColors","LoadingButton","_a","_b","children","props","__objRest","renderLoader","__spreadProps","__spreadValues"],"mappings":"uDAiBI,OAQE,OAAAA,EARF,QAAAC,MAAA,oBAhBJ,IAAMC,EAAe,OAAO,OAAO,CACjC,QACE,yMACF,OACE,4LACJ,CAAC,EAEKC,EAAuB,OAAO,OAAO,CACzC,QACE,uOACF,OACE,0NACJ,CAAC,EAEM,SAASC,EAAcC,EAAwB,CAAxB,IAAAC,EAAAD,EAAE,UAAAE,CAfhC,EAe8BD,EAAeE,EAAAC,EAAfH,EAAe,CAAb,aAC9B,IAAMI,EAAe,IACnBT,EAAC,OACC,cAAY,OACZ,KAAK,SACL,UAAU,8CACV,QAAQ,cACR,KAAK,OACL,MAAM,6BAEN,UAAAD,EAAC,QACC,EAAE,+WACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,glBACF,KAAK,eACP,GACF,EAGF,OACEA,EAAC,OACC,SAAAA,EAAC,SAAAW,EAAAC,EAAA,CACC,UAAW;AAAA,YAEPJ,EAAM,MACFA,EAAM,UACJL,EAAqBK,EAAM,KAAK,EAChCN,EAAaM,EAAM,KAAK,EAC1BA,EAAM,UACNL,EAAqB,QACrBD,EAAa;AAAA,WAGjBM,GAZL,CAaC,SAAUA,EAAM,UAEhB,SAAAP,EAAC,QAAK,UAAU,6EACb,UAAAO,EAAM,WAAaE,EAAa,EAChCH,GACH,GACF,EACF,CAEJ","sourcesContent":["//@ts-nocheck\nconst buttonColors = Object.freeze({\n success:\n ' text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2',\n danger:\n ' text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2',\n})\n\nconst disabledButtonColors = Object.freeze({\n success:\n ' cursor-not-allowed opacity-50 text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2',\n danger:\n ' cursor-not-allowed opacity-50 text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2',\n})\n\nexport function LoadingButton({ children, ...props }) {\n const renderLoader = () => (\n <svg\n aria-hidden=\"true\"\n role=\"status\"\n className=\"mr-3 inline h-4 w-4 animate-spin text-white\"\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n fill=\"#E5E7EB\"\n />\n <path\n d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n\n return (\n <div>\n <button\n className={`group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-none \n ${\n props.color\n ? props.isLoading\n ? disabledButtonColors[props.color]\n : buttonColors[props.color]\n : props.isLoading\n ? disabledButtonColors.success\n : buttonColors.success\n }\n `}\n {...props}\n disabled={props.isLoading}\n >\n <span className=\"flex items-center transition-all duration-200 rounded-md text-sm px-4 py-2\">\n {props.isLoading && renderLoader()}\n {children}\n </span>\n </button>\n </div>\n )\n}"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { FixedAlert } from './fixed-alert.js';
|
|
|
29
29
|
export { Sort } from './sort/sort.js';
|
|
30
30
|
export { TableHeader } from './table-header/table-header.js';
|
|
31
31
|
export { Search } from './search/search.js';
|
|
32
|
+
export { LoadingButton } from './loading-button.js';
|
|
32
33
|
import 'flowbite-react';
|
|
33
34
|
import 'react';
|
|
34
35
|
import '@ckeditor/ckeditor5-react';
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export { c as CardPaymentBlock, b as Layout, a as StackedListItem } from './chunk-
|
|
1
|
+
export { c as CardPaymentBlock, b as Layout, a as StackedListItem } from './chunk-HW7A22PY.mjs';
|
|
2
|
+
export { a as Sort } from './chunk-X6GXSTW7.mjs';
|
|
2
3
|
export { a as TableHeader } from './chunk-ZHHTK7UM.mjs';
|
|
3
4
|
export { b as ToastProvider, c as useToast } from './chunk-QWPN2UNV.mjs';
|
|
5
|
+
export { a as VideoDashboardNotification } from './chunk-25FJ277C.mjs';
|
|
4
6
|
export { a as VideoModal } from './chunk-FAFXVD4P.mjs';
|
|
5
7
|
export { a as Navbar } from './chunk-256SAVHD.mjs';
|
|
6
8
|
export { a as Pagination } from './chunk-VPLCWU7T.mjs';
|
|
7
9
|
export { a as RichTextEditor } from './chunk-3ZCDEN7B.mjs';
|
|
8
10
|
export { a as Search } from './chunk-HDNA6QBW.mjs';
|
|
9
|
-
export { b as Sidebar } from './chunk-HAQTLD4G.mjs';
|
|
10
|
-
export { a as Sort } from './chunk-X6GXSTW7.mjs';
|
|
11
11
|
import './chunk-QTAUYFKM.mjs';
|
|
12
|
+
export { b as Sidebar } from './chunk-HAQTLD4G.mjs';
|
|
12
13
|
export { a as InputCopy } from './chunk-BIU2AAPZ.mjs';
|
|
14
|
+
export { a as LoadingButton } from './chunk-B2KVPYRJ.mjs';
|
|
13
15
|
export { a as LoveFooter } from './chunk-OT256LE6.mjs';
|
|
14
16
|
export { a as MiniFeatureBlock } from './chunk-FJQEJBBY.mjs';
|
|
15
17
|
export { a as NoResultsBlock } from './chunk-EWNPNF2B.mjs';
|
|
16
18
|
export { a as PageHeader } from './chunk-YQAMEBON.mjs';
|
|
17
19
|
export { a as TextRow } from './chunk-RMX72FR3.mjs';
|
|
18
|
-
export { a as VideoDashboardNotification } from './chunk-25FJ277C.mjs';
|
|
19
20
|
export { a as Drawer } from './chunk-QRNTMHBL.mjs';
|
|
20
21
|
import './chunk-ZT7KDTGF.mjs';
|
|
21
22
|
export { a as FixedAlert } from './chunk-WU66HPYP.mjs';
|
package/dist/layout/layout.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export { b as Layout } from '../chunk-
|
|
1
|
+
export { b as Layout } from '../chunk-HW7A22PY.mjs';
|
|
2
|
+
import '../chunk-X6GXSTW7.mjs';
|
|
2
3
|
import '../chunk-ZHHTK7UM.mjs';
|
|
3
4
|
import '../chunk-QWPN2UNV.mjs';
|
|
5
|
+
import '../chunk-25FJ277C.mjs';
|
|
4
6
|
import '../chunk-FAFXVD4P.mjs';
|
|
5
7
|
import '../chunk-256SAVHD.mjs';
|
|
6
8
|
import '../chunk-VPLCWU7T.mjs';
|
|
7
9
|
import '../chunk-3ZCDEN7B.mjs';
|
|
8
10
|
import '../chunk-HDNA6QBW.mjs';
|
|
9
|
-
import '../chunk-HAQTLD4G.mjs';
|
|
10
|
-
import '../chunk-X6GXSTW7.mjs';
|
|
11
11
|
import '../chunk-QTAUYFKM.mjs';
|
|
12
|
+
import '../chunk-HAQTLD4G.mjs';
|
|
12
13
|
import '../chunk-BIU2AAPZ.mjs';
|
|
14
|
+
import '../chunk-B2KVPYRJ.mjs';
|
|
13
15
|
import '../chunk-OT256LE6.mjs';
|
|
14
16
|
import '../chunk-FJQEJBBY.mjs';
|
|
15
17
|
import '../chunk-EWNPNF2B.mjs';
|
|
16
18
|
import '../chunk-YQAMEBON.mjs';
|
|
17
19
|
import '../chunk-RMX72FR3.mjs';
|
|
18
|
-
import '../chunk-25FJ277C.mjs';
|
|
19
20
|
import '../chunk-QRNTMHBL.mjs';
|
|
20
21
|
import '../chunk-ZT7KDTGF.mjs';
|
|
21
22
|
import '../chunk-WU66HPYP.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export { a as StackedListItem } from './chunk-
|
|
1
|
+
export { a as StackedListItem } from './chunk-HW7A22PY.mjs';
|
|
2
|
+
import './chunk-X6GXSTW7.mjs';
|
|
2
3
|
import './chunk-ZHHTK7UM.mjs';
|
|
3
4
|
import './chunk-QWPN2UNV.mjs';
|
|
5
|
+
import './chunk-25FJ277C.mjs';
|
|
4
6
|
import './chunk-FAFXVD4P.mjs';
|
|
5
7
|
import './chunk-256SAVHD.mjs';
|
|
6
8
|
import './chunk-VPLCWU7T.mjs';
|
|
7
9
|
import './chunk-3ZCDEN7B.mjs';
|
|
8
10
|
import './chunk-HDNA6QBW.mjs';
|
|
9
|
-
import './chunk-HAQTLD4G.mjs';
|
|
10
|
-
import './chunk-X6GXSTW7.mjs';
|
|
11
11
|
import './chunk-QTAUYFKM.mjs';
|
|
12
|
+
import './chunk-HAQTLD4G.mjs';
|
|
12
13
|
import './chunk-BIU2AAPZ.mjs';
|
|
14
|
+
import './chunk-B2KVPYRJ.mjs';
|
|
13
15
|
import './chunk-OT256LE6.mjs';
|
|
14
16
|
import './chunk-FJQEJBBY.mjs';
|
|
15
17
|
import './chunk-EWNPNF2B.mjs';
|
|
16
18
|
import './chunk-YQAMEBON.mjs';
|
|
17
19
|
import './chunk-RMX72FR3.mjs';
|
|
18
|
-
import './chunk-25FJ277C.mjs';
|
|
19
20
|
import './chunk-QRNTMHBL.mjs';
|
|
20
21
|
import './chunk-ZT7KDTGF.mjs';
|
|
21
22
|
import './chunk-WU66HPYP.mjs';
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -29,5 +29,6 @@ export { FixedAlert } from "./fixed-alert";
|
|
|
29
29
|
export { Sort } from "./sort/sort";
|
|
30
30
|
export { TableHeader } from "./table-header/table-header";
|
|
31
31
|
export { Search } from "./search/search";
|
|
32
|
+
export { LoadingButton } from "./loading-button";
|
|
32
33
|
|
|
33
34
|
import "./styles.css";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
const buttonColors = Object.freeze({
|
|
3
|
+
success:
|
|
4
|
+
' text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2',
|
|
5
|
+
danger:
|
|
6
|
+
' text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2',
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
const disabledButtonColors = Object.freeze({
|
|
10
|
+
success:
|
|
11
|
+
' cursor-not-allowed opacity-50 text-white bg-green-700 border border-transparent enabled:hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:enabled:hover:bg-green-700 dark:focus:ring-green-800 rounded-lg focus:ring-2',
|
|
12
|
+
danger:
|
|
13
|
+
' cursor-not-allowed opacity-50 text-white bg-red-700 border border-transparent enabled:hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:enabled:hover:bg-red-700 dark:focus:ring-red-900 rounded-lg focus:ring-2',
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export function LoadingButton({ children, ...props }) {
|
|
17
|
+
const renderLoader = () => (
|
|
18
|
+
<svg
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
role="status"
|
|
21
|
+
className="mr-3 inline h-4 w-4 animate-spin text-white"
|
|
22
|
+
viewBox="0 0 100 101"
|
|
23
|
+
fill="none"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
>
|
|
26
|
+
<path
|
|
27
|
+
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
28
|
+
fill="#E5E7EB"
|
|
29
|
+
/>
|
|
30
|
+
<path
|
|
31
|
+
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
32
|
+
fill="currentColor"
|
|
33
|
+
/>
|
|
34
|
+
</svg>
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div>
|
|
39
|
+
<button
|
|
40
|
+
className={`group flex items-center justify-center p-0.5 text-center font-medium relative focus:z-10 focus:outline-none
|
|
41
|
+
${
|
|
42
|
+
props.color
|
|
43
|
+
? props.isLoading
|
|
44
|
+
? disabledButtonColors[props.color]
|
|
45
|
+
: buttonColors[props.color]
|
|
46
|
+
: props.isLoading
|
|
47
|
+
? disabledButtonColors.success
|
|
48
|
+
: buttonColors.success
|
|
49
|
+
}
|
|
50
|
+
`}
|
|
51
|
+
{...props}
|
|
52
|
+
disabled={props.isLoading}
|
|
53
|
+
>
|
|
54
|
+
<span className="flex items-center transition-all duration-200 rounded-md text-sm px-4 py-2">
|
|
55
|
+
{props.isLoading && renderLoader()}
|
|
56
|
+
{children}
|
|
57
|
+
</span>
|
|
58
|
+
</button>
|
|
59
|
+
</div>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
File without changes
|