@altimateai/ui-components 0.0.60 → 0.0.61-beta.2

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/TagsInput.js CHANGED
@@ -226,42 +226,42 @@ const Zi = [["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }]], Ji = st("outline
226
226
  * This source code is licensed under the MIT license.
227
227
  * See the LICENSE file in the root directory of this source tree.
228
228
  */
229
- const Qi = [["path", { d: "M9 11l3 3l8 -8", key: "svg-0" }], ["path", { d: "M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9", key: "svg-1" }]], ec = st("outline", "checkbox", "Checkbox", Qi);
229
+ const Qi = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], ec = st("outline", "chevron-down", "ChevronDown", Qi);
230
230
  /**
231
231
  * @license @tabler/icons-react v3.34.1 - MIT
232
232
  *
233
233
  * This source code is licensed under the MIT license.
234
234
  * See the LICENSE file in the root directory of this source tree.
235
235
  */
236
- const tc = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], rc = st("outline", "chevron-down", "ChevronDown", tc);
236
+ const tc = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Kn = st("outline", "chevron-right", "ChevronRight", tc);
237
237
  /**
238
238
  * @license @tabler/icons-react v3.34.1 - MIT
239
239
  *
240
240
  * This source code is licensed under the MIT license.
241
241
  * See the LICENSE file in the root directory of this source tree.
242
242
  */
243
- const nc = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], Kn = st("outline", "chevron-right", "ChevronRight", nc);
243
+ const rc = [["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }], ["path", { d: "M21 21l-6 -6", key: "svg-1" }]], Ma = st("outline", "search", "Search", rc);
244
244
  /**
245
245
  * @license @tabler/icons-react v3.34.1 - MIT
246
246
  *
247
247
  * This source code is licensed under the MIT license.
248
248
  * See the LICENSE file in the root directory of this source tree.
249
249
  */
250
- const ac = [["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }], ["path", { d: "M21 21l-6 -6", key: "svg-1" }]], Ma = st("outline", "search", "Search", ac);
250
+ const nc = [["path", { d: "M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z", key: "svg-0" }]], ac = st("outline", "square", "Square", nc);
251
251
  /**
252
252
  * @license @tabler/icons-react v3.34.1 - MIT
253
253
  *
254
254
  * This source code is licensed under the MIT license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
256
  */
257
- const oc = [["path", { d: "M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z", key: "svg-0" }]], sc = st("outline", "square", "Square", oc);
257
+ const oc = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]], an = st("outline", "x", "X", oc);
258
258
  /**
259
259
  * @license @tabler/icons-react v3.34.1 - MIT
260
260
  *
261
261
  * This source code is licensed under the MIT license.
262
262
  * See the LICENSE file in the root directory of this source tree.
263
263
  */
264
- const lc = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]], an = st("outline", "x", "X", lc), og = Zr, sg = va, lg = ar, ic = Jr, Da = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
264
+ const sc = [["path", { d: "M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z", key: "svg-0" }]], lc = st("filled", "square-check-filled", "SquareCheckFilled", sc), og = Zr, sg = va, lg = ar, ic = Jr, Da = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ c.jsx(
265
265
  or,
266
266
  {
267
267
  className: O(
@@ -3561,21 +3561,21 @@ const Jf = ({
3561
3561
  getLabelForValue: s
3562
3562
  }) => {
3563
3563
  if (r)
3564
- return /* @__PURE__ */ c.jsx("span", { className: "al-truncate", children: t });
3564
+ return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: t });
3565
3565
  if (!e) {
3566
3566
  const p = n ? s(n) : void 0;
3567
- return /* @__PURE__ */ c.jsx("span", { className: "al-truncate", children: p || t || "Select item" });
3567
+ return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: p || t || "Select item" });
3568
3568
  }
3569
3569
  const i = o ? Array.isArray(n) ? n : n ? [n] : [] : a;
3570
3570
  if (i.length === 0)
3571
- return /* @__PURE__ */ c.jsx("span", { className: "al-truncate", children: t || "All Items" });
3571
+ return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: t || "All Items" });
3572
3572
  if (i.length === 1)
3573
- return /* @__PURE__ */ c.jsx("span", { className: "al-truncate", children: s(i[0]) });
3573
+ return /* @__PURE__ */ c.jsx("div", { className: "al-truncate", children: s(i[0]) });
3574
3574
  const u = i.slice(0, 2).map((p) => s(p)), d = i.length - 2, f = i.map((p) => s(p));
3575
3575
  return /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-gap-none al-min-w-0", children: [
