@activecollab/components 1.0.234 → 1.0.236

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 (143) hide show
  1. package/dist/cjs/components/Button/Button.js.map +1 -1
  2. package/dist/cjs/components/Menu/Menu.js +10 -0
  3. package/dist/cjs/components/Menu/Menu.js.map +1 -1
  4. package/dist/cjs/components/Pressed/Pressed.js +1 -0
  5. package/dist/cjs/components/Pressed/Pressed.js.map +1 -1
  6. package/dist/esm/components/Accordion/Accordion.d.ts +8 -0
  7. package/dist/esm/components/Accordion/Accordion.d.ts.map +1 -1
  8. package/dist/esm/components/Accordion/AccordionItem.d.ts +3 -0
  9. package/dist/esm/components/Accordion/AccordionItem.d.ts.map +1 -1
  10. package/dist/esm/components/Accordion/AccordionItemBody.d.ts +2 -0
  11. package/dist/esm/components/Accordion/AccordionItemBody.d.ts.map +1 -1
  12. package/dist/esm/components/Accordion/AccordionItemHead.d.ts +2 -0
  13. package/dist/esm/components/Accordion/AccordionItemHead.d.ts.map +1 -1
  14. package/dist/esm/components/Autocomplete/Autocomplete.d.ts +18 -0
  15. package/dist/esm/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  16. package/dist/esm/components/Avatar/Avatar.d.ts +4 -0
  17. package/dist/esm/components/Avatar/Avatar.d.ts.map +1 -1
  18. package/dist/esm/components/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  19. package/dist/esm/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  20. package/dist/esm/components/Bubble/Bubble.d.ts +6 -0
  21. package/dist/esm/components/Bubble/Bubble.d.ts.map +1 -1
  22. package/dist/esm/components/Button/AddToListButton/AddToListButton.d.ts +2 -0
  23. package/dist/esm/components/Button/AddToListButton/AddToListButton.d.ts.map +1 -1
  24. package/dist/esm/components/Button/Button.d.ts +24 -5
  25. package/dist/esm/components/Button/Button.d.ts.map +1 -1
  26. package/dist/esm/components/Button/Button.js.map +1 -1
  27. package/dist/esm/components/Button/GlobalAddButton/GlobalAddButton.d.ts +2 -0
  28. package/dist/esm/components/Button/GlobalAddButton/GlobalAddButton.d.ts.map +1 -1
  29. package/dist/esm/components/Card/Card.d.ts +3 -0
  30. package/dist/esm/components/Card/Card.d.ts.map +1 -1
  31. package/dist/esm/components/Checkbox/Checkbox.d.ts +6 -0
  32. package/dist/esm/components/Checkbox/Checkbox.d.ts.map +1 -1
  33. package/dist/esm/components/Choose/Choose.d.ts +7 -0
  34. package/dist/esm/components/Choose/Choose.d.ts.map +1 -1
  35. package/dist/esm/components/ComboBox/ComboBox.d.ts +14 -0
  36. package/dist/esm/components/ComboBox/ComboBox.d.ts.map +1 -1
  37. package/dist/esm/components/CompleteCheckbox/CompleteCheckbox.d.ts +7 -0
  38. package/dist/esm/components/CompleteCheckbox/CompleteCheckbox.d.ts.map +1 -1
  39. package/dist/esm/components/CounterButton/CounterButton.d.ts +7 -0
  40. package/dist/esm/components/CounterButton/CounterButton.d.ts.map +1 -1
  41. package/dist/esm/components/DatePicker/DatePicker.d.ts +7 -0
  42. package/dist/esm/components/DatePicker/DatePicker.d.ts.map +1 -1
  43. package/dist/esm/components/EditableContent/EditableContent.d.ts +5 -0
  44. package/dist/esm/components/EditableContent/EditableContent.d.ts.map +1 -1
  45. package/dist/esm/components/EditableText/EditableText.d.ts +3 -0
  46. package/dist/esm/components/EditableText/EditableText.d.ts.map +1 -1
  47. package/dist/esm/components/Entity/EntityCard.d.ts +4 -0
  48. package/dist/esm/components/Entity/EntityCard.d.ts.map +1 -1
  49. package/dist/esm/components/Expanders/ExpanderInterface.d.ts +4 -0
  50. package/dist/esm/components/Expanders/ExpanderInterface.d.ts.map +1 -1
  51. package/dist/esm/components/Filter/Filter.d.ts +9 -0
  52. package/dist/esm/components/Filter/Filter.d.ts.map +1 -1
  53. package/dist/esm/components/Header/Header.d.ts +3 -0
  54. package/dist/esm/components/Header/Header.d.ts.map +1 -1
  55. package/dist/esm/components/IconButton/IconButton.d.ts +18 -0
  56. package/dist/esm/components/IconButton/IconButton.d.ts.map +1 -1
  57. package/dist/esm/components/Input/Input.d.ts +1 -0
  58. package/dist/esm/components/Input/Input.d.ts.map +1 -1
  59. package/dist/esm/components/Links/BackLink.d.ts +5 -0
  60. package/dist/esm/components/Links/BackLink.d.ts.map +1 -1
  61. package/dist/esm/components/Links/Link.d.ts +8 -0
  62. package/dist/esm/components/Links/Link.d.ts.map +1 -1
  63. package/dist/esm/components/List/List.d.ts +1 -0
  64. package/dist/esm/components/List/List.d.ts.map +1 -1
  65. package/dist/esm/components/Loaders/Spinner/SpinnerLoader.d.ts +6 -0
  66. package/dist/esm/components/Loaders/Spinner/SpinnerLoader.d.ts.map +1 -1
  67. package/dist/esm/components/Menu/Menu.d.ts +15 -0
  68. package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
  69. package/dist/esm/components/Menu/Menu.js +10 -0
  70. package/dist/esm/components/Menu/Menu.js.map +1 -1
  71. package/dist/esm/components/MenuSelector/MenuSelector.d.ts +10 -0
  72. package/dist/esm/components/MenuSelector/MenuSelector.d.ts.map +1 -1
  73. package/dist/esm/components/MultiAvatar/MultiAvatar.d.ts +4 -0
  74. package/dist/esm/components/MultiAvatar/MultiAvatar.d.ts.map +1 -1
  75. package/dist/esm/components/Nav/Item/Item.d.ts +3 -0
  76. package/dist/esm/components/Nav/Item/Item.d.ts.map +1 -1
  77. package/dist/esm/components/Nav/Nav.d.ts +7 -0
  78. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  79. package/dist/esm/components/Paper/Paper.d.ts +10 -0
  80. package/dist/esm/components/Paper/Paper.d.ts.map +1 -1
  81. package/dist/esm/components/Popper/Popper.d.ts +6 -0
  82. package/dist/esm/components/Popper/Popper.d.ts.map +1 -1
  83. package/dist/esm/components/Pressed/Pressed.d.ts +5 -0
  84. package/dist/esm/components/Pressed/Pressed.d.ts.map +1 -1
  85. package/dist/esm/components/Pressed/Pressed.js +1 -0
  86. package/dist/esm/components/Pressed/Pressed.js.map +1 -1
  87. package/dist/esm/components/ProgressBar/ProgressBar.d.ts +5 -0
  88. package/dist/esm/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  89. package/dist/esm/components/ProgressRing/ProgressRing.d.ts +8 -0
  90. package/dist/esm/components/ProgressRing/ProgressRing.d.ts.map +1 -1
  91. package/dist/esm/components/RadioButton/RadioButton.d.ts +3 -0
  92. package/dist/esm/components/RadioButton/RadioButton.d.ts.map +1 -1
  93. package/dist/esm/components/ScaleBar/ScaleBar.d.ts +2 -0
  94. package/dist/esm/components/ScaleBar/ScaleBar.d.ts.map +1 -1
  95. package/dist/esm/components/ScrollShadow/ScrollShadow.d.ts +8 -0
  96. package/dist/esm/components/ScrollShadow/ScrollShadow.d.ts.map +1 -1
  97. package/dist/esm/components/Select/Option/Option.d.ts +10 -0
  98. package/dist/esm/components/Select/Option/Option.d.ts.map +1 -1
  99. package/dist/esm/components/Select/OptionGroup/OptionGroup.d.ts +9 -0
  100. package/dist/esm/components/Select/OptionGroup/OptionGroup.d.ts.map +1 -1
  101. package/dist/esm/components/Select/Select.d.ts +13 -0
  102. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  103. package/dist/esm/components/SelectDate/DatePickerForm.d.ts +9 -0
  104. package/dist/esm/components/SelectDate/DatePickerForm.d.ts.map +1 -1
  105. package/dist/esm/components/SelectDate/SelectDate.d.ts +40 -0
  106. package/dist/esm/components/SelectDate/SelectDate.d.ts.map +1 -1
  107. package/dist/esm/components/Signifier/Signifier.d.ts +5 -0
  108. package/dist/esm/components/Signifier/Signifier.d.ts.map +1 -1
  109. package/dist/esm/components/Steppers/DateStepper/DateStepper.d.ts +20 -0
  110. package/dist/esm/components/Steppers/DateStepper/DateStepper.d.ts.map +1 -1
  111. package/dist/esm/components/Steppers/Steps/Steps.d.ts +4 -0
  112. package/dist/esm/components/Steppers/Steps/Steps.d.ts.map +1 -1
  113. package/dist/esm/components/Tables/DataTable.d.ts +15 -0
  114. package/dist/esm/components/Tables/DataTable.d.ts.map +1 -1
  115. package/dist/esm/components/Tables/Table.d.ts +5 -0
  116. package/dist/esm/components/Tables/Table.d.ts.map +1 -1
  117. package/dist/esm/components/Toggle/Toggle.d.ts +2 -0
  118. package/dist/esm/components/Toggle/Toggle.d.ts.map +1 -1
  119. package/dist/esm/components/Tooltip/Tooltip.d.ts +11 -0
  120. package/dist/esm/components/Tooltip/Tooltip.d.ts.map +1 -1
  121. package/dist/esm/components/Typography/Typography.d.ts +15 -0
  122. package/dist/esm/components/Typography/Typography.d.ts.map +1 -1
  123. package/dist/esm/components/Typography/Variants/Body1.d.ts +1 -0
  124. package/dist/esm/components/Typography/Variants/Body1.d.ts.map +1 -1
  125. package/dist/esm/components/Typography/Variants/Body2.d.ts +1 -0
  126. package/dist/esm/components/Typography/Variants/Body2.d.ts.map +1 -1
  127. package/dist/esm/components/Typography/Variants/Caption1.d.ts +1 -0
  128. package/dist/esm/components/Typography/Variants/Caption1.d.ts.map +1 -1
  129. package/dist/esm/components/Typography/Variants/Caption2.d.ts +1 -0
  130. package/dist/esm/components/Typography/Variants/Caption2.d.ts.map +1 -1
  131. package/dist/esm/components/Typography/Variants/Title1.d.ts +1 -0
  132. package/dist/esm/components/Typography/Variants/Title1.d.ts.map +1 -1
  133. package/dist/esm/components/Typography/Variants/Title2.d.ts +1 -0
  134. package/dist/esm/components/Typography/Variants/Title2.d.ts.map +1 -1
  135. package/dist/esm/components/ValueButton/ValueButton.d.ts +5 -0
  136. package/dist/esm/components/ValueButton/ValueButton.d.ts.map +1 -1
  137. package/dist/esm/utils/types.d.ts +25 -0
  138. package/dist/esm/utils/types.d.ts.map +1 -1
  139. package/dist/index.js +11 -0
  140. package/dist/index.js.map +1 -1
  141. package/dist/index.min.js +1 -1
  142. package/dist/index.min.js.map +1 -1
  143. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  import React from "react";
