@ambita/design-system 5.7.1-21.0 → 5.7.1-2571.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/README.md +39 -13
- package/dist/ambita-logo.svg +1 -4
- package/dist/css/_tokens/_byggesoknaden.scss +5 -5
- package/dist/css/_tokens/byggesoknaden.css +5 -5
- package/dist/css/_tokens/component-tokens.css +2 -9
- package/dist/css/ambita-dark.css +3 -3
- package/dist/css/ambita-dark.scss +0 -3
- package/dist/css/ambita-light.css +4 -4
- package/dist/css/ambita-light.scss +0 -3
- package/dist/css/ambita-old.css +3 -3
- package/dist/css/ambita-old.scss +0 -3
- package/dist/css/byggesoknaden.css +5 -5
- package/dist/css/byggesoknaden.scss +0 -3
- package/dist/css/neo-mixins.scss +8 -135
- package/dist/css/neo-tokens.scss +16 -88
- package/dist/css/themes/_base/component-tokens.css +3 -66
- package/dist/css/themes/ambita-dark/component-tokens.css +2 -66
- package/dist/css/themes/ambita-dark/semantic-tokens.css +3 -3
- package/dist/css/themes/ambita-light/component-tokens.css +2 -75
- package/dist/css/themes/ambita-light/semantic-tokens.css +4 -4
- package/dist/css/themes/ambita-old/component-tokens.css +2 -59
- package/dist/css/themes/ambita-old/semantic-tokens.css +3 -3
- package/dist/css/themes/byggesoknaden/component-tokens.css +11 -90
- package/dist/css/themes/byggesoknaden/semantic-tokens.css +5 -5
- package/dist/ds.cjs +10 -10
- package/dist/ds.js +9124 -10222
- package/dist/ds.umd.cjs +12 -12
- package/dist/index.css +1 -1
- package/dist/scss/_ambita-dark.scss +3 -3
- package/dist/scss/_ambita-light.scss +4 -4
- package/dist/scss/_ambita-old.scss +3 -3
- package/dist/scss/_byggesoknaden.scss +5 -5
- package/dist/themes/ambita-dark.css +14 -75
- package/dist/themes/ambita-light.css +15 -85
- package/dist/themes/ambita-old.css +14 -67
- package/dist/themes/byggesoknaden.css +25 -101
- package/dist/types/{components → src/components}/Button/NeoButton.vue.d.ts +0 -2
- package/dist/types/{components → src/components}/Button/NeoLinkButton.vue.d.ts +3 -3
- package/dist/types/src/components/Color/ColorSwatch.vue.d.ts +19 -0
- package/dist/types/{components → src/components}/Input/Input.vue.d.ts +0 -1
- package/dist/types/{components → src/components}/Input/NeoInput.vue.d.ts +3 -3
- package/dist/types/{components → src/components}/JsonForm/Controls/Number.vue.d.ts +0 -1
- package/dist/types/{components → src/components}/JsonForm/Controls/String.vue.d.ts +0 -1
- package/dist/types/{components → src/components}/JsonForm/Renderers/Integer.vue.d.ts +0 -1
- package/dist/types/{components → src/components}/JsonForm/Renderers/Number.vue.d.ts +0 -1
- package/dist/types/{components → src/components}/JsonForm/Renderers/String.vue.d.ts +0 -1
- package/dist/types/{components/AuxModal → src/components/Modal}/Actions.vue.d.ts +1 -1
- package/dist/types/src/components/Modal/Modal.vue.d.ts +166 -0
- package/dist/types/{components → src/components}/NeoComboBox/NeoComboBox.vue.d.ts +1 -2
- package/dist/types/{components → src/components}/NeoSelect/NeoSelect.vue.d.ts +4 -2
- package/dist/types/{components → src/components}/NeoTagsInput/TagsInput.vue.d.ts +1 -2
- package/dist/types/{index.d.ts → src/index.d.ts} +2 -12
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/tsconfig.app.tsbuildinfo +1 -0
- package/package.json +18 -20
- package/dist/css/_typography.scss +0 -228
- package/dist/css/base.scss +0 -19
- package/dist/scss/_typography.scss +0 -228
- package/dist/types/components/AuxModal/AuxModal.vue.d.ts +0 -88
- package/dist/types/components/Color/ColorSwatch.vue.d.ts +0 -57
- package/dist/types/components/NeoDatePicker/NeoDatePicker.vue.d.ts +0 -60
- package/dist/types/components/NeoTabs/NeoTabs.vue.d.ts +0 -190
- package/dist/types/components/NeoTabs/NeoTabsContent.vue.d.ts +0 -27
- package/dist/types/components/NeoTabs/NeoTabsTrigger.vue.d.ts +0 -27
- package/dist/types/components/NeoTabs/NeoTabsWrapper.vue.d.ts +0 -116
- package/dist/types/components/Typography/ErrorText.vue.d.ts +0 -12
- package/dist/types/components/Typography/HelperText.vue.d.ts +0 -12
- package/dist/types/components/Typography/LabelText.vue.d.ts +0 -15
- package/dist/types/components/Typography/NeoFormField.vue.d.ts +0 -21
- package/dist/types/components/Typography/types.d.ts +0 -6
- package/dist/types/composables/useInputId.d.ts +0 -19
- package/dist/types/main.d.ts +0 -6
- /package/dist/types/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/types/{components → src/components}/Accordion/NeoAccordion.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Accordion/NeoAccordionContent.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Accordion/NeoAccordionItem.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Accordion/NeoAccordionTrigger.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/AuxAriaAnnouncer/AuxAriaAnnouncer.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/AuxTabs/AuxTabs.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/AuxTabs/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Banner/Banner.types.d.ts +0 -0
- /package/dist/types/{components → src/components}/Banner/Banner.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Button/Button.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Button/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Card/Card.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Checkbox/Checkbox.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Checkbox/CheckboxCard.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Checkbox/CheckboxRegular.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Checkbox/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/CheckboxDropdown/CheckboxDropdown.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroup.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroupCardElement.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/CheckboxGroup/CheckboxGroupElement.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Definition/Definition.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Details/Details.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/DirectionalArrow/DirectionalArrow.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/DirectionalArrow/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/FormElement/FormElement.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Icons/IconPreview.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Components/Checkboxes.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Components/RadioButtons.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Controls/Array.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Controls/Boolean.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Controls/Wrapper.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/JsonForm.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Renderers/Array.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Renderers/Boolean.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Renderers/Layout.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Renderers/Object.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/JsonForm/Renderers/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/Link/Link.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Link/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Logo/Logo.vue.d.ts +0 -0
- /package/dist/types/{components/AuxModal → src/components/Modal}/Action.d.ts +0 -0
- /package/dist/types/{components/AuxModal → src/components/Modal}/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/NeoBanner/NeoBanner.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/NeoPagination/NeoPagination.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/NeoTagsInput/NeoTag.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/NeoTagsInput/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/Notification/Notification.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Notification/Notifications.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Notification/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Pagination/Pagination.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Pagination/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/Pill/Colors.d.ts +0 -0
- /package/dist/types/{components → src/components}/Pill/Pill.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Radio/Radio.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RadioGroup/RadioGroup.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RadioGroup/RadioGroupCardElement.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RadioGroup/RadioGroupElement.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/RadioGroup/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Select/Select.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Seperator/NeoSeparator.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Spinner/Spinner.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Spinner/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/StatusBadge/StatusBadge.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/StatusBadge/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Tag/Colors.d.ts +0 -0
- /package/dist/types/{components → src/components}/Tag/Tag.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TextArea/TextArea.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/TextArea/constants.d.ts +0 -0
- /package/dist/types/{components → src/components}/Time/Time.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Toggle/Toggle.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Upload/File/File.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/Upload/Upload.vue.d.ts +0 -0
- /package/dist/types/{components → src/components}/ValidationWrapper/ValidationWrapper.vue.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/formatters/formatDateAndTime/Storybook/FormatDateAndTime.vue.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/formatters/formatDateAndTime/index.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/Storybook/FormatAmount.vue.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/formatAmount.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/formatters/formatQuantity/formatNumber.d.ts +0 -0
- /package/dist/types/{helpers → src/helpers}/uuid.d.ts +0 -0
package/README.md
CHANGED
|
@@ -11,14 +11,10 @@ Generate NPM token (try `npm whoami` to check if configured). If no response, fo
|
|
|
11
11
|
To get the project up and running locally:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npm i
|
|
15
|
-
npm run build:storybook:prepare
|
|
16
|
-
npm run storybook
|
|
14
|
+
npm i && npm run storybook
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
This will install dependencies
|
|
20
|
-
|
|
21
|
-
> **Note:** The `build:storybook:prepare` step is required because Storybook needs the compiled theme CSS files in `dist/themes/`. If you see an error about missing `./dist/themes` directory, run this build step first.
|
|
17
|
+
This will install dependencies and start Storybook on port 6006.
|
|
22
18
|
|
|
23
19
|
### Architecture
|
|
24
20
|
|
|
@@ -31,11 +27,8 @@ The design system features:
|
|
|
31
27
|
|
|
32
28
|
### Documentation
|
|
33
29
|
|
|
34
|
-
- **[Ambita Style Guide](https://design.ambita.com)** - Brand guidelines, colors, typography, and visual standards
|
|
35
|
-
|
|
36
30
|
Key guides for contributors:
|
|
37
31
|
|
|
38
|
-
- **[docs/CONTRIBUTING.md](docs/CONTRIBUTING.md)** - General info on contributing
|
|
39
32
|
- **[docs/INTEGRATION_GUIDE.md](docs/INTEGRATION_GUIDE.md)** - How to use the design system in projects
|
|
40
33
|
- **[docs/REKA_UI_SCSS_GUIDE.md](docs/REKA_UI_SCSS_GUIDE.md)** - Portal components and `:deep()` selectors
|
|
41
34
|
- **[docs/NEO_COMPONENT_PATTERNS.md](docs/NEO_COMPONENT_PATTERNS.md)** - Common patterns and mixins
|
|
@@ -46,6 +39,41 @@ Key guides for contributors:
|
|
|
46
39
|
|
|
47
40
|
Recommended front-end template for new Ambita projects, pre-configured with this design system.
|
|
48
41
|
|
|
42
|
+
### Contribution
|
|
43
|
+
|
|
44
|
+
New features must be developed on separate feature branches and merged into dev through pull requests. A GitHub workflow will then automatically publish a new npm package to @ambita/design-system.
|
|
45
|
+
It will have a dev tag and can be installed like this:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
npm i @ambita/design-system@dev
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
To be able to commit, the code must pass a lint-check and all unit tests must run successfully.
|
|
52
|
+
The code will be automatically formatted, but can also be run manually with a script shown below.
|
|
53
|
+
|
|
54
|
+
After testing the @dev package, a PR to main from dev can be created.
|
|
55
|
+
Post-merge, another workflow will be run, publishing a @latest package to npm which can be installed like this.
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
npm i @ambita/design-system
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
#### How to merge branches
|
|
62
|
+
|
|
63
|
+
**IMPORTANT!** Branches merged to `dev` can be squash merged for a prettier history tree, but DON'T squash merge `dev` to `main`.
|
|
64
|
+
Instead, chose "Create a merge commit".
|
|
65
|
+
|
|
66
|
+
<img alt="create a merge commit in GitHub" src="docs/merge-commit.png" width="400">
|
|
67
|
+
|
|
68
|
+
#### New Components
|
|
69
|
+
|
|
70
|
+
Every new component must have:
|
|
71
|
+
|
|
72
|
+
- ✅ Storybook documentation
|
|
73
|
+
- ✅ Unit tests (Vitest)
|
|
74
|
+
- ✅ Export in `./src/index.ts`
|
|
75
|
+
- ✅ Follow Neo patterns if using Reka UI (see [NEO_COMPONENT_PATTERNS.md](docs/NEO_COMPONENT_PATTERNS.md))
|
|
76
|
+
|
|
49
77
|
### Scripts
|
|
50
78
|
|
|
51
79
|
#### Compile and Hot-Reload for Development
|
|
@@ -106,7 +134,5 @@ npm run type-check
|
|
|
106
134
|
|
|
107
135
|
## Links
|
|
108
136
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
- [Reka UI](https://reka-ui.com)
|
|
112
|
-
|
|
137
|
+
- https://github.com/Ambita/vivid-blueprint
|
|
138
|
+
- https://github.com/Ambita/design-system-icons
|
package/dist/ambita-logo.svg
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2
|
-
xml:space="preserve" preserveAspectRatio="xMinYMid meet" x="0px" y="0px"
|
|
3
|
-
viewBox="0 0 694.11 164.663" style="enable-background:new 0 0 694.11 164.663;" role="img"
|
|
4
|
-
aria-labelledby="ambita-logo-title"> <title id="ambita-logo-title">Ambita</title> <path fill="currentcolor" class="ambita-logo__svg__path" d="M101.071,48.106h-5.002c-5.439,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.177-10.047-30.702-10.047c-15.85,0-29.602,6.764-39.627,17.485C5.876,76.03,0.058,90.393,0.002,106.385 c0,0.078-0.002,0.156-0.002,0.236c0,15.848,5.827,30.302,15.85,41.022c10.025,10.493,23.778,17.02,39.627,17.02 c11.525,0,21.909-3.648,30.705-9.814c0.04,5.403,4.472,9.814,9.886,9.814h5.002c5.437,0,9.887-4.453,9.887-9.889V57.998 C110.958,52.558,106.507,48.106,101.071,48.106z M86.18,108.901c-0.508,8.609-3.876,16.153-9.021,21.729 c-5.595,5.826-13.522,9.089-21.681,9.089c-8.389,0-16.316-3.263-21.677-9.089c-5.595-6.063-8.859-14.453-8.859-24.009 c0-0.08,0.003-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.856-23.777c5.36-6.293,13.288-9.556,21.677-9.556 c8.159,0,16.086,3.263,21.681,9.556c5.145,5.36,8.513,12.888,9.021,21.68v2.098V108.901z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M281.806,48.106H150.147l0,0c-5.439,0-9.891,4.451-9.891,9.892v96.776 c0,5.436,4.451,9.889,9.891,9.889h4.999c5.439,0,9.89-4.453,9.89-9.889V72.887h38.551v81.888c0,5.436,4.451,9.889,9.89,9.889h4.999 c5.439,0,9.889-4.453,9.889-9.889V72.887h38.551v81.888c0,5.436,4.452,9.889,9.889,9.889h5.001c5.44,0,9.889-4.453,9.889-9.889 V57.998C291.695,52.558,287.247,48.106,281.806,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M684.222,48.106h-5.001c-5.44,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.178-10.047-30.702-10.047c-15.85,0-29.601,6.764-39.626,17.485c-9.976,10.438-15.791,24.801-15.848,40.793 c0,0.078-0.003,0.156-0.003,0.236c0,15.848,5.827,30.302,15.851,41.022c10.025,10.493,23.776,17.02,39.626,17.02 c11.525,0,21.908-3.648,30.702-9.814c0.041,5.403,4.475,9.814,9.889,9.814h5.001c5.438,0,9.889-4.453,9.889-9.889V57.998 C694.11,52.558,689.659,48.106,684.222,48.106z M669.332,108.907c-0.511,8.608-3.878,16.147-9.023,21.723 c-5.595,5.826-13.519,9.089-21.68,9.089c-8.391,0-16.315-3.263-21.679-9.089c-5.594-6.063-8.855-14.453-8.855-24.009 c0-0.08,0-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.852-23.777c5.363-6.293,13.288-9.556,21.679-9.556 c8.16,0,16.085,3.263,21.68,9.556c5.145,5.357,8.512,12.886,9.023,21.672v2.106V108.907z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M470.419,48.106h-5c-5.438,0-9.891,4.451-9.891,9.892v96.776c0,5.436,4.452,9.889,9.891,9.889h5 c5.439,0,9.889-4.453,9.889-9.889V57.998C480.308,52.558,475.857,48.106,470.419,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M433.659,106.385c-0.124-31.832-25.25-58.278-56.643-58.278c-11.422,0-22.608,3.731-31.234,9.792 l-0.008-46.522c0-5.437-4.448-9.889-9.888-9.889h-0.003h-4.998h-0.001c-5.439,0-9.889,4.452-9.889,9.889v143.398 c0,5.436,4.449,9.889,9.889,9.889h0.001h4.998h0.003c5.382,0,9.792-4.359,9.884-9.717c8.785,5.886,19.79,9.717,31.246,9.717 c31.471,0,56.647-26.575,56.647-58.042C433.662,106.541,433.659,106.463,433.659,106.385z M398.928,129.696 c-5.827,6.06-13.52,9.559-21.912,9.559c-8.623,0-16.084-3.499-21.911-9.559c-5.827-5.827-9.323-14.22-9.323-23.075 c0-0.08,0.001-0.158,0.001-0.236c0.059-9.232,3.542-17.532,9.322-23.311c5.827-6.06,13.288-9.559,21.911-9.559 c8.393,0,16.085,3.499,21.912,9.559c5.78,5.778,9.264,14.079,9.323,23.311c0,0.078,0.002,0.156,0.002,0.236 C408.253,115.477,404.758,123.869,398.928,129.696z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M565.793,48.106h-15.241v-36.73c0-5.437-4.45-9.889-9.889-9.889h-5.001 c-5.438,0-9.889,4.452-9.889,9.889v36.73h-15.241c-5.44,0-9.889,4.451-9.889,9.892v4.999c0,5.439,4.449,9.89,9.889,9.89h15.241 v81.888c0,5.436,4.451,9.889,9.889,9.889h5.001c5.438,0,9.889-4.453,9.889-9.889V72.887h15.241c5.44,0,9.889-4.45,9.889-9.89 v-4.999C575.682,52.558,571.233,48.106,565.793,48.106z"></path> <circle fill="currentcolor" class="ambita-logo__svg__path" cx="467.919" cy="13.877" r="13.878"></circle> </svg>
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" preserveAspectRatio="xMinYMid meet" x="0px" y="0px" viewBox="0 0 694.11 164.663" style="enable-background:new 0 0 694.11 164.663;"> <path fill="currentcolor" class="ambita-logo__svg__path" d="M101.071,48.106h-5.002c-5.439,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.177-10.047-30.702-10.047c-15.85,0-29.602,6.764-39.627,17.485C5.876,76.03,0.058,90.393,0.002,106.385 c0,0.078-0.002,0.156-0.002,0.236c0,15.848,5.827,30.302,15.85,41.022c10.025,10.493,23.778,17.02,39.627,17.02 c11.525,0,21.909-3.648,30.705-9.814c0.04,5.403,4.472,9.814,9.886,9.814h5.002c5.437,0,9.887-4.453,9.887-9.889V57.998 C110.958,52.558,106.507,48.106,101.071,48.106z M86.18,108.901c-0.508,8.609-3.876,16.153-9.021,21.729 c-5.595,5.826-13.522,9.089-21.681,9.089c-8.389,0-16.316-3.263-21.677-9.089c-5.595-6.063-8.859-14.453-8.859-24.009 c0-0.08,0.003-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.856-23.777c5.36-6.293,13.288-9.556,21.677-9.556 c8.159,0,16.086,3.263,21.681,9.556c5.145,5.36,8.513,12.888,9.021,21.68v2.098V108.901z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M281.806,48.106H150.147l0,0c-5.439,0-9.891,4.451-9.891,9.892v96.776 c0,5.436,4.451,9.889,9.891,9.889h4.999c5.439,0,9.89-4.453,9.89-9.889V72.887h38.551v81.888c0,5.436,4.451,9.889,9.89,9.889h4.999 c5.439,0,9.889-4.453,9.889-9.889V72.887h38.551v81.888c0,5.436,4.452,9.889,9.889,9.889h5.001c5.44,0,9.889-4.453,9.889-9.889 V57.998C291.695,52.558,287.247,48.106,281.806,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M684.222,48.106h-5.001c-5.44,0-9.889,4.451-9.889,9.892v0.155 c-8.794-6.17-19.178-10.047-30.702-10.047c-15.85,0-29.601,6.764-39.626,17.485c-9.976,10.438-15.791,24.801-15.848,40.793 c0,0.078-0.003,0.156-0.003,0.236c0,15.848,5.827,30.302,15.851,41.022c10.025,10.493,23.776,17.02,39.626,17.02 c11.525,0,21.908-3.648,30.702-9.814c0.041,5.403,4.475,9.814,9.889,9.814h5.001c5.438,0,9.889-4.453,9.889-9.889V57.998 C694.11,52.558,689.659,48.106,684.222,48.106z M669.332,108.907c-0.511,8.608-3.878,16.147-9.023,21.723 c-5.595,5.826-13.519,9.089-21.68,9.089c-8.391,0-16.315-3.263-21.679-9.089c-5.594-6.063-8.855-14.453-8.855-24.009 c0-0.08,0-0.158,0.003-0.236c0.051-9.691,3.305-17.993,8.852-23.777c5.363-6.293,13.288-9.556,21.679-9.556 c8.16,0,16.085,3.263,21.68,9.556c5.145,5.357,8.512,12.886,9.023,21.672v2.106V108.907z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M470.419,48.106h-5c-5.438,0-9.891,4.451-9.891,9.892v96.776c0,5.436,4.452,9.889,9.891,9.889h5 c5.439,0,9.889-4.453,9.889-9.889V57.998C480.308,52.558,475.857,48.106,470.419,48.106z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M433.659,106.385c-0.124-31.832-25.25-58.278-56.643-58.278c-11.422,0-22.608,3.731-31.234,9.792 l-0.008-46.522c0-5.437-4.448-9.889-9.888-9.889h-0.003h-4.998h-0.001c-5.439,0-9.889,4.452-9.889,9.889v143.398 c0,5.436,4.449,9.889,9.889,9.889h0.001h4.998h0.003c5.382,0,9.792-4.359,9.884-9.717c8.785,5.886,19.79,9.717,31.246,9.717 c31.471,0,56.647-26.575,56.647-58.042C433.662,106.541,433.659,106.463,433.659,106.385z M398.928,129.696 c-5.827,6.06-13.52,9.559-21.912,9.559c-8.623,0-16.084-3.499-21.911-9.559c-5.827-5.827-9.323-14.22-9.323-23.075 c0-0.08,0.001-0.158,0.001-0.236c0.059-9.232,3.542-17.532,9.322-23.311c5.827-6.06,13.288-9.559,21.911-9.559 c8.393,0,16.085,3.499,21.912,9.559c5.78,5.778,9.264,14.079,9.323,23.311c0,0.078,0.002,0.156,0.002,0.236 C408.253,115.477,404.758,123.869,398.928,129.696z"></path> <path fill="currentcolor" class="ambita-logo__svg__path" d="M565.793,48.106h-15.241v-36.73c0-5.437-4.45-9.889-9.889-9.889h-5.001 c-5.438,0-9.889,4.452-9.889,9.889v36.73h-15.241c-5.44,0-9.889,4.451-9.889,9.892v4.999c0,5.439,4.449,9.89,9.889,9.89h15.241 v81.888c0,5.436,4.451,9.889,9.889,9.889h5.001c5.438,0,9.889-4.453,9.889-9.889V72.887h15.241c5.44,0,9.889-4.45,9.889-9.89 v-4.999C575.682,52.558,571.233,48.106,565.793,48.106z"></path> <circle fill="currentcolor" class="ambita-logo__svg__path" cx="467.919" cy="13.877" r="13.878"></circle> </svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Do not edit directly, this file was auto-generated.
|
|
2
2
|
|
|
3
|
-
$amb-font-family-display-serif:
|
|
4
|
-
$amb-font-family-sans-serif:
|
|
3
|
+
$amb-font-family-display-serif: PT Serif;
|
|
4
|
+
$amb-font-family-sans-serif: Inter;
|
|
5
5
|
$amb-font-weight-bold: 700;
|
|
6
6
|
$amb-font-weight-medium: 500;
|
|
7
7
|
$amb-font-weight-regular: 400;
|
|
@@ -32,7 +32,7 @@ $bs-color-red-3: #b74a40; // For UI
|
|
|
32
32
|
$bs-color-white: #ffffff; // For marketing and UI
|
|
33
33
|
$bs-color-yellow-1: #fefaed; // For UI
|
|
34
34
|
$bs-color-yellow-2: #dfbb2c; // For UI
|
|
35
|
-
$bs-font-family-bs-font:
|
|
35
|
+
$bs-font-family-bs-font: Source Sans pro;
|
|
36
36
|
$bs-font-line-height-14: 14px;
|
|
37
37
|
$bs-font-line-height-16: 16px;
|
|
38
38
|
$bs-font-line-height-18: 18px;
|
|
@@ -138,7 +138,7 @@ $bg-page-subtle: $bs-color-grey-1; // Alternativ bakgrunnsfarge for å bruke på
|
|
|
138
138
|
$border-color-card: $bs-color-grey-4; // Fyllfarge brukt på en ramme i "card"-komponent
|
|
139
139
|
$border-color-disabled: $bs-color-grey-6; // Fyllfarge for å bruke på en ramme i komponenter som er i deaktivert tilstand.
|
|
140
140
|
$border-color-error: $bs-color-red-3; // Fyllfarge for å bruke på en ramme for å indikere en feil.
|
|
141
|
-
$border-color-focus: $bs-color-blue-
|
|
141
|
+
$border-color-focus: $bs-color-blue-3; // Fyllfarge for å bruke på en ramme i interaktive komponenter som er i fokusert tilstand.
|
|
142
142
|
$border-color-input: $bs-color-grey-5; // Fyllfarge for å bruke på en ramme i alle input-komponenter.
|
|
143
143
|
$border-color-secondary-default: $bs-color-blue-3; // Fyllfarge brukt på en ramme i sekundære knapper.
|
|
144
144
|
$border-color-secondary-hover: $bs-color-blue-2; // Fyllfarge for å bruke på en ramme i sekundær knapp, kun i Ambita OLD theme.
|
|
@@ -164,7 +164,7 @@ $fill-disabled: $bs-color-grey-3; // Fyllfarge for elementer i deaktivert tilsta
|
|
|
164
164
|
$fill-disabled-stronger: $bs-color-grey-4; // Fyllfarge for høykontrast elementer i deaktivert tilstand.
|
|
165
165
|
$fill-error: $bs-color-red-1; // Dempet fyllfarge som indikerer feilmelding.
|
|
166
166
|
$fill-error-stronger: $bs-color-red-2; // Sterk fyllfarge som indikerer feilmelding.
|
|
167
|
-
$fill-hover-default: $bs-color-blue-
|
|
167
|
+
$fill-hover-default: $bs-color-blue-2; // Fyllfarge for interaktive elementer
|
|
168
168
|
$fill-info: $bs-color-blue-1; // Dempet fyllfarge som indikerer nøytral informasjon.
|
|
169
169
|
$fill-info-stronger: $bs-color-blue-2; // Sterk fyllfarge som indikerer nøytral informasjon.
|
|
170
170
|
$fill-input: $bs-color-white; // Fyllfarge for input-elementer.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--amb-font-family-display-serif:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
6
|
+
--amb-font-family-display-serif: PT Serif;
|
|
7
|
+
--amb-font-family-sans-serif: Inter;
|
|
8
8
|
--amb-font-weight-bold: 700;
|
|
9
9
|
--amb-font-weight-medium: 500;
|
|
10
10
|
--amb-font-weight-regular: 400;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--bs-color-white: #ffffff; /** For marketing and UI */
|
|
36
36
|
--bs-color-yellow-1: #fefaed; /** For UI */
|
|
37
37
|
--bs-color-yellow-2: #dfbb2c; /** For UI */
|
|
38
|
-
--bs-font-family-bs-font:
|
|
38
|
+
--bs-font-family-bs-font: Source Sans pro;
|
|
39
39
|
--bs-font-line-height-14: 14px;
|
|
40
40
|
--bs-font-line-height-16: 16px;
|
|
41
41
|
--bs-font-line-height-18: 18px;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
--bs-color-red-3
|
|
165
165
|
); /** Fyllfarge for å bruke på en ramme for å indikere en feil. */
|
|
166
166
|
--border-color-focus: var(
|
|
167
|
-
--bs-color-blue-
|
|
167
|
+
--bs-color-blue-3
|
|
168
168
|
); /** Fyllfarge for å bruke på en ramme i interaktive komponenter som er i fokusert tilstand. */
|
|
169
169
|
--border-color-input: var(
|
|
170
170
|
--bs-color-grey-5
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
); /** Fyllfarge for høykontrast elementer i deaktivert tilstand. */
|
|
218
218
|
--fill-error: var(--bs-color-red-1); /** Dempet fyllfarge som indikerer feilmelding. */
|
|
219
219
|
--fill-error-stronger: var(--bs-color-red-2); /** Sterk fyllfarge som indikerer feilmelding. */
|
|
220
|
-
--fill-hover-default: var(--bs-color-blue-
|
|
220
|
+
--fill-hover-default: var(--bs-color-blue-2); /** Fyllfarge for interaktive elementer */
|
|
221
221
|
--fill-info: var(--bs-color-blue-1); /** Dempet fyllfarge som indikerer nøytral informasjon. */
|
|
222
222
|
--fill-info-stronger: var(
|
|
223
223
|
--bs-color-blue-2
|
|
@@ -28,14 +28,7 @@
|
|
|
28
28
|
TYPOGRAPHY TOKENS
|
|
29
29
|
Global font settings that can be overridden per theme
|
|
30
30
|
======================================================================== */
|
|
31
|
-
--font-family-base:
|
|
32
|
-
--font-family-display: var(
|
|
33
|
-
--font-family-display-serif,
|
|
34
|
-
'PT Serif',
|
|
35
|
-
Georgia,
|
|
36
|
-
'Times New Roman',
|
|
37
|
-
serif
|
|
38
|
-
);
|
|
31
|
+
--font-family-base: 'ff-din-round-web', sans-serif;
|
|
39
32
|
/* ------------------------------------------------------------------------
|
|
40
33
|
SHADOW TOKENS
|
|
41
34
|
------------------------------------------------------------------------ */
|
|
@@ -44,7 +37,7 @@
|
|
|
44
37
|
--Shadow-Error: 0 0 0 2px var(--text-error);
|
|
45
38
|
--Shadow-Dropdown: 0px 4px 8px 3px rgba(0, 0, 0, 0.05), 0px 1px 3px 0px rgba(85, 85, 85, 0.4);
|
|
46
39
|
/* TagsInput Dropdown */
|
|
47
|
-
--tags-dropdown-max-height:
|
|
40
|
+
--tags-dropdown-max-height: 15rem;
|
|
48
41
|
--tags-dropdown-separator-margin: 5px;
|
|
49
42
|
--tags-dropdown-separator-height: 1px;
|
|
50
43
|
/* TagsInput Dropdown Label */
|
package/dist/css/ambita-dark.css
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--amb-font-family-display-serif:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
6
|
+
--amb-font-family-display-serif: PT Serif;
|
|
7
|
+
--amb-font-family-sans-serif: Inter;
|
|
8
8
|
--amb-font-weight-bold: 700;
|
|
9
9
|
--amb-font-weight-medium: 500;
|
|
10
10
|
--amb-font-weight-regular: 400;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--bs-color-white: #ffffff; /** For marketing and UI */
|
|
36
36
|
--bs-color-yellow-1: #fefaed; /** For UI */
|
|
37
37
|
--bs-color-yellow-2: #dfbb2c; /** For UI */
|
|
38
|
-
--bs-font-family-bs-font:
|
|
38
|
+
--bs-font-family-bs-font: Source Sans pro;
|
|
39
39
|
--bs-font-line-height-14: 14px;
|
|
40
40
|
--bs-font-line-height-16: 16px;
|
|
41
41
|
--bs-font-line-height-18: 18px;
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
* import '@ambita/design-system/dist/css/ambita-dark.css';
|
|
9
|
-
*
|
|
10
|
-
* Fonts: Add this to your HTML <head>:
|
|
11
|
-
* <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
|
|
12
9
|
*/
|
|
13
10
|
|
|
14
11
|
/* Layer 0: Legacy SCSS Variables (for legacy Aux components) */
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--amb-font-family-display-serif:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
6
|
+
--amb-font-family-display-serif: PT Serif;
|
|
7
|
+
--amb-font-family-sans-serif: Inter;
|
|
8
8
|
--amb-font-weight-bold: 700;
|
|
9
9
|
--amb-font-weight-medium: 500;
|
|
10
10
|
--amb-font-weight-regular: 400;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--bs-color-white: #ffffff; /** For marketing and UI */
|
|
36
36
|
--bs-color-yellow-1: #fefaed; /** For UI */
|
|
37
37
|
--bs-color-yellow-2: #dfbb2c; /** For UI */
|
|
38
|
-
--bs-font-family-bs-font:
|
|
38
|
+
--bs-font-family-bs-font: Source Sans pro;
|
|
39
39
|
--bs-font-line-height-14: 14px;
|
|
40
40
|
--bs-font-line-height-16: 16px;
|
|
41
41
|
--bs-font-line-height-18: 18px;
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
--text-feedback-inverse: var(--color-primary-ambita-purple-600); /** Tekstfarge i komponenter som f.eks. banner, toast, status-badge og tags. */
|
|
230
230
|
--text-heading-moderate: var(--color-secondary-ambita-purple-500); /** Tekstfarge for store titler, headings og display tekster. */
|
|
231
231
|
--text-heading-strong: var(--color-primary-ambita-purple-600); /** Tekstfarge for store titler, headings og display tekster. */
|
|
232
|
-
--text-input: var(--color-
|
|
232
|
+
--text-input: var(--color-neutral-ambita-grey-400); /** Tekstfarge for text-input, f.eks. inputfelt, søkefelt, select. */
|
|
233
233
|
--text-label: var(--color-primary-ambita-purple-600); /** Tekstfarge for label, f.eks. i komponenter som søkefelt, input, radio og sjekkboks. */
|
|
234
234
|
--text-label-hover: var(--color-secondary-ambita-purple-500); /** Tekstfarge for label i hover state, f.eks. radio og sjekkboks. */
|
|
235
235
|
--text-label-on-success: var(--color-primary-ambita-purple-600); /** Tekstfarge for label som står på "success" fyllfarge. F.eks. radios og sjekkboks. Fargen forblir den samme i lys og mørk modus. */
|
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
* Usage:
|
|
8
8
|
* import '@ambita/design-system/dist/css/ambita-light.css';
|
|
9
9
|
*
|
|
10
|
-
* Fonts: Add this to your HTML <head>:
|
|
11
|
-
* <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
|
|
12
|
-
*
|
|
13
10
|
* This is the default theme for the design system.
|
|
14
11
|
*/
|
|
15
12
|
|
package/dist/css/ambita-old.css
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--amb-font-family-display-serif:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
6
|
+
--amb-font-family-display-serif: PT Serif;
|
|
7
|
+
--amb-font-family-sans-serif: Inter;
|
|
8
8
|
--amb-font-weight-bold: 700;
|
|
9
9
|
--amb-font-weight-medium: 500;
|
|
10
10
|
--amb-font-weight-regular: 400;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--bs-color-white: #ffffff; /** For marketing and UI */
|
|
36
36
|
--bs-color-yellow-1: #fefaed; /** For UI */
|
|
37
37
|
--bs-color-yellow-2: #dfbb2c; /** For UI */
|
|
38
|
-
--bs-font-family-bs-font:
|
|
38
|
+
--bs-font-family-bs-font: Source Sans pro;
|
|
39
39
|
--bs-font-line-height-14: 14px;
|
|
40
40
|
--bs-font-line-height-16: 16px;
|
|
41
41
|
--bs-font-line-height-18: 18px;
|
package/dist/css/ambita-old.scss
CHANGED
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
* Usage:
|
|
8
8
|
* import '@ambita/design-system/dist/css/ambita-old.css';
|
|
9
9
|
*
|
|
10
|
-
* Fonts: DIN Round is not available on Google Fonts.
|
|
11
|
-
* Host the font files and add @font-face declarations, or use the fallback (Arial).
|
|
12
|
-
*
|
|
13
10
|
* This theme maintains backwards compatibility with older designs.
|
|
14
11
|
*/
|
|
15
12
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--amb-font-family-display-serif:
|
|
7
|
-
--amb-font-family-sans-serif:
|
|
6
|
+
--amb-font-family-display-serif: PT Serif;
|
|
7
|
+
--amb-font-family-sans-serif: Inter;
|
|
8
8
|
--amb-font-weight-bold: 700;
|
|
9
9
|
--amb-font-weight-medium: 500;
|
|
10
10
|
--amb-font-weight-regular: 400;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--bs-color-white: #ffffff; /** For marketing and UI */
|
|
36
36
|
--bs-color-yellow-1: #fefaed; /** For UI */
|
|
37
37
|
--bs-color-yellow-2: #dfbb2c; /** For UI */
|
|
38
|
-
--bs-font-family-bs-font:
|
|
38
|
+
--bs-font-family-bs-font: Source Sans pro;
|
|
39
39
|
--bs-font-line-height-14: 14px;
|
|
40
40
|
--bs-font-line-height-16: 16px;
|
|
41
41
|
--bs-font-line-height-18: 18px;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
--border-color-card: var(--bs-color-grey-4); /** Fyllfarge brukt på en ramme i "card"-komponent */
|
|
142
142
|
--border-color-disabled: var(--bs-color-grey-6); /** Fyllfarge for å bruke på en ramme i komponenter som er i deaktivert tilstand. */
|
|
143
143
|
--border-color-error: var(--bs-color-red-3); /** Fyllfarge for å bruke på en ramme for å indikere en feil. */
|
|
144
|
-
--border-color-focus: var(--bs-color-blue-
|
|
144
|
+
--border-color-focus: var(--bs-color-blue-3); /** Fyllfarge for å bruke på en ramme i interaktive komponenter som er i fokusert tilstand. */
|
|
145
145
|
--border-color-input: var(--bs-color-grey-5); /** Fyllfarge for å bruke på en ramme i alle input-komponenter. */
|
|
146
146
|
--border-color-secondary-default: var(--bs-color-blue-3); /** Fyllfarge brukt på en ramme i sekundære knapper. */
|
|
147
147
|
--border-color-secondary-hover: var(--bs-color-blue-2); /** Fyllfarge for å bruke på en ramme i sekundær knapp, kun i Ambita OLD theme. */
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
--fill-disabled-stronger: var(--bs-color-grey-4); /** Fyllfarge for høykontrast elementer i deaktivert tilstand. */
|
|
168
168
|
--fill-error: var(--bs-color-red-1); /** Dempet fyllfarge som indikerer feilmelding. */
|
|
169
169
|
--fill-error-stronger: var(--bs-color-red-2); /** Sterk fyllfarge som indikerer feilmelding. */
|
|
170
|
-
--fill-hover-default: var(--bs-color-blue-
|
|
170
|
+
--fill-hover-default: var(--bs-color-blue-2); /** Fyllfarge for interaktive elementer */
|
|
171
171
|
--fill-info: var(--bs-color-blue-1); /** Dempet fyllfarge som indikerer nøytral informasjon. */
|
|
172
172
|
--fill-info-stronger: var(--bs-color-blue-2); /** Sterk fyllfarge som indikerer nøytral informasjon. */
|
|
173
173
|
--fill-input: var(--bs-color-white); /** Fyllfarge for input-elementer. */
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
* import '@ambita/design-system/dist/css/byggesoknaden.css';
|
|
9
|
-
*
|
|
10
|
-
* Fonts: DIN Round is not available on Google Fonts.
|
|
11
|
-
* Host the font files and add @font-face declarations, or use the fallback (Arial).
|
|
12
9
|
*/
|
|
13
10
|
|
|
14
11
|
/* Layer 0: Legacy SCSS Variables (for legacy Aux components) */
|
package/dist/css/neo-mixins.scss
CHANGED
|
@@ -135,7 +135,6 @@
|
|
|
135
135
|
|
|
136
136
|
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
|
137
137
|
|
|
138
|
-
font-family: $font-family-sans-serif;
|
|
139
138
|
color: $dropdown-item-text;
|
|
140
139
|
font-size: $dropdown-item-font-size;
|
|
141
140
|
line-height: 1;
|
|
@@ -185,7 +184,7 @@
|
|
|
185
184
|
* Dropdown item with icon indicator (for multi-select)
|
|
186
185
|
* Adds padding-left to accommodate the indicator
|
|
187
186
|
*/
|
|
188
|
-
@mixin dropdown-item-with-indicator($indicator-width:
|
|
187
|
+
@mixin dropdown-item-with-indicator($indicator-width: 2.5rem) {
|
|
189
188
|
@include dropdown-item-base;
|
|
190
189
|
padding-left: $indicator-width;
|
|
191
190
|
display: flex;
|
|
@@ -196,7 +195,7 @@
|
|
|
196
195
|
* Dropdown empty state
|
|
197
196
|
* Shown when no items match search/filter
|
|
198
197
|
*/
|
|
199
|
-
@mixin dropdown-empty($padding-y:
|
|
198
|
+
@mixin dropdown-empty($padding-y: 0.5rem, $padding-x: 0.5rem) {
|
|
200
199
|
padding: $padding-y $padding-x;
|
|
201
200
|
text-align: center;
|
|
202
201
|
font-size: 16px;
|
|
@@ -207,7 +206,7 @@
|
|
|
207
206
|
* Dropdown separator
|
|
208
207
|
* Divides groups of items
|
|
209
208
|
*/
|
|
210
|
-
@mixin dropdown-separator($margin-y:
|
|
209
|
+
@mixin dropdown-separator($margin-y: 0rem) {
|
|
211
210
|
margin-top: $margin-y;
|
|
212
211
|
margin-bottom: $margin-y;
|
|
213
212
|
height: 1px;
|
|
@@ -218,7 +217,7 @@
|
|
|
218
217
|
* Dropdown group label
|
|
219
218
|
* Labels for grouped items
|
|
220
219
|
*/
|
|
221
|
-
@mixin dropdown-label($padding-y:
|
|
220
|
+
@mixin dropdown-label($padding-y: 0.5rem, $padding-x: 0.75rem) {
|
|
222
221
|
padding: $padding-y $padding-x;
|
|
223
222
|
font-size: 14px;
|
|
224
223
|
font-weight: 600;
|
|
@@ -246,7 +245,6 @@
|
|
|
246
245
|
|
|
247
246
|
padding: $input-padding-y $input-padding-x;
|
|
248
247
|
|
|
249
|
-
font-family: $font-family-sans-serif;
|
|
250
248
|
font-size: $input-font-size;
|
|
251
249
|
font-weight: $input-font-weight;
|
|
252
250
|
line-height: $input-line-height;
|
|
@@ -382,7 +380,7 @@
|
|
|
382
380
|
|
|
383
381
|
@keyframes slideInFromTop {
|
|
384
382
|
from {
|
|
385
|
-
transform: translateY(-
|
|
383
|
+
transform: translateY(-0.5rem);
|
|
386
384
|
}
|
|
387
385
|
to {
|
|
388
386
|
transform: translateY(0);
|
|
@@ -391,7 +389,7 @@
|
|
|
391
389
|
|
|
392
390
|
@keyframes slideInFromBottom {
|
|
393
391
|
from {
|
|
394
|
-
transform: translateY(
|
|
392
|
+
transform: translateY(0.5rem);
|
|
395
393
|
}
|
|
396
394
|
to {
|
|
397
395
|
transform: translateY(0);
|
|
@@ -400,7 +398,7 @@
|
|
|
400
398
|
|
|
401
399
|
@keyframes slideInFromLeft {
|
|
402
400
|
from {
|
|
403
|
-
transform: translateX(-
|
|
401
|
+
transform: translateX(-0.5rem);
|
|
404
402
|
}
|
|
405
403
|
to {
|
|
406
404
|
transform: translateX(0);
|
|
@@ -409,135 +407,10 @@
|
|
|
409
407
|
|
|
410
408
|
@keyframes slideInFromRight {
|
|
411
409
|
from {
|
|
412
|
-
transform: translateX(
|
|
410
|
+
transform: translateX(0.5rem);
|
|
413
411
|
}
|
|
414
412
|
to {
|
|
415
413
|
transform: translateX(0);
|
|
416
414
|
}
|
|
417
415
|
}
|
|
418
416
|
}
|
|
419
|
-
|
|
420
|
-
/* ============================================================================
|
|
421
|
-
TYPOGRAPHY MIXINS
|
|
422
|
-
============================================================================
|
|
423
|
-
|
|
424
|
-
Semantic typography mixins based on the Ambita design system.
|
|
425
|
-
These provide pre-composed text styles matching the design specifications.
|
|
426
|
-
|
|
427
|
-
Usage:
|
|
428
|
-
```scss
|
|
429
|
-
@use '@/css/neo-mixins' as *;
|
|
430
|
-
|
|
431
|
-
.my-title {
|
|
432
|
-
@include heading-xxl-display;
|
|
433
|
-
}
|
|
434
|
-
```
|
|
435
|
-
|
|
436
|
-
Heading styles:
|
|
437
|
-
- Display variants use PT Serif (--font-family-display)
|
|
438
|
-
- Regular variants use Inter (--font-family-base)
|
|
439
|
-
============================================================================ */
|
|
440
|
-
|
|
441
|
-
/* Heading XXL Display - PT Serif, 50px, weight 400, line-height 54px */
|
|
442
|
-
@mixin heading-xxl-display {
|
|
443
|
-
font-family: var(--font-family-display);
|
|
444
|
-
font-size: var(--font-size-xxl);
|
|
445
|
-
font-weight: var(--font-weight-regular);
|
|
446
|
-
line-height: var(--font-line-height-xxxl);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/* Heading XXL - Inter, 50px, weight 400, line-height 54px */
|
|
450
|
-
@mixin heading-xxl {
|
|
451
|
-
font-family: var(--font-family-base);
|
|
452
|
-
font-size: var(--font-size-xxl);
|
|
453
|
-
font-weight: var(--font-weight-regular);
|
|
454
|
-
line-height: var(--font-line-height-xxxl);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
/* Heading XL Display - PT Serif, 30px, weight 400, line-height 34px */
|
|
458
|
-
@mixin heading-xl-display {
|
|
459
|
-
font-family: var(--font-family-display);
|
|
460
|
-
font-size: var(--font-size-xl);
|
|
461
|
-
font-weight: var(--font-weight-regular);
|
|
462
|
-
line-height: var(--font-line-height-xxl);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/* Heading XL - Inter, 30px, weight 500, line-height 34px */
|
|
466
|
-
@mixin heading-xl {
|
|
467
|
-
font-family: var(--font-family-base);
|
|
468
|
-
font-size: var(--font-size-xl);
|
|
469
|
-
font-weight: var(--font-weight-medium);
|
|
470
|
-
line-height: var(--font-line-height-xxl);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/* Heading L - Inter, 22px, weight 500, line-height 26px */
|
|
474
|
-
@mixin heading-l {
|
|
475
|
-
font-family: var(--font-family-base);
|
|
476
|
-
font-size: var(--font-size-l);
|
|
477
|
-
font-weight: var(--font-weight-medium);
|
|
478
|
-
line-height: var(--font-line-height-xl);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/* Heading L Link - Inter, 22px, weight 400, line-height 26px */
|
|
482
|
-
@mixin heading-l-link {
|
|
483
|
-
font-family: var(--font-family-base);
|
|
484
|
-
font-size: var(--font-size-l);
|
|
485
|
-
font-weight: var(--font-weight-regular);
|
|
486
|
-
line-height: var(--font-line-height-xl);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
/* Heading M - Inter, 20px, weight 500, line-height 24px */
|
|
490
|
-
@mixin heading-m {
|
|
491
|
-
font-family: var(--font-family-base);
|
|
492
|
-
font-size: var(--font-size-m);
|
|
493
|
-
font-weight: var(--font-weight-medium);
|
|
494
|
-
line-height: var(--font-line-height-l);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/* Heading S - Inter, 18px, weight 500, line-height 22px */
|
|
498
|
-
@mixin heading-s {
|
|
499
|
-
font-family: var(--font-family-base);
|
|
500
|
-
font-size: var(--font-size-s);
|
|
501
|
-
font-weight: var(--font-weight-medium);
|
|
502
|
-
line-height: var(--font-line-height-m);
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/* Body L - Inter, 18px, weight 400, line-height 26px */
|
|
506
|
-
@mixin body-l {
|
|
507
|
-
font-family: var(--font-family-base);
|
|
508
|
-
font-size: var(--font-size-s);
|
|
509
|
-
font-weight: var(--font-weight-regular);
|
|
510
|
-
line-height: var(--font-line-height-xl);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/* Body M - Inter, 16px, weight 400, line-height 22px */
|
|
514
|
-
@mixin body-m {
|
|
515
|
-
font-family: var(--font-family-base);
|
|
516
|
-
font-size: var(--font-size-xs);
|
|
517
|
-
font-weight: var(--font-weight-regular);
|
|
518
|
-
line-height: var(--font-line-height-m);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/* Body S - Inter, 14px, weight 400, line-height 19px */
|
|
522
|
-
@mixin body-s {
|
|
523
|
-
font-family: var(--font-family-base);
|
|
524
|
-
font-size: var(--font-size-xxs);
|
|
525
|
-
font-weight: var(--font-weight-regular);
|
|
526
|
-
line-height: var(--font-line-height-s);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/* Caption - Inter, 12px, weight 400, line-height 16px */
|
|
530
|
-
@mixin caption {
|
|
531
|
-
font-family: var(--font-family-base);
|
|
532
|
-
font-size: var(--font-size-xxxs);
|
|
533
|
-
font-weight: var(--font-weight-regular);
|
|
534
|
-
line-height: var(--font-line-height-xxs);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/* Label - Inter, 16px, weight 500, line-height 19px */
|
|
538
|
-
@mixin label {
|
|
539
|
-
font-family: var(--font-family-base);
|
|
540
|
-
font-size: var(--font-size-xs);
|
|
541
|
-
font-weight: var(--font-weight-medium);
|
|
542
|
-
line-height: var(--font-line-height-s);
|
|
543
|
-
}
|