@ttoss/ui 4.1.1 → 4.1.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/esm/index.js CHANGED
@@ -329,9 +329,7 @@ var DropdownIndicator = props => {
329
329
  });
330
330
  };
331
331
  var IndicatorsContainer = ({
332
- children,
333
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
334
- ...props
332
+ children
335
333
  }) => {
336
334
  return /* @__PURE__ */jsx7(Box, {
337
335
  sx: {
@@ -360,14 +358,18 @@ var SelectContainer = ({
360
358
  sx,
361
359
  css: css2
362
360
  } = props.selectProps;
363
- return /* @__PURE__ */jsx7(Box, {
364
- sx,
365
- css: css2,
366
- children: /* @__PURE__ */jsx7(components.SelectContainer, {
367
- ...props,
368
- children
361
+ return (
362
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
363
+ /* @__PURE__ */
364
+ jsx7(Box, {
365
+ sx,
366
+ css: css2,
367
+ children: /* @__PURE__ */jsx7(components.SelectContainer, {
368
+ ...props,
369
+ children
370
+ })
369
371
  })
370
- });
372
+ );
371
373
  };
372
374
  var ValueContainer = ({
373
375
  children,
package/dist/index.d.mts CHANGED
@@ -79,7 +79,7 @@ type SelectProps = Omit<Props<SelectOption, IsMulti>, 'styles' | 'value' | 'onCh
79
79
  /**
80
80
  * https://react-select.com/home
81
81
  */
82
- declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "styles" | "onChange" | "value" | "components"> & SxProp & {
82
+ declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "value" | "onChange" | "styles" | "components"> & SxProp & {
83
83
  value?: SelectOptionValue | undefined;
84
84
  onChange?: ((value: SelectOptionValue | undefined) => void) | undefined;
85
85
  disabled?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -79,7 +79,7 @@ type SelectProps = Omit<Props<SelectOption, IsMulti>, 'styles' | 'value' | 'onCh
79
79
  /**
80
80
  * https://react-select.com/home
81
81
  */
82
- declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "styles" | "onChange" | "value" | "components"> & SxProp & {
82
+ declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "value" | "onChange" | "styles" | "components"> & SxProp & {
83
83
  value?: SelectOptionValue | undefined;
84
84
  onChange?: ((value: SelectOptionValue | undefined) => void) | undefined;
85
85
  disabled?: boolean | undefined;
package/dist/index.js CHANGED
@@ -405,9 +405,7 @@ var DropdownIndicator = props => {
405
405
  });
406
406
  };
407
407
  var IndicatorsContainer = ({
408
- children,
409
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
410
- ...props
408
+ children
411
409
  }) => {
412
410
  return /* @__PURE__ */(0, import_jsx_runtime7.jsx)(import_theme_ui5.Box, {
413
411
  sx: {
@@ -436,14 +434,18 @@ var SelectContainer = ({
436
434
  sx,
437
435
  css: css2
438
436
  } = props.selectProps;
439
- return /* @__PURE__ */(0, import_jsx_runtime7.jsx)(import_theme_ui5.Box, {
440
- sx,
441
- css: css2,
442
- children: /* @__PURE__ */(0, import_jsx_runtime7.jsx)(import_react_select.components.SelectContainer, {
443
- ...props,
444
- children
437
+ return (
438
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
439
+ /* @__PURE__ */
440
+ (0, import_jsx_runtime7.jsx)(import_theme_ui5.Box, {
441
+ sx,
442
+ css: css2,
443
+ children: /* @__PURE__ */(0, import_jsx_runtime7.jsx)(import_react_select.components.SelectContainer, {
444
+ ...props,
445
+ children
446
+ })
445
447
  })
446
- });
448
+ );
447
449
  };
448
450
  var ValueContainer = ({
449
451
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -11,36 +11,40 @@
11
11
  "url": "https://github.com/ttoss/ttoss.git",
12
12
  "directory": "packages/ui"
13
13
  },
14
- "main": "dist/index.js",
15
- "module": "dist/esm/index.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/esm/index.js",
17
+ "require": "./dist/index.js",
18
+ "types": "./dist/index.d.ts"
19
+ }
20
+ },
16
21
  "files": [
17
22
  "dist",
18
23
  "src"
19
24
  ],
20
25
  "sideEffects": false,
21
- "typings": "dist/index.d.ts",
22
26
  "dependencies": {
23
- "@theme-ui/match-media": "^0.16.1",
27
+ "@theme-ui/match-media": "^0.16.2",
24
28
  "react-select": "^5.8.0",
25
- "theme-ui": "^0.16.1",
26
- "@ttoss/theme": "^1.7.0"
29
+ "theme-ui": "^0.16.2",
30
+ "@ttoss/theme": "^1.7.1"
27
31
  },
28
32
  "peerDependencies": {
29
33
  "@emotion/react": "^11",
30
34
  "react": ">=16.8.0",
31
- "@ttoss/react-icons": "^0.3.0"
35
+ "@ttoss/react-icons": "^0.3.1"
32
36
  },
33
37
  "devDependencies": {
34
38
  "@emotion/react": "^11.11.3",
35
39
  "@iconify-icons/mdi-light": "^1.2.5",
36
- "@types/jest": "^29.5.11",
37
- "@types/react": "^18.2.48",
40
+ "@types/jest": "^29.5.12",
41
+ "@types/react": "^18.2.58",
38
42
  "jest": "^29.7.0",
39
43
  "react": "^18.2.0",
40
- "tsup": "^8.0.1",
41
- "@ttoss/test-utils": "^2.1.0",
42
- "@ttoss/config": "^1.31.4",
43
- "@ttoss/react-icons": "^0.3.0"
44
+ "tsup": "^8.0.2",
45
+ "@ttoss/config": "^1.31.5",
46
+ "@ttoss/react-icons": "^0.3.1",
47
+ "@ttoss/test-utils": "^2.1.1"
44
48
  },
45
49
  "keywords": [
46
50
  "React",
@@ -55,6 +59,7 @@
55
59
  "gitHead": "e2b509ee8717f07f7365191b651dcbb5f080e05a",
56
60
  "scripts": {
57
61
  "build": "tsup",
62
+ "dev": "pnpm --filter @docs/storybook run dev",
58
63
  "test": "jest"
59
64
  }
60
65
  }
@@ -117,8 +117,6 @@ const DropdownIndicator = (
117
117
 
118
118
  const IndicatorsContainer = ({
119
119
  children,
120
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
121
- ...props
122
120
  }: IndicatorsContainerProps<SelectOption, IsMulti>) => {
123
121
  return (
124
122
  <Box
@@ -152,7 +150,8 @@ const SelectContainer = ({
152
150
  const { sx, css } = props.selectProps as unknown as SelectProps;
153
151
 
154
152
  return (
155
- <Box sx={sx} css={css}>
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
+ <Box sx={sx as any} css={css}>
156
155
  <components.SelectContainer {...props}>
157
156
  {children}
158
157
  </components.SelectContainer>