@ilo-org/react 0.24.2 → 0.24.4

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.
Files changed (37) hide show
  1. package/lib/cjs/_store/{Cards-entry-obHzo6Lq.js → Cards-entry-CsnvxElJ.js} +1 -1
  2. package/lib/cjs/_store/Loading-chunk-BZ2x4P8i.js +1 -0
  3. package/lib/cjs/_store/{Loading-entry-DNib957t.js → Loading-entry-yle6tY14.js} +1 -1
  4. package/lib/cjs/_store/{ScoreCard-chunk-B9OFfe4F.js → ScoreCard-chunk-CrUY_fv3.js} +1 -1
  5. package/lib/cjs/_store/Status-chunk-DJ3wnXYt.js +1 -0
  6. package/lib/cjs/_store/{Status-entry-CDU314zd.js → Status-entry-CWq-F6VM.js} +1 -1
  7. package/lib/cjs/_store/components-entry-1s3FUUOQ.js +1 -0
  8. package/lib/cjs/index.js +1 -1
  9. package/lib/esm/_store/{Cards-entry-BsJZAO89.js → Cards-entry-C2-z4ntb.js} +1 -1
  10. package/lib/esm/_store/Loading-chunk-Cjv2veV9.js +81 -0
  11. package/lib/esm/_store/Loading-entry-BrtUNvEp.js +4 -0
  12. package/lib/esm/_store/{ScoreCard-chunk-BzQ8y5d7.js → ScoreCard-chunk-DCJ-Xysl.js} +1 -1
  13. package/lib/esm/_store/Status-chunk-E-pHCJfe.js +17 -0
  14. package/lib/esm/_store/Status-entry-Cz_P6nys.js +4 -0
  15. package/lib/esm/_store/{components-entry-C3_1dWKW.js → components-entry-YMq-4TvM.js} +10 -8
  16. package/lib/esm/index.js +20 -18
  17. package/lib/styles/components/credit.css +1 -1
  18. package/lib/styles/components/loading.css +1 -1
  19. package/lib/styles/components/navigation.css +1 -1
  20. package/lib/styles/components/scorecard.css +1 -1
  21. package/lib/styles/global.css.map +1 -1
  22. package/lib/styles/index.css +2 -2
  23. package/lib/styles/index.css.map +1 -1
  24. package/lib/styles/monorepo.css +2 -2
  25. package/lib/styles/monorepo.css.map +1 -1
  26. package/lib/types/components/Loading/Loading.props.d.ts +9 -7
  27. package/lib/types/components/Status/Status.d.ts +1 -1
  28. package/lib/types/components/index.d.ts +1 -0
  29. package/lib/types/types/index.d.ts +0 -2
  30. package/package.json +5 -5
  31. package/lib/cjs/_store/Loading-chunk-BceLroFu.js +0 -1
  32. package/lib/cjs/_store/Status-chunk-3GZXo15N.js +0 -1
  33. package/lib/cjs/_store/components-entry-BV3j4LPg.js +0 -1
  34. package/lib/esm/_store/Loading-chunk-BycGy-99.js +0 -14
  35. package/lib/esm/_store/Loading-entry--kAG7CJh.js +0 -4
  36. package/lib/esm/_store/Status-chunk-wCQ8Gv7z.js +0 -16
  37. package/lib/esm/_store/Status-entry-TIH9B5c-.js +0 -4
@@ -1,20 +1,22 @@
1
- import { LoadingStatus, LoadingSize } from '../../types';
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?: Required<LoadingSize>;
13
+ size: LoadingSize;
16
14
  /**
17
15
  * Specify the loading status
18
16
  */
19
- status?: Required<LoadingStatus>;
17
+ status: LoadingStatus;
18
+ /**
19
+ * Specify the theme of the loading component
20
+ */
21
+ theme?: ThemeTypes;
20
22
  }
