@liujip0/components 0.1.0 → 0.2.1
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/README.md +35 -0
- package/dist/Input.module-C7oR_KDs.js +13 -0
- package/dist/assets/Backdrop.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Counter.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/Divider.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/Tab.css +1 -0
- package/dist/assets/TabBar.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/ToggleButton.css +1 -1
- package/dist/assets/ToggleButtonGroup.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/components/Backdrop/Backdrop.d.ts +6 -0
- package/dist/components/Backdrop/Backdrop.js +18 -0
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/IconButton/IconButton.js +7 -7
- package/dist/components/Button/ToggleButton/ToggleButton.js +16 -16
- package/dist/components/Button/ToggleButton/ToggleButtonGroup.js +15 -15
- package/dist/components/Dialog/Dialog.js +20 -20
- package/dist/components/Divider/Divider.js +5 -5
- package/dist/components/Input/Checkbox/Checkbox.js +3 -3
- package/dist/components/Input/Counter/Counter.js +6 -6
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Radio/Radio.js +14 -14
- package/dist/components/Input/Radio/RadioGroup.js +14 -14
- package/dist/components/Input/Select/Select.js +26 -26
- package/dist/components/Input/TextArea.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +10 -10
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Tabs/Tab.d.ts +9 -0
- package/dist/components/Tabs/Tab.js +25 -0
- package/dist/components/Tabs/TabBar.d.ts +3 -2
- package/dist/components/Tabs/TabBar.js +13 -18
- package/dist/components/Tabs/Tabs.js +24 -16
- package/dist/components/Tooltip/Tooltip.js +8 -8
- package/dist/main.d.ts +3 -0
- package/dist/main.js +41 -37
- package/package.json +1 -1
- package/dist/Input.module-D9zadJal.js +0 -13
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
1
|
# @liujip0/components
|
|
2
2
|
|
|
3
3
|
Just a simple components library for my own personal use!
|
|
4
|
+
|
|
5
|
+
CSS variables to customize:
|
|
6
|
+
|
|
7
|
+
| Variable | Description | Default |
|
|
8
|
+
| --------------------------------- | -------------------------------------------------------------------------------- | -------------------- |
|
|
9
|
+
| `--text-font-family` | Text font family | `sans-serif` |
|
|
10
|
+
| `--text-body-size` | Size of body text | `1em` |
|
|
11
|
+
| `--text-h1-size` | Size of h1 text | `2em` |
|
|
12
|
+
| `--text-h2-size` | Size of h2 text | `1.5em` |
|
|
13
|
+
| `--text-label-size` | Size of labels for input components | `0.9em` |
|
|
14
|
+
| `--text-helperText-size` | Size of helper text for input components | `0.75em` |
|
|
15
|
+
| | | |
|
|
16
|
+
| `--color-primary` | Primary theme color | `blue` |
|
|
17
|
+
| `--color-primary-contrastText` | Text color when background color is `--color-primary` | `white` |
|
|
18
|
+
| `--color-secondary` | Secondary theme color | `orange` |
|
|
19
|
+
| `--color-secondary-contrastText` | Text color when background color is `--color-secondary` | `white` |
|
|
20
|
+
| `--color-background` | Background color | `white` |
|
|
21
|
+
| `--color-background-contrastText` | Text color when background color is `--color-background` | `black` |
|
|
22
|
+
| `--color-paper` | Background color for modals, dialogs, popups, snackbars, etc. | `gray` |
|
|
23
|
+
| `--color-paper-contrastText` | Text color when background color is `--color-paper` | `black` |
|
|
24
|
+
| `--color-error` | Color to indicate errors | `red` |
|
|
25
|
+
| | | |
|
|
26
|
+
| `--z-index-backdrop` | z-index of backdrops or overlays | `99` |
|
|
27
|
+
| `--z-index-snackbar` | z-index of snackbars | `100` |
|
|
28
|
+
| `--z-index-modal` | z-index of modals, dialogs, popups, etc. | `101` |
|
|
29
|
+
| `--z-index-tooltip` | z-index of tooltips | `102` |
|
|
30
|
+
| | | |
|
|
31
|
+
| `--border-radius` | Border radius for buttons, input components, etc. | `0` |
|
|
32
|
+
| `--border-width` | Border width for buttons, input components, etc. | `1px` |
|
|
33
|
+
| `--input-height` | [Only used in the `Counter` component] Calculated height of an `Input` component | `calc(37.6px + 8px)` |
|
|
34
|
+
| `--hover-dim` | Filter effect to apply to buttons, etc. on hover | `brightness(0.8)` |
|
|
35
|
+
| | | |
|
|
36
|
+
| `--table-cell-padding` | Padding for table cells | `8px` |
|
|
37
|
+
| `--table-border-width` | Border width for tables | `3px` |
|
|
38
|
+
| `--table-cell-border-width` | Border width for cells within tables | `2px` |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './assets/Input.css';const e = "_container_1dgl9_1", t = "_outline_1dgl9_6", l = "_errorOutline_1dgl9_18", r = "_input_1dgl9_22", n = "_inputDisabled_1dgl9_41", _ = "_helperText_1dgl9_53", o = "_helperTextError_1dgl9_60", i = "_label_1dgl9_64", s = {
|
|
2
|
+
container: e,
|
|
3
|
+
outline: t,
|
|
4
|
+
errorOutline: l,
|
|
5
|
+
input: r,
|
|
6
|
+
inputDisabled: n,
|
|
7
|
+
helperText: _,
|
|
8
|
+
helperTextError: o,
|
|
9
|
+
label: i
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
s
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._backdrop_qbjym_1{position:absolute;top:0;left:0;width:100%;height:100%;z-index:var(--z-index-backdrop, var(--z-index-backdrop-fallback));background-color:#00000080;pointer-events:none}
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_y7o2r_1{min-width:64px;padding:6px 16px;border:none;border-radius:var(--border-radius, var(--border-radius-fallback));display:flex;align-items:center;justify-content:center;gap:4px;font-size:1.25rem;font-family:var(--text-font-family, var(--text-font-family-fallback));text-transform:uppercase;font-weight:500;line-height:1.75;letter-spacing:.02857em;cursor:pointer}._button_y7o2r_1:hover{filter:var(--hover-dim, var(--hover-dim-fallback))}
|
package/dist/assets/Counter.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_12kgw_1{display:flex;align-items:flex-end}._button_12kgw_6{height:var(--input-height, var(--input-height-fallback));width:var(--input-height, var(--input-height-fallback));min-width:0;min-height:0;background-color:var(--color-primary, var(--color-primary-fallback));color:var( --color-primary-contrastText, var(--color-primary-contrastText-fallback) );border:none}._buttonDisabled_12kgw_19{background-color:color-mix(in srgb,var(--color-primary, var(--color-primary-fallback)) 50%,#888);cursor:default}._buttonDisabled_12kgw_19:hover{filter:none}._input_12kgw_31{flex:1}
|
package/dist/assets/Dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._screenDarken_9wfqy_1{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background-color:#00000080;z-index:var(--z-index-modal, var(--z-index-modal-fallback))}._dialog_9wfqy_16{max-width:80vw;max-height:80vh;display:flex;flex-direction:column;padding:24px;background-color:var(--color-paper, var(--color-paper-fallback));border-radius:var(--border-radius, var(--border-radius-fallback));border:var(--border-width, var(--border-width-fallback)) solid var(--color-primary, var(--color-primary-fallback))}._dialogTitle_9wfqy_29{margin-bottom:16px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-h2-size, var(--text-h2-size-fallback))}._dialogContent_9wfqy_36{flex:1;overflow-y:auto}._dialogActions_9wfqy_41{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
|
package/dist/assets/Divider.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._divider_rubc3_1{border-width:.5px;border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));margin:8px}._horizontalDivider_rubc3_8{width:100%;height:0}._verticalDivider_rubc3_13{height:100%;width:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_180ek_1{display:flex;align-items:center;justify-content:center;padding:6px;border:none;color:var(--color-primary, var(--color-primary-fallback));background-color:var(--color-background, var(--color-background-fallback));cursor:pointer;clip-path:circle(50%)}._button_180ek_1:hover{filter:var(--hover-dim, var(--hover-dim-fallback))}
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1dgl9_1{display:flex;flex-direction:column}._outline_1dgl9_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:var(--border-width, var(--border-width-fallback));border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));border-radius:var(--border-radius, var(--border-radius-fallback))}._errorOutline_1dgl9_18{border-color:var(--color-error, var(--color-error-fallback))}._input_1dgl9_22{min-width:1em;flex:1;padding:6px;width:100%;height:100%;border:none;background-color:transparent;color:var( --color-background-contrastText, var(--color-background-contrastText-fallback) );font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback))}._input_1dgl9_22:focus{outline:none}._inputDisabled_1dgl9_41{color:color-mix(in srgb,var( --color-background-contrastText, var(--color-background-contrastText-fallback) ) 50%,#888)}._helperText_1dgl9_53{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_1dgl9_60{color:var(--color-error, var(--color-error-fallback))}._label_1dgl9_64{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}
|
package/dist/assets/Radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_12u6r_1{display:flex;align-items:center;gap:8px}._label_12u6r_7{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback));cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1ygqk_1{display:flex;flex-direction:column}._outline_1ygqk_6{display:flex;flex-direction:column;gap:4px}._label_1ygqk_12{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}._helperText_1ygqk_17{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_1ygqk_24{color:var(--color-error, var(--color-error-fallback))}
|
package/dist/assets/Select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_14cji_1{display:flex;flex-direction:column}._outline_14cji_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:1px;border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));border-radius:var(--border-radius, var(--border-radius-fallback))}._errorOutline_14cji_18{border-color:var(--color-error, var(--color-error-fallback))}._select_14cji_22{min-width:1em;flex:1;padding:6px;border:none;background-color:transparent;color:var( --color-background-contrastText, var(--color-background-contrastText-fallback) );font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback))}._select_14cji_22:focus{outline:none}._selectDisabled_14cji_39{color:color-mix(in srgb,var( --color-background-contrastText, var(--color-background-contrastText-fallback) ) 50%,#888)}._helperText_14cji_51{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_14cji_58{color:var(--color-error, var(--color-error-fallback))}._label_14cji_62{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}
|
package/dist/assets/Snackbar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._snackbar_tl00m_1{position:fixed;bottom:16px;left:16px;display:flex;gap:16px;padding:8px 16px;align-items:center;max-width:500px;z-index:var(--z-index-snackbar, var(--z-index-snackbar-fallback));background-color:var(--color-paper, var(--color-paper-fallback));border:var(--border-width, var(--border-width-fallback)) solid var(--color-primary, var(--color-primary-fallback));border-radius:var(--border-radius, var(--border-radius-fallback))}._message_tl00m_18{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback));color:var( --color-paper-contrastText, var(--color-paper-contrastText-fallback) )}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tab_1m0oo_1{padding:.5em;cursor:pointer;color:var(--color-primary, var(--color-primary-fallback));font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback));text-transform:uppercase;font-weight:500;background-color:var(--color-background, var(--color-background-fallback))}._tab_1m0oo_1:hover{filter:var(--hover-dim, var(--hover-dim-fallback))}._activeTab_1m0oo_15{font-weight:700;border-bottom:4px solid var(--color-primary, var(--color-primary-fallback))}
|
package/dist/assets/TabBar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tabBar_1oym3_1{display:flex;width:100%}
|
package/dist/assets/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._table_10gvy_1{border-collapse:separate;border:var(--table-border-width, var(--table-border-width-fallback)) solid var(--color-primary, var(--color-primary-fallback));border-spacing:0}._tableHead_10gvy_8{position:sticky;top:var(--table-cell-border-width, var(--table-cell-border-width-fallback));z-index:1;background-color:var(--color-background, var(--color-background-fallback));outline:var( --table-cell-border-width, var(--table-cell-border-width-fallback) ) solid var(--color-primary, var(--color-primary-fallback))}._th_10gvy_21{padding:var(--table-cell-padding, var(--table-cell-padding-fallback));font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback));font-weight:700;border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));border-width:var(--table-border-width, var(--table-border-width-fallback)) var(--table-cell-border-width, var(--table-cell-border-width-fallback))}._td_10gvy_33{padding:var(--table-cell-padding, var(--table-cell-padding-fallback));font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback));border:var( --table-cell-border-width, var(--table-cell-border-width-fallback) ) solid var(--color-primary, var(--color-primary-fallback))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._buttonFalse_1ed44_1{color:var(--color-primary, var(--color-primary-fallback));border:var(--border-width, var(--border-width-fallback)) solid var(--color-primary, var(--color-primary-fallback));background-color:var(--color-background, var(--color-background-fallback))}._buttonTrue_1ed44_8{color:var( --color-primary-contrastText, var(--color-primary-contrastText-fallback) );border:none;background-color:var(--color-primary, var(--color-primary-fallback))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1ngm3_1{display:flex;flex-direction:column}._outline_1ngm3_6{display:flex;gap:4px}._label_1ngm3_11{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}._helperText_1ngm3_16{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_1ngm3_23{color:var(--color-error)}
|
package/dist/assets/Tooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_147qb_1{display:inline;position:static}._tooltipContainer_147qb_7{position:fixed;transform:translate(-50%)}._tooltip_147qb_7{position:absolute;padding:4px;left:-50%;background-color:#000;opacity:.8;z-index:var(--z-index-tooltip, var(--z-index-tooltip-fallback));border-radius:var(--border-radius, var(--border-radius-fallback));font-size:var(--text-label-size)}._tooltip_147qb_7:after{content:"";position:absolute}
|
package/dist/assets/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.material-symbols-outlined{font-variation-settings:"FILL" 1}
|
|
1
|
+
:root{--text-font-family-fallback: sans-serif;--text-body-size-fallback: 1em;--text-h1-size-fallback: 2em;--text-h2-size-fallback: 1.5em;--text-label-size-fallback: .9em;--text-helperText-size-fallback: .75em;--color-primary-fallback: blue;--color-primary-contrastText-fallback: white;--color-secondary-fallback: orange;--color-secondary-contrastText-fallback: white;--color-background-fallback: white;--color-background-contrastText-fallback: black;--color-paper-fallback: gray;--color-paper-contrastText-fallback: black;--color-error-fallback: red;--z-index-backdrop-fallback: 99;--z-index-snackbar-fallback: 100;--z-index-modal-fallback: 101;--z-index-tooltip-fallback: 102;--border-radius-fallback: 0;--border-width-fallback: 1px;--input-height-fallback: 45.6px ;--hover-dim-fallback: brightness(.8);--table-cell-padding-fallback: 8px;--table-border-width-fallback: 3px;--table-cell-border-width-fallback: 2px}.material-symbols-outlined{font-variation-settings:"FILL" 1}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as c, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Backdrop.css';const t = "_backdrop_qbjym_1", p = {
|
|
3
|
+
backdrop: t
|
|
4
|
+
};
|
|
5
|
+
function k({ open: o, onClose: r }) {
|
|
6
|
+
return o ? /* @__PURE__ */ c(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
onClick: () => {
|
|
10
|
+
r && r();
|
|
11
|
+
},
|
|
12
|
+
className: p.backdrop
|
|
13
|
+
}
|
|
14
|
+
) : /* @__PURE__ */ c(a, {});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
k as Backdrop
|
|
18
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/Button.css';const
|
|
3
|
-
button:
|
|
2
|
+
import '../../assets/Button.css';const r = "_button_y7o2r_1", b = {
|
|
3
|
+
button: r
|
|
4
4
|
};
|
|
5
5
|
function e({ children: t, className: o, ref: n, ...u }) {
|
|
6
6
|
return /* @__PURE__ */ s(
|
|
7
7
|
"button",
|
|
8
8
|
{
|
|
9
9
|
ref: n,
|
|
10
|
-
className:
|
|
10
|
+
className: b.button + " " + (o || ""),
|
|
11
11
|
...u,
|
|
12
12
|
children: t
|
|
13
13
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../../assets/IconButton.css';const
|
|
3
|
-
button:
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import '../../../assets/IconButton.css';const s = "_button_180ek_1", b = {
|
|
3
|
+
button: s
|
|
4
4
|
};
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function e({ children: t, className: o, ...n }) {
|
|
6
|
+
return /* @__PURE__ */ u(
|
|
7
7
|
"button",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
9
|
+
className: b.button + " " + (o || ""),
|
|
10
10
|
...n,
|
|
11
11
|
children: t
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
e as IconButton
|
|
17
17
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Button as
|
|
3
|
-
import '../../../assets/ToggleButton.css';const C = "
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { Button as s } from "../Button.js";
|
|
3
|
+
import '../../../assets/ToggleButton.css';const C = "_buttonFalse_1ed44_1", d = "_buttonTrue_1ed44_8", e = {
|
|
4
4
|
buttonFalse: C,
|
|
5
|
-
buttonTrue:
|
|
5
|
+
buttonTrue: d
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function g({
|
|
8
8
|
value: n,
|
|
9
9
|
children: o,
|
|
10
|
-
className:
|
|
11
|
-
classNameTrue:
|
|
12
|
-
classNameFalse:
|
|
13
|
-
disabled:
|
|
14
|
-
ref:
|
|
10
|
+
className: u,
|
|
11
|
+
classNameTrue: i,
|
|
12
|
+
classNameFalse: l,
|
|
13
|
+
disabled: c,
|
|
14
|
+
ref: a,
|
|
15
15
|
...t
|
|
16
16
|
}) {
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
return /* @__PURE__ */ b(
|
|
18
|
+
s,
|
|
19
19
|
{
|
|
20
|
-
ref:
|
|
21
|
-
className: (("selected" in t ? t.selected : n) ? e.buttonTrue + " " + (
|
|
20
|
+
ref: a,
|
|
21
|
+
className: (("selected" in t ? t.selected : n) ? e.buttonTrue + " " + (i || "") : e.buttonFalse + " " + (l || "")) + " " + (u || ""),
|
|
22
22
|
onClick: () => {
|
|
23
23
|
"onChange" in t && t.onChange !== void 0 ? t.onChange(!n) : "onClick" in t && t.onClick !== void 0 && t.onClick();
|
|
24
24
|
},
|
|
25
|
-
disabled:
|
|
25
|
+
disabled: c,
|
|
26
26
|
children: o
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
g as ToggleButton
|
|
32
32
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import '../../../assets/ToggleButtonGroup.css';const
|
|
4
|
-
container:
|
|
1
|
+
import { jsxs as _, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import '../../../assets/ToggleButtonGroup.css';const u = "_container_1ngm3_1", x = "_outline_1ngm3_6", h = "_label_1ngm3_11", T = "_helperText_1ngm3_16", g = "_helperTextError_1ngm3_23", r = {
|
|
4
|
+
container: u,
|
|
5
5
|
outline: x,
|
|
6
6
|
label: h,
|
|
7
7
|
helperText: T,
|
|
8
|
-
helperTextError:
|
|
8
|
+
helperTextError: g
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
value:
|
|
10
|
+
function f({
|
|
11
|
+
value: l,
|
|
12
12
|
onChange: o,
|
|
13
13
|
children: c,
|
|
14
14
|
label: s,
|
|
@@ -16,16 +16,16 @@ function v({
|
|
|
16
16
|
helperText: p,
|
|
17
17
|
className: a
|
|
18
18
|
}) {
|
|
19
|
-
const
|
|
20
|
-
selected:
|
|
19
|
+
const m = t.Children.map(c, (e) => t.isValidElement(e) ? t.cloneElement(e, {
|
|
20
|
+
selected: l === e.props.value,
|
|
21
21
|
onClick: () => {
|
|
22
|
-
|
|
22
|
+
l === e.props.value ? o("") : o(e.props.value);
|
|
23
23
|
}
|
|
24
24
|
}) : e);
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
s && /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
p && /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ _("div", { className: r.container + " " + (a || ""), children: [
|
|
26
|
+
s && /* @__PURE__ */ n("p", { className: r.label, children: s }),
|
|
27
|
+
/* @__PURE__ */ n("div", { className: r.outline, children: m }),
|
|
28
|
+
p && /* @__PURE__ */ n(
|
|
29
29
|
"p",
|
|
30
30
|
{
|
|
31
31
|
className: r.helperText + " " + (i ? r.helperTextError : ""),
|
|
@@ -35,5 +35,5 @@ function v({
|
|
|
35
35
|
] });
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
f as ToggleButtonGroup
|
|
39
39
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/Dialog.css';const
|
|
3
|
-
screenDarken:
|
|
4
|
-
dialog:
|
|
1
|
+
import { jsx as n, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Dialog.css';const s = "_screenDarken_9wfqy_1", c = "_dialog_9wfqy_16", g = "_dialogTitle_9wfqy_29", r = "_dialogContent_9wfqy_36", d = "_dialogActions_9wfqy_41", i = {
|
|
3
|
+
screenDarken: s,
|
|
4
|
+
dialog: c,
|
|
5
5
|
dialogTitle: g,
|
|
6
6
|
dialogContent: r,
|
|
7
7
|
dialogActions: d
|
|
8
8
|
};
|
|
9
|
-
function
|
|
10
|
-
return
|
|
9
|
+
function f({ open: o, onClose: t, children: a }) {
|
|
10
|
+
return o ? /* @__PURE__ */ n(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: i.screenDarken,
|
|
14
14
|
onClick: () => {
|
|
15
15
|
t && t();
|
|
16
16
|
},
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ n(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
|
-
className:
|
|
20
|
+
className: i.dialog,
|
|
21
21
|
onClick: (e) => {
|
|
22
22
|
e.stopPropagation();
|
|
23
23
|
},
|
|
@@ -25,20 +25,20 @@ function m({ open: i, onClose: t, children: a }) {
|
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
}
|
|
28
|
-
) : /* @__PURE__ */
|
|
28
|
+
) : /* @__PURE__ */ n(l, {});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
function m({ children: o }) {
|
|
31
|
+
return /* @__PURE__ */ n("h2", { className: i.dialogTitle, children: o });
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
function u({ children: o }) {
|
|
34
|
+
return /* @__PURE__ */ n("div", { className: i.dialogContent, children: o });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
function D({ children: o }) {
|
|
37
|
+
return /* @__PURE__ */ n("div", { className: i.dialogActions, children: o });
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
f as Dialog,
|
|
41
|
+
D as DialogActions,
|
|
42
|
+
u as DialogContent,
|
|
43
|
+
m as DialogTitle
|
|
44
44
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/Divider.css';const
|
|
3
|
-
divider:
|
|
4
|
-
horizontalDivider:
|
|
2
|
+
import '../../assets/Divider.css';const d = "_divider_rubc3_1", v = "_horizontalDivider_rubc3_8", t = "_verticalDivider_rubc3_13", i = {
|
|
3
|
+
divider: d,
|
|
4
|
+
horizontalDivider: v,
|
|
5
5
|
verticalDivider: t
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function c({ orientation: r }) {
|
|
8
8
|
return /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
@@ -13,5 +13,5 @@ function n({ orientation: r }) {
|
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
c as Divider
|
|
17
17
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { IconButton as i } from "../../Button/IconButton/IconButton.js";
|
|
3
|
-
import '../../../assets/Radio.css';const
|
|
4
|
-
container:
|
|
5
|
-
label:
|
|
3
|
+
import '../../../assets/Radio.css';const h = "_container_12u6r_1", m = "_label_12u6r_7", r = {
|
|
4
|
+
container: h,
|
|
5
|
+
label: m
|
|
6
6
|
};
|
|
7
7
|
function _({
|
|
8
8
|
value: c,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Button as e } from "../../Button/Button.js";
|
|
3
3
|
import { Input as m } from "../Input.js";
|
|
4
|
-
import '../../../assets/Counter.css';const b = "
|
|
4
|
+
import '../../../assets/Counter.css';const b = "_container_12kgw_1", p = "_button_12kgw_6", _ = "_buttonDisabled_12kgw_19", d = "_input_12kgw_31", t = {
|
|
5
5
|
container: b,
|
|
6
|
-
button:
|
|
7
|
-
buttonDisabled:
|
|
8
|
-
input:
|
|
6
|
+
button: p,
|
|
7
|
+
buttonDisabled: _,
|
|
8
|
+
input: d
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function h({
|
|
11
11
|
value: s,
|
|
12
12
|
id: c,
|
|
13
13
|
increment: r,
|
|
@@ -53,5 +53,5 @@ function k({
|
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
h as Counter
|
|
57
57
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { IconButton as d } from "../../Button/IconButton/IconButton.js";
|
|
3
|
-
import '../../../assets/Radio.css';const m = "
|
|
3
|
+
import '../../../assets/Radio.css';const m = "_container_12u6r_1", u = "_label_12u6r_7", i = {
|
|
4
4
|
container: m,
|
|
5
5
|
label: u
|
|
6
6
|
};
|
|
7
|
-
function
|
|
8
|
-
selected:
|
|
9
|
-
onChange:
|
|
7
|
+
function b({
|
|
8
|
+
selected: r,
|
|
9
|
+
onChange: e,
|
|
10
10
|
name: o,
|
|
11
11
|
id: t,
|
|
12
|
-
label:
|
|
12
|
+
label: c,
|
|
13
13
|
className: l
|
|
14
14
|
}) {
|
|
15
15
|
return /* @__PURE__ */ a("div", { className: i.container, children: [
|
|
@@ -18,19 +18,19 @@ function h({
|
|
|
18
18
|
{
|
|
19
19
|
className: l,
|
|
20
20
|
onClick: () => {
|
|
21
|
-
|
|
21
|
+
e && e(!r);
|
|
22
22
|
},
|
|
23
23
|
children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
r ? /* @__PURE__ */ n("span", { className: "material-symbols-outlined", children: "radio_button_checked" }) : /* @__PURE__ */ n("span", { className: "material-symbols-outlined", children: "radio_button_unchecked" }),
|
|
25
|
+
/* @__PURE__ */ n(
|
|
26
26
|
"input",
|
|
27
27
|
{
|
|
28
28
|
type: "radio",
|
|
29
29
|
name: o,
|
|
30
30
|
id: t,
|
|
31
|
-
checked:
|
|
31
|
+
checked: r,
|
|
32
32
|
onChange: (s) => {
|
|
33
|
-
|
|
33
|
+
e && e(s.currentTarget.checked);
|
|
34
34
|
},
|
|
35
35
|
hidden: !0
|
|
36
36
|
}
|
|
@@ -38,16 +38,16 @@ function h({
|
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
|
|
41
|
+
c && /* @__PURE__ */ n(
|
|
42
42
|
"label",
|
|
43
43
|
{
|
|
44
44
|
htmlFor: t,
|
|
45
45
|
className: i.label,
|
|
46
|
-
children:
|
|
46
|
+
children: c
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
] });
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
b as Radio
|
|
53
53
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../../assets/RadioGroup.css';const x = "
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import '../../../assets/RadioGroup.css';const x = "_container_1ygqk_1", d = "_outline_1ygqk_6", T = "_label_1ygqk_12", y = "_helperText_1ygqk_17", E = "_helperTextError_1ygqk_24", r = {
|
|
4
4
|
container: x,
|
|
5
5
|
outline: d,
|
|
6
6
|
label: T,
|
|
7
|
-
helperText:
|
|
8
|
-
helperTextError:
|
|
7
|
+
helperText: y,
|
|
8
|
+
helperTextError: E
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function k({
|
|
11
11
|
children: a,
|
|
12
12
|
name: i,
|
|
13
|
-
label:
|
|
13
|
+
label: n,
|
|
14
14
|
error: c,
|
|
15
|
-
helperText:
|
|
15
|
+
helperText: o,
|
|
16
16
|
className: p,
|
|
17
17
|
value: _,
|
|
18
18
|
onChange: s
|
|
19
19
|
}) {
|
|
20
|
-
const m =
|
|
20
|
+
const m = l.Children.map(a, (e) => l.isValidElement(e) ? l.cloneElement(e, {
|
|
21
21
|
name: i,
|
|
22
22
|
selected: _ === e.props.value,
|
|
23
23
|
onChange: (u) => {
|
|
@@ -25,17 +25,17 @@ function N({
|
|
|
25
25
|
}
|
|
26
26
|
}) : e);
|
|
27
27
|
return /* @__PURE__ */ h("div", { className: r.container + " " + (p || ""), children: [
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
28
|
+
n && /* @__PURE__ */ t("p", { className: r.label, children: n }),
|
|
29
|
+
/* @__PURE__ */ t("div", { className: r.outline, children: m }),
|
|
30
|
+
o && /* @__PURE__ */ t(
|
|
31
31
|
"p",
|
|
32
32
|
{
|
|
33
33
|
className: r.helperText + " " + (c ? r.helperTextError : ""),
|
|
34
|
-
children:
|
|
34
|
+
children: o
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
] });
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
k as RadioGroup
|
|
41
41
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../assets/Select.css';const
|
|
4
|
-
container:
|
|
5
|
-
outline:
|
|
3
|
+
import '../../../assets/Select.css';const u = "_container_14cji_1", j = "_outline_14cji_6", x = "_errorOutline_14cji_18", m = "_select_14cji_22", b = "_selectDisabled_14cji_39", d = "_helperText_14cji_51", T = "_helperTextError_14cji_58", N = "_label_14cji_62", e = {
|
|
4
|
+
container: u,
|
|
5
|
+
outline: j,
|
|
6
6
|
errorOutline: x,
|
|
7
|
-
select:
|
|
8
|
-
selectDisabled:
|
|
9
|
-
helperText:
|
|
10
|
-
helperTextError:
|
|
11
|
-
label:
|
|
7
|
+
select: m,
|
|
8
|
+
selectDisabled: b,
|
|
9
|
+
helperText: d,
|
|
10
|
+
helperTextError: T,
|
|
11
|
+
label: N
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function O({
|
|
14
14
|
id: t,
|
|
15
|
-
value:
|
|
15
|
+
value: o,
|
|
16
16
|
children: _,
|
|
17
17
|
className: a,
|
|
18
18
|
label: r,
|
|
19
|
-
onChange:
|
|
20
|
-
disabled:
|
|
21
|
-
helperText:
|
|
22
|
-
error:
|
|
19
|
+
onChange: c,
|
|
20
|
+
disabled: s,
|
|
21
|
+
helperText: i,
|
|
22
|
+
error: n
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ p("div", { className: e.container + " " + (a || ""), children: [
|
|
25
25
|
r && /* @__PURE__ */ l(
|
|
26
26
|
"label",
|
|
27
27
|
{
|
|
@@ -33,31 +33,31 @@ function E({
|
|
|
33
33
|
/* @__PURE__ */ l(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
|
-
className: e.outline + " " + (
|
|
36
|
+
className: e.outline + " " + (n ? e.errorOutline : ""),
|
|
37
37
|
children: /* @__PURE__ */ l(
|
|
38
38
|
"select",
|
|
39
39
|
{
|
|
40
40
|
id: t,
|
|
41
|
-
className: e.select + " " + (
|
|
42
|
-
value:
|
|
43
|
-
onChange: (
|
|
44
|
-
|
|
41
|
+
className: e.select + " " + (s ? e.selectDisabled : ""),
|
|
42
|
+
value: o,
|
|
43
|
+
onChange: (h) => {
|
|
44
|
+
c && c(h.target.value);
|
|
45
45
|
},
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: s,
|
|
47
47
|
children: _
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
52
|
+
i && /* @__PURE__ */ l(
|
|
53
53
|
"p",
|
|
54
54
|
{
|
|
55
|
-
className: e.helperText + " " + (
|
|
56
|
-
children:
|
|
55
|
+
className: e.helperText + " " + (n ? e.helperTextError : ""),
|
|
56
|
+
children: i
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
O as Select
|
|
63
63
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as i, jsx as c, Fragment as
|
|
1
|
+
import { jsxs as i, jsx as c, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as f } from "react";
|
|
3
|
-
import '../../assets/Snackbar.css';const _ = "
|
|
3
|
+
import '../../assets/Snackbar.css';const _ = "_snackbar_tl00m_1", b = "_message_tl00m_18", a = {
|
|
4
4
|
snackbar: _,
|
|
5
|
-
message:
|
|
5
|
+
message: b
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function d({
|
|
8
8
|
open: s,
|
|
9
9
|
autoHideDuration: e,
|
|
10
10
|
onClose: r,
|
|
11
|
-
message:
|
|
12
|
-
action:
|
|
11
|
+
message: m,
|
|
12
|
+
action: t
|
|
13
13
|
}) {
|
|
14
14
|
return f(() => {
|
|
15
15
|
if (s && e && r) {
|
|
@@ -19,10 +19,10 @@ function o({
|
|
|
19
19
|
return () => clearTimeout(n);
|
|
20
20
|
}
|
|
21
21
|
}, [s, e, r]), s ? /* @__PURE__ */ i("div", { className: a.snackbar, children: [
|
|
22
|
-
/* @__PURE__ */ c("p", { className: a.message, children:
|
|
23
|
-
/* @__PURE__ */ c("div", { children:
|
|
24
|
-
] }) : /* @__PURE__ */ c(
|
|
22
|
+
/* @__PURE__ */ c("p", { className: a.message, children: m }),
|
|
23
|
+
/* @__PURE__ */ c("div", { children: t })
|
|
24
|
+
] }) : /* @__PURE__ */ c(l, {});
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
d as Snackbar
|
|
28
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/Table.css';const
|
|
3
|
-
table:
|
|
4
|
-
tableHead:
|
|
2
|
+
import '../../assets/Table.css';const l = "_table_10gvy_1", s = "_tableHead_10gvy_8", c = "_th_10gvy_21", d = "_td_10gvy_33", a = {
|
|
3
|
+
table: l,
|
|
4
|
+
tableHead: s,
|
|
5
5
|
th: c,
|
|
6
6
|
td: d
|
|
7
7
|
};
|
|
@@ -14,12 +14,12 @@ function b({ children: t }) {
|
|
|
14
14
|
function r({ children: t }) {
|
|
15
15
|
return /* @__PURE__ */ e("th", { className: a.th, children: t });
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function u({ children: t }) {
|
|
18
18
|
return /* @__PURE__ */ e("td", { className: a.td, children: t });
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
_ as Table,
|
|
22
22
|
b as TableHead,
|
|
23
|
-
|
|
23
|
+
u as Td,
|
|
24
24
|
r as Th
|
|
25
25
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type TabProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
export declare function Tab({ children, selected, onClick, className, style, }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Tab.css';const i = "_tab_1m0oo_1", n = "_activeTab_1m0oo_15", t = {
|
|
3
|
+
tab: i,
|
|
4
|
+
activeTab: n
|
|
5
|
+
};
|
|
6
|
+
function m({
|
|
7
|
+
children: a,
|
|
8
|
+
selected: o,
|
|
9
|
+
onClick: b,
|
|
10
|
+
className: c,
|
|
11
|
+
style: e
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ s(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: t.tab + " " + (c || "") + " " + (o ? t.activeTab : ""),
|
|
17
|
+
onClick: b,
|
|
18
|
+
style: e,
|
|
19
|
+
children: a
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
m as Tab
|
|
25
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
type TabBarProps = {
|
|
2
3
|
value: string;
|
|
3
4
|
onChange: (value: string) => void;
|
|
4
|
-
|
|
5
|
+
children: React.ReactNode;
|
|
5
6
|
};
|
|
6
|
-
export declare function TabBar({ value, onChange,
|
|
7
|
+
export declare function TabBar({ value, onChange, children }: TabBarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
activeTab: n
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import '../../assets/TabBar.css';const l = "_tabBar_1oym3_1", m = {
|
|
4
|
+
tabBar: l
|
|
6
5
|
};
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: a
|
|
16
|
-
},
|
|
17
|
-
a
|
|
18
|
-
)) });
|
|
6
|
+
function c({ value: t, onChange: a, children: n }) {
|
|
7
|
+
const o = r.Children.map(n, (e) => r.isValidElement(e) ? r.cloneElement(e, {
|
|
8
|
+
selected: t === e.props.value,
|
|
9
|
+
onClick: () => {
|
|
10
|
+
a(e.props.value);
|
|
11
|
+
}
|
|
12
|
+
}) : e);
|
|
13
|
+
return /* @__PURE__ */ s("div", { className: m.tabBar, children: o });
|
|
19
14
|
}
|
|
20
15
|
export {
|
|
21
|
-
|
|
16
|
+
c as TabBar
|
|
22
17
|
};
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i } from "react";
|
|
3
|
+
import { Tab as s } from "./Tab.js";
|
|
4
|
+
import { TabBar as m } from "./TabBar.js";
|
|
5
|
+
import '../../assets/Tabs.css';const l = "_container_1q694_1", u = "_contentContainer_1q694_6", o = {
|
|
6
|
+
container: l,
|
|
7
|
+
contentContainer: u
|
|
7
8
|
};
|
|
8
|
-
function
|
|
9
|
-
const [
|
|
9
|
+
function f({ tabs: e }) {
|
|
10
|
+
const [r, c] = i(Object.keys(e)[0]);
|
|
10
11
|
return /* @__PURE__ */ a("div", { className: o.container, children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
12
|
+
/* @__PURE__ */ t(
|
|
13
|
+
m,
|
|
13
14
|
{
|
|
14
|
-
value:
|
|
15
|
-
onChange: (
|
|
16
|
-
|
|
15
|
+
value: r,
|
|
16
|
+
onChange: (n) => {
|
|
17
|
+
c(n);
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
+
children: Object.keys(e).map((n) => /* @__PURE__ */ t(
|
|
20
|
+
s,
|
|
21
|
+
{
|
|
22
|
+
value: n,
|
|
23
|
+
children: n
|
|
24
|
+
},
|
|
25
|
+
n
|
|
26
|
+
))
|
|
19
27
|
}
|
|
20
28
|
),
|
|
21
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ t("div", { className: o.contentContainer, children: e[r] })
|
|
22
30
|
] });
|
|
23
31
|
}
|
|
24
32
|
export {
|
|
25
|
-
|
|
33
|
+
f as Tabs
|
|
26
34
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import '../../assets/Tooltip.css';const
|
|
4
|
-
container:
|
|
5
|
-
tooltipContainer:
|
|
6
|
-
tooltip:
|
|
3
|
+
import '../../assets/Tooltip.css';const m = "_container_147qb_1", f = "_tooltipContainer_147qb_7", b = "_tooltip_147qb_7", t = {
|
|
4
|
+
container: m,
|
|
5
|
+
tooltipContainer: f,
|
|
6
|
+
tooltip: b
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function C({ content: s, children: l }) {
|
|
9
9
|
const [r, o] = i.useState(!1), [a, c] = i.useState(
|
|
10
10
|
{}
|
|
11
11
|
), p = (d) => {
|
|
@@ -17,7 +17,7 @@ function y({ content: s, children: l }) {
|
|
|
17
17
|
}, u = () => {
|
|
18
18
|
o(!1);
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ _(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
className: t.container,
|
|
@@ -38,5 +38,5 @@ function y({ content: s, children: l }) {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
C as Tooltip
|
|
42
42
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
declare const _default: "./main.css";
|
|
2
|
+
export default _default;
|
|
1
3
|
export { Button } from './components/Button/Button.tsx';
|
|
2
4
|
export { IconButton } from './components/Button/IconButton/IconButton.tsx';
|
|
3
5
|
export { ToggleButton } from './components/Button/ToggleButton/ToggleButton.tsx';
|
|
@@ -13,6 +15,7 @@ export { RadioGroup } from './components/Input/Radio/RadioGroup.tsx';
|
|
|
13
15
|
export { Select } from './components/Input/Select/Select.tsx';
|
|
14
16
|
export { Snackbar } from './components/Snackbar/Snackbar.tsx';
|
|
15
17
|
export { Table, TableHead, Td, Th } from './components/Table/Table.tsx';
|
|
18
|
+
export { Tab } from './components/Tabs/Tab.tsx';
|
|
16
19
|
export { TabBar } from './components/Tabs/TabBar.tsx';
|
|
17
20
|
export { Tabs } from './components/Tabs/Tabs.tsx';
|
|
18
21
|
export { Tooltip } from './components/Tooltip/Tooltip.tsx';
|
package/dist/main.js
CHANGED
|
@@ -1,44 +1,48 @@
|
|
|
1
|
-
import { Button as
|
|
2
|
-
import { IconButton as
|
|
3
|
-
import { ToggleButton as
|
|
4
|
-
import { ToggleButtonGroup as
|
|
5
|
-
import { Dialog as l, DialogActions as
|
|
6
|
-
import { Divider as
|
|
7
|
-
import { Input as
|
|
1
|
+
import { Button as e } from "./components/Button/Button.js";
|
|
2
|
+
import { IconButton as x } from "./components/Button/IconButton/IconButton.js";
|
|
3
|
+
import { ToggleButton as a } from "./components/Button/ToggleButton/ToggleButton.js";
|
|
4
|
+
import { ToggleButtonGroup as n } from "./components/Button/ToggleButton/ToggleButtonGroup.js";
|
|
5
|
+
import { Dialog as l, DialogActions as T, DialogContent as u, DialogTitle as g } from "./components/Dialog/Dialog.js";
|
|
6
|
+
import { Divider as c } from "./components/Divider/Divider.js";
|
|
7
|
+
import { Input as s } from "./components/Input/Input.js";
|
|
8
8
|
import { TextArea as D } from "./components/Input/TextArea.js";
|
|
9
9
|
import { Checkbox as h } from "./components/Input/Checkbox/Checkbox.js";
|
|
10
|
-
import { Counter as
|
|
11
|
-
import { Radio as
|
|
12
|
-
import { RadioGroup as
|
|
13
|
-
import { Select as
|
|
14
|
-
import { Snackbar as
|
|
15
|
-
import { Table as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
|
|
10
|
+
import { Counter as A } from "./components/Input/Counter/Counter.js";
|
|
11
|
+
import { Radio as I } from "./components/Input/Radio/Radio.js";
|
|
12
|
+
import { RadioGroup as S } from "./components/Input/Radio/RadioGroup.js";
|
|
13
|
+
import { Select as H } from "./components/Input/Select/Select.js";
|
|
14
|
+
import { Snackbar as q } from "./components/Snackbar/Snackbar.js";
|
|
15
|
+
import { Table as y, TableHead as z, Td as E, Th as F } from "./components/Table/Table.js";
|
|
16
|
+
import { Tab as K } from "./components/Tabs/Tab.js";
|
|
17
|
+
import { TabBar as M } from "./components/Tabs/TabBar.js";
|
|
18
|
+
import { Tabs as O } from "./components/Tabs/Tabs.js";
|
|
19
|
+
import { Tooltip as Q } from "./components/Tooltip/Tooltip.js";
|
|
20
|
+
import './assets/main.css';const o = "./main.css";
|
|
21
|
+
export {
|
|
22
|
+
e as Button,
|
|
21
23
|
h as Checkbox,
|
|
22
|
-
|
|
24
|
+
A as Counter,
|
|
23
25
|
l as Dialog,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
T as DialogActions,
|
|
27
|
+
u as DialogContent,
|
|
26
28
|
g as DialogTitle,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
y as
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
c as Divider,
|
|
30
|
+
x as IconButton,
|
|
31
|
+
s as Input,
|
|
32
|
+
I as Radio,
|
|
33
|
+
S as RadioGroup,
|
|
34
|
+
H as Select,
|
|
35
|
+
q as Snackbar,
|
|
36
|
+
K as Tab,
|
|
37
|
+
M as TabBar,
|
|
38
|
+
y as Table,
|
|
39
|
+
z as TableHead,
|
|
40
|
+
O as Tabs,
|
|
41
|
+
E as Td,
|
|
39
42
|
D as TextArea,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
F as Th,
|
|
44
|
+
a as ToggleButton,
|
|
45
|
+
n as ToggleButtonGroup,
|
|
46
|
+
Q as Tooltip,
|
|
47
|
+
o as default
|
|
44
48
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './assets/Input.css';const e = "_container_82euj_1", t = "_outline_82euj_6", r = "_errorOutline_82euj_18", n = "_input_82euj_22", _ = "_inputDisabled_82euj_38", l = "_helperText_82euj_42", o = "_helperTextError_82euj_49", u = "_label_82euj_53", i = {
|
|
2
|
-
container: e,
|
|
3
|
-
outline: t,
|
|
4
|
-
errorOutline: r,
|
|
5
|
-
input: n,
|
|
6
|
-
inputDisabled: _,
|
|
7
|
-
helperText: l,
|
|
8
|
-
helperTextError: o,
|
|
9
|
-
label: u
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
i as s
|
|
13
|
-
};
|