@gyramais/gyra-design 0.1.0 → 0.1.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/dist/components/Avatar/Avatar.d.ts +10 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +7 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/Button/Button.d.ts +18 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +7 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Card/Card.d.ts +17 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +37 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Chart/Chart.d.ts +26 -0
- package/dist/components/Chart/index.d.ts +1 -0
- package/dist/components/Chart/index.js +28 -0
- package/dist/components/Chart/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +37 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Col/Col.d.ts +17 -0
- package/dist/components/Col/index.d.ts +1 -0
- package/dist/components/Col/index.js +7 -0
- package/dist/components/Col/index.js.map +1 -0
- package/dist/components/Collapse/Collapse.d.ts +10 -0
- package/dist/components/Collapse/CollapseIcon.d.ts +10 -0
- package/dist/components/Collapse/index.d.ts +2 -0
- package/dist/components/Collapse/index.js +37 -0
- package/dist/components/Collapse/index.js.map +1 -0
- package/dist/components/Divider/Divider.d.ts +10 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +7 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +11 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +7 -0
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +21 -0
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.js +7 -0
- package/dist/components/DropdownMenu/index.js.map +1 -0
- package/dist/components/Filter/Filter.d.ts +22 -0
- package/dist/components/Filter/index.d.ts +1 -0
- package/dist/components/Filter/index.js +37 -0
- package/dist/components/Filter/index.js.map +1 -0
- package/dist/components/Form/Form.d.ts +3 -0
- package/dist/components/Form/Item.d.ts +11 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.js +2 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +14 -0
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/HoverCard/index.js +7 -0
- package/dist/components/HoverCard/index.js.map +1 -0
- package/dist/components/Icon/Icon.d.ts +10 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/index.js +7 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/IconDisplay/IconDisplay.d.ts +9 -0
- package/dist/components/IconDisplay/index.d.ts +1 -0
- package/dist/components/IconDisplay/index.js +7 -0
- package/dist/components/IconDisplay/index.js.map +1 -0
- package/dist/components/Information/Information.d.ts +10 -0
- package/dist/components/Information/index.d.ts +1 -0
- package/dist/components/Information/index.js +7 -0
- package/dist/components/Information/index.js.map +1 -0
- package/dist/components/Input/Input.d.ts +17 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +7 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Label/Label.d.ts +5 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Label/index.js +2 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Layout/Content.d.ts +9 -0
- package/dist/components/Layout/Header.d.ts +9 -0
- package/dist/components/Layout/Layout.d.ts +10 -0
- package/dist/components/Layout/Sider.d.ts +9 -0
- package/{src/components/Layout/index.ts → dist/components/Layout/index.d.ts} +1 -1
- package/dist/components/Layout/index.js +7 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/dist/components/List/List.d.ts +14 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +8 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/Loading/Loading.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/Loading/index.js +7 -0
- package/dist/components/Loading/index.js.map +1 -0
- package/dist/components/Logo/Logo.d.ts +11 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/index.js +7 -0
- package/dist/components/Logo/index.js.map +1 -0
- package/dist/components/Menubar/Menubar.d.ts +24 -0
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Menubar/index.js +7 -0
- package/dist/components/Menubar/index.js.map +1 -0
- package/dist/components/Row/Row.d.ts +18 -0
- package/dist/components/Row/index.d.ts +1 -0
- package/dist/components/Row/index.js +7 -0
- package/dist/components/Row/index.js.map +1 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +7 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Table/Table.d.ts +20 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +37 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +15 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +7 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tag/Tag.d.ts +10 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +7 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/Toast/Toast.d.ts +4 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/index.css +3778 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js.map +1 -0
- package/dist/shadcn/checkbox.d.ts +4 -0
- package/dist/shadcn/dropdown-menu.d.ts +27 -0
- package/dist/shadcn/form.d.ts +22 -0
- package/dist/shadcn/hover-card.d.ts +6 -0
- package/dist/shadcn/label.d.ts +5 -0
- package/dist/shadcn/lib/utils.d.ts +2 -0
- package/dist/shadcn/menubar.d.ts +31 -0
- package/dist/shadcn/switch.d.ts +4 -0
- package/dist/shadcn/table.d.ts +10 -0
- package/dist/shadcn/tabs.d.ts +7 -0
- package/dist/shadcn/tooltip.d.ts +7 -0
- package/dist/theme.d.ts +18 -0
- package/package.json +85 -82
- package/{README.md → readme.md} +31 -31
- package/.eslintrc.json +0 -14
- package/.storybook/main.ts +0 -20
- package/.storybook/preview.ts +0 -45
- package/postcss.config.js +0 -6
- package/rollup.config.js +0 -104
- package/scripts/build-utils.js +0 -16
- package/src/components/Avatar/Avatar.stories.tsx +0 -26
- package/src/components/Avatar/Avatar.tsx +0 -36
- package/src/components/Avatar/index.css +0 -9
- package/src/components/Avatar/index.ts +0 -1
- package/src/components/Button/Button.stories.tsx +0 -99
- package/src/components/Button/Button.tsx +0 -71
- package/src/components/Button/index.css +0 -168
- package/src/components/Button/index.ts +0 -1
- package/src/components/Card/Card.stories.tsx +0 -126
- package/src/components/Card/Card.tsx +0 -111
- package/src/components/Card/index.css +0 -96
- package/src/components/Card/index.ts +0 -1
- package/src/components/Chart/Chart.stories.tsx +0 -61
- package/src/components/Chart/Chart.tsx +0 -192
- package/src/components/Chart/index.css +0 -15
- package/src/components/Chart/index.ts +0 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -46
- package/src/components/Checkbox/Checkbox.tsx +0 -46
- package/src/components/Checkbox/index.css +0 -29
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/Col/Col.stories.tsx +0 -33
- package/src/components/Col/Col.tsx +0 -45
- package/src/components/Col/index.css +0 -57
- package/src/components/Col/index.ts +0 -1
- package/src/components/Collapse/Collapse.stories.tsx +0 -86
- package/src/components/Collapse/Collapse.tsx +0 -34
- package/src/components/Collapse/CollapseIcon.tsx +0 -33
- package/src/components/Collapse/index.css +0 -14
- package/src/components/Collapse/index.ts +0 -2
- package/src/components/Divider/Divider.stories.tsx +0 -45
- package/src/components/Divider/Divider.tsx +0 -42
- package/src/components/Divider/index.css +0 -20
- package/src/components/Divider/index.ts +0 -1
- package/src/components/Drawer/Drawer.stories.tsx +0 -51
- package/src/components/Drawer/Drawer.tsx +0 -40
- package/src/components/Drawer/index.css +0 -15
- package/src/components/Drawer/index.ts +0 -1
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +0 -66
- package/src/components/DropdownMenu/DropdownMenu.tsx +0 -91
- package/src/components/DropdownMenu/index.css +0 -18
- package/src/components/DropdownMenu/index.ts +0 -1
- package/src/components/Filter/Filter.stories.tsx +0 -94
- package/src/components/Filter/Filter.tsx +0 -213
- package/src/components/Filter/index.css +0 -81
- package/src/components/Filter/index.ts +0 -1
- package/src/components/Form/Form.tsx +0 -11
- package/src/components/Form/Item.tsx +0 -33
- package/src/components/Form/index.css +0 -4
- package/src/components/Form/index.ts +0 -1
- package/src/components/HoverCard/HoverCard.stories.tsx +0 -48
- package/src/components/HoverCard/HoverCard.tsx +0 -54
- package/src/components/HoverCard/index.css +0 -15
- package/src/components/HoverCard/index.ts +0 -1
- package/src/components/Icon/Icon.stories.tsx +0 -23
- package/src/components/Icon/Icon.tsx +0 -36
- package/src/components/Icon/index.css +0 -3
- package/src/components/Icon/index.ts +0 -1
- package/src/components/IconDisplay/IconDisplay.stories.tsx +0 -27
- package/src/components/IconDisplay/IconDisplay.tsx +0 -29
- package/src/components/IconDisplay/index.css +0 -18
- package/src/components/IconDisplay/index.ts +0 -1
- package/src/components/Information/Information.stories.tsx +0 -25
- package/src/components/Information/Information.tsx +0 -50
- package/src/components/Information/index.css +0 -34
- package/src/components/Information/index.ts +0 -1
- package/src/components/Input/Input.stories.tsx +0 -38
- package/src/components/Input/Input.tsx +0 -91
- package/src/components/Input/index.css +0 -74
- package/src/components/Input/index.ts +0 -1
- package/src/components/Label/Label.tsx +0 -26
- package/src/components/Label/index.ts +0 -1
- package/src/components/Layout/Content.tsx +0 -29
- package/src/components/Layout/Header.tsx +0 -29
- package/src/components/Layout/Layout.stories.tsx +0 -54
- package/src/components/Layout/Layout.tsx +0 -32
- package/src/components/Layout/Sider.tsx +0 -29
- package/src/components/Layout/index.css +0 -37
- package/src/components/List/List.stories.tsx +0 -58
- package/src/components/List/List.tsx +0 -98
- package/src/components/List/index.css +0 -54
- package/src/components/List/index.ts +0 -1
- package/src/components/Loading/Loading.stories.tsx +0 -23
- package/src/components/Loading/Loading.tsx +0 -51
- package/src/components/Loading/index.css +0 -36
- package/src/components/Loading/index.ts +0 -1
- package/src/components/Logo/Logo.stories.tsx +0 -34
- package/src/components/Logo/Logo.tsx +0 -39
- package/src/components/Logo/index.css +0 -9
- package/src/components/Logo/index.ts +0 -1
- package/src/components/Menubar/Menubar.stories.tsx +0 -55
- package/src/components/Menubar/Menubar.tsx +0 -118
- package/src/components/Menubar/index.css +0 -96
- package/src/components/Menubar/index.ts +0 -1
- package/src/components/Row/Row.stories.tsx +0 -33
- package/src/components/Row/Row.tsx +0 -48
- package/src/components/Row/index.css +0 -116
- package/src/components/Row/index.ts +0 -1
- package/src/components/Switch/Switch.stories.tsx +0 -39
- package/src/components/Switch/Switch.tsx +0 -36
- package/src/components/Switch/index.css +0 -37
- package/src/components/Switch/index.ts +0 -1
- package/src/components/Table/Table.stories.tsx +0 -85
- package/src/components/Table/Table.tsx +0 -123
- package/src/components/Table/index.css +0 -74
- package/src/components/Table/index.ts +0 -1
- package/src/components/Tabs/Tabs.stories.tsx +0 -49
- package/src/components/Tabs/Tabs.tsx +0 -76
- package/src/components/Tabs/index.css +0 -89
- package/src/components/Tabs/index.ts +0 -1
- package/src/components/Tag/Tag.stories.tsx +0 -41
- package/src/components/Tag/Tag.tsx +0 -39
- package/src/components/Tag/index.css +0 -31
- package/src/components/Tag/index.ts +0 -1
- package/src/components/Text/Text.stories.tsx +0 -41
- package/src/components/Toast/Toast.stories.tsx +0 -47
- package/src/components/Toast/Toast.tsx +0 -13
- package/src/components/Toast/index.ts +0 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -44
- package/src/components/Tooltip/Tooltip.tsx +0 -60
- package/src/components/Tooltip/index.css +0 -15
- package/src/components/Tooltip/index.ts +0 -1
- package/src/index.css +0 -176
- package/src/index.ts +0 -38
- package/src/shadcn/checkbox.tsx +0 -28
- package/src/shadcn/dropdown-menu.tsx +0 -200
- package/src/shadcn/form.tsx +0 -178
- package/src/shadcn/hover-card.tsx +0 -31
- package/src/shadcn/label.tsx +0 -26
- package/src/shadcn/lib/utils.ts +0 -6
- package/src/shadcn/menubar.tsx +0 -248
- package/src/shadcn/switch.tsx +0 -25
- package/src/shadcn/table.tsx +0 -117
- package/src/shadcn/tabs.tsx +0 -55
- package/src/shadcn/tooltip.tsx +0 -30
- package/src/theme.ts +0 -123
- package/tailwind.config.js +0 -9
- package/tsconfig.json +0 -32
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface Colors {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
primaryButton: string;
|
|
4
|
+
secondaryButton: string;
|
|
5
|
+
linkButton: string;
|
|
6
|
+
}
|
|
7
|
+
interface Images {
|
|
8
|
+
whiteLogoUrl: string;
|
|
9
|
+
darkLogoUrl: string;
|
|
10
|
+
iconUrl: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: {
|
|
13
|
+
setTheme: ({ colors, images }: {
|
|
14
|
+
colors: Colors;
|
|
15
|
+
images: Images;
|
|
16
|
+
}) => void;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/theme.ts"],"sourcesContent":["interface Colors {\r\n backgroundColor: string;\r\n primaryButton: string;\r\n secondaryButton: string;\r\n linkButton: string;\r\n}\r\n\r\ninterface Images {\r\n whiteLogoUrl: string;\r\n darkLogoUrl: string;\r\n iconUrl: string;\r\n}\r\n\r\nconst isColorDark = (hexColor: string) => {\r\n const color = hexColor.replace('#', '');\r\n\r\n const r = parseInt(color.substr(0, 2), 16);\r\n const g = parseInt(color.substr(2, 2), 16);\r\n const b = parseInt(color.substr(4, 2), 16);\r\n \r\n const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;\r\n return (yiq <= 128);\r\n};\r\n\r\nconst getContrastYIQ = (hexColor: string) => (isColorDark(hexColor) ? '#ffffff' : '#2b2b2b');\r\n\r\nconst getTintedColor: (hexColor: string, v: number) => string = (hexColor, v) => {\r\n if (hexColor.length > 6) {\r\n hexColor= hexColor.substring(1, hexColor.length)\r\n }\r\n\r\n const rgb = parseInt(hexColor, 16); \r\n \r\n let r = Math.abs(((rgb >> 16) & 0xFF) + v);\r\n if (r > 255) {\r\n r = r - (r - 255);\r\n }\r\n \r\n let g = Math.abs(((rgb >> 8) & 0xFF) + v);\r\n if (g > 255) {\r\n g = g - (g - 255);\r\n }\r\n \r\n let b = Math.abs((rgb & 0xFF) + v);\r\n if (b > 255) {\r\n b = b - (b - 255);\r\n }\r\n\r\n const rString = (`${Number(r < 0 || isNaN(r)) ? 0 : ((r > 255) ? 255 : r).toString(16)}`).padStart(2, '0');\r\n const gString = (`${Number(g < 0 || isNaN(g)) ? 0 : ((g > 255) ? 255 : g).toString(16)}`).padStart(2, '0'); \r\n const bString = (`${Number(b < 0 || isNaN(b)) ? 0 : ((b > 255) ? 255 : b).toString(16)}`).padStart(2 ,'0'); \r\n \r\n return \"#\" + rString + gString + bString;\r\n} \r\n\r\nconst setTheme = ({ colors, images }: {\r\n colors: Colors;\r\n images: Images;\r\n}) => {\r\n const {\r\n backgroundColor,\r\n primaryButton,\r\n secondaryButton,\r\n linkButton,\r\n } = colors;\r\n\r\n if (backgroundColor) {\r\n document.documentElement.style.setProperty('--background-color', backgroundColor);\r\n document.documentElement.style.setProperty('--background-text-color', getContrastYIQ(backgroundColor));\r\n }\r\n\r\n if (primaryButton) {\r\n document.documentElement.style.setProperty('--primary-button-color', primaryButton);\r\n document.documentElement.style.setProperty('--primary-button-text-color', getContrastYIQ(primaryButton));\r\n\r\n document.documentElement.style.setProperty('--dark-button-color', `${primaryButton}66`);\r\n document.documentElement.style.setProperty('--dark-button-text-color', getContrastYIQ(primaryButton));\r\n\r\n const primaryButtonIsDark = isColorDark(primaryButton);\r\n for (let x = 0; x < 5; x += 1) {\r\n const variant = getTintedColor(primaryButton, ((x * 35) * (primaryButtonIsDark ? 1 : -1)));\r\n \r\n document.documentElement.style.setProperty(`--primary-button-color-${x}00`, variant);\r\n }\r\n }\r\n\r\n if (secondaryButton) {\r\n document.documentElement.style.setProperty('--secondary-button-color', secondaryButton);\r\n document.documentElement.style.setProperty('--secondary-button-text-color', getContrastYIQ(secondaryButton));\r\n }\r\n\r\n if (linkButton) {\r\n document.documentElement.style.setProperty('--link-button-color', linkButton);\r\n }\r\n\r\n const {\r\n darkLogoUrl,\r\n whiteLogoUrl,\r\n iconUrl,\r\n } = images;\r\n\r\n if (darkLogoUrl) {\r\n document.documentElement.style.setProperty('--dark-logo-url', `url(${darkLogoUrl})`);\r\n }\r\n\r\n if (whiteLogoUrl) {\r\n document.documentElement.style.setProperty('--white-logo-url', `url(${whiteLogoUrl})`);\r\n }\r\n\r\n if (iconUrl) {\r\n document.documentElement.style.setProperty('--icon-url', `url(${iconUrl})`);\r\n }\r\n\r\n if (backgroundColor && darkLogoUrl && whiteLogoUrl) {\r\n const backgroundColorIsDark = isColorDark(backgroundColor);\r\n\r\n document.documentElement.style.setProperty('--background-logo-url', `${backgroundColorIsDark ? `url(${whiteLogoUrl})` : `url(${darkLogoUrl})`}`)\r\n }\r\n};\r\n\r\nexport default {\r\n setTheme,\r\n};"],"names":["isColorDark","hexColor","color","replace","parseInt","substr","getContrastYIQ","getTintedColor","v","length","substring","rgb","r","Math","abs","g","b","concat","Number","isNaN","toString","padStart","theme","setTheme","_a","colors","images","backgroundColor","primaryButton","secondaryButton","linkButton","document","documentElement","style","setProperty","primaryButtonIsDark","x","variant","darkLogoUrl","whiteLogoUrl","iconUrl","backgroundColorIsDark"],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean | undefined;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean | undefined;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import { ControllerProps, FieldPath, FieldValues, useForm } from 'react-hook-form';
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
6
|
+
declare const useFormField: () => {
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
isDirty: boolean;
|
|
9
|
+
isTouched: boolean;
|
|
10
|
+
error?: import("react-hook-form").FieldError | undefined;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
formItemId: string;
|
|
14
|
+
formDescriptionId: string;
|
|
15
|
+
formMessageId: string;
|
|
16
|
+
};
|
|
17
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
19
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
21
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
export { useForm, useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
4
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
3
|
+
declare const MenubarMenu: {
|
|
4
|
+
(props: MenubarPrimitive.ScopedProps<MenubarPrimitive.MenubarMenuProps>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
|
|
9
|
+
declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
|
|
10
|
+
declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
14
|
+
inset?: boolean | undefined;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
+
inset?: boolean | undefined;
|
|
20
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
24
|
+
inset?: boolean | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const MenubarShortcut: {
|
|
28
|
+
({ id, className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
29
|
+
displayname: string;
|
|
30
|
+
};
|
|
31
|
+
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Switch };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface Colors {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
primaryButton: string;
|
|
4
|
+
secondaryButton: string;
|
|
5
|
+
linkButton: string;
|
|
6
|
+
}
|
|
7
|
+
interface Images {
|
|
8
|
+
whiteLogoUrl: string;
|
|
9
|
+
darkLogoUrl: string;
|
|
10
|
+
iconUrl: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: {
|
|
13
|
+
setTheme: ({ colors, images }: {
|
|
14
|
+
colors: Colors;
|
|
15
|
+
images: Images;
|
|
16
|
+
}) => void;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,83 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gyramais/gyra-design",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Gyramais Design System",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@radix-ui/react-
|
|
33
|
-
"@radix-ui/react-
|
|
34
|
-
"@radix-ui/react-
|
|
35
|
-
"@radix-ui/react-
|
|
36
|
-
"@radix-ui/react-
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@rollup/plugin-
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"react
|
|
52
|
-
"react
|
|
53
|
-
"react-
|
|
54
|
-
"react-
|
|
55
|
-
"react-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"rollup
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"storybook": "^
|
|
81
|
-
"
|
|
82
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@gyramais/gyra-design",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Gyramais Design System",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "npm run test",
|
|
13
|
+
"build": "node --max-old-space-size=8192 node_modules/rollup/dist/bin/rollup -c rollup.config.js",
|
|
14
|
+
"storybook": "storybook dev -p 6006",
|
|
15
|
+
"build-storybook": "storybook build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/gyramais/gyra-design.git"
|
|
20
|
+
},
|
|
21
|
+
"author": "Gyramais Development Team <Ninjas>",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/gyramais/gyra-design/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/gyramais/gyra-design#readme",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@emotion/react": "^11.11.1",
|
|
29
|
+
"@emotion/styled": "^11.11.0",
|
|
30
|
+
"@mui/icons-material": "^5.14.16",
|
|
31
|
+
"@mui/material": "^5.14.17",
|
|
32
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
33
|
+
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
34
|
+
"@radix-ui/react-hover-card": "^1.0.7",
|
|
35
|
+
"@radix-ui/react-label": "^2.0.2",
|
|
36
|
+
"@radix-ui/react-menubar": "^1.0.4",
|
|
37
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
38
|
+
"@radix-ui/react-tabs": "^1.0.4",
|
|
39
|
+
"@radix-ui/react-tooltip": "^1.0.7",
|
|
40
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
41
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
42
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
43
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
44
|
+
"@types/react": "^18.2.33",
|
|
45
|
+
"@types/react-collapse": "^5.0.4",
|
|
46
|
+
"@types/react-text-mask": "^5.4.14",
|
|
47
|
+
"class-variance-authority": "^0.7.0",
|
|
48
|
+
"classnames": "^2.3.2",
|
|
49
|
+
"clsx": "^2.0.0",
|
|
50
|
+
"dayjs": "^1.11.10",
|
|
51
|
+
"lucide-react": "^0.292.0",
|
|
52
|
+
"react": "18.2.0",
|
|
53
|
+
"react-collapse": "^5.1.1",
|
|
54
|
+
"react-dom": "^18.2.0",
|
|
55
|
+
"react-hook-form": "^7.48.2",
|
|
56
|
+
"react-modern-drawer": "^1.2.2",
|
|
57
|
+
"react-text-mask": "^5.5.0",
|
|
58
|
+
"react-toastify": "^9.1.3",
|
|
59
|
+
"recharts": "^2.10.1",
|
|
60
|
+
"rollup": "^4.2.0",
|
|
61
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
62
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
63
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
64
|
+
"tailwind-merge": "^2.0.0",
|
|
65
|
+
"tailwindcss-animate": "^1.0.7",
|
|
66
|
+
"typescript": "^5.2.2"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"react": "18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@storybook/addon-essentials": "^7.5.2",
|
|
74
|
+
"@storybook/addon-interactions": "^7.5.2",
|
|
75
|
+
"@storybook/addon-links": "^7.5.2",
|
|
76
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
77
|
+
"@storybook/blocks": "^7.5.2",
|
|
78
|
+
"@storybook/react": "^7.5.2",
|
|
79
|
+
"@storybook/react-vite": "^7.5.2",
|
|
80
|
+
"@storybook/testing-library": "^0.2.2",
|
|
81
|
+
"autoprefixer": "^10.4.16",
|
|
82
|
+
"postcss": "^8.4.31",
|
|
83
|
+
"storybook": "^7.5.2",
|
|
84
|
+
"tailwindcss": "^3.3.5"
|
|
85
|
+
}
|
|
83
86
|
}
|
package/{README.md → readme.md}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# gyra-design
|
|
2
|
-
|
|
3
|
-
Pacote de componentes da Gyramais com o intuito de padronizar e afunilar todos os componentes de projetos.
|
|
4
|
-
## Stack utilizada
|
|
5
|
-
|
|
6
|
-
- **Componentes:** Typescript, React, TailwindCSS
|
|
7
|
-
- **Documentação:** Storybook
|
|
8
|
-
- **Bundler:** Rollup
|
|
9
|
-
|
|
10
|
-
## Funcionalidades
|
|
11
|
-
|
|
12
|
-
- Tema personalizável
|
|
13
|
-
- Componentes padrão da Gyramais
|
|
14
|
-
|
|
15
|
-
## Comandos
|
|
16
|
-
|
|
17
|
-
Baixe o projeto em gyramais/gyra-design
|
|
18
|
-
```bash
|
|
19
|
-
npm install
|
|
20
|
-
npm run storybook
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Para realizar o build do pacote completo
|
|
24
|
-
```
|
|
25
|
-
npm run build
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Para realizar o build de um componente específico (ex: Button)
|
|
29
|
-
```
|
|
30
|
-
npm run build --component=Button
|
|
31
|
-
```
|
|
1
|
+
# gyra-design
|
|
2
|
+
|
|
3
|
+
Pacote de componentes da Gyramais com o intuito de padronizar e afunilar todos os componentes de projetos.
|
|
4
|
+
## Stack utilizada
|
|
5
|
+
|
|
6
|
+
- **Componentes:** Typescript, React, TailwindCSS
|
|
7
|
+
- **Documentação:** Storybook
|
|
8
|
+
- **Bundler:** Rollup
|
|
9
|
+
|
|
10
|
+
## Funcionalidades
|
|
11
|
+
|
|
12
|
+
- Tema personalizável
|
|
13
|
+
- Componentes padrão da Gyramais
|
|
14
|
+
|
|
15
|
+
## Comandos
|
|
16
|
+
|
|
17
|
+
Baixe o projeto em gyramais/gyra-design
|
|
18
|
+
```bash
|
|
19
|
+
npm install
|
|
20
|
+
npm run storybook
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Para realizar o build do pacote completo
|
|
24
|
+
```
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Para realizar o build de um componente específico (ex: Button)
|
|
29
|
+
```
|
|
30
|
+
npm run build --component=Button
|
|
31
|
+
```
|
package/.eslintrc.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "next/core-web-vitals",
|
|
3
|
-
"rules": {
|
|
4
|
-
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
5
|
-
"keyword-spacing": ["error", { "after": true, "before": true }],
|
|
6
|
-
"comma-dangle": ["error", "always-multiline"],
|
|
7
|
-
"semi": ["error", "always"],
|
|
8
|
-
"quotes": ["error", "single"],
|
|
9
|
-
"arrow-spacing": ["error", { "before": true, "after": true }],
|
|
10
|
-
"space-in-parens": ["error", "never"],
|
|
11
|
-
"no-trailing-spaces": ["error"],
|
|
12
|
-
"no-multi-spaces": ["error"]
|
|
13
|
-
}
|
|
14
|
-
}
|
package/.storybook/main.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from "@storybook/react-vite";
|
|
2
|
-
|
|
3
|
-
const config: StorybookConfig = {
|
|
4
|
-
stories: ["../src/**/*.stories.tsx"],
|
|
5
|
-
addons: [
|
|
6
|
-
"@storybook/addon-links",
|
|
7
|
-
"@storybook/addon-essentials",
|
|
8
|
-
"@storybook/addon-onboarding",
|
|
9
|
-
"@storybook/addon-interactions",
|
|
10
|
-
],
|
|
11
|
-
framework: {
|
|
12
|
-
name: "@storybook/react-vite",
|
|
13
|
-
options: {},
|
|
14
|
-
},
|
|
15
|
-
docs: {
|
|
16
|
-
autodocs: true,
|
|
17
|
-
defaultName: 'Overview',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
export default config;
|
package/.storybook/preview.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import '../src/index.css'
|
|
2
|
-
import 'react-toastify/dist/ReactToastify.css';
|
|
3
|
-
import 'react-modern-drawer/dist/index.css'
|
|
4
|
-
|
|
5
|
-
import type { Preview } from "@storybook/react";
|
|
6
|
-
|
|
7
|
-
const preview: Preview = {
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
backgrounds: {
|
|
11
|
-
default: 'grey',
|
|
12
|
-
values: [{
|
|
13
|
-
name: 'black',
|
|
14
|
-
value: '#000000',
|
|
15
|
-
}, {
|
|
16
|
-
name: 'grey',
|
|
17
|
-
value: '#eeecec',
|
|
18
|
-
}, {
|
|
19
|
-
name: 'white',
|
|
20
|
-
value: '#ffffff',
|
|
21
|
-
}],
|
|
22
|
-
},
|
|
23
|
-
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
24
|
-
controls: {
|
|
25
|
-
matchers: {
|
|
26
|
-
color: /(background|color)$/i,
|
|
27
|
-
date: /Date$/i,
|
|
28
|
-
},
|
|
29
|
-
exclude: [
|
|
30
|
-
'children',
|
|
31
|
-
'onClick',
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
docs: {
|
|
35
|
-
controls: {
|
|
36
|
-
exclude: [
|
|
37
|
-
'children',
|
|
38
|
-
'onClick',
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default preview;
|