@handijitcom/ui 3.2.0 → 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 +111 -4
- package/build/components/Accordion/index.cjs +1 -1
- package/build/components/AppShell/Nav.cjs +1 -1
- package/build/components/AppShell/Nav.js +1 -1
- package/build/components/AppShell/context.js +2 -2
- package/build/components/AppShell/index.cjs +1 -1
- package/build/components/AppShell/index.cjs.map +1 -1
- package/build/components/AppShell/index.js +62 -55
- package/build/components/AppShell/index.js.map +1 -1
- package/build/components/AppShell/style.css +1 -1
- package/build/components/BottomSheet/index.cjs +1 -1
- package/build/components/BottomSheet/style.css +1 -1
- package/build/components/Breadcrumb/index.cjs +1 -1
- package/build/components/Breadcrumb/index.cjs.map +1 -1
- package/build/components/Breadcrumb/index.d.cts +11 -1
- package/build/components/Breadcrumb/index.d.ts +11 -1
- package/build/components/Breadcrumb/index.js +70 -22
- package/build/components/Breadcrumb/index.js.map +1 -1
- package/build/components/Breadcrumb/style.css +1 -1
- package/build/components/BulkPasteInput/index.cjs +1 -1
- package/build/components/Button/index.cjs +1 -1
- package/build/components/Carousel/index.cjs +1 -1
- package/build/components/ChipGroup/index.cjs +1 -1
- package/build/components/Combobox/index.cjs +1 -1
- package/build/components/CommandPalette/index.cjs +1 -1
- package/build/components/ConfirmDialog/index.cjs +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 +68 -67
- package/build/components/DataTable/index.js.map +1 -1
- package/build/components/DataTable/style.css +1 -1
- package/build/components/DataTableColumnMenu/index.cjs +1 -1
- package/build/components/DateField/index.js +1 -1
- package/build/components/Directory/index.js +1 -1
- package/build/components/Drawer/index.cjs +1 -1
- package/build/components/Drawer/style.css +1 -1
- package/build/components/Eyebrow/index.cjs +1 -1
- package/build/components/Eyebrow/index.cjs.map +1 -1
- package/build/components/Eyebrow/index.d.cts +6 -1
- package/build/components/Eyebrow/index.d.ts +6 -1
- package/build/components/Eyebrow/index.js +25 -6
- package/build/components/Eyebrow/index.js.map +1 -1
- package/build/components/Eyebrow/style.css +1 -1
- package/build/components/FileUpload/index.cjs +1 -1
- package/build/components/FilterBar/index.js +1 -1
- package/build/components/Gallery/index.cjs +1 -1
- package/build/components/Gallery/index.cjs.map +1 -1
- package/build/components/Gallery/index.js +28 -28
- package/build/components/Gallery/index.js.map +1 -1
- package/build/components/Gallery/style.css +1 -1
- package/build/components/Modal/index.cjs +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/MoneyInput/index.cjs +1 -1
- package/build/components/NotificationCenter/index.cjs +1 -1
- package/build/components/PageHeader/index.cjs +1 -1
- package/build/components/PageHeader/index.cjs.map +1 -1
- package/build/components/PageHeader/index.d.cts +5 -0
- package/build/components/PageHeader/index.d.ts +5 -0
- package/build/components/PageHeader/index.js +38 -28
- package/build/components/PageHeader/index.js.map +1 -1
- package/build/components/PageHeader/style.css +1 -1
- package/build/components/Pagination/index.cjs +1 -1
- package/build/components/Panel/index.js +1 -1
- package/build/components/PasswordInput/index.cjs +1 -1
- package/build/components/PercentInput/index.cjs +1 -1
- package/build/components/Popover/style.css +1 -1
- package/build/components/Price/index.cjs +1 -1
- package/build/components/Price/index.cjs.map +1 -1
- package/build/components/Price/index.d.cts +8 -0
- package/build/components/Price/index.d.ts +8 -0
- package/build/components/Price/index.js +44 -35
- package/build/components/Price/index.js.map +1 -1
- package/build/components/Price/style.css +1 -1
- package/build/components/PromptDialog/index.cjs +1 -1
- package/build/components/QuantityInput/index.cjs +1 -1
- package/build/components/RateInput/index.cjs +1 -1
- package/build/components/ScaledInput/index.cjs +1 -1
- package/build/components/SectionHeader/index.cjs +1 -1
- package/build/components/SectionHeader/index.cjs.map +1 -1
- package/build/components/SectionHeader/index.d.cts +2 -0
- package/build/components/SectionHeader/index.d.ts +2 -0
- package/build/components/SectionHeader/index.js +25 -15
- package/build/components/SectionHeader/index.js.map +1 -1
- package/build/components/SectionHeader/style.css +1 -1
- package/build/components/Select/index.cjs +1 -1
- package/build/components/Switch/index.js +4 -4
- package/build/components/Table/style.css +1 -1
- package/build/components/Tabs/index.cjs +1 -1
- package/build/components/Tabs/index.cjs.map +1 -1
- package/build/components/Tabs/index.js +120 -80
- package/build/components/Tabs/index.js.map +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/Toast/index.cjs +1 -1
- package/build/components/Toast/style.css +1 -1
- package/build/components/ToastPortal/index.cjs +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/components/TreeSelect/index.cjs +1 -1
- package/build/components/UserMenu/index.cjs +1 -1
- 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/helpers/scroll.helper.cjs +1 -1
- package/build/helpers/scroll.helper.cjs.map +1 -1
- package/build/helpers/scroll.helper.d.cts +6 -0
- package/build/helpers/scroll.helper.d.ts +6 -0
- package/build/helpers/scroll.helper.js +10 -5
- package/build/helpers/scroll.helper.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 +2 -1
- package/build/index.d.ts +2 -1
- package/build/index.js +88 -86
- package/build/index.js.map +1 -1
- package/build/scss/_mixins.scss +8 -0
- package/build/styles.css +18 -16
- package/build/theme/context.js +2 -2
- package/build/types/theme.type.d.cts +5 -0
- package/build/types/theme.type.d.ts +5 -0
- package/build/types/types/theme.type.d.cts +5 -0
- package/build/types/types/theme.type.d.ts +5 -0
- package/package.json +11 -1
|
@@ -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;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@handijitcom/utils"),c=()=>{!r.isClient()||typeof window.scrollTo!="function"||window.scrollTo({top:0,left:0,behavior:"instant"})},f=(o,t)=>{typeof(o==null?void 0:o.scrollIntoView)=="function"&&o.scrollIntoView(t)},w=(o,t,l=0)=>{if(!o||!t)return;const i=o.getBoundingClientRect(),s=t.getBoundingClientRect(),n=s.left-(i.left+l),e=s.right-(i.right-l);n<0?o.scrollLeft+=n:e>0&&(o.scrollLeft+=e)};exports.scrollIntoInlineView=w;exports.scrollIntoViewIfPossible=f;exports.scrollWindowToTop=c;
|
|
2
2
|
//# sourceMappingURL=scroll.helper.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll.helper.cjs","sources":["../../src/helpers/scroll.helper.ts"],"sourcesContent":["/** Kaydırma yardımcıları. */\n\nimport { isClient } from '@handijitcom/utils';\n\n/**\n * Pencereyi en üste alır; ortam desteklemiyorsa sessizce geçer.\n * ⚠ Kaydırma ANIDIR.\n */\nexport const scrollWindowToTop = (): void => {\n if (!isClient() || typeof window.scrollTo !== 'function') return;\n\n window.scrollTo({ top: 0, left: 0, behavior: 'instant' });\n};\n\n/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */\nexport const scrollIntoViewIfPossible = (\n element: Element | null | undefined,\n options?: ScrollIntoViewOptions,\n): void => {\n if (typeof element?.scrollIntoView === 'function') element.scrollIntoView(options);\n};\n"],"names":["scrollWindowToTop","isClient","scrollIntoViewIfPossible","element","options"],"mappings":"sHAQaA,EAAoB,IAAY,CACvC,CAACC,EAAAA,SAAA,GAAc,OAAO,OAAO,UAAa,YAE9C,OAAO,SAAS,CAAE,IAAK,EAAG,KAAM,EAAG,SAAU,UAAW,CAC1D,EAGaC,EAA2B,CACtCC,EACAC,IACS,CACL,OAAOD,GAAA,YAAAA,EAAS,iBAAmB,YAAYA,EAAQ,eAAeC,CAAO,CACnF"}
|
|
1
|
+
{"version":3,"file":"scroll.helper.cjs","sources":["../../src/helpers/scroll.helper.ts"],"sourcesContent":["/** Kaydırma yardımcıları. */\n\nimport { isClient } from '@handijitcom/utils';\n\n/**\n * Pencereyi en üste alır; ortam desteklemiyorsa sessizce geçer.\n * ⚠ Kaydırma ANIDIR.\n */\nexport const scrollWindowToTop = (): void => {\n if (!isClient() || typeof window.scrollTo !== 'function') return;\n\n window.scrollTo({ top: 0, left: 0, behavior: 'instant' });\n};\n\n/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */\nexport const scrollIntoViewIfPossible = (\n element: Element | null | undefined,\n options?: ScrollIntoViewOptions,\n): void => {\n if (typeof element?.scrollIntoView === 'function') element.scrollIntoView(options);\n};\n\n/**\n * Scrolls a horizontal strip so that `child` is fully in view, `margin` px clear of its edges (3.2.1).\n * Only the strip moves — `scrollIntoView` would scroll the page too, so a strip below the fold would\n * pull the page down on the first paint.\n */\nexport const scrollIntoInlineView = (\n container: HTMLElement | null | undefined,\n child: Element | null | undefined,\n margin = 0,\n): void => {\n if (!container || !child) return;\n\n const box = container.getBoundingClientRect();\n const rect = child.getBoundingClientRect();\n const before = rect.left - (box.left + margin);\n const after = rect.right - (box.right - margin);\n\n if (before < 0) container.scrollLeft += before;\n else if (after > 0) container.scrollLeft += after;\n};\n"],"names":["scrollWindowToTop","isClient","scrollIntoViewIfPossible","element","options","scrollIntoInlineView","container","child","margin","box","rect","before","after"],"mappings":"sHAQaA,EAAoB,IAAY,CACvC,CAACC,EAAAA,SAAA,GAAc,OAAO,OAAO,UAAa,YAE9C,OAAO,SAAS,CAAE,IAAK,EAAG,KAAM,EAAG,SAAU,UAAW,CAC1D,EAGaC,EAA2B,CACtCC,EACAC,IACS,CACL,OAAOD,GAAA,YAAAA,EAAS,iBAAmB,YAAYA,EAAQ,eAAeC,CAAO,CACnF,EAOaC,EAAuB,CAClCC,EACAC,EACAC,EAAS,IACA,CACT,GAAI,CAACF,GAAa,CAACC,EAAO,OAE1B,MAAME,EAAMH,EAAU,sBAAA,EAChBI,EAAOH,EAAM,sBAAA,EACbI,EAASD,EAAK,MAAQD,EAAI,KAAOD,GACjCI,EAAQF,EAAK,OAASD,EAAI,MAAQD,GAEpCG,EAAS,EAAGL,EAAU,YAAcK,EAC/BC,EAAQ,IAAGN,EAAU,YAAcM,EAC9C"}
|
|
@@ -6,3 +6,9 @@
|
|
|
6
6
|
export declare const scrollWindowToTop: () => void;
|
|
7
7
|
/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */
|
|
8
8
|
export declare const scrollIntoViewIfPossible: (element: Element | null | undefined, options?: ScrollIntoViewOptions) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Scrolls a horizontal strip so that `child` is fully in view, `margin` px clear of its edges (3.2.1).
|
|
11
|
+
* Only the strip moves — `scrollIntoView` would scroll the page too, so a strip below the fold would
|
|
12
|
+
* pull the page down on the first paint.
|
|
13
|
+
*/
|
|
14
|
+
export declare const scrollIntoInlineView: (container: HTMLElement | null | undefined, child: Element | null | undefined, margin?: number) => void;
|
|
@@ -6,3 +6,9 @@
|
|
|
6
6
|
export declare const scrollWindowToTop: () => void;
|
|
7
7
|
/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */
|
|
8
8
|
export declare const scrollIntoViewIfPossible: (element: Element | null | undefined, options?: ScrollIntoViewOptions) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Scrolls a horizontal strip so that `child` is fully in view, `margin` px clear of its edges (3.2.1).
|
|
11
|
+
* Only the strip moves — `scrollIntoView` would scroll the page too, so a strip below the fold would
|
|
12
|
+
* pull the page down on the first paint.
|
|
13
|
+
*/
|
|
14
|
+
export declare const scrollIntoInlineView: (container: HTMLElement | null | undefined, child: Element | null | undefined, margin?: number) => void;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { isClient as r } from "@handijitcom/utils";
|
|
2
|
-
const
|
|
2
|
+
const e = () => {
|
|
3
3
|
!r() || typeof window.scrollTo != "function" || window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
|
4
|
-
},
|
|
5
|
-
typeof (o == null ? void 0 : o.scrollIntoView) == "function" && o.scrollIntoView(
|
|
4
|
+
}, w = (o, t) => {
|
|
5
|
+
typeof (o == null ? void 0 : o.scrollIntoView) == "function" && o.scrollIntoView(t);
|
|
6
|
+
}, p = (o, t, i = 0) => {
|
|
7
|
+
if (!o || !t) return;
|
|
8
|
+
const l = o.getBoundingClientRect(), s = t.getBoundingClientRect(), n = s.left - (l.left + i), f = s.right - (l.right - i);
|
|
9
|
+
n < 0 ? o.scrollLeft += n : f > 0 && (o.scrollLeft += f);
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
p as scrollIntoInlineView,
|
|
13
|
+
w as scrollIntoViewIfPossible,
|
|
14
|
+
e as scrollWindowToTop
|
|
10
15
|
};
|
|
11
16
|
//# sourceMappingURL=scroll.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll.helper.js","sources":["../../src/helpers/scroll.helper.ts"],"sourcesContent":["/** Kaydırma yardımcıları. */\n\nimport { isClient } from '@handijitcom/utils';\n\n/**\n * Pencereyi en üste alır; ortam desteklemiyorsa sessizce geçer.\n * ⚠ Kaydırma ANIDIR.\n */\nexport const scrollWindowToTop = (): void => {\n if (!isClient() || typeof window.scrollTo !== 'function') return;\n\n window.scrollTo({ top: 0, left: 0, behavior: 'instant' });\n};\n\n/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */\nexport const scrollIntoViewIfPossible = (\n element: Element | null | undefined,\n options?: ScrollIntoViewOptions,\n): void => {\n if (typeof element?.scrollIntoView === 'function') element.scrollIntoView(options);\n};\n"],"names":["scrollWindowToTop","isClient","scrollIntoViewIfPossible","element","options"],"mappings":";AAQO,MAAMA,IAAoB,MAAY;AAC3C,EAAI,CAACC,EAAA,KAAc,OAAO,OAAO,YAAa,cAE9C,OAAO,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,WAAW;AAC1D,GAGaC,IAA2B,CACtCC,GACAC,MACS;AACT,EAAI,QAAOD,KAAA,gBAAAA,EAAS,mBAAmB,cAAYA,EAAQ,eAAeC,CAAO;AACnF;"}
|
|
1
|
+
{"version":3,"file":"scroll.helper.js","sources":["../../src/helpers/scroll.helper.ts"],"sourcesContent":["/** Kaydırma yardımcıları. */\n\nimport { isClient } from '@handijitcom/utils';\n\n/**\n * Pencereyi en üste alır; ortam desteklemiyorsa sessizce geçer.\n * ⚠ Kaydırma ANIDIR.\n */\nexport const scrollWindowToTop = (): void => {\n if (!isClient() || typeof window.scrollTo !== 'function') return;\n\n window.scrollTo({ top: 0, left: 0, behavior: 'instant' });\n};\n\n/** Öğeyi görünür alana kaydırır; ortam desteklemiyorsa sessizce geçer. */\nexport const scrollIntoViewIfPossible = (\n element: Element | null | undefined,\n options?: ScrollIntoViewOptions,\n): void => {\n if (typeof element?.scrollIntoView === 'function') element.scrollIntoView(options);\n};\n\n/**\n * Scrolls a horizontal strip so that `child` is fully in view, `margin` px clear of its edges (3.2.1).\n * Only the strip moves — `scrollIntoView` would scroll the page too, so a strip below the fold would\n * pull the page down on the first paint.\n */\nexport const scrollIntoInlineView = (\n container: HTMLElement | null | undefined,\n child: Element | null | undefined,\n margin = 0,\n): void => {\n if (!container || !child) return;\n\n const box = container.getBoundingClientRect();\n const rect = child.getBoundingClientRect();\n const before = rect.left - (box.left + margin);\n const after = rect.right - (box.right - margin);\n\n if (before < 0) container.scrollLeft += before;\n else if (after > 0) container.scrollLeft += after;\n};\n"],"names":["scrollWindowToTop","isClient","scrollIntoViewIfPossible","element","options","scrollIntoInlineView","container","child","margin","box","rect","before","after"],"mappings":";AAQO,MAAMA,IAAoB,MAAY;AAC3C,EAAI,CAACC,EAAA,KAAc,OAAO,OAAO,YAAa,cAE9C,OAAO,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,WAAW;AAC1D,GAGaC,IAA2B,CACtCC,GACAC,MACS;AACT,EAAI,QAAOD,KAAA,gBAAAA,EAAS,mBAAmB,cAAYA,EAAQ,eAAeC,CAAO;AACnF,GAOaC,IAAuB,CAClCC,GACAC,GACAC,IAAS,MACA;AACT,MAAI,CAACF,KAAa,CAACC,EAAO;AAE1B,QAAME,IAAMH,EAAU,sBAAA,GAChBI,IAAOH,EAAM,sBAAA,GACbI,IAASD,EAAK,QAAQD,EAAI,OAAOD,IACjCI,IAAQF,EAAK,SAASD,EAAI,QAAQD;AAExC,EAAIG,IAAS,IAAGL,EAAU,cAAcK,IAC/BC,IAAQ,MAAGN,EAAU,cAAcM;AAC9C;"}
|
|
@@ -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
|
|
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
|
@@ -66,13 +66,14 @@ export { default as Directory, DirectoryGroup, DirectoryJump, DirectoryRow, } fr
|
|
|
66
66
|
export { default as EmptyState } from './components/EmptyState/index.cjs';
|
|
67
67
|
export { default as PageHeader } from './components/PageHeader/index.cjs';
|
|
68
68
|
export { default as Panel, PanelForm, PanelRow } from './components/Panel/index.cjs';
|
|
69
|
-
export { default as Price } from './components/Price/index.cjs';
|
|
69
|
+
export { default as Price, type PriceCurrencyPosition } from './components/Price/index.cjs';
|
|
70
70
|
export { default as Rating } from './components/Rating/index.cjs';
|
|
71
71
|
export { default as SectionHeader } from './components/SectionHeader/index.cjs';
|
|
72
72
|
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
|
@@ -66,13 +66,14 @@ export { default as Directory, DirectoryGroup, DirectoryJump, DirectoryRow, } fr
|
|
|
66
66
|
export { default as EmptyState } from './components/EmptyState/index.js';
|
|
67
67
|
export { default as PageHeader } from './components/PageHeader/index.js';
|
|
68
68
|
export { default as Panel, PanelForm, PanelRow } from './components/Panel/index.js';
|
|
69
|
-
export { default as Price } from './components/Price/index.js';
|
|
69
|
+
export { default as Price, type PriceCurrencyPosition } from './components/Price/index.js';
|
|
70
70
|
export { default as Rating } from './components/Rating/index.js';
|
|
71
71
|
export { default as SectionHeader } from './components/SectionHeader/index.js';
|
|
72
72
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/scss/_mixins.scss
CHANGED
|
@@ -418,6 +418,14 @@ $header-offset: var(--ui-header-height, 0px);
|
|
|
418
418
|
color: $text-2;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
// An overline that keeps the given case (3.2.1): a brand or a proper name ("Mann-Filter") must not be
|
|
422
|
+
// capitalised by CSS — under `lang="tr"` the browser writes "MANN-FİLTER". The capitals' wide
|
|
423
|
+
// tracking goes with them.
|
|
424
|
+
@mixin overline-as-written {
|
|
425
|
+
letter-spacing: normal;
|
|
426
|
+
text-transform: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
421
429
|
@mixin label {
|
|
422
430
|
font-family: $font-body;
|
|
423
431
|
font-size: $font-size-small;
|