sellmate-design-system-react 0.1.10 → 0.1.11
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/components/SActionModal/SActionModal.cjs +3 -1
- package/dist/components/SActionModal/SActionModal.cjs.map +1 -1
- package/dist/components/SActionModal/SActionModal.js +3 -1
- package/dist/components/SActionModal/SActionModal.js.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs +15 -2
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +3 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.js +15 -2
- package/dist/components/SBarcodeInput/SBarcodeInput.js.map +1 -1
- package/dist/components/SCalendar/SCalendar.cjs +2 -0
- package/dist/components/SCalendar/SCalendar.cjs.map +1 -1
- package/dist/components/SCalendar/SCalendar.js +2 -0
- package/dist/components/SCalendar/SCalendar.js.map +1 -1
- package/dist/components/SChip/SChip.cjs +2 -0
- package/dist/components/SChip/SChip.cjs.map +1 -1
- package/dist/components/SChip/SChip.js +2 -0
- package/dist/components/SChip/SChip.js.map +1 -1
- package/dist/components/SChipInput/SChipInput.cjs +21 -3
- package/dist/components/SChipInput/SChipInput.cjs.map +1 -1
- package/dist/components/SChipInput/SChipInput.d.ts +5 -0
- package/dist/components/SChipInput/SChipInput.js +21 -3
- package/dist/components/SChipInput/SChipInput.js.map +1 -1
- package/dist/components/SChipInput/index.d.ts +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.cjs +13 -10
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.d.ts +7 -4
- package/dist/components/SConfirmModal/SConfirmModal.js +13 -10
- package/dist/components/SConfirmModal/SConfirmModal.js.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.cjs +15 -2
- package/dist/components/SDatePicker/SDatePicker.cjs.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.d.ts +3 -1
- package/dist/components/SDatePicker/SDatePicker.js +15 -2
- package/dist/components/SDatePicker/SDatePicker.js.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs +15 -2
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +3 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.js +15 -2
- package/dist/components/SDateRangePicker/SDateRangePicker.js.map +1 -1
- package/dist/components/SDropdownButton/SDropdownButton.cjs +2 -0
- package/dist/components/SDropdownButton/SDropdownButton.cjs.map +1 -1
- package/dist/components/SDropdownButton/SDropdownButton.js +2 -0
- package/dist/components/SDropdownButton/SDropdownButton.js.map +1 -1
- package/dist/components/SField/SField.cjs +13 -2
- package/dist/components/SField/SField.cjs.map +1 -1
- package/dist/components/SField/SField.d.ts +4 -1
- package/dist/components/SField/SField.js +13 -2
- package/dist/components/SField/SField.js.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.cjs +16 -3
- package/dist/components/SFilePicker/SFilePicker.cjs.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.d.ts +3 -1
- package/dist/components/SFilePicker/SFilePicker.js +16 -3
- package/dist/components/SFilePicker/SFilePicker.js.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.cjs +2 -0
- package/dist/components/SGhostButton/SGhostButton.cjs.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.js +2 -0
- package/dist/components/SGhostButton/SGhostButton.js.map +1 -1
- package/dist/components/SGuide/SGuide.cjs +2 -0
- package/dist/components/SGuide/SGuide.cjs.map +1 -1
- package/dist/components/SGuide/SGuide.js +2 -0
- package/dist/components/SGuide/SGuide.js.map +1 -1
- package/dist/components/SInput/SInput.cjs +15 -2
- package/dist/components/SInput/SInput.cjs.map +1 -1
- package/dist/components/SInput/SInput.d.ts +4 -1
- package/dist/components/SInput/SInput.js +15 -2
- package/dist/components/SInput/SInput.js.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs +496 -206
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +27 -6
- package/dist/components/SKeyValueTable/SKeyValueTable.js +495 -205
- package/dist/components/SKeyValueTable/SKeyValueTable.js.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.cjs +3 -1
- package/dist/components/SLoadingModal/SLoadingModal.cjs.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.js +3 -1
- package/dist/components/SLoadingModal/SLoadingModal.js.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.cjs +3 -1
- package/dist/components/SModalContainer/SModalContainer.cjs.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.js +3 -1
- package/dist/components/SModalContainer/SModalContainer.js.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.cjs +15 -2
- package/dist/components/SNumberInput/SNumberInput.cjs.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.d.ts +2 -0
- package/dist/components/SNumberInput/SNumberInput.js +15 -2
- package/dist/components/SNumberInput/SNumberInput.js.map +1 -1
- package/dist/components/SPopover/SPopover.cjs +2 -0
- package/dist/components/SPopover/SPopover.cjs.map +1 -1
- package/dist/components/SPopover/SPopover.js +2 -0
- package/dist/components/SPopover/SPopover.js.map +1 -1
- package/dist/components/SPortal/SPortal.cjs +2 -0
- package/dist/components/SPortal/SPortal.cjs.map +1 -1
- package/dist/components/SPortal/SPortal.js +2 -0
- package/dist/components/SPortal/SPortal.js.map +1 -1
- package/dist/components/SSelect/SSelect.cjs +530 -262
- package/dist/components/SSelect/SSelect.cjs.map +1 -1
- package/dist/components/SSelect/SSelect.d.ts +4 -2
- package/dist/components/SSelect/SSelect.js +531 -262
- package/dist/components/SSelect/SSelect.js.map +1 -1
- package/dist/components/STable/STable.cjs +529 -261
- package/dist/components/STable/STable.cjs.map +1 -1
- package/dist/components/STable/STable.js +530 -261
- package/dist/components/STable/STable.js.map +1 -1
- package/dist/components/STextLink/STextLink.cjs +2 -0
- package/dist/components/STextLink/STextLink.cjs.map +1 -1
- package/dist/components/STextLink/STextLink.js +2 -0
- package/dist/components/STextLink/STextLink.js.map +1 -1
- package/dist/components/STextarea/STextarea.cjs +15 -2
- package/dist/components/STextarea/STextarea.cjs.map +1 -1
- package/dist/components/STextarea/STextarea.d.ts +2 -0
- package/dist/components/STextarea/STextarea.js +15 -2
- package/dist/components/STextarea/STextarea.js.map +1 -1
- package/dist/components/SToast/SToast.cjs +2 -0
- package/dist/components/SToast/SToast.cjs.map +1 -1
- package/dist/components/SToast/SToast.js +2 -0
- package/dist/components/SToast/SToast.js.map +1 -1
- package/dist/components/SToast/SToastContainer.cjs +2 -0
- package/dist/components/SToast/SToastContainer.cjs.map +1 -1
- package/dist/components/SToast/SToastContainer.js +2 -0
- package/dist/components/SToast/SToastContainer.js.map +1 -1
- package/dist/components/STooltip/STooltip.cjs +2 -0
- package/dist/components/STooltip/STooltip.cjs.map +1 -1
- package/dist/components/STooltip/STooltip.js +2 -0
- package/dist/components/STooltip/STooltip.js.map +1 -1
- package/dist/index.cjs +412 -184
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +413 -184
- package/dist/index.js.map +1 -1
- package/dist/lib/portal-container.d.ts +7 -0
- package/dist/styles.css +61 -37
- package/package.json +1 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
export declare const PortalContainerProvider: import("react").Provider<HTMLElement | null>;
|
|
2
|
+
export declare const InsideModalProvider: import("react").Provider<boolean>;
|
|
2
3
|
/**
|
|
3
4
|
* 현재 소속된 Portal 컨테이너를 반환한다.
|
|
4
5
|
* Radix `*.Portal` 의 `container`, Ariakit 의 `portalElement` 에 그대로 넘기면 되며,
|
|
5
6
|
* 컨테이너가 없을 때(모달 밖)는 `undefined` 를 반환해 각 라이브러리 기본값(body)을 쓴다.
|
|
6
7
|
*/
|
|
7
8
|
export declare function usePortalContainer(): HTMLElement | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* 현재 floating 이 모달 내부 컨텍스트에서 렌더링되는지 반환한다.
|
|
11
|
+
* portal target ref 가 아직 준비되지 않은 첫 렌더에서도 true를 유지해
|
|
12
|
+
* 모달 내부 전용 우회 로직이 깜빡이지 않도록 한다.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useInsideModal(): boolean;
|
package/dist/styles.css
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
33
|
--default-font-family: var(--font-sans);
|
|
34
34
|
--default-mono-font-family: var(--font-mono);
|
|
35
|
+
--color-grey-25: #E5E5E5;
|
|
35
36
|
--color-grey-30: #E1E1E1;
|
|
36
37
|
--color-grey-45: #CCCCCC;
|
|
37
38
|
--color-grey-55: #AAAAAA;
|
|
@@ -722,6 +723,9 @@
|
|
|
722
723
|
.resize-y {
|
|
723
724
|
resize: vertical;
|
|
724
725
|
}
|
|
726
|
+
.\[scrollbar-width\:auto\] {
|
|
727
|
+
scrollbar-width: auto;
|
|
728
|
+
}
|
|
725
729
|
.\[scrollbar-width\:none\] {
|
|
726
730
|
scrollbar-width: none;
|
|
727
731
|
}
|
|
@@ -1087,6 +1091,9 @@
|
|
|
1087
1091
|
.border-\[color\:var\(--cmp-checkbox-checked-bg-default\)\] {
|
|
1088
1092
|
border-color: var(--cmp-checkbox-checked-bg-default);
|
|
1089
1093
|
}
|
|
1094
|
+
.border-\[color\:var\(--cmp-checkbox-checked-border-inverse\)\] {
|
|
1095
|
+
border-color: var(--cmp-checkbox-checked-border-inverse);
|
|
1096
|
+
}
|
|
1090
1097
|
.border-\[color\:var\(--cmp-checkbox-unchecked-border-default\)\] {
|
|
1091
1098
|
border-color: var(--cmp-checkbox-unchecked-border-default);
|
|
1092
1099
|
}
|
|
@@ -1141,6 +1148,9 @@
|
|
|
1141
1148
|
.bg-\[var\(--cmp-checkbox-checked-bg-default\)\] {
|
|
1142
1149
|
background-color: var(--cmp-checkbox-checked-bg-default);
|
|
1143
1150
|
}
|
|
1151
|
+
.bg-\[var\(--cmp-checkbox-unchecked-bg-default\)\] {
|
|
1152
|
+
background-color: var(--cmp-checkbox-unchecked-bg-default);
|
|
1153
|
+
}
|
|
1144
1154
|
.bg-\[var\(--cmp-datepicker-calendar-bg\)\] {
|
|
1145
1155
|
background-color: var(--cmp-datepicker-calendar-bg);
|
|
1146
1156
|
}
|
|
@@ -1156,6 +1166,9 @@
|
|
|
1156
1166
|
.bg-\[var\(--cmp-listBox-bg\)\] {
|
|
1157
1167
|
background-color: var(--cmp-listBox-bg);
|
|
1158
1168
|
}
|
|
1169
|
+
.bg-\[var\(--cmp-listItem-bg-hover\)\] {
|
|
1170
|
+
background-color: var(--cmp-listItem-bg-hover);
|
|
1171
|
+
}
|
|
1159
1172
|
.bg-\[var\(--cmp-listItem-depth1-bg-default\)\] {
|
|
1160
1173
|
background-color: var(--cmp-listItem-depth1-bg-default);
|
|
1161
1174
|
}
|
|
@@ -1321,6 +1334,9 @@
|
|
|
1321
1334
|
.px-\[var\(--cmp-table-keyValue-body-paddingX-default\)\] {
|
|
1322
1335
|
padding-inline: var(--cmp-table-keyValue-body-paddingX-default);
|
|
1323
1336
|
}
|
|
1337
|
+
.px-\[var\(--cmp-table-keyValue-body-paddingX-wide\)\] {
|
|
1338
|
+
padding-inline: var(--cmp-table-keyValue-body-paddingX-wide);
|
|
1339
|
+
}
|
|
1324
1340
|
.px-\[var\(--cmp-table-keyValue-search-paddingX\)\] {
|
|
1325
1341
|
padding-inline: var(--cmp-table-keyValue-search-paddingX);
|
|
1326
1342
|
}
|
|
@@ -1582,6 +1598,9 @@
|
|
|
1582
1598
|
.text-\[color\:var\(--cmp-listItem-content-disabled\)\] {
|
|
1583
1599
|
color: var(--cmp-listItem-content-disabled);
|
|
1584
1600
|
}
|
|
1601
|
+
.text-\[color\:var\(--cmp-listItem-content-hover\)\] {
|
|
1602
|
+
color: var(--cmp-listItem-content-hover);
|
|
1603
|
+
}
|
|
1585
1604
|
.text-\[color\:var\(--cmp-listItem-content-selected\)\] {
|
|
1586
1605
|
color: var(--cmp-listItem-content-selected);
|
|
1587
1606
|
}
|
|
@@ -1823,16 +1842,6 @@
|
|
|
1823
1842
|
}
|
|
1824
1843
|
}
|
|
1825
1844
|
}
|
|
1826
|
-
.group-data-\[active-item\]\:border-\[color\:var\(--cmp-checkbox-checked-border-inverse\)\] {
|
|
1827
|
-
&:is(:where(.group)[data-active-item] *) {
|
|
1828
|
-
border-color: var(--cmp-checkbox-checked-border-inverse);
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
.group-data-\[active-item\]\:bg-transparent {
|
|
1832
|
-
&:is(:where(.group)[data-active-item] *) {
|
|
1833
|
-
background-color: transparent;
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
1845
|
.placeholder\:text-\(--cmp-chipInput-text-placeholder\) {
|
|
1837
1846
|
&::placeholder {
|
|
1838
1847
|
color: var(--cmp-chipInput-text-placeholder);
|
|
@@ -2116,6 +2125,16 @@
|
|
|
2116
2125
|
}
|
|
2117
2126
|
}
|
|
2118
2127
|
}
|
|
2128
|
+
.focus\:bg-\[var\(--cmp-listItem-bg-hover\)\] {
|
|
2129
|
+
&:focus {
|
|
2130
|
+
background-color: var(--cmp-listItem-bg-hover);
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
.focus\:text-\[color\:var\(--cmp-listItem-content-hover\)\] {
|
|
2134
|
+
&:focus {
|
|
2135
|
+
color: var(--cmp-listItem-content-hover);
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2119
2138
|
.focus-visible\:shadow-\[0_0_0_2px_var\(--btn-ring\)\] {
|
|
2120
2139
|
&:focus-visible {
|
|
2121
2140
|
--tw-shadow: 0 0 0 2px var(--tw-shadow-color, var(--btn-ring));
|
|
@@ -2139,26 +2158,11 @@
|
|
|
2139
2158
|
cursor: not-allowed;
|
|
2140
2159
|
}
|
|
2141
2160
|
}
|
|
2142
|
-
.
|
|
2143
|
-
|
|
2144
|
-
cursor: not-allowed;
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
.aria-disabled\:text-\[color\:var\(--cmp-listItem-content-disabled\)\] {
|
|
2148
|
-
&[aria-disabled="true"] {
|
|
2161
|
+
.disabled\:text-\[color\:var\(--cmp-listItem-content-disabled\)\] {
|
|
2162
|
+
&:disabled {
|
|
2149
2163
|
color: var(--cmp-listItem-content-disabled);
|
|
2150
2164
|
}
|
|
2151
2165
|
}
|
|
2152
|
-
.data-\[active-item\]\:bg-\[var\(--cmp-listItem-bg-hover\)\] {
|
|
2153
|
-
&[data-active-item] {
|
|
2154
|
-
background-color: var(--cmp-listItem-bg-hover);
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
.data-\[active-item\]\:text-\[color\:var\(--cmp-listItem-content-hover\)\] {
|
|
2158
|
-
&[data-active-item] {
|
|
2159
|
-
color: var(--cmp-listItem-content-hover);
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
2166
|
.data-\[disabled\]\:cursor-not-allowed {
|
|
2163
2167
|
&[data-disabled] {
|
|
2164
2168
|
cursor: not-allowed;
|
|
@@ -2169,11 +2173,6 @@
|
|
|
2169
2173
|
color: var(--cmp-button-text-disabled);
|
|
2170
2174
|
}
|
|
2171
2175
|
}
|
|
2172
|
-
.data-\[enter\]\:animate-floating-in-bottom {
|
|
2173
|
-
&[data-enter] {
|
|
2174
|
-
animation: var(--animate-floating-in-bottom);
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
2176
|
.data-\[highlighted\]\:bg-\[var\(--sys-color-bg-accent\)\] {
|
|
2178
2177
|
&[data-highlighted] {
|
|
2179
2178
|
background-color: var(--sys-color-bg-accent);
|
|
@@ -2184,11 +2183,6 @@
|
|
|
2184
2183
|
color: var(--sys-color-fg-inverse);
|
|
2185
2184
|
}
|
|
2186
2185
|
}
|
|
2187
|
-
.data-\[leave\]\:animate-floating-out-bottom {
|
|
2188
|
-
&[data-leave] {
|
|
2189
|
-
animation: var(--animate-floating-out-bottom);
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
2186
|
.data-\[state\=checked\]\:translate-x-\[12px\] {
|
|
2193
2187
|
&[data-state="checked"] {
|
|
2194
2188
|
--tw-translate-x: 12px;
|
|
@@ -2332,6 +2326,36 @@
|
|
|
2332
2326
|
display: none;
|
|
2333
2327
|
}
|
|
2334
2328
|
}
|
|
2329
|
+
.\[\&\:\:-webkit-scrollbar\]\:w-\[8px\] {
|
|
2330
|
+
&::-webkit-scrollbar {
|
|
2331
|
+
width: 8px;
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
.\[\&\:\:-webkit-scrollbar\]\:bg-\[var\(--color-grey-25\)\] {
|
|
2335
|
+
&::-webkit-scrollbar {
|
|
2336
|
+
background-color: var(--color-grey-25);
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
.\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-\[4px\] {
|
|
2340
|
+
&::-webkit-scrollbar-thumb {
|
|
2341
|
+
border-radius: 4px;
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-\[var\(--color-grey-45\)\] {
|
|
2345
|
+
&::-webkit-scrollbar-thumb {
|
|
2346
|
+
background-color: var(--color-grey-45);
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
.\[\&\:\:-webkit-scrollbar-track\]\:bg-\[var\(--color-grey-25\)\] {
|
|
2350
|
+
&::-webkit-scrollbar-track {
|
|
2351
|
+
background-color: var(--color-grey-25);
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
.\[\&\:\:-webkit-scrollbar\:horizontal\]\:h-\[8px\] {
|
|
2355
|
+
&::-webkit-scrollbar:horizontal {
|
|
2356
|
+
height: 8px;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2335
2359
|
}
|
|
2336
2360
|
:root {
|
|
2337
2361
|
--sys-size-control-xs-height: 24px;
|