@examplary/ui 1.40.0 → 1.40.1

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.
@@ -64,8 +64,9 @@ export declare const formatQuestionType: (type: QuestionType, i18n: any) => {
64
64
  };
65
65
  };
66
66
  };
67
+ metadata?: Record<string, string | number | boolean>;
67
68
  stylesheet?: string;
68
69
  index?: number;
69
- metadata?: Record<string, string | number | boolean>;
70
+ isDefault?: boolean;
70
71
  };
71
72
  export type FormattedQuestionType = ReturnType<typeof formatQuestionType>;
@@ -28,7 +28,7 @@ var defaultSwatches = [
28
28
  var ColorPicker = function (_a) {
29
29
  var value = _a.value, _b = _a.swatches, swatches = _b === void 0 ? defaultSwatches : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? "#ffffff" : _c, _d = _a.customLabelTitle, customLabelTitle = _d === void 0 ? "Custom" : _d, _e = _a.allowCustom, allowCustom = _e === void 0 ? true : _e, swatchClassName = _a.swatchClassName, className = _a.className, onChange = _a.onChange;
30
30
  var parsedValue = useMemo(function () {
31
- return (value || defaultValue).toLowerCase().trim();
31
+ return (value || defaultValue || "#ffffff").toLowerCase().trim();
32
32
  }, [value, defaultValue]);
33
33
  var availableSwatches = useMemo(function () { return Array.from(new Set(__spreadArray([defaultValue], swatches, true).filter(Boolean))); }, [defaultValue, swatches]);
34
34
  var onChangeProxy = function (newValue) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@examplary/ui",
3
3
  "description": "UI components for the Examplary testing platform.",
4
4
  "packageManager": "yarn@4.5.3",
5
- "version": "1.40.0",
5
+ "version": "1.40.1",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "files": [
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@tailwindcss/cli": "^4.1.11",
79
- "tailwindcss": "^4.1.14",
79
+ "tailwindcss": "^4.2.1",
80
80
  "typescript": "^5.9.3"
81
81
  },
82
82
  "homepage": "https://developers.examplary.ai/",