@audira/carbon-react-native 1.0.0-beta.10 → 1.0.0-beta.12
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/lib/commonjs/components/notification/_variants/actionable/index.js.map +1 -1
- package/lib/commonjs/components/notification/_variants/actionable-inline/index.js.map +1 -1
- package/lib/commonjs/components/notification/_variants/callout/index.js.map +1 -1
- package/lib/commonjs/components/notification/_variants/callout-inline/index.js.map +1 -1
- package/lib/commonjs/components/notification/_variants/index.js.map +1 -1
- package/lib/commonjs/components/notification/_variants/toast/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable/error/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable/informational/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable/success/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable/warning/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable-inline/error/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable-inline/informational/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable-inline/success/index.js.map +1 -1
- package/lib/commonjs/components/notification/actionable-inline/warning/index.js.map +1 -1
- package/lib/commonjs/components/notification/base/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout/error/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout/informational/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout/success/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout/warning/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout-inline/error/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout-inline/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout-inline/informational/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout-inline/success/index.js.map +1 -1
- package/lib/commonjs/components/notification/callout-inline/warning/index.js.map +1 -1
- package/lib/commonjs/components/notification/index.js.map +1 -1
- package/lib/commonjs/components/notification/subtitle/index.js.map +1 -1
- package/lib/commonjs/components/notification/subtitle-link/index.js.map +1 -1
- package/lib/commonjs/components/notification/toast/error/index.js.map +1 -1
- package/lib/commonjs/components/notification/toast/index.js.map +1 -1
- package/lib/commonjs/components/notification/toast/informational/index.js.map +1 -1
- package/lib/commonjs/components/notification/toast/success/index.js.map +1 -1
- package/lib/commonjs/components/notification/toast/warning/index.js.map +1 -1
- package/lib/commonjs/providers/dialog/DialogProvider.js +2 -5
- package/lib/commonjs/providers/dialog/DialogProvider.js.map +1 -1
- package/lib/commonjs/providers/toast/_overlay/Overlay.js +7 -8
- package/lib/commonjs/providers/toast/_overlay/Overlay.js.map +1 -1
- package/lib/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js +8 -3
- package/lib/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js.map +1 -1
- package/lib/commonjs/providers/toast/_overlay/_gap.js +9 -0
- package/lib/commonjs/providers/toast/_overlay/_gap.js.map +1 -0
- package/lib/module/components/notification/_variants/actionable/index.js.map +1 -1
- package/lib/module/components/notification/_variants/actionable-inline/index.js.map +1 -1
- package/lib/module/components/notification/_variants/callout/index.js.map +1 -1
- package/lib/module/components/notification/_variants/callout-inline/index.js.map +1 -1
- package/lib/module/components/notification/_variants/index.js.map +1 -1
- package/lib/module/components/notification/_variants/toast/index.js.map +1 -1
- package/lib/module/components/notification/actionable/error/index.js.map +1 -1
- package/lib/module/components/notification/actionable/index.js.map +1 -1
- package/lib/module/components/notification/actionable/informational/index.js.map +1 -1
- package/lib/module/components/notification/actionable/success/index.js.map +1 -1
- package/lib/module/components/notification/actionable/warning/index.js.map +1 -1
- package/lib/module/components/notification/actionable-inline/error/index.js.map +1 -1
- package/lib/module/components/notification/actionable-inline/informational/index.js.map +1 -1
- package/lib/module/components/notification/actionable-inline/success/index.js.map +1 -1
- package/lib/module/components/notification/actionable-inline/warning/index.js.map +1 -1
- package/lib/module/components/notification/base/index.js.map +1 -1
- package/lib/module/components/notification/callout/error/index.js.map +1 -1
- package/lib/module/components/notification/callout/index.js.map +1 -1
- package/lib/module/components/notification/callout/informational/index.js.map +1 -1
- package/lib/module/components/notification/callout/success/index.js.map +1 -1
- package/lib/module/components/notification/callout/warning/index.js.map +1 -1
- package/lib/module/components/notification/callout-inline/error/index.js.map +1 -1
- package/lib/module/components/notification/callout-inline/index.js.map +1 -1
- package/lib/module/components/notification/callout-inline/informational/index.js.map +1 -1
- package/lib/module/components/notification/callout-inline/success/index.js.map +1 -1
- package/lib/module/components/notification/callout-inline/warning/index.js.map +1 -1
- package/lib/module/components/notification/index.js.map +1 -1
- package/lib/module/components/notification/subtitle/index.js.map +1 -1
- package/lib/module/components/notification/subtitle-link/index.js.map +1 -1
- package/lib/module/components/notification/toast/error/index.js.map +1 -1
- package/lib/module/components/notification/toast/index.js.map +1 -1
- package/lib/module/components/notification/toast/informational/index.js.map +1 -1
- package/lib/module/components/notification/toast/success/index.js.map +1 -1
- package/lib/module/components/notification/toast/warning/index.js.map +1 -1
- package/lib/module/providers/dialog/DialogProvider.js +2 -5
- package/lib/module/providers/dialog/DialogProvider.js.map +1 -1
- package/lib/module/providers/toast/_overlay/Overlay.js +7 -8
- package/lib/module/providers/toast/_overlay/Overlay.js.map +1 -1
- package/lib/module/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js +9 -4
- package/lib/module/providers/toast/_overlay/_component-wrapper/ComponentWrapper.js.map +1 -1
- package/lib/module/providers/toast/_overlay/_gap.js +5 -0
- package/lib/module/providers/toast/_overlay/_gap.js.map +1 -0
- package/lib/typescript/commonjs/components/notification/_variants/actionable/ActionableVariantProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable/ActionableVariantProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/actionable-inline/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout/CalloutVariantProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout/CalloutVariantProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/callout-inline/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/toast/ToastVariantProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/toast/ToastVariantProps.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/_variants/toast/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/error/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/informational/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/success/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable/warning/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/error/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/informational/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/success/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/actionable-inline/warning/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/base/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/error/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/informational/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/success/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout/warning/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/error/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/informational/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/success/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/commonjs/components/notification/callout-inline/warning/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/subtitle/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/subtitle-link/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/toast/error/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/toast/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/toast/informational/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/toast/success/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notification/toast/warning/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/Overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/_component-wrapper/ComponentWrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/providers/toast/_overlay/_gap.d.ts +2 -0
- package/lib/typescript/commonjs/providers/toast/_overlay/_gap.d.ts.map +1 -0
- package/lib/typescript/module/components/notification/_variants/actionable/ActionableVariantProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable/ActionableVariantProps.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/actionable-inline/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/callout/CalloutVariantProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/callout/CalloutVariantProps.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/callout/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/callout-inline/CalloutInlineVariantProps.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/callout-inline/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/toast/ToastVariantProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/_variants/toast/ToastVariantProps.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/_variants/toast/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable/error/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable/informational/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable/success/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable/warning/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/error/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/informational/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/success/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/actionable-inline/warning/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/base/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/error/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/informational/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/success/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout/warning/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout-inline/error/ErrorProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/error/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout-inline/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout-inline/informational/InformationalProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/informational/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout-inline/success/SuccessProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/success/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/callout-inline/warning/WarningProps.d.ts +1 -1
- package/lib/typescript/module/components/notification/callout-inline/warning/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/subtitle/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/subtitle-link/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/toast/error/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/toast/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/toast/informational/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/toast/success/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notification/toast/warning/index.d.ts.map +1 -1
- package/lib/typescript/module/providers/toast/_overlay/Overlay.d.ts.map +1 -1
- package/lib/typescript/module/providers/toast/_overlay/_component-wrapper/ComponentWrapper.d.ts.map +1 -1
- package/lib/typescript/module/providers/toast/_overlay/_gap.d.ts +2 -0
- package/lib/typescript/module/providers/toast/_overlay/_gap.d.ts.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/notification/_variants/actionable/ActionableVariantProps.ts +0 -1
- package/src/components/notification/_variants/actionable-inline/ActionableInlineVariantProps.ts +0 -1
- package/src/components/notification/_variants/callout/CalloutVariantProps.ts +0 -1
- package/src/components/notification/_variants/callout-inline/CalloutInlineVariantProps.ts +0 -1
- package/src/components/notification/_variants/toast/ToastVariantProps.ts +0 -1
- package/src/components/notification/actionable-inline/error/ErrorProps.ts +1 -1
- package/src/components/notification/actionable-inline/informational/InformationalProps.ts +1 -1
- package/src/components/notification/actionable-inline/success/SuccessProps.ts +1 -1
- package/src/components/notification/actionable-inline/warning/WarningProps.ts +1 -1
- package/src/components/notification/callout/error/ErrorProps.ts +1 -1
- package/src/components/notification/callout/informational/InformationalProps.ts +1 -1
- package/src/components/notification/callout/success/SuccessProps.ts +1 -1
- package/src/components/notification/callout/warning/WarningProps.ts +1 -1
- package/src/components/notification/callout-inline/error/ErrorProps.ts +1 -1
- package/src/components/notification/callout-inline/informational/InformationalProps.ts +1 -1
- package/src/components/notification/callout-inline/success/SuccessProps.ts +1 -1
- package/src/components/notification/callout-inline/warning/WarningProps.ts +1 -1
- package/src/providers/dialog/DialogProvider.tsx +74 -73
- package/src/providers/toast/_overlay/Overlay.tsx +10 -10
- package/src/providers/toast/_overlay/_component-wrapper/ComponentWrapper.tsx +15 -3
- package/src/providers/toast/_overlay/_gap.ts +5 -0
- /package/src/components/notification/_variants/actionable/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/_variants/actionable-inline/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/_variants/callout/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/_variants/callout-inline/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/_variants/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/_variants/toast/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable/error/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable/informational/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable/success/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable/warning/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable-inline/error/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable-inline/informational/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable-inline/success/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/actionable-inline/warning/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/base/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout/error/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout/informational/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout/success/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout/warning/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout-inline/error/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout-inline/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout-inline/informational/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout-inline/success/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/callout-inline/warning/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/subtitle/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/subtitle-link/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/toast/error/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/toast/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/toast/informational/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/toast/success/{index.tsx → index.ts} +0 -0
- /package/src/components/notification/toast/warning/{index.tsx → index.ts} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
ActionableInlineVariantProps,
|
|
3
3
|
} from "../../_variants/actionable-inline"
|
|
4
4
|
|
|
5
|
-
export interface ErrorProps extends Omit<ActionableInlineVariantProps, "
|
|
5
|
+
export interface ErrorProps extends Omit<ActionableInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<ActionableInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
ActionableInlineVariantProps,
|
|
3
3
|
} from "../../_variants/actionable-inline"
|
|
4
4
|
|
|
5
|
-
export interface InformationalProps extends Omit<ActionableInlineVariantProps, "
|
|
5
|
+
export interface InformationalProps extends Omit<ActionableInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<ActionableInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
ActionableInlineVariantProps,
|
|
3
3
|
} from "../../_variants/actionable-inline"
|
|
4
4
|
|
|
5
|
-
export interface SuccessProps extends Omit<ActionableInlineVariantProps, "
|
|
5
|
+
export interface SuccessProps extends Omit<ActionableInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<ActionableInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
ActionableInlineVariantProps,
|
|
3
3
|
} from "../../_variants/actionable-inline"
|
|
4
4
|
|
|
5
|
-
export interface WarningProps extends Omit<ActionableInlineVariantProps, "
|
|
5
|
+
export interface WarningProps extends Omit<ActionableInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<ActionableInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutVariantProps,
|
|
3
3
|
} from "../../_variants/callout"
|
|
4
4
|
|
|
5
|
-
export interface ErrorProps extends Omit<CalloutVariantProps, "
|
|
5
|
+
export interface ErrorProps extends Omit<CalloutVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutVariantProps,
|
|
3
3
|
} from "../../_variants/callout"
|
|
4
4
|
|
|
5
|
-
export interface InformationalProps extends Omit<CalloutVariantProps, "
|
|
5
|
+
export interface InformationalProps extends Omit<CalloutVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutInlineVariantProps,
|
|
3
3
|
} from "../../_variants/callout-inline"
|
|
4
4
|
|
|
5
|
-
export interface SuccessProps extends Omit<CalloutInlineVariantProps, "
|
|
5
|
+
export interface SuccessProps extends Omit<CalloutInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutVariantProps,
|
|
3
3
|
} from "../../_variants/callout"
|
|
4
4
|
|
|
5
|
-
export interface WarningProps extends Omit<CalloutVariantProps, "
|
|
5
|
+
export interface WarningProps extends Omit<CalloutVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutInlineVariantProps,
|
|
3
3
|
} from "../../_variants/callout-inline"
|
|
4
4
|
|
|
5
|
-
export interface ErrorProps extends Omit<CalloutInlineVariantProps, "
|
|
5
|
+
export interface ErrorProps extends Omit<CalloutInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutInlineVariantProps,
|
|
3
3
|
} from "../../_variants/callout-inline"
|
|
4
4
|
|
|
5
|
-
export interface InformationalProps extends Omit<CalloutInlineVariantProps, "
|
|
5
|
+
export interface InformationalProps extends Omit<CalloutInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
ToastVariantProps,
|
|
3
3
|
} from "../../_variants/toast"
|
|
4
4
|
|
|
5
|
-
export interface SuccessProps extends Omit<ToastVariantProps, "
|
|
5
|
+
export interface SuccessProps extends Omit<ToastVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<ToastVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
CalloutInlineVariantProps,
|
|
3
3
|
} from "../../_variants/callout-inline"
|
|
4
4
|
|
|
5
|
-
export interface WarningProps extends Omit<CalloutInlineVariantProps, "
|
|
5
|
+
export interface WarningProps extends Omit<CalloutInlineVariantProps, "Icon"> {
|
|
6
6
|
iconProps?: Omit<
|
|
7
7
|
NonNullable<CalloutInlineVariantProps["iconProps"]>,
|
|
8
8
|
| "color"
|
|
@@ -101,7 +101,6 @@ export const DialogProvider = forwardRef<DialogProviderRef, DialogProviderProps>
|
|
|
101
101
|
)
|
|
102
102
|
|
|
103
103
|
interface ControllerWrapperProps extends Omit<ControllerProps, "onEmpty"> {
|
|
104
|
-
ref?: React.Ref<ControllerWrapperRef>,
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
interface ControllerWrapperRef extends ControllerRef {
|
|
@@ -110,78 +109,80 @@ interface ControllerWrapperRef extends ControllerRef {
|
|
|
110
109
|
/**
|
|
111
110
|
* This is a simple component to save a bit of memory by not mounting the actual `Controller` when it's not needed
|
|
112
111
|
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
onEmpty =
|
|
129
|
-
useCallback(() => {
|
|
130
|
-
if(!dialogDataQueue.current && controllerRef.current) {
|
|
131
|
-
setMount(false)
|
|
132
|
-
}
|
|
133
|
-
}, [])
|
|
134
|
-
|
|
135
|
-
useImperativeHandle(ref, () => {
|
|
136
|
-
const errMsg = "Error to get the Controller's ref"
|
|
137
|
-
|
|
138
|
-
return {
|
|
139
|
-
show(data) {
|
|
140
|
-
if(controllerRef.current) {
|
|
141
|
-
controllerRef.current.show(data)
|
|
142
|
-
} else {
|
|
143
|
-
dialogDataQueue.current = data
|
|
144
|
-
setMount(true)
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
dismiss() {
|
|
148
|
-
if(controllerRef.current) {
|
|
149
|
-
return controllerRef.current.dismiss()
|
|
150
|
-
}
|
|
151
|
-
console.error(errMsg)
|
|
152
|
-
return Promise.resolve()
|
|
153
|
-
},
|
|
154
|
-
dismissAll() {
|
|
155
|
-
if(controllerRef.current) {
|
|
156
|
-
return controllerRef.current.dismissAll()
|
|
157
|
-
}
|
|
158
|
-
console.error(errMsg)
|
|
159
|
-
return Promise.resolve()
|
|
160
|
-
},
|
|
161
|
-
}
|
|
162
|
-
}, [])
|
|
112
|
+
const ControllerWrapper = forwardRef<ControllerWrapperRef, ControllerWrapperProps>(
|
|
113
|
+
function ControllerWrapper(
|
|
114
|
+
props,
|
|
115
|
+
ref,
|
|
116
|
+
) {
|
|
117
|
+
|
|
118
|
+
const
|
|
119
|
+
[mount, setMount] =
|
|
120
|
+
useState(false),
|
|
121
|
+
|
|
122
|
+
controllerRef =
|
|
123
|
+
useRef<ControllerRef>(null),
|
|
124
|
+
|
|
125
|
+
dialogDataQueue =
|
|
126
|
+
useRef<DialogData>(null),
|
|
163
127
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
128
|
+
onEmpty =
|
|
129
|
+
useCallback(() => {
|
|
130
|
+
if(!dialogDataQueue.current && controllerRef.current) {
|
|
131
|
+
setMount(false)
|
|
132
|
+
}
|
|
133
|
+
}, [])
|
|
134
|
+
|
|
135
|
+
useImperativeHandle(ref, () => {
|
|
136
|
+
const errMsg = "Error to get the Controller's ref"
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
show(data) {
|
|
140
|
+
if(controllerRef.current) {
|
|
141
|
+
controllerRef.current.show(data)
|
|
142
|
+
} else {
|
|
143
|
+
dialogDataQueue.current = data
|
|
144
|
+
setMount(true)
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
dismiss() {
|
|
148
|
+
if(controllerRef.current) {
|
|
149
|
+
return controllerRef.current.dismiss()
|
|
150
|
+
}
|
|
151
|
+
console.error(errMsg)
|
|
152
|
+
return Promise.resolve()
|
|
153
|
+
},
|
|
154
|
+
dismissAll() {
|
|
155
|
+
if(controllerRef.current) {
|
|
156
|
+
return controllerRef.current.dismissAll()
|
|
157
|
+
}
|
|
158
|
+
console.error(errMsg)
|
|
159
|
+
return Promise.resolve()
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
}, [])
|
|
163
|
+
|
|
164
|
+
useEffect(() => {
|
|
165
|
+
if(mount && dialogDataQueue.current && controllerRef.current) {
|
|
166
|
+
controllerRef.current.show({ ...dialogDataQueue.current })
|
|
167
|
+
dialogDataQueue.current = null
|
|
168
|
+
}
|
|
169
|
+
}, [
|
|
170
|
+
mount,
|
|
171
|
+
])
|
|
172
|
+
|
|
173
|
+
if(!mount) {
|
|
174
|
+
return null
|
|
168
175
|
}
|
|
169
|
-
}, [
|
|
170
|
-
mount,
|
|
171
|
-
])
|
|
172
|
-
|
|
173
|
-
if(!mount) {
|
|
174
|
-
return null
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return (
|
|
178
|
-
<InDialogContext.Provider value>
|
|
179
|
-
<Controller
|
|
180
|
-
ref={ controllerRef }
|
|
181
|
-
{ ...props }
|
|
182
|
-
onEmpty={ onEmpty }
|
|
183
|
-
/>
|
|
184
|
-
</InDialogContext.Provider>
|
|
185
|
-
)
|
|
186
176
|
|
|
187
|
-
|
|
177
|
+
return (
|
|
178
|
+
<InDialogContext.Provider value>
|
|
179
|
+
<Controller
|
|
180
|
+
ref={ controllerRef }
|
|
181
|
+
{ ...props }
|
|
182
|
+
onEmpty={ onEmpty }
|
|
183
|
+
/>
|
|
184
|
+
</InDialogContext.Provider>
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
},
|
|
188
|
+
)
|
|
@@ -13,10 +13,6 @@ import {
|
|
|
13
13
|
type LayoutChangeEvent,
|
|
14
14
|
} from "react-native"
|
|
15
15
|
|
|
16
|
-
import {
|
|
17
|
-
Spacing,
|
|
18
|
-
} from "@audira/carbon-react-native-elements"
|
|
19
|
-
|
|
20
16
|
import {
|
|
21
17
|
GlobalConfigContext,
|
|
22
18
|
} from "../../../_internal/contexts"
|
|
@@ -34,6 +30,10 @@ import {
|
|
|
34
30
|
type ComponentWrapperRef,
|
|
35
31
|
} from "./_component-wrapper"
|
|
36
32
|
|
|
33
|
+
import {
|
|
34
|
+
Gap,
|
|
35
|
+
} from "./_gap"
|
|
36
|
+
|
|
37
37
|
export const Overlay = forwardRef<OverlayRef>(
|
|
38
38
|
function(
|
|
39
39
|
___props,
|
|
@@ -91,12 +91,12 @@ export const Overlay = forwardRef<OverlayRef>(
|
|
|
91
91
|
) {
|
|
92
92
|
componentWrappersRef.current[index].cancelX() // cancel the current delay first
|
|
93
93
|
componentWrappersRef.current[index].shiftX(
|
|
94
|
-
componentsConfig.current[index].width +
|
|
94
|
+
componentsConfig.current[index].width + Gap,
|
|
95
95
|
)
|
|
96
96
|
if(index > 0) {
|
|
97
97
|
for(let i = 0; i < index; i++) {
|
|
98
98
|
componentWrappersRef.current[i]?.shiftY(
|
|
99
|
-
-componentsConfig.current[index].height -
|
|
99
|
+
-componentsConfig.current[index].height - Gap,
|
|
100
100
|
)
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -127,14 +127,14 @@ export const Overlay = forwardRef<OverlayRef>(
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
componentWrappersRef.current[index].shiftX(
|
|
130
|
-
-componentsConfig.current[index].width -
|
|
130
|
+
-componentsConfig.current[index].width - Gap,
|
|
131
131
|
)
|
|
132
132
|
|
|
133
133
|
if(componentWrappersRef.current.length > 1) {
|
|
134
134
|
for(let i = 0; i < componentWrappersRef.current.length - 1; i++) {
|
|
135
135
|
componentWrappersRef.current[i]?.shiftY(
|
|
136
136
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion, @typescript-eslint/no-extra-non-null-assertion
|
|
137
|
-
componentsConfig.current[0]!!.height +
|
|
137
|
+
componentsConfig.current[0]!!.height + Gap,
|
|
138
138
|
)
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -151,12 +151,12 @@ export const Overlay = forwardRef<OverlayRef>(
|
|
|
151
151
|
|
|
152
152
|
if(componentsConfig.current[index]?.state === 1) {
|
|
153
153
|
componentWrappersRef.current[index]?.shiftX(
|
|
154
|
-
componentsConfig.current[index].width +
|
|
154
|
+
componentsConfig.current[index].width + Gap,
|
|
155
155
|
componentsConfig.current[index].duration ?? globalConfigContext.toastDuration,
|
|
156
156
|
)
|
|
157
157
|
} else if(
|
|
158
158
|
componentsConfig.current[index]?.state === 2 &&
|
|
159
|
-
!componentsConfig.current.some(config => config.state < 2)
|
|
159
|
+
!componentsConfig.current.some(config => config.state < 2)
|
|
160
160
|
) {
|
|
161
161
|
// Delete all componentsConfig, componentWrappersRef, and components (react state) when it's all done
|
|
162
162
|
componentsConfig.current.splice(0, componentsConfig.current.length)
|
|
@@ -14,9 +14,16 @@ import {
|
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
16
|
Motion,
|
|
17
|
-
Spacing,
|
|
18
17
|
} from "@audira/carbon-react-native-elements"
|
|
19
18
|
|
|
19
|
+
import {
|
|
20
|
+
useSafeAreaInsets,
|
|
21
|
+
} from "react-native-safe-area-context"
|
|
22
|
+
|
|
23
|
+
import {
|
|
24
|
+
Gap,
|
|
25
|
+
} from "../_gap"
|
|
26
|
+
|
|
20
27
|
import type {
|
|
21
28
|
ComponentWrapperProps,
|
|
22
29
|
} from "./ComponentWrapperProps"
|
|
@@ -37,6 +44,9 @@ export const ComponentWrapper = forwardRef<ComponentWrapperRef, ComponentWrapper
|
|
|
37
44
|
) {
|
|
38
45
|
|
|
39
46
|
const
|
|
47
|
+
safeAreaInsets =
|
|
48
|
+
useSafeAreaInsets(),
|
|
49
|
+
|
|
40
50
|
translateX =
|
|
41
51
|
useRef(new Animated.Value(0)),
|
|
42
52
|
|
|
@@ -44,7 +54,7 @@ export const ComponentWrapper = forwardRef<ComponentWrapperRef, ComponentWrapper
|
|
|
44
54
|
useRef(0),
|
|
45
55
|
|
|
46
56
|
translateY =
|
|
47
|
-
useRef(new Animated.Value(
|
|
57
|
+
useRef(new Animated.Value(safeAreaInsets.top + Gap)),
|
|
48
58
|
|
|
49
59
|
translateYValueJS =
|
|
50
60
|
useRef(0)
|
|
@@ -148,13 +158,15 @@ const
|
|
|
148
158
|
StyleSheet.create({
|
|
149
159
|
componentWrapper: {
|
|
150
160
|
position: "absolute",
|
|
151
|
-
top: Spacing.spacing_03,
|
|
152
161
|
left: "100%",
|
|
153
162
|
width: "auto",
|
|
154
163
|
...Platform.select({
|
|
155
164
|
web: {
|
|
156
165
|
flexDirection: "row",
|
|
157
166
|
},
|
|
167
|
+
android: {
|
|
168
|
+
top: Gap, // iOS doesn't need this, Apple handles it internally
|
|
169
|
+
},
|
|
158
170
|
}),
|
|
159
171
|
},
|
|
160
172
|
}),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|