@rdlabo/ionic-theme-ios27 0.1.0-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.
- package/LICENSE +21 -0
- package/README.md +241 -0
- package/dist/css/components/ion-action-sheet.css +1 -0
- package/dist/css/components/ion-alert.css +1 -0
- package/dist/css/components/ion-button.css +1 -0
- package/dist/css/components/ion-card.css +1 -0
- package/dist/css/components/ion-content.css +1 -0
- package/dist/css/components/ion-datetime.css +1 -0
- package/dist/css/components/ion-fab.css +1 -0
- package/dist/css/components/ion-inputs.css +1 -0
- package/dist/css/components/ion-list.css +1 -0
- package/dist/css/components/ion-loading.css +1 -0
- package/dist/css/components/ion-menu.css +1 -0
- package/dist/css/components/ion-modal.css +1 -0
- package/dist/css/components/ion-picker.css +1 -0
- package/dist/css/components/ion-popover.css +1 -0
- package/dist/css/components/ion-range.css +1 -0
- package/dist/css/components/ion-searchbar.css +1 -0
- package/dist/css/components/ion-segment.css +1 -0
- package/dist/css/components/ion-tabs.css +1 -0
- package/dist/css/components/ion-toast.css +1 -0
- package/dist/css/components/ion-toggle.css +1 -0
- package/dist/css/components/ion-toolbar.css +1 -0
- package/dist/css/default-variables.css +1 -0
- package/dist/css/ionic-theme-ios26-dark-always.css +1 -0
- package/dist/css/ionic-theme-ios26-dark-class.css +1 -0
- package/dist/css/ionic-theme-ios26-dark-system.css +1 -0
- package/dist/css/ionic-theme-ios26.css +1 -0
- package/dist/css/md-ion-list-inset.css +1 -0
- package/dist/css/md-remove-ios-class-effect.css +1 -0
- package/dist/css/utils/api.css +1 -0
- package/dist/css/utils/dark/ion-button.css +1 -0
- package/dist/css/utils/dark/ion-fab.css +1 -0
- package/dist/css/utils/dark/ion-segment.css +1 -0
- package/dist/css/utils/dark/ion-tabs.css +1 -0
- package/dist/css/utils/searchable.css +1 -0
- package/dist/css/utils/structured-list.css +1 -0
- package/dist/css/utils/theme-dark.css +1 -0
- package/dist/css/utils/translucent.css +1 -0
- package/dist/docs.json +234 -0
- package/dist/focus-controller/index.d.ts +6 -0
- package/dist/focus-controller/index.d.ts.map +1 -0
- package/dist/focus-controller/index.js +62 -0
- package/dist/focus-controller /index.d.ts +6 -0
- package/dist/focus-controller /index.d.ts.map +1 -0
- package/dist/focus-controller /index.js +62 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/popover/animations/ios.enter.d.ts +4 -0
- package/dist/popover/animations/ios.enter.d.ts.map +1 -0
- package/dist/popover/animations/ios.enter.js +97 -0
- package/dist/popover/animations/ios.leave.d.ts +3 -0
- package/dist/popover/animations/ios.leave.d.ts.map +1 -0
- package/dist/popover/animations/ios.leave.js +60 -0
- package/dist/popover/popover-interface.d.ts +38 -0
- package/dist/popover/popover-interface.d.ts.map +1 -0
- package/dist/popover/popover-interface.js +1 -0
- package/dist/popover/utils.d.ts +37 -0
- package/dist/popover/utils.d.ts.map +1 -0
- package/dist/popover/utils.js +377 -0
- package/dist/sheets-of-glass/animations.d.ts +8 -0
- package/dist/sheets-of-glass/animations.d.ts.map +1 -0
- package/dist/sheets-of-glass/animations.js +97 -0
- package/dist/sheets-of-glass/index.d.ts +3 -0
- package/dist/sheets-of-glass/index.d.ts.map +1 -0
- package/dist/sheets-of-glass/index.js +174 -0
- package/dist/sheets-of-glass/interfaces.d.ts +16 -0
- package/dist/sheets-of-glass/interfaces.d.ts.map +1 -0
- package/dist/sheets-of-glass/interfaces.js +1 -0
- package/dist/tab-bar-searchable/animations/enter.d.ts +8 -0
- package/dist/tab-bar-searchable/animations/enter.d.ts.map +1 -0
- package/dist/tab-bar-searchable/animations/enter.js +73 -0
- package/dist/tab-bar-searchable/animations/leave.d.ts +8 -0
- package/dist/tab-bar-searchable/animations/leave.d.ts.map +1 -0
- package/dist/tab-bar-searchable/animations/leave.js +66 -0
- package/dist/tab-bar-searchable/index.d.ts +4 -0
- package/dist/tab-bar-searchable/index.d.ts.map +1 -0
- package/dist/tab-bar-searchable/index.js +75 -0
- package/dist/tab-bar-searchable/interfaces.d.ts +41 -0
- package/dist/tab-bar-searchable/interfaces.d.ts.map +1 -0
- package/dist/tab-bar-searchable/interfaces.js +5 -0
- package/dist/tab-bar-searchable/utils.d.ts +12 -0
- package/dist/tab-bar-searchable/utils.d.ts.map +1 -0
- package/dist/tab-bar-searchable/utils.js +60 -0
- package/dist/transition/index.d.ts +19 -0
- package/dist/transition/index.d.ts.map +1 -0
- package/dist/transition/index.js +219 -0
- package/dist/transition/ios.transition.d.ts +5 -0
- package/dist/transition/ios.transition.d.ts.map +1 -0
- package/dist/transition/ios.transition.js +609 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +69 -0
- package/docs/e2e-testing.md +51 -0
- package/docs/eslint.md +73 -0
- package/docs/experimental-animation.md +85 -0
- package/docs/features.md +88 -0
- package/docs/feedback.md +65 -0
- package/docs/ios-18.md +16 -0
- package/docs/migration.md +94 -0
- package/docs/special-markup.md +145 -0
- package/docs/using-ion-item-group.md +47 -0
- package/package.json +63 -0
- package/src/focus-controller/index.ts +123 -0
- package/src/index.ts +33 -0
- package/src/popover/animations/ios.enter.ts +144 -0
- package/src/popover/animations/ios.leave.ts +76 -0
- package/src/popover/popover-interface.ts +44 -0
- package/src/popover/utils.ts +696 -0
- package/src/sheets-of-glass/animations.ts +120 -0
- package/src/sheets-of-glass/index.ts +214 -0
- package/src/sheets-of-glass/interfaces.ts +17 -0
- package/src/styles/components/ion-action-sheet.scss +85 -0
- package/src/styles/components/ion-alert.scss +66 -0
- package/src/styles/components/ion-button.scss +443 -0
- package/src/styles/components/ion-card.scss +7 -0
- package/src/styles/components/ion-content.scss +22 -0
- package/src/styles/components/ion-datetime.scss +9 -0
- package/src/styles/components/ion-fab.scss +104 -0
- package/src/styles/components/ion-inputs.scss +82 -0
- package/src/styles/components/ion-list.scss +44 -0
- package/src/styles/components/ion-loading.scss +11 -0
- package/src/styles/components/ion-menu.scss +110 -0
- package/src/styles/components/ion-modal.scss +42 -0
- package/src/styles/components/ion-picker.scss +4 -0
- package/src/styles/components/ion-popover.scss +33 -0
- package/src/styles/components/ion-range.scss +90 -0
- package/src/styles/components/ion-searchbar.scss +68 -0
- package/src/styles/components/ion-segment.scss +150 -0
- package/src/styles/components/ion-tabs.scss +118 -0
- package/src/styles/components/ion-toast.scss +35 -0
- package/src/styles/components/ion-toggle.scss +65 -0
- package/src/styles/components/ion-toolbar.scss +76 -0
- package/src/styles/default-variables.scss +38 -0
- package/src/styles/ionic-theme-ios26-dark-always.scss +6 -0
- package/src/styles/ionic-theme-ios26-dark-class.scss +6 -0
- package/src/styles/ionic-theme-ios26-dark-system.scss +8 -0
- package/src/styles/ionic-theme-ios26.scss +23 -0
- package/src/styles/md-ion-list-inset.scss +22 -0
- package/src/styles/md-remove-ios-class-effect.scss +14 -0
- package/src/styles/utils/api.scss +146 -0
- package/src/styles/utils/dark/ion-button.scss +58 -0
- package/src/styles/utils/dark/ion-fab.scss +18 -0
- package/src/styles/utils/dark/ion-segment.scss +12 -0
- package/src/styles/utils/dark/ion-tabs.scss +21 -0
- package/src/styles/utils/searchable.scss +0 -0
- package/src/styles/utils/structured-list.scss +170 -0
- package/src/styles/utils/theme-dark.scss +25 -0
- package/src/styles/utils/translucent.scss +95 -0
- package/src/tab-bar-searchable/animations/enter.ts +92 -0
- package/src/tab-bar-searchable/animations/leave.ts +89 -0
- package/src/tab-bar-searchable/index.ts +141 -0
- package/src/tab-bar-searchable/interfaces.ts +28 -0
- package/src/tab-bar-searchable/utils.ts +75 -0
- package/src/transition/index.ts +369 -0
- package/src/transition/ios.transition.ts +966 -0
- package/src/utils.ts +91 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-split-pane.ios:not(.ios26-disabled) {
|
|
4
|
+
--side-max-width: var(--ios26-menu-width);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
ion-split-pane.ios:not(.ios26-disabled).split-pane-visible:has(ion-menu.menu-pane-visible) {
|
|
8
|
+
.split-pane-main {
|
|
9
|
+
ion-tab-bar.ios:not(.ios26-disabled) {
|
|
10
|
+
width: calc(
|
|
11
|
+
100% - calc(18px + var(--ion-safe-area-left, 0px)) - calc(18px + var(--ion-safe-area-left, 0px)) - 60px -
|
|
12
|
+
12px - var(--ios26-menu-width)
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
&:has(:nth-child(5)) {
|
|
16
|
+
width: calc(
|
|
17
|
+
100% - calc(18px + var(--ion-safe-area-left, 0px)) - calc(18px + var(--ion-safe-area-left, 0px)) - var(--ios26-menu-width)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&:has(ion-menu.menu-side-start) {
|
|
23
|
+
.split-pane-main {
|
|
24
|
+
ion-header ion-toolbar {
|
|
25
|
+
/*
|
|
26
|
+
* 4px: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/toolbar/toolbar.ios.vars.scss#L28-L32
|
|
27
|
+
*/
|
|
28
|
+
--padding-start: calc(var(--ios26-menu-width) + 4px);
|
|
29
|
+
ion-title.title-default {
|
|
30
|
+
/*
|
|
31
|
+
* 90px: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/title/title.ios.scss#L8
|
|
32
|
+
*/
|
|
33
|
+
padding-left: calc(90px + var(--ios26-menu-width));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
ion-content {
|
|
37
|
+
--padding-start: var(--ios26-menu-width);
|
|
38
|
+
ion-header ion-toolbar {
|
|
39
|
+
--padding-start: 4px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
ion-footer ion-toolbar {
|
|
43
|
+
--padding-start: var(--ios26-menu-width);
|
|
44
|
+
}
|
|
45
|
+
ion-tab-bar.ios:not(.ios26-disabled) {
|
|
46
|
+
&[slot='bottom'] {
|
|
47
|
+
left: calc(16px + var(--ion-safe-area-left, 0px) + var(--ios26-menu-width));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:has(ion-menu.ios:not(.ios26-disabled).menu-side-end) {
|
|
54
|
+
.split-pane-main {
|
|
55
|
+
ion-header ion-toolbar {
|
|
56
|
+
/*
|
|
57
|
+
* 4px: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/toolbar/toolbar.ios.vars.scss#L28-L32
|
|
58
|
+
*/
|
|
59
|
+
--padding-end: calc(var(--ios26-menu-width) + 4px);
|
|
60
|
+
ion-title.title-default {
|
|
61
|
+
/*
|
|
62
|
+
* 90px: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/title/title.ios.scss#L8
|
|
63
|
+
*/
|
|
64
|
+
padding-right: calc(90px + var(--ios26-menu-width));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
ion-content {
|
|
68
|
+
--padding-end: var(--ios26-menu-width);
|
|
69
|
+
ion-header ion-toolbar {
|
|
70
|
+
--padding-start: 4px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
ion-footer ion-toolbar {
|
|
74
|
+
--padding-end: var(--ios26-menu-width);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
ion-menu.ios:not(.ios26-disabled) {
|
|
81
|
+
--border: none;
|
|
82
|
+
--background: transparent;
|
|
83
|
+
--max-width: var(--ios26-menu-width);
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 0;
|
|
86
|
+
z-index: 999;
|
|
87
|
+
|
|
88
|
+
&.menu-side-start {
|
|
89
|
+
left: 0;
|
|
90
|
+
}
|
|
91
|
+
&.menu-side-end {
|
|
92
|
+
left: calc(100vw - var(--ios26-menu-width));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&::part(backdrop) {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ion-content {
|
|
100
|
+
--background: transparent;
|
|
101
|
+
--ios26-content-box-shadow-rgb: transparent;
|
|
102
|
+
|
|
103
|
+
&::part(scroll) {
|
|
104
|
+
@include api.glass-background;
|
|
105
|
+
margin: calc(var(--ios26-floating-safe-area-top) + 6px) calc(16px + var(--ion-safe-area-right)) var(--ios26-floating-safe-area-bottom)
|
|
106
|
+
calc(12px + var(--ion-safe-area-left));
|
|
107
|
+
border-radius: 24px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-modal.ios:not(.ios26-disabled) {
|
|
4
|
+
--backdrop-opacity: 0.2;
|
|
5
|
+
|
|
6
|
+
&::part(handle) {
|
|
7
|
+
width: 80px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
ion-toolbar {
|
|
11
|
+
padding-right: var(--ion-safe-area-right);
|
|
12
|
+
padding-left: var(--ion-safe-area-left);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.modal-sheet {
|
|
16
|
+
ion-toolbar {
|
|
17
|
+
padding-right: calc(var(--ion-safe-area-right) + 4px);
|
|
18
|
+
padding-left: calc(var(--ion-safe-area-left) + 4px);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.modal-card {
|
|
23
|
+
/**
|
|
24
|
+
* IonicでCardModalのborder-radiusはハードコーディングされています。
|
|
25
|
+
* また、iOS26のドキュメントで見つからないため、サポートは行いません。
|
|
26
|
+
* https://github.com/ionic-team/ionic-framework/blob/3b80473f2fd5ad4da5a9f5d66f783a69909c8965/core/src/components/modal/animations/ios.enter.ts#L82-L83
|
|
27
|
+
*/
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:has(.ion-delegate-host):has(ion-datetime) {
|
|
31
|
+
--border-radius: 24px;
|
|
32
|
+
--ion-background-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.modal-sheet {
|
|
36
|
+
--border-radius: 30px;
|
|
37
|
+
--background: rgba(var(--ios26-glass-background-rgb), 1);
|
|
38
|
+
&::part(content) {
|
|
39
|
+
@include api.glass-background($opacity: 1, $include-background: false);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-popover.ios:not(.ios26-disabled) {
|
|
4
|
+
--backdrop-opacity: 0.2;
|
|
5
|
+
--background: rgba(var(--ios26-glass-background-rgb), 0.72);
|
|
6
|
+
--box-shadow:
|
|
7
|
+
inset 0 0 8px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.2), 0 0 10px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.82);
|
|
8
|
+
&::part(arrow) {
|
|
9
|
+
display: none;
|
|
10
|
+
::after {
|
|
11
|
+
//@include api.glass-background;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
&::part(content) {
|
|
15
|
+
@include api.glass-background($include-background: false, $include-box-shadow: false);
|
|
16
|
+
border-radius: 24px;
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
ion-select-popover {
|
|
20
|
+
ion-list {
|
|
21
|
+
background: transparent;
|
|
22
|
+
ion-item {
|
|
23
|
+
--background: transparent;
|
|
24
|
+
&:last-of-type {
|
|
25
|
+
--border-width: 0px;
|
|
26
|
+
--show-full-highlight: 0;
|
|
27
|
+
--inner-border-width: 0px;
|
|
28
|
+
--show-inset-highlight: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
@mixin scaled-transform($translate-x) {
|
|
4
|
+
transform: scale(1.56, 1.47) translateX(calc(#{$translate-x} * -0.1)) translateZ(0);
|
|
5
|
+
-webkit-transform: scale(1.56, 1.47) translateX(calc(#{$translate-x} * -0.1)) translateZ(0);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
ion-range.ios:not(.ios26-disabled) {
|
|
9
|
+
--knob-size: 20px;
|
|
10
|
+
--knob-width: 38px;
|
|
11
|
+
--knob-border-radius: 24px;
|
|
12
|
+
|
|
13
|
+
&.range-label-placement-start::part(label) {
|
|
14
|
+
margin-inline: 0 24px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.range-label-placement-end::part(label) {
|
|
18
|
+
margin-inline: 24px 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[slot='start'] {
|
|
22
|
+
margin-inline: 0 24px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[slot='end'] {
|
|
26
|
+
margin-inline: 24px 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::part(knob) {
|
|
30
|
+
width: var(--knob-width);
|
|
31
|
+
margin-inline-start: -8px;
|
|
32
|
+
transition:
|
|
33
|
+
transform 300ms ease,
|
|
34
|
+
margin 300ms ease,
|
|
35
|
+
box-shadow 200ms ease;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:not(.range-dual-knobs).range-pressed {
|
|
39
|
+
--knob-background: rgba(var(--ios26-glass-background-rgb), 0.1);
|
|
40
|
+
--knob-box-shadow: 0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 4px rgba(0, 0, 0, 0.05), inset 0.4px 0.4px 1px 0 var(--bar-background-active);
|
|
41
|
+
|
|
42
|
+
&::part(knob) {
|
|
43
|
+
@include api.glass-background(0.1, 0, 120%, $include-background: false, $include-box-shadow: false, $include-border: false);
|
|
44
|
+
@include scaled-transform(0px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.range-value-min {
|
|
48
|
+
--knob-box-shadow: 0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 4px rgba(0, 0, 0, 0.05);
|
|
49
|
+
|
|
50
|
+
&::part(knob) {
|
|
51
|
+
@include scaled-transform(calc(var(--knob-width) * -2));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&.range-value-max {
|
|
55
|
+
--knob-box-shadow:
|
|
56
|
+
0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 4px rgba(0, 0, 0, 0.05), inset 0.4px 0.4px 1px 0.2px var(--bar-background-active);
|
|
57
|
+
|
|
58
|
+
&::part(knob) {
|
|
59
|
+
@include scaled-transform(calc(var(--knob-width) * 2));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.range-dual-knobs.range-pressed {
|
|
65
|
+
&.range-pressed-a::part(knob-a),
|
|
66
|
+
&.range-pressed-b::part(knob-b) {
|
|
67
|
+
@include api.glass-background(0.1, 0, 120%, $include-border: false);
|
|
68
|
+
@include scaled-transform(0px);
|
|
69
|
+
box-shadow:
|
|
70
|
+
0 0.5px 4px rgba(0, 0, 0, 0.12),
|
|
71
|
+
0 6px 4px rgba(0, 0, 0, 0.05),
|
|
72
|
+
inset 0.4px 0.4px 1px 0 var(--bar-background-active);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.range-value-min.range-pressed-lower::part(knob-lower) {
|
|
76
|
+
@include scaled-transform(calc(var(--knob-width) * -2));
|
|
77
|
+
box-shadow:
|
|
78
|
+
0 0.5px 4px rgba(0, 0, 0, 0.12),
|
|
79
|
+
0 6px 4px rgba(0, 0, 0, 0.05);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.range-value-max.range-pressed-upper::part(knob-upper) {
|
|
83
|
+
@include scaled-transform(calc(var(--knob-width) * 2));
|
|
84
|
+
box-shadow:
|
|
85
|
+
0 0.5px 4px rgba(0, 0, 0, 0.12),
|
|
86
|
+
0 6px 4px rgba(0, 0, 0, 0.05),
|
|
87
|
+
inset 0.4px 0.4px 1px 0.2px var(--bar-background-active);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-modal.ios {
|
|
4
|
+
ion-searchbar:not(.ios26-disabled) {
|
|
5
|
+
.searchbar-input-container {
|
|
6
|
+
input.searchbar-input {
|
|
7
|
+
// Modal表示でのアイコン非表示の不具合の対応
|
|
8
|
+
backdrop-filter: none;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
ion-searchbar.ios:not(.ios26-disabled):not(.searchbar-classic) {
|
|
15
|
+
min-height: 60px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
|
|
18
|
+
ion-icon.searchbar-search-icon {
|
|
19
|
+
inset-inline-start: 12px;
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.searchbar-input-container {
|
|
24
|
+
margin: 0 8px 0 16px;
|
|
25
|
+
align-self: center;
|
|
26
|
+
justify-self: center;
|
|
27
|
+
input.searchbar-input {
|
|
28
|
+
min-height: 44px;
|
|
29
|
+
@include api.glass-background;
|
|
30
|
+
border-radius: 22px;
|
|
31
|
+
padding-inline-start: 2.4rem;
|
|
32
|
+
}
|
|
33
|
+
.searchbar-clear-button {
|
|
34
|
+
padding-inline-end: 2rem;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Ionic writes a physical inline padding while the placeholder is centered.
|
|
39
|
+
// Match before hydration as well, so Ionic's `transition: all` cannot animate through the inline value.
|
|
40
|
+
&:not(.searchbar-left-aligned) .searchbar-input-container input.searchbar-input {
|
|
41
|
+
padding-inline-start: 2.4rem !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* add searchbar-classic
|
|
47
|
+
*/
|
|
48
|
+
ion-toolbar.ios:not(.ios26-disabled):has(ion-searchbar.searchbar-classic.ios:not(.ios26-disabled)) {
|
|
49
|
+
--min-height: auto;
|
|
50
|
+
}
|
|
51
|
+
ion-searchbar.ios:not(.ios26-disabled).searchbar-classic {
|
|
52
|
+
padding-bottom: 12px;
|
|
53
|
+
min-height: auto;
|
|
54
|
+
.searchbar-input-container input.searchbar-input {
|
|
55
|
+
border-radius: 999px;
|
|
56
|
+
height: 44px;
|
|
57
|
+
font-size: 0.98rem;
|
|
58
|
+
padding-inline-start: 38px;
|
|
59
|
+
background: rgba(var(--ion-color-contrast-rgb), 0.078);
|
|
60
|
+
}
|
|
61
|
+
ion-icon.searchbar-search-icon {
|
|
62
|
+
inset-inline-start: 12px;
|
|
63
|
+
width: 1.18rem;
|
|
64
|
+
}
|
|
65
|
+
button.searchbar-clear-button {
|
|
66
|
+
right: 8px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-segment.ios:not(.ios26-disabled) {
|
|
4
|
+
@include api.glass-background;
|
|
5
|
+
min-height: 48px;
|
|
6
|
+
border-radius: 25px;
|
|
7
|
+
|
|
8
|
+
transition: transform var(--ios26-activated-transition-duration) ease-out;
|
|
9
|
+
|
|
10
|
+
// will-change is optimized to only apply when needed for performance
|
|
11
|
+
&.segment-activated,
|
|
12
|
+
&:has(ion-segment-button.ion-activated) {
|
|
13
|
+
will-change: transform;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:not(.segment-activated):not(:has(ion-segment-button.ion-activated)) {
|
|
17
|
+
will-change: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
ion-segment-button:is(.in-toolbar-color, .in-segment-color)::part(indicator-background) {
|
|
21
|
+
// Ionic sets a direct background for color contexts, bypassing --indicator-color.
|
|
22
|
+
background: var(--indicator-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.in-toolbar-color:not(.in-segment-color) {
|
|
26
|
+
ion-segment-button:not(.segment-button-checked)::part(native) {
|
|
27
|
+
color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:not(.ios26-enable-gesture).segment-activated {
|
|
32
|
+
transform: scale(1.1) translateZ(0);
|
|
33
|
+
-webkit-transform: scale(1.1) translateZ(0);
|
|
34
|
+
ion-segment-button {
|
|
35
|
+
--indicator-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0);
|
|
36
|
+
--indicator-transform: scale(1.1) translateZ(0);
|
|
37
|
+
transition: transform 100ms ease-out;
|
|
38
|
+
&.segment-button-checked::part(native) {
|
|
39
|
+
transform: scale(1.08) translateZ(0);
|
|
40
|
+
-webkit-transform: scale(1.08) translateZ(0);
|
|
41
|
+
}
|
|
42
|
+
&::part(indicator-background) {
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
transform-origin: center center;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.ios26-enable-gesture {
|
|
51
|
+
&:has(ion-segment-button.ion-activated) {
|
|
52
|
+
transform: scale(1.1) translateZ(0);
|
|
53
|
+
-webkit-transform: scale(1.1) translateZ(0);
|
|
54
|
+
ion-segment-button {
|
|
55
|
+
--indicator-transform: scale(1.1) translateZ(0);
|
|
56
|
+
transition: transform 100ms ease-out;
|
|
57
|
+
&.segment-button-checked::part(native) {
|
|
58
|
+
transform: scale(1.08) translateZ(0);
|
|
59
|
+
-webkit-transform: scale(1.08) translateZ(0);
|
|
60
|
+
}
|
|
61
|
+
&::part(indicator-background) {
|
|
62
|
+
position: relative;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
transform-origin: center center;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
&.ios26-animated {
|
|
69
|
+
ion-segment-button {
|
|
70
|
+
--indicator-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.segment-expand {
|
|
76
|
+
min-height: 24px;
|
|
77
|
+
width: calc(100% - var(--ion-safe-area-left, 0) - var(--ion-safe-area-left, 0) - 24px);
|
|
78
|
+
|
|
79
|
+
&.segment-activated {
|
|
80
|
+
transform: scale(1);
|
|
81
|
+
ion-segment-button.segment-button-checked::part(native) {
|
|
82
|
+
transform: scale(1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ion-segment-button {
|
|
87
|
+
min-height: 24px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.ios26-enable-gesture {
|
|
91
|
+
&:has(ion-segment-button.ion-activated) {
|
|
92
|
+
transform: scale(1) translateZ(0);
|
|
93
|
+
-webkit-transform: scale(1) translateZ(0);
|
|
94
|
+
ion-segment-button {
|
|
95
|
+
--indicator-transform: scale(1) translateZ(0);
|
|
96
|
+
transition: none;
|
|
97
|
+
&.segment-button-checked::part(native) {
|
|
98
|
+
transform: scale(1) translateZ(0);
|
|
99
|
+
-webkit-transform: scale(1) translateZ(0);
|
|
100
|
+
}
|
|
101
|
+
&::part(indicator-background) {
|
|
102
|
+
position: relative;
|
|
103
|
+
z-index: 1;
|
|
104
|
+
transform-origin: center center;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&.ios26-animated {
|
|
109
|
+
ion-segment-button {
|
|
110
|
+
--indicator-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ion-segment-button.ios:not(.ios26-disabled) {
|
|
118
|
+
--border-width: 0;
|
|
119
|
+
--indicator-box-shadow: none;
|
|
120
|
+
--indicator-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.06);
|
|
121
|
+
--ion-color-base: var(--ion-text-color, #000);
|
|
122
|
+
--padding-start: 8px;
|
|
123
|
+
--padding-end: 8px;
|
|
124
|
+
min-width: 60px;
|
|
125
|
+
margin: 3px 2px;
|
|
126
|
+
font-size: 14.5px;
|
|
127
|
+
|
|
128
|
+
&::part(indicator-background) {
|
|
129
|
+
border-radius: 25px;
|
|
130
|
+
transition: background 0.2s ease;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.ion-cloned-element {
|
|
134
|
+
&::part(native) {
|
|
135
|
+
border-radius: 25px;
|
|
136
|
+
@include api.glass-background($opacity: 1, $blur: 0, $saturate: 104%);
|
|
137
|
+
background: transparent;
|
|
138
|
+
height: 100%;
|
|
139
|
+
}
|
|
140
|
+
color: var(--color-selected, var(--ion-color-primary, #0054e9));
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
position: absolute;
|
|
143
|
+
left: 0;
|
|
144
|
+
top: -3.25px;
|
|
145
|
+
transform-origin: center center;
|
|
146
|
+
& > * {
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-tab-bar.ios:not(.ios26-disabled) {
|
|
4
|
+
@include api.glass-background;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
|
|
7
|
+
border-radius: 40px;
|
|
8
|
+
--color: rgb(var(--ion-text-color-rgb, 0, 0, 0));
|
|
9
|
+
|
|
10
|
+
&[slot='top'] {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: var(--ios26-floating-safe-area-top);
|
|
13
|
+
right: calc(16px + var(--ion-safe-area-right, 0px));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[slot='bottom'] {
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: var(--ios26-floating-safe-area-bottom);
|
|
19
|
+
left: calc(16px + var(--ion-safe-area-left, 0px));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 100% - margin-left - margin-right - right-fab - margin-left-fab
|
|
24
|
+
*/
|
|
25
|
+
width: calc(100% - calc(18px + var(--ion-safe-area-left, 0px)) - calc(18px + var(--ion-safe-area-left, 0px)) - 60px - 12px);
|
|
26
|
+
max-width: 474px;
|
|
27
|
+
min-height: 56px;
|
|
28
|
+
&:has(:nth-child(5)) {
|
|
29
|
+
width: calc(100% - calc(18px + var(--ion-safe-area-left, 0px)) - calc(18px + var(--ion-safe-area-left, 0px)));
|
|
30
|
+
max-width: 546px;
|
|
31
|
+
}
|
|
32
|
+
padding: 2px 2px;
|
|
33
|
+
|
|
34
|
+
transition: transform var(--ios26-activated-transition-duration) ease-out;
|
|
35
|
+
|
|
36
|
+
// will-change is optimized to only apply when needed for performance
|
|
37
|
+
&:has(ion-tab-button.ion-activated) {
|
|
38
|
+
will-change: transform;
|
|
39
|
+
transform: scale(1.038) translateZ(0);
|
|
40
|
+
-webkit-transform: scale(1.038) translateZ(0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:not(:has(ion-tab-button.ion-activated)) {
|
|
44
|
+
will-change: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:has(ion-tab-button.ion-activated) {
|
|
48
|
+
ion-tab-button.tab-selected:not(.ion-activated) {
|
|
49
|
+
--color-selected: rgb(var(--ion-text-color-rgb, 0, 0, 0));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* effectが有効な場合、effectでスタイリングするため不要
|
|
55
|
+
*/
|
|
56
|
+
&.ios26-enable-gesture.ios26-animated {
|
|
57
|
+
ion-tab-button.tab-selected::part(native) {
|
|
58
|
+
background: rgba(var(--ios26-button-color-selected-rgb), 0);
|
|
59
|
+
}
|
|
60
|
+
ion-tab-button.ion-activated {
|
|
61
|
+
ion-label,
|
|
62
|
+
ion-icon {
|
|
63
|
+
filter: brightness(100%);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ion-tab-button.ios:not(.ios26-disabled) {
|
|
70
|
+
ion-icon {
|
|
71
|
+
font-size: 26px;
|
|
72
|
+
}
|
|
73
|
+
ion-label,
|
|
74
|
+
ion-icon {
|
|
75
|
+
transition:
|
|
76
|
+
filter var(--ios26-activated-transition-duration) ease,
|
|
77
|
+
color var(--ios26-activated-transition-duration) ease;
|
|
78
|
+
}
|
|
79
|
+
background: rgba(var(--ios26-glass-background-rgb), 0);
|
|
80
|
+
height: auto;
|
|
81
|
+
transition: transform var(--ios26-activated-transition-duration) ease;
|
|
82
|
+
&::part(native) {
|
|
83
|
+
overflow: visible;
|
|
84
|
+
min-height: 56px;
|
|
85
|
+
border-radius: 32px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.ion-activated {
|
|
89
|
+
transform: scale(1.1);
|
|
90
|
+
position: relative;
|
|
91
|
+
color: var(--color-selected);
|
|
92
|
+
ion-label,
|
|
93
|
+
ion-icon {
|
|
94
|
+
filter: brightness(104%);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.tab-selected {
|
|
99
|
+
&::part(native) {
|
|
100
|
+
background: rgba(var(--ios26-button-color-selected-rgb), 0.095);
|
|
101
|
+
transition: background var(--ios26-activated-transition-duration) ease;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.ion-cloned-element {
|
|
106
|
+
&::part(native) {
|
|
107
|
+
@include api.glass-background($opacity: 0, $blur: 0, $saturate: 104%);
|
|
108
|
+
}
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: 0;
|
|
112
|
+
top: 0;
|
|
113
|
+
transform-origin: center;
|
|
114
|
+
& > * {
|
|
115
|
+
visibility: hidden;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use '../utils/api';
|
|
2
|
+
|
|
3
|
+
ion-toast.ios:not(.ios26-disabled) {
|
|
4
|
+
--background: rgba(var(--ios26-glass-background-rgb), 0.72);
|
|
5
|
+
--border-radius: 24px;
|
|
6
|
+
--border-style: solid;
|
|
7
|
+
--border-width: 0.5px;
|
|
8
|
+
--box-shadow:
|
|
9
|
+
inset 0 0 8px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.2), 0 0 10px 0 rgba(var(--ios26-glass-box-shadow-color-rgb), 0.82);
|
|
10
|
+
--start: 16px;
|
|
11
|
+
--end: 16px;
|
|
12
|
+
|
|
13
|
+
&::part(wrapper) {
|
|
14
|
+
@include api.glass-background($include-background: false, $include-box-shadow: false, $include-border: false);
|
|
15
|
+
border-top-color: rgba(var(--ios26-glass-border-color-rgb), 1);
|
|
16
|
+
border-right-color: rgba(var(--ios26-glass-border-color-rgb), 0.8);
|
|
17
|
+
border-bottom-color: rgba(var(--ios26-glass-border-color-rgb), 1);
|
|
18
|
+
border-left-color: rgba(var(--ios26-glass-border-color-rgb), 0.6);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.ion-color {
|
|
22
|
+
&::part(wrapper) {
|
|
23
|
+
@include api.glass-background(
|
|
24
|
+
$background-rgb: var(--ion-color-base-rgb),
|
|
25
|
+
$border-color-rgb: var(--ion-color-base-rgb),
|
|
26
|
+
$include-box-shadow: false,
|
|
27
|
+
$include-border: false
|
|
28
|
+
);
|
|
29
|
+
border-top-color: rgba(var(--ion-color-base-rgb), 1);
|
|
30
|
+
border-right-color: rgba(var(--ion-color-base-rgb), 0.8);
|
|
31
|
+
border-bottom-color: rgba(var(--ion-color-base-rgb), 1);
|
|
32
|
+
border-left-color: rgba(var(--ion-color-base-rgb), 0.6);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|