@navikt/ds-css 7.40.0 → 8.0.1
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/CHANGELOG.md +12 -0
- package/config/{bundle.darkside.ts → bundle.ts} +42 -36
- package/dist/component/accordion.css +136 -170
- package/dist/component/accordion.min.css +1 -1
- package/dist/component/actionmenu.css +148 -190
- package/dist/component/actionmenu.min.css +1 -1
- package/dist/component/alert.css +135 -301
- package/dist/component/alert.min.css +1 -1
- package/dist/component/button.css +172 -485
- package/dist/component/button.min.css +1 -3
- package/dist/component/chat.css +88 -98
- package/dist/component/chat.min.css +1 -1
- package/dist/component/chips.css +116 -201
- package/dist/component/chips.min.css +1 -1
- package/dist/component/copybutton.css +18 -220
- package/dist/component/copybutton.min.css +1 -1
- package/dist/component/date.css +218 -283
- package/dist/component/date.min.css +1 -1
- package/dist/component/dialog.css +159 -184
- package/dist/component/dialog.min.css +1 -1
- package/dist/component/dropdown.css +70 -75
- package/dist/component/dropdown.min.css +1 -1
- package/dist/component/expansioncard.css +135 -209
- package/dist/component/expansioncard.min.css +1 -3
- package/dist/component/form.css +1742 -1841
- package/dist/component/form.min.css +1 -3
- package/dist/component/guidepanel.css +96 -71
- package/dist/component/guidepanel.min.css +1 -1
- package/dist/component/helptext.css +42 -70
- package/dist/component/helptext.min.css +1 -1
- package/dist/component/inlinemessage.css +13 -37
- package/dist/component/inlinemessage.min.css +1 -1
- package/dist/component/internalheader.css +86 -87
- package/dist/component/internalheader.min.css +1 -1
- package/dist/component/link.css +44 -66
- package/dist/component/link.min.css +1 -1
- package/dist/component/linkanchor.css +48 -41
- package/dist/component/linkanchor.min.css +1 -1
- package/dist/component/linkcard.css +128 -127
- package/dist/component/linkcard.min.css +1 -1
- package/dist/component/linkpanel.css +33 -38
- package/dist/component/linkpanel.min.css +1 -1
- package/dist/component/list.css +59 -70
- package/dist/component/list.min.css +1 -1
- package/dist/component/loader.css +90 -99
- package/dist/component/loader.min.css +1 -1
- package/dist/component/modal.css +172 -182
- package/dist/component/modal.min.css +1 -1
- package/dist/component/pagination.css +32 -63
- package/dist/component/pagination.min.css +1 -1
- package/dist/component/panel.css +14 -8
- package/dist/component/panel.min.css +1 -1
- package/dist/component/popover.css +20 -77
- package/dist/component/popover.min.css +1 -1
- package/dist/component/primitives.css +1048 -1094
- package/dist/component/primitives.min.css +1 -1
- package/dist/component/process.css +136 -140
- package/dist/component/process.min.css +1 -1
- package/dist/component/progressbar.css +90 -89
- package/dist/component/progressbar.min.css +1 -1
- package/dist/component/readmore.css +78 -75
- package/dist/component/readmore.min.css +1 -1
- package/dist/component/skeleton.css +53 -50
- package/dist/component/skeleton.min.css +1 -1
- package/dist/component/stepper.css +186 -271
- package/dist/component/stepper.min.css +1 -1
- package/dist/component/table.css +224 -297
- package/dist/component/table.min.css +1 -1
- package/dist/component/tabs.css +113 -125
- package/dist/component/tabs.min.css +1 -1
- package/dist/component/tag.css +68 -187
- package/dist/component/tag.min.css +1 -1
- package/dist/component/theme.css +13 -0
- package/dist/component/theme.min.css +1 -0
- package/dist/component/timeline.css +223 -394
- package/dist/component/timeline.min.css +1 -1
- package/dist/component/togglegroup.css +87 -157
- package/dist/component/togglegroup.min.css +1 -1
- package/dist/component/tooltip.css +113 -62
- package/dist/component/tooltip.min.css +1 -1
- package/dist/component/typography.css +228 -217
- package/dist/component/typography.min.css +1 -1
- package/dist/components.css +6227 -8576
- package/dist/components.min.css +1 -7
- package/dist/global/baseline.css +47 -133
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/fonts.css +112 -116
- package/dist/global/fonts.min.css +1 -1
- package/dist/global/print.css +54 -73
- package/dist/global/print.min.css +1 -1
- package/dist/global/reset.css +95 -294
- package/dist/global/reset.min.css +1 -1
- package/dist/global/tokens.css +862 -336
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +7339 -9507
- package/dist/index.min.css +1 -9
- package/package.json +5 -16
- package/src/README.md +23 -0
- package/{darkside/action-menu.darkside.css → src/action-menu.css} +2 -2
- package/{darkside/baseline/baseline.darkside.css → src/baseline/baseline.css} +11 -0
- package/{darkside/baseline/fonts.darkside.css → src/baseline/fonts.css} +0 -0
- package/src/baseline/tokens.css +1 -0
- package/{darkside/button.darkside.css → src/button.css} +33 -10
- package/{darkside/form/combobox.darkside.css → src/form/combobox.css} +1 -1
- package/{darkside/form/file-upload.darkside.css → src/form/file-upload.css} +13 -7
- package/src/form/index.css +14 -0
- package/{darkside/form/search.darkside.css → src/form/search.css} +2 -2
- package/src/index.css +64 -0
- package/{darkside/link-anchor.darkside.css → src/link-anchor.css} +4 -0
- package/{darkside/link-card.darkside.css → src/link-card.css} +2 -2
- package/{darkside/link.darkside.css → src/link.css} +0 -4
- package/{darkside/modal.darkside.css → src/modal.css} +2 -3
- package/src/primitives/index.css +7 -0
- package/{darkside/progress-bar.darkside.css → src/progress-bar.css} +5 -6
- package/{darkside/table.darkside.css → src/table.css} +4 -4
- package/{darkside/theme.darkside.css → src/theme.css} +0 -8
- package/{darkside/typography.darkside.css → src/typography.css} +8 -0
- package/accordion.css +0 -198
- package/action-menu.css +0 -227
- package/alert.css +0 -380
- package/baseline/_inline-reset.css +0 -54
- package/baseline/_utilities.css +0 -62
- package/baseline/baseline.css +0 -27
- package/baseline/fonts.css +0 -129
- package/baseline/index.css +0 -5
- package/baseline/reset.css +0 -294
- package/baseline/tokens.css +0 -1
- package/button.css +0 -548
- package/chat.css +0 -117
- package/chips.css +0 -234
- package/config/tests/bundle.test.ts +0 -51
- package/copybutton.css +0 -226
- package/darkside/README.md +0 -25
- package/darkside/baseline/print.darkside.css +0 -75
- package/darkside/baseline/tokens.darkside.css +0 -1
- package/darkside/form/index.css +0 -14
- package/darkside/index.css +0 -64
- package/darkside/primitives/index.css +0 -7
- package/date.css +0 -334
- package/dialog.css +0 -253
- package/dist/darkside/component/accordion.css +0 -164
- package/dist/darkside/component/accordion.min.css +0 -1
- package/dist/darkside/component/actionmenu.css +0 -182
- package/dist/darkside/component/actionmenu.min.css +0 -1
- package/dist/darkside/component/alert.css +0 -181
- package/dist/darkside/component/alert.min.css +0 -1
- package/dist/darkside/component/button.css +0 -208
- package/dist/darkside/component/button.min.css +0 -1
- package/dist/darkside/component/chat.css +0 -103
- package/dist/darkside/component/chat.min.css +0 -1
- package/dist/darkside/component/chips.css +0 -146
- package/dist/darkside/component/chips.min.css +0 -1
- package/dist/darkside/component/copybutton.css +0 -23
- package/dist/darkside/component/copybutton.min.css +0 -1
- package/dist/darkside/component/date.css +0 -268
- package/dist/darkside/component/date.min.css +0 -1
- package/dist/darkside/component/dialog.css +0 -232
- package/dist/darkside/component/dialog.min.css +0 -1
- package/dist/darkside/component/dropdown.css +0 -82
- package/dist/darkside/component/dropdown.min.css +0 -1
- package/dist/darkside/component/expansioncard.css +0 -164
- package/dist/darkside/component/expansioncard.min.css +0 -1
- package/dist/darkside/component/form.css +0 -1875
- package/dist/darkside/component/form.min.css +0 -1
- package/dist/darkside/component/guidepanel.css +0 -117
- package/dist/darkside/component/guidepanel.min.css +0 -1
- package/dist/darkside/component/helptext.css +0 -53
- package/dist/darkside/component/helptext.min.css +0 -1
- package/dist/darkside/component/inlinemessage.css +0 -17
- package/dist/darkside/component/inlinemessage.min.css +0 -1
- package/dist/darkside/component/internalheader.css +0 -100
- package/dist/darkside/component/internalheader.min.css +0 -1
- package/dist/darkside/component/link.css +0 -57
- package/dist/darkside/component/link.min.css +0 -1
- package/dist/darkside/component/linkanchor.css +0 -52
- package/dist/darkside/component/linkanchor.min.css +0 -1
- package/dist/darkside/component/linkcard.css +0 -124
- package/dist/darkside/component/linkcard.min.css +0 -1
- package/dist/darkside/component/linkpanel.css +0 -38
- package/dist/darkside/component/linkpanel.min.css +0 -1
- package/dist/darkside/component/list.css +0 -75
- package/dist/darkside/component/list.min.css +0 -1
- package/dist/darkside/component/loader.css +0 -107
- package/dist/darkside/component/loader.min.css +0 -1
- package/dist/darkside/component/modal.css +0 -188
- package/dist/darkside/component/modal.min.css +0 -1
- package/dist/darkside/component/pagination.css +0 -38
- package/dist/darkside/component/pagination.min.css +0 -1
- package/dist/darkside/component/panel.css +0 -12
- package/dist/darkside/component/panel.min.css +0 -1
- package/dist/darkside/component/popover.css +0 -24
- package/dist/darkside/component/popover.min.css +0 -1
- package/dist/darkside/component/primitives.css +0 -1293
- package/dist/darkside/component/primitives.min.css +0 -1
- package/dist/darkside/component/process.css +0 -192
- package/dist/darkside/component/process.min.css +0 -1
- package/dist/darkside/component/progressbar.css +0 -106
- package/dist/darkside/component/progressbar.min.css +0 -1
- package/dist/darkside/component/readmore.css +0 -94
- package/dist/darkside/component/readmore.min.css +0 -1
- package/dist/darkside/component/skeleton.css +0 -66
- package/dist/darkside/component/skeleton.min.css +0 -1
- package/dist/darkside/component/stepper.css +0 -226
- package/dist/darkside/component/stepper.min.css +0 -1
- package/dist/darkside/component/table.css +0 -289
- package/dist/darkside/component/table.min.css +0 -1
- package/dist/darkside/component/tabs.css +0 -138
- package/dist/darkside/component/tabs.min.css +0 -1
- package/dist/darkside/component/tag.css +0 -77
- package/dist/darkside/component/tag.min.css +0 -1
- package/dist/darkside/component/theme.css +0 -17
- package/dist/darkside/component/theme.min.css +0 -1
- package/dist/darkside/component/timeline.css +0 -275
- package/dist/darkside/component/timeline.min.css +0 -1
- package/dist/darkside/component/togglegroup.css +0 -107
- package/dist/darkside/component/togglegroup.min.css +0 -1
- package/dist/darkside/component/tooltip.css +0 -128
- package/dist/darkside/component/tooltip.min.css +0 -1
- package/dist/darkside/component/typography.css +0 -273
- package/dist/darkside/component/typography.min.css +0 -1
- package/dist/darkside/components.css +0 -7876
- package/dist/darkside/components.min.css +0 -1
- package/dist/darkside/global/baseline.css +0 -43
- package/dist/darkside/global/baseline.min.css +0 -1
- package/dist/darkside/global/fonts.css +0 -109
- package/dist/darkside/global/fonts.min.css +0 -1
- package/dist/darkside/global/print.css +0 -52
- package/dist/darkside/global/print.min.css +0 -1
- package/dist/darkside/global/reset.css +0 -93
- package/dist/darkside/global/reset.min.css +0 -1
- package/dist/darkside/global/tokens.css +0 -864
- package/dist/darkside/global/tokens.min.css +0 -1
- package/dist/darkside/index.css +0 -9040
- package/dist/darkside/index.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/accordion.css +0 -164
- package/dist/darkside/version/7.40.0/component/accordion.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/actionmenu.css +0 -182
- package/dist/darkside/version/7.40.0/component/actionmenu.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/alert.css +0 -181
- package/dist/darkside/version/7.40.0/component/alert.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/button.css +0 -208
- package/dist/darkside/version/7.40.0/component/button.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/chat.css +0 -103
- package/dist/darkside/version/7.40.0/component/chat.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/chips.css +0 -146
- package/dist/darkside/version/7.40.0/component/chips.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/copybutton.css +0 -23
- package/dist/darkside/version/7.40.0/component/copybutton.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/date.css +0 -268
- package/dist/darkside/version/7.40.0/component/date.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/dialog.css +0 -232
- package/dist/darkside/version/7.40.0/component/dialog.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/dropdown.css +0 -82
- package/dist/darkside/version/7.40.0/component/dropdown.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/expansioncard.css +0 -164
- package/dist/darkside/version/7.40.0/component/expansioncard.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/form.css +0 -1875
- package/dist/darkside/version/7.40.0/component/form.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/guidepanel.css +0 -117
- package/dist/darkside/version/7.40.0/component/guidepanel.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/helptext.css +0 -53
- package/dist/darkside/version/7.40.0/component/helptext.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/inlinemessage.css +0 -17
- package/dist/darkside/version/7.40.0/component/inlinemessage.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/internalheader.css +0 -100
- package/dist/darkside/version/7.40.0/component/internalheader.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/link.css +0 -57
- package/dist/darkside/version/7.40.0/component/link.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/linkanchor.css +0 -52
- package/dist/darkside/version/7.40.0/component/linkanchor.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/linkcard.css +0 -124
- package/dist/darkside/version/7.40.0/component/linkcard.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/linkpanel.css +0 -38
- package/dist/darkside/version/7.40.0/component/linkpanel.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/list.css +0 -75
- package/dist/darkside/version/7.40.0/component/list.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/loader.css +0 -107
- package/dist/darkside/version/7.40.0/component/loader.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/modal.css +0 -188
- package/dist/darkside/version/7.40.0/component/modal.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/pagination.css +0 -38
- package/dist/darkside/version/7.40.0/component/pagination.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/panel.css +0 -12
- package/dist/darkside/version/7.40.0/component/panel.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/popover.css +0 -24
- package/dist/darkside/version/7.40.0/component/popover.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/primitives.css +0 -1293
- package/dist/darkside/version/7.40.0/component/primitives.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/process.css +0 -192
- package/dist/darkside/version/7.40.0/component/process.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/progressbar.css +0 -106
- package/dist/darkside/version/7.40.0/component/progressbar.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/readmore.css +0 -94
- package/dist/darkside/version/7.40.0/component/readmore.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/skeleton.css +0 -66
- package/dist/darkside/version/7.40.0/component/skeleton.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/stepper.css +0 -226
- package/dist/darkside/version/7.40.0/component/stepper.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/table.css +0 -289
- package/dist/darkside/version/7.40.0/component/table.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/tabs.css +0 -138
- package/dist/darkside/version/7.40.0/component/tabs.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/tag.css +0 -77
- package/dist/darkside/version/7.40.0/component/tag.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/theme.css +0 -17
- package/dist/darkside/version/7.40.0/component/theme.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/timeline.css +0 -275
- package/dist/darkside/version/7.40.0/component/timeline.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/togglegroup.css +0 -107
- package/dist/darkside/version/7.40.0/component/togglegroup.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/tooltip.css +0 -128
- package/dist/darkside/version/7.40.0/component/tooltip.min.css +0 -1
- package/dist/darkside/version/7.40.0/component/typography.css +0 -273
- package/dist/darkside/version/7.40.0/component/typography.min.css +0 -1
- package/dist/darkside/version/7.40.0/components.css +0 -7876
- package/dist/darkside/version/7.40.0/components.min.css +0 -1
- package/dist/darkside/version/7.40.0/global/baseline.css +0 -43
- package/dist/darkside/version/7.40.0/global/baseline.min.css +0 -1
- package/dist/darkside/version/7.40.0/global/fonts.css +0 -109
- package/dist/darkside/version/7.40.0/global/fonts.min.css +0 -1
- package/dist/darkside/version/7.40.0/global/print.css +0 -52
- package/dist/darkside/version/7.40.0/global/print.min.css +0 -1
- package/dist/darkside/version/7.40.0/global/reset.css +0 -93
- package/dist/darkside/version/7.40.0/global/reset.min.css +0 -1
- package/dist/darkside/version/7.40.0/global/tokens.css +0 -864
- package/dist/darkside/version/7.40.0/global/tokens.min.css +0 -1
- package/dist/darkside/version/7.40.0/index.css +0 -9040
- package/dist/darkside/version/7.40.0/index.min.css +0 -1
- package/dropdown.css +0 -91
- package/expansioncard.css +0 -239
- package/form/combobox.css +0 -431
- package/form/confirmation-panel.css +0 -53
- package/form/error-summary.css +0 -55
- package/form/fieldset.css +0 -51
- package/form/file-upload.css +0 -224
- package/form/form-progress.css +0 -53
- package/form/form-summary.css +0 -90
- package/form/form.css +0 -52
- package/form/index.css +0 -17
- package/form/radio-checkbox.css +0 -397
- package/form/search.css +0 -228
- package/form/select.css +0 -113
- package/form/switch.css +0 -304
- package/form/text-field.css +0 -113
- package/form/textarea.css +0 -143
- package/guide-panel.css +0 -96
- package/help-text.css +0 -85
- package/index.css +0 -42
- package/inline-message.css +0 -45
- package/internalheader.css +0 -105
- package/link-anchor.css +0 -53
- package/link-card.css +0 -127
- package/link-panel.css +0 -47
- package/link.css +0 -79
- package/list.css +0 -88
- package/loader.css +0 -120
- package/modal.css +0 -228
- package/pagination.css +0 -73
- package/panel.css +0 -10
- package/popover.css +0 -84
- package/primitives/base.css +0 -809
- package/primitives/bleed.css +0 -103
- package/primitives/box.css +0 -66
- package/primitives/hgrid.css +0 -80
- package/primitives/index.css +0 -7
- package/primitives/page.css +0 -62
- package/primitives/responsive.css +0 -59
- package/primitives/stack.css +0 -155
- package/process.css +0 -201
- package/progress-bar.css +0 -108
- package/read-more.css +0 -95
- package/skeleton.css +0 -67
- package/stepper.css +0 -312
- package/table.css +0 -366
- package/tabs.css +0 -154
- package/tag.css +0 -200
- package/timeline.css +0 -450
- package/toggle-group.css +0 -181
- package/tokens.json +0 -485
- package/tooltip.css +0 -81
- package/typography.css +0 -268
- package/vitest.config.ts +0 -5
- /package/{darkside/accordion.darkside.css → src/accordion.css} +0 -0
- /package/{darkside/alert.darkside.css → src/alert.css} +0 -0
- /package/{baseline → src/baseline}/print.css +0 -0
- /package/{darkside/baseline/reset.darkside.css → src/baseline/reset.css} +0 -0
- /package/{darkside/chat.darkside.css → src/chat.css} +0 -0
- /package/{darkside/chips.darkside.css → src/chips.css} +0 -0
- /package/{darkside/copybutton.darkside.css → src/copybutton.css} +0 -0
- /package/{darkside/date.darkside.css → src/date.css} +0 -0
- /package/{darkside/dialog.darkside.css → src/dialog.css} +0 -0
- /package/{darkside/dropdown.darkside.css → src/dropdown.css} +0 -0
- /package/{darkside/expansioncard.darkside.css → src/expansioncard.css} +0 -0
- /package/{darkside/form/confirmation-panel.darkside.css → src/form/confirmation-panel.css} +0 -0
- /package/{darkside/form/error-summary.darkside.css → src/form/error-summary.css} +0 -0
- /package/{darkside/form/fieldset.darkside.css → src/form/fieldset.css} +0 -0
- /package/{darkside/form/form-progress.darkside.css → src/form/form-progress.css} +0 -0
- /package/{darkside/form/form-summary.darkside.css → src/form/form-summary.css} +0 -0
- /package/{darkside/form/form.darkside.css → src/form/form.css} +0 -0
- /package/{darkside/form/radio-checkbox.darkside.css → src/form/radio-checkbox.css} +0 -0
- /package/{darkside/form/select.darkside.css → src/form/select.css} +0 -0
- /package/{darkside/form/switch.darkside.css → src/form/switch.css} +0 -0
- /package/{darkside/form/text-field.darkside.css → src/form/text-field.css} +0 -0
- /package/{darkside/form/textarea.darkside.css → src/form/textarea.css} +0 -0
- /package/{darkside/guide-panel.darkside.css → src/guide-panel.css} +0 -0
- /package/{darkside/help-text.darkside.css → src/help-text.css} +0 -0
- /package/{darkside/inline-message.darkside.css → src/inline-message.css} +0 -0
- /package/{darkside/internalheader.darkside.css → src/internalheader.css} +0 -0
- /package/{darkside/link-panel.darkside.css → src/link-panel.css} +0 -0
- /package/{darkside/list.darkside.css → src/list.css} +0 -0
- /package/{darkside/loader.darkside.css → src/loader.css} +0 -0
- /package/{darkside/pagination.darkside.css → src/pagination.css} +0 -0
- /package/{darkside/panel.darkside.css → src/panel.css} +0 -0
- /package/{darkside/popover.darkside.css → src/popover.css} +0 -0
- /package/{darkside/primitives/base.darkside.css → src/primitives/base.css} +0 -0
- /package/{darkside/primitives/bleed.darkside.css → src/primitives/bleed.css} +0 -0
- /package/{darkside/primitives/box.darkside.css → src/primitives/box.css} +0 -0
- /package/{darkside/primitives/hgrid.darkside.css → src/primitives/hgrid.css} +0 -0
- /package/{darkside/primitives/page.darkside.css → src/primitives/page.css} +0 -0
- /package/{darkside/primitives/responsive.darkside.css → src/primitives/responsive.css} +0 -0
- /package/{darkside/primitives/stack.darkside.css → src/primitives/stack.css} +0 -0
- /package/{darkside/process.darkside.css → src/process.css} +0 -0
- /package/{darkside/read-more.darkside.css → src/read-more.css} +0 -0
- /package/{darkside/skeleton.darkside.css → src/skeleton.css} +0 -0
- /package/{darkside/stepper.darkside.css → src/stepper.css} +0 -0
- /package/{darkside/tabs.darkside.css → src/tabs.css} +0 -0
- /package/{darkside/tag.darkside.css → src/tag.css} +0 -0
- /package/{darkside/timeline.darkside.css → src/timeline.css} +0 -0
- /package/{darkside/toggle-group.darkside.css → src/toggle-group.css} +0 -0
- /package/{darkside/tooltip.darkside.css → src/tooltip.css} +0 -0
package/form/select.css
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
.navds-select__input {
|
|
2
|
-
appearance: none;
|
|
3
|
-
background-color: var(--ac-select-bg, var(--a-surface-default));
|
|
4
|
-
border-radius: var(--a-border-radius-medium);
|
|
5
|
-
border: 1px solid var(--ac-select-border, var(--a-border-default));
|
|
6
|
-
color: var(--ac-select-text, var(--a-text-default));
|
|
7
|
-
width: 100%;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
min-height: 3rem;
|
|
10
|
-
display: inline-block;
|
|
11
|
-
position: relative;
|
|
12
|
-
padding: 0.5rem;
|
|
13
|
-
padding-right: 2rem;
|
|
14
|
-
scroll-margin-block-start: 4rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@media (forced-colors: active) {
|
|
18
|
-
.navds-select__input.navds-select__input.navds-select__input {
|
|
19
|
-
background-color: ButtonFace;
|
|
20
|
-
border-color: ButtonText;
|
|
21
|
-
color: ButtonText;
|
|
22
|
-
forced-color-adjust: none;
|
|
23
|
-
box-shadow: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.navds-select__input.navds-select__input.navds-select__input:focus {
|
|
27
|
-
outline: 2px solid highlight;
|
|
28
|
-
outline-offset: 2px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.navds-select__input:hover {
|
|
33
|
-
border-color: var(--ac-select-hover-border, var(--a-border-action-hover));
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.navds-select__input:focus {
|
|
38
|
-
outline: none;
|
|
39
|
-
border-color: var(--ac-select-active-border, var(--a-border-action-selected));
|
|
40
|
-
box-shadow: var(--a-shadow-focus);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.navds-select__container {
|
|
44
|
-
position: relative;
|
|
45
|
-
display: flex;
|
|
46
|
-
width: 100%;
|
|
47
|
-
color: var(--a-text-default);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.navds-select__chevron {
|
|
51
|
-
position: absolute;
|
|
52
|
-
font-size: 1.5rem;
|
|
53
|
-
right: var(--a-spacing-2);
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
align-self: center;
|
|
56
|
-
color: var(--ac-select-text, var(--a-text-default));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@media (forced-colors: active) {
|
|
60
|
-
.navds-select__chevron {
|
|
61
|
-
color: ButtonText;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.navds-form-field--small .navds-select__input {
|
|
66
|
-
min-height: 2rem;
|
|
67
|
-
padding: 0 var(--a-spacing-8) 0 var(--a-spacing-2);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.navds-form-field--small .navds-select__chevron {
|
|
71
|
-
right: var(--a-spacing-1-alt);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
Error handling
|
|
76
|
-
*/
|
|
77
|
-
.navds-select--error > * .navds-select__input:not(:hover, :disabled) {
|
|
78
|
-
box-shadow: 0 0 0 1px var(--ac-select-error-border, var(--a-surface-danger));
|
|
79
|
-
border-color: var(--ac-select-error-border, var(--a-surface-danger));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.navds-select--error .navds-select__input:focus {
|
|
83
|
-
box-shadow: var(--a-shadow-focus);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
Disabled
|
|
88
|
-
*/
|
|
89
|
-
.navds-select__input:disabled {
|
|
90
|
-
background-color: var(--ac-select-bg, var(--a-surface-default));
|
|
91
|
-
border: 1px solid var(--ac-select-border, var(--a-border-default));
|
|
92
|
-
box-shadow: none;
|
|
93
|
-
cursor: not-allowed;
|
|
94
|
-
|
|
95
|
-
/* Chrome-fix */
|
|
96
|
-
opacity: 1;
|
|
97
|
-
color: var(--a-text-default);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* Chrome-fix */
|
|
101
|
-
.navds-select__input:disabled > option {
|
|
102
|
-
color: var(--a-text-default);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.navds-select--readonly .navds-select__input {
|
|
106
|
-
background-color: var(--a-surface-subtle);
|
|
107
|
-
border-color: var(--a-border-subtle);
|
|
108
|
-
cursor: default;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.navds-select--readonly .navds-select__chevron {
|
|
112
|
-
color: var(--a-gray-500);
|
|
113
|
-
}
|
package/form/switch.css
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
.navds-switch {
|
|
2
|
-
position: relative;
|
|
3
|
-
min-height: 3rem;
|
|
4
|
-
width: fit-content;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.navds-switch--right {
|
|
8
|
-
width: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.navds-switch--small {
|
|
12
|
-
position: relative;
|
|
13
|
-
min-height: 2rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Input */
|
|
17
|
-
.navds-switch__input {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
position: absolute;
|
|
20
|
-
z-index: 1;
|
|
21
|
-
width: 3rem;
|
|
22
|
-
height: 3rem;
|
|
23
|
-
opacity: 0;
|
|
24
|
-
top: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.navds-switch--small > .navds-switch__input {
|
|
28
|
-
height: 2rem;
|
|
29
|
-
width: 2.5rem;
|
|
30
|
-
top: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Label */
|
|
34
|
-
.navds-switch__label-wrapper {
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
color: var(--a-text-default);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.navds-switch__content {
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
gap: 0.125rem;
|
|
43
|
-
padding: 0.75rem 0 0.75rem 3.25rem;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.navds-switch--right > .navds-switch__label-wrapper > .navds-switch__content {
|
|
47
|
-
padding: 0.75rem 3.25rem 0.75rem 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
51
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.navds-switch--right.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
55
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem calc(var(--a-spacing-2) - var(--a-spacing-05)) 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.navds-switch--with-description,
|
|
59
|
-
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch--with-description {
|
|
60
|
-
padding-bottom: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
64
|
-
.navds-switch__label-wrapper:hover {
|
|
65
|
-
color: var(--ac-switch-action, var(--a-surface-action-selected));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.navds-switch__input:disabled:hover ~ .navds-switch__label-wrapper {
|
|
69
|
-
color: inherit;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Track */
|
|
73
|
-
.navds-switch__track {
|
|
74
|
-
width: 2.75rem;
|
|
75
|
-
height: 1.5rem;
|
|
76
|
-
background-color: var(--ac-switch-bg, var(--a-surface-default));
|
|
77
|
-
border: 2px solid var(--a-border-default);
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: var(--a-spacing-3);
|
|
80
|
-
left: 0;
|
|
81
|
-
border-radius: var(--a-border-radius-full);
|
|
82
|
-
transition-property: background-color, border-color;
|
|
83
|
-
transition-duration: 100ms;
|
|
84
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.navds-switch--small > .navds-switch__track {
|
|
88
|
-
top: var(--a-spacing-1-alt);
|
|
89
|
-
width: 2.25rem;
|
|
90
|
-
height: 1.25rem;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.navds-switch--right > .navds-switch__input,
|
|
94
|
-
.navds-switch--right > .navds-switch__track {
|
|
95
|
-
right: 0;
|
|
96
|
-
left: auto;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.navds-switch__input:checked ~ .navds-switch__track {
|
|
100
|
-
background-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
|
|
101
|
-
border-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.navds-switch__input:hover ~ .navds-switch__track {
|
|
105
|
-
background-color: var(--ac-switch-hover-bg, var(--a-surface-subtle));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.navds-switch__input:hover:checked:not(:disabled) ~ .navds-switch__track {
|
|
109
|
-
background-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
|
|
110
|
-
border-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.navds-switch__input:disabled ~ .navds-switch__track {
|
|
114
|
-
background-color: var(--ac-switch-bg, var(--a-surface-default));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.navds-switch__input:checked:disabled ~ .navds-switch__track {
|
|
118
|
-
background-color: var(--ac-switch-checked-bg, var(--a-border-action-selected));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
122
|
-
outline: 2px solid transparent;
|
|
123
|
-
outline-offset: 2px;
|
|
124
|
-
box-shadow:
|
|
125
|
-
0 0 0 1px var(--a-surface-default),
|
|
126
|
-
var(--a-shadow-focus);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@supports not selector(:focus-visible) {
|
|
130
|
-
.navds-switch__input:focus ~ .navds-switch__track {
|
|
131
|
-
outline: 2px solid transparent;
|
|
132
|
-
box-shadow:
|
|
133
|
-
0 0 0 1px var(--a-surface-default),
|
|
134
|
-
var(--a-shadow-focus);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/* Thumb */
|
|
139
|
-
.navds-switch__thumb {
|
|
140
|
-
background-color: var(--ac-switch-thumb-bg, var(--a-surface-neutral));
|
|
141
|
-
color: var(--ac-switch-thumb-icon, var(--a-icon-subtle));
|
|
142
|
-
border-radius: var(--a-border-radius-full);
|
|
143
|
-
width: 1.125rem;
|
|
144
|
-
height: 1.125rem;
|
|
145
|
-
position: absolute;
|
|
146
|
-
transform: translateX(0);
|
|
147
|
-
left: 0.0625rem;
|
|
148
|
-
top: 0.0625rem;
|
|
149
|
-
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
justify-content: center;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.navds-switch--small .navds-switch__thumb {
|
|
156
|
-
width: 0.875rem;
|
|
157
|
-
height: 0.875rem;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
161
|
-
transform: translateX(1.25rem);
|
|
162
|
-
color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
|
|
163
|
-
background-color: var(--a-surface-default);
|
|
164
|
-
width: 1.25rem;
|
|
165
|
-
height: 1.25rem;
|
|
166
|
-
left: 0;
|
|
167
|
-
top: 0;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.navds-switch--small > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
171
|
-
transform: translateX(1rem);
|
|
172
|
-
width: 1rem;
|
|
173
|
-
height: 1rem;
|
|
174
|
-
left: 0;
|
|
175
|
-
top: 0;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@media (hover: hover) and (pointer: fine) {
|
|
179
|
-
.navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
180
|
-
transform: translateX(0.125rem);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
184
|
-
transform: translateX(1.125rem);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.navds-switch--small > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
188
|
-
transform: translateX(0.875rem);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.navds-switch__input:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
193
|
-
transform: translateX(0);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
197
|
-
transform: translateX(1.25rem);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.navds-switch--small > .navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
201
|
-
transform: translateX(1rem);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/* Disabled */
|
|
205
|
-
.navds-switch__input:disabled {
|
|
206
|
-
appearance: none;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.navds-switch--disabled:not(.navds-switch--loading) {
|
|
210
|
-
opacity: 0.3;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.navds-switch__input:disabled,
|
|
214
|
-
.navds-switch__input:disabled ~ .navds-switch__label-wrapper {
|
|
215
|
-
cursor: not-allowed;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* Readonly */
|
|
219
|
-
.navds-switch--readonly > .navds-switch__track,
|
|
220
|
-
.navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__track,
|
|
221
|
-
.navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track,
|
|
222
|
-
.navds-switch--readonly > .navds-switch__input:checked:hover ~ .navds-switch__track {
|
|
223
|
-
background-color: var(--a-surface-neutral-moderate);
|
|
224
|
-
border-color: var(--a-border-subtle);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.navds-switch--readonly > .navds-switch__label-wrapper,
|
|
228
|
-
.navds-switch--readonly > .navds-switch__input {
|
|
229
|
-
cursor: default;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
233
|
-
.navds-switch--readonly .navds-switch__label-wrapper:hover {
|
|
234
|
-
color: var(--a-text-default);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.navds-switch--readonly .navds-switch__label {
|
|
238
|
-
display: inline-flex;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.navds-switch--readonly .navds-switch__thumb {
|
|
242
|
-
background-color: var(--a-surface-neutral);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
246
|
-
color: var(--a-icon-on-neutral);
|
|
247
|
-
background-color: var(--a-surface-neutral);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
@media (hover: hover) and (pointer: fine) {
|
|
251
|
-
.navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
252
|
-
transform: translateX(0);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.navds-switch--readonly > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
256
|
-
transform: translateX(1.25rem);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@media (forced-colors: active) {
|
|
261
|
-
.navds-switch__input:hover ~ .navds-switch__label-wrapper,
|
|
262
|
-
.navds-switch__label-wrapper:hover {
|
|
263
|
-
color: highlight;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.navds-switch__thumb,
|
|
267
|
-
.navds-switch--readonly .navds-switch__thumb,
|
|
268
|
-
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
|
|
269
|
-
.navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
270
|
-
background-color: fieldtext;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
|
|
274
|
-
.navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
275
|
-
color: field;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
279
|
-
background-color: graytext;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
283
|
-
outline: 2px solid highlight;
|
|
284
|
-
outline-offset: 2px;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.navds-switch--disabled:not(.navds-switch--loading) {
|
|
288
|
-
opacity: 1;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
|
|
292
|
-
background-color: graytext;
|
|
293
|
-
border-color: graytext;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
|
|
297
|
-
border-color: graytext;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
|
|
301
|
-
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper:hover {
|
|
302
|
-
color: graytext !important;
|
|
303
|
-
}
|
|
304
|
-
}
|
package/form/text-field.css
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
[data-theme="dark"] {
|
|
2
|
-
--__ac-textfield-text: var(--a-text-on-inverted);
|
|
3
|
-
--__ac-textfield-bg: var(--a-surface-inverted);
|
|
4
|
-
--__ac-textfield-border: var(--a-border-on-inverted);
|
|
5
|
-
--__ac-textfield-hover-border: var(--a-blue-200);
|
|
6
|
-
--__ac-textfield-placeholder: var(--a-gray-500);
|
|
7
|
-
--__ac-textfield-error-border: var(--a-red-300);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[data-theme="light"] {
|
|
11
|
-
--__ac-textfield-text: initial;
|
|
12
|
-
--__ac-textfield-bg: initial;
|
|
13
|
-
--__ac-textfield-border: initial;
|
|
14
|
-
--__ac-textfield-hover-border: initial;
|
|
15
|
-
--__ac-textfield-placeholder: initial;
|
|
16
|
-
--__ac-textfield-error-border: initial;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.navds-text-field__input {
|
|
20
|
-
appearance: none;
|
|
21
|
-
padding: var(--a-spacing-2);
|
|
22
|
-
background-color: var(--ac-textfield-bg, var(--__ac-textfield-bg, var(--a-surface-default)));
|
|
23
|
-
border-radius: var(--a-border-radius-medium);
|
|
24
|
-
border: 1px solid var(--ac-textfield-border, var(--__ac-textfield-border, var(--a-border-default)));
|
|
25
|
-
min-height: 3rem;
|
|
26
|
-
width: 100%;
|
|
27
|
-
color: var(--ac-textfield-text, var(--__ac-textfield-text, var(--a-text-default)));
|
|
28
|
-
scroll-margin-block-start: 4rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.navds-text-field__input[size] {
|
|
32
|
-
width: auto;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.navds-text-field__input::placeholder {
|
|
36
|
-
color: var(--ac-textfield-placeholder, var(--__ac-textfield-placeholder, var(--a-text-subtle)));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.navds-form-field--small .navds-text-field__input {
|
|
40
|
-
padding: 0 var(--a-spacing-2);
|
|
41
|
-
min-height: 2rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.navds-text-field__input:hover {
|
|
45
|
-
border-color: var(--ac-textfield-hover-border, var(--__ac-textfield-hover-border, var(--a-border-action-hover)));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.navds-text-field__input:focus-visible {
|
|
49
|
-
outline: 2px solid transparent;
|
|
50
|
-
outline-offset: 2px;
|
|
51
|
-
box-shadow: var(--a-shadow-focus);
|
|
52
|
-
border-color: var(--ac-textfield-active-border, var(--a-border-action-selected));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@supports not selector(:focus-visible) {
|
|
56
|
-
.navds-text-field__input:focus {
|
|
57
|
-
outline: none;
|
|
58
|
-
box-shadow: var(--a-shadow-focus);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
Error handling
|
|
64
|
-
*/
|
|
65
|
-
.navds-text-field--error > .navds-text-field__input:not(:hover, :disabled) {
|
|
66
|
-
border-color: var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
67
|
-
box-shadow: 0 0 0 1px var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.navds-text-field--error > .navds-text-field__input:focus-visible:not(:hover, :disabled) {
|
|
71
|
-
box-shadow:
|
|
72
|
-
0 0 0 1px var(--a-border-danger),
|
|
73
|
-
var(--a-shadow-focus);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@supports not selector(:focus-visible) {
|
|
77
|
-
.navds-text-field--error > .navds-text-field__input:focus:not(:hover, :disabled) {
|
|
78
|
-
box-shadow:
|
|
79
|
-
0 0 0 1px var(--a-border-danger),
|
|
80
|
-
var(--a-shadow-focus);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* Disabled handling */
|
|
85
|
-
.navds-text-field__input:disabled {
|
|
86
|
-
background-color: var(--ac-textfield-bg, var(--__ac-textfield-bg, var(--a-surface-default)));
|
|
87
|
-
border-color: var(--ac-textfield-border, var(--__ac-textfield-border, var(--a-border-default)));
|
|
88
|
-
box-shadow: none;
|
|
89
|
-
cursor: not-allowed;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.navds-text-field--readonly .navds-text-field__input {
|
|
93
|
-
background-color: var(--a-surface-subtle);
|
|
94
|
-
border-color: var(--a-border-subtle);
|
|
95
|
-
cursor: default;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Removes default search icon
|
|
100
|
-
*/
|
|
101
|
-
.navds-text-field__input[type="search"]::-webkit-search-decoration,
|
|
102
|
-
.navds-text-field__input[type="search"]::-webkit-search-cancel-button,
|
|
103
|
-
.navds-text-field__input[type="search"]::-webkit-search-results-button,
|
|
104
|
-
.navds-text-field__input[type="search"]::-webkit-search-results-decoration {
|
|
105
|
-
-webkit-appearance: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@media (forced-colors: active) {
|
|
109
|
-
.navds-text-field__input {
|
|
110
|
-
background-color: field;
|
|
111
|
-
color: fieldtext;
|
|
112
|
-
}
|
|
113
|
-
}
|
package/form/textarea.css
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
[data-theme="dark"] {
|
|
2
|
-
--__ac-textarea-text: var(--a-text-on-inverted);
|
|
3
|
-
--__ac-textarea-bg: var(--a-transparent);
|
|
4
|
-
--__ac-textarea-border: var(--a-border-on-inverted);
|
|
5
|
-
--__ac-textarea-hover-border: var(--a-blue-200);
|
|
6
|
-
--__ac-textarea-placeholder: var(--a-gray-500);
|
|
7
|
-
--__ac-textarea-error-border: var(--a-red-300);
|
|
8
|
-
--__ac-textarea-counter-text: var(--a-gray-300);
|
|
9
|
-
--__ac-textarea-counter-error-text: var(--a-red-300);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
[data-theme="light"] {
|
|
13
|
-
--__ac-textarea-text: initial;
|
|
14
|
-
--__ac-textarea-bg: initial;
|
|
15
|
-
--__ac-textarea-border: initial;
|
|
16
|
-
--__ac-textarea-hover-border: initial;
|
|
17
|
-
--__ac-textarea-placeholder: initial;
|
|
18
|
-
--__ac-textarea-error-border: initial;
|
|
19
|
-
--__ac-textarea-counter-text: initial;
|
|
20
|
-
--__ac-textarea-counter-error-text: initial;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.navds-textarea__input {
|
|
24
|
-
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
25
|
-
height: var(--__ac-textarea-height);
|
|
26
|
-
appearance: none;
|
|
27
|
-
padding: var(--a-spacing-2);
|
|
28
|
-
background-color: var(--ac-textarea-bg, var(--__ac-textarea-bg, var(--a-surface-default)));
|
|
29
|
-
border-radius: var(--a-border-radius-medium);
|
|
30
|
-
border: 1px solid var(--ac-textarea-border, var(--__ac-textarea-border, var(--a-border-default)));
|
|
31
|
-
resize: none;
|
|
32
|
-
width: 100%;
|
|
33
|
-
display: block;
|
|
34
|
-
color: var(--ac-textarea-text, var(--__ac-textarea-text, var(--a-text-default)));
|
|
35
|
-
scroll-margin-block-start: 4rem;
|
|
36
|
-
white-space: break-spaces;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.navds-textarea__input::placeholder {
|
|
40
|
-
color: var(--ac-textarea-placeholder, var(--__ac-textarea-placeholder, var(--a-text-subtle)));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.navds-textarea__input:hover {
|
|
44
|
-
border-color: var(--ac-textarea-hover-border, var(--__ac-textarea-hover-border, var(--a-border-action-hover)));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.navds-textarea__input:focus-visible {
|
|
48
|
-
outline: 2px solid transparent;
|
|
49
|
-
outline-offset: 2px;
|
|
50
|
-
box-shadow: var(--a-shadow-focus);
|
|
51
|
-
border-color: var(--ac-textarea-active-border, var(--a-border-action-selected));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@supports not selector(:focus-visible) {
|
|
55
|
-
.navds-textarea__input:focus {
|
|
56
|
-
outline: 2px solid transparent;
|
|
57
|
-
outline-offset: 2px;
|
|
58
|
-
box-shadow: var(--a-shadow-focus);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.navds-form-field--small .navds-textarea__input {
|
|
63
|
-
padding: var(--a-spacing-1-alt);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.navds-textarea__counter {
|
|
67
|
-
margin-top: -0.375rem;
|
|
68
|
-
color: var(--ac-textarea-counter-text, var(--__ac-textarea-counter-text, var(--a-text-subtle)));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.navds-textarea__counter--error {
|
|
72
|
-
color: var(--ac-textarea-counter-error-text, var(--__ac-textarea-counter-error-text, var(--a-text-danger)));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.navds-textarea__sr-counter {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.navds-textarea__input:focus ~ .navds-textarea__sr-counter {
|
|
80
|
-
display: initial;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.navds-textarea--resize-both .navds-textarea__input {
|
|
84
|
-
resize: both;
|
|
85
|
-
border-end-end-radius: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.navds-textarea--resize-horizontal .navds-textarea__input {
|
|
89
|
-
resize: horizontal;
|
|
90
|
-
border-end-end-radius: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.navds-textarea--resize-vertical .navds-textarea__input {
|
|
94
|
-
resize: vertical;
|
|
95
|
-
border-end-end-radius: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.navds-textarea--autoscrollbar,
|
|
99
|
-
.navds-textarea--autoscrollbar .navds-textarea__wrapper {
|
|
100
|
-
display: flex;
|
|
101
|
-
flex-direction: column;
|
|
102
|
-
overflow: hidden;
|
|
103
|
-
|
|
104
|
-
/* Makes the box-shadow visible even though overflow is hidden: */
|
|
105
|
-
padding: 3px;
|
|
106
|
-
margin: -3px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.navds-textarea--autoscrollbar .navds-textarea__input {
|
|
110
|
-
scrollbar-gutter: stable; /* Needed to prevent scrollbar from appearing too early */
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
Error handling
|
|
115
|
-
*/
|
|
116
|
-
.navds-textarea--error .navds-textarea__input:not(:hover, :disabled) {
|
|
117
|
-
box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
118
|
-
border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.navds-textarea--error .navds-textarea__input:focus-visible {
|
|
122
|
-
box-shadow: var(--a-shadow-focus);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.navds-textarea__input:disabled {
|
|
126
|
-
background-color: var(--ac-textarea-bg, var(--__ac-textarea-bg, var(--a-surface-default)));
|
|
127
|
-
border-color: var(--ac-textarea-border, var(--__ac-textarea-border, var(--a-border-default)));
|
|
128
|
-
box-shadow: none;
|
|
129
|
-
cursor: not-allowed;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.navds-textarea--readonly .navds-textarea__input {
|
|
133
|
-
background-color: var(--a-surface-subtle);
|
|
134
|
-
border-color: var(--a-border-subtle);
|
|
135
|
-
cursor: default;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@media (forced-colors: active) {
|
|
139
|
-
.navds-textarea__input {
|
|
140
|
-
background-color: field;
|
|
141
|
-
color: fieldtext;
|
|
142
|
-
}
|
|
143
|
-
}
|