@dxos/react-ui 0.9.0 → 0.9.1-main.c7dcc2e112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/lib/browser/{chunk-7JFD5ZHZ.mjs → chunk-F3PLXTDA.mjs} +21 -25
  2. package/dist/lib/browser/{chunk-7JFD5ZHZ.mjs.map → chunk-F3PLXTDA.mjs.map} +3 -3
  3. package/dist/lib/browser/{chunk-5SPBSIWS.mjs → chunk-HFJYTGHU.mjs} +11 -1
  4. package/dist/lib/browser/chunk-HFJYTGHU.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +1042 -856
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/testing/index.mjs +5 -5
  9. package/dist/lib/browser/testing/index.mjs.map +2 -2
  10. package/dist/lib/browser/translations.mjs +1 -1
  11. package/dist/lib/node-esm/{chunk-TTEL2FP2.mjs → chunk-LLVUYLAM.mjs} +21 -25
  12. package/dist/lib/node-esm/{chunk-TTEL2FP2.mjs.map → chunk-LLVUYLAM.mjs.map} +3 -3
  13. package/dist/lib/node-esm/{chunk-FPVTVXND.mjs → chunk-OJYUPUCY.mjs} +11 -1
  14. package/dist/lib/node-esm/chunk-OJYUPUCY.mjs.map +7 -0
  15. package/dist/lib/node-esm/index.mjs +1042 -856
  16. package/dist/lib/node-esm/index.mjs.map +4 -4
  17. package/dist/lib/node-esm/meta.json +1 -1
  18. package/dist/lib/node-esm/testing/index.mjs +5 -5
  19. package/dist/lib/node-esm/testing/index.mjs.map +2 -2
  20. package/dist/lib/node-esm/translations.mjs +1 -1
  21. package/dist/types/src/components/Button/Button.d.ts +2 -0
  22. package/dist/types/src/components/Button/Button.d.ts.map +1 -1
  23. package/dist/types/src/components/Button/IconButton.d.ts +0 -1
  24. package/dist/types/src/components/Button/IconButton.d.ts.map +1 -1
  25. package/dist/types/src/components/Button/IconButton.stories.d.ts +34 -0
  26. package/dist/types/src/components/Button/IconButton.stories.d.ts.map +1 -1
  27. package/dist/types/src/components/Button/SystemIconButton.d.ts +20 -0
  28. package/dist/types/src/components/Button/SystemIconButton.d.ts.map +1 -0
  29. package/dist/types/src/components/Button/ToggleIconButton.d.ts +15 -0
  30. package/dist/types/src/components/Button/ToggleIconButton.d.ts.map +1 -0
  31. package/dist/types/src/components/Button/index.d.ts +2 -0
  32. package/dist/types/src/components/Button/index.d.ts.map +1 -1
  33. package/dist/types/src/components/Card/Card.d.ts +25 -19
  34. package/dist/types/src/components/Card/Card.d.ts.map +1 -1
  35. package/dist/types/src/components/Card/Card.stories.d.ts +1 -1
  36. package/dist/types/src/components/Card/Card.stories.d.ts.map +1 -1
  37. package/dist/types/src/components/Card/Card.theme.d.ts.map +1 -1
  38. package/dist/types/src/components/Clipboard/index.d.ts +1 -0
  39. package/dist/types/src/components/Clipboard/index.d.ts.map +1 -1
  40. package/dist/types/src/components/Column/Column.d.ts +19 -1
  41. package/dist/types/src/components/Column/Column.d.ts.map +1 -1
  42. package/dist/types/src/components/Column/Column.theme.d.ts +8 -0
  43. package/dist/types/src/components/Column/Column.theme.d.ts.map +1 -1
  44. package/dist/types/src/components/Input/constants.d.ts +3 -0
  45. package/dist/types/src/components/Input/constants.d.ts.map +1 -1
  46. package/dist/types/src/components/Message/Message.theme.d.ts.map +1 -1
  47. package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
  48. package/dist/types/src/components/Toast/Toast.theme.d.ts.map +1 -1
  49. package/dist/types/src/components/Tooltip/TextTooltip.d.ts +19 -0
  50. package/dist/types/src/components/Tooltip/TextTooltip.d.ts.map +1 -0
  51. package/dist/types/src/components/Tooltip/index.d.ts +1 -0
  52. package/dist/types/src/components/Tooltip/index.d.ts.map +1 -1
  53. package/dist/types/src/testing/Loading.d.ts.map +1 -1
  54. package/dist/types/src/translations.d.ts +10 -0
  55. package/dist/types/src/translations.d.ts.map +1 -1
  56. package/dist/types/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +16 -16
  58. package/src/components/Button/Button.tsx +23 -2
  59. package/src/components/Button/IconButton.stories.tsx +81 -1
  60. package/src/components/Button/IconButton.tsx +2 -4
  61. package/src/components/Button/SystemIconButton.tsx +153 -0
  62. package/src/components/Button/ToggleIconButton.tsx +32 -0
  63. package/src/components/Button/index.ts +2 -0
  64. package/src/components/Card/Card.stories.tsx +69 -27
  65. package/src/components/Card/Card.theme.ts +27 -9
  66. package/src/components/Card/Card.tsx +165 -88
  67. package/src/components/Column/Column.theme.ts +32 -4
  68. package/src/components/Column/Column.tsx +36 -1
  69. package/src/components/Input/constants.ts +3 -0
  70. package/src/components/Message/Message.theme.ts +0 -10
  71. package/src/components/Message/Message.tsx +4 -4
  72. package/src/components/Popover/Popover.theme.ts +1 -1
  73. package/src/components/Toast/Toast.theme.ts +0 -6
  74. package/src/components/Toast/Toast.tsx +11 -10
  75. package/src/components/Tooltip/TextTooltip.tsx +54 -0
  76. package/src/components/Tooltip/index.ts +1 -0
  77. package/src/testing/Loading.tsx +2 -1
  78. package/src/testing/decorators/withLayout.tsx +2 -2
  79. package/src/translations.ts +10 -0
  80. package/dist/lib/browser/chunk-5SPBSIWS.mjs.map +0 -7
  81. package/dist/lib/node-esm/chunk-FPVTVXND.mjs.map +0 -7
@@ -5,7 +5,7 @@ import {
5
5
  Tooltip,
6
6
  defaultTx,
7
7
  parseCaptureOwnerStack
8
- } from "../chunk-TTEL2FP2.mjs";
8
+ } from "../chunk-LLVUYLAM.mjs";
9
9
 
