@geoinsight/react-components 1.1.2 → 1.1.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/dist/cjs/components/checkbox/index.d.ts +4 -0
- package/dist/cjs/components/checkbox/index.stories.d.ts +10 -0
- package/dist/cjs/components/checkbox/index.types.d.ts +48 -0
- package/dist/cjs/components/input/index.stories.d.ts +1 -0
- package/dist/cjs/index.css +276 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/checkbox/index.d.ts +4 -0
- package/dist/esm/components/checkbox/index.stories.d.ts +10 -0
- package/dist/esm/components/checkbox/index.types.d.ts +48 -0
- package/dist/esm/components/input/index.stories.d.ts +1 -0
- package/dist/esm/index.css +276 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -3
- package/storybook-static/145.bf71aa82.iframe.bundle.js +2 -0
- package/storybook-static/145.bf71aa82.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/203.dbe95018.iframe.bundle.js +1 -0
- package/storybook-static/286.82d3e377.iframe.bundle.js +1 -0
- package/storybook-static/294.cc038596.iframe.bundle.js +1 -0
- package/storybook-static/421.8dbbcf32.iframe.bundle.js +1 -0
- package/storybook-static/425.2e91814e.iframe.bundle.js +1 -0
- package/storybook-static/503.3722f1cb.iframe.bundle.js +2 -0
- package/storybook-static/503.3722f1cb.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/584.f99ec69d.iframe.bundle.js +1 -0
- package/storybook-static/647.80bf61d7.iframe.bundle.js +1 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js +411 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js.LICENSE.txt +53 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js.map +1 -0
- package/storybook-static/71.3c04378a.iframe.bundle.js +44 -0
- package/storybook-static/71.3c04378a.iframe.bundle.js.map +1 -0
- package/storybook-static/710.7480b175.iframe.bundle.js +1 -0
- package/storybook-static/765.318ce5aa.iframe.bundle.js +2 -0
- package/storybook-static/765.318ce5aa.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/819.b2f05968.iframe.bundle.js +1 -0
- package/storybook-static/857.27880e38.iframe.bundle.js +1 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js +134 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js.LICENSE.txt +16 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js.map +1 -0
- package/storybook-static/components-button-index-stories.b9043eb5.iframe.bundle.js +1 -0
- package/storybook-static/components-checkbox-index-stories.806a4da2.iframe.bundle.js +2 -0
- package/storybook-static/components-checkbox-index-stories.806a4da2.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-form-index-stories.98e14f53.iframe.bundle.js +1 -0
- package/storybook-static/components-input-index-stories.53dbac5d.iframe.bundle.js +2 -0
- package/storybook-static/components-input-index-stories.53dbac5d.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-loading-index-stories.6082476b.iframe.bundle.js +2 -0
- package/storybook-static/components-loading-index-stories.6082476b.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-menu-index-stories.12782e23.iframe.bundle.js +1 -0
- package/storybook-static/components-modal-index-stories.280a7455.iframe.bundle.js +1 -0
- package/storybook-static/components-range-index-stories.d3287106.iframe.bundle.js +1 -0
- package/storybook-static/components-select-index-stories.12475707.iframe.bundle.js +1 -0
- package/storybook-static/components-text-area-index-stories.b8cf9f86.iframe.bundle.js +2 -0
- package/storybook-static/components-text-area-index-stories.b8cf9f86.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-loading-index-stories.432db9d9.iframe.bundle.js +2 -0
- package/storybook-static/context-loading-index-stories.432db9d9.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-modal-index-stories.eb9322f7.iframe.bundle.js +1 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +355 -0
- package/storybook-static/index.html +127 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.952e99c7.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.8e0cbb62.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +1 -0
- package/storybook-static/sb-manager/chunk-5QAFKPS7.js +7 -0
- package/storybook-static/sb-manager/chunk-7PRFHFSS.js +9 -0
- package/storybook-static/sb-manager/chunk-XE6LDGTE.js +406 -0
- package/storybook-static/sb-manager/chunk-YDUB7CS6.js +348 -0
- package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
- package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +112 -0
- package/storybook-static/static/media/code-brackets.2e1112d7.svg +1 -0
- package/storybook-static/static/media/colors.a4bd0486.svg +1 -0
- package/storybook-static/static/media/comments.a3859089.svg +1 -0
- package/storybook-static/static/media/direction.b770f9af.svg +1 -0
- package/storybook-static/static/media/flow.edad2ac1.svg +1 -0
- package/storybook-static/static/media/loading.cbc96c95.gif +0 -0
- package/storybook-static/static/media/plugin.d494b228.svg +1 -0
- package/storybook-static/static/media/repo.6d496322.svg +1 -0
- package/storybook-static/static/media/spinner_2.6f37ee56.png +0 -0
- package/storybook-static/static/media/stackalt.dba9fbb3.svg +1 -0
- package/storybook-static/stories-Introduction-stories-mdx.03fceaf1.iframe.bundle.js +2 -0
- package/storybook-static/stories-Introduction-stories-mdx.03fceaf1.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/stories.json +1 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +0 -1
- package/yarn-error.log +0 -12301
package/dist/esm/index.css
CHANGED
|
@@ -585,6 +585,109 @@ h6 {
|
|
|
585
585
|
text-decoration: overline;
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
+
.input[type="checkbox"] {
|
|
589
|
+
background: #fbfbfb;
|
|
590
|
+
border-radius: 2em;
|
|
591
|
+
padding: 2px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* <div class="checkbox-wrapper-7">
|
|
595
|
+
<input class="tgl tgl-ios" id="cb2-7" type="checkbox"/>
|
|
596
|
+
<label class="tgl-btn" for="cb2-7">
|
|
597
|
+
</div>
|
|
598
|
+
|
|
599
|
+
<style>
|
|
600
|
+
.checkbox-wrapper-7 .tgl {
|
|
601
|
+
display: none;
|
|
602
|
+
}
|
|
603
|
+
.checkbox-wrapper-7 .tgl,
|
|
604
|
+
.checkbox-wrapper-7 .tgl:after,
|
|
605
|
+
.checkbox-wrapper-7 .tgl:before,
|
|
606
|
+
.checkbox-wrapper-7 .tgl *,
|
|
607
|
+
.checkbox-wrapper-7 .tgl *:after,
|
|
608
|
+
.checkbox-wrapper-7 .tgl *:before,
|
|
609
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn {
|
|
610
|
+
box-sizing: border-box;
|
|
611
|
+
}
|
|
612
|
+
.checkbox-wrapper-7 .tgl::-moz-selection,
|
|
613
|
+
.checkbox-wrapper-7 .tgl:after::-moz-selection,
|
|
614
|
+
.checkbox-wrapper-7 .tgl:before::-moz-selection,
|
|
615
|
+
.checkbox-wrapper-7 .tgl *::-moz-selection,
|
|
616
|
+
.checkbox-wrapper-7 .tgl *:after::-moz-selection,
|
|
617
|
+
.checkbox-wrapper-7 .tgl *:before::-moz-selection,
|
|
618
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn::-moz-selection,
|
|
619
|
+
.checkbox-wrapper-7 .tgl::selection,
|
|
620
|
+
.checkbox-wrapper-7 .tgl:after::selection,
|
|
621
|
+
.checkbox-wrapper-7 .tgl:before::selection,
|
|
622
|
+
.checkbox-wrapper-7 .tgl *::selection,
|
|
623
|
+
.checkbox-wrapper-7 .tgl *:after::selection,
|
|
624
|
+
.checkbox-wrapper-7 .tgl *:before::selection,
|
|
625
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn::selection {
|
|
626
|
+
background: none;
|
|
627
|
+
}
|
|
628
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn {
|
|
629
|
+
outline: 0;
|
|
630
|
+
display: block;
|
|
631
|
+
width: 4em;
|
|
632
|
+
height: 2em;
|
|
633
|
+
position: relative;
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
-webkit-user-select: none;
|
|
636
|
+
-moz-user-select: none;
|
|
637
|
+
-ms-user-select: none;
|
|
638
|
+
user-select: none;
|
|
639
|
+
}
|
|
640
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn:after,
|
|
641
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn:before {
|
|
642
|
+
position: relative;
|
|
643
|
+
display: block;
|
|
644
|
+
content: "";
|
|
645
|
+
width: 50%;
|
|
646
|
+
height: 100%;
|
|
647
|
+
}
|
|
648
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn:after {
|
|
649
|
+
left: 0;
|
|
650
|
+
}
|
|
651
|
+
.checkbox-wrapper-7 .tgl + .tgl-btn:before {
|
|
652
|
+
display: none;
|
|
653
|
+
}
|
|
654
|
+
.checkbox-wrapper-7 .tgl:checked + .tgl-btn:after {
|
|
655
|
+
left: 50%;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.checkbox-wrapper-7 .tgl-ios + .tgl-btn {
|
|
659
|
+
background: #fbfbfb;
|
|
660
|
+
border-radius: 2em;
|
|
661
|
+
padding: 2px;
|
|
662
|
+
transition: all 0.4s ease;
|
|
663
|
+
border: 1px solid #e8eae9;
|
|
664
|
+
}
|
|
665
|
+
.checkbox-wrapper-7 .tgl-ios + .tgl-btn:after {
|
|
666
|
+
border-radius: 2em;
|
|
667
|
+
background: #fbfbfb;
|
|
668
|
+
transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
|
|
669
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
|
|
670
|
+
}
|
|
671
|
+
.checkbox-wrapper-7 .tgl-ios + .tgl-btn:hover:after {
|
|
672
|
+
will-change: padding;
|
|
673
|
+
}
|
|
674
|
+
.checkbox-wrapper-7 .tgl-ios + .tgl-btn:active {
|
|
675
|
+
box-shadow: inset 0 0 0 2em #e8eae9;
|
|
676
|
+
}
|
|
677
|
+
.checkbox-wrapper-7 .tgl-ios + .tgl-btn:active:after {
|
|
678
|
+
padding-right: 0.8em;
|
|
679
|
+
}
|
|
680
|
+
.checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn {
|
|
681
|
+
background: #86d993;
|
|
682
|
+
}
|
|
683
|
+
.checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn:active {
|
|
684
|
+
box-shadow: none;
|
|
685
|
+
}
|
|
686
|
+
.checkbox-wrapper-7 .tgl-ios:checked + .tgl-btn:active:after {
|
|
687
|
+
margin-left: -0.8em;
|
|
688
|
+
}
|
|
689
|
+
</style> */
|
|
690
|
+
|
|
588
691
|
.textarea {
|
|
589
692
|
margin-bottom: var(--spacing-8);
|
|
590
693
|
position: relative;
|
|
@@ -961,4 +1064,176 @@ h6 {
|
|
|
961
1064
|
min-width: none;
|
|
962
1065
|
max-width: 20rem;
|
|
963
1066
|
}
|
|
964
|
-
}
|
|
1067
|
+
}
|
|
1068
|
+
@property --angle {
|
|
1069
|
+
syntax: "<angle>";
|
|
1070
|
+
initial-value: 0deg;
|
|
1071
|
+
inherits: false;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.checkbox__header {
|
|
1075
|
+
align-items: center;
|
|
1076
|
+
display: flex;
|
|
1077
|
+
justify-content: center;
|
|
1078
|
+
width: 100%;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.checkbox-subgroup {
|
|
1082
|
+
align-items: center;
|
|
1083
|
+
display: flex;
|
|
1084
|
+
flex-direction: column;
|
|
1085
|
+
position: relative;
|
|
1086
|
+
width: 100%;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.checkbox {
|
|
1090
|
+
align-content: center;
|
|
1091
|
+
appearance: none;
|
|
1092
|
+
-webkit-appearance: none;
|
|
1093
|
+
background-color: var(--color-main-background);
|
|
1094
|
+
border-radius: 1rem;
|
|
1095
|
+
display: flex;
|
|
1096
|
+
justify-content: start;
|
|
1097
|
+
padding: 0.1rem;
|
|
1098
|
+
transform-style: preserve-3d;
|
|
1099
|
+
width: 4rem;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
[data-theme="light"] .checkbox:checked {
|
|
1103
|
+
background-color: color-mix(
|
|
1104
|
+
in srgb,
|
|
1105
|
+
var(--color-primary-dark),
|
|
1106
|
+
var(--color-main-background)
|
|
1107
|
+
);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
[data-theme="dark"] .checkbox:checked {
|
|
1111
|
+
background-color: color-mix(
|
|
1112
|
+
in srgb,
|
|
1113
|
+
var(--color-primary-darker),
|
|
1114
|
+
var(--color-main-color)
|
|
1115
|
+
);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.checkbox::after {
|
|
1119
|
+
animation: 1s spinout linear;
|
|
1120
|
+
background-image: conic-gradient(
|
|
1121
|
+
from var(--angle),
|
|
1122
|
+
transparent 70%,
|
|
1123
|
+
var(--conic-color-0),
|
|
1124
|
+
var(--conic-color-1),
|
|
1125
|
+
var(--conic-color-2)
|
|
1126
|
+
);
|
|
1127
|
+
background-color: color-mix(
|
|
1128
|
+
in srgb,
|
|
1129
|
+
transparent 20%,
|
|
1130
|
+
var(--color-main-color)
|
|
1131
|
+
);
|
|
1132
|
+
border-radius: 1rem;
|
|
1133
|
+
content: "";
|
|
1134
|
+
height: 1.5rem;
|
|
1135
|
+
left: 50%;
|
|
1136
|
+
padding: 0.2rem;
|
|
1137
|
+
position: absolute;
|
|
1138
|
+
top: 50%;
|
|
1139
|
+
transform: translateZ(-1px);
|
|
1140
|
+
translate: -50% -50%;
|
|
1141
|
+
width: 4rem;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.checkbox:checked::after {
|
|
1145
|
+
animation: 2s spin linear, 2s perc linear;
|
|
1146
|
+
animation-fill-mode: none, forwards;
|
|
1147
|
+
background-color: color-mix(
|
|
1148
|
+
in srgb,
|
|
1149
|
+
transparent var(--perc),
|
|
1150
|
+
var(--color-main-color)
|
|
1151
|
+
);
|
|
1152
|
+
background-image: conic-gradient(
|
|
1153
|
+
from var(--angle),
|
|
1154
|
+
transparent 70%,
|
|
1155
|
+
var(--conic-color-0),
|
|
1156
|
+
var(--conic-color-1),
|
|
1157
|
+
var(--conic-color-2)
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.checkbox::before {
|
|
1162
|
+
content: "";
|
|
1163
|
+
width: 2.25rem;
|
|
1164
|
+
height: 1.5rem;
|
|
1165
|
+
transform: translate(0, 0);
|
|
1166
|
+
background-color: color-mix(
|
|
1167
|
+
in srgb,
|
|
1168
|
+
transparent 80%,
|
|
1169
|
+
var(--color-primary-dark)
|
|
1170
|
+
);
|
|
1171
|
+
border-radius: 1rem;
|
|
1172
|
+
transition: transform 0.2s ease-out, background-color 0.2s ease-out;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.checkbox:checked::before {
|
|
1176
|
+
background-color: var(--color-primary-darker);
|
|
1177
|
+
transform: translate(1.5rem, 0);
|
|
1178
|
+
transition: transform 0.2s ease-in, background-color 0.2s ease-in;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.checkbox:hover::before {
|
|
1182
|
+
background-color: var(--color-primary-darker);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.checkbox:disabled {
|
|
1186
|
+
opacity: 0.5;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.checkbox--error::after {
|
|
1190
|
+
background-color: var(--color-danger);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
@keyframes perc {
|
|
1194
|
+
0% {
|
|
1195
|
+
--perc: 20%;
|
|
1196
|
+
}
|
|
1197
|
+
50% {
|
|
1198
|
+
--perc: 10%;
|
|
1199
|
+
}
|
|
1200
|
+
100% {
|
|
1201
|
+
--perc: 0%;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
@keyframes spin {
|
|
1206
|
+
0% {
|
|
1207
|
+
--angle: 0deg;
|
|
1208
|
+
--conic-color-0: var(--color-light-base);
|
|
1209
|
+
--conic-color-1: var(--color-light-bright);
|
|
1210
|
+
--conic-color-2: var(--color-light-brighter);
|
|
1211
|
+
}
|
|
1212
|
+
99% {
|
|
1213
|
+
--conic-color-0: var(--color-light-base);
|
|
1214
|
+
--conic-color-1: var(--color-light-bright);
|
|
1215
|
+
--conic-color-2: var(--color-light-brighter);
|
|
1216
|
+
}
|
|
1217
|
+
100% {
|
|
1218
|
+
--angle: 360deg;
|
|
1219
|
+
--conic-color-0: var(--color-main-color);
|
|
1220
|
+
--conic-color-1: var(--color-main-color);
|
|
1221
|
+
--conic-color-2: var(--color-main-color);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
@keyframes spinout {
|
|
1226
|
+
from {
|
|
1227
|
+
--angle: 360deg;
|
|
1228
|
+
--conic-color-0: var(--color-light-base);
|
|
1229
|
+
--conic-color-1: var(--color-light-bright);
|
|
1230
|
+
--conic-color-2: var(--color-light-brighter);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
to {
|
|
1234
|
+
--angle: 0deg;
|
|
1235
|
+
--conic-color-0: var(--color-light-base);
|
|
1236
|
+
--conic-color-1: var(--color-light-bright);
|
|
1237
|
+
--conic-color-2: var(--color-light-brighter);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { Modal } from "./components/modal";
|
|
|
11
11
|
export { Select } from "./components/select";
|
|
12
12
|
export { TextArea } from "./components/text-area";
|
|
13
13
|
export { Range } from "./components/range";
|
|
14
|
+
export { Checkbox } from "./components/checkbox";
|
|
14
15
|
export { LoadingContext, LoadingProvider, useLoading } from "./context/loading";
|
|
15
16
|
export { ModalContext, ModalProvider, useModal } from "./context/modal";
|
|
16
17
|
export { ThemeContext, ThemeProvider, useTheme } from "./context/theme";
|
package/dist/esm/index.js
CHANGED
|
@@ -526,6 +526,17 @@ function Range({ initial = 0, period, values, handleSelected }) {
|
|
|
526
526
|
} }), jsx(RangeThumb, { thumbPosition: thumbPosition, handleOverContent: handleOverContent, handleDownThumb: handleDownThumb })] }), jsx(RangeControls, { indexPosition: indexPosition, isPlay: isPlay, handlePlay: handlePlay, handleStop: handleStop })] }));
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
+
function Checkbox({ backgroundColor, classNameCheckbox = "", classNameGroup = "", classNameLabel, error = {
|
|
530
|
+
is: false,
|
|
531
|
+
message: "",
|
|
532
|
+
},
|
|
533
|
+
// icon,
|
|
534
|
+
inputRef, isRequired, label, placeholder = "Insert value", styleGroup, ...rest }) {
|
|
535
|
+
return (jsxs("div", { className: clsx("input-group", classNameGroup), style: { backgroundColor: backgroundColor, ...styleGroup }, children: [jsxs("div", { className: "checkbox__header", children: [label && jsx("label", { className: classNameLabel, children: label }), error && error.is && (jsx("span", { className: "input__header--error", children: error.message }))] }), jsx("div", { className: "checkbox-subgroup", children: jsx("input", { ref: inputRef, type: "checkbox", required: isRequired, className: clsx("checkbox", error.is ? "checkbox--error" : "",
|
|
536
|
+
// icon?.position === "left" && "input--icon",
|
|
537
|
+
classNameCheckbox), placeholder: placeholder, ...rest }) })] }));
|
|
538
|
+
}
|
|
539
|
+
|
|
529
540
|
const LoadingContext = createContext(undefined);
|
|
530
541
|
function loadingReducer(state, action) {
|
|
531
542
|
switch (action.type) {
|
|
@@ -657,5 +668,5 @@ function useModal({} = {}) {
|
|
|
657
668
|
return context;
|
|
658
669
|
}
|
|
659
670
|
|
|
660
|
-
export { Button, Form, FormInput, FormSelect, FormTextArea, Input, Loading, LoadingContext, LoadingProvider, Menu, Modal, ModalContext, ModalProvider, Range, Select, TextArea, ThemeContext, ThemeProvider, useLoading, useModal, useTheme };
|
|
671
|
+
export { Button, Checkbox, Form, FormInput, FormSelect, FormTextArea, Input, Loading, LoadingContext, LoadingProvider, Menu, Modal, ModalContext, ModalProvider, Range, Select, TextArea, ThemeContext, ThemeProvider, useLoading, useModal, useTheme };
|
|
661
672
|
//# sourceMappingURL=index.js.map
|