@luscii-healthtech/web-ui 2.40.1 → 2.41.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.
@@ -12,6 +12,7 @@ export interface AccordionListProps extends Omit<AccordionProps, "items"> {
12
12
  accordionItems: AccordionListItemProps[];
13
13
  buttonProps?: BaseButtonProps;
14
14
  isSearchEnabled?: boolean;
15
+ isLoading?: boolean;
15
16
  }
16
17
  export interface AccordionListItemProps extends Omit<AccordionItemProps, "content"> {
17
18
  listItems: ListItemProps[];
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
3
3
  import { IconProps } from "../Icons/types/IconProps.type";
4
4
  import { PrimaryButtonProps } from "../../index";
5
+ import { TitleProps } from "../Title/Title";
5
6
  export interface ListItemProps {
6
7
  itemId: string | number;
7
8
  title: string;
@@ -24,7 +25,7 @@ export interface ListItemProps {
24
25
  }
25
26
  export declare type OnAssetLoadErrorPayload = Pick<ListItemProps, "itemId" | "subtitle" | "title" | "icon">;
26
27
  export declare type ListProps = {
27
- title?: string;
28
+ title?: string | TitleProps;
28
29
  headerButton?: ButtonDefinition<PrimaryButtonProps>;
29
30
  headerTransparent?: boolean;
30
31
  items: ListItemProps[];
@@ -1,8 +1,38 @@
1
1
  import { RestPropped } from "../../types/general.types";
2
2
  import "./Text.css";
3
- export declare type TextStyle = "sm" | "sm-strong" | "base" | "strong" | "lg" | "lg-strong" | "xl" | "xl-strong";
4
- export declare type TextColor = "base" | "slate-500" | "slate-200" | "white" | "blue-800" | "red" | "green" | "amber";
5
- export declare type TextHoverColor = "blue-900" | "white";
3
+ /**
4
+ * One might argue that we're duplicating strings in this file.
5
+ * That's how tailwind expects to detect used classes, so please do not make
6
+ * anything dynamic or try to string concat class names.
7
+ * https://v1.tailwindcss.com/docs/controlling-file-size
8
+ */
9
+ declare const allowedTextStyles: {
10
+ sm: string;
11
+ "sm-strong": string;
12
+ base: string;
13
+ strong: string;
14
+ lg: string;
15
+ "lg-strong": string;
16
+ xl: string;
17
+ "xl-strong": string;
18
+ };
19
+ export declare const allowedColors: {
20
+ readonly base: "text-slate-800";
21
+ readonly "slate-500": "text-slate-500";
22
+ readonly "slate-200": "text-slate-200";
23
+ readonly red: "text-red-700";
24
+ readonly green: "text-green-700";
25
+ readonly amber: "text-yellow-700";
26
+ readonly white: "text-white";
27
+ readonly "blue-800": "text-blue-800";
28
+ };
29
+ declare const allowedHoverColors: {
30
+ readonly "blue-900": "hover:text-blue-900";
31
+ readonly white: "hover:text-white";
32
+ };
33
+ export declare type TextColor = keyof typeof allowedColors;
34
+ export declare type TextHoverColor = keyof typeof allowedHoverColors;
35
+ export declare type TextStyle = keyof typeof allowedTextStyles;
6
36
  export interface TextProps extends RestPropped {
7
37
  text: string;
8
38
  type?: TextStyle;
@@ -1,12 +1,14 @@
1
1
  import "./Title.scss";
2
+ import { TextColor } from "../Text/Text";
2
3
  export declare type TitleStyle = "xs" | "sm" | "base" | "lg" | "xl" | "2xl";
3
- export interface TextProps {
4
+ export interface TitleProps {
4
5
  text: string;
5
6
  type?: TitleStyle;
7
+ color?: TextColor;
6
8
  className?: string;
7
9
  }
8
10
  export declare const Title: {
9
- (props: TextProps): JSX.Element;
11
+ (props: TitleProps): JSX.Element;
10
12
  defaultProps: {
11
13
  type: string;
12
14
  };
@@ -1216,6 +1216,10 @@ video {
1216
1216
  justify-content: space-between;
1217
1217
  }
1218
1218
 
1219
+ .flex-1 {
1220
+ flex: 1 1 0%;
1221
+ }
1222
+
1219
1223
  .flex-auto {
1220
1224
  flex: 1 1 auto;
1221
1225
  }
@@ -2228,6 +2232,14 @@ video {
2228
2232
  width: 0.625rem;
2229
2233
  }
2230
2234
 
2235
+ .w-1\/3 {
2236
+ width: 33.333333%;
2237
+ }
2238
+
2239
+ .w-2\/3 {
2240
+ width: 66.666667%;
2241
+ }
2242
+
2231
2243
  .w-full {
2232
2244
  width: 100%;
2233
2245
  }