@nimbus-ds/components 5.31.0 → 5.32.1

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/index.d.ts CHANGED
@@ -182,6 +182,7 @@ declare const propertiesBox: {
182
182
  "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
183
183
  "neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
184
184
  "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
185
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
185
186
  "ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
186
187
  "ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
187
188
  transparent: string;
@@ -217,6 +218,7 @@ declare const propertiesBox: {
217
218
  "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
218
219
  "neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
219
220
  "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
221
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
220
222
  "ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
221
223
  "ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
222
224
  transparent: string;
@@ -411,7 +413,9 @@ declare const propertiesBox: {
411
413
  h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
412
414
  h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
413
415
  h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
414
- };
416
+ }; /**
417
+ * The paddingBottom property sets the height of the padding area on the bottom of an box.
418
+ */
415
419
  };
416
420
  export type BoxBorderColorProperties = keyof typeof propertiesBox.borderColor;
417
421
  export type BoxBorderRadiusProperties = keyof typeof propertiesBox.borderRadius;
@@ -840,7 +844,7 @@ declare const fileUploader: {
840
844
  };
841
845
  declare const icon: {
842
846
  sprinkle: ((props: {
843
- color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | undefined;
847
+ color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "neutral-textHigh" | "success-interactive" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | undefined;
844
848
  cursor?: Cursor | undefined;
845
849
  }) => string) & {
846
850
  properties: Set<"color" | "cursor">;
@@ -1086,6 +1090,10 @@ declare const text: {
1086
1090
  default: string;
1087
1091
  conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1088
1092
  };
1093
+ "neutral-textHigh": {
1094
+ default: string;
1095
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1096
+ };
1089
1097
  "success-interactive": {
1090
1098
  default: string;
1091
1099
  conditions: Record<"xs" | "md" | "lg" | "xl", string>;
@@ -1114,10 +1122,6 @@ declare const text: {
1114
1122
  default: string;
1115
1123
  conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1116
1124
  };
1117
- "neutral-textHigh": {
1118
- default: string;
1119
- conditions: Record<"xs" | "md" | "lg" | "xl", string>;
1120
- };
1121
1125
  };
1122
1126
  staticScale: {
1123
1127
  "ai-generative": "transparent";
@@ -4035,5 +4039,93 @@ export interface SegmentedControlContextValue {
4035
4039
  * @throws Error if not within a SegmentedControl
4036
4040
  */
4037
4041
  export declare const useSegmentedControlContext: () => SegmentedControlContextValue;
4042
+ export interface SplitButtonActionProperties {
4043
+ /**
4044
+ * The content of the action item.
4045
+ * @TJS-type React.ReactNode
4046
+ */
4047
+ children: ReactNode;
4048
+ /**
4049
+ * Optional icon to display before the action text.
4050
+ * @TJS-type React.ReactNode
4051
+ */
4052
+ icon?: ReactNode;
4053
+ /**
4054
+ * Callback function when the action is clicked.
4055
+ * @TJS-type () => void;
4056
+ */
4057
+ onClick?: () => void;
4058
+ /**
4059
+ * Disables the action item.
4060
+ * @default false
4061
+ */
4062
+ disabled?: boolean;
4063
+ }
4064
+ export type SplitButtonActionProps = SplitButtonActionProperties & Pick<BoxProps, "backgroundColor" | "borderWidth" | "display" | "alignItems" | "gap" | "p" | "borderRadius">;
4065
+ declare const SplitButtonAction: React.FC<SplitButtonActionProps>;
4066
+ export interface SplitButtonPrimaryProperties {
4067
+ /**
4068
+ * The content of the primary button.
4069
+ * @TJS-type React.ReactNode
4070
+ */
4071
+ children: ReactNode;
4072
+ /**
4073
+ * Callback function when the primary button is clicked.
4074
+ * @TJS-type () => void;
4075
+ */
4076
+ onClick?: () => void;
4077
+ }
4078
+ export type SplitButtonPrimaryProps = SplitButtonPrimaryProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "children">;
4079
+ declare const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps>;
4080
+ export interface SplitButtonSecondaryProperties {
4081
+ /**
4082
+ * The content of the secondary dropdown menu.
4083
+ * @TJS-type React.ReactNode
4084
+ */
4085
+ children: ReactNode;
4086
+ /**
4087
+ * Accessible label for the dropdown button.
4088
+ * @default "Show more actions"
4089
+ */
4090
+ ariaLabel?: string;
4091
+ }
4092
+ export type SplitButtonSecondaryProps = SplitButtonSecondaryProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
4093
+ declare const SplitButtonSecondary: React.FC<SplitButtonSecondaryProps>;
4094
+ export interface SplitButtonComponents {
4095
+ Action: typeof SplitButtonAction;
4096
+ Primary: typeof SplitButtonPrimary;
4097
+ Secondary: typeof SplitButtonSecondary;
4098
+ }
4099
+ export interface SplitButtonProperties {
4100
+ /**
4101
+ * The subcomponents (Primary and Secondary).
4102
+ * @TJS-type React.ReactNode
4103
+ */
4104
+ children: ReactNode;
4105
+ /**
4106
+ * Disables the entire split button.
4107
+ * @default false
4108
+ */
4109
+ disabled?: boolean;
4110
+ /**
4111
+ * Controls the visibility of the popover.
4112
+ */
4113
+ open?: boolean;
4114
+ /**
4115
+ * Callback function to control popover opening and closing.
4116
+ * @TJS-type (open: boolean) => void;
4117
+ */
4118
+ onOpenChange?: (open: boolean) => void;
4119
+ /**
4120
+ * Position of the popover relative to the button.
4121
+ * @default bottom-end
4122
+ */
4123
+ popoverPosition?: PopoverProps["position"];
4124
+ }
4125
+ export type SplitButtonProps = SplitButtonProperties & Omit<BoxProps, "children" | "display" | "gap" | "position">;
4126
+ /**
4127
+ * SplitButton component allows users to perform actions by clicking a primary button and displaying a dropdown menu with additional actions.
4128
+ */
4129
+ export declare const SplitButton: React.FC<SplitButtonProps> & SplitButtonComponents;
4038
4130
 
4039
4131
  export {};