@purpurds/field-helper-text 8.13.0 → 8.14.0

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime");function c(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var p={exports:{}};var f;function d(){return f||(f=1,(function(r){(function(){var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var s=arguments[t];s&&(e=i(e,u.call(this,s)))}return e}function u(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var s in e)o.call(e,s)&&e[s]&&(t=i(t,this&&this[s]||s));return t}function i(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(p)),p.exports}var h=d();const x=c(h),b={"purpur-field-helper-text":"_purpur-field-helper-text_11nsh_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_11nsh_9","purpur-field-helper-text--negative":"_purpur-field-helper-text--negative_11nsh_12"},v=x.bind(b),l="purpur-field-helper-text",_=({children:r,className:o,disabled:n,id:u,negative:i,...e})=>{const t=v(o,l,{[`${l}--disabled`]:n,[`${l}--negative`]:i});return a.jsx("span",{id:u,className:t,...e,children:r})};exports.FieldHelperText=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime");function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var p={exports:{}};var c;function d(){return c||(c=1,(function(r){(function(){var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,u.call(this,n)))}return e}function u(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return i.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,this&&this[n]||n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(p)),p.exports}var h=d();const x=a(h),b={"purpur-field-helper-text":"_purpur-field-helper-text_1ociq_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_1ociq_9","purpur-field-helper-text--negative":"_purpur-field-helper-text--negative_1ociq_12"},v=x.bind(b),l="purpur-field-helper-text",_=({children:r,className:o,disabled:i,id:u,negative:s,...e})=>{const t=v(o,l,{[`${l}--disabled`]:i,[`${l}--negative`]:s});return f.jsx("span",{id:u,className:t,...e,children:r})};exports.FieldHelperText=_;
2
2
  //# sourceMappingURL=field-helper-text.cjs.js.map
@@ -1,5 +1,5 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- function c(r) {
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ function a(r) {
3
3
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
4
  }
5
5
  var u = { exports: {} };
@@ -7,15 +7,15 @@ var f;
7
7
  function d() {
8
8
  return f || (f = 1, (function(r) {
9
9
  (function() {
10
- var p = {}.hasOwnProperty;
10
+ var o = {}.hasOwnProperty;
11
11
  function n() {
12
12
  for (var t = "", e = 0; e < arguments.length; e++) {
13
- var s = arguments[e];
14
- s && (t = i(t, o.call(this, s)));
13
+ var i = arguments[e];
14
+ i && (t = s(t, p.call(this, i)));
15
15
  }
16
16
  return t;
17
17
  }
18
- function o(t) {
18
+ function p(t) {
19
19
  if (typeof t == "string" || typeof t == "number")
20
20
  return this && this[t] || t;
21
21
  if (typeof t != "object")
@@ -25,11 +25,11 @@ function d() {
25
25
  if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
26
26
  return t.toString();
27
27
  var e = "";
28
- for (var s in t)
29
- p.call(t, s) && t[s] && (e = i(e, this && this[s] || s));
28
+ for (var i in t)
29
+ o.call(t, i) && t[i] && (e = s(e, this && this[i] || i));
30
30
  return e;
31
31
  }
32
- function i(t, e) {
32
+ function s(t, e) {
33
33
  return e ? t ? t + " " + e : t + e : t;
34
34
  }
35
35
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -37,23 +37,23 @@ function d() {
37
37
  })(u)), u.exports;
38
38
  }
39
39
  var h = d();
40
- const x = /* @__PURE__ */ c(h), _ = {
41
- "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
42
- "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
43
- "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
40
+ const x = /* @__PURE__ */ a(h), _ = {
41
+ "purpur-field-helper-text": "_purpur-field-helper-text_1ociq_1",
42
+ "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_1ociq_9",
43
+ "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_1ociq_12"
44
44
  }, b = x.bind(_), l = "purpur-field-helper-text", m = ({
45
45
  children: r,
46
- className: p,
46
+ className: o,
47
47
  disabled: n,
48
- id: o,
49
- negative: i,
48
+ id: p,
49
+ negative: s,
50
50
  ...t
51
51
  }) => {
52
- const e = b(p, l, {
52
+ const e = b(o, l, {
53
53
  [`${l}--disabled`]: n,
54
- [`${l}--negative`]: i
54
+ [`${l}--negative`]: s
55
55
  });
56
- return /* @__PURE__ */ a("span", { id: o, className: e, ...t, children: r });
56
+ return /* @__PURE__ */ c("span", { id: p, className: e, ...t, children: r });
57
57
  };
58
58
  export {
59
59
  m as FieldHelperText
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- ._purpur-field-helper-text_11nsh_1{font-family:var(--purpur-typography-family-default);font-weight:var(--purpur-typography-weight-normal);font-size:var(--purpur-typography-scale-75);line-height:var(--purpur-typography-line-height-loose);color:var(--purpur-color-text-medium);display:block}._purpur-field-helper-text--disabled_11nsh_9{color:var(--purpur-color-text-weak)}._purpur-field-helper-text--negative_11nsh_12{color:var(--purpur-color-text-default-negative)}._purpur-field-helper-text_11nsh_1._purpur-field-helper-text--negative_11nsh_12._purpur-field-helper-text--disabled_11nsh_9{color:var(--purpur-color-text-weak-negative)}
1
+ ._purpur-field-helper-text_1ociq_1{font-family:var(--purpur-typography-family-default);font-weight:var(--purpur-typography-weight-normal);font-size:var(--purpur-typography-scale-75);line-height:var(--purpur-typography-line-height-loose);color:var(--purpur-color-text-medium);display:block}._purpur-field-helper-text--disabled_1ociq_9{color:var(--purpur-color-text-weak)}._purpur-field-helper-text--negative_1ociq_12{color:var(--purpur-color-text-medium-negative)}._purpur-field-helper-text_1ociq_1._purpur-field-helper-text--negative_1ociq_12._purpur-field-helper-text--disabled_1ociq_9{color:var(--purpur-color-text-weak-negative)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/field-helper-text",
3
- "version": "8.13.0",
3
+ "version": "8.14.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/field-helper-text.cjs.js",
6
6
  "types": "./dist/field-helper-text.d.ts",
@@ -16,9 +16,9 @@
16
16
  "source": "src/field-helper-text.tsx",
17
17
  "dependencies": {
18
18
  "classnames": "~2.5.1",
19
- "@purpurds/common-types": "8.13.0",
20
- "@purpurds/paragraph": "8.13.0",
21
- "@purpurds/tokens": "8.13.0"
19
+ "@purpurds/common-types": "8.14.0",
20
+ "@purpurds/paragraph": "8.14.0",
21
+ "@purpurds/tokens": "8.14.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@storybook/react-vite": "10.1.11",
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &--negative {
14
- color: var(--purpur-color-text-default-negative);
14
+ color: var(--purpur-color-text-medium-negative);
15
15
  }
16
16
 
17
17
  &#{$root}--negative#{$root}--disabled {