gantri-components 1.119.2 → 1.120.0-beta.11

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.
Files changed (40) hide show
  1. package/dist/components/badge/badge.styles.d.ts +1 -1
  2. package/dist/components/box/box.d.ts +1 -1
  3. package/dist/components/cell/cell.d.ts +2 -2
  4. package/dist/components/checkbox/checkbox.types.d.ts +5 -5
  5. package/dist/components/color-picker/color-picker.presets.d.ts +2 -2
  6. package/dist/components/color-picker/color-picker.types.d.ts +9 -8
  7. package/dist/components/color-picker/components/color-picker-item/color-picker-item.types.d.ts +4 -7
  8. package/dist/components/color-picker/components/color-picker-item/color-picker.styles.d.ts +3 -3
  9. package/dist/components/conditional/conditional.d.ts +3 -0
  10. package/dist/components/conditional/conditional.types.d.ts +5 -0
  11. package/dist/components/conditional/index.d.ts +1 -0
  12. package/dist/components/flex/flex.d.ts +1 -1
  13. package/dist/components/flex/flex.styles.d.ts +1 -1
  14. package/dist/components/flex/flex.types.d.ts +1 -0
  15. package/dist/components/grid/grid.d.ts +1 -1
  16. package/dist/components/icon/generated/actions/StarHalf.d.ts +3 -0
  17. package/dist/components/icon/generated/actions/StarHalf24.d.ts +3 -0
  18. package/dist/components/icon/generated/actions/index.d.ts +2 -1
  19. package/dist/components/icon/generated/ui-control/Email24.d.ts +3 -0
  20. package/dist/components/icon/generated/ui-control/index.d.ts +1 -0
  21. package/dist/components/icon/icon.type.d.ts +1 -1
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/components/modal/modal.styles.d.ts +1 -1
  24. package/dist/components/overlay/overlay.types.d.ts +1 -12
  25. package/dist/components/radio/radio.types.d.ts +1 -1
  26. package/dist/components/stack/stack.d.ts +1 -1
  27. package/dist/components/typography/typography.d.ts +9 -2
  28. package/dist/components/typography/typography.presets.d.ts +2 -2
  29. package/dist/components/typography/typography.types.d.ts +8 -9
  30. package/dist/index.cjs.js +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.esm.js +1 -1
  33. package/dist/index.umd.js +1 -1
  34. package/dist/styles/theme.d.ts +3 -1
  35. package/package.json +1 -1
  36. package/dist/components/color-picker/__tests__/color-picker.test.d.ts +0 -1
  37. package/dist/components/color-picker/components/color-picker-item/__tests__/color-picker-item.test.d.ts +0 -1
  38. package/dist/components/color-picker/components/color-picker-item/color-picker-item.presets.d.ts +0 -2
  39. package/dist/components/overlay/__tests__/overlay.test.d.ts +0 -1
  40. package/dist/components/typography/__tests__/typhography.test.d.ts +0 -1
@@ -1,2 +1,2 @@
1
1
  import { BadgeProps } from './badge.types';
2
- export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "variant" | "minWidth" | "width" | "borderColor" | "opacity" | "size" | "textColor">, never>;
2
+ export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "width" | "borderColor" | "minWidth" | "opacity" | "size" | "textColor" | "variant">, never>;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { BoxProps } from './box.types';
3
- export declare const Box: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<BoxProps>>;
3
+ export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<BoxProps>>;
@@ -1,3 +1,3 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import * as React from 'react';
2
2
  import { CellProps } from './cell.types';
3
- export declare const Cell: FC<PropsWithChildren<CellProps>>;
3
+ export declare const Cell: React.ForwardRefExoticComponent<CellProps & React.RefAttributes<CellProps>>;
@@ -1,7 +1,11 @@
1
+ import { JSXElementConstructor } from 'react';
1
2
  import { TextVariant } from '../typography/typography.types';
2
3
  import { FieldChangeEvent } from '../text-field';