2
2
  export interface IToggleProps {
3
+ /** Set hovered state. */
3
4
  hovered?: boolean;
5
+ /** Custom classname for styling. */
4
6
  className?: string;
5
7
  }
6
8
  export declare const Toggle: React.ForwardRefExoticComponent<IToggleProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "key" | "css" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "cs" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "tw">, keyof IToggleProps> & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,MAAM,WAAW,YAAY;IAE3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,mtJAiBjB,CAAC"}
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,mtJAiBjB,CAAC"}
@@ -5,16 +5,27 @@ interface ElementWithRef<T> extends ReactElement {
5
5
  ref?: Ref<T>;
6
6
  }
7
7
  export interface ITooltipProps {
8
+ /** Children element. */
8
9
  children: ElementWithRef<HTMLElement>;
10
+ /** Title element. */
9
11
  title: ReactElement | string;
12
+ /** Applies passed styles */
10
13
  style?: CSSProperties;
14
+ /** Applies passed classes */
11
15
  className?: string;
16
+ /** Open */
12
17
  open?: boolean;
18
+ /** Placement */
13
19
  placement?: Placement;
20
+ /** Transition component */
14
21
  TransitionComponent?: React.FC<TransitionProps>;
22
+ /** Light tooltip */
15
23
  isLight?: boolean;
24
+ /** Popper Tooltip style */
16
25
  popperTooltipStyle?: CSSProperties;
26
+ /** Popper Tooltip class name*/
17
27
  popperTooltipClassName?: string;
28
+ /** Remove tooltip */
18
29
  disable?: boolean;
19
30
  }
