@algolia/satellite 1.0.0-beta.117 → 1.0.0-beta.121

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 (128) hide show
  1. package/README.md +2 -2
  2. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
  3. package/cjs/AutoComplete/AutoComplete.d.ts +6 -2
  4. package/cjs/AutoComplete/AutoComplete.js +10 -5
  5. package/cjs/AutoComplete/types.d.ts +5 -0
  6. package/cjs/AutoComplete/utils.js +1 -1
  7. package/cjs/Avatars/ApplicationAvatar.d.ts +1 -1
  8. package/cjs/Avatars/utils.js +1 -1
  9. package/cjs/Button/styles.js +1 -1
  10. package/cjs/Card/Card.tailwind.js +2 -1
  11. package/cjs/Card/components/CardHeader.d.ts +2 -2
  12. package/cjs/Checkbox/Checkbox.d.ts +1 -1
  13. package/cjs/ClickAwayContainer/ClickAwayContainer.js +1 -1
  14. package/cjs/DatePicker/DatePicker/datePickerReducer.js +1 -1
  15. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +1 -1
  16. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +1 -1
  17. package/cjs/DatePicker/utils.d.ts +1 -1
  18. package/cjs/Dropdown/Dropdown.js +1 -1
  19. package/cjs/Dropdown/DropdownContext.js +1 -1
  20. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -2
  21. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +3 -3
  22. package/cjs/Dropdown/useDropdownItemProps.js +2 -2
  23. package/cjs/Field/useFieldState.js +1 -1
  24. package/cjs/Link/Link.d.ts +2 -2
  25. package/cjs/Modal/Modal.js +10 -7
  26. package/cjs/Modal/Modal.tailwind.js +0 -5
  27. package/cjs/Modal/components/ModalSection.d.ts +10 -0
  28. package/cjs/Modal/components/ModalSection.js +32 -0
  29. package/cjs/Modal/index.d.ts +2 -0
  30. package/cjs/Modal/index.js +28 -0
  31. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
  32. package/cjs/Pagination/CompactPagination/CompactPagination.js +78 -0
  33. package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
  34. package/cjs/Pagination/CompactPagination/index.js +32 -0
  35. package/cjs/Pagination/DotPagination/DotPagination.d.ts +9 -0
  36. package/cjs/Pagination/DotPagination/DotPagination.js +40 -0
  37. package/cjs/Pagination/DotPagination/index.d.ts +2 -0
  38. package/cjs/Pagination/DotPagination/index.js +32 -0
  39. package/cjs/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +0 -0
  40. package/cjs/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
  41. package/cjs/Pagination/Pagination/index.d.ts +2 -0
  42. package/cjs/Pagination/Pagination/index.js +32 -0
  43. package/cjs/Pagination/index.d.ts +2 -0
  44. package/cjs/Pagination/index.js +28 -0
  45. package/cjs/RadioGroup/RadioButton.d.ts +1 -1
  46. package/cjs/RadioGroup/RadioGroup.js +1 -1
  47. package/cjs/RangeSlider/RangeSlider.d.ts +1 -1
  48. package/cjs/Satellite/SatelliteContext.js +1 -1
  49. package/cjs/Sidebar/SidebarContext.js +1 -1
  50. package/cjs/Switch/utils.js +1 -1
  51. package/cjs/Tabs/LinkTabs.js +1 -1
  52. package/cjs/Tag/Tag.d.ts +1 -1
  53. package/cjs/Toggle/Toggle.d.ts +1 -1
  54. package/cjs/Tooltip/OverflowTooltipWrapper.js +1 -1
  55. package/cjs/Tooltip/Tooltip.d.ts +1 -1
  56. package/cjs/index.js +8 -8
  57. package/cjs/styles/brandColors.d.ts +6 -6
  58. package/cjs/styles/colors.d.ts +9 -9
  59. package/cjs/styles/helpers/icons.d.ts +12 -0
  60. package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +1 -1
  61. package/cjs/styles/tailwind.config.d.ts +24 -33
  62. package/cjs/styles/zIndexes.d.ts +7 -7
  63. package/cjs/utils/genericChangeHandler.js +1 -1
  64. package/cjs/utils/hashCode.js +1 -1
  65. package/cjs/utils/index.js +6 -6
  66. package/cjs/utils/isCssPropertySupported.d.ts +1 -1
  67. package/cjs/utils/isNil.js +1 -1
  68. package/cjs/utils/matchLocation.d.ts +1 -1
  69. package/cjs/utils/parseUrl.js +1 -1
  70. package/cjs/utils/pluralize.js +1 -1
  71. package/cjs/utils/range.js +1 -1
  72. package/cjs/utils/uniqBy.js +1 -1
  73. package/cjs/utils/uniqueId.js +1 -1
  74. package/cjs/utils/useLinkProps.d.ts +1 -1
  75. package/cjs/utils/useLinkProps.js +1 -1
  76. package/cjs/utils/useTriggerInputChange.d.ts +2 -1
  77. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +1 -1
  78. package/esm/AutoComplete/AutoComplete.d.ts +6 -2
  79. package/esm/AutoComplete/AutoComplete.js +10 -5
  80. package/esm/AutoComplete/types.d.ts +5 -0
  81. package/esm/Avatars/ApplicationAvatar.d.ts +1 -1
  82. package/esm/Card/Card.tailwind.js +2 -1
  83. package/esm/Card/components/CardHeader.d.ts +2 -2
  84. package/esm/Checkbox/Checkbox.d.ts +1 -1
  85. package/esm/DatePicker/utils.d.ts +1 -1
  86. package/esm/Dropdown/Dropdown.js +1 -1
  87. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -2
  88. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +2 -2
  89. package/esm/Dropdown/useDropdownItemProps.js +1 -1
  90. package/esm/Link/Link.d.ts +2 -2
  91. package/esm/Modal/Modal.js +10 -7
  92. package/esm/Modal/Modal.tailwind.js +0 -5
  93. package/esm/Modal/components/ModalSection.d.ts +10 -0
  94. package/esm/Modal/components/ModalSection.js +17 -0
  95. package/esm/Modal/index.d.ts +2 -0
  96. package/esm/Modal/index.js +2 -0
  97. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +21 -0
  98. package/esm/Pagination/CompactPagination/CompactPagination.js +56 -0
  99. package/esm/Pagination/CompactPagination/index.d.ts +2 -0
  100. package/esm/Pagination/CompactPagination/index.js +2 -0
  101. package/esm/Pagination/DotPagination/DotPagination.d.ts +9 -0
  102. package/esm/Pagination/DotPagination/DotPagination.js +26 -0
  103. package/esm/Pagination/DotPagination/index.d.ts +2 -0
  104. package/esm/Pagination/DotPagination/index.js +2 -0
  105. package/esm/Pagination/{Pagination.d.ts → Pagination/Pagination.d.ts} +0 -0
  106. package/esm/Pagination/{Pagination.js → Pagination/Pagination.js} +3 -3
  107. package/esm/Pagination/Pagination/index.d.ts +2 -0
  108. package/esm/Pagination/Pagination/index.js +2 -0
  109. package/esm/Pagination/index.d.ts +2 -0
  110. package/esm/Pagination/index.js +2 -0
  111. package/esm/RadioGroup/RadioButton.d.ts +1 -1
  112. package/esm/RangeSlider/RangeSlider.d.ts +1 -1
  113. package/esm/Tag/Tag.d.ts +1 -1
  114. package/esm/Toggle/Toggle.d.ts +1 -1
  115. package/esm/Tooltip/Tooltip.d.ts +1 -1
  116. package/esm/styles/brandColors.d.ts +6 -6
  117. package/esm/styles/colors.d.ts +9 -9
  118. package/esm/styles/helpers/icons.d.ts +12 -0
  119. package/esm/styles/helpers/makeTailwindPrefixer.d.ts +1 -1
  120. package/esm/styles/tailwind.config.d.ts +24 -33
  121. package/esm/styles/zIndexes.d.ts +7 -7
  122. package/esm/utils/isCssPropertySupported.d.ts +1 -1
  123. package/esm/utils/matchLocation.d.ts +1 -1
  124. package/esm/utils/useLinkProps.d.ts +1 -1
  125. package/esm/utils/useTriggerInputChange.d.ts +2 -1
  126. package/package.json +4 -4
  127. package/satellite.css +428 -161
  128. package/satellite.min.css +2 -2
