@kaizen/components 1.4.22-canary.0 → 1.4.22-canary.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.
Files changed (83) hide show
  1. package/dist/__future__/index.d.ts +0 -2
  2. package/dist/__future__/index.js +1 -5
  3. package/dist/esm/__future__/index.js +0 -4
  4. package/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
  5. package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +58 -0
  6. package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +111 -0
  7. package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +173 -0
  8. package/dist/iife/__future__/index.js +128 -40023
  9. package/dist/iife/index.js +496 -36
  10. package/package.json +4 -4
  11. package/dist/iife/Badge.module-5JDAQSAV.scss +0 -106
  12. package/dist/iife/Checkbox.module-L2DRIMTV.scss +0 -155
  13. package/dist/iife/CheckboxField.module-MS76TDL7.scss +0 -46
  14. package/dist/iife/CheckboxGroup.module-AHAPICAN.scss +0 -13
  15. package/dist/iife/ClearButton.module-KVNHOLVT.scss +0 -79
  16. package/dist/iife/Divider.module-YXIUJPD4.scss +0 -40
  17. package/dist/iife/FieldGroup.module-SUPERNC6.scss +0 -10
  18. package/dist/iife/FieldMessage.module-6CWQV65E.scss +0 -73
  19. package/dist/iife/FilterTriggerButton.module-LGSTEFAE.scss +0 -5
  20. package/dist/iife/GenericButton.module-NIOY5S5X.scss +0 -113
  21. package/dist/iife/Heading.module-WIR3ANFU.scss +0 -104
  22. package/dist/iife/Input.module-FBWZRX37.scss +0 -336
  23. package/dist/iife/InputRange.module-RGISUI4D.scss +0 -181
  24. package/dist/iife/InputSearch.module-YAL2OSZP.scss +0 -238
  25. package/dist/iife/Label.module-QP4J7I5H.scss +0 -118
  26. package/dist/iife/ListBox.module-5GNTZUCX.scss +0 -18
  27. package/dist/iife/ListBox.module-RXUZV2C4.scss +0 -14
  28. package/dist/iife/ListBoxSection.module-53ABDKRS.scss +0 -3
  29. package/dist/iife/ListBoxSection.module-D2PXJRKU.scss +0 -20
  30. package/dist/iife/LoadMoreButton.module-ANUUS5ER.scss +0 -5
  31. package/dist/iife/LoadingGraphic.module-URCRSF4P.scss +0 -10
  32. package/dist/iife/LoadingHeading.module-OV5P5QHZ.scss +0 -67
  33. package/dist/iife/LoadingInput.module-7NL2PX46.scss +0 -9
  34. package/dist/iife/LoadingParagraph.module-43NZVIEE.scss +0 -50
  35. package/dist/iife/LoadingSpinner.module-VMTNZETE.scss +0 -31
  36. package/dist/iife/MenuFooter.module-7J44RW5D.scss +0 -9
  37. package/dist/iife/MenuLoadingSkeleton.module-DH3I5Z2J.scss +0 -9
  38. package/dist/iife/MenuPopup.module-NQRYVXAG.scss +0 -27
  39. package/dist/iife/MultiSelectOption.module-TIZIGUVB.scss +0 -115
  40. package/dist/iife/NoResults.module-3FUWBVUH.scss +0 -3
  41. package/dist/iife/Option.module-O2QRLWHC.scss +0 -87
  42. package/dist/iife/Overlay.module-W7K5DWH6.scss +0 -24
  43. package/dist/iife/Paragraph.module-J7DMUCVE.scss +0 -71
  44. package/dist/iife/Radio.module-DCWPHVKW.scss +0 -99
  45. package/dist/iife/RadioField.module-C2XRADW5.scss +0 -50
  46. package/dist/iife/RadioGroup.module-PDLRO572.scss +0 -23
  47. package/dist/iife/RemovableFilterTrigger.module-SJ37V6UZ.scss +0 -29
  48. package/dist/iife/SearchField.module-2EV6HGZE.scss +0 -6
  49. package/dist/iife/SearchInput.module-RQEF3FWR.scss +0 -6
  50. package/dist/iife/SectionDivider.module-AN4OA4O3.scss +0 -3
  51. package/dist/iife/Select.module-WOGFQRYI.scss +0 -8
  52. package/dist/iife/SelectionControlButton.module-HO7BZ2UP.scss +0 -81
  53. package/dist/iife/Slider.module-EIBFJ2LP.scss +0 -42
  54. package/dist/iife/Tab.module-4S535DQG.scss +0 -105
  55. package/dist/iife/TabList.module-FVWF5RCV.scss +0 -11
  56. package/dist/iife/TabPanel.module-2YHJE4CY.scss +0 -14
  57. package/dist/iife/TextArea.module-JLTW3M73.scss +0 -138
  58. package/dist/iife/TextAreaField.module-4K35MSCT.scss +0 -20
  59. package/dist/iife/TextField.module-KFAPVZZK.scss +0 -49
  60. package/dist/iife/ToggleSwitch.module-3YDF4MLF.scss +0 -128
  61. package/dist/iife/ToggleSwitchField.module-BJOL7O7U.scss +0 -15
  62. package/dist/iife/Tooltip.module-YU7VOTNZ.scss +0 -184
  63. package/dist/iife/TriggerButton.module-ML4U7VQL.scss +0 -139
  64. package/dist/iife/TriggerButtonBase.module-QFRV6YZQ.scss +0 -14
  65. package/dist/iife/arrow-backward.icon-DGOZ655M.svg +0 -17
  66. package/dist/iife/arrow-forward.icon-MO6IWNHW.svg +0 -17
  67. package/dist/iife/caution-white.icon-7QPLIIHQ.svg +0 -1
  68. package/dist/iife/check.icon-CYCBCOVT.svg +0 -17
  69. package/dist/iife/chevron-down.icon-COG3GAYR.svg +0 -17
  70. package/dist/iife/chevron-up.icon-O5VRF5BX.svg +0 -17
  71. package/dist/iife/clear.icon-OD6PWTJH.svg +0 -17
  72. package/dist/iife/end.icon-4DQDOQVX.svg +0 -1
  73. package/dist/iife/exclamation-white.icon-WX7P4EOV.svg +0 -19
  74. package/dist/iife/loading-skeleton.module-RZXSULUO.scss +0 -26
  75. package/dist/iife/minus.icon-7B6G432O.svg +0 -17
  76. package/dist/iife/search.icon-ML7HSFID.svg +0 -17
  77. package/dist/iife/start.icon-JC4OAMAZ.svg +0 -1
  78. package/dist/iife/success.icon-QNKK4XJE.svg +0 -17
  79. /package/dist/iife/{Icon.module-VD7NKLAR.scss → Icon.module-VD7NKLAR-VD7NKLAR.scss} +0 -0
  80. /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
  81. /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
  82. /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
  83. /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
