@fluidattacks/design 1.2.18 → 1.2.19
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/design.js +7 -2
- package/dist/design.mjs +9 -4
- package/dist/gradients.svg +13 -0
- package/dist/src/components/search-bar/index.d.ts +3 -0
- package/dist/src/components/search-bar/item-searching/index.d.ts +1 -1
- package/dist/src/components/search-bar/styles.d.ts +8 -4
- package/dist/src/components/search-bar/types.d.ts +22 -3
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/src/components/search-bar/dropdown-items/index.d.ts +0 -0
package/dist/design.js
CHANGED
|
@@ -249,6 +249,11 @@ Check the top-level render call using <`+$+">.")}return b}}function je(f,b){{if(
|
|
|
249
249
|
transform: ${o===void 0?"":`rotate(${o}deg)`};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
.fill-gradient-01 path {
|
|
253
|
+
fill: url(/gradients.svg#gradient-01);
|
|
254
|
+
fill: url(#gradient-01);
|
|
255
|
+
}
|
|
256
|
+
|
|
252
257
|
${()=>{const s=n===void 0?"filter: brightness(50%);":`color: ${n};`;return e===!0?`
|
|
253
258
|
&:hover {
|
|
254
259
|
${s}
|
|
@@ -262,7 +267,7 @@ Check the top-level render call using <`+$+">.")}return b}}function je(f,b){{if(
|
|
|
262
267
|
&:hover:not([disabled]) {
|
|
263
268
|
transform: scale(1.2);
|
|
264
269
|
}
|
|
265
|
-
`;const Pr=S.forwardRef(function({clickable:t,disabled:r,hoverColor:n,icon:o,iconClass:i="",iconColor:s,iconMask:c,iconSize:u,iconTransform:d,iconType:h="fa-solid",onClick:y,rotation:w,...v},T){return Y.jsx(rf,{$clickable:t,$color:s,$disabled:r,$hoverColor:n,$rotation:w,$size:u,"data-testid":`${o}-icon`,onClick:y,ref:T,...v,children:Y.jsx("i",{className:`${h} fa-${o} ${i}`,...c!==void 0?{"data-fa-mask":c}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${h}-${o}`)}),nf=S.forwardRef(function({aligned:t="end",progressTime:r=10,items:n,bgColor:o,variant:i="simple"},s){const u=i==="progress"&&n.length>1,[d,h]=S.useState(!!u),[y,w]=S.useState(u?0:-1),[v,T]=S.useState(0),O=S.useCallback(R=>()=>{w(R),zu(R,y,h),u&&T(0)},[y]);return S.useEffect(()=>{if(u&&d){const R=()=>{w(E=>E===n.length-1?0:E+1)};v===100&&(T(0),R())}},[v,d]),S.useEffect(()=>{if(u&&d){const R=setInterval(()=>{T(E=>E===100?0:E+1)},Qu(r));return()=>{clearInterval(R)}}},[v,d]),Y.jsx(qt,{ref:s,children:n.map((R,E)=>{const A=E===y&&d;return Y.jsxs(qt,{bgColor:o??de.palette.white,children:[u?Y.jsx(qt,{bgColor:de.palette.gray[200],display:Ia(A),height:"4px",children:Y.jsx(ef,{$animationTime:r,bgGradient:de.palette.gradients["01"],height:"100%",width:`${v}%`})}):void 0,Y.jsxs(qt,{bgColorHover:qu(i),borderBottom:Fu(E,A,n.length,i),borderColor:Gu(i),borderTop:Vu(A,i),cursor:"pointer",onClick:O(E),padding:Uu(i),children:[Y.jsxs(qt,{display:"flex",flexDirection:Yu(t),gap:.75,justify:"space-between",children:[Y.jsx(yr,{color:de.palette.gray[800],fontWeight:"bold",size:Ma(i),sizeSm:"sm",children:R.title}),Y.jsx(Pr,{icon:Bu(A,i),iconColor:Hu(i),iconSize:"xs",iconType:"fa-light"})]}),Y.jsx(vs,{isSelectedAndOpen:A,item:R,render:i!=="platform",variant:i})]}),Y.jsx(vs,{isSelectedAndOpen:A,item:R,render:i==="platform",variant:i})]},R.title)})})}),{getVariant:of}=sa(e=>({ghost:`
|
|
270
|
+
`;const Pr=S.forwardRef(function({clickable:t,disabled:r,hoverColor:n,icon:o,iconClass:i="",iconColor:s,iconMask:c,iconSize:u,iconTransform:d,iconType:h="fa-solid",onClick:y,rotation:w,...v},T){return Y.jsx(rf,{$clickable:t,$color:s,$disabled:r,$hoverColor:n,$rotation:w,$size:u,"data-testid":`${o}-icon`,onClick:y,ref:T,...v,children:Y.jsx("i",{className:`${h} fa-${o} ${i}`,...c!==void 0?{"data-fa-mask":c}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${h}-${o}`)}),nf=S.forwardRef(function({aligned:t="end",progressTime:r=10,items:n,bgColor:o,variant:i="simple"},s){const u=i==="progress"&&n.length>1,[d,h]=S.useState(!!u),[y,w]=S.useState(u?0:-1),[v,T]=S.useState(0),O=S.useCallback(R=>()=>{w(R),zu(R,y,h),u&&T(0)},[y,u]);return S.useEffect(()=>{if(u&&d){const R=()=>{w(E=>E===n.length-1?0:E+1)};v===100&&(T(0),R())}},[v,n,d,u]),S.useEffect(()=>{if(u&&d){const R=setInterval(()=>{T(E=>E===100?0:E+1)},Qu(r));return()=>{clearInterval(R)}}},[v,r,d,u]),Y.jsx(qt,{ref:s,children:n.map((R,E)=>{const A=E===y&&d;return Y.jsxs(qt,{bgColor:o??de.palette.white,children:[u?Y.jsx(qt,{bgColor:de.palette.gray[200],display:Ia(A),height:"4px",children:Y.jsx(ef,{$animationTime:r,bgGradient:de.palette.gradients["01"],height:"100%",width:`${v}%`})}):void 0,Y.jsxs(qt,{bgColorHover:qu(i),borderBottom:Fu(E,A,n.length,i),borderColor:Gu(i),borderTop:Vu(A,i),cursor:"pointer",onClick:O(E),padding:Uu(i),children:[Y.jsxs(qt,{display:"flex",flexDirection:Yu(t),gap:.75,justify:"space-between",children:[Y.jsx(yr,{color:de.palette.gray[800],fontWeight:"bold",size:Ma(i),sizeSm:"sm",children:R.title}),Y.jsx(Pr,{icon:Bu(A,i),iconColor:Hu(i),iconSize:"xs",iconType:"fa-light"})]}),Y.jsx(vs,{isSelectedAndOpen:A,item:R,render:i!=="platform",variant:i})]}),Y.jsx(vs,{isSelectedAndOpen:A,item:R,render:i==="platform",variant:i})]},R.title)})})}),{getVariant:of}=sa(e=>({ghost:`
|
|
266
271
|
background: ${e.palette.white};
|
|
267
272
|
border: none;
|
|
268
273
|
color: ${e.palette.gray[800]};
|
|
@@ -623,7 +628,7 @@ Check the top-level render call using <`+m+">.")}return p}function Vr(a,p){if(!(
|
|
|
623
628
|
}
|
|
624
629
|
}
|
|
625
630
|
`}
|
|
626
|
-
`,$v=({disabled:e=!1,mode:t,onClick:r,text:n})=>Y.jsx(wv,{className:`${e&&"disabled"} ${t}`,disabled:e,onClick:r,children:Y.jsx(yr,{color:"inherit",size:"sm",sizeSm:"xs",children:n})}),Ev=[{text:"EN"},{text:"ES"}],Tv=({items:e,handleClick:t,mode:r="light"})=>{const n=e??Ev,[o,i]=S.useState(n[0].text),s=S.useCallback(c=>()=>{t(c.text),i(c.text)},[]);return Y.jsxs(Sv,{children:[Y.jsxs(_v,{className:r,children:[Y.jsx(Pr,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),Y.jsx(xv,{children:n.map((c,u)=>Y.jsx($v,{disabled:c.disabled,mode:r,onClick:s(c),text:c.text},`${c.text}_${u}`))})]})},Av={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Ov=({publicId:e,variant:t})=>Y.jsx(qt,{...Av[t],children:Y.jsx(rl,{alt:"logo",publicId:e})}),Cv=Be.div`
|
|
631
|
+
`,$v=({disabled:e=!1,mode:t,onClick:r,text:n})=>Y.jsx(wv,{className:`${e&&"disabled"} ${t}`,disabled:e,onClick:r,children:Y.jsx(yr,{color:"inherit",size:"sm",sizeSm:"xs",children:n})}),Ev=[{text:"EN"},{text:"ES"}],Tv=({items:e,handleClick:t,mode:r="light"})=>{const n=e??Ev,[o,i]=S.useState(n[0].text),s=S.useCallback(c=>()=>{t(c.text),i(c.text)},[t]);return Y.jsxs(Sv,{children:[Y.jsxs(_v,{className:r,children:[Y.jsx(Pr,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),Y.jsx(xv,{children:n.map((c,u)=>Y.jsx($v,{disabled:c.disabled,mode:r,onClick:s(c),text:c.text},`${c.text}_${u}`))})]})},Av={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Ov=({publicId:e,variant:t})=>Y.jsx(qt,{...Av[t],children:Y.jsx(rl,{alt:"logo",publicId:e})}),Cv=Be.div`
|
|
627
632
|
${({theme:e})=>`
|
|
628
633
|
align-items: center;
|
|
629
634
|
display: flex;
|
package/dist/design.mjs
CHANGED
|
@@ -2372,6 +2372,11 @@ const ku = {
|
|
|
2372
2372
|
transform: ${o === void 0 ? "" : `rotate(${o}deg)`};
|
|
2373
2373
|
}
|
|
2374
2374
|
|
|
2375
|
+
.fill-gradient-01 path {
|
|
2376
|
+
fill: url(/gradients.svg#gradient-01);
|
|
2377
|
+
fill: url(#gradient-01);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2375
2380
|
${() => {
|
|
2376
2381
|
const s = n === void 0 ? "filter: brightness(50%);" : `color: ${n};`;
|
|
2377
2382
|
return e === !0 ? `
|
|
@@ -2440,7 +2445,7 @@ const Zr = xr(function({
|
|
|
2440
2445
|
(C) => () => {
|
|
2441
2446
|
w(C), Ju(C, y, h), u && E(0);
|
|
2442
2447
|
},
|
|
2443
|
-
[y]
|
|
2448
|
+
[y, u]
|
|
2444
2449
|
);
|
|
2445
2450
|
return Se(() => {
|
|
2446
2451
|
if (u && d) {
|
|
@@ -2451,7 +2456,7 @@ const Zr = xr(function({
|
|
|
2451
2456
|
};
|
|
2452
2457
|
v === 100 && (E(0), C());
|
|
2453
2458
|
}
|
|
2454
|
-
}, [v, d]), Se(() => {
|
|
2459
|
+
}, [v, n, d, u]), Se(() => {
|
|
2455
2460
|
if (u && d) {
|
|
2456
2461
|
const C = setInterval(() => {
|
|
2457
2462
|
E(
|
|
@@ -2462,7 +2467,7 @@ const Zr = xr(function({
|
|
|
2462
2467
|
clearInterval(C);
|
|
2463
2468
|
};
|
|
2464
2469
|
}
|
|
2465
|
-
}, [v, d]), /* @__PURE__ */ H.jsx(er, { ref: s, children: n.map((C, $) => {
|
|
2470
|
+
}, [v, r, d, u]), /* @__PURE__ */ H.jsx(er, { ref: s, children: n.map((C, $) => {
|
|
2466
2471
|
const T = $ === y && d;
|
|
2467
2472
|
return /* @__PURE__ */ H.jsxs(er, { bgColor: o ?? fe.palette.white, children: [
|
|
2468
2473
|
u ? /* @__PURE__ */ H.jsx(
|
|
@@ -9315,7 +9320,7 @@ const $v = ({
|
|
|
9315
9320
|
(c) => () => {
|
|
9316
9321
|
t(c.text), i(c.text);
|
|
9317
9322
|
},
|
|
9318
|
-
[]
|
|
9323
|
+
[t]
|
|
9319
9324
|
);
|
|
9320
9325
|
return /* @__PURE__ */ H.jsxs(Rv, { children: [
|
|
9321
9326
|
/* @__PURE__ */ H.jsxs(Ov, { className: r, children: [
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="0" height="0">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="gradient-01" gradientTransform="rotate(-45deg)">
|
|
4
|
+
<stop stop-color="#F32637"/>
|
|
5
|
+
<stop offset="1" stop-color="#B8075D"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
|
|
8
|
+
<linearGradient id="gradient-02" gradientTransform="rotate(-45deg)">
|
|
9
|
+
<stop stop-color="#FCFCFD"/>
|
|
10
|
+
<stop offset="1" stop-color="#667085"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IItemSearchingProps } from '../types';
|
|
2
|
-
declare const ItemSearching: ({ icon, showIcon,
|
|
2
|
+
declare const ItemSearching: ({ hit, icon, showIcon, }: Readonly<IItemSearchingProps>) => JSX.Element;
|
|
3
3
|
export { ItemSearching };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
declare const StyledItemSearching: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').
|
|
2
|
-
declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
1
|
+
declare const StyledItemSearching: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
2
|
+
declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}>, never>, never>> & string;
|
|
3
5
|
declare const StyledSearchBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
declare const StyledSearchBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').
|
|
6
|
+
declare const StyledSearchBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
|
|
7
|
+
declare const StyledSearchInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
8
|
+
declare const StyledSearchReset: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
5
9
|
declare const StyledDropdownItems: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
-
export { IconWrapper, StyledDropdownItems, StyledItemSearching, StyledSearchBar, StyledSearchBox, };
|
|
10
|
+
export { IconWrapper, StyledDropdownItems, StyledItemSearching, StyledSearchBar, StyledSearchBox, StyledSearchInput, StyledSearchReset, };
|
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { IIconModifiable } from '../@core';
|
|
2
|
+
type THit = Record<string, unknown>;
|
|
2
3
|
/**
|
|
3
4
|
* Item searching component props.
|
|
5
|
+
* @property {THit} hit The matched item of the search query.
|
|
4
6
|
* @property {IconName} [icon] Icon to show with item.
|
|
5
7
|
* @property {boolean} [showIcon] True if the item includes an icon.
|
|
6
|
-
* @property {string} title The title of the search page.
|
|
7
8
|
*/
|
|
8
9
|
interface IItemSearchingProps {
|
|
10
|
+
hit: THit;
|
|
9
11
|
icon?: IIconModifiable["icon"];
|
|
10
12
|
showIcon?: boolean;
|
|
11
|
-
title: string;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Search bar component props.
|
|
16
|
+
* @property {Function} clear A function to clear the search query.
|
|
17
|
+
* @property {THit[]} items The matched items returned from Algolia.
|
|
18
|
+
* @property {string} [placeholder] The search bar placeholder.
|
|
19
|
+
* @property {Function} refine A function to set a new query and searches.
|
|
20
|
+
* @property {Function} sendEvent A function to send click or conversion events.
|
|
21
|
+
* @property {boolean} [showHits] Whether or not to show the hit options.
|
|
22
|
+
* @property {string} query The query from the last search.
|
|
23
|
+
*/
|
|
24
|
+
interface ISearchBarProps {
|
|
25
|
+
clear: () => void;
|
|
26
|
+
items: THit[];
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
refine: (value: string) => void;
|
|
29
|
+
showHits?: boolean;
|
|
30
|
+
query: string;
|
|
31
|
+
}
|
|
32
|
+
export type { IItemSearchingProps, ISearchBarProps };
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-\[500px\]{height:500px}.max-h-min{max-height:-moz-min-content;max-height:min-content}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-\[500px\]{height:500px}.max-h-min{max-height:-moz-min-content;max-height:min-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"styled-components": "6.1.13"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
+
"@storybook/addon-a11y": "8.3.6",
|
|
19
20
|
"@storybook/addon-essentials": "8.3.6",
|
|
20
21
|
"@storybook/addon-interactions": "8.3.6",
|
|
21
22
|
"@storybook/addon-links": "8.3.6",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"eslint-plugin-prettier": "5.2.1",
|
|
39
40
|
"eslint-plugin-project-structure": "3.0.1",
|
|
40
41
|
"eslint-plugin-react": "7.37.0",
|
|
42
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
41
43
|
"postcss": "8.4.47",
|
|
42
44
|
"postcss-styled-syntax": "0.6.4",
|
|
43
45
|
"remark-gfm": "4.0.0",
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
"preview": "vite preview",
|
|
80
82
|
"storybook": "storybook dev"
|
|
81
83
|
},
|
|
82
|
-
"version": "1.2.
|
|
84
|
+
"version": "1.2.19",
|
|
83
85
|
"eslintConfig": {
|
|
84
86
|
"extends": [
|
|
85
87
|
"plugin:storybook/recommended"
|
|
File without changes
|