@procore/core-react 11.4.1-rc.0 → 11.5.0-rc.0

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 (83) hide show
  1. package/dist/Checkbox/Checkbox.js +1 -1
  2. package/dist/Checkbox/Checkbox.js.map +1 -1
  3. package/dist/SegmentedController/SegmentedController.d.ts +3 -4
  4. package/dist/SegmentedController/SegmentedController.js +51 -17
  5. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  6. package/dist/SegmentedController/SegmentedController.styles.d.ts +4 -6
  7. package/dist/SegmentedController/SegmentedController.styles.js +17 -14
  8. package/dist/SegmentedController/SegmentedController.styles.js.map +1 -1
  9. package/dist/SegmentedController/SegmentedController.types.d.ts +7 -3
  10. package/dist/SegmentedController/SegmentedController.types.js.map +1 -1
  11. package/dist/_typedoc/Avatar/Avatar.types.json +17 -17
  12. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
  13. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  14. package/dist/_typedoc/Banner/Banner.types.json +12 -12
  15. package/dist/_typedoc/Box/Box.types.json +68 -68
  16. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +7 -7
  17. package/dist/_typedoc/Button/Button.types.json +11 -11
  18. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  19. package/dist/_typedoc/Card/Card.types.json +6 -6
  20. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  21. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  22. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  23. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  24. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  25. package/dist/_typedoc/Dropdown/Dropdown.types.json +35 -35
  26. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  27. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  28. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  29. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  30. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  31. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  32. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  33. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  34. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  35. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  36. package/dist/_typedoc/Form/Form.types.json +690 -690
  37. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  38. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +51 -51
  39. package/dist/_typedoc/Input/Input.types.json +2 -2
  40. package/dist/_typedoc/Link/Link.types.json +4 -4
  41. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  42. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  43. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +69 -69
  44. package/dist/_typedoc/Modal/Modal.types.json +27 -27
  45. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +30 -30
  46. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  47. package/dist/_typedoc/NumberInput/NumberInput.types.json +36 -36
  48. package/dist/_typedoc/PageLayout/PageLayout.types.json +7 -7
  49. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  50. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  51. package/dist/_typedoc/Pill/Pill.types.json +1 -1
  52. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  53. package/dist/_typedoc/Popover/Popover.types.json +10 -10
  54. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +5 -5
  55. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  56. package/dist/_typedoc/Required/Required.types.json +5 -5
  57. package/dist/_typedoc/Search/Search.types.json +18 -18
  58. package/dist/_typedoc/Section/Section.types.json +14 -14
  59. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +22 -22
  60. package/dist/_typedoc/Select/Select.types.json +31 -31
  61. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  62. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  63. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  64. package/dist/_typedoc/Table/Table.types.json +94 -94
  65. package/dist/_typedoc/Tabs/Tabs.types.json +15 -15
  66. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +10 -10
  67. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  68. package/dist/_typedoc/TextEditor/TextEditor.types.json +7 -7
  69. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
  70. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +25 -25
  71. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  72. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  73. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  74. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  75. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  76. package/dist/_typedoc/Token/Token.types.json +4 -4
  77. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +8 -8
  78. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  79. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  80. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  81. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  82. package/dist/_typedoc/_utils/types.json +3 -3
  83. package/package.json +5 -3
@@ -39,7 +39,7 @@ import { StyledCheckboxContainer, StyledCheckboxInput, StyledCheckboxLabel, Styl
39
39
  export var Checkbox = React.forwardRef(function Checkbox(_a, ref) {
40
40
  var checked = _a.checked, children = _a.children, className = _a.className, _b = _a.error, error = _b === void 0 ? false : _b, _c = _a.indeterminate, indeterminate = _c === void 0 ? false : _c, style = _a.style, props = __rest(_a, ["checked", "children", "className", "error", "indeterminate", "style"]);
41
41
  return (React.createElement(StyledCheckboxContainer, { className: className, style: style },
42
- React.createElement(StyledCheckboxInput, __assign({}, props, { type: "checkbox", checked: checked, "$error": error, "$indeterminate": indeterminate, ref: ref })),
42
+ React.createElement(StyledCheckboxInput, __assign({}, props, { "aria-checked": indeterminate ? 'mixed' : checked, type: "checkbox", checked: checked, "$error": error, "$indeterminate": indeterminate, ref: ref })),
43
43
  React.createElement(StyledCheckboxLabel, null, children)));
44
44
  });
45
45
  Checkbox.displayName = 'Checkbox';
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,mBAAmB,CAAA;AAG1B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,IAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CACtC,SAAS,QAAQ,CACf,EAQC,EACD,GAAG;IARD,IAAA,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EACrB,KAAK,WAAA,EACF,KAAK,cAPV,uEAQC,CADS;IAIV,OAAO,CACL,oBAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK;QACzD,oBAAC,mBAAmB,eACd,KAAK,IACT,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,OAAO,YACR,KAAK,oBACG,aAAa,EAC7B,GAAG,EAAE,GAAG,IACR;QACF,oBAAC,mBAAmB,QAAE,QAAQ,CAAuB,CAC7B,CAC3B,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,C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,EACF,KAAK,cAPV,uEAQC,CADS;IAIV,OAAO,CACL,oBAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK;QACzD,oBAAC,mBAAmB,eACd,KAAK,oBACK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAC/C,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,OAAO,YACR,KAAK,oBACG,aAAa,EAC7B,GAAG,EAAE,GAAG,IACR;QACF,oBAAC,mBAAmB,QAAE,QAAQ,CAAuB,CAC7B,CAC3B,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC;;;;;GAKG;AAEH,MAAM,CAAC,IAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAC1C,SAAS,YAAY,CACnB,EASC,EACD,GAAG;IATD,IAAA,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EACrB,KAAK,WAAA,EACF,KAAK,cARV,mFASC,CADS;IAIV,OAAO,CACL,oBAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK;QACzD,oBAAC,uBAAuB,eAClB,KAAK,gBACC,OAAO,eACN,QAAQ,YACX,KAAK,oBACG,aAAa,EAC7B,GAAG,EAAE,GAAG,IACR;QACF,oBAAC,uBAAuB,QAAE,QAAQ,CAA2B,CACrC,CAC3B,CAAA;AACH,CAAC,CACF,CAAA;AAED,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { ButtonAttributes, DivAttributes } from '../_utils/types';
3
2
  import { SegmentedControllerProps, SegmentedControllerSegmentProps, SegmentedControllerTooltipProps } from './SegmentedController.types';
4
- export declare const Segment: React.ForwardRefExoticComponent<ButtonAttributes & SegmentedControllerSegmentProps & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const Segment: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & SegmentedControllerSegmentProps & React.RefAttributes<HTMLInputElement>>;
5
4
  /**
6
5
  * @deprecated
7
6
  *
@@ -84,8 +83,8 @@ export declare const State: (props: any) => JSX.Element;
84
83
  @see [Design Guidelines](https://design.procore.com/segmented-controller)
85
84
 
86
85
  */
87
- export declare const SegmentedController: React.ForwardRefExoticComponent<Omit<DivAttributes, "onChange"> & SegmentedControllerProps & React.RefAttributes<HTMLDivElement>> & {
88
- Segment: React.ForwardRefExoticComponent<ButtonAttributes & SegmentedControllerSegmentProps & React.RefAttributes<HTMLButtonElement>>;
86
+ export declare const SegmentedController: React.ForwardRefExoticComponent<SegmentedControllerProps & React.RefAttributes<HTMLDivElement>> & {
87
+ Segment: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & SegmentedControllerSegmentProps & React.RefAttributes<HTMLInputElement>>;
89
88
  State: (props: any) => JSX.Element;
90
89
  Tooltip: React.ForwardRefExoticComponent<SegmentedControllerTooltipProps & React.RefAttributes<HTMLElement>>;
91
90
  };
@@ -20,33 +20,67 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { useFocusRing } from '@react-aria/focus';
24
+ import { useRadio, useRadioGroup } from '@react-aria/radio';
25
+ import { mergeProps, useId } from '@react-aria/utils';
26
+ import { VisuallyHidden } from '@react-aria/visually-hidden';
23
27
  import React from 'react';
28
+ import { useRadioGroupState } from 'react-stately';
24
29
  import { Tooltip as TooltipBase } from '../Tooltip/Tooltip';
25
30
  import { addSubcomponents } from '../_utils/addSubcomponents';
26
31
  import { StyledContainer, StyledLabel, StyledSegment, StyledSegmentDisabledInteractiveWrapper, } from './SegmentedController.styles';
27
- function noop() { }
28
32
  function isSegment(node) {
29
- return typeof node === 'object' && node.type === Segment;
33
+ return (React.isValidElement(node) &&
34
+ node.type === Segment);
30
35
  }
36
+ var RadioButtonContext = React.createContext(null);
31
37
  var SegmentedController_ = React.forwardRef(function SegmentedController(_a, ref) {
32
- var children = _a.children, className = _a.className, _b = _a.block, block = _b === void 0 ? false : _b, active = _a.active, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.onChange, onChange = _d === void 0 ? noop : _d, props = __rest(_a, ["children", "className", "block", "active", "disabled", "onChange"]);
33
- return (React.createElement(StyledContainer, __assign({ block: block, ref: ref }, props), React.Children.toArray(children)
34
- .filter(function (child) { return isSegment(child); })
35
- .map(function (child, i) {
36
- return React.cloneElement(child, {
37
- active: active === i || child.props.active,
38
- disabled: disabled || child.props.disabled,
39
- onClick: child.props.onClick
40
- ? child.props.onClick
41
- : function () { return onChange === null || onChange === void 0 ? void 0 : onChange(i); },
42
- });
43
- })));
38
+ var children = _a.children, _b = _a.block, block = _b === void 0 ? false : _b, disabled = _a.disabled, onChange = _a.onChange, props = __rest(_a, ["children", "block", "disabled", "onChange"]);
39
+ var name = useId();
40
+ var radioGroupState = useRadioGroupState({
41
+ name: name,
42
+ isDisabled: disabled,
43
+ onChange: function (rawValue) {
44
+ var num = Number(rawValue);
45
+ var value = !isNaN(num) ? num : rawValue;
46
+ onChange === null || onChange === void 0 ? void 0 : onChange(value);
47
+ },
48
+ });
49
+ var radioGroupProps = useRadioGroup({ orientation: 'horizontal' }, radioGroupState).radioGroupProps;
50
+ return (React.createElement(StyledContainer, __assign({ ref: ref, block: block }, radioGroupProps, props),
51
+ React.createElement(RadioButtonContext.Provider, { value: radioGroupState }, React.Children.toArray(children)
52
+ .filter(function (child) { return isSegment(child); })
53
+ .map(function (child, index) {
54
+ return React.cloneElement(child, {
55
+ internalIndex: index,
56
+ });
57
+ }))));
44
58
  });
45
59
  export var Segment = React.forwardRef(function Segment(_a, ref) {
46
- var _b = _a.active, active = _b === void 0 ? false : _b, children = _a.children, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.placement, placement = _d === void 0 ? 'top' : _d, tooltip = _a.tooltip, props = __rest(_a, ["active", "children", "disabled", "placement", "tooltip"]);
60
+ var active = _a.active, children = _a.children, _b = _a.placement, placement = _b === void 0 ? 'top' : _b, tooltip = _a.tooltip, disabled = _a.disabled, value = _a.value, internalIndex = _a.internalIndex, props = __rest(_a, ["active", "children", "placement", "tooltip", "disabled", "value", "internalIndex"]);
61
+ var adjustedValue = String(value !== null && value !== void 0 ? value : internalIndex);
62
+ var state = React.useContext(RadioButtonContext);
63
+ var adjustedState = React.useMemo(function () {
64
+ var _a;
65
+ return (_a = state) !== null && _a !== void 0 ? _a : {};
66
+ }, [state]);
67
+ var innerRef = React.useRef(null);
68
+ var actualRef = ref !== null && ref !== void 0 ? ref : innerRef;
69
+ var _c = useRadio({
70
+ isDisabled: disabled !== null && disabled !== void 0 ? disabled : adjustedState.isDisabled,
71
+ value: adjustedValue,
72
+ }, adjustedState, actualRef), inputProps = _c.inputProps, isSelected = _c.isSelected, isDisabled = _c.isDisabled;
73
+ var _d = useFocusRing(), focusProps = _d.focusProps, isFocusVisible = _d.isFocusVisible;
74
+ React.useEffect(function () {
75
+ if (active) {
76
+ adjustedState.setSelectedValue(adjustedValue);
77
+ }
78
+ }, [active, adjustedState, adjustedValue]);
47
79
  return (React.createElement(Tooltip, { overlay: tooltip, placement: placement },
48
- React.createElement(StyledSegmentDisabledInteractiveWrapper, { "$active": active, "$disabled": disabled },
49
- React.createElement(StyledSegment, __assign({}, props, { ref: ref, "aria-selected": active, active: active, disabled: disabled, type: "button" }),
80
+ React.createElement(StyledSegmentDisabledInteractiveWrapper, null,
81
+ React.createElement(StyledSegment, { "$focused": isFocusVisible, "$disabled": isDisabled, "$active": isSelected },
82
+ React.createElement(VisuallyHidden, null,
83
+ React.createElement("input", __assign({}, mergeProps(props, inputProps, focusProps), { ref: actualRef }))),
50
84
  React.createElement(StyledLabel, null, children)))));
51
85
  });
52
86
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedController.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EACL,eAAe,EACf,WAAW,EACX,aAAa,EACb,uCAAuC,GACxC,MAAM,8BAA8B,CAAA;AAOrC,SAAS,IAAI,KAAI,CAAC;AAElB,SAAS,SAAS,CAAC,IAAS;IAC1B,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,CAAA;AAC1D,CAAC;AAED,IAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAG3C,SAAS,mBAAmB,CAC5B,EAQC,EACD,GAAG;IARD,IAAA,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,MAAM,YAAA,EACN,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EACZ,KAAK,cAPV,oEAQC,CADS;IAIV,OAAO,CACL,oBAAC,eAAe,aAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAM,KAAK,GAC/C,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;SAC9B,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,SAAS,CAAC,KAAK,CAAC,EAAhB,CAAgB,CAAC;SACnC,GAAG,CAAC,UAAC,KAAU,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;YAC/B,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,KAA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cAA7B,uBAA+B,CAAF;IAC9C,OAAO,OAAO,CAAC,CAAC,CAAC,CACf,oBAAC,WAAW,eAAK,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAC,OAAO,KAChE,QAAQ,CACG,CACf,CAAC,CAAC,CAAC,CACF,0CAAG,QAAQ,CAAI,CAChB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAM,SAAS,GAAG,UAAC,MAAW,IAAK,OAAA,UAAC,SAAc,IAAK,OAAA,UAAC,KAAU;IAC1D,IAAA,KAA+B,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAA/C,aAAa,QAAA,EAAE,WAAW,QAAqB,CAAA;IAEtD,OAAO,oBAAC,SAAS,qCAAU,KAAK,KAAE,aAAa,eAAA,EAAE,WAAW,aAAA,KAAM,CAAA;AACpE,CAAC,EAJsD,CAItD,EAJkC,CAIlC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,IAAM,KAAK,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC,UAAC,EAA2B;IAAzB,IAAA,QAAQ,cAAA,EAAK,KAAK,cAApB,YAAsB,CAAF;IACtD,OAAA,QAAQ,CAAC,KAAK,CAAC,CAAA;CAAA,CAChB,CAAA;AAED,oBAAoB,CAAC,WAAW,GAAG,qBAAqB,CAAA;AAExD,OAAO,CAAC,WAAW,GAAG,6BAA6B,CAAA;AAEnD,OAAO,CAAC,WAAW,GAAG,6BAA6B,CAAA;AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAG,gBAAgB,CACjD;IACE,OAAO,SAAA;IACP,KAAK,OAAA;IACL,OAAO,SAAA;CACR,EACD,oBAAoB,CACrB,CAAA"}
1
+ {"version":3,"file":"SegmentedController.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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StyledContainer: import("styled-components").StyledComponent<"div", any, {
2
2
  block?: boolean | undefined;
3
3
  }, never>;
4
- export declare const StyledSegment: import("styled-components").StyledComponent<"button", any, {
5
- active: boolean;
6
- disabled: boolean;
7
- }, never>;
8
- export declare const StyledSegmentDisabledInteractiveWrapper: import("styled-components").StyledComponent<"div", any, {
9
- $active: boolean;
4
+ export declare const StyledSegment: import("styled-components").StyledComponent<"label", any, {
10
5
  $disabled: boolean;
6
+ $focused: boolean;
7
+ $active: boolean;
11
8
  }, never>;
9
+ export declare const StyledSegmentDisabledInteractiveWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
12
10
  export declare const StyledLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -14,21 +14,24 @@ export var StyledContainer = styled.div(templateObject_1 || (templateObject_1 =
14
14
  var block = _a.block;
15
15
  return (block ? '100%' : null);
16
16
  });
17
- export var StyledSegment = styled.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n border-radius: 0;\n border: 1px solid ", ";\n cursor: pointer;\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n justify-content: center;\n min-width: 0;\n outline: 0;\n padding: 0 ", "px;\n position: relative;\n background-color: ", ";\n color: ", ";\n\n ", "\n"], ["\n align-items: center;\n border-radius: 0;\n border: 1px solid ", ";\n cursor: pointer;\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n justify-content: center;\n min-width: 0;\n outline: 0;\n padding: 0 ", "px;\n position: relative;\n background-color: ", ";\n color: ", ";\n\n ", "\n"])), colors.gray85, spacing.md, colors.white, colors.gray45, function (_a) {
18
- var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
19
- if (disabled) {
20
- return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n }\n "], ["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n }\n "])), active ? colors.gray85 : colors.white, colors.gray85, active ? colors.white : colors.gray85);
17
+ export var StyledSegment = styled.label(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n border-radius: 0;\n border: 1px solid ", ";\n cursor: pointer;\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n justify-content: center;\n min-width: 0;\n outline: 0;\n padding: 0 ", "px;\n position: relative;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n ", "\n\n ", ";\n"], ["\n align-items: center;\n border-radius: 0;\n border: 1px solid ", ";\n cursor: pointer;\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n justify-content: center;\n min-width: 0;\n outline: 0;\n padding: 0 ", "px;\n position: relative;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n\n ", "\n\n ", ";\n"])), colors.gray85, spacing.md, colors.white, colors.gray45, colors.gray94, colors.gray85, colors.gray45, function (_a) {
18
+ var _b = _a.$focused, $focused = _b === void 0 ? false : _b;
19
+ if ($focused) {
20
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-color: ", ";\n box-shadow: 0 0 0 1px ", ";\n z-index: 1;\n "], ["\n border-color: ", ";\n box-shadow: 0 0 0 1px ", ";\n z-index: 1;\n "])), colors.blue40, colors.blue40);
21
21
  }
22
- });
23
- export var StyledSegmentDisabledInteractiveWrapper = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n\n // For all segments which are not the first child, hide the left border.\n // This is the basis of all the styling so we can get that single pixel line\n // between each segment\n &:not(:first-child) ", " {\n border-left-width: 0;\n }\n\n &:first-child ", " {\n border-bottom-left-radius: ", "px;\n border-top-left-radius: ", "px;\n\n &:focus,\n &.focus {\n margin-left: 0;\n }\n }\n\n &:last-child ", " {\n border-bottom-right-radius: ", "px;\n border-top-right-radius: ", "px;\n }\n\n & ", " {\n &:focus,\n &.focus {\n border-color: ", ";\n\n // If we hover or focus on a segment we want to show its left border\n border-left-width: 1px !important;\n\n // We also need to use a negative margin to account for the additional width\n // from turning on the left border so we don't get shifting. However,\n // we don't want to shift the first item because its border is always on\n margin-left: -1px;\n\n &:not(:disabled) {\n // Custom focus style, not using the mixin because we need to have control\n // over borders and outlines\n border-color: ", ";\n box-shadow: 0 0 0 1px ", ";\n z-index: 1;\n }\n }\n }\n\n ", "\n"], ["\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n\n // For all segments which are not the first child, hide the left border.\n // This is the basis of all the styling so we can get that single pixel line\n // between each segment\n &:not(:first-child) ", " {\n border-left-width: 0;\n }\n\n &:first-child ", " {\n border-bottom-left-radius: ", "px;\n border-top-left-radius: ", "px;\n\n &:focus,\n &.focus {\n margin-left: 0;\n }\n }\n\n &:last-child ", " {\n border-bottom-right-radius: ", "px;\n border-top-right-radius: ", "px;\n }\n\n & ", " {\n &:focus,\n &.focus {\n border-color: ", ";\n\n // If we hover or focus on a segment we want to show its left border\n border-left-width: 1px !important;\n\n // We also need to use a negative margin to account for the additional width\n // from turning on the left border so we don't get shifting. However,\n // we don't want to shift the first item because its border is always on\n margin-left: -1px;\n\n &:not(:disabled) {\n // Custom focus style, not using the mixin because we need to have control\n // over borders and outlines\n border-color: ", ";\n box-shadow: 0 0 0 1px ", ";\n z-index: 1;\n }\n }\n }\n\n ", "\n"])), StyledSegment, StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, colors.gray85, colors.blue40, colors.blue40, function (_a) {
24
- var _b = _a.$active, $active = _b === void 0 ? false : _b, _c = _a.$disabled, $disabled = _c === void 0 ? false : _c;
25
- if (!$disabled) {
26
- if ($active) {
27
- return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n & ", " {\n &,\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n }\n & + * ", " {\n // If a segment is active, the sibling to the right must have its left\n // border turned on to match the spec with a gray line on either\n // side of an active segment.\n //\n // !important is needed to override :not(:first-child) specificity\n border-left-width: 1px !important;\n margin-left: -1px !important;\n }\n "], ["\n & ", " {\n &,\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n }\n & + * ", " {\n // If a segment is active, the sibling to the right must have its left\n // border turned on to match the spec with a gray line on either\n // side of an active segment.\n //\n // !important is needed to override :not(:first-child) specificity\n border-left-width: 1px !important;\n margin-left: -1px !important;\n }\n "])), StyledSegment, colors.blue50, colors.blue50, colors.white, StyledSegment);
28
- }
29
- return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & ", " {\n &:hover,\n &.hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n }\n "], ["\n & ", " {\n &:hover,\n &.hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n }\n "])), StyledSegment, colors.gray94, colors.gray85, colors.gray45);
22
+ }, function (_a) {
23
+ var _b = _a.$disabled, $disabled = _b === void 0 ? false : _b, _c = _a.$active, $active = _c === void 0 ? false : _c;
24
+ if ($disabled && $active) {
25
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n }\n "], ["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n }\n "])), colors.gray85, colors.gray85, colors.white);
26
+ }
27
+ else if ($disabled) {
28
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n "], ["\n &,\n &:hover,\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n "])), colors.white, colors.gray85, colors.gray85);
29
+ }
30
+ else if ($active) {
31
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &,\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "], ["\n &,\n &:hover {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), colors.blue50, colors.blue50, colors.white);
30
32
  }
31
33
  });
