@dxos/react-ui-pickers 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea
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/dist/lib/browser/index.mjs +5 -5
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +5 -5
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/EmojiPicker/EmojiPicker.stories.d.ts +0 -3
- package/dist/types/src/components/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/HuePicker/HuePicker.stories.d.ts +0 -3
- package/dist/types/src/components/HuePicker/HuePicker.stories.d.ts.map +1 -1
- package/dist/types/src/components/IconPicker/IconPicker.d.ts +6 -0
- package/dist/types/src/components/IconPicker/IconPicker.d.ts.map +1 -1
- package/dist/types/src/components/IconPicker/IconPicker.stories.d.ts +0 -3
- package/dist/types/src/components/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/components/EmojiPicker/EmojiPicker.stories.tsx +2 -5
- package/src/components/EmojiPicker/EmojiPicker.tsx +1 -1
- package/src/components/HuePicker/HuePicker.stories.tsx +2 -5
- package/src/components/IconPicker/IconPicker.stories.tsx +2 -5
- package/src/components/IconPicker/IconPicker.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-pickers",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.ae835ea",
|
|
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.
|
|
33
|
-
"@dxos/react-ui-types": "0.8.4-main.
|
|
34
|
-
"@dxos/util": "0.8.4-main.
|
|
32
|
+
"@dxos/log": "0.8.4-main.ae835ea",
|
|
33
|
+
"@dxos/react-ui-types": "0.8.4-main.ae835ea",
|
|
34
|
+
"@dxos/util": "0.8.4-main.ae835ea"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/react": "~19.2.
|
|
38
|
-
"@types/react-dom": "~19.2.
|
|
37
|
+
"@types/react": "~19.2.2",
|
|
38
|
+
"@types/react-dom": "~19.2.2",
|
|
39
39
|
"react": "~19.2.0",
|
|
40
40
|
"react-dom": "~19.2.0",
|
|
41
41
|
"vite": "7.1.9",
|
|
42
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
42
|
+
"@dxos/react-ui": "0.8.4-main.ae835ea",
|
|
43
|
+
"@dxos/react-ui-theme": "0.8.4-main.ae835ea",
|
|
44
|
+
"@dxos/storybook-utils": "0.8.4-main.ae835ea"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^19.0.0",
|
|
48
48
|
"react-dom": "^19.0.0",
|
|
49
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
50
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
49
|
+
"@dxos/react-ui": "0.8.4-main.ae835ea",
|
|
50
|
+
"@dxos/react-ui-theme": "0.8.4-main.ae835ea"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
@@ -7,17 +7,14 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { Toolbar } from '@dxos/react-ui';
|
|
10
|
-
import { withTheme } from '@dxos/react-ui/testing';
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
11
11
|
|
|
12
12
|
import { EmojiPickerBlock, type EmojiPickerProps, EmojiPickerToolbarButton } from './EmojiPicker';
|
|
13
13
|
|
|
14
14
|
const meta = {
|
|
15
15
|
title: 'ui/react-ui-pickers/EmojiPicker',
|
|
16
16
|
component: EmojiPicker,
|
|
17
|
-
decorators: [withTheme],
|
|
18
|
-
parameters: {
|
|
19
|
-
layout: 'column',
|
|
20
|
-
},
|
|
17
|
+
decorators: [withTheme, withLayout({ container: 'column' })],
|
|
21
18
|
} satisfies Meta<typeof EmojiPicker>;
|
|
22
19
|
|
|
23
20
|
export default meta;
|
|
@@ -112,7 +112,7 @@ export const EmojiPickerBlock = ({
|
|
|
112
112
|
classNames,
|
|
113
113
|
}: EmojiPickerProps) => {
|
|
114
114
|
const { t } = useTranslation('os');
|
|
115
|
-
const [isMd] = useMediaQuery('md'
|
|
115
|
+
const [isMd] = useMediaQuery('md');
|
|
116
116
|
|
|
117
117
|
const [emojiValue, setEmojiValue] = useControllableState<string>({
|
|
118
118
|
prop: emoji,
|
|
@@ -6,7 +6,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import { Toolbar } from '@dxos/react-ui';
|
|
9
|
-
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
10
10
|
|
|
11
11
|
import { HuePicker, type HuePickerProps } from './HuePicker';
|
|
12
12
|
|
|
@@ -30,10 +30,7 @@ const meta = {
|
|
|
30
30
|
title: 'ui/react-ui-pickers/HuePicker',
|
|
31
31
|
component: HuePicker,
|
|
32
32
|
render: DefaultStory,
|
|
33
|
-
decorators: [withTheme],
|
|
34
|
-
parameters: {
|
|
35
|
-
layout: 'column',
|
|
36
|
-
},
|
|
33
|
+
decorators: [withTheme, withLayout({ container: 'column' })],
|
|
37
34
|
} satisfies Meta<typeof HuePicker>;
|
|
38
35
|
|
|
39
36
|
export default meta;
|
|
@@ -6,7 +6,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import { Toolbar } from '@dxos/react-ui';
|
|
9
|
-
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
10
10
|
|
|
11
11
|
import { IconPicker, type IconPickerProps } from './IconPicker';
|
|
12
12
|
|
|
@@ -25,10 +25,7 @@ const meta = {
|
|
|
25
25
|
title: 'ui/react-ui-pickers/IconPicker',
|
|
26
26
|
component: IconPicker,
|
|
27
27
|
render: DefaultStory,
|
|
28
|
-
decorators: [withTheme],
|
|
29
|
-
parameters: {
|
|
30
|
-
layout: 'column',
|
|
31
|
-
},
|
|
28
|
+
decorators: [withTheme, withLayout({ container: 'column' })],
|
|
32
29
|
} satisfies Meta<typeof IconPicker>;
|
|
33
30
|
|
|
34
31
|
export default meta;
|
|
@@ -41,10 +41,10 @@ const IconPreview = ({ value, iconSize = 5 }: { value: string; iconSize?: IconPr
|
|
|
41
41
|
* https://phosphoricons.com
|
|
42
42
|
* NOTE: Select icons that we are unlikely to use for the UI.
|
|
43
43
|
*/
|
|
44
|
-
const icons = [
|
|
44
|
+
export const icons = [
|
|
45
45
|
'ph--house-line--regular',
|
|
46
46
|
'ph--planet--regular',
|
|
47
|
-
'ph--
|
|
47
|
+
'ph--castle-turret--regular',
|
|
48
48
|
'ph--snowflake--regular',
|
|
49
49
|
'ph--virus--regular',
|
|
50
50
|
'ph--graph--regular',
|
|
@@ -98,4 +98,4 @@ const icons = [
|
|
|
98
98
|
'ph--yin-yang--regular',
|
|
99
99
|
];
|
|
100
100
|
|
|
101
|
-
const iconValues = icons.map((icon) => icon.match(/ph--(.+)--regular/)?.[1] ?? icon);
|
|
101
|
+
export const iconValues = icons.map((icon) => icon.match(/ph--(.+)--regular/)?.[1] ?? icon);
|