@guardian/stand 0.0.22 → 0.0.23

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 (67) hide show
  1. package/dist/checkbox.cjs +11 -0
  2. package/dist/checkbox.js +3 -0
  3. package/dist/components/checkbox/Checkbox.cjs +54 -0
  4. package/dist/components/checkbox/Checkbox.js +17 -0
  5. package/dist/components/checkbox/CheckboxGroup.cjs +35 -0
  6. package/dist/components/checkbox/CheckboxGroup.js +26 -0
  7. package/dist/components/checkbox/styles.cjs +109 -0
  8. package/dist/components/checkbox/styles.js +101 -0
  9. package/dist/components/form/types.cjs +6 -1
  10. package/dist/components/form/types.js +7 -2
  11. package/dist/components/inline-message/InlineMessage.cjs +9 -1
  12. package/dist/components/inline-message/InlineMessage.js +2 -2
  13. package/dist/components/inline-message/styles.cjs +6 -0
  14. package/dist/components/inline-message/styles.js +6 -1
  15. package/dist/components/radio-group/RadioGroup.cjs +65 -0
  16. package/dist/components/radio-group/RadioGroup.js +31 -0
  17. package/dist/components/radio-group/styles.cjs +78 -0
  18. package/dist/components/radio-group/styles.js +73 -0
  19. package/dist/fonts/MaterialSymbolsOutlined.css +1 -1
  20. package/dist/fonts/MaterialSymbolsRound.css +1 -1
  21. package/dist/fonts/MaterialSymbolsSharp.css +1 -1
  22. package/dist/fonts/material-symbols-types.ts +34 -3
  23. package/dist/index.cjs +4 -0
  24. package/dist/index.js +2 -0
  25. package/dist/radio-group.cjs +10 -0
  26. package/dist/radio-group.js +2 -0
  27. package/dist/styleD/build/css/base/typography.css +1 -1
  28. package/dist/styleD/build/css/component/checkbox.css +57 -0
  29. package/dist/styleD/build/css/component/inlineMessage.css +1 -0
  30. package/dist/styleD/build/css/component/radioGroup.css +52 -0
  31. package/dist/styleD/build/css/semantic/colors.css +3 -1
  32. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  33. package/dist/styleD/build/typescript/base/typography.cjs +3 -3
  34. package/dist/styleD/build/typescript/base/typography.js +3 -3
  35. package/dist/styleD/build/typescript/component/checkbox.cjs +100 -0
  36. package/dist/styleD/build/typescript/component/checkbox.js +98 -0
  37. package/dist/styleD/build/typescript/component/inlineMessage.cjs +2 -1
  38. package/dist/styleD/build/typescript/component/inlineMessage.js +2 -1
  39. package/dist/styleD/build/typescript/component/radioGroup.cjs +85 -0
  40. package/dist/styleD/build/typescript/component/radioGroup.js +83 -0
  41. package/dist/styleD/build/typescript/semantic/colors.cjs +3 -1
  42. package/dist/styleD/build/typescript/semantic/colors.js +3 -1
  43. package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
  44. package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
  45. package/dist/types/checkbox.d.ts +21 -0
  46. package/dist/types/components/checkbox/Checkbox.d.ts +2 -0
  47. package/dist/types/components/checkbox/CheckboxGroup.d.ts +2 -0
  48. package/dist/types/components/checkbox/CheckboxGroupSandbox.d.ts +5 -0
  49. package/dist/types/components/checkbox/CheckboxSandbox.d.ts +5 -0
  50. package/dist/types/components/checkbox/styles.d.ts +10 -0
  51. package/dist/types/components/checkbox/types.d.ts +11 -0
  52. package/dist/types/components/form/types.d.ts +1 -1
  53. package/dist/types/components/inline-message/styles.d.ts +1 -0
  54. package/dist/types/components/radio-group/RadioGroup.d.ts +3 -0
  55. package/dist/types/components/radio-group/sandbox.d.ts +5 -0
  56. package/dist/types/components/radio-group/styles.d.ts +9 -0
  57. package/dist/types/components/radio-group/types.d.ts +10 -0
  58. package/dist/types/fonts/material-symbols-types.d.ts +33 -2
  59. package/dist/types/index.d.ts +4 -0
  60. package/dist/types/radio-group.d.ts +20 -0
  61. package/dist/types/styleD/build/typescript/base/typography.d.ts +3 -3
  62. package/dist/types/styleD/build/typescript/component/checkbox.d.ts +100 -0
  63. package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +1 -0
  64. package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +85 -0
  65. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +2 -0
  66. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
  67. package/package.json +29 -11
