@box/blueprint-web 12.50.1 → 12.51.0

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.
@@ -8010,7 +8010,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8010
8010
  min-width:var(--split-button-dropdown-min-width);
8011
8011
  }
8012
8012
 
8013
- .bp_switch_module_option--ee902[data-modern=false]{
8013
+ .bp_switch_module_option--d5013[data-modern=false]{
8014
8014
  --switch-width:var(--size-10);
8015
8015
  --switch-height:var(--size-5);
8016
8016
  --switch-margin-left:var(--space-10);
@@ -8019,17 +8019,22 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8019
8019
  --thumb-width:var(--size-5);
8020
8020
  --thumb-height:var(--size-5);
8021
8021
  --thumb-bg:var(--surface-switch-surface);
8022
- --thumb-border:var(--border-1) solid var(--border-switch-border);
8022
+ --thumb-border-off:var(--border-1) solid var(--border-switch-border);
8023
+ --thumb-border-off-hover:var(--border-1) solid var(--border-switch-border);
8024
+ --thumb-border-on:var(--border-1) solid var(--border-switch-border);
8025
+ --thumb-border-on-hover:var(--border-1) solid var(--border-switch-border);
8023
8026
  --thumb-radius:var(--size-10);
8024
8027
  --thumb-shadow:var(--dropshadow-3);
8025
8028
  --switch-bg-off:var(--surface-switch-surface-off);
8029
+ --switch-bg-off-hover:var(--surface-switch-surface-off);
8026
8030
  --switch-bg-on:var(--surface-switch-surface-on);
8031
+ --switch-bg-on-hover:var(--surface-switch-surface-on);
8027
8032
  --switch-radius:var(--size-10);
8028
8033
  --switch-outline:var(--outline-focus-on-light);
8029
8034
  --switch-disabled-opacity:.5;
8030
8035
  }
8031
8036
 
8032
- .bp_switch_module_option--ee902[data-modern=true]{
8037
+ .bp_switch_module_option--d5013[data-modern=true]{
8033
8038
  --switch-width:var(--bp-size-110);
8034
8039
  --switch-height:var(--bp-size-060);
8035
8040
  --switch-margin-left:var(--bp-space-100);
@@ -8038,17 +8043,22 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8038
8043
  --thumb-width:var(--bp-size-060);
8039
8044
  --thumb-height:var(--bp-size-060);
8040
8045
  --thumb-bg:var(--bp-surface-switch-surface);
8041
- --thumb-border:var(--bp-border-01) solid var(--bp-border-switch-border);
8046
+ --thumb-border-off:var(--bp-border-02) solid var(--bp-surface-switch-surface-off);
8047
+ --thumb-border-off-hover:var(--bp-border-02) solid var(--bp-surface-switch-surface-off-hover);
8048
+ --thumb-border-on:var(--bp-border-02) solid var(--bp-surface-switch-surface-on);
8049
+ --thumb-border-on-hover:var(--bp-border-02) solid var(--bp-surface-switch-surface-on-hover);
8042
8050
  --thumb-radius:var(--bp-size-100);
8043
8051
  --thumb-shadow:var(--dropshadow-3);
8044
8052
  --switch-bg-off:var(--bp-surface-switch-surface-off);
8053
+ --switch-bg-off-hover:var(--bp-surface-switch-surface-off-hover);
8045
8054
  --switch-bg-on:var(--bp-surface-switch-surface-on);
8055
+ --switch-bg-on-hover:var(--bp-surface-switch-surface-on-hover);
8046
8056
  --switch-radius:var(--bp-size-100);
8047
8057
  --switch-outline:var(--bp-outline-focus-on-light);
8048
8058
  --switch-disabled-opacity:.6;
8049
8059
  }
8050
8060
 
8051
- .bp_switch_module_option--ee902{
8061
+ .bp_switch_module_option--d5013{
8052
8062
  display:flex;
8053
8063
  flex-direction:column;
8054
8064
  font-family:var(--body-default-font-family);
@@ -8060,28 +8070,31 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8060
8070
  text-decoration:var(--body-default-text-decoration);
8061
8071
  text-transform:var(--body-default-text-case);
8062
8072
  }
8063
- .bp_switch_module_option--ee902 .bp_switch_module_label--ee902{
8073
+ .bp_switch_module_option--d5013 .bp_switch_module_label--d5013{
8064
8074
  cursor:pointer;
8065
8075
  display:inline-flex;
8066
8076
  flex-direction:row;
8067
8077
  width:-moz-fit-content;
8068
8078
  width:fit-content;
8069
8079
  }
8070
- .bp_switch_module_option--ee902 .bp_switch_module_label--ee902.bp_switch_module_rightAlign--ee902{
8080
+ .bp_switch_module_option--d5013 .bp_switch_module_label--d5013.bp_switch_module_rightAlign--d5013{
8071
8081
  flex-direction:row-reverse;
8072
8082
  justify-content:space-between;
8073
8083
  width:unset;
8074
8084
  }
8075
- .bp_switch_module_option--ee902 .bp_switch_module_description--ee902{
8085
+ .bp_switch_module_option--d5013 .bp_switch_module_label--d5013:has(.bp_switch_module_switch--d5013:disabled){
8086
+ cursor:default;
8087
+ }
8088
+ .bp_switch_module_option--d5013 .bp_switch_module_description--d5013{
8076
8089
  margin-left:var(--description-margin);
8077
8090
  }
8078
- .bp_switch_module_option--ee902 .bp_switch_module_description--ee902.bp_switch_module_rightAlign--ee902{
8091
+ .bp_switch_module_option--d5013 .bp_switch_module_description--d5013.bp_switch_module_rightAlign--d5013{
8079
8092
  margin-left:unset;
8080
8093
  margin-right:var(--description-margin);
8081
8094
  }
8082
- .bp_switch_module_option--ee902 .bp_switch_module_thumb--ee902{
8095
+ .bp_switch_module_option--d5013 .bp_switch_module_thumb--d5013{
8083
8096
  background-color:var(--thumb-bg);
8084
- border:var(--thumb-border);
8097
+ border:var(--thumb-border-off);
8085
8098
  border-radius:var(--thumb-radius);
8086
8099
  box-shadow:var(--thumb-shadow);
8087
8100
  box-sizing:border-box;
@@ -8091,7 +8104,7 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8091
8104
  width:var(--thumb-width);
8092
8105
  will-change:transform;
8093
8106
  }
8094
- .bp_switch_module_option--ee902 .bp_switch_module_switch--ee902{
8107
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013{
8095
8108
  all:unset;
8096
8109
  align-items:center;
8097
8110
  background-color:var(--switch-bg-off);
@@ -8105,24 +8118,45 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
8105
8118
  width:var(--switch-width);
8106
8119
  will-change:transition;
8107
8120
  }
8108
- .bp_switch_module_option--ee902 .bp_switch_module_switch--ee902.bp_switch_module_rightAlign--ee902{
8121
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013:disabled{
8122
+ opacity:var(--switch-disabled-opacity);
8123
+ }
8124
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013.bp_switch_module_rightAlign--d5013{
8109
8125
  margin-left:var(--switch-margin-left);
8110
8126
  margin-right:unset;
8111
8127
  }
8112
- .bp_switch_module_option--ee902 .bp_switch_module_switch--ee902:focus-visible{
8128
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013:focus-visible{
8129
+ background-color:var(--switch-bg-off-hover);
8113
8130
  box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--switch-outline);
8114
8131
  }
8115
- .bp_switch_module_option--ee902 .bp_switch_module_switch--ee902[aria-checked=true]{
8132
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013:focus-visible .bp_switch_module_thumb--d5013{
8133
+ border:var(--thumb-border-off-hover);
8134
+ }
8135
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013:hover:not(:disabled){
8136
+ background-color:var(--switch-bg-off-hover);
8137
+ }
8138
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013:hover:not(:disabled) .bp_switch_module_thumb--d5013{
8139
+ border:var(--thumb-border-off-hover);
8140
+ }
8141
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true]{
8116
8142
  background-color:var(--switch-bg-on);
8117
8143
  }
8118
- .bp_switch_module_option--ee902 .bp_switch_module_switch--ee902[aria-checked=true] .bp_switch_module_thumb--ee902{
8119
- transform:translateX(calc(var(--switch-width)/2));
8144
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true] .bp_switch_module_thumb--d5013{
8145
+ border:var(--thumb-border-on);
8146
+ transform:translateX(calc(var(--switch-width) - var(--thumb-width)));
8120
8147
  }
8121
- .bp_switch_module_option--ee902.bp_switch_module_disabled--ee902 .bp_switch_module_label--ee902{
8122
- cursor:default;
8148
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true]:focus-visible{
8149
+ background-color:var(--switch-bg-on-hover);
8150
+ box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--switch-outline);
8123
8151
  }
8124
- .bp_switch_module_option--ee902.bp_switch_module_disabled--ee902 .bp_switch_module_switch--ee902{
8125
- opacity:var(--switch-disabled-opacity);
8152
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true]:focus-visible .bp_switch_module_thumb--d5013{
8153
+ border:var(--thumb-border-on-hover);
8154
+ }
8155
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true]:hover:not(:disabled){
8156
+ background-color:var(--switch-bg-on-hover);
8157
+ }
8158
+ .bp_switch_module_option--d5013 .bp_switch_module_switch--d5013[aria-checked=true]:hover:not(:disabled) .bp_switch_module_thumb--d5013{
8159
+ border:var(--thumb-border-on-hover);
8126
8160
  }
8127
8161
 
8128
8162
  .bp_text_button_module_textButton--809ae[data-modern=false]{
@@ -1,4 +1,4 @@
1
1
  import '../index.css';
2
- var styles = {"option":"bp_switch_module_option--ee902","label":"bp_switch_module_label--ee902","rightAlign":"bp_switch_module_rightAlign--ee902","description":"bp_switch_module_description--ee902","thumb":"bp_switch_module_thumb--ee902","switch":"bp_switch_module_switch--ee902","disabled":"bp_switch_module_disabled--ee902"};
2
+ var styles = {"option":"bp_switch_module_option--d5013","label":"bp_switch_module_label--d5013","rightAlign":"bp_switch_module_rightAlign--d5013","switch":"bp_switch_module_switch--d5013","description":"bp_switch_module_description--d5013","thumb":"bp_switch_module_thumb--d5013"};
3
3
 
4
4
  export { styles as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "12.50.1",
3
+ "version": "12.51.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {