pmg-ui-kit 0.0.98 → 0.1.0

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.
@@ -0,0 +1,8 @@
1
+ type RotateIconProps = {
2
+ onClick?: () => void;
3
+ width?: number;
4
+ height?: number;
5
+ color?: string;
6
+ };
7
+ export declare const RotateIcon: ({ onClick, width, height, color }: RotateIconProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const RotateIcon = ({ onClick, width = 24, height = 24, color = "currentColor" }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", onClick: onClick, className: "icon icon-tabler icons-tabler-outline icon-tabler-rotate-clockwise", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5" })] }));
package/dist/index.d.ts CHANGED
@@ -78,6 +78,7 @@ export * from './icons/PercentageIcon';
78
78
  export * from './icons/PlusIcon';
79
79
  export * from './icons/ProgressIcon';
80
80
  export * from './icons/RefreshIcon';
81
+ export * from './icons/RotateIcon';
81
82
  export * from './icons/SaveDiscIcon';
82
83
  export * from './icons/SaveIcon';
83
84
  export * from './icons/SearchIcon';
package/dist/index.js CHANGED
@@ -78,6 +78,7 @@ export * from './icons/PercentageIcon';
78
78
  export * from './icons/PlusIcon';
79
79
  export * from './icons/ProgressIcon';
80
80
  export * from './icons/RefreshIcon';
81
+ export * from './icons/RotateIcon';
81
82
  export * from './icons/SaveDiscIcon';
82
83
  export * from './icons/SaveIcon';
83
84
  export * from './icons/SearchIcon';
@@ -6,5 +6,5 @@ interface AccordionProps {
6
6
  className?: string;
7
7
  onOpen?: () => void | Promise<void>;
8
8
  }
9
- export declare const AccordionTest: ({ title, content, defaultOpen, className, onOpen }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Accordion: ({ title, content, defaultOpen, className, onOpen }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from "react";
3
- export const AccordionTest = ({ title, content, defaultOpen, className, onOpen }) => {
3
+ export const Accordion = ({ title, content, defaultOpen, className, onOpen }) => {
4
4
  const [isOpen, setIsOpen] = useState(defaultOpen);
5
5
  const [contentHeight, setContentHeight] = useState(defaultOpen ? undefined : 0);
6
6
  const contentRef = useRef(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmg-ui-kit",
3
- "version": "0.0.98",
3
+ "version": "0.1.00",
4
4
  "description": "Components library for PMG projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",