@misebako/ui 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -15,4 +15,5 @@ export { CheckoutAmounts, QuoteSummaryCard, type CheckoutAmountsProps, type Chec
15
15
  export { CheckoutSteps, type CheckoutStepsProps, } from './checkout/checkout-steps.js';
16
16
  export { orderStateTone, StatusBadge, statusToneColor, type StatusBadgeProps, type StatusTone, } from './primitives/status-badge.js';
17
17
  export { DeliveryCodeList, type DeliveryCodeListProps } from './orders/delivery-codes.js';
18
+ export { CheckoutLink, PendingCheckoutTable, type PendingCheckoutRow } from './orders/pending-checkout-table.js';
18
19
  export { isAwaitingInput, NeedsInputForm, OrderActionConfirm, orderStateColor, type NeedsInputFormProps, type OrderActionConfirmProps, } from './orders/order-status.js';
package/dist/index.js CHANGED
@@ -15,5 +15,6 @@ export { CheckoutAmounts, QuoteSummaryCard, } from './checkout/checkout-amounts.
15
15
  export { CheckoutSteps, } from './checkout/checkout-steps.js';
16
16
  export { orderStateTone, StatusBadge, statusToneColor, } from './primitives/status-badge.js';
17
17
  export { DeliveryCodeList } from './orders/delivery-codes.js';
18
+ export { CheckoutLink, PendingCheckoutTable } from './orders/pending-checkout-table.js';
18
19
  export { isAwaitingInput, NeedsInputForm, OrderActionConfirm, orderStateColor, } from './orders/order-status.js';
19
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACjG,OAAO,EAAE,gBAAgB,EAAgD,MAAM,sBAAsB,CAAA;AACrG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAyB,MAAM,2BAA2B,CAAA;AAC1F,OAAO,EAAE,YAAY,EAA0B,M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AAO,EACL,gBAAgB,GAGjB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,GAKZ,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,cAAc,EAA4B,MAAM,iCAAiC,CAAA;AAC1F,OAAO,EAAE,kBAAkB,EAAgC,MAAM,qCAAqC,CAAA;AACtG,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAgC,MAAM,qCAAqC,CAAA;AAC/H,OAAO,EACL,UAAU,EACV,UAAU,GAIX,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,cAAc,EAA8E,MAAM,iCAAiC,CAAA;AAC1J,OAAO,EAAE,QAAQ,EAAwE,MAAM,2BAA2B,CAAA;AAC1H,OAAO,EAAE,eAAe,EAA6B,MAAM,4BAA4B,CAAA;AACvF,OAAO,EACL,eAAe,EACf,gBAAgB,GAIjB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,aAAa,GAEd,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,GAGhB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAA8B,MAAM,4BAA4B,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAA2B,MAAM,oCAAoC,CAAA;AAChH,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,eAAe,GAGhB,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare function CheckoutLink({ href, children }: {
3
+ href: string;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ export interface PendingCheckoutRow {
7
+ id: string;
8
+ title: string;
9
+ description: string;
10
+ amount: string;
11
+ status: string;
12
+ color: string;
13
+ actions: ReactNode;
14
+ }
15
+ export declare function PendingCheckoutTable({ rows, labels }: {
16
+ rows: PendingCheckoutRow[];
17
+ labels: {
18
+ heading: string;
19
+ product: string;
20
+ amount: string;
21
+ status: string;
22
+ actions: string;
23
+ };
24
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Badge, Button, Group, Paper, Table, Text } from '@mantine/core';
4
+ import { ExternalLink } from 'lucide-react';
5
+ export function CheckoutLink({ href, children }) {
6
+ return _jsx(Button, { component: "a", href: href, target: "_blank", rel: "noopener noreferrer", size: "xs", variant: "light", rightSection: _jsx(ExternalLink, { size: 13, "aria-hidden": true }), children: children });
7
+ }
8
+ export function PendingCheckoutTable({ rows, labels }) {
9
+ return (_jsx(Paper, { withBorder: true, children: _jsx(Table.ScrollContainer, { minWidth: 260, children: _jsxs(Table, { "aria-label": labels.heading, horizontalSpacing: "sm", verticalSpacing: "sm", children: [_jsx(Table.Thead, { children: _jsxs(Table.Tr, { children: [_jsx(Table.Th, { children: labels.product }), _jsx(Table.Th, { visibleFrom: "sm", children: labels.amount }), _jsx(Table.Th, { visibleFrom: "sm", children: labels.status }), _jsx(Table.Th, { ta: "end", children: labels.actions })] }) }), _jsx(Table.Tbody, { children: rows.map(row => (_jsxs(Table.Tr, { children: [_jsxs(Table.Td, { style: { overflowWrap: 'anywhere' }, children: [_jsx(Text, { fw: 600, size: "sm", children: row.title }), _jsx(Text, { size: "xs", c: "dimmed", children: row.description }), _jsxs(Group, { gap: 6, mt: 2, hiddenFrom: "sm", children: [_jsx(Text, { size: "sm", children: row.amount }), _jsx(Badge, { size: "xs", variant: "light", color: row.color, children: row.status })] })] }), _jsx(Table.Td, { visibleFrom: "sm", style: { fontVariantNumeric: 'tabular-nums' }, children: row.amount }), _jsx(Table.Td, { visibleFrom: "sm", children: _jsx(Badge, { variant: "light", color: row.color, children: row.status }) }), _jsx(Table.Td, { ta: "end", children: _jsx(Group, { justify: "flex-end", gap: "xs", children: row.actions }) })] }, row.id))) })] }) }) }));
10
+ }
11
+ //# sourceMappingURL=pending-checkout-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-checkout-table.js","sourceRoot":"","sources":["../../src/orders/pending-checkout-table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAyC;IACpF,OAAO,KAAC,MAAM,IAAC,SAAS,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAC1G,YAAY,EAAE,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,wBAAgB,YAAG,QAAQ,GAAU,CAAA;AAC7E,CAAC;AAYD,MAAM,UAAU,oBAAoB,CAAC,EAAE,IAAI,EAAE,MAAM,EAGlD;IACC,OAAO,CACL,KAAC,KAAK,IAAC,UAAU,kBACf,KAAC,KAAK,CAAC,eAAe,IAAC,QAAQ,EAAE,GAAG,YAClC,MAAC,KAAK,kBAAa,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAC,IAAI,EAAC,eAAe,EAAC,IAAI,aAC5E,KAAC,KAAK,CAAC,KAAK,cACV,MAAC,KAAK,CAAC,EAAE,eACP,KAAC,KAAK,CAAC,EAAE,cAAE,MAAM,CAAC,OAAO,GAAY,EACrC,KAAC,KAAK,CAAC,EAAE,IAAC,WAAW,EAAC,IAAI,YAAE,MAAM,CAAC,MAAM,GAAY,EACrD,KAAC,KAAK,CAAC,EAAE,IAAC,WAAW,EAAC,IAAI,YAAE,MAAM,CAAC,MAAM,GAAY,EACrD,KAAC,KAAK,CAAC,EAAE,IAAC,EAAE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AYV,CACZ,CAAC,GACU,IACR,GACc,GAClB,CACT,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misebako/ui",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Shared React 19 + Mantine 9 commerce UI components and theme for Misebako and Noren reseller stores.",
5
5
  "license": "Apache-2.0",
6
6
  "packageManager": "pnpm@12.18.0",
@@ -91,6 +91,10 @@
91
91
  "types": "./dist/orders/order-status.d.ts",
92
92
  "import": "./dist/orders/order-status.js"
93
93
  },
94
+ "./pending-checkout-table": {
95
+ "types": "./dist/orders/pending-checkout-table.d.ts",
96
+ "import": "./dist/orders/pending-checkout-table.js"
97
+ },
94
98
  "./status-badge": {
95
99
  "types": "./dist/primitives/status-badge.d.ts",
96
100
  "import": "./dist/primitives/status-badge.js"