@indico-data/design-system 3.19.0 → 3.20.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/.eslintrc.js +87 -2
- package/.husky/pre-commit +2 -0
- package/.vscode/settings.json +10 -1
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.stories.d.ts +1 -1
- package/lib/components/button/Button.d.ts +2 -2
- package/lib/components/button/Button.stories.d.ts +1 -1
- package/lib/components/button/types.d.ts +1 -1
- package/lib/components/card/Card.d.ts +1 -1
- package/lib/components/card/Card.stories.d.ts +1 -1
- package/lib/components/floatUI/FloatUI.d.ts +1 -1
- package/lib/components/floatUI/FloatUI.stories.d.ts +2 -2
- package/lib/components/floatUI/types.d.ts +2 -2
- package/lib/components/forms/checkbox/Checkbox.stories.d.ts +1 -1
- package/lib/components/forms/date/datePicker/DatePicker.d.ts +1 -1
- package/lib/components/forms/date/datePicker/DatePicker.stories.d.ts +1 -1
- package/lib/components/forms/date/datePicker/contants.d.ts +1 -1
- package/lib/components/forms/date/datePicker/types.d.ts +1 -1
- package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.d.ts +5 -5
- package/lib/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.d.ts +1 -1
- package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.d.ts +2 -2
- package/lib/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.d.ts +1 -1
- package/lib/components/forms/date/inputDateRangePicker/InputDateRangePicker.d.ts +5 -5
- package/lib/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.d.ts +1 -1
- package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.d.ts +2 -2
- package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.d.ts +1 -1
- package/lib/components/forms/form/Form.d.ts +1 -1
- package/lib/components/forms/form/Form.stories.d.ts +1 -1
- package/lib/components/forms/input/Input.d.ts +2 -2
- package/lib/components/forms/input/Input.stories.d.ts +1 -1
- package/lib/components/forms/numberInput/NumberInput.d.ts +2 -2
- package/lib/components/forms/numberInput/NumberInput.stories.d.ts +1 -1
- package/lib/components/forms/passwordInput/PasswordInput.d.ts +1 -1
- package/lib/components/forms/passwordInput/PasswordInput.stories.d.ts +1 -1
- package/lib/components/forms/radio/Radio.stories.d.ts +1 -1
- package/lib/components/forms/select/Select.d.ts +2 -2
- package/lib/components/forms/select/Select.stories.d.ts +4 -4
- package/lib/components/forms/select/types.d.ts +2 -2
- package/lib/components/forms/subcomponents/Label.d.ts +2 -2
- package/lib/components/forms/textarea/Textarea.d.ts +1 -1
- package/lib/components/forms/textarea/Textarea.stories.d.ts +1 -1
- package/lib/components/forms/timePicker/TimePicker.d.ts +1 -1
- package/lib/components/forms/toggle/Toggle.stories.d.ts +1 -1
- package/lib/components/grid/col/Col.d.ts +1 -1
- package/lib/components/grid/col/Col.stories.d.ts +1 -1
- package/lib/components/grid/container/Container.d.ts +1 -1
- package/lib/components/grid/container/Container.stories.d.ts +1 -1
- package/lib/components/grid/row/Row.d.ts +1 -1
- package/lib/components/grid/row/Row.stories.d.ts +1 -1
- package/lib/components/icons/Icon.d.ts +1 -1
- package/lib/components/icons/Icon.stories.d.ts +2 -2
- package/lib/components/icons/indicons.d.ts +1 -1
- package/lib/components/icons/types.d.ts +4 -4
- package/lib/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +1 -1
- package/lib/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +1 -1
- package/lib/components/menu/Menu.stories.d.ts +2 -2
- package/lib/components/modal/ConfirmationModal.d.ts +1 -1
- package/lib/components/modal/Modal.d.ts +1 -1
- package/lib/components/modal/Modal.stories.d.ts +2 -2
- package/lib/components/modal/types.d.ts +2 -2
- package/lib/components/pagination/Pagination.d.ts +1 -1
- package/lib/components/pagination/Pagination.stories.d.ts +1 -1
- package/lib/components/pill/Pill.d.ts +1 -1
- package/lib/components/pill/Pill.stories.d.ts +1 -1
- package/lib/components/pill/types.d.ts +2 -2
- package/lib/components/skeleton/Skeleton.stories.d.ts +1 -1
- package/lib/components/stepper/Stepper.d.ts +1 -1
- package/lib/components/stepper/Stepper.stories.d.ts +1 -1
- package/lib/components/stepper/components/Legend.d.ts +1 -1
- package/lib/components/stepper/types.d.ts +1 -1
- package/lib/components/table/Table.d.ts +1 -1
- package/lib/components/table/Table.stories.d.ts +2 -2
- package/lib/components/table/components/HorizontalStickyHeader.d.ts +1 -1
- package/lib/components/table/components/helpers.d.ts +1 -1
- package/lib/components/table/hooks/usePinnedColumnsManager.d.ts +1 -1
- package/lib/components/table/sampleData.d.ts +1 -1
- package/lib/components/table/types.d.ts +2 -2
- package/lib/components/table/utils/processColumns.d.ts +1 -1
- package/lib/components/tanstackTable/TankstackTable.types.d.ts +1 -1
- package/lib/components/tanstackTable/TanstackTable.d.ts +1 -1
- package/lib/components/tanstackTable/TanstackTable.stories.d.ts +2 -2
- package/lib/components/tanstackTable/__tests__/__mocks__/test-mock-data.d.ts +1 -1
- package/lib/components/tanstackTable/components/ActionBar/ActionBar.d.ts +2 -2
- package/lib/components/tanstackTable/components/ActionBar/ActionBar.stories.d.ts +1 -1
- package/lib/components/tanstackTable/components/TableBody/TableBody.d.ts +1 -1
- package/lib/components/tanstackTable/components/TableHeader/TableHeader.d.ts +1 -1
- package/lib/components/tanstackTable/components/TableLoading/TableLoading.d.ts +1 -1
- package/lib/components/tanstackTable/components/TablePagination/TablePagination.d.ts +1 -1
- package/lib/components/tanstackTable/docs/internalSorting/InternalClientSideSorting.stories.d.ts +2 -2
- package/lib/components/tanstackTable/docs/pinnedColumns/PinnedColumn.stories.d.ts +2 -2
- package/lib/components/tanstackTable/docs/withRowClick/WithRowClick.stories.d.ts +2 -2
- package/lib/components/tanstackTable/helpers.d.ts +2 -2
- package/lib/components/tanstackTable/mock-data/table-configuration.d.ts +2 -2
- package/lib/components/tanstackTable/useTanstackTable.d.ts +1 -1
- package/lib/components/toast/Toast.stories.d.ts +1 -1
- package/lib/components/tooltip/Tooltip.d.ts +2 -2
- package/lib/components/tooltip/Tooltip.stories.d.ts +1 -1
- package/lib/components/truncate/Truncate.d.ts +1 -1
- package/lib/components/truncate/Truncate.stories.d.ts +2 -2
- package/lib/components/truncate/types.d.ts +1 -1
- package/lib/docs/BaseColorPalette/BaseColorsPalette.stories.d.ts +1 -1
- package/lib/docs/SemanticTokens/ColorSwatch.d.ts +1 -1
- package/lib/docs/SemanticTokens/SemanticTokens.stories.d.ts +1 -1
- package/lib/index.d.ts +45 -45
- package/lib/index.esm.js +137 -124
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +137 -124
- package/lib/index.js.map +1 -1
- package/lib/setup/setupIcons.d.ts +1 -1
- package/lib/storybook/formArgTypes.d.ts +1 -1
- package/lib/stylesAndAnimations/borders/BorderColor.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/borders/BorderRadius.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/borders/BorderStyles.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/borders/BorderThickness.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/colors/UtilityClasses.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/sizing/Sizing.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/typography/Typography.stories.d.ts +1 -1
- package/lib/stylesAndAnimations/utilityClasses/UtilityClassesTable.stories.d.ts +1 -1
- package/lib/types.d.ts +4 -4
- package/package.json +8 -2
- package/src/components/badge/Badge.stories.tsx +4 -3
- package/src/components/badge/Badge.tsx +2 -1
- package/src/components/badge/__tests__/Badge.test.tsx +1 -0
- package/src/components/button/Button.stories.tsx +5 -4
- package/src/components/button/Button.tsx +8 -4
- package/src/components/button/__tests__/Button.test.tsx +1 -0
- package/src/components/button/types.ts +1 -1
- package/src/components/card/Card.stories.tsx +2 -1
- package/src/components/card/Card.tsx +2 -1
- package/src/components/card/__tests__/Card.test.tsx +1 -0
- package/src/components/floatUI/FloatUI.stories.tsx +3 -2
- package/src/components/floatUI/FloatUI.tsx +6 -7
- package/src/components/floatUI/__tests__/FloatUI.test.tsx +5 -3
- package/src/components/floatUI/types.ts +2 -2
- package/src/components/forms/checkbox/Checkbox.stories.tsx +3 -2
- package/src/components/forms/checkbox/Checkbox.tsx +1 -1
- package/src/components/forms/checkbox/__tests__/Checkbox.test.tsx +2 -1
- package/src/components/forms/date/datePicker/DatePicker.stories.tsx +2 -1
- package/src/components/forms/date/datePicker/DatePicker.tsx +27 -24
- package/src/components/forms/date/datePicker/__tests__/DatePicker.test.tsx +1 -0
- package/src/components/forms/date/datePicker/contants.ts +1 -1
- package/src/components/forms/date/datePicker/types.ts +8 -8
- package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.stories.tsx +6 -2
- package/src/components/forms/date/iconTriggerDatePicker/IconTriggerDatePicker.tsx +10 -8
- package/src/components/forms/date/iconTriggerDatePicker/__tests__/IconTriggerDatePicker.test.tsx +2 -1
- package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.stories.tsx +4 -2
- package/src/components/forms/date/inputDatePicker/SingleInputDatePicker.tsx +14 -10
- package/src/components/forms/date/inputDatePicker/__tests__/SingleInputDatePicker.test.tsx +2 -2
- package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.stories.tsx +5 -4
- package/src/components/forms/date/inputDateRangePicker/InputDateRangePicker.tsx +16 -22
- package/src/components/forms/date/inputDateRangePicker/__tests__/InputDateRangePicker.test.tsx +2 -2
- package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.tsx +9 -5
- package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.tsx +15 -11
- package/src/components/forms/form/Form.stories.tsx +7 -6
- package/src/components/forms/form/Form.tsx +1 -1
- package/src/components/forms/form/__tests__/Form.test.tsx +7 -4
- package/src/components/forms/input/Input.stories.tsx +6 -3
- package/src/components/forms/input/Input.tsx +3 -3
- package/src/components/forms/input/__tests__/Input.test.tsx +5 -3
- package/src/components/forms/numberInput/NumberInput.stories.tsx +5 -2
- package/src/components/forms/numberInput/NumberInput.tsx +5 -3
- package/src/components/forms/numberInput/__tests__/NumberInput.test.tsx +2 -1
- package/src/components/forms/passwordInput/PasswordInput.stories.tsx +6 -3
- package/src/components/forms/passwordInput/PasswordInput.tsx +5 -2
- package/src/components/forms/passwordInput/__tests__/PasswordInput.test.tsx +3 -4
- package/src/components/forms/radio/Radio.stories.tsx +5 -2
- package/src/components/forms/radio/__tests__/Radio.test.tsx +3 -2
- package/src/components/forms/select/Select.stories.tsx +5 -4
- package/src/components/forms/select/Select.tsx +7 -6
- package/src/components/forms/select/__tests__/Select.test.tsx +2 -2
- package/src/components/forms/select/types.ts +3 -2
- package/src/components/forms/subcomponents/Label.tsx +5 -2
- package/src/components/forms/subcomponents/__tests__/Label.test.tsx +1 -0
- package/src/components/forms/textarea/Textarea.stories.tsx +5 -2
- package/src/components/forms/textarea/Textarea.tsx +4 -4
- package/src/components/forms/textarea/__tests__/Textarea.test.tsx +3 -3
- package/src/components/forms/timePicker/TimePicker.stories.tsx +4 -2
- package/src/components/forms/timePicker/TimePicker.tsx +6 -5
- package/src/components/forms/timePicker/__tests__/TimePicker.test.tsx +2 -1
- package/src/components/forms/toggle/Toggle.stories.tsx +3 -2
- package/src/components/forms/toggle/__tests__/Toggle.test.tsx +3 -2
- package/src/components/grid/col/Col.stories.tsx +2 -1
- package/src/components/grid/col/Col.tsx +1 -1
- package/src/components/grid/container/Container.stories.tsx +2 -1
- package/src/components/grid/container/Container.tsx +1 -1
- package/src/components/grid/row/Row.stories.tsx +2 -1
- package/src/components/grid/row/Row.tsx +1 -1
- package/src/components/icons/Icon.stories.tsx +11 -4
- package/src/components/icons/Icon.tsx +4 -3
- package/src/components/icons/__tests__/Icon.test.tsx +1 -0
- package/src/components/icons/indicons.tsx +3 -3
- package/src/components/icons/types.ts +5 -4
- package/src/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +2 -1
- package/src/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.tsx +1 -0
- package/src/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +2 -1
- package/src/components/menu/Menu.stories.tsx +3 -2
- package/src/components/menu/Menu.test.tsx +1 -1
- package/src/components/menu/Menu.tsx +1 -1
- package/src/components/modal/ConfirmationModal.tsx +7 -5
- package/src/components/modal/Modal.stories.tsx +9 -6
- package/src/components/modal/Modal.tsx +2 -1
- package/src/components/modal/__tests__/Modal.test.tsx +1 -0
- package/src/components/modal/types.ts +2 -2
- package/src/components/pagination/Pagination.stories.tsx +3 -2
- package/src/components/pagination/Pagination.tsx +5 -4
- package/src/components/pagination/__tests__/Pagination.test.tsx +1 -0
- package/src/components/pill/Pill.stories.tsx +10 -6
- package/src/components/pill/Pill.tsx +2 -1
- package/src/components/pill/__tests__/Pill.test.tsx +4 -1
- package/src/components/pill/types.ts +4 -2
- package/src/components/skeleton/Skeleton.stories.tsx +2 -1
- package/src/components/skeleton/__tests__/Skeleton.test.tsx +1 -0
- package/src/components/stepper/Stepper.stories.tsx +9 -7
- package/src/components/stepper/Stepper.tsx +3 -2
- package/src/components/stepper/__tests__/Stepper.tests.tsx +5 -4
- package/src/components/stepper/components/Legend.tsx +4 -3
- package/src/components/stepper/examples/MixedExample.tsx +4 -3
- package/src/components/stepper/examples/OptionalStepsExample.tsx +4 -3
- package/src/components/stepper/examples/RequiredStepsExample.tsx +4 -3
- package/src/components/stepper/examples/commonExample/CommonExample.tsx +4 -3
- package/src/components/stepper/examples/commonExample/steps/StepOne.tsx +1 -0
- package/src/components/stepper/examples/commonExample/steps/StepThree.tsx +1 -0
- package/src/components/stepper/examples/commonExample/steps/StepTwo.tsx +1 -0
- package/src/components/stepper/types.ts +1 -1
- package/src/components/table/Table.stories.tsx +9 -5
- package/src/components/table/Table.tsx +5 -4
- package/src/components/table/__tests__/Table.test.tsx +2 -1
- package/src/components/table/components/HorizontalStickyHeader.tsx +3 -2
- package/src/components/table/components/TablePagination.tsx +1 -1
- package/src/components/table/components/__tests__/HorizontalStickyHeader.test.tsx +3 -3
- package/src/components/table/components/__tests__/TablePagination.test.tsx +1 -0
- package/src/components/table/components/helpers.ts +1 -1
- package/src/components/table/hooks/usePinnedColumnsManager.ts +6 -2
- package/src/components/table/sampleData.tsx +1 -3
- package/src/components/table/types.ts +5 -6
- package/src/components/table/utils/processColumns.tsx +2 -2
- package/src/components/tanstackTable/TankstackTable.types.ts +1 -1
- package/src/components/tanstackTable/TanstackTable.stories.tsx +6 -5
- package/src/components/tanstackTable/TanstackTable.tsx +8 -8
- package/src/components/tanstackTable/__tests__/TanstackTable.test.tsx +2 -1
- package/src/components/tanstackTable/__tests__/__mocks__/test-mock-data.tsx +2 -1
- package/src/components/tanstackTable/components/ActionBar/ActionBar.stories.tsx +6 -3
- package/src/components/tanstackTable/components/ActionBar/ActionBar.tsx +7 -3
- package/src/components/tanstackTable/components/ActionBar/__tests__/ActionBar.test.tsx +4 -1
- package/src/components/tanstackTable/components/NoResults/__tests__/NoResult.test.tsx +1 -0
- package/src/components/tanstackTable/components/TableBody/TableBody.tsx +2 -1
- package/src/components/tanstackTable/components/TableHeader/TableHeader.tsx +3 -2
- package/src/components/tanstackTable/components/TableLoading/TableLoading.tsx +2 -1
- package/src/components/tanstackTable/components/TablePagination/TablePagination.tsx +1 -1
- package/src/components/tanstackTable/components/TablePagination/__tests__/TablePagination.test.tsx +1 -0
- package/src/components/tanstackTable/docs/internalSorting/InternalClientSideSorting.stories.tsx +5 -5
- package/src/components/tanstackTable/docs/pinnedColumns/PinnedColumn.stories.tsx +5 -4
- package/src/components/tanstackTable/docs/withRowClick/WithRowClick.stories.tsx +5 -4
- package/src/components/tanstackTable/helpers.ts +2 -2
- package/src/components/tanstackTable/mock-data/table-configuration.tsx +7 -4
- package/src/components/tanstackTable/useTanstackTable.tsx +1 -2
- package/src/components/toast/Toast.stories.tsx +2 -1
- package/src/components/tooltip/Tooltip.stories.tsx +3 -2
- package/src/components/tooltip/Tooltip.tsx +2 -2
- package/src/components/truncate/Truncate.stories.tsx +3 -2
- package/src/components/truncate/Truncate.tsx +5 -4
- package/src/components/truncate/__tests__/Truncate.test.tsx +1 -0
- package/src/components/truncate/types.ts +1 -1
- package/src/docs/BaseColorPalette/BaseColorPalette.tsx +1 -0
- package/src/docs/BaseColorPalette/BaseColorsPalette.stories.tsx +2 -1
- package/src/docs/BaseColorPalette/Swatch.tsx +2 -1
- package/src/docs/SemanticTokens/ColorSwatch.tsx +1 -1
- package/src/docs/SemanticTokens/SemanticTokens.stories.tsx +2 -2
- package/src/setup/setupIcons.ts +2 -2
- package/src/storybook/formArgTypes.ts +2 -1
- package/src/storybook/iconNames.ts +1 -0
- package/src/stylesAndAnimations/borders/BorderColor.stories.tsx +2 -1
- package/src/stylesAndAnimations/borders/BorderColor.tsx +0 -1
- package/src/stylesAndAnimations/borders/BorderRadius.stories.tsx +2 -1
- package/src/stylesAndAnimations/borders/BorderRadius.tsx +0 -1
- package/src/stylesAndAnimations/borders/BorderStyles.stories.tsx +2 -1
- package/src/stylesAndAnimations/borders/BorderStyles.tsx +0 -1
- package/src/stylesAndAnimations/borders/BorderThickness.stories.tsx +2 -1
- package/src/stylesAndAnimations/borders/BorderThickness.tsx +0 -1
- package/src/stylesAndAnimations/colors/UtilityClasses.stories.tsx +2 -1
- package/src/stylesAndAnimations/colors/UtilityClasses.tsx +1 -2
- package/src/stylesAndAnimations/sizing/Sizing.stories.tsx +2 -1
- package/src/stylesAndAnimations/sizing/Sizing.tsx +0 -1
- package/src/stylesAndAnimations/typography/Typography.stories.tsx +2 -1
- package/src/stylesAndAnimations/typography/Typography.tsx +0 -1
- package/src/stylesAndAnimations/utilityClasses/UtilityClassesTable.stories.tsx +2 -1
- package/src/stylesAndAnimations/utilityClasses/UtilityClassesTable.tsx +6 -3
- package/src/types.ts +12 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PillProps } from './types';
|
|
1
|
+
import { type PillProps } from './types';
|
|
2
2
|
export declare const Pill: ({ children, className, color, size, shade, ...rest }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChromaticColor } from '../../types';
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { type ChromaticColor } from '../../types';
|
|
2
|
+
import type React from 'react';
|
|
3
3
|
export type PillSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export type PillColor = ChromaticColor;
|
|
5
5
|
export type PillShade = 1 | 2 | 3 | 4 | 5;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StepperProps } from './types';
|
|
1
|
+
import { type StepperProps } from './types';
|
|
2
2
|
export declare const Stepper: ({ currentStep: externalCurrentStep, legendHeader, legendFooter, steps, onBackClick, onNextClick, onFinishClick, children, onStepClick, text: textProp, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StepperLegendProps } from '../types';
|
|
1
|
+
import { type StepperLegendProps } from '../types';
|
|
2
2
|
export declare const Legend: ({ currentStep, steps, onStepClick }: StepperLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TableProps } from './types';
|
|
1
|
+
import { type TableProps } from './types';
|
|
2
2
|
export declare const Table: <T>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
|
+
import { type SampleDataRow } from './sampleData';
|
|
2
3
|
import { Table } from './Table';
|
|
3
|
-
import { SampleDataRow } from './sampleData';
|
|
4
4
|
declare const meta: Meta;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof Table<SampleDataRow>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSObject } from 'styled-components';
|
|
1
|
+
import { type CSSObject } from 'styled-components';
|
|
2
2
|
export declare const getPreviousHeadersWidth: (position: number, pinnedColumnIds: string[]) => number;
|
|
3
3
|
export declare const applyStickyStylesToTableHeader: (position: number, left: number) => Promise<void>;
|
|
4
4
|
export declare const sortPinnedColumns: <T>(columns: T[], pinnedColumnIds: string[]) => T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableColumn, HorizontalStickyHeaderText } from '../types';
|
|
1
|
+
import { type TableColumn, type HorizontalStickyHeaderText } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook to manage pinned columns in a table
|
|
4
4
|
* Handles initialization, toggling, positioning and resizing of pinned columns
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Direction as RDTDirection, Alignment as RDTAlignment, TableColumn as RDTTableColumn, IDataTableProps } from 'react-data-table-component';
|
|
2
|
-
import { CSSObject } from 'styled-components';
|
|
1
|
+
import { type Direction as RDTDirection, type Alignment as RDTAlignment, type TableColumn as RDTTableColumn, type IDataTableProps } from 'react-data-table-component';
|
|
2
|
+
import { type CSSObject } from 'styled-components';
|
|
3
3
|
export type Direction = `${RDTDirection}`;
|
|
4
4
|
export type Alignment = `${RDTAlignment}`;
|
|
5
5
|
export interface PinnableColumn<T> extends RDTTableColumn<T> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TableColumn, HorizontalStickyHeaderText } from '../types';
|
|
1
|
+
import { type TableColumn, type HorizontalStickyHeaderText } from '../types';
|
|
2
2
|
export declare const processColumns: <T>(columns: TableColumn<T>[], pinnedColumnIds: string[], togglePinnedColumn: (id: string) => void, text?: HorizontalStickyHeaderText) => TableColumn<T>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Row, ColumnDef, SortingState } from '@tanstack/react-table';
|
|
1
|
+
import { type Row, type ColumnDef, type SortingState } from '@tanstack/react-table';
|
|
2
2
|
/** Customizable text for TanstackTable. */
|
|
3
3
|
export interface TanstackTableText {
|
|
4
4
|
/** Message while table is loading. Default: "Table is loading..." */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Props } from './TankstackTable.types';
|
|
1
|
+
import { type Props } from './TankstackTable.types';
|
|
2
2
|
export declare function TanstackTable<T extends object>({ columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage, onChangePage, totalEntriesText, TableActions, error, enableRowSelection, clearFilters, hasFilters, showPagination, isLoading, defaultPinnedColumns, onRowClick, activeRows, isStriped, actionBarClassName, defaultSorting, text: textProp, ...rest }: Props<T & {
|
|
3
3
|
id: string;
|
|
4
4
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
|
+
import { type Person } from './mock-data/mock-data';
|
|
2
3
|
import { TanstackTable } from './TanstackTable';
|
|
3
|
-
import { Person } from './mock-data/mock-data';
|
|
4
4
|
declare const meta: Meta;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof TanstackTable<Person>>;
|
package/lib/components/tanstackTable/docs/internalSorting/InternalClientSideSorting.stories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
|
+
import { type Person } from '../../mock-data/mock-data';
|
|
2
3
|
import { TanstackTable } from '../../TanstackTable';
|
|
3
|
-
import { Person } from '../../mock-data/mock-data';
|
|
4
4
|
declare const meta: Meta;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof TanstackTable<Person>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
|
+
import { type Person } from '../../mock-data/mock-data';
|
|
2
3
|
import { TanstackTable } from '../../TanstackTable';
|
|
3
|
-
import { Person } from '../../mock-data/mock-data';
|
|
4
4
|
declare const meta: Meta;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof TanstackTable<Person>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
|
+
import { type Person } from '../../mock-data/mock-data';
|
|
2
3
|
import { TanstackTable } from '../../TanstackTable';
|
|
3
|
-
import { Person } from '../../mock-data/mock-data';
|
|
4
4
|
declare const meta: Meta;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof TanstackTable<Person>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Column } from '@tanstack/react-table';
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { type Column } from '@tanstack/react-table';
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
3
|
export declare const getThStyles: <T>(column: Column<T>) => {
|
|
4
4
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
5
5
|
alignContent?: import("csstype").Property.AlignContent | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
import { Person } from './mock-data';
|
|
1
|
+
import { type ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { type Person } from './mock-data';
|
|
3
3
|
export declare const columns: ColumnDef<Person>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { PlacesType, PositionStrategy } from 'react-tooltip';
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import { type PlacesType, type PositionStrategy } from 'react-tooltip';
|
|
3
3
|
export interface TooltipProps {
|
|
4
4
|
id: string;
|
|
5
5
|
/** Whether the tooltip should be shown on click */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TruncateProps } from './types';
|
|
1
|
+
import { type TruncateProps } from './types';
|
|
2
2
|
export declare const Truncate: ({ numLines, tooltipOptions, children, ...rest }: TruncateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
2
2
|
import { Truncate } from './Truncate';
|
|
3
|
-
import { TruncateProps } from './types';
|
|
3
|
+
import { type TruncateProps } from './types';
|
|
4
4
|
declare const meta: Meta<typeof Truncate>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<TruncateProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
1
|
+
import { type Meta } from '@storybook/react';
|
|
2
2
|
export declare const SemanticBackgroundTokens: () => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare const SemanticBorderTokens: () => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const SemanticFontTokens: () => import("react/jsx-runtime").JSX.Element;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { UseFloatingOptions } from '@floating-ui/react-dom';
|
|
|
3
3
|
export * from '@floating-ui/react-dom';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
|
|
6
|
-
import React$1, { CSSProperties, MouseEventHandler,
|
|
6
|
+
import React$1, { ReactNode, CSSProperties, MouseEventHandler, ReactElement } from 'react';
|
|
7
7
|
import { IDataTableProps, Direction as Direction$1, TableColumn as TableColumn$1 } from 'react-data-table-component';
|
|
8
8
|
import { CSSObject } from 'styled-components';
|
|
9
9
|
import { Props as Props$4 } from 'react-select';
|
|
@@ -22,6 +22,37 @@ declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.E
|
|
|
22
22
|
|
|
23
23
|
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
24
24
|
|
|
25
|
+
/** Customizable text for form Label. */
|
|
26
|
+
interface FormLabelText {
|
|
27
|
+
/** Text appended to aria-label for required fields. Default: "(required)" */
|
|
28
|
+
required?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface LabelProps {
|
|
32
|
+
label?: string;
|
|
33
|
+
name: string;
|
|
34
|
+
isRequired?: boolean;
|
|
35
|
+
hasHiddenLabel?: boolean;
|
|
36
|
+
/** Customizable display text. */
|
|
37
|
+
text?: FormLabelText;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type SelectOption = {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
detail?: ReactNode;
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
/** Customizable text for Select. Extends FormLabelText for label-related text. */
|
|
47
|
+
interface SelectText extends FormLabelText {
|
|
48
|
+
/** Placeholder text when no option is selected. Default: "Select..." */
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
/** Text when there are no options. Default: "No options" */
|
|
51
|
+
noOptions?: string;
|
|
52
|
+
/** Text while loading options. Default: "Loading..." */
|
|
53
|
+
loading?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
25
56
|
declare const indicons: {
|
|
26
57
|
'indico-o-white': react_jsx_runtime.JSX.Element;
|
|
27
58
|
account: react_jsx_runtime.JSX.Element;
|
|
@@ -197,35 +228,19 @@ type IconProps = PermafrostComponent & {
|
|
|
197
228
|
faPrefix?: IconPrefix;
|
|
198
229
|
};
|
|
199
230
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
type SelectOption = {
|
|
216
|
-
label: string;
|
|
217
|
-
value: string;
|
|
218
|
-
detail?: ReactNode;
|
|
219
|
-
[key: string]: any;
|
|
220
|
-
};
|
|
221
|
-
/** Customizable text for Select. Extends FormLabelText for label-related text. */
|
|
222
|
-
interface SelectText extends FormLabelText {
|
|
223
|
-
/** Placeholder text when no option is selected. Default: "Select..." */
|
|
224
|
-
placeholder?: string;
|
|
225
|
-
/** Text when there are no options. Default: "No options" */
|
|
226
|
-
noOptions?: string;
|
|
227
|
-
/** Text while loading options. Default: "Loading..." */
|
|
228
|
-
loading?: string;
|
|
231
|
+
type PillSize = 'sm' | 'md' | 'lg';
|
|
232
|
+
type PillColor = ChromaticColor;
|
|
233
|
+
type PillShade = 1 | 2 | 3 | 4 | 5;
|
|
234
|
+
interface PillProps {
|
|
235
|
+
/** The content displayed inside the pill */
|
|
236
|
+
children: React$1.ReactNode | React$1.ReactNode[];
|
|
237
|
+
/** Applies a CSS class to change the style of the pill */
|
|
238
|
+
color?: PillColor;
|
|
239
|
+
/** Applies a CSS class to change the size of the pill */
|
|
240
|
+
size?: PillSize;
|
|
241
|
+
/** Applies a CSS class to change the shade of the pill */
|
|
242
|
+
shade?: PillShade;
|
|
243
|
+
className?: string;
|
|
229
244
|
}
|
|
230
245
|
|
|
231
246
|
type Direction = `${Direction$1}`;
|
|
@@ -268,21 +283,6 @@ interface TableProps<T> extends Omit<IDataTableProps<T>, 'paginationComponent' |
|
|
|
268
283
|
text?: TableText;
|
|
269
284
|
}
|
|
270
285
|
|
|
271
|
-
type PillSize = 'sm' | 'md' | 'lg';
|
|
272
|
-
type PillColor = ChromaticColor;
|
|
273
|
-
type PillShade = 1 | 2 | 3 | 4 | 5;
|
|
274
|
-
interface PillProps {
|
|
275
|
-
/** The content displayed inside the pill */
|
|
276
|
-
children: React$1.ReactNode | React$1.ReactNode[];
|
|
277
|
-
/** Applies a CSS class to change the style of the pill */
|
|
278
|
-
color?: PillColor;
|
|
279
|
-
/** Applies a CSS class to change the size of the pill */
|
|
280
|
-
size?: PillSize;
|
|
281
|
-
/** Applies a CSS class to change the shade of the pill */
|
|
282
|
-
shade?: PillShade;
|
|
283
|
-
className?: string;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
286
|
type PermafrostComponent = {
|
|
287
287
|
id?: string;
|
|
288
288
|
className?: string;
|