aristid-ds 0.9.1 → 0.10.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 (231) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/README.md +3 -3
  3. package/dist/Kit/Ant/index.d.ts +68 -0
  4. package/dist/Kit/App/index.d.ts +1 -0
  5. package/dist/Kit/App/index.js +27 -0
  6. package/dist/Kit/DataDisplay/Avatar/Avatar.js +25 -0
  7. package/dist/Kit/DataDisplay/Avatar/AvatarGroup.js +29 -0
  8. package/dist/Kit/DataDisplay/Avatar/index.js +7 -0
  9. package/dist/Kit/DataDisplay/Avatar/types.d.ts +1 -1
  10. package/dist/Kit/DataDisplay/Badge/index.js +44 -0
  11. package/dist/Kit/DataDisplay/Badge/types.d.ts +1 -1
  12. package/dist/Kit/DataDisplay/Card/index.d.ts +1 -1
  13. package/dist/Kit/DataDisplay/Card/index.js +188 -0
  14. package/dist/Kit/DataDisplay/Card/types.d.ts +25 -24
  15. package/dist/Kit/DataDisplay/Collapse/Collapse.js +156 -0
  16. package/dist/Kit/DataDisplay/Collapse/Header.js +62 -0
  17. package/dist/Kit/DataDisplay/Collapse/HeaderExtra.js +46 -0
  18. package/dist/Kit/DataDisplay/Collapse/index.js +8 -0
  19. package/dist/Kit/DataDisplay/Collapse/types.d.ts +32 -6
  20. package/dist/Kit/DataDisplay/Image/index.js +31 -0
  21. package/dist/Kit/DataDisplay/ItemCard/ColorBar.js +31 -0
  22. package/dist/Kit/DataDisplay/ItemCard/index.js +382 -0
  23. package/dist/Kit/DataDisplay/ItemList/index.js +271 -0
  24. package/dist/Kit/DataDisplay/LegacyCard/index.d.ts +3 -0
  25. package/dist/Kit/DataDisplay/LegacyCard/index.js +170 -0
  26. package/dist/Kit/DataDisplay/LegacyCard/types.d.ts +31 -0
  27. package/dist/Kit/DataDisplay/Tabs/index.js +94 -0
  28. package/dist/Kit/DataDisplay/Tabs/style.js +54 -0
  29. package/dist/Kit/DataDisplay/Tag/Group.d.ts +4 -0
  30. package/dist/Kit/DataDisplay/Tag/Group.js +17 -0
  31. package/dist/Kit/DataDisplay/Tag/Tag.d.ts +2 -2
  32. package/dist/Kit/DataDisplay/Tag/Tag.js +63 -0
  33. package/dist/Kit/DataDisplay/Tag/index.d.ts +5 -3
  34. package/dist/Kit/DataDisplay/Tag/index.js +7 -0
  35. package/dist/Kit/DataDisplay/Tag/types.d.ts +18 -2
  36. package/dist/Kit/DataDisplay/Tag/useTagGroup.d.ts +4 -0
  37. package/dist/Kit/DataDisplay/Tag/useTagGroup.js +40 -0
  38. package/dist/Kit/DataDisplay/Tooltip/index.js +7 -0
  39. package/dist/Kit/DataDisplay/Tour/index.js +10 -0
  40. package/dist/Kit/DataDisplay/Tour/style.js +85 -0
  41. package/dist/Kit/DataDisplay/Tree/index.js +228 -0
  42. package/dist/Kit/DataDisplay/index.d.ts +1 -0
  43. package/dist/Kit/DataEntry/AutoComplete/index.js +19 -0
  44. package/dist/Kit/DataEntry/Checkbox/Checkbox.js +270 -0
  45. package/dist/Kit/DataEntry/Checkbox/Group.js +28 -0
  46. package/dist/Kit/DataEntry/Checkbox/index.js +7 -0
  47. package/dist/Kit/DataEntry/ColorPicker/index.d.ts +2 -2
  48. package/dist/Kit/DataEntry/ColorPicker/index.js +12 -0
  49. package/dist/Kit/DataEntry/ColorPicker/style.js +106 -0
  50. package/dist/Kit/DataEntry/DatePicker/DatePicker.js +265 -0
  51. package/dist/Kit/DataEntry/DatePicker/RangePicker.js +318 -0
  52. package/dist/Kit/DataEntry/DatePicker/index.js +7 -0
  53. package/dist/Kit/DataEntry/DatePicker/style.js +53 -0
  54. package/dist/Kit/DataEntry/Input/Input.js +315 -0
  55. package/dist/Kit/DataEntry/Input/InputWrapper.js +26 -0
  56. package/dist/Kit/DataEntry/Input/Password.js +298 -0
  57. package/dist/Kit/DataEntry/Input/TextArea.js +261 -0
  58. package/dist/Kit/DataEntry/Input/index.js +8 -0
  59. package/dist/Kit/DataEntry/InputNumber/index.js +222 -0
  60. package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -1
  61. package/dist/Kit/DataEntry/Radio/Group.js +22 -0
  62. package/dist/Kit/DataEntry/Radio/Radio.js +231 -0
  63. package/dist/Kit/DataEntry/Radio/context.js +6 -0
  64. package/dist/Kit/DataEntry/Radio/index.js +7 -0
  65. package/dist/Kit/DataEntry/Rate/index.js +58 -0
  66. package/dist/Kit/DataEntry/Rate/types.d.ts +1 -1
  67. package/dist/Kit/DataEntry/Select/index.js +49 -0
  68. package/dist/Kit/DataEntry/Select/style.js +625 -0
  69. package/dist/Kit/DataEntry/Slider/index.js +81 -0
  70. package/dist/Kit/DataEntry/Switch/index.js +153 -0
  71. package/dist/Kit/DataEntry/Upload/Dragger.js +86 -0
  72. package/dist/Kit/DataEntry/Upload/Upload.js +122 -0
  73. package/dist/Kit/DataEntry/Upload/index.js +8 -0
  74. package/dist/Kit/Feedback/Alert/index.js +102 -0
  75. package/dist/Kit/Feedback/Modal/ConfirmDialog.js +37 -0
  76. package/dist/Kit/Feedback/Modal/Modal.js +136 -0
  77. package/dist/Kit/Feedback/Modal/confirm.js +45 -0
  78. package/dist/Kit/Feedback/Modal/index.js +17 -0
  79. package/dist/Kit/Feedback/Notification/notification-provider.js +32 -0
  80. package/dist/Kit/Feedback/Notification/style.js +72 -0
  81. package/dist/Kit/Feedback/Notification/useKitNotification.js +11 -0
  82. package/dist/Kit/Feedback/Progress/index.js +25 -0
  83. package/dist/Kit/Feedback/SnackBar/SnackBar.js +119 -0
  84. package/dist/Kit/Feedback/SnackBar/SnackBarProvider.js +12 -0
  85. package/dist/Kit/Feedback/SnackBar/index.js +8 -0
  86. package/dist/Kit/Feedback/SnackBar/snack-bar-function.js +10 -0
  87. package/dist/Kit/Font/index.d.ts +2 -0
  88. package/dist/Kit/Font/index.js +25 -0
  89. package/dist/Kit/General/Button/index.js +284 -0
  90. package/dist/Kit/General/Button/types.d.ts +2 -2
  91. package/dist/Kit/General/Icon/index.js +33 -0
  92. package/dist/Kit/General/Icon/types.d.ts +1 -1
  93. package/dist/Kit/General/Typography/Link.js +35 -0
  94. package/dist/Kit/General/Typography/Paragraph.js +37 -0
  95. package/dist/Kit/General/Typography/Text.js +34 -0
  96. package/dist/Kit/General/Typography/Title.js +7 -0
  97. package/dist/Kit/General/Typography/commons.js +8 -0
  98. package/dist/Kit/General/Typography/index.js +8 -0
  99. package/dist/Kit/General/Typography/style.js +77 -0
  100. package/dist/Kit/Layout/Divider/index.js +31 -0
  101. package/dist/Kit/Layout/Grid/Col.js +6 -0
  102. package/dist/Kit/Layout/Grid/Row.js +6 -0
  103. package/dist/Kit/Layout/Grid/index.js +6 -0
  104. package/dist/Kit/Layout/Space/index.js +14 -0
  105. package/dist/Kit/Layout/Space/types.d.ts +1 -1
  106. package/dist/Kit/Navigation/Breadcrumb/index.js +25 -0
  107. package/dist/Kit/Navigation/DropDown/index.js +11 -0
  108. package/dist/Kit/Navigation/DropDown/style.js +230 -0
  109. package/dist/Kit/Navigation/Header/index.js +74 -0
  110. package/dist/Kit/Navigation/Header/types.d.ts +1 -1
  111. package/dist/Kit/Navigation/Menu/ItemMenu.js +196 -0
  112. package/dist/Kit/Navigation/Menu/Menu.js +88 -0
  113. package/dist/Kit/Navigation/Menu/index.js +7 -0
  114. package/dist/Kit/Navigation/Menu/types.d.ts +1 -1
  115. package/dist/Kit/Navigation/Pagination/index.js +157 -0
  116. package/dist/Kit/Navigation/Steps/index.js +51 -0
  117. package/dist/Kit/index.d.ts +2 -1
  118. package/dist/fonts/Inter-italic.var.woff2.js +4 -0
  119. package/dist/fonts/Inter-roman.var.woff2.js +4 -0
  120. package/dist/hooks/useSecureClick/index.js +12 -0
  121. package/dist/index.d.ts +2 -0
  122. package/dist/index.es.js +161 -6471
  123. package/dist/index.umd.js +6260 -0
  124. package/dist/theme/aristid/components/DataDisplay/Avatar/index.js +6 -0
  125. package/dist/theme/aristid/components/DataDisplay/Badge/index.js +5 -0
  126. package/dist/theme/aristid/components/DataDisplay/Card/index.js +5 -0
  127. package/dist/theme/aristid/components/DataDisplay/Collapse/index.js +5 -0
  128. package/dist/theme/aristid/components/DataDisplay/Image/index.js +5 -0
  129. package/dist/theme/aristid/components/DataDisplay/ItemCard/index.js +5 -0
  130. package/dist/theme/aristid/components/DataDisplay/ItemList/index.js +5 -0
  131. package/dist/theme/aristid/components/DataDisplay/LegacyCard/index.d.ts +2 -0
  132. package/dist/theme/aristid/components/DataDisplay/LegacyCard/index.js +5 -0
  133. package/dist/theme/aristid/components/DataDisplay/Tabs/index.js +5 -0
  134. package/dist/theme/aristid/components/DataDisplay/Tag/index.js +5 -0
  135. package/dist/theme/aristid/components/DataDisplay/Tooltip/index.js +5 -0
  136. package/dist/theme/aristid/components/DataDisplay/Tree/index.js +5 -0
  137. package/dist/theme/aristid/components/DataEntry/Checkbox/index.js +5 -0
  138. package/dist/theme/aristid/components/DataEntry/ColorPicker/index.js +5 -0
  139. package/dist/theme/aristid/components/DataEntry/DatePicker/index.js +5 -0
  140. package/dist/theme/aristid/components/DataEntry/Input/index.js +8 -0
  141. package/dist/theme/aristid/components/DataEntry/InputNumber/index.js +5 -0
  142. package/dist/theme/aristid/components/DataEntry/Radio/index.js +5 -0
  143. package/dist/theme/aristid/components/DataEntry/Rate/index.js +5 -0
  144. package/dist/theme/aristid/components/DataEntry/Select/index.js +7 -0
  145. package/dist/theme/aristid/components/DataEntry/Slider/index.js +5 -0
  146. package/dist/theme/aristid/components/DataEntry/Switch/index.js +5 -0
  147. package/dist/theme/aristid/components/DataEntry/Upload/index.js +6 -0
  148. package/dist/theme/aristid/components/Feedback/Alert/index.js +5 -0
  149. package/dist/theme/aristid/components/Feedback/Modal/index.js +5 -0
  150. package/dist/theme/aristid/components/Feedback/Notification/index.js +5 -0
  151. package/dist/theme/aristid/components/Feedback/Progress/index.js +5 -0
  152. package/dist/theme/aristid/components/Feedback/SnackBar/index.js +5 -0
  153. package/dist/theme/aristid/components/General/Button/index.js +13 -0
  154. package/dist/theme/aristid/components/General/Icon/index.js +5 -0
  155. package/dist/theme/aristid/components/General/Typography/index.js +5 -0
  156. package/dist/theme/aristid/components/Layout/Divider/index.js +5 -0
  157. package/dist/theme/aristid/components/Navigation/Breadcrumb/index.js +5 -0
  158. package/dist/theme/aristid/components/Navigation/DropDown/index.js +5 -0
  159. package/dist/theme/aristid/components/Navigation/Header/index.js +5 -0
  160. package/dist/theme/aristid/components/Navigation/Menu/index.js +5 -0
  161. package/dist/theme/aristid/components/Navigation/Pagination/index.js +5 -0
  162. package/dist/theme/aristid/components/Navigation/Steps/index.js +5 -0
  163. package/dist/theme/aristid/general/border/index.js +5 -0
  164. package/dist/theme/aristid/general/colors/index.js +5 -0
  165. package/dist/theme/aristid/general/index.js +8 -0
  166. package/dist/theme/aristid/general/spacing/index.js +5 -0
  167. package/dist/theme/aristid/general/typography/index.js +5 -0
  168. package/dist/theme/theme-context.js +30 -0
  169. package/dist/theme/types/components/DataDisplay/Card/index.d.ts +17 -87
  170. package/dist/theme/types/components/DataDisplay/Collapse/index.d.ts +16 -0
  171. package/dist/theme/types/components/DataDisplay/LegacyCard/index.d.ts +251 -0
  172. package/dist/theme/types/components/DataEntry/DatePicker/index.d.ts +5 -0
  173. package/dist/theme/types/components/DataEntry/Input/index.d.ts +15 -0
  174. package/dist/theme/types/components/DataEntry/InputNumber/index.d.ts +5 -1
  175. package/dist/theme/types/components/DataEntry/Radio/index.d.ts +2 -0
  176. package/dist/theme/types/components/DataEntry/Select/index.d.ts +5 -1
  177. package/dist/theme/types/components/General/Button/index.d.ts +1 -1
  178. package/dist/theme/types/components/General/Typography/index.d.ts +2 -0
  179. package/dist/theme/types/index.d.ts +3 -1
  180. package/dist/theme/useKitTheme.js +11 -0
  181. package/dist/theme/utils/convert.d.ts +1 -0
  182. package/dist/theme/utils/convert.js +4 -0
  183. package/dist/theme/utils/css-tokens-generator.js +9 -0
  184. package/dist/theme/utils/index.js +4 -0
  185. package/dist/theme/utils/tokens-mapper/DataDisplay/Badge/index.js +7 -0
  186. package/dist/theme/utils/tokens-mapper/DataDisplay/Collapse/index.js +6 -0
  187. package/dist/theme/utils/tokens-mapper/DataDisplay/Tabs/index.d.ts +0 -6
  188. package/dist/theme/utils/tokens-mapper/DataDisplay/Tabs/index.js +7 -0
  189. package/dist/theme/utils/tokens-mapper/DataDisplay/Tooltip/index.js +8 -0
  190. package/dist/theme/utils/tokens-mapper/DataDisplay/Tree/index.js +7 -0
  191. package/dist/theme/utils/tokens-mapper/DataEntry/Checkbox/index.js +7 -0
  192. package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.js +7 -0
  193. package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +8 -0
  194. package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +7 -0
  195. package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +7 -0
  196. package/dist/theme/utils/tokens-mapper/DataEntry/Radio/index.js +7 -0
  197. package/dist/theme/utils/tokens-mapper/DataEntry/Rate/index.js +6 -0
  198. package/dist/theme/utils/tokens-mapper/DataEntry/Select/index.js +7 -0
  199. package/dist/theme/utils/tokens-mapper/DataEntry/Slider/index.js +6 -0
  200. package/dist/theme/utils/tokens-mapper/DataEntry/Tag/index.js +7 -0
  201. package/dist/theme/utils/tokens-mapper/Feedback/Alert/index.js +7 -0
  202. package/dist/theme/utils/tokens-mapper/Feedback/Progress/index.js +7 -0
  203. package/dist/theme/utils/tokens-mapper/Layout/Divider/index.js +7 -0
  204. package/dist/theme/utils/tokens-mapper/Navigation/Pagination/index.js +8 -0
  205. package/dist/theme/utils/tokens-mapper/Navigation/Steps/index.js +8 -0
  206. package/dist/theme/utils/tokens-mapper/index.js +24 -0
  207. package/dist/translation/en-US/components/DataDisplay/Collapse/index.d.ts +2 -0
  208. package/dist/translation/en-US/components/DataDisplay/Collapse/index.js +5 -0
  209. package/dist/translation/en-US/components/DataDisplay/Image/index.js +4 -0
  210. package/dist/translation/en-US/components/DataDisplay/ItemCard/index.js +5 -0
  211. package/dist/translation/en-US/components/DataDisplay/ItemList/index.js +5 -0
  212. package/dist/translation/en-US/general/index.js +4 -0
  213. package/dist/translation/en-US/index.js +8 -0
  214. package/dist/translation/fr-FR/components/DataDisplay/Collapse/index.d.ts +2 -0
  215. package/dist/translation/fr-FR/components/DataDisplay/Collapse/index.js +5 -0
  216. package/dist/translation/fr-FR/components/DataDisplay/Image/index.js +4 -0
  217. package/dist/translation/fr-FR/components/DataDisplay/ItemCard/index.js +5 -0
  218. package/dist/translation/fr-FR/components/DataDisplay/ItemList/index.js +5 -0
  219. package/dist/translation/fr-FR/general/index.js +4 -0
  220. package/dist/translation/fr-FR/index.js +8 -0
  221. package/dist/translation/locale-context.js +18 -0
  222. package/dist/translation/types/components/DataDisplay/Collapse/index.d.ts +3 -0
  223. package/dist/translation/types/components/DataDisplay/ItemCard/index.d.ts +2 -2
  224. package/dist/translation/types/components/DataDisplay/ItemList/index.d.ts +2 -2
  225. package/dist/translation/types/index.d.ts +6 -4
  226. package/dist/translation/useKitLocale.js +11 -0
  227. package/dist/translation/utils/index.js +15 -0
  228. package/dist/utils/functions/index.js +30 -0
  229. package/package.json +31 -30
  230. package/dist/index.js +0 -5820
  231. package/dist/style.css +0 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,45 @@
