@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
|
@@ -18,8 +18,7 @@ var _excluded = ["children", "variant"],
|
|
|
18
18
|
_excluded2 = ["children", "className"],
|
|
19
19
|
_excluded3 = ["onChange", "multiple"],
|
|
20
20
|
_excluded4 = ["onChange", "multiple", "collapsible"];
|
|
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 AccordionVariantContext = /*#__PURE__*/(0, _react.createContext)({
|
|
@@ -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;
|
|
@@ -8,7 +8,7 @@ exports.accordionStyles = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
|
|
10
10
|
var _tv = require("./../../styles/helpers/tv");
|
|
11
|
-
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
|
|
11
|
+
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;
|
|
12
12
|
var accordionStyles = exports.accordionStyles = (0, _tv.tv)({
|
|
13
13
|
slots: {
|
|
14
14
|
base: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex flex-col"]))),
|
|
@@ -20,34 +20,34 @@ var accordionStyles = exports.accordionStyles = (0, _tv.tv)({
|
|
|
20
20
|
icon: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["size-4 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
21
21
|
titleCol: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["flex flex-col gap-y-1 text-left grow"]))),
|
|
22
22
|
title: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
23
|
-
description: (0, _satellitePrefixer["default"])(
|
|
24
|
-
metaWrapper: (0, _satellitePrefixer["default"])(
|
|
25
|
-
meta: (0, _satellitePrefixer["default"])(
|
|
26
|
-
triggerIcon: (0, _satellitePrefixer["default"])(
|
|
27
|
-
triggerIconChevron: (0, _satellitePrefixer["default"])(
|
|
28
|
-
content: (0, _satellitePrefixer["default"])(
|
|
29
|
-
contentInner: (0, _satellitePrefixer["default"])(
|
|
23
|
+
description: (0, _satellitePrefixer["default"])(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2["default"])(["typo-display-body text-grey-600 line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
24
|
+
metaWrapper: (0, _satellitePrefixer["default"])(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2["default"])(["flex items-center gap-x-2"]))),
|
|
25
|
+
meta: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
|
|
26
|
+
triggerIcon: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
|
|
27
|
+
triggerIconChevron: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"]))),
|
|
28
|
+
content: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["typo-display-body text-grey-600 overflow-hidden accordion-content"]))),
|
|
29
|
+
contentInner: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])([""])))
|
|
30
30
|
},
|
|
31
31
|
variants: {
|
|
32
32
|
variant: {
|
|
33
33
|
normal: {
|
|
34
|
-
trigger: (0, _satellitePrefixer["default"])(
|
|
35
|
-
titleWrapper: (0, _satellitePrefixer["default"])(
|
|
36
|
-
iconBg: (0, _satellitePrefixer["default"])(
|
|
37
|
-
triggerIcon: (0, _satellitePrefixer["default"])(
|
|
38
|
-
contentInner: (0, _satellitePrefixer["default"])(
|
|
34
|
+
trigger: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["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"]))),
|
|
35
|
+
titleWrapper: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["gap-x-3"]))),
|
|
36
|
+
iconBg: (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["rounded-full w-8 h-8 bg-grey-100"]))),
|
|
37
|
+
triggerIcon: (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["size-5"]))),
|
|
38
|
+
contentInner: (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["px-4 pt-2 pb-4"])))
|
|
39
39
|
},
|
|
40
40
|
compact: {
|
|
41
|
-
trigger: (0, _satellitePrefixer["default"])(
|
|
42
|
-
titleWrapper: (0, _satellitePrefixer["default"])(
|
|
43
|
-
iconBg: (0, _satellitePrefixer["default"])(
|
|
44
|
-
title: (0, _satellitePrefixer["default"])(
|
|
45
|
-
description: (0, _satellitePrefixer["default"])(
|
|
46
|
-
metaWrapper: (0, _satellitePrefixer["default"])(
|
|
47
|
-
meta: (0, _satellitePrefixer["default"])(
|
|
48
|
-
triggerIcon: (0, _satellitePrefixer["default"])(
|
|
49
|
-
content: (0, _satellitePrefixer["default"])(
|
|
50
|
-
contentInner: (0, _satellitePrefixer["default"])(
|
|
41
|
+
trigger: (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["min-h-0 gap-x-2 bg-transparent border-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-600"]))),
|
|
42
|
+
titleWrapper: (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["gap-x-1"]))),
|
|
43
|
+
iconBg: (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["h-6 bg-transparent"]))),
|
|
44
|
+
title: (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["typo-display-body"]))),
|
|
45
|
+
description: (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["hidden"]))),
|
|
46
|
+
metaWrapper: (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])([""]))),
|
|
47
|
+
meta: (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["hidden"]))),
|
|
48
|
+
triggerIcon: (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["size-4"]))),
|
|
49
|
+
content: (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["py-0"]))),
|
|
50
|
+
contentInner: (0, _satellitePrefixer["default"])(_templateObject29 || (_templateObject29 = (0, _taggedTemplateLiteral2["default"])(["py-1"])))
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
@@ -18,8 +18,7 @@ var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/
|
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var _excluded = ["as", "className", "variant", "size", "startIcon", "endIcon", "loading", "children"];
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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 BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["btn inline-flex justify-center items-center typo-display-body focusable-visible"])));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getIconColorClassName = exports.BUTTON_VARIANT_CLASSNAMES = exports.BUTTON_SIZE_CLASSNAMES = exports.BUTTON_PADDING_CLASSNAMES = exports.BUTTON_LOADER_ICON_SIZES = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9,
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11;
|
|
11
11
|
var BUTTON_SIZE_CLASSNAMES = exports.BUTTON_SIZE_CLASSNAMES = {
|
|
12
12
|
small: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["h-6"]))),
|
|
13
13
|
medium: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["h-8"]))),
|
|
@@ -27,16 +27,16 @@ var BUTTON_VARIANT_CLASSNAMES = exports.BUTTON_VARIANT_CLASSNAMES = {
|
|
|
27
27
|
subtle: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["btn-subtle"]))),
|
|
28
28
|
neutral: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["btn-neutral"]))),
|
|
29
29
|
primary: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["btn-primary"]))),
|
|
30
|
-
destructive: (0, _satellitePrefixer["default"])(
|
|
30
|
+
destructive: (0, _satellitePrefixer["default"])(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2["default"])(["btn-destructive"])))
|
|
31
31
|
};
|
|
32
32
|
var getIconColorClassName = exports.getIconColorClassName = function getIconColorClassName(_ref) {
|
|
33
33
|
var disabled = _ref.disabled,
|
|
34
34
|
variant = _ref.variant;
|
|
35
35
|
if (variant === "destructive" || variant === "primary") {
|
|
36
|
-
return (0, _satellitePrefixer["default"])(
|
|
36
|
+
return (0, _satellitePrefixer["default"])(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2["default"])(["text-white"])));
|
|
37
37
|
}
|
|
38
38
|
if (variant === "subtle" && !disabled) {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
|
-
return disabled ? (0, _satellitePrefixer["default"])(
|
|
41
|
+
return disabled ? (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300"]))) : (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["text-grey-600"])));
|
|
42
42
|
};
|
|
@@ -127,7 +127,7 @@ var IconButtonWithFeedback = exports.IconButtonWithFeedback = function IconButto
|
|
|
127
127
|
var title = getTitle();
|
|
128
128
|
var icon = getIcon();
|
|
129
129
|
var handleClick = /*#__PURE__*/function () {
|
|
130
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(
|
|
130
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(evt) {
|
|
131
131
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
132
132
|
while (1) switch (_context.prev = _context.next) {
|
|
133
133
|
case 0:
|
|
@@ -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,
|
|
18
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0;
|
|
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 = {
|
|
@@ -48,7 +48,7 @@ var ToggleButtonBase = exports.ToggleButtonBase = /*#__PURE__*/(0, _react.forwar
|
|
|
48
48
|
}, rest), {}, {
|
|
49
49
|
children: [!!Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
50
50
|
"aria-hidden": "true",
|
|
51
|
-
className: (0, _satellitePrefixer["default"])(
|
|
51
|
+
className: (0, _satellitePrefixer["default"])(_templateObject0 || (_templateObject0 = (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
|
})]
|
|
@@ -18,8 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
18
|
var _templateObject, _templateObject2;
|
|
19
19
|
var _excluded = ["size", "icon", "children", "label", "className"],
|
|
20
20
|
_excluded2 = ["onChange", "className", "children"];
|
|
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 ToggleGroupItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -16,8 +16,7 @@ var _Indicators = require("./../../Indicators");
|
|
|
16
16
|
var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
var _templateObject;
|
|
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 `ChatCodeDisplay` component displays code with syntax highlighting for use within chat context.
|
|
23
22
|
*/
|
|
@@ -66,7 +65,7 @@ var ChatCodeDisplaySkeleton = function ChatCodeDisplaySkeleton(_ref2) {
|
|
|
66
65
|
})
|
|
67
66
|
});
|
|
68
67
|
};
|
|
69
|
-
var LazyPrism = /*#__PURE__*/(0, _react.lazy)(
|
|
68
|
+
var LazyPrism = /*#__PURE__*/(0, _react.lazy)(/*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
70
69
|
var _yield$import, Prism;
|
|
71
70
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
72
71
|
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;
|
|
@@ -89,4 +89,4 @@ var ChatMessageBase = function ChatMessageBase(_ref, ref) {
|
|
|
89
89
|
*
|
|
90
90
|
* See the [ChatMessage documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message) for more information.
|
|
91
91
|
*/
|
|
92
|
-
var ChatMessage = exports.ChatMessage = /*#__PURE__*/(0, _react.memo)(
|
|
92
|
+
var ChatMessage = exports.ChatMessage = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.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;
|
|
@@ -8,7 +8,7 @@ exports.chatMessageStyles = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
|
|
10
10
|
var _tv = require("./../../styles/helpers/tv");
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
12
12
|
var chatMessageStyles = exports.chatMessageStyles = (0, _tv.tv)({
|
|
13
13
|
slots: {
|
|
14
14
|
base: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative w-full scroll-mt-4 group/message"]))),
|
|
@@ -30,44 +30,44 @@ var chatMessageStyles = exports.chatMessageStyles = (0, _tv.tv)({
|
|
|
30
30
|
},
|
|
31
31
|
side: {
|
|
32
32
|
left: {
|
|
33
|
-
container: (0, _satellitePrefixer["default"])(
|
|
33
|
+
container: (0, _satellitePrefixer["default"])(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2["default"])(["justify-start"])))
|
|
34
34
|
},
|
|
35
35
|
right: {
|
|
36
|
-
container: (0, _satellitePrefixer["default"])(
|
|
36
|
+
container: (0, _satellitePrefixer["default"])(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2["default"])(["justify-end ms-auto"])))
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
leading: {
|
|
40
|
-
"true": (0, _satellitePrefixer["default"])(
|
|
40
|
+
"true": (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])([""])))
|
|
41
41
|
},
|
|
42
42
|
actions: {
|
|
43
|
-
"true": (0, _satellitePrefixer["default"])(
|
|
43
|
+
"true": (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])([""])))
|
|
44
44
|
},
|
|
45
45
|
autoHideActions: {
|
|
46
|
-
"true": (0, _satellitePrefixer["default"])(
|
|
46
|
+
"true": (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])([""])))
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
compoundVariants: [{
|
|
50
50
|
variant: "neutral",
|
|
51
51
|
className: {
|
|
52
|
-
message: (0, _satellitePrefixer["default"])(
|
|
52
|
+
message: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["p-3 rounded-[8px]"])))
|
|
53
53
|
}
|
|
54
54
|
}, {
|
|
55
55
|
leading: true,
|
|
56
56
|
side: "left",
|
|
57
57
|
className: {
|
|
58
|
-
actions: (0, _satellitePrefixer["default"])(
|
|
58
|
+
actions: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["left-11"])))
|
|
59
59
|
}
|
|
60
60
|
}, {
|
|
61
61
|
actions: true,
|
|
62
62
|
autoHideActions: true,
|
|
63
63
|
className: {
|
|
64
|
-
actions: (0, _satellitePrefixer["default"])(
|
|
64
|
+
actions: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["opacity-0 group-hover/message:opacity-100 transition-opacity"])))
|
|
65
65
|
}
|
|
66
66
|
}, {
|
|
67
67
|
actions: true,
|
|
68
68
|
side: "right",
|
|
69
69
|
className: {
|
|
70
|
-
actions: (0, _satellitePrefixer["default"])(
|
|
70
|
+
actions: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["justify-end"])))
|
|
71
71
|
}
|
|
72
72
|
}],
|
|
73
73
|
defaultVariants: {
|
|
@@ -46,7 +46,7 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
|
|
|
46
46
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
47
47
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
48
48
|
} | undefined;
|
|
49
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
49
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
50
50
|
twMergeConfig: {
|
|
51
51
|
prefix: string;
|
|
52
52
|
};
|
|
@@ -126,7 +126,7 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
|
|
|
126
126
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
127
127
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
128
128
|
} | undefined;
|
|
129
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
129
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
130
130
|
twMergeConfig: {
|
|
131
131
|
prefix: string;
|
|
132
132
|
};
|
|
@@ -198,7 +198,7 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
|
|
|
198
198
|
message: string;
|
|
199
199
|
actions: string;
|
|
200
200
|
footer: string;
|
|
201
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
201
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
202
202
|
variant: {
|
|
203
203
|
neutral: {
|
|
204
204
|
message: string;
|
|
@@ -73,7 +73,7 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
|
|
|
73
73
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
74
74
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
75
75
|
} | undefined;
|
|
76
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
76
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
77
77
|
twMergeConfig: {
|
|
78
78
|
prefix: string;
|
|
79
79
|
};
|
|
@@ -153,7 +153,7 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
|
|
|
153
153
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
154
154
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
155
155
|
} | undefined;
|
|
156
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
156
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
157
157
|
twMergeConfig: {
|
|
158
158
|
prefix: string;
|
|
159
159
|
};
|
|
@@ -225,7 +225,7 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
|
|
|
225
225
|
message: string;
|
|
226
226
|
actions: string;
|
|
227
227
|
footer: string;
|
|
228
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
228
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
229
229
|
variant: {
|
|
230
230
|
neutral: {
|
|
231
231
|
message: string;
|
|
@@ -16,7 +16,7 @@ export declare const chatMessagesStyles: import("tailwind-variants").TVReturnTyp
|
|
|
16
16
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
17
17
|
isAtBottom?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
18
18
|
} | undefined;
|
|
19
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
19
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
20
20
|
twMergeConfig: {
|
|
21
21
|
prefix: string;
|
|
22
22
|
};
|
|
@@ -48,7 +48,7 @@ export declare const chatMessagesStyles: import("tailwind-variants").TVReturnTyp
|
|
|
48
48
|
scroll: string;
|
|
49
49
|
content: string;
|
|
50
50
|
scrollToBottom: string;
|
|
51
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
51
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
52
52
|
isAtBottom: {
|
|
53
53
|
true: {
|
|
54
54
|
scrollToBottom: string;
|
|
@@ -16,7 +16,7 @@ export declare const chatPromptStyles: import("tailwind-variants").TVReturnType<
|
|
|
16
16
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
17
17
|
disabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
18
18
|
} | undefined;
|
|
19
|
-
} & import("tailwind-variants/dist/config").TWMConfig & {
|
|
19
|
+
} & import("tailwind-variants/dist/config.js").TWMConfig & {
|
|
20
20
|
twMergeConfig: {
|
|
21
21
|
prefix: string;
|
|
22
22
|
};
|
|
@@ -48,7 +48,7 @@ export declare const chatPromptStyles: import("tailwind-variants").TVReturnType<
|
|
|
48
48
|
actions: string;
|
|
49
49
|
submit: string;
|
|
50
50
|
footer: string;
|
|
51
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
51
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
52
52
|
disabled: {
|
|
53
53
|
true: {
|
|
54
54
|
actions: string;
|