@algolia/satellite 2.3.0-rc.9 → 2.4.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 (92) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +8 -0
  2. package/dist/cjs/Actions/Accordion/Accordion.js +104 -57
  3. package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +170 -0
  4. package/dist/cjs/Actions/Accordion/Accordion.styles.js +57 -0
  5. package/dist/cjs/Actions/Button/PolymorphicButton.js +5 -5
  6. package/dist/cjs/Actions/Button/PolymorphicIconButton.js +2 -2
  7. package/dist/cjs/Actions/Button/styles.d.ts +1 -0
  8. package/dist/cjs/Actions/Button/styles.js +15 -10
  9. package/dist/cjs/Actions/SegmentedControl/SegmentedControl.js +3 -2
  10. package/dist/cjs/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  11. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +3 -3
  12. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  13. package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  14. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  15. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  16. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  17. package/dist/cjs/Fields/Field/Field.js +3 -3
  18. package/dist/cjs/Fields/Input/Input.js +10 -13
  19. package/dist/cjs/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  20. package/dist/cjs/Fields/Switch/Switch.tailwind.js +9 -9
  21. package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +3 -3
  22. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.d.ts +22 -0
  23. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +35 -0
  24. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  25. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  26. package/dist/cjs/Helpers/MarkdownContent/index.d.ts +1 -0
  27. package/dist/cjs/Helpers/MarkdownContent/index.js +16 -0
  28. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.js +1 -3
  29. package/dist/cjs/Helpers/index.d.ts +1 -0
  30. package/dist/cjs/Helpers/index.js +11 -0
  31. package/dist/cjs/Icons/index.d.ts +1 -1
  32. package/dist/cjs/Icons/index.js +6 -0
  33. package/dist/cjs/Illustrations/index.d.ts +7 -0
  34. package/dist/cjs/Illustrations/index.js +1254 -0
  35. package/dist/cjs/Indicators/EmptyState/EmptyState.js +35 -2
  36. package/dist/cjs/Indicators/EmptyState/types.d.ts +4 -3
  37. package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +23 -7
  38. package/dist/cjs/Overlay/Modal/Modal.js +8 -8
  39. package/dist/cjs/Overlay/Modal/components/ModalFooter.js +2 -7
  40. package/dist/cjs/index.d.ts +1 -0
  41. package/dist/cjs/index.js +12 -0
  42. package/dist/cjs/styles/helpers/prefixTailwindClassName.js +7 -1
  43. package/dist/cjs/styles/tailwind.config.js +1 -1
  44. package/dist/cjs/types.d.ts +7 -0
  45. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  46. package/dist/esm/Actions/Accordion/Accordion.d.ts +8 -0
  47. package/dist/esm/Actions/Accordion/Accordion.js +105 -58
  48. package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +170 -0
  49. package/dist/esm/Actions/Accordion/Accordion.styles.js +50 -0
  50. package/dist/esm/Actions/Button/PolymorphicButton.js +6 -6
  51. package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -2
  52. package/dist/esm/Actions/Button/styles.d.ts +1 -0
  53. package/dist/esm/Actions/Button/styles.js +14 -9
  54. package/dist/esm/Actions/SegmentedControl/SegmentedControl.js +3 -2
  55. package/dist/esm/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  56. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +4 -4
  57. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  58. package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  59. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  60. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  61. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  62. package/dist/esm/Fields/Field/Field.js +3 -3
  63. package/dist/esm/Fields/Input/Input.js +10 -13
  64. package/dist/esm/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  65. package/dist/esm/Fields/Switch/Switch.tailwind.js +9 -9
  66. package/dist/esm/Fields/TextArea/TextArea.tailwind.js +3 -3
  67. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.d.ts +22 -0
  68. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +28 -0
  69. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  70. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  71. package/dist/esm/Helpers/MarkdownContent/index.d.ts +1 -0
  72. package/dist/esm/Helpers/MarkdownContent/index.js +1 -0
  73. package/dist/esm/Helpers/UserContent/UserContent.tailwind.js +1 -3
  74. package/dist/esm/Helpers/index.d.ts +1 -0
  75. package/dist/esm/Helpers/index.js +2 -1
  76. package/dist/esm/Icons/index.d.ts +1 -1
  77. package/dist/esm/Icons/index.js +1 -1
  78. package/dist/esm/Illustrations/index.d.ts +7 -0
  79. package/dist/esm/Illustrations/index.js +1248 -0
  80. package/dist/esm/Indicators/EmptyState/EmptyState.js +35 -2
  81. package/dist/esm/Indicators/EmptyState/types.d.ts +4 -3
  82. package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +23 -7
  83. package/dist/esm/Overlay/Modal/Modal.js +8 -8
  84. package/dist/esm/Overlay/Modal/components/ModalFooter.js +2 -7
  85. package/dist/esm/index.d.ts +1 -0
  86. package/dist/esm/index.js +1 -0
  87. package/dist/esm/styles/helpers/prefixTailwindClassName.js +7 -1
  88. package/dist/esm/styles/tailwind.config.js +1 -1
  89. package/dist/esm/types.d.ts +7 -0
  90. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  91. package/dist/satellite.min.css +1 -1
  92. package/package.json +4 -4
