@algolia/satellite 2.3.0-rc.9 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +8 -0
  2. package/dist/cjs/Actions/Accordion/Accordion.js +104 -57
  3. package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +170 -0
  4. package/dist/cjs/Actions/Accordion/Accordion.styles.js +57 -0
  5. package/dist/cjs/Actions/Button/PolymorphicButton.js +5 -5
  6. package/dist/cjs/Actions/Button/PolymorphicIconButton.js +2 -2
  7. package/dist/cjs/Actions/Button/styles.d.ts +1 -0
  8. package/dist/cjs/Actions/Button/styles.js +15 -10
  9. package/dist/cjs/Actions/SegmentedControl/SegmentedControl.js +3 -2
  10. package/dist/cjs/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  11. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +3 -3
  12. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  13. package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  14. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  15. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  16. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  17. package/dist/cjs/Fields/Field/Field.js +3 -3
  18. package/dist/cjs/Fields/Input/Input.js +10 -13
  19. package/dist/cjs/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  20. package/dist/cjs/Fields/Switch/Switch.tailwind.js +9 -9
  21. package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +3 -3
  22. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.d.ts +22 -0
  23. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +35 -0
  24. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  25. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  26. package/dist/cjs/Helpers/MarkdownContent/index.d.ts +1 -0
  27. package/dist/cjs/Helpers/MarkdownContent/index.js +16 -0
  28. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.js +1 -3
  29. package/dist/cjs/Helpers/index.d.ts +1 -0
  30. package/dist/cjs/Helpers/index.js +11 -0
  31. package/dist/cjs/Icons/index.d.ts +1 -1
  32. package/dist/cjs/Icons/index.js +6 -0
  33. package/dist/cjs/Illustrations/index.d.ts +7 -0
  34. package/dist/cjs/Illustrations/index.js +1254 -0
  35. package/dist/cjs/Indicators/EmptyState/EmptyState.js +35 -2
  36. package/dist/cjs/Indicators/EmptyState/types.d.ts +4 -3
  37. package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +23 -7
  38. package/dist/cjs/Overlay/Modal/Modal.js +8 -8
  39. package/dist/cjs/Overlay/Modal/components/ModalFooter.js +2 -7
  40. package/dist/cjs/index.d.ts +1 -0
  41. package/dist/cjs/index.js +12 -0
  42. package/dist/cjs/styles/helpers/prefixTailwindClassName.js +7 -1
  43. package/dist/cjs/styles/tailwind.config.js +1 -1
  44. package/dist/cjs/types.d.ts +7 -0
  45. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  46. package/dist/esm/Actions/Accordion/Accordion.d.ts +8 -0
  47. package/dist/esm/Actions/Accordion/Accordion.js +105 -58
  48. package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +170 -0
  49. package/dist/esm/Actions/Accordion/Accordion.styles.js +50 -0
  50. package/dist/esm/Actions/Button/PolymorphicButton.js +6 -6
  51. package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -2
  52. package/dist/esm/Actions/Button/styles.d.ts +1 -0
  53. package/dist/esm/Actions/Button/styles.js +14 -9
  54. package/dist/esm/Actions/SegmentedControl/SegmentedControl.js +3 -2
  55. package/dist/esm/Actions/SegmentedControl/SegmentedControlOption.js +6 -3
  56. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +4 -4
  57. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  58. package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  59. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  60. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  61. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  62. package/dist/esm/Fields/Field/Field.js +3 -3
  63. package/dist/esm/Fields/Input/Input.js +10 -13
  64. package/dist/esm/Fields/RadioGroup/RadioGroupContext.d.ts +2 -0
  65. package/dist/esm/Fields/Switch/Switch.tailwind.js +9 -9
  66. package/dist/esm/Fields/TextArea/TextArea.tailwind.js +3 -3
  67. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.d.ts +22 -0
  68. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +28 -0
  69. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +5 -0
  70. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +138 -0
  71. package/dist/esm/Helpers/MarkdownContent/index.d.ts +1 -0
  72. package/dist/esm/Helpers/MarkdownContent/index.js +1 -0
  73. package/dist/esm/Helpers/UserContent/UserContent.tailwind.js +1 -3
  74. package/dist/esm/Helpers/index.d.ts +1 -0
  75. package/dist/esm/Helpers/index.js +2 -1
  76. package/dist/esm/Icons/index.d.ts +1 -1
  77. package/dist/esm/Icons/index.js +1 -1
  78. package/dist/esm/Illustrations/index.d.ts +7 -0
  79. package/dist/esm/Illustrations/index.js +1248 -0
  80. package/dist/esm/Indicators/EmptyState/EmptyState.js +35 -2
  81. package/dist/esm/Indicators/EmptyState/types.d.ts +4 -3
  82. package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +23 -7
  83. package/dist/esm/Overlay/Modal/Modal.js +8 -8
  84. package/dist/esm/Overlay/Modal/components/ModalFooter.js +2 -7
  85. package/dist/esm/index.d.ts +1 -0
  86. package/dist/esm/index.js +1 -0
  87. package/dist/esm/styles/helpers/prefixTailwindClassName.js +7 -1
  88. package/dist/esm/styles/tailwind.config.js +1 -1
  89. package/dist/esm/types.d.ts +7 -0
  90. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  91. package/dist/satellite.min.css +1 -1
  92. package/package.json +4 -4
