@pie-lib/render-ui 8.0.1-next.20261006030823 → 8.0.1-next.20261006035546

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/color.d.ts CHANGED
@@ -3,11 +3,11 @@ export declare const defaults: {
3
3
  DISABLED: string;
4
4
  DISABLED_SECONDARY: string;
5
5
  DISABLED_TEXT: string;
6
- CORRECT: "#4caf50";
6
+ CORRECT: string;
7
7
  CORRECT_SECONDARY: "#e8f5e9";
8
8
  CORRECT_TERTIARY: string;
9
9
  CORRECT_WITH_ICON: string;
10
- INCORRECT: "#ff9800";
10
+ INCORRECT: string;
11
11
  INCORRECT_SECONDARY: "#ffebee";
12
12
  INCORRECT_WITH_ICON: string;
13
13
  MISSING: "#d32f2f";
@@ -50,7 +50,6 @@ export declare const defaults: {
50
50
  KEYPAD_EMPTY_PLACEHOLDER: string;
51
51
  KEYPAD_BUTTON_HOVER: string;
52
52
  KEYPAD_BUTTON_OPERATOR_HOVER: string;
53
- KEY_BOARD_FOCUS_INDICATOR: string;
54
53
  EDITOR_TOOLBAR: string;
55
54
  BUTTON_BORDER: string;
56
55
  BUTTON_HOVER_BG: string;
@@ -101,6 +100,8 @@ export declare const focusUnchecked: () => any;
101
100
  export declare const focusUncheckedBorder: () => any;
102
101
  export declare const buttonFocusOutline: () => any;
103
102
  export declare const focusOutline: () => any;
103
+ /** @deprecated The keyboard focus ring is {@link focusOutline}. */
104
+ export declare const keyBoardFocusIndicator: () => any;
104
105
  export declare const blueGrey100: () => any;
105
106
  export declare const blueGrey300: () => any;
106
107
  export declare const blueGrey600: () => any;
@@ -110,8 +111,8 @@ export declare const keypadButtonOperator: () => any;
110
111
  export declare const keypadEmptyPlaceholder: () => any;
111
112
  export declare const keypadButtonHover: () => any;
112
113
  export declare const keypadButtonOperatorHover: () => any;
114
+ export declare const keypadInk: () => string;
113
115
  export declare const editorToolbar: () => string;
114
- export declare const keyBoardFocusIndicator: () => any;
115
116
  export declare const buttonBorder: () => any;
116
117
  export declare const buttonHoverBg: () => any;
117
118
  export declare const visualElementsColors: {
package/dist/color.js CHANGED
@@ -1,81 +1,82 @@
1
1
  import { __exportAll as e } from "./_virtual/_rolldown/runtime.js";
2
- import { green as t, indigo as n, orange as ee, pink as r, red as te } from "@mui/material/colors";
2
+ import { green as t, indigo as n, pink as r, red as i } from "@mui/material/colors";
3
3
  //#region src/color.ts
4
- var ne = /* @__PURE__ */ e({
5
- background: () => k,
6
- backgroundDark: () => A,
7
- black: () => H,
8
- blueGrey100: () => Z,
9
- blueGrey300: () => ie,
10
- blueGrey600: () => ae,
11
- blueGrey900: () => oe,
4
+ var ee = /* @__PURE__ */ e({
5
+ background: () => O,
6
+ backgroundDark: () => k,
7
+ black: () => V,
8
+ blueGrey100: () => ie,
9
+ blueGrey300: () => ae,
10
+ blueGrey600: () => oe,
11
+ blueGrey900: () => se,
12
12
  border: () => F,
13
- borderDark: () => L,
14
- borderGray: () => R,
13
+ borderDark: () => re,
14
+ borderGray: () => L,
15
15
  borderLight: () => I,
16
- buttonBorder: () => me,
17
- buttonFocusOutline: () => Y,
18
- buttonHoverBg: () => he,
19
- correct: () => d,
20
- correctSecondary: () => f,
21
- correctTertiary: () => p,
22
- correctWithIcon: () => m,
23
- defaults: () => i,
24
- disabled: () => c,
25
- disabledSecondary: () => l,
26
- disabledText: () => u,
27
- dropdownBackground: () => M,
28
- editorToolbar: () => fe,
29
- fadedPrimary: () => w,
30
- focusChecked: () => G,
31
- focusCheckedBorder: () => K,
32
- focusOutline: () => X,
33
- focusUnchecked: () => q,
34
- focusUncheckedBorder: () => J,
35
- incorrect: () => h,
36
- incorrectSecondary: () => _,
37
- incorrectWithIcon: () => g,
38
- keyBoardFocusIndicator: () => pe,
39
- keypadButton: () => ce,
40
- keypadButtonHover: () => ue,
41
- keypadButtonOperator: () => le,
42
- keypadButtonOperatorHover: () => de,
43
- keypadEmptyPlaceholder: () => $,
44
- missing: () => v,
45
- missingWithIcon: () => y,
46
- primary: () => b,
47
- primaryDark: () => S,
48
- primaryLight: () => x,
49
- primaryText: () => C,
50
- secondary: () => T,
51
- secondaryBackground: () => j,
52
- secondaryDark: () => D,
53
- secondaryLight: () => E,
54
- secondaryText: () => O,
55
- surface: () => N,
56
- tableGrid: () => z,
57
- tableGridLight: () => B,
58
- tableStripe: () => V,
59
- tertiary: () => re,
16
+ buttonBorder: () => he,
17
+ buttonFocusOutline: () => J,
18
+ buttonHoverBg: () => ge,
19
+ correct: () => u,
20
+ correctSecondary: () => d,
21
+ correctTertiary: () => f,
22
+ correctWithIcon: () => p,
23
+ defaults: () => a,
24
+ disabled: () => te,
25
+ disabledSecondary: () => ne,
26
+ disabledText: () => l,
27
+ dropdownBackground: () => j,
28
+ editorToolbar: () => me,
29
+ fadedPrimary: () => C,
30
+ focusChecked: () => W,
31
+ focusCheckedBorder: () => G,
32
+ focusOutline: () => Y,
33
+ focusUnchecked: () => K,
34
+ focusUncheckedBorder: () => q,
35
+ incorrect: () => m,
36
+ incorrectSecondary: () => g,
37
+ incorrectWithIcon: () => h,
38
+ keyBoardFocusIndicator: () => X,
39
+ keypadButton: () => le,
40
+ keypadButtonHover: () => fe,
41
+ keypadButtonOperator: () => ue,
42
+ keypadButtonOperatorHover: () => pe,
43
+ keypadEmptyPlaceholder: () => de,
44
+ keypadInk: () => $,
45
+ missing: () => _,
46
+ missingWithIcon: () => v,
47
+ primary: () => y,
48
+ primaryDark: () => x,
49
+ primaryLight: () => b,
50
+ primaryText: () => S,
51
+ secondary: () => w,
52
+ secondaryBackground: () => A,
53
+ secondaryDark: () => E,
54
+ secondaryLight: () => T,
55
+ secondaryText: () => D,
56
+ surface: () => M,
57
+ tableGrid: () => R,
58
+ tableGridLight: () => z,
59
+ tableStripe: () => B,
60
+ tertiary: () => N,
60
61
  tertiaryLight: () => P,
61
- text: () => s,
62
- transparent: () => W,
63
- v: () => a,
64
- visualElementsColors: () => ge,
65
- white: () => U
66
- }), i = {
62
+ text: () => c,
63
+ transparent: () => U,
64
+ v: () => o,
65
+ visualElementsColors: () => _e,
66
+ white: () => H
67
+ }), a = {
67
68
  TEXT: "black",
68
69
  DISABLED: "grey",
69
70
  DISABLED_SECONDARY: "#ABABAB",
70
71
  DISABLED_TEXT: "#545454",
71
- CORRECT: t[500],
72
+ CORRECT: "#208537",
72
73
  CORRECT_SECONDARY: t[50],
73
74
  CORRECT_TERTIARY: "#0EA449",
74
75
  CORRECT_WITH_ICON: "#087D38",
75
- INCORRECT: ee[500],
76
- INCORRECT_SECONDARY: te[50],
76
+ INCORRECT: "#a65f00",
77
+ INCORRECT_SECONDARY: i[50],
77
78
  INCORRECT_WITH_ICON: "#BF0D00",
78
- MISSING: te[700],
79
+ MISSING: i[700],
79
80
  MISSING_WITH_ICON: "#6A78A1",
80
81
  PRIMARY: n[500],
81
82
  PRIMARY_LIGHT: n[200],
@@ -115,19 +116,18 @@ var ne = /* @__PURE__ */ e({
115
116
  KEYPAD_EMPTY_PLACEHOLDER: "rgba(245, 0, 87, 0.4)",
116
117
  KEYPAD_BUTTON_HOVER: "rgb(214, 218, 239)",
117
118
  KEYPAD_BUTTON_OPERATOR_HOVER: "rgb(255, 197, 217)",
118
- KEY_BOARD_FOCUS_INDICATOR: "#2B87FF",
119
119
  EDITOR_TOOLBAR: "#efefef",
120
120
  BUTTON_BORDER: "rgba(0, 0, 0, 0.23)",
121
121
  BUTTON_HOVER_BG: "rgba(0, 0, 0, 0.08)"
122
122
  };
123
- Object.freeze(i);
124
- var a = (e) => (...t) => {
123
+ Object.freeze(a);
124
+ var o = (e) => (...t) => {
125
125
  let n = t.pop();
126
126
  return t.reduceRight((t, n) => `var(--${e}-${n}, ${t})`, n);
127
- }, o = a("pie"), s = () => o("text", i.TEXT), c = () => o("disabled", i.DISABLED), l = () => o("disabled-secondary", i.DISABLED_SECONDARY), u = () => o("disabled-text", "text", i.DISABLED_TEXT), d = () => o("correct", i.CORRECT), f = () => o("correct-secondary", i.CORRECT_SECONDARY), p = () => o("correct-tertiary", i.CORRECT_TERTIARY), m = () => o("correct-icon", i.CORRECT_WITH_ICON), h = () => o("incorrect", i.INCORRECT), g = () => o("incorrect-icon", i.INCORRECT_WITH_ICON), _ = () => o("incorrect-secondary", i.INCORRECT_SECONDARY), v = () => o("missing", i.MISSING), y = () => o("missing-icon", i.MISSING_WITH_ICON), b = () => o("primary", i.PRIMARY), x = () => o("primary-light", i.PRIMARY_LIGHT), S = () => o("primary-dark", i.PRIMARY_DARK), C = () => o("primary-text", "text", i.TEXT), w = () => o("faded-primary", i.FADED_PRIMARY), T = () => o("secondary", i.SECONDARY), E = () => o("secondary-light", i.SECONDARY_LIGHT), D = () => o("secondary-dark", i.SECONDARY_DARK), O = () => o("secondary-text", "text", i.TEXT), k = () => o("background", i.BACKGROUND), A = () => o("background-dark", i.BACKGROUND_DARK), j = () => o("secondary-background", i.SECONDARY_BACKGROUND), M = () => o("dropdown-background", i.DROPDOWN_BACKGROUND), N = () => o("surface", i.SURFACE), re = () => o("tertiary", i.TERTIARY), P = () => o("tertiary-light", i.TERTIARY_LIGHT), F = () => o("border", i.BORDER), I = () => o("border-light", i.BORDER_LIGHT), L = () => o("border-dark", i.BORDER_DARK), R = () => o("border-gray", i.BORDER_GRAY), z = () => o("table-grid", "text", i.TABLE_GRID), B = () => o("table-grid-light", "border-light", i.TABLE_GRID_LIGHT), V = () => o("table-stripe", "background-dark", i.TABLE_STRIPE), H = () => o("black", i.BLACK), U = () => o("white", i.WHITE), W = () => i.TRANSPARENT, G = () => o("focus-checked", i.FOCUS_CHECKED), K = () => o("focus-checked-border", i.FOCUS_CHECKED_BORDER), q = () => o("focus-unchecked", i.FOCUS_UNCHECKED), J = () => o("focus-unchecked-border", i.FOCUS_UNCHECKED_BORDER), Y = () => o("button-focus-outline", i.BUTTON_FOCUS_OUTLINE), X = () => o("focus-outline", "button-focus-outline", "focus-checked-border", i.FOCUS_CHECKED_BORDER), Z = () => o("blue-grey-100", i.BLUE_GREY100), ie = () => o("blue-grey-300", i.BLUE_GREY300), ae = () => o("blue-grey-600", i.BLUE_GREY600), oe = () => o("blue-grey-900", i.BLUE_GREY900), se = (e) => {
127
+ }, s = o("pie"), c = () => s("text", a.TEXT), te = () => s("disabled", a.DISABLED), ne = () => s("disabled-secondary", a.DISABLED_SECONDARY), l = () => s("disabled-text", "text", a.DISABLED_TEXT), u = () => s("correct", a.CORRECT), d = () => s("correct-secondary", a.CORRECT_SECONDARY), f = () => s("correct-tertiary", a.CORRECT_TERTIARY), p = () => s("correct-icon", a.CORRECT_WITH_ICON), m = () => s("incorrect", a.INCORRECT), h = () => s("incorrect-icon", a.INCORRECT_WITH_ICON), g = () => s("incorrect-secondary", a.INCORRECT_SECONDARY), _ = () => s("missing", a.MISSING), v = () => s("missing-icon", a.MISSING_WITH_ICON), y = () => s("primary", a.PRIMARY), b = () => s("primary-light", a.PRIMARY_LIGHT), x = () => s("primary-dark", a.PRIMARY_DARK), S = () => s("primary-text", "text", a.TEXT), C = () => s("faded-primary", a.FADED_PRIMARY), w = () => s("secondary", a.SECONDARY), T = () => s("secondary-light", a.SECONDARY_LIGHT), E = () => s("secondary-dark", a.SECONDARY_DARK), D = () => s("secondary-text", "text", a.TEXT), O = () => s("background", a.BACKGROUND), k = () => s("background-dark", a.BACKGROUND_DARK), A = () => s("secondary-background", a.SECONDARY_BACKGROUND), j = () => s("dropdown-background", a.DROPDOWN_BACKGROUND), M = () => s("surface", a.SURFACE), N = () => s("tertiary", a.TERTIARY), P = () => s("tertiary-light", a.TERTIARY_LIGHT), F = () => s("border", a.BORDER), I = () => s("border-light", a.BORDER_LIGHT), re = () => s("border-dark", a.BORDER_DARK), L = () => s("border-gray", a.BORDER_GRAY), R = () => s("table-grid", "text", a.TABLE_GRID), z = () => s("table-grid-light", "border-light", a.TABLE_GRID_LIGHT), B = () => s("table-stripe", "background-dark", a.TABLE_STRIPE), V = () => s("black", a.BLACK), H = () => s("white", a.WHITE), U = () => a.TRANSPARENT, W = () => s("focus-checked", a.FOCUS_CHECKED), G = () => s("focus-checked-border", a.FOCUS_CHECKED_BORDER), K = () => s("focus-unchecked", a.FOCUS_UNCHECKED), q = () => s("focus-unchecked-border", a.FOCUS_UNCHECKED_BORDER), J = () => s("button-focus-outline", a.BUTTON_FOCUS_OUTLINE), Y = () => s("focus-outline", "button-focus-outline", "focus-checked-border", a.FOCUS_CHECKED_BORDER), X = Y, ie = () => s("blue-grey-100", a.BLUE_GREY100), ae = () => s("blue-grey-300", a.BLUE_GREY300), oe = () => s("blue-grey-600", a.BLUE_GREY600), se = () => s("blue-grey-900", a.BLUE_GREY900), ce = (e) => {
128
128
  let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
129
129
  return t ? t.slice(1).map((e) => parseInt(e, 16)) : e.match(/\d+/g).slice(0, 3).map(Number);
130
- }, Q = (e, t) => `color-mix(in srgb, rgb(${se(e).map((e) => (e - 255 * (1 - t)) / t).join(" ")}) ${t * 100}%, ${o("background", i.WHITE)})`, ce = () => o("keypad-button", Q(i.KEYPAD_BUTTON, .5)), le = () => o("keypad-button-operator", Q(i.KEYPAD_BUTTON_OPERATOR, .5)), $ = () => o("keypad-empty-placeholder", i.KEYPAD_EMPTY_PLACEHOLDER), ue = () => o("keypad-button-hover", Q(i.KEYPAD_BUTTON_HOVER, .25)), de = () => o("keypad-button-operator-hover", Q(i.KEYPAD_BUTTON_OPERATOR_HOVER, .25)), fe = () => Q(i.EDITOR_TOOLBAR, .125), pe = () => o("keyboard-focus-indicator", i.KEY_BOARD_FOCUS_INDICATOR), me = () => o("button-border", i.BUTTON_BORDER), he = () => o("button-hover-bg", i.BUTTON_HOVER_BG), ge = {
130
+ }, Z = (e, t) => `color-mix(in srgb, rgb(${ce(e).map((e) => (e - 255 * (1 - t)) / t).join(" ")}) ${t * 100}%, ${s("background", a.WHITE)})`, le = () => s("keypad-button", Z(a.KEYPAD_BUTTON, .5)), ue = () => s("keypad-button-operator", Z(a.KEYPAD_BUTTON_OPERATOR, .5)), de = () => s("keypad-empty-placeholder", a.KEYPAD_EMPTY_PLACEHOLDER), fe = () => s("keypad-button-hover", Z(a.KEYPAD_BUTTON_HOVER, .25)), pe = () => s("keypad-button-operator-hover", Z(a.KEYPAD_BUTTON_OPERATOR_HOVER, .25)), Q = "clamp(0.6, (r + g + b) / 450, 1)", $ = () => `rgb(from ${c()} calc(r * ${Q}) calc(g * ${Q}) calc(b * ${Q}))`, me = () => Z(a.EDITOR_TOOLBAR, .125), he = () => s("button-border", a.BUTTON_BORDER), ge = () => s("button-hover-bg", a.BUTTON_HOVER_BG), _e = {
131
131
  AXIS_LINE_COLOR: "#5A53C9",
132
132
  ROLLOVER_FILL_BAR_COLOR: "#050F2D",
133
133
  GRIDLINES_COLOR: "#8E88EA",
@@ -135,4 +135,4 @@ var a = (e) => (...t) => {
135
135
  SHAPES_FILL_COLOR: "#7986cb"
136
136
  };
137
137
  //#endregion
138
- export { k as background, A as backgroundDark, H as black, Z as blueGrey100, ie as blueGrey300, ae as blueGrey600, oe as blueGrey900, F as border, L as borderDark, R as borderGray, I as borderLight, me as buttonBorder, Y as buttonFocusOutline, he as buttonHoverBg, ne as color_exports, d as correct, f as correctSecondary, p as correctTertiary, m as correctWithIcon, i as defaults, c as disabled, l as disabledSecondary, u as disabledText, M as dropdownBackground, fe as editorToolbar, w as fadedPrimary, G as focusChecked, K as focusCheckedBorder, X as focusOutline, q as focusUnchecked, J as focusUncheckedBorder, h as incorrect, _ as incorrectSecondary, g as incorrectWithIcon, pe as keyBoardFocusIndicator, ce as keypadButton, ue as keypadButtonHover, le as keypadButtonOperator, de as keypadButtonOperatorHover, $ as keypadEmptyPlaceholder, v as missing, y as missingWithIcon, b as primary, S as primaryDark, x as primaryLight, C as primaryText, T as secondary, j as secondaryBackground, D as secondaryDark, E as secondaryLight, O as secondaryText, N as surface, z as tableGrid, B as tableGridLight, V as tableStripe, re as tertiary, P as tertiaryLight, s as text, W as transparent, a as v, ge as visualElementsColors, U as white };
138
+ export { O as background, k as backgroundDark, V as black, ie as blueGrey100, ae as blueGrey300, oe as blueGrey600, se as blueGrey900, F as border, re as borderDark, L as borderGray, I as borderLight, he as buttonBorder, J as buttonFocusOutline, ge as buttonHoverBg, ee as color_exports, u as correct, d as correctSecondary, f as correctTertiary, p as correctWithIcon, a as defaults, te as disabled, ne as disabledSecondary, l as disabledText, j as dropdownBackground, me as editorToolbar, C as fadedPrimary, W as focusChecked, G as focusCheckedBorder, Y as focusOutline, K as focusUnchecked, q as focusUncheckedBorder, m as incorrect, g as incorrectSecondary, h as incorrectWithIcon, X as keyBoardFocusIndicator, le as keypadButton, fe as keypadButtonHover, ue as keypadButtonOperator, pe as keypadButtonOperatorHover, de as keypadEmptyPlaceholder, $ as keypadInk, _ as missing, v as missingWithIcon, y as primary, x as primaryDark, b as primaryLight, S as primaryText, w as secondary, A as secondaryBackground, E as secondaryDark, T as secondaryLight, D as secondaryText, M as surface, R as tableGrid, z as tableGridLight, B as tableStripe, N as tertiary, P as tertiaryLight, c as text, U as transparent, o as v, _e as visualElementsColors, H as white };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/render-ui",
3
- "version": "8.0.1-next.20261006030823",
3
+ "version": "8.0.1-next.20261006035546",
4
4
  "description": "Some shared ui elements when rendering - but not worthy of their own package yet.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,11 +13,11 @@
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
15
  "@pie-lib/icons": "5.0.1-next.20261004165705",
16
- "@pie-lib/translator": "5.0.1-next.20261006030823",
16
+ "@pie-lib/translator": "5.0.1-next.20261006032932",
17
17
  "debug": "^4.1.1",
18
18
  "prop-types": "^15.7.2",
19
19
  "react-transition-group": "^4.4.5",
20
- "@pie-element/shared-math-rendering-mathjax": "0.1.2-next.20261003161149",
20
+ "@pie-element/shared-math-rendering-mathjax": "0.1.2-next.20261006032932",
21
21
  "@pie-element/shared-lodash": "0.1.2-next.20261005190856"
22
22
  },
23
23
  "type": "module",