@frontify/guideline-blocks-settings 2.1.5 → 2.1.6
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/Attachments/AttachmentsButtonTrigger.es.js +16 -17
- package/dist/components/Attachments/AttachmentsButtonTrigger.es.js.map +1 -1
- package/dist/components/DownloadButton/DownloadButton.es.js +23 -29
- package/dist/components/DownloadButton/DownloadButton.es.js.map +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
({ children:
|
|
7
|
-
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Button as s } from "@frontify/fondue/components";
|
|
3
|
+
import { IconPaperclip as a, IconCaretDown as m } from "@frontify/fondue/icons";
|
|
4
|
+
import { forwardRef as n } from "react";
|
|
5
|
+
const p = n(
|
|
6
|
+
({ children: r, ...o }, e) => /* @__PURE__ */ i(
|
|
7
|
+
s,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
]),
|
|
9
|
+
ref: e,
|
|
10
|
+
size: "small",
|
|
11
|
+
rounding: "full",
|
|
12
|
+
emphasis: "default",
|
|
14
13
|
"data-test-id": "attachments-button-trigger",
|
|
15
14
|
...o,
|
|
16
15
|
children: [
|
|
17
|
-
/* @__PURE__ */ t(
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */ t(
|
|
16
|
+
/* @__PURE__ */ t(a, { size: "16" }),
|
|
17
|
+
r,
|
|
18
|
+
/* @__PURE__ */ t(m, { size: "12" })
|
|
20
19
|
]
|
|
21
20
|
}
|
|
22
21
|
)
|
|
23
22
|
);
|
|
24
|
-
|
|
23
|
+
p.displayName = "AttachmentsButtonTrigger";
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
p as AttachmentsButtonTrigger
|
|
27
26
|
};
|
|
28
27
|
//# sourceMappingURL=AttachmentsButtonTrigger.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentsButtonTrigger.es.js","sources":["../../../src/components/Attachments/AttachmentsButtonTrigger.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport {
|
|
1
|
+
{"version":3,"file":"AttachmentsButtonTrigger.es.js","sources":["../../../src/components/Attachments/AttachmentsButtonTrigger.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Button } from '@frontify/fondue/components';\nimport { IconCaretDown, IconPaperclip } from '@frontify/fondue/icons';\nimport { forwardRef } from 'react';\n\nimport { type AttachmentsTriggerProps } from './types';\n\nexport const AttachmentsButtonTrigger = forwardRef<HTMLButtonElement, AttachmentsTriggerProps>(\n ({ children, ...props }, ref) => (\n <Button\n ref={ref}\n size=\"small\"\n rounding=\"full\"\n emphasis=\"default\"\n data-test-id=\"attachments-button-trigger\"\n {...props}\n >\n <IconPaperclip size=\"16\" />\n {children}\n <IconCaretDown size=\"12\" />\n </Button>\n ),\n);\n\nAttachmentsButtonTrigger.displayName = 'AttachmentsButtonTrigger';\n"],"names":["AttachmentsButtonTrigger","forwardRef","children","props","ref","jsxs","Button","jsx","IconPaperclip","IconCaretDown"],"mappings":";;;;AAQO,MAAMA,IAA2BC;AAAA,EACpC,CAAC,EAAE,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACrB,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,KAAAF;AAAA,MACA,MAAK;AAAA,MACL,UAAS;AAAA,MACT,UAAS;AAAA,MACT,gBAAa;AAAA,MACZ,GAAGD;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAI,EAACC,GAAA,EAAc,MAAK,KAAA,CAAK;AAAA,QACxBN;AAAA,QACD,gBAAAK,EAACE,GAAA,EAAc,MAAK,KAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGrC;AAEAT,EAAyB,cAAc;"}
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import { IconArrowCircleDown as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"button",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children: /* @__PURE__ */ t("span", { className: "tw-flex tw-text-x-small tw-font-primary tw-items-center tw-gap-1 tw-rounded-full tw-bg-primary-on-primary hover:tw-bg-primary-on-primary active:tw-bg-primary-on-primary tw-text-primary tw-outline tw-outline-1 tw-outline-offset-1 tw-p-1.5 tw-outline-line-mid", children: /* @__PURE__ */ t(w, { size: "16" }) })
|
|
24
|
-
}
|
|
25
|
-
) }),
|
|
26
|
-
/* @__PURE__ */ t(o.Content, { side: "top", children: "Download" })
|
|
27
|
-
] });
|
|
28
|
-
};
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as t, Button as i } from "@frontify/fondue/components";
|
|
3
|
+
import { IconArrowCircleDown as l } from "@frontify/fondue/icons";
|
|
4
|
+
const u = ({ onDownload: e, ariaLabel: r }) => /* @__PURE__ */ n(t.Root, { enterDelay: 500, children: [
|
|
5
|
+
/* @__PURE__ */ o(t.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
|
|
6
|
+
i,
|
|
7
|
+
{
|
|
8
|
+
"aria-label": r ?? "Download",
|
|
9
|
+
onPress: e,
|
|
10
|
+
"data-test-id": "download-button",
|
|
11
|
+
aspect: "square",
|
|
12
|
+
emphasis: "default",
|
|
13
|
+
rounding: "full",
|
|
14
|
+
size: "small",
|
|
15
|
+
type: "button",
|
|
16
|
+
variant: "default",
|
|
17
|
+
hugWidth: !0,
|
|
18
|
+
children: /* @__PURE__ */ o(l, { size: 16 })
|
|
19
|
+
}
|
|
20
|
+
) }),
|
|
21
|
+
/* @__PURE__ */ o(t.Content, { side: "top", children: "Download" })
|
|
22
|
+
] });
|
|
29
23
|
export {
|
|
30
|
-
|
|
24
|
+
u as DownloadButton
|
|
31
25
|
};
|
|
32
26
|
//# sourceMappingURL=DownloadButton.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadButton.es.js","sources":["../../../src/components/DownloadButton/DownloadButton.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Tooltip } from '@frontify/fondue/components';\nimport { IconArrowCircleDown } from '@frontify/fondue/icons';\
|
|
1
|
+
{"version":3,"file":"DownloadButton.es.js","sources":["../../../src/components/DownloadButton/DownloadButton.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Button, Tooltip } from '@frontify/fondue/components';\nimport { IconArrowCircleDown } from '@frontify/fondue/icons';\n\nimport { type DownloadButtonProps } from './types';\n\nexport const DownloadButton = ({ onDownload, ariaLabel }: DownloadButtonProps) => {\n return (\n <Tooltip.Root enterDelay={500}>\n <Tooltip.Trigger asChild>\n <Button\n aria-label={ariaLabel ?? 'Download'}\n onPress={onDownload}\n data-test-id=\"download-button\"\n aspect=\"square\"\n emphasis=\"default\"\n rounding=\"full\"\n size=\"small\"\n type=\"button\"\n variant=\"default\"\n hugWidth\n >\n <IconArrowCircleDown size={16} />\n </Button>\n </Tooltip.Trigger>\n <Tooltip.Content side=\"top\">Download</Tooltip.Content>\n </Tooltip.Root>\n );\n};\n"],"names":["DownloadButton","onDownload","ariaLabel","jsxs","Tooltip","jsx","Button","IconArrowCircleDown"],"mappings":";;;AAOO,MAAMA,IAAiB,CAAC,EAAE,YAAAC,GAAY,WAAAC,QAErC,gBAAAC,EAACC,EAAQ,MAAR,EAAa,YAAY,KACtB,UAAA;AAAA,EAAA,gBAAAC,EAACD,EAAQ,SAAR,EAAgB,SAAO,IACpB,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,cAAYJ,KAAa;AAAA,MACzB,SAASD;AAAA,MACT,gBAAa;AAAA,MACb,QAAO;AAAA,MACP,UAAS;AAAA,MACT,UAAS;AAAA,MACT,MAAK;AAAA,MACL,MAAK;AAAA,MACL,SAAQ;AAAA,MACR,UAAQ;AAAA,MAER,UAAA,gBAAAI,EAACE,GAAA,EAAoB,MAAM,GAAA,CAAI;AAAA,IAAA;AAAA,EAAA,GAEvC;AAAA,oBACCH,EAAQ,SAAR,EAAgB,MAAK,OAAM,UAAA,WAAA,CAAQ;AAAA,GACxC;"}
|