@xjur-ui/react 1.0.0 → 1.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 (117) hide show
  1. package/.turbo/turbo-build.log +63 -57
  2. package/CHANGELOG.md +18 -0
  3. package/dist/components/avatar.d.ts +11 -0
  4. package/dist/components/avatar.js +58 -0
  5. package/dist/components/badge.d.ts +13 -0
  6. package/dist/components/{ui/input/message.js → badge.js} +30 -47
  7. package/dist/components/{ui/button.d.ts → button.d.ts} +2 -2
  8. package/dist/components/{ui/button.js → button.js} +9 -6
  9. package/dist/components/calendar.d.ts +11 -0
  10. package/dist/components/calendar.js +751 -0
  11. package/dist/components/checkbox.d.ts +8 -0
  12. package/dist/components/{ui/input/root.js → checkbox.js} +69 -79
  13. package/dist/components/chip.d.ts +24 -0
  14. package/dist/components/chip.js +255 -0
  15. package/dist/components/collapsible.d.ts +8 -0
  16. package/dist/components/collapsible.js +41 -0
  17. package/dist/components/date-picker.d.ts +20 -0
  18. package/dist/components/date-picker.js +232 -0
  19. package/dist/components/divider.d.ts +7 -0
  20. package/dist/components/divider.js +28 -0
  21. package/dist/components/dropdown-menu.d.ts +22 -0
  22. package/dist/components/dropdown-menu.js +294 -0
  23. package/dist/components/{resources/icons.d.ts → icon.d.ts} +11 -2
  24. package/dist/components/{ui/icon.js → icon.js} +20 -5
  25. package/dist/components/input.d.ts +32 -0
  26. package/dist/components/input.js +315 -0
  27. package/dist/components/list.d.ts +25 -0
  28. package/dist/components/{ui/input/content.js → list.js} +83 -87
  29. package/dist/components/{ui/logo.d.ts → logo.d.ts} +2 -2
  30. package/dist/components/{ui/logo.js → logo.js} +5 -5
  31. package/dist/components/{ui/otp-input.js → otp-input.js} +1 -1
  32. package/dist/components/radio.d.ts +10 -0
  33. package/dist/components/{ui/input/label.js → radio.js} +68 -77
  34. package/dist/components/search-input.d.ts +17 -0
  35. package/dist/components/search-input.js +274 -0
  36. package/dist/components/select.d.ts +33 -0
  37. package/dist/components/select.js +550 -0
  38. package/dist/components/sheet.d.ts +19 -0
  39. package/dist/components/sheet.js +251 -0
  40. package/dist/components/switch.d.ts +7 -0
  41. package/dist/components/switch.js +36 -0
  42. package/dist/components/tabs.d.ts +11 -0
  43. package/dist/components/tabs.js +54 -0
  44. package/dist/components/tag.d.ts +18 -0
  45. package/dist/components/tag.js +189 -0
  46. package/dist/components/{ui/typography.d.ts → typography.d.ts} +4 -4
  47. package/dist/components/{ui/typography.js → typography.js} +1 -1
  48. package/dist/index.css +1233 -62
  49. package/dist/index.d.ts +2 -17
  50. package/dist/index.js +0 -788
  51. package/eslint.config.js +8 -1
  52. package/package.json +41 -10
  53. package/src/components/avatar.tsx +53 -0
  54. package/src/components/badge.tsx +40 -0
  55. package/src/components/{ui/button.tsx → button.tsx} +7 -5
  56. package/src/components/calendar.tsx +123 -0
  57. package/src/components/checkbox.tsx +57 -0
  58. package/src/components/chip.tsx +109 -0
  59. package/src/components/collapsible.tsx +35 -0
  60. package/src/components/date-picker.tsx +160 -0
  61. package/src/components/divider.tsx +23 -0
  62. package/src/components/dropdown-menu.tsx +101 -0
  63. package/src/components/{ui/icon.tsx → icon.tsx} +1 -1
  64. package/src/components/input.tsx +256 -0
  65. package/src/components/list.tsx +111 -0
  66. package/src/components/radio.tsx +74 -0
  67. package/src/components/search-input.tsx +112 -0
  68. package/src/components/select.tsx +240 -0
  69. package/src/components/sheet.tsx +141 -0
  70. package/src/components/switch.tsx +31 -0
  71. package/src/components/tabs.tsx +53 -0
  72. package/src/components/tag.tsx +91 -0
  73. package/src/index.css +4 -1
  74. package/src/index.ts +0 -1
  75. package/src/{components/resources → resources}/icons.ts +16 -1
  76. package/src/resources/input-mask.ts +91 -0
  77. package/dist/components/resources/icons.js +0 -133
  78. package/dist/components/resources/logo/horizontal.d.ts +0 -12
  79. package/dist/components/resources/logo/horizontal.js +0 -107
  80. package/dist/components/resources/logo/icon.d.ts +0 -12
  81. package/dist/components/resources/logo/icon.js +0 -79
  82. package/dist/components/resources/logo/index.d.ts +0 -4
  83. package/dist/components/resources/logo/index.js +0 -291
  84. package/dist/components/resources/logo/vertical.d.ts +0 -12
  85. package/dist/components/resources/logo/vertical.js +0 -107
  86. package/dist/components/ui/accordion.d.ts +0 -5
  87. package/dist/components/ui/accordion.js +0 -8
  88. package/dist/components/ui/icon.d.ts +0 -12
  89. package/dist/components/ui/index.d.ts +0 -17
  90. package/dist/components/ui/index.js +0 -788
  91. package/dist/components/ui/input/content.d.ts +0 -9
  92. package/dist/components/ui/input/index.d.ts +0 -12
  93. package/dist/components/ui/input/index.js +0 -335
  94. package/dist/components/ui/input/label.d.ts +0 -12
  95. package/dist/components/ui/input/message.d.ts +0 -10
  96. package/dist/components/ui/input/root.d.ts +0 -18
  97. package/dist/components/ui/input/slot.d.ts +0 -10
  98. package/dist/components/ui/input/slot.js +0 -20
  99. package/dist/components/ui/input/text.d.ts +0 -10
  100. package/dist/components/ui/input/text.js +0 -195
  101. package/src/components/ui/accordion.tsx +0 -3
  102. package/src/components/ui/index.ts +0 -13
  103. package/src/components/ui/input/content.tsx +0 -59
  104. package/src/components/ui/input/index.ts +0 -6
  105. package/src/components/ui/input/label.tsx +0 -41
  106. package/src/components/ui/input/message.tsx +0 -37
  107. package/src/components/ui/input/root.tsx +0 -57
  108. package/src/components/ui/input/slot.tsx +0 -21
  109. package/src/components/ui/input/text.tsx +0 -69
  110. /package/dist/components/{ui/otp-input.d.ts → otp-input.d.ts} +0 -0
  111. /package/src/components/{ui/logo.tsx → logo.tsx} +0 -0
  112. /package/src/components/{ui/otp-input.tsx → otp-input.tsx} +0 -0
  113. /package/src/components/{ui/typography.tsx → typography.tsx} +0 -0
  114. /package/src/{components/resources → resources}/logo/horizontal.tsx +0 -0
  115. /package/src/{components/resources → resources}/logo/icon.tsx +0 -0
  116. /package/src/{components/resources → resources}/logo/index.ts +0 -0
  117. /package/src/{components/resources → resources}/logo/vertical.tsx +0 -0
