linkedunion-design-kit 1.7.6 → 1.7.8
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/ImageUploader/imageUploader.js +1 -1
- package/dist/src/components/Tabs/Tabs.stories.js +1 -1
- package/dist/src/components/{ui → Tabs}/tabs.js +2 -2
- package/dist/src/components/ui/accordion.js +2 -2
- package/dist/src/components/ui/caption.js +1 -1
- package/dist/styles/global.css +2 -13
- package/package.json +1 -1
- package/dist/src/components/Card/PhotoGallery.css +0 -11
- /package/dist/src/components/{ui → Tabs}/tabs.d.ts +0 -0
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/
|
|
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/
|
|
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,
|
|
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 "
|
|
2
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs";
|
|
3
3
|
export default {
|
|
4
4
|
title: "Components/Tabs",
|
|
5
5
|
component: Tabs,
|
|
@@ -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
|
|
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
|
|
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"]);
|
|
@@ -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 !
|
|
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(
|
|
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 };
|
package/dist/styles/global.css
CHANGED
|
@@ -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
|
}
|
|
@@ -2923,9 +2917,9 @@
|
|
|
2923
2917
|
background-color: #276ab3;
|
|
2924
2918
|
}
|
|
2925
2919
|
}
|
|
2926
|
-
.data-\[state\=active\]\:text-
|
|
2920
|
+
.data-\[state\=active\]\:text-blue-50 {
|
|
2927
2921
|
&[data-state="active"] {
|
|
2928
|
-
color: #
|
|
2922
|
+
color: #fbfcfe;
|
|
2929
2923
|
}
|
|
2930
2924
|
}
|
|
2931
2925
|
.data-\[state\=checked\]\:translate-x-2 {
|
|
@@ -3093,11 +3087,6 @@
|
|
|
3093
3087
|
grid-template-columns: auto 1fr;
|
|
3094
3088
|
}
|
|
3095
3089
|
}
|
|
3096
|
-
.sm\:\!p-2 {
|
|
3097
|
-
@media (width >= 40rem) {
|
|
3098
|
-
padding: calc(var(--spacing) * 2) !important;
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3101
3090
|
.sm\:\!text-left {
|
|
3102
3091
|
@media (width >= 40rem) {
|
|
3103
3092
|
text-align: left !important;
|
package/package.json
CHANGED
|
File without changes
|