ekm-ui 0.4.74 → 0.4.75

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.
@@ -11,7 +11,7 @@ Browserslist: caniuse-lite is outdated. Please run:
11
11
  npx update-browserslist-db@latest
12
12
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 67828ms
14
+ DTS ⚡️ Build success in 61299ms
15
15
  DTS dist/index.d.ts 4.03 KB
16
16
  DTS dist/footer-heart-icon.d.ts 70.00 B
17
17
  DTS dist/accordion.d.ts 2.19 KB
@@ -96,31 +96,31 @@ Browserslist: caniuse-lite is outdated. Please run:
96
96
  DTS dist/file-picker/file-listing.d.ts 992.00 B
97
97
  DTS dist/product-picker/product-listing.d.ts 890.00 B
98
98
  "HiArchive", "HiCurrencyDollar", "HiInbox", "HiLogout", "HiOutlineTicket", "HiShoppingBag", "HiUserCircle", "HiUsers" and "HiViewGrid" are imported from external module "react-icons/hi" but never used in "dist/chunk-XXP5K6Y4.js".
99
+ ESM dist/file-picker/file-picker.css 125.01 KB
99
100
  ESM dist/layout/layout.css 125.00 KB
100
101
  ESM dist/country-picker/country-modal.css 125.01 KB
101
102
  ESM dist/stacked-list-item.css 125.02 KB
103
+ ESM dist/table-result-block.css 125.02 KB
102
104
  ESM dist/index.css 125.00 KB
103
- ESM dist/file-picker/file-picker.css 125.01 KB
104
105
  ESM dist/drag-and-drop.css 125.01 KB
105
106
  ESM dist/card-payment-block.css 125.02 KB
106
- ESM dist/table-result-block.css 125.02 KB
107
107
  ESM dist/product-picker/product-modal.css 125.01 KB
108
+ ESM dist/file-picker/file-picker.css.map 177.83 KB
108
109
  ESM dist/layout/layout.css.map 177.83 KB
109
110
  ESM dist/country-picker/country-modal.css.map 177.83 KB
110
111
  ESM dist/stacked-list-item.css.map 177.82 KB
111
- ESM dist/index.css.map 177.82 KB
112
- ESM dist/file-picker/file-picker.css.map 177.83 KB
113
- ESM dist/card-payment-block.css.map 177.82 KB
114
112
  ESM dist/table-result-block.css.map 177.82 KB
115
- ESM dist/drag-and-drop.css.map 177.82 KB
116
- ESM dist/chunk-Z4LPO673.js 1.34 KB
117
- ESM dist/table-header/table-header.js 284.00 B
113
+ ESM dist/card-payment-block.css.map 177.82 KB
114
+ ESM dist/index.css.map 177.82 KB
118
115
  ESM dist/chunk-SBGTFQOD.js 8.80 KB
119
- ESM dist/tooltip/tooltip.js 182.00 B
116
+ ESM dist/table-header/table-header.js 284.00 B
117
+ ESM dist/chunk-Z4LPO673.js 1.34 KB
120
118
  ESM dist/toast/index.js 189.00 B
119
+ ESM dist/tooltip/tooltip.js 182.00 B
121
120
  ESM dist/nbui/nbui-footer.js 159.00 B
122
- ESM dist/pagination/pagination.js 157.00 B
121
+ ESM dist/drag-and-drop.css.map 177.82 KB
123
122
  ESM dist/nbui/nbui-page-layout.js 261.00 B
123
+ ESM dist/pagination/pagination.js 157.00 B
124
124
  ESM dist/product-picker/product-listing.js 252.00 B
125
125
  ESM dist/product-picker/product-modal.js 2.46 KB
126
126
  ESM dist/search/search.js 180.00 B
@@ -138,10 +138,10 @@ Browserslist: caniuse-lite is outdated. Please run:
138
138
  ESM dist/featurePageComponents/feature-page-group.js 171.00 B
139
139
  ESM dist/featurePageComponents/mini-feature-block.js 804.00 B
140
140
  ESM dist/file-picker/file-listing.js 218.00 B
141
- ESM dist/file-picker/file-picker.js 2.46 KB
142
141
  ESM dist/layout/layout.js 2.45 KB
