@openwarelabs/ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/Accordion/Accordion.d.cts +1 -1
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.cts +13 -2
- package/dist/components/Avatar/Avatar.d.ts +13 -2
- package/dist/components/Avatar/AvatarGroup.d.cts +7 -6
- package/dist/components/Avatar/AvatarGroup.d.ts +7 -6
- package/dist/components/CodeBlock/CodeBlock.d.cts +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/components/FileDropZone/FileDropZone.d.cts +1 -1
- package/dist/components/FileDropZone/FileDropZone.d.ts +1 -1
- package/dist/components/FileTree/FileTree.d.cts +1 -1
- package/dist/components/FileTree/FileTree.d.ts +1 -1
- package/dist/components/Progress/Progress.d.cts +1 -1
- package/dist/components/Progress/Progress.d.ts +1 -1
- package/dist/components/Stat/Stat.d.cts +1 -1
- package/dist/components/Stat/Stat.d.ts +1 -1
- package/dist/components/Steps/Steps.d.cts +2 -2
- package/dist/components/Steps/Steps.d.ts +2 -2
- package/dist/components/Table/Table.d.cts +6 -1
- package/dist/components/Table/Table.d.ts +6 -1
- package/dist/components/Tabs/Tabs.d.cts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.cts +3 -3
- package/dist/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/components.css +58 -16
- package/dist/hooks/useFloating.d.cts +2 -2
- package/dist/hooks/useFloating.d.ts +2 -2
- package/dist/index.cjs +46 -7
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +46 -7
- package/dist/index.js.map +3 -3
- package/dist/openware-ui.iife.js +5 -5
- package/dist/styles.css +61 -16
- package/dist/tailwind.css +1 -0
- package/dist/tokens.css +3 -0
- package/dist/tokens.json +1110 -191
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
--ow-key-ground: var(--ow-gray-50);
|
|
83
83
|
--ow-track: var(--ow-gray-100);
|
|
84
84
|
--ow-thumb: #ffffff;
|
|
85
|
+
--ow-knob: #ffffff;
|
|
85
86
|
--ow-meter-track: var(--ow-gray-200);
|
|
86
87
|
--ow-progress: var(--ow-brand-600);
|
|
87
88
|
--ow-code-block: #15171c;
|
|
@@ -158,6 +159,7 @@
|
|
|
158
159
|
--ow-key-ground: #22262e;
|
|
159
160
|
--ow-track: #14161b;
|
|
160
161
|
--ow-thumb: #2f3541;
|
|
162
|
+
--ow-knob: #e4e7ec;
|
|
161
163
|
--ow-meter-track: #2c313a;
|
|
162
164
|
--ow-progress: var(--ow-brand-400);
|
|
163
165
|
--ow-code-block-border: #2c313a;
|
|
@@ -230,6 +232,7 @@
|
|
|
230
232
|
--ow-key-ground: #22262e;
|
|
231
233
|
--ow-track: #14161b;
|
|
232
234
|
--ow-thumb: #2f3541;
|
|
235
|
+
--ow-knob: #e4e7ec;
|
|
233
236
|
--ow-meter-track: #2c313a;
|
|
234
237
|
--ow-progress: var(--ow-brand-400);
|
|
235
238
|
--ow-code-block-border: #2c313a;
|
|
@@ -467,6 +470,7 @@
|
|
|
467
470
|
back into it. useFloating sets data-side and --ow-floating-origin; usePresence sets data-state. */
|
|
468
471
|
.ow-floating {
|
|
469
472
|
--ow-floating-shift: -4px;
|
|
473
|
+
--ow-floating-shift-x: 0px;
|
|
470
474
|
transform-origin: var(--ow-floating-origin, top center);
|
|
471
475
|
}
|
|
472
476
|
|
|
@@ -474,6 +478,16 @@
|
|
|
474
478
|
--ow-floating-shift: 4px;
|
|
475
479
|
}
|
|
476
480
|
|
|
481
|
+
.ow-floating[data-side="left"] {
|
|
482
|
+
--ow-floating-shift: 0px;
|
|
483
|
+
--ow-floating-shift-x: 4px;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ow-floating[data-side="right"] {
|
|
487
|
+
--ow-floating-shift: 0px;
|
|
488
|
+
--ow-floating-shift-x: -4px;
|
|
489
|
+
}
|
|
490
|
+
|
|
477
491
|
.ow-floating[data-state="open"] {
|
|
478
492
|
animation: ow-floating-in var(--ow-duration-base) var(--ow-ease-emphasized);
|
|
479
493
|
}
|
|
@@ -486,14 +500,14 @@
|
|
|
486
500
|
@keyframes ow-floating-in {
|
|
487
501
|
from {
|
|
488
502
|
opacity: 0;
|
|
489
|
-
transform:
|
|
503
|
+
transform: translate(var(--ow-floating-shift-x), var(--ow-floating-shift)) scale(0.96);
|
|
490
504
|
}
|
|
491
505
|
}
|
|
492
506
|
|
|
493
507
|
@keyframes ow-floating-out {
|
|
494
508
|
to {
|
|
495
509
|
opacity: 0;
|
|
496
|
-
transform:
|
|
510
|
+
transform: translate(var(--ow-floating-shift-x), var(--ow-floating-shift)) scale(0.97);
|
|
497
511
|
}
|
|
498
512
|
}
|
|
499
513
|
|
|
@@ -869,7 +883,7 @@
|
|
|
869
883
|
border-bottom-right-radius: 0;
|
|
870
884
|
}
|
|
871
885
|
|
|
872
|
-
/* CloseButton:
|
|
886
|
+
/* CloseButton: a quiet square that darkens on hover, for dialogs and panels. */
|
|
873
887
|
.ow-close-button {
|
|
874
888
|
display: inline-flex;
|
|
875
889
|
flex-shrink: 0;
|
|
@@ -909,7 +923,7 @@
|
|
|
909
923
|
}
|
|
910
924
|
|
|
911
925
|
/* components/SegmentedControl/SegmentedControl.css */
|
|
912
|
-
/* SegmentedControl and segmented Tabs:
|
|
926
|
+
/* SegmentedControl and segmented Tabs: a well with the chosen segment raised. */
|
|
913
927
|
.ow-segmented,
|
|
914
928
|
.ow-tabs--segmented .ow-tabs__list {
|
|
915
929
|
position: relative;
|
|
@@ -922,6 +936,8 @@
|
|
|
922
936
|
border-radius: var(--ow-radius-container);
|
|
923
937
|
background: var(--ow-track);
|
|
924
938
|
padding: var(--ow-space-2xs);
|
|
939
|
+
/* A hairline edge, so the well shows on the canvas as well as on a surface. */
|
|
940
|
+
box-shadow: inset 0 0 0 1px var(--ow-border);
|
|
925
941
|
}
|
|
926
942
|
|
|
927
943
|
.ow-segmented--full {
|
|
@@ -1225,6 +1241,8 @@
|
|
|
1225
1241
|
.ow-input-group {
|
|
1226
1242
|
display: flex;
|
|
1227
1243
|
width: 100%;
|
|
1244
|
+
/* Shrink in a narrow grid or flex column instead of pushing past it. */
|
|
1245
|
+
min-width: 0;
|
|
1228
1246
|
height: 40px;
|
|
1229
1247
|
align-items: center;
|
|
1230
1248
|
gap: var(--ow-space-sm);
|
|
@@ -1271,6 +1289,8 @@
|
|
|
1271
1289
|
}
|
|
1272
1290
|
|
|
1273
1291
|
.ow-input-group__input {
|
|
1292
|
+
/* A percentage width lets the field's minimum size come from its start and end content alone. */
|
|
1293
|
+
width: 100%;
|
|
1274
1294
|
min-width: 0;
|
|
1275
1295
|
height: 100%;
|
|
1276
1296
|
flex: 1;
|
|
@@ -1877,7 +1897,7 @@
|
|
|
1877
1897
|
width: 16px;
|
|
1878
1898
|
height: 16px;
|
|
1879
1899
|
border-radius: var(--ow-radius-pill);
|
|
1880
|
-
background:
|
|
1900
|
+
background: var(--ow-knob);
|
|
1881
1901
|
box-shadow: var(--ow-shadow-control);
|
|
1882
1902
|
transform: translateX(2px);
|
|
1883
1903
|
transition:
|
|
@@ -1899,7 +1919,7 @@
|
|
|
1899
1919
|
}
|
|
1900
1920
|
|
|
1901
1921
|
/* components/Slider/Slider.css */
|
|
1902
|
-
/* Slider: native range inputs over a drawn track. The thumb is the switch's knob:
|
|
1922
|
+
/* Slider: native range inputs over a drawn track. The thumb is the switch's knob (ow-knob): round, with a soft shadow. */
|
|
1903
1923
|
.ow-slider {
|
|
1904
1924
|
display: grid;
|
|
1905
1925
|
gap: var(--ow-space-sm);
|
|
@@ -1990,7 +2010,7 @@
|
|
|
1990
2010
|
appearance: none;
|
|
1991
2011
|
border: 1px solid var(--ow-border-strong);
|
|
1992
2012
|
border-radius: 50%;
|
|
1993
|
-
background:
|
|
2013
|
+
background: var(--ow-knob);
|
|
1994
2014
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
|
|
1995
2015
|
pointer-events: auto;
|
|
1996
2016
|
cursor: grab;
|
|
@@ -2003,7 +2023,7 @@
|
|
|
2003
2023
|
height: 18px;
|
|
2004
2024
|
border: 1px solid var(--ow-border-strong);
|
|
2005
2025
|
border-radius: 50%;
|
|
2006
|
-
background:
|
|
2026
|
+
background: var(--ow-knob);
|
|
2007
2027
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
|
|
2008
2028
|
pointer-events: auto;
|
|
2009
2029
|
cursor: grab;
|
|
@@ -2209,7 +2229,7 @@
|
|
|
2209
2229
|
}
|
|
2210
2230
|
|
|
2211
2231
|
/* components/FileDropZone/FileDropZone.css */
|
|
2212
|
-
/* FileDropZone:
|
|
2232
|
+
/* FileDropZone: a dashed well that turns primary while something is dragged over it. */
|
|
2213
2233
|
.ow-dropzone {
|
|
2214
2234
|
display: flex;
|
|
2215
2235
|
min-height: 128px;
|
|
@@ -2551,7 +2571,7 @@
|
|
|
2551
2571
|
transition: width var(--ow-duration-slow) var(--ow-ease-standard);
|
|
2552
2572
|
}
|
|
2553
2573
|
|
|
2554
|
-
/* Unknown length: a segment sliding across
|
|
2574
|
+
/* Unknown length: a segment sliding across. */
|
|
2555
2575
|
.ow-progress__track--indeterminate .ow-progress__fill {
|
|
2556
2576
|
width: 37%;
|
|
2557
2577
|
animation: ow-progress-slide 1.3s var(--ow-ease-standard) infinite;
|
|
@@ -2613,7 +2633,7 @@
|
|
|
2613
2633
|
}
|
|
2614
2634
|
|
|
2615
2635
|
/* components/Tooltip/Tooltip.css */
|
|
2616
|
-
/* Tooltip: a small dark label in the top layer,
|
|
2636
|
+
/* Tooltip: a small dark label in the top layer, on the side of the child it prefers (or the other side when there's no room). */
|
|
2617
2637
|
.ow-tooltip {
|
|
2618
2638
|
display: inline-flex;
|
|
2619
2639
|
}
|
|
@@ -2769,7 +2789,7 @@
|
|
|
2769
2789
|
box-shadow: none;
|
|
2770
2790
|
}
|
|
2771
2791
|
|
|
2772
|
-
/* The ✕ sits on the corner
|
|
2792
|
+
/* The ✕ sits on the corner. */
|
|
2773
2793
|
.ow-toaster.ow-toaster [data-sonner-toast][data-styled="true"] [data-close-button] {
|
|
2774
2794
|
width: 22px;
|
|
2775
2795
|
height: 22px;
|
|
@@ -3788,7 +3808,7 @@
|
|
|
3788
3808
|
}
|
|
3789
3809
|
|
|
3790
3810
|
/* components/Accordion/Accordion.css */
|
|
3791
|
-
/* Disclosure and Accordion:
|
|
3811
|
+
/* Disclosure and Accordion: a header with a chevron that turns as the panel opens. */
|
|
3792
3812
|
.ow-disclosure,
|
|
3793
3813
|
.ow-accordion--bordered,
|
|
3794
3814
|
.ow-accordion--separated .ow-accordion__item {
|
|
@@ -4127,7 +4147,7 @@
|
|
|
4127
4147
|
}
|
|
4128
4148
|
|
|
4129
4149
|
/* components/Steps/Steps.css */
|
|
4130
|
-
/* Steps:
|
|
4150
|
+
/* Steps: a setup checklist (vertical) and a compact strip (horizontal). */
|
|
4131
4151
|
.ow-steps--vertical {
|
|
4132
4152
|
border: 1px solid var(--ow-border);
|
|
4133
4153
|
border-radius: var(--ow-radius-container);
|
|
@@ -4417,6 +4437,19 @@
|
|
|
4417
4437
|
font-size: 13px;
|
|
4418
4438
|
}
|
|
4419
4439
|
|
|
4440
|
+
.ow-avatar--xl {
|
|
4441
|
+
width: 48px;
|
|
4442
|
+
height: 48px;
|
|
4443
|
+
font-size: 17px;
|
|
4444
|
+
}
|
|
4445
|
+
|
|
4446
|
+
/* Any size in pixels, through --ow-avatar-size: the initials stay in proportion. */
|
|
4447
|
+
.ow-avatar--custom {
|
|
4448
|
+
width: var(--ow-avatar-size);
|
|
4449
|
+
height: var(--ow-avatar-size);
|
|
4450
|
+
font-size: calc(var(--ow-avatar-size) * 0.36);
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4420
4453
|
.ow-avatar__image {
|
|
4421
4454
|
width: 100%;
|
|
4422
4455
|
height: 100%;
|
|
@@ -4453,6 +4486,18 @@
|
|
|
4453
4486
|
gap: var(--ow-space-md);
|
|
4454
4487
|
}
|
|
4455
4488
|
|
|
4489
|
+
.ow-user--xl {
|
|
4490
|
+
gap: var(--ow-space-lg);
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
.ow-user--xl .ow-user__name {
|
|
4494
|
+
font-size: 15px;
|
|
4495
|
+
}
|
|
4496
|
+
|
|
4497
|
+
.ow-user--xl .ow-user__description {
|
|
4498
|
+
font-size: 13px;
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4456
4501
|
.ow-user__text {
|
|
4457
4502
|
display: grid;
|
|
4458
4503
|
min-width: 0;
|
|
@@ -4993,7 +5038,7 @@
|
|
|
4993
5038
|
}
|
|
4994
5039
|
|
|
4995
5040
|
/* components/Stat/Stat.css */
|
|
4996
|
-
/* Stat:
|
|
5041
|
+
/* Stat: an overview card. A muted label, a big tabular number, a change and an optional trend line. */
|
|
4997
5042
|
.ow-stat {
|
|
4998
5043
|
display: grid;
|
|
4999
5044
|
min-width: 0;
|
|
@@ -5103,7 +5148,7 @@
|
|
|
5103
5148
|
}
|
|
5104
5149
|
|
|
5105
5150
|
/* components/FileTree/FileTree.css */
|
|
5106
|
-
/* FileTree:
|
|
5151
|
+
/* FileTree: a project structure explorer. Monospace names, hairline guides, a tinted selected file. */
|
|
5107
5152
|
.ow-tree,
|
|
5108
5153
|
.ow-tree__group {
|
|
5109
5154
|
margin: 0;
|
package/dist/tailwind.css
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
--color-key-ground: var(--ow-key-ground);
|
|
84
84
|
--color-track: var(--ow-track);
|
|
85
85
|
--color-thumb: var(--ow-thumb);
|
|
86
|
+
--color-knob: var(--ow-knob);
|
|
86
87
|
--color-meter-track: var(--ow-meter-track);
|
|
87
88
|
--color-progress: var(--ow-progress);
|
|
88
89
|
--color-code-block: var(--ow-code-block);
|
package/dist/tokens.css
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
--ow-key-ground: var(--ow-gray-50);
|
|
83
83
|
--ow-track: var(--ow-gray-100);
|
|
84
84
|
--ow-thumb: #ffffff;
|
|
85
|
+
--ow-knob: #ffffff;
|
|
85
86
|
--ow-meter-track: var(--ow-gray-200);
|
|
86
87
|
--ow-progress: var(--ow-brand-600);
|
|
87
88
|
--ow-code-block: #15171c;
|
|
@@ -158,6 +159,7 @@
|
|
|
158
159
|
--ow-key-ground: #22262e;
|
|
159
160
|
--ow-track: #14161b;
|
|
160
161
|
--ow-thumb: #2f3541;
|
|
162
|
+
--ow-knob: #e4e7ec;
|
|
161
163
|
--ow-meter-track: #2c313a;
|
|
162
164
|
--ow-progress: var(--ow-brand-400);
|
|
163
165
|
--ow-code-block-border: #2c313a;
|
|
@@ -230,6 +232,7 @@
|
|
|
230
232
|
--ow-key-ground: #22262e;
|
|
231
233
|
--ow-track: #14161b;
|
|
232
234
|
--ow-thumb: #2f3541;
|
|
235
|
+
--ow-knob: #e4e7ec;
|
|
233
236
|
--ow-meter-track: #2c313a;
|
|
234
237
|
--ow-progress: var(--ow-brand-400);
|
|
235
238
|
--ow-code-block-border: #2c313a;
|