20
31
  export declare const Tooltip: React.ForwardRefExoticComponent<ITooltipProps & React.RefAttributes<HTMLElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,YAAY,EAEZ,aAAa,EAGb,GAAG,EAEJ,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,SAAS,EAAE,MAAM,WAAW,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKjD,UAAU,cAAc,CAAC,CAAC,CAAE,SAAQ,YAAY;IAC9C,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAE5B,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IAEtC,KAAK,EAAE,YAAY,GAAG,MAAM,CAAC;IAE7B,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mBAAmB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;I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AcD,eAAO,MAAM,OAAO,mFAqFnB,CAAC"}
@@ -2,20 +2,35 @@ import React, { HTMLAttributes } from "react";
2
2
  import { PolymorphicComponentPropsWithRef } from "../../utils/types";
3
3
  export declare type Variant = "Title 1" | "Title 2" | "Header 2" | "Header 3" | "Body 1" | "Body 2" | "Caption 1" | "Caption 2";
4
4
  export interface ITypographyProps extends HTMLAttributes<HTMLElement> {
5
+ /** Font color. */
5
6
  color?: "primary" | "secondary" | "tertiary" | "quaternary" | "theme-primary" | "theme-secondary" | "only-white" | "only-black" | "page-paper" | "success" | "alert" | "warning";
7
+ /** Tabular numbers. */
6
8
  tabularNums?: boolean;
9
+ /** Italic font style. */
7
10
  italic?: boolean;
11
+ /** Font letter spacing. */
8
12
  letterSpacing?: "tight" | "regular" | "wide";
13
+ /** Font line height. */
9
14
  lineHeight?: "tight" | "regular" | "loose";
15
+ /** Font align. */
10
16
  align?: "left" | "center" | "right" | "justify";
17
+ /** Underline font style. */
11
18
  decoration?: "underline" | "line-through" | "none";
19
+ /** Font transform. */
12
20
  transform?: "uppercase" | "lowercase" | "capitalize" | "regular";
21
+ /** Font overflow. */
13
22
  overflow?: "truncate" | "ellipsis" | "visible";
23
+ /** Font whitespace. */
14
24
  whitespace?: "regular" | "no-wrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces";
25
+ /** Font word break. */
15
26
  wordBreak?: "regular" | "smart" | "all";
27
+ /** Custom className for styling. */
16
28
  className?: string;
29
+ /** Element variant. */
17
30
  variant?: Variant;
31
+ /** Font weight. */
18
32
  weight?: "light" | "regular" | "medium" | "bold";
33
+ /** Font size. */
19
34
  size?: "32" | "18" | "16" | "14" | "12" | "10";
20
35
  }
