@tempoxyz/ds 0.2.2 → 0.2.4
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/dist/mobile/components/Button.d.ts +1 -1
- package/dist/mobile/components/Button.js +1 -1
- package/dist/mobile/components/Button.js.map +1 -1
- package/dist/mobile/components/IconButton.d.ts +1 -1
- package/dist/mobile/components/IconButton.js +1 -1
- package/dist/mobile/components/IconButton.js.map +1 -1
- package/dist/mobile/components/Spinner.d.ts +3 -3
- package/dist/mobile/components/Spinner.d.ts.map +1 -1
- package/dist/mobile/components/Spinner.js +3 -3
- package/dist/mobile/components/Spinner.js.map +1 -1
- package/dist/mobile/components/Toast.d.ts +1 -1
- package/dist/mobile/components/Toast.d.ts.map +1 -1
- package/dist/mobile/components/Toast.js +1 -1
- package/dist/mobile/components/Toast.js.map +1 -1
- package/dist/mobile/components/Toggle.d.ts +2 -2
- package/dist/mobile/components/Toggle.js +2 -2
- package/dist/mobile/components/Toggle.js.map +1 -1
- package/dist/mobile/vars.d.ts +24 -0
- package/dist/mobile/vars.d.ts.map +1 -1
- package/dist/mobile/vars.js +12 -0
- package/dist/mobile/vars.js.map +1 -1
- package/dist/mobile/zyzz.config.d.ts +96 -0
- package/dist/mobile/zyzz.config.d.ts.map +1 -1
- package/dist/web/components/Accordion.css +1 -1
- package/dist/web/components/Accordion.d.ts +7 -7
- package/dist/web/components/Accordion.js.map +1 -1
- package/dist/web/components/Accordion.js.zyzz.json +1 -1
- package/dist/web/components/AlertDialog.css +1 -1
- package/dist/web/components/AlertDialog.d.ts.map +1 -1
- package/dist/web/components/AlertDialog.js +1 -1
- package/dist/web/components/AlertDialog.js.map +1 -1
- package/dist/web/components/AlertDialog.js.zyzz.json +1 -1
- package/dist/web/components/Amount.js.zyzz.json +1 -1
- package/dist/web/components/AmountInput.css +1 -1
- package/dist/web/components/AmountInput.js +1 -1
- package/dist/web/components/AmountInput.js.map +1 -1
- package/dist/web/components/AmountInput.js.zyzz.json +1 -1
- package/dist/web/components/AppShell.css +1 -1
- package/dist/web/components/AppShell.d.ts +10 -10
- package/dist/web/components/AppShell.js.map +1 -1
- package/dist/web/components/AppShell.js.zyzz.json +1 -1
- package/dist/web/components/Autocomplete.js.zyzz.json +1 -1
- package/dist/web/components/Avatar.css +1 -1
- package/dist/web/components/Avatar.d.ts +3 -3
- package/dist/web/components/Avatar.js.map +1 -1
- package/dist/web/components/Avatar.js.zyzz.json +1 -1
- package/dist/web/components/Banner.css +1 -1
- package/dist/web/components/Banner.js +2 -2
- package/dist/web/components/Banner.js.map +1 -1
- package/dist/web/components/Banner.js.zyzz.json +1 -1
- package/dist/web/components/Breadcrumbs.css +1 -1
- package/dist/web/components/Breadcrumbs.d.ts +4 -4
- package/dist/web/components/Breadcrumbs.js.map +1 -1
- package/dist/web/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/web/components/Button.css +1 -1
- package/dist/web/components/Button.d.ts +12 -11
- package/dist/web/components/Button.d.ts.map +1 -1
- package/dist/web/components/Button.js +2 -2
- package/dist/web/components/Button.js.map +1 -1
- package/dist/web/components/Button.js.zyzz.json +1 -1
- package/dist/web/components/Calendar.css +1 -1
- package/dist/web/components/Calendar.js.map +1 -1
- package/dist/web/components/Calendar.js.zyzz.json +1 -1
- package/dist/web/components/Callout.css +1 -1
- package/dist/web/components/Callout.d.ts +6 -6
- package/dist/web/components/Callout.js +1 -1
- package/dist/web/components/Callout.js.map +1 -1
- package/dist/web/components/Callout.js.zyzz.json +1 -1
- package/dist/web/components/Checkbox.css +1 -1
- package/dist/web/components/Checkbox.d.ts +8 -8
- package/dist/web/components/Checkbox.js.map +1 -1
- package/dist/web/components/Checkbox.js.zyzz.json +1 -1
- package/dist/web/components/CheckboxGroup.js.zyzz.json +1 -1
- package/dist/web/components/ChoiceGroup.css +1 -1
- package/dist/web/components/ChoiceGroup.d.ts +2 -2
- package/dist/web/components/ChoiceGroup.d.ts.map +1 -1
- package/dist/web/components/ChoiceGroup.js +2 -2
- package/dist/web/components/ChoiceGroup.js.map +1 -1
- package/dist/web/components/ChoiceGroup.js.zyzz.json +1 -1
- package/dist/web/components/Choicebox.css +1 -1
- package/dist/web/components/Choicebox.d.ts +4 -4
- package/dist/web/components/Choicebox.js +1 -1
- package/dist/web/components/Choicebox.js.map +1 -1
- package/dist/web/components/Choicebox.js.zyzz.json +1 -1
- package/dist/web/components/Combobox.css +1 -1
- package/dist/web/components/Combobox.js.map +1 -1
- package/dist/web/components/Combobox.js.zyzz.json +1 -1
- package/dist/web/components/Container.js.zyzz.json +1 -1
- package/dist/web/components/CopyButton.js.zyzz.json +1 -1
- package/dist/web/components/DatePicker.css +1 -1
- package/dist/web/components/DatePicker.d.ts +19 -19
- package/dist/web/components/DatePicker.d.ts.map +1 -1
- package/dist/web/components/DatePicker.js +2 -2
- package/dist/web/components/DatePicker.js.map +1 -1
- package/dist/web/components/DatePicker.js.zyzz.json +1 -1
- package/dist/web/components/Dialog.css +1 -1
- package/dist/web/components/Dialog.d.ts.map +1 -1
- package/dist/web/components/Dialog.js +1 -1
- package/dist/web/components/Dialog.js.map +1 -1
- package/dist/web/components/Dialog.js.zyzz.json +1 -1
- package/dist/web/components/Drawer.css +1 -1
- package/dist/web/components/Drawer.js.map +1 -1
- package/dist/web/components/Drawer.js.zyzz.json +1 -1
- package/dist/web/components/Empty.js.zyzz.json +1 -1
- package/dist/web/components/Field.css +1 -1
- package/dist/web/components/Field.js.map +1 -1
- package/dist/web/components/Field.js.zyzz.json +1 -1
- package/dist/web/components/Fieldset.js.zyzz.json +1 -1
- package/dist/web/components/Frame.css +1 -1
- package/dist/web/components/Frame.d.ts +27 -10
- package/dist/web/components/Frame.d.ts.map +1 -1
- package/dist/web/components/Frame.js +12 -5
- package/dist/web/components/Frame.js.map +1 -1
- package/dist/web/components/Frame.js.zyzz.json +1 -1
- package/dist/web/components/Gauge.css +1 -1
- package/dist/web/components/Gauge.js.map +1 -1
- package/dist/web/components/Gauge.js.zyzz.json +1 -1
- package/dist/web/components/Grid.js.zyzz.json +1 -1
- package/dist/web/components/Hex.css +1 -1
- package/dist/web/components/Hex.d.ts +5 -5
- package/dist/web/components/Hex.js +1 -1
- package/dist/web/components/Hex.js.map +1 -1
- package/dist/web/components/Hex.js.zyzz.json +1 -1
- package/dist/web/components/IconChip.css +1 -1
- package/dist/web/components/IconChip.d.ts +1 -1
- package/dist/web/components/IconChip.js.map +1 -1
- package/dist/web/components/IconChip.js.zyzz.json +1 -1
- package/dist/web/components/Identicon.js.zyzz.json +1 -1
- package/dist/web/components/Inline.js.zyzz.json +1 -1
- package/dist/web/components/Input.css +1 -1
- package/dist/web/components/Input.js.map +1 -1
- package/dist/web/components/Input.js.zyzz.json +1 -1
- package/dist/web/components/Inset.js.zyzz.json +1 -1
- package/dist/web/components/Kbd.css +1 -1
- package/dist/web/components/Kbd.d.ts +1 -1
- package/dist/web/components/Kbd.js.map +1 -1
- package/dist/web/components/Kbd.js.zyzz.json +1 -1
- package/dist/web/components/LoadingDots.css +1 -1
- package/dist/web/components/LoadingDots.d.ts +2 -2
- package/dist/web/components/LoadingDots.js.map +1 -1
- package/dist/web/components/LoadingDots.js.zyzz.json +1 -1
- package/dist/web/components/Menu.css +1 -1
- package/dist/web/components/Menu.d.ts +11 -11
- package/dist/web/components/Menu.d.ts.map +1 -1
- package/dist/web/components/Menu.js +1 -1
- package/dist/web/components/Menu.js.map +1 -1
- package/dist/web/components/Menu.js.zyzz.json +1 -1
- package/dist/web/components/NumberField.css +1 -1
- package/dist/web/components/NumberField.js +1 -1
- package/dist/web/components/NumberField.js.map +1 -1
- package/dist/web/components/NumberField.js.zyzz.json +1 -1
- package/dist/web/components/OtpField.css +1 -1
- package/dist/web/components/OtpField.d.ts.map +1 -1
- package/dist/web/components/OtpField.js +1 -1
- package/dist/web/components/OtpField.js.map +1 -1
- package/dist/web/components/OtpField.js.zyzz.json +1 -1
- package/dist/web/components/Pagination.css +1 -1
- package/dist/web/components/Pagination.d.ts +12 -12
- package/dist/web/components/Pagination.js +1 -1
- package/dist/web/components/Pagination.js.map +1 -1
- package/dist/web/components/Pagination.js.zyzz.json +1 -1
- package/dist/web/components/Popover.css +1 -1
- package/dist/web/components/Popover.d.ts.map +1 -1
- package/dist/web/components/Popover.js +1 -1
- package/dist/web/components/Popover.js.map +1 -1
- package/dist/web/components/Popover.js.zyzz.json +1 -1
- package/dist/web/components/Progress.css +1 -1
- package/dist/web/components/Progress.js.map +1 -1
- package/dist/web/components/Progress.js.zyzz.json +1 -1
- package/dist/web/components/Qr.js.zyzz.json +1 -1
- package/dist/web/components/RadioGroup.css +1 -1
- package/dist/web/components/RadioGroup.d.ts +4 -4
- package/dist/web/components/RadioGroup.js.map +1 -1
- package/dist/web/components/RadioGroup.js.zyzz.json +1 -1
- package/dist/web/components/Rows.css +1 -1
- package/dist/web/components/Rows.d.ts +6 -6
- package/dist/web/components/Rows.js.map +1 -1
- package/dist/web/components/Rows.js.zyzz.json +1 -1
- package/dist/web/components/SecretValue.css +1 -1
- package/dist/web/components/SecretValue.d.ts +4 -4
- package/dist/web/components/SecretValue.js +1 -1
- package/dist/web/components/SecretValue.js.map +1 -1
- package/dist/web/components/SecretValue.js.zyzz.json +1 -1
- package/dist/web/components/Select.css +1 -1
- package/dist/web/components/Select.js.map +1 -1
- package/dist/web/components/Select.js.zyzz.json +1 -1
- package/dist/web/components/Separator.js.zyzz.json +1 -1
- package/dist/web/components/SidebarMenu.css +1 -1
- package/dist/web/components/SidebarMenu.d.ts +11 -11
- package/dist/web/components/SidebarMenu.d.ts.map +1 -1
- package/dist/web/components/SidebarMenu.js +1 -1
- package/dist/web/components/SidebarMenu.js.map +1 -1
- package/dist/web/components/SidebarMenu.js.zyzz.json +1 -1
- package/dist/web/components/Skeleton.js.zyzz.json +1 -1
- package/dist/web/components/Slider.css +1 -1
- package/dist/web/components/Slider.d.ts.map +1 -1
- package/dist/web/components/Slider.js.map +1 -1
- package/dist/web/components/Slider.js.zyzz.json +1 -1
- package/dist/web/components/Snippet.css +1 -1
- package/dist/web/components/Snippet.d.ts +4 -4
- package/dist/web/components/Snippet.js +1 -1
- package/dist/web/components/Snippet.js.map +1 -1
- package/dist/web/components/Snippet.js.zyzz.json +1 -1
- package/dist/web/components/Spinner.js.zyzz.json +1 -1
- package/dist/web/components/SplitButton.css +1 -1
- package/dist/web/components/SplitButton.d.ts.map +1 -1
- package/dist/web/components/SplitButton.js +1 -1
- package/dist/web/components/SplitButton.js.map +1 -1
- package/dist/web/components/SplitButton.js.zyzz.json +1 -1
- package/dist/web/components/Stack.js.zyzz.json +1 -1
- package/dist/web/components/Stepper.css +1 -1
- package/dist/web/components/Stepper.d.ts +1 -1
- package/dist/web/components/Stepper.js.map +1 -1
- package/dist/web/components/Stepper.js.zyzz.json +1 -1
- package/dist/web/components/Surface.css +1 -1
- package/dist/web/components/Surface.d.ts +46 -46
- package/dist/web/components/Surface.js +2 -2
- package/dist/web/components/Surface.js.map +1 -1
- package/dist/web/components/Surface.js.zyzz.json +1 -1
- package/dist/web/components/Switch.css +1 -1
- package/dist/web/components/Switch.d.ts +14 -14
- package/dist/web/components/Switch.d.ts.map +1 -1
- package/dist/web/components/Switch.js.map +1 -1
- package/dist/web/components/Switch.js.zyzz.json +1 -1
- package/dist/web/components/Table.css +1 -1
- package/dist/web/components/Table.d.ts +4 -4
- package/dist/web/components/Table.js.map +1 -1
- package/dist/web/components/Table.js.zyzz.json +1 -1
- package/dist/web/components/Tabs.css +1 -1
- package/dist/web/components/Tabs.d.ts +14 -14
- package/dist/web/components/Tabs.js +1 -1
- package/dist/web/components/Tabs.js.map +1 -1
- package/dist/web/components/Tabs.js.zyzz.json +1 -1
- package/dist/web/components/Tag.css +1 -1
- package/dist/web/components/Tag.d.ts +10 -10
- package/dist/web/components/Tag.js +1 -1
- package/dist/web/components/Tag.js.map +1 -1
- package/dist/web/components/Tag.js.zyzz.json +1 -1
- package/dist/web/components/Textarea.css +1 -1
- package/dist/web/components/Textarea.d.ts +14 -14
- package/dist/web/components/Textarea.js.map +1 -1
- package/dist/web/components/Textarea.js.zyzz.json +1 -1
- package/dist/web/components/Toast.css +1 -1
- package/dist/web/components/Toast.d.ts.map +1 -1
- package/dist/web/components/Toast.js +2 -2
- package/dist/web/components/Toast.js.map +1 -1
- package/dist/web/components/Toast.js.zyzz.json +1 -1
- package/dist/web/components/Token.js.zyzz.json +1 -1
- package/dist/web/components/Tooltip.css +1 -1
- package/dist/web/components/Tooltip.d.ts.map +1 -1
- package/dist/web/components/Tooltip.js +1 -1
- package/dist/web/components/Tooltip.js.map +1 -1
- package/dist/web/components/Tooltip.js.zyzz.json +1 -1
- package/dist/web/components/internal/Field.css +1 -1
- package/dist/web/components/internal/Field.d.ts +7 -7
- package/dist/web/components/internal/Field.js.map +1 -1
- package/dist/web/components/internal/Field.js.zyzz.json +1 -1
- package/dist/web/components/internal/InputGroup.css +1 -1
- package/dist/web/components/internal/InputGroup.d.ts +12 -12
- package/dist/web/components/internal/InputGroup.d.ts.map +1 -1
- package/dist/web/components/internal/InputGroup.js +1 -1
- package/dist/web/components/internal/InputGroup.js.map +1 -1
- package/dist/web/components/internal/InputGroup.js.zyzz.json +1 -1
- package/dist/web/components/internal/Listbox.css +1 -1
- package/dist/web/components/internal/Listbox.d.ts +9 -9
- package/dist/web/components/internal/Listbox.d.ts.map +1 -1
- package/dist/web/components/internal/Listbox.js +1 -1
- package/dist/web/components/internal/Listbox.js.map +1 -1
- package/dist/web/components/internal/Listbox.js.zyzz.json +1 -1
- package/dist/web/index.js.zyzz.json +1 -1
- package/dist/web/vars.d.ts +91 -0
- package/dist/web/vars.d.ts.map +1 -1
- package/dist/web/vars.js.map +1 -1
- package/dist/web/vars.js.zyzz.json +1 -1
- package/dist/web/zyzz.config.d.ts +455 -0
- package/dist/web/zyzz.config.d.ts.map +1 -1
- package/dist/web/zyzz.config.js.zyzz.json +1 -1
- package/package.json +1 -1
- package/src/mobile/components/Button.tsx +1 -1
- package/src/mobile/components/IconButton.tsx +1 -1
- package/src/mobile/components/Spinner.tsx +3 -4
- package/src/mobile/components/Toast.tsx +1 -2
- package/src/mobile/components/Toggle.tsx +2 -2
- package/src/mobile/vars.ts +14 -0
- package/src/web/components/Accordion.tsx +8 -8
- package/src/web/components/AlertDialog.tsx +11 -8
- package/src/web/components/AmountInput.tsx +12 -12
- package/src/web/components/AppShell.tsx +23 -23
- package/src/web/components/Avatar.tsx +3 -3
- package/src/web/components/Banner.tsx +15 -15
- package/src/web/components/Breadcrumbs.tsx +4 -4
- package/src/web/components/Button.tsx +15 -12
- package/src/web/components/Calendar.tsx +5 -5
- package/src/web/components/Callout.tsx +15 -15
- package/src/web/components/Checkbox.tsx +9 -9
- package/src/web/components/ChoiceGroup.tsx +13 -14
- package/src/web/components/Choicebox.tsx +21 -21
- package/src/web/components/Combobox.tsx +3 -3
- package/src/web/components/DatePicker.tsx +24 -24
- package/src/web/components/Dialog.tsx +26 -17
- package/src/web/components/Drawer.tsx +6 -6
- package/src/web/components/Field.tsx +9 -9
- package/src/web/components/Frame.tsx +30 -9
- package/src/web/components/Gauge.tsx +1 -1
- package/src/web/components/Hex.tsx +5 -5
- package/src/web/components/IconChip.tsx +1 -1
- package/src/web/components/Input.tsx +10 -10
- package/src/web/components/Kbd.tsx +1 -1
- package/src/web/components/LoadingDots.tsx +4 -4
- package/src/web/components/Menu.tsx +15 -12
- package/src/web/components/NumberField.tsx +16 -16
- package/src/web/components/OtpField.tsx +14 -6
- package/src/web/components/Pagination.tsx +12 -12
- package/src/web/components/Popover.tsx +14 -11
- package/src/web/components/Progress.tsx +2 -2
- package/src/web/components/RadioGroup.tsx +11 -11
- package/src/web/components/Rows.tsx +7 -7
- package/src/web/components/SecretValue.tsx +4 -4
- package/src/web/components/Select.tsx +1 -1
- package/src/web/components/SidebarMenu.tsx +14 -15
- package/src/web/components/Slider.tsx +6 -7
- package/src/web/components/Snippet.tsx +8 -8
- package/src/web/components/SplitButton.tsx +17 -5
- package/src/web/components/Stepper.tsx +1 -1
- package/src/web/components/Surface.tsx +47 -47
- package/src/web/components/Switch.tsx +21 -23
- package/src/web/components/Table.tsx +4 -4
- package/src/web/components/Tabs.tsx +14 -14
- package/src/web/components/Tag.tsx +12 -12
- package/src/web/components/Textarea.tsx +14 -14
- package/src/web/components/Toast.tsx +23 -20
- package/src/web/components/Tooltip.tsx +12 -9
- package/src/web/components/internal/Field.ts +19 -19
- package/src/web/components/internal/InputGroup.ts +12 -13
- package/src/web/components/internal/Listbox.ts +17 -14
- package/src/web/vars.ts +81 -2
|
@@ -132,30 +132,30 @@ namespace styles {
|
|
|
132
132
|
flexShrink: '0 !custom',
|
|
133
133
|
// Inline padding keeps the focus ring off the label. The negative end margin holds the label at
|
|
134
134
|
// the callout's edge.
|
|
135
|
-
marginInlineEnd: '-
|
|
135
|
+
marginInlineEnd: '-4',
|
|
136
136
|
marginInlineStart: 'auto !custom',
|
|
137
137
|
outlineColor: 'transparent !custom',
|
|
138
|
-
outlineOffset: '
|
|
138
|
+
outlineOffset: '0',
|
|
139
139
|
outlineStyle: 'solid !custom',
|
|
140
|
-
outlineWidth: '
|
|
140
|
+
outlineWidth: '2',
|
|
141
141
|
paddingBlock: '0',
|
|
142
142
|
paddingInline: '4',
|
|
143
143
|
textDecoration: 'underline !custom',
|
|
144
144
|
textUnderlineOffset: '2px !custom',
|
|
145
|
-
transitionDuration: '
|
|
146
|
-
transitionProperty: 'outline-color, outline-offset, text-decoration-color,
|
|
145
|
+
transitionDuration: '160',
|
|
146
|
+
transitionProperty: 'outline-color, outline-offset, text-decoration-color, scale',
|
|
147
147
|
transitionTimingFunction: 'snappy',
|
|
148
148
|
// The shorthand takes the callout's type, so actions match the message text.
|
|
149
149
|
font: 'inherit !custom',
|
|
150
150
|
whiteSpace: 'nowrap',
|
|
151
151
|
selectors: {
|
|
152
|
-
'&:active': {
|
|
153
|
-
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '
|
|
152
|
+
'&:active': { scale: 'press' },
|
|
153
|
+
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
|
|
154
154
|
'&:hover': { textDecorationColor: 'transparent !custom' },
|
|
155
155
|
},
|
|
156
156
|
'@media (prefers-reduced-motion: reduce)': {
|
|
157
157
|
transitionProperty: 'outline-color, text-decoration-color',
|
|
158
|
-
selectors: { '&:active': {
|
|
158
|
+
selectors: { '&:active': { scale: 'none !custom' } },
|
|
159
159
|
},
|
|
160
160
|
},
|
|
161
161
|
{ id: 'tds/web/callout/action' },
|
|
@@ -167,7 +167,7 @@ namespace styles {
|
|
|
167
167
|
selectors: {
|
|
168
168
|
// The action's start padding would narrow the message, so the message gives the 4px back
|
|
169
169
|
// and wraps at the same point.
|
|
170
|
-
'&:not(:last-child)': { marginInlineEnd: '-
|
|
170
|
+
'&:not(:last-child)': { marginInlineEnd: '-4' },
|
|
171
171
|
},
|
|
172
172
|
},
|
|
173
173
|
{ id: 'tds/web/callout/content' },
|
|
@@ -201,10 +201,10 @@ namespace styles {
|
|
|
201
201
|
// Light mode takes step 300, since step 100 nearly matches the page background. Dark mode
|
|
202
202
|
// keeps step 100, which already stands apart from the page while keeping the text legible.
|
|
203
203
|
intent: {
|
|
204
|
-
info: { backgroundColor: '
|
|
205
|
-
negative: { backgroundColor: '
|
|
206
|
-
positive: { backgroundColor: '
|
|
207
|
-
warning: { backgroundColor: '
|
|
204
|
+
info: { backgroundColor: 'background.info', color: 'blue.900' },
|
|
205
|
+
negative: { backgroundColor: 'background.negative', color: 'red.900' },
|
|
206
|
+
positive: { backgroundColor: 'background.positive', color: 'green.900' },
|
|
207
|
+
warning: { backgroundColor: 'background.warning', color: 'amber.900' },
|
|
208
208
|
},
|
|
209
209
|
shape: {
|
|
210
210
|
default: {},
|
|
@@ -221,7 +221,7 @@ namespace styles {
|
|
|
221
221
|
},
|
|
222
222
|
medium: {
|
|
223
223
|
columnGap: '12',
|
|
224
|
-
paddingBlock: '
|
|
224
|
+
paddingBlock: '10',
|
|
225
225
|
paddingInline: '16',
|
|
226
226
|
typography: 'copy.14',
|
|
227
227
|
selectors: { '& [data-callout-icon]': { fontSize: '16', height: '20' } },
|
|
@@ -231,7 +231,7 @@ namespace styles {
|
|
|
231
231
|
paddingBlock: '7px !custom',
|
|
232
232
|
paddingInline: '12',
|
|
233
233
|
typography: 'copy.13',
|
|
234
|
-
selectors: { '& [data-callout-icon]': { fontSize: '14', height: '
|
|
234
|
+
selectors: { '& [data-callout-icon]': { fontSize: '14', height: '18' } },
|
|
235
235
|
},
|
|
236
236
|
},
|
|
237
237
|
},
|
|
@@ -87,27 +87,27 @@ namespace styles {
|
|
|
87
87
|
flexShrink: '0 !custom',
|
|
88
88
|
justifyContent: 'center',
|
|
89
89
|
outlineColor: 'transparent !custom',
|
|
90
|
-
outlineOffset: '
|
|
90
|
+
outlineOffset: '0',
|
|
91
91
|
outlineStyle: 'solid !custom',
|
|
92
|
-
outlineWidth: '
|
|
92
|
+
outlineWidth: '2',
|
|
93
93
|
padding: '0',
|
|
94
94
|
position: 'relative',
|
|
95
|
-
transitionDuration: '
|
|
95
|
+
transitionDuration: '160',
|
|
96
96
|
transitionProperty: 'background-color, opacity, outline-color, outline-offset, transform',
|
|
97
97
|
transitionTimingFunction: 'snappy',
|
|
98
98
|
selectors: {
|
|
99
|
-
'&::after': { content: '"" !custom', inset: '-
|
|
99
|
+
'&::after': { content: '"" !custom', inset: '-10', position: 'absolute' },
|
|
100
100
|
'&:active:not([data-disabled])': { transform: 'scale(0.96) !custom' },
|
|
101
|
-
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '
|
|
101
|
+
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
|
|
102
102
|
'&:hover:not([data-disabled])': { backgroundColor: 'grayAlpha.400' },
|
|
103
103
|
'&[data-checked], &[data-indeterminate]': { backgroundColor: 'foreground' },
|
|
104
104
|
'&[data-checked]:hover:not([data-disabled]), &[data-indeterminate]:hover:not([data-disabled])':
|
|
105
|
-
{ backgroundColor: 'foreground', opacity: '
|
|
106
|
-
'&[data-disabled]': { cursor: 'default', opacity: '
|
|
105
|
+
{ backgroundColor: 'foreground', opacity: 'hover' },
|
|
106
|
+
'&[data-disabled]': { cursor: 'default', opacity: 'disabled' },
|
|
107
107
|
'&[data-invalid]': {
|
|
108
108
|
outlineColor: 'red.800',
|
|
109
109
|
outlineStyle: 'solid !custom',
|
|
110
|
-
outlineWidth: '
|
|
110
|
+
outlineWidth: '1',
|
|
111
111
|
},
|
|
112
112
|
},
|
|
113
113
|
'@media (prefers-reduced-motion: reduce)': {
|
|
@@ -146,7 +146,7 @@ namespace styles {
|
|
|
146
146
|
export const indicator = style(
|
|
147
147
|
{
|
|
148
148
|
display: 'flex',
|
|
149
|
-
transitionDuration: '
|
|
149
|
+
transitionDuration: '200',
|
|
150
150
|
transitionProperty: 'opacity, transform',
|
|
151
151
|
transitionTimingFunction: 'overshoot',
|
|
152
152
|
selectors: {
|
|
@@ -3,7 +3,7 @@ import * as BaseUi from '@base-ui/react/radio'
|
|
|
3
3
|
import * as BaseUiGroup from '@base-ui/react/radio-group'
|
|
4
4
|
import { type ComponentPropsWithRef, useCallback, useLayoutEffect, useRef } from 'react'
|
|
5
5
|
import type * as zyzz from 'zyzz'
|
|
6
|
-
import { style, variants } from '../zyzz.config.js'
|
|
6
|
+
import { style, variants, vars } from '../zyzz.config.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A single-select segmented control built on Base UI Radio Group. The root has
|
|
@@ -195,27 +195,26 @@ namespace styles {
|
|
|
195
195
|
flexShrink: '0 !custom',
|
|
196
196
|
justifyContent: 'center',
|
|
197
197
|
outlineColor: 'transparent !custom',
|
|
198
|
-
outlineOffset: '
|
|
198
|
+
outlineOffset: '0',
|
|
199
199
|
outlineStyle: 'solid !custom',
|
|
200
|
-
outlineWidth: '
|
|
200
|
+
outlineWidth: '2',
|
|
201
201
|
position: 'relative',
|
|
202
|
-
transitionDuration: '
|
|
203
|
-
transitionProperty:
|
|
204
|
-
'background-color, color, opacity, outline-color, outline-offset, transform',
|
|
202
|
+
transitionDuration: '160',
|
|
203
|
+
transitionProperty: 'background-color, color, opacity, outline-color, outline-offset, scale',
|
|
205
204
|
transitionTimingFunction: 'snappy',
|
|
206
205
|
userSelect: 'none',
|
|
207
206
|
whiteSpace: 'nowrap',
|
|
208
207
|
zIndex: '1 !custom',
|
|
209
208
|
selectors: {
|
|
210
|
-
'&:active:not([data-disabled])': {
|
|
211
|
-
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '
|
|
209
|
+
'&:active:not([data-disabled])': { scale: 'press' },
|
|
210
|
+
'&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
|
|
212
211
|
'&:hover:not([data-disabled])': { color: 'foreground' },
|
|
213
212
|
'&[data-checked]': { color: 'foreground' },
|
|
214
|
-
'&[data-disabled]': { cursor: 'default', opacity: '
|
|
213
|
+
'&[data-disabled]': { cursor: 'default', opacity: 'disabled' },
|
|
215
214
|
},
|
|
216
215
|
'@media (prefers-reduced-motion: reduce)': {
|
|
217
216
|
transitionProperty: 'background-color, color, opacity, outline-color',
|
|
218
|
-
selectors: { '&:active:not([data-disabled])': {
|
|
217
|
+
selectors: { '&:active:not([data-disabled])': { scale: 'none !custom' } },
|
|
219
218
|
},
|
|
220
219
|
},
|
|
221
220
|
{ id: 'tds/web/choice-group/item' },
|
|
@@ -223,7 +222,7 @@ namespace styles {
|
|
|
223
222
|
|
|
224
223
|
export const pill = style(
|
|
225
224
|
{
|
|
226
|
-
backgroundColor: '
|
|
225
|
+
backgroundColor: 'background.indicator',
|
|
227
226
|
boxShadow: 'raised',
|
|
228
227
|
boxSizing: 'border-box',
|
|
229
228
|
insetBlock: '4',
|
|
@@ -232,7 +231,7 @@ namespace styles {
|
|
|
232
231
|
selectors: {
|
|
233
232
|
// The pill matches each item's width, so it transitions width with its position.
|
|
234
233
|
'&[data-ready]': {
|
|
235
|
-
transitionDuration: '
|
|
234
|
+
transitionDuration: '240',
|
|
236
235
|
transitionProperty: 'transform, width',
|
|
237
236
|
transitionTimingFunction: 'spring',
|
|
238
237
|
},
|
|
@@ -315,8 +314,8 @@ namespace styles {
|
|
|
315
314
|
chips: {
|
|
316
315
|
columnGap: '8',
|
|
317
316
|
height: 'auto !custom',
|
|
318
|
-
margin: '-
|
|
319
|
-
maxWidth:
|
|
317
|
+
margin: '-4',
|
|
318
|
+
maxWidth: `calc(100% + ${vars.spacing['8']}) !custom`,
|
|
320
319
|
overflowX: 'auto',
|
|
321
320
|
padding: '4',
|
|
322
321
|
scrollbarWidth: 'none !custom',
|
|
@@ -301,7 +301,7 @@ namespace styles {
|
|
|
301
301
|
{
|
|
302
302
|
display: 'inline-flex',
|
|
303
303
|
fontSize: '14',
|
|
304
|
-
transitionDuration: '
|
|
304
|
+
transitionDuration: '200',
|
|
305
305
|
transitionProperty: 'opacity, transform',
|
|
306
306
|
transitionTimingFunction: 'overshoot',
|
|
307
307
|
selectors: {
|
|
@@ -340,7 +340,7 @@ namespace styles {
|
|
|
340
340
|
height: '20',
|
|
341
341
|
justifyContent: 'center',
|
|
342
342
|
padding: '0',
|
|
343
|
-
transitionDuration: '
|
|
343
|
+
transitionDuration: '160',
|
|
344
344
|
transitionProperty: 'background-color, border-color',
|
|
345
345
|
transitionTimingFunction: 'snappy',
|
|
346
346
|
width: '20',
|
|
@@ -387,7 +387,7 @@ namespace styles {
|
|
|
387
387
|
borderRadius: 'full',
|
|
388
388
|
height: '8',
|
|
389
389
|
width: '8',
|
|
390
|
-
transitionDuration: '
|
|
390
|
+
transitionDuration: '200',
|
|
391
391
|
transitionProperty: 'opacity, transform',
|
|
392
392
|
transitionTimingFunction: 'overshoot',
|
|
393
393
|
selectors: {
|
|
@@ -437,7 +437,7 @@ namespace styles {
|
|
|
437
437
|
'& [data-choicebox-description]': { typography: 'copy.15' },
|
|
438
438
|
'& :is([role="checkbox"], [role="radio"])': { height: '24', width: '24' },
|
|
439
439
|
'& [role="checkbox"]': { borderRadius: '8' },
|
|
440
|
-
'& [role="radio"] > span': { height: '
|
|
440
|
+
'& [role="radio"] > span': { height: '10', width: '10' },
|
|
441
441
|
},
|
|
442
442
|
},
|
|
443
443
|
medium: {},
|
|
@@ -453,7 +453,7 @@ namespace styles {
|
|
|
453
453
|
'& [data-choicebox-description]': { typography: 'copy.13' },
|
|
454
454
|
'& :is([role="checkbox"], [role="radio"])': { height: '16', width: '16' },
|
|
455
455
|
'& [role="checkbox"]': { borderRadius: '4' },
|
|
456
|
-
'& [role="radio"] > span': { height: '
|
|
456
|
+
'& [role="radio"] > span': { height: '6', width: '6' },
|
|
457
457
|
},
|
|
458
458
|
},
|
|
459
459
|
},
|
|
@@ -476,7 +476,7 @@ namespace styles {
|
|
|
476
476
|
height: '20',
|
|
477
477
|
justifyContent: 'center',
|
|
478
478
|
padding: '0',
|
|
479
|
-
transitionDuration: '
|
|
479
|
+
transitionDuration: '160',
|
|
480
480
|
transitionProperty: 'background-color, border-color',
|
|
481
481
|
transitionTimingFunction: 'snappy',
|
|
482
482
|
width: '20',
|
|
@@ -502,33 +502,33 @@ namespace styles {
|
|
|
502
502
|
outlineColor: 'grayAlpha.200',
|
|
503
503
|
outlineOffset: '-1px !custom',
|
|
504
504
|
outlineStyle: 'solid !custom',
|
|
505
|
-
outlineWidth: '
|
|
505
|
+
outlineWidth: '1',
|
|
506
506
|
padding: '16',
|
|
507
|
-
transitionDuration: '
|
|
508
|
-
transitionProperty: 'opacity, outline-color, outline-offset, outline-width,
|
|
507
|
+
transitionDuration: '160',
|
|
508
|
+
transitionProperty: 'opacity, outline-color, outline-offset, outline-width, scale',
|
|
509
509
|
transitionTimingFunction: 'snappy',
|
|
510
510
|
userSelect: 'none',
|
|
511
511
|
selectors: {
|
|
512
|
-
'&:active:not(:has([data-disabled]))': {
|
|
512
|
+
'&:active:not(:has([data-disabled]))': { scale: 'press' },
|
|
513
513
|
'&:hover:not(:disabled, :focus-visible, :has([data-checked], [data-disabled], :focus-visible))':
|
|
514
514
|
{
|
|
515
515
|
outlineColor: 'grayAlpha.400',
|
|
516
516
|
},
|
|
517
517
|
'&:has(:focus-visible)': {
|
|
518
518
|
outlineColor: 'blue.700',
|
|
519
|
-
outlineOffset: '
|
|
520
|
-
outlineWidth: '
|
|
519
|
+
outlineOffset: '2',
|
|
520
|
+
outlineWidth: '2',
|
|
521
521
|
},
|
|
522
522
|
'&:has([data-checked])': {
|
|
523
523
|
outlineColor: 'foreground',
|
|
524
|
-
outlineOffset: '-
|
|
525
|
-
outlineWidth: '
|
|
524
|
+
outlineOffset: '-2',
|
|
525
|
+
outlineWidth: '2',
|
|
526
526
|
},
|
|
527
527
|
'&:has([data-checked]):has(:focus-visible)': {
|
|
528
528
|
outlineColor: 'blue.700',
|
|
529
|
-
outlineOffset: '
|
|
529
|
+
outlineOffset: '2',
|
|
530
530
|
},
|
|
531
|
-
'&:has([data-disabled])': { cursor: 'default', opacity: '
|
|
531
|
+
'&:has([data-disabled])': { cursor: 'default', opacity: 'disabled' },
|
|
532
532
|
// Button tiles drop native button styles and take their own focus and disabled states.
|
|
533
533
|
'&:is(button)': {
|
|
534
534
|
border: 'none !custom',
|
|
@@ -538,15 +538,15 @@ namespace styles {
|
|
|
538
538
|
},
|
|
539
539
|
'&:is(button):focus-visible': {
|
|
540
540
|
outlineColor: 'blue.700',
|
|
541
|
-
outlineOffset: '
|
|
542
|
-
outlineWidth: '
|
|
541
|
+
outlineOffset: '2',
|
|
542
|
+
outlineWidth: '2',
|
|
543
543
|
},
|
|
544
|
-
'&:is(button):disabled': { cursor: 'default', opacity: '
|
|
545
|
-
'&:is(button):disabled:active': {
|
|
544
|
+
'&:is(button):disabled': { cursor: 'default', opacity: 'disabled' },
|
|
545
|
+
'&:is(button):disabled:active': { scale: 'none !custom' },
|
|
546
546
|
},
|
|
547
547
|
'@media (prefers-reduced-motion: reduce)': {
|
|
548
548
|
transitionProperty: 'opacity, outline-color, outline-width',
|
|
549
|
-
selectors: { '&:active:not(:has([data-disabled]))': {
|
|
549
|
+
selectors: { '&:active:not(:has([data-disabled]))': { scale: 'none !custom' } },
|
|
550
550
|
},
|
|
551
551
|
},
|
|
552
552
|
{ id: 'tds/web/choicebox/tile' },
|
|
@@ -463,7 +463,7 @@ namespace styles {
|
|
|
463
463
|
outline: 'none !custom',
|
|
464
464
|
paddingInlineEnd: '4',
|
|
465
465
|
paddingInlineStart: '12',
|
|
466
|
-
transitionDuration: '
|
|
466
|
+
transitionDuration: '120',
|
|
467
467
|
transitionProperty: 'background-color, color, opacity !custom',
|
|
468
468
|
transitionTimingFunction: 'snappy',
|
|
469
469
|
typography: 'copy.14',
|
|
@@ -472,7 +472,7 @@ namespace styles {
|
|
|
472
472
|
backgroundColor: 'foreground',
|
|
473
473
|
color: 'background.primary',
|
|
474
474
|
},
|
|
475
|
-
'&[data-disabled]': { opacity: '
|
|
475
|
+
'&[data-disabled]': { opacity: 'disabled' },
|
|
476
476
|
},
|
|
477
477
|
},
|
|
478
478
|
{ id: 'tds/web/combobox/chip' },
|
|
@@ -492,7 +492,7 @@ namespace styles {
|
|
|
492
492
|
justifyContent: 'center',
|
|
493
493
|
opacity: '0.72 !custom',
|
|
494
494
|
padding: '0',
|
|
495
|
-
transitionDuration: '
|
|
495
|
+
transitionDuration: '120',
|
|
496
496
|
transitionProperty: 'opacity, transform !custom',
|
|
497
497
|
transitionTimingFunction: 'snappy',
|
|
498
498
|
width: '24',
|
|
@@ -240,7 +240,7 @@ namespace styles {
|
|
|
240
240
|
height: '16',
|
|
241
241
|
width: '16',
|
|
242
242
|
selectors: {
|
|
243
|
-
'[data-size="medium"] > &': { height: '
|
|
243
|
+
'[data-size="medium"] > &': { height: '14', width: '14' },
|
|
244
244
|
'[data-size="small"] > &': { height: '12', width: '12' },
|
|
245
245
|
},
|
|
246
246
|
},
|
|
@@ -258,24 +258,27 @@ namespace styles {
|
|
|
258
258
|
opacity: '1 !custom',
|
|
259
259
|
padding: '8',
|
|
260
260
|
transformOrigin: 'var(--transform-origin) !custom',
|
|
261
|
-
transitionDuration: '
|
|
262
|
-
transitionProperty: 'opacity,
|
|
261
|
+
transitionDuration: '240',
|
|
262
|
+
transitionProperty: 'opacity, scale !custom',
|
|
263
263
|
transitionTimingFunction: 'spring',
|
|
264
264
|
selectors: {
|
|
265
265
|
'&:focus-visible': { outline: 'none !custom' },
|
|
266
266
|
'&[data-ending-style]': {
|
|
267
267
|
opacity: '0 !custom',
|
|
268
|
-
|
|
269
|
-
transitionDuration: '
|
|
268
|
+
scale: 'enter',
|
|
269
|
+
transitionDuration: '150',
|
|
270
270
|
transitionTimingFunction: 'snappy',
|
|
271
271
|
},
|
|
272
|
-
'&[data-starting-style]': {
|
|
272
|
+
'&[data-starting-style]': {
|
|
273
|
+
opacity: '0 !custom',
|
|
274
|
+
scale: 'enter',
|
|
275
|
+
},
|
|
273
276
|
},
|
|
274
277
|
'@media (prefers-reduced-motion: reduce)': {
|
|
275
|
-
transitionDuration: '
|
|
278
|
+
transitionDuration: '150',
|
|
276
279
|
transitionProperty: 'opacity !custom',
|
|
277
280
|
selectors: {
|
|
278
|
-
'&[data-ending-style], &[data-starting-style]': {
|
|
281
|
+
'&[data-ending-style], &[data-starting-style]': { scale: 'none !custom' },
|
|
279
282
|
},
|
|
280
283
|
},
|
|
281
284
|
},
|
|
@@ -283,10 +286,7 @@ namespace styles {
|
|
|
283
286
|
{ id: 'tds/web/date-picker/popup' },
|
|
284
287
|
)
|
|
285
288
|
|
|
286
|
-
export const positioner = style(
|
|
287
|
-
{ zIndex: '50 !custom' },
|
|
288
|
-
{ id: 'tds/web/date-picker/positioner' },
|
|
289
|
-
)
|
|
289
|
+
export const positioner = style({ zIndex: 'popover' }, { id: 'tds/web/date-picker/positioner' })
|
|
290
290
|
|
|
291
291
|
export const trigger = variants(
|
|
292
292
|
{
|
|
@@ -300,32 +300,32 @@ namespace styles {
|
|
|
300
300
|
minWidth: '224',
|
|
301
301
|
position: 'relative',
|
|
302
302
|
outlineColor: 'transparent !custom',
|
|
303
|
-
outlineOffset: '
|
|
303
|
+
outlineOffset: '2',
|
|
304
304
|
outlineStyle: 'solid !custom',
|
|
305
|
-
outlineWidth: '
|
|
305
|
+
outlineWidth: '2',
|
|
306
306
|
textAlign: 'start',
|
|
307
|
-
transitionDuration: '
|
|
307
|
+
transitionDuration: '160',
|
|
308
308
|
transitionProperty:
|
|
309
|
-
'background-color, border-color, color, opacity, outline-color,
|
|
309
|
+
'background-color, border-color, color, opacity, outline-color, scale !custom',
|
|
310
310
|
transitionTimingFunction: 'snappy',
|
|
311
311
|
selectors: {
|
|
312
312
|
'&:active:not(:disabled)': {
|
|
313
|
-
|
|
314
|
-
transitionDuration: '
|
|
313
|
+
scale: 'press',
|
|
314
|
+
transitionDuration: '100',
|
|
315
315
|
},
|
|
316
|
-
'&:disabled': { cursor: 'default', opacity: '
|
|
316
|
+
'&:disabled': { cursor: 'default', opacity: 'disabled' },
|
|
317
317
|
'&:focus-visible': { outlineColor: 'blue.700' },
|
|
318
318
|
'&::before': {
|
|
319
319
|
borderColor: 'transparent !custom',
|
|
320
320
|
borderRadius: 'inherit !custom',
|
|
321
321
|
borderStyle: 'solid !custom',
|
|
322
|
-
borderWidth: '
|
|
322
|
+
borderWidth: '2',
|
|
323
323
|
boxSizing: 'border-box',
|
|
324
324
|
content: '"" !custom',
|
|
325
325
|
inset: '0',
|
|
326
326
|
pointerEvents: 'none',
|
|
327
327
|
position: 'absolute',
|
|
328
|
-
transitionDuration: '
|
|
328
|
+
transitionDuration: '160',
|
|
329
329
|
transitionProperty: 'border-color !custom',
|
|
330
330
|
transitionTimingFunction: 'snappy',
|
|
331
331
|
},
|
|
@@ -341,7 +341,7 @@ namespace styles {
|
|
|
341
341
|
'@media (prefers-reduced-motion: reduce)': {
|
|
342
342
|
transitionProperty:
|
|
343
343
|
'background-color, border-color, color, opacity, outline-color !custom',
|
|
344
|
-
selectors: { '&:active:not(:disabled)': {
|
|
344
|
+
selectors: { '&:active:not(:disabled)': { scale: 'none !custom' } },
|
|
345
345
|
},
|
|
346
346
|
},
|
|
347
347
|
defaultVariants: { size: 'medium', variant: 'filled' },
|
|
@@ -364,7 +364,7 @@ namespace styles {
|
|
|
364
364
|
},
|
|
365
365
|
small: {
|
|
366
366
|
borderRadius: '8',
|
|
367
|
-
columnGap: '
|
|
367
|
+
columnGap: '6',
|
|
368
368
|
height: '32',
|
|
369
369
|
paddingInline: '12',
|
|
370
370
|
typography: 'copy.13',
|
|
@@ -380,7 +380,7 @@ namespace styles {
|
|
|
380
380
|
backgroundColor: 'background.surface',
|
|
381
381
|
borderColor: 'grayAlpha.200',
|
|
382
382
|
borderStyle: 'solid !custom',
|
|
383
|
-
borderWidth: '
|
|
383
|
+
borderWidth: '1',
|
|
384
384
|
selectors: { '&:hover:not(:disabled)': { borderColor: 'grayAlpha.400' } },
|
|
385
385
|
},
|
|
386
386
|
},
|
|
@@ -134,13 +134,13 @@ export namespace styles {
|
|
|
134
134
|
{
|
|
135
135
|
backgroundColor: 'black',
|
|
136
136
|
inset: '0',
|
|
137
|
-
opacity: '
|
|
137
|
+
opacity: 'disabled',
|
|
138
138
|
position: 'fixed',
|
|
139
|
-
transitionDuration: '
|
|
139
|
+
transitionDuration: '240',
|
|
140
140
|
transitionProperty: 'opacity',
|
|
141
141
|
transitionTimingFunction: 'snappy',
|
|
142
142
|
selectors: {
|
|
143
|
-
'&[data-ending-style]': { opacity: '0 !custom', transitionDuration: '
|
|
143
|
+
'&[data-ending-style]': { opacity: '0 !custom', transitionDuration: '160' },
|
|
144
144
|
'&[data-starting-style]': { opacity: '0 !custom' },
|
|
145
145
|
},
|
|
146
146
|
},
|
|
@@ -151,8 +151,8 @@ export namespace styles {
|
|
|
151
151
|
export const close = style(
|
|
152
152
|
{
|
|
153
153
|
height: '36',
|
|
154
|
-
insetBlockStart: '
|
|
155
|
-
insetInlineEnd: '
|
|
154
|
+
insetBlockStart: '22',
|
|
155
|
+
insetInlineEnd: '22',
|
|
156
156
|
position: 'absolute',
|
|
157
157
|
},
|
|
158
158
|
{ id: 'tds/web/dialog/close' },
|
|
@@ -169,42 +169,51 @@ export namespace styles {
|
|
|
169
169
|
|
|
170
170
|
export const popup = style(
|
|
171
171
|
{
|
|
172
|
-
backgroundColor: '
|
|
172
|
+
backgroundColor: 'background.raised',
|
|
173
173
|
borderRadius: '16',
|
|
174
|
-
boxShadow: '
|
|
174
|
+
boxShadow: 'modal',
|
|
175
175
|
boxSizing: 'border-box',
|
|
176
176
|
color: 'foreground',
|
|
177
177
|
maxWidth: '448',
|
|
178
178
|
outline: 'none !custom',
|
|
179
179
|
padding: '24',
|
|
180
180
|
position: 'relative',
|
|
181
|
-
transitionDuration: '
|
|
182
|
-
transitionProperty: 'opacity, transform',
|
|
181
|
+
transitionDuration: '280',
|
|
182
|
+
transitionProperty: 'opacity, scale, transform',
|
|
183
183
|
transitionTimingFunction: 'spring',
|
|
184
184
|
typography: 'copy.14',
|
|
185
185
|
width: '100% !custom',
|
|
186
186
|
selectors: {
|
|
187
187
|
'&[data-ending-style]': {
|
|
188
188
|
opacity: '0 !custom',
|
|
189
|
-
|
|
190
|
-
transitionDuration: '
|
|
189
|
+
scale: 'enter',
|
|
190
|
+
transitionDuration: '180',
|
|
191
|
+
},
|
|
192
|
+
'&[data-starting-style]': {
|
|
193
|
+
opacity: '0 !custom',
|
|
194
|
+
scale: 'enter',
|
|
191
195
|
},
|
|
192
|
-
'&[data-starting-style]': { opacity: '0 !custom', transform: 'scale(0.96) !custom' },
|
|
193
196
|
},
|
|
194
197
|
'@media (max-width: 40rem)': {
|
|
195
|
-
borderBottomLeftRadius: '0
|
|
196
|
-
borderBottomRightRadius: '0
|
|
198
|
+
borderBottomLeftRadius: '0',
|
|
199
|
+
borderBottomRightRadius: '0',
|
|
197
200
|
maxWidth: 'none !custom',
|
|
198
201
|
paddingBottom: 'calc(24px + env(safe-area-inset-bottom, 0px)) !custom',
|
|
199
202
|
selectors: {
|
|
200
|
-
'&[data-ending-style]': { transform: 'translateY(100%) !custom' },
|
|
201
|
-
'&[data-starting-style]': {
|
|
203
|
+
'&[data-ending-style]': { scale: 'none !custom', transform: 'translateY(100%) !custom' },
|
|
204
|
+
'&[data-starting-style]': {
|
|
205
|
+
scale: 'none !custom',
|
|
206
|
+
transform: 'translateY(100%) !custom',
|
|
207
|
+
},
|
|
202
208
|
},
|
|
203
209
|
},
|
|
204
210
|
'@media (prefers-reduced-motion: reduce)': {
|
|
205
211
|
transitionProperty: 'opacity',
|
|
206
212
|
selectors: {
|
|
207
|
-
'&[data-ending-style], &[data-starting-style]': {
|
|
213
|
+
'&[data-ending-style], &[data-starting-style]': {
|
|
214
|
+
scale: 'none !custom',
|
|
215
|
+
transform: 'none !custom',
|
|
216
|
+
},
|
|
208
217
|
},
|
|
209
218
|
},
|
|
210
219
|
},
|
|
@@ -153,7 +153,7 @@ namespace styles {
|
|
|
153
153
|
inset: '0',
|
|
154
154
|
opacity: 'calc(0.4 * (1 - var(--drawer-swipe-progress, 0))) !custom',
|
|
155
155
|
position: 'fixed',
|
|
156
|
-
transitionDuration: '
|
|
156
|
+
transitionDuration: '320',
|
|
157
157
|
transitionProperty: 'opacity',
|
|
158
158
|
transitionTimingFunction: 'spring',
|
|
159
159
|
selectors: {
|
|
@@ -163,7 +163,7 @@ namespace styles {
|
|
|
163
163
|
transitionDuration: 'calc(var(--drawer-swipe-strength, 1) * 240ms) !custom',
|
|
164
164
|
},
|
|
165
165
|
'&[data-starting-style]': { opacity: '0 !custom' },
|
|
166
|
-
'&[data-swiping]': { transitionDuration: '
|
|
166
|
+
'&[data-swiping]': { transitionDuration: '0' },
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
{ id: 'tds/web/drawer/backdrop' },
|
|
@@ -176,8 +176,8 @@ namespace styles {
|
|
|
176
176
|
|
|
177
177
|
export const popup = style(
|
|
178
178
|
{
|
|
179
|
-
backgroundColor: '
|
|
180
|
-
boxShadow: '
|
|
179
|
+
backgroundColor: 'background.raised',
|
|
180
|
+
boxShadow: 'modal',
|
|
181
181
|
boxSizing: 'border-box',
|
|
182
182
|
color: 'foreground',
|
|
183
183
|
maxHeight: '100% !custom',
|
|
@@ -186,7 +186,7 @@ namespace styles {
|
|
|
186
186
|
overscrollBehavior: 'contain',
|
|
187
187
|
padding: '24',
|
|
188
188
|
position: 'relative',
|
|
189
|
-
transitionDuration: '
|
|
189
|
+
transitionDuration: '320',
|
|
190
190
|
transitionProperty: 'opacity, transform',
|
|
191
191
|
transitionTimingFunction: 'spring',
|
|
192
192
|
typography: 'copy.14',
|
|
@@ -237,7 +237,7 @@ namespace styles {
|
|
|
237
237
|
'&[data-swipe-direction="up"][data-ending-style], &[data-swipe-direction="up"][data-starting-style]':
|
|
238
238
|
{ transform: 'translateY(-100%) !custom' },
|
|
239
239
|
// The popup follows the pointer without lag while swiping.
|
|
240
|
-
'&[data-swiping]': { transitionDuration: '
|
|
240
|
+
'&[data-swiping]': { transitionDuration: '0', userSelect: 'none' },
|
|
241
241
|
},
|
|
242
242
|
'@media (prefers-reduced-motion: reduce)': {
|
|
243
243
|
transitionProperty: 'opacity',
|