@luscii-healthtech/web-ui 40.0.1 → 40.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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type PropsWithChildren, type FC, type ReactNode, type ComponentProps } from "react";
|
|
2
|
+
import { Box } from "../Box/Box";
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
* Wether the aside should be presented.
|
|
6
|
+
*
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
open: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* A slot for the aside element.
|
|
12
|
+
*/
|
|
13
|
+
aside: ReactNode;
|
|
14
|
+
} & ComponentProps<typeof Box>;
|
|
15
|
+
export declare const SplitViewLayout: FC<PropsWithChildren<Props>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type StoryObj } from "@storybook/react";
|
|
2
|
+
import { BADGES } from "../.storybook/constants";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<import("react").PropsWithChildren<{
|
|
6
|
+
open: boolean;
|
|
7
|
+
aside: import("react").ReactNode;
|
|
8
|
+
} & Omit<any, "ref"> & Partial<Record<"p" | "m" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "mt" | "mr" | "mb" | "ml" | "mx" | "my", "none" | "s" | "xl" | "m" | "xs" | "xxxxs" | "xxxs" | "xxs" | "l" | "xxl">> & {
|
|
9
|
+
as?: import("react").ElementType | undefined;
|
|
10
|
+
elevation?: "small" | "medium" | "large" | "base" | "drag" | "surface" | "extraLarge";
|
|
11
|
+
width?: "full" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | keyof typeof import("../src/index").SIZES;
|
|
12
|
+
backgroundColor?: import("../src/types/general.types").BackgroundColor;
|
|
13
|
+
borderRadius?: keyof typeof import("../src/index").SIZES;
|
|
14
|
+
borderRadiusLeft?: keyof typeof import("../src/index").SIZES;
|
|
15
|
+
borderRadiusRight?: keyof typeof import("../src/index").SIZES;
|
|
16
|
+
hoverBackgroundColor?: import("../src/types/general.types").BackgroundColor;
|
|
17
|
+
cursor?: import("../src/types/general.types").CursorOption;
|
|
18
|
+
}>>;
|
|
19
|
+
parameters: {
|
|
20
|
+
badges: BADGES[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
export declare const Closed: Story;
|
|
26
|
+
export declare const Open: Story;
|
|
27
|
+
export declare const CRUDLayoutExample: Story;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -258,6 +258,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
258
258
|
.ui\:invisible {
|
|
259
259
|
visibility: hidden;
|
|
260
260
|
}
|
|
261
|
+
.ui\:visible {
|
|
262
|
+
visibility: visible;
|
|
263
|
+
}
|
|
261
264
|
.ui\:sr-only {
|
|
262
265
|
position: absolute;
|
|
263
266
|
width: 1px;
|
|
@@ -1208,6 +1211,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1208
1211
|
.ui\:max-w-270 {
|
|
1209
1212
|
max-width: 67.5rem;
|
|
1210
1213
|
}
|
|
1214
|
+
.ui\:max-w-\[--spacing\(132\)\] {
|
|
1215
|
+
max-width: calc(var(--ui-spacing) * 132);
|
|
1216
|
+
}
|
|
1211
1217
|
.ui\:max-w-\[20ch\] {
|
|
1212
1218
|
max-width: 20ch;
|
|
1213
1219
|
}
|
|
@@ -1217,6 +1223,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1217
1223
|
.ui\:max-w-\[30ch\] {
|
|
1218
1224
|
max-width: 30ch;
|
|
1219
1225
|
}
|
|
1226
|
+
.ui\:max-w-\[100vw\] {
|
|
1227
|
+
max-width: 100vw;
|
|
1228
|
+
}
|
|
1220
1229
|
.ui\:max-w-\[200px\] {
|
|
1221
1230
|
max-width: 200px;
|
|
1222
1231
|
}
|
|
@@ -1302,10 +1311,18 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1302
1311
|
--tw-translate-x: calc(var(--ui-spacing) * 1);
|
|
1303
1312
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1304
1313
|
}
|
|
1314
|
+
.ui\:translate-x-\[--spacing\(132\)\] {
|
|
1315
|
+
--tw-translate-x: calc(var(--ui-spacing) * 132);
|
|
1316
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1317
|
+
}
|
|
1305
1318
|
.ui\:translate-x-\[-1\.5px\] {
|
|
1306
1319
|
--tw-translate-x: -1.5px;
|
|
1307
1320
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1308
1321
|
}
|
|
1322
|
+
.ui\:translate-x-\[0\] {
|
|
1323
|
+
--tw-translate-x: 0;
|
|
1324
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1325
|
+
}
|
|
1309
1326
|
.ui\:-translate-y-1\/2 {
|
|
1310
1327
|
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
1311
1328
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1999,6 +2016,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1999
2016
|
.ui\:bg-background {
|
|
2000
2017
|
background-color: var(--ui-color-slate-50);
|
|
2001
2018
|
}
|
|
2019
|
+
.ui\:bg-black {
|
|
2020
|
+
background-color: var(--ui-color-black);
|
|
2021
|
+
}
|
|
2002
2022
|
.ui\:bg-blue-50 {
|
|
2003
2023
|
background-color: var(--ui-color-blue-50);
|
|
2004
2024
|
}
|
|
@@ -2791,6 +2811,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2791
2811
|
.ui\:opacity-\[0\.01\] {
|
|
2792
2812
|
opacity: 0.01;
|
|
2793
2813
|
}
|
|
2814
|
+
.ui\:opacity-\[0\.2\] {
|
|
2815
|
+
opacity: 0.2;
|
|
2816
|
+
}
|
|
2794
2817
|
.ui\:\!shadow-none {
|
|
2795
2818
|
--tw-shadow: 0 0 #0000 !important;
|
|
2796
2819
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
@@ -2903,6 +2926,21 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2903
2926
|
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
2904
2927
|
transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
|
|
2905
2928
|
}
|
|
2929
|
+
.ui\:transition-\[max-width\] {
|
|
2930
|
+
transition-property: max-width;
|
|
2931
|
+
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
2932
|
+
transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
|
|
2933
|
+
}
|
|
2934
|
+
.ui\:transition-\[opacity\,display\] {
|
|
2935
|
+
transition-property: opacity,display;
|
|
2936
|
+
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
2937
|
+
transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
|
|
2938
|
+
}
|
|
2939
|
+
.ui\:transition-\[translate\,opacity\,display\] {
|
|
2940
|
+
transition-property: translate,opacity,display;
|
|
2941
|
+
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
2942
|
+
transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
|
|
2943
|
+
}
|
|
2906
2944
|
.ui\:transition-all {
|
|
2907
2945
|
transition-property: all;
|
|
2908
2946
|
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
@@ -2923,6 +2961,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2923
2961
|
transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
|
|
2924
2962
|
transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
|
|
2925
2963
|
}
|
|
2964
|
+
.ui\:transition-discrete {
|
|
2965
|
+
transition-behavior: allow-discrete;
|
|
2966
|
+
}
|
|
2926
2967
|
.ui\:duration-75 {
|
|
2927
2968
|
--tw-duration: 75ms;
|
|
2928
2969
|
transition-duration: 75ms;
|
|
@@ -2947,6 +2988,10 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2947
2988
|
--tw-duration: 3000ms;
|
|
2948
2989
|
transition-duration: 3000ms;
|
|
2949
2990
|
}
|
|
2991
|
+
.ui\:duration-\[300ms\] {
|
|
2992
|
+
--tw-duration: 300ms;
|
|
2993
|
+
transition-duration: 300ms;
|
|
2994
|
+
}
|
|
2950
2995
|
.ui\:ease-in {
|
|
2951
2996
|
--tw-ease: var(--ui-ease-in);
|
|
2952
2997
|
transition-timing-function: var(--ui-ease-in);
|
|
@@ -2962,6 +3007,13 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2962
3007
|
.ui\:will-change-transform {
|
|
2963
3008
|
will-change: transform;
|
|
2964
3009
|
}
|
|
3010
|
+
.ui\:contain-size {
|
|
3011
|
+
--tw-contain-size: size;
|
|
3012
|
+
contain: var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,);
|
|
3013
|
+
}
|
|
3014
|
+
.ui\:contain-strict {
|
|
3015
|
+
contain: strict;
|
|
3016
|
+
}
|
|
2965
3017
|
.ui\:outline-none {
|
|
2966
3018
|
--tw-outline-style: none;
|
|
2967
3019
|
outline-style: none;
|
|
@@ -2991,6 +3043,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
2991
3043
|
.ui\:duration-3000 {
|
|
2992
3044
|
animation-duration: 3000ms;
|
|
2993
3045
|
}
|
|
3046
|
+
.ui\:duration-\[300ms\] {
|
|
3047
|
+
animation-duration: 300ms;
|
|
3048
|
+
}
|
|
2994
3049
|
.ui\:ease-in {
|
|
2995
3050
|
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
2996
3051
|
}
|
|
@@ -3967,6 +4022,11 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
3967
4022
|
margin-bottom: calc(var(--ui-spacing) * 0);
|
|
3968
4023
|
}
|
|
3969
4024
|
}
|
|
4025
|
+
.ui\:lg\:hidden {
|
|
4026
|
+
@media (width >= 64rem) {
|
|
4027
|
+
display: none;
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
3970
4030
|
.ui\:lg\:w-16 {
|
|
3971
4031
|
@media (width >= 64rem) {
|
|
3972
4032
|
width: calc(var(--ui-spacing) * 16);
|
|
@@ -3997,6 +4057,11 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
3997
4057
|
width: 100%;
|
|
3998
4058
|
}
|
|
3999
4059
|
}
|
|
4060
|
+
.ui\:lg\:max-w-\[calc\(100vw-\(--spacing\(132\)\)\)\] {
|
|
4061
|
+
@media (width >= 64rem) {
|
|
4062
|
+
max-width: calc(100vw - (calc(var(--ui-spacing) * 132)));
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4000
4065
|
.ui\:lg\:flex-row {
|
|
4001
4066
|
@media (width >= 64rem) {
|
|
4002
4067
|
flex-direction: row;
|
|
@@ -4027,6 +4092,22 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
4027
4092
|
width: 100%;
|
|
4028
4093
|
}
|
|
4029
4094
|
}
|
|
4095
|
+
.ui\:starting\:translate-x-\[calc\(100vw\)\] {
|
|
4096
|
+
@starting-style {
|
|
4097
|
+
--tw-translate-x: calc(100vw);
|
|
4098
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
.ui\:starting\:opacity-0 {
|
|
4102
|
+
@starting-style {
|
|
4103
|
+
opacity: 0%;
|
|
4104
|
+
}
|
|
4105
|
+
}
|
|
4106
|
+
.ui\:starting\:opacity-\[0\] {
|
|
4107
|
+
@starting-style {
|
|
4108
|
+
opacity: 0;
|
|
4109
|
+
}
|
|
4110
|
+
}
|
|
4030
4111
|
.ui\:\[\&_span\]\:font-bold {
|
|
4031
4112
|
& span {
|
|
4032
4113
|
--tw-font-weight: var(--ui-font-weight-bold);
|
|
@@ -4142,6 +4223,12 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
4142
4223
|
td, th {
|
|
4143
4224
|
padding: 1px;
|
|
4144
4225
|
}
|
|
4226
|
+
.ui\:contain-strict {
|
|
4227
|
+
contain: strict;
|
|
4228
|
+
}
|
|
4229
|
+
.ui\:contain-size {
|
|
4230
|
+
contain: size;
|
|
4231
|
+
}
|
|
4145
4232
|
button:not(:disabled), [role="button"]:not(:disabled) {
|
|
4146
4233
|
cursor: pointer;
|
|
4147
4234
|
}
|
|
@@ -4395,6 +4482,22 @@ button:not(:disabled), [role="button"]:not(:disabled) {
|
|
|
4395
4482
|
syntax: "*";
|
|
4396
4483
|
inherits: false;
|
|
4397
4484
|
}
|
|
4485
|
+
@property --tw-contain-size {
|
|
4486
|
+
syntax: "*";
|
|
4487
|
+
inherits: false;
|
|
4488
|
+
}
|
|
4489
|
+
@property --tw-contain-layout {
|
|
4490
|
+
syntax: "*";
|
|
4491
|
+
inherits: false;
|
|
4492
|
+
}
|
|
4493
|
+
@property --tw-contain-paint {
|
|
4494
|
+
syntax: "*";
|
|
4495
|
+
inherits: false;
|
|
4496
|
+
}
|
|
4497
|
+
@property --tw-contain-style {
|
|
4498
|
+
syntax: "*";
|
|
4499
|
+
inherits: false;
|
|
4500
|
+
}
|
|
4398
4501
|
@property --tw-backdrop-blur {
|
|
4399
4502
|
syntax: "*";
|
|
4400
4503
|
inherits: false;
|
|
@@ -4509,6 +4612,10 @@ button:not(:disabled), [role="button"]:not(:disabled) {
|
|
|
4509
4612
|
--tw-outline-style: solid;
|
|
4510
4613
|
--tw-duration: initial;
|
|
4511
4614
|
--tw-ease: initial;
|
|
4615
|
+
--tw-contain-size: initial;
|
|
4616
|
+
--tw-contain-layout: initial;
|
|
4617
|
+
--tw-contain-paint: initial;
|
|
4618
|
+
--tw-contain-style: initial;
|
|
4512
4619
|
--tw-backdrop-blur: initial;
|
|
4513
4620
|
--tw-backdrop-brightness: initial;
|
|
4514
4621
|
--tw-backdrop-contrast: initial;
|