@raspberrypifoundation/design-system-react 2.9.2 → 2.10.2
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/design-system-react.css +1 -1
- package/dist/design-system-react.js +627 -545
- package/dist/design-system-react.umd.cjs +14 -14
- package/dist/scss/components/button.scss +1 -1
- package/dist/types/lib/main.d.ts +2 -0
- package/dist/types/lib/main.d.ts.map +1 -1
- package/dist/types/src/components/Form/PasswordInput/PasswordInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/PasswordInput/PasswordInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/PasswordInput/PasswordInput.types.d.ts +25 -0
- package/dist/types/src/components/Form/PasswordInput/PasswordInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/PasswordInput/index.d.ts +6 -0
- package/dist/types/src/components/Form/PasswordInput/index.d.ts.map +1 -0
- package/dist/types/src/stories/Button.stories.d.ts +16 -8
- package/dist/types/src/stories/Button.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/PasswordInput.stories.d.ts +30 -0
- package/dist/types/src/stories/forms/PasswordInput.stories.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@/components/MaterialSymbols";
|
|
2
|
+
import "./PasswordInput.scss";
|
|
3
|
+
import type { PasswordInputProps } from "./PasswordInput.types";
|
|
4
|
+
export declare const PasswordInput: ({ disabled, readOnly, fullWidth, error, label, id, hint, showPasswordLabel, hidePasswordLabel, forgotPasswordLabel, forgotPasswordHref, ...props }: PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default PasswordInput;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/PasswordInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAItC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,oJAa3B,kBAAkB,4CAkEpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -35,31 +35,39 @@ export namespace IconOnly {
|
|
|
35
35
|
}
|
|
36
36
|
export { args_5 as args };
|
|
37
37
|
}
|
|
38
|
+
export namespace IconOnlySvg {
|
|
39
|
+
let args_6: {
|
|
40
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
iconOnly: boolean;
|
|
42
|
+
"aria-label": string;
|
|
43
|
+
};
|
|
44
|
+
export { args_6 as args };
|
|
45
|
+
}
|
|
38
46
|
export namespace LinkButton {
|
|
39
|
-
export namespace
|
|
47
|
+
export namespace args_7 {
|
|
40
48
|
export let href: string;
|
|
41
49
|
export { Link as linkComponent };
|
|
42
50
|
}
|
|
43
|
-
export {
|
|
51
|
+
export { args_7 as args };
|
|
44
52
|
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
45
53
|
}
|
|
46
54
|
export namespace ExternalLink {
|
|
47
|
-
export namespace
|
|
55
|
+
export namespace args_8 {
|
|
48
56
|
let href_1: string;
|
|
49
57
|
export { href_1 as href };
|
|
50
58
|
let icon_2: string;
|
|
51
59
|
export { icon_2 as icon };
|
|
52
60
|
export let iconPosition: string;
|
|
53
61
|
}
|
|
54
|
-
export {
|
|
62
|
+
export { args_8 as args };
|
|
55
63
|
let decorators_1: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
56
64
|
export { decorators_1 as decorators };
|
|
57
65
|
}
|
|
58
66
|
export namespace Danger {
|
|
59
|
-
export namespace
|
|
67
|
+
export namespace args_9 {
|
|
60
68
|
let variant: string;
|
|
61
69
|
}
|
|
62
|
-
export {
|
|
70
|
+
export { args_9 as args };
|
|
63
71
|
}
|
|
64
72
|
declare namespace options {
|
|
65
73
|
export let title: string;
|
|
@@ -109,7 +117,7 @@ declare namespace options {
|
|
|
109
117
|
}
|
|
110
118
|
export { iconPosition_1 as iconPosition };
|
|
111
119
|
}
|
|
112
|
-
let
|
|
120
|
+
let args_10: {
|
|
113
121
|
text: string;
|
|
114
122
|
type: string;
|
|
115
123
|
variant: string;
|
|
@@ -126,7 +134,7 @@ declare namespace options {
|
|
|
126
134
|
"aria-label": string;
|
|
127
135
|
linkComponent: null;
|
|
128
136
|
};
|
|
129
|
-
export {
|
|
137
|
+
export { args_10 as args };
|
|
130
138
|
}
|
|
131
139
|
import { Link } from "react-router-dom";
|
|
132
140
|
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Button.stories.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Button.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACoC,kBAAkB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PasswordInput } from "../../components/Form/PasswordInput";
|
|
3
|
+
declare const meta: Meta<typeof PasswordInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PasswordInput>;
|
|
6
|
+
/**
|
|
7
|
+
* Password inputs let users toggle the visibility of a sensitive field via the Show/Hide button.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* disabled prevents the field from being edited or toggled
|
|
12
|
+
*/
|
|
13
|
+
export declare const Disabled: Story;
|
|
14
|
+
/**
|
|
15
|
+
* readonly prevents editing but keeps the field focusable
|
|
16
|
+
*/
|
|
17
|
+
export declare const Readonly: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Providing an error string highlights an issue with the field
|
|
20
|
+
*/
|
|
21
|
+
export declare const Error: Story;
|
|
22
|
+
/**
|
|
23
|
+
* fullWidth makes the input stretch across the available space
|
|
24
|
+
*/
|
|
25
|
+
export declare const FullWidth: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Omit forgotPasswordHref to hide the "Forgot password?" link
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithoutForgotPassword: Story;
|
|
30
|
+
//# sourceMappingURL=PasswordInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/forms/PasswordInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAepC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAInC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raspberrypifoundation/design-system-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/design-system-react.umd.cjs",
|
|
6
6
|
"module": "./dist/design-system-react.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ts:watch": "tsc --noEmit --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@raspberrypifoundation/design-system-core": "^2.4.
|
|
46
|
+
"@raspberrypifoundation/design-system-core": "^2.4.8",
|
|
47
47
|
"classnames": "^2.5.1",
|
|
48
48
|
"lucide-react": "^0.553.0"
|
|
49
49
|
},
|