1
1
  # Changelog
2
2
 
3
- ## [X.X.X](X) (202X-XX-XX)
3
+ ## [0.10.0](https://www.npmjs.com/package/aristid-ds/v/0.10.0) (2024-01-19)
4
4
 
5
+ ### ✨ Features
6
+ * **⚠️ Breaking change - Card:**
7
+ * Update visual render and properties (@Delmotte-Vincent)
8
+ * This `Card` aim to replace actual `Card` and `ItemCard`
9
+ * **⚠️ Breaking change - Collapse:**
10
+ * Update visual render (@philippechevieux)
11
+ * Update properties of `KitHeader` and `KitExtraHeader`
12
+ * **Notification:**
13
+ * Update visual render (@evoiron, @renaudAmsellem)
14
+ * **DataEntry components:**
15
+ * Update visual render of `hover` and `focus` state for all those components (@evoiron, @renaudAmsellem)
16
+ * **Antd components:**
17
+ * Export all components of `Ant Design`. Those components are now available in `aristid-ds`, all prefixed by `Ant` (eg `AntLayout`) (@evoiron)
18
+ * **Tree shaking:**
19
+ * All components are now tree shakable (@evoiron)
20
+
21
+ ### 🚨 Tests
22
+
23
+ * **Chromatic:**
24
+ * Reduce number of snapshots (Group set of visual tests) (@fatb38)
25
+
26
+ ## [0.9.1](https://www.npmjs.com/package/aristid-ds/v/0.9.1) (2023-12-22)
27
+
28
+ ### 🐛 Bug Fixes
29
+
30
+ * Fix types issues in `IKitLocale` that was causing build to crash (@fatb38)
31
+
32
+ ## [0.9.0](https://www.npmjs.com/package/aristid-ds/v/0.9.0) (2023-12-22)
33
+
34
+ ### 🎨 Theming
35
+
36
+ * Improve performance when using multiple `KitApp` component (@Delmotte-Vincent, @evoiron, @fatb38, @philippechevieux)
37
+ * Replace `css-in-js` theming variables by `css variables` (@Delmotte-Vincent, @evoiron, @fatb38, @philippechevieux)
38
+
39
+ ### 🤖 CI
40
+
41
+ * Add `eslint` to CI pipeline (@evoiron)
42
+ * Add a build to CI pipeline (@evoiron)
5
43
 
