linkedunion-design-kit 1.1.2 → 1.1.3
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/MediaCard/Card.js +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/styles/global.css +43 -0
- package/package.json +2 -3
- package/dist/app/layout.jsx +0 -13
- package/dist/app/page.jsx +0 -71
- package/dist/components/Border/BorderRadius/BorderRadius.jsx +0 -12
- package/dist/components/Border/BorderRadius/BorderRadius.stories.jsx +0 -17
- package/dist/components/Border/BorderRadius/BorderRadiusTable.jsx +0 -61
- package/dist/components/Border/BorderRadius/BorderRadiusView.jsx +0 -8
- package/dist/components/Border/BorderWidth/BorderWidth.jsx +0 -12
- package/dist/components/Border/BorderWidth/BorderWidth.stories.jsx +0 -17
- package/dist/components/Border/BorderWidth/BorderWidthTable.jsx +0 -36
- package/dist/components/Border/BorderWidth/ViewBorderWidth.jsx +0 -8
- package/dist/components/Button/Button.jsx +0 -16
- package/dist/components/Button/Button.stories.jsx +0 -109
- package/dist/components/Color/Color.jsx +0 -16
- package/dist/components/Color/Color.stories.jsx +0 -76
- package/dist/components/Icons/IconView.jsx +0 -23
- package/dist/components/Icons/IconView.stories.jsx +0 -8
- package/dist/components/Icons/LUIcon.jsx +0 -20
- package/dist/components/Icons/LUIcon.stories.jsx +0 -29
- package/dist/components/Images/LuImage.jsx +0 -6
- package/dist/components/Images/LuImage.stories.jsx +0 -37
- package/dist/components/Size/MinWidthHeight.jsx +0 -8
- package/dist/components/Size/MinWidthHeight.stories.jsx +0 -22
- package/dist/components/Size/Size.jsx +0 -6
- package/dist/components/Size/Size.stories.jsx +0 -22
- package/dist/components/Size/WidthHeight.jsx +0 -8
- package/dist/components/Size/WidthHeight.stories.jsx +0 -22
- package/dist/components/Spacing/Margin/Margin.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginBottom.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginLeft.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginRight.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginToken.jsx +0 -27
- package/dist/components/Spacing/Margin/MarginToken.stories.jsx +0 -7
- package/dist/components/Spacing/Margin/MarginTop.jsx +0 -87
- package/dist/components/Spacing/Padding/Padding.jsx +0 -87
- package/dist/components/Spacing/Padding/PaddingBottom.jsx +0 -86
- package/dist/components/Spacing/Padding/PaddingLeft.jsx +0 -86
- package/dist/components/Spacing/Padding/PaddingRight.jsx +0 -87
- package/dist/components/Spacing/Padding/PaddingToken.jsx +0 -27
- package/dist/components/Spacing/Padding/PaddingToken.stories.jsx +0 -7
- package/dist/components/Spacing/Padding/PaddingTop.jsx +0 -87
- package/dist/components/Typography/Typography.jsx +0 -8
- package/dist/components/Typography/Typography.stories.jsx +0 -51
- package/dist/global.css +0 -10817
|
@@ -2,10 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Image } from "../Images/LuImage";
|
|
3
3
|
import { Button } from "../Button/Button";
|
|
4
4
|
import { cardLayoutEnum, contentTypeEnum, orientationEnum } from "../../utils/enum";
|
|
5
|
-
import styles from "./Card.module.css";
|
|
6
5
|
export var Card = function (_a) {
|
|
7
6
|
var _b = _a.image, image = _b === void 0 ? '/images/demo-image.jpg' : _b, _c = _a.layout, layout = _c === void 0 ? cardLayoutEnum.horizontal : _c, _d = _a.mediaPosition, mediaPosition = _d === void 0 ? orientationEnum.landscape : _d, _e = _a.heading, heading = _e === void 0 ? 'Heading Text' : _e, _f = _a.body, body = _f === void 0 ? 'The quick brown fox jumps over the lazy dog.' : _f, _g = _a.className, className = _g === void 0 ? '' : _g, _h = _a.btnLabel, btnLabel = _h === void 0 ? 'View More' : _h;
|
|
8
7
|
return (_jsx(_Fragment, { children: layout === cardLayoutEnum.horizontal ?
|
|
9
|
-
_jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex gap-x-[20px] w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: mediaPosition }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light "
|
|
10
|
-
: (_jsx(_Fragment, { children: _jsxs("div", { className: "lu-pd-400 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex flex-col items-center w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: mediaPosition }), _jsxs("div", { className: "
|
|
8
|
+
_jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex gap-x-[20px] w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: mediaPosition }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light horizontal_body_text", children: body })] }), _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" })] })] })
|
|
9
|
+
: (_jsx(_Fragment, { children: _jsxs("div", { className: "lu-pd-400 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex flex-col items-center w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: mediaPosition }), _jsxs("div", { className: "flex flex-col items-center lu-m-250", children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light", children: body })] }), _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" })] }) })) }));
|
|
11
10
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/styles/global.css
CHANGED
|
@@ -10611,129 +10611,170 @@ table, th, td {
|
|
|
10611
10611
|
.lu-ml-3000 {
|
|
10612
10612
|
margin-left: var(--lu-spacing-3000);
|
|
10613
10613
|
}
|
|
10614
|
+
|
|
10615
|
+
@media (max-width: 430px) {
|
|
10616
|
+
.horizontal_body_text {
|
|
10617
|
+
display: -webkit-box;
|
|
10618
|
+
-webkit-line-clamp: 2;
|
|
10619
|
+
/* Limits text to 2 lines */
|
|
10620
|
+
line-clamp: 2;
|
|
10621
|
+
/* Limits text to 2 lines */
|
|
10622
|
+
-webkit-box-orient: vertical;
|
|
10623
|
+
overflow: hidden;
|
|
10624
|
+
text-overflow: ellipsis;
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
|
|
10614
10628
|
.before\:absolute::before {
|
|
10615
10629
|
content: var(--tw-content);
|
|
10616
10630
|
position: absolute;
|
|
10617
10631
|
}
|
|
10632
|
+
|
|
10618
10633
|
.before\:h-\[300px\]::before {
|
|
10619
10634
|
content: var(--tw-content);
|
|
10620
10635
|
height: 300px;
|
|
10621
10636
|
}
|
|
10637
|
+
|
|
10622
10638
|
.before\:w-\[480px\]::before {
|
|
10623
10639
|
content: var(--tw-content);
|
|
10624
10640
|
width: 480px;
|
|
10625
10641
|
}
|
|
10642
|
+
|
|
10626
10643
|
.before\:-translate-x-1\/2::before {
|
|
10627
10644
|
content: var(--tw-content);
|
|
10628
10645
|
--tw-translate-x: -50%;
|
|
10629
10646
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
10630
10647
|
}
|
|
10648
|
+
|
|
10631
10649
|
.before\:rounded-full::before {
|
|
10632
10650
|
content: var(--tw-content);
|
|
10633
10651
|
border-radius: 9999px;
|
|
10634
10652
|
}
|
|
10653
|
+
|
|
10635
10654
|
.before\:bg-gradient-radial::before {
|
|
10636
10655
|
content: var(--tw-content);
|
|
10637
10656
|
background-image: radial-gradient(var(--tw-gradient-stops));
|
|
10638
10657
|
}
|
|
10658
|
+
|
|
10639
10659
|
.before\:from-white::before {
|
|
10640
10660
|
content: var(--tw-content);
|
|
10641
10661
|
--tw-gradient-from: #FEFEFE var(--tw-gradient-from-position);
|
|
10642
10662
|
--tw-gradient-to: rgb(254 254 254 / 0) var(--tw-gradient-to-position);
|
|
10643
10663
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
10644
10664
|
}
|
|
10665
|
+
|
|
10645
10666
|
.before\:to-transparent::before {
|
|
10646
10667
|
content: var(--tw-content);
|
|
10647
10668
|
--tw-gradient-to: transparent var(--tw-gradient-to-position);
|
|
10648
10669
|
}
|
|
10670
|
+
|
|
10649
10671
|
.before\:blur-2xl::before {
|
|
10650
10672
|
content: var(--tw-content);
|
|
10651
10673
|
--tw-blur: blur(40px);
|
|
10652
10674
|
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);
|
|
10653
10675
|
}
|
|
10676
|
+
|
|
10654
10677
|
.before\:content-\[\'\'\]::before {
|
|
10655
10678
|
--tw-content: '';
|
|
10656
10679
|
content: var(--tw-content);
|
|
10657
10680
|
}
|
|
10681
|
+
|
|
10658
10682
|
.after\:absolute::after {
|
|
10659
10683
|
content: var(--tw-content);
|
|
10660
10684
|
position: absolute;
|
|
10661
10685
|
}
|
|
10686
|
+
|
|
10662
10687
|
.after\:-z-20::after {
|
|
10663
10688
|
content: var(--tw-content);
|
|
10664
10689
|
z-index: -20;
|
|
10665
10690
|
}
|
|
10691
|
+
|
|
10666
10692
|
.after\:h-\[180px\]::after {
|
|
10667
10693
|
content: var(--tw-content);
|
|
10668
10694
|
height: 180px;
|
|
10669
10695
|
}
|
|
10696
|
+
|
|
10670
10697
|
.after\:w-\[240px\]::after {
|
|
10671
10698
|
content: var(--tw-content);
|
|
10672
10699
|
width: 240px;
|
|
10673
10700
|
}
|
|
10701
|
+
|
|
10674
10702
|
.after\:translate-x-1\/3::after {
|
|
10675
10703
|
content: var(--tw-content);
|
|
10676
10704
|
--tw-translate-x: 33.333333%;
|
|
10677
10705
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
10678
10706
|
}
|
|
10707
|
+
|
|
10679
10708
|
.after\:bg-gradient-conic::after {
|
|
10680
10709
|
content: var(--tw-content);
|
|
10681
10710
|
background-image: conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops));
|
|
10682
10711
|
}
|
|
10712
|
+
|
|
10683
10713
|
.after\:from-sky-200::after {
|
|
10684
10714
|
content: var(--tw-content);
|
|
10685
10715
|
--tw-gradient-from: #bae6fd var(--tw-gradient-from-position);
|
|
10686
10716
|
--tw-gradient-to: rgb(186 230 253 / 0) var(--tw-gradient-to-position);
|
|
10687
10717
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
10688
10718
|
}
|
|
10719
|
+
|
|
10689
10720
|
.after\:via-blue-200::after {
|
|
10690
10721
|
content: var(--tw-content);
|
|
10691
10722
|
--tw-gradient-to: rgb(191 219 254 / 0) var(--tw-gradient-to-position);
|
|
10692
10723
|
--tw-gradient-stops: var(--tw-gradient-from), #bfdbfe var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
10693
10724
|
}
|
|
10725
|
+
|
|
10694
10726
|
.after\:blur-2xl::after {
|
|
10695
10727
|
content: var(--tw-content);
|
|
10696
10728
|
--tw-blur: blur(40px);
|
|
10697
10729
|
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);
|
|
10698
10730
|
}
|
|
10731
|
+
|
|
10699
10732
|
.after\:content-\[\'\'\]::after {
|
|
10700
10733
|
--tw-content: '';
|
|
10701
10734
|
content: var(--tw-content);
|
|
10702
10735
|
}
|
|
10736
|
+
|
|
10703
10737
|
.hover\:border-gray-300:hover {
|
|
10704
10738
|
--tw-border-opacity: 1;
|
|
10705
10739
|
border-color: rgb(183 186 189 / var(--tw-border-opacity, 1));
|
|
10706
10740
|
}
|
|
10741
|
+
|
|
10707
10742
|
.hover\:bg-gray-100:hover {
|
|
10708
10743
|
--tw-bg-opacity: 1;
|
|
10709
10744
|
background-color: rgb(236 237 238 / var(--tw-bg-opacity, 1));
|
|
10710
10745
|
}
|
|
10746
|
+
|
|
10711
10747
|
.hover\:bg-gray-200:hover {
|
|
10712
10748
|
--tw-bg-opacity: 1;
|
|
10713
10749
|
background-color: rgb(210 212 213 / var(--tw-bg-opacity, 1));
|
|
10714
10750
|
}
|
|
10751
|
+
|
|
10715
10752
|
.group:hover .group-hover\:translate-x-1 {
|
|
10716
10753
|
--tw-translate-x: 0.25rem;
|
|
10717
10754
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
10718
10755
|
}
|
|
10756
|
+
|
|
10719
10757
|
@media (prefers-reduced-motion: reduce) {
|
|
10720
10758
|
|
|
10721
10759
|
.motion-reduce\:transform-none {
|
|
10722
10760
|
transform: none;
|
|
10723
10761
|
}
|
|
10724
10762
|
}
|
|
10763
|
+
|
|
10725
10764
|
@media (min-width: 640px) {
|
|
10726
10765
|
|
|
10727
10766
|
.sm\:grid-cols-4 {
|
|
10728
10767
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
10729
10768
|
}
|
|
10730
10769
|
}
|
|
10770
|
+
|
|
10731
10771
|
@media (min-width: 768px) {
|
|
10732
10772
|
|
|
10733
10773
|
.md\:grid-cols-6 {
|
|
10734
10774
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
10735
10775
|
}
|
|
10736
10776
|
}
|
|
10777
|
+
|
|
10737
10778
|
@media (min-width: 1024px) {
|
|
10738
10779
|
|
|
10739
10780
|
.lg\:pointer-events-auto {
|
|
@@ -10810,6 +10851,7 @@ table, th, td {
|
|
|
10810
10851
|
height: 360px;
|
|
10811
10852
|
}
|
|
10812
10853
|
}
|
|
10854
|
+
|
|
10813
10855
|
@media (prefers-color-scheme: dark) {
|
|
10814
10856
|
|
|
10815
10857
|
.dark\:border-neutral-800 {
|
|
@@ -10897,6 +10939,7 @@ table, th, td {
|
|
|
10897
10939
|
background-color: rgb(38 38 38 / 0.3);
|
|
10898
10940
|
}
|
|
10899
10941
|
}
|
|
10942
|
+
|
|
10900
10943
|
@media (min-width: 1024px) {
|
|
10901
10944
|
|
|
10902
10945
|
@media (prefers-color-scheme: dark) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkedunion-design-kit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
-
"styles/global.css"
|
|
8
|
-
"dist/components/MediaCard/Card.module.css"
|
|
7
|
+
"styles/global.css"
|
|
9
8
|
],
|
|
10
9
|
"main": "dist/index.js",
|
|
11
10
|
"types": "dist/index.d.ts",
|
package/dist/app/layout.jsx
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Inter } from 'next/font/google';
|
|
2
|
-
import '../styles/globals.css';
|
|
3
|
-
var inter = Inter({ subsets: ['latin'] });
|
|
4
|
-
export var metadata = {
|
|
5
|
-
title: 'Create Next App',
|
|
6
|
-
description: 'Generated by create next app',
|
|
7
|
-
};
|
|
8
|
-
export default function RootLayout(_a) {
|
|
9
|
-
var children = _a.children;
|
|
10
|
-
return (<html lang="en">
|
|
11
|
-
<body className={inter.className}>{children}</body>
|
|
12
|
-
</html>);
|
|
13
|
-
}
|
package/dist/app/page.jsx
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Image from 'next/image';
|
|
2
|
-
export default function Home() {
|
|
3
|
-
return (<main className="flex min-h-screen flex-col items-center justify-between p-24">
|
|
4
|
-
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
|
|
5
|
-
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
|
|
6
|
-
Get started by editing
|
|
7
|
-
<code className="font-mono font-bold">app/page.tsx</code>
|
|
8
|
-
</p>
|
|
9
|
-
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
|
|
10
|
-
<a className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0" href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" target="_blank" rel="noopener noreferrer">
|
|
11
|
-
By{' '}
|
|
12
|
-
<Image src="/vercel.svg" alt="Vercel Logo" className="dark:invert" width={100} height={24} priority/>
|
|
13
|
-
</a>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px] z-[-1]">
|
|
18
|
-
<Image className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" src="/next.svg" alt="Next.js Logo" width={180} height={37} priority/>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
|
|
22
|
-
<a href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
23
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
24
|
-
Docs{' '}
|
|
25
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
26
|
-
->
|
|
27
|
-
</span>
|
|
28
|
-
</h2>
|
|
29
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
30
|
-
Find in-depth information about Next.js features and API.
|
|
31
|
-
</p>
|
|
32
|
-
</a>
|
|
33
|
-
|
|
34
|
-
<a href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
35
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
36
|
-
Learn{' '}
|
|
37
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
38
|
-
->
|
|
39
|
-
</span>
|
|
40
|
-
</h2>
|
|
41
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
42
|
-
Learn about Next.js in an interactive course with quizzes!
|
|
43
|
-
</p>
|
|
44
|
-
</a>
|
|
45
|
-
|
|
46
|
-
<a href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
47
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
48
|
-
Templates{' '}
|
|
49
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
50
|
-
->
|
|
51
|
-
</span>
|
|
52
|
-
</h2>
|
|
53
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
54
|
-
Explore the Next.js 13 playground.
|
|
55
|
-
</p>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
<a href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
59
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
60
|
-
Deploy{' '}
|
|
61
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
62
|
-
->
|
|
63
|
-
</span>
|
|
64
|
-
</h2>
|
|
65
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
66
|
-
Instantly deploy your Next.js site to a shareable URL with Vercel.
|
|
67
|
-
</p>
|
|
68
|
-
</a>
|
|
69
|
-
</div>
|
|
70
|
-
</main>);
|
|
71
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BorderRadiusTable } from "./BorderRadiusTable";
|
|
2
|
-
import { BorderRadiusView } from "./BorderRadiusView";
|
|
3
|
-
export var BorderRadius = function (_a) {
|
|
4
|
-
var borderRadius = _a.borderRadius;
|
|
5
|
-
return (<>
|
|
6
|
-
<div className="lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100">Border Radius</div>
|
|
7
|
-
<BorderRadiusTable />
|
|
8
|
-
<div className="lu-mt-150">
|
|
9
|
-
<BorderRadiusView borderRadius={borderRadius}/>
|
|
10
|
-
</div>
|
|
11
|
-
</>);
|
|
12
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BorderRadius } from "./BorderRadius";
|
|
2
|
-
import { borderRadiusList } from "../../../utils";
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/Border",
|
|
5
|
-
component: BorderRadius,
|
|
6
|
-
};
|
|
7
|
-
var Template = function (args) { return <BorderRadius {...args}/>; };
|
|
8
|
-
export var borderRadius = Template.bind({});
|
|
9
|
-
borderRadius.args = {
|
|
10
|
-
borderRadius: 'lu-border-rounded-xs',
|
|
11
|
-
};
|
|
12
|
-
borderRadius.argTypes = {
|
|
13
|
-
borderRadius: {
|
|
14
|
-
control: { type: "select", labels: Object.fromEntries(borderRadiusList.map(function (borderRadius) { return [borderRadius.key, borderRadius.label]; })) },
|
|
15
|
-
options: borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { table_data_className, table_header_className, table_row_className } from "../../../utils";
|
|
2
|
-
export var BorderRadiusTable = function () {
|
|
3
|
-
return (<>
|
|
4
|
-
<table className="lu-width-100 lu-font-size-x-small lu-font-weight-medium">
|
|
5
|
-
<thead className="bg-primary-100">
|
|
6
|
-
<tr>
|
|
7
|
-
<th className={"".concat(table_header_className)}>Alias Token Name</th>
|
|
8
|
-
<th className={"".concat(table_header_className)}>Base unit Multiplier of 8</th>
|
|
9
|
-
<th className={"".concat(table_header_className)}>Value(PX)(REM)</th>
|
|
10
|
-
</tr>
|
|
11
|
-
</thead>
|
|
12
|
-
<tbody>
|
|
13
|
-
<tr>
|
|
14
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-none</span></td>
|
|
15
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0x</span></td>
|
|
16
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0px = 0rem</span></td>
|
|
17
|
-
</tr>
|
|
18
|
-
<tr>
|
|
19
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-xs</span></td>
|
|
20
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.25x</span></td>
|
|
21
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>2px = 0.125rem</span></td>
|
|
22
|
-
</tr>
|
|
23
|
-
<tr>
|
|
24
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-sm</span></td>
|
|
25
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.5x</span></td>
|
|
26
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>4px = 0.25rem</span></td>
|
|
27
|
-
</tr>
|
|
28
|
-
<tr>
|
|
29
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-md</span></td>
|
|
30
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.75x</span></td>
|
|
31
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>6px = 0.375rem</span></td>
|
|
32
|
-
</tr>
|
|
33
|
-
<tr>
|
|
34
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-lg</span></td>
|
|
35
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>1x</span></td>
|
|
36
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>8px = 0.5rem</span></td>
|
|
37
|
-
</tr>
|
|
38
|
-
<tr>
|
|
39
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-xl</span></td>
|
|
40
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>1.5x</span></td>
|
|
41
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>12px = 0.75rem</span></td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr>
|
|
44
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-2xl</span></td>
|
|
45
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>2x</span></td>
|
|
46
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>16px = 1rem</span></td>
|
|
47
|
-
</tr>
|
|
48
|
-
<tr>
|
|
49
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-3xl</span></td>
|
|
50
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>3x</span></td>
|
|
51
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>24px = 1.5rem</span></td>
|
|
52
|
-
</tr>
|
|
53
|
-
<tr>
|
|
54
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-rounded-full</span></td>
|
|
55
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>100x</span></td>
|
|
56
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>9999px</span></td>
|
|
57
|
-
</tr>
|
|
58
|
-
</tbody>
|
|
59
|
-
</table>
|
|
60
|
-
</>);
|
|
61
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var BorderRadiusView = function (_a) {
|
|
2
|
-
var borderRadius = _a.borderRadius;
|
|
3
|
-
return (<>
|
|
4
|
-
<div className={"border-primary-600 lu-pd-200 lu-size-2500 lu-border-width-125 ".concat(borderRadius)} data-testid="border-radius">
|
|
5
|
-
<p className="bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small">{borderRadius}</p>
|
|
6
|
-
</div>
|
|
7
|
-
</>);
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BorderWidthTable } from "./BorderWidthTable";
|
|
2
|
-
import { ViewBorderWidth } from "./ViewBorderWidth";
|
|
3
|
-
export var BorderWidth = function (_a) {
|
|
4
|
-
var border = _a.border;
|
|
5
|
-
return (<>
|
|
6
|
-
<div className="lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100">Border Width</div>
|
|
7
|
-
<BorderWidthTable />
|
|
8
|
-
<div className="lu-mt-150">
|
|
9
|
-
<ViewBorderWidth border={border}/>
|
|
10
|
-
</div>
|
|
11
|
-
</>);
|
|
12
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BorderWidth } from "./BorderWidth";
|
|
2
|
-
import { borderWidthList } from "../../../utils";
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/Border",
|
|
5
|
-
component: BorderWidth,
|
|
6
|
-
};
|
|
7
|
-
var Template = function (args) { return <BorderWidth {...args}/>; };
|
|
8
|
-
export var borderWidth = Template.bind({});
|
|
9
|
-
borderWidth.args = {
|
|
10
|
-
border: 'lu-border-width-125',
|
|
11
|
-
};
|
|
12
|
-
borderWidth.argTypes = {
|
|
13
|
-
border: {
|
|
14
|
-
control: { type: "select", labels: Object.fromEntries(borderWidthList.map(function (borderWidth) { return [borderWidth.key, borderWidth.label]; })) },
|
|
15
|
-
options: borderWidthList.map(function (borderWidth) { return borderWidth.key; }),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { table_data_className, table_header_className, table_row_className } from "../../../utils";
|
|
2
|
-
export var BorderWidthTable = function () {
|
|
3
|
-
return (<>
|
|
4
|
-
<table className="lu-width-100 lu-font-size-x-small lu-font-weight-medium">
|
|
5
|
-
<thead className="bg-primary-100">
|
|
6
|
-
<tr>
|
|
7
|
-
<th className={"".concat(table_header_className)}>Alias Token Name</th>
|
|
8
|
-
<th className={"".concat(table_header_className)}>Base unit Multiplier of 8</th>
|
|
9
|
-
<th className={"".concat(table_header_className)}>Value(PX)(REM)</th>
|
|
10
|
-
</tr>
|
|
11
|
-
</thead>
|
|
12
|
-
<tbody>
|
|
13
|
-
<tr>
|
|
14
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-width-125</span></td>
|
|
15
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.125x</span></td>
|
|
16
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>1px = 0.063rem</span></td>
|
|
17
|
-
</tr>
|
|
18
|
-
<tr>
|
|
19
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-width-025</span></td>
|
|
20
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.25x</span></td>
|
|
21
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>2px = 0.125rem</span></td>
|
|
22
|
-
</tr>
|
|
23
|
-
<tr>
|
|
24
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-width-050</span></td>
|
|
25
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>0.50x</span></td>
|
|
26
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>4px = 0.25rem</span></td>
|
|
27
|
-
</tr>
|
|
28
|
-
<tr>
|
|
29
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>lu-border-width-100</span></td>
|
|
30
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>1x</span></td>
|
|
31
|
-
<td className={"".concat(table_row_className)}><span className={"".concat(table_data_className)}>8px = 0.5rem</span></td>
|
|
32
|
-
</tr>
|
|
33
|
-
</tbody>
|
|
34
|
-
</table>
|
|
35
|
-
</>);
|
|
36
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var ViewBorderWidth = function (_a) {
|
|
2
|
-
var border = _a.border;
|
|
3
|
-
return (<>
|
|
4
|
-
<div className={"border-primary-600 lu-border-rounded-2xl lu-pd-200 lu-size-2500 ".concat(border)} data-testid="border-width">
|
|
5
|
-
<p className="bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small lu-text-center">{border}</p>
|
|
6
|
-
</div>
|
|
7
|
-
</>);
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LUIcon } from "../Icons/LUIcon";
|
|
2
|
-
import { buttonTypeEnum, contentTypeEnum } from "../../utils/enum";
|
|
3
|
-
export var Button = function (_a) {
|
|
4
|
-
var contentType = _a.contentType, variant = _a.variant, label = _a.label, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, size = _a.size, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
|
|
5
|
-
return (<>
|
|
6
|
-
<button className={"flex items-center ".concat(shape, " ").concat(type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant, " ").concat(className, " ").concat(contentType === contentTypeEnum.icon_only ? "icon-only ".concat(size) : size)} onClick={onClick}>
|
|
7
|
-
{contentType === contentTypeEnum.none && label}
|
|
8
|
-
{contentType === contentTypeEnum.icon_only && icon && (<LUIcon size={iconSize} icon={icon} fill={type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant}/>)}
|
|
9
|
-
{contentType === contentTypeEnum.text_with_icon && (<>
|
|
10
|
-
{iconLeft && iconLeft !== 'none' && (<LUIcon size={leftIconSize} icon={iconLeft} fill={type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant} className="lu-mr-100"/>)}
|
|
11
|
-
{label}
|
|
12
|
-
{iconRight && iconRight !== 'none' && (<LUIcon size={rightIconSize} icon={iconRight} fill={type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant} className="lu-ml-100"/>)}
|
|
13
|
-
</>)}
|
|
14
|
-
</button>
|
|
15
|
-
</>);
|
|
16
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import { Button } from "./Button";
|
|
11
|
-
import { borderRadiusList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList } from "../../utils";
|
|
12
|
-
import { iconList } from "../../utils/iconList";
|
|
13
|
-
import { buttonTypeEnum, contentTypeEnum } from "../../utils/enum";
|
|
14
|
-
export default {
|
|
15
|
-
title: "Components/Button",
|
|
16
|
-
component: Button,
|
|
17
|
-
tags: ['autodocs'],
|
|
18
|
-
};
|
|
19
|
-
var Template = function (args) { return <Button {...args}/>; };
|
|
20
|
-
export var button = Template.bind({});
|
|
21
|
-
button.args = {
|
|
22
|
-
contentType: contentTypeEnum.none,
|
|
23
|
-
variant: 'lu-btn-primary',
|
|
24
|
-
label: 'Button Text',
|
|
25
|
-
onClick: function () { return alert('Button Clicked'); },
|
|
26
|
-
shape: 'lu-border-rounded-sm',
|
|
27
|
-
size: 'lu-btn-md',
|
|
28
|
-
iconLeft: 'chart-simple',
|
|
29
|
-
leftIconSize: 'lu-icon-small',
|
|
30
|
-
icon: 'chart-simple',
|
|
31
|
-
iconSize: 'lu-icon-small',
|
|
32
|
-
type: buttonTypeEnum.fill,
|
|
33
|
-
};
|
|
34
|
-
button.argTypes = {
|
|
35
|
-
contentType: {
|
|
36
|
-
control: { type: "select" },
|
|
37
|
-
options: [contentTypeEnum.none, contentTypeEnum.text_with_icon, contentTypeEnum.icon_only],
|
|
38
|
-
description: "Determines the content of the button",
|
|
39
|
-
},
|
|
40
|
-
label: {
|
|
41
|
-
control: { type: "text" },
|
|
42
|
-
description: "Button label text",
|
|
43
|
-
if: { arg: "contentType", neq: contentTypeEnum.icon_only },
|
|
44
|
-
},
|
|
45
|
-
variant: {
|
|
46
|
-
control: { type: "select", labels: Object.fromEntries(buttonColorsList.map(function (btnColor) { return [btnColor.key, btnColor.label]; })) },
|
|
47
|
-
options: buttonColorsList.map(function (btnColor) { return btnColor.key; }),
|
|
48
|
-
},
|
|
49
|
-
iconLeft: {
|
|
50
|
-
control: { type: "select", labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })) },
|
|
51
|
-
options: __spreadArray(["none"], iconList.map(function (icon) { return icon.key; }), true),
|
|
52
|
-
if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
|
|
53
|
-
},
|
|
54
|
-
iconRight: {
|
|
55
|
-
control: { type: "select", labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })) },
|
|
56
|
-
options: __spreadArray(["none"], iconList.map(function (icon) { return icon.key; }), true),
|
|
57
|
-
if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
|
|
58
|
-
},
|
|
59
|
-
shape: {
|
|
60
|
-
control: { type: "select", labels: Object.fromEntries(borderRadiusList.map(function (borderRadius) { return [borderRadius.key, borderRadius.label]; })) },
|
|
61
|
-
options: borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
|
|
62
|
-
},
|
|
63
|
-
size: {
|
|
64
|
-
control: { type: "select", labels: Object.fromEntries(butttonSizeList.map(function (size) { return [size.key, size.label]; })) },
|
|
65
|
-
options: butttonSizeList.map(function (size) { return size.key; }),
|
|
66
|
-
description: "Select the size of the button",
|
|
67
|
-
update: function (args) {
|
|
68
|
-
var isIconOnly = args.contentType === contentTypeEnum.icon_only;
|
|
69
|
-
// Dynamically update options and labels based on contentType
|
|
70
|
-
return {
|
|
71
|
-
options: isIconOnly
|
|
72
|
-
? buttonWithIconList.map(function (size) { return size.key; })
|
|
73
|
-
: butttonSizeList.map(function (size) { return size.key; }),
|
|
74
|
-
control: {
|
|
75
|
-
type: "select",
|
|
76
|
-
labels: Object.fromEntries((isIconOnly ? buttonWithIconList : butttonSizeList).map(function (size) { return [
|
|
77
|
-
size.key,
|
|
78
|
-
size.label,
|
|
79
|
-
]; })),
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
leftIconSize: {
|
|
85
|
-
control: { type: "select", labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })) },
|
|
86
|
-
options: buttonIconSizeList.map(function (size) { return size.key; }),
|
|
87
|
-
if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
|
|
88
|
-
},
|
|
89
|
-
rightIconSize: {
|
|
90
|
-
control: { type: "select", labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })) },
|
|
91
|
-
options: buttonIconSizeList.map(function (size) { return size.key; }),
|
|
92
|
-
if: { arg: "contentType", eq: contentTypeEnum.text_with_icon },
|
|
93
|
-
},
|
|
94
|
-
icon: {
|
|
95
|
-
control: { type: "select", labels: Object.fromEntries(iconList.map(function (icon) { return [icon.key, icon.label]; })) },
|
|
96
|
-
options: iconList.map(function (icon) { return icon.key; }),
|
|
97
|
-
if: { arg: "contentType", eq: contentTypeEnum.icon_only },
|
|
98
|
-
},
|
|
99
|
-
iconSize: {
|
|
100
|
-
control: { type: "select", labels: Object.fromEntries(buttonIconSizeList.map(function (size) { return [size.key, size.label]; })) },
|
|
101
|
-
options: buttonIconSizeList.map(function (size) { return size.key; }),
|
|
102
|
-
if: { arg: "contentType", eq: contentTypeEnum.icon_only },
|
|
103
|
-
},
|
|
104
|
-
type: {
|
|
105
|
-
control: { type: "select" },
|
|
106
|
-
options: [buttonTypeEnum.fill, buttonTypeEnum.outline],
|
|
107
|
-
description: "Determines the type of the button",
|
|
108
|
-
},
|
|
109
|
-
};
|