@dinofront/design_system 1.19.5 → 1.19.7
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/index.js +1166 -1181
- package/dist/index.js.map +1 -1
- package/dist/lib/RequiredMark.d.ts +12 -0
- package/dist/styles.css +2 -4
- package/dist/tokens/colors.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "*" rendered after a field label when the field is `required`.
|
|
3
|
+
*
|
|
4
|
+
* Internal on purpose (not exported from the package root): it exists so every
|
|
5
|
+
* form component (Input, TextArea, SelectV2, DatePicker, Checkbox, Radio,
|
|
6
|
+
* Upload) renders the exact same mark and color and can't drift apart again.
|
|
7
|
+
* Consumers building their own labels should use `text-fg-danger` directly.
|
|
8
|
+
*
|
|
9
|
+
* `aria-hidden` because the requirement is already conveyed to assistive tech
|
|
10
|
+
* via the control's native `required` / `aria-required`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function RequiredMark(): import("react").JSX.Element;
|
package/dist/styles.css
CHANGED
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
--color-fg-info: var(--color-blue-600);
|
|
174
174
|
--color-fg-success: var(--color-green-600);
|
|
175
175
|
--color-fg-warning: var(--color-yellow-800);
|
|
176
|
-
--color-fg-danger: var(--color-red-
|
|
176
|
+
--color-fg-danger: var(--color-red-600);
|
|
177
177
|
--color-border-default: var(--color-gray-200);
|
|
178
178
|
--color-border-subtle: var(--color-gray-100);
|
|
179
179
|
--color-border-strong: var(--color-gray-300);
|
|
@@ -966,9 +966,6 @@
|
|
|
966
966
|
.max-w-40 {
|
|
967
967
|
max-width: calc(var(--spacing) * 40);
|
|
968
968
|
}
|
|
969
|
-
.max-w-60 {
|
|
970
|
-
max-width: calc(var(--spacing) * 60);
|
|
971
|
-
}
|
|
972
969
|
.max-w-105 {
|
|
973
970
|
max-width: calc(var(--spacing) * 105);
|
|
974
971
|
}
|
|
@@ -2894,6 +2891,7 @@
|
|
|
2894
2891
|
--color-fg-secondary: var(--color-gray-400);
|
|
2895
2892
|
--color-fg-tertiary: var(--color-gray-500);
|
|
2896
2893
|
--color-fg-disabled: var(--color-gray-600);
|
|
2894
|
+
--color-fg-danger: var(--color-red-600);
|
|
2897
2895
|
--color-border-default: rgba(255, 255, 255, 0.05);
|
|
2898
2896
|
--color-border-subtle: rgba(255, 255, 255, 0.03);
|
|
2899
2897
|
--color-border-strong: rgba(255, 255, 255, 0.1);
|
package/dist/tokens/colors.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ export declare const lightTheme: {
|
|
|
239
239
|
readonly fgInfo: "#3C88F7";
|
|
240
240
|
readonly fgSuccess: "#199754";
|
|
241
241
|
readonly fgWarning: "#ED912A";
|
|
242
|
-
readonly fgDanger: "#
|
|
242
|
+
readonly fgDanger: "#e93544";
|
|
243
243
|
readonly borderDefault: "#e1e4ea";
|
|
244
244
|
readonly borderSubtle: "#f2f5f8";
|
|
245
245
|
readonly borderStrong: "#cacfd8";
|
|
@@ -265,6 +265,7 @@ export declare const darkTheme: {
|
|
|
265
265
|
readonly fgSecondary: "#99a0ae";
|
|
266
266
|
readonly fgTertiary: "#717784";
|
|
267
267
|
readonly fgDisabled: "#525866";
|
|
268
|
+
readonly fgDanger: "#e93544";
|
|
268
269
|
readonly borderDefault: "rgba(255, 255, 255, 0.05)";
|
|
269
270
|
readonly borderSubtle: "rgba(255, 255, 255, 0.03)";
|
|
270
271
|
readonly borderStrong: "rgba(255, 255, 255, 0.10)";
|
|
@@ -275,7 +276,6 @@ export declare const darkTheme: {
|
|
|
275
276
|
readonly fgInfo: "#3C88F7";
|
|
276
277
|
readonly fgSuccess: "#199754";
|
|
277
278
|
readonly fgWarning: "#ED912A";
|
|
278
|
-
readonly fgDanger: "#ad1f2b";
|
|
279
279
|
readonly borderBrand: "#72BF44";
|
|
280
280
|
readonly iconInverse: "#FEFEFE";
|
|
281
281
|
readonly iconBrand: "#72BF44";
|