@ilo-org/react 0.24.1 → 0.24.2
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/{Button-chunk-B65FgSLG.js → Button-chunk-BPxitLjn.js} +1 -1
- package/lib/cjs/_store/{Button-entry-Ddk5OCD-.js → Button-entry-C7Z6wido.js} +1 -1
- package/lib/cjs/_store/{Callout-chunk-CS-b8vev.js → Callout-chunk-Cmnm5uzu.js} +1 -1
- package/lib/cjs/_store/{Callout-entry-Ddp2XRRc.js → Callout-entry-CE3NvW4J.js} +1 -1
- package/lib/cjs/_store/{Cards-entry-DP-Xck6d.js → Cards-entry-obHzo6Lq.js} +1 -1
- package/lib/cjs/_store/{Footer-chunk-BUjFj4bf.js → Footer-chunk-CGR-tiim.js} +1 -1
- package/lib/cjs/_store/{Footer-entry-D55F4ET9.js → Footer-entry-BTlHhSKi.js} +1 -1
- package/lib/cjs/_store/Link-chunk-BcVWiDXw.js +1 -0
- package/lib/cjs/_store/{Link-entry-Ds4pg91u.js → Link-entry-70094UjI.js} +1 -1
- package/lib/cjs/_store/{Notification-chunk-DkfLXJhu.js → Notification-chunk-BDC2i-2V.js} +1 -1
- package/lib/cjs/_store/{Notification-entry-D9KwV5qV.js → Notification-entry-BQ1Dbfgd.js} +1 -1
- package/lib/cjs/_store/{ScoreCard-chunk-CYb8wTsk.js → ScoreCard-chunk-B9OFfe4F.js} +1 -1
- package/lib/cjs/_store/{components-entry-3bYkJbl2.js → components-entry-BV3j4LPg.js} +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/{Button-chunk-DG7cL6tj.js → Button-chunk-3RMfjmYT.js} +1 -1
- package/lib/esm/_store/Button-entry-BMva-FAn.js +4 -0
- package/lib/esm/_store/{Callout-chunk-D3zivwvj.js → Callout-chunk-Com68klk.js} +1 -1
- package/lib/esm/_store/Callout-entry-Cy0_T9cE.js +4 -0
- package/lib/esm/_store/{Cards-entry-C6lcDtCN.js → Cards-entry-BsJZAO89.js} +1 -1
- package/lib/esm/_store/{Footer-chunk-BI6r73Bm.js → Footer-chunk-DcFDdukr.js} +1 -1
- package/lib/esm/_store/Footer-entry-DR2tq2kQ.js +4 -0
- package/lib/esm/_store/Link-chunk-5QxYwhDk.js +34 -0
- package/lib/esm/_store/Link-entry-B7IbEhwb.js +4 -0
- package/lib/esm/_store/{Notification-chunk-CQvSf6dK.js → Notification-chunk-BHNEwEo8.js} +1 -1
- package/lib/esm/_store/Notification-entry-cjXsm4yI.js +4 -0
- package/lib/esm/_store/{ScoreCard-chunk-DPDwOSdN.js → ScoreCard-chunk-BzQ8y5d7.js} +2 -2
- package/lib/esm/_store/{components-entry-CWXSZN_z.js → components-entry-C3_1dWKW.js} +6 -6
- package/lib/esm/index.js +6 -6
- package/lib/styles/components/link.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/table.css +1 -1
- package/lib/styles/global.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/Link/Link.d.ts +3 -3
- package/lib/types/types/index.d.ts +0 -1
- package/package.json +4 -4
- package/lib/cjs/_store/Link-chunk-DuZiglb_.js +0 -1
- package/lib/esm/_store/Button-entry-BYzboMV8.js +0 -4
- package/lib/esm/_store/Callout-entry-B0N_qxJ-.js +0 -4
- package/lib/esm/_store/Footer-entry-Db7ByESM.js +0 -4
- package/lib/esm/_store/Link-chunk-DNHgQ3lF.js +0 -33
- package/lib/esm/_store/Link-entry-sY9wid1q.js +0 -4
- package/lib/esm/_store/Notification-entry-D9sUbaSJ.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeTypes } from '../../types';
|
|
3
3
|
|
|
4
4
|
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
21
21
|
/**
|
|
22
22
|
* Specify an optional className to be added to your Link.
|
|
23
23
|
*/
|
|
24
|
-
theme?:
|
|
24
|
+
theme?: ThemeTypes;
|
|
25
25
|
/**
|
|
26
26
|
* Specify an optional className to be added to your Link.
|
|
27
27
|
*/
|
|
@@ -47,7 +47,7 @@ declare const Link: import('react').ForwardRefExoticComponent<AnchorHTMLAttribut
|
|
|
47
47
|
/**
|
|
48
48
|
* Specify an optional className to be added to your Link.
|
|
49
49
|
*/
|
|
50
|
-
theme?:
|
|
50
|
+
theme?: ThemeTypes | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Specify an optional className to be added to your Link.
|
|
53
53
|
*/
|
|
@@ -12,7 +12,6 @@ export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
|
12
12
|
export type TextInputTypes = "email" | "hidden" | "password" | "search" | "tel" | "text" | "url";
|
|
13
13
|
export type Language = "en" | "fr" | "es";
|
|
14
14
|
export type LabelTypes = "default" | "actionable" | "light";
|
|
15
|
-
export type LinkTypes = "light" | "dark" | "footer" | "button";
|
|
16
15
|
export type LinkListThemes = "light" | "dark";
|
|
17
16
|
export type TooltipThemes = "light" | "dark";
|
|
18
17
|
export type TooltipIconThemes = "light" | "dark";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
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.0",
|
|
76
75
|
"@ilo-org/fonts": "1.0.0",
|
|
77
76
|
"@ilo-org/icons-react": "1.0.3",
|
|
78
|
-
"@ilo-org/
|
|
77
|
+
"@ilo-org/brand-assets": "1.0.0",
|
|
78
|
+
"@ilo-org/styles": "1.8.2",
|
|
79
79
|
"@ilo-org/themes": "0.9.1",
|
|
80
80
|
"@ilo-org/utils": "0.1.1"
|
|
81
81
|
},
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"vite-plugin-dts": "^3.9.1",
|
|
113
113
|
"vite-plugin-static-copy": "^1.0.6",
|
|
114
114
|
"vitest": "^2.0.5",
|
|
115
|
-
"@ilo-org/prettier-config": "2.0.0",
|
|
116
115
|
"@ilo-org/eslint-config": "2.0.0",
|
|
116
|
+
"@ilo-org/prettier-config": "2.0.0",
|
|
117
117
|
"@ilo-org/typescript-config": "2.0.0"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),k=require("react"),x=require("./index-chunk-D921N0ug.js"),a=require("./useGlobalSettings-chunk-DEacV16j.js"),b=k.forwardRef(({children:o,className:e,label:r,target:s,theme:i="light",url:l,...u},c)=>{const{prefix:d}=a.useGlobalSettings();let n=`${d}--link`;e!=null&&e.includes("button")&&(n="");const f=x.classnames(e,{[n]:!0,[`${n}--${i}`]:n&&i});return t.jsxs("a",{ref:c,className:f,href:l,target:s,rel:s?"noopener noreferrer":void 0,...u,children:[r&&t.jsx("span",{className:"link__label",children:r}),o]})});exports.Link=b;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as d } from "react";
|
|
3
|
-
import { c as m } from "./index-chunk-CY3PQDr4.js";
|
|
4
|
-
import { u as k } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
5
|
-
const j = d(
|
|
6
|
-
({ children: e, className: r, label: n, target: i, theme: s = "light", url: t, ...l }, f) => {
|
|
7
|
-
const { prefix: p } = k();
|
|
8
|
-
let o = `${p}--link`;
|
|
9
|
-
r != null && r.includes("button") && (o = "");
|
|
10
|
-
const u = m(r, {
|
|
11
|
-
[o]: !0,
|
|
12
|
-
[`${o}--${s}`]: o && s
|
|
13
|
-
});
|
|
14
|
-
return /* @__PURE__ */ a(
|
|
15
|
-
"a",
|
|
16
|
-
{
|
|
17
|
-
ref: f,
|
|
18
|
-
className: u,
|
|
19
|
-
href: t,
|
|
20
|
-
target: i,
|
|
21
|
-
rel: i ? "noopener noreferrer" : void 0,
|
|
22
|
-
...l,
|
|
23
|
-
children: [
|
|
24
|
-
n && /* @__PURE__ */ c("span", { className: "link__label", children: n }),
|
|
25
|
-
e
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
export {
|
|
32
|
-
j as L
|
|
33
|
-
};
|