@tipp/ui 1.2.6 → 1.2.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/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +1 -1
- package/dist/atoms/heading.d.ts +1 -1
- package/dist/atoms/heading.js +1 -1
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +59 -59
- package/dist/atoms/pagination.js +2 -2
- package/dist/chunk-EBDP6HUI.js +97 -0
- package/dist/chunk-EBDP6HUI.js.map +1 -0
- package/dist/chunk-P4RHWPFR.js +37 -0
- package/dist/chunk-P4RHWPFR.js.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -74
- package/dist/molecules/date-picker/index.cjs +2 -2
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +3 -3
- package/dist/molecules/expand-table/index.js +27 -27
- package/dist/molecules/expand-table/row.js +24 -24
- package/dist/molecules/index.cjs +2 -2
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +34 -34
- package/dist/molecules/navigation.js +24 -24
- package/dist/molecules/tag-selector.js +25 -25
- package/package.json +1 -1
- package/src/atoms/heading.tsx +1 -1
- package/src/molecules/date-picker/index.tsx +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-N552FDTV.js";
|
|
6
|
+
|
|
7
|
+
// src/atoms/heading.tsx
|
|
8
|
+
import {
|
|
9
|
+
Heading as RadixHeading
|
|
10
|
+
} from "@radix-ui/themes";
|
|
11
|
+
import { useMemo } from "react";
|
|
12
|
+
import { Heading } from "@radix-ui/themes";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
function Heading2(props) {
|
|
15
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
16
|
+
const radixSize = useMemo(() => {
|
|
17
|
+
switch (variant) {
|
|
18
|
+
case "heading1":
|
|
19
|
+
return "7";
|
|
20
|
+
case "heading2":
|
|
21
|
+
return "6";
|
|
22
|
+
case "heading3":
|
|
23
|
+
return "5";
|
|
24
|
+
case "heading4":
|
|
25
|
+
return "4";
|
|
26
|
+
default:
|
|
27
|
+
return size;
|
|
28
|
+
}
|
|
29
|
+
}, [size, variant]);
|
|
30
|
+
return /* @__PURE__ */ jsx(RadixHeading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
Heading2 as Heading,
|
|
35
|
+
Heading as Heading2
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=chunk-P4RHWPFR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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?: 'heading1' | 'heading2' | 'heading3' | 'heading4';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\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,EACE,WAAW;AAAA,OAEN;AACP,SAAS,eAAe;AAExB,SAAoB,eAAoB;AAwBpC;AAlBG,SAASA,SAAQ,OAAyC;AAC/D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,YAAY,QAAmC,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,oBAAC,+CAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;","names":["Heading"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1345,11 +1345,11 @@ var renderCustomHeader = (props) => {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
),
|
|
1347
1347
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes19.Flex, { gap: "3", children: [
|
|
1348
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Heading2, { variant: "
|
|
1348
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1349
1349
|
year,
|
|
1350
1350
|
"\uB144"
|
|
1351
1351
|
] }),
|
|
1352
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Heading2, { variant: "
|
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1353
1353
|
month + 1,
|
|
1354
1354
|
"\uC6D4"
|
|
1355
1355
|
] })
|