@domicile-desktop/manganese-quick-settings 0.0.0 → 1.0.2

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,22 +1,22 @@
1
1
  {
2
2
  "dependencies": {
3
- "@domicile-desktop/component-library": "1.0.0",
4
- "@domicile-desktop/manganese-bar": "1.0.0",
5
- "@domicile-desktop/manganese-bar-module-battery": "1.0.0",
6
- "@domicile-desktop/manganese-bar-module-bluetooth": "1.0.0",
7
- "@domicile-desktop/manganese-bar-module-brightness": "1.0.0",
8
- "@domicile-desktop/manganese-bar-module-idle-inhibitor": "1.0.0",
9
- "@domicile-desktop/manganese-bar-module-network": "1.0.0",
10
- "@domicile-desktop/manganese-bar-module-theme-switch": "1.0.0",
11
- "@domicile-desktop/manganese-bar-module-volume": "1.0.0",
12
- "@domicile-desktop/react": "0.0.0",
3
+ "@domicile-desktop/component-library": "2.1.0",
4
+ "@domicile-desktop/manganese-bar": "1.1.2",
5
+ "@domicile-desktop/manganese-bar-module-battery": "1.1.2",
6
+ "@domicile-desktop/manganese-bar-module-bluetooth": "1.1.2",
7
+ "@domicile-desktop/manganese-bar-module-brightness": "2.0.2",
8
+ "@domicile-desktop/manganese-bar-module-idle-inhibitor": "1.1.2",
9
+ "@domicile-desktop/manganese-bar-module-network": "1.1.2",
10
+ "@domicile-desktop/manganese-bar-module-theme-switch": "1.1.2",
11
+ "@domicile-desktop/manganese-bar-module-volume": "2.0.2",
12
+ "@domicile-desktop/react": "0.1.2",
13
13
  "@pandacss/dev": "^1.12.1",
14
14
  "react": "^19.2.8"
15
15
  },
16
16
  "description": "A manganese bar item: quick settings, the network, Bluetooth, sound, brightness and battery in one panel.",
17
17
  "devDependencies": {
18
18
  "@cprussin/tsconfig": "^5.0.0",
19
- "@domicile-desktop/test-support": "0.0.1",
19
+ "@domicile-desktop/test-support": "0.0.2",
20
20
  "@pandacss/preset-panda": "^1.12.1",
21
21
  "@testing-library/react": "^16.3.3",
22
22
  "@testing-library/user-event": "^14.6.7",
@@ -27,8 +27,7 @@
27
27
  "typescript": "^7.0.2"
28
28
  },
29
29
  "engines": {
30
- "bun": ">=1.4.2",
31
- "node": ">=24"
30
+ "bun": ">=1.4.2"
32
31
  },
33
32
  "exports": {
34
33
  ".": "./src/QuickSettings.tsx"
@@ -56,5 +55,5 @@
56
55
  "test:unit": "bun test"
57
56
  },
58
57
  "type": "module",
59
- "version": "0.0.0"
58
+ "version": "1.0.2"
60
59
  }
@@ -3,11 +3,11 @@ import { css } from '../css/index.mjs';
3
3
 
