@clickhouse/click-ui 0.0.104 → 0.0.105

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.
@@ -10749,20 +10749,20 @@ const Pk = G.div.withConfig({
10749
10749
  $grow: e,
10750
10750
  $shrink: t
10751
10751
  }) => `
10752
- ${e && `flex: ${e};`}
10753
- ${t && `flex-shrink: ${t};`}
10752
+ ${e && `flex: ${e}`};
10753
+ ${t && `flex-shrink: ${t}`};
10754
10754
  `, ({
10755
10755
  $fillHeight: e,
10756
10756
  $maxHeight: t,
10757
10757
  $minHeight: n
10758
10758
  }) => `
10759
- ${e && "height: 100%;"}
10760
- ${t && `max-height: ${t};`}
10761
- ${n && `min-height: ${n};`}
10759
+ ${e && "height: 100%"};
10760
+ ${t && `max-height: ${t}`};
10761
+ ${n && `min-height: ${n}`};
10762
10762
  `, ({
10763
10763
  $overflow: e
10764
10764
  }) => `
10765
- ${e && `overflow: ${e};`}
10765
+ ${e && `overflow: ${e}`};
10766
10766
  `, ({
10767
10767
  $wrap: e = "nowrap"
10768
10768
  }) => e, ({
@@ -11112,16 +11112,17 @@ const fS = Co({
11112
11112
  $size: t = "default"
11113
11113
  }) => e.click.flyout.size[t].width, fS, ({
11114
11114
  theme: e,
11115
- $strategy: t
11115
+ $strategy: t,
11116
+ $type: n = "default"
11116
11117
  }) => `
11117
11118
  position: ${t};
11118
11119
  height: ${t === "relative" ? "100%" : "auto"};
11119
- padding: ${e.click.flyout.space.y} ${e.click.flyout.space.x};
11120
- gap: ${e.click.flyout.space.gap};
11120
+ padding: 0 ${e.click.flyout.space[n].x}
11121
+ gap: ${e.click.flyout.space[n].gap};
11121
11122
  border-left: 1px solid ${e.click.flyout.color.stroke.default};
11122
11123
  background: ${e.click.flyout.color.background.default};
11123
11124
  box-shadow: ${e.click.flyout.shadow.default}};
11124
-
11125
+
11125
11126
  @media (max-width: 1024px) {
11126
11127
  ${t === "relative" ? `
11127
11128
  position: absolute !important;` : ""}
@@ -11143,75 +11144,84 @@ const fS = Co({
11143
11144
  container: n,
11144
11145
  strategy: o = "relative",
11145
11146
  size: i,
11146
- closeOnInteractOutside: a = !1,
11147
- onInteractOutside: l,
11148
- ...c
11147
+ type: a = "default",
11148
+ closeOnInteractOutside: l = !1,
11149
+ onInteractOutside: c,
11150
+ ...u
11149
11151
  }) => /* @__PURE__ */ r.jsxs(f8, { container: n, children: [
11150
11152
  e && /* @__PURE__ */ r.jsx(p8, { className: "DialogOverlay" }),
11151
- /* @__PURE__ */ r.jsx(pS, { $size: i, $strategy: o, onInteractOutside: (u) => {
11152
- a || u.preventDefault(), typeof l == "function" && l(u);
11153
- }, ...c, children: t })
11153
+ /* @__PURE__ */ r.jsx(pS, { $size: i, $type: a, $strategy: o, onInteractOutside: (h) => {
11154
+ l || h.preventDefault(), typeof c == "function" && c(h);
11155
+ }, ...u, children: t })
11154
11156
  ] });
11155
11157
  w8.displayName = "Flyout.Content";
11156
11158
  _1.Content = w8;
11157
11159
  const hS = G.div.withConfig({
11158
11160
  componentId: "sc-1vtv6sf-2"
11159
11161
  })(["display:flex;flex-direction:column;", ""], ({
11160
- theme: e
11162
+ theme: e,
11163
+ type: t = "default"
11161
11164
  }) => `
11162
- gap: ${e.click.flyout.space.gap};
11163
- padding: 0 ${e.click.flyout.space.content.x};
11164
- `), y8 = (e) => /* @__PURE__ */ r.jsx(hS, { ...e });
11165
+ gap: ${e.click.flyout.space[t].gap};
11166
+ padding: 0 ${e.click.flyout.space[t].content.x};
11167
+ `), y8 = ({
11168
+ type: e,
11169
+ ...t
11170
+ }) => /* @__PURE__ */ r.jsx(hS, { type: e, ...t });
11165
11171
  y8.displayName = "Flyout.Element";
11166
11172
  _1.Element = y8;
11167
11173
  const pd = G.div.withConfig({
11168
11174
  componentId: "sc-1vtv6sf-3"
11169
11175
  })(["display:flex;justify-content:space-between;align-items:flex-start;", ""], ({
11170
- theme: e
11176
+ theme: e,
11177
+ type: t = "default"
11171
11178
  }) => `
11172
- row-gap: ${e.click.flyout.space.content["row-gap"]};
11173
- column-gap: ${e.click.flyout.space.content["column-gap"]};
11174
- padding: 0 ${e.click.flyout.space.content.x};
11179
+ row-gap: ${e.click.flyout.space[t].content["row-gap"]};
11180
+ column-gap: ${e.click.flyout.space[t].content["column-gap"]};
11181
+ padding: ${e.click.flyout.space[t].y} ${e.click.flyout.space[t].y} 0 ${e.click.flyout.space[t].y} ;
11175
11182
  `), hd = G.div.withConfig({
11176
11183
  componentId: "sc-1vtv6sf-4"
11177
11184
  })(["display:flex;flex-direction:column;flex:1;"]), gS = G(Yk).withConfig({
11178
11185
  componentId: "sc-1vtv6sf-5"
11179
11186
  })(["", ""], ({
11180
- theme: e
11187
+ theme: e,
11188
+ type: t = "default"
11181
11189
  }) => `
11182
11190
  color: ${e.click.flyout.color.title.default};
11183
- font: ${e.click.flyout.typography.title.default};
11191
+ font: ${e.click.flyout.typography[t].title.default};
11184
11192
  margin: 0;
11185
11193
  padding: 0;
11186
11194
  `), vS = G(Kk).withConfig({
11187
11195
  componentId: "sc-1vtv6sf-6"
11188
11196
  })(["", ""], ({
11189
- theme: e
11197
+ theme: e,
11198
+ type: t = "default"
11190
11199
  }) => `
11191
11200
  color: ${e.click.flyout.color.description.default};
11192
- font: ${e.click.flyout.typography.description.default};
11201
+ font: ${e.click.flyout.typography[t].description.default};
11193
11202
  margin: 0;
11194
11203
  padding: 0;
11195
11204
  `), k8 = ({
11196
11205
  title: e,
11197
11206
  description: t,
11198
- children: n,
11199
- ...o
11200
- }) => n ? /* @__PURE__ */ r.jsxs(s4, { children: [
11201
- /* @__PURE__ */ r.jsxs(pd, { ...o, children: [
11202
- /* @__PURE__ */ r.jsx(hd, { children: n }),
11207
+ type: n,
11208
+ children: o,
11209
+ ...i
11210
+ }) => o ? /* @__PURE__ */ r.jsxs(s4, { children: [
11211
+ /* @__PURE__ */ r.jsxs(pd, { type: n, ...i, children: [
11212
+ /* @__PURE__ */ r.jsx(hd, { children: o }),
11203
11213
  /* @__PURE__ */ r.jsx(m2, { asChild: !0, children: /* @__PURE__ */ r.jsx(Z0, { "data-testid": "flyout-header-close-btn", children: /* @__PURE__ */ r.jsx(dt, { name: "cross", size: "lg" }) }) })
11204
11214
  ] }),
11205
- /* @__PURE__ */ r.jsx(Ua, { size: "xs" })
11215
+ /* @__PURE__ */ r.jsx(Ua, { size: "lg" })
11206
11216
  ] }) : /* @__PURE__ */ r.jsxs(s4, { children: [
11207
- /* @__PURE__ */ r.jsxs(pd, { ...o, children: [
11217
+ /* @__PURE__ */ r.jsxs(pd, { type: n, ...i, children: [
11208
11218
  /* @__PURE__ */ r.jsxs(hd, { children: [
11209
- /* @__PURE__ */ r.jsx(gS, { children: e }),
11210
- t && /* @__PURE__ */ r.jsx(vS, { children: t })
11219
+ /* @__PURE__ */ r.jsx(gS, { type: n, children: e }),
11220
+ t && /* @__PURE__ */ r.jsx(vS, { type: n, children: t })
11211
11221
  ] }),
11212
11222
  /* @__PURE__ */ r.jsx(m2, { asChild: !0, children: /* @__PURE__ */ r.jsx(Z0, { "data-testid": "flyout-header-close-btn", children: /* @__PURE__ */ r.jsx(dt, { name: "cross", size: "lg" }) }) })
11213
11223
  ] }),
11214
- /* @__PURE__ */ r.jsx(Ua, { size: "xs" })
11224
+ /* @__PURE__ */ r.jsx(Ua, { size: "lg" })
11215
11225
  ] });
11216
11226
  k8.displayName = "Flyout.Header";
11217
11227
  _1.Header = k8;
@@ -11228,11 +11238,12 @@ _1.Body = S8;
11228
11238
  const bS = G.div.withConfig({
11229
11239
  componentId: "sc-1vtv6sf-8"
11230
11240
  })(["display:flex;justify-content:flex-end;align-items:center;", ""], ({
11231
- theme: e
11241
+ theme: e,
11242
+ type: t = "default"
11232
11243
  }) => `
11233
- row-gap: ${e.click.flyout.space.content["row-gap"]};
11234
- column-gap: ${e.click.flyout.space.content["column-gap"]};
11235
- padding: 0 ${e.click.flyout.space.content.x};
11244
+ row-gap: ${e.click.flyout.space[t].content["row-gap"]};
11245
+ column-gap: ${e.click.flyout.space[t].content["column-gap"]};
11246
+ padding: ${e.click.flyout.space[t].y} ${e.click.flyout.space[t].content.x};
11236
11247
  `), L8 = ({
11237
11248
  children: e,
11238
11249
  ...t
@@ -11319,28 +11330,28 @@ const WD = ({
11319
11330
  $rowGap: o
11320
11331
  }) => `
11321
11332
  gap: ${t ? e.click.gridContainer.gap[t] : "inherit"};
11322
- ${n && `column-gap: ${e.click.gridContainer.gap[n]};`}
11323
- ${o && `row-gap: ${e.click.gridContainer.gap[o]};`}
11333
+ ${n && `column-gap: ${e.click.gridContainer.gap[n]}`};
11334
+ ${o && `row-gap: ${e.click.gridContainer.gap[o]}`};
11324
11335
  `, ({
11325
11336
  $fillWidth: e,
11326
11337
  $maxWidth: t,
11327
11338
  $minWidth: n
11328
11339
  }) => `
11329
11340
  width: ${e ? "100%" : "auto"};
11330
- ${typeof t == "string" ? `max-width: ${t};` : ""}
11331
- ${typeof n == "string" ? `min-width: ${n};` : ""}
11341
+ ${typeof t == "string" && `max-width: ${t}`};
11342
+ ${typeof n == "string" && `min-width: ${n}`};
11332
11343
  `, ({
11333
11344
  $height: e,
11334
11345
  $maxHeight: t,
11335
11346
  $minHeight: n
11336
11347
  }) => `
11337
- ${typeof e == "string" && `height: ${e};`}
11338
- ${typeof t == "string" && `max-height: ${t};`}
11339
- ${typeof n == "string" && `min-height: ${n};`}
11348
+ ${typeof e == "string" && `height: ${e}`};
11349
+ ${typeof t == "string" && `max-height: ${t}`};
11350
+ ${typeof n == "string" && `min-height: ${n}`};
11340
11351
  `, ({
11341
11352
  $overflow: e
11342
11353
  }) => `
11343
- ${typeof e == "string" && `overflow: ${e};`}
11354
+ ${typeof e == "string" && `overflow: ${e}`};
11344
11355
  `, ({
11345
11356
  theme: e
11346
11357
  }) => e.breakpoint.sizes.md, ({
@@ -23599,9 +23610,9 @@ const mM = G.div.withConfig({
23599
23610
  typeof o == "number" ? E(o) : o,
23600
23611
  " rows"
23601
23612
  ] }),
23602
- /* @__PURE__ */ r.jsxs(C0, { gap: "xxs", children: [
23613
+ /* @__PURE__ */ r.jsxs(C0, { gap: "xxs", fillWidth: !1, children: [
23603
23614
  /* @__PURE__ */ r.jsx(Yr, { icon: "chevron-left", type: "ghost", disabled: t === 1, onClick: N, "data-testid": "prev-btn" }),
23604
- /* @__PURE__ */ r.jsx(C0, { maxWidth: "50px", children: /* @__PURE__ */ r.jsx(pM, { onChange: D, value: t, loading: !1, onKeyDown: j, min: 1, max: e, onFocus: w, onBlur: _ }) }),
23615
+ /* @__PURE__ */ r.jsx(C0, { maxWidth: "50px", fillWidth: !1, children: /* @__PURE__ */ r.jsx(pM, { onChange: D, value: t, loading: !1, onKeyDown: j, min: 1, max: e, onFocus: w, onBlur: _ }) }),
23605
23616
  !!e && /* @__PURE__ */ r.jsxs(Yo, { component: "div", color: "muted", size: "sm", children: [
23606
23617
  "of ",
23607
23618
  E(e)
@@ -35354,38 +35365,29 @@ const V0 = /* @__PURE__ */ jl(nD), Sf = {
35354
35365
  },
35355
35366
  flyout: {
35356
35367
  space: {
35357
- y: "1.5rem",
35358
- x: "0",
35359
- gap: "1rem",
35360
35368
  default: {
35361
- top: "0"
35362
- },
35363
- inline: {
35364
- top: "3.5rem",
35369
+ x: "0",
35370
+ y: "1.5rem",
35371
+ gap: "1rem",
35372
+ top: "0",
35365
35373
  content: {
35366
35374
  x: "1.5rem",
35375
+ y: "1.5rem",
35367
35376
  "row-gap": "0.25rem",
35368
35377
  "column-gap": "1rem"
35369
- },
35370
- y: "1rem",
35371
- x: "0",
35372
- gap: "1rem",
35373
- default: {
35374
- top: "0"
35375
- },
35376
- inline: {
35377
- top: "3.5rem",
35378
- content: {
35379
- x: "0.75rem",
35380
- "row-gap": "0.25rem",
35381
- "column-gap": "0.75rem"
35382
- }
35383
35378
  }
35384
35379
  },
35385
- content: {
35386
- x: "1.5rem",
35387
- "row-gap": "0.25rem",
35388
- "column-gap": "1rem"
35380
+ inline: {
35381
+ x: "0",
35382
+ y: "0.75rem",
35383
+ gap: "0.75rem",
35384
+ top: "3.5rem",
35385
+ content: {
35386
+ x: "0.75rem",
35387
+ y: "0.75rem",
35388
+ "row-gap": "0.25rem",
35389
+ "column-gap": "0.75rem"
35390
+ }
35389
35391
  }
35390
35392
  },
35391
35393
  shadow: {
@@ -35406,11 +35408,21 @@ const V0 = /* @__PURE__ */ jl(nD), Sf = {
35406
35408
  }
35407
35409
  },
35408
35410
  typography: {
35409
- description: {
35410
- default: `400 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35411
+ default: {
35412
+ description: {
35413
+ default: `400 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35414
+ },
35415
+ title: {
35416
+ default: `700 1.25rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35417
+ }
35411
35418
  },
35412
- title: {
35413
- default: `700 1.25rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35419
+ inline: {
35420
+ description: {
35421
+ default: `400 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35422
+ },
35423
+ title: {
35424
+ default: `600 1rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
35425
+ }
35414
35426
  }
35415
35427
  },
35416
35428
  color: {