@kaizen/components 1.63.2 → 1.64.0

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,8 +1,8 @@
1
- import React from "react";
1
+ import React, { HTMLAttributes } from "react";
2
2
  import { HeadingProps } from "../../Heading";
3
3
  import { OverrideClassName } from "../../types/OverrideClassName";
4
4
  import { GenericNotificationType, GenericNotificationVariant } from "../subcomponents/GenericNotification";
5
- export type InlineNotificationBase = OverrideClassName<{
5
+ export type InlineNotificationBase = {
6
6
  children?: React.ReactNode;
7
7
  /** @default false */
8
8
  persistent?: boolean;
@@ -13,7 +13,7 @@ export type InlineNotificationBase = OverrideClassName<{
13
13
  forceMultiline?: boolean;
14
14
  headingProps?: HeadingProps;
15
15
  isSubtle?: boolean;
16
- }>;
16
+ } & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "style">;
17
17
  export type InlineNotificationProps = InlineNotificationBase & (GenericNotificationType | GenericNotificationVariant);
18
18
  /**
19
19
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093392/Inline+Notification Guidance} |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.63.2",
3
+ "version": "1.64.0",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -120,8 +120,8 @@
120
120
  "svgo": "^3.3.2",
121
121
  "tslib": "^2.6.3",
122
122
  "tsx": "^4.17.0",
123
- "@kaizen/design-tokens": "10.6.1",
124
- "@kaizen/package-bundler": "1.1.5"
123
+ "@kaizen/package-bundler": "1.1.5",
124
+ "@kaizen/design-tokens": "10.6.1"
125
125
  },
126
126
  "peerDependencies": {
127
127
  "@cultureamp/i18n-react-intl": "^2.5.9",
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import React, { HTMLAttributes } from "react"
2
2
  import classnames from "classnames"
3
3
  import { HeadingProps } from "~components/Heading"
4
4
  import { OverrideClassName } from "~components/types/OverrideClassName"
@@ -9,7 +9,7 @@ import {
9
9
  } from "../subcomponents/GenericNotification"
10
10
  import styles from "../subcomponents/GenericNotification/GenericNotification.module.scss"
11
11
 
12
- export type InlineNotificationBase = OverrideClassName<{
12
+ export type InlineNotificationBase = {
13
13
  children?: React.ReactNode
14
14
  /** @default false */
15
15
  persistent?: boolean
@@ -20,7 +20,8 @@ export type InlineNotificationBase = OverrideClassName<{
20
20
  forceMultiline?: boolean
21
21
  headingProps?: HeadingProps
22
22
  isSubtle?: boolean
23
- }>
23
+ } & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "style">
24
+ // Omitted `style` above because GenericNotification has its own `style` prop
24
25
 
25
26
  export type InlineNotificationProps = InlineNotificationBase &
26
27
  (GenericNotificationType | GenericNotificationVariant)