@liujip0/components 0.1.0 → 0.2.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.
Files changed (47) hide show
  1. package/README.md +35 -0
  2. package/dist/Input.module-C7oR_KDs.js +13 -0
  3. package/dist/assets/Backdrop.css +1 -0
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/Counter.css +1 -1
  6. package/dist/assets/Dialog.css +1 -1
  7. package/dist/assets/Divider.css +1 -1
  8. package/dist/assets/IconButton.css +1 -1
  9. package/dist/assets/Input.css +1 -1
  10. package/dist/assets/Radio.css +1 -1
  11. package/dist/assets/RadioGroup.css +1 -1
  12. package/dist/assets/Select.css +1 -1
  13. package/dist/assets/Snackbar.css +1 -1
  14. package/dist/assets/Tab.css +1 -0
  15. package/dist/assets/TabBar.css +1 -1
  16. package/dist/assets/Table.css +1 -1
  17. package/dist/assets/ToggleButton.css +1 -1
  18. package/dist/assets/ToggleButtonGroup.css +1 -1
  19. package/dist/assets/Tooltip.css +1 -1
  20. package/dist/assets/main.css +1 -1
  21. package/dist/components/Backdrop/Backdrop.d.ts +6 -0
  22. package/dist/components/Backdrop/Backdrop.js +18 -0
  23. package/dist/components/Button/Button.js +3 -3
  24. package/dist/components/Button/IconButton/IconButton.js +7 -7
  25. package/dist/components/Button/ToggleButton/ToggleButton.js +16 -16
  26. package/dist/components/Button/ToggleButton/ToggleButtonGroup.js +15 -15
  27. package/dist/components/Dialog/Dialog.js +20 -20
  28. package/dist/components/Divider/Divider.js +5 -5
  29. package/dist/components/Input/Checkbox/Checkbox.js +3 -3
  30. package/dist/components/Input/Counter/Counter.js +6 -6
  31. package/dist/components/Input/Input.js +1 -1
  32. package/dist/components/Input/Radio/Radio.js +14 -14
  33. package/dist/components/Input/Radio/RadioGroup.js +14 -14
  34. package/dist/components/Input/Select/Select.js +26 -26
  35. package/dist/components/Input/TextArea.js +1 -1
  36. package/dist/components/Snackbar/Snackbar.js +10 -10
  37. package/dist/components/Table/Table.js +5 -5
  38. package/dist/components/Tabs/Tab.d.ts +9 -0
  39. package/dist/components/Tabs/Tab.js +25 -0
  40. package/dist/components/Tabs/TabBar.d.ts +3 -2
  41. package/dist/components/Tabs/TabBar.js +13 -18
  42. package/dist/components/Tabs/Tabs.js +24 -16
  43. package/dist/components/Tooltip/Tooltip.js +8 -8
  44. package/dist/main.d.ts +1 -0
  45. package/dist/main.js +12 -10
  46. package/package.json +1 -1
  47. 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}