6
44
  ## [0.8.0](https://www.npmjs.com/package/aristid-ds/v/0.8.0) (2023-11-16)
7
45
 
package/README.md CHANGED
@@ -491,7 +491,7 @@ We use Gitflow as Git branching model for this project. We have two branches to
491
491
 
492
492
  #### Feature
493
493
 
494
- <img src="public/images/gitflow-feature.png" alt="Logo" height="250px">
494
+ <img src="http://storybook.aristid.com/public/images/gitflow-feature.png" alt="Logo" height="250px">
495
495
 
496
496
  Creating a feature branch
497
497
 
@@ -509,7 +509,7 @@ git flow feature finish addTooltipComponent
509
509
 
510
510
  #### Release
511
511
 
512
- <img src="public/images/gitflow-release.png" alt="Logo" height="250px">
512
+ <img src="http://storybook.aristid.com/public/images/gitflow-release.png" alt="Logo" height="250px">
513
513
 
514
514
  Creating a release
515
515
 
@@ -527,7 +527,7 @@ git flow release finish '0.1.0'
527
527
 
528
528
  #### Hotfix
529
529
 
530
- <img src="public/images/gitflow-hotfix.png" alt="Logo" height="250px">
530
+ <img src="http://storybook.aristid.com/public/images/gitflow-hotfix.png" alt="Logo" height="250px">
531
531
 
