pentatrion-design 0.0.1 → 0.0.2

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 (193) hide show
  1. package/package.json +5 -1
  2. package/.storybook/main.ts +0 -33
  3. package/.storybook/manager.ts +0 -8
  4. package/.storybook/preview-head.html +0 -2
  5. package/.storybook/preview.ts +0 -26
  6. package/.storybook/public/bg-map.jpg +0 -0
  7. package/.storybook/public/favicon-32x32.png +0 -0
  8. package/.storybook/public/favicon.svg +0 -28
  9. package/.storybook/public/movies.json +0 -2153
  10. package/.storybook/public/population.json +0 -1178
  11. package/.storybook/public/town-74.geojson +0 -8995
  12. package/.storybook/public/town-74.json +0 -4062
  13. package/.storybook/theme.ts +0 -14
  14. package/Makefile +0 -14
  15. package/TODO.md +0 -5
  16. package/images/logo-shadow.svg +0 -173
  17. package/images/logo.svg +0 -76
  18. package/postcss.config.js +0 -7
  19. package/src/components/autocomplete/Autocomplete.stories.tsx +0 -89
  20. package/src/components/autocomplete/Autocomplete.tsx +0 -316
  21. package/src/components/autocomplete/AutocompleteOption.tsx +0 -35
  22. package/src/components/autocomplete/LazyAutocomplete.tsx +0 -130
  23. package/src/components/autocomplete/SimpleAutocomplete.tsx +0 -74
  24. package/src/components/autocomplete/index.ts +0 -6
  25. package/src/components/autocomplete/useAutocompleteContext.ts +0 -20
  26. package/src/components/autocomplete/util.ts +0 -19
  27. package/src/components/badge/Badge.stories.tsx +0 -72
  28. package/src/components/badge/Badge.tsx +0 -70
  29. package/src/components/button/Button.stories.tsx +0 -189
  30. package/src/components/button/Button.test.tsx +0 -20
  31. package/src/components/button/Button.tsx +0 -200
  32. package/src/components/button/ButtonGroup.stories.tsx +0 -46
  33. package/src/components/button/ButtonGroup.tsx +0 -29
  34. package/src/components/button/index.ts +0 -2
  35. package/src/components/card/Card.stories.tsx +0 -21
  36. package/src/components/card/config.ts +0 -4
  37. package/src/components/card/index.ts +0 -1
  38. package/src/components/code/Code.tsx +0 -15
  39. package/src/components/context-menu/ContextMenu.stories.tsx +0 -22
  40. package/src/components/context-menu/ContextMenu.tsx +0 -175
  41. package/src/components/context-menu/ContextMenuItem.tsx +0 -34
  42. package/src/components/context-menu/index.ts +0 -2
  43. package/src/components/dialog/Dialog.stories.tsx +0 -270
  44. package/src/components/dialog/Dialog.tsx +0 -46
  45. package/src/components/dialog/index.ts +0 -1
  46. package/src/components/dialog/util.ts +0 -29
  47. package/src/components/dropdown-menu/DropdownMenu.stories.tsx +0 -19
  48. package/src/components/dropdown-menu/DropdownMenu.tsx +0 -12
  49. package/src/components/dropdown-menu/DropdownMenuContent.tsx +0 -46
  50. package/src/components/dropdown-menu/DropdownMenuItem.tsx +0 -33
  51. package/src/components/dropdown-menu/DropdownMenuTrigger.tsx +0 -42
  52. package/src/components/dropdown-menu/index.ts +0 -7
  53. package/src/components/dropdown-menu/interface.d.ts +0 -13
  54. package/src/components/dropdown-menu/useDropdownMenu.tsx +0 -115
  55. package/src/components/dropdown-menu/useDropdownMenuContext.ts +0 -16
  56. package/src/components/dropdown-menu-nested/DropdownMenuNested.stories.tsx +0 -33
  57. package/src/components/dropdown-menu-nested/DropdownMenuNested.tsx +0 -19
  58. package/src/components/dropdown-menu-nested/MenuContext.ts +0 -15
  59. package/src/components/dropdown-menu-nested/MenuItem.tsx +0 -43
  60. package/src/components/dropdown-menu-nested/MenuItemWithChildren.tsx +0 -204
  61. package/src/components/dropdown-menu-nested/index.ts +0 -3
  62. package/src/components/flash/Flash.stories.tsx +0 -34
  63. package/src/components/flash/Flash.tsx +0 -24
  64. package/src/components/highlight/Highlight.stories.tsx +0 -128
  65. package/src/components/highlight/Highlight.tsx +0 -29
  66. package/src/components/href/Href.stories.tsx +0 -55
  67. package/src/components/href/Href.tsx +0 -18
  68. package/src/components/input/Checkbox.stories.tsx +0 -52
  69. package/src/components/input/Checkbox.tsx +0 -41
  70. package/src/components/input/Input.stories.tsx +0 -103
  71. package/src/components/input/Input.test.tsx +0 -10
  72. package/src/components/input/Input.tsx +0 -60
  73. package/src/components/input/RadioGroup.stories.tsx +0 -76
  74. package/src/components/input/RadioGroup.tsx +0 -84
  75. package/src/components/input/Toggle.stories.tsx +0 -29
  76. package/src/components/input/Toggle.tsx +0 -35
  77. package/src/components/input/index.ts +0 -4
  78. package/src/components/input-field/InputField.stories.tsx +0 -227
  79. package/src/components/input-field/InputField.tsx +0 -62
  80. package/src/components/loader/Loader.stories.tsx +0 -37
  81. package/src/components/loader/Loader.tsx +0 -54
  82. package/src/components/modal/Components.tsx +0 -58
  83. package/src/components/modal/Modal.stories.tsx +0 -113
  84. package/src/components/modal/Modal.tsx +0 -13
  85. package/src/components/modal/ModalContent.tsx +0 -46
  86. package/src/components/modal/ModalTrigger.tsx +0 -41
  87. package/src/components/modal/index.ts +0 -7
  88. package/src/components/modal/interface.d.ts +0 -10
  89. package/src/components/modal/useModal.ts +0 -48
  90. package/src/components/modal/useModalContext.ts +0 -16
  91. package/src/components/notification/Notification.stories.tsx +0 -51
  92. package/src/components/notification/NotificationsContext.ts +0 -79
  93. package/src/components/notification/NotificationsProvider.tsx +0 -58
  94. package/src/components/notification/index.ts +0 -2
  95. package/src/components/popover/Components.tsx +0 -45
  96. package/src/components/popover/Popover.stories.tsx +0 -46
  97. package/src/components/popover/Popover.test.tsx +0 -21
  98. package/src/components/popover/Popover.tsx +0 -12
  99. package/src/components/popover/PopoverContent.tsx +0 -46
  100. package/src/components/popover/PopoverTrigger.tsx +0 -42
  101. package/src/components/popover/index.ts +0 -7
  102. package/src/components/popover/interface.d.ts +0 -13
  103. package/src/components/popover/usePopover.tsx +0 -80
  104. package/src/components/popover/usePopoverContext.ts +0 -16
  105. package/src/components/portal/Portal.tsx +0 -12
  106. package/src/components/quick-settings/QuickSettings.stories.tsx +0 -182
  107. package/src/components/resize-area/ResizeArea.stories.css +0 -40
  108. package/src/components/resize-area/ResizeArea.stories.tsx +0 -30
  109. package/src/components/resize-area/ResizeArea.tsx +0 -79
  110. package/src/components/scroll/Scroll.stories.tsx +0 -81
  111. package/src/components/scroll/Scroll.tsx +0 -111
  112. package/src/components/select/Select.stories.tsx +0 -248
  113. package/src/components/select/Select.tsx +0 -362
  114. package/src/components/select/SelectOption.tsx +0 -29
  115. package/src/components/select/SelectSelection.tsx +0 -13
  116. package/src/components/select/index.ts +0 -5
  117. package/src/components/select/interface.d.ts +0 -36
  118. package/src/components/select/useSelectContext.ts +0 -19
  119. package/src/components/select/util.ts +0 -12
  120. package/src/components/snack/Snack.stories.tsx +0 -33
  121. package/src/components/snack/Snack.tsx +0 -47
  122. package/src/components/sortable/Sortable.stories.tsx +0 -98
  123. package/src/components/sortable/Sortable.tsx +0 -37
  124. package/src/components/sortable/index.ts +0 -2
  125. package/src/components/sortable/types.d.ts +0 -12
  126. package/src/components/steps/Step.tsx +0 -41
  127. package/src/components/steps/Steps.stories.tsx +0 -141
  128. package/src/components/steps/Steps.tsx +0 -49
  129. package/src/components/steps/index.ts +0 -3
  130. package/src/components/steps/util.ts +0 -3
  131. package/src/components/table/Table.stories.tsx +0 -36
  132. package/src/components/table/Table.tsx +0 -13
  133. package/src/components/table/TableBody.tsx +0 -9
  134. package/src/components/table/TableCell.tsx +0 -16
  135. package/src/components/table/TableFooter.tsx +0 -9
  136. package/src/components/table/TableHeader.tsx +0 -14
  137. package/src/components/table/TableHeaderCell.tsx +0 -14
  138. package/src/components/table/TableRow.tsx +0 -14
  139. package/src/components/table/index.ts +0 -7
  140. package/src/components/tabs/Tabs.stories.tsx +0 -66
  141. package/src/components/tabs/Tabs.tsx +0 -80
  142. package/src/components/tooltip/SimpleTooltip.tsx +0 -17
  143. package/src/components/tooltip/Tooltip.stories.tsx +0 -129
  144. package/src/components/tooltip/Tooltip.test.tsx +0 -18
  145. package/src/components/tooltip/Tooltip.tsx +0 -13
  146. package/src/components/tooltip/TooltipContent.tsx +0 -41
  147. package/src/components/tooltip/TooltipTrigger.tsx +0 -36
  148. package/src/components/tooltip/index.ts +0 -6
  149. package/src/components/tooltip/interface.d.ts +0 -15
  150. package/src/components/tooltip/useTooltip.ts +0 -87
  151. package/src/components/tooltip/useTooltipContext.ts +0 -16
  152. package/src/env.d.ts +0 -27
  153. package/src/hooks/index.ts +0 -13
  154. package/src/hooks/useCombinedRefs.test.tsx +0 -42
  155. package/src/hooks/useCombinedRefs.ts +0 -21
  156. package/src/hooks/useCopyToClipboard.ts +0 -28
  157. package/src/hooks/useDebounce.ts +0 -59
  158. package/src/hooks/useEventCallback.ts +0 -13
  159. package/src/hooks/useEventListener.ts +0 -86
  160. package/src/hooks/useFetch.tsx +0 -21
  161. package/src/hooks/useIsClosing.ts +0 -25
  162. package/src/hooks/useIsMounted.tsx +0 -16
  163. package/src/hooks/useIsomorphicLayoutEffect.ts +0 -4
  164. package/src/hooks/useNotifications.tsx +0 -13
  165. package/src/hooks/useOnClickOutside.ts +0 -35
  166. package/src/hooks/usePrevious.ts +0 -9
  167. package/src/hooks/useRipple.test.tsx +0 -52
  168. package/src/hooks/useRipple.tsx +0 -79
  169. package/src/index.css +0 -14
  170. package/src/index.ts +0 -39
  171. package/src/lib/arrUtil.ts +0 -8
  172. package/src/lib/error.ts +0 -18
  173. package/src/lib/fetch.test.ts +0 -107
  174. package/src/lib/fetch.ts +0 -115
  175. package/src/lib/index.ts +0 -3
  176. package/src/lib/tailwindVariants.ts +0 -35
  177. package/src/redux/index.ts +0 -1
  178. package/src/redux/notification/components/NotificationConsumer.tsx +0 -52
  179. package/src/redux/notification/errorCatcherMiddleware.ts +0 -17
  180. package/src/redux/notification/hooks/useNotification.ts +0 -26
  181. package/src/redux/notification/index.ts +0 -5
  182. package/src/redux/notification/notificationSlice.ts +0 -68
  183. package/src/styles/Animation.stories.tsx +0 -43
  184. package/src/styles/Shadow.stories.tsx +0 -43
  185. package/src/styles/Themes.stories.tsx +0 -31
  186. package/src/styles/Typography.stories.tsx +0 -101
  187. package/src/types.d.ts +0 -12
  188. package/tailwind.config.js +0 -18
  189. package/tests/README.md +0 -32
  190. package/tests/setup.ts +0 -1
  191. package/tsconfig.json +0 -14
  192. package/tsup.config.ts +0 -23
  193. package/vite.config.ts +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentatrion-design",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "Hugues Tavernier",
