@spark-web/select 3.0.0-rc.1 → 3.0.0-rc.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,155 @@
1
1
  # @spark-web/select
2
2
 
3
+ ## 3.0.0-rc.11
4
+
5
+ ### Major Changes
6
+
7
+ - test
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @spark-web/text-input@4.0.0-rc.11
13
+ - @spark-web/field@4.0.0-rc.11
14
+ - @spark-web/theme@4.0.0-rc.11
15
+ - @spark-web/icon@2.0.0-rc.11
16
+ - @spark-web/box@2.0.0-rc.11
17
+
18
+ ## 3.0.0-rc.10
19
+
20
+ ### Major Changes
21
+
22
+ - test
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies []:
27
+ - @spark-web/text-input@4.0.0-rc.10
28
+ - @spark-web/field@4.0.0-rc.10
29
+ - @spark-web/theme@4.0.0-rc.10
30
+ - @spark-web/icon@2.0.0-rc.10
31
+ - @spark-web/box@2.0.0-rc.10
32
+
33
+ ## 3.0.0-rc.9
34
+
35
+ ### Major Changes
36
+
37
+ - test
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @spark-web/text-input@4.0.0-rc.9
43
+ - @spark-web/field@4.0.0-rc.9
44
+ - @spark-web/theme@4.0.0-rc.9
45
+ - @spark-web/icon@2.0.0-rc.9
46
+ - @spark-web/box@2.0.0-rc.9
47
+
48
+ ## 3.0.0-rc.8
49
+
50
+ ### Major Changes
51
+
52
+ - test
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies []:
57
+ - @spark-web/text-input@4.0.0-rc.8
58
+ - @spark-web/field@4.0.0-rc.8
59
+ - @spark-web/theme@4.0.0-rc.8
60
+ - @spark-web/icon@2.0.0-rc.8
61
+ - @spark-web/box@2.0.0-rc.8
62
+
63
+ ## 3.0.0-rc.7
64
+
65
+ ### Major Changes
66
+
67
+ - test
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies []:
72
+ - @spark-web/text-input@4.0.0-rc.7
73
+ - @spark-web/field@4.0.0-rc.7
74
+ - @spark-web/theme@4.0.0-rc.7
75
+ - @spark-web/icon@2.0.0-rc.7
76
+ - @spark-web/box@2.0.0-rc.7
77
+
78
+ ## 3.0.0-rc.6
79
+
80
+ ### Major Changes
81
+
82
+ - test
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies []:
87
+ - @spark-web/text-input@4.0.0-rc.6
88
+ - @spark-web/field@4.0.0-rc.6
89
+ - @spark-web/theme@4.0.0-rc.6
90
+ - @spark-web/icon@2.0.0-rc.6
91
+ - @spark-web/box@2.0.0-rc.6
92
+
93
+ ## 3.0.0-rc.5
94
+
95
+ ### Major Changes
96
+
97
+ - test
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies []:
102
+ - @spark-web/text-input@4.0.0-rc.5
103
+ - @spark-web/field@4.0.0-rc.5
104
+ - @spark-web/theme@4.0.0-rc.5
105
+ - @spark-web/icon@2.0.0-rc.5
106
+ - @spark-web/box@2.0.0-rc.5
107
+
108
+ ## 3.0.0-rc.4
109
+
110
+ ### Major Changes
111
+
112
+ - bug
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies []:
117
+ - @spark-web/text-input@4.0.0-rc.4
118
+ - @spark-web/field@4.0.0-rc.4
119
+ - @spark-web/theme@4.0.0-rc.4
120
+ - @spark-web/icon@2.0.0-rc.4
121
+ - @spark-web/box@2.0.0-rc.4
122
+
123
+ ## 3.0.0-rc.3
124
+
125
+ ### Major Changes
126
+
127
+ - upgrade package
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies []:
132
+ - @spark-web/text-input@4.0.0-rc.3
133
+ - @spark-web/field@4.0.0-rc.3
134
+ - @spark-web/theme@4.0.0-rc.3
135
+ - @spark-web/icon@2.0.0-rc.3
136
+ - @spark-web/box@2.0.0-rc.3
137
+
138
+ ## 3.0.0-rc.2
139
+
140
+ ### Major Changes
141
+
142
+ - add parser
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies []:
147
+ - @spark-web/text-input@4.0.0-rc.2
148
+ - @spark-web/field@4.0.0-rc.2
149
+ - @spark-web/theme@4.0.0-rc.2
150
+ - @spark-web/icon@2.0.0-rc.2
151
+ - @spark-web/box@2.0.0-rc.2
152
+
3
153
  ## 3.0.0-rc.1
4
154
 
5
155
  ### Major Changes
@@ -11,7 +11,7 @@ var icon = require('@spark-web/icon');
11
11
  var textInput = require('@spark-web/text-input');
12
12
  var theme = require('@spark-web/theme');
13
13
  var react = require('react');
14
- var jsxRuntime = require('react/jsx-runtime');
14
+ var jsxRuntime = require('@emotion/react/jsx-runtime');
15
15
 
