@primer-io/primer-js 1.1.0 → 1.2.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.
@@ -121,23 +121,6 @@
121
121
  ],
122
122
  "references": []
123
123
  },
124
- {
125
- "name": "primer-icon",
126
- "description": "\n---\n",
127
- "attributes": [
128
- { "name": "color", "values": [] },
129
- {
130
- "name": "size",
131
- "values": [{ "name": "lg" }, { "name": "md" }, { "name": "sm" }]
132
- },
133
- {
134
- "name": "name",
135
- "description": "The name of the icon to draw - available names can be found under library.ts file",
136
- "values": [{ "name": "IconName" }]
137
- }
138
- ],
139
- "references": []
140
- },
141
124
  {
142
125
  "name": "primer-error-message",
143
126
  "description": "A reusable atomic error message component that displays error information\nwith appropriate styling and accessibility attributes.\n\nThis component is fully accessible and designed to work with screen readers.\nIt includes animations for visibility transitions.\n---\n\n\n### **CSS Parts:**\n - **error-message** - The main error message container\n- **error-icon** - The error icon container\n- **error-content** - The error text content",
@@ -160,6 +143,23 @@
160
143
  ],
161
144
  "references": []
162
145
  },
146
+ {
147
+ "name": "primer-icon",
148
+ "description": "\n---\n",
149
+ "attributes": [
150
+ { "name": "color", "values": [] },
151
+ {
152
+ "name": "size",
153
+ "values": [{ "name": "lg" }, { "name": "md" }, { "name": "sm" }]
154
+ },
155
+ {
156
+ "name": "name",
157
+ "description": "The name of the icon to draw - available names can be found under library.ts file",
158
+ "values": [{ "name": "IconName" }]
159
+ }
160
+ ],
161
+ "references": []
162
+ },
163
163
  {
164
164
  "name": "primer-input",
165
165
  "description": "A fully type-safe input component that wraps the native HTML input element\nwhile providing additional functionality and styling.\n---\n\n\n### **Events:**\n - **input** - Fired when the input value changes\n- **change** - Fired when the input value is committed\n- **focus** - Fired when the input receives focus\n- **blur** - Fired when the input loses focus\n- **invalid** - Fired when the input fails validation\n\n### **Methods:**\n - **focus(options: _FocusOptions_): _void_** - Focus the input element\n- **blur(): _void_** - Remove focus from the input element\n- **select(): _void_** - Select all text in the input element\n- **setSelectionRange(start: _number_, end: _number_, direction: _'forward' | 'backward' | 'none'_): _void_** - Set the selection range of the input element\n- **checkValidity(): _boolean_** - Check if the input element is valid\n- **reportValidity(): _boolean_** - Report the validity of the input element\n- **addEventListener(type: _K_, listener: _(ev: InputEventMap[K]) => void_, options: _boolean | AddEventListenerOptions_): _void_** - Type safe event dispatcher - allows consumers to use proper types\nwhen listening to events from this component\n- **removeEventListener(type: _K_, listener: _(ev: InputEventMap[K]) => void_, options: _boolean | EventListenerOptions_): _void_** - Type safe event dispatcher removal\n\n### **CSS Parts:**\n - **input** - The native input element",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@primer-io/primer-js",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -277,42 +277,6 @@
277
277
  ]
278
278
  }
279
279
  },
