@midas-ds/components 6.1.0 → 7.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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "6.1.0",
17
+ "version": "7.0.0",
18
18
  "main": "./index.cjs",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
@@ -0,0 +1,4 @@
1
+ import { InputProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export type { InputProps };
4
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ import { InputProps } from './Input';
2
+ import * as React from 'react';
3
+ export declare const PasswordField: React.FC<InputProps>;
@@ -0,0 +1,7 @@
1
+ import { TextFieldBaseProps } from './TextFieldBase';
2
+ import { TextAreaProps as AriaTextAreaProps } from 'react-aria-components';
3
+ import * as React from 'react';
4
+ export interface TextAreaProps extends Omit<TextFieldBaseProps, 'children' | 'type'> {
5
+ className?: AriaTextAreaProps['className'];
6
+ }
7
+ export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1,25 +1,7 @@
1
- import { TextFieldProps as AriaTextFieldProps, ValidationResult } from 'react-aria-components';
1
+ import { TextFieldBaseProps } from './TextFieldBase';
2
+ import { InputProps } from './Input';
2
3
  import * as React from 'react';
3
- export interface TextFieldProps extends AriaTextFieldProps {
4
- children?: React.ReactNode;
5
- /** Specify label displayed above the TextField*/
6
- label?: string;
7
- /** Specify description displayed below the label */
8
- description?: string;
9
- /** Custom error messages */
10
- errorMessage?: string | ((validation: ValidationResult) => string) | undefined;
11
- /** Enable validations or add your own regex */
12
- validationType?: 'ssn' | 'dossnr' | RegExp;
13
- /**
14
- * Whether to show the character counter or not
15
- * @default
16
- * false
17
- */
18
- showCounter?: boolean;
4
+ export interface TextFieldProps extends Omit<TextFieldBaseProps, 'children'> {
5
+ className?: InputProps['className'];
19
6
  }
20
- export declare const TextField: React.FC<TextFieldProps>;
21
- type InputWrapperProps = Pick<TextFieldProps, 'label' | 'description' | 'errorMessage' | 'children'>;
22
- export declare const InputWrapper: ({ label, description, errorMessage, children, }: InputWrapperProps) => import("react/jsx-runtime").JSX.Element;
23
- export declare const ssnRegEx: RegExp;
24
- export declare const dossNrRegEx: RegExp;
25
- export {};
7
+ export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,18 @@
1
+ import { TextFieldProps, ValidationResult } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export interface TextFieldBaseProps extends Omit<TextFieldProps, 'className'> {
4
+ children?: React.ReactNode;
5
+ /** Specify label displayed above the TextField*/
6
+ label?: string;
7
+ /** Specify description displayed below the label */
8
+ description?: string;
9
+ /** Custom error messages */
10
+ errorMessage?: string | ((validation: ValidationResult) => string) | undefined;
11
+ /**
12
+ * Whether to show the character counter or not
13
+ * @default
14
+ * false
15
+ */
16
+ showCounter?: boolean;
17
+ }
18
+ export declare const TextFieldBase: React.ForwardRefExoticComponent<TextFieldBaseProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1,4 @@
1
+ export * from './TextFieldBase';
1
2
  export * from './TextField';
3
+ export * from './TextArea';
4
+ export * from './Input';
@@ -0,0 +1,85 @@
1
+ declare const _default: {
2
+ "en": {
3
+ "hide": "Hide",
4
+ "show": "Show"
5
+ },
6
+ "sv": {
7
+ "hide": "Dölj",
8
+ "show": "Visa"
9
+ },
10
+ "es": {
11
+ "hide": "Ocultar",
12
+ "show": "Mostrar"
13
+ },
14
+ "fr": {
15
+ "hide": "Cacher",
16
+ "show": "Afficher"
17
+ },
18
+ "de": {
19
+ "hide": "Verstecken",
20
+ "show": "Anzeigen"
21
+ },
22
+ "ja": {
23
+ "hide": "隠す",
24
+ "show": "表示"
25
+ },
26
+ "zh": {
27
+ "hide": "隐藏",
28
+ "show": "显示"
29
+ },
30
+ "ar": {
31
+ "hide": "إخفاء",
32
+ "show": "إظهار"
33
+ },
34
+ "ru": {
35
+ "hide": "Скрыть",
36
+ "show": "Показать"
37
+ },
38
+ "pt": {
39
+ "hide": "Ocultar",
40
+ "show": "Mostrar"
41
+ },
42
+ "it": {
43
+ "hide": "Nascondi",
44
+ "show": "Mostra"
45
+ },
46
+ "ko": {
47
+ "hide": "숨기기",
48
+ "show": "보여주기"
49
+ },
50
+ "hi": {
51
+ "hide": "छुपाएँ",
52
+ "show": "दिखाएँ"
53
+ },
54
+ "nl": {
55
+ "hide": "Verbergen",
56
+ "show": "Tonen"
57
+ },
58
+ "pl": {
59
+ "hide": "Ukryj",
60
+ "show": "Pokaż"
61
+ },
62
+ "tr": {
63
+ "hide": "Gizle",
64
+ "show": "Göster"
65
+ },
66
+ "vi": {
67
+ "hide": "Ẩn",
68
+ "show": "Hiện"
69
+ },
70
+ "th": {
71
+ "hide": "ซ่อน",
72
+ "show": "แสดง"
73
+ },
74
+ "id": {
75
+ "hide": "Sembunyikan",
76
+ "show": "Tampilkan"
77
+ },
78
+ "ms": {
79
+ "hide": "Sembunyikan",
80
+ "show": "Tunjukkan"
81
+ }
82
+ }
83
+ ;
84
+
85
+ export default _default;
package/theme/index.d.ts CHANGED
@@ -28,9 +28,7 @@ export declare const theme: {
28
28
  blue10: string;
29
29
  blue20: string;
30
30
  blue40: string;
31
- blue50: string;
32
31
  blue60: string;
33
- blue70: string;
34
32
  blue80: string;
35
33
  blue90: string;
36
34
  blue100: string;
package/theme/tokens.d.ts CHANGED
@@ -26,9 +26,7 @@ export declare const baseColors: {
26
26
  blue10: string;
27
27
  blue20: string;
28
28
  blue40: string;
29
- blue50: string;
30
29
  blue60: string;
31
- blue70: string;
32
30
  blue80: string;
33
31
  blue90: string;
34
32
  blue100: string;
package/theme.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens-DZsQgihc.cjs"),s={...t.tokens};exports.baseColors=t.baseColors;exports.breakpoints=t.breakpoints;exports.semantic=t.semantic;exports.spacing=t.spacing;exports.states=t.states;exports.transitions=t.transitions;exports.typography=t.typography;exports.theme=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens-DzCqA9U7.cjs"),s={...t.tokens};exports.baseColors=t.baseColors;exports.breakpoints=t.breakpoints;exports.semantic=t.semantic;exports.spacing=t.spacing;exports.states=t.states;exports.transitions=t.transitions;exports.typography=t.typography;exports.theme=s;
package/theme.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as s } from "./tokens-Ce2Sj8HD.js";
2
- import { b as r, f as n, s as p, c as i, d as m, e as c, a as b } from "./tokens-Ce2Sj8HD.js";
1
+ import { t as s } from "./tokens-DeYazHS9.js";
2
+ import { b as r, f as n, s as p, c as i, d as m, e as c, a as b } from "./tokens-DeYazHS9.js";
3
3
  const t = { ...s };
4
4
  export {
5
5
  r as baseColors,
@@ -26,9 +26,7 @@ const r = {
26
26
  blue10: "#eaf2f6",
27
27
  blue20: "#d5e5ed",
28
28
  blue40: "#abcbdb",
29
- blue50: "#abcbdb",
30
29
  blue60: "#82b0c9",
31
- blue70: "#6ca3c0",
32
30
  blue80: "#5897b8",
33
31
  blue90: "#4289ad",
34
32
  blue100: "#2e7ca5",
@@ -136,25 +134,25 @@ const r = {
136
134
  darkMode: "(prefers-color-scheme: dark)",
137
135
  prefersReducedMotion: "(prefers-reduced-motion: reduced)"
138
136
  }, l = {
139
- background01: `light-dark(${r.white}, ${r.gray30})`,
137
+ background01: `light-dark(${r.white}, ${r.gray200})`,
140
138
  backgroundHover01: `light-dark(${r.whiteHover}, ${r.gray190})`,
141
- backgroundInverse01: `light-dark(${r.gray30}, ${r.gray10})`,
139
+ backgroundInverse01: `light-dark(${r.gray200}, ${r.gray10})`,
142
140
  layer01: `light-dark(${r.gray10}, ${r.gray180})`,
143
141
  layerHover01: `light-dark(${r.gray20}, ${r.gray170})`,
144
142
  layerSelected01: `light-dark(${r.gray30}, ${r.gray160})`,
145
- layerSelectedHover01: `light-dark(${r.gray40}, ${r.gray20})`,
143
+ layerSelectedHover01: `light-dark(${r.gray40}, ${r.gray150})`,
146
144
  layer02: `light-dark(${r.white}, ${r.gray160})`,
147
- layerHover02: `light-dark(${r.whiteHover}, ${r.gray20})`,
145
+ layerHover02: `light-dark(${r.whiteHover}, ${r.gray150})`,
148
146
  layerSelected02: `light-dark(${r.gray30}, ${r.gray140})`,
149
147
  layerSelectedHover02: `light-dark(${r.gray40}, ${r.gray130})`,
150
148
  layerAccent01: `light-dark(${r.gray30}, ${r.gray160})`,
151
- layerAccentHover01: `light-dark(${r.gray40}, ${r.gray20})`,
149
+ layerAccentHover01: `light-dark(${r.gray40}, ${r.gray150})`,
152
150
  layerAccentSelected01: `light-dark(${r.gray50}, ${r.gray140})`,
153
151
  layerAccent02: `light-dark(${r.gray10}, ${r.gray180})`,
154
152
  layerAccentHover02: `light-dark(${r.gray20}, ${r.gray170})`,
155
153
  layerAccentSelected02: `light-dark(${r.gray30}, ${r.gray160})`,
156
154
  brandPrimary: `light-dark(${r.red100}, ${r.red100})`,
157
- borderStrong: `light-dark(${r.gray30}, ${r.gray10})`,
155
+ borderStrong: `light-dark(${r.gray200}, ${r.gray10})`,
158
156
  borderMedium: `light-dark(${r.gray110}, ${r.gray90})`,
159
157
  borderSubtle: `light-dark(${r.gray50}, ${r.gray160})`,
160
158
  borderBrand: `light-dark(${r.blue170}, ${r.blue170})`,
@@ -166,13 +164,13 @@ const r = {
166
164
  fieldHover01: `light-dark(${r.gray20}, ${r.gray170})`,
167
165
  fieldActive01: `light-dark(${r.gray30}, ${r.gray160})`,
168
166
  field02: `light-dark(${r.white}, ${r.gray160})`,
169
- fieldHover02: `light-dark(${r.whiteHover}, ${r.gray20})`,
167
+ fieldHover02: `light-dark(${r.whiteHover}, ${r.gray150})`,
170
168
  fieldActive02: `light-dark(${r.gray30}, ${r.gray140})`,
171
169
  fieldDisabled: `light-dark(${r.gray10}, ${r.gray180})`,
172
170
  fieldSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
173
- iconPrimary: `light-dark(${r.gray30}, ${r.gray10})`,
174
- iconSecondary: `light-dark(${r.blue170}, ${r.blue170})`,
175
- iconInverse: `light-dark(${r.white}, ${r.black})`,
171
+ iconPrimary: `light-dark(${r.gray200}, ${r.gray10})`,
172
+ iconSecondary: `light-dark(${r.blue170}, ${r.gray10})`,
173
+ iconInverse: `light-dark(${r.white}, ${r.gray200})`,
176
174
  iconOnColor: `light-dark(${r.white}, ${r.white})`,
177
175
  iconDanger: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
178
176
  iconDisabled: `light-dark(${r.gray50}, ${r.gray140})`,
@@ -188,15 +186,15 @@ const r = {
188
186
  notificationBorderInfo: `light-dark(${r.signalBlue140}, ${r.signalBlue140})`,
189
187
  notificationBorderImportant: `light-dark(${r.signalYellow140}, ${r.signalYellow140})`,
190
188
  notificationBorderWarning: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
191
- notificationBackgroundSuccess: `light-dark(${r.signalGreen20}, ${r.gray10})`,
192
- notificationBackgroundInfo: `light-dark(${r.signalBlue20}, ${r.gray10})`,
193
- notificationBackgroundImportant: `light-dark(${r.signalYellow20}, ${r.gray10})`,
194
- notificationBackgroundWarning: `light-dark(${r.signalRed20}, ${r.gray10})`,
195
- textPrimary: `light-dark(${r.gray30}, ${r.gray10})`,
189
+ notificationBackgroundSuccess: `light-dark(${r.signalGreen20}, ${r.gray180})`,
190
+ notificationBackgroundInfo: `light-dark(${r.signalBlue20}, ${r.gray180})`,
191
+ notificationBackgroundImportant: `light-dark(${r.signalYellow20}, ${r.gray180})`,
192
+ notificationBackgroundWarning: `light-dark(${r.signalRed20}, ${r.gray180})`,
193
+ textPrimary: `light-dark(${r.gray200}, ${r.gray10})`,
196
194
  textSecondary: `light-dark(${r.gray140}, ${r.gray70})`,
197
195
  textBrand: `light-dark(${r.blue170}, ${r.gray10})`,
198
196
  textOnColor: `light-dark(${r.white}, ${r.white})`,
199
- textInverse: `light-dark(${r.white}, ${r.black})`,
197
+ textInverse: `light-dark(${r.gray10}, ${r.gray200})`,
200
198
  textSubtle: `light-dark(${r.gray90}, ${r.gray90})`,
201
199
  textDisabled: `light-dark(${r.gray50}, ${r.gray140})`,
202
200
  textInvalid: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
@@ -204,7 +202,7 @@ const r = {
204
202
  buttonBackgroundPrimary: `light-dark(${r.blue170}, ${r.blue100})`,
205
203
  buttonBackgroundPrimaryHover: `light-dark(${r.blue140}, ${r.blue140})`,
206
204
  buttonBackgroundPrimaryActive: `light-dark(${r.blue100}, ${r.blue170})`,
207
- buttonBackgroundSecondary: `light-dark(${r.white}, ${r.gray30})`,
205
+ buttonBackgroundSecondary: `light-dark(${r.white}, ${r.gray200})`,
208
206
  buttonBackgroundSecondaryHover: `light-dark(${r.whiteHover}, ${r.gray190})`,
209
207
  buttonBackgroundSecondaryActive: `light-dark(${r.gray30}, ${r.gray180})`,
210
208
  buttonBackgroundTertiaryHover: `light-dark(${r.whiteHover}, ${r.gray190})`,
@@ -0,0 +1 @@
1
+ "use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue60:"#82b0c9",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue140:"#25607f",blue170:"#143c50",purple80:"#b46ab4",purple140:"#954b95",red100:"#b90835",signalBlue20:"#eaf2f6",signalBlue140:"#0066cc",signalGreen20:"#d5f2d9",signalGreen140:"#008d3c",signalRed20:"#ffdfdf",signalRed140:"#e62323",signalRed160:"#b31b1b",signalRed180:"#801313",signalYellow20:"#fff8e1",signalYellow140:"#fdb813"},a={fontFamily:'"Inter", sans-serif',lineHeight01:1,lineHeight02:1.125,lineHeight03:1.25,lineHeight04:1.375,lineHeight05:1.5,lineHeight06:1.75,lineHeight07:2,lineHeight08:2.25,lineHeight09:2.5,size01:"0.75rem",size02:"0.875rem",size03:"1rem",size04:"1.125rem",size05:"1.25rem",size06:"1.5rem",size07:"1.75rem",size08:"2rem",size09:"2.25rem",size10:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},e={"01":"0.125rem","02":"0.25rem","03":"0.5rem","04":"0.75rem","05":"1rem","06":"1.5rem","07":"2rem","08":"2.5rem","09":"3rem",10:"4rem",11:"5rem",12:"6rem"},g={focus:"0 0 0 2px white, 0 0 0 4px black"},i={slow:"500ms",normal:"300ms",fast:"250ms"},t={sm:"(max-width: 767px)",md:"(min-width: 768px)",lg:"(min-width: 1200px)",xl:"(min-width: 1440px)",forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},l={background01:`light-dark(${r.white}, ${r.gray200})`,backgroundHover01:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse01:`light-dark(${r.gray200}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray150})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray150})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderStrong:`light-dark(${r.gray200}, ${r.gray10})`,borderMedium:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderBrand:`light-dark(${r.blue170}, ${r.blue170})`,borderInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,borderSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,borderInverse:`light-dark(${r.white}, ${r.gray180})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray150})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,iconPrimary:`light-dark(${r.gray200}, ${r.gray10})`,iconSecondary:`light-dark(${r.blue170}, ${r.gray10})`,iconInverse:`light-dark(${r.white}, ${r.gray200})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,iconInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,iconWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,linkEnabled:`light-dark(${r.blue100}, ${r.blue90})`,linkHover:`light-dark(${r.blue170}, ${r.blue80})`,linkPressed:`light-dark(${r.gray200}, ${r.blue60})`,linkVisited:`light-dark(${r.purple140}, ${r.purple80})`,notificationBorderSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,notificationBorderInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,notificationBorderImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,notificationBorderWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,notificationBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray180})`,notificationBackgroundInfo:`light-dark(${r.signalBlue20}, ${r.gray180})`,notificationBackgroundImportant:`light-dark(${r.signalYellow20}, ${r.gray180})`,notificationBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray180})`,textPrimary:`light-dark(${r.gray200}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textBrand:`light-dark(${r.blue170}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.gray10}, ${r.gray200})`,textSubtle:`light-dark(${r.gray90}, ${r.gray90})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue170}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue140}, ${r.blue140})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue170})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray200})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed160}, ${r.signalRed160})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed180}, ${r.signalRed180})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundGhostHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundGhostActive:`light-dark(${r.gray30}, ${r.gray190})`,buttonBorderPrimary:`light-dark(${r.blue170}, ${r.gray10})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`},d=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:l,spacing:e,states:g,transitions:i,typography:a},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=l;exports.spacing=e;exports.states=g;exports.tokens=d;exports.transitions=i;exports.typography=a;
@@ -0,0 +1,2 @@
1
+ export * from './useLocalizedStringFormatter';
2
+ export * from './useMessageFormatter';
@@ -0,0 +1,11 @@
1
+ import { LocalizedString, LocalizedStringDictionary, LocalizedStringFormatter, LocalizedStrings } from '@internationalized/string';
2
+ /**
3
+ * Returns a cached LocalizedStringDictionary for the given strings.
4
+ */
5
+ export declare function useLocalizedStringDictionary<K extends string = string, T extends LocalizedString = string>(strings: LocalizedStrings<K, T>, packageName?: string): LocalizedStringDictionary<K, T>;
6
+ /**
7
+ * Provides localized string formatting for the current locale. Supports interpolating variables,
8
+ * selecting the correct pluralization, and formatting numbers. Automatically updates when the locale changes.
9
+ * @param strings - A mapping of languages to localized strings by key.
10
+ */
11
+ export declare function useLocalizedStringFormatter<K extends string = string, T extends LocalizedString = string>(strings: LocalizedStrings<K, T>, packageName?: string): LocalizedStringFormatter<K, T>;
@@ -0,0 +1,11 @@
1
+ import { LocalizedStrings } from '@internationalized/message';
2
+ export type FormatMessage = (key: string, variables?: {
3
+ [key: string]: any;
4
+ }) => string;
5
+ /**
6
+ * Handles formatting ICU Message strings to create localized strings for the current locale.
7
+ * Automatically updates when the locale changes, and handles caching of messages for performance.
8
+ * @param strings - A mapping of languages to strings by key.
9
+ * @deprecated - use useLocalizedStringFormatter instead.
10
+ */
11
+ export declare function useMessageFormatter(strings: LocalizedStrings): FormatMessage;
@@ -1,20 +0,0 @@
1
- import { ValidationResult, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
2
- import * as React from 'react';
3
- export interface TextAreaProps extends AriaTextFieldProps {
4
- /** Specify label displayed above the TextArea*/
5
- label?: string;
6
- /** Specify description displayed below the label */
7
- description?: string;
8
- /** Set number of rows for the TextArea */
9
- rows?: number;
10
- /** Set minimum number of characters that are allowed before the TextArea is put in an invalid state */
11
- minLength?: number;
12
- /**
13
- * Whether to show the character counter or not
14
- * @default
15
- * false
16
- */
17
- showCounter?: boolean;
18
- errorMessage?: string | ((validation: ValidationResult) => string);
19
- }
20
- export declare const TextArea: React.FC<TextAreaProps>;
@@ -1 +0,0 @@
1
- export { TextArea } from './TextArea';
@@ -1 +0,0 @@
1
- "use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue50:"#abcbdb",blue60:"#82b0c9",blue70:"#6ca3c0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue140:"#25607f",blue170:"#143c50",purple80:"#b46ab4",purple140:"#954b95",red100:"#b90835",signalBlue20:"#eaf2f6",signalBlue140:"#0066cc",signalGreen20:"#d5f2d9",signalGreen140:"#008d3c",signalRed20:"#ffdfdf",signalRed140:"#e62323",signalRed160:"#b31b1b",signalRed180:"#801313",signalYellow20:"#fff8e1",signalYellow140:"#fdb813"},e={fontFamily:'"Inter", sans-serif',lineHeight01:1,lineHeight02:1.125,lineHeight03:1.25,lineHeight04:1.375,lineHeight05:1.5,lineHeight06:1.75,lineHeight07:2,lineHeight08:2.25,lineHeight09:2.5,size01:"0.75rem",size02:"0.875rem",size03:"1rem",size04:"1.125rem",size05:"1.25rem",size06:"1.5rem",size07:"1.75rem",size08:"2rem",size09:"2.25rem",size10:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},a={"01":"0.125rem","02":"0.25rem","03":"0.5rem","04":"0.75rem","05":"1rem","06":"1.5rem","07":"2rem","08":"2.5rem","09":"3rem",10:"4rem",11:"5rem",12:"6rem"},g={focus:"0 0 0 2px white, 0 0 0 4px black"},i={slow:"500ms",normal:"300ms",fast:"250ms"},t={sm:"(max-width: 767px)",md:"(min-width: 768px)",lg:"(min-width: 1200px)",xl:"(min-width: 1440px)",forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},l={background01:`light-dark(${r.white}, ${r.gray30})`,backgroundHover01:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse01:`light-dark(${r.gray30}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray20})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray20})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray20})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderStrong:`light-dark(${r.gray30}, ${r.gray10})`,borderMedium:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderBrand:`light-dark(${r.blue170}, ${r.blue170})`,borderInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,borderSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,borderInverse:`light-dark(${r.white}, ${r.gray180})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray20})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,iconPrimary:`light-dark(${r.gray30}, ${r.gray10})`,iconSecondary:`light-dark(${r.blue170}, ${r.blue170})`,iconInverse:`light-dark(${r.white}, ${r.black})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,iconInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,iconWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,linkEnabled:`light-dark(${r.blue100}, ${r.blue90})`,linkHover:`light-dark(${r.blue170}, ${r.blue80})`,linkPressed:`light-dark(${r.gray200}, ${r.blue60})`,linkVisited:`light-dark(${r.purple140}, ${r.purple80})`,notificationBorderSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,notificationBorderInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,notificationBorderImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,notificationBorderWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,notificationBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray10})`,notificationBackgroundInfo:`light-dark(${r.signalBlue20}, ${r.gray10})`,notificationBackgroundImportant:`light-dark(${r.signalYellow20}, ${r.gray10})`,notificationBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray10})`,textPrimary:`light-dark(${r.gray30}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textBrand:`light-dark(${r.blue170}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.white}, ${r.black})`,textSubtle:`light-dark(${r.gray90}, ${r.gray90})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue170}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue140}, ${r.blue140})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue170})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray30})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed160}, ${r.signalRed160})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed180}, ${r.signalRed180})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundGhostHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundGhostActive:`light-dark(${r.gray30}, ${r.gray190})`,buttonBorderPrimary:`light-dark(${r.blue170}, ${r.gray10})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`},d=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:l,spacing:a,states:g,transitions:i,typography:e},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=l;exports.spacing=a;exports.states=g;exports.tokens=d;exports.transitions=i;exports.typography=e;