@@ -6,7 +6,7 @@ export type StatusProps = {
6
6
  /**
7
7
  * The content inside the status component.
8
8
  */
9
- content: string;
9
+ content: string | React.ReactNode;
10
10
  /**
11
11
  * The ID of the status element.
12
12
  */
@@ -39,6 +39,7 @@ export * from './Footer';
39
39
  export { Navigation } from './Navigation';
40
40
  export { CardGroup } from './Cards/CardGroup';
41
41
  export { Breadcrumb } from './Breadcrumb';
42
+ export { Status } from './Status';
42
43
  export { Tabs } from './Tabs';
43
44
  export * from './Cards';
44
45
  export * from './LanguageToggle';
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.24.2",
3
+ "version": "0.24.4",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -73,11 +73,11 @@
73
73
  "video.js": "^7.21.2",
74
74
  "videojs-youtube": "^3.0.1",
75
75
  "@ilo-org/fonts": "1.0.0",
76
- "@ilo-org/icons-react": "1.0.3",
77
- "@ilo-org/brand-assets": "1.0.0",
78
- "@ilo-org/styles": "1.8.2",
76
+ "@ilo-org/styles": "1.8.4",
79
77
  "@ilo-org/themes": "0.9.1",
80
- "@ilo-org/utils": "0.1.1"
78
+ "@ilo-org/brand-assets": "1.0.0",
79
+ "@ilo-org/utils": "0.1.1",
80
+ "@ilo-org/icons-react": "1.0.3"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@storybook/addon-actions": "^8.1.9",
@@ -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 +0,0 @@
1
- "use strict";const c=require("react/jsx-runtime"),i=require("react"),o=require("./index-chunk-D921N0ug.js"),l=require("./useGlobalSettings-chunk-DEacV16j.js"),d=i.forwardRef(({statusType:s="active",content:e,elementId:r,className:a},n)=>{const{prefix:t}=l.useGlobalSettings(),u=o.classnames(a,{[`${t}--status`]:!0,[`${t}--status__type__${s}`]:s});return c.jsx("span",{className:u,id:r,ref:n,children:e})});exports.Status=d;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Accordion-entry-Du65VJ-p.js"),t=require("./Form-chunk-Bhz_CsMf.js"),i=require("./Collapse-chunk-CKRYA3G0.js"),a=require("./Empty-chunk-D15nltyD.js"),n=require("./Image-chunk-DrH5JX6G.js"),c=require("./Loading-chunk-BceLroFu.js"),u=require("./Radio-chunk-DoLctty-.js"),d=require("./Tag-chunk-C_r4zGEh.js"),s=require("./Button-chunk-BPxitLjn.js"),l=require("./ContextMenu-chunk-LNOPuIui.js"),q=require("./Fieldset-chunk-Dykzn_3y.js"),C=require("./GlobalProvider-chunk-Bt1vmswv.js"),b=require("./GlobalCtx-chunk-D_GlGcgw.js"),r=require("./TextInput.args-chunk-Bs7YIRuJ.js"),g=require("./Notification-chunk-BDC2i-2V.js"),L=require("./ReadMore-chunk-Cz3Dc9Cz.js"),T=require("./Textarea-chunk-XYsrIeDn.js"),x=require("./Callout-chunk-Cmnm5uzu.js"),p=require("./Credit-chunk-cffOG8ho.js"),P=require("./FileUpload-chunk-CC1oePLc.js"),F=require("./Heading-chunk-COxtDw0v.js"),m=require("./Link-chunk-BcVWiDXw.js"),k=require("./NumberPicker-chunk-kaW8wv3h.js"),S=require("./RichText-chunk-CLfo33Pr.js"),v=require("./Tooltip-chunk-CQu5vz01.js"),I=require("./Checkbox-chunk-CDFIXTn9.js"),N=require("./DatePicker-chunk-DouvjE3X.js"),f=require("./Hero-chunk-BgeQPg_6.js"),D=require("./HeroCard-chunk-Dx88UJpE.js"),h=require("./LinkList-chunk-AT26ZVEG.js"),H=require("./Pagination-chunk-D3Ve2ASf.js"),M=require("./SearchField-chunk-BuB-C9aK.js"),R=require("./Video-chunk-UuPc6ufz.js"),G=require("./Dropdown-chunk-BjeJjYZD.js"),B=require("./Icon-chunk-QFryHTpy.js"),y=require("./List-entry-DRGsrQZi.js"),O=require("./Profile-chunk-Du8HEAQA.js"),w=require("./TableOfContents-chunk-ZubRLGF3.js"),A=require("./Footer-chunk-CGR-tiim.js"),E=require("./Navigation-entry-C6dI5Dpf.js"),e=require("./ScoreCard-chunk-B9OFfe4F.js"),U=require("./Breadcrumb-chunk-BFveDqpn.js"),V=require("./Tabs-chunk-n0swxLit.js"),_=require("./LanguageToggle-chunk-DdIPnYuL.js"),$=require("./SubsiteNav-chunk-CVWgp2ti.js");exports.Accordion=o.Accordion;exports.Form=t.Form;exports.Collapse=i.Collapse;exports.Empty=a.Empty;exports.Image=n.Image;exports.Loading=c.Loading;exports.Radio=u.LabelledRadio;exports.Tag=d.Tag;exports.Button=s.Button;exports.ContextMenu=l.ContextMenu;exports.Fieldset=q.Fieldset;exports.GlobalProvider=C.GlobalProvider;exports.GlobalProviderContext=b.GlobalProviderContext;exports.TextInput=r.LabelledTextInput;exports.TextInputArgs=r.TextInput_args;exports.Notification=g.Notification;exports.ReadMore=L.ReadMore;exports.Textarea=T.LabelledTextarea;exports.Callout=x.Callout;exports.Credit=p.Credit;exports.FileUpload=P.LabelledFileUpload;exports.Heading=F.Heading;exports.Link=m.Link;exports.NumberPicker=k.LabelledNumberPicker;exports.RichText=S.RichText;exports.Tooltip=v.Tooltip;exports.Checkbox=I.LabelledCheckbox;exports.DatePicker=N.LabelledDatePicker;exports.Hero=f.Hero;exports.HeroCard=D.HeroCard;exports.LinkList=h.LinkList;exports.Pagination=H.Pagination;exports.SearchField=M.SearchField;exports.Video=R.Video;exports.Dropdown=G.LabelledDropdown;exports.Icon=B.Icon;exports.List=y.List;exports.Profile=O.Profile;exports.TableOfContents=w.TableOfContents;exports.Footer=A.Footer;exports.Navigation=E.Navigation;exports.CardGroup=e.CardGroup;exports.DataCard=e.DataCard;exports.DetailCard=e.DetailCard;exports.FactListCard=e.FactListCard;exports.FeatureCard=e.FeatureCard;exports.MultiLinkCard=e.MultiLinkCard;exports.PromoCard=e.PromoCard;exports.ScoreCard=e.ScoreCard;exports.StatCard=e.StatCard;exports.TextCard=e.TextCard;exports.Breadcrumb=U.Breadcrumb;exports.Tabs=V.Tabs;exports.LanguageToggle=_.LanguageToggle;exports.SubsiteNav=$.SubsiteNav;
@@ -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
- };
@@ -1,4 +0,0 @@
1
- import { L as r } from "./Loading-chunk-BycGy-99.js";
2
- export {
3
- r as Loading
4
- };
@@ -1,16 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { c as n } from "./index-chunk-CY3PQDr4.js";
4
- import { u as f } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- const d = c(
6
- ({ statusType: s = "active", content: r, elementId: a, className: o }, e) => {
7
- const { prefix: t } = f(), m = n(o, {
8
- [`${t}--status`]: !0,
9
- [`${t}--status__type__${s}`]: s
10
- });
11
- return /* @__PURE__ */ i("span", { className: m, id: a, ref: e, children: r });
12
- }
13
- );
14
- export {
15
- d as S
16
- };
@@ -1,4 +0,0 @@
1
- import { S as o } from "./Status-chunk-wCQ8Gv7z.js";
2
- export {
3
- o as Status
4
- };