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.
@@ -1,5 +1,5 @@
1
1
  $ tsup
2
- CLI 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
+ CLI 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
  CLI Using tsconfig: tsconfig.json
4
4
  CLI tsup v6.7.0
5
5
  CLI 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
  DTS Build start
13
- DTS ⚡️ Build success in 31616ms
14
- DTS dist/index.d.ts 1.72 KB
13
+ DTS ⚡️ Build success in 39518ms
14
+ DTS dist/index.d.ts 1.77 KB
15
15
  DTS dist/ekm-logo.d.ts 104.00 B
16
16
  DTS dist/footer-heart-icon.d.ts 70.00 B
17
17
  DTS dist/alert.d.ts 245.00 B
@@ -28,6 +28,7 @@ Browserslist: caniuse-lite is outdated. Please run:
28
28
  DTS dist/image-thumbnail.d.ts 276.00 B
29
29
  DTS dist/input-addon.d.ts 195.00 B
30
30
  DTS dist/input-copy.d.ts 240.00 B
31
+ DTS dist/loading-button.d.ts 142.00 B
31
32
  DTS dist/love-footer.d.ts 68.00 B
32
33
  DTS dist/mini-feature-block.d.ts 254.00 B
33
34
  DTS dist/no-results-block.d.ts 256.00 B
@@ -41,8 +42,8 @@ Browserslist: caniuse-lite is outdated. Please run:
41
42
  DTS dist/pagination/pagination.d.ts 319.00 B
42
43
  DTS dist/search/search.d.ts 1.96 KB
43
44
  DTS dist/sidebar/sidebar.d.ts 166.00 B
44
- DTS dist/sort/sort.d.ts 689.00 B
45
45
  DTS dist/toast/index.d.ts 420.00 B
46
+ DTS dist/sort/sort.d.ts 689.00 B
46
47
  DTS dist/table-header/table-header.d.ts 2.48 KB
47
48
  DTS dist/rich-text-editor/index.d.ts 613.00 B
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
  ESM dist/stacked-list-item.css 112.07 KB
51
52
  ESM dist/index.css 112.06 KB
52
53
  ESM dist/card-payment-block.css 112.07 KB
54
+ ESM dist/layout/layout.css.map 159.14 KB
53
55
  ESM dist/stacked-list-item.css.map 159.14 KB
54
56
  ESM dist/index.css.map 159.14 KB
55
- ESM dist/layout/layout.css.map 159.14 KB
56
- ESM dist/card-payment-block.css.map 159.14 KB
57
57
  ESM dist/chunk-RUPJ2ZHA.mjs 1.13 KB
58
+ ESM dist/sort/sort.mjs 180.00 B
58
59
  ESM dist/table-header/table-header.mjs 195.00 B
60
+ ESM dist/card-payment-block.css.map 159.14 KB
61
+ ESM dist/video-dashboard-notification.mjs 192.00 B
59
62
  ESM dist/toast/index.mjs 192.00 B
60
63
  ESM dist/video-modal.mjs 159.00 B
64
+ ESM dist/layout/layout.mjs 1.15 KB
61
65
  ESM dist/navbar/navbar.mjs 184.00 B
62
- ESM dist/layout/layout.mjs 1.12 KB
63
66
  ESM dist/pagination/pagination.mjs 160.00 B
64
67
  ESM dist/rich-text-editor/index.mjs 159.00 B
65
68
  ESM dist/search/search.mjs 184.00 B
66
69
  ESM dist/sidebar/sidebar.mjs 154.00 B
67
- ESM dist/sort/sort.mjs 180.00 B
68
70
  ESM dist/input-copy.mjs 157.00 B
71
+ ESM dist/loading-button.mjs 165.00 B
69
72
  ESM dist/love-footer.mjs 190.00 B
70
73
  ESM dist/mini-feature-block.mjs 172.00 B
71
74
  ESM dist/no-results-block.mjs 168.00 B
72
75
  ESM dist/page-header.mjs 159.00 B
