@ilo-org/react 0.24.3 → 0.24.5
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/lib/cjs/_store/{ScoreCard-chunk-CrUY_fv3.js → CardGroup-chunk-DVgx8_lR.js} +1 -1
- package/lib/cjs/_store/{Cards-entry-CsnvxElJ.js → Cards-entry-CzMtOpW3.js} +1 -1
- package/lib/cjs/_store/Loading-chunk-BZ2x4P8i.js +1 -0
- package/lib/cjs/_store/{Loading-entry-DNib957t.js → Loading-entry-yle6tY14.js} +1 -1
- package/lib/cjs/_store/{components-entry-ipNN1mUG.js → components-entry-Bh31RBMt.js} +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/{ScoreCard-chunk-DCJ-Xysl.js → CardGroup-chunk-DAuoDC3W.js} +75 -74
- package/lib/esm/_store/{Cards-entry-C2-z4ntb.js → Cards-entry-CfOjTSQy.js} +1 -1
- package/lib/esm/_store/Loading-chunk-Cjv2veV9.js +81 -0
- package/lib/esm/_store/Loading-entry-BrtUNvEp.js +4 -0
- package/lib/esm/_store/{components-entry-rgYwKG2g.js → components-entry-Cz483CQA.js} +2 -2
- package/lib/esm/index.js +2 -2
- package/lib/styles/components/credit.css +1 -1
- package/lib/styles/components/loading.css +1 -1
- package/lib/styles/components/navigation.css +1 -1
- package/lib/styles/components/scorecard.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +2 -2
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +2 -2
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/Cards/CardGroup.d.ts +2 -0
- package/lib/types/components/Loading/Loading.props.d.ts +9 -7
- package/lib/types/types/index.d.ts +1 -3
- package/package.json +4 -4
- package/lib/cjs/_store/Loading-chunk-BceLroFu.js +0 -1
- package/lib/esm/_store/Loading-chunk-BycGy-99.js +0 -14
- package/lib/esm/_store/Loading-entry--kAG7CJh.js +0 -4
|
@@ -7,6 +7,7 @@ import { FeatureCardProps } from './FeatureCard';
|
|
|
7
7
|
import { DetailCardProps } from './DetailCard';
|
|
8
8
|
import { FactListCardProps } from './FactListCard';
|
|
9
9
|
import { DataCardProps } from './DataCard';
|
|
10
|
+
import { ScoreCardProps } from './ScoreCard';
|
|
10
11
|
import { LinkProps } from '../Link';
|
|
11
12
|
|
|
12
13
|
type CardPropsMap = {
|
|
@@ -18,6 +19,7 @@ type CardPropsMap = {
|
|
|
18
19
|
detail: DetailCardProps;
|
|
19
20
|
factlist: FactListCardProps;
|
|
20
21
|
data: DataCardProps;
|
|
22
|
+
score: ScoreCardProps;
|
|
21
23
|
};
|
|
22
24
|
type CardGroupComponentProps<T extends CardTypes> = CardPropsMap[T];
|
|
23
25
|
export type CardGroupProps<T extends CardTypes> = {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeTypes } from '../../types';
|
|
2
2
|
|
|
3
|
+
export type LoadingStatus = "loading" | "loaded" | "idle";
|
|
4
|
+
export type LoadingSize = "small" | "large";
|
|
3
5
|
export interface LoadingProps {
|
|
4
6
|
/**
|
|
5
7
|
* Specify an optional className to be added to your empty component.
|
|
6
8
|
*/
|
|
7
9
|
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Specify the loading message
|
|
10
|
-
*/
|
|
11
|
-
message?: string;
|
|
12
10
|
/**
|
|
13
11
|
* Specify the loader's size
|
|
14
12
|
*/
|
|
15
|
-
size
|
|
13
|
+
size: LoadingSize;
|
|
16
14
|
/**
|
|
17
15
|
* Specify the loading status
|
|
18
16
|
*/
|
|
19
|
-
status
|
|
17
|
+
status: LoadingStatus;
|
|
18
|
+
/**
|
|
19
|
+
* Specify the theme of the loading component
|
|
20
|
+
*/
|
|
21
|
+
theme?: ThemeTypes;
|
|
20
22
|
}
|
|
@@ -17,8 +17,6 @@ export type TooltipThemes = "light" | "dark";
|
|
|
17
17
|
export type TooltipIconThemes = "light" | "dark";
|
|
18
18
|
export type TooltipAlignment = "top" | "right" | "bottom" | "left";
|
|
19
19
|
export type TooltipPlacement = "negative" | "center" | "positive";
|
|
20
|
-
export type LoadingStatus = "idle" | "loading" | "loaded";
|
|
21
|
-
export type LoadingSize = "small" | "large";
|
|
22
20
|
export type NotificationPlacement = "dialog" | "inline";
|
|
23
21
|
export type NotificationTypes = "error" | "info" | "success" | "warning";
|
|
24
22
|
export type PositionTypes = "top" | "bottom" | "left" | "right";
|
|
@@ -29,7 +27,7 @@ export type CardColor = "turquoise" | "green" | "yellow" | "blue";
|
|
|
29
27
|
export type CardSize = "wide" | "standard" | "narrow" | "fluid";
|
|
30
28
|
export type CardCornerType = boolean;
|
|
31
29
|
export type CardAlignment = "left" | "right";
|
|
32
|
-
export type CardTypes = "stat" | "multilink" | "text" | "promo" | "feature" | "detail" | "factlist" | "data";
|
|
30
|
+
export type CardTypes = "stat" | "multilink" | "text" | "promo" | "feature" | "detail" | "factlist" | "score" | "data";
|
|
33
31
|
export type HeadingTypes = "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
34
32
|
export interface EventDate {
|
|
35
33
|
unix?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.5",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"use-breakpoint": "^4.0.6",
|
|
73
73
|
"video.js": "^7.21.2",
|
|
74
74
|
"videojs-youtube": "^3.0.1",
|
|
75
|
-
"@ilo-org/brand-assets": "1.0.
|
|
76
|
-
"@ilo-org/icons-react": "1.0.3",
|
|
75
|
+
"@ilo-org/brand-assets": "1.0.1",
|
|
77
76
|
"@ilo-org/fonts": "1.0.0",
|
|
78
|
-
"@ilo-org/
|
|
77
|
+
"@ilo-org/icons-react": "1.0.3",
|
|
78
|
+
"@ilo-org/styles": "1.8.5",
|
|
79
79
|
"@ilo-org/themes": "0.9.1",
|
|
80
80
|
"@ilo-org/utils": "0.1.1"
|
|
81
81
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),c=require("./index-chunk-D921N0ug.js"),t=require("./useGlobalSettings-chunk-DEacV16j.js"),d=({className:o,message:n,size:i,status:e})=>{const{prefix:r}=t.useGlobalSettings(),s=`${r}--loading`,a=c.classnames(o,{[s]:!0,[`${s}--${i}`]:i,[`${s}--${e}`]:e});return l.jsx("div",{className:a,role:"alert","aria-live":"assertive",children:e&&n&&e!=="idle"&&l.jsx("p",{className:`${s}--copy`,children:n})})},$=d;exports.Loading=$;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./index-chunk-CY3PQDr4.js";
|
|
3
|
-
import { u as t } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
4
|
-
const d = ({ className: i, message: r, size: s, status: o }) => {
|
|
5
|
-
const { prefix: l } = t(), a = `${l}--loading`, n = c(i, {
|
|
6
|
-
[a]: !0,
|
|
7
|
-
[`${a}--${s}`]: s,
|
|
8
|
-
[`${a}--${o}`]: o
|
|
9
|
-
});
|
|
10
|
-
return /* @__PURE__ */ e("div", { className: n, role: "alert", "aria-live": "assertive", children: o && r && o !== "idle" && /* @__PURE__ */ e("p", { className: `${a}--copy`, children: r }) });
|
|
11
|
-
}, f = d;
|
|
12
|
-
export {
|
|
13
|
-
f as L
|
|
14
|
-
};
|