@troychaplin/parlour-ui 0.2.1 → 0.2.2
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/_shared/client-CX8vAvQg.mjs +161 -0
- package/dist/_shared/client-lHAE36Xt.cjs +1 -0
- package/dist/_shared/shared-BI7Rq0Xx.cjs +1 -0
- package/dist/_shared/{shared-CT4yszFm.mjs → shared-Bl6G7QNK.mjs} +26 -26
- package/dist/components/Button/index.cjs +1 -1
- package/dist/components/Button/index.mjs +28 -2
- package/dist/components/Button/styles.css +6 -1
- package/dist/components/Button/styles.scss +6 -1
- package/dist/components/ButtonGroup/index.cjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +9 -2
- package/dist/components/SiteHeader/SiteHeader.d.ts +6 -1
- package/dist/components/SiteHeader/SiteHeader.d.ts.map +1 -1
- package/dist/components/SiteHeader/index.cjs +1 -1
- package/dist/components/SiteHeader/index.d.ts +7 -1
- package/dist/components/SiteHeader/index.d.ts.map +1 -1
- package/dist/components/SiteHeader/index.mjs +21 -38
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_shared/client-b7IZMCzB.cjs +0 -1
- package/dist/_shared/client-gLQ31wVz.mjs +0 -176
- package/dist/_shared/shared-C56WCOfJ.cjs +0 -1
- package/dist/components/_shared/Button-CAFrgdq8.mjs +0 -28
- package/dist/components/_shared/Button-CQIUEu-m.cjs +0 -1
- package/dist/components/_shared/ButtonGroup-B0V_8y-2.mjs +0 -9
- package/dist/components/_shared/ButtonGroup-ChqwMTps.cjs +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./useLinkContext-CJko6HGf.mjs";
|
|
3
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/Button/Button.tsx
|
|
5
|
-
var n = ({ text: n = "Button", color: r = "medium", rounded: i = "sm", type: a = "button", isSmall: o = !1, isFull: s = !1, isOutline: c = !1, disabled: l = !1, className: u, ...d }) => {
|
|
6
|
-
let f = e(), p = [
|
|
7
|
-
"parlour-button",
|
|
8
|
-
l ? "parlour-button--disabled" : `parlour-button--${r}`,
|
|
9
|
-
i && `parlour-button--radius-${i}`,
|
|
10
|
-
c && !l && "parlour-button--outline",
|
|
11
|
-
o && "parlour-button--small",
|
|
12
|
-
s && "parlour-button--full",
|
|
13
|
-
u
|
|
14
|
-
].filter(Boolean).join(" ");
|
|
15
|
-
return d.href === void 0 ? /* @__PURE__ */ t("button", {
|
|
16
|
-
type: a,
|
|
17
|
-
className: p,
|
|
18
|
-
disabled: l,
|
|
19
|
-
...d,
|
|
20
|
-
children: n
|
|
21
|
-
}) : /* @__PURE__ */ t(f, {
|
|
22
|
-
className: p,
|
|
23
|
-
...d,
|
|
24
|
-
children: n
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { n as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";const e=require("./useLinkContext-DwwV1iqK.cjs");let t=require("react/jsx-runtime");var n=({text:n=`Button`,color:r=`medium`,rounded:i=`sm`,type:a=`button`,isSmall:o=!1,isFull:s=!1,isOutline:c=!1,disabled:l=!1,className:u,...d})=>{let f=e.t(),p=[`parlour-button`,l?`parlour-button--disabled`:`parlour-button--${r}`,i&&`parlour-button--radius-${i}`,c&&!l&&`parlour-button--outline`,o&&`parlour-button--small`,s&&`parlour-button--full`,u].filter(Boolean).join(` `);return d.href===void 0?(0,t.jsx)(`button`,{type:a,className:p,disabled:l,...d,children:n}):(0,t.jsx)(f,{className:p,...d,children:n})};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/ButtonGroup/ButtonGroup.tsx
|
|
4
|
-
var t = ({ children: t, align: n = "start" }) => /* @__PURE__ */ e("div", {
|
|
5
|
-
className: `parlour-buttongroup parlour-buttongroup--justify-${n}`,
|
|
6
|
-
children: t
|
|
7
|
-
});
|
|
8
|
-
//#endregion
|
|
9
|
-
export { t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,align:t=`start`})=>(0,n.jsx)(`div`,{className:`parlour-buttongroup parlour-buttongroup--justify-${t}`,children:e});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|