@avenirs-esr/avenirs-dsav 0.1.39 → 0.1.40

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.
@@ -19,3 +19,9 @@
19
19
  * @returns {string} A string of HTML with appropriate tags for styling and structure.
20
20
  */
21
21
  export declare function formatTextToHtml(text: string, color?: string): string;
22
+ /**
23
+ *
24
+ * @param text the text to format to sentence case
25
+ * @returns the text formatted to sentence case
26
+ */
27
+ export declare function toSentenceCase(text: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avenirs-esr/avenirs-dsav",
3
3
  "type": "module",
4
- "version": "0.1.39",
4
+ "version": "0.1.40",
5
5
  "main": "dist/avenirs-dsav.umd.js",
6
6
  "module": "dist/avenirs-dsav.es.js",
7
7
  "types": "dist/index.d.ts",
@@ -0,0 +1,32 @@
1
+ @use "sass:map";
2
+
3
+ $breakpoints: (
4
+ "sm": 36rem, /* 576px */
5
+ "md": 48rem, /* 768px */
6
+ "lg": 64rem, /* 1024px */
7
+ "xl": 90rem /* 1440px */
8
+ );
9
+
10
+ @mixin respond-to($breakpoint) {
11
+ $size: map.get($breakpoints, $breakpoint);
12
+
13
+ @if $size {
14
+ @media (min-width: $size) {
15
+ @content;
16
+ }
17
+ } @else {
18
+ @warn "Breakpoint `#{$breakpoint}` not found in \$breakpoints map.";
19
+ }
20
+ }
21
+
22
+ @mixin respond-below($breakpoint) {
23
+ $size: map.get($breakpoints, $breakpoint);
24
+
25
+ @if $size {
26
+ @media (max-width: ($size - 1)) {
27
+ @content;
28
+ }
29
+ } @else {
30
+ @warn "Breakpoint `#{$breakpoint}` not found in \$breakpoints map.";
31
+ }
32
+ }
@@ -6,6 +6,7 @@
6
6
  @use './spacing.scss' as *;
7
7
  @use './radius.scss' as *;
8
8
  @use './dimensions.scss' as *;
9
+ @use './breakpoints.scss' as *;
9
10
 
10
11
  html,
11
12
  body,