143
- ESM dist/navbar/navbar.js 180.00 B
142
+ ESM dist/file-picker/file-picker.js 2.46 KB
144
143
  ESM dist/nbui/nbui-card-form.js 165.00 B
144
+ ESM dist/navbar/navbar.js 180.00 B
145
145
  ESM dist/video-dashboard-notification.js 189.00 B
146
146
  ESM dist/video-modal.js 156.00 B
147
147
  ESM dist/country-picker/country-listing.js 259.00 B
@@ -149,23 +149,23 @@ Browserslist: caniuse-lite is outdated. Please run:
149
149
  ESM dist/cross-sell/cross-sell-carousel.js 297.00 B
150
150
  ESM dist/cross-sell/serivce-callback-banner.js 243.00 B
151
151
  ESM dist/cross-sell/service-card.js 315.00 B
152
- ESM dist/feature-cards/feature-card.js 253.00 B
153
152
  ESM dist/spinner.js 149.00 B
154
153
  ESM dist/stacked-list-item.js 2.39 KB
155
154
  ESM dist/table-result-block.js 2.39 KB
156
155
  ESM dist/test-component.js 162.00 B
157
156
  ESM dist/text-row.js 180.00 B
158
157
  ESM dist/textarea.js 181.00 B
159
- ESM dist/textinput.js 183.00 B
158
+ ESM dist/feature-cards/feature-card.js 253.00 B
160
159
  ESM dist/toggleswitch.js 189.00 B
160
+ ESM dist/textinput.js 183.00 B
161
161
  ESM dist/mini-feature-block.js 259.00 B
162
162
  ESM dist/modal.js 209.00 B
163
163
  ESM dist/no-results-block.js 165.00 B
164
164
  ESM dist/page-header.js 216.00 B
165
165
  ESM dist/pin-feature-button.js 229.00 B
166
166
  ESM dist/progress-bar.js 188.00 B
167
- ESM dist/radio.js 175.00 B
168
167
  ESM dist/select.js 177.00 B
168
+ ESM dist/radio.js 175.00 B
169
169
  ESM dist/form-row.js 180.00 B
170
170
  ESM dist/image-thumbnail.js 164.00 B
171
171
  ESM dist/index.js 4.31 KB
@@ -174,8 +174,8 @@ Browserslist: caniuse-lite is outdated. Please run:
174
174
  ESM dist/label.js 145.00 B
175
175
  ESM dist/loading-button.js 192.00 B
176
176
  ESM dist/love-footer.js 156.00 B
177
- ESM dist/date-time-picker.js 285.00 B
178
177
  ESM dist/drag-and-drop.js 2.38 KB
178
+ ESM dist/date-time-picker.js 285.00 B
179
179
  ESM dist/draggable-stacked-list-item.js 246.00 B
180
180
  ESM dist/drawer.js 147.00 B
181
181
  ESM dist/dropdown.js 222.00 B
@@ -233,8 +233,8 @@ Browserslist: caniuse-lite is outdated. Please run:
233
233
  ESM dist/chunk-UQ566F6W.js 3.32 KB
234
234
  ESM dist/chunk-ESJIQMQJ.js 738.00 B
235
235
  ESM dist/chunk-MMFRYMGJ.js 5.67 KB
236
- ESM dist/chunk-DL4PX4HA.js 1.50 KB
237
- ESM dist/chunk-6TL5EZJH.js 1.31 KB
236
+ ESM dist/chunk-W5BREWLN.js 1.50 KB
237
+ ESM dist/chunk-23MWYGN4.js 1.33 KB
238
238
  ESM dist/chunk-NDDDT4TO.js 1.63 KB
239
239
  ESM dist/chunk-QYKN3JZ5.js 3.46 KB
240
240
  ESM dist/chunk-SLIZ4TDR.js 1.68 KB
@@ -275,16 +275,16 @@ Browserslist: caniuse-lite is outdated. Please run:
275
275
  ESM dist/button-group-item.js 167.00 B
276
276
  ESM dist/chunk-XYGVDZRO.js 696.00 B
277
277
  ESM dist/product-picker/product-modal.css.map 177.83 KB
