@kaizen/components 0.0.0-canary-kaio-moduleres-bundler-20240308005620 → 0.0.0-canary-less-gung-ho-20240308011930

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.
Files changed (42) hide show
  1. package/dist/cjs/KaizenProvider/KaizenProvider.cjs +17 -26
  2. package/dist/cjs/KaizenProvider/KaizenProvider.cjs.map +1 -1
  3. package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs +2 -59
  4. package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs.map +1 -1
  5. package/dist/cjs/Tag/Tag.cjs +3 -123
  6. package/dist/cjs/Tag/Tag.cjs.map +1 -1
  7. package/dist/cjs/dts/Tag/Tag.d.ts +0 -4
  8. package/dist/cjs/index.css +3 -4
  9. package/dist/esm/KaizenProvider/KaizenProvider.mjs +19 -27
  10. package/dist/esm/KaizenProvider/KaizenProvider.mjs.map +1 -1
  11. package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +4 -60
  12. package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs.map +1 -1
  13. package/dist/esm/Tag/Tag.mjs +3 -123
  14. package/dist/esm/Tag/Tag.mjs.map +1 -1
  15. package/dist/esm/dts/Tag/Tag.d.ts +0 -4
  16. package/dist/esm/index.css +5 -6
  17. package/dist/index.d.ts +0 -4
  18. package/dist/styles.css +1 -1
  19. package/package.json +1 -1
  20. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +1 -1
  21. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +1 -1
  22. package/src/Filter/Filter/_docs/Filter.stickersheet.stories.tsx +1 -1
  23. package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stickersheet.stories.tsx +1 -1
  24. package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +1 -1
  25. package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +1 -1
  26. package/src/Filter/FilterSelect/_docs/FilterSelect.stickersheet.stories.tsx +1 -1
  27. package/src/KaizenProvider/KaizenProvider.tsx +22 -22
  28. package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.stories.tsx +1 -1
  29. package/src/Modal/ContextModal/_docs/ContextModal.stories.tsx +1 -1
  30. package/src/Modal/InputEditModal/_docs/InputEditModal.stories.tsx +1 -1
  31. package/src/Modal/_docs/controls.tsx +1 -1
  32. package/src/MultiSelect/_docs/MultiSelect.stickersheet.stories.tsx +1 -1
  33. package/src/Tag/Tag.tsx +3 -159
  34. package/src/__future__/Select/_docs/Select.stickersheet.stories.tsx +1 -1
  35. package/dist/cjs/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.cjs +0 -20
  36. package/dist/cjs/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.cjs.map +0 -1
  37. package/dist/cjs/Tag/Tag.module.scss.cjs +0 -38
  38. package/dist/cjs/Tag/Tag.module.scss.cjs.map +0 -1
  39. package/dist/esm/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs +0 -18
  40. package/dist/esm/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs.map +0 -1
  41. package/dist/esm/Tag/Tag.module.scss.mjs +0 -36
  42. package/dist/esm/Tag/Tag.module.scss.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "0.0.0-canary-kaio-moduleres-bundler-20240308005620",
3
+ "version": "0.0.0-canary-less-gung-ho-20240308011930",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable jsx-a11y/anchor-is-valid */
2
2
  import React from "react"
3
3
  import { Meta, StoryObj } from "@storybook/react"
