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.
- package/package.json +5 -1
- package/.storybook/main.ts +0 -33
- package/.storybook/manager.ts +0 -8
- package/.storybook/preview-head.html +0 -2
- package/.storybook/preview.ts +0 -26
- package/.storybook/public/bg-map.jpg +0 -0
- package/.storybook/public/favicon-32x32.png +0 -0
- package/.storybook/public/favicon.svg +0 -28
- package/.storybook/public/movies.json +0 -2153
- package/.storybook/public/population.json +0 -1178
- package/.storybook/public/town-74.geojson +0 -8995
- package/.storybook/public/town-74.json +0 -4062
- package/.storybook/theme.ts +0 -14
- package/Makefile +0 -14
- package/TODO.md +0 -5
- package/images/logo-shadow.svg +0 -173
- package/images/logo.svg +0 -76
- package/postcss.config.js +0 -7
- package/src/components/autocomplete/Autocomplete.stories.tsx +0 -89
- package/src/components/autocomplete/Autocomplete.tsx +0 -316
- package/src/components/autocomplete/AutocompleteOption.tsx +0 -35
- package/src/components/autocomplete/LazyAutocomplete.tsx +0 -130
- package/src/components/autocomplete/SimpleAutocomplete.tsx +0 -74
- package/src/components/autocomplete/index.ts +0 -6
- package/src/components/autocomplete/useAutocompleteContext.ts +0 -20
- package/src/components/autocomplete/util.ts +0 -19
- package/src/components/badge/Badge.stories.tsx +0 -72
- package/src/components/badge/Badge.tsx +0 -70
- package/src/components/button/Button.stories.tsx +0 -189
- package/src/components/button/Button.test.tsx +0 -20
- package/src/components/button/Button.tsx +0 -200
- package/src/components/button/ButtonGroup.stories.tsx +0 -46
- package/src/components/button/ButtonGroup.tsx +0 -29
- package/src/components/button/index.ts +0 -2
- package/src/components/card/Card.stories.tsx +0 -21
- package/src/components/card/config.ts +0 -4
- package/src/components/card/index.ts +0 -1
- package/src/components/code/Code.tsx +0 -15
- package/src/components/context-menu/ContextMenu.stories.tsx +0 -22
- package/src/components/context-menu/ContextMenu.tsx +0 -175
- package/src/components/context-menu/ContextMenuItem.tsx +0 -34
- package/src/components/context-menu/index.ts +0 -2
- package/src/components/dialog/Dialog.stories.tsx +0 -270
- package/src/components/dialog/Dialog.tsx +0 -46
- package/src/components/dialog/index.ts +0 -1
- package/src/components/dialog/util.ts +0 -29
- package/src/components/dropdown-menu/DropdownMenu.stories.tsx +0 -19
- package/src/components/dropdown-menu/DropdownMenu.tsx +0 -12
- package/src/components/dropdown-menu/DropdownMenuContent.tsx +0 -46
- package/src/components/dropdown-menu/DropdownMenuItem.tsx +0 -33
- package/src/components/dropdown-menu/DropdownMenuTrigger.tsx +0 -42
- package/src/components/dropdown-menu/index.ts +0 -7
- package/src/components/dropdown-menu/interface.d.ts +0 -13
- package/src/components/dropdown-menu/useDropdownMenu.tsx +0 -115
- package/src/components/dropdown-menu/useDropdownMenuContext.ts +0 -16
- package/src/components/dropdown-menu-nested/DropdownMenuNested.stories.tsx +0 -33
- package/src/components/dropdown-menu-nested/DropdownMenuNested.tsx +0 -19
- package/src/components/dropdown-menu-nested/MenuContext.ts +0 -15
- package/src/components/dropdown-menu-nested/MenuItem.tsx +0 -43
- package/src/components/dropdown-menu-nested/MenuItemWithChildren.tsx +0 -204
- package/src/components/dropdown-menu-nested/index.ts +0 -3
- package/src/components/flash/Flash.stories.tsx +0 -34
- package/src/components/flash/Flash.tsx +0 -24
- package/src/components/highlight/Highlight.stories.tsx +0 -128
- package/src/components/highlight/Highlight.tsx +0 -29
- package/src/components/href/Href.stories.tsx +0 -55
- package/src/components/href/Href.tsx +0 -18
- package/src/components/input/Checkbox.stories.tsx +0 -52
- package/src/components/input/Checkbox.tsx +0 -41
- package/src/components/input/Input.stories.tsx +0 -103
- package/src/components/input/Input.test.tsx +0 -10
- package/src/components/input/Input.tsx +0 -60
- package/src/components/input/RadioGroup.stories.tsx +0 -76
- package/src/components/input/RadioGroup.tsx +0 -84
- package/src/components/input/Toggle.stories.tsx +0 -29
- package/src/components/input/Toggle.tsx +0 -35
- package/src/components/input/index.ts +0 -4
- package/src/components/input-field/InputField.stories.tsx +0 -227
- package/src/components/input-field/InputField.tsx +0 -62
- package/src/components/loader/Loader.stories.tsx +0 -37
- package/src/components/loader/Loader.tsx +0 -54
- package/src/components/modal/Components.tsx +0 -58
- package/src/components/modal/Modal.stories.tsx +0 -113
- package/src/components/modal/Modal.tsx +0 -13
- package/src/components/modal/ModalContent.tsx +0 -46
- package/src/components/modal/ModalTrigger.tsx +0 -41
- package/src/components/modal/index.ts +0 -7
- package/src/components/modal/interface.d.ts +0 -10
- package/src/components/modal/useModal.ts +0 -48
- package/src/components/modal/useModalContext.ts +0 -16
- package/src/components/notification/Notification.stories.tsx +0 -51
- package/src/components/notification/NotificationsContext.ts +0 -79
- package/src/components/notification/NotificationsProvider.tsx +0 -58
- package/src/components/notification/index.ts +0 -2
- package/src/components/popover/Components.tsx +0 -45
- package/src/components/popover/Popover.stories.tsx +0 -46
- package/src/components/popover/Popover.test.tsx +0 -21
- package/src/components/popover/Popover.tsx +0 -12
- package/src/components/popover/PopoverContent.tsx +0 -46
- package/src/components/popover/PopoverTrigger.tsx +0 -42
- package/src/components/popover/index.ts +0 -7
- package/src/components/popover/interface.d.ts +0 -13
- package/src/components/popover/usePopover.tsx +0 -80
- package/src/components/popover/usePopoverContext.ts +0 -16
- package/src/components/portal/Portal.tsx +0 -12
- package/src/components/quick-settings/QuickSettings.stories.tsx +0 -182
- package/src/components/resize-area/ResizeArea.stories.css +0 -40
- package/src/components/resize-area/ResizeArea.stories.tsx +0 -30
- package/src/components/resize-area/ResizeArea.tsx +0 -79
- package/src/components/scroll/Scroll.stories.tsx +0 -81
- package/src/components/scroll/Scroll.tsx +0 -111
- package/src/components/select/Select.stories.tsx +0 -248
- package/src/components/select/Select.tsx +0 -362
- package/src/components/select/SelectOption.tsx +0 -29
- package/src/components/select/SelectSelection.tsx +0 -13
- package/src/components/select/index.ts +0 -5
- package/src/components/select/interface.d.ts +0 -36
- package/src/components/select/useSelectContext.ts +0 -19
- package/src/components/select/util.ts +0 -12
- package/src/components/snack/Snack.stories.tsx +0 -33
- package/src/components/snack/Snack.tsx +0 -47
- package/src/components/sortable/Sortable.stories.tsx +0 -98
- package/src/components/sortable/Sortable.tsx +0 -37
- package/src/components/sortable/index.ts +0 -2
- package/src/components/sortable/types.d.ts +0 -12
- package/src/components/steps/Step.tsx +0 -41
- package/src/components/steps/Steps.stories.tsx +0 -141
- package/src/components/steps/Steps.tsx +0 -49
- package/src/components/steps/index.ts +0 -3
- package/src/components/steps/util.ts +0 -3
- package/src/components/table/Table.stories.tsx +0 -36
- package/src/components/table/Table.tsx +0 -13
- package/src/components/table/TableBody.tsx +0 -9
- package/src/components/table/TableCell.tsx +0 -16
- package/src/components/table/TableFooter.tsx +0 -9
- package/src/components/table/TableHeader.tsx +0 -14
- package/src/components/table/TableHeaderCell.tsx +0 -14
- package/src/components/table/TableRow.tsx +0 -14
- package/src/components/table/index.ts +0 -7
- package/src/components/tabs/Tabs.stories.tsx +0 -66
- package/src/components/tabs/Tabs.tsx +0 -80
- package/src/components/tooltip/SimpleTooltip.tsx +0 -17
- package/src/components/tooltip/Tooltip.stories.tsx +0 -129
- package/src/components/tooltip/Tooltip.test.tsx +0 -18
- package/src/components/tooltip/Tooltip.tsx +0 -13
- package/src/components/tooltip/TooltipContent.tsx +0 -41
- package/src/components/tooltip/TooltipTrigger.tsx +0 -36
- package/src/components/tooltip/index.ts +0 -6
- package/src/components/tooltip/interface.d.ts +0 -15
- package/src/components/tooltip/useTooltip.ts +0 -87
- package/src/components/tooltip/useTooltipContext.ts +0 -16
- package/src/env.d.ts +0 -27
- package/src/hooks/index.ts +0 -13
- package/src/hooks/useCombinedRefs.test.tsx +0 -42
- package/src/hooks/useCombinedRefs.ts +0 -21
- package/src/hooks/useCopyToClipboard.ts +0 -28
- package/src/hooks/useDebounce.ts +0 -59
- package/src/hooks/useEventCallback.ts +0 -13
- package/src/hooks/useEventListener.ts +0 -86
- package/src/hooks/useFetch.tsx +0 -21
- package/src/hooks/useIsClosing.ts +0 -25
- package/src/hooks/useIsMounted.tsx +0 -16
- package/src/hooks/useIsomorphicLayoutEffect.ts +0 -4
- package/src/hooks/useNotifications.tsx +0 -13
- package/src/hooks/useOnClickOutside.ts +0 -35
- package/src/hooks/usePrevious.ts +0 -9
- package/src/hooks/useRipple.test.tsx +0 -52
- package/src/hooks/useRipple.tsx +0 -79
- package/src/index.css +0 -14
- package/src/index.ts +0 -39
- package/src/lib/arrUtil.ts +0 -8
- package/src/lib/error.ts +0 -18
- package/src/lib/fetch.test.ts +0 -107
- package/src/lib/fetch.ts +0 -115
- package/src/lib/index.ts +0 -3
- package/src/lib/tailwindVariants.ts +0 -35
- package/src/redux/index.ts +0 -1
- package/src/redux/notification/components/NotificationConsumer.tsx +0 -52
- package/src/redux/notification/errorCatcherMiddleware.ts +0 -17
- package/src/redux/notification/hooks/useNotification.ts +0 -26
- package/src/redux/notification/index.ts +0 -5
- package/src/redux/notification/notificationSlice.ts +0 -68
- package/src/styles/Animation.stories.tsx +0 -43
- package/src/styles/Shadow.stories.tsx +0 -43
- package/src/styles/Themes.stories.tsx +0 -31
- package/src/styles/Typography.stories.tsx +0 -101
- package/src/types.d.ts +0 -12
- package/tailwind.config.js +0 -18
- package/tests/README.md +0 -32
- package/tests/setup.ts +0 -1
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -23
- 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.
|
|
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",
|
package/.storybook/main.ts
DELETED
|
@@ -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;
|
package/.storybook/manager.ts
DELETED
package/.storybook/preview.ts
DELETED
|
@@ -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>
|