Merge branch 'main' into chore-update-next-from-main

This commit is contained in:
Brandy Carney
2024-05-02 16:43:54 -04:00
876 changed files with 4034 additions and 2766 deletions

View File

@@ -5,47 +5,47 @@
// --------------------------------------------------
/// @prop - Width of the toggle
$toggle-ios-width: 51px !default;
$toggle-ios-width: 51px;
/// @prop - Height of the toggle
$toggle-ios-height: 31px !default;
$toggle-ios-height: 31px;
/// @prop - Border width of the toggle
$toggle-ios-border-width: 2px !default;
$toggle-ios-border-width: 2px;
/// @prop - Border radius of the toggle
$toggle-ios-border-radius: $toggle-ios-height * 0.5 !default;
$toggle-ios-border-radius: $toggle-ios-height * 0.5;
/// @prop - Background color of the unchecked toggle
$toggle-ios-background-color-off: rgba($text-color-rgb, 0.088) !default;
$toggle-ios-background-color-off: rgba($text-color-rgb, 0.088);
/// @prop - Width of the toggle handle
$toggle-ios-handle-width: calc(#{$toggle-ios-height} - (#{$toggle-ios-border-width} * 2)) !default;
$toggle-ios-handle-width: calc(#{$toggle-ios-height} - (#{$toggle-ios-border-width} * 2));
/// @prop - Height of the toggle handle
$toggle-ios-handle-height: $toggle-ios-handle-width !default;
$toggle-ios-handle-height: $toggle-ios-handle-width;
/// @prop - Max height of the toggle handle
$toggle-ios-handle-max-height: calc(100% - (var(--handle-spacing) * 2)) !default;
$toggle-ios-handle-max-height: calc(100% - (var(--handle-spacing) * 2));
/// @prop - Border radius of the toggle handle
$toggle-ios-handle-border-radius: $toggle-ios-width * 0.5 !default;
$toggle-ios-handle-border-radius: $toggle-ios-width * 0.5;
/// @prop - Box shadow of the toggle handle
$toggle-ios-handle-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06) !default;
$toggle-ios-handle-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06);
/// @prop - Background color of the toggle handle
$toggle-ios-handle-background-color: #ffffff !default;
$toggle-ios-handle-background-color: #ffffff;
/// @prop - Transition duration of the toggle icon
$toggle-ios-transition-duration: 300ms !default;
$toggle-ios-transition-duration: 300ms;
/// @prop - Transition of the toggle icon
$toggle-ios-transition: transform $toggle-ios-transition-duration, width 120ms ease-in-out 80ms,
left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms !default;
left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms;
/// @prop - Opacity of the disabled toggle
$toggle-ios-disabled-opacity: 0.3 !default;
$toggle-ios-disabled-opacity: 0.3;
/// @prop - The text color of the on/off labels when the toggle is checked
$toggle-ios-on-off-label-checked-color: #fff !default;
$toggle-ios-on-off-label-checked-color: #fff;

View File

@@ -5,48 +5,48 @@
// --------------------------------------------------
/// @prop - Width of the toggle track
$toggle-md-track-width: 36px !default;
$toggle-md-track-width: 36px;
/// @prop - Height of the toggle track
$toggle-md-track-height: 14px !default;
$toggle-md-track-height: 14px;
/// @prop - Background color of the toggle track
$toggle-md-track-background-color-off: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39) !default;
$toggle-md-track-background-color-off: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);
/// @prop - Background color alpha of the checked toggle track
$toggle-md-track-background-color-alpha-on: 0.5 !default;
$toggle-md-track-background-color-alpha-on: 0.5;
/// @prop - Width of the toggle handle
$toggle-md-handle-width: 20px !default;
$toggle-md-handle-width: 20px;
/// @prop - Height of the toggle handle
$toggle-md-handle-height: 20px !default;
$toggle-md-handle-height: 20px;
/// @prop - Max height of the toggle handle
$toggle-md-handle-max-height: calc(100% + 6px) !default;
$toggle-md-handle-max-height: calc(100% + 6px);
/// @prop - Border radius of the toggle handle
$toggle-md-handle-border-radius: 50% !default;
$toggle-md-handle-border-radius: 50%;
/// @prop - Box shadow of the toggle handle
$toggle-md-handle-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12) !default;
0 1px 5px 0 rgba(0, 0, 0, 0.12);
/// @prop - Background color of the toggle handle
$toggle-md-handle-background-color-off: #ffffff !default;
$toggle-md-handle-background-color-off: #ffffff;
/// @prop - Transition duration of the toggle icon
$toggle-md-transition-duration: 160ms !default;
$toggle-md-transition-duration: 160ms;
/// @prop - Transition of the toggle icon
$toggle-md-transition: transform $toggle-md-transition-duration cubic-bezier(0.4, 0, 0.2, 1),
background-color $toggle-md-transition-duration cubic-bezier(0.4, 0, 0.2, 1) !default;
background-color $toggle-md-transition-duration cubic-bezier(0.4, 0, 0.2, 1);
/// @prop - Opacity of the disabled toggle
$toggle-md-disabled-opacity: $form-control-md-disabled-opacity !default;
$toggle-md-disabled-opacity: $form-control-md-disabled-opacity;
/// @prop - The text color of the on/off labels
$toggle-md-on-off-label-color: #000 !default;
$toggle-md-on-off-label-color: #000;
/// @prop - The text color of the on/off labels when the toggle is checked
$toggle-md-on-off-label-checked-color: #fff !default;
$toggle-md-on-off-label-checked-color: #fff;

View File

@@ -109,8 +109,9 @@ export class Toggle implements ComponentInterface {
@Prop() alignment: 'start' | 'center' = 'center';
/**
* Emitted when the user switches the toggle on or off. Does not emit
* when programmatically changing the value of the `checked` property.
* Emitted when the user switches the toggle on or off.
*
* This event will not emit when programmatically setting the `checked` property.
*/
@Event() ionChange!: EventEmitter<ToggleChangeEventDetail>;

View File

@@ -1,5 +1,5 @@
/// @prop - Top margin of toggle's label when in an item
$toggle-item-label-margin-top: 10px !default;
$toggle-item-label-margin-top: 10px;
/// @prop - Bottom margin of toggle's label when in an item
$toggle-item-label-margin-bottom: 10px !default;
$toggle-item-label-margin-bottom: 10px;