@7shifts/sous-chef 4.15.0 → 4.16.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.
- package/dist/actions/Button/Button.d.ts +5 -1
- package/dist/actions/Link/Link.d.ts +7 -0
- package/dist/actions/PaginationControls/PaginationControls.d.ts +7 -5
- package/dist/actions/Toggle/Toggle.d.ts +2 -0
- package/dist/controls/DateFilter/DateFilter.d.ts +16 -1
- package/dist/controls/SegmentedControl/SegmentedControl.d.ts +6 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +9 -1
- package/dist/core/SousChefProvider/SousChefProvider.d.ts +7 -0
- package/dist/empty_states/EmptyStateContainer/types.d.ts +16 -2
- package/dist/feedback/CircularProgress/CircularProgress.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +1 -0
- package/dist/feedback/MicroBanner/MicroBanner.d.ts +1 -0
- package/dist/feedback/PersistentBanner/PersistentBanner.d.ts +6 -0
- package/dist/feedback/ProgressBar/ProgressBar.d.ts +7 -1
- package/dist/feedback/Spinner/Spinner.d.ts +6 -0
- package/dist/feedback/Toast/Toast.d.ts +13 -0
- package/dist/forms/CheckboxField/CheckboxField.d.ts +4 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +5 -21
- package/dist/forms/DateField/DateField.d.ts +13 -1
- package/dist/forms/DateRangeField/DateRangeCalendar/DateRangeCalendar.d.ts +6 -3
- package/dist/forms/DateRangeField/DateRangeField.d.ts +17 -3
- package/dist/forms/Form/Form.d.ts +13 -2
- package/dist/forms/FormFeedback/FormFeedback.d.ts +1 -0
- package/dist/forms/FormFooter/FormFooter.d.ts +11 -5
- package/dist/forms/FormFooter/FormFooterActions/FormFooterActions.d.ts +2 -5
- package/dist/forms/FormFooter/types.d.ts +10 -0
- package/dist/forms/FormRow/FormRow.d.ts +6 -0
- package/dist/forms/FormSection/FormSection.d.ts +4 -0
- package/dist/forms/MultiSelectField/MultiSelectField.d.ts +6 -2
- package/dist/forms/NumberField/NumberField.d.ts +4 -0
- package/dist/forms/PasswordField/PasswordField.d.ts +3 -0
- package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
- package/dist/forms/PhoneField/PhoneField.d.ts +10 -0
- package/dist/forms/PillSelectField/PillSelectField.d.ts +9 -0
- package/dist/forms/PillSelectField/types.d.ts +2 -0
- package/dist/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +7 -0
- package/dist/forms/RadioGroupField/RadioGroupField.d.ts +8 -1
- package/dist/forms/RadioGroupField/RadioGroupFieldContext.d.ts +2 -1
- package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +6 -1
- package/dist/forms/SelectField/SelectField.d.ts +20 -3
- package/dist/forms/SelectField/types.d.ts +27 -0
- package/dist/forms/TextAreaField/TextAreaField.d.ts +7 -1
- package/dist/forms/TextField/TextField.d.ts +8 -0
- package/dist/forms/TimeField/TimeField.d.ts +23 -1
- package/dist/forms/TimeRangeField/TimeRangeField.d.ts +15 -2
- package/dist/forms/WeekField/WeekField.d.ts +4 -0
- package/dist/forms/WeekSelectField/WeekSelectField.d.ts +4 -0
- package/dist/forms/hooks/useRadioGroupFieldControllers.d.ts +1 -2
- package/dist/forms/hooks/useSelectFieldControllers.d.ts +2 -2
- package/dist/forms/index.d.ts +2 -0
- package/dist/foundation/tokens/color/color-constants.d.ts +34 -0
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/foundation/tokens/dimension/dimension-tokens.d.ts +1 -0
- package/dist/foundation/tokens/layout/TokenTable.d.ts +14 -0
- package/dist/foundation/tokens/layout/layout-tokens.d.ts +12 -0
- package/dist/hooks/useIsOverflowing.d.ts +2 -0
- package/dist/index.css +755 -479
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1295 -941
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1431 -1098
- package/dist/index.modern.js.map +1 -1
- package/dist/ink_illustrations/components/design/Ink3DModeling.d.ts +7 -0
- package/dist/ink_illustrations/components/design/index.d.ts +1 -1
- package/dist/ink_illustrations/components/index.d.ts +2 -2
- package/dist/ink_illustrations/components/other/InkSculptureBust.d.ts +7 -0
- package/dist/ink_illustrations/components/other/index.d.ts +1 -1
- package/dist/ink_illustrations/components/{design/Ink3DModeling02.d.ts → travel/InkBoardingPass.d.ts} +2 -2
- package/dist/ink_illustrations/components/travel/InkVolcano.d.ts +7 -0
- package/dist/ink_illustrations/components/travel/index.d.ts +2 -2
- package/dist/ink_illustrations/components/weather/InkSun.d.ts +7 -0
- package/dist/ink_illustrations/components/weather/index.d.ts +1 -1
- package/dist/ink_illustrations/deprecatedAliases.d.ts +27 -0
- package/dist/ink_illustrations/index.d.ts +1 -0
- package/dist/layout/CalloutCard/CalloutCard.d.ts +1 -0
- package/dist/layout/Card/Card.d.ts +14 -0
- package/dist/layout/Inline/Inline.d.ts +20 -4
- package/dist/layout/Page/Page.d.ts +11 -3
- package/dist/layout/Page/PageBreadcrumbs/PageBreadcrumbs.d.ts +2 -2
- package/dist/layout/Page/types.d.ts +11 -2
- package/dist/layout/PageLayout/PageLayout.d.ts +18 -0
- package/dist/layout/PageLayout/types.d.ts +10 -0
- package/dist/layout/Stack/Stack.d.ts +16 -4
- package/dist/layout/index.d.ts +1 -0
- package/dist/lists/Accordion/Accordion.d.ts +10 -0
- package/dist/lists/Accordion/types.d.ts +4 -0
- package/dist/lists/ActionList/ActionList.d.ts +12 -0
- package/dist/lists/ActionList/type.d.ts +5 -0
- package/dist/lists/ActionListItem/ActionListItem.d.ts +17 -0
- package/dist/lists/BasicTable/BasicTable.d.ts +22 -0
- package/dist/lists/BasicTable/BasicTableSectionContext.d.ts +4 -0
- package/dist/lists/BasicTable/constants.d.ts +13 -0
- package/dist/lists/BasicTable/index.d.ts +1 -0
- package/dist/lists/BasicTable/types.d.ts +4 -0
- package/dist/lists/BasicTableBody/BasicTableBody.d.ts +9 -0
- package/dist/lists/BasicTableBody/index.d.ts +1 -0
- package/dist/lists/BasicTableCell/BasicTableCell.d.ts +14 -0
- package/dist/lists/BasicTableCell/index.d.ts +1 -0
- package/dist/lists/BasicTableHeader/BasicTableHeader.d.ts +9 -0
- package/dist/lists/BasicTableHeader/index.d.ts +1 -0
- package/dist/lists/BasicTableRow/BasicTableRow.d.ts +9 -0
- package/dist/lists/BasicTableRow/index.d.ts +1 -0
- package/dist/lists/DataTable/DataTable.d.ts +31 -8
- package/dist/lists/DataTable/types.d.ts +35 -0
- package/dist/lists/DataTableCell/DataTableCell.d.ts +1 -0
- package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +1 -0
- package/dist/lists/DataTableRow/DataTableRow.d.ts +12 -0
- package/dist/lists/index.d.ts +7 -1
- package/dist/media/Avatar/Avatar.d.ts +1 -0
- package/dist/media/Badge/Badge.d.ts +7 -2
- package/dist/media/Pill/Pill.d.ts +8 -0
- package/dist/media/Pill/constants.d.ts +2 -0
- package/dist/media/Pill/types.d.ts +3 -1
- package/dist/navigation/BreadcrumbItem/BreadcrumbItem.d.ts +1 -0
- package/dist/navigation/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/navigation/PrimaryNav/PrimaryNav.d.ts +1 -0
- package/dist/navigation/PrimaryNavFooter/PrimaryNavFooter.d.ts +1 -0
- package/dist/navigation/PrimaryNavItem/PrimaryNavItem.d.ts +1 -0
- package/dist/navigation/PrimaryNavSubItem/PrimaryNavSubItem.d.ts +1 -0
- package/dist/navigation/Tab/Tab.d.ts +1 -0
- package/dist/navigation/TabList/TabList.d.ts +1 -0
- package/dist/navigation/TabPanel/TabPanel.d.ts +1 -0
- package/dist/navigation/Tabs/Tabs.d.ts +1 -0
- package/dist/overlay/Calendar/Calendar.d.ts +15 -4
- package/dist/overlay/Dropdown/Dropdown.d.ts +1 -0
- package/dist/overlay/DropdownListDivider/DropdownListDivider.d.ts +1 -0
- package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +1 -0
- package/dist/overlay/DropdownListItemSelectable/DropdownListItemSelectable.d.ts +1 -0
- package/dist/overlay/DropdownSubmenu/DropdownSubmenu.d.ts +1 -0
- package/dist/overlay/HintModal/HintModal.d.ts +1 -0
- package/dist/overlay/KebabMenu/types.d.ts +5 -0
- package/dist/overlay/Modal/Modal.d.ts +3 -0
- package/dist/overlay/Modal/ModalBody/ModalBody.d.ts +1 -0
- package/dist/overlay/Modal/ModalFooter/ModalFooter.d.ts +11 -6
- package/dist/overlay/Modal/ModalFooter/types.d.ts +10 -0
- package/dist/overlay/Popover/Popover.d.ts +8 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +2 -1
- package/dist/overlay/index.d.ts +1 -0
- package/dist/typography/KeyboardKey/KeyboardKey.d.ts +1 -0
- package/dist/typography/Text/Bold/Bold.d.ts +1 -0
- package/dist/typography/Text/Italic/Italic.d.ts +1 -0
- package/dist/typography/Text/Text.d.ts +23 -0
- package/dist/typography/Text/Underline/Underline.d.ts +1 -0
- package/dist/utils/formik.d.ts +5 -0
- package/llms-instructions/guidelines/ActionList.guidelines.md +1 -3
- package/llms-instructions/guidelines/Avatar.guidelines.md +6 -5
- package/llms-instructions/guidelines/Badge.guidelines.md +24 -8
- package/llms-instructions/guidelines/BasicTable.guidelines.md +80 -0
- package/llms-instructions/guidelines/Breadcrumbs.guidelines.md +2 -2
- package/llms-instructions/guidelines/Button.guidelines.md +3 -3
- package/llms-instructions/guidelines/Calendar.guidelines.md +12 -0
- package/llms-instructions/guidelines/Card.guidelines.md +2 -2
- package/llms-instructions/guidelines/CircularProgress.guidelines.md +1 -1
- package/llms-instructions/guidelines/DateFilter.guidelines.md +2 -2
- package/llms-instructions/guidelines/Dropdown.guidelines.md +3 -2
- package/llms-instructions/guidelines/EmptyState.guidelines.md +3 -1
- package/llms-instructions/guidelines/{Forms.guidelines.md → Form.guidelines.md} +41 -6
- package/llms-instructions/guidelines/Icons.guidelines.md +11 -10
- package/llms-instructions/guidelines/InkIllustrations.guidelines.md +5 -4
- package/llms-instructions/guidelines/Inline.guidelines.md +55 -0
- package/llms-instructions/guidelines/InlineBanner.guidelines.md +5 -3
- package/llms-instructions/guidelines/MultiSelectField.guidelines.md +2 -2
- package/llms-instructions/guidelines/Page.guidelines.md +65 -0
- package/llms-instructions/guidelines/PageLayout.guidelines.md +85 -0
- package/llms-instructions/guidelines/Paywall.guidelines.md +3 -2
- package/llms-instructions/guidelines/PersistentBanner.guidelines.md +2 -2
- package/llms-instructions/guidelines/Pill.guidelines.md +31 -3
- package/llms-instructions/guidelines/PillSelectField.guidelines.md +1 -1
- package/llms-instructions/guidelines/PrimaryNav.guidelines.md +144 -0
- package/llms-instructions/guidelines/SegmentedControl.guidelines.md +2 -2
- package/llms-instructions/guidelines/Skeleton.guidelines.md +3 -3
- package/llms-instructions/guidelines/Spinner.guidelines.md +6 -4
- package/llms-instructions/guidelines/Stack.guidelines.md +53 -0
- package/llms-instructions/guidelines/Text.guidelines.md +70 -0
- package/llms-instructions/guidelines/Toast.guidelines.md +2 -1
- package/llms-instructions/guidelines/Toggle.guidelines.md +2 -2
- package/llms-instructions/guidelines/ToolbarSelect.guidelines.md +2 -2
- package/llms-instructions/guidelines/Tooltip.guidelines.md +1 -1
- package/llms-instructions/llms-components.md +91 -19
- package/llms-instructions/llms-composing-components.md +583 -219
- package/llms-instructions/llms-icons-and-illustrations.md +305 -1011
- package/llms-instructions/llms-tokens.md +227 -164
- package/llms-instructions/llms.md +12 -28
- package/package.json +2 -2
- package/dist/ink_illustrations/components/other/InkS/321/201ulptureBust.d.ts +0 -7
- package/dist/ink_illustrations/components/travel/InkDrawing.d.ts +0 -7
- package/dist/ink_illustrations/components/travel/InkDrawing1.d.ts +0 -7
- package/dist/ink_illustrations/components/weather/InkGroup7975.d.ts +0 -7
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/Ink3DGlasses.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkAmusementPark.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBallet.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBowling.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCardGames.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCarouselWithHorses.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDiscoBall.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDj.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkFirecracker.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkJoystick.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMagicTricks.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMascarade.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkNotesChart.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkRollerSkating.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkSlotMachine.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkTheatre.d.ts +0 -0
- /package/dist/ink_illustrations/components/{enterteniment → entertainment}/index.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAnatomy.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAsteroid.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkAstronaut.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkBacteria.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkChemistry.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkDna.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkLabTube.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkMicroChips.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkMicroscope.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkNewtonsCradle.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkNuclearEnergy.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkPlanet.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkPlantInTube.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkRobotics.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkSpaceTravel.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/InkTelescope.d.ts +0 -0
- /package/dist/ink_illustrations/components/{sciency → science}/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as Ink3DModeling } from './Ink3DModeling';
|
|
2
2
|
export { default as Ink3DPrinting } from './Ink3DPrinting';
|
|
3
3
|
export { default as InkAppFolder } from './InkAppFolder';
|
|
4
4
|
export { default as InkApps } from './InkApps';
|
|
@@ -4,7 +4,7 @@ export * from './cooking';
|
|
|
4
4
|
export * from './design';
|
|
5
5
|
export * from './education';
|
|
6
6
|
export * from './emojis';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './entertainment';
|
|
8
8
|
export * from './food';
|
|
9
9
|
export * from './gardening';
|
|
10
10
|
export * from './hands';
|
|
@@ -17,7 +17,7 @@ export * from './office';
|
|
|
17
17
|
export * from './other';
|
|
18
18
|
export * from './people';
|
|
19
19
|
export * from './pets';
|
|
20
|
-
export * from './
|
|
20
|
+
export * from './science';
|
|
21
21
|
export * from './shop';
|
|
22
22
|
export * from './sport';
|
|
23
23
|
export * from './therapy';
|
|
@@ -11,5 +11,5 @@ export { default as InkMicrophone } from './InkMicrophone';
|
|
|
11
11
|
export { default as InkPaperPlane } from './InkPaperPlane';
|
|
12
12
|
export { default as InkPartyHat } from './InkPartyHat';
|
|
13
13
|
export { default as InkPokemon } from './InkPokemon';
|
|
14
|
-
export { default as
|
|
14
|
+
export { default as InkSculptureBust } from './InkSculptureBust';
|
|
15
15
|
export { default as InkWallet } from './InkWallet';
|
|
@@ -3,5 +3,5 @@ type Props = {
|
|
|
3
3
|
testId?: string;
|
|
4
4
|
size?: number | string;
|
|
5
5
|
} & React.SVGProps<SVGSVGElement>;
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const InkBoardingPass: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
|
|
7
|
+
export default InkBoardingPass;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export { default as InkAirplanePillow } from './InkAirplanePillow';
|
|
2
2
|
export { default as InkAviatorSunglasses } from './InkAviatorSunglasses';
|
|
3
|
+
export { default as InkBoardingPass } from './InkBoardingPass';
|
|
3
4
|
export { default as InkBonfire } from './InkBonfire';
|
|
4
5
|
export { default as InkCampingSuv } from './InkCampingSuv';
|
|
5
6
|
export { default as InkCarabine } from './InkCarabine';
|
|
6
7
|
export { default as InkCompass } from './InkCompass';
|
|
7
8
|
export { default as InkDirectionSigns } from './InkDirectionSigns';
|
|
8
9
|
export { default as InkDoNotDisturb } from './InkDoNotDisturb';
|
|
9
|
-
export { default as InkDrawing1 } from './InkDrawing1';
|
|
10
|
-
export { default as InkDrawing } from './InkDrawing';
|
|
11
10
|
export { default as InkFlashlight } from './InkFlashlight';
|
|
12
11
|
export { default as InkFlipFlops } from './InkFlipFlops';
|
|
13
12
|
export { default as InkFlippers } from './InkFlippers';
|
|
@@ -29,3 +28,4 @@ export { default as InkTemplate } from './InkTemplate';
|
|
|
29
28
|
export { default as InkTent } from './InkTent';
|
|
30
29
|
export { default as InkTouristBackpack } from './InkTouristBackpack';
|
|
31
30
|
export { default as InkTouristBriefcase } from './InkTouristBriefcase';
|
|
31
|
+
export { default as InkVolcano } from './InkVolcano';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as InkGroup7975 } from './InkGroup7975';
|
|
2
1
|
export { default as InkClearNight } from './InkClearNight';
|
|
3
2
|
export { default as InkCloudy } from './InkCloudy';
|
|
4
3
|
export { default as InkPartlyCloudyDay } from './InkPartlyCloudyDay';
|
|
@@ -9,6 +8,7 @@ export { default as InkRainy } from './InkRainy';
|
|
|
9
8
|
export { default as InkSnowflake } from './InkSnowflake';
|
|
10
9
|
export { default as InkSnowy } from './InkSnowy';
|
|
11
10
|
export { default as InkStrongWind } from './InkStrongWind';
|
|
11
|
+
export { default as InkSun } from './InkSun';
|
|
12
12
|
export { default as InkTemperatureCold } from './InkTemperatureCold';
|
|
13
13
|
export { default as InkTemperatureHot } from './InkTemperatureHot';
|
|
14
14
|
export { default as InkThunderstorm } from './InkThunderstorm';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Contains a Cyrillic "с" (U+0441). Use `InkSculptureBust` instead. Will be removed in the next major.
|
|
3
|
+
*/
|
|
4
|
+
export declare const InkSсulptureBust: import("react").ForwardRefExoticComponent<Omit<{
|
|
5
|
+
testId?: string | undefined;
|
|
6
|
+
size?: string | number | undefined;
|
|
7
|
+
} & import("react").SVGProps<SVGSVGElement>, "ref">>;
|
|
8
|
+
/** @deprecated Use `InkSun` instead. Will be removed in the next major. */
|
|
9
|
+
export declare const InkGroup7975: import("react").ForwardRefExoticComponent<Omit<{
|
|
10
|
+
testId?: string | undefined;
|
|
11
|
+
size?: string | number | undefined;
|
|
12
|
+
} & import("react").SVGProps<SVGSVGElement>, "ref">>;
|
|
13
|
+
/** @deprecated Use `InkVolcano` instead. Will be removed in the next major. */
|
|
14
|
+
export declare const InkDrawing: import("react").ForwardRefExoticComponent<Omit<{
|
|
15
|
+
testId?: string | undefined;
|
|
16
|
+
size?: string | number | undefined;
|
|
17
|
+
} & import("react").SVGProps<SVGSVGElement>, "ref">>;
|
|
18
|
+
/** @deprecated Use `InkBoardingPass` instead. Will be removed in the next major. */
|
|
19
|
+
export declare const InkDrawing1: import("react").ForwardRefExoticComponent<Omit<{
|
|
20
|
+
testId?: string | undefined;
|
|
21
|
+
size?: string | number | undefined;
|
|
22
|
+
} & import("react").SVGProps<SVGSVGElement>, "ref">>;
|
|
23
|
+
/** @deprecated Use `Ink3DModeling` instead. Will be removed in the next major. */
|
|
24
|
+
export declare const Ink3DModeling02: import("react").ForwardRefExoticComponent<Omit<{
|
|
25
|
+
testId?: string | undefined;
|
|
26
|
+
size?: string | number | undefined;
|
|
27
|
+
} & import("react").SVGProps<SVGSVGElement>, "ref">>;
|
|
@@ -2,11 +2,25 @@ import React from 'react';
|
|
|
2
2
|
import type { DataProps, PositionStyles } from '../../foundation/types';
|
|
3
3
|
import { MenuAction } from '../../overlay/KebabMenu/types';
|
|
4
4
|
type Props = {
|
|
5
|
+
/** Content of the card. */
|
|
5
6
|
children: React.ReactNode;
|
|
7
|
+
/** Makes the whole card clickable: the content is rendered inside a `button` and this is called on click. */
|
|
6
8
|
onClick?: () => void;
|
|
9
|
+
/** Shows a close button in the top right corner and is called when it is clicked. When `actions` is set, a "Dismiss" item is added to the kebab menu instead. */
|
|
7
10
|
onClose?: () => void;
|
|
11
|
+
/** Highlights the card with a focus border, e.g. for a selected option. */
|
|
8
12
|
isSelected?: boolean;
|
|
13
|
+
/** Greys out the card and disables `onClick`, the kebab menu and the close button. */
|
|
9
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Actions shown in a kebab menu in the top right corner, as an array of `MenuAction` objects:
|
|
17
|
+
* - `action` (required): unique key.
|
|
18
|
+
* - `label` (required): text of the menu item.
|
|
19
|
+
* - `onAction` (required): called when the item is clicked.
|
|
20
|
+
* - `hidden`: when `true` the item is not shown.
|
|
21
|
+
*
|
|
22
|
+
* Example: `[{ action: 'edit', label: 'Edit', onAction: () => {} }]`. With `onClose` set, a "Dismiss" item calling it is added at the end of the menu instead of a close button.
|
|
23
|
+
*/
|
|
10
24
|
actions?: MenuAction[];
|
|
11
25
|
testId?: string;
|
|
12
26
|
} & PositionStyles & DataProps;
|
|
@@ -2,18 +2,34 @@ import React from 'react';
|
|
|
2
2
|
import { DataProps, PositionStyles } from '../../foundation/types';
|
|
3
3
|
import type { AlignItems, FlexWrap, JustifyContent, Space, SpaceConfig } from '../Flex/types';
|
|
4
4
|
type Props = {
|
|
5
|
+
/** Elements to lay out. Each child is wrapped in its own flex item. */
|
|
5
6
|
children: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Gap between items in pixels, from `0` to `60` in multiples of `4`, e.g. `8`, `12`, `16` and so on. Can also be an object, `{ row: Space, column: Space }` (for example `{ row: 4, column: 8 }`), to set the row and column gaps separately.
|
|
9
|
+
* @default 20
|
|
10
|
+
*/
|
|
7
11
|
space?: Space | SpaceConfig;
|
|
8
|
-
/**
|
|
12
|
+
/** CSS `flex` value for each child, by position: the first entry applies to the first child, the second to the second, and so on (e.g. `[1]` makes the first child fill the remaining space, `['0 1 auto', 1]` the second). Children without an entry use `0 1 auto`. Check out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values. */
|
|
9
13
|
flex?: (string | number)[];
|
|
10
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Vertical alignment of the items. One of: `flex-start`, `flex-end`, `center`, `stretch`
|
|
16
|
+
* @default flex-start
|
|
17
|
+
*/
|
|
11
18
|
alignItems?: AlignItems;
|
|
12
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Horizontal distribution of the items. One of: `start`, `end`, `center`, `space-between`
|
|
21
|
+
* @default start
|
|
22
|
+
*/
|
|
13
23
|
justifyContent?: JustifyContent;
|
|
24
|
+
/** When `true` the container uses `display: inline-flex`, so it only takes the width of its content. */
|
|
14
25
|
inlineFlex?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether items wrap to a new line when they don't fit: `nowrap`, `wrap` or `wrap-reverse`.
|
|
28
|
+
* @default nowrap
|
|
29
|
+
*/
|
|
15
30
|
flexWrap?: FlexWrap;
|
|
16
31
|
testId?: string;
|
|
32
|
+
/** CSS `flex-grow` applied to the container itself, useful when it is a child of another `Stack` or `Inline`. */
|
|
17
33
|
flexGrow?: number;
|
|
18
34
|
} & PositionStyles & DataProps;
|
|
19
35
|
/**
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PageSize,
|
|
2
|
+
import type { PageSize, PageBreadcrumbs as PageBreadcrumbsType } from './types';
|
|
3
3
|
type Props = {
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Breadcrumb shown above the title to navigate back up. It is **not** JSX and not the `Breadcrumbs` component; it takes one of:
|
|
6
|
+
* - a `string`: the label of a single breadcrumb that goes up one level (`..`), e.g. `breadcrumbs="Employees"`.
|
|
7
|
+
* - a `{ label: string, url: string }` object: a single breadcrumb linking to `url`.
|
|
8
|
+
* - an array of `{ label, url }` objects: one breadcrumb per item.
|
|
9
|
+
*
|
|
10
|
+
* The breadcrumbs use react-router links, so a react-router `Router` must be above the `Page`.
|
|
11
|
+
*/
|
|
12
|
+
breadcrumbs?: PageBreadcrumbsType;
|
|
6
13
|
/** Defines the title of the page */
|
|
7
14
|
title?: React.ReactNode;
|
|
8
15
|
/** Defines the subtitle of the page */
|
|
@@ -16,6 +23,7 @@ type Props = {
|
|
|
16
23
|
/** Defines the size of the page, the default is `restricted` */
|
|
17
24
|
size?: PageSize;
|
|
18
25
|
testId?: string;
|
|
26
|
+
/** Main content of the page, shown below the header blocks. */
|
|
19
27
|
children: React.ReactNode;
|
|
20
28
|
};
|
|
21
29
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { PageBreadcrumbs as PageBreadcrumbsType } from '../types';
|
|
3
3
|
type Props = {
|
|
4
|
-
breadcrumbs:
|
|
4
|
+
breadcrumbs: PageBreadcrumbsType;
|
|
5
5
|
};
|
|
6
6
|
declare const PageBreadcrumbs: ({ breadcrumbs }: Props) => React.JSX.Element;
|
|
7
7
|
export default PageBreadcrumbs;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/** A single breadcrumb link: `{ label: 'Employees', url: '/employees' }` */
|
|
2
|
+
export type PageBreadcrumb = {
|
|
3
|
+
/** Text shown for the breadcrumb. */
|
|
2
4
|
label: string;
|
|
5
|
+
/** Route the breadcrumb links to. */
|
|
3
6
|
url: string;
|
|
4
7
|
};
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Breadcrumbs of a `Page`. Not JSX: pass a string, a `PageBreadcrumb` object or an array of them.
|
|
10
|
+
* - `string`: a single breadcrumb with that label that goes up one level (`..`).
|
|
11
|
+
* - `{ label, url }`: a single breadcrumb linking to `url`.
|
|
12
|
+
* - `{ label, url }[]`: one breadcrumb per item.
|
|
13
|
+
*/
|
|
14
|
+
export type PageBreadcrumbs = string | PageBreadcrumb | PageBreadcrumb[];
|
|
6
15
|
export type PageSize = 'fullwidth' | 'restricted';
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { PageLayoutMenu } from './types';
|
|
3
3
|
type Props = {
|
|
4
|
+
/** Title shown at the top of the side menu. */
|
|
4
5
|
title: ReactNode;
|
|
6
|
+
/** Content area next to the menu. Usually the routes of the grouped pages, each rendering a `Page`. */
|
|
5
7
|
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Items of the side menu. Each `PageLayoutMenu` is an object with:
|
|
10
|
+
* - `to` (required): route the item links to. It is highlighted when its route is active.
|
|
11
|
+
* - `label` (required): text shown for the item.
|
|
12
|
+
* - `name`: unique key for the item.
|
|
13
|
+
* - `suffix`: content shown in a `Badge` after the label, e.g. a count.
|
|
14
|
+
* - `isVisible`: set to `false` to hide the item.
|
|
15
|
+
* - `reloadDocument`: when `true` it renders a plain `<a href>` that skips client side routing.
|
|
16
|
+
* - `isActive`: highlights the item. Only used with `reloadDocument`.
|
|
17
|
+
*
|
|
18
|
+
* Requires a react-router `Router` above the component.
|
|
19
|
+
*/
|
|
6
20
|
menu: PageLayoutMenu[];
|
|
21
|
+
/** Extra content shown below the menu items. */
|
|
7
22
|
sideNavContent?: ReactNode;
|
|
8
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* PageLayouts are responsible for grouping multiple pages under a side menu, like a settings area. It will usually render a bunch of routes on its children. It needs a react-router `Router` above it.
|
|
26
|
+
*/
|
|
9
27
|
declare const PageLayout: ({ title, children, menu, sideNavContent }: Props) => React.JSX.Element;
|
|
10
28
|
export default PageLayout;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* An item of the `PageLayout` side menu.
|
|
4
|
+
* Example: `{ to: '/settings/profile', label: 'Profile', suffix: 3 }`
|
|
5
|
+
*/
|
|
2
6
|
export type PageLayoutMenu = {
|
|
7
|
+
/** Route the item links to. It is rendered as a react-router `NavLink`, so it is highlighted when its route is active. */
|
|
3
8
|
to: string;
|
|
9
|
+
/** Text shown for the item. */
|
|
4
10
|
label: string;
|
|
11
|
+
/** Unique key for the item. Falls back to the item index. */
|
|
5
12
|
name?: string;
|
|
13
|
+
/** Badge count shown after the label, e.g. `3`. It is wrapped in a `Badge` for you, so pass the value itself, not a `<Badge>` element. */
|
|
6
14
|
suffix?: ReactNode;
|
|
15
|
+
/** Set to `false` to hide the item. Items are visible by default. */
|
|
7
16
|
isVisible?: boolean;
|
|
17
|
+
/** Highlights the item as the current page. Only used with `reloadDocument`; otherwise the active item is detected from the route. */
|
|
8
18
|
isActive?: boolean;
|
|
9
19
|
/** When `true` it will skip client side routing and let the browser handle the transition normally (as if it were an `<a href>`). */
|
|
10
20
|
reloadDocument?: boolean;
|
|
@@ -2,17 +2,29 @@ import * as React from 'react';
|
|
|
2
2
|
import { DataProps, PositionStyles } from '../../foundation/types';
|
|
3
3
|
import type { JustifyContent, Space, AlignItems, SpaceConfig } from '../Flex/types';
|
|
4
4
|
type Props = {
|
|
5
|
+
/** Elements to lay out. Each child is wrapped in its own flex item. */
|
|
5
6
|
children: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Gap between items in pixels, from `0` to `60` in multiples of `4`, e.g. `8`, `12`, `16` and so on. Can also be an object, `{ row: Space, column: Space }` (for example `{ row: 4, column: 8 }`), to set the row and column gaps separately.
|
|
9
|
+
* @default 20
|
|
10
|
+
*/
|
|
7
11
|
space?: Space | SpaceConfig;
|
|
8
|
-
/**
|
|
12
|
+
/** CSS `flex` value for each child, by position: the first entry applies to the first child, the second to the second, and so on (e.g. `[1]` makes the first child fill the remaining space, `['0 1 auto', 1]` the second). Children without an entry use `0 1 auto`. Check out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values. */
|
|
9
13
|
flex?: (string | number)[];
|
|
10
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Horizontal alignment of the items. One of: `flex-start`, `flex-end`, `center`, `stretch`
|
|
16
|
+
* @default stretch
|
|
17
|
+
*/
|
|
11
18
|
alignItems?: AlignItems;
|
|
12
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Vertical distribution of the items. One of: `start`, `end`, `center`, `space-between`
|
|
21
|
+
* @default start
|
|
22
|
+
*/
|
|
13
23
|
justifyContent?: JustifyContent;
|
|
24
|
+
/** When `true` each item wrapper becomes a flex container itself (`display: flex`) instead of `display: inline`. Useful to let children fill the item width. */
|
|
14
25
|
flexItems?: boolean;
|
|
15
26
|
testId?: string;
|
|
27
|
+
/** CSS `flex-grow` applied to the container itself, useful when it is a child of another `Stack` or `Inline`. */
|
|
16
28
|
flexGrow?: number;
|
|
17
29
|
} & PositionStyles & DataProps;
|
|
18
30
|
/**
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ import PageLayout from './PageLayout';
|
|
|
7
7
|
export { CalloutCard, Card, Inline, Stack, Page, PageLayout };
|
|
8
8
|
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
9
9
|
export type { PageLayoutMenu } from './PageLayout/types';
|
|
10
|
+
export type { PageBreadcrumb, PageBreadcrumbs } from './Page/types';
|
|
@@ -2,8 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import { AccordionItem as AccordionItemType } from './types';
|
|
3
3
|
import { DataProps } from '../../foundation/types';
|
|
4
4
|
type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* The sections, as an array of `AccordionItem` objects:
|
|
7
|
+
* - `title` (required): header of the section, always visible. Clicking it opens or closes the section.
|
|
8
|
+
* - `content` (required): content shown when the section is open.
|
|
9
|
+
* - `id`: unique id, used by `defaultOpenId`. Defaults to the item index as a string (`'0'`, `'1'`, ...).
|
|
10
|
+
*
|
|
11
|
+
* Example: `[{ id: 'billing', title: 'Billing', content: <Text>...</Text> }]`. Renders nothing when empty.
|
|
12
|
+
*/
|
|
5
13
|
items: AccordionItemType[];
|
|
14
|
+
/** Called with the `AccordionItem` (with its `id` filled in) when a section is opened. Not called when a section is closed. */
|
|
6
15
|
onExpand?: (item: AccordionItemType) => void;
|
|
16
|
+
/** `id` of the section open on first render. All sections start closed when not set. */
|
|
7
17
|
defaultOpenId?: string;
|
|
8
18
|
} & DataProps;
|
|
9
19
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/** A section of an `Accordion`. */
|
|
2
3
|
export type AccordionItem = {
|
|
4
|
+
/** Header of the section, always visible. Clicking it opens or closes the section. */
|
|
3
5
|
title: ReactNode | string;
|
|
6
|
+
/** Content shown when the section is open. */
|
|
4
7
|
content: ReactNode;
|
|
8
|
+
/** Unique id of the section, used by `defaultOpenId`. Defaults to the item index as a string (`'0'`, `'1'`, ...). */
|
|
5
9
|
id?: string;
|
|
6
10
|
};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import type { ActionListEmptyState } from './type';
|
|
3
3
|
type Props = {
|
|
4
|
+
/** The list items, usually `ActionListItem` elements. */
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
testId?: string;
|
|
7
|
+
/** Heading shown above the items. */
|
|
6
8
|
title?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Content shown when there are no `children`. An `ActionListEmptyState` object:
|
|
11
|
+
* - `title` (required): `string`.
|
|
12
|
+
* - `caption`: `string` shown below the title.
|
|
13
|
+
* - `image`: URL of an image to show instead of the default illustration.
|
|
14
|
+
* - `actions`: `{ primary?: <Button />, secondary?: <Button /> }`.
|
|
15
|
+
*
|
|
16
|
+
* Without it, the title "No action items" and a default illustration are shown.
|
|
17
|
+
*/
|
|
7
18
|
emptyState?: ActionListEmptyState;
|
|
19
|
+
/** Maximum height of the list in pixels. Taller content scrolls vertically. */
|
|
8
20
|
maxHeight?: number;
|
|
9
21
|
};
|
|
10
22
|
/**
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/** Content shown by an `ActionList` with no items. */
|
|
2
3
|
export type ActionListEmptyState = {
|
|
4
|
+
/** Title of the empty state. */
|
|
3
5
|
title: string;
|
|
6
|
+
/** Text shown below the title. */
|
|
4
7
|
caption?: string;
|
|
8
|
+
/** URL of an image to show instead of the default illustration. */
|
|
5
9
|
image?: string;
|
|
10
|
+
/** Buttons shown below the caption: `{ primary?: <Button />, secondary?: <Button /> }`. */
|
|
6
11
|
actions?: {
|
|
7
12
|
primary?: React.ReactElement;
|
|
8
13
|
secondary?: React.ReactElement;
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import Button from '../../actions/Button/Button';
|
|
3
3
|
import { ActionListItemTheme } from './type';
|
|
4
|
+
/** An action of an `ActionListItem`, shown in its kebab menu or as a button. */
|
|
4
5
|
export type MenuAction = {
|
|
6
|
+
/** Unique key of the action. */
|
|
5
7
|
action: string;
|
|
8
|
+
/** Content of the menu item or button, such as text or an icon. */
|
|
6
9
|
label: React.ReactNode;
|
|
10
|
+
/** Called when the menu item or button is clicked. */
|
|
7
11
|
onAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
12
|
+
/** Props for the button when `showInKebab` is `false`. */
|
|
8
13
|
buttonProps?: Pick<React.ComponentPropsWithoutRef<typeof Button>, 'theme' | 'disabled' | 'loading' | 'title' | 'testId'>;
|
|
14
|
+
/** Set to `false` to show the action as a button next to the kebab menu instead of inside it. */
|
|
9
15
|
showInKebab?: boolean;
|
|
10
16
|
};
|
|
11
17
|
type Props = {
|
|
12
18
|
title: string;
|
|
19
|
+
/** Secondary text shown below the `title`. */
|
|
13
20
|
children?: ReactNode;
|
|
14
21
|
icon: React.ReactElement;
|
|
15
22
|
theme?: ActionListItemTheme;
|
|
16
23
|
onAction?: () => void;
|
|
17
24
|
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Actions for the item, as an array of `MenuAction` objects:
|
|
27
|
+
* - `action` (required): unique key.
|
|
28
|
+
* - `label` (required): content of the menu item or button, such as text or an icon.
|
|
29
|
+
* - `onAction` (required): called when the action is clicked.
|
|
30
|
+
* - `showInKebab`: actions go in a kebab menu by default; set `false` to show the action as a `default` theme button instead.
|
|
31
|
+
* - `buttonProps`: `theme`, `disabled`, `loading`, `title` and `testId` for the button when `showInKebab` is `false`.
|
|
32
|
+
*
|
|
33
|
+
* Example: `[{ action: 'edit', label: 'Edit', onAction: () => {}, showInKebab: false }, { action: 'delete', label: 'Delete', onAction: () => {} }]`. When the item is `disabled`, button clicks are ignored and buttons are disabled (a `buttonProps.disabled` you pass wins), and the kebab menu only keeps actions with an explicit `showInKebab: true`.
|
|
34
|
+
*/
|
|
18
35
|
actions?: MenuAction[];
|
|
19
36
|
suffix?: ReactNode;
|
|
20
37
|
testId?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DataProps, PositionStyles } from '../../foundation/types';
|
|
3
|
+
import type { BasicTableSize, BasicTableTheme } from './types';
|
|
4
|
+
type Props = {
|
|
5
|
+
/** Expects `BasicTableHeader` and `BasicTableBody` */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** `inline` sits flat on the page. `card` adds an outer border, rounded corners and a filled surface */
|
|
8
|
+
theme?: BasicTableTheme;
|
|
9
|
+
/** Will render vertical borders between cells if true */
|
|
10
|
+
hasVerticalBorders?: boolean;
|
|
11
|
+
/** Controls the minimum height and vertical padding of the body rows */
|
|
12
|
+
size?: BasicTableSize;
|
|
13
|
+
/** Accessible name for the table. It is rendered as a visually hidden `<caption>` */
|
|
14
|
+
caption?: string;
|
|
15
|
+
/** Used to override the default data-testid */
|
|
16
|
+
testId?: string;
|
|
17
|
+
} & DataProps & PositionStyles;
|
|
18
|
+
/**
|
|
19
|
+
* BasicTable lays out simple, static content in rows and columns. Use it for information that doesn't need to be sorted, paginated or edited. For large or interactive data sets, use `DataTable` instead.
|
|
20
|
+
*/
|
|
21
|
+
declare const BasicTable: ({ children, theme, hasVerticalBorders, size, caption, testId, ...rest }: Props) => React.JSX.Element;
|
|
22
|
+
export default BasicTable;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BASIC_TABLE_THEME: {
|
|
2
|
+
INLINE: "inline";
|
|
3
|
+
CARD: "card";
|
|
4
|
+
};
|
|
5
|
+
export declare const BASIC_TABLE_SIZE: {
|
|
6
|
+
COMPACT: "compact";
|
|
7
|
+
DEFAULT: "default";
|
|
8
|
+
LOOSE: "loose";
|
|
9
|
+
};
|
|
10
|
+
export declare const BASIC_TABLE_SECTION: {
|
|
11
|
+
HEADER: "header";
|
|
12
|
+
BODY: "body";
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicTable';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BASIC_TABLE_SECTION, BASIC_TABLE_SIZE, BASIC_TABLE_THEME } from './constants';
|
|
2
|
+
export type BasicTableTheme = (typeof BASIC_TABLE_THEME)[keyof typeof BASIC_TABLE_THEME];
|
|
3
|
+
export type BasicTableSize = (typeof BASIC_TABLE_SIZE)[keyof typeof BASIC_TABLE_SIZE];
|
|
4
|
+
export type BasicTableSection = (typeof BASIC_TABLE_SECTION)[keyof typeof BASIC_TABLE_SECTION];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Expects `BasicTableRow` */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Used to override the default data-testid */
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const BasicTableBody: ({ children, testId }: Props) => React.JSX.Element;
|
|
9
|
+
export default BasicTableBody;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicTableBody';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Content of the cell. */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Aligns the cell content. Use `right` for numeric values */
|
|
6
|
+
align?: 'left' | 'right';
|
|
7
|
+
colSpan?: number;
|
|
8
|
+
/** Marks the cell as the header of its row (`<th scope="row">`). It is styled like a regular body cell. Only applies to cells inside `BasicTableBody` */
|
|
9
|
+
isRowHeader?: boolean;
|
|
10
|
+
/** Used to override the default data-testid */
|
|
11
|
+
testId?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const BasicTableCell: ({ children, align, colSpan, isRowHeader, testId }: Props) => React.JSX.Element;
|
|
14
|
+
export default BasicTableCell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicTableCell';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Expects `BasicTableCell` as direct children. There is no need to wrap them in a `BasicTableRow` */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Used to override the default data-testid */
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const BasicTableHeader: ({ children, testId }: Props) => React.JSX.Element;
|
|
9
|
+
export default BasicTableHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicTableHeader';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
/** Expects `BasicTableCell` */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Used to override the default data-testid */
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const BasicTableRow: ({ children, testId }: Props) => React.JSX.Element;
|
|
9
|
+
export default BasicTableRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicTableRow';
|