32
- export var StyledLabel = styled.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n ", ";\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), getTypographyIntent('body'));
33
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
34
+ export var StyledSegmentDisabledInteractiveWrapper = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n margin-right: -1px;\n\n &:first-child ", " {\n border-bottom-left-radius: ", "px;\n border-top-left-radius: ", "px;\n }\n\n &:last-child ", " {\n border-bottom-right-radius: ", "px;\n border-top-right-radius: ", "px;\n }\n"], ["\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n height: 100%;\n margin-right: -1px;\n\n &:first-child ", " {\n border-bottom-left-radius: ", "px;\n border-top-left-radius: ", "px;\n }\n\n &:last-child ", " {\n border-bottom-right-radius: ", "px;\n border-top-right-radius: ", "px;\n }\n"])), StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md);
35
+ export var StyledLabel = styled.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n ", ";\n\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), getTypographyIntent('body'));
36
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
34
37
  //# sourceMappingURL=SegmentedController.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedController.styles.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,IAAM,eAAe,GAAG,MAAM,CAAC,GAAG,8KAAqB,uCAEjD,EAA+C,2DAGjD,EAAsC,KAChD,KAJY,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC;AAAhC,CAAgC,EAGjD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAAvB,CAAuB,CAChD,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,uXAGxC,qEAGoB,EAAa,wJAQpB,EAAU,kDAEH,EAAY,cACvB,EAAa,SAEpB,EAaD,IACF,KA3BqB,MAAM,CAAC,MAAM,EAQpB,OAAO,CAAC,EAAE,EAEH,MAAM,CAAC,KAAK,EACvB,MAAM,CAAC,MAAM,EAEpB,UAAC,EAAoC;QAAlC,cAAc,EAAd,MAAM,mBAAG,KAAK,KAAA,EAAE,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA;IACnC,IAAI,QAAQ,EAAE;QACZ,OAAO,GAAG,uQAAA,oFAIc,EAAqC,6BACzC,EAAa,sBACpB,EAAqC,u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ACF;AACH,CAAC,CACF,CAAA;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,MAAM,CAAC,IAAI,8KAAA,MAClC,EAA2B,mGAM9B,KANG,mBAAmB,CAAC,MAAM,CAAC,CAM9B,CAAA"}
