@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/input.config.d.ts
|
|
3
|
+
//#region src/input.config.d.ts
|
|
3
4
|
declare const inputConfig: ComponentConfig<{
|
|
4
5
|
Input: {
|
|
5
6
|
readonly base: {
|
|
@@ -53,6 +54,6 @@ declare const inputConfig: ComponentConfig<{
|
|
|
53
54
|
};
|
|
54
55
|
};
|
|
55
56
|
}, {}>;
|
|
56
|
-
type InputConfig = typeof inputConfig;
|
|
57
|
+
type InputConfig = typeof inputConfig; //#endregion
|
|
57
58
|
//#endregion
|
|
58
59
|
export { InputConfig, inputConfig };
|
|
@@ -4,6 +4,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
4
4
|
import { HtmlInputProps, SizingStyleProps } from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/input.d.ts
|
|
7
|
+
//#region src/input.d.ts
|
|
7
8
|
interface InputProps extends HtmlInputProps, SizingStyleProps {}
|
|
8
9
|
/**
|
|
9
10
|
* A primitive that renders a text input
|
|
@@ -62,6 +63,6 @@ declare const Input: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentConf
|
|
|
62
63
|
};
|
|
63
64
|
}, {}>, InputProps, {
|
|
64
65
|
root: "input";
|
|
65
|
-
}>>;
|
|
66
|
+
}>>; //#endregion
|
|
66
67
|
//#endregion
|
|
67
68
|
export { Input, InputProps };
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* A primitive that renders a text input
|
|
7
7
|
*/
|
|
8
|
-
const Input = createComponent(({ props }) => jsx("input", {
|
|
8
|
+
const Input = createComponent(({ props }) => /* @__PURE__ */ jsx("input", {
|
|
9
9
|
type: "text",
|
|
10
10
|
"data-1p-ignore": true,
|
|
11
11
|
...props.root
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/item.config.d.ts
|
|
3
|
+
//#region src/item.config.d.ts
|
|
3
4
|
declare const itemConfig: ComponentConfig<{
|
|
4
5
|
Item: {
|
|
5
6
|
readonly base: {
|
|
@@ -346,6 +347,6 @@ declare const itemConfig: ComponentConfig<{
|
|
|
346
347
|
};
|
|
347
348
|
};
|
|
348
349
|
}, {}>;
|
|
349
|
-
type ItemConfig = typeof itemConfig;
|
|
350
|
+
type ItemConfig = typeof itemConfig; //#endregion
|
|
350
351
|
//#endregion
|
|
351
352
|
export { ItemConfig, itemConfig };
|
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import * as _$_uds_types0 from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/item.d.ts
|
|
7
|
+
//#region src/item.d.ts
|
|
7
8
|
interface ItemOwnProps {
|
|
8
9
|
media?: ReactNode;
|
|
9
10
|
title?: ReactNode;
|
|
@@ -369,6 +370,6 @@ declare const Item: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentConfi
|
|
|
369
370
|
description: "div";
|
|
370
371
|
actions: "div";
|
|
371
372
|
}>>;
|
|
372
|
-
type ItemProps = React.ComponentProps<typeof Item>;
|
|
373
|
+
type ItemProps = React.ComponentProps<typeof Item>; //#endregion
|
|
373
374
|
//#endregion
|
|
374
375
|
export { Item, ItemOwnProps, ItemProps };
|
|
@@ -15,33 +15,33 @@ const Item = createComponent(({ props, children, media, title, description, acti
|
|
|
15
15
|
backgroundColor: "var(--uds-bg-secondary)"
|
|
16
16
|
}
|
|
17
17
|
} : rootProps;
|
|
18
|
-
const content = jsxs(Fragment, { children: [
|
|
19
|
-
media && jsx("div", {
|
|
18
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19
|
+
media && /* @__PURE__ */ jsx("div", {
|
|
20
20
|
...props.media,
|
|
21
21
|
children: media
|
|
22
22
|
}),
|
|
23
|
-
(title || description) && jsxs("div", {
|
|
23
|
+
(title || description) && /* @__PURE__ */ jsxs("div", {
|
|
24
24
|
...props.content,
|
|
25
|
-
children: [title && jsx("div", {
|
|
25
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
26
26
|
...props.title,
|
|
27
27
|
children: title
|
|
28
|
-
}), description && jsx("div", {
|
|
28
|
+
}), description && /* @__PURE__ */ jsx("div", {
|
|
29
29
|
...props.description,
|
|
30
30
|
children: description
|
|
31
31
|
})]
|
|
32
32
|
}),
|
|
33
33
|
children,
|
|
34
|
-
actions && jsx("div", {
|
|
34
|
+
actions && /* @__PURE__ */ jsx("div", {
|
|
35
35
|
...props.actions,
|
|
36
36
|
children: actions
|
|
37
37
|
})
|
|
38
38
|
] });
|
|
39
|
-
if (asChild) return jsx(DivSlot, {
|
|
39
|
+
if (asChild) return /* @__PURE__ */ jsx(DivSlot, {
|
|
40
40
|
...rootStyle,
|
|
41
41
|
...nativeProps,
|
|
42
42
|
children: content
|
|
43
43
|
});
|
|
44
|
-
return jsx("div", {
|
|
44
|
+
return /* @__PURE__ */ jsx("div", {
|
|
45
45
|
...rootStyle,
|
|
46
46
|
...nativeProps,
|
|
47
47
|
children: content
|
|
@@ -3,6 +3,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
3
3
|
import { HtmlListItemProps, HtmlListProps, NativeListElementTag, StyleAndModifierProps } from "@uds/types";
|
|
4
4
|
|
|
5
5
|
//#region ../components/dist/list.d.ts
|
|
6
|
+
//#region src/list.d.ts
|
|
6
7
|
interface ListOwnProps extends HtmlListProps, StyleAndModifierProps {
|
|
7
8
|
as?: NativeListElementTag;
|
|
8
9
|
}
|
|
@@ -14,6 +15,6 @@ declare const List: _$react.FC<_$_uds_types0.CreateComponentProps<string, ListOw
|
|
|
14
15
|
/**
|
|
15
16
|
* @description A primitive that renders a list item
|
|
16
17
|
*/
|
|
17
|
-
declare const ListItem: _$react.FC<ListItemOwnProps>;
|
|
18
|
+
declare const ListItem: _$react.FC<ListItemOwnProps>; //#endregion
|
|
18
19
|
//#endregion
|
|
19
20
|
export { List, ListItem, ListItemOwnProps, ListOwnProps };
|
|
@@ -8,7 +8,7 @@ const Ol = createComponent("ol");
|
|
|
8
8
|
* @description A primitive that renders a list of items
|
|
9
9
|
*/
|
|
10
10
|
const List = createComponent(({ children, as = "ul", ...rest }) => {
|
|
11
|
-
return jsx(as === "ol" ? Ol : Ul, {
|
|
11
|
+
return /* @__PURE__ */ jsx(as === "ol" ? Ol : Ul, {
|
|
12
12
|
...rest,
|
|
13
13
|
children
|
|
14
14
|
});
|
|
@@ -2,10 +2,11 @@ import * as _$react from "react";
|
|
|
2
2
|
import { HtmlMainProps, StyleAndModifierProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../components/dist/main.d.ts
|
|
5
|
+
//#region src/main.d.ts
|
|
5
6
|
interface MainProps extends HtmlMainProps, StyleAndModifierProps {}
|
|
6
7
|
/**
|
|
7
8
|
* @description A primitive for a main content area
|
|
8
9
|
*/
|
|
9
|
-
declare const Main: _$react.FC<MainProps>;
|
|
10
|
+
declare const Main: _$react.FC<MainProps>; //#endregion
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Main, MainProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/modal.config.d.ts
|
|
3
|
+
//#region src/modal.config.d.ts
|
|
3
4
|
declare const modalConfig: ComponentConfig<{
|
|
4
5
|
Modal: {
|
|
5
6
|
readonly base: {
|
|
@@ -392,6 +393,6 @@ declare const modalConfig: ComponentConfig<{
|
|
|
392
393
|
};
|
|
393
394
|
};
|
|
394
395
|
}, {}>;
|
|
395
|
-
type ModalConfig = typeof modalConfig;
|
|
396
|
+
type ModalConfig = typeof modalConfig; //#endregion
|
|
396
397
|
//#endregion
|
|
397
398
|
export { ModalConfig, modalConfig };
|
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import * as _$_uds_types0 from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/modal.d.ts
|
|
7
|
+
//#region src/modal.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* @description A modal overlay that requires user interaction before returning to the main content. Controlled via open prop bound to state; use on.openChange with setState (value: false) to close, and a Button on.press with setState (value: true) to open. Must be placed in a parent element's children array to render.
|
|
9
10
|
*/
|
|
@@ -428,6 +429,6 @@ interface ModalContextValue {
|
|
|
428
429
|
}
|
|
429
430
|
declare const ModalProvider: _$react.FC<{
|
|
430
431
|
children: React.ReactNode;
|
|
431
|
-
} & Record<never, never>>, useModal: () => ModalContextValue;
|
|
432
|
+
} & Record<never, never>>, useModal: () => ModalContextValue; //#endregion
|
|
432
433
|
//#endregion
|
|
433
434
|
export { Modal, ModalContextValue, ModalProvider, useModal };
|
|
@@ -29,7 +29,7 @@ const Modal = createComponent(({ props, children, open: controlledOpen, onOpenCh
|
|
|
29
29
|
document.body.style.overflow = "";
|
|
30
30
|
};
|
|
31
31
|
}, [open]);
|
|
32
|
-
return jsxs(Fragment, { children: [trigger && jsx("div", {
|
|
32
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [trigger && /* @__PURE__ */ jsx("div", {
|
|
33
33
|
role: "button",
|
|
34
34
|
tabIndex: 0,
|
|
35
35
|
onClick: () => setOpen(true),
|
|
@@ -38,31 +38,31 @@ const Modal = createComponent(({ props, children, open: controlledOpen, onOpenCh
|
|
|
38
38
|
},
|
|
39
39
|
...props.trigger,
|
|
40
40
|
children: trigger
|
|
41
|
-
}), open && jsxs("div", {
|
|
41
|
+
}), open && /* @__PURE__ */ jsxs("div", {
|
|
42
42
|
...props.overlay,
|
|
43
|
-
children: [jsx("button", {
|
|
43
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
44
44
|
type: "button",
|
|
45
45
|
"aria-label": "Close modal",
|
|
46
46
|
tabIndex: -1,
|
|
47
47
|
onClick: () => setOpen(false),
|
|
48
48
|
...props.dismiss
|
|
49
|
-
}), jsxs("div", {
|
|
49
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
50
50
|
ref: panelRef,
|
|
51
51
|
role: "dialog",
|
|
52
52
|
"aria-modal": "true",
|
|
53
53
|
tabIndex: -1,
|
|
54
54
|
...props.panel,
|
|
55
55
|
children: [
|
|
56
|
-
title ? jsx("div", {
|
|
56
|
+
title ? /* @__PURE__ */ jsx("div", {
|
|
57
57
|
...props.title,
|
|
58
58
|
children: title
|
|
59
59
|
}) : null,
|
|
60
|
-
description ? jsx("div", {
|
|
60
|
+
description ? /* @__PURE__ */ jsx("div", {
|
|
61
61
|
...props.description,
|
|
62
62
|
children: description
|
|
63
63
|
}) : null,
|
|
64
64
|
children ?? null,
|
|
65
|
-
actions ? jsx("div", {
|
|
65
|
+
actions ? /* @__PURE__ */ jsx("div", {
|
|
66
66
|
...props.actions,
|
|
67
67
|
children: actions
|
|
68
68
|
}) : null
|
|
@@ -109,7 +109,7 @@ const [ModalProvider, useModal] = createProvider("Modal", ({ children }) => {
|
|
|
109
109
|
close,
|
|
110
110
|
closeAll
|
|
111
111
|
},
|
|
112
|
-
render: jsxs(Fragment, { children: [children, modals.map(({ id, content, title, description, actions }) => jsx(Modal, {
|
|
112
|
+
render: /* @__PURE__ */ jsxs(Fragment, { children: [children, modals.map(({ id, content, title, description, actions }) => /* @__PURE__ */ jsx(Modal, {
|
|
113
113
|
open: true,
|
|
114
114
|
onOpenChange: (isOpen) => {
|
|
115
115
|
if (!isOpen) close(id);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/nav-header.config.d.ts
|
|
3
|
+
//#region src/nav-header.config.d.ts
|
|
3
4
|
declare const navHeaderConfig: ComponentConfig<{
|
|
4
5
|
NavHeader: {
|
|
5
6
|
readonly base: {
|
|
@@ -153,6 +154,6 @@ declare const navHeaderConfig: ComponentConfig<{
|
|
|
153
154
|
};
|
|
154
155
|
};
|
|
155
156
|
}, {}>;
|
|
156
|
-
type NavHeaderConfig = typeof navHeaderConfig;
|
|
157
|
+
type NavHeaderConfig = typeof navHeaderConfig; //#endregion
|
|
157
158
|
//#endregion
|
|
158
159
|
export { NavHeaderConfig, navHeaderConfig };
|
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import * as _$_uds_types0 from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/nav-header.d.ts
|
|
7
|
+
//#region src/nav-header.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* @description A navigation header bar with title and optional action areas
|
|
9
10
|
*/
|
|
@@ -168,6 +169,6 @@ declare const NavHeader: _$react.FC<_$_uds_types0.CreateComponentProps<Component
|
|
|
168
169
|
title: "span";
|
|
169
170
|
actions: "div";
|
|
170
171
|
}>>;
|
|
171
|
-
type NavHeaderProps = React.ComponentProps<typeof NavHeader>;
|
|
172
|
+
type NavHeaderProps = React.ComponentProps<typeof NavHeader>; //#endregion
|
|
172
173
|
//#endregion
|
|
173
174
|
export { NavHeader, NavHeaderProps };
|
|
@@ -5,15 +5,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
/**
|
|
6
6
|
* @description A navigation header bar with title and optional action areas
|
|
7
7
|
*/
|
|
8
|
-
const NavHeader = createComponent(({ props, children, title, actions }) => jsxs("div", {
|
|
8
|
+
const NavHeader = createComponent(({ props, children, title, actions }) => /* @__PURE__ */ jsxs("div", {
|
|
9
9
|
...props.root,
|
|
10
10
|
children: [
|
|
11
|
-
title && jsx("span", {
|
|
11
|
+
title && /* @__PURE__ */ jsx("span", {
|
|
12
12
|
...props.title,
|
|
13
13
|
children: title
|
|
14
14
|
}),
|
|
15
15
|
children,
|
|
16
|
-
actions && jsx("div", {
|
|
16
|
+
actions && /* @__PURE__ */ jsx("div", {
|
|
17
17
|
...props.actions,
|
|
18
18
|
children: actions
|
|
19
19
|
})
|
|
@@ -2,10 +2,11 @@ import * as _$react from "react";
|
|
|
2
2
|
import { HtmlNavProps, StyleAndModifierProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../components/dist/nav.d.ts
|
|
5
|
+
//#region src/nav.d.ts
|
|
5
6
|
interface NavProps extends HtmlNavProps, StyleAndModifierProps {}
|
|
6
7
|
/**
|
|
7
8
|
* @description A primitive which provides navigation links, either within the current document or to other documents
|
|
8
9
|
*/
|
|
9
|
-
declare const Nav: _$react.FC<NavProps>;
|
|
10
|
+
declare const Nav: _$react.FC<NavProps>; //#endregion
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Nav, NavProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/preset-bar.config.d.ts
|
|
3
|
+
//#region src/preset-bar.config.d.ts
|
|
3
4
|
declare const presetBarConfig: ComponentConfig<{
|
|
4
5
|
PresetBar: {
|
|
5
6
|
readonly base: {
|
|
@@ -187,6 +188,6 @@ declare const presetBarConfig: ComponentConfig<{
|
|
|
187
188
|
readonly defaultVariants: {};
|
|
188
189
|
};
|
|
189
190
|
}, {}>;
|
|
190
|
-
type PresetBarConfig = typeof presetBarConfig;
|
|
191
|
+
type PresetBarConfig = typeof presetBarConfig; //#endregion
|
|
191
192
|
//#endregion
|
|
192
193
|
export { PresetBarConfig, presetBarConfig };
|
|
@@ -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/preset-bar.d.ts
|
|
6
|
+
//#region src/preset-bar.d.ts
|
|
6
7
|
interface PresetItem {
|
|
7
8
|
id: string;
|
|
8
9
|
name: string;
|
|
@@ -210,6 +211,6 @@ declare const PresetBar: _$react.FC<_$_uds_types0.CreateComponentProps<Component
|
|
|
210
211
|
item: "div";
|
|
211
212
|
itemName: "span";
|
|
212
213
|
}>>;
|
|
213
|
-
type PresetBarProps = React.ComponentProps<typeof PresetBar>;
|
|
214
|
+
type PresetBarProps = React.ComponentProps<typeof PresetBar>; //#endregion
|
|
214
215
|
//#endregion
|
|
215
216
|
export { PresetBar, PresetBarProps, PresetItem };
|
|
@@ -23,40 +23,40 @@ const PresetBar = createComponent(({ props, presets, onSave, onLoad, onDelete, p
|
|
|
23
23
|
const handleKeyDown = useCallback((e) => {
|
|
24
24
|
if (e.key === "Enter") handleSave();
|
|
25
25
|
}, [handleSave]);
|
|
26
|
-
return jsxs("div", {
|
|
26
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
27
27
|
...props.root,
|
|
28
|
-
children: [jsxs("div", {
|
|
28
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
29
29
|
...props.inputRow,
|
|
30
|
-
children: [jsx("div", {
|
|
30
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
31
31
|
...props.inputWrapper,
|
|
32
|
-
children: jsx(Input, {
|
|
32
|
+
children: /* @__PURE__ */ jsx(Input, {
|
|
33
33
|
value: name,
|
|
34
34
|
onChange: handleChange,
|
|
35
35
|
onKeyDown: handleKeyDown,
|
|
36
36
|
placeholder
|
|
37
37
|
})
|
|
38
|
-
}), jsx(Button, {
|
|
38
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
39
39
|
variant: "brand",
|
|
40
40
|
size: "sm",
|
|
41
41
|
onClick: handleSave,
|
|
42
42
|
children: "Save"
|
|
43
43
|
})]
|
|
44
|
-
}), presets?.length > 0 && jsx("div", {
|
|
44
|
+
}), presets?.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
45
45
|
...props.list,
|
|
46
|
-
children: presets.map((preset) => jsxs("div", {
|
|
46
|
+
children: presets.map((preset) => /* @__PURE__ */ jsxs("div", {
|
|
47
47
|
...props.item,
|
|
48
48
|
children: [
|
|
49
|
-
jsx("span", {
|
|
49
|
+
/* @__PURE__ */ jsx("span", {
|
|
50
50
|
...props.itemName,
|
|
51
51
|
children: preset.name
|
|
52
52
|
}),
|
|
53
|
-
jsx(Button, {
|
|
53
|
+
/* @__PURE__ */ jsx(Button, {
|
|
54
54
|
variant: "ghost",
|
|
55
55
|
size: "xs",
|
|
56
56
|
onClick: () => onLoad(preset.id),
|
|
57
57
|
children: "Load"
|
|
58
58
|
}),
|
|
59
|
-
jsx(Button, {
|
|
59
|
+
/* @__PURE__ */ jsx(Button, {
|
|
60
60
|
variant: "ghost",
|
|
61
61
|
size: "xs",
|
|
62
62
|
onClick: () => onDelete(preset.id),
|
|
@@ -28,6 +28,7 @@ import { itemConfig } from "../item.config.js";
|
|
|
28
28
|
import { modalConfig } from "../modal.config.js";
|
|
29
29
|
import { navHeaderConfig } from "../nav-header.config.js";
|
|
30
30
|
import { presetBarConfig } from "../preset-bar.config.js";
|
|
31
|
+
import { toastConfig } from "../toast.config.js";
|
|
31
32
|
import { progressConfig } from "../progress.config.js";
|
|
32
33
|
import { selectConfig } from "../select.config.js";
|
|
33
34
|
import { sheetConfig } from "../sheet.config.js";
|
|
@@ -39,10 +40,10 @@ import { switchConfig } from "../switch.config.js";
|
|
|
39
40
|
import { tabsConfig } from "../tabs.config.js";
|
|
40
41
|
import { textConfig } from "../text.config.js";
|
|
41
42
|
import { textareaConfig } from "../textarea.config.js";
|
|
42
|
-
import { toastConfig } from "../toast.config.js";
|
|
43
43
|
import { tooltipConfig } from "../tooltip.config.js";
|
|
44
44
|
|
|
45
45
|
//#region ../components/dist/presets/index.d.ts
|
|
46
|
+
//#region src/presets/index.d.ts
|
|
46
47
|
declare const defaultComponentConfigs: readonly [ComponentConfig<{
|
|
47
48
|
Anchor: {
|
|
48
49
|
readonly base: {
|
|
@@ -17669,6 +17670,6 @@ declare const defaultComponentConfigs: readonly [ComponentConfig<{
|
|
|
17669
17670
|
};
|
|
17670
17671
|
};
|
|
17671
17672
|
};
|
|
17672
|
-
}, {}>];
|
|
17673
|
+
}, {}>]; //#endregion
|
|
17673
17674
|
//#endregion
|
|
17674
17675
|
export { defaultComponentConfigs };
|
|
@@ -2,8 +2,8 @@ import { textConfig } from "../text.config.js";
|
|
|
2
2
|
import { accordionConfig } from "../accordion.config.js";
|
|
3
3
|
import { alertConfig } from "../alert.config.js";
|
|
4
4
|
import { anchorConfig } from "../anchor.config.js";
|
|
5
|
-
import { avatarConfig } from "../avatar.config.js";
|
|
6
5
|
import { avatarGroupConfig } from "../avatar-group.config.js";
|
|
6
|
+
import { avatarConfig } from "../avatar.config.js";
|
|
7
7
|
import { badgeConfig } from "../badge.config.js";
|
|
8
8
|
import { breadcrumbConfig } from "../breadcrumb.config.js";
|
|
9
9
|
import { buttonConfig } from "../button.config.js";
|
|
@@ -2,10 +2,11 @@ import * as _$react from "react";
|
|
|
2
2
|
import { HtmlButtonProps, StyleAndModifierProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../components/dist/pressable.d.ts
|
|
5
|
+
//#region src/pressable.d.ts
|
|
5
6
|
interface PressableProps extends HtmlButtonProps, StyleAndModifierProps {}
|
|
6
7
|
/**
|
|
7
8
|
* @description A bare interactive primitive with no predefined styles — you control all visual styling via style props. Use for custom interactive elements: color swatches, size chips, toggle pills, icon buttons, card-like clickable areas, or any tappable element that doesn't look like a standard button. ALWAYS include _hover and _pressed modifier props for visual feedback — a Pressable without these looks broken.
|
|
8
9
|
*/
|
|
9
|
-
declare const Pressable: _$react.FC<PressableProps>;
|
|
10
|
+
declare const Pressable: _$react.FC<PressableProps>; //#endregion
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Pressable, PressableProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/progress.config.d.ts
|
|
3
|
+
//#region src/progress.config.d.ts
|
|
3
4
|
declare const progressConfig: ComponentConfig<{
|
|
4
5
|
Progress: {
|
|
5
6
|
readonly base: {
|
|
@@ -291,6 +292,6 @@ declare const progressConfig: ComponentConfig<{
|
|
|
291
292
|
};
|
|
292
293
|
};
|
|
293
294
|
}, {}>;
|
|
294
|
-
type ProgressConfig = typeof progressConfig;
|
|
295
|
+
type ProgressConfig = typeof progressConfig; //#endregion
|
|
295
296
|
//#endregion
|
|
296
297
|
export { ProgressConfig, progressConfig };
|
|
@@ -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/progress.d.ts
|
|
6
|
+
//#region src/progress.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* @description A bar that indicates the completion progress of a task
|
|
8
9
|
*/
|
|
@@ -306,6 +307,6 @@ declare const Progress: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentC
|
|
|
306
307
|
track: "div";
|
|
307
308
|
fill: "div";
|
|
308
309
|
}>>;
|
|
309
|
-
type ProgressProps = React.ComponentProps<typeof Progress>;
|
|
310
|
+
type ProgressProps = React.ComponentProps<typeof Progress>; //#endregion
|
|
310
311
|
//#endregion
|
|
311
312
|
export { Progress, ProgressProps };
|
|
@@ -15,24 +15,24 @@ const Progress = createComponent(({ props, value, label }) => {
|
|
|
15
15
|
...props.fill.style,
|
|
16
16
|
width: `${value}%`
|
|
17
17
|
};
|
|
18
|
-
return jsxs("div", {
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19
19
|
...props.root,
|
|
20
20
|
style: rootStyle,
|
|
21
|
-
children: [label && jsxs("div", {
|
|
21
|
+
children: [label && /* @__PURE__ */ jsxs("div", {
|
|
22
22
|
style: {
|
|
23
23
|
display: "flex",
|
|
24
24
|
justifyContent: "space-between"
|
|
25
25
|
},
|
|
26
|
-
children: [jsx("span", {
|
|
26
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
27
27
|
...props.label,
|
|
28
28
|
children: label
|
|
29
|
-
}), jsxs("span", {
|
|
29
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
30
30
|
...props.value,
|
|
31
31
|
children: [value, "%"]
|
|
32
32
|
})]
|
|
33
|
-
}), jsx("div", {
|
|
33
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
34
34
|
...props.track,
|
|
35
|
-
children: jsx("div", {
|
|
35
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
36
36
|
...props.fill,
|
|
37
37
|
style: fillStyle
|
|
38
38
|
})
|
|
@@ -2,10 +2,11 @@ import * as _$react from "react";
|
|
|
2
2
|
import { HtmlSectionProps, StyleAndModifierProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../components/dist/section.d.ts
|
|
5
|
+
//#region src/section.d.ts
|
|
5
6
|
interface SectionProps extends HtmlSectionProps, StyleAndModifierProps {}
|
|
6
7
|
/**
|
|
7
8
|
* @description A generic standalone section of a document, which doesn't have a more Definitionific semantic element to represent it
|
|
8
9
|
*/
|
|
9
|
-
declare const Section: _$react.FC<SectionProps>;
|
|
10
|
+
declare const Section: _$react.FC<SectionProps>; //#endregion
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Section, SectionProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/select.config.d.ts
|
|
3
|
+
//#region src/select.config.d.ts
|
|
3
4
|
declare const selectConfig: ComponentConfig<{
|
|
4
5
|
Select: {
|
|
5
6
|
readonly base: {
|
|
@@ -26,6 +27,6 @@ declare const selectConfig: ComponentConfig<{
|
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
}, {}>;
|
|
29
|
-
type SelectConfig = typeof selectConfig;
|
|
30
|
+
type SelectConfig = typeof selectConfig; //#endregion
|
|
30
31
|
//#endregion
|
|
31
32
|
export { SelectConfig, selectConfig };
|
|
@@ -4,6 +4,7 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
4
4
|
import { HtmlOptionProps, HtmlSelectProps, StyleAndModifierProps } from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/select.d.ts
|
|
7
|
+
//#region src/select.d.ts
|
|
7
8
|
interface SelectOwnProps extends HtmlSelectProps, StyleAndModifierProps {
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
}
|
|
@@ -40,6 +41,6 @@ declare const Select: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentCon
|
|
|
40
41
|
/**
|
|
41
42
|
* @description A primitive that provides a set of options for a user to choose from
|
|
42
43
|
*/
|
|
43
|
-
declare const Option: _$react.FC<OptionProps>;
|
|
44
|
+
declare const Option: _$react.FC<OptionProps>; //#endregion
|
|
44
45
|
//#endregion
|
|
45
46
|
export { Option, OptionProps, Select, SelectOwnProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/sheet.config.d.ts
|
|
3
|
+
//#region src/sheet.config.d.ts
|
|
3
4
|
declare const sheetConfig: ComponentConfig<{
|
|
4
5
|
Sheet: {
|
|
5
6
|
readonly base: {
|
|
@@ -240,6 +241,6 @@ declare const sheetConfig: ComponentConfig<{
|
|
|
240
241
|
};
|
|
241
242
|
};
|
|
242
243
|
}, {}>;
|
|
243
|
-
type SheetConfig = typeof sheetConfig;
|
|
244
|
+
type SheetConfig = typeof sheetConfig; //#endregion
|
|
244
245
|
//#endregion
|
|
245
246
|
export { SheetConfig, sheetConfig };
|
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import * as _$_uds_types0 from "@uds/types";
|
|
5
5
|
|
|
6
6
|
//#region ../components/dist/sheet.d.ts
|
|
7
|
+
//#region src/sheet.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* @description A panel that slides in from the edge of the screen
|
|
9
10
|
*/
|
|
@@ -262,6 +263,6 @@ declare const Sheet: _$react.FC<_$_uds_types0.CreateComponentProps<ComponentConf
|
|
|
262
263
|
content: "div";
|
|
263
264
|
footer: "div";
|
|
264
265
|
}>>;
|
|
265
|
-
type SheetProps = React.ComponentProps<typeof Sheet>;
|
|
266
|
+
type SheetProps = React.ComponentProps<typeof Sheet>; //#endregion
|
|
266
267
|
//#endregion
|
|
267
268
|
export { Sheet, SheetProps };
|
|
@@ -12,36 +12,36 @@ const Sheet = createComponent(({ props, children, open: controlledOpen, onOpenCh
|
|
|
12
12
|
const open = controlledOpen ?? internalOpen;
|
|
13
13
|
const setOpen = onOpenChange ?? setInternalOpen;
|
|
14
14
|
const state = open ? "open" : "closed";
|
|
15
|
-
return jsxs("div", {
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
16
|
"data-state": state,
|
|
17
17
|
...props.root,
|
|
18
|
-
children: [jsx("button", {
|
|
18
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
19
19
|
type: "button",
|
|
20
20
|
"data-state": state,
|
|
21
21
|
onClick: () => setOpen(false),
|
|
22
22
|
"aria-label": "Close sheet",
|
|
23
23
|
...props.overlay
|
|
24
|
-
}), jsxs("div", {
|
|
24
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
25
25
|
"data-state": state,
|
|
26
26
|
...props.panel,
|
|
27
27
|
children: [
|
|
28
|
-
jsxs("div", {
|
|
28
|
+
/* @__PURE__ */ jsxs("div", {
|
|
29
29
|
...props.header,
|
|
30
|
-
children: [title && jsx("div", {
|
|
30
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
31
31
|
...props.title,
|
|
32
32
|
children: title
|
|
33
|
-
}), jsx("button", {
|
|
33
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
34
34
|
type: "button",
|
|
35
35
|
onClick: () => setOpen(false),
|
|
36
36
|
...props.close,
|
|
37
37
|
children: "✕"
|
|
38
38
|
})]
|
|
39
39
|
}),
|
|
40
|
-
jsx("div", {
|
|
40
|
+
/* @__PURE__ */ jsx("div", {
|
|
41
41
|
...props.content,
|
|
42
42
|
children
|
|
43
43
|
}),
|
|
44
|
-
footer && jsx("div", {
|
|
44
|
+
footer && /* @__PURE__ */ jsx("div", {
|
|
45
45
|
...props.footer,
|
|
46
46
|
children: footer
|
|
47
47
|
})
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentConfig } from "../../config/dist/createConfig.js";
|
|
2
2
|
//#region ../components/dist/sidebar.config.d.ts
|
|
3
|
+
//#region src/sidebar.config.d.ts
|
|
3
4
|
declare const sidebarConfig: ComponentConfig<{
|
|
4
5
|
Sidebar: {
|
|
5
6
|
readonly base: {
|
|
@@ -1646,6 +1647,6 @@ declare const sidebarConfig: ComponentConfig<{
|
|
|
1646
1647
|
};
|
|
1647
1648
|
};
|
|
1648
1649
|
}, {}>;
|
|
1649
|
-
type SidebarConfig = typeof sidebarConfig;
|
|
1650
|
+
type SidebarConfig = typeof sidebarConfig; //#endregion
|
|
1650
1651
|
//#endregion
|
|
1651
1652
|
export { SidebarConfig, sidebarConfig };
|