@tedi-design-system/react 15.0.0-rc.4 → 15.0.0-rc.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/bundle-stats.html +1 -1
- package/community.cjs.js +1 -1
- package/community.es.js +213 -215
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/external/react-is/index.es.js +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/src/community/components/button-content/button-content.cjs.js +1 -1
- package/src/community/components/button-content/button-content.d.ts +1 -1
- package/src/community/components/button-content/button-content.es.js +39 -33
- package/src/community/components/form/select/select.cjs.js +1 -1
- package/src/community/components/form/select/select.es.js +30 -30
- package/src/community/components/form/text-editor/components/style-button.cjs.js +1 -1
- package/src/community/components/form/text-editor/components/style-button.es.js +2 -2
- package/src/community/components/form/toggle/toggle.cjs.js +1 -1
- package/src/community/components/form/toggle/toggle.es.js +4 -4
- package/src/community/components/layout/breadcrumbs/crumb/crumb.cjs.js +1 -1
- package/src/community/components/layout/breadcrumbs/crumb/crumb.es.js +7 -7
- package/src/community/components/layout/footer/footer.cjs.js +1 -1
- package/src/community/components/layout/footer/footer.d.ts +1 -1
- package/src/community/components/layout/footer/footer.es.js +20 -20
- package/src/community/components/layout/header/components/header-notification/header-notification.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-notification/header-notification.es.js +4 -4
- package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/community/components/layout/sidenav/sidenav.d.ts +1 -1
- package/src/community/components/layout/sidenav/sidenav.es.js +39 -34
- package/src/community/components/placeholder/placeholder.cjs.js +1 -1
- package/src/community/components/placeholder/placeholder.d.ts +1 -1
- package/src/community/components/placeholder/placeholder.es.js +20 -19
- package/src/community/components/stepper/stepper-nav.cjs.js +1 -1
- package/src/community/components/stepper/stepper-nav.es.js +1 -1
- package/src/community/components/table/components/helpers.cjs.js +1 -1
- package/src/community/components/table/components/helpers.es.js +1 -1
- package/src/community/components/table/components/pagination/PaginationNextButton.cjs.js +1 -1
- package/src/community/components/table/components/pagination/PaginationNextButton.es.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-item.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-item.es.js +10 -10
- package/src/community/components/table-of-contents/table-of-contents-modal.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-modal.es.js +1 -1
- package/src/community/components/toggle-open/toggle-open.d.ts +1 -1
- package/src/community/components/tooltip/tooltip-trigger.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip-trigger.es.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress-item.cjs.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress-item.es.js +4 -4
- package/src/community/index.d.ts +0 -1
- package/src/tedi/components/base/icon/icon.d.ts +1 -1
- package/src/tedi/components/base/icon/icon.module.scss.cjs.js +1 -1
- package/src/tedi/components/base/icon/icon.module.scss.es.js +1 -0
- package/src/community/components/icon/icon.cjs.js +0 -1
- package/src/community/components/icon/icon.d.ts +0 -49
- package/src/community/components/icon/icon.es.js +0 -47
- package/src/community/components/icon/icon.module.scss.cjs.js +0 -1
- package/src/community/components/icon/icon.module.scss.es.js +0 -9
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("../../../../external/classnames/index.cjs.js"),H=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("../../../../external/classnames/index.cjs.js"),H=require("react"),O=require("../../../tedi/components/base/icon/icon.cjs.js"),h=require("../../../tedi/components/loaders/spinner/spinner.cjs.js"),R=require("../../../tedi/components/misc/print/print.cjs.js"),t=require("./button-content.module.scss.cjs.js"),q=H.forwardRef(({children:i,as:C,text:$,className:f,visualType:v="primary",color:y="default",size:b,icon:s,iconLeft:r,iconRight:u,underline:B=!1,isHovered:I,isActive:M,isLoading:n=!1,noStyle:m,renderWrapperElement:g,fullWidth:p,onClick:_,...x},E)=>{const P=C||"button",N=s||r||u,w=m?l.default(t.default["btn--no-style"],f,{[t.default["btn--full-width"]]:p}):l.default(t.default.btn,t.default[`btn--${v}`],t.default[`btn--${y}`],f,{[t.default[`btn--${b}`]]:b},{[t.default["btn--underline"]]:B},{[t.default["btn--is-hovered"]]:I},{[t.default["btn--is-active"]]:M},{[t.default["btn--is-loading"]]:n},{[t.default["btn--icon-only"]]:s},{[t.default["btn--icon"]]:N},{[t.default["btn--full-width"]]:p}),o=(d,a)=>{const c={size:16,className:l.default(t.default.btn__icon,t.default[`btn__icon--${d}`],{[t.default.btn__spinner]:n})},j=typeof a=="string"?{...c,name:a,color:"inherit"}:{...c,...a,color:"inherit",background:void 0,className:l.default(c.className,a==null?void 0:a.className)};return n?e.jsx(h.Spinner,{className:j.className}):e.jsx(O.Icon,{...j})},S=()=>e.jsxs("span",{className:t.default.btn__inner,children:[s&&o("centre",s),r&&o("left",r),e.jsx("span",{className:t.default.btn__text,children:i}),n&&!N&&e.jsx(h.Spinner,{position:"absolute",className:t.default.btn__spinner}),u&&o("right",u)]}),k=d=>{_&&!n&&_(d)};return e.jsx(R.Print,{visibility:"hide",children:e.jsx(P,{"data-name":"button-content",...x,"aria-disabled":n||x["aria-disabled"],onClick:k,ref:E,className:w,children:m?i:S()})})});q.displayName="ButtonContent";const T=q;exports.default=T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IconProps } from '../../../tedi/components/base/icon/icon';
|
|
2
3
|
import { AllowedHTMLTags, PolymorphicComponentPropWithRef } from '../../helpers/polymorphic/types';
|
|
3
4
|
import { IntentionalAny } from '../../types';
|
|
4
5
|
import { ButtonColor, ButtonType } from '../button/button';
|
|
5
|
-
import { IconProps } from '../icon/icon';
|
|
6
6
|
export type ButtonContentProps<C extends React.ElementType, P extends Record<string, IntentionalAny>, A> = PolymorphicComponentPropWithRef<AllowedHTMLTags<C, A>, {
|
|
7
7
|
/**
|
|
8
8
|
* Button children
|
|
@@ -1,60 +1,66 @@
|
|
|
1
1
|
import { jsx as s, jsxs as q } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import o from "../../../../external/classnames/index.es.js";
|
|
3
3
|
import { forwardRef as z } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Icon as A } from "../../../tedi/components/base/icon/icon.es.js";
|
|
5
|
+
import { Spinner as B } from "../../../tedi/components/loaders/spinner/spinner.es.js";
|
|
6
|
+
import { Print as D } from "../../../tedi/components/misc/print/print.es.js";
|
|
7
7
|
import t from "./button-content.module.scss.es.js";
|
|
8
|
-
const
|
|
8
|
+
const C = z(
|
|
9
9
|
({
|
|
10
|
-
children:
|
|
10
|
+
children: i,
|
|
11
11
|
as: x,
|
|
12
12
|
text: F,
|
|
13
|
-
className:
|
|
13
|
+
className: p,
|
|
14
14
|
visualType: I = "primary",
|
|
15
|
-
color:
|
|
16
|
-
size:
|
|
15
|
+
color: v = "default",
|
|
16
|
+
size: d,
|
|
17
17
|
icon: r,
|
|
18
|
-
iconLeft:
|
|
18
|
+
iconLeft: a,
|
|
19
19
|
iconRight: l,
|
|
20
|
-
underline:
|
|
21
|
-
isHovered:
|
|
20
|
+
underline: E = !1,
|
|
21
|
+
isHovered: $,
|
|
22
22
|
isActive: w,
|
|
23
23
|
isLoading: n = !1,
|
|
24
|
-
noStyle:
|
|
24
|
+
noStyle: f,
|
|
25
25
|
renderWrapperElement: G,
|
|
26
26
|
fullWidth: u,
|
|
27
27
|
onClick: _,
|
|
28
28
|
...N
|
|
29
29
|
}, M) => {
|
|
30
|
-
const P = x || "button",
|
|
30
|
+
const P = x || "button", h = r || a || l, j = f ? o(t["btn--no-style"], p, { [t["btn--full-width"]]: u }) : o(
|
|
31
31
|
t.btn,
|
|
32
32
|
t[`btn--${I}`],
|
|
33
|
-
t[`btn--${
|
|
34
|
-
|
|
35
|
-
{ [t[`btn--${
|
|
36
|
-
{ [t["btn--underline"]]:
|
|
37
|
-
{ [t["btn--is-hovered"]]:
|
|
33
|
+
t[`btn--${v}`],
|
|
34
|
+
p,
|
|
35
|
+
{ [t[`btn--${d}`]]: d },
|
|
36
|
+
{ [t["btn--underline"]]: E },
|
|
37
|
+
{ [t["btn--is-hovered"]]: $ },
|
|
38
38
|
{ [t["btn--is-active"]]: w },
|
|
39
39
|
{ [t["btn--is-loading"]]: n },
|
|
40
40
|
{ [t["btn--icon-only"]]: r },
|
|
41
|
-
{ [t["btn--icon"]]:
|
|
41
|
+
{ [t["btn--icon"]]: h },
|
|
42
42
|
{ [t["btn--full-width"]]: u }
|
|
43
|
-
), m = (
|
|
44
|
-
const
|
|
43
|
+
), m = (c, e) => {
|
|
44
|
+
const b = { size: 16, className: o(t.btn__icon, t[`btn__icon--${c}`], {
|
|
45
45
|
[t.btn__spinner]: n
|
|
46
|
-
}) },
|
|
47
|
-
|
|
46
|
+
}) }, y = typeof e == "string" ? { ...b, name: e, color: "inherit" } : {
|
|
47
|
+
...b,
|
|
48
|
+
...e,
|
|
49
|
+
color: "inherit",
|
|
50
|
+
background: void 0,
|
|
51
|
+
className: o(b.className, e == null ? void 0 : e.className)
|
|
52
|
+
};
|
|
53
|
+
return n ? /* @__PURE__ */ s(B, { className: y.className }) : /* @__PURE__ */ s(A, { ...y });
|
|
48
54
|
}, k = () => /* @__PURE__ */ q("span", { className: t.btn__inner, children: [
|
|
49
55
|
r && m("centre", r),
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ s("span", { className: t.btn__text, children:
|
|
52
|
-
n && !
|
|
56
|
+
a && m("left", a),
|
|
57
|
+
/* @__PURE__ */ s("span", { className: t.btn__text, children: i }),
|
|
58
|
+
n && !h && /* @__PURE__ */ s(B, { position: "absolute", className: t.btn__spinner }),
|
|
53
59
|
l && m("right", l)
|
|
54
|
-
] }), H = (
|
|
55
|
-
_ && !n && _(
|
|
60
|
+
] }), H = (c) => {
|
|
61
|
+
_ && !n && _(c);
|
|
56
62
|
};
|
|
57
|
-
return /* @__PURE__ */ s(
|
|
63
|
+
return /* @__PURE__ */ s(D, { visibility: "hide", children: /* @__PURE__ */ s(
|
|
58
64
|
P,
|
|
59
65
|
{
|
|
60
66
|
"data-name": "button-content",
|
|
@@ -63,13 +69,13 @@ const h = z(
|
|
|
63
69
|
onClick: H,
|
|
64
70
|
ref: M,
|
|
65
71
|
className: j,
|
|
66
|
-
children:
|
|
72
|
+
children: f ? i : k()
|
|
67
73
|
}
|
|
68
74
|
) });
|
|
69
75
|
}
|
|
70
76
|
);
|
|
71
|
-
|
|
72
|
-
const W =
|
|
77
|
+
C.displayName = "ButtonContent";
|
|
78
|
+
const W = C;
|
|
73
79
|
export {
|
|
74
80
|
W as default
|
|
75
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),n=require("../../../../../external/classnames/index.cjs.js"),b=require("react"),Se=require("../../../../../external/react-select/dist/react-select.esm.cjs.js"),Oe=require("../../../../../external/react-select/async/dist/react-select-async.esm.cjs.js"),pe=require("../../../../tedi/components/base/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),n=require("../../../../../external/classnames/index.cjs.js"),b=require("react"),Se=require("../../../../../external/react-select/dist/react-select.esm.cjs.js"),Oe=require("../../../../../external/react-select/async/dist/react-select-async.esm.cjs.js"),pe=require("../../../../tedi/components/base/icon/icon.cjs.js"),Pe=require("../../../../tedi/components/base/typography/text/text.cjs.js"),p=require("../../../../tedi/components/buttons/button/button.cjs.js"),ke=require("../../../../tedi/components/form/feedback-text/feedback-text.cjs.js"),qe=require("../../../../tedi/components/form/form-label/form-label.cjs.js"),ye=require("../../tag/tag.cjs.js"),He=require("../check/check.cjs.js"),t=require("./select.module.scss.cjs.js"),c=require("../../../../../external/react-select/dist/index-641ee5b8.esm.cjs.js"),Le=require("../../../../tedi/providers/label-provider/use-labels.cjs.js"),Be=require("../../../helpers/background-colors/background-colors.cjs.js"),Re=s=>{const x=n.default(t.default.select__control,s.className,{[t.default["select__control--focused"]]:s.isFocused});return l.jsx(c.c.Control,{...s,className:x})},we=s=>l.jsx(c.c.Input,{...s,className:n.default(s.className,t.default.select__input),isHidden:s.selectProps.inputIsHidden!==void 0?s.selectProps.inputIsHidden:s.isHidden}),Fe=s=>l.jsx(c.c.Menu,{...s,className:n.default(s.className,t.default.select__menu)}),Te=s=>l.jsx(c.c.MenuPortal,{...s,className:n.default(s.className,t.default["select__menu-portal"])}),j=b.forwardRef((s,x)=>{const{options:P,defaultOptions:k,id:d,name:q,iconName:y="arrow_drop_down",label:H,required:v,value:L,defaultValue:B,tagsDirection:C="row",onChange:h,onInputChange:R,inputValue:w,loadOptions:F,isLoading:T,isTagRemovable:V=!1,openMenuOnFocus:G=!1,openMenuOnClick:D=!0,tabSelectsValue:E=!1,disabled:$=!1,className:z,hideLabel:A=!1,helper:o,placeholder:J,invalid:K,size:m,async:Q=!1,renderOption:f,renderMessageListFooter:M,noOptionsMessage:U,loadingMessage:W,multiple:N=!1,closeMenuOnSelect:X=!N,blurInputOnSelect:I=!1,autoFocus:Y=!1,isClearable:Z=!0,isClearIndicatorVisible:ee=!1,isSearchable:S=!0,menuIsOpen:te,onMenuClose:le,onMenuOpen:ae,onBlur:se,inputIsHidden:ne,optionGroupHeadingText:ce={modifiers:"small",color:"tertiary"},optionGroupBackgroundColor:oe,cacheOptions:ie=!0,...ue}=s,O=o?(o==null?void 0:o.id)??`${d}-helper`:void 0,g=b.useRef(null),{getLabel:_}=Le.useLabels();b.useImperativeHandle(x,()=>g.current);const re=e=>{var a;h==null||h(e),!I&&g.current&&((a=g.current.inputRef)==null||a.focus())},de=()=>l.jsx(pe.Icon,{name:y,size:24,className:t.default.select__arrow,color:"inherit"}),me=e=>l.jsx(c.c.Placeholder,{...e,className:n.default(e.className,"inline-block")}),fe=b.useCallback(e=>l.jsxs("div",{className:t.default["select__menu-list-wrapper"],children:[l.jsx(c.c.MenuList,{...e,className:n.default(e.className,t.default["select__menu-list"]),children:e.children}),M&&l.jsx("div",{className:t.default["select__menu-list-footer"],children:M(e)})]}),[M]),ge=e=>{const a=n.default(t.default.select__option,{[t.default["select__option--disabled"]]:e.isDisabled},{[t.default["select__option--focused"]]:e.isFocused}),{tabIndex:i,...u}=e.innerProps;return l.jsx(c.c.Option,{...e,innerProps:{...u,role:"option","aria-selected":e.isSelected},className:a,children:f?f(e):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"sr-only",children:e.label}),l.jsx(He.Check,{id:e.data.value,label:e.label,"aria-hidden":!0,className:t.default.select__checkbox,value:e.data.value,name:e.data.value,checked:e.isSelected,onChange:(r,Ie)=>null,disabled:e.isDisabled,hover:e.isFocused})]})})},_e=e=>{const a=n.default(t.default.select__option,{[t.default["select__option--disabled"]]:e.isDisabled},{[t.default["select__option--selected"]]:e.isSelected},{[t.default["select__option--focused"]]:e.isFocused}),{tabIndex:i,...u}=e.innerProps;return l.jsx(c.c.Option,{...e,innerProps:{...u,role:"option","aria-selected":e.isSelected},className:a,children:f?f(e):e.children})},be=e=>N?ge(e):_e(e),xe=({children:e,components:{Remove:a},data:i,selectProps:u,removeProps:r,...Ie})=>l.jsxs(ye.Tag,{color:"default",type:"secondary",className:n.default(t.default["select__multi-value-item"],{[t.default["select__multi-value-item--big"]]:m!=="small"}),children:[e,V&&l.jsx(a,{data:i,selectProps:u,innerProps:r})]}),he=({data:e,innerProps:a})=>l.jsx(p.Button,{icon:{name:"clear",color:"secondary"},className:t.default["select__multi-value-clear"],visualType:"link",tabIndex:-1,...a,children:`${_("remove")} ${e.label}`}),Me=({innerProps:{ref:e,...a}})=>ee?l.jsx(p.Button,{icon:{name:"clear",color:"secondary"},visualType:"link",tabIndex:-1,ref:e,...a,children:_("clear")}):null,Ne=e=>{const a=n.default(t.default.select__group);return l.jsx(c.c.Group,{...e,className:a,children:e.children})},je=e=>{const a=n.default(t.default["select__group-heading"],Be.getBackgroundColorClass(e.data.backgroundColor||oe||"transparent")),i=e.data.text||ce;return l.jsx(c.c.GroupHeading,{...e,className:a,children:l.jsx(Pe.Text,{...i,children:e.data.label})})},ve=()=>{const e={ClearIndicator:Me,DropdownIndicator:de,IndicatorSeparator:()=>null,MenuPortal:Te,Menu:Fe,MenuList:fe,Option:be,Control:Re,Input:we,MultiValue:xe,MultiValueRemove:he,Placeholder:me,Group:Ne,GroupHeading:je},a=Q?Oe.default:Se.default,i=()=>_("select.no-options"),u=()=>_("select.loading");return l.jsx(a,{id:d,"aria-describedby":O,autoFocus:Y,ref:g,instanceId:d,className:"select__wrapper",name:q,options:P,defaultOptions:k,value:L,defaultValue:B,cacheOptions:ie,onChange:re,onInputChange:R,onBlur:se,inputValue:w,inputId:`${d}-input`,loadOptions:F,isLoading:T,noOptionsMessage:U||i,loadingMessage:W||u,classNamePrefix:"select",components:e,isDisabled:$,isSearchable:S,menuIsOpen:te,openMenuOnFocus:G,openMenuOnClick:D,tabSelectsValue:E,onMenuClose:le,onMenuOpen:ae,placeholder:J||"",isClearable:Z,backspaceRemovesValue:!0,menuShouldScrollIntoView:!0,isMulti:N,hideSelectedOptions:!1,closeMenuOnSelect:X,blurInputOnSelect:I,menuPosition:"fixed",menuPlacement:"auto",inputIsHidden:ne,required:v,theme:r=>({...r,colors:{...r.colors,primary:"#005aa3",danger:"#b50000",dangerLight:"#fceeee"}}),styles:{input:r=>({...r,gridTemplateColumns:"0fr"})}})},Ce=n.default(t.default.select,z,{[t.default["select--invalid"]]:K||(o==null?void 0:o.type)==="error"},{[t.default[`select--${m}`]]:m},{[t.default[`select--tags-${C}`]]:C},{[t.default["select--searchable"]]:S});return l.jsxs("div",{"data-name":"select",...ue,className:Ce,children:[l.jsxs("div",{className:t.default.select__inner,children:[l.jsx(qe.FormLabel,{id:`${d}-input`,label:H,required:v,hideLabel:A,size:m}),ve()]}),o&&l.jsx(ke.FeedbackText,{...o,id:O})]})});j.displayName="Select";exports.Select=j;exports.default=j;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as m, jsx as n, Fragment as Se } from "react/jsx-runtime";
|
|
2
2
|
import s from "../../../../../external/classnames/index.es.js";
|
|
3
3
|
import v, { forwardRef as Pe } from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import ye from "../../../../../external/react-select/dist/react-select.esm.es.js";
|
|
5
|
+
import xe from "../../../../../external/react-select/async/dist/react-select-async.esm.es.js";
|
|
6
|
+
import { Icon as ke } from "../../../../tedi/components/base/icon/icon.es.js";
|
|
7
|
+
import { Text as He } from "../../../../tedi/components/base/typography/text/text.es.js";
|
|
8
|
+
import { Button as y } from "../../../../tedi/components/buttons/button/button.es.js";
|
|
9
|
+
import { FeedbackText as we } from "../../../../tedi/components/form/feedback-text/feedback-text.es.js";
|
|
10
|
+
import { FormLabel as Be } from "../../../../tedi/components/form/form-label/form-label.es.js";
|
|
11
11
|
import { Tag as Fe } from "../../tag/tag.es.js";
|
|
12
12
|
import { Check as Le } from "../check/check.es.js";
|
|
13
13
|
import t from "./select.module.scss.es.js";
|
|
@@ -15,10 +15,10 @@ import { c as o } from "../../../../../external/react-select/dist/index-641ee5b8
|
|
|
15
15
|
import { useLabels as Re } from "../../../../tedi/providers/label-provider/use-labels.es.js";
|
|
16
16
|
import { getBackgroundColorClass as Ve } from "../../../helpers/background-colors/background-colors.es.js";
|
|
17
17
|
const Ge = (a) => {
|
|
18
|
-
const
|
|
18
|
+
const b = s(t.select__control, a.className, {
|
|
19
19
|
[t["select__control--focused"]]: a.isFocused
|
|
20
20
|
});
|
|
21
|
-
return /* @__PURE__ */ n(o.Control, { ...a, className:
|
|
21
|
+
return /* @__PURE__ */ n(o.Control, { ...a, className: b });
|
|
22
22
|
}, $e = (a) => /* @__PURE__ */ n(
|
|
23
23
|
o.Input,
|
|
24
24
|
{
|
|
@@ -27,10 +27,10 @@ const Ge = (a) => {
|
|
|
27
27
|
isHidden: a.selectProps.inputIsHidden !== void 0 ? a.selectProps.inputIsHidden : a.isHidden
|
|
28
28
|
}
|
|
29
29
|
), De = (a) => /* @__PURE__ */ n(o.Menu, { ...a, className: s(a.className, t.select__menu) }), Te = (a) => /* @__PURE__ */ n(o.MenuPortal, { ...a, className: s(a.className, t["select__menu-portal"]) }), Ee = Pe(
|
|
30
|
-
(a,
|
|
30
|
+
(a, b) => {
|
|
31
31
|
const {
|
|
32
|
-
options:
|
|
33
|
-
defaultOptions:
|
|
32
|
+
options: x,
|
|
33
|
+
defaultOptions: k,
|
|
34
34
|
id: u,
|
|
35
35
|
name: H,
|
|
36
36
|
iconName: w = "arrow_drop_down",
|
|
@@ -76,15 +76,15 @@ const Ge = (a) => {
|
|
|
76
76
|
optionGroupBackgroundColor: ce,
|
|
77
77
|
cacheOptions: ie = !0,
|
|
78
78
|
...re
|
|
79
|
-
} = a, P = c ? (c == null ? void 0 : c.id) ?? `${u}-helper` : void 0, f = v.useRef(null), { getLabel:
|
|
79
|
+
} = a, P = c ? (c == null ? void 0 : c.id) ?? `${u}-helper` : void 0, f = v.useRef(null), { getLabel: h } = Re();
|
|
80
80
|
v.useImperativeHandle(
|
|
81
|
-
|
|
81
|
+
b,
|
|
82
82
|
() => f.current
|
|
83
83
|
);
|
|
84
84
|
const de = (e) => {
|
|
85
85
|
var l;
|
|
86
86
|
p == null || p(e), !O && f.current && ((l = f.current.inputRef) == null || l.focus());
|
|
87
|
-
}, ue = () => /* @__PURE__ */ n(
|
|
87
|
+
}, ue = () => /* @__PURE__ */ n(ke, { name: w, size: 24, className: t.select__arrow, color: "inherit" }), me = (e) => /* @__PURE__ */ n(o.Placeholder, { ...e, className: s(e.className, "inline-block") }), ge = v.useCallback(
|
|
88
88
|
(e) => /* @__PURE__ */ m("div", { className: t["select__menu-list-wrapper"], children: [
|
|
89
89
|
/* @__PURE__ */ n(o.MenuList, { ...e, className: s(e.className, t["select__menu-list"]), children: e.children }),
|
|
90
90
|
N && /* @__PURE__ */ n("div", { className: t["select__menu-list-footer"], children: N(e) })
|
|
@@ -138,7 +138,7 @@ const Ge = (a) => {
|
|
|
138
138
|
children: _ ? _(e) : e.children
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
|
-
},
|
|
141
|
+
}, he = (e) => M ? _e(e) : fe(e), be = ({
|
|
142
142
|
children: e,
|
|
143
143
|
components: { Remove: l },
|
|
144
144
|
data: i,
|
|
@@ -159,24 +159,24 @@ const Ge = (a) => {
|
|
|
159
159
|
]
|
|
160
160
|
}
|
|
161
161
|
), pe = ({ data: e, innerProps: l }) => /* @__PURE__ */ n(
|
|
162
|
-
|
|
162
|
+
y,
|
|
163
163
|
{
|
|
164
|
-
icon: { name: "clear", color: "
|
|
164
|
+
icon: { name: "clear", color: "secondary" },
|
|
165
165
|
className: t["select__multi-value-clear"],
|
|
166
166
|
visualType: "link",
|
|
167
167
|
tabIndex: -1,
|
|
168
168
|
...l,
|
|
169
|
-
children: `${
|
|
169
|
+
children: `${h("remove")} ${e.label}`
|
|
170
170
|
}
|
|
171
171
|
), Ne = ({ innerProps: { ref: e, ...l } }) => ee ? /* @__PURE__ */ n(
|
|
172
|
-
|
|
172
|
+
y,
|
|
173
173
|
{
|
|
174
|
-
icon: { name: "clear", color: "
|
|
174
|
+
icon: { name: "clear", color: "secondary" },
|
|
175
175
|
visualType: "link",
|
|
176
176
|
tabIndex: -1,
|
|
177
177
|
ref: e,
|
|
178
178
|
...l,
|
|
179
|
-
children:
|
|
179
|
+
children: h("clear")
|
|
180
180
|
}
|
|
181
181
|
) : null, Me = (e) => {
|
|
182
182
|
const l = s(t.select__group);
|
|
@@ -186,7 +186,7 @@ const Ge = (a) => {
|
|
|
186
186
|
t["select__group-heading"],
|
|
187
187
|
Ve(e.data.backgroundColor || ce || "transparent")
|
|
188
188
|
), i = e.data.text || oe;
|
|
189
|
-
return /* @__PURE__ */ n(o.GroupHeading, { ...e, className: l, children: /* @__PURE__ */ n(
|
|
189
|
+
return /* @__PURE__ */ n(o.GroupHeading, { ...e, className: l, children: /* @__PURE__ */ n(He, { ...i, children: e.data.label }) });
|
|
190
190
|
}, Ie = () => {
|
|
191
191
|
const e = {
|
|
192
192
|
ClearIndicator: Ne,
|
|
@@ -195,15 +195,15 @@ const Ge = (a) => {
|
|
|
195
195
|
MenuPortal: Te,
|
|
196
196
|
Menu: De,
|
|
197
197
|
MenuList: ge,
|
|
198
|
-
Option:
|
|
198
|
+
Option: he,
|
|
199
199
|
Control: Ge,
|
|
200
200
|
Input: $e,
|
|
201
|
-
MultiValue:
|
|
201
|
+
MultiValue: be,
|
|
202
202
|
MultiValueRemove: pe,
|
|
203
203
|
Placeholder: me,
|
|
204
204
|
Group: Me,
|
|
205
205
|
GroupHeading: ve
|
|
206
|
-
}, l = Q ?
|
|
206
|
+
}, l = Q ? xe : ye, i = () => h("select.no-options"), r = () => h("select.loading");
|
|
207
207
|
return /* @__PURE__ */ n(
|
|
208
208
|
l,
|
|
209
209
|
{
|
|
@@ -214,8 +214,8 @@ const Ge = (a) => {
|
|
|
214
214
|
instanceId: u,
|
|
215
215
|
className: "select__wrapper",
|
|
216
216
|
name: H,
|
|
217
|
-
options:
|
|
218
|
-
defaultOptions:
|
|
217
|
+
options: x,
|
|
218
|
+
defaultOptions: k,
|
|
219
219
|
value: F,
|
|
220
220
|
defaultValue: L,
|
|
221
221
|
cacheOptions: ie,
|
|
@@ -277,10 +277,10 @@ const Ge = (a) => {
|
|
|
277
277
|
);
|
|
278
278
|
return /* @__PURE__ */ m("div", { "data-name": "select", ...re, className: Ce, children: [
|
|
279
279
|
/* @__PURE__ */ m("div", { className: t.select__inner, children: [
|
|
280
|
-
/* @__PURE__ */ n(
|
|
280
|
+
/* @__PURE__ */ n(Be, { id: `${u}-input`, label: B, required: I, hideLabel: A, size: g }),
|
|
281
281
|
Ie()
|
|
282
282
|
] }),
|
|
283
|
-
c && /* @__PURE__ */ n(
|
|
283
|
+
c && /* @__PURE__ */ n(we, { ...c, id: P })
|
|
284
284
|
] });
|
|
285
285
|
}
|
|
286
286
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../../../../../external/classnames/index.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),d=require("../../../../../../external/classnames/index.cjs.js"),y=require("../../../../../tedi/components/base/icon/icon.cjs.js"),t=require("../text-editor.module.scss.cjs.js"),o=n=>{const{active:l,style:u,label:s,onToggle:r}=n,c=d.default(t.default["style-button"],{[t.default["style-button--active"]]:l}),i=a=>{a.preventDefault(),r(u)};return e.jsx("button",{type:"button",className:c,onClick:i,children:e.jsx(y.Icon,{name:s,size:24,color:"secondary"})})};exports.StyleButton=o;exports.default=o;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import m from "../../../../../../external/classnames/index.es.js";
|
|
3
|
-
import { Icon as i } from "
|
|
3
|
+
import { Icon as i } from "../../../../../tedi/components/base/icon/icon.es.js";
|
|
4
4
|
import o from "../text-editor.module.scss.es.js";
|
|
5
5
|
const b = (e) => {
|
|
6
6
|
const { active: n, style: l, label: s, onToggle: r } = e, a = m(o["style-button"], { [o["style-button--active"]]: n });
|
|
7
7
|
return /* @__PURE__ */ t("button", { type: "button", className: a, onClick: (c) => {
|
|
8
8
|
c.preventDefault(), r(l);
|
|
9
|
-
}, children: /* @__PURE__ */ t(i, { name: s, size: 24 }) });
|
|
9
|
+
}, children: /* @__PURE__ */ t(i, { name: s, size: 24, color: "secondary" }) });
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
12
|
b as StyleButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),k=require("../../../../../external/classnames/index.cjs.js"),i=require("react"),$=require("../../../../tedi/components/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),k=require("../../../../../external/classnames/index.cjs.js"),i=require("react"),$=require("../../../../tedi/components/base/icon/icon.cjs.js"),w=require("../../../../tedi/components/loaders/spinner/spinner.cjs.js"),j=require("../../button/button.cjs.js"),e=require("./toggle.module.scss.cjs.js"),c=i.forwardRef((r,C)=>{const{ariaLabel:N,className:q,checked:n,defaultChecked:y,onChange:a,size:u=r.icon?"large":"medium",color:v="default",type:g,icon:S,disabled:f=!1,isLoading:d=!1,extraContent:m,label:_,...l}=r,[h,T]=i.useState(y||!1),o=i.useMemo(()=>a&&typeof n<"u"?n:h,[a,h,n]),M=k.default(e.default.toggle,e.default[`toggle--${u}`],e.default[`toggle--${v}`],{[e.default["toggle--active"]]:o,[e.default["toggle--disabled"]]:f,[e.default[`toggle--${g}`]]:g},q),b=()=>{if(d)return;const s=!o;typeof n>"u"&&T(s),a==null||a(s)},p={noStyle:!0,type:"button","aria-label":N,"aria-pressed":o,disabled:f,"aria-disabled":d,...l,onClick:b};return t.jsxs("div",{className:e.default["toggle-wrapper"],children:[t.jsx(j.Button,{...p,onClick:s=>{var x;(x=l==null?void 0:l.onClick)==null||x.call(l,s),b()},ref:C,"data-name":"toggle",className:M,children:t.jsx("span",{className:e.default.toggle__dot,children:d?t.jsx(w.Spinner,{size:u==="large"?16:10,className:k.default(e.default.toggle__icon,e.default.toggle__spinner)}):S?t.jsx($.Icon,{className:e.default.toggle__icon,name:o?"lock_open_right":"lock",size:16}):null})}),_&&t.jsx(j.Button,{...p,className:e.default.toggle__label,"aria-hidden":!0,tabIndex:-1,children:_}),m&&t.jsx("div",{className:e.default["toggle__extra-content"],children:m})]})});c.displayName="Toggle";exports.Toggle=c;exports.default=c;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as T, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import k from "../../../../../external/classnames/index.es.js";
|
|
3
3
|
import b, { forwardRef as $ } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Icon as j } from "../../../../tedi/components/base/icon/icon.es.js";
|
|
5
|
+
import { Spinner as B } from "../../../../tedi/components/loaders/spinner/spinner.es.js";
|
|
5
6
|
import { Button as N } from "../../button/button.es.js";
|
|
6
|
-
import { Icon as B } from "../../icon/icon.es.js";
|
|
7
7
|
import e from "./toggle.module.scss.es.js";
|
|
8
8
|
const L = $((r, C) => {
|
|
9
9
|
const {
|
|
@@ -59,12 +59,12 @@ const L = $((r, C) => {
|
|
|
59
59
|
"data-name": "toggle",
|
|
60
60
|
className: S,
|
|
61
61
|
children: /* @__PURE__ */ t("span", { className: e.toggle__dot, children: i ? /* @__PURE__ */ t(
|
|
62
|
-
|
|
62
|
+
B,
|
|
63
63
|
{
|
|
64
64
|
size: c === "large" ? 16 : 10,
|
|
65
65
|
className: k(e.toggle__icon, e.toggle__spinner)
|
|
66
66
|
}
|
|
67
|
-
) : z ? /* @__PURE__ */ t(
|
|
67
|
+
) : z ? /* @__PURE__ */ t(j, { className: e.toggle__icon, name: n ? "lock_open_right" : "lock", size: 16 }) : null })
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
f && /* @__PURE__ */ t(N, { ..._, className: e.toggle__label, "aria-hidden": !0, tabIndex: -1, children: f }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../../../../../../external/classnames/index.cjs.js"),u=require("../../../../../tedi/components/base/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../../../../../../external/classnames/index.cjs.js"),u=require("../../../../../tedi/components/base/icon/icon.cjs.js"),l=require("../../../../../tedi/components/base/typography/text/text.cjs.js"),d=require("../../../../../tedi/components/misc/print/print.cjs.js"),b=require("../../../anchor/anchor.cjs.js"),i=require("../breadcrumbs.module.scss.cjs.js"),m=o=>{const{isLast:r=!1,children:s,singleCrumb:t,...n}=o,a=c.default(i.default.breadcrumbs__item);return e.jsxs("li",{"data-name":"crumb",className:a,children:[e.jsx(d.Print,{visibility:"show",children:r?e.jsx(l.Text,{color:"secondary",children:s}):e.jsx(b.Anchor,{iconLeft:t?"keyboard_arrow_left":void 0,...n,children:s})}),!t&&!r?e.jsx(u.Icon,{className:i.default.breadcrumbs__separator,size:16,name:"keyboard_arrow_right"}):null]})};exports.default=m;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import l from "../../../../../../external/classnames/index.es.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Icon as n } from "../../../../../tedi/components/base/icon/icon.es.js";
|
|
4
|
+
import { Text as d } from "../../../../../tedi/components/base/typography/text/text.es.js";
|
|
5
|
+
import { Print as f } from "../../../../../tedi/components/misc/print/print.es.js";
|
|
6
|
+
import { Anchor as b } from "../../../anchor/anchor.es.js";
|
|
7
7
|
import m from "../breadcrumbs.module.scss.es.js";
|
|
8
8
|
const N = (t) => {
|
|
9
9
|
const { isLast: o = !1, children: s, singleCrumb: e, ...a } = t, i = l(m.breadcrumbs__item);
|
|
10
10
|
return /* @__PURE__ */ c("li", { "data-name": "crumb", className: i, children: [
|
|
11
|
-
/* @__PURE__ */ r(
|
|
11
|
+
/* @__PURE__ */ r(f, { visibility: "show", children: o ? /* @__PURE__ */ r(d, { color: "secondary", children: s }) : (
|
|
12
12
|
// TODO: Remove ts-ignore
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14
14
|
// @ts-ignore
|
|
15
|
-
/* @__PURE__ */ r(
|
|
15
|
+
/* @__PURE__ */ r(b, { iconLeft: e ? "keyboard_arrow_left" : void 0, ...a, children: s })
|
|
16
16
|
) }),
|
|
17
|
-
!e && !o ? /* @__PURE__ */ r(
|
|
17
|
+
!e && !o ? /* @__PURE__ */ r(n, { className: m.breadcrumbs__separator, size: 16, name: "keyboard_arrow_right" }) : null
|
|
18
18
|
] });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../../../../../external/classnames/index.cjs.js"),a=require("../../../../tedi/components/base/typography/text/text.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),c=require("../../../../../external/classnames/index.cjs.js"),j=require("../../../../tedi/components/base/icon/icon.cjs.js"),a=require("../../../../tedi/components/base/typography/text/text.cjs.js"),_=require("../../../../tedi/components/misc/print/print.cjs.js"),b=require("../../../../tedi/components/misc/stretch-content/stretch-content.cjs.js"),o=require("./footer.module.scss.cjs.js"),v=require("../../../../tedi/components/layout/grid/row.cjs.js"),f=require("../../../../tedi/components/layout/grid/col.cjs.js"),m=require("../../../../tedi/components/layout/vertical-spacing/vertical-spacing.cjs.js"),p=require("../../../../tedi/providers/label-provider/use-labels.cjs.js"),h=d=>{const{logo:r,categories:l,className:i,bottomElement:n,...t}=d,{getLabel:s}=p.useLabels(),u=c.default(o.default.footer,i);return e.jsx(_.Print,{visibility:"hide",children:e.jsxs("footer",{"data-name":"footer",...t,className:u,children:[e.jsx(a.Text,{className:"visually-hidden",element:"h2",children:s("footer.title")}),e.jsxs("div",{className:o.default.footer__inner,children:[l.map((x,g)=>e.jsx(b.StretchContent,{direction:"vertical",children:e.jsx(q,{...x})},g)),r&&e.jsx("img",{className:o.default.footer__logo,src:r.src,alt:r.alt,style:r.style})]}),n&&e.jsx(a.Text,{color:"white",element:"div",className:o.default.footer__bottom,children:n})]})})},q=d=>{const{heading:r,icon:l,elements:i}=d,n=t=>{const s={size:16,color:"inherit",background:void 0},u=typeof t=="string"?{...s,name:t,background:void 0}:{...s,...t,background:void 0};return e.jsx(j.Icon,{...u})};return e.jsxs(v.Row,{children:[l&&e.jsx(f.Col,{width:"auto",className:c.default("text-inverted",o.default["footer__category-icon"]),children:n(l)}),e.jsx(f.Col,{width:"auto",children:e.jsxs(m.VerticalSpacing,{className:c.default("text-small",o.default.footer__category),size:.5,children:[e.jsx(a.Text,{color:"white",modifiers:["bold","normal"],element:"h3",children:r}),e.jsx(m.VerticalSpacing,{element:"ul",size:.5,className:c.default(o.default["footer__category-list"]),children:i==null?void 0:i.map((t,s)=>e.jsx("li",{children:e.jsx(a.Text,{color:"white",element:"span",modifiers:"break-all",children:t})},s))})]})})]})};exports.Footer=h;exports.default=h;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import n from "../../../../../external/classnames/index.es.js";
|
|
3
|
+
import { Icon as _ } from "../../../../tedi/components/base/icon/icon.es.js";
|
|
3
4
|
import { Text as m } from "../../../../tedi/components/base/typography/text/text.es.js";
|
|
4
|
-
import { Print as
|
|
5
|
+
import { Print as b } from "../../../../tedi/components/misc/print/print.es.js";
|
|
5
6
|
import { StretchContent as y } from "../../../../tedi/components/misc/stretch-content/stretch-content.es.js";
|
|
6
|
-
import { Icon as N } from "../../icon/icon.es.js";
|
|
7
7
|
import t from "./footer.module.scss.es.js";
|
|
8
|
-
import { Row as
|
|
8
|
+
import { Row as N } from "../../../../tedi/components/layout/grid/row.es.js";
|
|
9
9
|
import { Col as h } from "../../../../tedi/components/layout/grid/col.es.js";
|
|
10
10
|
import { VerticalSpacing as p } from "../../../../tedi/components/layout/vertical-spacing/vertical-spacing.es.js";
|
|
11
11
|
import { useLabels as v } from "../../../../tedi/providers/label-provider/use-labels.es.js";
|
|
12
12
|
const B = (d) => {
|
|
13
|
-
const { logo: r, categories: s, className: l, bottomElement: c, ...
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
s.map((g,
|
|
18
|
-
r && /* @__PURE__ */
|
|
13
|
+
const { logo: r, categories: s, className: l, bottomElement: c, ...e } = d, { getLabel: i } = v(), f = n(t.footer, l);
|
|
14
|
+
return /* @__PURE__ */ o(b, { visibility: "hide", children: /* @__PURE__ */ a("footer", { "data-name": "footer", ...e, className: f, children: [
|
|
15
|
+
/* @__PURE__ */ o(m, { className: "visually-hidden", element: "h2", children: i("footer.title") }),
|
|
16
|
+
/* @__PURE__ */ a("div", { className: t.footer__inner, children: [
|
|
17
|
+
s.map((g, u) => /* @__PURE__ */ o(y, { direction: "vertical", children: /* @__PURE__ */ o(w, { ...g }) }, u)),
|
|
18
|
+
r && /* @__PURE__ */ o("img", { className: t.footer__logo, src: r.src, alt: r.alt, style: r.style })
|
|
19
19
|
] }),
|
|
20
|
-
c && /* @__PURE__ */
|
|
20
|
+
c && /* @__PURE__ */ o(m, { color: "white", element: "div", className: t.footer__bottom, children: c })
|
|
21
21
|
] }) });
|
|
22
22
|
}, w = (d) => {
|
|
23
|
-
const { heading: r, icon: s, elements: l } = d, c = (
|
|
24
|
-
const i = { size: 16 }, f = typeof
|
|
25
|
-
return /* @__PURE__ */
|
|
23
|
+
const { heading: r, icon: s, elements: l } = d, c = (e) => {
|
|
24
|
+
const i = { size: 16, color: "inherit", background: void 0 }, f = typeof e == "string" ? { ...i, name: e, background: void 0 } : { ...i, ...e, background: void 0 };
|
|
25
|
+
return /* @__PURE__ */ o(_, { ...f });
|
|
26
26
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
s && /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ a(N, { children: [
|
|
28
|
+
s && /* @__PURE__ */ o(h, { width: "auto", className: n("text-inverted", t["footer__category-icon"]), children: c(s) }),
|
|
29
|
+
/* @__PURE__ */ o(h, { width: "auto", children: /* @__PURE__ */ a(p, { className: n("text-small", t.footer__category), size: 0.5, children: [
|
|
30
|
+
/* @__PURE__ */ o(m, { color: "white", modifiers: ["bold", "normal"], element: "h3", children: r }),
|
|
31
|
+
/* @__PURE__ */ o(p, { element: "ul", size: 0.5, className: n(t["footer__category-list"]), children: l == null ? void 0 : l.map((e, i) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(m, { color: "white", element: "span", modifiers: "break-all", children: e }) }, i)) })
|
|
32
32
|
] }) })
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("../../../../../../tedi/components/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("../../../../../../tedi/components/base/icon/icon.cjs.js"),a=require("../../../../../../tedi/components/misc/print/print.cjs.js"),d=require("./header-notification.module.scss.cjs.js"),u=require("../../../../card/card.cjs.js"),l=require("../../../../card/card-content/card-content.cjs.js"),h=require("../../../../../../tedi/components/layout/grid/row.cjs.js"),r=require("../../../../../../tedi/components/layout/grid/col.cjs.js"),i=t=>{const{children:n,icon:o="info",background:c="primary-highlight"}=t;return e.jsx(a.Print,{visibility:"hide",children:e.jsx(u.Card,{borderless:!0,background:c,borderRadius:!1,className:d.default["header-notification"],children:e.jsx(l.CardContent,{children:e.jsxs(h.Row,{justifyContent:"between",alignItems:"center",gap:1,gutter:0,children:[e.jsx(r.Col,{width:"auto",children:e.jsx(s.Icon,{name:o})}),e.jsx(r.Col,{children:n})]})})})})};exports.HeaderNotification=i;exports.default=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Icon as a } from "../../../../../../tedi/components/base/icon/icon.es.js";
|
|
3
|
+
import { Print as d } from "../../../../../../tedi/components/misc/print/print.es.js";
|
|
4
4
|
import s from "./header-notification.module.scss.es.js";
|
|
5
5
|
import { Card as c } from "../../../../card/card.es.js";
|
|
6
6
|
import { CardContent as l } from "../../../../card/card-content/card-content.es.js";
|
|
@@ -8,8 +8,8 @@ import { Row as f } from "../../../../../../tedi/components/layout/grid/row.es.j
|
|
|
8
8
|
import { Col as i } from "../../../../../../tedi/components/layout/grid/col.es.js";
|
|
9
9
|
const w = (o) => {
|
|
10
10
|
const { children: t, icon: e = "info", background: n = "primary-highlight" } = o;
|
|
11
|
-
return /* @__PURE__ */ r(
|
|
12
|
-
/* @__PURE__ */ r(i, { width: "auto", children: /* @__PURE__ */ r(
|
|
11
|
+
return /* @__PURE__ */ r(d, { visibility: "hide", children: /* @__PURE__ */ r(c, { borderless: !0, background: n, borderRadius: !1, className: s["header-notification"], children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ m(f, { justifyContent: "between", alignItems: "center", gap: 1, gutter: 0, children: [
|
|
12
|
+
/* @__PURE__ */ r(i, { width: "auto", children: /* @__PURE__ */ r(a, { name: e }) }),
|
|
13
13
|
/* @__PURE__ */ r(i, { children: t })
|
|
14
14
|
] }) }) }) });
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("react"),S=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("react"),S=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),h=require("../../../../../external/classnames/index.cjs.js"),M=require("../../../../tedi/components/base/icon/icon.cjs.js"),T=require("../../../../tedi/components/buttons/collapse/collapse.cjs.js"),P=require("../../../../tedi/components/misc/print/print.cjs.js"),q=require("../../../helpers/hooks/use-layout.cjs.js"),B=require("../../anchor/anchor.cjs.js"),C=require("../layout-context.cjs.js"),a=require("./sidenav.module.scss.cjs.js"),F=require("./utility.cjs.js"),A=n=>requestAnimationFrame(n),I=n=>{const{navItems:l,ariaLabel:i,linkAs:r,breakToBottomContent:c,breakToHeader:x,showDividers:u=!0,hideSubItemIcons:m=!1,className:v,..._}=n,p=q.useLayout(["mobile","tablet"]),{menuOpen:y,context:b,getFloatingProps:f,floating:g,headerType:e,y:s}=d.useContext(C.LayoutContext),{hasSidenav:o}=F.useSidenavRendered(e,n);if(!o)return null;const N=h.default(a.default.sidenav,v,{[a.default["sidenav--has-dividers"]]:u,[a.default["sidenav--hide-subitem-icons"]]:m}),j=t.jsx(P.Print,{visibility:"hide",children:t.jsx("nav",{"data-name":"sidenav",..._,className:N,"aria-label":i,children:t.jsx("ul",{className:a.default.sidenav__list,role:"menubar","aria-label":i,children:l.map((E,L)=>d.createElement(k,{as:r,...E,key:L}))})})});return p?y?t.jsx(S.FloatingOverlay,{lockScroll:!0,className:a.default.sidenav__overlay,children:t.jsx(S.FloatingFocusManager,{context:b,order:["reference","content"],children:t.jsx("div",{...f({style:{paddingTop:s??0},className:a.default.sidenav,"aria-label":i}),ref:g,children:j})})}):null:j},k=n=>{const{icon:l,children:i,isActive:r,onClick:c,subItems:x,as:u,...m}=n,{toggleMenu:v,onHeaderSidenavToggle:_}=d.useContext(C.LayoutContext),p=q.useLayout(["mobile","tablet"]),y=h.default(a.default.sidenav__item,{[a.default["sidenav__item--current"]]:r}),b=d.useId(),f=e=>{const o={className:h.default(a.default.sidenav__icon)},N=typeof e=="string"?{...o,name:e,color:"inherit"}:{...o,...e,className:h.default(o.className,e==null?void 0:e.className),background:void 0};return t.jsx(M.Icon,{...N})},g=e=>{c==null||c(e),e.stopPropagation(),typeof _=="function"||(p?A(()=>v()):v())};return t.jsx("li",{"data-name":"sidenav-item",className:y,role:"presentation",children:x?t.jsx(T.Collapse,{id:b,hideCollapseText:!0,open:r,title:t.jsxs("span",{...(({_href:e,...s})=>s)(m),className:a.default.sidenav__link,noStyle:!0,role:"menuitem","aria-current":r?"page":void 0,children:[l&&f(l),t.jsx("span",{className:a.default.sidenav__title,children:i})]}),children:t.jsx("ul",{className:a.default.sidenav__list,role:"menubar",children:x.map((e,s)=>d.createElement(k,{as:u,...e,key:s}))})}):t.jsxs(B.Anchor,{...m,as:u,onClick:g,className:a.default.sidenav__link,noStyle:!0,role:"menuitem","aria-current":r?"page":void 0,children:[l&&f(l),t.jsx("span",{className:a.default.sidenav__title,children:i})]})})};exports.SideNav=I;exports.default=I;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IconProps } from '../../../../tedi/components/base/icon/icon';
|
|
2
3
|
import { Layouts } from '../../../helpers/hooks/use-layout';
|
|
3
4
|
import { AllowedHTMLTags } from '../../../helpers/polymorphic/types';
|
|
4
5
|
import { IntentionalAny } from '../../../types';
|
|
5
6
|
import { AnchorProps } from '../../anchor/anchor';
|
|
6
|
-
import { IconProps } from '../../icon/icon';
|
|
7
7
|
type ConditionalTypes<C extends React.ElementType = 'a'> = {
|
|
8
8
|
/**
|
|
9
9
|
* Render all anchors (except logoLink and skipLink) as this component<br />
|