@granto-umbrella/umbrella-components 2.2.0 → 2.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granto-umbrella/umbrella-components",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Umbrella Components for React",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -4,7 +4,8 @@ import styled from "styled-components";
4
4
  import { Circle } from "lucide-react";
5
5
 
6
6
  export const StyledRadioGroup = styled(RadioGroupPrimitive.Root)`
7
- display: grid;
7
+ display: flex;
8
+ flex-direction: row;
8
9
  gap: 0.5rem;
9
10
  `;
10
11
 
@@ -17,7 +18,6 @@ export const StyledRadioGroupItem = styled(RadioGroupPrimitive.Item)`
17
18
  height: 1rem;
18
19
  aspect-ratio: 1 / 1;
19
20
  border-radius: 9999px;
20
- border: 1px solid ${semanticColors.branding.border.enabled};
21
21
  color: ${semanticColors.branding.surface.enabled};
22
22
  outline: none;
23
23
 
package/src/index.ts CHANGED
@@ -1,44 +1,106 @@
1
1
  /* eslint-disable react-refresh/only-export-components */
2
2
  // Import all components
3
+ import {
4
+ Dialog,
5
+ DialogContent,
6
+ DialogDescription,
7
+ DialogPortal,
8
+ DialogTitle,
9
+ DialogTrigger,
10
+ } from "@radix-ui/react-dialog";
11
+ import { Form } from "react-hook-form";
12
+ import Badge from "./components/atoms/Badge/Badge";
13
+ import Breadcrumb from "./components/atoms/Breadcrumb/Breadcrumb";
3
14
  import Button from "./components/atoms/Button";
15
+ import { Checkbox } from "./components/atoms/Checkbox/Checkbox";
4
16
  import Icon from "./components/atoms/Icon";
5
17
  import Input from "./components/atoms/Input";
6
- import Select from "./components/atoms/Select";
7
- import AlertDialog from "./components/organisms/AlertDialog/AlertDialog";
8
- import Badge from "./components/atoms/Badge/Badge";
9
- import Breadcrumb from "./components/atoms/Breadcrumb/Breadcrumb";
18
+ import { Label } from "./components/atoms/Label/Label";
10
19
  import RadioButton from "./components/atoms/RadioButton/RadioButton";
11
- import { Checkbox } from "./components/atoms/Checkbox/Checkbox";
20
+ import Select from "./components/atoms/Select";
12
21
  import Switch from "./components/atoms/Switch/Switch";
13
22
  import Text from "./components/atoms/Text";
14
23
  import Textarea from "./components/atoms/Textarea/Textarea";
15
24
  import ButtonGroup from "./components/molecules/ButtonGroup/ButtonGroup";
25
+ import { Calendar } from "./components/molecules/Calendar/Calendar";
26
+ import {
27
+ Popover,
28
+ PopoverContent,
29
+ PopoverTrigger,
30
+ } from "./components/molecules/Popover/Popover";
31
+ import {
32
+ RadioGroup,
33
+ RadioGroupItem,
34
+ } from "./components/molecules/RadioBoxGroup/RadioBoxGroup";
35
+ import AlertDialog from "./components/organisms/AlertDialog/AlertDialog";
36
+ import {
37
+ DialogFooter,
38
+ DialogHeader,
39
+ } from "./components/organisms/Dialog/Dialog";
40
+ import {
41
+ StyledDialogClose,
42
+ StyledDialogOverlay,
43
+ } from "./components/organisms/Dialog/Dialog.styles";
44
+ import {
45
+ FormControl,
46
+ FormDescription,
47
+ FormField,
48
+ FormItem,
49
+ FormLabel,
50
+ FormMessage,
51
+ useFormField,
52
+ } from "./components/organisms/Form/Form";
16
53
 
17
54
  // Export all components
18
55
  export {
19
- Button,
20
- Icon,
21
- Input,
22
- Select,
23
56
  AlertDialog,
24
57
  Badge,
25
58
  Breadcrumb,
26
- RadioButton,
59
+ Button,
60
+ ButtonGroup,
61
+ Calendar,
27
62
  Checkbox,
63
+ Dialog,
64
+ DialogContent,
65
+ DialogDescription,
66
+ DialogFooter,
67
+ DialogHeader,
68
+ DialogPortal,
69
+ DialogTitle,
70
+ DialogTrigger,
71
+ Form,
72
+ FormControl,
73
+ FormDescription,
74
+ FormField,
75
+ FormItem,
76
+ FormLabel,
77
+ FormMessage,
78
+ Icon,
79
+ Input,
80
+ Label,
81
+ Popover,
82
+ PopoverContent,
83
+ PopoverTrigger,
84
+ RadioButton,
85
+ RadioGroup,
86
+ RadioGroupItem,
87
+ Select,
88
+ StyledDialogClose,
89
+ StyledDialogOverlay,
28
90
  Switch,
29
91
  Text,
30
92
  Textarea,
31
- ButtonGroup,
93
+ useFormField,
32
94
  };
33
95
 
34
96
  // Export all tokens from a new file
35
- export { primitiveColors, semanticColors } from "./styles/tokens/colors";
36
97
  export { primitiveBorders, semanticBorders } from "./styles/tokens/borders";
98
+ export { primitiveColors, semanticColors } from "./styles/tokens/colors";
99
+ export { primitiveRadius, semanticRadius } from "./styles/tokens/radius";
37
100
  export { primitiveShadows, semanticShadows } from "./styles/tokens/shadows";
38
101
  export { primitiveSizes, semanticSizes } from "./styles/tokens/sizes";
39
- export { primitiveRadius, semanticRadius } from "./styles/tokens/radius";
40
102
  export { typographyTokens } from "./styles/tokens/typography";
41
103
 
42
104
  // Export all types
43
- export type { Shadows } from "./types/shadows.types";
44
105
  export type { Radius } from "./types/radius.types";
106
+ export type { Shadows } from "./types/shadows.types";