@prioticket/design-system-web 1.0.7 → 1.1.0-beta.2

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,6 +1,6 @@
1
1
  # @prioticket/design-system-web Components
2
2
 
3
- Version: 1.0.7
3
+ Version: 1.1.0-beta.2
4
4
 
5
5
  ### <pd-button> (PdButton)
6
6
 
package/README.md CHANGED
@@ -321,18 +321,37 @@ Choose `theme-only.css` to use your existing fonts, or `theme-with-fonts.css` fo
321
321
 
322
322
  ```bash
323
323
  # Install dependencies
324
- npm install
324
+ yarn install
325
325
 
326
326
  # Start development server
327
- npm run dev
327
+ yarn dev
328
328
 
329
329
  # Build the library
330
- npm run build
330
+ yarn build
331
331
 
332
332
  # Run Storybook
333
- npm run storybook
333
+ yarn storybook
334
334
  ```
335
335
 
336
+ ## Contributing
337
+
338
+ This project is open for internal contributions. See our documentation:
339
+
340
+ - **[CONTRIBUTING.md](CONTRIBUTING.md)** - Complete developer guide for adding components and features
341
+ - **[RELEASE-SETUP.md](RELEASE-SETUP.md)** - CI/CD setup and release workflow
342
+
343
+ ### Quick Start for Contributors
344
+
345
+ 1. Clone the repository
346
+ 2. Install dependencies: `yarn install`
347
+ 3. Create a feature branch from `development`
348
+ 4. Make your changes and test in Storybook: `yarn storybook`
349
+ 5. Write tests: `yarn test`
350
+ 6. Commit using [Conventional Commits](https://www.conventionalcommits.org/): `git commit -m "feat: Add new feature"`
351
+ 7. Push and create a Merge Request to `development`
352
+
353
+ Our automated CI/CD will handle versioning and publishing based on your commit messages.
354
+
336
355
  ## Source Code
337
356
 
338
357
  The source code for this library is proprietary and maintained in a private repository at Prioticket.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "package": {
3
3
  "name": "@prioticket/design-system-web",
4
- "version": "1.0.7",
4
+ "version": "1.1.0-beta.2",
5
5
  "description": "",
6
6
  "installation": "npm install @prioticket/design-system-web"
7
7
  },
8
- "generatedAt": "2025-09-30T13:55:32.011Z",
8
+ "generatedAt": "2025-11-12T19:28:18.786Z",
9
9
  "components": {
10
10
  "pd-button": {
11
11
  "tagName": "pd-button",
@@ -6266,6 +6266,357 @@
6266
6266
  }
6267
6267
  ]
6268
6268
  },