@@ -1,21 +1,23 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
5
- var _excluded = ["children", "className"],
6
- _excluded2 = ["onChange", "multiple"],
7
- _excluded3 = ["onChange", "multiple", "collapsible"];
3
+ var _excluded = ["children", "variant"],
4
+ _excluded2 = ["children", "className"],
5
+ _excluded3 = ["onChange", "multiple"],
6
+ _excluded4 = ["onChange", "multiple", "collapsible"];
8
7
  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; }
9
8
  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; }
10
9
  import * as RadixAccordion from "@radix-ui/react-accordion";
11
10
  import cx from "clsx";
12
- import { forwardRef } from "react";
11
+ import { createContext, forwardRef, useContext } from "react";
12
+ import { accordionStyles } from "./Accordion.styles";
13
13
  import { ChevronDownIcon } from "./../../Icons";
14
- import stl from "./../../styles/helpers/satellitePrefixer";
15
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- var ICON_SIZE = 16;
17
- var TRIGGER_ICON_SIZE = 20;
18
-
15
+ var AccordionVariantContext = /*#__PURE__*/createContext({
16
+ variant: "normal"
17
+ });
18
+ var useAccordionVariant = function useAccordionVariant() {
19
+ return useContext(AccordionVariantContext);
20
+ };
19
21
  /**
20
22
  * The `Accordion` component is a compact section for revealing and hiding content, ideal for keeping interfaces clean.
21
23
  *
@@ -23,15 +25,36 @@ var TRIGGER_ICON_SIZE = 20;
23
25
  */
