@luscii-healthtech/web-ui 27.3.1 → 27.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/StyledUnorderedList/StyledUnorderedList.d.ts +26 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.development.js +17 -3
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui-tailwind.css +12 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, type FC } from "react";
|
|
2
|
+
import { TextColor, TextStyle } from "../Text/Text";
|
|
3
|
+
type Props = ComponentPropsWithoutRef<"ul"> & {
|
|
4
|
+
/**
|
|
5
|
+
* The styling variant of the text.
|
|
6
|
+
*
|
|
7
|
+
* @default "base"
|
|
8
|
+
*/
|
|
9
|
+
variant?: TextStyle;
|
|
10
|
+
/**
|
|
11
|
+
* @default "base"
|
|
12
|
+
*/
|
|
13
|
+
color?: TextColor;
|
|
14
|
+
/**
|
|
15
|
+
* The position of the list marker.
|
|
16
|
+
*
|
|
17
|
+
* @default "inside"
|
|
18
|
+
*/
|
|
19
|
+
position?: "inside" | "outside";
|
|
20
|
+
};
|
|
21
|
+
type StaticComponents = {
|
|
22
|
+
Item: typeof Item;
|
|
23
|
+
};
|
|
24
|
+
export declare const StyledUnorderedList: FC<Props> & StaticComponents;
|
|
25
|
+
declare const Item: React.FC<ComponentPropsWithoutRef<"li">>;
|
|
26
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import "./Text.css";
|
|
|
7
7
|
* anything dynamic or try to string concat class names.
|
|
8
8
|
* https://v1.tailwindcss.com/docs/controlling-file-size
|
|
9
9
|
*/
|
|
10
|
-
declare const allowedTextStyles: {
|
|
10
|
+
export declare const allowedTextStyles: {
|
|
11
11
|
readonly sm: "ui-text-xs ui-font-medium";
|
|
12
12
|
readonly "sm-strong": "ui-text-xs ui-font-semibold ui-antialiased";
|
|
13
13
|
readonly base: "ui-text-sm";
|
package/dist/index.d.ts
CHANGED
|
@@ -97,3 +97,4 @@ export { StatusIndicator } from "./components/StatusIndicator/StatusIndicator";
|
|
|
97
97
|
export { TimelineCard } from "./components/TimelineCard/TimelineCard";
|
|
98
98
|
export { TimelineCardLayout } from "./components/TimelineCardLayout/TimelineCardLayout";
|
|
99
99
|
export { LocaleProvider } from "./context/LocaleContext";
|
|
100
|
+
export { StyledUnorderedList } from "./components/StyledUnorderedList/StyledUnorderedList";
|
|
@@ -5346,7 +5346,7 @@ function ViewItem(_a) {
|
|
|
5346
5346
|
const Padding$1 = (props) => {
|
|
5347
5347
|
return React__namespace.default.createElement("div", { className: classNames__default.default("ui-p-4", props.className) }, props.children);
|
|
5348
5348
|
};
|
|
5349
|
-
const Item = (props) => {
|
|
5349
|
+
const Item$1 = (props) => {
|
|
5350
5350
|
const { _DO_NOT_USE_index } = props, rest = __rest(props, ["_DO_NOT_USE_index"]);
|
|
5351
5351
|
return React__namespace.default.createElement(
|
|
5352
5352
|
React__namespace.default.Fragment,
|
|
@@ -5387,7 +5387,7 @@ const UnorderedList = (props) => {
|
|
|
5387
5387
|
return child !== null && child !== void 0 ? child : null;
|
|
5388
5388
|
}
|
|
5389
5389
|
const Component = child.type;
|
|
5390
|
-
if (Component === Item) {
|
|
5390
|
+
if (Component === Item$1) {
|
|
5391
5391
|
return React__namespace.default.createElement(Component, Object.assign({}, child.props, { _DO_NOT_USE_index: index }));
|
|
5392
5392
|
}
|
|
5393
5393
|
return React__namespace.default.createElement(Component, Object.assign({}, child.props));
|
|
@@ -5403,7 +5403,7 @@ const Indent = ({ children }) => {
|
|
|
5403
5403
|
return React__namespace.default.createElement(Component, Object.assign({}, child.props, { className: classNames__default.default(child.props.className, "ui-pl-4") }));
|
|
5404
5404
|
}));
|
|
5405
5405
|
};
|
|
5406
|
-
UnorderedList.Item = Item;
|
|
5406
|
+
UnorderedList.Item = Item$1;
|
|
5407
5407
|
UnorderedList.Padding = Padding$1;
|
|
5408
5408
|
UnorderedList.Indent = Indent;
|
|
5409
5409
|
|
|
@@ -6079,6 +6079,19 @@ const TimelineCardLayout = (_a) => {
|
|
|
6079
6079
|
);
|
|
6080
6080
|
};
|
|
6081
6081
|
|
|
6082
|
+
const StyledUnorderedList = (_a) => {
|
|
6083
|
+
var { children, className, color = "base", variant = "base", position = "inside" } = _a, rest = __rest(_a, ["children", "className", "color", "variant", "position"]);
|
|
6084
|
+
const classes = classNames__default.default("ui-list-disc ui-list-inside", className, allowedColors[color], allowedTextStyles[variant], {
|
|
6085
|
+
"ui-list-outside": position === "outside",
|
|
6086
|
+
"ui-list-inside": position === "inside"
|
|
6087
|
+
});
|
|
6088
|
+
return React__namespace.default.createElement(Box, Object.assign({ as: "ul", className: classes }, rest), children);
|
|
6089
|
+
};
|
|
6090
|
+
const Item = (props) => {
|
|
6091
|
+
return React__namespace.default.createElement(Box, Object.assign({ as: "li" }, props));
|
|
6092
|
+
};
|
|
6093
|
+
StyledUnorderedList.Item = Item;
|
|
6094
|
+
|
|
6082
6095
|
Object.defineProperty(exports, 'Toaster', {
|
|
6083
6096
|
enumerable: true,
|
|
6084
6097
|
get: function () { return sonner.Toaster; }
|
|
@@ -6247,6 +6260,7 @@ exports.StatusColoredIcon = StatusColoredIcon;
|
|
|
6247
6260
|
exports.StatusIndicator = StatusIndicator;
|
|
6248
6261
|
exports.Steps = Steps;
|
|
6249
6262
|
exports.StyledInput = StyledInput;
|
|
6263
|
+
exports.StyledUnorderedList = StyledUnorderedList;
|
|
6250
6264
|
exports.Switcher = Switcher;
|
|
6251
6265
|
exports.TOASTER_TYPE_OPTIONS = TOASTER_TYPE_OPTIONS;
|
|
6252
6266
|
exports.Tabbar = Tabbar;
|