532
532
  Creating a release
533
533
 
@@ -0,0 +1,68 @@
1
+ export { Affix as AntAffix } from "antd";
2
+ export { Alert as AntAlert } from "antd";
3
+ export { Anchor as AntAnchor } from "antd";
4
+ export { App as AntApp } from "antd";
5
+ export { AutoComplete as AntAutoComplete } from "antd";
6
+ export { Avatar as AntAvatar } from "antd";
7
+ export { BackTop as AntBackTop } from "antd";
8
+ export { Badge as AntBadge } from "antd";
9
+ export { Breadcrumb as AntBreadcrumb } from "antd";
10
+ export { Button as AntButton } from "antd";
11
+ export { Calendar as AntCalendar } from "antd";
12
+ export { Card as AntCard } from "antd";
13
+ export { Carousel as AntCarousel } from "antd";
14
+ export { Cascader as AntCascader } from "antd";
15
+ export { Checkbox as AntCheckbox } from "antd";
16
+ export { Col as AntCol } from "antd";
17
+ export { Collapse as AntCollapse } from "antd";
18
+ export { ColorPicker as AntColorPicker } from "antd";
19
+ export { ConfigProvider as AntConfigProvider } from "antd";
20
+ export { DatePicker as AntDatePicker } from "antd";
21
+ export { Descriptions as AntDescriptions } from "antd";
22
+ export { Divider as AntDivider } from "antd";
23
+ export { Drawer as AntDrawer } from "antd";
24
+ export { Dropdown as AntDropdown } from "antd";
25
+ export { Empty as AntEmpty } from "antd";
26
+ export { Flex as AntFlex } from "antd";
27
+ export { FloatButton as AntFloatButton } from "antd";
28
+ export { Form as AntForm } from "antd";
29
+ export { Grid as AntGrid } from "antd";
30
+ export { Image as AntImage } from "antd";
31
+ export { Input as AntInput } from "antd";
32
+ export { InputNumber as AntInputNumber } from "antd";
33
+ export { Layout as AntLayout } from "antd";
34
+ export { List as AntList } from "antd";
35
+ export { Mentions as AntMentions } from "antd";
36
+ export { Menu as AntMenu } from "antd";
37
+ export { Modal as AntModal } from "antd";
38
+ export { Pagination as AntPagination } from "antd";
39
+ export { Popconfirm as AntPopconfirm } from "antd";
40
+ export { Popover as AntPopover } from "antd";
41
+ export { Progress as AntProgress } from "antd";
42
+ export { QRCode as AntQRCode } from "antd";
43
+ export { Radio as AntRadio } from "antd";
44
+ export { Rate as AntRate } from "antd";
45
+ export { Result as AntResult } from "antd";
46
+ export { Row as AntRow } from "antd";
47
+ export { Segmented as AntSegmented } from "antd";
48
+ export { Select as AntSelect } from "antd";
49
+ export { Skeleton as AntSkeleton } from "antd";
50
+ export { Slider as AntSlider } from "antd";
51
+ export { Space as AntSpace } from "antd";
52
+ export { Spin as AntSpin } from "antd";
53
+ export { Statistic as AntStatistic } from "antd";
54
+ export { Steps as AntSteps } from "antd";
55
+ export { Switch as AntSwitch } from "antd";
56
+ export { Table as AntTable } from "antd";
57
+ export { Tabs as AntTabs } from "antd";
58
+ export { Tag as AntTag } from "antd";
59
+ export { TimePicker as AntTimePicker } from "antd";
60
+ export { Timeline as AntTimeline } from "antd";
61
+ export { Tooltip as AntTooltip } from "antd";
62
+ export { Tour as AntTour } from "antd";
63
+ export { Transfer as AntTransfer } from "antd";
64
+ export { Tree as AntTree } from "antd";
65
+ export { TreeSelect as AntTreeSelect } from "antd";
66
+ export { Typography as AntTypography } from "antd";
67
+ export { Upload as AntUpload } from "antd";
68
+ export { Watermark as AntWatermark } from "antd";
@@ -6,4 +6,5 @@ export declare const KitApp: FunctionComponent<{
6
6
  locale?: IKitLocale;
7
7
  children?: ReactNode;
8
8
  id?: string;
9
+ includeFont?: boolean;
9
10
  }>;