3576
3576
  u.map((p, g) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3577
3577
  /* @__PURE__ */ c.jsx(
3578
- "span",
3578
+ "div",
3579
3579
  {
3580
3580
  className: O("al-truncate al-inline-block", g === 0 ? "" : "al-ml-1"),
3581
3581
  style: { maxWidth: "150px" },
@@ -3753,7 +3753,7 @@ const Jf = ({
3753
3753
  value: A,
3754
3754
  placeholder: o || "Search...",
3755
3755
  debounceMs: 300,
3756
- className: s == null ? void 0 : s.className,
3756
+ className: `!al-h-10 ${s == null ? void 0 : s.className}`,
3757
3757
  id: i ? `${i}-combobox` : "default-combobox",
3758
3758
  role: "combobox",
3759
3759
  "aria-expanded": K,
@@ -3787,7 +3787,7 @@ const Jf = ({
3787
3787
  id: i ? `${i}-combobox` : "default-combobox",
3788
3788
  ...s,
3789
3789
  className: O(
3790
- "al-w-56 al-flex al-items-center al-justify-between al-py-3 al-px-2",
3790
+ "al-w-56 !al-h-10 al-flex al-items-center al-justify-between al-py-3 al-px-2",
3791
3791
  s == null ? void 0 : s.className
3792
3792
  ),
3793
3793
  children: [
@@ -3804,7 +3804,7 @@ const Jf = ({
3804
3804
  getLabelForValue: h
3805
3805
  }
3806
3806
  ) }),
3807
- (_ == null ? void 0 : _.side) === "right" ? /* @__PURE__ */ c.jsx(Kn, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" }) : /* @__PURE__ */ c.jsx(rc, { className: "al-mr-2 al-size-4 al-shrink-0 al-opacity-50" })
3807
+ (_ == null ? void 0 : _.side) === "right" ? /* @__PURE__ */ c.jsx(Kn, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" }) : /* @__PURE__ */ c.jsx(ec, { className: "al-mr-2 al-size-4 al-shrink-0 al-opacity-50" })
3808
3808
  ]
3809
3809
  }
3810
3810
  );
@@ -3815,7 +3815,14 @@ const Jf = ({
3815
3815
  Un,
3816
3816
  {
3817
3817
  ..._,
3818
- className: O("!al-w-56 !al-p-0", _ == null ? void 0 : _.className),
3818
+ className: O(
3819
+ "!al-p-0",
3820
+ "al-min-w-56",
3821
+ // to match width of trigger
3822
+ // https://github.com/shadcn-ui/ui/issues/3045#issuecomment-2773835617
3823
+ "!al-w-[var(--radix-popover-trigger-width)]",
3824
+ _ == null ? void 0 : _.className
3825
+ ),
3819
3826
  id: `${i}-combobox-content`,
3820
3827
  onWheel: (A) => {
3821
3828
  A.stopPropagation();
@@ -3854,7 +3861,14 @@ const Jf = ({
3854
3861
  onMouseEnter: () => he(A),
3855
3862
  onMouseLeave: Le,
3856
3863
  children: /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-gap-2 al-w-full", children: [
3857
- d ? ve.includes(A.value) ? /* @__PURE__ */ c.jsx(ec, { className: "al-mr-2 al-size-4 al-text-primary", role: "checkbox", "aria-checked": "true" }) : /* @__PURE__ */ c.jsx(sc, { className: "al-mr-2 al-size-4 al-text-muted-foreground" }) : /* @__PURE__ */ c.jsx(
3864
+ d ? ve.includes(A.value) ? /* @__PURE__ */ c.jsx(
3865
+ lc,
3866
+ {
3867
+ className: "al-mr-2 al-size-4 al-text-primary",
3868
+ role: "checkbox",
3869
+ "aria-checked": "true"
3870
+ }
3871
+ ) : /* @__PURE__ */ c.jsx(ac, { className: "al-mr-2 al-size-4 al-text-muted-foreground" }) : /* @__PURE__ */ c.jsx(
3858
3872
  Ji,
3859
3873
  {
3860
3874
  className: O(
@@ -159,14 +159,16 @@ export const ComboboxMultiSelectExample: StoryFn = () => {
159
159
  <p className="al-text-sm al-text-muted-foreground">
160
160
  Changes are applied immediately when selecting/deselecting options
161
161
  </p>
162
- <Combobox
163
- options={options}
164
- value={selectedValues}
165
- placeholder="Select frameworks..."
166
- multiSelect={true}
167
- buttonProps={{ className: "al-w-[250px]" }}
168
- onChange={handleMultiSelectChange}
169
- />
162
+ <div className="al-w-40">
163
+ <Combobox
164
+ options={options}
165
+ value={selectedValues}
166
+ placeholder="Select frameworks..."
167
+ multiSelect={true}
168
+ buttonProps={{ className: "al-w-full" }}
169
+ onChange={handleMultiSelectChange}
170
+ />
171
+ </div>
170
172
  <div className="al-text-sm">
171
173
  Selected: {selectedValues.length > 0 ? selectedValues.join(", ") : "None"}
172
174
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.60",
3
+ "version": "0.0.61-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"