73
- ESM dist/stacked-list-item.mjs 1.10 KB
76
+ ESM dist/stacked-list-item.mjs 1.13 KB
74
77
  ESM dist/text-row.mjs 153.00 B
75
- ESM dist/video-dashboard-notification.mjs 192.00 B
76
78
  ESM dist/drawer.mjs 150.00 B
77
79
  ESM dist/ekm-logo.mjs 153.00 B
78
80
  ESM dist/fixed-alert.mjs 159.00 B
79
81
  ESM dist/footer-heart-icon.mjs 166.00 B
80
82
  ESM dist/form-row.mjs 153.00 B
81
83
  ESM dist/image-thumbnail.mjs 167.00 B
82
- ESM dist/index.mjs 1.85 KB
84
+ ESM dist/index.mjs 1.91 KB
85
+ ESM dist/input-addon.mjs 159.00 B
83
86
  ESM dist/alert.mjs 148.00 B
84
87
  ESM dist/avatar.mjs 150.00 B
85
- ESM dist/input-addon.mjs 159.00 B
86
88
  ESM dist/button-group-item.mjs 170.00 B
87
89
  ESM dist/button.mjs 150.00 B
88
- ESM dist/card-payment-block.mjs 1.11 KB
89
- ESM dist/chunk-MOQM5IK4.mjs 6.00 KB
90
+ ESM dist/card-payment-block.mjs 1.14 KB
91
+ ESM dist/chunk-HW7A22PY.mjs 6.00 KB
92
+ ESM dist/chunk-X6GXSTW7.mjs 1.94 KB
90
93
  ESM dist/chunk-ZHHTK7UM.mjs 75.38 KB
91
94
  ESM dist/chunk-QWPN2UNV.mjs 2.29 KB
95
+ ESM dist/chunk-25FJ277C.mjs 1.21 KB
92
96
  ESM dist/chunk-FAFXVD4P.mjs 1.75 KB
93
97
  ESM dist/chunk-256SAVHD.mjs 10.39 KB
94
98
  ESM dist/chunk-VPLCWU7T.mjs 6.54 KB
95
99
  ESM dist/chunk-3ZCDEN7B.mjs 5.48 KB
96
100
  ESM dist/chunk-HDNA6QBW.mjs 3.28 KB
97
- ESM dist/chunk-HAQTLD4G.mjs 1.81 KB
98
- ESM dist/chunk-X6GXSTW7.mjs 1.94 KB
99
101
  ESM dist/chunk-QTAUYFKM.mjs 15.70 KB
102
+ ESM dist/chunk-HAQTLD4G.mjs 1.81 KB
100
103
  ESM dist/chunk-BIU2AAPZ.mjs 886.00 B
104
+ ESM dist/chunk-B2KVPYRJ.mjs 2.77 KB
101
105
  ESM dist/chunk-OT256LE6.mjs 496.00 B
102
106
  ESM dist/chunk-FJQEJBBY.mjs 753.00 B
103
107
  ESM dist/chunk-EWNPNF2B.mjs 525.00 B
104
108
  ESM dist/chunk-YQAMEBON.mjs 1.03 KB
105
109
  ESM dist/chunk-RMX72FR3.mjs 576.00 B
106
- ESM dist/chunk-25FJ277C.mjs 1.21 KB
107
110
  ESM dist/chunk-QRNTMHBL.mjs 1.60 KB
108
111
  ESM dist/chunk-ZT7KDTGF.mjs 1.69 KB
109
- ESM dist/chunk-FRIXS4BL.mjs 56.39 KB
110
112
  ESM dist/chunk-WU66HPYP.mjs 793.00 B
111
- ESM dist/chunk-PJMH47GY.mjs 1004.00 B
113
+ ESM dist/chunk-FRIXS4BL.mjs 56.39 KB
112
114
  ESM dist/chunk-LWDFKEBO.mjs 617.00 B
115
+ ESM dist/chunk-PJMH47GY.mjs 1004.00 B
113
116
  ESM dist/chunk-KAQJAKQH.mjs 589.00 B