4
4
  const aspectRatioConfig = {
5
5
  transform(props, { map }) {
6
- const { ratio = 4 / 3, ...rest } = props;
6
+ const { ratio = 1.3333333333333333, ...rest } = props;
7
7
  return {
8
8
  position: "relative",
9
9
  _before: {
10
- content: `""`,
10
+ content: '""',
11
11
  display: "block",
12
12
  height: "0",
13
13
  paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
3
3
 
4
4
  const bleedConfig = {
5
5
  transform(props, { map, isCssUnit, isCssVar }) {
6
- const { inline, block, ...rest } = props;
7
- const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
6
+ const { inline, block, ...rest } = props, valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
8
7
  return {
9
8
  "--bleed-x": map(inline, valueFn),
10
9
  "--bleed-y": map(block, valueFn),
@@ -11,28 +11,22 @@ transform(props, { map }) {
11
11
  position: "absolute",
12
12
  insetBlockStart: map(placement, (v) => {
13
13
  const [side] = v.split("-");
14
- const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
15
- return map2[side];
14
+ return { top: offsetY, middle: "50%", bottom: "auto" }[side];
16
15
  }),
17
16
  insetBlockEnd: map(placement, (v) => {
18
17
  const [side] = v.split("-");
19
- const map2 = { top: "auto", middle: "50%", bottom: offsetY };
20
- return map2[side];
18
+ return { top: "auto", middle: "50%", bottom: offsetY }[side];
21
19
  }),
22
20
  insetInlineStart: map(placement, (v) => {
23
21
  const [, align] = v.split("-");
24
- const map2 = { start: offsetX, center: "50%", end: "auto" };
25
- return map2[align];
22
+ return { start: offsetX, center: "50%", end: "auto" }[align];
26
23
  }),
27
24
  insetInlineEnd: map(placement, (v) => {
28
25
  const [, align] = v.split("-");
29
- const map2 = { start: "auto", center: "50%", end: offsetX };
30
- return map2[align];
26
+ return { start: "auto", center: "50%", end: offsetX }[align];
31
27
  }),
32
28
  translate: map(placement, (v) => {
33
- const [side, align] = v.split("-");
34
- const mapX = { start: "-50%", center: "-50%", end: "50%" };
35
- const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
29
+ const [side, align] = v.split("-"), mapX = { start: "-50%", center: "-50%", end: "50%" }, mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
36
30
  return `${mapX[align]} ${mapY[side]}`;
37
31
  }),
38
32
  ...rest
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridItemConfig = {
5
5
  transform(props, { map }) {
6
- const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
7
- const spanFn = (v) => v === "auto" ? v : `span ${v}`;
6
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props, spanFn = (v) => v === "auto" ? v : `span ${v}`;
8
7
  return {
9
8
  gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
10
9
  gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridConfig = {
5
5
  transform(props, { map, isCssUnit }) {
6
- const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
7
- const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
6
+ const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props, getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
8
7
  return {
9
8
  display: "grid",
10
9
  gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
@@ -9,7 +9,7 @@ transform(props) {
9
9
  position: "absolute",
10
10
  inset: "0",
11
11
  zIndex: "0",
12
- ...props["_before"]
12
+ ...props._before
13
13
  },
14
14
  ...props
15
15
  };
@@ -8,9 +8,9 @@ transform(props, { map, isCssUnit, isCssVar }) {
8
8
  alignSelf: "stretch",
9
9
  justifySelf: "stretch",
10
10
  flex: map(size, (v) => {
11
- if (v == null) return "1";
12
- const val = isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
13
- return `0 0 ${val}`;
11
+ if (v == null)
12
+ return "1";
13
+ return `0 0 ${isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`}`;
14
14
  }),
15
15
  ...rest
16
16
  };
@@ -4,7 +4,7 @@ import { css } from '../css/index.mjs';
4
4
  const visuallyHiddenConfig = {
5
5
  transform(props) {
6
6
  return {
7
- srOnly: true,
7
+ srOnly: !0,
8
8
  ...props
9
9
  };
10
10
  }}
@@ -169,7 +169,7 @@ export interface UtilityValues {
169
169
  transitionProperty: "common" | "colors" | "size" | "position" | "background";
170
170
  transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
171
171
  animation: Tokens["animations"];
172
- animationName: "bounce" | "iconArcRipple" | "iconArcSearch" | "iconArmReach" | "iconArmSwing" | "iconArrowWind" | "iconBellClapper" | "iconBellNudge" | "iconBellSwing" | "iconBoltStrike" | "iconBubbleTip" | "iconCapsuleBob" | "iconCheckDraw" | "iconCoreIn" | "iconCoreOut" | "iconDotBlink" | "iconDownloadDrop" | "iconGearTurn" | "iconKeyholePulse" | "iconKeyPress" | "iconLineWrite" | "iconMoonIn" | "iconMoonOut" | "iconMoonRock" | "iconPartSpread" | "iconPupilGlance" | "iconRayIn" | "iconRayOut" | "iconRayPulse" | "iconShackleLift" | "iconShackleShut" | "iconTrayGive" | "iconWavePull" | "iconWavePush" | "levelToastEnter" | "levelToastHold" | "levelToastHoldAgain" | "noticeShown" | "ping" | "pulse" | "spin" | "themeSwipeFromBottom" | "themeSwipeFromTop" | "toastCountdown";
172
+ animationName: "bounce" | "iconArcRipple" | "iconArcSearch" | "iconArmReach" | "iconArmSwing" | "iconArrowWind" | "iconBellClapper" | "iconBellNudge" | "iconBellSwing" | "iconBoltStrike" | "iconBubbleTip" | "iconCapsuleBob" | "iconCheckDraw" | "iconCoreIn" | "iconCoreOut" | "iconDotBlink" | "iconDownloadDrop" | "iconGearTurn" | "iconKeyholePulse" | "iconKeyPress" | "iconLineWrite" | "iconMoonIn" | "iconMoonOut" | "iconMoonRock" | "iconPartSpread" | "iconPupilGlance" | "iconRayIn" | "iconRayOut" | "iconRayPulse" | "iconShackleLift" | "iconShackleShut" | "iconSparkleTwinkle" | "iconSparkleWink" | "iconTrayGive" | "iconWavePull" | "iconWavePush" | "levelToastEnter" | "levelToastHold" | "levelToastHoldAgain" | "noticeShown" | "ping" | "pulse" | "spin" | "themeSwipeFromBottom" | "themeSwipeFromTop" | "toastCountdown";
173
173
  animationTimingFunction: Tokens["easings"];
174
174
  animationDuration: Tokens["durations"];
175
175
  animationDelay: Tokens["durations"];