@domicile-desktop/component-library 0.0.0-alpha-aa215a9ef051 → 0.0.0-alpha-d95ffb2fac85

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
@@ -2,8 +2,8 @@
2
2
  "dependencies": {
3
3
  "@base-ui/react": "^1.8.0",
4
4
  "@cprussin/option-result": "^2.0.1",
5
- "@domicile-desktop/sdk": "0.0.0-alpha-aa215a9ef051",
6
- "@domicile-desktop/system-apps": "0.0.0-alpha-aa215a9ef051",
5
+ "@domicile-desktop/sdk": "0.0.0-alpha-d95ffb2fac85",
6
+ "@domicile-desktop/system-apps": "0.0.0-alpha-d95ffb2fac85",
7
7
  "@pandacss/dev": "^1.12.1",
8
8
  "@phosphor-icons/react": "^2.1.10"
9
9
  },
@@ -162,5 +162,5 @@
162
162
  "test:unit": "bun test"
163
163
  },
164
164
  "type": "module",
165
- "version": "0.0.0-alpha-aa215a9ef051"
165
+ "version": "0.0.0-alpha-d95ffb2fac85"
166
166
  }
@@ -7,12 +7,6 @@ const ICON_SIZE = 16;
7
7
 
8
8
  type Props = {
9
9
  icon: Icon;
10
- /**
11
- * A picture shown in place of the glyph, cropped to fill the tile, such as
12
- * a copied image's thumbnail. A URL the page can load, such as a `data:`
13
- * URL.
14
- */
15
- picture?: string | undefined;
16
10
  };
17
11
 
18
12
  /**
@@ -22,21 +16,14 @@ type Props = {
22
16
  * Draws the outline and fill weights and shows one, since CSS can't change a
23
17
  * Phosphor glyph's weight. Same approach as `_control/PrefixIconStack`.
24
18
  */
25
- export const RowTile = ({ icon: Glyph, picture }: Props) => (
19
+ export const RowTile = ({ icon: Glyph }: Props) => (
26
20
  <span aria-hidden className={tileStyles} data-row-tile="">
27
- {picture === undefined ? (
28
- <>
29
- <span className={glyphStyles({ weight: "regular" })}>
30
- <Glyph size={ICON_SIZE} />
31
- </span>
32
- <span className={glyphStyles({ weight: "fill" })}>
33
- <Glyph size={ICON_SIZE} weight="fill" />
34
- </span>
35
- </>
36
- ) : (
37
- // Decorative: the row's text names what it shows.
38
- <img alt="" className={pictureStyles} src={picture} />
39
- )}
21
+ <span className={glyphStyles({ weight: "regular" })}>
22
+ <Glyph size={ICON_SIZE} />
23
+ </span>
24
+ <span className={glyphStyles({ weight: "fill" })}>
25
+ <Glyph size={ICON_SIZE} weight="fill" />
26
+ </span>
40
27
  </span>
41
28
  );
42
29
 
@@ -74,8 +61,6 @@ const tileStyles = css({
74
61
  display: "grid",
75
62
  flexShrink: 0,
76
63
  inlineSize: 7,
77
- // Clips a picture to the rounded corners.
78
- overflow: "hidden",
79
64
  placeItems: "center",
80
65
  transition:
81
66
  "background-color {durations.fast} {easings.out}, border-color {durations.fast} {easings.out}, color {durations.fast} {easings.out}",
@@ -96,12 +81,6 @@ const logoStyles = css({
96
81
  objectFit: "contain",
97
82
  });
98
83
 
99
- const pictureStyles = css({
100
- blockSize: "full",
101
- inlineSize: "full",
102
- objectFit: "cover",
103
- });
104
-
105
84
  // Both weights share one grid cell, so swapping doesn't shift layout.
106
85
  const glyphStyles = cva({
107
86
  base: {