@seed-design/lynx-css 0.2.0-alpha.3 → 0.2.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 (78) hide show
  1. package/all.css +433 -258
  2. package/all.min.css +1 -1
  3. package/base.css +9 -242
  4. package/base.min.css +1 -1
  5. package/package.json +1 -1
  6. package/recipes/action-button.css +0 -1
  7. package/recipes/app-bar-main.css +67 -0
  8. package/recipes/app-bar-main.d.ts +36 -0
  9. package/recipes/app-bar-main.mjs +63 -0
  10. package/recipes/app-bar.css +101 -0
  11. package/recipes/app-bar.d.ts +32 -0
  12. package/recipes/app-bar.mjs +74 -0
  13. package/recipes/badge.css +157 -0
  14. package/recipes/badge.d.ts +32 -0
  15. package/recipes/badge.mjs +131 -0
  16. package/recipes/bottom-sheet-handle.css +5 -4
  17. package/recipes/bottom-sheet.css +3 -2
  18. package/recipes/checkbox-group.css +1 -1
  19. package/recipes/checkbox-group.d.ts +1 -3
  20. package/recipes/checkbox-group.mjs +2 -12
  21. package/recipes/checkbox.css +5 -3
  22. package/recipes/checkmark.css +1 -0
  23. package/recipes/radio-group.css +1 -1
  24. package/recipes/radio-group.d.ts +1 -3
  25. package/recipes/radio-group.mjs +2 -12
  26. package/recipes/radio.css +5 -3
  27. package/recipes/radiomark.css +1 -0
  28. package/recipes/switch.css +7 -5
  29. package/recipes/switchmark.css +6 -0
  30. package/recipes/tag-group-item.css +1 -0
  31. package/recipes/tag-group.css +6 -0
  32. package/recipes/tag-group.d.ts +1 -1
  33. package/recipes/tag-group.mjs +4 -0
  34. package/vars/color/bg.d.ts +1 -1
  35. package/vars/component/chip.d.ts +21 -1
  36. package/vars/component/chip.mjs +21 -1
  37. package/vars/component/image-frame.d.ts +2 -2
  38. package/vars/component/list-item.d.ts +8 -3
  39. package/vars/component/list-item.mjs +6 -3
  40. package/vars/component/menu-sheet.d.ts +2 -2
  41. package/vars/component/menu-sheet.mjs +2 -2
  42. package/vars/component/top-navigation.d.ts +0 -9
  43. package/vars/component/top-navigation.mjs +0 -9
  44. package/vars/duration.d.ts +2 -1
  45. package/vars/duration.mjs +2 -1
  46. package/vars/gradient.d.ts +2 -2
  47. package/vars/timing-function.d.ts +2 -1
  48. package/vars/timing-function.mjs +2 -1
  49. package/all.layered.css +0 -1953
  50. package/all.layered.min.css +0 -1
  51. package/base.layered.css +0 -865
  52. package/base.layered.min.css +0 -1
  53. package/recipes/action-button.layered.css +0 -406
  54. package/recipes/action-button.layered.mjs +0 -212
  55. package/recipes/bottom-sheet-handle.layered.css +0 -21
  56. package/recipes/bottom-sheet-handle.layered.mjs +0 -36
  57. package/recipes/bottom-sheet.layered.css +0 -106
  58. package/recipes/bottom-sheet.layered.mjs +0 -76
  59. package/recipes/checkbox-group.layered.css +0 -7
  60. package/recipes/checkbox-group.layered.mjs +0 -46
  61. package/recipes/checkbox.layered.css +0 -42
  62. package/recipes/checkbox.layered.mjs +0 -53
  63. package/recipes/checkmark.layered.css +0 -146
  64. package/recipes/checkmark.layered.mjs +0 -220
  65. package/recipes/radio-group.layered.css +0 -7
  66. package/recipes/radio-group.layered.mjs +0 -46
  67. package/recipes/radio.layered.css +0 -42
  68. package/recipes/radio.layered.mjs +0 -53
  69. package/recipes/radiomark.layered.css +0 -112
  70. package/recipes/radiomark.layered.mjs +0 -121
  71. package/recipes/switch.layered.css +0 -48
  72. package/recipes/switch.layered.mjs +0 -49
  73. package/recipes/switchmark.layered.css +0 -88
  74. package/recipes/switchmark.layered.mjs +0 -90
  75. package/recipes/tag-group-item.layered.css +0 -43
  76. package/recipes/tag-group-item.layered.mjs +0 -55
  77. package/recipes/tag-group.layered.css +0 -31
  78. package/recipes/tag-group.layered.mjs +0 -44