@@ -1,115 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/design-tokens/sass/typography";
4
- @import "~@kaizen/design-tokens/sass/spacing";
5
-
6
- .option {
7
- height: fit-content;
8
-
9
- align-items: flex-start;
10
- display: inline-grid;
11
- grid-template-columns: $spacing-md 1fr auto;
12
- gap: $spacing-xs;
13
- padding: $spacing-xs;
14
- position: relative;
15
-
16
- font-family: $typography-paragraph-body-font-family;
17
- font-size: $typography-paragraph-body-font-size;
18
- letter-spacing: $typography-paragraph-body-letter-spacing;
19
- font-weight: $typography-paragraph-body-font-weight;
20
- line-height: $typography-paragraph-body-line-height;
21
-
22
- border: $border-solid-border-width $border-solid-border-style;
23
- border-color: $border-borderless-border-color;
24
- border-radius: $border-solid-border-radius;
25
-
26
- cursor: default;
27
-
28
- &:hover,
29
- &:active,
30
- &:focus {
31
- background-color: $color-blue-100;
32
- .badge {
33
- background-color: $color-white;
34
- }
35
- .icon {
36
- border-color: $color-gray-600;
37
- background-color: $color-gray-200;
38
- }
39
- }
40
-
41
- &.isFocused,
42
- &:focus-visible,
43
- &:global(.js-focus-visible) &:global(.focus-visible) {
44
- background-color: $color-blue-100;
45
- &::after {
46
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
47
- content: "";
48
- position: absolute;
49
- background: transparent;
50
- border: $border-focus-ring-border-width $border-focus-ring-border-style
51
- $color-blue-500;
52
- border-radius: $border-focus-ring-border-radius;
53
- top: calc(-1 * #{$focus-ring-offset});
54
- left: calc(-1 * #{$focus-ring-offset});
55
- right: calc(-1 * #{$focus-ring-offset});
56
- bottom: calc(-1 * #{$focus-ring-offset});
57
- z-index: 1; // show border when sibling option is hovered
58
- }
59
- }
60
-
61
- &:focus {
62
- outline: none; // cancel browser style
63
- }
64
-
65
- &.isDisabled {
66
- opacity: 0.3;
67
- background: none;
68
- &:hover {
69
- .icon {
70
- border-color: $color-gray-500;
71
- }
72
- .badge {
73
- background-color: $color-gray-300;
74
- }
75
- }
76
- }
77
- }
78
-
79
- $iconAndBadgeHeight: $spacing-md;
80
-
81
- .icon {
82
- line-height: 1;
83
- height: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
84
- width: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
85
- border: $border-solid-border-width $border-solid-border-style;
86
- border-color: $color-gray-500;
87
- border-radius: $border-solid-border-radius;
88
- display: inline-flex;
89
- justify-content: center;
90
- align-items: center;
91
- }
92
-
93
- .badgeContainer {
94
- // Must be the same height as .icon, so they align vertically
95
- height: $iconAndBadgeHeight;
96
- display: flex;
97
- align-items: center;
98
- }
99
-
100
- .isSelected {
101
- font-weight: $typography-paragraph-bold-font-weight;
102
-
103
- &.icon {
104
- background-color: $color-gray-500;
105
- color: $color-white;
106
- }
107
-
108
- &:hover,
109
- &:active,
110
- &:focus {
111
- .icon {
112
- background-color: $color-gray-600;
113
- }
114
- }
115
- }
@@ -1,3 +0,0 @@
1
- .container {
2
- padding: 1.125rem; // There's no spacing token for 18px -_-
3
- }
@@ -1,87 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/design-tokens/sass/typography";
4
- @import "~@kaizen/design-tokens/sass/spacing";
5
-
6
- .option {
7
- height: fit-content;
8
-
9
- align-items: center;
10
- display: inline-grid;
11
- grid-template-columns: auto $spacing-md;
12
- gap: $spacing-xs;
13
- padding: 0.5rem $spacing-xs 0.5rem $spacing-sm;
14
- position: relative;
15
-
16
- font-family: $typography-paragraph-body-font-family;
17
- font-size: $typography-paragraph-body-font-size;
18
- letter-spacing: $typography-paragraph-body-letter-spacing;
19
- font-weight: $typography-paragraph-body-font-weight;
20
- line-height: $typography-paragraph-body-line-height;
21
-
22
- border: $border-solid-border-width $border-solid-border-style;
23
- border-color: $border-borderless-border-color;
24
- border-radius: 4px;
25
-
26
- cursor: default;
27
-
28
- &:focus {
29
- outline: none;
30
- }
31
-
32
- &:hover:not(.disabled),
33
- &:active:not(.disabled),
34
- &:global(.story__option-hover):not(.disabled) {
35
- background-color: $color-blue-100;
36
- color: $color-blue-500;
37
- .icon {
38
- color: $color-blue-500;
39
- }
40
- }
41
-
42
- &.isFocusVisible,
43
- &:global(.story__option-focus) {
44
- background-color: $color-blue-100;
45
- color: $color-blue-500;
46
- &::after {
47
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
48
- content: "";
49
- position: absolute;
50
- background: transparent;
51
- border: $border-focus-ring-border-width $border-focus-ring-border-style
52
- $color-blue-500;
53
- border-radius: 4px;
54
- top: calc(-1 * #{$focus-ring-offset});
55
- left: calc(-1 * #{$focus-ring-offset});
56
- right: calc(-1 * #{$focus-ring-offset});
57
- bottom: calc(-1 * #{$focus-ring-offset});
58
- z-index: 1; // show border when sibling option is hovered
59
- }
60
- .icon {
61
- color: $color-blue-500;
62
- }
63
- }
64
- }
65
-
66
- $iconAndBadgeHeight: $spacing-md;
67
-
68
- .icon {
69
- line-height: 1;
70
- height: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
71
- width: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
72
- display: inline-flex;
73
- justify-content: center;
74
- align-items: center;
75
- }
76
-
77
- .isSelected {
78
- font-weight: $typography-paragraph-bold-font-weight;
79
- color: $color-blue-500;
80
- &.icon {
81
- color: $color-blue-500;
82
- }
83
- }
84
-
85
- .disabled {
86
- color: $color-gray-500;
87
- }
@@ -1,24 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/shadow";
2
- @import "~@kaizen/design-tokens/sass/border";
3
- @import "~@kaizen/design-tokens/sass/color";
4
-
5
- .menuPopup {
6
- position: absolute;
7
- z-index: 1000; // from $ca-z-index-dropdown
8
- box-sizing: border-box;
9
- background: $color-white;
10
- color: $color-purple-800;
11
- border-radius: $border-solid-border-radius;
12
- box-shadow: $shadow-large-box-shadow;
13
- margin-top: 0.5rem;
14
- text-align: left;
15
- width: 100%;
16
- min-width: 248px;
17
-
18
- [dir="rtl"] & {
19
- text-align: right;
20
- }
21
-
22
- // Allow horizontal scroll for long text options
23
- overflow: auto;
24
- }
@@ -1,71 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/color";
2
- @import "~@kaizen/design-tokens/sass/typography";
3
- @import "../fonts.scss";
4
-
5
- .paragraph {
6
- margin: 0;
7
-
8
- strong {
9
- font-weight: $typography-paragraph-bold-font-weight;
10
- }
11
- }
12
-
13
- .intro-lede {
14
- font-family: $typography-paragraph-intro-lede-font-family;
15
- font-weight: $typography-paragraph-intro-lede-font-weight;
16
- font-size: $typography-paragraph-intro-lede-font-size;
17
- line-height: $typography-paragraph-intro-lede-line-height;
18
- letter-spacing: $typography-paragraph-intro-lede-letter-spacing;
19
- }
20
-
21
- .body {
22
- font-family: $typography-paragraph-body-font-family;
23
- font-weight: $typography-paragraph-body-font-weight;
24
- font-size: $typography-paragraph-body-font-size;
25
- line-height: $typography-paragraph-body-line-height;
26
- letter-spacing: $typography-paragraph-body-letter-spacing;
27
- }
28
-
29
- .small {
30
- font-family: $typography-paragraph-small-font-family;
31
- font-weight: $typography-paragraph-small-font-weight;
32
- font-size: $typography-paragraph-small-font-size;
33
- line-height: $typography-paragraph-small-line-height;
34
- letter-spacing: $typography-paragraph-small-letter-spacing;
35
- }
36
-
37
- .extra-small {
38
- font-family: $typography-paragraph-extra-small-font-family;
39
- font-weight: $typography-paragraph-extra-small-font-weight;
40
- font-size: $typography-paragraph-extra-small-font-size;
41
- line-height: $typography-paragraph-extra-small-line-height;
42
- letter-spacing: $typography-paragraph-extra-small-letter-spacing;
43
- }
44
-
45
- .dark {
46
- color: $color-purple-800;
47
- opacity: 1;
48
- }
49
-
50
- .dark-reduced-opacity {
51
- color: $color-purple-800;
52
- opacity: 0.7;
53
- }
54
-
55
- .white {
56
- color: $color-white;
57
- opacity: 1;
58
- }
59
-
60
- .white-reduced-opacity {
61
- color: $color-white;
62
- opacity: 0.8;
63
- }
64
-
65
- .positive {
66
- color: $color-green-600;
67
- }
68
-
69
- .negative {
70
- color: $color-red-600;
71
- }
@@ -1,99 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/component-library/styles/mixins/forms";
4
- @import "../../variables";
5
-
6
- $radio-size: 24px;
7
- $icon-size: 10px;
8
- $icon-offset: 5px;
9
- $focus-ring-offset: 2px;
10
-
11
- $dt-color-radio-background-color-hover: $color-gray-100;
12
- $dt-color-radio-disc-color-base: $color-gray-600;
13
- $dt-color-radio-border-color-focus: $color-blue-500;
14
- $dt-color-radio-border-color-focus-reversed: $color-blue-300;
15
-
16
- .radioInput {
17
- @include form-input-visually-hidden();
18
- }
19
-
20
- .icon {
21
- top: $icon-offset;
22
- left: $icon-offset;
23
- width: $icon-size;
24
- height: $icon-size;
25
- border-radius: 50%;
26
- background: $dt-color-radio-disc-color-base;
27
- position: absolute;
28
-
29
- &.reversed {
30
- background: $color-white;
31
- }
32
- }
33
-
34
- .box {
35
- display: block;
36
- position: relative;
37
- background: $color-white;
38
- height: $radio-size;
39
- width: $radio-size;
40
- top: 0;
41
- border: $border-solid-border-width $border-solid-border-style
42
- $dt-color-form-border-color;
43
- box-sizing: border-box;
44
- border-radius: 50%;
45
-
46
- .radioInput:focus:not([disabled]) + & {
47
- border-color: $dt-color-radio-disc-color-base;
48
- }
49
-
50
- .radioInput:focus:not([disabled]) + &::after {
51
- pointer-events: none;
52
- content: "";
53
- box-sizing: border-box;
54
- position: absolute;
55
- background: transparent;
56
- border-radius: $radio-size + $focus-ring-offset;
57
- border-width: $border-focus-ring-border-width;
58
- border-style: $border-focus-ring-border-style;
59
- border-color: $dt-color-radio-border-color-focus;
60
- top: -$focus-ring-offset - ($radio-size / 8);
61
- left: -$focus-ring-offset - ($radio-size / 8);
62
- width: calc(
63
- #{$radio-size} + #{$focus-ring-offset} + #{$border-solid-border-width} * 2
64
- );
65
- height: calc(
66
- #{$radio-size} + #{$focus-ring-offset} + #{$border-solid-border-width} * 2
67
- );
68
- }
69
-
70
- @media (hover: hover) and (pointer: fine) {
71
- .radioInput:not([disabled]) + &:hover {
72
- border-color: $dt-color-form-border-color-hover;
73
- background-color: $dt-color-radio-background-color-hover;
74
- }
75
- }
76
-
77
- &.reversed {
78
- border: $border-solid-border-width $border-solid-border-style
79
- rgba($color-white-rgb, 0.65);
80
- background: transparent;
81
-
82
- .radioInput:focus:not([disabled]) + & {
83
- border-color: $color-white;
84
- }
85
- .radioInput:focus:not([disabled]) + &::after {
86
- border-color: $dt-color-radio-border-color-focus-reversed;
87
- }
88
-
89
- @media (hover: hover) and (pointer: fine) {
90
- .radioInput:not([disabled]) + &:hover {
91
- border-color: $color-white;
92
- background-color: transparent;
93
- }
94
- }
95
- }
96
- &.error {
97
- border-color: $color-red-500;
98
- }
99
- }
@@ -1,50 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/color";
2
- @import "~@kaizen/design-tokens/sass/spacing";
3
- @import "~@kaizen/design-tokens/sass/typography";
4
- @import "../variables";
5
-
6
- $dt-color-radio-background-color-hover: $color-gray-100;
7
-
8
- .container {
9
- position: relative;
10
- overflow-wrap: break-word;
11
- word-wrap: break-word;
12
- word-break: break-word;
13
- margin-bottom: $spacing-sm;
14
-
15
- label {
16
- -webkit-tap-highlight-color: transparent;
17
-
18
- :global(.ideal-sans) & {
19
- // This is to override bootstrap styles. Remove when appropriate
20
- font-size: $typography-paragraph-body-font-size;
21
- padding-top: 0;
22
- }
23
- }
24
-
25
- @media (hover: hover) and (pointer: fine) {
26
- &:not(.reversed) label:hover {
27
- input:not([disabled]) + span {
28
- border-color: $dt-color-form-border-color-hover;
29
- background-color: $dt-color-radio-background-color-hover;
30
- }
31
- }
32
- &.reversed label:hover {
33
- input:not([disabled]) + span {
34
- border-color: $color-white;
35
- background-color: transparent;
36
- }
37
- }
38
- }
39
-
40
- &.selected {
41
- label {
42
- font-family: $typography-paragraph-body-font-family;
43
- font-size: $typography-paragraph-body-font-size;
44
- line-height: $typography-paragraph-body-line-height;
45
- letter-spacing: $typography-paragraph-body-letter-spacing;
46
- font-weight: $typography-paragraph-bold-font-weight;
47
- position: static;
48
- }
49
- }
50
- }
@@ -1,23 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/color";
2
- @import "~@kaizen/design-tokens/sass/spacing";
3
-
4
- .radioGroupLabel {
5
- margin-bottom: $spacing-sm;
6
- label {
7
- :global(.ideal-sans) & {
8
- // This is to override bootstrap styles. Remove when appropriate
9
- padding-top: 0;
10
- }
11
- }
12
- &.reversed {
13
- color: $color-white;
14
- }
15
- }
16
- .radioGroupContainer {
17
- display: flex;
18
- flex-direction: column;
19
- margin-bottom: $spacing-sm;
20
- &.noBottomMargin {
21
- margin-bottom: 0;
22
- }
23
- }
@@ -1,29 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/design-tokens/sass/spacing";
4
- @import "../mixins";
5
-
6
- .trigger {
7
- display: inline-flex;
8
-
9
- .triggerButton {
10
- border-top-left-radius: $border-solid-border-radius;
11
- border-bottom-left-radius: $border-solid-border-radius;
12
- border-top-right-radius: 0;
13
- border-bottom-right-radius: 0;
14
- }
15
-
16
- .removeButton {
17
- @include button;
18
- width: $spacing-xl;
19
- justify-content: center;
20
- border-top-left-radius: 0;
21
- border-bottom-left-radius: 0;
22
- border-top-right-radius: $border-solid-border-radius;
23
- border-bottom-right-radius: $border-solid-border-radius;
24
- }
25
-
26
- .divider {
27
- border-left: 1px solid $color-blue-300;
28
- }
29
- }
@@ -1,6 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/spacing";
2
-
3
- .label {
4
- display: block;
5
- margin-bottom: $spacing-xs; // @note: add gap between label and input
6
- }
@@ -1,6 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/spacing";
2
-
3
- .inputSearchContainer {
4
- position: relative;
5
- margin: 0 $spacing-sm;
6
- }
@@ -1,3 +0,0 @@
1
- .divider {
2
- margin: 0.5rem 0;
3
- }
@@ -1,8 +0,0 @@
1
- .container {
2
- position: relative;
3
- width: 100%;
4
- }
5
-
6
- .notFullWidth {
7
- width: 180px;
8
- }
@@ -1,81 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/border";
2
- @import "~@kaizen/design-tokens/sass/color";
3
- @import "~@kaizen/design-tokens/sass/typography";
4
- @import "~@kaizen/design-tokens/sass/spacing";
5
- @import "../../../mixins";
6
-
7
- $focus-ring-offset: 1px;
8
-
9
- .button {
10
- @include button-reset;
11
-
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
-
15
- font-family: $typography-button-secondary-font-family;
16
- font-weight: $typography-button-secondary-font-weight;
17
- font-size: $typography-button-secondary-font-size;
18
- line-height: $typography-button-secondary-line-height;
19
- letter-spacing: $typography-button-secondary-letter-spacing;
20
- position: relative;
21
-
22
- color: $color-blue-500;
23
-
24
- border: $border-solid-border-width $border-solid-border-style;
25
- border-color: $border-borderless-border-color;
26
- border-radius: $border-solid-border-radius;
27
-
28
- // 4px 8px
29
- padding: 0.25rem 0.5rem;
30
-
31
- &:hover,
32
- &:active,
33
- &:focus {
34
- &:not(.isDisabled) {
35
- background-color: $color-blue-100;
36
- }
37
- }
38
-
39
- &:focus {
40
- outline: none;
41
- }
42
-
43
- &:global(.focus-visible)::after {
44
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
45
- content: "";
46
- position: absolute;
47
- background: transparent;
48
- border-radius: $border-focus-ring-border-radius;
49
- border-width: $border-focus-ring-border-width;
50
- border-style: $border-focus-ring-border-style;
51
- border-color: $color-blue-500;
52
- top: calc(-1 * #{$focus-ring-offset});
53
- left: calc(-1 * #{$focus-ring-offset});
54
- right: calc(-1 * #{$focus-ring-offset});
55
- bottom: calc(-1 * #{$focus-ring-offset});
56
- }
57
-
58
- display: inline-flex;
59
- gap: $spacing-xs;
60
- align-items: center;
61
-
62
- // TODO: copied from Calendar button since the design is not settled
63
- &.isDisabled {
64
- pointer-events: none;
65
- color: rgba($color-purple-800-rgb, 0.3);
66
- opacity: 1;
67
-
68
- :global(.js-focus-visible) & {
69
- // hide native focus ring when :focus but not :focus-visible
70
- &:focus {
71
- outline: none;
72
- border: 2px solid transparent;
73
- }
74
-
75
- &:global(.focus-visible)::after {
76
- border-style: $border-dashed-border-style;
77
- border-color: $color-gray-400;
78
- }
79
- }
80
- }
81
- }
@@ -1,42 +0,0 @@
1
- @import "~@kaizen/design-tokens/sass/typography";
2
- @import "~@kaizen/design-tokens/sass/spacing";
3
- @import "~@kaizen/design-tokens/sass/layout";
4
-
5
- .wrapper {
6
- display: flex;
7
- flex-direction: column;
8
- }
9
-
10
- .labelWrapper {
11
- margin-bottom: $spacing-sm;
12
- }
13
-
14
- @media (min-width: $layout-breakpoints-medium) {
15
- .labelInline {
16
- &.wrapper {
17
- align-items: center;
18
- flex-direction: row;
19
- }
20
-
21
- .labelWrapper {
22
- flex: 1;
23
- }
24
-
25
- .inputWrapper {
26
- flex-basis: 50%;
27
- }
28
- }
29
- }
30
-
31
- .descriptionDisabled {
32
- opacity: 0.3;
33
- }
34
-
35
- .readOnlyMessage {
36
- text-align: center;
37
- font-family: $typography-paragraph-small-font-family;
38
- font-size: $typography-paragraph-small-font-size;
39
- font-weight: $typography-paragraph-bold-font-weight;
40
- line-height: $typography-paragraph-body-line-height;
41
- letter-spacing: $typography-paragraph-body-letter-spacing;
42
- }