24
26
  export var Accordion = function Accordion(_ref) {
25
27
  var children = _ref.children,
26
- className = _ref.className,
28
+ _ref$variant = _ref.variant,
29
+ variant = _ref$variant === void 0 ? "normal" : _ref$variant,
27
30
  props = _objectWithoutProperties(_ref, _excluded);
31
+ return /*#__PURE__*/_jsx(AccordionVariantContext.Provider, {
32
+ value: {
33
+ variant: variant
34
+ },
35
+ children: /*#__PURE__*/_jsx(AccordionRootInternal, _objectSpread(_objectSpread({}, props), {}, {
36
+ children: children
37
+ }))
38
+ });
39
+ };
40
+ var AccordionRootInternal = function AccordionRootInternal(_ref2) {
41
+ var children = _ref2.children,
42
+ className = _ref2.className,
43
+ props = _objectWithoutProperties(_ref2, _excluded2);
44
+ var _useAccordionVariant = useAccordionVariant(),
45
+ variant = _useAccordionVariant.variant;
46
+ var styles = accordionStyles({
47
+ variant: variant
48
+ });
28
49
  var sharedProps = {
29
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"]))), className)
50
+ className: styles.base({
51
+ className: className
52
+ })
30
53
  };
31
54
  if (props.multiple) {
32
55
  var _onChange = props.onChange,
33
56
  _multiple = props.multiple,
34
- _rest = _objectWithoutProperties(props, _excluded2);
57
+ _rest = _objectWithoutProperties(props, _excluded3);
35
58
  return /*#__PURE__*/_jsx(RadixAccordion.Root, _objectSpread(_objectSpread(_objectSpread({}, _rest), sharedProps), {}, {
36
59
  type: "multiple",
37
60
  onValueChange: _onChange,
@@ -42,7 +65,7 @@ export var Accordion = function Accordion(_ref) {
42
65
  multiple = props.multiple,
43
66
  _props$collapsible = props.collapsible,
44
67
  collapsible = _props$collapsible === void 0 ? true : _props$collapsible,
45
- rest = _objectWithoutProperties(props, _excluded3);
68
+ rest = _objectWithoutProperties(props, _excluded4);
46
69
  return /*#__PURE__*/_jsx(RadixAccordion.Root, _objectSpread(_objectSpread(_objectSpread({}, rest), sharedProps), {}, {
47
70
  type: "single",
48
71
  onValueChange: onChange,
@@ -51,71 +74,88 @@ export var Accordion = function Accordion(_ref) {
51
74
  }));
52
75
  };
53
76
  Accordion.displayName = "Accordion";
54
- var AccordionItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
55
- var value = _ref2.value,
56
- disabled = _ref2.disabled,
57
- children = _ref2.children,
58
- className = _ref2.className;
77
+ var AccordionItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
78
+ var value = _ref3.value,
79
+ disabled = _ref3.disabled,
80
+ children = _ref3.children,
81
+ className = _ref3.className;
82
+ var _useAccordionVariant2 = useAccordionVariant(),
83
+ variant = _useAccordionVariant2.variant;
84
+ var styles = accordionStyles({
85
+ variant: variant
86
+ });
59
87
  return /*#__PURE__*/_jsx(RadixAccordion.Item, {
60
88
  value: value,
61
89
  disabled: disabled,
62
90
  ref: ref,
63
- className: cx(stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["group/accordion-item flex flex-col"]))), className),
91
+ className: styles.item({
92
+ className: className
93
+ }),
64
94
  children: children
65
95
  });
66
96
  });
67
97
  AccordionItem.displayName = "AccordionItem";
68
- var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
69
- var children = _ref3.children,
70
- description = _ref3.description,
71
- Icon = _ref3.icon,
72
- _ref3$iconClassName = _ref3.iconClassName,
73
- iconClassName = _ref3$iconClassName === void 0 ? stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["typo-subdued"]))) : _ref3$iconClassName,
74
- _ref3$iconBgClassName = _ref3.iconBgClassName,
75
- iconBgClassName = _ref3$iconBgClassName === void 0 ? stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-grey-100"]))) : _ref3$iconBgClassName,
76
- meta = _ref3.meta,
77
- triggerIcon = _ref3.triggerIcon,
78
- triggerClassName = _ref3.triggerClassName,
79
- className = _ref3.className,
80
- titleWrapperClassName = _ref3.titleWrapperClassName,
81
- titleClassName = _ref3.titleClassName;
98
+ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref4, ref) {
99
+ var children = _ref4.children,
100
+ description = _ref4.description,
101
+ Icon = _ref4.icon,
102
+ iconClassName = _ref4.iconClassName,
103
+ iconBgClassName = _ref4.iconBgClassName,
104
+ meta = _ref4.meta,
105
+ triggerIcon = _ref4.triggerIcon,
106
+ triggerClassName = _ref4.triggerClassName,
107
+ className = _ref4.className,
108
+ titleWrapperClassName = _ref4.titleWrapperClassName,
109
+ titleClassName = _ref4.titleClassName;
110
+ var _useAccordionVariant3 = useAccordionVariant(),
111
+ variant = _useAccordionVariant3.variant;
112
+ var styles = accordionStyles({
113
+ variant: variant
114
+ });
115
+ var isCompact = variant === "compact";
82
116
  var TriggerIcon = triggerIcon || ChevronDownIcon;
83
117
  return /*#__PURE__*/_jsx(RadixAccordion.Header, {
84
- className: className,
118
+ className: styles.header({
119
+ className: className
120
+ }),
85
121
  children: /*#__PURE__*/_jsxs(RadixAccordion.Trigger, {
86
122
  ref: ref,
87
- className: cx(stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["group/accordion-trigger flex gap-x-3 items-center w-full justify-between 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"]))), triggerClassName),
123
+ className: styles.trigger({
124
+ className: triggerClassName
125
+ }),
88
126
  children: [/*#__PURE__*/_jsxs("div", {
89
- className: cx(stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center gap-x-3 grow"]))), titleWrapperClassName),
127
+ className: styles.titleWrapper({
128
+ className: titleWrapperClassName
129
+ }),
90
130
  children: [Icon && /*#__PURE__*/_jsx("span", {
91
- className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["rounded-full w-8 h-8 flex items-center justify-center shrink-0"]))), iconBgClassName),
131
+ className: styles.iconBg({
132
+ className: iconBgClassName
133
+ }),
92
134
  "aria-hidden": true,
93
135
  children: /*#__PURE__*/_jsx(Icon, {
94
- className: cx(iconClassName, stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["group-disabled/accordion-trigger:text-grey-300"])))),
95
- width: ICON_SIZE,
96
- height: ICON_SIZE
136
+ className: styles.icon({
137
+ className: iconClassName
138
+ })
97
139
  })
98
140
  }), /*#__PURE__*/_jsxs("div", {
99
- className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
141
+ className: styles.titleCol(),
100
142
  children: [/*#__PURE__*/_jsx("div", {
101
- className: cx(stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))), titleClassName),
143
+ className: styles.title({
144
+ className: titleClassName
145
+ }),
102
146
  children: children
103
- }), typeof description !== "undefined" && /*#__PURE__*/_jsx("div", {
104
- className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["typo-display-body typo-subdued line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
147
+ }), !isCompact && typeof description !== "undefined" && /*#__PURE__*/_jsx("div", {
148
+ className: styles.description(),
105
149
  children: description
106
150
  })]
