@sikka/hawa 0.0.99 → 0.0.101

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 (147) hide show
  1. package/dist/styles.css +57 -8
  2. package/es/blocks/Account/UserProfileForm.d.ts +8 -0
  3. package/es/blocks/Account/UserSettingsForm.d.ts +8 -0
  4. package/es/blocks/Account/index.d.ts +2 -0
  5. package/es/blocks/AuthForms/AppLanding.d.ts +13 -0
  6. package/es/blocks/AuthForms/CodeConfirmation.d.ts +10 -0
  7. package/es/blocks/AuthForms/NewPasswordForm.d.ts +24 -0
  8. package/es/blocks/AuthForms/ResetPasswordForm.d.ts +18 -0
  9. package/es/blocks/AuthForms/SignInForm.d.ts +42 -0
  10. package/es/blocks/AuthForms/SignInPhone.d.ts +12 -0
  11. package/es/blocks/AuthForms/SignUpForm.d.ts +51 -0
  12. package/es/blocks/AuthForms/index.d.ts +7 -0
  13. package/es/blocks/Misc/NotFound.d.ts +4 -0
  14. package/es/blocks/Misc/index.d.ts +1 -0
  15. package/es/blocks/Payment/ChargeWalletForm.d.ts +12 -0
  16. package/es/blocks/Payment/CheckoutForm.d.ts +27 -0
  17. package/es/blocks/Payment/Confirmation.d.ts +40 -0
  18. package/es/blocks/Payment/CreditCardForm.d.ts +7 -0
  19. package/es/blocks/Payment/PayWithWallet.d.ts +8 -0
  20. package/es/blocks/Payment/SelectPayment.d.ts +26 -0
  21. package/es/blocks/Payment/index.d.ts +6 -0
  22. package/es/blocks/Pricing/ComparingPlans.d.ts +7 -0
  23. package/es/blocks/Pricing/PricingPlans.d.ts +7 -0
  24. package/es/blocks/Pricing/index.d.ts +2 -0
  25. package/es/blocks/index.d.ts +4 -0
  26. package/es/countries.d.ts +2 -0
  27. package/es/elements/AutoCompleteField.d.ts +8 -0
  28. package/es/elements/DragDropImages.d.ts +17 -0
  29. package/es/elements/DraggableCard.d.ts +6 -0
  30. package/es/elements/HawaAccordian.d.ts +6 -0
  31. package/es/elements/HawaAdCard.d.ts +10 -0
  32. package/es/elements/HawaAlert.d.ts +15 -0
  33. package/es/elements/HawaButton.d.ts +11 -0
  34. package/es/elements/HawaCheckbox.d.ts +9 -0
  35. package/es/elements/HawaChip.d.ts +6 -0
  36. package/es/elements/HawaColorPicker.d.ts +7 -0
  37. package/es/elements/HawaCopyrights.d.ts +8 -0
  38. package/es/elements/HawaDrawer.d.ts +13 -0
  39. package/es/elements/HawaDrawerItem.d.ts +8 -0
  40. package/es/elements/HawaItemCard.d.ts +11 -0
  41. package/es/elements/HawaLogoButton.d.ts +9 -0
  42. package/es/elements/HawaMenu.d.ts +16 -0
  43. package/es/elements/HawaModal.d.ts +12 -0
  44. package/es/elements/HawaPanelTabs.d.ts +10 -0
  45. package/es/elements/HawaPhoneInput.d.ts +11 -0
  46. package/es/elements/HawaPricingCard.d.ts +15 -0
  47. package/es/elements/HawaRadio.d.ts +6 -0
  48. package/es/elements/HawaRange.d.ts +10 -0
  49. package/es/elements/HawaSearchBar.d.ts +4 -0
  50. package/es/elements/HawaSelect.d.ts +18 -0
  51. package/es/elements/HawaSettingsRow.d.ts +7 -0
  52. package/es/elements/HawaSnackbar.d.ts +9 -0
  53. package/es/elements/HawaSwitch.d.ts +6 -0
  54. package/es/elements/HawaTable.d.ts +12 -0
  55. package/es/elements/HawaTabs.d.ts +8 -0
  56. package/es/elements/HawaTextField.d.ts +18 -0
  57. package/es/elements/HawaTooltip.d.ts +7 -0
  58. package/es/elements/HawaTypography.d.ts +7 -0
  59. package/es/elements/TabPanel.d.ts +8 -0
  60. package/es/elements/index.d.ts +30 -0
  61. package/es/index.d.ts +3 -0
  62. package/es/index.es.js +1 -1
  63. package/es/layout/Box.d.ts +2 -0
  64. package/es/layout/HawaBottomAppBar.d.ts +8 -0
  65. package/es/layout/HawaContainer.d.ts +7 -0
  66. package/es/layout/HawaLayout.d.ts +9 -0
  67. package/es/layout/index.d.ts +4 -0
  68. package/es/stories/ElementsStories/Buttons.stories.d.ts +23 -0
  69. package/es/stories/ElementsStories/Snackbar.stories.d.ts +8 -0
  70. package/es/stories/ElementsStories/Tooltip.stories.d.ts +4 -0
  71. package/es/util.d.ts +4 -0
  72. package/lib/blocks/Account/UserProfileForm.d.ts +8 -0
  73. package/lib/blocks/Account/UserSettingsForm.d.ts +8 -0
  74. package/lib/blocks/Account/index.d.ts +2 -0
  75. package/lib/blocks/AuthForms/AppLanding.d.ts +13 -0
  76. package/lib/blocks/AuthForms/CodeConfirmation.d.ts +10 -0
  77. package/lib/blocks/AuthForms/NewPasswordForm.d.ts +24 -0
  78. package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +18 -0
  79. package/lib/blocks/AuthForms/SignInForm.d.ts +42 -0
  80. package/lib/blocks/AuthForms/SignInPhone.d.ts +12 -0
  81. package/lib/blocks/AuthForms/SignUpForm.d.ts +51 -0
  82. package/lib/blocks/AuthForms/index.d.ts +7 -0
  83. package/lib/blocks/Misc/NotFound.d.ts +4 -0
  84. package/lib/blocks/Misc/index.d.ts +1 -0
  85. package/lib/blocks/Payment/ChargeWalletForm.d.ts +12 -0
  86. package/lib/blocks/Payment/CheckoutForm.d.ts +27 -0
  87. package/lib/blocks/Payment/Confirmation.d.ts +40 -0
  88. package/lib/blocks/Payment/CreditCardForm.d.ts +7 -0
  89. package/lib/blocks/Payment/PayWithWallet.d.ts +8 -0
  90. package/lib/blocks/Payment/SelectPayment.d.ts +26 -0
  91. package/lib/blocks/Payment/index.d.ts +6 -0
  92. package/lib/blocks/Pricing/ComparingPlans.d.ts +7 -0
  93. package/lib/blocks/Pricing/PricingPlans.d.ts +7 -0
  94. package/lib/blocks/Pricing/index.d.ts +2 -0
  95. package/lib/blocks/index.d.ts +4 -0
  96. package/lib/countries.d.ts +2 -0
  97. package/lib/elements/AutoCompleteField.d.ts +8 -0
  98. package/lib/elements/DragDropImages.d.ts +17 -0
  99. package/lib/elements/DraggableCard.d.ts +6 -0
  100. package/lib/elements/HawaAccordian.d.ts +6 -0
  101. package/lib/elements/HawaAdCard.d.ts +10 -0
  102. package/lib/elements/HawaAlert.d.ts +15 -0
  103. package/lib/elements/HawaButton.d.ts +11 -0
  104. package/lib/elements/HawaCheckbox.d.ts +9 -0
  105. package/lib/elements/HawaChip.d.ts +6 -0
  106. package/lib/elements/HawaColorPicker.d.ts +7 -0
  107. package/lib/elements/HawaCopyrights.d.ts +8 -0
  108. package/lib/elements/HawaDrawer.d.ts +13 -0
  109. package/lib/elements/HawaDrawerItem.d.ts +8 -0
  110. package/lib/elements/HawaItemCard.d.ts +11 -0
  111. package/lib/elements/HawaLogoButton.d.ts +9 -0
  112. package/lib/elements/HawaMenu.d.ts +16 -0
  113. package/lib/elements/HawaModal.d.ts +12 -0
  114. package/lib/elements/HawaPanelTabs.d.ts +10 -0
  115. package/lib/elements/HawaPhoneInput.d.ts +11 -0
  116. package/lib/elements/HawaPricingCard.d.ts +15 -0
  117. package/lib/elements/HawaRadio.d.ts +6 -0
  118. package/lib/elements/HawaRange.d.ts +10 -0
  119. package/lib/elements/HawaSearchBar.d.ts +4 -0
  120. package/lib/elements/HawaSelect.d.ts +18 -0
  121. package/lib/elements/HawaSettingsRow.d.ts +7 -0
  122. package/lib/elements/HawaSnackbar.d.ts +9 -0
  123. package/lib/elements/HawaSwitch.d.ts +6 -0
  124. package/lib/elements/HawaTable.d.ts +12 -0
  125. package/lib/elements/HawaTabs.d.ts +8 -0
  126. package/lib/elements/HawaTextField.d.ts +18 -0
  127. package/lib/elements/HawaTooltip.d.ts +7 -0
  128. package/lib/elements/HawaTypography.d.ts +7 -0
  129. package/lib/elements/TabPanel.d.ts +8 -0
  130. package/lib/elements/index.d.ts +30 -0
  131. package/lib/index.d.ts +3 -0
  132. package/lib/index.js +1 -1
  133. package/lib/layout/Box.d.ts +2 -0
  134. package/lib/layout/HawaBottomAppBar.d.ts +8 -0
  135. package/lib/layout/HawaContainer.d.ts +7 -0
  136. package/lib/layout/HawaLayout.d.ts +9 -0
  137. package/lib/layout/index.d.ts +4 -0
  138. package/lib/stories/ElementsStories/Buttons.stories.d.ts +23 -0
  139. package/lib/stories/ElementsStories/Snackbar.stories.d.ts +8 -0
  140. package/lib/stories/ElementsStories/Tooltip.stories.d.ts +4 -0
  141. package/lib/util.d.ts +4 -0
  142. package/package.json +1 -1
  143. package/src/elements/DragDropImages.tsx +32 -26
  144. package/src/elements/HawaMenu.tsx +59 -43
  145. package/src/styles.css +57 -8
  146. package/tailwind.config.js +26 -1
  147. package/tsconfig.json +1 -0
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Box: (props: any) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type BottomAppBarTypes = {
3
+ sx: any;
4
+ color: any;
5
+ appBarContent: any;
6
+ };
7
+ export declare const HawaBottomAppBar: React.FunctionComponent<BottomAppBarTypes>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ type ContainerTypes = {
3
+ maxWidth?: "full" | "small" | "normal";
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const HawaContainer: React.FunctionComponent<ContainerTypes>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type LayoutTypes = {
3
+ logoLink: string;
4
+ username: string;
5
+ userEmail: string;
6
+ drawerItems: any;
7
+ };
8
+ export declare const HawaLayout: React.FunctionComponent<LayoutTypes>;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./Box";
2
+ export * from "./HawaBottomAppBar";
3
+ export * from "./HawaLayout";
4
+ export * from "./HawaContainer";
@@ -0,0 +1,23 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta<import("@storybook/react").Args>;
3
+ export default _default;
4
+ export declare const ButtonVariationsStory: {
5
+ (): JSX.Element;
6
+ storyName: string;
7
+ };
8
+ export declare const ButtonLoadingStory: {
9
+ (): JSX.Element;
10
+ storyName: string;
11
+ };
12
+ export declare const ButtonWidthStory: {
13
+ (): JSX.Element;
14
+ storyName: string;
15
+ };
16
+ export declare const ButtonSizesStory: {
17
+ (): JSX.Element;
18
+ storyName: string;
19
+ };
20
+ export declare const ButtonIconsStory: {
21
+ (): JSX.Element;
22
+ storyName: string;
23
+ };
@@ -0,0 +1,8 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta<import("@storybook/react").Args>;
3
+ export default _default;
4
+ export declare const Plain: any;
5
+ export declare const Success: any;
6
+ export declare const Warning: any;
7
+ export declare const Info: any;
8
+ export declare const Error: any;
@@ -0,0 +1,4 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ declare const _default: Meta<import("@storybook/react").Args>;
3
+ export default _default;
4
+ export declare const Tooltip: Story;
package/lib/util.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare const hexToRgb: (hex: any) => number[];
2
+ declare const getTextColor: (backColor: any) => "#000000" | "#ffffff";
3
+ declare const replaceAt: (string: any, index: any, replacement: any) => any;
4
+ export { hexToRgb, getTextColor, replaceAt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.99",
3
+ "version": "0.0.101",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -96,14 +96,15 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
96
96
  }, [maxSize])
