widenarrow-ui 2.0.25 → 2.0.27

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/lib/index.d.ts CHANGED
@@ -295,6 +295,7 @@ declare enum ColorTypes {
295
295
  GREY_4 = "grey4",
296
296
  GREY_5 = "grey5",
297
297
  GREY_6 = "grey6",
298
+ GREY_7 = "grey7",
298
299
  BLACK = "black",
299
300
  INHERIT = "inherit",
300
301
  CURRENT = "current",
@@ -352,6 +353,7 @@ declare enum AppColors {
352
353
  GREY_4 = "#6b6b6b",
353
354
  GREY_5 = "#464646",
354
355
  GREY_6 = "#242021",
356
+ GREY_7 = "#222",
355
357
  BLACK = "#000000",
356
358
  CUSTOM = "custom",
357
359
  PURPLE_1 = "#edf1fd",
@@ -404,6 +406,7 @@ interface FlexStylingInterface {
404
406
  flexShrink?: '0' | '1' | 'auto';
405
407
  flexBasis?: 'auto' | 'content' | 'fit-content' | 'max-content' | 'min-content' | 'fill' | 'initial' | 'inherit';
406
408
  alignSelf?: 'center' | 'flexStart' | 'flexEnd';
409
+ gap?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '025' | '05' | '15' | '25';
407
410
  }
408
411
  interface BorderInterface {
409
412
  borderColor?: Partial<ColorTypes>;
@@ -431,7 +434,7 @@ declare const paddingClassNames: ({ padding, paddingX, paddingY, paddingTop, pad
431
434
  declare const marginClassNames: ({ margin, marginX, marginY, marginTop, marginBottom, marginRight, marginLeft }: MarginInterface) => {
432
435
  [x: string]: boolean;
433
436
  };
434
- declare const flexClassNames: ({ displayFlex, displayFlexCenter, displayFlexCenterSpaceBetween, justifyContent, alignItems, flexDirection, flexWrap, flexGrow, flexShrink, flexBasis, alignSelf }: FlexStylingInterface) => {
437
+ declare const flexClassNames: ({ displayFlex, displayFlexCenter, displayFlexCenterSpaceBetween, justifyContent, alignItems, flexDirection, flexWrap, flexGrow, flexShrink, flexBasis, alignSelf, gap }: FlexStylingInterface) => {
435
438
  [x: string]: boolean | undefined;
436
439
  displayFlex: boolean | undefined;
437
440
  displayFlexCenter: boolean | undefined;
@@ -1207,14 +1210,16 @@ interface ToolTipProps {
1207
1210
  delayShow?: number;
1208
1211
  variant?: 'dark' | 'light';
1209
1212
  placement?: 'top' | 'right' | 'bottom' | 'left';
1213
+ showArrow?: boolean;
1210
1214
  }
1211
1215
 
1212
1216
  /**
1213
- * @desc This components extends the react-tooltip library.
1214
- * Full api documentation here: https://github.com/wwayne/react-tooltip
1217
+ * @desc Tooltip component implemented with @floating-ui/react.
1218
+ * Same public API as ToolTip but without the react-tooltip dependency.
1219
+ * The arrow always points toward the trigger element (disable with showArrow={false}).
1215
1220
  */
1216
1221
  declare const ToolTip: {
1217
- ({ text, children, disabled, className, delayShow, toolTipClassName, component, withEllipsis, id, displayInPortal, placement, variant, offset }: ToolTipProps): JSX.Element | null;
1222
+ ({ text, children, disabled, className, delayShow, toolTipClassName, component, withEllipsis, displayInPortal, placement, variant, offset, showArrow }: ToolTipProps): JSX.Element | null;
1218
1223
  displayName: string;
1219
1224
  };
1220
1225