@@ -0,0 +1,27 @@
1
+ import e, { useEffect as i } from "react";
2
+ import { ConfigProvider as n } from "antd";
3
+ import c from "../Feedback/SnackBar/SnackBarProvider.js";
4
+ import { DropDownStyle as a } from "../Navigation/DropDown/style.js";
5
+ import { SelectDropDownStyle as p } from "../DataEntry/Select/style.js";
6
+ import { DatePickerDropDownStyle as f } from "../DataEntry/DatePicker/style.js";
7
+ import { NotificationStyle as u } from "../Feedback/Notification/style.js";
8
+ import { KitThemeProvider as E } from "../../theme/theme-context.js";
9
+ import { TypographyStyle as d } from "../General/Typography/style.js";
10
+ import { TabsDropDownStyle as y } from "../DataDisplay/Tabs/style.js";
11
+ import { antdThemeConfig as S } from "../../theme/utils/tokens-mapper/index.js";
12
+ import { KitLocaleProvider as K } from "../../translation/locale-context.js";
13
+ import { mapKitLocaleToAntdLocale as D } from "../../translation/utils/index.js";
14
+ import { ColorPickerPanelStyle as h } from "../DataEntry/ColorPicker/style.js";
15
+ import { TourStyle as s } from "../DataDisplay/Tour/style.js";
16
+ import { useKitLocale as P } from "../../translation/useKitLocale.js";
17
+ import { KitNotificationProvider as T } from "../Feedback/Notification/notification-provider.js";
18
+ import { KitFontStyle as v } from "../Font/index.js";
19
+ const M = ({ children: r, locale: t, customTheme: l, id: o, includeFont: m = !0 }) => e.createElement(E, { customTheme: l, id: o }, e.createElement(K, null, e.createElement(L, { locale: t, includeFont: m }, r))), L = ({ children: r, locale: t, includeFont: l }) => {
20
+ const o = P().setKitLocale;
21
+ return i(() => {
22
+ t !== void 0 && o(t);
23
+ }, [t, o]), e.createElement(n, { theme: S, locale: D(t) }, e.createElement(T, null, l && e.createElement(v, null), e.createElement(c, null), e.createElement(h, null), e.createElement(a, null), e.createElement(p, null), e.createElement(y, null), e.createElement(f, null), e.createElement(u, null), e.createElement(d, null), e.createElement(s, null), r));
24
+ };
25
+ export {
26
+ M as KitApp
27
+ };
@@ -0,0 +1,25 @@
1
+ import c, { useMemo as p } from "react";
2
+ import { Avatar as d } from "antd";
3
+ import { styled as u } from "styled-components";
4
+ import { useKitTheme as v } from "../../../theme/useKitTheme.js";
5
+ import { isValidColor as y, getColor as f, isSecondaryColor as g, getLighterColor as C, getContrastColor as k } from "../../../utils/functions/index.js";
6
+ import { kitAvatarCssTokens as a } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
7
+ import { kitColorsPaletteCssTokens as l } from "../../../theme/aristid/general/colors/index.js";
8
+ const A = u(d)`
9
+ &:not(.ant-avatar-image) {
10
+ background: var(
11
+ ${a.colors.background.default},
12
+ var(${l.neutral.black60})
13
+ );
14
+ color: var(
15
+ ${a.colors.typography.default},
16
+ var(${l.neutral.typography.white})
17
+ );
18
+ }
19
+ `, h = (o, r) => o && y(o) ? { [a.colors.background.default]: f(o, r), [a.colors.typography.default]: g(o) ? C(o, r) : k(o) } : null, s = ({ color: o, className: r, style: t, secondaryColorInvert: e = !1, ...m }) => {
20
+ var n = v().appId, i = p(() => ({ ...t, ...h(o, e) }), [o, e, t]);
21
+ return c.createElement(A, { style: i, className: n + " " + (r ?? ""), ...m });
22
+ }, w = (s.displayName = "KitAvatar", s);
23
+ export {
24
+ w as default
25
+ };
@@ -0,0 +1,29 @@
1
+ import l from "react";
2
+ import { Avatar as i } from "antd";
3
+ import { useKitTheme as m } from "../../../theme/useKitTheme.js";
4
+ import p, { css as u } from "styled-components";
5
+ import { kitAvatarGroupCssTokens as a } from "../../../theme/aristid/components/DataDisplay/Avatar/index.js";
6
+ import { kitColorsPaletteCssTokens as e } from "../../../theme/aristid/general/colors/index.js";
7
+ const v = p(i.Group)`
8
+ ${({ $shouldOverrideLastAvatarStyle: r }) => r ? u`
9
+ &.ant-avatar-group > span:last-child {
10
+ background: var(
11
+ ${a.colors.background.default},
12
+ var(${e.primary.primary100})
13
+ );
14
+ color: var(
15
+ ${a.colors.typography.default},
16
+ var(
17
+ ${a.colors.background.default},
18
+ var(${e.primary.primary200})
19
+ )
20
+ );
21
+ }
22
+ ` : void 0}
23
+ `, c = ({ className: r, maxCount: o, ...t }) => {
24
+ var s = m().appId;
25
+ return l.createElement(v, { ...t, maxCount: o, $shouldOverrideLastAvatarStyle: !!o, className: s + " " + (r ?? ""), maxStyle: { cursor: t.maxPopoverTrigger === "click" ? "pointer" : "initial" } });
26
+ }, $ = c;
27
+ export {
28
+ $ as default
29
+ };
@@ -0,0 +1,7 @@
1
+ import a from "./Avatar.js";
2
+ import t from "./AvatarGroup.js";
3
+ const r = a;
4
+ r.displayName = "KitAvatar", r.Group = t;
5
+ export {
6
+ r as KitAvatar
7
+ };
@@ -2,7 +2,7 @@ import {AvatarProps} from 'antd';
2
2
  import {GroupProps} from 'antd/lib/avatar';