114
117
  ESM dist/chunk-O3QYDTAF.mjs 880.00 B
115
118
  ESM dist/chunk-664HOPW7.mjs 916.00 B
@@ -122,24 +125,25 @@ Browserslist: caniuse-lite is outdated. Please run:
122
125
  ESM dist/draggable-stacked-list-item.mjs 189.00 B
123
126
  ESM dist/chunk-ZPLTGYYM.mjs 1.33 KB
124
127
  ESM dist/chunk-RUPJ2ZHA.mjs.map 71.00 B
128
+ ESM dist/sort/sort.mjs.map 51.00 B
125
129
  ESM dist/table-header/table-header.mjs.map 51.00 B
130
+ ESM dist/video-dashboard-notification.mjs.map 51.00 B
126
131
  ESM dist/toast/index.mjs.map 51.00 B
127
132
  ESM dist/video-modal.mjs.map 51.00 B
128
- ESM dist/navbar/navbar.mjs.map 51.00 B
129
133
  ESM dist/layout/layout.mjs.map 51.00 B
134
+ ESM dist/navbar/navbar.mjs.map 51.00 B
130
135
  ESM dist/pagination/pagination.mjs.map 51.00 B
131
136
  ESM dist/rich-text-editor/index.mjs.map 51.00 B
132
137
  ESM dist/search/search.mjs.map 51.00 B
133
138
  ESM dist/sidebar/sidebar.mjs.map 51.00 B
134
- ESM dist/sort/sort.mjs.map 51.00 B
135
139
  ESM dist/input-copy.mjs.map 51.00 B
140
+ ESM dist/loading-button.mjs.map 51.00 B
136
141
  ESM dist/love-footer.mjs.map 51.00 B
137
142
  ESM dist/mini-feature-block.mjs.map 51.00 B
138
143
  ESM dist/no-results-block.mjs.map 51.00 B
139
144
  ESM dist/page-header.mjs.map 51.00 B
140
145
  ESM dist/stacked-list-item.mjs.map 51.00 B
141
146
  ESM dist/text-row.mjs.map 51.00 B
142
- ESM dist/video-dashboard-notification.mjs.map 51.00 B
143
147
  ESM dist/drawer.mjs.map 51.00 B
144
148
  ESM dist/ekm-logo.mjs.map 51.00 B
145
149
  ESM dist/fixed-alert.mjs.map 51.00 B
@@ -147,35 +151,36 @@ Browserslist: caniuse-lite is outdated. Please run:
147
151
  ESM dist/form-row.mjs.map 51.00 B
148
152
  ESM dist/image-thumbnail.mjs.map 51.00 B
149
153
  ESM dist/index.mjs.map 51.00 B
154
+ ESM dist/input-addon.mjs.map 51.00 B
150
155
  ESM dist/alert.mjs.map 51.00 B
151
156
  ESM dist/avatar.mjs.map 51.00 B
152
- ESM dist/input-addon.mjs.map 51.00 B
153
157
  ESM dist/button-group-item.mjs.map 51.00 B
154
158
  ESM dist/button.mjs.map 51.00 B
155
159
  ESM dist/card-payment-block.mjs.map 51.00 B
156
- ESM dist/chunk-MOQM5IK4.mjs.map 16.15 KB
160
+ ESM dist/chunk-HW7A22PY.mjs.map 16.15 KB
161
+ ESM dist/chunk-X6GXSTW7.mjs.map 4.28 KB
157
162
  ESM dist/chunk-QWPN2UNV.mjs.map 5.45 KB
163
+ ESM dist/chunk-25FJ277C.mjs.map 2.23 KB
158
164
  ESM dist/chunk-FAFXVD4P.mjs.map 3.37 KB
159
165
  ESM dist/chunk-256SAVHD.mjs.map 24.60 KB
160
166
  ESM dist/chunk-VPLCWU7T.mjs.map 13.60 KB
161
167
  ESM dist/chunk-3ZCDEN7B.mjs.map 14.21 KB