97
97
  const errs = fileRejections.map((rej, i) => {
98
98
  return (
99
- <div key={i}>
100
- <div>{rej.file.name}</div>
101
- <div>{rej.errors[0].code}</div>
102
- </div>
99
+ <HawaAlert
100
+ text={rej.file.name}
101
+ title={rej.errors[0].code}
102
+ severity="error"
103
+ />
103
104
  )
104
105
  })
105
106
  const thumbs = files?.map((file: any, index: any) => (
106
- <div style={{ position: "relative", margin: 10 }}>
107
+ <div className="relative m-3 rounded-lg">
107
108
  <button
108
109
  onClick={(e) => {
109
110
  e.stopPropagation()
@@ -112,7 +113,7 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
112
113
  onDeleteFile(file)
113
114
  }}
114
115
  type="button"
115
- className="absolute left-0 ml-auto inline-flex items-center rounded-lg bg-gray-900 p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
116
+ className="absolute left-0 ml-auto inline-flex items-center rounded-lg rounded-tr-none rounded-bl-none bg-gray-900 p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
116
117
  data-modal-toggle="defaultModal"
117
118
  >
118
119
  <svg
@@ -144,6 +145,7 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
144
145
  backgroundPosition: "center",
145
146
  border: "1px solid black",
146
147
  }}