@@ -0,0 +1,73 @@
1
+ import { css } from '@emotion/react';
2
+ import { componentRadioGroup } from '../../styleD/build/typescript/component/radioGroup.js';
3
+ import { convertTypographyToEmotionStringStyle } from '../../styleD/utils/semantic/typography.js';
4
+
5
+ const defaultRadioGroupTheme = componentRadioGroup;
6
+ const radioGroupStyles = (theme, { size }) => {
7
+ return css`
8
+ display: ${theme.shared.display};
9
+ flex-direction: ${theme.shared.flexDirection};
10
+ gap: ${theme[size].gap};
11
+ margin-top: ${theme.shared.marginTop};
12
+ margin-bottom: ${theme.shared.marginBottom};
13
+ `;
14
+ };
15
+ const radioStyles = (theme, { size, isInvalid }) => {
16
+ return css`
17
+ display: ${theme.shared.radio.display};
18
+ align-items: ${theme.shared.radio.alignItems};
19
+ gap: ${theme.shared.radio.gap};
20
+ ${convertTypographyToEmotionStringStyle(theme[size].typography)}
21
+ color: ${theme.shared.radio.color};
22
+
23
+ &[data-disabled] {
24
+ color: ${theme.shared.radio.disabled.color};
25
+ }
26
+
27
+ &[data-disabled] :first-of-type {
28
+ border: ${theme.shared.indicator.disabled.border};
29
+ }
30
+
31
+ &[data-disabled]&[data-selected] :first-of-type {
32
+ border: ${theme.shared.indicator.selected.disabled.border};
33
+
34
+ ::after {
35
+ background-color: ${theme.shared.indicator.selected.disabled.after.backgroundColor};
36
+ scale: ${theme.shared.indicator.selected.after.scale};
37
+ }
38
+ }
39
+
40
+ &[data-focus-visible] :first-of-type {
41
+ outline: ${theme.shared.indicator.focused.outline};
42
+ outline-offset: ${theme.shared.indicator.focused.outlineOffset};
43
+ }
44
+
45
+ &[data-selected] :first-of-type {
46
+ border: ${isInvalid ? theme.shared.indicator.selected.invalid.border : theme.shared.indicator.selected.border};
47
+
48
+ ::after {
49
+ background-color: ${isInvalid ? theme.shared.indicator.invalid.after.backgroundColor : theme.shared.indicator.selected.after.backgroundColor};
50
+ scale: ${theme.shared.indicator.selected.after.scale};
51
+ }
52
+ }
53
+ `;
54
+ };
55
+ const radioIndicatorStyles = (theme, { size, isInvalid }) => {
56
+ return css`
57
+ position: ${theme.shared.indicator.position};
58
+ width: ${theme[size].indicator.width};
59
+ height: ${theme[size].indicator.height};
60
+ border-radius: ${theme.shared.indicator.borderRadius};
61
+ border: ${isInvalid ? theme.shared.indicator.invalid.border : theme.shared.indicator.border};
62
+
63
+ &::after {
64
+ content: '';
65
+ position: ${theme.shared.indicator.after.position};
66
+ border-radius: ${theme.shared.indicator.after.borderRadius};
67
+ inset: ${theme.shared.indicator.after.inset};
68
+ scale: ${theme.shared.indicator.after.scale};
69
+ }
70
+ `;
71
+ };
72
+
73
+ export { defaultRadioGroupTheme, radioGroupStyles, radioIndicatorStyles, radioStyles };
@@ -2,7 +2,7 @@
2
2
  font-family: 'Material Symbols Outlined';
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
- src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-outlined-20260218.woff2)
5
+ src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-outlined-filled-20260414.woff2)
6
6
  format('woff2');
7
7
  }
8
8
 
@@ -2,7 +2,7 @@
2
2
  font-family: 'Material Symbols Round';
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
- src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-round-20260218.woff2)
5
+ src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-round-filled-20260414.woff2)
6
6
  format('woff2');
7
7
  }
8
8
 
@@ -2,7 +2,7 @@
2
2
  font-family: 'Material Symbols Sharp';
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
- src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-sharp-20260218.woff2)
5
+ src: url(https://assets.guim.co.uk/fonts/material-symbols/material-symbols-sharp-filled-20260414.woff2)
6
6
  format('woff2');
7
7
  }
8
8
 
