@grayscale-dev/dragon 0.1.6 → 0.1.8

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.
@@ -17,24 +17,24 @@
17
17
  },
18
18
  {
19
19
  "name": "placeholder",
20
- "description": "Placeholder text shown when value is empty. Hidden in floating label mode unless regex placeholder is enabled while focused.",
20
+ "description": "Placeholder text shown when value is empty. Hidden in floating label mode unless regex-placeholder is provided while focused.",
21
21
  "type": "string",
22
22
  "default": "",
23
23
  "control": "text"
24
24
  },
25
25
  {
26
26
  "name": "regex",
27
- "description": "Regex-like mask definition. Supported patterns include escaped literals and quantified slots such as ^\\(\\d{3}\\)\\s\\d{3}-\\d{4}$.",
27
+ "description": "JavaScript regular expression used by the IMask regex engine.",
28
28
  "type": "string",
29
29
  "default": "",
30
30
  "control": "text"
31
31
  },
32
32
  {
33
- "name": "show-regex-placeholder",
34
- "description": "If true and regex is valid, placeholder is generated from the regex mask (for floating labels, shown only while focused).",
35
- "type": "boolean",
36
- "default": false,
37
- "control": "boolean"
33
+ "name": "regex-placeholder",
34
+ "description": "Explicit placeholder text for regex mode. If omitted, regex placeholder is not shown.",
35
+ "type": "string",
36
+ "default": "",
37
+ "control": "text"
38
38
  },
39
39
  {
40
40
  "name": "name",
@@ -106,15 +106,15 @@
106
106
  },
107
107
  {
108
108
  "name": "regex",
109
- "description": "Mask source pattern used to constrain input formatting.",
109
+ "description": "Regex source pattern used for masking.",
110
110
  "type": "string",
111
111
  "default": ""
112
112
  },
113
113
  {
114
- "name": "showRegexPlaceholder",
115
- "description": "Enables regex-derived placeholder text.",
116
- "type": "boolean",
117
- "default": false
114
+ "name": "regexPlaceholder",
115
+ "description": "Explicit placeholder text used when regex-placeholder is provided.",
116
+ "type": "string",
117
+ "default": ""
118
118
  },
119
119
  {
120
120
  "name": "labelPosition",
@@ -372,11 +372,11 @@
372
372
  "order": 1
373
373
  },
374
374
  {
375
- "id": "show-regex-placeholder",
375
+ "id": "regex-placeholder",
376
376
  "kind": "attribute",
377
- "ref": "show-regex-placeholder",
377
+ "ref": "regex-placeholder",
378
378
  "group": "mask",
379
- "label": "Show Regex Placeholder",
379
+ "label": "Regex Placeholder",
380
380
  "order": 2
381
381
  },
382
382
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grayscale-dev/dragon",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Framework-agnostic Web Components built with Lit.",
5
5
  "type": "module",
6
6
  "files": [
@@ -26,6 +26,9 @@
26
26
  "preview": "vite preview",
27
27
  "test": "npm run build:manifest && web-test-runner --config web-test-runner.config.mjs"
28
28
  },
29
+ "dependencies": {
30
+ "imask": "^7.6.1"
31
+ },
29
32
  "devDependencies": {
30
33
  "@open-wc/testing": "^4.0.0",
31
34
  "@types/node": "^22.10.0",