6269
+ {
6270
+ "kind": "javascript-module",
6271
+ "path": "src/test/setup.ts",
6272
+ "declarations": [],
6273
+ "exports": []
6274
+ },
6275
+ {
6276
+ "kind": "javascript-module",
6277
+ "path": "src/test/test-utils.ts",
6278
+ "declarations": [
6279
+ {
6280
+ "kind": "function",
6281
+ "name": "waitForComponent",
6282
+ "return": {
6283
+ "type": {
6284
+ "text": "Promise<void>"
6285
+ }
6286
+ },
6287
+ "parameters": [
6288
+ {
6289
+ "name": "tagName",
6290
+ "type": {
6291
+ "text": "string"
6292
+ }
6293
+ },
6294
+ {
6295
+ "name": "timeout",
6296
+ "default": "5000"
6297
+ }
6298
+ ],
6299
+ "description": "Wait for a web component to be defined and upgraded"
6300
+ },
6301
+ {
6302
+ "kind": "function",
6303
+ "name": "createComponentFixture",
6304
+ "return": {
6305
+ "type": {
6306
+ "text": "Promise<T>"
6307
+ }
6308
+ },
6309
+ "parameters": [
6310
+ {
6311
+ "name": "tagName",
6312
+ "type": {
6313
+ "text": "string"
6314
+ }
6315
+ },
6316
+ {
6317
+ "name": "template",
6318
+ "type": {
6319
+ "text": "any"
6320
+ }
6321
+ }
6322
+ ],
6323
+ "description": "Create a test fixture for a web component\nEnsures the component is defined before creating the fixture"
6324
+ },
6325
+ {
6326
+ "kind": "function",
6327
+ "name": "waitForComponentUpdate",
6328
+ "return": {
6329
+ "type": {
6330
+ "text": "Promise<void>"
6331
+ }
6332
+ },
6333
+ "parameters": [
6334
+ {
6335
+ "name": "element",
6336
+ "type": {
6337
+ "text": "any"
6338
+ }
6339
+ },
6340
+ {
6341
+ "name": "timeout",
6342
+ "default": "1000"
6343
+ }
6344
+ ],
6345
+ "description": "Wait for component to complete its update cycle"
6346
+ },
6347
+ {
6348
+ "kind": "function",
6349
+ "name": "userInteraction",
6350
+ "return": {
6351
+ "type": {
6352
+ "text": "Promise<void>"
6353
+ }
6354
+ },
6355
+ "parameters": [
6356
+ {
6357
+ "name": "callback",
6358
+ "type": {
6359
+ "text": "() => void"
6360
+ }
6361
+ },
6362
+ {
6363
+ "name": "delay",
6364
+ "default": "50"
6365
+ }
6366
+ ],
6367
+ "description": "Simulate user interaction with a delay"
6368
+ },
6369
+ {
6370
+ "kind": "function",
6371
+ "name": "queryShadowRoot",
6372
+ "return": {
6373
+ "type": {
6374
+ "text": "T | null"
6375
+ }
6376
+ },
6377
+ "parameters": [
6378
+ {
6379
+ "name": "element",
6380
+ "type": {
6381
+ "text": "HTMLElement"
6382
+ }
6383
+ },
6384
+ {
6385
+ "name": "selector",
6386
+ "type": {
6387
+ "text": "string"
6388
+ }
6389
+ }
6390
+ ],
6391
+ "description": "Query shadow DOM"
6392
+ },
6393
+ {
6394
+ "kind": "function",
6395
+ "name": "queryShadowRootAll",
6396
+ "return": {
6397
+ "type": {
6398
+ "text": "T[]"
6399
+ }
6400
+ },
6401
+ "parameters": [
6402
+ {
6403
+ "name": "element",
6404
+ "type": {
6405
+ "text": "HTMLElement"
6406
+ }
6407
+ },
6408
+ {
6409
+ "name": "selector",
6410
+ "type": {
6411
+ "text": "string"
6412
+ }
6413
+ }
6414
+ ],
6415
+ "description": "Query all in shadow DOM"
6416
+ },
6417
+ {
6418
+ "kind": "function",
6419
+ "name": "getShadowStyle",
6420
+ "return": {
6421
+ "type": {
6422
+ "text": "string"
6423
+ }
6424
+ },
6425
+ "parameters": [
6426
+ {
6427
+ "name": "element",
6428
+ "type": {
6429
+ "text": "HTMLElement"
6430
+ }
6431
+ },
6432
+ {
6433
+ "name": "property",
6434
+ "type": {
6435
+ "text": "string"
6436
+ }
6437
+ }
6438
+ ],
6439
+ "description": "Get computed styles from shadow DOM element"
6440
+ },
6441
+ {
6442
+ "kind": "function",
6443
+ "name": "dispatchEventAndWait",
6444
+ "return": {
6445
+ "type": {
6446
+ "text": "Promise<CustomEvent>"
6447
+ }
6448
+ },
6449
+ "parameters": [
6450
+ {
6451
+ "name": "element",
6452
+ "type": {
6453
+ "text": "HTMLElement"
6454
+ }
6455
+ },
6456
+ {
6457
+ "name": "eventName",
6458
+ "type": {
6459
+ "text": "string"
6460
+ }
6461
+ },
6462
+ {
6463
+ "name": "detail",
6464
+ "optional": true,
6465
+ "type": {
6466
+ "text": "any"
6467
+ }
6468
+ }
6469
+ ],
6470
+ "description": "Dispatch a custom event and wait for it to be handled"
6471
+ },
6472
+ {
6473
+ "kind": "function",
6474
+ "name": "waitForVisible",
6475
+ "return": {
6476
+ "type": {
6477
+ "text": "Promise<void>"
6478
+ }
6479
+ },
6480
+ "parameters": [
6481
+ {
6482
+ "name": "element",
6483
+ "type": {
6484
+ "text": "HTMLElement"
6485
+ }
6486
+ },
6487
+ {
6488
+ "name": "timeout",
6489
+ "default": "3000"
6490
+ }
6491
+ ],
6492
+ "description": "Wait for an element to be visible"
6493
+ },
6494
+ {
6495
+ "kind": "function",
6496
+ "name": "getCSSCustomProperties",
6497
+ "return": {
6498
+ "type": {
6499
+ "text": "Record<string, string>"
6500
+ }
6501
+ },
6502
+ "parameters": [
6503
+ {
6504
+ "name": "element",
6505
+ "type": {
6506
+ "text": "HTMLElement"
6507
+ }
6508
+ }
6509
+ ],
6510
+ "description": "Get all CSS custom properties from an element"
6511
+ }
6512
+ ],
6513
+ "exports": [
6514
+ {
6515
+ "kind": "js",
6516
+ "name": "waitForComponent",
6517
+ "declaration": {
6518
+ "name": "waitForComponent",
6519
+ "module": "src/test/test-utils.ts"
6520
+ }
6521
+ },
6522
+ {
6523
+ "kind": "js",
6524
+ "name": "createComponentFixture",
6525
+ "declaration": {
6526
+ "name": "createComponentFixture",
6527
+ "module": "src/test/test-utils.ts"
6528
+ }
6529
+ },
6530
+ {
6531
+ "kind": "js",
6532
+ "name": "waitForComponentUpdate",
6533
+ "declaration": {
6534
+ "name": "waitForComponentUpdate",
6535
+ "module": "src/test/test-utils.ts"
6536
+ }
6537
+ },
6538
+ {
6539
+ "kind": "js",
6540
+ "name": "userInteraction",
6541
+ "declaration": {
6542
+ "name": "userInteraction",
6543
+ "module": "src/test/test-utils.ts"
6544
+ }
6545
+ },
6546
+ {
6547
+ "kind": "js",
6548
+ "name": "queryShadowRoot",
6549
+ "declaration": {
6550
+ "name": "queryShadowRoot",
6551
+ "module": "src/test/test-utils.ts"
6552
+ }
6553
+ },
6554
+ {
6555
+ "kind": "js",
6556
+ "name": "queryShadowRootAll",
6557
+ "declaration": {
6558
+ "name": "queryShadowRootAll",
6559
+ "module": "src/test/test-utils.ts"
6560
+ }
6561
+ },
6562
+ {
6563
+ "kind": "js",
6564
+ "name": "getShadowStyle",
6565
+ "declaration": {
6566
+ "name": "getShadowStyle",
6567
+ "module": "src/test/test-utils.ts"
6568
+ }
6569
+ },
6570
+ {
6571
+ "kind": "js",
6572
+ "name": "dispatchEventAndWait",
6573
+ "declaration": {
6574
+ "name": "dispatchEventAndWait",
6575
+ "module": "src/test/test-utils.ts"
6576
+ }
6577
+ },
6578
+ {
6579
+ "kind": "js",
6580
+ "name": "waitForVisible",
6581
+ "declaration": {
6582
+ "name": "waitForVisible",
6583
+ "module": "src/test/test-utils.ts"
6584
+ }
6585
+ },
6586
+ {
6587
+ "kind": "js",
6588
+ "name": "getCSSCustomProperties",
6589
+ "declaration": {
6590
+ "name": "getCSSCustomProperties",
6591
+ "module": "src/test/test-utils.ts"
6592
+ }
6593
+ },
6594
+ {
6595
+ "kind": "js",
6596
+ "name": "html",
6597
+ "declaration": {
6598
+ "name": "html",
6599
+ "package": "@open-wc/testing"
6600
+ }
6601
+ },
6602
+ {
6603
+ "kind": "js",
6604
+ "name": "fixture",
6605
+ "declaration": {
6606
+ "name": "fixture",
6607
+ "package": "@open-wc/testing"
6608
+ }
6609
+ },
6610
+ {
6611
+ "kind": "js",
6612
+ "name": "wcExpect",
6613
+ "declaration": {
6614
+ "name": "expect",
6615
+ "package": "@open-wc/testing"
6616
+ }
6617
+ }
6618
+ ]
6619
+ },
6269
6620
  {
6270
6621
  "kind": "javascript-module",
6271
6622
  "path": "src/theming/index.ts",
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Wait for a web component to be defined and upgraded
3
+ */
4
+ export declare function waitForComponent(tagName: string, timeout?: number): Promise<void>;
5
+ /**
6
+ * Create a test fixture for a web component
7
+ * Ensures the component is defined before creating the fixture
8
+ */
9
+ export declare function createComponentFixture<T extends HTMLElement>(tagName: string, template: any): Promise<T>;
10
+ /**
11
+ * Wait for component to complete its update cycle
12
+ */
13
+ export declare function waitForComponentUpdate(element: any, timeout?: number): Promise<void>;
14
+ /**
15
+ * Simulate user interaction with a delay
16
+ */
17
+ export declare function userInteraction(callback: () => void, delay?: number): Promise<void>;
18
+ /**
19
+ * Query shadow DOM
20
+ */
21
+ export declare function queryShadowRoot<T extends Element>(element: HTMLElement, selector: string): T | null;
22
+ /**
23
+ * Query all in shadow DOM
24
+ */
25
+ export declare function queryShadowRootAll<T extends Element>(element: HTMLElement, selector: string): T[];
26
+ /**
27
+ * Get computed styles from shadow DOM element
28
+ */
29
+ export declare function getShadowStyle(element: HTMLElement, property: string): string;
30
+ /**
31
+ * Dispatch a custom event and wait for it to be handled
32
+ */
33
+ export declare function dispatchEventAndWait(element: HTMLElement, eventName: string, detail?: any): Promise<CustomEvent>;
34
+ /**
35
+ * Wait for an element to be visible
36
+ */
37
+ export declare function waitForVisible(element: HTMLElement, timeout?: number): Promise<void>;
38
+ /**
39
+ * Get all CSS custom properties from an element
40
+ */
41
+ export declare function getCSSCustomProperties(element: HTMLElement): Record<string, string>;
42
+ export { html, fixture, expect as wcExpect } from '@open-wc/testing';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@prioticket/design-system-web",
3
- "private": false,
4
- "version": "1.0.7",
3
+ "version": "1.1.0-beta.2",
5
4
  "type": "module",
5
+ "packageManager": "yarn@3.6.4",
6
6
  "main": "./dist/prioticket-design-system-web.cjs.js",
7
7
  "module": "./dist/prioticket-design-system-web.es.js",
8
8
  "types": "./dist/types/index.d.ts",
@@ -62,10 +62,17 @@
62
62
  "dev": "vite",
63
63
  "build": "tsc && vite build && tsc --project tsconfig.build.json && node scripts/copy-css.js",
64
64
  "preview": "vite preview",
65
+ "test": "vitest run",
66
+ "test:watch": "vitest",
67
+ "test:ui": "vitest --ui",
68
+ "test:coverage": "vitest run --coverage",
69
+ "test:web": "vitest run src/components",
70
+ "test:react": "vitest run packages/react",
65
71
  "storybook": "storybook dev -p 6006",
66
72
  "build-storybook": "storybook build",
67
- "chromatic": "chromatic --project-token=chpt_5c8c5ef4fd7f67b",
68
- "prepublishOnly": "npm run build:packages && npm run docs",
73
+ "chromatic": "chromatic",
74
+ "prepare": "husky || true",
75
+ "prepublishOnly": "npm run build:packages && npm run docs && npm run test",
69
76
  "docs:manifest": "node scripts/build-manifest.mjs",
70
77
  "docs:build": "node scripts/generate-docs.mjs",
71
78
  "docs": "npm run docs:manifest && npm run docs:build",
@@ -74,7 +81,8 @@
74
81
  "build:packages": "npm run build && npm run react:build",
75
82
  "publish:web": "npm publish --access public --ignore-scripts",
76
83
  "publish:react": "npm publish --workspace packages/react --access public --ignore-scripts",
77
- "publish:packages": "npm run build:packages && npm run docs && npm run publish:web && npm run publish:react"
84
+ "publish:packages": "npm run build:packages && npm run docs && npm run publish:web && npm run publish:react",
85
+ "semantic-release": "semantic-release"
78
86
  },