1
+ {"version":3,"file":"SegmentedController.styles.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,IAAM,eAAe,GAAG,MAAM,CAAC,GAAG,8KAAqB,uCAEjD,EAA+C,2DAGjD,EAAsC,KAChD,KAJY,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC;AAAhC,CAAgC,EAGjD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAAvB,CAAuB,CAChD,CAAA;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,KAAK,8dAIvC,qEAGoB,EAAa,wJAQpB,EAAU,kDAEH,EAAY,cACvB,EAAa,0CAGA,EAAa,uBACjB,EAAa,gBACpB,EAAa,cAGtB,EAQD,QAEC,EAgCD,KACF,KA9DqB,MAAM,CAAC,MAAM,EAQpB,OAAO,CAAC,EAAE,EAEH,MAAM,CAAC,KAAK,EACvB,MAAM,CAAC,MAAM,EAGA,MAAM,CAAC,MAAM,EACjB,MAAM,CAAC,MAAM,EACpB,MA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,WAAW,GAAG,MAAM,CAAC,IAAI,8KAAA,MAClC,EAA2B,mGAM9B,KANG,mBAAmB,CAAC,MAAM,CAAC,CAM9B,CAAA"}
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { Placement, Props } from '../_utils/types';
1
+ import React from 'react';
2
+ import { DivAttributes, Placement, Props } from '../_utils/types';
3
3
  /**
4
4
  * @deprecated Please use the `active` and `disabled` props
5
5
  */
