stargazer-ui 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Bar/Bar.type.d.ts +6 -0
- package/Bar/index.js +2 -0
- package/Bar/index.js.map +1 -0
- package/Bar/package.json +1 -0
- package/Button/Button.js +12 -0
- package/Button/Button.js.map +1 -0
- package/{types/components/Button → Button}/Button.types.d.ts +1 -2
- package/Button/index.d.ts +3 -0
- package/Button/index.js +7 -0
- package/Button/index.js.map +1 -0
- package/Button/package.json +1 -0
- package/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/ButtonGroup/ButtonGroup.js +10 -0
- package/ButtonGroup/ButtonGroup.js.map +1 -0
- package/ButtonGroup/ButtonGroup.types.d.ts +7 -0
- package/ButtonGroup/index.d.ts +3 -0
- package/ButtonGroup/index.js +7 -0
- package/ButtonGroup/index.js.map +1 -0
- package/ButtonGroup/package.json +1 -0
- package/Card/Card.js +41 -0
- package/Card/Card.js.map +1 -0
- package/{types/components/Card → Card}/Card.types.d.ts +3 -1
- package/Card/index.d.ts +3 -0
- package/Card/index.js +7 -0
- package/Card/index.js.map +1 -0
- package/Card/package.json +1 -0
- package/CloseButton/CloseButton.js +11 -0
- package/CloseButton/CloseButton.js.map +1 -0
- package/{types/components/CloseButton → CloseButton}/CloseButton.types.d.ts +1 -1
- package/CloseButton/index.d.ts +3 -0
- package/CloseButton/index.js +7 -0
- package/CloseButton/index.js.map +1 -0
- package/CloseButton/package.json +1 -0
- package/Dropdown/Dropdown.js +309 -0
- package/Dropdown/Dropdown.js.map +1 -0
- package/{types/components/Dropdown → Dropdown}/Dropdown.types.d.ts +3 -10
- package/Dropdown/index.d.ts +4 -0
- package/Dropdown/index.js +8 -0
- package/Dropdown/index.js.map +1 -0
- package/Dropdown/package.json +1 -0
- package/FileUploadButton/FileUploadButton.d.ts +4 -0
- package/FileUploadButton/FileUploadButton.js +21 -0
- package/FileUploadButton/FileUploadButton.js.map +1 -0
- package/FileUploadButton/FileUploadButton.types.d.ts +7 -0
- package/FileUploadButton/index.d.ts +3 -0
- package/FileUploadButton/index.js +7 -0
- package/FileUploadButton/index.js.map +1 -0
- package/FileUploadButton/package.json +1 -0
- package/FloatingLabel/FloatingLabel.js +17 -0
- package/FloatingLabel/FloatingLabel.js.map +1 -0
- package/{types/components/FloatingLabel → FloatingLabel}/FloatingLabel.types.d.ts +1 -1
- package/FloatingLabel/index.d.ts +3 -0
- package/FloatingLabel/index.js +7 -0
- package/FloatingLabel/index.js.map +1 -0
- package/FloatingLabel/package.json +1 -0
- package/Form/Form.d.ts +42 -0
- package/Form/Form.js +370 -0
- package/Form/Form.js.map +1 -0
- package/Form/Form.types.d.ts +135 -0
- package/Form/index.d.ts +4 -0
- package/Form/index.js +8 -0
- package/Form/index.js.map +1 -0
- package/Form/package.json +1 -0
- package/InputGroup/InputGroup.d.ts +7 -0
- package/InputGroup/InputGroup.js +31 -0
- package/InputGroup/InputGroup.js.map +1 -0
- package/InputGroup/InputGroup.types.d.ts +16 -0
- package/InputGroup/index.d.ts +4 -0
- package/InputGroup/index.js +7 -0
- package/InputGroup/index.js.map +1 -0
- package/InputGroup/package.json +1 -0
- package/List/List.d.ts +14 -0
- package/List/List.js +76 -0
- package/List/List.js.map +1 -0
- package/List/List.types.d.ts +28 -0
- package/List/index.d.ts +3 -0
- package/List/index.js +7 -0
- package/List/index.js.map +1 -0
- package/List/package.json +1 -0
- package/{types/components/Modal → Modal}/Modal.d.ts +1 -1
- package/Modal/Modal.js +160 -0
- package/Modal/Modal.js.map +1 -0
- package/{types/components/Modal → Modal}/Modal.types.d.ts +3 -2
- package/Modal/index.d.ts +3 -0
- package/Modal/index.js +7 -0
- package/Modal/index.js.map +1 -0
- package/Modal/package.json +1 -0
- package/Nav/Nav.js +28 -0
- package/Nav/Nav.js.map +1 -0
- package/{types/components/Nav → Nav}/Nav.types.d.ts +1 -1
- package/Nav/index.d.ts +4 -0
- package/Nav/index.js +7 -0
- package/Nav/index.js.map +1 -0
- package/Nav/package.json +1 -0
- package/{types/components/NavBar → NavBar}/Navbar.d.ts +1 -2
- package/NavBar/Navbar.js +36 -0
- package/NavBar/Navbar.js.map +1 -0
- package/{types/components/NavBar → NavBar}/Navbar.types.d.ts +2 -1
- package/NavBar/index.d.ts +4 -0
- package/NavBar/index.js +8 -0
- package/NavBar/index.js.map +1 -0
- package/NavBar/package.json +1 -0
- package/{types/components/NavDropdown → NavDropdown}/NavDropdown.d.ts +2 -2
- package/NavDropdown/NavDropdown.js +77 -0
- package/NavDropdown/NavDropdown.js.map +1 -0
- package/NavDropdown/index.d.ts +3 -0
- package/NavDropdown/index.js +7 -0
- package/NavDropdown/index.js.map +1 -0
- package/NavDropdown/package.json +1 -0
- package/Overlay/Overlay.d.ts +4 -0
- package/Overlay/Overlay.js +236 -0
- package/Overlay/Overlay.js.map +1 -0
- package/Overlay/Overlay.types.d.ts +22 -0
- package/{src/Overlay/index.ts → Overlay/index.d.ts} +3 -3
- package/Overlay/index.js +7 -0
- package/Overlay/index.js.map +1 -0
- package/Overlay/package.json +1 -0
- package/Popout/Popout.js +110 -0
- package/Popout/Popout.js.map +1 -0
- package/{types/components/Popout → Popout}/Popout.types.d.ts +1 -1
- package/Popout/index.d.ts +3 -0
- package/Popout/index.js +7 -0
- package/Popout/index.js.map +1 -0
- package/Popout/package.json +1 -0
- package/Spinner/Spinner.js +12 -0
- package/Spinner/Spinner.js.map +1 -0
- package/Spinner/index.d.ts +3 -0
- package/Spinner/index.js +7 -0
- package/Spinner/index.js.map +1 -0
- package/Spinner/package.json +1 -0
- package/Table/Table.js +11 -0
- package/Table/Table.js.map +1 -0
- package/{types/components/Table → Table}/Table.types.d.ts +1 -1
- package/Table/index.d.ts +3 -0
- package/Table/index.js +7 -0
- package/Table/index.js.map +1 -0
- package/Table/package.json +1 -0
- package/Tabs/Tabs.js +168 -0
- package/Tabs/Tabs.js.map +1 -0
- package/{types/components/Tabs → Tabs}/Tabs.types.d.ts +12 -1
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.js +7 -0
- package/Tabs/index.js.map +1 -0
- package/Tabs/package.json +1 -0
- package/ToggleButton/ToggleButton.d.ts +4 -0
- package/ToggleButton/ToggleButton.js +17 -0
- package/ToggleButton/ToggleButton.js.map +1 -0
- package/ToggleButton/ToggleButton.types.d.ts +7 -0
- package/ToggleButton/index.d.ts +3 -0
- package/ToggleButton/index.js +7 -0
- package/ToggleButton/index.js.map +1 -0
- package/ToggleButton/package.json +1 -0
- package/{src/hooks/index.ts → hooks/index.d.ts} +6 -6
- package/hooks/index.js +7 -0
- package/hooks/index.js.map +1 -0
- package/hooks/package.json +1 -0
- package/hooks/useClassname.d.ts +2 -0
- package/hooks/useClassname.js +7 -0
- package/hooks/useClassname.js.map +1 -0
- package/hooks/useDraggable.d.ts +23 -0
- package/hooks/useDraggable.js +147 -0
- package/hooks/useDraggable.js.map +1 -0
- package/hooks/useKeepElementFocused.d.ts +2 -0
- package/hooks/useKeepElementFocused.js +37 -0
- package/hooks/useKeepElementFocused.js.map +1 -0
- package/hooks/useQueryParams.d.ts +2 -0
- package/hooks/useQueryParams.js +13 -0
- package/hooks/useQueryParams.js.map +1 -0
- package/hooks/useScreenSize.d.ts +5 -0
- package/hooks/useScreenSize.js +21 -0
- package/hooks/useScreenSize.js.map +1 -0
- package/index.d.ts +18 -0
- package/index.js +19 -0
- package/index.js.map +1 -0
- package/package.json +1 -79
- package/styles/stargazerui.css +6513 -0
- package/styles/stargazerui.css.map +1 -0
- package/{src/utils/BaseTypes.ts → utils/BaseTypes.d.ts} +24 -30
- package/utils/ContrastingColor.d.ts +1 -0
- package/utils/MergeClassnames.d.ts +2 -0
- package/utils/MergeClassnames.js +7 -0
- package/utils/MergeClassnames.js.map +1 -0
- package/utils/MergeRefs.d.ts +2 -0
- package/utils/MergeRefs.js +16 -0
- package/utils/MergeRefs.js.map +1 -0
- package/.babelrc.json +0 -10
- package/.eslintrc.cjs +0 -18
- package/.gitattributes +0 -2
- package/LICENSE +0 -21
- package/dev/index.html +0 -12
- package/dev/index.jsx +0 -49
- package/dev/index.scss +0 -59
- package/dev/pages/ButtonPage.jsx +0 -44
- package/dev/pages/CardPage.jsx +0 -81
- package/dev/pages/DropdownPage.jsx +0 -31
- package/dev/pages/FormPage.jsx +0 -130
- package/dev/pages/ListPage.jsx +0 -52
- package/dev/pages/ModalPage.jsx +0 -37
- package/dev/pages/OverlayPage.jsx +0 -35
- package/dev/pages/components.jsx +0 -19
- package/dev/stargazerui.css +0 -3762
- package/dev/stargazerui.css.map +0 -1
- package/dev/test.jsx +0 -88
- package/rollup.config.js +0 -140
- package/scripts/writePackageJsons.js +0 -42
- package/src/Bar/Bar.tsx +0 -0
- package/src/Bar/Bar.type.ts +0 -9
- package/src/Bar/index.ts +0 -0
- package/src/Button/Button.tsx +0 -17
- package/src/Button/Button.types.ts +0 -8
- package/src/Button/index.ts +0 -3
- package/src/ButtonGroup/ButtonGroup.tsx +0 -14
- package/src/ButtonGroup/ButtonGroup.types.ts +0 -8
- package/src/ButtonGroup/index.ts +0 -3
- package/src/Card/Card.tsx +0 -70
- package/src/Card/Card.types.ts +0 -33
- package/src/Card/index.ts +0 -3
- package/src/CloseButton/CloseButton.tsx +0 -14
- package/src/CloseButton/CloseButton.types.ts +0 -6
- package/src/CloseButton/index.ts +0 -3
- package/src/Dropdown/Dropdown.tsx +0 -358
- package/src/Dropdown/Dropdown.types.ts +0 -52
- package/src/Dropdown/index.ts +0 -4
- package/src/FileUploadButton/FileUploadButton.tsx +0 -27
- package/src/FileUploadButton/FileUploadButton.types.ts +0 -9
- package/src/FileUploadButton/index.ts +0 -3
- package/src/FloatingLabel/FloatingLabel.tsx +0 -22
- package/src/FloatingLabel/FloatingLabel.types.ts +0 -11
- package/src/FloatingLabel/index.ts +0 -3
- package/src/Form/Form.tsx +0 -445
- package/src/Form/Form.types.ts +0 -117
- package/src/Form/index.ts +0 -4
- package/src/InputGroup/InputGroup.tsx +0 -46
- package/src/InputGroup/InputGroup.types.ts +0 -21
- package/src/InputGroup/index.ts +0 -4
- package/src/List/List.tsx +0 -112
- package/src/List/List.types.ts +0 -34
- package/src/List/index.ts +0 -4
- package/src/Modal/Modal.tsx +0 -220
- package/src/Modal/Modal.types.ts +0 -49
- package/src/Modal/index.ts +0 -4
- package/src/Nav/Nav.tsx +0 -43
- package/src/Nav/Nav.types.ts +0 -21
- package/src/Nav/index.ts +0 -4
- package/src/NavBar/Navbar.tsx +0 -57
- package/src/NavBar/Navbar.types.ts +0 -24
- package/src/NavBar/index.ts +0 -4
- package/src/NavDropdown/NavDropdown.tsx +0 -93
- package/src/NavDropdown/NavDropdown.types.ts +0 -6
- package/src/NavDropdown/index.ts +0 -3
- package/src/Overlay/Overlay.tsx +0 -277
- package/src/Overlay/Overlay.types.ts +0 -20
- package/src/Popout/Popout.tsx +0 -155
- package/src/Popout/Popout.types.ts +0 -42
- package/src/Popout/index.ts +0 -3
- package/src/Spinner/Spinner.tsx +0 -15
- package/src/Spinner/Spinner.types.ts +0 -7
- package/src/Spinner/index.ts +0 -3
- package/src/Table/Table.tsx +0 -16
- package/src/Table/Table.types.ts +0 -9
- package/src/Table/index.ts +0 -3
- package/src/Tabs/Tabs.tsx +0 -215
- package/src/Tabs/Tabs.types.ts +0 -49
- package/src/Tabs/index.ts +0 -3
- package/src/ToggleButton/ToggleButton.tsx +0 -21
- package/src/ToggleButton/ToggleButton.types.ts +0 -8
- package/src/ToggleButton/index.ts +0 -3
- package/src/hooks/useClassname.ts +0 -5
- package/src/hooks/useDraggable.ts +0 -186
- package/src/hooks/useKeepElementFocused.ts +0 -37
- package/src/hooks/useScreenSize.ts +0 -24
- package/src/index.ts +0 -21
- package/src/styles/_Card.scss +0 -166
- package/src/styles/_CloseButton.scss +0 -51
- package/src/styles/_CustomButton.scss +0 -132
- package/src/styles/_Dropdown.scss +0 -120
- package/src/styles/_FloatingLabel.scss +0 -56
- package/src/styles/_Forms.scss +0 -7
- package/src/styles/_Grid.scss +0 -178
- package/src/styles/_InputGroup.scss +0 -71
- package/src/styles/_List.scss +0 -62
- package/src/styles/_Modal.scss +0 -234
- package/src/styles/_ModalOld.scss +0 -242
- package/src/styles/_Nav.scss +0 -36
- package/src/styles/_NavBar.scss +0 -116
- package/src/styles/_NavDropdown.scss +0 -34
- package/src/styles/_OffCanvas.scss +0 -260
- package/src/styles/_OverLay.scss +0 -56
- package/src/styles/_Popout.scss +0 -75
- package/src/styles/_Spinner.scss +0 -19
- package/src/styles/_Table.scss +0 -34
- package/src/styles/_Tabs.scss +0 -129
- package/src/styles/_colors.scss +0 -510
- package/src/styles/_components.scss +0 -40
- package/src/styles/_functions.scss +0 -134
- package/src/styles/_mixins.scss +0 -26
- package/src/styles/_reset.scss +0 -231
- package/src/styles/_utilities.scss +0 -2480
- package/src/styles/_variables.scss +0 -146
- package/src/styles/forms/_FormCheck.scss +0 -269
- package/src/styles/forms/_FormControl.scss +0 -102
- package/src/styles/forms/_FormGroup.scss +0 -21
- package/src/styles/forms/_FormLabel.scss +0 -3
- package/src/styles/forms/_FormSelect.scss +0 -164
- package/src/styles/forms/_FormSlider.scss +0 -116
- package/src/styles/forms/_FormText.scss +0 -6
- package/src/utils/ContrastingColor.ts +0 -25
- package/src/utils/FileImportExport.js +0 -50
- package/src/utils/MergeClassnames.ts +0 -5
- package/src/utils/MergeRefs.ts +0 -12
- package/src/vite-env.d.ts +0 -1
- package/tsconfig-build.json +0 -4
- package/tsconfig.json +0 -79
- package/tsconfig.node.json +0 -10
- package/types/BaseTypes.d.ts +0 -19
- package/types/components/Button/index.d.ts +0 -1
- package/types/components/Card/index.d.ts +0 -1
- package/types/components/CloseButton/index.d.ts +0 -1
- package/types/components/Dropdown/index.d.ts +0 -1
- package/types/components/FloatingLabel/index.d.ts +0 -1
- package/types/components/Form/Form.d.ts +0 -17
- package/types/components/Form/Form.types.d.ts +0 -50
- package/types/components/Form/index.d.ts +0 -1
- package/types/components/InputGroup/InputGroup.d.ts +0 -6
- package/types/components/InputGroup/InputGroup.types.d.ts +0 -10
- package/types/components/InputGroup/index.d.ts +0 -1
- package/types/components/Modal/index.d.ts +0 -1
- package/types/components/Nav/index.d.ts +0 -1
- package/types/components/NavBar/index.d.ts +0 -1
- package/types/components/NavDropdown/index.d.ts +0 -1
- package/types/components/Popout/index.d.ts +0 -1
- package/types/components/Spinner/index.d.ts +0 -1
- package/types/components/Table/index.d.ts +0 -1
- package/types/components/Tabs/index.d.ts +0 -1
- package/types/components/ToggleButton/ToggleButton.d.ts +0 -9
- package/types/components/ToggleButton/ToggleButton.types.d.ts +0 -0
- package/types/components/ToggleButton/index.d.ts +0 -1
- package/types/components/index.d.ts +0 -16
- package/types/index.d.ts +0 -1
- package/vite.config.js +0 -57
- package/vite.config.js.timestamp-1708777378490-e94428ceb2bf9.mjs +0 -42
- /package/{types/components/Button → Button}/Button.d.ts +0 -0
- /package/{types/components/Card → Card}/Card.d.ts +0 -0
- /package/{types/components/CloseButton → CloseButton}/CloseButton.d.ts +0 -0
- /package/{types/components/Dropdown → Dropdown}/Dropdown.d.ts +0 -0
- /package/{types/components/FloatingLabel → FloatingLabel}/FloatingLabel.d.ts +0 -0
- /package/{types/components/Nav → Nav}/Nav.d.ts +0 -0
- /package/{types/components/NavDropdown → NavDropdown}/NavDropdown.types.d.ts +0 -0
- /package/{types/components/Popout → Popout}/Popout.d.ts +0 -0
- /package/{types/components/Spinner → Spinner}/Spinner.d.ts +0 -0
- /package/{types/components/Spinner → Spinner}/Spinner.types.d.ts +0 -0
- /package/{types/components/Table → Table}/Table.d.ts +0 -0
- /package/{types/components/Tabs → Tabs}/Tabs.d.ts +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
@mixin slider-cap {
|
|
2
|
-
--cap-height: calc( 1 - 2*var(--padding-block-fraction));
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
content: "";
|
|
5
|
-
position: absolute;
|
|
6
|
-
top: calc(100% * var(--padding-block-fraction));
|
|
7
|
-
height: calc( 100% * var(--cap-height));
|
|
8
|
-
width: calc(var(--slider-thumb-width) * 0.5);
|
|
9
|
-
// give background-color and the position of the pseudo element as a content block
|
|
10
|
-
@content
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.sg-form-slider {
|
|
14
|
-
--slider-height: #{$slider-height};
|
|
15
|
-
|
|
16
|
-
--slider-filled-color: #{$slider-filled-color};
|
|
17
|
-
--slider-filled-border-color: #{$slider-filled-border-color};
|
|
18
|
-
|
|
19
|
-
--slider-empty-color: #{$slider-empty-color};
|
|
20
|
-
--slider-empty-border-color: #{$slider-empty-border-color};
|
|
21
|
-
|
|
22
|
-
--padding-block-fraction: 1/3;
|
|
23
|
-
|
|
24
|
-
--slider-thumb-width: #{$slider-thumb-width};
|
|
25
|
-
--slider-thumb-height: #{$slider-thumb-height};
|
|
26
|
-
--slider-thumb-border-color: #{$input-border-color};
|
|
27
|
-
--filled: 40%;
|
|
28
|
-
|
|
29
|
-
&:focus-within {
|
|
30
|
-
//outline: 2px outset $danger;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
display: grid;
|
|
34
|
-
grid-template-columns: var(--filled) auto calc(100% - var(--filled));
|
|
35
|
-
position: relative;
|
|
36
|
-
height: var(--slider-height);
|
|
37
|
-
//border: $input-border-width $input-border-style $input-border-color;
|
|
38
|
-
padding-block: calc(var(--slider-height)*var(--padding-block-fraction));
|
|
39
|
-
padding-inline: calc(var(--slider-thumb-width) * 0.5);
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
--slider-filled-color: #{$slider-filled-hover-color};
|
|
43
|
-
--slider-filled-border-color: #{$slider-filled-border-hover-color};
|
|
44
|
-
--slider-empty-color: #{$slider-empty-bover-color};
|
|
45
|
-
--slider-empty-border-color: #{$slider-empty-border-hover-color};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.sg-form-slider-filled {
|
|
49
|
-
display: block;
|
|
50
|
-
background-color: var(--slider-filled-color);
|
|
51
|
-
border: $slider-border-width outset var(--slider-filled-border-color);
|
|
52
|
-
border-left: none;
|
|
53
|
-
border-right: none;
|
|
54
|
-
height: 100%;
|
|
55
|
-
width: 100%;
|
|
56
|
-
&::before {
|
|
57
|
-
@include slider-cap {
|
|
58
|
-
background-color: var(--slider-filled-color);
|
|
59
|
-
border: $slider-border-width outset var(--slider-filled-border-color);
|
|
60
|
-
border-right: none;
|
|
61
|
-
left: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.sg-form-slider-thumb {
|
|
66
|
-
cursor: grab;
|
|
67
|
-
&[data-grabbing="true"] {
|
|
68
|
-
cursor: grabbing;
|
|
69
|
-
}
|
|
70
|
-
position: relative;
|
|
71
|
-
display: block;
|
|
72
|
-
|
|
73
|
-
height: 100%;
|
|
74
|
-
//width: var(--slider-thumb-width);
|
|
75
|
-
|
|
76
|
-
&:focus-visible {
|
|
77
|
-
--slider-thumb-border-color: white;
|
|
78
|
-
}
|
|
79
|
-
&::before {
|
|
80
|
-
content: "";
|
|
81
|
-
position: absolute;
|
|
82
|
-
box-sizing: border-box;
|
|
83
|
-
left: calc(var(--slider-thumb-width) * -0.5);
|
|
84
|
-
top: calc(-1 * var(--padding-block-fraction)*100% );
|
|
85
|
-
height: calc( (2*var(--padding-block-fraction) + 1) * 100%);
|
|
86
|
-
width: var(--slider-thumb-width);
|
|
87
|
-
background-color: $input-border-color;// transparent;// $danger;
|
|
88
|
-
//background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 166 166"><polygon fill="'+$farbe+'" points="83 26.8 65.7 61.8 27.1 67.4 55 94.7 48.5 133.2 83 115 117.5 133.2 111 94.7 138.9 67.4 100.3 61.8 83 26.8 83 26.8"/></svg>');
|
|
89
|
-
border: $input-border-width $input-border-style var(--slider-thumb-border-color);
|
|
90
|
-
}
|
|
91
|
-
&:focus-visible {
|
|
92
|
-
--focus-outline: 2px outset $danger;
|
|
93
|
-
outline: 0;
|
|
94
|
-
box-shadow: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
.sg-form-slider-empty {
|
|
98
|
-
display: block;
|
|
99
|
-
background-color: var(--slider-empty-color);
|
|
100
|
-
border: $slider-border-width outset var(--slider-empty-border-color);
|
|
101
|
-
border-left: none;
|
|
102
|
-
border-right: none;
|
|
103
|
-
height: 100%;
|
|
104
|
-
width: 100%;
|
|
105
|
-
|
|
106
|
-
&::after {
|
|
107
|
-
@include slider-cap {
|
|
108
|
-
background-color: var(--slider-empty-color);
|
|
109
|
-
border: $slider-border-width outset var(--slider-empty-border-color);
|
|
110
|
-
border-left: none;
|
|
111
|
-
right: 0;
|
|
112
|
-
z-index: -1;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default function contrastingColor(color: string)
|
|
2
|
-
{
|
|
3
|
-
return (luma(color) >= 165) ? '000' : 'fff';
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
function luma(color: string) // color can be a hx string or an array of RGB values 0-255
|
|
7
|
-
{
|
|
8
|
-
let rgb = (typeof color === 'string') ? hexToRGBArray(color) : color;
|
|
9
|
-
return (0.2126 * rgb[0]) + (0.7152 * rgb[1]) + (0.0722 * rgb[2]); // SMPTE C, Rec. 709 weightings
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function hexToRGBArray(color: string)
|
|
13
|
-
{
|
|
14
|
-
if(color.startsWith("#")) {
|
|
15
|
-
color = color.replace("#", "")
|
|
16
|
-
}
|
|
17
|
-
if (color.length === 3)
|
|
18
|
-
color = color.charAt(0) + color.charAt(0) + color.charAt(1) + color.charAt(1) + color.charAt(2) + color.charAt(2);
|
|
19
|
-
else if (color.length !== 6)
|
|
20
|
-
throw new Error('Invalid hex color: ' + color)
|
|
21
|
-
let rgb = [];
|
|
22
|
-
for (let i = 0; i <= 2; i++)
|
|
23
|
-
rgb[i] = parseInt(color.substr(i * 2, 2), 16)
|
|
24
|
-
return rgb;
|
|
25
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const downloadFile = ({ data, fileName, fileType }) => {
|
|
2
|
-
// Create a blob with the data we want to download as a file
|
|
3
|
-
const blob = new Blob([data], { type: fileType })
|
|
4
|
-
// Create an anchor element and dispatch a click event on it
|
|
5
|
-
// to trigger a download
|
|
6
|
-
const a = document.createElement('a')
|
|
7
|
-
a.download = fileName
|
|
8
|
-
a.href = window.URL.createObjectURL(blob)
|
|
9
|
-
const clickEvt = new MouseEvent('click', {
|
|
10
|
-
view: window,
|
|
11
|
-
bubbles: true,
|
|
12
|
-
cancelable: true,
|
|
13
|
-
})
|
|
14
|
-
a.dispatchEvent(clickEvt)
|
|
15
|
-
a.remove()
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const exportToJson = (event, charName, currentState) => {
|
|
19
|
-
event.preventDefault()
|
|
20
|
-
let test = ""
|
|
21
|
-
if(charName === "") {
|
|
22
|
-
test = "character"
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
let test1 = charName.split(" ")
|
|
26
|
-
test1.map(word => (
|
|
27
|
-
test += word
|
|
28
|
-
))
|
|
29
|
-
}
|
|
30
|
-
downloadFile({
|
|
31
|
-
data: JSON.stringify(currentState, null, "\t"),
|
|
32
|
-
fileName: test +'.json',
|
|
33
|
-
fileType: 'text/json',
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const readFileOnUpload = (uploadedFile, onUploadFunction) => {
|
|
38
|
-
const fileReader = new FileReader();
|
|
39
|
-
fileReader.onloadend = () => {
|
|
40
|
-
try {
|
|
41
|
-
//dispatch(importState(JSON.parse(fileReader.result), dispatch))
|
|
42
|
-
onUploadFunction(fileReader.result)
|
|
43
|
-
} catch(e) {
|
|
44
|
-
console.log("**Not valid JSON file!**");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if( uploadedFile!== undefined) {
|
|
48
|
-
fileReader.readAsText(uploadedFile);
|
|
49
|
-
}
|
|
50
|
-
}
|
package/src/utils/MergeRefs.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T> | undefined | null>
|
|
2
|
-
): React.RefCallback<T> {
|
|
3
|
-
return (value) => {
|
|
4
|
-
refs.forEach((ref) => {
|
|
5
|
-
if (typeof ref === "function") {
|
|
6
|
-
ref(value)
|
|
7
|
-
} else if (ref != null) {
|
|
8
|
-
(ref as React.MutableRefObject<T | null>).current = value;
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
}
|
|
12
|
-
}
|
package/src/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
package/tsconfig-build.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"lib": ["dom", "esnext"],
|
|
6
|
-
"jsx": "react",
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"forceConsistentCasingInFileNames": true,
|
|
14
|
-
"declaration": true,
|
|
15
|
-
"declarationDir": "dist",
|
|
16
|
-
"emitDeclarationOnly": true
|
|
17
|
-
},
|
|
18
|
-
"exclude": ["node_modules", "**/*stories", "**/*types", "holding area", "legacy"]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/*
|
|
23
|
-
{
|
|
24
|
-
"compilerOptions": {
|
|
25
|
-
"declaration": true,
|
|
26
|
-
"declarationDir": "dist",
|
|
27
|
-
"emitDeclarationOnly": true,
|
|
28
|
-
"target": "ES2020",
|
|
29
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
30
|
-
"allowJs": true,
|
|
31
|
-
"skipLibCheck": true,
|
|
32
|
-
"esModuleInterop": true,
|
|
33
|
-
"allowSyntheticDefaultImports": true,
|
|
34
|
-
"strict": true,
|
|
35
|
-
"forceConsistentCasingInFileNames": true,
|
|
36
|
-
"noFallthroughCasesInSwitch": true,
|
|
37
|
-
"module": "esnext",
|
|
38
|
-
"moduleResolution": "node",
|
|
39
|
-
"resolveJsonModule": true,
|
|
40
|
-
"isolatedModules": true,
|
|
41
|
-
"jsx": "react-jsx",
|
|
42
|
-
"rootDir": "src"
|
|
43
|
-
},
|
|
44
|
-
"include": ["src"],
|
|
45
|
-
"exclude": [
|
|
46
|
-
"dist",
|
|
47
|
-
"node_modules",
|
|
48
|
-
]
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/*
|
|
54
|
-
{
|
|
55
|
-
"compilerOptions": {
|
|
56
|
-
"target": "ES2020",
|
|
57
|
-
"useDefineForClassFields": true,
|
|
58
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
59
|
-
"module": "ESNext",
|
|
60
|
-
"skipLibCheck": true,
|
|
61
|
-
|
|
62
|
-
//Bundler mode
|
|
63
|
-
"moduleResolution": "bundler",
|
|
64
|
-
"allowImportingTsExtensions": true,
|
|
65
|
-
"resolveJsonModule": true,
|
|
66
|
-
"isolatedModules": true,
|
|
67
|
-
"noEmit": true,
|
|
68
|
-
"jsx": "react-jsx",
|
|
69
|
-
|
|
70
|
-
// Linting
|
|
71
|
-
"strict": true,
|
|
72
|
-
"noUnusedLocals": true,
|
|
73
|
-
"noUnusedParameters": true,
|
|
74
|
-
"noFallthroughCasesInSwitch": true
|
|
75
|
-
},
|
|
76
|
-
"include": ["src"],
|
|
77
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
78
|
-
}
|
|
79
|
-
*/
|
package/tsconfig.node.json
DELETED
package/types/BaseTypes.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type BaseAnchorType = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
3
|
-
export type BaseButtonType = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
4
|
-
export type BaseDialogType = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>;
|
|
5
|
-
export type BaseDivType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
6
|
-
export type BaseFormType = React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
|
|
7
|
-
export type BaseHeadingType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
|
|
8
|
-
export type BaseInputType = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
9
|
-
export type BaseHrType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
|
|
10
|
-
export type BaseLabelType = React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
|
|
11
|
-
export type BaseLItemType = React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
|
|
12
|
-
export type BaseNavType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
13
|
-
export type BaseParagraphType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
|
|
14
|
-
export type BaseSelectType = React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
|
|
15
|
-
export type BaseSmallType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
16
|
-
export type BaseSpanType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
17
|
-
export type BaseTableType = React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
|
|
18
|
-
export type BaseUListType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
|
|
19
|
-
export type BaseElementType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Button";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Card";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./CloseButton";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Dropdown";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./FloatingLabel";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormCheckType, FormContextType, FormControlType, FormGroupType, FormLabelType, FormSelectType, FormTextType, FormType } from "./Form.types";
|
|
3
|
-
export declare const FormContext: React.Context<FormContextType | null>;
|
|
4
|
-
export declare const FormContextProvider: ({ children, value }: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
value: FormContextType;
|
|
7
|
-
}) => React.JSX.Element;
|
|
8
|
-
export declare const useFormContext: () => FormContextType;
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<FormType, "ref"> & React.RefAttributes<HTMLFormElement>> & {
|
|
10
|
-
Control: React.ForwardRefExoticComponent<Omit<FormControlType, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
-
Select: React.ForwardRefExoticComponent<Omit<FormSelectType, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
12
|
-
Group: React.ForwardRefExoticComponent<Omit<FormGroupType, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
Label: React.ForwardRefExoticComponent<Omit<FormLabelType, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
14
|
-
Check: React.ForwardRefExoticComponent<Omit<FormCheckType, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
-
Text: React.ForwardRefExoticComponent<Omit<FormTextType, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { BaseDivType, BaseFormType, BaseInputType, BaseLabelType, BaseSelectType, BaseSmallType } from "../../BaseTypes";
|
|
3
|
-
export type FormContextType = {
|
|
4
|
-
controlId: string;
|
|
5
|
-
};
|
|
6
|
-
export type FormType = {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
} & BaseFormType;
|
|
9
|
-
export type FormControlType = {
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
className?: string;
|
|
12
|
-
plaintext?: boolean;
|
|
13
|
-
id?: string;
|
|
14
|
-
type?: string;
|
|
15
|
-
autoFocus?: boolean;
|
|
16
|
-
} & BaseInputType;
|
|
17
|
-
export type FormSelectType = {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
className?: string;
|
|
20
|
-
id?: string;
|
|
21
|
-
} & BaseSelectType;
|
|
22
|
-
export type FormGroupType = {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
className?: string;
|
|
25
|
-
controlId: string;
|
|
26
|
-
} & BaseDivType;
|
|
27
|
-
export type FormLabelType = {
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
className?: string;
|
|
30
|
-
htmlFor?: string;
|
|
31
|
-
} & BaseLabelType;
|
|
32
|
-
export type FormCheckType = {
|
|
33
|
-
classNameContainer?: string;
|
|
34
|
-
containerRef?: React.LegacyRef<HTMLDivElement>;
|
|
35
|
-
containerId?: string;
|
|
36
|
-
style?: React.CSSProperties;
|
|
37
|
-
classNameLabel?: string;
|
|
38
|
-
labelRef?: React.LegacyRef<HTMLLabelElement>;
|
|
39
|
-
label?: string;
|
|
40
|
-
labelId?: string;
|
|
41
|
-
className?: string;
|
|
42
|
-
type?: string;
|
|
43
|
-
controlId?: string;
|
|
44
|
-
reverse?: boolean;
|
|
45
|
-
checkStyle?: React.CSSProperties;
|
|
46
|
-
} & BaseInputType;
|
|
47
|
-
export type FormTextType = {
|
|
48
|
-
children: ReactNode;
|
|
49
|
-
className?: string;
|
|
50
|
-
} & BaseSmallType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Form";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InputGroupText, InputGroupType } from "./InputGroup.types";
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<InputGroupType, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
-
Text: React.ForwardRefExoticComponent<InputGroupText & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { BaseDivType } from "../../BaseTypes";
|
|
3
|
-
export type InputGroupType = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
} & BaseDivType;
|
|
7
|
-
export type InputGroupText = {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./InputGroup";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Modal";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Nav";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Navbar";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./NavDropdown";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Popout";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Spinner";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Table";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Tabs";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { BaseButtonType } from "../../BaseTypes";
|
|
3
|
-
type ToggleButtonType = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
toggled?: boolean;
|
|
6
|
-
onClick?: <T>(event: T) => T;
|
|
7
|
-
} & BaseButtonType;
|
|
8
|
-
declare const ToggleButton: React.ForwardRefExoticComponent<Omit<ToggleButtonType, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export default ToggleButton;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ToggleButton";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { default as Button } from "./Button";
|
|
2
|
-
export { default as Card } from "./Card";
|
|
3
|
-
export { default as CloseButton } from "./CloseButton";
|
|
4
|
-
export { default as Dropdown } from "./Dropdown";
|
|
5
|
-
export { default as FloatingLabel } from "./FloatingLabel";
|
|
6
|
-
export { default as Form } from "./Form";
|
|
7
|
-
export { default as InputGroup } from "./InputGroup";
|
|
8
|
-
export { default as Modal } from "./Modal";
|
|
9
|
-
export { default as Nav } from "./Nav";
|
|
10
|
-
export { default as NavBar } from "./NavBar";
|
|
11
|
-
export { default as NavDropdown } from "./NavDropdown";
|
|
12
|
-
export { default as Popout } from "./Popout";
|
|
13
|
-
export { default as Spinner } from "./Spinner";
|
|
14
|
-
export { default as Table } from "./Table";
|
|
15
|
-
export { default as Tabs } from "./Tabs";
|
|
16
|
-
export { default as ToggleButton } from "./ToggleButton";
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./components";
|
package/vite.config.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import react from '@vitejs/plugin-react';
|
|
3
|
-
import dts from 'vite-plugin-dts';
|
|
4
|
-
//these are needed to preserve the folder structure so every component has its own entry point
|
|
5
|
-
import path, { extname, relative, resolve } from 'path'
|
|
6
|
-
import { fileURLToPath } from 'node:url'
|
|
7
|
-
import { glob } from 'glob'
|
|
8
|
-
|
|
9
|
-
export default defineConfig(({ command, mode }) => {
|
|
10
|
-
if (command === 'serve') {
|
|
11
|
-
// Dev config
|
|
12
|
-
return {
|
|
13
|
-
plugins: [react(), dts()],
|
|
14
|
-
root: path.resolve(__dirname, 'dev'),
|
|
15
|
-
build: {
|
|
16
|
-
outDir: path.resolve(__dirname, 'dist'),
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
} else {
|
|
20
|
-
// Build config
|
|
21
|
-
return {
|
|
22
|
-
plugins: [react(), dts()],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
26
|
-
name: 'ui',
|
|
27
|
-
formats: ['es'],
|
|
28
|
-
fileName: (format) => `ui.${format}.js`
|
|
29
|
-
},
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
32
|
-
input: Object.fromEntries(
|
|
33
|
-
glob.sync('src/**/*.{ts,tsx}').map(file => [
|
|
34
|
-
// The name of the entry point
|
|
35
|
-
// lib/nested/foo.ts becomes nested/foo
|
|
36
|
-
relative(
|
|
37
|
-
'src',
|
|
38
|
-
file.slice(0, file.length - extname(file).length)
|
|
39
|
-
),
|
|
40
|
-
// The absolute path to the entry file
|
|
41
|
-
// lib/nested/foo.ts becomes /project/lib/nested/foo.ts
|
|
42
|
-
fileURLToPath(new URL(file, import.meta.url))
|
|
43
|
-
])
|
|
44
|
-
),
|
|
45
|
-
output: {
|
|
46
|
-
inlineDynamicImports: false,
|
|
47
|
-
entryFileNames: '[name].js',
|
|
48
|
-
globals: {
|
|
49
|
-
react: 'React',
|
|
50
|
-
'react-dom': 'ReactDOM',
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// vite.config.js
|
|
2
|
-
import { defineConfig } from "file:///E:/TestApps/stargazer-ui/node_modules/vite/dist/node/index.js";
|
|
3
|
-
import react from "file:///E:/TestApps/stargazer-ui/node_modules/@vitejs/plugin-react/dist/index.mjs";
|
|
4
|
-
import dts from "file:///E:/TestApps/stargazer-ui/node_modules/vite-plugin-dts/dist/index.mjs";
|
|
5
|
-
import path from "path";
|
|
6
|
-
var __vite_injected_original_dirname = "E:\\TestApps\\stargazer-ui";
|
|
7
|
-
var vite_config_default = defineConfig(({ command, mode }) => {
|
|
8
|
-
if (command === "serve") {
|
|
9
|
-
return {
|
|
10
|
-
plugins: [react()],
|
|
11
|
-
root: path.resolve(__vite_injected_original_dirname, "dev"),
|
|
12
|
-
build: {
|
|
13
|
-
outDir: path.resolve(__vite_injected_original_dirname, "dist")
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
} else {
|
|
17
|
-
return {
|
|
18
|
-
plugins: [react(), dts()],
|
|
19
|
-
build: {
|
|
20
|
-
lib: {
|
|
21
|
-
entry: path.resolve(__vite_injected_original_dirname, "src/index.js"),
|
|
22
|
-
name: "ui",
|
|
23
|
-
formats: ["es", "umd"],
|
|
24
|
-
fileName: (format) => `ui.${format}.js`
|
|
25
|
-
},
|
|
26
|
-
rollupOptions: {
|
|
27
|
-
external: ["react", "react-dom"],
|
|
28
|
-
output: {
|
|
29
|
-
globals: {
|
|
30
|
-
react: "React",
|
|
31
|
-
"react-dom": "ReactDOM"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
vite_config_default as default
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxUZXN0QXBwc1xcXFxzdGFyZ2F6ZXItdWlcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXFRlc3RBcHBzXFxcXHN0YXJnYXplci11aVxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovVGVzdEFwcHMvc3RhcmdhemVyLXVpL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSc7XHJcbmltcG9ydCByZWFjdCBmcm9tICdAdml0ZWpzL3BsdWdpbi1yZWFjdCc7XHJcbmltcG9ydCBkdHMgZnJvbSAndml0ZS1wbHVnaW4tZHRzJztcclxuaW1wb3J0IHBhdGggZnJvbSAncGF0aCc7XHJcblxyXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoKHsgY29tbWFuZCwgbW9kZSB9KSA9PiB7XHJcbiAgaWYgKGNvbW1hbmQgPT09ICdzZXJ2ZScpIHtcclxuICAgIC8vIERldiBjb25maWdcclxuICAgIHJldHVybiB7XHJcbiAgICAgIHBsdWdpbnM6IFtyZWFjdCgpXSxcclxuICAgICAgcm9vdDogcGF0aC5yZXNvbHZlKF9fZGlybmFtZSwgJ2RldicpLFxyXG4gICAgICBidWlsZDoge1xyXG4gICAgICAgIG91dERpcjogcGF0aC5yZXNvbHZlKF9fZGlybmFtZSwgJ2Rpc3QnKSxcclxuICAgICAgfSxcclxuICAgIH07XHJcbiAgfSBlbHNlIHtcclxuICAgIC8vIEJ1aWxkIGNvbmZpZ1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgcGx1Z2luczogW3JlYWN0KCksIGR0cygpXSxcclxuICAgICAgYnVpbGQ6IHtcclxuICAgICAgICBsaWI6IHtcclxuICAgICAgICAgIGVudHJ5OiBwYXRoLnJlc29sdmUoX19kaXJuYW1lLCAnc3JjL2luZGV4LmpzJyksXHJcbiAgICAgICAgICBuYW1lOiAndWknLFxyXG4gICAgICAgICAgZm9ybWF0czogWydlcycsICd1bWQnXSxcclxuICAgICAgICAgIGZpbGVOYW1lOiAoZm9ybWF0KSA9PiBgdWkuJHtmb3JtYXR9LmpzYFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgcm9sbHVwT3B0aW9uczoge1xyXG4gICAgICAgICAgZXh0ZXJuYWw6IFsncmVhY3QnLCAncmVhY3QtZG9tJ10sXHJcbiAgICAgICAgICBvdXRwdXQ6IHtcclxuICAgICAgICAgICAgZ2xvYmFsczoge1xyXG4gICAgICAgICAgICAgIHJlYWN0OiAnUmVhY3QnLFxyXG4gICAgICAgICAgICAgICdyZWFjdC1kb20nOiAnUmVhY3RET00nXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH07XHJcbiAgfVxyXG59KTsiXSwKICAibWFwcGluZ3MiOiAiO0FBQWdRLFNBQVMsb0JBQW9CO0FBQzdSLE9BQU8sV0FBVztBQUNsQixPQUFPLFNBQVM7QUFDaEIsT0FBTyxVQUFVO0FBSGpCLElBQU0sbUNBQW1DO0FBS3pDLElBQU8sc0JBQVEsYUFBYSxDQUFDLEVBQUUsU0FBUyxLQUFLLE1BQU07QUFDakQsTUFBSSxZQUFZLFNBQVM7QUFFdkIsV0FBTztBQUFBLE1BQ0wsU0FBUyxDQUFDLE1BQU0sQ0FBQztBQUFBLE1BQ2pCLE1BQU0sS0FBSyxRQUFRLGtDQUFXLEtBQUs7QUFBQSxNQUNuQyxPQUFPO0FBQUEsUUFDTCxRQUFRLEtBQUssUUFBUSxrQ0FBVyxNQUFNO0FBQUEsTUFDeEM7QUFBQSxJQUNGO0FBQUEsRUFDRixPQUFPO0FBRUwsV0FBTztBQUFBLE1BQ0wsU0FBUyxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUM7QUFBQSxNQUN4QixPQUFPO0FBQUEsUUFDTCxLQUFLO0FBQUEsVUFDSCxPQUFPLEtBQUssUUFBUSxrQ0FBVyxjQUFjO0FBQUEsVUFDN0MsTUFBTTtBQUFBLFVBQ04sU0FBUyxDQUFDLE1BQU0sS0FBSztBQUFBLFVBQ3JCLFVBQVUsQ0FBQyxXQUFXLE1BQU0sTUFBTTtBQUFBLFFBQ3BDO0FBQUEsUUFDQSxlQUFlO0FBQUEsVUFDYixVQUFVLENBQUMsU0FBUyxXQUFXO0FBQUEsVUFDL0IsUUFBUTtBQUFBLFlBQ04sU0FBUztBQUFBLGNBQ1AsT0FBTztBQUFBLGNBQ1AsYUFBYTtBQUFBLFlBQ2Y7QUFBQSxVQUNGO0FBQUEsUUFDRjtBQUFBLE1BQ0Y7QUFBQSxJQUNGO0FBQUEsRUFDRjtBQUNGLENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|