@bigbluebutton/bbb-ui-components-react 0.5.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/LICENSE +165 -0
- package/README.md +141 -0
- package/dist/components/Accordion.js +1 -0
- package/dist/components/Button.js +1 -0
- package/dist/components/Checkbox.js +1 -0
- package/dist/components/Divider.js +1 -0
- package/dist/components/Hint.js +1 -0
- package/dist/components/Modal.js +1 -0
- package/dist/components/Navigation.js +1 -0
- package/dist/components/Search.js +1 -0
- package/dist/components/Select.js +1 -0
- package/dist/components/Spinner.js +1 -0
- package/dist/components/TextAreaInput.js +1 -0
- package/dist/components/TextInput.js +1 -0
- package/dist/components/Toggle.js +1 -0
- package/dist/components/Typography.js +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/components/Accordion/component.js +29 -0
- package/dist/esm/components/Accordion/constants.js +9 -0
- package/dist/esm/components/Accordion/index.js +1 -0
- package/dist/esm/components/Accordion/styles.js +20 -0
- package/dist/esm/components/Accordion/types.js +2 -0
- package/dist/esm/components/Button/component.js +73 -0
- package/dist/esm/components/Button/constants.js +174 -0
- package/dist/esm/components/Button/index.js +1 -0
- package/dist/esm/components/Button/styles.js +60 -0
- package/dist/esm/components/Button/type.js +1 -0
- package/dist/esm/components/Checkbox/component.js +47 -0
- package/dist/esm/components/Checkbox/constants.js +6 -0
- package/dist/esm/components/Checkbox/index.js +1 -0
- package/dist/esm/components/Checkbox/styles.js +13 -0
- package/dist/esm/components/Checkbox/types.js +1 -0
- package/dist/esm/components/Divider/component.js +12 -0
- package/dist/esm/components/Divider/index.js +1 -0
- package/dist/esm/components/Divider/styles.js +8 -0
- package/dist/esm/components/Hint/component.js +48 -0
- package/dist/esm/components/Hint/constants.js +6 -0
- package/dist/esm/components/Hint/index.js +1 -0
- package/dist/esm/components/Hint/styles.js +16 -0
- package/dist/esm/components/Hint/types.js +1 -0
- package/dist/esm/components/Modal/component.js +56 -0
- package/dist/esm/components/Modal/index.js +1 -0
- package/dist/esm/components/Modal/styles.js +52 -0
- package/dist/esm/components/Modal/types.js +1 -0
- package/dist/esm/components/Navigation/component.js +20 -0
- package/dist/esm/components/Navigation/index.js +1 -0
- package/dist/esm/components/Navigation/styles.js +14 -0
- package/dist/esm/components/Navigation/types.js +1 -0
- package/dist/esm/components/Search/component.js +75 -0
- package/dist/esm/components/Search/index.js +1 -0
- package/dist/esm/components/Search/styles.js +17 -0
- package/dist/esm/components/Search/types.js +1 -0
- package/dist/esm/components/Select/component.js +44 -0
- package/dist/esm/components/Select/index.js +1 -0
- package/dist/esm/components/Select/styles.js +15 -0
- package/dist/esm/components/Select/types.js +1 -0
- package/dist/esm/components/Spinner/component.js +15 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Spinner/styles.js +30 -0
- package/dist/esm/components/Spinner/types.js +1 -0
- package/dist/esm/components/TextAreaInput/component.js +50 -0
- package/dist/esm/components/TextAreaInput/index.js +1 -0
- package/dist/esm/components/TextAreaInput/styles.js +9 -0
- package/dist/esm/components/TextAreaInput/types.js +2 -0
- package/dist/esm/components/TextInput/component.js +39 -0
- package/dist/esm/components/TextInput/index.js +1 -0
- package/dist/esm/components/TextInput/styles.js +20 -0
- package/dist/esm/components/TextInput/types.js +1 -0
- package/dist/esm/components/Toggle/component.js +46 -0
- package/dist/esm/components/Toggle/constants.js +8 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +91 -0
- package/dist/esm/components/Toggle/types.js +2 -0
- package/dist/esm/components/Typography/component.js +36 -0
- package/dist/esm/components/Typography/constants.js +8 -0
- package/dist/esm/components/Typography/index.js +1 -0
- package/dist/esm/components/Typography/styles.js +20 -0
- package/dist/esm/components/Typography/types.js +1 -0
- package/dist/esm/components/index.js +14 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/stylesheets/pallete.js +46 -0
- package/dist/esm/stylesheets/sizing.js +12 -0
- package/dist/esm/stylesheets/typography.js +8 -0
- package/dist/types/components/Accordion/component.d.ts +12 -0
- package/dist/types/components/Accordion/constants.d.ts +9 -0
- package/dist/types/components/Accordion/index.d.ts +1 -0
- package/dist/types/components/Accordion/styles.d.ts +6 -0
- package/dist/types/components/Accordion/types.d.ts +21 -0
- package/dist/types/components/Button/component.d.ts +13 -0
- package/dist/types/components/Button/constants.d.ts +41 -0
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Button/styles.d.ts +7 -0
- package/dist/types/components/Button/type.d.ts +80 -0
- package/dist/types/components/Checkbox/component.d.ts +12 -0
- package/dist/types/components/Checkbox/constants.d.ts +6 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/Checkbox/styles.d.ts +4 -0
- package/dist/types/components/Checkbox/types.d.ts +10 -0
- package/dist/types/components/Divider/component.d.ts +9 -0
- package/dist/types/components/Divider/index.d.ts +1 -0
- package/dist/types/components/Divider/styles.d.ts +1 -0
- package/dist/types/components/Hint/component.d.ts +11 -0
- package/dist/types/components/Hint/constants.d.ts +6 -0
- package/dist/types/components/Hint/index.d.ts +1 -0
- package/dist/types/components/Hint/styles.d.ts +7 -0
- package/dist/types/components/Hint/types.d.ts +7 -0
- package/dist/types/components/Modal/component.d.ts +11 -0
- package/dist/types/components/Modal/index.d.ts +1 -0
- package/dist/types/components/Modal/styles.d.ts +9 -0
- package/dist/types/components/Modal/types.d.ts +21 -0
- package/dist/types/components/Navigation/component.d.ts +9 -0
- package/dist/types/components/Navigation/index.d.ts +1 -0
- package/dist/types/components/Navigation/styles.d.ts +4 -0
- package/dist/types/components/Navigation/types.d.ts +15 -0
- package/dist/types/components/Search/component.d.ts +8 -0
- package/dist/types/components/Search/index.d.ts +1 -0
- package/dist/types/components/Search/styles.d.ts +9 -0
- package/dist/types/components/Search/types.d.ts +42 -0
- package/dist/types/components/Select/component.d.ts +11 -0
- package/dist/types/components/Select/index.d.ts +1 -0
- package/dist/types/components/Select/styles.d.ts +7 -0
- package/dist/types/components/Select/types.d.ts +8 -0
- package/dist/types/components/Spinner/component.d.ts +10 -0
- package/dist/types/components/Spinner/index.d.ts +1 -0
- package/dist/types/components/Spinner/styles.d.ts +4 -0
- package/dist/types/components/Spinner/types.d.ts +15 -0
- package/dist/types/components/TextAreaInput/component.d.ts +11 -0
- package/dist/types/components/TextAreaInput/index.d.ts +1 -0
- package/dist/types/components/TextAreaInput/styles.d.ts +1 -0
- package/dist/types/components/TextAreaInput/types.d.ts +10 -0
- package/dist/types/components/TextInput/component.d.ts +11 -0
- package/dist/types/components/TextInput/index.d.ts +1 -0
- package/dist/types/components/TextInput/styles.d.ts +8 -0
- package/dist/types/components/TextInput/types.d.ts +9 -0
- package/dist/types/components/Toggle/component.d.ts +11 -0
- package/dist/types/components/Toggle/constants.d.ts +8 -0
- package/dist/types/components/Toggle/index.d.ts +1 -0
- package/dist/types/components/Toggle/styles.d.ts +7 -0
- package/dist/types/components/Toggle/types.d.ts +19 -0
- package/dist/types/components/Typography/component.d.ts +11 -0
- package/dist/types/components/Typography/constants.d.ts +1 -0
- package/dist/types/components/Typography/index.d.ts +1 -0
- package/dist/types/components/Typography/styles.d.ts +2 -0
- package/dist/types/components/Typography/types.d.ts +11 -0
- package/dist/types/components/index.d.ts +14 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stylesheets/pallete.d.ts +30 -0
- package/dist/types/stylesheets/sizing.d.ts +9 -0
- package/dist/types/stylesheets/typography.d.ts +7 -0
- package/package.json +290 -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,141 @@
|
|
|
1
|
+
# BBB UI Components React
|
|
2
|
+
|
|
3
|
+
This repository contains a library of reusable React components extracted from the main [**BigBlueButton (BBB)**](https://github.com/bigbluebutton/bigbluebutton) project. These components provide a consistent and customizable interface that can be reused in other projects, allowing them to easily adopt the BBB visual identity.
|
|
4
|
+
|
|
5
|
+
## Available Components
|
|
6
|
+
|
|
7
|
+
Below is a list of the components available in this library. Each component has its own detailed documentation with usage examples and a complete list of props.
|
|
8
|
+
|
|
9
|
+
- [BBBAccordion](./src/components/Accordion/README.md)
|
|
10
|
+
- [BBButton](./src/components/Button/README.md)
|
|
11
|
+
- [BBBCheckbox](./src/components/Checkbox/README.md)
|
|
12
|
+
- [BBBDivider](./src/components/Divider/README.md)
|
|
13
|
+
- [BBBHint](./src/components/Hint/README.md)
|
|
14
|
+
- [BBBModal](./src/components/Modal//README.md)
|
|
15
|
+
- [BBBNavigation](./src/components/Navigation/README.md)
|
|
16
|
+
- [BBBSearch](./src/components/Search/README.md)
|
|
17
|
+
- [BBBSelect](./src/components/Select/README.md)
|
|
18
|
+
- [BBBSpinner](./src/components/Spinner//README.md)
|
|
19
|
+
- [BBBTextAreaInput](./src/components/TextAreaInput/README.md)
|
|
20
|
+
- [BBBTextInput](./src/components/TextInput/README.md)
|
|
21
|
+
- [BBBToggle](./src/components/Toggle/README.md)
|
|
22
|
+
- [BBBTypography](./src/components/Typography/README.md)
|
|
23
|
+
|
|
24
|
+
## Peer Dependencies
|
|
25
|
+
|
|
26
|
+
This library requires the following peer dependencies to be installed in your project:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
react ^18.2.0
|
|
30
|
+
react-dom ^18.2.0
|
|
31
|
+
styled-components >=5.3.0
|
|
32
|
+
react-modal >=3.16.1
|
|
33
|
+
@emotion/react ^11.13.0
|
|
34
|
+
@emotion/styled ^11.13.0
|
|
35
|
+
@mui/material ^6.1.4 || ^7.0.0
|
|
36
|
+
@mui/icons-material ^6.1.4 || ^7.0.0
|
|
37
|
+
prop-types ^15.8.1
|
|
38
|
+
react-icons ^5.5.0
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Make sure to install these dependencies to avoid runtime errors and ensure compatibility.
|
|
42
|
+
|
|
43
|
+
You can install all of them with the following command:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install react react-dom styled-components react-modal @emotion/react @emotion/styled @mui/material @mui/icons-material prop-types react-icons
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Note**: `@tippyjs/react` and `tippy.js` (used internally by the Tooltip) ship as regular dependencies of this library, so they're installed automatically — no need to add them yourself.
|
|
50
|
+
|
|
51
|
+
## Color Customization with CSS Variables
|
|
52
|
+
|
|
53
|
+
This library supports overriding component colors using CSS custom properties (variables). You can define these variables in your project's global CSS or stylesheets to customize the appearance of components without modifying the library code. This is particularly useful for theming and maintaining consistency with your application's design system.
|
|
54
|
+
|
|
55
|
+
To use this feature:
|
|
56
|
+
1. Define the CSS variables in your project's root styles (e.g., in a global CSS file or via styled-components' `createGlobalStyle`).
|
|
57
|
+
2. The library's components will automatically pick up these variables if they are set on the `:root` element or a parent container.
|
|
58
|
+
|
|
59
|
+
**Note**: These variables are optional. If not defined, the components will fall back to their default styled-components theme values, which are derived from the project's `src/stylesheets/palette.ts` file.
|
|
60
|
+
|
|
61
|
+
### Available CSS Variables
|
|
62
|
+
|
|
63
|
+
The following table lists the supported CSS variables for color overriding, extracted from `src/stylesheets/palette.ts`. Each variable corresponds to a specific color aspect used in the components (e.g., neutrals, brands, semantics). The "Maps to BBB Core Variable" column indicates if the variable aligns with a standard BBB core color (based on the file's comments). The "Default Value" column shows the fallback color used if the variable is not set.
|
|
64
|
+
|
|
65
|
+
| Variable Name | Maps to BBB Core Variable | Default Value |
|
|
66
|
+
|----------------------------|----------------------------|---------------|
|
|
67
|
+
| `--color-neutral-2` | No | #717C91 |
|
|
68
|
+
| `--color-neutral-3` | No | #B0BDC9 |
|
|
69
|
+
| `--color-neutral-4` | No | #DCE4EC |
|
|
70
|
+
| `--color-neutral-white` | No | #FFFFFF |
|
|
71
|
+
| `--color-light-gray` | No | #F4F6FA |
|
|
72
|
+
| `--color-gray` | No | #4E5A66 |
|
|
73
|
+
| `--color-dark-gray` | No | #393C48 |
|
|
74
|
+
| `--color-brand-1` | No | #1D65D4 |
|
|
75
|
+
| `--color-brand-2` | No | #1D65D4 |
|
|
76
|
+
| `--color-brand-3` | No | #1D65D4 |
|
|
77
|
+
| `--color-brand-light` | Yes (`--color-blue-aux`) | #E5EFFB |
|
|
78
|
+
| `--color-brand-aux` | Yes (`--color-brand-aux`) | #E5EFFB |
|
|
79
|
+
| `--color-success` | No | #2DD36F |
|
|
80
|
+
| `--color-warning` | No | #F59240 |
|
|
81
|
+
| `--color-error` | Yes (`--color-danger`) | #D6232D |
|
|
82
|
+
| `--color-error-dark` | Yes (`--color-danger-dark`)| #B91C25 |
|
|
83
|
+
| `--color-background-white` | No | #FFFFFF |
|
|
84
|
+
| `--color-background-light` | No | #F4F6FA |
|
|
85
|
+
| `--color-background-blue` | No | #E5EFFB |
|
|
86
|
+
| `--color-border-default` | No | #B0BDC9 |
|
|
87
|
+
| `--color-border-selected` | No | #1D65D4 |
|
|
88
|
+
| `--color-border-error` | No | #D6232D |
|
|
89
|
+
| `--color-border-default` | Yes (`--default-border`) | #B0BDC9 |
|
|
90
|
+
| `--color-text-default` | No | #393C48 |
|
|
91
|
+
| `--color-text-light` | No | #717C91 |
|
|
92
|
+
| `--color-icon-default` | No | #717C91 |
|
|
93
|
+
| `--color-icon-blue` | No | #1D65D4 |
|
|
94
|
+
| `--color-icon-white` | No | #FFFFFF |
|
|
95
|
+
| `--color-hover-dark` | No | #1E53AF |
|
|
96
|
+
| `--color-hover-light` | No | #D4E5FA |
|
|
97
|
+
| `--color-hover-neutral` | No | #DCE4EC |
|
|
98
|
+
|
|
99
|
+
**Example Usage**:
|
|
100
|
+
```css
|
|
101
|
+
:root {
|
|
102
|
+
--color-primary: #ff5733; /* Override primary brand color to a custom orange */
|
|
103
|
+
--color-text-default: #333333; /* Darker text for better contrast */
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
If you need to override colors for specific components or add new variables, refer to the component's `styles.ts` file for implementation details.
|
|
108
|
+
|
|
109
|
+
## Installation
|
|
110
|
+
|
|
111
|
+
You can install the library directly from npm:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
npm install @mconf/bbb-ui-components-react
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Local Development
|
|
118
|
+
|
|
119
|
+
If you want to build the library locally or contribute:
|
|
120
|
+
|
|
121
|
+
### Building the bundle
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
nvm use
|
|
125
|
+
npm install
|
|
126
|
+
npm run build
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Using npm link
|
|
130
|
+
|
|
131
|
+
When developing and testing locally with `npm link`, you may need to adjust your Webpack configuration to ensure compatibility with `styled-components` and `react`, which do not handle multiple instances well. Add the following alias configuration to the project that uses this library:
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
resolve: {
|
|
135
|
+
alias: {
|
|
136
|
+
'styled-components': path.resolve('./node_modules/styled-components'),
|
|
137
|
+
react: path.resolve('./node_modules/react'),
|
|
138
|
+
'react-dom': path.resolve('./node_modules/react-dom'),
|
|
139
|
+
},
|
|
140
|
+
}
|
|
141
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("styled-components"),require("@tippyjs/react"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@tippyjs/react"],t);else{var r="object"==typeof exports?t(require("react"),require("styled-components"),require("@tippyjs/react")):t(e.react,e["styled-components"],e["@tippyjs/react"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(e,t,r)=>(()=>{"use strict";var n={2:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(601),o=r.n(n),a=r(314),i=r.n(a)()(o());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const c=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(i[l]=!0)}for(var s=0;s<e.length;s++){var p=[].concat(e[s]);n&&i[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},i=[],c=0;c<e.length;c++){var l=e[c],s=n.base?l[0]+n.base:l[0],p=a[s]||0,d="".concat(s," ").concat(p);a[s]=p+1;var u=r(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(f);else{var v=o(f,n);n.byIndex=c,t.splice(c,0,{identifier:d,updater:v,references:1})}i.push(d)}return i}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var a=n(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var c=r(a[i]);t[c].references--}for(var l=n(e,o),s=0;s<a.length;s++){var p=r(a[s]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}a=l}}},659:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},189:e=>{e.exports=r},155:t=>{t.exports=e},694:e=>{e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};a.r(i),a.d(i,{BBBAccordion:()=>le});var c,l,s,p,d,u=a(155),f=a.n(u),v=a(694),b=a.n(v),m="var(--color-neutral-2, #717C91)",y="var(--color-neutral-white, #FFFFFF)",h="var(--color-brand-1, #1D65D4)",g="var(--color-brand-light, #E5EFFB)",x="var(--color-primary, ".concat(h,")"),w=("var(--color-brand-2, ".concat(h,")"),"var(--color-brand-3, ".concat(h,")"),"var(--color-blue-aux, ".concat(g,")"),"var(--color-brand-aux, ".concat(g,")"),"var(--color-error, #D6232D)"),O=("var(--color-danger, ".concat(w,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(y,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")")),j=("var(--color-background-blue, ".concat(g,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),E=("var(--color-border-selected, ".concat(h,")"),"var(--color-border-error, ".concat(w,")"),"var(--default-border, ".concat(j,")"),"var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")")),P=("var(--color-text-light, ".concat(m,")"),"var(--color-icon-default, ".concat(m,")"),"var(--color-icon-blue, ".concat(h,")"),"var(--color-icon-white, ".concat(y,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),"0.5rem"),k="1rem",C=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},S=b().button(c||(c=C(["\n display: flex;\n align-items: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: ",";\n background-color: transparent;\n border-radius: ",";\n\n &:hover {\n background: ",";\n }\n"],["\n display: flex;\n align-items: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: ",";\n background-color: transparent;\n border-radius: ",";\n\n &:hover {\n background: ",";\n }\n"])),P,k,O),T=b().div(l||(l=C(["\n display: flex;\n align-items: center;\n width: 100%;\n padding: ",";\n border-radius: ",";\n gap: ",";\n"],["\n display: flex;\n align-items: center;\n width: 100%;\n padding: ",";\n border-radius: ",";\n gap: ",";\n"])),P,k,"1rem"),F=b().div(s||(s=C(["\n width: 1.375rem;\n height: 1.375rem;\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: ",";\n transition: all 0.3s ease;\n border-radius: 50%;\n background-color: ",";\n\n svg {\n color: ",";\n font-size: 1.25rem;\n transition: transform 0.3s ease;\n }\n\n &:hover {\n filter: brightness(0.9);\n }\n"],["\n width: 1.375rem;\n height: 1.375rem;\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: ",";\n transition: all 0.3s ease;\n border-radius: 50%;\n background-color: ",";\n\n svg {\n color: ",";\n font-size: 1.25rem;\n transition: transform 0.3s ease;\n }\n\n &:hover {\n filter: brightness(0.9);\n }\n"])),function(e){return e.$expanded?"rotate(180deg)":"rotate(0deg)"},x,y),z=b().span(p||(p=C(["\n font-size: ",";\n font-weight: 400;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n font-size: ",";\n font-weight: 400;\n color: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"])),"1rem",E),M=b().div(d||(d=C(["\n max-height: ",";\n overflow: hidden;\n transition: max-height 0.3s ease-in-out;\n padding: 0px 1rem;\n"],["\n max-height: ",";\n overflow: hidden;\n transition: max-height 0.3s ease-in-out;\n padding: 0px 1rem;\n"])),function(e){var t=e.$expanded,r=e.$scrollHeight;return t?"".concat(r,"px"):"0"}),A={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D=u.createContext&&u.createContext(A),B=["attr","size","title"];function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},N.apply(null,arguments)}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function q(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e){return e&&e.map((e,t)=>u.createElement(e.tag,I({key:t},e.attr),L(e.child)))}function $(e){return t=>u.createElement(R,N({attr:I({},e.attr)},t),L(e.child))}function R(e){var t=t=>{var r,{attr:n,size:o,title:a}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,B),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),u.createElement("svg",N({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,i,{className:r,style:I(I({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&u.createElement("title",null,a),e.children)};return void 0!==D?u.createElement(D.Consumer,null,e=>t(e)):t(A)}function _(e){return $({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}var U=a(189),G=a.n(U),J=a(72),W=a.n(J),K=a(825),Q=a.n(K),V=a(659),X=a.n(V),Y=a(56),Z=a.n(Y),ee=a(540),te=a.n(ee),re=a(113),ne=a.n(re),oe=a(2),ae={};ae.styleTagTransform=ne(),ae.setAttributes=Z(),ae.insert=X().bind(null,"head"),ae.domAPI=Q(),ae.insertStyleElement=te(),W()(oe.A,ae),oe.A&&oe.A.locals&&oe.A.locals;var ie={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},ce=(Object.values(ie),ie.TOP);const le=function(e){var t,r=e.title,n=e.tooltipLabel,o=void 0===n?void 0:n,a=e.tooltipPlacement,i=void 0===a?ce:a,c=e.ariaLabel,l=e.ariaLabelledBy,s=e.ariaDescribedBy,p=e.buttonHeader,d=void 0===p?null:p,v=e.children,b=(0,u.useState)(!1),m=b[0],y=b[1],h=(0,u.useRef)(null),g=f().createElement(S,{onClick:function(){return y(function(e){return!e})},"aria-label":c,"aria-labelledby":l,"aria-describedby":s},f().createElement(T,null,f().createElement(F,{$expanded:m},f().createElement(_,null)),f().createElement(z,null,r),d));return f().createElement(f().Fragment,null,o?f().createElement(G(),{content:o,placement:i},g):g,f().createElement(M,{ref:h,$expanded:m,$scrollHeight:(null===(t=h.current)||void 0===t?void 0:t.scrollHeight)||0},v))};return i})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"),require("styled-components"),require("@tippyjs/react"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@tippyjs/react"],n);else{var r="object"==typeof exports?n(require("react"),require("styled-components"),require("@tippyjs/react")):n(e.react,e["styled-components"],e["@tippyjs/react"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,n,r)=>(()=>{"use strict";var o={2:(e,n,r)=>{r.d(n,{A:()=>c});var o=r(601),t=r.n(o),a=r(314),i=r.n(a)()(t());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const c=i},314:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var r="",o=void 0!==n[5];return n[4]&&(r+="@supports (".concat(n[4],") {")),n[2]&&(r+="@media ".concat(n[2]," {")),o&&(r+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),r+=e(n),o&&(r+="}"),n[2]&&(r+="}"),n[4]&&(r+="}"),r}).join("")},n.i=function(e,r,o,t,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(i[l]=!0)}for(var d=0;d<e.length;d++){var s=[].concat(e[d]);o&&i[s[0]]||(void 0!==a&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),t&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=t):s[4]="".concat(t)),n.push(s))}},n}},601:e=>{e.exports=function(e){return e[1]}},72:e=>{var n=[];function r(e){for(var r=-1,o=0;o<n.length;o++)if(n[o].identifier===e){r=o;break}return r}function o(e,o){for(var a={},i=[],c=0;c<e.length;c++){var l=e[c],d=o.base?l[0]+o.base:l[0],s=a[d]||0,u="".concat(d," ").concat(s);a[d]=s+1;var p=r(u),v={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)n[p].references++,n[p].updater(v);else{var f=t(v,o);o.byIndex=c,n.splice(c,0,{identifier:u,updater:f,references:1})}i.push(u)}return i}function t(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,t){var a=o(e=e||[],t=t||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var c=r(a[i]);n[c].references--}for(var l=o(e,t),d=0;d<a.length;d++){var s=r(a[d]);0===n[s].references&&(n[s].updater(),n.splice(s,1))}a=l}}},659:e=>{var n={};e.exports=function(e,r){var o=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(r)}},540:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},56:(e,n,r)=>{e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var o="";r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var t=void 0!==r.layer;t&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,t&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(o,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},113:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},189:e=>{e.exports=r},155:n=>{n.exports=e},694:e=>{e.exports=n}},t={};function a(e){var n=t[e];if(void 0!==n)return n.exports;var r=t[e]={id:e,exports:{}};return o[e](r,r.exports,a),r.exports}a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};a.r(i),a.d(i,{BBButton:()=>_e});var c=a(155),l=a.n(c),d={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=c.createContext&&c.createContext(d),u=["attr","size","title"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},p.apply(null,arguments)}function v(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?v(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,n,r){return(n=function(e){var n=function(e){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function h(e){return e&&e.map((e,n)=>c.createElement(e.tag,f({key:n},e.attr),h(e.child)))}function m(e){return n=>c.createElement(g,p({attr:f({},e.attr)},n),h(e.child))}function g(e){var n=n=>{var r,{attr:o,size:t,title:a}=e,i=function(e,n){if(null==e)return{};var r,o,t=function(e,n){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==n.indexOf(o))continue;r[o]=e[o]}return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}(e,u),l=t||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),c.createElement("svg",p({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,i,{className:r,style:f(f({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&c.createElement("title",null,a),e.children)};return void 0!==s?c.createElement(s.Consumer,null,e=>n(e)):n(d)}function y(e){return m({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(e)}var x,w,k,C,E,j,O,B,T,P,S,D,A,$="var(--color-neutral-2, #717C91)",z="var(--color-neutral-3, #B0BDC9)",F="var(--color-neutral-white, #FFFFFF)",L="var(--color-light-gray, #F4F6FA)",M="var(--color-gray, #4E5A66)",I="var(--color-brand-1, #1D65D4)",N="var(--color-brand-light, #E5EFFB)",R="var(--color-primary, ".concat(I,")"),K=("var(--color-brand-2, ".concat(I,")"),"var(--color-brand-3, ".concat(I,")"),"var(--color-blue-aux, ".concat(N,")"),"var(--color-brand-aux, ".concat(N,")")),U="var(--color-error, #D6232D)",q="var(--color-danger, ".concat(U,")"),H="var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),_="var(--color-background-white, ".concat(F,")"),Y="var(--color-background-light, ".concat(L,")"),G="var(--color-background-blue, ".concat(N,")"),J="var(--color-border-default, ".concat(z,")"),V="var(--color-border-selected, ".concat(I,")"),W="var(--color-border-error, ".concat(U,")"),Q="var(--default-border, ".concat(J,")"),X="var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")"),Z="var(--color-text-light, ".concat($,")"),ee="var(--color-icon-default, ".concat($,")"),ne=("var(--color-icon-blue, ".concat(I,")"),"var(--color-icon-white, ".concat(F,")"),"var(--color-hover-dark, #1E53AF)"),re=("var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),"0.5rem"),oe="1rem",te={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",SUBTLE:"subtle"},ae=Object.values(te)[0],ie=Object.values({DEFAULT:"default",DANGER:"danger",NEUTRAL:"neutral"})[0],ce=Object.values({MEDIUM:"md",SMALL:"sm"})[0],le={DEFAULT:"default",STACKED:"stacked",CIRCLE:"circle"},de=Object.values(le)[0],se={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},ue=(Object.values(se),se.TOP),pe={primary:{default:{color:F,background:R,border:R,hoverColor:F,hoverBackground:ne,hoverBorder:ne,outline:R},danger:{color:F,background:q,border:W,hoverColor:F,hoverBackground:H,hoverBorder:W,outline:q},neutral:{color:M,background:F,border:!1,hoverColor:M,hoverBackground:K,hoverBorder:!1,outline:R}},secondary:{default:{color:R,background:_,border:V,hoverColor:ne,hoverBackground:_,hoverBorder:ne,outline:R},danger:{color:q,background:_,border:W,hoverColor:H,hoverBackground:_,hoverBorder:H,outline:q},neutral:{color:M,background:F,border:!1,hoverColor:M,hoverBackground:K,hoverBorder:!1,outline:R}},tertiary:{default:{color:R,background:G,border:!1,hoverColor:ne,hoverBackground:"var(--color-hover-light, #D4E5FA)",hoverBorder:!1,outline:R},danger:{color:F,background:H,border:!1,hoverColor:F,hoverBackground:q,hoverBorder:!1,outline:H},neutral:{color:M,background:F,border:!1,hoverColor:M,hoverBackground:K,hoverBorder:!1,outline:R}},subtle:{default:{color:Z,iconColor:ee,background:"transparent",border:!1,hoverColor:Z,hoverBackground:L,hoverBorder:!1,outline:ee},danger:{color:q,background:!1,border:!1,hoverColor:H,hoverBackground:L,hoverBorder:!1,outline:q},neutral:{color:M,background:F,border:!1,hoverColor:M,hoverBackground:K,hoverBorder:!1,outline:R}}},ve={color:z,background:Y,border:!1,outline:z},fe={sm:{padding:"".concat(re," ").concat("0.75rem")},md:{padding:"1rem"}},be=a(694),he=a.n(be),me=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},ge=(0,be.css)(k||(k=me(["\n cursor: pointer;\n user-select: none;\n font-weight: 600;\n line-height: normal;\n text-align: center;\n white-space: nowrap;\n text-transform: none;\n position: relative;\n transition: opacity 0.2s ease-in-out;\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n cursor: pointer;\n user-select: none;\n font-weight: 600;\n line-height: normal;\n text-align: center;\n white-space: nowrap;\n text-transform: none;\n position: relative;\n transition: opacity 0.2s ease-in-out;\n\n ","\n\n ","\n\n ","\n\n ","\n"])),function(e){var n,r=e.$size;return"padding: ".concat((null!==(n=fe[null!=r?r:ce])&&void 0!==n?n:fe[ce]).padding,";")},function(e){var n=e.$color,r=e.$variant,o=pe[r||ae][n||ie],t=o.color,a=o.iconColor,i=o.background,c=o.border,l=o.hoverColor,d=o.hoverBackground,s=o.hoverBorder,u=o.outline;return(0,be.css)(x||(x=me(["\n & span {\n color: ",";\n }\n ",";\n ","\n ","\n\n &&:hover:not(:has(> [data-is-aux-icon]:hover)),\n &&:active {\n color: ",";\n ","\n ","\n }\n &&:focus {\n border: 1px solid transparent;\n outline: 2px solid ",";\n }\n "],["\n & span {\n color: ",";\n }\n ",";\n ","\n ","\n\n &&:hover:not(:has(> [data-is-aux-icon]:hover)),\n &&:active {\n color: ",";\n ","\n ","\n }\n &&:focus {\n border: 1px solid transparent;\n outline: 2px solid ",";\n }\n "])),t,"color: ".concat(a||t),i&&"background-color: ".concat(i,";"),c?"border: 1px solid ".concat(c,";"):"border: 1px solid transparent;",l,d&&"background-color: ".concat(d,";"),s?"border: 1px solid ".concat(s,";"):"border: 1px solid transparent;",u)},function(e){return e.$variant===te.SUBTLE&&"\n text-decoration: underline;\n "},function(e){if(!e.disabled)return null;var n=ve.color,r=ve.background,o=ve.border,t=ve.outline;return(0,be.css)(w||(w=me(["\n pointer-events: none;\n cursor: not-allowed;\n & span {\n color: ",";\n }\n color: ",";\n ",";\n border: ",";\n\n &&:hover,\n &&:active {\n color: ",";\n ",";\n border: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n "],["\n pointer-events: none;\n cursor: not-allowed;\n & span {\n color: ",";\n }\n color: ",";\n ",";\n border: ",";\n\n &&:hover,\n &&:active {\n color: ",";\n ",";\n border: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n "])),n,n,r?"background-color: ".concat(r):"background-color: none",o?"1px solid ".concat(o):"none",n,r?"background-color: ".concat(r):"background-color: none",o?"1px solid ".concat(o):"none",t)}),ye=(0,be.css)(C||(C=me(["\n width: 4.5rem;\n height: 4.5rem;\n border-radius: "," !important;\n border: 1px solid "," !important;\n padding: "," !important;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n width: 4.5rem;\n height: 4.5rem;\n border-radius: "," !important;\n border: 1px solid "," !important;\n padding: "," !important;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])),oe,Q,re),xe=(0,be.css)(E||(E=me(["\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n aspect-ratio: 1;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n aspect-ratio: 1;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),we=(0,be.css)(j||(j=me(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: ",";\n border-radius: ",";\n"],["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: ",";\n border-radius: ",";\n"])),re,oe),ke=he().div(O||(O=me(["\n ","\n"],["\n ","\n"])),function(e){return e.$layout===le.STACKED&&"\n width: 5rem;\n display: flex;\n flex-direction: column;\n gap: ".concat(re,";\n align-items: center;\n ")}),Ce=he().button(B||(B=me(["\n ","\n\n ","\n"],["\n ","\n\n ","\n"])),ge,function(e){switch(e.$layout){case le.STACKED:return ye;case le.CIRCLE:return xe;default:return we}}),Ee=he().div(P||(P=me(["\n ","\n border-radius: 50%;\n padding: 0.2rem;\n position: absolute;\n top: 0.1rem;\n right: 0.1rem;\n & svg {\n font-size: 1.25rem;\n }\n"],["\n ","\n border-radius: 50%;\n padding: 0.2rem;\n position: absolute;\n top: 0.1rem;\n right: 0.1rem;\n & svg {\n font-size: 1.25rem;\n }\n"])),function(e){var n=e.$hover,r=e.$variant,o=e.$color;return n?(0,be.css)(T||(T=me(["\n &&:hover,\n &&:active {\n ","\n }\n\n &&:focus {\n outline: 1px solid ",";\n }\n "],["\n &&:hover,\n &&:active {\n ","\n }\n\n &&:focus {\n outline: 1px solid ",";\n }\n "])),pe[r][o].hoverBackground&&"background-color: ".concat(pe[r][o].hoverBackground,";"),pe[r][o].outline):null}),je=he().div(S||(S=me(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),Oe=he().div(D||(D=me(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n > i {\n font-size: 2rem;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n > i {\n font-size: 2rem;\n }\n"]))),Be=he().div(A||(A=me(["\n color: ",";\n font-size: ",";\n width: 100%;\n text-align: center;\n line-height: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"],["\n color: ",";\n font-size: ",";\n width: 100%;\n text-align: center;\n line-height: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])),X,"0.875rem"),Te=a(189),Pe=a.n(Te),Se=a(72),De=a.n(Se),Ae=a(825),$e=a.n(Ae),ze=a(659),Fe=a.n(ze),Le=a(56),Me=a.n(Le),Ie=a(540),Ne=a.n(Ie),Re=a(113),Ke=a.n(Re),Ue=a(2),qe={};qe.styleTagTransform=Ke(),qe.setAttributes=Me(),qe.insert=Fe().bind(null,"head"),qe.domAPI=$e(),qe.insertStyleElement=Ne(),De()(Ue.A,qe),Ue.A&&Ue.A.locals&&Ue.A.locals;var He=function(){return He=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++)for(var t in n=arguments[r])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},He.apply(this,arguments)};const _e=function(e){var n=e.id,r=void 0===n?"":n,o=e.dataTest,t=e.label,a=e.tooltipLabel,i=e.tooltipPlacement,d=void 0===i?ue:i,s=e.onClick,u=e.onKeyDown,p=e.ariaLabel,v=void 0===p?"":p,f=e.ariaLabelledBy,b=void 0===f?"":f,h=e.ariaDescribedBy,m=void 0===h?"":h,g=e.color,x=void 0===g?ie:g,w=e.variant,k=void 0===w?ae:w,C=e.size,E=void 0===C?ce:C,j=e.layout,O=void 0===j?de:j,B=e.disabled,T=void 0!==B&&B,P=e.children,S={},D=(0,c.useId)(),A="".concat(r||D,"-label");S["aria-label"]=v||t,S["aria-labelledby"]=b||A,m&&(S["aria-describedby"]=m);var $=function(){if(e.layout===le.CIRCLE){var n=e.icon,a=o||"button-".concat(r||"default");return l().createElement(Ce,He({id:r,"data-test":a,onClick:s,onKeyDown:u},S,{$color:x,$variant:k,$size:E,$layout:O,disabled:T}),n)}if(e.layout===le.STACKED){n=e.icon;var i=e.helperIcon,c=void 0===i?l().createElement(y,{fontSize:"small"}):i,d=e.hideHelperIcon,p=void 0!==d&&d,v=e.helperOnClick,f=void 0===v?null:v,b=o||"".concat(le.STACKED,"-button-").concat(r||t||"default");return l().createElement(ke,{"data-test":b,$layout:O},l().createElement(Ce,He({id:r,onClick:s,onKeyDown:u},S,{$color:x,$variant:k,$size:E,$layout:O,disabled:T}),!p&&l().createElement(Ee,He({},f&&{"data-is-aux-icon":!0},f&&{"aria-label":S["aria-label"]+" helper"},f&&{role:"button"},{$hover:null!==f,$color:x,$variant:k,onClick:function(e){f&&(f(e),e.preventDefault(),e.stopPropagation())}}),l().createElement(je,null,c)),n&&l().createElement(Oe,null,n)),l().createElement(Be,{id:A},t))}var h=e.iconStart,m=e.iconEnd,g=o||"button-".concat(r||t||"default");return l().createElement(Ce,He({id:r,"data-test":g,onClick:s,onKeyDown:u},S,{$color:x,$variant:k,$size:E,$layout:O,disabled:T}),h&&h,t&&l().createElement("span",{id:A},t),P,m&&m)}();return a?l().createElement(Pe(),{content:a,placement:d},$):$};return i})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("styled-components"),require("@mui/material"),require("@mui/icons-material"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@mui/material","@mui/icons-material"],e);else{var o="object"==typeof exports?e(require("react"),require("styled-components"),require("@mui/material"),require("@mui/icons-material")):e(r.react,r["styled-components"],r["@mui/material"],r["@mui/icons-material"]);for(var t in o)("object"==typeof exports?exports:r)[t]=o[t]}}(this,(r,e,o,t)=>(()=>{"use strict";var n={410:r=>{r.exports=t},823:r=>{r.exports=o},155:e=>{e.exports=r},694:r=>{r.exports=e}},a={};function c(r){var e=a[r];if(void 0!==e)return e.exports;var o=a[r]={exports:{}};return n[r](o,o.exports,c),o.exports}c.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return c.d(e,{a:e}),e},c.d=(r,e)=>{for(var o in e)c.o(e,o)&&!c.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},c.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),c.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var l={};c.r(l),c.d(l,{BBBCheckbox:()=>S});var i,u,d,v=c(155),p=c.n(v),s=c(694),f=c.n(s),b=c(823),m="var(--color-neutral-2, #717C91)",y="var(--color-neutral-white, #FFFFFF)",h="var(--color-brand-1, #1D65D4)",g="var(--color-brand-light, #E5EFFB)",x="var(--color-primary, ".concat(h,")"),O=("var(--color-brand-2, ".concat(h,")"),"var(--color-brand-3, ".concat(h,")"),"var(--color-blue-aux, ".concat(g,")"),"var(--color-brand-aux, ".concat(g,")"),"var(--color-error, #D6232D)"),j=("var(--color-danger, ".concat(O,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(y,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")"),"var(--color-background-blue, ".concat(g,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),k=("var(--color-border-selected, ".concat(h,")"),"var(--color-border-error, ".concat(O,")"),"var(--default-border, ".concat(j,")"),"var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")")),F=("var(--color-text-light, ".concat(m,")"),"var(--color-icon-default, ".concat(m,")"),"var(--color-icon-blue, ".concat(h,")"),"var(--color-icon-white, ".concat(y,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}),E=f().div(i||(i=F(["\n display: inline-flex;\n align-items: center;\n gap: ",";\n"],["\n display: inline-flex;\n align-items: center;\n gap: ",";\n"])),"0.5rem"),w=f().label(u||(u=F(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n cursor: pointer;\n"],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n cursor: pointer;\n"])),k,"1rem"),C=f()(b.Checkbox)(d||(d=F(["\n &.MuiCheckbox-root {\n padding: 0;\n }\n\n &.Mui-checked {\n color: ",";\n }\n"],["\n &.MuiCheckbox-root {\n padding: 0;\n }\n\n &.Mui-checked {\n color: ",";\n }\n"])),x),P={RIGHT:"right",LEFT:"left"},B=Object.values(P)[0],q=c(410),M=function(){return M=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},M.apply(this,arguments)};const S=function(r){var e=r.label,o=r.layout,t=void 0===o?B:o,n=r.round,a=void 0!==n&&n,c=r.ariaLabel,l=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(o[t[n]]=r[t[n]])}return o}(r,["label","layout","round","ariaLabel"]),i=(0,v.useId)(),u=p().createElement(C,M({},l,{id:i,"aria-label":c,icon:a?p().createElement(q.RadioButtonUnchecked,null):void 0,checkedIcon:a?p().createElement(q.RadioButtonChecked,null):void 0}));return e?p().createElement(E,null,t===P.LEFT&&p().createElement(w,{htmlFor:i},e),u,t===P.RIGHT&&p().createElement(w,{htmlFor:i},e)):u};return l})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(r,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("react"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","styled-components"],o);else{var e="object"==typeof exports?o(require("react"),require("styled-components")):o(r.react,r["styled-components"]);for(var t in e)("object"==typeof exports?exports:r)[t]=e[t]}}(this,(r,o)=>(()=>{"use strict";var e={155:o=>{o.exports=r},694:r=>{r.exports=o}},t={};function a(r){var o=t[r];if(void 0!==o)return o.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.n=r=>{var o=r&&r.__esModule?()=>r.default:()=>r;return a.d(o,{a:o}),o},a.d=(r,o)=>{for(var e in o)a.o(o,e)&&!a.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:o[e]})},a.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),a.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var n={};a.r(n),a.d(n,{BBBDivider:()=>h});var c,l=a(155),d=a.n(l),i=a(694),u=a.n(i),v="var(--color-neutral-2, #717C91)",p="var(--color-neutral-white, #FFFFFF)",b="var(--color-brand-1, #1D65D4)",f="var(--color-brand-light, #E5EFFB)",s=("var(--color-primary, ".concat(b,")"),"var(--color-brand-2, ".concat(b,")"),"var(--color-brand-3, ".concat(b,")"),"var(--color-blue-aux, ".concat(f,")"),"var(--color-brand-aux, ".concat(f,")"),"var(--color-error, #D6232D)"),x=("var(--color-danger, ".concat(s,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(p,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")"),"var(--color-background-blue, ".concat(f,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),y=("var(--color-border-selected, ".concat(b,")"),"var(--color-border-error, ".concat(s,")"),"var(--default-border, ".concat(x,")")),g=("var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")"),"var(--color-text-light, ".concat(v,")"),"var(--color-icon-default, ".concat(v,")"),"var(--color-icon-blue, ".concat(b,")"),"var(--color-icon-white, ".concat(p,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r}),m=u().hr(c||(c=g(["\n width: 100%;\n border-top: 0px;\n border-right: 0px;\n border-left: 0px;\n border-image: initial;\n border-bottom: 1px solid ",";\n margin: 0px;\n"],["\n width: 100%;\n border-top: 0px;\n border-right: 0px;\n border-left: 0px;\n border-image: initial;\n border-bottom: 1px solid ",";\n margin: 0px;\n"])),y);const h=function(){return d().createElement(m,null)};return n})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("react"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","styled-components"],r);else{var t="object"==typeof exports?r(require("react"),require("styled-components")):r(e.react,e["styled-components"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(e,r)=>(()=>{"use strict";var t={155:r=>{r.exports=e},694:e=>{e.exports=r}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};o.r(a),o.d(a,{BBBHint:()=>U});var l,c,i,u,s,d,f,p=o(155),v=o.n(p),b=o(694),y=o.n(b),m="var(--color-neutral-2, #717C91)",g="var(--color-neutral-white, #FFFFFF)",h="var(--color-brand-1, #1D65D4)",O="var(--color-brand-light, #E5EFFB)",x="var(--color-primary, ".concat(h,")"),j=("var(--color-brand-2, ".concat(h,")"),"var(--color-brand-3, ".concat(h,")"),"var(--color-blue-aux, ".concat(O,")"),"var(--color-brand-aux, ".concat(O,")"),"var(--color-error, #D6232D)"),w=("var(--color-danger, ".concat(j,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(g,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")")),P=("var(--color-background-blue, ".concat(O,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),E=("var(--color-border-selected, ".concat(h,")"),"var(--color-border-error, ".concat(j,")"),"var(--default-border, ".concat(P,")"),"var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")")),k=("var(--color-text-light, ".concat(m,")"),"var(--color-icon-default, ".concat(m,")")),z=("var(--color-icon-blue, ".concat(h,")"),"var(--color-icon-white, ".concat(g,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),"1rem"),C=function(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e},S=y().div(l||(l=C(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n background-color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n background-color: ",";\n"])),"0.5rem","1rem",w),F=y().div(c||(c=C(["\n display: flex;\n flex-direction: row;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: ",";\n"])),"0.75rem"),D=y().div(i||(i=C(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),B=y().div(u||(u=C(["\n color: ",";\n display: flex;\n align-items: center;\n"],["\n color: ",";\n display: flex;\n align-items: center;\n"])),x),M=y().label(s||(s=C(["\n color: ",";\n font-size: ","\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n"],["\n color: ",";\n font-size: ","\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n"])),E,z),q=y().button(d||(d=C(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n background: transparent;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n aspect-ratio: 1;\n\n &&:hover,\n &&:active {\n background-color: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n background: transparent;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n aspect-ratio: 1;\n\n &&:hover,\n &&:active {\n background-color: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n"])),k,"var(--color-hover-light, #D4E5FA)",x),N=y().label(f||(f=C(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n border-radius: ",";\n"],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n border-radius: ",";\n"])),E,z,"0.5rem"),_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},H=p.createContext&&p.createContext(_),T=["attr","size","title"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},A.apply(null,arguments)}function I(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function R(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?I(Object(t),!0).forEach(function(r){V(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function V(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function W(e){return e&&e.map((e,r)=>p.createElement(e.tag,R({key:r},e.attr),W(e.child)))}function G(e){return r=>p.createElement(J,A({attr:R({},e.attr)},r),W(e.child))}function J(e){var r=r=>{var t,{attr:n,size:o,title:a}=e,l=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,T),c=o||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),p.createElement("svg",A({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:t,style:R(R({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&p.createElement("title",null,a),e.children)};return void 0!==H?p.createElement(H.Consumer,null,e=>r(e)):r(_)}function K(e){return G({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function L(e){return G({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},child:[]}]})(e)}var Q=function(){return Q=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},Q.apply(this,arguments)};const U=function(e){var r=e.title,t=e.label,n=e.icon,o=void 0===n?v().createElement(L,{fontSize:"1rem"}):n,a=e.onRequestClose,l=e.children,c=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["title","label","icon","onRequestClose","children"]),i=v().createElement(N,null,t,l);return v().createElement(S,Q({role:"status","aria-live":"polite","aria-atomic":"true","aria-label":r||t},c),v().createElement(D,null,v().createElement(F,null,v().createElement(B,{"aria-hidden":"true"},o),r&&v().createElement(M,null,r),!r&&i),r&&v().createElement(q,{type:"button","aria-label":"Close",onClick:a},v().createElement(K,{fontSize:"1rem"}))),r&&i)};return a})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("react-modal"),require("styled-components"),require("@tippyjs/react"));else if("function"==typeof define&&define.amd)define(["react","react-modal","styled-components","@tippyjs/react"],e);else{var r="object"==typeof exports?e(require("react"),require("react-modal"),require("styled-components"),require("@tippyjs/react")):e(n.react,n["react-modal"],n["styled-components"],n["@tippyjs/react"]);for(var t in r)("object"==typeof exports?exports:n)[t]=r[t]}}(this,(n,e,r,t)=>(()=>{"use strict";var o={2:(n,e,r)=>{r.d(e,{A:()=>l});var t=r(601),o=r.n(t),a=r(314),i=r.n(a)()(o());i.push([n.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const l=i},314:n=>{n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var r="",t=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),t&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=n(e),t&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r}).join("")},e.i=function(n,r,t,o,a){"string"==typeof n&&(n=[[null,n,void 0]]);var i={};if(t)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(i[c]=!0)}for(var d=0;d<n.length;d++){var s=[].concat(n[d]);t&&i[s[0]]||(void 0!==a&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},601:n=>{n.exports=function(n){return n[1]}},72:n=>{var e=[];function r(n){for(var r=-1,t=0;t<e.length;t++)if(e[t].identifier===n){r=t;break}return r}function t(n,t){for(var a={},i=[],l=0;l<n.length;l++){var c=n[l],d=t.base?c[0]+t.base:c[0],s=a[d]||0,u="".concat(d," ").concat(s);a[d]=s+1;var p=r(u),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)e[p].references++,e[p].updater(f);else{var v=o(f,t);t.byIndex=l,e.splice(l,0,{identifier:u,updater:v,references:1})}i.push(u)}return i}function o(n,e){var r=e.domAPI(e);return r.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;r.update(n=e)}else r.remove()}}n.exports=function(n,o){var a=t(n=n||[],o=o||{});return function(n){n=n||[];for(var i=0;i<a.length;i++){var l=r(a[i]);e[l].references--}for(var c=t(n,o),d=0;d<a.length;d++){var s=r(a[d]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}a=c}}},659:n=>{var e={};n.exports=function(n,r){var t=function(n){if(void 0===e[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},540:n=>{n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},56:(n,e,r)=>{n.exports=function(n){var e=r.nc;e&&n.setAttribute("nonce",e)}},825:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,o&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(t,n,e.options)}(e,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},113:n=>{n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},189:n=>{n.exports=t},155:e=>{e.exports=n},215:n=>{n.exports=e},694:n=>{n.exports=r}},a={};function i(n){var e=a[n];if(void 0!==e)return e.exports;var r=a[n]={id:n,exports:{}};return o[n](r,r.exports,i),r.exports}i.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return i.d(e,{a:e}),e},i.d=(n,e)=>{for(var r in e)i.o(e,r)&&!i.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},i.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),i.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.nc=void 0;var l={};i.r(l),i.d(l,{BBBModal:()=>De});var c,d,s,u,p,f,v,b,h,m,g,y,x=i(155),w=i.n(x),O=i(215),k=i.n(O),j=i(694),E=i.n(j),C="0.5rem",B="0.75rem",P="1rem",z="1.5rem",S="1rem",T="var(--color-neutral-2, #717C91)",D="var(--color-neutral-3, #B0BDC9)",$="var(--color-neutral-white, #FFFFFF)",A="var(--color-light-gray, #F4F6FA)",F="var(--color-gray, #4E5A66)",I="var(--color-brand-1, #1D65D4)",L="var(--color-brand-light, #E5EFFB)",M="var(--color-primary, ".concat(I,")"),R=("var(--color-brand-2, ".concat(I,")"),"var(--color-brand-3, ".concat(I,")"),"var(--color-blue-aux, ".concat(L,")"),"var(--color-brand-aux, ".concat(L,")")),N="var(--color-error, #D6232D)",q="var(--color-danger, ".concat(N,")"),K="var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),U="var(--color-background-white, ".concat($,")"),H="var(--color-background-light, ".concat(A,")"),W="var(--color-background-blue, ".concat(L,")"),_="var(--color-border-default, ".concat(D,")"),Y="var(--color-border-selected, ".concat(I,")"),G="var(--color-border-error, ".concat(N,")"),J="var(--default-border, ".concat(_,")"),V="var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")"),Q="var(--color-text-light, ".concat(T,")"),X="var(--color-icon-default, ".concat(T,")"),Z=("var(--color-icon-blue, ".concat(I,")"),"var(--color-icon-white, ".concat($,")"),"var(--color-hover-dark, #1E53AF)"),nn=("var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}),en={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.75)",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"relative",top:"auto",left:"auto",right:"auto",bottom:"auto",borderRadius:S,background:$,overflow:"hidden",WebkitOverflowScrolling:"touch",outline:"none",padding:"0px",minWidth:"300px",maxWidth:"90vw",maxHeight:"90vh",display:"flex",flexDirection:"column"}},rn=E().div(c||(c=nn(["\n padding: "," "," ",";\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n padding: "," "," ",";\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])),z,z,B),tn=(E().button(d||(d=nn(["\n background: none;\n border: none;\n font-size: 1.5rem;\n cursor: pointer;\n padding: 0;\n line-height: 1;\n"],["\n background: none;\n border: none;\n font-size: 1.5rem;\n cursor: pointer;\n padding: 0;\n line-height: 1;\n"]))),E().div(s||(s=nn(["\n flex-grow: 1;\n overflow-y: ",";\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n"],["\n flex-grow: 1;\n overflow-y: ",";\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n"])),function(n){return n.$allowScroll?"auto":"hidden"})),on=E().div(u||(u=nn(["\n flex-grow: 1;\n padding: 0 ",";\n margin: "," 0 ",";\n"],["\n flex-grow: 1;\n padding: 0 ",";\n margin: "," 0 ",";\n"])),z,B,B),an=E().div(p||(p=nn(["\n padding: "," "," ",";\n display: flex;\n justify-content: flex-end;\n gap: ",";\n \n ","\n"],["\n padding: "," "," ",";\n display: flex;\n justify-content: flex-end;\n gap: ",";\n \n ","\n"])),B,z,z,P,function(n){return n.$stickyFooter&&"\n position: sticky;\n bottom: 0;\n background-color: ".concat($,";\n ")}),ln="0.875rem",cn="1rem",dn="400",sn=function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},un={default:(0,j.css)(f||(f=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),V,cn,dn),selected:(0,j.css)(v||(v=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),V,cn,"700"),text2:(0,j.css)(b||(b=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),Q,ln,dn),text3:(0,j.css)(h||(h=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),Q,"0.75rem",dn),header:(0,j.css)(m||(m=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n text-transform: uppercase;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n text-transform: uppercase;\n "])),V,cn,"700"),button:(0,j.css)(g||(g=sn(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),V,cn,"600")},pn=E().p(y||(y=sn(["\n margin: 0;\n padding: 0;\n ","\n"],["\n margin: 0;\n padding: 0;\n ","\n"])),function(n){var e=n.$variant;return un[e]}),fn=function(){return fn=Object.assign||function(n){for(var e,r=1,t=arguments.length;r<t;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},fn.apply(this,arguments)};const vn=function(n){var e=n.children,r=n.variant,t=void 0===r?"default":r,o=n.as,a=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(n);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o])&&(r[t[o]]=n[t[o]])}return r}(n,["children","variant","as"]);return w().createElement(pn,fn({as:o,$variant:t},a),e)};var bn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hn=x.createContext&&x.createContext(bn),mn=["attr","size","title"];function gn(){return gn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)({}).hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},gn.apply(null,arguments)}function yn(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.push.apply(r,t)}return r}function xn(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(r),!0).forEach(function(e){wn(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function wn(n,e,r){return(e=function(n){var e=function(n){if("object"!=typeof n||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var r=e.call(n,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"==typeof e?e:e+""}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function On(n){return n&&n.map((n,e)=>x.createElement(n.tag,xn({key:e},n.attr),On(n.child)))}function kn(n){return e=>x.createElement(jn,gn({attr:xn({},n.attr)},e),On(n.child))}function jn(n){var e=e=>{var r,{attr:t,size:o,title:a}=n,i=function(n,e){if(null==n)return{};var r,t,o=function(n,e){if(null==n)return{};var r={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(-1!==e.indexOf(t))continue;r[t]=n[t]}return r}(n,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(t=0;t<a.length;t++)r=a[t],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}(n,mn),l=o||e.size||"1em";return e.className&&(r=e.className),n.className&&(r=(r?r+" ":"")+n.className),x.createElement("svg",gn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,i,{className:r,style:xn(xn({color:n.color||e.color},e.style),n.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&x.createElement("title",null,a),n.children)};return void 0!==hn?x.createElement(hn.Consumer,null,n=>e(n)):e(bn)}function En(n){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function Cn(n){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(n)}var Bn,Pn,zn,Sn=E().hr(Bn||(Pn=["\n width: 100%;\n border-top: 0px;\n border-right: 0px;\n border-left: 0px;\n border-image: initial;\n border-bottom: 1px solid ",";\n margin: 0px;\n"],zn=["\n width: 100%;\n border-top: 0px;\n border-right: 0px;\n border-left: 0px;\n border-image: initial;\n border-bottom: 1px solid ",";\n margin: 0px;\n"],Object.defineProperty?Object.defineProperty(Pn,"raw",{value:zn}):Pn.raw=zn,Bn=Pn),J);const Tn=function(){return w().createElement(Sn,null)};var Dn,$n,An,Fn,In,Ln,Mn,Rn,Nn,qn,Kn,Un,Hn,Wn={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",SUBTLE:"subtle"},_n=Object.values(Wn)[0],Yn=Object.values({DEFAULT:"default",DANGER:"danger",NEUTRAL:"neutral"})[0],Gn=Object.values({MEDIUM:"md",SMALL:"sm"})[0],Jn={DEFAULT:"default",STACKED:"stacked",CIRCLE:"circle"},Vn=Object.values(Jn)[0],Qn={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Xn=(Object.values(Qn),Qn.TOP),Zn={primary:{default:{color:$,background:M,border:M,hoverColor:$,hoverBackground:Z,hoverBorder:Z,outline:M},danger:{color:$,background:q,border:G,hoverColor:$,hoverBackground:K,hoverBorder:G,outline:q},neutral:{color:F,background:$,border:!1,hoverColor:F,hoverBackground:R,hoverBorder:!1,outline:M}},secondary:{default:{color:M,background:U,border:Y,hoverColor:Z,hoverBackground:U,hoverBorder:Z,outline:M},danger:{color:q,background:U,border:G,hoverColor:K,hoverBackground:U,hoverBorder:K,outline:q},neutral:{color:F,background:$,border:!1,hoverColor:F,hoverBackground:R,hoverBorder:!1,outline:M}},tertiary:{default:{color:M,background:W,border:!1,hoverColor:Z,hoverBackground:"var(--color-hover-light, #D4E5FA)",hoverBorder:!1,outline:M},danger:{color:$,background:K,border:!1,hoverColor:$,hoverBackground:q,hoverBorder:!1,outline:K},neutral:{color:F,background:$,border:!1,hoverColor:F,hoverBackground:R,hoverBorder:!1,outline:M}},subtle:{default:{color:Q,iconColor:X,background:"transparent",border:!1,hoverColor:Q,hoverBackground:A,hoverBorder:!1,outline:X},danger:{color:q,background:!1,border:!1,hoverColor:K,hoverBackground:A,hoverBorder:!1,outline:q},neutral:{color:F,background:$,border:!1,hoverColor:F,hoverBackground:R,hoverBorder:!1,outline:M}}},ne={color:D,background:H,border:!1,outline:D},ee={sm:{padding:"".concat(C," ").concat(B)},md:{padding:P}},re=function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},te=(0,j.css)(An||(An=re(["\n cursor: pointer;\n user-select: none;\n font-weight: 600;\n line-height: normal;\n text-align: center;\n white-space: nowrap;\n text-transform: none;\n position: relative;\n transition: opacity 0.2s ease-in-out;\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n cursor: pointer;\n user-select: none;\n font-weight: 600;\n line-height: normal;\n text-align: center;\n white-space: nowrap;\n text-transform: none;\n position: relative;\n transition: opacity 0.2s ease-in-out;\n\n ","\n\n ","\n\n ","\n\n ","\n"])),function(n){var e,r=n.$size;return"padding: ".concat((null!==(e=ee[null!=r?r:Gn])&&void 0!==e?e:ee[Gn]).padding,";")},function(n){var e=n.$color,r=n.$variant,t=Zn[r||_n][e||Yn],o=t.color,a=t.iconColor,i=t.background,l=t.border,c=t.hoverColor,d=t.hoverBackground,s=t.hoverBorder,u=t.outline;return(0,j.css)(Dn||(Dn=re(["\n & span {\n color: ",";\n }\n ",";\n ","\n ","\n\n &&:hover:not(:has(> [data-is-aux-icon]:hover)),\n &&:active {\n color: ",";\n ","\n ","\n }\n &&:focus {\n border: 1px solid transparent;\n outline: 2px solid ",";\n }\n "],["\n & span {\n color: ",";\n }\n ",";\n ","\n ","\n\n &&:hover:not(:has(> [data-is-aux-icon]:hover)),\n &&:active {\n color: ",";\n ","\n ","\n }\n &&:focus {\n border: 1px solid transparent;\n outline: 2px solid ",";\n }\n "])),o,"color: ".concat(a||o),i&&"background-color: ".concat(i,";"),l?"border: 1px solid ".concat(l,";"):"border: 1px solid transparent;",c,d&&"background-color: ".concat(d,";"),s?"border: 1px solid ".concat(s,";"):"border: 1px solid transparent;",u)},function(n){return n.$variant===Wn.SUBTLE&&"\n text-decoration: underline;\n "},function(n){if(!n.disabled)return null;var e=ne.color,r=ne.background,t=ne.border,o=ne.outline;return(0,j.css)($n||($n=re(["\n pointer-events: none;\n cursor: not-allowed;\n & span {\n color: ",";\n }\n color: ",";\n ",";\n border: ",";\n\n &&:hover,\n &&:active {\n color: ",";\n ",";\n border: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n "],["\n pointer-events: none;\n cursor: not-allowed;\n & span {\n color: ",";\n }\n color: ",";\n ",";\n border: ",";\n\n &&:hover,\n &&:active {\n color: ",";\n ",";\n border: ",";\n }\n \n &&:focus {\n outline: 2px solid ",";\n }\n "])),e,e,r?"background-color: ".concat(r):"background-color: none",t?"1px solid ".concat(t):"none",e,r?"background-color: ".concat(r):"background-color: none",t?"1px solid ".concat(t):"none",o)}),oe=(0,j.css)(Fn||(Fn=re(["\n width: 4.5rem;\n height: 4.5rem;\n border-radius: "," !important;\n border: 1px solid "," !important;\n padding: "," !important;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n width: 4.5rem;\n height: 4.5rem;\n border-radius: "," !important;\n border: 1px solid "," !important;\n padding: "," !important;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])),S,J,C),ae=(0,j.css)(In||(In=re(["\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n aspect-ratio: 1;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n aspect-ratio: 1;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),ie=(0,j.css)(Ln||(Ln=re(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: ",";\n border-radius: ",";\n"],["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: ",";\n border-radius: ",";\n"])),C,S),le=E().div(Mn||(Mn=re(["\n ","\n"],["\n ","\n"])),function(n){return n.$layout===Jn.STACKED&&"\n width: 5rem;\n display: flex;\n flex-direction: column;\n gap: ".concat(C,";\n align-items: center;\n ")}),ce=E().button(Rn||(Rn=re(["\n ","\n\n ","\n"],["\n ","\n\n ","\n"])),te,function(n){switch(n.$layout){case Jn.STACKED:return oe;case Jn.CIRCLE:return ae;default:return ie}}),de=E().div(qn||(qn=re(["\n ","\n border-radius: 50%;\n padding: 0.2rem;\n position: absolute;\n top: 0.1rem;\n right: 0.1rem;\n & svg {\n font-size: 1.25rem;\n }\n"],["\n ","\n border-radius: 50%;\n padding: 0.2rem;\n position: absolute;\n top: 0.1rem;\n right: 0.1rem;\n & svg {\n font-size: 1.25rem;\n }\n"])),function(n){var e=n.$hover,r=n.$variant,t=n.$color;return e?(0,j.css)(Nn||(Nn=re(["\n &&:hover,\n &&:active {\n ","\n }\n\n &&:focus {\n outline: 1px solid ",";\n }\n "],["\n &&:hover,\n &&:active {\n ","\n }\n\n &&:focus {\n outline: 1px solid ",";\n }\n "])),Zn[r][t].hoverBackground&&"background-color: ".concat(Zn[r][t].hoverBackground,";"),Zn[r][t].outline):null}),se=E().div(Kn||(Kn=re(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),ue=E().div(Un||(Un=re(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n > i {\n font-size: 2rem;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 1;\n\n > i {\n font-size: 2rem;\n }\n"]))),pe=E().div(Hn||(Hn=re(["\n color: ",";\n font-size: ",";\n width: 100%;\n text-align: center;\n line-height: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"],["\n color: ",";\n font-size: ",";\n width: 100%;\n text-align: center;\n line-height: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])),V,ln),fe=i(189),ve=i.n(fe),be=i(72),he=i.n(be),me=i(825),ge=i.n(me),ye=i(659),xe=i.n(ye),we=i(56),Oe=i.n(we),ke=i(540),je=i.n(ke),Ee=i(113),Ce=i.n(Ee),Be=i(2),Pe={};Pe.styleTagTransform=Ce(),Pe.setAttributes=Oe(),Pe.insert=xe().bind(null,"head"),Pe.domAPI=ge(),Pe.insertStyleElement=je(),he()(Be.A,Pe),Be.A&&Be.A.locals&&Be.A.locals;var ze=function(){return ze=Object.assign||function(n){for(var e,r=1,t=arguments.length;r<t;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},ze.apply(this,arguments)};const Se=function(n){var e=n.id,r=void 0===e?"":e,t=n.dataTest,o=n.label,a=n.tooltipLabel,i=n.tooltipPlacement,l=void 0===i?Xn:i,c=n.onClick,d=n.onKeyDown,s=n.ariaLabel,u=void 0===s?"":s,p=n.ariaLabelledBy,f=void 0===p?"":p,v=n.ariaDescribedBy,b=void 0===v?"":v,h=n.color,m=void 0===h?Yn:h,g=n.variant,y=void 0===g?_n:g,O=n.size,k=void 0===O?Gn:O,j=n.layout,E=void 0===j?Vn:j,C=n.disabled,B=void 0!==C&&C,P=n.children,z={},S=(0,x.useId)(),T="".concat(r||S,"-label");z["aria-label"]=u||o,z["aria-labelledby"]=f||T,b&&(z["aria-describedby"]=b);var D=function(){if(n.layout===Jn.CIRCLE){var e=n.icon,a=t||"button-".concat(r||"default");return w().createElement(ce,ze({id:r,"data-test":a,onClick:c,onKeyDown:d},z,{$color:m,$variant:y,$size:k,$layout:E,disabled:B}),e)}if(n.layout===Jn.STACKED){e=n.icon;var i=n.helperIcon,l=void 0===i?w().createElement(Cn,{fontSize:"small"}):i,s=n.hideHelperIcon,u=void 0!==s&&s,p=n.helperOnClick,f=void 0===p?null:p,v=t||"".concat(Jn.STACKED,"-button-").concat(r||o||"default");return w().createElement(le,{"data-test":v,$layout:E},w().createElement(ce,ze({id:r,onClick:c,onKeyDown:d},z,{$color:m,$variant:y,$size:k,$layout:E,disabled:B}),!u&&w().createElement(de,ze({},f&&{"data-is-aux-icon":!0},f&&{"aria-label":z["aria-label"]+" helper"},f&&{role:"button"},{$hover:null!==f,$color:m,$variant:y,onClick:function(n){f&&(f(n),n.preventDefault(),n.stopPropagation())}}),w().createElement(se,null,l)),e&&w().createElement(ue,null,e)),w().createElement(pe,{id:T},o))}var b=n.iconStart,h=n.iconEnd,g=t||"button-".concat(r||o||"default");return w().createElement(ce,ze({id:r,"data-test":g,onClick:c,onKeyDown:d},z,{$color:m,$variant:y,$size:k,$layout:E,disabled:B}),b&&b,o&&w().createElement("span",{id:T},o),P,h&&h)}();return a?w().createElement(ve(),{content:a,placement:l},D):D};var Te=function(){return Te=Object.assign||function(n){for(var e,r=1,t=arguments.length;r<t;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},Te.apply(this,arguments)};const De=function(n){var e=n.isOpen,r=void 0===e||e,t=n.onRequestClose,o=n.appElement,a=n.title,i=n.contentLabel,l=n.showDividers,c=void 0!==l&&l,d=n.shouldCloseOnOverlayClick,s=void 0!==d&&d,u=n.shouldCloseOnEsc,p=void 0!==u&&u,f=n.allowScroll,v=void 0===f||f,b=n.noFooter,h=void 0!==b&&b,m=n.footerContent,g=void 0===m?null:m,y=n.stickyFooter,O=void 0===y||y,j=n.testId,E=n.closeButtonDataTest,C=n.children,B=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(n);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o])&&(r[t[o]]=n[t[o]])}return r}(n,["isOpen","onRequestClose","appElement","title","contentLabel","showDividers","shouldCloseOnOverlayClick","shouldCloseOnEsc","allowScroll","noFooter","footerContent","stickyFooter","testId","closeButtonDataTest","children"]),P=E;j&&!E&&(P="".concat(j,"-close-button"));var z=(0,x.useCallback)(function(n){return w().createElement(w().Fragment,null,c&&w().createElement(Tn,null),w().createElement(an,{$stickyFooter:n},g))},[g,c]);return w().createElement(k(),Te({},B,{isOpen:r,onRequestClose:t,contentLabel:i,style:en,shouldCloseOnOverlayClick:s,shouldCloseOnEsc:p,appElement:o,testId:j}),w().createElement(rn,null,w().createElement(vn,{variant:"header"},a),w().createElement(Se,Te({layout:"circle",icon:w().createElement(En,{size:"1.5rem"}),onClick:t,variant:"subtle",ariaLabel:"close"},P?{dataTest:P}:{}))),c&&w().createElement(Tn,null),w().createElement(tn,{$allowScroll:v},w().createElement(on,null,C),!h&&!O&&z(O)),!h&&O&&z(O))};return l})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","styled-components"],e);else{var r="object"==typeof exports?e(require("react"),require("styled-components")):e(n.react,n["styled-components"]);for(var t in r)("object"==typeof exports?exports:n)[t]=r[t]}}(this,(n,e)=>(()=>{"use strict";var r={155:e=>{e.exports=n},694:n=>{n.exports=e}},t={};function o(n){var e=t[n];if(void 0!==e)return e.exports;var a=t[n]={exports:{}};return r[n](a,a.exports,o),a.exports}o.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return o.d(e,{a:e}),e},o.d=(n,e)=>{for(var r in e)o.o(e,r)&&!o.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var a={};o.r(a),o.d(a,{BBBNavigation:()=>Y});var l,i,c,s,f=o(155),u=o.n(f),d=o(694),p=o.n(d),m="var(--color-neutral-2, #717C91)",v="var(--color-neutral-white, #FFFFFF)",y="var(--color-brand-1, #1D65D4)",g="var(--color-brand-light, #E5EFFB)",b="var(--color-primary, ".concat(y,")"),h=("var(--color-brand-2, ".concat(y,")"),"var(--color-brand-3, ".concat(y,")"),"var(--color-blue-aux, ".concat(g,")"),"var(--color-brand-aux, ".concat(g,")"),"var(--color-error, #D6232D)"),w=("var(--color-danger, ".concat(h,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(v,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")"),"var(--color-background-blue, ".concat(g,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),O=("var(--color-border-selected, ".concat(y,")"),"var(--color-border-error, ".concat(h,")"),"var(--default-border, ".concat(w,")"),"var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")")),j="var(--color-text-light, ".concat(m,")"),x=("var(--color-icon-default, ".concat(m,")"),"var(--color-icon-blue, ".concat(y,")"),"var(--color-icon-white, ".concat(v,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}),P=p().button(l||(l=x(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n background: transparent;\n border: none;\n cursor: pointer;\n margin: 1px; /* Adds margin to prevent outline from being cropped */\n border-radius: ",";\n\n &:focus {\n outline: 1px solid ",";\n }\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n background: transparent;\n border: none;\n cursor: pointer;\n margin: 1px; /* Adds margin to prevent outline from being cropped */\n border-radius: ",";\n\n &:focus {\n outline: 1px solid ",";\n }\n"])),"0.5rem",b),z=p().div(i||(i=x(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: ",";\n"])),"1rem"),E=p().div(s||(s=x(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n\n ","\n"])),b,function(n){return!n.$isCustomIcon&&(0,d.css)(c||(c=x(['\n transform: rotate(90deg);\n [dir="rtl"] & {\n transform: rotate(-90deg);\n }\n '],['\n transform: rotate(90deg);\n [dir="rtl"] & {\n transform: rotate(-90deg);\n }\n '])))}),C={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},k=f.createContext&&f.createContext(C),S=["attr","size","title"];function D(){return D=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)({}).hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},D.apply(null,arguments)}function F(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.push.apply(r,t)}return r}function B(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){N(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function N(n,e,r){return(e=function(n){var e=function(n){if("object"!=typeof n||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var r=e.call(n,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"==typeof e?e:e+""}(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function L(n){return n&&n.map((n,e)=>f.createElement(n.tag,B({key:e},n.attr),L(n.child)))}function M(n){return e=>f.createElement(q,D({attr:B({},n.attr)},e),L(n.child))}function q(n){var e=e=>{var r,{attr:t,size:o,title:a}=n,l=function(n,e){if(null==n)return{};var r,t,o=function(n,e){if(null==n)return{};var r={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(-1!==e.indexOf(t))continue;r[t]=n[t]}return r}(n,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(t=0;t<a.length;t++)r=a[t],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}(n,S),i=o||e.size||"1em";return e.className&&(r=e.className),n.className&&(r=(r?r+" ":"")+n.className),f.createElement("svg",D({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,l,{className:r,style:B(B({color:n.color||e.color},e.style),n.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&f.createElement("title",null,a),n.children)};return void 0!==k?f.createElement(k.Consumer,null,n=>e(n)):e(C)}function I(n){return M({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13.5L7.5 11l1.42-1.41L12 12.67l3.08-3.08L16.5 11 12 15.5z"},child:[]}]})(n)}var T,$,_,A,K,H,W,G="1rem",J="400",Q=function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},R={default:(0,d.css)(T||(T=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),O,G,J),selected:(0,d.css)($||($=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),O,G,"700"),text2:(0,d.css)(_||(_=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),j,"0.875rem",J),text3:(0,d.css)(A||(A=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),j,"0.75rem",J),header:(0,d.css)(K||(K=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n text-transform: uppercase;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n text-transform: uppercase;\n "])),O,G,"700"),button:(0,d.css)(H||(H=Q(["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "],["\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: ",";\n line-height: normal;\n "])),O,G,"600")},U=p().p(W||(W=Q(["\n margin: 0;\n padding: 0;\n ","\n"],["\n margin: 0;\n padding: 0;\n ","\n"])),function(n){var e=n.$variant;return R[e]}),V=function(){return V=Object.assign||function(n){for(var e,r=1,t=arguments.length;r<t;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},V.apply(this,arguments)};const X=function(n){var e=n.children,r=n.variant,t=void 0===r?"default":r,o=n.as,a=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(n);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(n,t[o])&&(r[t[o]]=n[t[o]])}return r}(n,["children","variant","as"]);return u().createElement(U,V({as:o,$variant:t},a),e)},Y=function(n){var e=n.label,r=n.onClick,t=n.onKeyDown,o=n.icon,a=n.children,l=n.ariaLabel,i=n.ariaLabelledBy,c=n.ariaDescribedBy,s=n.dataTest,f=!!o,d=o||u().createElement(I,{size:"1.5rem"});return u().createElement(P,{onClick:r,onKeyDown:t,"aria-label":l,"aria-labelledby":i,"aria-describedby":c,"data-test":s},u().createElement(z,null,u().createElement(E,{$isCustomIcon:f},d),u().createElement(X,{variant:"default"},e)),a)};return a})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("styled-components"));else if("function"==typeof define&&define.amd)define(["react","styled-components"],e);else{var r="object"==typeof exports?e(require("react"),require("styled-components")):e(n.react,n["styled-components"]);for(var o in r)("object"==typeof exports?exports:n)[o]=r[o]}}(this,(n,e)=>(()=>{"use strict";var r={155:e=>{e.exports=n},694:n=>{n.exports=e}},o={};function t(n){var e=o[n];if(void 0!==e)return e.exports;var a=o[n]={exports:{}};return r[n](a,a.exports,t),a.exports}t.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},t.d=(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),t.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var a={};t.r(a),t.d(a,{BBBSearch:()=>X});var i,c,l,s,d,u,f,h,p=t(155),b=t.n(p),v=t(694),g=t.n(v),m="var(--color-neutral-2, #717C91)",x="var(--color-neutral-white, #FFFFFF)",k="var(--color-brand-1, #1D65D4)",y="var(--color-brand-light, #E5EFFB)",w="var(--color-primary, ".concat(k,")"),E=("var(--color-brand-2, ".concat(k,")"),"var(--color-brand-3, ".concat(k,")"),"var(--color-blue-aux, ".concat(y,")"),"var(--color-brand-aux, ".concat(y,")"),"var(--color-error, #D6232D)"),j=("var(--color-danger, ".concat(E,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(x,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")"),"var(--color-background-blue, ".concat(y,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),C="var(--color-border-selected, ".concat(k,")"),F=("var(--color-border-error, ".concat(E,")"),"var(--default-border, ".concat(j,")")),$="var(--color-text-default, ".concat("var(--color-dark-gray, #393C48)",")"),B="var(--color-text-light, ".concat(m,")"),z="var(--color-icon-default, ".concat(m,")"),O="var(--color-icon-blue, ".concat(k,")"),P=("var(--color-icon-white, ".concat(x,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}),S=(0,v.keyframes)(i||(i=P(["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"],["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"]))),D=(0,v.keyframes)(c||(c=P(["\n 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }\n 50% { stroke-dasharray: 100, 200; stroke-dashoffset: -15; }\n 100% { stroke-dasharray: 100, 200; stroke-dashoffset: -125; }\n"],["\n 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }\n 50% { stroke-dasharray: 100, 200; stroke-dashoffset: -15; }\n 100% { stroke-dasharray: 100, 200; stroke-dashoffset: -125; }\n"]))),L=g().div(l||(l=P(["\n width: ",";\n height: ",";\n display: inline-grid;\n place-items: center;\n"],["\n width: ",";\n height: ",";\n display: inline-grid;\n place-items: center;\n"])),function(n){var e=n.$size;return"number"==typeof e?"".concat(e,"px"):e},function(n){var e=n.$size;return"number"==typeof e?"".concat(e,"px"):e}),W=g().svg(d||(d=P(["\n width: 100%;\n height: 100%;\n transform-origin: center;\n overflow: visible;\n ","\n"],["\n width: 100%;\n height: 100%;\n transform-origin: center;\n overflow: visible;\n ","\n"])),function(n){return n.$animate&&(0,v.css)(s||(s=P(["\n animation: "," 1.4s linear infinite;\n "],["\n animation: "," 1.4s linear infinite;\n "])),S)}),T=g().circle(h||(h=P(["\n fill: none;\n stroke: ",";\n stroke-width: ","px;\n stroke-linecap: round;\n ","\n\n ","\n"],["\n fill: none;\n stroke: ",";\n stroke-width: ","px;\n stroke-linecap: round;\n ","\n\n ","\n"])),w,function(n){return n.$strokeWidth},function(n){return n.$animate&&(0,v.css)(u||(u=P(["\n animation: "," 1.4s ease-in-out infinite;\n "],["\n animation: "," 1.4s ease-in-out infinite;\n "])),D)},function(n){return!n.$animate&&(0,v.css)(f||(f=P(["\n stroke-dasharray: 94.2 31.4;\n stroke-dashoffset: 0;\n "],["\n stroke-dasharray: 94.2 31.4;\n stroke-dashoffset: 0;\n "])))});const q=function(n){var e=n.size,r=void 0===e?48:e,o=n.strokeWidth,t=void 0===o?4:o,a=n.animate,i=void 0===a||a;return b().createElement(L,{$size:r,role:"progressbar","aria-label":"Loading","aria-busy":i},b().createElement(W,{viewBox:"0 0 50 50",$animate:i,focusable:"false","aria-hidden":"true"},b().createElement(T,{className:"path",cx:"25",cy:"25",r:"20",$animate:i,$strokeWidth:t})))};var _,M,R,A,I,N,G="0.5rem",H=function(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n},J=g().div(M||(M=H(["\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: 2.5rem;\n padding: "," ",";\n gap: ",";\n border-radius: ",";\n border: 1px solid ",";\n background-color: transparent;\n box-sizing: border-box;\n cursor: text;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 0 3px var(--color-border-focus-ring, rgba(29, 101, 212, 0.15));\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: 2.5rem;\n padding: "," ",";\n gap: ",";\n border-radius: ",";\n border: 1px solid ",";\n background-color: transparent;\n box-sizing: border-box;\n cursor: text;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 0 3px var(--color-border-focus-ring, rgba(29, 101, 212, 0.15));\n }\n\n ","\n"])),G,"1rem",G,"1rem",F,C,function(n){return n.$disabled&&(0,v.css)(_||(_=H(["\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n "],["\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n "])))}),K=g().span(R||(R=H(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: ",";\n width: 1rem;\n height: 1rem;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: ",";\n width: 1rem;\n height: 1rem;\n"])),z),Q=g().input(A||(A=H(["\n flex: 1;\n min-width: 0;\n border: none;\n outline: none;\n background: transparent;\n color: ",";\n font-size: ",";\n line-height: 1.5;\n padding: 0;\n\n &::placeholder {\n color: ",";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n [dir='rtl'] & {\n text-align: right;\n }\n"],["\n flex: 1;\n min-width: 0;\n border: none;\n outline: none;\n background: transparent;\n color: ",";\n font-size: ",";\n line-height: 1.5;\n padding: 0;\n\n &::placeholder {\n color: ",";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n [dir='rtl'] & {\n text-align: right;\n }\n"])),$,"0.875rem",B),U=g().span(I||(I=H(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 1rem;\n height: 1rem;\n color: ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 1rem;\n height: 1rem;\n color: ",";\n"])),w),V=g().button(N||(N=H(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0;\n width: 1rem;\n height: 1rem;\n color: ",";\n line-height: 1;\n transition: color 0.1s ease;\n\n &:hover {\n color: ",";\n }\n\n &:focus-visible {\n outline: 2px solid ",";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0;\n width: 1rem;\n height: 1rem;\n color: ",";\n line-height: 1;\n transition: color 0.1s ease;\n\n &:hover {\n color: ",";\n }\n\n &:focus-visible {\n outline: 2px solid ",";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"])),z,O,C);const X=function(n){var e,r=n.placeholder,o=n.value,t=n.onChange,a=n.onSearch,i=n.onClear,c=n.debounce,l=void 0===c?500:c,s=n.isLoading,d=void 0!==s&&s,u=n.disabled,f=void 0!==u&&u,h=n.autoFocus,v=void 0!==h&&h,g=n.inputRef,m=n["aria-label"],x=void 0!==o,k=(0,p.useState)(""),y=k[0],w=k[1],E=(0,p.useRef)(null),j=null!==(e=g)&&void 0!==e?e:E,C=x?null!=o?o:"":y,F=C.length>0;(0,p.useEffect)(function(){if(!x&&a){var n=setTimeout(function(){a(y)},l);return function(){return clearTimeout(n)}}},[y,l,a,x]),(0,p.useEffect)(function(){v&&j.current&&j.current.focus()},[v,j]);var $=(0,p.useCallback)(function(n){var e=n.target.value;x?null==t||t(e):w(e)},[x,t]),B=(0,p.useCallback)(function(){var n;i?i():x?null==t||t(""):(w(""),null==a||a("")),null===(n=j.current)||void 0===n||n.focus()},[i,x,t,a,j]),z=(0,p.useCallback)(function(n){var e;n.target===n.currentTarget&&(null===(e=j.current)||void 0===e||e.focus())},[j]);return b().createElement(J,{$disabled:f,onClick:z},b().createElement(K,{"aria-hidden":"true"},b().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",focusable:"false"},b().createElement("circle",{cx:"11",cy:"11",r:"8"}),b().createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))),b().createElement(Q,{ref:j,type:"search",role:"searchbox",placeholder:r,value:C,onChange:$,disabled:f,"aria-label":null!=m?m:r}),d&&F&&b().createElement(U,null,b().createElement(q,{size:16,strokeWidth:3})),!d&&F&&b().createElement(V,{type:"button",onClick:B,"aria-label":"Clear search",tabIndex:0},b().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",focusable:"false","aria-hidden":"true"},b().createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b().createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))))};return a})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("react"),require("styled-components"),require("@mui/material/Select"));else if("function"==typeof define&&define.amd)define(["react","styled-components","@mui/material/Select"],r);else{var t="object"==typeof exports?r(require("react"),require("styled-components"),require("@mui/material/Select")):r(e.react,e["styled-components"],e["@mui/material/Select"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(e,r,t)=>(()=>{"use strict";var n={764:e=>{e.exports=t},155:r=>{r.exports=e},694:e=>{e.exports=r}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};a.r(l),a.d(l,{BBBSelect:()=>K});var c=a(155),i=a.n(c),u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=c.createContext&&c.createContext(u),f=["attr","size","title"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},d.apply(null,arguments)}function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach(function(r){y(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function y(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function b(e){return e&&e.map((e,r)=>c.createElement(e.tag,v({key:r},e.attr),b(e.child)))}function m(e){return r=>c.createElement(g,d({attr:v({},e.attr)},r),b(e.child))}function g(e){var r=r=>{var t,{attr:n,size:o,title:a}=e,l=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,f),i=o||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),c.createElement("svg",d({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:t,style:v(v({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&c.createElement("title",null,a),e.children)};return void 0!==s?c.createElement(s.Consumer,null,e=>r(e)):r(u)}function h(e){return m({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(e)}var O,x,j,w,P,E=a(694),S=a.n(E),k=a(764),C=a.n(k),F="var(--color-neutral-2, #717C91)",D="var(--color-neutral-white, #FFFFFF)",z="var(--color-dark-gray, #393C48)",B="var(--color-brand-1, #1D65D4)",q="var(--color-brand-light, #E5EFFB)",N="var(--color-primary, ".concat(B,")"),I=("var(--color-brand-2, ".concat(B,")"),"var(--color-brand-3, ".concat(B,")"),"var(--color-blue-aux, ".concat(q,")"),"var(--color-brand-aux, ".concat(q,")"),"var(--color-error, #D6232D)"),M=("var(--color-danger, ".concat(I,")"),"var(--color-danger-dark, ".concat("var(--color-error-dark, #B91C25)",")"),"var(--color-background-white, ".concat(D,")"),"var(--color-background-light, ".concat("var(--color-light-gray, #F4F6FA)",")"),"var(--color-background-blue, ".concat(q,")"),"var(--color-border-default, ".concat("var(--color-neutral-3, #B0BDC9)",")")),_=("var(--color-border-selected, ".concat(B,")"),"var(--color-border-error, ".concat(I,")"),"var(--default-border, ".concat(M,")")),T=("var(--color-text-default, ".concat(z,")"),"var(--color-text-light, ".concat(F,")"),"var(--color-icon-default, ".concat(F,")"),"var(--color-icon-blue, ".concat(B,")"),"var(--color-icon-white, ".concat(D,")"),"var(--color-hover-neutral, ".concat("var(--color-neutral-4, #DCE4EC)",")"),function(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}),L=S().div(O||(O=T(["\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n gap: ",";\n justify-content: start;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n gap: ",";\n justify-content: start;\n align-items: center;\n"])),"0.5rem"),A=S().div(x||(x=T(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: ","; \n padding: 1px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: ","; \n padding: 1px;\n width: 100%;\n"])),"1rem"),H=S()(C())(j||(j=T(["\n height: 3.5rem;\n flex: 1;\n border-radius: "," !important;\n overflow: hidden;\n width: 100%;\n border: 1px solid ",";\n"],["\n height: 3.5rem;\n flex: 1;\n border-radius: "," !important;\n overflow: hidden;\n width: 100%;\n border: 1px solid ",";\n"])),"0.5rem",_),W=S().label(w||(w=T(["\n align-self: flex-start;\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n"],["\n align-self: flex-start;\n color: ",";\n font-size: ",";\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n"])),z,"0.875rem"),G=S().div(P||(P=T(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: ",";\n"])),N),J=function(){return J=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},J.apply(this,arguments)};const K=function(e){var r=e.title,t=void 0===r?null:r,n=e.icon,o=void 0===n?null:n,a=e.children,l=e.ariaLabel,u=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["title","icon","children","ariaLabel"]),s=(0,c.useId)(),f="select-".concat(s),d=t?"select-label-".concat(s):void 0;return i().createElement(L,null,t&&i().createElement(W,{id:d,htmlFor:f},t),i().createElement(A,null,o&&i().createElement(G,null,o),i().createElement(H,J({},u,{id:f,labelId:d,"aria-label":l,IconComponent:h}),a)))};return l})());
|