@@ -8,7 +8,7 @@ export declare const segmentedControllerSegmentVariant: {
8
8
  readonly disabled: "disabled";
9
9
  readonly none: "";
10
10
  };
11
- export interface SegmentedControllerProps extends Props {
11
+ export interface SegmentedControllerProps extends Props, Omit<DivAttributes, 'onChange'> {
12
12
  /**
13
13
  * The segment is active
14
14
  * @since 10.19.0
@@ -24,6 +24,10 @@ export interface SegmentedControllerProps extends Props {
24
24
  * @since 10.19.0
25
25
  */
26
26
  disabled?: boolean;
27
+ /**
28
+ * A callback to be called when the radio group value changes
29
+ * @since 10.19.0
30
+ */
27
31
  onChange?: (active: number) => void;
28
32
  /**
29
33
  * @deprecated Please use the `block` prop
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedController.types.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.types.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,IAAM,iCAAiC,GAAG;IAC/C,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,EAAE;CACA,CAAA"}
1
+ {"version":3,"file":"SegmentedController.types.js","sourceRoot":"","sources":["../../src/SegmentedController/SegmentedController.types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAC,IAAM,iCAAiC,GAAG;IAC/C,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,EAAE;CACA,CAAA"}
@@ -10,7 +10,7 @@
10
10
  "description": "Instead of using the default children, you can pass in your own.",
11
11
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
12
12
  "sourceFile": "packages/core-react/src/_utils/types.ts",
13
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L45"
13
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L45"
14
14
  },
15
15
  {
16
16
  "name": "className",
@@ -20,7 +20,7 @@
20
20
  "description": "Additional classNames",
21
21
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
22
22
  "sourceFile": "packages/core-react/src/_utils/types.ts",
23
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L50"
23
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L50"
24
24
  },
25
25
  {
26
26
  "name": "icon",
@@ -30,7 +30,7 @@
30
30
  "description": "The icon to display",
31
31
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The icon to display</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
32
32
  "sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
33
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/Avatar/Avatar.types.ts#L49"
33
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/Avatar/Avatar.types.ts#L49"
34
34
  },
35
35
  {
36
36
  "name": "style",
@@ -40,7 +40,7 @@
40
40
  "description": "Additional CSS styles",
41
41
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
42
42
  "sourceFile": "packages/core-react/src/_utils/types.ts",
43
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L55"
43
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L55"
44
44
  }
45
45
  ],
46
46
  "description": ""
@@ -56,7 +56,7 @@
56
56
  "description": "Instead of using the default children, you can pass in your own.",
57
57
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
58
58
  "sourceFile": "packages/core-react/src/_utils/types.ts",
59
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L45"
59
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L45"
60
60
  },
61
61
  {
62
62
  "name": "className",
@@ -66,7 +66,7 @@
66
66
  "description": "Additional classNames",
67
67
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
68
68
  "sourceFile": "packages/core-react/src/_utils/types.ts",
69
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L50"
69
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L50"
70
70
  },
71
71
  {
72
72
  "name": "style",
@@ -76,7 +76,7 @@
76
76
  "description": "Additional CSS styles",
77
77
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
78
78
  "sourceFile": "packages/core-react/src/_utils/types.ts",
79
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L55"
79
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L55"
80
80
  }
81
81
  ],
82
82
  "description": ""
@@ -92,7 +92,7 @@
92
92
  "description": "Instead of using the default children, you can pass in your own.",
93
93
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
94
94
  "sourceFile": "packages/core-react/src/_utils/types.ts",
95
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L45"
95
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L45"
96
96
  },
97
97
  {
98
98
  "name": "className",
@@ -102,7 +102,7 @@
102
102
  "description": "Additional classNames",
103
103
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
104
104
  "sourceFile": "packages/core-react/src/_utils/types.ts",
105
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L50"
105
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L50"
106
106
  },
107
107
  {
108
108
  "name": "imageUrl",
@@ -112,7 +112,7 @@
112
112
  "description": "The Avatar rich media url",
113
113
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The Avatar rich media url</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
114
114
  "sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
115
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/Avatar/Avatar.types.ts#L57"
115
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/Avatar/Avatar.types.ts#L57"
116
116
  },
117
117
  {
118
118
  "name": "style",
@@ -122,7 +122,7 @@
122
122
  "description": "Additional CSS styles",
123
123
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
124
124
  "sourceFile": "packages/core-react/src/_utils/types.ts",
125
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L55"
125
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L55"
126
126
  }
127
127
  ],
128
128
  "description": ""
@@ -138,7 +138,7 @@
138
138
  "description": "Instead of using the default children, you can pass in your own.",
139
139
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
140
140
  "sourceFile": "packages/core-react/src/_utils/types.ts",
141
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L45"
141
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L45"
142
142
  },
143
143
  {
144
144
  "name": "className",
@@ -148,7 +148,7 @@
148
148
  "description": "Additional classNames",
149
149
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
150
150
  "sourceFile": "packages/core-react/src/_utils/types.ts",
151
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L50"
151
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L50"
152
152
  },
153
153
  {
154
154
  "name": "clickable",
@@ -159,7 +159,7 @@
159
159
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets the Avatar&#39;s clickable state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd><dt>defaultvalue</dt><dd><p>false</p>\n</dd></dl></div>",
160
160
  "defaultValue": "false\n",
161
161
  "sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
162
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/Avatar/Avatar.types.ts#L12"
162
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/Avatar/Avatar.types.ts#L12"
163
163
  },
164
164
  {
165
165
  "name": "disabled",
@@ -170,7 +170,7 @@
170
170
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets the Avatar&#39;s disabled state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd></dl></div>",
171
171
  "defaultValue": "false\n",
172
172
  "sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
173
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/Avatar/Avatar.types.ts#L18"
173
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/Avatar/Avatar.types.ts#L18"
174
174
  },
175
175
  {
176
176
  "name": "size",
@@ -183,7 +183,7 @@
183
183
  "deprecated": "\n\nSize \"xl\" has been deprecated and will be removed in a future version.\nPlease use \"lg\" instead of \"xl\".\n\n**Before**\n\n`<Avatar size=\"xl\" />`\n\n**After**\n\n`<Avatar size=\"lg\" />`\n",
184
184
  "deprecatedSince": "10.20.0",
185
185
  "sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
186
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/Avatar/Avatar.types.ts#L40"
186
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/Avatar/Avatar.types.ts#L40"
187
187
  },
188
188
  {
189
189
  "name": "style",
@@ -193,7 +193,7 @@
193
193
  "description": "Additional CSS styles",
194
194
  "descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
195
195
  "sourceFile": "packages/core-react/src/_utils/types.ts",
196
- "sourceUrl": "https://github.com/procore/core/blob/28156eb78/packages/core-react/src/_utils/types.ts#L55"
196
+ "sourceUrl": "https://github.com/procore/core/blob/0a13b7d4d/packages/core-react/src/_utils/types.ts#L55"
197
197
  }
198
198
  ],
199
199
  "description": ""