@@ -7,12 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SegmentedControlOption = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
+ var _clsx = _interopRequireDefault(require("clsx"));
10
11
  var _utils = require("./utils");
12
+ var _styles = require("./../Button/styles");
11
13
  var _RadioGroupContext = require("./../../Fields/RadioGroup/RadioGroupContext");
12
14
  var _Overlay = require("./../../Overlay");
13
15
  var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
14
16
  var _jsxRuntime = require("react/jsx-runtime");
15
- var _templateObject, _templateObject2;
17
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
16
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
20
  var SegmentedControlOption = exports.SegmentedControlOption = function SegmentedControlOption(_ref) {
@@ -22,11 +24,12 @@ var SegmentedControlOption = exports.SegmentedControlOption = function Segmented
22
24
  var context = (0, _RadioGroupContext.useRadioGroupContext)();
23
25
  var checked = context.value === value;
24
26
  var inputDisabled = context.disabled || disabled;
27
+ var size = context.size || "medium";
25
28
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", _objectSpread(_objectSpread({
26
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n inline-flex grow shrink justify-center items-center min-w-16 max-w-48 px-4 z-10 text-grey-600\n ", "\n ", "\n "])), inputDisabled ? "cursor-not-allowed opacity-60 rounded bg-grey-100" : "cursor-pointer hover:text-grey-900", !checked && !inputDisabled && "rounded active:bg-accent-200/20")
29
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["inline-flex grow shrink justify-center items-center min-w-16 max-w-48 z-10 text-grey-600"]))), _styles.BUTTON_PADDING_CLASSNAMES[size], inputDisabled ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["cursor-not-allowed opacity-60 rounded bg-grey-100"]))) : (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["cursor-pointer hover:text-grey-900"]))), !checked && !inputDisabled && (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["rounded active:bg-accent-200/20"]))))
27
30
  }, (0, _utils.buildAnimationProps)(context.name, value)), {}, {
28
31
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
29
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["w-0 h-0 opacity-0"]))),
32
+ className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["w-0 h-0 opacity-0"]))),
30
33
  type: "radio",
31
34
  value: value,
32
35
  name: context.name,
@@ -15,7 +15,7 @@ var _Overlay = require("./../../Overlay");
15
15
  var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  var _excluded = ["className", "size", "icon", "children", "label"];