4
- import isChromatic from "chromatic/isChromatic"
4
+ import isChromatic from "chromatic"
5
5
  import {
6
6
  ArrowLeftIcon,
7
7
  ArrowRightIcon,
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta, StoryFn } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import { Button } from "~components/Button"
5
5
  import { ChevronRightIcon } from "~components/Icon"
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import { FilterButton } from "~components/Filter/FilterButton"
5
5
  import {
6
6
  StickerSheet,
@@ -2,7 +2,7 @@ import React, { useState } from "react"
2
2
  import { StaticIntlProvider } from "@cultureamp/i18n-react-intl"
3
3
  import { action } from "@storybook/addon-actions"
4
4
  import { Meta } from "@storybook/react"
5
- import isChromatic from "chromatic/isChromatic"
5
+ import isChromatic from "chromatic"
6
6
  import {
7
7
  StickerSheet,
8
8
  StickerSheetStory,
@@ -3,7 +3,7 @@ import { StaticIntlProvider } from "@cultureamp/i18n-react-intl"
3
3
  import { action } from "@storybook/addon-actions"
4
4
  import { Meta } from "@storybook/react"
5
5
  import { within, userEvent } from "@storybook/test"
6
- import isChromatic from "chromatic/isChromatic"
6
+ import isChromatic from "chromatic"
7
7
  import { DateRange } from "~components/Calendar"
8
8
  import {
9
9
  StickerSheet,
@@ -8,7 +8,7 @@ import {
8
8
  useQueryClient,
9
9
  keepPreviousData,
10
10
  } from "@tanstack/react-query"
11
- import isChromatic from "chromatic/isChromatic"
11
+ import isChromatic from "chromatic"
12
12
  import { InlineNotification } from "~components/Notification"
13
13
  import { Text } from "~components/Text"
14
14
  import { TextField } from "~components/TextField"
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import {
5
5
  StickerSheet,
6
6
  StickerSheetStory,
@@ -1,8 +1,8 @@
1
- import React, { useEffect, useState } from "react"
2
- import { ToastNotificationsList } from "~components/Notification"
3
- import { ToastNotificationProvider } from "~components/Notification/ToastNotification/context/ToastNotificationContext"
1
+ import React from "react"
2
+ // import { ToastNotificationsList } from "~components/Notification"
3
+ // import { ToastNotificationProvider } from "~components/Notification/ToastNotification/context/ToastNotificationContext"
4
4
  import { FontDefinitions } from "./subcomponents/FontDefinitions"
5
- import { OptionalIntlProvider } from "./subcomponents/OptionalIntlProvider"
5
+ // import { OptionalIntlProvider } from "./subcomponents/OptionalIntlProvider"
6
6
 
7
7
  export type KaizenProviderProps = {
8
8
  children: React.ReactNode
@@ -12,30 +12,30 @@ export type KaizenProviderProps = {
12
12
  export const KaizenProvider = ({
13
13
  children,
14
14
  locale = "en",
15
- }: KaizenProviderProps): JSX.Element => {
16
- const [documentIsAvailable, setDocumentIsAvailable] = useState<boolean>(false)
17
- const [notificationsList, setNotificationsList] = useState<JSX.Element>()
15
+ }: KaizenProviderProps): JSX.Element =>
16
+ // const [documentIsAvailable, setDocumentIsAvailable] = useState<boolean>(false)
17
+ // const [notificationsList, setNotificationsList] = useState<JSX.Element>()
18
18
 
19
- useEffect(() => {
20
- // SSR does not have a document, which is required for ToastNotificationsList.
21
- // Await document render before rendering the component.
22
- if (document !== undefined) {
23
- setNotificationsList(<ToastNotificationsList />)
24
- setDocumentIsAvailable(true)
25
- }
26
- }, [documentIsAvailable])
19
+ // useEffect(() => {
20
+ // // SSR does not have a document, which is required for ToastNotificationsList.
21
+ // // Await document render before rendering the component.
22
+ // if (document !== undefined) {
23
+ // setNotificationsList(<ToastNotificationsList />)
24
+ // setDocumentIsAvailable(true)
25
+ // }
26
+ // }, [documentIsAvailable])
27
27
 
28
- return (
29
- <OptionalIntlProvider locale={locale}>
28
+ (
29
+ // <OptionalIntlProvider locale={locale}>
30
30
  <>
31
- <ToastNotificationProvider>
32
- {notificationsList}
31
+ {/* <ToastNotificationProvider> */}
32
+ {/* {notificationsList} */}
33
33
  {children}
34
- </ToastNotificationProvider>
34
+ {/* </ToastNotificationProvider> */}
35
35
  <FontDefinitions />
36
36
  </>
37
- </OptionalIntlProvider>
37
+ // </OptionalIntlProvider>
38
38
  )
39
- }
39
+
40
40
 
41
41
  KaizenProvider.displayName = "KaizenProvider"
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import { Text } from "~components/Text"
5
5
  import { chromaticModalSettings } from "../../_docs/controls"
6
6
  import { ConfirmationModal } from "../index"
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import { AddImage } from "~components/Illustration"
5
5
  import { ModalAccessibleDescription } from "~components/Modal/GenericModal/subcomponents/ModalAccessibleDescription"
6
6
  import { Text } from "~components/Text"
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import { ModalAccessibleDescription } from "~components/Modal"
5
5
  import { Text } from "~components/Text"
6
6
  import { TextField } from "~components/TextField"
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Decorator } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
 
5
5
  const IS_CHROMATIC = isChromatic()
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import classnames from "classnames"
5
5
  import {
6
6
  StickerSheet,
package/src/Tag/Tag.tsx CHANGED
@@ -1,16 +1,6 @@
1
1
  import React from "react"
2
- import classnames from "classnames"
3
- import { Avatar, AvatarProps } from "~components/Avatar"
4
- import {
5
- CautionIcon,
6
- ClearIcon,
7
- ExclamationIcon,
8
- InformationIcon,
9
- LiveIcon,
10
- SuccessIcon,
11
- } from "~components/Icon"
2
+ import { AvatarProps } from "~components/Avatar"
12
3
  import { TagVariants } from "./types"
13
- import styles from "./Tag.module.scss"
14
4
 
15
5
  export type TagWithAvatarProps = Omit<DefaultTagProps, "variant"> & {
16
6
  variant: "profile"
@@ -33,155 +23,9 @@ export interface DefaultTagProps {
33
23
 
34
24
  export type TagProps = DefaultTagProps | TagWithAvatarProps
35
25
 
36
- const isJSXElement = (
37
- imageElementOrAvatarProps: JSX.Element | AvatarProps
38
- ): imageElementOrAvatarProps is JSX.Element =>
39
- "props" in imageElementOrAvatarProps
40
-
41
- const renderAvatar = (
42
- imageElementOrAvatarProps: JSX.Element | AvatarProps
43
- ): JSX.Element =>
44
- isJSXElement(imageElementOrAvatarProps) ? (
45
- <>{imageElementOrAvatarProps}</>
46
- ) : (
47
- <Avatar {...imageElementOrAvatarProps} size="small" />
48
- )
49
-
50
- /**
51
- * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081928978/Tags Guidance} |
52
- * {@link https://cultureamp.design/?path=/docs/components-tag--docs Storybook}
53
- */
54
26
  export const Tag = (props: TagProps): JSX.Element => {
55
- const {
56
- children,
57
- variant = "default",
58
- size = "medium",
59
- inline = false,
60
- dismissible = false,
61
- onDismiss,
62
- onMouseDown,
63
- onMouseLeave,
64
- truncateWidth,
65
- } = props
66
-
67
- const isTruncated = truncateWidth && truncateWidth > 0
68
- const canShowIcon = size === "medium"
69
- return (
70
- <div
71
- className={classnames(
72
- styles.root,
73
- styles[variant],
74
- variant === "profile" && styles.default,
75
- styles[size],
76
- inline && styles.inline,
77
- dismissible && styles.dismissible
78
- )}
79
- >
80
- <div className={styles.layoutContainer}>
81
- <>
82
- {canShowIcon &&
83
- ((): JSX.Element | void => {
84
- switch (props.variant) {
85
- case "validationPositive":
86
- return (
87
- <span className={styles.validationIcon}>
88
- <SuccessIcon role="presentation" />
89
- </span>
90
- )
91
- case "validationNegative":
92
- return (
93
- <span className={styles.validationIcon}>
94
- <ExclamationIcon role="presentation" />
95
- </span>
96
- )
97
- case "validationCautionary":
98
- return (
99
- <span className={styles.validationIcon}>
100
- <CautionIcon role="presentation" />
101
- </span>
102
- )
103
- case "validationInformative":
104
- return (
105
- <span className={styles.validationIcon}>
106
- <InformationIcon role="presentation" />
107
- </span>
108
- )
109
- case "profile":
110
- return (
111
- <span className={styles.profile}>
112
- {props.avatar && renderAvatar(props.avatar)}
113
- </span>
114
- )
115
- default:
116
- return
117
- }
118
- })()}
119
- <span
120
- className={classnames(
121
- styles.textContent,
122
- isTruncated && styles.truncate
123
- )}
124
- style={{
125
- maxWidth: isTruncated ? truncateWidth : undefined,
126
- }}
127
- >
128
- {children}
129
- </span>
130
- {dismissible && (
131
- <>
132
- <button
133
- type="button"
134
- className={styles.dismissButton}
135
- onClick={onDismiss}
136
- onMouseDown={onMouseDown}
137
- onMouseLeave={onMouseLeave}
138
- >
139
- <div className={styles.iconWrapper}>
140
- <ClearIcon inheritSize role="img" aria-label="Dismiss" />
141
- </div>
142
- </button>
143
- </>
144
- )}
145
- {variant === "statusLive" && (
146
- <span className={styles.liveIcon}>
147
- <LiveIcon
148
- role="presentation"
149
- classNameOverride={styles.liveIcon_base}
150
- width="16"
151
- height="16"
152
- viewBox="0 0 16 16"
153
- fill="none"
154
- />
155
- <LiveIcon
156
- role="presentation"
157
- classNameOverride={styles.liveIcon_1}
158
- width="16"
159
- height="16"
160
- viewBox="0 0 16 16"
161
- fill="none"
162
- />
163
- <LiveIcon
164
- role="presentation"
165
- classNameOverride={styles.liveIcon_2}
166
- width="16"
167
- height="16"
168
- viewBox="0 0 16 16"
169
- fill="none"
170
- />
171
- <LiveIcon
172
- role="presentation"
173
- classNameOverride={styles.liveIcon_3}
174
- width="16"
175
- height="16"
176
- viewBox="0 0 16 16"
177
- fill="none"
178
- />
179
- </span>
180
- )}
181
- </>
182
- </div>
183
- </div>
184
- )
27
+ const { variant = "default" } = props
28
+ return <div>Testing Tag component {variant}</div>
185
29
  }
186
30
 
187
31
  Tag.displayName = "Tag"
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import isChromatic from "chromatic/isChromatic"
3
+ import isChromatic from "chromatic"
4
4
  import {
5
5
  StickerSheet,
6
6
  StickerSheetStory,
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var i18nReactIntl = require('@cultureamp/i18n-react-intl');
5
- var reactIntl = require('react-intl');
6
- const OptionalIntlProvider = /*#__PURE__*/function () {
7
- const OptionalIntlProvider = function (_a) {
8
- var locale = _a.locale,
9
- children = _a.children;
10
- var parent = React.useContext(reactIntl.IntlContext);
11
- if (parent) return children;
12
- return React.createElement(i18nReactIntl.StaticIntlProvider, {
13
- locale: locale
14
- }, children);
15
- };
16
- OptionalIntlProvider.displayName = "OptionalIntlProvider";
17
- return OptionalIntlProvider;
18
- }();
19
- exports.OptionalIntlProvider = OptionalIntlProvider;
20
- //# sourceMappingURL=OptionalIntlProvider.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OptionalIntlProvider.cjs","sources":["../../../../../src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { StaticIntlProvider } from \"@cultureamp/i18n-react-intl\"\nimport { IntlContext } from \"react-intl\"\n\ntype Props = {\n locale: string\n children: React.ReactElement\n}\nexport const OptionalIntlProvider = ({\n locale,\n children,\n}: Props): JSX.Element => {\n const parent = useContext(IntlContext)\n\n if (parent) return children\n return <StaticIntlProvider locale={locale}>{children}</StaticIntlProvider>\n}\n\nOptionalIntlProvider.displayName = \"OptionalIntlProvider\"\n"],"names":["OptionalIntlProvider","_a","locale","children","parent","useContext","IntlContext","React","createElement","StaticIntlProvider","displayName"],"mappings":";;;;;MAQaA,oBAAoB;EAAA,MAApBA,oBAAoB,GAAG,SAAAA,CAACC,EAG7B,EAAA;QAFNC,MAAM,GAAAD,EAAA,CAAAC,MAAA;MACNC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;IAER,IAAMC,MAAM,GAAGC,gBAAU,CAACC,SAAAA,CAAAA,WAAW,CAAC;IAEtC,IAAIF,MAAM,EAAE,OAAOD,QAAQ;IAC3B,OAAOI,KAAA,CAAAC,aAAA,CAACC,aAAkB,CAAAA,kBAAA,EAAC;MAAAP,MAAM,EAAEA;IAAM,CAAA,EAAGC,QAAQ,CAAsB;EAC5E,CAAC;EAEDH,oBAAoB,CAACU,WAAW,GAAG,sBAAsB;EAAA,OAV5CV,oBAAoB;AAAA;"}
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "root": "Tag-module_root__uRhoc",
5
- "profile": "Tag-module_profile__OoGsS",
6
- "layoutContainer": "Tag-module_layoutContainer__pBLSz",
7
- "validationIcon": "Tag-module_validationIcon__B-YLv",
8
- "textContent": "Tag-module_textContent__q76X-",
9
- "iconWrapper": "Tag-module_iconWrapper__aPrKH",
10
- "dismissButton": "Tag-module_dismissButton__rHv7r",
11
- "background": "Tag-module_background__LkzGB",
12
- "truncate": "Tag-module_truncate__5w7HW",
13
- "inline": "Tag-module_inline__pPM-d",
14
- "medium": "Tag-module_medium__NkOrv",
15
- "small": "Tag-module_small__-xyNk",
16
- "default": "Tag-module_default__6PVke",
17
- "sentimentPositive": "Tag-module_sentimentPositive__nbqE1",
18
- "sentimentNeutral": "Tag-module_sentimentNeutral__8BtD8",
19
- "sentimentNegative": "Tag-module_sentimentNegative__1J85t",
20
- "sentimentNone": "Tag-module_sentimentNone__8BWjU",
21
- "validationPositive": "Tag-module_validationPositive__vgFUE",
22
- "validationInformative": "Tag-module_validationInformative__bnJ4A",
23
- "validationNegative": "Tag-module_validationNegative__lZgIY",
24
- "validationCautionary": "Tag-module_validationCautionary__ERS2t",
25
- "statusLive": "Tag-module_statusLive__xG48w",
26
- "statusAction": "Tag-module_statusAction__woL-O",
27
- "statusClosed": "Tag-module_statusClosed__VhZP-",
28
- "statusDraft": "Tag-module_statusDraft__9QZDv",
29
- "liveIcon": "Tag-module_liveIcon__URtak",
30
- "liveIcon_base": "Tag-module_liveIcon_base__Nk5um",
31
- "liveIcon_1": "Tag-module_liveIcon_1__STFJY",
32
- "liveIcon_2": "Tag-module_liveIcon_2__rko-D",
33
- "liveIcon_3": "Tag-module_liveIcon_3__fL71y",
34
- "pulse-inner": "Tag-module_pulse-inner__0-JFL",
35
- "pulse-outer": "Tag-module_pulse-outer__f9Oox"
36
- };
37
- module.exports = styles;
38
- //# sourceMappingURL=Tag.module.scss.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tag.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,18 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { StaticIntlProvider } from '@cultureamp/i18n-react-intl';
3
- import { IntlContext } from 'react-intl';
4
- const OptionalIntlProvider = /*#__PURE__*/function () {
5
- const OptionalIntlProvider = function (_a) {
6
- var locale = _a.locale,
7
- children = _a.children;
8
- var parent = useContext(IntlContext);
9
- if (parent) return children;
10
- return /*#__PURE__*/React.createElement(StaticIntlProvider, {
11
- locale: locale
12
- }, children);
13
- };
14
- OptionalIntlProvider.displayName = "OptionalIntlProvider";
15
- return OptionalIntlProvider;
16
- }();
17
- export { OptionalIntlProvider };
18
- //# sourceMappingURL=OptionalIntlProvider.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OptionalIntlProvider.mjs","sources":["../../../../../src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { StaticIntlProvider } from \"@cultureamp/i18n-react-intl\"\nimport { IntlContext } from \"react-intl\"\n\ntype Props = {\n locale: string\n children: React.ReactElement\n}\nexport const OptionalIntlProvider = ({\n locale,\n children,\n}: Props): JSX.Element => {\n const parent = useContext(IntlContext)\n\n if (parent) return children\n return <StaticIntlProvider locale={locale}>{children}</StaticIntlProvider>\n}\n\nOptionalIntlProvider.displayName = \"OptionalIntlProvider\"\n"],"names":["OptionalIntlProvider","_a","locale","children","parent","useContext","IntlContext","React","createElement","StaticIntlProvider","displayName"],"mappings":";;;MAQaA,oBAAoB;EAAA,MAApBA,oBAAoB,GAAG,SAAAA,CAACC,EAG7B,EAAA;QAFNC,MAAM,GAAAD,EAAA,CAAAC,MAAA;MACNC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;IAER,IAAMC,MAAM,GAAGC,UAAU,CAACC,WAAW,CAAC;IAEtC,IAAIF,MAAM,EAAE,OAAOD,QAAQ;IAC3B,oBAAOI,KAAA,CAAAC,aAAA,CAACC,kBAAkB,EAAC;MAAAP,MAAM,EAAEA;IAAM,CAAA,EAAGC,QAAQ,CAAsB;EAC5E,CAAC;EAEDH,oBAAoB,CAACU,WAAW,GAAG,sBAAsB;EAAA,OAV5CV,oBAAoB;AAAA;"}
@@ -1,36 +0,0 @@
1
- var styles = {
2
- "root": "Tag-module_root__uRhoc",
3
- "profile": "Tag-module_profile__OoGsS",
4
- "layoutContainer": "Tag-module_layoutContainer__pBLSz",
5
- "validationIcon": "Tag-module_validationIcon__B-YLv",
6
- "textContent": "Tag-module_textContent__q76X-",
7
- "iconWrapper": "Tag-module_iconWrapper__aPrKH",
8
- "dismissButton": "Tag-module_dismissButton__rHv7r",
9
- "background": "Tag-module_background__LkzGB",
10
- "truncate": "Tag-module_truncate__5w7HW",
11
- "inline": "Tag-module_inline__pPM-d",
12
- "medium": "Tag-module_medium__NkOrv",
13
- "small": "Tag-module_small__-xyNk",
14
- "default": "Tag-module_default__6PVke",
15
- "sentimentPositive": "Tag-module_sentimentPositive__nbqE1",
16
- "sentimentNeutral": "Tag-module_sentimentNeutral__8BtD8",
17
- "sentimentNegative": "Tag-module_sentimentNegative__1J85t",
18
- "sentimentNone": "Tag-module_sentimentNone__8BWjU",
19
- "validationPositive": "Tag-module_validationPositive__vgFUE",
20
- "validationInformative": "Tag-module_validationInformative__bnJ4A",
21
- "validationNegative": "Tag-module_validationNegative__lZgIY",
22
- "validationCautionary": "Tag-module_validationCautionary__ERS2t",
23
- "statusLive": "Tag-module_statusLive__xG48w",
24
- "statusAction": "Tag-module_statusAction__woL-O",
25
- "statusClosed": "Tag-module_statusClosed__VhZP-",
26
- "statusDraft": "Tag-module_statusDraft__9QZDv",
27
- "liveIcon": "Tag-module_liveIcon__URtak",
28
- "liveIcon_base": "Tag-module_liveIcon_base__Nk5um",
29
- "liveIcon_1": "Tag-module_liveIcon_1__STFJY",
30
- "liveIcon_2": "Tag-module_liveIcon_2__rko-D",
31
- "liveIcon_3": "Tag-module_liveIcon_3__fL71y",
32
- "pulse-inner": "Tag-module_pulse-inner__0-JFL",
33
- "pulse-outer": "Tag-module_pulse-outer__f9Oox"
34
- };
35
- export { styles as default };
36
- //# sourceMappingURL=Tag.module.scss.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tag.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}