@edifice.io/react 2.1.2-develop-pedago.20250304153136 → 2.1.2-develop-pedago.20250305164234
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/components/Card/Card.d.ts +3 -1
- package/dist/components/Card/CardBody.d.ts +3 -1
- package/dist/components/Card/CardBody.js +4 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.js +2 -0
- package/package.json +6 -6
|
@@ -59,8 +59,10 @@ declare const Card: import('react').ForwardRefExoticComponent<CardProps & import
|
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
Body: {
|
|
62
|
-
({ children, space, flexDirection, }: {
|
|
62
|
+
({ children, gap, space, padding, flexDirection, }: {
|
|
63
|
+
gap?: "0" | "8" | "16" | null;
|
|
63
64
|
space?: "0" | "8" | "16" | null;
|
|
65
|
+
padding?: "0" | "8" | "16" | null;
|
|
64
66
|
flexDirection?: "row" | "column" | null;
|
|
65
67
|
children: ReactNode;
|
|
66
68
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
declare const CardBody: {
|
|
3
|
-
({ children, space, flexDirection, }: {
|
|
3
|
+
({ children, gap, space, padding, flexDirection, }: {
|
|
4
|
+
gap?: "0" | "8" | "16" | null;
|
|
4
5
|
space?: "0" | "8" | "16" | null;
|
|
6
|
+
padding?: "0" | "8" | "16" | null;
|
|
5
7
|
flexDirection?: "row" | "column" | null;
|
|
6
8
|
children: ReactNode;
|
|
7
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,12 +2,14 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
const CardBody = ({
|
|
4
4
|
children,
|
|
5
|
+
gap = null,
|
|
5
6
|
space = null,
|
|
7
|
+
padding = null,
|
|
6
8
|
flexDirection = "row"
|
|
7
9
|
}) => {
|
|
8
10
|
const cardbody = clsx("card-body", {
|
|
9
|
-
[`p-${space}`]: space,
|
|
10
|
-
[`gap-${space}`]: space,
|
|
11
|
+
[`p-${padding ?? space}`]: space,
|
|
12
|
+
[`gap-${gap ?? space}`]: space,
|
|
11
13
|
"align-items-start": flexDirection === "column",
|
|
12
14
|
"flex-column": flexDirection === "column"
|
|
13
15
|
});
|
|
@@ -20,6 +20,10 @@ export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
20
20
|
* Additional class name for the label
|
|
21
21
|
*/
|
|
22
22
|
labelClassName?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Switch color variant
|
|
25
|
+
*/
|
|
26
|
+
variant?: 'default' | 'ghost' | 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
|
|
23
27
|
}
|
|
24
28
|
declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
29
|
export default Switch;
|
|
@@ -7,11 +7,13 @@ const Switch = /* @__PURE__ */ forwardRef(({
|
|
|
7
7
|
value,
|
|
8
8
|
disabled,
|
|
9
9
|
size = "md",
|
|
10
|
+
variant = "default",
|
|
10
11
|
labelClassName,
|
|
11
12
|
...restProps
|
|
12
13
|
}, ref) => {
|
|
13
14
|
const switchClass = clsx("switch", {
|
|
14
15
|
[`switch-${size}`]: size,
|
|
16
|
+
[`switch-${variant}`]: variant,
|
|
15
17
|
"switch-disabled": disabled
|
|
16
18
|
}, className), labelClass = clsx("switch-label", labelClassName);
|
|
17
19
|
return /* @__PURE__ */ jsxs("label", { className: switchClass, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.1.2-develop-pedago.
|
|
3
|
+
"version": "2.1.2-develop-pedago.20250305164234",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"react-slugify": "^3.0.3",
|
|
119
119
|
"swiper": "^10.1.0",
|
|
120
120
|
"ua-parser-js": "^1.0.36",
|
|
121
|
-
"@edifice.io/bootstrap": "2.1.2-develop-pedago.
|
|
122
|
-
"@edifice.io/tiptap-extensions": "2.1.2-develop-pedago.
|
|
123
|
-
"@edifice.io/utilities": "2.1.2-develop-pedago.
|
|
121
|
+
"@edifice.io/bootstrap": "2.1.2-develop-pedago.20250305164234",
|
|
122
|
+
"@edifice.io/tiptap-extensions": "2.1.2-develop-pedago.20250305164234",
|
|
123
|
+
"@edifice.io/utilities": "2.1.2-develop-pedago.20250305164234"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"vite": "^5.4.11",
|
|
152
152
|
"vite-plugin-dts": "^4.1.0",
|
|
153
153
|
"vite-tsconfig-paths": "^5.0.1",
|
|
154
|
-
"@edifice.io/client": "2.1.2-develop-pedago.
|
|
155
|
-
"@edifice.io/config": "2.1.2-develop-pedago.
|
|
154
|
+
"@edifice.io/client": "2.1.2-develop-pedago.20250305164234",
|
|
155
|
+
"@edifice.io/config": "2.1.2-develop-pedago.20250305164234"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"@react-spring/web": "^9.7.5",
|