@@ -1,88 +0,0 @@
1
- @layer seed-components {
2
- .seed-switchmark__root {
3
- border-radius: var(--seed-radius-full);
4
- background-color: var(--seed-color-palette-gray-600);
5
- transition: background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms, opacity var(--seed-duration-d1) var(--seed-timing-function-easing);
6
- display: flex;
7
- position: relative;
8
- }
9
-
10
- .seed-switchmark__thumb {
11
- border-radius: var(--seed-radius-full);
12
- transition: transform var(--seed-duration-d3) var(--seed-timing-function-easing), background-color var(--seed-duration-d1) var(--seed-timing-function-easing) 20ms;
13
- transform: scale(.8);
14
- }
15
-
16
- .seed-switchmark__thumb--tone_neutral {
17
- background-color: var(--seed-color-fg-neutral-inverted);
18
- }
19
-
20
- .seed-switchmark__thumb--tone_brand {
21
- background-color: var(--seed-color-palette-static-white);
22
- }
23
-
24
- .seed-switchmark__root--size_16 {
25
- min-width: 26px;
26
- min-height: 16px;
27
- padding: 2px;
28
- }
29
-
30
- .seed-switchmark__thumb--size_16 {
31
- width: 12px;
32
- height: 12px;
33
- }
34
-
35
- .seed-switchmark__root--size_24 {
36
- min-width: 38px;
37
- min-height: 24px;
38
- padding: 2px;
39
- }
40
-
41
- .seed-switchmark__thumb--size_24 {
42
- width: 20px;
43
- height: 20px;
44
- }
45
-
46
- .seed-switchmark__root--size_32 {
47
- min-width: 52px;
48
- min-height: 32px;
49
- padding: 3px;
50
- }
51
-
52
- .seed-switchmark__thumb--size_32 {
53
- width: 26px;
54
- height: 26px;
55
- }
56
-
57
- .seed-switchmark__root--disabled_true {
58
- opacity: .38;
59
- }
60
-
61
- .seed-switchmark__root--tone_brand-checked_true {
62
- background-color: var(--seed-color-bg-brand-solid);
63
- }
64
-
65
- .seed-switchmark__root--tone_neutral-checked_true-disabled_false {
66
- background-color: var(--seed-color-bg-neutral-inverted);
67
- }
68
-
69
- .seed-switchmark__root--tone_neutral-checked_true-disabled_true {
70
- background-color: var(--seed-color-palette-gray-600);
71
- }
72
-
73
- .seed-switchmark__thumb--tone_neutral-disabled_true {
74
- background-color: var(--seed-color-palette-static-black-alpha-700);
75
- }
76
-
77
- .seed-switchmark__thumb--size_32-checked_true {
78
- transform: scale(1) translateX(20px);
79
- }
80
-
81
- .seed-switchmark__thumb--size_24-checked_true {
82
- transform: scale(1) translateX(14px);
83
- }
84
-
85
- .seed-switchmark__thumb--size_16-checked_true {
86
- transform: scale(1) translateX(10px);
87
- }
88
- }
@@ -1,90 +0,0 @@
1
- import './switchmark.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const switchmarkSlotNames = [
5
- [
6
- "root",
7
- "seed-switchmark__root"
8
- ],
9
- [
10
- "thumb",
11
- "seed-switchmark__thumb"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {
16
- "tone": "brand",
17
- "size": "32",
18
- "checked": false,
19
- "disabled": false
20
- };
21
-
22
- const compoundVariants = [
23
- {
24
- "tone": "brand",
25
- "checked": true
26
- },
27
- {
28
- "tone": "neutral",
29
- "checked": true,
30
- "disabled": false
31
- },
32
- {
33
- "tone": "neutral",
34
- "checked": true,
35
- "disabled": true
36
- },
37
- {
38
- "tone": "neutral",
39
- "disabled": true
40
- },
41
- {
42
- "size": "32",
43
- "checked": true
44
- },
45
- {
46
- "size": "24",
47
- "checked": true
48
- },
49
- {
50
- "size": "16",
51
- "checked": true
52
- }
53
- ];
54
-
55
- export const switchmarkVariantMap = {
56
- "tone": [
57
- "neutral",
58
- "brand"
59
- ],
60
- "size": [
61
- "16",
62
- "24",
63
- "32"
64
- ],
65
- "checked": [
66
- true,
67
- false
68
- ],
69
- "disabled": [
70
- true,
71
- false
72
- ]
73
- };
74
-
75
- export const switchmarkVariantKeys = Object.keys(switchmarkVariantMap);
76
-
77
- export function switchmark(props) {
78
- return Object.fromEntries(
79
- switchmarkSlotNames.map(([slot, className]) => {
80
- return [
81
- slot,
82
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
83
- ];
84
- }),
85
- );
86
- }
87
-
88
- Object.assign(switchmark, { splitVariantProps: (props) => splitVariantProps(props, switchmarkVariantMap) });
89
-
90
- // @recipe(seed): switchmark
@@ -1,43 +0,0 @@
1
- @layer seed-components {
2
- .seed-tag-group-item__root {
3
- flex-direction: row;
4
- flex-shrink: 0;
5
- align-items: center;
6
- display: flex;
7
- }
8
-
9
- .seed-tag-group-item__label--size_t2 {
10
- font-size: var(--seed-font-size-t2);
11
- line-height: var(--seed-line-height-t2);
12
- }
13
-
14
- .seed-tag-group-item__label--size_t3 {
15
- font-size: var(--seed-font-size-t3);
16
- line-height: var(--seed-line-height-t3);
17
- }
18
-
19
- .seed-tag-group-item__label--size_t4 {
20
- font-size: var(--seed-font-size-t4);
21
- line-height: var(--seed-line-height-t4);
22
- }
23
-
24
- .seed-tag-group-item__label--weight_regular {
25
- font-weight: var(--seed-font-weight-regular);
26
- }
27
-
28
- .seed-tag-group-item__label--weight_bold {
29
- font-weight: var(--seed-font-weight-bold);
30
- }
31
-
32
- .seed-tag-group-item__label--tone_neutralSubtle {
33
- color: var(--seed-color-fg-neutral-subtle);
34
- }
35
-
36
- .seed-tag-group-item__label--tone_neutral {
37
- color: var(--seed-color-fg-neutral);
38
- }
39
-
40
- .seed-tag-group-item__label--tone_brand {
41
- color: var(--seed-color-fg-brand);
42
- }
43
- }
@@ -1,55 +0,0 @@
1
- import './tag-group-item.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const tagGroupItemSlotNames = [
5
- [
6
- "root",
7
- "seed-tag-group-item__root"
8
- ],
9
- [
10
- "label",
11
- "seed-tag-group-item__label"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {
16
- "size": "t2",
17
- "weight": "regular",
18
- "tone": "neutralSubtle"
19
- };
20
-
21
- const compoundVariants = [];
22
-
23
- export const tagGroupItemVariantMap = {
24
- "size": [
25
- "t2",
26
- "t3",
27
- "t4"
28
- ],
29
- "weight": [
30
- "regular",
31
- "bold"
32
- ],
33
- "tone": [
34
- "neutralSubtle",
35
- "neutral",
36
- "brand"
37
- ]
38
- };
39
-
40
- export const tagGroupItemVariantKeys = Object.keys(tagGroupItemVariantMap);
41
-
42
- export function tagGroupItem(props) {
43
- return Object.fromEntries(
44
- tagGroupItemSlotNames.map(([slot, className]) => {
45
- return [
46
- slot,
47
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
48
- ];
49
- }),
50
- );
51
- }
52
-
53
- Object.assign(tagGroupItem, { splitVariantProps: (props) => splitVariantProps(props, tagGroupItemVariantMap) });
54
-
55
- // @recipe(seed): tag-group-item
@@ -1,31 +0,0 @@
1
- @layer seed-components {
2
- .seed-tag-group__root {
3
- flex-flow: wrap;
4
- align-items: center;
5
- width: 100%;
6
- display: flex;
7
- }
8
-
9
- .seed-tag-group__separator {
10
- color: var(--seed-color-palette-gray-600);
11
- font-weight: var(--seed-font-weight-regular);
12
- margin-left: var(--seed-dimension-x0_5);
13
- margin-right: var(--seed-dimension-x0_5);
14
- flex-shrink: 0;
15
- }
16
-
17
- .seed-tag-group__separator--size_t2 {
18
- font-size: var(--seed-font-size-t2);
19
- line-height: var(--seed-line-height-t2);
20
- }
21
-
22
- .seed-tag-group__separator--size_t3 {
23
- font-size: var(--seed-font-size-t3);
24
- line-height: var(--seed-line-height-t3);
25
- }
26
-
27
- .seed-tag-group__separator--size_t4 {
28
- font-size: var(--seed-font-size-t4);
29
- line-height: var(--seed-line-height-t4);
30
- }
31
- }
@@ -1,44 +0,0 @@
1
- import './tag-group.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const tagGroupSlotNames = [
5
- [
6
- "root",
7
- "seed-tag-group__root"
8
- ],
9
- [
10
- "separator",
11
- "seed-tag-group__separator"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {
16
- "size": "t2"
17
- };
18
-
19
- const compoundVariants = [];
20
-
21
- export const tagGroupVariantMap = {
22
- "size": [
23
- "t2",
24
- "t3",
25
- "t4"
26
- ]
27
- };
28
-
29
- export const tagGroupVariantKeys = Object.keys(tagGroupVariantMap);
30
-
31
- export function tagGroup(props) {
32
- return Object.fromEntries(
33
- tagGroupSlotNames.map(([slot, className]) => {
34
- return [
35
- slot,
36
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
37
- ];
38
- }),
39
- );
40
- }
41
-
42
- Object.assign(tagGroup, { splitVariantProps: (props) => splitVariantProps(props, tagGroupVariantMap) });
43
-
44
- // @recipe(seed): tag-group