@narmi/design_system 6.16.18 → 6.16.19
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/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.scss +1 -1
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/util/viewport.d.ts +8 -4
- package/dist/types/util/viewport.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tokens/js/colors.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* gets the tag without any setup. It is intentionally NOT part of the public
|
|
10
10
|
* API — none of these functions are re-exported from `src/index.ts`.
|
|
11
11
|
*
|
|
12
|
-
* Behavior: the design system
|
|
12
|
+
* Behavior: the design system always ensures a default `width=device-width`
|
|
13
|
+
* when creating a brand-new tag. On existing tags, it preserves any consumer-
|
|
14
|
+
* provided `width` value. It still owns the directives listed in
|
|
13
15
|
* `ENSURE_META_CONTENT` and upserts each one — adds it if missing, corrects it
|
|
14
16
|
* if the value differs, leaves it if already right. Any other directive a
|
|
15
17
|
* consumer has set (e.g. `viewport-fit=cover`) is preserved in place.
|
|
@@ -32,9 +34,11 @@ export declare function serializeViewport(map: Map<string, string>): string;
|
|
|
32
34
|
* Given the current viewport `content` (or null/empty when no tag exists),
|
|
33
35
|
* return the content string that should be applied.
|
|
34
36
|
*
|
|
35
|
-
* Pure.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
37
|
+
* Pure. Returns `DEFAULT_META_CONTENT` when no tag exists. Otherwise preserves
|
|
38
|
+
* any consumer-provided `width`, inserts the default width when missing, and
|
|
39
|
+
* upserts every directive from `ENSURE_META_CONTENT`: adds it when missing
|
|
40
|
+
* (appended in order), corrects it when the value differs, keeps it when
|
|
41
|
+
* already correct. Directives the consumer set that we don't manage are
|
|
38
42
|
* preserved in their original position (`Map.set` keeps insertion order on
|
|
39
43
|
* update).
|
|
40
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../src/util/viewport.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../src/util/viewport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AASH;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBlE;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAIlE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAYpE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,GAAE,QAAQ,GAAG,IAAI,GAAG,SAEf,GACP,IAAI,CAsBN"}
|