107
151
  })]
108
152
  }), /*#__PURE__*/_jsxs("div", {
109
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
110
- children: [typeof meta !== "undefined" && /*#__PURE__*/_jsx("div", {
111
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
153
+ className: styles.metaWrapper(),
154
+ children: [typeof meta !== "undefined" && !isCompact && /*#__PURE__*/_jsx("div", {
155
+ className: styles.meta(),
112
156
  children: meta
113
157
  }), /*#__PURE__*/_jsx(TriggerIcon, {
114
- className: cx(stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["shrink-0 typo-subdued group-disabled/accordion-trigger:text-grey-300"]))),
115
- // Don't rotate the trigger icon if it's a custom one.
116
- !triggerIcon && stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([" group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"])))),
117
- width: TRIGGER_ICON_SIZE,
118
- height: TRIGGER_ICON_SIZE,
158
+ className: cx(styles.triggerIcon(), !triggerIcon && styles.triggerIconChevron()),
119
159
  "aria-hidden": true
120
160
  })]
121
161
  })]
@@ -123,14 +163,21 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
123
163
  });
124
164
  });
125
165
  AccordionHeader.displayName = "AccordionHeader";
126
- var AccordionContent = /*#__PURE__*/forwardRef(function (_ref4, ref) {
127
- var children = _ref4.children,
128
- className = _ref4.className;
166
+ var AccordionContent = /*#__PURE__*/forwardRef(function (_ref5, ref) {
167
+ var children = _ref5.children,
168
+ className = _ref5.className;
169
+ var _useAccordionVariant4 = useAccordionVariant(),
170
+ variant = _useAccordionVariant4.variant;
171
+ var styles = accordionStyles({
172
+ variant: variant
173
+ });
129
174
  return /*#__PURE__*/_jsx(RadixAccordion.Content, {
130
175
  ref: ref,
131
- className: cx(stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["typo-display-body typo-subdued overflow-hidden accordion-content"]))), className),
176
+ className: styles.content({
177
+ className: className
178
+ }),
132
179
  children: /*#__PURE__*/_jsx("div", {
133
- className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"]))),
180
+ className: styles.contentInner(),
134
181
  children: children
135
182
  })
136
183
  });
@@ -0,0 +1,170 @@
1
+ export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ normal: {
4
+ trigger: string;
5
+ titleWrapper: string;
6
+ iconBg: string;
7
+ triggerIcon: string;
8
+ contentInner: string;
9
+ };
10
+ compact: {
11
+ trigger: string;
12
+ titleWrapper: string;
13
+ iconBg: string;
14
+ title: string;
15
+ description: string;
16
+ metaWrapper: string;
17
+ meta: string;
18
+ triggerIcon: string;
19
+ content: string;
20
+ contentInner: string;
21
+ };
22
+ };
23
+ }, {
24
+ base: string;
25
+ item: string;
26
+ header: string;
27
+ trigger: string;
28
+ titleWrapper: string;
29
+ iconBg: string;
30
+ icon: string;
31
+ titleCol: string;
32
+ title: string;
33
+ description: string;
34
+ metaWrapper: string;
35
+ meta: string;
36
+ triggerIcon: string;
37
+ triggerIconChevron: string;
38
+ content: string;
39
+ contentInner: string;
40
+ }, undefined, {
41
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
42
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
43
+ } | undefined;
44
+ } & import("tailwind-variants/dist/config").TWMConfig & {
45
+ twMergeConfig: {
46
+ prefix: string;
47
+ };
48
+ }, {
49
+ variant: {
50
+ normal: {
51
+ trigger: string;
52
+ titleWrapper: string;
53
+ iconBg: string;
54
+ triggerIcon: string;
55
+ contentInner: string;
56
+ };
57
+ compact: {
58
+ trigger: string;
59
+ titleWrapper: string;
60
+ iconBg: string;
61
+ title: string;
62
+ description: string;
63
+ metaWrapper: string;
64
+ meta: string;
65
+ triggerIcon: string;
66
+ content: string;
67
+ contentInner: string;
68
+ };
69
+ };
70
+ }, {
71
+ base: string;
72
+ item: string;
73
+ header: string;
74
+ trigger: string;
75
+ titleWrapper: string;
76
+ iconBg: string;
77
+ icon: string;
78
+ titleCol: string;
79
+ title: string;
80
+ description: string;
81
+ metaWrapper: string;
82
+ meta: string;
83
+ triggerIcon: string;
84
+ triggerIconChevron: string;
85
+ content: string;
86
+ contentInner: string;
87
+ }, import("tailwind-variants").TVReturnType<{
88
+ variant: {
89
+ normal: {
90
+ trigger: string;
91
+ titleWrapper: string;
92
+ iconBg: string;
93
+ triggerIcon: string;
94
+ contentInner: string;
95
+ };
96
+ compact: {
97
+ trigger: string;
98
+ titleWrapper: string;
99
+ iconBg: string;
100
+ title: string;
101
+ description: string;
102
+ metaWrapper: string;
103
+ meta: string;
104
+ triggerIcon: string;
105
+ content: string;
106
+ contentInner: string;
107
+ };
108
+ };
109
+ }, {
110
+ base: string;
111
+ item: string;
112
+ header: string;
113
+ trigger: string;
114
+ titleWrapper: string;
115
+ iconBg: string;
116
+ icon: string;
117
+ titleCol: string;
118
+ title: string;
119
+ description: string;
120
+ metaWrapper: string;
121
+ meta: string;
122
+ triggerIcon: string;
123
+ triggerIconChevron: string;
124
+ content: string;
125
+ contentInner: string;
126
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
127
+ variant: {
128
+ normal: {
129
+ trigger: string;
130
+ titleWrapper: string;
131
+ iconBg: string;
132
+ triggerIcon: string;
133
+ contentInner: string;
134
+ };
135
+ compact: {
136
+ trigger: string;
137
+ titleWrapper: string;
138
+ iconBg: string;
139
+ title: string;
140
+ description: string;
141
+ metaWrapper: string;
142
+ meta: string;
143
+ triggerIcon: string;
144
+ content: string;
145
+ contentInner: string;
146
+ };
147
+ };
148
+ }, {
149
+ variant: {
150
+ normal: {
151
+ trigger: string;
152
+ titleWrapper: string;
153
+ iconBg: string;
154
+ triggerIcon: string;
155
+ contentInner: string;
156
+ };
157
+ compact: {
158
+ trigger: string;
159
+ titleWrapper: string;
160
+ iconBg: string;
161
+ title: string;
162
+ description: string;
163
+ metaWrapper: string;
164
+ meta: string;
165
+ triggerIcon: string;
166
+ content: string;
167
+ contentInner: string;
168
+ };
169
+ };
170
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,50 @@
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, _templateObject30, _templateObject31;
3
+ import stl from "./../../styles/helpers/satellitePrefixer";
4
+ import { tv } from "./../../styles/helpers/tv";
5
+ export var accordionStyles = tv({
6
+ slots: {
7
+ base: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"]))),
8
+ item: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["group/accordion-item flex flex-col"]))),
9
+ header: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""]))),
10
+ trigger: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["group/accordion-trigger flex items-center justify-between"]))),
11
+ titleWrapper: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex items-center grow"]))),
12
+ iconBg: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center justify-center shrink-0"]))),
13
+ icon: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["size-4 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
14
+ titleCol: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
15
+ title: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
16
+ description: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-body text-grey-600 line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
17
+ metaWrapper: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
18
+ meta: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
19
+ triggerIcon: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["shrink-0 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
20
+ triggerIconChevron: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"]))),
21
+ content: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["typo-display-body text-grey-600 overflow-hidden accordion-content"]))),
22
+ contentInner: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([""])))
23
+ },
24
+ variants: {
25
+ variant: {
26
+ normal: {
27
+ trigger: stl(_templateObject17 || (_templateObject17 = _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(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["gap-x-3"]))),
29
+ iconBg: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["rounded-full w-8 h-8 bg-grey-100"]))),
30
+ triggerIcon: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["size-5"]))),
31
+ contentInner: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"])))
32
+ },
33
+ compact: {
34
+ trigger: stl(_templateObject22 || (_templateObject22 = _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(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["gap-x-1"]))),
36
+ iconBg: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["h-6 bg-transparent"]))),
37
+ title: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["typo-display-body"]))),
38
+ description: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["hidden"]))),
39
+ metaWrapper: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([""]))),
40
+ meta: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["hidden"]))),
41
+ triggerIcon: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["size-4"]))),
42
+ content: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["py-0"]))),
43
+ contentInner: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["py-1"])))
44
+ }
45
+ }
46
+ },
47
+ defaultVariants: {
48
+ variant: "normal"
49
+ }
50
+ });
@@ -7,12 +7,12 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
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";
9
9
  import React, { forwardRef } from "react";
