@tipp/ui 1.1.8 → 1.1.10

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 (84) hide show
  1. package/dist/atoms/field-error-wrapper.js +2 -2
  2. package/dist/atoms/index.cjs.map +1 -1
  3. package/dist/atoms/index.js +53 -53
  4. package/dist/atoms/pagination.cjs.map +1 -1
  5. package/dist/atoms/pagination.js +4 -4
  6. package/dist/chunk-2DF7YI2O.js +123 -0
  7. package/dist/chunk-2DF7YI2O.js.map +1 -0
  8. package/dist/chunk-2L4KWP7B.js +53 -0
  9. package/dist/chunk-2L4KWP7B.js.map +1 -0
  10. package/dist/chunk-6QAY57B6.js +54 -0
  11. package/dist/chunk-6QAY57B6.js.map +1 -0
  12. package/dist/chunk-7ORFESPJ.js +54 -0
  13. package/dist/chunk-7ORFESPJ.js.map +1 -0
  14. package/dist/chunk-AEXDX2VS.js +53 -0
  15. package/dist/chunk-AEXDX2VS.js.map +1 -0
  16. package/dist/chunk-BUWFX67O.js +54 -0
  17. package/dist/chunk-BUWFX67O.js.map +1 -0
  18. package/dist/chunk-CMOA2ZAE.js +54 -0
  19. package/dist/chunk-CMOA2ZAE.js.map +1 -0
  20. package/dist/chunk-DMU7IYOM.js +130 -0
  21. package/dist/chunk-DMU7IYOM.js.map +1 -0
  22. package/dist/chunk-FU2NF5HR.js +1 -0
  23. package/dist/chunk-FU2NF5HR.js.map +1 -0
  24. package/dist/chunk-GLRJ6U7D.js +48 -0
  25. package/dist/chunk-GLRJ6U7D.js.map +1 -0
  26. package/dist/chunk-K25LQHOZ.js +130 -0
  27. package/dist/chunk-K25LQHOZ.js.map +1 -0
  28. package/dist/chunk-KE36QOV3.js +130 -0
  29. package/dist/chunk-KE36QOV3.js.map +1 -0
  30. package/dist/chunk-KKYI4MTP.js +54 -0
  31. package/dist/chunk-KKYI4MTP.js.map +1 -0
  32. package/dist/chunk-LVWHSYJM.js +16 -0
  33. package/dist/chunk-LVWHSYJM.js.map +1 -0
  34. package/dist/chunk-M4ZV2IGG.js +16 -0
  35. package/dist/chunk-M4ZV2IGG.js.map +1 -0
  36. package/dist/chunk-NSSO2QWC.js +63 -0
  37. package/dist/chunk-NSSO2QWC.js.map +1 -0
  38. package/dist/chunk-PV2PTVNR.js +54 -0
  39. package/dist/chunk-PV2PTVNR.js.map +1 -0
  40. package/dist/chunk-RC25EWE2.js +63 -0
  41. package/dist/chunk-RC25EWE2.js.map +1 -0
  42. package/dist/chunk-SUGQXRH7.js +51 -0
  43. package/dist/chunk-SUGQXRH7.js.map +1 -0
  44. package/dist/chunk-T5XKRD6Q.js +54 -0
  45. package/dist/chunk-T5XKRD6Q.js.map +1 -0
  46. package/dist/chunk-T75M6HQZ.js +91 -0
  47. package/dist/chunk-T75M6HQZ.js.map +1 -0
  48. package/dist/chunk-TFJPLDJW.js +91 -0
  49. package/dist/chunk-TFJPLDJW.js.map +1 -0
  50. package/dist/chunk-W32CVWDO.js +53 -0
  51. package/dist/chunk-W32CVWDO.js.map +1 -0
  52. package/dist/chunk-XXTSXGYB.js +54 -0
  53. package/dist/chunk-XXTSXGYB.js.map +1 -0
  54. package/dist/icon.cjs +4 -0
  55. package/dist/icon.cjs.map +1 -1
  56. package/dist/icon.d.cts +1 -1
  57. package/dist/icon.d.ts +1 -1
  58. package/dist/icon.js +5 -1
  59. package/dist/index.cjs +55 -4
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.cts +2 -1
  62. package/dist/index.d.ts +2 -1
  63. package/dist/index.js +80 -72
  64. package/dist/molecules/date-picker/index.cjs.map +1 -1
  65. package/dist/molecules/date-picker/index.js +3 -3
  66. package/dist/molecules/dot-navigation.cjs +78 -0
  67. package/dist/molecules/dot-navigation.cjs.map +1 -0
  68. package/dist/molecules/dot-navigation.d.cts +17 -0
  69. package/dist/molecules/dot-navigation.d.ts +17 -0
  70. package/dist/molecules/dot-navigation.js +9 -0
  71. package/dist/molecules/dot-navigation.js.map +1 -0
  72. package/dist/molecules/expand-table/index.js +23 -23
  73. package/dist/molecules/expand-table/row.js +22 -22
  74. package/dist/molecules/index.cjs +47 -0
  75. package/dist/molecules/index.cjs.map +1 -1
  76. package/dist/molecules/index.d.cts +1 -0
  77. package/dist/molecules/index.d.ts +1 -0
  78. package/dist/molecules/index.js +30 -26
  79. package/dist/molecules/navigation.js +23 -23
  80. package/dist/utils/index.js +3 -3
  81. package/package.json +4 -4
  82. package/src/icon.ts +2 -0
  83. package/src/molecules/dot-navigation.tsx +65 -0
  84. package/src/molecules/index.ts +1 -0
