ekm-ui 0.0.2 → 0.0.5

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 (53) hide show
  1. package/.turbo/turbo-build.log +38 -15
  2. package/CHANGELOG.md +18 -0
  3. package/dist/button.d.ts +9 -0
  4. package/dist/button.mjs +4 -0
  5. package/dist/chunk-3SV266EG.mjs +8 -0
  6. package/dist/chunk-3SV266EG.mjs.map +1 -0
  7. package/dist/chunk-5PBKUEAL.mjs +9 -0
  8. package/dist/chunk-5PBKUEAL.mjs.map +1 -0
  9. package/dist/chunk-7LHL2LAJ.mjs +7 -0
  10. package/dist/chunk-7LHL2LAJ.mjs.map +1 -0
  11. package/dist/chunk-G676EBCC.mjs +10 -0
  12. package/dist/chunk-G676EBCC.mjs.map +1 -0
  13. package/dist/chunk-Q6W42FIC.mjs +11 -0
  14. package/dist/chunk-Q6W42FIC.mjs.map +1 -0
  15. package/dist/chunk-RUPJ2ZHA.mjs +5 -0
  16. package/dist/chunk-RUPJ2ZHA.mjs.map +1 -0
  17. package/dist/chunk-ZIAMSFEI.mjs +18 -0
  18. package/dist/chunk-ZIAMSFEI.mjs.map +1 -0
  19. package/dist/ekm-logo.d.ts +5 -0
  20. package/dist/ekm-logo.mjs +4 -0
  21. package/dist/ekm-logo.mjs.map +1 -0
  22. package/dist/form-row.d.ts +10 -0
  23. package/dist/form-row.mjs +4 -0
  24. package/dist/form-row.mjs.map +1 -0
  25. package/dist/index.css +1 -1
  26. package/dist/index.css.map +1 -1
  27. package/dist/index.d.ts +6 -1
  28. package/dist/index.mjs +7 -1
  29. package/dist/navbar/navbar.d.ts +9 -0
  30. package/dist/navbar/navbar.mjs +6 -0
  31. package/dist/navbar/navbar.mjs.map +1 -0
  32. package/dist/sidebar/sidebar.d.ts +7 -0
  33. package/dist/sidebar/sidebar.mjs +5 -0
  34. package/dist/sidebar/sidebar.mjs.map +1 -0
  35. package/images/ekm-logo.svg +12 -0
  36. package/images/run_workflow.jpg +0 -0
  37. package/package.json +8 -1
  38. package/readme.md +31 -0
  39. package/src/button.tsx +38 -0
  40. package/src/ekm-logo.tsx +37 -0
  41. package/src/form-row.tsx +30 -0
  42. package/src/helpers/is-browser.ts +5 -0
  43. package/src/helpers/is-small-screen.ts +7 -0
  44. package/src/index.tsx +4 -2
  45. package/src/navbar/navbar.tsx +526 -0
  46. package/src/sidebar/sidebar.tsx +48 -0
  47. package/tsconfig.json +3 -0
  48. package/dist/Button.d.ts +0 -22
  49. package/dist/Button.mjs +0 -3
  50. package/dist/chunk-57QDDOX4.mjs +0 -8
  51. package/dist/chunk-57QDDOX4.mjs.map +0 -1
  52. package/src/Button.tsx +0 -131
  53. /package/dist/{Button.mjs.map → button.mjs.map} +0 -0
@@ -1,22 +1,45 @@
1
1
  $ tsup
2
- CLI Building entry: src/Button.tsx, src/index.tsx
2
+ CLI Building entry: src/button.tsx, src/ekm-logo.tsx, src/form-row.tsx, src/index.tsx, src/navbar/navbar.tsx, src/sidebar/sidebar.tsx
3
3
  CLI Using tsconfig: tsconfig.json
4
4
  CLI tsup v6.7.0
5
- CLI Using tsup config: /home/jack/repos/dev/frontend/packages/ekm-ui/tsup.config.ts
5
+ CLI Using tsup config: /home/runner/work/dev/dev/frontend/packages/ekm-ui/tsup.config.ts
6
6
  CLI Target: es6
7
7
  CLI Cleaning output folder
8
8
  ESM Build start
9
9
  DTS Build start
