@ivds/core 0.1.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/CHANGELOG.md +45 -0
- package/README.md +215 -0
- package/lib/all.css +6802 -0
- package/lib/all.min.css +1 -0
- package/lib/base/base.css +215 -0
- package/lib/base/base.min.css +1 -0
- package/lib/components/_breadcrumb-mixins.scss +173 -0
- package/lib/components/_button-mixin.scss +120 -0
- package/lib/components/_card-mixin.scss +196 -0
- package/lib/components/_checkbox-mixin.scss +208 -0
- package/lib/components/_footer-mixin.scss +385 -0
- package/lib/components/_header-mixin.scss +275 -0
- package/lib/components/_navigation-mixins.scss +270 -0
- package/lib/components/_notification-mixin.scss +239 -0
- package/lib/components/_pagination-mixins.scss +280 -0
- package/lib/components/_radio-button-mixin.scss +207 -0
- package/lib/components/_tag-mixin.scss +261 -0
- package/lib/components/_text-input-mixin.scss +203 -0
- package/lib/components/all.css +3005 -0
- package/lib/components/all.min.css +1 -0
- package/lib/components/breadcrumb/breadcrumb.css +141 -0
- package/lib/components/breadcrumb/breadcrumb.min.css +1 -0
- package/lib/components/button/button.css +221 -0
- package/lib/components/button/button.min.css +1 -0
- package/lib/components/card/card.css +236 -0
- package/lib/components/card/card.min.css +1 -0
- package/lib/components/checkbox/checkbox.css +305 -0
- package/lib/components/checkbox/checkbox.min.css +1 -0
- package/lib/components/footer/footer.css +466 -0
- package/lib/components/footer/footer.min.css +1 -0
- package/lib/components/header/header.css +274 -0
- package/lib/components/header/header.min.css +1 -0
- package/lib/components/navigation/navigation.css +214 -0
- package/lib/components/navigation/navigation.min.css +1 -0
- package/lib/components/notification/notification.css +253 -0
- package/lib/components/notification/notification.min.css +1 -0
- package/lib/components/pagination/pagination.css +221 -0
- package/lib/components/pagination/pagination.min.css +1 -0
- package/lib/components/radio-button/radio-button.css +326 -0
- package/lib/components/radio-button/radio-button.min.css +1 -0
- package/lib/components/tag/tag.css +367 -0
- package/lib/components/tag/tag.min.css +1 -0
- package/lib/components/text-input/text-input.css +243 -0
- package/lib/components/text-input/text-input.min.css +1 -0
- package/lib/icons/icon-arrow-left.css +139 -0
- package/lib/icons/icon-arrow-left.min.css +1 -0
- package/lib/icons/icon-arrow-right.css +139 -0
- package/lib/icons/icon-arrow-right.min.css +1 -0
- package/lib/icons/icon-check.css +139 -0
- package/lib/icons/icon-check.min.css +1 -0
- package/lib/icons/icon-close.css +140 -0
- package/lib/icons/icon-close.min.css +1 -0
- package/lib/icons/icon-error.css +140 -0
- package/lib/icons/icon-error.min.css +1 -0
- package/lib/icons/icon-info.css +140 -0
- package/lib/icons/icon-info.min.css +1 -0
- package/lib/icons/icon-success.css +139 -0
- package/lib/icons/icon-success.min.css +1 -0
- package/lib/icons/icon-warning.css +139 -0
- package/lib/icons/icon-warning.min.css +1 -0
- package/lib/icons/icons.css +1158 -0
- package/lib/icons/icons.min.css +1 -0
- package/lib/utils/_flex.scss +200 -0
- package/lib/utils/_grid.scss +211 -0
- package/lib/utils/_layout.scss +253 -0
- package/lib/utils/_spacing.scss +260 -0
- package/lib/utils/_typography.scss +111 -0
- package/lib/utils/utils.css +2434 -0
- package/lib/utils/utils.min.css +1 -0
- package/lib/utils-only.css +2801 -0
- package/lib/utils-only.min.css +1 -0
- package/lib/variables/variables.css +2 -0
- package/lib/variables/variables.min.css +0 -0
- package/package.json +194 -0
- package/src/__tests__/example.test.scss +12 -0
- package/src/accessibility.stories.js +416 -0
- package/src/all.scss +9 -0
- package/src/base/_layout.scss +97 -0
- package/src/base/_reset.scss +85 -0
- package/src/base/_typography.scss +105 -0
- package/src/base/base.scss +6 -0
- package/src/components/all.scss +22 -0
- package/src/components/breadcrumb/_breadcrumb-mixins.scss +173 -0
- package/src/components/breadcrumb/breadcrumb.scss +68 -0
- package/src/components/breadcrumb/breadcrumb.stories.js +483 -0
- package/src/components/button/__tests__/button-mixins.test.scss +35 -0
- package/src/components/button/_button-mixin.scss +120 -0
- package/src/components/button/button.scss +126 -0
- package/src/components/button/button.stories.js +364 -0
- package/src/components/card/__tests__/card-mixins.test.scss +36 -0
- package/src/components/card/_card-mixin.scss +196 -0
- package/src/components/card/card.scss +193 -0
- package/src/components/card/card.stories.js +635 -0
- package/src/components/checkbox/_checkbox-mixin.scss +208 -0
- package/src/components/checkbox/checkbox.scss +141 -0
- package/src/components/checkbox/checkbox.stories.js +303 -0
- package/src/components/footer/_footer-mixin.scss +385 -0
- package/src/components/footer/footer.scss +86 -0
- package/src/components/footer/footer.stories.js +740 -0
- package/src/components/header/_header-mixin.scss +275 -0
- package/src/components/header/header.scss +84 -0
- package/src/components/header/header.stories.js +450 -0
- package/src/components/navigation/_navigation-mixins.scss +270 -0
- package/src/components/navigation/navigation.scss +64 -0
- package/src/components/navigation/navigation.stories.js +410 -0
- package/src/components/notification/_notification-mixin.scss +239 -0
- package/src/components/notification/notification.scss +118 -0
- package/src/components/notification/notification.stories.js +378 -0
- package/src/components/overview.stories.js +473 -0
- package/src/components/pagination/_pagination-mixins.scss +280 -0
- package/src/components/pagination/pagination.scss +76 -0
- package/src/components/pagination/pagination.stories.js +729 -0
- package/src/components/radio-button/_radio-button-mixin.scss +207 -0
- package/src/components/radio-button/radio-button.scss +178 -0
- package/src/components/radio-button/radio-button.stories.js +379 -0
- package/src/components/tag/_tag-mixin.scss +261 -0
- package/src/components/tag/tag.scss +244 -0
- package/src/components/tag/tag.stories.js +482 -0
- package/src/components/text-input/_text-input-mixin.scss +203 -0
- package/src/components/text-input/text-input.scss +150 -0
- package/src/components/text-input/text-input.stories.js +723 -0
- package/src/icons/_icon.scss +121 -0
- package/src/icons/icon-arrow-left.scss +23 -0
- package/src/icons/icon-arrow-right.scss +23 -0
- package/src/icons/icon-check.scss +23 -0
- package/src/icons/icon-close.scss +24 -0
- package/src/icons/icon-error.scss +24 -0
- package/src/icons/icon-info.scss +24 -0
- package/src/icons/icon-success.scss +23 -0
- package/src/icons/icon-warning.scss +23 -0
- package/src/icons/icons.scss +12 -0
- package/src/icons/icons.stories.js +249 -0
- package/src/icons/svg/arrow-left.svg +3 -0
- package/src/icons/svg/arrow-right.svg +3 -0
- package/src/icons/svg/check.svg +3 -0
- package/src/icons/svg/close.svg +4 -0
- package/src/icons/svg/error.svg +5 -0
- package/src/icons/svg/info.svg +5 -0
- package/src/icons/svg/success.svg +4 -0
- package/src/icons/svg/warning.svg +5 -0
- package/src/utils/__tests__/utilities.test.scss +37 -0
- package/src/utils/_flex.scss +200 -0
- package/src/utils/_grid.scss +211 -0
- package/src/utils/_layout.scss +253 -0
- package/src/utils/_spacing.scss +260 -0
- package/src/utils/_typography.scss +111 -0
- package/src/utils/utils.scss +8 -0
- package/src/variables/_borders.scss +15 -0
- package/src/variables/_breakpoints.scss +11 -0
- package/src/variables/_colors.scss +97 -0
- package/src/variables/_shadows.scss +14 -0
- package/src/variables/_spacing.scss +24 -0
- package/src/variables/_typography.scss +47 -0
- package/src/variables/variables.scss +9 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// Text input component styles
|
|
2
|
+
// Provides styling for the IVDS text input component with all variants, sizes, and states
|
|
3
|
+
|
|
4
|
+
@use '_text-input-mixin' as input;
|
|
5
|
+
|
|
6
|
+
// Text Input Wrapper
|
|
7
|
+
.ivds-text-input-wrapper {
|
|
8
|
+
@include input.text-input-wrapper;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Text Input Base
|
|
12
|
+
.ivds-text-input {
|
|
13
|
+
@include input.text-input-base;
|
|
14
|
+
@include input.text-input-size(var(--spacing-3, 0.75rem), var(--spacing-3, 0.75rem), var(--fontSize-base, 1rem), 44px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Text Input Label
|
|
18
|
+
.ivds-text-input__label {
|
|
19
|
+
@include input.text-input-label;
|
|
20
|
+
|
|
21
|
+
&--required {
|
|
22
|
+
@include input.text-input-required;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Text Input Helper Text
|
|
27
|
+
.ivds-text-input__helper {
|
|
28
|
+
@include input.text-input-helper;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Text Input Error Text
|
|
32
|
+
.ivds-text-input__error {
|
|
33
|
+
@include input.text-input-error;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Text Input Sizes
|
|
37
|
+
.ivds-text-input--small {
|
|
38
|
+
@include input.text-input-size(var(--spacing-2, 0.5rem), var(--spacing-3, 0.75rem), var(--fontSize-sm, 0.875rem), 32px);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ivds-text-input--large {
|
|
42
|
+
@include input.text-input-size(var(--spacing-4, 1rem), var(--spacing-4, 1rem), var(--fontSize-lg, 1.125rem), 56px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Text Input States
|
|
46
|
+
.ivds-text-input--error {
|
|
47
|
+
@include input.text-input-state(
|
|
48
|
+
var(--color-semantic-error-500, #ef4444),
|
|
49
|
+
var(--color-semantic-error-500, #ef4444),
|
|
50
|
+
rgba(239, 68, 68, 0.1)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ivds-text-input--success {
|
|
55
|
+
@include input.text-input-state(
|
|
56
|
+
var(--color-semantic-success-500, #10b981),
|
|
57
|
+
var(--color-semantic-success-500, #10b981),
|
|
58
|
+
rgba(16, 185, 129, 0.1)
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ivds-text-input--warning {
|
|
63
|
+
@include input.text-input-state(
|
|
64
|
+
var(--color-semantic-warning-500, #f59e0b),
|
|
65
|
+
var(--color-semantic-warning-500, #f59e0b),
|
|
66
|
+
rgba(245, 158, 11, 0.1)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Text Input with Icons
|
|
71
|
+
.ivds-text-input-wrapper--icon-left {
|
|
72
|
+
@include input.text-input-with-icon-left;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ivds-text-input-wrapper--icon-right {
|
|
76
|
+
@include input.text-input-with-icon-right;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ivds-text-input__icon {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
|
|
84
|
+
svg {
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
fill: currentcolor;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Text Input Group (with addons)
|
|
92
|
+
.ivds-text-input-group {
|
|
93
|
+
@include input.text-input-group;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Text Input Variants
|
|
97
|
+
.ivds-text-input--filled {
|
|
98
|
+
background-color: var(--color-semantic-neutral-100, #f5f5f5);
|
|
99
|
+
border-color: transparent;
|
|
100
|
+
|
|
101
|
+
&:focus {
|
|
102
|
+
background-color: var(--color-semantic-neutral-50, #fafafa);
|
|
103
|
+
border-color: var(--color-brand-primary-500, #f97316);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:disabled {
|
|
107
|
+
background-color: var(--color-semantic-neutral-200, #e5e5e5);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ivds-text-input--borderless {
|
|
112
|
+
border-color: transparent;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
|
|
115
|
+
&:focus {
|
|
116
|
+
border-color: var(--color-brand-primary-500, #f97316);
|
|
117
|
+
background-color: var(--color-semantic-neutral-50, #fafafa);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Textarea specific styles
|
|
122
|
+
.ivds-text-input--textarea {
|
|
123
|
+
min-height: 120px;
|
|
124
|
+
resize: vertical;
|
|
125
|
+
|
|
126
|
+
&--no-resize {
|
|
127
|
+
resize: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&--auto-resize {
|
|
131
|
+
resize: none;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Full width modifier
|
|
137
|
+
.ivds-text-input--full-width {
|
|
138
|
+
width: 100%;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Readonly state
|
|
142
|
+
.ivds-text-input[readonly] {
|
|
143
|
+
background-color: var(--color-semantic-neutral-50, #f8fafc);
|
|
144
|
+
cursor: default;
|
|
145
|
+
|
|
146
|
+
&:focus {
|
|
147
|
+
box-shadow: none;
|
|
148
|
+
border-color: var(--color-semantic-neutral-300, #d4d4d4);
|
|
149
|
+
}
|
|
150
|
+
}
|