@fluentui/react-alert 9.0.0-beta.40 → 9.0.0-beta.42

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.
@@ -1,82 +1,71 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAlert_unstable", {
6
+ enumerable: true,
7
+ get: ()=>useAlert_unstable
5
8
  });
6
- exports.useAlert_unstable = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const react_avatar_1 = /*#__PURE__*/require("@fluentui/react-avatar");
9
- const react_button_1 = /*#__PURE__*/require("@fluentui/react-button");
10
- const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
11
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
12
- /**
13
- * Create the state required to render Alert.
14
- *
15
- * The returned state can be modified with hooks such as useAlertStyles_unstable,
16
- * before being passed to renderAlert_unstable.
17
- *
18
- * @param props - props from this instance of Alert
19
- * @param ref - reference to root HTMLElement of Alert
20
- */
21
- const useAlert_unstable = (props, ref) => {
22
- const {
23
- appearance = 'primary',
24
- intent
25
- } = props;
26
- /** Determine the role and icon to render based on the intent */
27
- let defaultIcon;
28
- let defaultRole = 'status';
29
- switch (intent) {
30
- case 'success':
31
- defaultIcon = React.createElement(react_icons_1.CheckmarkCircleFilled, null);
32
- break;
33
- case 'error':
34
- defaultIcon = React.createElement(react_icons_1.DismissCircleFilled, null);
35
- defaultRole = 'alert';
36
- break;
37
- case 'warning':
38
- defaultIcon = React.createElement(react_icons_1.WarningFilled, null);
39
- defaultRole = 'alert';
40
- break;
41
- case 'info':
42
- defaultIcon = React.createElement(react_icons_1.InfoFilled, null);
43
- break;
44
- }
45
- const action = react_utilities_1.resolveShorthand(props.action, {
46
- defaultProps: {
47
- appearance: 'transparent'
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactAvatar = require("@fluentui/react-avatar");
12
+ const _reactButton = require("@fluentui/react-button");
13
+ const _reactIcons = require("@fluentui/react-icons");
14
+ const _reactUtilities = require("@fluentui/react-utilities");
15
+ const useAlert_unstable = (props, ref)=>{
16
+ const { appearance ='primary' , intent } = props;
17
+ /** Determine the role and icon to render based on the intent */ let defaultIcon;
18
+ let defaultRole = 'status';
19
+ switch(intent){
20
+ case 'success':
21
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.CheckmarkCircleFilled, null);
22
+ break;
23
+ case 'error':
24
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.DismissCircleFilled, null);
25
+ defaultRole = 'alert';
26
+ break;
27
+ case 'warning':
28
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.WarningFilled, null);
29
+ defaultRole = 'alert';
30
+ break;
31
+ case 'info':
32
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.InfoFilled, null);
33
+ break;
48
34
  }
49
- });
50
- const avatar = react_utilities_1.resolveShorthand(props.avatar);
51
- let icon;
52
- /** Avatar prop takes precedence over the icon or intent prop */
53
- if (!avatar) {
54
- icon = react_utilities_1.resolveShorthand(props.icon, {
55
- defaultProps: {
56
- children: defaultIcon
57
- },
58
- required: !!props.intent
35
+ const action = (0, _reactUtilities.resolveShorthand)(props.action, {
36
+ defaultProps: {
37
+ appearance: 'transparent'
38
+ }
59
39
  });
60
- }
61
- return {
62
- action,
63
- appearance,
64
- avatar,
65
- components: {
66
- root: 'div',
67
- icon: 'span',
68
- action: react_button_1.Button,
69
- avatar: react_avatar_1.Avatar
70
- },
71
- icon,
72
- intent,
73
- root: react_utilities_1.getNativeElementProps('div', {
74
- ref,
75
- role: defaultRole,
76
- children: props.children,
77
- ...props
78
- })
79
- };
80
- };
81
- exports.useAlert_unstable = useAlert_unstable;
40
+ const avatar = (0, _reactUtilities.resolveShorthand)(props.avatar);
41
+ let icon;
42
+ /** Avatar prop takes precedence over the icon or intent prop */ if (!avatar) {
43
+ icon = (0, _reactUtilities.resolveShorthand)(props.icon, {
44
+ defaultProps: {
45
+ children: defaultIcon
46
+ },
47
+ required: !!props.intent
48
+ });
49
+ }
50
+ return {
51
+ action,
52
+ appearance,
53
+ avatar,
54
+ components: {
55
+ root: 'div',
56
+ icon: 'span',
57
+ action: _reactButton.Button,
58
+ avatar: _reactAvatar.Avatar
59
+ },
60
+ icon,
61
+ intent,
62
+ root: (0, _reactUtilities.getNativeElementProps)('div', {
63
+ ref,
64
+ role: defaultRole,
65
+ children: props.children,
66
+ ...props
67
+ })
68
+ };
69
+ }; //# sourceMappingURL=useAlert.js.map
70
+
82
71
  //# sourceMappingURL=useAlert.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","react_avatar_1","react_button_1","react_icons_1","react_utilities_1","useAlert_unstable","props","ref","appearance","intent","defaultIcon","defaultRole","createElement","CheckmarkCircleFilled","DismissCircleFilled","WarningFilled","InfoFilled","action","resolveShorthand","defaultProps","avatar","icon","children","required","components","root","Button","Avatar","getNativeElementProps","role","exports"],"sources":["../src/packages/react-components/react-alert/src/components/Alert/useAlert.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Avatar } from '@fluentui/react-avatar';\nimport { Button } from '@fluentui/react-button';\nimport { CheckmarkCircleFilled, DismissCircleFilled, InfoFilled, WarningFilled } from '@fluentui/react-icons';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\n\nimport type { AlertProps, AlertState } from './Alert.types';\n\n/**\n * Create the state required to render Alert.\n *\n * The returned state can be modified with hooks such as useAlertStyles_unstable,\n * before being passed to renderAlert_unstable.\n *\n * @param props - props from this instance of Alert\n * @param ref - reference to root HTMLElement of Alert\n */\nexport const useAlert_unstable = (props: AlertProps, ref: React.Ref<HTMLElement>): AlertState => {\n const { appearance = 'primary', intent } = props;\n\n /** Determine the role and icon to render based on the intent */\n let defaultIcon;\n let defaultRole = 'status';\n switch (intent) {\n case 'success':\n defaultIcon = <CheckmarkCircleFilled />;\n break;\n case 'error':\n defaultIcon = <DismissCircleFilled />;\n defaultRole = 'alert';\n break;\n case 'warning':\n defaultIcon = <WarningFilled />;\n defaultRole = 'alert';\n break;\n case 'info':\n defaultIcon = <InfoFilled />;\n break;\n }\n\n const action = resolveShorthand(props.action, { defaultProps: { appearance: 'transparent' } });\n const avatar = resolveShorthand(props.avatar);\n let icon;\n /** Avatar prop takes precedence over the icon or intent prop */\n if (!avatar) {\n icon = resolveShorthand(props.icon, {\n defaultProps: {\n children: defaultIcon,\n },\n required: !!props.intent,\n });\n }\n\n return {\n action,\n appearance,\n avatar,\n components: {\n root: 'div',\n icon: 'span',\n action: Button,\n avatar: Avatar,\n },\n icon,\n intent,\n root: getNativeElementProps('div', {\n ref,\n role: defaultRole,\n children: props.children,\n ...props,\n }),\n };\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AAEA,MAAAC,cAAA,gBAAAD,OAAA;AACA,MAAAE,cAAA,gBAAAF,OAAA;AACA,MAAAG,aAAA,gBAAAH,OAAA;AACA,MAAAI,iBAAA,gBAAAJ,OAAA;AAIA;;;;;;;;;AASO,MAAMK,iBAAiB,GAAGA,CAACC,KAAiB,EAAEC,GAA2B,KAAgB;EAC9F,MAAM;IAAEC,UAAU,GAAG,SAAS;IAAEC;EAAM,CAAE,GAAGH,KAAK;EAEhD;EACA,IAAII,WAAW;EACf,IAAIC,WAAW,GAAG,QAAQ;EAC1B,QAAQF,MAAM;IACZ,KAAK,SAAS;MACZC,WAAW,GAAGX,KAAA,CAAAa,aAAA,CAACT,aAAA,CAAAU,qBAAqB,OAAG;MACvC;IACF,KAAK,OAAO;MACVH,WAAW,GAAGX,KAAA,CAAAa,aAAA,CAACT,aAAA,CAAAW,mBAAmB,OAAG;MACrCH,WAAW,GAAG,OAAO;MACrB;IACF,KAAK,SAAS;MACZD,WAAW,GAAGX,KAAA,CAAAa,aAAA,CAACT,aAAA,CAAAY,aAAa,OAAG;MAC/BJ,WAAW,GAAG,OAAO;MACrB;IACF,KAAK,MAAM;MACTD,WAAW,GAAGX,KAAA,CAAAa,aAAA,CAACT,aAAA,CAAAa,UAAU,OAAG;MAC5B;EAAM;EAGV,MAAMC,MAAM,GAAGb,iBAAA,CAAAc,gBAAgB,CAACZ,KAAK,CAACW,MAAM,EAAE;IAAEE,YAAY,EAAE;MAAEX,UAAU,EAAE;IAAa;EAAE,CAAE,CAAC;EAC9F,MAAMY,MAAM,GAAGhB,iBAAA,CAAAc,gBAAgB,CAACZ,KAAK,CAACc,MAAM,CAAC;EAC7C,IAAIC,IAAI;EACR;EACA,IAAI,CAACD,MAAM,EAAE;IACXC,IAAI,GAAGjB,iBAAA,CAAAc,gBAAgB,CAACZ,KAAK,CAACe,IAAI,EAAE;MAClCF,YAAY,EAAE;QACZG,QAAQ,EAAEZ;OACX;MACDa,QAAQ,EAAE,CAAC,CAACjB,KAAK,CAACG;KACnB,CAAC;;EAGJ,OAAO;IACLQ,MAAM;IACNT,UAAU;IACVY,MAAM;IACNI,UAAU,EAAE;MACVC,IAAI,EAAE,KAAK;MACXJ,IAAI,EAAE,MAAM;MACZJ,MAAM,EAAEf,cAAA,CAAAwB,MAAM;MACdN,MAAM,EAAEnB,cAAA,CAAA0B;KACT;IACDN,IAAI;IACJZ,MAAM;IACNgB,IAAI,EAAErB,iBAAA,CAAAwB,qBAAqB,CAAC,KAAK,EAAE;MACjCrB,GAAG;MACHsB,IAAI,EAAElB,WAAW;MACjBW,QAAQ,EAAEhB,KAAK,CAACgB,QAAQ;MACxB,GAAGhB;KACJ;GACF;AACH,CAAC;AAvDYwB,OAAA,CAAAzB,iBAAiB,GAAAA,iBAAA"}
