@telia-ace/widget-components-area 1.2.5 → 1.2.7-rc.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.
@@ -0,0 +1,165 @@
1
+ import { jsx as n, jsxs as G } from "react/jsx-runtime";
2
+ import { css as S } from "@emotion/react";
3
+ import m from "@emotion/styled";
4
+ import { WidgetRenderState as c } from "@telia-ace/widget-core";
5
+ import { genericComponentStyling as T, Component as v } from "@telia-ace/widget-types-grid";
6
+ import { TransitionComponent as q, Grid as P, useComponentDescriptor as F, useRenderState as H, useContext as I, useProperties as J, useChildren as K, useContainer as Q, useScroll as U, createEmptyComponent as V, ColumnContext as w, filterCssProps as X, Dropdown as Y, DrawerAnimationType as Z, Drawer as _, Button as ee, filterCssPropsStyle as te, paddedBorderTabStyle as ne, Text as re, SymbolBadge as oe } from "@telia-ace/widget-ui";
7
+ import { appendClassNames as y, Logger as ie } from "@telia-ace/widget-utilities";
8
+ import { forwardRef as se, useCallback as ae } from "react";
9
+ import { A as l } from "./index-ca543402.mjs";
10
+ const le = se(
11
+ ({ children: e, className: t, renderState: o, animation: i, ...f }, s) => o ? /* @__PURE__ */ n(
12
+ q,
13
+ {
14
+ mountOnEnter: o !== c.hidden,
15
+ timeout: 200,
16
+ in: o === c.open,
17
+ transitions: i,
18
+ unmountOnExit: o === c.closed,
19
+ children: (a, d) => /* @__PURE__ */ n(
20
+ ce,
21
+ {
22
+ ...f,
23
+ animationCss: d,
24
+ "data-state": a,
25
+ ref: s,
26
+ className: y("humany-animated-area", t),
27
+ children: e
28
+ }
29
+ )
30
+ }
31
+ ) : null
32
+ ), ce = m(P)`
33
+ ${T}
34
+ ${(e) => !!e.animationCss && e.animationCss}
35
+ ${(e) => !!e.scrollableCss && e.scrollableCss}
36
+ text-size-adjust: 100%;
37
+ input::-ms-clear {
38
+ display: none;
39
+ }
40
+ ${(e) => e.hidden && e["data-state"] === "exited" && S`
41
+ visibility: collapse;
42
+ pointer-events: none;
43
+ `};
44
+ `, we = ({ className: e, ...t }) => {
45
+ const { name: o } = F(), i = H(), f = I(), s = J(), a = K(), d = Q(), { gap: A = "0" } = f, {
46
+ columns: h = 1,
47
+ animation: u = "none",
48
+ scrollable: D = !1,
49
+ mode: p = l.Static,
50
+ trigger: j = {},
51
+ fullScreen: z,
52
+ header: B,
53
+ ...N
54
+ } = s, { size: R = 24, symbol: C, label: b, ariaLabel: E, ...L } = j, [O, W] = U(D), M = ae(
55
+ (r) => {
56
+ const { events: k } = d.get("$widget");
57
+ return k.dispatch("widget:area-rendered", {
58
+ name: o,
59
+ properties: s,
60
+ element: r
61
+ }), W.current = r, r;
62
+ },
63
+ // eslint-disable-next-line react-hooks/exhaustive-deps
64
+ [s, i]
65
+ );
66
+ if (!a.length)
67
+ return V(d, {
68
+ ...t,
69
+ className: y(e, "humany-area")
70
+ });
71
+ const $ = {
72
+ ...t,
73
+ className: y(
74
+ e,
75
+ "humany-area",
76
+ `humany-area-${o}`
77
+ ),
78
+ scrollableCss: O,
79
+ ...N,
80
+ columns: h,
81
+ gap: A,
82
+ renderState: i,
83
+ animation: u,
84
+ hidden: i === c.hidden,
85
+ ref: M
86
+ }, g = (() => u !== "none" ? /* @__PURE__ */ n(w.Provider, { value: h, children: /* @__PURE__ */ n(le, { ...$, children: a.map((r) => /* @__PURE__ */ n(v, { id: r.id, branch: "default" }, r.id)) }) }) : i === c.closed ? null : /* @__PURE__ */ n(w.Provider, { value: h, children: /* @__PURE__ */ n(pe, { ...$, children: a.map((r) => /* @__PURE__ */ n(v, { id: r.id, branch: "default" }, r.id)) }) }))();
87
+ if (p === l.Static)
88
+ return g;
89
+ const x = /* @__PURE__ */ G(
90
+ me,
91
+ {
92
+ className: "humany-area-trigger",
93
+ title: E,
94
+ ...X(L),
95
+ children: [
96
+ b && /* @__PURE__ */ n(de, { children: b }),
97
+ C && /* @__PURE__ */ n(ue, { symbol: C, size: R })
98
+ ]
99
+ }
100
+ );
101
+ if (p === l.Dropdown)
102
+ return /* @__PURE__ */ n(Y, { trigger: x, children: g });
103
+ if (p === l.Drawer) {
104
+ const r = Object.values(Z).includes(u) && {
105
+ type: u
106
+ } || void 0;
107
+ return /* @__PURE__ */ n(
108
+ _,
109
+ {
110
+ header: B,
111
+ animation: r,
112
+ fullScreen: z,
113
+ trigger: x,
114
+ children: g
115
+ }
116
+ );
117
+ }
118
+ return p === l.Modal && ie.warn("modal area not implemented"), null;
119
+ }, me = m(ee)`
120
+ display: flex;
121
+ align-items: inherit;
122
+ align-self: center;
123
+ width: fit-content;
124
+ height: fit-content;
125
+ ${te}
126
+
127
+ ${(e) => e.theme.fonts && `
128
+ font-family: ${e.theme.fonts.type};
129
+ font-size: ${e.theme.fonts.normal};
130
+ `}
131
+
132
+ &:focus-visible {
133
+ ${ne};
134
+ }
135
+ `, de = m(re)`
136
+ margin: 0 ${(e) => {
137
+ var t;
138
+ return (t = e.theme.sizes) == null ? void 0 : t.small;
139
+ }} 0 0;
140
+ color: ${(e) => {
141
+ var t;
142
+ return (t = e.theme.colors) == null ? void 0 : t.text;
143
+ }};
144
+ `, ue = m(oe)`
145
+ path {
146
+ fill: ${(e) => {
147
+ var t;
148
+ return (t = e.theme.colors) == null ? void 0 : t.text;
149
+ }};
150
+ }
151
+ `, pe = m(P)`
152
+ ${T}
153
+ ${(e) => !!e.scrollableCss && e.scrollableCss}
154
+ text-size-adjust: 100%;
155
+ input::-ms-clear {
156
+ display: none;
157
+ }
158
+ ${(e) => e.hidden && S`
159
+ visibility: collapse;
160
+ pointer-events: none;
161
+ `};
162
+ `;
163
+ export {
164
+ we as default
165
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),w=require("@emotion/react"),u=require("@emotion/styled"),c=require("@telia-ace/widget-core"),f=require("@telia-ace/widget-types-grid"),t=require("@telia-ace/widget-ui"),h=require("@telia-ace/widget-utilities"),v=require("react"),d=require("./index-d68cb848.js"),G=v.forwardRef(({children:e,className:n,renderState:i,animation:o,...C},a)=>i?r.jsx(t.TransitionComponent,{mountOnEnter:i!==c.WidgetRenderState.hidden,timeout:200,in:i===c.WidgetRenderState.open,transitions:o,unmountOnExit:i===c.WidgetRenderState.closed,children:(l,m)=>r.jsx(L,{...C,animationCss:m,"data-state":l,ref:a,className:h.appendClassNames("humany-animated-area",n),children:e})}):null),L=u(t.Grid)`
2
+ ${f.genericComponentStyling}
3
+ ${e=>!!e.animationCss&&e.animationCss}
4
+ ${e=>!!e.scrollableCss&&e.scrollableCss}
5
+ text-size-adjust: 100%;
6
+ input::-ms-clear {
7
+ display: none;
8
+ }
9
+ ${e=>e.hidden&&e["data-state"]==="exited"&&w.css`
10
+ visibility: collapse;
11
+ pointer-events: none;
12
+ `};
13
+ `,U=({className:e,...n})=>{const{name:i}=t.useComponentDescriptor(),o=t.useRenderState(),C=t.useContext(),a=t.useProperties(),l=t.useChildren(),m=t.useContainer(),{gap:T="0"}=C,{columns:x=1,animation:g="none",scrollable:q=!1,mode:p=d.AreaMode.Static,trigger:A={},fullScreen:R,header:P,...M}=a,{size:W=24,symbol:b,label:$,ariaLabel:D,...N}=A,[z,B]=t.useScroll(q),O=v.useCallback(s=>{const{events:E}=m.get("$widget");return E.dispatch("widget:area-rendered",{name:i,properties:a,element:s}),B.current=s,s},[a,o]);if(!l.length)return t.createEmptyComponent(m,{...n,className:h.appendClassNames(e,"humany-area")});const j={...n,className:h.appendClassNames(e,"humany-area",`humany-area-${i}`),scrollableCss:z,...M,columns:x,gap:T,renderState:o,animation:g,hidden:o===c.WidgetRenderState.hidden,ref:O},y=(()=>g!=="none"?r.jsx(t.ColumnContext.Provider,{value:x,children:r.jsx(G,{...j,children:l.map(s=>r.jsx(f.Component,{id:s.id,branch:"default"},s.id))})}):o===c.WidgetRenderState.closed?null:r.jsx(t.ColumnContext.Provider,{value:x,children:r.jsx(I,{...j,children:l.map(s=>r.jsx(f.Component,{id:s.id,branch:"default"},s.id))})}))();if(p===d.AreaMode.Static)return y;const S=r.jsxs(k,{className:"humany-area-trigger",title:D,...t.filterCssProps(N),children:[$&&r.jsx(F,{children:$}),b&&r.jsx(H,{symbol:b,size:W})]});if(p===d.AreaMode.Dropdown)return r.jsx(t.Dropdown,{trigger:S,children:y});if(p===d.AreaMode.Drawer){const s=Object.values(t.DrawerAnimationType).includes(g)&&{type:g}||void 0;return r.jsx(t.Drawer,{header:P,animation:s,fullScreen:R,trigger:S,children:y})}return p===d.AreaMode.Modal&&h.Logger.warn("modal area not implemented"),null},k=u(t.Button)`
14
+ display: flex;
15
+ align-items: inherit;
16
+ align-self: center;
17
+ width: fit-content;
18
+ height: fit-content;
19
+ ${t.filterCssPropsStyle}
20
+
21
+ ${e=>e.theme.fonts&&`
22
+ font-family: ${e.theme.fonts.type};
23
+ font-size: ${e.theme.fonts.normal};
24
+ `}
25
+
26
+ &:focus-visible {
27
+ ${t.paddedBorderTabStyle};
28
+ }
29
+ `,F=u(t.Text)`
30
+ margin: 0 ${e=>{var n;return(n=e.theme.sizes)==null?void 0:n.small}} 0 0;
31
+ color: ${e=>{var n;return(n=e.theme.colors)==null?void 0:n.text}};
32
+ `,H=u(t.SymbolBadge)`
33
+ path {
34
+ fill: ${e=>{var n;return(n=e.theme.colors)==null?void 0:n.text}};
35
+ }
36
+ `,I=u(t.Grid)`
37
+ ${f.genericComponentStyling}
38
+ ${e=>!!e.scrollableCss&&e.scrollableCss}
39
+ text-size-adjust: 100%;
40
+ input::-ms-clear {
41
+ display: none;
42
+ }
43
+ ${e=>e.hidden&&w.css`
44
+ visibility: collapse;
45
+ pointer-events: none;
46
+ `};
47
+ `;exports.default=U;
@@ -3,7 +3,7 @@ var o = /* @__PURE__ */ ((r) => (r.Static = "static", r.Drawer = "drawer", r.Dro
3
3
  const p = (r) => t(
4
4
  r,
5
5
  "area",
6
- import("./area-314c3f09.mjs"),
6
+ import("./area-2730550b.mjs"),
7
7
  (a) => {
8
8
  }
9
9
  );
@@ -1 +1 @@
1
- "use strict";const t=require("@telia-ace/widget-ui");var r=(e=>(e.Static="static",e.Drawer="drawer",e.Dropdown="dropdown",e.Modal="modal",e))(r||{});const o=e=>t.createReactComponent(e,"area",Promise.resolve().then(()=>require("./area-a5e78a9d.js")),n=>{});exports.AreaComponent=o;exports.AreaMode=r;
1
+ "use strict";const t=require("@telia-ace/widget-ui");var r=(e=>(e.Static="static",e.Drawer="drawer",e.Dropdown="dropdown",e.Modal="modal",e))(r||{});const o=e=>t.createReactComponent(e,"area",Promise.resolve().then(()=>require("./area-b1abdc0c.js")),n=>{});exports.AreaComponent=o;exports.AreaMode=r;
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index-982f3e25.js");require("@telia-ace/widget-ui");module.exports=e.AreaComponent;
1
+ "use strict";const e=require("./index-d68cb848.js");require("@telia-ace/widget-ui");module.exports=e.AreaComponent;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as t } from "./index-746200a9.mjs";
1
+ import { a as t } from "./index-ca543402.mjs";
2
2
  import "@telia-ace/widget-ui";
3
3
  export {
4
4
  t as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area",
3
- "version": "1.2.5",
3
+ "version": "1.2.7-rc.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -10,10 +10,10 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@telia-ace/widget-core": "*",
14
- "@telia-ace/widget-types-grid": "*",
15
- "@telia-ace/widget-ui": "*",
16
- "@telia-ace/widget-utilities": "*",
13
+ "@telia-ace/widget-core": "^1.2.7-rc.1",
14
+ "@telia-ace/widget-types-grid": "^1.2.7-rc.1",
15
+ "@telia-ace/widget-ui": "^1.2.7-rc.1",
16
+ "@telia-ace/widget-utilities": "^1.2.7-rc.1",
17
17
  "@webprovisions/platform": "^1.1.3"
18
18
  },
19
19
  "peerDependencies": {
package/area-314c3f09.mjs DELETED
@@ -1,175 +0,0 @@
1
- import { jsx as n, jsxs as G } from "react/jsx-runtime";
2
- import { css as T } from "@emotion/react";
3
- import m from "@emotion/styled";
4
- import { WidgetRenderState as c } from "@telia-ace/widget-core";
5
- import { genericComponentStyling as P, Component as w } from "@telia-ace/widget-types-grid";
6
- import { TransitionComponent as I, Grid as A, useComponentDescriptor as q, useRenderState as F, useContext as H, useProperties as J, useChildren as K, useContainer as Q, useScroll as U, createEmptyComponent as V, ColumnContext as S, filterCssProps as X, Dropdown as Y, DrawerAnimationType as Z, Drawer as _, Button as ee, filterCssPropsStyle as te, paddedBorderTabStyle as ne, Text as re, SymbolBadge as oe } from "@telia-ace/widget-ui";
7
- import { appendClassNames as y, Logger as ie } from "@telia-ace/widget-utilities";
8
- import { forwardRef as se, useRef as ae, useEffect as le, useCallback as ce } from "react";
9
- import { A as l } from "./index-746200a9.mjs";
10
- const me = se(
11
- ({ children: e, className: t, renderState: o, animation: a, ...f }, d) => {
12
- const i = ae();
13
- return le(() => {
14
- var s;
15
- o === "open" && ((s = i == null ? void 0 : i.current) == null || s.focus());
16
- }), o ? /* @__PURE__ */ n(
17
- I,
18
- {
19
- mountOnEnter: o !== c.hidden,
20
- timeout: 200,
21
- in: o === c.open,
22
- transitions: a,
23
- unmountOnExit: o === c.closed,
24
- children: (s, h) => /* @__PURE__ */ n(
25
- de,
26
- {
27
- ...f,
28
- tabIndex: "-1",
29
- animationCss: h,
30
- "data-state": s,
31
- ref: i,
32
- className: y("humany-animated-area", t),
33
- children: e
34
- }
35
- )
36
- }
37
- ) : null;
38
- }
39
- ), de = m(A)`
40
- ${P}
41
- ${(e) => !!e.animationCss && e.animationCss}
42
- ${(e) => !!e.scrollableCss && e.scrollableCss}
43
- text-size-adjust: 100%;
44
- input::-ms-clear {
45
- display: none;
46
- }
47
- :focus-visible {
48
- outline: none !important;
49
- }
50
- ${(e) => e.hidden && e["data-state"] === "exited" && T`
51
- visibility: collapse;
52
- pointer-events: none;
53
- `};
54
- `, Te = ({ className: e, ...t }) => {
55
- const { name: o } = q(), a = F(), f = H(), d = J(), i = K(), s = Q(), { gap: h = "0" } = f, {
56
- columns: g = 1,
57
- animation: u = "none",
58
- scrollable: D = !1,
59
- mode: p = l.Static,
60
- trigger: j = {},
61
- fullScreen: z,
62
- header: B,
63
- ...E
64
- } = d, { size: N = 24, symbol: C, label: $, ariaLabel: R, ...L } = j, [O, W] = U(D), M = ce(
65
- (r) => {
66
- const { events: k } = s.get("$widget");
67
- return k.dispatch("widget:area-rendered", {
68
- name: o,
69
- properties: d,
70
- element: r
71
- }), W.current = r, r;
72
- },
73
- // eslint-disable-next-line react-hooks/exhaustive-deps
74
- [d, a]
75
- );
76
- if (!i.length)
77
- return V(s, {
78
- ...t,
79
- className: y(e, "humany-area")
80
- });
81
- const x = {
82
- ...t,
83
- className: y(
84
- e,
85
- "humany-area",
86
- `humany-area-${o}`
87
- ),
88
- scrollableCss: O,
89
- ...E,
90
- columns: g,
91
- gap: h,
92
- renderState: a,
93
- animation: u,
94
- hidden: a === c.hidden,
95
- ref: M
96
- }, b = (() => u !== "none" ? /* @__PURE__ */ n(S.Provider, { value: g, children: /* @__PURE__ */ n(me, { ...x, children: i.map((r) => /* @__PURE__ */ n(w, { id: r.id, branch: "default" }, r.id)) }) }) : a === c.closed ? null : /* @__PURE__ */ n(S.Provider, { value: g, children: /* @__PURE__ */ n(he, { ...x, children: i.map((r) => /* @__PURE__ */ n(w, { id: r.id, branch: "default" }, r.id)) }) }))();
97
- if (p === l.Static)
98
- return b;
99
- const v = /* @__PURE__ */ G(
100
- ue,
101
- {
102
- className: "humany-area-trigger",
103
- title: R,
104
- ...X(L),
105
- children: [
106
- $ && /* @__PURE__ */ n(pe, { children: $ }),
107
- C && /* @__PURE__ */ n(fe, { symbol: C, size: N })
108
- ]
109
- }
110
- );
111
- if (p === l.Dropdown)
112
- return /* @__PURE__ */ n(Y, { trigger: v, children: b });
113
- if (p === l.Drawer) {
114
- const r = Object.values(Z).includes(u) && {
115
- type: u
116
- } || void 0;
117
- return /* @__PURE__ */ n(
118
- _,
119
- {
120
- header: B,
121
- animation: r,
122
- fullScreen: z,
123
- trigger: v,
124
- children: b
125
- }
126
- );
127
- }
128
- return p === l.Modal && ie.warn("modal area not implemented"), null;
129
- }, ue = m(ee)`
130
- display: flex;
131
- align-items: inherit;
132
- align-self: center;
133
- width: fit-content;
134
- height: fit-content;
135
- ${te}
136
-
137
- ${(e) => e.theme.fonts && `
138
- font-family: ${e.theme.fonts.type};
139
- font-size: ${e.theme.fonts.normal};
140
- `}
141
-
142
- &:focus-visible {
143
- ${ne};
144
- }
145
- `, pe = m(re)`
146
- margin: 0 ${(e) => {
147
- var t;
148
- return (t = e.theme.sizes) == null ? void 0 : t.small;
149
- }} 0 0;
150
- color: ${(e) => {
151
- var t;
152
- return (t = e.theme.colors) == null ? void 0 : t.text;
153
- }};
154
- `, fe = m(oe)`
155
- path {
156
- fill: ${(e) => {
157
- var t;
158
- return (t = e.theme.colors) == null ? void 0 : t.text;
159
- }};
160
- }
161
- `, he = m(A)`
162
- ${P}
163
- ${(e) => !!e.scrollableCss && e.scrollableCss}
164
- text-size-adjust: 100%;
165
- input::-ms-clear {
166
- display: none;
167
- }
168
- ${(e) => e.hidden && T`
169
- visibility: collapse;
170
- pointer-events: none;
171
- `};
172
- `;
173
- export {
174
- Te as default
175
- };
package/area-a5e78a9d.js DELETED
@@ -1,50 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),T=require("@emotion/react"),u=require("@emotion/styled"),d=require("@telia-ace/widget-core"),C=require("@telia-ace/widget-types-grid"),t=require("@telia-ace/widget-ui"),f=require("@telia-ace/widget-utilities"),h=require("react"),c=require("./index-982f3e25.js"),G=h.forwardRef(({children:e,className:n,renderState:i,animation:l,...x},m)=>{const o=h.useRef();return h.useEffect(()=>{var a;i==="open"&&((a=o==null?void 0:o.current)==null||a.focus())}),i?r.jsx(t.TransitionComponent,{mountOnEnter:i!==d.WidgetRenderState.hidden,timeout:200,in:i===d.WidgetRenderState.open,transitions:l,unmountOnExit:i===d.WidgetRenderState.closed,children:(a,y)=>r.jsx(L,{...x,tabIndex:"-1",animationCss:y,"data-state":a,ref:o,className:f.appendClassNames("humany-animated-area",n),children:e})}):null}),L=u(t.Grid)`
2
- ${C.genericComponentStyling}
3
- ${e=>!!e.animationCss&&e.animationCss}
4
- ${e=>!!e.scrollableCss&&e.scrollableCss}
5
- text-size-adjust: 100%;
6
- input::-ms-clear {
7
- display: none;
8
- }
9
- :focus-visible {
10
- outline: none !important;
11
- }
12
- ${e=>e.hidden&&e["data-state"]==="exited"&&T.css`
13
- visibility: collapse;
14
- pointer-events: none;
15
- `};
16
- `,U=({className:e,...n})=>{const{name:i}=t.useComponentDescriptor(),l=t.useRenderState(),x=t.useContext(),m=t.useProperties(),o=t.useChildren(),a=t.useContainer(),{gap:y="0"}=x,{columns:b=1,animation:g="none",scrollable:q=!1,mode:p=c.AreaMode.Static,trigger:A={},fullScreen:R,header:P,...M}=m,{size:W=24,symbol:j,label:S,ariaLabel:D,...N}=A,[z,B]=t.useScroll(q),E=h.useCallback(s=>{const{events:O}=a.get("$widget");return O.dispatch("widget:area-rendered",{name:i,properties:m,element:s}),B.current=s,s},[m,l]);if(!o.length)return t.createEmptyComponent(a,{...n,className:f.appendClassNames(e,"humany-area")});const v={...n,className:f.appendClassNames(e,"humany-area",`humany-area-${i}`),scrollableCss:z,...M,columns:b,gap:y,renderState:l,animation:g,hidden:l===d.WidgetRenderState.hidden,ref:E},$=(()=>g!=="none"?r.jsx(t.ColumnContext.Provider,{value:b,children:r.jsx(G,{...v,children:o.map(s=>r.jsx(C.Component,{id:s.id,branch:"default"},s.id))})}):l===d.WidgetRenderState.closed?null:r.jsx(t.ColumnContext.Provider,{value:b,children:r.jsx(H,{...v,children:o.map(s=>r.jsx(C.Component,{id:s.id,branch:"default"},s.id))})}))();if(p===c.AreaMode.Static)return $;const w=r.jsxs(k,{className:"humany-area-trigger",title:D,...t.filterCssProps(N),children:[S&&r.jsx(I,{children:S}),j&&r.jsx(F,{symbol:j,size:W})]});if(p===c.AreaMode.Dropdown)return r.jsx(t.Dropdown,{trigger:w,children:$});if(p===c.AreaMode.Drawer){const s=Object.values(t.DrawerAnimationType).includes(g)&&{type:g}||void 0;return r.jsx(t.Drawer,{header:P,animation:s,fullScreen:R,trigger:w,children:$})}return p===c.AreaMode.Modal&&f.Logger.warn("modal area not implemented"),null},k=u(t.Button)`
17
- display: flex;
18
- align-items: inherit;
19
- align-self: center;
20
- width: fit-content;
21
- height: fit-content;
22
- ${t.filterCssPropsStyle}
23
-
24
- ${e=>e.theme.fonts&&`
25
- font-family: ${e.theme.fonts.type};
26
- font-size: ${e.theme.fonts.normal};
27
- `}
28
-
29
- &:focus-visible {
30
- ${t.paddedBorderTabStyle};
31
- }
32
- `,I=u(t.Text)`
33
- margin: 0 ${e=>{var n;return(n=e.theme.sizes)==null?void 0:n.small}} 0 0;
34
- color: ${e=>{var n;return(n=e.theme.colors)==null?void 0:n.text}};
35
- `,F=u(t.SymbolBadge)`
36
- path {
37
- fill: ${e=>{var n;return(n=e.theme.colors)==null?void 0:n.text}};
38
- }
39
- `,H=u(t.Grid)`
40
- ${C.genericComponentStyling}
41
- ${e=>!!e.scrollableCss&&e.scrollableCss}
42
- text-size-adjust: 100%;
43
- input::-ms-clear {
44
- display: none;
45
- }
46
- ${e=>e.hidden&&T.css`
47
- visibility: collapse;
48
- pointer-events: none;
49
- `};
50
- `;exports.default=U;