@ncds/ui-admin 1.6.1 → 1.6.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/dist/cjs/src/components/date-picker/DatePicker.js +2 -1
- package/dist/cjs/src/types/side-slot.js +5 -0
- package/dist/esm/src/components/date-picker/DatePicker.js +2 -1
- package/dist/esm/src/types/side-slot.js +1 -0
- package/dist/types/src/types/side-slot.d.ts +26 -0
- package/dist/ui-admin/assets/styles/style.css +3 -0
- package/package.json +1 -1
|
@@ -323,7 +323,8 @@ var DatePicker = exports.DatePicker = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
323
323
|
enableTime = _b.enableTime,
|
|
324
324
|
enableSeconds = _b.enableSeconds,
|
|
325
325
|
noCalendar = _b.noCalendar,
|
|
326
|
-
|
|
326
|
+
render = _b.render,
|
|
327
|
+
inputProps = __rest(_b, ["allowInput", "dateFormat", "minDate", "maxDate", "enableTime", "enableSeconds", "noCalendar", "render"]);
|
|
327
328
|
return (0, _jsxRuntime.jsx)(_CustomInput.CustomInput, __assign({}, inputProps, {
|
|
328
329
|
id: inputId,
|
|
329
330
|
iconSize: size,
|
|
@@ -314,7 +314,8 @@ export var DatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
314
314
|
enableTime = _b.enableTime,
|
|
315
315
|
enableSeconds = _b.enableSeconds,
|
|
316
316
|
noCalendar = _b.noCalendar,
|
|
317
|
-
|
|
317
|
+
render = _b.render,
|
|
318
|
+
inputProps = __rest(_b, ["allowInput", "dateFormat", "minDate", "maxDate", "enableTime", "enableSeconds", "noCalendar", "render"]);
|
|
318
319
|
return _jsx(CustomInput, __assign({}, inputProps, {
|
|
319
320
|
id: inputId,
|
|
320
321
|
iconSize: size,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { COLOR } from '../../constant/color';
|
|
3
|
+
import type { DotProps } from '../components';
|
|
4
|
+
export type SlotIconComponent = ComponentType<{
|
|
5
|
+
height?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type IconSlotType = {
|
|
11
|
+
type: 'icon';
|
|
12
|
+
icon: SlotIconComponent;
|
|
13
|
+
color?: keyof typeof COLOR;
|
|
14
|
+
size?: number;
|
|
15
|
+
};
|
|
16
|
+
export type DotSlotType = {
|
|
17
|
+
type: 'dot';
|
|
18
|
+
color: DotProps['color'];
|
|
19
|
+
size: DotProps['size'];
|
|
20
|
+
};
|
|
21
|
+
export type CustomSlotType = {
|
|
22
|
+
type: 'custom';
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export type SideSlotType = IconSlotType | DotSlotType | CustomSlotType;
|
|
26
|
+
//# sourceMappingURL=side-slot.d.ts.map
|
|
@@ -3991,6 +3991,9 @@ button {
|
|
|
3991
3991
|
.ncua-toggle--disabled .ncua-toggle__switch {
|
|
3992
3992
|
background-color: var(--gray-100);
|
|
3993
3993
|
}
|
|
3994
|
+
.ncua-toggle--disabled .ncua-toggle__input:checked + .ncua-toggle__switch {
|
|
3995
|
+
background-color: var(--gray-100);
|
|
3996
|
+
}
|
|
3994
3997
|
.ncua-toggle--disabled .ncua-toggle__slider {
|
|
3995
3998
|
background-color: var(--gray-50);
|
|
3996
3999
|
}
|