@@ -12,6 +12,10 @@
12
12
  "./redux": "./dist/redux/index.js",
13
13
  "./src/*": "./src/*"
14
14
  },
15
+ "files": [
16
+ "dist/",
17
+ "src/tailwind"
18
+ ],
15
19
  "type": "module",
16
20
  "devDependencies": {
17
21
  "@floating-ui/react-dom": "^2.0.9",
@@ -1,33 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/react-vite";
2
- import { resolve } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
-
5
- import type {} from "@storybook/types";
6
-
7
- const projectDir = resolve(fileURLToPath(new URL("..", import.meta.url)));
8
-
9
- const config: StorybookConfig = {
10
- stories: [
11
- `${projectDir}/src/styles/**/*.stories.@(ts|tsx)`,
12
- `${projectDir}/src/components/**/*.stories.@(ts|tsx)`,
13
- ],
14
- addons: [
15
- "@storybook/addon-links",
16
- "@storybook/addon-essentials",
17
- "@storybook/addon-interactions",
18
- "@storybook/addon-themes",
19
- ],
20
- framework: {
21
- name: "@storybook/react-vite",
22
- options: {},
23
- },
24
- core: {
25
- disableTelemetry: true,
26
- disableWhatsNewNotifications: true,
27
- },
28
- docs: {
29
- autodocs: "tag",
30
- },
31
- staticDirs: ["./public"],
32
- };
33
- export default config;
@@ -1,8 +0,0 @@
1
- import { addons } from "@storybook/manager-api";
2
- import theme from "./theme";
3
-
4
- // https://storybook.js.org/docs/react/configure/features-and-behavior
5
- addons.setConfig({
6
- theme,
7
- showToolbar: true
8
- })
@@ -1,2 +0,0 @@
1
- <link rel="icon" href="/favicon-32x32.png" type="image/png">
2
- <link rel="icon" href="/favicon.svg" type="image/svg+xml">
@@ -1,26 +0,0 @@
1
- import type { Preview } from "@storybook/react";
2
- import { withThemeByClassName } from "@storybook/addon-themes";
3
- import "../src/index.css";
4
-
5
- // https://storybook.js.org/docs/react/configure/overview#configure-story-rendering
6
- const preview: Preview = {
7
- decorators: [
8
- withThemeByClassName({
9
- themes: {
10
- light: "light",
11
- dark: "dark",
12
- },
13
- defaultTheme: "light",
14
- }),
15
- ],
16
- parameters: {
17
- controls: {
18
- matchers: {
19
- color: /(background|color)$/i,
20
- date: /Date$/,
21
- },
22
- },
23
- },
24
- };
25
-
26
- export default preview;
Binary file
Binary file
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg xmlns:dc="http://purl.org/dc/elements/1.1/"
3
- xmlns:cc="http://creativecommons.org/ns#"
4
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5
- xmlns:svg="http://www.w3.org/2000/svg"
6
- xmlns="http://www.w3.org/2000/svg"
7
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
8
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="pentagone.svg" inkscape:version="1.0 (4035a4fb49, 2020-05-01)" id="svg8" version="1.1" viewBox="0 0 26.458333 26.458334" height="48" width="48">
9
- <defs id="defs2">
10
- <inkscape:perspective id="perspective845" inkscape:persp3d-origin="13.229166 : 8.8194447 : 1" inkscape:vp_z="26.458333 : 13.229167 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 13.229167 : 1" sodipodi:type="inkscape:persp3d" />
11
- </defs>
12
- <sodipodi:namedview inkscape:window-maximized="1" inkscape:window-y="19" inkscape:window-x="1912" inkscape:window-height="997" inkscape:window-width="1680" inkscape:snap-intersection-paths="true" inkscape:object-paths="false" inkscape:object-nodes="true" inkscape:snap-midpoints="false" inkscape:snap-grids="false" inkscape:guide-bbox="true" showguides="false" inkscape:snap-object-midpoints="true" units="px" showgrid="false" inkscape:document-rotation="0" inkscape:current-layer="svg8" inkscape:document-units="px" inkscape:cy="78.866254" inkscape:cx="21.227076" inkscape:zoom="4" inkscape:pageshadow="2" inkscape:pageopacity="0.0" borderopacity="1.0" bordercolor="#666666" pagecolor="#ffffff" id="base">
13
- <inkscape:grid id="grid841" type="xygrid" />
14
- <sodipodi:guide id="guide913" orientation="1,0" position="13.229166,11.90625" />
15
- <sodipodi:guide id="guide915" orientation="0,-1" position="10.583333,13.229167" />
16
- </sodipodi:namedview>
17
- <metadata id="metadata5">
18
- <rdf:RDF>
19
- <cc:Work rdf:about="">
20
- <dc:format>image/svg+xml</dc:format>
21
- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
22
- <dc:title></dc:title>
23
- </cc:Work>
24
- </rdf:RDF>
25
- </metadata>
26
- <path transform="scale(0.26458333)" d="M 50,5 7.203125,36.09375 11.957031,37.638672 50,10 88.042969,37.638672 73.511719,82.361328 H 26.488281 l -2.939453,4.044922 h 52.902344 l 16.345703,-50.3125 z" inkscape:transform-center-y="-1.1369459" style="display:inline;opacity:1;fill:#ffe64b;fill-opacity:1;stroke:none;stroke-width:0.999999" id="path957" />
27
- <path id="path1003" d="M 12.695349,3.033658 13.229877,2.64635 13.7635,3.0340334 v 9.4597776 l 8.997291,-2.9231388 0.532786,0.3870756 -0.202812,0.6284712 -6.342433,2.061071 2.971976,8.312144 -0.270177,0.83152 -0.567112,4.8e-4 -3.152713,-8.813415 -1.966805,0.648023 0.001,8.165392 h -1.070736 v -7.826925 l -7.4425706,2.41903 1.76023,5.407895 L 6.2306273,22.861653 1.9058268,9.5498046 3.1636311,9.9585652 4.9206298,15.36702 12.695349,12.841076 Z" style="fill:#444444;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" />
28
- </svg>