@ornikar/kitt-universal 3.6.0 → 3.7.0
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/definitions/Button/AnimatedButtonPressable.web.d.ts +2 -2
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +21 -21
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/useKittTheme.d.ts +0 -2
- package/dist/definitions/useKittTheme.d.ts.map +1 -1
- package/dist/definitions/utils/withTheme.d.ts +2 -2
- package/dist/definitions/utils/withTheme.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +8 -6
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.css +1 -1
- package/dist/index-browser-all.es.ios.js +8 -6
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +25 -27
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +69 -75
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.css +1 -1
- package/dist/index-node-14.17.cjs.js +8 -9
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +2 -2
- package/dist/index-node-14.17.cjs.web.js +42 -46
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -9,9 +9,9 @@ interface AnimatedButtonPressableContainerProps {
|
|
|
9
9
|
$isStretch?: boolean;
|
|
10
10
|
$isSubtle?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const AnimatedButtonPressableContainer: import("react").
|
|
12
|
+
export declare const AnimatedButtonPressableContainer: import("react").ForwardRefExoticComponent<Pick<import("type-fest").Except<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & AnimatedButtonPressableContainerProps & {
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
}, "theme">>;
|
|
14
|
+
}, "theme">, "children" | "style" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onMouseUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "key" | "slot" | "title" | "hidden" | "color" | "as" | "id" | "autoCapitalize" | "autoCorrect" | "defaultValue" | "onBlur" | "onChange" | "onFocus" | "onScroll" | "onKeyPress" | "placeholder" | "spellCheck" | "onError" | "onLoad" | "onLoadStart" | "onProgress" | "$isStretch" | "$type" | "$isDisabled" | "className" | "$isSubtle" | "aria-checked" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & import("react").RefAttributes<unknown>>;
|
|
15
15
|
export declare const AnimatedButtonPressable: import("react").ForwardRefExoticComponent<AnimatedButtonPressableProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=AnimatedButtonPressable.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedButtonPressable.web.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedButtonPressable.web.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"AnimatedButtonPressable.web.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedButtonPressable.web.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,UAAU,qCAAqC;IAC7C,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gCAAgC;;knJA0H3C,CAAC;AAEH,eAAO,MAAM,uBAAuB,yHAQnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AA2E3D,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAM/F"}
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
export declare const breakpoints: {
|
|
2
|
-
values: {
|
|
3
|
-
base: number;
|
|
4
|
-
small: number;
|
|
5
|
-
medium: number;
|
|
6
|
-
large: number;
|
|
7
|
-
wide: number;
|
|
8
|
-
};
|
|
9
|
-
min: {
|
|
10
|
-
smallBreakpoint: string;
|
|
11
|
-
mediumBreakpoint: string;
|
|
12
|
-
largeBreakpoint: string;
|
|
13
|
-
wideBreakpoint: string;
|
|
14
|
-
};
|
|
15
|
-
max: {
|
|
16
|
-
smallBreakpoint: string;
|
|
17
|
-
mediumBreakpoint: string;
|
|
18
|
-
largeBreakpoint: string;
|
|
19
|
-
wideBreakpoint: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
1
|
export declare const theme: {
|
|
23
2
|
spacing: number;
|
|
24
3
|
colors: {
|
|
@@ -242,6 +221,27 @@ export declare const theme: {
|
|
|
242
221
|
};
|
|
243
222
|
tooltip: import("./late-ocean/tooltip").TooltipTheme;
|
|
244
223
|
skeleton: import("./late-ocean/skeletonTheme").SkeletonTheme;
|
|
224
|
+
breakpoints: {
|
|
225
|
+
values: {
|
|
226
|
+
base: number;
|
|
227
|
+
small: number;
|
|
228
|
+
medium: number;
|
|
229
|
+
large: number;
|
|
230
|
+
wide: number;
|
|
231
|
+
};
|
|
232
|
+
min: {
|
|
233
|
+
smallBreakpoint: string;
|
|
234
|
+
mediumBreakpoint: string;
|
|
235
|
+
largeBreakpoint: string;
|
|
236
|
+
wideBreakpoint: string;
|
|
237
|
+
};
|
|
238
|
+
max: {
|
|
239
|
+
smallBreakpoint: string;
|
|
240
|
+
mediumBreakpoint: string;
|
|
241
|
+
largeBreakpoint: string;
|
|
242
|
+
wideBreakpoint: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
245
|
};
|
|
246
246
|
export declare type Theme = typeof theme;
|
|
247
247
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBjB,CAAC;AAEF,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Theme } from './themes/default';
|
|
2
|
-
import { breakpoints } from './themes/default';
|
|
3
2
|
import type { WindowSizeHelper } from './utils/windowSize/createWindowSizeHelper';
|
|
4
3
|
export interface KittTheme {
|
|
5
4
|
kitt: Theme;
|
|
6
5
|
responsive: WindowSizeHelper;
|
|
7
|
-
breakpoints: typeof breakpoints;
|
|
8
6
|
}
|
|
9
7
|
export declare function useKittTheme(): KittTheme;
|
|
10
8
|
//# sourceMappingURL=useKittTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKittTheme.d.ts","sourceRoot":"","sources":["../../src/useKittTheme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useKittTheme.d.ts","sourceRoot":"","sources":["../../src/useKittTheme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAIlF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,YAAY,IAAI,SAAS,CAKxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
1
|
+
import type { ComponentType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
2
2
|
import type { DefaultTheme } from 'styled-components/native';
|
|
3
3
|
import type { Except } from 'type-fest';
|
|
4
4
|
export declare function withTheme<Props extends {
|
|
5
5
|
theme: DefaultTheme;
|
|
6
|
-
}>(WrappedComponent: ComponentType<Props>):
|
|
6
|
+
}, T>(WrappedComponent: ComponentType<Props>): ForwardRefExoticComponent<PropsWithoutRef<Except<Props, 'theme'>> & RefAttributes<T>>;
|
|
7
7
|
//# sourceMappingURL=withTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTheme.d.ts","sourceRoot":"","sources":["../../../src/utils/withTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withTheme.d.ts","sourceRoot":"","sources":["../../../src/utils/withTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAexC,wBAAgB,SAAS,CAAC,KAAK,SAAS;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,EAAE,CAAC,EAChE,gBAAgB,EAAE,aAAa,CAAC,KAAK,CAAC,GACrC,yBAAyB,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAOvF"}
|
|
@@ -3073,7 +3073,7 @@ var breakpoints = {
|
|
|
3073
3073
|
wideBreakpoint: 'max-width: 1279px'
|
|
3074
3074
|
}
|
|
3075
3075
|
}; // eslint-disable-next-line unicorn/expiring-todo-comments
|
|
3076
|
-
// TODO : seperate brand
|
|
3076
|
+
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
3077
3077
|
|
|
3078
3078
|
var theme = {
|
|
3079
3079
|
spacing: 4,
|
|
@@ -3093,7 +3093,8 @@ var theme = {
|
|
|
3093
3093
|
iconButton: iconButton,
|
|
3094
3094
|
listItem: listItemLateOceanTheme,
|
|
3095
3095
|
tooltip: tooltip,
|
|
3096
|
-
skeleton: skeletonTheme
|
|
3096
|
+
skeleton: skeletonTheme,
|
|
3097
|
+
breakpoints: breakpoints
|
|
3097
3098
|
};
|
|
3098
3099
|
|
|
3099
3100
|
function Title(_ref) {
|
|
@@ -3590,8 +3591,7 @@ function useKittTheme() {
|
|
|
3590
3591
|
return useMemo(function () {
|
|
3591
3592
|
return {
|
|
3592
3593
|
kitt: theme,
|
|
3593
|
-
responsive: createWindowSizeHelper(dimensions)
|
|
3594
|
-
breakpoints: breakpoints
|
|
3594
|
+
responsive: createWindowSizeHelper(dimensions)
|
|
3595
3595
|
};
|
|
3596
3596
|
}, [dimensions]);
|
|
3597
3597
|
}
|
|
@@ -3650,12 +3650,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
3650
3650
|
// };
|
|
3651
3651
|
// }
|
|
3652
3652
|
function withTheme(WrappedComponent) {
|
|
3653
|
-
|
|
3653
|
+
// eslint-disable-next-line prefer-arrow-callback
|
|
3654
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3654
3655
|
var theme = /*#__PURE__*/useTheme();
|
|
3655
3656
|
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
|
|
3657
|
+
ref: ref,
|
|
3656
3658
|
theme: theme
|
|
3657
3659
|
}, props));
|
|
3658
|
-
};
|
|
3660
|
+
});
|
|
3659
3661
|
}
|
|
3660
3662
|
|
|
3661
3663
|
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|