@@ -1,57 +1,63 @@
1
-
2
- 
3
- > @xjur-ui/react@4.0.1 build
4
- > tsup
5
-
6
- CLI Building entry: src/index.ts, src/components/resources/icons.ts, src/components/ui/accordion.tsx, src/components/ui/button.tsx, src/components/ui/icon.tsx, src/components/ui/index.ts, src/components/ui/logo.tsx, src/components/ui/otp-input.tsx, src/components/ui/typography.tsx, src/components/resources/logo/horizontal.tsx, src/components/resources/logo/icon.tsx, src/components/resources/logo/index.ts, src/components/resources/logo/vertical.tsx, src/components/ui/input/content.tsx, src/components/ui/input/index.ts, src/components/ui/input/label.tsx, src/components/ui/input/message.tsx, src/components/ui/input/root.tsx, src/components/ui/input/slot.tsx, src/components/ui/input/text.tsx
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.0
9
- CLI Using tsup config: /Users/guilhermeoliveira/projects/xjur/xjur-ds/packages/react/tsup.config.ts
10
- CLI Target: es2022
11
- CLI Cleaning output folder
12
- ESM Build start
13
- DTS Build start
14
- ESM dist/components/resources/icons.js 1.99 KB
15
- ESM dist/index.css 20.03 KB
16
- ESM dist/components/ui/accordion.js 194.00 B
17
- ESM dist/components/ui/button.js 2.56 KB
18
- ESM dist/components/ui/otp-input.js 1.01 KB
19
- ESM dist/components/ui/index.js 32.92 KB
20
- ESM dist/components/ui/typography.js 2.21 KB
21
- ESM dist/components/ui/icon.js 2.56 KB
22
- ESM dist/components/ui/logo.js 20.97 KB
23
- ESM dist/components/resources/logo/icon.js 5.33 KB
24
- ESM dist/components/ui/input/message.js 3.36 KB
25
- ESM dist/components/resources/logo/horizontal.js 7.30 KB
26
- ESM dist/index.js 32.92 KB
27
- ESM dist/components/ui/input/label.js 4.20 KB
28
- ESM dist/components/ui/input/content.js 4.71 KB
29
- ESM dist/components/resources/logo/vertical.js 7.29 KB
30
- ESM dist/components/ui/input/index.js 8.46 KB
31
- ESM dist/components/ui/input/root.js 4.10 KB
32
- ESM dist/components/ui/input/slot.js 451.00 B
33
- ESM dist/components/resources/logo/index.js 19.96 KB
34
- ESM dist/components/ui/input/text.js 5.20 KB
35
- ESM ⚡️ Build success in 169ms
36
- DTS ⚡️ Build success in 2045ms
37
- DTS dist/components/resources/logo/index.d.ts 150.00 B
38
- DTS dist/components/ui/input/index.d.ts 543.00 B
39
- DTS dist/components/ui/index.d.ts 763.00 B
40
- DTS dist/components/ui/accordion.d.ts 141.00 B
41
- DTS dist/components/ui/button.d.ts 832.00 B
42
- DTS dist/components/ui/icon.d.ts 431.00 B
43
- DTS dist/components/resources/icons.d.ts 1.78 KB
44
- DTS dist/components/ui/logo.d.ts 373.00 B
45
- DTS dist/components/ui/otp-input.d.ts 662.00 B
46
- DTS dist/components/resources/logo/horizontal.d.ts 374.00 B
47
- DTS dist/components/resources/logo/icon.d.ts 338.00 B
48
- DTS dist/components/resources/logo/vertical.d.ts 362.00 B
49
- DTS dist/components/ui/input/content.d.ts 366.00 B
50
- DTS dist/components/ui/input/label.d.ts 492.00 B
51
- DTS dist/components/ui/input/message.d.ts 465.00 B
52
- DTS dist/components/ui/typography.d.ts 993.00 B
53
- DTS dist/components/ui/input/root.d.ts 680.00 B
54
- DTS dist/components/ui/input/slot.d.ts 415.00 B
55
- DTS dist/components/ui/input/text.d.ts 380.00 B
56
- DTS dist/index.d.ts 913.00 B
57
- ⠙
1
+
2
+ > @xjur-ui/react@1.0.1 build
3
+ > tsup
4
+
5
+ CLI Building entry: src/index.ts, src/components/avatar.tsx, src/components/badge.tsx, src/components/button.tsx, src/components/calendar.tsx, src/components/checkbox.tsx, src/components/chip.tsx, src/components/collapsible.tsx, src/components/date-picker.tsx, src/components/divider.tsx, src/components/dropdown-menu.tsx, src/components/icon.tsx, src/components/input.tsx, src/components/list.tsx, src/components/logo.tsx, src/components/otp-input.tsx, src/components/radio.tsx, src/components/search-input.tsx, src/components/select.tsx, src/components/sheet.tsx, src/components/switch.tsx, src/components/tabs.tsx, src/components/tag.tsx, src/components/typography.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.0
8
+ CLI Using tsup config: /home/vsts/work/1/s/packages/react/tsup.config.ts
9
+ CLI Target: es2022
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ DTS Build start
13
+ ESM dist/index.js 0 B
14
+ ESM dist/components/avatar.js 1.23 KB
15
+ ESM dist/index.css 54.65 KB
16
+ ESM dist/components/badge.js 3.08 KB
17
+ ESM dist/components/button.js 2.73 KB
18
+ ESM dist/components/calendar.js 19.27 KB
19
+ ESM dist/components/checkbox.js 4.64 KB
20
+ ESM dist/components/chip.js 6.34 KB
21
+ ESM dist/components/collapsible.js 998.00 B
22
+ ESM dist/components/date-picker.js 6.90 KB
23
+ ESM dist/components/divider.js 697.00 B
24
+ ESM dist/components/dropdown-menu.js 7.19 KB
25
+ ESM dist/components/icon.js 2.72 KB
26
+ ESM dist/components/input.js 8.07 KB
27
+ ESM dist/components/list.js 4.34 KB
28
+ ESM dist/components/logo.js 20.93 KB
29
+ ESM dist/components/otp-input.js 1.00 KB
30
+ ESM dist/components/radio.js 4.52 KB
31
+ ESM dist/components/search-input.js 7.70 KB
32
+ ESM dist/components/select.js 15.44 KB
33
+ ESM dist/components/sheet.js 6.89 KB
34
+ ESM dist/components/switch.js 1.13 KB
35
+ ESM dist/components/tabs.js 1.43 KB
36
+ ESM dist/components/tag.js 4.77 KB
37
+ ESM dist/components/typography.js 2.21 KB
38
+ ESM ⚡️ Build success in 1286ms
39
+ DTS ⚡️ Build success in 5617ms
40
+ DTS dist/index.d.ts 13.00 B
41
+ DTS dist/components/badge.d.ts 607.00 B
42
+ DTS dist/components/calendar.d.ts 448.00 B
43
+ DTS dist/components/checkbox.d.ts 305.00 B
44
+ DTS dist/components/chip.d.ts 1.36 KB
45
+ DTS dist/components/avatar.d.ts 669.00 B
46
+ DTS dist/components/collapsible.d.ts 645.00 B
47
+ DTS dist/components/date-picker.d.ts 1.35 KB
48
+ DTS dist/components/dropdown-menu.d.ts 1.97 KB
49
+ DTS dist/components/divider.d.ts 336.00 B
50
+ DTS dist/components/logo.d.ts 373.00 B
51
+ DTS dist/components/otp-input.d.ts 662.00 B
52
+ DTS dist/components/radio.d.ts 531.00 B
53
+ DTS dist/components/select.d.ts 2.48 KB
54
+ DTS dist/components/list.d.ts 1.28 KB
55
+ DTS dist/components/search-input.d.ts 1.10 KB
56
+ DTS dist/components/button.d.ts 872.00 B
57
+ DTS dist/components/sheet.d.ts 1.62 KB
58
+ DTS dist/components/switch.d.ts 300.00 B
59
+ DTS dist/components/tabs.d.ts 737.00 B
60
+ DTS dist/components/tag.d.ts 1.07 KB
61
+ DTS dist/components/typography.d.ts 993.00 B
62
+ DTS dist/components/input.d.ts 2.12 KB
63
+ DTS dist/components/icon.d.ts 2.25 KB
package/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # @xjur-ui/react
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ca57b41: New release
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - d3673d9: Melhorias no fluxo de inputs e novos components
14
+ - 78f16bc: Criação dos componentes principais para execução das telas de agenda
15
+ - ea53c28: Refactor package structure
16
+ - Updated dependencies [78f16bc]
17
+ - @xjur-ui/styles@1.0.1
18
+ - @xjur-ui/util@1.0.1
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
4
+
5
+ declare function AvatarRoot({ className, size, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root> & {
6
+ size?: 'xs' | 'sm' | 'md' | 'lg';
7
+ }): react_jsx_runtime.JSX.Element;
8
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
9
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
10
+
11
+ export { AvatarFallback, AvatarImage, AvatarRoot };
@@ -0,0 +1,58 @@
1
+ // src/components/avatar.tsx
2
+ import "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ import { cx } from "@xjur-ui/util";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function AvatarRoot({
7
+ className,
8
+ size = "md",
9
+ ...props
10
+ }) {
11
+ return /* @__PURE__ */ jsx(
12
+ AvatarPrimitive.Root,
13
+ {
14
+ className: cx(
15
+ "rounded-circle relative flex shrink-0 overflow-hidden",
16
+ "data-[size=lg]:size-large-8x data-[size=md]:size-large-4x data-[size=sm]:size-large-2x data-[size=xs]:size-large-1x",
17
+ className
18
+ ),
19
+ "data-size": size,
20
+ "data-slot": "avatar",
21
+ ...props
22
+ }
23
+ );
24
+ }
25
+ function AvatarImage({
26
+ className,
27
+ ...props
28
+ }) {
29
+ return /* @__PURE__ */ jsx(
30
+ AvatarPrimitive.Image,
31
+ {
32
+ className: cx("aspect-square size-full", className),
33
+ "data-slot": "avatar-image",
34
+ ...props
35
+ }
36
+ );
37
+ }
38
+ function AvatarFallback({
39
+ className,
40
+ ...props
41
+ }) {
42
+ return /* @__PURE__ */ jsx(
43
+ AvatarPrimitive.Fallback,
44
+ {
45
+ className: cx(
46
+ "bg-alt-1 rounded-circle flex size-full items-center justify-center font-medium text-white",
47
+ className
48
+ ),
49
+ "data-slot": "avatar-fallback",
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ export {
55
+ AvatarFallback,
56
+ AvatarImage,
57
+ AvatarRoot
58
+ };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { ClassVariantProps } from '@xjur-ui/util';
4
+
5
+ declare const badgeVariants: (props?: ({
6
+ variant?: "primary" | "secondary" | "neutral" | "success" | "warning" | "danger" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ declare function Badge({ variant, children, className }: ClassVariantProps<typeof badgeVariants> & {
9
+ children: string;
10
+ className?: string;
11
+ }): react_jsx_runtime.JSX.Element;
12
+
13
+ export { Badge };
@@ -1,8 +1,7 @@
1
- // src/components/ui/input/message.tsx
2
- import { memo as memo2 } from "react";
3
- import { cx as cx2 } from "@xjur-ui/util";
1
+ // src/components/badge.tsx
2
+ import { cva as cva2, cx } from "@xjur-ui/util";
4
3
 
5
- // src/components/ui/typography.tsx
4
+ // src/components/typography.tsx
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "@xjur-ui/util";
8
7
  import { memo } from "react";
@@ -78,51 +77,35 @@ var Typography = memo(
78
77
  );
79
78
  Typography.displayName = "Typography";
80
79
 
81
- // src/components/ui/input/root.tsx
82
- import { createContext, use } from "react";
83
- import { cx } from "@xjur-ui/util";
84
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
85
- var InputRootContext = createContext({});
86
- function useInput() {
87
- const context = use(InputRootContext);
88
- if (!context) {
89
- throw new Error(
90
- "useInput must be called within <Input.Root> or <Select.Root>"
91
- );
92
- }
93
- return context;
94
- }
95
-
96
- // src/components/ui/input/message.tsx
97
- import { jsx as jsx3 } from "react/jsx-runtime";
98
- var InputMessage = memo2(
99
- ({
100
- children,
101
- className,
102
- weight = "normal",
103
- variant = "body",
104
- size = "sm-1x",
105
- ...props
106
- }) => {
107
- const { errorMessage } = useInput();
108
- return /* @__PURE__ */ jsx3(
109
- Typography,
110
- {
111
- className: cx2(
112
- "text-neutral-dark data-[error=true]:text-danger-idle",
113
- className
114
- ),
115
- "data-error": !!errorMessage,
116
- size,
117
- variant,
118
- weight,
119
- ...props,
120
- children
80
+ // src/components/badge.tsx
81
+ import { jsx as jsx2 } from "react/jsx-runtime";
82
+ var badgeVariants = cva2(
83
+ [
84
+ "flex items-center justify-center size-large p-small-2x text-neutral-label rounded-circle"
85
+ ],
86
+ {
87
+ variants: {
88
+ variant: {
89
+ primary: "bg-primary-idle",
90
+ secondary: "bg-secondary-idle",
91
+ neutral: "bg-alt-2-idle",
92
+ success: "bg-success-idle",
93
+ warning: "bg-warning-idle",
94
+ danger: "bg-danger-idle"
121
95
  }
122
- );
96
+ },
97
+ defaultVariants: {
98
+ variant: "neutral"
99
+ }
123
100
  }
124
101
  );
125
- InputMessage.displayName = "InputMessage";
102
+ function Badge({
103
+ variant = "neutral",
104
+ children,
105
+ className
106
+ }) {
107
+ return /* @__PURE__ */ jsx2("span", { className: cx(badgeVariants({ variant }), className), children: /* @__PURE__ */ jsx2(Typography, { className: "text-inherit", size: "sm-2x", variant: "label", children }) });
108
+ }
126
109
  export {
127
- InputMessage
110
+ Badge
128
111
  };
@@ -4,7 +4,7 @@ import { ComponentProps } from 'react';
4
4
  import { ClassVariantProps } from '@xjur-ui/util';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- size?: "md" | "sm" | null | undefined;
7
+ size?: "sm" | "md" | "icon_md" | "icon_sm" | null | undefined;
8
8
  variant?: "primary" | "secondary" | "tertiary" | "destructive" | "outlined" | null | undefined;
9
9
  appearance?: "solid" | "ghost" | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -13,4 +13,4 @@ interface ButtonProps extends ComponentProps<'button'>, ClassVariantProps<typeof
13
13
  }
14
14
  declare function Button({ asChild, className, variant, size, appearance, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
15
15
 
16
- export { Button, type ButtonProps };
16
+ export { Button, type ButtonProps, buttonVariants };
@@ -1,16 +1,18 @@
1
- // src/components/ui/button.tsx
1
+ // src/components/button.tsx
2
2
  import { Slot } from "@radix-ui/react-slot";
3
- import { cva } from "@xjur-ui/util";
3
+ import { cva, cx } from "@xjur-ui/util";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var buttonVariants = cva(
6
6
  [
7
- "inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"
7
+ "outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"
8
8
  ],
9
9
  {
10
10
  variants: {
11
11
  size: {
12
12
  md: "py-small_1x-alt px-medium text-size-body-md",
13
- sm: "py-small-1x px-small text-size-label-sm"
13
+ sm: "py-small-1x px-small text-size-label-sm",
14
+ icon_md: "p-small text-size-body-md h-large-4x w-large-4x",
15
+ icon_sm: "p-small-1x text-size-label-sm h-large-2x w-large-2x"
14
16
  },
15
17
  variant: {
16
18
  primary: "",
@@ -85,11 +87,12 @@ function Button({
85
87
  return /* @__PURE__ */ jsx(
86
88
  Component,
87
89
  {
88
- className: buttonVariants({ className, variant, appearance, size }),
90
+ className: cx(buttonVariants({ variant, appearance, size }), className),
89
91
  ...props
90
92
  }
91
93
  );
92
94
  }
93
95
  export {
94
- Button
96
+ Button,
97
+ buttonVariants
95
98
  };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { DayPickerProps } from 'react-day-picker';
3
+ export { DateRange } from 'react-day-picker';
4
+
5
+ type CalendarProps = DayPickerProps & {
6
+ handleClear?: () => void;
7
+ handleToday?: () => void;
8
+ };
9
+ declare function Calendar({ showOutsideDays, locale, navLayout, handleClear, handleToday, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { Calendar, type CalendarProps };