@mieweb/ui 0.11.0-dev.4 → 0.11.0-dev.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.
Files changed (61) hide show
  1. package/dist/{chunk-IJYTASQQ.cjs → chunk-3AD4HFYI.cjs} +15 -7
  2. package/dist/chunk-3AD4HFYI.cjs.map +1 -0
  3. package/dist/{chunk-CFI3TQMA.cjs → chunk-56C7K4MV.cjs} +9 -4
  4. package/dist/chunk-56C7K4MV.cjs.map +1 -0
  5. package/dist/{chunk-TNUL4LGG.js → chunk-5ILCNY74.js} +15 -7
  6. package/dist/chunk-5ILCNY74.js.map +1 -0
  7. package/dist/{chunk-AFDW64EF.cjs → chunk-5K7PRPSV.cjs} +30 -2
  8. package/dist/chunk-5K7PRPSV.cjs.map +1 -0
  9. package/dist/{chunk-QQCHM7BZ.cjs → chunk-5VA2HJ5B.cjs} +6 -6
  10. package/dist/{chunk-QQCHM7BZ.cjs.map → chunk-5VA2HJ5B.cjs.map} +1 -1
  11. package/dist/{chunk-AG5EKCE4.js → chunk-EBQG3NGT.js} +30 -2
  12. package/dist/chunk-EBQG3NGT.js.map +1 -0
  13. package/dist/{chunk-7IBZA7G6.js → chunk-I6Y2KLTZ.js} +5 -2
  14. package/dist/chunk-I6Y2KLTZ.js.map +1 -0
  15. package/dist/{chunk-OHKO5THF.cjs → chunk-MGFRGPWI.cjs} +3 -2
  16. package/dist/chunk-MGFRGPWI.cjs.map +1 -0
  17. package/dist/{chunk-VYNFJVRZ.js → chunk-N6XBE47W.js} +3 -3
  18. package/dist/{chunk-VYNFJVRZ.js.map → chunk-N6XBE47W.js.map} +1 -1
  19. package/dist/{chunk-T5BBZQ66.js → chunk-OTIKWEFZ.js} +9 -4
  20. package/dist/chunk-OTIKWEFZ.js.map +1 -0
  21. package/dist/{chunk-ZSGEGISB.cjs → chunk-PHUTJKHL.cjs} +5 -2
  22. package/dist/chunk-PHUTJKHL.cjs.map +1 -0
  23. package/dist/{chunk-XOIIUO6O.js → chunk-QDNHN7R2.js} +3 -2
  24. package/dist/chunk-QDNHN7R2.js.map +1 -0
  25. package/dist/components/CountryCodeDropdown/index.cjs +4 -4
  26. package/dist/components/CountryCodeDropdown/index.js +1 -1
  27. package/dist/components/DateInput/index.cjs +2 -2
  28. package/dist/components/DateInput/index.js +1 -1
  29. package/dist/components/PhoneInput/index.cjs +3 -3
  30. package/dist/components/PhoneInput/index.js +1 -1
  31. package/dist/components/Table/index.cjs +9 -9
  32. package/dist/components/Table/index.d.cts +17 -1
  33. package/dist/components/Table/index.d.ts +17 -1
  34. package/dist/components/Table/index.js +1 -1
  35. package/dist/deck.cjs +1 -1
  36. package/dist/deck.cjs.map +1 -1
  37. package/dist/deck.js +1 -1
  38. package/dist/deck.js.map +1 -1
  39. package/dist/esheet.cjs +5 -5
  40. package/dist/esheet.js +2 -2
  41. package/dist/index.cjs +107 -106
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +17 -1
  44. package/dist/index.d.ts +17 -1
  45. package/dist/index.js +14 -13
  46. package/dist/index.js.map +1 -1
  47. package/dist/styles/init.css +39 -0
  48. package/dist/styles.css +1 -1
  49. package/dist/tailwind-preset.cjs +4 -4
  50. package/dist/tailwind-preset.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/chunk-7IBZA7G6.js.map +0 -1
  53. package/dist/chunk-AFDW64EF.cjs.map +0 -1
  54. package/dist/chunk-AG5EKCE4.js.map +0 -1
  55. package/dist/chunk-CFI3TQMA.cjs.map +0 -1
  56. package/dist/chunk-IJYTASQQ.cjs.map +0 -1
  57. package/dist/chunk-OHKO5THF.cjs.map +0 -1
  58. package/dist/chunk-T5BBZQ66.js.map +0 -1
  59. package/dist/chunk-TNUL4LGG.js.map +0 -1
  60. package/dist/chunk-XOIIUO6O.js.map +0 -1
  61. package/dist/chunk-ZSGEGISB.cjs.map +0 -1
@@ -101,7 +101,8 @@ var TableRow = React__namespace.forwardRef(
101
101
  );
102
102
  TableRow.displayName = "TableRow";
