@handijitcom/ui 3.2.1 → 3.3.0
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/README.md +65 -1
- package/build/components/AppShell/style.css +1 -1
- package/build/components/BottomSheet/style.css +1 -1
- package/build/components/DataTable/index.cjs +1 -1
- package/build/components/DataTable/index.cjs.map +1 -1
- package/build/components/DataTable/index.js +67 -66
- package/build/components/DataTable/index.js.map +1 -1
- package/build/components/DataTable/style.css +1 -1
- package/build/components/Drawer/style.css +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/Popover/style.css +1 -1
- package/build/components/Table/style.css +1 -1
- package/build/components/Toast/style.css +1 -1
- package/build/components/TotalsList/index.cjs +2 -0
- package/build/components/TotalsList/index.cjs.map +1 -0
- package/build/components/TotalsList/index.d.cts +26 -0
- package/build/components/TotalsList/index.d.ts +26 -0
- package/build/components/TotalsList/index.js +22 -0
- package/build/components/TotalsList/index.js.map +1 -0
- package/build/components/TotalsList/style.css +1 -0
- package/build/constants/breakpoint.constants.cjs +1 -1
- package/build/constants/breakpoint.constants.cjs.map +1 -1
- package/build/constants/breakpoint.constants.d.cts +2 -0
- package/build/constants/breakpoint.constants.d.ts +2 -0
- package/build/constants/breakpoint.constants.js +5 -4
- package/build/constants/breakpoint.constants.js.map +1 -1
- package/build/hooks/usePrinting.cjs +2 -0
- package/build/hooks/usePrinting.cjs.map +1 -0
- package/build/hooks/usePrinting.d.cts +8 -0
- package/build/hooks/usePrinting.d.ts +8 -0
- package/build/hooks/usePrinting.js +18 -0
- package/build/hooks/usePrinting.js.map +1 -0
- package/build/index.cjs +1 -1
- package/build/index.d.cts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +88 -86
- package/build/index.js.map +1 -1
- package/build/styles.css +11 -9
- package/package.json +11 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { memo as i } from "react";
|
|
3
|
+
import { cx as a } from "../../helpers/class-name.helper.js";
|
|
4
|
+
import { named as c } from "../../helpers/component.helper.js";
|
|
5
|
+
const t = {"totals":"ui-totals-nfbmW","totals__row":"ui-totals__row-C1ufl","totals__row--total":"ui-totals__row--total-RxjGo","totals__term":"ui-totals__term-2EyMa","totals__value":"ui-totals__value-FLub2"};
|
|
6
|
+
const n = ({ items: l, className: r, testId: m }) => /* @__PURE__ */ o("dl", { className: a(t.totals, r), "data-testid": m, children: l.map((s, e) => /* @__PURE__ */ d(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: a(t.totals__row, s.isTotal && t["totals__row--total"]),
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ o("dt", { className: t.totals__term, children: s.term }),
|
|
12
|
+
/* @__PURE__ */ o("dd", { className: t.totals__value, children: s.description })
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
e
|
|
16
|
+
)) }), N = /* @__PURE__ */ i(
|
|
17
|
+
/* @__PURE__ */ c(n, "TotalsList")
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
N as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/TotalsList/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** One row of a `TotalsList`: the same `term` / `description` shape as `DescriptionList`'s items. */\nexport type TotalsListItem = {\n /** The label: \"Ara toplam\", \"İskonto\", \"KDV (%20)\". */\n term: ReactNode;\n /**\n * The amount: usually a `Price` (a negative one for a discount, \"-₺120,00\"), plain text, or an\n * inline `Badge` (\"Ücretsiz\"). Right-aligned with tabular figures, so the digits line up.\n */\n description: ReactNode;\n /** The grand total: emphasized and set apart by a divider above it. */\n isTotal?: boolean;\n};\n\ntype Props = {\n items: TotalsListItem[];\n className?: string;\n testId?: string;\n};\n\n/**\n * Label → amount totals of a cart, an order or an invoice (3.2.2) — a native `<dl>`. Labels sit at\n * the start, amounts at the end in tabular figures; an `isTotal` row is emphasized below a divider.\n * @example <TotalsList items={[{ term: 'Ara toplam', description: <Price value=\"1.200,00\" size=\"sm\" /> }, { term: 'Genel toplam', description: <Price value=\"1.440,00\" />, isTotal: true }]} />\n */\nconst TotalsList: FC<Props> = ({ items, className, testId }) => (\n <dl className={cx(styles.totals, className)} data-testid={testId}>\n {items.map((item, index) => (\n <div\n key={index}\n className={cx(styles.totals__row, item.isTotal && styles['totals__row--total'])}\n >\n <dt className={styles.totals__term}>{item.term}</dt>\n <dd className={styles.totals__value}>{item.description}</dd>\n </div>\n ))}\n </dl>\n);\n\nexport default /*#__PURE__*/ memo(\n /*#__PURE__*/ named(TotalsList, 'TotalsList'),\n) as typeof TotalsList;\n"],"names":["TotalsList","items","className","testId","cx","styles","item","index","jsxs","jsx","memo","named"],"mappings":";;;;;AA+BA,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,QAAAC,0BAChD,MAAA,EAAG,WAAWC,EAAGC,EAAO,QAAQH,CAAS,GAAG,eAAaC,GACvD,UAAAF,EAAM,IAAI,CAACK,GAAMC,MAChB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IAEC,WAAWJ,EAAGC,EAAO,aAAaC,EAAK,WAAWD,EAAO,oBAAoB,CAAC;AAAA,IAE9E,UAAA;AAAA,MAAA,gBAAAI,EAAC,MAAA,EAAG,WAAWJ,EAAO,cAAe,YAAK,MAAK;AAAA,wBAC9C,MAAA,EAAG,WAAWA,EAAO,eAAgB,YAAK,YAAA,CAAY;AAAA,IAAA;AAAA,EAAA;AAAA,EAJlDE;AAKP,CACD,GACH,GAGFA,IAA6B,gBAAAG;AAAA,EACb,gBAAAC,EAAMX,GAAY,YAAY;AAC9C;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer ui{.ui-totals-nfbmW{display:flex;flex-direction:column;gap:var(--hd-space-2);margin:0;font-size:var(--hd-type-small-size)}.ui-totals__row-C1ufl{display:flex;align-items:baseline;justify-content:space-between;gap:var(--hd-space-4);break-inside:avoid}.ui-totals__row--total-RxjGo{margin-block-start:var(--hd-space-1);padding-block-start:var(--hd-space-3);border-block-start:1px solid var(--hd-border);font-size:var(--hd-type-body-size);font-weight:var(--hd-font-weight-semibold)}.ui-totals__term-2EyMa{min-width:0;color:var(--hd-text-2)}.ui-totals__row--total-RxjGo .ui-totals__term-2EyMa{color:var(--hd-text)}.ui-totals__value-FLub2{flex-shrink:0;margin:0;color:var(--hd-text);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@handijitcom/ui/design"),_=E.breakpoints.sm,A=E.breakpoints.md,T=E.breakpoints.lg,n=`(min-width: ${T+1}px)`,t=`(min-width: ${_+1}px)`,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@handijitcom/ui/design"),_=E.breakpoints.sm,A=E.breakpoints.md,T=E.breakpoints.lg,n=`(min-width: ${T+1}px)`,t=`(min-width: ${_+1}px)`,I=`(max-width: ${_}px) and (pointer: coarse)`,o="(hover: none) and (pointer: coarse)",R="print";exports.ABOVE_MOBILE_MEDIA_QUERY=t;exports.ABOVE_TABLET_MEDIA_QUERY=n;exports.MOBILE_BREAKPOINT=_;exports.PRINT_MEDIA_QUERY=R;exports.SHEET_MEDIA_QUERY=I;exports.TABLET_BREAKPOINT=T;exports.TABLET_PORTRAIT_BREAKPOINT=A;exports.TOUCH_MEDIA_QUERY=o;
|
|
2
2
|
//# sourceMappingURL=breakpoint.constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.constants.cjs","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijitcom/ui/design';\n\n/** Breakpoints — the values of `@handijitcom/ui/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n\n/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */\nexport const TOUCH_MEDIA_QUERY = '(hover: none) and (pointer: coarse)';\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY","TOUCH_MEDIA_QUERY"],"mappings":"0HAGaA,EAAoBC,EAAAA,YAAY,GAEhCC,EAA6BD,EAAAA,YAAY,GAEzCE,EAAoBF,EAAAA,YAAY,GAGhCG,EAA2B,eAAeD,EAAoB,CAAC,MAE/DE,EAA2B,eAAeL,EAAoB,CAAC,MAO/DM,EAAoB,eAAeN,CAAiB,4BAGpDO,EAAoB"}
|
|
1
|
+
{"version":3,"file":"breakpoint.constants.cjs","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijitcom/ui/design';\n\n/** Breakpoints — the values of `@handijitcom/ui/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n\n/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */\nexport const TOUCH_MEDIA_QUERY = '(hover: none) and (pointer: coarse)';\n\n/** The page is being printed (or laid out for a PDF). */\nexport const PRINT_MEDIA_QUERY = 'print';\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY","TOUCH_MEDIA_QUERY","PRINT_MEDIA_QUERY"],"mappings":"0HAGaA,EAAoBC,EAAAA,YAAY,GAEhCC,EAA6BD,EAAAA,YAAY,GAEzCE,EAAoBF,EAAAA,YAAY,GAGhCG,EAA2B,eAAeD,EAAoB,CAAC,MAE/DE,EAA2B,eAAeL,EAAoB,CAAC,MAO/DM,EAAoB,eAAeN,CAAiB,4BAGpDO,EAAoB,sCAGpBC,EAAoB"}
|
|
@@ -13,3 +13,5 @@ export declare const ABOVE_MOBILE_MEDIA_QUERY: string;
|
|
|
13
13
|
export declare const SHEET_MEDIA_QUERY: string;
|
|
14
14
|
/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */
|
|
15
15
|
export declare const TOUCH_MEDIA_QUERY = "(hover: none) and (pointer: coarse)";
|
|
16
|
+
/** The page is being printed (or laid out for a PDF). */
|
|
17
|
+
export declare const PRINT_MEDIA_QUERY = "print";
|
|
@@ -13,3 +13,5 @@ export declare const ABOVE_MOBILE_MEDIA_QUERY: string;
|
|
|
13
13
|
export declare const SHEET_MEDIA_QUERY: string;
|
|
14
14
|
/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */
|
|
15
15
|
export declare const TOUCH_MEDIA_QUERY = "(hover: none) and (pointer: coarse)";
|
|
16
|
+
/** The page is being printed (or laid out for a PDF). */
|
|
17
|
+
export declare const PRINT_MEDIA_QUERY = "print";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { breakpoints as E } from "@handijitcom/ui/design";
|
|
2
|
-
const
|
|
2
|
+
const n = E.sm, _ = E.md, o = E.lg, A = `(min-width: ${o + 1}px)`, T = `(min-width: ${n + 1}px)`, s = `(max-width: ${n}px) and (pointer: coarse)`, I = "(hover: none) and (pointer: coarse)", R = "print";
|
|
3
3
|
export {
|
|
4
4
|
T as ABOVE_MOBILE_MEDIA_QUERY,
|
|
5
5
|
A as ABOVE_TABLET_MEDIA_QUERY,
|
|
6
|
-
|
|
6
|
+
n as MOBILE_BREAKPOINT,
|
|
7
|
+
R as PRINT_MEDIA_QUERY,
|
|
7
8
|
s as SHEET_MEDIA_QUERY,
|
|
8
|
-
|
|
9
|
+
o as TABLET_BREAKPOINT,
|
|
9
10
|
_ as TABLET_PORTRAIT_BREAKPOINT,
|
|
10
|
-
|
|
11
|
+
I as TOUCH_MEDIA_QUERY
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=breakpoint.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.constants.js","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijitcom/ui/design';\n\n/** Breakpoints — the values of `@handijitcom/ui/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n\n/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */\nexport const TOUCH_MEDIA_QUERY = '(hover: none) and (pointer: coarse)';\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY","TOUCH_MEDIA_QUERY"],"mappings":";AAGO,MAAMA,IAAoBC,EAAY,IAEhCC,IAA6BD,EAAY,IAEzCE,IAAoBF,EAAY,IAGhCG,IAA2B,eAAeD,IAAoB,CAAC,OAE/DE,IAA2B,eAAeL,IAAoB,CAAC,OAO/DM,IAAoB,eAAeN,CAAiB,6BAGpDO,IAAoB;"}
|
|
1
|
+
{"version":3,"file":"breakpoint.constants.js","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijitcom/ui/design';\n\n/** Breakpoints — the values of `@handijitcom/ui/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n\n/** A touch screen is the primary pointer: a focused text field opens the on-screen keyboard. */\nexport const TOUCH_MEDIA_QUERY = '(hover: none) and (pointer: coarse)';\n\n/** The page is being printed (or laid out for a PDF). */\nexport const PRINT_MEDIA_QUERY = 'print';\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY","TOUCH_MEDIA_QUERY","PRINT_MEDIA_QUERY"],"mappings":";AAGO,MAAMA,IAAoBC,EAAY,IAEhCC,IAA6BD,EAAY,IAEzCE,IAAoBF,EAAY,IAGhCG,IAA2B,eAAeD,IAAoB,CAAC,OAE/DE,IAA2B,eAAeL,IAAoB,CAAC,OAO/DM,IAAoB,eAAeN,CAAiB,6BAGpDO,IAAoB,uCAGpBC,IAAoB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),u=require("react-dom"),f=require("../constants/breakpoint.constants.cjs"),l=(t=!0)=>{const[c,d]=a.useState(!1);return a.useEffect(()=>{if(!t)return;const n=r=>u.flushSync(()=>d(r)),i=()=>n(!0),o=()=>n(!1),s=r=>n(r.matches),e=typeof window.matchMedia=="function"?window.matchMedia(f.PRINT_MEDIA_QUERY):null;return window.addEventListener("beforeprint",i),window.addEventListener("afterprint",o),e==null||e.addEventListener("change",s),()=>{window.removeEventListener("beforeprint",i),window.removeEventListener("afterprint",o),e==null||e.removeEventListener("change",s)}},[t]),t&&c};exports.default=l;
|
|
2
|
+
//# sourceMappingURL=usePrinting.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrinting.cjs","sources":["../../src/hooks/usePrinting.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { flushSync } from 'react-dom';\n\nimport { PRINT_MEDIA_QUERY } from '../constants/breakpoint.constants';\n\n/**\n * Whether the page is being printed (3.2.2): `true` from `beforeprint` — or the print media query\n * starting to match — until `afterprint`. The state is flushed synchronously: the browser lays the\n * pages out as soon as `beforeprint` returns, so a render that waited for the next frame would miss\n * the paper. Listens only while `isEnabled`; disabled, it answers `false`.\n */\nconst usePrinting = (isEnabled = true): boolean => {\n const [isPrinting, setIsPrinting] = useState(false);\n\n useEffect(() => {\n if (!isEnabled) return;\n\n const update = (next: boolean) => flushSync(() => setIsPrinting(next));\n const handleBeforePrint = () => update(true);\n const handleAfterPrint = () => update(false);\n const handleChange = (event: MediaQueryListEvent) => update(event.matches);\n const query =\n typeof window.matchMedia === 'function' ? window.matchMedia(PRINT_MEDIA_QUERY) : null;\n\n window.addEventListener('beforeprint', handleBeforePrint);\n window.addEventListener('afterprint', handleAfterPrint);\n query?.addEventListener('change', handleChange);\n\n return () => {\n window.removeEventListener('beforeprint', handleBeforePrint);\n window.removeEventListener('afterprint', handleAfterPrint);\n query?.removeEventListener('change', handleChange);\n };\n }, [isEnabled]);\n\n return isEnabled && isPrinting;\n};\n\nexport default usePrinting;\n"],"names":["usePrinting","isEnabled","isPrinting","setIsPrinting","useState","useEffect","update","next","flushSync","handleBeforePrint","handleAfterPrint","handleChange","event","query","PRINT_MEDIA_QUERY"],"mappings":"4NAYMA,EAAc,CAACC,EAAY,KAAkB,CACjD,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,EAAK,EAElDC,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAI,CAACJ,EAAW,OAEhB,MAAMK,EAAUC,GAAkBC,EAAAA,UAAU,IAAML,EAAcI,CAAI,CAAC,EAC/DE,EAAoB,IAAMH,EAAO,EAAI,EACrCI,EAAmB,IAAMJ,EAAO,EAAK,EACrCK,EAAgBC,GAA+BN,EAAOM,EAAM,OAAO,EACnEC,EACJ,OAAO,OAAO,YAAe,WAAa,OAAO,WAAWC,EAAAA,iBAAiB,EAAI,KAEnF,cAAO,iBAAiB,cAAeL,CAAiB,EACxD,OAAO,iBAAiB,aAAcC,CAAgB,EACtDG,GAAA,MAAAA,EAAO,iBAAiB,SAAUF,GAE3B,IAAM,CACX,OAAO,oBAAoB,cAAeF,CAAiB,EAC3D,OAAO,oBAAoB,aAAcC,CAAgB,EACzDG,GAAA,MAAAA,EAAO,oBAAoB,SAAUF,EACvC,CACF,EAAG,CAACV,CAAS,CAAC,EAEPA,GAAaC,CACtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the page is being printed (3.2.2): `true` from `beforeprint` — or the print media query
|
|
3
|
+
* starting to match — until `afterprint`. The state is flushed synchronously: the browser lays the
|
|
4
|
+
* pages out as soon as `beforeprint` returns, so a render that waited for the next frame would miss
|
|
5
|
+
* the paper. Listens only while `isEnabled`; disabled, it answers `false`.
|
|
6
|
+
*/
|
|
7
|
+
declare const usePrinting: (isEnabled?: boolean) => boolean;
|
|
8
|
+
export default usePrinting;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the page is being printed (3.2.2): `true` from `beforeprint` — or the print media query
|
|
3
|
+
* starting to match — until `afterprint`. The state is flushed synchronously: the browser lays the
|
|
4
|
+
* pages out as soon as `beforeprint` returns, so a render that waited for the next frame would miss
|
|
5
|
+
* the paper. Listens only while `isEnabled`; disabled, it answers `false`.
|
|
6
|
+
*/
|
|
7
|
+
declare const usePrinting: (isEnabled?: boolean) => boolean;
|
|
8
|
+
export default usePrinting;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as d, useEffect as c } from "react";
|
|
3
|
+
import { flushSync as m } from "react-dom";
|
|
4
|
+
import { PRINT_MEDIA_QUERY as w } from "../constants/breakpoint.constants.js";
|
|
5
|
+
const v = (t = !0) => {
|
|
6
|
+
const [a, f] = d(!1);
|
|
7
|
+
return c(() => {
|
|
8
|
+
if (!t) return;
|
|
9
|
+
const n = (r) => m(() => f(r)), i = () => n(!0), o = () => n(!1), s = (r) => n(r.matches), e = typeof window.matchMedia == "function" ? window.matchMedia(w) : null;
|
|
10
|
+
return window.addEventListener("beforeprint", i), window.addEventListener("afterprint", o), e == null || e.addEventListener("change", s), () => {
|
|
11
|
+
window.removeEventListener("beforeprint", i), window.removeEventListener("afterprint", o), e == null || e.removeEventListener("change", s);
|
|
12
|
+
};
|
|
13
|
+
}, [t]), t && a;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
v as default
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=usePrinting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrinting.js","sources":["../../src/hooks/usePrinting.ts"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { flushSync } from 'react-dom';\n\nimport { PRINT_MEDIA_QUERY } from '../constants/breakpoint.constants';\n\n/**\n * Whether the page is being printed (3.2.2): `true` from `beforeprint` — or the print media query\n * starting to match — until `afterprint`. The state is flushed synchronously: the browser lays the\n * pages out as soon as `beforeprint` returns, so a render that waited for the next frame would miss\n * the paper. Listens only while `isEnabled`; disabled, it answers `false`.\n */\nconst usePrinting = (isEnabled = true): boolean => {\n const [isPrinting, setIsPrinting] = useState(false);\n\n useEffect(() => {\n if (!isEnabled) return;\n\n const update = (next: boolean) => flushSync(() => setIsPrinting(next));\n const handleBeforePrint = () => update(true);\n const handleAfterPrint = () => update(false);\n const handleChange = (event: MediaQueryListEvent) => update(event.matches);\n const query =\n typeof window.matchMedia === 'function' ? window.matchMedia(PRINT_MEDIA_QUERY) : null;\n\n window.addEventListener('beforeprint', handleBeforePrint);\n window.addEventListener('afterprint', handleAfterPrint);\n query?.addEventListener('change', handleChange);\n\n return () => {\n window.removeEventListener('beforeprint', handleBeforePrint);\n window.removeEventListener('afterprint', handleAfterPrint);\n query?.removeEventListener('change', handleChange);\n };\n }, [isEnabled]);\n\n return isEnabled && isPrinting;\n};\n\nexport default usePrinting;\n"],"names":["usePrinting","isEnabled","isPrinting","setIsPrinting","useState","useEffect","update","next","flushSync","handleBeforePrint","handleAfterPrint","handleChange","event","query","PRINT_MEDIA_QUERY"],"mappings":";;;;AAYA,MAAMA,IAAc,CAACC,IAAY,OAAkB;AACjD,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK;AAElD,SAAAC,EAAU,MAAM;AACd,QAAI,CAACJ,EAAW;AAEhB,UAAMK,IAAS,CAACC,MAAkBC,EAAU,MAAML,EAAcI,CAAI,CAAC,GAC/DE,IAAoB,MAAMH,EAAO,EAAI,GACrCI,IAAmB,MAAMJ,EAAO,EAAK,GACrCK,IAAe,CAACC,MAA+BN,EAAOM,EAAM,OAAO,GACnEC,IACJ,OAAO,OAAO,cAAe,aAAa,OAAO,WAAWC,CAAiB,IAAI;AAEnF,kBAAO,iBAAiB,eAAeL,CAAiB,GACxD,OAAO,iBAAiB,cAAcC,CAAgB,GACtDG,KAAA,QAAAA,EAAO,iBAAiB,UAAUF,IAE3B,MAAM;AACX,aAAO,oBAAoB,eAAeF,CAAiB,GAC3D,OAAO,oBAAoB,cAAcC,CAAgB,GACzDG,KAAA,QAAAA,EAAO,oBAAoB,UAAUF;AAAA,IACvC;AAAA,EACF,GAAG,CAACV,CAAS,CAAC,GAEPA,KAAaC;AACtB;"}
|
package/build/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./theme/UiProvider.cjs"),x=require("./theme/UiThemeScript.cjs"),T=require("./theme/context.cjs"),n=require("@handijitcom/ui/design"),S=require("./helpers/focus.helper.cjs"),E=require("./hooks/useAnnounce.cjs"),B=require("./hooks/useUiTheme.cjs"),P=require("./hooks/useUiTokens.cjs"),C=require("./hooks/useStickToBottom.cjs"),I=require("./hooks/useListboxNavigation.cjs"),A=require("./hooks/usePositioning.cjs"),R=require("./hooks/useVirtualList.cjs"),b=require("./enums/ui-variant.enum.cjs"),g=require("./enums/ui-size.enum.cjs"),e=require("./constants/breakpoint.constants.cjs"),a=require("./helpers/text.helper.cjs"),D=require("./components/Button/index.cjs"),h=require("./components/IconButton/index.cjs"),O=require("./components/TextLink/index.cjs"),y=require("./components/Tooltip/index.cjs"),s=require("./components/Menu/index.cjs"),M=require("./components/Popover/index.cjs"),k=require("./components/Chip/index.cjs"),U=require("./components/ChipGroup/index.cjs"),v=require("./components/Combobox/index.cjs"),H=require("./components/SegmentedControl/index.cjs"),F=require("./components/Select/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./theme/UiProvider.cjs"),x=require("./theme/UiThemeScript.cjs"),T=require("./theme/context.cjs"),n=require("@handijitcom/ui/design"),S=require("./helpers/focus.helper.cjs"),E=require("./hooks/useAnnounce.cjs"),B=require("./hooks/useUiTheme.cjs"),P=require("./hooks/useUiTokens.cjs"),C=require("./hooks/useStickToBottom.cjs"),I=require("./hooks/useListboxNavigation.cjs"),A=require("./hooks/usePositioning.cjs"),R=require("./hooks/useVirtualList.cjs"),b=require("./enums/ui-variant.enum.cjs"),g=require("./enums/ui-size.enum.cjs"),e=require("./constants/breakpoint.constants.cjs"),a=require("./helpers/text.helper.cjs"),D=require("./components/Button/index.cjs"),h=require("./components/IconButton/index.cjs"),O=require("./components/TextLink/index.cjs"),y=require("./components/Tooltip/index.cjs"),s=require("./components/Menu/index.cjs"),M=require("./components/Popover/index.cjs"),k=require("./components/Chip/index.cjs"),U=require("./components/ChipGroup/index.cjs"),v=require("./components/Combobox/index.cjs"),H=require("./components/SegmentedControl/index.cjs"),F=require("./components/Select/index.cjs"),L=require("./components/Checkbox/index.cjs"),N=require("./components/Switch/index.cjs"),w=require("./components/Radio/index.cjs"),G=require("./components/RadioCard/index.cjs"),K=require("./components/RangeSlider/index.cjs"),Q=require("./components/RatingInput/index.cjs"),V=require("./components/QuantityStepper/index.cjs"),Y=require("./components/TableCheckbox/index.cjs"),j=require("./components/Input/index.cjs"),z=require("./components/PasswordInput/index.cjs"),J=require("./components/ScaledInput/index.cjs"),W=require("./components/MoneyInput/index.cjs"),X=require("./components/QuantityInput/index.cjs"),Z=require("./components/RateInput/index.cjs"),$=require("./components/PercentInput/index.cjs"),ee=require("./components/TagInput/index.cjs"),te=require("./components/Textarea/index.cjs"),d=require("./components/DateField/index.cjs"),ne=require("./components/Field/index.cjs"),oe=require("./components/FileUpload/index.cjs"),re=require("./components/Alert/index.cjs"),ie=require("./components/Avatar/index.cjs"),ue=require("./components/Badge/index.cjs"),ae=require("./components/Breadcrumb/index.cjs"),t=require("./components/Card/index.cjs"),se=require("./components/Carousel/index.cjs"),de=require("./components/CodeBadge/index.cjs"),ce=require("./components/Kbd/index.cjs"),le=require("./components/StatusDot/index.cjs"),_e=require("./components/CopyField/index.cjs"),pe=require("./components/Divider/index.cjs"),o=require("./components/Directory/index.cjs"),me=require("./components/EmptyState/index.cjs"),fe=require("./components/PageHeader/index.cjs"),i=require("./components/Panel/index.cjs"),qe=require("./components/Price/index.cjs"),xe=require("./components/Rating/index.cjs"),Te=require("./components/SectionHeader/index.cjs"),Se=require("./components/ScrollArea/index.cjs"),r=require("./components/Skeleton/index.cjs"),Ee=require("./components/Stat/index.cjs"),Be=require("./components/SummaryCard/index.cjs"),Pe=require("./components/TotalsList/index.cjs"),c=require("./components/Progress/index.cjs"),Ce=require("./components/Spinner/index.cjs"),l=require("./components/Toast/index.cjs"),Ie=require("./components/ToastPortal/index.cjs"),Ae=require("./components/Accordion/index.cjs"),Re=require("./components/Disclosure/index.cjs"),be=require("./components/Steps/index.cjs"),ge=require("./components/Tabs/index.cjs"),De=require("./components/Tile/index.cjs"),he=require("./components/Timeline/index.cjs"),_=require("./components/BrandSurface/index.cjs"),Oe=require("./components/Eyebrow/index.cjs"),ye=require("./components/StatStrip/index.cjs"),Me=require("./components/BottomSheet/index.cjs"),ke=require("./components/Modal/index.cjs"),Ue=require("./components/CommandPalette/index.cjs"),ve=require("./components/ConfirmDialog/index.cjs"),He=require("./components/Drawer/index.cjs"),Fe=require("./components/PromptDialog/index.cjs"),p=require("./components/Table/index.cjs"),m=require("./components/DataTable/index.cjs"),Le=require("./components/DataTableColumnMenu/index.cjs"),Ne=require("./components/Gallery/index.cjs"),we=require("./components/TreeSelect/index.cjs"),Ge=require("./components/NotificationCenter/index.cjs"),Ke=require("./components/BulkPasteInput/index.cjs"),Qe=require("./helpers/bulk-paste.helper.cjs"),Ve=require("./components/AppShell/index.cjs"),Ye=require("./components/UserMenu/index.cjs"),f=require("./components/FilterBar/index.cjs"),je=require("./components/Pagination/index.cjs"),u=require("./components/AppShell/Nav.cjs");exports.UiProvider=q.default;exports.UiThemeScript=x.default;exports.useUi=T.useUi;Object.defineProperty(exports,"THEME_ATTRIBUTE",{enumerable:!0,get:()=>n.THEME_ATTRIBUTE});Object.defineProperty(exports,"THEME_BOOT_SCRIPT",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT});Object.defineProperty(exports,"THEME_BOOT_SCRIPT_HASH",{enumerable:!0,get:()=>n.THEME_BOOT_SCRIPT_HASH});Object.defineProperty(exports,"THEME_STORAGE_KEY",{enumerable:!0,get:()=>n.THEME_STORAGE_KEY});exports.hasOpenSurface=S.hasOpenSurface;exports.useAnnounce=E.default;exports.useUiTheme=B.default;exports.useUiTokens=P.default;exports.useStickToBottom=C.default;exports.useListboxNavigation=I.default;exports.usePositioning=A.default;exports.useVirtualList=R.default;exports.UIVariant=b.default;exports.UISize=g.default;exports.ABOVE_MOBILE_MEDIA_QUERY=e.ABOVE_MOBILE_MEDIA_QUERY;exports.ABOVE_TABLET_MEDIA_QUERY=e.ABOVE_TABLET_MEDIA_QUERY;exports.MOBILE_BREAKPOINT=e.MOBILE_BREAKPOINT;exports.SHEET_MEDIA_QUERY=e.SHEET_MEDIA_QUERY;exports.TABLET_BREAKPOINT=e.TABLET_BREAKPOINT;exports.TABLET_PORTRAIT_BREAKPOINT=e.TABLET_PORTRAIT_BREAKPOINT;exports.matchesSearch=a.matchesSearch;exports.normalizeSearchTerm=a.normalizeSearchTerm;exports.Button=D.default;exports.IconButton=h.default;exports.TextLink=O.default;exports.Tooltip=y.default;exports.ContextMenu=s.ContextMenu;exports.Menu=s.default;exports.Popover=M.default;exports.Chip=k.default;exports.ChipGroup=U.default;exports.Combobox=v.default;exports.SegmentedControl=H.default;exports.Select=F.default;exports.Checkbox=L.default;exports.Switch=N.default;exports.Radio=w.default;exports.RadioCard=G.default;exports.RangeSlider=K.default;exports.RatingInput=Q.default;exports.QuantityStepper=V.default;exports.TableCheckbox=Y.default;exports.Input=j.default;exports.PasswordInput=z.default;exports.ScaledInput=J.default;exports.MoneyInput=W.default;exports.QuantityInput=X.default;exports.RateInput=Z.default;exports.PercentInput=$.default;exports.TagInput=ee.default;exports.Textarea=te.default;exports.DateField=d.default;exports.DateRange=d.DateRange;exports.Field=ne.default;exports.FileUpload=oe.default;exports.Alert=re.default;exports.Avatar=ie.default;exports.Badge=ue.default;exports.Breadcrumb=ae.default;exports.Card=t.default;exports.CardBody=t.CardBody;exports.CardFooter=t.CardFooter;exports.CardMedia=t.CardMedia;exports.CardOverlay=t.CardOverlay;exports.Carousel=se.default;exports.CodeBadge=de.default;exports.Kbd=ce.default;exports.StatusDot=le.default;exports.CopyField=_e.default;exports.Divider=pe.default;exports.Directory=o.default;exports.DirectoryGroup=o.DirectoryGroup;exports.DirectoryJump=o.DirectoryJump;exports.DirectoryRow=o.DirectoryRow;exports.EmptyState=me.default;exports.PageHeader=fe.default;exports.Panel=i.default;exports.PanelForm=i.PanelForm;exports.PanelRow=i.PanelRow;exports.Price=qe.default;exports.Rating=xe.default;exports.SectionHeader=Te.default;exports.ScrollArea=Se.default;exports.Skeleton=r.default;exports.SkeletonCard=r.SkeletonCard;exports.SkeletonRows=r.SkeletonRows;exports.SkeletonTable=r.SkeletonTable;exports.Stat=Ee.default;exports.SummaryCard=Be.default;exports.TotalsList=Pe.default;exports.Progress=c.default;exports.ProgressCircle=c.ProgressCircle;exports.Spinner=Ce.default;exports.ToastHub=l.default;exports.toast=l.toast;exports.ToastPortal=Ie.default;exports.Accordion=Ae.default;exports.Disclosure=Re.default;exports.Steps=be.default;exports.Tabs=ge.default;exports.Tile=De.default;exports.Timeline=he.default;exports.BrandBlueprint=_.BrandBlueprint;exports.BrandSurface=_.default;exports.Eyebrow=Oe.default;exports.StatStrip=ye.default;exports.BottomSheet=Me.default;exports.Modal=ke.default;exports.CommandPalette=Ue.default;exports.ConfirmDialog=ve.default;exports.Drawer=He.default;exports.PromptDialog=Fe.default;exports.Table=p.default;exports.TableScroller=p.TableScroller;exports.DataTable=m.default;exports.DataTableRow=m.DataTableRow;exports.DataTableColumnMenu=Le.default;exports.Gallery=Ne.default;exports.TreeSelect=we.default;exports.NotificationCenter=Ge.default;exports.BulkPasteInput=Ke.default;exports.parseBulkPaste=Qe.parseBulkPaste;exports.AppShell=Ve.default;exports.UserMenu=Ye.default;exports.FilterBar=f.default;exports.FilterBarField=f.FilterBarField;exports.Pagination=je.default;exports.AppShellNav=u.AppShellNav;exports.AppShellNavGroup=u.AppShellNavGroup;exports.AppShellNavItem=u.AppShellNavItem;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/build/index.d.cts
CHANGED
|
@@ -73,6 +73,7 @@ export { default as ScrollArea } from './components/ScrollArea/index.cjs';
|
|
|
73
73
|
export { default as Skeleton, SkeletonCard, SkeletonRows, SkeletonTable, } from './components/Skeleton/index.cjs';
|
|
74
74
|
export { default as Stat, type StatTrend } from './components/Stat/index.cjs';
|
|
75
75
|
export { default as SummaryCard, type SummaryCardHeadingLevel } from './components/SummaryCard/index.cjs';
|
|
76
|
+
export { default as TotalsList, type TotalsListItem } from './components/TotalsList/index.cjs';
|
|
76
77
|
export { default as Progress, ProgressCircle } from './components/Progress/index.cjs';
|
|
77
78
|
export { default as Spinner } from './components/Spinner/index.cjs';
|
|
78
79
|
export { default as ToastHub, toast, type ToastInset, type ToastOptions, type ToastPlacement, type ToastTone, } from './components/Toast/index.cjs';
|
package/build/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export { default as ScrollArea } from './components/ScrollArea/index.js';
|
|
|
73
73
|
export { default as Skeleton, SkeletonCard, SkeletonRows, SkeletonTable, } from './components/Skeleton/index.js';
|
|
74
74
|
export { default as Stat, type StatTrend } from './components/Stat/index.js';
|
|
75
75
|
export { default as SummaryCard, type SummaryCardHeadingLevel } from './components/SummaryCard/index.js';
|
|
76
|
+
export { default as TotalsList, type TotalsListItem } from './components/TotalsList/index.js';
|
|
76
77
|
export { default as Progress, ProgressCircle } from './components/Progress/index.js';
|
|
77
78
|
export { default as Spinner } from './components/Spinner/index.js';
|
|
78
79
|
export { default as ToastHub, toast, type ToastInset, type ToastOptions, type ToastPlacement, type ToastTone, } from './components/Toast/index.js';
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as a } from "./theme/UiProvider.js";
|
|
2
2
|
import { default as o } from "./theme/UiThemeScript.js";
|
|
3
3
|
import { useUi as l } from "./theme/context.js";
|
|
4
|
-
import { THEME_ATTRIBUTE as u, THEME_BOOT_SCRIPT as
|
|
4
|
+
import { THEME_ATTRIBUTE as u, THEME_BOOT_SCRIPT as s, THEME_BOOT_SCRIPT_HASH as d, THEME_STORAGE_KEY as m } from "@handijitcom/ui/design";
|
|
5
5
|
import { hasOpenSurface as i } from "./helpers/focus.helper.js";
|
|
6
6
|
import { default as T } from "./hooks/useAnnounce.js";
|
|
7
7
|
import { default as E } from "./hooks/useUiTheme.js";
|
|
@@ -12,7 +12,7 @@ import { default as _ } from "./hooks/usePositioning.js";
|
|
|
12
12
|
import { default as b } from "./hooks/useVirtualList.js";
|
|
13
13
|
import { default as h } from "./enums/ui-variant.enum.js";
|
|
14
14
|
import { default as O } from "./enums/ui-size.enum.js";
|
|
15
|
-
import { ABOVE_MOBILE_MEDIA_QUERY as U, ABOVE_TABLET_MEDIA_QUERY as k, MOBILE_BREAKPOINT as H, SHEET_MEDIA_QUERY as v, TABLET_BREAKPOINT as F, TABLET_PORTRAIT_BREAKPOINT as
|
|
15
|
+
import { ABOVE_MOBILE_MEDIA_QUERY as U, ABOVE_TABLET_MEDIA_QUERY as k, MOBILE_BREAKPOINT as H, SHEET_MEDIA_QUERY as v, TABLET_BREAKPOINT as F, TABLET_PORTRAIT_BREAKPOINT as L } from "./constants/breakpoint.constants.js";
|
|
16
16
|
import { matchesSearch as N, normalizeSearchTerm as G } from "./helpers/text.helper.js";
|
|
17
17
|
import { default as Q } from "./components/Button/index.js";
|
|
18
18
|
import { default as Y } from "./components/IconButton/index.js";
|
|
@@ -24,7 +24,7 @@ import { default as ae } from "./components/Chip/index.js";
|
|
|
24
24
|
import { default as oe } from "./components/ChipGroup/index.js";
|
|
25
25
|
import { default as le } from "./components/Combobox/index.js";
|
|
26
26
|
import { default as ue } from "./components/SegmentedControl/index.js";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as de } from "./components/Select/index.js";
|
|
28
28
|
import { default as xe } from "./components/Checkbox/index.js";
|
|
29
29
|
import { default as ne } from "./components/Switch/index.js";
|
|
30
30
|
import { default as Se } from "./components/Radio/index.js";
|
|
@@ -38,7 +38,7 @@ import { default as Me } from "./components/PasswordInput/index.js";
|
|
|
38
38
|
import { default as ye } from "./components/ScaledInput/index.js";
|
|
39
39
|
import { default as ke } from "./components/MoneyInput/index.js";
|
|
40
40
|
import { default as ve } from "./components/QuantityInput/index.js";
|
|
41
|
-
import { default as
|
|
41
|
+
import { default as Le } from "./components/RateInput/index.js";
|
|
42
42
|
import { default as Ne } from "./components/PercentInput/index.js";
|
|
43
43
|
import { default as Ke } from "./components/TagInput/index.js";
|
|
44
44
|
import { default as Ve } from "./components/Textarea/index.js";
|
|
@@ -49,7 +49,7 @@ import { default as $e } from "./components/Alert/index.js";
|
|
|
49
49
|
import { default as tt } from "./components/Avatar/index.js";
|
|
50
50
|
import { default as rt } from "./components/Badge/index.js";
|
|
51
51
|
import { default as ft } from "./components/Breadcrumb/index.js";
|
|
52
|
-
import { default as pt, CardBody as ut, CardFooter as
|
|
52
|
+
import { default as pt, CardBody as ut, CardFooter as st, CardMedia as dt, CardOverlay as mt } from "./components/Card/index.js";
|
|
53
53
|
import { default as it } from "./components/Carousel/index.js";
|
|
54
54
|
import { default as Tt } from "./components/CodeBadge/index.js";
|
|
55
55
|
import { default as Et } from "./components/Kbd/index.js";
|
|
@@ -60,66 +60,67 @@ import { default as _t, DirectoryGroup as Dt, DirectoryJump as bt, DirectoryRow
|
|
|
60
60
|
import { default as Mt } from "./components/EmptyState/index.js";
|
|
61
61
|
import { default as yt } from "./components/PageHeader/index.js";
|
|
62
62
|
import { default as kt, PanelForm as Ht, PanelRow as vt } from "./components/Panel/index.js";
|
|
63
|
-
import { default as
|
|
63
|
+
import { default as Lt } from "./components/Price/index.js";
|
|
64
64
|
import { default as Nt } from "./components/Rating/index.js";
|
|
65
65
|
import { default as Kt } from "./components/SectionHeader/index.js";
|
|
66
66
|
import { default as Vt } from "./components/ScrollArea/index.js";
|
|
67
67
|
import { default as zt, SkeletonCard as Jt, SkeletonRows as jt, SkeletonTable as qt } from "./components/Skeleton/index.js";
|
|
68
68
|
import { default as Xt } from "./components/Stat/index.js";
|
|
69
69
|
import { default as $t } from "./components/SummaryCard/index.js";
|
|
70
|
-
import { default as ta
|
|
71
|
-
import { default as oa } from "./components/
|
|
72
|
-
import { default as la
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as ma } from "./components/
|
|
75
|
-
import { default as ia } from "./components/
|
|
76
|
-
import { default as Ta } from "./components/
|
|
77
|
-
import { default as Ea } from "./components/
|
|
78
|
-
import { default as Ba } from "./components/
|
|
79
|
-
import { default as Ca } from "./components/
|
|
80
|
-
import {
|
|
81
|
-
import { default as Da } from "./components/
|
|
82
|
-
import { default as ga } from "./components/
|
|
83
|
-
import { default as Ma } from "./components/
|
|
84
|
-
import { default as ya } from "./components/
|
|
85
|
-
import { default as ka } from "./components/
|
|
86
|
-
import { default as va } from "./components/
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as Na } from "./components/
|
|
89
|
-
import { default as Ka
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as ja } from "./components/
|
|
92
|
-
import { default as Wa } from "./components/
|
|
93
|
-
import { default as Za } from "./components/
|
|
94
|
-
import { default as er } from "./components/
|
|
95
|
-
import { default as ar } from "./components/
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import { default as ur } from "./components/
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as ir } from "./components/
|
|
101
|
-
import {
|
|
70
|
+
import { default as ta } from "./components/TotalsList/index.js";
|
|
71
|
+
import { default as ra, ProgressCircle as oa } from "./components/Progress/index.js";
|
|
72
|
+
import { default as la } from "./components/Spinner/index.js";
|
|
73
|
+
import { default as ua, toast as sa } from "./components/Toast/index.js";
|
|
74
|
+
import { default as ma } from "./components/ToastPortal/index.js";
|
|
75
|
+
import { default as ia } from "./components/Accordion/index.js";
|
|
76
|
+
import { default as Ta } from "./components/Disclosure/index.js";
|
|
77
|
+
import { default as Ea } from "./components/Steps/index.js";
|
|
78
|
+
import { default as Ba } from "./components/Tabs/index.js";
|
|
79
|
+
import { default as Ca } from "./components/Tile/index.js";
|
|
80
|
+
import { default as Pa } from "./components/Timeline/index.js";
|
|
81
|
+
import { BrandBlueprint as _a, default as Da } from "./components/BrandSurface/index.js";
|
|
82
|
+
import { default as ga } from "./components/Eyebrow/index.js";
|
|
83
|
+
import { default as Ma } from "./components/StatStrip/index.js";
|
|
84
|
+
import { default as ya } from "./components/BottomSheet/index.js";
|
|
85
|
+
import { default as ka } from "./components/Modal/index.js";
|
|
86
|
+
import { default as va } from "./components/CommandPalette/index.js";
|
|
87
|
+
import { default as La } from "./components/ConfirmDialog/index.js";
|
|
88
|
+
import { default as Na } from "./components/Drawer/index.js";
|
|
89
|
+
import { default as Ka } from "./components/PromptDialog/index.js";
|
|
90
|
+
import { default as Va, TableScroller as Ya } from "./components/Table/index.js";
|
|
91
|
+
import { default as Ja, DataTableRow as ja } from "./components/DataTable/index.js";
|
|
92
|
+
import { default as Wa } from "./components/DataTableColumnMenu/index.js";
|
|
93
|
+
import { default as Za } from "./components/Gallery/index.js";
|
|
94
|
+
import { default as er } from "./components/TreeSelect/index.js";
|
|
95
|
+
import { default as ar } from "./components/NotificationCenter/index.js";
|
|
96
|
+
import { default as or } from "./components/BulkPasteInput/index.js";
|
|
97
|
+
import { parseBulkPaste as lr } from "./helpers/bulk-paste.helper.js";
|
|
98
|
+
import { default as ur } from "./components/AppShell/index.js";
|
|
99
|
+
import { default as dr } from "./components/UserMenu/index.js";
|
|
100
|
+
import { default as xr, FilterBarField as ir } from "./components/FilterBar/index.js";
|
|
101
|
+
import { default as Tr } from "./components/Pagination/index.js";
|
|
102
|
+
import { AppShellNav as Er, AppShellNavGroup as cr, AppShellNavItem as Br } from "./components/AppShell/Nav.js";
|
|
102
103
|
export {
|
|
103
104
|
U as ABOVE_MOBILE_MEDIA_QUERY,
|
|
104
105
|
k as ABOVE_TABLET_MEDIA_QUERY,
|
|
105
|
-
|
|
106
|
+
ia as Accordion,
|
|
106
107
|
$e as Alert,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
ur as AppShell,
|
|
109
|
+
Er as AppShellNav,
|
|
110
|
+
cr as AppShellNavGroup,
|
|
111
|
+
Br as AppShellNavItem,
|
|
111
112
|
tt as Avatar,
|
|
112
113
|
rt as Badge,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
ya as BottomSheet,
|
|
115
|
+
_a as BrandBlueprint,
|
|
116
|
+
Da as BrandSurface,
|
|
116
117
|
ft as Breadcrumb,
|
|
117
|
-
|
|
118
|
+
or as BulkPasteInput,
|
|
118
119
|
Q as Button,
|
|
119
120
|
pt as Card,
|
|
120
121
|
ut as CardBody,
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
st as CardFooter,
|
|
123
|
+
dt as CardMedia,
|
|
123
124
|
mt as CardOverlay,
|
|
124
125
|
it as Carousel,
|
|
125
126
|
xe as Checkbox,
|
|
@@ -127,55 +128,55 @@ export {
|
|
|
127
128
|
oe as ChipGroup,
|
|
128
129
|
Tt as CodeBadge,
|
|
129
130
|
le as Combobox,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
va as CommandPalette,
|
|
132
|
+
La as ConfirmDialog,
|
|
132
133
|
X as ContextMenu,
|
|
133
134
|
Ct as CopyField,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Ja as DataTable,
|
|
136
|
+
Wa as DataTableColumnMenu,
|
|
137
|
+
ja as DataTableRow,
|
|
137
138
|
ze as DateField,
|
|
138
139
|
Je as DateRange,
|
|
139
140
|
_t as Directory,
|
|
140
141
|
Dt as DirectoryGroup,
|
|
141
142
|
bt as DirectoryJump,
|
|
142
143
|
gt as DirectoryRow,
|
|
143
|
-
|
|
144
|
+
Ta as Disclosure,
|
|
144
145
|
Pt as Divider,
|
|
145
|
-
|
|
146
|
+
Na as Drawer,
|
|
146
147
|
Mt as EmptyState,
|
|
147
|
-
|
|
148
|
+
ga as Eyebrow,
|
|
148
149
|
qe as Field,
|
|
149
150
|
Xe as FileUpload,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
xr as FilterBar,
|
|
152
|
+
ir as FilterBarField,
|
|
153
|
+
Za as Gallery,
|
|
153
154
|
Y as IconButton,
|
|
154
155
|
ge as Input,
|
|
155
156
|
Et as Kbd,
|
|
156
157
|
H as MOBILE_BREAKPOINT,
|
|
157
158
|
Z as Menu,
|
|
158
|
-
|
|
159
|
+
ka as Modal,
|
|
159
160
|
ke as MoneyInput,
|
|
160
|
-
|
|
161
|
+
ar as NotificationCenter,
|
|
161
162
|
yt as PageHeader,
|
|
162
|
-
|
|
163
|
+
Tr as Pagination,
|
|
163
164
|
kt as Panel,
|
|
164
165
|
Ht as PanelForm,
|
|
165
166
|
vt as PanelRow,
|
|
166
167
|
Me as PasswordInput,
|
|
167
168
|
Ne as PercentInput,
|
|
168
169
|
ee as Popover,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
Lt as Price,
|
|
171
|
+
ra as Progress,
|
|
172
|
+
oa as ProgressCircle,
|
|
173
|
+
Ka as PromptDialog,
|
|
173
174
|
ve as QuantityInput,
|
|
174
175
|
Re as QuantityStepper,
|
|
175
176
|
Se as Radio,
|
|
176
177
|
ce as RadioCard,
|
|
177
178
|
Ie as RangeSlider,
|
|
178
|
-
|
|
179
|
+
Le as RateInput,
|
|
179
180
|
Nt as Rating,
|
|
180
181
|
Ae as RatingInput,
|
|
181
182
|
v as SHEET_MEDIA_QUERY,
|
|
@@ -183,47 +184,48 @@ export {
|
|
|
183
184
|
Vt as ScrollArea,
|
|
184
185
|
Kt as SectionHeader,
|
|
185
186
|
ue as SegmentedControl,
|
|
186
|
-
|
|
187
|
+
de as Select,
|
|
187
188
|
zt as Skeleton,
|
|
188
189
|
Jt as SkeletonCard,
|
|
189
190
|
jt as SkeletonRows,
|
|
190
191
|
qt as SkeletonTable,
|
|
191
|
-
|
|
192
|
+
la as Spinner,
|
|
192
193
|
Xt as Stat,
|
|
193
|
-
|
|
194
|
+
Ma as StatStrip,
|
|
194
195
|
Bt as StatusDot,
|
|
195
|
-
|
|
196
|
+
Ea as Steps,
|
|
196
197
|
$t as SummaryCard,
|
|
197
198
|
ne as Switch,
|
|
198
199
|
F as TABLET_BREAKPOINT,
|
|
199
|
-
|
|
200
|
+
L as TABLET_PORTRAIT_BREAKPOINT,
|
|
200
201
|
u as THEME_ATTRIBUTE,
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
s as THEME_BOOT_SCRIPT,
|
|
203
|
+
d as THEME_BOOT_SCRIPT_HASH,
|
|
203
204
|
m as THEME_STORAGE_KEY,
|
|
204
|
-
|
|
205
|
+
Va as Table,
|
|
205
206
|
De as TableCheckbox,
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
Ya as TableScroller,
|
|
208
|
+
Ba as Tabs,
|
|
208
209
|
Ke as TagInput,
|
|
209
210
|
J as TextLink,
|
|
210
211
|
Ve as Textarea,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
Ca as Tile,
|
|
213
|
+
Pa as Timeline,
|
|
214
|
+
ua as ToastHub,
|
|
215
|
+
ma as ToastPortal,
|
|
215
216
|
q as Tooltip,
|
|
216
|
-
|
|
217
|
+
ta as TotalsList,
|
|
218
|
+
er as TreeSelect,
|
|
217
219
|
O as UISize,
|
|
218
220
|
h as UIVariant,
|
|
219
221
|
a as UiProvider,
|
|
220
222
|
o as UiThemeScript,
|
|
221
|
-
|
|
223
|
+
dr as UserMenu,
|
|
222
224
|
i as hasOpenSurface,
|
|
223
225
|
N as matchesSearch,
|
|
224
226
|
G as normalizeSearchTerm,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
lr as parseBulkPaste,
|
|
228
|
+
sa as toast,
|
|
227
229
|
T as useAnnounce,
|
|
228
230
|
P as useListboxNavigation,
|
|
229
231
|
_ as usePositioning,
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|