@velumweb/ui-kit 1.0.0 → 1.0.2
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/changelog.md +11 -0
- package/{docs → dist/components}/Button/Button.d.ts +32 -32
- package/dist/{Button → components/Button}/Button.stories.d.ts +15 -15
- package/dist/{Button → components/Button}/index.d.ts +1 -1
- package/dist/{Container → components/Container}/Box.d.ts +33 -33
- package/{docs → dist/components}/Container/index.d.ts +1 -1
- package/dist/{Input → components/Input}/Input.d.ts +38 -38
- package/{docs → dist/components}/Input/Input.stories.d.ts +14 -14
- package/{docs → dist/components}/Input/index.d.ts +1 -1
- package/{docs → dist/components}/Modal/Modal.d.ts +29 -29
- package/{docs → dist/components}/Modal/Modal.stories.d.ts +13 -13
- package/{docs → dist/components}/Modal/index.d.ts +1 -1
- package/dist/{Toggle → components/Toggle}/Toggle.d.ts +18 -18
- package/dist/{Toggle → components/Toggle}/Toggle.stories.d.ts +13 -13
- package/dist/{Toggle → components/Toggle}/index.d.ts +1 -1
- package/{docs → dist/components}/index.d.ts +6 -5
- package/dist/index.d.ts +2 -5
- package/dist/index.es.js +583 -569
- package/dist/index.es2.js +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/ui-kit.css +1 -1
- package/package.json +17 -3
- package/readme.md +19 -2
- package/.storybook/main.ts +0 -14
- package/.storybook/manager.ts +0 -32
- package/.storybook/preview.ts +0 -14
- package/dist/Button/Button.d.ts +0 -32
- package/dist/Container/index.d.ts +0 -1
- package/dist/Input/Input.stories.d.ts +0 -14
- package/dist/Input/index.d.ts +0 -1
- package/dist/Modal/Modal.d.ts +0 -29
- package/dist/Modal/Modal.stories.d.ts +0 -13
- package/dist/Modal/index.d.ts +0 -1
- package/dist/index.es.d.ts +0 -2
- package/dist/index.umd.js +0 -6
- package/docs/Button/Button.stories.d.ts +0 -15
- package/docs/Button/index.d.ts +0 -1
- package/docs/CNAME +0 -1
- package/docs/Container/Box.d.ts +0 -33
- package/docs/Input/Input.d.ts +0 -38
- package/docs/Toggle/Toggle.d.ts +0 -18
- package/docs/Toggle/Toggle.stories.d.ts +0 -13
- package/docs/Toggle/index.d.ts +0 -1
- package/docs/assets/Button-CfaZpHIg.css +0 -1
- package/docs/assets/Button-DBH2W8EG.js +0 -1
- package/docs/assets/Button.stories-uPwy2cWr.js +0 -34
- package/docs/assets/Input-D117xj27.js +0 -1
- package/docs/assets/Input-RjFZkyU_.css +0 -1
- package/docs/assets/Input.stories-Ck4AyV-4.js +0 -21
- package/docs/assets/Modal-CWKTs3Ep.css +0 -1
- package/docs/assets/Modal.stories-3HMpRqSx.js +0 -7
- package/docs/assets/Toggle-BmcBtVup.css +0 -1
- package/docs/assets/Toggle-DiHagfS3.js +0 -1
- package/docs/assets/Toggle.stories-d01loxLD.js +0 -9
- package/docs/assets/iframe-D7bwIom8.js +0 -1062
- package/docs/assets/jsx-runtime-u17CrQMm.js +0 -1
- package/docs/assets/preload-helper-PPVm8Dsz.js +0 -1
- package/docs/assets/react-18-CW3OMC0n.js +0 -9
- package/docs/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/about-empty-page-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/alert-square.svg +0 -26
- package/docs/assets/svg-lib/arrow-bottom-svgrepo-com.svg +0 -9
- package/docs/assets/svg-lib/arrow-left-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/arrow-right-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/arrow-top-svgrepo-com.svg +0 -9
- package/docs/assets/svg-lib/checkmark-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/clock-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/cross-svgrepo-com.svg +0 -12
- package/docs/assets/svg-lib/download-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/edit-pen-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/favorite-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/forbiden-svgrepo-com.svg +0 -9
- package/docs/assets/svg-lib/input-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/link-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/messages-alert-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/messages-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/mic-off-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/mic-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/music-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/notification-alert-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/notification-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/notifications-off-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/party-simple-colored-svgrepo-com.svg +0 -11
- package/docs/assets/svg-lib/pattern-circles-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/play-button-simple-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/plus-outlined-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/queue-remove-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/recent-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/remove-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/repeat-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/schedule-add-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/schedule-alert-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/schedule-remove-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/schedule-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/search-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/session-abandon-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/session-join-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/session-leave-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/settings-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/share-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/sound-off-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/sound-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/spectacles-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/star-svgrepo-com.svg +0 -5
- package/docs/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/user-banned-svgrepo-com.svg +0 -6
- package/docs/assets/svg-lib/user-svgrepo-com.svg +0 -5
- package/docs/assets/svglist.png +0 -0
- package/docs/favicon-wrapper.svg +0 -46
- package/docs/favicon.svg +0 -1
- package/docs/iframe.html +0 -686
- package/docs/index.html +0 -137
- package/docs/index.json +0 -1
- package/docs/makeColors.ts +0 -37
- package/docs/notes.txt +0 -11
- package/docs/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/nunito-sans-bold.woff2 +0 -0
- package/docs/nunito-sans-italic.woff2 +0 -0
- package/docs/nunito-sans-regular.woff2 +0 -0
- package/docs/project.json +0 -1
- package/docs/sb-addons/storybook-1/manager-bundle.js +0 -3
- package/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/docs/sb-common-assets/favicon-wrapper.svg +0 -46
- package/docs/sb-common-assets/favicon.svg +0 -1
- package/docs/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/docs/sb-manager/globals-runtime.js +0 -75597
- package/docs/sb-manager/globals.js +0 -24
- package/docs/sb-manager/manager-stores.js +0 -23
- package/docs/sb-manager/runtime.js +0 -19698
- package/docs/style_setter.js +0 -19
- package/docs/vite-inject-mocker-entry.js +0 -2
- package/index.html +0 -7
- package/public/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/about-empty-page-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/alert-square.svg +0 -26
- package/public/assets/svg-lib/arrow-bottom-svgrepo-com.svg +0 -9
- package/public/assets/svg-lib/arrow-left-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/arrow-right-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/arrow-top-svgrepo-com.svg +0 -9
- package/public/assets/svg-lib/checkmark-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/clock-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/cross-svgrepo-com.svg +0 -12
- package/public/assets/svg-lib/download-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/edit-pen-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/favorite-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/forbiden-svgrepo-com.svg +0 -9
- package/public/assets/svg-lib/input-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/link-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/messages-alert-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/messages-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/mic-off-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/mic-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/music-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/notification-alert-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/notification-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/notifications-off-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/party-simple-colored-svgrepo-com.svg +0 -11
- package/public/assets/svg-lib/pattern-circles-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/play-button-simple-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/plus-outlined-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/queue-remove-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/recent-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/remove-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/repeat-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/schedule-add-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/schedule-alert-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/schedule-remove-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/schedule-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/search-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/session-abandon-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/session-join-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/session-leave-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/settings-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/share-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/sound-off-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/sound-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/spectacles-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/star-svgrepo-com.svg +0 -5
- package/public/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/user-banned-svgrepo-com.svg +0 -6
- package/public/assets/svg-lib/user-svgrepo-com.svg +0 -5
- package/public/assets/svglist.png +0 -0
- package/src/components/Button/Button.stories.ts +0 -64
- package/src/components/Button/Button.tsx +0 -99
- package/src/components/Button/button.scss +0 -147
- package/src/components/Button/index.ts +0 -1
- package/src/components/Container/Box.tsx +0 -83
- package/src/components/Container/box.scss +0 -41
- package/src/components/Container/index.ts +0 -1
- package/src/components/Input/Input.stories.ts +0 -49
- package/src/components/Input/Input.tsx +0 -172
- package/src/components/Input/index.ts +0 -1
- package/src/components/Input/input.scss +0 -69
- package/src/components/Modal/Modal.stories.ts +0 -33
- package/src/components/Modal/Modal.tsx +0 -125
- package/src/components/Modal/index.ts +0 -1
- package/src/components/Modal/modal.scss +0 -54
- package/src/components/Toggle/Toggle.stories.ts +0 -35
- package/src/components/Toggle/Toggle.tsx +0 -60
- package/src/components/Toggle/index.ts +0 -1
- package/src/components/Toggle/toggle.scss +0 -97
- package/src/components/index.ts +0 -5
- package/src/main.scss +0 -46
- package/tsconfig.json +0 -15
- package/utils/makeColors.ts +0 -37
- package/utils/notes.txt +0 -11
- package/utils/style_setter.js +0 -19
- package/vite.config.ts +0 -32
package/docs/index.html
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
|
|
6
|
-
<title>storybook - Storybook</title>
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
11
|
-
|
|
12
|
-
<style>
|
|
13
|
-
@font-face {
|
|
14
|
-
font-family: 'Nunito Sans';
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
font-display: swap;
|
|
18
|
-
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@font-face {
|
|
22
|
-
font-family: 'Nunito Sans';
|
|
23
|
-
font-style: italic;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
font-display: swap;
|
|
26
|
-
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Nunito Sans';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 700;
|
|
33
|
-
font-display: swap;
|
|
34
|
-
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Nunito Sans';
|
|
39
|
-
font-style: italic;
|
|
40
|
-
font-weight: 700;
|
|
41
|
-
font-display: swap;
|
|
42
|
-
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
45
|
-
|
|
46
|
-
<link href="./sb-manager/runtime.js" rel="modulepreload" />
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<link href="./sb-addons/storybook-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
|
-
|
|
51
|
-
<link href="./sb-addons/storybook-1/manager-bundle.js" rel="modulepreload" />
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<style>
|
|
55
|
-
#storybook-root[hidden] {
|
|
56
|
-
display: none !important;
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</head>
|
|
62
|
-
<body>
|
|
63
|
-
<div id="root"></div>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
window['FEATURES'] = {
|
|
70
|
-
"argTypeTargetsV7": true,
|
|
71
|
-
"legacyDecoratorFileOrder": false,
|
|
72
|
-
"disallowImplicitActionsInRenderV8": true,
|
|
73
|
-
"viewport": true,
|
|
74
|
-
"highlight": true,
|
|
75
|
-
"controls": true,
|
|
76
|
-
"interactions": true,
|
|
77
|
-
"actions": true,
|
|
78
|
-
"backgrounds": true,
|
|
79
|
-
"outline": true,
|
|
80
|
-
"measure": true
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
window['REFS'] = {};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
window['LOGLEVEL'] = "info";
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
window['DOCS_OPTIONS'] = {};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
window['CONFIG_TYPE'] = "PRODUCTION";
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
window['TAGS_OPTIONS'] = {};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
window['STORYBOOK_BUILDER'] = "vite";
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
window['STORYBOOK_FRAMEWORK'] = "react-vite";
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
window['STORYBOOK_RENDERER'] = "react";
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
</script>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<script type="module">
|
|
126
|
-
import './sb-manager/globals-runtime.js';
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
import './sb-addons/storybook-core-server-presets-0/common-manager-bundle.js';
|
|
130
|
-
|
|
131
|
-
import './sb-addons/storybook-1/manager-bundle.js';
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
import './sb-manager/runtime.js';
|
|
135
|
-
</script>
|
|
136
|
-
</body>
|
|
137
|
-
</html>
|
package/docs/index.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"v":5,"entries":{"example-button--custom-button":{"type":"story","subtype":"story","id":"example-button--custom-button","name":"Custom Button","title":"Example Button","importPath":"./src/components/Button/Button.stories.ts","componentPath":"./src/components/Button/Button.tsx","tags":["dev","test","autodocs"],"exportName":"CustomButton"},"example-button--icon-button":{"type":"story","subtype":"story","id":"example-button--icon-button","name":"Icon Button","title":"Example Button","importPath":"./src/components/Button/Button.stories.ts","componentPath":"./src/components/Button/Button.tsx","tags":["dev","test","autodocs"],"exportName":"IconButton"},"example-button--icon":{"type":"story","subtype":"story","id":"example-button--icon","name":"Icon","title":"Example Button","importPath":"./src/components/Button/Button.stories.ts","componentPath":"./src/components/Button/Button.tsx","tags":["dev","test","autodocs"],"exportName":"Icon"},"example-input--text-field":{"type":"story","subtype":"story","id":"example-input--text-field","name":"Text Field","title":"Example Input","importPath":"./src/components/Input/Input.stories.ts","componentPath":"./src/components/Input/Input.tsx","tags":["dev","test","autodocs"],"exportName":"TextField"},"example-input--search":{"type":"story","subtype":"story","id":"example-input--search","name":"Search","title":"Example Input","importPath":"./src/components/Input/Input.stories.ts","componentPath":"./src/components/Input/Input.tsx","tags":["dev","test","autodocs"],"exportName":"Search"},"modal--modal-window":{"type":"story","subtype":"story","id":"modal--modal-window","name":"Modal Window","title":"Modal","importPath":"./src/components/Modal/Modal.stories.ts","componentPath":"./src/components/Modal/Modal.tsx","tags":["dev","test","autodocs"],"exportName":"ModalWindow"},"example-toggle--custom-toggle":{"type":"story","subtype":"story","id":"example-toggle--custom-toggle","name":"Custom Toggle","title":"Example Toggle","importPath":"./src/components/Toggle/Toggle.stories.ts","componentPath":"./src/components/Toggle/Toggle.tsx","tags":["dev","test","autodocs"],"exportName":"CustomToggle"}}}
|
package/docs/makeColors.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Утилиты для автоматического подбора цветов
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/** Возвращает hover-цвет
|
|
7
|
-
* baseHex - цвет в формате #ffffff
|
|
8
|
-
* k - процент затемнения, по умолчанию 15%
|
|
9
|
-
* mode: 'dark' - более темный, чем основной
|
|
10
|
-
* mode: 'light' - более светлый, чем основной
|
|
11
|
-
* */
|
|
12
|
-
export function makeHoverColor(baseHex: string, k: number = 0.15, mode: 'dark' | 'light' = 'dark') {
|
|
13
|
-
const { r, g, b } = hexToRgb(baseHex);
|
|
14
|
-
const factor = mode === 'dark' ? 1 - k : 1 + k;
|
|
15
|
-
|
|
16
|
-
return rgbToHex(
|
|
17
|
-
r * factor,
|
|
18
|
-
g * factor,
|
|
19
|
-
b * factor
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
function hexToRgb(hex) {
|
|
23
|
-
hex = hex.replace('#', '');
|
|
24
|
-
if (hex.length === 3) {
|
|
25
|
-
hex = hex.split('').map(x => x + x).join('');
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
r: parseInt(hex.slice(1, 3), 16),
|
|
29
|
-
g: parseInt(hex.slice(3, 5), 16),
|
|
30
|
-
b: parseInt(hex.slice(5, 7), 16)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function rgbToHex(r, g, b) {
|
|
34
|
-
return (
|
|
35
|
-
'#' + [r, g, b].map(x => Math.max(0, Math.min(255, Math.round(x))).toString(16).padStart(2, '0')).join('')
|
|
36
|
-
);
|
|
37
|
-
}
|
package/docs/notes.txt
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/project.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"generatedAt":1764730437476,"userSince":1763124038147,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{},"hasRouterPackage":false,"packageManager":{"type":"pnpm","agent":"pnpm","nodeLinker":"undefined"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"10.0.8","language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"10.0.8"},"storybook":{}},"addons":{}}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
try{
|
|
2
|
-
(()=>{var b=Object.create;var u=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var l=(e,t)=>()=>(e&&(t=e(e=0)),t);var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var y=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of T(t))!f.call(e,n)&&n!==s&&u(e,n,{get:()=>t[n],enumerable:!(i=P(t,n))||i.enumerable});return e};var g=(e,t,s)=>(s=e!=null?b(v(e)):{},y(t||!e||!e.__esModule?u(s,"default",{value:e,enumerable:!0}):s,e));var o=l(()=>{});var r=l(()=>{});var a=l(()=>{});var w,K,U,B,I,j,c,H,L,N,Y,q,z,D,F,G,V,W,J,Q,X,Z,$,ee,te,oe,re,ae,se,ne,le,ie,ue,de,Se,he,pe,ce,me,_e,be,Pe,Te,ve,fe,ye,ge,m=l(()=>{o();r();a();w=__STORYBOOK_API__,{ActiveTabs:K,Consumer:U,ManagerContext:B,Provider:I,RequestResponseError:j,addons:c,combineParameters:H,controlOrMetaKey:L,controlOrMetaSymbol:N,eventMatchesShortcut:Y,eventToShortcut:q,experimental_MockUniversalStore:z,experimental_UniversalStore:D,experimental_getStatusStore:F,experimental_getTestProviderStore:G,experimental_requestResponse:V,experimental_useStatusStore:W,experimental_useTestProviderStore:J,experimental_useUniversalStore:Q,internal_checklistStore:X,internal_fullStatusStore:Z,internal_fullTestProviderStore:$,internal_universalChecklistStore:ee,internal_universalStatusStore:te,internal_universalTestProviderStore:oe,isMacLike:re,isShortcutTaken:ae,keyToSymbol:se,merge:ne,mockChannel:le,optionOrAltSymbol:ie,shortcutMatchesShortcut:ue,shortcutToAriaKeyshortcuts:de,shortcutToHumanString:Se,types:he,useAddonState:pe,useArgTypes:ce,useArgs:me,useChannel:_e,useGlobalTypes:be,useGlobals:Pe,useParameter:Te,useSharedState:ve,useStoryPrepared:fe,useStorybookApi:ye,useStorybookState:ge}=__STORYBOOK_API__});var _=d(()=>{o();r();a();m();c.setConfig({navSize:300,bottomPanelHeight:300,rightPanelWidth:300,panelPosition:"right",enableShortcuts:!0,showToolbar:!0,theme:void 0,selectedPanel:void 0,initialActive:"sidebar",layoutCustomisations:{showSidebar(e,t){return e.storyId==="landing"?!1:t},showToolbar(e,t){return e.viewMode==="docs"?!1:t}},sidebar:{showRoots:!1,collapsedRoots:["other"]},toolbar:{title:{hidden:!1},zoom:{hidden:!1},eject:{hidden:!1},copy:{hidden:!1},fullscreen:{hidden:!1}}})});var O=d(()=>{o();r();a();var Ue=g(_())});O();})();
|
|
3
|
-
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
|