@seij/common-ui 0.0.1

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 (255) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +7 -0
  3. package/dist/index.d.ts +45 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +113 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/init/SeijUIProvider.d.ts +15 -0
  8. package/dist/init/SeijUIProvider.d.ts.map +1 -0
  9. package/dist/init/SeijUIProvider.js +20 -0
  10. package/dist/init/SeijUIProvider.js.map +1 -0
  11. package/dist/lib/applicationshell/ApplicationShell.d.ts +13 -0
  12. package/dist/lib/applicationshell/ApplicationShell.d.ts.map +1 -0
  13. package/dist/lib/applicationshell/ApplicationShell.js +110 -0
  14. package/dist/lib/applicationshell/ApplicationShell.js.map +1 -0
  15. package/dist/lib/applicationshell/ApplicationShell.types.d.ts +9 -0
  16. package/dist/lib/applicationshell/ApplicationShell.types.d.ts.map +1 -0
  17. package/dist/lib/applicationshell/TitleBar.d.ts +9 -0
  18. package/dist/lib/applicationshell/TitleBar.d.ts.map +1 -0
  19. package/dist/lib/applicationshell/TitleBar.js +100 -0
  20. package/dist/lib/applicationshell/TitleBar.js.map +1 -0
  21. package/dist/lib/badge/Badge.d.ts +5 -0
  22. package/dist/lib/badge/Badge.d.ts.map +1 -0
  23. package/dist/lib/badge/Badge.js +9 -0
  24. package/dist/lib/badge/Badge.js.map +1 -0
  25. package/dist/lib/button/Button.d.ts +16 -0
  26. package/dist/lib/button/Button.d.ts.map +1 -0
  27. package/dist/lib/button/Button.js +15 -0
  28. package/dist/lib/button/Button.js.map +1 -0
  29. package/dist/lib/button_bar/ButtonBar.d.ts +5 -0
  30. package/dist/lib/button_bar/ButtonBar.d.ts.map +1 -0
  31. package/dist/lib/button_bar/ButtonBar.js +26 -0
  32. package/dist/lib/button_bar/ButtonBar.js.map +1 -0
  33. package/dist/lib/common-ui.d.ts +5 -0
  34. package/dist/lib/common-ui.d.ts.map +1 -0
  35. package/dist/lib/common-ui.js +9 -0
  36. package/dist/lib/common-ui.js.map +1 -0
  37. package/dist/lib/commons/currencysymbol.d.ts +2 -0
  38. package/dist/lib/commons/currencysymbol.d.ts.map +1 -0
  39. package/dist/lib/commons/currencysymbol.js +15 -0
  40. package/dist/lib/commons/currencysymbol.js.map +1 -0
  41. package/dist/lib/commons/obfuscatelabel.d.ts +17 -0
  42. package/dist/lib/commons/obfuscatelabel.d.ts.map +1 -0
  43. package/dist/lib/commons/obfuscatelabel.js +23 -0
  44. package/dist/lib/commons/obfuscatelabel.js.map +1 -0
  45. package/dist/lib/data_table/DataTable.d.ts +32 -0
  46. package/dist/lib/data_table/DataTable.d.ts.map +1 -0
  47. package/dist/lib/data_table/DataTable.js +40 -0
  48. package/dist/lib/data_table/DataTable.js.map +1 -0
  49. package/dist/lib/datatabledynamic/DataTableDynamic.d.ts +14 -0
  50. package/dist/lib/datatabledynamic/DataTableDynamic.d.ts.map +1 -0
  51. package/dist/lib/datatabledynamic/DataTableDynamic.js +18 -0
  52. package/dist/lib/datatabledynamic/DataTableDynamic.js.map +1 -0
  53. package/dist/lib/devise/DeviseContext.d.ts +2 -0
  54. package/dist/lib/devise/DeviseContext.d.ts.map +1 -0
  55. package/dist/lib/devise/DeviseContext.js +6 -0
  56. package/dist/lib/devise/DeviseContext.js.map +1 -0
  57. package/dist/lib/error_notifier/ErrorNotifier.d.ts +6 -0
  58. package/dist/lib/error_notifier/ErrorNotifier.d.ts.map +1 -0
  59. package/dist/lib/error_notifier/ErrorNotifier.js +29 -0
  60. package/dist/lib/error_notifier/ErrorNotifier.js.map +1 -0
  61. package/dist/lib/errorbox/ErrorBox.d.ts +6 -0
  62. package/dist/lib/errorbox/ErrorBox.d.ts.map +1 -0
  63. package/dist/lib/errorbox/ErrorBox.js +26 -0
  64. package/dist/lib/errorbox/ErrorBox.js.map +1 -0
  65. package/dist/lib/form_layout/FormLayout.d.ts +23 -0
  66. package/dist/lib/form_layout/FormLayout.d.ts.map +1 -0
  67. package/dist/lib/form_layout/FormLayout.js +102 -0
  68. package/dist/lib/form_layout/FormLayout.js.map +1 -0
  69. package/dist/lib/i18n/i18n.detect.d.ts +10 -0
  70. package/dist/lib/i18n/i18n.detect.d.ts.map +1 -0
  71. package/dist/lib/i18n/i18n.detect.js +30 -0
  72. package/dist/lib/i18n/i18n.detect.js.map +1 -0
  73. package/dist/lib/i18n/i18n.factory.d.ts +3 -0
  74. package/dist/lib/i18n/i18n.factory.d.ts.map +1 -0
  75. package/dist/lib/i18n/i18n.factory.js +70 -0
  76. package/dist/lib/i18n/i18n.factory.js.map +1 -0
  77. package/dist/lib/i18n/i18n.react.d.ts +19 -0
  78. package/dist/lib/i18n/i18n.react.d.ts.map +1 -0
  79. package/dist/lib/i18n/i18n.react.js +29 -0
  80. package/dist/lib/i18n/i18n.react.js.map +1 -0
  81. package/dist/lib/i18n/i18n.types.d.ts +28 -0
  82. package/dist/lib/i18n/i18n.types.d.ts.map +1 -0
  83. package/dist/lib/i18n/index.d.ts +3 -0
  84. package/dist/lib/i18n/index.d.ts.map +1 -0
  85. package/dist/lib/info_box/InfoBox.d.ts +7 -0
  86. package/dist/lib/info_box/InfoBox.d.ts.map +1 -0
  87. package/dist/lib/info_box/InfoBox.js +13 -0
  88. package/dist/lib/info_box/InfoBox.js.map +1 -0
  89. package/dist/lib/inlineedit/InlineEdit.d.ts +9 -0
  90. package/dist/lib/inlineedit/InlineEdit.d.ts.map +1 -0
  91. package/dist/lib/inlineedit/InlineEdit.js +47 -0
  92. package/dist/lib/inlineedit/InlineEdit.js.map +1 -0
  93. package/dist/lib/listview/ListView.d.ts +16 -0
  94. package/dist/lib/listview/ListView.d.ts.map +1 -0
  95. package/dist/lib/listview/ListView.js +100 -0
  96. package/dist/lib/listview/ListView.js.map +1 -0
  97. package/dist/lib/loader/Loader.d.ts +4 -0
  98. package/dist/lib/loader/Loader.d.ts.map +1 -0
  99. package/dist/lib/loader/Loader.js +9 -0
  100. package/dist/lib/loader/Loader.js.map +1 -0
  101. package/dist/lib/localdate/InputLocalDate.d.ts +17 -0
  102. package/dist/lib/localdate/InputLocalDate.d.ts.map +1 -0
  103. package/dist/lib/localdate/InputLocalDate.js +61 -0
  104. package/dist/lib/localdate/InputLocalDate.js.map +1 -0
  105. package/dist/lib/localdate/LabelLocalDate.d.ts +6 -0
  106. package/dist/lib/localdate/LabelLocalDate.d.ts.map +1 -0
  107. package/dist/lib/localdate/LabelLocalDate.js +9 -0
  108. package/dist/lib/localdate/LabelLocalDate.js.map +1 -0
  109. package/dist/lib/money/InputMoneyDec.d.ts +20 -0
  110. package/dist/lib/money/InputMoneyDec.d.ts.map +1 -0
  111. package/dist/lib/money/InputMoneyDec.js +24 -0
  112. package/dist/lib/money/InputMoneyDec.js.map +1 -0
  113. package/dist/lib/money/InputMoneyInt.d.ts +24 -0
  114. package/dist/lib/money/InputMoneyInt.d.ts.map +1 -0
  115. package/dist/lib/money/InputMoneyInt.js +24 -0
  116. package/dist/lib/money/InputMoneyInt.js.map +1 -0
  117. package/dist/lib/money/LabelMoneyDec.d.ts +33 -0
  118. package/dist/lib/money/LabelMoneyDec.d.ts.map +1 -0
  119. package/dist/lib/money/LabelMoneyDec.js +22 -0
  120. package/dist/lib/money/LabelMoneyDec.js.map +1 -0
  121. package/dist/lib/money/LabelMoneyInt.d.ts +33 -0
  122. package/dist/lib/money/LabelMoneyInt.d.ts.map +1 -0
  123. package/dist/lib/money/LabelMoneyInt.js +22 -0
  124. package/dist/lib/money/LabelMoneyInt.js.map +1 -0
  125. package/dist/lib/month/InputDurationMonths.d.ts +9 -0
  126. package/dist/lib/month/InputDurationMonths.d.ts.map +1 -0
  127. package/dist/lib/month/InputDurationMonths.js +22 -0
  128. package/dist/lib/month/InputDurationMonths.js.map +1 -0
  129. package/dist/lib/month/InputMonth.d.ts +13 -0
  130. package/dist/lib/month/InputMonth.d.ts.map +1 -0
  131. package/dist/lib/month/InputMonth.js +15 -0
  132. package/dist/lib/month/InputMonth.js.map +1 -0
  133. package/dist/lib/navigation/Navigation.d.ts +9 -0
  134. package/dist/lib/navigation/Navigation.d.ts.map +1 -0
  135. package/dist/lib/navigation/Navigation.js +38 -0
  136. package/dist/lib/navigation/Navigation.js.map +1 -0
  137. package/dist/lib/navigation/Navigation.types.d.ts +48 -0
  138. package/dist/lib/navigation/Navigation.types.d.ts.map +1 -0
  139. package/dist/lib/navigation/NavigationService.d.ts +8 -0
  140. package/dist/lib/navigation/NavigationService.d.ts.map +1 -0
  141. package/dist/lib/navigation/NavigationService.js +13 -0
  142. package/dist/lib/navigation/NavigationService.js.map +1 -0
  143. package/dist/lib/number/InputNumber.d.ts +22 -0
  144. package/dist/lib/number/InputNumber.d.ts.map +1 -0
  145. package/dist/lib/number/InputNumber.js +82 -0
  146. package/dist/lib/number/InputNumber.js.map +1 -0
  147. package/dist/lib/number/InputNumberDec.d.ts +16 -0
  148. package/dist/lib/number/InputNumberDec.d.ts.map +1 -0
  149. package/dist/lib/number/InputNumberDec.js +21 -0
  150. package/dist/lib/number/InputNumberDec.js.map +1 -0
  151. package/dist/lib/number/InputNumberInt.d.ts +19 -0
  152. package/dist/lib/number/InputNumberInt.d.ts.map +1 -0
  153. package/dist/lib/number/InputNumberInt.js +21 -0
  154. package/dist/lib/number/InputNumberInt.js.map +1 -0
  155. package/dist/lib/number/index.d.ts +4 -0
  156. package/dist/lib/number/index.d.ts.map +1 -0
  157. package/dist/lib/percent/InputPercent.d.ts +9 -0
  158. package/dist/lib/percent/InputPercent.d.ts.map +1 -0
  159. package/dist/lib/percent/InputPercent.js +29 -0
  160. package/dist/lib/percent/InputPercent.js.map +1 -0
  161. package/dist/lib/percent/LabelPercent.d.ts +8 -0
  162. package/dist/lib/percent/LabelPercent.d.ts.map +1 -0
  163. package/dist/lib/percent/LabelPercent.js +9 -0
  164. package/dist/lib/percent/LabelPercent.js.map +1 -0
  165. package/dist/lib/percent/LabelPercentInt.d.ts +4 -0
  166. package/dist/lib/percent/LabelPercentInt.d.ts.map +1 -0
  167. package/dist/lib/percent/LabelPercentInt.js +10 -0
  168. package/dist/lib/percent/LabelPercentInt.js.map +1 -0
  169. package/dist/lib/select/InputCombobox.d.ts +49 -0
  170. package/dist/lib/select/InputCombobox.d.ts.map +1 -0
  171. package/dist/lib/select/InputCombobox.js +42 -0
  172. package/dist/lib/select/InputCombobox.js.map +1 -0
  173. package/dist/lib/select/InputSelect.d.ts +22 -0
  174. package/dist/lib/select/InputSelect.d.ts.map +1 -0
  175. package/dist/lib/select/InputSelect.js +31 -0
  176. package/dist/lib/select/InputSelect.js.map +1 -0
  177. package/dist/lib/switchbutton/SwitchButton.d.ts +9 -0
  178. package/dist/lib/switchbutton/SwitchButton.d.ts.map +1 -0
  179. package/dist/lib/switchbutton/SwitchButton.js +18 -0
  180. package/dist/lib/switchbutton/SwitchButton.js.map +1 -0
  181. package/dist/lib/tabs/Tabs.d.ts +18 -0
  182. package/dist/lib/tabs/Tabs.d.ts.map +1 -0
  183. package/dist/lib/tabs/Tabs.js +30 -0
  184. package/dist/lib/tabs/Tabs.js.map +1 -0
  185. package/dist/lib/tabs/index.d.ts +2 -0
  186. package/dist/lib/tabs/index.d.ts.map +1 -0
  187. package/dist/lib/text/InputText.d.ts +12 -0
  188. package/dist/lib/text/InputText.d.ts.map +1 -0
  189. package/dist/lib/text/InputText.js +32 -0
  190. package/dist/lib/text/InputText.js.map +1 -0
  191. package/dist/lib/typography/description/Description.d.ts +4 -0
  192. package/dist/lib/typography/description/Description.d.ts.map +1 -0
  193. package/dist/lib/typography/description/Description.js +9 -0
  194. package/dist/lib/typography/description/Description.js.map +1 -0
  195. package/dist/lib/typography/description/index.d.ts +2 -0
  196. package/dist/lib/typography/description/index.d.ts.map +1 -0
  197. package/dist/lib/typography/index.d.ts +5 -0
  198. package/dist/lib/typography/index.d.ts.map +1 -0
  199. package/dist/lib/typography/label_and_description/LabelAndDescription.d.ts +5 -0
  200. package/dist/lib/typography/label_and_description/LabelAndDescription.d.ts.map +1 -0
  201. package/dist/lib/typography/label_and_description/LabelAndDescription.js +16 -0
  202. package/dist/lib/typography/label_and_description/LabelAndDescription.js.map +1 -0
  203. package/dist/lib/typography/label_and_description/index.d.ts +2 -0
  204. package/dist/lib/typography/label_and_description/index.d.ts.map +1 -0
  205. package/dist/lib/typography/sectiontitle/SectionTitle.d.ts +5 -0
  206. package/dist/lib/typography/sectiontitle/SectionTitle.d.ts.map +1 -0
  207. package/dist/lib/typography/sectiontitle/SectionTitle.js +8 -0
  208. package/dist/lib/typography/sectiontitle/SectionTitle.js.map +1 -0
  209. package/dist/lib/typography/todo/Todo.d.ts +5 -0
  210. package/dist/lib/typography/todo/Todo.d.ts.map +1 -0
  211. package/dist/lib/typography/todo/Todo.js +7 -0
  212. package/dist/lib/typography/todo/Todo.js.map +1 -0
  213. package/dist/lib/view_layout/ViewBody.d.ts +8 -0
  214. package/dist/lib/view_layout/ViewBody.d.ts.map +1 -0
  215. package/dist/lib/view_layout/ViewBody.js +8 -0
  216. package/dist/lib/view_layout/ViewBody.js.map +1 -0
  217. package/dist/lib/view_layout/ViewFooter.d.ts +10 -0
  218. package/dist/lib/view_layout/ViewFooter.d.ts.map +1 -0
  219. package/dist/lib/view_layout/ViewFooter.js +8 -0
  220. package/dist/lib/view_layout/ViewFooter.js.map +1 -0
  221. package/dist/lib/view_layout/ViewHeader.d.ts +5 -0
  222. package/dist/lib/view_layout/ViewHeader.d.ts.map +1 -0
  223. package/dist/lib/view_layout/ViewHeader.js +8 -0
  224. package/dist/lib/view_layout/ViewHeader.js.map +1 -0
  225. package/dist/lib/view_layout/ViewLayout.d.ts +16 -0
  226. package/dist/lib/view_layout/ViewLayout.d.ts.map +1 -0
  227. package/dist/lib/view_layout/ViewLayout.js +127 -0
  228. package/dist/lib/view_layout/ViewLayout.js.map +1 -0
  229. package/dist/lib/view_layout/ViewTitle.d.ts +21 -0
  230. package/dist/lib/view_layout/ViewTitle.d.ts.map +1 -0
  231. package/dist/lib/view_layout/ViewTitle.js +71 -0
  232. package/dist/lib/view_layout/ViewTitle.js.map +1 -0
  233. package/dist/lib/year/InputDurationYears.d.ts +9 -0
  234. package/dist/lib/year/InputDurationYears.d.ts.map +1 -0
  235. package/dist/lib/year/InputDurationYears.js +22 -0
  236. package/dist/lib/year/InputDurationYears.js.map +1 -0
  237. package/dist/lib/year/InputYear.d.ts +9 -0
  238. package/dist/lib/year/InputYear.d.ts.map +1 -0
  239. package/dist/lib/year/InputYear.js +21 -0
  240. package/dist/lib/year/InputYear.js.map +1 -0
  241. package/dist/locales/en.d.ts +8 -0
  242. package/dist/locales/en.d.ts.map +1 -0
  243. package/dist/locales/en.js +41 -0
  244. package/dist/locales/en.js.map +1 -0
  245. package/dist/locales/fr.d.ts +8 -0
  246. package/dist/locales/fr.d.ts.map +1 -0
  247. package/dist/locales/fr.js +41 -0
  248. package/dist/locales/fr.js.map +1 -0
  249. package/dist/locales/interfaces.d.ts +11 -0
  250. package/dist/locales/interfaces.d.ts.map +1 -0
  251. package/dist/stories/utils/SeijUIProviderDecorator.d.ts +2 -0
  252. package/dist/stories/utils/SeijUIProviderDecorator.d.ts.map +1 -0
  253. package/dist/stories/utils/StoryComponentFrame.d.ts +11 -0
  254. package/dist/stories/utils/StoryComponentFrame.d.ts.map +1 -0
  255. package/package.json +48 -0
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ export interface Action {
3
+ id: string;
4
+ label: string;
5
+ icon?: "plus" | "trash";
6
+ onClick: () => any;
7
+ disabled?: boolean;
8
+ type: "PRIMARY" | "SECONDARY" | "ADDITIONAL";
9
+ }
10
+ /**
11
+ * Zone de titre d'une vue
12
+ */
13
+ export declare function ViewTitle({ children, onBack, actions, }: {
14
+ /** Titre de la vue (en tout cas ce que l'on met dans la zone de titre) */
15
+ children: ReactNode;
16
+ /** Si spécifié, on ajoute une fleche "back" pour revenir en arrière */
17
+ onBack?: () => void;
18
+ /** Liste d'actions a ajouter à droite dans la zone d'actions */
19
+ actions?: Action[];
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=ViewTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTitle.d.ts","sourceRoot":"","sources":["../../../src/lib/view_layout/ViewTitle.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC;CAC9C;AAmCD;;GAEG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE;IACD,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IACpB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,2CAuDA"}
@@ -0,0 +1,71 @@
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
+ import { makeStyles as y, Button as r, Title3 as x, Menu as b, MenuTrigger as g, MenuPopover as C, MenuList as I, MenuItem as k } from "@fluentui/react-components";
3
+ import { ArrowLeftFilled as A, MoreVerticalFilled as M, AddSquareRegular as N, DeleteRegular as j } from "@fluentui/react-icons";
4
+ import { isFunction as v } from "lodash-es";
5
+ const B = y({
6
+ root: {
7
+ display: "flex",
8
+ align: "center",
9
+ justify: "space-between",
10
+ justifyContent: "center",
11
+ height: "48px"
12
+ },
13
+ title: {
14
+ flex: 1,
15
+ display: "flex",
16
+ alignItems: "center"
17
+ },
18
+ backButton: {
19
+ flex: 0,
20
+ display: "flex",
21
+ alignItems: "center",
22
+ justifyContent: "flex-start"
23
+ },
24
+ actions: {
25
+ flex: 0,
26
+ display: "flex",
27
+ alignItems: "center"
28
+ },
29
+ moreActions: {
30
+ flex: 0,
31
+ display: "flex",
32
+ alignItems: "center",
33
+ minWidth: "48px",
34
+ justifyContent: "flex-end"
35
+ }
36
+ });
37
+ function E({
38
+ children: l,
39
+ onBack: t,
40
+ actions: i
41
+ }) {
42
+ const s = B(), d = v(t), o = (i ?? []).filter((e) => e.type === "ADDITIONAL"), p = (i ?? []).filter((e) => e.type === "SECONDARY"), u = (i ?? []).filter((e) => e.type === "PRIMARY"), m = () => {
43
+ d && t && t();
44
+ }, a = async (e) => {
45
+ var f;
46
+ (f = (i ?? []).find((h) => h.id === e)) == null || f.onClick();
47
+ };
48
+ return /* @__PURE__ */ c("div", { className: s.root, children: [
49
+ d && /* @__PURE__ */ n("div", { className: s.backButton, children: /* @__PURE__ */ n(r, { icon: /* @__PURE__ */ n(A, {}), appearance: "subtle", onClick: m }) }),
50
+ /* @__PURE__ */ n("div", { className: s.title, children: /* @__PURE__ */ n(x, { children: l }) }),
51
+ /* @__PURE__ */ c("div", { className: s.actions, children: [
52
+ p.length > 0 && p.map((e) => /* @__PURE__ */ n(r, { disabled: e.disabled, appearance: "secondary", onClick: () => a(e.id), children: e.label }, e.id)),
53
+ u.length > 0 && u.map((e) => /* @__PURE__ */ n(r, { disabled: e.disabled, appearance: "primary", onClick: () => a(e.id), children: e.label }, e.id))
54
+ ] }),
55
+ /* @__PURE__ */ n("div", { className: s.moreActions, children: o.length > 0 && /* @__PURE__ */ c(b, { positioning: { autoSize: !0 }, children: [
56
+ /* @__PURE__ */ n(g, { disableButtonEnhancement: !0, children: /* @__PURE__ */ n(r, { icon: /* @__PURE__ */ n(M, {}) }) }),
57
+ /* @__PURE__ */ n(C, { children: /* @__PURE__ */ n(I, { children: o.map((e) => /* @__PURE__ */ n(R, { action: e, onClick: a }, e.id)) }) })
58
+ ] }) })
59
+ ] });
60
+ }
61
+ function L() {
62
+ return /* @__PURE__ */ n("span", {});
63
+ }
64
+ function R({ action: l, onClick: t }) {
65
+ let i;
66
+ return l.icon === "plus" ? i = N : l.icon === "trash" ? i = j : i = L, /* @__PURE__ */ n(k, { disabled: l.disabled, onClick: () => t(l.id), icon: /* @__PURE__ */ n(i, {}), children: l.label });
67
+ }
68
+ export {
69
+ E as ViewTitle
70
+ };
71
+ //# sourceMappingURL=ViewTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTitle.js","sources":["../../../src/lib/view_layout/ViewTitle.tsx"],"sourcesContent":["import {\n Button,\n makeStyles,\n Menu,\n MenuItem,\n MenuList,\n MenuPopover,\n MenuTrigger,\n Title3,\n} from \"@fluentui/react-components\";\nimport { AddSquareRegular, ArrowLeftFilled, DeleteRegular, MoreVerticalFilled } from \"@fluentui/react-icons\";\nimport { isFunction } from \"lodash-es\";\nimport { ReactNode } from \"react\";\n\nexport interface Action {\n id: string;\n label: string;\n icon?: \"plus\" | \"trash\";\n onClick: () => any;\n disabled?: boolean;\n type: \"PRIMARY\" | \"SECONDARY\" | \"ADDITIONAL\";\n}\n\nconst useStyles = makeStyles({\n root: {\n display: \"flex\",\n align: \"center\",\n justify: \"space-between\",\n justifyContent: \"center\",\n height: \"48px\",\n },\n title: {\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n },\n backButton: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n },\n actions: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n },\n moreActions: {\n flex: 0,\n display: \"flex\",\n alignItems: \"center\",\n minWidth: \"48px\",\n justifyContent: \"flex-end\",\n },\n});\n\n/**\n * Zone de titre d'une vue\n */\nexport function ViewTitle({\n children,\n onBack,\n actions,\n}: {\n /** Titre de la vue (en tout cas ce que l'on met dans la zone de titre) */\n children: ReactNode;\n /** Si spécifié, on ajoute une fleche \"back\" pour revenir en arrière */\n onBack?: () => void;\n /** Liste d'actions a ajouter à droite dans la zone d'actions */\n actions?: Action[];\n}) {\n const styles = useStyles();\n\n const displayBackButton = isFunction(onBack);\n const additionalList = (actions ?? []).filter((it) => it.type === \"ADDITIONAL\");\n const secondaryList = (actions ?? []).filter((it) => it.type === \"SECONDARY\");\n const primary = (actions ?? []).filter((it) => it.type === \"PRIMARY\");\n const handleBack = () => {\n if (displayBackButton && onBack) onBack();\n };\n const handleClick = async (id: string) => {\n (actions ?? []).find((it) => it.id === id)?.onClick();\n };\n return (\n <div className={styles.root}>\n {displayBackButton && (\n <div className={styles.backButton}>\n <Button icon={<ArrowLeftFilled />} appearance=\"subtle\" onClick={handleBack} />\n </div>\n )}\n <div className={styles.title}>\n <Title3>{children}</Title3>\n </div>\n <div className={styles.actions}>\n {secondaryList.length > 0 &&\n secondaryList.map((it) => (\n <Button key={it.id} disabled={it.disabled} appearance=\"secondary\" onClick={() => handleClick(it.id)}>\n {it.label}\n </Button>\n ))}\n {primary.length > 0 &&\n primary.map((it) => (\n <Button key={it.id} disabled={it.disabled} appearance=\"primary\" onClick={() => handleClick(it.id)}>\n {it.label}\n </Button>\n ))}\n </div>\n <div className={styles.moreActions}>\n {additionalList.length > 0 && (\n <Menu positioning={{ autoSize: true }}>\n <MenuTrigger disableButtonEnhancement>\n <Button icon={<MoreVerticalFilled />} />\n </MenuTrigger>\n <MenuPopover>\n <MenuList>\n {additionalList.map((it) => (\n <AdditionalActionMenuItem key={it.id} action={it} onClick={handleClick} />\n ))}\n </MenuList>\n </MenuPopover>\n </Menu>\n )}\n </div>\n </div>\n );\n}\n\nfunction EmptyIcon() {\n return <span />;\n}\n\nfunction AdditionalActionMenuItem({ action, onClick }: { action: Action; onClick: (id: string) => void }) {\n let Icon: any;\n if (action.icon === \"plus\") {\n Icon = AddSquareRegular;\n } else if (action.icon === \"trash\") {\n Icon = DeleteRegular;\n } else {\n Icon = EmptyIcon;\n }\n return (\n <MenuItem disabled={action.disabled} onClick={() => onClick(action.id)} icon={<Icon />}>\n {action.label}\n </MenuItem>\n );\n}\n"],"names":["useStyles","makeStyles","ViewTitle","children","onBack","actions","styles","displayBackButton","isFunction","additionalList","it","secondaryList","primary","handleBack","handleClick","id","_a","jsxs","jsx","Button","ArrowLeftFilled","Title3","Menu","MenuTrigger","MoreVerticalFilled","MenuPopover","MenuList","AdditionalActionMenuItem","EmptyIcon","action","onClick","Icon","AddSquareRegular","DeleteRegular","MenuItem"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { InputNumberProps } from '../number/InputNumber';
3
+ export interface InputDurationYearProps extends InputNumberProps {
4
+ }
5
+ /**
6
+ * Un input special annee.
7
+ */
8
+ export declare const InputDurationYears: React.FC<InputDurationYearProps>;
9
+ //# sourceMappingURL=InputDurationYears.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputDurationYears.d.ts","sourceRoot":"","sources":["../../../src/lib/year/InputDurationYears.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGtE,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;CAAG;AAEnE;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAe/D,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { InputNumber as a } from "../number/InputNumber.js";
3
+ import { useI18n as u } from "../i18n/i18n.react.js";
4
+ const p = (t) => {
5
+ const { ...o } = t, { t: r } = u(), e = r("InputDurationYears_unit");
6
+ return /* @__PURE__ */ n(
7
+ a,
8
+ {
9
+ decimalScale: 0,
10
+ allowNegative: !1,
11
+ inputMode: "numeric",
12
+ thousandSeparator: !1,
13
+ size: 4,
14
+ unit: e,
15
+ ...o
16
+ }
17
+ );
18
+ };
19
+ export {
20
+ p as InputDurationYears
21
+ };
22
+ //# sourceMappingURL=InputDurationYears.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputDurationYears.js","sources":["../../../src/lib/year/InputDurationYears.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputNumber, InputNumberProps } from \"../number/InputNumber\";\nimport { useI18n } from \"../i18n/i18n.react\";\n\nexport interface InputDurationYearProps extends InputNumberProps {}\n\n/**\n * Un input special annee.\n */\nexport const InputDurationYears: React.FC<InputDurationYearProps> = (props) => {\n const { ...other } = props;\n const { t } = useI18n();\n const unit = t(\"InputDurationYears_unit\");\n return (\n <InputNumber\n decimalScale={0}\n allowNegative={false}\n inputMode=\"numeric\"\n thousandSeparator={false}\n size={4}\n unit={unit}\n {...other}\n />\n );\n};\n"],"names":["InputDurationYears","props","other","t","useI18n","unit","jsx","InputNumber"],"mappings":";;;AASO,MAAMA,IAAuD,CAACC,MAAU;AAC7E,QAAM,EAAE,GAAGC,EAAA,IAAUD,GACf,EAAE,GAAAE,EAAA,IAAMC,EAAA,GACRC,IAAOF,EAAE,yBAAyB;AACxC,SACE,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,eAAe;AAAA,MACf,WAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,MAAM;AAAA,MACN,MAAAF;AAAA,MACC,GAAGH;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { InputNumberProps } from '../number/InputNumber';
3
+ export interface InputYearProps extends InputNumberProps {
4
+ }
5
+ /**
6
+ * Permet de saisir une année.
7
+ */
8
+ export declare const InputYear: React.FC<InputYearProps>;
9
+ //# sourceMappingURL=InputYear.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputYear.d.ts","sourceRoot":"","sources":["../../../src/lib/year/InputYear.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,WAAW,cAAe,SAAQ,gBAAgB;CAAG;AAE3D;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAc9C,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { InputNumber as o } from "../number/InputNumber.js";
3
+ const i = (e) => {
4
+ const { ...t } = e;
5
+ return /* @__PURE__ */ r(
6
+ o,
7
+ {
8
+ decimalScale: 0,
9
+ allowNegative: !1,
10
+ inputMode: "numeric",
11
+ thousandSeparator: !1,
12
+ size: 4,
13
+ unit: "année",
14
+ ...t
15
+ }
16
+ );
17
+ };
18
+ export {
19
+ i as InputYear
20
+ };
21
+ //# sourceMappingURL=InputYear.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputYear.js","sources":["../../../src/lib/year/InputYear.tsx"],"sourcesContent":["import React from \"react\";\nimport { InputNumber, InputNumberProps } from \"../number/InputNumber\";\n\nexport interface InputYearProps extends InputNumberProps {}\n\n/**\n * Permet de saisir une année.\n */\nexport const InputYear: React.FC<InputYearProps> = (props) => {\n const { ...other } = props;\n\n return (\n <InputNumber\n decimalScale={0}\n allowNegative={false}\n inputMode=\"numeric\"\n thousandSeparator={false}\n size={4}\n unit={\"année\"}\n {...other}\n />\n );\n};\n"],"names":["InputYear","props","other","jsx","InputNumber"],"mappings":";;AAQO,MAAMA,IAAsC,CAACC,MAAU;AAC5D,QAAM,EAAE,GAAGC,EAAA,IAAUD;AAErB,SACE,gBAAAE;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,eAAe;AAAA,MACf,WAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,MAAM;AAAA,MACN,MAAM;AAAA,MACL,GAAGF;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1,8 @@
1
+ import { Formats } from '../lib/i18n';
2
+ import { ModuleMessages } from './interfaces';
3
+ declare const locale: {
4
+ messages: ModuleMessages;
5
+ formats: Formats;
6
+ };
7
+ export default locale;
8
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,MAAM,EAAE;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CA8BzD,CAAC;AACF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,41 @@
1
+ const t = {
2
+ messages: {
3
+ errorbox_unknown_error: "Unknown error: {error}",
4
+ errorbox_unknown_error_status: "could not find error status.",
5
+ InputDurationMonths_unit: "months",
6
+ InputDurationYears_unit: "years",
7
+ InputSelect_select: "Select",
8
+ InputCombobox_noresult: "No result",
9
+ ListView_search: "Search",
10
+ ListView_no_result: "No result"
11
+ },
12
+ formats: {
13
+ localdate: {
14
+ placeholder: "mm/dd/yyyy",
15
+ inputmask: "MM/dd/yyyy"
16
+ },
17
+ date: {
18
+ short: { dateStyle: "short" },
19
+ // 12/08/2025
20
+ medium: { dateStyle: "medium" },
21
+ // 12 août 2025
22
+ datetime: { dateStyle: "medium", timeStyle: "short" }
23
+ // 12 août 2025 à 14:05
24
+ },
25
+ number: {
26
+ currency: { style: "currency", currency: "EUR", currencyDisplay: "symbol" },
27
+ compact: { notation: "compact" }
28
+ // 1,2 M
29
+ },
30
+ list: {
31
+ and: { style: "short", type: "conjunction" },
32
+ // pommes, poires et bananes
33
+ or: { style: "short", type: "disjunction" }
34
+ // pommes, poires ou bananes
35
+ }
36
+ }
37
+ };
38
+ export {
39
+ t as default
40
+ };
41
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.js","sources":["../../src/locales/en.ts"],"sourcesContent":["import { Formats } from \"../lib/i18n\";\nimport { ModuleMessages } from \"./interfaces\";\n\nconst locale: { messages: ModuleMessages; formats: Formats } = {\n messages: {\n errorbox_unknown_error: \"Unknown error: {error}\",\n errorbox_unknown_error_status: \"could not find error status.\",\n InputDurationMonths_unit: \"months\",\n InputDurationYears_unit: \"years\",\n InputSelect_select: \"Select\",\n InputCombobox_noresult: \"No result\",\n ListView_search: \"Search\",\n ListView_no_result: \"No result\",\n },\n formats: {\n localdate: {\n placeholder: \"mm/dd/yyyy\",\n inputmask: \"MM/dd/yyyy\",\n },\n date: {\n short: { dateStyle: \"short\" }, // 12/08/2025\n medium: { dateStyle: \"medium\" }, // 12 août 2025\n datetime: { dateStyle: \"medium\", timeStyle: \"short\" }, // 12 août 2025 à 14:05\n },\n number: {\n currency: { style: \"currency\", currency: \"EUR\", currencyDisplay: \"symbol\" },\n compact: { notation: \"compact\" }, // 1,2 M\n },\n list: {\n and: { style: \"short\", type: \"conjunction\" }, // pommes, poires et bananes\n or: { style: \"short\", type: \"disjunction\" }, // pommes, poires ou bananes\n },\n },\n};\nexport default locale;\n"],"names":["locale"],"mappings":"AAGA,MAAMA,IAAyD;AAAA,EAC7D,UAAU;AAAA,IACR,wBAAwB;AAAA,IACxB,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,EAAA;AAAA,EAEtB,SAAS;AAAA,IACP,WAAW;AAAA,MACT,aAAa;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,IAEb,MAAM;AAAA,MACJ,OAAO,EAAE,WAAW,QAAA;AAAA;AAAA,MACpB,QAAQ,EAAE,WAAW,SAAA;AAAA;AAAA,MACrB,UAAU,EAAE,WAAW,UAAU,WAAW,QAAA;AAAA;AAAA,IAAQ;AAAA,IAEtD,QAAQ;AAAA,MACN,UAAU,EAAE,OAAO,YAAY,UAAU,OAAO,iBAAiB,SAAA;AAAA,MACjE,SAAS,EAAE,UAAU,UAAA;AAAA;AAAA,IAAU;AAAA,IAEjC,MAAM;AAAA,MACJ,KAAK,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,MAC7B,IAAI,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,IAAc;AAAA,EAC5C;AAEJ;"}
@@ -0,0 +1,8 @@
1
+ import { Formats } from '../lib/i18n';
2
+ import { ModuleMessages } from './interfaces';
3
+ declare const locale: {
4
+ messages: ModuleMessages;
5
+ formats: Formats;
6
+ };
7
+ export default locale;
8
+ //# sourceMappingURL=fr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,MAAM,EAAE;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CA8BzD,CAAC;AACF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,41 @@
1
+ const t = {
2
+ messages: {
3
+ errorbox_unknown_error: "Erreur inconnue : {error}",
4
+ errorbox_unknown_error_status: "numéro de status d'erreur non trouvé.",
5
+ InputDurationMonths_unit: "mois",
6
+ InputDurationYears_unit: "ans",
7
+ InputSelect_select: "Sélectionnez",
8
+ InputCombobox_noresult: "Aucun résultat",
9
+ ListView_search: "Rechercher",
10
+ ListView_no_result: "Aucun résultat"
11
+ },
12
+ formats: {
13
+ localdate: {
14
+ placeholder: "jj/mm/aaaa",
15
+ inputmask: "dd/MM/yyyy"
16
+ },
17
+ date: {
18
+ short: { dateStyle: "short" },
19
+ // 12/08/2025
20
+ medium: { dateStyle: "medium" },
21
+ // 12 août 2025
22
+ datetime: { dateStyle: "medium", timeStyle: "short" }
23
+ // 12 août 2025 à 14:05
24
+ },
25
+ number: {
26
+ currency: { style: "currency", currency: "EUR", currencyDisplay: "symbol" },
27
+ compact: { notation: "compact" }
28
+ // 1,2 M
29
+ },
30
+ list: {
31
+ and: { style: "short", type: "conjunction" },
32
+ // pommes, poires et bananes
33
+ or: { style: "short", type: "disjunction" }
34
+ // pommes, poires ou bananes
35
+ }
36
+ }
37
+ };
38
+ export {
39
+ t as default
40
+ };
41
+ //# sourceMappingURL=fr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.js","sources":["../../src/locales/fr.ts"],"sourcesContent":["import { Formats } from \"../lib/i18n\";\nimport { ModuleMessages } from \"./interfaces\";\n\nconst locale: { messages: ModuleMessages; formats: Formats } = {\n messages: {\n errorbox_unknown_error: \"Erreur inconnue : {error}\",\n errorbox_unknown_error_status: \"numéro de status d'erreur non trouvé.\",\n InputDurationMonths_unit: \"mois\",\n InputDurationYears_unit: \"ans\",\n InputSelect_select: \"Sélectionnez\",\n InputCombobox_noresult: \"Aucun résultat\",\n ListView_search: \"Rechercher\",\n ListView_no_result: \"Aucun résultat\",\n },\n formats: {\n localdate: {\n placeholder: \"jj/mm/aaaa\",\n inputmask: \"dd/MM/yyyy\",\n },\n date: {\n short: { dateStyle: \"short\" }, // 12/08/2025\n medium: { dateStyle: \"medium\" }, // 12 août 2025\n datetime: { dateStyle: \"medium\", timeStyle: \"short\" }, // 12 août 2025 à 14:05\n },\n number: {\n currency: { style: \"currency\", currency: \"EUR\", currencyDisplay: \"symbol\" },\n compact: { notation: \"compact\" }, // 1,2 M\n },\n list: {\n and: { style: \"short\", type: \"conjunction\" }, // pommes, poires et bananes\n or: { style: \"short\", type: \"disjunction\" }, // pommes, poires ou bananes\n },\n },\n};\nexport default locale;\n"],"names":["locale"],"mappings":"AAGA,MAAMA,IAAyD;AAAA,EAC7D,UAAU;AAAA,IACR,wBAAwB;AAAA,IACxB,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,wBAAwB;AAAA,IACxB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,EAAA;AAAA,EAEtB,SAAS;AAAA,IACP,WAAW;AAAA,MACT,aAAa;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,IAEb,MAAM;AAAA,MACJ,OAAO,EAAE,WAAW,QAAA;AAAA;AAAA,MACpB,QAAQ,EAAE,WAAW,SAAA;AAAA;AAAA,MACrB,UAAU,EAAE,WAAW,UAAU,WAAW,QAAA;AAAA;AAAA,IAAQ;AAAA,IAEtD,QAAQ;AAAA,MACN,UAAU,EAAE,OAAO,YAAY,UAAU,OAAO,iBAAiB,SAAA;AAAA,MACjE,SAAS,EAAE,UAAU,UAAA;AAAA;AAAA,IAAU;AAAA,IAEjC,MAAM;AAAA,MACJ,KAAK,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,MAC7B,IAAI,EAAE,OAAO,SAAS,MAAM,cAAA;AAAA;AAAA,IAAc;AAAA,EAC5C;AAEJ;"}
@@ -0,0 +1,11 @@
1
+ export type ModuleMessages = {
2
+ errorbox_unknown_error: string;
3
+ errorbox_unknown_error_status: string;
4
+ InputDurationMonths_unit: string;
5
+ InputDurationYears_unit: string;
6
+ InputSelect_select: string;
7
+ InputCombobox_noresult: string;
8
+ ListView_search: string;
9
+ ListView_no_result: string;
10
+ };
11
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/locales/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,wBAAwB,EAAE,MAAM,CAAC;IACjC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function SeijUIProviderDecorator(Story: any): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=SeijUIProviderDecorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeijUIProviderDecorator.d.ts","sourceRoot":"","sources":["../../../src/stories/utils/SeijUIProviderDecorator.tsx"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,2CAMjD"}
@@ -0,0 +1,11 @@
1
+ import { PropsWithChildren } from 'react';
2
+ /**
3
+ * StoryComponentFrame visually highlights the boundaries and spacing of a wrapped component.
4
+ * It renders a yellow background with padding, and places the child component inside a white box with a dashed border.
5
+ *
6
+ * Use this frame in Storybook to clearly see the actual margins, padding, and positioning of your component within its container.
7
+ */
8
+ export declare const StoryComponentFrame: ({ title, children }: PropsWithChildren & {
9
+ title: string;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=StoryComponentFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoryComponentFrame.d.ts","sourceRoot":"","sources":["../../../src/stories/utils/StoryComponentFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,qBAAqB,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,4CAS7F,CAAC"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@seij/common-ui",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/seij-net/seij-commons-js.git"
9
+ },
10
+ "dependencies": {
11
+ "@seij/common-types": "0.1.2",
12
+ "i18next-icu": "2.4.1",
13
+ "@fluentui/react-components": "9.72.9",
14
+ "date-fns": "4.1.0",
15
+ "i18next": "25.7.3",
16
+ "rifm": "0.12.1",
17
+ "@fluentui/react-icons": "2.0.316",
18
+ "lodash-es": "4.17.22"
19
+ },
20
+ "devDependencies": {
21
+ "@types/lodash-es": "4.17.12"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "18.3.1",
25
+ "react-dom": "18.3.1"
26
+ },
27
+ "exports": {
28
+ ".": {
29
+ "import": "./dist/index.js",
30
+ "types": "./dist/index.d.ts"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist/**",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "scripts": {
39
+ "clean": "rm -rf ./dist",
40
+ "build": "vite build -c vite.config.ts",
41
+ "test": "vitest run",
42
+ "lint": "eslint .",
43
+ "typecheck": "tsc -p tsconfig.lib.json --noEmit",
44
+ "watch": "tsc -p tsconfig.lib.json --noEmit --watch",
45
+ "storybook": "storybook dev -p 6006",
46
+ "build-storybook": "storybook build"
47
+ }
48
+ }