@@ -1,28 +1,20 @@
1
1
  export const prefix: "stl-";
2
2
  export namespace purge {
3
- export const mode: string;
4
- export const layers: string[];
5
- export const enabled: boolean;
6
- export const content: string[];
7
- export namespace options {
8
- export const defaultExtractor: (content: string) => string[];
3
+ const mode: string;
4
+ const layers: string[];
5
+ const enabled: boolean;
6
+ const content: string[];
7
+ namespace options {
8
+ const defaultExtractor: (content: string) => string[];
9
9
  }
10
10
  }
11
- declare const zIndexes: {
12
- sidebar: number;
13
- fullPageLayout: number;
14
- modalOverlay: number;
15
- modal: number;
16
- dropdown: number;
17
- notification: number;
18
- tooltip: number;
19
- };
11
+ import zIndexes = require("./zIndexes");
20
12
  export declare namespace theme {
21
- export namespace fontFamily {
22
- export const sans: string[];
23
- export const mono: string[];
13
+ namespace fontFamily {
14
+ const sans: string[];
15
+ const mono: string[];
24
16
  }
25
- export const fontSize: {
17
+ const fontSize: {
26
18
  sm: string;
27
19
  mobile: string;
28
20
  base: string;
@@ -32,7 +24,7 @@ export declare namespace theme {
32
24
  "2xl": string;
33
25
  "3xl": string;
34
26
  };
35
- export const lineHeight: {
27
+ const lineHeight: {
36
28
  inherit: string;
37
29
  sm: string;
38
30
  base: string;
@@ -43,18 +35,18 @@ export declare namespace theme {
43
35
  "3xl": string;
44
36
  none: string;
45
37
  };
46
- export namespace borderRadius {
47
- export const none: string;
48
- export const DEFAULT: string;
49
- export const full: string;
38
+ namespace borderRadius {
39
+ const none: string;
40
+ const DEFAULT: string;
41
+ const full: string;
50
42
  }
51
- export const borderWidth: {
43
+ const borderWidth: {
52
44
  DEFAULT: string;
53
45
  0: string;
54
46
  2: string;
55
47
  3: string;
56
48
  };
57
- export function boxShadow(theme: any): {
49
+ function boxShadow(theme: any): {
58
50
  none: string;
59
51
  z100: string;
60
52
  z200: string;
@@ -62,7 +54,7 @@ export declare namespace theme {
62
54
  z400: string;
63
55
  z500: string;
64
56
  };
65
- export const opacity: {
57
+ const opacity: {
66
58
  0: string;
67
59
  10: string;
68
60
  20: string;
@@ -75,7 +67,7 @@ export declare namespace theme {
75
67
  90: string;
76
68
  100: string;
77
69
  };
78
- export const colors: {
70
+ const colors: {
79
71
  accent: {
80
72
  900: string;
81
73
  800: string;
@@ -177,7 +169,7 @@ export declare namespace theme {
177
169
  100: string;
178
170
  };
179
171
  };
180
- export namespace extend {
172
+ namespace extend {
181
173
  export const spacing: {
182
174
  "2px": string;
183
175
  128: string;
@@ -189,11 +181,11 @@ export declare namespace theme {
189
181
  export function minHeight(theme: any): any;
190
182
  export { zIndexes as zIndex };
191
183
  export namespace cursor {
192
- export const grab: string;
193
- export const help: string;
184
+ const grab: string;
185
+ const help: string;
194
186
  }
195
187
  }
196
- export const typography: {
188
+ const typography: {
197
189
  desktop: import("../tailwind-types").TailwindFunction;
198
190
  mobile: import("../tailwind-types").TailwindFunction;
199
191
  };
@@ -204,4 +196,3 @@ export declare namespace variants {
204
196
  export const visibility: string[];
205
197
  }
206
198
  export declare const plugins: import("../tailwind-types").TailwindPlugin[];
207
- export {};
@@ -1,7 +1,7 @@
1
- export declare const sidebar: number;
2
- export declare const fullPageLayout: number;
3
- export declare const modalOverlay: number;
4
- export declare const modal: number;
5
- export declare const dropdown: number;
6
- export declare const notification: number;
7
- export declare const tooltip: number;
1
+ export const sidebar: number;
2
+ export const fullPageLayout: number;
3
+ export const modalOverlay: number;
4
+ export const modal: number;
5
+ export const dropdown: number;
6
+ export const notification: number;
7
+ export const tooltip: number;
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.genericChangeHandler = genericChangeHandler;
9
8
  exports["default"] = void 0;
9
+ exports.genericChangeHandler = genericChangeHandler;
10
10
 
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.hashCode = void 0;
6
+ exports.hashCode = exports["default"] = void 0;
7
7
 
8
8
  // https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript?rq=1
9
9
  var hashCode = function hashCode(value) {
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "genericChangeHandler", {
9
9
  return _genericChangeHandler.genericChangeHandler;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "isNil", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _isNil.isNil;
16
+ }
17
+ });
12
18
  Object.defineProperty(exports, "pluralize", {
13
19
  enumerable: true,
14
20
  get: function get() {
@@ -33,12 +39,6 @@ Object.defineProperty(exports, "uniqueId", {
33
39
  return _uniqueId.uniqueId;
34
40
  }
35
41
  });
36
- Object.defineProperty(exports, "isNil", {
37
- enumerable: true,
38
- get: function get() {
39
- return _isNil.isNil;
40
- }
41
- });
42
42
 
43
43
  var _genericChangeHandler = require("./genericChangeHandler");
44
44
 
@@ -1,2 +1,2 @@
1
- declare const isCssPropertySupported: <P extends number | "left" | "right" | "bottom" | "top" | "font" | "clipPath" | "filter" | "marker" | "mask" | "resize" | "color" | "clip" | "content" | "flex" | "grid" | "fill" | "stroke" | "zoom" | "clear" | "border" | "padding" | "height" | "width" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "enableBackground" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "imageRendering" | "kerning" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "translate" | "position" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "counterIncrement" | "counterReset" | "cssFloat" | "cssText" | "emptyCells" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFeatureSettings" | "fontKerning" | "fontSynthesis" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "imeMode" | "inlineSize" | "justifyContent" | "justifyItems" | "justifySelf" | "layoutGrid" | "layoutGridChar" | "layoutGridLine" | "layoutGridMode" | "layoutGridType" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskComposite" | "maskImage" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "msContentZoomChaining" | "msContentZoomLimit" | "msContentZoomLimitMax" | "msContentZoomLimitMin" | "msContentZoomSnap" | "msContentZoomSnapPoints" | "msContentZoomSnapType" | "msContentZooming" | "msFlowFrom" | "msFlowInto" | "msFontFeatureSettings" | "msGridColumn" | "msGridColumnAlign" | "msGridColumnSpan" | "msGridColumns" | "msGridRow" | "msGridRowAlign" | "msGridRowSpan" | "msGridRows" | "msHighContrastAdjust" | "msHyphenateLimitChars" | "msHyphenateLimitLines" | "msHyphenateLimitZone" | "msHyphens" | "msImeAlign" | "msOverflowStyle" | "msScrollChaining" | "msScrollLimit" | "msScrollLimitXMax" | "msScrollLimitXMin" | "msScrollLimitYMax" | "msScrollLimitYMin" | "msScrollRails" | "msScrollSnapPointsX" | "msScrollSnapPointsY" | "msScrollSnapType" | "msScrollSnapX" | "msScrollSnapY" | "msScrollTranslation" | "msTextCombineHorizontal" | "msTextSizeAdjust" | "msTouchAction" | "msTouchSelect" | "msUserSelect" | "msWrapFlow" | "msWrapMargin" | "msWrapThrough" | "objectFit" | "objectPosition" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "penAction" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "quotes" | "rowGap" | "rubyAlign" | "rubyOverhang" | "rubyPosition" | "scrollBehavior" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textKashida" | "textKashidaSpace" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderImage" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxDirection" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitColumnBreakAfter" | "webkitColumnBreakBefore" | "webkitColumnBreakInside" | "webkitColumnCount" | "webkitColumnGap" | "webkitColumnRule" | "webkitColumnRuleColor" | "webkitColumnRuleStyle" | "webkitColumnRuleWidth" | "webkitColumnSpan" | "webkitColumnWidth" | "webkitColumns" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTapHighlightColor" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserModify" | "webkitUserSelect" | "webkitWritingMode" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
1
+ declare const isCssPropertySupported: <P extends number | "all" | "left" | "right" | "bottom" | "top" | "font" | "clipPath" | "filter" | "marker" | "mask" | "resize" | "fill" | "color" | "clip" | "content" | "flex" | "grid" | "stroke" | "zoom" | "clear" | "border" | "padding" | "translate" | "position" | "height" | "width" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "glyphOrientationVertical" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "counterIncrement" | "counterReset" | "cssFloat" | "cssText" | "emptyCells" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFeatureSettings" | "fontKerning" | "fontSynthesis" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskComposite" | "maskImage" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "objectFit" | "objectPosition" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "quotes" | "rowGap" | "rubyAlign" | "rubyPosition" | "scrollBehavior" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTapHighlightColor" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
2
2
  export default isCssPropertySupported;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.isNil = void 0;
6
+ exports.isNil = exports["default"] = void 0;
7
7
 
8
8
  /**
9
9
  * Checks if `value` is `null` or `undefined`.
@@ -1,3 +1,3 @@
1
1
  export declare type LocationSubset = Pick<Location, "pathname">;
2
- declare const matchLocation: (href: string, location: Pick<Location, "pathname">) => boolean;
2
+ declare const matchLocation: (href: string, location: LocationSubset) => boolean;
3
3
  export default matchLocation;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.parseURL = void 0;
6
+ exports.parseURL = exports["default"] = void 0;
7
7
 
8
8
  var parseURL = function parseURL(url) {
9
9
  var parser = document.createElement("a"); // Let the browser do the work
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.pluralize = pluralize;
7
6
  exports["default"] = void 0;
7
+ exports.pluralize = pluralize;
8
8
  var DEFAULT_OPTIONS = {
9
9
  numberFormatter: function numberFormatter(number) {
10
10
  return String(number);
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.range = range;
7
6
  exports["default"] = void 0;
7
+ exports.range = range;
8
8
 
9
9
  function range(start, end) {
10
10
  if (start >= end) throw "Start should be greater than end";
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.uniqBy = uniqBy;
7
6
  exports["default"] = void 0;
7
+ exports.uniqBy = uniqBy;
8
8
 
9
9
  function uniqBy(arr, identity) {
10
10
  if (!arr) return arr;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.uniqueId = uniqueId;
7
6
  exports["default"] = void 0;
7
+ exports.uniqueId = uniqueId;
8
8
  var counters = {};
9
9
 
10
10
  function uniqueId() {
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  export declare type UseLinkProps = Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target" | "rel">;
3
- export declare const useLinkProps: (props: Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "href" | "onClick" | "rel">) => Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "href" | "onClick" | "rel">;
3
+ export declare const useLinkProps: (props: UseLinkProps) => UseLinkProps;
4
4
  export default useLinkProps;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = exports.useLinkProps = void 0;
8
+ exports.useLinkProps = exports["default"] = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ declare type InputValue = JSX.IntrinsicElements["input"]["value"];
2
3
  /**
3
4
  * Trigger a native input change event.
4
5
  * See https://stackoverflow.com/questions/23892547/what-is-the-best-way-to-trigger-onchange-event-in-react-js
5
6
  */
6
- declare const useTriggerInputChange: (inputRef: import("react").MutableRefObject<HTMLInputElement | null>) => (value: string | number | string[] | undefined) => void;
7
+ declare const useTriggerInputChange: (inputRef: React.MutableRefObject<HTMLInputElement | null>) => (value: InputValue) => void;
7
8
  export default useTriggerInputChange;
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from "react";
2
2
  export declare type AnnouncementBadgeSizes = "default" | "small";
3
3
  export interface AnnouncementBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
4
  size?: AnnouncementBadgeSizes;
5
- text?: "new" | "beta" | "internal";
5
+ text?: "new" | "beta" | "internal" | "pilot";
6
6
  variant?: "accent" | "red";
7
7
  children?: never;
8
8
  }
@@ -13,6 +13,10 @@ interface State {
13
13
  *
14
14
  * Use this component when the user needs to search through a long list of results.
15
15
  *
16
+ * ## Menu Size Variations
17
+ * - **Medium (default)**: the standard dropdown menu height for most use cases
18
+ * - **Large**: when numerous results should be displayed in the dropdown to ease selection
19
+ *
16
20
  * ## Best practices
17
21
  *
18
22
  * - Provide an empty state if there is no result
@@ -31,7 +35,7 @@ export declare class AutoComplete<T extends Option> extends Component<AutoComple
31
35
  options: never[];
32
36
  separatorKeyCodes: never[];
33
37
  separatorKeys: never[];
34
- optionItemComponent: React.ComponentType<import("./types").OptionItemProps>;
38
+ optionItemComponent: import("./types").OptionItemComponentType;
35
39
  noWrap: boolean;
36
40
  };
37
41
  state: State;
@@ -46,7 +50,7 @@ export declare class AutoComplete<T extends Option> extends Component<AutoComple
46
50
  updateInputWidth: () => void;
47
51
  handleKeyDown: (state: ControllerStateAndHelpers<Option>) => (evt: React.KeyboardEvent<any>) => void;
48
52
  handleChange: (option: Option) => void;
49
- handleShowAllResults: (evt: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
53
+ handleShowAllResults: (evt: React.MouseEvent<HTMLButtonElement>) => void;
50
54
  removeValue: (removedOption: Option) => void;
51
55
  renderInput: (results: Option[], autocompleteHelpers: ControllerStateAndHelpers<Option>, fieldState: FieldState) => JSX.Element;
52
56
  renderMenu: (results: Option[], autocompleteHelpers: ControllerStateAndHelpers<Option>) => JSX.Element;
@@ -10,7 +10,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
10
10
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
11
11
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
12
12
 
13
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
13
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
14
14
 
15
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
16
16
 
@@ -113,6 +113,10 @@ var defaultEmptyState = /*#__PURE__*/React.createElement(AutoCompleteEmptyState,
113
113
  *
114
114
  * Use this component when the user needs to search through a long list of results.
115
115
  *
116
+ * ## Menu Size Variations
117
+ * - **Medium (default)**: the standard dropdown menu height for most use cases
118
+ * - **Large**: when numerous results should be displayed in the dropdown to ease selection
119
+ *
116
120
  * ## Best practices
117
121
  *
118
122
  * - Provide an empty state if there is no result
@@ -420,6 +424,7 @@ export var AutoComplete = /*#__PURE__*/function (_Component) {
420
424
  isOpen = autocompleteHelpers.isOpen;
421
425
  var _this$props4 = _this.props,
422
426
  menuClassName = _this$props4.menuClassName,
427
+ menuSize = _this$props4.menuSize,
423
428
  _this$props4$emptySta = _this$props4.emptyState,
424
429
  emptyState = _this$props4$emptySta === void 0 ? AutoComplete.defaultProps.emptyState : _this$props4$emptySta,
425
430
  menuFooter = _this$props4.menuFooter,
@@ -468,26 +473,26 @@ export var AutoComplete = /*#__PURE__*/function (_Component) {
468
473
  }, results.length === 0 ? /*#__PURE__*/React.createElement("div", _extends({}, getMenuProps(), {
469
474
  className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["min-h-10"])))
470
475
  }), emptyState) : /*#__PURE__*/React.createElement(ScrollIndicator, {
471
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["max-h-64"])))
476
+ className: menuSize === "large" ? stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["max-h-96"]))) : stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["max-h-64"])))
472
477
  }, /*#__PURE__*/React.createElement("ul", getMenuProps(), results.slice(0, showAllResults ? Number.MAX_SAFE_INTEGER : maxResults).map(function (result, index) {
473
478
  return /*#__PURE__*/React.createElement("li", _extends({
474
479
  key: result.value
475
480
  }, getItemProps({
476
481
  item: result,
477
482
  disabled: result.disabled,
478
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n autocomplete-result\n flex items-center min-h-10 px-4 cursor-pointer\n ", "\n ", "\n "])), index === highlightedIndex && "bg-grey-100", result.disabled && "cursor-not-allowed")
483
+ className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n autocomplete-result\n flex items-center min-h-10 px-4 cursor-pointer\n ", "\n ", "\n "])), index === highlightedIndex && "bg-grey-100", result.disabled && "cursor-not-allowed")
479
484
  })), /*#__PURE__*/React.createElement(OptionItem, _extends({}, optionItemProps, {
480
485
  highlighted: index === highlightedIndex,
481
486
  option: result
482
487
  })));
483
488
  }), extraResults > 0 && !showAllResults && /*#__PURE__*/React.createElement("li", {
484
- className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["p-2 text-right"])))
489
+ className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["p-2 text-right"])))
485
490
  }, /*#__PURE__*/React.createElement(Button, {
486
491
  variant: "subtle",
487
492
  size: "small",
488
493
  onMouseDown: _this.handleShowAllResults
489
494
  }, "Show ", pluralize(extraResults, "result"), " more")))), menuFooter && /*#__PURE__*/React.createElement("footer", {
490
- className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["flex items-center justify-center min-h-12 p-4 bg-grey-100 border-t border-grey-200 text-grey-600"])))
495
+ className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["flex items-center justify-center min-h-12 p-4 bg-grey-100 border-t border-grey-200 text-grey-600"])))
491
496
  }, menuFooter)));
