@ssa-ui-kit/core 2.18.0 → 2.18.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/components/ColorPicker/components/ColorDropdown.d.ts +3 -0
- package/dist/components/ColorPicker/components/index.d.ts +1 -0
- package/dist/components/Typeahead/components/TypeaheadFocusTrap.d.ts +3 -0
- package/dist/components/Typeahead/components/index.d.ts +1 -0
- package/dist/index.js +60 -27
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1309,7 +1309,7 @@ const Avatar = /*#__PURE__*/base_default()("div", true ? {
|
|
|
1309
1309
|
size
|
|
1310
1310
|
}) => size, "px;background:", ({
|
|
1311
1311
|
image
|
|
1312
|
-
}) => `url(${image})`, " center no-repeat;" + ( true ? "" : 0));
|
|
1312
|
+
}) => `url(${image})`, " center/contain no-repeat;" + ( true ? "" : 0));
|
|
1313
1313
|
/* harmony default export */ const Avatar_Avatar = (Avatar);
|
|
1314
1314
|
;// external "react"
|
|
1315
1315
|
const external_react_namespaceObject = require("react");
|
|
@@ -11773,8 +11773,8 @@ function BaseInput_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
|
|
|
11773
11773
|
const BaseInput = /*#__PURE__*/base_default()("input", true ? {
|
|
11774
11774
|
target: "e1ruz5i20"
|
|
11775
11775
|
} : 0)( true ? {
|
|
11776
|
-
name: "
|
|
11777
|
-
styles: "border:none;width:100%;height:100%;text-align:center"
|
|
11776
|
+
name: "4a2r7m",
|
|
11777
|
+
styles: "border:none;width:100%;height:100%;text-align:center;-moz-appearance:textfield;appearance:textfield;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"
|
|
11778
11778
|
} : 0);
|
|
11779
11779
|
;// ./src/components/ColorPicker/components/HexInput.tsx
|
|
11780
11780
|
|
|
@@ -11863,6 +11863,7 @@ const RgbInput = ({
|
|
|
11863
11863
|
return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
|
|
11864
11864
|
css: RgbInput_ref,
|
|
11865
11865
|
children: rgbComponents.map(component => (0,jsx_runtime_namespaceObject.jsx)(BaseInput, {
|
|
11866
|
+
type: "number",
|
|
11866
11867
|
value: rawRgb[component],
|
|
11867
11868
|
onBlur: () => setEditing(false),
|
|
11868
11869
|
onFocus: () => setEditing(true),
|
|
@@ -11928,6 +11929,7 @@ const HlsInput = ({
|
|
|
11928
11929
|
return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
|
|
11929
11930
|
css: HlsInput_ref,
|
|
11930
11931
|
children: hslComponents.map(component => (0,jsx_runtime_namespaceObject.jsx)(BaseInput, {
|
|
11932
|
+
type: "number",
|
|
11931
11933
|
value: rawHsl[component],
|
|
11932
11934
|
onBlur: () => setEditing(false),
|
|
11933
11935
|
onFocus: () => setEditing(true),
|
|
@@ -11935,6 +11937,22 @@ const HlsInput = ({
|
|
|
11935
11937
|
}, component))
|
|
11936
11938
|
});
|
|
11937
11939
|
};
|
|
11940
|
+
;// ./src/components/ColorPicker/components/ColorDropdown.tsx
|
|
11941
|
+
|
|
11942
|
+
|
|
11943
|
+
const ColorDropdown = /*#__PURE__*/base_default()(Dropdown_Dropdown, true ? {
|
|
11944
|
+
target: "e1xwf2tv0"
|
|
11945
|
+
} : 0)("color:", ({
|
|
11946
|
+
theme
|
|
11947
|
+
}) => theme.colors.greyDarker, ";background:", ({
|
|
11948
|
+
theme
|
|
11949
|
+
}) => theme.colors.white, ";border:1px solid;border-color:", ({
|
|
11950
|
+
theme
|
|
11951
|
+
}) => theme.colors.grey, ";border-radius:8px;&:focus{color:", ({
|
|
11952
|
+
theme
|
|
11953
|
+
}) => theme.colors.greyDarker, ";background:", ({
|
|
11954
|
+
theme
|
|
11955
|
+
}) => theme.colors.white, ";}&:focus::before{content:none;}" + ( true ? "" : 0));
|
|
11938
11956
|
;// ./src/components/ColorPicker/components/CopyButton.tsx
|
|
11939
11957
|
|
|
11940
11958
|
|
|
@@ -11959,7 +11977,6 @@ function ColorPicker_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|
|
11959
11977
|
|
|
11960
11978
|
|
|
11961
11979
|
|
|
11962
|
-
|
|
11963
11980
|
const COLOR_FORMAT = {
|
|
11964
11981
|
hex: 'HEX',
|
|
11965
11982
|
rgb: 'RGB',
|
|
@@ -12034,13 +12051,7 @@ const ColorPicker = ({
|
|
|
12034
12051
|
children: [panel, (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
12035
12052
|
alignItems: "center",
|
|
12036
12053
|
css: ColorPicker_ref2,
|
|
12037
|
-
children: [(0,jsx_runtime_namespaceObject.jsx)(
|
|
12038
|
-
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
12039
|
-
background: theme.colors.white,
|
|
12040
|
-
border: '1px solid',
|
|
12041
|
-
borderColor: theme.colors.grey,
|
|
12042
|
-
borderRadius: '8px'
|
|
12043
|
-
}, true ? "" : 0, true ? "" : 0),
|
|
12054
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(ColorDropdown, {
|
|
12044
12055
|
className: /*#__PURE__*/(0,css_namespaceObject.css)( true ? {
|
|
12045
12056
|
name: "2746za",
|
|
12046
12057
|
styles: "height:28px"
|
|
@@ -14395,7 +14406,7 @@ const Trigger = () => {
|
|
|
14395
14406
|
disabled: disabled,
|
|
14396
14407
|
"data-testid": "daterangepicker",
|
|
14397
14408
|
className: classNames?.trigger?.root,
|
|
14398
|
-
children: [(0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
|
|
14409
|
+
children: [label && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
|
|
14399
14410
|
htmlFor: lastFocusedElement === 'from' ? nameFrom : nameTo,
|
|
14400
14411
|
className: classNames?.label,
|
|
14401
14412
|
children: label
|
|
@@ -18177,6 +18188,24 @@ const useTypeahead = ({
|
|
|
18177
18188
|
handleRemoveSelectedClick
|
|
18178
18189
|
};
|
|
18179
18190
|
};
|
|
18191
|
+
;// ./src/components/Typeahead/components/TypeaheadFocusTrap.tsx
|
|
18192
|
+
|
|
18193
|
+
|
|
18194
|
+
|
|
18195
|
+
const TypeaheadFocusTrap = ({
|
|
18196
|
+
children
|
|
18197
|
+
}) => {
|
|
18198
|
+
const {
|
|
18199
|
+
context,
|
|
18200
|
+
modal
|
|
18201
|
+
} = usePopoverContext();
|
|
18202
|
+
return (0,jsx_runtime_namespaceObject.jsx)(external_floating_ui_react_namespaceObject.FloatingFocusManager, {
|
|
18203
|
+
context: context,
|
|
18204
|
+
modal: modal,
|
|
18205
|
+
order: ['reference'],
|
|
18206
|
+
children: children
|
|
18207
|
+
});
|
|
18208
|
+
};
|
|
18180
18209
|
;// ./src/components/Typeahead/styles.ts
|
|
18181
18210
|
|
|
18182
18211
|
function Typeahead_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -18563,27 +18592,31 @@ const Typeahead = ({
|
|
|
18563
18592
|
isDisabled: isDisabled,
|
|
18564
18593
|
"data-testid": "typeahead-label",
|
|
18565
18594
|
children: label
|
|
18566
|
-
}), (0,jsx_runtime_namespaceObject.
|
|
18595
|
+
}), (0,jsx_runtime_namespaceObject.jsx)(Popover, {
|
|
18567
18596
|
keyboardHandlers: false,
|
|
18568
18597
|
floatingOptions: {
|
|
18569
18598
|
onOpenChange: hookResult.handleOpenChange,
|
|
18570
18599
|
open: hookResult.isOpen
|
|
18571
18600
|
},
|
|
18572
|
-
children:
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18601
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(TypeaheadFocusTrap, {
|
|
18602
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
18603
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(TypeaheadTrigger_TypeaheadTrigger, {}), (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
|
|
18604
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
18605
|
+
width: hookResult.triggerRef.current?.clientWidth,
|
|
18606
|
+
boxShadow: `-4px 4px 14px 0px ${theme.colors.greyDarker14}`,
|
|
18607
|
+
zIndex: 100
|
|
18608
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
18609
|
+
isFocusManagerDisabled: true,
|
|
18610
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(PopoverDescription, {
|
|
18611
|
+
css: Typeahead_ref,
|
|
18612
|
+
children: hookResult.isOpen ? (0,jsx_runtime_namespaceObject.jsx)(TypeaheadOptions, {
|
|
18613
|
+
className: optionsClassName,
|
|
18614
|
+
children: children
|
|
18615
|
+
}) : null
|
|
18616
|
+
})
|
|
18617
|
+
})]
|
|
18585
18618
|
})
|
|
18586
|
-
})
|
|
18619
|
+
})
|
|
18587
18620
|
}), (hookResult.status === 'error' || helperText) && (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
|
|
18588
18621
|
role: "status",
|
|
18589
18622
|
status: hookResult.status,
|