@avenirs-esr/avenirs-dsav 0.1.38 → 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.
- package/README.md +4 -0
- package/dist/avenirs-dsav.css +1 -1
- package/dist/avenirs-dsav.es.js +982 -977
- package/dist/avenirs-dsav.umd.js +7 -7
- package/dist/utils/string/string.d.ts +6 -0
- package/package.json +3 -2
- package/src/styles/breakpoints.scss +32 -0
- package/src/styles/main.scss +1 -0
|
@@ -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.
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build-only:development": "vite build -m development",
|
|
17
17
|
"dev": "vite",
|
|
18
18
|
"build": "run-p type-check type-gen \"build-only {@}\" --",
|
|
19
|
-
"build:watch": "run-p type-check
|
|
19
|
+
"build:watch": "run-p type-check:watch \"build-only:watch {@}\" --",
|
|
20
20
|
"build:development": "run-p type-check type-gen \"build-only:development {@}\" --",
|
|
21
21
|
"format": "eslint . --fix",
|
|
22
22
|
"lint": "eslint .",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test:a11y:run": "playwright test --config=a11y/playwright.a11y.config.ts",
|
|
30
30
|
"test:a11y:cleanup": "rimraf a11y/.output",
|
|
31
31
|
"test:watch": "vitest",
|
|
32
|
+
"type-check:watch": "vue-tsc --build --force --watch",
|
|
32
33
|
"type-check": "vue-tsc --build --force",
|
|
33
34
|
"type-gen": "vue-tsc -p tsconfig.app.json",
|
|
34
35
|
"type-gen:watch": "vue-tsc -p tsconfig.app.json --watch",
|
|
@@ -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
|
+
}
|