3
- import { JSXElementConstructor } from 'react';
4
4
  export interface CheckboxProps<T = boolean> {
5
+ /** Overrides `labelTx` and `labelText` props to render `Component` inside a `label` element. */
6
+ Component?: JSXElementConstructor<{
7
+ checked: boolean;
8
+ }>;
5
9
  checked?: boolean;
6
10
  disabled?: boolean;
7
11
  labelPosition?: 'left' | 'right';
@@ -11,10 +15,6 @@ export interface CheckboxProps<T = boolean> {
11
15
  name?: string;
12
16
  onChange?: (event: FieldChangeEvent<T>) => void;
13
17
  onSelected?: (value: T) => void;
14
- /** Overrides `labelTx` and `labelText` props to render `Component` inside a `label` element. */
15
- Component?: JSXElementConstructor<{
16
- checked: boolean;
17
- }>;
18
18
  }
19
19
  export interface LabelContentProps extends Pick<CheckboxProps, 'labelText' | 'labelTx' | 'labelVariant' | 'Component'> {
20
20
  isChecked: boolean;
@@ -1,2 +1,2 @@
1
- import { ColorPickerDefaultProps } from './color-picker.types';
2
- export declare const ColorPickerPresets: ColorPickerDefaultProps;
1
+ import { ColorPickerProps } from './color-picker.types';
2
+ export declare const ColorPickerPresets: Partial<ColorPickerProps>;
@@ -1,6 +1,12 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  export declare type ColorPickerVariant = 'large' | 'small';
3
- export interface ColorPickerProps extends Partial<ColorPickerDefaultProps> {
3
+ export interface ColorPickerProps {
4
+ allowMultipleSelection?: boolean;
5
+ /**
6
+ * List of colors to render,
7
+ * defaults to gantri's product colors list
8
+ * */
9
+ colors?: PickerColor[];
4
10
  labelText?: string;
5
11
  labelTx?: string;
6
12
  labelTxValues?: Record<string, unknown>;
@@ -9,17 +15,12 @@ export interface ColorPickerProps extends Partial<ColorPickerDefaultProps> {
9
15
  onValueChange?: (selected: PickerColor | PickerColor[] | null) => void;
10
16
  readOnly?: boolean;
11
17
  value?: string | string[];
12
- }
13
- export interface ColorPickerDefaultProps {
14
- allowMultipleSelection: boolean;
15
- /** List of colors to render. Defaults to Gantri's product colors list. */
16
- colors: PickerColor[];
17
- variant: ColorPickerVariant;
18
+ variant?: ColorPickerVariant;
18
19
  }
19
20
  export interface PickerColor {
20
21
  code: string;
21
22
  name: string;
22
- value: string;
23
+ value?: string;
23
24
  }
24
25
  export interface ColorPickerChangeEvent extends Pick<ChangeEvent<HTMLInputElement>, Exclude<keyof ChangeEvent<HTMLInputElement>, 'target'>> {
25
26
  target: {
@@ -1,12 +1,9 @@
1
- import { CSSProperties } from 'styled-components';
1
+ import { Property } from 'csstype';
2
2
  import { ColorPickerVariant, PickerColor } from '../../color-picker.types';
3
- export interface ColorPickerItemProps extends Partial<ColorPickerItemDefaultProps> {
3
+ export interface ColorPickerItemProps {
4
4
  active?: boolean;
5
5
  color: PickerColor;
6
6
  onColorClick: (color: PickerColor) => void;
7
- /** Overrides `variant`. */
8
- size?: CSSProperties['width'];
9
- }
10
- export interface ColorPickerItemDefaultProps {
11
- variant: ColorPickerVariant;
7
+ size?: Property.Width;
8
+ variant?: ColorPickerVariant;
12
9
  }
@@ -1,12 +1,12 @@
1
- import { CSSProperties } from 'styled-components';
1
+ import { Property } from 'csstype';
2
2
  import { ColorPickerVariant } from '../../color-picker.types';
3
3
  export declare const StyledColorOutline: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
4
4
  $selected?: boolean | undefined;
5
- $size?: CSSProperties['width'];
5
+ $size?: Property.Width<0 | (string & {})> | undefined;
6
6
  $variant?: ColorPickerVariant | undefined;
7
7
  }, never>;
8
8
  export declare const StyledColor: import("styled-components").StyledComponent<import("react-spring").AnimatedComponent<"span">, import("styled-components").DefaultTheme, {
9
- $size?: CSSProperties['width'];
9
+ $size?: Property.Width<0 | (string & {})> | undefined;
10
10
  $variant?: ColorPickerVariant | undefined;
11
11
  color: string;
12
12
  }, never>;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { ConditionalProps } from './conditional.types';
3
+ export declare const Conditional: FC<PropsWithChildren<ConditionalProps>>;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ConditionalProps {
3
+ Fallback?: ReactNode;
4
+ condition: boolean;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './conditional';
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { FlexProps } from './flex.types';
3
- export declare const Flex: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<FlexProps>>;
3
+ export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<FlexProps>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { FlexProps } from './flex.types';
3
- export declare const StyledFlexContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<import("../box/box.types").BoxProps>>, import("styled-components").DefaultTheme, FlexProps, never>;
3
+ export declare const StyledFlexContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../box/box.types").BoxProps & import("react").RefAttributes<import("../box/box.types").BoxProps>>, import("styled-components").DefaultTheme, FlexProps, never>;
@@ -8,4 +8,5 @@ export interface FlexProps extends BoxProps {
8
8
  height?: ResolutionAwareProp<string>;
9
9
  justifyContent?: ResolutionAwareProp<Property.JustifyContent>;
10
10
  width?: ResolutionAwareProp<string>;
11
+ wrap?: ResolutionAwareProp<Property.FlexWrap>;
11
12
  }
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { GridProps } from './grid.types';
3
- export declare const Grid: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<GridProps>>;
3
+ export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<GridProps>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgStarHalf: React.NamedExoticComponent<object>;
3
+ export default SvgStarHalf;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgStarHalf24: React.NamedExoticComponent<object>;
3
+ export default SvgStarHalf24;
@@ -10,7 +10,8 @@ export { default as Star } from './Star';
10
10
  export { default as Star24 } from './Star24';
11
11
  export { default as StarFilled } from './StarFilled';
12
12
  export { default as StarFilled24 } from './StarFilled24';
13
- export { default as StarHaftFilled } from './StarHaftFilled';
13
+ export { default as StarHalf } from './StarHalf';
14
+ export { default as StarHalf24 } from './StarHalf24';
14
15
  export { default as ThumbsUp } from './ThumbsUp';
15
16
  export { default as ThumbsUp24 } from './ThumbsUp24';
16
17
  export { default as TrashCan } from './TrashCan';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgEmail24: React.NamedExoticComponent<object>;
3
+ export default SvgEmail24;
@@ -4,6 +4,7 @@ export { default as CheckMarkCircleFilled } from './CheckMarkCircleFilled';
4
4
  export { default as CheckMarkCircleFilled24 } from './CheckMarkCircleFilled24';
5
5
  export { default as Drag } from './Drag';
6
6
  export { default as Email } from './Email';
7
+ export { default as Email24 } from './Email24';
7
8
  export { default as Globe } from './Globe';
8
9
  export { default as Globe24 } from './Globe24';
9
10
  export { default as Grid } from './Grid';
@@ -1,2 +1,2 @@
1
- export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_haft_filled", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_apple", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_paper", "work:sand_paper_24", "work:sun", "work:sun_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:water_drop", "work:water_drop_24", "work:wrench", "work:wrench_24"];
1
+ export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_half", "actions:star_half_24", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_apple", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:email_24", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_paper", "work:sand_paper_24", "work:sun", "work:sun_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:water_drop", "work:water_drop_24", "work:wrench", "work:wrench_24"];
2
2
  export declare type IconType = typeof IconsList[number];
@@ -6,6 +6,7 @@ export * from './button';
6
6
  export * from './cell';
7
7
  export * from './checkbox';
8
8
  export * from './circular-progress';
9
+ export * from './conditional';
9
10
  export * from './color-picker';
10
11
  export * from './confirmation-modal';
11
12
  export * from './dropdown';
@@ -13,7 +13,7 @@ export declare const StyledModalFooter: import("styled-components").StyledCompon
13
13
  }, never>;
14
14
  export declare const StyledModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
15
  export declare const StyledModalBodyContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
- export declare const StyledModalScrollableContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<import("../grid/grid.types").GridProps>>, import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const StyledModalScrollableContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../grid/grid.types").GridProps & import("react").RefAttributes<import("../grid/grid.types").GridProps>>, import("styled-components").DefaultTheme, {}, never>;
17
17
  export declare const StyledModalChildrenContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
18
  export declare const StyledModalBackdrop: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
19
  export declare const StyledModalCloseButtonContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -1,30 +1,19 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  export interface OverlayProps {
3
- /** Trigger event interactions with this component causes `content` to render, as appropriate. */
4
- children?: ReactNode;
5
- /** Applied as inline styles to the `children` wrapper. */
6
3
  containerStyles?: CSSProperties;
7
- /** The component to show/hide. */
8
4
  content: ReactNode;
9
5
  disabled?: boolean;
10
6
  offsetBottom?: string;
11
7
  offsetLeft?: string;
12
8
  offsetRight?: string;
13
9
  offsetTop?: string;
14
- /**
15
- * Not called if `triggerEvent` is `'manual'`.
16
- *
17
- * If `triggerEvent` is `'hover'`, this can be called twice. Once for unhovering the child, and once for unhovering the content.
18
- * */
19
10
  onClose?: (opened: false) => void;
20
- /** Not called if `triggerEvent` is `'manual'` */
21
11
  onOpen?: (opened: true) => void;
22
- /** Should be used when `triggerEvent` is `'manual'`. */
23
12
  open?: boolean;
24
13
  parentContainer?: HTMLElement;
25
14
  position?: OverlayPosition;
26
15
  prerenderContent?: boolean;
27
- triggerEvent?: 'click' | 'hover' | 'manual';
16
+ triggerEvent?: 'click' | 'hover' | 'focus' | 'manual';
28
17
  }
29
18
  export interface UseOverlayParams {
30
19
  content: ReactNode;
@@ -1,4 +1,4 @@
1
- import { TextVariant } from '../typography/typography.types';
1
+ import { TextVariant } from '../typography';
2
2
  export interface RadioProps {
3
3
  disabled?: boolean;
4
4
  groupValue?: any;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { StackProps } from './stack.types';
3
- export declare const Stack: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<StackProps>>;
3
+ export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<StackProps>>;
@@ -1,4 +1,11 @@
1
1
  import React from 'react';
2
- import { TextVariant, TypographyProps } from './typography.types';
3
- export declare const variantToType: Partial<Record<TextVariant, 'h1' | 'p'>>;
2
+ import { TypographyProps } from './typography.types';
3
+ export declare const variantToType: {
4
+ readonly badge: "span";
5
+ readonly hero: "h1";
6
+ readonly p0: "p";
7
+ readonly p1: "p";
8
+ readonly p2: "p";
9
+ readonly p3: "p";
10
+ };
4
11
  export declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<unknown>>;
@@ -1,2 +1,2 @@
1
- import { TypographyDefaultProps } from './typography.types';
2
- export declare const TypographyPresets: TypographyDefaultProps;
1
+ import { TypographyProps } from './typography.types';
2
+ export declare const TypographyPresets: TypographyProps;
@@ -6,11 +6,13 @@ export declare type TextAlign = 'string' | 'left' | 'center' | 'right' | 'unset'
6
6
  export declare type TypographyColor = keyof DefaultTheme['colors']['typography'];
7
7
  export declare type TextVariant = 'p0' | 'p1' | 'p2' | 'p3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'hero';
8
8
  export declare type TextStyle = 'regular' | 'bold';
9
- export interface TypographyProps extends Partial<TypographyDefaultProps> {
9
+ export interface TypographyProps {
10
10
  align?: ResolutionAwareProp<string>;
11
11
  alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
12
12
  className?: string;
13
+ color?: TypographyColor;
13
14
  decoration?: Property.TextDecoration;
15
+ display?: ResolutionAwareProp<Property.Display>;
14
16
  fontSize?: ResolutionAwareProp<Property.Font>;
15
17
  fontWeight?: Property.FontWeight;
16
18
  hidden?: ResolutionAwareProp<boolean>;
@@ -19,6 +21,8 @@ export interface TypographyProps extends Partial<TypographyDefaultProps> {
19
21
  htmlFor?: string;
20
22
  htmlText?: string;
21
23
  icon?: JSX.Element;
24
+ iconGap?: string;
25
+ iconPosition?: 'left' | 'right';
22
26
  justifySelf?: ResolutionAwareProp<Property.JustifySelf>;
23
27
  letterSpacing?: ResolutionAwareProp<Property.LetterSpacing>;
24
28
  lineHeight?: ResolutionAwareProp<Property.LineHeight>;
@@ -42,14 +46,9 @@ export interface TypographyProps extends Partial<TypographyDefaultProps> {
42
46
  transform?: Property.TextTransform;
43
47
  tx?: string;
44
48
  txValues?: Record<string, unknown>;
45
- type?: keyof HTMLElementTagNameMap;
49
+ type?: string;
50
+ variant?: TextVariant;
46
51
  verticalMargin?: ResolutionAwareProp<Property.Margin>;
47
52
  verticalPadding?: ResolutionAwareProp<Property.Padding>;
48
- }
49
- export interface TypographyDefaultProps {
50
- color: TypographyColor;
51
- display: ResolutionAwareProp<Property.Display>;
52
- iconPosition: 'left' | 'right';
53
- variant: TextVariant;
54
- whiteSpace: ResolutionAwareProp<any>;
53
+ whiteSpace?: ResolutionAwareProp<any>;
55
54
  }