@starasia/date 5.6.0 → 6.0.0
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/date.es.js +8 -5
- package/dist/date.umd.js +8 -5
- package/package.json +1 -1
package/dist/date.es.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsxs as z, jsx as s, Fragment as yn } from "react/jsx-runtime";
|
|
2
2
|
import wn, { useState as G, useRef as _, useEffect as P, forwardRef as xn, useMemo as tn } from "react";
|
|
3
|
-
const gn =
|
|
4
|
-
|
|
3
|
+
const gn = `
|
|
5
4
|
* {
|
|
6
5
|
margin: 0;
|
|
7
6
|
padding: 0;
|
|
8
|
-
font-family: "
|
|
7
|
+
font-family: var(--sa-font-family, "Inter", sans-serif);
|
|
9
8
|
font-style: normal;
|
|
10
9
|
/* box-sizing: border-box; */
|
|
11
10
|
}
|
|
@@ -46,7 +45,7 @@ const gn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,w
|
|
|
46
45
|
flex-direction: column;
|
|
47
46
|
gap: 8px;
|
|
48
47
|
width: max-content;
|
|
49
|
-
font-family: "
|
|
48
|
+
font-family: var(--sa-font-family, "Inter", sans-serif);
|
|
50
49
|
}
|
|
51
50
|
.sa-date-field-fullwidth {
|
|
52
51
|
width: 100%;
|
|
@@ -80,7 +79,11 @@ const gn = `@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,w
|
|
|
80
79
|
.sa-date-field-label-text {
|
|
81
80
|
font-size: 14px;
|
|
82
81
|
font-weight: 500;
|
|
83
|
-
|
|
82
|
+
/* Match Input's label exactly (.sa-tf-label → --sa-text-primary). The
|
|
83
|
+
component token --sa-date-text-primary maps to gray-700 (too light for a
|
|
84
|
+
field label) & is reserved for calendar internals, so use the semantic
|
|
85
|
+
token directly here. */
|
|
86
|
+
color: var(--sa-text-primary, #292a2e);
|
|
84
87
|
line-height: normal;
|
|
85
88
|
}
|
|
86
89
|
/* match Input: xs/sm label drops to 12px */
|
package/dist/date.umd.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
(function(G,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],e):(G=typeof globalThis<"u"?globalThis:G||self,e(G.Date={},G.jsxRuntime,G.React))})(this,function(G,e,g){"use strict";const sn
|
|
2
|
-
|
|
1
|
+
(function(G,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],e):(G=typeof globalThis<"u"?globalThis:G||self,e(G.Date={},G.jsxRuntime,G.React))})(this,function(G,e,g){"use strict";const sn=`
|
|
3
2
|
* {
|
|
4
3
|
margin: 0;
|
|
5
4
|
padding: 0;
|
|
6
|
-
font-family: "
|
|
5
|
+
font-family: var(--sa-font-family, "Inter", sans-serif);
|
|
7
6
|
font-style: normal;
|
|
8
7
|
/* box-sizing: border-box; */
|
|
9
8
|
}
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
flex-direction: column;
|
|
45
44
|
gap: 8px;
|
|
46
45
|
width: max-content;
|
|
47
|
-
font-family: "
|
|
46
|
+
font-family: var(--sa-font-family, "Inter", sans-serif);
|
|
48
47
|
}
|
|
49
48
|
.sa-date-field-fullwidth {
|
|
50
49
|
width: 100%;
|
|
@@ -78,7 +77,11 @@
|
|
|
78
77
|
.sa-date-field-label-text {
|
|
79
78
|
font-size: 14px;
|
|
80
79
|
font-weight: 500;
|
|
81
|
-
|
|
80
|
+
/* Match Input's label exactly (.sa-tf-label → --sa-text-primary). The
|
|
81
|
+
component token --sa-date-text-primary maps to gray-700 (too light for a
|
|
82
|
+
field label) & is reserved for calendar internals, so use the semantic
|
|
83
|
+
token directly here. */
|
|
84
|
+
color: var(--sa-text-primary, #292a2e);
|
|
82
85
|
line-height: normal;
|
|
83
86
|
}
|
|
84
87
|
/* match Input: xs/sm label drops to 12px */
|