@ssa-ui-kit/core 2.18.0 → 2.18.2-canary-e0931c0-20250513

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.
@@ -0,0 +1,3 @@
1
+ export declare const ColorDropdown: import("@emotion/styled").StyledComponent<import("../../Dropdown").DropdownProps<import("../..").DropdownOptionProps> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ }, {}, {}>;
@@ -2,3 +2,4 @@ export * from './HexInput';
2
2
  export * from './HlsInput';
3
3
  export * from './RgbInput';
4
4
  export * from './CopyButton';
5
+ export * from './ColorDropdown';
@@ -0,0 +1,3 @@
1
+ export declare const TypeaheadFocusTrap: ({ children, }: {
2
+ children: React.ReactElement;
3
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -4,4 +4,5 @@ export * from './TypeaheadTrigger';
4
4
  export * from './TypeaheadItem';
5
5
  export * from './TypeaheadOptions';
6
6
  export * from './TypeaheadOption';
7
+ export * from './TypeaheadFocusTrap';
7
8
  export * from './NoOptions';
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");
@@ -8173,13 +8173,12 @@ const AddNewAccountCard = ({
8173
8173
 
8174
8174
  ;// ./src/components/ButtonGroup/styles.ts
8175
8175
 
8176
- const ButtonItem = theme => /*#__PURE__*/(0,react_namespaceObject.css)("justify-content:center;min-width:40px;height:auto;padding:8px;text-align:center;letter-spacing:0em;border-radius:0;box-shadow:none;user-select:none;&:hover,&:focus,&:active{box-shadow:none;}&:first-of-type{border-radius:6px 0 0 6px;}&:last-child{border-radius:0 6px 6px 0;}&:not(:last-child){margin-right:1px;}&.active{background:", theme.colors.greyFocused, ";}&:disabled{background:", theme.colors.grey, ";p{color:", theme.colors.grey40, ";}}", theme.mediaQueries.md, "{min-width:65px;padding:12px;p{font-size:13.3px;line-height:15px;}}" + ( true ? "" : 0), true ? "" : 0);
8176
+ const ButtonItem = theme => /*#__PURE__*/(0,react_namespaceObject.css)("justify-content:center;min-width:40px;height:auto;padding:8px;text-align:center;letter-spacing:0em;border-radius:0;box-shadow:none;user-select:none;font-size:0.694rem;line-height:0.938rem;font-style:normal;font-weight:500;&:hover,&:focus,&:active{box-shadow:none;}&:first-of-type{border-radius:6px 0 0 6px;}&:last-child{border-radius:0 6px 6px 0;}&:not(:last-child){margin-right:1px;}&.active{background:", theme.colors.greyFocused, ";}&:disabled{background:", theme.colors.grey, ";color:", theme.colors.grey40, ";}", theme.mediaQueries.md, "{min-width:65px;padding:12px;font-size:13.3px;line-height:15px;}" + ( true ? "" : 0), true ? "" : 0);
8177
8177
  ;// ./src/components/ButtonGroup/ButtonGroup.tsx
8178
8178
 
8179
8179
 
8180
8180
 
8181
8181
 
8182
-
8183
8182
  const ButtonGroup = ({
8184
8183
  items,
8185
8184
  buttonStyles,
@@ -8207,10 +8206,7 @@ const ButtonGroup = ({
8207
8206
  onClick: handleClick(item),
8208
8207
  css: [ButtonItem, buttonStyles, true ? "" : 0, true ? "" : 0],
8209
8208
  className: isActive ? 'active' : '',
8210
- children: (0,jsx_runtime_namespaceObject.jsx)(Typography_Typography, {
8211
- variant: "body1",
8212
- children: item.text
8213
- })
8209
+ children: item.text
8214
8210
  }, item.id);
8215
8211
  })
8216
8212
  });
@@ -11773,8 +11769,8 @@ function BaseInput_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
11773
11769
  const BaseInput = /*#__PURE__*/base_default()("input", true ? {
11774
11770
  target: "e1ruz5i20"
11775
11771
  } : 0)( true ? {
11776
- name: "1tzrjg9",
11777
- styles: "border:none;width:100%;height:100%;text-align:center"
11772
+ name: "4a2r7m",
11773
+ 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
11774
  } : 0);
11779
11775
  ;// ./src/components/ColorPicker/components/HexInput.tsx
11780
11776
 
@@ -11863,6 +11859,7 @@ const RgbInput = ({
11863
11859
  return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
11864
11860
  css: RgbInput_ref,
11865
11861
  children: rgbComponents.map(component => (0,jsx_runtime_namespaceObject.jsx)(BaseInput, {
11862
+ type: "number",
11866
11863
  value: rawRgb[component],
11867
11864
  onBlur: () => setEditing(false),
11868
11865
  onFocus: () => setEditing(true),
@@ -11928,6 +11925,7 @@ const HlsInput = ({
11928
11925
  return (0,jsx_runtime_namespaceObject.jsx)(Wrapper_Wrapper, {
11929
11926
  css: HlsInput_ref,
11930
11927
  children: hslComponents.map(component => (0,jsx_runtime_namespaceObject.jsx)(BaseInput, {
11928
+ type: "number",
11931
11929
  value: rawHsl[component],
11932
11930
  onBlur: () => setEditing(false),
11933
11931
  onFocus: () => setEditing(true),
@@ -11935,6 +11933,22 @@ const HlsInput = ({
11935
11933
  }, component))
11936
11934
  });
11937
11935
  };
11936
+ ;// ./src/components/ColorPicker/components/ColorDropdown.tsx
11937
+
11938
+
11939
+ const ColorDropdown = /*#__PURE__*/base_default()(Dropdown_Dropdown, true ? {
11940
+ target: "e1xwf2tv0"
11941
+ } : 0)("color:", ({
11942
+ theme
11943
+ }) => theme.colors.greyDarker, ";background:", ({
11944
+ theme
11945
+ }) => theme.colors.white, ";border:1px solid;border-color:", ({
11946
+ theme
11947
+ }) => theme.colors.grey, ";border-radius:8px;&:focus{color:", ({
11948
+ theme
11949
+ }) => theme.colors.greyDarker, ";background:", ({
11950
+ theme
11951
+ }) => theme.colors.white, ";}&:focus::before{content:none;}" + ( true ? "" : 0));
11938
11952
  ;// ./src/components/ColorPicker/components/CopyButton.tsx
11939
11953
 
11940
11954
 
@@ -11959,7 +11973,6 @@ function ColorPicker_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
11959
11973
 
11960
11974
 
11961
11975
 
11962
-
11963
11976
  const COLOR_FORMAT = {
11964
11977
  hex: 'HEX',
11965
11978
  rgb: 'RGB',
@@ -12034,13 +12047,7 @@ const ColorPicker = ({
12034
12047
  children: [panel, (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
12035
12048
  alignItems: "center",
12036
12049
  css: ColorPicker_ref2,
12037
- children: [(0,jsx_runtime_namespaceObject.jsx)(Dropdown_Dropdown, {
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),
12050
+ children: [(0,jsx_runtime_namespaceObject.jsx)(ColorDropdown, {
12044
12051
  className: /*#__PURE__*/(0,css_namespaceObject.css)( true ? {
12045
12052
  name: "2746za",
12046
12053
  styles: "height:28px"
@@ -14395,7 +14402,7 @@ const Trigger = () => {
14395
14402
  disabled: disabled,
14396
14403
  "data-testid": "daterangepicker",
14397
14404
  className: classNames?.trigger?.root,
14398
- children: [(0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
14405
+ children: [label && (0,jsx_runtime_namespaceObject.jsx)(FieldLabel, {
14399
14406
  htmlFor: lastFocusedElement === 'from' ? nameFrom : nameTo,
14400
14407
  className: classNames?.label,
14401
14408
  children: label
@@ -18177,6 +18184,24 @@ const useTypeahead = ({
18177
18184
  handleRemoveSelectedClick
18178
18185
  };
18179
18186
  };
18187
+ ;// ./src/components/Typeahead/components/TypeaheadFocusTrap.tsx
18188
+
18189
+
18190
+
18191
+ const TypeaheadFocusTrap = ({
18192
+ children
18193
+ }) => {
18194
+ const {
18195
+ context,
18196
+ modal
18197
+ } = usePopoverContext();
18198
+ return (0,jsx_runtime_namespaceObject.jsx)(external_floating_ui_react_namespaceObject.FloatingFocusManager, {
18199
+ context: context,
18200
+ modal: modal,
18201
+ order: ['reference'],
18202
+ children: children
18203
+ });
18204
+ };
18180
18205
  ;// ./src/components/Typeahead/styles.ts
18181
18206
 
18182
18207
  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 +18588,31 @@ const Typeahead = ({
18563
18588
  isDisabled: isDisabled,
18564
18589
  "data-testid": "typeahead-label",
18565
18590
  children: label
18566
- }), (0,jsx_runtime_namespaceObject.jsxs)(Popover, {
18591
+ }), (0,jsx_runtime_namespaceObject.jsx)(Popover, {
18567
18592
  keyboardHandlers: false,
18568
18593
  floatingOptions: {
18569
18594
  onOpenChange: hookResult.handleOpenChange,
18570
18595
  open: hookResult.isOpen
18571
18596
  },
18572
- children: [(0,jsx_runtime_namespaceObject.jsx)(TypeaheadTrigger_TypeaheadTrigger, {}), (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
18573
- css: /*#__PURE__*/(0,react_namespaceObject.css)({
18574
- width: hookResult.triggerRef.current?.clientWidth,
18575
- boxShadow: `-4px 4px 14px 0px ${theme.colors.greyDarker14}`,
18576
- zIndex: 100
18577
- }, true ? "" : 0, true ? "" : 0),
18578
- isFocusManagerDisabled: true,
18579
- children: (0,jsx_runtime_namespaceObject.jsx)(PopoverDescription, {
18580
- css: Typeahead_ref,
18581
- children: hookResult.isOpen ? (0,jsx_runtime_namespaceObject.jsx)(TypeaheadOptions, {
18582
- className: optionsClassName,
18583
- children: children
18584
- }) : null
18597
+ children: (0,jsx_runtime_namespaceObject.jsx)(TypeaheadFocusTrap, {
18598
+ children: (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
18599
+ children: [(0,jsx_runtime_namespaceObject.jsx)(TypeaheadTrigger_TypeaheadTrigger, {}), (0,jsx_runtime_namespaceObject.jsx)(PopoverContent, {
18600
+ css: /*#__PURE__*/(0,react_namespaceObject.css)({
18601
+ width: hookResult.triggerRef.current?.clientWidth,
18602
+ boxShadow: `-4px 4px 14px 0px ${theme.colors.greyDarker14}`,
18603
+ zIndex: 100
18604
+ }, true ? "" : 0, true ? "" : 0),
18605
+ isFocusManagerDisabled: true,
18606
+ children: (0,jsx_runtime_namespaceObject.jsx)(PopoverDescription, {
18607
+ css: Typeahead_ref,
18608
+ children: hookResult.isOpen ? (0,jsx_runtime_namespaceObject.jsx)(TypeaheadOptions, {
18609
+ className: optionsClassName,
18610
+ children: children
18611
+ }) : null
18612
+ })
18613
+ })]
18585
18614
  })
18586
- })]
18615
+ })
18587
18616
  }), (hookResult.status === 'error' || helperText) && (0,jsx_runtime_namespaceObject.jsx)(FormHelperText_FormHelperText, {
18588
18617
  role: "status",
18589
18618
  status: hookResult.status,