@1money/component-ui 0.0.1 → 0.0.3
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/es/components/Accordion/style/index.d.ts +1 -1
- package/es/components/Accordion/style/index.js +1 -1
- package/es/components/Alert/style/css.js +1 -1
- package/es/components/Alert/style/index.d.ts +1 -1
- package/es/components/Alert/style/index.js +2 -2
- package/es/components/Button/style/index.d.ts +1 -1
- package/es/components/Button/style/index.js +1 -1
- package/es/components/Calendar/style/index.d.ts +1 -1
- package/es/components/Calendar/style/index.js +1 -1
- package/es/components/Carousel/style/index.d.ts +1 -1
- package/es/components/Carousel/style/index.js +1 -1
- package/es/components/Checkbox/style/index.d.ts +1 -1
- package/es/components/Checkbox/style/index.js +1 -1
- package/es/components/CoachMark/style/css.js +3 -3
- package/es/components/CoachMark/style/index.d.ts +1 -1
- package/es/components/CoachMark/style/index.js +4 -4
- package/es/components/Copy/style/index.d.ts +1 -1
- package/es/components/Copy/style/index.js +1 -1
- package/es/components/Divider/style/index.d.ts +1 -1
- package/es/components/Divider/style/index.js +1 -1
- package/es/components/Drawer/style/index.d.ts +1 -1
- package/es/components/Drawer/style/index.js +1 -1
- package/es/components/Dropdown/style/css.js +1 -1
- package/es/components/Dropdown/style/index.d.ts +1 -1
- package/es/components/Dropdown/style/index.js +2 -2
- package/es/components/Empty/style/css.js +1 -1
- package/es/components/Empty/style/index.d.ts +1 -1
- package/es/components/Empty/style/index.js +2 -2
- package/es/components/Flex/style/index.d.ts +1 -1
- package/es/components/Flex/style/index.js +1 -1
- package/es/components/Form/style/index.d.ts +1 -1
- package/es/components/Form/style/index.js +1 -1
- package/es/components/Grid/style/index.d.ts +1 -1
- package/es/components/Grid/style/index.js +1 -1
- package/es/components/Icons/style/index.d.ts +1 -1
- package/es/components/Icons/style/index.js +1 -1
- package/es/components/Input/Amount/style/index.d.ts +1 -1
- package/es/components/Input/Amount/style/index.js +1 -1
- package/es/components/Input/style/index.d.ts +6 -6
- package/es/components/Input/style/index.js +6 -6
- package/es/components/Modal/style/index.d.ts +1 -1
- package/es/components/Modal/style/index.js +1 -1
- package/es/components/Navigation/style/index.d.ts +2 -2
- package/es/components/Navigation/style/index.js +2 -2
- package/es/components/Notification/style/index.d.ts +1 -1
- package/es/components/Notification/style/index.js +1 -1
- package/es/components/Pagination/style/index.d.ts +1 -1
- package/es/components/Pagination/style/index.js +1 -1
- package/es/components/Popconfirm/style/css.js +3 -3
- package/es/components/Popconfirm/style/index.d.ts +1 -1
- package/es/components/Popconfirm/style/index.js +4 -4
- package/es/components/ProForm/style/index.d.ts +1 -1
- package/es/components/ProForm/style/index.js +1 -1
- package/es/components/Progress/style/index.d.ts +1 -1
- package/es/components/Progress/style/index.js +1 -1
- package/es/components/Radio/style/css.js +1 -1
- package/es/components/Radio/style/index.d.ts +1 -1
- package/es/components/Radio/style/index.js +2 -2
- package/es/components/Segment/style/index.d.ts +1 -1
- package/es/components/Segment/style/index.js +1 -1
- package/es/components/Select/style/css.js +2 -2
- package/es/components/Select/style/index.d.ts +1 -1
- package/es/components/Select/style/index.js +3 -3
- package/es/components/Skeleton/style/index.d.ts +1 -1
- package/es/components/Skeleton/style/index.js +1 -1
- package/es/components/Slider/style/index.d.ts +1 -1
- package/es/components/Slider/style/index.js +1 -1
- package/es/components/Space/style/index.d.ts +1 -1
- package/es/components/Space/style/index.js +1 -1
- package/es/components/Spinner/style/index.d.ts +1 -1
- package/es/components/Spinner/style/index.js +1 -1
- package/es/components/Step/style/index.d.ts +1 -1
- package/es/components/Step/style/index.js +1 -1
- package/es/components/Switch/style/css.js +1 -1
- package/es/components/Switch/style/index.d.ts +1 -1
- package/es/components/Switch/style/index.js +2 -2
- package/es/components/Table/style/css.js +8 -8
- package/es/components/Table/style/index.d.ts +1 -1
- package/es/components/Table/style/index.js +9 -9
- package/es/components/Tabs/style/index.d.ts +1 -1
- package/es/components/Tabs/style/index.js +1 -1
- package/es/components/Tag/style/index.d.ts +1 -1
- package/es/components/Tag/style/index.js +1 -1
- package/es/components/Tooltip/style/index.d.ts +1 -1
- package/es/components/Tooltip/style/index.js +1 -1
- package/es/components/Trigger/style/index.d.ts +1 -1
- package/es/components/Trigger/style/index.js +1 -1
- package/es/components/Typography/style/css.js +2 -2
- package/es/components/Typography/style/index.d.ts +1 -1
- package/es/components/Typography/style/index.js +3 -3
- package/es/components/Upload/style/index.d.ts +2 -2
- package/es/components/Upload/style/index.js +2 -2
- package/es/components/VirtualList/style/index.d.ts +1 -1
- package/es/components/VirtualList/style/index.js +1 -1
- package/es/index.css +1 -1
- package/lib/components/Accordion/style/index.d.ts +1 -1
- package/lib/components/Accordion/style/index.js +1 -1
- package/lib/components/Alert/style/css.js +1 -1
- package/lib/components/Alert/style/index.d.ts +1 -1
- package/lib/components/Alert/style/index.js +2 -2
- package/lib/components/Button/style/index.d.ts +1 -1
- package/lib/components/Button/style/index.js +1 -1
- package/lib/components/Calendar/style/index.d.ts +1 -1
- package/lib/components/Calendar/style/index.js +1 -1
- package/lib/components/Carousel/style/index.d.ts +1 -1
- package/lib/components/Carousel/style/index.js +1 -1
- package/lib/components/Checkbox/style/index.d.ts +1 -1
- package/lib/components/Checkbox/style/index.js +1 -1
- package/lib/components/CoachMark/style/css.js +3 -3
- package/lib/components/CoachMark/style/index.d.ts +1 -1
- package/lib/components/CoachMark/style/index.js +4 -4
- package/lib/components/Copy/style/index.d.ts +1 -1
- package/lib/components/Copy/style/index.js +1 -1
- package/lib/components/Divider/style/index.d.ts +1 -1
- package/lib/components/Divider/style/index.js +1 -1
- package/lib/components/Drawer/style/index.d.ts +1 -1
- package/lib/components/Drawer/style/index.js +1 -1
- package/lib/components/Dropdown/style/css.js +1 -1
- package/lib/components/Dropdown/style/index.d.ts +1 -1
- package/lib/components/Dropdown/style/index.js +2 -2
- package/lib/components/Empty/style/css.js +1 -1
- package/lib/components/Empty/style/index.d.ts +1 -1
- package/lib/components/Empty/style/index.js +2 -2
- package/lib/components/Flex/style/index.d.ts +1 -1
- package/lib/components/Flex/style/index.js +1 -1
- package/lib/components/Form/style/index.d.ts +1 -1
- package/lib/components/Form/style/index.js +1 -1
- package/lib/components/Grid/style/index.d.ts +1 -1
- package/lib/components/Grid/style/index.js +1 -1
- package/lib/components/Icons/style/index.d.ts +1 -1
- package/lib/components/Icons/style/index.js +1 -1
- package/lib/components/Input/Amount/style/index.d.ts +1 -1
- package/lib/components/Input/Amount/style/index.js +1 -1
- package/lib/components/Input/style/index.d.ts +6 -6
- package/lib/components/Input/style/index.js +6 -6
- package/lib/components/Modal/style/index.d.ts +1 -1
- package/lib/components/Modal/style/index.js +1 -1
- package/lib/components/Navigation/style/index.d.ts +2 -2
- package/lib/components/Navigation/style/index.js +2 -2
- package/lib/components/Notification/style/index.d.ts +1 -1
- package/lib/components/Notification/style/index.js +1 -1
- package/lib/components/Pagination/style/index.d.ts +1 -1
- package/lib/components/Pagination/style/index.js +1 -1
- package/lib/components/Popconfirm/style/css.js +3 -3
- package/lib/components/Popconfirm/style/index.d.ts +1 -1
- package/lib/components/Popconfirm/style/index.js +4 -4
- package/lib/components/ProForm/style/index.d.ts +1 -1
- package/lib/components/ProForm/style/index.js +1 -1
- package/lib/components/Progress/style/index.d.ts +1 -1
- package/lib/components/Progress/style/index.js +1 -1
- package/lib/components/Radio/style/css.js +1 -1
- package/lib/components/Radio/style/index.d.ts +1 -1
- package/lib/components/Radio/style/index.js +2 -2
- package/lib/components/Segment/style/index.d.ts +1 -1
- package/lib/components/Segment/style/index.js +1 -1
- package/lib/components/Select/style/css.js +2 -2
- package/lib/components/Select/style/index.d.ts +1 -1
- package/lib/components/Select/style/index.js +3 -3
- package/lib/components/Skeleton/style/index.d.ts +1 -1
- package/lib/components/Skeleton/style/index.js +1 -1
- package/lib/components/Slider/style/index.d.ts +1 -1
- package/lib/components/Slider/style/index.js +1 -1
- package/lib/components/Space/style/index.d.ts +1 -1
- package/lib/components/Space/style/index.js +1 -1
- package/lib/components/Spinner/style/index.d.ts +1 -1
- package/lib/components/Spinner/style/index.js +1 -1
- package/lib/components/Step/style/index.d.ts +1 -1
- package/lib/components/Step/style/index.js +1 -1
- package/lib/components/Switch/style/css.js +1 -1
- package/lib/components/Switch/style/index.d.ts +1 -1
- package/lib/components/Switch/style/index.js +2 -2
- package/lib/components/Table/style/css.js +8 -8
- package/lib/components/Table/style/index.d.ts +1 -1
- package/lib/components/Table/style/index.js +9 -9
- package/lib/components/Tabs/style/index.d.ts +1 -1
- package/lib/components/Tabs/style/index.js +1 -1
- package/lib/components/Tag/style/index.d.ts +1 -1
- package/lib/components/Tag/style/index.js +1 -1
- package/lib/components/Tooltip/style/index.d.ts +1 -1
- package/lib/components/Tooltip/style/index.js +1 -1
- package/lib/components/Trigger/style/index.d.ts +1 -1
- package/lib/components/Trigger/style/index.js +1 -1
- package/lib/components/Typography/style/css.js +2 -2
- package/lib/components/Typography/style/index.d.ts +1 -1
- package/lib/components/Typography/style/index.js +3 -3
- package/lib/components/Upload/style/index.d.ts +2 -2
- package/lib/components/Upload/style/index.js +2 -2
- package/lib/components/VirtualList/style/index.d.ts +1 -1
- package/lib/components/VirtualList/style/index.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/es/components/Accordion/style/Accordion.scss +0 -127
- package/es/components/Alert/style/Alert.scss +0 -89
- package/es/components/Button/style/Button.scss +0 -190
- package/es/components/Calendar/style/Calendar.scss +0 -377
- package/es/components/Carousel/style/Carousel.scss +0 -63
- package/es/components/Checkbox/style/Checkbox.scss +0 -235
- package/es/components/CoachMark/style/CoachMark.scss +0 -176
- package/es/components/Copy/style/Copy.scss +0 -35
- package/es/components/Divider/style/Divider.scss +0 -149
- package/es/components/Drawer/style/Drawer.scss +0 -163
- package/es/components/Dropdown/style/Dropdown.scss +0 -2
- package/es/components/Empty/style/Empty.scss +0 -53
- package/es/components/Flex/style/Flex.scss +0 -70
- package/es/components/Form/style/Form.scss +0 -57
- package/es/components/Grid/style/Grid.scss +0 -184
- package/es/components/Icons/style/Icons.scss +0 -85
- package/es/components/Input/Amount/style/Amount.scss +0 -89
- package/es/components/Input/FieldShell/FieldShell.scss +0 -62
- package/es/components/Input/Input/Input.scss +0 -131
- package/es/components/Input/OTP/OTP.scss +0 -75
- package/es/components/Input/TextArea/TextArea.scss +0 -87
- package/es/components/Input/Trade/Trade.scss +0 -184
- package/es/components/Modal/style/Modal.scss +0 -254
- package/es/components/Navigation/style/Nav.scss +0 -174
- package/es/components/Navigation/style/Navigation.scss +0 -443
- package/es/components/Notification/style/Notification.scss +0 -200
- package/es/components/Pagination/style/Pagination.scss +0 -95
- package/es/components/Popconfirm/style/Popconfirm.scss +0 -264
- package/es/components/ProForm/style/ProForm.scss +0 -118
- package/es/components/Progress/style/Progress.scss +0 -120
- package/es/components/Radio/style/Radio.scss +0 -431
- package/es/components/Segment/style/Segment.scss +0 -80
- package/es/components/Select/style/Select.scss +0 -480
- package/es/components/Skeleton/style/Skeleton.scss +0 -47
- package/es/components/Slider/style/Slider.scss +0 -182
- package/es/components/Space/style/Space.scss +0 -40
- package/es/components/Spinner/style/Spinner.scss +0 -90
- package/es/components/Step/style/Step.scss +0 -91
- package/es/components/Switch/style/Switch.scss +0 -126
- package/es/components/Table/style/Table.scss +0 -376
- package/es/components/Tabs/style/Tabs.scss +0 -100
- package/es/components/Tag/style/Tag.scss +0 -103
- package/es/components/Tooltip/style/Tooltip.scss +0 -95
- package/es/components/Trigger/style/Trigger.scss +0 -18
- package/es/components/Typography/style/Typography.scss +0 -132
- package/es/components/Upload/style/Upload.scss +0 -44
- package/es/components/Upload/style/UploadFileBar.scss +0 -94
- package/es/components/VirtualList/style/VirtualList.scss +0 -5
- package/es/styles/_api.scss +0 -5
- package/es/styles/_settings.scss +0 -5
- package/es/styles/index.scss +0 -2
- package/es/styles/public/_index.scss +0 -2
- package/es/styles/public/_system.scss +0 -1
- package/es/styles/public/_theme.scss +0 -3
- package/es/styles/recipes/_index.scss +0 -1
- package/es/styles/recipes/_variants.scss +0 -110
- package/es/styles/system/_index.scss +0 -4
- package/es/styles/system/_props.scss +0 -95
- package/es/styles/system/_public.scss +0 -5
- package/es/styles/system/_sx.scss +0 -81
- package/es/styles/theme/_breakpoints.scss +0 -95
- package/es/styles/theme/_functions.scss +0 -271
- package/es/styles/theme/_index.scss +0 -6
- package/es/styles/theme/_mixins.scss +0 -37
- package/es/styles/theme/_scales.scss +0 -29
- package/es/styles/theme/_values.scss +0 -68
- package/es/styles/tokens/_index.scss +0 -11
- package/es/styles/tokens/breakpoint/_index.scss +0 -2
- package/es/styles/tokens/breakpoint/_primitives.scss +0 -8
- package/es/styles/tokens/color/_index.scss +0 -3
- package/es/styles/tokens/color/_primitives.scss +0 -42
- package/es/styles/tokens/color/_semantic-color.scss +0 -172
- package/es/styles/tokens/opacity/_functions.scss +0 -13
- package/es/styles/tokens/opacity/_index.scss +0 -3
- package/es/styles/tokens/opacity/_primitives.scss +0 -12
- package/es/styles/tokens/radius/_index.scss +0 -2
- package/es/styles/tokens/radius/_primitives.scss +0 -11
- package/es/styles/tokens/shadow/_index.scss +0 -2
- package/es/styles/tokens/shadow/_primitives.scss +0 -7
- package/es/styles/tokens/sizing/_functions.scss +0 -17
- package/es/styles/tokens/sizing/_index.scss +0 -4
- package/es/styles/tokens/sizing/_primitives.scss +0 -12
- package/es/styles/tokens/sizing/_semantic-sizing.scss +0 -11
- package/es/styles/tokens/spacing/_functions.scss +0 -51
- package/es/styles/tokens/spacing/_index.scss +0 -4
- package/es/styles/tokens/spacing/_primitives.scss +0 -22
- package/es/styles/tokens/spacing/_semantic-spacing.scss +0 -22
- package/es/styles/tokens/typography/_functions.scss +0 -31
- package/es/styles/tokens/typography/_index.scss +0 -4
- package/es/styles/tokens/typography/_primitives.scss +0 -27
- package/es/styles/tokens/typography/_semantic-typography.scss +0 -216
- package/es/styles/utilities/_generator.scss +0 -55
- package/es/styles/utilities/_index.scss +0 -14
- package/lib/components/Accordion/style/Accordion.scss +0 -127
- package/lib/components/Alert/style/Alert.scss +0 -89
- package/lib/components/Button/style/Button.scss +0 -190
- package/lib/components/Calendar/style/Calendar.scss +0 -377
- package/lib/components/Carousel/style/Carousel.scss +0 -63
- package/lib/components/Checkbox/style/Checkbox.scss +0 -235
- package/lib/components/CoachMark/style/CoachMark.scss +0 -176
- package/lib/components/Copy/style/Copy.scss +0 -35
- package/lib/components/Divider/style/Divider.scss +0 -149
- package/lib/components/Drawer/style/Drawer.scss +0 -163
- package/lib/components/Dropdown/style/Dropdown.scss +0 -2
- package/lib/components/Empty/style/Empty.scss +0 -53
- package/lib/components/Flex/style/Flex.scss +0 -70
- package/lib/components/Form/style/Form.scss +0 -57
- package/lib/components/Grid/style/Grid.scss +0 -184
- package/lib/components/Icons/style/Icons.scss +0 -85
- package/lib/components/Input/Amount/style/Amount.scss +0 -89
- package/lib/components/Input/FieldShell/FieldShell.scss +0 -62
- package/lib/components/Input/Input/Input.scss +0 -131
- package/lib/components/Input/OTP/OTP.scss +0 -75
- package/lib/components/Input/TextArea/TextArea.scss +0 -87
- package/lib/components/Input/Trade/Trade.scss +0 -184
- package/lib/components/Modal/style/Modal.scss +0 -254
- package/lib/components/Navigation/style/Nav.scss +0 -174
- package/lib/components/Navigation/style/Navigation.scss +0 -443
- package/lib/components/Notification/style/Notification.scss +0 -200
- package/lib/components/Pagination/style/Pagination.scss +0 -95
- package/lib/components/Popconfirm/style/Popconfirm.scss +0 -264
- package/lib/components/ProForm/style/ProForm.scss +0 -118
- package/lib/components/Progress/style/Progress.scss +0 -120
- package/lib/components/Radio/style/Radio.scss +0 -431
- package/lib/components/Segment/style/Segment.scss +0 -80
- package/lib/components/Select/style/Select.scss +0 -480
- package/lib/components/Skeleton/style/Skeleton.scss +0 -47
- package/lib/components/Slider/style/Slider.scss +0 -182
- package/lib/components/Space/style/Space.scss +0 -40
- package/lib/components/Spinner/style/Spinner.scss +0 -90
- package/lib/components/Step/style/Step.scss +0 -91
- package/lib/components/Switch/style/Switch.scss +0 -126
- package/lib/components/Table/style/Table.scss +0 -376
- package/lib/components/Tabs/style/Tabs.scss +0 -100
- package/lib/components/Tag/style/Tag.scss +0 -103
- package/lib/components/Tooltip/style/Tooltip.scss +0 -95
- package/lib/components/Trigger/style/Trigger.scss +0 -18
- package/lib/components/Typography/style/Typography.scss +0 -132
- package/lib/components/Upload/style/Upload.scss +0 -44
- package/lib/components/Upload/style/UploadFileBar.scss +0 -94
- package/lib/components/VirtualList/style/VirtualList.scss +0 -5
- package/lib/styles/_api.scss +0 -5
- package/lib/styles/_settings.scss +0 -5
- package/lib/styles/index.scss +0 -2
- package/lib/styles/public/_index.scss +0 -2
- package/lib/styles/public/_system.scss +0 -1
- package/lib/styles/public/_theme.scss +0 -3
- package/lib/styles/recipes/_index.scss +0 -1
- package/lib/styles/recipes/_variants.scss +0 -110
- package/lib/styles/system/_index.scss +0 -4
- package/lib/styles/system/_props.scss +0 -95
- package/lib/styles/system/_public.scss +0 -5
- package/lib/styles/system/_sx.scss +0 -81
- package/lib/styles/theme/_breakpoints.scss +0 -95
- package/lib/styles/theme/_functions.scss +0 -271
- package/lib/styles/theme/_index.scss +0 -6
- package/lib/styles/theme/_mixins.scss +0 -37
- package/lib/styles/theme/_scales.scss +0 -29
- package/lib/styles/theme/_values.scss +0 -68
- package/lib/styles/tokens/_index.scss +0 -11
- package/lib/styles/tokens/breakpoint/_index.scss +0 -2
- package/lib/styles/tokens/breakpoint/_primitives.scss +0 -8
- package/lib/styles/tokens/color/_index.scss +0 -3
- package/lib/styles/tokens/color/_primitives.scss +0 -42
- package/lib/styles/tokens/color/_semantic-color.scss +0 -172
- package/lib/styles/tokens/opacity/_functions.scss +0 -13
- package/lib/styles/tokens/opacity/_index.scss +0 -3
- package/lib/styles/tokens/opacity/_primitives.scss +0 -12
- package/lib/styles/tokens/radius/_index.scss +0 -2
- package/lib/styles/tokens/radius/_primitives.scss +0 -11
- package/lib/styles/tokens/shadow/_index.scss +0 -2
- package/lib/styles/tokens/shadow/_primitives.scss +0 -7
- package/lib/styles/tokens/sizing/_functions.scss +0 -17
- package/lib/styles/tokens/sizing/_index.scss +0 -4
- package/lib/styles/tokens/sizing/_primitives.scss +0 -12
- package/lib/styles/tokens/sizing/_semantic-sizing.scss +0 -11
- package/lib/styles/tokens/spacing/_functions.scss +0 -51
- package/lib/styles/tokens/spacing/_index.scss +0 -4
- package/lib/styles/tokens/spacing/_primitives.scss +0 -22
- package/lib/styles/tokens/spacing/_semantic-spacing.scss +0 -22
- package/lib/styles/tokens/typography/_functions.scss +0 -31
- package/lib/styles/tokens/typography/_index.scss +0 -4
- package/lib/styles/tokens/typography/_primitives.scss +0 -27
- package/lib/styles/tokens/typography/_semantic-typography.scss +0 -216
- package/lib/styles/utilities/_generator.scss +0 -55
- package/lib/styles/utilities/_index.scss +0 -14
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
// Typography scale — Sass maps encoding the complete Figma typography spec.
|
|
2
|
-
// Key names (xl/lg/md/sm/xs) align with component size props.
|
|
3
|
-
// Line-height values preserve the original Figma percentages.
|
|
4
|
-
|
|
5
|
-
@use 'sass:map';
|
|
6
|
-
@use './primitives' as *;
|
|
7
|
-
|
|
8
|
-
// ── Display ──
|
|
9
|
-
// Base: Aeonik / 500 / 108% / #131313
|
|
10
|
-
$om-typography-display: (
|
|
11
|
-
'xl': (
|
|
12
|
-
font-family: $om-font-display,
|
|
13
|
-
font-weight: $om-font-weight-medium,
|
|
14
|
-
font-size: 76px,
|
|
15
|
-
line-height: $om-line-height-tight * 100%,
|
|
16
|
-
letter-spacing: $om-tracking-tight,
|
|
17
|
-
),
|
|
18
|
-
'lg': (
|
|
19
|
-
font-family: $om-font-display,
|
|
20
|
-
font-weight: $om-font-weight-medium,
|
|
21
|
-
font-size: 64px,
|
|
22
|
-
line-height: $om-line-height-tight * 100%,
|
|
23
|
-
letter-spacing: $om-tracking-tight,
|
|
24
|
-
),
|
|
25
|
-
'md': (
|
|
26
|
-
font-family: $om-font-display,
|
|
27
|
-
font-weight: $om-font-weight-medium,
|
|
28
|
-
font-size: 52px,
|
|
29
|
-
line-height: $om-line-height-tight * 100%,
|
|
30
|
-
letter-spacing: $om-tracking-none,
|
|
31
|
-
),
|
|
32
|
-
'sm': (
|
|
33
|
-
font-family: $om-font-display,
|
|
34
|
-
font-weight: $om-font-weight-medium,
|
|
35
|
-
font-size: 46px,
|
|
36
|
-
line-height: $om-line-height-tight * 100%,
|
|
37
|
-
letter-spacing: $om-tracking-none,
|
|
38
|
-
),
|
|
39
|
-
'xs': (
|
|
40
|
-
font-family: $om-font-display,
|
|
41
|
-
font-weight: $om-font-weight-medium,
|
|
42
|
-
font-size: 36px,
|
|
43
|
-
line-height: $om-line-height-tight * 100%,
|
|
44
|
-
letter-spacing: $om-tracking-none,
|
|
45
|
-
),
|
|
46
|
-
) !default;
|
|
47
|
-
|
|
48
|
-
// ── Headline ──
|
|
49
|
-
// Base: Aeonik / 500 / 108% / #131313
|
|
50
|
-
$om-typography-headline: (
|
|
51
|
-
'lg': (
|
|
52
|
-
font-family: $om-font-display,
|
|
53
|
-
font-weight: $om-font-weight-medium,
|
|
54
|
-
font-size: 32px,
|
|
55
|
-
line-height: $om-line-height-tight * 100%,
|
|
56
|
-
letter-spacing: $om-tracking-none,
|
|
57
|
-
),
|
|
58
|
-
'md': (
|
|
59
|
-
font-family: $om-font-display,
|
|
60
|
-
font-weight: $om-font-weight-medium,
|
|
61
|
-
font-size: 28px,
|
|
62
|
-
line-height: $om-line-height-tight * 100%,
|
|
63
|
-
letter-spacing: $om-tracking-none,
|
|
64
|
-
),
|
|
65
|
-
'sm': (
|
|
66
|
-
font-family: $om-font-display,
|
|
67
|
-
font-weight: $om-font-weight-medium,
|
|
68
|
-
font-size: 24px,
|
|
69
|
-
line-height: $om-line-height-tight * 100%,
|
|
70
|
-
letter-spacing: $om-tracking-none,
|
|
71
|
-
),
|
|
72
|
-
'xs': (
|
|
73
|
-
font-family: $om-font-display,
|
|
74
|
-
font-weight: $om-font-weight-medium,
|
|
75
|
-
font-size: 18px,
|
|
76
|
-
line-height: $om-line-height-tight * 100%,
|
|
77
|
-
letter-spacing: $om-tracking-none,
|
|
78
|
-
),
|
|
79
|
-
) !default;
|
|
80
|
-
|
|
81
|
-
// ── Title ──
|
|
82
|
-
// Base: Inter / 500 / 108% / #131313 — strong = 700
|
|
83
|
-
$om-typography-title: (
|
|
84
|
-
'lg': (
|
|
85
|
-
font-family: $om-font-body,
|
|
86
|
-
font-weight: $om-font-weight-medium,
|
|
87
|
-
font-size: 18px,
|
|
88
|
-
line-height: $om-line-height-tight * 100%,
|
|
89
|
-
letter-spacing: $om-tracking-none,
|
|
90
|
-
strong: (font-weight: $om-font-weight-bold),
|
|
91
|
-
),
|
|
92
|
-
'md': (
|
|
93
|
-
font-family: $om-font-body,
|
|
94
|
-
font-weight: $om-font-weight-medium,
|
|
95
|
-
font-size: 16px,
|
|
96
|
-
line-height: $om-line-height-tight * 100%,
|
|
97
|
-
letter-spacing: $om-tracking-none,
|
|
98
|
-
strong: (font-weight: $om-font-weight-bold),
|
|
99
|
-
),
|
|
100
|
-
'sm': (
|
|
101
|
-
font-family: $om-font-body,
|
|
102
|
-
font-weight: $om-font-weight-medium,
|
|
103
|
-
font-size: 14px,
|
|
104
|
-
line-height: $om-line-height-tight * 100%,
|
|
105
|
-
letter-spacing: $om-tracking-none,
|
|
106
|
-
strong: (font-weight: $om-font-weight-bold),
|
|
107
|
-
),
|
|
108
|
-
) !default;
|
|
109
|
-
|
|
110
|
-
// ── Body ──
|
|
111
|
-
// Base: Inter / 400 / 140% / #131313 — strong = 500
|
|
112
|
-
$om-typography-body: (
|
|
113
|
-
'lg': (
|
|
114
|
-
font-family: $om-font-body,
|
|
115
|
-
font-weight: $om-font-weight-regular,
|
|
116
|
-
font-size: 16px,
|
|
117
|
-
line-height: $om-line-height-reading * 100%,
|
|
118
|
-
letter-spacing: $om-tracking-none,
|
|
119
|
-
strong: (font-weight: $om-font-weight-medium),
|
|
120
|
-
),
|
|
121
|
-
'md': (
|
|
122
|
-
font-family: $om-font-body,
|
|
123
|
-
font-weight: $om-font-weight-regular,
|
|
124
|
-
font-size: 14px,
|
|
125
|
-
line-height: $om-line-height-reading * 100%,
|
|
126
|
-
letter-spacing: $om-tracking-none,
|
|
127
|
-
strong: (font-weight: $om-font-weight-medium),
|
|
128
|
-
),
|
|
129
|
-
'sm': (
|
|
130
|
-
font-family: $om-font-body,
|
|
131
|
-
font-weight: $om-font-weight-regular,
|
|
132
|
-
font-size: 12px,
|
|
133
|
-
line-height: $om-line-height-reading * 100%,
|
|
134
|
-
letter-spacing: $om-tracking-none,
|
|
135
|
-
strong: (font-weight: $om-font-weight-medium),
|
|
136
|
-
),
|
|
137
|
-
) !default;
|
|
138
|
-
|
|
139
|
-
// ── Link ──
|
|
140
|
-
// Base: Inter / 500 / 140% / underline / #131313
|
|
141
|
-
$om-typography-link: (
|
|
142
|
-
'md': (
|
|
143
|
-
font-family: $om-font-body,
|
|
144
|
-
font-weight: $om-font-weight-medium,
|
|
145
|
-
font-size: 14px,
|
|
146
|
-
line-height: $om-line-height-reading * 100%,
|
|
147
|
-
letter-spacing: $om-tracking-none,
|
|
148
|
-
text-decoration: underline,
|
|
149
|
-
text-decoration-skip-ink: none,
|
|
150
|
-
),
|
|
151
|
-
'sm': (
|
|
152
|
-
font-family: $om-font-body,
|
|
153
|
-
font-weight: $om-font-weight-medium,
|
|
154
|
-
font-size: 12px,
|
|
155
|
-
line-height: $om-line-height-reading * 100%,
|
|
156
|
-
letter-spacing: $om-tracking-none,
|
|
157
|
-
text-decoration: underline,
|
|
158
|
-
text-decoration-skip-ink: none,
|
|
159
|
-
),
|
|
160
|
-
) !default;
|
|
161
|
-
|
|
162
|
-
// ── Label ──
|
|
163
|
-
// Base: Inter / 500 / 108% / #131313 — strong = 700 (xl) / 600 (rest)
|
|
164
|
-
$om-typography-label: (
|
|
165
|
-
'xl': (
|
|
166
|
-
font-family: $om-font-body,
|
|
167
|
-
font-weight: $om-font-weight-medium,
|
|
168
|
-
font-size: 18px,
|
|
169
|
-
line-height: $om-line-height-tight * 100%,
|
|
170
|
-
letter-spacing: $om-tracking-none,
|
|
171
|
-
strong: (font-weight: $om-font-weight-bold),
|
|
172
|
-
),
|
|
173
|
-
'lg': (
|
|
174
|
-
font-family: $om-font-body,
|
|
175
|
-
font-weight: $om-font-weight-medium,
|
|
176
|
-
font-size: 16px,
|
|
177
|
-
line-height: $om-line-height-tight * 100%,
|
|
178
|
-
letter-spacing: $om-tracking-none,
|
|
179
|
-
strong: (font-weight: $om-font-weight-semibold),
|
|
180
|
-
),
|
|
181
|
-
'md': (
|
|
182
|
-
font-family: $om-font-body,
|
|
183
|
-
font-weight: $om-font-weight-medium,
|
|
184
|
-
font-size: 14px,
|
|
185
|
-
line-height: $om-line-height-tight * 100%,
|
|
186
|
-
letter-spacing: $om-tracking-none,
|
|
187
|
-
strong: (font-weight: $om-font-weight-semibold),
|
|
188
|
-
),
|
|
189
|
-
'sm': (
|
|
190
|
-
font-family: $om-font-body,
|
|
191
|
-
font-weight: $om-font-weight-medium,
|
|
192
|
-
font-size: 12px,
|
|
193
|
-
line-height: $om-line-height-tight * 100%,
|
|
194
|
-
letter-spacing: $om-tracking-none,
|
|
195
|
-
strong: (font-weight: $om-font-weight-semibold),
|
|
196
|
-
),
|
|
197
|
-
'xs': (
|
|
198
|
-
font-family: $om-font-body,
|
|
199
|
-
font-weight: $om-font-weight-medium,
|
|
200
|
-
font-size: 10px,
|
|
201
|
-
line-height: $om-line-height-tight * 100%,
|
|
202
|
-
letter-spacing: $om-tracking-none,
|
|
203
|
-
strong: (font-weight: $om-font-weight-semibold),
|
|
204
|
-
),
|
|
205
|
-
) !default;
|
|
206
|
-
|
|
207
|
-
// ── Master lookup ──
|
|
208
|
-
// Maps category name → scale map for programmatic access.
|
|
209
|
-
$om-typography-categories: (
|
|
210
|
-
'display': $om-typography-display,
|
|
211
|
-
'headline': $om-typography-headline,
|
|
212
|
-
'title': $om-typography-title,
|
|
213
|
-
'body': $om-typography-body,
|
|
214
|
-
'link': $om-typography-link,
|
|
215
|
-
'label': $om-typography-label,
|
|
216
|
-
) !default;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Utility generator — emits atomic utility classes from the theme scales and system registry.
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@use 'sass:meta';
|
|
5
|
-
@use '../theme/functions' as theme-functions;
|
|
6
|
-
@use '../theme/scales' as theme-scales;
|
|
7
|
-
@use '../system/props' as props;
|
|
8
|
-
|
|
9
|
-
$-flag-enabled: (
|
|
10
|
-
spacing: theme-scales.$om-sys-enable-spacing,
|
|
11
|
-
layout: theme-scales.$om-sys-enable-layout,
|
|
12
|
-
sizing: theme-scales.$om-sys-enable-sizing,
|
|
13
|
-
color: theme-scales.$om-sys-enable-color,
|
|
14
|
-
visual: theme-scales.$om-sys-enable-visual,
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
@mixin gen-classes($bp: '') {
|
|
18
|
-
$pre: if($bp != '', '#{$bp}-', '');
|
|
19
|
-
|
|
20
|
-
@each $name, $config in props.$om-system-props {
|
|
21
|
-
// Skip alias entries — they share the same config as their canonical prop.
|
|
22
|
-
@if map.has-key(props.$om-system-aliases, $name) {
|
|
23
|
-
// no-op
|
|
24
|
-
} @else {
|
|
25
|
-
$flag: map.get($config, flag);
|
|
26
|
-
|
|
27
|
-
@if map.get($-flag-enabled, $flag) {
|
|
28
|
-
$kind: map.get($config, kind);
|
|
29
|
-
$css-props: map.get($config, css);
|
|
30
|
-
|
|
31
|
-
@if $kind == enum {
|
|
32
|
-
$css: list.nth($css-props, 1);
|
|
33
|
-
$vals: map.get($config, values);
|
|
34
|
-
$aliases: if(map.has-key(props.$om-value-aliases, $css), map.get(props.$om-value-aliases, $css), ());
|
|
35
|
-
|
|
36
|
-
@each $val in $vals {
|
|
37
|
-
$css-val: if(meta.type-of($aliases) == 'map' and map.has-key($aliases, $val), map.get($aliases, $val), $val);
|
|
38
|
-
.#{theme-scales.$om-sys-prefix}-#{$pre}#{$name}-#{$val} { #{$css}: $css-val; }
|
|
39
|
-
}
|
|
40
|
-
} @else {
|
|
41
|
-
$scale-name: map.get($config, scale);
|
|
42
|
-
$scale: theme-functions.om-scale-map($scale-name);
|
|
43
|
-
|
|
44
|
-
@each $key, $_ in $scale {
|
|
45
|
-
.#{theme-scales.$om-sys-prefix}-#{$pre}#{$name}-#{$key} {
|
|
46
|
-
@each $css in $css-props {
|
|
47
|
-
#{$css}: theme-functions.om-token($scale-name, $key);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Utility entrypoint — emits root theme variables and responsive utility classes.
|
|
2
|
-
@use './generator' as generator;
|
|
3
|
-
@use '../tokens' as tokens;
|
|
4
|
-
@use '../theme/functions' as theme-functions;
|
|
5
|
-
@use '../theme/breakpoints' as breakpoints;
|
|
6
|
-
@include theme-functions.om-emit-theme-vars;
|
|
7
|
-
@include theme-functions.om-emit-typography-vars;
|
|
8
|
-
@include generator.gen-classes;
|
|
9
|
-
|
|
10
|
-
@each $bp-name, $bp-value in tokens.$om-breakpoints {
|
|
11
|
-
@include breakpoints.om-down($bp-name) {
|
|
12
|
-
@include generator.gen-classes($bp-name);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
@use '@/styles/api' as theme;
|
|
2
|
-
|
|
3
|
-
$component: 'accordion';
|
|
4
|
-
|
|
5
|
-
.#{theme.$prefix}-#{$component} {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: theme.spacing(gap, 400);
|
|
9
|
-
width: 100%;
|
|
10
|
-
|
|
11
|
-
// ── Accordion Item ──
|
|
12
|
-
&-item {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
width: 100%;
|
|
16
|
-
|
|
17
|
-
&-disabled {
|
|
18
|
-
cursor: not-allowed;
|
|
19
|
-
opacity: theme.opacity('disabled');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// ── Header (clickable trigger) ──
|
|
24
|
-
&-header {
|
|
25
|
-
display: flex;
|
|
26
|
-
gap: theme.spacing(gap, 400);
|
|
27
|
-
align-items: center;
|
|
28
|
-
width: 100%;
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
color: inherit;
|
|
32
|
-
text-align: left;
|
|
33
|
-
background: none;
|
|
34
|
-
border: none;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
|
|
37
|
-
&:disabled {
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// ── Title ──
|
|
43
|
-
&-title {
|
|
44
|
-
flex: 1 0 0;
|
|
45
|
-
color: theme.palette(text, 'default');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ── Icon ──
|
|
49
|
-
&-icon {
|
|
50
|
-
flex-shrink: 0;
|
|
51
|
-
color: theme.palette(icon, 'default');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// ── Content ──
|
|
55
|
-
&-content {
|
|
56
|
-
width: 100%;
|
|
57
|
-
color: theme.palette(text, 'default');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// ══════════════════════════════════════
|
|
61
|
-
// Variant: Fill
|
|
62
|
-
// ══════════════════════════════════════
|
|
63
|
-
&-fill {
|
|
64
|
-
.#{theme.$prefix}-#{$component}-item {
|
|
65
|
-
padding: theme.spacing(component-padding, 600);
|
|
66
|
-
background-color: theme.palette(bg, 'default-secondary');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.#{theme.$prefix}-#{$component}-header {
|
|
70
|
-
&:hover:not(:disabled) {
|
|
71
|
-
.#{theme.$prefix}-#{$component}-icon {
|
|
72
|
-
color: theme.palette(icon, 'default-secondary');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// ══════════════════════════════════════
|
|
79
|
-
// Variant: Stroke
|
|
80
|
-
// ══════════════════════════════════════
|
|
81
|
-
&-stroke {
|
|
82
|
-
gap: 0;
|
|
83
|
-
|
|
84
|
-
.#{theme.$prefix}-#{$component}-item {
|
|
85
|
-
padding: theme.spacing(component-padding, 600) 0;
|
|
86
|
-
border-bottom: 1px solid theme.palette(border, 'neutral');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.#{theme.$prefix}-#{$component}-header {
|
|
90
|
-
&:hover:not(:disabled) {
|
|
91
|
-
.#{theme.$prefix}-#{$component}-icon {
|
|
92
|
-
color: theme.palette(icon, 'default-secondary');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// ══════════════════════════════════════
|
|
99
|
-
// Size: Large
|
|
100
|
-
// ══════════════════════════════════════
|
|
101
|
-
&-large {
|
|
102
|
-
.#{theme.$prefix}-#{$component}-content {
|
|
103
|
-
margin-top: theme.spacing(gap, 600);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.#{theme.$prefix}-#{$component}-fill {
|
|
107
|
-
.#{theme.$prefix}-#{$component}-item {
|
|
108
|
-
border-radius: theme.shape(600);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// ══════════════════════════════════════
|
|
114
|
-
// Size: Small
|
|
115
|
-
// ══════════════════════════════════════
|
|
116
|
-
&-small {
|
|
117
|
-
.#{theme.$prefix}-#{$component}-content {
|
|
118
|
-
margin-top: theme.spacing(gap, 400);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.#{theme.$prefix}-#{$component}-fill {
|
|
122
|
-
.#{theme.$prefix}-#{$component}-item {
|
|
123
|
-
border-radius: theme.shape(400);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
@use '@/styles/api' as theme;
|
|
2
|
-
@use '@/styles/recipes/variants' as variants;
|
|
3
|
-
|
|
4
|
-
$component: 'alert';
|
|
5
|
-
|
|
6
|
-
// ── Variant DSL ──
|
|
7
|
-
$alert-variant-schema: variants.om-variant-schema(
|
|
8
|
-
$component, container-bg, container-border
|
|
9
|
-
);
|
|
10
|
-
$alert-variants: (
|
|
11
|
-
'info': (
|
|
12
|
-
container-bg: theme.palette(bg, 'default-secondary'),
|
|
13
|
-
container-border: transparent,
|
|
14
|
-
),
|
|
15
|
-
'success': (
|
|
16
|
-
container-bg: theme.palette(bg, 'default'),
|
|
17
|
-
container-border: theme.palette(border, 'neutral-secondary'),
|
|
18
|
-
),
|
|
19
|
-
'warning': (
|
|
20
|
-
container-bg: theme.palette(bg, 'warning-tertiary-hover'),
|
|
21
|
-
container-border: transparent,
|
|
22
|
-
),
|
|
23
|
-
'error': (
|
|
24
|
-
container-bg: theme.palette(bg, 'danger-tertiary'),
|
|
25
|
-
container-border: transparent,
|
|
26
|
-
),
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
.#{theme.$prefix}-#{$component} {
|
|
30
|
-
@include variants.om-variant-default($alert-variants, 'info', $alert-variant-schema);
|
|
31
|
-
|
|
32
|
-
display: flex;
|
|
33
|
-
gap: theme.spacing(gap, 300);
|
|
34
|
-
align-items: flex-start;
|
|
35
|
-
padding: theme.spacing(component-padding, 300);
|
|
36
|
-
background-color: var(--om-alert-container-bg);
|
|
37
|
-
border: 1px solid var(--om-alert-container-border);
|
|
38
|
-
border-radius: theme.shape(300);
|
|
39
|
-
|
|
40
|
-
// ── Icon ──
|
|
41
|
-
&-icon {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ── Content area ──
|
|
49
|
-
&-content {
|
|
50
|
-
display: flex;
|
|
51
|
-
flex: 1 0 0;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
gap: theme.spacing(gap, 100);
|
|
54
|
-
align-items: flex-start;
|
|
55
|
-
min-width: 0;
|
|
56
|
-
padding-top: theme.spacing(scale, 200);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ── Title, Body & Link ──
|
|
60
|
-
// Typography styles handled by TypographyTitle, TypographyBody and TypographyLink components
|
|
61
|
-
|
|
62
|
-
// ── Close button ──
|
|
63
|
-
&-close {
|
|
64
|
-
display: inline-flex;
|
|
65
|
-
flex-shrink: 0;
|
|
66
|
-
align-items: center;
|
|
67
|
-
align-self: flex-start;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
padding: 0;
|
|
70
|
-
color: theme.palette(icon, 'on-neutral-tertiary');
|
|
71
|
-
background: none;
|
|
72
|
-
border: none;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
|
|
75
|
-
// Override IconWrapper inline style (color + --icon-color) so SVG inherits from parent
|
|
76
|
-
.#{theme.$prefix}-icons-wrapper {
|
|
77
|
-
color: inherit !important;
|
|
78
|
-
|
|
79
|
-
--icon-color: currentcolor;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:hover {
|
|
83
|
-
color: theme.palette(icon, 'neutral');
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// ── Status variants ──
|
|
88
|
-
@include variants.om-variant-classes($alert-variants, $alert-variant-schema, $default: 'info');
|
|
89
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
@use '@/styles/api' as theme;
|
|
2
|
-
@use '@/styles/recipes/variants' as variants;
|
|
3
|
-
|
|
4
|
-
$component: 'button';
|
|
5
|
-
$button-variant-schema: variants.om-variant-schema(
|
|
6
|
-
$component, text, bg, hover-bg, disabled-text, disabled-bg
|
|
7
|
-
);
|
|
8
|
-
$button-primary-variant: (
|
|
9
|
-
text: theme.palette(text, 'on-neutral'),
|
|
10
|
-
bg: theme.palette(bg, 'brand'),
|
|
11
|
-
hover-bg: theme.palette(bg, 'brand-hover'),
|
|
12
|
-
disabled-text: theme.palette(text, 'disabled-white'),
|
|
13
|
-
disabled-bg: theme.palette(bg, 'disabled-brand'),
|
|
14
|
-
);
|
|
15
|
-
$button-variants: (
|
|
16
|
-
'primary': $button-primary-variant,
|
|
17
|
-
'secondary': (
|
|
18
|
-
text: theme.palette(text, 'brand'),
|
|
19
|
-
bg: theme.palette(bg, 'brand-secondary'),
|
|
20
|
-
hover-bg: theme.palette(bg, 'brand-secondary-hover'),
|
|
21
|
-
disabled-text: theme.palette(text, 'brand-secondary'),
|
|
22
|
-
disabled-bg: theme.palette(bg, 'brand-tertiary'),
|
|
23
|
-
),
|
|
24
|
-
'grey': (
|
|
25
|
-
text: theme.palette(text, 'default'),
|
|
26
|
-
bg: theme.palette(bg, 'neutral-tertiary'),
|
|
27
|
-
hover-bg: theme.palette(bg, 'neutral-tertiary-hover'),
|
|
28
|
-
disabled-text: theme.palette(text, 'disabled'),
|
|
29
|
-
disabled-bg: theme.palette(bg, 'disabled'),
|
|
30
|
-
),
|
|
31
|
-
'black': (
|
|
32
|
-
text: theme.palette(text, 'on-neutral'),
|
|
33
|
-
bg: theme.palette(bg, 'neutral'),
|
|
34
|
-
hover-bg: theme.palette(bg, 'neutral-hover'),
|
|
35
|
-
disabled-text: theme.palette(text, 'disabled-white'),
|
|
36
|
-
disabled-bg: theme.palette(bg, 'disabled-black'),
|
|
37
|
-
),
|
|
38
|
-
'white': (
|
|
39
|
-
text: theme.palette(text, 'default'),
|
|
40
|
-
bg: theme.palette(bg, 'default'),
|
|
41
|
-
hover-bg: theme.palette(bg, 'default-hover'),
|
|
42
|
-
disabled-text: theme.palette(text, 'disabled'),
|
|
43
|
-
disabled-bg: theme.palette(bg, 'disabled'),
|
|
44
|
-
),
|
|
45
|
-
'danger': (
|
|
46
|
-
text: theme.palette(text, 'danger'),
|
|
47
|
-
bg: theme.palette(bg, 'danger-secondary'),
|
|
48
|
-
hover-bg: theme.palette(bg, 'danger-secondary-hover'),
|
|
49
|
-
disabled-text: theme.palette(text, 'danger-secondary'),
|
|
50
|
-
disabled-bg: theme.palette(bg, 'danger-tertiary'),
|
|
51
|
-
),
|
|
52
|
-
'warning': (
|
|
53
|
-
text: theme.palette(text, 'default'),
|
|
54
|
-
bg: theme.palette(bg, 'warning'),
|
|
55
|
-
hover-bg: theme.palette(bg, 'warning-hover'),
|
|
56
|
-
disabled-text: theme.palette(text, 'disabled'),
|
|
57
|
-
disabled-bg: theme.palette(bg, 'warning-secondary-hover'),
|
|
58
|
-
),
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
.#{theme.$prefix}-#{$component} {
|
|
62
|
-
@include variants.om-variant-default($button-variants, 'primary', $button-variant-schema);
|
|
63
|
-
|
|
64
|
-
--om-button-gap: #{theme.spacing(gap, 200)};
|
|
65
|
-
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
gap: var(--om-button-gap);
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
height: 52px;
|
|
71
|
-
padding: theme.spacing(component-padding, 400);
|
|
72
|
-
color: var(--om-button-text);
|
|
73
|
-
line-height: 1.25;
|
|
74
|
-
background-color: var(--om-button-bg);
|
|
75
|
-
border: none;
|
|
76
|
-
border-radius: theme.shape(300);
|
|
77
|
-
outline: none;
|
|
78
|
-
box-shadow: none;
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
|
|
81
|
-
&:disabled,
|
|
82
|
-
&-disabled {
|
|
83
|
-
color: var(--om-button-disabled-text);
|
|
84
|
-
background-color: var(--om-button-disabled-bg);
|
|
85
|
-
cursor: not-allowed;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&:hover:not(:disabled) {
|
|
89
|
-
background-color: var(--om-button-hover-bg);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// ── Sizes ──
|
|
93
|
-
&-medium {
|
|
94
|
-
height: 40px;
|
|
95
|
-
padding: theme.spacing(component-padding, 300);
|
|
96
|
-
line-height: 1.14;
|
|
97
|
-
border-radius: theme.shape(300);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&-small {
|
|
101
|
-
height: 32px;
|
|
102
|
-
padding: theme.spacing(component-padding, 200) theme.spacing(component-padding, 300);
|
|
103
|
-
line-height: 1.33;
|
|
104
|
-
border-radius: theme.shape(200);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&-rounded {
|
|
108
|
-
border-radius: theme.shape('full');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// ── Text variant ──
|
|
112
|
-
&-text {
|
|
113
|
-
--om-button-text: #{theme.palette(text, 'brand')};
|
|
114
|
-
--om-button-hover-text: #{theme.palette(text, 'on-brand-secondary')};
|
|
115
|
-
--om-button-bg: transparent;
|
|
116
|
-
--om-button-hover-bg: transparent;
|
|
117
|
-
--om-button-disabled-text: #{theme.palette(text, 'brand-secondary')};
|
|
118
|
-
--om-button-disabled-bg: transparent;
|
|
119
|
-
--om-button-gap: #{theme.spacing(gap, 100)};
|
|
120
|
-
|
|
121
|
-
height: auto;
|
|
122
|
-
padding: 0;
|
|
123
|
-
border-radius: 0;
|
|
124
|
-
|
|
125
|
-
&:hover:not(:disabled) {
|
|
126
|
-
--om-button-text: var(--om-button-hover-text);
|
|
127
|
-
|
|
128
|
-
color: var(--om-button-text);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&-text-danger {
|
|
133
|
-
--om-button-text: #{theme.palette(text, 'danger')};
|
|
134
|
-
--om-button-hover-text: #{theme.palette(text, 'on-danger-secondary')};
|
|
135
|
-
--om-button-disabled-text: #{theme.palette(text, 'danger-secondary')};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Text variant: size-specific line-height
|
|
139
|
-
&-text#{&}-large {
|
|
140
|
-
line-height: 1.08;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&-text#{&}-medium {
|
|
144
|
-
line-height: 1.4;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&-text#{&}-small {
|
|
148
|
-
line-height: 1.4;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// ── Icon slots ──
|
|
152
|
-
&-icon-start,
|
|
153
|
-
&-icon-end {
|
|
154
|
-
display: inline-flex;
|
|
155
|
-
flex-shrink: 0;
|
|
156
|
-
align-items: center;
|
|
157
|
-
justify-content: center;
|
|
158
|
-
color: currentcolor;
|
|
159
|
-
line-height: 0;
|
|
160
|
-
|
|
161
|
-
> .#{theme.$prefix}-icons-wrapper {
|
|
162
|
-
color: currentcolor;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// ── Loading icon ──
|
|
167
|
-
&-loading-icon {
|
|
168
|
-
display: inline-flex;
|
|
169
|
-
width: 20px;
|
|
170
|
-
height: 20px;
|
|
171
|
-
|
|
172
|
-
&-medium {
|
|
173
|
-
width: 16px;
|
|
174
|
-
height: 16px;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&-small {
|
|
178
|
-
width: 14px;
|
|
179
|
-
height: 14px;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Override Spinner's default brand color to inherit Button text color
|
|
183
|
-
&.#{theme.$prefix}-spinner {
|
|
184
|
-
color: inherit;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// ── Color variants ──
|
|
189
|
-
@include variants.om-variant-classes($button-variants, $button-variant-schema, $default: 'primary');
|
|
190
|
-
}
|