@nasa-terra/components 0.0.0 → 0.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/{dist/chunks/chunk.SZQ6DLHF.js → cdn/chunks/chunk.27YQ2AOA.js} +6 -6
- package/cdn/chunks/{chunk.BHXZEJO5.js → chunk.2B4YBQ5O.js} +1 -1
- package/cdn/chunks/chunk.2I657ASB.js +85 -0
- package/cdn/chunks/{chunk.R5TLD4JZ.js → chunk.2J6CFV4K.js} +1 -1
- package/{dist/chunks/chunk.SJ6OGWI6.js → cdn/chunks/chunk.2O76GCUZ.js} +1 -1
- package/cdn/chunks/chunk.2V4XFMTB.js +7 -0
- package/{dist/chunks/chunk.2RBWEAYS.js → cdn/chunks/chunk.36AVAQOO.js} +4 -4
- package/cdn/chunks/chunk.3ZGFXEAJ.js +273 -0
- package/cdn/chunks/{chunk.D6XFZNUK.js → chunk.4YOL6PQR.js} +4 -4
- package/{dist/chunks/chunk.6ZHGOB2G.js → cdn/chunks/chunk.77L4US7V.js} +1 -1
- package/cdn/chunks/chunk.7DEY3B3N.js +11 -0
- package/cdn/chunks/chunk.7VUSSQRI.js +20 -0
- package/cdn/chunks/chunk.AAWOHDFX.js +259 -0
- package/cdn/chunks/{chunk.34DQXAAA.js → chunk.AEIZVWLR.js} +1 -1
- package/cdn/chunks/{chunk.CI6OSO6M.js → chunk.BB7N2ZYB.js} +1 -1
- package/cdn/chunks/{chunk.Y4CNYLFC.js → chunk.BINGLTII.js} +1 -1
- package/cdn/chunks/chunk.BLNUBLUS.js +289 -0
- package/cdn/chunks/{chunk.AOKHUEZK.js → chunk.D33ZL7ZQ.js} +1 -1
- package/{dist/chunks/chunk.VIV3TUJX.js → cdn/chunks/chunk.DL3FIOYA.js} +1 -1
- package/cdn/chunks/{chunk.E3743HRF.js → chunk.DQGFAA4K.js} +4 -4
- package/cdn/chunks/{chunk.TA3MUOR6.js → chunk.EFAXKQZX.js} +1 -1
- package/cdn/chunks/chunk.FGILL5W6.js +118 -0
- package/cdn/chunks/chunk.FXIUS5TR.js +21 -0
- package/cdn/chunks/{chunk.P2U3GEIK.js → chunk.FZT3BVW7.js} +1 -1
- package/{dist/chunks/chunk.TCOEMJRS.js → cdn/chunks/chunk.GCKJPPGU.js} +1 -1
- package/cdn/chunks/chunk.I2NEFB34.js +99 -0
- package/cdn/chunks/{chunk.RVZES2AU.js → chunk.I32QCWMN.js} +1 -1
- package/cdn/chunks/chunk.IBEKZVOY.js +80 -0
- package/cdn/chunks/{chunk.42A7HENY.js → chunk.IO4MLLEG.js} +1 -1
- package/cdn/chunks/{chunk.P4XRFEY4.js → chunk.IP3XWLQI.js} +1 -1
- package/{dist/chunks/chunk.R4J62P4T.js → cdn/chunks/chunk.IQITDFID.js} +1 -1
- package/cdn/chunks/chunk.ITX3RB2M.js +11 -0
- package/cdn/chunks/{chunk.OEWCLC7K.js → chunk.J576Q62R.js} +1 -1
- package/cdn/chunks/{chunk.4TENYCNW.js → chunk.JCZW2OWI.js} +1 -1
- package/cdn/chunks/chunk.JFU3ZCDL.js +359 -0
- package/{dist/chunks/chunk.36PTCDA5.js → cdn/chunks/chunk.JOVDYQHE.js} +1 -1
- package/cdn/chunks/{chunk.6RAHIA27.js → chunk.JV6B7CXO.js} +2 -1
- package/cdn/chunks/{chunk.5X6SO6J5.js → chunk.KH54YRZ3.js} +1 -1
- package/cdn/chunks/{chunk.7FISIUEV.js → chunk.KVY2Y3KE.js} +1 -1
- package/cdn/chunks/{chunk.ZMCLEFDE.js → chunk.KXLY6BVH.js} +4 -4
- package/cdn/chunks/chunk.LELNKRPW.js +685 -0
- package/cdn/chunks/{chunk.53SMSSCB.js → chunk.M25XJ2VR.js} +6 -6
- package/cdn/chunks/{chunk.X7ARZIFO.js → chunk.MDM7S6E6.js} +1 -1
- package/cdn/chunks/{chunk.253Y3NFH.js → chunk.MIAPAPCI.js} +1 -1
- package/{dist/chunks/chunk.XJ3P4AO2.js → cdn/chunks/chunk.MKXJDRVT.js} +1 -1
- package/{dist/chunks/chunk.LE36I4N2.js → cdn/chunks/chunk.MOJMTJF6.js} +1 -1
- package/{dist/chunks/chunk.NZYKW5Y7.js → cdn/chunks/chunk.MQ5JNQCQ.js} +1 -1
- package/cdn/chunks/chunk.MWHQHPUM.js +54 -0
- package/{dist/chunks/chunk.WJPV6KQS.js → cdn/chunks/chunk.MXAZ646L.js} +1 -1
- package/cdn/chunks/chunk.N2DS7NLI.js +102 -0
- package/{dist/chunks/chunk.A2U7NITY.js → cdn/chunks/chunk.NU4LRV7F.js} +1 -1
- package/cdn/chunks/chunk.NYBJ252W.js +318 -0
- package/cdn/chunks/chunk.OIDMX5LU.js +10 -0
- package/cdn/chunks/{chunk.M366DOLL.js → chunk.OLCGKQR3.js} +1 -1
- package/{dist/chunks/chunk.WBXETWE4.js → cdn/chunks/chunk.OOUCODFZ.js} +2 -1
- package/cdn/chunks/chunk.OQE2USZJ.js +41 -0
- package/cdn/chunks/chunk.OU4UPMYR.js +330 -0
- package/cdn/chunks/{chunk.6PIZJ2ZO.js → chunk.P7W2ODWK.js} +1 -1
- package/cdn/chunks/chunk.PJXIJK2G.js +102 -0
- package/cdn/chunks/{chunk.AURPVGI4.js → chunk.QQ33BJLG.js} +1 -1
- package/cdn/chunks/{chunk.NUMFOBCB.js → chunk.R3AE5AQ5.js} +4 -4
- package/cdn/chunks/{chunk.T3YOGGMB.js → chunk.RBKBAQOH.js} +5 -5
- package/cdn/chunks/{chunk.JSEQXKIQ.js → chunk.RDOXOIYG.js} +1 -1
- package/{dist/chunks/chunk.YNY2FQKA.js → cdn/chunks/chunk.RVJP24KU.js} +1 -1
- package/cdn/chunks/chunk.RYPAZDXE.js +61 -0
- package/cdn/chunks/chunk.SHS42OAD.js +620 -0
- package/cdn/chunks/{chunk.4CAXR33B.js → chunk.SJADWOCY.js} +1 -1
- package/cdn/chunks/{chunk.AY5ZYXPF.js → chunk.SMRM4VEQ.js} +1 -1
- package/{dist/chunks/chunk.DNBHAHKW.js → cdn/chunks/chunk.SQMSSGQI.js} +1 -1
- package/cdn/chunks/chunk.T322FDKI.js +300 -0
- package/cdn/chunks/{chunk.RRCPVEE3.js → chunk.TV2NZLRC.js} +4 -4
- package/cdn/chunks/{chunk.6JYG4IP3.js → chunk.UE4FYVUH.js} +1 -1
- package/cdn/chunks/{chunk.EPEFC6PC.js → chunk.UJBBUYTN.js} +1 -1
- package/cdn/chunks/{chunk.BSSVF7JN.js → chunk.UQVPFKN3.js} +7 -7
- package/cdn/chunks/chunk.UU46CLE7.js +120 -0
- package/cdn/chunks/{chunk.OFCNXAUR.js → chunk.VEUDIPUW.js} +1 -1
- package/cdn/chunks/chunk.WGFD2LHA.js +83 -0
- package/cdn/chunks/chunk.WNRL2JWN.js +21 -0
- package/{dist/chunks/chunk.J6NGZHLF.js → cdn/chunks/chunk.Y3WAKQQ3.js} +1 -1
- package/cdn/chunks/chunk.YOR2OZZR.js +11 -0
- package/{dist/chunks/chunk.YHSKQAEB.js → cdn/chunks/chunk.ZAHTEXVC.js} +1 -1
- package/cdn/chunks/chunk.ZCNMYQP2.js +113 -0
- package/cdn/chunks/chunk.ZGJAUXFV.js +39 -0
- package/cdn/chunks/chunk.ZK7QVWBI.js +37 -0
- package/{dist/chunks/chunk.BEIVIE7M.js → cdn/chunks/chunk.ZPPR6CPT.js} +1 -1
- package/cdn/chunks/chunk.ZQ5WJYY5.js +21 -0
- package/{dist/chunks/chunk.OZ37OLF4.js → cdn/chunks/chunk.ZVKNJQPF.js} +1 -1
- package/cdn/components/button/button.component.js +3 -3
- package/cdn/components/button/button.js +4 -4
- package/cdn/components/chip/chip.component.js +3 -3
- package/cdn/components/chip/chip.js +4 -4
- package/cdn/components/combobox/combobox.component.js +4 -4
- package/cdn/components/combobox/combobox.js +5 -5
- package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
- package/cdn/components/date-range-slider/date-range-slider.js +3 -3
- package/cdn/components/icon/icon.component.js +4 -4
- package/cdn/components/icon/icon.js +5 -5
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/map/map.component.js +4 -4
- package/cdn/components/map/map.js +5 -5
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.js +6 -6
- package/cdn/components/spatial-picker/spatial-picker.js +7 -7
- package/cdn/components/time-series/time-series.component.js +26 -26
- package/cdn/components/time-series/time-series.controller.js +1 -1
- package/cdn/components/time-series/time-series.js +27 -27
- package/cdn/components/variable-combobox/variable-combobox.component.js +12 -12
- package/cdn/components/variable-combobox/variable-combobox.js +13 -13
- package/cdn/custom-elements.json +973 -973
- package/cdn/react/button/index.js +4 -4
- package/cdn/react/chip/index.js +4 -4
- package/cdn/react/combobox/index.js +5 -5
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/icon/index.js +5 -5
- package/cdn/react/index.d.ts +3 -3
- package/cdn/react/index.js +50 -50
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/map/index.js +5 -5
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +7 -7
- package/cdn/react/time-series/index.js +27 -27
- package/cdn/react/variable-combobox/index.js +13 -13
- package/cdn/terra-ui-components.js +54 -54
- package/cdn/types/vue/index.d.ts +98 -98
- package/cdn/utilities/animation.js +3 -3
- package/cdn/vscode.html-custom-data.json +111 -111
- package/cdn/web-types.json +205 -205
- package/dist/chunks/chunk.27YQ2AOA.js +251 -0
- package/dist/chunks/chunk.2O76GCUZ.js +21 -0
- package/dist/chunks/chunk.2WZAYHEX.js +214 -0
- package/dist/chunks/chunk.356SSUTI.js +11 -0
- package/dist/chunks/chunk.36AVAQOO.js +404 -0
- package/dist/chunks/chunk.3D66L46K.js +11 -0
- package/dist/chunks/chunk.3LUNFNDR.js +118 -0
- package/dist/chunks/chunk.4MN2BLJS.js +21 -0
- package/dist/chunks/chunk.5B33QFBB.js +83 -0
- package/dist/chunks/chunk.65A3A43G.js +21 -0
- package/dist/chunks/chunk.BB7N2ZYB.js +21 -0
- package/dist/chunks/chunk.D6FJH7WA.js +21 -0
- package/dist/chunks/chunk.DDPOISEU.js +179 -0
- package/dist/chunks/chunk.EBBV6NVD.js +11 -0
- package/dist/chunks/chunk.EMISRECR.js +214 -0
- package/dist/chunks/chunk.FZT3BVW7.js +21 -0
- package/dist/chunks/chunk.GHCQCYO6.js +179 -0
- package/dist/chunks/chunk.HO5CZIK5.js +11 -0
- package/dist/chunks/chunk.IEU4MULT.js +25 -0
- package/dist/chunks/chunk.IO4MLLEG.js +21 -0
- package/dist/chunks/chunk.IP3XWLQI.js +11 -0
- package/dist/chunks/chunk.J4B6HPXD.js +11 -0
- package/dist/chunks/chunk.J576Q62R.js +11 -0
- package/dist/chunks/chunk.JCZW2OWI.js +11 -0
- package/dist/chunks/chunk.K2HRGRYE.js +11 -0
- package/dist/chunks/chunk.KXNDHJXA.js +404 -0
- package/dist/chunks/chunk.MIAPAPCI.js +21 -0
- package/dist/chunks/chunk.MOJMTJF6.js +24 -0
- package/dist/chunks/chunk.MXAZ646L.js +11 -0
- package/dist/chunks/chunk.NNLAIN52.js +11 -0
- package/dist/chunks/chunk.NO35M7LF.js +21 -0
- package/dist/chunks/chunk.NOEGCTIS.js +194 -0
- package/dist/chunks/chunk.NU4LRV7F.js +21 -0
- package/dist/chunks/chunk.NZIGCRLS.js +11 -0
- package/dist/chunks/chunk.OIGE7CMM.js +11 -0
- package/dist/chunks/chunk.OOUCODFZ.js +179 -0
- package/dist/chunks/chunk.ORZO3BCW.js +102 -0
- package/dist/chunks/chunk.P25SJ6YA.js +478 -0
- package/dist/chunks/chunk.P4QMMCAR.js +24 -0
- package/dist/chunks/chunk.PGNCNTOA.js +21 -0
- package/dist/chunks/chunk.Q7F3GGVA.js +251 -0
- package/dist/chunks/chunk.QSCELHEQ.js +325 -0
- package/dist/chunks/chunk.RDOXOIYG.js +11 -0
- package/dist/chunks/chunk.SBTZE5QZ.js +21 -0
- package/dist/chunks/chunk.SCU5LFS3.js +325 -0
- package/dist/chunks/chunk.SJADWOCY.js +11 -0
- package/dist/chunks/chunk.SMRM4VEQ.js +11 -0
- package/dist/chunks/chunk.T7MOUOBT.js +11 -0
- package/dist/chunks/chunk.UE4FYVUH.js +25 -0
- package/dist/chunks/chunk.UJBBUYTN.js +11 -0
- package/dist/chunks/chunk.WL747XGE.js +194 -0
- package/dist/chunks/chunk.XKDGF53W.js +21 -0
- package/dist/chunks/chunk.XLYZ6HY4.js +179 -0
- package/dist/chunks/chunk.XXV47QL2.js +21 -0
- package/dist/chunks/chunk.Y3WAKQQ3.js +179 -0
- package/dist/chunks/chunk.Y5CHSR6B.js +21 -0
- package/dist/chunks/chunk.YDJ7Z7YW.js +478 -0
- package/dist/chunks/chunk.YDMA4OA3.js +11 -0
- package/dist/chunks/chunk.Z2WXDYZC.js +85 -0
- package/dist/components/button/button.component.js +3 -3
- package/dist/components/button/button.js +4 -4
- package/dist/components/chip/chip.component.js +2 -2
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/combobox/combobox.component.js +4 -4
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/date-range-slider/date-range-slider.component.js +2 -2
- package/dist/components/date-range-slider/date-range-slider.js +3 -3
- package/dist/components/icon/icon.component.js +3 -3
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/loader/loader.component.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/map/map.component.js +4 -4
- package/dist/components/map/map.js +5 -5
- package/dist/components/plot/plot.component.js +2 -2
- package/dist/components/plot/plot.js +3 -3
- package/dist/components/spatial-picker/spatial-picker.component.js +6 -6
- package/dist/components/spatial-picker/spatial-picker.js +7 -7
- package/dist/components/time-series/time-series.component.js +22 -22
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +23 -23
- package/dist/components/variable-combobox/variable-combobox.component.js +9 -9
- package/dist/components/variable-combobox/variable-combobox.js +10 -10
- package/dist/custom-elements.json +973 -973
- package/dist/react/button/index.js +4 -4
- package/dist/react/chip/index.js +3 -3
- package/dist/react/combobox/index.js +5 -5
- package/dist/react/date-range-slider/index.js +3 -3
- package/dist/react/icon/index.js +4 -4
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +47 -47
- package/dist/react/loader/index.js +3 -3
- package/dist/react/map/index.js +5 -5
- package/dist/react/plot/index.js +3 -3
- package/dist/react/spatial-picker/index.js +7 -7
- package/dist/react/time-series/index.js +23 -23
- package/dist/react/variable-combobox/index.js +10 -10
- package/dist/terra-ui-components.js +46 -46
- package/dist/types/vue/index.d.ts +98 -98
- package/dist/vscode.html-custom-data.json +111 -111
- package/dist/web-types.json +205 -205
- package/package.json +1 -1
- package/{dist/chunks/chunk.HKHDBTIC.js → cdn/chunks/chunk.EMISRECR.js} +3 -3
- package/{dist/chunks/chunk.KRXFJQUH.js → cdn/chunks/chunk.GHCQCYO6.js} +3 -3
- package/{dist/chunks/chunk.I7ZPL3IO.js → cdn/chunks/chunk.P25SJ6YA.js} +3 -3
- package/{dist/chunks/chunk.OSC7AN4C.js → cdn/chunks/chunk.SCU5LFS3.js} +3 -3
- package/{dist/chunks/chunk.V3YTQSMP.js → cdn/chunks/chunk.WL747XGE.js} +3 -3
- package/cdn/chunks/{chunk.LQCRC4E2.js → chunk.XR56EMXH.js} +8 -8
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
// src/components/button/button.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var button_styles_default = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: auto;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.button {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
width: 100%;
|
|
16
|
+
border-style: solid;
|
|
17
|
+
border-width: var(--terra-input-border-width);
|
|
18
|
+
font-family: var(--terra-input-font-family);
|
|
19
|
+
font-weight: var(--terra-font-weight-semibold);
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
user-select: none;
|
|
22
|
+
-webkit-user-select: none;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
padding: 0;
|
|
26
|
+
transition:
|
|
27
|
+
var(--terra-transition-x-fast) background-color,
|
|
28
|
+
var(--terra-transition-x-fast) color,
|
|
29
|
+
var(--terra-transition-x-fast) border,
|
|
30
|
+
var(--terra-transition-x-fast) box-shadow;
|
|
31
|
+
cursor: inherit;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.button::-moz-focus-inner {
|
|
35
|
+
border: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.button:focus {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.button:focus-visible {
|
|
43
|
+
outline: var(--terra-focus-ring);
|
|
44
|
+
outline-offset: var(--terra-focus-ring-offset);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.button--disabled {
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* When disabled, prevent mouse events from bubbling up from children */
|
|
53
|
+
.button--disabled * {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.button__prefix,
|
|
58
|
+
.button__suffix {
|
|
59
|
+
flex: 0 0 auto;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.button__label {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.button__label::slotted(sl-icon) {
|
|
70
|
+
vertical-align: -2px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* Standard buttons
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/* Default */
|
|
78
|
+
.button--standard.button--default {
|
|
79
|
+
background-color: var(--terra-color-neutral-0);
|
|
80
|
+
border-color: var(--terra-color-neutral-300);
|
|
81
|
+
color: var(--terra-color-neutral-700);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.button--standard.button--default:hover:not(.button--disabled) {
|
|
85
|
+
background-color: var(--terra-color-primary-50);
|
|
86
|
+
border-color: var(--terra-color-primary-300);
|
|
87
|
+
color: var(--terra-color-primary-700);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.button--standard.button--default:active:not(.button--disabled) {
|
|
91
|
+
background-color: var(--terra-color-primary-100);
|
|
92
|
+
border-color: var(--terra-color-primary-400);
|
|
93
|
+
color: var(--terra-color-primary-700);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Primary */
|
|
97
|
+
.button--standard.button--primary {
|
|
98
|
+
background-color: var(--terra-color-primary-600);
|
|
99
|
+
border-color: var(--terra-color-primary-600);
|
|
100
|
+
color: var(--terra-color-neutral-0);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.button--standard.button--primary:hover:not(.button--disabled) {
|
|
104
|
+
background-color: var(--terra-color-primary-500);
|
|
105
|
+
border-color: var(--terra-color-primary-500);
|
|
106
|
+
color: var(--terra-color-neutral-0);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.button--standard.button--primary:active:not(.button--disabled) {
|
|
110
|
+
background-color: var(--terra-color-primary-600);
|
|
111
|
+
border-color: var(--terra-color-primary-600);
|
|
112
|
+
color: var(--terra-color-neutral-0);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Success */
|
|
116
|
+
.button--standard.button--success {
|
|
117
|
+
background-color: var(--terra-color-success-600);
|
|
118
|
+
border-color: var(--terra-color-success-600);
|
|
119
|
+
color: var(--terra-color-neutral-0);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.button--standard.button--success:hover:not(.button--disabled) {
|
|
123
|
+
background-color: var(--terra-color-success-500);
|
|
124
|
+
border-color: var(--terra-color-success-500);
|
|
125
|
+
color: var(--terra-color-neutral-0);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.button--standard.button--success:active:not(.button--disabled) {
|
|
129
|
+
background-color: var(--terra-color-success-600);
|
|
130
|
+
border-color: var(--terra-color-success-600);
|
|
131
|
+
color: var(--terra-color-neutral-0);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Neutral */
|
|
135
|
+
.button--standard.button--neutral {
|
|
136
|
+
background-color: var(--terra-color-neutral-600);
|
|
137
|
+
border-color: var(--terra-color-neutral-600);
|
|
138
|
+
color: var(--terra-color-neutral-0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.button--standard.button--neutral:hover:not(.button--disabled) {
|
|
142
|
+
background-color: var(--terra-color-neutral-500);
|
|
143
|
+
border-color: var(--terra-color-neutral-500);
|
|
144
|
+
color: var(--terra-color-neutral-0);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.button--standard.button--neutral:active:not(.button--disabled) {
|
|
148
|
+
background-color: var(--terra-color-neutral-600);
|
|
149
|
+
border-color: var(--terra-color-neutral-600);
|
|
150
|
+
color: var(--terra-color-neutral-0);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Warning */
|
|
154
|
+
.button--standard.button--warning {
|
|
155
|
+
background-color: var(--terra-color-warning-600);
|
|
156
|
+
border-color: var(--terra-color-warning-600);
|
|
157
|
+
color: var(--terra-color-neutral-0);
|
|
158
|
+
}
|
|
159
|
+
.button--standard.button--warning:hover:not(.button--disabled) {
|
|
160
|
+
background-color: var(--terra-color-warning-500);
|
|
161
|
+
border-color: var(--terra-color-warning-500);
|
|
162
|
+
color: var(--terra-color-neutral-0);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.button--standard.button--warning:active:not(.button--disabled) {
|
|
166
|
+
background-color: var(--terra-color-warning-600);
|
|
167
|
+
border-color: var(--terra-color-warning-600);
|
|
168
|
+
color: var(--terra-color-neutral-0);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Danger */
|
|
172
|
+
.button--standard.button--danger {
|
|
173
|
+
background-color: var(--terra-color-danger-600);
|
|
174
|
+
border-color: var(--terra-color-danger-600);
|
|
175
|
+
color: var(--terra-color-neutral-0);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.button--standard.button--danger:hover:not(.button--disabled) {
|
|
179
|
+
background-color: var(--terra-color-danger-500);
|
|
180
|
+
border-color: var(--terra-color-danger-500);
|
|
181
|
+
color: var(--terra-color-neutral-0);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.button--standard.button--danger:active:not(.button--disabled) {
|
|
185
|
+
background-color: var(--terra-color-danger-600);
|
|
186
|
+
border-color: var(--terra-color-danger-600);
|
|
187
|
+
color: var(--terra-color-neutral-0);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* Outline buttons
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
.button--outline {
|
|
195
|
+
background: none;
|
|
196
|
+
border: solid 1px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Default */
|
|
200
|
+
.button--outline.button--default {
|
|
201
|
+
border-color: var(--terra-color-neutral-300);
|
|
202
|
+
color: var(--terra-color-neutral-700);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.button--outline.button--default:hover:not(.button--disabled),
|
|
206
|
+
.button--outline.button--default.button--checked:not(.button--disabled) {
|
|
207
|
+
border-color: var(--terra-color-primary-600);
|
|
208
|
+
background-color: var(--terra-color-primary-600);
|
|
209
|
+
color: var(--terra-color-neutral-0);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.button--outline.button--default:active:not(.button--disabled) {
|
|
213
|
+
border-color: var(--terra-color-primary-700);
|
|
214
|
+
background-color: var(--terra-color-primary-700);
|
|
215
|
+
color: var(--terra-color-neutral-0);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* Primary */
|
|
219
|
+
.button--outline.button--primary {
|
|
220
|
+
border-color: var(--terra-color-primary-600);
|
|
221
|
+
color: var(--terra-color-primary-600);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.button--outline.button--primary:hover:not(.button--disabled),
|
|
225
|
+
.button--outline.button--primary.button--checked:not(.button--disabled) {
|
|
226
|
+
background-color: var(--terra-color-primary-600);
|
|
227
|
+
color: var(--terra-color-neutral-0);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.button--outline.button--primary:active:not(.button--disabled) {
|
|
231
|
+
border-color: var(--terra-color-primary-700);
|
|
232
|
+
background-color: var(--terra-color-primary-700);
|
|
233
|
+
color: var(--terra-color-neutral-0);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Success */
|
|
237
|
+
.button--outline.button--success {
|
|
238
|
+
border-color: var(--terra-color-success-600);
|
|
239
|
+
color: var(--terra-color-success-600);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.button--outline.button--success:hover:not(.button--disabled),
|
|
243
|
+
.button--outline.button--success.button--checked:not(.button--disabled) {
|
|
244
|
+
background-color: var(--terra-color-success-600);
|
|
245
|
+
color: var(--terra-color-neutral-0);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.button--outline.button--success:active:not(.button--disabled) {
|
|
249
|
+
border-color: var(--terra-color-success-700);
|
|
250
|
+
background-color: var(--terra-color-success-700);
|
|
251
|
+
color: var(--terra-color-neutral-0);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Neutral */
|
|
255
|
+
.button--outline.button--neutral {
|
|
256
|
+
border-color: var(--terra-color-neutral-600);
|
|
257
|
+
color: var(--terra-color-neutral-600);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.button--outline.button--neutral:hover:not(.button--disabled),
|
|
261
|
+
.button--outline.button--neutral.button--checked:not(.button--disabled) {
|
|
262
|
+
background-color: var(--terra-color-neutral-600);
|
|
263
|
+
color: var(--terra-color-neutral-0);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.button--outline.button--neutral:active:not(.button--disabled) {
|
|
267
|
+
border-color: var(--terra-color-neutral-700);
|
|
268
|
+
background-color: var(--terra-color-neutral-700);
|
|
269
|
+
color: var(--terra-color-neutral-0);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Warning */
|
|
273
|
+
.button--outline.button--warning {
|
|
274
|
+
border-color: var(--terra-color-warning-600);
|
|
275
|
+
color: var(--terra-color-warning-600);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.button--outline.button--warning:hover:not(.button--disabled),
|
|
279
|
+
.button--outline.button--warning.button--checked:not(.button--disabled) {
|
|
280
|
+
background-color: var(--terra-color-warning-600);
|
|
281
|
+
color: var(--terra-color-neutral-0);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.button--outline.button--warning:active:not(.button--disabled) {
|
|
285
|
+
border-color: var(--terra-color-warning-700);
|
|
286
|
+
background-color: var(--terra-color-warning-700);
|
|
287
|
+
color: var(--terra-color-neutral-0);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Danger */
|
|
291
|
+
.button--outline.button--danger {
|
|
292
|
+
border-color: var(--terra-color-danger-600);
|
|
293
|
+
color: var(--terra-color-danger-600);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.button--outline.button--danger:hover:not(.button--disabled),
|
|
297
|
+
.button--outline.button--danger.button--checked:not(.button--disabled) {
|
|
298
|
+
background-color: var(--terra-color-danger-600);
|
|
299
|
+
color: var(--terra-color-neutral-0);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.button--outline.button--danger:active:not(.button--disabled) {
|
|
303
|
+
border-color: var(--terra-color-danger-700);
|
|
304
|
+
background-color: var(--terra-color-danger-700);
|
|
305
|
+
color: var(--terra-color-neutral-0);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@media (forced-colors: active) {
|
|
309
|
+
.button.button--outline.button--checked:not(.button--disabled) {
|
|
310
|
+
outline: solid 2px transparent;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/*
|
|
315
|
+
* Text buttons
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
.button--text {
|
|
319
|
+
background-color: transparent;
|
|
320
|
+
border-color: transparent;
|
|
321
|
+
color: var(--terra-color-primary-600);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.button--text:hover:not(.button--disabled) {
|
|
325
|
+
background-color: transparent;
|
|
326
|
+
border-color: transparent;
|
|
327
|
+
color: var(--terra-color-primary-500);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.button--text:focus-visible:not(.button--disabled) {
|
|
331
|
+
background-color: transparent;
|
|
332
|
+
border-color: transparent;
|
|
333
|
+
color: var(--terra-color-primary-500);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.button--text:active:not(.button--disabled) {
|
|
337
|
+
background-color: transparent;
|
|
338
|
+
border-color: transparent;
|
|
339
|
+
color: var(--terra-color-primary-700);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/*
|
|
343
|
+
* Size modifiers
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
.button--small {
|
|
347
|
+
height: auto;
|
|
348
|
+
min-height: var(--terra-input-height-small);
|
|
349
|
+
font-size: var(--terra-button-font-size-small);
|
|
350
|
+
line-height: calc(
|
|
351
|
+
var(--terra-input-height-small) - var(--terra-input-border-width) * 2
|
|
352
|
+
);
|
|
353
|
+
border-radius: var(--terra-input-border-radius-small);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.button--medium {
|
|
357
|
+
height: auto;
|
|
358
|
+
min-height: var(--terra-input-height-medium);
|
|
359
|
+
font-size: var(--terra-button-font-size-medium);
|
|
360
|
+
line-height: calc(
|
|
361
|
+
var(--terra-input-height-medium) - var(--terra-input-border-width) * 2
|
|
362
|
+
);
|
|
363
|
+
border-radius: var(--terra-input-border-radius-medium);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.button--large {
|
|
367
|
+
height: auto;
|
|
368
|
+
min-height: var(--terra-input-height-large);
|
|
369
|
+
font-size: var(--terra-button-font-size-large);
|
|
370
|
+
line-height: calc(
|
|
371
|
+
var(--terra-input-height-large) - var(--terra-input-border-width) * 2
|
|
372
|
+
);
|
|
373
|
+
border-radius: var(--terra-input-border-radius-large);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/*
|
|
377
|
+
* Pill modifier
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
.button--pill.button--small {
|
|
381
|
+
border-radius: var(--terra-input-height-small);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.button--pill.button--medium {
|
|
385
|
+
border-radius: var(--terra-input-height-medium);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.button--pill.button--large {
|
|
389
|
+
border-radius: var(--terra-input-height-large);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/*
|
|
393
|
+
* Circle modifier
|
|
394
|
+
*/
|
|
395
|
+
|
|
396
|
+
.button--circle {
|
|
397
|
+
padding-left: 0;
|
|
398
|
+
padding-right: 0;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.button--circle.button--small {
|
|
402
|
+
width: var(--terra-input-height-small);
|
|
403
|
+
border-radius: 50%;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.button--circle.button--medium {
|
|
407
|
+
width: var(--terra-input-height-medium);
|
|
408
|
+
border-radius: 50%;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.button--circle.button--large {
|
|
412
|
+
width: var(--terra-input-height-large);
|
|
413
|
+
border-radius: 50%;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.button--circle .button__prefix,
|
|
417
|
+
.button--circle .button__suffix,
|
|
418
|
+
.button--circle .button__caret {
|
|
419
|
+
display: none;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/*
|
|
423
|
+
* Caret modifier
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
.button--caret .button__suffix {
|
|
427
|
+
display: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.button--caret .button__caret {
|
|
431
|
+
height: auto;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/*
|
|
435
|
+
* Loading modifier
|
|
436
|
+
*/
|
|
437
|
+
|
|
438
|
+
.button--loading {
|
|
439
|
+
position: relative;
|
|
440
|
+
cursor: wait;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.button--loading .button__prefix,
|
|
444
|
+
.button--loading .button__label,
|
|
445
|
+
.button--loading .button__suffix,
|
|
446
|
+
.button--loading .button__caret {
|
|
447
|
+
visibility: hidden;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.button--loading sl-spinner {
|
|
451
|
+
--indicator-color: currentColor;
|
|
452
|
+
position: absolute;
|
|
453
|
+
font-size: 1em;
|
|
454
|
+
height: 1em;
|
|
455
|
+
width: 1em;
|
|
456
|
+
top: calc(50% - 0.5em);
|
|
457
|
+
left: calc(50% - 0.5em);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/*
|
|
461
|
+
* Badges
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
.button ::slotted(sl-badge) {
|
|
465
|
+
position: absolute;
|
|
466
|
+
top: 0;
|
|
467
|
+
right: 0;
|
|
468
|
+
translate: 50% -50%;
|
|
469
|
+
pointer-events: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.button--rtl ::slotted(sl-badge) {
|
|
473
|
+
right: auto;
|
|
474
|
+
left: 0;
|
|
475
|
+
translate: -50% -50%;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/*
|
|
479
|
+
* Button spacing
|
|
480
|
+
*/
|
|
481
|
+
|
|
482
|
+
.button--has-label.button--small .button__label {
|
|
483
|
+
padding: 0 var(--terra-spacing-small);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.button--has-label.button--medium .button__label {
|
|
487
|
+
padding: 0 var(--terra-spacing-medium);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.button--has-label.button--large .button__label {
|
|
491
|
+
padding: 0 var(--terra-spacing-large);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.button--has-prefix.button--small {
|
|
495
|
+
padding-inline-start: var(--terra-spacing-x-small);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.button--has-prefix.button--small .button__label {
|
|
499
|
+
padding-inline-start: var(--terra-spacing-x-small);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.button--has-prefix.button--medium {
|
|
503
|
+
padding-inline-start: var(--terra-spacing-small);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.button--has-prefix.button--medium .button__label {
|
|
507
|
+
padding-inline-start: var(--terra-spacing-small);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.button--has-prefix.button--large {
|
|
511
|
+
padding-inline-start: var(--terra-spacing-small);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.button--has-prefix.button--large .button__label {
|
|
515
|
+
padding-inline-start: var(--terra-spacing-small);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.button--has-suffix.button--small,
|
|
519
|
+
.button--caret.button--small {
|
|
520
|
+
padding-inline-end: var(--terra-spacing-x-small);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.button--has-suffix.button--small .button__label,
|
|
524
|
+
.button--caret.button--small .button__label {
|
|
525
|
+
padding-inline-end: var(--terra-spacing-x-small);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.button--has-suffix.button--medium,
|
|
529
|
+
.button--caret.button--medium {
|
|
530
|
+
padding-inline-end: var(--terra-spacing-small);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.button--has-suffix.button--medium .button__label,
|
|
534
|
+
.button--caret.button--medium .button__label {
|
|
535
|
+
padding-inline-end: var(--terra-spacing-small);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.button--has-suffix.button--large,
|
|
539
|
+
.button--caret.button--large {
|
|
540
|
+
padding-inline-end: var(--terra-spacing-small);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.button--has-suffix.button--large .button__label,
|
|
544
|
+
.button--caret.button--large .button__label {
|
|
545
|
+
padding-inline-end: var(--terra-spacing-small);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/*
|
|
549
|
+
* Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
|
|
550
|
+
* This means buttons aren't always direct descendants of the button group, thus we can't target them with the
|
|
551
|
+
* ::slotted selector. To work around this, the button group component does some magic to add these special classes to
|
|
552
|
+
* buttons and we style them here instead.
|
|
553
|
+
*/
|
|
554
|
+
|
|
555
|
+
:host(
|
|
556
|
+
[data-terra-button-group__button--first]:not(
|
|
557
|
+
[data-terra-button-group__button--last]
|
|
558
|
+
)
|
|
559
|
+
)
|
|
560
|
+
.button {
|
|
561
|
+
border-start-end-radius: 0;
|
|
562
|
+
border-end-end-radius: 0;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
:host([data-terra-button-group__button--inner]) .button {
|
|
566
|
+
border-radius: 0;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
:host(
|
|
570
|
+
[data-terra-button-group__button--last]:not(
|
|
571
|
+
[data-terra-button-group__button--first]
|
|
572
|
+
)
|
|
573
|
+
)
|
|
574
|
+
.button {
|
|
575
|
+
border-start-start-radius: 0;
|
|
576
|
+
border-end-start-radius: 0;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* All except the first */
|
|
580
|
+
:host(
|
|
581
|
+
[data-terra-button-group__button]:not(
|
|
582
|
+
[data-terra-button-group__button--first]
|
|
583
|
+
)
|
|
584
|
+
) {
|
|
585
|
+
margin-inline-start: calc(-1 * var(--terra-input-border-width));
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* Add a visual separator between solid buttons */
|
|
589
|
+
:host(
|
|
590
|
+
[data-terra-button-group__button]:not(
|
|
591
|
+
[data-terra-button-group__button--first],
|
|
592
|
+
[data-terra-button-group__button--radio],
|
|
593
|
+
[variant='default']
|
|
594
|
+
):not(:hover)
|
|
595
|
+
)
|
|
596
|
+
.button:after {
|
|
597
|
+
content: '';
|
|
598
|
+
position: absolute;
|
|
599
|
+
top: 0;
|
|
600
|
+
inset-inline-start: 0;
|
|
601
|
+
bottom: 0;
|
|
602
|
+
border-left: solid 1px rgb(128 128 128 / 33%);
|
|
603
|
+
mix-blend-mode: multiply;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
|
|
607
|
+
:host([data-terra-button-group__button--hover]) {
|
|
608
|
+
z-index: 1;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/* Focus and checked are always on top */
|
|
612
|
+
:host([data-terra-button-group__button--focus]),
|
|
613
|
+
:host([data-terra-button-group__button][checked]) {
|
|
614
|
+
z-index: 2;
|
|
615
|
+
}
|
|
616
|
+
`;
|
|
617
|
+
|
|
618
|
+
export {
|
|
619
|
+
button_styles_default
|
|
620
|
+
};
|