linkedunion-design-kit 1.4.8 → 1.5.0

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.
Files changed (115) hide show
  1. package/dist/.next/types/app/page.js +26 -1
  2. package/dist/app/layout.js +11 -7
  3. package/dist/app/page.js +10 -4
  4. package/dist/app/scripts.js +8 -3
  5. package/dist/components/Avatar/Avatar.d.ts +2 -1
  6. package/dist/components/Avatar/Avatar.js +13 -7
  7. package/dist/components/Avatar/Avatar.stories.js +19 -13
  8. package/dist/components/Border/BorderRadius/BorderRadius.js +9 -5
  9. package/dist/components/Border/BorderRadius/BorderRadius.stories.js +14 -11
  10. package/dist/components/Border/BorderRadius/BorderRadiusTable.js +8 -4
  11. package/dist/components/Border/BorderRadius/BorderRadiusView.js +7 -3
  12. package/dist/components/Border/BorderWidth/BorderWidth.js +9 -5
  13. package/dist/components/Border/BorderWidth/BorderWidth.stories.js +14 -11
  14. package/dist/components/Border/BorderWidth/BorderWidthTable.js +8 -4
  15. package/dist/components/Border/BorderWidth/ViewBorderWidth.js +7 -3
  16. package/dist/components/Button/Button.d.ts +1 -0
  17. package/dist/components/Button/Button.js +17 -8
  18. package/dist/components/Button/Button.stories.js +50 -46
  19. package/dist/components/Button/index.d.ts +4 -0
  20. package/dist/components/Button/index.js +9 -0
  21. package/dist/components/Color/BackgroundColor/BackgroundColor.d.ts +2 -0
  22. package/dist/components/Color/BackgroundColor/BackgroundColor.js +5 -0
  23. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.d.ts +10 -0
  24. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.js +100 -0
  25. package/dist/components/Color/BackgroundColor/Color.js +7 -3
  26. package/dist/components/Color/BackgroundColor/Color.stories.js +33 -30
  27. package/dist/components/Color/BackgroundColor/index.js +7 -4
  28. package/dist/components/Color/TextColor/TextColor.d.ts +3 -0
  29. package/dist/components/Color/TextColor/TextColor.js +5 -0
  30. package/dist/components/Color/TextColor/TextColor.stories.d.ts +6 -0
  31. package/dist/components/Color/TextColor/TextColor.stories.js +32 -0
  32. package/dist/components/Color/TextColor.js +7 -3
  33. package/dist/components/Color/TextColor.stories.js +14 -11
  34. package/dist/components/Icons/IconView.js +9 -5
  35. package/dist/components/Icons/IconView.stories.js +9 -6
  36. package/dist/components/Icons/LUIcon.d.ts +2 -1
  37. package/dist/components/Icons/LUIcon.js +8 -5
  38. package/dist/components/Icons/LUIcon.stories.js +23 -17
  39. package/dist/components/Images/LuImage.d.ts +1 -0
  40. package/dist/components/Images/LuImage.js +13 -5
  41. package/dist/components/Images/LuImage.stories.js +21 -18
  42. package/dist/components/Images/index.d.ts +4 -0
  43. package/dist/components/Images/index.js +6 -0
  44. package/dist/components/MediaCard/Card.d.ts +2 -1
  45. package/dist/components/MediaCard/Card.js +19 -15
  46. package/dist/components/MediaCard/Card.stories.js +28 -26
  47. package/dist/components/MediaCard/ContactProfile/ContactProfile.js +14 -10
  48. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +15 -8
  49. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +15 -8
  50. package/dist/components/MediaCard/PostByCategory/PostByCategory.js +14 -10
  51. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +15 -8
  52. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +15 -8
  53. package/dist/components/MediaCard/index.d.ts +8 -0
  54. package/dist/components/MediaCard/index.js +13 -0
  55. package/dist/components/Size/MinWidthHeight.d.ts +2 -1
  56. package/dist/components/Size/MinWidthHeight.js +6 -3
  57. package/dist/components/Size/MinWidthHeight.stories.js +19 -13
  58. package/dist/components/Size/Size.d.ts +2 -1
  59. package/dist/components/Size/Size.js +6 -3
  60. package/dist/components/Size/Size.stories.js +17 -11
  61. package/dist/components/Size/WidthHeight.d.ts +2 -1
  62. package/dist/components/Size/WidthHeight.js +6 -3
  63. package/dist/components/Size/WidthHeight.stories.js +19 -13
  64. package/dist/components/Spacing/Margin/Margin.js +8 -4
  65. package/dist/components/Spacing/Margin/MarginBottom.js +8 -4
  66. package/dist/components/Spacing/Margin/MarginLeft.js +8 -4
  67. package/dist/components/Spacing/Margin/MarginRight.js +8 -4
  68. package/dist/components/Spacing/Margin/MarginToken.js +15 -11
  69. package/dist/components/Spacing/Margin/MarginToken.stories.js +9 -6
  70. package/dist/components/Spacing/Margin/MarginTop.js +8 -4
  71. package/dist/components/Spacing/Margin/MarginX.js +8 -4
  72. package/dist/components/Spacing/Margin/MarginY.js +8 -4
  73. package/dist/components/Spacing/Padding/Padding.js +8 -4
  74. package/dist/components/Spacing/Padding/PaddingBottom.js +8 -4
  75. package/dist/components/Spacing/Padding/PaddingLeft.js +8 -4
  76. package/dist/components/Spacing/Padding/PaddingRight.js +8 -4
  77. package/dist/components/Spacing/Padding/PaddingToken.js +15 -11
  78. package/dist/components/Spacing/Padding/PaddingToken.stories.js +9 -6
  79. package/dist/components/Spacing/Padding/PaddingTop.js +8 -4
  80. package/dist/components/Spacing/Padding/PaddingX.js +8 -4
  81. package/dist/components/Spacing/Padding/PaddingY.js +8 -4
  82. package/dist/components/Title/Title.d.ts +2 -1
  83. package/dist/components/Title/Title.js +12 -6
  84. package/dist/components/Title/Title.stories.js +15 -9
  85. package/dist/components/Title/Title.test.js +14 -9
  86. package/dist/components/Typography/Body/Body.d.ts +2 -1
  87. package/dist/components/Typography/Body/Body.js +9 -6
  88. package/dist/components/Typography/Body/Body.stories.js +25 -18
  89. package/dist/components/Typography/Body/index.js +27 -24
  90. package/dist/components/Typography/Body/type.js +2 -1
  91. package/dist/components/Typography/Display/Display.d.ts +2 -1
  92. package/dist/components/Typography/Display/Display.js +9 -6
  93. package/dist/components/Typography/Display/Display.stories.js +25 -18
  94. package/dist/components/Typography/Display/index.js +24 -21
  95. package/dist/components/Typography/Display/type.js +2 -1
  96. package/dist/components/Typography/Headings/Heading.test.js +24 -19
  97. package/dist/components/Typography/Headings/Headings.d.ts +2 -1
  98. package/dist/components/Typography/Headings/Headings.js +9 -6
  99. package/dist/components/Typography/Headings/Headings.stories.js +27 -20
  100. package/dist/components/Typography/Headings/index.js +38 -35
  101. package/dist/components/Typography/Headings/type.js +2 -1
  102. package/dist/components/Typography/Typography.js +7 -3
  103. package/dist/components/Typography/Typography.stories.js +27 -24
  104. package/dist/global/components/Table/Table.js +7 -5
  105. package/dist/index.d.ts +12 -12
  106. package/dist/index.js +31 -13
  107. package/dist/tailwind.config.js +72 -67
  108. package/dist/utils/colors.js +4 -1
  109. package/dist/utils/constants.js +5 -2
  110. package/dist/utils/enums.d.ts +9 -0
  111. package/dist/utils/enums.js +23 -10
  112. package/dist/utils/iconList.js +4 -1
  113. package/dist/utils/index.d.ts +4 -4
  114. package/dist/utils/index.js +78 -85
  115. package/package.json +2 -1
