@yahoo/uds-v5-wip 1.2.0 → 1.4.0
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/dist/accordion.config.d.ts +2 -1
- package/dist/components/dist/accordion.d.ts +2 -1
- package/dist/components/dist/accordion.js +9 -9
- package/dist/components/dist/alert.config.d.ts +2 -1
- package/dist/components/dist/alert.d.ts +2 -1
- package/dist/components/dist/alert.js +2 -2
- package/dist/components/dist/anchor.config.d.ts +2 -1
- package/dist/components/dist/anchor.d.ts +2 -1
- package/dist/components/dist/article.d.ts +2 -1
- package/dist/components/dist/aside.d.ts +2 -1
- package/dist/components/dist/avatar-group.config.d.ts +2 -1
- package/dist/components/dist/avatar-group.d.ts +2 -1
- package/dist/components/dist/avatar-group.js +6 -6
- package/dist/components/dist/avatar.config.d.ts +2 -1
- package/dist/components/dist/avatar.d.ts +2 -1
- package/dist/components/dist/avatar.js +3 -3
- package/dist/components/dist/badge.config.d.ts +2 -1
- package/dist/components/dist/badge.d.ts +2 -1
- package/dist/components/dist/badge.js +2 -2
- package/dist/components/dist/box.d.ts +2 -1
- package/dist/components/dist/breadcrumb.config.d.ts +2 -1
- package/dist/components/dist/breadcrumb.d.ts +2 -1
- package/dist/components/dist/breadcrumb.js +17 -17
- package/dist/components/dist/button.config.d.ts +2 -1
- package/dist/components/dist/button.d.ts +2 -1
- package/dist/components/dist/button.js +5 -5
- package/dist/components/dist/card.config.d.ts +2 -1
- package/dist/components/dist/card.d.ts +2 -1
- package/dist/components/dist/card.js +4 -4
- package/dist/components/dist/collapsible.config.d.ts +2 -1
- package/dist/components/dist/collapsible.d.ts +2 -1
- package/dist/components/dist/collapsible.js +3 -3
- package/dist/components/dist/command.config.d.ts +2 -1
- package/dist/components/dist/command.d.ts +2 -1
- package/dist/components/dist/command.js +21 -21
- package/dist/components/dist/control-color.config.d.ts +2 -1
- package/dist/components/dist/control-color.d.ts +2 -1
- package/dist/components/dist/control-color.js +6 -6
- package/dist/components/dist/control-curve.config.d.ts +2 -1
- package/dist/components/dist/control-curve.d.ts +2 -1
- package/dist/components/dist/control-curve.js +4 -4
- package/dist/components/dist/control-folder.config.d.ts +2 -1
- package/dist/components/dist/control-folder.d.ts +2 -1
- package/dist/components/dist/control-folder.js +6 -6
- package/dist/components/dist/control-group.config.d.ts +2 -1
- package/dist/components/dist/control-group.d.ts +2 -1
- package/dist/components/dist/control-group.js +3 -3
- package/dist/components/dist/control-knob.config.d.ts +2 -1
- package/dist/components/dist/control-knob.d.ts +2 -1
- package/dist/components/dist/control-knob.js +8 -8
- package/dist/components/dist/control-panel.config.d.ts +2 -1
- package/dist/components/dist/control-panel.d.ts +2 -1
- package/dist/components/dist/control-panel.js +3 -3
- package/dist/components/dist/control-select.config.d.ts +2 -1
- package/dist/components/dist/control-select.d.ts +2 -1
- package/dist/components/dist/control-select.js +8 -8
- package/dist/components/dist/control-slider.config.d.ts +2 -1
- package/dist/components/dist/control-slider.d.ts +2 -1
- package/dist/components/dist/control-slider.js +8 -8
- package/dist/components/dist/control-spring.config.d.ts +2 -1
- package/dist/components/dist/control-spring.d.ts +2 -1
- package/dist/components/dist/control-spring.js +12 -12
- package/dist/components/dist/control-stepper.config.d.ts +2 -1
- package/dist/components/dist/control-stepper.d.ts +2 -1
- package/dist/components/dist/control-stepper.js +6 -6
- package/dist/components/dist/control-toggle.config.d.ts +2 -1
- package/dist/components/dist/control-toggle.d.ts +2 -1
- package/dist/components/dist/control-toggle.js +3 -3
- package/dist/components/dist/createSlot.d.ts +2 -1
- package/dist/components/dist/createSlot.js +2 -2
- package/dist/components/dist/dropdown.config.d.ts +2 -1
- package/dist/components/dist/dropdown.d.ts +2 -1
- package/dist/components/dist/dropdown.js +10 -10
- package/dist/components/dist/empty-state.config.d.ts +2 -1
- package/dist/components/dist/empty-state.d.ts +2 -1
- package/dist/components/dist/empty-state.js +6 -6
- package/dist/components/dist/footer.d.ts +2 -1
- package/dist/components/dist/grid.d.ts +2 -1
- package/dist/components/dist/grid.js +2 -2
- package/dist/components/dist/header.d.ts +2 -1
- package/dist/components/dist/hstack.d.ts +2 -1
- package/dist/components/dist/hstack.js +1 -1
- package/dist/components/dist/image.d.ts +2 -1
- package/dist/components/dist/input.config.d.ts +2 -1
- package/dist/components/dist/input.d.ts +2 -1
- package/dist/components/dist/input.js +1 -1
- package/dist/components/dist/item.config.d.ts +2 -1
- package/dist/components/dist/item.d.ts +2 -1
- package/dist/components/dist/item.js +8 -8
- package/dist/components/dist/list.d.ts +2 -1
- package/dist/components/dist/list.js +1 -1
- package/dist/components/dist/main.d.ts +2 -1
- package/dist/components/dist/modal.config.d.ts +2 -1
- package/dist/components/dist/modal.d.ts +2 -1
- package/dist/components/dist/modal.js +8 -8
- package/dist/components/dist/nav-header.config.d.ts +2 -1
- package/dist/components/dist/nav-header.d.ts +2 -1
- package/dist/components/dist/nav-header.js +3 -3
- package/dist/components/dist/nav.d.ts +2 -1
- package/dist/components/dist/preset-bar.config.d.ts +2 -1
- package/dist/components/dist/preset-bar.d.ts +2 -1
- package/dist/components/dist/preset-bar.js +10 -10
- package/dist/components/dist/presets/index.d.ts +3 -2
- package/dist/components/dist/presets/index.js +1 -1
- package/dist/components/dist/pressable.d.ts +2 -1
- package/dist/components/dist/progress.config.d.ts +2 -1
- package/dist/components/dist/progress.d.ts +2 -1
- package/dist/components/dist/progress.js +6 -6
- package/dist/components/dist/section.d.ts +2 -1
- package/dist/components/dist/select.config.d.ts +2 -1
- package/dist/components/dist/select.d.ts +2 -1
- package/dist/components/dist/sheet.config.d.ts +2 -1
- package/dist/components/dist/sheet.d.ts +2 -1
- package/dist/components/dist/sheet.js +8 -8
- package/dist/components/dist/sidebar.config.d.ts +2 -1
- package/dist/components/dist/sidebar.d.ts +2 -1
- package/dist/components/dist/sidebar.js +42 -42
- package/dist/components/dist/skeleton.config.d.ts +2 -1
- package/dist/components/dist/skeleton.d.ts +2 -1
- package/dist/components/dist/skeleton.js +1 -1
- package/dist/components/dist/slider.config.d.ts +2 -1
- package/dist/components/dist/slider.d.ts +2 -1
- package/dist/components/dist/slider.js +5 -5
- package/dist/components/dist/spinner.config.d.ts +2 -1
- package/dist/components/dist/spinner.d.ts +2 -1
- package/dist/components/dist/spinner.js +2 -2
- package/dist/components/dist/svg.d.ts +2 -1
- package/dist/components/dist/switch.config.d.ts +2 -1
- package/dist/components/dist/switch.d.ts +2 -1
- package/dist/components/dist/switch.js +5 -5
- package/dist/components/dist/table.d.ts +2 -1
- package/dist/components/dist/tabs.config.d.ts +2 -1
- package/dist/components/dist/tabs.d.ts +2 -1
- package/dist/components/dist/tabs.js +8 -8
- package/dist/components/dist/text.config.d.ts +2 -1
- package/dist/components/dist/text.d.ts +2 -1
- package/dist/components/dist/textarea.config.d.ts +2 -1
- package/dist/components/dist/textarea.d.ts +2 -1
- package/dist/components/dist/toast.config.d.ts +2 -1
- package/dist/components/dist/toast.d.ts +2 -1
- package/dist/components/dist/toast.js +7 -7
- package/dist/components/dist/tooltip.config.d.ts +2 -1
- package/dist/components/dist/tooltip.d.ts +2 -1
- package/dist/components/dist/tooltip.js +3 -3
- package/dist/components/dist/vstack.d.ts +2 -1
- package/dist/components/dist/vstack.js +1 -1
- package/dist/components/presets/index.d.ts +1 -1
- package/dist/components/presets/index.js +1 -1
- package/dist/core/dist/resolveProps.boundaries.js +1 -0
- package/dist/foundational-presets/dist/defaultPreset.js +1 -1
- package/dist/presets/dist/boldVibrant.d.ts +2 -1
- package/dist/presets/dist/brutalist.d.ts +2 -1
- package/dist/presets/dist/candy.d.ts +2 -1
- package/dist/presets/dist/cleanMinimalist.d.ts +2 -1
- package/dist/presets/dist/corporate.d.ts +2 -1
- package/dist/presets/dist/darkMoody.d.ts +2 -1
- package/dist/presets/dist/defaultPreset.d.ts +2 -1
- package/dist/presets/dist/defaultPreset.js +1 -1
- package/dist/presets/dist/forest.d.ts +2 -1
- package/dist/presets/dist/highContrast.d.ts +2 -1
- package/dist/presets/dist/lavender.d.ts +2 -1
- package/dist/presets/dist/luxury.d.ts +2 -1
- package/dist/presets/dist/monochrome.d.ts +2 -1
- package/dist/presets/dist/neonCyber.d.ts +2 -1
- package/dist/presets/dist/newspaper.d.ts +2 -1
- package/dist/presets/dist/ocean.d.ts +2 -1
- package/dist/presets/dist/slate.d.ts +2 -1
- package/dist/presets/dist/sunset.d.ts +2 -1
- package/dist/presets/dist/terminal.d.ts +2 -1
- package/dist/presets/dist/warmOrganic.d.ts +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -25,13 +25,13 @@ const Tabs = createComponent(({ props, tabs, defaultTab }) => {
|
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}, [active]);
|
|
28
|
-
return jsxs("div", {
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
29
29
|
...props.root,
|
|
30
|
-
children: [jsxs("div", {
|
|
30
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
31
31
|
ref: tabListRef,
|
|
32
32
|
style: { position: "relative" },
|
|
33
33
|
...props.tabList,
|
|
34
|
-
children: [indicatorStyle && jsx("div", {
|
|
34
|
+
children: [indicatorStyle && /* @__PURE__ */ jsx("div", {
|
|
35
35
|
style: {
|
|
36
36
|
position: "absolute",
|
|
37
37
|
top: 0,
|
|
@@ -42,24 +42,24 @@ const Tabs = createComponent(({ props, tabs, defaultTab }) => {
|
|
|
42
42
|
pointerEvents: "none"
|
|
43
43
|
},
|
|
44
44
|
...props.indicator
|
|
45
|
-
}), tabs.map((tab) => active === tab.id ? jsx("button", {
|
|
45
|
+
}), tabs.map((tab) => active === tab.id ? /* @__PURE__ */ jsx("button", {
|
|
46
46
|
type: "button",
|
|
47
47
|
"data-tab-id": tab.id,
|
|
48
48
|
onClick: () => setActive(tab.id),
|
|
49
49
|
...props.activeTab,
|
|
50
|
-
children: jsx("span", {
|
|
50
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
51
51
|
style: {
|
|
52
52
|
position: "relative",
|
|
53
53
|
zIndex: 1
|
|
54
54
|
},
|
|
55
55
|
children: tab.label
|
|
56
56
|
})
|
|
57
|
-
}, tab.id) : jsx("button", {
|
|
57
|
+
}, tab.id) : /* @__PURE__ */ jsx("button", {
|
|
58
58
|
type: "button",
|
|
59
59
|
"data-tab-id": tab.id,
|
|
60
60
|
onClick: () => setActive(tab.id),
|
|
61
61
|
...props.tab,
|
|
62
|
-
children: jsx("span", {
|
|
62
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
63
63
|
style: {
|
|
64
64
|
position: "relative",
|
|
65
65
|
zIndex: 1
|
|
@@ -67,7 +67,7 @@ const Tabs = createComponent(({ props, tabs, defaultTab }) => {
|
|
|
67
67
|
children: tab.label
|
|
68
68
|
})
|
|
69
69
|
}, tab.id))]
|
|
70
|
-
}), jsx("div", {
|
|
70
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
71
71
|
...props.content,
|
|
72
72
|
children: tabs.find((t) => t.id === active)?.content
|
|
73
73
|
})]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/text.config.d.ts
|
|
3
|
+
//#region src/text.config.d.ts
|
|
3
4
|
declare const textConfig: ComponentConfig<{
|
|
4
5
|
Text: {
|
|
5
6
|
readonly base: {
|
|
@@ -301,6 +302,6 @@ declare const textVariants: {
|
|
|
301
302
|
readonly lineHeight: string;
|
|
302
303
|
readonly fontFamily: string;
|
|
303
304
|
};
|
|
304
|
-
};
|
|
305
|
+
}; //#endregion
|
|
305
306
|
//#endregion
|
|
306
307
|
export { TextConfig, textConfig, textVariants };
|
|
@@ -4,6 +4,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
4
4
|
import { BackgroundStyleProps, BorderStyleProps, FlexStyleProps, HtmlTextProps, ModifierProps, NativeTextElementTag, OpacityStyleProps, SizingStyleProps, SpacingStyleProps, TypographyStyleProps } from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/text.d.ts
|
|
7
|
+
//#region src/text.d.ts
|
|
7
8
|
interface TextStyleProps extends TypographyStyleProps, SpacingStyleProps, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, SizingStyleProps, OpacityStyleProps {}
|
|
8
9
|
interface TextProps extends HtmlTextProps<NativeTextElementTag>, TextStyleProps, ModifierProps<TextStyleProps> {
|
|
9
10
|
as?: NativeTextElementTag;
|
|
@@ -200,6 +201,6 @@ declare const Text: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentConfi
|
|
|
200
201
|
};
|
|
201
202
|
}, {}>, TextProps, {
|
|
202
203
|
root: "p";
|
|
203
|
-
}>>;
|
|
204
|
+
}>>; //#endregion
|
|
204
205
|
//#endregion
|
|
205
206
|
export { Text, TextProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/textarea.config.d.ts
|
|
3
|
+
//#region src/textarea.config.d.ts
|
|
3
4
|
declare const textareaConfig: ComponentConfig<{
|
|
4
5
|
Textarea: {
|
|
5
6
|
readonly base: {
|
|
@@ -347,6 +348,6 @@ declare const textareaConfig: ComponentConfig<{
|
|
|
347
348
|
};
|
|
348
349
|
};
|
|
349
350
|
}, {}>;
|
|
350
|
-
type TextareaConfig = typeof textareaConfig;
|
|
351
|
+
type TextareaConfig = typeof textareaConfig; //#endregion
|
|
351
352
|
//#endregion
|
|
352
353
|
export { TextareaConfig, textareaConfig };
|
|
@@ -4,6 +4,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
4
4
|
import { HtmlTextAreaProps, SizingStyleProps } from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/textarea.d.ts
|
|
7
|
+
//#region src/textarea.d.ts
|
|
7
8
|
interface TextareaOwnProps extends HtmlTextAreaProps, SizingStyleProps {}
|
|
8
9
|
/**
|
|
9
10
|
* @description A primitive for multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text
|
|
@@ -357,6 +358,6 @@ declare const Textarea: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentC
|
|
|
357
358
|
}, {}>, TextareaOwnProps, {
|
|
358
359
|
root: "textarea";
|
|
359
360
|
}>>;
|
|
360
|
-
type TextareaProps = React.ComponentProps<typeof Textarea>;
|
|
361
|
+
type TextareaProps = React.ComponentProps<typeof Textarea>; //#endregion
|
|
361
362
|
//#endregion
|
|
362
363
|
export { Textarea, TextareaOwnProps, TextareaProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig, InterpolateMarker } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/toast.config.d.ts
|
|
3
|
+
//#region src/toast.config.d.ts
|
|
3
4
|
declare const toastConfig: ComponentConfig<{
|
|
4
5
|
Toast: {
|
|
5
6
|
readonly base: {
|
|
@@ -330,6 +331,6 @@ declare const toastConfig: ComponentConfig<{
|
|
|
330
331
|
};
|
|
331
332
|
};
|
|
332
333
|
}, {}>;
|
|
333
|
-
type ToastConfig = typeof toastConfig;
|
|
334
|
+
type ToastConfig = typeof toastConfig; //#endregion
|
|
334
335
|
//#endregion
|
|
335
336
|
export { ToastConfig, toastConfig };
|
|
@@ -5,6 +5,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
5
5
|
import { GetComponentVariantProps, Simplify } from "@uds/types";
|
|
6
6
|
|
|
7
7
|
//#region ../components/dist/toast.d.ts
|
|
8
|
+
//#region src/toast.d.ts
|
|
8
9
|
interface ToastDefinition {
|
|
9
10
|
config: ToastConfig;
|
|
10
11
|
props: {
|
|
@@ -421,6 +422,6 @@ interface ToastContextValue {
|
|
|
421
422
|
}
|
|
422
423
|
declare const ToastProvider: _$react.FC<{
|
|
423
424
|
children: React.ReactNode;
|
|
424
|
-
} & Record<never, never>>, useToast: () => ToastContextValue;
|
|
425
|
+
} & Record<never, never>>, useToast: () => ToastContextValue; //#endregion
|
|
425
426
|
//#endregion
|
|
426
427
|
export { AddToastOptions, Toast, ToastContextValue, ToastItemData, ToastMessage, ToastProps, ToastProvider, useToast };
|
|
@@ -18,7 +18,7 @@ const Toast = createComponent(({ props, children, toastId, index, expanded, onDi
|
|
|
18
18
|
const handleDragEnd = useCallback((_event, info) => {
|
|
19
19
|
onDragEnd?.(toastId, info);
|
|
20
20
|
}, [toastId, onDragEnd]);
|
|
21
|
-
return jsx("div", {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
22
|
ref: (el) => onMeasure?.(toastId, el),
|
|
23
23
|
style: {
|
|
24
24
|
position: index === 0 ? "relative" : "absolute",
|
|
@@ -26,18 +26,18 @@ const Toast = createComponent(({ props, children, toastId, index, expanded, onDi
|
|
|
26
26
|
right: 0,
|
|
27
27
|
zIndex: toastId
|
|
28
28
|
},
|
|
29
|
-
children: jsxs("div", {
|
|
29
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
30
30
|
...props.item,
|
|
31
31
|
"data-state": expanded ? "expanded" : "collapsed",
|
|
32
32
|
"data-motion-index": index,
|
|
33
33
|
onDragEnd: handleDragEnd,
|
|
34
|
-
children: [renderMessage ? renderMessage(({ children: c }) => jsx("span", {
|
|
34
|
+
children: [renderMessage ? renderMessage(({ children: c }) => /* @__PURE__ */ jsx("span", {
|
|
35
35
|
...props.text,
|
|
36
36
|
children: c
|
|
37
|
-
})) : jsx("span", {
|
|
37
|
+
})) : /* @__PURE__ */ jsx("span", {
|
|
38
38
|
...props.text,
|
|
39
39
|
children
|
|
40
|
-
}), jsx("button", {
|
|
40
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
41
41
|
type: "button",
|
|
42
42
|
onClick: dismiss,
|
|
43
43
|
...props.dismiss,
|
|
@@ -130,7 +130,7 @@ const [ToastProvider, useToast] = createProvider("Toast", ({ children }) => {
|
|
|
130
130
|
updateToast,
|
|
131
131
|
dismissToast: dismiss
|
|
132
132
|
},
|
|
133
|
-
render: jsxs(Fragment, { children: [children, jsx("div", {
|
|
133
|
+
render: /* @__PURE__ */ jsxs(Fragment, { children: [children, /* @__PURE__ */ jsx("div", {
|
|
134
134
|
onMouseEnter: handleMouseEnter,
|
|
135
135
|
onMouseLeave: handleMouseLeave,
|
|
136
136
|
style: {
|
|
@@ -140,7 +140,7 @@ const [ToastProvider, useToast] = createProvider("Toast", ({ children }) => {
|
|
|
140
140
|
zIndex: 100,
|
|
141
141
|
pointerEvents: toasts.length > 0 ? "auto" : "none"
|
|
142
142
|
},
|
|
143
|
-
children: toasts.map(({ id, message, variant }, index) => jsx(Toast, {
|
|
143
|
+
children: toasts.map(({ id, message, variant }, index) => /* @__PURE__ */ jsx(Toast, {
|
|
144
144
|
toastId: id,
|
|
145
145
|
index,
|
|
146
146
|
expanded,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/tooltip.config.d.ts
|
|
3
|
+
//#region src/tooltip.config.d.ts
|
|
3
4
|
declare const tooltipConfig: ComponentConfig<{
|
|
4
5
|
Tooltip: {
|
|
5
6
|
readonly base: {
|
|
@@ -188,6 +189,6 @@ declare const tooltipConfig: ComponentConfig<{
|
|
|
188
189
|
};
|
|
189
190
|
};
|
|
190
191
|
}, {}>;
|
|
191
|
-
type TooltipConfig = typeof tooltipConfig;
|
|
192
|
+
type TooltipConfig = typeof tooltipConfig; //#endregion
|
|
192
193
|
//#endregion
|
|
193
194
|
export { TooltipConfig, tooltipConfig };
|
|
@@ -3,6 +3,7 @@ import * as _$react from "react";
|
|
|
3
3
|
import * as _$_uds_types0 from "@uds/types";
|
|
4
4
|
|
|
5
5
|
//#region ../components/dist/tooltip.d.ts
|
|
6
|
+
//#region src/tooltip.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* @description A popup that displays additional information when hovering over an element
|
|
8
9
|
*/
|
|
@@ -201,6 +202,6 @@ declare const Tooltip: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentCo
|
|
|
201
202
|
content: "div";
|
|
202
203
|
text: "span";
|
|
203
204
|
}>>;
|
|
204
|
-
type TooltipProps = React.ComponentProps<typeof Tooltip>;
|
|
205
|
+
type TooltipProps = React.ComponentProps<typeof Tooltip>; //#endregion
|
|
205
206
|
//#endregion
|
|
206
207
|
export { Tooltip, TooltipProps };
|
|
@@ -10,14 +10,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
const Tooltip = createComponent(({ props, children, label }) => {
|
|
11
11
|
const [show, setShow] = useState(false);
|
|
12
12
|
const state = show ? "open" : "closed";
|
|
13
|
-
return jsxs("span", {
|
|
13
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
14
14
|
onMouseEnter: () => setShow(true),
|
|
15
15
|
onMouseLeave: () => setShow(false),
|
|
16
16
|
...props.trigger,
|
|
17
|
-
children: [children, jsx("div", {
|
|
17
|
+
children: [children, /* @__PURE__ */ jsx("div", {
|
|
18
18
|
"data-state": state,
|
|
19
19
|
...props.content,
|
|
20
|
-
children: jsx("span", {
|
|
20
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
21
21
|
...props.text,
|
|
22
22
|
children: label
|
|
23
23
|
})
|
|
@@ -3,6 +3,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
3
3
|
import { BoxAsTag, HtmlDivProps, StyleAndModifierProps } from "@uds/types";
|
|
4
4
|
|
|
5
5
|
//#region ../components/dist/vstack.d.ts
|
|
6
|
+
//#region src/vstack.d.ts
|
|
6
7
|
interface VStackOwnProps extends HtmlDivProps, StyleAndModifierProps {
|
|
7
8
|
/** Render as a different semantic HTML element. Defaults to `div`. */
|
|
8
9
|
as?: BoxAsTag;
|
|
@@ -10,6 +11,6 @@ interface VStackOwnProps extends HtmlDivProps, StyleAndModifierProps {
|
|
|
10
11
|
/**
|
|
11
12
|
* @description A primitive that arranges its children vertically
|
|
12
13
|
*/
|
|
13
|
-
declare const VStack: _$react.FC<_$_uds_types0.CreateComponentProps<string, VStackOwnProps, "div">>;
|
|
14
|
+
declare const VStack: _$react.FC<_$_uds_types0.CreateComponentProps<string, VStackOwnProps, "div">>; //#endregion
|
|
14
15
|
//#endregion
|
|
15
16
|
export { VStack, VStackOwnProps };
|
|
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* @description A primitive that arranges its children vertically
|
|
8
8
|
*/
|
|
9
9
|
const VStack = createComponent(({ children, as, gap, gapY, display = "flex", flexDirection = display === "flex" ? "col" : void 0, ...rest }) => {
|
|
10
|
-
return jsx(Box, {
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
11
11
|
as,
|
|
12
12
|
display,
|
|
13
13
|
flexDirection,
|
|
@@ -27,6 +27,7 @@ import { itemConfig } from "../dist/item.config.js";
|
|
|
27
27
|
import { modalConfig } from "../dist/modal.config.js";
|
|
28
28
|
import { navHeaderConfig } from "../dist/nav-header.config.js";
|
|
29
29
|
import { presetBarConfig } from "../dist/preset-bar.config.js";
|
|
30
|
+
import { toastConfig } from "../dist/toast.config.js";
|
|
30
31
|
import { progressConfig } from "../dist/progress.config.js";
|
|
31
32
|
import { selectConfig } from "../dist/select.config.js";
|
|
32
33
|
import { sheetConfig } from "../dist/sheet.config.js";
|
|
@@ -38,7 +39,6 @@ import { switchConfig } from "../dist/switch.config.js";
|
|
|
38
39
|
import { tabsConfig } from "../dist/tabs.config.js";
|
|
39
40
|
import { textConfig } from "../dist/text.config.js";
|
|
40
41
|
import { textareaConfig } from "../dist/textarea.config.js";
|
|
41
|
-
import { toastConfig } from "../dist/toast.config.js";
|
|
42
42
|
import { tooltipConfig } from "../dist/tooltip.config.js";
|
|
43
43
|
import { defaultComponentConfigs } from "../dist/presets/index.js";
|
|
44
44
|
export { accordionConfig, alertConfig, anchorConfig, avatarConfig, avatarGroupConfig, badgeConfig, breadcrumbConfig, buttonConfig, cardConfig, collapsibleConfig, commandConfig, commandDialogConfig, commandEmptyConfig, commandGroupConfig, commandInputConfig, commandItemConfig, commandListConfig, commandSeparatorConfig, commandShortcutConfig, controlColorConfig, controlCurveConfig, controlFolderConfig, controlGroupConfig, controlKnobConfig, controlPanelConfig, controlSelectConfig, controlSliderConfig, controlSpringConfig, controlStepperConfig, controlToggleConfig, defaultComponentConfigs, dropdownConfig, emptyStateConfig, inputConfig, itemConfig, modalConfig, navHeaderConfig, presetBarConfig, progressConfig, selectConfig, sheetConfig, sidebarConfig, skeletonConfig, sliderConfig, spinnerConfig, switchConfig, tabsConfig, textConfig, textareaConfig, toastConfig, tooltipConfig };
|
|
@@ -2,8 +2,8 @@ import { textConfig } from "../dist/text.config.js";
|
|
|
2
2
|
import { accordionConfig } from "../dist/accordion.config.js";
|
|
3
3
|
import { alertConfig } from "../dist/alert.config.js";
|
|
4
4
|
import { anchorConfig } from "../dist/anchor.config.js";
|
|
5
|
-
import { avatarConfig } from "../dist/avatar.config.js";
|
|
6
5
|
import { avatarGroupConfig } from "../dist/avatar-group.config.js";
|
|
6
|
+
import { avatarConfig } from "../dist/avatar.config.js";
|
|
7
7
|
import { badgeConfig } from "../dist/badge.config.js";
|
|
8
8
|
import { breadcrumbConfig } from "../dist/breadcrumb.config.js";
|
|
9
9
|
import { buttonConfig } from "../dist/button.config.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { boldVibrantFoundationPreset } from "../../foundational-presets/dist/boldVibrant.js";
|
|
2
2
|
//#region ../presets/dist/boldVibrant.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/boldVibrant.d.ts
|
|
4
|
+
declare const boldVibrantPreset: typeof boldVibrantFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { boldVibrantPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { brutalistFoundationPreset } from "../../foundational-presets/dist/brutalist.js";
|
|
2
2
|
//#region ../presets/dist/brutalist.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/brutalist.d.ts
|
|
4
|
+
declare const brutalistPreset: typeof brutalistFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { brutalistPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { candyFoundationPreset } from "../../foundational-presets/dist/candy.js";
|
|
2
2
|
//#region ../presets/dist/candy.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/candy.d.ts
|
|
4
|
+
declare const candyPreset: typeof candyFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { candyPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cleanMinimalistFoundationPreset } from "../../foundational-presets/dist/cleanMinimalist.js";
|
|
2
2
|
//#region ../presets/dist/cleanMinimalist.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/cleanMinimalist.d.ts
|
|
4
|
+
declare const cleanMinimalistPreset: typeof cleanMinimalistFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { cleanMinimalistPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { corporateFoundationPreset } from "../../foundational-presets/dist/corporate.js";
|
|
2
2
|
//#region ../presets/dist/corporate.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/corporate.d.ts
|
|
4
|
+
declare const corporatePreset: typeof corporateFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { corporatePreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { darkMoodyFoundationPreset } from "../../foundational-presets/dist/darkMoody.js";
|
|
2
2
|
//#region ../presets/dist/darkMoody.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/darkMoody.d.ts
|
|
4
|
+
declare const darkMoodyPreset: typeof darkMoodyFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { darkMoodyPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defaultFoundationPreset } from "../../foundational-presets/dist/defaultPreset.js";
|
|
2
2
|
//#region ../presets/dist/defaultPreset.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/defaultPreset.d.ts
|
|
4
|
+
declare const defaultPreset: typeof defaultFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { defaultPreset };
|
|
@@ -4,8 +4,8 @@ import { textConfig } from "../../components/dist/text.config.js";
|
|
|
4
4
|
import { accordionConfig } from "../../components/dist/accordion.config.js";
|
|
5
5
|
import { alertConfig } from "../../components/dist/alert.config.js";
|
|
6
6
|
import { anchorConfig } from "../../components/dist/anchor.config.js";
|
|
7
|
-
import { avatarConfig } from "../../components/dist/avatar.config.js";
|
|
8
7
|
import { avatarGroupConfig } from "../../components/dist/avatar-group.config.js";
|
|
8
|
+
import { avatarConfig } from "../../components/dist/avatar.config.js";
|
|
9
9
|
import { badgeConfig } from "../../components/dist/badge.config.js";
|
|
10
10
|
import { breadcrumbConfig } from "../../components/dist/breadcrumb.config.js";
|
|
11
11
|
import { buttonConfig } from "../../components/dist/button.config.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { forestFoundationPreset } from "../../foundational-presets/dist/forest.js";
|
|
2
2
|
//#region ../presets/dist/forest.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/forest.d.ts
|
|
4
|
+
declare const forestPreset: typeof forestFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { forestPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { highContrastFoundationPreset } from "../../foundational-presets/dist/highContrast.js";
|
|
2
2
|
//#region ../presets/dist/highContrast.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/highContrast.d.ts
|
|
4
|
+
declare const highContrastPreset: typeof highContrastFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { highContrastPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { lavenderFoundationPreset } from "../../foundational-presets/dist/lavender.js";
|
|
2
2
|
//#region ../presets/dist/lavender.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/lavender.d.ts
|
|
4
|
+
declare const lavenderPreset: typeof lavenderFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { lavenderPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { luxuryFoundationPreset } from "../../foundational-presets/dist/luxury.js";
|
|
2
2
|
//#region ../presets/dist/luxury.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/luxury.d.ts
|
|
4
|
+
declare const luxuryPreset: typeof luxuryFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { luxuryPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { monochromeFoundationPreset } from "../../foundational-presets/dist/monochrome.js";
|
|
2
2
|
//#region ../presets/dist/monochrome.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/monochrome.d.ts
|
|
4
|
+
declare const monochromePreset: typeof monochromeFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { monochromePreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { neonCyberFoundationPreset } from "../../foundational-presets/dist/neonCyber.js";
|
|
2
2
|
//#region ../presets/dist/neonCyber.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/neonCyber.d.ts
|
|
4
|
+
declare const neonCyberPreset: typeof neonCyberFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { neonCyberPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { newspaperFoundationPreset } from "../../foundational-presets/dist/newspaper.js";
|
|
2
2
|
//#region ../presets/dist/newspaper.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/newspaper.d.ts
|
|
4
|
+
declare const newspaperPreset: typeof newspaperFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { newspaperPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { oceanFoundationPreset } from "../../foundational-presets/dist/ocean.js";
|
|
2
2
|
//#region ../presets/dist/ocean.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/ocean.d.ts
|
|
4
|
+
declare const oceanPreset: typeof oceanFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { oceanPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { slateFoundationPreset } from "../../foundational-presets/dist/slate.js";
|
|
2
2
|
//#region ../presets/dist/slate.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/slate.d.ts
|
|
4
|
+
declare const slatePreset: typeof slateFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { slatePreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { sunsetFoundationPreset } from "../../foundational-presets/dist/sunset.js";
|
|
2
2
|
//#region ../presets/dist/sunset.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/sunset.d.ts
|
|
4
|
+
declare const sunsetPreset: typeof sunsetFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { sunsetPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { terminalFoundationPreset } from "../../foundational-presets/dist/terminal.js";
|
|
2
2
|
//#region ../presets/dist/terminal.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/terminal.d.ts
|
|
4
|
+
declare const terminalPreset: typeof terminalFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { terminalPreset };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { warmOrganicFoundationPreset } from "../../foundational-presets/dist/warmOrganic.js";
|
|
2
2
|
//#region ../presets/dist/warmOrganic.d.ts
|
|
3
|
-
|
|
3
|
+
//#region src/warmOrganic.d.ts
|
|
4
|
+
declare const warmOrganicPreset: typeof warmOrganicFoundationPreset; //#endregion
|
|
4
5
|
//#endregion
|
|
5
6
|
export { warmOrganicPreset };
|