@iamfiro/design 0.3.1 → 0.3.4

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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,162 +1,161 @@
1
1
  "use client";
2
2
  const e = t;
3
- function t(e, r) {
4
- e -= 431;
5
- let i = n(), a = i[e];
6
- t.oyupzQ === void 0 && (t.wCVwaf = function(e) {
7
- let t = "", n = "";
8
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
9
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
- return decodeURIComponent(n);
11
- }, t.HOrBej = {}, t.oyupzQ = !0);
12
- let o = i[0];
13
- t.gebScX !== o && (t.HOrBej = {}, t.gebScX = o);
14
- let s = t.HOrBej[e];
15
- return s === void 0 ? (a = t.wCVwaf(a), t.HOrBej[e] = a) : a = s, a;
16
- }
17
3
  (function(e, n) {
18
4
  let r = t, i = e();
19
5
  for (;;) try {
20
- if (-parseInt(r(468)) / 1 * (parseInt(r(444)) / 2) + parseInt(r(475)) / 3 * (parseInt(r(478)) / 4) + -parseInt(r(479)) / 5 + parseInt(r(435)) / 6 + -parseInt(r(446)) / 7 * (-parseInt(r(476)) / 8) + parseInt(r(450)) / 9 * (-parseInt(r(433)) / 10) + -parseInt(r(458)) / 11 * (-parseInt(r(461)) / 12) == n) break;
6
+ if (parseInt(r(486)) / 1 * (parseInt(r(512)) / 2) + -parseInt(r(482)) / 3 + parseInt(r(502)) / 4 + parseInt(r(516)) / 5 * (-parseInt(r(485)) / 6) + parseInt(r(520)) / 7 * (-parseInt(r(517)) / 8) + -parseInt(r(487)) / 9 + parseInt(r(497)) / 10 * (parseInt(r(495)) / 11) == n) break;
21
7
  i.push(i.shift());
22
8
  } catch {
23
9
  i.push(i.shift());
24
10
  }
25
- })(n, 701299);
26
- function n() {
27
- let e = /* @__PURE__ */ "BgvUz3rO.zM9JDxm.zxHHBxbSzq.CMvWBgfJzq.kcmJiYKGiYmJlsmJiYm.iYmGiYmGiYmGiYmGiYm.mtC4odC5mez2wM9qtG.iYmJlsmJiYmTiYmJiW.mZa0nduXuNLstunk.DgvSlw5HDgLVBMfS.67kG7yQ464kO.BwfW.ntrSzwPvAMS.zMLUza.C3rHCNrZv2L0Aa.64Ya7zwC66+86RwT.7zse656r7iQK.mdyXmJm0nty3oa.iYmJicmJiYaJiYmJ.C2XPy2u.nJu2ndu4s2HnDNPW.ChjLDMvUDerLzMf1Bhq.C3bSAxq.mta4CuzXAhjr.DhjPBq.mdKXmJm0nty3oa.mdKWmtiZndu2nZG.y2XPCgjVyxjKrgf0yq.Dhj1BMS.Dgv4Da.mwrhtwXmAa.AgLKzgvU.zgLHBa.Cgf0DgvYBG.y29Kzq.mde1mtiZndu2nZG5.DgvS.mtv3BNbNwKq.mtG0wxnTDKfQ.iYmJiYmGiYmJiYmJ.ntu0otG0y1PXrNvT.mJq0mZC1r2vPvgzu.C29YDa.iYmJicmJiYmGiYmJiW.mtG4nZu1me9jv2Hlta.CMvM.mZi3ntu2ogPMuefVtG.mJaXntu1mdeYmW.mdeWmtiZndu2nZG".split(".");
28
- return n = function() {
29
- return e;
30
- }, n();
11
+ })(m, 466002);
12
+ function t(e, n) {
13
+ e -= 477;
14
+ let r = m(), i = r[e];
15
+ t.ciUfQV === void 0 && (t.IlGFYq = function(e) {
16
+ let t = "", n = "";
17
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
18
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
+ return decodeURIComponent(n);
20
+ }, t.uNAdcg = {}, t.ciUfQV = !0);
21
+ let a = r[0];
22
+ t.sZOFEe !== a && (t.uNAdcg = {}, t.sZOFEe = a);
23
+ let o = t.uNAdcg[e];
24
+ return o === void 0 ? (i = t.IlGFYq(i), t.uNAdcg[e] = i) : i = o, i;
31
25
  }