@@ -0,0 +1,54 @@
1
+ import {
2
+ Flex
3
+ } from "./chunk-25HMMI7R.js";
4
+
5
+ // src/molecules/dot-navigation.tsx
6
+ import { useCallback, useEffect, useState } from "react";
7
+ import { DotFilledIcon } from "@radix-ui/react-icons";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function DotNavigation(props) {
10
+ const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
11
+ const [currentDot, setCurrentDot] = useState(
12
+ () => {
13
+ var _a;
14
+ return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
15
+ }
16
+ );
17
+ const onClickDot = useCallback(
18
+ (i) => {
19
+ if (onClick) {
20
+ onClick(i);
21
+ } else {
22
+ setCurrentDot(i);
23
+ }
24
+ },
25
+ [onClick]
26
+ );
27
+ useEffect(() => {
28
+ onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
29
+ }, [currentDot, onChangeDotIndex]);
30
+ return /* @__PURE__ */ jsx(Flex, { gap: "4", children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
31
+ const isSelected = currentDot === index;
32
+ return /* @__PURE__ */ jsx(
33
+ DotFilledIcon,
34
+ {
35
+ color: isSelected ? void 0 : "gray",
36
+ height: "16px",
37
+ fill: "var(--gray-5)",
38
+ onClick: () => {
39
+ onClickDot(index);
40
+ },
41
+ style: {
42
+ cursor: "pointer"
43
+ },
44
+ width: "16px"
45
+ },
46
+ index
47
+ );
48
+ }) : null });
49
+ }
50
+
51
+ export {
52
+ DotNavigation
53
+ };
54
+ //# sourceMappingURL=chunk-T5XKRD6Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/dot-navigation.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport { Flex } from '../atoms/flex';\n\nexport interface DotNavigationProps {\n /** 전체 점 갯수 */\n dotCount?: number;\n /** 점 클릭 시 */\n onClick?: (index: number) => void;\n /** 현재 선택된 점 */\n dotIndex?: number;\n /** 기본 점 위치 */\n defaultDotIndex?: number;\n /** 선택된 점 변경 시 실행 */\n onChangeDotIndex?: (index: number) => void;\n}\n\nexport function DotNavigation(props: DotNavigationProps): React.ReactElement {\n const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } =\n props;\n\n const [currentDot, setCurrentDot] = useState<number>(\n () => defaultDotIndex ?? dotIndex ?? 0\n );\n\n const onClickDot = useCallback(\n (i: number) => {\n if (onClick) {\n onClick(i);\n } else {\n setCurrentDot(i);\n }\n },\n [onClick]\n );\n\n useEffect(() => {\n onChangeDotIndex?.(currentDot);\n }, [currentDot, onChangeDotIndex]);\n\n return (\n <Flex gap=\"4\">\n {dotCount\n ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {\n const isSelected = currentDot === index;\n return (\n <DotFilledIcon\n color={isSelected ? undefined : 'gray'}\n height=\"16px\"\n fill=\"var(--gray-5)\"\n // eslint-disable-next-line react/no-array-index-key -- index외의 키가 없음\n key={index}\n onClick={() => {\n onClickDot(index);\n }}\n style={{\n cursor: 'pointer',\n }}\n width=\"16px\"\n />\n );\n })\n : null}\n </Flex>\n );\n}\n"],"mappings":";;;;;AAAA,SAAgB,aAAa,WAAW,gBAAgB;AACxD,SAAS,qBAAqB;AA6ChB;AA7BP,SAAS,cAAc,OAA+C;AAC3E,QAAM,EAAE,UAAU,SAAS,UAAU,iBAAiB,iBAAiB,IACrE;AAEF,QAAM,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,MAAG;AAtBP;AAsBU,+DAAmB,aAAnB,YAA+B;AAAA;AAAA,EACvC;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,MAAc;AACb,UAAI,SAAS;AACX,gBAAQ,CAAC;AAAA,MACX,OAAO;AACL,sBAAc,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,YAAU,MAAM;AACd,yDAAmB;AAAA,EACrB,GAAG,CAAC,YAAY,gBAAgB,CAAC;AAEjC,SACE,oBAAC,QAAK,KAAI,KACP,qBACG,MAAM,KAAK,EAAE,QAAQ,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAC9D,UAAM,aAAa,eAAe;AAClC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,aAAa,SAAY;AAAA,QAChC,QAAO;AAAA,QACP,MAAK;AAAA,QAGL,SAAS,MAAM;AACb,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QACA,OAAM;AAAA;AAAA,MAPD;AAAA,IAQP;AAAA,EAEJ,CAAC,IACD,MACN;AAEJ;","names":[]}
@@ -0,0 +1,91 @@
1
+ import {
2
+ Heading
3
+ } from "./chunk-WMZAV6PQ.js";
4
+ import {
5
+ IconButton
6
+ } from "./chunk-O3DNDMV3.js";
7
+ import {
8
+ Flex
9
+ } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ ChevronLeftIcon,
12
+ ChevronRightIcon
13
+ } from "./chunk-RC25EWE2.js";
14
+ import {
15
+ __objRest,
16
+ __spreadProps,
17
+ __spreadValues
18
+ } from "./chunk-N552FDTV.js";
19
+
20
+ // src/molecules/date-picker/index.tsx
21
+ import { forwardRef } from "react";
22
+ import * as RDP from "react-datepicker";
23
+ import { jsx, jsxs } from "react/jsx-runtime";
24
+ var ReactDatePicker = RDP.default.default || RDP.default || RDP;
25
+ var DatePicker = forwardRef(
26
+ (props, ref) => {
27
+ const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
28
+ return /* @__PURE__ */ jsx(
29
+ ReactDatePicker,
30
+ __spreadProps(__spreadValues({
31
+ dateFormat: "yyyy/MM/dd",
32
+ nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
33
+ placeholderText: "yyyy/mm/dd",
34
+ previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
35
+ ref,
36
+ renderCustomHeader,
37
+ showPopperArrow: false
38
+ }, rest), {
39
+ calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
40
+ wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
41
+ })
42
+ );
43
+ }
44
+ );
45
+ DatePicker.displayName = "DatePicker";
46
+ var renderCustomHeader = (props) => {
47
+ const {
48
+ date,
49
+ decreaseMonth,
50
+ increaseMonth,
51
+ prevMonthButtonDisabled,
52
+ nextMonthButtonDisabled
53
+ } = props;
54
+ const year = date.getFullYear();
55
+ const month = date.getMonth();
56
+ return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
57
+ /* @__PURE__ */ jsx(
58
+ IconButton,
59
+ {
60
+ disabled: prevMonthButtonDisabled,
61
+ onClick: decreaseMonth,
62
+ variant: "ghost",
63
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
64
+ }
65
+ ),
66
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
67
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
68
+ year,
69
+ "\uB144"
70
+ ] }),
71
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
72
+ month + 1,
73
+ "\uC6D4"
74
+ ] })
75
+ ] }),
76
+ /* @__PURE__ */ jsx(
77
+ IconButton,
78
+ {
79
+ disabled: nextMonthButtonDisabled,
80
+ onClick: increaseMonth,
81
+ variant: "ghost",
82
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
83
+ }
84
+ )
85
+ ] });
86
+ };
87
+
88
+ export {
89
+ DatePicker
90
+ };
91
+ //# sourceMappingURL=chunk-T75M6HQZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\nimport type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport * as RDP from 'react-datepicker';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nexport type DatePickerProps = ReactDatePickerProps & {\n size?: 'small' | 'medium' | 'large';\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nconst ReactDatePicker = ((RDP.default as any).default ||\n (RDP.default as any) ||\n (RDP as any)) as typeof RDP.default;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactNode => {\n const { size = 'medium', ...rest } = props;\n return (\n <ReactDatePicker\n dateFormat=\"yyyy/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"yyyy/mm/dd\"\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n wrapperClassName={`tipp_datePicker ${size} ${rest.wrapperClassName || ''}`}\n />\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\nconst renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n props\n) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n } = props;\n\n const year = date.getFullYear();\n const month = date.getMonth();\n\n return (\n <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {month + 1}월\n </Heading>\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n};\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,kBAAkB;AAElC,YAAY,SAAS;AAmBf,cA0CE,YA1CF;AARN,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAAqC,YAA7B,SAAO,SAtBnB,IAsByC,IAAT,iBAAS,IAAT,CAApB;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAW;AAAA,QACX,sBAAqB;AAAA,QACrB,iBAAgB;AAAA,QAChB,0BAAyB;AAAA,QACzB;AAAA,QACA;AAAA,QACA,iBAAiB;AAAA,SACb,OARL;AAAA,QASC,mBAAmB,4BAA4B,KAAK,qBAAqB,EAAE;AAAA,QAC3E,kBAAkB,mBAAmB,IAAI,IAAI,KAAK,oBAAoB,EAAE;AAAA;AAAA,IAC1E;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAM,qBAAiE,CACrE,UACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,OAAO,KAAK,YAAY;AAC9B,QAAM,QAAQ,KAAK,SAAS;AAE5B,SACE,qBAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,IAAG,KAAI,IAAG,KAAI,IAAG,KACtD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,mBAAgB;AAAA;AAAA,IACnB;AAAA,IACA,qBAAC,QAAK,KAAI,KACR;AAAA,2BAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,qBAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA,gBAAQ;AAAA,QAAE;AAAA,SACb;AAAA,OACF;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,oBAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,91 @@
1
+ import {
2
+ Flex
3
+ } from "./chunk-25HMMI7R.js";
4
+ import {
5
+ Heading
6
+ } from "./chunk-WMZAV6PQ.js";
7
+ import {
8
+ IconButton
9
+ } from "./chunk-O3DNDMV3.js";
10
+ import {
11
+ ChevronLeftIcon,
12
+ ChevronRightIcon
13
+ } from "./chunk-RC25EWE2.js";
14
+ import {
15
+ __objRest,
16
+ __spreadProps,
17
+ __spreadValues
18
+ } from "./chunk-N552FDTV.js";
19
+
20
+ // src/molecules/date-picker/index.tsx
21
+ import { forwardRef } from "react";
22
+ import * as RDP from "react-datepicker";
23
+ import { jsx, jsxs } from "react/jsx-runtime";
24
+ var ReactDatePicker = RDP.default.default || RDP.default || RDP;
25
+ var DatePicker = forwardRef(
26
+ (props, ref) => {
27
+ const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
28
+ return /* @__PURE__ */ jsx(
29
+ ReactDatePicker,
30
+ __spreadProps(__spreadValues({
31
+ dateFormat: "yyyy/MM/dd",
32
+ nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
33
+ placeholderText: "yyyy/mm/dd",
34
+ previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
35
+ ref,
36
+ renderCustomHeader,
37
+ showPopperArrow: false
38
+ }, rest), {
39
+ calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
40
+ wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
41
+ })
42
+ );
43
+ }
44
+ );
45
+ DatePicker.displayName = "DatePicker";
46
+ var renderCustomHeader = (props) => {
47
+ const {
48
+ date,
49
+ decreaseMonth,
50
+ increaseMonth,
51
+ prevMonthButtonDisabled,
52
+ nextMonthButtonDisabled
53
+ } = props;
54
+ const year = date.getFullYear();
55
+ const month = date.getMonth();
56
+ return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
57
+ /* @__PURE__ */ jsx(
58
+ IconButton,
59
+ {
60
+ disabled: prevMonthButtonDisabled,
61
+ onClick: decreaseMonth,
62
+ variant: "ghost",
63
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
64
+ }
65
+ ),
66
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
67
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
68
+ year,
69
+ "\uB144"
70
+ ] }),
71
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
72
+ month + 1,
73
+ "\uC6D4"
74
+ ] })
75
+ ] }),
76
+ /* @__PURE__ */ jsx(
77
+ IconButton,
78
+ {
79
+ disabled: nextMonthButtonDisabled,
80
+ onClick: increaseMonth,
81
+ variant: "ghost",
82
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
83
+ }
84
+ )
85
+ ] });
86
+ };
87
+
88
+ export {
89
+ DatePicker
90
+ };
91
+ //# sourceMappingURL=chunk-TFJPLDJW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\nimport type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport * as RDP from 'react-datepicker';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nexport type DatePickerProps = ReactDatePickerProps & {\n size?: 'small' | 'medium' | 'large';\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nconst ReactDatePicker = ((RDP.default as any).default ||\n (RDP.default as any) ||\n (RDP as any)) as typeof RDP.default;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactNode => {\n const { size = 'medium', ...rest } = props;\n return (\n <ReactDatePicker\n dateFormat=\"yyyy/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"yyyy/mm/dd\"\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n wrapperClassName={`tipp_datePicker ${size} ${rest.wrapperClassName || ''}`}\n />\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\nconst renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n props\n) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n } = props;\n\n const year = date.getFullYear();\n const month = date.getMonth();\n\n return (\n <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {month + 1}월\n </Heading>\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n};\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,kBAAkB;AAElC,YAAY,SAAS;AAmBf,cA0CE,YA1CF;AARN,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAAqC,YAA7B,SAAO,SAtBnB,IAsByC,IAAT,iBAAS,IAAT,CAApB;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAW;AAAA,QACX,sBAAqB;AAAA,QACrB,iBAAgB;AAAA,QAChB,0BAAyB;AAAA,QACzB;AAAA,QACA;AAAA,QACA,iBAAiB;AAAA,SACb,OARL;AAAA,QASC,mBAAmB,4BAA4B,KAAK,qBAAqB,EAAE;AAAA,QAC3E,kBAAkB,mBAAmB,IAAI,IAAI,KAAK,oBAAoB,EAAE;AAAA;AAAA,IAC1E;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAM,qBAAiE,CACrE,UACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,OAAO,KAAK,YAAY;AAC9B,QAAM,QAAQ,KAAK,SAAS;AAE5B,SACE,qBAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,IAAG,KAAI,IAAG,KAAI,IAAG,KACtD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,mBAAgB;AAAA;AAAA,IACnB;AAAA,IACA,qBAAC,QAAK,KAAI,KACR;AAAA,2BAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,qBAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA,gBAAQ;AAAA,QAAE;AAAA,SACb;AAAA,OACF;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,oBAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,53 @@
1
+ import {
2
+ Flex
3
+ } from "./chunk-25HMMI7R.js";
4
+
5
+ // src/molecules/dot-navigation.tsx
6
+ import { useCallback, useEffect, useState } from "react";
7
+ import { DotFilledIcon } from "@radix-ui/react-icons";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function DotNavigation(props) {
10
+ const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
11
+ const [currentDot, setCurrentDot] = useState(
12
+ () => {
13
+ var _a;
14
+ return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
15
+ }
16
+ );
17
+ const onClickDot = useCallback(
18
+ (i) => {
19
+ if (onClick) {
20
+ onClick(i);
21
+ } else {
22
+ setCurrentDot(i);
23
+ }
24
+ },
25
+ [onClick]
26
+ );
27
+ useEffect(() => {
28
+ onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
29
+ }, [currentDot, onChangeDotIndex]);
30
+ return /* @__PURE__ */ jsx(Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
31
+ const isSelected = currentDot === index;
32
+ return /* @__PURE__ */ jsx(
33
+ DotFilledIcon,
34
+ {
35
+ fill: "var(--gray-5)",
36
+ height: "24px",
37
+ onClick: () => {
38
+ onClickDot(index);
39
+ },
40
+ style: {
41
+ cursor: "pointer"
42
+ },
43
+ width: "24px"
44
+ },
45
+ index
46
+ );
47
+ }) : null });
48
+ }
49
+
50
+ export {
51
+ DotNavigation
52
+ };
53
+ //# sourceMappingURL=chunk-W32CVWDO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/dot-navigation.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport { Flex } from '../atoms/flex';\n\nexport interface DotNavigationProps {\n /** 전체 점 갯수 */\n dotCount?: number;\n /** 점 클릭 시 */\n onClick?: (index: number) => void;\n /** 현재 선택된 점 */\n dotIndex?: number;\n /** 기본 점 위치 */\n defaultDotIndex?: number;\n /** 선택된 점 변경 시 실행 */\n onChangeDotIndex?: (index: number) => void;\n}\n\nexport function DotNavigation(props: DotNavigationProps): React.ReactElement {\n const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } =\n props;\n\n const [currentDot, setCurrentDot] = useState<number>(\n () => defaultDotIndex ?? dotIndex ?? 0\n );\n\n const onClickDot = useCallback(\n (i: number) => {\n if (onClick) {\n onClick(i);\n } else {\n setCurrentDot(i);\n }\n },\n [onClick]\n );\n\n useEffect(() => {\n onChangeDotIndex?.(currentDot);\n }, [currentDot, onChangeDotIndex]);\n\n return (\n <Flex>\n {dotCount\n ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {\n const isSelected = currentDot === index;\n return (\n <DotFilledIcon\n // color={isSelected ? undefined : 'gray'}\n fill=\"var(--gray-5)\"\n height=\"24px\"\n // eslint-disable-next-line react/no-array-index-key -- index외의 키가 없음\n key={index}\n onClick={() => {\n onClickDot(index);\n }}\n style={{\n cursor: 'pointer',\n }}\n width=\"24px\"\n />\n );\n })\n : null}\n </Flex>\n );\n}\n"],"mappings":";;;;;AAAA,SAAgB,aAAa,WAAW,gBAAgB;AACxD,SAAS,qBAAqB;AA6ChB;AA7BP,SAAS,cAAc,OAA+C;AAC3E,QAAM,EAAE,UAAU,SAAS,UAAU,iBAAiB,iBAAiB,IACrE;AAEF,QAAM,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,MAAG;AAtBP;AAsBU,+DAAmB,aAAnB,YAA+B;AAAA;AAAA,EACvC;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,MAAc;AACb,UAAI,SAAS;AACX,gBAAQ,CAAC;AAAA,MACX,OAAO;AACL,sBAAc,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,YAAU,MAAM;AACd,yDAAmB;AAAA,EACrB,GAAG,CAAC,YAAY,gBAAgB,CAAC;AAEjC,SACE,oBAAC,QACE,qBACG,MAAM,KAAK,EAAE,QAAQ,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAC9D,UAAM,aAAa,eAAe;AAClC,WACE;AAAA,MAAC;AAAA;AAAA,QAEC,MAAK;AAAA,QACL,QAAO;AAAA,QAGP,SAAS,MAAM;AACb,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QACA,OAAM;AAAA;AAAA,MAPD;AAAA,IAQP;AAAA,EAEJ,CAAC,IACD,MACN;AAEJ;","names":[]}
@@ -0,0 +1,54 @@
1
+ import {
2
+ Flex
3
+ } from "./chunk-25HMMI7R.js";
4
+
5
+ // src/molecules/dot-navigation.tsx
6
+ import { useCallback, useEffect, useState } from "react";
7
+ import { DotFilledIcon } from "@radix-ui/react-icons";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function DotNavigation(props) {
10
+ const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
11
+ const [currentDot, setCurrentDot] = useState(
12
+ () => {
13
+ var _a;
14
+ return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
15
+ }
16
+ );
17
+ const onClickDot = useCallback(
18
+ (i) => {
19
+ if (onClick) {
20
+ onClick(i);
21
+ } else {
22
+ setCurrentDot(i);
23
+ }
24
+ },
25
+ [onClick]
26
+ );
27
+ useEffect(() => {
28
+ onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
29
+ }, [currentDot, onChangeDotIndex]);
30
+ return /* @__PURE__ */ jsx(Flex, { gap: "4", children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
31
+ const isSelected = currentDot === index;
32
+ return /* @__PURE__ */ jsx(
33
+ DotFilledIcon,
34
+ {
35
+ color: isSelected ? void 0 : "gray",
36
+ height: "8px",
37
+ fill: "var(--gray-5)",
38
+ onClick: () => {
39
+ onClickDot(index);
40
+ },
41
+ style: {
42
+ cursor: "pointer"
43
+ },
44
+ width: "8px"
45
+ },
46
+ index
47
+ );
48
+ }) : null });
49
+ }
50
+
51
+ export {
52
+ DotNavigation
53
+ };
54
+ //# sourceMappingURL=chunk-XXTSXGYB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/dot-navigation.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport { Flex } from '../atoms/flex';\n\nexport interface DotNavigationProps {\n /** 전체 점 갯수 */\n dotCount?: number;\n /** 점 클릭 시 */\n onClick?: (index: number) => void;\n /** 현재 선택된 점 */\n dotIndex?: number;\n /** 기본 점 위치 */\n defaultDotIndex?: number;\n /** 선택된 점 변경 시 실행 */\n onChangeDotIndex?: (index: number) => void;\n}\n\nexport function DotNavigation(props: DotNavigationProps): React.ReactElement {\n const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } =\n props;\n\n const [currentDot, setCurrentDot] = useState<number>(\n () => defaultDotIndex ?? dotIndex ?? 0\n );\n\n const onClickDot = useCallback(\n (i: number) => {\n if (onClick) {\n onClick(i);\n } else {\n setCurrentDot(i);\n }\n },\n [onClick]\n );\n\n useEffect(() => {\n onChangeDotIndex?.(currentDot);\n }, [currentDot, onChangeDotIndex]);\n\n return (\n <Flex gap=\"4\">\n {dotCount\n ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {\n const isSelected = currentDot === index;\n return (\n <DotFilledIcon\n color={isSelected ? undefined : 'gray'}\n height=\"8px\"\n fill=\"var(--gray-5)\"\n // eslint-disable-next-line react/no-array-index-key -- index외의 키가 없음\n key={index}\n onClick={() => {\n onClickDot(index);\n }}\n style={{\n cursor: 'pointer',\n }}\n width=\"8px\"\n />\n );\n })\n : null}\n </Flex>\n );\n}\n"],"mappings":";;;;;AAAA,SAAgB,aAAa,WAAW,gBAAgB;AACxD,SAAS,qBAAqB;AA6ChB;AA7BP,SAAS,cAAc,OAA+C;AAC3E,QAAM,EAAE,UAAU,SAAS,UAAU,iBAAiB,iBAAiB,IACrE;AAEF,QAAM,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,MAAG;AAtBP;AAsBU,+DAAmB,aAAnB,YAA+B;AAAA;AAAA,EACvC;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,MAAc;AACb,UAAI,SAAS;AACX,gBAAQ,CAAC;AAAA,MACX,OAAO;AACL,sBAAc,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,YAAU,MAAM;AACd,yDAAmB;AAAA,EACrB,GAAG,CAAC,YAAY,gBAAgB,CAAC;AAEjC,SACE,oBAAC,QAAK,KAAI,KACP,qBACG,MAAM,KAAK,EAAE,QAAQ,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAC9D,UAAM,aAAa,eAAe;AAClC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,aAAa,SAAY;AAAA,QAChC,QAAO;AAAA,QACP,MAAK;AAAA,QAGL,SAAS,MAAM;AACb,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QACA,OAAM;AAAA;AAAA,MAPD;AAAA,IAQP;AAAA,EAEJ,CAAC,IACD,MACN;AAEJ;","names":[]}
package/dist/icon.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/icon.ts
21
21
  var icon_exports = {};