3
3
  import {KitHTMLAttributes} from '../../../types';
4
4
  import {FunctionComponent} from 'react';
5
- import {KitColorProp} from '@utils/functions/types';
5
+ import {KitColorProp} from '../../../utils/functions/types';
6
6
 
7
7
  type AntdAvatarTypesToOmit = '';
8
8
  type AntdAvatarGroupTypesToOmit = 'maxStyle';
@@ -0,0 +1,44 @@
1
+ import s, { useMemo as i } from "react";
2
+ import { Badge as d } from "antd";
3
+ import { styled as g } from "styled-components";
4
+ import { useKitTheme as c } from "../../../theme/useKitTheme.js";
5
+ import { isValidColor as m, getColor as p, getLighterColor as u } from "../../../utils/functions/index.js";
6
+ import { kitBadgeCssTokens as r } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
7
+ const y = g(d)`
8
+ height: 16px;
9
+ min-width: 16px;
10
+ line-height: 16px;
11
+ font-size: calc(var(--general-typography-fontSize7) * 1px);
12
+
13
+ .ant-badge-count {
14
+ background: var(--components-Badge-colors-background-default, var(--general-colors-secondary-red-red400));
15
+ color: var(--components-Badge-colors-typography-default, var(--general-colors-neutral-typography-white));
16
+ }
17
+
18
+ &.ant-badge {
19
+ .ant-badge-status-processing {
20
+ &.ant-scroll-number {
21
+ position: absolute;
22
+ }
23
+
24
+ &::after {
25
+ animation-name: none;
26
+ content: initial;
27
+ }
28
+
29
+ &.ant-badge-status-dot {
30
+ &::after {
31
+ animation-name: none;
32
+ content: initial;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ `, f = (o, e) => o && m(o) ? { [r.colors.background.default]: p(o, e), [r.colors.typography.default]: u(o, e) } : null, h = ({ color: o, style: e, secondaryColorInvert: t = !1, ...a }) => {
38
+ var n = c().appId, l = i(() => ({ ...e, ...f(o, t) }), [o, t, e]);
39
+ return s.createElement(y, { style: l, className: a.className + " " + n, ...a });
40
+ };
41
+ h.displayName = "KitBadge";
42
+ export {
43
+ h as KitBadge
44
+ };
@@ -1,6 +1,6 @@
1
1
  import {BadgeProps} from 'antd';
