@ilo-org/react 0.16.4 → 0.17.1
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/components/Breadcrumb/Breadcrumb.js +171 -19
- package/lib/cjs/components/ContextMenu/ContextMenu.js +4 -4
- package/lib/cjs/components/ContextMenu/index.js +1 -1
- package/lib/cjs/components/SocialMedia/SocialMedia.js +3 -2
- package/lib/cjs/components/SocialMedia/index.js +4 -3
- package/lib/esm/components/Breadcrumb/Breadcrumb.js +173 -21
- package/lib/esm/components/ContextMenu/ContextMenu.js +4 -4
- package/lib/esm/components/ContextMenu/index.js +1 -1
- package/lib/esm/components/SocialMedia/SocialMedia.js +3 -2
- package/lib/esm/components/SocialMedia/index.js +4 -3
- package/lib/styles/components/socialmedia.css +1 -1
- package/lib/styles/index.css +1 -1
- package/lib/styles/monorepo.css +1 -1
- package/lib/types/react/src/components/Breadcrumb/Breadcrumb.props.d.ts +25 -4
- package/lib/types/react/src/components/ContextMenu/ContextMenu.d.ts +2 -2
- package/lib/types/react/src/components/SocialMedia/SocialMedia.props.d.ts +4 -0
- package/lib/types/react/src/types/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
export interface BreadcrumbItemProps {
|
|
2
|
+
/**
|
|
3
|
+
* Optional additional className of the BreadcrumbLink
|
|
4
|
+
*/
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Specify the label for this link
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Should the label appear as readable text on the screen or an aria-label
|
|
12
|
+
*/
|
|
13
|
+
labelShown?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Specify the url for this link
|
|
16
|
+
*/
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
2
19
|
export interface BreadcrumbProps {
|
|
3
20
|
/**
|
|
4
|
-
*
|
|
21
|
+
* An additional classname to add to the outer most element of the component
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The accessible label to apply to the ellipsis button that appears when the Breadcrumb is collapsed
|
|
5
26
|
*/
|
|
6
|
-
|
|
27
|
+
buttonLabel: string;
|
|
7
28
|
/**
|
|
8
29
|
* Specify the links to be displayed in the Breadcrumb
|
|
9
30
|
*/
|
|
10
|
-
links:
|
|
31
|
+
links: BreadcrumbItemProps[];
|
|
11
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ContextMenuProps } from "./ContextMenu.props";
|
|
3
|
-
declare const ContextMenu:
|
|
3
|
+
declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLOListElement>>;
|
|
4
4
|
export default ContextMenu;
|
|
@@ -23,7 +23,7 @@ export type NotificationTypes = "error" | "info" | "success" | "warning";
|
|
|
23
23
|
export type PositionTypes = "top" | "bottom" | "left" | "right";
|
|
24
24
|
export type SizeTypes = "small" | "medium" | "large";
|
|
25
25
|
export type TagTypes = "anchor" | "display" | "button";
|
|
26
|
-
export type SocialTypes = "facebook" | "
|
|
26
|
+
export type SocialTypes = "facebook" | "x" | "instagram" | "linkedin" | "youtube" | "tiktok" | "flickr";
|
|
27
27
|
export type CardColor = "turquoise" | "green" | "yellow" | "blue";
|
|
28
28
|
export type CardSize = "wide" | "standard" | "narrow" | "fluid";
|
|
29
29
|
export type CardCornerType = boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "React components for the ILO's Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui_patterns",
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
"react-transition-group": "^4.4.1",
|
|
100
100
|
"video.js": "^7.21.2",
|
|
101
101
|
"videojs-youtube": "^3.0.1",
|
|
102
|
-
"@ilo-org/brand-assets": "0.5.
|
|
102
|
+
"@ilo-org/brand-assets": "0.5.2",
|
|
103
103
|
"@ilo-org/fonts": "0.2.2",
|
|
104
|
-
"@ilo-org/icons-react": "0.1.
|
|
105
|
-
"@ilo-org/styles": "1.0.
|
|
104
|
+
"@ilo-org/icons-react": "0.1.2",
|
|
105
|
+
"@ilo-org/styles": "1.0.6",
|
|
106
106
|
"@ilo-org/themes": "0.9.0",
|
|
107
107
|
"@ilo-org/utils": "0.1.1"
|
|
108
108
|
},
|