@tipp/ui 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/alert-dialog.js +1 -1
- package/dist/atoms/aspect-ratio.js +1 -1
- package/dist/atoms/avatar.cjs +53 -1
- package/dist/atoms/avatar.cjs.map +1 -1
- package/dist/atoms/avatar.d.cts +11 -1
- package/dist/atoms/avatar.d.ts +11 -1
- package/dist/atoms/avatar.js +2 -2
- package/dist/atoms/badge.cjs +62 -1
- package/dist/atoms/badge.cjs.map +1 -1
- package/dist/atoms/badge.d.cts +13 -1
- package/dist/atoms/badge.d.ts +13 -1
- package/dist/atoms/badge.js +2 -2
- package/dist/atoms/blockquote.js +1 -1
- package/dist/atoms/box.js +1 -1
- package/dist/atoms/button.cjs +51 -1
- package/dist/atoms/button.cjs.map +1 -1
- package/dist/atoms/button.d.cts +11 -1
- package/dist/atoms/button.d.ts +11 -1
- package/dist/atoms/button.js +2 -2
- package/dist/atoms/call-out.js +1 -1
- package/dist/atoms/card.js +1 -1
- package/dist/atoms/check-box-card.js +1 -1
- package/dist/atoms/check-box-group.cjs +52 -1
- package/dist/atoms/check-box-group.cjs.map +1 -1
- package/dist/atoms/check-box-group.d.cts +11 -1
- package/dist/atoms/check-box-group.d.ts +11 -1
- package/dist/atoms/check-box-group.js +2 -2
- package/dist/atoms/check-box.cjs +49 -1
- package/dist/atoms/check-box.cjs.map +1 -1
- package/dist/atoms/check-box.d.cts +11 -1
- package/dist/atoms/check-box.d.ts +11 -1
- package/dist/atoms/check-box.js +2 -2
- package/dist/atoms/code.js +1 -1
- package/dist/atoms/container.js +1 -1
- package/dist/atoms/data-list.js +1 -1
- package/dist/atoms/date-picker/index.d.cts +2 -2
- package/dist/atoms/date-picker/index.d.ts +2 -2
- package/dist/atoms/date-picker/index.js +2 -2
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/dropdown-menu.js +1 -1
- package/dist/atoms/em.js +1 -1
- package/dist/atoms/flex.js +1 -1
- package/dist/atoms/grid.js +1 -1
- package/dist/atoms/heading.cjs +54 -2
- package/dist/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +9 -1
- package/dist/atoms/heading.d.ts +9 -1
- package/dist/atoms/heading.js +6 -4
- package/dist/atoms/hover-card.js +1 -1
- package/dist/atoms/icon-button.js +1 -1
- package/dist/atoms/inset.js +1 -1
- package/dist/atoms/kbd.js +1 -1
- package/dist/atoms/link.cjs +52 -2
- package/dist/atoms/link.cjs.map +1 -1
- package/dist/atoms/link.d.cts +9 -1
- package/dist/atoms/link.d.ts +9 -1
- package/dist/atoms/link.js +5 -3
- package/dist/atoms/popover.js +1 -1
- package/dist/atoms/progress.js +1 -1
- package/dist/atoms/quote.js +1 -1
- package/dist/atoms/radio-cards.js +1 -1
- package/dist/atoms/radio-group.js +1 -1
- package/dist/atoms/radio.js +1 -1
- package/dist/atoms/scroll-area.js +1 -1
- package/dist/atoms/section.js +1 -1
- package/dist/atoms/segmented-control.js +1 -1
- package/dist/atoms/select.js +1 -1
- package/dist/atoms/separator.js +1 -1
- package/dist/atoms/skeleton.js +1 -1
- package/dist/atoms/strong.js +1 -1
- package/dist/atoms/switch.js +1 -1
- package/dist/atoms/tab-nav.js +1 -1
- package/dist/atoms/tabs.js +1 -1
- package/dist/atoms/text-area.js +1 -1
- package/dist/atoms/text-field.js +1 -1
- package/dist/atoms/text.cjs +48 -1
- package/dist/atoms/text.cjs.map +1 -1
- package/dist/atoms/text.d.cts +9 -1
- package/dist/atoms/text.d.ts +9 -1
- package/dist/atoms/text.js +2 -2
- package/dist/atoms/tooltip.js +1 -1
- package/dist/chart/chart.d.cts +2 -2
- package/dist/chart/chart.d.ts +2 -2
- package/dist/chart/chart.js +1 -1
- package/dist/chunk-ALOPZ54P.js +47 -0
- package/dist/chunk-ALOPZ54P.js.map +1 -0
- package/dist/chunk-CZEGRZBK.js +38 -0
- package/dist/chunk-CZEGRZBK.js.map +1 -0
- package/dist/chunk-HLOY6BIP.js +37 -0
- package/dist/chunk-HLOY6BIP.js.map +1 -0
- package/dist/{chunk-D5QWAVBB.js → chunk-IIBITN2G.js} +2 -2
- package/dist/chunk-IQEEPHOY.js +35 -0
- package/dist/chunk-IQEEPHOY.js.map +1 -0
- package/dist/chunk-JEHDCZQU.js +34 -0
- package/dist/chunk-JEHDCZQU.js.map +1 -0
- package/dist/{chunk-LGTAQGUA.js → chunk-N552FDTV.js} +15 -2
- package/dist/{chunk-LREYUDKD.js → chunk-PL3Q4UVY.js} +3 -3
- package/dist/{chunk-LREYUDKD.js.map → chunk-PL3Q4UVY.js.map} +1 -1
- package/dist/chunk-RET725VL.js +36 -0
- package/dist/chunk-RET725VL.js.map +1 -0
- package/dist/chunk-XJJDE4YP.js +31 -0
- package/dist/chunk-XJJDE4YP.js.map +1 -0
- package/dist/chunk-XQOZWYUA.js +35 -0
- package/dist/chunk-XQOZWYUA.js.map +1 -0
- package/dist/icon.js +1 -1
- package/dist/index.cjs +252 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +40 -40
- package/dist/theme/theme-provider.cjs +1 -1
- package/dist/theme/theme-provider.cjs.map +1 -1
- package/dist/theme/theme-provider.d.cts +4 -4
- package/dist/theme/theme-provider.d.ts +4 -4
- package/dist/theme/theme-provider.js +2 -2
- package/dist/theme/use-theme.js +1 -1
- package/dist/ui-props/index.js +1 -1
- package/package.json +1 -1
- package/src/atoms/avatar.tsx +37 -1
- package/src/atoms/badge.tsx +47 -1
- package/src/atoms/button.tsx +32 -1
- package/src/atoms/check-box-group.tsx +38 -1
- package/src/atoms/check-box.tsx +30 -1
- package/src/atoms/heading.tsx +35 -1
- package/src/atoms/link.tsx +33 -1
- package/src/atoms/text.tsx +30 -1
- package/src/theme/theme-provider.tsx +1 -1
- package/dist/chunk-3566LFAS.js +0 -7
- package/dist/chunk-3566LFAS.js.map +0 -1
- package/dist/chunk-4PP245MS.js +0 -7
- package/dist/chunk-4PP245MS.js.map +0 -1
- package/dist/chunk-DYUKDKUS.js +0 -7
- package/dist/chunk-DYUKDKUS.js.map +0 -1
- package/dist/chunk-LFJCZVNE.js +0 -7
- package/dist/chunk-LFJCZVNE.js.map +0 -1
- package/dist/chunk-M4P36WOR.js +0 -7
- package/dist/chunk-M4P36WOR.js.map +0 -1
- package/dist/chunk-MLMWFOEE.js +0 -7
- package/dist/chunk-MLMWFOEE.js.map +0 -1
- package/dist/chunk-MYTJIEMB.js +0 -7
- package/dist/chunk-MYTJIEMB.js.map +0 -1
- package/dist/chunk-W4KST6UY.js +0 -7
- package/dist/chunk-W4KST6UY.js.map +0 -1
- /package/dist/{chunk-D5QWAVBB.js.map → chunk-IIBITN2G.js.map} +0 -0
- /package/dist/{chunk-LGTAQGUA.js.map → chunk-N552FDTV.js.map} +0 -0
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type CheckboxProps = Omit<CheckboxProps$1, 'size'> & {
|
|
5
|
+
size?: 'small' | 'medium' | 'large';
|
|
6
|
+
};
|
|
7
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps$1, "size"> & {
|
|
8
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
|
|
11
|
+
export { Checkbox, type CheckboxProps };
|
package/dist/atoms/check-box.js
CHANGED
package/dist/atoms/code.js
CHANGED
package/dist/atoms/container.js
CHANGED
package/dist/atoms/data-list.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import ReactDatePicker, { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
3
3
|
|
|
4
4
|
type DatePickerProps = DatePickerProps$1;
|
|
5
|
-
declare const DatePicker:
|
|
5
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps$1 & React__default.RefAttributes<ReactDatePicker>>;
|
|
6
6
|
|
|
7
7
|
export { DatePicker, type DatePickerProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import ReactDatePicker, { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
3
3
|
|
|
4
4
|
type DatePickerProps = DatePickerProps$1;
|
|
5
|
-
declare const DatePicker:
|
|
5
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps$1 & React__default.RefAttributes<ReactDatePicker>>;
|
|
6
6
|
|
|
7
7
|
export { DatePicker, type DatePickerProps };
|
package/dist/atoms/dialog.js
CHANGED
package/dist/atoms/em.js
CHANGED
package/dist/atoms/flex.js
CHANGED
package/dist/atoms/grid.js
CHANGED
package/dist/atoms/heading.cjs
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
6
35
|
var __export = (target, all) => {
|
|
7
36
|
for (var name in all)
|
|
8
37
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,12 +49,35 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
49
|
// src/atoms/heading.tsx
|
|
21
50
|
var heading_exports = {};
|
|
22
51
|
__export(heading_exports, {
|
|
23
|
-
Heading: () =>
|
|
52
|
+
Heading: () => Heading2,
|
|
53
|
+
RadixHeading: () => import_themes2.Heading
|
|
24
54
|
});
|
|
25
55
|
module.exports = __toCommonJS(heading_exports);
|
|
26
56
|
var import_themes = require("@radix-ui/themes");
|
|
57
|
+
var import_react = require("react");
|
|
58
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
59
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
|
+
function Heading2(props) {
|
|
61
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
62
|
+
const radixSize = (0, import_react.useMemo)(() => {
|
|
63
|
+
switch (variant) {
|
|
64
|
+
case "subtitle1":
|
|
65
|
+
return "4";
|
|
66
|
+
case "heading1":
|
|
67
|
+
return "7";
|
|
68
|
+
case "heading2":
|
|
69
|
+
return "6";
|
|
70
|
+
case "heading3":
|
|
71
|
+
return "5";
|
|
72
|
+
default:
|
|
73
|
+
return size;
|
|
74
|
+
}
|
|
75
|
+
}, [size, variant]);
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
77
|
+
}
|
|
27
78
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
79
|
0 && (module.exports = {
|
|
29
|
-
Heading
|
|
80
|
+
Heading,
|
|
81
|
+
RadixHeading
|
|
30
82
|
});
|
|
31
83
|
//# sourceMappingURL=heading.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/heading.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/heading.tsx"],"sourcesContent":["import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';\n};\n\nexport function Heading(props: HeadingProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'subtitle1':\n return '4';\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA,oBAGO;AACP,mBAAwB;AAExB,IAAAC,iBAAwC;AAwBpC;AAlBG,SAASC,SAAQ,OAAsC;AAC5D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAmC,MAAM;AACzD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,4CAAC,cAAAC,SAAA,iCAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;","names":["Heading","import_themes","Heading","RadixHeading"]}
|
package/dist/atoms/heading.d.cts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { HeadingProps as HeadingProps$1 } from '@radix-ui/themes';
|
|
2
|
+
export { Heading as RadixHeading } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type HeadingProps = HeadingProps$1 & {
|
|
5
|
+
variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
|
|
6
|
+
};
|
|
7
|
+
declare function Heading(props: HeadingProps): React.ReactNode;
|
|
8
|
+
|
|
9
|
+
export { Heading, type HeadingProps };
|
package/dist/atoms/heading.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { HeadingProps as HeadingProps$1 } from '@radix-ui/themes';
|
|
2
|
+
export { Heading as RadixHeading } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type HeadingProps = HeadingProps$1 & {
|
|
5
|
+
variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
|
|
6
|
+
};
|
|
7
|
+
declare function Heading(props: HeadingProps): React.ReactNode;
|
|
8
|
+
|
|
9
|
+
export { Heading, type HeadingProps };
|
package/dist/atoms/heading.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Heading
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Heading,
|
|
3
|
+
Heading2
|
|
4
|
+
} from "../chunk-HLOY6BIP.js";
|
|
5
|
+
import "../chunk-N552FDTV.js";
|
|
5
6
|
export {
|
|
6
|
-
Heading
|
|
7
|
+
Heading,
|
|
8
|
+
Heading2 as RadixHeading
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=heading.js.map
|
package/dist/atoms/hover-card.js
CHANGED
package/dist/atoms/inset.js
CHANGED
package/dist/atoms/kbd.js
CHANGED
package/dist/atoms/link.cjs
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
6
35
|
var __export = (target, all) => {
|
|
7
36
|
for (var name in all)
|
|
8
37
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,12 +49,33 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
49
|
// src/atoms/link.tsx
|
|
21
50
|
var link_exports = {};
|
|
22
51
|
__export(link_exports, {
|
|
23
|
-
Link: () =>
|
|
52
|
+
Link: () => Link,
|
|
53
|
+
RadixHeading: () => import_themes2.Heading
|
|
24
54
|
});
|
|
25
55
|
module.exports = __toCommonJS(link_exports);
|
|
26
56
|
var import_themes = require("@radix-ui/themes");
|
|
57
|
+
var import_react = require("react");
|
|
58
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
59
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
|
+
function Link(props) {
|
|
61
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
62
|
+
const radixSize = (0, import_react.useMemo)(() => {
|
|
63
|
+
switch (variant) {
|
|
64
|
+
case "caption":
|
|
65
|
+
return "1";
|
|
66
|
+
case "body":
|
|
67
|
+
return "2";
|
|
68
|
+
case "subtitle":
|
|
69
|
+
return "3";
|
|
70
|
+
default:
|
|
71
|
+
return size;
|
|
72
|
+
}
|
|
73
|
+
}, [size, variant]);
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
75
|
+
}
|
|
27
76
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
77
|
0 && (module.exports = {
|
|
29
|
-
Link
|
|
78
|
+
Link,
|
|
79
|
+
RadixHeading
|
|
30
80
|
});
|
|
31
81
|
//# sourceMappingURL=link.cjs.map
|
package/dist/atoms/link.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/link.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/link.tsx"],"sourcesContent":["import {\n Link as RadixLink,\n type LinkProps as RadixLinkProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type LinkProps = RadixLinkProps & {\n variant?: 'caption' | 'body' | 'subtitle';\n};\n\nexport function Link(props: LinkProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixLinkProps['size']>(() => {\n switch (variant) {\n case 'caption':\n return '1';\n case 'body':\n return '2';\n case 'subtitle':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixLink {...rest} size={radixSize}>\n {children}\n </RadixLink>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAGO;AACP,mBAAwB;AAExB,IAAAA,iBAAwC;AAsBpC;AAhBG,SAAS,KAAK,OAAmC;AACtD,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAgC,MAAM;AACtD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,4CAAC,cAAAC,MAAA,iCAAc,OAAd,EAAoB,MAAM,WACxB,WACH;AAEJ;","names":["import_themes","RadixLink"]}
|
package/dist/atoms/link.d.cts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { LinkProps as LinkProps$1 } from '@radix-ui/themes';
|
|
2
|
+
export { Heading as RadixHeading } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type LinkProps = LinkProps$1 & {
|
|
5
|
+
variant?: 'caption' | 'body' | 'subtitle';
|
|
6
|
+
};
|
|
7
|
+
declare function Link(props: LinkProps): React.ReactNode;
|
|
8
|
+
|
|
9
|
+
export { Link, type LinkProps };
|
package/dist/atoms/link.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { LinkProps as LinkProps$1 } from '@radix-ui/themes';
|
|
2
|
+
export { Heading as RadixHeading } from '@radix-ui/themes';
|
|
3
|
+
|
|
4
|
+
type LinkProps = LinkProps$1 & {
|
|
5
|
+
variant?: 'caption' | 'body' | 'subtitle';
|
|
6
|
+
};
|
|
7
|
+
declare function Link(props: LinkProps): React.ReactNode;
|
|
8
|
+
|
|
9
|
+
export { Link, type LinkProps };
|
package/dist/atoms/link.js
CHANGED
package/dist/atoms/popover.js
CHANGED
package/dist/atoms/progress.js
CHANGED
package/dist/atoms/quote.js
CHANGED
package/dist/atoms/radio.js
CHANGED
package/dist/atoms/section.js
CHANGED
package/dist/atoms/select.js
CHANGED
package/dist/atoms/separator.js
CHANGED
package/dist/atoms/skeleton.js
CHANGED
package/dist/atoms/strong.js
CHANGED
package/dist/atoms/switch.js
CHANGED
package/dist/atoms/tab-nav.js
CHANGED
package/dist/atoms/tabs.js
CHANGED
package/dist/atoms/text-area.js
CHANGED