@ebrains/react 0.9.2-beta → 0.9.3-beta
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/analytics-44b1416b.esm.js +55 -0
- package/arrow-diagonal-black-8f0494c3.esm.js +3 -0
- package/arrow-right-9322ba8a.esm.js +5 -0
- package/bluesky-cc5edd2d.esm.js +14 -0
- package/bookmark-c200037c.esm.js +16 -0
- package/chevron-down-6144c823.esm.js +12 -0
- package/chevron-left-ca6c66e1.esm.js +11 -0
- package/chevron-right-b88ed2d4.esm.js +5 -0
- package/chevron-up-c66bd477.esm.js +12 -0
- package/close-87fc0d63.esm.js +5 -0
- package/color-2554aad6.esm.js +122 -0
- package/color-primary-palette_6.entry.esm.js +778 -0
- package/components-section.entry.esm.js +165 -0
- package/copy-03b72cb6.esm.js +5 -0
- package/correct-use-of-colors.entry.esm.js +243 -0
- package/docs-palettes.entry.esm.js +29 -0
- package/docs-tokens.entry.esm.js +45 -0
- package/eds-accordion.entry.esm.js +132 -0
- package/eds-alert.entry.esm.js +112 -0
- package/eds-app-root.entry.esm.js +53 -0
- package/eds-avatar_27.entry.esm.js +332 -0
- package/eds-card-desc_2.entry.esm.js +86 -0
- package/eds-card-generic.entry.esm.js +114 -0
- package/eds-card-project.entry.esm.js +93 -0
- package/eds-card-section.entry.esm.js +56 -0
- package/eds-card-tags.entry.esm.js +27 -0
- package/eds-card-tool.entry.esm.js +105 -0
- package/eds-card-wrapper.entry.esm.js +39 -0
- package/eds-code-block.entry.esm.js +2290 -0
- package/eds-cookies-preference.entry.esm.js +47 -0
- package/eds-feedback.entry.esm.js +82 -0
- package/eds-frame.entry.esm.js +112 -0
- package/eds-icon-arrow-diagonal.entry.esm.js +21 -0
- package/eds-icon-arrow-right.entry.esm.js +21 -0
- package/eds-icon-bluesky.entry.esm.js +21 -0
- package/eds-icon-bookmark.entry.esm.js +21 -0
- package/eds-icon-chevron-down.entry.esm.js +21 -0
- package/eds-icon-chevron-left.entry.esm.js +21 -0
- package/eds-icon-chevron-right.entry.esm.js +21 -0
- package/eds-icon-chevron-up.entry.esm.js +21 -0
- package/eds-icon-close.entry.esm.js +21 -0
- package/eds-icon-copy.entry.esm.js +21 -0
- package/eds-icon-eu.entry.esm.js +21 -0
- package/eds-icon-external.entry.esm.js +21 -0
- package/eds-icon-facebook.entry.esm.js +21 -0
- package/eds-icon-gitlab.entry.esm.js +21 -0
- package/eds-icon-linkedin.entry.esm.js +21 -0
- package/eds-icon-loader.entry.esm.js +21 -0
- package/eds-icon-mastodon.entry.esm.js +21 -0
- package/eds-icon-menu.entry.esm.js +21 -0
- package/eds-icon-minus.entry.esm.js +21 -0
- package/eds-icon-more.entry.esm.js +21 -0
- package/eds-icon-paper.entry.esm.js +21 -0
- package/eds-icon-plus.entry.esm.js +21 -0
- package/eds-icon-portal.entry.esm.js +21 -0
- package/eds-icon-private.entry.esm.js +21 -0
- package/eds-icon-public.entry.esm.js +21 -0
- package/eds-icon-search.entry.esm.js +21 -0
- package/eds-icon-star.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +21 -0
- package/eds-icon-thumbs-down.entry.esm.js +21 -0
- package/eds-icon-thumbs-up.entry.esm.js +21 -0
- package/eds-icon-tutorial.entry.esm.js +21 -0
- package/eds-icon-twitter.entry.esm.js +21 -0
- package/eds-icon-unknown.entry.esm.js +21 -0
- package/eds-icon-updown.entry.esm.js +21 -0
- package/eds-icon-user.entry.esm.js +21 -0
- package/eds-icon-youtube.entry.esm.js +21 -0
- package/eds-login_2.entry.esm.js +1828 -0
- package/eds-matomo-notice.entry.esm.js +162 -0
- package/eds-pagination_2.entry.esm.js +493 -0
- package/eds-progress-bar.entry.esm.js +41 -0
- package/eds-rating.entry.esm.js +79 -0
- package/eds-section-core_2.entry.esm.js +69 -0
- package/eds-spinner.entry.esm.js +67 -0
- package/eds-switch.entry.esm.js +58 -0
- package/eds-tabs.entry.esm.js +143 -0
- package/eds-timeline.entry.esm.js +117 -0
- package/eds-toast-manager.entry.esm.js +62 -0
- package/eds-toast.entry.esm.js +92 -0
- package/eds-tooltip.entry.esm.js +125 -0
- package/eds-trl.entry.esm.js +68 -0
- package/eu-9ddde93a.esm.js +30 -0
- package/facebook-9cb5c17f.esm.js +14 -0
- package/incorrect-use-of-colors.entry.esm.js +71 -0
- package/index-39c58238.esm.js +58 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +4 -0
- package/index.esm2.js +4833 -0
- package/linkedin-e8650abb.esm.js +28 -0
- package/loader-c9628637.esm.js +30 -0
- package/logo-color-7f1fd803.esm.js +115 -0
- package/logo-color-margins-ff8ce71b.esm.js +118 -0
- package/logo-space.entry.esm.js +48 -0
- package/logo-variations-horizontal_2.entry.esm.js +123 -0
- package/logo-variations-tabs.entry.esm.js +29 -0
- package/logo-white-no-bg-f382f86f.esm.js +1021 -0
- package/logo-wrong-usage.entry.esm.js +101 -0
- package/mastodon-3703ec61.esm.js +14 -0
- package/menu-340ea948.esm.js +11 -0
- package/minus-b30a7c71.esm.js +11 -0
- package/mono-53f70232.esm.js +11 -0
- package/more-4449d549.esm.js +13 -0
- package/package.json +6 -2
- package/paper-8e74ea31.esm.js +15 -0
- package/plus-89c07be2.esm.js +12 -0
- package/portal-d6c8ce56.esm.js +18 -0
- package/private-1c25ff8e.esm.js +25 -0
- package/public-d4d8c585.esm.js +16 -0
- package/search-fbcd79c2.esm.js +12 -0
- package/sharedUtils-a550989c.esm.js +17 -0
- package/src/components.d.ts +40 -0
- package/src/generated/components.d.ts +38 -0
- package/src/generated/react-component-lib/attachProps.d.ts +16 -0
- package/src/generated/react-component-lib/case.d.ts +2 -0
- package/src/generated/react-component-lib/createComponent.d.ts +10 -0
- package/src/generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/src/generated/react-component-lib/dev.d.ts +2 -0
- package/src/generated/react-component-lib/interfaces.d.ts +29 -0
- package/src/generated/react-component-lib/utils/attachProps.d.ts +16 -0
- package/src/generated/react-component-lib/utils/case.d.ts +2 -0
- package/src/generated/react-component-lib/utils/dev.d.ts +2 -0
- package/src/generated/react-component-lib/utils/index.d.ts +10 -0
- package/src/react-component-lib/attachProps.d.ts +16 -0
- package/src/react-component-lib/case.d.ts +2 -0
- package/src/react-component-lib/createComponent.d.ts +10 -0
- package/src/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/src/react-component-lib/dev.d.ts +2 -0
- package/src/react-component-lib/interfaces.d.ts +29 -0
- package/src/react-component-lib/utils/attachProps.d.ts +16 -0
- package/src/react-component-lib/utils/case.d.ts +2 -0
- package/src/react-component-lib/utils/index.d.ts +10 -0
- package/star-0da9b5e9.esm.js +5 -0
- package/success-443809da.esm.js +18 -0
- package/svg-repository.entry.esm.js +337 -0
- package/thumbs-down-a18fd049.esm.js +5 -0
- package/thumbs-up-c19a71bc.esm.js +6 -0
- package/toastManager-d9eee791.esm.js +34 -0
- package/token-list_3.entry.esm.js +385 -0
- package/token-ratios.entry.esm.js +49 -0
- package/token-typography.entry.esm.js +267 -0
- package/tutotial-150ee1fd.esm.js +27 -0
- package/twitter-ac21b505.esm.js +14 -0
- package/unknown-ed01a24c.esm.js +22 -0
- package/up-and-down-d747abee.esm.js +12 -0
- package/user-71ebdc15.esm.js +16 -0
- package/youtube-efbfbdc4.esm.js +14 -0
- package/.babelrc +0 -12
- package/project.json +0 -10
- package/rollup.config.js +0 -43
- package/src/components.ts +0 -49
- package/src/generated/components.ts +0 -47
- package/src/generated/react-component-lib/attachProps.ts +0 -125
- package/src/generated/react-component-lib/case.ts +0 -7
- package/src/generated/react-component-lib/createComponent.tsx +0 -106
- package/src/generated/react-component-lib/createOverlayComponent.tsx +0 -142
- package/src/generated/react-component-lib/dev.ts +0 -14
- package/src/generated/react-component-lib/index.tsx +0 -50
- package/src/generated/react-component-lib/interfaces.ts +0 -34
- package/src/generated/react-component-lib/utils/attachProps.ts +0 -125
- package/src/generated/react-component-lib/utils/case.ts +0 -7
- package/src/generated/react-component-lib/utils/dev.ts +0 -14
- package/src/generated/react-component-lib/utils/index.tsx +0 -50
- package/src/react-component-lib/attachProps.ts +0 -125
- package/src/react-component-lib/case.ts +0 -7
- package/src/react-component-lib/createComponent.tsx +0 -106
- package/src/react-component-lib/createOverlayComponent.tsx +0 -142
- package/src/react-component-lib/dev.ts +0 -14
- package/src/react-component-lib/index.tsx +0 -50
- package/src/react-component-lib/interfaces.ts +0 -34
- package/src/react-component-lib/utils/attachProps.ts +0 -125
- package/src/react-component-lib/utils/case.ts +0 -7
- package/src/react-component-lib/utils/index.tsx +0 -50
- package/tsconfig.json +0 -17
- package/tsconfig.lib.json +0 -23
- /package/src/generated/react-component-lib/{index.ts → index.d.ts} +0 -0
- /package/src/{index.ts → index.d.ts} +0 -0
- /package/src/react-component-lib/{index.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface EventEmitter<T = any> {
|
|
2
|
+
emit: (data?: T) => CustomEvent<T>;
|
|
3
|
+
}
|
|
4
|
+
export interface StyleReactProps {
|
|
5
|
+
class?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface OverlayEventDetail<T = any> {
|
|
12
|
+
data?: T;
|
|
13
|
+
role?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface OverlayInterface {
|
|
16
|
+
el: HTMLElement;
|
|
17
|
+
animated: boolean;
|
|
18
|
+
keyboardClose: boolean;
|
|
19
|
+
overlayIndex: number;
|
|
20
|
+
presented: boolean;
|
|
21
|
+
enterAnimation?: any;
|
|
22
|
+
leaveAnimation?: any;
|
|
23
|
+
didPresent: EventEmitter<void>;
|
|
24
|
+
willPresent: EventEmitter<void>;
|
|
25
|
+
willDismiss: EventEmitter<OverlayEventDetail>;
|
|
26
|
+
didDismiss: EventEmitter<OverlayEventDetail>;
|
|
27
|
+
present(): Promise<void>;
|
|
28
|
+
dismiss(data?: any, role?: string): Promise<boolean>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
|
|
2
|
+
export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a React event name to a browser event name.
|
|
5
|
+
*/
|
|
6
|
+
export declare const transformReactEventName: (eventNameSuffix: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if an event is supported in the current execution environment.
|
|
9
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
10
|
+
*/
|
|
11
|
+
export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
|
|
12
|
+
export declare const syncEvent: (node: Element & {
|
|
13
|
+
__events?: {
|
|
14
|
+
[key: string]: ((e: Event) => any) | undefined;
|
|
15
|
+
};
|
|
16
|
+
}, eventName: string, newEventHandler?: (e: Event) => any) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleReactProps } from '../interfaces';
|
|
3
|
+
export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
|
|
4
|
+
export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
|
|
5
|
+
export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
|
|
6
|
+
export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
|
|
7
|
+
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
8
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
9
|
+
export * from './attachProps';
|
|
10
|
+
export * from './case';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const star = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
|
|
3
|
+
</svg>`;
|
|
4
|
+
|
|
5
|
+
export { star as s };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const success = `<svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill-rule="evenodd"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
d="M10 2C5.57714 2 2 5.57714 2 10C2 14.4229 5.57714 18 10 18C14.4229 18 18 14.4229 18 10C18 5.57714 14.4229 2 10 2Z"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
stroke-width="2"
|
|
14
|
+
/>
|
|
15
|
+
<path d="M6 10.5L8.5 13L14 7.5" stroke="currentColor" stroke-width="2" />
|
|
16
|
+
</svg>`;
|
|
17
|
+
|
|
18
|
+
export { success as s };
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
+
import { e as euSvg } from './eu-9ddde93a.esm.js';
|
|
3
|
+
import { h as hLogoColor } from './logo-color-7f1fd803.esm.js';
|
|
4
|
+
import { h as hLogoBlack, a as hLogoColorWhite, b as hLogoWhite, c as hLogoWhiteNoBg, v as vLogoColor, d as vLogoBlack, e as vLogoColorWhite, f as vLogoWhite, g as vLogoWhiteNoBg } from './logo-white-no-bg-f382f86f.esm.js';
|
|
5
|
+
import { v as vLogoMargins } from './logo-color-margins-ff8ce71b.esm.js';
|
|
6
|
+
import { g as gitlabBlack } from './mono-53f70232.esm.js';
|
|
7
|
+
import { c as chevronUp } from './chevron-up-c66bd477.esm.js';
|
|
8
|
+
import { c as chevronDown } from './chevron-down-6144c823.esm.js';
|
|
9
|
+
import { c as chevronRight } from './chevron-right-b88ed2d4.esm.js';
|
|
10
|
+
import { c as chevronLeft } from './chevron-left-ca6c66e1.esm.js';
|
|
11
|
+
import { a as arrowDiagonal } from './arrow-diagonal-black-8f0494c3.esm.js';
|
|
12
|
+
import { a as arrowRight } from './arrow-right-9322ba8a.esm.js';
|
|
13
|
+
import { t as twitter } from './twitter-ac21b505.esm.js';
|
|
14
|
+
import { l as linkedin } from './linkedin-e8650abb.esm.js';
|
|
15
|
+
import { f as facebook } from './facebook-9cb5c17f.esm.js';
|
|
16
|
+
import { y as youtube } from './youtube-efbfbdc4.esm.js';
|
|
17
|
+
import { m as mastodon } from './mastodon-3703ec61.esm.js';
|
|
18
|
+
import { b as bluesky } from './bluesky-cc5edd2d.esm.js';
|
|
19
|
+
import { s as search } from './search-fbcd79c2.esm.js';
|
|
20
|
+
import { l as loader } from './loader-c9628637.esm.js';
|
|
21
|
+
import { s as success } from './success-443809da.esm.js';
|
|
22
|
+
import { c as close } from './close-87fc0d63.esm.js';
|
|
23
|
+
import { m as menu } from './menu-340ea948.esm.js';
|
|
24
|
+
import { m as more } from './more-4449d549.esm.js';
|
|
25
|
+
import { u as user } from './user-71ebdc15.esm.js';
|
|
26
|
+
import { c as copy } from './copy-03b72cb6.esm.js';
|
|
27
|
+
import { u as unknown } from './unknown-ed01a24c.esm.js';
|
|
28
|
+
import { t as thumbsUp } from './thumbs-up-c19a71bc.esm.js';
|
|
29
|
+
import { t as thumbsDown } from './thumbs-down-a18fd049.esm.js';
|
|
30
|
+
import { s as star } from './star-0da9b5e9.esm.js';
|
|
31
|
+
import { b as bookmark } from './bookmark-c200037c.esm.js';
|
|
32
|
+
import { m as minus } from './minus-b30a7c71.esm.js';
|
|
33
|
+
import { p as paper } from './paper-8e74ea31.esm.js';
|
|
34
|
+
import { p as plus } from './plus-89c07be2.esm.js';
|
|
35
|
+
import { p as portal } from './portal-d6c8ce56.esm.js';
|
|
36
|
+
import { p as privat } from './private-1c25ff8e.esm.js';
|
|
37
|
+
import { p as pub } from './public-d4d8c585.esm.js';
|
|
38
|
+
import { t as tutorial } from './tutotial-150ee1fd.esm.js';
|
|
39
|
+
import { u as upDonw } from './up-and-down-d747abee.esm.js';
|
|
40
|
+
import 'react';
|
|
41
|
+
import 'react/jsx-runtime';
|
|
42
|
+
import 'react-dom';
|
|
43
|
+
|
|
44
|
+
const color = ` <svg width="20" height="20" viewBox="0 0 36 36">
|
|
45
|
+
<path fill="#e24329" d="M2 14l9.38 9v-9l-4-12.28c-.205-.632-1.176-.632-1.38 0z"></path>
|
|
46
|
+
<path fill="#e24329" d="M34 14l-9.38 9v-9l4-12.28c.205-.632 1.176-.632 1.38 0z"></path>
|
|
47
|
+
<path fill="#e24329" d="M18,34.38 3,14 33,14 Z"></path>
|
|
48
|
+
<path fill="#fc6d26" d="M18,34.38 11.38,14 2,14 6,25Z"></path>
|
|
49
|
+
<path fill="#fc6d26" d="M18,34.38 24.62,14 34,14 30,25Z"></path>
|
|
50
|
+
<path fill="#fca326" d="M2 14L.1 20.16c-.18.565 0 1.2.5 1.56l17.42 12.66z"></path>
|
|
51
|
+
<path fill="#fca326" d="M34 14l1.9 6.16c.18.565 0 1.2-.5 1.56L18 34.38z"></path>
|
|
52
|
+
</svg>`;
|
|
53
|
+
const arrowExternal = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5858 3H17V9.41421L14.5 6.91421L8.70712 12.7071L7.29291 11.2929L13.0858 5.5L10.5858 3Z" fill="currentColor"></path><path d="M8 4H5C3.89543 4 3 4.89543 3 6V15C3 16.1046 3.89543 17 5 17H14C15.1046 17 16 16.1046 16 15V12H14V15H5V6H8V4Z" fill="currentColor"></path></svg>`;
|
|
54
|
+
const error = `<svg
|
|
55
|
+
width="20"
|
|
56
|
+
height="20"
|
|
57
|
+
viewBox="0 0 20 20"
|
|
58
|
+
fill="none"
|
|
59
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
+
>
|
|
61
|
+
<path
|
|
62
|
+
fill-rule="evenodd"
|
|
63
|
+
clip-rule="evenodd"
|
|
64
|
+
d="M10 2C5.57714 2 2 5.57714 2 10C2 14.4229 5.57714 18 10 18C14.4229 18 18 14.4229 18 10C18 5.57714 14.4229 2 10 2Z"
|
|
65
|
+
stroke="currentColor"
|
|
66
|
+
stroke-width="2"
|
|
67
|
+
/>
|
|
68
|
+
<path
|
|
69
|
+
d="M7 7L10 10M13 13L10 10M10 10L13 7M10 10L7 13"
|
|
70
|
+
stroke="currentColor"
|
|
71
|
+
stroke-width="1.5"
|
|
72
|
+
/>
|
|
73
|
+
</svg>`;
|
|
74
|
+
const completed = `<svg
|
|
75
|
+
width="20"
|
|
76
|
+
height="20"
|
|
77
|
+
viewBox="0 0 20 20"
|
|
78
|
+
fill="none"
|
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
+
>
|
|
81
|
+
<circle
|
|
82
|
+
cx="10.0001"
|
|
83
|
+
cy="10.0001"
|
|
84
|
+
r="9.00007"
|
|
85
|
+
fill="white"
|
|
86
|
+
stroke="currentColor"
|
|
87
|
+
stroke-width="2"
|
|
88
|
+
/>
|
|
89
|
+
<path
|
|
90
|
+
d="M6 9.33303L8.9474 12.6664L14.0001 7.33301"
|
|
91
|
+
stroke="currentColor"
|
|
92
|
+
stroke-width="2.00002"
|
|
93
|
+
/>
|
|
94
|
+
</svg>`;
|
|
95
|
+
const failed = `<svg
|
|
96
|
+
width="20"
|
|
97
|
+
height="20"
|
|
98
|
+
viewBox="0 0 20 20"
|
|
99
|
+
fill="none"
|
|
100
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
101
|
+
>
|
|
102
|
+
<circle
|
|
103
|
+
cx="10.0001"
|
|
104
|
+
cy="10.0001"
|
|
105
|
+
r="9.00007"
|
|
106
|
+
fill="white"
|
|
107
|
+
stroke="currentColor"
|
|
108
|
+
stroke-width="2"
|
|
109
|
+
/>
|
|
110
|
+
<path
|
|
111
|
+
d="M6.21053 14.0001L10 10M13.7895 6L10 10M10 10L6 6M10 10L14.0001 14.0001"
|
|
112
|
+
stroke="currentColor"
|
|
113
|
+
stroke-width="2.00002"
|
|
114
|
+
/>
|
|
115
|
+
</svg>`;
|
|
116
|
+
const warning = ` <svg
|
|
117
|
+
width="20"
|
|
118
|
+
height="20"
|
|
119
|
+
viewBox="0 0 20 20"
|
|
120
|
+
fill="none"
|
|
121
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
122
|
+
>
|
|
123
|
+
<path
|
|
124
|
+
fill-rule="evenodd"
|
|
125
|
+
clip-rule="evenodd"
|
|
126
|
+
d="M10 3C6.13 3 3 6.13 3 10C3 13.87 6.13 17 10 17C13.87 17 17 13.87 17 10C17 6.13 13.87 3 10 3Z"
|
|
127
|
+
stroke="currentColor"
|
|
128
|
+
stroke-width="2"
|
|
129
|
+
/>
|
|
130
|
+
<path d="M10 6V10.5" stroke="currentColor" stroke-width="2" />
|
|
131
|
+
<circle cx="10" cy="12.9209" r="1.40346" fill="currentColor" />
|
|
132
|
+
</svg>`;
|
|
133
|
+
const check = `<svg
|
|
134
|
+
width="20"
|
|
135
|
+
height="20"
|
|
136
|
+
viewBox="0 0 20 20"
|
|
137
|
+
fill="none"
|
|
138
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
139
|
+
>
|
|
140
|
+
<rect width="20" height="20" rx="4" fill="currentColor" />
|
|
141
|
+
<path d="M4 10L8 14L16 6" stroke="white" stroke-width="3" />
|
|
142
|
+
</svg>`;
|
|
143
|
+
const clear = ` <svg
|
|
144
|
+
width="20"
|
|
145
|
+
height="20"
|
|
146
|
+
viewBox="0 0 20 20"
|
|
147
|
+
fill="none"
|
|
148
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
149
|
+
>
|
|
150
|
+
<path
|
|
151
|
+
fill-rule="evenodd"
|
|
152
|
+
clip-rule="evenodd"
|
|
153
|
+
d="M2 10C2 5.57714 5.57714 2 10 2C14.4229 2 18 5.57714 18 10C18 14.4229 14.4229 18 10 18C5.57714 18 2 14.4229 2 10ZM6.50503 7.49497L9.01005 10L6.50503 12.505L7.49497 13.495L10 10.99L12.505 13.495L13.495 12.505L10.99 10L13.495 7.49497L12.505 6.50503L10 9.01005L7.49497 6.50503L6.50503 7.49497Z"
|
|
154
|
+
fill="currentColor"
|
|
155
|
+
/>
|
|
156
|
+
</svg>`;
|
|
157
|
+
const documentation = `<svg
|
|
158
|
+
width="20"
|
|
159
|
+
height="20"
|
|
160
|
+
viewBox="0 0 20 20"
|
|
161
|
+
fill="none"
|
|
162
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
163
|
+
>
|
|
164
|
+
<path
|
|
165
|
+
d="M12 5C10.8954 5 10 5.89543 10 7V17C10 15.8954 10.8954 15 12 15H18V5H12Z"
|
|
166
|
+
stroke="currentColor"
|
|
167
|
+
stroke-width="1.5"
|
|
168
|
+
/>
|
|
169
|
+
<path
|
|
170
|
+
d="M8 5C9.10457 5 10 5.89543 10 7V17C10 15.8954 9.10457 15 8 15H2V5H8Z"
|
|
171
|
+
stroke="currentColor"
|
|
172
|
+
stroke-width="1.5"
|
|
173
|
+
/>
|
|
174
|
+
</svg>`;
|
|
175
|
+
const download = `<svg
|
|
176
|
+
width="20"
|
|
177
|
+
height="20"
|
|
178
|
+
viewBox="0 0 20 20"
|
|
179
|
+
fill="none"
|
|
180
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
181
|
+
>
|
|
182
|
+
<path
|
|
183
|
+
d="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"
|
|
184
|
+
fill="currentColor"
|
|
185
|
+
/>
|
|
186
|
+
<path
|
|
187
|
+
d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"
|
|
188
|
+
fill="currentColor"
|
|
189
|
+
/>
|
|
190
|
+
</svg>`;
|
|
191
|
+
const filter = ` <svg
|
|
192
|
+
width="20"
|
|
193
|
+
height="20"
|
|
194
|
+
viewBox="0 0 20 20"
|
|
195
|
+
fill="none"
|
|
196
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
197
|
+
>
|
|
198
|
+
<path
|
|
199
|
+
d="M2 6.5H6M9 6.5H18M18 13.5H14M11 13.5H2"
|
|
200
|
+
stroke="currentColor"
|
|
201
|
+
stroke-width="2"
|
|
202
|
+
/>
|
|
203
|
+
<path
|
|
204
|
+
d="M10 6.5C10 7.88071 8.88071 9 7.5 9C6.11929 9 5 7.88071 5 6.5C5 5.11929 6.11929 4 7.5 4C8.88071 4 10 5.11929 10 6.5Z"
|
|
205
|
+
stroke="currentColor"
|
|
206
|
+
stroke-width="2"
|
|
207
|
+
/>
|
|
208
|
+
<path
|
|
209
|
+
d="M10 13.5C10 14.8807 11.1193 16 12.5 16C13.8807 16 15 14.8807 15 13.5C15 12.1193 13.8807 11 12.5 11C11.1193 11 10 12.1193 10 13.5Z"
|
|
210
|
+
stroke="currentColor"
|
|
211
|
+
stroke-width="2"
|
|
212
|
+
/>
|
|
213
|
+
</svg>`;
|
|
214
|
+
const group = `<svg
|
|
215
|
+
width="20"
|
|
216
|
+
height="20"
|
|
217
|
+
viewBox="0 0 20 20"
|
|
218
|
+
fill="none"
|
|
219
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
220
|
+
>
|
|
221
|
+
<path
|
|
222
|
+
fill-rule="evenodd"
|
|
223
|
+
clip-rule="evenodd"
|
|
224
|
+
d="M6.75 4C6.75 2.20507 8.20507 0.75 10 0.75C11.7949 0.75 13.25 2.20507 13.25 4C13.25 4.02739 13.2497 4.0547 13.249 4.08193C14.372 4.69978 15.3002 5.62799 15.9181 6.75102C15.9453 6.75034 15.9726 6.75 16 6.75C17.7949 6.75 19.25 8.20507 19.25 10C19.25 11.7949 17.7949 13.25 16 13.25C15.9726 13.25 15.9453 13.2497 15.9181 13.249C15.3002 14.372 14.372 15.3002 13.249 15.9181C13.2497 15.9453 13.25 15.9726 13.25 16C13.25 17.7949 11.7949 19.25 10 19.25C8.20507 19.25 6.75 17.7949 6.75 16C6.75 15.9726 6.75034 15.9453 6.75102 15.9181C5.62799 15.3002 4.69978 14.372 4.08193 13.249C4.0547 13.2497 4.02739 13.25 4 13.25C2.20507 13.25 0.75 11.7949 0.75 10C0.75 8.20507 2.20507 6.75 4 6.75C4.02739 6.75 4.0547 6.75034 4.08193 6.75102C4.69978 5.62799 5.62799 4.69978 6.75101 4.08193C6.75034 4.0547 6.75 4.02739 6.75 4ZM10 2.25C9.0335 2.25 8.25 3.0335 8.25 4C8.25 4.9665 9.0335 5.75 10 5.75C10.9665 5.75 11.75 4.9665 11.75 4C11.75 3.0335 10.9665 2.25 10 2.25ZM14.4169 12.839C13.4224 12.2833 12.75 11.2202 12.75 10C12.75 8.77982 13.4224 7.7167 14.4169 7.16096C14.0099 6.52904 13.471 5.99011 12.839 5.58309C12.2833 6.57758 11.2202 7.25 10 7.25C8.77982 7.25 7.7167 6.57759 7.16097 5.5831C6.52904 5.99011 5.99011 6.52904 5.58309 7.16097C6.57758 7.7167 7.25 8.77982 7.25 10C7.25 11.2202 6.57758 12.2833 5.58309 12.839C5.99011 13.471 6.52904 14.0099 7.16096 14.4169C7.7167 13.4224 8.77982 12.75 10 12.75C11.2202 12.75 12.2833 13.4224 12.839 14.4169C13.471 14.0099 14.0099 13.471 14.4169 12.839ZM8.25 16C8.25 15.0335 9.0335 14.25 10 14.25C10.9665 14.25 11.75 15.0335 11.75 16C11.75 16.9665 10.9665 17.75 10 17.75C9.0335 17.75 8.25 16.9665 8.25 16ZM2.25 10C2.25 10.9665 3.0335 11.75 4 11.75C4.9665 11.75 5.75 10.9665 5.75 10C5.75 9.0335 4.9665 8.25 4 8.25C3.0335 8.25 2.25 9.0335 2.25 10ZM16 11.75C15.0335 11.75 14.25 10.9665 14.25 10C14.25 9.0335 15.0335 8.25 16 8.25C16.9665 8.25 17.75 9.0335 17.75 10C17.75 10.9665 16.9665 11.75 16 11.75Z"
|
|
225
|
+
fill="currentColor"
|
|
226
|
+
/>
|
|
227
|
+
</svg>`;
|
|
228
|
+
const svgs = /*#__PURE__*/Object.freeze({
|
|
229
|
+
__proto__: null,
|
|
230
|
+
twitter: twitter,
|
|
231
|
+
linkedin: linkedin,
|
|
232
|
+
facebook: facebook,
|
|
233
|
+
youtube: youtube,
|
|
234
|
+
mastodon: mastodon,
|
|
235
|
+
bluesky: bluesky,
|
|
236
|
+
euSvg: euSvg,
|
|
237
|
+
arrowRight: arrowRight,
|
|
238
|
+
arrowDiagonal: arrowDiagonal,
|
|
239
|
+
bookmark: bookmark,
|
|
240
|
+
chevronUp: chevronUp,
|
|
241
|
+
chevronDown: chevronDown,
|
|
242
|
+
chevronRight: chevronRight,
|
|
243
|
+
chevronLeft: chevronLeft,
|
|
244
|
+
check: check,
|
|
245
|
+
clear: clear,
|
|
246
|
+
close: close,
|
|
247
|
+
completed: completed,
|
|
248
|
+
copy: copy,
|
|
249
|
+
documentation: documentation,
|
|
250
|
+
download: download,
|
|
251
|
+
error: error,
|
|
252
|
+
gitlabColor: color,
|
|
253
|
+
gitlabBlack: gitlabBlack,
|
|
254
|
+
loader: loader,
|
|
255
|
+
hLogoColor: hLogoColor,
|
|
256
|
+
hLogoBlack: hLogoBlack,
|
|
257
|
+
hLogoColorWhite: hLogoColorWhite,
|
|
258
|
+
hLogoWhite: hLogoWhite,
|
|
259
|
+
hLogoWhiteNoBg: hLogoWhiteNoBg,
|
|
260
|
+
vLogoColor: vLogoColor,
|
|
261
|
+
vLogoBlack: vLogoBlack,
|
|
262
|
+
vLogoColorWhite: vLogoColorWhite,
|
|
263
|
+
vLogoWhite: vLogoWhite,
|
|
264
|
+
vLogoWhiteNoBg: vLogoWhiteNoBg,
|
|
265
|
+
vLogoMargins: vLogoMargins,
|
|
266
|
+
menu: menu,
|
|
267
|
+
minus: minus,
|
|
268
|
+
more: more,
|
|
269
|
+
failed: failed,
|
|
270
|
+
filter: filter,
|
|
271
|
+
group: group,
|
|
272
|
+
plus: plus,
|
|
273
|
+
paper: paper,
|
|
274
|
+
privat: privat,
|
|
275
|
+
pub: pub,
|
|
276
|
+
portal: portal,
|
|
277
|
+
user: user,
|
|
278
|
+
upDonw: upDonw,
|
|
279
|
+
search: search,
|
|
280
|
+
success: success,
|
|
281
|
+
tutorial: tutorial,
|
|
282
|
+
warning: warning,
|
|
283
|
+
unknown: unknown,
|
|
284
|
+
thumbsUp: thumbsUp,
|
|
285
|
+
thumbsDown: thumbsDown,
|
|
286
|
+
star: star,
|
|
287
|
+
external: arrowExternal
|
|
288
|
+
});
|
|
289
|
+
const svgRepositoryCss = ":host,.full-width{display:block;width:100%}";
|
|
290
|
+
const SvgRepositoryStyle0 = svgRepositoryCss;
|
|
291
|
+
const SvgRepository = class {
|
|
292
|
+
constructor(hostRef) {
|
|
293
|
+
registerInstance(this, hostRef);
|
|
294
|
+
}
|
|
295
|
+
// Convert SVG data to a format usable by `eds-table`
|
|
296
|
+
getSvgData() {
|
|
297
|
+
return Object.entries(svgs).filter(([name]) => !name.toLowerCase().includes('logo') && !name.toLowerCase().includes('eu')) // Exclude names containing "logo" or "eu"
|
|
298
|
+
.map(([name, svgContent]) => ({
|
|
299
|
+
name,
|
|
300
|
+
icon: svgContent // Pass SVG content as innerHTML
|
|
301
|
+
}));
|
|
302
|
+
}
|
|
303
|
+
get hostWidth() {
|
|
304
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
305
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
306
|
+
return containerWidth;
|
|
307
|
+
}
|
|
308
|
+
render() {
|
|
309
|
+
const svgData = this.getSvgData();
|
|
310
|
+
// Define table configuration
|
|
311
|
+
const tableConfig = {
|
|
312
|
+
icon: {
|
|
313
|
+
format: 'svg'
|
|
314
|
+
},
|
|
315
|
+
name: {
|
|
316
|
+
format: 'bold'
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
return h("div", {
|
|
320
|
+
key: '337ffab9c7167da8c4e7300297faf0e7dd5886e0',
|
|
321
|
+
class: "full-width"
|
|
322
|
+
}, h("eds-table", {
|
|
323
|
+
key: '686e28e32060b5b4f72769744569460555466bb9',
|
|
324
|
+
"table-data": JSON.stringify(svgData),
|
|
325
|
+
config: JSON.stringify(tableConfig),
|
|
326
|
+
"rows-per-page": 10,
|
|
327
|
+
"search-enabled": true,
|
|
328
|
+
"pagination-enabled": true
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
get hostEl() {
|
|
332
|
+
return getElement(this);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
SvgRepository.style = SvgRepositoryStyle0;
|
|
336
|
+
|
|
337
|
+
export { SvgRepository as svg_repository };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const thumbsDown = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-hand-thumbs-down-fill" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M6.956 14.534c.065.936.952 1.659 1.908 1.42l.261-.065a1.38 1.38 0 0 0 1.012-.965c.22-.816.533-2.512.062-4.51q.205.03.443.051c.713.065 1.669.071 2.516-.211.518-.173.994-.68 1.2-1.272a1.9 1.9 0 0 0-.234-1.734c.058-.118.103-.242.138-.362.077-.27.113-.568.113-.856 0-.29-.036-.586-.113-.857a2 2 0 0 0-.16-.403c.169-.387.107-.82-.003-1.149a3.2 3.2 0 0 0-.488-.9c.054-.153.076-.313.076-.465a1.86 1.86 0 0 0-.253-.912C13.1.757 12.437.28 11.5.28H8c-.605 0-1.07.08-1.466.217a4.8 4.8 0 0 0-.97.485l-.048.029c-.504.308-.999.61-2.068.723C2.682 1.815 2 2.434 2 3.279v4c0 .851.685 1.433 1.357 1.616.849.232 1.574.787 2.132 1.41.56.626.914 1.28 1.039 1.638.199.575.356 1.54.428 2.591"/>
|
|
3
|
+
</svg>`;
|
|
4
|
+
|
|
5
|
+
export { thumbsDown as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const thumbsUp = `<svg xmlns="http://www.w3.org/2000/svg" width="20"
|
|
2
|
+
height="20" fill="currentColor" class="bi bi-hand-thumbs-up-fill" viewBox="0 0 16 16">
|
|
3
|
+
<path d="M6.956 1.745C7.021.81 7.908.087 8.864.325l.261.066c.463.116.874.456 1.012.965.22.816.533 2.511.062 4.51a10 10 0 0 1 .443-.051c.713-.065 1.669-.072 2.516.21.518.173.994.681 1.2 1.273.184.532.16 1.162-.234 1.733q.086.18.138.363c.077.27.113.567.113.856s-.036.586-.113.856c-.039.135-.09.273-.16.404.169.387.107.819-.003 1.148a3.2 3.2 0 0 1-.488.901c.054.152.076.312.076.465 0 .305-.089.625-.253.912C13.1 15.522 12.437 16 11.5 16H8c-.605 0-1.07-.081-1.466-.218a4.8 4.8 0 0 1-.97-.484l-.048-.03c-.504-.307-.999-.609-2.068-.722C2.682 14.464 2 13.846 2 13V9c0-.85.685-1.432 1.357-1.615.849-.232 1.574-.787 2.132-1.41.56-.627.914-1.28 1.039-1.639.199-.575.356-1.539.428-2.59z"/>
|
|
4
|
+
</svg>`;
|
|
5
|
+
|
|
6
|
+
export { thumbsUp as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
class ToastManager {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.toastManagerElement = null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Initialize the ToastManager with a reference to the `eds-toast-manager` component.
|
|
7
|
+
*/
|
|
8
|
+
init(toastManagerElement) {
|
|
9
|
+
this.toastManagerElement = toastManagerElement;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Display a toast.
|
|
13
|
+
* @param message - The message to display.
|
|
14
|
+
* @param intent - The type of the toast ('success', 'error', 'warning', 'default').
|
|
15
|
+
*/
|
|
16
|
+
show(message, intent = 'default') {
|
|
17
|
+
if (!this.toastManagerElement) {
|
|
18
|
+
// eslint-disable-next-line
|
|
19
|
+
console.error('ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.');
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const event = new CustomEvent('show-toast', {
|
|
23
|
+
detail: {
|
|
24
|
+
message,
|
|
25
|
+
intent
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
this.toastManagerElement.dispatchEvent(event);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// Export a singleton instance
|
|
32
|
+
const toast = new ToastManager();
|
|
33
|
+
|
|
34
|
+
export { toast as t };
|