@lobehub/ui 2.16.3 → 2.16.4

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.
@@ -38,6 +38,9 @@ var AccordionItem = /*#__PURE__*/memo(function (_ref) {
38
38
  paddingInline = _ref$paddingInline === void 0 ? 16 : _ref$paddingInline,
39
39
  _ref$paddingBlock = _ref.paddingBlock,
40
40
  paddingBlock = _ref$paddingBlock === void 0 ? 8 : _ref$paddingBlock,
41
+ padding = _ref.padding,
42
+ ref = _ref.ref,
43
+ customVariant = _ref.variant,
41
44
  customStyles = _ref.styles;
42
45
  var _useStyles = useStyles(),
43
46
  cx = _useStyles.cx,
@@ -222,8 +225,10 @@ var AccordionItem = /*#__PURE__*/memo(function (_ref) {
222
225
  justify: 'space-between',
223
226
  onClick: handleToggle,
224
227
  onKeyDown: handleKeyDown,
228
+ padding: padding,
225
229
  paddingBlock: paddingBlock,
226
230
  paddingInline: paddingInline,
231
+ ref: ref,
227
232
  style: {
228
233
  alignItems: 'center',
229
234
  cursor: disabled ? 'not-allowed' : 'pointer',
@@ -231,7 +236,7 @@ var AccordionItem = /*#__PURE__*/memo(function (_ref) {
231
236
  overflow: 'hidden',
232
237
  width: '100%'
233
238
  },
234
- variant: variant,
239
+ variant: customVariant || variant,
235
240
  children: indicatorPlacementFinal === 'start' ? /*#__PURE__*/_jsxs(_Fragment, {
236
241
  children: [/*#__PURE__*/_jsxs(Flexbox, {
237
242
  align: 'center',
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, HTMLAttributes, Key, ReactNode } from 'react';
2
2
  import type { BlockProps } from "../Block";
3
- export interface AccordionItemProps extends Pick<BlockProps, 'padding' | 'paddingBlock' | 'paddingInline' | 'variant'> {
3
+ export interface AccordionItemProps extends Pick<BlockProps, 'padding' | 'paddingBlock' | 'paddingInline' | 'variant' | 'ref'> {
4
4
  /**
5
5
  * Action component that appears on hover
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.16.3",
3
+ "version": "2.16.4",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",