492
497
  });
493
498
  });
@@ -31,6 +31,11 @@ export interface AutoCompleteBaseProps {
31
31
  /** Keep the input on a single line */
32
32
  noWrap?: boolean;
33
33
  endItem?: React.ReactNode;
34
+ /**
35
+ * `medium` will display about 5 results in the dropdown; use `large` variant to display more
36
+ * @default "medium"
37
+ */
38
+ menuSize?: "medium" | "large";
34
39
  }
35
40
  export interface AutoCompleteSingleProps extends AutoCompleteBaseProps {
36
41
  multiple?: false;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ApplicationAvatarSize, MinimalApplication } from "./types";
3
- interface ApplicationAvatarProps {
3
+ export interface ApplicationAvatarProps {
4
4
  /** A minimal application object containing `applicationID` and `name`. */
5
5
  application: MinimalApplication;
6
6
  /** @default "medium" */
@@ -29,7 +29,8 @@ var cardPlugin = function cardPlugin(_ref) {
29
29
  boxShadow: theme("boxShadow.z400")
30
30
  },
31
31
  ".card-z500": {
32
- boxShadow: theme("boxShadow.z500")
32
+ boxShadow: theme("boxShadow.z500"),
33
+ borderRadius: 8
33
34
  }
34
35
  });
