@xola/ui-kit 3.4.6 → 3.6.0

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 (219) hide show
  1. package/README.md +48 -78
  2. package/build/style.css +1 -0
  3. package/build/theme.css +76 -0
  4. package/build/ui-kit.es.js +16771 -0
  5. package/index.css +96 -4
  6. package/index.d.ts +151 -0
  7. package/package.json +68 -89
  8. package/postcss.config.js +1 -1
  9. package/tailwind.config.js +10 -11
  10. package/build/base.css +0 -2
  11. package/build/components/Alert.d.ts +0 -18
  12. package/build/components/Alert.js +0 -28
  13. package/build/components/Animation/FadeIn.d.ts +0 -13
  14. package/build/components/Animation/FadeIn.js +0 -29
  15. package/build/components/Animation/SlideDown.d.ts +0 -6
  16. package/build/components/Animation/SlideDown.js +0 -20
  17. package/build/components/Avatar.d.ts +0 -16
  18. package/build/components/Avatar.js +0 -21
  19. package/build/components/Badge.d.ts +0 -28
  20. package/build/components/Badge.js +0 -42
  21. package/build/components/Breadcrumb.d.ts +0 -21
  22. package/build/components/Breadcrumb.js +0 -27
  23. package/build/components/Breakdown.d.ts +0 -63
  24. package/build/components/Breakdown.js +0 -89
  25. package/build/components/Buttons/Button.d.ts +0 -53
  26. package/build/components/Buttons/Button.js +0 -83
  27. package/build/components/Buttons/ButtonGroup.d.ts +0 -35
  28. package/build/components/Buttons/ButtonGroup.js +0 -55
  29. package/build/components/Buttons/SubmitButton.d.ts +0 -11
  30. package/build/components/Buttons/SubmitButton.js +0 -83
  31. package/build/components/Buttons/ToggleButton.d.ts +0 -21
  32. package/build/components/Buttons/ToggleButton.js +0 -34
  33. package/build/components/Charts/BaseChartOptions.d.ts +0 -136
  34. package/build/components/Charts/BaseChartOptions.js +0 -95
  35. package/build/components/Charts/HistogramOptions.d.ts +0 -192
  36. package/build/components/Charts/HistogramOptions.js +0 -69
  37. package/build/components/Charts/PieOptions.d.ts +0 -177
  38. package/build/components/Charts/PieOptions.js +0 -55
  39. package/build/components/Counter.d.ts +0 -5
  40. package/build/components/Counter.js +0 -16
  41. package/build/components/DatePicker/DatePicker.d.ts +0 -41
  42. package/build/components/DatePicker/DatePicker.helpers.d.ts +0 -17
  43. package/build/components/DatePicker/DatePicker.helpers.js +0 -22
  44. package/build/components/DatePicker/DatePicker.js +0 -241
  45. package/build/components/DatePicker/DatePickerPopover.d.ts +0 -29
  46. package/build/components/DatePicker/DatePickerPopover.js +0 -81
  47. package/build/components/DatePicker/Day.d.ts +0 -13
  48. package/build/components/DatePicker/Day.js +0 -40
  49. package/build/components/DatePicker/LocalizedDayPicker.d.ts +0 -6
  50. package/build/components/DatePicker/LocalizedDayPicker.js +0 -20
  51. package/build/components/DatePicker/MonthGrid.d.ts +0 -11
  52. package/build/components/DatePicker/MonthGrid.js +0 -52
  53. package/build/components/DatePicker/MonthPicker.d.ts +0 -7
  54. package/build/components/DatePicker/MonthPicker.js +0 -28
  55. package/build/components/DatePicker/MonthSelector.d.ts +0 -8
  56. package/build/components/DatePicker/MonthSelector.js +0 -47
  57. package/build/components/DatePicker/MonthYearSelector.d.ts +0 -8
  58. package/build/components/DatePicker/MonthYearSelector.js +0 -44
  59. package/build/components/DatePicker/NavbarElement.d.ts +0 -15
  60. package/build/components/DatePicker/NavbarElement.js +0 -43
  61. package/build/components/DatePicker/RangeDatePicker.d.ts +0 -25
  62. package/build/components/DatePicker/RangeDatePicker.js +0 -134
  63. package/build/components/DatePicker/RelativeDateRange.d.ts +0 -51
  64. package/build/components/DatePicker/RelativeDateRange.js +0 -280
  65. package/build/components/DatePicker/UpcomingDatePicker.d.ts +0 -11
  66. package/build/components/DatePicker/UpcomingDatePicker.js +0 -27
  67. package/build/components/Dot/Dot.d.ts +0 -24
  68. package/build/components/Dot/Dot.js +0 -24
  69. package/build/components/Dot/DotProgress.d.ts +0 -6
  70. package/build/components/Dot/DotProgress.js +0 -10
  71. package/build/components/Drawer.d.ts +0 -28
  72. package/build/components/Drawer.js +0 -126
  73. package/build/components/Forms/BaseInput.d.ts +0 -20
  74. package/build/components/Forms/BaseInput.js +0 -41
  75. package/build/components/Forms/Checkbox.d.ts +0 -10
  76. package/build/components/Forms/Checkbox.js +0 -34
  77. package/build/components/Forms/Checkbox.module.css.js +0 -7
  78. package/build/components/Forms/ComboBox.d.ts +0 -8
  79. package/build/components/Forms/ComboBox.js +0 -41
  80. package/build/components/Forms/FormGroup.d.ts +0 -5
  81. package/build/components/Forms/FormGroup.js +0 -6
  82. package/build/components/Forms/InlineValuePopover.d.ts +0 -17
  83. package/build/components/Forms/InlineValuePopover.js +0 -47
  84. package/build/components/Forms/Input.d.ts +0 -6
  85. package/build/components/Forms/Input.js +0 -9
  86. package/build/components/Forms/Label.d.ts +0 -7
  87. package/build/components/Forms/Label.js +0 -17
  88. package/build/components/Forms/RangeSlider.d.ts +0 -33
  89. package/build/components/Forms/RangeSlider.js +0 -39
  90. package/build/components/Forms/Select.d.ts +0 -5
  91. package/build/components/Forms/Select.js +0 -8
  92. package/build/components/Forms/Switch.d.ts +0 -46
  93. package/build/components/Forms/Switch.js +0 -62
  94. package/build/components/Forms/Textarea.d.ts +0 -6
  95. package/build/components/Forms/Textarea.js +0 -35
  96. package/build/components/Forms/ValuePopoverText.d.ts +0 -6
  97. package/build/components/Forms/ValuePopoverText.js +0 -10
  98. package/build/components/GooglePlacesAutocomplete.d.ts +0 -14
  99. package/build/components/HeaderToolbar.d.ts +0 -21
  100. package/build/components/HeaderToolbar.js +0 -33
  101. package/build/components/ImageUpload.d.ts +0 -17
  102. package/build/components/ImageUpload.js +0 -86
  103. package/build/components/Key.d.ts +0 -6
  104. package/build/components/Key.js +0 -28
  105. package/build/components/Logo.d.ts +0 -19
  106. package/build/components/Logo.js +0 -10
  107. package/build/components/Modal.d.ts +0 -52
  108. package/build/components/Modal.js +0 -126
  109. package/build/components/Popover/Popover.d.ts +0 -20
  110. package/build/components/Popover/Popover.js +0 -50
  111. package/build/components/Popover/Popover.module.css.js +0 -7
  112. package/build/components/Popover/PopoverList.d.ts +0 -25
  113. package/build/components/Popover/PopoverList.js +0 -59
  114. package/build/components/Popover/PopoverScroll.module.css.js +0 -4
  115. package/build/components/Provider.d.ts +0 -18
  116. package/build/components/Provider.js +0 -17
  117. package/build/components/Screens/Login.d.ts +0 -25
  118. package/build/components/Screens/Login.js +0 -144
  119. package/build/components/Search.d.ts +0 -16
  120. package/build/components/Search.js +0 -174
  121. package/build/components/Sidebar/Sidebar.Account.d.ts +0 -13
  122. package/build/components/Sidebar/Sidebar.Account.js +0 -56
  123. package/build/components/Sidebar/Sidebar.Button.d.ts +0 -10
  124. package/build/components/Sidebar/Sidebar.Button.js +0 -21
  125. package/build/components/Sidebar/Sidebar.Footer.d.ts +0 -8
  126. package/build/components/Sidebar/Sidebar.Footer.js +0 -9
  127. package/build/components/Sidebar/Sidebar.Heading.d.ts +0 -10
  128. package/build/components/Sidebar/Sidebar.Heading.js +0 -10
  129. package/build/components/Sidebar/Sidebar.Link.d.ts +0 -24
  130. package/build/components/Sidebar/Sidebar.Link.js +0 -56
  131. package/build/components/Sidebar/Sidebar.Menu.d.ts +0 -10
  132. package/build/components/Sidebar/Sidebar.Menu.js +0 -28
  133. package/build/components/Sidebar/Sidebar.Menu.module.css.js +0 -7
  134. package/build/components/Sidebar/Sidebar.d.ts +0 -58
  135. package/build/components/Sidebar/Sidebar.js +0 -219
  136. package/build/components/Sidebar/SidebarScroll.module.css.js +0 -4
  137. package/build/components/Sidebar/index.d.ts +0 -8
  138. package/build/components/Skeleton.d.ts +0 -13
  139. package/build/components/Skeleton.js +0 -29
  140. package/build/components/Skeleton.module.css.js +0 -7
  141. package/build/components/Spinner.d.ts +0 -26
  142. package/build/components/Spinner.js +0 -27
  143. package/build/components/Table.d.ts +0 -59
  144. package/build/components/Table.js +0 -71
  145. package/build/components/Tabs/Tabs.Panel.d.ts +0 -9
  146. package/build/components/Tabs/Tabs.Panel.js +0 -7
  147. package/build/components/Tabs/Tabs.Tab.d.ts +0 -19
  148. package/build/components/Tabs/Tabs.Tab.js +0 -37
  149. package/build/components/Tabs/Tabs.d.ts +0 -27
  150. package/build/components/Tabs/Tabs.js +0 -28
  151. package/build/components/Tabs/index.d.ts +0 -4
  152. package/build/components/Tag.d.ts +0 -25
  153. package/build/components/Tag.js +0 -36
  154. package/build/components/Tooltip.d.ts +0 -8
  155. package/build/components/Tooltip.js +0 -8
  156. package/build/components/Utilities/Currency.d.ts +0 -32
  157. package/build/components/Utilities/Currency.js +0 -49
  158. package/build/components/Utilities/Number.d.ts +0 -8
  159. package/build/components/Utilities/Number.js +0 -15
  160. package/build/components/Utilities/Phone.d.ts +0 -8
  161. package/build/components/Utilities/Phone.js +0 -19
  162. package/build/full.css +0 -2
  163. package/build/helpers/avatar.d.ts +0 -1
  164. package/build/helpers/avatar.js +0 -8
  165. package/build/helpers/browser.d.ts +0 -2
  166. package/build/helpers/browser.js +0 -9
  167. package/build/helpers/children.d.ts +0 -3
  168. package/build/helpers/children.js +0 -6
  169. package/build/helpers/classnames.d.ts +0 -5
  170. package/build/helpers/currency.d.ts +0 -2
  171. package/build/helpers/currency.js +0 -11
  172. package/build/helpers/date.d.ts +0 -12
  173. package/build/helpers/date.js +0 -49
  174. package/build/helpers/flash.d.ts +0 -21
  175. package/build/helpers/flash.js +0 -87
  176. package/build/helpers/numbers.d.ts +0 -4
  177. package/build/helpers/numbers.js +0 -23
  178. package/build/helpers/phone.d.ts +0 -11
  179. package/build/helpers/phone.js +0 -25
  180. package/build/hooks/useId.d.ts +0 -1
  181. package/build/hooks/useId.js +0 -9
  182. package/build/hooks/useIsClient.d.ts +0 -1
  183. package/build/hooks/useIsClient.js +0 -10
  184. package/build/hooks/useViewportHeight.d.ts +0 -1
  185. package/build/hooks/useViewportHeight.js +0 -15
  186. package/build/icons/src/AnnounceIcon.js +0 -13
  187. package/build/icons/src/BellIcon.js +0 -27
  188. package/build/icons/src/CalendarIcon.js +0 -16
  189. package/build/icons/src/CheckIcon.js +0 -8
  190. package/build/icons/src/ChevronDownIcon.js +0 -8
  191. package/build/icons/src/ChevronLeftIcon.js +0 -8
  192. package/build/icons/src/ChevronRightIcon.js +0 -8
  193. package/build/icons/src/CircleNotch.js +0 -6
  194. package/build/icons/src/CloseIcon.js +0 -11
  195. package/build/icons/src/DownArrowIcon.js +0 -16
  196. package/build/icons/src/ImageIcon.js +0 -27
  197. package/build/icons/src/SearchIcon.js +0 -16
  198. package/build/icons/src/TrashIcon.js +0 -20
  199. package/build/icons/src/WarningDiamondIcon.js +0 -27
  200. package/build/icons/src/helpers/classnames.js +0 -8
  201. package/build/icons/src/helpers/icon.js +0 -11
  202. package/build/icons/src/helpers/iconSizes.js +0 -13
  203. package/build/icons/src/images/XolaLogoSimple.js +0 -14
  204. package/build/index.d.ts +0 -66
  205. package/build/index.js +0 -142
  206. package/build/theme.d.ts +0 -413
  207. package/build/theme.js +0 -372
  208. package/build/types/index.d.ts +0 -22
  209. package/build/types/migration.d.ts +0 -2
  210. package/build/ui-kit.css +0 -1
  211. package/build/utils/avatar.d.ts +0 -1
  212. package/build/utils/avatar.js +0 -8
  213. package/build/utils/currency.d.ts +0 -2
  214. package/build/utils/currency.js +0 -11
  215. package/build/utils/index.d.ts +0 -4
  216. package/build/utils/numbers.d.ts +0 -4
  217. package/build/utils/numbers.js +0 -19
  218. package/build/utils/phone.d.ts +0 -2
  219. package/build/utils/phone.js +0 -17