2
2
  import {KitHTMLAttributes} from '../../../types';
3
- import {KitColorProp} from '@utils/functions/types';
3
+ import {KitColorProp} from '../../../utils/functions/types';
4
4
 
5
5
  type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
6
6
 
@@ -1,3 +1,3 @@
1
1
  import { FunctionComponent } from 'react';
2
- import IKitCard from './types';
2
+ import { IKitCard } from './types';
3
3
  export declare const KitCard: FunctionComponent<IKitCard>;
@@ -0,0 +1,188 @@
1
+ import e from "react";
2
+ import { styled as G } from "styled-components";
3
+ import N from "classnames";
4
+ import { kitColorsPaletteCssTokens as t } from "../../../theme/aristid/general/colors/index.js";
5
+ import { typographyCssTokens as i } from "../../../theme/aristid/general/typography/index.js";
6
+ import { spacingCssTokens as b } from "../../../theme/aristid/general/spacing/index.js";
7
+ import { FontAwesomeIcon as T } from "@fortawesome/react-fontawesome";
8
+ import { faEllipsis as S } from "@fortawesome/free-solid-svg-icons";
9
+ import { kitCardCssTokens as r } from "../../../theme/aristid/components/DataDisplay/Card/index.js";
10
+ import { useKitTheme as z } from "../../../theme/useKitTheme.js";
11
+ import { convertToPixel as d } from "../../../theme/utils/convert.js";
12
+ import { KitCheckbox as K } from "../../DataEntry/Checkbox/index.js";
13
+ import { KitSwitch as F } from "../../DataEntry/Switch/index.js";
14
+ import { KitButton as c } from "../../General/Button/index.js";
15
+ import { KitDropDown as W } from "../../Navigation/DropDown/index.js";
16
+ import { KitTag as B } from "../Tag/index.js";
17
+ import { KitTypography as n } from "../../General/Typography/index.js";
18
+ const I = G.div`
19
+ display: flex;
20
+ flex-direction: column;
21
+ border-radius: 10px;
22
+ overflow: hidden;
23
+ background-color: var(
24
+ ${r.colors.background.default},
25
+ var(${t.neutral.white})
26
+ );
27
+ border: 1px solid
28
+ var(
29
+ ${r.colors.border.default},
30
+ var(${t.secondary.mediumGrey.mediumGrey200})
31
+ );
32
+ margin: 2px;
33
+ box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.1);
34
+ width: 300px;
35
+
36
+ &.kit-card-disabled {
37
+ background-color: var(
38
+ ${r.colors.background.disabled},
39
+ var(${t.secondary.mediumGrey.mediumGrey100})
40
+ );
41
+ .kit-card-picture {
42
+ border-color: var(
43
+ ${r.colors.separator.disabled},
44
+ var(${t.secondary.mediumGrey.mediumGrey400})
45
+ );
46
+ }
47
+
48
+ .kit-card-content {
49
+ .kit-card-title {
50
+ color: var(
51
+ ${r.colors.typography.title.disabled},
52
+ var(${t.secondary.mediumGrey.mediumGrey400})
53
+ );
54
+ }
55
+ .kit-card-description {
56
+ color: var(
57
+ ${r.colors.typography.description.disabled},
58
+ var(${t.secondary.mediumGrey.mediumGrey400})
59
+ );
60
+ }
61
+ .kit-card-extra {
62
+ color: var(
63
+ ${r.colors.typography.extra.disabled},
64
+ var(${t.secondary.mediumGrey.mediumGrey400})
65
+ );
66
+ }
67
+ }
68
+ }
69
+
70
+ &.kit-card-selected {
71
+ margin: 0;
72
+ border: 3px solid
73
+ var(${r.colors.border.selected}, var(${t.primary.primary400}));
74
+ }
75
+
76
+ .kit-card-content {
77
+ grid-area: content;
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: ${d(b.xs)};
81
+ padding: ${d(b.s)};
82
+
83
+ .kit-card-title {
84
+ font-size: ${d(r.typography.title.fontSize, i.fontSize3)};
85
+ font-weight: var(
86
+ ${r.typography.title.fontWeight},
87
+ var(${i.boldFontWeight})
88
+ );
89
+ color: var(
90
+ ${r.colors.typography.title.default},
91
+ var(${t.primary.primary400})
92
+ );
93
+ }
94
+
95
+ .kit-card-description {
96
+ font-size: ${d(r.typography.description.fontSize, i.fontSize5)};
97
+ font-weight: var(
98
+ ${r.typography.description.fontWeight},
99
+ var(${i.regularFontWeight})
100
+ );
101
+ color: var(
102
+ ${r.colors.typography.description.default},
103
+ var(${t.secondary.mediumGrey.mediumGrey600})
104
+ );
105
+ }
106
+
107
+ .kit-card-extra {
108
+ font-size: ${d(r.typography.extra.fontSize, i.fontSize4)};
109
+ font-weight: var(
110
+ ${r.typography.extra.fontWeight},
111
+ var(${i.boldFontWeight})
112
+ );
113
+ color: var(
114
+ ${r.colors.typography.extra.default},
115
+ var(${t.primary.primary400})
116
+ );
117
+ }
118
+ }
119
+
120
+ .kit-card-picture {
121
+ display: flex;
122
+ justify-content: center;
123
+ height: 200px;
124
+ padding: 10px;
125
+ overflow: hidden;
126
+ position: relative;
127
+ border-bottom: 4px solid
128
+ ${({ $brandingBar: o }) => o ? `var(${r.colors.separator.default}, var(${t.primary.primary400}))` : "transparent"};
129
+
130
+ img {
131
+ height: 100%;
132
+ transition-duration: 500ms;
133
+ transition-property: transform;
134
+ }
135
+
136
+ .kit-card-checkbox {
137
+ position: absolute;
138
+ top: 10px;
139
+ left: 10px;
140
+ }
141
+
142
+ .kit-card-switch {
143
+ position: absolute;
144
+ top: 10px;
145
+ right: 10px;
146
+ }
147
+
148
+ .kit-card-buttons {
149
+ position: absolute;
150
+ bottom: 10px;
151
+ right: 10px;
152
+ display: flex;
153
+ flex-direction: column;
154
+ gap: 8px;
155
+ }
156
+ }
157
+
158
+ &:focus:not(.kit-card-disabled),
159
+ &:focus-visible:not(.kit-card-disabled),
160
+ &:focus-within:not(.kit-card-disabled) {
161
+ margin: 0;
162
+ border: 3px solid
163
+ var(${r.colors.border.focus}, var(${t.primary.primary200}));
164
+ outline: none;
165
+ }
166
+
167
+ &:hover:not(.kit-card-disabled) {
168
+ margin: 0;
169
+ border: 3px solid
170
+ var(${r.colors.border.hover}, var(${t.primary.primary400}));
171
+
172
+ .kit-card-picture {
173
+ border-color: transparent;
174
+
175
+ img {
176
+ transform: scale(1.3);
177
+ }
178
+ }
179
+ }
180
+ `, A = ({ actions: o, description: s, className: h, style: v, title: l, extra: m, previewSrc: x, tags: p, onActivate: y, onSelect: g, brandingBar: k = !1, selected: f = !1, activated: $ = !1, disabled: a = !1 }) => {
181
+ const E = z().appId;
182
+ var C = o && 2 < o.length, w = o && o.length <= 2;
183
+ return e.createElement(I, { tabIndex: a ? -1 : 0, className: N(h, E, { "kit-card-selected": f, "kit-card-disabled": a }), style: v, $brandingBar: k }, e.createElement("div", { className: "kit-card-picture" }, e.createElement("img", { src: x ?? "public/images/no-preview.png" }), g && e.createElement(K, { className: "kit-card-checkbox", onChange: g, checked: f, disabled: a }), y && e.createElement(F, { className: "kit-card-switch", onChange: y, checked: $, disabled: a }), e.createElement("div", { className: "kit-card-buttons" }, w && e.createElement(e.Fragment, null, o.map((u) => e.createElement(c, { type: "segmented", icon: u.icon, onClick: u.onClick, disabled: a }))), C && e.createElement(e.Fragment, null, e.createElement(c, { type: "segmented", icon: o[0].icon, onClick: o[0].onClick, disabled: a }), e.createElement(W, { menu: { items: o.slice(1) }, disabled: a }, e.createElement(c, { type: "segmented", icon: e.createElement(T, { icon: S }) }))))), e.createElement("div", { className: "kit-card-content" }, p && e.createElement(B.Group, { tags: p }), l && e.createElement(n.Text, { className: "kit-card-title" }, l), s && e.createElement(n.Text, { className: "kit-card-description" }, s), m && e.createElement(n.Text, { className: "kit-card-extra", ellipsis: { tooltip: !0 } }, m)));
184
+ };
185
+ A.displayName = "KitCard";
186
+ export {
187
+ A as KitCard
188
+ };
@@ -1,31 +1,32 @@
1
- import {CardProps} from 'antd';
1
+ import {CSSProperties, ReactNode} from 'react';
2
+ import {IKitTagConfig} from '../../DataDisplay/Tag/types';
3
+ import {CheckboxChangeEvent} from 'antd/lib/checkbox';
4
+ import {SwitchChangeEventHandler} from 'antd/lib/switch';
2
5
 