35
36
  };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  export declare type CardHeaderProps = JSX.IntrinsicElements["div"];
3
- export declare const CardHeader: ({ className, ...props }: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => JSX.Element;
3
+ export declare const CardHeader: ({ className, ...props }: CardHeaderProps) => JSX.Element;
4
4
  export default CardHeader;
@@ -20,5 +20,5 @@ export declare type CheckboxProps = CheckboxInputProps & CheckboxCustomProps;
20
20
  * - A checkbox control has two primary states: selected and unselected. If required, there's an additional visual state for indeterminate (usually for a parent checkbox, when some children checkboxes are selected, but not all of them)
21
21
  * - Checkboxes require the use of a button to apply the settings once they are selected
22
22
  */
23
- export declare const Checkbox: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLInputElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "children" | "className" | "id" | "lang" | "role" | "tabIndex" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & Pick<React.InputHTMLAttributes<HTMLInputElement>, "required" | "disabled" | "onChange" | "defaultChecked" | "autoFocus" | "checked"> & CheckboxCustomProps & React.RefAttributes<HTMLInputElement>>;
23
+ export declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<React.InputHTMLAttributes<HTMLInputElement>, "required" | "disabled" | "defaultChecked" | "onChange" | "autoFocus" | "checked"> & CheckboxCustomProps & React.RefAttributes<HTMLInputElement>>;
24
24
  export default Checkbox;
@@ -1 +1 @@
1
- export declare const formatDate: (date: number | Date) => string;
1
+ export declare const formatDate: (date: Date | number) => string;
@@ -108,7 +108,7 @@ export var Dropdown = function Dropdown(_ref) {
108
108
  }), /*#__PURE__*/React.createElement(Card, {
109
109
  fullBleed: true,
110
110
  elevation: "300",
111
- className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex flex-col py-1"])))
111
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex flex-col py-1 text-grey-900"])))
112
112
  }, children, footer ? /*#__PURE__*/React.createElement(DropdownFooterItem, null, footer) : null))), document.body)));
