@useloops/design-system 1.4.402 → 1.4.403

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
@@ -2042,54 +2042,34 @@ interface StyledLinearProgressProps extends LinearProgressProps {
2042
2042
  barColor?: KpiIndicatorColor$1;
2043
2043
  }
2044
2044
 
2045
- /**
2046
- * Renders a customizable bar graph item with optional icon, label, value, respondent count, and checkbox.
2047
- *
2048
- * @component
2049
- * @param {GraphBarProps} props - The props for the GraphBar component.
2050
- * @param {string} props.label - The label displayed for the bar.
2051
- * @param {number | null | undefined} props.value - The value represented by the bar (used for progress).
2052
- * @param {React.ReactNode} [props.tooltipContent] - Optional tooltip content shown on hover.
2053
- * @param {number | null | undefined} [props.respondentCount] - Optional count of respondents displayed in a column.
2054
- * @param {object} [props.icon] - Optional icon configuration (emoji or standard icon).
2055
- * @param {boolean} [props.hideIcon] - If true, hides the icon.
2056
- * @param {boolean} [props.hideCheckbox] - If true, hides the checkbox.
2057
- * @param {boolean} [props.hideUnitColumn1] - If true, hides the first unit column (value).
2058
- * @param {boolean} [props.hideUnitColumn2] - If true, hides the second unit column (respondent count).
2059
- * @param {object} [props.checkboxProps] - Additional props for the checkbox.
2060
- * @param {object} [props.slotProps] - Additional slot props for customizing subcomponents.
2061
- * @param {boolean} [props.percentageSymbol] - If true, appends a percentage symbol to the value.
2062
- * @param {boolean} [props.checkedDefaultValue] - The initial checked state of the checkbox.
2063
- *
2064
- * @returns {JSX.Element} The rendered GraphBar component.
2065
- */
2045
+ interface GraphBarSlotProps {
2046
+ graphBar?: StyledLinearProgressProps;
2047
+ graphBarTypography?: Omit<TypographyProps, 'component' | 'variation'>;
2048
+ checkbox?: CheckboxProps$2;
2049
+ icon?: IconProps$1;
2050
+ emojiIcon?: BoxProps$1;
2051
+ tooltip?: TooltipProps$2;
2052
+ }
2066
2053
  interface GraphBarProps {
2067
- hideIcon?: boolean;
2068
- hideCheckbox?: boolean;
2069
- hideUnitColumn1?: boolean;
2070
- hideUnitColumn2?: boolean;
2071
- icon?: {
2072
- type: 'emoji' | 'icon';
2073
- name: CommentEmotion | IconName$2;
2074
- };
2075
2054
  id: string;
2076
2055
  label: string;
2077
2056
  value: number;
2078
- tooltipContent?: ReactNode;
2079
2057
  respondentCount?: number;
2080
2058
  maxValue?: number;
2059
+ tooltipContent?: ReactNode;
2060
+ icon?: {
2061
+ type: 'emoji' | 'icon';
2062
+ name: CommentEmotion | IconName$2;
2063
+ };
2064
+ hideIcon?: boolean;
2065
+ hideCheckbox?: boolean;
2066
+ hideUnitColumn1?: boolean;
2067
+ hideUnitColumn2?: boolean;
2081
2068
  checked?: boolean;
2082
2069
  disabled?: boolean;
2083
- onChange?: React.MouseEventHandler<HTMLDivElement> | undefined | any;
2084
- slotProps: {
2085
- graphBar?: StyledLinearProgressProps;
2086
- graphBarTypography?: Omit<TypographyProps, 'component' | 'variation'>;
2087
- checkbox?: CheckboxProps$2;
2088
- icon?: IconProps$1;
2089
- emojiIcon?: BoxProps$1;
2090
- tooltip?: TooltipProps$2;
2091
- };
2070
+ onChange?: (checked: boolean) => void;
2092
2071
  percentageSymbol?: boolean;
2072
+ slotProps?: GraphBarSlotProps;
2093
2073
  }
2094
2074
  declare const GraphBar: FunctionComponent<GraphBarProps>;
2095
2075