79
87
  "keywords": [
80
88
  "design-system",
@@ -95,28 +103,41 @@
95
103
  "lit": "^3.3.1"
96
104
  },
97
105
  "devDependencies": {
98
- "@chromatic-com/storybook": "^4.1.1",
106
+ "@chromatic-com/storybook": "^4.1.2",
107
+ "@commitlint/cli": "^19.6.0",
108
+ "@commitlint/config-conventional": "^19.6.0",
109
+ "@custom-elements-manifest/analyzer": "^0.9.6",
99
110
  "@material/web": "^2.4.0",
100
- "@storybook/addon-a11y": "^9.1.3",
101
- "@storybook/addon-docs": "^9.1.3",
102
- "@storybook/addon-vitest": "^9.1.3",
103
- "@storybook/web-components-vite": "^9.1.3",
111
+ "@open-wc/testing": "^4.0.0",
112
+ "@semantic-release/changelog": "^6.0.3",
113
+ "@semantic-release/exec": "^6.0.3",
114
+ "@semantic-release/git": "^10.0.1",
115
+ "@storybook/addon-a11y": "^10.0.7",
116
+ "@storybook/addon-docs": "^10.0.7",
117
+ "@storybook/addon-vitest": "^10.0.7",
118
+ "@storybook/web-components-vite": "^10.0.7",
119
+ "@testing-library/jest-dom": "^6.6.3",
120
+ "@testing-library/react": "^16.1.0",
121
+ "@testing-library/user-event": "^14.5.2",
104
122
  "@types/node": "^24.3.1",
123
+ "@types/react": "^18.3.5",
124
+ "@types/react-dom": "^18.3.0",
105
125
  "@vitest/browser": "^3.2.4",
106
126
  "@vitest/coverage-v8": "^3.2.4",
107
127
  "chromatic": "^13.1.3",
108
128
  "glob": "^11.0.3",
129
+ "happy-dom": "^15.11.7",
130
+ "husky": "^9.1.7",
109
131
  "lit": "^3.3.1",
110
132
  "playwright": "^1.55.0",
111
- "storybook": "^9.1.3",
133
+ "react": "^18.3.1",
134
+ "react-dom": "^18.3.1",
135
+ "semantic-release": "^24.2.0",
136
+ "semantic-release-monorepo": "^8.0.2",
137
+ "storybook": "^10.0.7",
112
138
  "typescript": "~5.8.3",
113
139
  "vite": "^7.1.2",
114
- "vitest": "^3.2.4",
115
- "@custom-elements-manifest/analyzer": "^0.9.6",
116
- "@types/react": "^18.3.5",
117
- "@types/react-dom": "^18.3.0",
118
- "react": "^18.3.1",
119
- "react-dom": "^18.3.1"
140
+ "vitest": "^3.2.4"
120
141
  },
121
142
  "workspaces": [
122
143
  "packages/react"