@g4rcez/components 0.0.70 → 0.0.72
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/index.css +1 -1
- package/dist/index.js +53 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8050 -7899
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +51 -56
- package/dist/index.umd.js.map +1 -1
- package/dist/preset/preset.tailwind.js +3 -3
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +18 -1
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +18 -1
- package/dist/preset/src/styles/theme.types.d.ts +4 -1
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/preset.tailwind.js +3 -3
- package/dist/src/components/core/button.d.ts +1 -1
- package/dist/src/components/core/button.d.ts.map +1 -1
- package/dist/src/components/core/button.js +4 -3
- package/dist/src/components/core/polymorph.d.ts +1 -1
- package/dist/src/components/core/polymorph.d.ts.map +1 -1
- package/dist/src/components/core/tag.d.ts +2 -2
- package/dist/src/components/core/tag.d.ts.map +1 -1
- package/dist/src/components/core/tag.js +3 -1
- package/dist/src/components/display/calendar.d.ts.map +1 -1
- package/dist/src/components/display/calendar.js +1 -1
- package/dist/src/components/display/step.d.ts +2 -2
- package/dist/src/components/display/step.d.ts.map +1 -1
- package/dist/src/components/display/step.js +7 -7
- package/dist/src/components/display/tabs.d.ts.map +1 -1
- package/dist/src/components/display/tabs.js +3 -3
- package/dist/src/components/floating/menu.d.ts.map +1 -1
- package/dist/src/components/floating/menu.js +19 -16
- package/dist/src/components/floating/modal.d.ts +11 -8
- package/dist/src/components/floating/modal.d.ts.map +1 -1
- package/dist/src/components/floating/modal.js +8 -8
- package/dist/src/components/floating/tooltip.d.ts +2 -2
- package/dist/src/components/floating/tooltip.d.ts.map +1 -1
- package/dist/src/components/form/autocomplete.d.ts +1 -7
- package/dist/src/components/form/autocomplete.d.ts.map +1 -1
- package/dist/src/components/form/autocomplete.js +91 -30
- package/dist/src/components/form/free-text.d.ts.map +1 -1
- package/dist/src/components/form/free-text.js +2 -2
- package/dist/src/components/form/input-field.d.ts +5 -5
- package/dist/src/components/form/input-field.d.ts.map +1 -1
- package/dist/src/components/form/input-field.js +5 -3
- package/dist/src/components/form/multi-combobox.d.ts +24 -0
- package/dist/src/components/form/multi-combobox.d.ts.map +1 -0
- package/dist/src/components/form/{virtual-autocomplete.js → multi-combobox.js} +93 -68
- package/dist/src/components/form/select.d.ts.map +1 -1
- package/dist/src/components/form/select.js +1 -1
- package/dist/src/components/form/task-list.js +3 -3
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/components/table/table-lib.d.ts.map +1 -1
- package/dist/src/components/table/table-lib.js +9 -2
- package/dist/src/components/table/thead.d.ts.map +1 -1
- package/dist/src/components/table/thead.js +1 -1
- package/dist/src/hooks/use-components-provider.d.ts +15 -0
- package/dist/src/hooks/use-components-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-components-provider.js +26 -5
- package/dist/src/lib/dict.d.ts +9 -0
- package/dist/src/lib/dict.d.ts.map +1 -0
- package/dist/src/lib/dict.js +28 -0
- package/dist/src/styles/dark.d.ts.map +1 -1
- package/dist/src/styles/dark.js +18 -1
- package/dist/src/styles/light.d.ts.map +1 -1
- package/dist/src/styles/light.js +18 -1
- package/dist/src/styles/theme.types.d.ts +4 -1
- package/dist/src/styles/theme.types.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/src/components/form/virtual-autocomplete.d.ts +0 -15
- package/dist/src/components/form/virtual-autocomplete.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["../../../../src/styles/dark.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["../../../../src/styles/dark.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,UAAU,EAAE,YAyMxB,CAAC"}
|
|
@@ -9,6 +9,7 @@ export var DARK_THEME = {
|
|
|
9
9
|
colors: {
|
|
10
10
|
foreground: "hsla(210, 50%, 98%)",
|
|
11
11
|
background: "hsla(0, 0%, 9%)",
|
|
12
|
+
muted: "hsla(0, 0%, 12%)",
|
|
12
13
|
disabled: "hsla(240, 4%, 33%)",
|
|
13
14
|
emphasis: {
|
|
14
15
|
foreground: "hsla(251, 91%, 95%)",
|
|
@@ -65,18 +66,21 @@ export var DARK_THEME = {
|
|
|
65
66
|
switch: "hsla(0, 0%, 100%)",
|
|
66
67
|
},
|
|
67
68
|
card: {
|
|
68
|
-
|
|
69
|
+
muted: "hsla(0, 0%, 22%)",
|
|
69
70
|
border: "hsla(240, 7%, 27%)",
|
|
71
|
+
background: "hsla(0, 0%, 15%)",
|
|
70
72
|
},
|
|
71
73
|
floating: {
|
|
72
74
|
foreground: "hsla(210, 40%, 98%)",
|
|
73
75
|
background: "hsla(0, 0%, 14%)",
|
|
76
|
+
hover: "hsla(221, 10%, 22%)",
|
|
74
77
|
border: "hsla(240, 7%, 27%)",
|
|
75
78
|
overlay: "hsla(0, 0%, 0%)",
|
|
76
79
|
},
|
|
77
80
|
tooltip: {
|
|
78
81
|
foreground: "hsla(210, 40%, 98%)",
|
|
79
82
|
background: "hsla(0, 0%, 8%)",
|
|
83
|
+
hover: "hsla(221, 10%, 35%)",
|
|
80
84
|
border: "hsla(0, 0%, 19%)",
|
|
81
85
|
overlay: "hsla(0, 0%, 0%)",
|
|
82
86
|
},
|
|
@@ -106,6 +110,10 @@ export var DARK_THEME = {
|
|
|
106
110
|
text: "hsla(2,100%,90%)",
|
|
107
111
|
bg: "hsla(5,62%,23%)",
|
|
108
112
|
},
|
|
113
|
+
muted: {
|
|
114
|
+
text: "hsla(0, 100%, 100%)",
|
|
115
|
+
bg: "hsla(0, 0%, 12%)",
|
|
116
|
+
},
|
|
109
117
|
neutral: {
|
|
110
118
|
text: "hsla(200,98%,60%)",
|
|
111
119
|
bg: "hsla(200,28%,19%)",
|
|
@@ -144,6 +152,10 @@ export var DARK_THEME = {
|
|
|
144
152
|
text: "hsla(216,10%,90%)",
|
|
145
153
|
bg: "hsla(214,7%,19%)",
|
|
146
154
|
},
|
|
155
|
+
muted: {
|
|
156
|
+
text: "hsla(0, 100%, 100%)",
|
|
157
|
+
bg: "hsla(0, 0%, 12%)",
|
|
158
|
+
},
|
|
147
159
|
},
|
|
148
160
|
alert: {
|
|
149
161
|
primary: {
|
|
@@ -181,6 +193,11 @@ export var DARK_THEME = {
|
|
|
181
193
|
bg: "hsla(220,6%,10%)",
|
|
182
194
|
border: "hsla(214,7%,19%)",
|
|
183
195
|
},
|
|
196
|
+
muted: {
|
|
197
|
+
bg: "hsla(0, 0%, 12%)",
|
|
198
|
+
border: "hsla(0, 0%, 40%)",
|
|
199
|
+
text: "hsla(0, 100%, 100%)",
|
|
200
|
+
},
|
|
184
201
|
},
|
|
185
202
|
},
|
|
186
203
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,YAyMzB,CAAC"}
|
|
@@ -9,6 +9,7 @@ export var LIGHT_THEME = {
|
|
|
9
9
|
colors: {
|
|
10
10
|
foreground: "hsla(217, 15%, 30%)",
|
|
11
11
|
background: "hsla(210, 34%, 96%)",
|
|
12
|
+
muted: "hsla(210, 30%, 86%)",
|
|
12
13
|
disabled: "hsla(240, 10%, 78%)",
|
|
13
14
|
emphasis: {
|
|
14
15
|
foreground: "hsla(251,91%,95%)",
|
|
@@ -65,18 +66,21 @@ export var LIGHT_THEME = {
|
|
|
65
66
|
switch: "hsla(0, 0%, 100%)",
|
|
66
67
|
},
|
|
67
68
|
card: {
|
|
68
|
-
|
|
69
|
+
muted: "hsla(210, 25%, 94%)",
|
|
69
70
|
border: "hsla(210, 25%, 88%)",
|
|
71
|
+
background: "hsla(0, 0%, 100%)",
|
|
70
72
|
},
|
|
71
73
|
floating: {
|
|
72
74
|
foreground: "hsla(217, 15%, 20%)",
|
|
73
75
|
background: "hsla(0, 0%, 100%)",
|
|
76
|
+
hover: "hsla(0, 0%, 92%)",
|
|
74
77
|
border: "hsla(210, 25%, 88%)",
|
|
75
78
|
overlay: "hsla(0, 0%, 0%)",
|
|
76
79
|
},
|
|
77
80
|
tooltip: {
|
|
78
81
|
foreground: "hsla(217, 15%, 20%)",
|
|
79
82
|
background: "hsla(210, 25%, 98%)",
|
|
83
|
+
hover: "hsla(210, 25%, 92%)",
|
|
80
84
|
border: "hsla(200, 1%, 80%)",
|
|
81
85
|
overlay: "hsla(0, 0%, 0%)",
|
|
82
86
|
},
|
|
@@ -86,6 +90,10 @@ export var LIGHT_THEME = {
|
|
|
86
90
|
border: "hsla(210, 25%, 88%)",
|
|
87
91
|
},
|
|
88
92
|
button: {
|
|
93
|
+
muted: {
|
|
94
|
+
bg: "hsla(210, 30%, 86%)",
|
|
95
|
+
text: "hsla(210, 10%, 15%)",
|
|
96
|
+
},
|
|
89
97
|
primary: {
|
|
90
98
|
text: "hsla(0, 0%, 100%)",
|
|
91
99
|
bg: "hsla(207,96%,48%)",
|
|
@@ -116,6 +124,10 @@ export var LIGHT_THEME = {
|
|
|
116
124
|
},
|
|
117
125
|
},
|
|
118
126
|
tag: {
|
|
127
|
+
muted: {
|
|
128
|
+
bg: "hsla(210, 30%, 86%)",
|
|
129
|
+
text: "hsla(210, 30%, 86%)",
|
|
130
|
+
},
|
|
119
131
|
primary: {
|
|
120
132
|
text: "hsla(0, 0%, 100%)",
|
|
121
133
|
bg: "hsla(207,70%,55%)",
|
|
@@ -146,6 +158,11 @@ export var LIGHT_THEME = {
|
|
|
146
158
|
},
|
|
147
159
|
},
|
|
148
160
|
alert: {
|
|
161
|
+
muted: {
|
|
162
|
+
bg: "hsla(210, 30%, 86%)",
|
|
163
|
+
text: "hsla(210, 30%, 86%)",
|
|
164
|
+
border: "hsla(210, 10%, 70%)",
|
|
165
|
+
},
|
|
149
166
|
primary: {
|
|
150
167
|
text: "hsla(206,70%,50%)",
|
|
151
168
|
border: "hsla(206,90%,89%)",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type GeneralTokens = {
|
|
2
2
|
[K in string]: string | GeneralTokens;
|
|
3
3
|
};
|
|
4
|
-
export type ThemeState = "primary" | "warn" | "secondary" | "info" | "danger" | "success" | "neutral";
|
|
4
|
+
export type ThemeState = "primary" | "warn" | "secondary" | "info" | "danger" | "success" | "neutral" | "muted";
|
|
5
5
|
type BasicTokens = {
|
|
6
6
|
hover: string;
|
|
7
7
|
subtle: string;
|
|
@@ -9,6 +9,7 @@ type BasicTokens = {
|
|
|
9
9
|
foreground: string;
|
|
10
10
|
};
|
|
11
11
|
type ComponentToken = {
|
|
12
|
+
hover: string;
|
|
12
13
|
border: string;
|
|
13
14
|
overlay: string;
|
|
14
15
|
background: string;
|
|
@@ -23,6 +24,7 @@ export type DesignTokens = {
|
|
|
23
24
|
colors: {
|
|
24
25
|
disabled: string;
|
|
25
26
|
background: string;
|
|
27
|
+
muted: string;
|
|
26
28
|
foreground: string;
|
|
27
29
|
primary: BasicTokens;
|
|
28
30
|
emphasis: BasicTokens;
|
|
@@ -37,6 +39,7 @@ export type DesignTokens = {
|
|
|
37
39
|
card: {
|
|
38
40
|
background: string;
|
|
39
41
|
border: string;
|
|
42
|
+
muted: string;
|
|
40
43
|
};
|
|
41
44
|
danger: BasicTokens & {
|
|
42
45
|
notification: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,aAAa;CAAE,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,aAAa;CAAE,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhH,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,GAAG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E,CAAC;CACnF,CAAC"}
|
package/dist/preset.tailwind.js
CHANGED
|
@@ -5,7 +5,7 @@ import { PolymorphicProps } from "./polymorph";
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
6
|
size?: "big" | "small" | "min" | "default" | "icon" | null | undefined;
|
|
7
7
|
rounded?: "circle" | "default" | "rough" | "squared" | null | undefined;
|
|
8
|
-
theme?: "main" | "disabled" | "loading" | "raw" | "info" | "warn" | "danger" | "neutral" | "primary" | "success" | "secondary" | "ghost-info" | "ghost-warn" | "ghost-danger" | "ghost-primary" | "ghost-success" | "ghost-secondary" | null | undefined;
|
|
8
|
+
theme?: "main" | "disabled" | "muted" | "loading" | "raw" | "info" | "warn" | "danger" | "neutral" | "primary" | "success" | "secondary" | "ghost-info" | "ghost-warn" | "ghost-danger" | "ghost-primary" | "ghost-success" | "ghost-secondary" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
export type ButtonProps<T extends React.ElementType = "button"> = PolymorphicProps<VariantProps<typeof buttonVariants> & Partial<{
|
|
11
11
|
icon: Label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/core/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,cAAc;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/core/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,cAAc;;;;mFAyCnB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,gBAAgB,CAC9E,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,EAChF,CAAC,CACJ,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,GAwB7E,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { css } from "../../lib/dom";
|
|
5
5
|
import { Polymorph } from "./polymorph";
|
|
6
|
-
const buttonVariants = cva("relative overflow-hidden inline-flex duration-500 enabled:hover:bg-opacity-70 enabled:focus:bg-opacity-70 data-[loading=true]:opacity-30 data-[loading=true]:animate-pulse gap-1.5 items-center justify-center align-middle cursor-pointer whitespace-nowrap font-medium transition-colors ease-in disabled:cursor-not-allowed disabled:bg-opacity-40 disabled:text-opacity-80 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring
|
|
6
|
+
const buttonVariants = cva("relative overflow-hidden inline-flex duration-500 enabled:hover:bg-opacity-70 enabled:focus:bg-opacity-70 data-[loading=true]:opacity-30 data-[loading=true]:animate-pulse gap-1.5 items-center justify-center align-middle cursor-pointer whitespace-nowrap font-medium transition-colors ease-in disabled:cursor-not-allowed disabled:bg-opacity-40 disabled:text-opacity-80 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring", {
|
|
7
7
|
variants: {
|
|
8
8
|
size: {
|
|
9
9
|
icon: "p-1",
|
|
@@ -20,15 +20,16 @@ const buttonVariants = cva("relative overflow-hidden inline-flex duration-500 en
|
|
|
20
20
|
},
|
|
21
21
|
theme: {
|
|
22
22
|
raw: "",
|
|
23
|
+
disabled: "bg-disabled opacity-70",
|
|
24
|
+
loading: "animate-pulse bg-disabled",
|
|
23
25
|
main: "bg-primary text-primary-foreground",
|
|
24
|
-
disabled: "bg-disabled duration-700 opacity-70",
|
|
25
26
|
info: "bg-button-info-bg text-button-info-text",
|
|
26
27
|
warn: "bg-button-warn-bg text-button-warn-text",
|
|
28
|
+
muted: "bg-button-muted-bg text-button-muted-text",
|
|
27
29
|
danger: "bg-button-danger-bg text-button-danger-text",
|
|
28
30
|
neutral: "bg-transparent border-2 border-card-border",
|
|
29
31
|
primary: "bg-button-primary-bg text-button-primary-text",
|
|
30
32
|
success: "bg-button-success-bg text-button-success-text",
|
|
31
|
-
loading: "animate-pulse bg-disabled duration-700 opacity-70",
|
|
32
33
|
secondary: "bg-button-secondary-bg text-button-secondary-text",
|
|
33
34
|
"ghost-info": "bg-transparent hover:bg-info/20 border border-info text-info",
|
|
34
35
|
"ghost-warn": "bg-transparent hover:bg-warn/20 border border-warn text-warn",
|
|
@@ -4,7 +4,7 @@ type Polymorphism<T extends ElementType> = PropsWithChildren<{
|
|
|
4
4
|
as?: T;
|
|
5
5
|
}>;
|
|
6
6
|
type Props<T extends ElementType = ElementType> = Polymorphism<T> & Omit<React.ComponentPropsWithRef<T>, keyof Polymorphism<T>>;
|
|
7
|
-
export type PolymorphicProps<P extends {}, T extends ElementType = ElementType> = Override<Props<T>, P
|
|
7
|
+
export type PolymorphicProps<P extends {}, T extends ElementType = ElementType> = Override<Props<T>, P>;
|
|
8
8
|
export declare const Polymorph: <T extends ElementType>(p: PolymorphicProps<ComponentProps<T>, T>) => React.ReactElement;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=polymorph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polymorph.d.ts","sourceRoot":"","sources":["../../../../src/components/core/polymorph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAc,WAAW,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,iBAAiB,CAAC;IACzD,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH,KAAK,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhI,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"polymorph.d.ts","sourceRoot":"","sources":["../../../../src/components/core/polymorph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAc,WAAW,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,iBAAiB,CAAC;IACzD,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,CAAC,CAAC;AAEH,KAAK,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhI,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAExG,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,YAS3F,CAAC"}
|
|
@@ -3,11 +3,11 @@ import React from "react";
|
|
|
3
3
|
import { Label } from "../../types";
|
|
4
4
|
import { PolymorphicProps } from "./polymorph";
|
|
5
5
|
declare const indicatorVariant: (props?: ({
|
|
6
|
-
theme?: "main" | "info" | "warn" | "danger" | "success" | "secondary" | null | undefined;
|
|
6
|
+
theme?: "main" | "muted" | "info" | "warn" | "danger" | "success" | "secondary" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const tagVariants: (props?: ({
|
|
9
9
|
size?: "big" | "small" | "default" | "icon" | null | undefined;
|
|
10
|
-
theme?: "disabled" | "loading" | "info" | "warn" | "danger" | "neutral" | "primary" | "success" | "secondary" | null | undefined;
|
|
10
|
+
theme?: "disabled" | "muted" | "loading" | "info" | "warn" | "danger" | "neutral" | "primary" | "success" | "secondary" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
12
|
export type TagProps<T extends React.ElementType = "span"> = PolymorphicProps<VariantProps<typeof tagVariants> & Partial<{
|
|
13
13
|
icon: Label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/core/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/core/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAa,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1D,QAAA,MAAM,gBAAgB;;mFAYpB,CAAC;AAEH,QAAA,MAAM,WAAW;;;mFAsBf,CAAC;AAEH,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,gBAAgB,CACzE,YAAY,CAAC,OAAO,WAAW,CAAC,GAC5B,OAAO,CAAC;IACJ,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;CAC7D,CAAC,EACN,CAAC,CACJ,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,GAkBrE,CAAC"}
|
|
@@ -6,8 +6,9 @@ import { Polymorph } from "./polymorph";
|
|
|
6
6
|
const indicatorVariant = cva("size-2.5 aspect-square rounded-full border-0", {
|
|
7
7
|
variants: {
|
|
8
8
|
theme: {
|
|
9
|
-
warn: "bg-warn",
|
|
10
9
|
info: "bg-info",
|
|
10
|
+
warn: "bg-warn",
|
|
11
|
+
muted: "bg-muted",
|
|
11
12
|
main: "bg-primary",
|
|
12
13
|
danger: "bg-danger",
|
|
13
14
|
success: "bg-success",
|
|
@@ -30,6 +31,7 @@ const tagVariants = cva("inline-flex rounded-pill gap-1.5 border-2 border-transp
|
|
|
30
31
|
success: "bg-tag-success-bg text-tag-success-text",
|
|
31
32
|
secondary: "bg-tag-secondary-bg text-tag-secondary-text",
|
|
32
33
|
warn: "bg-tag-warn-bg text-tag-warn-text",
|
|
34
|
+
muted: "bg-tag-muted-bg text-tag-muted-text",
|
|
33
35
|
neutral: "bg-transparent border border-card-border",
|
|
34
36
|
disabled: "bg-disabled duration-700 opacity-70",
|
|
35
37
|
loading: "animate-pulse bg-disabled duration-700 opacity-70",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../src/components/display/calendar.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAqB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAqBvD,KAAK,KAAK,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAExC,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;AAElD,KAAK,aAAa,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC;AAEpD,KAAK,cAAc,GAAG,OAAO,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,IAAI,OAAO,CACrF;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAA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E,KAAK,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,CAAC,CACrF,CAAC;AA0HF,eAAO,MAAM,QAAQ,mKAclB,aAAa,4CAiPf,CAAC"}
|
|
@@ -209,5 +209,5 @@ export const Calendar = ({ RenderOnDay, changeOnlyOnClick = false, labelRange, d
|
|
|
209
209
|
onChangeYear?.(new Date(value));
|
|
210
210
|
defer(value);
|
|
211
211
|
};
|
|
212
|
-
return (_jsx(MotionConfig, { transition: transition, children: _jsxs("div", { "data-component": "calendar", ref: root, className: css("relative overflow-hidden", styles?.calendar), children: [_jsx("div", { className: "flex flex-col justify-center rounded text-center", children: _jsx(AnimatePresence, { initial: false, mode: "popLayout", custom: state.direction, onExitComplete: dispatch.onExitComplete, children: _jsxs(motion.div, { initial: "enter", animate: "middle", exit: "exit", children: [_jsxs("header", { className: "relative flex justify-between", children: [_jsx(motion.button, { type: "button",
|
|
212
|
+
return (_jsx(MotionConfig, { transition: transition, children: _jsxs("div", { "data-component": "calendar", ref: root, className: css("relative overflow-hidden", styles?.calendar), children: [_jsx("div", { className: "flex flex-col justify-center rounded text-center", children: _jsx(AnimatePresence, { initial: false, mode: "popLayout", custom: state.direction, onExitComplete: dispatch.onExitComplete, children: _jsxs(motion.div, { initial: "enter", animate: "middle", exit: "exit", children: [_jsxs("header", { className: "relative flex justify-between", children: [_jsx(motion.button, { layout: true, type: "button", "data-focustrap": "prev", variants: removeImmediately, onClick: dispatch.previousMonth, title: translations.calendarBackMonth, className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground", children: _jsx(ChevronLeftIcon, { className: "h-4 w-4" }) }), _jsx(motion.span, { layout: true, variants: variants, custom: state.direction, className: "absolute inset-0 isolate z-normal flex items-center justify-center font-semibold", children: _jsxs("span", { className: "flex w-fit items-center justify-center gap-0.5 py-1", children: [_jsx("select", { value: monthString, onChange: dispatch.onChangeMonth, style: { width: `${monthString.length + 1}ch` }, className: "cursor-pointer appearance-none bg-transparent capitalize proportional-nums hover:text-primary", children: state.months }), _jsx(TheMaskInput, { mask: "int", maxLength: 4, placeholder: "YYYY", value: state.year, onChange: internalOnChangeYear, style: { width: `${state.year.length}ch` }, className: "w-16 cursor-pointer appearance-none bg-transparent hover:text-primary" })] }) }), _jsx(motion.button, { layout: true, type: "button", "data-focustrap": "next", variants: removeImmediately, onClick: dispatch.nextMonth, title: translations.calendarNextMonth, className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground", children: _jsx(ChevronRightIcon, { className: "h-4 w-4" }) }), _jsx("div", { className: "absolute inset-0", style: { backgroundImage: "linear-gradient(to right, hsla(var(--card-background)) 15%, transparent 30%, transparent 70%, hsla(var(--card-background)) 85%)" } })] }), _jsxs(motion.table, { className: "mt-2 table min-w-full table-auto border-0", children: [_jsx("thead", { children: _jsx("tr", { children: state.week.map((dayOfWeek) => (_jsx("th", { className: css("py-2 text-sm font-medium capitalize", styles?.weekDay), children: dayOfWeek.toLocaleDateString(currentLocale, { weekday: "short" }) }, dayOfWeek.toString()))) }) }), _jsx(CalendarBody, { zip: zip, range: range, styles: styles, date: date || null, dispatch: dispatch, markRange: markRange, markToday: markToday, rangeMode: rangeMode, stateDate: state.date, labelRange: labelRange, stateRange: state.range, RenderOnDay: RenderOnDay, direction: state.direction, disabledDate: disabledDate, onKeyDown: dispatch.onKeyDown })] })] }, monthString) }) }), _jsx("footer", { className: "mt-2 text-center text-primary", children: _jsx("button", { className: "transition-transform duration-300 hover:scale-105", type: "button", onClick: dispatch.setToday, children: translations.calendarToday }) })] }) }));
|
|
213
213
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
type StepStatus = "active" | "inactive" | "complete" | "error";
|
|
3
|
-
export type StepProps = {
|
|
3
|
+
export type StepProps = React.ComponentProps<"button"> & {
|
|
4
4
|
step: number;
|
|
5
5
|
currentStep: number;
|
|
6
6
|
status?: StepStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/components/display/step.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,iBAAiB,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/components/display/step.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAkB,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAmC5E,KAAK,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAkBpH,eAAO,MAAM,cAAc,UAAW,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,4CA6B9F,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,4CAkDpC,CAAC"}
|
|
@@ -5,16 +5,16 @@ import { useEffect } from "react";
|
|
|
5
5
|
import { useColorParser } from "../../hooks/use-components-provider";
|
|
6
6
|
const iconTransitions = {
|
|
7
7
|
delay: 0.2,
|
|
8
|
+
duration: 0.3,
|
|
8
9
|
type: "tween",
|
|
9
10
|
ease: "easeOut",
|
|
10
|
-
duration: 0.3,
|
|
11
11
|
};
|
|
12
12
|
const states = {
|
|
13
13
|
initial: { pathLength: 0, opacity: 0 },
|
|
14
14
|
animate: { pathLength: 1, opacity: 1 },
|
|
15
15
|
};
|
|
16
16
|
const ErrorIcon = (props) => (_jsxs("svg", { ...props, viewBox: "0 0 24 24", fill: "currentColor", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(motion.path, { className: "currentColor", initial: states.initial, animate: states.animate, transition: iconTransitions, d: "M18 6 6 18" }), _jsx(motion.path, { className: "currentColor", initial: states.initial, animate: states.animate, transition: iconTransitions, d: "m6 6 12 12" })] }));
|
|
17
|
-
const CheckIcon = (props) => (_jsx("svg", { ...props, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 3, children: _jsx(motion.path, {
|
|
17
|
+
const CheckIcon = (props) => (_jsx("svg", { ...props, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 3, children: _jsx(motion.path, { d: "M5 13l4 4L19 7", strokeLinecap: "round", strokeLinejoin: "round", animate: states.animate, initial: states.initial, transition: iconTransitions }) }));
|
|
18
18
|
const variants = { complete: { scale: 1.25 }, active: { scale: 1, transition: { delay: 0, duration: 0.2 } } };
|
|
19
19
|
const transitions = {
|
|
20
20
|
duration: 0.6,
|
|
@@ -37,8 +37,8 @@ export const StepsContainer = (props) => {
|
|
|
37
37
|
if (props.currentStep === 0)
|
|
38
38
|
return;
|
|
39
39
|
const container = ref.current;
|
|
40
|
-
const first = container.querySelectorAll(
|
|
41
|
-
const step = container.querySelector(`
|
|
40
|
+
const first = container.querySelectorAll('[data-step]')[0];
|
|
41
|
+
const step = container.querySelector(`[data-step="${props.currentStep}"]`);
|
|
42
42
|
if (first && step) {
|
|
43
43
|
const diff = step.getBoundingClientRect().left - first.getBoundingClientRect().left;
|
|
44
44
|
animate("div[data-name='progress']", { width: `${Math.max(0, diff)}px` }, {
|
|
@@ -48,12 +48,12 @@ export const StepsContainer = (props) => {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
}, [props.currentStep]);
|
|
51
|
-
return (_jsxs("div", { className: "relative flex justify-between", ref: ref, children: [_jsx("div", { className: "absolute top-1/2 h-1 w-[calc(100%)] bg-card-border" }), _jsx("div", { "data-name": "progress", className: "absolute top-1/2 h-1 w-0 bg-success" }), props.children] }));
|
|
51
|
+
return (_jsxs("div", { className: "relative flex justify-between", ref: ref, children: [_jsx("div", { className: "absolute top-1/2 h-1 w-[calc(100%)] bg-card-border" }), _jsx("div", { "data-name": "progress", className: "absolute top-1/2 h-1 w-0 bg-success transition-all duration-300 ease-out" }), props.children] }));
|
|
52
52
|
};
|
|
53
53
|
export const Step = (props) => {
|
|
54
54
|
const parser = useColorParser();
|
|
55
55
|
const status = getCurrentStatus(props);
|
|
56
|
-
return (_jsxs(motion.
|
|
56
|
+
return (_jsxs(motion.button, { ...props, type: "button", "data-step": props.step, animate: status, className: "relative block w-auto", children: [_jsx(motion.div, { variants: variants, transition: transitions, className: `absolute inset-0 rounded-full ${props.status === "error" ? "bg-danger" : ""}` }), _jsx(motion.div, { initial: false, variants: {
|
|
57
57
|
error: {
|
|
58
58
|
backgroundColor: parser("var(--danger-DEFAULT)"),
|
|
59
59
|
borderColor: parser("var(--danger-hover)"),
|
|
@@ -72,7 +72,7 @@ export const Step = (props) => {
|
|
|
72
72
|
complete: {
|
|
73
73
|
backgroundColor: parser("var(--success-DEFAULT)"),
|
|
74
74
|
borderColor: parser("var(--success-DEFAULT)"),
|
|
75
|
-
color: parser("var(--success-
|
|
75
|
+
color: parser("var(--success-foreground)"),
|
|
76
76
|
},
|
|
77
77
|
}, transition: { duration: 0.2 }, className: "relative flex h-10 w-10 items-center justify-center rounded-full font-semibold", children: _jsx("div", { className: "flex items-center justify-center", children: status === "complete" ? (_jsx(CheckIcon, { className: "h-6 w-6 text-primary-foreground" })) : status === "error" ? (_jsx(ErrorIcon, { className: "h-6 w-6 text-danger-foreground" })) : (_jsx("span", { children: props.step })) }) })] }));
|
|
78
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/display/tabs.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA2B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/display/tabs.tsx"],"names":[],"mappings":"AAEA,OAAc,EAA2B,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAGzG,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,MAAM,SAAS,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAIF,eAAO,MAAM,IAAI,UAAW,iBAAiB,CAAC,SAAS,CAAC,4CA2FvD,CAAC;AAIF,MAAM,MAAM,QAAQ,GACd;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAChD;IACI,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAER,eAAO,MAAM,GAAG,UAAW,iBAAiB,CAAC,QAAQ,CAAC,4CAGrD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMotionValue } from "motion/react";
|
|
4
|
-
import React, { createContext, Fragment, useContext, useEffect,
|
|
4
|
+
import React, { createContext, Fragment, useContext, useEffect, useRef } from "react";
|
|
5
5
|
import { useReactive } from "../../hooks/use-reactive";
|
|
6
6
|
import { useStableRef } from "../../hooks/use-stable-ref";
|
|
7
7
|
import { Card } from "./card";
|
|
@@ -12,7 +12,7 @@ export const Tabs = (props) => {
|
|
|
12
12
|
const width = useMotionValue(0);
|
|
13
13
|
const ref = useRef(null);
|
|
14
14
|
const Render = props.useHash ? "a" : "button";
|
|
15
|
-
|
|
15
|
+
useEffect(() => {
|
|
16
16
|
const header = ref.current;
|
|
17
17
|
if (header === null)
|
|
18
18
|
return;
|
|
@@ -57,7 +57,7 @@ export const Tabs = (props) => {
|
|
|
57
57
|
};
|
|
58
58
|
return (_jsx(Context.Provider, { value: active, children: _jsx(Card, { className: props.className, container: "pt-0 max-w-full w-full min-w-0", header: _jsx("header", { ref: ref, className: "relative mb-2 overflow-x-auto border-b border-card-border", children: _jsx("nav", { className: "min-w-0", children: _jsx("ul", { className: "flex w-0 min-w-full flex-1 justify-start overflow-x-auto", children: items.map((x) => {
|
|
59
59
|
const inner = x.props;
|
|
60
|
-
return (_jsx("li", { "data-id": inner.id, "data-active": active === inner.id, className: "w-full border-b-2 border-card-border data-[active=true]:border-primary data-[active=true]:
|
|
60
|
+
return (_jsx("li", { "data-id": inner.id, "data-active": active === inner.id, className: "w-full border-b-2 transition-all border-card-border data-[active=true]:border-primary data-[active=true]:text-primary", children: _jsx(Render, { "data-id": inner.id, onClick: onClick, "aria-current": "page", href: props.useHash ? `#${inner.id}` : undefined, className: "block w-full whitespace-nowrap px-10 py-4", children: inner.title }) }, `tab-header-${inner.id}`));
|
|
61
61
|
}) }) }) }), children: props.children }) }));
|
|
62
62
|
};
|
|
63
63
|
const useTabs = () => useContext(Context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAoB,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA0BvC,MAAM,MAAM,SAAS,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/floating/menu.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAoB,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,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../constants";
|
|
|
8
8
|
import { css } from "../../lib/dom";
|
|
9
9
|
const menuItemClassName = (highlight = "") => css("w-full min-w-36 outline-none p-2.5 items-center flex justify-between text-left", "hover:bg-primary focus:bg-primary aria-expanded:opacity-80", "focus:text-primary-foreground hover:text-primary-foreground", "first-of-type:rounded-t-lg last-of-type:rounded-b-lg", "disabled:opacity-40 disabled:cursor-not-allowed", highlight);
|
|
10
10
|
const MenuContext = createContext({
|
|
11
|
+
isOpen: false,
|
|
11
12
|
activeIndex: null,
|
|
12
13
|
getItemProps: () => ({}),
|
|
13
|
-
isOpen: false,
|
|
14
14
|
setActiveIndex: () => { },
|
|
15
15
|
setHasFocusInside: () => { },
|
|
16
16
|
});
|
|
17
17
|
const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", hover = true, isParent, floatingClassName = "", label, ...props }, forwardedRef) => {
|
|
18
|
-
const parentId = useFloatingParentNodeId();
|
|
19
|
-
const isNested = parentId !== null;
|
|
20
18
|
const [isOpen, setIsOpen] = useState(false);
|
|
21
19
|
const [hasFocusInside, setHasFocusInside] = useState(false);
|
|
22
20
|
const [activeIndex, setActiveIndex] = useState(null);
|
|
23
21
|
const elementsRef = useRef([]);
|
|
24
22
|
const labelsRef = useRef([]);
|
|
25
23
|
const parent = useContext(MenuContext);
|
|
24
|
+
const parentId = useFloatingParentNodeId();
|
|
26
25
|
const tree = useFloatingTree();
|
|
27
26
|
const nodeId = useFloatingNodeId();
|
|
28
27
|
const item = useListItem();
|
|
28
|
+
const isNested = parentId !== null;
|
|
29
29
|
const { floatingStyles, refs, context } = useFloating({
|
|
30
30
|
nodeId,
|
|
31
31
|
open: isOpen,
|
|
@@ -39,9 +39,10 @@ const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", h
|
|
|
39
39
|
const role = useRole(context, { role: "menu", enabled: true });
|
|
40
40
|
const dismiss = useDismiss(context, { bubbles: true });
|
|
41
41
|
const hoverModule = useHover(context, {
|
|
42
|
+
move: false,
|
|
42
43
|
enabled: hover,
|
|
43
44
|
delay: { open: FLOATING_DELAY },
|
|
44
|
-
handleClose: safePolygon({ blockPointerEvents: true
|
|
45
|
+
handleClose: safePolygon({ blockPointerEvents: true }),
|
|
45
46
|
});
|
|
46
47
|
const click = useClick(context, {
|
|
47
48
|
event: "mousedown",
|
|
@@ -51,13 +52,10 @@ const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", h
|
|
|
51
52
|
});
|
|
52
53
|
const listNavigation = useListNavigation(context, {
|
|
53
54
|
loop: true,
|
|
55
|
+
listRef: elementsRef,
|
|
54
56
|
activeIndex,
|
|
55
|
-
virtual: true,
|
|
56
57
|
nested: isNested,
|
|
57
|
-
|
|
58
|
-
listRef: elementsRef,
|
|
59
|
-
scrollItemIntoView: true,
|
|
60
|
-
onNavigate: setActiveIndex,
|
|
58
|
+
onNavigate: setActiveIndex
|
|
61
59
|
});
|
|
62
60
|
const typeahead = useTypeahead(context, {
|
|
63
61
|
activeIndex,
|
|
@@ -65,16 +63,20 @@ const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", h
|
|
|
65
63
|
resetMs: TYPEAHEAD_RESET_DELAY,
|
|
66
64
|
onMatch: isOpen ? setActiveIndex : undefined,
|
|
67
65
|
});
|
|
68
|
-
const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
|
|
66
|
+
const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
|
|
67
|
+
hoverModule, click, role, dismiss, listNavigation, typeahead
|
|
68
|
+
]);
|
|
69
69
|
useEffect(() => {
|
|
70
70
|
if (!tree)
|
|
71
71
|
return;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
function handleTreeClick() {
|
|
73
|
+
setIsOpen(false);
|
|
74
|
+
}
|
|
75
|
+
function onSubMenuOpen(event) {
|
|
74
76
|
if (event.nodeId !== nodeId && event.parentId === parentId) {
|
|
75
77
|
setIsOpen(false);
|
|
76
78
|
}
|
|
77
|
-
}
|
|
79
|
+
}
|
|
78
80
|
tree.events.on("click", handleTreeClick);
|
|
79
81
|
tree.events.on("menuopen", onSubMenuOpen);
|
|
80
82
|
return () => {
|
|
@@ -83,8 +85,9 @@ const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", h
|
|
|
83
85
|
};
|
|
84
86
|
}, [tree, nodeId, parentId]);
|
|
85
87
|
useEffect(() => {
|
|
86
|
-
if (isOpen && tree)
|
|
88
|
+
if (isOpen && tree) {
|
|
87
89
|
tree.events.emit("menuopen", { parentId, nodeId });
|
|
90
|
+
}
|
|
88
91
|
}, [tree, isOpen, nodeId, parentId]);
|
|
89
92
|
const className = isParent ? props.className : css(menuItemClassName(props.className));
|
|
90
93
|
return (_jsxs(FloatingNode, { id: nodeId, children: [_jsx(Fragment, { children: props.asChild ? (_jsx(Slot, { children: label, ref: useMergeRefs([refs.setReference, item.ref, forwardedRef]), tabIndex: !isNested ? undefined : parent.activeIndex === item.index ? 0 : -1, "data-open": isOpen ? "" : undefined, "data-nested": isNested ? "" : undefined, role: isNested ? "menuitem" : undefined, "data-focus-inside": hasFocusInside ? "" : undefined, className: className, ...getReferenceProps(parent.getItemProps({
|
|
@@ -94,7 +97,7 @@ const MenuComponent = React.forwardRef(({ children, FloatingComponent = "div", h
|
|
|
94
97
|
setHasFocusInside(false);
|
|
95
98
|
parent.setHasFocusInside(true);
|
|
96
99
|
},
|
|
97
|
-
})) })) : (_jsxs("button", { type: "button",
|
|
100
|
+
})) })) : (_jsxs("button", { type: "button", className: className, "data-open": isOpen ? "" : undefined, "data-nested": isNested ? "" : undefined, role: isNested ? "menuitem" : undefined, "data-focus-inside": hasFocusInside ? "" : undefined, ref: useMergeRefs([refs.setReference, item.ref, forwardedRef]), tabIndex: !isNested ? undefined : parent.activeIndex === item.index ? 0 : -1, ...getReferenceProps(parent.getItemProps({
|
|
98
101
|
...props,
|
|
99
102
|
onFocus(event) {
|
|
100
103
|
props.onFocus?.(event);
|
|
@@ -108,7 +111,7 @@ export const MenuItem = React.forwardRef(({ label, title, Right, disabled, ...pr
|
|
|
108
111
|
const item = useListItem({ label: disabled ? null : typeof label === "string" ? label : title });
|
|
109
112
|
const tree = useFloatingTree();
|
|
110
113
|
const isActive = item.index === menu.activeIndex;
|
|
111
|
-
return (_jsxs("button", { ...props,
|
|
114
|
+
return (_jsxs("button", { ...props, type: "button", role: "menuitem", disabled: disabled, "data-active": isActive, "data-open": menu.isOpen, tabIndex: isActive ? 0 : -1, ref: useMergeRefs([item.ref, forwardedRef]), className: menuItemClassName(`${props.className ?? ""} ${isActive ? "bg-primary text-primary-foreground" : ""}`), ...menu.getItemProps({
|
|
112
115
|
onClick(event) {
|
|
113
116
|
props.onClick?.(event);
|
|
114
117
|
tree?.events.emit("click");
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import { HTMLMotionProps } from "motion/react";
|
|
1
2
|
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import { Label } from "../../types";
|
|
3
|
-
export type ModalProps = {
|
|
4
|
-
layoutId?: string;
|
|
5
|
-
title?: Label;
|
|
3
|
+
import { Label, Override } from "../../types";
|
|
4
|
+
export type ModalProps = Override<HTMLMotionProps<"div">, {
|
|
6
5
|
open: boolean;
|
|
6
|
+
title?: Label;
|
|
7
7
|
footer?: Label;
|
|
8
|
-
resizer?: boolean;
|
|
9
8
|
asChild?: boolean;
|
|
9
|
+
layoutId?: string;
|
|
10
|
+
resizer?: boolean;
|
|
11
|
+
className?: string;
|
|
10
12
|
closable?: boolean;
|
|
13
|
+
forceType?: boolean;
|
|
14
|
+
overlayClassName?: string;
|
|
11
15
|
overlayClickClose?: boolean;
|
|
12
16
|
position?: "left" | "right";
|
|
13
17
|
trigger?: Label | React.FC<any>;
|
|
14
|
-
forceType?: boolean;
|
|
15
18
|
type?: "dialog" | "drawer" | "sheet";
|
|
16
19
|
onChange: (nextState: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const Modal: ({
|
|
20
|
+
}>;
|
|
21
|
+
export declare const Modal: ({ open, title, footer, asChild, trigger, children, layoutId, onChange, className, resizer, closable, forceType, overlayClassName, type: _type, position: propsPosition, overlayClickClose, ...props }: PropsWithChildren<ModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
19
22
|
//# sourceMappingURL=modal.d.ts.map
|