10
- import { BUTTON_LOADER_ICON_SIZES, BUTTON_SIZE_CLASSNAMES, BUTTON_VARIANT_CLASSNAMES, getIconColorClassName } from "./styles";
10
+ import { BUTTON_LOADER_ICON_SIZES, BUTTON_PADDING_CLASSNAMES, BUTTON_SIZE_CLASSNAMES, BUTTON_VARIANT_CLASSNAMES, getIconColorClassName } from "./styles";
11
11
  import { isButtonType } from "./types";
12
12
  import { ProgressSpinner } from "./../../Indicators";
13
13
  import stl from "./../../styles/helpers/satellitePrefixer";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- var BASE_CLASSNAMES = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["btn inline-flex justify-center items-center px-3 typo-display-body focusable-visible"])));
15
+ var BASE_CLASSNAMES = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["btn inline-flex justify-center items-center typo-display-body focusable-visible"])));
16
16
  var ICON_SIZE = 16;
17
17
  /**
18
18
  * `PolymorphicButton` is intended for internal use.
@@ -36,7 +36,7 @@ export var PolymorphicButton = /*#__PURE__*/forwardRef(function (props, ref) {
36
36
  // @ts-expect-error disabled is not present in PolymorphicButtonProps
37
37
  cleanedProps.disabled = true;
38
38
  }
39
- var buttonClassName = cx(BASE_CLASSNAMES, BUTTON_SIZE_CLASSNAMES[size], BUTTON_VARIANT_CLASSNAMES[variant], cleanedProps.disabled && stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["btn-disabled"]))), className);
39
+ var buttonClassName = cx(BASE_CLASSNAMES, BUTTON_SIZE_CLASSNAMES[size], BUTTON_PADDING_CLASSNAMES[size], BUTTON_VARIANT_CLASSNAMES[variant], cleanedProps.disabled && stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["btn-disabled"]))), className);
40
40
  var loaderClassNames = stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["absolute ", ""])), (variant === "destructive" || variant === "primary") && "text-white");