278
- ESM dist/chunk-Z4LPO673.js.map 71.00 B
279
- ESM dist/table-header/table-header.js.map 51.00 B
280
- ESM dist/tooltip/tooltip.js.map 51.00 B
281
278
  ESM dist/chunk-SBGTFQOD.js.map 15.87 KB
279
+ ESM dist/table-header/table-header.js.map 51.00 B
280
+ ESM dist/chunk-Z4LPO673.js.map 71.00 B
282
281
  ESM dist/toast/index.js.map 51.00 B
283
- ESM dist/pagination/pagination.js.map 51.00 B
282
+ ESM dist/tooltip/tooltip.js.map 51.00 B
284
283
  ESM dist/nbui/nbui-footer.js.map 51.00 B
285
284
  ESM dist/nbui/nbui-page-layout.js.map 51.00 B
286
- ESM dist/product-picker/product-modal.js.map 51.00 B
285
+ ESM dist/pagination/pagination.js.map 51.00 B
287
286
  ESM dist/product-picker/product-listing.js.map 51.00 B
287
+ ESM dist/product-picker/product-modal.js.map 51.00 B
288
288
  ESM dist/search/search.js.map 51.00 B
289
289
  ESM dist/sidebar/sidebar.js.map 51.00 B
290
290
  ESM dist/sort/sort.js.map 51.00 B
@@ -300,10 +300,10 @@ Browserslist: caniuse-lite is outdated. Please run:
300
300
  ESM dist/featurePageComponents/feature-page-group.js.map 51.00 B
301
301
  ESM dist/featurePageComponents/mini-feature-block.js.map 1.51 KB
302
302
  ESM dist/file-picker/file-listing.js.map 51.00 B
303
- ESM dist/file-picker/file-picker.js.map 51.00 B
304
303
  ESM dist/layout/layout.js.map 51.00 B
305
- ESM dist/navbar/navbar.js.map 51.00 B
304
+ ESM dist/file-picker/file-picker.js.map 51.00 B
306
305
  ESM dist/nbui/nbui-card-form.js.map 51.00 B
306
+ ESM dist/navbar/navbar.js.map 51.00 B
307
307
  ESM dist/video-dashboard-notification.js.map 51.00 B
308
308
  ESM dist/video-modal.js.map 51.00 B
309
309
  ESM dist/country-picker/country-listing.js.map 51.00 B
@@ -311,23 +311,23 @@ Browserslist: caniuse-lite is outdated. Please run:
311
311
  ESM dist/cross-sell/cross-sell-carousel.js.map 51.00 B
312
312
  ESM dist/cross-sell/serivce-callback-banner.js.map 51.00 B
313
313
  ESM dist/cross-sell/service-card.js.map 51.00 B
314
- ESM dist/feature-cards/feature-card.js.map 51.00 B
315
314
  ESM dist/spinner.js.map 51.00 B
316
315
  ESM dist/stacked-list-item.js.map 51.00 B
317
- ESM dist/table-result-block.js.map 51.00 B
318
316
  ESM dist/test-component.js.map 51.00 B
317
+ ESM dist/table-result-block.js.map 51.00 B
319
318
  ESM dist/text-row.js.map 51.00 B
320
319
  ESM dist/textarea.js.map 51.00 B
321
- ESM dist/textinput.js.map 51.00 B
320
+ ESM dist/feature-cards/feature-card.js.map 51.00 B
322
321
  ESM dist/toggleswitch.js.map 51.00 B
322
+ ESM dist/textinput.js.map 51.00 B
323
323
  ESM dist/mini-feature-block.js.map 51.00 B
324
324
  ESM dist/modal.js.map 51.00 B
325
325
  ESM dist/no-results-block.js.map 51.00 B
326
326
  ESM dist/page-header.js.map 51.00 B
327
327
  ESM dist/pin-feature-button.js.map 51.00 B
328
328
  ESM dist/progress-bar.js.map 51.00 B
329
- ESM dist/radio.js.map 51.00 B
330
329
  ESM dist/select.js.map 51.00 B
330
+ ESM dist/radio.js.map 51.00 B
331
331
  ESM dist/form-row.js.map 51.00 B
332
332
  ESM dist/image-thumbnail.js.map 51.00 B
333
333
  ESM dist/index.js.map 51.00 B