1
+ {"version":3,"sources":["../../../lib/components/Alert/useAlert.js"],"sourcesContent":["import * as React from 'react';\nimport { Avatar } from '@fluentui/react-avatar';\nimport { Button } from '@fluentui/react-button';\nimport { CheckmarkCircleFilled, DismissCircleFilled, InfoFilled, WarningFilled } from '@fluentui/react-icons';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\n/**\n * Create the state required to render Alert.\n *\n * The returned state can be modified with hooks such as useAlertStyles_unstable,\n * before being passed to renderAlert_unstable.\n *\n * @param props - props from this instance of Alert\n * @param ref - reference to root HTMLElement of Alert\n */\nexport const useAlert_unstable = (props, ref) => {\n const {\n appearance = 'primary',\n intent\n } = props;\n /** Determine the role and icon to render based on the intent */\n let defaultIcon;\n let defaultRole = 'status';\n switch (intent) {\n case 'success':\n defaultIcon = /*#__PURE__*/React.createElement(CheckmarkCircleFilled, null);\n break;\n case 'error':\n defaultIcon = /*#__PURE__*/React.createElement(DismissCircleFilled, null);\n defaultRole = 'alert';\n break;\n case 'warning':\n defaultIcon = /*#__PURE__*/React.createElement(WarningFilled, null);\n defaultRole = 'alert';\n break;\n case 'info':\n defaultIcon = /*#__PURE__*/React.createElement(InfoFilled, null);\n break;\n }\n const action = resolveShorthand(props.action, {\n defaultProps: {\n appearance: 'transparent'\n }\n });\n const avatar = resolveShorthand(props.avatar);\n let icon;\n /** Avatar prop takes precedence over the icon or intent prop */\n if (!avatar) {\n icon = resolveShorthand(props.icon, {\n defaultProps: {\n children: defaultIcon\n },\n required: !!props.intent\n });\n }\n return {\n action,\n appearance,\n avatar,\n components: {\n root: 'div',\n icon: 'span',\n action: Button,\n avatar: Avatar\n },\n icon,\n intent,\n root: getNativeElementProps('div', {\n ref,\n role: defaultRole,\n children: props.children,\n ...props\n })\n };\n};\n//# sourceMappingURL=useAlert.js.map"],"names":["useAlert_unstable","props","ref","appearance","intent","defaultIcon","defaultRole","React","createElement","CheckmarkCircleFilled","DismissCircleFilled","WarningFilled","InfoFilled","action","resolveShorthand","defaultProps","avatar","icon","children","required","components","root","Button","Avatar","getNativeElementProps","role"],"mappings":";;;;+BAcaA;;aAAAA;;;6DAdU;6BACA;6BACA;4BAC+D;gCAC9B;AAUjD,MAAMA,oBAAoB,CAACC,OAAOC,MAAQ;IAC/C,MAAM,EACJC,YAAa,UAAS,EACtBC,OAAM,EACP,GAAGH;IACJ,8DAA8D,GAC9D,IAAII;IACJ,IAAIC,cAAc;IAClB,OAAQF;QACN,KAAK;YACHC,cAAc,WAAW,GAAEE,OAAMC,aAAa,CAACC,iCAAqB,EAAE,IAAI;YAC1E,KAAM;QACR,KAAK;YACHJ,cAAc,WAAW,GAAEE,OAAMC,aAAa,CAACE,+BAAmB,EAAE,IAAI;YACxEJ,cAAc;YACd,KAAM;QACR,KAAK;YACHD,cAAc,WAAW,GAAEE,OAAMC,aAAa,CAACG,yBAAa,EAAE,IAAI;YAClEL,cAAc;YACd,KAAM;QACR,KAAK;YACHD,cAAc,WAAW,GAAEE,OAAMC,aAAa,CAACI,sBAAU,EAAE,IAAI;YAC/D,KAAM;IACV;IACA,MAAMC,SAASC,IAAAA,gCAAgB,EAACb,MAAMY,MAAM,EAAE;QAC5CE,cAAc;YACZZ,YAAY;QACd;IACF;IACA,MAAMa,SAASF,IAAAA,gCAAgB,EAACb,MAAMe,MAAM;IAC5C,IAAIC;IACJ,8DAA8D,GAC9D,IAAI,CAACD,QAAQ;QACXC,OAAOH,IAAAA,gCAAgB,EAACb,MAAMgB,IAAI,EAAE;YAClCF,cAAc;gBACZG,UAAUb;YACZ;YACAc,UAAU,CAAC,CAAClB,MAAMG,MAAM;QAC1B;IACF,CAAC;IACD,OAAO;QACLS;QACAV;QACAa;QACAI,YAAY;YACVC,MAAM;YACNJ,MAAM;YACNJ,QAAQS,mBAAM;YACdN,QAAQO,mBAAM;QAChB;QACAN;QACAb;QACAiB,MAAMG,IAAAA,qCAAqB,EAAC,OAAO;YACjCtB;YACAuB,MAAMnB;YACNY,UAAUjB,MAAMiB,QAAQ;YACxB,GAAGjB,KAAK;QACV;IACF;AACF,GACA,oCAAoC"}
@@ -1,144 +1,278 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ alertClassNames: ()=>alertClassNames,
13
+ useAlertStyles_unstable: ()=>useAlertStyles_unstable
5
14
  });
