@algolia/satellite 2.10.0 → 2.12.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.
- package/dist/cjs/Actions/Accordion/Accordion.js +1 -2
- package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/cjs/Actions/Accordion/Accordion.styles.js +23 -23
- package/dist/cjs/Actions/Button/PolymorphicButton.js +1 -2
- package/dist/cjs/Actions/Button/styles.js +4 -4
- package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
- package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +2 -2
- package/dist/cjs/Actions/ToggleGroup/ToggleGroup.js +1 -2
- package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.js +2 -3
- package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
- package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessage/ChatMessage.js +1 -1
- package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.js +10 -10
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
- package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
- package/dist/cjs/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
- package/dist/cjs/Fields/AutoComplete/AutoComplete.js +14 -14
- package/dist/cjs/Fields/DatePicker/components/Popover.js +2 -3
- package/dist/cjs/Fields/Dropzone/Dropzone.js +5 -5
- package/dist/cjs/Fields/FilePicker/FilePicker.js +4 -4
- package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +17 -18
- package/dist/cjs/Fields/Form/stories/Complex.js +67 -68
- package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +9 -10
- package/dist/cjs/Fields/Form/stories/DirtyFields.js +18 -19
- package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +19 -20
- package/dist/cjs/Fields/Form/stories/ExtraErrors.js +13 -14
- package/dist/cjs/Fields/Form/stories/FieldArrays.js +23 -24
- package/dist/cjs/Fields/Form/stories/JSONForms.js +79 -79
- package/dist/cjs/Fields/Form/stories/MultiStep.js +72 -73
- package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +15 -16
- package/dist/cjs/Fields/Input/Input.js +10 -10
- package/dist/cjs/Fields/SelectableCard/SelectableCard.js +9 -9
- package/dist/cjs/Fields/Switch/Switch.tailwind.js +4 -1
- package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
- package/dist/cjs/Icons/AmexCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/AmexCardIcon.js +34 -0
- package/dist/cjs/Icons/DiscoverCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/DiscoverCardIcon.js +34 -0
- package/dist/cjs/Icons/MasterCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/MasterCardIcon.js +34 -0
- package/dist/cjs/Icons/VisaCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/VisaCardIcon.js +34 -0
- package/dist/cjs/Icons/index.d.ts +4 -0
- package/dist/cjs/Icons/index.js +28 -0
- package/dist/cjs/Indicators/Avatars/utils.js +4 -4
- package/dist/cjs/Indicators/Badge/Badge.js +4 -4
- package/dist/cjs/Indicators/Banners/Alert/Alert.js +13 -13
- package/dist/cjs/Indicators/Banners/Promote/Promote.js +4 -4
- package/dist/cjs/Indicators/EmptyState/EmptyState.js +16 -16
- package/dist/cjs/Indicators/Medallion/Medallion.js +3 -3
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.js +1 -2
- package/dist/cjs/Indicators/Separator/Separator.js +1 -2
- package/dist/cjs/Indicators/Tag/Tag.js +10 -10
- package/dist/cjs/Indicators/Toast/Toast.js +12 -13
- package/dist/cjs/Indicators/Toast/Toasts.js +2 -3
- package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.js +1 -2
- package/dist/cjs/Layout/FlexGrid/FlexGrid.js +11 -11
- package/dist/cjs/Layout/Tables/DataTable/DataTable.js +3 -3
- package/dist/cjs/Navigation/Stepper/Step.js +12 -12
- package/dist/cjs/Navigation/Tabs/components/LinkTab.js +6 -6
- package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/MenuButton.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Content.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Divider.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/Item.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -2
- package/dist/cjs/Overlay/Modal/Modal.js +9 -10
- package/dist/cjs/Overlay/Popover/Popover.js +2 -3
- package/dist/cjs/Overlay/TooltipWrapper/TooltipWrapper.js +2 -3
- package/dist/cjs/utils/getTextFromReactNode.js +1 -1
- package/dist/cjs/utils/onlyText.js +2 -2
- package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/esm/Actions/Accordion/Accordion.styles.js +23 -23
- package/dist/esm/Actions/Button/styles.js +4 -4
- package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
- package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +2 -2
- package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.js +1 -1
- package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
- package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatMessage/ChatMessage.js +1 -1
- package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatMessage/ChatMessage.styles.js +10 -10
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
- package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
- package/dist/esm/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
- package/dist/esm/Fields/AutoComplete/AutoComplete.js +14 -14
- package/dist/esm/Fields/DatePicker/components/Popover.js +1 -1
- package/dist/esm/Fields/Dropzone/Dropzone.js +5 -5
- package/dist/esm/Fields/FilePicker/FilePicker.js +4 -4
- package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +16 -16
- package/dist/esm/Fields/Form/stories/Complex.js +66 -66
- package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +8 -8
- package/dist/esm/Fields/Form/stories/DirtyFields.js +17 -17
- package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +18 -18
- package/dist/esm/Fields/Form/stories/ExtraErrors.js +12 -12
- package/dist/esm/Fields/Form/stories/FieldArrays.js +22 -22
- package/dist/esm/Fields/Form/stories/JSONForms.js +79 -79
- package/dist/esm/Fields/Form/stories/MultiStep.js +71 -71
- package/dist/esm/Fields/Form/stories/ValidationStrategies.js +14 -14
- package/dist/esm/Fields/Input/Input.js +10 -10
- package/dist/esm/Fields/SelectableCard/SelectableCard.js +9 -9
- package/dist/esm/Fields/Switch/Switch.tailwind.js +4 -1
- package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
- package/dist/esm/Icons/AmexCardIcon.d.ts +2 -0
- package/dist/esm/Icons/AmexCardIcon.js +27 -0
- package/dist/esm/Icons/DiscoverCardIcon.d.ts +2 -0
- package/dist/esm/Icons/DiscoverCardIcon.js +27 -0
- package/dist/esm/Icons/MasterCardIcon.d.ts +2 -0
- package/dist/esm/Icons/MasterCardIcon.js +27 -0
- package/dist/esm/Icons/VisaCardIcon.d.ts +2 -0
- package/dist/esm/Icons/VisaCardIcon.js +27 -0
- package/dist/esm/Icons/index.d.ts +4 -0
- package/dist/esm/Icons/index.js +4 -0
- package/dist/esm/Indicators/Avatars/utils.js +4 -4
- package/dist/esm/Indicators/Badge/Badge.js +4 -4
- package/dist/esm/Indicators/Banners/Alert/Alert.js +13 -13
- package/dist/esm/Indicators/Banners/Promote/Promote.js +4 -4
- package/dist/esm/Indicators/EmptyState/EmptyState.js +16 -16
- package/dist/esm/Indicators/Medallion/Medallion.js +3 -3
- package/dist/esm/Indicators/Tag/Tag.js +10 -10
- package/dist/esm/Indicators/Toast/Toast.js +11 -11
- package/dist/esm/Indicators/Toast/Toasts.js +1 -1
- package/dist/esm/Layout/FlexGrid/FlexGrid.js +11 -11
- package/dist/esm/Layout/Tables/DataTable/DataTable.js +3 -3
- package/dist/esm/Navigation/Stepper/Step.js +12 -12
- package/dist/esm/Navigation/Tabs/components/LinkTab.js +6 -6
- package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/Content.js +1 -1
- package/dist/esm/Overlay/Modal/Modal.js +8 -8
- package/dist/esm/Overlay/Popover/Popover.js +1 -1
- package/dist/esm/Overlay/TooltipWrapper/TooltipWrapper.js +1 -1
- package/dist/esm/utils/getTextFromReactNode.js +1 -1
- package/dist/esm/utils/onlyText.js +2 -2
- package/dist/satellite.min.css +1 -1
- package/package.json +19 -28
|
@@ -16,8 +16,7 @@ var _Divider = require("./components/Divider");
|
|
|
16
16
|
var _items = require("./components/items");
|
|
17
17
|
var _Label = require("./components/Label");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
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; }
|
|
22
21
|
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; }
|
|
23
22
|
/**
|
|
@@ -25,7 +25,7 @@ var Content = exports.Content = /*#__PURE__*/(0, _react.forwardRef)(function (_r
|
|
|
25
25
|
className = _ref.className,
|
|
26
26
|
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
27
27
|
var createPortal = (0, _Satellite.useCreatePortal)();
|
|
28
|
-
return createPortal(
|
|
28
|
+
return createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDropdownMenu.Content, _objectSpread(_objectSpread({
|
|
29
29
|
align: "start",
|
|
30
30
|
side: "bottom",
|
|
31
31
|
sideOffset: 15,
|
|
@@ -12,8 +12,7 @@ var DropdownMenu = _interopRequireWildcard(require("@radix-ui/react-dropdown-men
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
var _excluded = ["children"];
|
|
15
|
-
function
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
16
|
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; }
|
|
18
17
|
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; }
|
|
19
18
|
var CustomTrigger = exports.CustomTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -14,8 +14,7 @@ var _Actions = require("./../../../Actions");
|
|
|
14
14
|
var _Icons = require("./../../../Icons");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var _excluded = ["children"];
|
|
17
|
-
function
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
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; }
|
|
20
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; }
|
|
21
20
|
var DefaultTrigger = exports.DefaultTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -12,8 +12,7 @@ var _react = require("react");
|
|
|
12
12
|
var _satellitePrefixer = _interopRequireDefault(require("./../../../styles/helpers/satellitePrefixer"));
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
var _templateObject;
|
|
15
|
-
function
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
16
|
var Divider = exports.Divider = /*#__PURE__*/(0, _react.forwardRef)(function (_, ref) {
|
|
18
17
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DropdownMenu.Separator, {
|
|
19
18
|
className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["border-b border-grey-100"]))),
|
|
@@ -16,8 +16,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../../../styles/he
|
|
|
16
16
|
var _utils = require("./../../../../utils");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
var CollapsibleItem = exports.CollapsibleItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
22
21
|
var title = _ref.title,
|
|
23
22
|
name = _ref.name,
|
|
@@ -17,8 +17,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../../../styles/he
|
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3;
|
|
19
19
|
var _excluded = ["children", "variant", "startIcon"];
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
21
|
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; }
|
|
23
22
|
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; }
|
|
24
23
|
var Item = exports.Item = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -20,8 +20,7 @@ var _parseUrl = require("./../../../../utils/parseUrl");
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
22
22
|
var _excluded = ["startIcon", "className", "children", "onClick", "navigationType"];
|
|
23
|
-
function
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
24
|
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
25
|
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
26
|
var LinkItem = exports.LinkItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -18,8 +18,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../../../styles/he
|
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
20
20
|
var _excluded = ["children", "className"];
|
|
21
|
-
function
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
23
22
|
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; }
|
|
24
23
|
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; }
|
|
25
24
|
var RadioItem = exports.RadioItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -19,8 +19,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../../../styles/he
|
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
21
21
|
var _excluded = ["className", "checked", "defaultChecked", "disabled", "startIcon", "onSelect", "children"];
|
|
22
|
-
function
|
|
23
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
24
23
|
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; }
|
|
25
24
|
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; }
|
|
26
25
|
var ToggleItem = exports.ToggleItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -21,9 +21,8 @@ var _Satellite = require("./../../Satellite");
|
|
|
21
21
|
var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
|
|
22
22
|
var _prefersReducedMotion = require("./../../utils/prefersReducedMotion");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17
|
|
25
|
-
function
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
24
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
26
|
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; }
|
|
28
27
|
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; }
|
|
29
28
|
var DEFAULT_MODAL_LOCALE = {
|
|
@@ -85,11 +84,11 @@ var Modal = exports.Modal = function Modal(_ref) {
|
|
|
85
84
|
children: [!isControlled && /*#__PURE__*/(0, _jsxRuntime.jsx)(Dialog.Trigger, {
|
|
86
85
|
asChild: true,
|
|
87
86
|
children: triggerButton
|
|
88
|
-
}), createPortal(
|
|
87
|
+
}), createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)(Dialog.Overlay, {
|
|
89
88
|
className: (0, _clsx["default"])(animate && !_prefersReducedMotion.prefersReducedMotion && (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["modal-animated"]))), (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["modal-overlay bg-grey-900/30 z-modalOverlay inset-0 fixed w-full h-full flex items-start justify-center px-8 py-10"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["overflow-x-hidden overflow-y-auto [scrollbar-gutter:stable_both-edges]"])))),
|
|
90
89
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Dialog.Content, {
|
|
91
90
|
ref: dialogContentRef,
|
|
92
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(
|
|
91
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2["default"])(["modal-content"]))), SIZE_CLASSNAMES[size], centerY && (0, _satellitePrefixer["default"])(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2["default"])(["flex m-auto justify-center"])))),
|
|
93
92
|
"aria-describedby": undefined,
|
|
94
93
|
onOpenAutoFocus: function onOpenAutoFocus(e) {
|
|
95
94
|
var _closeButtonRef$curre;
|
|
@@ -107,18 +106,18 @@ var Modal = exports.Modal = function Modal(_ref) {
|
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
110
|
-
className: (0, _satellitePrefixer["default"])(
|
|
109
|
+
className: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["modal-container"]))),
|
|
111
110
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Layout.Card, {
|
|
112
111
|
as: "div",
|
|
113
112
|
elevation: "500",
|
|
114
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(
|
|
113
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["relative"]))), className),
|
|
115
114
|
fullBleed: true,
|
|
116
115
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("header", {
|
|
117
|
-
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(
|
|
116
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["min-h-14 flex items-center justify-between space-x-2"]))), title ? (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["border-b border-grey-100 pl-8 pr-16"]))) : (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["justify-end px-8"]))), !title && hideCloseIcon && (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["hidden"])))),
|
|
118
117
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Dialog.Title, {
|
|
119
118
|
asChild: true,
|
|
120
119
|
children: title ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
-
className: (0, _satellitePrefixer["default"])(
|
|
120
|
+
className: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["flex-1 display-heading truncate"]))),
|
|
122
121
|
children: title
|
|
123
122
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVisuallyHidden.VisuallyHidden, {
|
|
124
123
|
children: locale.modalTitle
|
|
@@ -128,7 +127,7 @@ var Modal = exports.Modal = function Modal(_ref) {
|
|
|
128
127
|
className: (0, _clsx["default"])(!fullBleed && SIZE_PADDING_CLASSNAMES[size]),
|
|
129
128
|
children: children
|
|
130
129
|
}), !hideCloseIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
-
className: (0, _satellitePrefixer["default"])(
|
|
130
|
+
className: (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["-mr-2 absolute top-3 right-8"]))),
|
|
132
131
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Dialog.Close, {
|
|
133
132
|
ref: closeButtonRef,
|
|
134
133
|
asChild: true,
|
|
@@ -20,8 +20,7 @@ var _utils = require("./../../utils");
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
22
22
|
var _excluded = ["children", "title", "subtitle", "content", "footer", "open", "onDismiss", "side", "sideOffset", "align", "alignOffset", "noArrow", "noCloseButton", "avoidCollisions", "autoFocusOnOpenElement", "locale"];
|
|
23
|
-
function
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
25
24
|
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
25
|
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
26
|
var DEFAULT_POPOVER_LOCALE = {
|
|
@@ -82,7 +81,7 @@ var Popover = exports.Popover = function Popover(_ref) {
|
|
|
82
81
|
ref: triggerRef,
|
|
83
82
|
asChild: true,
|
|
84
83
|
children: children
|
|
85
|
-
}), createPortal(
|
|
84
|
+
}), createPortal(/*#__PURE__*/(0, _jsxRuntime.jsxs)(PopoverPrimitive.Content, _objectSpread(_objectSpread({}, props), {}, {
|
|
86
85
|
"aria-labelledby": title ? titleId : undefined,
|
|
87
86
|
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["text-grey-900 bg-white z-popover shadow-z200 min-w-48 max-w-128 rounded typo-display-body animate-slide"]))), props.className),
|
|
88
87
|
side: side,
|
|
@@ -16,8 +16,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/
|
|
|
16
16
|
var _isReactText = require("./../../utils/isReactText");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3;
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
/**
|
|
22
21
|
* The `TooltipWrapper` component is used to wrap content and display a tooltip on hover.
|
|
23
22
|
*
|
|
@@ -63,7 +62,7 @@ var TooltipWrapper = exports.TooltipWrapper = function TooltipWrapper(_ref) {
|
|
|
63
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip.Trigger, {
|
|
64
63
|
asChild: !hasTextChildren,
|
|
65
64
|
children: children
|
|
66
|
-
}), createPortal(
|
|
65
|
+
}), createPortal(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Tooltip.Content, {
|
|
67
66
|
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["tooltip-content animate-slide"]))), tooltipClassName),
|
|
68
67
|
style: {
|
|
69
68
|
"--slide-hide-delay": "".concat(hideDelay, "ms")
|
|
@@ -18,7 +18,7 @@ var getTextFromReactNode = exports.getTextFromReactNode = function getTextFromRe
|
|
|
18
18
|
node.forEach(function (child) {
|
|
19
19
|
string += getTextFromReactNode(child);
|
|
20
20
|
});
|
|
21
|
-
} else if (
|
|
21
|
+
} else if (/*#__PURE__*/(0, _react.isValidElement)(node)) {
|
|
22
22
|
string += getTextFromReactNode(node.props.children);
|
|
23
23
|
}
|
|
24
24
|
return string;
|
|
@@ -26,9 +26,9 @@ var onlyText = exports.onlyText = function onlyText(children) {
|
|
|
26
26
|
}
|
|
27
27
|
return _react.Children.toArray(children).reduce(function (text, child) {
|
|
28
28
|
var newText = "";
|
|
29
|
-
if (
|
|
29
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(child) && hasChildren(child)) {
|
|
30
30
|
newText = onlyText(child.props.children);
|
|
31
|
-
} else if (
|
|
31
|
+
} else if (/*#__PURE__*/(0, _react.isValidElement)(child) && !hasChildren(child)) {
|
|
32
32
|
newText = "";
|
|
33
33
|
} else {
|
|
34
34
|
newText = childToString(child);
|
|
@@ -41,7 +41,7 @@ export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
|
|
|
41
41
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
42
42
|
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
44
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
45
45
|
twMergeConfig: {
|
|
46
46
|
prefix: string;
|
|
47
47
|
};
|
|
@@ -123,7 +123,7 @@ export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
|
|
|
123
123
|
triggerIconChevron: string;
|
|
124
124
|
content: string;
|
|
125
125
|
contentInner: string;
|
|
126
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
126
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
127
127
|
variant: {
|
|
128
128
|
normal: {
|
|
129
129
|
trigger: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29;
|
|
3
3
|
import stl from "./../../styles/helpers/satellitePrefixer";
|
|
4
4
|
import { tv } from "./../../styles/helpers/tv";
|
|
5
5
|
export var accordionStyles = tv({
|
|
@@ -13,34 +13,34 @@ export var accordionStyles = tv({
|
|
|
13
13
|
icon: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["size-4 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
14
14
|
titleCol: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
|
|
15
15
|
title: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
16
|
-
description: stl(
|
|
17
|
-
metaWrapper: stl(
|
|
18
|
-
meta: stl(
|
|
19
|
-
triggerIcon: stl(
|
|
20
|
-
triggerIconChevron: stl(
|
|
21
|
-
content: stl(
|
|
22
|
-
contentInner: stl(
|
|
16
|
+
description: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["typo-display-body text-grey-600 line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
17
|
+
metaWrapper: stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
|
|
18
|
+
meta: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
|
|
19
|
+
triggerIcon: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["shrink-0 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
20
|
+
triggerIconChevron: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"]))),
|
|
21
|
+
content: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["typo-display-body text-grey-600 overflow-hidden accordion-content"]))),
|
|
22
|
+
contentInner: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral([""])))
|
|
23
23
|
},
|
|
24
24
|
variants: {
|
|
25
25
|
variant: {
|
|
26
26
|
normal: {
|
|
27
|
-
trigger: stl(
|
|
28
|
-
titleWrapper: stl(
|
|
29
|
-
iconBg: stl(
|
|
30
|
-
triggerIcon: stl(
|
|
31
|
-
contentInner: stl(
|
|
27
|
+
trigger: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["w-full gap-x-3 px-3.5 py-2.5 group-first/accordion-item:rounded-t group-last/accordion-item:rounded-b bg-white border-2 border-transparent focus-visible:outline-none focus-visible:border-accent-600 enabled:hover:bg-grey-50 motion-safe:transition-colors"]))),
|
|
28
|
+
titleWrapper: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["gap-x-3"]))),
|
|
29
|
+
iconBg: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["rounded-full w-8 h-8 bg-grey-100"]))),
|
|
30
|
+
triggerIcon: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["size-5"]))),
|
|
31
|
+
contentInner: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"])))
|
|
32
32
|
},
|
|
33
33
|
compact: {
|
|
34
|
-
trigger: stl(
|
|
35
|
-
titleWrapper: stl(
|
|
36
|
-
iconBg: stl(
|
|
37
|
-
title: stl(
|
|
38
|
-
description: stl(
|
|
39
|
-
metaWrapper: stl(
|
|
40
|
-
meta: stl(
|
|
41
|
-
triggerIcon: stl(
|
|
42
|
-
content: stl(
|
|
43
|
-
contentInner: stl(
|
|
34
|
+
trigger: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["min-h-0 gap-x-2 bg-transparent border-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-600"]))),
|
|
35
|
+
titleWrapper: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["gap-x-1"]))),
|
|
36
|
+
iconBg: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["h-6 bg-transparent"]))),
|
|
37
|
+
title: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["typo-display-body"]))),
|
|
38
|
+
description: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["hidden"]))),
|
|
39
|
+
metaWrapper: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral([""]))),
|
|
40
|
+
meta: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["hidden"]))),
|
|
41
|
+
triggerIcon: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["size-4"]))),
|
|
42
|
+
content: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["py-0"]))),
|
|
43
|
+
contentInner: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["py-1"])))
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9,
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11;
|
|
3
3
|
import stl from "./../../styles/helpers/satellitePrefixer";
|
|
4
4
|
export var BUTTON_SIZE_CLASSNAMES = {
|
|
5
5
|
small: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["h-6"]))),
|
|
@@ -20,16 +20,16 @@ export var BUTTON_VARIANT_CLASSNAMES = {
|
|
|
20
20
|
subtle: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["btn-subtle"]))),
|
|
21
21
|
neutral: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["btn-neutral"]))),
|
|
22
22
|
primary: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["btn-primary"]))),
|
|
23
|
-
destructive: stl(
|
|
23
|
+
destructive: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["btn-destructive"])))
|
|
24
24
|
};
|
|
25
25
|
export var getIconColorClassName = function getIconColorClassName(_ref) {
|
|
26
26
|
var disabled = _ref.disabled,
|
|
27
27
|
variant = _ref.variant;
|
|
28
28
|
if (variant === "destructive" || variant === "primary") {
|
|
29
|
-
return stl(
|
|
29
|
+
return stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["text-white"])));
|
|
30
30
|
}
|
|
31
31
|
if (variant === "subtle" && !disabled) {
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
|
-
return disabled ? stl(
|
|
34
|
+
return disabled ? stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["text-grey-300"]))) : stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["text-grey-600"])));
|
|
35
35
|
};
|
|
@@ -120,7 +120,7 @@ export var IconButtonWithFeedback = function IconButtonWithFeedback(_ref) {
|
|
|
120
120
|
var title = getTitle();
|
|
121
121
|
var icon = getIcon();
|
|
122
122
|
var handleClick = /*#__PURE__*/function () {
|
|
123
|
-
var _ref2 = _asyncToGenerator(
|
|
123
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(evt) {
|
|
124
124
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
125
125
|
while (1) switch (_context.prev = _context.next) {
|
|
126
126
|
case 0:
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
4
|
var _excluded = ["className", "size", "icon", "children", "label"];
|
|
5
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9,
|
|
5
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0;
|
|
6
6
|
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; }
|
|
7
7
|
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) { _defineProperty(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; }
|
|
8
8
|
import cx from "clsx";
|
|
@@ -41,7 +41,7 @@ export var ToggleButtonBase = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
41
41
|
}, rest), {}, {
|
|
42
42
|
children: [!!Icon && /*#__PURE__*/_jsx(Icon, {
|
|
43
43
|
"aria-hidden": "true",
|
|
44
|
-
className: stl(
|
|
44
|
+
className: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["shrink-0 h-4 w-4 text-grey-600 group-data-[state=on]/toggle-button:text-inherit group-disabled/toggle-button:text-inherit"])))
|
|
45
45
|
}), !!children && /*#__PURE__*/_jsx("div", {
|
|
46
46
|
children: children
|
|
47
47
|
})]
|
|
@@ -56,7 +56,7 @@ var ChatCodeDisplaySkeleton = function ChatCodeDisplaySkeleton(_ref2) {
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var LazyPrism = /*#__PURE__*/lazy(
|
|
59
|
+
var LazyPrism = /*#__PURE__*/lazy(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
60
60
|
var _yield$import, Prism;
|
|
61
61
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
62
62
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17,7 +17,7 @@ export declare const chatCodeDisplayStyles: import("tailwind-variants").TVReturn
|
|
|
17
17
|
code: string;
|
|
18
18
|
}, undefined, {
|
|
19
19
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
|
|
20
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
20
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
21
21
|
twMergeConfig: {
|
|
22
22
|
prefix: string;
|
|
23
23
|
};
|
|
@@ -34,7 +34,7 @@ export declare const chatCodeDisplayStyles: import("tailwind-variants").TVReturn
|
|
|
34
34
|
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
35
35
|
base: string;
|
|
36
36
|
code: string;
|
|
37
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
37
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<unknown, {
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
@@ -61,7 +61,7 @@ export declare const chatCodeDisplaySkeletonStyles: import("tailwind-variants").
|
|
|
61
61
|
line: string;
|
|
62
62
|
}, undefined, {
|
|
63
63
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
|
|
64
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
64
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
65
65
|
twMergeConfig: {
|
|
66
66
|
prefix: string;
|
|
67
67
|
};
|
|
@@ -78,7 +78,7 @@ export declare const chatCodeDisplaySkeletonStyles: import("tailwind-variants").
|
|
|
78
78
|
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
79
79
|
base: string;
|
|
80
80
|
line: string;
|
|
81
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
81
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<unknown, {
|
|
82
82
|
[key: string]: {
|
|
83
83
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
84
84
|
base?: import("tailwind-merge").ClassNameValue;
|
|
@@ -35,7 +35,7 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
|
|
|
35
35
|
content: string;
|
|
36
36
|
}, undefined, {
|
|
37
37
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
|
|
38
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
38
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
39
39
|
twMergeConfig: {
|
|
40
40
|
prefix: string;
|
|
41
41
|
};
|
|
@@ -70,7 +70,7 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
|
|
|
70
70
|
titleWrapper: string;
|
|
71
71
|
title: string;
|
|
72
72
|
content: string;
|
|
73
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
73
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<unknown, {
|
|
74
74
|
[key: string]: {
|
|
75
75
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
76
76
|
base?: import("tailwind-merge").ClassNameValue;
|
|
@@ -26,7 +26,7 @@ export declare const chatContextContainerStyles: import("tailwind-variants").TVR
|
|
|
26
26
|
content: string;
|
|
27
27
|
}, undefined, {
|
|
28
28
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
|
|
29
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
29
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
30
30
|
twMergeConfig: {
|
|
31
31
|
prefix: string;
|
|
32
32
|
};
|
|
@@ -52,7 +52,7 @@ export declare const chatContextContainerStyles: import("tailwind-variants").TVR
|
|
|
52
52
|
header: string;
|
|
53
53
|
title: string;
|
|
54
54
|
content: string;
|
|
55
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
55
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<unknown, {
|
|
56
56
|
[key: string]: {
|
|
57
57
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
58
58
|
base?: import("tailwind-merge").ClassNameValue;
|
|
@@ -83,4 +83,4 @@ var ChatMessageBase = function ChatMessageBase(_ref, ref) {
|
|
|
83
83
|
*
|
|
84
84
|
* See the [ChatMessage documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message) for more information.
|
|
85
85
|
*/
|
|
86
|
-
export var ChatMessage = /*#__PURE__*/memo(
|
|
86
|
+
export var ChatMessage = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(ChatMessageBase));
|
|
@@ -40,7 +40,7 @@ export declare const chatMessageStyles: import("tailwind-variants").TVReturnType
|
|
|
40
40
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
41
41
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
42
42
|
} | undefined;
|
|
43
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
43
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
44
44
|
twMergeConfig: {
|
|
45
45
|
prefix: string;
|
|
46
46
|
};
|
|
@@ -112,7 +112,7 @@ export declare const chatMessageStyles: import("tailwind-variants").TVReturnType
|
|
|
112
112
|
message: string;
|
|
113
113
|
actions: string;
|
|
114
114
|
footer: string;
|
|
115
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
115
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
116
116
|
variant: {
|
|
117
117
|
neutral: {
|
|
118
118
|
message: string;
|