@tempoxyz/ds 0.2.4 → 0.2.6
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/dist/fonts/Inter-cyrillic-ext.woff2 +0 -0
- package/dist/fonts/Inter-cyrillic.woff2 +0 -0
- package/dist/fonts/Inter-greek-ext.woff2 +0 -0
- package/dist/fonts/Inter-greek.woff2 +0 -0
- package/dist/fonts/Inter-latin-ext.woff2 +0 -0
- package/dist/fonts/Inter-latin.woff2 +0 -0
- package/dist/fonts/Inter-symbols.woff2 +0 -0
- package/dist/fonts/Inter-vietnamese.woff2 +0 -0
- package/dist/mobile/Haptics.d.ts +39 -0
- package/dist/mobile/Haptics.d.ts.map +1 -0
- package/dist/mobile/Haptics.js +51 -0
- package/dist/mobile/Haptics.js.map +1 -0
- package/dist/mobile/components/Button.d.ts.map +1 -1
- package/dist/mobile/components/Button.js +3 -3
- package/dist/mobile/components/Button.js.map +1 -1
- package/dist/mobile/components/IconButton.d.ts.map +1 -1
- package/dist/mobile/components/IconButton.js +3 -3
- package/dist/mobile/components/IconButton.js.map +1 -1
- package/dist/mobile/components/Spinner.js +1 -1
- package/dist/mobile/components/Spinner.js.map +1 -1
- package/dist/mobile/components/TextButton.d.ts.map +1 -1
- package/dist/mobile/components/TextButton.js +3 -3
- package/dist/mobile/components/TextButton.js.map +1 -1
- package/dist/mobile/components/TextInput.js +1 -1
- package/dist/mobile/components/TextInput.js.map +1 -1
- package/dist/mobile/components/Toast.js +1 -1
- package/dist/mobile/components/Toast.js.map +1 -1
- package/dist/mobile/components/Toggle.d.ts.map +1 -1
- package/dist/mobile/components/Toggle.js +2 -2
- package/dist/mobile/components/Toggle.js.map +1 -1
- package/dist/mobile/index.d.ts +2 -0
- package/dist/mobile/index.d.ts.map +1 -1
- package/dist/mobile/index.js +2 -0
- package/dist/mobile/index.js.map +1 -1
- package/dist/mobile/useColor.d.ts +23 -0
- package/dist/mobile/useColor.d.ts.map +1 -0
- package/dist/mobile/useColor.js +29 -0
- package/dist/mobile/useColor.js.map +1 -0
- package/dist/web/components/Accordion.css +1 -1
- package/dist/web/components/Accordion.js +8 -8
- package/dist/web/components/Accordion.js.zyzz.json +1 -1
- package/dist/web/components/AlertDialog.css +1 -1
- package/dist/web/components/AlertDialog.js +2 -2
- package/dist/web/components/AlertDialog.js.zyzz.json +1 -1
- package/dist/web/components/Amount.css +1 -1
- package/dist/web/components/Amount.js +3 -3
- package/dist/web/components/Amount.js.zyzz.json +1 -1
- package/dist/web/components/AmountInput.css +1 -1
- package/dist/web/components/AmountInput.js +4 -4
- package/dist/web/components/AmountInput.js.zyzz.json +1 -1
- package/dist/web/components/AppShell.css +1 -1
- package/dist/web/components/AppShell.js +16 -16
- package/dist/web/components/AppShell.js.zyzz.json +1 -1
- package/dist/web/components/Autocomplete.js.zyzz.json +1 -1
- package/dist/web/components/Avatar.css +1 -1
- package/dist/web/components/Avatar.js +4 -6
- package/dist/web/components/Avatar.js.zyzz.json +1 -1
- package/dist/web/components/Banner.css +1 -1
- package/dist/web/components/Banner.js +5 -5
- package/dist/web/components/Banner.js.zyzz.json +1 -1
- package/dist/web/components/Breadcrumbs.css +1 -1
- package/dist/web/components/Breadcrumbs.js +6 -6
- package/dist/web/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/web/components/Button.css +1 -1
- package/dist/web/components/Button.js +4 -4
- package/dist/web/components/Button.js.zyzz.json +1 -1
- package/dist/web/components/Calendar.css +1 -1
- package/dist/web/components/Calendar.js +7 -7
- package/dist/web/components/Calendar.js.zyzz.json +1 -1
- package/dist/web/components/Callout.css +1 -1
- package/dist/web/components/Callout.js +5 -5
- package/dist/web/components/Callout.js.zyzz.json +1 -1
- package/dist/web/components/Checkbox.css +1 -1
- package/dist/web/components/Checkbox.js +5 -5
- package/dist/web/components/Checkbox.js.zyzz.json +1 -1
- package/dist/web/components/CheckboxGroup.css +1 -1
- package/dist/web/components/CheckboxGroup.js +1 -1
- package/dist/web/components/CheckboxGroup.js.zyzz.json +1 -1
- package/dist/web/components/ChoiceGroup.css +1 -1
- package/dist/web/components/ChoiceGroup.js +5 -5
- package/dist/web/components/ChoiceGroup.js.zyzz.json +1 -1
- package/dist/web/components/Choicebox.css +1 -1
- package/dist/web/components/Choicebox.js +11 -11
- package/dist/web/components/Choicebox.js.zyzz.json +1 -1
- package/dist/web/components/Combobox.css +1 -1
- package/dist/web/components/Combobox.js +4 -4
- package/dist/web/components/Combobox.js.zyzz.json +1 -1
- package/dist/web/components/Container.css +1 -1
- package/dist/web/components/Container.js +1 -3
- package/dist/web/components/Container.js.zyzz.json +1 -1
- package/dist/web/components/CopyButton.css +1 -1
- package/dist/web/components/CopyButton.js +3 -3
- package/dist/web/components/CopyButton.js.zyzz.json +1 -1
- package/dist/web/components/DatePicker.css +1 -1
- package/dist/web/components/DatePicker.js +6 -6
- package/dist/web/components/DatePicker.js.zyzz.json +1 -1
- package/dist/web/components/Dialog.css +1 -1
- package/dist/web/components/Dialog.js +6 -6
- package/dist/web/components/Dialog.js.zyzz.json +1 -1
- package/dist/web/components/Drawer.css +1 -1
- package/dist/web/components/Drawer.js +4 -4
- package/dist/web/components/Drawer.js.zyzz.json +1 -1
- package/dist/web/components/Empty.css +1 -1
- package/dist/web/components/Empty.js +5 -5
- package/dist/web/components/Empty.js.zyzz.json +1 -1
- package/dist/web/components/Field.css +1 -1
- package/dist/web/components/Field.js +5 -5
- package/dist/web/components/Field.js.zyzz.json +1 -1
- package/dist/web/components/Fieldset.css +1 -1
- package/dist/web/components/Fieldset.js +2 -2
- package/dist/web/components/Fieldset.js.zyzz.json +1 -1
- package/dist/web/components/Frame.css +1 -1
- package/dist/web/components/Frame.js +8 -10
- package/dist/web/components/Frame.js.zyzz.json +1 -1
- package/dist/web/components/Gauge.css +1 -1
- package/dist/web/components/Gauge.js +6 -6
- package/dist/web/components/Gauge.js.zyzz.json +1 -1
- package/dist/web/components/Grid.css +1 -1
- package/dist/web/components/Grid.js +1 -3
- package/dist/web/components/Grid.js.zyzz.json +1 -1
- package/dist/web/components/Hex.css +1 -1
- package/dist/web/components/Hex.d.ts +43 -1
- package/dist/web/components/Hex.d.ts.map +1 -1
- package/dist/web/components/Hex.js +10 -8
- package/dist/web/components/Hex.js.map +1 -1
- package/dist/web/components/Hex.js.zyzz.json +1 -1
- package/dist/web/components/IconChip.css +1 -1
- package/dist/web/components/IconChip.d.ts.map +1 -1
- package/dist/web/components/IconChip.js +1 -3
- package/dist/web/components/IconChip.js.map +1 -1
- package/dist/web/components/IconChip.js.zyzz.json +1 -1
- package/dist/web/components/Identicon.css +1 -1
- package/dist/web/components/Identicon.d.ts +8 -0
- package/dist/web/components/Identicon.d.ts.map +1 -1
- package/dist/web/components/Identicon.js +5 -4
- package/dist/web/components/Identicon.js.map +1 -1
- package/dist/web/components/Identicon.js.zyzz.json +1 -1
- package/dist/web/components/Inline.css +1 -1
- package/dist/web/components/Inline.js +1 -3
- package/dist/web/components/Inline.js.zyzz.json +1 -1
- package/dist/web/components/Input.css +1 -1
- package/dist/web/components/Input.js +4 -4
- package/dist/web/components/Input.js.zyzz.json +1 -1
- package/dist/web/components/Inset.css +1 -1
- package/dist/web/components/Inset.js +1 -3
- package/dist/web/components/Inset.js.zyzz.json +1 -1
- package/dist/web/components/Kbd.css +1 -1
- package/dist/web/components/Kbd.js +3 -3
- package/dist/web/components/Kbd.js.zyzz.json +1 -1
- package/dist/web/components/LoadingDots.css +1 -1
- package/dist/web/components/LoadingDots.js +3 -3
- package/dist/web/components/LoadingDots.js.zyzz.json +1 -1
- package/dist/web/components/Menu.css +1 -1
- package/dist/web/components/Menu.js +9 -9
- package/dist/web/components/Menu.js.zyzz.json +1 -1
- package/dist/web/components/NumberField.css +1 -1
- package/dist/web/components/NumberField.js +5 -5
- package/dist/web/components/NumberField.js.zyzz.json +1 -1
- package/dist/web/components/OtpField.css +1 -1
- package/dist/web/components/OtpField.js +3 -3
- package/dist/web/components/OtpField.js.zyzz.json +1 -1
- package/dist/web/components/Pagination.css +1 -1
- package/dist/web/components/Pagination.js +6 -6
- package/dist/web/components/Pagination.js.zyzz.json +1 -1
- package/dist/web/components/Popover.css +1 -1
- package/dist/web/components/Popover.js +5 -5
- package/dist/web/components/Popover.js.zyzz.json +1 -1
- package/dist/web/components/Progress.css +1 -1
- package/dist/web/components/Progress.js +6 -6
- package/dist/web/components/Progress.js.zyzz.json +1 -1
- package/dist/web/components/Qr.css +1 -1
- package/dist/web/components/Qr.js +1 -3
- package/dist/web/components/Qr.js.zyzz.json +1 -1
- package/dist/web/components/RadioGroup.css +1 -1
- package/dist/web/components/RadioGroup.js +4 -4
- package/dist/web/components/RadioGroup.js.zyzz.json +1 -1
- package/dist/web/components/Rows.css +1 -1
- package/dist/web/components/Rows.d.ts +74 -11
- package/dist/web/components/Rows.d.ts.map +1 -1
- package/dist/web/components/Rows.js +36 -23
- package/dist/web/components/Rows.js.map +1 -1
- package/dist/web/components/Rows.js.zyzz.json +1 -1
- package/dist/web/components/SecretValue.css +1 -1
- package/dist/web/components/SecretValue.js +3 -3
- package/dist/web/components/SecretValue.js.zyzz.json +1 -1
- package/dist/web/components/Select.css +1 -1
- package/dist/web/components/Select.js +2 -2
- package/dist/web/components/Select.js.zyzz.json +1 -1
- package/dist/web/components/Separator.css +1 -1
- package/dist/web/components/Separator.js +1 -1
- package/dist/web/components/Separator.js.zyzz.json +1 -1
- package/dist/web/components/SidebarMenu.css +1 -1
- package/dist/web/components/SidebarMenu.js +8 -8
- package/dist/web/components/SidebarMenu.js.zyzz.json +1 -1
- package/dist/web/components/Skeleton.css +1 -1
- package/dist/web/components/Skeleton.js +1 -3
- package/dist/web/components/Skeleton.js.zyzz.json +1 -1
- package/dist/web/components/Slider.css +1 -1
- package/dist/web/components/Slider.js +6 -6
- package/dist/web/components/Slider.js.zyzz.json +1 -1
- package/dist/web/components/Snippet.css +1 -1
- package/dist/web/components/Snippet.js +4 -4
- package/dist/web/components/Snippet.js.zyzz.json +1 -1
- package/dist/web/components/Spinner.css +1 -1
- package/dist/web/components/Spinner.js +3 -3
- package/dist/web/components/Spinner.js.zyzz.json +1 -1
- package/dist/web/components/SplitButton.css +1 -1
- package/dist/web/components/SplitButton.js +1 -1
- package/dist/web/components/SplitButton.js.zyzz.json +1 -1
- package/dist/web/components/Stack.css +1 -1
- package/dist/web/components/Stack.js +1 -3
- package/dist/web/components/Stack.js.zyzz.json +1 -1
- package/dist/web/components/Stepper.css +1 -1
- package/dist/web/components/Stepper.js +3 -3
- package/dist/web/components/Stepper.js.zyzz.json +1 -1
- package/dist/web/components/Surface.css +1 -1
- package/dist/web/components/Surface.d.ts +19 -1
- package/dist/web/components/Surface.d.ts.map +1 -1
- package/dist/web/components/Surface.js +6 -8
- package/dist/web/components/Surface.js.map +1 -1
- package/dist/web/components/Surface.js.zyzz.json +1 -1
- package/dist/web/components/Switch.css +1 -1
- package/dist/web/components/Switch.js +3 -3
- package/dist/web/components/Switch.js.zyzz.json +1 -1
- package/dist/web/components/Table.css +1 -1
- package/dist/web/components/Table.js +5 -7
- package/dist/web/components/Table.js.zyzz.json +1 -1
- package/dist/web/components/Tabs.css +1 -1
- package/dist/web/components/Tabs.js +4 -6
- package/dist/web/components/Tabs.js.zyzz.json +1 -1
- package/dist/web/components/Tag.css +1 -1
- package/dist/web/components/Tag.js +3 -3
- package/dist/web/components/Tag.js.zyzz.json +1 -1
- package/dist/web/components/Textarea.css +1 -1
- package/dist/web/components/Textarea.js +1 -3
- package/dist/web/components/Textarea.js.zyzz.json +1 -1
- package/dist/web/components/Toast.css +1 -1
- package/dist/web/components/Toast.js +10 -10
- package/dist/web/components/Toast.js.zyzz.json +1 -1
- package/dist/web/components/Token.css +1 -1
- package/dist/web/components/Token.js +1 -3
- package/dist/web/components/Token.js.zyzz.json +1 -1
- package/dist/web/components/Tooltip.css +1 -1
- package/dist/web/components/Tooltip.js +2 -2
- package/dist/web/components/Tooltip.js.zyzz.json +1 -1
- package/dist/web/components/internal/Field.css +1 -1
- package/dist/web/components/internal/Field.js +4 -4
- package/dist/web/components/internal/Field.js.zyzz.json +1 -1
- package/dist/web/components/internal/InputGroup.css +1 -1
- package/dist/web/components/internal/InputGroup.d.ts +11 -0
- package/dist/web/components/internal/InputGroup.d.ts.map +1 -1
- package/dist/web/components/internal/InputGroup.js +1 -3
- package/dist/web/components/internal/InputGroup.js.map +1 -1
- package/dist/web/components/internal/InputGroup.js.zyzz.json +1 -1
- package/dist/web/components/internal/Listbox.css +1 -1
- package/dist/web/components/internal/Listbox.js +13 -13
- package/dist/web/components/internal/Listbox.js.zyzz.json +1 -1
- package/dist/web/index.js.zyzz.json +1 -1
- package/dist/web/vars.d.ts +8 -1
- package/dist/web/vars.d.ts.map +1 -1
- package/dist/web/vars.js.map +1 -1
- package/dist/web/vars.js.zyzz.json +1 -1
- package/dist/web/zyzz.config.d.ts +40 -5
- package/dist/web/zyzz.config.d.ts.map +1 -1
- package/dist/web/zyzz.config.js +10 -0
- package/dist/web/zyzz.config.js.map +1 -1
- package/dist/web/zyzz.config.js.zyzz.json +1 -1
- package/package.json +33 -1
- package/src/fonts/Inter-cyrillic-ext.woff2 +0 -0
- package/src/fonts/Inter-cyrillic.woff2 +0 -0
- package/src/fonts/Inter-greek-ext.woff2 +0 -0
- package/src/fonts/Inter-greek.woff2 +0 -0
- package/src/fonts/Inter-latin-ext.woff2 +0 -0
- package/src/fonts/Inter-latin.woff2 +0 -0
- package/src/fonts/Inter-symbols.woff2 +0 -0
- package/src/fonts/Inter-vietnamese.woff2 +0 -0
- package/src/fonts/README.md +8 -0
- package/src/mobile/Haptics.ts +55 -0
- package/src/mobile/README.md +97 -1
- package/src/mobile/components/Button.tsx +3 -3
- package/src/mobile/components/IconButton.tsx +3 -3
- package/src/mobile/components/Spinner.tsx +1 -1
- package/src/mobile/components/TextButton.tsx +3 -3
- package/src/mobile/components/TextInput.tsx +1 -1
- package/src/mobile/components/Toast.tsx +1 -1
- package/src/mobile/components/Toggle.tsx +2 -2
- package/src/mobile/index.ts +2 -0
- package/src/mobile/useColor.ts +31 -0
- package/src/web/components/Hex.tsx +45 -2
- package/src/web/components/IconChip.tsx +0 -1
- package/src/web/components/Identicon.tsx +15 -1
- package/src/web/components/Rows.tsx +100 -22
- package/src/web/components/Surface.tsx +9 -3
- package/src/web/components/internal/InputGroup.ts +10 -0
- package/src/web/vars.ts +12 -3
- package/src/web/zyzz.config.ts +72 -1
- package/dist/mobile/internal/useColor.d.ts +0 -4
- package/dist/mobile/internal/useColor.d.ts.map +0 -1
- package/dist/mobile/internal/useColor.js +0 -12
- package/dist/mobile/internal/useColor.js.map +0 -1
- package/src/mobile/internal/useColor.ts +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.z_tds_2f_web-yN4EKE0{border-radius:var(--z-tds_2f_web-radius-full,9999px)}.z_tds_2f_web-yN4EKE1{display:block}.z_tds_2f_web-yN4EKE2{flex-shrink:0}.z_tds_2f_web-yN4EKE3{[data-label]~[data-hex]>&:first-child{margin-inline-end:var(--z-tds_2f_web-spacing-4,.25rem)}}.z_tds_2f_web-yN4EKE4{&:where([data-size="16"]){height:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-yN4EKE5{&:where([data-size="16"]){width:var(--z-tds_2f_web-spacing-16,1rem)}}.z_tds_2f_web-yN4EKE6{&:where([data-size="24"]){height:var(--z-tds_2f_web-spacing-24,1.5rem)}}.z_tds_2f_web-yN4EKE7{&:where([data-size="24"]){width:var(--z-tds_2f_web-spacing-24,1.5rem)}}.z_tds_2f_web-yN4EKE8{&:where([data-size="32"]){height:var(--z-tds_2f_web-spacing-32,2rem)}}.z_tds_2f_web-yN4EKE9{&:where([data-size="32"]){width:var(--z-tds_2f_web-spacing-32,2rem)}}.z_tds_2f_web-yN4EKEa{&:where([data-size="40"]){height:var(--z-tds_2f_web-spacing-40,2.5rem)}}.z_tds_2f_web-yN4EKEb{&:where([data-size="40"]){width:var(--z-tds_2f_web-spacing-40,2.5rem)}}.z_tds_2f_web-yN4EKEc{&:where([data-size="48"]){height:var(--z-tds_2f_web-spacing-48,3rem)}}.z_tds_2f_web-yN4EKEd{&:where([data-size="48"]){width:var(--z-tds_2f_web-spacing-48,3rem)}}.z_tds_2f_web-yN4EKEe{&:where([data-size="64"]){height:var(--z-tds_2f_web-spacing-64,4rem)}}.z_tds_2f_web-yN4EKEf{&:where([data-size="64"]){width:var(--z-tds_2f_web-spacing-64,4rem)}}.z_tds_2f_web-yN4EKEg{&:where([data-size=fill]){height:100%}}.z_tds_2f_web-yN4EKEh{&:where([data-size=fill]){width:100%}}
|
|
@@ -8,6 +8,9 @@ import type * as zyzz from 'zyzz';
|
|
|
8
8
|
* - Never use it as the only identifier. Show the address or account name beside it.
|
|
9
9
|
* - When that text is adjacent, pass `aria-hidden` so the address is not announced twice.
|
|
10
10
|
* - Otherwise pass an `aria-label` that names the account, since raw addresses read poorly.
|
|
11
|
+
* - In a `Rows` value, render it as the first child of `Hex.Root`. It sits 8px before the
|
|
12
|
+
* address, and the label yields its width, so the address keeps the width of one without an
|
|
13
|
+
* identicon.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* <Identicon aria-hidden address={address} size="32" />
|
|
@@ -28,6 +31,11 @@ declare namespace styles {
|
|
|
28
31
|
readonly borderRadius: "full";
|
|
29
32
|
readonly display: "block";
|
|
30
33
|
readonly flexShrink: "0 !custom";
|
|
34
|
+
readonly selectors: {
|
|
35
|
+
readonly '[data-label] ~ [data-hex] > &:first-child': {
|
|
36
|
+
readonly marginInlineEnd: "4";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
31
39
|
};
|
|
32
40
|
readonly defaultVariants: {
|
|
33
41
|
readonly size: "40";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identicon.d.ts","sourceRoot":"","sources":["../../../src/web/components/Identicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAS,MAAM,OAAO,CAAA;AACzD,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAA;AAejC
|
|
1
|
+
{"version":3,"file":"Identicon.d.ts","sourceRoot":"","sources":["../../../src/web/components/Identicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAS,MAAM,OAAO,CAAA;AACzD,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAA;AAejC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,+BA8B/C;AAED,yBAAiB,SAAS,CAAC;IACzB,KAAY,KAAK,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAChE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,GAAG;QAC7C,uFAAuF;QACvF,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACJ;AAmCD,kBAAU,MAAM,CAAC;IACR,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA2BrB,CAAA;CACF"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { Recipe as __zyzzRecipe } from 'zyzz/runtime';
|
|
3
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
2
|
import { useId } from 'react';
|
|
5
3
|
import { variants } from '../zyzz.config.js';
|
|
@@ -22,6 +20,9 @@ const palette = [
|
|
|
22
20
|
* - Never use it as the only identifier. Show the address or account name beside it.
|
|
23
21
|
* - When that text is adjacent, pass `aria-hidden` so the address is not announced twice.
|
|
24
22
|
* - Otherwise pass an `aria-label` that names the account, since raw addresses read poorly.
|
|
23
|
+
* - In a `Rows` value, render it as the first child of `Hex.Root`. It sits 8px before the
|
|
24
|
+
* address, and the label yields its width, so the address keeps the width of one without an
|
|
25
|
+
* identicon.
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
27
28
|
* <Identicon aria-hidden address={address} size="32" />
|
|
@@ -34,7 +35,7 @@ export function Identicon(props) {
|
|
|
34
35
|
const { angle, glow, tones } = derive(address);
|
|
35
36
|
const [light, mid, deep] = tones;
|
|
36
37
|
const id = useId();
|
|
37
|
-
return (_jsxs("svg", { "aria-label": address, role: "img", viewBox: "0 0 1 1", ...attributes, ...styles.identicon({ className, size, style: props.style, vars }), children: [_jsxs("defs", { children: [_jsxs("linearGradient", { gradientTransform: `rotate(${angle} 0.5 0.5)`, id: `${id}-tone`, children: [_jsx("stop", { offset: "0", stopColor: light }), _jsx("stop", { offset: "0.5", stopColor: mid }), _jsx("stop", { offset: "1", stopColor: deep })] }), _jsxs("radialGradient", { cx: glow[0], cy: glow[1], id: `${id}-glow`, r: "0.6", children: [_jsx("stop", { offset: "0", stopColor: light, stopOpacity: "0.7" }), _jsx("stop", { offset: "1", stopColor: light, stopOpacity: "0" })] })] }), _jsx("rect", { fill: `url(#${id}-tone)`, height: "1", width: "1" }), _jsx("rect", { fill: `url(#${id}-glow)`, height: "1", width: "1" })] }));
|
|
38
|
+
return (_jsxs("svg", { "aria-label": address, role: "img", viewBox: "0 0 1 1", ...attributes, "data-identicon": size ?? '40', ...styles.identicon({ className, size, style: props.style, vars }), children: [_jsxs("defs", { children: [_jsxs("linearGradient", { gradientTransform: `rotate(${angle} 0.5 0.5)`, id: `${id}-tone`, children: [_jsx("stop", { offset: "0", stopColor: light }), _jsx("stop", { offset: "0.5", stopColor: mid }), _jsx("stop", { offset: "1", stopColor: deep })] }), _jsxs("radialGradient", { cx: glow[0], cy: glow[1], id: `${id}-glow`, r: "0.6", children: [_jsx("stop", { offset: "0", stopColor: light, stopOpacity: "0.7" }), _jsx("stop", { offset: "1", stopColor: light, stopOpacity: "0" })] })] }), _jsx("rect", { fill: `url(#${id}-tone)`, height: "1", width: "1" }), _jsx("rect", { fill: `url(#${id}-glow)`, height: "1", width: "1" })] }));
|
|
38
39
|
}
|
|
39
40
|
/** Seeds a 32-bit generator from the lowercased address with the cyrb128 string hash. */
|
|
40
41
|
function derive(address) {
|
|
@@ -67,7 +68,7 @@ function derive(address) {
|
|
|
67
68
|
}
|
|
68
69
|
var styles;
|
|
69
70
|
(function (styles) {
|
|
70
|
-
styles.identicon =
|
|
71
|
+
styles.identicon = ((input={})=>{const external=input.className,style=input.style,vars=input.vars,inline=vars?{...vars,...style}:style,className=external?"z_tds_2f_web-yN4EKE0 z_tds_2f_web-yN4EKE1 z_tds_2f_web-yN4EKE2 z_tds_2f_web-yN4EKE3 z_tds_2f_web-yN4EKE4 z_tds_2f_web-yN4EKE5 z_tds_2f_web-yN4EKE6 z_tds_2f_web-yN4EKE7 z_tds_2f_web-yN4EKE8 z_tds_2f_web-yN4EKE9 z_tds_2f_web-yN4EKEa z_tds_2f_web-yN4EKEb z_tds_2f_web-yN4EKEc z_tds_2f_web-yN4EKEd z_tds_2f_web-yN4EKEe z_tds_2f_web-yN4EKEf z_tds_2f_web-yN4EKEg z_tds_2f_web-yN4EKEh"+" "+external:"z_tds_2f_web-yN4EKE0 z_tds_2f_web-yN4EKE1 z_tds_2f_web-yN4EKE2 z_tds_2f_web-yN4EKE3 z_tds_2f_web-yN4EKE4 z_tds_2f_web-yN4EKE5 z_tds_2f_web-yN4EKE6 z_tds_2f_web-yN4EKE7 z_tds_2f_web-yN4EKE8 z_tds_2f_web-yN4EKE9 z_tds_2f_web-yN4EKEa z_tds_2f_web-yN4EKEb z_tds_2f_web-yN4EKEc z_tds_2f_web-yN4EKEd z_tds_2f_web-yN4EKEe z_tds_2f_web-yN4EKEf z_tds_2f_web-yN4EKEg z_tds_2f_web-yN4EKEh",result=inline?{className,style:inline}:{className};let value;value=Object.hasOwn(input,"size")?input["size"]:void 0;if(value===void 0)value="40";if(value!==null&&value!==void 0)result["data-size"]=String(value);return result});
|
|
71
72
|
})(styles || (styles = {}));
|
|
72
73
|
//# sourceMappingURL=Identicon.js.map
|
|
73
74
|
import './Identicon.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identicon.js","sourceRoot":"","sources":["../../../src/web/components/Identicon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA8B,KAAK,EAAE,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,8FAA8F;AAC9F,0EAA0E;AAC1E,MAAM,OAAO,GAAG;IACd,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CACzB,CAAA;AAEV
|
|
1
|
+
{"version":3,"file":"Identicon.js","sourceRoot":"","sources":["../../../src/web/components/Identicon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA8B,KAAK,EAAE,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,8FAA8F;AAC9F,0EAA0E;AAC1E,MAAM,OAAO,GAAG;IACd,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACjC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CACzB,CAAA;AAEV;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,SAAS,CAAC,KA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