148
+ className="rounded-lg"
147
149
  key={file.name}
148
150
  />
149
151
  </div>
@@ -165,37 +167,41 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
165
167
  Click here or drop files here to upload
166
168
  </div>
167
169
  <div className="p-1 text-center">Max file size is {max}</div>
168
- {acceptedFiles.length > 0 && (
169
- <HawaButton
170
- style={{ color: "black" }}
171
- onClick={(e) => {
172
- e.stopPropagation()
173
- onClearFiles(acceptedFiles)
174
- }}
175
- >
176
- Clear All
177
- </HawaButton>
178
- )}
179
-
170
+ <div className="flex justify-center ">
171
+ {acceptedFiles.length > 0 && (
172
+ <HawaButton
173
+ // style={{ color: "black" }}
174
+ onClick={(e) => {
175
+ e.stopPropagation()
176
+ onClearFiles(acceptedFiles)
177
+ }}
178
+ >
179
+ Clear All
180
+ </HawaButton>
181
+ )}
182
+ </div>
180
183
  {thumbs && showPreview ? (
181
184
  <aside
182
185
  style={{
183
186
  display: "flex",
184
187
  flexDirection: "row",
185
188
  flexWrap: "wrap",
186
- marginTop: 10,
189
+ // marginTop: 10,
187
190
  }}
191
+ className="rounded-lg border-red-500"
188
192
  >
189
193
  {thumbs}
190
194
  </aside>
191
195
  ) : null}
