azeriand-library 1.14.1 → 1.14.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type SliderProps = {
|
|
2
2
|
defaultValue: number;
|
|
3
|
+
className?: string;
|
|
3
4
|
onChange?: (event: Event, value: number | number[]) => void;
|
|
4
5
|
};
|
|
5
|
-
export declare function NewSlider({ defaultValue, onChange }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function NewSlider({ defaultValue, className, onChange }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
package/dist/index.esm.js
CHANGED
|
@@ -15815,7 +15815,7 @@ function Button({ children, label, icon, position: position2 = "left", onClick,
|
|
|
15815
15815
|
] });
|
|
15816
15816
|
}
|
|
15817
15817
|
function Badge({ label, size, ...cardProps }) {
|
|
15818
|
-
let cardClassNames = "rounded-md";
|
|
15818
|
+
let cardClassNames = "rounded-md cursor-default";
|
|
15819
15819
|
let divClassNames = "px-1.5 py-0.5 text-[0.85rem]";
|
|
15820
15820
|
if (size === "sm") {
|
|
15821
15821
|
cardClassNames = "rounded-md";
|
|
@@ -15972,8 +15972,8 @@ function Checkbox({ label, checkedDefault = false, onChange }) {
|
|
|
15972
15972
|
setChecked(newValue);
|
|
15973
15973
|
onChange(newValue);
|
|
15974
15974
|
}
|
|
15975
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.
|
|
15976
|
-
/* @__PURE__ */ jsx$1(Button, { icon: checked ? /* @__PURE__ */ jsx$1(FaCheck, {}) : null }),
|
|
15975
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[0.5rem]", onClick: checkboxClicked, children: [
|
|
15976
|
+
/* @__PURE__ */ jsx$1(Button, { icon: checked ? /* @__PURE__ */ jsx$1(FaCheck, {}) : null, className: "min-w-[2rem] min-h-[2rem]" }),
|
|
15977
15977
|
label
|
|
15978
15978
|
] });
|
|
15979
15979
|
}
|
|
@@ -17832,8 +17832,8 @@ process.env.NODE_ENV !== "production" ? Box.propTypes = {
|
|
|
17832
17832
|
*/
|
|
17833
17833
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
17834
17834
|
} : void 0;
|
|
17835
|
-
function NewSlider({ defaultValue, onChange }) {
|
|
17836
|
-
return /* @__PURE__ */ jsx$1(Card, { noPadding: true, appearance: "ghost", children: /* @__PURE__ */ jsx$1(Box, { sx: { width: 150 }, children: /* @__PURE__ */ jsx$1(Slider, { defaultValue, "aria-label": "Default", valueLabelDisplay: "auto", onChange }) }) });
|
|
17835
|
+
function NewSlider({ defaultValue, className, onChange }) {
|
|
17836
|
+
return /* @__PURE__ */ jsx$1(Card, { noPadding: true, appearance: "ghost", className, children: /* @__PURE__ */ jsx$1(Box, { sx: { width: 150 }, children: /* @__PURE__ */ jsx$1(Slider, { defaultValue, "aria-label": "Default", valueLabelDisplay: "auto", onChange }) }) });
|
|
17837
17837
|
}
|
|
17838
17838
|
function Tab({ items, onTabSelected, defaultValue, ...cardProps }) {
|
|
17839
17839
|
const [tabSelected, setTabSelected] = useState(defaultValue);
|