@exromany/lido-app-ui 0.0.1-pre.2 → 0.0.1-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/README.md +1 -1
- package/dist/cjs/address/Address.cjs +1 -0
- package/dist/cjs/address/Address.cjs.map +1 -1
- package/dist/cjs/breadcrumbs/Breadcrumbs.cjs +7 -1
- package/dist/cjs/breadcrumbs/Breadcrumbs.cjs.map +1 -1
- package/dist/cjs/data-list/DataList.module.css.cjs +1 -1
- package/dist/cjs/data-list/DataListRow.cjs +5 -12
- package/dist/cjs/data-list/DataListRow.cjs.map +1 -1
- package/dist/cjs/index.cjs +5 -5
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.css +4 -4
- package/dist/cjs/info-tooltip/InfoTooltip.cjs +34 -0
- package/dist/cjs/info-tooltip/InfoTooltip.cjs.map +1 -0
- package/dist/cjs/info-tooltip/InfoTooltip.module.css.cjs +6 -0
- package/dist/cjs/info-tooltip/InfoTooltip.module.css.cjs.map +1 -0
- package/dist/cjs/input/Input.cjs +3 -8
- package/dist/cjs/input/Input.cjs.map +1 -1
- package/dist/cjs/input/Input.module.css.cjs +1 -1
- package/dist/cjs/rich-input/RichInput.cjs +4 -7
- package/dist/cjs/rich-input/RichInput.cjs.map +1 -1
- package/dist/cjs/rich-input/RichInput.module.css.cjs +1 -1
- package/dist/cjs/section-title/SectionTitle.cjs +8 -10
- package/dist/cjs/section-title/SectionTitle.cjs.map +1 -1
- package/dist/cjs/section-title/SectionTitle.module.css.cjs +1 -1
- package/dist/cjs/stack/Stack.cjs +13 -2
- package/dist/cjs/stack/Stack.cjs.map +1 -1
- package/dist/cjs/stack/Stack.module.css.cjs +1 -1
- package/dist/cjs/stat-item/StatItem.cjs +3 -8
- package/dist/cjs/stat-item/StatItem.cjs.map +1 -1
- package/dist/cjs/stat-item/StatItem.module.css.cjs +1 -1
- package/dist/esm/address/Address.mjs +1 -0
- package/dist/esm/address/Address.mjs.map +1 -1
- package/dist/esm/breadcrumbs/Breadcrumbs.mjs +7 -1
- package/dist/esm/breadcrumbs/Breadcrumbs.mjs.map +1 -1
- package/dist/esm/data-list/DataList.module.css.mjs +1 -1
- package/dist/esm/data-list/DataListRow.mjs +5 -12
- package/dist/esm/data-list/DataListRow.mjs.map +1 -1
- package/dist/esm/index.css +4 -4
- package/dist/esm/index.mjs +7 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/info-tooltip/InfoTooltip.mjs +30 -0
- package/dist/esm/info-tooltip/InfoTooltip.mjs.map +1 -0
- package/dist/esm/info-tooltip/InfoTooltip.module.css.mjs +4 -0
- package/dist/esm/info-tooltip/InfoTooltip.module.css.mjs.map +1 -0
- package/dist/esm/input/Input.mjs +3 -8
- package/dist/esm/input/Input.mjs.map +1 -1
- package/dist/esm/input/Input.module.css.mjs +1 -1
- package/dist/esm/rich-input/RichInput.mjs +4 -7
- package/dist/esm/rich-input/RichInput.mjs.map +1 -1
- package/dist/esm/rich-input/RichInput.module.css.mjs +1 -1
- package/dist/esm/section-title/SectionTitle.mjs +8 -10
- package/dist/esm/section-title/SectionTitle.mjs.map +1 -1
- package/dist/esm/section-title/SectionTitle.module.css.mjs +1 -1
- package/dist/esm/stack/Stack.mjs +13 -2
- package/dist/esm/stack/Stack.mjs.map +1 -1
- package/dist/esm/stack/Stack.module.css.mjs +1 -1
- package/dist/esm/stat-item/StatItem.mjs +3 -8
- package/dist/esm/stat-item/StatItem.mjs.map +1 -1
- package/dist/esm/stat-item/StatItem.module.css.mjs +1 -1
- package/dist/index.css +4 -4
- package/dist/types/address/Address.d.ts.map +1 -1
- package/dist/types/breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/data-list/DataListRow.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/info-tooltip/InfoTooltip.d.ts +12 -0
- package/dist/types/info-tooltip/InfoTooltip.d.ts.map +1 -0
- package/dist/types/info-tooltip/index.d.ts +3 -0
- package/dist/types/info-tooltip/index.d.ts.map +1 -0
- package/dist/types/input/Input.d.ts.map +1 -1
- package/dist/types/page-layout/index.d.ts +0 -2
- package/dist/types/page-layout/index.d.ts.map +1 -1
- package/dist/types/rich-input/RichInput.d.ts.map +1 -1
- package/dist/types/section-title/SectionTitle.d.ts +7 -2
- package/dist/types/section-title/SectionTitle.d.ts.map +1 -1
- package/dist/types/section-title/index.d.ts +1 -1
- package/dist/types/section-title/index.d.ts.map +1 -1
- package/dist/types/sidebar/index.d.ts +0 -2
- package/dist/types/sidebar/index.d.ts.map +1 -1
- package/dist/types/stack/Stack.d.ts +7 -3
- package/dist/types/stack/Stack.d.ts.map +1 -1
- package/dist/types/stat-item/StatItem.d.ts.map +1 -1
- package/package.json +54 -1
- package/dist/cjs/page-layout/MobilePageTitle.cjs +0 -21
- package/dist/cjs/page-layout/MobilePageTitle.cjs.map +0 -1
- package/dist/cjs/sidebar/SidebarHeaderStart.cjs +0 -32
- package/dist/cjs/sidebar/SidebarHeaderStart.cjs.map +0 -1
- package/dist/cjs/sidebar/SidebarHeaderStart.module.css.cjs +0 -6
- package/dist/cjs/sidebar/SidebarHeaderStart.module.css.cjs.map +0 -1
- package/dist/esm/page-layout/MobilePageTitle.mjs +0 -17
- package/dist/esm/page-layout/MobilePageTitle.mjs.map +0 -1
- package/dist/esm/sidebar/SidebarHeaderStart.mjs +0 -28
- package/dist/esm/sidebar/SidebarHeaderStart.mjs.map +0 -1
- package/dist/esm/sidebar/SidebarHeaderStart.module.css.mjs +0 -4
- package/dist/esm/sidebar/SidebarHeaderStart.module.css.mjs.map +0 -1
- package/dist/types/page-layout/MobilePageTitle.d.ts +0 -5
- package/dist/types/page-layout/MobilePageTitle.d.ts.map +0 -1
- package/dist/types/sidebar/SidebarHeaderStart.d.ts +0 -8
- package/dist/types/sidebar/SidebarHeaderStart.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ function Widget() {
|
|
|
28
28
|
}
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Theme providers (`ThemeProvider`, `CookieThemeProvider
|
|
31
|
+
Theme providers (`ThemeProvider`, `CookieThemeProvider`) are re-exported from `@lidofinance/lido-shared-ui`. The color tokens follow the `data-lido-theme` attribute they set, so switching to the dark theme restyles these components. `ThemeSwitcher` is the app-ui-styled theme toggle, since the shared `ThemeToggler` relies on `--lido-ui-*` tokens that app-ui doesn't define.
|
|
32
32
|
|
|
33
33
|
## Router links
|
|
34
34
|
|
package/dist/README.md
CHANGED
|
@@ -28,7 +28,7 @@ function Widget() {
|
|
|
28
28
|
}
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Theme providers (`ThemeProvider`, `CookieThemeProvider
|
|
31
|
+
Theme providers (`ThemeProvider`, `CookieThemeProvider`) are re-exported from `@lidofinance/lido-shared-ui`. The color tokens follow the `data-lido-theme` attribute they set, so switching to the dark theme restyles these components. `ThemeSwitcher` is the app-ui-styled theme toggle, since the shared `ThemeToggler` relies on `--lido-ui-*` tokens that app-ui doesn't define.
|
|
32
32
|
|
|
33
33
|
## Router links
|
|
34
34
|
|
|
@@ -37,6 +37,7 @@ const Address = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
37
37
|
className: cn(Address_module.identicon, identicon >= 28 && Address_module.identiconLarge)
|
|
38
38
|
}) : null, tooltip ? /*#__PURE__*/jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
39
39
|
content: address,
|
|
40
|
+
tabIndex: 0,
|
|
40
41
|
children: hex
|
|
41
42
|
}) : hex, copy ? /*#__PURE__*/jsxRuntime.jsx(Copy.Copy, {
|
|
42
43
|
text: address
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Address.cjs","sources":["../../../src/address/Address.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef } from 'react'\n\nimport cn from 'classnames'\n\nimport { Copy } from '../copy'\nimport { Hex } from '../hex'\nimport { Identicon } from '../identicon'\nimport { Tooltip } from '../tooltip'\nimport styles from './Address.module.css'\n\nexport type AddressProps = ComponentPropsWithoutRef<'span'> & {\n address: string\n symbols?: number\n identicon?: number\n tooltip?: boolean\n copy?: boolean\n}\n\nexport const Address = forwardRef<HTMLSpanElement, AddressProps>(\n (\n {\n address,\n symbols,\n identicon,\n tooltip = false,\n copy = false,\n className,\n children,\n ...rest\n },\n ref,\n ) => {\n const hex = (\n <Hex value={address} symbols={symbols} title={tooltip ? '' : undefined} />\n )\n\n return (\n <span ref={ref} className={cn(styles.root, className)} {...rest}>\n {identicon != null ? (\n <Identicon\n address={address}\n size={identicon}\n className={cn(\n styles.identicon,\n identicon >= 28 && styles.identiconLarge,\n )}\n />\n ) : null}\n {tooltip ? <Tooltip content={address}
|
|
1
|
+
{"version":3,"file":"Address.cjs","sources":["../../../src/address/Address.tsx"],"sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef } from 'react'\n\nimport cn from 'classnames'\n\nimport { Copy } from '../copy'\nimport { Hex } from '../hex'\nimport { Identicon } from '../identicon'\nimport { Tooltip } from '../tooltip'\nimport styles from './Address.module.css'\n\nexport type AddressProps = ComponentPropsWithoutRef<'span'> & {\n address: string\n symbols?: number\n identicon?: number\n tooltip?: boolean\n copy?: boolean\n}\n\nexport const Address = forwardRef<HTMLSpanElement, AddressProps>(\n (\n {\n address,\n symbols,\n identicon,\n tooltip = false,\n copy = false,\n className,\n children,\n ...rest\n },\n ref,\n ) => {\n const hex = (\n <Hex value={address} symbols={symbols} title={tooltip ? '' : undefined} />\n )\n\n return (\n <span ref={ref} className={cn(styles.root, className)} {...rest}>\n {identicon != null ? (\n <Identicon\n address={address}\n size={identicon}\n className={cn(\n styles.identicon,\n identicon >= 28 && styles.identiconLarge,\n )}\n />\n ) : null}\n {tooltip ? (\n <Tooltip content={address} tabIndex={0}>\n {hex}\n </Tooltip>\n ) : (\n hex\n )}\n {copy ? <Copy text={address} /> : null}\n {children}\n </span>\n )\n },\n)\n\nAddress.displayName = 'Address'\n"],"names":["Address","forwardRef","_ref","ref","address","symbols","identicon","tooltip","copy","className","children","rest","hex","_jsx","Hex","value","title","undefined","_jsxs","cn","styles","root","Identicon","size","identiconLarge","Tooltip","content","tabIndex","Copy","text","displayName"],"mappings":";;;;;;;;;;;;;AAkBO,MAAMA,OAAO,gBAAGC,gBAAU,CAC/B,CAAAC,IAAA,EAWEC,GAAG,KACA;EAAA,IAXH;IACEC,OAAO;IACPC,OAAO;IACPC,SAAS;AACTC,IAAAA,OAAO,GAAG,KAAK;AACfC,IAAAA,IAAI,GAAG,KAAK;IACZC,SAAS;IACTC,QAAQ;IACR,GAAGC,IAAAA;AACL,GAAC,GAAAT,IAAA,CAAA;AAGD,EAAA,MAAMU,GAAG,gBACPC,cAAA,CAACC,OAAG,EAAA;AAACC,IAAAA,KAAK,EAAEX,OAAQ;AAACC,IAAAA,OAAO,EAAEA,OAAQ;AAACW,IAAAA,KAAK,EAAET,OAAO,GAAG,EAAE,GAAGU,SAAAA;AAAU,GAAE,CAC1E,CAAA;AAED,EAAA,oBACEC,eAAA,CAAA,MAAA,EAAA;AAAMf,IAAAA,GAAG,EAAEA,GAAI;IAACM,SAAS,EAAEU,EAAE,CAACC,cAAM,CAACC,IAAI,EAAEZ,SAAS,CAAE;AAAA,IAAA,GAAKE,IAAI;AAAAD,IAAAA,QAAA,GAC5DJ,SAAS,IAAI,IAAI,gBAChBO,cAAA,CAACS,mBAAS,EAAA;AACRlB,MAAAA,OAAO,EAAEA,OAAQ;AACjBmB,MAAAA,IAAI,EAAEjB,SAAU;AAChBG,MAAAA,SAAS,EAAEU,EAAE,CACXC,cAAM,CAACd,SAAS,EAChBA,SAAS,IAAI,EAAE,IAAIc,cAAM,CAACI,cAC5B,CAAA;KACD,CAAC,GACA,IAAI,EACPjB,OAAO,gBACNM,cAAA,CAACY,eAAO,EAAA;AAACC,MAAAA,OAAO,EAAEtB,OAAQ;AAACuB,MAAAA,QAAQ,EAAE,CAAE;AAAAjB,MAAAA,QAAA,EACpCE,GAAAA;KACM,CAAC,GAEVA,GACD,EACAJ,IAAI,gBAAGK,cAAA,CAACe,SAAI,EAAA;AAACC,MAAAA,IAAI,EAAEzB,OAAAA;AAAQ,KAAE,CAAC,GAAG,IAAI,EACrCM,QAAQ,CAAA;AAAA,GACL,CAAC,CAAA;AAEX,CACF,EAAC;AAEDV,OAAO,CAAC8B,WAAW,GAAG,SAAS;;;;"}
|
|
@@ -34,7 +34,13 @@ const Breadcrumbs = _ref => {
|
|
|
34
34
|
react.useEffect(() => {
|
|
35
35
|
const list = listRef.current;
|
|
36
36
|
if (!list || typeof ResizeObserver === 'undefined') return;
|
|
37
|
-
|
|
37
|
+
let hidden = list.clientWidth === 0;
|
|
38
|
+
const observer = new ResizeObserver(() => {
|
|
39
|
+
const wasHidden = hidden;
|
|
40
|
+
hidden = list.clientWidth === 0;
|
|
41
|
+
if (wasHidden && !hidden) list.scrollLeft = list.scrollWidth;
|
|
42
|
+
syncFade(list);
|
|
43
|
+
});
|
|
38
44
|
observer.observe(list);
|
|
39
45
|
return () => observer.disconnect();
|
|
40
46
|
}, []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.cjs","sources":["../../../src/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { useEffect, useLayoutEffect, useRef } from 'react'\nimport type { HTMLAttributes, PointerEvent, ReactNode } from 'react'\n\nimport cn from 'classnames'\n\nimport { IconChevronRight } from '../icons'\nimport { ActionElement, type ActionElementProps } from '../utils'\nimport styles from './Breadcrumbs.module.css'\n\nexport type BreadcrumbItem = ActionElementProps & {\n label: ReactNode\n children?: never\n}\n\nexport type BreadcrumbsProps = HTMLAttributes<HTMLElement> & {\n items: BreadcrumbItem[]\n}\n\nconst syncFade = (list: HTMLElement) => {\n list.toggleAttribute('data-fade-start', list.scrollLeft > 0)\n list.toggleAttribute(\n 'data-fade-end',\n list.scrollLeft < list.scrollWidth - list.clientWidth - 1,\n )\n}\n\nconst syncTitle = (e: PointerEvent<HTMLElement>) => {\n const el = (e.target as Element).closest('[data-label]')\n if (!el) return\n if (el.scrollWidth > el.clientWidth)\n el.setAttribute('title', el.textContent ?? '')\n else el.removeAttribute('title')\n}\n\nexport const Breadcrumbs = ({\n items,\n className,\n ...rest\n}: BreadcrumbsProps) => {\n const listRef = useRef<HTMLOListElement>(null)\n\n useLayoutEffect(() => {\n const list = listRef.current\n if (!list) return\n list.scrollLeft = list.scrollWidth\n syncFade(list)\n }, [items])\n\n useEffect(() => {\n const list = listRef.current\n if (!list || typeof ResizeObserver === 'undefined') return\n const observer = new ResizeObserver(() => syncFade(list))\n observer.observe(list)\n return () => observer.disconnect()\n }, [])\n\n return (\n <nav\n aria-label='Breadcrumb'\n className={cn(styles.nav, className)}\n {...rest}\n >\n <ol\n ref={listRef}\n className={styles.list}\n onScroll={(e) => syncFade(e.currentTarget)}\n onPointerOver={syncTitle}\n >\n {items.map(({ label, ...itemProps }, index) => {\n const labelAttrs =\n itemProps.title === undefined ? { 'data-label': '' } : {}\n if (index === items.length - 1) {\n return (\n <li key={index} className={styles.item}>\n <span\n aria-current='page'\n className={cn(styles.label, styles.current)}\n {...labelAttrs}\n >\n {label}\n </span>\n </li>\n )\n }\n const interactive =\n itemProps.href !== undefined || itemProps.onClick !== undefined\n return (\n <li key={index} className={styles.item}>\n {interactive ? (\n <ActionElement\n {...itemProps}\n {...labelAttrs}\n className={cn(styles.label, styles.link, itemProps.className)}\n >\n {label}\n </ActionElement>\n ) : (\n <span className={styles.label} {...labelAttrs}>\n {label}\n </span>\n )}\n <IconChevronRight\n className={styles.separator}\n aria-hidden='true'\n />\n </li>\n )\n })}\n </ol>\n </nav>\n )\n}\n"],"names":["syncFade","list","toggleAttribute","scrollLeft","scrollWidth","clientWidth","syncTitle","e","el","target","closest","setAttribute","textContent","removeAttribute","Breadcrumbs","_ref","items","className","rest","listRef","useRef","useLayoutEffect","current","useEffect","ResizeObserver","observer","observe","disconnect","_jsx","cn","styles","nav","children","ref","onScroll","currentTarget","onPointerOver","map","_ref2","index","label","itemProps","labelAttrs","title","undefined","length","item","interactive","href","onClick","_jsxs","ActionElement","link","IconChevronRight","separator"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,QAAQ,GAAIC,IAAiB,IAAK;EACtCA,IAAI,CAACC,eAAe,CAAC,iBAAiB,EAAED,IAAI,CAACE,UAAU,GAAG,CAAC,CAAC,CAAA;AAC5DF,EAAAA,IAAI,CAACC,eAAe,CAClB,eAAe,EACfD,IAAI,CAACE,UAAU,GAAGF,IAAI,CAACG,WAAW,GAAGH,IAAI,CAACI,WAAW,GAAG,CAC1D,CAAC,CAAA;AACH,CAAC,CAAA;AAED,MAAMC,SAAS,GAAIC,CAA4B,IAAK;EAClD,MAAMC,EAAE,GAAID,CAAC,CAACE,MAAM,CAAaC,OAAO,CAAC,cAAc,CAAC,CAAA;EACxD,IAAI,CAACF,EAAE,EAAE,OAAA;EACT,IAAIA,EAAE,CAACJ,WAAW,GAAGI,EAAE,CAACH,WAAW,EACjCG,EAAE,CAACG,YAAY,CAAC,OAAO,EAAEH,EAAE,CAACI,WAAW,IAAI,EAAE,CAAC,CAC3CJ,KAAAA,EAAE,CAACK,eAAe,CAAC,OAAO,CAAC,CAAA;AAClC,CAAC,CAAA;AAEYC,MAAAA,WAAW,GAAGC,IAAA,IAIH;EAAA,IAJI;IAC1BC,KAAK;IACLC,SAAS;IACT,GAAGC,IAAAA;AACa,GAAC,GAAAH,IAAA,CAAA;AACjB,EAAA,MAAMI,OAAO,GAAGC,YAAM,CAAmB,IAAI,CAAC,CAAA;AAE9CC,EAAAA,qBAAe,CAAC,MAAM;AACpB,IAAA,MAAMpB,IAAI,GAAGkB,OAAO,CAACG,OAAO,CAAA;IAC5B,IAAI,CAACrB,IAAI,EAAE,OAAA;AACXA,IAAAA,IAAI,CAACE,UAAU,GAAGF,IAAI,CAACG,WAAW,CAAA;IAClCJ,QAAQ,CAACC,IAAI,CAAC,CAAA;AAChB,GAAC,EAAE,CAACe,KAAK,CAAC,CAAC,CAAA;AAEXO,EAAAA,eAAS,CAAC,MAAM;AACd,IAAA,MAAMtB,IAAI,GAAGkB,OAAO,CAACG,OAAO,CAAA;AAC5B,IAAA,IAAI,CAACrB,IAAI,IAAI,OAAOuB,cAAc,KAAK,WAAW,EAAE,OAAA;
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.cjs","sources":["../../../src/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { useEffect, useLayoutEffect, useRef } from 'react'\nimport type { HTMLAttributes, PointerEvent, ReactNode } from 'react'\n\nimport cn from 'classnames'\n\nimport { IconChevronRight } from '../icons'\nimport { ActionElement, type ActionElementProps } from '../utils'\nimport styles from './Breadcrumbs.module.css'\n\nexport type BreadcrumbItem = ActionElementProps & {\n label: ReactNode\n children?: never\n}\n\nexport type BreadcrumbsProps = HTMLAttributes<HTMLElement> & {\n items: BreadcrumbItem[]\n}\n\nconst syncFade = (list: HTMLElement) => {\n list.toggleAttribute('data-fade-start', list.scrollLeft > 0)\n list.toggleAttribute(\n 'data-fade-end',\n list.scrollLeft < list.scrollWidth - list.clientWidth - 1,\n )\n}\n\nconst syncTitle = (e: PointerEvent<HTMLElement>) => {\n const el = (e.target as Element).closest('[data-label]')\n if (!el) return\n if (el.scrollWidth > el.clientWidth)\n el.setAttribute('title', el.textContent ?? '')\n else el.removeAttribute('title')\n}\n\nexport const Breadcrumbs = ({\n items,\n className,\n ...rest\n}: BreadcrumbsProps) => {\n const listRef = useRef<HTMLOListElement>(null)\n\n useLayoutEffect(() => {\n const list = listRef.current\n if (!list) return\n list.scrollLeft = list.scrollWidth\n syncFade(list)\n }, [items])\n\n useEffect(() => {\n const list = listRef.current\n if (!list || typeof ResizeObserver === 'undefined') return\n let hidden = list.clientWidth === 0\n const observer = new ResizeObserver(() => {\n const wasHidden = hidden\n hidden = list.clientWidth === 0\n if (wasHidden && !hidden) list.scrollLeft = list.scrollWidth\n syncFade(list)\n })\n observer.observe(list)\n return () => observer.disconnect()\n }, [])\n\n return (\n <nav\n aria-label='Breadcrumb'\n className={cn(styles.nav, className)}\n {...rest}\n >\n <ol\n ref={listRef}\n className={styles.list}\n onScroll={(e) => syncFade(e.currentTarget)}\n onPointerOver={syncTitle}\n >\n {items.map(({ label, ...itemProps }, index) => {\n const labelAttrs =\n itemProps.title === undefined ? { 'data-label': '' } : {}\n if (index === items.length - 1) {\n return (\n <li key={index} className={styles.item}>\n <span\n aria-current='page'\n className={cn(styles.label, styles.current)}\n {...labelAttrs}\n >\n {label}\n </span>\n </li>\n )\n }\n const interactive =\n itemProps.href !== undefined || itemProps.onClick !== undefined\n return (\n <li key={index} className={styles.item}>\n {interactive ? (\n <ActionElement\n {...itemProps}\n {...labelAttrs}\n className={cn(styles.label, styles.link, itemProps.className)}\n >\n {label}\n </ActionElement>\n ) : (\n <span className={styles.label} {...labelAttrs}>\n {label}\n </span>\n )}\n <IconChevronRight\n className={styles.separator}\n aria-hidden='true'\n />\n </li>\n )\n })}\n </ol>\n </nav>\n )\n}\n"],"names":["syncFade","list","toggleAttribute","scrollLeft","scrollWidth","clientWidth","syncTitle","e","el","target","closest","setAttribute","textContent","removeAttribute","Breadcrumbs","_ref","items","className","rest","listRef","useRef","useLayoutEffect","current","useEffect","ResizeObserver","hidden","observer","wasHidden","observe","disconnect","_jsx","cn","styles","nav","children","ref","onScroll","currentTarget","onPointerOver","map","_ref2","index","label","itemProps","labelAttrs","title","undefined","length","item","interactive","href","onClick","_jsxs","ActionElement","link","IconChevronRight","separator"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,QAAQ,GAAIC,IAAiB,IAAK;EACtCA,IAAI,CAACC,eAAe,CAAC,iBAAiB,EAAED,IAAI,CAACE,UAAU,GAAG,CAAC,CAAC,CAAA;AAC5DF,EAAAA,IAAI,CAACC,eAAe,CAClB,eAAe,EACfD,IAAI,CAACE,UAAU,GAAGF,IAAI,CAACG,WAAW,GAAGH,IAAI,CAACI,WA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21RE","divided":"DataList-module_divided__y48ZD","row":"DataList-module_row__d5UUl","mainRow":"DataList-module_mainRow__eAAA3","labelGroup":"DataList-module_labelGroup__-vCWZ","leadingIcon":"DataList-module_leadingIcon__6L9A9","label":"DataList-module_label__xl6By","
|
|
3
|
+
const styles = {"card":"DataList-module_card__k21RE","divided":"DataList-module_divided__y48ZD","row":"DataList-module_row__d5UUl","mainRow":"DataList-module_mainRow__eAAA3","labelGroup":"DataList-module_labelGroup__-vCWZ","leadingIcon":"DataList-module_leadingIcon__6L9A9","label":"DataList-module_label__xl6By","infoFaint":"DataList-module_infoFaint__lq3WZ","value":"DataList-module_value__oGp7D","valueOld":"DataList-module_valueOld__FuEV2","valueArrow":"DataList-module_valueArrow__7RRSA","descriptionRow":"DataList-module_descriptionRow__oZCWf","description":"DataList-module_description__biMHO"};
|
|
4
4
|
|
|
5
5
|
module.exports = styles;
|
|
6
6
|
//# sourceMappingURL=DataList.module.css.cjs.map
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const cn = require('classnames');
|
|
6
6
|
const DataList_module = require('./DataList.module.css.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const
|
|
9
|
-
const IconInfo = require('../icons/components/base/IconInfo.cjs');
|
|
8
|
+
const InfoTooltip = require('../info-tooltip/InfoTooltip.cjs');
|
|
10
9
|
|
|
11
10
|
const isChangeValue = value => typeof value === 'object' && value !== null && 'from' in value && 'to' in value;
|
|
12
11
|
const DataListRow = _ref => {
|
|
@@ -38,12 +37,9 @@ const DataListRow = _ref => {
|
|
|
38
37
|
className: DataList_module.label,
|
|
39
38
|
"data-testid": dataTestId?.label,
|
|
40
39
|
children: label
|
|
41
|
-
}), info ? /*#__PURE__*/jsxRuntime.jsx(
|
|
40
|
+
}), info ? /*#__PURE__*/jsxRuntime.jsx(InfoTooltip.InfoTooltip, {
|
|
42
41
|
content: info,
|
|
43
|
-
className: cn(
|
|
44
|
-
children: /*#__PURE__*/jsxRuntime.jsx(IconInfo.IconInfo, {
|
|
45
|
-
className: DataList_module.infoIcon
|
|
46
|
-
})
|
|
42
|
+
className: cn(infoFaint && DataList_module.infoFaint)
|
|
47
43
|
}) : null]
|
|
48
44
|
}), isChangeValue(value) ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
49
45
|
className: DataList_module.value,
|
|
@@ -69,12 +65,9 @@ const DataListRow = _ref => {
|
|
|
69
65
|
className: DataList_module.description,
|
|
70
66
|
"data-testid": dataTestId?.description,
|
|
71
67
|
children: description
|
|
72
|
-
}), descriptionInfo ? /*#__PURE__*/jsxRuntime.jsx(
|
|
68
|
+
}), descriptionInfo ? /*#__PURE__*/jsxRuntime.jsx(InfoTooltip.InfoTooltip, {
|
|
73
69
|
content: descriptionInfo,
|
|
74
|
-
|
|
75
|
-
children: /*#__PURE__*/jsxRuntime.jsx(IconInfo.IconInfo, {
|
|
76
|
-
className: DataList_module.descriptionIcon
|
|
77
|
-
})
|
|
70
|
+
tone: "tertiary"
|
|
78
71
|
}) : null]
|
|
79
72
|
}) : null]
|
|
80
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataListRow.cjs","sources":["../../../src/data-list/DataListRow.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react'\n\nimport
|
|
1
|
+
{"version":3,"file":"DataListRow.cjs","sources":["../../../src/data-list/DataListRow.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react'\n\nimport cn from 'classnames'\nimport { InfoTooltip } from '../info-tooltip'\n\nimport styles from './DataList.module.css'\n\nexport type DetailRowValue = ReactNode | { from: ReactNode; to: ReactNode }\n\nexport type DataListRowDataTestId = {\n root?: string\n label?: string\n value?: string\n icon?: string\n description?: string\n}\n\nexport type DetailRowProps = ComponentPropsWithoutRef<'div'> & {\n label: ReactNode\n value: DetailRowValue\n icon?: ReactNode\n info?: ReactNode\n infoFaint?: boolean\n description?: ReactNode\n descriptionInfo?: ReactNode\n dataTestId?: DataListRowDataTestId\n}\n\nconst isChangeValue = (\n value: DetailRowValue,\n): value is { from: ReactNode; to: ReactNode } =>\n typeof value === 'object' &&\n value !== null &&\n 'from' in value &&\n 'to' in value\n\nexport const DataListRow = ({\n label,\n value,\n icon,\n info,\n infoFaint = false,\n description,\n descriptionInfo,\n className,\n dataTestId,\n ...rest\n}: DetailRowProps) => (\n <div\n className={cn(styles.row, className)}\n data-testid={dataTestId?.root}\n {...rest}\n >\n <span className={styles.mainRow}>\n <span className={styles.labelGroup}>\n {icon ? (\n <span className={styles.leadingIcon} data-testid={dataTestId?.icon}>\n {icon}\n </span>\n ) : null}\n <span className={styles.label} data-testid={dataTestId?.label}>\n {label}\n </span>\n {info ? (\n <InfoTooltip\n content={info}\n className={cn(infoFaint && styles.infoFaint)}\n />\n ) : null}\n </span>\n {isChangeValue(value) ? (\n <span className={styles.value} data-testid={dataTestId?.value}>\n <span className={styles.valueOld}>{value.from}</span>\n <span className={styles.valueArrow} aria-hidden='true'>\n →\n </span>\n <span>{value.to}</span>\n </span>\n ) : (\n <span className={styles.value} data-testid={dataTestId?.value}>\n {value}\n </span>\n )}\n </span>\n {description ? (\n <span className={styles.descriptionRow}>\n <span\n className={styles.description}\n data-testid={dataTestId?.description}\n >\n {description}\n </span>\n {descriptionInfo ? (\n <InfoTooltip content={descriptionInfo} tone='tertiary' />\n ) : null}\n </span>\n ) : null}\n </div>\n)\n"],"names":["isChangeValue","value","DataListRow","_ref","label","icon","info","infoFaint","description","descriptionInfo","className","dataTestId","rest","_jsxs","cn","styles","row","root","children","mainRow","labelGroup","_jsx","leadingIcon","InfoTooltip","content","valueOld","from","valueArrow","to","descriptionRow","tone"],"mappings":";;;;;;;;;AA4BA,MAAMA,aAAa,GACjBC,KAAqB,IAErB,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,KAAK,IAAI,IACd,MAAM,IAAIA,KAAK,IACf,IAAI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|
|
|
178
178
|
const IconButton = require('./icon-button/IconButton.cjs');
|
|
179
179
|
const CloseButton = require('./icon-button/CloseButton.cjs');
|
|
180
180
|
const Identicon = require('./identicon/Identicon.cjs');
|
|
181
|
+
const InfoTooltip = require('./info-tooltip/InfoTooltip.cjs');
|
|
181
182
|
const Input = require('./input/Input.cjs');
|
|
182
183
|
const LinkProvider = require('./link-provider/LinkProvider.cjs');
|
|
183
184
|
const Logo = require('./logo/Logo.cjs');
|
|
@@ -188,7 +189,6 @@ const Notification = require('./notification/Notification.cjs');
|
|
|
188
189
|
const Layout = require('./page-layout/Layout.cjs');
|
|
189
190
|
const Main = require('./page-layout/Main.cjs');
|
|
190
191
|
const PageContent = require('./page-layout/PageContent.cjs');
|
|
191
|
-
const MobilePageTitle = require('./page-layout/MobilePageTitle.cjs');
|
|
192
192
|
const Pagination = require('./pagination/Pagination.cjs');
|
|
193
193
|
const Popover = require('./popover/Popover.cjs');
|
|
194
194
|
const RadioButton = require('./radio-button/RadioButton.cjs');
|
|
@@ -206,7 +206,6 @@ const SidebarLayout = require('./sidebar/SidebarLayout.cjs');
|
|
|
206
206
|
const SidebarToggle = require('./sidebar/SidebarToggle.cjs');
|
|
207
207
|
const useSidebarDrawer = require('./sidebar/useSidebarDrawer.cjs');
|
|
208
208
|
const SidebarContext = require('./sidebar/SidebarContext.cjs');
|
|
209
|
-
const SidebarHeaderStart = require('./sidebar/SidebarHeaderStart.cjs');
|
|
210
209
|
const Skeleton = require('./skeleton/Skeleton.cjs');
|
|
211
210
|
const SkipLink = require('./skip-link/SkipLink.cjs');
|
|
212
211
|
const Slider = require('./slider/Slider.cjs');
|
|
@@ -225,7 +224,8 @@ const Tooltip = require('./tooltip/Tooltip.cjs');
|
|
|
225
224
|
const TxStatus = require('./tx-status/TxStatus.cjs');
|
|
226
225
|
const Typography = require('./typography/Typography.cjs');
|
|
227
226
|
|
|
228
|
-
|
|
227
|
+
/** Unstyled in app-ui (relies on `--lido-ui-*` tokens); prefer `ThemeSwitcher`. */
|
|
228
|
+
const ThemeToggler = lidoSharedUi.ThemeToggler;
|
|
229
229
|
|
|
230
230
|
exports.TokenIcon = TokenIcon.TokenIcon;
|
|
231
231
|
exports.isTokenIcon = TokenIcon.isTokenIcon;
|
|
@@ -403,6 +403,7 @@ exports.Hidden = Hidden.Hidden;
|
|
|
403
403
|
exports.IconButton = IconButton.IconButton;
|
|
404
404
|
exports.CloseButton = CloseButton.CloseButton;
|
|
405
405
|
exports.Identicon = Identicon.Identicon;
|
|
406
|
+
exports.InfoTooltip = InfoTooltip.InfoTooltip;
|
|
406
407
|
exports.Input = Input.Input;
|
|
407
408
|
exports.LinkProvider = LinkProvider.LinkProvider;
|
|
408
409
|
exports.Logo = Logo.Logo;
|
|
@@ -413,7 +414,6 @@ exports.Notification = Notification.Notification;
|
|
|
413
414
|
exports.Layout = Layout.Layout;
|
|
414
415
|
exports.Main = Main.Main;
|
|
415
416
|
exports.PageContent = PageContent.PageContent;
|
|
416
|
-
exports.MobilePageTitle = MobilePageTitle.MobilePageTitle;
|
|
417
417
|
exports.Pagination = Pagination.Pagination;
|
|
418
418
|
exports.Popover = Popover.Popover;
|
|
419
419
|
exports.RadioButton = RadioButton.RadioButton;
|
|
@@ -431,7 +431,6 @@ exports.SidebarLayout = SidebarLayout.SidebarLayout;
|
|
|
431
431
|
exports.SidebarToggle = SidebarToggle.SidebarToggle;
|
|
432
432
|
exports.useSidebarDrawer = useSidebarDrawer.useSidebarDrawer;
|
|
433
433
|
exports.useSidebar = SidebarContext.useSidebar;
|
|
434
|
-
exports.SidebarHeaderStart = SidebarHeaderStart.SidebarHeaderStart;
|
|
435
434
|
exports.Skeleton = Skeleton.Skeleton;
|
|
436
435
|
exports.SkipLink = SkipLink.SkipLink;
|
|
437
436
|
exports.Slider = Slider.Slider;
|
|
@@ -456,6 +455,7 @@ exports.H1 = Typography.H1;
|
|
|
456
455
|
exports.H2 = Typography.H2;
|
|
457
456
|
exports.H3 = Typography.H3;
|
|
458
457
|
exports.Typography = Typography.Typography;
|
|
458
|
+
exports.ThemeToggler = ThemeToggler;
|
|
459
459
|
Object.keys(lidoSharedUi).forEach(k => {
|
|
460
460
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
461
461
|
enumerable: true,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import { ThemeToggler as SharedThemeToggler } from '@lidofinance/lido-shared-ui'\n\nexport * from './icons'\n\nexport * from './accordion'\nexport * from './address'\nexport * from './address-button'\nexport * from './badge'\nexport * from './banner'\nexport * from './breadcrumbs'\nexport * from './button'\nexport * from './card'\nexport * from './checkbox'\nexport * from './copy'\nexport * from './counter'\nexport * from './data-list'\nexport * from './disclaimer'\nexport * from './divider'\nexport * from './error-page'\nexport * from './footer'\nexport * from './grid'\nexport * from './header'\nexport * from './hex'\nexport * from './hidden'\nexport * from './icon-button'\nexport * from './identicon'\nexport * from './info-tooltip'\nexport * from './input'\nexport * from './link-provider'\nexport * from './logo'\nexport * from './message-box'\nexport * from './modal'\nexport * from './nav-link'\nexport * from './notification'\nexport * from './page-layout'\nexport * from './pagination'\nexport * from './popover'\nexport * from './radio-button'\nexport * from './rich-input'\nexport * from './section-title'\nexport * from './segmented-control'\nexport * from './sidebar'\nexport * from './skeleton'\nexport * from './skip-link'\nexport * from './slider'\nexport * from './small-card'\nexport * from './stack'\nexport * from './stat-item'\nexport * from './switch'\nexport * from './tabs'\nexport * from './tag'\nexport * from './text-link'\nexport * from './theme-switcher'\nexport * from './token-amount'\nexport * from './token-selector'\nexport * from './tooltip'\nexport * from './tx-status'\nexport * from './typography'\nexport type { Breakpoint, Responsive, Space } from './utils'\n\n// Everything lido-shared-ui exposes is re-exported, so app products get the\n// same non-production banner and theming primitives as the landing. Their\n// styles come in through src/styles/global.css.\nexport * from '@lidofinance/lido-shared-ui'\n\n/** Unstyled in app-ui (relies on `--lido-ui-*` tokens); prefer `ThemeSwitcher`. */\nexport const ThemeToggler = SharedThemeToggler\n"],"names":["ThemeToggler","SharedThemeToggler"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA;AACO,MAAMA,YAAY,GAAGC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|