@hubspot/ui-extensions 0.11.2 → 0.11.3
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/dist/__tests__/crm/hooks/useAssociations.spec.js +4 -4
- package/dist/__tests__/crm/hooks/useCrmProperties.spec.js +2 -2
- package/dist/__tests__/crm/utils/fetchAssociations.spec.js +5 -5
- package/dist/__tests__/crm/utils/fetchCrmProperties.spec.js +4 -4
- package/dist/clientTypes.d.ts +1 -0
- package/dist/clientTypes.js +1 -1
- package/dist/crm/hooks/useAssociations.d.ts +5 -3
- package/dist/crm/hooks/useAssociations.js +4 -2
- package/dist/crm/hooks/useCrmProperties.d.ts +4 -2
- package/dist/crm/hooks/useCrmProperties.js +4 -2
- package/dist/crm/index.d.ts +4 -4
- package/dist/crm/index.js +3 -3
- package/dist/crm/utils/fetchAssociations.d.ts +1 -1
- package/dist/experimental/index.d.ts +4 -4
- package/dist/experimental/index.js +3 -3
- package/dist/experimental/testing/__tests__/createRenderer.spec.js +23 -0
- package/dist/experimental/testing/__tests__/debug.spec.js +21 -7
- package/dist/experimental/testing/__tests__/find.spec.js +23 -8
- package/dist/experimental/testing/__tests__/findAll.spec.js +4 -3
- package/dist/experimental/testing/__tests__/findAllChildren.spec.js +14 -8
- package/dist/experimental/testing/__tests__/findByTestId.spec.js +126 -0
- package/dist/experimental/testing/__tests__/findChild.spec.js +11 -7
- package/dist/experimental/testing/__tests__/fragments.spec.js +17 -10
- package/dist/experimental/testing/__tests__/invalid-components.spec.js +16 -8
- package/dist/experimental/testing/__tests__/isMatch.spec.js +106 -53
- package/dist/experimental/testing/__tests__/logger.spec.js +10 -0
- package/dist/experimental/testing/__tests__/maybeFind.spec.js +20 -11
- package/dist/experimental/testing/__tests__/maybeFindByTestId.spec.js +65 -0
- package/dist/experimental/testing/__tests__/maybeFindChild.spec.js +22 -12
- package/dist/experimental/testing/__tests__/mocks.actions.spec.js +19 -0
- package/dist/experimental/testing/__tests__/mocks.context.spec.js +24 -0
- package/dist/experimental/testing/__tests__/mocks.runServerlessFunction.spec.js +35 -0
- package/dist/experimental/testing/__tests__/mocks.useAssociations.spec.js +47 -0
- package/dist/experimental/testing/__tests__/mocks.useCrmProperties.spec.js +58 -0
- package/dist/experimental/testing/__tests__/props.spec.js +13 -0
- package/dist/experimental/testing/__tests__/testId.spec.js +18 -0
- package/dist/experimental/testing/__tests__/trigger.spec.js +9 -6
- package/dist/experimental/testing/__tests__/type-utils.spec.js +12 -10
- package/dist/experimental/testing/__tests__/waitFor.spec.js +7 -5
- package/dist/experimental/testing/index.d.ts +4 -3
- package/dist/experimental/testing/index.js +4 -3
- package/dist/experimental/testing/internal/constants.d.ts +2 -2
- package/dist/experimental/testing/internal/constants.js +1 -1
- package/dist/experimental/testing/internal/convert.d.ts +2 -2
- package/dist/experimental/testing/internal/convert.js +42 -24
- package/dist/experimental/testing/internal/debug.d.ts +3 -3
- package/dist/experimental/testing/internal/debug.js +4 -5
- package/dist/experimental/testing/internal/document.d.ts +1 -1
- package/dist/experimental/testing/internal/document.js +4 -1
- package/dist/experimental/testing/internal/element.d.ts +4 -3
- package/dist/experimental/testing/internal/element.js +15 -10
- package/dist/experimental/testing/internal/errors.d.ts +45 -2
- package/dist/experimental/testing/internal/errors.js +44 -2
- package/dist/experimental/testing/internal/fragment.d.ts +3 -2
- package/dist/experimental/testing/internal/fragment.js +13 -9
- package/dist/experimental/testing/internal/match.d.ts +3 -12
- package/dist/experimental/testing/internal/match.js +0 -23
- package/dist/experimental/testing/internal/mocks/index.d.ts +17 -0
- package/dist/experimental/testing/internal/mocks/index.js +46 -0
- package/dist/experimental/testing/internal/mocks/mock-extension-point-api.d.ts +2 -0
- package/dist/experimental/testing/internal/mocks/mock-extension-point-api.js +166 -0
- package/dist/experimental/testing/internal/mocks/mock-hooks.d.ts +2 -0
- package/dist/experimental/testing/internal/mocks/mock-hooks.js +59 -0
- package/dist/experimental/testing/internal/print.d.ts +2 -2
- package/dist/experimental/testing/internal/print.js +17 -11
- package/dist/experimental/testing/internal/query.d.ts +19 -9
- package/dist/experimental/testing/internal/query.js +91 -28
- package/dist/experimental/testing/internal/root.d.ts +1 -1
- package/dist/experimental/testing/internal/root.js +12 -8
- package/dist/experimental/testing/internal/text.d.ts +3 -2
- package/dist/experimental/testing/internal/text.js +12 -3
- package/dist/experimental/testing/internal/type-utils-internal.d.ts +44 -0
- package/dist/experimental/testing/internal/type-utils-internal.js +54 -0
- package/dist/experimental/testing/internal/types-internal.d.ts +20 -2
- package/dist/experimental/testing/render.d.ts +32 -6
- package/dist/experimental/testing/render.js +96 -32
- package/dist/experimental/testing/type-utils.d.ts +2 -2
- package/dist/experimental/testing/type-utils.js +1 -1
- package/dist/experimental/testing/types.d.ts +127 -10
- package/dist/experimental/testing/utils.d.ts +11 -0
- package/dist/experimental/testing/utils.js +24 -0
- package/dist/hubspot.d.ts +2 -4
- package/dist/hubspot.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/internal/global-utils.d.ts +6 -0
- package/dist/internal/global-utils.js +37 -0
- package/dist/internal/hook-utils.d.ts +19 -0
- package/dist/internal/hook-utils.js +34 -0
- package/dist/logger.d.ts +1 -8
- package/dist/logger.js +3 -2
- package/dist/pages/home/index.d.ts +1 -1
- package/dist/pages/home/index.js +1 -1
- package/dist/{__synced__/remoteComponents.synced.d.ts → shared/remoteComponents.d.ts} +103 -103
- package/dist/{__synced__/remoteComponents.synced.js → shared/remoteComponents.js} +1 -1
- package/dist/{__synced__/types/components/accordion.synced.d.ts → shared/types/components/accordion.d.ts} +2 -2
- package/dist/{__synced__/types/components/alert.synced.d.ts → shared/types/components/alert.d.ts} +2 -1
- package/dist/{__synced__/types/components/app-home-header-actions.synced.d.ts → shared/types/components/app-home-header-actions.d.ts} +4 -4
- package/dist/{__synced__/types/components/button-row.synced.d.ts → shared/types/components/button-row.d.ts} +2 -2
- package/dist/{__synced__/types/components/button.synced.d.ts → shared/types/components/button.d.ts} +3 -3
- package/dist/{__synced__/types/components/card.synced.d.ts → shared/types/components/card.d.ts} +2 -1
- package/dist/{__synced__/types/components/chart.synced.d.ts → shared/types/components/chart.d.ts} +2 -1
- package/dist/{__synced__/types/components/description-list.synced.d.ts → shared/types/components/description-list.d.ts} +3 -2
- package/dist/{__synced__/types/components/divider.synced.d.ts → shared/types/components/divider.d.ts} +2 -2
- package/dist/{__synced__/types/components/dropdown.synced.d.ts → shared/types/components/dropdown.d.ts} +5 -5
- package/dist/{__synced__/types/components/empty-state.synced.d.ts → shared/types/components/empty-state.d.ts} +2 -1
- package/dist/{__synced__/types/components/error-state.synced.d.ts → shared/types/components/error-state.d.ts} +2 -1
- package/dist/{__synced__/types/components/form.synced.d.ts → shared/types/components/form.d.ts} +3 -3
- package/dist/{__synced__/types/components/heading.synced.d.ts → shared/types/components/heading.d.ts} +2 -1
- package/dist/{__synced__/types/components/icon.synced.d.ts → shared/types/components/icon.d.ts} +2 -2
- package/dist/{__synced__/types/components/iframe.synced.d.ts → shared/types/components/iframe.d.ts} +2 -2
- package/dist/{__synced__/types/components/illustration.synced.d.ts → shared/types/components/illustration.d.ts} +2 -1
- package/dist/{__synced__/types/components/image.synced.d.ts → shared/types/components/image.d.ts} +3 -3
- package/dist/shared/types/components/index.d.ts +38 -0
- package/dist/{__synced__/types/components/inputs.synced.d.ts → shared/types/components/inputs.d.ts} +2 -1
- package/dist/{__synced__/types/components/layouts.synced.d.ts → shared/types/components/layouts.d.ts} +6 -6
- package/dist/{__synced__/types/components/link.synced.d.ts → shared/types/components/link.d.ts} +3 -3
- package/dist/{__synced__/types/components/list.synced.d.ts → shared/types/components/list.d.ts} +2 -1
- package/dist/{__synced__/types/components/loading-spinner.synced.d.ts → shared/types/components/loading-spinner.d.ts} +2 -2
- package/dist/{__synced__/types/components/modal.synced.d.ts → shared/types/components/modal.d.ts} +4 -4
- package/dist/{__synced__/types/components/panel.synced.d.ts → shared/types/components/panel.d.ts} +5 -5
- package/dist/{__synced__/types/components/progress-bar.synced.d.ts → shared/types/components/progress-bar.d.ts} +2 -1
- package/dist/{__synced__/types/components/selects.synced.d.ts → shared/types/components/selects.d.ts} +2 -1
- package/dist/{__synced__/types/components/statistics.synced.d.ts → shared/types/components/statistics.d.ts} +4 -3
- package/dist/{__synced__/types/components/status-tag.synced.d.ts → shared/types/components/status-tag.d.ts} +2 -1
- package/dist/{__synced__/types/components/step-indicator.synced.d.ts → shared/types/components/step-indicator.d.ts} +2 -2
- package/dist/{__synced__/types/components/table.synced.d.ts → shared/types/components/table.d.ts} +5 -4
- package/dist/shared/types/components/table.js +1 -0
- package/dist/{__synced__/types/components/tabs.synced.d.ts → shared/types/components/tabs.d.ts} +3 -2
- package/dist/shared/types/components/tabs.js +1 -0
- package/dist/{__synced__/types/components/tag.synced.d.ts → shared/types/components/tag.d.ts} +3 -3
- package/dist/shared/types/components/tag.js +1 -0
- package/dist/{__synced__/types/components/text.synced.d.ts → shared/types/components/text.d.ts} +2 -1
- package/dist/shared/types/components/text.js +1 -0
- package/dist/{__synced__/types/components/tile.synced.d.ts → shared/types/components/tile.d.ts} +2 -1
- package/dist/shared/types/components/tile.js +1 -0
- package/dist/{__synced__/types/components/toggle.synced.d.ts → shared/types/components/toggle.d.ts} +2 -2
- package/dist/shared/types/components/toggle.js +1 -0
- package/dist/{__synced__/types/components/toggleInputs.synced.d.ts → shared/types/components/toggleInputs.d.ts} +4 -4
- package/dist/shared/types/components/toggleInputs.js +1 -0
- package/dist/{__synced__/types/components/tooltip.synced.d.ts → shared/types/components/tooltip.d.ts} +2 -1
- package/dist/shared/types/components/tooltip.js +1 -0
- package/dist/{__synced__/types/context.synced.d.ts → shared/types/context.d.ts} +1 -1
- package/dist/shared/types/context.js +1 -0
- package/dist/{__synced__/types/crm.synced.d.ts → shared/types/crm.d.ts} +13 -13
- package/dist/shared/types/crm.js +1 -0
- package/dist/{__synced__/experimental/types.synced.d.ts → shared/types/experimental.d.ts} +10 -14
- package/dist/shared/types/experimental.js +1 -0
- package/dist/shared/types/extend.d.ts +4 -0
- package/dist/shared/types/extend.js +1 -0
- package/dist/{__synced__/types/extension-points.synced.d.ts → shared/types/extension-points.d.ts} +18 -10
- package/dist/{__synced__/types/http-requests.synced.d.ts → shared/types/http-requests.d.ts} +1 -1
- package/dist/shared/types/index.d.ts +8 -0
- package/dist/shared/types/index.js +1 -0
- package/dist/shared/types/logger.d.ts +7 -0
- package/dist/shared/types/logger.js +1 -0
- package/dist/shared/types/reactions.js +1 -0
- package/dist/{__synced__/types/shared.synced.d.ts → shared/types/shared.d.ts} +3 -0
- package/dist/shared/types/worker-globals.d.ts +17 -0
- package/dist/shared/types/worker-globals.js +1 -0
- package/dist/{__synced__/utils/remote-component-registry.synced.d.ts → shared/utils/remote-component-registry.d.ts} +1 -1
- package/dist/{__synced__/utils/remote-component-registry.synced.js → shared/utils/remote-component-registry.js} +0 -1
- package/package.json +5 -4
- package/dist/__synced__/experimental/types.synced.js +0 -5
- package/dist/__synced__/types/components/index.synced.d.ts +0 -38
- package/dist/__synced__/types/index.synced.d.ts +0 -8
- package/dist/__synced__/types/index.synced.js +0 -1
- /package/dist/{__synced__/types/actions.synced.js → experimental/testing/__tests__/createRenderer.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/accordion.synced.js → experimental/testing/__tests__/findByTestId.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/alert.synced.js → experimental/testing/__tests__/logger.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/app-home-header-actions.synced.js → experimental/testing/__tests__/maybeFindByTestId.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/button-row.synced.js → experimental/testing/__tests__/mocks.actions.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/button.synced.js → experimental/testing/__tests__/mocks.context.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/card.synced.js → experimental/testing/__tests__/mocks.runServerlessFunction.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/description-list.synced.js → experimental/testing/__tests__/mocks.useAssociations.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/divider.synced.js → experimental/testing/__tests__/mocks.useCrmProperties.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/dropdown.synced.js → experimental/testing/__tests__/props.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/components/empty-state.synced.js → experimental/testing/__tests__/testId.spec.d.ts} +0 -0
- /package/dist/{__synced__/types/actions.synced.d.ts → shared/types/actions.d.ts} +0 -0
- /package/dist/{__synced__/types/components/error-state.synced.js → shared/types/actions.js} +0 -0
- /package/dist/{__synced__/types/components/form.synced.js → shared/types/components/accordion.js} +0 -0
- /package/dist/{__synced__/types/components/heading.synced.js → shared/types/components/alert.js} +0 -0
- /package/dist/{__synced__/types/components/icon.synced.js → shared/types/components/app-home-header-actions.js} +0 -0
- /package/dist/{__synced__/types/components/iframe.synced.js → shared/types/components/button-row.js} +0 -0
- /package/dist/{__synced__/types/components/image.synced.js → shared/types/components/button.js} +0 -0
- /package/dist/{__synced__/types/components/index.synced.js → shared/types/components/card.js} +0 -0
- /package/dist/{__synced__/types/components/chart.synced.js → shared/types/components/chart.js} +0 -0
- /package/dist/{__synced__/types/components/inputs.synced.js → shared/types/components/description-list.js} +0 -0
- /package/dist/{__synced__/types/components/layouts.synced.js → shared/types/components/divider.js} +0 -0
- /package/dist/{__synced__/types/components/link.synced.js → shared/types/components/dropdown.js} +0 -0
- /package/dist/{__synced__/types/components/list.synced.js → shared/types/components/empty-state.js} +0 -0
- /package/dist/{__synced__/types/components/loading-spinner.synced.js → shared/types/components/error-state.js} +0 -0
- /package/dist/{__synced__/types/components/modal.synced.js → shared/types/components/form.js} +0 -0
- /package/dist/{__synced__/types/components/panel.synced.js → shared/types/components/heading.js} +0 -0
- /package/dist/{__synced__/types/components/progress-bar.synced.js → shared/types/components/icon.js} +0 -0
- /package/dist/{__synced__/types/components/selects.synced.js → shared/types/components/iframe.js} +0 -0
- /package/dist/{__synced__/types/components/illustration.synced.js → shared/types/components/illustration.js} +0 -0
- /package/dist/{__synced__/types/components/statistics.synced.js → shared/types/components/image.js} +0 -0
- /package/dist/{__synced__/types/components/status-tag.synced.js → shared/types/components/index.js} +0 -0
- /package/dist/{__synced__/types/components/step-indicator.synced.js → shared/types/components/inputs.js} +0 -0
- /package/dist/{__synced__/types/components/table.synced.js → shared/types/components/layouts.js} +0 -0
- /package/dist/{__synced__/types/components/tabs.synced.js → shared/types/components/link.js} +0 -0
- /package/dist/{__synced__/types/components/tag.synced.js → shared/types/components/list.js} +0 -0
- /package/dist/{__synced__/types/components/text.synced.js → shared/types/components/loading-spinner.js} +0 -0
- /package/dist/{__synced__/types/components/tile.synced.js → shared/types/components/modal.js} +0 -0
- /package/dist/{__synced__/types/components/toggle.synced.js → shared/types/components/panel.js} +0 -0
- /package/dist/{__synced__/types/components/toggleInputs.synced.js → shared/types/components/progress-bar.js} +0 -0
- /package/dist/{__synced__/types/components/tooltip.synced.js → shared/types/components/selects.js} +0 -0
- /package/dist/{__synced__/types/context.synced.js → shared/types/components/statistics.js} +0 -0
- /package/dist/{__synced__/types/crm.synced.js → shared/types/components/status-tag.js} +0 -0
- /package/dist/{__synced__/types/reactions.synced.js → shared/types/components/step-indicator.js} +0 -0
- /package/dist/{__synced__/types/extension-points.synced.js → shared/types/extension-points.js} +0 -0
- /package/dist/{__synced__/types/http-requests.synced.js → shared/types/http-requests.js} +0 -0
- /package/dist/{__synced__/types/reactions.synced.d.ts → shared/types/reactions.d.ts} +0 -0
- /package/dist/{__synced__/types/shared.synced.js → shared/types/shared.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRemoteComponentRegistry } from
|
|
1
|
+
import { createRemoteComponentRegistry } from "./utils/remote-component-registry.js";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a registry of HubSpot-provided React components that should only be used **internally** by the UI extension SDK.
|
|
4
4
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TShirtSizes } from '../shared.
|
|
2
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The props type for {@link !components.Accordion}.
|
|
5
5
|
*
|
|
6
6
|
* @category Component Props
|
|
7
7
|
*/
|
|
8
|
-
export interface AccordionProps {
|
|
8
|
+
export interface AccordionProps extends BaseComponentProps {
|
|
9
9
|
/**
|
|
10
10
|
* The title text for the accordion.
|
|
11
11
|
*
|
package/dist/{__synced__/types/components/alert.synced.d.ts → shared/types/components/alert.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.Alert}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface AlertProps {
|
|
8
|
+
export interface AlertProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* The bolded title text of the alert.
|
|
10
11
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ReactionsHandler } from '../reactions.
|
|
3
|
-
import { ExtensionEvent, OverlayComponentProps, HrefProp } from '../shared.
|
|
2
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
3
|
+
import { ExtensionEvent, OverlayComponentProps, HrefProp, BaseComponentProps } from '../shared.ts';
|
|
4
4
|
/**
|
|
5
5
|
* The props type for {@link !components.HeaderActions}.
|
|
6
6
|
*
|
|
7
7
|
* @category Component Props
|
|
8
8
|
*/
|
|
9
|
-
export interface HeaderActionsProps {
|
|
9
|
+
export interface HeaderActionsProps extends BaseComponentProps {
|
|
10
10
|
/**
|
|
11
11
|
* Sets the content that will render inside the HeaderActions. This prop is passed implicitly by providing sub-components.
|
|
12
12
|
*/
|
|
@@ -17,7 +17,7 @@ export interface HeaderActionsProps {
|
|
|
17
17
|
*
|
|
18
18
|
* @category Component Props
|
|
19
19
|
*/
|
|
20
|
-
export interface HeaderActionButtonProps extends OverlayComponentProps {
|
|
20
|
+
export interface HeaderActionButtonProps extends OverlayComponentProps, BaseComponentProps {
|
|
21
21
|
/**
|
|
22
22
|
* A function that will be invoked when the button is clicked. Do not use this function for submitting a form; use Form's `onSubmit` function instead.
|
|
23
23
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TShirtSizes } from '../shared.
|
|
2
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The props type for {@link !components.ButtonRow}.
|
|
5
5
|
*
|
|
6
6
|
* @category Component Props
|
|
7
7
|
*/
|
|
8
|
-
export interface ButtonRowProps {
|
|
8
|
+
export interface ButtonRowProps extends BaseComponentProps {
|
|
9
9
|
/**
|
|
10
10
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
11
11
|
*/
|
package/dist/{__synced__/types/components/button.synced.d.ts → shared/types/components/button.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { OverlayComponentProps, HrefProp, TShirtSizes, IconNames, ExtensionEvent } from '../shared.
|
|
3
|
-
import { ReactionsHandler } from '../reactions.
|
|
4
|
-
export interface BaseButtonProps {
|
|
2
|
+
import { OverlayComponentProps, HrefProp, TShirtSizes, IconNames, ExtensionEvent, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
4
|
+
export interface BaseButtonProps extends BaseComponentProps {
|
|
5
5
|
/**
|
|
6
6
|
* A function that will be invoked when the button is clicked. Do not use this function for submitting a form; use Form's `onSubmit` function instead.
|
|
7
7
|
*
|
package/dist/{__synced__/types/components/card.synced.d.ts → shared/types/components/card.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.Card}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface CardProps {
|
|
8
|
+
export interface CardProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
10
11
|
*/
|
package/dist/{__synced__/types/components/chart.synced.d.ts → shared/types/components/chart.d.ts}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
1
2
|
/**
|
|
2
3
|
* The props type for {@link !components.BarChart}.
|
|
3
4
|
*
|
|
@@ -10,7 +11,7 @@ export type BarChartProps = ChartProps;
|
|
|
10
11
|
* @category Component Props
|
|
11
12
|
*/
|
|
12
13
|
export type LineChartProps = ChartProps;
|
|
13
|
-
export interface ChartProps {
|
|
14
|
+
export interface ChartProps extends BaseComponentProps {
|
|
14
15
|
/**
|
|
15
16
|
* The data used to render the chart. You can optionally provide configuration options.
|
|
16
17
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.DescriptionListItem}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface DescriptionListItemProps {
|
|
8
|
+
export interface DescriptionListItemProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
10
11
|
*
|
|
@@ -21,7 +22,7 @@ export interface DescriptionListItemProps {
|
|
|
21
22
|
*
|
|
22
23
|
* @category Component Props
|
|
23
24
|
*/
|
|
24
|
-
export interface DescriptionListProps {
|
|
25
|
+
export interface DescriptionListProps extends BaseComponentProps {
|
|
25
26
|
/**
|
|
26
27
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be {@link !components.DescriptionListItem}.
|
|
27
28
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AllDistances } from '../shared.
|
|
1
|
+
import { AllDistances, BaseComponentProps } from '../shared.ts';
|
|
2
2
|
/**
|
|
3
3
|
* The props type for {@link !components.Divider}.
|
|
4
4
|
*
|
|
5
5
|
* @category Component Props
|
|
6
6
|
*/
|
|
7
|
-
export interface DividerProps {
|
|
7
|
+
export interface DividerProps extends BaseComponentProps {
|
|
8
8
|
/**
|
|
9
9
|
* The space between the divider and the content above and below it.
|
|
10
10
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { TShirtSizes } from '../shared.
|
|
3
|
-
import { ExtensionEvent, OverlayComponentProps } from '../shared.
|
|
4
|
-
import { ReactionsHandler } from '../reactions.
|
|
2
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
import { ExtensionEvent, OverlayComponentProps } from '../shared.ts';
|
|
4
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated This type is deprecated and will be removed in a future release. Please use the `DropdownButtonItem` component instead.
|
|
7
7
|
*/
|
|
@@ -24,7 +24,7 @@ export interface DropdownOption {
|
|
|
24
24
|
*
|
|
25
25
|
* @category Component Props
|
|
26
26
|
*/
|
|
27
|
-
export interface DropdownButtonItemProps extends OverlayComponentProps {
|
|
27
|
+
export interface DropdownButtonItemProps extends OverlayComponentProps, BaseComponentProps {
|
|
28
28
|
/**
|
|
29
29
|
* Text to be displayed as the menu item text.
|
|
30
30
|
* Can also accept ReactNode for more complex content.
|
|
@@ -43,7 +43,7 @@ export interface DropdownButtonItemProps extends OverlayComponentProps {
|
|
|
43
43
|
*
|
|
44
44
|
* @category Component Props
|
|
45
45
|
*/
|
|
46
|
-
export interface DropdownProps {
|
|
46
|
+
export interface DropdownProps extends BaseComponentProps {
|
|
47
47
|
/**
|
|
48
48
|
* The list of options to be rendered within the dropdown menu.
|
|
49
49
|
* Each option represents an entry in the Dropdown.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
export type EmptyStateImageName = 'addOnReporting' | 'announcement' | 'api' | 'automatedTesting' | 'beta' | 'building' | 'callingSetUp' | 'companies' | 'components' | 'cone' | 'contacts' | 'contentStrategy' | 'customObjects' | 'customerExperience' | 'customerSupport' | 'deals' | 'developerSecurityUpdate' | 'electronicSignature' | 'electronicSignatureEmptyState' | 'emailConfirmation' | 'emptyStateCharts' | 'idea' | 'integrations' | 'leads' | 'lock' | 'meetings' | 'missedGoal' | 'multipleObjects' | 'object' | 'productsShoppingCart' | 'registration' | 'sandboxAddOn' | 'social' | 'store' | 'storeDisabled' | 'successfullyConnectedEmail' | 'target' | 'task' | 'tickets' | 'voteAndSearch';
|
|
3
4
|
/**
|
|
4
5
|
* The props type for {@link !components.EmptyState}.
|
|
5
6
|
*
|
|
6
7
|
* @category Component Props
|
|
7
8
|
*/
|
|
8
|
-
export interface EmptyStateProps {
|
|
9
|
+
export interface EmptyStateProps extends BaseComponentProps {
|
|
9
10
|
/**
|
|
10
11
|
* When set to `true`, removes the default vertical margins in the component.
|
|
11
12
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.ErrorState}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface ErrorStateProps {
|
|
8
|
+
export interface ErrorStateProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
10
11
|
*
|
package/dist/{__synced__/types/components/form.synced.d.ts → shared/types/components/form.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { FormSubmitExtensionEvent } from '../shared.
|
|
3
|
-
import { ReactionsHandler } from '../reactions.
|
|
2
|
+
import { FormSubmitExtensionEvent, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
4
4
|
export type FormInputValues = Record<string, string | number>;
|
|
5
5
|
/**
|
|
6
6
|
* The props type for {@link !components.Form}.
|
|
7
7
|
*
|
|
8
8
|
* @category Component Props
|
|
9
9
|
*/
|
|
10
|
-
export interface FormProps {
|
|
10
|
+
export interface FormProps extends BaseComponentProps {
|
|
11
11
|
/**
|
|
12
12
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
13
13
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.Heading}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface HeadingProps {
|
|
8
|
+
export interface HeadingProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
10
11
|
*
|
package/dist/{__synced__/types/components/icon.synced.d.ts → shared/types/components/icon.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TShirtSizes, IconNames } from '../shared.
|
|
1
|
+
import { TShirtSizes, IconNames, BaseComponentProps } from '../shared.ts';
|
|
2
2
|
export type IconColor = 'alert' | 'warning' | 'success' | 'inherit';
|
|
3
3
|
/**
|
|
4
4
|
* The props type for {@link !components.Icon}.
|
|
5
5
|
*
|
|
6
6
|
* @category Component Props
|
|
7
7
|
*/
|
|
8
|
-
export interface IconProps {
|
|
8
|
+
export interface IconProps extends BaseComponentProps {
|
|
9
9
|
/**
|
|
10
10
|
* Sets the icon color. By default, the icon will use `inherit`, which inherits the color from its parent element.
|
|
11
11
|
*
|
package/dist/{__synced__/types/components/iframe.synced.d.ts → shared/types/components/iframe.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TShirtSizes } from '../shared.
|
|
1
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
2
2
|
/**
|
|
3
3
|
* The props type for {@link !components.Iframe}.
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import { TShirtSizes } from '../shared.synced';
|
|
|
6
6
|
* @experimental
|
|
7
7
|
* @category Component Props
|
|
8
8
|
*/
|
|
9
|
-
export interface IframeProps {
|
|
9
|
+
export interface IframeProps extends BaseComponentProps {
|
|
10
10
|
/**
|
|
11
11
|
* Sets the height of the iframe. If this prop is not provided, the iframe defaults size medium.
|
|
12
12
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
1
2
|
/**
|
|
2
3
|
* The props type for {@link !components.Illustration}.
|
|
3
4
|
*
|
|
4
5
|
* @category Component Props
|
|
5
6
|
*/
|
|
6
|
-
export interface IllustrationProps {
|
|
7
|
+
export interface IllustrationProps extends BaseComponentProps {
|
|
7
8
|
name: IllustrationNames;
|
|
8
9
|
alt: string;
|
|
9
10
|
width?: number;
|
package/dist/{__synced__/types/components/image.synced.d.ts → shared/types/components/image.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OverlayComponentProps, HrefProp, ExtensionEvent } from '../shared.
|
|
2
|
-
import { ReactionsHandler } from '../reactions.
|
|
1
|
+
import { OverlayComponentProps, HrefProp, ExtensionEvent, BaseComponentProps } from '../shared.ts';
|
|
2
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The props type for {@link !components.Image}.
|
|
5
5
|
*
|
|
6
6
|
* @category Component Props
|
|
7
7
|
*/
|
|
8
|
-
export interface ImageProps extends OverlayComponentProps {
|
|
8
|
+
export interface ImageProps extends OverlayComponentProps, BaseComponentProps {
|
|
9
9
|
/**
|
|
10
10
|
* The alt text for the image.
|
|
11
11
|
*
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type * from './accordion.ts';
|
|
2
|
+
export type * from './alert.ts';
|
|
3
|
+
export type * from './app-home-header-actions.ts';
|
|
4
|
+
export type * from './button-row.ts';
|
|
5
|
+
export type * from './button.ts';
|
|
6
|
+
export type * from './card.ts';
|
|
7
|
+
export type * from './chart.ts';
|
|
8
|
+
export type * from './description-list.ts';
|
|
9
|
+
export type * from './divider.ts';
|
|
10
|
+
export type * from './dropdown.ts';
|
|
11
|
+
export type * from './empty-state.ts';
|
|
12
|
+
export type * from './error-state.ts';
|
|
13
|
+
export type * from './form.ts';
|
|
14
|
+
export type * from './heading.ts';
|
|
15
|
+
export type * from './icon.ts';
|
|
16
|
+
export type * from './iframe.ts';
|
|
17
|
+
export type * from './illustration.ts';
|
|
18
|
+
export type * from './image.ts';
|
|
19
|
+
export type * from './inputs.ts';
|
|
20
|
+
export type * from './layouts.ts';
|
|
21
|
+
export type * from './link.ts';
|
|
22
|
+
export type * from './list.ts';
|
|
23
|
+
export type * from './loading-spinner.ts';
|
|
24
|
+
export type * from './modal.ts';
|
|
25
|
+
export type * from './panel.ts';
|
|
26
|
+
export type * from './progress-bar.ts';
|
|
27
|
+
export type * from './selects.ts';
|
|
28
|
+
export type * from './statistics.ts';
|
|
29
|
+
export type * from './status-tag.ts';
|
|
30
|
+
export type * from './step-indicator.ts';
|
|
31
|
+
export type * from './table.ts';
|
|
32
|
+
export type * from './tabs.ts';
|
|
33
|
+
export type * from './tag.ts';
|
|
34
|
+
export type * from './text.ts';
|
|
35
|
+
export type * from './tile.ts';
|
|
36
|
+
export type * from './toggle.ts';
|
|
37
|
+
export type * from './toggleInputs.ts';
|
|
38
|
+
export type * from './tooltip.ts';
|
package/dist/{__synced__/types/components/inputs.synced.d.ts → shared/types/components/inputs.d.ts}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
1
2
|
/**
|
|
2
3
|
* Generic collection of props for all inputs
|
|
3
4
|
* @internal
|
|
4
5
|
* */
|
|
5
|
-
interface BaseInputProps<T = string, V = string> {
|
|
6
|
+
interface BaseInputProps<T = string, V = string> extends BaseComponentProps {
|
|
6
7
|
/**
|
|
7
8
|
* The label text to display for the form input element.
|
|
8
9
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AllDistances } from '../shared.
|
|
2
|
+
import { AllDistances, BaseComponentProps } from '../shared.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The props type for {@link !components.Stack}.
|
|
5
5
|
*
|
|
6
6
|
* @category Component Props
|
|
7
7
|
*/
|
|
8
|
-
export interface StackProps {
|
|
8
|
+
export interface StackProps extends BaseComponentProps {
|
|
9
9
|
/**
|
|
10
10
|
* Sets the spacing between components.
|
|
11
11
|
*/
|
|
@@ -38,7 +38,7 @@ export type FlexAlign = 'start' | 'center' | 'baseline' | 'end' | 'stretch';
|
|
|
38
38
|
*
|
|
39
39
|
* @category Component Props
|
|
40
40
|
*/
|
|
41
|
-
export interface FlexProps {
|
|
41
|
+
export interface FlexProps extends BaseComponentProps {
|
|
42
42
|
/**
|
|
43
43
|
* Sets the spacing between components.
|
|
44
44
|
*
|
|
@@ -85,7 +85,7 @@ export interface FlexProps {
|
|
|
85
85
|
*
|
|
86
86
|
* @category Component Props
|
|
87
87
|
*/
|
|
88
|
-
export interface BoxProps {
|
|
88
|
+
export interface BoxProps extends BaseComponentProps {
|
|
89
89
|
/**
|
|
90
90
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
91
91
|
*
|
|
@@ -115,7 +115,7 @@ export interface BoxProps {
|
|
|
115
115
|
*
|
|
116
116
|
* @category Component Props
|
|
117
117
|
*/
|
|
118
|
-
export interface InlineProps {
|
|
118
|
+
export interface InlineProps extends BaseComponentProps {
|
|
119
119
|
/**
|
|
120
120
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
121
121
|
*
|
|
@@ -143,7 +143,7 @@ export interface InlineProps {
|
|
|
143
143
|
*
|
|
144
144
|
* @category Component Props
|
|
145
145
|
*/
|
|
146
|
-
export interface AutoGridProps {
|
|
146
|
+
export interface AutoGridProps extends BaseComponentProps {
|
|
147
147
|
/**
|
|
148
148
|
* Sets the width of each column in the grid.
|
|
149
149
|
* When `flexible` is true, columns will be at least this width (or collapse to container width if smaller), then expand equally to fill available space.
|
package/dist/{__synced__/types/components/link.synced.d.ts → shared/types/components/link.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { OverlayComponentProps, ExtensionEvent, HrefProp } from '../shared.
|
|
3
|
-
import { ReactionsHandler } from '../reactions.
|
|
2
|
+
import { OverlayComponentProps, ExtensionEvent, HrefProp, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
import { ReactionsHandler } from '../reactions.ts';
|
|
4
4
|
/**
|
|
5
5
|
* The props type for {@link !components.Link}.
|
|
6
6
|
*
|
|
7
7
|
* @category Component Props
|
|
8
8
|
*/
|
|
9
|
-
export interface LinkProps extends OverlayComponentProps {
|
|
9
|
+
export interface LinkProps extends OverlayComponentProps, BaseComponentProps {
|
|
10
10
|
/**
|
|
11
11
|
* Sets the content that will render inside the component.
|
|
12
12
|
*
|
package/dist/{__synced__/types/components/list.synced.d.ts → shared/types/components/list.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.List}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface ListProps {
|
|
8
|
+
export interface ListProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* The content of the list. Each child will be wrapped in an `li` tag.
|
|
10
11
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TShirtSizes } from '../shared.
|
|
1
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
2
2
|
/**
|
|
3
3
|
* The props type for {@link !components.LoadingSpinner}.
|
|
4
4
|
*
|
|
5
5
|
* @category Component Props
|
|
6
6
|
*/
|
|
7
|
-
export interface LoadingSpinnerProps {
|
|
7
|
+
export interface LoadingSpinnerProps extends BaseComponentProps {
|
|
8
8
|
/**
|
|
9
9
|
* The text that displays next to the spinner. Note: the label is not shown by default, you must set `showLabel` to `true` to display the label.
|
|
10
10
|
*
|
package/dist/{__synced__/types/components/modal.synced.d.ts → shared/types/components/modal.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TShirtSizes } from '../shared.
|
|
3
|
-
export interface ModalProps {
|
|
2
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
export interface ModalProps extends BaseComponentProps {
|
|
4
4
|
/**
|
|
5
5
|
* Accessibility label.
|
|
6
6
|
*
|
|
@@ -44,14 +44,14 @@ export interface ModalProps {
|
|
|
44
44
|
*/
|
|
45
45
|
variant?: 'danger' | 'default';
|
|
46
46
|
}
|
|
47
|
-
export interface ModalBodyProps {
|
|
47
|
+
export interface ModalBodyProps extends BaseComponentProps {
|
|
48
48
|
/**
|
|
49
49
|
* The main content of the modal
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
children: ReactNode;
|
|
53
53
|
}
|
|
54
|
-
export interface ModalFooterProps {
|
|
54
|
+
export interface ModalFooterProps extends BaseComponentProps {
|
|
55
55
|
/**
|
|
56
56
|
* The footer of the modal
|
|
57
57
|
*
|
package/dist/{__synced__/types/components/panel.synced.d.ts → shared/types/components/panel.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TShirtSizes } from '../shared.
|
|
3
|
-
export interface PanelProps {
|
|
2
|
+
import { TShirtSizes, BaseComponentProps } from '../shared.ts';
|
|
3
|
+
export interface PanelProps extends BaseComponentProps {
|
|
4
4
|
/**
|
|
5
5
|
* Accessibility label.
|
|
6
6
|
*
|
|
@@ -44,7 +44,7 @@ export interface PanelProps {
|
|
|
44
44
|
*/
|
|
45
45
|
variant?: 'modal' | 'default';
|
|
46
46
|
}
|
|
47
|
-
export interface PanelSectionProps {
|
|
47
|
+
export interface PanelSectionProps extends BaseComponentProps {
|
|
48
48
|
/**
|
|
49
49
|
* When set to `true`, the section will have no bottom margin
|
|
50
50
|
*
|
|
@@ -57,14 +57,14 @@ export interface PanelSectionProps {
|
|
|
57
57
|
*/
|
|
58
58
|
children: ReactNode;
|
|
59
59
|
}
|
|
60
|
-
export interface PanelBodyProps {
|
|
60
|
+
export interface PanelBodyProps extends BaseComponentProps {
|
|
61
61
|
/**
|
|
62
62
|
* The main content of the body
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
children: ReactNode;
|
|
66
66
|
}
|
|
67
|
-
export interface PanelFooterProps {
|
|
67
|
+
export interface PanelFooterProps extends BaseComponentProps {
|
|
68
68
|
/**
|
|
69
69
|
* The main content of the footer
|
|
70
70
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
1
2
|
/**
|
|
2
3
|
* The props type for {@link !components.ProgressBar}.
|
|
3
4
|
*
|
|
4
5
|
* @category Component Props
|
|
5
6
|
*/
|
|
6
|
-
export interface ProgressBarProps {
|
|
7
|
+
export interface ProgressBarProps extends BaseComponentProps {
|
|
7
8
|
/**
|
|
8
9
|
* The text that displays above the progress bar.
|
|
9
10
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
1
2
|
/**
|
|
2
3
|
* Generic collection of props for select components
|
|
3
4
|
* @internal
|
|
4
5
|
* */
|
|
5
|
-
export interface BaseSelectProps {
|
|
6
|
+
export interface BaseSelectProps extends BaseComponentProps {
|
|
6
7
|
/**
|
|
7
8
|
* The text that displays above to the dropdown menu.
|
|
8
9
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.StatisticsTrend}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface StatisticsTrendProps {
|
|
8
|
+
export interface StatisticsTrendProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* The text to be displayed as the trend value.
|
|
10
11
|
*/
|
|
@@ -25,7 +26,7 @@ export interface StatisticsTrendProps {
|
|
|
25
26
|
*
|
|
26
27
|
* @category Component Props
|
|
27
28
|
*/
|
|
28
|
-
export interface StatisticsItemProps {
|
|
29
|
+
export interface StatisticsItemProps extends BaseComponentProps {
|
|
29
30
|
/**
|
|
30
31
|
* The unique identifier.
|
|
31
32
|
*/
|
|
@@ -48,7 +49,7 @@ export interface StatisticsItemProps {
|
|
|
48
49
|
*
|
|
49
50
|
* @category Component Props
|
|
50
51
|
*/
|
|
51
|
-
export interface StatisticsProps {
|
|
52
|
+
export interface StatisticsProps extends BaseComponentProps {
|
|
52
53
|
/**
|
|
53
54
|
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be {@link !components.StatisticsItem}.
|
|
54
55
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
/**
|
|
3
4
|
* The props type for {@link !components.StatusTag}.
|
|
4
5
|
*
|
|
5
6
|
* @category Component Props
|
|
6
7
|
*/
|
|
7
|
-
export interface StatusTagProps {
|
|
8
|
+
export interface StatusTagProps extends BaseComponentProps {
|
|
8
9
|
/**
|
|
9
10
|
* The status tag's indicator color.
|
|
10
11
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AllSizes } from '../shared.
|
|
1
|
+
import { AllSizes, BaseComponentProps } from '../shared.ts';
|
|
2
2
|
/**
|
|
3
3
|
* The props type for {@link !components.StepIndicator}.
|
|
4
4
|
*
|
|
5
5
|
* @category Component Props
|
|
6
6
|
*/
|
|
7
|
-
export interface StepIndicatorProps {
|
|
7
|
+
export interface StepIndicatorProps extends BaseComponentProps {
|
|
8
8
|
/**
|
|
9
9
|
* An array containing the name of each step.
|
|
10
10
|
*/
|
package/dist/{__synced__/types/components/table.synced.d.ts → shared/types/components/table.d.ts}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../shared.ts';
|
|
2
3
|
export interface AlignmentProps {
|
|
3
4
|
align?: 'left' | 'center' | 'right';
|
|
4
5
|
}
|
|
5
6
|
export interface WidthProps {
|
|
6
7
|
width?: 'min' | 'max' | 'auto' | number;
|
|
7
8
|
}
|
|
8
|
-
export interface TableElementProps {
|
|
9
|
+
export interface TableElementProps extends BaseComponentProps {
|
|
9
10
|
children: ReactNode;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
@@ -14,10 +15,10 @@ export interface TableElementProps {
|
|
|
14
15
|
*
|
|
15
16
|
* @interface
|
|
16
17
|
*/
|
|
17
|
-
export type BaseTableHeaderProps = TableElementProps & AlignmentProps & WidthProps;
|
|
18
|
+
export type BaseTableHeaderProps = TableElementProps & AlignmentProps & WidthProps & BaseComponentProps;
|
|
18
19
|
export type TableCellProps = TableElementProps & AlignmentProps & WidthProps & {
|
|
19
20
|
colSpan?: number;
|
|
20
|
-
};
|
|
21
|
+
} & BaseComponentProps;
|
|
21
22
|
/**
|
|
22
23
|
* The props type for {@link !components.TableHeader} when sorted === never.
|
|
23
24
|
*
|
|
@@ -59,7 +60,7 @@ export interface SortedTableHeaderProps extends BaseTableHeaderProps {
|
|
|
59
60
|
* @category Component Props
|
|
60
61
|
*/
|
|
61
62
|
export type TableHeaderProps = SortedTableHeaderProps | UnSortedTableHeaderProps;
|
|
62
|
-
interface BaseTableProps {
|
|
63
|
+
interface BaseTableProps extends BaseComponentProps {
|
|
63
64
|
/**
|
|
64
65
|
* When set to false, the table will not have borders.
|
|
65
66
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|