@edifice.io/react 2.2.11-develop-pedago.20250630145158 → 2.2.11-develop-pedago.20250702150822

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.
@@ -4,9 +4,11 @@ export interface LayoutProps extends ComponentPropsWithoutRef<any> {
4
4
  children: ReactNode;
5
5
  /** Full screen mode without header component */
6
6
  headless?: boolean;
7
+ /** Control white background - defaults to true */
8
+ whiteBg?: boolean;
7
9
  }
8
10
  export declare const Layout: {
9
- ({ children, headless, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ children, headless, whiteBg, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
10
12
  displayName: string;
11
13
  };
12
14
  export default Layout;
@@ -12,6 +12,7 @@ import Button from "../Button/Button.js";
12
12
  const Layout = ({
13
13
  children,
14
14
  headless = !1,
15
+ whiteBg = !0,
15
16
  ...restProps
16
17
  }) => {
17
18
  const {
@@ -24,7 +25,8 @@ const Layout = ({
24
25
  handleCloseCookiesConsent
25
26
  } = useCookiesConsent();
26
27
  useZendeskGuide(), useCantoo();
27
- const classes = clsx("d-flex flex-column bg-white", {
28
+ const classes = clsx("d-flex flex-column", {
29
+ "bg-white": whiteBg,
28
30
  "container-fluid": !headless,
29
31
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
30
32
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
@@ -17,12 +17,16 @@ export interface TabsProps {
17
17
  * Children Props
18
18
  */
19
19
  children?: (...props: any) => ReactNode;
20
+ /**
21
+ * Whether tabs should take full available width
22
+ */
23
+ fullWidth?: boolean;
20
24
  }
21
25
  /**
22
26
  * Tab Content displayed one at a time when a Tab Item is selected
23
27
  */
24
28
  export declare const Tabs: {
25
- ({ defaultId, items, onChange, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
29
+ ({ defaultId, items, fullWidth, onChange, children, }: TabsProps): import("react/jsx-runtime").JSX.Element;
26
30
  Item: {
27
31
  ({ icon, badge, label, id, order, }: TabsItemProps & {
28
32
  order: number;
@@ -5,9 +5,11 @@ import { useTabs } from "../hooks/useTabs.js";
5
5
  import TabsItem from "./TabsItem.js";
6
6
  import TabsList from "./TabsList.js";
7
7
  import TabsPanel from "./TabsPanel.js";
8
+ import clsx from "clsx";
8
9
  const Tabs = ({
9
10
  defaultId,
10
11
  items,
12
+ fullWidth = !1,
11
13
  onChange,
12
14
  children
13
15
  }) => {
@@ -30,9 +32,11 @@ const Tabs = ({
30
32
  tabUnderlineLeft,
31
33
  tabUnderlineWidth,
32
34
  onKeyDown
33
- }), [activeTab, items, onKeyDown, setSelectedTab, tabUnderlineLeft, tabUnderlineWidth, tabsRef]), currentItem = items.find((item) => item.id === activeTab);
35
+ }), [activeTab, items, onKeyDown, setSelectedTab, tabUnderlineLeft, tabUnderlineWidth, tabsRef]), currentItem = items.find((item) => item.id === activeTab), tabListClasses = clsx({
36
+ "w-100": fullWidth
37
+ });
34
38
  return /* @__PURE__ */ jsx(TabsContext.Provider, { value, children: typeof children == "function" ? children(currentItem) : /* @__PURE__ */ jsxs(Fragment, { children: [
35
- /* @__PURE__ */ jsx(Tabs.List, {}),
39
+ /* @__PURE__ */ jsx(Tabs.List, { className: tabListClasses }),
36
40
  /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, children: currentItem == null ? void 0 : currentItem.content })
37
41
  ] }) });
38
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.2.11-develop-pedago.20250630145158",
3
+ "version": "2.2.11-develop-pedago.20250702150822",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -130,9 +130,9 @@
130
130
  "react-slugify": "^3.0.3",
131
131
  "swiper": "^10.1.0",
132
132
  "ua-parser-js": "^1.0.36",
133
- "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250630145158",
134
- "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250630145158",
135
- "@edifice.io/utilities": "2.2.11-develop-pedago.20250630145158"
133
+ "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250702150822",
134
+ "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250702150822",
135
+ "@edifice.io/utilities": "2.2.11-develop-pedago.20250702150822"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -163,8 +163,8 @@
163
163
  "vite": "^5.4.11",
164
164
  "vite-plugin-dts": "^4.1.0",
165
165
  "vite-tsconfig-paths": "^5.0.1",
166
- "@edifice.io/client": "2.2.11-develop-pedago.20250630145158",
167
- "@edifice.io/config": "2.2.11-develop-pedago.20250630145158"
166
+ "@edifice.io/client": "2.2.11-develop-pedago.20250702150822",
167
+ "@edifice.io/config": "2.2.11-develop-pedago.20250702150822"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "@react-spring/web": "^9.7.5",