brd-ui-kit 0.1.25 → 0.1.26

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/index.js CHANGED
@@ -36113,57 +36113,74 @@ const Ite = 14.52, mC = 10, Rte = 4, wN = "#3B82F6", kte = {
36113
36113
  hasTooltip: i = !0,
36114
36114
  tooltip: o,
36115
36115
  bar: a,
36116
- chartTooltipContent: s
36116
+ chartTooltipContent: s,
36117
+ fillContainer: l = !1,
36118
+ minHeight: u = 200
36117
36119
  }) => {
36118
- const l = e?.config ?? kte;
36120
+ const c = e?.config ?? kte;
36119
36121
  return /* @__PURE__ */ E(
36120
- Ote,
36122
+ "div",
36121
36123
  {
36122
- ...e,
36123
- config: e?.config ?? l,
36124
- className: "min-h-200",
36125
- children: /* @__PURE__ */ fe(
36126
- Ste,
36124
+ className: U("w-full", l ? "h-full" : "min-h-[200px]"),
36125
+ style: { minHeight: l ? void 0 : u },
36126
+ children: /* @__PURE__ */ E(
36127
+ Ote,
36127
36128
  {
36128
- barSize: t?.width ?? Ite,
36129
- ...t,
36130
- children: [
36131
- /* @__PURE__ */ E(Yk, { ...n }),
36132
- /* @__PURE__ */ E(
36133
- oN,
36134
- {
36135
- tickLine: r?.y?.tickLine ?? !1,
36136
- axisLine: r?.y?.axisLine ?? !1,
36137
- tickMargin: r?.y?.tickMargin ?? mC,
36138
- ...r?.y
36139
- }
36140
- ),
36141
- /* @__PURE__ */ E(
36142
- iN,
36143
- {
36144
- tickLine: r?.x?.tickLine ?? !1,
36145
- axisLine: r?.x?.axisLine ?? !1,
36146
- tickMargin: r?.x?.tickMargin ?? mC,
36147
- ...r?.x
36148
- }
36149
- ),
36150
- i && /* @__PURE__ */ E(
36151
- _te,
36152
- {
36153
- cursor: o?.cursor ?? !0,
36154
- content: /* @__PURE__ */ E(Ate, { ...s }),
36155
- ...o
36156
- }
36157
- ),
36158
- /* @__PURE__ */ E(
36159
- nN,
36160
- {
36161
- radius: a?.radius ?? Rte,
36162
- fill: a?.fill ?? wN,
36163
- ...a
36164
- }
36165
- )
36166
- ]
36129
+ ...e,
36130
+ config: e?.config ?? c,
36131
+ className: U(!l && "aspect-video", e?.className),
36132
+ children: /* @__PURE__ */ fe(
36133
+ Ste,
36134
+ {
36135
+ barSize: t?.width ?? Ite,
36136
+ ...t,
36137
+ margin: t?.margin || { top: 10, right: 10, bottom: 20, left: 10 },
36138
+ children: [
36139
+ /* @__PURE__ */ E(
36140
+ Yk,
36141
+ {
36142
+ vertical: n?.vertical ?? !1,
36143
+ ...n
36144
+ }
36145
+ ),
36146
+ /* @__PURE__ */ E(
36147
+ oN,
36148
+ {
36149
+ tickLine: r?.y?.tickLine ?? !1,
36150
+ axisLine: r?.y?.axisLine ?? !1,
36151
+ tickMargin: r?.y?.tickMargin ?? mC,
36152
+ width: r?.y?.width ?? 35,
36153
+ ...r?.y
36154
+ }
36155
+ ),
36156
+ /* @__PURE__ */ E(
36157
+ iN,
36158
+ {
36159
+ tickLine: r?.x?.tickLine ?? !1,
36160
+ axisLine: r?.x?.axisLine ?? !1,
36161
+ tickMargin: r?.x?.tickMargin ?? mC,
36162
+ ...r?.x
36163
+ }
36164
+ ),
36165
+ i && /* @__PURE__ */ E(
36166
+ _te,
36167
+ {
36168
+ cursor: o?.cursor ?? !0,
36169
+ content: /* @__PURE__ */ E(Ate, { ...s }),
36170
+ ...o
36171
+ }
36172
+ ),
36173
+ /* @__PURE__ */ E(
36174
+ nN,
36175
+ {
36176
+ radius: a?.radius ?? Rte,
36177
+ fill: a?.fill ?? wN,
36178
+ ...a
36179
+ }
36180
+ )
36181
+ ]
36182
+ }
36183
+ )
36167
36184
  }
36168
36185
  )
36169
36186
  }