ekm-ui 0.0.4 → 0.0.6

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 (65) hide show
  1. package/.turbo/turbo-build.log +47 -14
  2. package/CHANGELOG.md +12 -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-FRIXS4BL.mjs +7 -0
  12. package/dist/chunk-FRIXS4BL.mjs.map +1 -0
  13. package/dist/chunk-G676EBCC.mjs +10 -0
  14. package/dist/chunk-G676EBCC.mjs.map +1 -0
  15. package/dist/chunk-PLYG34XT.mjs +8 -0
  16. package/dist/chunk-PLYG34XT.mjs.map +1 -0
  17. package/dist/chunk-Q6W42FIC.mjs +11 -0
  18. package/dist/chunk-Q6W42FIC.mjs.map +1 -0
  19. package/dist/chunk-RUPJ2ZHA.mjs +5 -0
  20. package/dist/chunk-RUPJ2ZHA.mjs.map +1 -0
  21. package/dist/chunk-ZIAMSFEI.mjs +18 -0
  22. package/dist/chunk-ZIAMSFEI.mjs.map +1 -0
  23. package/dist/ekm-logo.d.ts +5 -0
  24. package/dist/ekm-logo.mjs +4 -0
  25. package/dist/ekm-logo.mjs.map +1 -0
  26. package/dist/footer-heart-icon.d.ts +3 -0
  27. package/dist/footer-heart-icon.mjs +4 -0
  28. package/dist/footer-heart-icon.mjs.map +1 -0
  29. package/dist/form-row.d.ts +10 -0
  30. package/dist/form-row.mjs +4 -0
  31. package/dist/form-row.mjs.map +1 -0
  32. package/dist/index.css +1 -1
  33. package/dist/index.css.map +1 -1
  34. package/dist/index.d.ts +7 -1
  35. package/dist/index.mjs +9 -1
  36. package/dist/love-footer.d.ts +3 -0
  37. package/dist/love-footer.mjs +5 -0
  38. package/dist/love-footer.mjs.map +1 -0
  39. package/dist/navbar/navbar.d.ts +9 -0
  40. package/dist/navbar/navbar.mjs +6 -0
  41. package/dist/navbar/navbar.mjs.map +1 -0
  42. package/dist/sidebar/sidebar.d.ts +7 -0
  43. package/dist/sidebar/sidebar.mjs +5 -0
  44. package/dist/sidebar/sidebar.mjs.map +1 -0
  45. package/images/ekm-logo.svg +12 -0
  46. package/images/run_workflow.jpg +0 -0
  47. package/package.json +8 -1
  48. package/readme.md +31 -0
  49. package/src/button.tsx +38 -0
  50. package/src/ekm-logo.tsx +37 -0
  51. package/src/footer-heart-icon.tsx +13 -0
  52. package/src/form-row.tsx +30 -0
  53. package/src/helpers/is-browser.ts +5 -0
  54. package/src/helpers/is-small-screen.ts +7 -0
  55. package/src/index.tsx +5 -2
  56. package/src/love-footer.tsx +11 -0
  57. package/src/navbar/navbar.tsx +526 -0
  58. package/src/sidebar/sidebar.tsx +48 -0
  59. package/tsconfig.json +3 -0
  60. package/dist/Button.d.ts +0 -22
  61. package/dist/Button.mjs +0 -3
  62. package/dist/chunk-57QDDOX4.mjs +0 -8
  63. package/dist/chunk-57QDDOX4.mjs.map +0 -1
  64. package/src/Button.tsx +0 -131
  65. /package/dist/{Button.mjs.map → button.mjs.map} +0 -0
package/src/Button.tsx DELETED
@@ -1,131 +0,0 @@
1
- import * as React from "react";
2
- import { VariantPropsOf, variantProps } from "./variants";
3
-
4
- const buttonProps = variantProps({
5
- base: "rounded-full font-semibold focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
6
- variants: {
7
- color: {
8
- default: "focus-visible:outline-indigo-600",
9
- primary: "focus-visible:outline-green-600",
10
- warning: "focus-visible:outline-orange-600",
11
- danger: "focus-visible:outline-red-600",
12
- },
13
- size: {
14
- xs: "px-2.5 py-1 text-xs",
15
- sm: "px-2.5 py-1 text-sm",
16
- md: "px-3 py-1.5 text-sm",
17
- lg: "px-3.5 py-2 text-sm",
18
- xl: "px-4 py-2.5 text-sm",
19
- },
20
- disabled: {
21
- true: "cursor-not-allowed opacity-50",
22
- },
23
- type: {
24
- outline: "ring-1 ring-inset bg-white shadow-sm",
25
- solid: "text-white shadow-sm",
26
- link: "hover:underline bg-white",
27
- },
28
- },
29
- compoundVariants: [
30
- {
31
- variants: {
32
- color: "default",
33
- type: "solid",
34
- },
35
- className: "bg-indigo-600 hover:bg-indigo-500",
36
- },
37
- {
38
- variants: {
39
- color: "primary",
40
- type: "solid",
41
- },
42
- className: "bg-green-600 hover:bg-green-500",
43
- },
44
- {
45
- variants: {
46
- color: "warning",
47
- type: "solid",
48
- },
49
- className: "bg-orange-600 hover:bg-orange-500",
50
- },
51
- {
52
- variants: {
53
- color: "danger",
54
- type: "solid",
55
- },
56
- className: "bg-red-600 hover:bg-red-500",
57
- },
58
- {
59
- variants: {
60
- color: "default",
61
- type: "outline",
62
- },
63
- className: "text-indigo-600 ring-indigo-600 hover:bg-indigo-50",
64
- },
65
- {
66
- variants: {
67
- color: "primary",
68
- type: "outline",
69
- },
70
- className: "ring-green-600 hover:bg-green-50",
71
- },
72
- {
73
- variants: {
74
- color: "warning",
75
- type: "outline",
76
- },
77
- className: "ring-orange-600 hover:bg-orange-50",
78
- },
79
- {
80
- variants: {
81
- color: "danger",
82
- type: "outline",
83
- },
84
- className: "ring-red-600 hover:bg-red-50",
85
- },
86
- {
87
- variants: {
88
- color: "default",
89
- type: "link",
90
- },
91
- className: "text-indigo-600",
92
- },
93
- {
94
- variants: {
95
- color: "primary",
96
- type: "link",
97
- },
98
- className: "ring-green-600",
99
- },
100
- {
101
- variants: {
102
- color: "warning",
103
- type: "link",
104
- },
105
- className: "ring-orange-600",
106
- },
107
- {
108
- variants: {
109
- color: "danger",
110
- type: "link",
111
- },
112
- className: "ring-red-600",
113
- },
114
- ],
115
- defaultVariants: {
116
- color: "default",
117
- size: "md",
118
- disabled: false,
119
- type: "solid",
120
- },
121
- });
122
-
123
- type Props = JSX.IntrinsicElements["button"] &
124
- VariantPropsOf<typeof buttonProps>;
125
-
126
- export function Button(props: Props) {
127
- return <button {...buttonProps(props)} />;
128
- }
129
-
130
- // Set display name so that correct component name shows up in DevTools / Storybook.
131
- Button.displayName = "Button";
File without changes