41
41
  var iconClassNames = cx(getIconColorClassName(props), loading && stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["invisible"]))));
42
42
  var textClassNames = cx(loading && stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["invisible"]))));
@@ -54,14 +54,14 @@ export var PolymorphicButton = /*#__PURE__*/forwardRef(function (props, ref) {
54
54
  }), StartIcon && /*#__PURE__*/_jsx(StartIcon, {
55
55
  width: ICON_SIZE,
56
56
  height: ICON_SIZE,
57
- className: cx(stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["shrink-0"]))), iconClassNames)
57
+ className: cx(stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["shrink-0 mr-1"]))), iconClassNames)
58
58
  }), /*#__PURE__*/_jsx("span", {
59
- className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["whitespace-nowrap px-1"]))), textClassNames),
59
+ className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["whitespace-nowrap"]))), textClassNames),
60
60
  children: children
61
61
  }), EndIcon && /*#__PURE__*/_jsx(EndIcon, {
62
62
  width: ICON_SIZE,
63
63
  height: ICON_SIZE,
64
- className: cx(stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["shrink-0"]))), iconClassNames)
64
+ className: cx(stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["shrink-0 ml-1"]))), iconClassNames)
65
65
  })]
66
66
  }));
67
67
  });
@@ -15,9 +15,9 @@ import stl from "./../../styles/helpers/satellitePrefixer";
15
15
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  var BASE_CLASSNAMES = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["btn inline-flex items-center justify-center focusable-visible"])));
17
17
  var SIZE_CLASSNAMES = {
18
- small: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["max-h-6 max-w-6 min-h-6 min-w-6 text-mobile md:text-sm"]))),
18
+ small: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["max-h-6 max-w-6 min-h-6 min-w-6 text-md"]))),
19
19
  medium: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["max-h-8 max-w-8 min-h-8 min-w-8 text-md"]))),
