@orange-halo/components 2.0.0 → 2.1.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/custom-elements.json +3182 -73
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/oh-accordion.js +17 -17
- package/dist/oh-alert.js +12 -12
- package/dist/oh-breadcrumb.js +12 -12
- package/dist/oh-button.d.ts +1 -1
- package/dist/oh-button.js +34 -34
- package/dist/oh-card.d.ts.map +1 -1
- package/dist/oh-card.js +17 -45
- package/dist/oh-card.js.map +1 -1
- package/dist/oh-checkbox-group.figma.js +1 -1
- package/dist/oh-checkbox-group.figma.js.map +1 -1
- package/dist/oh-checkbox-group.js +13 -13
- package/dist/oh-checkbox.d.ts +2 -2
- package/dist/oh-checkbox.js +19 -19
- package/dist/oh-drawer.js +1 -1
- package/dist/oh-footer.d.ts +5 -0
- package/dist/oh-footer.d.ts.map +1 -1
- package/dist/oh-footer.js +5 -0
- package/dist/oh-footer.js.map +1 -1
- package/dist/oh-hero.d.ts +5 -0
- package/dist/oh-hero.d.ts.map +1 -1
- package/dist/oh-hero.js +5 -0
- package/dist/oh-hero.js.map +1 -1
- package/dist/oh-icon.js +3 -3
- package/dist/oh-input.d.ts +2 -2
- package/dist/oh-input.figma.js +2 -2
- package/dist/oh-input.figma.js.map +1 -1
- package/dist/oh-input.js +5 -5
- package/dist/oh-link.js +23 -23
- package/dist/oh-modal.d.ts +2 -2
- package/dist/oh-modal.js +10 -10
- package/dist/oh-navbar.js +1 -1
- package/dist/oh-progress.js +2 -2
- package/dist/oh-radio-group.js +13 -13
- package/dist/oh-radio.d.ts +1 -1
- package/dist/oh-radio.js +18 -18
- package/dist/oh-select.d.ts +2 -2
- package/dist/oh-select.d.ts.map +1 -1
- package/dist/oh-select.js +17 -12
- package/dist/oh-select.js.map +1 -1
- package/dist/oh-skip-link.js +3 -3
- package/dist/oh-tabs.js +9 -9
- package/dist/oh-toggle.js +11 -11
- package/dist/styles/typography.js +4 -4
- package/package.json +11 -4
package/dist/oh-card.js
CHANGED
|
@@ -85,16 +85,13 @@ let OhCard = class OhCard extends OhElement {
|
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
/* Border: visible warm edge */
|
|
88
|
-
border:
|
|
88
|
+
border: var(--oh-card-base-border-width) solid var(--oh-card-raised-border-color);
|
|
89
89
|
|
|
90
90
|
/* Layered shadows:
|
|
91
91
|
1. Outer: soft, offset shadow (tactile)
|
|
92
92
|
2. Deeper: ambient depth
|
|
93
93
|
3. Inner top: sunlit highlight */
|
|
94
|
-
box-shadow:
|
|
95
|
-
0 2px 6px rgba(61, 50, 41, 0.08),
|
|
96
|
-
0 6px 16px rgba(61, 50, 41, 0.05),
|
|
97
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
94
|
+
box-shadow: var(--oh-elevation-surface-raised);
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -112,14 +109,10 @@ let OhCard = class OhCard extends OhElement {
|
|
|
112
109
|
);
|
|
113
110
|
|
|
114
111
|
/* Border: warm tinted edge */
|
|
115
|
-
border:
|
|
112
|
+
border: var(--oh-card-base-border-width) solid var(--oh-card-sunlit-border-color);
|
|
116
113
|
|
|
117
114
|
/* Layered shadows with warm glow */
|
|
118
|
-
box-shadow:
|
|
119
|
-
0 2px 8px rgba(139, 69, 19, 0.08),
|
|
120
|
-
0 8px 24px rgba(139, 69, 19, 0.06),
|
|
121
|
-
0 0 20px rgba(197, 67, 0, 0.04),
|
|
122
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.9);
|
|
115
|
+
box-shadow: var(--oh-elevation-surface-featured);
|
|
123
116
|
}
|
|
124
117
|
|
|
125
118
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -136,12 +129,10 @@ let OhCard = class OhCard extends OhElement {
|
|
|
136
129
|
);
|
|
137
130
|
|
|
138
131
|
/* Border: visible edge */
|
|
139
|
-
border:
|
|
132
|
+
border: var(--oh-card-base-border-width) solid var(--oh-card-flat-border-color);
|
|
140
133
|
|
|
141
134
|
/* Minimal shadow */
|
|
142
|
-
box-shadow:
|
|
143
|
-
0 1px 2px rgba(61, 50, 41, 0.04),
|
|
144
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
135
|
+
box-shadow: var(--oh-elevation-surface-flat);
|
|
145
136
|
}
|
|
146
137
|
|
|
147
138
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -156,30 +147,20 @@ let OhCard = class OhCard extends OhElement {
|
|
|
156
147
|
/* Hover: warm light, lifted */
|
|
157
148
|
.card--interactive.card--raised:hover {
|
|
158
149
|
border-color: var(--oh-color-border-strong);
|
|
159
|
-
box-shadow:
|
|
160
|
-
|
|
161
|
-
0 12px 28px rgba(61, 50, 41, 0.08),
|
|
162
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.9);
|
|
163
|
-
transform: translateY(-2px);
|
|
150
|
+
box-shadow: var(--oh-elevation-surface-lifted);
|
|
151
|
+
transform: translateY(var(--oh-lift-hover-md));
|
|
164
152
|
}
|
|
165
153
|
|
|
166
154
|
.card--interactive.card--sunlit:hover {
|
|
167
155
|
border-color: var(--oh-card-sunlit-border-color-hover);
|
|
168
|
-
box-shadow:
|
|
169
|
-
|
|
170
|
-
0 12px 32px rgba(139, 69, 19, 0.08),
|
|
171
|
-
0 0 28px rgba(197, 67, 0, 0.06),
|
|
172
|
-
inset 0 1px 0 rgba(255, 255, 255, 1);
|
|
173
|
-
transform: translateY(-2px);
|
|
156
|
+
box-shadow: var(--oh-elevation-surface-featured-lifted);
|
|
157
|
+
transform: translateY(var(--oh-lift-hover-md));
|
|
174
158
|
}
|
|
175
159
|
|
|
176
160
|
.card--interactive.card--flat:hover {
|
|
177
161
|
border-color: var(--oh-color-border-strong);
|
|
178
|
-
box-shadow:
|
|
179
|
-
|
|
180
|
-
0 6px 16px rgba(61, 50, 41, 0.05),
|
|
181
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
182
|
-
transform: translateY(-1px);
|
|
162
|
+
box-shadow: var(--oh-elevation-surface-raised);
|
|
163
|
+
transform: translateY(var(--oh-lift-hover-sm));
|
|
183
164
|
}
|
|
184
165
|
|
|
185
166
|
/* Active: pressed */
|
|
@@ -188,10 +169,7 @@ let OhCard = class OhCard extends OhElement {
|
|
|
188
169
|
}
|
|
189
170
|
|
|
190
171
|
.card--interactive.card--raised:active {
|
|
191
|
-
box-shadow:
|
|
192
|
-
0 1px 3px rgba(61, 50, 41, 0.1),
|
|
193
|
-
0 3px 8px rgba(61, 50, 41, 0.06),
|
|
194
|
-
inset 0 1px 2px rgba(61, 50, 41, 0.04);
|
|
172
|
+
box-shadow: var(--oh-elevation-surface-pressed);
|
|
195
173
|
}
|
|
196
174
|
|
|
197
175
|
/* Focus: solid outline is the indicator; the glow is decoration only */
|
|
@@ -203,17 +181,11 @@ let OhCard = class OhCard extends OhElement {
|
|
|
203
181
|
|
|
204
182
|
.card--interactive.card--raised:focus-visible,
|
|
205
183
|
.card--interactive.card--flat:focus-visible {
|
|
206
|
-
box-shadow:
|
|
207
|
-
0 0 16px var(--oh-focus-glow-color),
|
|
208
|
-
0 2px 6px rgba(61, 50, 41, 0.08),
|
|
209
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
184
|
+
box-shadow: 0 0 16px var(--oh-focus-glow-color), var(--oh-elevation-surface-focused);
|
|
210
185
|
}
|
|
211
186
|
|
|
212
187
|
.card--interactive.card--sunlit:focus-visible {
|
|
213
|
-
box-shadow:
|
|
214
|
-
0 0 20px var(--oh-focus-glow-color),
|
|
215
|
-
0 2px 8px rgba(139, 69, 19, 0.08),
|
|
216
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.9);
|
|
188
|
+
box-shadow: 0 0 20px var(--oh-focus-glow-color), var(--oh-elevation-surface-featured-focused);
|
|
217
189
|
}
|
|
218
190
|
|
|
219
191
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -230,7 +202,7 @@ let OhCard = class OhCard extends OhElement {
|
|
|
230
202
|
|
|
231
203
|
.header {
|
|
232
204
|
padding: var(--oh-spacing-4) var(--oh-spacing-5);
|
|
233
|
-
border-bottom:
|
|
205
|
+
border-bottom: var(--oh-stroke-divider) solid var(--oh-card-section-divider-color);
|
|
234
206
|
background: linear-gradient(
|
|
235
207
|
180deg,
|
|
236
208
|
var(--oh-card-section-header-gradient-start) 0%,
|
|
@@ -246,7 +218,7 @@ let OhCard = class OhCard extends OhElement {
|
|
|
246
218
|
|
|
247
219
|
.footer {
|
|
248
220
|
padding: var(--oh-spacing-4) var(--oh-spacing-5);
|
|
249
|
-
border-top:
|
|
221
|
+
border-top: var(--oh-stroke-divider) solid var(--oh-card-section-divider-color);
|
|
250
222
|
background: linear-gradient(
|
|
251
223
|
180deg,
|
|
252
224
|
var(--oh-color-surface-raised) 0%,
|
package/dist/oh-card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-card.js","sourceRoot":"","sources":["../src/oh-card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAEH,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAM3C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,SAAS;IAA9B;;
|
|
1
|
+
{"version":3,"file":"oh-card.js","sourceRoot":"","sources":["../src/oh-card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAEH,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CA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AAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI;YACvC,mBAAmB,EAAE,IAAI,CAAC,WAAW;SACtC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;;;gBAGC,OAAO;eACR,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;mBACjC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO;iBAClC,IAAI,CAAC,YAAY;mBACf,IAAI,CAAC,cAAc;;;;;;;;;;;;;;KAcjC,CAAC;IACJ,CAAC;;AAnDD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCACV;AAGhC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CACvB;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCACd;AA/NjB,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CA6QlB"}
|
|
@@ -16,7 +16,7 @@ figma.connect("https://www.figma.com/design/q9ZYrOj2w9DrTVmgQFU7bu/OHDS?node-id=
|
|
|
16
16
|
legend="${props.legend}"
|
|
17
17
|
?required="${props.required}"
|
|
18
18
|
?error="${props.error}"
|
|
19
|
-
|
|
19
|
+
errormessage="${props.errorMessage}"
|
|
20
20
|
.options="\${options}"
|
|
21
21
|
></oh-checkbox-group>
|
|
22
22
|
`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-checkbox-group.figma.js","sourceRoot":"","sources":["../src/oh-checkbox-group.figma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;;GAIG;AAEH,KAAK,CAAC,OAAO,CACX,uEAAuE,EACvE;IACE,KAAK,EAAE;QACL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC9B,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QACnC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;kBAEV,KAAK,CAAC,MAAM;qBACT,KAAK,CAAC,QAAQ;kBACjB,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"oh-checkbox-group.figma.js","sourceRoot":"","sources":["../src/oh-checkbox-group.figma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;;GAIG;AAEH,KAAK,CAAC,OAAO,CACX,uEAAuE,EACvE;IACE,KAAK,EAAE;QACL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC9B,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QACnC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;kBAEV,KAAK,CAAC,MAAM;qBACT,KAAK,CAAC,QAAQ;kBACjB,KAAK,CAAC,KAAK;wBACL,KAAK,CAAC,YAAY;;;KAGrC;CACF,CACF,CAAC"}
|
|
@@ -108,10 +108,10 @@ let OhCheckboxGroup = class OhCheckboxGroup extends OhElement {
|
|
|
108
108
|
width: 24px;
|
|
109
109
|
height: 24px;
|
|
110
110
|
flex-shrink: 0;
|
|
111
|
-
border: var(--oh-
|
|
111
|
+
border: var(--oh-stroke-control) solid var(--oh-color-border-emphasis);
|
|
112
112
|
border-radius: var(--oh-shape-compact);
|
|
113
113
|
background-color: var(--oh-color-surface-base);
|
|
114
|
-
box-shadow:
|
|
114
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-secondary);
|
|
115
115
|
transition:
|
|
116
116
|
transform var(--oh-motion-snappy) var(--oh-motion-ease-playful),
|
|
117
117
|
box-shadow var(--oh-motion-snappy) var(--oh-motion-ease-playful),
|
|
@@ -148,21 +148,21 @@ let OhCheckboxGroup = class OhCheckboxGroup extends OhElement {
|
|
|
148
148
|
/* Hover: lift up-left, shadow grows */
|
|
149
149
|
.checkbox-option:hover .checkbox-box {
|
|
150
150
|
border-color: var(--oh-color-border-hover);
|
|
151
|
-
transform: translate(-
|
|
152
|
-
box-shadow:
|
|
151
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
152
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-secondary);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/* Active: press down-right, shadow shrinks */
|
|
156
156
|
.checkbox-option:active .checkbox-box {
|
|
157
|
-
transform: translate(
|
|
158
|
-
box-shadow:
|
|
157
|
+
transform: translate(var(--oh-lift-press-sm), var(--oh-lift-press-sm));
|
|
158
|
+
box-shadow: var(--oh-elevation-offset-xs) var(--oh-elevation-offset-xs) 0 0 var(--oh-shadow-secondary);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
/* Checked: primary color with warm shadow */
|
|
162
162
|
.native-checkbox:checked + .checkbox-box {
|
|
163
163
|
background-color: var(--oh-color-brand-primary);
|
|
164
164
|
border-color: var(--oh-color-brand-primary);
|
|
165
|
-
box-shadow:
|
|
165
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-primary);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.native-checkbox:checked + .checkbox-box::after {
|
|
@@ -173,15 +173,15 @@ let OhCheckboxGroup = class OhCheckboxGroup extends OhElement {
|
|
|
173
173
|
.checkbox-option:hover .native-checkbox:checked + .checkbox-box {
|
|
174
174
|
background-color: var(--oh-color-brand-primary-hover);
|
|
175
175
|
border-color: var(--oh-color-brand-primary-hover);
|
|
176
|
-
transform: translate(-
|
|
177
|
-
box-shadow:
|
|
176
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
177
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-primary);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
/* Checked + Active */
|
|
181
181
|
.checkbox-option:active .native-checkbox:checked + .checkbox-box {
|
|
182
182
|
background-color: var(--oh-color-brand-primary-active);
|
|
183
|
-
transform: translate(
|
|
184
|
-
box-shadow:
|
|
183
|
+
transform: translate(var(--oh-lift-press-sm), var(--oh-lift-press-sm));
|
|
184
|
+
box-shadow: var(--oh-elevation-offset-xs) var(--oh-elevation-offset-xs) 0 0 var(--oh-shadow-primary);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/* Focus: underline the label (accessible indicator) */
|
|
@@ -196,12 +196,12 @@ let OhCheckboxGroup = class OhCheckboxGroup extends OhElement {
|
|
|
196
196
|
|
|
197
197
|
:host([error]) .checkbox-box {
|
|
198
198
|
border-color: var(--oh-color-feedback-error);
|
|
199
|
-
box-shadow:
|
|
199
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-error);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
:host([error]) .checkbox-option:hover .checkbox-box {
|
|
203
203
|
border-color: var(--oh-color-feedback-error-hover);
|
|
204
|
-
box-shadow:
|
|
204
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-error);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.error-message {
|
package/dist/oh-checkbox.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* DESIGN DECISIONS:
|
|
8
8
|
* ─────────────────
|
|
9
9
|
* 1. CHUNKY & TACTILE
|
|
10
|
-
* - Thick
|
|
10
|
+
* - Thick border (stroke.control)
|
|
11
11
|
* - Inset shadow when unchecked (pressed into page)
|
|
12
|
-
* -
|
|
12
|
+
* - shape.compact corners (smaller than buttons)
|
|
13
13
|
*
|
|
14
14
|
* 2. CHECKED STATE
|
|
15
15
|
* - Filled with primary color
|
package/dist/oh-checkbox.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* DESIGN DECISIONS:
|
|
8
8
|
* ─────────────────
|
|
9
9
|
* 1. CHUNKY & TACTILE
|
|
10
|
-
* - Thick
|
|
10
|
+
* - Thick border (stroke.control)
|
|
11
11
|
* - Inset shadow when unchecked (pressed into page)
|
|
12
|
-
* -
|
|
12
|
+
* - shape.compact corners (smaller than buttons)
|
|
13
13
|
*
|
|
14
14
|
* 2. CHECKED STATE
|
|
15
15
|
* - Filled with primary color
|
|
@@ -98,12 +98,12 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
98
98
|
flex-shrink: 0;
|
|
99
99
|
|
|
100
100
|
/* Chunky border */
|
|
101
|
-
border: var(--oh-
|
|
101
|
+
border: var(--oh-stroke-control) solid var(--oh-color-border-emphasis);
|
|
102
102
|
border-radius: var(--oh-shape-compact);
|
|
103
103
|
|
|
104
104
|
/* Offset shadow like primary button */
|
|
105
105
|
background-color: var(--oh-color-surface-base);
|
|
106
|
-
box-shadow:
|
|
106
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-secondary);
|
|
107
107
|
|
|
108
108
|
transition:
|
|
109
109
|
transform var(--oh-motion-snappy) var(--oh-motion-ease-playful),
|
|
@@ -134,21 +134,21 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
134
134
|
/* Hover: lift up-left, shadow grows */
|
|
135
135
|
.checkbox-wrapper:hover .checkbox-box {
|
|
136
136
|
border-color: var(--oh-color-border-hover);
|
|
137
|
-
transform: translate(-
|
|
138
|
-
box-shadow:
|
|
137
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
138
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-secondary);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/* Active: press down-right, shadow shrinks */
|
|
142
142
|
.checkbox-wrapper:active .checkbox-box {
|
|
143
|
-
transform: translate(
|
|
144
|
-
box-shadow:
|
|
143
|
+
transform: translate(var(--oh-lift-press-sm), var(--oh-lift-press-sm));
|
|
144
|
+
box-shadow: var(--oh-elevation-offset-xs) var(--oh-elevation-offset-xs) 0 0 var(--oh-shadow-secondary);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
/* Checked: primary color with warm shadow */
|
|
148
148
|
.native-checkbox:checked + .checkbox-box {
|
|
149
149
|
background-color: var(--oh-color-brand-primary);
|
|
150
150
|
border-color: var(--oh-color-brand-primary);
|
|
151
|
-
box-shadow:
|
|
151
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-primary);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.native-checkbox:checked + .checkbox-box::after {
|
|
@@ -159,15 +159,15 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
159
159
|
.checkbox-wrapper:hover .native-checkbox:checked + .checkbox-box {
|
|
160
160
|
background-color: var(--oh-color-brand-primary-hover);
|
|
161
161
|
border-color: var(--oh-color-brand-primary-hover);
|
|
162
|
-
transform: translate(-
|
|
163
|
-
box-shadow:
|
|
162
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
163
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-primary);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/* Checked + Active */
|
|
167
167
|
.checkbox-wrapper:active .native-checkbox:checked + .checkbox-box {
|
|
168
168
|
background-color: var(--oh-color-brand-primary-active);
|
|
169
|
-
transform: translate(
|
|
170
|
-
box-shadow:
|
|
169
|
+
transform: translate(var(--oh-lift-press-sm), var(--oh-lift-press-sm));
|
|
170
|
+
box-shadow: var(--oh-elevation-offset-xs) var(--oh-elevation-offset-xs) 0 0 var(--oh-shadow-primary);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/* Focus: underline the label (accessible indicator) */
|
|
@@ -195,12 +195,12 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
195
195
|
|
|
196
196
|
:host([error]) .checkbox-box {
|
|
197
197
|
border-color: var(--oh-color-feedback-error);
|
|
198
|
-
box-shadow:
|
|
198
|
+
box-shadow: var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-error);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
:host([error]) .checkbox-wrapper:hover .checkbox-box {
|
|
202
202
|
border-color: var(--oh-color-feedback-error-hover);
|
|
203
|
-
box-shadow:
|
|
203
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-error);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.error-message {
|
|
@@ -238,8 +238,8 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
238
238
|
/* Forced Hover - Unchecked */
|
|
239
239
|
:host([force-state="hover"]) .checkbox-box {
|
|
240
240
|
border-color: var(--oh-color-border-hover);
|
|
241
|
-
transform: translate(-
|
|
242
|
-
box-shadow:
|
|
241
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
242
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-secondary);
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
/* Forced Focus - Unchecked */
|
|
@@ -252,8 +252,8 @@ let OhCheckbox = class OhCheckbox extends OhElement {
|
|
|
252
252
|
:host([force-state="hover"][checked]) .checkbox-box {
|
|
253
253
|
background-color: var(--oh-color-brand-primary-hover);
|
|
254
254
|
border-color: var(--oh-color-brand-primary-hover);
|
|
255
|
-
transform: translate(-
|
|
256
|
-
box-shadow:
|
|
255
|
+
transform: translate(var(--oh-lift-hover-sm), var(--oh-lift-hover-sm));
|
|
256
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-shadow-primary);
|
|
257
257
|
}
|
|
258
258
|
`,
|
|
259
259
|
]; }
|
package/dist/oh-drawer.js
CHANGED
|
@@ -117,7 +117,7 @@ let OhDrawer = class OhDrawer extends OhElement {
|
|
|
117
117
|
/* Right position */
|
|
118
118
|
.drawer--right {
|
|
119
119
|
right: 0;
|
|
120
|
-
box-shadow: -
|
|
120
|
+
box-shadow: calc(-1 * var(--oh-elevation-offset-lg)) var(--oh-elevation-offset-lg) 0 0 var(--oh-color-border-strong);
|
|
121
121
|
transform: translateX(100%);
|
|
122
122
|
}
|
|
123
123
|
|
package/dist/oh-footer.d.ts
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
* - White/inverse text and links
|
|
16
16
|
* - Generous padding
|
|
17
17
|
*
|
|
18
|
+
* BRAND PATTERN: this belongs to the Orange Halo brand, not the core. Import
|
|
19
|
+
* it from @orange-halo/brand-orange-halo; importing it from components is
|
|
20
|
+
* deprecated and stops working in components 3.0, when this file moves to
|
|
21
|
+
* the brand package (brand plan phase 8).
|
|
22
|
+
*
|
|
18
23
|
* @element oh-footer
|
|
19
24
|
*
|
|
20
25
|
* @slot logo - Slot for logo element
|
package/dist/oh-footer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-footer.d.ts","sourceRoot":"","sources":["../src/oh-footer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oh-footer.d.ts","sourceRoot":"","sources":["../src/oh-footer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAE,SAAS,EAAc,MAAM,WAAW,CAAC;AAElD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;AAEzB,qBACa,QAAS,SAAQ,SAAS;IACrC,OAAgB,MAAM,4BAmCpB;IAEF,qBAAqB;IAErB,SAAS,SAAM;IAEf,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/dist/oh-footer.js
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
* - White/inverse text and links
|
|
16
16
|
* - Generous padding
|
|
17
17
|
*
|
|
18
|
+
* BRAND PATTERN: this belongs to the Orange Halo brand, not the core. Import
|
|
19
|
+
* it from @orange-halo/brand-orange-halo; importing it from components is
|
|
20
|
+
* deprecated and stops working in components 3.0, when this file moves to
|
|
21
|
+
* the brand package (brand plan phase 8).
|
|
22
|
+
*
|
|
18
23
|
* @element oh-footer
|
|
19
24
|
*
|
|
20
25
|
* @slot logo - Slot for logo element
|
package/dist/oh-footer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-footer.js","sourceRoot":"","sources":["../src/oh-footer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oh-footer.js","sourceRoot":"","sources":["../src/oh-footer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;;;;;AAEH,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;AAGlB,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,SAAS;IAAhC;;QAsCL,qBAAqB;QAErB,cAAS,GAAG,EAAE,CAAC;IA2BjB,CAAC;aAlEiB,WAAM,GAAG;QACvB,UAAU;QACV,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCF;KACF,AAnCqB,CAmCpB;IAMF,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;;;;gBASC,IAAI,CAAC,SAAS;YACd,CAAC,CAAC,IAAI,CAAA,gCAAgC,IAAI,CAAC,SAAS,MAAM;YAC1D,CAAC,CAAC,IAAI;;;;;;;;;;;KAWjB,CAAC;IACJ,CAAC;;AA1BD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACZ;AAxCJ,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAmEpB"}
|
package/dist/oh-hero.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A prominent hero section for page headers.
|
|
5
5
|
*
|
|
6
|
+
* BRAND PATTERN: this belongs to the Orange Halo brand, not the core. Import
|
|
7
|
+
* it from @orange-halo/brand-orange-halo; importing it from components is
|
|
8
|
+
* deprecated and stops working in components 3.0, when this file moves to
|
|
9
|
+
* the brand package (brand plan phase 8).
|
|
10
|
+
*
|
|
6
11
|
* @element oh-hero
|
|
7
12
|
*/
|
|
8
13
|
import { LitElement } from "lit";
|
package/dist/oh-hero.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-hero.d.ts","sourceRoot":"","sources":["../src/oh-hero.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oh-hero.d.ts","sourceRoot":"","sources":["../src/oh-hero.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAa,UAAU,EAAW,MAAM,KAAK,CAAC;AAGrD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,qBACa,MAAO,SAAQ,UAAU;IACpC,OAAgB,MAAM,0BA+IpB;IAGF,OAAO,EAAE,WAAW,CAAa;IAGjC,IAAI,EAAE,QAAQ,CAAQ;IAGtB,OAAO,SAAM;IAGb,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,WAAW,SAAK;IAGhB,UAAU,SAAK;IAEN,MAAM;CA4ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
package/dist/oh-hero.js
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A prominent hero section for page headers.
|
|
5
5
|
*
|
|
6
|
+
* BRAND PATTERN: this belongs to the Orange Halo brand, not the core. Import
|
|
7
|
+
* it from @orange-halo/brand-orange-halo; importing it from components is
|
|
8
|
+
* deprecated and stops working in components 3.0, when this file moves to
|
|
9
|
+
* the brand package (brand plan phase 8).
|
|
10
|
+
*
|
|
6
11
|
* @element oh-hero
|
|
7
12
|
*/
|
|
8
13
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
package/dist/oh-hero.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-hero.js","sourceRoot":"","sources":["../src/oh-hero.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"oh-hero.js","sourceRoot":"","sources":["../src/oh-hero.ts"],"names":[],"mappings":"AAA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A6B,IAAI,CAAC,OAAO,OAAO;YACtD,CAAC,CAAC,OAAO;YACT,IAAI,CAAC,QAAQ;YACb,CAAC,CAAC,IAAI,CAAA,6BAA6B,IAAI,CAAC,QAAQ,MAAM;YACtD,CAAC,CAAC,OAAO;;;;;;KAMhB,CAAC;IACJ,CAAC;;AA/DD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCACT;AAGjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCACpB;AAGtB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACd;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACb;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;2CACrC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;2CACtC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;0CACtC;AArKJ,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CAmNlB"}
|
package/dist/oh-icon.js
CHANGED
|
@@ -224,8 +224,8 @@ let OhIcon = class OhIcon extends OhElement {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.icon-link:hover {
|
|
227
|
-
transform: translate(-
|
|
228
|
-
box-shadow:
|
|
227
|
+
transform: translate(var(--oh-lift-hover-md), var(--oh-lift-hover-md));
|
|
228
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-color-border-default);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.icon-link:active {
|
|
@@ -243,7 +243,7 @@ let OhIcon = class OhIcon extends OhElement {
|
|
|
243
243
|
|
|
244
244
|
/* Inverse link styles (for dark/colored backgrounds) */
|
|
245
245
|
:host([inverse]) .icon-link:hover {
|
|
246
|
-
box-shadow:
|
|
246
|
+
box-shadow: var(--oh-elevation-offset-lg) var(--oh-elevation-offset-lg) 0 0 var(--oh-color-text-on-accent);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
:host([inverse]) .icon-link:focus-visible {
|
package/dist/oh-input.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* DESIGN DECISIONS:
|
|
8
8
|
* ─────────────────
|
|
9
9
|
* 1. CHUNKY & CONFIDENT
|
|
10
|
-
* - Thick border (
|
|
10
|
+
* - Thick border (stroke.control) that feels illustrative
|
|
11
11
|
* - Solid fill, no subtle gradients
|
|
12
|
-
* -
|
|
12
|
+
* - shape.control corners (matches button)
|
|
13
13
|
*
|
|
14
14
|
* 2. INSET SHADOW (PRESSED IN)
|
|
15
15
|
* - Shadow offset to top-left (inset)
|
package/dist/oh-input.figma.js
CHANGED
|
@@ -28,8 +28,8 @@ figma.connect("https://www.figma.com/design/q9ZYrOj2w9DrTVmgQFU7bu/OHDS?node-id=
|
|
|
28
28
|
value="${props.value}"
|
|
29
29
|
placeholder="${props.showPlaceholder ? props.placeholder : ""}"
|
|
30
30
|
?required="${props.required}"
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
helpertext="${props.helperText}"
|
|
32
|
+
errortext="${props.errorText}"
|
|
33
33
|
></oh-input>
|
|
34
34
|
`,
|
|
35
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oh-input.figma.js","sourceRoot":"","sources":["../src/oh-input.figma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;;;;;;;;;;GAYG;AAEH,KAAK,CAAC,OAAO,CACX,uEAAuE,EACvE;IACE,KAAK,EAAE;QAC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ACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;iBAEX,KAAK,CAAC,KAAK;iBACX,KAAK,CAAC,KAAK;uBACL,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;qBAChD,KAAK,CAAC,QAAQ;sBACb,KAAK,CAAC,UAAU;qBACjB,KAAK,CAAC,SAAS;;KAE/B;CACF,CACF,CAAC"}
|
package/dist/oh-input.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* DESIGN DECISIONS:
|
|
8
8
|
* ─────────────────
|
|
9
9
|
* 1. CHUNKY & CONFIDENT
|
|
10
|
-
* - Thick border (
|
|
10
|
+
* - Thick border (stroke.control) that feels illustrative
|
|
11
11
|
* - Solid fill, no subtle gradients
|
|
12
|
-
* -
|
|
12
|
+
* - shape.control corners (matches button)
|
|
13
13
|
*
|
|
14
14
|
* 2. INSET SHADOW (PRESSED IN)
|
|
15
15
|
* - Shadow offset to top-left (inset)
|
|
@@ -105,7 +105,7 @@ let OhInput = class OhInput extends OhElement {
|
|
|
105
105
|
border-radius: var(--oh-shape-control);
|
|
106
106
|
|
|
107
107
|
/* Inset offset shadow: pressed into page */
|
|
108
|
-
box-shadow: inset
|
|
108
|
+
box-shadow: inset var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-field);
|
|
109
109
|
|
|
110
110
|
transition:
|
|
111
111
|
border-color var(--oh-motion-snappy) ease,
|
|
@@ -128,7 +128,7 @@ let OhInput = class OhInput extends OhElement {
|
|
|
128
128
|
background-color: var(--oh-color-surface-highlight);
|
|
129
129
|
border-color: var(--oh-focus-ring-color);
|
|
130
130
|
|
|
131
|
-
/*
|
|
131
|
+
/* Inset ring + border, even on all sides */
|
|
132
132
|
box-shadow: inset 0 0 0 2px var(--oh-focus-ring-color);
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -150,7 +150,7 @@ let OhInput = class OhInput extends OhElement {
|
|
|
150
150
|
.input--error {
|
|
151
151
|
border-color: var(--oh-color-feedback-error);
|
|
152
152
|
background-color: var(--oh-color-feedback-error-subtle);
|
|
153
|
-
box-shadow: inset
|
|
153
|
+
box-shadow: inset var(--oh-elevation-offset-md) var(--oh-elevation-offset-md) 0 0 var(--oh-shadow-error);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.input--error:focus {
|