@plastic-js/tsumiki 0.1.56 → 0.1.57

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.
@@ -4,6 +4,7 @@ import { css } from "@emotion/css";
4
4
  import { splitProps } from "@plastic-js/plastic";
5
5
  //#region src/components/MoneyInput.jsx
6
6
  var _tmpl = template("<span></span>");
7
+ var affixPrefixClass = css({ color: "var(--tsu-fg)" });
7
8
  var affixSuffixClass = css({
8
9
  color: "var(--tsu-fg)",
9
10
  fontWeight: "var(--tsu-font-weight-semibold)",
@@ -38,8 +39,11 @@ var MoneyInput = (props) => {
38
39
  get placeholder() {
39
40
  return local.placeholder;
40
41
  },
41
- get prefix() {
42
- return local.currency ?? "₱";
42
+ prefix: () => () => {
43
+ const _el0 = _tmpl.cloneNode(true);
44
+ insert(_el0, () => local.currency ?? "₱");
45
+ setProp(_el0, "className", () => affixPrefixClass);
46
+ return _el0;
43
47
  },
44
48
  suffix: () => {
45
49
  const affix = read(local.affix);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-js/tsumiki",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "A UI component library for Plastic JS.",
5
5
  "license": "MIT",
6
6
  "author": "tigre",