18
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
18
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
21
  var ICON_ONLY_CLASSNAMES = {
@@ -44,11 +44,11 @@ var ToggleButtonBase = exports.ToggleButtonBase = /*#__PURE__*/(0, _react.forwar
44
44
  ref: ref,
45
45
  type: "button",
46
46
  "aria-label": label,
47
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center justify-center gap-1 min-w-min whitespace-nowrap typo-display-body"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["group/toggle-button rounded focusable-visible focus-visible:border-transparent disabled:cursor-not-allowed"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["data-[state=on]:text-accent-600 disabled:!text-grey-300"]))), (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-white data-[state=off]:hover:bg-grey-100 data-[state=on]:bg-accent-100 disabled:!bg-grey-50"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["border border-grey-200 data-[state=on]:border-accent-600 disabled:!border-grey-200"]))), !isIconOnly && (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["px-3"]))), isIconOnly ? ICON_ONLY_CLASSNAMES[size] : _styles.BUTTON_SIZE_CLASSNAMES[size], className)
47
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["inline-flex items-center justify-center gap-1 min-w-min whitespace-nowrap typo-display-body"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["group/toggle-button rounded focusable-visible focus-visible:border-transparent disabled:cursor-not-allowed"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["data-[state=on]:text-accent-600 disabled:!text-grey-300"]))), (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-white data-[state=off]:hover:bg-grey-100 data-[state=on]:bg-accent-100 disabled:!bg-grey-50"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["border border-grey-200 data-[state=on]:border-accent-600 disabled:!border-grey-200"]))), !isIconOnly && _styles.BUTTON_PADDING_CLASSNAMES[size], isIconOnly ? ICON_ONLY_CLASSNAMES[size] : _styles.BUTTON_SIZE_CLASSNAMES[size], className)
48
48
  }, rest), {}, {
49
49
  children: [!!Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
50
50
  "aria-hidden": "true",
51
- className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 h-4 w-4 text-grey-600 group-data-[state=on]/toggle-button:text-inherit group-disabled/toggle-button:text-inherit"])))
51
+ className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 h-4 w-4 text-grey-600 group-data-[state=on]/toggle-button:text-inherit group-disabled/toggle-button:text-inherit"])))
52
52
  }), !!children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
53
53
  children: children
54
54
  })]
@@ -7,8 +7,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
7
7
  content?: import("tailwind-merge").ClassNameValue;
8
8
  item?: import("tailwind-merge").ClassNameValue;
9
9
  trigger?: import("tailwind-merge").ClassNameValue;
10
- iconBg?: import("tailwind-merge").ClassNameValue;
11
10
  titleWrapper?: import("tailwind-merge").ClassNameValue;
11
+ iconBg?: import("tailwind-merge").ClassNameValue;
12
12
  };
13
13
  };
14
14
  } | {
@@ -20,8 +20,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
20
20
  content?: import("tailwind-merge").ClassNameValue;
21
21
  item?: import("tailwind-merge").ClassNameValue;
22
22
  trigger?: import("tailwind-merge").ClassNameValue;
23
- iconBg?: import("tailwind-merge").ClassNameValue;
24
23
  titleWrapper?: import("tailwind-merge").ClassNameValue;
24
+ iconBg?: import("tailwind-merge").ClassNameValue;
25
25
  };
26
26
  };
27
27
  } | {}, {
@@ -48,8 +48,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
48
48
  content?: import("tailwind-merge").ClassNameValue;
49
49
  item?: import("tailwind-merge").ClassNameValue;
50
50
  trigger?: import("tailwind-merge").ClassNameValue;
51
- iconBg?: import("tailwind-merge").ClassNameValue;
52
51
  titleWrapper?: import("tailwind-merge").ClassNameValue;
52
+ iconBg?: import("tailwind-merge").ClassNameValue;
53
53
  };
54
54
  };
55
55
  } | {}, {
@@ -79,8 +79,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
79
79
  content?: import("tailwind-merge").ClassNameValue;
80
80
  item?: import("tailwind-merge").ClassNameValue;
81
81
  trigger?: import("tailwind-merge").ClassNameValue;
82
- iconBg?: import("tailwind-merge").ClassNameValue;
83
82
  titleWrapper?: import("tailwind-merge").ClassNameValue;
83
+ iconBg?: import("tailwind-merge").ClassNameValue;
84
84
  };