22
22
  __export(icon_exports, {
23
+ BackpackIcon: () => import_react_icons.BackpackIcon,
23
24
  BarChartIcon: () => import_react_icons.BarChartIcon,
24
25
  BookmarkFilledIcon: () => import_react_icons.BookmarkFilledIcon,
25
26
  BookmarkIcon: () => import_react_icons.BookmarkIcon,
@@ -38,6 +39,7 @@ __export(icon_exports, {
38
39
  ExitIcon: () => import_react_icons.ExitIcon,
39
40
  FileIcon: () => import_react_icons.FileIcon,
40
41
  GearIcon: () => import_react_icons.GearIcon,
42
+ GlobeIcon: () => import_react_icons.GlobeIcon,
41
43
  InfoCircledIcon: () => import_react_icons.InfoCircledIcon,
42
44
  Link2Icon: () => import_react_icons.Link2Icon,
43
45
  MagnifyingGlassIcon: () => import_react_icons.MagnifyingGlassIcon,
@@ -51,6 +53,7 @@ module.exports = __toCommonJS(icon_exports);
51
53
  var import_react_icons = require("@radix-ui/react-icons");
52
54
  // Annotate the CommonJS export names for ESM import in node:
53
55
  0 && (module.exports = {
56
+ BackpackIcon,
54
57
  BarChartIcon,
55
58
  BookmarkFilledIcon,
56
59
  BookmarkIcon,
@@ -69,6 +72,7 @@ var import_react_icons = require("@radix-ui/react-icons");
69
72
  ExitIcon,
70
73
  FileIcon,
71
74
  GearIcon,
75
+ GlobeIcon,
72
76
  InfoCircledIcon,
73
77
  Link2Icon,
74
78
  MagnifyingGlassIcon,
package/dist/icon.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n BookmarkFilledIcon,\n MixerHorizontalIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ClipboardIcon,\n BarChartIcon,\n PersonIcon,\n GearIcon,\n DotsVerticalIcon,\n Pencil1Icon,\n Cross1Icon,\n Link2Icon,\n ChevronUpIcon,\n ChevronDownIcon,\n FileIcon,\n TrashIcon,\n DoubleArrowLeftIcon,\n DoubleArrowRightIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBA2BO;","names":[]}
1
+ {"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n BookmarkFilledIcon,\n MixerHorizontalIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ClipboardIcon,\n BarChartIcon,\n PersonIcon,\n GearIcon,\n DotsVerticalIcon,\n Pencil1Icon,\n Cross1Icon,\n Link2Icon,\n ChevronUpIcon,\n ChevronDownIcon,\n FileIcon,\n TrashIcon,\n DoubleArrowLeftIcon,\n DoubleArrowRightIcon,\n GlobeIcon,\n BackpackIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBA6BO;","names":[]}
package/dist/icon.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { BarChartIcon, BookmarkFilledIcon, BookmarkIcon, ChatBubbleIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClipboardIcon, Cross1Icon, DotsHorizontalIcon, DotsVerticalIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, ExclamationTriangleIcon, ExitIcon, FileIcon, GearIcon, InfoCircledIcon, Link2Icon, MagnifyingGlassIcon, MixerHorizontalIcon, Pencil1Icon, PersonIcon, PlusIcon, TrashIcon } from '@radix-ui/react-icons';
1
+ export { BackpackIcon, BarChartIcon, BookmarkFilledIcon, BookmarkIcon, ChatBubbleIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClipboardIcon, Cross1Icon, DotsHorizontalIcon, DotsVerticalIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, ExclamationTriangleIcon, ExitIcon, FileIcon, GearIcon, GlobeIcon, InfoCircledIcon, Link2Icon, MagnifyingGlassIcon, MixerHorizontalIcon, Pencil1Icon, PersonIcon, PlusIcon, TrashIcon } from '@radix-ui/react-icons';
2
2
  import '@radix-ui/themes';
3
3
  import '@radix-ui/themes/dist/cjs/props/index.js';
package/dist/icon.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { BarChartIcon, BookmarkFilledIcon, BookmarkIcon, ChatBubbleIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClipboardIcon, Cross1Icon, DotsHorizontalIcon, DotsVerticalIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, ExclamationTriangleIcon, ExitIcon, FileIcon, GearIcon, InfoCircledIcon, Link2Icon, MagnifyingGlassIcon, MixerHorizontalIcon, Pencil1Icon, PersonIcon, PlusIcon, TrashIcon } from '@radix-ui/react-icons';
1
+ export { BackpackIcon, BarChartIcon, BookmarkFilledIcon, BookmarkIcon, ChatBubbleIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClipboardIcon, Cross1Icon, DotsHorizontalIcon, DotsVerticalIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, ExclamationTriangleIcon, ExitIcon, FileIcon, GearIcon, GlobeIcon, InfoCircledIcon, Link2Icon, MagnifyingGlassIcon, MixerHorizontalIcon, Pencil1Icon, PersonIcon, PlusIcon, TrashIcon } from '@radix-ui/react-icons';
2
2
  import '@radix-ui/themes';
3
3
  import '@radix-ui/themes/dist/cjs/props/index.js';
package/dist/icon.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ BackpackIcon,
2
3
  BarChartIcon,
3
4
  BookmarkFilledIcon,
4
5
  BookmarkIcon,
@@ -17,6 +18,7 @@ import {
17
18
  ExitIcon,
18
19
  FileIcon,
19
20
  GearIcon,
21
+ GlobeIcon,
20
22
  InfoCircledIcon,
21
23
  Link2Icon,
22
24
  MagnifyingGlassIcon,
@@ -25,9 +27,10 @@ import {
25
27
  PersonIcon,
26
28
  PlusIcon,
27
29
  TrashIcon
28
- } from "./chunk-TSVWEPRP.js";
30
+ } from "./chunk-RC25EWE2.js";
29
31
  import "./chunk-N552FDTV.js";
30
32
  export {
33
+ BackpackIcon,
31
34
  BarChartIcon,
32
35
  BookmarkFilledIcon,
33
36
  BookmarkIcon,
@@ -46,6 +49,7 @@ export {
46
49
  ExitIcon,
47
50
  FileIcon,
48
51
  GearIcon,
52
+ GlobeIcon,
49
53
  InfoCircledIcon,
50
54
  Link2Icon,
51
55
  MagnifyingGlassIcon,
package/dist/index.cjs CHANGED
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  AlertDialog: () => import_themes.AlertDialog,
63
63
  AspectRatio: () => import_themes2.AspectRatio,
64
64
  Avatar: () => Avatar,
65
+ BackpackIcon: () => import_react_icons.BackpackIcon,
65
66
  Badge: () => Badge,
66
67
  BarChartIcon: () => import_react_icons.BarChartIcon,
67
68
  Blockquote: () => import_themes5.Blockquote,
@@ -88,6 +89,7 @@ __export(src_exports, {
88
89
  DataList: () => import_themes15.DataList,
89
90
  DatePicker: () => DatePicker,
90
91
  Dialog: () => import_themes16.Dialog,
92
+ DotNavigation: () => DotNavigation,
91
93
  DotsHorizontalIcon: () => import_react_icons.DotsHorizontalIcon,
92
94
  DotsVerticalIcon: () => import_react_icons.DotsVerticalIcon,
93
95
  DoubleArrowLeftIcon: () => import_react_icons.DoubleArrowLeftIcon,
@@ -105,6 +107,7 @@ __export(src_exports, {
105
107
  Flex: () => import_themes19.Flex,
106
108
  Form: () => Form,
107
109
  GearIcon: () => import_react_icons.GearIcon,
110
+ GlobeIcon: () => import_react_icons.GlobeIcon,
108
111
  Grid: () => import_themes20.Grid,
109
112
  Heading: () => Heading2,
110
113
  HorizontalBarChart: () => HorizontalBarChart,
@@ -1218,6 +1221,51 @@ var renderCustomHeader = (props) => {
1218
1221
  ] });
1219
1222
  };
1220
1223
 
1224
+ // src/molecules/dot-navigation.tsx
1225
+ var import_react20 = require("react");
1226
+ var import_react_icons3 = require("@radix-ui/react-icons");
1227
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1228
+ function DotNavigation(props) {
1229
+ const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
1230
+ const [currentDot, setCurrentDot] = (0, import_react20.useState)(
1231
+ () => {
1232
+ var _a;
1233
+ return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
1234
+ }
1235
+ );
1236
+ const onClickDot = (0, import_react20.useCallback)(
1237
+ (i) => {
1238
+ if (onClick) {
1239
+ onClick(i);
1240
+ } else {
1241
+ setCurrentDot(i);
1242
+ }
1243
+ },
1244
+ [onClick]
1245
+ );
1246
+ (0, import_react20.useEffect)(() => {
1247
+ onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
1248
+ }, [currentDot, onChangeDotIndex]);
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes19.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
1250
+ const isSelected = currentDot === index;
1251
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1252
+ import_react_icons3.DotFilledIcon,
1253
+ {
1254
+ height: "24px",
1255
+ onClick: () => {
1256
+ onClickDot(index);
1257
+ },
1258
+ opacity: isSelected ? void 0 : 0.25,
1259
+ style: {
1260
+ cursor: "pointer"
1261
+ },
1262
+ width: "24px"
1263
+ },
1264
+ index
1265
+ );
1266
+ }) : null });
1267
+ }
1268
+
1221
1269
  // src/theme/use-theme.tsx
1222
1270
  var import_themes51 = require("@radix-ui/themes");
1223
1271
 
@@ -1225,22 +1273,22 @@ var import_themes51 = require("@radix-ui/themes");
1225
1273
  var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
1226
1274
 
1227
1275
  // src/charts/horizontal-bar-chart.tsx
1228
- var import_jsx_runtime26 = require("react/jsx-runtime");
1276
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1229
1277
  function HorizontalBarChart(props) {
1230
1278
  const { total, value, backgroundColor, barColor, height } = props;
1231
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1232
1280
  "div",
1233
1281
  {
1234
1282
  className: "tipp_horizontal-bar-chart bar-wrapper",
1235
1283
  style: { height, backgroundColor },
1236
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1284
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1237
1285
  "div",
1238
1286
  {
1239
1287
  style: {
1240
1288
  width: `${Math.round(value / total * 100)}%`,
1241
1289
  height: "100%"
1242
1290
  },
1243
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1291
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1244
1292
  }
1245
1293
  )
1246
1294
  }
@@ -1440,6 +1488,7 @@ function scrollTo(element, targetPosition, duration) {
1440
1488
  AlertDialog,
1441
1489
  AspectRatio,
1442
1490
  Avatar,
1491
+ BackpackIcon,
1443
1492
  Badge,
1444
1493
  BarChartIcon,
1445
1494
  Blockquote,
@@ -1466,6 +1515,7 @@ function scrollTo(element, targetPosition, duration) {
1466
1515
  DataList,
1467
1516
  DatePicker,
1468
1517
  Dialog,
1518
+ DotNavigation,
1469
1519
  DotsHorizontalIcon,
1470
1520
  DotsVerticalIcon,
1471
1521
  DoubleArrowLeftIcon,
@@ -1483,6 +1533,7 @@ function scrollTo(element, targetPosition, duration) {
1483
1533
  Flex,
1484
1534
  Form,
1485
1535
  GearIcon,
1536
+ GlobeIcon,
1486
1537
  Grid,
1487
1538
  Heading,
1488
1539
  HorizontalBarChart,