ekm-ui 0.4.72 → 0.4.74

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 (50) hide show
  1. package/.turbo/turbo-build.log +69 -69
  2. package/CHANGELOG.md +13 -0
  3. package/dist/card-payment-block.css +1 -1
  4. package/dist/card-payment-block.css.map +1 -1
  5. package/dist/card-payment-block.js +6 -6
  6. package/dist/checkbox.js +1 -1
  7. package/dist/{chunk-22RUXGYW.js → chunk-34CKZLNN.js} +2 -2
  8. package/dist/{chunk-NF5KDPMG.js → chunk-DBTCX3TP.js} +2 -2
  9. package/dist/{chunk-ANU7OAPA.js → chunk-PGRADSYH.js} +2 -2
  10. package/dist/chunk-PGRADSYH.js.map +1 -0
  11. package/dist/{chunk-ZNWAFIZY.js → chunk-PSYIXRU7.js} +2 -2
  12. package/dist/{chunk-ZNWAFIZY.js.map → chunk-PSYIXRU7.js.map} +1 -1
  13. package/dist/{chunk-F7MTEILK.js → chunk-Q4MYDT2M.js} +2 -2
  14. package/dist/{chunk-ZRMNYAO7.js → chunk-ZOAYMMAU.js} +4 -4
  15. package/dist/country-picker/country-listing.js +2 -2
  16. package/dist/country-picker/country-modal.css +1 -1
  17. package/dist/country-picker/country-modal.css.map +1 -1
  18. package/dist/country-picker/country-modal.js +6 -6
  19. package/dist/drag-and-drop.css +1 -1
  20. package/dist/drag-and-drop.css.map +1 -1
  21. package/dist/drag-and-drop.js +6 -6
  22. package/dist/file-picker/file-picker.css +1 -1
  23. package/dist/file-picker/file-picker.css.map +1 -1
  24. package/dist/file-picker/file-picker.js +6 -6
  25. package/dist/index.css +1 -1
  26. package/dist/index.css.map +1 -1
  27. package/dist/index.js +6 -6
  28. package/dist/layout/layout.css +1 -1
  29. package/dist/layout/layout.css.map +1 -1
  30. package/dist/layout/layout.js +6 -6
  31. package/dist/product-picker/product-listing.js +2 -2
  32. package/dist/product-picker/product-modal.css +1 -1
  33. package/dist/product-picker/product-modal.css.map +1 -1
  34. package/dist/product-picker/product-modal.js +6 -6
  35. package/dist/search/search.js +1 -1
  36. package/dist/stacked-list-item.css +1 -1
  37. package/dist/stacked-list-item.css.map +1 -1
  38. package/dist/stacked-list-item.js +6 -6
  39. package/dist/table-header/table-header.js +2 -2
  40. package/dist/table-result-block.css +1 -1
  41. package/dist/table-result-block.css.map +1 -1
  42. package/dist/table-result-block.js +6 -6
  43. package/package.json +1 -1
  44. package/src/checkbox.tsx +3 -1
  45. package/src/search/search.tsx +1 -1
  46. package/dist/chunk-ANU7OAPA.js.map +0 -1
  47. /package/dist/{chunk-22RUXGYW.js.map → chunk-34CKZLNN.js.map} +0 -0
  48. /package/dist/{chunk-NF5KDPMG.js.map → chunk-DBTCX3TP.js.map} +0 -0
  49. /package/dist/{chunk-F7MTEILK.js.map → chunk-Q4MYDT2M.js.map} +0 -0
  50. /package/dist/{chunk-ZRMNYAO7.js.map → chunk-ZOAYMMAU.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- export { e as TableResultBlock } from './chunk-ZRMNYAO7.js';
2
- import './chunk-NF5KDPMG.js';
1
+ export { e as TableResultBlock } from './chunk-ZOAYMMAU.js';
2
+ import './chunk-DBTCX3TP.js';
3
3
  import './chunk-YZ2YZSNQ.js';
4
4
  import './chunk-GVNUAH45.js';
5
5
  import './chunk-JAR3LP2K.js';
6
6
  import './chunk-FOWKHGHJ.js';
7
- import './chunk-22RUXGYW.js';
8
- import './chunk-ZNWAFIZY.js';
7
+ import './chunk-34CKZLNN.js';
8
+ import './chunk-PSYIXRU7.js';
9
9
  import './chunk-HVNLAQA6.js';
10
10
  import './chunk-HW7AZG2V.js';
11
11
  import './chunk-AN66H4D6.js';
@@ -23,7 +23,7 @@ import './chunk-XXP5K6Y4.js';
23
23
  import './chunk-LWTESXND.js';
24
24
  import './chunk-LIXVY47P.js';
25
25
  import './chunk-Y5DEGGVQ.js';
26
- import './chunk-F7MTEILK.js';
26
+ import './chunk-Q4MYDT2M.js';
27
27
  import './chunk-VE6J42I7.js';
28
28
  import './chunk-DCVOMIPI.js';
29
29
  import './chunk-BF6NM3B7.js';
@@ -54,7 +54,7 @@ import './chunk-NDDDT4TO.js';
54
54
  import './chunk-QYKN3JZ5.js';
55
55
  import './chunk-SLIZ4TDR.js';
56
56
  import './chunk-TXJVQRS6.js';
57
- import './chunk-ANU7OAPA.js';
57
+ import './chunk-PGRADSYH.js';
58
58
  import './chunk-ISA6E23B.js';
59
59
  import './chunk-OUR2CLV6.js';
60
60
  import './chunk-MQETRVUJ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ekm-ui",
3
- "version": "0.4.72",
3
+ "version": "0.4.74",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
package/src/checkbox.tsx CHANGED
@@ -24,7 +24,7 @@ export const Checkbox = forwardRef(function Checkbox(props, ref) {
24
24
  <label
25
25
  id={`${props.id}-lbl`}
26
26
  htmlFor={props.id}
27
- className="ms-2 mt-2 text-sm font-medium text-gray-900 dark:text-gray-300"
27
+ className={props.labelClasses || "ms-2 my-2 text-sm font-medium text-gray-900 dark:text-gray-300"}
28
28
  >
29
29
  {props.label}
30
30
  </label>
@@ -44,6 +44,8 @@ Checkbox.propTypes = {
44
44
  disabled: PropTypes.bool,
45
45
  /** function to handle checked value */
46
46
  onChange: PropTypes.func,
47
+ /** Optional. Classes to be placed on label element */
48
+ labelClasses: PropTypes.string,
47
49
  };
48
50
 
49
51
  Checkbox.displayName = "Checkbox";
@@ -174,7 +174,7 @@ export const Search = forwardRef(function Search(
174
174
  onKeyDown={handleKeyDown}
175
175
  disabled={disabled}
176
176
  id={`${id}-search-input`}
177
- className={`block w-full rounded-lg border border-gray-300 border-r-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 ${showSearchIcon ? 'pl-2 lg:pl-10 pr-2 py-2 bg-white' : 'p-2 bg-gray-50'}`}
177
+ className={`block w-full rounded-lg border border-gray-300 border-r-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 ${showSearchIcon ? 'pl-[8px] lg:pl-10 pr-2 py-2 bg-white' : 'p-2 bg-gray-50'}`}
178
178
  />
179
179
  {categories?.length > 0 && renderDropdown()}
180
180
  </div>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/checkbox.tsx"],"names":["import_prop_types","forwardRef","jsx","jsxs","Checkbox","props","ref","twMerge","PropTypes"],"mappings":"wHAEA,IAAAA,EAAsB,SADtB,OAAS,cAAAC,MAAkB,QAMvB,OACE,OAAAC,EADF,QAAAC,MAAA,oBAFG,IAAMC,EAAWH,EAAW,SAAkBI,EAAOC,EAAK,CAC/D,OACEH,EAAC,OAAI,UAAU,oBACb,UAAAD,EAAC,SACC,GAAIG,EAAM,GACV,KAAMA,EAAM,KACZ,SAAUA,EAAM,SAChB,IAAKC,EACL,KAAK,WACL,QAASD,EAAM,QACf,UAAWE,EACTF,EAAM,UAAY,aAClBA,EAAM,WAAaA,EAAM,UACzB,wLACF,EACA,SAAUA,EAAM,SAClB,EACCA,EAAM,OACLH,EAAC,SACC,GAAI,GAAGG,EAAM,SACb,QAASA,EAAM,GACf,UAAU,iEAET,SAAAA,EAAM,MACT,GAEJ,CAEJ,CAAC,EAEDD,EAAS,UAAY,CAEnB,GAAI,EAAAI,QAAU,OAAO,WAErB,MAAO,EAAAA,QAAU,OAEjB,QAAS,EAAAA,QAAU,KAEnB,SAAU,EAAAA,QAAU,KAEpB,SAAU,EAAAA,QAAU,IACtB,EAEAJ,EAAS,YAAc","sourcesContent":["//@ts-nocheck\nimport { forwardRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport const Checkbox = forwardRef(function Checkbox(props, ref) {\n return (\n <div className=\"flex items-center\">\n <input\n id={props.id}\n name={props.name}\n onChange={props.onChange}\n ref={ref}\n type=\"checkbox\"\n checked={props.checked}\n className={twMerge(\n props.disabled && \"opacity-40\",\n props.className && props.className,\n \"h-4 w-4 rounded-sm border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600\"\n )}\n disabled={props.disabled}\n />\n {props.label && (\n <label\n id={`${props.id}-lbl`}\n htmlFor={props.id}\n className=\"ms-2 mt-2 text-sm font-medium text-gray-900 dark:text-gray-300\"\n >\n {props.label}\n </label>\n )}\n </div>\n );\n});\n\nCheckbox.propTypes = {\n /** String for id of checkbox */\n id: PropTypes.string.isRequired,\n /** String for label placed after checkbox */\n label: PropTypes.string,\n /** Bool to determine if checkbox has been checked */\n checked: PropTypes.bool,\n /** Bool for disabled state of checkbox */\n disabled: PropTypes.bool,\n /** function to handle checked value */\n onChange: PropTypes.func,\n};\n\nCheckbox.displayName = \"Checkbox\";\n"]}