@@ -1 +1 @@
1
- ._button_7qhy4_1{min-width:64px;padding:6px 16px;border:none;border-radius:var(--border-radius);display:flex;align-items:center;justify-content:center;gap:4px;font-size:1.25rem;font-family:var(--text-font-family);text-transform:uppercase;font-weight:500;line-height:1.75;letter-spacing:.02857em;cursor:pointer}._button_7qhy4_1:hover{filter:var(--hover-dim)}
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))}
@@ -1 +1 @@
1
- ._container_whykh_1{display:flex;align-items:flex-end}._button_whykh_6{height:var(--input-height);width:var(--input-height);min-width:0;min-height:0;background-color:var(--color-primary);color:var(--color-primary-contrastText);border:none}._buttonDisabled_whykh_16{background-color:color-mix(in srgb,var(--color-primary) 50%,#888);cursor:default}._buttonDisabled_whykh_16:hover{filter:none}._input_whykh_24{flex: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}
@@ -1 +1 @@
1
- ._screenDarken_17c5i_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)}._dialog_17c5i_16{max-width:80vw;max-height:80vh;display:flex;flex-direction:column;padding:24px;background-color:var(--color-paper-background);border-radius:var(--border-radius);border:var(--button-border-width) solid var(--color-primary)}._dialogTitle_17c5i_28{margin-bottom:16px;font-family:var(--text-font-family);font-size:var(--text-h2-size)}._dialogContent_17c5i_35{flex:1;overflow-y:auto}._dialogActions_17c5i_40{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
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}
@@ -1 +1 @@
1
- ._divider_nvu4k_1{border-width:.5px;border-style:solid;border-color:var(--color-primary);margin:8px}._horizontalDivider_nvu4k_8{width:100%;height:0}._verticalDivider_nvu4k_13{height:100%;width:0}
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
- ._button_rs8jj_1{display:flex;align-items:center;justify-content:center;padding:6px;border:none;color:var(--color-primary);background-color:var(--color-background);cursor:pointer;clip-path:circle(50%)}._button_rs8jj_1:hover{filter:var(--hover-dim)}
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))}
@@ -1 +1 @@
1
- ._container_82euj_1{display:flex;flex-direction:column}._outline_82euj_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:var(--button-border-width);border-style:solid;border-color:var(--color-primary);border-radius:var(--border-radius)}._errorOutline_82euj_18{border-color:var(--color-error)}._input_82euj_22{min-width:1em;flex:1;padding:6px;width:100%;height:100%;border:none;background-color:transparent;color:var(--color-background-contrastText);font-family:var(--text-font-family);font-size:var(--text-body-size)}._input_82euj_22:focus{outline:none}._inputDisabled_82euj_38{color:color-mix(in srgb,var(--color-background-contrastText) 50%,#888)}._helperText_82euj_42{margin:4px 8px;font-family:var(--text-font-family);font-size:.75em;color:var(--color-primary)}._helperTextError_82euj_49{color:var(--color-error)}._label_82euj_53{font-family:var(--text-font-family);font-size:var(--text-label-size)}
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))}
@@ -1 +1 @@
1
- ._container_bc6cu_1{display:flex;align-items:center;gap:8px}._label_bc6cu_7{font-family:var(--text-font-family);font-size:var(--text-body-size);cursor:pointer}
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
- ._container_qo0l5_1{display:flex;flex-direction:column}._outline_qo0l5_6{display:flex;flex-direction:column;gap:4px}._label_qo0l5_12{font-family:var(--text-font-family);font-size:var(--text-label-size)}._helperText_qo0l5_17{margin:4px 8px;font-family:var(--text-font-family);font-size:.75em;color:var(--color-primary)}._helperTextError_qo0l5_24{color:var(--color-error)}
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))}
@@ -1 +1 @@
1
- ._container_6qy7m_1{display:flex;flex-direction:column}._outline_6qy7m_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:1px;border-style:solid;border-color:var(--color-primary);border-radius:var(--border-radius)}._errorOutline_6qy7m_18{border-color:var(--color-error)}._select_6qy7m_22{min-width:1em;flex:1;padding:6px;border:none;background-color:transparent;color:var(--color-background-contrastText);font-family:var(--text-font-family);font-size:var(--text-body-size)}._select_6qy7m_22:focus{outline:none}._selectDisabled_6qy7m_36{color:color-mix(in srgb,var(--color-background-contrastText) 50%,#888)}._helperText_6qy7m_40{margin:4px 8px;font-family:var(--text-font-family);font-size:.75em;color:var(--color-primary)}._helperTextError_6qy7m_47{color:var(--color-error)}._label_6qy7m_51{font-family:var(--text-font-family);font-size:var(--text-label-size)}
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))}
@@ -1 +1 @@
1
- ._snackbar_b5ton_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);background-color:var(--color-paper-background);border:var(--button-border-width) solid var(--color-primary);border-radius:var(--border-radius)}._message_b5ton_17{font-family:var(--text-font-family);font-size:var(--text-label-size);color:var(--color-paper-background-contrastText)}
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))}
@@ -1 +1 @@
1
- ._tabBar_1gpqs_1{display:flex;width:100%}._tab_1gpqs_1{padding:.5em;cursor:pointer;color:var(--color-primary);font-family:var(--text-font-family);font-size:var(--text-body-size);text-transform:uppercase;font-weight:500;background-color:var(--color-background)}._tab_1gpqs_1:hover{filter:var(--hover-dim)}._activeTab_1gpqs_20{font-weight:700;border-bottom:4px solid var(--color-primary)}
1
+ ._tabBar_1oym3_1{display:flex;width:100%}
@@ -1 +1 @@
1
- ._table_1sfmn_1{--table-cell-padding: 8px;--table-border-width: 3px;--table-cell-border-width: 2px;border-collapse:separate;border:var(--table-border-width) solid var(--color-primary);border-spacing:0}._tableHead_1sfmn_11{position:sticky;top:var(--table-cell-border-width);z-index:1;background-color:var(--color-background);outline:var(--table-cell-border-width) solid var(--color-primary)}._th_1sfmn_20{padding:var(--table-cell-padding);font-family:var(--text-font-family);font-size:var(--text-body-size);font-weight:700;border-style:solid;border-color:var(--color-primary);border-width:var(--table-border-width) var(--table-cell-border-width)}._td_1sfmn_31{padding:var(--table-cell-padding);font-family:var(--text-font-family);font-size:var(--text-body-size);border:var(--table-cell-border-width) solid var(--color-primary)}
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
- ._buttonFalse_1ssvl_1{color:var(--color-primary);border:var(--button-border-width) solid var(--color-primary);background-color:var(--color-background)}._buttonTrue_1ssvl_7{color:var(--color-primary-contrastText);border:none;background-color:var(--color-primary)}
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
- ._container_12l5n_1{display:flex;flex-direction:column}._outline_12l5n_6{display:flex;gap:4px}._label_12l5n_11{font-family:var(--text-font-family);font-size:var(--text-label-size)}._helperText_12l5n_16{margin:4px 8px;font-family:var(--text-font-family);font-size:.75em;color:var(--color-primary)}._helperTextError_12l5n_23{color:var(--color-error)}
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)}
@@ -1 +1 @@
1
- ._container_1rv9k_1{display:inline;position:static}._tooltipContainer_1rv9k_7{position:fixed;transform:translate(-50%)}._tooltip_1rv9k_7{position:absolute;padding:4px;left:-50%;background-color:#000;opacity:.8;z-index:var(--z-index-tooltip);border-radius:var(--border-radius);font-size:var(--text-label-size)}._tooltip_1rv9k_7:after{content:"";position:absolute}
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}
@@ -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,6 @@
1
+ type BackdropProps = {
2
+ open: boolean;
3
+ onClose?: () => void;
4
+ };
5
+ export declare function Backdrop({ open, onClose }: BackdropProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -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 b = "_button_7qhy4_1", r = {
3
- button: b
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: r.button + " " + (o || ""),
10
+ className: b.button + " " + (o || ""),
11
11
  ...u,
12
12
  children: t
13
13
  }
@@ -1,17 +1,17 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import '../../../assets/IconButton.css';const u = "_button_rs8jj_1", r = {
3
- button: u
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 c({ children: t, className: o, ...n }) {
6
- return /* @__PURE__ */ s(
5
+ function e({ children: t, className: o, ...n }) {
6
+ return /* @__PURE__ */ u(
7
7
  "button",
8
8
  {
9
- className: r.button + " " + (o || ""),
9
+ className: b.button + " " + (o || ""),
10
10
  ...n,
11
11
  children: t
12
12
  }
13
13
  );
14
14
  }
15
15
  export {
16
- c as IconButton
16
+ e as IconButton
17
17
  };
@@ -1,32 +1,32 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { Button as b } from "../Button.js";
3
- import '../../../assets/ToggleButton.css';const C = "_buttonFalse_1ssvl_1", _ = "_buttonTrue_1ssvl_7", e = {
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 m({
7
+ function g({
8
8
  value: n,
9
9
  children: o,
10
- className: l,
11
- classNameTrue: u,
12
- classNameFalse: i,
13
- disabled: s,
14
- ref: c,
10
+ className: u,
11
+ classNameTrue: i,
12
+ classNameFalse: l,
13
+ disabled: c,
14
+ ref: a,
15
15
  ...t
16
16
  }) {
17
- return /* @__PURE__ */ a(
18
- b,
17
+ return /* @__PURE__ */ b(
18
+ s,
19
19
  {
20
- ref: c,
21
- className: (("selected" in t ? t.selected : n) ? e.buttonTrue + " " + (u || "") : e.buttonFalse + " " + (i || "")) + " " + (l || ""),
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: s,
25
+ disabled: c,
26
26
  children: o
27
27
  }
28
28
  );
29
29
  }
30
30
  export {
31
- m as ToggleButton
31
+ g as ToggleButton
32
32
  };
@@ -1,14 +1,14 @@
1
- import { jsxs as u, jsx as l } from "react/jsx-runtime";
2
- import n from "react";
3
- import '../../../assets/ToggleButtonGroup.css';const m = "_container_12l5n_1", x = "_outline_12l5n_6", h = "_label_12l5n_11", T = "_helperText_12l5n_16", E = "_helperTextError_12l5n_23", r = {
4
- container: m,
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: E
8
+ helperTextError: g
9
9
  };
10
- function v({
11
- value: t,
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 _ = n.Children.map(c, (e) => n.isValidElement(e) ? n.cloneElement(e, {
20
- selected: t === e.props.value,
19
+ const m = t.Children.map(c, (e) => t.isValidElement(e) ? t.cloneElement(e, {
20
+ selected: l === e.props.value,
21
21
  onClick: () => {
22
- t === e.props.value ? o("") : o(e.props.value);
22
+ l === e.props.value ? o("") : o(e.props.value);
23
23
  }
24
24
  }) : e);
25
- return /* @__PURE__ */ u("div", { className: r.container + " " + (a || ""), children: [
26
- s && /* @__PURE__ */ l("p", { className: r.label, children: s }),
27
- /* @__PURE__ */ l("div", { className: r.outline, children: _ }),
28
- p && /* @__PURE__ */ l(
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
- v as ToggleButtonGroup
38
+ f as ToggleButtonGroup
39
39
  };
@@ -1,23 +1,23 @@
1
- import { jsx as o, Fragment as l } from "react/jsx-runtime";
2
- import '../../assets/Dialog.css';const c = "_screenDarken_17c5i_1", s = "_dialog_17c5i_16", g = "_dialogTitle_17c5i_28", r = "_dialogContent_17c5i_35", d = "_dialogActions_17c5i_40", n = {
3
- screenDarken: c,
4
- dialog: s,
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 m({ open: i, onClose: t, children: a }) {
10
- return i ? /* @__PURE__ */ o(
9
+ function f({ open: o, onClose: t, children: a }) {
10
+ return o ? /* @__PURE__ */ n(
11
11
  "div",
12
12
  {
13
- className: n.screenDarken,
13
+ className: i.screenDarken,
14
14
  onClick: () => {
15
15
  t && t();
16
16
  },
17
- children: /* @__PURE__ */ o(
17
+ children: /* @__PURE__ */ n(
18
18
  "div",
19
19
  {
20
- className: n.dialog,
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__ */ o(l, {});
28
+ ) : /* @__PURE__ */ n(l, {});
29
29
  }
30
- function u({ children: i }) {
31
- return /* @__PURE__ */ o("h2", { className: n.dialogTitle, children: i });
30
+ function m({ children: o }) {
31
+ return /* @__PURE__ */ n("h2", { className: i.dialogTitle, children: o });
32
32
  }
33
- function D({ children: i }) {
34
- return /* @__PURE__ */ o("div", { className: n.dialogContent, children: i });
33
+ function u({ children: o }) {
34
+ return /* @__PURE__ */ n("div", { className: i.dialogContent, children: o });
35
35
  }
36
- function f({ children: i }) {
37
- return /* @__PURE__ */ o("div", { className: n.dialogActions, children: i });
36
+ function D({ children: o }) {
37
+ return /* @__PURE__ */ n("div", { className: i.dialogActions, children: o });
38
38
  }
39
39
  export {
40
- m as Dialog,
41
- f as DialogActions,
42
- D as DialogContent,
43
- u as DialogTitle
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 v = "_divider_nvu4k_1", d = "_horizontalDivider_nvu4k_8", t = "_verticalDivider_nvu4k_13", i = {
3
- divider: v,
4
- horizontalDivider: d,
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 n({ orientation: r }) {
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
- n as Divider
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 b = "_container_bc6cu_1", h = "_label_bc6cu_7", r = {
4
- container: b,
5
- label: h
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 = "_container_whykh_1", h = "_button_whykh_6", p = "_buttonDisabled_whykh_16", _ = "_input_whykh_24", t = {
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: h,
7
- buttonDisabled: p,
8
- input: _
6
+ button: p,
7
+ buttonDisabled: _,
8
+ input: d
9
9
  };
10
- function k({
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
- k as Counter
56
+ h as Counter
57
57
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { s as e } from "../../Input.module-D9zadJal.js";
2
+ import { s as e } from "../../Input.module-C7oR_KDs.js";
3
3
  function j({
4
4
  value: m,
5
5
  onChange: t,
@@ -1,15 +1,15 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
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 = "_container_bc6cu_1", u = "_label_bc6cu_7", i = {
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 h({
8
- selected: n,
9
- onChange: c,
7
+ function b({
8
+ selected: r,
9
+ onChange: e,
10
10
  name: o,
11
11
  id: t,
12
- label: r,
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
- c && c(!n);
21
+ e && e(!r);
22
22
  },
23
23
  children: [
24
- n ? /* @__PURE__ */ e("span", { className: "material-symbols-outlined", children: "radio_button_checked" }) : /* @__PURE__ */ e("span", { className: "material-symbols-outlined", children: "radio_button_unchecked" }),
25
- /* @__PURE__ */ e(
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: n,
31
+ checked: r,
32
32
  onChange: (s) => {
33
- c && c(s.currentTarget.checked);
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
- r && /* @__PURE__ */ e(
41
+ c && /* @__PURE__ */ n(
42
42
  "label",
43
43
  {
44
44
  htmlFor: t,
45
45
  className: i.label,
46
- children: r
46
+ children: c
47
47
  }
48
48
  )
49
49
  ] });
50
50
  }
51
51
  export {
52
- h as Radio
52
+ b as Radio
53
53
  };
@@ -1,23 +1,23 @@
1
- import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
- import o from "react";
3
- import '../../../assets/RadioGroup.css';const x = "_container_qo0l5_1", d = "_outline_qo0l5_6", T = "_label_qo0l5_12", E = "_helperText_qo0l5_17", f = "_helperTextError_qo0l5_24", r = {
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: E,
8
- helperTextError: f
7
+ helperText: y,
8
+ helperTextError: E
9
9
  };
10
- function N({
10
+ function k({
11
11
  children: a,
12
12
  name: i,
13
- label: t,
13
+ label: n,
14
14
  error: c,
15
- helperText: n,
15
+ helperText: o,
16
16
  className: p,
17
17
  value: _,
18
18
  onChange: s
19
19
  }) {
20
- const m = o.Children.map(a, (e) => o.isValidElement(e) ? o.cloneElement(e, {
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
- t && /* @__PURE__ */ l("p", { className: r.label, children: t }),
29
- /* @__PURE__ */ l("div", { className: r.outline, children: m }),
30
- n && /* @__PURE__ */ l(
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: n
34
+ children: o
35
35
  }
36
36
  )
37
37
  ] });
38
38
  }
39
39
  export {
40
- N as RadioGroup
40
+ k as RadioGroup
41
41
  };
@@ -1,27 +1,27 @@
1
- import { jsxs as h, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as l } from "react/jsx-runtime";
2
2
  import "react";
3
- import '../../../assets/Select.css';const p = "_container_6qy7m_1", u = "_outline_6qy7m_6", x = "_errorOutline_6qy7m_18", y = "_select_6qy7m_22", q = "_selectDisabled_6qy7m_36", b = "_helperText_6qy7m_40", d = "_helperTextError_6qy7m_47", T = "_label_6qy7m_51", e = {
4
- container: p,
5
- outline: u,
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: y,
8
- selectDisabled: q,
9
- helperText: b,
10
- helperTextError: d,
11
- label: T
7
+ select: m,
8
+ selectDisabled: b,
9
+ helperText: d,
10
+ helperTextError: T,
11
+ label: N
12
12
  };
13
- function E({
13
+ function O({
14
14
  id: t,
15
- value: i,
15
+ value: o,
16
16
  children: _,
17
17
  className: a,
18
18
  label: r,
19
- onChange: s,
20
- disabled: c,
21
- helperText: n,
22
- error: o
19
+ onChange: c,
20
+ disabled: s,
21
+ helperText: i,
22
+ error: n
23
23
  }) {
24
- return /* @__PURE__ */ h("div", { className: e.container + " " + (a || ""), children: [
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 + " " + (o ? e.errorOutline : ""),
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 + " " + (c ? e.selectDisabled : ""),
42
- value: i,
43
- onChange: (m) => {
44
- s && s(m.target.value);
41
+ className: e.select + " " + (s ? e.selectDisabled : ""),
42
+ value: o,
43
+ onChange: (h) => {
44
+ c && c(h.target.value);
45
45
  },
46
- disabled: c,
46
+ disabled: s,
47
47
  children: _
48
48
  }
49
49
  )
50
50
  }
51
51
  ),
52
- n && /* @__PURE__ */ l(
52
+ i && /* @__PURE__ */ l(
53
53
  "p",
54
54
  {
55
- className: e.helperText + " " + (o ? e.helperTextError : ""),
56
- children: n
55
+ className: e.helperText + " " + (n ? e.helperTextError : ""),
56
+ children: i
57
57
  }
58
58
  )
59
59
  ] });
60
60
  }
61
61
  export {
62
- E as Select
62
+ O as Select
63
63
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
- import { s as e } from "../../Input.module-D9zadJal.js";
2
+ import { s as e } from "../../Input.module-C7oR_KDs.js";
3
3
  function f({
4
4
  value: c,
5
5
  onChange: a,
@@ -1,15 +1,15 @@
1
- import { jsxs as i, jsx as c, Fragment as b } from "react/jsx-runtime";
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 _ = "_snackbar_b5ton_1", g = "_message_b5ton_17", a = {
3
+ import '../../assets/Snackbar.css';const _ = "_snackbar_tl00m_1", b = "_message_tl00m_18", a = {
4
4
  snackbar: _,
5
- message: g
5
+ message: b
6
6
  };
7
- function o({
7
+ function d({
8
8
  open: s,
9
9
  autoHideDuration: e,
10
10
  onClose: r,
11
- message: t,
12
- action: m
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: t }),
23
- /* @__PURE__ */ c("div", { children: m })
24
- ] }) : /* @__PURE__ */ c(b, {});
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
- o as Snackbar
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 s = "_table_1sfmn_1", l = "_tableHead_1sfmn_11", c = "_th_1sfmn_20", d = "_td_1sfmn_31", a = {
3
- table: s,
4
- tableHead: l,
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 m({ children: t }) {
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
- m as Td,
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
- tabs: string[];
5
+ children: React.ReactNode;
5
6
  };
6
- export declare function TabBar({ value, onChange, tabs }: TabBarProps): import("react/jsx-runtime").JSX.Element;
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 c } from "react/jsx-runtime";
2
- import '../../assets/TabBar.css';const i = "_tabBar_1gpqs_1", b = "_tab_1gpqs_1", n = "_activeTab_1gpqs_20", t = {
3
- tabBar: i,
4
- tab: b,
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 _({ value: s, onChange: r, tabs: e }) {
8
- return /* @__PURE__ */ c("div", { className: t.tabBar, children: e.map((a) => /* @__PURE__ */ c(
9
- "div",
10
- {
11
- className: t.tab + " " + (a === s ? t.activeTab : ""),
12
- onClick: () => {
13
- r(a);
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
- _ as TabBar
16
+ c as TabBar
22
17
  };
@@ -1,26 +1,34 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- import { TabBar as i } from "./TabBar.js";
4
- import '../../assets/Tabs.css';const m = "_container_1q694_1", l = "_contentContainer_1q694_6", o = {
5
- container: m,
6
- contentContainer: l
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 b({ tabs: n }) {
9
- const [t, r] = s(Object.keys(n)[0]);
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__ */ e(
12
- i,
12
+ /* @__PURE__ */ t(
13
+ m,
13
14
  {
14
- value: t,
15
- onChange: (c) => {
16
- r(c);
15
+ value: r,
16
+ onChange: (n) => {
17
+ c(n);
17
18
  },
18
- tabs: Object.keys(n)
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__ */ e("div", { className: o.contentContainer, children: n[t] })
29
+ /* @__PURE__ */ t("div", { className: o.contentContainer, children: e[r] })
22
30
  ] });
23
31
  }
24
32
  export {
25
- b as Tabs
33
+ f as Tabs
26
34
  };
@@ -1,11 +1,11 @@
1
- import { jsxs as v, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as n } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import '../../assets/Tooltip.css';const _ = "_container_1rv9k_1", m = "_tooltipContainer_1rv9k_7", f = "_tooltip_1rv9k_7", t = {
4
- container: _,
5
- tooltipContainer: m,
6
- tooltip: f
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 y({ content: s, children: l }) {
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__ */ v(
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
- y as Tooltip
41
+ C as Tooltip
42
42
  };
package/dist/main.d.ts CHANGED
@@ -13,6 +13,7 @@ export { RadioGroup } from './components/Input/Radio/RadioGroup.tsx';
13
13
  export { Select } from './components/Input/Select/Select.tsx';
14
14
  export { Snackbar } from './components/Snackbar/Snackbar.tsx';
15
15
  export { Table, TableHead, Td, Th } from './components/Table/Table.tsx';
16
+ export { Tab } from './components/Tabs/Tab.tsx';
16
17
  export { TabBar } from './components/Tabs/TabBar.tsx';
17
18
  export { Tabs } from './components/Tabs/Tabs.tsx';
18
19
  export { Tooltip } from './components/Tooltip/Tooltip.tsx';
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@ import { Button as t } from "./components/Button/Button.js";
2
2
  import { IconButton as p } from "./components/Button/IconButton/IconButton.js";
3
3
  import { ToggleButton as f } from "./components/Button/ToggleButton/ToggleButton.js";
4
4
  import { ToggleButtonGroup as a } from "./components/Button/ToggleButton/ToggleButtonGroup.js";
5
- import { Dialog as l, DialogActions as n, DialogContent as T, DialogTitle as g } from "./components/Dialog/Dialog.js";
5
+ import { Dialog as i, DialogActions as l, DialogContent as n, DialogTitle as g } from "./components/Dialog/Dialog.js";
6
6
  import { Divider as b } from "./components/Divider/Divider.js";
7
7
  import { Input as d } from "./components/Input/Input.js";
8
8
  import { TextArea as D } from "./components/Input/TextArea.js";
@@ -13,16 +13,17 @@ import { RadioGroup as R } from "./components/Input/Radio/RadioGroup.js";
13
13
  import { Select as v } from "./components/Input/Select/Select.js";
14
14
  import { Snackbar as j } from "./components/Snackbar/Snackbar.js";
15
15
  import { Table as w, TableHead as y, Td as z, Th as E } from "./components/Table/Table.js";
16
- import { TabBar as J } from "./components/Tabs/TabBar.js";
17
- import { Tabs as L } from "./components/Tabs/Tabs.js";
18
- import { Tooltip as N } from "./components/Tooltip/Tooltip.js";
16
+ import { Tab as J } from "./components/Tabs/Tab.js";
17
+ import { TabBar as L } from "./components/Tabs/TabBar.js";
18
+ import { Tabs as N } from "./components/Tabs/Tabs.js";
19
+ import { Tooltip as P } from "./components/Tooltip/Tooltip.js";
19
20
  import './assets/main.css';export {
20
21
  t as Button,
21
22
  h as Checkbox,
22
23
  s as Counter,
23
- l as Dialog,
24
- n as DialogActions,
25
- T as DialogContent,
24
+ i as Dialog,
25
+ l as DialogActions,
26
+ n as DialogContent,
26
27
  g as DialogTitle,
27
28
  b as Divider,
28
29
  p as IconButton,
@@ -31,14 +32,15 @@ import './assets/main.css';export {
31
32
  R as RadioGroup,
32
33
  v as Select,
33
34
  j as Snackbar,
34
- J as TabBar,
35
+ J as Tab,
36
+ L as TabBar,
35
37
  w as Table,
36
38
  y as TableHead,
37
- L as Tabs,
39
+ N as Tabs,
38
40
  z as Td,
39
41
  D as TextArea,
40
42
  E as Th,
41
43
  f as ToggleButton,
42
44
  a as ToggleButtonGroup,
43
- N as Tooltip
45
+ P as Tooltip
44
46
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liujip0/components",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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
- };