10
10
  // src/testing/decorators/withLayout.tsx
11
11
  import React, { memo } from "react";
@@ -33,12 +33,12 @@ var layouts = {
33
33
  centered: ({ classNames, children }) => /* @__PURE__ */ React.createElement("div", {
34
34
  className: mx("fixed inset-0 grid overflow-hidden place-items-center bg-black")
35
35
  }, /* @__PURE__ */ React.createElement("div", {
36
- className: mx("flex flex-col bg-base-surface", classNames)
36
+ className: mx("flex flex-col dx-attention-surface", classNames)
37
37
  }, children)),
38
38
  column: ({ classNames, children }) => /* @__PURE__ */ React.createElement("div", {
39
39
  className: "fixed inset-0 flex overflow-hidden justify-center bg-black"
40
40
  }, /* @__PURE__ */ React.createElement("div", {
41
- className: mx("flex flex-col w-[40rem] bg-base-surface", classNames)
41
+ className: mx("flex flex-col w-[40rem] dx-attention-surface", classNames)
42
42
  }, children))
43
43
  };
44
44
 
@@ -110,9 +110,9 @@ var Loading = ({ data }) => {
110
110
  return () => clearTimeout(t);
111
111
  }, []);
112
112
  return /* @__PURE__ */ React4.createElement("div", {
113
- className: "w-full p-2"
113
+ className: "grid p-2"
114
114
  }, /* @__PURE__ */ React4.createElement("div", {
115
- className: mx3("flex flex-col w-full p-2 border-2 border-teal-500 rounded-md", "opacity-0 transition delay-1000 duration-1000", visible && "opacity-100")
115
+ className: mx3("flex flex-col w-full p-2 border-2 border-teal-500 rounded-md", "opacity-0 transition delay-1000 duration-1000", "overflow-auto", visible && "opacity-100")
116
116
  }, /* @__PURE__ */ React4.createElement("h2", {
117
117
  className: "uppercase capitalize text-xs"
118
118
  }, "Loading State"), /* @__PURE__ */ React4.createElement("pre", {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/testing/decorators/withLayout.tsx", "../../../../src/testing/decorators/withLayoutVariants.tsx", "../../../../src/testing/decorators/withTheme.tsx", "../../../../src/testing/Loading.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type FC, type PropsWithChildren, memo } from 'react';\n\nimport { type ClassNameValue, type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type ContainerProps = ThemedClassName<PropsWithChildren>;\n\nexport type ContainerType = 'default' | 'fullscreen' | 'centered' | 'column';\n\nexport type WithLayoutProps =\n | FC<ContainerProps>\n | {\n classNames?: ClassNameValue;\n layout?: ContainerType;\n scroll?: boolean;\n };\n\n/**\n * Adds layout container.\n */\nexport const withLayout =\n (props: WithLayoutProps = {}): Decorator =>\n (Story) => {\n // Prevent re-rendering of the story.\n const MemoizedStory = memo(Story);\n if (typeof props === 'function') {\n const Container = props;\n return (\n <Container>\n <MemoizedStory />\n </Container>\n );\n } else {\n const { layout = 'default', classNames, scroll } = props;\n const Container = layouts[layout] ?? layouts.fullscreen;\n return (\n <Container classNames={mx(scroll ? 'overflow-y-auto' : 'overflow-hidden', classNames)}>\n <MemoizedStory />\n </Container>\n );\n }\n };\n\nconst layouts: Record<ContainerType, FC<ContainerProps>> = {\n default: ({ classNames, children }: ContainerProps) => <div className={mx('p-4', classNames)}>{children}</div>,\n\n fullscreen: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 flex overflow-hidden bg-black', classNames)}>{children}</div>\n ),\n\n centered: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 grid overflow-hidden place-items-center bg-black')}>\n <div className={mx('flex flex-col bg-base-surface', classNames)}>{children}</div>\n </div>\n ),\n\n column: ({ classNames, children }: ContainerProps) => (\n <div className='fixed inset-0 flex overflow-hidden justify-center bg-black'>\n <div className={mx('flex flex-col w-[40rem] bg-base-surface', classNames)}>{children}</div>\n </div>\n ),\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type ComponentType, type PropsWithChildren } from 'react';\n\nimport { mx, surfaceShadow } from '@dxos/ui-theme';\nimport { type Density, type Elevation } from '@dxos/ui-types';\n\ntype Config = {\n elevations?: { elevation: Elevation; surface?: string }[];\n densities?: Density[];\n};\n\nconst Container = ({ children, elevation, surface }: PropsWithChildren<{ elevation: Elevation; surface?: string }>) => (\n <div className={mx('p-4 rounded-sm', surface, surfaceShadow({ elevation }))}>{children}</div>\n);\n\nconst Panel = ({\n Story,\n elevations,\n densities,\n className,\n}: { Story: ComponentType } & Config & { className?: string }) => {\n return (\n <div className={mx('flex flex-col h-full p-8 gap-8', className)}>\n {elevations?.map(({ elevation, surface }) =>\n densities?.map((density) => (\n <Container key={`${elevation}--${density}`} surface={surface} elevation={elevation}>\n <Story />\n </Container>\n )),\n )}\n </div>\n );\n};\n\nexport const withLayoutVariants = ({\n elevations = [\n { elevation: 'dialog', surface: 'bg-modal-surface' },\n { elevation: 'positioned', surface: 'bg-card-surface' },\n { elevation: 'base', surface: 'bg-base-surface' },\n ],\n densities = ['md'],\n}: Config = {}): Decorator => {\n return (Story) => <Panel Story={Story} elevations={elevations} densities={densities} />;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React from 'react';\nimport { I18nProvider } from 'react-aria-components';\n\nimport { type ThemeMode } from '@dxos/ui-types';\n\nimport { Tooltip } from '../../components';\nimport { type ThemeContextValue, ThemeProvider } from '../../primitives';\nimport { defaultTx } from '../../theme';\n\n/**\n * Adds theme decorator.\n *\n * `I18nProvider` is included so react-aria-components-backed widgets (DateField, Calendar, …)\n * have a guaranteed locale in headless test environments where `navigator.language` may be\n * empty.\n */\nexport const withTheme =\n ({ tx = defaultTx, noCache, platform }: Partial<ThemeContextValue> = {}): Decorator =>\n (Story, context) => {\n const {\n globals: { theme },\n parameters: { translations },\n } = context;\n\n return (\n <I18nProvider locale='en-US'>\n <ThemeProvider\n tx={tx}\n themeMode={(theme as ThemeMode) || 'dark'}\n resourceExtensions={translations}\n noCache={noCache}\n platform={platform}\n >\n <Tooltip.Provider>\n <Story />\n </Tooltip.Provider>\n </ThemeProvider>\n </I18nProvider>\n );\n };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { captureOwnerStack, useEffect, useState } from 'react';\n\nimport { mx } from '@dxos/ui-theme';\nimport { safeStringify } from '@dxos/util';\n\nimport { ErrorStack, parseCaptureOwnerStack } from '../components';\n\nexport type LoadingProps = { data?: any };\n\n/**\n * Storybook loading component.\n */\nexport const Loading = ({ data }: LoadingProps) => {\n const [visible, setVisible] = useState(false);\n const ownerFrames = parseCaptureOwnerStack(captureOwnerStack());\n\n useEffect(() => {\n const t = setTimeout(() => setVisible(true), 500);\n return () => clearTimeout(t);\n }, []);\n\n return (\n <div className='w-full p-2'>\n <div\n className={mx(\n 'flex flex-col w-full p-2 border-2 border-teal-500 rounded-md',\n 'opacity-0 transition delay-1000 duration-1000',\n visible && 'opacity-100',\n )}\n >\n <h2 className='uppercase capitalize text-xs'>Loading State</h2>\n <pre className='text-sm text-description'>{safeStringify(data, undefined, 2)}</pre>\n\n <h3 className='uppercase capitalize text-xs mt-2'>Owner stack</h3>\n {ownerFrames && ownerFrames.length > 0 ? (\n <ErrorStack frames={ownerFrames} />\n ) : (\n <p className='text-xs text-subdued'>No owner stack (production build or unsupported context).</p>\n )}\n </div>\n </div>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;AAKA,OAAOA,SAA0CC,YAAY;AAG7D,SAASC,UAAU;AAiBZ,IAAMC,aACX,CAACC,QAAyB,CAAC,MAC3B,CAACC,UAAAA;AAEC,QAAMC,gBAAgBL,qBAAKI,KAAAA;AAC3B,MAAI,OAAOD,UAAU,YAAY;AAC/B,UAAMG,aAAYH;AAClB,WACE,sBAAA,cAACG,YAAAA,MACC,sBAAA,cAACD,eAAAA,IAAAA,CAAAA;EAGP,OAAO;AACL,UAAM,EAAEE,SAAS,WAAWC,YAAYC,OAAM,IAAKN;AACnD,UAAMG,aAAYI,QAAQH,MAAAA,KAAWG,QAAQC;AAC7C,WACE,sBAAA,cAACL,YAAAA;MAAUE,YAAYP,GAAGQ,SAAS,oBAAoB,mBAAmBD,UAAAA;OACxE,sBAAA,cAACH,eAAAA,IAAAA,CAAAA;EAGP;AACF;AAEF,IAAMK,UAAqD;EACzDE,SAAS,CAAC,EAAEJ,YAAYK,SAAQ,MAAuB,sBAAA,cAACC,OAAAA;IAAIC,WAAWd,GAAG,OAAOO,UAAAA;KAAcK,QAAAA;EAE/FF,YAAY,CAAC,EAAEH,YAAYK,SAAQ,MACjC,sBAAA,cAACC,OAAAA;IAAIC,WAAWd,GAAG,+CAA+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GACjDT,eAAeA,YAAYgB,SAAS,IACnC,gBAAAT,OAAA,cAACU,YAAAA;IAAWC,QAAQlB;OAEpB,gBAAAO,OAAA,cAACY,KAAAA;IAAEV,WAAU;KAAuB,2DAAA,CAAA,CAAA;AAK9C;",
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type FC, type PropsWithChildren, memo } from 'react';\n\nimport { type ClassNameValue, type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type ContainerProps = ThemedClassName<PropsWithChildren>;\n\nexport type ContainerType = 'default' | 'fullscreen' | 'centered' | 'column';\n\nexport type WithLayoutProps =\n | FC<ContainerProps>\n | {\n classNames?: ClassNameValue;\n layout?: ContainerType;\n scroll?: boolean;\n };\n\n/**\n * Adds layout container.\n */\nexport const withLayout =\n (props: WithLayoutProps = {}): Decorator =>\n (Story) => {\n // Prevent re-rendering of the story.\n const MemoizedStory = memo(Story);\n if (typeof props === 'function') {\n const Container = props;\n return (\n <Container>\n <MemoizedStory />\n </Container>\n );\n } else {\n const { layout = 'default', classNames, scroll } = props;\n const Container = layouts[layout] ?? layouts.fullscreen;\n return (\n <Container classNames={mx(scroll ? 'overflow-y-auto' : 'overflow-hidden', classNames)}>\n <MemoizedStory />\n </Container>\n );\n }\n };\n\nconst layouts: Record<ContainerType, FC<ContainerProps>> = {\n default: ({ classNames, children }: ContainerProps) => <div className={mx('p-4', classNames)}>{children}</div>,\n\n fullscreen: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 flex overflow-hidden bg-black', classNames)}>{children}</div>\n ),\n\n centered: ({ classNames, children }: ContainerProps) => (\n <div className={mx('fixed inset-0 grid overflow-hidden place-items-center bg-black')}>\n <div className={mx('flex flex-col dx-attention-surface', classNames)}>{children}</div>\n </div>\n ),\n\n column: ({ classNames, children }: ContainerProps) => (\n <div className='fixed inset-0 flex overflow-hidden justify-center bg-black'>\n <div className={mx('flex flex-col w-[40rem] dx-attention-surface', classNames)}>{children}</div>\n </div>\n ),\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type ComponentType, type PropsWithChildren } from 'react';\n\nimport { mx, surfaceShadow } from '@dxos/ui-theme';\nimport { type Density, type Elevation } from '@dxos/ui-types';\n\ntype Config = {\n elevations?: { elevation: Elevation; surface?: string }[];\n densities?: Density[];\n};\n\nconst Container = ({ children, elevation, surface }: PropsWithChildren<{ elevation: Elevation; surface?: string }>) => (\n <div className={mx('p-4 rounded-sm', surface, surfaceShadow({ elevation }))}>{children}</div>\n);\n\nconst Panel = ({\n Story,\n elevations,\n densities,\n className,\n}: { Story: ComponentType } & Config & { className?: string }) => {\n return (\n <div className={mx('flex flex-col h-full p-8 gap-8', className)}>\n {elevations?.map(({ elevation, surface }) =>\n densities?.map((density) => (\n <Container key={`${elevation}--${density}`} surface={surface} elevation={elevation}>\n <Story />\n </Container>\n )),\n )}\n </div>\n );\n};\n\nexport const withLayoutVariants = ({\n elevations = [\n { elevation: 'dialog', surface: 'bg-modal-surface' },\n { elevation: 'positioned', surface: 'bg-card-surface' },\n { elevation: 'base', surface: 'bg-base-surface' },\n ],\n densities = ['md'],\n}: Config = {}): Decorator => {\n return (Story) => <Panel Story={Story} elevations={elevations} densities={densities} />;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React from 'react';\nimport { I18nProvider } from 'react-aria-components';\n\nimport { type ThemeMode } from '@dxos/ui-types';\n\nimport { Tooltip } from '../../components';\nimport { type ThemeContextValue, ThemeProvider } from '../../primitives';\nimport { defaultTx } from '../../theme';\n\n/**\n * Adds theme decorator.\n *\n * `I18nProvider` is included so react-aria-components-backed widgets (DateField, Calendar, …)\n * have a guaranteed locale in headless test environments where `navigator.language` may be\n * empty.\n */\nexport const withTheme =\n ({ tx = defaultTx, noCache, platform }: Partial<ThemeContextValue> = {}): Decorator =>\n (Story, context) => {\n const {\n globals: { theme },\n parameters: { translations },\n } = context;\n\n return (\n <I18nProvider locale='en-US'>\n <ThemeProvider\n tx={tx}\n themeMode={(theme as ThemeMode) || 'dark'}\n resourceExtensions={translations}\n noCache={noCache}\n platform={platform}\n >\n <Tooltip.Provider>\n <Story />\n </Tooltip.Provider>\n </ThemeProvider>\n </I18nProvider>\n );\n };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { captureOwnerStack, useEffect, useState } from 'react';\n\nimport { mx } from '@dxos/ui-theme';\nimport { safeStringify } from '@dxos/util';\n\nimport { ErrorStack, parseCaptureOwnerStack } from '../components';\n\nexport type LoadingProps = { data?: any };\n\n/**\n * Storybook loading component.\n */\nexport const Loading = ({ data }: LoadingProps) => {\n const [visible, setVisible] = useState(false);\n const ownerFrames = parseCaptureOwnerStack(captureOwnerStack());\n\n useEffect(() => {\n const t = setTimeout(() => setVisible(true), 500);\n return () => clearTimeout(t);\n }, []);\n\n return (\n <div className='grid p-2'>\n <div\n className={mx(\n 'flex flex-col w-full p-2 border-2 border-teal-500 rounded-md',\n 'opacity-0 transition delay-1000 duration-1000',\n 'overflow-auto',\n visible && 'opacity-100',\n )}\n >\n <h2 className='uppercase capitalize text-xs'>Loading State</h2>\n <pre className='text-sm text-description'>{safeStringify(data, undefined, 2)}</pre>\n\n <h3 className='uppercase capitalize text-xs mt-2'>Owner stack</h3>\n {ownerFrames && ownerFrames.length > 0 ? (\n <ErrorStack frames={ownerFrames} />\n ) : (\n <p className='text-xs text-subdued'>No owner stack (production build or unsupported context).</p>\n )}\n </div>\n </div>\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;AAKA,OAAOA,SAA0CC,YAAY;AAG7D,SAASC,UAAU;AAiBZ,IAAMC,aACX,CAACC,QAAyB,CAAC,MAC3B,CAACC,UAAAA;AAEC,QAAMC,gBAAgBL,qBAAKI,KAAAA;AAC3B,MAAI,OAAOD,UAAU,YAAY;AAC/B,UAAMG,aAAYH;AAClB,WACE,sB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IAAcC,SAAS,KAAA;AACvC,QAAMC,cAAcC,uBAAuBC,kBAAAA,CAAAA;AAE3CC,YAAU,MAAA;AACR,UAAMC,IAAIC,WAAW,MAAMP,WAAW,IAAA,GAAO,GAAA;AAC7C,WAAO,MAAMQ,aAAaF,CAAAA;EAC5B,GAAG,CAAA,CAAE;AAEL,SACE,gBAAAG,OAAA,cAACC,OAAAA;IAAIC,WAAU;KACb,gBAAAF,OAAA,cAACC,OAAAA;IACCC,WAAWC,IACT,gEACA,iDACA,iBACAb,WAAW,aAAA;KAGb,gBAAAU,OAAA,cAACI,MAAAA;IAAGF,WAAU;KAA+B,eAAA,GAC7C,gBAAAF,OAAA,cAACK,OAAAA;IAAIH,WAAU;KAA4BI,cAAcjB,MAAMkB,QAAW,CAAA,CAAA,GAE1E,gBAAAP,OAAA,cAACQ,MAAAA;IAAGN,WAAU;KAAoC,aAAA,GACjDT,eAAeA,YAAYgB,SAAS,IACnC,gBAAAT,OAAA,cAACU,YAAAA;IAAWC,QAAQlB;OAEpB,gBAAAO,OAAA,cAACY,KAAAA;IAAEV,WAAU;KAAuB,2DAAA,CAAA,CAAA;AAK9C;",
6
6
  "names": ["React", "memo", "mx", "withLayout", "props", "Story", "MemoizedStory", "Container", "layout", "classNames", "scroll", "layouts", "fullscreen", "default", "children", "div", "className", "centered", "column", "React", "mx", "surfaceShadow", "Container", "children", "elevation", "surface", "div", "className", "Panel", "Story", "elevations", "densities", "map", "density", "key", "withLayoutVariants", "React", "I18nProvider", "withTheme", "tx", "defaultTx", "noCache", "platform", "Story", "context", "globals", "theme", "parameters", "translations", "React", "I18nProvider", "locale", "ThemeProvider", "themeMode", "resourceExtensions", "Tooltip", "Provider", "React", "captureOwnerStack", "useEffect", "useState", "mx", "safeStringify", "Loading", "data", "visible", "setVisible", "useState", "ownerFrames", "parseCaptureOwnerStack", "captureOwnerStack", "useEffect", "t", "setTimeout", "clearTimeout", "React", "div", "className", "mx", "h2", "pre", "safeStringify", "undefined", "h3", "length", "ErrorStack", "frames", "p"]
7
7
  }
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module';const require = createRequire(import
2
2
  import {
3
3
  translationKey,
4
4
  translations
5
- } from "./chunk-FPVTVXND.mjs";
5
+ } from "./chunk-OJYUPUCY.mjs";
6
6
  export {
7
7
  translationKey,
8
8
  translations
@@ -7,6 +7,8 @@ type ButtonProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.button
7
7
  density?: Density;
8
8
  elevation?: Elevation;
9
9
  asChild?: boolean;
10
+ /** Render a trailing caret indicating the button opens a menu. */
11
+ caretDown?: boolean;
10
12
  };
11
13
  type ButtonGroupContextValue = {
12
14
  inGroup?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAoB,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,WAAW,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG;IACnF,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAC;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAErD,QAAA,MAAM,iBAAiB,gBAAgB,CAAC;AAGxC,QAAA,MAA4B,qBAAqB,mDAE/C,CAAC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C,CAAC;AAEH,QAAA,MAAM,MAAM,+FAsDX,CAAC;AAIF,KAAK,gBAAgB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IACrF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,WAAW,sGAWhB,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;AAEzE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC"}
@@ -6,7 +6,6 @@ import { type ButtonProps } from './Button';
6
6
  type IconButtonProps = Omit<ButtonProps, 'children'> & Partial<Pick<IconProps, 'icon' | 'size'>> & {
7
7
  label: string;
8
8
  noTooltip?: boolean;
9
- caretDown?: boolean;
10
9
  iconOnly?: boolean;
11
10
  square?: boolean;
12
11
  iconEnd?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAClD,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE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@@ declare const meta: {
8
8
  decorators: import("@storybook/react").Decorator[];
9
9
  parameters: {
10
10
  layout: string;
11
+ translations: [{
12
+ readonly 'en-US': {
13
+ readonly "@dxos/react-ui": {
14
+ readonly 'toolbar-menu.label': 'Action menu';
15
+ readonly 'toolbar-drag-handle.label': 'Drag to rearrange';
16
+ readonly 'toolbar-close.label': 'Close';
17
+ readonly 'toolbar-delete.label': 'Delete';
18
+ readonly 'system-button.star.label': 'Star';
19
+ readonly 'system-button.unstar.label': 'Unstar';
20
+ readonly 'system-button.bookmark.label': 'Bookmark';
21
+ readonly 'system-button.unbookmark.label': 'Remove bookmark';
22
+ readonly 'system-button.expand.label': 'Expand';
23
+ readonly 'system-button.collapse.label': 'Collapse';
24
+ readonly 'system-button.add.label': 'Add';
25
+ readonly 'system-button.delete.label': 'Delete';
26
+ readonly 'system-button.edit.label': 'Edit';
27
+ readonly 'system-button.close.label': 'Close';
28
+ readonly 'carousel-viewport.label': 'Carousel';
29
+ readonly 'carousel-prev.label': 'Previous slide';
30
+ readonly 'carousel-next.label': 'Next slide';
31
+ readonly 'carousel-indicators.label': 'Carousel slides';
32
+ readonly 'carousel-go-to.label': 'Go to slide {{index}}';
33
+ readonly 'date-picker.placeholder.single.label': 'Pick a date';
34
+ readonly 'date-picker.placeholder.range.label': 'Pick a date range';
35
+ readonly 'date-picker.placeholder.multiple.label': 'Pick dates';
36
+ readonly 'date-picker.clear.label': 'Clear';
37
+ readonly 'calendar.nav.previous.label': 'Previous month';
38
+ readonly 'calendar.nav.next.label': 'Next month';
39
+ readonly 'calendar.footer.today.label': 'Today';
40
+ readonly 'trigger-button.label': 'Open';
41
+ };
42
+ };
43
+ }];
11
44
  };
12
45
  };
13
46
  export default meta;
14
47
  type Story = StoryObj<typeof meta>;
15
48
  export declare const Default: Story;
16
49
  export declare const Ghost: Story;
50
+ export declare const System: Story;
17
51
  //# sourceMappingURL=IconButton.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAkDhE,QAAA,MAAM,IAAI;;;YAGgB,GAAG;;;QAGzB,MAAM;;CAEyB,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC"}
1
+ {"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/IconButton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAyHhE,QAAA,MAAM,IAAI;;;YAGgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMM,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { type IconButtonProps } from './IconButton';
3
+ import { type ToggleIconButtonProps } from './ToggleIconButton';
4
+ type StaticPresetProps = Omit<IconButtonProps, 'icon' | 'label'> & {
5
+ label?: string;
6
+ };
7
+ type TogglePresetProps = Omit<ToggleIconButtonProps, 'icon' | 'activeIcon' | 'label'> & {
8
+ label?: string;
9
+ };
10
+ export declare const SystemIconButton: {
11
+ Star: React.ForwardRefExoticComponent<Omit<TogglePresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ Bookmark: React.ForwardRefExoticComponent<Omit<TogglePresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
+ Expander: React.ForwardRefExoticComponent<Omit<TogglePresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
14
+ Add: React.ForwardRefExoticComponent<Omit<StaticPresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
15
+ Delete: React.ForwardRefExoticComponent<Omit<StaticPresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
+ Edit: React.ForwardRefExoticComponent<Omit<StaticPresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ Close: React.ForwardRefExoticComponent<Omit<StaticPresetProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ };
19
+ export type { StaticPresetProps, TogglePresetProps };
20
+ //# sourceMappingURL=SystemIconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SystemIconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/SystemIconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGlF,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAGtF,KAAK,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA8H3G,eAAO,MAAM,gBAAgB;IAC3B,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,GAAG;IACH,MAAM;IACN,IAAI;IACJ,KAAK;CACN,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type IconButtonProps } from './IconButton';
3
+ export type ToggleIconButtonProps = Omit<IconButtonProps, 'icon'> & {
4
+ active?: boolean;
5
+ /** Icon for the inactive state; rotated 90° in the active state when `activeIcon` is omitted. */
6
+ icon: NonNullable<IconButtonProps['icon']>;
7
+ /** Icon for the active state. When omitted, `icon` rotates 90° (disclosure-style). */
8
+ activeIcon?: NonNullable<IconButtonProps['icon']>;
9
+ };
10
+ /**
11
+ * Icon button bound to a boolean toggle. With `activeIcon` it swaps icons between states;
12
+ * otherwise it rotates `icon` 90° to signal the active (e.g. expanded) state.
13
+ */
14
+ export declare const ToggleIconButton: React.ForwardRefExoticComponent<Omit<ToggleIconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
15
+ //# sourceMappingURL=ToggleIconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleIconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/ToggleIconButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG;IAClE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iGAAiG;IACjG,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,sFAAsF;IACtF,UAAU,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;CACnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,8GAS5B,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from './Button';
2
2
  export * from './IconButton';
3
+ export * from './SystemIconButton';
3
4
  export * from './Toggle';
4
5
  export * from './ToggleGroup';
6
+ export * from './ToggleIconButton';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1,9 +1,8 @@
1
- import React, { CSSProperties, JSX, MouseEventHandler, type ReactNode } from 'react';
2
- import { type Density } from '@dxos/ui-types';
1
+ import React, { CSSProperties, MouseEventHandler, type ReactNode } from 'react';
2
+ import { type Density, type SlottableProps } from '@dxos/ui-types';
3
3
  import { type ThemedClassName } from '../../util';
4
- import { type IconBlockProps, type IconProps } from '../Icon';
5
4
  import { type ImageProps } from '../Image';
6
- import { type ToolbarActionIconButtonProps, ToolbarDragHandleProps, type ToolbarMenuProps, type ToolbarRootProps } from '../Toolbar';
5
+ import { type ToolbarActionIconButtonProps, type ToolbarDragHandleProps, type ToolbarMenuProps } from '../Toolbar';
7
6
  type CardRootProps = {
8
7
  id?: string;
9
8
  border?: boolean;
@@ -15,23 +14,23 @@ type CardRootProps = {
15
14
  'data-selected'?: boolean;
16
15
  'data-testid'?: string;
17
16
  };
18
- type CardHeaderProps = ToolbarRootProps;
17
+ type CardHeaderProps = SlottableProps;
19
18
  type CardDragHandleProps = ToolbarDragHandleProps;
20
19
  type CardActionIconButtonProps = ToolbarActionIconButtonProps;
21
20
  type CardMenuProps<T extends any | void = void> = ToolbarMenuProps<T>;
22
- declare function CardMenu<T extends any | void = void>({ context, items, ...props }: CardMenuProps<T>): JSX.Element;
21
+ declare function CardMenu<T extends any | void = void>({ context, items }: CardMenuProps<T>): React.JSX.Element;
23
22
  declare namespace CardMenu {
24
23
  var displayName: string;
25
24
  }
26
- declare function CardIcon(props: IconProps): JSX.Element;
27
- declare namespace CardIcon {
28
- var displayName: string;
29
- }
25
+ type CardBlockProps = SlottableProps<{
26
+ end?: boolean;
27
+ compact?: boolean;
28
+ square?: boolean;
29
+ }>;
30
30
  type CardSectionProps = {
31
31
  title?: ReactNode;
32
32
  };
33
33
  type CardRowProps = {
34
- icon?: string | JSX.Element;
35
34
  fullWidth?: boolean;
36
35
  };
37
36
  type CardTextProps = {
@@ -47,7 +46,7 @@ type CardHtmlProps = {
47
46
  * Renders sanitized HTML content inside a card text slot.
48
47
  * Uses DOMPurify to prevent XSS from untrusted markup (e.g. RSS feed content).
49
48
  */
50
- declare function CardHtml({ html, variant, ...props }: CardHtmlProps & ThemedClassName<object>): JSX.Element;
49
+ declare function CardHtml({ html, variant, ...props }: CardHtmlProps & ThemedClassName<object>): React.JSX.Element;
51
50
  declare namespace CardHtml {
52
51
  var displayName: string;
53
52
  }
@@ -58,7 +57,7 @@ type CardPosterProps = ThemedClassName<{
58
57
  image: string;
59
58
  icon: string;
60
59
  }> & Omit<ImageProps, 'src' | 'alt' | 'classNames'>>;
61
- declare function CardPoster({ classNames, alt, aspect: aspectProp, image, icon, ...imageProps }: CardPosterProps): JSX.Element | undefined;
60
+ declare function CardPoster({ classNames, alt, aspect: aspectProp, image, icon, fit, ...imageProps }: CardPosterProps): React.JSX.Element | undefined;
62
61
  declare namespace CardPoster {
63
62
  var displayName: string;
64
63
  }
@@ -68,7 +67,7 @@ type CardActionProps = {
68
67
  actionIcon?: string;
69
68
  onClick?: () => void;
70
69
  };
71
- declare function CardAction({ icon, actionIcon, label, onClick }: CardActionProps): JSX.Element;
70
+ declare function CardAction({ icon, actionIcon, label, onClick }: CardActionProps): React.JSX.Element;
72
71
  declare namespace CardAction {
73
72
  var displayName: string;
74
73
  }
@@ -76,7 +75,7 @@ type CardLinkProps = {
76
75
  label: string;
77
76
  href: string;
78
77
  };
79
- declare function CardLink({ label, href }: CardLinkProps): JSX.Element;
78
+ declare function CardLink({ label, href }: CardLinkProps): React.JSX.Element;
80
79
  declare namespace CardLink {
81
80
  var displayName: string;
82
81
  }
@@ -84,14 +83,21 @@ export declare const Card: {
84
83
  Root: React.ForwardRefExoticComponent<Omit<CardRootProps, "className"> & {
85
84
  classNames?: import("@dxos/ui-types").ClassNameValue;
86
85
  } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
87
- Header: React.ForwardRefExoticComponent<Omit<ToolbarRootProps, "className"> & {
86
+ Header: React.ForwardRefExoticComponent<Omit<Omit<{
87
+ asChild?: boolean;
88
+ }, "className"> & {
89
+ classNames?: import("@dxos/ui-types").ClassNameValue;
90
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & {
91
+ asChild?: boolean;
92
+ }, "className"> & {
93
+ classNames?: import("@dxos/ui-types").ClassNameValue;
94
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
95
+ Block: React.ForwardRefExoticComponent<Omit<CardBlockProps, "className"> & {
88
96
  classNames?: import("@dxos/ui-types").ClassNameValue;
89
97
  } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
90
- IconBlock: React.ForwardRefExoticComponent<Omit<IconBlockProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
91
98
  DragHandle: React.ForwardRefExoticComponent<ToolbarDragHandleProps & React.RefAttributes<HTMLButtonElement>>;
92
99
  ActionIconButton: React.ForwardRefExoticComponent<ToolbarActionIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
93
100
  Menu: typeof CardMenu;
94
- Icon: typeof CardIcon;
95
101
  Title: React.ForwardRefExoticComponent<Omit<{
96
102
  asChild?: boolean;
97
103
  }, "className"> & {
@@ -122,5 +128,5 @@ export declare const Card: {
122
128
  Action: typeof CardAction;
123
129
  Link: typeof CardLink;
124
130
  };
125
- export type { CardRootProps, CardHeaderProps, CardDragHandleProps, CardActionIconButtonProps, CardMenuProps, CardSectionProps, };
131
+ export type { CardRootProps, CardHeaderProps, CardBlockProps, CardDragHandleProps, CardActionIconButtonProps, CardMenuProps, CardSectionProps, };
126
132
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAC;AAGjH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI9C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAEL,KAAK,4BAA4B,EACjC,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAQpB,KAAK,aAAa,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,C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AE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEnG,iBAAS,UAAU,CAAC,EAAE,IAAI,EAAE,UAAuC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,eAAe,qBAiBrG;;;;AAUD,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,iBAAS,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,aAAa,qBAa/C;;;;AAQD,eAAO,MAAM,IAAI;IACf,IAAI;;;IAGJ,MAAM;;;;;;;;;IAGN,KAAK;;;IACL,UAAU;IACV,gBAAgB;IAChB,IAAI;IACJ,KAAK;;;;;IAGL,IAAI;;;;;IACJ,OAAO;;;;;IACP,GAAG;;;;;IAGH,IAAI;;;;;IACJ,IAAI;IACJ,MAAM;IACN,MAAM;IACN,IAAI;CACL,CAAC;AAEF,YAAY,EACV,aAAa,EACb,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,gBAAgB,GACjB,CAAC"}
@@ -18,5 +18,5 @@ export declare const FullWidth: Story;
18
18
  export declare const Simple: Story;
19
19
  export declare const Section: Story;
20
20
  export declare const Description: Story;
21
- export declare const Mock: () => React.JSX.Element;
21
+ export declare const Slots: Story;
22
22
  //# sourceMappingURL=Card.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAiB,MAAM,OAAO,CAAC;AAUtC,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAA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,EAAE,KAoDnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA6DF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAgB3C,CAAC"}
1
+ {"version":3,"file":"Card.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Card.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA8EF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,cAAc,CAiB3C,CAAC"}
@@ -9,6 +9,7 @@ export declare const Clipboard: {
9
9
  density?: import("@dxos/ui-types").Density;
10
10
  elevation?: import("@dxos/ui-types").Elevation;
11
11
  asChild?: boolean;
12
+ caretDown?: boolean;
12
13
  } & Pick<import("..").IconProps, "size"> & {
13
14
  value: string;
14
15
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;IACpB,MAAM;IACN,UAAU;;;;;;;;;;;;;;IACV,QAAQ;CACT,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Clipboard/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;IACpB,MAAM;IACN,UAAU;;;;;;;;;;;;;;;IACV,QAAQ;CACT,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
@@ -7,6 +7,11 @@ type ColumnRootProps = {
7
7
  type ColumnRowProps = {};
8
8
  type ColumnBleedProps = SlottableProps;
9
9
  type ColumnCenterProps = SlottableProps;
10
+ type ColumnBlockProps = SlottableProps<{
11
+ end?: boolean;
12
+ compact?: boolean;
13
+ square?: boolean;
14
+ }>;
10
15
  export declare const Column: {
11
16
  Root: React.ForwardRefExoticComponent<Omit<ColumnRootProps & {
12
17
  asChild?: boolean;
@@ -18,6 +23,19 @@ export declare const Column: {
18
23
  }, "className"> & {
19
24
  classNames?: import("@dxos/ui-types").ClassNameValue;
20
25
  } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
26
+ Block: React.ForwardRefExoticComponent<Omit<Omit<{
27
+ end?: boolean;
28
+ compact?: boolean;
29
+ square?: boolean;
30
+ } & {
31
+ asChild?: boolean;
32
+ }, "className"> & {
33
+ classNames?: import("@dxos/ui-types").ClassNameValue;
34
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & {
35
+ asChild?: boolean;
36
+ }, "className"> & {
37
+ classNames?: import("@dxos/ui-types").ClassNameValue;
38
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
21
39
  Bleed: React.ForwardRefExoticComponent<Omit<{
22
40
  asChild?: boolean;
23
41
  }, "className"> & {
@@ -29,5 +47,5 @@ export declare const Column: {
29
47
  classNames?: import("@dxos/ui-types").ClassNameValue;
30
48
  } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
31
49
  };
32
- export type { ColumnRootProps, ColumnRowProps, ColumnBleedProps, ColumnCenterProps };
50
+ export type { ColumnRootProps, ColumnRowProps, ColumnBlockProps, ColumnBleedProps, ColumnCenterProps };
33
51
  //# sourceMappingURL=Column.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAWrD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAS5C,KAAK,eAAe,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAsD/C,KAAK,cAAc,GAAG,EAAE,CAAC;AA0BzB,KAAK,gBAAgB,GAAG,cAAc,CAAC;AA0BvC,KAAK,iBAAiB,GAAG,cAAc,CAAC;AAwBxC,eAAO,MAAM,MAAM;IACjB,IAAI;;;;;IACJ,GAAG;;;;;IACH,KAAK;;;;;IACL,MAAM;;;;;CACP,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAWrD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAS5C,KAAK,eAAe,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAsD/C,KAAK,cAAc,GAAG,EAAE,CAAC;AA0BzB,KAAK,gBAAgB,GAAG,cAAc,CAAC;AA0BvC,KAAK,iBAAiB,GAAG,cAAc,CAAC;AA0BxC,KAAK,gBAAgB,GAAG,cAAc,CAAC;IAAE,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAgC/F,eAAO,MAAM,MAAM;IACjB,IAAI;;;;;IACJ,GAAG;;;;;IACH,KAAK;cAnCwC,OAAO;kBAAY,OAAO;iBAAW,OAAO;;;;;;;;;;IAoCzF,KAAK;;;;;IACL,MAAM;;;;;CACP,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,8 +1,16 @@
1
1
  import { type ComponentFunction } from '@dxos/ui-types';
2
2
  export type ColumnStyleProps = {};
3
+ export type ColumnBlockStyleProps = {
4
+ /** Trailing gutter (column 3) instead of the default leading gutter (column 1). */
5
+ end?: boolean;
6
+ compact?: boolean;
7
+ /** Constrain to a square (1:1) slot rather than the default rail-item width. */
8
+ square?: boolean;
9
+ };
3
10
  export declare const columnTheme: {
4
11
  root: ComponentFunction<ColumnStyleProps>;
5
12
  row: ComponentFunction<ColumnStyleProps>;
13
+ block: ComponentFunction<ColumnBlockStyleProps>;
6
14
  bleed: ComponentFunction<ColumnStyleProps>;
7
15
  center: ComponentFunction<ColumnStyleProps>;
8
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Column.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAiClC,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
1
+ {"version":3,"file":"Column.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Column/Column.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,qBAAqB,GAAG;IAClC,mFAAmF;IACnF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAoDF,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC"}
@@ -1,2 +1,5 @@
1
+ /**
2
+ * @deprecated Create TW variable.
3
+ */
1
4
  export declare const inputTextLabel = "py-1 text-sm text-description";
2
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/constants.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,cAAc,kCAAkC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEzG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AA0BF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAOjD,CAAC"}
1
+ {"version":3,"file":"Message.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEzG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAkBF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAKjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AASlD,KAAK,kBAAkB,GAAG,cAAc,CAAC,kBAAkB,CAAC;AAQ5D,KAAK,kBAAkB,GAAG,eAAe,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAa7E,KAAK,cAAc,GAAG,eAAe,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AAmBjE,KAAK,eAAe,GAAG,eAAe,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAqCF,KAAK,qBAAqB,GAAG,eAAe,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AAmBnF,KAAK,iBAA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KAAK,gBAAgB,GAAG,cAAc,CAAC,gBAAgB,CAAC;AAIxD,KAAK,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC;AAQtD,eAAO,MAAM,KAAK;IAChB,QAAQ;IACR,QAAQ;;;IACR,IAAI;;;IACJ,KAAK;;;eA9FE,MAAM;kBACH,MAAM,IAAI;;IA8FpB,WAAW;;;IACX,OAAO;IACP,MAAM;IACN,KAAK;CACN,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,EAAE,CAAC;AAsCjC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAU7C,CAAC"}
1
+ {"version":3,"file":"Toast.theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,EAAE,CAAC;AAkCjC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,eAAe,CAQ7C,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React, { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
2
+ import { type TooltipTriggerProps } from './Tooltip';
3
+ export type TextTooltipProps = PropsWithChildren<{
4
+ text: string;
5
+ asChild?: boolean;
6
+ onlyWhenTruncating?: boolean;
7
+ truncateQuery?: string;
8
+ } & Pick<TooltipTriggerProps, 'side'> & ComponentPropsWithoutRef<'button'>>;
9
+ export declare const TextTooltip: React.ForwardRefExoticComponent<{
10
+ text: string;
11
+ asChild?: boolean;
12
+ onlyWhenTruncating?: boolean;
13
+ truncateQuery?: string;
14
+ } & Pick<TooltipTriggerProps, "side"> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
15
+ children?: React.ReactNode | undefined;
16
+ } & {
17
+ __scopeTooltip?: import("@radix-ui/react-context").Scope;
18
+ } & React.RefAttributes<HTMLButtonElement>>;
19
+ //# sourceMappingURL=TextTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/TextTooltip.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAoC,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEvF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAC9C;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,GACnC,wBAAwB,CAAC,QAAQ,CAAC,CACrC,CAAC;AAEF,eAAO,MAAM,WAAW;UARd,MAAM;cACF,OAAO;yBACI,OAAO;oBACZ,MAAM;;;;;2CAgCzB,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './TextTooltip';
1
2
  export * from './Tooltip';
2
3
  export * from './tooltipContent';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/testing/Loading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAOtE,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,OAAO,aAAc,YAAY,sBA8B7C,CAAC"}
1
+ {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/testing/Loading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAOtE,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,OAAO,aAAc,YAAY,sBA+B7C,CAAC"}
@@ -6,6 +6,16 @@ export declare const translations: [{
6
6
  readonly 'toolbar-drag-handle.label': 'Drag to rearrange';
7
7
  readonly 'toolbar-close.label': 'Close';
8
8
  readonly 'toolbar-delete.label': 'Delete';
9
+ readonly 'system-button.star.label': 'Star';
10
+ readonly 'system-button.unstar.label': 'Unstar';
11
+ readonly 'system-button.bookmark.label': 'Bookmark';
12
+ readonly 'system-button.unbookmark.label': 'Remove bookmark';
13
+ readonly 'system-button.expand.label': 'Expand';
14
+ readonly 'system-button.collapse.label': 'Collapse';
15
+ readonly 'system-button.add.label': 'Add';
16
+ readonly 'system-button.delete.label': 'Delete';
17
+ readonly 'system-button.edit.label': 'Edit';
18
+ readonly 'system-button.close.label': 'Close';
9
19
  readonly 'carousel-viewport.label': 'Carousel';
10
20
  readonly 'carousel-prev.label': 'Previous slide';
11
21
  readonly 'carousel-next.label': 'Next slide';
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;qBAIjB,oBAAoB,EAAE,aAAa;qBACnC,2BAA2B,EAAE,mBAAmB;qBAChD,qBAAqB,EAAE,OAAO;qBAC9B,sBAAsB,EAAE,QAAQ;qBAChC,yBAAyB,EAAE,UAAU;qBACrC,qBAAqB,EAAE,gBAAgB;qBACvC,qBAAqB,EAAE,YAAY;qBACnC,2BAA2B,EAAE,iBAAiB;qBAC9C,sBAAsB,EAAE,uBAAuB;qBAC/C,sCAAsC,EAAE,aAAa;qBACrD,qCAAqC,EAAE,mBAAmB;qBAC1D,wCAAwC,EAAE,YAAY;qBACtD,yBAAyB,EAAE,OAAO;qBAClC,6BAA6B,EAAE,gBAAgB;qBAC/C,yBAAyB,EAAE,YAAY;qBACvC,6BAA6B,EAAE,OAAO;qBACtC,sBAAsB,EAAE,MAAM;;;EAIP,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;qBAIjB,oBAAoB,EAAE,aAAa;qBACnC,2BAA2B,EAAE,mBAAmB;qBAChD,qBAAqB,EAAE,OAAO;qBAC9B,sBAAsB,EAAE,QAAQ;qBAChC,0BAA0B,EAAE,MAAM;qBAClC,4BAA4B,EAAE,QAAQ;qBACtC,8BAA8B,EAAE,UAAU;qBAC1C,gCAAgC,EAAE,iBAAiB;qBACnD,4BAA4B,EAAE,QAAQ;qBACtC,8BAA8B,EAAE,UAAU;qBAC1C,yBAAyB,EAAE,KAAK;qBAChC,4BAA4B,EAAE,QAAQ;qBACtC,0BAA0B,EAAE,MAAM;qBAClC,2BAA2B,EAAE,OAAO;qBACpC,yBAAyB,EAAE,UAAU;qBACrC,qBAAqB,EAAE,gBA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