@@ -336,8 +336,8 @@ Browserslist: caniuse-lite is outdated. Please run:
336
336
  ESM dist/label.js.map 51.00 B
337
337
  ESM dist/loading-button.js.map 51.00 B
338
338
  ESM dist/love-footer.js.map 51.00 B
339
- ESM dist/date-time-picker.js.map 51.00 B
340
339
  ESM dist/drag-and-drop.js.map 51.00 B
340
+ ESM dist/date-time-picker.js.map 51.00 B
341
341
  ESM dist/draggable-stacked-list-item.js.map 51.00 B
342
342
  ESM dist/drawer.js.map 51.00 B
343
343
  ESM dist/dropdown.js.map 51.00 B
@@ -394,15 +394,15 @@ Browserslist: caniuse-lite is outdated. Please run:
394
394
  ESM dist/chunk-UQ566F6W.js.map 5.33 KB
395
395
  ESM dist/chunk-ESJIQMQJ.js.map 1.20 KB
396
396
  ESM dist/chunk-MMFRYMGJ.js.map 15.80 KB
397
- ESM dist/chunk-DL4PX4HA.js.map 3.33 KB
398
- ESM dist/chunk-6TL5EZJH.js.map 2.48 KB
397
+ ESM dist/chunk-W5BREWLN.js.map 3.33 KB
399
398
  ESM dist/chunk-NDDDT4TO.js.map 3.64 KB
399
+ ESM dist/chunk-23MWYGN4.js.map 2.54 KB
400
400
  ESM dist/chunk-QYKN3JZ5.js.map 8.04 KB
401
401
  ESM dist/chunk-SLIZ4TDR.js.map 2.43 KB
402
402
  ESM dist/chunk-TXJVQRS6.js.map 1.48 KB
403
403
  ESM dist/card.js.map 51.00 B
404
- ESM dist/checkbox.js.map 51.00 B
405
404
  ESM dist/chunk-PGRADSYH.js.map 2.42 KB
405
+ ESM dist/checkbox.js.map 51.00 B
406
406
  ESM dist/color-picker.js.map 51.00 B
407
407
  ESM dist/chunk-ISA6E23B.js.map 3.32 KB
408
408
  ESM dist/dashboard-notification.js.map 51.00 B
@@ -419,7 +419,6 @@ Browserslist: caniuse-lite is outdated. Please run:
419
419
  ESM dist/accordion.js.map 51.00 B
420
420
  ESM dist/chunk-WLWG565K.js.map 7.81 KB
421
421
  ESM dist/account-manager.js.map 51.00 B
422
- ESM dist/chunk-GIZ3LLSA.js.map 2.52 KB
423
422
  ESM dist/chunk-ER5CL77P.js.map 998.00 B
424
423
  ESM dist/alert-banner.js.map 51.00 B
425
424
  ESM dist/chunk-5SEJVYKM.js.map 6.15 KB
@@ -436,5 +435,6 @@ Browserslist: caniuse-lite is outdated. Please run:
436
435
  ESM dist/button-group-item.js.map 51.00 B
437
436
  ESM dist/chunk-XYGVDZRO.js.map 1.25 KB
438
437
  ESM dist/chunk-DBTCX3TP.js.map 711.41 KB
439
- ESM ⚡️ Build success in 76854ms
440
- Done in 77.58s.
438
+ ESM dist/chunk-GIZ3LLSA.js.map 2.52 KB
439
+ ESM ⚡️ Build success in 70437ms
440
+ Done in 71.06s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ekm-ui
2
2
 
3
+ ## 0.4.75
4
+
5
+ ### Patch Changes
6
+
7
+ - 3313adaf: EKM-1627 Pass props to toggle switch input control
8
+
3
9
  ## 0.4.74
4
10
 
5
11
  ### Patch Changes
@@ -48,8 +48,8 @@ import './chunk-AY4JB2QV.js';
48
48
  import './chunk-UQ566F6W.js';
49
49
  import './chunk-ESJIQMQJ.js';
50
50
  import './chunk-MMFRYMGJ.js';
51
- import './chunk-DL4PX4HA.js';
52
- import './chunk-6TL5EZJH.js';
51
+ import './chunk-W5BREWLN.js';
52
+ import './chunk-23MWYGN4.js';
53
53
  import './chunk-NDDDT4TO.js';