20
- large: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["max-h-10 max-w-10 min-h-10 min-w-10 text-lg"])))
20
+ large: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["max-h-10 max-w-10 min-h-10 min-w-10 text-md"])))
21
21
  };
22
22
  var VARIANT_CLASSNAMES = _objectSpread(_objectSpread({}, BUTTON_VARIANT_CLASSNAMES), {}, {
23
23
  neutral: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["btn-neutral text-grey-600"]))),
@@ -1,5 +1,6 @@
1
1
  import type { ButtonBaseProps, ButtonSize, ButtonVariant } from "./types";
2
2
  export declare const BUTTON_SIZE_CLASSNAMES: Record<ButtonSize, string>;
3
+ export declare const BUTTON_PADDING_CLASSNAMES: Record<ButtonSize, string>;
3
4
  export declare const BUTTON_LOADER_ICON_SIZES: Record<ButtonSize, number>;
4
5
  export declare const BUTTON_VARIANT_CLASSNAMES: Record<ButtonVariant, string>;
5
6
  export declare const getIconColorClassName: ({ disabled, variant }: Pick<ButtonBaseProps, "disabled" | "variant">) => string | null;
@@ -1,30 +1,35 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
3
3
  import stl from "./../../styles/helpers/satellitePrefixer";
4
4
  export var BUTTON_SIZE_CLASSNAMES = {
5
5
  small: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["h-6"]))),
6
6
  medium: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["h-8"]))),
7
7
  large: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["h-10"])))
8
8
  };
9
+ export var BUTTON_PADDING_CLASSNAMES = {
10
+ small: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["px-2"]))),
11
+ medium: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["px-4"]))),
12
+ large: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["px-4"])))
13
+ };
9
14
  export var BUTTON_LOADER_ICON_SIZES = {
10
- small: 12,
15
+ small: 16,
11
16
  medium: 16,
12
- large: 20
17
+ large: 16
13
18
  };
