@youngonesworks/ui 0.1.26 → 0.1.27

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/index.js CHANGED
@@ -140303,15 +140303,11 @@ const CSS_VARIABLE_KEYS = [
140303
140303
  "--color-warning-dark"
140304
140304
  ];
140305
140305
  const getCSSVariable = (variable) => {
140306
- if (typeof window !== "undefined") {
140307
- return getComputedStyle(document.documentElement).getPropertyValue(variable).trim();
140308
- }
140306
+ if (typeof window !== "undefined") return getComputedStyle(document.documentElement).getPropertyValue(variable).trim();
140309
140307
  return "";
140310
140308
  };
140311
140309
  const setCSSVariable = (variable, value) => {
140312
- if (typeof window !== "undefined") {
140313
- document.documentElement.style.setProperty(variable, value);
140314
- }
140310
+ if (typeof window !== "undefined") document.documentElement.style.setProperty(variable, value);
140315
140311
  };
140316
140312
 
140317
140313
  //#endregion