hr-design-system-handlebars 1.126.2 → 1.126.3
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/.github/copilot-instructions.md +50 -0
- package/CHANGELOG.md +16 -0
- package/dist/assets/index.css +6 -3
- package/dist/views/components/scroll_depth_measurement/scroll_depth_measurement.hbs +1 -1
- package/dist/views_static/components/scroll_depth_measurement/scroll_depth_measurement.hbs +1 -1
- package/package.json +1 -1
- package/src/stories/views/components/scroll_depth_measurement/scroll_depth_measurement.hbs +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Copilot Instructions for HR Design System (Handlebars)
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
This is a Node.js-based design system using Handlebars, Storybook, and custom asset optimization. It provides reusable UI components, templates, and assets for HR applications. The architecture is modular, with build scripts, asset pipelines, and story-driven documentation.
|
|
5
|
+
|
|
6
|
+
## Key Directories & Files
|
|
7
|
+
- `src/` — Main source code, including `index.js`, assets, and stories
|
|
8
|
+
- `build/handlebars/` — Compiled Handlebars templates, helpers, and partials
|
|
9
|
+
- `build/gulp/` — Gulp build scripts and cache
|
|
10
|
+
- `public/` — Static assets for Storybook and documentation
|
|
11
|
+
- `gulpfile.js` — Gulp build configuration
|
|
12
|
+
- `package.json` — Scripts, dependencies, and project metadata
|
|
13
|
+
- `README.md` — Setup, workflow, and developer guidance
|
|
14
|
+
|
|
15
|
+
## Developer Workflows
|
|
16
|
+
- **Install dependencies:** Use `yarn` (not npm)
|
|
17
|
+
- **Start Storybook:** `yarn storybook`
|
|
18
|
+
- **Optimize assets:** `yarn optimize-assets` (must run in parallel with Storybook)
|
|
19
|
+
- **Recommended:** Use VS Code Macro-Commander extension to start both scripts together (see README for macro setup)
|
|
20
|
+
- **Node version:** Use Node.js 20.11.1 (see `.nvmrc` and README for NVM setup)
|
|
21
|
+
|
|
22
|
+
## Build & Asset Pipeline
|
|
23
|
+
- Asset optimization (SVGs, JSON test data, Modernizr.js, Handlebars templates) is handled by `yarn optimize-assets`.
|
|
24
|
+
- Optimized/cached assets are stored in `build/gulp/cache`.
|
|
25
|
+
- The pipeline runs in watch mode and only re-processes changed files for faster builds.
|
|
26
|
+
|
|
27
|
+
## Project-Specific Conventions
|
|
28
|
+
- **Yarn is required** for dependency management due to Storybook compatibility.
|
|
29
|
+
- **Storybook stories** and documentation are in `src/stories/` and `public/storybook-static/`.
|
|
30
|
+
- **Handlebars templates** are compiled and exported as JS modules for integration.
|
|
31
|
+
- **Custom Modernizr build** is generated and used for feature detection.
|
|
32
|
+
- **Macros for VS Code**: Macro-Commander is recommended for running both main scripts together.
|
|
33
|
+
|
|
34
|
+
## Integration Points
|
|
35
|
+
- **External dependencies:** Storybook, Handlebars, Modernizr, Gulp, TailwindCSS, PostCSS
|
|
36
|
+
- **Custom helpers/partials:** Located in `build/handlebars/helpers/` and `build/handlebars/partials/`
|
|
37
|
+
- **Webpack config:** For bundling assets and scripts
|
|
38
|
+
|
|
39
|
+
## Examples & Patterns
|
|
40
|
+
- To add a new UI component, create a Handlebars template in `build/handlebars/partials/` and a story in `src/stories/`.
|
|
41
|
+
- For asset changes, update source files and run `yarn optimize-assets` to regenerate optimized outputs.
|
|
42
|
+
- For new helpers, add to `build/handlebars/helpers/` and ensure they are registered in the build pipeline.
|
|
43
|
+
|
|
44
|
+
## Troubleshooting
|
|
45
|
+
- If Storybook does not reflect changes, ensure both `yarn storybook` and `yarn optimize-assets` are running.
|
|
46
|
+
- For Node version issues, use NVM and check `.nvmrc`.
|
|
47
|
+
- For dependency issues, always use `yarn`.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
For more details, see the [README.md](../../README.md).
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# v1.126.3 (Tue Jan 20 2026)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Fix z-index issue in scroll depth measurement component [#1337](https://github.com/mumprod/hr-design-system-handlebars/pull/1337) ([@szuelch](https://github.com/szuelch))
|
|
6
|
+
|
|
7
|
+
#### 📝 Documentation
|
|
8
|
+
|
|
9
|
+
- Add Copilot instructions for HR Design System [#1336](https://github.com/mumprod/hr-design-system-handlebars/pull/1336) ([@szuelch](https://github.com/szuelch))
|
|
10
|
+
|
|
11
|
+
#### Authors: 1
|
|
12
|
+
|
|
13
|
+
- [@szuelch](https://github.com/szuelch)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# v1.126.2 (Thu Jan 15 2026)
|
|
2
18
|
|
|
3
19
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -1285,6 +1285,9 @@ article #commentList {
|
|
|
1285
1285
|
.top-px {
|
|
1286
1286
|
top: 1px;
|
|
1287
1287
|
}
|
|
1288
|
+
.-z-10 {
|
|
1289
|
+
z-index: -10;
|
|
1290
|
+
}
|
|
1288
1291
|
.-z-40 {
|
|
1289
1292
|
z-index: -40;
|
|
1290
1293
|
}
|
|
@@ -3915,7 +3918,7 @@ article #commentList {
|
|
|
3915
3918
|
border-bottom-color: var(--color-secondary-ds);
|
|
3916
3919
|
}
|
|
3917
3920
|
.counter-reset {
|
|
3918
|
-
counter-reset:
|
|
3921
|
+
counter-reset: cnt1768912212551;
|
|
3919
3922
|
}
|
|
3920
3923
|
.animate-delay-100 {
|
|
3921
3924
|
--tw-animate-delay: 100ms;
|
|
@@ -4376,7 +4379,7 @@ html { scroll-behavior: smooth; }
|
|
|
4376
4379
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
4377
4380
|
}
|
|
4378
4381
|
.-ordered {
|
|
4379
|
-
counter-increment:
|
|
4382
|
+
counter-increment: cnt1768912212551 1;
|
|
4380
4383
|
}
|
|
4381
4384
|
.-ordered::before {
|
|
4382
4385
|
position: absolute;
|
|
@@ -4394,7 +4397,7 @@ html { scroll-behavior: smooth; }
|
|
|
4394
4397
|
--tw-text-opacity: 1;
|
|
4395
4398
|
color: rgba(0, 0, 0, 1);
|
|
4396
4399
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
4397
|
-
content: counter(
|
|
4400
|
+
content: counter(cnt1768912212551);
|
|
4398
4401
|
}
|
|
4399
4402
|
/*! ****************************/
|
|
4400
4403
|
/*! DataPolicy stuff */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="absolute w-full h-full" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
1
|
+
<div class="absolute w-full h-full -z-10" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
2
2
|
<div data-scroll-depth="0%" x-ref="scroll_depth_0" class="w-full h-1/4"></div>
|
|
3
3
|
<div data-scroll-depth="25%" x-ref="scroll_depth_25" class="w-full h-1/4"></div>
|
|
4
4
|
<div data-scroll-depth="50%" x-ref="scroll_depth_50" class="w-full h-1/4"></div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="absolute w-full h-full" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
1
|
+
<div class="absolute w-full h-full -z-10" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
2
2
|
<div data-scroll-depth="0%" x-ref="scroll_depth_0" class="w-full h-1/4"></div>
|
|
3
3
|
<div data-scroll-depth="25%" x-ref="scroll_depth_25" class="w-full h-1/4"></div>
|
|
4
4
|
<div data-scroll-depth="50%" x-ref="scroll_depth_50" class="w-full h-1/4"></div>
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.126.
|
|
9
|
+
"version": "1.126.3",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="absolute w-full h-full" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
1
|
+
<div class="absolute w-full h-full -z-10" x-ref="scroll_depth_container" ax-load x-data="measureScrollDepth()" x-ignore>
|
|
2
2
|
<div data-scroll-depth="0%" x-ref="scroll_depth_0" class="w-full h-1/4"></div>
|
|
3
3
|
<div data-scroll-depth="25%" x-ref="scroll_depth_25" class="w-full h-1/4"></div>
|
|
4
4
|
<div data-scroll-depth="50%" x-ref="scroll_depth_50" class="w-full h-1/4"></div>
|