@dxos/react-ui-pickers 0.8.4-main.e098934 → 0.8.4-main.ead640a

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-pickers",
3
- "version": "0.8.4-main.e098934",
3
+ "version": "0.8.4-main.ead640a",
4
4
  "description": "A collection of picker components.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -29,25 +29,25 @@
29
29
  "@preact-signals/safe-react": "^0.9.0",
30
30
  "@radix-ui/react-use-controllable-state": "1.1.0",
31
31
  "react-resize-detector": "^11.0.1",
32
- "@dxos/log": "0.8.4-main.e098934",
33
- "@dxos/react-ui-types": "0.8.4-main.e098934",
34
- "@dxos/util": "0.8.4-main.e098934"
32
+ "@dxos/log": "0.8.4-main.ead640a",
33
+ "@dxos/react-ui-types": "0.8.4-main.ead640a",
34
+ "@dxos/util": "0.8.4-main.ead640a"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/react": "~18.2.0",
38
- "@types/react-dom": "~18.2.0",
39
- "react": "~18.2.0",
40
- "react-dom": "~18.2.0",
41
- "vite": "7.1.1",
42
- "@dxos/react-ui": "0.8.4-main.e098934",
43
- "@dxos/react-ui-theme": "0.8.4-main.e098934",
44
- "@dxos/storybook-utils": "0.8.4-main.e098934"
37
+ "@types/react": "~19.2.2",
38
+ "@types/react-dom": "~19.2.1",
39
+ "react": "~19.2.0",
40
+ "react-dom": "~19.2.0",
41
+ "vite": "7.1.9",
42
+ "@dxos/react-ui": "0.8.4-main.ead640a",
43
+ "@dxos/react-ui-theme": "0.8.4-main.ead640a",
44
+ "@dxos/storybook-utils": "0.8.4-main.ead640a"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "~18.2.0",
48
- "react-dom": "~18.2.0",
49
- "@dxos/react-ui": "0.8.4-main.e098934",
50
- "@dxos/react-ui-theme": "0.8.4-main.e098934"
47
+ "react": "^19.0.0",
48
+ "react-dom": "^19.0.0",
49
+ "@dxos/react-ui": "0.8.4-main.ead640a",
50
+ "@dxos/react-ui-theme": "0.8.4-main.ead640a"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
@@ -2,24 +2,19 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
6
-
7
5
  import EmojiPicker from '@emoji-mart/react';
8
6
  import { type Meta, type StoryObj } from '@storybook/react-vite';
9
7
  import React, { useState } from 'react';
10
8
 
11
9
  import { Toolbar } from '@dxos/react-ui';
12
- import { withLayout, withTheme } from '@dxos/storybook-utils';
10
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
13
11
 
14
12
  import { EmojiPickerBlock, type EmojiPickerProps, EmojiPickerToolbarButton } from './EmojiPicker';
15
13
 
16
14
  const meta = {
17
15
  title: 'ui/react-ui-pickers/EmojiPicker',
18
16
  component: EmojiPicker,
19
- decorators: [withTheme, withLayout()],
20
- parameters: {
21
- layout: 'centered',
22
- },
17
+ decorators: [withTheme, withLayout({ container: 'column' })],
23
18
  } satisfies Meta<typeof EmojiPicker>;
24
19
 
25
20
  export default meta;
@@ -38,7 +33,7 @@ const BlockStory = (props: EmojiPickerProps) => {
38
33
  const [emoji, setEmoji] = useState<string>(props.defaultEmoji ?? '😀');
39
34
 
40
35
  return (
41
- <div className='flex gap-2'>
36
+ <div>
42
37
  <EmojiPickerBlock
43
38
  {...props}
44
39
  emoji={emoji}
@@ -112,7 +112,7 @@ export const EmojiPickerBlock = ({
112
112
  classNames,
113
113
  }: EmojiPickerProps) => {
114
114
  const { t } = useTranslation('os');
115
- const [isMd] = useMediaQuery('md', { ssr: false });
115
+ const [isMd] = useMediaQuery('md');
116
116
 
117
117
  const [emojiValue, setEmojiValue] = useControllableState<string>({
118
118
  prop: emoji,
@@ -2,13 +2,11 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
6
-
7
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
8
6
  import React, { useState } from 'react';
9
7
 
10
8
  import { Toolbar } from '@dxos/react-ui';
11
- import { withLayout, withTheme } from '@dxos/storybook-utils';
9
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
12
10
 
13
11
  import { HuePicker, type HuePickerProps } from './HuePicker';
14
12
 
@@ -32,10 +30,7 @@ const meta = {
32
30
  title: 'ui/react-ui-pickers/HuePicker',
33
31
  component: HuePicker,
34
32
  render: DefaultStory,
35
- decorators: [withTheme, withLayout()],
36
- parameters: {
37
- layout: 'centered',
38
- },
33
+ decorators: [withTheme, withLayout({ container: 'column' })],
39
34
  } satisfies Meta<typeof HuePicker>;
40
35
 
41
36
  export default meta;
@@ -2,13 +2,11 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
6
-
7
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
8
6
  import React, { useState } from 'react';
9
7
 
10
8
  import { Toolbar } from '@dxos/react-ui';
11
- import { withLayout, withTheme } from '@dxos/storybook-utils';
9
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
12
10
 
13
11
  import { IconPicker, type IconPickerProps } from './IconPicker';
14
12
 
@@ -27,10 +25,7 @@ const meta = {
27
25
  title: 'ui/react-ui-pickers/IconPicker',
28
26
  component: IconPicker,
29
27
  render: DefaultStory,
30
- decorators: [withTheme, withLayout()],
31
- parameters: {
32
- layout: 'centered',
33
- },
28
+ decorators: [withTheme, withLayout({ container: 'column' })],
34
29
  } satisfies Meta<typeof IconPicker>;
35
30
 
36
31
  export default meta;
@@ -42,6 +42,12 @@ const IconPreview = ({ value, iconSize = 5 }: { value: string; iconSize?: IconPr
42
42
  * NOTE: Select icons that we are unlikely to use for the UI.
43
43
  */
44
44
  const icons = [
45
+ 'ph--house-line--regular',
46
+ 'ph--planet--regular',
47
+ 'ph--piggy-bank--regular',
48
+ 'ph--snowflake--regular',
49
+ 'ph--virus--regular',
50
+ 'ph--graph--regular',
45
51
  'ph--air-traffic-control--regular',
46
52
  'ph--asterisk--regular',
47
53
  'ph--atom--regular',