package/index.css CHANGED
@@ -1,7 +1,99 @@
1
- /* Full Tailwind setup for Storybook development */
2
- /* Base styles imported from src/base.css (single source of truth) */
3
- @import "./src/base.css";
1
+ @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
2
+ @import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap");
4
3
 
5
- /* Components and utilities for Storybook - consuming apps provide their own */
4
+ @tailwind base;
6
5
  @tailwind components;
7
6
  @tailwind utilities;
7
+
8
+ @layer base {
9
+ :root {
10
+ /* https://rsms.me/inter/#usage */
11
+ font-feature-settings:
12
+ "liga" 1,
13
+ "calt" 1; /* fix for Chrome */
14
+ }
15
+
16
+ html {
17
+ /* Never change this default! */
18
+ @apply text-black text-base;
19
+ }
20
+
21
+ /* For testing advanced typographic features */
22
+ .font-ligatures {
23
+ font-feature-settings:
24
+ "liga" 1,
25
+ "calt" 1,
26
+ "dlig" 1,
27
+ "ss03" 1,
28
+ "ss02" 1 !important;
29
+ }
30
+
31
+ a {
32
+ @apply text-primary hover:underline;
33
+ }
34
+
35
+ button:focus {
36
+ @apply outline-none;
37
+ }
38
+
39
+ h1 {
40
+ @apply text-2xl; /* 24px */
41
+ @apply font-bold;
42
+ @apply leading-p1 tracking-tightest;
43
+ }
44
+
45
+ h2 {
46
+ @apply text-xl; /* 21px */
47
+ @apply font-bold;
48
+ @apply leading-p1 tracking-tightest;
49
+ }
50
+
51
+ h3 {
52
+ @apply text-lg; /* 18px */
53
+ @apply font-bold;
54
+ @apply tracking-tightest;
55
+ }
56
+
57
+ h4 {
58
+ @apply text-md; /* 16 px */
59
+ @apply leading-p2 tracking-tightest;
60
+ }
61
+
62
+ h5 {
63
+ @apply text-base; /* 14 px */
64
+ @apply leading-p2 tracking-tightest;
65
+ }
66
+
67
+ h6 {
68
+ @apply text-sm; /* 14 px */
69
+ @apply leading-p3 tracking-tightest;
70
+ }
71
+
72
+ .p1 {
73
+ @apply text-md; /* 16px */
74
+ @apply leading-p1 tracking-tightest;
75
+ }
76
+
77
+ .p2 {
78
+ @apply text-base; /* 14px */
79
+ @apply leading-p2 tracking-tightest;
80
+ }
81
+
82
+ .p3 {
83
+ @apply text-sm; /* 12px */
84
+ @apply leading-p3 tracking-tightest;
85
+ }
86
+
87
+ .ui-badge .icon {
88
+ position: relative;
89
+ top: -1px;
90
+ }
91
+
92
+ sup {
93
+ top: -7px;
94
+ }
95
+
96
+ .font-bold {
97
+ @apply antialiased;
98
+ }
99
+ }
package/index.d.ts ADDED
@@ -0,0 +1,151 @@
1
+ // This is just to make the auto-import work.
2
+ // Next step is to add types for the props.
3
+ export {
4
+ Alert,
5
+ almostZero,
6
+ AppStoreBadge,
7
+ Avatar,
8
+ Badge,
9
+ BalloonIcon,
10
+ BankCheckIcon,
11
+ BarGraphIcon,
12
+ BaseInput,
13
+ BellIcon,
14
+ BookIcon,
15
+ BookmarkIcon,
16
+ BottomSheet,
17
+ BoxIcon,
18
+ BugIcon,
19
+ Breadcrumb,
20
+ Breakdown,
21
+ Button,
22
+ ButtonGroup,
23
+ CakeIcon,
24
+ CalendarDayIcon,
25
+ CalendarIcon,
26
+ CalendarListIcon,
27
+ CalendarMonthIcon,
28
+ CalendarWeekIcon,
29
+ CapacityIcon,
30
+ CardAltIcon,
31
+ CardIcon,
32
+ CartIcon,
33
+ CashIcon,
34
+ Checkbox,
35
+ CircleNotch,
36
+ CirclePauseIcon,
37
+ CirclePlusIcon,
38
+ CircleSubtractIcon,
39
+ ClipboardIcon,
40
+ ClockAltIcon,
41
+ ClockIcon,
42
+ ClockManualIcon,
43
+ CloseCircleIcon,
44
+ CloseIcon,
45
+ CollapseIcon,
46
+ CollectionIcon,
47
+ ComboBox,
48
+ compactNumber,
49
+ Counter,
50
+ Currency,
51
+ CustomizeColumnsIcon,
52
+ DashboardIcon,
53
+ dateFromObjectId,
54
+ DatePicker,
55
+ DatePickerPopover,
56
+ Dot,
57
+ DotProgress,
58
+ Drawer,
59
+ FadeIn,
60
+ flash,
61
+ formatDate,
62
+ formatTime,
63
+ FormGroup,
64
+ getChildByType,
65
+ getChildrenByType,
66
+ getInitials,
67
+ getSymbol,
68
+ HeaderToolbar,
69
+ ImageUpload,
70
+ InlineValuePopover,
71
+ Input,
72
+ isOSX,
73
+ isZeroDecimal,
74
+ ItemsIcon,
75
+ Key,
76
+ Label,
77
+ Login,
78
+ Logo,
79
+ Modal,
80
+ MoneyAddIcon,
81
+ MoneyBackIcon,
82
+ MoneyIcon,
83
+ MountainIcon,
84
+ MonthPicker,
85
+ MouseIcon,
86
+ Number,
87
+ numberFormat,
88
+ Phone,
89
+ PlayMarketBadge,
90
+ Popover,
91
+ PopoverList,
92
+ Provider,
93
+ RangeSlider,
94
+ RelativeDateRange,
95
+ roundNumber,
96
+ RulerIcon,
97
+ ScanQrCodeIcon,
98
+ Search,
99
+ Select,
100
+ Sidebar,
101
+ Skeleton,
102
+ SlideDown,
103
+ Spinner,
104
+ SplitArrowIcon,
105
+ SplitPaymentIcon,
106
+ SquareIcon,
107
+ StackIcon,
108
+ StarFilledIcon,
109
+ StarIcon,
110
+ StoreCreditIcon,
111
+ SubmitButton,
112
+ Switch,
113
+ Table,
114
+ Tabs,
115
+ Tag,
116
+ TaxIcon,
117
+ TableIcon,
118
+ Textarea,
119
+ theme,
120
+ Tooltip,
121
+ ToggleButton,
122
+ TransferArrowIcon,
123
+ TranslationIcon,
124
+ TrashIcon,
125
+ TutorialsBadgeIcon,
126
+ TutorialsButtonIcon,
127
+ TutorialsSquareIcon,
128
+ UnlinkIcon,
129
+ useIsClient,
130
+ useIsMobile,
131
+ useViewportHeight,
132
+ UserAddIcon,
133
+ UserChangedIcon,
134
+ UserIcon,
135
+ UserSubtractIcon,
136
+ ValuePopoverText,
137
+ VariantIcon,
138
+ VerifiedTickIcon,
139
+ VeteranIcon,
140
+ ViewNotesIcon,
141
+ VoucherIcon,
142
+ WaitlistIcon,
143
+ WarningDiamondIcon,
144
+ WarningIcon,
145
+ WarningTriangleIcon,
146
+ WeightIcon,
147
+ WifiIcon,
148
+ WriteIcon,
149
+ XolaBotIcon,
150
+ XrayIcon,
151
+ } from "./build/ui-kit.es";
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@xola/ui-kit",
3
- "version": "3.4.6",
3
+ "version": "3.6.0",
4
4
  "description": "Xola UI Kit",
