@smartyweb/ui 1.0.1 → 1.0.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.
package/README.md CHANGED
@@ -69,53 +69,67 @@ src/
69
69
 
70
70
  This package uses [Changesets](https://github.com/changesets/changesets) for versioning and changelog management.
71
71
 
72
- ### 1. Document your changes (on your feature branch)
72
+ ### Step 1 On your feature branch
73
73
 
74
- After making changes, create a changeset to describe what changed and the bump type (patch/minor/major):
74
+ Create a changeset to describe the change and bump type:
75
75
 
76
76
  ```bash
77
77
  npm run changeset
78
78
  ```
79
79
 
80
- This opens an interactive prompt. Select the bump type and write a summary. Commit the generated `.changeset/*.md` file along with your code changes.
80
+ This opens an interactive prompt:
81
81
 
82
- ### 2. Version the package (on master, before publishing)
82
+ 1. **Which packages changed?** select `@smartyweb/ui`
83
+ 2. **Bump type?** — `patch` for fixes/styles, `minor` for new features, `major` for breaking changes
84
+ 3. **Summary?** — plain English description (goes into the changelog)
83
85
 
84
- After merging your feature branch, bump the version and update `CHANGELOG.md`:
86
+ Then apply the version bump immediately on the same branch:
85
87
 
86
88
  ```bash
87
- npx changeset version
89
+ npx changeset version # bumps package.json and updates CHANGELOG.md
88
90
  ```
89
91
 
90
- Commit the result:
92
+ Commit everything and push:
91
93
 
92
94
  ```bash
93
95
  git add .
94
96
  git commit -m "chore: version bump"
97
+ git push
95
98
  ```
96
99
 
97
- ### 3. Publish to npm
100
+ ### Step 2 — Open a PR and merge to master
98
101
 
99
- Make sure your npm token is set, then build and publish:
102
+ Open a PR from your feature branch `master` on Bitbucket. The PR will include both your code changes and the version bump. Get it reviewed and merged.
100
103
 
101
- ```bash
102
- NPM_TOKEN=<your-token> npm run build && NPM_TOKEN=<your-token> npm run release
103
- ```
104
+ ### Step 3 — Publish to npm (automated)
105
+
106
+ Publishing happens automatically when the PR merges to `master`. Bitbucket Pipelines runs the build and `npm run release` (`changeset publish`), then pushes the git tags.
104
107
 
105
- Or set it once for the session:
108
+ No manual action needed after merge.
109
+
110
+ <details>
111
+ <summary>Manual publish (if running outside CI)</summary>
106
112
 
107
113
  ```bash
114
+ git checkout master && git pull
115
+ npm run build
108
116
  export NPM_TOKEN=<your-token>
109
- npm run build && npm run release
117
+ npm run release # runs `changeset publish` → publishes to npm and creates git tags
118
+ git push --tags
110
119
  ```
111
120
 
112
- `npm run release` runs `changeset publish`, which publishes any packages whose version in `package.json` is not yet on the registry.
121
+ </details>
113
122
 
114
- ### 4. Push the version commit and tags
123
+ ### CI Setup (one-time)
115
124
 
116
- ```bash
117
- git push && git push --tags
118
- ```
125
+ Two secured repository variables must be configured under **Bitbucket repo → Settings → Pipelines → Repository variables**:
126
+
127
+ | Variable | Where to get it |
128
+ | ----------------- | ------------------------------------------------------------- |
129
+ | `NPM_TOKEN` | npmjs.org → Account → Access Tokens → type: "Automation" |
130
+ | `BITBUCKET_TOKEN` | Bitbucket repo → Settings → Access tokens (Repository: Write) |
131
+
132
+ Mark both as **Secured** so they are masked in logs.
119
133
 
120
134
  ## Architecture
121
135
 
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o="_hExtra_1on9j_1",a={hExtra:o};function c({as:s="h1",children:t,className:e}){const r=[a.hExtra,e].filter(Boolean).join(" ");return n.jsx(s,{className:r,children:t})}const h="_h1_ilnrk_1",i={h1:h};function l({children:s,className:t}){return n.jsx("h1",{className:`${i.h1}${t?` ${t}`:""}`,children:s})}exports.H1=l;exports.HExtra=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a="_hExtra_1j1q6_1",o={hExtra:a};function c({as:s="h1",children:t,className:n}){const r=[o.hExtra,n].filter(Boolean).join(" ");return e.jsx(s,{className:r,children:t})}const h="_h1_66uga_1",u={h1:h};function i({children:s,className:t}){return e.jsx("h1",{className:`${u.h1}${t?` ${t}`:""}`,children:s})}exports.H1=i;exports.HExtra=c;
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- const a = "_hExtra_1on9j_1", h = {
2
+ const a = "_hExtra_1j1q6_1", h = {
3
3
  hExtra: a
4
4
  };
5
- function x({ as: s = "h1", children: t, className: o }) {
5
+ function l({ as: s = "h1", children: t, className: o }) {
6
6
  const r = [h.hExtra, o].filter(Boolean).join(" ");
7
7
  return /* @__PURE__ */ n(s, { className: r, children: t });
8
8
  }
9
- const c = "_h1_ilnrk_1", e = {
9
+ const c = "_h1_66uga_1", e = {
10
10
  h1: c
11
11
  };
12
- function i({ children: s, className: t }) {
12
+ function _({ children: s, className: t }) {
13
13
  return /* @__PURE__ */ n("h1", { className: `${e.h1}${t ? ` ${t}` : ""}`, children: s });
14
14
  }
15
15
  export {
16
- i as H1,
17
- x as HExtra
16
+ _ as H1,
17
+ l as HExtra
18
18
  };
package/dist/ui.css CHANGED
@@ -1 +1 @@
1
- ._hExtra_1on9j_1{font-family:TT Hoves Pro,sans-serif;font-weight:600;font-size:96px;line-height:106px;letter-spacing:-.03em;font-feature-settings:"dlig" 1;margin:0}._h1_ilnrk_1{font-family:TT Hoves Pro,sans-serif;font-weight:500;font-size:64px;line-height:64px;letter-spacing:-.02em;font-feature-settings:"dlig" 1;margin:0}
1
+ ._hExtra_1j1q6_1{font-family:TT Hoves Pro,sans-serif;font-weight:600;font-size:96px;line-height:106px;letter-spacing:-.03em;font-feature-settings:"dlig" 1;margin:0}@media(max-width:767px){._hExtra_1j1q6_1{font-size:56px;line-height:62px;letter-spacing:-.02em}}._h1_66uga_1{font-family:TT Hoves Pro,sans-serif;font-weight:500;font-size:64px;line-height:64px;letter-spacing:-.02em;font-feature-settings:"dlig" 1;margin:0}@media(max-width:767px){._h1_66uga_1{font-size:44px;line-height:44px;letter-spacing:-.01em}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartyweb/ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",