32
- import { Flag as r } from "../../primitives/Flag2.js";
33
- import { useControllableState as i } from "../../hooks/useControllableState.js";
34
- import { Input as a } from "../../primitives/index.js";
35
- import { useDigitInput as o } from "../../hooks/useDigitInput.js";
36
- import { Select as s } from "../Select/Select2.js";
37
- import { useRef as c } from "react";
38
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
39
- var f = [
26
+ import { Flag as n } from "../../primitives/Flag2.js";
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { Input as i } from "../../primitives/index.js";
29
+ import { useDigitInput as a } from "../../hooks/useDigitInput.js";
30
+ import { Select as o } from "../Select/Select2.js";
31
+ import { useRef as s } from "react";
32
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
33
+ var d = [
40
34
  {
41
35
  code: "KR",
42
- name: e(453),
36
+ name: "대한민국",
43
37
  dial: "82",
44
- pattern: e(445),
45
- example: e(437),
38
+ pattern: e(508),
39
+ example: e(506),
46
40
  trunk: !0
47
41
  },
48
42
  {
49
43
  code: "US",
50
44
  name: "미국",
51
45
  dial: "1",
52
- pattern: e(442),
53
- example: e(436)
46
+ pattern: e(523),
47
+ example: e(505)
54
48
  },
55
49
  {
56
50
  code: "JP",
57
51
  name: "일본",
58
52
  dial: "81",
59
- pattern: e(445),
60
- example: e(464),
53
+ pattern: e(508),
54
+ example: e(492),
61
55
  trunk: !0
62
56
  },
63
57
  {
64
58
  code: "CN",
65
59
  name: "중국",
66
60
  dial: "86",
67
- pattern: e(432),
68
- example: "13123456789"
61
+ pattern: "### #### ####",
62
+ example: e(493)
69
63
  },
70
64
  {
71
65
  code: "VN",
72
- name: e(448),
66
+ name: e(479),
73
67
  dial: "84",
74
- pattern: e(456),
75
- example: e(463),
68
+ pattern: e(498),
69
+ example: e(484),
76
70
  trunk: !0
77
71
  },
78
72
  {
79
73
  code: "GB",
80
74
  name: "영국",
81
75
  dial: "44",
82
- pattern: e(477),
83
- example: "07400123456",
76
+ pattern: e(519),
77
+ example: e(507),
84
78
  trunk: !0
85
79
  },
86
80
  {
87
81
  code: "DE",
88
82
  name: "독일",
89
83
  dial: "49",
90
- pattern: "##### #######",
91
- example: e(473),
84
+ pattern: e(504),
85
+ example: e(511),
92
86
  trunk: !0
93
87
  },
94
88
  {
95
89
  code: "FR",
96
- name: e(454),
90
+ name: e(503),
97
91
  dial: "33",
98
- pattern: e(443),
99
- example: e(455),
92
+ pattern: e(500),
93
+ example: e(478),
100
94
  trunk: !0
101
95
  }
102
96
  ];
103
- function p(t, n) {
97
+ function f(t, n) {
104
98
  let r = e, i = "", a = 0;
105
99
  for (let e of n) {
106
- if (a === t[r(438)]) break;
100
+ if (a === t[r(525)]) break;
107
101
  i += e === "#" ? t[a++] : e;
108
102
  }
109
103
  return i;
110
104
  }
111
- function m(t, n) {
112
- let r = e;
113
- return t ? "+" + n[r(470)] + (n.trunk ? t[r(441)](/^0/, "") : t) : "";
105
+ function p(e, t) {
106
+ return e ? "+" + t.dial + (t.trunk ? e.replace(/^0/, "") : e) : "";
107
+ }
108
+ function m() {
109
+ let e = /* @__PURE__ */ "C3bSAxq.mtvoCLnhu0O.ntq5nZC2wvzgt3Lj.Dhj1BMS.iYmJiYmGiYmJiYmJ.mJHpEKvJqKS.C2XPy2u.Cgf0DgvYBG.kcmJiYKGiYmJlsmJiYm.DgvS.BgvUz3rO.ChjLDMvUDerLzMf1Bhq.mdyXmJm0nty3oa.67kG7yQ464kO.z2v0rgf0yq.y29Kzq.mtuWmtGWmePbtNnAvq.zM9JDxm.mdKXmJm0nty3oa.mtG0mtK4mK9RENDMta.mZq2mw5ODvjRyW.nde4ntCZogjLwfjeqW.BMfTzq.C3rHCNrZv2L0Aa.AgLKzgvU.zMLUza.mdKWmtiZndu2nZG.mtmXmJm0nty3odK.DgvSlw5HDgLVBMfS.mtfuBefhA3C.zxHHBxbSzq.mtq5nJiZotbxALvJwfm.iYmJicmJiYaJiYmJ.Aw5WDxq.iYmGiYmGiYmGiYmGiYm.y3vYCMvUDa.mJCXmtCZmKfSwMzpua.7zse656r7iQK.iYmJiYmGiYmJiYmJiW.mJaXntu1mdeYmW.mdeWmtiZndu2nZG.mdC0mdaXmJm0nty.iYmJlsmJiYmTiYmJiW.DhjPBq.y2XPCgjVyxjKrgf0yq.mde1mtiZndu2nZG5.mJyYEgPduhHi.CMvWBgfJzq.zgLHBa".split(".");
110
+ return m = function() {
111
+ return e;
112
+ }, m();
114
113
  }
115
- function h({ value: t, defaultValue: n = "", onValueChange: h, country: g, defaultCountry: _ = "KR", onCountryChange: v, countries: y = f, size: b = "md", invalid: x, disabled: S, placeholder: C, name: w, id: T, "aria-label": E }) {
116
- let D = e, O = c(null), [k, A] = i(g, _, v), j = y.find((e) => e[D(472)] === k) ?? y[0], M = j[D(471)][D(460)]("#")[D(438)] - 1, [N, P] = i(t, n), F = (e, t = j) => {
114
+ function h({ value: t, defaultValue: m = "", onValueChange: h, country: g, defaultCountry: _ = "KR", onCountryChange: v, countries: y = d, size: b = "md", invalid: x, disabled: S, placeholder: C, name: w, id: T, "aria-label": E }) {
115
+ let D = e, O = s(null), [k, A] = r(g, _, v), j = y.find((e) => e[D(481)] === k) ?? y[0], M = j[D(522)][D(515)]("#").length - 1, [N, P] = r(t, m), F = (e, t = j) => {
117
116
  P(e), h?.(e, {
118
117
  country: t,
119
- e164: m(e, t)
118
+ e164: p(e, t)
120
119
  });
121
- }, I = o({
120
+ }, I = a({
122
121
  digits: N,
123
122
  onDigitsChange: F,
124
- format: (e) => p(e, j.pattern),
123
+ format: (e) => f(e, j[D(522)]),
125
124
  maxDigits: M
126
125
  }), L = (e) => {
127
- let t = D, n = y[t(451)]((n) => n[t(472)] === e) ?? j;
126
+ let t = D, n = y.find((t) => t.code === e) ?? j;
128
127
  A(e);
129
- let r = N[t(457)](0, n[t(471)].split("#")[t(438)] - 1);
130
- (r !== N || n !== j) && F(r, n), requestAnimationFrame(() => I[t(434)].current?.[t(439)]());
128
+ let r = N[t(521)](0, n.pattern[t(515)]("#").length - 1);
129
+ (r !== N || n !== j) && F(r, n), requestAnimationFrame(() => I.ref[t(501)]?.[t(483)]());
131
130
  }, R = (e) => {
132
- let t = D, n = e[t(465)].getData(t(467))[t(462)]();
133
- if (!n[t(452)]("+")) return;
134
- let r = n[t(441)](/\D/g, ""), i = [...y][t(431)]((e, n) => n[t(470)][t(438)] - e.dial.length).find((e) => r[t(452)](e[t(470)]));
131
+ let t = D, n = e[t(510)][t(480)]("text")[t(509)]();
132
+ if (!n[t(489)]("+")) return;
133
+ let r = n[t(513)](/\D/g, ""), i = [...y].sort((e, n) => n[t(514)].length - e.dial[t(525)])[t(491)]((e) => r[t(489)](e.dial));
135
134
  if (!i) return;
136
- e[t(459)]();
137
- let a = r[t(457)](i[t(470)][t(438)]);
138
- i[t(466)] && !a[t(452)]("0") && (a = "0" + a), A(i.code), F(a.slice(0, i[t(471)][t(460)]("#")[t(438)] - 1), i);
139
- }, z = y[D(449)]((e) => ({
140
- value: e[D(472)],
141
- label: e.name,
142
- icon: u(r, { code: e[D(472)] }),
143
- meta: "+" + e[D(470)],
144
- keywords: [e[D(470)]]
135
+ e[t(477)]();
136
+ let a = r[t(521)](i.dial[t(525)]);
137
+ i[t(518)] && !a[t(489)]("0") && (a = "0" + a), A(i[t(481)]), F(a[t(521)](0, i[t(522)][t(515)]("#")[t(525)] - 1), i);
138
+ }, z = y.map((e) => ({
139
+ value: e[D(481)],
140
+ label: e[D(488)],
141
+ icon: l(n, { code: e[D(481)] }),
142
+ meta: "+" + e.dial,
143
+ keywords: [e.dial]
145
144
  }));
146
- return d(l, { children: [u(a, {
145
+ return u(c, { children: [l(i, {
147
146
  ...I,
148
147
  id: T,
149
- type: D(474),
150
- inputMode: D(474),
151
- autoComplete: D(447),
148
+ type: D(524),
149
+ inputMode: D(524),
150
+ autoComplete: D(494),
152
151
  size: b,
153
152
  invalid: x,
154
153
  disabled: S,
155
154
  "aria-label": E,
156
- placeholder: C ?? p(j[D(440)], j[D(471)]),
155
+ placeholder: C ?? f(j[D(496)], j.pattern),
157
156
  onPaste: R,
158
157
  wrapperRef: O,
159
- leading: u(s, {
158
+ leading: l(o, {
160
159
  bare: !0,
161
160
  options: z,
162
161
  value: j.code,
@@ -164,12 +163,12 @@ function h({ value: t, defaultValue: n = "", onValueChange: h, country: g, defau
164
163
  anchorRef: O,
165
164
  disabled: S,
166
165
  "aria-label": "국가",
167
- renderValue: () => "+" + j[D(470)]
166
+ renderValue: () => "+" + j.dial
168
167
  })
169
- }), w && u("input", {
170
- type: D(469),
168
+ }), w && l(D(499), {
169
+ type: D(490),
171
170
  name: w,
172
- value: m(N, j)
171
+ value: p(N, j)
173
172
  })] });
174
173
  }
175
- export { f as PHONE_COUNTRIES, h as PhoneInput, p as formatPhone, m as toE164 };
174
+ export { d as PHONE_COUNTRIES, h as PhoneInput, f as formatPhone, p as toE164 };