@ssa-ui-kit/core 2.18.1 → 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.
@@ -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
@@ -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: "1tzrjg9",
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)(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),
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"
@@ -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.jsxs)(Popover, {
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: [(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
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,