@micromag/core 0.3.824 → 0.4.4
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/assets/css/styles.css +31 -31
- package/assets/css/vendor.css +4 -3
- package/es/components.d.ts +628 -0
- package/es/components.js +947 -2301
- package/es/contexts.d.ts +297 -0
- package/es/contexts.js +154 -341
- package/es/hooks.d.ts +333 -0
- package/es/hooks.js +22 -17
- package/es/index.d.ts +665 -0
- package/es/index.js +2 -772
- package/es/styles.css +35 -0
- package/es/utils.d.ts +214 -0
- package/lib/components.js +955 -2309
- package/lib/contexts.js +153 -340
- package/lib/hooks.js +21 -16
- package/lib/index.js +0 -771
- package/lib/styles.css +35 -0
- package/package.json +39 -46
- package/styles/bootstrap-overrides.css +111 -0
- package/styles/bootstrap-patches.css +486 -0
- package/styles/breadcrumb.module.css +5 -0
- package/styles/button.module.css +82 -0
- package/styles/buttons.module.css +3 -0
- package/styles/clear.module.css +23 -0
- package/styles/collapsable-panel.module.css +31 -0
- package/styles/conversation.module.css +37 -0
- package/styles/dialog.module.css +13 -0
- package/styles/empty.module.css +22 -0
- package/styles/form-panel.module.css +3 -0
- package/styles/form.module.css +22 -0
- package/styles/link.module.css +9 -0
- package/styles/map.module.css +43 -0
- package/styles/media.module.css +3 -0
- package/styles/modal.module.css +22 -0
- package/styles/modals.module.css +12 -0
- package/styles/navbar.module.css +9 -0
- package/styles/pagination.module.css +3 -0
- package/styles/panel.module.css +3 -0
- package/styles/panels.module.css +3 -0
- package/styles/placeholder-block.module.css +29 -0
- package/styles/placeholder-text.module.css +17 -0
- package/styles/placeholders.module.css +3 -0
- package/styles/preview.module.css +34 -0
- package/styles/quiz-answer.module.css +29 -0
- package/styles/screen-placeholder.module.css +5 -0
- package/styles/screen-sizer.module.css +14 -0
- package/styles/screen.module.css +52 -0
- package/styles/screens.module.css +16 -0
- package/styles/share-options.module.css +27 -0
- package/{scss/_placeholders.scss → styles/shared.module.css} +103 -97
- package/styles/slideshow.module.css +28 -0
- package/styles/spinner.module.css +43 -0
- package/styles/styles.css +1 -0
- package/styles/survey-answer.module.css +18 -0
- package/styles/tabs.module.css +4 -0
- package/styles/theme.css +84 -0
- package/styles/transition.module.css +9 -0
- package/{scss/vendor.scss → styles/vendor.css} +16 -30
- package/styles/video-360.module.css +15 -0
- package/scss/_mixins.scss +0 -34
- package/scss/_theme.scss +0 -114
- package/scss/_variables.scss +0 -12
- package/scss/styles.scss +0 -1
- package/scss/upload.scss +0 -1
package/lib/styles.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.container .icon{display:block;position:relative}.container .icon,.container .label{-webkit-transition:-webkit-transform .3s var(--mm-ease-out-ramp);transition:-webkit-transform .3s var(--mm-ease-out-ramp);transition:transform .3s var(--mm-ease-out-ramp);transition:transform .3s var(--mm-ease-out-ramp),-webkit-transform .3s var(--mm-ease-out-ramp)}.container.withoutStyle{color:inherit}.container.asLink,.container.withoutStyle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}.container.asLink{color:var(--mm-primary);font-weight:700}.container.withIcon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.container.withIcon .label{margin-left:.5em;-webkit-transform-origin:0 50%;-ms-transform-origin:0 50%;transform-origin:0 50%}.container.withIcon .right{margin-left:.5em}.container.withIcon.withAnimations.icon-right .label{-webkit-transform-origin:100% 50%;-ms-transform-origin:100% 50%;transform-origin:100% 50%}.container.withIconColumns{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.container.linkDisabled{opacity:.4;pointer-events:none;-webkit-text-decoration:none;text-decoration:none}.container:focus-visible{-webkit-box-shadow:0 0 2px 0 #fff;box-shadow:0 0 2px 0 #fff;-webkit-box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);outline:2px solid #000}
|
|
2
|
+
|
|
3
|
+
.container{display:inline-block;display:-ms-flexbox!important;display:flex!important;height:18px!important;position:relative;width:18px!important;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;background-color:var(--mm-gray-700)!important;border:0;border-radius:4px;color:inherit;cursor:pointer;font-family:inherit;justify-content:center;padding:0;padding:0 10px!important}.container .icon{display:block}
|
|
4
|
+
.actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;margin-top:calc(var(--mm-spacer)*2)}.actions.left{-ms-flex-pack:start;justify-content:flex-start}.actions.right{-ms-flex-pack:end;justify-content:flex-end}
|
|
5
|
+
.withoutStyle{color:inherit;-webkit-text-decoration:none;text-decoration:none}.withoutStyle:hover{color:inherit;-webkit-text-decoration:none;text-decoration:none}
|
|
6
|
+
@-webkit-keyframes rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.container{display:block;height:40px;width:40px}.container .path{color:currentcolor;stroke-linecap:round}.container.animated{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}.container.animated .path{-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}
|
|
7
|
+
|
|
8
|
+
.container .arrow+.arrow:before{content:">"}
|
|
9
|
+
.collapse{-ms-flex-preferred-size:initial;flex-basis:auto;-ms-flex-positive:initial;flex-grow:0}@media screen and (min-width:768px){.collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1}}
|
|
10
|
+
|
|
11
|
+
.container{display:inline-block;position:relative}
|
|
12
|
+
.container{position:static}.modals.hasModals{background-color:rgba(28,28,28,.5);bottom:10px;left:10px;position:fixed;right:10px;top:10px;z-index:1000}
|
|
13
|
+
.container{display:-ms-flexbox;display:flex;height:100%;left:0;overflow-y:auto;position:absolute;top:0;width:100%}.container.center>.inner{margin:auto}.container.top>.inner{margin:0 auto;padding:1.75rem 0}
|
|
14
|
+
.container{display:block;opacity:1;padding:0 5px}
|
|
15
|
+
.container{position:static}
|
|
16
|
+
.container{position:static}
|
|
17
|
+
.container .top{border-bottom:1px solid var(--mm-border-color)}.container .button{display:-ms-flexbox;display:flex;font-size:.9rem;font-weight:700;padding:calc(var(--mm-spacer)/4) 0;text-align:left;width:100%}.container .label{-ms-flex-positive:1;flex-grow:1}.container .content{max-height:0;overflow:hidden;padding-top:var(--mm-spacer);-webkit-transition:max-height .2s ease-out;transition:max-height .2s ease-out}.container.isOpened .content{max-height:500px}
|
|
18
|
+
.container{padding:2px}.container.outline{border:2px solid hsla(0,0%,100%,.6);margin:2px 0}.container.withInvertedColors{mix-blend-mode:difference}.box{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:currentcolor;justify-content:center;margin:0 auto}.withInvertedColors .box{background-color:hsla(0,0%,100%,.6)}.outline .box{background-color:transparent}
|
|
19
|
+
.container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;border:2px dashed var(--mm-gray-600);color:var(--mm-gray-600);justify-content:center}.container .middle{text-align:center}.container.withoutBorder{border:0}.container.invertColor{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800)}
|
|
20
|
+
|
|
21
|
+
.container{overflow:hidden;position:relative}.container .item,.container .items{height:100%;width:100%}.container .item{position:absolute;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.container .item.prev{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}.container .item.current{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.container .item.next{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}
|
|
22
|
+
.icon{color:var(--mm-black)}
|
|
23
|
+
.container{padding:2px;width:100%}.container.withInvertedColors{mix-blend-mode:difference}.line{background-color:currentcolor;height:16px}.withInvertedColors .line{background-color:hsla(0,0%,100%,.6)}
|
|
24
|
+
.container{position:relative}.container .icon{color:var(--mm-black);height:15%;position:absolute;width:15%}.container .icon:first-child{left:40%;top:10%}.container .icon:nth-child(2){left:60%;top:35%}.container .icon:nth-child(3){left:15%;top:50%}.container .icon:nth-child(4){left:60%;top:70%}.container:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAAEyCAYAAABnKjtfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPS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FhhrW3INkLWcoUNz2u10st6R81aLhfGHjWLrCSsCZpd/EwCkLDquXcsOQGn/zldftbqwRnZzhzKLgnC8hNkBfXChr4AZAX1JQGygpmEHTrFjz4HhN2VlR1SwERJgKxgJmHDhACygnphabwGM8LSHghmhL1z9AWAAWFpYgFTwoaaFUC1sH3H7BUYEpYdqcGMsP9kJAC6IuZMl+8HCHurcoMFqhN2UN9c0cQC6oWlLwDMCBtGApAV1AtLXwCYEZa+ADAzSsC2QWAmYX2y3nEawULC0hcAJhKWjiswI6wfrhqSrGBB2MqxEwsYEZb2QDAjbL8eCaAvAMQ5tN2mLwPukRW08NGwlr/8PyArWBA27HFFEwuor2FpDwQzwrJtEJgRlvZAMCMs7YFgRliefQVm8OOwPxxNLGBI2J+cBrDCJacAEBYAYQEQFhAWAGEBEBYQFgBhARAWEBYAYQEQFhAWAGEBEBYQFgBhARAWEBYAYQEQFhAWAGEBEBZy4D8CDACfbQUc6LQcNAAAAABJRU5ErkJggg==");background-size:cover;content:"";display:block;height:100%;left:0;opacity:.2;position:absolute;top:0;width:100%}
|
|
25
|
+
.container .box{-ms-flex-direction:column;flex-direction:column}.container .icon{color:var(--mm-black);margin-bottom:5px}.container .label{color:var(--mm-black);font-size:.75em}
|
|
26
|
+
.container,.frame{position:relative}.screen{left:0;position:absolute;top:0;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}
|
|
27
|
+
.container{background-color:var(--mm-black);color:var(--mm-white);font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.container *,.container :after,.container :before{-webkit-box-sizing:border-box;box-sizing:border-box}.container address,.container blockquote,.container caption,.container dl,.container figure,.container h1,.container h2,.container h3,.container h4,.container h5,.container h6,.container label,.container legend,.container li,.container ol,.container p,.container pre,.container ul{margin:0;padding:0}.container h1,.container h2,.container h3,.container h4,.container h5,.container h6,.container li,.container p{font-weight:inherit}.container .mark,.container mark{color:inherit}
|
|
28
|
+
.screen{background-color:transparent;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
|
|
29
|
+
.stack{overflow:hidden;position:relative}.stack .stackScreen{position:relative;z-index:10}.stack .stackItem{background-color:var(--mm-gray-700);border:1px solid var(--mm-gray-500);left:0;position:absolute;top:0}.stack .stackItem:first-child{z-index:3}.stack .stackItem:nth-child(2){z-index:2}.stack .stackItem:nth-child(3){z-index:1}.screen{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
|
|
30
|
+
.container{mix-blend-mode:difference;padding:10px;text-align:center}.container .icon{color:hsla(0,0%,100%,.6);height:auto;margin:3px auto auto;width:25px}.container .message{background-color:rgb(var(--mm-white),.6);height:23px;margin:3px 1px 0;width:80%}.container .placeholderMessage0{width:65%}.container .placeholderMessage1{margin-left:auto}.container .placeholderMessage2{width:65%}.container .placeholderMessage3{margin-left:auto;width:50%}
|
|
31
|
+
.container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;mix-blend-mode:difference}.container .block{-ms-flex-positive:1;flex-grow:1}.container .answer{color:hsla(0,0%,100%,.6);margin-right:6px;padding:0 1px;width:12px}.container .answerIcon{color:rgb(var(--mm-white),.6);display:block;height:100%;width:100%}.container.good .answer{padding:0}
|
|
32
|
+
.container .box{background-color:transparent;display:block}.container .icon{color:var(--mm-black);height:auto;width:10px}.item{background-color:var(--mm-gray-300);display:-ms-flexbox;display:flex;padding:3px;width:100%}.item+.item{margin-top:5px}.button{font-size:1rem}
|
|
33
|
+
.container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;mix-blend-mode:difference}.container .block{-ms-flex-positive:1;flex-grow:1}.container .percent{margin-left:4px}.container .percentIcon{color:rgb(var(--mm-white),.6);padding:1px}
|
|
34
|
+
.container .screen{height:100%;left:0;overflow:hidden;position:absolute;top:0;-webkit-transform:translate(100%);-ms-transform:translate(100%);transform:translate(100%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.container .screen.visible{-webkit-transform:translate(0);-ms-transform:translate(0);transform:translate(0)}
|
|
35
|
+
.container.fullscreen{height:100%;left:0;position:absolute;top:0;width:100%}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -34,44 +34,37 @@
|
|
|
34
34
|
"module": "es/index.js",
|
|
35
35
|
"style": "assets/css/styles.css",
|
|
36
36
|
"sideEffects": [
|
|
37
|
-
"**/*.css"
|
|
38
|
-
"**/*.scss"
|
|
37
|
+
"**/*.css"
|
|
39
38
|
],
|
|
40
39
|
"exports": {
|
|
41
40
|
".": {
|
|
41
|
+
"types": "./es/index.d.ts",
|
|
42
42
|
"import": "./es/index.js",
|
|
43
43
|
"require": "./lib/index.js"
|
|
44
44
|
},
|
|
45
45
|
"./components": {
|
|
46
|
+
"types": "./es/components.d.ts",
|
|
46
47
|
"require": "./lib/components.js",
|
|
47
48
|
"import": "./es/components.js"
|
|
48
49
|
},
|
|
49
50
|
"./contexts": {
|
|
51
|
+
"types": "./es/contexts.d.ts",
|
|
50
52
|
"require": "./lib/contexts.js",
|
|
51
53
|
"import": "./es/contexts.js"
|
|
52
54
|
},
|
|
53
55
|
"./hooks": {
|
|
56
|
+
"types": "./es/hooks.d.ts",
|
|
54
57
|
"require": "./lib/hooks.js",
|
|
55
58
|
"import": "./es/hooks.js"
|
|
56
59
|
},
|
|
57
60
|
"./utils": {
|
|
61
|
+
"types": "./es/utils.d.ts",
|
|
58
62
|
"require": "./lib/utils.js",
|
|
59
63
|
"import": "./es/utils.js"
|
|
60
64
|
},
|
|
61
|
-
"./
|
|
62
|
-
"./
|
|
63
|
-
"./
|
|
64
|
-
"./scss/placeholders.scss": "./scss/_placeholders.scss",
|
|
65
|
-
"./scss/theme": "./scss/_theme.scss",
|
|
66
|
-
"./scss/theme.scss": "./scss/_theme.scss",
|
|
67
|
-
"./scss/variables": "./scss/_variables.scss",
|
|
68
|
-
"./scss/variables.scss": "./scss/_variables.scss",
|
|
69
|
-
"./scss/styles": "./scss/styles.scss",
|
|
70
|
-
"./scss/styles.scss": "./scss/styles.scss",
|
|
71
|
-
"./scss/upload": "./scss/upload.scss",
|
|
72
|
-
"./scss/upload.scss": "./scss/upload.scss",
|
|
73
|
-
"./scss/vendor": "./scss/vendor.scss",
|
|
74
|
-
"./scss/vendor.scss": "./scss/vendor.scss",
|
|
65
|
+
"./styles/theme": "./styles/theme.css",
|
|
66
|
+
"./styles/theme.css": "./styles/theme.css",
|
|
67
|
+
"./styles/shared.module.css": "./styles/shared.module.css",
|
|
75
68
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
76
69
|
"./assets/css/styles.css": "./assets/css/styles.css",
|
|
77
70
|
"./assets/css/vendor": "./assets/css/vendor.css",
|
|
@@ -88,43 +81,43 @@
|
|
|
88
81
|
"lib",
|
|
89
82
|
"es",
|
|
90
83
|
"assets",
|
|
91
|
-
"
|
|
84
|
+
"styles",
|
|
92
85
|
"components.js",
|
|
93
86
|
"contexts.js",
|
|
94
87
|
"hooks.js",
|
|
95
88
|
"utils.js"
|
|
96
89
|
],
|
|
97
90
|
"scripts": {
|
|
98
|
-
"clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf
|
|
99
|
-
"vendor": "../../scripts/build-
|
|
91
|
+
"clean": "rm -rf es && rm -rf lib && rm -rf assets && rm -rf styles",
|
|
92
|
+
"vendor": "../../scripts/build-css.js ./src/styles/vendor.css ./assets/css/vendor.css",
|
|
100
93
|
"prepublishOnly": "npm run build",
|
|
101
|
-
"build": "../../scripts/prepare-package.sh --
|
|
94
|
+
"build": "../../scripts/prepare-package.sh --types && npm run vendor"
|
|
102
95
|
},
|
|
103
96
|
"devDependencies": {
|
|
104
|
-
"react": "^
|
|
105
|
-
"react-dom": "^
|
|
97
|
+
"react": "^19.2.0",
|
|
98
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
106
99
|
},
|
|
107
100
|
"peerDependencies": {
|
|
108
|
-
"@panneau/displays": "^
|
|
109
|
-
"@panneau/element-button": "^
|
|
110
|
-
"@panneau/element-buttons": "^
|
|
111
|
-
"@panneau/element-dropdown": "^
|
|
112
|
-
"@panneau/element-form-group": "^
|
|
113
|
-
"@panneau/element-grid": "^
|
|
114
|
-
"@panneau/element-icon": "^
|
|
115
|
-
"@panneau/element-link": "^
|
|
116
|
-
"@panneau/element-media-card": "^
|
|
117
|
-
"@panneau/element-media-player": "^
|
|
118
|
-
"@panneau/element-modal": "^
|
|
119
|
-
"@panneau/fields": "^
|
|
120
|
-
"@panneau/filters": "^
|
|
121
|
-
"@panneau/medias": "^
|
|
122
|
-
"@panneau/uppy": "^
|
|
101
|
+
"@panneau/displays": "^4.0.18",
|
|
102
|
+
"@panneau/element-button": "^4.0.18",
|
|
103
|
+
"@panneau/element-buttons": "^4.0.18",
|
|
104
|
+
"@panneau/element-dropdown": "^4.0.18",
|
|
105
|
+
"@panneau/element-form-group": "^4.0.18",
|
|
106
|
+
"@panneau/element-grid": "^4.0.18",
|
|
107
|
+
"@panneau/element-icon": "^4.0.18",
|
|
108
|
+
"@panneau/element-link": "^4.0.18",
|
|
109
|
+
"@panneau/element-media-card": "^4.0.18",
|
|
110
|
+
"@panneau/element-media-player": "^4.0.18",
|
|
111
|
+
"@panneau/element-modal": "^4.0.18",
|
|
112
|
+
"@panneau/fields": "^4.0.18",
|
|
113
|
+
"@panneau/filters": "^4.0.18",
|
|
114
|
+
"@panneau/medias": "^4.0.18",
|
|
115
|
+
"@panneau/uppy": "^4.0.18",
|
|
123
116
|
"@uppy/core": "^5.1.1",
|
|
124
117
|
"@uppy/dashboard": "^5.0.4",
|
|
125
118
|
"@uppy/react": "^5.1.1",
|
|
126
|
-
"react": "^
|
|
127
|
-
"react-dom": "^
|
|
119
|
+
"react": "^19.2.0",
|
|
120
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
128
121
|
},
|
|
129
122
|
"dependencies": {
|
|
130
123
|
"@babel/runtime": "^7.13.10",
|
|
@@ -138,8 +131,8 @@
|
|
|
138
131
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
139
132
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
140
133
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
141
|
-
"@react-spring/core": "^
|
|
142
|
-
"@react-spring/web": "^
|
|
134
|
+
"@react-spring/core": "^10.0.3",
|
|
135
|
+
"@react-spring/web": "^10.0.3",
|
|
143
136
|
"@use-gesture/react": "^10.3.1",
|
|
144
137
|
"bootstrap": "^5.3.7",
|
|
145
138
|
"change-case": "^5.4.4",
|
|
@@ -150,12 +143,11 @@
|
|
|
150
143
|
"flat": "^6.0.1",
|
|
151
144
|
"hoist-non-react-statics": "^3.3.2",
|
|
152
145
|
"js-cookie": "^3.0.5",
|
|
153
|
-
"lodash": "^4.17.
|
|
154
|
-
"prop-types": "^15.7.2",
|
|
146
|
+
"lodash": "^4.17.23",
|
|
155
147
|
"query-string": "^9.0.0",
|
|
156
148
|
"raf": "^3.4.1",
|
|
157
149
|
"react-helmet": "^6.1.0",
|
|
158
|
-
"react-intl": "^
|
|
150
|
+
"react-intl": "^8.1.3",
|
|
159
151
|
"screenfull": "^5.2.0",
|
|
160
152
|
"slugify": "^1.6.5",
|
|
161
153
|
"tinycolor2": "^1.4.2",
|
|
@@ -168,5 +160,6 @@
|
|
|
168
160
|
"access": "public",
|
|
169
161
|
"registry": "https://registry.npmjs.org/"
|
|
170
162
|
},
|
|
171
|
-
"gitHead": "
|
|
163
|
+
"gitHead": "04b8519c3a3ddace5a21497e22faa11865d57f6d",
|
|
164
|
+
"types": "es/index.d.ts"
|
|
172
165
|
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* stylelint-disable selector-class-pattern */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Bootstrap 5.3 CSS custom property overrides
|
|
5
|
+
* Replaces the Sass variable overrides from _theme.scss
|
|
6
|
+
* These override Bootstrap's default :root values
|
|
7
|
+
*/
|
|
8
|
+
:root,
|
|
9
|
+
[data-bs-theme='light'] {
|
|
10
|
+
/* Colors */
|
|
11
|
+
--bs-blue: #2151ff;
|
|
12
|
+
--bs-purple: #a13dff;
|
|
13
|
+
--bs-red: #ff2945;
|
|
14
|
+
--bs-yellow: #ffe535;
|
|
15
|
+
--bs-green: #0ed88f;
|
|
16
|
+
--bs-white: #fff;
|
|
17
|
+
--bs-black: #1c1c1c;
|
|
18
|
+
|
|
19
|
+
/* Gray scale */
|
|
20
|
+
--bs-gray-100: #f5f5f5;
|
|
21
|
+
--bs-gray-200: #e9e9e9;
|
|
22
|
+
--bs-gray-300: #dedede;
|
|
23
|
+
--bs-gray-400: #b3b3b3;
|
|
24
|
+
--bs-gray-500: #adadad;
|
|
25
|
+
--bs-gray-600: #6c6c6c;
|
|
26
|
+
--bs-gray-700: #494949;
|
|
27
|
+
--bs-gray-800: #343434;
|
|
28
|
+
--bs-gray-900: #2b2b2b;
|
|
29
|
+
|
|
30
|
+
/* Theme colors */
|
|
31
|
+
--bs-primary: #a13dff;
|
|
32
|
+
--bs-primary-rgb: 161, 61, 255;
|
|
33
|
+
--bs-secondary: #e9e9e9;
|
|
34
|
+
--bs-secondary-rgb: 233, 233, 233;
|
|
35
|
+
--bs-success: #0ed88f;
|
|
36
|
+
--bs-success-rgb: 14, 216, 143;
|
|
37
|
+
--bs-info: #2151ff;
|
|
38
|
+
--bs-info-rgb: 33, 81, 255;
|
|
39
|
+
--bs-warning: #ffe535;
|
|
40
|
+
--bs-warning-rgb: 255, 229, 53;
|
|
41
|
+
--bs-danger: #ff2945;
|
|
42
|
+
--bs-danger-rgb: 255, 41, 69;
|
|
43
|
+
--bs-light: #fff;
|
|
44
|
+
--bs-light-rgb: 255, 255, 255;
|
|
45
|
+
--bs-dark: #343434;
|
|
46
|
+
--bs-dark-rgb: 52, 52, 52;
|
|
47
|
+
|
|
48
|
+
/* Body (dark theme) */
|
|
49
|
+
--bs-body-bg: #1c1c1c;
|
|
50
|
+
--bs-body-bg-rgb: 28, 28, 28;
|
|
51
|
+
--bs-body-color: #f5f5f5;
|
|
52
|
+
--bs-body-color-rgb: 245, 245, 245;
|
|
53
|
+
--bs-body-font-size: 0.9rem;
|
|
54
|
+
--bs-body-line-height: 1.4;
|
|
55
|
+
|
|
56
|
+
/* Typography */
|
|
57
|
+
--bs-font-sans-serif: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
58
|
+
'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
59
|
+
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
60
|
+
|
|
61
|
+
/* Links */
|
|
62
|
+
--bs-link-color: #a13dff;
|
|
63
|
+
--bs-link-color-rgb: 161, 61, 255;
|
|
64
|
+
--bs-link-hover-color: #812dcc;
|
|
65
|
+
--bs-link-hover-color-rgb: 129, 45, 204;
|
|
66
|
+
|
|
67
|
+
/* Emphasis */
|
|
68
|
+
--bs-emphasis-color: #fff;
|
|
69
|
+
--bs-emphasis-color-rgb: 255, 255, 255;
|
|
70
|
+
|
|
71
|
+
/* Secondary/tertiary colors for dark theme */
|
|
72
|
+
--bs-secondary-color: rgba(245, 245, 245, 0.75);
|
|
73
|
+
--bs-secondary-color-rgb: 245, 245, 245;
|
|
74
|
+
--bs-secondary-bg: #343434;
|
|
75
|
+
--bs-secondary-bg-rgb: 52, 52, 52;
|
|
76
|
+
--bs-tertiary-color: rgba(245, 245, 245, 0.5);
|
|
77
|
+
--bs-tertiary-color-rgb: 245, 245, 245;
|
|
78
|
+
--bs-tertiary-bg: #2b2b2b;
|
|
79
|
+
--bs-tertiary-bg-rgb: 43, 43, 43;
|
|
80
|
+
|
|
81
|
+
/* Border */
|
|
82
|
+
--bs-border-color: rgba(255, 255, 255, 0.13);
|
|
83
|
+
--bs-border-color-translucent: rgba(255, 255, 255, 0.13);
|
|
84
|
+
|
|
85
|
+
/* Focus ring - purple primary */
|
|
86
|
+
--bs-focus-ring-color: rgba(161, 61, 255, 0.25);
|
|
87
|
+
|
|
88
|
+
/* Text-emphasis variations */
|
|
89
|
+
--bs-primary-text-emphasis: #c98aff;
|
|
90
|
+
--bs-secondary-text-emphasis: #f2f2f2;
|
|
91
|
+
--bs-success-text-emphasis: #6ee8bc;
|
|
92
|
+
--bs-info-text-emphasis: #7a9bff;
|
|
93
|
+
--bs-warning-text-emphasis: #ffee80;
|
|
94
|
+
--bs-danger-text-emphasis: #ff8090;
|
|
95
|
+
|
|
96
|
+
/* Subtle backgrounds */
|
|
97
|
+
--bs-primary-bg-subtle: #200d33;
|
|
98
|
+
--bs-secondary-bg-subtle: #2e2e2e;
|
|
99
|
+
--bs-success-bg-subtle: #031b12;
|
|
100
|
+
--bs-info-bg-subtle: #071033;
|
|
101
|
+
--bs-warning-bg-subtle: #332e0a;
|
|
102
|
+
--bs-danger-bg-subtle: #330a0e;
|
|
103
|
+
|
|
104
|
+
/* Subtle borders */
|
|
105
|
+
--bs-primary-border-subtle: #511999;
|
|
106
|
+
--bs-secondary-border-subtle: #5c5c5c;
|
|
107
|
+
--bs-success-border-subtle: #075636;
|
|
108
|
+
--bs-info-border-subtle: #143199;
|
|
109
|
+
--bs-warning-border-subtle: #998a1f;
|
|
110
|
+
--bs-danger-border-subtle: #991829;
|
|
111
|
+
}
|