@ship-ui/core 0.18.10 → 0.18.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.18.10",
4
+ "version": "0.18.12",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=20",
7
7
  "@angular/core": ">=20",
@@ -5,6 +5,7 @@ $shipButtonShadow: false !default;
5
5
  @if $shipButton == true {
6
6
  [shButton] {
7
7
  --btn-h: #{p2r(40)};
8
+ --btn-mw: #{p2r(40)};
8
9
  --btn-f: var(--paragraph-20);
9
10
  --btn-a-opacity: 0.05;
10
11
 
@@ -21,7 +22,7 @@ $shipButtonShadow: false !default;
21
22
  position: relative;
22
23
  padding: p2r(0 12);
23
24
  transition: color 80ms linear;
24
- min-width: auto;
25
+ min-width: var(--btn-mw);
25
26
  cursor: pointer;
26
27
  outline: none;
27
28
  line-height: inherit;
@@ -78,6 +79,7 @@ $shipButtonShadow: false !default;
78
79
 
79
80
  &.small {
80
81
  --btn-h: #{p2r(32)};
82
+ --btn-mw: #{p2r(32)};
81
83
  --btn-f: var(--paragraph-30);
82
84
 
83
85
  padding: p2r(0 8);
@@ -98,6 +100,7 @@ $shipButtonShadow: false !default;
98
100
 
99
101
  &.xsmall {
100
102
  --btn-h: #{p2r(24)};
103
+ --btn-mw: #{p2r(24)};
101
104
  --btn-f: var(--paragraph-40);
102
105
 
103
106
  padding: p2r(0 8);
@@ -93,6 +93,44 @@ $shipPopover: true !default;
93
93
  --right-center, --left-center, --right-span-top, --left-span-top;
94
94
  }
95
95
  }
96
+
97
+ @include breakpoint(-milli) {
98
+ &.as-sheet {
99
+ .popover {
100
+ z-index: 9999;
101
+
102
+ .overlay {
103
+ background-color: var(--overlay, rgba(0, 0, 0, 0.5));
104
+ }
105
+ }
106
+
107
+ .popover-content {
108
+ @supports (anchor-name: --anchor) {
109
+ position-area: none;
110
+ position-try-fallbacks: none;
111
+ inset: auto;
112
+ }
113
+
114
+ position: fixed;
115
+ top: auto;
116
+ bottom: 0;
117
+ left: p2r(8);
118
+ right: p2r(8);
119
+ width: calc(100% - #{p2r(16)});
120
+ max-width: unset;
121
+ height: auto;
122
+ max-height: calc(100vh - #{p2r(80)});
123
+ border-bottom-left-radius: 0;
124
+ border-bottom-right-radius: 0;
125
+ margin: 0;
126
+ transform: translateY(0);
127
+ display: flex;
128
+ align-items: center;
129
+ padding: p2r(16);
130
+ justify-content: center;
131
+ }
132
+ }
133
+ }
96
134
  }
97
135
 
98
136
  .full-popover sh-popover .popover-content,
@@ -621,6 +621,7 @@ declare class ShipPopover {
621
621
  #private;
622
622
  SUPPORTS_ANCHOR: boolean;
623
623
  asMultiLayer: _angular_core.InputSignal<boolean>;
624
+ asSheetOnMobile: _angular_core.InputSignal<boolean>;
624
625
  disableOpenByClick: _angular_core.InputSignal<boolean>;
625
626
  isOpen: _angular_core.ModelSignal<boolean>;
626
627
  options: _angular_core.InputSignal<Partial<ShipPopoverOptions> | undefined>;
@@ -642,7 +643,7 @@ declare class ShipPopover {
642
643
  eventClose($event: MouseEvent): void;
643
644
  ngOnDestroy(): void;
644
645
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipPopover, never>;
645
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipPopover, "sh-popover", never, { "asMultiLayer": { "alias": "asMultiLayer"; "required": false; "isSignal": true; }; "disableOpenByClick": { "alias": "disableOpenByClick"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closed": "closed"; }, never, ["[trigger]", "button", "[shButton]", "*"], true, never>;
646
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipPopover, "sh-popover", never, { "asMultiLayer": { "alias": "asMultiLayer"; "required": false; "isSignal": true; }; "asSheetOnMobile": { "alias": "asSheetOnMobile"; "required": false; "isSignal": true; }; "disableOpenByClick": { "alias": "disableOpenByClick"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closed": "closed"; }, never, ["[trigger]", "button", "[shButton]", "*"], true, never>;
646
647
  }
647
648
 
648
649
  type ShipProgressBarMode = 'determinate' | 'indeterminate';