@os-design/core 1.0.304 → 1.0.306
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/Alert/index.d.ts +3 -2
- package/dist/Alert/index.d.ts.map +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Avatar/index.d.ts +3 -2
- package/dist/Avatar/index.d.ts.map +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/AvatarSkeleton/index.d.ts +3 -2
- package/dist/AvatarSkeleton/index.d.ts.map +1 -1
- package/dist/AvatarSkeleton/index.js +1 -1
- package/dist/Badge/index.d.ts +3 -2
- package/dist/Badge/index.d.ts.map +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Breadcrumb/index.d.ts +1 -1
- package/dist/Breadcrumb/index.d.ts.map +1 -1
- package/dist/Breadcrumb/index.js +10 -6
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/ButtonLink/index.d.ts +183 -168
- package/dist/ButtonLink/index.d.ts.map +1 -1
- package/dist/ButtonLink/index.js +1 -1
- package/dist/Checkbox/index.d.ts +3 -2
- package/dist/Checkbox/index.d.ts.map +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/CheckboxSkeleton/index.d.ts +3 -2
- package/dist/CheckboxSkeleton/index.d.ts.map +1 -1
- package/dist/CheckboxSkeleton/index.js +1 -1
- package/dist/DateCalendar/Calendar.d.ts.map +1 -1
- package/dist/DateCalendar/index.d.ts +3 -2
- package/dist/DateCalendar/index.d.ts.map +1 -1
- package/dist/DateCalendar/index.js +2 -1
- package/dist/DatePicker/index.d.ts +4 -4
- package/dist/DatePicker/index.d.ts.map +1 -1
- package/dist/DatePicker/index.js +2 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts +3 -2
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormDivider/index.d.ts +3 -2
- package/dist/FormDivider/index.d.ts.map +1 -1
- package/dist/FormDivider/index.js +1 -1
- package/dist/FormItem/index.d.ts +3 -2
- package/dist/FormItem/index.d.ts.map +1 -1
- package/dist/FormItem/index.js +4 -2
- package/dist/Gallery/index.d.ts +1 -1
- package/dist/Gallery/index.d.ts.map +1 -1
- package/dist/Gallery/index.js +1 -0
- package/dist/Image/index.d.ts +3 -2
- package/dist/Image/index.d.ts.map +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/Input/index.d.ts +2 -2
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/InputDateUnstyled/index.d.ts +3 -2
- package/dist/InputDateUnstyled/index.d.ts.map +1 -1
- package/dist/InputDateUnstyled/index.js +2 -2
- package/dist/InputNumber/index.d.ts.map +1 -1
- package/dist/InputSearch/index.d.ts.map +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.d.ts.map +1 -1
- package/dist/LinkButton/index.d.ts +3 -2
- package/dist/LinkButton/index.d.ts.map +1 -1
- package/dist/LinkButton/index.js +1 -1
- package/dist/List/WindowScroller.js +1 -1
- package/dist/ListItemActions/index.d.ts +1 -1
- package/dist/ListItemActions/index.d.ts.map +1 -1
- package/dist/ListItemActions/index.js +1 -0
- package/dist/ListItemLink/index.d.ts +3 -2
- package/dist/ListItemLink/index.d.ts.map +1 -1
- package/dist/ListItemLink/index.js +1 -1
- package/dist/ListItemSkeleton/index.d.ts.map +1 -1
- package/dist/ListSkeleton/index.d.ts.map +1 -1
- package/dist/LogoLink/index.d.ts +3 -2
- package/dist/LogoLink/index.d.ts.map +1 -1
- package/dist/LogoLink/index.js +1 -1
- package/dist/Menu/index.d.ts.map +1 -1
- package/dist/Menu/index.js +3 -1
- package/dist/MenuDivider/index.d.ts +3 -2
- package/dist/MenuDivider/index.d.ts.map +1 -1
- package/dist/MenuDivider/index.js +1 -1
- package/dist/MenuGroup/index.d.ts +1 -1
- package/dist/MenuGroup/index.d.ts.map +1 -1
- package/dist/MenuItem/index.d.ts.map +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +6 -2
- package/dist/Navigation/index.d.ts +1 -1
- package/dist/Navigation/index.d.ts.map +1 -1
- package/dist/Navigation/utils/useScrollFlags.d.ts +1 -1
- package/dist/Navigation/utils/useScrollFlags.d.ts.map +1 -1
- package/dist/NavigationItem/index.d.ts +1 -1
- package/dist/NavigationItem/index.d.ts.map +1 -1
- package/dist/PageContent/index.d.ts +3 -2
- package/dist/PageContent/index.d.ts.map +1 -1
- package/dist/PageContent/index.js +1 -1
- package/dist/PageHeader/index.d.ts +1 -1
- package/dist/PageHeader/index.d.ts.map +1 -1
- package/dist/PageHeaderInputSearch/index.d.ts.map +1 -1
- package/dist/ParagraphSkeleton/index.d.ts.map +1 -1
- package/dist/ParagraphSkeleton/index.js +1 -0
- package/dist/Popover/index.d.ts +5 -5
- package/dist/Popover/index.d.ts.map +1 -1
- package/dist/Popover/index.js +4 -2
- package/dist/Progress/index.d.ts +3 -2
- package/dist/Progress/index.d.ts.map +1 -1
- package/dist/Progress/index.js +4 -2
- package/dist/RadioGroup/index.d.ts +3 -2
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/Result/index.d.ts +1 -1
- package/dist/Result/index.d.ts.map +1 -1
- package/dist/ScrollButton/index.d.ts +1 -1
- package/dist/ScrollButton/index.d.ts.map +1 -1
- package/dist/ScrollButton/utils/useContainerPosition.d.ts +1 -1
- package/dist/ScrollButton/utils/useContainerPosition.d.ts.map +1 -1
- package/dist/ScrollButton/utils/useVisibility.d.ts +1 -1
- package/dist/ScrollButton/utils/useVisibility.d.ts.map +1 -1
- package/dist/ScrollButton/utils/useVisibility.js +1 -0
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Select/index.js +3 -1
- package/dist/Skeleton/index.d.ts +3 -2
- package/dist/Skeleton/index.d.ts.map +1 -1
- package/dist/Skeleton/index.js +1 -1
- package/dist/Switch/index.d.ts +3 -2
- package/dist/Switch/index.d.ts.map +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Tag/index.d.ts +1 -1
- package/dist/Tag/index.d.ts.map +1 -1
- package/dist/TagLink/index.d.ts +3 -2
- package/dist/TagLink/index.d.ts.map +1 -1
- package/dist/TagLink/index.js +1 -1
- package/dist/TagList/index.d.ts +3 -2
- package/dist/TagList/index.d.ts.map +1 -1
- package/dist/TagList/index.js +1 -1
- package/dist/TagListSkeleton/index.d.ts.map +1 -1
- package/dist/TagListSkeleton/index.js +1 -0
- package/dist/TagSkeleton/index.d.ts.map +1 -1
- package/dist/TextArea/index.d.ts +2 -2
- package/dist/TextArea/index.d.ts.map +1 -1
- package/dist/ThemeSwitcher/index.d.ts +29 -15
- package/dist/ThemeSwitcher/index.d.ts.map +1 -1
- package/dist/TimeGrid/index.d.ts +5 -4
- package/dist/TimeGrid/index.d.ts.map +1 -1
- package/dist/TimeGrid/index.js +1 -1
- package/dist/TimeList/index.d.ts +4 -3
- package/dist/TimeList/index.d.ts.map +1 -1
- package/dist/TimeList/index.js +1 -1
- package/dist/Video/index.d.ts +3 -2
- package/dist/Video/index.d.ts.map +1 -1
- package/dist/Video/index.js +1 -1
- package/package.json +16 -16
- package/src/Alert/index.tsx +2 -2
- package/src/Avatar/index.tsx +2 -2
- package/src/AvatarSkeleton/index.tsx +2 -2
- package/src/Badge/index.tsx +2 -2
- package/src/Breadcrumb/index.tsx +21 -17
- package/src/Button/index.tsx +5 -3
- package/src/ButtonLink/index.tsx +2 -2
- package/src/Checkbox/index.tsx +4 -3
- package/src/CheckboxSkeleton/index.tsx +2 -2
- package/src/DateCalendar/index.tsx +3 -2
- package/src/DatePicker/index.tsx +4 -3
- package/src/Drawer/index.tsx +1 -1
- package/src/Form/index.tsx +2 -2
- package/src/FormDivider/index.tsx +2 -2
- package/src/FormItem/index.tsx +3 -2
- package/src/Gallery/index.tsx +2 -1
- package/src/GlobalStyles/index.mdx +1 -1
- package/src/Image/index.tsx +2 -2
- package/src/Input/index.tsx +2 -2
- package/src/InputDateUnstyled/index.tsx +3 -3
- package/src/InputNumber/index.tsx +4 -2
- package/src/InputSearch/index.tsx +4 -2
- package/src/Link/index.tsx +1 -1
- package/src/LinkButton/index.tsx +2 -2
- package/src/List/WindowScroller.tsx +1 -1
- package/src/ListItemActions/index.tsx +2 -1
- package/src/ListItemLink/index.tsx +2 -2
- package/src/ListItemSkeleton/index.tsx +4 -2
- package/src/ListSkeleton/index.tsx +2 -1
- package/src/LogoLink/index.tsx +3 -6
- package/src/Menu/index.tsx +1 -0
- package/src/MenuDivider/index.tsx +2 -2
- package/src/MenuGroup/index.tsx +4 -3
- package/src/MenuItem/index.tsx +5 -3
- package/src/Modal/index.tsx +3 -1
- package/src/Navigation/index.tsx +1 -1
- package/src/Navigation/utils/useScrollFlags.ts +1 -1
- package/src/NavigationItem/index.tsx +2 -4
- package/src/PageContent/index.tsx +2 -2
- package/src/PageHeader/index.tsx +1 -1
- package/src/PageHeaderInputSearch/index.tsx +4 -2
- package/src/ParagraphSkeleton/index.tsx +1 -0
- package/src/Popover/index.tsx +7 -6
- package/src/Progress/index.tsx +3 -2
- package/src/RadioGroup/index.tsx +6 -4
- package/src/Result/index.tsx +1 -1
- package/src/ScrollButton/index.tsx +1 -1
- package/src/ScrollButton/utils/useContainerPosition.ts +1 -1
- package/src/ScrollButton/utils/useVisibility.ts +2 -1
- package/src/Select/index.tsx +3 -4
- package/src/Skeleton/index.tsx +2 -2
- package/src/Switch/index.tsx +2 -2
- package/src/Tag/index.tsx +1 -1
- package/src/TagLink/index.tsx +2 -2
- package/src/TagList/index.tsx +2 -2
- package/src/TagListSkeleton/index.tsx +1 -0
- package/src/TagSkeleton/index.tsx +1 -2
- package/src/TextArea/index.tsx +2 -2
- package/src/TimeGrid/index.tsx +2 -2
- package/src/TimeList/index.tsx +2 -2
- package/src/Video/index.tsx +2 -2
|
@@ -51,8 +51,14 @@ declare const ThemeSwitcher: import("react").ForwardRefExoticComponent<{
|
|
|
51
51
|
results?: number | undefined | undefined;
|
|
52
52
|
security?: string | undefined | undefined;
|
|
53
53
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
54
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
55
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
56
|
+
popoverTarget?: string | undefined | undefined;
|
|
57
|
+
inert?: boolean | undefined | undefined;
|
|
54
58
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
55
59
|
is?: string | undefined | undefined;
|
|
60
|
+
exportparts?: string | undefined | undefined;
|
|
61
|
+
part?: string | undefined | undefined;
|
|
56
62
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
57
63
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
58
64
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -126,18 +132,18 @@ declare const ThemeSwitcher: import("react").ForwardRefExoticComponent<{
|
|
|
126
132
|
onFocusCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
127
133
|
onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
128
134
|
onBlurCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
129
|
-
onChange?: import("react").
|
|
130
|
-
onChangeCapture?: import("react").
|
|
131
|
-
onBeforeInput?: import("react").
|
|
132
|
-
onBeforeInputCapture?: import("react").
|
|
133
|
-
onInput?: import("react").
|
|
134
|
-
onInputCapture?: import("react").
|
|
135
|
-
onReset?: import("react").
|
|
136
|
-
onResetCapture?: import("react").
|
|
137
|
-
onSubmit?: import("react").
|
|
138
|
-
onSubmitCapture?: import("react").
|
|
139
|
-
onInvalid?: import("react").
|
|
140
|
-
onInvalidCapture?: import("react").
|
|
135
|
+
onChange?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
136
|
+
onChangeCapture?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
137
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
138
|
+
onBeforeInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
139
|
+
onInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
140
|
+
onInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
141
|
+
onReset?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
142
|
+
onResetCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
143
|
+
onSubmit?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
144
|
+
onSubmitCapture?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
145
|
+
onInvalid?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
146
|
+
onInvalidCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
141
147
|
onLoad?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
142
148
|
onLoadCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
143
149
|
onError?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -178,8 +184,6 @@ declare const ThemeSwitcher: import("react").ForwardRefExoticComponent<{
|
|
|
178
184
|
onProgressCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
179
185
|
onRateChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
180
186
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
181
|
-
onResize?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
182
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
183
187
|
onSeeked?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
184
188
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
185
189
|
onSeeking?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -260,6 +264,8 @@ declare const ThemeSwitcher: import("react").ForwardRefExoticComponent<{
|
|
|
260
264
|
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
261
265
|
onScroll?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
262
266
|
onScrollCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
267
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
268
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
263
269
|
onWheel?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
264
270
|
onWheelCapture?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
265
271
|
onAnimationStart?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -268,12 +274,20 @@ declare const ThemeSwitcher: import("react").ForwardRefExoticComponent<{
|
|
|
268
274
|
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
269
275
|
onAnimationIteration?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
270
276
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
277
|
+
onToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
278
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLButtonElement> | undefined;
|
|
279
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
280
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
271
281
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
272
282
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
283
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
284
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
285
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
286
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
273
287
|
form?: string | undefined | undefined;
|
|
274
288
|
name?: string | undefined | undefined;
|
|
275
289
|
disabled?: boolean | undefined | undefined;
|
|
276
|
-
formAction?: string | undefined;
|
|
290
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
277
291
|
formEncType?: string | undefined | undefined;
|
|
278
292
|
formMethod?: string | undefined | undefined;
|
|
279
293
|
formNoValidate?: boolean | undefined | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ThemeSwitcher/index.tsx"],"names":[],"mappings":"AAGA,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C;;GAEG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ThemeSwitcher/index.tsx"],"names":[],"mappings":"AAGA,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oGAsBlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
package/dist/TimeGrid/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Time {
|
|
2
3
|
hour: number;
|
|
3
4
|
minute: number;
|
|
4
5
|
}
|
|
5
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
6
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
6
7
|
export interface TimeGridProps extends JsxDivProps {
|
|
7
8
|
/**
|
|
8
9
|
* Times shown in the list in minutes (600 is 10:00).
|
|
@@ -46,7 +47,7 @@ interface ContainerProps {
|
|
|
46
47
|
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
47
48
|
theme?: import("@emotion/react").Theme;
|
|
48
49
|
as?: React.ElementType;
|
|
49
|
-
} & ContainerProps,
|
|
50
|
+
} & ContainerProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
50
51
|
interface TimeProps {
|
|
51
52
|
selected: boolean;
|
|
52
53
|
disabled: boolean;
|
|
@@ -54,10 +55,10 @@ interface TimeProps {
|
|
|
54
55
|
declare const Time: import("@emotion/styled").StyledComponent<{
|
|
55
56
|
theme?: import("@emotion/react").Theme;
|
|
56
57
|
as?: React.ElementType;
|
|
57
|
-
} & TimeProps,
|
|
58
|
+
} & TimeProps, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
58
59
|
/**
|
|
59
60
|
* The component to choose a time in a grid.
|
|
60
61
|
*/
|
|
61
|
-
declare const TimeGrid:
|
|
62
|
+
declare const TimeGrid: React.ForwardRefExoticComponent<TimeGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
62
63
|
export default TimeGrid;
|
|
63
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TimeGrid/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TimeGrid/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,cAAc,GAAG,UAAU,GAAG,KAAK,CACpC,CAAC;AACF,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACzC;AAED,UAAU,cAAc;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,SAAS;;;sGAQrB,CAAC;AA6BF,UAAU,SAAS;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,QAAA,MAAM,IAAI;;;6GAiCT,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,sFA+Cb,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
package/dist/TimeGrid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omitEmotionProps, useForwardedState } from '@os-design/utils';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { clr } from '@os-design/theming';
|
package/dist/TimeList/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Time {
|
|
2
3
|
hour: number;
|
|
3
4
|
minute: number;
|
|
4
5
|
}
|
|
5
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
6
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'defaultValue' | 'onChange' | 'ref'>;
|
|
6
7
|
export interface TimeListProps extends JsxDivProps {
|
|
7
8
|
/**
|
|
8
9
|
* Times shown in the list.
|
|
@@ -36,10 +37,10 @@ interface TimeProps {
|
|
|
36
37
|
declare const Time: import("@emotion/styled").StyledComponent<{
|
|
37
38
|
theme?: import("@emotion/react").Theme;
|
|
38
39
|
as?: React.ElementType;
|
|
39
|
-
} & TimeProps,
|
|
40
|
+
} & TimeProps, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
40
41
|
/**
|
|
41
42
|
* The component to choose a time in a list.
|
|
42
43
|
*/
|
|
43
|
-
declare const TimeList:
|
|
44
|
+
declare const TimeList: React.ForwardRefExoticComponent<TimeListProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
45
|
export default TimeList;
|
|
45
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TimeList/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TimeList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,cAAc,GAAG,UAAU,GAAG,KAAK,CACpC,CAAC;AACF,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACzC;AAgBD,UAAU,SAAS;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,QAAA,MAAM,IAAI;;;6GA4BT,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,sFAmCb,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
package/dist/TimeList/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { omitEmotionProps, useForwardedState } from '@os-design/utils';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { clr } from '@os-design/theming';
|
package/dist/Video/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type JsxIFrameProps = Omit<React.JSX.IntrinsicElements['iframe'], 'ref'>;
|
|
2
3
|
export type VideoProps = JsxIFrameProps;
|
|
3
4
|
/**
|
|
4
5
|
* The video player.
|
|
5
6
|
*/
|
|
6
|
-
declare const Video:
|
|
7
|
+
declare const Video: React.ForwardRefExoticComponent<JsxIFrameProps & React.RefAttributes<HTMLIFrameElement>>;
|
|
7
8
|
export default Video;
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Video/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Video/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AAkBxC;;GAEG;AACH,QAAA,MAAM,KAAK,0FAWV,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/dist/Video/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-design/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.306",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/os-design.git",
|
|
6
6
|
"type": "module",
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"scripts": {
|
|
22
|
-
"clean": "
|
|
22
|
+
"clean": "rm -r dist",
|
|
23
23
|
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
|
|
24
24
|
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
|
|
25
25
|
"build": "yarn clean && npm-run-all 'build:*'",
|
|
26
|
-
"ncu": "ncu -u '/^(?!(react
|
|
26
|
+
"ncu": "ncu -u '/^(?!(react-window)$).*$/'"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@os-design/date-picker-utils": "^1.0.33",
|
|
33
|
-
"@os-design/icons": "^1.0.
|
|
34
|
-
"@os-design/input-number-utils": "^1.0.
|
|
35
|
-
"@os-design/input-password-utils": "^1.0.
|
|
36
|
-
"@os-design/media": "^1.0.
|
|
37
|
-
"@os-design/menu-utils": "^1.0.
|
|
38
|
-
"@os-design/portal": "^1.0.
|
|
39
|
-
"@os-design/styles": "^1.0.
|
|
40
|
-
"@os-design/theming": "^1.0.
|
|
33
|
+
"@os-design/icons": "^1.0.75",
|
|
34
|
+
"@os-design/input-number-utils": "^1.0.42",
|
|
35
|
+
"@os-design/input-password-utils": "^1.0.7",
|
|
36
|
+
"@os-design/media": "^1.0.36",
|
|
37
|
+
"@os-design/menu-utils": "^1.0.32",
|
|
38
|
+
"@os-design/portal": "^1.0.29",
|
|
39
|
+
"@os-design/styles": "^1.0.72",
|
|
40
|
+
"@os-design/theming": "^1.0.67",
|
|
41
41
|
"@os-design/time-picker-utils": "^1.0.23",
|
|
42
|
-
"@os-design/utils": "^1.0.
|
|
42
|
+
"@os-design/utils": "^1.0.97",
|
|
43
43
|
"facepaint": "^1.2.1",
|
|
44
|
-
"react-focus-lock": "^2.13.
|
|
44
|
+
"react-focus-lock": "^2.13.7",
|
|
45
45
|
"react-window": "^1.8.11"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@emotion/react": ">=11",
|
|
56
56
|
"@emotion/serialize": "*",
|
|
57
57
|
"@emotion/styled": ">=11",
|
|
58
|
-
"react": "
|
|
59
|
-
"react-dom": "
|
|
58
|
+
"react": "19",
|
|
59
|
+
"react-dom": "19"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "83ca5af2bb91d07d64440f87b7ab23f5100daa02"
|
|
62
62
|
}
|
package/src/Alert/index.tsx
CHANGED
|
@@ -4,9 +4,9 @@ import { CheckCircle, CloseCircle, InfoCircle } from '@os-design/icons';
|
|
|
4
4
|
import { type WithSize, sizeStyles } from '@os-design/styles';
|
|
5
5
|
import { clr } from '@os-design/theming';
|
|
6
6
|
import { omitEmotionProps } from '@os-design/utils';
|
|
7
|
-
import { forwardRef, useMemo } from 'react';
|
|
7
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
8
8
|
|
|
9
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
9
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
10
10
|
export interface AlertProps extends JsxDivProps, WithSize {
|
|
11
11
|
/**
|
|
12
12
|
* Type of styles.
|
package/src/Avatar/index.tsx
CHANGED
|
@@ -3,12 +3,12 @@ import { User } from '@os-design/icons';
|
|
|
3
3
|
import { type WithSize, sizeStyles } from '@os-design/styles';
|
|
4
4
|
import { type Color, clr, useTheme } from '@os-design/theming';
|
|
5
5
|
import { omitEmotionProps } from '@os-design/utils';
|
|
6
|
-
import { forwardRef, useCallback, useMemo } from 'react';
|
|
6
|
+
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
7
7
|
import Image, { type ImageProps } from '../Image/index.js';
|
|
8
8
|
import nameToInitials from './utils/nameToInitials.js';
|
|
9
9
|
import strToHue from './utils/strToHue.js';
|
|
10
10
|
|
|
11
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
11
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
12
12
|
export interface AvatarProps extends JsxDivProps, WithSize {
|
|
13
13
|
/**
|
|
14
14
|
* Used to render the first letter if the image URL is not specified.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { sizeStyles, type WithSize } from '@os-design/styles';
|
|
3
3
|
import { omitEmotionProps } from '@os-design/utils';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
5
|
import Skeleton from '../Skeleton/index.js';
|
|
6
6
|
|
|
7
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
7
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
8
|
export type AvatarSkeletonProps = JsxDivProps & WithSize;
|
|
9
9
|
|
|
10
10
|
const Container = styled('div', omitEmotionProps('size'))<WithSize>`
|
package/src/Badge/index.tsx
CHANGED
|
@@ -2,9 +2,9 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { type WithSize, sizeStyles } from '@os-design/styles';
|
|
3
3
|
import { clr } from '@os-design/theming';
|
|
4
4
|
import { omitEmotionProps } from '@os-design/utils';
|
|
5
|
-
import { forwardRef, useMemo } from 'react';
|
|
5
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
6
6
|
|
|
7
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
7
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
8
|
export interface BadgeProps extends JsxDivProps, WithSize {
|
|
9
9
|
/**
|
|
10
10
|
* Number shown in the corner.
|
package/src/Breadcrumb/index.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { omitEmotionProps } from '@os-design/utils';
|
|
|
9
9
|
import React, { forwardRef, type ReactElement, useMemo } from 'react';
|
|
10
10
|
import BreadcrumbItem from '../BreadcrumbItem/index.js';
|
|
11
11
|
|
|
12
|
-
type JsxOlProps = Omit<JSX.IntrinsicElements['ol'], 'ref'>;
|
|
12
|
+
type JsxOlProps = Omit<React.JSX.IntrinsicElements['ol'], 'ref'>;
|
|
13
13
|
export interface BreadcrumbProps extends JsxOlProps, WithSize {
|
|
14
14
|
'aria-label'?: string;
|
|
15
15
|
}
|
|
@@ -50,26 +50,30 @@ const Breadcrumb = forwardRef<HTMLOListElement, BreadcrumbProps>(
|
|
|
50
50
|
|
|
51
51
|
if (child.type === BreadcrumbItem) {
|
|
52
52
|
element = React.cloneElement(child, breadcrumbItemProps);
|
|
53
|
-
} else
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
53
|
+
} else {
|
|
54
|
+
const childProps = child.props as { children?: React.ReactElement };
|
|
55
|
+
if (
|
|
56
|
+
React.isValidElement(childProps.children) &&
|
|
57
|
+
childProps.children.type === BreadcrumbItem
|
|
58
|
+
) {
|
|
59
|
+
const breadcrumbItem = React.cloneElement(
|
|
60
|
+
childProps.children,
|
|
61
|
+
breadcrumbItemProps
|
|
62
|
+
);
|
|
63
|
+
element = React.cloneElement(
|
|
64
|
+
child,
|
|
65
|
+
{
|
|
66
|
+
...(childProps || {}),
|
|
67
|
+
key: childIndex,
|
|
68
|
+
},
|
|
69
|
+
breadcrumbItem
|
|
70
|
+
);
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
if (!element) return;
|
|
71
74
|
|
|
72
75
|
items.push(element);
|
|
76
|
+
// eslint-disable-next-line react-hooks/globals
|
|
73
77
|
childIndex += 1;
|
|
74
78
|
});
|
|
75
79
|
return items;
|
package/src/Button/index.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import ButtonContent from './ButtonContent.js';
|
|
|
14
14
|
import useButtonColors, { type ButtonColors } from './utils/useButtonColors.js';
|
|
15
15
|
|
|
16
16
|
type JsxButtonProps = Omit<
|
|
17
|
-
JSX.IntrinsicElements['button'],
|
|
17
|
+
React.JSX.IntrinsicElements['button'],
|
|
18
18
|
'type' | 'color' | 'ref'
|
|
19
19
|
>;
|
|
20
20
|
|
|
@@ -63,8 +63,10 @@ export interface BaseButtonProps extends WithSize {
|
|
|
63
63
|
|
|
64
64
|
export type ButtonProps = JsxButtonProps & BaseButtonProps;
|
|
65
65
|
|
|
66
|
-
interface StyledButtonProps
|
|
67
|
-
|
|
66
|
+
interface StyledButtonProps extends Pick<
|
|
67
|
+
ButtonProps,
|
|
68
|
+
'wide' | 'loading' | 'disabled' | 'size'
|
|
69
|
+
> {
|
|
68
70
|
btnType: ButtonProps['type'];
|
|
69
71
|
colors: ButtonColors;
|
|
70
72
|
}
|
package/src/ButtonLink/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { omitEmotionProps } from '@os-design/utils';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
5
5
|
import { type ButtonProps, StyledButton } from '../Button/index.js';
|
|
6
6
|
import ButtonContent from '../Button/ButtonContent.js';
|
|
7
7
|
import useButtonColors from '../Button/utils/useButtonColors.js';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
type ReactRouterLinkProps,
|
|
12
12
|
} from '../Link/index.js';
|
|
13
13
|
|
|
14
|
-
type JsxAProps = Omit<JSX.IntrinsicElements['a'], 'type' | 'ref'>;
|
|
14
|
+
type JsxAProps = Omit<React.JSX.IntrinsicElements['a'], 'type' | 'ref'>;
|
|
15
15
|
export type ButtonLinkProps = JsxAProps &
|
|
16
16
|
ReactRouterLinkProps &
|
|
17
17
|
Pick<LinkProps, 'as'> &
|
package/src/Checkbox/index.tsx
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from '@os-design/styles';
|
|
10
10
|
import { clr } from '@os-design/theming';
|
|
11
11
|
import { omitEmotionProps, useForwardedState } from '@os-design/utils';
|
|
12
|
-
import { forwardRef } from 'react';
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
13
|
|
|
14
14
|
type JsxLabelProps = Omit<
|
|
15
|
-
JSX.IntrinsicElements['label'],
|
|
15
|
+
React.JSX.IntrinsicElements['label'],
|
|
16
16
|
'defaultValue' | 'onChange' | 'onClick' | 'ref'
|
|
17
17
|
>;
|
|
18
18
|
export interface CheckboxProps extends JsxLabelProps, WithSize {
|
|
@@ -124,7 +124,8 @@ const disabledContainerStyles = (p) =>
|
|
|
124
124
|
`;
|
|
125
125
|
|
|
126
126
|
interface ContainerProps
|
|
127
|
-
extends
|
|
127
|
+
extends
|
|
128
|
+
Required<Pick<CheckboxProps, 'disabled'>>,
|
|
128
129
|
Pick<CheckboxProps, 'size'> {
|
|
129
130
|
checked: Required<CheckboxProps['value']>;
|
|
130
131
|
}
|
|
@@ -2,10 +2,10 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { sizeStyles, type WithSize } from '@os-design/styles';
|
|
3
3
|
import { clr } from '@os-design/theming';
|
|
4
4
|
import { omitEmotionProps } from '@os-design/utils';
|
|
5
|
-
import { forwardRef } from 'react';
|
|
5
|
+
import React, { forwardRef } from 'react';
|
|
6
6
|
import Skeleton from '../Skeleton/index.js';
|
|
7
7
|
|
|
8
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
9
9
|
export interface CheckboxSkeletonProps extends JsxDivProps, WithSize {
|
|
10
10
|
/**
|
|
11
11
|
* The width of the skeleton.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useForwardedState } from '@os-design/utils';
|
|
2
|
-
import { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import Calendar from './Calendar.js';
|
|
4
4
|
import { defaultLocale, type DateCalendarLocale } from './locale.js';
|
|
5
5
|
import MonthPicker from './MonthPicker.js';
|
|
@@ -7,7 +7,7 @@ import type { Day, Month } from './utils/calendarDays.js';
|
|
|
7
7
|
import { light, ThemeOverrider } from '@os-design/theming';
|
|
8
8
|
|
|
9
9
|
type JsxDivProps = Omit<
|
|
10
|
-
JSX.IntrinsicElements['div'],
|
|
10
|
+
React.JSX.IntrinsicElements['div'],
|
|
11
11
|
'defaultValue' | 'onChange' | 'ref'
|
|
12
12
|
>;
|
|
13
13
|
export interface DateCalendarProps extends JsxDivProps {
|
|
@@ -94,6 +94,7 @@ const DateCalendar = forwardRef<HTMLDivElement, DateCalendarProps>(
|
|
|
94
94
|
(forwardedValue.year !== displayedMonthRef.current.year ||
|
|
95
95
|
forwardedValue.month !== displayedMonthRef.current.month)
|
|
96
96
|
) {
|
|
97
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
97
98
|
setDisplayedMonth({
|
|
98
99
|
year: forwardedValue.year,
|
|
99
100
|
month: forwardedValue.month,
|
package/src/DatePicker/index.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useForwardedRef,
|
|
10
10
|
useForwardedState,
|
|
11
11
|
} from '@os-design/utils';
|
|
12
|
-
import {
|
|
12
|
+
import React, {
|
|
13
13
|
forwardRef,
|
|
14
14
|
useCallback,
|
|
15
15
|
useEffect,
|
|
@@ -46,7 +46,7 @@ import createTimes from './utils/createTimes.js';
|
|
|
46
46
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
47
47
|
|
|
48
48
|
type JsxDivProps = Omit<
|
|
49
|
-
JSX.IntrinsicElements['div'],
|
|
49
|
+
React.JSX.IntrinsicElements['div'],
|
|
50
50
|
'value' | 'defaultValue' | 'onChange' | 'ref'
|
|
51
51
|
>;
|
|
52
52
|
export interface DatePickerProps extends JsxDivProps, WithSize {
|
|
@@ -142,7 +142,7 @@ export interface DatePickerProps extends JsxDivProps, WithSize {
|
|
|
142
142
|
* The props of the input container.
|
|
143
143
|
* @default undefined
|
|
144
144
|
*/
|
|
145
|
-
containerProps?: JSX.IntrinsicElements['div'];
|
|
145
|
+
containerProps?: React.JSX.IntrinsicElements['div'];
|
|
146
146
|
/**
|
|
147
147
|
* The selected date.
|
|
148
148
|
* @default undefined
|
|
@@ -483,6 +483,7 @@ const DatePicker = forwardRef<HTMLInputElement, DatePickerProps>(
|
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
if (pickerType && inputFocused) {
|
|
486
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
486
487
|
setPickerType(pickerType);
|
|
487
488
|
if (showPicker && autoOpen && isMinXs) {
|
|
488
489
|
setPickerVisibility(true);
|
package/src/Drawer/index.tsx
CHANGED
|
@@ -13,7 +13,7 @@ import React, { forwardRef, useCallback, useContext, useRef } from 'react';
|
|
|
13
13
|
import FocusLock from 'react-focus-lock';
|
|
14
14
|
import { ModalMask } from '../Modal/index.js';
|
|
15
15
|
|
|
16
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
16
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
17
17
|
export interface DrawerProps extends JsxDivProps, WithSize {
|
|
18
18
|
/**
|
|
19
19
|
* The placement of the drawer.
|
package/src/Form/index.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { type WithSize, sizeStyles } from '@os-design/styles';
|
|
3
3
|
import { omitEmotionProps } from '@os-design/utils';
|
|
4
|
-
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import FormConfigContext from './FormConfigContext.js';
|
|
6
6
|
|
|
7
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
7
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
8
|
export interface FormProps extends JsxDivProps, WithSize {
|
|
9
9
|
/**
|
|
10
10
|
* The text that is displayed to the right of the label of the optional field.
|
|
@@ -2,9 +2,9 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { ellipsisStyles, sizeStyles, type WithSize } from '@os-design/styles';
|
|
3
3
|
import { clr } from '@os-design/theming';
|
|
4
4
|
import { omitEmotionProps } from '@os-design/utils';
|
|
5
|
-
import { forwardRef } from 'react';
|
|
5
|
+
import React, { forwardRef } from 'react';
|
|
6
6
|
|
|
7
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
7
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
8
|
export interface FormDividerProps extends JsxDivProps, WithSize {
|
|
9
9
|
/**
|
|
10
10
|
* The title that is in the center of the divider.
|
package/src/FormItem/index.tsx
CHANGED
|
@@ -2,10 +2,10 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { sizeStyles, type WithSize } from '@os-design/styles';
|
|
3
3
|
import { clr, ThemeOverrider } from '@os-design/theming';
|
|
4
4
|
import { omitEmotionProps } from '@os-design/utils';
|
|
5
|
-
import { forwardRef, useContext, useMemo } from 'react';
|
|
5
|
+
import React, { forwardRef, useContext, useMemo } from 'react';
|
|
6
6
|
import FormConfigContext from '../Form/FormConfigContext.js';
|
|
7
7
|
|
|
8
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
8
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
9
9
|
export interface FormItemProps extends JsxDivProps, WithSize {
|
|
10
10
|
/**
|
|
11
11
|
* Label of the field.
|
|
@@ -80,6 +80,7 @@ const FormItem = forwardRef<HTMLDivElement, FormItemProps>(
|
|
|
80
80
|
const { optionalText } = useContext(FormConfigContext);
|
|
81
81
|
|
|
82
82
|
const containerId = useMemo(
|
|
83
|
+
// eslint-disable-next-line react-hooks/purity
|
|
83
84
|
() => id || Math.random().toString(36).slice(2, 11),
|
|
84
85
|
[id]
|
|
85
86
|
);
|
package/src/Gallery/index.tsx
CHANGED
|
@@ -63,7 +63,7 @@ const RightButton = styled(NavButton)`
|
|
|
63
63
|
right: 0.2em;
|
|
64
64
|
`;
|
|
65
65
|
|
|
66
|
-
type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
|
|
66
|
+
type JsxDivProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'>;
|
|
67
67
|
export interface GalleryProps extends JsxDivProps {
|
|
68
68
|
/**
|
|
69
69
|
* The image urls.
|
|
@@ -125,6 +125,7 @@ const Gallery = forwardRef<HTMLDivElement, GalleryProps>(
|
|
|
125
125
|
|
|
126
126
|
// Update the image if the index was changed
|
|
127
127
|
useEffect(() => {
|
|
128
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
128
129
|
setImageUrl(imageIndex !== null ? urls[imageIndex] : undefined);
|
|
129
130
|
}, [imageIndex, urls]);
|
|
130
131
|
|
package/src/Image/index.tsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { omitEmotionProps } from '@os-design/utils';
|
|
4
|
-
import { forwardRef, useCallback } from 'react';
|
|
4
|
+
import React, { forwardRef, useCallback } from 'react';
|
|
5
5
|
|
|
6
6
|
const EMPTY_IMAGE =
|
|
7
7
|
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mO8+R8AArcB2pIvCSwAAAAASUVORK5CYII=';
|
|
8
8
|
|
|
9
|
-
type JsxImgProps = Omit<JSX.IntrinsicElements['img'], 'sizes' | 'ref'>;
|
|
9
|
+
type JsxImgProps = Omit<React.JSX.IntrinsicElements['img'], 'sizes' | 'ref'>;
|
|
10
10
|
export interface ImageProps extends JsxImgProps {
|
|
11
11
|
/**
|
|
12
12
|
* The image URL.
|