@dxos/react-ui 0.3.11-main.dafb7f2 → 0.3.11-main.df1e30a

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 (36) hide show
  1. package/dist/lib/browser/index.mjs +10 -10
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/components/Avatars/Avatar.d.ts +1 -1
  5. package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
  6. package/dist/types/src/components/List/List.d.ts.map +1 -0
  7. package/dist/types/src/components/{Lists → List}/List.stories.d.ts +3 -1
  8. package/dist/types/src/components/List/List.stories.d.ts.map +1 -0
  9. package/dist/types/src/components/List/Tree.d.ts.map +1 -0
  10. package/dist/types/src/components/List/Tree.stories.d.ts.map +1 -0
  11. package/dist/types/src/components/List/index.d.ts.map +1 -0
  12. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
  13. package/dist/types/src/components/index.d.ts +1 -1
  14. package/dist/types/src/components/index.d.ts.map +1 -1
  15. package/package.json +10 -8
  16. package/src/components/Avatars/Avatar.tsx +1 -1
  17. package/src/components/Buttons/Button.stories.tsx +2 -2
  18. package/src/components/Input/Input.stories.tsx +2 -2
  19. package/src/components/{Lists → List}/List.stories.tsx +38 -2
  20. package/src/components/ThemeProvider/TranslationsProvider.tsx +2 -0
  21. package/src/components/index.ts +1 -1
  22. package/src/playground/Surfaces.stories.tsx +4 -4
  23. package/src/playground/Typography.stories.tsx +1 -1
  24. package/dist/types/src/components/Lists/List.d.ts.map +0 -1
  25. package/dist/types/src/components/Lists/List.stories.d.ts.map +0 -1
  26. package/dist/types/src/components/Lists/Tree.d.ts.map +0 -1
  27. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +0 -1
  28. package/dist/types/src/components/Lists/index.d.ts.map +0 -1
  29. package/dist/types/src/components/{Lists → List}/List.d.ts +0 -0
  30. package/dist/types/src/components/{Lists → List}/Tree.d.ts +0 -0
  31. package/dist/types/src/components/{Lists → List}/Tree.stories.d.ts +0 -0
  32. package/dist/types/src/components/{Lists → List}/index.d.ts +0 -0
  33. package/src/components/{Lists → List}/List.tsx +0 -0
  34. package/src/components/{Lists → List}/Tree.stories.tsx +0 -0
  35. package/src/components/{Lists → List}/Tree.tsx +1 -1
  36. /package/src/components/{Lists → List}/index.ts +0 -0
@@ -8,13 +8,13 @@ import React, { type PropsWithChildren } from 'react';
8
8
 
9
9
  import {
10
10
  baseSurface,
11
- chromeSurface,
11
+ modalSurface,
12
12
  groupSurface,
13
13
  mx,
14
14
  surfaceElevation,
15
15
  fixedSurface,
16
16
  fixedBorder,
17
- inputSurface,
17
+ attentionSurface,
18
18
  } from '@dxos/react-ui-theme';
19
19
 
20
20
  import { withTheme } from '../testing';
@@ -25,11 +25,11 @@ const Surface = ({
25
25
  }: PropsWithChildren & { level: 'base' | 'group' | 'chrome' | 'fixed' | 'input' }) => {
26
26
  const surface =
27
27
  level === 'chrome'
28
- ? [chromeSurface, surfaceElevation({ elevation: 'chrome' })]
28
+ ? [modalSurface, surfaceElevation({ elevation: 'chrome' })]
29
29
  : level === 'group'
30
30
  ? [groupSurface, surfaceElevation({ elevation: 'group' })]
31
31
  : level === 'input'
32
- ? [inputSurface, surfaceElevation({ elevation: 'group' })]
32
+ ? [attentionSurface, surfaceElevation({ elevation: 'group' })]
33
33
  : level === 'fixed'
34
34
  ? [fixedSurface, fixedBorder, 'border', surfaceElevation({ elevation: 'chrome' })]
35
35
  : [baseSurface];
@@ -44,7 +44,7 @@ const TypographyStory = () => {
44
44
  };
45
45
 
46
46
  export default {
47
- title: 'DXOS UI/Scenarios/Typography',
47
+ title: 'react-ui/Scenarios/Typography',
48
48
  component: TypographyStory,
49
49
  decorators: [withTheme],
50
50
  parameters: { chromatic: { disableSnapshot: false } },
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/List.tsx"],"names":[],"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AAyB,CAAC,+BAA+B,CAAC,CAAC;IAC/E,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CAQzF,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,kBAAkB,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AAE/E,YAAY,EACV,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,+BAA+B,GAChC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/List.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAMpB,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAkB,KAAK,SAAS,EAAwB,MAAM,QAAQ,CAAC;;;;;;;;;;;AAG9E,wBAKE;AAuBF,eAAO,MAAM,oBAAoB;;;;;CAgChC,CAAC;AA+BF,eAAO,MAAM,kBAAkB;;;;;CA8C9B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;CA+BvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Tree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,EAAE,EAAc,KAAK,yBAAyB,EAAE,MAAM,OAAO,CAAC;AAElH,OAAO,EAIL,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAGf,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,aAAa,GAAG,SAAS,CAAC;AAE/B,KAAK,aAAa,GAAG,iBAAiB,CAAC;AAwBvC,KAAK,oBAAoB,GAAG,oBAAoB,CAAC;AAIjD,KAAK,wBAAwB,GAAG,wBAAwB,CAAC;AAMzD,KAAK,iBAAiB,GAAG,+BAA+B,CAAC;AAIzD,eAAO,MAAM,IAAI;;;CAAyC,CAAC;AAC3D,eAAO,MAAM,QAAQ,EAAE;IACrB,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAAC;IAC/C,OAAO,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;IACzD,IAAI,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IACnD,WAAW,EAAE,yBAAyB,CAAC,wBAAwB,CAAC,CAAC;IACjE,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CAOzF,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/Tree.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAOpB,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;;;;;;;;;;;AA4CF,wBAKE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Lists/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
File without changes
File without changes
@@ -6,7 +6,6 @@ import React, { type ComponentPropsWithoutRef, type FC, forwardRef, type Forward
6
6
 
7
7
  import {
8
8
  List,
9
- LIST_ITEM_NAME,
10
9
  ListItem,
11
10
  type ListItemCollapsibleContentProps,
12
11
  type ListItemHeadingProps,
@@ -14,6 +13,7 @@ import {
14
13
  type ListItemRootProps,
15
14
  type ListProps,
16
15
  type ListScopedProps,
16
+ LIST_ITEM_NAME,
17
17
  useListItemContext,
18
18
  } from './List';
19
19
  import { type ThemedClassName } from '../../util';
File without changes