21
36
  export declare type TypographyProps<C extends React.ElementType> = PolymorphicComponentPropsWithRef<C, ITypographyProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,E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AAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAChD;AAED,oBAAY,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IACrD,gCAAgC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAExD,oBAAY,mBAAmB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACpE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KACtB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAE/B,eAAO,MAAM,UAAU,EAAE,mBAAmB,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAiDlE,CAAC"}
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAG1D,OAAO,EACL,gCAAgC,EAEjC,MAAM,mBAAmB,CAAC;AAE3B,oBAAY,OAAO,GACf,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE,kBAAkB;IAClB,KAAK,CAAC,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,YAAY,GACZ,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,GACP,SAAS,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yBAAyB;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC7C,wBAAwB;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IA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typography";
3
3
  interface IBodyProps {
4
+ /** Font weight. */
4
5
  weight?: "regular" | "bold" | "medium";
5
6
  }
6
7
  export declare const Body1: React.ForwardRefExoticComponent<IBodyProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Body1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,UAAU;IAElB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
1
+ {"version":3,"file":"Body1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,UAAU;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  export interface IBodyProps {
4
+ /** Font weight. */
4
5
  weight?: "regular" | "bold" | "medium";
5
6
  }
6
7
  export declare const Body2: React.ForwardRefExoticComponent<IBodyProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Body2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAC7D,MAAM,WAAW,UAAU;IAEzB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
