@atlaskit/primitives 12.2.7 → 13.0.0
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 +24 -0
- package/compiled/package.json +15 -0
- package/dist/cjs/compiled/components/anchor.compiled.css +12 -0
- package/dist/cjs/compiled/components/anchor.js +130 -0
- package/dist/cjs/compiled/components/bleed.compiled.css +11 -0
- package/dist/cjs/compiled/components/bleed.js +49 -0
- package/dist/cjs/compiled/components/box.compiled.css +266 -0
- package/dist/cjs/compiled/components/box.js +367 -0
- package/dist/cjs/compiled/components/flex.compiled.css +46 -0
- package/dist/cjs/compiled/components/flex.js +119 -0
- package/dist/cjs/compiled/components/grid.compiled.css +54 -0
- package/dist/cjs/compiled/components/grid.js +129 -0
- package/dist/cjs/compiled/components/inline.compiled.css +8 -0
- package/dist/cjs/compiled/components/inline.js +83 -0
- package/dist/cjs/compiled/components/internal/surface-provider.js +25 -0
- package/dist/cjs/compiled/components/internal/types.js +1 -0
- package/dist/cjs/compiled/components/pressable.compiled.css +13 -0
- package/dist/cjs/compiled/components/pressable.js +87 -0
- package/dist/cjs/compiled/components/stack.compiled.css +3 -0
- package/dist/cjs/compiled/components/stack.js +64 -0
- package/dist/cjs/compiled/components/text.compiled.css +60 -0
- package/dist/cjs/compiled/components/text.js +177 -0
- package/dist/cjs/compiled/components/types.js +5 -0
- package/dist/cjs/compiled/index.js +83 -0
- package/dist/cjs/compiled/responsive/hide.compiled.css +11 -0
- package/dist/cjs/compiled/responsive/hide.js +46 -0
- package/dist/cjs/compiled/responsive/index.js +33 -0
- package/dist/cjs/compiled/responsive/media-helper.js +42 -0
- package/dist/cjs/compiled/responsive/show.compiled.css +11 -0
- package/dist/cjs/compiled/responsive/show.js +47 -0
- package/dist/cjs/compiled/responsive/types.js +5 -0
- package/dist/cjs/compiled/responsive/use-media-query.js +77 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/index.js +0 -6
- package/dist/es2019/compiled/components/anchor.compiled.css +12 -0
- package/dist/es2019/compiled/components/anchor.js +117 -0
- package/dist/es2019/compiled/components/bleed.compiled.css +11 -0
- package/dist/es2019/compiled/components/bleed.js +43 -0
- package/dist/es2019/compiled/components/box.compiled.css +266 -0
- package/dist/es2019/compiled/components/box.js +351 -0
- package/dist/es2019/compiled/components/flex.compiled.css +46 -0
- package/dist/es2019/compiled/components/flex.js +110 -0
- package/dist/es2019/compiled/components/grid.compiled.css +54 -0
- package/dist/es2019/compiled/components/grid.js +121 -0
- package/dist/es2019/compiled/components/inline.compiled.css +8 -0
- package/dist/es2019/compiled/components/inline.js +71 -0
- package/dist/es2019/compiled/components/internal/surface-provider.js +19 -0
- package/dist/es2019/compiled/components/internal/types.js +0 -0
- package/dist/es2019/compiled/components/pressable.compiled.css +13 -0
- package/dist/es2019/compiled/components/pressable.js +75 -0
- package/dist/es2019/compiled/components/stack.compiled.css +3 -0
- package/dist/es2019/compiled/components/stack.js +54 -0
- package/dist/es2019/compiled/components/text.compiled.css +60 -0
- package/dist/es2019/compiled/components/text.js +164 -0
- package/dist/es2019/compiled/components/types.js +1 -0
- package/dist/es2019/compiled/index.js +13 -0
- package/dist/es2019/compiled/responsive/hide.compiled.css +11 -0
- package/dist/es2019/compiled/responsive/hide.js +37 -0
- package/dist/es2019/compiled/responsive/index.js +4 -0
- package/dist/es2019/compiled/responsive/media-helper.js +36 -0
- package/dist/es2019/compiled/responsive/show.compiled.css +11 -0
- package/dist/es2019/compiled/responsive/show.js +38 -0
- package/dist/es2019/compiled/responsive/types.js +1 -0
- package/dist/es2019/compiled/responsive/use-media-query.js +71 -0
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/esm/compiled/components/anchor.compiled.css +12 -0
- package/dist/esm/compiled/components/anchor.js +120 -0
- package/dist/esm/compiled/components/bleed.compiled.css +11 -0
- package/dist/esm/compiled/components/bleed.js +42 -0
- package/dist/esm/compiled/components/box.compiled.css +266 -0
- package/dist/esm/compiled/components/box.js +358 -0
- package/dist/esm/compiled/components/flex.compiled.css +46 -0
- package/dist/esm/compiled/components/flex.js +110 -0
- package/dist/esm/compiled/components/grid.compiled.css +54 -0
- package/dist/esm/compiled/components/grid.js +120 -0
- package/dist/esm/compiled/components/inline.compiled.css +8 -0
- package/dist/esm/compiled/components/inline.js +73 -0
- package/dist/esm/compiled/components/internal/surface-provider.js +19 -0
- package/dist/esm/compiled/components/internal/types.js +0 -0
- package/dist/esm/compiled/components/pressable.compiled.css +13 -0
- package/dist/esm/compiled/components/pressable.js +77 -0
- package/dist/esm/compiled/components/stack.compiled.css +3 -0
- package/dist/esm/compiled/components/stack.js +54 -0
- package/dist/esm/compiled/components/text.compiled.css +60 -0
- package/dist/esm/compiled/components/text.js +167 -0
- package/dist/esm/compiled/components/types.js +1 -0
- package/dist/esm/compiled/index.js +13 -0
- package/dist/esm/compiled/responsive/hide.compiled.css +11 -0
- package/dist/esm/compiled/responsive/hide.js +37 -0
- package/dist/esm/compiled/responsive/index.js +4 -0
- package/dist/esm/compiled/responsive/media-helper.js +36 -0
- package/dist/esm/compiled/responsive/show.compiled.css +11 -0
- package/dist/esm/compiled/responsive/show.js +38 -0
- package/dist/esm/compiled/responsive/types.js +1 -0
- package/dist/esm/compiled/responsive/use-media-query.js +71 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/compiled/components/anchor.d.ts +63 -0
- package/dist/types/compiled/components/bleed.d.ts +34 -0
- package/dist/types/compiled/components/box.d.ts +105 -0
- package/dist/types/compiled/components/flex.d.ts +111 -0
- package/dist/types/compiled/components/grid.d.ts +131 -0
- package/dist/types/compiled/components/inline.d.ts +116 -0
- package/dist/types/compiled/components/internal/surface-provider.d.ts +16 -0
- package/dist/types/compiled/components/internal/types.d.ts +5 -0
- package/dist/types/compiled/components/pressable.d.ts +49 -0
- package/dist/types/compiled/components/stack.d.ts +90 -0
- package/dist/types/compiled/components/text.d.ts +91 -0
- package/dist/types/compiled/components/types.d.ts +45 -0
- package/dist/types/compiled/index.d.ts +12 -0
- package/dist/types/compiled/responsive/hide.d.ts +39 -0
- package/dist/types/compiled/responsive/index.d.ts +5 -0
- package/dist/types/compiled/responsive/media-helper.d.ts +35 -0
- package/dist/types/compiled/responsive/show.d.ts +39 -0
- package/dist/types/compiled/responsive/types.d.ts +10 -0
- package/dist/types/compiled/responsive/use-media-query.d.ts +23 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/compiled/components/anchor.d.ts +63 -0
- package/dist/types-ts4.5/compiled/components/bleed.d.ts +34 -0
- package/dist/types-ts4.5/compiled/components/box.d.ts +105 -0
- package/dist/types-ts4.5/compiled/components/flex.d.ts +111 -0
- package/dist/types-ts4.5/compiled/components/grid.d.ts +131 -0
- package/dist/types-ts4.5/compiled/components/inline.d.ts +116 -0
- package/dist/types-ts4.5/compiled/components/internal/surface-provider.d.ts +16 -0
- package/dist/types-ts4.5/compiled/components/internal/types.d.ts +5 -0
- package/dist/types-ts4.5/compiled/components/pressable.d.ts +49 -0
- package/dist/types-ts4.5/compiled/components/stack.d.ts +90 -0
- package/dist/types-ts4.5/compiled/components/text.d.ts +96 -0
- package/dist/types-ts4.5/compiled/components/types.d.ts +45 -0
- package/dist/types-ts4.5/compiled/index.d.ts +12 -0
- package/dist/types-ts4.5/compiled/responsive/hide.d.ts +39 -0
- package/dist/types-ts4.5/compiled/responsive/index.d.ts +5 -0
- package/dist/types-ts4.5/compiled/responsive/media-helper.d.ts +35 -0
- package/dist/types-ts4.5/compiled/responsive/show.d.ts +39 -0
- package/dist/types-ts4.5/compiled/responsive/types.d.ts +10 -0
- package/dist/types-ts4.5/compiled/responsive/use-media-query.d.ts +23 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
._19itglyw{border:none}
|
|
2
|
+
._1q1l108i{--ds-elevation-surface-current:var(--ds-surface-hovered,#f1f2f4)}
|
|
3
|
+
._1q1l16qz{--ds-elevation-surface-current:var(--ds-surface-overlay-hovered,#f1f2f4)}
|
|
4
|
+
._1q1l1a0f{--ds-elevation-surface-current:var(--ds-surface-raised-hovered,#f1f2f4)}
|
|
5
|
+
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
6
|
+
._1q1l1ji5{--ds-elevation-surface-current:var(--ds-surface-pressed,#dcdfe4)}
|
|
7
|
+
._1q1lf7u5{--ds-elevation-surface-current:var(--ds-surface-raised-pressed,#dcdfe4)}
|
|
8
|
+
._1q1lhp5a{--ds-elevation-surface-current:var(--ds-surface-raised,#fff)}
|
|
9
|
+
._1q1lqbzx{--ds-elevation-surface-current:var(--ds-surface-sunken,#f7f8f9)}
|
|
10
|
+
._1q1lvq0a{--ds-elevation-surface-current:var(--ds-surface-overlay-pressed,#dcdfe4)}
|
|
11
|
+
._1q1lvuon{--ds-elevation-surface-current:var(--ds-surface,#fff)}
|
|
12
|
+
._1q5112x7{padding-block-start:var(--ds-space-075,6px)}
|
|
13
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
14
|
+
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
15
|
+
._1q511epz{padding-block-start:var(--ds-space-1000,5pc)}
|
|
16
|
+
._1q511jfw{padding-block-start:var(--ds-space-500,40px)}
|
|
17
|
+
._1q51oahv{padding-block-start:var(--ds-space-600,3pc)}
|
|
18
|
+
._1q51pxbi{padding-block-start:var(--ds-space-200,1pc)}
|
|
19
|
+
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
20
|
+
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
21
|
+
._1q51v47k{padding-block-start:var(--ds-space-250,20px)}
|
|
22
|
+
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
23
|
+
._1q51xncg{padding-block-start:var(--ds-space-800,4pc)}
|
|
24
|
+
._1q51xy5q{padding-block-start:var(--ds-space-400,2pc)}
|
|
25
|
+
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
26
|
+
._85i512x7{padding-block-end:var(--ds-space-075,6px)}
|
|
27
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
28
|
+
._85i51ejb{padding-block-end:var(--ds-space-300,24px)}
|
|
29
|
+
._85i51epz{padding-block-end:var(--ds-space-1000,5pc)}
|
|
30
|
+
._85i51jfw{padding-block-end:var(--ds-space-500,40px)}
|
|
31
|
+
._85i5oahv{padding-block-end:var(--ds-space-600,3pc)}
|
|
32
|
+
._85i5pxbi{padding-block-end:var(--ds-space-200,1pc)}
|
|
33
|
+
._85i5u2gc{padding-block-end:var(--ds-space-100,8px)}
|
|
34
|
+
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
35
|
+
._85i5v47k{padding-block-end:var(--ds-space-250,20px)}
|
|
36
|
+
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
37
|
+
._85i5xncg{padding-block-end:var(--ds-space-800,4pc)}
|
|
38
|
+
._85i5xy5q{padding-block-end:var(--ds-space-400,2pc)}
|
|
39
|
+
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
40
|
+
._bfhk100f{background-color:var(--ds-background-accent-red-bolder-hovered,#ae2e24)}
|
|
41
|
+
._bfhk108c{background-color:var(--ds-background-accent-teal-subtlest-hovered,#c6edfb)}
|
|
42
|
+
._bfhk108i{background-color:var(--ds-surface-hovered,#f1f2f4)}
|
|
43
|
+
._bfhk10ai{background-color:var(--ds-background-accent-teal-subtle-pressed,#c6edfb)}
|
|
44
|
+
._bfhk10xm{background-color:var(--ds-blanket,#091e427d)}
|
|
45
|
+
._bfhk11bn{background-color:var(--ds-background-accent-gray-subtlest,#f1f2f4)}
|
|
46
|
+
._bfhk11dh{background-color:var(--ds-background-warning-pressed,#f5cd47)}
|
|
47
|
+
._bfhk12e3{background-color:var(--ds-background-accent-green-subtle-hovered,#7ee2b8)}
|
|
48
|
+
._bfhk12j4{background-color:var(--ds-background-accent-gray-subtlest-hovered,#dcdfe4)}
|
|
49
|
+
._bfhk14wj{background-color:var(--ds-background-information-bold,#0c66e4)}
|
|
50
|
+
._bfhk15ej{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
51
|
+
._bfhk15mt{background-color:var(--ds-background-brand-boldest,#1c2b41)}
|
|
52
|
+
._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
|
|
53
|
+
._bfhk16e6{background-color:var(--ds-background-accent-blue-subtler-hovered,#85b8ff)}
|
|
54
|
+
._bfhk16qz{background-color:var(--ds-surface-overlay-hovered,#f1f2f4)}
|
|
55
|
+
._bfhk17e6{background-color:var(--ds-background-accent-yellow-subtle-hovered,#e2b203)}
|
|
56
|
+
._bfhk17jr{background-color:var(--ds-background-brand-boldest-pressed,#05c)}
|
|
57
|
+
._bfhk18hz{background-color:var(--ds-background-selected-bold-hovered,#05c)}
|
|
58
|
+
._bfhk190i{background-color:var(--ds-background-warning-bold,#f5cd47)}
|
|
59
|
+
._bfhk19g9{background-color:var(--ds-background-accent-yellow-subtlest-hovered,#f8e6a0)}
|
|
60
|
+
._bfhk19ru{background-color:var(--ds-background-selected-pressed,#85b8ff)}
|
|
61
|
+
._bfhk1a0f{background-color:var(--ds-surface-raised-hovered,#f1f2f4)}
|
|
62
|
+
._bfhk1a17{background-color:var(--ds-background-accent-teal-subtler,#c6edfb)}
|
|
63
|
+
._bfhk1a2l{background-color:var(--ds-background-accent-gray-subtle-hovered,#b3b9c4)}
|
|
64
|
+
._bfhk1amz{background-color:var(--ds-background-information-bold-hovered,#05c)}
|
|
65
|
+
._bfhk1azz{background-color:var(--ds-background-accent-green-bolder-pressed,#164b35)}
|
|
66
|
+
._bfhk1b17{background-color:var(--ds-background-accent-lime-bolder-pressed,#37471f)}
|
|
67
|
+
._bfhk1b6k{background-color:var(--ds-background-neutral-bold-pressed,#172b4d)}
|
|
68
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
69
|
+
._bfhk1bsc{background-color:var(--ds-background-neutral-bold-hovered,#2c3e5d)}
|
|
70
|
+
._bfhk1cwi{background-color:var(--ds-background-accent-blue-bolder-hovered,#05c)}
|
|
71
|
+
._bfhk1d44{background-color:var(--ds-background-accent-yellow-subtler-pressed,#e2b203)}
|
|
72
|
+
._bfhk1d5g{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
73
|
+
._bfhk1dty{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
74
|
+
._bfhk1e5c{background-color:var(--ds-background-accent-green-bolder,#1f845a)}
|
|
75
|
+
._bfhk1eds{background-color:var(--ds-background-accent-lime-subtler-hovered,#b3df72)}
|
|
76
|
+
._bfhk1een{background-color:var(--ds-background-accent-magenta-subtlest-pressed,#f797d2)}
|
|
77
|
+
._bfhk1f4s{background-color:var(--ds-background-accent-blue-subtle-hovered,#85b8ff)}
|
|
78
|
+
._bfhk1f7l{background-color:var(--ds-background-accent-gray-subtler-hovered,#b3b9c4)}
|
|
79
|
+
._bfhk1fno{background-color:var(--ds-background-accent-lime-subtlest-pressed,#b3df72)}
|
|
80
|
+
._bfhk1fvw{background-color:var(--ds-background-selected-bold,#0c66e4)}
|
|
81
|
+
._bfhk1g3m{background-color:var(--ds-background-accent-orange-subtlest,#fff3eb)}
|
|
82
|
+
._bfhk1g6e{background-color:var(--ds-background-accent-orange-subtle,#fea362)}
|
|
83
|
+
._bfhk1gii{background-color:var(--ds-background-inverse-subtle-pressed,#00000052)}
|
|
84
|
+
._bfhk1gly{background-color:var(--ds-background-danger,#ffeceb)}
|
|
85
|
+
._bfhk1hgz{background-color:var(--ds-background-accent-lime-subtler-pressed,#94c748)}
|
|
86
|
+
._bfhk1i4c{background-color:var(--ds-background-warning-bold-hovered,#e2b203)}
|
|
87
|
+
._bfhk1i6i{background-color:var(--ds-background-accent-red-subtlest-hovered,#ffd5d2)}
|
|
88
|
+
._bfhk1io2{background-color:var(--ds-background-danger-pressed,#fd9891)}
|
|
89
|
+
._bfhk1j2h{background-color:var(--ds-background-accent-teal-subtlest-pressed,#9dd9ee)}
|
|
90
|
+
._bfhk1j89{background-color:var(--ds-background-accent-blue-subtle,#579dff)}
|
|
91
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
92
|
+
._bfhk1jgi{background-color:var(--ds-background-success-hovered,#baf3db)}
|
|
93
|
+
._bfhk1ji5{background-color:var(--ds-surface-pressed,#dcdfe4)}
|
|
94
|
+
._bfhk1jkz{background-color:var(--ds-background-accent-purple-subtler,#dfd8fd)}
|
|
95
|
+
._bfhk1lb4{background-color:var(--ds-background-accent-gray-subtlest-pressed,#b3b9c4)}
|
|
96
|
+
._bfhk1lml{background-color:var(--ds-background-accent-orange-subtler-hovered,#fec195)}
|
|
97
|
+
._bfhk1lri{background-color:var(--ds-background-discovery-bold,#6e5dc6)}
|
|
98
|
+
._bfhk1mi6{background-color:var(--ds-background-accent-magenta-subtle,#e774bb)}
|
|
99
|
+
._bfhk1nvp{background-color:var(--ds-background-discovery,#f3f0ff)}
|
|
100
|
+
._bfhk1oew{background-color:var(--ds-background-accent-orange-subtle-hovered,#fec195)}
|
|
101
|
+
._bfhk1ok8{background-color:var(--ds-background-accent-magenta-bolder-hovered,#943d73)}
|
|
102
|
+
._bfhk1ovh{background-color:var(--ds-background-accent-magenta-subtle-pressed,#fdd0ec)}
|
|
103
|
+
._bfhk1ozg{background-color:var(--ds-background-accent-yellow-subtlest,#fff7d6)}
|
|
104
|
+
._bfhk1p19{background-color:var(--ds-background-accent-green-subtler-pressed,#4bce97)}
|
|
105
|
+
._bfhk1pbw{background-color:var(--ds-background-accent-red-subtlest-pressed,#fd9891)}
|
|
106
|
+
._bfhk1phk{background-color:var(--ds-background-accent-orange-subtle-pressed,#fedec8)}
|
|
107
|
+
._bfhk1q4l{background-color:var(--ds-background-success-bold-hovered,#216e4e)}
|
|
108
|
+
._bfhk1r0p{background-color:var(--ds-background-accent-magenta-subtler-hovered,#f797d2)}
|
|
109
|
+
._bfhk1rd4{background-color:var(--ds-background-warning-hovered,#f8e6a0)}
|
|
110
|
+
._bfhk1rsu{background-color:var(--ds-background-accent-green-subtle,#4bce97)}
|
|
111
|
+
._bfhk1rtt{background-color:var(--ds-background-accent-red-subtler,#ffd5d2)}
|
|
112
|
+
._bfhk1s0z{background-color:var(--ds-background-information-pressed,#85b8ff)}
|
|
113
|
+
._bfhk1sou{background-color:var(--ds-background-accent-red-subtle-hovered,#fd9891)}
|
|
114
|
+
._bfhk1t05{background-color:var(--ds-background-accent-gray-subtle,#8590a2)}
|
|
115
|
+
._bfhk1t1b{background-color:var(--ds-background-accent-gray-bolder,#626f86)}
|
|
116
|
+
._bfhk1tf4{background-color:var(--ds-background-accent-red-subtle-pressed,#ffd5d2)}
|
|
117
|
+
._bfhk1tzq{background-color:var(--ds-background-warning,#fff7d6)}
|
|
118
|
+
._bfhk1uh7{background-color:var(--ds-background-accent-blue-subtler-pressed,#579dff)}
|
|
119
|
+
._bfhk1uro{background-color:var(--ds-background-accent-purple-bolder-pressed,#352c63)}
|
|
120
|
+
._bfhk1uwk{background-color:var(--ds-background-brand-boldest-hovered,#09326c)}
|
|
121
|
+
._bfhk1v33{background-color:var(--ds-background-accent-gray-subtler,#dcdfe4)}
|
|
122
|
+
._bfhk1vck{background-color:var(--ds-background-inverse-subtle,#00000029)}
|
|
123
|
+
._bfhk1vk5{background-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
|
|
124
|
+
._bfhk1vop{background-color:var(--ds-background-accent-yellow-bolder,#946f00)}
|
|
125
|
+
._bfhk1vps{background-color:var(--ds-background-information-hovered,#cce0ff)}
|
|
126
|
+
._bfhk1w72{background-color:var(--ds-background-discovery-bold-hovered,#5e4db2)}
|
|
127
|
+
._bfhk1wnw{background-color:var(--ds-background-accent-green-subtler,#baf3db)}
|
|
128
|
+
._bfhk1wob{background-color:var(--ds-background-accent-purple-subtle-hovered,#b8acf6)}
|
|
129
|
+
._bfhk1wyu{background-color:var(--ds-background-accent-purple-subtler-hovered,#b8acf6)}
|
|
130
|
+
._bfhk1xmr{background-color:var(--ds-background-accent-blue-subtlest-pressed,#85b8ff)}
|
|
131
|
+
._bfhk1xp7{background-color:var(--ds-background-discovery-hovered,#dfd8fd)}
|
|
132
|
+
._bfhk1ya0{background-color:var(--ds-background-accent-orange-subtlest-pressed,#fec195)}
|
|
133
|
+
._bfhk1yvi{background-color:var(--ds-background-danger-hovered,#ffd5d2)}
|
|
134
|
+
._bfhk1z0s{background-color:var(--ds-background-accent-gray-subtle-pressed,#dcdfe4)}
|
|
135
|
+
._bfhk2c8p{background-color:var(--ds-background-accent-teal-bolder,#227d9b)}
|
|
136
|
+
._bfhk2ggb{background-color:var(--ds-background-brand-subtlest-pressed,#85b8ff)}
|
|
137
|
+
._bfhk31d1{background-color:var(--ds-background-accent-yellow-subtlest-pressed,#f5cd47)}
|
|
138
|
+
._bfhk32kj{background-color:var(--ds-background-accent-yellow-bolder-pressed,#533f04)}
|
|
139
|
+
._bfhk33gi{background-color:var(--ds-background-information,#e9f2ff)}
|
|
140
|
+
._bfhk3fv2{background-color:var(--ds-background-accent-yellow-subtler,#f8e6a0)}
|
|
141
|
+
._bfhk3utz{background-color:var(--ds-background-accent-green-subtlest-hovered,#baf3db)}
|
|
142
|
+
._bfhk3wxy{background-color:var(--ds-background-brand-subtlest,#e9f2ff)}
|
|
143
|
+
._bfhk4v9p{background-color:var(--ds-background-accent-blue-subtler,#cce0ff)}
|
|
144
|
+
._bfhk5bth{background-color:var(--ds-background-information-bold-pressed,#09326c)}
|
|
145
|
+
._bfhk5fkp{background-color:var(--ds-background-accent-purple-subtler-pressed,#9f8fef)}
|
|
146
|
+
._bfhk69rw{background-color:var(--ds-background-accent-red-subtler-pressed,#f87168)}
|
|
147
|
+
._bfhk7wq0{background-color:var(--ds-blanket-selected,#388bff14)}
|
|
148
|
+
._bfhk7xuz{background-color:var(--ds-background-accent-teal-subtlest,#e7f9ff)}
|
|
149
|
+
._bfhk82ra{background-color:var(--ds-background-accent-gray-bolder-pressed,#2c3e5d)}
|
|
150
|
+
._bfhk8emd{background-color:var(--ds-background-success-bold,#1f845a)}
|
|
151
|
+
._bfhk8h4p{background-color:var(--ds-background-accent-green-subtle-pressed,#baf3db)}
|
|
152
|
+
._bfhk8tvm{background-color:var(--ds-background-accent-magenta-subtlest,#ffecf8)}
|
|
153
|
+
._bfhk9pqq{background-color:var(--ds-background-danger-bold-pressed,#5d1f1a)}
|
|
154
|
+
._bfhka5yi{background-color:var(--ds-background-accent-green-bolder-hovered,#216e4e)}
|
|
155
|
+
._bfhkadgs{background-color:var(--ds-background-accent-purple-bolder-hovered,#5e4db2)}
|
|
156
|
+
._bfhkavxe{background-color:var(--ds-background-accent-blue-subtlest,#e9f2ff)}
|
|
157
|
+
._bfhkay3p{background-color:var(--ds-background-accent-blue-subtlest-hovered,#cce0ff)}
|
|
158
|
+
._bfhkb29m{background-color:var(--ds-background-brand-bold,#0c66e4)}
|
|
159
|
+
._bfhkbq5w{background-color:var(--ds-background-accent-lime-subtle,#94c748)}
|
|
160
|
+
._bfhkc3uk{background-color:var(--ds-background-accent-magenta-bolder,#ae4787)}
|
|
161
|
+
._bfhkc8cv{background-color:var(--ds-background-accent-blue-bolder,#0c66e4)}
|
|
162
|
+
._bfhkcdhy{background-color:var(--ds-background-neutral-bold,#44546f)}
|
|
163
|
+
._bfhkchd4{background-color:var(--ds-elevation-surface-current,#fff)}
|
|
164
|
+
._bfhkcrcn{background-color:var(--ds-background-success-bold-pressed,#164b35)}
|
|
165
|
+
._bfhkd4y8{background-color:var(--ds-background-accent-lime-subtlest-hovered,#d3f1a7)}
|
|
166
|
+
._bfhkd8a2{background-color:var(--ds-background-accent-gray-subtler-pressed,#8590a2)}
|
|
167
|
+
._bfhkdh45{background-color:var(--ds-background-accent-purple-subtle,#9f8fef)}
|
|
168
|
+
._bfhkdlkp{background-color:var(--ds-background-discovery-pressed,#b8acf6)}
|
|
169
|
+
._bfhke4nv{background-color:var(--ds-background-accent-gray-bolder-hovered,#44546f)}
|
|
170
|
+
._bfhkezq1{background-color:var(--ds-background-brand-subtlest-hovered,#cce0ff)}
|
|
171
|
+
._bfhkf2vu{background-color:var(--ds-background-accent-orange-subtler,#fedec8)}
|
|
172
|
+
._bfhkf767{background-color:var(--ds-background-accent-orange-bolder-pressed,#702e00)}
|
|
173
|
+
._bfhkf7u5{background-color:var(--ds-surface-raised-pressed,#dcdfe4)}
|
|
174
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
175
|
+
._bfhkfoww{background-color:var(--ds-background-accent-lime-subtle-hovered,#b3df72)}
|
|
176
|
+
._bfhkg4tm{background-color:var(--ds-background-accent-orange-subtlest-hovered,#fedec8)}
|
|
177
|
+
._bfhkg5py{background-color:var(--ds-background-accent-teal-subtler-hovered,#9dd9ee)}
|
|
178
|
+
._bfhkgr1v{background-color:var(--ds-background-selected-bold-pressed,#09326c)}
|
|
179
|
+
._bfhkgslw{background-color:var(--ds-background-accent-purple-subtlest-pressed,#b8acf6)}
|
|
180
|
+
._bfhkh3tw{background-color:var(--ds-skeleton-subtle,#091e4208)}
|
|
181
|
+
._bfhkhcrq{background-color:var(--ds-background-accent-blue-bolder-pressed,#09326c)}
|
|
182
|
+
._bfhkhgj8{background-color:var(--ds-background-accent-lime-subtle-pressed,#d3f1a7)}
|
|
183
|
+
._bfhkhi52{background-color:var(--ds-background-accent-orange-bolder-hovered,#a54800)}
|
|
184
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
185
|
+
._bfhki1yw{background-color:var(--ds-background-selected-hovered,#cce0ff)}
|
|
186
|
+
._bfhkip91{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
187
|
+
._bfhkjgng{background-color:var(--ds-background-accent-orange-bolder,#c25100)}
|
|
188
|
+
._bfhkkjqf{background-color:var(--ds-background-accent-yellow-bolder-hovered,#7f5f01)}
|
|
189
|
+
._bfhkkrt9{background-color:var(--ds-background-accent-red-subtle,#f87168)}
|
|
190
|
+
._bfhkl3ve{background-color:var(--ds-background-accent-teal-bolder-hovered,#206a83)}
|
|
191
|
+
._bfhklg04{background-color:var(--ds-background-accent-yellow-subtler-hovered,#f5cd47)}
|
|
192
|
+
._bfhkm0d5{background-color:var(--ds-background-accent-purple-subtlest-hovered,#dfd8fd)}
|
|
193
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
194
|
+
._bfhkm890{background-color:var(--ds-background-accent-lime-subtlest,#efffd6)}
|
|
195
|
+
._bfhkmpja{background-color:var(--ds-background-inverse-subtle-hovered,#0000003d)}
|
|
196
|
+
._bfhkmv6i{background-color:var(--ds-background-success,#dcfff1)}
|
|
197
|
+
._bfhkn729{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
|
|
198
|
+
._bfhkn82g{background-color:var(--ds-skeleton,#091e420f)}
|
|
199
|
+
._bfhknzpa{background-color:var(--ds-background-accent-lime-bolder-hovered,#4c6b1f)}
|
|
200
|
+
._bfhko0y5{background-color:var(--ds-background-accent-yellow-subtle-pressed,#cf9f02)}
|
|
201
|
+
._bfhkp7j4{background-color:var(--ds-background-accent-purple-subtlest,#f3f0ff)}
|
|
202
|
+
._bfhkprmn{background-color:var(--ds-background-accent-red-bolder-pressed,#5d1f1a)}
|
|
203
|
+
._bfhkq7li{background-color:var(--ds-background-accent-teal-subtler-pressed,#6cc3e0)}
|
|
204
|
+
._bfhkqbzx{background-color:var(--ds-surface-sunken,#f7f8f9)}
|
|
205
|
+
._bfhkqctv{background-color:var(--ds-background-accent-blue-subtle-pressed,#cce0ff)}
|
|
206
|
+
._bfhkqkzo{background-color:var(--ds-background-brand-bold-pressed,#09326c)}
|
|
207
|
+
._bfhkr01l{background-color:var(--ds-background-input-pressed,#fff)}
|
|
208
|
+
._bfhkr3zd{background-color:var(--ds-background-accent-magenta-subtlest-hovered,#fdd0ec)}
|
|
209
|
+
._bfhkrb53{background-color:var(--ds-background-discovery-bold-pressed,#352c63)}
|
|
210
|
+
._bfhkrj9s{background-color:var(--ds-background-warning-bold-pressed,#cf9f02)}
|
|
211
|
+
._bfhkrprw{background-color:var(--ds-blanket-danger,#ef5c4814)}
|
|
212
|
+
._bfhkrw5d{background-color:var(--ds-background-accent-red-subtler-hovered,#fd9891)}
|
|
213
|
+
._bfhkrwyz{background-color:var(--ds-background-accent-magenta-subtle-hovered,#f797d2)}
|
|
214
|
+
._bfhkry5t{background-color:var(--ds-background-accent-yellow-subtle,#f5cd47)}
|
|
215
|
+
._bfhks9hg{background-color:var(--ds-background-danger-bold-hovered,#ae2e24)}
|
|
216
|
+
._bfhkse6l{background-color:var(--ds-background-accent-teal-bolder-pressed,#164555)}
|
|
217
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
218
|
+
._bfhksyzs{background-color:var(--ds-background-disabled,#091e4208)}
|
|
219
|
+
._bfhktde4{background-color:var(--ds-background-accent-lime-bolder,#5b7f24)}
|
|
220
|
+
._bfhktdv8{background-color:var(--ds-background-accent-teal-subtle,#6cc3e0)}
|
|
221
|
+
._bfhku1se{background-color:var(--ds-background-brand-bold-hovered,#05c)}
|
|
222
|
+
._bfhkuibq{background-color:var(--ds-background-accent-red-bolder,#c9372c)}
|
|
223
|
+
._bfhkung8{background-color:var(--ds-background-accent-green-subtler-hovered,#7ee2b8)}
|
|
224
|
+
._bfhkuxsx{background-color:var(--ds-background-accent-orange-subtler-pressed,#fea362)}
|
|
225
|
+
._bfhkv5yf{background-color:var(--ds-background-accent-green-subtlest-pressed,#7ee2b8)}
|
|
226
|
+
._bfhkv9ra{background-color:var(--ds-background-accent-magenta-subtler,#fdd0ec)}
|
|
227
|
+
._bfhkvq0a{background-color:var(--ds-surface-overlay-pressed,#dcdfe4)}
|
|
228
|
+
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
229
|
+
._bfhkwaw3{background-color:var(--ds-background-accent-magenta-bolder-pressed,#50253f)}
|
|
230
|
+
._bfhkwz05{background-color:var(--ds-background-accent-purple-subtle-pressed,#dfd8fd)}
|
|
231
|
+
._bfhkxuzc{background-color:var(--ds-background-accent-magenta-subtler-pressed,#e774bb)}
|
|
232
|
+
._bfhky4f1{background-color:var(--ds-background-success-pressed,#7ee2b8)}
|
|
233
|
+
._bfhkybec{background-color:var(--ds-background-danger-bold,#c9372c)}
|
|
234
|
+
._bfhkygwo{background-color:var(--ds-background-accent-purple-bolder,#6e5dc6)}
|
|
235
|
+
._bfhkz2ec{background-color:var(--ds-background-accent-lime-subtler,#d3f1a7)}
|
|
236
|
+
._bfhkzh8h{background-color:var(--ds-background-accent-teal-subtle-hovered,#9dd9ee)}
|
|
237
|
+
._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
|
|
238
|
+
._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
|
|
239
|
+
._bozg1ejb{padding-inline-start:var(--ds-space-300,24px)}
|
|
240
|
+
._bozg1epz{padding-inline-start:var(--ds-space-1000,5pc)}
|
|
241
|
+
._bozg1jfw{padding-inline-start:var(--ds-space-500,40px)}
|
|
242
|
+
._bozgoahv{padding-inline-start:var(--ds-space-600,3pc)}
|
|
243
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
244
|
+
._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
|
|
245
|
+
._bozgutpp{padding-inline-start:var(--ds-space-150,9pt)}
|
|
246
|
+
._bozgv47k{padding-inline-start:var(--ds-space-250,20px)}
|
|
247
|
+
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
248
|
+
._bozgxncg{padding-inline-start:var(--ds-space-800,4pc)}
|
|
249
|
+
._bozgxy5q{padding-inline-start:var(--ds-space-400,2pc)}
|
|
250
|
+
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
251
|
+
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
252
|
+
._vchhusvi{box-sizing:border-box}
|
|
253
|
+
._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
|
|
254
|
+
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
255
|
+
._y4ti1ejb{padding-inline-end:var(--ds-space-300,24px)}
|
|
256
|
+
._y4ti1epz{padding-inline-end:var(--ds-space-1000,5pc)}
|
|
257
|
+
._y4ti1jfw{padding-inline-end:var(--ds-space-500,40px)}
|
|
258
|
+
._y4tioahv{padding-inline-end:var(--ds-space-600,3pc)}
|
|
259
|
+
._y4tipxbi{padding-inline-end:var(--ds-space-200,1pc)}
|
|
260
|
+
._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
|
|
261
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
262
|
+
._y4tiv47k{padding-inline-end:var(--ds-space-250,20px)}
|
|
263
|
+
._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
|
|
264
|
+
._y4tixncg{padding-inline-end:var(--ds-space-800,4pc)}
|
|
265
|
+
._y4tixy5q{padding-inline-end:var(--ds-space-400,2pc)}
|
|
266
|
+
._y4tize3t{padding-inline-end:var(--ds-space-0,0)}
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/* box.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "style", "testId", "xcss"],
|
|
5
|
+
_excluded2 = ["className"];
|
|
6
|
+
import "./box.compiled.css";
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { SurfaceContext } from './internal/surface-provider';
|
|
11
|
+
|
|
12
|
+
// Can either Exclude or Extract - here we're excluding all SVG-related elements, <button> elements (handled by Pressable), and <a> elements (handled by Anchor)
|
|
13
|
+
|
|
14
|
+
// Basically just ElementType but without ComponentType, it makes sense to keep the "Type" suffix
|
|
15
|
+
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
16
|
+
|
|
17
|
+
var baseStyles = null;
|
|
18
|
+
var backgroundColorMap = {
|
|
19
|
+
'color.background.accent.lime.subtlest': "_bfhkm890",
|
|
20
|
+
'color.background.accent.lime.subtlest.hovered': "_bfhkd4y8",
|
|
21
|
+
'color.background.accent.lime.subtlest.pressed': "_bfhk1fno",
|
|
22
|
+
'color.background.accent.lime.subtler': "_bfhkz2ec",
|
|
23
|
+
'color.background.accent.lime.subtler.hovered': "_bfhk1eds",
|
|
24
|
+
'color.background.accent.lime.subtler.pressed': "_bfhk1hgz",
|
|
25
|
+
'color.background.accent.lime.subtle': "_bfhkbq5w",
|
|
26
|
+
'color.background.accent.lime.subtle.hovered': "_bfhkfoww",
|
|
27
|
+
'color.background.accent.lime.subtle.pressed': "_bfhkhgj8",
|
|
28
|
+
'color.background.accent.lime.bolder': "_bfhktde4",
|
|
29
|
+
'color.background.accent.lime.bolder.hovered': "_bfhknzpa",
|
|
30
|
+
'color.background.accent.lime.bolder.pressed': "_bfhk1b17",
|
|
31
|
+
'color.background.accent.red.subtlest': "_bfhk1vk5",
|
|
32
|
+
'color.background.accent.red.subtlest.hovered': "_bfhk1i6i",
|
|
33
|
+
'color.background.accent.red.subtlest.pressed': "_bfhk1pbw",
|
|
34
|
+
'color.background.accent.red.subtler': "_bfhk1rtt",
|
|
35
|
+
'color.background.accent.red.subtler.hovered': "_bfhkrw5d",
|
|
36
|
+
'color.background.accent.red.subtler.pressed': "_bfhk69rw",
|
|
37
|
+
'color.background.accent.red.subtle': "_bfhkkrt9",
|
|
38
|
+
'color.background.accent.red.subtle.hovered': "_bfhk1sou",
|
|
39
|
+
'color.background.accent.red.subtle.pressed': "_bfhk1tf4",
|
|
40
|
+
'color.background.accent.red.bolder': "_bfhkuibq",
|
|
41
|
+
'color.background.accent.red.bolder.hovered': "_bfhk100f",
|
|
42
|
+
'color.background.accent.red.bolder.pressed': "_bfhkprmn",
|
|
43
|
+
'color.background.accent.orange.subtlest': "_bfhk1g3m",
|
|
44
|
+
'color.background.accent.orange.subtlest.hovered': "_bfhkg4tm",
|
|
45
|
+
'color.background.accent.orange.subtlest.pressed': "_bfhk1ya0",
|
|
46
|
+
'color.background.accent.orange.subtler': "_bfhkf2vu",
|
|
47
|
+
'color.background.accent.orange.subtler.hovered': "_bfhk1lml",
|
|
48
|
+
'color.background.accent.orange.subtler.pressed': "_bfhkuxsx",
|
|
49
|
+
'color.background.accent.orange.subtle': "_bfhk1g6e",
|
|
50
|
+
'color.background.accent.orange.subtle.hovered': "_bfhk1oew",
|
|
51
|
+
'color.background.accent.orange.subtle.pressed': "_bfhk1phk",
|
|
52
|
+
'color.background.accent.orange.bolder': "_bfhkjgng",
|
|
53
|
+
'color.background.accent.orange.bolder.hovered': "_bfhkhi52",
|
|
54
|
+
'color.background.accent.orange.bolder.pressed': "_bfhkf767",
|
|
55
|
+
'color.background.accent.yellow.subtlest': "_bfhk1ozg",
|
|
56
|
+
'color.background.accent.yellow.subtlest.hovered': "_bfhk19g9",
|
|
57
|
+
'color.background.accent.yellow.subtlest.pressed': "_bfhk31d1",
|
|
58
|
+
'color.background.accent.yellow.subtler': "_bfhk3fv2",
|
|
59
|
+
'color.background.accent.yellow.subtler.hovered': "_bfhklg04",
|
|
60
|
+
'color.background.accent.yellow.subtler.pressed': "_bfhk1d44",
|
|
61
|
+
'color.background.accent.yellow.subtle': "_bfhkry5t",
|
|
62
|
+
'color.background.accent.yellow.subtle.hovered': "_bfhk17e6",
|
|
63
|
+
'color.background.accent.yellow.subtle.pressed': "_bfhko0y5",
|
|
64
|
+
'color.background.accent.yellow.bolder': "_bfhk1vop",
|
|
65
|
+
'color.background.accent.yellow.bolder.hovered': "_bfhkkjqf",
|
|
66
|
+
'color.background.accent.yellow.bolder.pressed': "_bfhk32kj",
|
|
67
|
+
'color.background.accent.green.subtlest': "_bfhkn729",
|
|
68
|
+
'color.background.accent.green.subtlest.hovered': "_bfhk3utz",
|
|
69
|
+
'color.background.accent.green.subtlest.pressed': "_bfhkv5yf",
|
|
70
|
+
'color.background.accent.green.subtler': "_bfhk1wnw",
|
|
71
|
+
'color.background.accent.green.subtler.hovered': "_bfhkung8",
|
|
72
|
+
'color.background.accent.green.subtler.pressed': "_bfhk1p19",
|
|
73
|
+
'color.background.accent.green.subtle': "_bfhk1rsu",
|
|
74
|
+
'color.background.accent.green.subtle.hovered': "_bfhk12e3",
|
|
75
|
+
'color.background.accent.green.subtle.pressed': "_bfhk8h4p",
|
|
76
|
+
'color.background.accent.green.bolder': "_bfhk1e5c",
|
|
77
|
+
'color.background.accent.green.bolder.hovered': "_bfhka5yi",
|
|
78
|
+
'color.background.accent.green.bolder.pressed': "_bfhk1azz",
|
|
79
|
+
'color.background.accent.teal.subtlest': "_bfhk7xuz",
|
|
80
|
+
'color.background.accent.teal.subtlest.hovered': "_bfhk108c",
|
|
81
|
+
'color.background.accent.teal.subtlest.pressed': "_bfhk1j2h",
|
|
82
|
+
'color.background.accent.teal.subtler': "_bfhk1a17",
|
|
83
|
+
'color.background.accent.teal.subtler.hovered': "_bfhkg5py",
|
|
84
|
+
'color.background.accent.teal.subtler.pressed': "_bfhkq7li",
|
|
85
|
+
'color.background.accent.teal.subtle': "_bfhktdv8",
|
|
86
|
+
'color.background.accent.teal.subtle.hovered': "_bfhkzh8h",
|
|
87
|
+
'color.background.accent.teal.subtle.pressed': "_bfhk10ai",
|
|
88
|
+
'color.background.accent.teal.bolder': "_bfhk2c8p",
|
|
89
|
+
'color.background.accent.teal.bolder.hovered': "_bfhkl3ve",
|
|
90
|
+
'color.background.accent.teal.bolder.pressed': "_bfhkse6l",
|
|
91
|
+
'color.background.accent.blue.subtlest': "_bfhkavxe",
|
|
92
|
+
'color.background.accent.blue.subtlest.hovered': "_bfhkay3p",
|
|
93
|
+
'color.background.accent.blue.subtlest.pressed': "_bfhk1xmr",
|
|
94
|
+
'color.background.accent.blue.subtler': "_bfhk4v9p",
|
|
95
|
+
'color.background.accent.blue.subtler.hovered': "_bfhk16e6",
|
|
96
|
+
'color.background.accent.blue.subtler.pressed': "_bfhk1uh7",
|
|
97
|
+
'color.background.accent.blue.subtle': "_bfhk1j89",
|
|
98
|
+
'color.background.accent.blue.subtle.hovered': "_bfhk1f4s",
|
|
99
|
+
'color.background.accent.blue.subtle.pressed': "_bfhkqctv",
|
|
100
|
+
'color.background.accent.blue.bolder': "_bfhkc8cv",
|
|
101
|
+
'color.background.accent.blue.bolder.hovered': "_bfhk1cwi",
|
|
102
|
+
'color.background.accent.blue.bolder.pressed': "_bfhkhcrq",
|
|
103
|
+
'color.background.accent.purple.subtlest': "_bfhkp7j4",
|
|
104
|
+
'color.background.accent.purple.subtlest.hovered': "_bfhkm0d5",
|
|
105
|
+
'color.background.accent.purple.subtlest.pressed': "_bfhkgslw",
|
|
106
|
+
'color.background.accent.purple.subtler': "_bfhk1jkz",
|
|
107
|
+
'color.background.accent.purple.subtler.hovered': "_bfhk1wyu",
|
|
108
|
+
'color.background.accent.purple.subtler.pressed': "_bfhk5fkp",
|
|
109
|
+
'color.background.accent.purple.subtle': "_bfhkdh45",
|
|
110
|
+
'color.background.accent.purple.subtle.hovered': "_bfhk1wob",
|
|
111
|
+
'color.background.accent.purple.subtle.pressed': "_bfhkwz05",
|
|
112
|
+
'color.background.accent.purple.bolder': "_bfhkygwo",
|
|
113
|
+
'color.background.accent.purple.bolder.hovered': "_bfhkadgs",
|
|
114
|
+
'color.background.accent.purple.bolder.pressed': "_bfhk1uro",
|
|
115
|
+
'color.background.accent.magenta.subtlest': "_bfhk8tvm",
|
|
116
|
+
'color.background.accent.magenta.subtlest.hovered': "_bfhkr3zd",
|
|
117
|
+
'color.background.accent.magenta.subtlest.pressed': "_bfhk1een",
|
|
118
|
+
'color.background.accent.magenta.subtler': "_bfhkv9ra",
|
|
119
|
+
'color.background.accent.magenta.subtler.hovered': "_bfhk1r0p",
|
|
120
|
+
'color.background.accent.magenta.subtler.pressed': "_bfhkxuzc",
|
|
121
|
+
'color.background.accent.magenta.subtle': "_bfhk1mi6",
|
|
122
|
+
'color.background.accent.magenta.subtle.hovered': "_bfhkrwyz",
|
|
123
|
+
'color.background.accent.magenta.subtle.pressed': "_bfhk1ovh",
|
|
124
|
+
'color.background.accent.magenta.bolder': "_bfhkc3uk",
|
|
125
|
+
'color.background.accent.magenta.bolder.hovered': "_bfhk1ok8",
|
|
126
|
+
'color.background.accent.magenta.bolder.pressed': "_bfhkwaw3",
|
|
127
|
+
'color.background.accent.gray.subtlest': "_bfhk11bn",
|
|
128
|
+
'color.background.accent.gray.subtlest.hovered': "_bfhk12j4",
|
|
129
|
+
'color.background.accent.gray.subtlest.pressed': "_bfhk1lb4",
|
|
130
|
+
'color.background.accent.gray.subtler': "_bfhk1v33",
|
|
131
|
+
'color.background.accent.gray.subtler.hovered': "_bfhk1f7l",
|
|
132
|
+
'color.background.accent.gray.subtler.pressed': "_bfhkd8a2",
|
|
133
|
+
'color.background.accent.gray.subtle': "_bfhk1t05",
|
|
134
|
+
'color.background.accent.gray.subtle.hovered': "_bfhk1a2l",
|
|
135
|
+
'color.background.accent.gray.subtle.pressed': "_bfhk1z0s",
|
|
136
|
+
'color.background.accent.gray.bolder': "_bfhk1t1b",
|
|
137
|
+
'color.background.accent.gray.bolder.hovered': "_bfhke4nv",
|
|
138
|
+
'color.background.accent.gray.bolder.pressed': "_bfhk82ra",
|
|
139
|
+
'color.background.disabled': "_bfhksyzs",
|
|
140
|
+
'color.background.input': "_bfhk1j9a",
|
|
141
|
+
'color.background.input.hovered': "_bfhk1d5g",
|
|
142
|
+
'color.background.input.pressed': "_bfhkr01l",
|
|
143
|
+
'color.background.inverse.subtle': "_bfhk1vck",
|
|
144
|
+
'color.background.inverse.subtle.hovered': "_bfhkmpja",
|
|
145
|
+
'color.background.inverse.subtle.pressed': "_bfhk1gii",
|
|
146
|
+
'color.background.neutral': "_bfhkm7j4",
|
|
147
|
+
'color.background.neutral.hovered': "_bfhk15ej",
|
|
148
|
+
'color.background.neutral.pressed': "_bfhkip91",
|
|
149
|
+
'color.background.neutral.subtle': "_bfhksm61",
|
|
150
|
+
'color.background.neutral.subtle.hovered': "_bfhk166n",
|
|
151
|
+
'color.background.neutral.subtle.pressed': "_bfhk1dty",
|
|
152
|
+
'color.background.neutral.bold': "_bfhkcdhy",
|
|
153
|
+
'color.background.neutral.bold.hovered': "_bfhk1bsc",
|
|
154
|
+
'color.background.neutral.bold.pressed': "_bfhk1b6k",
|
|
155
|
+
'color.background.selected': "_bfhkfg4m",
|
|
156
|
+
'color.background.selected.hovered': "_bfhki1yw",
|
|
157
|
+
'color.background.selected.pressed': "_bfhk19ru",
|
|
158
|
+
'color.background.selected.bold': "_bfhk1fvw",
|
|
159
|
+
'color.background.selected.bold.hovered': "_bfhk18hz",
|
|
160
|
+
'color.background.selected.bold.pressed': "_bfhkgr1v",
|
|
161
|
+
'color.background.brand.subtlest': "_bfhk3wxy",
|
|
162
|
+
'color.background.brand.subtlest.hovered': "_bfhkezq1",
|
|
163
|
+
'color.background.brand.subtlest.pressed': "_bfhk2ggb",
|
|
164
|
+
'color.background.brand.bold': "_bfhkb29m",
|
|
165
|
+
'color.background.brand.bold.hovered': "_bfhku1se",
|
|
166
|
+
'color.background.brand.bold.pressed': "_bfhkqkzo",
|
|
167
|
+
'color.background.brand.boldest': "_bfhk15mt",
|
|
168
|
+
'color.background.brand.boldest.hovered': "_bfhk1uwk",
|
|
169
|
+
'color.background.brand.boldest.pressed': "_bfhk17jr",
|
|
170
|
+
'color.background.danger': "_bfhk1gly",
|
|
171
|
+
'color.background.danger.hovered': "_bfhk1yvi",
|
|
172
|
+
'color.background.danger.pressed': "_bfhk1io2",
|
|
173
|
+
'color.background.danger.bold': "_bfhkybec",
|
|
174
|
+
'color.background.danger.bold.hovered': "_bfhks9hg",
|
|
175
|
+
'color.background.danger.bold.pressed': "_bfhk9pqq",
|
|
176
|
+
'color.background.warning': "_bfhk1tzq",
|
|
177
|
+
'color.background.warning.hovered': "_bfhk1rd4",
|
|
178
|
+
'color.background.warning.pressed': "_bfhk11dh",
|
|
179
|
+
'color.background.warning.bold': "_bfhk190i",
|
|
180
|
+
'color.background.warning.bold.hovered': "_bfhk1i4c",
|
|
181
|
+
'color.background.warning.bold.pressed': "_bfhkrj9s",
|
|
182
|
+
'color.background.success': "_bfhkmv6i",
|
|
183
|
+
'color.background.success.hovered': "_bfhk1jgi",
|
|
184
|
+
'color.background.success.pressed': "_bfhky4f1",
|
|
185
|
+
'color.background.success.bold': "_bfhk8emd",
|
|
186
|
+
'color.background.success.bold.hovered': "_bfhk1q4l",
|
|
187
|
+
'color.background.success.bold.pressed': "_bfhkcrcn",
|
|
188
|
+
'color.background.discovery': "_bfhk1nvp",
|
|
189
|
+
'color.background.discovery.hovered': "_bfhk1xp7",
|
|
190
|
+
'color.background.discovery.pressed': "_bfhkdlkp",
|
|
191
|
+
'color.background.discovery.bold': "_bfhk1lri",
|
|
192
|
+
'color.background.discovery.bold.hovered': "_bfhk1w72",
|
|
193
|
+
'color.background.discovery.bold.pressed': "_bfhkrb53",
|
|
194
|
+
'color.background.information': "_bfhk33gi",
|
|
195
|
+
'color.background.information.hovered': "_bfhk1vps",
|
|
196
|
+
'color.background.information.pressed': "_bfhk1s0z",
|
|
197
|
+
'color.background.information.bold': "_bfhk14wj",
|
|
198
|
+
'color.background.information.bold.hovered': "_bfhk1amz",
|
|
199
|
+
'color.background.information.bold.pressed': "_bfhk5bth",
|
|
200
|
+
'color.blanket': "_bfhk10xm",
|
|
201
|
+
'color.blanket.selected': "_bfhk7wq0",
|
|
202
|
+
'color.blanket.danger': "_bfhkrprw",
|
|
203
|
+
'color.skeleton': "_bfhkn82g",
|
|
204
|
+
'color.skeleton.subtle': "_bfhkh3tw",
|
|
205
|
+
'elevation.surface': "_bfhkvuon",
|
|
206
|
+
'elevation.surface.hovered': "_bfhk108i",
|
|
207
|
+
'elevation.surface.pressed': "_bfhk1ji5",
|
|
208
|
+
'elevation.surface.overlay': "_bfhk1bhr",
|
|
209
|
+
'elevation.surface.overlay.hovered': "_bfhk16qz",
|
|
210
|
+
'elevation.surface.overlay.pressed': "_bfhkvq0a",
|
|
211
|
+
'elevation.surface.raised': "_bfhkhp5a",
|
|
212
|
+
'elevation.surface.raised.hovered': "_bfhk1a0f",
|
|
213
|
+
'elevation.surface.raised.pressed': "_bfhkf7u5",
|
|
214
|
+
'elevation.surface.sunken': "_bfhkqbzx",
|
|
215
|
+
'utility.elevation.surface.current': "_bfhkchd4"
|
|
216
|
+
};
|
|
217
|
+
var CURRENT_SURFACE_CSS_VAR = "--ds-elevation-surface-current";
|
|
218
|
+
var setSurfaceTokenMap = {
|
|
219
|
+
'elevation.surface': "_1q1lvuon",
|
|
220
|
+
'elevation.surface.hovered': "_1q1l108i",
|
|
221
|
+
'elevation.surface.pressed': "_1q1l1ji5",
|
|
222
|
+
'elevation.surface.overlay': "_1q1l1bhr",
|
|
223
|
+
'elevation.surface.overlay.hovered': "_1q1l16qz",
|
|
224
|
+
'elevation.surface.overlay.pressed': "_1q1lvq0a",
|
|
225
|
+
'elevation.surface.raised': "_1q1lhp5a",
|
|
226
|
+
'elevation.surface.raised.hovered': "_1q1l1a0f",
|
|
227
|
+
'elevation.surface.raised.pressed': "_1q1lf7u5",
|
|
228
|
+
'elevation.surface.sunken': "_1q1lqbzx"
|
|
229
|
+
};
|
|
230
|
+
var paddingBlockStartMap = {
|
|
231
|
+
'space.0': "_1q51ze3t",
|
|
232
|
+
'space.025': "_1q51v77o",
|
|
233
|
+
'space.050': "_1q511b66",
|
|
234
|
+
'space.075': "_1q5112x7",
|
|
235
|
+
'space.100': "_1q51u2gc",
|
|
236
|
+
'space.150': "_1q51utpp",
|
|
237
|
+
'space.200': "_1q51pxbi",
|
|
238
|
+
'space.250': "_1q51v47k",
|
|
239
|
+
'space.300': "_1q511ejb",
|
|
240
|
+
'space.400': "_1q51xy5q",
|
|
241
|
+
'space.500': "_1q511jfw",
|
|
242
|
+
'space.600': "_1q51oahv",
|
|
243
|
+
'space.800': "_1q51xncg",
|
|
244
|
+
'space.1000': "_1q511epz"
|
|
245
|
+
};
|
|
246
|
+
var paddingBlockEndMap = {
|
|
247
|
+
'space.0': "_85i5ze3t",
|
|
248
|
+
'space.025': "_85i5v77o",
|
|
249
|
+
'space.050': "_85i51b66",
|
|
250
|
+
'space.075': "_85i512x7",
|
|
251
|
+
'space.100': "_85i5u2gc",
|
|
252
|
+
'space.150': "_85i5utpp",
|
|
253
|
+
'space.200': "_85i5pxbi",
|
|
254
|
+
'space.250': "_85i5v47k",
|
|
255
|
+
'space.300': "_85i51ejb",
|
|
256
|
+
'space.400': "_85i5xy5q",
|
|
257
|
+
'space.500': "_85i51jfw",
|
|
258
|
+
'space.600': "_85i5oahv",
|
|
259
|
+
'space.800': "_85i5xncg",
|
|
260
|
+
'space.1000': "_85i51epz"
|
|
261
|
+
};
|
|
262
|
+
var paddingInlineStartMap = {
|
|
263
|
+
'space.0': "_bozgze3t",
|
|
264
|
+
'space.025': "_bozgv77o",
|
|
265
|
+
'space.050': "_bozg1b66",
|
|
266
|
+
'space.075': "_bozg12x7",
|
|
267
|
+
'space.100': "_bozgu2gc",
|
|
268
|
+
'space.150': "_bozgutpp",
|
|
269
|
+
'space.200': "_bozgpxbi",
|
|
270
|
+
'space.250': "_bozgv47k",
|
|
271
|
+
'space.300': "_bozg1ejb",
|
|
272
|
+
'space.400': "_bozgxy5q",
|
|
273
|
+
'space.500': "_bozg1jfw",
|
|
274
|
+
'space.600': "_bozgoahv",
|
|
275
|
+
'space.800': "_bozgxncg",
|
|
276
|
+
'space.1000': "_bozg1epz"
|
|
277
|
+
};
|
|
278
|
+
var paddingInlineEndMap = {
|
|
279
|
+
'space.0': "_y4tize3t",
|
|
280
|
+
'space.025': "_y4tiv77o",
|
|
281
|
+
'space.050': "_y4ti1b66",
|
|
282
|
+
'space.075': "_y4ti12x7",
|
|
283
|
+
'space.100': "_y4tiu2gc",
|
|
284
|
+
'space.150': "_y4tiutpp",
|
|
285
|
+
'space.200': "_y4tipxbi",
|
|
286
|
+
'space.250': "_y4tiv47k",
|
|
287
|
+
'space.300': "_y4ti1ejb",
|
|
288
|
+
'space.400': "_y4tixy5q",
|
|
289
|
+
'space.500': "_y4ti1jfw",
|
|
290
|
+
'space.600': "_y4tioahv",
|
|
291
|
+
'space.800': "_y4tixncg",
|
|
292
|
+
'space.1000': "_y4ti1epz"
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* __Box__
|
|
297
|
+
*
|
|
298
|
+
* A Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
|
|
299
|
+
* Renders a `div` by default.
|
|
300
|
+
*
|
|
301
|
+
* - [Examples](https://atlassian.design/components/primitives/box/examples)
|
|
302
|
+
* - [Code](https://atlassian.design/components/primitives/box/code)
|
|
303
|
+
* - [Usage](https://atlassian.design/components/primitives/box/usage)
|
|
304
|
+
*/
|
|
305
|
+
export var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
306
|
+
var _ref$as = _ref.as,
|
|
307
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
308
|
+
children = _ref.children,
|
|
309
|
+
backgroundColor = _ref.backgroundColor,
|
|
310
|
+
padding = _ref.padding,
|
|
311
|
+
_ref$paddingBlock = _ref.paddingBlock,
|
|
312
|
+
paddingBlock = _ref$paddingBlock === void 0 ? padding : _ref$paddingBlock,
|
|
313
|
+
_ref$paddingBlockStar = _ref.paddingBlockStart,
|
|
314
|
+
paddingBlockStart = _ref$paddingBlockStar === void 0 ? paddingBlock : _ref$paddingBlockStar,
|
|
315
|
+
_ref$paddingBlockEnd = _ref.paddingBlockEnd,
|
|
316
|
+
paddingBlockEnd = _ref$paddingBlockEnd === void 0 ? paddingBlock : _ref$paddingBlockEnd,
|
|
317
|
+
_ref$paddingInline = _ref.paddingInline,
|
|
318
|
+
paddingInline = _ref$paddingInline === void 0 ? padding : _ref$paddingInline,
|
|
319
|
+
_ref$paddingInlineSta = _ref.paddingInlineStart,
|
|
320
|
+
paddingInlineStart = _ref$paddingInlineSta === void 0 ? paddingInline : _ref$paddingInlineSta,
|
|
321
|
+
_ref$paddingInlineEnd = _ref.paddingInlineEnd,
|
|
322
|
+
paddingInlineEnd = _ref$paddingInlineEnd === void 0 ? paddingInline : _ref$paddingInlineEnd,
|
|
323
|
+
style = _ref.style,
|
|
324
|
+
testId = _ref.testId,
|
|
325
|
+
xcss = _ref.xcss,
|
|
326
|
+
htmlAttributes = _objectWithoutProperties(_ref, _excluded);
|
|
327
|
+
// This is to remove className from safeHtmlAttributes
|
|
328
|
+
// @ts-expect-error -- className doesn't exist in the prop definition but we want to ensure it cannot be applied even if types are bypassed
|
|
329
|
+
var _spreadClass = htmlAttributes.className,
|
|
330
|
+
safeHtmlAttributes = _objectWithoutProperties(htmlAttributes, _excluded2);
|
|
331
|
+
var node = /*#__PURE__*/React.createElement(Component
|
|
332
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
333
|
+
, _extends({
|
|
334
|
+
style: style
|
|
335
|
+
// @ts-ignore -- Expression produces a union type that is too complex to represent. We may be able to narrow the type here but unsure.
|
|
336
|
+
,
|
|
337
|
+
ref: ref
|
|
338
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- TODO: Support `xcss` in className pass-through
|
|
339
|
+
,
|
|
340
|
+
className: ax(["_vchhusvi _r06hglyw _19itglyw", backgroundColor && backgroundColorMap[backgroundColor], backgroundColor && isSurfaceToken(backgroundColor) && setSurfaceTokenMap[backgroundColor], paddingBlockStart && paddingBlockStartMap[paddingBlockStart], paddingBlockEnd && paddingBlockEndMap[paddingBlockEnd], paddingInlineStart && paddingInlineStartMap[paddingInlineStart], paddingInlineEnd && paddingInlineEndMap[paddingInlineEnd], xcss])
|
|
341
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
342
|
+
}, safeHtmlAttributes, {
|
|
343
|
+
"data-testid": testId
|
|
344
|
+
}), children);
|
|
345
|
+
if (backgroundColor) {
|
|
346
|
+
return /*#__PURE__*/React.createElement(SurfaceContext.Provider, {
|
|
347
|
+
value: backgroundColor
|
|
348
|
+
}, node);
|
|
349
|
+
}
|
|
350
|
+
return node;
|
|
351
|
+
}
|
|
352
|
+
// @ts-ignore This typescript error has been surpessed while locally enrolling `@atlaskit/primitives` into Jira
|
|
353
|
+
// The return type of `BoxComponent` does not match the return type of `forwardRef` in React 18
|
|
354
|
+
);
|
|
355
|
+
export default Box;
|
|
356
|
+
function isSurfaceToken(backgroundColor) {
|
|
357
|
+
return backgroundColor in setSurfaceTokenMap;
|
|
358
|
+
}
|