@khanacademy/wonder-blocks-dropdown 10.0.1 → 10.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @khanacademy/wonder-blocks-dropdown
2
2
 
3
+ ## 10.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e63adea: Update `border.width` tokens to use new naming conventions.
8
+ - Updated dependencies [e63adea]
9
+ - Updated dependencies [e63adea]
10
+ - @khanacademy/wonder-blocks-tokens@8.0.0
11
+ - @khanacademy/wonder-blocks-clickable@7.0.2
12
+ - @khanacademy/wonder-blocks-cell@4.1.9
13
+ - @khanacademy/wonder-blocks-layout@3.1.8
14
+ - @khanacademy/wonder-blocks-modal@7.1.10
15
+ - @khanacademy/wonder-blocks-pill@3.1.9
16
+ - @khanacademy/wonder-blocks-search-field@5.1.10
17
+
3
18
  ## 10.0.1
4
19
 
5
20
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -226,7 +226,7 @@ const styles$9 = StyleSheet.create({
226
226
  minWidth: spacing.medium_16,
227
227
  height: spacing.medium_16,
228
228
  borderRadius: 3,
229
- borderWidth: border.width.hairline,
229
+ borderWidth: border.width.thin,
230
230
  borderStyle: "solid",
231
231
  borderColor: theme$6.checkbox.color.default.border
232
232
  },
@@ -1871,9 +1871,9 @@ const _generateStyles = (placeholder, error) => {
1871
1871
  const actionType = error ? "destructive" : "progressive";
1872
1872
  const action = semanticColor.action.secondary[actionType];
1873
1873
  const sharedOutlineStyling = {
1874
- outlineOffset: -border.width.thin,
1874
+ outlineOffset: `-${border.width.medium}`,
1875
1875
  outlineStyle: "solid",
1876
- outlineWidth: border.width.thin
1876
+ outlineWidth: border.width.medium
1877
1877
  };
1878
1878
  const focusStyling = _extends({}, sharedOutlineStyling, {
1879
1879
  outlineColor: semanticColor.focus.outer
@@ -1891,13 +1891,13 @@ const _generateStyles = (placeholder, error) => {
1891
1891
  default: {
1892
1892
  background: currentState.background,
1893
1893
  borderColor: currentState.border,
1894
- borderWidth: border.width.hairline,
1894
+ borderWidth: border.width.thin,
1895
1895
  color: placeholder ? semanticColor.text.secondary : currentState.foreground,
1896
1896
  ":hover:not([aria-disabled=true])": hoverStyling,
1897
1897
  ["@media not (hover: hover)"]: {
1898
1898
  ":hover:not([aria-disabled=true])": {
1899
1899
  borderColor: currentState.border,
1900
- borderWidth: border.width.hairline,
1900
+ borderWidth: border.width.thin,
1901
1901
  paddingLeft: spacing.medium_16,
1902
1902
  paddingRight: spacing.small_12
1903
1903
  }
@@ -3342,7 +3342,7 @@ const styles = StyleSheet.create({
3342
3342
  listbox: {
3343
3343
  backgroundColor: theme.listbox.color.default.background,
3344
3344
  borderRadius: border.radius.radius_040,
3345
- border: `solid ${border.width.hairline}px ${theme.listbox.color.default.border}`,
3345
+ border: `solid ${border.width.thin} ${theme.listbox.color.default.border}`,
3346
3346
  boxShadow: `0px ${spacing.xSmall_8}px ${spacing.xSmall_8}px 0px ${color.offBlack8}`,
3347
3347
  maxHeight: "var(--popper-max-height)",
3348
3348
  overflowY: "auto"
package/dist/index.js CHANGED
@@ -261,7 +261,7 @@ const styles$9 = aphrodite.StyleSheet.create({
261
261
  minWidth: wonderBlocksTokens.spacing.medium_16,
262
262
  height: wonderBlocksTokens.spacing.medium_16,
263
263
  borderRadius: 3,
264
- borderWidth: wonderBlocksTokens.border.width.hairline,
264
+ borderWidth: wonderBlocksTokens.border.width.thin,
265
265
  borderStyle: "solid",
266
266
  borderColor: theme$6.checkbox.color.default.border
267
267
  },
@@ -1906,9 +1906,9 @@ const _generateStyles = (placeholder, error) => {
1906
1906
  const actionType = error ? "destructive" : "progressive";
1907
1907
  const action = wonderBlocksTokens.semanticColor.action.secondary[actionType];
1908
1908
  const sharedOutlineStyling = {
1909
- outlineOffset: -wonderBlocksTokens.border.width.thin,
1909
+ outlineOffset: `-${wonderBlocksTokens.border.width.medium}`,
1910
1910
  outlineStyle: "solid",
1911
- outlineWidth: wonderBlocksTokens.border.width.thin
1911
+ outlineWidth: wonderBlocksTokens.border.width.medium
1912
1912
  };
1913
1913
  const focusStyling = _extends__default["default"]({}, sharedOutlineStyling, {
1914
1914
  outlineColor: wonderBlocksTokens.semanticColor.focus.outer
@@ -1926,13 +1926,13 @@ const _generateStyles = (placeholder, error) => {
1926
1926
  default: {
1927
1927
  background: currentState.background,
1928
1928
  borderColor: currentState.border,
1929
- borderWidth: wonderBlocksTokens.border.width.hairline,
1929
+ borderWidth: wonderBlocksTokens.border.width.thin,
1930
1930
  color: placeholder ? wonderBlocksTokens.semanticColor.text.secondary : currentState.foreground,
1931
1931
  ":hover:not([aria-disabled=true])": hoverStyling,
1932
1932
  ["@media not (hover: hover)"]: {
1933
1933
  ":hover:not([aria-disabled=true])": {
1934
1934
  borderColor: currentState.border,
1935
- borderWidth: wonderBlocksTokens.border.width.hairline,
1935
+ borderWidth: wonderBlocksTokens.border.width.thin,
1936
1936
  paddingLeft: wonderBlocksTokens.spacing.medium_16,
1937
1937
  paddingRight: wonderBlocksTokens.spacing.small_12
1938
1938
  }
@@ -3377,7 +3377,7 @@ const styles = aphrodite.StyleSheet.create({
3377
3377
  listbox: {
3378
3378
  backgroundColor: theme.listbox.color.default.background,
3379
3379
  borderRadius: wonderBlocksTokens.border.radius.radius_040,
3380
- border: `solid ${wonderBlocksTokens.border.width.hairline}px ${theme.listbox.color.default.border}`,
3380
+ border: `solid ${wonderBlocksTokens.border.width.thin} ${theme.listbox.color.default.border}`,
3381
3381
  boxShadow: `0px ${wonderBlocksTokens.spacing.xSmall_8}px ${wonderBlocksTokens.spacing.xSmall_8}px 0px ${wonderBlocksTokens.color.offBlack8}`,
3382
3382
  maxHeight: "var(--popper-max-height)",
3383
3383
  overflowY: "auto"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-dropdown",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "design": "v1",
5
5
  "description": "Dropdown variants for Wonder Blocks.",
6
6
  "main": "dist/index.js",
@@ -14,16 +14,16 @@
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.24.5",
16
16
  "@khanacademy/wonder-blocks-announcer": "1.0.1",
17
- "@khanacademy/wonder-blocks-cell": "4.1.8",
18
- "@khanacademy/wonder-blocks-clickable": "7.0.1",
17
+ "@khanacademy/wonder-blocks-cell": "4.1.9",
18
+ "@khanacademy/wonder-blocks-clickable": "7.0.2",
19
19
  "@khanacademy/wonder-blocks-core": "12.2.1",
20
20
  "@khanacademy/wonder-blocks-icon": "5.1.3",
21
- "@khanacademy/wonder-blocks-layout": "3.1.7",
22
- "@khanacademy/wonder-blocks-modal": "7.1.9",
23
- "@khanacademy/wonder-blocks-pill": "3.1.8",
24
- "@khanacademy/wonder-blocks-search-field": "5.1.9",
21
+ "@khanacademy/wonder-blocks-layout": "3.1.8",
22
+ "@khanacademy/wonder-blocks-modal": "7.1.10",
23
+ "@khanacademy/wonder-blocks-pill": "3.1.9",
24
+ "@khanacademy/wonder-blocks-search-field": "5.1.10",
25
25
  "@khanacademy/wonder-blocks-timing": "7.0.2",
26
- "@khanacademy/wonder-blocks-tokens": "7.0.0",
26
+ "@khanacademy/wonder-blocks-tokens": "8.0.0",
27
27
  "@khanacademy/wonder-blocks-typography": "3.1.3"
28
28
  },
29
29
  "peerDependencies": {