@edifice.io/react 2.0.0-develop-b2school.20250109175008 → 2.0.0-develop-b2school.20250114153604

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.
@@ -21,7 +21,11 @@ export type ListProps<T> = {
21
21
  * Callback to get selected ids
22
22
  */
23
23
  onSelectedItems?: (selectedIds: string[]) => void;
24
+ /**
25
+ * Custom class name
26
+ */
27
+ className?: string;
24
28
  };
25
29
  export declare const List: <T extends {
26
30
  _id: string;
27
- }>({ items, isCheckable, data, renderNode, onSelectedItems, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
31
+ }>({ items, isCheckable, data, renderNode, onSelectedItems, className, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,8 @@ const List = ({
10
10
  isCheckable = !1,
11
11
  data,
12
12
  renderNode,
13
- onSelectedItems
13
+ onSelectedItems,
14
+ className
14
15
  }) => {
15
16
  const {
16
17
  selectedItems,
@@ -23,7 +24,7 @@ const List = ({
23
24
  selectedItems && (onSelectedItems == null || onSelectedItems(selectedItems));
24
25
  }, [onSelectedItems, selectedItems]), /* @__PURE__ */ jsxs(Fragment, { children: [
25
26
  (items || isCheckable) && /* @__PURE__ */ jsxs(Fragment, { children: [
26
- /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center gap-8 px-12", children: /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx("div", { className: clsx("list-header d-flex align-items-center gap-8 px-12", className), children: /* @__PURE__ */ jsxs(Fragment, { children: [
27
28
  /* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center gap-8 py-12", children: [
28
29
  /* @__PURE__ */ jsx(Checkbox, { checked: allItemsSelected, indeterminate: isIndeterminate, onChange: () => handleOnSelectAllItems(allItemsSelected) }),
29
30
  /* @__PURE__ */ jsxs("span", { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.0.0-develop-b2school.20250109175008",
3
+ "version": "2.0.0-develop-b2school.20250114153604",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -119,9 +119,9 @@
119
119
  "react-slugify": "^3.0.3",
120
120
  "swiper": "^10.1.0",
121
121
  "ua-parser-js": "^1.0.36",
122
- "@edifice.io/bootstrap": "2.0.0-develop-b2school.20250109175008",
123
- "@edifice.io/tiptap-extensions": "2.0.0-develop-b2school.20250109175008",
124
- "@edifice.io/utilities": "2.0.0-develop-b2school.20250109175008"
122
+ "@edifice.io/bootstrap": "2.0.0-develop-b2school.20250114153604",
123
+ "@edifice.io/tiptap-extensions": "2.0.0-develop-b2school.20250114153604",
124
+ "@edifice.io/utilities": "2.0.0-develop-b2school.20250114153604"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -147,7 +147,7 @@
147
147
  "typescript-eslint": "^8.8.1",
148
148
  "vite": "^5.4.11",
149
149
  "vite-plugin-dts": "^4.1.0",
150
- "@edifice.io/client": "2.0.0-develop-b2school.20250109175008"
150
+ "@edifice.io/client": "2.0.0-develop-b2school.20250114153604"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "@react-spring/web": "^9.7.5",