280
- {
281
- "name": "primer-icon",
282
- "description": "\n---\n",
283
- "doc-url": "",
284
- "attributes": [
285
- {
286
- "name": "color",
287
- "value": {
288
- "type": "string",
289
- "default": "'var(--primer-color-icon-primary)'"
290
- }
291
- },
292
- {
293
- "name": "size",
294
- "value": { "type": "'lg' | 'md' | 'sm'", "default": "'lg'" }
295
- },
296
- {
297
- "name": "name",
298
- "description": "The name of the icon to draw - available names can be found under library.ts file",
299
- "value": { "type": "IconName | undefined" }
300
- }
301
- ],
302
- "events": [],
303
- "js": {
304
- "properties": [
305
- { "name": "color", "type": "string" },
306
- { "name": "size", "type": "'lg' | 'md' | 'sm'" },
307
- {
308
- "name": "name",
309
- "description": "The name of the icon to draw - available names can be found under library.ts file",
310
- "type": "IconName | undefined"
311
- }
312
- ],
313
- "events": []
314
- }
315
- },
316
280
  {
317
281
  "name": "primer-error-message",
318
282
  "description": "A reusable atomic error message component that displays error information\nwith appropriate styling and accessibility attributes.\n\nThis component is fully accessible and designed to work with screen readers.\nIt includes animations for visibility transitions.\n---\n\n\n### **CSS Parts:**\n - **error-message** - The main error message container\n- **error-icon** - The error icon container\n- **error-content** - The error text content",
@@ -352,6 +316,42 @@
352
316
  "events": []
353
317
  }
354
318
  },
319
+ {
320
+ "name": "primer-icon",
321
+ "description": "\n---\n",
322
+ "doc-url": "",
323
+ "attributes": [
324
+ {
325
+ "name": "color",
326
+ "value": {
327
+ "type": "string",
328
+ "default": "'var(--primer-color-icon-primary)'"
329
+ }
330
+ },
331
+ {
332
+ "name": "size",
333
+ "value": { "type": "'lg' | 'md' | 'sm'", "default": "'lg'" }
334
+ },
335
+ {
336
+ "name": "name",
337
+ "description": "The name of the icon to draw - available names can be found under library.ts file",
338
+ "value": { "type": "IconName | undefined" }
339
+ }
340
+ ],
341
+ "events": [],
342
+ "js": {
343
+ "properties": [
344
+ { "name": "color", "type": "string" },
345
+ { "name": "size", "type": "'lg' | 'md' | 'sm'" },
346
+ {
347
+ "name": "name",
348
+ "description": "The name of the icon to draw - available names can be found under library.ts file",
349
+ "type": "IconName | undefined"
350
+ }
351
+ ],
352
+ "events": []
353
+ }
354
+ },
355
355
  {
356
356
  "name": "primer-input",
357
357
  "description": "A fully type-safe input component that wraps the native HTML input element\nwhile providing additional functionality and styling.\n---\n\n\n### **Events:**\n - **input** - Fired when the input value changes\n- **change** - Fired when the input value is committed\n- **focus** - Fired when the input receives focus\n- **blur** - Fired when the input loses focus\n- **invalid** - Fired when the input fails validation\n\n### **Methods:**\n - **focus(options: _FocusOptions_): _void_** - Focus the input element\n- **blur(): _void_** - Remove focus from the input element\n- **select(): _void_** - Select all text in the input element\n- **setSelectionRange(start: _number_, end: _number_, direction: _'forward' | 'backward' | 'none'_): _void_** - Set the selection range of the input element\n- **checkValidity(): _boolean_** - Check if the input element is valid\n- **reportValidity(): _boolean_** - Report the validity of the input element\n- **addEventListener(type: _K_, listener: _(ev: InputEventMap[K]) => void_, options: _boolean | AddEventListenerOptions_): _void_** - Type safe event dispatcher - allows consumers to use proper types\nwhen listening to events from this component\n- **removeEventListener(type: _K_, listener: _(ev: InputEventMap[K]) => void_, options: _boolean | EventListenerOptions_): _void_** - Type safe event dispatcher removal\n\n### **CSS Parts:**\n - **input** - The native input element",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@primer-io/primer-js",
3
3
  "description": "Primer Checkout is a web component-based SDK for building secure, customizable, and PCI-compliant checkout experiences. Designed with a modular architecture, it integrates seamlessly with any JavaScript framework and supports multiple payment methods.",
4
4
  "license": "BSD-3-Clause",
5
- "version": "1.1.0",
5
+ "version": "1.2.0",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",