@osrd-project/ui-core 0.0.18
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/LICENSE +165 -0
- package/README.md +7 -0
- package/dist/components/inputs/Input.d.ts +23 -0
- package/dist/components/inputs/PasswordInput.d.ts +4 -0
- package/dist/components/inputs/TokenInput.d.ts +7 -0
- package/dist/components/inputs/checkbox.d.ts +6 -0
- package/dist/components/inputs/hooks/useKeyPress.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/stories/Input.stories.d.ts +20 -0
- package/dist/stories/PasswordInput.stories.d.ts +7 -0
- package/dist/stories/TokenInput.stories.d.ts +7 -0
- package/dist/theme.css +956 -0
- package/dist/theme.css.map +1 -0
- package/fonts/IBMPlexMono-Italic.ttf +0 -0
- package/fonts/IBMPlexMono-Regular.ttf +0 -0
- package/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/fonts/IBMPlexMono-SemiBoldItalic.ttf +0 -0
- package/fonts/IBMPlexSans-Bold.ttf +0 -0
- package/fonts/IBMPlexSans-BoldItalic.ttf +0 -0
- package/fonts/IBMPlexSans-Italic.ttf +0 -0
- package/fonts/IBMPlexSans-Regular.ttf +0 -0
- package/fonts/IBMPlexSans-SemiBold.ttf +0 -0
- package/fonts/IBMPlexSans-SemiBoldItalic.ttf +0 -0
- package/fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/fonts/IBMPlexSerif-SemiBold.ttf +0 -0
- package/fonts/IBMPlexSerif-SemiBoldItalic.ttf +0 -0
- package/package.json +49 -0
- package/postcss.config.cjs +12 -0
- package/rollup.config.js +35 -0
- package/src/components/inputs/Input.tsx +148 -0
- package/src/components/inputs/PasswordInput.tsx +23 -0
- package/src/components/inputs/TokenInput.tsx +61 -0
- package/src/components/inputs/checkbox.tsx +25 -0
- package/src/components/inputs/hooks/useKeyPress.tsx +19 -0
- package/src/index.ts +6 -0
- package/src/stories/Input.stories.tsx +160 -0
- package/src/stories/PasswordInput.stories.tsx +19 -0
- package/src/stories/TokenInput.stories.tsx +19 -0
- package/src/styles/inputs/input.css +339 -0
- package/src/styles/inputs/passwordInput.css +8 -0
- package/src/styles/inputs/tokenInput.css +77 -0
- package/src/styles/main.css +52 -0
- package/tailwind.config.js +102 -0
- package/tsconfig.json +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# OSRD UI-Core project
|
|
2
|
+
|
|
3
|
+
## editor config
|
|
4
|
+
|
|
5
|
+
We use Tailwind to make styling easier. To enable VSCode to support Tailwind directives within CSS
|
|
6
|
+
files, we must complete the three steps outlined
|
|
7
|
+
[here](https://github.com/tailwindlabs/tailwindcss/discussions/5258#discussioncomment-1979394)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type status = 'success' | 'info' | 'error' | 'warning' | 'loading';
|
|
3
|
+
type statusWithMessage = {
|
|
4
|
+
status: status;
|
|
5
|
+
message?: string;
|
|
6
|
+
};
|
|
7
|
+
type InputAffixContent = string | React.ReactNode;
|
|
8
|
+
type InputAffixContentWithCallback = {
|
|
9
|
+
content: string | React.ReactNode;
|
|
10
|
+
onClickCallback: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
hint?: string;
|
|
16
|
+
leadingContent?: InputAffixContent | InputAffixContentWithCallback;
|
|
17
|
+
trailingContent?: InputAffixContent | InputAffixContentWithCallback;
|
|
18
|
+
small?: boolean;
|
|
19
|
+
statusWithMessage?: statusWithMessage;
|
|
20
|
+
inputWrapperClassname?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Input: React.FC<InputProps>;
|
|
23
|
+
export default Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useKeyPress(key: KeyboardEvent['key'], onKeyPressed: (e: KeyboardEvent) => void): {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './styles/main.css';
|
|
2
|
+
export { default as Checkbox } from './components/inputs/checkbox';
|
|
3
|
+
export { default as Input } from './components/inputs/Input';
|
|
4
|
+
export { default as TokenInput } from './components/inputs/TokenInput';
|
|
5
|
+
export { default as PasswordInput } from './components/inputs/PasswordInput';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e,{useState as t,useEffect as a,useRef as n}from"react";import{RequiredInput as l,Gear as s,Info as r,CheckCircle as c,Alert as i,Blocked as o,X as m,EyeClosed as u,Eye as p}from"@osrd-project/ui-icons";import d from"classnames";const E=({label:a})=>{const[n,l]=t(!1);return e.createElement("div",null,e.createElement("label",null,e.createElement("input",{type:"checkbox",checked:n,onChange:()=>{l(!n)}}),e.createElement("span",{className:"custom-checkbox"}),a))};function v(e,t,a,n){return new(a||(a=Promise))((function(l,s){function r(e){try{i(n.next(e))}catch(e){s(e)}}function c(e){try{i(n.throw(e))}catch(e){s(e)}}function i(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,c)}i((n=n.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const g=({value:t,type:a})=>{const n="object"==typeof t&&null!==t&&"onClickCallback"in t,l=n?t.content:t,s=n?{onClick:t.onClickCallback}:{};return e.createElement("div",Object.assign({className:`${a}-content-wrapper`},s),e.createElement("span",{className:`${a}-content`},l))},b=({status:t,small:a})=>e.createElement("span",{className:d("status-icon",t)},"loading"===t&&e.createElement(s,{size:a?"sm":"lg"}),"info"===t&&e.createElement(r,{size:a?"sm":"lg"}),"success"===t&&e.createElement(c,{variant:"fill",size:a?"sm":"lg"}),"warning"===t&&e.createElement(i,{variant:"fill",size:a?"sm":"lg"}),"error"===t&&e.createElement(o,{variant:"fill",size:a?"sm":"lg"})),k=({id:n,label:s,type:r,value:c,hint:i,leadingContent:o,trailingContent:m,required:u,disabled:p,readOnly:E,statusWithMessage:k,inputWrapperClassname:f,small:w=!1})=>{const[y,N]=t(c),[h,C]=t(!1);var x,j;a((()=>{const e=e=>{e.key===x&&j(e)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[x="Tab",j=()=>v(void 0,void 0,void 0,(function*(){return C(!0)}))]);const O=Object.assign({},k?{[k.status]:k.status}:{});return e.createElement("div",{className:d("feed-back",O,{small:w})},e.createElement("div",{className:"custom-input"},e.createElement("div",{className:d("label-wrapper",{"has-hint":i})},u&&e.createElement("span",{className:"required"}," ",e.createElement(l,null)," "),e.createElement("label",{className:d("label",{disabled:p}),htmlFor:n},s)),i&&e.createElement("span",{className:"hint"},i),e.createElement("div",{className:"input-wrapper-and-status-icon"},e.createElement("div",{className:d("input-wrapper",f,{focused:h})},o&&e.createElement(g,{value:o,type:"leading"}),e.createElement("input",{className:d("input",Object.assign({"with-leading-only":o&&!m,"with-trailing-only":m&&!o,"with-leading-and-trailing":o&&m},O)),id:n,type:r,value:y,onChange:e=>N(e.target.value),disabled:p,readOnly:E,onBlur:()=>C(!1)}),m&&e.createElement(g,{value:m,type:"trailing"})),k&&e.createElement(b,{status:k.status,small:w})),(null==k?void 0:k.message)&&e.createElement("span",{className:d("status-message",O)},k.message)))},f=({label:a,tokens:l})=>{const[s,r]=t(l),[c,i]=t(""),[o,u]=t(null),p=n(null);return e.createElement("div",{className:"token-input-wrapper"},e.createElement("label",{className:"input-label"},a),e.createElement("div",{className:"tokens-wrapper",onClick:e=>{var t;e.target===e.currentTarget&&(null===(t=p.current)||void 0===t||t.focus())}},s.map(((t,a)=>e.createElement("div",{key:`${t}-${a}`,onClick:()=>u(a),className:d("token-item-wrapper",{selected:o===a})},e.createElement("span",{className:"token-label"},t),e.createElement("span",{className:"token-close-btn",onClick:()=>r((e=>e.filter(((e,t)=>t!==a))))},e.createElement(m,null))))),e.createElement("input",{type:"text",value:c,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&""!==c.trim()&&(r((e=>[...e,c])),i(""))},className:"token-input",ref:p})))},w=a=>{const[n,l]=t(!1);return e.createElement(k,Object.assign({},a,{type:n?"text":"password",trailingContent:{content:n?e.createElement(u,null):e.createElement(p,null),onClickCallback:()=>l(!n)},inputWrapperClassname:"password-input",small:!1}))};export{E as Checkbox,k as Input,w as PasswordInput,f as TokenInput};
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/components/inputs/checkbox.tsx","../../node_modules/tslib/tslib.es6.js","../src/components/inputs/Input.tsx","../src/components/inputs/hooks/useKeyPress.tsx","../src/components/inputs/TokenInput.tsx","../src/components/inputs/PasswordInput.tsx"],"sourcesContent":[null,"/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null,null,null],"names":["Checkbox","label","isChecked","setIsChecked","useState","React","createElement","type","checked","onChange","className","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","SuppressedError","InputAffix","isContentWithCallback","spanContent","content","wrapperProps","onClick","onClickCallback","InputStatusIcon","status","small","cx","Gear","size","Info","CheckCircle","variant","Alert","Blocked","Input","id","initialValue","hint","leadingContent","trailingContent","required","disabled","readOnly","statusWithMessage","inputWrapperClassname","setValue","focusViaKeyboard","setFocusViaKeyboard","key","onKeyPressed","useEffect","handleKeyDown","window","addEventListener","removeEventListener","statusClassname","Object","assign","RequiredInput","htmlFor","focused","target","onBlur","message","TokenInput","tokens","initialTokens","setTokens","newToken","setNewToken","selectedToken","setSelectedToken","inputRef","useRef","currentTarget","_a","current","focus","map","token","index","selected","oldTokens","filter","_t","i","X","onKeyDown","trim","ref","PasswordInput","props","isVisible","toggleVisibility","EyeClosed","Eye"],"mappings":"4OAMA,MAAMA,EAAoC,EAAGC,YAC3C,MAAOC,EAAWC,GAAgBC,GAAS,GAM3C,OACEC,EAAAC,cAAA,MAAA,KACED,EAAAC,cAAA,QAAA,KACED,EAAOC,cAAA,QAAA,CAAAC,KAAK,WAAWC,QAASN,EAAWO,SAPpB,KAC3BN,G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GAChCpF,UAAW8B,EAAG,qBAAsB,CAAEuD,SAAUX,IAAkBU,KAElEzF,EAAAC,cAAA,OAAA,CAAMI,UAAU,eAAemF,GAC/BxF,EAAAC,cAAA,OAAA,CACEI,UAAU,kBACVyB,QAAS,IAAM8C,GAAWe,GAAcA,EAAUC,QAAO,CAACC,EAAIC,IAAMA,IAAML,OAE1EzF,EAAAC,cAAC8F,EAAC,UAIR/F,EAAAC,cAAA,QAAA,CACEC,KAAK,OACLa,MAAO8D,EACPzE,SAAWc,GAAM4D,EAAY5D,EAAEoD,OAAOvD,OACtCiF,UApCU9E,IACF,UAAVA,EAAEuC,KAAuC,KAApBoB,EAASoB,SAChCrB,GAAWe,GAAc,IAAIA,EAAWd,KACxCC,EAAY,IACb,EAiCKzE,UAAU,cACV6F,IAAKjB,KAIX,ECpDEkB,EAAuCC,IAC3C,MAAOC,EAAWC,GAAoBvG,GAAS,GAE/C,OACEC,EAACC,cAAA0C,mBACKyD,EAAK,CACTlG,KAAMmG,EAAY,OAAS,WAC3BrD,gBAAiB,CACfpB,QAASyE,EAAYrG,EAAAC,cAACsG,EAAS,MAAMvG,EAAAC,cAACuG,EAAM,MAC5CzE,gBAAiB,IAAMuE,GAAkBD,IAE3ChD,sBAAsB,iBACtBnB,OAAO,IAET","x_google_ignoreList":[1]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import '@osrd-project/ui-core/dist/theme.css';
|
|
3
|
+
import Input from '../components/inputs/Input';
|
|
4
|
+
declare const meta: Meta<typeof Input>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Input>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Value: Story;
|
|
9
|
+
export declare const Hint: Story;
|
|
10
|
+
export declare const LeadingContent: Story;
|
|
11
|
+
export declare const TrainlingContent: Story;
|
|
12
|
+
export declare const LeadingAndTrainlingContent: Story;
|
|
13
|
+
export declare const RequiredInput: Story;
|
|
14
|
+
export declare const LoadingInput: Story;
|
|
15
|
+
export declare const SuccessInput: Story;
|
|
16
|
+
export declare const InformationInput: Story;
|
|
17
|
+
export declare const WarningInput: Story;
|
|
18
|
+
export declare const WarningWithoutMessageInput: Story;
|
|
19
|
+
export declare const ErrorInput: Story;
|
|
20
|
+
export declare const ErrorWithoutMessageInput: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import '@osrd-project/ui-core/dist/theme.css';
|
|
3
|
+
import PasswordInput from '../components/inputs/PasswordInput';
|
|
4
|
+
declare const meta: Meta<typeof PasswordInput>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof PasswordInput>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import '@osrd-project/ui-core/dist/theme.css';
|
|
3
|
+
import TokenInput from '../components/inputs/TokenInput';
|
|
4
|
+
declare const meta: Meta<typeof TokenInput>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof TokenInput>;
|
|
7
|
+
export declare const Default: Story;
|