najwer23morsels 0.20.2 → 0.20.4
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/lib/Footer.js +1 -1
- package/lib/{Grid-DaGizIDc.js → Grid-DHMMPY22.js} +1 -1
- package/lib/Grid.js +1 -1
- package/lib/button/Button.d.ts +7 -7
- package/lib/footer/Footer.d.ts +2 -2
- package/lib/grid/Grid.d.ts +29 -12
- package/lib/input/Input.d.ts +5 -5
- package/lib/picture/Picture.d.ts +5 -5
- package/lib/textbox/TextBox.d.ts +8 -8
- package/package.json +1 -1
package/lib/Footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{G as t}from"./Grid-
|
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{G as t}from"./Grid-DHMMPY22.js";import{T as r}from"./TextBox-CWSg4nm8.js";import{s as i,g as n}from"./style-inject.es-CrVRO2OA.js";import"./Loader-D8OrIi__.js";import"react";var a={n23mFooter:"Footer-module_n23mFooter__R0RUZ",n23mFooterPush:"Footer-module_n23mFooterPush__LbDeJ",n23mFooterContainer:"Footer-module_n23mFooterContainer__gMHjx"};i("@layer n23mFooter{html{height:100%}body{min-height:100%;position:relative}.Footer-module_n23mFooter__R0RUZ{.Footer-module_n23mFooterPush__LbDeJ{padding-bottom:100px}.Footer-module_n23mFooterContainer__gMHjx{background-color:var(--bc);bottom:0;height:100px;position:absolute;width:100%}}}");const l=({children:i,author:l="Mariusz Najwer",className:m,initialYear:s="2019",backgroundColor:d="#333333",color:c="white",style:h,...p})=>o("footer",{className:[a.n23mFooter,"n23mFooter",m].filter(Boolean).join(" "),...p,style:{...n({"--bc":d}),...h},children:[e("div",{className:a.n23mFooterPush}),e("div",{className:a.n23mFooterContainer,children:o(t,{layout:"container",widthMax:"1600px",children:[e(t,{layout:"flex",widthMax:"1400px",padding:"20px 0 0",justifyContent:"center",children:o(r,{mobileSize:22,desktopSize:22,color:c,tag:"p",children:["© ",l]})}),e(t,{layout:"flex",widthMax:"1400px",padding:"0",justifyContent:"center",children:o(r,{mobileSize:12,desktopSize:12,color:c,tag:"p",children:[s," - ",(new Date).getFullYear()]})})]})})]});l.displayName="Footer";export{l as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as i,jsx as r}from"react/jsx-runtime";import{L as d}from"./Loader-D8OrIi__.js";import{s as a,g as m}from"./style-inject.es-CrVRO2OA.js";var n={n23mGridFlex:"Grid-module_n23mGridFlex__bsotF",n23mGridContainer:"Grid-module_n23mGridContainer__G1O3I",n23mGridColumns:"Grid-module_n23mGridColumns__oyScE"};a("@layer n23mGrid{.Grid-module_n23mGridContainer__G1O3I,.Grid-module_n23mGridFlex__bsotF{box-sizing:border-box;flex-wrap:var(--grid-fw,nowrap);margin:var(--grid-m);max-width:var(--grid-wx);min-height:var(--grid-mh,auto);min-width:var(--grid-wn);padding:var(--grid-p)}.Grid-module_n23mGridFlex__bsotF{align-items:var(--grid-ai,center);column-gap:var(--grid-cg,0);display:flex;justify-content:var(--grid-jc,space-between);row-gap:var(--grid-rg)}.Grid-module_n23mGridColumns__oyScE{column-gap:var(--grid-cg,0);display:flex;flex-wrap:wrap;row-gap:var(--grid-rg);width:100%}.Grid-module_n23mGridColumns__oyScE>div{width:calc(100%/var(--gfc) - ((var(--gfc) - 1)/var(--gfc))*var(--grid-cg, 0px))}@media (max-width:767.98px){.Grid-module_n23mGridColumns__oyScE>div{--gfc:var(--grid-cm)}}@media (min-width:768px) and (max-width:1199.98px){.Grid-module_n23mGridColumns__oyScE>div{--gfc:var(--grid-ct)}}@media (min-width:1200px) and (max-width:1599.98px){.Grid-module_n23mGridColumns__oyScE>div{--gfc:var(--grid-csd)}}@media (min-width:1600px){.Grid-module_n23mGridColumns__oyScE>div{--gfc:var(--grid-cd)}}}");const o=({children:a,widthMin:o="0px",widthMax:e="1920px",padding:g="0px",margin:t="auto",layout:l,gap:c,col:s,loading:p=!1,justifyContent:G,alignItems:_,minHeight:x,flexWrap:u,className:v,style:w,...h})=>"container"===l||"flex"===l?i("div",{className:[n["n23mGrid"+l.charAt(0).toUpperCase()+l.slice(1)],"n23mGrid"+l.charAt(0).toUpperCase()+l.slice(1),v].filter(Boolean).join(" "),style:{...m({"--grid-p":g,"--grid-m":t,"--grid-jc":G,"--grid-cg":c?.col,"--grid-rg":c?.row,"--grid-ai":_,"--grid-fw":u,"--grid-mh":x,"--grid-wn":o,"--grid-wx":e}),...w},...h,children:[!p&&a,p&&r(d,{minHeight:`${x}`})]}):r("div",{className:[n.n23mGridColumns,"n23mGridColumns",v].filter(Boolean).join(" "),style:{"--grid-cm":s.mobile.toString(),"--grid-ct":s.tablet.toString(),"--grid-csd":s.smallDesktop.toString(),"--grid-cd":s.desktop.toString(),"--grid-cg":c.col,"--grid-rg":c.row},...h,children:a});o.displayName="Grid";export{o as G};
|
package/lib/Grid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{G as Grid}from"./Grid-
|
|
1
|
+
export{G as Grid}from"./Grid-DHMMPY22.js";import"react/jsx-runtime";import"./Loader-D8OrIi__.js";import"./TextBox-CWSg4nm8.js";import"react";import"./style-inject.es-CrVRO2OA.js";
|
package/lib/button/Button.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
backgroundColor?:
|
|
5
|
-
padding?:
|
|
6
|
-
margin?:
|
|
7
|
-
height:
|
|
8
|
-
width:
|
|
4
|
+
backgroundColor?: React.CSSProperties['color'];
|
|
5
|
+
padding?: React.CSSProperties['padding'];
|
|
6
|
+
margin?: React.CSSProperties['margin'];
|
|
7
|
+
height: React.CSSProperties['height'];
|
|
8
|
+
width: React.CSSProperties['width'];
|
|
9
9
|
loading?: boolean;
|
|
10
|
-
backgroundColorDisabled?:
|
|
11
|
-
borderColor?:
|
|
10
|
+
backgroundColorDisabled?: React.CSSProperties['color'];
|
|
11
|
+
borderColor?: React.CSSProperties['color'];
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
}
|
|
14
14
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
package/lib/footer/Footer.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
style?: React.CSSProperties;
|
|
4
4
|
author?: string;
|
|
5
5
|
initialYear?: number;
|
|
6
|
-
color:
|
|
7
|
-
backgroundColor?:
|
|
6
|
+
color: React.CSSProperties['color'];
|
|
7
|
+
backgroundColor?: React.CSSProperties['color'];
|
|
8
8
|
}
|
|
9
9
|
export declare const Footer: React.FC<FooterProps>;
|
|
10
10
|
export {};
|
package/lib/grid/Grid.d.ts
CHANGED
|
@@ -9,21 +9,38 @@ interface Col {
|
|
|
9
9
|
smallDesktop: number;
|
|
10
10
|
desktop: number;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
children?: React.ReactNode;
|
|
12
|
+
type GridBase = React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement> & {
|
|
14
13
|
widthMin?: string;
|
|
15
14
|
widthMax?: string;
|
|
16
|
-
padding?: string
|
|
17
|
-
margin?: string
|
|
15
|
+
padding?: string;
|
|
16
|
+
margin?: string;
|
|
18
17
|
minHeight?: string;
|
|
19
18
|
loading?: boolean;
|
|
20
|
-
gap?: Gap;
|
|
21
|
-
col?: Col;
|
|
22
|
-
layout: 'columns' | 'container' | 'flex';
|
|
23
|
-
justifyContent?: string;
|
|
24
|
-
alignItems?: string;
|
|
25
|
-
flexWrap?: string;
|
|
26
19
|
style?: React.CSSProperties;
|
|
27
|
-
}
|
|
28
|
-
export
|
|
20
|
+
}>;
|
|
21
|
+
export type GridContainerProps = GridBase & {
|
|
22
|
+
layout: 'container';
|
|
23
|
+
gap?: Gap;
|
|
24
|
+
justifyContent?: never;
|
|
25
|
+
alignItems?: never;
|
|
26
|
+
flexWrap?: never;
|
|
27
|
+
col?: never;
|
|
28
|
+
};
|
|
29
|
+
export type GridFlexProps = GridBase & {
|
|
30
|
+
layout: 'flex';
|
|
31
|
+
gap?: Gap;
|
|
32
|
+
justifyContent?: React.CSSProperties['justifyContent'];
|
|
33
|
+
alignItems?: React.CSSProperties['alignItems'];
|
|
34
|
+
flexWrap?: React.CSSProperties['flexWrap'];
|
|
35
|
+
col?: never;
|
|
36
|
+
};
|
|
37
|
+
export type GridColumnsProps = GridBase & {
|
|
38
|
+
layout: 'columns';
|
|
39
|
+
gap: Gap;
|
|
40
|
+
col: Col;
|
|
41
|
+
justifyContent?: never;
|
|
42
|
+
alignItems?: never;
|
|
43
|
+
flexWrap?: never;
|
|
44
|
+
};
|
|
45
|
+
export declare const Grid: React.FC<GridColumnsProps | GridFlexProps | GridContainerProps>;
|
|
29
46
|
export {};
|
package/lib/input/Input.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ interface InputBase extends React.HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
type?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
inputRef?: React.RefObject<HTMLInputElement | null>;
|
|
8
|
-
labelColor?:
|
|
9
|
-
inputColorBorder?:
|
|
10
|
-
inputColor?:
|
|
8
|
+
labelColor?: React.CSSProperties['color'];
|
|
9
|
+
inputColorBorder?: React.CSSProperties['color'];
|
|
10
|
+
inputColor?: React.CSSProperties['color'];
|
|
11
11
|
defaultValue?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
validatorOptions?: ValidatorOptions;
|
|
@@ -15,11 +15,11 @@ interface InputBase extends React.HTMLAttributes<HTMLElement> {
|
|
|
15
15
|
onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
16
16
|
value?: string;
|
|
17
17
|
}
|
|
18
|
-
type InputProps = InputBase & {
|
|
18
|
+
export type InputProps = InputBase & {
|
|
19
19
|
kind?: 'input' | 'textarea';
|
|
20
20
|
name: string;
|
|
21
21
|
};
|
|
22
|
-
type SelectProps = InputBase & {
|
|
22
|
+
export type SelectProps = InputBase & {
|
|
23
23
|
kind: 'select';
|
|
24
24
|
name?: never;
|
|
25
25
|
id: string;
|
package/lib/picture/Picture.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ interface PictureProps extends React.HTMLAttributes<HTMLPictureElement> {
|
|
|
7
7
|
arDesktop?: number;
|
|
8
8
|
arMobile?: number;
|
|
9
9
|
draggable?: boolean;
|
|
10
|
-
border?:
|
|
11
|
-
borderColor?:
|
|
12
|
-
maxHeight?:
|
|
13
|
-
maxHeightMobile?:
|
|
14
|
-
maxHeightDesktop?:
|
|
10
|
+
border?: React.CSSProperties['color'];
|
|
11
|
+
borderColor?: React.CSSProperties['color'];
|
|
12
|
+
maxHeight?: React.CSSProperties['maxHeight'];
|
|
13
|
+
maxHeightMobile?: React.CSSProperties['maxHeight'];
|
|
14
|
+
maxHeightDesktop?: React.CSSProperties['maxHeight'];
|
|
15
15
|
sizes?: string;
|
|
16
16
|
srcset?: string;
|
|
17
17
|
loading?: 'eager' | 'lazy';
|
package/lib/textbox/TextBox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TextBoxTag = 'h1' | 'h2' | 'h3' | 'p' | 'div' | 'span' | 'a' | 'label';
|
|
1
|
+
export type TextBoxTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span' | 'a' | 'label';
|
|
2
2
|
interface TextBoxProps extends React.HTMLAttributes<HTMLDivElement | HTMLAnchorElement | HTMLLabelElement> {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
tag?: TextBoxTag;
|
|
@@ -8,13 +8,13 @@ interface TextBoxProps extends React.HTMLAttributes<HTMLDivElement | HTMLAnchorE
|
|
|
8
8
|
target?: string;
|
|
9
9
|
rel?: string;
|
|
10
10
|
href?: string;
|
|
11
|
-
color?:
|
|
12
|
-
colorHover?:
|
|
13
|
-
margin?:
|
|
14
|
-
fontWeight?:
|
|
15
|
-
fontWeightHover?:
|
|
16
|
-
textAlign?:
|
|
17
|
-
textWrap?:
|
|
11
|
+
color?: React.CSSProperties['color'];
|
|
12
|
+
colorHover?: React.CSSProperties['color'];
|
|
13
|
+
margin?: React.CSSProperties['margin'];
|
|
14
|
+
fontWeight?: React.CSSProperties['fontWeight'];
|
|
15
|
+
fontWeightHover?: React.CSSProperties['fontWeight'];
|
|
16
|
+
textAlign?: React.CSSProperties['textAlign'];
|
|
17
|
+
textWrap?: React.CSSProperties['textWrap'];
|
|
18
18
|
style?: React.CSSProperties;
|
|
19
19
|
htmlFor?: string;
|
|
20
20
|
}
|