5
- "type": "module",
6
5
  "license": "MIT",
7
6
  "repository": {
8
7
  "type": "git",
@@ -11,116 +10,96 @@
11
10
  "files": [
12
11
  "build",
13
12
  "index.css",
13
+ "index.d.ts",
14
14
  "tailwind.config.js",
15
- "postcss.config.js"
15
+ "postcss.config.js",
16
+ "ui-kit.es.js"
16
17
  ],
17
- "sideEffects": [
18
- "*.css"
19
- ],
20
- "exports": {
21
- ".": {
22
- "types": "./build/index.d.ts",
23
- "import": "./build/index.js"
24
- },
25
- "./index.css": "./build/full.css",
26
- "./build/base.css": "./build/base.css",
27
- "./build/full.css": "./build/full.css",
28
- "./build/ui-kit.css": "./build/ui-kit.css",
29
- "./tailwind.config.js": "./tailwind.config.js",
30
- "./tailwind.config": "./tailwind.config.js",
31
- "./postcss.config.js": "./postcss.config.js",
32
- "./postcss.config": "./postcss.config.js"
33
- },
34
- "module": "./build/index.js",
35
- "types": "./build/index.d.ts",
18
+ "main": "build/ui-kit.es.js",
19
+ "module": "build/ui-kit.es.js",
20
+ "types": "build/index.d.ts",
36
21
  "scripts": {
37
- "prepare": "node scripts/prepare.mjs && NODE_ENV=production vite build --mode production && node scripts/compileBaseCss.mjs",
22
+ "prepare": "node scripts/prepare && vite build",
38
23
  "start": "./scripts/storybook",
39
- "dev": "npm start",
40
- "dev:clean": "./scripts/storybook --no-manager-cache",
24
+ "dev": "./scripts/storybook",
25
+ "build": "npm run prepare && vite build && cp index.d.ts build",
26
+ "build:storybook": "npm run build && ./scripts/storybook build",
41
27
  "clean": "rm -rf node_modules/.vite",
42
- "build": "npm run prepare",
43
- "storybook": "npm run prepare && ./scripts/storybook",
44
- "build:storybook": "npm run prepare && ./scripts/storybook build",
45
- "type-check": "tsc --noEmit",
28
+ "lint": "xola-lint src",
29
+ "lint:fix": "xola-lint src --fix",
30
+ "lint:report": "xola-lint src --reporter=json src > eslint_report.json",
46
31
  "format": "prettier -l --write src",
47
- "lint": "eslint --cache --fix src",
48
- "lint:ci": "eslint --cache src",
49
- "lint:report": "eslint src --cache --output-file eslint_report.json --format json",
50
- "test": "vitest",
51
- "test:ui": "vitest --ui",
52
- "test:coverage": "vitest --coverage",
32
+ "test": "vitest run",
53
33
  "chromatic": "chromatic --exit-zero-on-changes --build-script-name build:storybook"
54
34
  },
55
35
  "dependencies": {
56
- "@headlessui/react": "1.6",
57
- "@tailwindcss/forms": "^0.5.6",
36
+ "@headlessui/react": "1.7",
37
+ "@tailwindcss/forms": "^0.5.11",
58
38
  "@tailwindcss/line-clamp": "^0.4.4",
59
39
  "@tippyjs/react": "^4.2.6",
60
- "ahooks": "^3.9.6",
61
- "axios": "^1.13.2",
62
- "clsx": "^2.1.1",
63
- "dayjs": "^1.11.19",
40
+ "clsx": "^1.2.1",
41
+ "dayjs": "^1.11.21",
64
42
  "downshift": "^6.1.12",
65
43
  "get-user-locale": "^1.5.1",
66
- "libphonenumber-js": "^1.12.31",
67
- "lodash-es": "^4.17.21",
68
- "nouislider-react": "^3.4.1",
69
- "react-day-picker": "^9.12.0",
70
- "react-hot-toast": "^2.4.1",
44
+ "google-libphonenumber": "^3.2.44",
45
+ "lodash-es": "^4.18.1",
46
+ "nouislider-react": "^3.4.2",
47
+ "prop-types": "^15.8.1",
48
+ "react": "^18.3.1",
49
+ "react-day-picker": "^7.4.10",
50
+ "react-dom": "^18.3.1",
51
+ "react-hot-toast": "^2.6.0",
71
52
  "react-hotkeys-hook": "^3.4.7",
72
- "react-select": "^5.8.1",
73
- "react-textarea-autosize": "^8.5.3",
74
- "react18-json-view": "^0.2.8",
75
- "tailwind-merge": "^2.5.5",
53
+ "react-select": "^5.10.2",
54
+ "react-textarea-autosize": "^8.5.9",
55
+ "react18-json-view": "^0.2.10",
56
+ "tailwind-merge": "^2.6.1",
76
57
  "tippy.js": "^6.3.7",
58
+ "ahooks": "^3.9.6",
59
+ "axios": "^1.13.2",
77
60
  "use-debounce": "^10.0.6"
78
61
  },
79
62
  "devDependencies": {
80
- "@babel/core": "^7.14.8",
81
- "@babel/preset-env": "^7.15.6",
82
- "@storybook/addon-docs": "9.1.16",
83
- "@storybook/addon-links": "9.1.16",
84
- "@storybook/react-vite": "9.1.16",
85
- "@testing-library/jest-dom": "^6.0.0",
86
- "@testing-library/react": "^14.0.0",
87
- "@types/lodash-es": "^4.17.12",
88
- "@types/node": "^24.10.1",
89
- "@types/react": "^18.3.27 || ^19.0.0",
90
- "@types/react-dom": "^18.3.7 || ^19.0.0",
91
- "@vitejs/plugin-react": "^5.1.1",
92
- "@vitest/coverage-v8": "^2.1.1",
93
- "@vitest/ui": "^2.1.1",
94
- "@xola/icons": "^1.2.4",
95
- "@xola/jslint": "^3.2.0",
96
- "ajv": "^8.17.1",
97
- "autoprefixer": "^10.4.20",
98
- "babel-loader": "^8.2.2",
99
- "chromatic": "^6.11.4",
100
- "eslint": "^9.39.1",
101
- "eslint-plugin-progress": "github:rushi/eslint-plugin-progress",
102
- "glob": "^13.0.0",
103
- "jsdom": "^23.0.0",
104
- "postcss": "8.4",
105
- "prettier": "^3.3.3",
106
- "prettier-plugin-tailwindcss": "^0.4.1",
107
- "react": "^18.3.1",
108
- "react-dom": "^18.3.1",
109
- "storybook": "9.1.16",
110
- "storybook-addon-designs": "^6.3.1",
63
+ "@babel/core": "^7.29.7",
64
+ "@babel/preset-env": "^7.29.7",
65
+ "@babel/preset-react": "^7.29.7",
66
+ "@babel/preset-typescript": "^7.29.7",
67
+ "@storybook/addon-actions": "8.6.18",
68
+ "@storybook/addon-essentials": "8.6.18",
69
+ "@storybook/addon-links": "8.6.18",
70
+ "@storybook/addon-styling-webpack": "^1.0.1",
71
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
72
+ "@storybook/manager-api": "^8.6.18",
73
+ "@storybook/react": "8.6.18",
74
+ "@storybook/react-webpack5": "^8.6.18",
75
+ "@storybook/test": "^8.6.18",
76
+ "@storybook/theming": "8.6.18",
77
+ "@types/react": "^18.3.31",
78
+ "@types/react-dom": "^18.3.7",
79
+ "@xola/jslint": "^3.0.1",
80
+ "autoprefixer": "^10.5.2",
81
+ "babel-loader": "^8.4.1",
82
+ "chromatic": "^6.24.1",
83
+ "css-loader": "^7.1.4",
84
+ "postcss": "8.5",
85
+ "postcss-loader": "^8.2.1",
86
+ "prettier": "^3.9.5",
87
+ "prettier-plugin-tailwindcss": "^0.8.0",
88
+ "storybook": "^8.6.18",
89
+ "style-loader": "^4.0.0",
111
90
  "tailwindcss": "3.4",
112
- "typescript": "5.7",
113
- "vite": "^6.4.1",
114
- "vite-plugin-dts": "^4.5.4",
115
- "vitest": "^2.1.1"
91
+ "typescript": "4.9",
92
+ "vite": "^5.4.21",
93
+ "vitest": "^2.1.9",
94
+ "webpack": "^5.108.4"
116
95
  },
117
96
  "peerDependencies": {
97
+ "@types/react": "^18.2.22",
98
+ "@types/react-dom": "^18.2.7",
118
99
  "autoprefixer": "^10.3.1",
119
100
  "postcss": "^8.3.6",
120
- "react": "^18.3.1 || ^19.0.0",
121
- "react-dom": "^18.3.1 || ^19.0.0",
122
- "tailwindcss": "^3.4",
123
- "vite": "^6.4.1"
101
+ "tailwindcss": "^3.1.8",
102
+ "vite": "^5.4.11"
124
103
  },
125
104
  "engines": {
126
105
  "node": ">=20"
package/postcss.config.js CHANGED
@@ -1,4 +1,4 @@
1
- export default {
1
+ module.exports = {
2
2
  plugins: {
3
3
  tailwindcss: {},
4
4
  autoprefixer: {},
@@ -1,9 +1,5 @@
1
- import defaultTheme from "tailwindcss/defaultTheme.js";
2
- import forms from "@tailwindcss/forms";
3
- import path from "path";
4
- import { fileURLToPath } from "url";
5
-
6
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
1
+ const defaultTheme = require("tailwindcss/defaultTheme");
2
+ const path = require("path");
7
3
 
8
4
  const colors = {
9
5
  transparent: "transparent",
@@ -21,6 +17,7 @@ const colors = {
21
17
  },
22
18
 
23
19
  blue: {
20
+ medium: "#B0C7F1",
24
21
  lighter: "#D1E1FF",
25
22
  light: "#2979D0",
26
23
  DEFAULT: "#1352C6",
@@ -128,11 +125,13 @@ const spacing = {
128
125
  200: "800px",
129
126
  };
130
127
 
131
- export default {
128
+ module.exports = {
132
129
  content: [
133
- "./src/**/*.{js,jsx,ts,tsx}",
134
- "!./src/**/node_modules",
135
- path.join(__dirname, "build/**/*.js"),
130
+ "./src/**/*.js",
131
+ "./src/**/*.jsx",
132
+ "./src/**/*.ts",
133
+ "./src/**/*.tsx",
134
+ path.join(__dirname, "build/ui-kit.es.js"),
136
135
  ],
137
136
 
138
137
  theme: {
@@ -241,5 +240,5 @@ export default {
241
240
  },
242
241
  },
243
242
 
244
- plugins: [forms],
243
+ plugins: [require("@tailwindcss/forms")],
245
244
  };
package/build/base.css DELETED
@@ -1,2 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap");*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }
2
- /*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:InterVariable,Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:Roboto Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}:root{font-feature-settings:"liga" 1,"calt" 1}html{font-size:14px;color:rgb(34 35 36/var(--tw-text-opacity,1))}a,html{--tw-text-opacity:1}a{color:rgb(19 82 198/var(--tw-text-opacity,1))}a:hover{text-decoration-line:underline}button:focus{outline:2px solid transparent;outline-offset:2px}h1{font-size:24px}h1,h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;line-height:130%;letter-spacing:-.4px}h2{font-size:21px}h3{font-size:18px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;letter-spacing:-.4px}h4{font-size:16px}h4,h5{line-height:130%;letter-spacing:-.4px}h5{font-size:14px}h6{font-size:12px;line-height:110%;letter-spacing:-.4px}.p1{font-size:16px}.p1,.p2{line-height:130%;letter-spacing:-.4px}.p2{font-size:14px}.p3{font-size:12px;line-height:110%;letter-spacing:-.4px}.ui-badge .icon{position:relative;top:-1px}sup{top:-7px}.font-bold{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const colors: {
3
- readonly primary: "bg-primary-lighter text-black";
4
- readonly secondary: "bg-secondary-lighter text-black";
5
- readonly success: "bg-success-lighter text-black";
6
- readonly warning: "bg-warning-lighter text-black";
7
- readonly danger: "bg-danger-lighter text-black";
8
- readonly caution: "bg-caution-lighter text-black";
9
- };
10
- type AlertColor = keyof typeof colors;
11
- export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
12
- color?: AlertColor;
13
- children: React.ReactNode;
14
- className?: string;
15
- onClose?: () => void;
16
- }
17
- export declare const Alert: ({ color, children, className, onClose, ...rest }: AlertProps) => React.JSX.Element;
18
- export {};
@@ -1,28 +0,0 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import s from "clsx";
3
- import { CloseIcon as n } from "../icons/src/CloseIcon.js";
4
- const o = {
5
- primary: "bg-primary-lighter text-black",
6
- secondary: "bg-secondary-lighter text-black",
7
- success: "bg-success-lighter text-black",
8
- warning: "bg-warning-lighter text-black",
9
- danger: "bg-danger-lighter text-black",
10
- caution: "bg-caution-lighter text-black"
11
- }, u = ({ color: r = "primary", children: a, className: l, onClose: e, ...c }) => /* @__PURE__ */ i(
12
- "div",
13
- {
14
- className: s(
15
- "ui-alert flex items-start rounded px-3 py-3 text-base leading-4",
16
- o[r],
17
- l
18
- ),
19
- ...c,
20
- children: [
21
- /* @__PURE__ */ t("span", { className: "ui-alert-content w-full leading-p1", children: a }),
22
- e ? /* @__PURE__ */ t("button", { type: "button", className: "ui-alert-close ml-3 cursor-pointer hover:text-gray-dark", children: /* @__PURE__ */ t(n, { onClick: e }) }) : null
23
- ]
24
- }
25
- );
26
- export {
27
- u as Alert
28
- };
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface FadeInProps {
3
- [key: string]: any;
4
- shouldShow?: boolean;
5
- shouldAppear?: boolean;
6
- tag?: React.ElementType;
7
- enter?: string;
8
- enterFrom?: string;
9
- enterTo?: string;
10
- children?: React.ReactNode;
11
- className?: string;
12
- }
13
- export declare const FadeIn: ({ shouldShow, shouldAppear, tag, enter, enterFrom, enterTo, children, className, ...rest }: FadeInProps) => React.JSX.Element;
@@ -1,29 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { Transition as m } from "@headlessui/react";
3
- const y = ({
4
- shouldShow: t = !0,
5
- shouldAppear: o = !0,
6
- tag: r = "div",
7
- enter: i = "transition-opacity duration-700",
8
- enterFrom: a = "opacity-0",
9
- enterTo: n = "opacity-100",
10
- children: p,
11
- className: e,
12
- ...s
13
- }) => /* @__PURE__ */ c(
14
- m,
15
- {
16
- show: t,
17
- appear: o,
18
- as: r,
19
- className: e,
20
- enter: i,
21
- enterFrom: a,
22
- enterTo: n,
23
- ...s,
24
- children: p
25
- }
26
- );
27
- export {
28
- y as FadeIn
29
- };
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface SlideDownProps {
3
- isOpen?: boolean;
4
- children?: React.ReactNode;
5
- }
6
- export declare const SlideDown: ({ isOpen, children }: SlideDownProps) => React.JSX.Element;
@@ -1,20 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Transition as o } from "@headlessui/react";
3
- const i = ({ isOpen: r, children: a }) => /* @__PURE__ */ t("div", { className: "overflow-hidden", children: /* @__PURE__ */ t(
4
- o,
5
- {
6
- show: r,
7
- appear: r,
8
- as: "div",
9
- enter: "transition-all duration-500",
10
- enterFrom: "transform -translate-y-full opacity-0",
11
- enterTo: "transform translate-y-0 opacity-100",
12
- leave: "transition duration-500",
13
- leaveFrom: "transform translate-y-0 opacity-100",
14
- leaveTo: "transform -translate-y-full opacity-0",
15
- children: a
16
- }
17
- ) });
18
- export {
19
- i as SlideDown
20
- };
@@ -1,16 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const sizes: {
3
- readonly tiny: "h-7 w-7 text-base";
4
- readonly small: "h-10 w-10 text-base";
5
- readonly medium: "h-12 w-12 text-md";
6
- readonly large: "h-15 w-15 text-xl";
7
- };
8
- type AvatarSize = keyof typeof sizes;
9
- export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
10
- name?: string;
11
- color?: string;
12
- size?: AvatarSize;
13
- className?: string;
14
- }
15
- export declare const Avatar: ({ name, color, size, className, ...rest }: AvatarProps) => React.JSX.Element;
16
- export {};