6
- exports.useAlertStyles_unstable = exports.alertClassNames = void 0;
7
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
8
- const react_1 = /*#__PURE__*/require("@griffel/react");
9
- const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
10
- exports.alertClassNames = {
11
- root: 'fui-Alert',
12
- icon: 'fui-Alert__icon',
13
- action: 'fui-Alert__action',
14
- avatar: 'fui-Alert__avatar'
15
+ const _react = require("@griffel/react");
16
+ const alertClassNames = {
17
+ root: 'fui-Alert',
18
+ icon: 'fui-Alert__icon',
19
+ action: 'fui-Alert__action',
20
+ avatar: 'fui-Alert__avatar'
15
21
  };
16
- const useStyles = /*#__PURE__*/react_1.__styles({
17
- root: {
18
- mc9l5x: "f22iagw",
19
- Bt984gj: "f122n59",
20
- sshi5w: "f5pgtk9",
21
- z8tnut: "f1g0x7ka",
22
- z189sj: ["f11qrl6u", "fjlbh76"],
23
- Byoj8tv: "f1qch9an",
24
- uwmqm3: ["fjlbh76", "f11qrl6u"],
25
- Bbmb7ep: ["fff7au0", "f1bjk9e1"],
26
- Beyfa6y: ["f1bjk9e1", "fff7au0"],
27
- B7oj6ja: ["fwsfkhu", "f8wkphi"],
28
- Btl43ni: ["f8wkphi", "fwsfkhu"],
29
- B4j52fo: "f5ogflp",
30
- Bekrc4i: ["f1hqa2wf", "finvdd3"],
31
- Bn0qgzm: "f1f09k3d",
32
- ibv6hh: ["finvdd3", "f1hqa2wf"],
33
- icvyot: "fzkkow9",
34
- vrafjx: ["fcdblym", "fjik90z"],
35
- oivjwe: "fg706s2",
36
- wvpqe5: ["fjik90z", "fcdblym"],
37
- g2u3we: "fghlq4f",
38
- h3c5rm: ["f1gn591s", "fjscplz"],
39
- B9xav0g: "fb073pr",
40
- zhjwy3: ["fjscplz", "f1gn591s"],
41
- E5pizo: "fz58gqq",
42
- Be2twd7: "fkhj508",
43
- Bhrd7zp: "fl43uef",
44
- sj55zd: "f19n0e5",
45
- De3pzq: "fxugw4r"
46
- },
47
- inverted: {
48
- sj55zd: "f1w7i9ko",
49
- De3pzq: "f5pduvr"
50
- },
51
- icon: {
52
- Bqenvij: "fd461yt",
53
- Be2twd7: "f4ybsrx",
54
- z8tnut: "f1g0x7ka",
55
- z189sj: ["f19lj068", "f177v4lu"],
56
- Byoj8tv: "f1qch9an",
57
- uwmqm3: ["f1cnd47f", "fhxju0i"]
58
- },
59
- avatar: {
60
- B6of3ja: "f1hu3pq6",
61
- t21cq0: ["f1phki43", "ff9s3yw"],
62
- jrapky: "f19f4twv",
63
- Frg6f3: ["f1tyq0we", "f11qmguv"]
64
- },
65
- action: {
66
- z8tnut: "f1sbtcvk",
67
- z189sj: ["f81rol6", "frdkuqy"],
68
- Byoj8tv: "fdghr9",
69
- uwmqm3: ["frdkuqy", "f81rol6"],
70
- Bf4jedk: "fy77jfu",
71
- Frg6f3: ["fcgxt0o", "f1ujusj6"],
72
- sj55zd: "f16muhyy"
73
- }
22
+ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
23
+ root: {
24
+ mc9l5x: "f22iagw",
25
+ Bt984gj: "f122n59",
26
+ sshi5w: "f5pgtk9",
27
+ z8tnut: "f1g0x7ka",
28
+ z189sj: [
29
+ "f11qrl6u",
30
+ "fjlbh76"
31
+ ],
32
+ Byoj8tv: "f1qch9an",
33
+ uwmqm3: [
34
+ "fjlbh76",
35
+ "f11qrl6u"
36
+ ],
37
+ Bbmb7ep: [
38
+ "fff7au0",
39
+ "f1bjk9e1"
40
+ ],
41
+ Beyfa6y: [
42
+ "f1bjk9e1",
43
+ "fff7au0"
44
+ ],
45
+ B7oj6ja: [
46
+ "fwsfkhu",
47
+ "f8wkphi"
48
+ ],
49
+ Btl43ni: [
50
+ "f8wkphi",
51
+ "fwsfkhu"
52
+ ],
53
+ B4j52fo: "f5ogflp",
54
+ Bekrc4i: [
55
+ "f1hqa2wf",
56
+ "finvdd3"
57
+ ],
58
+ Bn0qgzm: "f1f09k3d",
59
+ ibv6hh: [
60
+ "finvdd3",
61
+ "f1hqa2wf"
62
+ ],
63
+ icvyot: "fzkkow9",
64
+ vrafjx: [
65
+ "fcdblym",
66
+ "fjik90z"
67
+ ],
68
+ oivjwe: "fg706s2",
69
+ wvpqe5: [
70
+ "fjik90z",
71
+ "fcdblym"
72
+ ],
73
+ g2u3we: "fghlq4f",
74
+ h3c5rm: [
75
+ "f1gn591s",
76
+ "fjscplz"
77
+ ],
78
+ B9xav0g: "fb073pr",
79
+ zhjwy3: [
80
+ "fjscplz",
81
+ "f1gn591s"
82
+ ],
83
+ E5pizo: "fz58gqq",
84
+ Be2twd7: "fkhj508",
85
+ Bhrd7zp: "fl43uef",
86
+ sj55zd: "f19n0e5",
87
+ De3pzq: "fxugw4r"
88
+ },
89
+ inverted: {
90
+ sj55zd: "f1w7i9ko",
91
+ De3pzq: "f5pduvr"
92
+ },
93
+ icon: {
94
+ Bqenvij: "fd461yt",
95
+ Be2twd7: "f4ybsrx",
96
+ z8tnut: "f1g0x7ka",
97
+ z189sj: [
98
+ "f19lj068",
99
+ "f177v4lu"
100
+ ],
101
+ Byoj8tv: "f1qch9an",
102
+ uwmqm3: [
103
+ "f1cnd47f",
104
+ "fhxju0i"
105
+ ]
106
+ },
107
+ avatar: {
108
+ B6of3ja: "f1hu3pq6",
109
+ t21cq0: [
110
+ "f1phki43",
111
+ "ff9s3yw"
112
+ ],
113
+ jrapky: "f19f4twv",
114
+ Frg6f3: [
115
+ "f1tyq0we",
116
+ "f11qmguv"
117
+ ]
118
+ },
119
+ action: {
120
+ z8tnut: "f1sbtcvk",
121
+ z189sj: [
122
+ "f81rol6",
123
+ "frdkuqy"
124
+ ],
125
+ Byoj8tv: "fdghr9",
126
+ uwmqm3: [
127
+ "frdkuqy",
128
+ "f81rol6"
129
+ ],
130
+ Bf4jedk: "fy77jfu",
131
+ Frg6f3: [
132
+ "fcgxt0o",
133
+ "f1ujusj6"
134
+ ],
135
+ sj55zd: "f16muhyy"
136
+ }
74
137
  }, {
75
- d: [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f5pgtk9{min-height:44px;}", ".f1g0x7ka{padding-top:0;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f1qch9an{padding-bottom:0;}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".fz58gqq{box-shadow:var(--shadow8);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}", ".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}", ".fd461yt{height:16px;}", ".f4ybsrx{font-size:16px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f1cnd47f{padding-left:0;}", ".fhxju0i{padding-right:0;}", ".f1hu3pq6{margin-top:0;}", ".f1phki43{margin-right:8px;}", ".ff9s3yw{margin-left:8px;}", ".f19f4twv{margin-bottom:0;}", ".f1tyq0we{margin-left:0;}", ".f11qmguv{margin-right:0;}", ".f1sbtcvk{padding-top:5px;}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".fdghr9{padding-bottom:5px;}", ".fy77jfu{min-width:0;}", ".fcgxt0o{margin-left:auto;}", ".f1ujusj6{margin-right:auto;}", ".f16muhyy{color:var(--colorBrandForeground1);}"]
138
+ d: [
139
+ ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
140
+ ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",
141
+ ".f5pgtk9{min-height:44px;}",
142
+ ".f1g0x7ka{padding-top:0;}",
143
+ ".f11qrl6u{padding-right:12px;}",
144
+ ".fjlbh76{padding-left:12px;}",
145
+ ".f1qch9an{padding-bottom:0;}",
146
+ ".fff7au0{border-bottom-right-radius:4px;}",
147
+ ".f1bjk9e1{border-bottom-left-radius:4px;}",
148
+ ".fwsfkhu{border-top-right-radius:4px;}",
149
+ ".f8wkphi{border-top-left-radius:4px;}",
150
+ ".f5ogflp{border-top-width:1px;}",
151
+ ".f1hqa2wf{border-right-width:1px;}",
152
+ ".finvdd3{border-left-width:1px;}",
153
+ ".f1f09k3d{border-bottom-width:1px;}",
154
+ ".fzkkow9{border-top-style:solid;}",
155
+ ".fcdblym{border-right-style:solid;}",
156
+ ".fjik90z{border-left-style:solid;}",
157
+ ".fg706s2{border-bottom-style:solid;}",
158
+ ".fghlq4f{border-top-color:var(--colorTransparentStroke);}",
159
+ ".f1gn591s{border-right-color:var(--colorTransparentStroke);}",
160
+ ".fjscplz{border-left-color:var(--colorTransparentStroke);}",
161
+ ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",
162
+ ".fz58gqq{box-shadow:var(--shadow8);}",
163
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
164
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
165
+ ".f19n0e5{color:var(--colorNeutralForeground1);}",
166
+ ".fxugw4r{background-color:var(--colorNeutralBackground1);}",
167
+ ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",
168
+ ".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}",
169
+ ".fd461yt{height:16px;}",
170
+ ".f4ybsrx{font-size:16px;}",
171
+ ".f19lj068{padding-right:8px;}",
172
+ ".f177v4lu{padding-left:8px;}",
173
+ ".f1cnd47f{padding-left:0;}",
174
+ ".fhxju0i{padding-right:0;}",
175
+ ".f1hu3pq6{margin-top:0;}",
176
+ ".f1phki43{margin-right:8px;}",
177
+ ".ff9s3yw{margin-left:8px;}",
178
+ ".f19f4twv{margin-bottom:0;}",
179
+ ".f1tyq0we{margin-left:0;}",
180
+ ".f11qmguv{margin-right:0;}",
181
+ ".f1sbtcvk{padding-top:5px;}",
182
+ ".f81rol6{padding-right:10px;}",
183
+ ".frdkuqy{padding-left:10px;}",
184
+ ".fdghr9{padding-bottom:5px;}",
185
+ ".fy77jfu{min-width:0;}",
186
+ ".fcgxt0o{margin-left:auto;}",
187
+ ".f1ujusj6{margin-right:auto;}",
188
+ ".f16muhyy{color:var(--colorBrandForeground1);}"
189
+ ]
76
190
  });
77
- const useIntentIconStyles = /*#__PURE__*/react_1.__styles({
78
- success: {
79
- sj55zd: "f1m7fhi8"
80
- },
81
- error: {
82
- sj55zd: "f1whyuy6"
83
- },
84
- warning: {
85
- sj55zd: "fpti2h4"
86
- },
87
- info: {
88
- sj55zd: "fkfq4zb"
89
- }
191
+ const useIntentIconStyles = /*#__PURE__*/ (0, _react["__styles"])({
192
+ success: {
193
+ sj55zd: "f1m7fhi8"
194
+ },
195
+ error: {
196
+ sj55zd: "f1whyuy6"
197
+ },
198
+ warning: {
199
+ sj55zd: "fpti2h4"
200
+ },
201
+ info: {
202
+ sj55zd: "fkfq4zb"
203
+ }
90
204
  }, {
91
- d: [".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}", ".f1whyuy6{color:var(--colorPaletteRedForeground3);}", ".fpti2h4{color:var(--colorPaletteYellowForeground2);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}"]
205
+ d: [
206
+ ".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",
207
+ ".f1whyuy6{color:var(--colorPaletteRedForeground3);}",
208
+ ".fpti2h4{color:var(--colorPaletteYellowForeground2);}",
209
+ ".fkfq4zb{color:var(--colorNeutralForeground2);}"
210
+ ]
92
211
  });
93
- const useIntentIconStylesInverted = /*#__PURE__*/react_1.__styles({
94
- success: {
95
- sj55zd: "f1pvjcpr"
96
- },
97
- error: {
98
- sj55zd: "fcrp5ll"
99
- },
100
- warning: {
101
- sj55zd: "f1r8f1cl"
102
- },
103
- info: {
104
- sj55zd: "f1w7i9ko"
105
- }
212
+ const useIntentIconStylesInverted = /*#__PURE__*/ (0, _react["__styles"])({
213
+ success: {
214
+ sj55zd: "f1pvjcpr"
215
+ },
216
+ error: {
217
+ sj55zd: "fcrp5ll"
218
+ },
219
+ warning: {
220
+ sj55zd: "f1r8f1cl"
221
+ },
222
+ info: {
223
+ sj55zd: "f1w7i9ko"
224
+ }
106
225
  }, {
107
- d: [".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}", ".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}", ".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}", ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]
226
+ d: [
227
+ ".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",
228
+ ".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",
229
+ ".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",
230
+ ".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"
231
+ ]
108
232
  });
109
- const useActionButtonColorInverted = /*#__PURE__*/react_1.__styles({
110
- action: {
111
- sj55zd: "f1qz2gb0",
112
- B8q5s1w: "fa5e339",
113
- Bci5o5g: ["fk4svks", "fqzoz0o"],
114
- n8qw10: "fw8q0i0",
115
- Bdrgwmp: ["fqzoz0o", "fk4svks"],
116
- Bfpq7zp: "f1dlk4fq"
117
- }
233
+ const useActionButtonColorInverted = /*#__PURE__*/ (0, _react["__styles"])({
234
+ action: {
235
+ sj55zd: "f1qz2gb0",
236
+ B8q5s1w: "fa5e339",
237
+ Bci5o5g: [
238
+ "fk4svks",
239
+ "fqzoz0o"
240
+ ],
241
+ n8qw10: "fw8q0i0",
242
+ Bdrgwmp: [
243
+ "fqzoz0o",
244
+ "fk4svks"
245
+ ],
246
+ Bfpq7zp: "f1dlk4fq"
247
+ }
118
248
  }, {
119
- d: [".f1qz2gb0{color:var(--colorBrandForegroundInverted);}", ".fa5e339[data-fui-focus-visible]{border-top-color:var(--colorTransparentStrokeInteractive);}", ".fk4svks[data-fui-focus-visible]{border-right-color:var(--colorTransparentStrokeInteractive);}", ".fqzoz0o[data-fui-focus-visible]{border-left-color:var(--colorTransparentStrokeInteractive);}", ".fw8q0i0[data-fui-focus-visible]{border-bottom-color:var(--colorTransparentStrokeInteractive);}", ".f1dlk4fq[data-fui-focus-visible]{outline-color:var(--colorNeutralBackground5Pressed);}"]
249
+ d: [
250
+ ".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",
251
+ ".fa5e339[data-fui-focus-visible]{border-top-color:var(--colorTransparentStrokeInteractive);}",
252
+ ".fk4svks[data-fui-focus-visible]{border-right-color:var(--colorTransparentStrokeInteractive);}",
253
+ ".fqzoz0o[data-fui-focus-visible]{border-left-color:var(--colorTransparentStrokeInteractive);}",
254
+ ".fw8q0i0[data-fui-focus-visible]{border-bottom-color:var(--colorTransparentStrokeInteractive);}",
255
+ ".f1dlk4fq[data-fui-focus-visible]{outline-color:var(--colorNeutralBackground5Pressed);}"
256
+ ]
120
257
  });
121
- /**
122
- * Apply styling to the Alert slots based on the state
123
- */
124
- const useAlertStyles_unstable = state => {
125
- const inverted = state.appearance === 'inverted';
126
- const styles = useStyles();
127
- const intentIconStylesPrimary = useIntentIconStyles();
128
- const intentIconStylesInverted = useIntentIconStylesInverted();
129
- const actionStylesInverted = useActionButtonColorInverted();
130
- state.root.className = react_1.mergeClasses(exports.alertClassNames.root, styles.root, inverted && styles.inverted, state.root.className);
131
- if (state.icon) {
132
- state.icon.className = react_1.mergeClasses(exports.alertClassNames.icon, styles.icon, state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]), state.icon.className);
133
- }
134
- if (state.avatar) {
135
- state.avatar.className = react_1.mergeClasses(exports.alertClassNames.avatar, styles.avatar, state.avatar.className);
136
- }
137
- if (state.action) {
138
- // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last
139
- state.action.className = react_1.mergeClasses(exports.alertClassNames.action, styles.action, inverted && actionStylesInverted.action, state.action.className);
140
- }
141
- return state;
142
- };
143
- exports.useAlertStyles_unstable = useAlertStyles_unstable;
258
+ const useAlertStyles_unstable = (state)=>{
259
+ const inverted = state.appearance === 'inverted';
260
+ const styles = useStyles();
261
+ const intentIconStylesPrimary = useIntentIconStyles();
262
+ const intentIconStylesInverted = useIntentIconStylesInverted();
263
+ const actionStylesInverted = useActionButtonColorInverted();
264
+ state.root.className = (0, _react.mergeClasses)(alertClassNames.root, styles.root, inverted && styles.inverted, state.root.className);
265
+ if (state.icon) {
266
+ state.icon.className = (0, _react.mergeClasses)(alertClassNames.icon, styles.icon, state.intent && (inverted ? intentIconStylesInverted[state.intent] : intentIconStylesPrimary[state.intent]), state.icon.className);
267
+ }
268
+ if (state.avatar) {
269
+ state.avatar.className = (0, _react.mergeClasses)(alertClassNames.avatar, styles.avatar, state.avatar.className);
270
+ }
271
+ if (state.action) {
272
+ // Note: inverted && actionStylesInverted.action has the highest piority and must be merged last
273
+ state.action.className = (0, _react.mergeClasses)(alertClassNames.action, styles.action, inverted && actionStylesInverted.action, state.action.className);
274
+ }
275
+ return state;
276
+ }; //# sourceMappingURL=useAlertStyles.js.map
277
+
144
278
  //# sourceMappingURL=useAlertStyles.js.map