1
+ {"version":3,"file":"Body2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Body2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAC7D,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,kIAShB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  interface ICaptionProps {
4
+ /** Font weight. */
4
5
  weight?: "regular" | "bold";
5
6
  }
6
7
  export declare const Caption1: React.ForwardRefExoticComponent<ICaptionProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Caption1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Caption1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,aAAa;IAErB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ,qIASnB,CAAC"}
1
+ {"version":3,"file":"Caption1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Caption1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,aAAa;IACrB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ,qIASnB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  interface ICaptionProps {
4
+ /** Font weight. */
4
5
  weight?: "regular" | "bold";
5
6
  }
6
7
  export declare const Caption2: React.ForwardRefExoticComponent<ICaptionProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Caption2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Caption2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,aAAa;IAErB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ,qIASnB,CAAC"}
1
+ {"version":3,"file":"Caption2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Caption2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,aAAa;IACrB,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,QAAQ,qIASnB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  interface ITitleProps {
4
+ /** Font weight. */
4
5
  weight?: "light" | "bold";
5
6
  }
6
7
  export declare const Title1: React.ForwardRefExoticComponent<ITitleProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Title1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Title1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,WAAW;IAEnB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,mIASjB,CAAC"}
1
+ {"version":3,"file":"Title1.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Title1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,WAAW;IACnB,mBAAmB;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,mIASjB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { ITypographyProps } from "../Typography";
3
3
  interface ITitleProps {
4
+ /** Font weight. */
4
5
  weight?: "light" | "bold";
5
6
  }
6
7
  export declare const Title2: React.ForwardRefExoticComponent<ITitleProps & Omit<ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Title2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Title2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,WAAW;IAEnB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,mIASjB,CAAC"}
1
+ {"version":3,"file":"Title2.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Variants/Title2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAE7D,UAAU,WAAW;IACnB,mBAAmB;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,mIASjB,CAAC"}
@@ -1,9 +1,14 @@
1
1
  import React, { ReactElement } from "react";
2
2
  interface IValueButtonProps {
3
+ /** Set active state */
3
4
  active?: boolean;
5
+ /** Label for value */
4
6
  label?: string;
7
+ /** Value */
5
8
  value: string;
9
+ /** Icon */
6
10
  icon?: ReactElement;
11
+ /** Always show icon */
7
12
  alwaysShowIcon?: boolean;
8
13
  }
9
14
  export declare const ValueButton: React.ForwardRefExoticComponent<IValueButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ValueButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAOxD,UAAU,iBAAiB;IAEzB,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,6FAqCvB,CAAC"}
1
+ {"version":3,"file":"ValueButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAOxD,UAAU,iBAAiB;IACzB,uBAAuB;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,6FAqCvB,CAAC"}
@@ -1,12 +1,37 @@
1
1
  import React from "react";
2
2
  export declare type PropsOf<C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<unknown>> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>;
3
3
  declare type AsProp<C extends React.ElementType> = {
4
+ /**
5
+ * An override of the default HTML tag.
6
+ * Can also be another React component.
7
+ */
4
8
  as?: C;
5
9
  };
10
+ /**
11
+ * Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
12
+ * (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
13
+ * set of props.
14
+ */
6
15
  export declare type ExtendableProps<ExtendedProps = Record<string, unknown>, OverrideProps = Record<string, unknown>> = OverrideProps & Omit<ExtendedProps, keyof OverrideProps>;
16
+ /**
17
+ * Allows for inheriting the props from the specified element type so that
18
+ * props like children, className & style work, as well as element-specific
19
+ * attributes like aria roles. The component (`C`) must be passed in.
20
+ */
7
21
  export declare type InheritableElementProps<C extends React.ElementType, Props = Record<string, unknown>> = ExtendableProps<PropsOf<C>, Props>;
22
+ /**
23
+ * A more sophisticated version of `InheritableElementProps` where
24
+ * the passed in `as` prop will determine which props can be included
25
+ */
8
26
  export declare type PolymorphicComponentProps<C extends React.ElementType, Props = Record<string, unknown>> = InheritableElementProps<C, Props & AsProp<C>>;
27
+ /**
28
+ * Utility type to extract the `ref` prop from a polymorphic component
29
+ */
9
30
  export declare type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
31
+ /**
32
+ * A wrapper of `PolymorphicComponentProps` that also includes the `ref`
33
+ * prop for the polymorphic component
34
+ */
10
35
  export declare type PolymorphicComponentPropsWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProps<C, Props> & {
11
36
  ref?: PolymorphicRef<C>;
12
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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ACH,oBAAY,gCAAgC,CAC1C,CAAC,SAAS,KAAK,CAAC,WAAW,EAC3B,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC7B,yBAAyB,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC"}
package/dist/index.js CHANGED
@@ -774,6 +774,7 @@
774
774
  childNode = _useState4[0],
775
775
  setChildNode = _useState4[1];
776
776
  var elementRef = React.useRef(null);
777
+ var isOpenAtLeastOnce = React.useRef(false);
777
778
  React.useEffect(function () {
778
779
  setOpen(defaultOpen);
779
780
  }, [defaultOpen]);
@@ -802,6 +803,15 @@
802
803
  ref: handleRef,
803
804
  onClick: handleOpen
804
805
  };
806
+ React.useEffect(function () {
807
+ if (open) {
808
+ isOpenAtLeastOnce.current = true;
809
+ } else if (!open && isOpenAtLeastOnce.current) {
810
+ var _elementRef$current;
811
+ (_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 ? void 0 : _elementRef$current.focus();
812
+ isOpenAtLeastOnce.current = false;
813
+ }
814
+ }, [open]);
805
815
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, target && /*#__PURE__*/React__default["default"].cloneElement(target, targetProps), open ? /*#__PURE__*/React__default["default"].createElement(Window, {
806
816
  onClose: handleClose,
807
817
  disableScrollLock: !handleScroll,
@@ -9563,6 +9573,7 @@
9563
9573
  var _excluded$k = ["children", "active", "className"];
9564
9574
  /**
9565
9575
  * Pressed wrapper for button component
9576
+ * @deprecated
9566
9577
  */
9567
9578
  var Pressed = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9568
9579
  var children = _ref.children,