162
168
  ESM dist/chunk-HDNA6QBW.mjs.map 8.82 KB
163
- ESM dist/chunk-HAQTLD4G.mjs.map 5.17 KB
164
- ESM dist/chunk-X6GXSTW7.mjs.map 4.28 KB
165
169
  ESM dist/chunk-QTAUYFKM.mjs.map 62.53 KB
170
+ ESM dist/chunk-HAQTLD4G.mjs.map 5.17 KB
166
171
  ESM dist/chunk-BIU2AAPZ.mjs.map 2.19 KB
172
+ ESM dist/chunk-B2KVPYRJ.mjs.map 4.08 KB
167
173
  ESM dist/chunk-OT256LE6.mjs.map 728.00 B
168
174
  ESM dist/chunk-FJQEJBBY.mjs.map 1.57 KB
169
175
  ESM dist/chunk-EWNPNF2B.mjs.map 1.07 KB
170
176
  ESM dist/chunk-YQAMEBON.mjs.map 2.09 KB
171
177
  ESM dist/chunk-RMX72FR3.mjs.map 1.12 KB
172
- ESM dist/chunk-25FJ277C.mjs.map 2.23 KB
173
178
  ESM dist/chunk-QRNTMHBL.mjs.map 3.58 KB
174
179
  ESM dist/chunk-ZT7KDTGF.mjs.map 2.43 KB
175
- ESM dist/chunk-FRIXS4BL.mjs.map 56.85 KB
176
180
  ESM dist/chunk-WU66HPYP.mjs.map 1.61 KB
177
- ESM dist/chunk-PJMH47GY.mjs.map 1.90 KB
181
+ ESM dist/chunk-FRIXS4BL.mjs.map 56.85 KB
178
182
  ESM dist/chunk-LWDFKEBO.mjs.map 1.46 KB
183
+ ESM dist/chunk-PJMH47GY.mjs.map 1.90 KB
179
184
  ESM dist/chunk-KAQJAKQH.mjs.map 1.17 KB
180
185
  ESM dist/chunk-O3QYDTAF.mjs.map 1.94 KB
181
186
  ESM dist/chunk-664HOPW7.mjs.map 2.02 KB
@@ -188,4 +193,4 @@ Browserslist: caniuse-lite is outdated. Please run:
188
193
  ESM dist/draggable-stacked-list-item.mjs.map 51.00 B
189
194
  ESM dist/chunk-ZPLTGYYM.mjs.map 2.81 KB
190
195
  ESM dist/chunk-ZHHTK7UM.mjs.map 710.92 KB
191
- ESM ⚡️ Build success in 43814ms
196
+ ESM ⚡️ Build success in 53621ms
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ekm-ui
2
2
 
3
- ## 0.0.26
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-MOQM5IK4.mjs';
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}"]}
@@ -13,4 +13,4 @@ function X({cardPayment:a$1,enablePayPal:i}){return jsxs(Card,{className:"border
13
13
 
14
14
  export { j as a, Z as b, X as c };
15
15
  //# sourceMappingURL=out.js.map
16
- //# sourceMappingURL=chunk-MOQM5IK4.mjs.map
16
+ //# sourceMappingURL=chunk-HW7A22PY.mjs.map
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-MOQM5IK4.mjs';
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';
@@ -1,21 +1,22 @@
1
- export { b as Layout } from '../chunk-MOQM5IK4.mjs';
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,6 @@
1
+ declare function LoadingButton({ children, ...props }: {
2
+ [x: string]: any;
3
+ children: any;
4
+ }): JSX.Element;
5
+
6
+ export { LoadingButton };
@@ -0,0 +1,4 @@
1
+ export { a as LoadingButton } from './chunk-B2KVPYRJ.mjs';
2
+ import './chunk-RUPJ2ZHA.mjs';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=loading-button.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,21 +1,22 @@
1
- export { a as StackedListItem } from './chunk-MOQM5IK4.mjs';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ekm-ui",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
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
+ }