103
103
  var TableHead = React__namespace.forwardRef(
104
- ({ className, sortable, sortDirection, onSort, children, ...props }, ref) => {
104
+ ({ className, sortable, sortDirection, onSort, numeric, children, ...props }, ref) => {
105
+ const label = numeric ? /* @__PURE__ */ jsxRuntime.jsx("bdi", { children }) : children;
105
106
  const content = sortable ? /* @__PURE__ */ jsxRuntime.jsxs(
106
107
  "button",
107
108
  {
@@ -109,24 +110,28 @@ var TableHead = React__namespace.forwardRef(
109
110
  onClick: onSort,
110
111
  className: chunkS5RVSXDV_cjs.cn(
111
112
  "hover:text-foreground flex items-center gap-1 transition-colors",
112
- "focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none"
113
+ "focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none",
114
+ // Inside the dir="ltr" island, "end" is the physical right
115
+ numeric && "w-full justify-end"
113
116
  ),
114
117
  "aria-label": `Sort column ${sortDirection === "asc" ? "descending" : "ascending"}`,
115
118
  children: [
116
- children,
119
+ label,
117
120
  /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { direction: sortDirection })
118
121
  ]
119
122
  }
120
- ) : children;
123
+ ) : label;
121
124
  return /* @__PURE__ */ jsxRuntime.jsx(
122
125
  "th",
123
126
  {
124
127
  ref,
125
128
  "data-slot": "table-head",
129
+ dir: numeric ? "ltr" : void 0,
126
130
  "aria-sort": sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0,
127
131
  className: chunkS5RVSXDV_cjs.cn(
128
132
  "text-muted-foreground h-12 px-4 text-start align-middle font-medium",
129
133
  "[&:has([role=checkbox])]:pe-0",
134
+ numeric && "text-end",
130
135
  className
131
136
  ),
132
137
  ...props,
@@ -137,13 +142,16 @@ var TableHead = React__namespace.forwardRef(
137
142
  );
138
143
  TableHead.displayName = "TableHead";
139
144
  var TableCell = React__namespace.forwardRef(
140
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
145
+ ({ className, numeric, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
141
146
  "td",
142
147
  {
143
148
  ref,
144
149
  "data-slot": "table-cell",
150
+ dir: numeric ? "ltr" : void 0,
145
151
  className: chunkS5RVSXDV_cjs.cn(
146
152
  "p-4 align-middle [&:has([role=checkbox])]:pe-0",
153
+ // Inside the dir="ltr" island, text-end is the physical right
154
+ numeric && "text-end tabular-nums",
147
155
  className
148
156
  ),
149
157
  ...props
@@ -230,5 +238,5 @@ exports.TableFooter = TableFooter;
230
238
  exports.TableHead = TableHead;
231
239
  exports.TableHeader = TableHeader;
232
240
  exports.TableRow = TableRow;
233
- //# sourceMappingURL=chunk-IJYTASQQ.cjs.map
234
- //# sourceMappingURL=chunk-IJYTASQQ.cjs.map
241
+ //# sourceMappingURL=chunk-3AD4HFYI.cjs.map
242
+ //# sourceMappingURL=chunk-3AD4HFYI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Table/Table.tsx"],"names":["React","jsx","cn","jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,IAAM,KAAA,GAAcA,gBAAA,CAAA,UAAA;AAAA,EAClB,CAAC,EAAE,SAAA,EAAW,UAAA,GAAa,MAAM,QAAA,EAAU,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAC7D,IAAA,MAAM,KAAA,mBACJC,cAAA;AAAA,MAAC,OAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,WAAA,EAAU,OAAA;AAAA,QACV,SAAA,EAAWC,oBAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,QACvD,GAAG,KAAA;AAAA,QAEH;AAAA;AAAA,KACH;AAGF,IAAA,IAAI,UAAA,EAAY;AACd,MAAA,uBAAOD,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,+BAAA,EAAiC,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,IAC/D;AAEA,IAAA,OAAO,KAAA;AAAA,EACT;AAC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;AAAA,MAEV,QAAA,EAAA;AAAA,wBAAAF,cAAA,CAAC,MAAA,EAAA,EAAK,GAAE,eAAA,EAAgB,CAAA;AAAA,wBACxBA,cAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,cAAA,EAAe;AAAA;AAAA;AAAA,GACzB;AAEJ","file":"chunk-3AD4HFYI.cjs","sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\n// ============================================================================\n// Table Root\n// ============================================================================\n\nexport interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {\n /** Whether to make the table responsive with horizontal scroll */\n responsive?: boolean;\n}\n\n/**\n * An accessible table component.\n *\n * Prefer DataVis NITRO in most cases -- it is designed to be simple out of the box while\n * exposing power-user features for click-curious users. Use `Table` only in lightweight\n * situations where that overhead is genuinely unneeded.\n *\n * @example\n * ```tsx\n * <Table>\n * <TableHeader>\n * <TableRow>\n * <TableHead>Name</TableHead>\n * <TableHead>Email</TableHead>\n * </TableRow>\n * </TableHeader>\n * <TableBody>\n * <TableRow>\n * <TableCell>John Doe</TableCell>\n * <TableCell>john@example.com</TableCell>\n * </TableRow>\n * </TableBody>\n * </Table>\n * ```\n */\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, responsive = true, children, ...props }, ref) => {\n const table = (\n <table\n ref={ref}\n data-slot=\"table\"\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n >\n {children}\n </table>\n );\n\n if (responsive) {\n return <div className=\"relative w-full overflow-auto\">{table}</div>;\n }\n\n return table;\n }\n);\n\nTable.displayName = 'Table';\n\n// ============================================================================\n// Table Header\n// ============================================================================\n\nexport type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\n ({ className, ...props }, ref) => (\n <thead\n ref={ref}\n data-slot=\"table-header\"\n className={cn('[&_tr]:border-b', className)}\n {...props}\n />\n )\n);\n\nTableHeader.displayName = 'TableHeader';\n\n// ============================================================================\n// Table Body\n// ============================================================================\n\nexport type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n data-slot=\"table-body\"\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n )\n);\n\nTableBody.displayName = 'TableBody';\n\n// ============================================================================\n// Table Footer\n// ============================================================================\n\nexport type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n data-slot=\"table-footer\"\n className={cn(\n 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n )\n);\n\nTableFooter.displayName = 'TableFooter';\n\n// ============================================================================\n// Table Row\n// ============================================================================\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {\n /** Whether the row is selected */\n selected?: boolean;\n}\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ className, selected, ...props }, ref) => (\n <tr\n ref={ref}\n data-slot=\"table-row\"\n data-selected={selected}\n className={cn(\n 'border-border border-b transition-colors',\n 'hover:bg-muted/50',\n 'data-[selected=true]:bg-muted',\n className\n )}\n {...props}\n />\n )\n);\n\nTableRow.displayName = 'TableRow';\n\n// ============================================================================\n// Table Head\n// ============================================================================\n\nexport interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {\n /** Sortable column configuration */\n sortable?: boolean;\n /** Current sort direction */\n sortDirection?: 'asc' | 'desc' | null;\n /** Callback when sort is triggered */\n onSort?: () => void;\n /**\n * Marks the header of a numeric column. The cell becomes a `dir=\"ltr\"`\n * island aligned to the physical right, matching `TableCell numeric`,\n * so numeric columns line up the same way in LTR and RTL. The label is\n * wrapped in `<bdi>` so RTL-script header text keeps its natural\n * direction inside the island.\n */\n numeric?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n (\n { className, sortable, sortDirection, onSort, numeric, children, ...props },\n ref\n ) => {\n // The th's dir=\"ltr\" island exists purely for alignment; <bdi> restores\n // the label's natural bidi direction so RTL-script headers read correctly.\n const label = numeric ? <bdi>{children}</bdi> : children;\n const content = sortable ? (\n <button\n type=\"button\"\n onClick={onSort}\n className={cn(\n 'hover:text-foreground flex items-center gap-1 transition-colors',\n 'focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none',\n // Inside the dir=\"ltr\" island, \"end\" is the physical right\n numeric && 'w-full justify-end'\n )}\n aria-label={`Sort column ${sortDirection === 'asc' ? 'descending' : 'ascending'}`}\n >\n {label}\n <SortIcon direction={sortDirection} />\n </button>\n ) : (\n label\n );\n\n return (\n <th\n ref={ref}\n data-slot=\"table-head\"\n dir={numeric ? 'ltr' : undefined}\n aria-sort={\n sortable\n ? sortDirection === 'asc'\n ? 'ascending'\n : sortDirection === 'desc'\n ? 'descending'\n : 'none'\n : undefined\n }\n className={cn(\n 'text-muted-foreground h-12 px-4 text-start align-middle font-medium',\n '[&:has([role=checkbox])]:pe-0',\n numeric && 'text-end',\n className\n )}\n {...props}\n >\n {content}\n </th>\n );\n }\n);\n\nTableHead.displayName = 'TableHead';\n\n// ============================================================================\n// Table Cell\n// ============================================================================\n\nexport interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {\n /**\n * Marks a numeric cell as a `dir=\"ltr\"` island: digits, minus signs, and\n * separators render left-to-right even in RTL, and the value aligns to the\n * physical right in both directions (with `tabular-nums` for column\n * alignment). Pair with `numeric` on the column's `TableHead`.\n */\n numeric?: boolean;\n}\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n ({ className, numeric, ...props }, ref) => (\n <td\n ref={ref}\n data-slot=\"table-cell\"\n dir={numeric ? 'ltr' : undefined}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pe-0',\n // Inside the dir=\"ltr\" island, text-end is the physical right\n numeric && 'text-end tabular-nums',\n className\n )}\n {...props}\n />\n )\n);\n\nTableCell.displayName = 'TableCell';\n\n// ============================================================================\n// Table Caption\n// ============================================================================\n\nexport type TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n TableCaptionProps\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n data-slot=\"table-caption\"\n className={cn('text-muted-foreground mt-4 text-sm', className)}\n {...props}\n />\n));\n\nTableCaption.displayName = 'TableCaption';\n\n// ============================================================================\n// Sort Icon\n// ============================================================================\n\nfunction SortIcon({ direction }: { direction?: 'asc' | 'desc' | null }) {\n if (direction === 'asc') {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0\"\n >\n <path d=\"m5 12 7-7 7 7\" />\n </svg>\n );\n }\n\n if (direction === 'desc') {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0\"\n >\n <path d=\"m19 12-7 7-7-7\" />\n </svg>\n );\n }\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0 opacity-50\"\n >\n <path d=\"m7 15 5 5 5-5\" />\n <path d=\"m7 9 5-5 5 5\" />\n </svg>\n );\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n};\n"]}
@@ -236,7 +236,10 @@ function CountryDropdownBase({
236
236
  className: "text-muted-foreground min-w-0 truncate",
237
237
  children: placeholder
238
238
  }
239
- ) : showDialCode ? /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "country-dropdown-dialcode", children: selected.dialCode }) : /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "country-dropdown-name", className: "min-w-0 truncate", children: selected.name }),
239
+ ) : showDialCode ? (
240
+ // LTR island: keeps the '+' before the digits under RTL bidi
241
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "country-dropdown-dialcode", dir: "ltr", children: selected.dialCode })
242
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "country-dropdown-name", className: "min-w-0 truncate", children: selected.name }),
240
243
  /* @__PURE__ */ jsxRuntime.jsx(
241
244
  "svg",
242
245
  {
@@ -345,10 +348,12 @@ function CountryDropdownBase({
345
348
  children: country.name
346
349
  }
347
350
  ),
348
- showDialCode && /* @__PURE__ */ jsxRuntime.jsx(
351
+ showDialCode && // LTR island: keeps the '+' before the digits under RTL bidi
352
+ /* @__PURE__ */ jsxRuntime.jsx(
349
353
  "span",
350
354
  {
351
355
  "data-slot": "country-dropdown-option-dialcode",
356
+ dir: "ltr",
352
357
  className: "text-muted-foreground shrink-0 text-xs",
353
358
  children: country.dialCode
354
359
  }
@@ -378,5 +383,5 @@ exports.CountryCodeDropdown = CountryCodeDropdown;
378
383
  exports.CountryDropdownBase = CountryDropdownBase;
379
384
  exports.formatE164 = formatE164;
380
385
  exports.validatePhoneNumber = validatePhoneNumber;
381
- //# sourceMappingURL=chunk-CFI3TQMA.cjs.map
382
- //# sourceMappingURL=chunk-CFI3TQMA.cjs.map
386
+ //# sourceMappingURL=chunk-56C7K4MV.cjs.map
387
+ //# sourceMappingURL=chunk-56C7K4MV.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/CountryCodeDropdown/CountryCodeDropdown.tsx"],"names":["PhoneNumberUtil","libphonenumber","PhoneNumberFormat","React","useAnchoredPosition","useClickOutside","useEscapeKey","jsxs","cn","jsx","createPortal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,gBAAAA,GAC+DC,mCAC/D,eAAA,IAAkCA,yBAAA,CAAA,eAAA;AACxC,IAAMC,kBAAAA,GAC+DD,mCAC/D,iBAAA,IAAoCA,yBAAA,CAAA,iBAAA;AAmD1C,SAAS,WAAW,IAAA,EAAsB;AACxC,EAAA,OAAO,CAAC,GAAG,IAAA,CAAK,WAAA,EAAa,CAAA,CAC1B,GAAA,CAAI,CAAC,CAAA,KAAM,MAAA,CAAO,cAAc,MAAA,GAAU,EAAA,GAAK,EAAE,UAAA,CAAW,CAAC,CAAC,CAAC,CAAA,CAC/D,KAAK,EAAE,CAAA;AACZ;AAGA,SAAS,gBAAA,GAAkC;AACzC,EAAA,MAAM,SAAA,GAAYD,iBAAgB,WAAA,EAAY;AAC9C,EAAA,MAAM,OAAA,GAAU,UAAU,mBAAA,EAAoB;AAC9C,EAAA,MAAM,IAAA,GAAsB,OAAA,CAAQ,GAAA,CAAI,eAAe,CAAA;AACvD,EAAA,IAAA,CAAK,IAAA,CAAK,CAAC,CAAA,EAAG,CAAA,KAAM,EAAE,IAAA,CAAK,aAAA,CAAc,CAAA,CAAE,IAAI,CAAC,CAAA;AAChD,EAAA,OAAO,IAAA;AACT;AAGA,SAAS,gBAAgB,IAAA,EAA2B;AAClD,EAAA,OAAO;AAAA,IACL,IAAA;AAAA,IACA,IAAA,EAAM,kBAAkB,IAAI,CAAA;AAAA,IAC5B,UAAU,CAAA,CAAA,EAAIA,gBAAAA,CAAgB,aAAY,CAAE,uBAAA,CAAwB,IAAI,CAAC,CAAA,CAAA;AAAA,IACzE,IAAA,EAAM,WAAW,IAAI;AAA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,QAAA,EAAA,OAAA,CAAQ;AAAA;AAAA,2BACX;AAAA,0BACC,YAAA;AAAA,0CAECA,cAAA;AAAA,4BAAC,MAAA;AAAA,4BAAA;AAAA,8BACC,WAAA,EAAU,kCAAA;AAAA,8BACV,GAAA,EAAI,KAAA;AAAA,8BACJ,SAAA,EAAU,wCAAA;AAAA,8BAET,QAAA,EAAA,OAAA,CAAQ;AAAA;AAAA;AACX;AAAA,uBAAA;AAAA,sBArCG,OAAA,CAAQ;AAAA,qBAwChB;AAAA;AAAA;AAEL;AAAA;AAAA,WACF;AAAA,UACA,QAAA,CAAS;AAAA;AACX;AAAA;AAAA,GACJ;AAEJ;AAEA,mBAAA,CAAoB,WAAA,GAAc,qBAAA;AAuBlC,SAAS,oBAAoB,KAAA,EAAiC;AAC5D,EAAA,uBAAOA,cAAA,CAAC,mBAAA,EAAA,EAAqB,GAAG,KAAA,EAAO,CAAA;AACzC;AAEA,mBAAA,CAAoB,WAAA,GAAc,qBAAA","file":"chunk-56C7K4MV.cjs","sourcesContent":["import * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport * as libphonenumber from 'google-libphonenumber';\nimport { cn } from '../../utils/cn';\nimport { useClickOutside } from '../../hooks/useClickOutside';\nimport { useEscapeKey } from '../../hooks/useEscapeKey';\nimport { useAnchoredPosition } from '../../hooks/useAnchoredPosition';\n\nconst PhoneNumberUtil =\n (libphonenumber as unknown as { default?: typeof libphonenumber }).default\n ?.PhoneNumberUtil ?? libphonenumber.PhoneNumberUtil;\nconst PhoneNumberFormat =\n (libphonenumber as unknown as { default?: typeof libphonenumber }).default\n ?.PhoneNumberFormat ?? libphonenumber.PhoneNumberFormat;\n\n// =============================================================================\n// Types\n// =============================================================================\n\nexport interface CountryData {\n /** ISO 3166-1 alpha-2 country code (e.g. \"US\") */\n code: string;\n /** Country name (e.g. \"United States\") */\n name: string;\n /** Dial code (e.g. \"+1\") */\n dialCode: string;\n /** Emoji flag (e.g. \"🇺🇸\") */\n flag: string;\n}\n\nexport interface CountryCodeDropdownProps {\n /**\n * The currently selected country code (ISO alpha-2, e.g. \"US\").\n * Pass `\"\"` for a controlled component with no selection.\n */\n value?: string;\n /**\n * Initial selection when uncontrolled (`value` undefined).\n * `CountryCodeDropdown` defaults to \"US\"; `CountryDropdown` defaults to no selection.\n */\n defaultValue?: string;\n /** Trigger text shown when nothing is selected */\n placeholder?: string;\n /** Called when a country is selected */\n onChange?: (country: CountryData) => void;\n /** Whether the dropdown is disabled */\n disabled?: boolean;\n /** Additional class name for the trigger button */\n className?: string;\n /** Placement of the dropdown panel */\n placement?: 'bottom-start' | 'bottom-end';\n /** Placeholder text for the search field */\n searchPlaceholder?: string;\n /** id for the trigger button, enabling `<label htmlFor>` association */\n id?: string;\n /** Label for accessibility — visually hidden */\n 'aria-label'?: string;\n}\n\n// =============================================================================\n// Country Data (generated from libphonenumber)\n// =============================================================================\n\n/** Convert an ISO alpha-2 code to an emoji flag. */\nfunction isoToEmoji(code: string): string {\n return [...code.toUpperCase()]\n .map((c) => String.fromCodePoint(0x1f1e6 - 65 + c.charCodeAt(0)))\n .join('');\n}\n\n/** Build the full sorted list of countries from libphonenumber. */\nfunction buildCountryList(): CountryData[] {\n const phoneUtil = PhoneNumberUtil.getInstance();\n const regions = phoneUtil.getSupportedRegions() as string[];\n const list: CountryData[] = regions.map(countryFromCode);\n list.sort((a, b) => a.name.localeCompare(b.name));\n return list;\n}\n\n/** Build a single country's data without loading the full list. */\nfunction countryFromCode(code: string): CountryData {\n return {\n code,\n name: regionDisplayName(code),\n dialCode: `+${PhoneNumberUtil.getInstance().getCountryCodeForRegion(code)}`,\n flag: isoToEmoji(code),\n };\n}\n\n/** Whether libphonenumber knows this ISO alpha-2 region. */\nfunction isSupportedRegion(code: string): boolean {\n return (\n PhoneNumberUtil.getInstance().getSupportedRegions() as string[]\n ).includes(code);\n}\n\n/** Lazy singleton so we only build the list once. */\nlet _countries: CountryData[] | null = null;\nfunction getCountries(): CountryData[] {\n if (!_countries) _countries = buildCountryList();\n return _countries;\n}\n\n// =============================================================================\n// Region display name mapping\n// =============================================================================\n\n/** Lazy singleton for Intl.DisplayNames so we only construct it once. */\nlet _regionDisplayNames: Intl.DisplayNames | null = null;\n\nfunction getRegionDisplayNames(): Intl.DisplayNames | null {\n if (_regionDisplayNames === null) {\n try {\n const locales =\n typeof navigator !== 'undefined' && navigator.languages?.length\n ? [...navigator.languages]\n : ['en'];\n _regionDisplayNames = new Intl.DisplayNames(locales, { type: 'region' });\n } catch {\n return null;\n }\n }\n return _regionDisplayNames;\n}\n\n/**\n * Use the browser Intl API for display names where available,\n * falling back to the raw ISO code.\n */\nfunction regionDisplayName(code: string): string {\n const dn = getRegionDisplayNames();\n if (!dn) return code;\n return dn.of(code) ?? code;\n}\n\n// =============================================================================\n// Validation helper (exported for consumers)\n// =============================================================================\n\n/**\n * Validate a phone number string for a given country code using libphonenumber.\n *\n * @param phoneNumber - The phone number (digits, may include formatting)\n * @param countryCode - ISO alpha-2 code (e.g. \"US\")\n * @returns Whether the number is valid for the given region.\n */\nexport function validatePhoneNumber(\n phoneNumber: string,\n countryCode: string\n): boolean {\n try {\n const phoneUtil = PhoneNumberUtil.getInstance();\n const parsed = phoneUtil.parse(phoneNumber, countryCode);\n return phoneUtil.isValidNumberForRegion(parsed, countryCode);\n } catch {\n return false;\n }\n}\n\n/**\n * Format a phone number into E.164 international format.\n *\n * @param phoneNumber - The phone number (digits, may include formatting)\n * @param countryCode - ISO alpha-2 code (e.g. \"US\")\n * @returns The formatted number (e.g. \"+15551234567\") or the original string if parsing fails.\n */\nexport function formatE164(phoneNumber: string, countryCode: string): string {\n try {\n const phoneUtil = PhoneNumberUtil.getInstance();\n const parsed = phoneUtil.parse(phoneNumber, countryCode);\n return phoneUtil.format(parsed, PhoneNumberFormat.E164);\n } catch {\n return phoneNumber;\n }\n}\n\n// =============================================================================\n// Component\n// =============================================================================\n\n/** Internal base props — `showDialCode` is not part of the public API. */\ninterface CountryDropdownBaseProps extends CountryCodeDropdownProps {\n /** Show dial codes on the trigger and in the list (default: true) */\n showDialCode?: boolean;\n}\n\n/**\n * Shared implementation behind {@link CountryCodeDropdown} (dial-code mode)\n * and `CountryDropdown` (country-only mode). Not exported from the package.\n */\nfunction CountryDropdownBase({\n value,\n defaultValue = 'US',\n placeholder = 'Select country…',\n onChange,\n disabled = false,\n className,\n placement = 'bottom-start',\n searchPlaceholder = 'Search countries…',\n id,\n showDialCode = true,\n 'aria-label': ariaLabel = 'Select country code',\n}: CountryDropdownBaseProps) {\n const [isOpen, setIsOpen] = React.useState(false);\n const [search, setSearch] = React.useState('');\n const [internalValue, setInternalValue] = React.useState(defaultValue);\n const containerRef = React.useRef<HTMLDivElement>(null);\n const searchInputRef = React.useRef<HTMLInputElement>(null);\n const listRef = React.useRef<HTMLDivElement>(null);\n const menuId = React.useId();\n\n const isControlled = value !== undefined;\n const activeValue = isControlled ? value : internalValue;\n\n // Defer building the full country list until the dropdown is first opened\n const [countriesLoaded, setCountriesLoaded] = React.useState(false);\n const countries = React.useMemo(\n () => (countriesLoaded ? getCountries() : []),\n [countriesLoaded]\n );\n\n React.useEffect(() => {\n if (isOpen && !countriesLoaded) setCountriesLoaded(true);\n }, [isOpen, countriesLoaded]);\n\n const selected = React.useMemo<CountryData | null>(() => {\n if (!activeValue) return null;\n if (countries.length) {\n return countries.find((c) => c.code === activeValue) ?? null;\n }\n // Lightweight fallback while list hasn't loaded yet\n return isSupportedRegion(activeValue) ? countryFromCode(activeValue) : null;\n }, [activeValue, countries]);\n\n const filtered = React.useMemo(() => {\n if (!search) return countries;\n const q = search.toLowerCase();\n return countries.filter(\n (c) =>\n c.name.toLowerCase().includes(q) ||\n (showDialCode && c.dialCode.includes(q)) ||\n c.code.toLowerCase().includes(q)\n );\n }, [search, countries, showDialCode]);\n\n // Close helpers\n const close = React.useCallback(() => {\n setIsOpen(false);\n setSearch('');\n }, []);\n\n // Portal + fixed positioning so the panel escapes overflow-hidden ancestors.\n const { anchorRef, floatingRef, style } = useAnchoredPosition<\n HTMLDivElement,\n HTMLDivElement\n >({ open: isOpen, placement });\n\n const outsideRefs = React.useMemo(\n () => [containerRef, floatingRef],\n [containerRef, floatingRef]\n );\n useClickOutside(outsideRefs, close, isOpen);\n useEscapeKey(close, isOpen);\n\n // Focus search input when opening\n React.useEffect(() => {\n if (isOpen) {\n // Defer to let the DOM render\n requestAnimationFrame(() => searchInputRef.current?.focus());\n }\n }, [isOpen]);\n\n const handleToggle = React.useCallback(() => {\n if (!disabled) setIsOpen((prev) => !prev);\n }, [disabled]);\n\n const handleSelect = React.useCallback(\n (country: CountryData) => {\n if (!isControlled) {\n setInternalValue(country.code);\n }\n onChange?.(country);\n close();\n },\n [isControlled, onChange, close]\n );\n\n // Keyboard navigation inside the list\n const handleKeyDown = React.useCallback(\n (e: React.KeyboardEvent) => {\n if (!isOpen) return;\n if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {\n e.preventDefault();\n const items =\n listRef.current?.querySelectorAll<HTMLButtonElement>(\n '[role=\"option\"]'\n );\n if (!items?.length) return;\n\n const current = document.activeElement as HTMLElement;\n const idx = Array.from(items).indexOf(current as HTMLButtonElement);\n let next: number;\n if (e.key === 'ArrowDown') {\n next = idx < items.length - 1 ? idx + 1 : 0;\n } else {\n next = idx > 0 ? idx - 1 : items.length - 1;\n }\n items[next].focus();\n }\n },\n [isOpen]\n );\n\n return (\n <div\n ref={(node) => {\n containerRef.current = node;\n anchorRef.current = node;\n }}\n data-slot=\"country-dropdown\"\n className=\"relative inline-flex\"\n >\n {/* Trigger button */}\n <button\n type=\"button\"\n id={id}\n data-slot=\"country-dropdown-trigger\"\n onClick={handleToggle}\n disabled={disabled}\n aria-label={ariaLabel}\n aria-haspopup=\"listbox\"\n aria-expanded={isOpen}\n aria-controls={isOpen ? menuId : undefined}\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-lg border px-3 py-2 text-sm',\n 'border-input bg-background text-foreground',\n 'transition-colors duration-200',\n 'hover:bg-neutral-50 dark:hover:bg-neutral-700',\n 'focus:ring-ring focus:ring-2 focus:outline-none',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n >\n <span\n data-slot=\"country-dropdown-flag\"\n className=\"text-base leading-none\"\n aria-hidden=\"true\"\n >\n {selected?.flag ?? '🌐'}\n </span>\n {!selected ? (\n <span\n data-slot=\"country-dropdown-placeholder\"\n className=\"text-muted-foreground min-w-0 truncate\"\n >\n {placeholder}\n </span>\n ) : showDialCode ? (\n // LTR island: keeps the '+' before the digits under RTL bidi\n <span data-slot=\"country-dropdown-dialcode\" dir=\"ltr\">\n {selected.dialCode}\n </span>\n ) : (\n <span data-slot=\"country-dropdown-name\" className=\"min-w-0 truncate\">\n {selected.name}\n </span>\n )}\n <svg\n data-slot=\"country-dropdown-chevron\"\n className={cn(\n 'h-4 w-4 shrink-0 text-neutral-500 transition-transform duration-200',\n isOpen && 'rotate-180'\n )}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 20 20\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path\n fillRule=\"evenodd\"\n d=\"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n </button>\n\n {/* Dropdown panel */}\n {isOpen &&\n createPortal(\n <div\n ref={floatingRef}\n style={style}\n id={menuId}\n role=\"listbox\"\n data-slot=\"country-dropdown-panel\"\n aria-label={ariaLabel}\n tabIndex={-1}\n onKeyDown={handleKeyDown}\n className={cn(\n 'flex w-72 flex-col overflow-hidden',\n 'rounded-xl border border-neutral-200 bg-white shadow-lg',\n 'dark:border-neutral-700 dark:bg-neutral-800',\n 'animate-in fade-in zoom-in-95 duration-100'\n )}\n >\n {/* Search input */}\n <div\n data-slot=\"country-dropdown-search\"\n className=\"shrink-0 border-b border-neutral-200 p-2 dark:border-neutral-700\"\n >\n <input\n ref={searchInputRef}\n type=\"text\"\n data-slot=\"country-dropdown-search-input\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n placeholder={searchPlaceholder}\n aria-label=\"Search countries\"\n className={cn(\n 'w-full rounded-lg border border-neutral-200 px-3 py-1.5 text-sm',\n 'text-foreground placeholder:text-muted-foreground bg-white',\n 'focus:ring-ring focus:border-transparent focus:ring-2 focus:outline-none',\n 'dark:border-neutral-600 dark:bg-neutral-700 dark:text-neutral-100'\n )}\n />\n </div>\n\n {/* Country list */}\n <div\n ref={listRef}\n data-slot=\"country-dropdown-list\"\n className=\"max-h-60 min-h-0 overflow-y-auto p-1\"\n >\n {filtered.length === 0 ? (\n <div className=\"text-muted-foreground px-3 py-4 text-center text-sm\">\n No countries found\n </div>\n ) : (\n filtered.map((country) => (\n <button\n key={country.code}\n type=\"button\"\n role=\"option\"\n data-slot=\"country-dropdown-option\"\n aria-selected={country.code === selected?.code}\n onClick={() => handleSelect(country)}\n className={cn(\n 'flex w-full items-center gap-3 rounded-lg px-3 py-2 text-start text-sm',\n 'transition-colors duration-150',\n 'focus:outline-none',\n country.code === selected?.code\n ? 'bg-neutral-100 font-medium text-neutral-900 dark:bg-neutral-700 dark:text-white'\n : 'text-neutral-700 hover:bg-neutral-50 dark:text-neutral-300 dark:hover:bg-neutral-700/50',\n 'focus:bg-neutral-100 dark:focus:bg-neutral-700'\n )}\n >\n <span\n data-slot=\"country-dropdown-option-flag\"\n className=\"text-base leading-none\"\n aria-hidden=\"true\"\n >\n {country.flag}\n </span>\n <span\n data-slot=\"country-dropdown-option-name\"\n className=\"flex-1 truncate\"\n >\n {country.name}\n </span>\n {showDialCode && (\n // LTR island: keeps the '+' before the digits under RTL bidi\n <span\n data-slot=\"country-dropdown-option-dialcode\"\n dir=\"ltr\"\n className=\"text-muted-foreground shrink-0 text-xs\"\n >\n {country.dialCode}\n </span>\n )}\n </button>\n ))\n )}\n </div>\n </div>,\n document.body\n )}\n </div>\n );\n}\n\nCountryDropdownBase.displayName = 'CountryDropdownBase';\n\n/**\n * A country-code selector dropdown designed to sit beside a phone number input.\n *\n * Defaults to United States (+1) with the 🇺🇸 flag. Clicking the trigger opens\n * a searchable list of all supported countries with their dial codes and flags.\n *\n * Uses Google's libphonenumber for the canonical country/code list and provides\n * a `validatePhoneNumber` helper for phone validation.\n *\n * For a country selector without dial codes, use `CountryDropdown`.\n *\n * @example\n * ```tsx\n * const [country, setCountry] = useState<CountryData>();\n *\n * <div className=\"flex gap-2\">\n * <CountryCodeDropdown value={country?.code} onChange={setCountry} />\n * <Input placeholder=\"Phone number\" />\n * </div>\n * ```\n */\nfunction CountryCodeDropdown(props: CountryCodeDropdownProps) {\n return <CountryDropdownBase {...props} />;\n}\n\nCountryCodeDropdown.displayName = 'CountryCodeDropdown';\n\nexport { CountryCodeDropdown, CountryDropdownBase };\n"]}
@@ -79,7 +79,8 @@ var TableRow = React.forwardRef(
79
79
  );
80
80
  TableRow.displayName = "TableRow";
81
81
  var TableHead = React.forwardRef(
82
- ({ className, sortable, sortDirection, onSort, children, ...props }, ref) => {
82
+ ({ className, sortable, sortDirection, onSort, numeric, children, ...props }, ref) => {
83
+ const label = numeric ? /* @__PURE__ */ jsx("bdi", { children }) : children;
83
84
  const content = sortable ? /* @__PURE__ */ jsxs(
84
85
  "button",
85
86
  {
@@ -87,24 +88,28 @@ var TableHead = React.forwardRef(
87
88
  onClick: onSort,
88
89
  className: cn(
89
90
  "hover:text-foreground flex items-center gap-1 transition-colors",
90
- "focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none"
91
+ "focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none",
92
+ // Inside the dir="ltr" island, "end" is the physical right
93
+ numeric && "w-full justify-end"
91
94
  ),
92
95
  "aria-label": `Sort column ${sortDirection === "asc" ? "descending" : "ascending"}`,
93
96
  children: [
94
- children,
97
+ label,
95
98
  /* @__PURE__ */ jsx(SortIcon, { direction: sortDirection })
96
99
  ]
97
100
  }
98
- ) : children;
101
+ ) : label;
99
102
  return /* @__PURE__ */ jsx(
100
103
  "th",
101
104
  {
102
105
  ref,
103
106
  "data-slot": "table-head",
107
+ dir: numeric ? "ltr" : void 0,
104
108
  "aria-sort": sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0,
105
109
  className: cn(
106
110
  "text-muted-foreground h-12 px-4 text-start align-middle font-medium",
107
111
  "[&:has([role=checkbox])]:pe-0",
112
+ numeric && "text-end",
108
113
  className
109
114
  ),
110
115
  ...props,
@@ -115,13 +120,16 @@ var TableHead = React.forwardRef(
115
120
  );
116
121
  TableHead.displayName = "TableHead";
117
122
  var TableCell = React.forwardRef(
118
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
123
+ ({ className, numeric, ...props }, ref) => /* @__PURE__ */ jsx(
119
124
  "td",
120
125
  {
121
126
  ref,
122
127
  "data-slot": "table-cell",
128
+ dir: numeric ? "ltr" : void 0,
123
129
  className: cn(
124
130
  "p-4 align-middle [&:has([role=checkbox])]:pe-0",
131
+ // Inside the dir="ltr" island, text-end is the physical right
132
+ numeric && "text-end tabular-nums",
125
133
  className
126
134
  ),
127
135
  ...props
@@ -201,5 +209,5 @@ function SortIcon({ direction }) {
201
209
  }
202
210
 
203
211
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
204
- //# sourceMappingURL=chunk-TNUL4LGG.js.map
205
- //# sourceMappingURL=chunk-TNUL4LGG.js.map
212
+ //# sourceMappingURL=chunk-5ILCNY74.js.map
213
+ //# sourceMappingURL=chunk-5ILCNY74.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Table/Table.tsx"],"names":[],"mappings":";;;;AAqCA,IAAM,KAAA,GAAc,KAAA,CAAA,UAAA;AAAA,EAClB,CAAC,EAAE,SAAA,EAAW,UAAA,GAAa,MAAM,QAAA,EAAU,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAC7D,IAAA,MA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IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,4BAAA;AAAA,MACN,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,MAAA,EAAO,cAAA;AAAA,MACP,WAAA,EAAY,GAAA;AAAA,MACZ,aAAA,EAAc,OAAA;AAAA,MACd,cAAA,EAAe,OAAA;AAAA,MACf,aAAA,EAAY,MAAA;AAAA,MACZ,SAAA,EAAU,qBAAA;AAAA,MAEV,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,GAAE,eAAA,EAAgB,CAAA;AAAA,wBACxB,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,cAAA,EAAe;AAAA;AAAA;AAAA,GACzB;AAEJ","file":"chunk-5ILCNY74.js","sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\n\n// ============================================================================\n// Table Root\n// ============================================================================\n\nexport interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {\n /** Whether to make the table responsive with horizontal scroll */\n responsive?: boolean;\n}\n\n/**\n * An accessible table component.\n *\n * Prefer DataVis NITRO in most cases -- it is designed to be simple out of the box while\n * exposing power-user features for click-curious users. Use `Table` only in lightweight\n * situations where that overhead is genuinely unneeded.\n *\n * @example\n * ```tsx\n * <Table>\n * <TableHeader>\n * <TableRow>\n * <TableHead>Name</TableHead>\n * <TableHead>Email</TableHead>\n * </TableRow>\n * </TableHeader>\n * <TableBody>\n * <TableRow>\n * <TableCell>John Doe</TableCell>\n * <TableCell>john@example.com</TableCell>\n * </TableRow>\n * </TableBody>\n * </Table>\n * ```\n */\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, responsive = true, children, ...props }, ref) => {\n const table = (\n <table\n ref={ref}\n data-slot=\"table\"\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n >\n {children}\n </table>\n );\n\n if (responsive) {\n return <div className=\"relative w-full overflow-auto\">{table}</div>;\n }\n\n return table;\n }\n);\n\nTable.displayName = 'Table';\n\n// ============================================================================\n// Table Header\n// ============================================================================\n\nexport type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\n ({ className, ...props }, ref) => (\n <thead\n ref={ref}\n data-slot=\"table-header\"\n className={cn('[&_tr]:border-b', className)}\n {...props}\n />\n )\n);\n\nTableHeader.displayName = 'TableHeader';\n\n// ============================================================================\n// Table Body\n// ============================================================================\n\nexport type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n data-slot=\"table-body\"\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n )\n);\n\nTableBody.displayName = 'TableBody';\n\n// ============================================================================\n// Table Footer\n// ============================================================================\n\nexport type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n data-slot=\"table-footer\"\n className={cn(\n 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n )\n);\n\nTableFooter.displayName = 'TableFooter';\n\n// ============================================================================\n// Table Row\n// ============================================================================\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {\n /** Whether the row is selected */\n selected?: boolean;\n}\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ className, selected, ...props }, ref) => (\n <tr\n ref={ref}\n data-slot=\"table-row\"\n data-selected={selected}\n className={cn(\n 'border-border border-b transition-colors',\n 'hover:bg-muted/50',\n 'data-[selected=true]:bg-muted',\n className\n )}\n {...props}\n />\n )\n);\n\nTableRow.displayName = 'TableRow';\n\n// ============================================================================\n// Table Head\n// ============================================================================\n\nexport interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {\n /** Sortable column configuration */\n sortable?: boolean;\n /** Current sort direction */\n sortDirection?: 'asc' | 'desc' | null;\n /** Callback when sort is triggered */\n onSort?: () => void;\n /**\n * Marks the header of a numeric column. The cell becomes a `dir=\"ltr\"`\n * island aligned to the physical right, matching `TableCell numeric`,\n * so numeric columns line up the same way in LTR and RTL. The label is\n * wrapped in `<bdi>` so RTL-script header text keeps its natural\n * direction inside the island.\n */\n numeric?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n (\n { className, sortable, sortDirection, onSort, numeric, children, ...props },\n ref\n ) => {\n // The th's dir=\"ltr\" island exists purely for alignment; <bdi> restores\n // the label's natural bidi direction so RTL-script headers read correctly.\n const label = numeric ? <bdi>{children}</bdi> : children;\n const content = sortable ? (\n <button\n type=\"button\"\n onClick={onSort}\n className={cn(\n 'hover:text-foreground flex items-center gap-1 transition-colors',\n 'focus-visible:ring-ring rounded focus-visible:ring-2 focus-visible:outline-none',\n // Inside the dir=\"ltr\" island, \"end\" is the physical right\n numeric && 'w-full justify-end'\n )}\n aria-label={`Sort column ${sortDirection === 'asc' ? 'descending' : 'ascending'}`}\n >\n {label}\n <SortIcon direction={sortDirection} />\n </button>\n ) : (\n label\n );\n\n return (\n <th\n ref={ref}\n data-slot=\"table-head\"\n dir={numeric ? 'ltr' : undefined}\n aria-sort={\n sortable\n ? sortDirection === 'asc'\n ? 'ascending'\n : sortDirection === 'desc'\n ? 'descending'\n : 'none'\n : undefined\n }\n className={cn(\n 'text-muted-foreground h-12 px-4 text-start align-middle font-medium',\n '[&:has([role=checkbox])]:pe-0',\n numeric && 'text-end',\n className\n )}\n {...props}\n >\n {content}\n </th>\n );\n }\n);\n\nTableHead.displayName = 'TableHead';\n\n// ============================================================================\n// Table Cell\n// ============================================================================\n\nexport interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {\n /**\n * Marks a numeric cell as a `dir=\"ltr\"` island: digits, minus signs, and\n * separators render left-to-right even in RTL, and the value aligns to the\n * physical right in both directions (with `tabular-nums` for column\n * alignment). Pair with `numeric` on the column's `TableHead`.\n */\n numeric?: boolean;\n}\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n ({ className, numeric, ...props }, ref) => (\n <td\n ref={ref}\n data-slot=\"table-cell\"\n dir={numeric ? 'ltr' : undefined}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pe-0',\n // Inside the dir=\"ltr\" island, text-end is the physical right\n numeric && 'text-end tabular-nums',\n className\n )}\n {...props}\n />\n )\n);\n\nTableCell.displayName = 'TableCell';\n\n// ============================================================================\n// Table Caption\n// ============================================================================\n\nexport type TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n TableCaptionProps\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n data-slot=\"table-caption\"\n className={cn('text-muted-foreground mt-4 text-sm', className)}\n {...props}\n />\n));\n\nTableCaption.displayName = 'TableCaption';\n\n// ============================================================================\n// Sort Icon\n// ============================================================================\n\nfunction SortIcon({ direction }: { direction?: 'asc' | 'desc' | null }) {\n if (direction === 'asc') {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0\"\n >\n <path d=\"m5 12 7-7 7 7\" />\n </svg>\n );\n }\n\n if (direction === 'desc') {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0\"\n >\n <path d=\"m19 12-7 7-7-7\" />\n </svg>\n );\n }\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"shrink-0 opacity-50\"\n >\n <path d=\"m7 15 5 5 5-5\" />\n <path d=\"m7 9 5-5 5 5\" />\n </svg>\n );\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n};\n"]}
@@ -597,6 +597,13 @@ var miewebUISafelist = [
597
597
  // RTL Phase 2: Toast slide-in animation + RTL mirror
598
598
  "animate-slide-in-right",
599
599
  "rtl:animate-slide-in-left",
600
+ // RTL Phase 2 transforms batch: LoadingPage bar/shimmer + RTL mirrors,
601
+ // BookingDialog consent-switch thumb mirror
602
+ "animate-loading-bar",
603
+ "rtl:animate-loading-bar-rtl",
604
+ "animate-shimmer",
605
+ "rtl:animate-shimmer-rtl",
606
+ "rtl:-translate-x-5",
600
607
  // Motion CSS fallbacks — applied by `<Animated>` only when no motion runtime
601
608
  // is active, so the scanner never sees them on a literal element.
602
609
  "animate-fade-in",
@@ -1114,6 +1121,7 @@ var miewebUISafelist = [
1114
1121
  "justify-center",
1115
1122
  "justify-between",
1116
1123
  "justify-start",
1124
+ "justify-end",
1117
1125
  "rtl:rotate-180",
1118
1126
  "gap-1",
1119
1127
  "gap-2",
@@ -1671,6 +1679,22 @@ var miewebUIPreset = {
1671
1679
  "0%": { transform: "translateX(-100%)", opacity: "0" },
1672
1680
  "100%": { transform: "translateX(0)", opacity: "1" }
1673
1681
  },
1682
+ "loading-bar": {
1683
+ "0%": { transform: "translateX(-100%)" },
1684
+ "100%": { transform: "translateX(300%)" }
1685
+ },
1686
+ "loading-bar-rtl": {
1687
+ "0%": { transform: "translateX(100%)" },
1688
+ "100%": { transform: "translateX(-300%)" }
1689
+ },
1690
+ shimmer: {
1691
+ "0%": { backgroundPosition: "200% 0" },
1692
+ "100%": { backgroundPosition: "-200% 0" }
1693
+ },
1694
+ "shimmer-rtl": {
1695
+ "0%": { backgroundPosition: "-200% 0" },
1696
+ "100%": { backgroundPosition: "200% 0" }
1697
+ },
1674
1698
  "scale-in": {
1675
1699
  "0%": { transform: "scale(0.95)", opacity: "0" },
1676
1700
  "100%": { transform: "scale(1)", opacity: "1" }
@@ -1694,6 +1718,10 @@ var miewebUIPreset = {
1694
1718
  "slide-in-from-bottom": "slide-in-from-bottom 150ms ease-out",
1695
1719
  "slide-in-right": "slide-in-right 300ms ease-out",
1696
1720
  "slide-in-left": "slide-in-left 300ms ease-out",
1721
+ "loading-bar": "loading-bar 1.5s ease infinite",
1722
+ "loading-bar-rtl": "loading-bar-rtl 1.5s ease infinite",
1723
+ shimmer: "shimmer 2s linear infinite",
1724
+ "shimmer-rtl": "shimmer-rtl 2s linear infinite",
1697
1725
  "scale-in": "scale-in 150ms ease-out",
1698
1726
  "ozwell-message-flare": "ozwell-message-flare 1.8s ease-out"
1699
1727
  },
@@ -1710,5 +1738,5 @@ var tailwind_preset_default = miewebUIPreset;
1710
1738
  exports.miewebUIPreset = miewebUIPreset;
1711
1739
  exports.miewebUISafelist = miewebUISafelist;
1712
1740
  exports.tailwind_preset_default = tailwind_preset_default;
1713
- //# sourceMappingURL=chunk-AFDW64EF.cjs.map
1714
- //# sourceMappingURL=chunk-AFDW64EF.cjs.map
1741
+ //# sourceMappingURL=chunk-5K7PRPSV.cjs.map
1742
+ //# sourceMappingURL=chunk-5K7PRPSV.cjs.map