85
85
  };
86
86
  } | {}>, unknown, unknown, undefined>>;
@@ -62,7 +62,7 @@ export declare type ChatMessageProps<ActionsExtraData extends Record<string, any
62
62
  *
63
63
  * See the [ChatMessage documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message) for more information.
64
64
  */
65
- export declare const ChatMessage: <ActionsExtraData extends Record<string, any> = Record<string, any>>(props: Omit<HTMLAttributes<HTMLElement>, "children" | "content"> & {
65
+ export declare const ChatMessage: <ActionsExtraData extends Record<string, any> = Record<string, any>>(props: Omit<HTMLAttributes<HTMLElement>, "content" | "children"> & {
66
66
  /**
67
67
  * The content of the message.
68
68
  */
@@ -34,8 +34,8 @@ export declare const chatMessageStyles: import("tailwind-variants").TVReturnType
34
34
  footer: string;
35
35
  }, undefined, {
36
36
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
37
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
38
37
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
38
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
39
39
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
40
40
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
41
41
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -40,8 +40,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
40
40
  content: string;
41
41
  }, undefined, {
42
42
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
43
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
44
43
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
44
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
45
45
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
46
46
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
47
47
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -120,8 +120,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
120
120
  footer: string;
121
121
  }, undefined, {
122
122
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
123
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
124
123
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
124
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
125
125
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
126
126
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
127
127
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -67,8 +67,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
67
67
  skeleton: string;
68
68
  }, undefined, {
69
69
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
70
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
71
70
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
71
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
72
72
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
73
73
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
74
74
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -147,8 +147,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
147
147
  footer: string;
148
148
  }, undefined, {
149
149
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
150
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
151
150
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
151
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
152
152
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
153
153
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
154
154
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -16,7 +16,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/
16
16
  var _utils = require("./../../utils");
17
17
  var _getTextFromReactNode = require("./../../utils/getTextFromReactNode");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
19
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
20
20
  /**
21
21
  * The `Field` component is a helper that wraps inputs to streamline labeling, validation, integration into a form.
22
22
  *
@@ -111,7 +111,7 @@ var Field = exports.Field = function Field(_ref) {
111
111
  children: "*"
112
112
  })]
113
113
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
114
- className: (0, _clsx["default"])(inline && (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["ml-auto mt-1"])))),
114
+ className: (0, _clsx["default"])(inline && (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["ml-auto flex items-center"])))),
115
115
  children: children
116
116
  })]
117
117
  }), state.status === "invalid" && state.errors.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
@@ -130,7 +130,7 @@ var Field = exports.Field = function Field(_ref) {
130
130
  })
131
131
  }) : description ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
132
132
  id: descriptionId,
133
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["display-caption text-grey-600"]))), inline ? (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["mt-1"]))) : (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["mt-2"])))),
133
+ className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["display-caption text-grey-600 mt-1"]))),
134
134
  children: description
135
135
  }) : null]
136
136
  })
@@ -21,7 +21,7 @@ var _useForwardedRef3 = require("./../../utils/useForwardedRef");
21
21
  var _useTriggerInputChange = require("./../../utils/useTriggerInputChange");
22
22
  var _jsxRuntime = require("react/jsx-runtime");
23
23
  var _excluded = ["className", "style", "startIcon", "endItem", "disabled", "readOnly", "clearable", "type", "variant", "locale", "required"];
24
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
24
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
25
25
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
26
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27
27
  var DEFAULT_INPUT_LOCALE = {
@@ -109,7 +109,6 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
109
109
  }
110
110
  }, [inputProps.value, isControlled]);
111
111
  var Icon = startIcon ? startIcon : type === "search" ? SearchIcon : undefined;
112
- var iconSize = variant === "small" ? "1rem" : "1.5rem";
113
112
  var isInvalid = status === "invalid";
114
113
  var StatusIcon = isInvalid ? InvalidIcon : status === "validated" ? ValidatedIcon : _react.Fragment;
115
114
  var clearable = typeof clearableProp === "boolean" ? clearableProp : type === "search";
@@ -123,11 +122,9 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
123
122
  }
124
123
  },
125
124
  children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
126
- className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["ml-4 shrink-0 ", ""])), disabled ? "text-grey-300" : focused ? "text-accent-600" : "text-grey-500"),
127
- width: iconSize,
128
- height: iconSize
125
+ className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["ml-4 shrink-0 size-4 ", ""])), disabled ? "text-grey-300" : focused ? "text-accent-600" : "text-grey-500")
129
126
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({
130
- className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["mx-4 no-search-input-decoration"]))),
127
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["no-search-input-decoration"]))), Icon ? (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["mx-2"]))) : (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["mx-4"])))),
131
128
  ref: inputRefCallback,
132
129
  type: type,
133
130
  "aria-labelledby": labelId,
@@ -156,7 +153,7 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
156
153
  (_inputProps$onBlur = inputProps.onBlur) === null || _inputProps$onBlur === void 0 || _inputProps$onBlur.call(inputProps, evt);
157
154
  }
158
155
  })), clearable && !disabled && !readOnly && !isValueEmpty ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Actions.IconButton, {
159
- className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover:visible"),
156
+ className: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover:visible"),
160
157
  title: locale.clearInput,
161
158
  icon: _Icons.XIcon,
162
159
  variant: "subtle",
@@ -168,15 +165,15 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
168
165
  triggerInputChange("");
169
166
  }
170
167
  }) : null, !!endItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
171
- className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["mr-4"]))),
168
+ className: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["mr-4"]))),
172
169
  children: endItem
173
170
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(StatusIcon, {}), type === "number" && !disabled && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
174
- className: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["input-spinner"]))),
171
+ className: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["input-spinner"]))),
175
172
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
176
173
  tabIndex: -1,
177
174
  type: "button",
178
175
  disabled: readOnly,
179
- className: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
176
+ className: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
180
177
  "aria-label": locale.increment,
181
178
  onClick: function onClick() {
182
179
  var _inputRef$current$val, _inputRef$current2;
@@ -194,13 +191,13 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
194
191
  },
195
192
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.ChevronUpIcon, {
196
193
  size: 12,
197
- className: (0, _clsx["default"])(isInvalid && (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))))
194
+ className: (0, _clsx["default"])(isInvalid && (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))))
198
195
  })
199
196
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
200
197
  tabIndex: -1,
201
198
  type: "button",
202
199
  disabled: readOnly,
203
- className: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
200
+ className: (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
204
201
  "aria-label": locale.decrement,
205
202
  onClick: function onClick() {
206
203
  var _inputRef$current$val2, _inputRef$current3;
@@ -218,7 +215,7 @@ var Input = exports.Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
218
215
  },
219
216
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.ChevronDownIcon, {
220
217
  size: 12,
221
- className: (0, _clsx["default"])(isInvalid && (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))))
218
+ className: (0, _clsx["default"])(isInvalid && (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))))
222
219
  })
223
220
  })]
224
221
  })]
@@ -1,4 +1,5 @@
1
1
  import type { ForwardedRef } from "react";
2
+ import type { ButtonSize } from "../../Actions/Button/types";
2
3
  import type { FieldState } from "../../Fields/Field";
3
4
  export interface RadioGroupContextType {
4
5
  id?: string;
@@ -13,6 +14,7 @@ export interface RadioGroupContextType {
13
14
  descriptionId?: string;
14
15
  state?: FieldState;
15
16
  ref?: ForwardedRef<HTMLInputElement>;
17
+ size?: ButtonSize;
16
18
  }
17
19
  export declare const RadioGroupContext: import("react").Context<RadioGroupContextType | null>;
18
20
  export declare const useRadioGroupContext: () => RadioGroupContextType;
@@ -11,8 +11,8 @@ var switchPlugin = plugin(function (_ref) {
11
11
  ".switch-container": {
12
12
  position: "relative",
13
13
  display: "block",
14
- height: "18px",
15
- width: "32px",
14
+ height: "24px",
15
+ width: "43px",
16
16
  ".switch-handle": {
17
17
  position: "absolute",
18
18
  top: "0px",
@@ -29,13 +29,13 @@ var switchPlugin = plugin(function (_ref) {
29
29
  transform: "translateX(2px)"
30
30
  },
31
31
  "&:hover .switch-handle.switch-checked ~ .switch:after": {
32
- transform: "translateX(12px)"
32
+ transform: "translateX(17px)"
33
33
  },
34
34
  "&:hover .switch-handle.switch-disabled ~ .switch:after": {
35
35
  transform: "translateX(0px)"
36
36
  },
37
37
  "&:hover .switch-handle.switch-checked.switch-disabled ~ .switch:after": {
38
- transform: "translateX(14px)"
38
+ transform: "translateX(19px)"
39
39
  }
40
40
  },
41
41
  ".switch": {
@@ -51,10 +51,10 @@ var switchPlugin = plugin(function (_ref) {
51
51
  transition: transition,
52
52
  "&::after": {
53
53
  position: "absolute",
54
- top: "1px",
55
- left: "1px",
56
- width: "16px",
57
- height: "16px",
54
+ top: "2px",
55
+ left: "2px",
56
+ width: "20px",
57
+ height: "20px",
58
58
  content: '" "',
59
59
  borderRadius: "9999px",
60
60
  background: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.50"), " 100%)"),
@@ -65,7 +65,7 @@ var switchPlugin = plugin(function (_ref) {
65
65
  background: theme("colors.accent.600"),
66
66
  boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.900"), 0.1)),
67
67
  "&:after": {
68
- transform: "translateX(14px)"
68
+ transform: "translateX(19px)"
69
69
  }
70
70
  },
71
71
  ".switch-handle.switch-disabled ~ &": {
@@ -16,9 +16,6 @@ var textAreaPlugin = plugin(function (_ref) {
16
16
  transition: "all 100ms ease-in-out",
17
17
  fontSize: theme("fontSize.base"),
18
18
  lineHeight: theme("lineHeight.base"),
19
- "&::placeholder": {
20
- color: theme("colors.grey.600")
21
- },
22
19
  "&:hover": {
23
20
  borderColor: theme("colors.grey.600")
24
21
  },
@@ -50,6 +47,9 @@ var textAreaPlugin = plugin(function (_ref) {
50
47
  color: theme("colors.grey.900"),
51
48
  background: "transparent",
52
49
  padding: theme("spacing.4"),
50
+ "&::placeholder": {
51
+ color: theme("colors.grey.600")
52
+ },
53
53
  "&:focus": {
54
54
  outline: "none"
55
55
  },
@@ -0,0 +1,22 @@
1
+ import type { FC } from "react";
2
+ import type { Components } from "react-markdown";
3
+ export interface MarkdownContentProps {
4
+ /**
5
+ * Additional classes to apply to the `MarkdownContent`.
6
+ */
7
+ className?: string;
8
+ /**
9
+ * The content of the `MarkdownContent`.
10
+ */
11
+ content?: string;
12
+ /**
13
+ * Custom components to override the default rendering of markdown elements.
14
+ */
15
+ components?: Partial<Components>;
16
+ }
17
+ /**
18
+ * The `MarkdownContent` component is used to style user generated content that comes as Markdown.
19
+ *
20
+ * See the [Markdown Content documentation page](https://satellite.algolia.com/8261d6576/p/784293-markdown-content) for more information.
21
+ */
22
+ export declare const MarkdownContent: FC<MarkdownContentProps>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MarkdownContent = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _clsx = _interopRequireDefault(require("clsx"));
10
+ var _reactMarkdown = _interopRequireDefault(require("react-markdown"));
11
+ var _remarkGfm = _interopRequireDefault(require("remark-gfm"));
12
+ var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ var _templateObject;
15
+ /**
16
+ * The `MarkdownContent` component is used to style user generated content that comes as Markdown.
17
+ *
18
+ * See the [Markdown Content documentation page](https://satellite.algolia.com/8261d6576/p/784293-markdown-content) for more information.
19
+ */
20
+ var MarkdownContent = exports.MarkdownContent = function MarkdownContent(_ref) {
21
+ var className = _ref.className,
22
+ content = _ref.content,
23
+ components = _ref.components;
24
+ if (!content) {
25
+ return null;
26
+ }
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
28
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["markdown-content"]))), className),
29
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactMarkdown["default"], {
30
+ components: components,
31
+ remarkPlugins: [_remarkGfm["default"]],
32
+ children: content
33
+ })
34
+ });
35
+ };
@@ -0,0 +1,5 @@
1
+ declare const _exports: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ };
5
+ export = _exports;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ // @ts-check
8
+ var plugin = require("tailwindcss/plugin");
9
+ var _require = require("../../styles/helpers/icons"),
10
+ toBG = _require.toBG;
11
+ var rgba = require("../../styles/rgba");
12
+ module.exports = plugin(function (_ref) {
13
+ var addComponents = _ref.addComponents,
14
+ theme = _ref.theme;
15
+ /** @type {any} */
16
+ var desktop = theme("stlTypography.desktop", {});
17
+ /** @type {any} */
18
+ var mobile = theme("stlTypography.mobile", {});
19
+ addComponents({
20
+ ".markdown-content": {
21
+ "h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, table": {
22
+ "&:not(:first-child)": {
23
+ marginTop: theme("spacing.3")
24
+ },
25
+ "&:not(:last-child)": {
26
+ marginBottom: theme("spacing.2")
27
+ }
28
+ },
29
+ h1: desktop["display-medium"],
30
+ h2: desktop["display-small"],
31
+ h3: _objectSpread(_objectSpread({}, desktop["display-body"]), {}, {
32
+ fontWeight: theme("fontWeight.semibold")
33
+ }),
34
+ "h4, h5, h6": _objectSpread(_objectSpread({}, desktop["display-body"]), {}, {
35
+ fontWeight: theme("fontWeight.medium")
36
+ }),
37
+ "p, ul, ol, blockquote, table": _objectSpread(_objectSpread({}, mobile["display-body"]), {}, {
38
+ fontSize: theme("fontSize.base")
39
+ }),
40
+ code: {
41
+ display: "inline-block",
42
+ padding: "0 ".concat(theme("spacing.1")),
43
+ backgroundColor: theme("colors.grey.100"),
44
+ color: theme("colors.grey.700"),
45
+ fontFamily: theme("fontFamily.mono"),
46
+ fontSize: theme("fontSize.base")
47
+ },
48
+ ul: {
49
+ paddingLeft: theme("spacing.5"),
50
+ listStyleType: "disc"
51
+ },
52
+ ol: {
53
+ listStyleType: "decimal",
54
+ listStylePosition: "inside"
55
+ },
56
+ a: {
57
+ color: theme("colors.accent.600"),
58
+ "&:hover": {
59
+ textDecoration: "underline"
60
+ },
61
+ '&[target="_blank"], &[href^="http"]': {
62
+ position: "relative",
63
+ display: "inline-flex",
64
+ alignItems: "center",
65
+ whiteSpace: "nowrap",
66
+ "&:after": {
67
+ content: "''",
68
+ background: toBG("ExternalLink", {
69
+ stroke: theme("colors.accent.600"),
70
+ viewBox: "0 0 24 24",
71
+ width: "100%",
72
+ height: "100%"
73
+ }),
74
+ backgroundRepeat: "no-repeat",
75
+ width: "1em",
76
+ height: "1em",
77
+ marginLeft: theme("spacing.1")
78
+ }
79
+ }
80
+ },
81
+ blockquote: {
82
+ paddingLeft: theme("spacing.4"),
83
+ borderLeft: "2px solid ".concat(theme("colors.grey.200")),
84
+ color: theme("colors.grey.600")
85
+ },
86
+ pre: _objectSpread(_objectSpread({}, mobile["display-code"]), {}, {
87
+ overflow: "auto",
88
+ maxWidth: "100%",
89
+ maxHeight: theme("spacing.64"),
90
+ margin: "".concat(theme("spacing.2"), " 0"),
91
+ padding: "".concat(theme("spacing.2"), " ").concat(theme("spacing.4")),
92
+ borderRadius: theme("borderRadius.DEFAULT"),
93
+ backgroundColor: theme("colors.grey.100"),
94
+ color: theme("colors.grey.700"),
95
+ code: {
96
+ display: "inline",
97
+ backgroundColor: "transparent",
98
+ color: "inherit"
99
+ }
100
+ }),
101
+ img: {
102
+ display: "block",
103
+ maxWidth: "100%",
104
+ height: "auto",
105
+ margin: "auto"
106
+ },
107
+ hr: {
108
+ borderWidth: "0 0 1px 0",
109
+ borderStyle: "solid",
110
+ borderColor: theme("colors.grey.200"),
111
+ marginTop: theme("spacing.6"),
112
+ marginBottom: theme("spacing.6")
113
+ },
114
+ "b, strong, th": {
115
+ fontWeight: "600"
116
+ },
117
+ table: {
118
+ width: "100%",
119
+ borderCollapse: "collapse",
120
+ textAlign: "left",
121
+ "th, td": {
122
+ padding: "8px 12px",
123
+ fontSize: theme("fontSize.base")
124
+ },
125
+ th: {
126
+ borderBottom: "1px solid ".concat(theme("colors.grey.200")),
127
+ fontWeight: "normal"
128
+ },
129
+ "tr:not(:last-child) td": {
130
+ borderBottom: "1px solid ".concat(theme("colors.grey.100"))
131
+ },
132
+ "tr:hover td": {
133
+ backgroundColor: rgba(theme("colors.grey.100"), 0.6)
134
+ }
135
+ }
136
+ }
137
+ });
138
+ });
@@ -0,0 +1 @@
1
+ export * from "./MarkdownContent";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _MarkdownContent = require("./MarkdownContent");
7
+ Object.keys(_MarkdownContent).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _MarkdownContent[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _MarkdownContent[key];
14
+ }
15
+ });
16
+ });
@@ -27,9 +27,7 @@ module.exports = plugin(function (_ref) {
27
27
  }
28
28
  },
29
29
  h1: mobile["display-xlarge"],
30
- h2: _objectSpread(_objectSpread({}, mobile["display-large"]), {}, {
31
- color: theme("colors.grey.600")
32
- }),
30
+ h2: mobile["display-large"],
33
31
  h3: mobile["display-medium"],
34
32
  h4: mobile["display-small"],
35
33
  h5: mobile["display-heading"],
@@ -4,3 +4,4 @@ export * from "./HelpUnderline";
4
4
  export * from "./TextWrap";
5
5
  export * from "./UserContent";
6
6
  export * from "./ShimmerText";
7
+ export * from "./MarkdownContent";
@@ -68,4 +68,15 @@ Object.keys(_ShimmerText).forEach(function (key) {
68
68
  return _ShimmerText[key];
69
69
  }
70
70
  });
71
+ });
72
+ var _MarkdownContent = require("./MarkdownContent");
73
+ Object.keys(_MarkdownContent).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _MarkdownContent[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function get() {
79
+ return _MarkdownContent[key];
80
+ }
81
+ });
71
82
  });