azeriand-library 1.10.0 → 1.12.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.
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/timeline/timeline-list-item.d.ts +7 -0
- package/dist/components/timeline/timeline.d.ts +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +43 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +39 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TabProps = CardProps & {
|
|
3
|
+
items?: string[];
|
|
4
|
+
onTabSelected?: (item: string) => void;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Tab({ items, onTabSelected, defaultValue, ...cardProps }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TlListItemProps = CardProps & {
|
|
3
|
+
label?: string;
|
|
4
|
+
badge?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function TlListItem({ label, badge, ...cardProps }: TlListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TimelineProps = CardProps & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
faded?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function Timeline({ children, faded, ...cardProps }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,3 +10,6 @@ export { ThemeContext, ThemeContextComponent } from './components/theme-context'
|
|
|
10
10
|
export { Dropdown } from './components/dropdown/dropdown';
|
|
11
11
|
export { DropdownButton } from './components/dropdown/dropdown-button';
|
|
12
12
|
export { NewSlider } from './components/slider/slider';
|
|
13
|
+
export { Tab } from './components/tab/tab';
|
|
14
|
+
export { Timeline } from './components/timeline/timeline';
|
|
15
|
+
export { TlListItem } from './components/timeline/timeline-list-item';
|
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('.card{\n /* border-radius: 20px; */\n color: var(--card-text-color, white);\n}\n\n.card.glass{\n background-color: color-mix(in oklch, var(--glass-color), transparent 80%);\n border: 1px solid color-mix(in oklch, var(--glass-color), transparent 40%);\n -webkit-backface-visibility: hidden;\n -webkit-perspective: 1000;\n -webkit-transform: translate3d(0,0,0);\n -webkit-transform: translateZ(0);\n backface-visibility: hidden;\n perspective: 1000;\n transform: translate3d(0,0,0);\n transform: translateZ(0);\n}\n\n.card.mate{\n background-color: var(--glass-color);\n}\n\n.card.outlined{\n border: solid white 2px;\n}\n\nbutton .card.ghost:hover, button .card.outlined:hover{\n background: color-mix(in oklch, var(--glass-color), transparent 80%);\n}\n\nbutton .card.glass:hover{\n box-shadow: 0 4px 10px color-mix(in oklch, var(--glass-color), transparent 85%);\n}\n\nbutton .card.mate:hover{\n background-color: color-mix(in oklch, var(--glass-color), white 10%) \n}\nbutton{\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n font-weight: bold;\n}\n\nbutton:focus {\n outline: revert;\n}\n.section-name{\n color: hsla(0, 0%, 100%, 0.7);\n}input:disabled{\n color: hsla(0, 0%, 100%, 0.5);\n font-weight: bold;\n}\n\ninput::-moz-placeholder{\n color: hsla(0, 0%, 100%, 0.5);\n \n}\n\ninput::placeholder{\n color: hsla(0, 0%, 100%, 0.5);\n \n}\n\ninput::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\ninput:focus{\n outline: none;\n}.MuiDateCalendar-root{\n color: white;\n}.dropdown-content{\n box-shadow: rgba(149, 157, 165, 0.2)\n 0px 8px 24px;\n max-height: 40%vh;\n scrollbar-width: none;\n -ms-overflow-style: none;\n z-index: 10;\n}\n\n.dropdown-content::-webkit-scrollbar{\n width: 0;\n height: 0;\n}\n\n.dropdown-item:hover{\n background-color: rgb(240, 249, 255);\n}.button-open{\n border: rgb(147, 197, 253) 2px solid;\n}.vertical-line::before {\n content: "";\n position: absolute;\n width: 1.5px;\n height: 100%;\n background-color: white;\n left: 0;\n top: 0;\n transform: translateX(5.1px);\n}'));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
15
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
16
|
-
import { jsx as jsx$1, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as jsx$1, jsxs, Fragment } from "react/jsx-runtime";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, createContext, useState, useEffect } from "react";
|
|
19
19
|
import ReactDOM from "react-dom";
|
|
@@ -244,7 +244,7 @@ function requireReactIs_development$1() {
|
|
|
244
244
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
245
245
|
var Element2 = REACT_ELEMENT_TYPE;
|
|
246
246
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
247
|
-
var
|
|
247
|
+
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
248
248
|
var Lazy = REACT_LAZY_TYPE;
|
|
249
249
|
var Memo = REACT_MEMO_TYPE;
|
|
250
250
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -303,7 +303,7 @@ function requireReactIs_development$1() {
|
|
|
303
303
|
reactIs_development$1.ContextProvider = ContextProvider;
|
|
304
304
|
reactIs_development$1.Element = Element2;
|
|
305
305
|
reactIs_development$1.ForwardRef = ForwardRef;
|
|
306
|
-
reactIs_development$1.Fragment =
|
|
306
|
+
reactIs_development$1.Fragment = Fragment2;
|
|
307
307
|
reactIs_development$1.Lazy = Lazy;
|
|
308
308
|
reactIs_development$1.Memo = Memo;
|
|
309
309
|
reactIs_development$1.Portal = Portal;
|
|
@@ -17809,6 +17809,41 @@ process.env.NODE_ENV !== "production" ? Box.propTypes = {
|
|
|
17809
17809
|
function NewSlider({ defaultValue, onChange }) {
|
|
17810
17810
|
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 }) }) });
|
|
17811
17811
|
}
|
|
17812
|
+
function Tab({ items, onTabSelected, defaultValue, ...cardProps }) {
|
|
17813
|
+
const [tabSelected, setTabSelected] = useState(defaultValue);
|
|
17814
|
+
const selectTab = (item) => {
|
|
17815
|
+
setTabSelected(item);
|
|
17816
|
+
onTabSelected == null ? void 0 : onTabSelected(item);
|
|
17817
|
+
};
|
|
17818
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17819
|
+
/* @__PURE__ */ jsx$1(SectionName, { section: "Filter by" }),
|
|
17820
|
+
/* @__PURE__ */ jsx$1(Card, { className: "rounded-md w-fit", noBlur: true, noPadding: true, ...cardProps, color: "blue", children: /* @__PURE__ */ jsx$1("div", { className: "flex p-[0.4rem] gap-x-[0.5rem]", children: items && items.map((item) => /* @__PURE__ */ jsx$1(
|
|
17821
|
+
Button,
|
|
17822
|
+
{
|
|
17823
|
+
onClick: () => selectTab(item),
|
|
17824
|
+
color: "blue",
|
|
17825
|
+
appearance: item === tabSelected ? "mate" : "ghost",
|
|
17826
|
+
dark: item === tabSelected ? false : true,
|
|
17827
|
+
label: item
|
|
17828
|
+
},
|
|
17829
|
+
item
|
|
17830
|
+
)) }) })
|
|
17831
|
+
] });
|
|
17832
|
+
}
|
|
17833
|
+
function Timeline({ children, faded, ...cardProps }) {
|
|
17834
|
+
const timelineStyle = {
|
|
17835
|
+
overflowY: "visible",
|
|
17836
|
+
WebkitMaskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%)",
|
|
17837
|
+
maskImage: "linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%)"
|
|
17838
|
+
};
|
|
17839
|
+
return /* @__PURE__ */ jsx$1(Card, { className: "rounded-sm", noPadding: true, appearance: "ghost", ...cardProps, style: { ...cardProps.style, ...timelineStyle }, children: /* @__PURE__ */ jsx$1("ul", { className: "vertical-line list-disc font-bold text-start relative", style: { paddingInlineStart: 20 }, children }) });
|
|
17840
|
+
}
|
|
17841
|
+
function TlListItem({ label, badge, ...cardProps }) {
|
|
17842
|
+
return /* @__PURE__ */ jsx$1("li", { children: /* @__PURE__ */ jsx$1(Card, { noBlur: true, appearance: "ghost", noPadding: true, ...cardProps, children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center gap-x-[1rem] text-[1rem]", children: [
|
|
17843
|
+
label,
|
|
17844
|
+
badge
|
|
17845
|
+
] }) }) });
|
|
17846
|
+
}
|
|
17812
17847
|
export {
|
|
17813
17848
|
Avatar,
|
|
17814
17849
|
Badge,
|
|
@@ -17821,7 +17856,10 @@ export {
|
|
|
17821
17856
|
Input,
|
|
17822
17857
|
NewSlider,
|
|
17823
17858
|
SectionName,
|
|
17859
|
+
Tab,
|
|
17824
17860
|
ThemeContext,
|
|
17825
|
-
ThemeContextComponent
|
|
17861
|
+
ThemeContextComponent,
|
|
17862
|
+
Timeline,
|
|
17863
|
+
TlListItem
|
|
17826
17864
|
};
|
|
17827
17865
|
//# sourceMappingURL=index.esm.js.map
|