192
- {fileRejections[0]?.errors[0]?.code === "too-many-files" ? (
193
- <HawaAlert text={texts.tooManyFiles} severity="error" />
194
- ) : fileRejections[0]?.errors[0]?.code === "file-too-large" ? (
195
- <HawaAlert text={texts.fileTooLarge} severity="error" />
196
- ) : (
197
- errs
198
- )}
196
+ <div className="px-2">
197
+ {fileRejections[0]?.errors[0]?.code === "too-many-files" ? (
198
+ <HawaAlert text={texts.tooManyFiles} severity="error" />
199
+ ) : fileRejections[0]?.errors[0]?.code === "file-too-large" ? (
200
+ <HawaAlert text={texts.fileTooLarge} severity="error" />
201
+ ) : (
202
+ errs
203
+ )}
204
+ </div>
199
205
  {}
200
206
  </div>
201
207
  )
@@ -1,3 +1,5 @@
1
+ import clsx from "clsx"
2
+ import React from "react"
1
3
 
2
4
  type MenuTypes = {
3
5
  popMenuID: any
@@ -14,10 +16,11 @@ type MenuTypes = {
14
16
  open: any
15
17
  handleClose: any
16
18
  anchor: any
19
+ children: any
20
+ buttonPosition: "top-right" | "top-left" | "bottom-right" | "bottom-left"
17
21
  }
18
22
 
19
23
  export const HawaMenu: React.FunctionComponent<MenuTypes> = ({
20
- popMenuID,
21
24
  menuItems,
22
25
  withHeader,
23
26
  withIcons,
@@ -25,50 +28,63 @@ export const HawaMenu: React.FunctionComponent<MenuTypes> = ({
25
28
  headerSubtitle,
26
29
  open,
27
30
  handleClose,
31
+ buttonPosition,
32
+ children,
28
33
  }) => {
34
+ let defaultStyles =
35
+ "absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded-lg bg-white shadow transition-all dark:bg-gray-700"
36
+ let positionStyles = {
37
+ "top-right": "top-30 right-0",
38
+ "top-left": "top-30 left-0",
39
+ "bottom-right": "bottom-30 right-0",
40
+ "bottom-left": "bottom-30 left-0",
41
+ }
42
+ let animationStyles = {
43
+ opened: "max-h-72 animate-expandDown",
44
+ closed: "max-h-0 opacity-0 animate-expandUp",
45
+ }
29
46
  return (
30
- <div>
31
- <button
32
- className="w-44 rounded border bg-blue-700 p-2 text-white"
33
- onClick={() => handleClose(!open)}
34
- >
35
- Menu Dropdown
36
- </button>
37
- <div
38
- id={popMenuID}
39
- className={`${
40
- open ? "block" : "hidden"
41
- } z-10 w-44 divide-y divide-gray-100 rounded-lg bg-white shadow dark:bg-gray-700`}
42
- >
43
- {withHeader && (
44
- <div className="py-3 px-4 text-sm text-gray-900 dark:text-white">
45
- <div>{headerTitle}</div>
46
- <div className="truncate font-medium">{headerSubtitle}</div>
47
- </div>
48
- )}
49
- {menuItems.map((group: any) => {
50
- return (
51
- <ul className="py-1 text-sm text-gray-700 dark:text-gray-200">
52
- {group.map((item: any) => {
53
- return (
54
- <li
55
- onClick={item.action}
56
- className={
57
- item.button
58
- ? "mx-1 flex cursor-pointer flex-row items-center rounded-lg bg-primary-500 py-2 px-4 text-white hover:bg-primary-600 rtl:flex-row-reverse dark:hover:bg-primary-600 dark:hover:text-white"
59
- : "mx-1 flex cursor-pointer flex-row items-center rounded-lg py-2 px-4 hover:bg-gray-100 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
60
- }
61
- >
62
- {withIcons && (
63
- <div className="mr-2 rtl:ml-2">{item.icon}</div>
64
- )}
65
- {item.label}
66
- </li>
67
- )
68
- })}
69
- </ul>
70
- )
71
- })}
47
+ <div className="">
48
+ <div className="relative w-fit" onClick={() => handleClose(!open)}>
49
+ {children}
50
+
51
+ <div
52
+ className={clsx(
53
+ defaultStyles,
54
+ positionStyles[buttonPosition],
55
+ open ? animationStyles.opened : animationStyles.closed
56
+ )}
57
+ >
58
+ {withHeader && (
59
+ <div className="py-3 px-4 text-sm text-gray-900 dark:text-white">
60
+ <div>{headerTitle}</div>
61
+ <div className="truncate font-medium">{headerSubtitle}</div>
62
+ </div>
63
+ )}
64
+ {menuItems.map((group: any) => {
65
+ return (
66
+ <ul className="py-1 text-sm text-gray-700 dark:text-gray-200">
67
+ {group.map((item: any) => {
68
+ return (
69
+ <li
70
+ onClick={item.action}
71
+ className={
72
+ item.button
73
+ ? "mx-1 flex cursor-pointer flex-row items-center rounded-lg bg-primary-500 py-2 px-4 text-white hover:bg-primary-600 rtl:flex-row-reverse dark:hover:bg-primary-600 dark:hover:text-white"
74
+ : "mx-1 flex cursor-pointer flex-row items-center rounded-lg py-2 px-4 hover:bg-gray-100 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
75
+ }
76
+ >
77
+ {withIcons && (
78
+ <div className="mr-2 rtl:ml-2">{item.icon}</div>
79
+ )}
80
+ {item.label}
81
+ </li>
82
+ )
83
+ })}
84
+ </ul>
85
+ )
86
+ })}
87
+ </div>
72
88
  </div>
73
89
  </div>
74
90
  )
package/src/styles.css CHANGED
@@ -559,6 +559,9 @@ video {
559
559
  .z-40 {
560
560
  z-index: 40;
561
561
  }
562
+ .m-3 {
563
+ margin: 0.75rem;
564
+ }
562
565
  .m-2 {
563
566
  margin: 0.5rem;
564
567
  }
@@ -702,6 +705,15 @@ video {
702
705
  .h-12 {
703
706
  height: 3rem;
704
707
  }
708
+ .h-96 {
709
+ height: 24rem;
710
+ }
711
+ .max-h-72 {
712
+ max-height: 18rem;
713
+ }
714
+ .max-h-0 {
715
+ max-height: 0px;
716
+ }
705
717
  .max-h-fit {
706
718
  max-height: -moz-fit-content;
707
719
  max-height: fit-content;
@@ -813,6 +825,34 @@ video {
813
825
  .animate-spin {
814
826
  animation: spin 1s linear infinite;
815
827
  }
828
+ @keyframes expandDown {
829
+
830
+ 0% {
831
+ max-height: 0;
832
+ height: 0;
833
+ }
834
+
835
+ 100% {
836
+ max-height: 100px;
837
+ }
838
+ }
839
+ .animate-expandDown {
840
+ animation: expandDown 100ms linear;
841
+ }
842
+ @keyframes expandUp {
843
+
844
+ 0% {
845
+ max-height: 100px;
846
+ }
847
+
848
+ 100% {
849
+ max-height: 0;
850
+ height: 0;
851
+ }
852
+ }
853
+ .animate-expandUp {
854
+ animation: expandUp 100ms linear;
855
+ }
816
856
  .cursor-default {
817
857
  cursor: default;
818
858
  }
@@ -924,6 +964,9 @@ video {
924
964
  .overflow-x-hidden {
925
965
  overflow-x: hidden;
926
966
  }
967
+ .overflow-y-clip {
968
+ overflow-y: clip;
969
+ }
927
970
  .truncate {
928
971
  overflow: hidden;
929
972
  text-overflow: ellipsis;
@@ -972,6 +1015,12 @@ video {
972
1015
  border-top-left-radius: 0px;
973
1016
  border-bottom-left-radius: 0px;
974
1017
  }
1018
+ .rounded-tr-none {
1019
+ border-top-right-radius: 0px;
1020
+ }
1021
+ .rounded-bl-none {
1022
+ border-bottom-left-radius: 0px;
1023
+ }
975
1024
  .rounded-bl-lg {
976
1025
  border-bottom-left-radius: 0.5rem;
977
1026
  }
@@ -1021,6 +1070,10 @@ video {
1021
1070
  --tw-border-opacity: 1;
1022
1071
  border-color: rgb(0 0 0 / var(--tw-border-opacity));
1023
1072
  }
1073
+ .border-red-500 {
1074
+ --tw-border-opacity: 1;
1075
+ border-color: rgb(239 68 68 / var(--tw-border-opacity));
1076
+ }
1024
1077
  .border-gray-200 {
1025
1078
  --tw-border-opacity: 1;
1026
1079
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
@@ -1099,10 +1152,6 @@ video {
1099
1152
  --tw-bg-opacity: 1;
1100
1153
  background-color: rgb(163 208 57 / var(--tw-bg-opacity));
1101
1154
  }
1102
- .bg-blue-700 {
1103
- --tw-bg-opacity: 1;
1104
- background-color: rgb(29 78 216 / var(--tw-bg-opacity));
1105
- }
1106
1155
  .bg-primary-500 {
1107
1156
  --tw-bg-opacity: 1;
1108
1157
  background-color: rgb(61 147 249 / var(--tw-bg-opacity));
@@ -1149,6 +1198,10 @@ video {
1149
1198
  .p-10 {
1150
1199
  padding: 2.5rem;
1151
1200
  }
1201
+ .px-2 {
1202
+ padding-left: 0.5rem;
1203
+ padding-right: 0.5rem;
1204
+ }
1152
1205
  .px-2\.5 {
1153
1206
  padding-left: 0.625rem;
1154
1207
  padding-right: 0.625rem;
@@ -1157,10 +1210,6 @@ video {
1157
1210
  padding-top: 0.125rem;
1158
1211
  padding-bottom: 0.125rem;
1159
1212
  }
1160
- .px-2 {
1161
- padding-left: 0.5rem;
1162
- padding-right: 0.5rem;
1163
- }
1164
1213
  .py-0 {
1165
1214
  padding-top: 0px;
1166
1215
  padding-bottom: 0px;
@@ -23,10 +23,35 @@ module.exports = {
23
23
  "50%": { transform: "scaleY(0)" },
24
24
  "60%": { transform: "scaleY(0)" }
25
25
  // "100%": { transform: "scaleY(1)" },
26
+ },
27
+ expandDown: {
28
+ "0%": {
29
+ // opacity: 0,
30
+ "max-height": 0,
31
+ height: 0
32
+ },
33
+ "100%": {
34
+ // opacity: 1,
35
+ "max-height": 100
36
+ }
37
+ },
38
+ expandUp: {
39
+ "0%": {
40
+ // opacity: 1,
41
+ maxHeight: 100
42
+ },
43
+ "100%": {
44
+ // opacity: 0,
45
+ maxHeight: 0,
46
+ height: 0
47
+ }
26
48
  }
27
49
  },
50
+
28
51
  animation: {
29
- collapsing: "collapse"
52
+ collapse: "collapse",
53
+ expandDown: "expandDown 100ms linear",
54
+ expandUp: "expandUp 100ms linear"
30
55
  },
31
56
  colors: {
32
57
  primary: {
package/tsconfig.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "declaration": true,
3
4
  "target": "es5",
4
5
  "lib": ["dom", "dom.iterable", "esnext"],
5
6
  "allowJs": true,