54
54
  import './chunk-QYKN3JZ5.js';
55
55
  import './chunk-SLIZ4TDR.js';
@@ -0,0 +1,10 @@
1
+ import { a as a$1 } from './chunk-6LHL364H.js';
2
+ import { e, a as a$2 } from './chunk-Z4LPO673.js';
3
+ import { forwardRef } from 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var a=e(a$1(),1);var l=forwardRef(function(e,d){return jsx("div",{className:e.className&&e.className,children:jsxs("label",{className:`relative inline-flex items-center ${e.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[jsx("input",a$2({id:e.id,ref:d,type:"checkbox",className:"peer sr-only",onChange:e.onChange,name:e.name,checked:e.checked,disabled:e.disabled},e)),jsx("div",{className:"peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:start-[2px] after:top-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white rtl:peer-checked:after:-translate-x-full dark:border-gray-600 dark:bg-gray-700"}),e.label&&jsx("span",{class:"ms-3 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})})});l.propTypes={id:a.default.string.isRequired,checked:a.default.bool,disabled:a.default.bool,onChange:a.default.func,label:a.default.string};l.displayName="ToggleSwitch";
7
+
8
+ export { l as a };
9
+ //# sourceMappingURL=out.js.map
10
+ //# sourceMappingURL=chunk-23MWYGN4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/toggleswitch.tsx"],"names":["import_prop_types","forwardRef","jsx","jsxs","ToggleSwitch","props","ref","__spreadValues","PropTypes"],"mappings":"uFACA,IAAAA,EAAsB,SACtB,OAAS,cAAAC,MAAkB,QAKpB,OAGG,OAAAC,EAHH,QAAAC,MAAA,oBAHA,IAAMC,EAAeH,EAAW,SAAsBI,EAAOC,EAAK,CACvE,OACEJ,EAAC,OAAI,UAAWG,EAAM,WAAaA,EAAM,UACtC,SAAAF,EAAC,SACE,UAAW,qCAAqCE,EAAM,SAAW,gCAAkC,mBAEnG,UAAAH,EAAC,QAAAK,EAAA,CACC,GAAIF,EAAM,GACV,IAAKC,EACL,KAAK,WACL,UAAW,eACX,SAAUD,EAAM,SAChB,KAAMA,EAAM,KACZ,QAASA,EAAM,QACf,SAAUA,EAAM,UACZA,EACJ,EACFH,EAAC,OAAI,UAAU,qYAAqY,EACnZG,EAAM,OACLH,EAAC,QAAK,MAAM,4DACT,SAAAG,EAAM,MACT,GAEJ,EACF,CAEN,CAAC,EAEDD,EAAa,UAAY,CAEvB,GAAI,EAAAI,QAAU,OAAO,WAErB,QAAS,EAAAA,QAAU,KAEnB,SAAU,EAAAA,QAAU,KAEpB,SAAU,EAAAA,QAAU,KACpB,MAAO,EAAAA,QAAU,MACnB,EAEAJ,EAAa,YAAc","sourcesContent":["//@ts-nocheck\nimport PropTypes from \"prop-types\";\nimport { forwardRef } from \"react\";\n\nexport const ToggleSwitch = forwardRef(function ToggleSwitch(props, ref) {\n return (\n <div className={props.className && props.className}>\n <label\n className={`relative inline-flex items-center ${props.disabled ? \"cursor-not-allowed opacity-50\" : \"cursor-pointer\"}`}\n >\n <input\n id={props.id}\n ref={ref}\n type=\"checkbox\"\n className={`peer sr-only`}\n onChange={props.onChange}\n name={props.name}\n checked={props.checked}\n disabled={props.disabled}\n {...props}\n />\n <div className=\"peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:start-[2px] after:top-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white rtl:peer-checked:after:-translate-x-full dark:border-gray-600 dark:bg-gray-700\" />\n {props.label && (\n <span class=\"ms-3 text-sm font-medium text-gray-900 dark:text-gray-300\">\n {props.label}\n </span>\n )}\n </label>\n </div>\n );\n});\n\nToggleSwitch.propTypes = {\n /** Id for Toggle switch */\n id: PropTypes.string.isRequired,\n /** Bool to determine if ToggleSwitch has been checked */\n checked: PropTypes.bool,\n /** Bool to disable toggle switch */\n disabled: PropTypes.bool,\n /** function to handle checked value */\n onChange: PropTypes.func,\n label: PropTypes.string,\n};\n\nToggleSwitch.displayName = \"ToggleSwitch\";\n"]}
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from './chunk-6TL5EZJH.js';
1
+ import { a as a$1 } from './chunk-23MWYGN4.js';
2
2
  import { b, a } from './chunk-Z4LPO673.js';
3
3
  import { useSortable } from '@dnd-kit/sortable';
4
4
  import { CSS } from '@dnd-kit/utilities';
@@ -9,4 +9,4 @@ function S({id:r,title:i,text:l,children:d,toggleCallback:a$2,toggleChecked:c}){
9
9
 
10
10
  export { S as a };
11
11
  //# sourceMappingURL=out.js.map
12
- //# sourceMappingURL=chunk-DL4PX4HA.js.map
12
+ //# sourceMappingURL=chunk-W5BREWLN.js.map
@@ -48,8 +48,8 @@ import '../chunk-AY4JB2QV.js';
48
48
  import '../chunk-UQ566F6W.js';
49
49
  import '../chunk-ESJIQMQJ.js';
50
50
  import '../chunk-MMFRYMGJ.js';
51
- import '../chunk-DL4PX4HA.js';
52
- import '../chunk-6TL5EZJH.js';
51
+ import '../chunk-W5BREWLN.js';
52
+ import '../chunk-23MWYGN4.js';
53
53
  import '../chunk-NDDDT4TO.js';
54
54
  import '../chunk-QYKN3JZ5.js';
55
55
  import '../chunk-SLIZ4TDR.js';
@@ -48,8 +48,8 @@ import './chunk-AY4JB2QV.js';
48
48
  import './chunk-UQ566F6W.js';
49
49
  import './chunk-ESJIQMQJ.js';
50
50
  import './chunk-MMFRYMGJ.js';
51
- import './chunk-DL4PX4HA.js';
52
- import './chunk-6TL5EZJH.js';
51
+ import './chunk-W5BREWLN.js';
52
+ import './chunk-23MWYGN4.js';
53
53
  import './chunk-NDDDT4TO.js';
54
54
  import './chunk-QYKN3JZ5.js';
55
55
  import './chunk-SLIZ4TDR.js';
@@ -1,5 +1,5 @@
1
- export { a as DraggableStackedListItem } from './chunk-DL4PX4HA.js';
2
- import './chunk-6TL5EZJH.js';
1
+ export { a as DraggableStackedListItem } from './chunk-W5BREWLN.js';
2
+ import './chunk-23MWYGN4.js';
3
3
  import './chunk-6LHL364H.js';
4
4
  import './chunk-Z4LPO673.js';
5
5
  //# sourceMappingURL=out.js.map
@@ -48,8 +48,8 @@ import '../chunk-AY4JB2QV.js';
48
48
  import '../chunk-UQ566F6W.js';
49
49
  import '../chunk-ESJIQMQJ.js';
50
50
  import '../chunk-MMFRYMGJ.js';
51
- import '../chunk-DL4PX4HA.js';
52
- import '../chunk-6TL5EZJH.js';
51
+ import '../chunk-W5BREWLN.js';
52
+ import '../chunk-23MWYGN4.js';
53
53
  import '../chunk-NDDDT4TO.js';
54
54
  import '../chunk-QYKN3JZ5.js';
55
55
  import '../chunk-SLIZ4TDR.js';
package/dist/index.js CHANGED
@@ -48,8 +48,8 @@ export { a as TextInput } from './chunk-AY4JB2QV.js';
48
48
  export { a as LoadingButton } from './chunk-UQ566F6W.js';
49
49
  export { a as LoveFooter } from './chunk-ESJIQMQJ.js';
50
50
  export { a as DateTimePicker } from './chunk-MMFRYMGJ.js';
51
- export { a as DraggableStackedListItem } from './chunk-DL4PX4HA.js';
52
- export { a as ToggleSwitch } from './chunk-6TL5EZJH.js';
51
+ export { a as DraggableStackedListItem } from './chunk-W5BREWLN.js';
52
+ export { a as ToggleSwitch } from './chunk-23MWYGN4.js';
53
53
  export { a as Drawer } from './chunk-NDDDT4TO.js';
54
54
  export { a as Dropdown } from './chunk-QYKN3JZ5.js';
55
55
  export { a as EkmLogo } from './chunk-SLIZ4TDR.js';
@@ -48,8 +48,8 @@ import '../chunk-AY4JB2QV.js';
48
48
  import '../chunk-UQ566F6W.js';
49
49
  import '../chunk-ESJIQMQJ.js';
50
50
  import '../chunk-MMFRYMGJ.js';
51
- import '../chunk-DL4PX4HA.js';
52
- import '../chunk-6TL5EZJH.js';
51
+ import '../chunk-W5BREWLN.js';
52
+ import '../chunk-23MWYGN4.js';
53
53
  import '../chunk-NDDDT4TO.js';
54
54
  import '../chunk-QYKN3JZ5.js';
55
55
  import '../chunk-SLIZ4TDR.js';
@@ -48,8 +48,8 @@ import '../chunk-AY4JB2QV.js';
48
48
  import '../chunk-UQ566F6W.js';
49
49
  import '../chunk-ESJIQMQJ.js';
50
50
  import '../chunk-MMFRYMGJ.js';
51
- import '../chunk-DL4PX4HA.js';
52
- import '../chunk-6TL5EZJH.js';
51
+ import '../chunk-W5BREWLN.js';
52
+ import '../chunk-23MWYGN4.js';
53
53
  import '../chunk-NDDDT4TO.js';
54
54
  import '../chunk-QYKN3JZ5.js';
55
55
  import '../chunk-SLIZ4TDR.js';
@@ -48,8 +48,8 @@ import './chunk-AY4JB2QV.js';
48
48
  import './chunk-UQ566F6W.js';
49
49
  import './chunk-ESJIQMQJ.js';
50
50
  import './chunk-MMFRYMGJ.js';
51
- import './chunk-DL4PX4HA.js';
52
- import './chunk-6TL5EZJH.js';
51
+ import './chunk-W5BREWLN.js';
52
+ import './chunk-23MWYGN4.js';
53
53
  import './chunk-NDDDT4TO.js';
54
54
  import './chunk-QYKN3JZ5.js';
55
55
  import './chunk-SLIZ4TDR.js';
@@ -48,8 +48,8 @@ import './chunk-AY4JB2QV.js';
48
48
  import './chunk-UQ566F6W.js';
49
49
  import './chunk-ESJIQMQJ.js';
50
50
  import './chunk-MMFRYMGJ.js';
51
- import './chunk-DL4PX4HA.js';
52
- import './chunk-6TL5EZJH.js';
51
+ import './chunk-W5BREWLN.js';
52
+ import './chunk-23MWYGN4.js';
53
53
  import './chunk-NDDDT4TO.js';
54
54
  import './chunk-QYKN3JZ5.js';
55
55
  import './chunk-SLIZ4TDR.js';
@@ -1,4 +1,4 @@
1
- export { a as ToggleSwitch } from './chunk-6TL5EZJH.js';
1
+ export { a as ToggleSwitch } from './chunk-23MWYGN4.js';
2
2
  import './chunk-6LHL364H.js';
3
3
  import './chunk-Z4LPO673.js';
4
4
  //# sourceMappingURL=out.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ekm-ui",
3
- "version": "0.4.74",
3
+ "version": "0.4.75",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
@@ -17,6 +17,7 @@ export const ToggleSwitch = forwardRef(function ToggleSwitch(props, ref) {
17
17
  name={props.name}
18
18
  checked={props.checked}
19
19
  disabled={props.disabled}
20
+ {...props}
20
21
  />
21
22
  <div className="peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:start-[2px] after:top-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white rtl:peer-checked:after:-translate-x-full dark:border-gray-600 dark:bg-gray-700" />
22
23
  {props.label && (
@@ -1,10 +0,0 @@
1
- import { a as a$1 } from './chunk-6LHL364H.js';
2
- import { e } from './chunk-Z4LPO673.js';
3
- import { forwardRef } from 'react';
4
- import { jsx, jsxs } from 'react/jsx-runtime';
5
-
6
- var a=e(a$1(),1);var t=forwardRef(function(e,l){return jsx("div",{className:e.className&&e.className,children:jsxs("label",{className:`relative inline-flex items-center ${e.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[jsx("input",{id:e.id,ref:l,type:"checkbox",className:"peer sr-only",onChange:e.onChange,name:e.name,checked:e.checked,disabled:e.disabled}),jsx("div",{className:"peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:start-[2px] after:top-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white rtl:peer-checked:after:-translate-x-full dark:border-gray-600 dark:bg-gray-700"}),e.label&&jsx("span",{class:"ms-3 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})})});t.propTypes={id:a.default.string.isRequired,checked:a.default.bool,disabled:a.default.bool,onChange:a.default.func,label:a.default.string};t.displayName="ToggleSwitch";
7
-
8
- export { t as a };
9
- //# sourceMappingURL=out.js.map
10
- //# sourceMappingURL=chunk-6TL5EZJH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/toggleswitch.tsx"],"names":["import_prop_types","forwardRef","jsx","jsxs","ToggleSwitch","props","ref","PropTypes"],"mappings":"gFACA,IAAAA,EAAsB,SACtB,OAAS,cAAAC,MAAkB,QAKpB,OAGG,OAAAC,EAHH,QAAAC,MAAA,oBAHA,IAAMC,EAAeH,EAAW,SAAsBI,EAAOC,EAAK,CACvE,OACEJ,EAAC,OAAI,UAAWG,EAAM,WAAaA,EAAM,UACtC,SAAAF,EAAC,SACE,UAAW,qCAAqCE,EAAM,SAAW,gCAAkC,mBAEnG,UAAAH,EAAC,SACC,GAAIG,EAAM,GACV,IAAKC,EACL,KAAK,WACL,UAAW,eACX,SAAUD,EAAM,SAChB,KAAMA,EAAM,KACZ,QAASA,EAAM,QACf,SAAUA,EAAM,SAChB,EACFH,EAAC,OAAI,UAAU,qYAAqY,EACnZG,EAAM,OACLH,EAAC,QAAK,MAAM,4DACT,SAAAG,EAAM,MACT,GAEJ,EACF,CAEN,CAAC,EAEDD,EAAa,UAAY,CAEvB,GAAI,EAAAG,QAAU,OAAO,WAErB,QAAS,EAAAA,QAAU,KAEnB,SAAU,EAAAA,QAAU,KAEpB,SAAU,EAAAA,QAAU,KACpB,MAAO,EAAAA,QAAU,MACnB,EAEAH,EAAa,YAAc","sourcesContent":["//@ts-nocheck\nimport PropTypes from \"prop-types\";\nimport { forwardRef } from \"react\";\n\nexport const ToggleSwitch = forwardRef(function ToggleSwitch(props, ref) {\n return (\n <div className={props.className && props.className}>\n <label\n className={`relative inline-flex items-center ${props.disabled ? \"cursor-not-allowed opacity-50\" : \"cursor-pointer\"}`}\n >\n <input\n id={props.id}\n ref={ref}\n type=\"checkbox\"\n className={`peer sr-only`}\n onChange={props.onChange}\n name={props.name}\n checked={props.checked}\n disabled={props.disabled}\n />\n <div className=\"peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:start-[2px] after:top-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white rtl:peer-checked:after:-translate-x-full dark:border-gray-600 dark:bg-gray-700\" />\n {props.label && (\n <span class=\"ms-3 text-sm font-medium text-gray-900 dark:text-gray-300\">\n {props.label}\n </span>\n )}\n </label>\n </div>\n );\n});\n\nToggleSwitch.propTypes = {\n /** Id for Toggle switch */\n id: PropTypes.string.isRequired,\n /** Bool to determine if ToggleSwitch has been checked */\n checked: PropTypes.bool,\n /** Bool to disable toggle switch */\n disabled: PropTypes.bool,\n /** function to handle checked value */\n onChange: PropTypes.func,\n label: PropTypes.string,\n};\n\nToggleSwitch.displayName = \"ToggleSwitch\";\n"]}