@@ -1,5 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
1
26
  // File: /Users/avialdosolutions/linkedunion-design-kit/linkedunion-design-kit/app/page.tsx
2
- import * as entry from '../../../app/page.js';
27
+ var entry = __importStar(require("../../../app/page.js"));
3
28
  // Check that the entry is a valid entry
4
29
  checkFields();
5
30
  // Check the prop type of the entry function
@@ -1,12 +1,16 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Inter } from "next/font/google";
3
- import "../styles/globals.css";
4
- var inter = Inter({ subsets: ["latin"] });
5
- export var metadata = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.metadata = void 0;
4
+ exports.default = RootLayout;
5
+ var jsx_runtime_1 = require("react/jsx-runtime");
6
+ var google_1 = require("next/font/google");
7
+ require("../styles/globals.css");
8
+ var inter = (0, google_1.Inter)({ subsets: ["latin"] });
9
+ exports.metadata = {
6
10
  title: "Create Next App",
7
11
  description: "Generated by create next app",
8
12
  };
9
- export default function RootLayout(_a) {
13
+ function RootLayout(_a) {
10
14
  var children = _a.children;
11
- return (_jsx("html", { lang: "en", children: _jsx("body", { className: inter.className, children: children }) }));
15
+ return ((0, jsx_runtime_1.jsx)("html", { lang: "en", children: (0, jsx_runtime_1.jsx)("body", { className: inter.className, children: children }) }));
12
16
  }
package/dist/app/page.js CHANGED
@@ -1,5 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Image from "next/image";
3
- export default function Home() {
4
- return (_jsxs("main", { className: "flex min-h-screen flex-col items-center justify-between p-24", children: [_jsxs("div", { className: "z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex", children: [_jsxs("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", children: ["Get started by editing\u00A0", _jsx("code", { className: "font-mono font-bold", children: "app/page.tsx" })] }), _jsx("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", children: _jsxs("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", children: ["By", " ", _jsx(Image, { src: "/vercel.svg", alt: "Vercel Logo", className: "dark:invert", width: 100, height: 24, priority: true })] }) })] }), _jsx("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]", children: _jsx(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: true }) }), _jsxs("div", { className: "mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left", children: [_jsxs("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", children: [_jsxs("h2", { className: "mb-3 text-2xl font-semibold", children: ["Docs", " ", _jsx("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), _jsx("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Find in-depth information about Next.js features and API." })] }), _jsxs("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", children: [_jsxs("h2", { className: "mb-3 text-2xl font-semibold", children: ["Learn", " ", _jsx("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), _jsx("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Learn about Next.js in an interactive course with\u00A0quizzes!" })] }), _jsxs("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", children: [_jsxs("h2", { className: "mb-3 text-2xl font-semibold", children: ["Templates", " ", _jsx("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), _jsx("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Explore the Next.js 13 playground." })] }), _jsxs("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", children: [_jsxs("h2", { className: "mb-3 text-2xl font-semibold", children: ["Deploy", " ", _jsx("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), _jsx("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Instantly deploy your Next.js site to a shareable URL with Vercel." })] })] })] }));
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = Home;
7
+ var jsx_runtime_1 = require("react/jsx-runtime");
8
+ var image_1 = __importDefault(require("next/image"));
9
+ function Home() {
10
+ return ((0, jsx_runtime_1.jsxs)("main", { className: "flex min-h-screen flex-col items-center justify-between p-24", children: [(0, jsx_runtime_1.jsxs)("div", { className: "z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex", children: [(0, jsx_runtime_1.jsxs)("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", children: ["Get started by editing\u00A0", (0, jsx_runtime_1.jsx)("code", { className: "font-mono font-bold", children: "app/page.tsx" })] }), (0, jsx_runtime_1.jsx)("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", children: (0, jsx_runtime_1.jsxs)("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", children: ["By", " ", (0, jsx_runtime_1.jsx)(image_1.default, { src: "/vercel.svg", alt: "Vercel Logo", className: "dark:invert", width: 100, height: 24, priority: true })] }) })] }), (0, jsx_runtime_1.jsx)("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]", children: (0, jsx_runtime_1.jsx)(image_1.default, { className: "relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert", src: "/next.svg", alt: "Next.js Logo", width: 180, height: 37, priority: true }) }), (0, jsx_runtime_1.jsxs)("div", { className: "mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left", children: [(0, jsx_runtime_1.jsxs)("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", children: [(0, jsx_runtime_1.jsxs)("h2", { className: "mb-3 text-2xl font-semibold", children: ["Docs", " ", (0, jsx_runtime_1.jsx)("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), (0, jsx_runtime_1.jsx)("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Find in-depth information about Next.js features and API." })] }), (0, jsx_runtime_1.jsxs)("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", children: [(0, jsx_runtime_1.jsxs)("h2", { className: "mb-3 text-2xl font-semibold", children: ["Learn", " ", (0, jsx_runtime_1.jsx)("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), (0, jsx_runtime_1.jsx)("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Learn about Next.js in an interactive course with\u00A0quizzes!" })] }), (0, jsx_runtime_1.jsxs)("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", children: [(0, jsx_runtime_1.jsxs)("h2", { className: "mb-3 text-2xl font-semibold", children: ["Templates", " ", (0, jsx_runtime_1.jsx)("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), (0, jsx_runtime_1.jsx)("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Explore the Next.js 13 playground." })] }), (0, jsx_runtime_1.jsxs)("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", children: [(0, jsx_runtime_1.jsxs)("h2", { className: "mb-3 text-2xl font-semibold", children: ["Deploy", " ", (0, jsx_runtime_1.jsx)("span", { className: "inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none", children: "->" })] }), (0, jsx_runtime_1.jsx)("p", { className: "m-0 max-w-[30ch] text-sm opacity-50", children: "Instantly deploy your Next.js site to a shareable URL with Vercel." })] })] })] }));
5
11
  }
@@ -1,4 +1,7 @@
1
- export var ensureValue = function (value, fallbackValue) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getColor = exports.ensureValue = void 0;
4
+ var ensureValue = function (value, fallbackValue) {
2
5
  if (!value) {
3
6
  return fallbackValue;
4
7
  }
@@ -6,6 +9,8 @@ export var ensureValue = function (value, fallbackValue) {
6
9
  return value;
7
10
  }
8
11
  };
9
- export var getColor = function (color, fallbackColor) {
10
- return ensureValue(color, fallbackColor);
12
+ exports.ensureValue = ensureValue;
13
+ var getColor = function (color, fallbackColor) {
14
+ return (0, exports.ensureValue)(color, fallbackColor);
11
15
  };
16
+ exports.getColor = getColor;
@@ -1,2 +1,3 @@
1
1
  import { AvatarProps } from "@/types/interface";
2
- export declare const Avatar: ({ image, icon, shape, size, className, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Avatar: ({ image, icon, shape, size, className, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Avatar;
@@ -1,9 +1,15 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { LUIcon } from "../Icons/LUIcon";
3
- import { iconList } from "../../utils/iconList";
4
- import { avtarBackgroundSize } from "../../utils";
5
- export var Avatar = function (_a) {
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var jsx_runtime_1 = require("react/jsx-runtime");
7
+ var LUIcon_1 = __importDefault(require("../Icons/LUIcon"));
8
+ var iconList_1 = require("../../utils/iconList");
9
+ var utils_1 = require("../../utils");
10
+ var Avatar = function (_a) {
6
11
  var image = _a.image, _b = _a.icon, icon = _b === void 0 ? "user" : _b, shape = _a.shape, size = _a.size, className = _a.className;
7
- var defaultIcon = iconList.find(function (item) { return item.key === (icon || "user"); });
8
- return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(image ? "lu-bg-primary-200" : "lu-bg-gray-100", " flex items-center justify-center ").concat(shape, " overflow-hidden ").concat(className), style: avtarBackgroundSize(size), "data-testid": "lu-avatar", children: image ? (_jsx("img", { src: image, alt: "image", className: "w-full h-full object-cover" })) : (_jsx(LUIcon, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" })) }) }));
12
+ var defaultIcon = iconList_1.iconList.find(function (item) { return item.key === (icon || "user"); });
13
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "".concat(image ? "lu-bg-primary-200" : "lu-bg-gray-100", " flex items-center justify-center ").concat(shape, " overflow-hidden ").concat(className), style: (0, utils_1.avtarBackgroundSize)(size), "data-testid": "lu-avatar", children: image ? ((0, jsx_runtime_1.jsx)("img", { src: image, alt: "image", className: "w-full h-full object-cover" })) : ((0, jsx_runtime_1.jsx)(LUIcon_1.default, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" })) }) }));
9
14
  };
15
+ exports.default = Avatar;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,38 +10,43 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Avatar } from "./Avatar";
14
- import { avatarShapeList, avatarSizesList } from "../../utils";
15
- export default {
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.avatar = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var utils_1 = require("../../utils");
20
+ var Avatar_1 = __importDefault(require("./Avatar"));
21
+ exports.default = {
16
22
  title: "Components/Avatar",
17
- component: Avatar,
23
+ component: Avatar_1.default,
18
24
  };
19
- var Template = function (args) { return _jsx(Avatar, __assign({}, args)); };
20
- export var avatar = Template.bind({});
21
- avatar.args = {
25
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(Avatar_1.default, __assign({}, args)); };
26
+ exports.avatar = Template.bind({});
27
+ exports.avatar.args = {
22
28
  image: "/images/avatar.png",
23
29
  shape: "square",
24
30
  size: "lu-avatar-massive",
25
31
  className: "",
26
32
  icon: "user",
27
33
  };
28
- avatar.argTypes = {
34
+ exports.avatar.argTypes = {
29
35
  shape: {
30
36
  control: {
31
37
  type: "select",
32
- labels: Object.fromEntries(avatarShapeList.map(function (borderRadius) { return [
38
+ labels: Object.fromEntries(utils_1.avatarShapeList.map(function (borderRadius) { return [
33
39
  borderRadius.key,
34
40
  borderRadius.label,
35
41
  ]; })),
36
42
  },
37
- options: avatarShapeList.map(function (borderRadius) { return borderRadius.key; }),
43
+ options: utils_1.avatarShapeList.map(function (borderRadius) { return borderRadius.key; }),
38
44
  },
39
45
  size: {
40
46
  control: {
41
47
  type: "select",
42
- labels: Object.fromEntries(avatarSizesList.map(function (size) { return [size.key, size.label]; })),
48
+ labels: Object.fromEntries(utils_1.avatarSizesList.map(function (size) { return [size.key, size.label]; })),
43
49
  },
44
- options: avatarSizesList.map(function (size) { return size.key; }),
50
+ options: utils_1.avatarSizesList.map(function (size) { return size.key; }),
45
51
  },
46
52
  };
@@ -1,7 +1,11 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { BorderRadiusTable } from "./BorderRadiusTable";
3
- import { BorderRadiusView } from "./BorderRadiusView";
4
- export var BorderRadius = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BorderRadius = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var BorderRadiusTable_1 = require("./BorderRadiusTable");
6
+ var BorderRadiusView_1 = require("./BorderRadiusView");
7
+ var BorderRadius = function (_a) {
5
8
  var borderRadius = _a.borderRadius;
6
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Radius" }), _jsx(BorderRadiusTable, {}), _jsx("div", { className: "lu-mt-150", children: _jsx(BorderRadiusView, { borderRadius: borderRadius }) })] }));
9
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Radius" }), (0, jsx_runtime_1.jsx)(BorderRadiusTable_1.BorderRadiusTable, {}), (0, jsx_runtime_1.jsx)("div", { className: "lu-mt-150", children: (0, jsx_runtime_1.jsx)(BorderRadiusView_1.BorderRadiusView, { borderRadius: borderRadius }) })] }));
7
10
  };
11
+ exports.BorderRadius = BorderRadius;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,27 +10,29 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { BorderRadius } from "./BorderRadius";
14
- import { borderRadiusList } from "../../../utils";
15
- export default {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.borderRadius = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var BorderRadius_1 = require("./BorderRadius");
17
+ var utils_1 = require("../../../utils");
18
+ exports.default = {
16
19
  title: "Components/Border",
17
- component: BorderRadius,
20
+ component: BorderRadius_1.BorderRadius,
18
21
  };
19
- var Template = function (args) { return _jsx(BorderRadius, __assign({}, args)); };
20
- export var borderRadius = Template.bind({});
21
- borderRadius.args = {
22
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(BorderRadius_1.BorderRadius, __assign({}, args)); };
23
+ exports.borderRadius = Template.bind({});
24
+ exports.borderRadius.args = {
22
25
  borderRadius: "lu-border-rounded-xs",
23
26
  };
24
- borderRadius.argTypes = {
27
+ exports.borderRadius.argTypes = {
25
28
  borderRadius: {
26
29
  control: {
27
30
  type: "select",
28
- labels: Object.fromEntries(borderRadiusList.map(function (borderRadius) { return [
31
+ labels: Object.fromEntries(utils_1.borderRadiusList.map(function (borderRadius) { return [
29
32
  borderRadius.key,
30
33
  borderRadius.label,
31
34
  ]; })),
32
35
  },
33
- options: borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
36
+ options: utils_1.borderRadiusList.map(function (borderRadius) { return borderRadius.key; }),
34
37
  },
35
38
  };
@@ -1,5 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { table_data_className, table_header_className, table_row_className, } from "../../../utils";
3
- export var BorderRadiusTable = function () {
4
- return (_jsx(_Fragment, { children: _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-none" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0px = 0rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-xs" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.25x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2px = 0.125rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-sm" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4px = 0.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-md" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.75x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "6px = 0.375rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-lg" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8px = 0.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-xl" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "12px = 0.75rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-2xl" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "16px = 1rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-3xl" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "3x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "24px = 1.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-rounded-full" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "100x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "9999px" }) })] })] })] }) }));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BorderRadiusTable = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var utils_1 = require("../../../utils");
6
+ var BorderRadiusTable = function () {
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [(0, jsx_runtime_1.jsx)("thead", { className: "bg-primary-100", children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Alias Token Name" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Base unit Multiplier of 8" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Value(PX)(REM)" })] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-none" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0px = 0rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-xs" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.25x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "2px = 0.125rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-sm" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.5x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "4px = 0.25rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-md" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.75x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "6px = 0.375rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-lg" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "8px = 0.5rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1.5x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "12px = 0.75rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-2xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "2x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "16px = 1rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-3xl" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "3x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "24px = 1.5rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-rounded-full" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "100x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "9999px" }) })] })] })] }) }));
5
8
  };
9
+ exports.BorderRadiusTable = BorderRadiusTable;
@@ -1,5 +1,9 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- export var BorderRadiusView = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BorderRadiusView = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var BorderRadiusView = function (_a) {
3
6
  var borderRadius = _a.borderRadius;
4
- return (_jsx(_Fragment, { children: _jsx("div", { className: "border-primary-600 lu-pd-200 lu-size-2500 lu-border-width-125 ".concat(borderRadius), "data-testid": "border-radius", children: _jsx("p", { className: "lu-bg-neutral-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small", children: borderRadius }) }) }));
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "border-primary-600 lu-pd-200 lu-size-2500 lu-border-width-125 ".concat(borderRadius), "data-testid": "border-radius", children: (0, jsx_runtime_1.jsx)("p", { className: "lu-bg-neutral-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small", children: borderRadius }) }) }));
5
8
  };
9
+ exports.BorderRadiusView = BorderRadiusView;
@@ -1,7 +1,11 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { BorderWidthTable } from "./BorderWidthTable";
3
- import { ViewBorderWidth } from "./ViewBorderWidth";
4
- export var BorderWidth = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BorderWidth = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var BorderWidthTable_1 = require("./BorderWidthTable");
6
+ var ViewBorderWidth_1 = require("./ViewBorderWidth");
7
+ var BorderWidth = function (_a) {
5
8
  var border = _a.border;
6
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Width" }), _jsx(BorderWidthTable, {}), _jsx("div", { className: "lu-mt-150", children: _jsx(ViewBorderWidth, { border: border }) })] }));
9
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Border Width" }), (0, jsx_runtime_1.jsx)(BorderWidthTable_1.BorderWidthTable, {}), (0, jsx_runtime_1.jsx)("div", { className: "lu-mt-150", children: (0, jsx_runtime_1.jsx)(ViewBorderWidth_1.ViewBorderWidth, { border: border }) })] }));
7
10
  };
11
+ exports.BorderWidth = BorderWidth;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,27 +10,29 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { BorderWidth } from "./BorderWidth";
14
- import { borderWidthList } from "../../../utils";
15
- export default {
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.borderWidth = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var BorderWidth_1 = require("./BorderWidth");
17
+ var utils_1 = require("../../../utils");
18
+ exports.default = {
16
19
  title: "Components/Border",
17
- component: BorderWidth,
20
+ component: BorderWidth_1.BorderWidth,
18
21
  };
19
- var Template = function (args) { return _jsx(BorderWidth, __assign({}, args)); };
20
- export var borderWidth = Template.bind({});
21
- borderWidth.args = {
22
+ var Template = function (args) { return (0, jsx_runtime_1.jsx)(BorderWidth_1.BorderWidth, __assign({}, args)); };
23
+ exports.borderWidth = Template.bind({});
24
+ exports.borderWidth.args = {
22
25
  border: "lu-border-width-125",
23
26
  };
24
- borderWidth.argTypes = {
27
+ exports.borderWidth.argTypes = {
25
28
  border: {
26
29
  control: {
27
30
  type: "select",
28
- labels: Object.fromEntries(borderWidthList.map(function (borderWidth) { return [
31
+ labels: Object.fromEntries(utils_1.borderWidthList.map(function (borderWidth) { return [
29
32
  borderWidth.key,
30
33
  borderWidth.label,
31
34
  ]; })),
32
35
  },
33
- options: borderWidthList.map(function (borderWidth) { return borderWidth.key; }),
36
+ options: utils_1.borderWidthList.map(function (borderWidth) { return borderWidth.key; }),
34
37
  },
35
38
  };
@@ -1,5 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { table_data_className, table_header_className, table_row_className, } from "../../../utils";
3
- export var BorderWidthTable = function () {
4
- return (_jsx(_Fragment, { children: _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-width-125" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.125x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1px = 0.063rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-width-025" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.25x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2px = 0.125rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-width-050" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.50x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4px = 0.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-border-width-100" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8px = 0.5rem" }) })] })] })] }) }));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BorderWidthTable = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var utils_1 = require("../../../utils");
6
+ var BorderWidthTable = function () {
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [(0, jsx_runtime_1.jsx)("thead", { className: "bg-primary-100", children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Alias Token Name" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Base unit Multiplier of 8" }), (0, jsx_runtime_1.jsx)("th", { className: "".concat(utils_1.table_header_className), children: "Value(PX)(REM)" })] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-width-125" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.125x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1px = 0.063rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-width-025" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.25x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "2px = 0.125rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-width-050" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "0.50x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "4px = 0.25rem" }) })] }), (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "lu-border-width-100" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "1x" }) }), (0, jsx_runtime_1.jsx)("td", { className: "".concat(utils_1.table_row_className), children: (0, jsx_runtime_1.jsx)("span", { className: "".concat(utils_1.table_data_className), children: "8px = 0.5rem" }) })] })] })] }) }));
5
8
  };
9
+ exports.BorderWidthTable = BorderWidthTable;
@@ -1,5 +1,9 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- export var ViewBorderWidth = function (_a) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewBorderWidth = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var ViewBorderWidth = function (_a) {
3
6
  var border = _a.border;
4
- return (_jsx(_Fragment, { children: _jsx("div", { className: "border-primary-600 lu-border-rounded-2xl lu-pd-200 lu-size-2500 ".concat(border), "data-testid": "border-width", children: _jsx("p", { className: "lu-bg-neutral-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small lu-text-center", children: border }) }) }));
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "border-primary-600 lu-border-rounded-2xl lu-pd-200 lu-size-2500 ".concat(border), "data-testid": "border-width", children: (0, jsx_runtime_1.jsx)("p", { className: "lu-bg-neutral-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded lu-font-size-x-small lu-text-center", children: border }) }) }));
5
8
  };
9
+ exports.ViewBorderWidth = ViewBorderWidth;
@@ -1,2 +1,3 @@
1
1
  import { ButtonProps } from "@/types/interface";
2
2
  export declare const Button: ({ contentType, variant, label, iconLeft, iconRight, onClick, shape, size, leftIconSize, rightIconSize, className, icon, iconSize, type, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Button;
@@ -1,13 +1,22 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LUIcon } from "../Icons/LUIcon";
3
- import { buttonTypeEnum, contentTypeEnum } from "../../utils/enum";
4
- export var Button = function (_a) {
5
- var _b = _a.contentType, contentType = _b === void 0 ? contentTypeEnum.text_with_icon : _b, _c = _a.variant, variant = _c === void 0 ? "lu-btn-primary" : _c, _d = _a.label, label = _d === void 0 ? "Button Text" : _d, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, _e = _a.size, size = _e === void 0 ? "lu-btn-md" : _e, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
6
- return (_jsx(_Fragment, { children: _jsxs("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, children: [contentType === contentTypeEnum.none && label, contentType === contentTypeEnum.icon_only && icon && (_jsx(LUIcon, { size: iconSize, icon: icon, fill: type === buttonTypeEnum.outline
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Button = void 0;
7
+ var jsx_runtime_1 = require("react/jsx-runtime");
8
+ var LUIcon_1 = __importDefault(require("../Icons/LUIcon"));
9
+ var enums_1 = require("../../utils/enums");
10
+ var _1 = require(".");
11
+ var Button = function (_a) {
12
+ var _b = _a.contentType, contentType = _b === void 0 ? enums_1.ContentType.text_with_icon : _b, _c = _a.variant, variant = _c === void 0 ? "lu-btn-primary" : _c, _d = _a.label, label = _d === void 0 ? "Button Text" : _d, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, _e = _a.size, size = _e === void 0 ? "lu-btn-md" : _e, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
13
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("button", { className: "flex items-center ".concat(shape, " ").concat(type === _1.ButtonType.outline ? "outline-button ".concat(variant) : variant, " ").concat(className, " ").concat(contentType === enums_1.ContentType.icon_only ? "icon-only ".concat(size) : size), onClick: onClick, children: [contentType === enums_1.ContentType.none && label, contentType === enums_1.ContentType.icon_only && icon && ((0, jsx_runtime_1.jsx)(LUIcon_1.default, { size: iconSize, icon: icon, fill: type === _1.ButtonType.outline
7
14
  ? "outline-button ".concat(variant)
8
- : variant })), contentType === contentTypeEnum.text_with_icon && (_jsxs(_Fragment, { children: [iconLeft && iconLeft !== "none" && (_jsx(LUIcon, { size: leftIconSize, icon: iconLeft, fill: type === buttonTypeEnum.outline
15
+ : variant })), contentType === enums_1.ContentType.text_with_icon && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [iconLeft && iconLeft !== "none" && ((0, jsx_runtime_1.jsx)(LUIcon_1.default, { size: leftIconSize, icon: iconLeft, fill: type === _1.ButtonType.outline
9
16
  ? "outline-button ".concat(variant)
10
- : variant, className: "lu-mr-100" })), label, iconRight && iconRight !== "none" && (_jsx(LUIcon, { size: rightIconSize, icon: iconRight, fill: type === buttonTypeEnum.outline
17
+ : variant, className: "lu-mr-100" })), label, iconRight && iconRight !== "none" && ((0, jsx_runtime_1.jsx)(LUIcon_1.default, { size: rightIconSize, icon: iconRight, fill: type === _1.ButtonType.outline
11
18
  ? "outline-button ".concat(variant)
12
19
  : variant, className: "lu-ml-100" }))] }))] }) }));
13
20
  };
21
+ exports.Button = Button;
22
+ exports.default = exports.Button;