@@ -1,4 +1,4 @@
1
- // to get latest symbols font: npx @material-design-icons/scripts download font --symbols --evergreen --to . --fill 0 --weight 400 --grade 0 --size 24
1
+ // to get latest symbols font: npx @material-design-icons/scripts download font --symbols --evergreen --to . --fill 1 --weight 400 --grade 0 --size 24
2
2
  // to generate types: npx @material-design-icons/scripts generate types --symbols --in .
3
3
  // last updated: 2026-02-18
4
4
  type MaterialSymbols = [
@@ -468,6 +468,8 @@ type MaterialSymbols = [
468
468
  'blender',
469
469
  'blind',
470
470
  'blinds',
471
+ 'blinds_2',
472
+ 'blinds_2_closed',
471
473
  'blinds_closed',
472
474
  'block',
473
475
  'blood_pressure',
@@ -488,6 +490,7 @@ type MaterialSymbols = [
488
490
  'body_fat',
489
491
  'body_system',
490
492
  'bolt',
493
+ 'bolt_boost',
491
494
  'bomb',
492
495
  'book',
493
496
  'book_2',
@@ -697,6 +700,7 @@ type MaterialSymbols = [
697
700
  'chat_paste_go',
698
701
  'chat_paste_go_2',
699
702
  'check',
703
+ 'check_alert',
700
704
  'check_box',
701
705
  'check_box_outline_blank',
702
706
  'check_circle',
@@ -780,6 +784,7 @@ type MaterialSymbols = [
780
784
  'code',
781
785
  'code_blocks',
782
786
  'code_off',
787
+ 'code_xml',
783
788
  'coffee',
784
789
  'coffee_maker',
785
790
  'cognition',
@@ -1334,6 +1339,7 @@ type MaterialSymbols = [
1334
1339
  'find_replace',
1335
1340
  'fingerprint',
1336
1341
  'fingerprint_off',
1342
+ 'fire_check',
1337
1343
  'fire_extinguisher',
1338
1344
  'fire_hydrant',
1339
1345
  'fire_truck',
@@ -1344,7 +1350,6 @@ type MaterialSymbols = [
1344
1350
  'fit_page_width',
1345
1351
  'fit_screen',
1346
1352
  'fit_width',
1347
- 'fitbit_raquetball',
1348
1353
  'fitness_center',
1349
1354
  'fitness_tracker',
1350
1355
  'fitness_trackers',
@@ -1416,6 +1421,7 @@ type MaterialSymbols = [
1416
1421
  'footprint',
1417
1422
  'for_you',
1418
1423
  'forest',
1424
+ 'fork_chart',
1419
1425
  'fork_left',
1420
1426
  'fork_right',
1421
1427
  'fork_spoon',
@@ -1459,6 +1465,7 @@ type MaterialSymbols = [
1459
1465
  'format_list_numbered_rtl',
1460
1466
  'format_overline',
1461
1467
  'format_paint',
1468
+ 'format_paint_off',
1462
1469
  'format_paragraph',
1463
1470
  'format_quote',
1464
1471
  'format_quote_off',
@@ -1538,6 +1545,7 @@ type MaterialSymbols = [
1538
1545
  'garage',
1539
1546
  'garage_check',
1540
1547
  'garage_door',
1548
+ 'garage_door_open',
1541
1549
  'garage_home',
1542
1550
  'garage_money',
1543
1551
  'garden_cart',
@@ -1585,12 +1593,14 @@ type MaterialSymbols = [
1585
1593
  'graph_7',
1586
1594
  'graph_8',
1587
1595
  'graphic_eq',
1596
+ 'graphic_eq_off',
1588
1597
  'grass',
1589
1598
  'grid_3x3',
1590
1599
  'grid_3x3_off',
1591
1600
  'grid_4x4',
1592
1601
  'grid_goldenratio',
1593
1602
  'grid_guides',
1603
+ 'grid_layout_side',
1594
1604
  'grid_off',
1595
1605
  'grid_on',
1596
1606
  'grid_view',
@@ -1714,6 +1724,7 @@ type MaterialSymbols = [
1714
1724
  'home_repair_service',
1715
1725
  'home_speaker',
1716
1726
  'home_storage',
1727
+ 'home_storage_gear',
1717
1728
  'home_work',
1718
1729
  'horizontal_align_center',
1719
1730
  'horizontal_align_left',
@@ -1924,12 +1935,14 @@ type MaterialSymbols = [
1924
1935
  'lift_to_talk',
1925
1936
  'light',
1926
1937
  'light_group',
1938
+ 'light_group_2',
1927
1939
  'light_mode',
1928
1940
  'light_off',
1929
1941
  'lightbulb',
1930
1942
  'lightbulb_2',
1931
1943
  'lightbulb_circle',
1932
1944
  'lightning_stand',
1945
+ 'lightstrip',
1933
1946
  'line_axis',
1934
1947
  'line_curve',
1935
1948
  'line_end',
@@ -2242,6 +2255,7 @@ type MaterialSymbols = [
2242
2255
  'moved_location',
2243
2256
  'movie',
2244
2257
  'movie_edit',
2258
+ 'movie_edit_off',
2245
2259
  'movie_info',
2246
2260
  'movie_off',
2247
2261
  'movie_speaker',
@@ -2918,6 +2932,7 @@ type MaterialSymbols = [
2918
2932
  'self_care',
2919
2933
  'self_improvement',
2920
2934
  'sell',
2935
+ 'sell_cloud',
2921
2936
  'send',
2922
2937
  'send_and_archive',
2923
2938
  'send_money',
@@ -2978,6 +2993,8 @@ type MaterialSymbols = [
2978
2993
  'settings_voice',
2979
2994
  'settop_component',
2980
2995
  'severe_cold',
2996
+ 'shades',
2997
+ 'shades_closed',
2981
2998
  'shadow',
2982
2999
  'shadow_add',
2983
3000
  'shadow_minus',
@@ -3038,6 +3055,7 @@ type MaterialSymbols = [
3038
3055
  'signal_cellular_alt',
3039
3056
  'signal_cellular_alt_1_bar',
3040
3057
  'signal_cellular_alt_2_bar',
3058
+ 'signal_cellular_alt_off',
3041
3059
  'signal_cellular_connected_no_internet_0_bar',
3042
3060
  'signal_cellular_connected_no_internet_4_bar',
3043
3061
  'signal_cellular_nodata',
@@ -3089,6 +3107,7 @@ type MaterialSymbols = [
3089
3107
  'snippet_folder',
3090
3108
  'snooze',
3091
3109
  'snowboarding',
3110
+ 'snowflake',
3092
3111
  'snowing',
3093
3112
  'snowing_heavy',
3094
3113
  'snowmobile',
@@ -3106,6 +3125,7 @@ type MaterialSymbols = [
3106
3125
  'sound_detection_glass_break',
3107
3126
  'sound_detection_loud_sound',
3108
3127
  'sound_sampler',
3128
+ 'soundbar',
3109
3129
  'soup_kitchen',
3110
3130
  'source_environment',
3111
3131
  'source_notes',
@@ -3116,11 +3136,13 @@ type MaterialSymbols = [
3116
3136
  'spa',
3117
3137
  'space_bar',
3118
3138
  'space_dashboard',
3139
+ 'space_dashboard_2',
3119
3140
  'spatial_audio',
3120
3141
  'spatial_audio_off',
3121
3142
  'spatial_speaker',
3122
3143
  'spatial_tracking',
3123
3144
  'speaker',
3145
+ 'speaker_2',
3124
3146
  'speaker_group',
3125
3147
  'speaker_notes',
3126
3148
  'speaker_notes_off',
@@ -3185,6 +3207,7 @@ type MaterialSymbols = [
3185
3207
  'sports_volleyball',
3186
3208
  'sprinkler',
3187
3209
  'sprint',
3210
+ 'sql',
3188
3211
  'square',
3189
3212
  'square_circle',
3190
3213
  'square_dot',
@@ -3273,6 +3296,7 @@ type MaterialSymbols = [
3273
3296
  'subtitles_off',
3274
3297
  'subway',
3275
3298
  'subway_walk',
3299
+ 'subwoofer',
3276
3300
  'summarize',
3277
3301
  'sunny',
3278
3302
  'sunny_snowing',
@@ -3297,8 +3321,10 @@ type MaterialSymbols = [
3297
3321
  'swipe_down',
3298
3322
  'swipe_down_alt',
3299
3323
  'swipe_left',
3324
+ 'swipe_left_2',
3300
3325
  'swipe_left_alt',
3301
3326
  'swipe_right',
3327
+ 'swipe_right_2',
3302
3328
  'swipe_right_alt',
3303
3329
  'swipe_up',
3304
3330
  'swipe_up_alt',
@@ -3312,6 +3338,7 @@ type MaterialSymbols = [
3312
3338
  'switch_account',
3313
3339
  'switch_camera',
3314
3340
  'switch_left',
3341
+ 'switch_off',
3315
3342
  'switch_right',
3316
3343
  'switch_video',
3317
3344
  'switches',
@@ -3381,7 +3408,9 @@ type MaterialSymbols = [
3381
3408
  'temple_hindu',
3382
3409
  'tenancy',
3383
3410
  'terminal',
3411
+ 'terminal_2',
3384
3412
  'text_ad',
3413
+ 'text_ad_off',
3385
3414
  'text_compare',
3386
3415
  'text_decrease',
3387
3416
  'text_fields',
@@ -3596,6 +3625,8 @@ type MaterialSymbols = [
3596
3625
  'user_attributes',
3597
3626
  'vaccines',
3598
3627
  'vacuum',
3628
+ 'vacuum_2',
3629
+ 'vacuum_2_on',
3599
3630
  'valve',
3600
3631
  'vape_free',
3601
3632
  'vaping_rooms',
@@ -3717,6 +3748,7 @@ type MaterialSymbols = [
3717
3748
  'water_damage',
3718
3749
  'water_do',
3719
3750
  'water_drop',
3751
+ 'water_drops',
3720
3752
  'water_ec',
3721
3753
  'water_full',
3722
3754
  'water_heater',
@@ -3811,7 +3843,6 @@ type MaterialSymbols = [
3811
3843
  'yard',
3812
3844
  'yoshoku',
3813
3845
  'your_trips',
3814
- 'youtube_activity',
3815
3846
  'youtube_searched_for',
3816
3847
  'zone_person_alert',
3817
3848
  'zone_person_idle',
package/dist/index.cjs CHANGED
@@ -9,6 +9,8 @@ var button = require('./styleD/build/typescript/component/button.cjs');
9
9
  var typography$1 = require('./styleD/build/typescript/component/typography.cjs');
10
10
  var icon = require('./styleD/build/typescript/component/icon.cjs');
11
11
  var favicon = require('./styleD/build/typescript/component/favicon.cjs');
12
+ var radioGroup = require('./styleD/build/typescript/component/radioGroup.cjs');
13
+ var checkbox = require('./styleD/build/typescript/component/checkbox.cjs');
12
14
  var textInput = require('./styleD/build/typescript/component/textInput.cjs');
13
15
  var inlineMessage = require('./styleD/build/typescript/component/inlineMessage.cjs');
14
16
  var select = require('./styleD/build/typescript/component/select.cjs');
@@ -36,6 +38,8 @@ exports.componentButton = button.componentButton;
36
38
  exports.componentTypography = typography$1.componentTypography;
37
39
  exports.componentIcon = icon.componentIcon;
38
40
  exports.componentFavicon = favicon.componentFavicon;
41
+ exports.componentRadioGroup = radioGroup.componentRadioGroup;
42
+ exports.componentCheckbox = checkbox.componentCheckbox;
39
43
  exports.componentTextInput = textInput.componentTextInput;
40
44
  exports.componentInlineMessage = inlineMessage.componentInlineMessage;
41
45
  exports.componentSelect = select.componentSelect;
package/dist/index.js CHANGED
@@ -7,6 +7,8 @@ export { componentButton } from './styleD/build/typescript/component/button.js';
7
7
  export { componentTypography } from './styleD/build/typescript/component/typography.js';
8
8
  export { componentIcon } from './styleD/build/typescript/component/icon.js';
9
9
  export { componentFavicon } from './styleD/build/typescript/component/favicon.js';
10
+ export { componentRadioGroup } from './styleD/build/typescript/component/radioGroup.js';
11
+ export { componentCheckbox } from './styleD/build/typescript/component/checkbox.js';
10
12
  export { componentTextInput } from './styleD/build/typescript/component/textInput.js';
11
13
  export { componentInlineMessage } from './styleD/build/typescript/component/inlineMessage.js';
12
14
  export { componentSelect } from './styleD/build/typescript/component/select.js';
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var RadioGroup = require('./components/radio-group/RadioGroup.cjs');
4
+ var radioGroup = require('./styleD/build/typescript/component/radioGroup.cjs');
5
+
6
+
7
+
8
+ exports.Radio = RadioGroup.Radio;
9
+ exports.RadioGroup = RadioGroup.RadioGroup;
10
+ exports.componentRadioGroup = radioGroup.componentRadioGroup;
@@ -0,0 +1,2 @@
1
+ export { Radio, RadioGroup } from './components/radio-group/RadioGroup.js';
2
+ export { componentRadioGroup } from './styleD/build/typescript/component/radioGroup.js';
@@ -29,9 +29,9 @@
29
29
  --base-typography-size-36-rem: 2.25rem;
30
30
  --base-typography-size-42-rem: 2.625rem;
31
31
  --base-typography-size-48-rem: 3rem;
32
+ --base-typography-weight-guardian-headline-bold: 700;
32
33
  --base-typography-weight-guardian-text-egyptian-normal: 400;
33
34
  --base-typography-weight-guardian-text-egyptian-bold: 700;
34
- --base-typography-weight-guardian-headline-bold: 700;
35
35
  --base-typography-weight-open-sans-light: 340;
36
36
  --base-typography-weight-open-sans-normal: 460;
37
37
  --base-typography-weight-open-sans-semi-bold: 600;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-checkbox-input-shared-display: flex;
7
+ --component-checkbox-input-shared-position: relative;
8
+ --component-checkbox-input-shared-gap: 0.5rem;
9
+ --component-checkbox-input-shared-align-items: flex-start;
10
+ --component-checkbox-input-shared-color: #000000;
11
+ --component-checkbox-input-shared-cursor: pointer;
12
+ --component-checkbox-input-shared-indicator-display: flex;
13
+ --component-checkbox-input-shared-indicator-align-items: center;
14
+ --component-checkbox-input-shared-indicator-justify-content: center;
15
+ --component-checkbox-input-shared-indicator-flex-shrink: 0;
16
+ --component-checkbox-input-shared-indicator-border: 0.0625rem solid #545454;
17
+ --component-checkbox-input-shared-indicator-border-radius: 0.25rem;
18
+ --component-checkbox-input-shared-indicator-transition: all 200ms;
19
+ --component-checkbox-input-shared-indicator-svg-fill: none;
20
+ --component-checkbox-input-shared-indicator-check-width: 20px;
21
+ --component-checkbox-input-shared-indicator-check-height: 20px;
22
+ --component-checkbox-input-shared-indicator-indeterminate-width: 12px;
23
+ --component-checkbox-input-shared-indicator-indeterminate-height: 2px;
24
+ --component-checkbox-input-shared-indicator-selected-background-color: #005d8b;
25
+ --component-checkbox-input-shared-indicator-selected-border: 0.0625rem solid
26
+ #0072a9;
27
+ --component-checkbox-input-shared-indicator-selected-svg-fill: #ffffff;
28
+ --component-checkbox-input-shared-indicator-focus-visible-outline: 0.125rem
29
+ solid #0072a9;
30
+ --component-checkbox-input-shared-indicator-focus-visible-outline-offset: 0.125rem;
31
+ --component-checkbox-input-shared-indicator-error-background-color: #b42a19;
32
+ --component-checkbox-input-shared-indicator-error-border: 0.0625rem solid
33
+ #b42a19;
34
+ --component-checkbox-input-shared-label-align-self: center;
35
+ --component-checkbox-input-shared-disabled-color: #999999;
36
+ --component-checkbox-input-shared-disabled-cursor: not-allowed;
37
+ --component-checkbox-input-shared-disabled-indicator-border: 0.0625rem solid
38
+ #dcdcdc;
39
+ --component-checkbox-input-shared-disabled-indicator-selected-background-color: #dcdcdc;
40
+ --component-checkbox-input-sm-typography-font: normal 460 0.875rem/1.3
41
+ 'Open Sans';
42
+ --component-checkbox-input-sm-typography-letter-spacing: 0;
43
+ --component-checkbox-input-sm-typography-font-width: 95;
44
+ --component-checkbox-input-sm-indicator-size: 1.25rem;
45
+ --component-checkbox-input-md-typography-font: normal 460 1rem/1.3 'Open Sans';
46
+ --component-checkbox-input-md-typography-letter-spacing: 0;
47
+ --component-checkbox-input-md-typography-font-width: 95;
48
+ --component-checkbox-input-md-indicator-size: 1.5rem;
49
+ --component-checkbox-group-shared-display: flex;
50
+ --component-checkbox-group-shared-flex-direction: column;
51
+ --component-checkbox-group-sm-gap: 1rem;
52
+ --component-checkbox-group-sm-margin-top: 0.5rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
53
+ --component-checkbox-group-sm-margin-bottom: 0.5rem; /** spacing between the input itself and the following element (error) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
54
+ --component-checkbox-group-md-gap: 1.25rem;
55
+ --component-checkbox-group-md-margin-top: 0.75rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
56
+ --component-checkbox-group-md-margin-bottom: 0.75rem; /** spacing between the input itself and the following element (error) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
57
+ }
@@ -7,6 +7,7 @@
7
7
  --component-inline-message-shared-gap: 0.25rem;
8
8
  --component-inline-message-shared-align-items: center;
9
9
  --component-inline-message-shared-icon-size: 1.25rem;
10
+ --component-inline-message-shared-icon-align-self: flex-start;
10
11
  --component-inline-message-shared-typography-font: normal 460 0.875rem/1.3
11
12
  'Open Sans';
12
13
  --component-inline-message-shared-typography-letter-spacing: 0;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-radio-group-shared-margin-top: 0.5rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
7
+ --component-radio-group-shared-margin-bottom: 0.5rem; /** spacing between the input itself and the next element (error text) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
8
+ --component-radio-group-shared-display: flex;
9
+ --component-radio-group-shared-flex-direction: column;
10
+ --component-radio-group-shared-radio-color: #000000;
11
+ --component-radio-group-shared-radio-disabled-color: #999999;
12
+ --component-radio-group-shared-radio-display: flex;
13
+ --component-radio-group-shared-radio-align-items: center;
14
+ --component-radio-group-shared-radio-gap: 0.5rem;
15
+ --component-radio-group-shared-indicator-position: relative;
16
+ --component-radio-group-shared-indicator-after-position: absolute;
17
+ --component-radio-group-shared-indicator-after-border-radius: inherit;
18
+ --component-radio-group-shared-indicator-after-inset: 0;
19
+ --component-radio-group-shared-indicator-after-scale: 0;
20
+ --component-radio-group-shared-indicator-border-radius: 50%;
21
+ --component-radio-group-shared-indicator-border: 0.0625rem solid #545454;
22
+ --component-radio-group-shared-indicator-focused-outline: 0.125rem solid
23
+ #0072a9;
24
+ --component-radio-group-shared-indicator-focused-outline-offset: 0.125rem;
25
+ --component-radio-group-shared-indicator-invalid-border: 0.0625rem solid
26
+ #b42a19;
27
+ --component-radio-group-shared-indicator-invalid-after-background-color: #b42a19;
28
+ --component-radio-group-shared-indicator-disabled-border: 0.0625rem solid
29
+ #dcdcdc;
30
+ --component-radio-group-shared-indicator-selected-after-background-color: #005d8b;
31
+ --component-radio-group-shared-indicator-selected-after-scale: 0.6rem;
32
+ --component-radio-group-shared-indicator-selected-border: 0.125rem solid
33
+ #0072a9;
34
+ --component-radio-group-shared-indicator-selected-invalid-border: 0.125rem
35
+ solid #b42a19;
36
+ --component-radio-group-shared-indicator-selected-disabled-border: 0.125rem
37
+ solid #dcdcdc;
38
+ --component-radio-group-shared-indicator-selected-disabled-after-background-color: #dcdcdc;
39
+ --component-radio-group-sm-gap: 1rem;
40
+ --component-radio-group-sm-typography-font: normal 460 0.875rem/1.3
41
+ 'Open Sans';
42
+ --component-radio-group-sm-typography-letter-spacing: 0;
43
+ --component-radio-group-sm-typography-font-width: 95;
44
+ --component-radio-group-sm-indicator-width: 1.25rem;
45
+ --component-radio-group-sm-indicator-height: 1.25rem;
46
+ --component-radio-group-md-gap: 1.25rem;
47
+ --component-radio-group-md-typography-font: normal 460 1rem/1.3 'Open Sans';
48
+ --component-radio-group-md-typography-letter-spacing: 0;
49
+ --component-radio-group-md-typography-font-width: 95;
50
+ --component-radio-group-md-indicator-width: 1.5rem;
51
+ --component-radio-group-md-indicator-height: 1.5rem;
52
+ }
@@ -11,6 +11,7 @@
11
11
  --semantic-colors-text-error: #8c2113;
12
12
  --semantic-colors-text-warning: #433608;
13
13
  --semantic-colors-text-success: #326528;
14
+ --semantic-colors-text-success-inverse: #cde4c9;
14
15
  --semantic-colors-text-information: #00344e;
15
16
  --semantic-colors-text-disabled: #999999;
16
17
  --semantic-colors-text-green: #24491d;
@@ -64,5 +65,6 @@
64
65
  --semantic-colors-fill-information-weak: #e8f0fb;
65
66
  --semantic-colors-fill-error-weak: #f5c6c0;
66
67
  --semantic-colors-fill-error-strong: #b42a19;
67
- --semantic-colors-fill-success-weak: #edf5ec;
68
+ --semantic-colors-fill-success-weak: #cde4c9;
69
+ --semantic-colors-fill-success-strong: #326528;
68
70
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  :root {
6
+ --semantic-sizing-height-xxxs: 1.125rem;
6
7
  --semantic-sizing-height-xxs: 1.25rem;
7
8
  --semantic-sizing-height-xs: 1.5rem;
8
9
  --semantic-sizing-height-sm: 2rem;
@@ -32,11 +32,11 @@ const baseTypography = {
32
32
  "48-rem": "3rem"
33
33
  },
34
34
  weight: {
35
- "Guardian Text Egyptian": {
36
- normal: 400,
35
+ "Guardian Headline": {
37
36
  bold: 700
38
37
  },
39
- "Guardian Headline": {
38
+ "Guardian Text Egyptian": {
39
+ normal: 400,
40
40
  bold: 700
41
41
  },
42
42
  "Open Sans": {
@@ -30,11 +30,11 @@ const baseTypography = {
30
30
  "48-rem": "3rem"
31
31
  },
32
32
  weight: {
33
- "Guardian Text Egyptian": {
34
- normal: 400,
33
+ "Guardian Headline": {
35
34
  bold: 700
36
35
  },
37
- "Guardian Headline": {
36
+ "Guardian Text Egyptian": {
37
+ normal: 400,
38
38
  bold: 700
39
39
  },
40
40
  "Open Sans": {
@@ -0,0 +1,100 @@
1
+ 'use strict';
2
+
3
+ const componentCheckbox = {
4
+ input: {
5
+ shared: {
6
+ display: "flex",
7
+ position: "relative",
8
+ gap: "0.5rem",
9
+ "align-items": "flex-start",
10
+ color: "#000000",
11
+ cursor: "pointer",
12
+ indicator: {
13
+ display: "flex",
14
+ "align-items": "center",
15
+ "justify-content": "center",
16
+ "flex-shrink": 0,
17
+ border: "0.0625rem solid #545454",
18
+ "border-radius": "0.25rem",
19
+ transition: "all 200ms",
20
+ svg: {
21
+ fill: "none"
22
+ },
23
+ check: {
24
+ width: "20px",
25
+ height: "20px"
26
+ },
27
+ indeterminate: {
28
+ width: "12px",
29
+ height: "2px"
30
+ },
31
+ selected: {
32
+ "background-color": "#005d8b",
33
+ border: "0.0625rem solid #0072a9",
34
+ svg: {
35
+ fill: "#ffffff"
36
+ }
37
+ },
38
+ ":focus-visible": {
39
+ outline: "0.125rem solid #0072a9",
40
+ "outline-offset": "0.125rem"
41
+ },
42
+ error: {
43
+ "background-color": "#b42a19",
44
+ border: "0.0625rem solid #b42a19"
45
+ }
46
+ },
47
+ label: {
48
+ "align-self": "center"
49
+ },
50
+ disabled: {
51
+ color: "#999999",
52
+ cursor: "not-allowed",
53
+ indicator: {
54
+ border: "0.0625rem solid #dcdcdc",
55
+ selected: {
56
+ "background-color": "#dcdcdc"
57
+ }
58
+ }
59
+ }
60
+ },
61
+ sm: {
62
+ typography: {
63
+ font: "normal 460 0.875rem/1.3 Open Sans",
64
+ letterSpacing: "0rem",
65
+ fontWidth: 95
66
+ },
67
+ indicator: {
68
+ size: "1.25rem"
69
+ }
70
+ },
71
+ md: {
72
+ typography: {
73
+ font: "normal 460 1rem/1.3 Open Sans",
74
+ letterSpacing: "0rem",
75
+ fontWidth: 95
76
+ },
77
+ indicator: {
78
+ size: "1.5rem"
79
+ }
80
+ }
81
+ },
82
+ group: {
83
+ shared: {
84
+ display: "flex",
85
+ "flex-direction": "column"
86
+ },
87
+ sm: {
88
+ gap: "1rem",
89
+ "margin-top": "0.5rem",
90
+ "margin-bottom": "0.5rem"
91
+ },
92
+ md: {
93
+ gap: "1.25rem",
94
+ "margin-top": "0.75rem",
95
+ "margin-bottom": "0.75rem"
96
+ }
97
+ }
98
+ };
99
+
100
+ exports.componentCheckbox = componentCheckbox;