10
- DTS ⚡️ Build success in 1766ms
11
- DTS dist/index.d.ts 38.00 B
12
- DTS dist/Button.d.ts 763.00 B
13
- "createElement" and "forwardRef" are imported from external module "react" but never used in "dist/chunk-57QDDOX4.mjs".
14
- ESM dist/index.css 11.36 KB
15
- ESM dist/index.css.map 21.06 KB
16
- ESM dist/Button.mjs 119.00 B
17
- ESM dist/chunk-57QDDOX4.mjs 2.82 KB
18
- ESM dist/index.mjs 118.00 B
19
- ESM dist/Button.mjs.map 51.00 B
20
- ESM dist/chunk-57QDDOX4.mjs.map 11.88 KB
21
- ESM dist/index.mjs.map 51.00 B
22
- ESM ⚡️ Build success in 2726ms
10
+ ESM dist/index.css 91.86 KB
11
+ ESM dist/index.css.map 131.26 KB
12
+ ESM dist/navbar/navbar.mjs 216.00 B
13
+ ESM dist/sidebar/sidebar.mjs 186.00 B
14
+ ESM dist/chunk-RUPJ2ZHA.mjs 1.13 KB
15
+ ESM dist/button.mjs 150.00 B
16
+ ESM dist/ekm-logo.mjs 153.00 B
17
+ ESM dist/form-row.mjs 153.00 B
18
+ ESM dist/index.mjs 369.00 B
19
+ ESM dist/chunk-G676EBCC.mjs 1.63 KB
20
+ ESM dist/chunk-Q6W42FIC.mjs 10.26 KB
21
+ ESM dist/chunk-5PBKUEAL.mjs 491.00 B
22
+ ESM dist/chunk-3SV266EG.mjs 1.69 KB
23
+ ESM dist/chunk-ZIAMSFEI.mjs 1.74 KB
24
+ ESM dist/chunk-7LHL2LAJ.mjs 4.04 KB
25
+ ESM dist/navbar/navbar.mjs.map 51.00 B
26
+ ESM dist/sidebar/sidebar.mjs.map 51.00 B
27
+ ESM dist/chunk-RUPJ2ZHA.mjs.map 71.00 B
28
+ ESM dist/button.mjs.map 51.00 B
29
+ ESM dist/ekm-logo.mjs.map 51.00 B
30
+ ESM dist/form-row.mjs.map 51.00 B
31
+ ESM dist/index.mjs.map 51.00 B
32
+ ESM dist/chunk-G676EBCC.mjs.map 2.60 KB
33
+ ESM dist/chunk-Q6W42FIC.mjs.map 24.22 KB
34
+ ESM dist/chunk-5PBKUEAL.mjs.map 1.12 KB
35
+ ESM dist/chunk-3SV266EG.mjs.map 2.43 KB
36
+ ESM dist/chunk-ZIAMSFEI.mjs.map 5.06 KB
37
+ ESM dist/chunk-7LHL2LAJ.mjs.map 218.24 KB
38
+ ESM ⚡️ Build success in 14997ms
39
+ DTS ⚡️ Build success in 15908ms
40
+ DTS dist/ekm-logo.d.ts 104.00 B
41
+ DTS dist/index.d.ts 213.00 B
42
+ DTS dist/button.d.ts 307.00 B
43
+ DTS dist/form-row.d.ts 259.00 B
44
+ DTS dist/navbar/navbar.d.ts 292.00 B
45
+ DTS dist/sidebar/sidebar.d.ts 166.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # ekm-ui
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - f8fce57: Added button, navbar, sidebar, and form row components.
8
+
9
+ ## 0.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 4c9e51a: Testing GitHub actions changes
14
+
15
+ ## 0.0.3
16
+
17
+ ### Patch Changes
18
+
19
+ - cca1edc: Trying alternative GitHub action
20
+
3
21
  ## 0.0.2
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ import { Button as Button$1 } from 'flowbite-react';
2
+ import React from 'react';
3
+
4
+ type Props = {
5
+ isLoading?: boolean;
6
+ } & React.ComponentPropsWithRef<typeof Button$1>;
7
+ declare const Button: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
+
9
+ export { Button };
@@ -0,0 +1,4 @@
1
+ export { a as Button } from './chunk-G676EBCC.mjs';
2
+ import './chunk-RUPJ2ZHA.mjs';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=button.mjs.map
@@ -0,0 +1,8 @@
1
+ import i from 'clsx';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+
4
+ function a({className:t}){return jsxs("svg",{className:i("h-6 w-6",t),viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxs("g",{"clip-path":"url(#clip0_2131_4794)",children:[jsx("path",{d:"M24.9715 27.6719C23.7144 27.6719 22.6858 28.6824 22.6858 29.9175C22.6858 31.1526 23.7144 32.1631 24.9715 32.1631C26.2286 32.1631 27.2572 31.1526 27.2572 29.9175C27.3144 28.6824 26.2858 27.6719 24.9715 27.6719Z",fill:"#026AC2"}),jsx("path",{d:"M11.3714 27.6719C10.1143 27.6719 9.08569 28.6824 9.08569 29.9175C9.08569 31.1526 10.1143 32.1631 11.3714 32.1631C12.6286 32.1631 13.6571 31.1526 13.6571 29.9175C13.7143 28.6824 12.6857 27.6719 11.3714 27.6719Z",fill:"#026AC2"}),jsx("path",{d:"M29.5429 6.6193H8.91429L8.05714 2.40877C7.94286 1.34211 7.14286 0.5 6.17143 0.5H1.94286C0.857143 0.5 0 1.45439 0 2.68947C0 3.9807 0.857143 4.99123 1.94286 4.99123H4.05714L6.74286 18.1842L7.88571 24.0228C7.88571 24.0228 7.88571 24.0228 7.88571 24.079L7.94286 24.2474C8.17143 25.2018 8.85714 25.8754 9.65714 25.8754H26.1143C28.8571 25.8754 29.2 21.2719 29.2 21.2719H11.8286L11.3143 18.5772L28.2286 18.5211C29.0286 18.5211 29.7143 17.8474 29.9429 17.0053V16.9491L31.7143 9.5386C31.7143 9.48246 31.7714 9.37018 31.7714 9.31404C31.7714 9.20176 31.8286 9.03333 31.8286 8.92105C31.8286 7.62983 30.8571 6.6193 29.5429 6.6193ZM26.2286 14.0298L10.4571 14.086L9.88571 11.1667H26.8571L26.2286 14.0298Z",fill:"#026AC2"})]}),jsx("defs",{children:jsx("clipPath",{id:"clip0_2131_4794",children:jsx("rect",{width:"32",height:"32",fill:"white",transform:"translate(0 0.5)"})})})]})}
5
+
6
+ export { a };
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=chunk-3SV266EG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ekm-logo.tsx"],"names":["clsx","jsx","jsxs","EkmLogo","className"],"mappings":"AAAA,OAAOA,MAAU,OAUX,OACE,OAAAC,EADF,QAAAC,MAAA,oBARC,SAASC,EAAQ,CAAE,UAAAC,CAAU,EAA2B,CAC7D,OACEF,EAAC,OACC,UAAWF,EAAK,UAAWI,CAAS,EACpC,QAAQ,YACR,KAAK,OACL,MAAM,6BAEN,UAAAF,EAAC,KAAE,YAAU,wBACX,UAAAD,EAAC,QACC,EAAE,oNACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,oNACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,orBACF,KAAK,UACP,GACF,EACAA,EAAC,QACC,SAAAA,EAAC,YAAS,GAAG,kBACX,SAAAA,EAAC,QACC,MAAM,KACN,OAAO,KACP,KAAK,QACL,UAAU,mBACZ,EACF,EACF,GACF,CAEJ","sourcesContent":["import clsx from \"clsx\";\n\nexport function EkmLogo({ className }: { className?: string }) {\n return (\n <svg\n className={clsx(\"h-6 w-6\", className)}\n viewBox=\"0 0 32 33\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clip-path=\"url(#clip0_2131_4794)\">\n <path\n d=\"M24.9715 27.6719C23.7144 27.6719 22.6858 28.6824 22.6858 29.9175C22.6858 31.1526 23.7144 32.1631 24.9715 32.1631C26.2286 32.1631 27.2572 31.1526 27.2572 29.9175C27.3144 28.6824 26.2858 27.6719 24.9715 27.6719Z\"\n fill=\"#026AC2\"\n />\n <path\n d=\"M11.3714 27.6719C10.1143 27.6719 9.08569 28.6824 9.08569 29.9175C9.08569 31.1526 10.1143 32.1631 11.3714 32.1631C12.6286 32.1631 13.6571 31.1526 13.6571 29.9175C13.7143 28.6824 12.6857 27.6719 11.3714 27.6719Z\"\n fill=\"#026AC2\"\n />\n <path\n d=\"M29.5429 6.6193H8.91429L8.05714 2.40877C7.94286 1.34211 7.14286 0.5 6.17143 0.5H1.94286C0.857143 0.5 0 1.45439 0 2.68947C0 3.9807 0.857143 4.99123 1.94286 4.99123H4.05714L6.74286 18.1842L7.88571 24.0228C7.88571 24.0228 7.88571 24.0228 7.88571 24.079L7.94286 24.2474C8.17143 25.2018 8.85714 25.8754 9.65714 25.8754H26.1143C28.8571 25.8754 29.2 21.2719 29.2 21.2719H11.8286L11.3143 18.5772L28.2286 18.5211C29.0286 18.5211 29.7143 17.8474 29.9429 17.0053V16.9491L31.7143 9.5386C31.7143 9.48246 31.7714 9.37018 31.7714 9.31404C31.7714 9.20176 31.8286 9.03333 31.8286 8.92105C31.8286 7.62983 30.8571 6.6193 29.5429 6.6193ZM26.2286 14.0298L10.4571 14.086L9.88571 11.1667H26.8571L26.2286 14.0298Z\"\n fill=\"#026AC2\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2131_4794\">\n <rect\n width=\"32\"\n height=\"32\"\n fill=\"white\"\n transform=\"translate(0 0.5)\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import l from 'clsx';
2
+ import { Label } from 'flowbite-react';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
+
5
+ function g({children:a,label:o,htmlFor:s,helperText:t,className:e}){return jsxs("div",{className:l("grid grid-cols-1 content-start gap-y-2",e),children:[jsx(Label,{htmlFor:s,children:o}),a,t&&jsx("span",{className:"text-xs font-normal text-gray-500 dark:text-gray-400",children:t})]})}
6
+
7
+ export { g as a };
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-5PBKUEAL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/form-row.tsx"],"names":["clsx","Label","jsx","jsxs","FormRow","children","label","htmlFor","helperText","className"],"mappings":"AAAA,OAAOA,MAAU,OACjB,OAAS,SAAAC,MAAa,iBAkBlB,OACE,OAAAC,EADF,QAAAC,MAAA,oBARG,SAASC,EAAQ,CACtB,SAAAC,EACA,MAAAC,EACA,QAAAC,EACA,WAAAC,EACA,UAAAC,CACF,EAAU,CACR,OACEN,EAAC,OAAI,UAAWH,EAAK,yCAA0CS,CAAS,EACtE,UAAAP,EAACD,EAAA,CAAM,QAASM,EAAU,SAAAD,EAAM,EAC/BD,EACAG,GACCN,EAAC,QAAK,UAAU,uDACb,SAAAM,EACH,GAEJ,CAEJ","sourcesContent":["import clsx from \"clsx\";\nimport { Label } from \"flowbite-react\";\n\ntype Props = {\n children: React.ReactNode;\n label: string;\n htmlFor: string;\n helperText?: string;\n className?: string;\n};\n\nexport function FormRow({\n children,\n label,\n htmlFor,\n helperText,\n className,\n}: Props) {\n return (\n <div className={clsx(\"grid grid-cols-1 content-start gap-y-2\", className)}>\n <Label htmlFor={htmlFor}>{label}</Label>\n {children}\n {helperText && (\n <span className=\"text-xs font-normal text-gray-500 dark:text-gray-400\">\n {helperText}\n </span>\n )}\n </div>\n );\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import d from 'react';
2
+
3
+ var u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},h=d.createContext&&d.createContext(u);var o=function(){return o=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);}return t},o.apply(this,arguments)},f=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(r[a[i]]=t[a[i]]);return r};function p(t){return t&&t.map(function(e,r){return d.createElement(e.tag,o({key:r},e.attr),p(e.child))})}function n(t){return function(e){return d.createElement(k,o({attr:o({},t.attr)},e),p(t.child))}}function k(t){var e=function(r){var a=t.attr,i=t.size,c=t.title,g=f(t,["attr","size","title"]),v=i||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),d.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,a,g,{className:l,style:o(o({color:t.color||r.color},r.style),t.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),c&&d.createElement("title",null,c),t.children)};return h!==void 0?d.createElement(h.Consumer,null,function(r){return e(r)}):e(u)}function A(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"}}]})(t)}function j(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}}]})(t)}function O(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}}]})(t)}function W(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(t)}function b(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"}}]})(t)}function S(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}}]})(t)}function U(t){return n({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(t)}
4
+
5
+ export { A as a, j as b, O as c, W as d, b as e, S as f, U as g };
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=chunk-7LHL2LAJ.mjs.map