113
113
  };
114
114
  Dropdown.ButtonItem = DropdownButtonItem;
@@ -1,6 +1,4 @@
1
1
  import React, { FC } from "react";
2
- export declare type DropdownCollapsibleValue = undefined | string | string[];
3
- export declare type DropdownCollapsiblePropsOnChange = (name: string, value: DropdownCollapsibleValue) => void;
4
2
  export interface DropdownCollapsibleItemProps {
5
3
  title: React.ReactNode;
6
4
  name?: string;
@@ -7,7 +7,7 @@ import React, { useState } from "react";
7
7
  import { ChevronDown, ChevronRight } from "react-feather";
8
8
  import { uniqueId } from "../../../utils";
9
9
  import stl from "../../../styles/helpers/satellitePrefixer";
10
- import { useDropdownCollapsibleItemsGroup } from ".";
10
+ import { useDropdownCollapsibleItemsGroup } from "./DropdownCollapsibleItemsGroupContext";
11
11
  export var DropdownCollapsibleItem = function DropdownCollapsibleItem(_ref) {
12
12
  var title = _ref.title,
13
13
  name = _ref.name,
@@ -45,7 +45,7 @@ export var DropdownCollapsibleItem = function DropdownCollapsibleItem(_ref) {
45
45
  className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["text-grey-500"]))),
