linkedunion-design-kit 1.7.6 → 1.7.7

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/index.d.ts CHANGED
@@ -21,4 +21,4 @@ export { PhotoGallery } from "./src/components/Card/PhotoGallery";
21
21
  export { Label } from "./src/components/Label/Label";
22
22
  export { Slider } from "./src/components/Slider/slider";
23
23
  export { RadioButton } from "./src/components/RadioButton/radio-button";
24
- export { Tabs, TabsList, TabsTrigger, TabsContent } from "./src/components/ui/tabs";
24
+ export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
package/dist/index.js CHANGED
@@ -21,4 +21,4 @@ export { PhotoGallery } from "./src/components/Card/PhotoGallery";
21
21
  export { Label } from "./src/components/Label/Label";
22
22
  export { Slider } from "./src/components/Slider/slider";
23
23
  export { RadioButton } from "./src/components/RadioButton/radio-button";
24
- export { Tabs, TabsList, TabsTrigger, TabsContent } from "./src/components/ui/tabs";
24
+ export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
@@ -38,7 +38,7 @@ var ImageUploader = function (_a) {
38
38
  if (!file)
39
39
  return;
40
40
  if (!acceptedTypes.includes(file.type)) {
41
- setFileError("Only JPEG, PNG, JPG, and SVG files are supported.");
41
+ setFileError("Only JPEG/JPG, PNG, and SVG files are supported.");
42
42
  return;
43
43
  }
44
44
  var sizeMB = file.size / 1024 / 1024;
@@ -1,5 +1,5 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs";
2
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs";
3
3
  export default {
4
4
  title: "Components/Tabs",
5
5
  component: Tabs,
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
26
+ import { cn } from "../../lib/utils";
27
+ function Tabs(_a) {
28
+ var className = _a.className, props = __rest(_a, ["className"]);
29
+ return (_jsx(TabsPrimitive.Root, __assign({ "data-slot": "tabs", className: cn("flex flex-col gap-2", className) }, props)));
30
+ }
31
+ function TabsList(_a) {
32
+ var className = _a.className, props = __rest(_a, ["className"]);
33
+ return (_jsx(TabsPrimitive.List, __assign({ "data-slot": "tabs-list", className: cn("bg-blue-100 !p-1 rounded-lg", className) }, props)));
34
+ }
35
+ function TabsTrigger(_a) {
36
+ var className = _a.className, props = __rest(_a, ["className"]);
37
+ return (_jsx(TabsPrimitive.Trigger, __assign({ "data-slot": "tabs-trigger", className: cn("!py-2 !px-3 transition-all !rounded-sm !text-sm !font-normal !leading-5 w-1/2 max-sm:w-full", "data-[state=active]:bg-blue-600 data-[state=active]:text-blue-50", "data-[state=inactive]:bg-blue-100 data-[state=inactive]:text-blue-600", className) }, props)));
38
+ }
39
+ function TabsContent(_a) {
40
+ var className = _a.className, props = __rest(_a, ["className"]);
41
+ return (_jsx(TabsPrimitive.Content, __assign({ "data-slot": "tabs-content", className: cn("flex-1 outline-none", className) }, props)));
42
+ }
43
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -49,7 +49,7 @@ export var variant = {
49
49
  "h6-600": "!text-lg !font-semibold",
50
50
  "h6-700": "!text-lg !font-bold",
51
51
  };
52
- var headingVariants = cva("!leading-normal", // Default base class
52
+ var headingVariants = cva("!leading-normal !text-black", // Default base class
53
53
  {
54
54
  variants: {
55
55
  variant: variant,
@@ -34,10 +34,10 @@ function AccordionItem(_a) {
34
34
  }
35
35
  function AccordionTrigger(_a) {
36
36
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
37
- return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, __assign({ "data-slot": "accordion-trigger", className: cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between !rounded-md !py-2 !text-left !text-sm !font-normal transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>.luIcon-wrapper]:rotate-180", className) }, props, { children: [children, _jsx(IconButton, { color: "blue-light", icon: "angle-down", size: "sm", className: "pointer-events-none shrink-0 transition-transform duration-200" })] })) }));
37
+ return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, __assign({ "data-slot": "accordion-trigger", className: cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between !rounded-md !text-left !text-sm !font-normal transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>.luIcon-wrapper]:rotate-180", className) }, props, { children: [children, _jsx(IconButton, { color: "blue-light", icon: "angle-down", size: "sm", className: "luIcon-wrapper pointer-events-none shrink-0 transition-transform duration-200" })] })) }));
38
38
  }
39
39
  function AccordionContent(_a) {
40
40
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
41
- return (_jsx(AccordionPrimitive.Content, __assign({ "data-slot": "accordion-content", className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down !overflow-visible text-sm" }, props, { children: _jsx("div", { className: cn("!pt-0 !pb-4", className), children: children }) })));
41
+ return (_jsx(AccordionPrimitive.Content, __assign({ "data-slot": "accordion-content", className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down !overflow-visible !text-sm !py-2" }, props, { children: _jsx("div", { className: cn(className), children: children }) })));
42
42
  }
43
43
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -29,6 +29,6 @@ export var variantClasses = {
29
29
  };
30
30
  function Caption(_a) {
31
31
  var className = _a.className, children = _a.children, _b = _a.variant, variant = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "children", "variant"]);
32
- return (_jsx("p", __assign({ className: cn("!font-normal !leading-normal inline", variantClasses[variant], className) }, props, { children: children })));
32
+ return (_jsx("p", __assign({ className: cn("!font-normal !leading-normal m-0 inline", variantClasses[variant], className) }, props, { children: children })));
33
33
  }
34
34
  export { Caption };
@@ -30,11 +30,11 @@ function Tabs(_a) {
30
30
  }
31
31
  function TabsList(_a) {
32
32
  var className = _a.className, props = __rest(_a, ["className"]);
33
- return (_jsx(TabsPrimitive.List, __assign({ "data-slot": "tabs-list", className: cn("bg-blue-100 !p-1 sm:!p-2 rounded-lg", className) }, props)));
33
+ return (_jsx(TabsPrimitive.List, __assign({ "data-slot": "tabs-list", className: cn("bg-blue-100 !p-1 rounded-lg", className) }, props)));
34
34
  }
35
35
  function TabsTrigger(_a) {
36
36
  var className = _a.className, props = __rest(_a, ["className"]);
37
- return (_jsx(TabsPrimitive.Trigger, __assign({ "data-slot": "tabs-trigger", className: cn("!py-2.5 !px-5 transition-all !rounded-sm text-sm font-normal w-1/2 max-sm:w-full", "data-[state=active]:bg-blue-600 data-[state=active]:text-white", "data-[state=inactive]:bg-blue-100 data-[state=inactive]:text-blue-600", className) }, props)));
37
+ return (_jsx(TabsPrimitive.Trigger, __assign({ "data-slot": "tabs-trigger", className: cn("!py-2 !px-3 transition-all !rounded-sm !text-sm !font-normal !leading-5 w-1/2 max-sm:w-full", "data-[state=active]:bg-blue-600 data-[state=active]:text-blue-50", "data-[state=inactive]:bg-blue-100 data-[state=inactive]:text-blue-600", className) }, props)));
38
38
  }
39
39
  function TabsContent(_a) {
40
40
  var className = _a.className, props = __rest(_a, ["className"]);
@@ -1109,12 +1109,6 @@
1109
1109
  .\!ps-12 {
1110
1110
  padding-inline-start: calc(var(--spacing) * 12) !important;
1111
1111
  }
1112
- .\!pt-0 {
1113
- padding-top: calc(var(--spacing) * 0) !important;
1114
- }
1115
- .\!pb-4 {
1116
- padding-bottom: calc(var(--spacing) * 4) !important;
1117
- }
1118
1112
  .\!text-left {
1119
1113
  text-align: left !important;
1120
1114
  }
@@ -1263,6 +1257,9 @@
1263
1257
  .whitespace-nowrap {
1264
1258
  white-space: nowrap;
1265
1259
  }
1260
+ .\!text-black {
1261
+ color: #0f0f0f !important;
1262
+ }
1266
1263
  .\!text-primary-foreground {
1267
1264
  color: var(--primary-foreground) !important;
1268
1265
  }
@@ -2923,9 +2920,9 @@
2923
2920
  background-color: #276ab3;
2924
2921
  }
2925
2922
  }
2926
- .data-\[state\=active\]\:text-white {
2923
+ .data-\[state\=active\]\:text-blue-50 {
2927
2924
  &[data-state="active"] {
2928
- color: #fefefe;
2925
+ color: #fbfcfe;
2929
2926
  }
2930
2927
  }
2931
2928
  .data-\[state\=checked\]\:translate-x-2 {
@@ -3093,11 +3090,6 @@
3093
3090
  grid-template-columns: auto 1fr;
3094
3091
  }
3095
3092
  }
3096
- .sm\:\!p-2 {
3097
- @media (width >= 40rem) {
3098
- padding: calc(var(--spacing) * 2) !important;
3099
- }
3100
- }
3101
3093
  .sm\:\!text-left {
3102
3094
  @media (width >= 40rem) {
3103
3095
  text-align: left !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -1,11 +0,0 @@
1
- .photo-gallery-img {
2
- position: relative;
3
- }
4
- .photo-gallery-img::before {
5
- content: "";
6
- position: absolute;
7
- inset: 0;
8
- background: linear-gradient(to top, black, transparent);
9
- z-index: 1;
10
- pointer-events: none;
11
- }