3
- type AntdCardTypesToOmit =
4
- | 'size'
5
- | 'type'
6
- | 'bordered'
7
- | 'bodyStyle'
8
- | 'hoverable'
9
- | 'tabProps'
10
- | 'tabList'
11
- | 'defaultActiveTabKey'
12
- | 'tabBarExtraContent'
13
- | 'onTabChange';
14
-
15
- export default interface IKitCard extends Omit<CardProps, AntdCardTypesToOmit> {
6
+ export interface IKitCard {
7
+ title: string;
8
+ actions?: IKitCardAction[];
9
+ activated?: boolean;
10
+ brandingBar?: boolean;
11
+ className?: string;
12
+ description?: string;
13
+ extra?: string;
14
+ style?: CSSProperties;
16
15
  disabled?: boolean;
17
- contentTitle?: string;
18
- contentDescription?: string;
19
- separator?: boolean;
20
- onContentTitleClick?: () => void;
16
+ previewSrc?: string;
17
+ onActivate?: SwitchChangeEventHandler;
18
+ onSelect?: (e: CheckboxChangeEvent) => void;
19
+ selected?: boolean;
20
+ tags?: IKitTagConfig[];
21
21
  }
22
22
 
23
- export interface IStyledKitCard {
24
- $disabled: boolean;
25
- $separator: boolean;
23
+ export interface IKitCardAction {
24
+ key: string;
25
+ label: string;
26
+ icon: ReactNode;
27
+ onClick: (e: unknown) => void;
26
28
  }
27
29
 
28
- export interface IStyledKitCardContentTitleContainer {
29
- $isContentTitleClick: boolean;
30
- $disabled: boolean;
30
+ export interface IStyledKitCard {
31
+ $brandingBar: boolean;
31
32
  }