@utahdts/utah-design-system 1.10.0 → 1.11.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/css/1-settings/_icons.scss +5 -0
- package/css/6-components/base-components/containers/_action-card.scss +4 -2
- package/css/6-components/base-components/popups/_popups.scss +10 -14
- package/css/index.scss +0 -5
- package/dist/style.css +14 -0
- package/dist/utah-design-system.es.js +491 -388
- package/dist/utah-design-system.umd.js +490 -387
- package/index.js +3 -1
- package/package.json +5 -5
- package/react/components/buttons/ConfirmationButton/ConfirmationButton.jsx +107 -0
- package/react/components/buttons/ConfirmationButton/ConfirmationChildren.jsx +12 -0
- package/react/components/buttons/ConfirmationButton/InitialChildren.jsx +12 -0
- package/react/components/buttons/ConfirmationButton/context/ConfirmationButtonContext.js +6 -0
- package/react/components/buttons/ConfirmationButton/context/ConfirmationButtonContextProvider.jsx +14 -0
- package/react/components/buttons/ConfirmationButton/context/useConfirmationButtonContext.js +7 -0
- package/react/components/forms/ComboBox/ComboBox.jsx +5 -4
- package/react/components/forms/ComboBox/ComboBoxOption.jsx +71 -56
- package/react/components/forms/ComboBox/context/ComboBoxContext.js +1 -0
- package/react/components/forms/ComboBox/context/ComboBoxContextProvider.jsx +1 -0
- package/react/components/forms/ComboBox/functions/moveComboBoxSelectionDown.js +14 -16
- package/react/components/forms/ComboBox/functions/moveComboBoxSelectionUp.js +1 -1
- package/react/components/forms/ComboBox/internal/CombBoxListBox.jsx +63 -5
- package/react/components/forms/ComboBox/internal/ComboBoxTextInput.jsx +11 -18
- package/react/components/forms/Switch.jsx +3 -3
- package/react/components/forms/TextInput.jsx +3 -0
- package/react/hooks/useDebounceFunc.js +47 -0
- package/react/jsDocTypes.js +1 -0
- package/react/components/buttons/ConfirmationButton.jsx +0 -90
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
padding: var(--spacing);
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
color: var(--gray-color);
|
|
13
|
-
transition:
|
|
13
|
+
transition:
|
|
14
|
+
all 200ms ease-in-out,
|
|
15
|
+
outline-offset 0ms ease;
|
|
14
16
|
box-sizing: border-box;
|
|
15
17
|
&:hover {
|
|
16
18
|
box-shadow: none;
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
//TODO: Primary color is light
|
|
72
|
+
// TODO: Primary color is light
|
|
71
73
|
|
|
72
74
|
&__title {
|
|
73
75
|
display: flex;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../../../1-settings/spacing";
|
|
4
4
|
|
|
5
5
|
// Drop Shadow Color
|
|
6
|
-
$dsc: rgb(0,0,0);
|
|
6
|
+
$dsc: rgb(0, 0, 0);
|
|
7
7
|
|
|
8
8
|
#{class-vars.$base-class} {
|
|
9
9
|
.popup {
|
|
@@ -27,7 +27,7 @@ $dsc: rgb(0,0,0);
|
|
|
27
27
|
opacity: 0;
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
.popup__content {
|
|
30
|
-
transform: scale(.7);
|
|
30
|
+
transform: scale(0.7);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
&--close-button-absolute {
|
|
@@ -54,14 +54,15 @@ $dsc: rgb(0,0,0);
|
|
|
54
54
|
&__close-button {
|
|
55
55
|
float: right;
|
|
56
56
|
.utds-icon-before-x-icon::before {
|
|
57
|
-
font-size: .7rem;
|
|
57
|
+
font-size: 0.7rem;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&__arrow {
|
|
62
62
|
visibility: hidden;
|
|
63
63
|
|
|
64
|
-
&,
|
|
64
|
+
&,
|
|
65
|
+
&::before {
|
|
65
66
|
position: absolute;
|
|
66
67
|
width: 9px;
|
|
67
68
|
height: 9px;
|
|
@@ -71,15 +72,13 @@ $dsc: rgb(0,0,0);
|
|
|
71
72
|
|
|
72
73
|
&::before {
|
|
73
74
|
visibility: visible;
|
|
74
|
-
content:
|
|
75
|
+
content: "";
|
|
75
76
|
transform: rotate(45deg);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
&__wrapper[data-popper-placement^='top'] {
|
|
80
|
+
&__wrapper[data-popper-placement^="top"] {
|
|
81
81
|
.popup__content {
|
|
82
|
-
// box-shadow: 0 3px 5px -1px rgba($dsc,.2), 0 15px 20px 0 rgba($dsc,.14), 0 1px 18px 0 rgba($dsc,.12);
|
|
83
82
|
transform-origin: bottom;
|
|
84
83
|
}
|
|
85
84
|
.popup__arrow {
|
|
@@ -91,9 +90,8 @@ $dsc: rgb(0,0,0);
|
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
|
|
94
|
-
&__wrapper[data-popper-placement^=
|
|
93
|
+
&__wrapper[data-popper-placement^="bottom"] {
|
|
95
94
|
.popup__content {
|
|
96
|
-
// box-shadow: 0 3px 5px -1px rgba($dsc,.2), 0 -15px 20px 0 rgba($dsc,.14), 0 1px 18px 0 rgba($dsc,.12);
|
|
97
95
|
transform-origin: top;
|
|
98
96
|
}
|
|
99
97
|
.popup__arrow {
|
|
@@ -105,9 +103,8 @@ $dsc: rgb(0,0,0);
|
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
|
|
108
|
-
&__wrapper[data-popper-placement^=
|
|
106
|
+
&__wrapper[data-popper-placement^="left"] {
|
|
109
107
|
.popup__content {
|
|
110
|
-
// box-shadow: 0 3px 5px -1px rgba($dsc,.2), 15px 0 20px 0 rgba($dsc,.14), 0 1px 18px 0 rgba($dsc,.12);
|
|
111
108
|
transform-origin: right;
|
|
112
109
|
}
|
|
113
110
|
.popup__arrow {
|
|
@@ -119,9 +116,8 @@ $dsc: rgb(0,0,0);
|
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
&__wrapper[data-popper-placement^=
|
|
119
|
+
&__wrapper[data-popper-placement^="right"] {
|
|
123
120
|
.popup__content {
|
|
124
|
-
// box-shadow: 0 3px 5px -1px rgba($dsc,.2), -15px 0 20px 0 rgba($dsc,.14), 0 1px 18px 0 rgba($dsc,.12);
|
|
125
121
|
transform-origin: left;
|
|
126
122
|
}
|
|
127
123
|
.popup__arrow {
|
package/css/index.scss
CHANGED
|
@@ -17,10 +17,6 @@ BEM standard: Block, Element, Modifier
|
|
|
17
17
|
- cats-r-great--black
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
// normalize.css
|
|
22
|
-
// @include meta.load-css("./3-generic/normalize.css");
|
|
23
|
-
|
|
24
20
|
// variables and settings
|
|
25
21
|
@forward "1-settings/settings-index";
|
|
26
22
|
@include meta.load-css("1-settings/settings-index");
|
|
@@ -50,4 +46,3 @@ BEM standard: Block, Element, Modifier
|
|
|
50
46
|
// test css, temporary css,
|
|
51
47
|
// this css should eventually be categorized above
|
|
52
48
|
@include meta.load-css("9-tip/tip-index");
|
|
53
|
-
|
package/dist/style.css
CHANGED
|
@@ -608,6 +608,10 @@ variables and settings
|
|
|
608
608
|
.utah-design-system .utds-icon-after-visibility-off::after {
|
|
609
609
|
content: "r";
|
|
610
610
|
}
|
|
611
|
+
.utah-design-system .utds-icon-before-trash::before,
|
|
612
|
+
.utah-design-system .utds-icon-after-trash::after {
|
|
613
|
+
content: "s";
|
|
614
|
+
}
|
|
611
615
|
|
|
612
616
|
/*
|
|
613
617
|
############ _media-size-vars.scss ############
|
|
@@ -1470,6 +1474,11 @@ variables and settings
|
|
|
1470
1474
|
content: "r";
|
|
1471
1475
|
}
|
|
1472
1476
|
|
|
1477
|
+
.utah-design-system .utds-icon-before-trash::before,
|
|
1478
|
+
.utah-design-system .utds-icon-after-trash::after {
|
|
1479
|
+
content: "s";
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1473
1482
|
/*
|
|
1474
1483
|
############ _media-size-vars.scss ############
|
|
1475
1484
|
Media Sizes - SCSS Variables
|
|
@@ -4547,6 +4556,11 @@ variables and settings
|
|
|
4547
4556
|
content: "r";
|
|
4548
4557
|
}
|
|
4549
4558
|
|
|
4559
|
+
.utah-design-system .utds-icon-before-trash::before,
|
|
4560
|
+
.utah-design-system .utds-icon-after-trash::after {
|
|
4561
|
+
content: "s";
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4550
4564
|
.utah-design-system {
|
|
4551
4565
|
/* color */
|
|
4552
4566
|
/* ######## Pick these colors to match your desired style ######## */
|