@theroutingcompany/components 0.0.24 → 0.0.25

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
@@ -2,24 +2,31 @@
2
2
 
3
3
  View the [StoryBook](https://6392297e45ccab79e466ee19-iytnzjepcr.chromatic.com/).
4
4
 
5
+ ## Developing Locally
6
+
7
+ Clone the dashboard repo at the same level as this one. Then run `npm link ../component-library` from the dashboard repo. Then run `npm run dev` from the component library repo. This will make hot module reloading within dash work with the changes you make to the component files.
8
+
5
9
  ## Publishing
6
10
 
7
11
  First double check if everything that needs to exported is added to the `components/index.js` or `helpers/index.js` and run `npm run build` before.
8
12
 
9
13
  ### Public
10
14
 
11
- 0. Get an approval on the relevant PR.
12
- 2. Bump version number `npm version patch --no-git-tag-version`
13
- 3. `npm publish --access public`.
14
- * Usually adding `--dry-run` first is a good idea for double checking if the version number is correct.
15
- 4. Enter the 2FA code for npm
15
+ - Login to NPM with the shared TREX 1pass creds.
16
+ - Execute the ./scripts/release.sh file.
17
+
18
+ ```
19
+ npm run ready:release
20
+ ```
16
21
 
17
22
  ### Prerelease
18
23
 
19
- 1. Add alpha tag to version number with `npm version prerelease --preid alpha --no-git-tag-version`
20
- 2. `npm publish --tag alpha.[NUMBER] --access public` where `[NUMBER]` is replaced with the alpha number.
21
- * Usually adding `--dry-run` first is a good idea for double checking if the version number is correct.
22
- 3. Enter the 2FA code for npm
24
+ - Login to NPM with the shared TREX 1pass creds.
25
+ - Execute the ./scripts/prerelease.sh file.
26
+
27
+ ```
28
+ npm run ready:prerelease
29
+ ```
23
30
 
24
31
  ## UI Libraries
25
32
 
@@ -10787,7 +10787,7 @@ const a3 = Rb, i3 = Q7, s3 = t3, l3 = r3, c3 = o3, d3 = Me`
10787
10787
  letter-spacing: ${m.letter_spacing_body_medium};
10788
10788
  color: black; /* Static/Text/Primary/Default */
10789
10789
  `, TA = () => /* @__PURE__ */ S(ro, { asChild: !0, children: /* @__PURE__ */ S(Yn, { label: "Close drawer", variant: "inverse", children: /* @__PURE__ */ S(lp, {}) }) }), f3 = A(jl)`
10790
- width: var(--drawer-width);
10790
+ ${({ width: e }) => e && `width: ${e};`}
10791
10791
  z-index: 3;
10792
10792
  background-color: white;
10793
10793
  padding: 24px;
@@ -10829,12 +10829,20 @@ const a3 = Rb, i3 = Q7, s3 = t3, l3 = r3, c3 = o3, d3 = Me`
10829
10829
  letter-spacing: ${m.letter_spacing_body_medium};
10830
10830
  color: black; /* Static/Text/Primary/Default */
10831
10831
  `, m3 = {
10832
- medium: 540,
10833
- large: 900
10832
+ small: "20vw",
10833
+ medium: "40vw",
10834
+ large: "60vw"
10834
10835
  };
10835
10836
  function RA({ children: e, size: t = "medium", ...r }) {
10836
10837
  const n = m3[t];
10837
- return /* @__PURE__ */ S(Vl, { ...r, style: { "--drawer-width": n }, children: /* @__PURE__ */ S(f3, { onInteractOutside: (o) => o.preventDefault(), children: e }) });
10838
+ return /* @__PURE__ */ S(Vl, { ...r, children: /* @__PURE__ */ S(
10839
+ f3,
10840
+ {
10841
+ width: n,
10842
+ onInteractOutside: (o) => o.preventDefault(),
10843
+ children: e
10844
+ }
10845
+ ) });
10838
10846
  }
10839
10847
  const IA = a3, AA = A(i3)`
10840
10848
  padding-top: 12px;