@solibo/solibo-ui 0.3.27 → 0.3.28
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/README.md +53 -8
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/components/_editor/index.cjs.map +1 -1
- package/dist/components/_editor/index.js +1 -0
- package/dist/components/_editor/index.js.map +1 -1
- package/dist/components/_portal/index.cjs +1 -1
- package/dist/components/_portal/index.js +5 -5
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +9 -9
- package/dist/components/nav/index.cjs.map +1 -1
- package/dist/components/nav/index.js.map +1 -1
- package/dist/utils-DXIJVVzz.js.map +1 -1
- package/dist/utils-D_TJ8wDc.cjs.map +1 -1
- package/package.json +2 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const e=require("react/jsx-runtime"),s=require("../aside/index.cjs"),i=require("../branding/index.cjs"),a=require("../figure/index.cjs"),c=require("../icon/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const e=require("react/jsx-runtime"),s=require("../aside/index.cjs"),i=require("../branding/index.cjs"),a=require("../figure/index.cjs"),c=require("../icon/index.cjs"),l=require("../nav/index.cjs"),u="_menu_qwrez_29",m="_portal_qwrez_54",o={menu:u,portal:m},d=({children:n,portals:r,open:t=!0})=>e.jsxs("details",{className:o.menu,open:t||void 0,"data-component":"portal",children:[e.jsx("summary",{"aria-label":"Show menu",children:e.jsx(c.Icon,{name:"menu",size:"large",variant:"primary"})}),e.jsxs(s.Aside,{className:o.portal,children:[e.jsx(a.Figure,{children:e.jsx(i.Branding,{name:"logo",size:86,variant:"white"})}),r&&e.jsx(l.Nav,{horizontal:!0,children:r}),n&&n]})]});exports.Portal=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,10 +4,10 @@ import { Branding as i } from "../branding/index.js";
|
|
|
4
4
|
import { Figure as l } from "../figure/index.js";
|
|
5
5
|
import { Icon as s } from "../icon/index.js";
|
|
6
6
|
import { Nav as p } from "../nav/index.js";
|
|
7
|
-
import '../../assets/index27.css';const
|
|
8
|
-
menu:
|
|
9
|
-
portal:
|
|
10
|
-
},
|
|
7
|
+
import '../../assets/index27.css';const c = "_menu_qwrez_29", u = "_portal_qwrez_54", t = {
|
|
8
|
+
menu: c,
|
|
9
|
+
portal: u
|
|
10
|
+
}, v = ({
|
|
11
11
|
children: o,
|
|
12
12
|
portals: e,
|
|
13
13
|
open: m = !0
|
|
@@ -20,6 +20,6 @@ import '../../assets/index27.css';const u = "_menu_v7gyu_29", c = "_portal_v7gyu
|
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
v as Portal
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index38.css');const c=require("react/jsx-runtime"),_=require("../../classix-5H4IWnMA.cjs"),r=require("../../helpers-fOobx0tS.cjs"),d="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index38.css');const c=require("react/jsx-runtime"),_=require("../../classix-5H4IWnMA.cjs"),r=require("../../helpers-fOobx0tS.cjs"),d="_horizontal_vm212_1",x="_list_vm212_12",y="_columns_vm212_40",s={horizontal:d,list:x,columns:y};function j({children:t,className:a,columns:o=1,horizontal:m,ordered:u,style:h,...l}){const n=Number.isFinite(o)?Math.max(1,Math.floor(o)):1,e=_.t(a,s.list,n>1&&s.columns,m&&s.horizontal),i={...h,"--list-columns":n};return u?c.jsx("ol",{className:e,style:i,...l,"data-component":"list",children:r.wrapChildren(t)}):c.jsx("ul",{className:e,style:i,...l,"data-component":"list",children:r.wrapChildren(t)})}exports.List=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import { w as
|
|
4
|
-
import '../../assets/index38.css';const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { t as u } from "../../classix-DG18itHa.js";
|
|
3
|
+
import { w as m } from "../../helpers-Dbey5Ztb.js";
|
|
4
|
+
import '../../assets/index38.css';const f = "_horizontal_vm212_1", p = "_list_vm212_12", d = "_columns_vm212_40", t = {
|
|
5
|
+
horizontal: f,
|
|
6
|
+
list: p,
|
|
7
|
+
columns: d
|
|
8
8
|
};
|
|
9
9
|
function x({
|
|
10
10
|
children: o,
|
|
11
|
-
className:
|
|
11
|
+
className: r,
|
|
12
12
|
columns: s = 1,
|
|
13
13
|
horizontal: e,
|
|
14
14
|
ordered: h,
|
|
15
15
|
style: _,
|
|
16
16
|
...l
|
|
17
17
|
}) {
|
|
18
|
-
const n = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, i =
|
|
18
|
+
const n = Number.isFinite(s) ? Math.max(1, Math.floor(s)) : 1, i = u(r, t.list, n > 1 && t.columns, e && t.horizontal), a = {
|
|
19
19
|
..._,
|
|
20
20
|
"--list-columns": n
|
|
21
21
|
};
|
|
22
|
-
return h ? /* @__PURE__ */ c("ol", { className: i, style: a, ...l, "data-component": "list", children:
|
|
22
|
+
return h ? /* @__PURE__ */ c("ol", { className: i, style: a, ...l, "data-component": "list", children: m(o) }) : /* @__PURE__ */ c("ul", { className: i, style: a, ...l, "data-component": "list", children: m(o) });
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
x as List
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(className, horizontal && styles.horizontal, styles.nav, variants[variant])}\n data-animation={animation}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n {...props}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","default","styles","pills","tabs","Nav","animation","children","className","horizontal","variant","props","jsx","cx","nav"],"mappings":"mRAIMA,EAAW,CACfC,QAASC,EAAOD,QAChBE,MAAOD,EAAOC,MACdC,KAAMF,EAAOE,IACf,EAUaC,EAAMA,CAAC,CAClBC,UAAAA,EACAC,SAAAA,EACAC,UAAAA,EACAC,WAAAA,EAAa,GACbC,QAAAA,EAAU,UACV,GAAGC,CACK,IAENC,MAAC,MAAA,CACC,UAAWC,EAAAA,EAAGL,EAAWC,GAAcP,EAAOO,WAAYP,EAAOY,IAAKd,EAASU,CAAO,CAAC,EACvF,iBAAgBJ,EAChB,mBAAkBG,EAAa,aAAe,WAC9C,GAAIE,EAAM,iBAAA,MAETJ,SAAAA,CAAAA,CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nconst variants = {\n default: styles.default,\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = React.HTMLAttributes<HTMLElement> & {\n animation?: string;\n children?: React.ReactNode;\n className?: string;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n className,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n return (\n <nav\n className={cx(className, horizontal && styles.horizontal, styles.nav, variants[variant])}\n data-animation={animation}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n {...props}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","default","styles","pills","tabs","Nav","animation","children","className","horizontal","variant","props","jsx","cx","nav"],"mappings":";;;;;;;GAIMA,IAAW;AAAA,EACfC,SAASC,EAAOD;AAAAA,EAChBE,OAAOD,EAAOC;AAAAA,EACdC,MAAMF,EAAOE;AACf,GAUaC,IAAMA,CAAC;AAAA,EAClBC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,YAAAA,IAAa;AAAA,EACbC,SAAAA,IAAU;AAAA,EACV,GAAGC;AACK,MAEN,gBAAAC,EAAC,OAAA,EACC,WAAWC,EAAGL,GAAWC,KAAcP,EAAOO,YAAYP,EAAOY,KAAKd,EAASU,CAAO,CAAC,GACvF,kBAAgBJ,GAChB,oBAAkBG,IAAa,eAAe,YAC9C,GAAIE,GAAM,kBAAA,OAETJ,UAAAA,EAAAA,CACH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-DXIJVVzz.js","sources":["../src/utils.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nexport function useTouched(resetKey?:
|
|
1
|
+
{"version":3,"file":"utils-DXIJVVzz.js","sources":["../src/utils.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nexport function useTouched(resetKey?: unknown) {\n const [touched, setTouched] = useState(false);\n const onBlur = useCallback(() => setTouched(true), []);\n\n useEffect(() => {\n setTouched(false);\n }, [resetKey]);\n\n return { touched, onBlur };\n}\n"],"names":["useTouched","resetKey","touched","setTouched","useState","onBlur","useCallback","useEffect"],"mappings":";AAEO,SAASA,EAAWC,GAAoB;AAC7C,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,EAAK,GACtCC,IAASC,EAAY,MAAMH,EAAW,EAAI,GAAG,CAAA,CAAE;AAErDI,SAAAA,EAAU,MAAM;AACdJ,IAAAA,EAAW,EAAK;AAAA,EAClB,GAAG,CAACF,CAAQ,CAAC,GAEN;AAAA,IAAEC,SAAAA;AAAAA,IAASG,QAAAA;AAAAA,EAAAA;AACpB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-D_TJ8wDc.cjs","sources":["../src/utils.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nexport function useTouched(resetKey?:
|
|
1
|
+
{"version":3,"file":"utils-D_TJ8wDc.cjs","sources":["../src/utils.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nexport function useTouched(resetKey?: unknown) {\n const [touched, setTouched] = useState(false);\n const onBlur = useCallback(() => setTouched(true), []);\n\n useEffect(() => {\n setTouched(false);\n }, [resetKey]);\n\n return { touched, onBlur };\n}\n"],"names":["useTouched","resetKey","touched","setTouched","useState","onBlur","useCallback","useEffect"],"mappings":"sCAEO,SAASA,EAAWC,EAAoB,CAC7C,KAAM,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAS,EAAK,EACtCC,EAASC,EAAAA,YAAY,IAAMH,EAAW,EAAI,EAAG,CAAA,CAAE,EAErDI,OAAAA,EAAAA,UAAU,IAAM,CACdJ,EAAW,EAAK,CAClB,EAAG,CAACF,CAAQ,CAAC,EAEN,CAAEC,QAAAA,EAASG,OAAAA,CAAAA,CACpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solibo/solibo-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite build --watch",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"stylelint": "stylelint **/*.css",
|
|
18
18
|
"stylelint:fix": "stylelint **/*.css --fix",
|
|
19
19
|
"test": "vitest --ui --coverage.enabled=true",
|
|
20
|
-
"test:ci": "vitest run"
|
|
21
|
-
"codebuild-local": "./codebuild_build.sh -i public.ecr.aws/codebuild/amazonlinux2-aarch64-standard:3.0 -c -p default -a codebuild -l public.ecr.aws/codebuild/local-builds:aarch64"
|
|
20
|
+
"test:ci": "vitest run"
|
|
22
21
|
},
|
|
23
22
|
"main": "./dist/index.cjs",
|
|
24
23
|
"module": "./dist/index.js",
|