14
19
  export var BUTTON_VARIANT_CLASSNAMES = {
15
- subtle: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["btn-subtle"]))),
16
- neutral: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["btn-neutral"]))),
17
- primary: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["btn-primary"]))),
18
- destructive: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["btn-destructive"])))
20
+ subtle: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["btn-subtle"]))),
21
+ neutral: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["btn-neutral"]))),
22
+ primary: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["btn-primary"]))),
23
+ destructive: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["btn-destructive"])))
19
24
  };
20
25
  export var getIconColorClassName = function getIconColorClassName(_ref) {
21
26
  var disabled = _ref.disabled,
22
27
  variant = _ref.variant;
23
28
  if (variant === "destructive" || variant === "primary") {
24
- return stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["text-white"])));
29
+ return stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["text-white"])));
25
30
  }
26
31
  if (variant === "subtle" && !disabled) {
27
32
  return null;
28
33
  }
29
- return disabled ? stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["text-grey-300"]))) : stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["text-grey-600"])));
34
+ return disabled ? stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["text-grey-300"]))) : stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["text-grey-600"])));
30
35
  };
@@ -69,11 +69,12 @@ export var SegmentedControl = /*#__PURE__*/forwardRef(function (_ref, ref) {
69
69
  value: value,
70
70
  name: radioName,
71
71
  onChange: onChange,
72
- disabled: disabled
72
+ disabled: disabled,
73
+ size: size
73
74
  },
74
75
  children: /*#__PURE__*/_jsxs("div", {
75
76
  ref: mergeRefs([ref, containerRef]),
76
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["segmented-control focusable-visible-within\n relative inline-flex typo-display-body rounded bg-grey-100\n ", "\n "])), size === "large" ? "segmented-control-large space-x-1" : "space-x-2px"), BUTTON_SIZE_CLASSNAMES[size], className),
77
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["segmented-control focusable-visible-within\n relative inline-flex typo-display-body rounded bg-grey-100\n ", "\n "])), size === "large" ? "segmented-control-large space-x-1" : "space-x-0.5"), BUTTON_SIZE_CLASSNAMES[size], className),
77
78
  children: [/*#__PURE__*/_jsx("div", {
78
79
  ref: valueIndicatorRef,
79
80
  style: valueIndicatorStyle,
@@ -1,9 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2;
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
4
  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; }
5
5
  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; }
6
+ import cx from "clsx";
6
7
  import { buildAnimationProps } from "./utils";
8
+ import { BUTTON_PADDING_CLASSNAMES } from "./../Button/styles";
7
9
  import { useRadioGroupContext } from "./../../Fields/RadioGroup/RadioGroupContext";
8
10
  import { OverflowTooltipWrapper } from "./../../Overlay";
9
11
  import stl from "./../../styles/helpers/satellitePrefixer";
@@ -15,11 +17,12 @@ export var SegmentedControlOption = function SegmentedControlOption(_ref) {
15
17
  var context = useRadioGroupContext();
16
18
  var checked = context.value === value;
17
19
  var inputDisabled = context.disabled || disabled;
20
+ var size = context.size || "medium";
18
21
  return /*#__PURE__*/_jsxs("label", _objectSpread(_objectSpread({
19
- className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n inline-flex grow shrink justify-center items-center min-w-16 max-w-48 px-4 z-10 text-grey-600\n ", "\n ", "\n "])), inputDisabled ? "cursor-not-allowed opacity-60 rounded bg-grey-100" : "cursor-pointer hover:text-grey-900", !checked && !inputDisabled && "rounded active:bg-accent-200/20")
22
+ className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["inline-flex grow shrink justify-center items-center min-w-16 max-w-48 z-10 text-grey-600"]))), BUTTON_PADDING_CLASSNAMES[size], inputDisabled ? stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["cursor-not-allowed opacity-60 rounded bg-grey-100"]))) : stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["cursor-pointer hover:text-grey-900"]))), !checked && !inputDisabled && stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["rounded active:bg-accent-200/20"]))))
20
23
  }, buildAnimationProps(context.name, value)), {}, {
21
24
  children: [/*#__PURE__*/_jsx("input", {
22
- className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["w-0 h-0 opacity-0"]))),
25
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["w-0 h-0 opacity-0"]))),
23
26
  type: "radio",
24
27
  value: value,
25
28
  name: context.name,