16
16
  var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
17
17
  var data = _ref.data,
@@ -37,14 +37,14 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
37
37
  boxProps = _useSelectStyles2[0],
38
38
  inputStyles = _useSelectStyles2[1];
39
39
  var mapOptions = react.useCallback(function (opt) {
40
- return /*#__PURE__*/jsxRuntime.jsx("option", {
40
+ return jsxRuntime.jsx("option", {
41
41
  value: opt.value,
42
42
  disabled: opt.disabled,
43
43
  children: opt.label
44
44
  }, opt.value);
45
45
  }, []);
46
- return /*#__PURE__*/jsxRuntime.jsxs(textInput.InputContainer, {
47
- children: [/*#__PURE__*/jsxRuntime.jsx(Indicator, {}), /*#__PURE__*/jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
46
+ return jsxRuntime.jsxs(textInput.InputContainer, {
47
+ children: [jsxRuntime.jsx(Indicator, {}), jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
48
48
  as: "select",
49
49
  css: react$1.css(inputStyles),
50
50
  data: data,
@@ -57,13 +57,13 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
57
57
  required: required,
58
58
  value: value,
59
59
  width: "full",
60
- children: [!value || placeholder ? /*#__PURE__*/jsxRuntime.jsx("option", {
60
+ children: [!value || placeholder ? jsxRuntime.jsx("option", {
61
61
  value: "",
62
62
  disabled: true,
63
63
  children: placeholder
64
64
  }) : null, optionsOrGroups.map(function (optionOrGroup) {
65
65
  if ('options' in optionOrGroup) {
66
- return /*#__PURE__*/jsxRuntime.jsx("optgroup", {
66
+ return jsxRuntime.jsx("optgroup", {
67
67
  label: optionOrGroup.label,
68
68
  children: optionOrGroup.options.map(function (option) {
69
69
  return mapOptions(option);
@@ -77,7 +77,7 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
77
77
  });
78
78
  Select.displayName = 'Select';
79
79
  var Indicator = function Indicator() {
80
- return /*#__PURE__*/jsxRuntime.jsx(box.Box, {
80
+ return jsxRuntime.jsx(box.Box, {
81
81
  position: "absolute",
82
82
  top: 0,
83
83
  bottom: 0,
@@ -88,7 +88,7 @@ var Indicator = function Indicator() {
88
88
  css: react$1.css({
89
89
  pointerEvents: 'none'
90
90
  }),
91
- children: /*#__PURE__*/jsxRuntime.jsx(icon.ChevronDownIcon, {
91
+ children: jsxRuntime.jsx(icon.ChevronDownIcon, {
92
92
  size: "xxsmall",
93
93
  tone: "placeholder"
94
94
  })
@@ -11,7 +11,7 @@ var icon = require('@spark-web/icon');
11
11
  var textInput = require('@spark-web/text-input');
12
12
  var theme = require('@spark-web/theme');
13
13
  var react = require('react');
14
- var jsxRuntime = require('react/jsx-runtime');
14
+ var jsxRuntime = require('@emotion/react/jsx-runtime');
15
15
 
16
16
  var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
17
17
  var data = _ref.data,
@@ -37,14 +37,14 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
37
37
  boxProps = _useSelectStyles2[0],
38
38
  inputStyles = _useSelectStyles2[1];
39
39
  var mapOptions = react.useCallback(function (opt) {
40
- return /*#__PURE__*/jsxRuntime.jsx("option", {
40
+ return jsxRuntime.jsx("option", {
41
41
  value: opt.value,
42
42
  disabled: opt.disabled,
43
43
  children: opt.label
44
44
  }, opt.value);
45
45
  }, []);
46
- return /*#__PURE__*/jsxRuntime.jsxs(textInput.InputContainer, {
47
- children: [/*#__PURE__*/jsxRuntime.jsx(Indicator, {}), /*#__PURE__*/jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
46
+ return jsxRuntime.jsxs(textInput.InputContainer, {
47
+ children: [jsxRuntime.jsx(Indicator, {}), jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
48
48
  as: "select",
49
49
  css: react$1.css(inputStyles),
50
50
  data: data,
@@ -57,13 +57,13 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
57
57
  required: required,
58
58
  value: value,
59
59
  width: "full",
60
- children: [!value || placeholder ? /*#__PURE__*/jsxRuntime.jsx("option", {
60
+ children: [!value || placeholder ? jsxRuntime.jsx("option", {
61
61
  value: "",
62
62
  disabled: true,
63
63
  children: placeholder
64
64
  }) : null, optionsOrGroups.map(function (optionOrGroup) {
65
65
  if ('options' in optionOrGroup) {
66
- return /*#__PURE__*/jsxRuntime.jsx("optgroup", {
66
+ return jsxRuntime.jsx("optgroup", {
67
67
  label: optionOrGroup.label,
68
68
  children: optionOrGroup.options.map(function (option) {
69
69
  return mapOptions(option);
@@ -77,7 +77,7 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
77
77
  });
78
78
  Select.displayName = 'Select';
79
79
  var Indicator = function Indicator() {
80
- return /*#__PURE__*/jsxRuntime.jsx(box.Box, {
80
+ return jsxRuntime.jsx(box.Box, {
81
81
  position: "absolute",
82
82
  top: 0,
83
83
  bottom: 0,
@@ -88,7 +88,7 @@ var Indicator = function Indicator() {
88
88
  css: react$1.css({
89
89
  pointerEvents: 'none'
90
90
  }),
91
- children: /*#__PURE__*/jsxRuntime.jsx(icon.ChevronDownIcon, {
91
+ children: jsxRuntime.jsx(icon.ChevronDownIcon, {
92
92
  size: "xxsmall",
93
93
  tone: "placeholder"
94
94
  })
@@ -7,7 +7,7 @@ import { ChevronDownIcon } from '@spark-web/icon';
7
7
  import { InputContainer, useInputStyles } from '@spark-web/text-input';
8
8
  import { useTheme } from '@spark-web/theme';
9
9
  import { forwardRef, useCallback } from 'react';
10
- import { jsx, jsxs } from 'react/jsx-runtime';
10
+ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
11
11
 
12
12
  var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
13
13
  var data = _ref.data,
@@ -33,14 +33,14 @@ var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
33
33
  boxProps = _useSelectStyles2[0],
34
34
  inputStyles = _useSelectStyles2[1];
35
35
  var mapOptions = useCallback(function (opt) {
36
- return /*#__PURE__*/jsx("option", {
36
+ return jsx("option", {
37
37
  value: opt.value,
38
38
  disabled: opt.disabled,
39
39
  children: opt.label
40
40
  }, opt.value);
41
41
  }, []);
42
- return /*#__PURE__*/jsxs(InputContainer, {
43
- children: [/*#__PURE__*/jsx(Indicator, {}), /*#__PURE__*/jsxs(Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
42
+ return jsxs(InputContainer, {
43
+ children: [jsx(Indicator, {}), jsxs(Box, _objectSpread(_objectSpread(_objectSpread({}, boxProps), a11yProps), {}, {
44
44
  as: "select",
45
45
  css: css(inputStyles),
46
46
  data: data,
@@ -53,13 +53,13 @@ var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
53
53
  required: required,
54
54
  value: value,
55
55
  width: "full",
56
- children: [!value || placeholder ? /*#__PURE__*/jsx("option", {
56
+ children: [!value || placeholder ? jsx("option", {
57
57
  value: "",
58
58
  disabled: true,
59
59
  children: placeholder
60
60
  }) : null, optionsOrGroups.map(function (optionOrGroup) {
61
61
  if ('options' in optionOrGroup) {
62
- return /*#__PURE__*/jsx("optgroup", {
62
+ return jsx("optgroup", {
63
63
  label: optionOrGroup.label,
64
64
  children: optionOrGroup.options.map(function (option) {
65
65
  return mapOptions(option);
@@ -73,7 +73,7 @@ var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
73
73
  });
74
74
  Select.displayName = 'Select';
75
75
  var Indicator = function Indicator() {
76
- return /*#__PURE__*/jsx(Box, {
76
+ return jsx(Box, {
77
77
  position: "absolute",
78
78
  top: 0,
79
79
  bottom: 0,
@@ -84,7 +84,7 @@ var Indicator = function Indicator() {
84
84
  css: css({
85
85
  pointerEvents: 'none'
86
86
  }),
87
- children: /*#__PURE__*/jsx(ChevronDownIcon, {
87
+ children: jsx(ChevronDownIcon, {
88
88
  size: "xxsmall",
89
89
  tone: "placeholder"
90
90
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/select",
3
- "version": "3.0.0-rc.1",
3
+ "version": "3.0.0-rc.11",
4
4
  "homepage": "https://github.com/brighte-labs/spark-web#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,20 +16,20 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.25.0",
19
- "@emotion/react": "^11.13.5",
20
- "@spark-web/box": "^2.0.0-rc.1",
21
- "@spark-web/icon": "^2.0.0-rc.1",
22
- "@spark-web/text-input": "^4.0.0-rc.1",
23
- "@spark-web/theme": "^4.0.0-rc.1"
19
+ "@emotion/react": "^11.14.0",
20
+ "@spark-web/box": "^2.0.0-rc.11",
21
+ "@spark-web/icon": "^2.0.0-rc.11",
22
+ "@spark-web/text-input": "^4.0.0-rc.11",
23
+ "@spark-web/theme": "^4.0.0-rc.11"
24
24
  },
25
25
  "devDependencies": {
26
- "@spark-web/field": "^4.0.0-rc.1",
27
- "@spark-web/utils": "^2.0.0-rc.1",
26
+ "@spark-web/field": "^4.0.0-rc.11",
27
+ "@spark-web/utils": "^2.0.0-rc.11",
28
28
  "@types/react": "^18.2.0",
29
29
  "react": "^18.2.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@spark-web/field": "^4.0.0-rc.1",
32
+ "@spark-web/field": "^4.0.0-rc.11",
33
33
  "react": ">=17.0.2"
34
34
  },
35
35
  "engines": {