46
46
  size: "1.25em"
47
47
  })), isExpanded && /*#__PURE__*/React.createElement("div", {
48
- className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-grey-50 border-l-2 border-grey-300"])))
48
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-grey-50 border-l-2 border-grey-300 typo-subdued"])))
49
49
  }, children));
50
50
  };
51
51
  export default DropdownCollapsibleItem;
@@ -9,7 +9,7 @@ export var useDropdownItemProps = function useDropdownItemProps(props) {
9
9
  var _useDropdownContext = useDropdownContext(),
10
10
  showMenu = _useDropdownContext.showMenu;
11
11
 
12
- var className = cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n min-h-10 px-4 text-left\n focus:no-underline hover:no-underline\n ", "\n "])), props.disabled ? "text-grey-300 cursor-not-allowed" : "text-grey-900 hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer"), props.className);
12
+ var className = cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n min-h-10 px-4 text-left\n focus:no-underline hover:no-underline\n ", "\n "])), props.disabled ? "text-grey-300 cursor-not-allowed" : "text-inherit hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer"), props.className);
13
13
  return {
14
14
  className: className,
15
15
  onClick: props.disabled ? function (evt) {
@@ -5,7 +5,7 @@ export declare type LinkProps = {
5
5
  endIcon?: IconComponentType;
6
6
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
7
7
  export declare const Link: React.ForwardRefExoticComponent<{
8
- startIcon?: React.ComponentClass<import("react-feather").IconProps, any> | React.FunctionComponent<import("react-feather").IconProps> | undefined;
9
- endIcon?: React.ComponentClass<import("react-feather").IconProps, any> | React.FunctionComponent<import("react-feather").IconProps> | undefined;
8
+ startIcon?: IconComponentType | undefined;
9
+ endIcon?: IconComponentType | undefined;
10
10
  } & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
11
11
  export default Link;
@@ -108,19 +108,22 @@ export var Modal = function Modal(_ref) {
108
108
  role: "dialog"
109
109
  }, /*#__PURE__*/React.createElement(Card, {
110
110
  ref: dialogRef,
111
- className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["my-6 mx-auto"]))), !fullBleed && stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["p-8"]))), SIZE_CLASSNAMES[size], className),
112
- fullBleed: fullBleed
113
- }, /*#__PURE__*/React.createElement("div", {
114
- className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["modal-header flex"])))
111
+ elevation: "500",
112
+ className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["my-6 mx-auto"]))), SIZE_CLASSNAMES[size], className),
113
+ fullBleed: true
114
+ }, /*#__PURE__*/React.createElement("header", {
115
+ className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n px-8 min-h-14\n flex items-center justify-between space-x-2\n ", "\n ", "\n "])), title ? "border-b border-grey-100" : "justify-end", !title && hideCloseIcon && "hidden")
115
116
  }, title && /*#__PURE__*/React.createElement("h2", {
116
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["truncate mb-8 mr-2 flex-1 display-medium"])))
117
+ className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex-1 display-heading truncate"])))
117
118
  }, title), !hideCloseIcon && /*#__PURE__*/React.createElement(IconButton, {
118
119
  icon: X,
119
120
  title: closeIconText,
120
121
  variant: "subtle",
121
122
  onClick: onDismiss,
122
- className: cx(!title && stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["float-right"]))))
123
- })), children)))), document.body);
123
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["flex-shrink-0 -mr-2"])))
124
+ })), /*#__PURE__*/React.createElement("div", {
125
+ className: fullBleed ? undefined : stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["p-10"])))
126
+ }, children))))), document.body);
124
127
  };
125
128
  Modal.Footer = ModalFooter;
126
129
  export default Modal;
@@ -24,11 +24,6 @@ var modalPlugin = function modalPlugin(_ref) {
24
24
  },
25
25
  ".modal-dialog-large": {
26
26
  maxWidth: 920
27
- },
28
- // Components
29
- ".modal-header > span:first-child": {
30
- /* CSSTransitionGroup is adding an additional span in the header, so this is neccessary */
31
- width: "100%"
32
27
  }
33
28
  }); // Animation
34
29