@grasp-labs/ds-react-components 0.20.0 → 0.22.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/components/datePicker/index.d.ts +2 -2
- package/dist/components/stepper/Step.d.ts +18 -0
- package/dist/components/stepper/StepConnector.d.ts +13 -0
- package/dist/components/stepper/StepIndicator.d.ts +10 -0
- package/dist/components/stepper/Stepper.d.ts +14 -0
- package/dist/components/stepper/index.d.ts +5 -0
- package/dist/{index-CnFQnrvD.js → index-BQ1m0iH2.js} +2810 -2686
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/{index.esm-BTIq6l_S.js → index.esm-B5iW_Gyh.js} +1 -1
- package/dist/index.js +50 -48
- package/dist/types/BaseOption.d.ts +7 -1
- package/dist/utils/getOptionTextLabel.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/components/datePicker/{datePicker.const.d.ts → DatePicker.const.d.ts} +0 -0
- /package/dist/components/datePicker/{datePicker.d.ts → DatePicker.d.ts} +0 -0
- /package/dist/components/datePicker/{datePicker.util.d.ts → DatePicker.util.d.ts} +0 -0
- /package/dist/components/datePicker/{datePickerTextBox.d.ts → DatePickerTextBox.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DatePicker } from './
|
|
2
|
-
export type { DatePickerProps } from './
|
|
1
|
+
export { DatePicker } from './DatePicker';
|
|
2
|
+
export type { DatePickerProps } from './DatePicker';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type StepProps = {
|
|
3
|
+
/** Label displayed next to the step indicator */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Content to display when this step is active */
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A step component to be used as children of Stepper.
|
|
10
|
+
* Renders its children wrapped in a flex container.
|
|
11
|
+
*
|
|
12
|
+
* @param props - The props for the Step component.
|
|
13
|
+
* @returns The rendered step content.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Step: {
|
|
16
|
+
({ children }: StepProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StepStatus } from './StepIndicator';
|
|
2
|
+
export type StepConnectorProps = {
|
|
3
|
+
/** Status of the preceding step */
|
|
4
|
+
status: StepStatus;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* A horizontal line connecting two step indicators.
|
|
8
|
+
* Changes color based on completion state.
|
|
9
|
+
*
|
|
10
|
+
* @param props - The props for the StepConnector component.
|
|
11
|
+
* @returns The rendered connector line.
|
|
12
|
+
*/
|
|
13
|
+
export declare const StepConnector: ({ status }: StepConnectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type StepStatus = "complete" | "active" | "incomplete";
|
|
2
|
+
export type StepIndicatorProps = {
|
|
3
|
+
/** Label displayed next to the step indicator */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Zero-based index of the step */
|
|
6
|
+
index: number;
|
|
7
|
+
/** Current status of the step */
|
|
8
|
+
status: StepStatus;
|
|
9
|
+
};
|
|
10
|
+
export declare const StepIndicator: ({ label, index, status }: StepIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type StepperProps = {
|
|
3
|
+
/** Current active step index (0-based) */
|
|
4
|
+
currentStep: number;
|
|
5
|
+
/** Step components defining the stepper content */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Action buttons to display at the bottom */
|
|
8
|
+
actions?: ReactNode;
|
|
9
|
+
/** Whether to show connecting lines between steps */
|
|
10
|
+
showConnectors?: boolean;
|
|
11
|
+
/** Additional CSS classes for the container */
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const Stepper: ({ currentStep, children, actions, showConnectors, className, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|